(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,855602,e=>{"use strict";var t=e.i(297647),i=e.i(477716),r=e.i(947118),o=e.i(737801),l=e.i(333350);e.s(["ModuleAnalytics",0,({moduleId:e,modulePosition:a,variant:n="frontend",children:s})=>{let c,u,d,m=(0,i.useRef)(null),[g,h]=(0,i.useState)(!1),p=(0,i.useRef)(null),f=(c="module-viewed",u=(0,r.useIsInitialized)(),d=(0,o.useEventAttributes)(),(0,i.useCallback)(({moduleId:e,modulePosition:t})=>{if(!u)return void console.warn("MParticle is not initialized");let i={module_id:e,module_position:t,...d};try{window.mParticle?.logEvent?.(c,window.mParticle?.EventType?.Other,i),console.debug(`MParticle: Event "${c}" tracked`,i)}catch(e){console.error(`MParticle: Event "${c}" failed`,e)}},[d,u]));return"admin"===n?(0,t.jsx)(t.Fragment,{children:s}):((0,i.useEffect)(()=>{if(g||!l.default||!m.current)return;let t=m.current,i=new IntersectionObserver(t=>{t.forEach(t=>{t.isIntersecting&&t.intersectionRatio>=1?p.current||(p.current=setTimeout(()=>{f({moduleId:e,modulePosition:a}),h(!0),p.current=null},2e3)):p.current&&(clearTimeout(p.current),p.current=null)})},{threshold:1});i.observe(t);let r=t.getBoundingClientRect(),o=window.innerHeight||document.documentElement.clientHeight,n=window.innerWidth||document.documentElement.clientWidth;return r.top>=0&&r.left>=0&&r.bottom{f({moduleId:e,modulePosition:a}),h(!0),p.current=null},2e3)),()=>{p.current&&clearTimeout(p.current),i.disconnect()}},[g,e,a,f]),(0,t.jsx)("div",{ref:m,className:"hide-empty","data-module-id":e,children:s}))}],855602)},590238,e=>{"use strict";var t=e.i(537989),i=e.i(827049),r=e.i(695203),o=e.i(604323),l=e.i(991511);e.s(["AnalyticsBoundary",0,e=>((0,l.useRehydrateAtoms)([[t.pageIdAtom,e.pageId],[i.pageLocaleAtom,e.pageLocale],[r.deviceClassAtom,e.deviceClass],[o.metricsArticleDataAtom,e.metricsArticleData]]),null)])},703123,e=>{"use strict";let t=(0,e.i(751931).atom)({});e.s(["gsiEmailStatesAtom",0,t])},404893,e=>{"use strict";let t=(0,e.i(751931).atom)(!1);e.s(["googleLoginInitilizedAtom",0,t])},874905,e=>{"use strict";e.i(694914);var t=e.i(297647),i=e.i(241722),r=e.i(477716),o=e.i(475566),l=e.i(352194),a=e.i(671525),n=e.i(901351),s=e.i(310847),c=e.i(776169),u=e.i(422825),d=e.i(143851),m=e.i(703123),g=e.i(404893),h=e.i(367810),p=e.i(251392);function f({onLoad:e,prompt:f=!0,isUserLoggedIn:b}){let A=(0,l.useTranslations)("GoogleLogin"),y=(0,o.useSetAtom)(g.googleLoginInitilizedAtom),{loginWithGoogle:v,error:w,clearError:x}=function(){let e=(0,l.useTranslations)("GoogleLogin"),[t,i]=(0,r.useState)(null),g=(0,o.useSetAtom)(s.userHasLoggedInBeforeAtom),h=(0,o.useAtomValue)(m.gsiEmailStatesAtom),{updateEmailSubscriptions:p}=(0,u.useEmailPreferences)(),{refresh:f}=(0,a.usePageNavigation)(),{syncPreferencesFromUpsx:b}=(0,c.usePreferences)(),{authSuccess:A,authRedirect:y}=(0,d.useUserLogin)();return{loginWithGoogle:(0,r.useCallback)(async t=>{let{credential:r}=t;i(null);try{let e=await n.upsxClient.auth.loginWithGoogle({google_id_token:r}),t=e?.isFirstLogin;await A({email:e.email,userID:e.userID,type:t?"signup":"login"},!1);let{newsletter:i,weekly:o,marketing:l,alwaysSubscribe:a}=h||{};return(t||a)&&await p({newsletter:i,weekly:o,marketing:l}).catch(e=>{console.error("Failed to update email subscriptions",e)}),y(),!0}catch(t){console.error("Failed to login with Google",t);try{let r=t?.data,o=r?.messageCode;if(!o)throw Error("No Error Message");switch(o){case 1e3:case 1026:case 1033:i({header:e("emailAlreadyUsedGoogleHeader"),body:e.raw("emailAlreadyUsedGoogleBody")});break;case 1027:case 1030:i({header:e("emailAlreadyRegisteredGoogleHeader"),body:e("emailAlreadyRegisteredGoogleBody")});break;default:throw Error("No Specific Error")}}catch(t){i({header:e("somethingWentWrong")})}return!1}},[g,b,f,A,y,p,h]),error:t,clearError:(0,r.useCallback)(()=>{i(null)},[])}}(),E=(0,p.useRefMemo)(v);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.default,{src:"https://accounts.google.com/gsi/client",onLoad:()=>{let t=window.google?.accounts?.id;t&&(t.initialize({client_id:"797231885346-rai9vgnvf4u38enai8bhginnnrh5uvch.apps.googleusercontent.com",context:"signin",ux_mode:"popup",use_fedcm_for_prompt:!0,callback:e=>{E.current?.(e)}}),y(!0)),e?.(),!b&&f&&t?.prompt()},id:"google-gsi-script"}),(0,t.jsx)(h.Dialog,{open:!!w,onOpenChange:e=>!e&&x(),children:(0,t.jsx)(h.BasicDialog,{showCloseButton:!1,title:w?.header||"",description:(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:w?.body||""}}),primaryAction:{label:A("cancel")}})})]})}e.s(["GoogleAuthScript",()=>f],874905)},622958,e=>{"use strict";var t=e.i(297647),i=e.i(274432),r=e.i(632137),o=e.i(352194);let l=()=>{let e=(0,o.useTranslations)("Header");return(0,t.jsx)("div",{className:(0,r.cn)("m-4 md:hidden"),children:(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("button",{style:{boxShadow:"0 4px 16px 0 rgba(0, 0, 0, 0.08), 0 0 32px 0 rgba(0, 0, 0, 0.12)"},className:(0,r.cn)("box-border flex h-12 w-full items-center rounded-3xl border-2 border-[#3A61CC00] bg-white! pl-9.5 text-gray-900 outline-0! transition-all hover:border-blue-500 focus-visible:border-blue-500 focus-visible:text-gray-400"),type:"button",onClick:()=>{document?.querySelector?.(".twcSearchTrigger")?.click?.()},children:e("searchPlaceholderText")}),(0,t.jsx)(i.Search,{className:"absolute top-1/2 left-4 flex size-4 -translate-y-1/2 transform items-center text-gray-900"})]})})};e.s(["FakeSearchBar",0,l,"default",0,l])},406752,e=>{"use strict";var t=e.i(477716),i=e.i(295553),r=e.i(991511),o=e.i(475566),l=e.i(710402),a=e.i(310847);e.s(["LocationBoundary",0,({locationPoint:e})=>{let n=(0,o.useAtomValue)(a.wxuUserRecentAddressesAtom),[,s]=(0,o.useAtom)(i.pageLocationDataAtom),c=(0,t.useMemo)(()=>(0,l.fromLocationPoint)(e,n),[e,n]);(0,r.useRehydrateAtoms)([[i.pageLocationDataAtom,c]]);let u=(0,t.useRef)(null);return(0,t.useEffect)(()=>{let t=e.location.placeId;u.current!==t&&(s((0,l.fromLocationPoint)(e,n)),u.current=t)},[e,n,s]),null}])},711899,e=>{e.v(t=>Promise.all(["static/chunks/8198254d842f31ab.js"].map(t=>e.l(t))).then(()=>t(171714)))},137688,e=>{e.v(t=>Promise.all(["static/chunks/775f6992a5490e4c.js"].map(t=>e.l(t))).then(()=>t(72990)))}]);