(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,226843,13635,963630,576816,e=>{"use strict";let t={1027:'This email address is already registered with an account. Please click "Log In" below to sign in.',11001:'Your password cannot contain the character combination "". Please try another password.',1198:"Too many failed login attempts. Please try again later.",938:e=>e?"Email or password is invalid. Please try again":"Email not found. Try another email",936:"This email address is already registered with an account. Please log in.",1134:(e,t)=>e&&t?t:t||"Must contain at least one lowercase, uppercase, special character, and a digit",1122:"Unfortunately, you've exceeded the daily limit for requests to reset your password. For security purposes, we ask that you try again later.",967:"The password you entered isn't working. Please try again, or click Forgot Password to select a new password.",1015:"Sorry, but that password is too similar to your previous one. Please try a different password.",1187:"Sorry, this password reset link has expired. To get a new reset link, please click Forgot Password.",1185:"Sorry, but it looks like the password reset link isn't working. To get a new reset link, please click Forgot Password.",1186:"Sorry, this password reset link has already been used. To get a new reset link, please click Forgot Password.",966:"Email or password is invalid. Please try again.",975:"Your password reset link has expired. Please request a new link",974:"Your password reset link has expired. Please request a new link",1038:"Email Address is invalid, Try another email."};e.s(["getErrorCodeMessage",0,function(e,r,n){let o=e&&t[e];return("function"==typeof o?o(r,n):o)||"Sorry, it looks we're having temporary problems. Please try again later."}],226843);var r=e.i(592121),n=e.i(959194),o=e.i(947118),i=e.i(737801);e.s(["useSignupStart",0,(e={})=>{let t=(0,o.useIsInitialized)(),s=(0,i.useEventAttributes)(),[a,l]=(0,r.useState)(!1),u=(0,r.useRef)(!1),c=(0,r.useMemo)(()=>{let t={...s,formVariant:e.formVariant,sourcePage:e.sourcePage,sourceModule:e.sourceModule,sourceElement:e.sourceElement,sourcePosition:e.sourcePosition,experimentJoinList:e.experimentJoinList,mParticleGranted:e.mParticleGranted??!0};return void 0===t.formVariant&&delete t.formVariant,void 0===t.sourcePage&&delete t.sourcePage,void 0===t.sourceModule&&delete t.sourceModule,void 0===t.sourceElement&&delete t.sourceElement,void 0===t.sourcePosition&&delete t.sourcePosition,void 0===t.experimentJoinList&&delete t.experimentJoinList,t},[s,e.formVariant,e.sourcePage,e.sourceModule,e.sourceElement,e.sourcePosition,e.experimentJoinList,e.mParticleGranted]);return(0,r.useEffect)(()=>{(0,n.areObjectValuesDefined)(c)&&!a&&l(!0)},[c,a]),(0,r.useCallback)(async()=>{if(t&&a&&!u.current)try{window.mParticle?.logEvent?.("signup-start",window.mParticle?.EventType?.Other,c),u.current=!0,console.debug(`MParticle: Event "signup-start" tracked - ${c.pageId}`)}catch(e){console.error('MParticle: Event "signup-start" failed',e)}},[t,c,a])}],13635),e.s(["useSignupAbandon",0,(e={})=>{let t=(0,i.useEventAttributes)(),n=(0,r.useMemo)(()=>{let r={...t,formVariant:e.formVariant,sourcePage:e.sourcePage,sourceModule:e.sourceModule,sourceElement:e.sourceElement,sourcePosition:e.sourcePosition,experimentJoinList:e.experimentJoinList,mParticleGranted:e.mParticleGranted??!0};return void 0!==e.url&&(r.url=e.url),void 0!==e.tpcc&&(r.tpcc=e.tpcc),void 0!==e.linkReferral&&(r.linkReferral=e.linkReferral),void 0===r.formVariant&&delete r.formVariant,void 0===r.sourcePage&&delete r.sourcePage,void 0===r.sourceModule&&delete r.sourceModule,void 0===r.sourceElement&&delete r.sourceElement,void 0===r.sourcePosition&&delete r.sourcePosition,void 0===r.experimentJoinList&&delete r.experimentJoinList,r},[t,e.formVariant,e.sourcePage,e.sourceModule,e.sourceElement,e.sourcePosition,e.url,e.tpcc,e.linkReferral,e.experimentJoinList,e.mParticleGranted]);(0,r.useEffect)(()=>{let e=()=>{if(window.mParticle?.isInitialized?.())try{window.mParticle?.logEvent?.("signup-abandon",window.mParticle?.EventType?.Other,n),console.debug(`MParticle: Event "signup-abandon" tracked - ${n.pageId}`)}catch(e){console.error('MParticle: Event "signup-abandon" failed',e)}};return window.addEventListener("beforeunload",e),window.addEventListener("blur",e),()=>{window.removeEventListener("beforeunload",e),window.removeEventListener("blur",e)}},[n])}],963630),e.s(["useSignupComplete",0,(e={})=>{let t=(0,o.useIsInitialized)(),s=(0,i.useEventAttributes)(),[a,l]=(0,r.useState)(!1),u=(0,r.useRef)(!1),c=(0,r.useMemo)(()=>{let t={...s,formVariant:e.formVariant,sensitiveDataAuthorization:e.sensitiveDataAuthorization,deviceTimeZone:e.deviceTimeZone,sourcePage:e.sourcePage,sourceModule:e.sourceModule,sourceElement:e.sourceElement,sourcePosition:e.sourcePosition,mParticleGranted:e.mParticleGranted??!0};return void 0!==e.url&&(t.url=e.url),void 0===t.formVariant&&delete t.formVariant,void 0===t.sensitiveDataAuthorization&&delete t.sensitiveDataAuthorization,void 0===t.deviceTimeZone&&delete t.deviceTimeZone,void 0===t.sourcePage&&delete t.sourcePage,void 0===t.sourceModule&&delete t.sourceModule,void 0===t.sourceElement&&delete t.sourceElement,void 0===t.sourcePosition&&delete t.sourcePosition,t},[s,e.formVariant,e.url,e.sensitiveDataAuthorization,e.deviceTimeZone,e.sourcePage,e.sourceModule,e.sourceElement,e.sourcePosition,e.mParticleGranted]);return(0,r.useEffect)(()=>{(0,n.areObjectValuesDefined)(c)&&!a&&l(!0)},[c,a]),(0,r.useCallback)(async()=>{if(t&&a&&!u.current)try{window.mParticle?.logEvent?.("signup-complete",window.mParticle?.EventType?.Other,c),u.current=!0,console.debug(`MParticle: Event "signup-complete" tracked - ${c.pageId}`)}catch(e){console.error('MParticle: Event "signup-complete" failed',e)}},[t,c,a])}],576816)},617145,e=>{"use strict";var t=e.i(592121),r=e.i(546446),n=e.i(491045);let o={sourcePage:null,sourceModule:null,sourceElement:null,sourceUpsellPlacement:null};var i=e.i(959194);e.s(["usePurchaseSourceAttributes",0,()=>{let e=(0,r.useAtomValue)(n.purchaseSourceAttributionAtom),s=function(e){if(!e||"string"!=typeof e)return o;let t=e.split("-");if("mktg"!==t[0])return o;let r=t[1]||null,n=t[2]||null,i=t[3]||null,s=n&&n.toLowerCase().includes("upsell")?n:null;return{sourcePage:r,sourceModule:n,sourceElement:i,sourceUpsellPlacement:s}}((0,i.getTpcc)()),a=e?.sourcePage??s.sourcePage,l=e?.sourceModule??s.sourceModule,u=e?.sourceElement??s.sourceElement,c=e?.sourceUpsellPlacement??s.sourceUpsellPlacement;return(0,t.useMemo)(()=>({...a&&{sourcePage:a},...l&&{sourceModule:l},...u&&{sourceElement:u},...c&&{sourceUpsellPlacement:c}}),[a,l,u,c])}],617145)},782847,144977,156207,291967,127864,534643,653747,556872,681488,723356,526824,e=>{"use strict";var t=e.i(592121),r=e.i(959194),n=e.i(947118),o=e.i(737801),i=e.i(617145);e.s(["usePurchaseStart",0,e=>{let s=(0,n.useIsInitialized)(),a=(0,o.useEventAttributes)(),l=(0,i.usePurchaseSourceAttributes)(),[u,c]=(0,t.useState)(!1),d=(0,t.useRef)(!1),m=(0,t.useMemo)(()=>{let t={...a,...l,step:e.step??"start",accountCreated:e.accountCreated??!1,accountLogin:e.accountLogin??!1,completed:e.completed??!1,eventChainId:e.eventChainId,premiumProductId:e.premiumProductId??void 0,weatherMode:e.weatherMode??"normal",experimentJoinList:e.experimentJoinList??void 0,mParticleGranted:e.mParticleGranted??!0};return void 0===t.premiumProductId&&delete t.premiumProductId,void 0===t.experimentJoinList&&delete t.experimentJoinList,t},[a,l,e.step,e.accountCreated,e.accountLogin,e.completed,e.eventChainId,e.premiumProductId,e.weatherMode,e.experimentJoinList,e.mParticleGranted]);return(0,t.useEffect)(()=>{(0,r.areObjectValuesDefined)(m)&&!u&&c(!0)},[m,u]),(0,t.useCallback)(async()=>{if(s&&u&&!d.current)try{window.mParticle?.logEvent?.("purchase-start",window.mParticle?.EventType?.Other,m),d.current=!0,console.debug(`MParticle: Event "purchase-start" tracked - ${m.pageId}`)}catch(e){console.error('MParticle: Event "purchase-start" failed',e)}},[s,m,u])}],782847);var s=e.i(699173);function a(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function l(...e){return t.useCallback(function(...e){return t=>{let r=!1,n=e.map(e=>{let n=a(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t{let r=n.map(e=>t.createContext(e));return function(n){let o=n?.[e]||r;return t.useMemo(()=>({[`__scope${e}`]:{...n,[e]:o}}),[n,o])}};return o.scopeName=e,[function(r,o){let i=t.createContext(o),a=n.length;n=[...n,o];let l=r=>{let{scope:n,children:o,...l}=r,u=n?.[e]?.[a]||i,c=t.useMemo(()=>l,Object.values(l));return(0,s.jsx)(u.Provider,{value:c,children:o})};return l.displayName=r+"Provider",[l,function(n,s){let l=s?.[e]?.[a]||i,u=t.useContext(l);if(u)return u;if(void 0!==o)return o;throw Error(`\`${n}\` must be used within \`${r}\``)}]},function(...e){let r=e[0];if(1===e.length)return r;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=n.reduce((t,{useScope:r,scopeName:n})=>{let o=r(e)[`__scope${n}`];return{...t,...o}},{});return t.useMemo(()=>({[`__scope${r.scopeName}`]:o}),[o])}};return n.scopeName=r.scopeName,n}(o,...r)]}function c(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}e.s(["useComposedRefs",0,l],144977),e.s(["createContext",0,function(e,r){let n=t.createContext(r),o=e=>{let{children:r,...o}=e,i=t.useMemo(()=>o,Object.values(o));return(0,s.jsx)(n.Provider,{value:i,children:r})};return o.displayName=e+"Provider",[o,function(o){let i=t.useContext(n);if(i)return i;if(void 0!==r)return r;throw Error(`\`${o}\` must be used within \`${e}\``)}]},"createContextScope",0,u],156207),"u">typeof window&&window.document&&window.document.createElement,e.s(["composeEventHandlers",0,c],291967);var d=globalThis?.document?t.useLayoutEffect:()=>{};e.s(["useLayoutEffect",0,d],127864),t[" useEffectEvent ".trim().toString()],t[" useInsertionEffect ".trim().toString()];var m=t[" useInsertionEffect ".trim().toString()]||d;function f({prop:e,defaultProp:r,onChange:n=()=>{},caller:o}){let[i,s,a]=function({defaultProp:e,onChange:r}){let[n,o]=t.useState(e),i=t.useRef(n),s=t.useRef(r);return m(()=>{s.current=r},[r]),t.useEffect(()=>{i.current!==n&&(s.current?.(n),i.current=n)},[n,i]),[n,o,s]}({defaultProp:r,onChange:n}),l=void 0!==e,u=l?e:i;{let r=t.useRef(void 0!==e);t.useEffect(()=>{let e=r.current;if(e!==l){let t=l?"controlled":"uncontrolled";console.warn(`${o} 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=l},[l,o])}return[u,t.useCallback(t=>{if(l){let r="function"==typeof t?t(e):t;r!==e&&a.current?.(r)}else s(t)},[l,e,s,a])]}Symbol("RADIX:SYNC_STATE"),e.s(["useControllableState",0,f],534643);var p=e=>{var r;let n,o,{present:i,children:s}=e,a=function(e){var r,n;let[o,i]=t.useState(),s=t.useRef(null),a=t.useRef(e),l=t.useRef("none"),[u,c]=(r=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},t.useReducer((e,t)=>n[e][t]??e,r));return t.useEffect(()=>{let e=h(s.current);l.current="mounted"===u?e:"none"},[u]),d(()=>{let t=s.current,r=a.current;if(r!==e){let n=l.current,o=h(t);e?c("MOUNT"):"none"===o||t?.display==="none"?c("UNMOUNT"):r&&n!==o?c("ANIMATION_OUT"):c("UNMOUNT"),a.current=e}},[e,c]),d(()=>{if(o){let e,t=o.ownerDocument.defaultView??window,r=r=>{let n=h(s.current).includes(CSS.escape(r.animationName));if(r.target===o&&n&&(c("ANIMATION_END"),!a.current)){let r=o.style.animationFillMode;o.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=r)})}},n=e=>{e.target===o&&(l.current=h(s.current))};return o.addEventListener("animationstart",n),o.addEventListener("animationcancel",r),o.addEventListener("animationend",r),()=>{t.clearTimeout(e),o.removeEventListener("animationstart",n),o.removeEventListener("animationcancel",r),o.removeEventListener("animationend",r)}}c("ANIMATION_END")},[o,c]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:t.useCallback(e=>{s.current=e?getComputedStyle(e):null,i(e)},[])}}(i),u="function"==typeof s?s({present:a.isPresent}):t.Children.only(s),c=l(a.ref,(r=u,(o=(n=Object.getOwnPropertyDescriptor(r.props,"ref")?.get)&&"isReactWarning"in n&&n.isReactWarning)?r.ref:(o=(n=Object.getOwnPropertyDescriptor(r,"ref")?.get)&&"isReactWarning"in n&&n.isReactWarning)?r.props.ref:r.props.ref||r.ref));return"function"==typeof s||a.isPresent?t.cloneElement(u,{ref:c}):null};function h(e){return e?.animationName||"none"}p.displayName="Presence",e.s(["Presence",0,p],653747);var v=e.i(798973),g=e.i(982538),w=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,r)=>{let n=(0,g.createSlot)(`Primitive.${r}`),o=t.forwardRef((e,t)=>{let{asChild:o,...i}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,s.jsx)(o?n:r,{...i,ref:t})});return o.displayName=`Primitive.${r}`,{...e,[r]:o}},{});e.s(["Primitive",0,w,"dispatchDiscreteCustomEvent",0,function(e,t){e&&v.flushSync(()=>e.dispatchEvent(t))}],556872);var x="Checkbox",[b,P]=u(x),[y,E]=b(x);function k(e){let{__scopeCheckbox:r,checked:n,children:o,defaultChecked:i,disabled:a,form:l,name:u,onCheckedChange:c,required:d,value:m="on",internal_do_not_use_render:p}=e,[h,v]=f({prop:n,defaultProp:i??!1,onChange:c,caller:x}),[g,w]=t.useState(null),[b,P]=t.useState(null),E=t.useRef(!1),k=!g||!!l||!!g.closest("form"),j={checked:h,disabled:a,setChecked:v,control:g,setControl:w,name:u,form:l,value:m,hasConsumerStoppedPropagationRef:E,required:d,defaultChecked:!A(i)&&i,isFormControl:k,bubbleInput:b,setBubbleInput:P};return(0,s.jsx)(y,{scope:r,...j,children:"function"==typeof p?p(j):o})}var j="CheckboxTrigger",C=t.forwardRef(({__scopeCheckbox:e,onKeyDown:r,onClick:n,...o},i)=>{let{control:a,value:u,disabled:d,checked:m,required:f,setControl:p,setChecked:h,hasConsumerStoppedPropagationRef:v,isFormControl:g,bubbleInput:x}=E(j,e),b=l(i,p),P=t.useRef(m);return t.useEffect(()=>{let e=a?.form;if(e){let t=()=>h(P.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[a,h]),(0,s.jsx)(w.button,{type:"button",role:"checkbox","aria-checked":A(m)?"mixed":m,"aria-required":f,"data-state":L(m),"data-disabled":d?"":void 0,disabled:d,value:u,...o,ref:b,onKeyDown:c(r,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:c(n,e=>{h(e=>!!A(e)||!e),x&&g&&(v.current=e.isPropagationStopped(),v.current||e.stopPropagation())})})});C.displayName=j;var M=t.forwardRef((e,t)=>{let{__scopeCheckbox:r,name:n,checked:o,defaultChecked:i,required:a,disabled:l,value:u,onCheckedChange:c,form:d,...m}=e;return(0,s.jsx)(k,{__scopeCheckbox:r,checked:o,defaultChecked:i,disabled:l,required:a,onCheckedChange:c,name:n,form:d,value:u,internal_do_not_use_render:({isFormControl:e})=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(C,{...m,ref:t,__scopeCheckbox:r}),e&&(0,s.jsx)(T,{__scopeCheckbox:r})]})})});M.displayName=x;var N="CheckboxIndicator",S=t.forwardRef((e,t)=>{let{__scopeCheckbox:r,forceMount:n,...o}=e,i=E(N,r);return(0,s.jsx)(p,{present:n||A(i.checked)||!0===i.checked,children:(0,s.jsx)(w.span,{"data-state":L(i.checked),"data-disabled":i.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});S.displayName=N;var I="CheckboxBubbleInput",T=t.forwardRef(({__scopeCheckbox:e,...r},n)=>{let o,{control:i,hasConsumerStoppedPropagationRef:a,checked:u,defaultChecked:c,required:m,disabled:f,name:p,value:h,form:v,bubbleInput:g,setBubbleInput:x}=E(I,e),b=l(n,x),P=(o=t.useRef({value:u,previous:u}),t.useMemo(()=>(o.current.value!==u&&(o.current.previous=o.current.value,o.current.value=u),o.current.previous),[u])),y=function(e){let[r,n]=t.useState(void 0);return d(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,o;if(!Array.isArray(t)||!t.length)return;let i=t[0];if("borderBoxSize"in i){let e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,o=t.blockSize}else r=e.offsetWidth,o=e.offsetHeight;n({width:r,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),r}(i);t.useEffect(()=>{if(!g)return;let e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,t=!a.current;if(P!==u&&e){let r=new Event("click",{bubbles:t});g.indeterminate=A(u),e.call(g,!A(u)&&u),g.dispatchEvent(r)}},[g,P,u,a]);let k=t.useRef(!A(u)&&u);return(0,s.jsx)(w.input,{type:"checkbox","aria-hidden":!0,defaultChecked:c??k.current,required:m,disabled:f,name:p,value:h,form:v,...r,tabIndex:-1,ref:b,style:{...r.style,...y,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});function A(e){return"indeterminate"===e}function L(e){return A(e)?"indeterminate":e?"checked":"unchecked"}T.displayName=I;var R=e.i(632137),F=e.i(269767),V=e.i(747961);let O=(0,t.forwardRef)(({title:e,titleId:t,desc:r,descId:n,...o},i)=>(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:i,"aria-labelledby":t,"aria-describedby":n,...o,children:[r?(0,s.jsx)("desc",{id:n,children:r}):null,void 0===e?(0,s.jsx)("title",{id:t,children:"Checkbox Checked"}):e?(0,s.jsx)("title",{id:t,children:e}):null,(0,s.jsx)("path",{fill:"currentColor",d:"M13 2a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1zM7 9.173 5.295 7.5l-.795.771L7 10.75l.348-.346.005-.003L11.1 6.688l.005-.01.395-.389-.796-.789z"})]})),z=t.default.forwardRef((e,t)=>(0,s.jsx)(V.BaseIcon,{ref:t,icon:O,...e}));z.displayName="CheckboxCheckedFilled";let U=(0,t.forwardRef)(({title:e,titleId:t,desc:r,descId:n,...o},i)=>(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:i,"aria-labelledby":t,"aria-describedby":n,...o,children:[r?(0,s.jsx)("desc",{id:n,children:r}):null,void 0===e?(0,s.jsx)("title",{id:t,children:"Checkbox Indeterminate"}):e?(0,s.jsx)("title",{id:t,children:e}):null,(0,s.jsxs)("g",{fill:"currentColor",children:[(0,s.jsx)("path",{d:"M11 8a1 1 0 0 0-1-1H6a1 1 0 0 0 0 2h4a1 1 0 0 0 1-1"}),(0,s.jsx)("path",{d:"M13 2H3a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1M3.5 13a.5.5 0 0 1-.5-.5v-9a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 .5.5v9a.5.5 0 0 1-.5.5z"})]})]})),D=t.default.forwardRef((e,t)=>(0,s.jsx)(V.BaseIcon,{ref:t,icon:U,...e}));D.displayName="CheckboxIndeterminate";let $=(0,t.forwardRef)(({title:e,titleId:t,desc:r,descId:n,...o},i)=>(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:i,"aria-labelledby":t,"aria-describedby":n,...o,children:[r?(0,s.jsx)("desc",{id:n,children:r}):null,void 0===e?(0,s.jsx)("title",{id:t,children:"Checkbox"}):e?(0,s.jsx)("title",{id:t,children:e}):null,(0,s.jsx)("path",{fill:"currentColor",d:"M13 2H3a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1M3.5 13a.5.5 0 0 1-.5-.5v-9a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 .5.5v9a.5.5 0 0 1-.5.5z"})]})),_=t.default.forwardRef((e,t)=>(0,s.jsx)(V.BaseIcon,{ref:t,icon:$,...e}));function J({className:e,checked:r,defaultChecked:n,onCheckedChange:o,...i}){let[a,l]=(0,t.useState)(void 0!==r?r:n||!1);(0,t.useEffect)(()=>{void 0!==r&&l(r)},[r]);let u="indeterminate"===a?D:a?z:_;return(0,s.jsx)(M,{"data-slot":"checkbox",className:(0,R.cn)("peer disabled:cursor-not-allowed disabled:opacity-50",e),...i,checked:a,onCheckedChange:e=>{void 0===r&&l(e),o?.(e)},children:(0,s.jsx)(S,{className:"flex items-center justify-center text-current transition-none","data-slot":"checkbox-indicator",forceMount:!0,children:(0,s.jsx)(u,{className:"size-6"})})})}_.displayName="Checkbox",e.s(["Checkbox",0,({id:e,label:t,size:r="standard",wrapperClassName:n,leftPos:o,...i})=>(0,s.jsxs)(F.FormItem,{id:e,className:(0,R.cn)("flex w-full gap-3",o?"flex-row-reverse justify-end":"flex-row justify-between",n),children:[(0,s.jsx)("div",{className:"pt-0.5",children:(0,s.jsx)(F.FormLabel,{className:(0,R.cn)("large"===r&&"text-lg"),children:t})}),(0,s.jsx)("div",{children:(0,s.jsx)(F.FormControl,{children:(0,s.jsx)(J,{...i})})})]})],681488);let B=(0,t.forwardRef)(({title:e,titleId:t,desc:r,descId:n,...o},i)=>(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:i,"aria-labelledby":t,"aria-describedby":n,...o,children:[r?(0,s.jsx)("desc",{id:n,children:r}):null,void 0===e?(0,s.jsx)("title",{id:t,children:"Person"}):e?(0,s.jsx)("title",{id:t,children:e}):null,(0,s.jsx)("g",{fill:"currentColor",children:(0,s.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"})})]})),G=t.default.forwardRef((e,t)=>(0,s.jsx)(V.BaseIcon,{ref:t,icon:B,...e}));G.displayName="Person",e.s(["Person",0,G],723356);var Y=e.i(528600),H=e.i(546446);let Z=(0,e.i(284007).atomWithStorage)("upsxLastNames",{},void 0,{getOnInit:!0}),W=e=>btoa(e.trim().toLowerCase());e.s(["useUserLastName",0,()=>{let{userProfile:e}=(0,Y.useUser)(),{email:r}=e||{},n=(0,H.useSetAtom)(Z),o=(0,H.useAtomValue)(Z),i=(0,t.useCallback)((e,t)=>{n(r=>({...r,[W(e)]:t}))},[]);return{userLastName:o[W(r||"")]||void 0,setUserLastName:i}}],526824)},920654,e=>{"use strict";var t=e.i(546446),r=e.i(961123),n=e.i(499239);e.s(["useCart",0,function(){let e=(0,r.useSearchParams)().get("products"),[o,i]=(0,t.useAtom)(n.cartProductIdAtom);return{productId:e||o,setProductId:i}}])},264268,e=>{"use strict";var t=e.i(699173),r=e.i(592121),n=e.i(990420),o=e.i(666021),i=e.i(924689),s=e.i(683903),a=e.i(790010),l=e.i(226843),u=e.i(13635),c=e.i(963630),d=e.i(576816),m=e.i(782847),f=e.i(269767),p=e.i(825440),h=e.i(677988),v=e.i(681488),g=e.i(877957),w=e.i(368847),x=e.i(240058),b=e.i(837879),P=e.i(609958),y=e.i(723356),E=e.i(558802),k=e.i(422825),j=e.i(918462),C=e.i(961123),M=e.i(528600),N=e.i(725296),S=e.i(394481),I=e.i(526824),T=e.i(703123),A=e.i(546446),L=e.i(499239),R=e.i(920654);let F=i.z.object({firstName:i.z.string().min(1,{error:"First name is required"}),lastName:i.z.string().min(1,{error:"Last name is required"}),email:i.z.email({message:"Please enter a valid email address"}),password:i.z.string().min(8,{message:"Password must be at least 8 characters"}).regex(/[^A-Za-z0-9\s]/,{message:"Password must include at least one special character"}),newsletterEmails:i.z.boolean().optional(),weeklyEmails:i.z.boolean().optional(),marketingEmails:i.z.boolean().optional(),onYourRadarEmails:i.z.boolean().optional()});e.s(["default",0,({signupBtnText:e})=>{let i=(0,s.useTranslations)("UserAuth"),{signup:V,authRedirect:O}=(0,a.useUserSignup)(),{updateEmailSubscriptions:z}=(0,k.useEmailPreferences)({skipStatus:!0}),[U,D]=(0,r.useState)(!1),[$,_]=(0,r.useState)(null),{user:J}=(0,M.useUser)(),B=(0,b.useSubscriptionsEnabled)(),G=(0,A.useAtomValue)(S.privacyRegimeAtom)??N.default.EXEMPT,Y=(0,C.useParams)()?.locale||"",H=J?.isUserLoggedIn||!1,{legalLinks:Z}=(0,j.useFooterLinks)(G,Y,H,!1),{productId:W}=(0,R.useCart)(),q=(0,A.useAtomValue)(L.eventChainIdAtom),{setUserLastName:K}=(0,I.useUserLastName)(),X=(0,A.useSetAtom)(T.gsiEmailStatesAtom),Q=(0,n.useForm)({resolver:(0,o.zodResolver)(F),defaultValues:{firstName:"",lastName:"",email:"",password:""}}),[ee,et,er,en]=Q.watch(["newsletterEmails","weeklyEmails","onYourRadarEmails","marketingEmails"]);(0,r.useEffect)(()=>X({newsletter:ee,weekly:et,onYourRadar:er,marketing:en}),[X,ee,et,er,en]);let eo=(0,u.useSignupStart)({formVariant:"checkout",sourceModule:null,sourceElement:"subscriptionnull",sourcePosition:"header-3"});(0,r.useEffect)(()=>{eo()},[eo]),(0,c.useSignupAbandon)({formVariant:"checkout",sourceModule:null,sourceElement:"subscriptionnull",sourcePosition:"header-3"});let ei=(0,m.usePurchaseStart)({step:"account",accountCreated:!0,accountLogin:!1,completed:!1,eventChainId:q||"",premiumProductId:W}),es=(0,d.useSignupComplete)({formVariant:"subscription page",sensitiveDataAuthorization:!0,deviceTimeZone:"u">typeof Intl?Intl.DateTimeFormat().resolvedOptions().timeZone:void 0}),ea=(0,r.useMemo)(()=>Z.find(e=>"termsOfUse"===e.titleTranslationKey),[Z]),el=(0,r.useMemo)(()=>Z.find(e=>"privacyPolicy"===e.titleTranslationKey),[Z]),eu=async e=>{D(!0),_(null);try{let{success:t,error:r}=await V({firstName:e.firstName,email:e.email,password:e.password},!1);if(!t){_((0,l.getErrorCodeMessage)(r.messageCode)),D(!1);return}K(e.email,e.lastName),ei(),await es(),await z({newsletter:e.newsletterEmails,weekly:e.weeklyEmails,onYourRadar:e.onYourRadarEmails,marketing:e.marketingEmails}).catch(e=>{console.error("Failed to update email subscriptions",e)}),O()}catch(e){_("An error occurred during registration. Please try again."),console.error("Signup error:",e),D(!1)}};return(0,t.jsxs)("div",{children:[$&&(0,t.jsx)(w.Text,{color:"error",className:"mb-4",children:$}),(0,t.jsx)(f.Form,{...Q,children:(0,t.jsxs)("form",{onSubmit:Q.handleSubmit(eu),children:[(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,t.jsx)(f.FormField,{control:Q.control,name:"firstName",render:({field:e})=>(0,t.jsx)(f.FormItem,{children:(0,t.jsx)(f.FormControl,{children:(0,t.jsx)(p.Input,{...e,label:i("firstName"),icon:y.Person})})})}),(0,t.jsx)(f.FormField,{control:Q.control,name:"lastName",render:({field:e})=>(0,t.jsx)(f.FormItem,{children:(0,t.jsx)(f.FormControl,{children:(0,t.jsx)(p.Input,{...e,label:i("lastName"),icon:y.Person})})})})]}),(0,t.jsx)(f.FormField,{control:Q.control,name:"email",render:({field:e})=>(0,t.jsx)(f.FormItem,{children:(0,t.jsx)(f.FormControl,{children:(0,t.jsx)(p.Input,{...e,label:i("email"),icon:P.Email})})})}),(0,t.jsx)(f.FormField,{control:Q.control,name:"password",render:({field:e})=>(0,t.jsx)(f.FormItem,{children:(0,t.jsx)(f.FormControl,{children:(0,t.jsx)(h.PasswordInput,{...e,label:i("password"),icon:E.Locked})})})}),B&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(f.FormField,{control:Q.control,name:"newsletterEmails",render:({field:{value:e,onChange:r,...n}})=>(0,t.jsx)(v.Checkbox,{...n,checked:e,onCheckedChange:r,label:i("newsletterEmailsConsent"),wrapperClassName:"mb-6",leftPos:!0})}),(0,t.jsx)(f.FormField,{control:Q.control,name:"weeklyEmails",defaultValue:!0,render:({field:{value:e,onChange:r,...n}})=>(0,t.jsx)(v.Checkbox,{...n,checked:e,onCheckedChange:r,label:i("weeklyEmailsConsent"),wrapperClassName:"mb-6",leftPos:!0})}),(0,t.jsx)(f.FormField,{control:Q.control,name:"onYourRadarEmails",defaultValue:!0,render:({field:{value:e,onChange:r,...n}})=>(0,t.jsx)(v.Checkbox,{...n,checked:e,onCheckedChange:r,label:i("onYourRadarEmailsConsent"),wrapperClassName:"mb-6",leftPos:!0})}),(0,t.jsx)(f.FormField,{control:Q.control,name:"marketingEmails",defaultValue:!0,render:({field:{value:e,onChange:r,...n}})=>(0,t.jsx)(v.Checkbox,{...n,checked:e,onCheckedChange:r,label:i("marketingEmailsConsent"),wrapperClassName:"mb-6",leftPos:!0})})]}),(0,t.jsx)(w.Text,{className:"mt-4 mb-8 font-normal",children:i.rich("agreeTermsContinue",{div:e=>(0,t.jsx)(x.default,{href:ea?.url||"",className:"text-blue-600 underline",children:e}),p:e=>(0,t.jsx)(x.default,{href:el?.url||"",className:"text-blue-600 underline",children:e})})}),(0,t.jsx)(g.Button,{type:"submit",loading:U,disabled:U,children:e||i("signup")})]})})]})}])}]);