(globalThis["TURBOPACK_remote_chunk_loading_global_wx-next-web"]||(globalThis["TURBOPACK_remote_chunk_loading_global_wx-next-web"]=[])).push(["object"==typeof document?document.currentScript:void 0,702727,e=>{"use strict";var t=e.i(247865),r=e.i(257419);function i({adIds:e}){let s=e.join(",");return(0,t.useEffect)(()=>{let e=s?s.split(","):[];(0,r.connectAdSlotsLate)(e)},[s]),null}e.s(["RadarMobileAdConnector",0,i,"default",0,i])},369507,e=>{"use strict";var t=e.i(247865),r=e.i(546446),i=e.i(257419),s=e.i(431879),a=e.i(293733),n=e.i(846018);function o({adIds:e}){let l=e.join(","),d=(0,r.useAtomValue)(n.radarVisitedAtom),c=(0,r.useAtomValue)(s.mapMenuOpenAtom),u=(0,r.useAtomValue)(a.radarFullscreenAtom),m=d&&!c&&!u;return(0,t.useEffect)(()=>{if(!m)return;let e=l?l.split(","):[];(0,i.connectAdSlotsLate)(e)},[l,m]),null}e.s(["RadarRailAdConnector",0,o,"default",0,o])},499239,e=>{"use strict";var t=e.i(981030),r=e.i(284007);(0,t.atom)("auth");let i=(0,t.atom)(null);(0,t.atom)(null);let s=(0,t.atom)(!1),a=(0,t.atom)(null),n=(0,r.atomWithStorage)("wxu-web/keyval:cart","",void 0,{getOnInit:!0}),o=(0,t.atom)(""),l=(0,t.atom)(null),d=(0,r.atomWithStorage)("wxu-web/keyval:eventChainId","",void 0,{getOnInit:!0}),c=(0,t.atom)("idle");e.s(["addressDataAtom",0,i,"billingPreviewDataAtom",0,l,"cartProductIdAtom",0,n,"checkoutValidationAtom",0,c,"eventChainIdAtom",0,d,"promoCodeAtom",0,a,"showSuccessDialogAtom",0,s,"tpccAtom",0,o])},81083,e=>{"use strict";var t=e.i(902875),r=e.i(247865),i=e.i(581014),s=e.i(118119),a=e.i(171176),n=e.i(877957),o=e.i(368847),l=e.i(983950),d=e.i(528600),c=e.i(731672),u=e.i(526824);e.s(["default",0,({initSignin:e,showLastName:m,hideConfirmPassword:f})=>{let[x,h]=(0,r.useState)(e),g=(0,i.useTranslations)("UserAuth"),{user:p,userProfile:v}=(0,d.useUser)(),{email:w,firstName:j}=v||{},b=(0,c.useUserLogout)(),{userLastName:y}=(0,u.useUserLastName)();return p?.isUserLoggedIn?(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"mb-6 flex items-end justify-between gap-1",children:[(0,t.jsx)(o.Text,{variant:"Title.M",color:"secondary",className:"font-semibold",children:g("yourAccount")}),(0,t.jsx)(n.Button,{variant:"link",type:"button",className:(0,o.textVariants)({className:"h-[revert] p-0",variant:"Body.M"}),onClick:()=>b(),children:g("logout")})]}),(0,t.jsx)(o.Text,{color:"secondary",children:[j,y].filter(Boolean).join(" ")}),(0,t.jsx)(o.Text,{color:"secondary",children:w})]}):(0,t.jsx)("div",{children:x?(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"mb-4 flex justify-between",children:[(0,t.jsx)(o.Text,{variant:"Title.M",className:"font-semibold",children:g("signin")}),(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsxs)(o.Text,{color:"secondary",children:[g("noAccount")," "]}),(0,t.jsx)(n.Button,{variant:"link",type:"button",className:(0,o.textVariants)({className:"h-[revert] p-0",variant:"Body.M",color:"secondary"}),onClick:()=>h(!1),children:g("signup")})]})]}),(0,t.jsx)(s.default,{loginBtnText:g("signinAndContinue")})]}):(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)(o.Text,{className:"mb-2",children:g("haveAccount")}),(0,t.jsxs)("div",{className:"flex justify-center gap-4",children:[(0,t.jsx)(n.Button,{variant:"secondary",className:"bg-gray-100",onClick:()=>h(!0),children:g("signin")}),(0,t.jsx)(l.default,{text:"signin_with",shape:"pill"})]})]}),(0,t.jsxs)("div",{className:"relative my-6",children:[(0,t.jsx)("div",{className:"absolute inset-0 flex items-center",children:(0,t.jsx)("div",{className:"w-full border-t border-gray-300"})}),(0,t.jsx)("div",{className:"relative flex justify-center text-sm",children:(0,t.jsx)("span",{className:"bg-white px-2 text-gray-500 uppercase",children:g("or")})})]}),(0,t.jsx)(o.Text,{variant:"Title.M",className:"mb-4 font-semibold",children:g("signup")}),(0,t.jsx)(a.default,{signupBtnText:g("signupAndContinue"),showLastName:m,hideConfirmPassword:f})]})})}])},118119,e=>{"use strict";var t=e.i(902875),r=e.i(247865),i=e.i(990420),s=e.i(732520),a=e.i(581014),n=e.i(725287),o=e.i(546446),l=e.i(924689),d=e.i(143851),c=e.i(226843),u=e.i(269767),m=e.i(240058),f=e.i(825440),x=e.i(368847),h=e.i(677988),g=e.i(877957),p=e.i(609958),v=e.i(558802),w=e.i(528600),j=e.i(725296),b=e.i(394481),y=e.i(918462);e.s(["default",0,({loginBtnText:e})=>{let A=(0,a.useTranslations)("UserAuth"),{login:N}=(0,d.useUserLogin)(),[C,M]=(0,r.useState)(!1),[S,I]=(0,r.useState)(null),E=(0,r.useMemo)(()=>l.z.object({email:l.z.email({message:A("invalidEmailError")}),password:l.z.string().min(8,{message:A("passwordMinLength")})}),[A]),{user:L}=(0,w.useUser)(),R=(0,o.useAtomValue)(b.privacyRegimeAtom)??j.default.EXEMPT,T=(0,n.useParams)()?.locale||"",{legalLinks:_}=(0,y.useFooterLinks)(R,T,L?.isUserLoggedIn||!1),P=(0,r.useMemo)(()=>_.find(e=>"termsOfUse"===e.titleTranslationKey),[_]),V=(0,r.useMemo)(()=>_.find(e=>"privacyPolicy"===e.titleTranslationKey),[_]),B=(0,i.useForm)({resolver:(0,s.zodResolver)(E),defaultValues:{email:"",password:""}}),D=async e=>{M(!0),I(null);try{let t=await N(e.email,e.password);t.success||(I((0,c.getErrorCodeMessage)(t.error.messageCode,(0,c.checkErrorFlag)("login",t.error.messageCode??0))),M(!1))}catch(e){I(A("loginGenericError")),M(!1),console.error("Login error:",e)}};return(0,t.jsxs)("div",{className:"@container/loginForm",children:[S&&(0,t.jsx)("div",{role:"alert",className:"rounded border border-red-200 bg-red-50 px-4 py-3 text-red-700",children:S}),(0,t.jsx)(u.Form,{...B,children:(0,t.jsxs)("form",{onSubmit:B.handleSubmit(D),children:[(0,t.jsx)(u.FormField,{control:B.control,name:"email",render:({field:e})=>(0,t.jsx)(u.FormItem,{children:(0,t.jsx)(u.FormControl,{children:(0,t.jsx)(f.Input,{...e,type:"email",label:A("email"),icon:p.Email})})})}),(0,t.jsx)(u.FormField,{control:B.control,name:"password",render:({field:e})=>(0,t.jsx)(u.FormItem,{children:(0,t.jsx)(u.FormControl,{children:(0,t.jsx)(h.PasswordInput,{...e,label:A("password"),icon:v.Locked})})})}),(0,t.jsxs)("div",{className:"prose mb-6 flex max-w-full flex-col justify-between gap-2 @lg/loginForm:flex-row-reverse @lg/loginForm:gap-6",children:[(0,t.jsx)("div",{className:"@max-lg/loginForm:text-right",children:(0,t.jsx)(m.default,{href:"/forgot-password",className:"text-sm whitespace-nowrap hover:underline",children:A("forgotPassword")})}),(0,t.jsx)(x.Text,{className:"m-0 @lg/loginForm:max-w-xl",dangerouslySetInnerHTML:{__html:A.raw("authenticationUniformityNote")}})]}),(0,t.jsx)(g.Button,{type:"submit",loading:C,disabled:C,children:e||A("signin")}),(0,t.jsx)(x.Text,{className:"my-4 py-2.5 text-[13px] font-normal",children:A.rich("agreeTermsContinue",{termsOfUse:e=>(0,t.jsx)(m.default,{href:P?.url||"",className:"text-blue-600 underline",children:e}),privacyPolicy:e=>(0,t.jsx)(m.default,{href:V?.url||"",className:"text-blue-600 underline",children:e})})})]})})]})}])},983950,e=>{"use strict";var t=e.i(902875),r=e.i(247865),i=e.i(404893),s=e.i(546446);e.s(["default",0,function({type:e="standard",text:a="continue_with",theme:n="outline",size:o="large",shape:l="rectangular",logo_alignment:d="center",className:c=""}){let u=(0,s.useAtomValue)(i.googleLoginInitilizedAtom),m=(0,r.useRef)(null);return(0,r.useEffect)(()=>{let t=window?.google?.accounts?.id;t&&t?.renderButton(m.current,{type:e,shape:l,theme:n,text:a,size:o,logo_alignment:d})},[e,n,o,a,l,d,u]),(0,t.jsx)("div",{id:"google-login-button",ref:m,className:`google-login-button ${c}`,"data-testid":"google-login-button"})}])},291967,e=>{"use strict";"u">typeof window&&window.document&&window.document.createElement,e.s(["composeEventHandlers",0,function(e,t,{checkForDefaultPrevented:r=!0}={}){return function(i){if(e?.(i),!1===r||!i.defaultPrevented)return t?.(i)}}])},144977,156207,e=>{"use strict";var t=e.i(247865);function r(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}e.s(["useComposedRefs",0,function(...e){return t.useCallback(function(...e){return t=>{let i=!1,s=e.map(e=>{let s=r(e,t);return i||"function"!=typeof s||(i=!0),s});if(i)return()=>{for(let t=0;t{let{children:r,...a}=e,n=t.useMemo(()=>a,Object.values(a));return(0,i.jsx)(s.Provider,{value:n,children:r})};return a.displayName=e+"Provider",[a,function(i){let a=t.useContext(s);if(a)return a;if(void 0!==r)return r;throw Error(`\`${i}\` must be used within \`${e}\``)}]},"createContextScope",0,function(e,r=[]){let s=[],a=()=>{let r=s.map(e=>t.createContext(e));return function(i){let s=i?.[e]||r;return t.useMemo(()=>({[`__scope${e}`]:{...i,[e]:s}}),[i,s])}};return a.scopeName=e,[function(r,a){let n=t.createContext(a),o=s.length;s=[...s,a];let l=r=>{let{scope:s,children:a,...l}=r,d=s?.[e]?.[o]||n,c=t.useMemo(()=>l,Object.values(l));return(0,i.jsx)(d.Provider,{value:c,children:a})};return l.displayName=r+"Provider",[l,function(i,s){let l=s?.[e]?.[o]||n,d=t.useContext(l);if(d)return d;if(void 0!==a)return a;throw Error(`\`${i}\` must be used within \`${r}\``)}]},function(...e){let r=e[0];if(1===e.length)return r;let i=()=>{let i=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let s=i.reduce((t,{useScope:r,scopeName:i})=>{let s=r(e)[`__scope${i}`];return{...t,...s}},{});return t.useMemo(()=>({[`__scope${r.scopeName}`]:s}),[s])}};return i.scopeName=r.scopeName,i}(a,...r)]}],156207)},534643,127864,337755,853233,556872,e=>{"use strict";var t=e.i(247865),r=globalThis?.document?t.useLayoutEffect:()=>{};e.s(["useLayoutEffect",0,r],127864),t[" useEffectEvent ".trim().toString()],t[" useInsertionEffect ".trim().toString()];var i=t[" useInsertionEffect ".trim().toString()]||r;Symbol("RADIX:SYNC_STATE"),e.s(["useControllableState",0,function({prop:e,defaultProp:r,onChange:s=()=>{},caller:a}){let[n,o,l]=function({defaultProp:e,onChange:r}){let[s,a]=t.useState(e),n=t.useRef(s),o=t.useRef(r);return i(()=>{o.current=r},[r]),t.useEffect(()=>{n.current!==s&&(o.current?.(s),n.current=s)},[s,n]),[s,a,o]}({defaultProp:r,onChange:s}),d=void 0!==e,c=d?e:n;{let r=t.useRef(void 0!==e);t.useEffect(()=>{let e=r.current;if(e!==d){let t=d?"controlled":"uncontrolled";console.warn(`${a} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}r.current=d},[d,a])}return[c,t.useCallback(t=>{if(d){let r="function"==typeof t?t(e):t;r!==e&&l.current?.(r)}else o(t)},[d,e,o,l])]}],534643),e.s(["usePrevious",0,function(e){let r=t.useRef({value:e,previous:e});return t.useMemo(()=>(r.current.value!==e&&(r.current.previous=r.current.value,r.current.value=e),r.current.previous),[e])}],337755),e.s(["useSize",0,function(e){let[i,s]=t.useState(void 0);return r(()=>{if(e){s({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,i;if(!Array.isArray(t)||!t.length)return;let a=t[0];if("borderBoxSize"in a){let e=a.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,i=t.blockSize}else r=e.offsetWidth,i=e.offsetHeight;s({width:r,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}s(void 0)},[e]),i}],853233);var s=e.i(352825),a=e.i(982538),n=e.i(902875),o=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,r)=>{let i=(0,a.createSlot)(`Primitive.${r}`),s=t.forwardRef((e,t)=>{let{asChild:s,...a}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,n.jsx)(s?i:r,{...a,ref:t})});return s.displayName=`Primitive.${r}`,{...e,[r]:s}},{});e.s(["Primitive",0,o,"dispatchDiscreteCustomEvent",0,function(e,t){e&&s.flushSync(()=>e.dispatchEvent(t))}],556872)},257419,e=>{"use strict";let t=(0,e.i(695881).createLogger)("connectAdSlotsLate");e.s(["connectAdSlotsLate",0,e=>{0!==e.length&&(window.__HeliosQ=window.__HeliosQ||[],window.__HeliosQ.push(()=>{let r=window.__Helios;r?.waitForEvent?r.waitForEvent("AD_SLOTS_CONNECTED",{buffered:!0}).then(()=>{try{let t=r?.slotsConfig,i=window.__HeliosConfig?.slotsConfig;if(!r?.findAndConnectAdNode||!t&&!i)return;let s=new Set((r.adNodes??[]).map(e=>e.id)),a=new Set((window.googletag?.pubads?.().getSlots?.()??[]).map(e=>e.getSlotElementId?.())),n=[];for(let o of e){if(s.has(o)||a.has(o))continue;let e=t?.[o]??i?.[o];if(!e||!document.getElementById(o))continue;let l=r.findAndConnectAdNode(o,e);l&&(s.add(o),n.push(l))}n.length>0&&r.emit("AD_NODES_CONNECTED",{adNodes:n})}catch(r){t.error("Error connecting late ad slots",{err:r,adIds:e})}}).catch(r=>{t.error("Unexpected error in late ad slot connect",{err:r,adIds:e})}):t.warn("No Helios waitForEvent; skipping late ad slot connect",{adIds:e})}))}])},723356,e=>{"use strict";var t=e.i(902875),r=e.i(247865),i=e.i(747961);let s=(0,r.forwardRef)(({title:e,titleId:r,desc:i,descId:s,...a},n)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":r,"aria-describedby":s,...a,children:[i?(0,t.jsx)("desc",{id:s,children:i}):null,void 0===e?(0,t.jsx)("title",{id:r,children:"Person"}):e?(0,t.jsx)("title",{id:r,children:e}):null,(0,t.jsx)("g",{fill:"currentColor",children:(0,t.jsx)("path",{d:"M8.936 15H7.07a.92.92 0 0 1-.66-.283.98.98 0 0 1-.274-.683v-3.379a.92.92 0 0 1-.66-.283.98.98 0 0 1-.273-.682V6.793c0-.384.148-.752.41-1.024.263-.272.619-.424.99-.424h2.8c.371 0 .727.152.99.424s.41.64.41 1.024V9.69a.98.98 0 0 1-.273.682.92.92 0 0 1-.66.283v3.38a.98.98 0 0 1-.274.682.92.92 0 0 1-.66.283M6.603 6.31a.43.43 0 0 0-.339.132.46.46 0 0 0-.128.351V9.69h.934v4.345h1.866V9.69h.934V6.793a.47.47 0 0 0-.128-.35.44.44 0 0 0-.339-.133zM8.003 4.862c-.37 0-.73-.113-1.037-.325a1.9 1.9 0 0 1-.687-.867 2 2 0 0 1-.107-1.116c.072-.374.25-.718.511-.988s.594-.454.956-.529a1.8 1.8 0 0 1 1.078.11c.342.146.633.394.838.711.205.318.315.691.315 1.073 0 .512-.197 1.003-.547 1.365s-.825.566-1.32.566m0-2.896a.9.9 0 0 0-.518.162.96.96 0 0 0-.344.434 1 1 0 0 0 .202 1.052c.13.135.297.227.478.264a.9.9 0 0 0 .54-.055.94.94 0 0 0 .418-.356.99.99 0 0 0-.116-1.219.92.92 0 0 0-.66-.282"})})]})),a=r.default.forwardRef((e,r)=>(0,t.jsx)(i.BaseIcon,{ref:r,icon:s,...e}));a.displayName="Person",e.s(["Person",0,a])},105335,e=>{"use strict";var t=e.i(902875),r=e.i(247865),i=e.i(747961);let s=(0,r.forwardRef)(({title:e,titleId:r,desc:i,descId:s,...a},n)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":r,"aria-describedby":s,...a,children:[i?(0,t.jsx)("desc",{id:s,children:i}):null,void 0===e?(0,t.jsx)("title",{id:r,children:"Warning"}):e?(0,t.jsx)("title",{id:r,children:e}):null,(0,t.jsxs)("g",{fill:"currentColor",clipPath:"url(#a)",children:[(0,t.jsx)("path",{d:"M8.81 11.454a.8.8 0 1 1-1.6 0 .8.8 0 0 1 1.6 0M8.747 8.8V4.4a.75.75 0 1 0-1.5 0v4.4a.75.75 0 1 0 1.5 0"}),(0,t.jsx)("path",{fillRule:"evenodd",d:"M.83 8a7.167 7.167 0 1 1 14.333 0A7.167 7.167 0 0 1 .83 8m7.167-6.166a6.167 6.167 0 1 0 0 12.333 6.167 6.167 0 0 0 0-12.333",clipRule:"evenodd"})]}),(0,t.jsx)("defs",{children:(0,t.jsx)("clipPath",{id:"a",children:(0,t.jsx)("path",{fill:"currentColor",d:"M0 0h16v16H0z"})})})]})),a=r.default.forwardRef((e,r)=>(0,t.jsx)(i.BaseIcon,{ref:r,icon:s,...e}));a.displayName="Warning",e.s(["Warning",0,a])},609958,e=>{"use strict";var t=e.i(902875),r=e.i(247865),i=e.i(747961);let s=(0,r.forwardRef)(({title:e,titleId:r,desc:i,descId:s,...a},n)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":r,"aria-describedby":s,...a,children:[i?(0,t.jsx)("desc",{id:s,children:i}):null,void 0===e?(0,t.jsx)("title",{id:r,children:"Email"}):e?(0,t.jsx)("title",{id:r,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",d:"M14 3H2a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1m-1.1 1L8 7.39 3.1 4zM2 12V4.455L7.715 8.41a.5.5 0 0 0 .57 0L14 4.455V12z"})]})),a=r.default.forwardRef((e,r)=>(0,t.jsx)(i.BaseIcon,{ref:r,icon:s,...e}));a.displayName="Email",e.s(["Email",0,a])},558802,e=>{"use strict";var t=e.i(902875),r=e.i(247865),i=e.i(747961);let s=(0,r.forwardRef)(({title:e,titleId:r,desc:i,descId:s,...a},n)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":r,"aria-describedby":s,...a,children:[i?(0,t.jsx)("desc",{id:s,children:i}):null,void 0===e?(0,t.jsx)("title",{id:r,children:"Locked"}):e?(0,t.jsx)("title",{id:r,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",d:"M12 7h-1V4a3 3 0 0 0-6 0v3H4a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1M6 4a2 2 0 1 1 4 0v3H6zm6 10H4V8h8z"})]})),a=r.default.forwardRef((e,r)=>(0,t.jsx)(i.BaseIcon,{ref:r,icon:s,...e}));a.displayName="Locked",e.s(["Locked",0,a])},245308,e=>{"use strict";var t=e.i(902875),r=e.i(247865),i=e.i(747961);let s=(0,r.forwardRef)(({title:e,titleId:r,desc:i,descId:s,...a},n)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":r,"aria-describedby":s,...a,children:[i?(0,t.jsx)("desc",{id:s,children:i}):null,void 0===e?(0,t.jsx)("title",{id:r,children:"View"}):e?(0,t.jsx)("title",{id:r,children:e}):null,(0,t.jsxs)("g",{fill:"currentColor",children:[(0,t.jsx)("path",{d:"M15.47 7.83A8.35 8.35 0 0 0 8 2.5 8.35 8.35 0 0 0 .53 7.83a.5.5 0 0 0 0 .34A8.35 8.35 0 0 0 8 13.5a8.35 8.35 0 0 0 7.47-5.33.5.5 0 0 0 0-.34M8 12.5c-2.65 0-5.45-1.965-6.465-4.5C2.55 5.465 5.35 3.5 8 3.5s5.45 1.965 6.465 4.5C13.45 10.535 10.65 12.5 8 12.5"}),(0,t.jsx)("path",{d:"M8 5a3 3 0 1 0 0 6 3 3 0 0 0 0-6m0 5a2 2 0 1 1 0-4 2 2 0 0 1 0 4"})]})]})),a=r.default.forwardRef((e,r)=>(0,t.jsx)(i.BaseIcon,{ref:r,icon:s,...e}));a.displayName="View",e.s(["View",0,a])},406752,e=>{"use strict";var t=e.i(247865),r=e.i(295553),i=e.i(991511),s=e.i(546446),a=e.i(726249),n=e.i(935807),o=e.i(919101),l=e.i(527091),d=e.i(767685),c=e.i(310847),u=e.i(439766);e.s(["LocationBoundary",0,({locationPoint:e,canonicalLocation:m})=>{let f=(0,s.useAtomValue)(c.wxuUserRecentAddressesAtom),x=(0,s.useAtomValue)(c.wxuUserRecentLocationsDataAtom),[,h]=(0,s.useAtom)(r.pageLocationDataAtom),g=(0,s.useSetAtom)(u.activeLocationAtom),p=(0,t.useMemo)(()=>{let t,r;return m?(0,d.honorRecentLocationName)(m,x):(t=(0,o.getAddressForLocationData)(e.location,f),r=void 0,{displayName:t.displayName,adminDistrict:t.adminDistrict,geocode:(0,a.formatGeocode)(`${t.latitude},${t.longitude}`),placeId:t.placeId,featureId:t.featureId,city:t.city,countryCode:t.countryCode,adminDistrictCode:t.adminDistrictCode||"",presentationName:(0,n.getLocationPresentationName)(t,[],!1,r),name:(0,n.getLocationName)(t,[],!1,r),context:(0,n.getLocationContext)(t,[],!1,r),ianaTimeZone:(0,l.sanitizeIanaTimeZone)(t.ianaTimeZone),postalCode:t.postalCode,address:t.address||"",type:t.type,dmaCd:t.dmaCd||"",isDisputedLocation:t.disputedArea})},[m,e,f,x]);(0,i.useRehydrateAtoms)([[r.pageLocationDataAtom,p]]);let v=(0,t.useRef)(null);return(0,t.useEffect)(()=>{h(p);let e=p.placeId;v.current!==e&&(g({placeId:p.placeId,geocode:p.geocode,featureId:p.featureId}),v.current=e)},[p,h,g]),null}],406752)},431879,e=>{"use strict";let t=(0,e.i(981030).atom)(!1);e.s(["mapMenuOpenAtom",0,t])},836195,e=>{"use strict";var t=e.i(981030);let r=(0,t.atom)(null),i=(0,t.atom)(!1);e.s(["radarMapHeadingAtom",0,r,"radarPageHeadingMountedAtom",0,i])},846018,e=>{"use strict";let t=(0,e.i(284007).atomWithStorage)("wx-next/radar:visited",!1,void 0,{getOnInit:!0});e.s(["radarVisitedAtom",0,t])},355865,e=>{"use strict";var t=e.i(902875),r=e.i(247865),i=e.i(546446),s=e.i(581014),a=e.i(632137),n=e.i(431879),o=e.i(836195);let l=({locationName:e,className:l})=>{let d=(0,s.useTranslations)("InteractiveRadar"),c=(0,i.useAtomValue)(o.radarMapHeadingAtom),u=(0,i.useAtomValue)(n.mapMenuOpenAtom),[m,f]=(0,r.useState)(!1);(0,r.useEffect)(()=>f(!0),[]);let x=(0,i.useSetAtom)(o.radarPageHeadingMountedAtom);(0,r.useEffect)(()=>(x(!0),()=>x(!1)),[x]);let h=d("interactiveRadarMap",{location:e}).trim(),g=m&&c?d("timelineMapCaption",{location:c.locationName,layer:d(c.layerLabelKey)}):h;return(0,t.jsx)("h1",{"data-component":"radar-map-heading",className:(0,a.cn)("z-sticky pointer-events-none absolute top-0 flex items-center transition-[left] duration-300 ease-[cubic-bezier(0.32,0.72,0,1)]","right-0 h-7 justify-center bg-white px-4","md:right-auto md:h-[37px] md:justify-start md:bg-transparent md:pr-0",u?"left-[370px]":"left-0",l),children:(0,t.jsx)("span",{className:"min-w-0 truncate text-[12px] leading-[1.2] font-semibold text-gray-900 md:max-w-[224px] xl:max-w-[420px]",children:g})})};e.s(["RadarMapHeading",0,l,"default",0,l])},36948,e=>{"use strict";var t=e.i(902875);let r=(0,e.i(389379).default)(()=>e.A(467814).then(e=>e.InteractiveRadar),{loadableGenerated:{modules:[469120]},ssr:!1,loading:()=>(0,t.jsx)("div",{"aria-hidden":!0,className:"size-full min-h-0 flex-1 bg-gray-100"})});e.s(["InteractiveRadarShell",0,e=>(0,t.jsx)(r,{...e})])},677988,e=>{"use strict";var t=e.i(902875),r=e.i(247865),i=e.i(825440),s=e.i(877957),a=e.i(747961);let n=(0,r.forwardRef)(({title:e,titleId:r,desc:i,descId:s,...a},n)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":r,"aria-describedby":s,...a,children:[i?(0,t.jsx)("desc",{id:s,children:i}):null,void 0===e?(0,t.jsx)("title",{id:r,children:"View Off"}):e?(0,t.jsx)("title",{id:r,children:e}):null,(0,t.jsxs)("g",{fill:"currentColor",children:[(0,t.jsx)("path",{d:"M2.277 10.923a.48.48 0 0 0 .681-.004.53.53 0 0 0-.004-.742A7 7 0 0 1 1.534 8C2.55 5.465 5.35 3.5 8 3.5a6.2 6.2 0 0 1 1.686.258.55.55 0 0 0 .547-.132c.259-.261.171-.7-.181-.808A7.4 7.4 0 0 0 8 2.5 8.35 8.35 0 0 0 .53 7.83a.5.5 0 0 0 0 .34 8 8 0 0 0 1.747 2.753"}),(0,t.jsx)("path",{d:"M6 7.865a2 2 0 0 1 1.85-1.85l.905-.91A3 3 0 0 0 5.09 8.77zM15.47 7.83a8.2 8.2 0 0 0-2.87-3.72l2.048-2.052a.499.499 0 0 0-.706-.705l-12.59 12.59a.499.499 0 0 0 .705.705l2.198-2.198A7.65 7.65 0 0 0 8 13.5a8.35 8.35 0 0 0 7.47-5.33.5.5 0 0 0 0-.34M10 8a2 2 0 0 1-3 1.72L9.72 7A2 2 0 0 1 10 8m-2 4.5a6.5 6.5 0 0 1-3-.79l1.27-1.27a3 3 0 0 0 4.175-4.175L11.88 4.83A7.27 7.27 0 0 1 14.465 8C13.45 10.535 10.65 12.5 8 12.5"})]})]})),o=r.default.forwardRef((e,r)=>(0,t.jsx)(a.BaseIcon,{ref:r,icon:n,...e}));o.displayName="ViewOff";var l=e.i(245308);let d=r.default.forwardRef(({className:e,label:a="Password",error:n,...d},c)=>{let[u,m]=(0,r.useState)(!1);return(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(i.Input,{label:a,type:u?"text":"password",error:n,ref:c,...d,onClear:void 0}),(0,t.jsx)(s.Button,{type:"button",onClick:()=>{m(!u)},variant:"ghost",size:"text","data-testid":"password-toggle-button",className:"absolute top-4 right-0 flex items-center hover:bg-transparent",children:u?(0,t.jsx)(o,{className:"h-4 w-4 text-gray-500"}):(0,t.jsx)(l.View,{className:"h-4 w-4 text-gray-500"})})]})});d.displayName="PasswordInput",e.s(["PasswordInput",0,d],677988)},790010,e=>{"use strict";var t=e.i(245943),r=e.i(45846),i=e.i(143851);e.s(["useUserSignup",0,function(){let{authSuccess:e,authRedirect:s}=(0,i.useUserLogin)();return{signup:async(i,s=!0,a={})=>{try{let t=await (i.password?r.upsxClient.auth.register({email:i.email,password:i.password,firstName:i.firstName}):r.upsxClient.auth.registerPasswordless({email:i.email,firstName:i.firstName}));return await e({email:t.email,userID:t.userID,type:"signup"},s,a),{success:!0,data:{email:t.email,userID:t.userID}}}catch(e){if(console.error("Failed to signup",e),e instanceof t.APIError){let t=e.data;return{success:!1,error:{code:e.code,...t}}}return{success:!1,error:{}}}},authRedirect:s}}])}]);