1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},a=(new e.Error).stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="650c22e4-f6d2-4d94-9987-a1aec8db053f",e._sentryDebugIdIdentifier="sentry-dbid-650c22e4-f6d2-4d94-9987-a1aec8db053f")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[980],{3806:e=>{e.exports={DesktopNavbar:"_desktop-navbar_DesktopNavbar__uwTF8",Search:"_desktop-navbar_Search__XBmyx",Input:"_desktop-navbar_Input__CWKUP",NavItem:"_desktop-navbar_NavItem__MnMqi",NavItem__Hidden:"_desktop-navbar_NavItem__Hidden__YBkFK",SearchBtn:"_desktop-navbar_SearchBtn__BdVvo",SearchBtn__Active:"_desktop-navbar_SearchBtn__Active__YnoPX"}},21220:e=>{e.exports={Navbar:"_navbar_Navbar__zlHkW",BgSecondary:"_navbar_BgSecondary__Vct73"}},47489:e=>{e.exports={navlink:"_navlink_navlink__HJX5G",navlink__active:"_navlink_navlink__active__QAAPE",navlink__disabled:"_navlink_navlink__disabled__rMPe_"}},90980:(e,a,n)=>{"use strict";n.d(a,{A:()=>A});var s=n(95155),r=n(12115),l=n(21220),i=n.n(l),t=n(2821),c=n(97226),o=n.n(c),_=n(52619),d=n.n(_),b=n(35558),v=n(20112),h=n(62013),m=n(15239),N=n(9121),x=n(20063);let p=e=>{let{searchParams:a}=e,{t:n}=(0,h.WD)("common"),[l,i]=(0,r.useState)(!1),{isAuthenticated:c,currentUser:_,refresh:p}=(0,N.A)(),u=(0,x.usePathname)(),[g,f]=(0,r.useState)(!1),[j,w]=(0,r.useState)(""),k=(0,x.useRouter)(),A=()=>{j.trim()&&k.push((0,b.Tz)(b.bw.CAMPAIGN.SEARCH,{keyword:j.trim()}))};return(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("section",{className:(0,t.A)(o().MobileNavbar),id:"navbar",children:[(0,s.jsxs)("div",{className:(0,t.A)(o().MobileNavbar__Mobile),children:[(0,s.jsxs)("div",{className:"flex align-center",children:[g&&(0,s.jsx)("div",{className:(0,t.A)(o().SearchBtn),children:(0,s.jsx)(v.pd,{rootClassName:"f-height",autoFocus:g,onBlur:()=>{j||f(!1)},value:j,onChange:e=>w(e.target.value),onKeyDown:e=>{"Enter"===e.key&&A()},placeholder:n("navbar.search"),suffix:(0,s.jsx)("span",{onClick:()=>{A()},children:(0,s.jsx)(v.In,{src:"/pictos/search.svg",align:"center"})}),className:o().Input,wrapperClassName:(0,t.A)(g&&"f-width")})}),!g&&(0,s.jsx)("span",{onClick:()=>{f(!0)},children:(0,s.jsx)(v.In,{src:"/pictos/search.svg",align:"center"})}),(0,s.jsx)("div",{className:o().MobileNavbar__Mobile__Burger,onClick:()=>i(!l),children:(0,s.jsx)(v.In,{src:"/pictos/icon-burger.svg",alt:"burger",width:24,height:24})})]}),(0,s.jsx)(d(),{href:b.bw.HOME,children:(0,s.jsx)(v.In,{src:"/logo/abacashi.svg",className:o().MobileNavbar__Logo,alt:"Abacashi | Logo",width:"85px",align:"center"})})]}),(0,s.jsx)("section",{className:(0,t.A)(o().MobileNavbar__Menu,l?o().opened:o().closed),children:(0,s.jsxs)("section",{className:o().MobileNavbar__Content,children:[(0,s.jsxs)("div",{className:o().MobileNavbar__Content__FirstLine,children:[(0,s.jsx)(d(),{href:b.bw.HOME,children:(0,s.jsx)(m.default,{width:85,height:16,src:"/logo/abacashi.svg",className:o().MobileNavbar__Logo,alt:"Abacashi"})}),(0,s.jsx)("div",{className:"flex justify-center",onClick:()=>i(!l),children:(0,s.jsx)(v.In,{src:"/pictos/close.svg",align:"center",width:"24px",height:"24px"})})]}),(0,s.jsxs)("div",{className:o().MobileNavbar__Content__PrincipalLinks,children:[!0===c&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(d(),{className:"mt-16 mb-24",href:b.bw.DASHBOARD.ACCOUNT.SETTINGS,children:n("navbar.profile")}),(0,s.jsx)(v.cG,{margin:"none"})]}),(0,s.jsx)(d(),{className:(0,t.A)(!0===c?"mt-32":"mt-16","mb-24"),href:b.bw.CAMPAIGN.ALL,children:n("navbar.campaigns")}),(0,s.jsx)(v.cG,{margin:"none"}),(0,s.jsx)(d(),{className:"mt-32 mb-24",href:b.bw.ARTICLE.ALL,children:n("navbar.blogs")}),(0,s.jsx)(v.cG,{margin:"none"}),(0,s.jsx)(d(),{className:"mt-32 mb-24",href:b.bw.RATES,children:n("navbar.our-rates")}),(0,s.jsx)(v.cG,{margin:"none"}),(0,s.jsx)(d(),{className:"mt-32 mb-24",href:b.bw.FAQ,children:n("navbar.need-help")}),(0,s.jsx)(v.cG,{margin:"none"}),(0,s.jsx)(d(),{className:"flex align-cente f-width mt-32 mb-24",href:(0,b.Tz)(b.bw.POT.CREATE),children:(0,s.jsx)(v.$n,{className:"f-width",children:n("hero.cta-button-mobile",{ns:"home"})})}),c&&_?(0,s.jsx)(v.ue,{className:"f-width",onClick:()=>void(localStorage.removeItem("access_token"),"function"==typeof p&&p()),children:n("navbar.logout")}):(0,s.jsx)(d(),{href:(0,b.Tz)(b.bw.AUTH.LOGIN,{redirectUrl:(0,b.Tz)(u,a)}),className:"flex align-center f-width",children:(0,s.jsx)(v.$n,{color:"secondary",className:"f-width",children:n("navbar.login")})})]})]})})]})})};var u=n(47489),g=n.n(u);let f=e=>{let{url:a="/",style:n,className:r,children:l,disabled:i,wrapperClassName:c,...o}=e,_=(0,x.usePathname)();return(0,s.jsx)(d(),{href:a,className:c,children:(0,s.jsx)("span",{className:(0,t.A)(g().navlink,_.startsWith(a)&&g().navlink__active,i&&g().navlink__disabled,r),style:n,children:l})})};var j=n(3806),w=n.n(j);let k=e=>{let{searchParams:a}=e,n=(0,x.useRouter)(),[l,i]=(0,r.useState)(""),[c,o]=(0,r.useState)(!1),{t:_}=(0,h.WD)("common"),{isAuthenticated:m,currentUser:p,refresh:u}=(0,N.A)(),g=(0,x.usePathname)(),j=()=>{l.trim()&&n.push((0,b.Tz)(b.bw.CAMPAIGN.SEARCH,{keyword:l.trim()}))};return(0,r.useEffect)(()=>{(null==a?void 0:a.keyword)&&(o(!0),i(null==a?void 0:a.keyword))},[null==a?void 0:a.keyword]),(0,s.jsxs)("div",{className:w().DesktopNavbar,children:[(0,s.jsxs)("div",{className:"flex gap-8 align-center f-width",children:[(0,s.jsx)(f,{wrapperClassName:c?w().NavItem__Hidden:w().NavItem,url:b.bw.FAQ,children:_("navbar.need-help")}),(0,s.jsx)(f,{wrapperClassName:c?w().NavItem__Hidden:w().NavItem,url:b.bw.RATES,children:_("navbar.our-rates")}),(0,s.jsx)(f,{wrapperClassName:c?w().NavItem__Hidden:w().NavItem,url:b.bw.CAMPAIGN.ALL,children:_("navbar.campaigns")}),(0,s.jsx)(f,{wrapperClassName:c?w().NavItem__Hidden:w().NavItem,url:b.bw.ARTICLE.ALL,children:_("navbar.blogs")}),(0,s.jsx)("div",{className:(0,t.A)(w().SearchBtn,c&&w().SearchBtn__Active),onClick:()=>{c||o(!0)},children:(0,s.jsx)(v.pd,{autoFocus:!(null==a?void 0:a.keyword),value:l,onCh
1ange:e=>i(e.target.value),onKeyDown:e=>{"Enter"===e.key&&j()},placeholder:_("navbar.search"),prefix:(0,s.jsx)(v.In,{src:"/pictos/search.svg",align:"center"}),suffix:c&&(0,s.jsxs)("div",{className:"flex",children:[(0,s.jsx)("span",{onClick:()=>{j()},children:(0,s.jsx)(v.In,{src:"/pictos/search.svg",align:"center"})}),(0,s.jsx)("span",{onClick:()=>{o(!1),i("")},children:(0,s.jsx)(v.In,{src:"/pictos/close.svg",align:"center"})})]}),className:w().Input,wrapperClassName:(0,t.A)(c&&"f-width")})})]}),(0,s.jsx)(d(),{href:b.bw.HOME,className:"flex align-center",children:(0,s.jsx)(v._V,{src:"/logo/abacashi.svg",alt:"Abacashi | Home",width:"150px"})}),(0,s.jsxs)("div",{className:"flex gap-8 f-width justify-end",children:[(0,s.jsx)(d(),{href:(0,b.Tz)(b.bw.POT.CREATE),className:"flex align-center",children:(0,s.jsx)(v.$n,{color:"black",size:"sm",children:_("navbar.create-pot")})}),m&&p?(0,s.jsx)("div",{className:"flex align-center",style:{color:"var(--primary)"},children:(0,s.jsx)(v.ms,{menu:{items:[{key:"profile",label:(0,s.jsx)(d(),{href:b.bw.DASHBOARD.ACCOUNT.SETTINGS,children:(0,s.jsxs)("div",{className:"flex gap-8",children:[(0,s.jsx)(v.In,{src:"/pictos/profile.svg",width:20,align:"center"}),_("navbar.profile")]})})},{key:"logout",label:(0,s.jsxs)("div",{className:"flex gap-8",onClick:()=>void(localStorage.removeItem("access_token"),"function"==typeof u&&u()),children:[(0,s.jsx)(v.In,{src:"/pictos/logout.svg",width:20,align:"center",className:"Icon__BlackHoverWhite"}),_("navbar.logout")]})}]},children:(0,s.jsx)("div",{children:(0,s.jsx)(d(),{href:b.bw.DASHBOARD.ACCOUNT.SETTINGS,children:(0,s.jsx)(v.$n,{color:"outlined",size:"sm",children:_("navbar.account")}
1)})})})}):(0,s.jsx)(d(),{href:(0,b.Tz)(b.bw.AUTH.LOGIN,{redirectUrl:(0,b.Tz)(g,a)}),className:"flex align-center",children:(0,s.jsx)(v.$n,{color:"outlined",size:"sm",children:_("navbar.login")})})]})]})},A=e=>{let{secondary:a,searchParams:n}=e,[l,c]=(0,r.useState)(a);return(0,r.useEffect)(()=>{let e=document.getElementById("scroll-navbar");if(e){let a=()=>{let a=e.offsetHeight||0;window.scrollY>a?c(!1):c(!0)};return window.addEventListener("scroll",a),()=>window.removeEventListener("scroll",a)}},[]),(0,s.jsxs)("section",{className:(0,t.A)(i().Navbar,l&&i().BgSecondary),id:"navbar",children:[(0,s.jsx)("div",{className:"f-width show-mobile",children:(0,s.jsx)(p,{searchParams:n})}),(0,s.jsx)("div",{className:"f-width hide-mobile",children:(0,s.jsx)(k,{searchParams:n})})]})}},97226:e=>{e.exports={MobileNavbar:"_mobile-navbar_MobileNavbar__f6EHN",MobileNavbar__Mobile:"_mobile-navbar_MobileNavbar__Mobile__h4P3t",MobileNavbar__Mobile__Burger:"_mobile-navbar_MobileNavbar__Mobile__Burger__6Qkd8",MobileNavbar__Content:"_mobile-navbar_MobileNavbar__Content__HtmVc",MobileNavbar__Content__FirstLine:"_mobile-navbar_MobileNavbar__Content__FirstLine__1Jgue",MobileNavbar__Content__PrincipalLinks:"_mobile-navbar_MobileNavbar__Content__PrincipalLinks__7MaYd",MobileNavbar__Content__PrincipalLinks__Active:"_mobile-navbar_MobileNavbar__Content__PrincipalLinks__Active__PNCM6",MobileNavbar__Content__SecondaryLinks:"_mobile-navbar_MobileNavbar__Content__SecondaryLinks__hg06s",MobileNavbar__Menu:"_mobile-navbar_MobileNavbar__Menu__uVMlV",SearchBtn:"_mobile-navbar_SearchBtn___dTpc",Input:"_mobile-navbar_Input__RErWl",opened:"_mobile-navbar_opened__5HhZ_",closed:"_mobile-navbar_closed__abrB3"}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.