1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9527],{9527:(e,t,s)=>{s.r(t),s.d(t,{default:()=>w});var r=s(60),l=s(93171),o=s.n(l),a=s(80036),n=s.n(a);s(71979),s(52933),s(70851);var i=s(80080),c=s(75128),u=s(68080),d=s(87173),p=s(29273);s(40492);var A=s(85859),b=s(14785),h=s.n(b);let w=({isLoginModal:e=!1,isLoggedIn:t,userData:s})=>{n().setAppElement("body");let l=(0,A.useRouter)(),{authDispatch:a}=(0,p.A$)(),[b,w]=(0,i.useState)(!1),[x,f]=(0,i.useState)(null),m=async(e,t)=>{w(!1),!1===e&&t&&l.push(t)},g=async()=>{let e=await (0,c.LO)();if(e&&e.properties.is_active){f(e.properties);let t=l.asPath.includes("/blog"),s=!1===e.properties.is_show_on_blog;w(!(t&&s))}else f(null),w(!1)},y=(0,i.useRef)(null),v=(0,i.useRef)(null),k=(0,i.useRef)(null);(0,i.useEffect)(()=>{if(!C())return window.addEventListener("load",()=>{v.current=new IntersectionObserver(e=>{if(e[0].isIntersecting){let e=(0,u.getCookie)("_auth_access"),t=!1;e&&(t=(0,d.pI)(e).is_subscribed),y.current=window.setTimeout(()=>{!1===t&&_()},1e4)}},{root:null,threshold:.1}),k.current&&v.current.observe(k.current)}),()=>{y.current&&clearTimeout(y.current),v.current&&k.current&&v.current.unobserve(k.current)}},[]);let C=()=>l.asPath.includes("/specials/")||l.asPath.includes("/auth")||l.asPath.includes("checkout")||l.asPath.includes("/login")||l.asPath.includes("/masterpass"),_=()=>{let e=localStorage.getItem("newsletter"),t=localStorage.getItem("newsletterExpires"),s=!0,r=h()();if(e&&t){let e=h()(t);s=r.isAfter(e)}if(s&&!1===C()){let e=r.add(5,"days");localStorage.setItem("newsletter","true"),localStorage.setItem("newsletterExpires",e.format()),g();return}};return(0,r.jsx)("div",{className:"absolute w-100% h-full top-0 left-0 overflow-hidden",ref:k,children:b&&x&&(0,r.jsx)(n(),{isOpen:b,closeTimeoutMS:200,style:{content:{padding:"0",border:"none",background:"transparent",borderRadius:"none"},overlay:{backgroundColor:"rgba(0,0,0,.9)",zIndex:"1005"}},onAfterOpen:()=>{document.body.style.top=`-${window.scrollY}px`,document.body.style.position="fixed"},onAfterClose:()=>{let e=document.body.style.top;document.body.style.position="",document.body.style.top="",window.scrollTo(0,-1*parseInt(e||"0"))},className:"flex flex-col items-center justify-center m-auto h-full tablet:max-w-[70%] transition-[opacity_.15s_linear] ",children:(0,r.jsx)("div",{className:"relative w-[90%] smallDesktop:w-full max-w-[520px] rounded-[8px] laptop:rounded-[18px] overflow-hidden cursor-pointer",children:(0,r.jsxs)("div",{className:"p-[35px] pb-5 relative",children:[(0,r.jsx)("button",{className:"text-[#fff] w-[50px] h-[50px] block absolute top-[10px] right-[10px] text-[22px] laptop:text-[28px] laptop:right-[20px] laptop:top-[20px] z-[3800] ",onClick:()=>m(!0),children:"\xd7"}),(0,r.jsx)("div",{className:"",style:{aspectRatio:"65 / 47"},onClick:()=>{m(!1,x.link)},children:(0,r.jsx)(o(),{src:x.image,alt:"New year Cover",fill:!0,priority:!1,loading:"eager",placeholder:"blur",blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNk+A8AAQUBAScY42YAAAAASUVORK5CYII=",sizes:"(max-width: 768px) 25vw, 50vw",style:{objectFit:"cover",maxWidth:"100%"}})})]})})})})}},52933:(e,t,s)=>{s.d(t,{A:()=>o});var r=s(28903),l=s(47383);let o=async e=>{try{return await r.A.post("newsletter/subscribe",e)}catch(e){return(0,l.r)(e,"subscribeNewsletter"),e.response}}}}]);
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.