(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,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),n=(0,t.atom)(null),l=(0,r.atomWithStorage)("wxu-web/keyval:cart","",void 0,{getOnInit:!0}),a=(0,t.atom)(""),o=(0,t.atom)(null),c=(0,r.atomWithStorage)("wxu-web/keyval:eventChainId","",void 0,{getOnInit:!0}),u=(0,t.atom)("idle");e.s(["addressDataAtom",0,i,"billingPreviewDataAtom",0,o,"cartProductIdAtom",0,l,"checkoutValidationAtom",0,u,"eventChainIdAtom",0,c,"promoCodeAtom",0,n,"showSuccessDialogAtom",0,s,"tpccAtom",0,a])},81083,e=>{"use strict";var t=e.i(902875),r=e.i(247865),i=e.i(581014),s=e.i(118119),n=e.i(171176),l=e.i(877957),a=e.i(368847),o=e.i(983950),c=e.i(528600),u=e.i(731672),d=e.i(526824);e.s(["default",0,({initSignin:e,showLastName:f,hideConfirmPassword:m})=>{let[h,x]=(0,r.useState)(e),g=(0,i.useTranslations)("UserAuth"),{user:v,userProfile:p}=(0,c.useUser)(),{email:w,firstName:j}=p||{},b=(0,u.useUserLogout)(),{userLastName:y}=(0,d.useUserLastName)();return v?.isUserLoggedIn?(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"mb-6 flex items-end justify-between gap-1",children:[(0,t.jsx)(a.Text,{variant:"Title.M",color:"secondary",className:"font-semibold",children:g("yourAccount")}),(0,t.jsx)(l.Button,{variant:"link",type:"button",className:(0,a.textVariants)({className:"h-[revert] p-0",variant:"Body.M"}),onClick:()=>b(),children:g("logout")})]}),(0,t.jsx)(a.Text,{color:"secondary",children:[j,y].filter(Boolean).join(" ")}),(0,t.jsx)(a.Text,{color:"secondary",children:w})]}):(0,t.jsx)("div",{children:h?(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"mb-4 flex justify-between",children:[(0,t.jsx)(a.Text,{variant:"Title.M",className:"font-semibold",children:g("signin")}),(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsxs)(a.Text,{color:"secondary",children:[g("noAccount")," "]}),(0,t.jsx)(l.Button,{variant:"link",type:"button",className:(0,a.textVariants)({className:"h-[revert] p-0",variant:"Body.M",color:"secondary"}),onClick:()=>x(!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)(a.Text,{className:"mb-2",children:g("haveAccount")}),(0,t.jsxs)("div",{className:"flex justify-center gap-4",children:[(0,t.jsx)(l.Button,{variant:"secondary",className:"bg-gray-100",onClick:()=>x(!0),children:g("signin")}),(0,t.jsx)(o.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)(a.Text,{variant:"Title.M",className:"mb-4 font-semibold",children:g("signup")}),(0,t.jsx)(n.default,{signupBtnText:g("signupAndContinue"),showLastName:f,hideConfirmPassword:m})]})})}])},118119,e=>{"use strict";var t=e.i(902875),r=e.i(247865),i=e.i(990420),s=e.i(732520),n=e.i(581014),l=e.i(725287),a=e.i(546446),o=e.i(924689),c=e.i(143851),u=e.i(226843),d=e.i(269767),f=e.i(240058),m=e.i(825440),h=e.i(368847),x=e.i(677988),g=e.i(877957),v=e.i(609958),p=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 N=(0,n.useTranslations)("UserAuth"),{login:A}=(0,c.useUserLogin)(),[C,M]=(0,r.useState)(!1),[S,I]=(0,r.useState)(null),E=(0,r.useMemo)(()=>o.z.object({email:o.z.email({message:N("invalidEmailError")}),password:o.z.string().min(8,{message:N("passwordMinLength")})}),[N]),{user:P}=(0,w.useUser)(),R=(0,a.useAtomValue)(b.privacyRegimeAtom)??j.default.EXEMPT,B=(0,l.useParams)()?.locale||"",{legalLinks:k}=(0,y.useFooterLinks)(R,B,P?.isUserLoggedIn||!1),T=(0,r.useMemo)(()=>k.find(e=>"termsOfUse"===e.titleTranslationKey),[k]),_=(0,r.useMemo)(()=>k.find(e=>"privacyPolicy"===e.titleTranslationKey),[k]),L=(0,i.useForm)({resolver:(0,s.zodResolver)(E),defaultValues:{email:"",password:""}}),V=async e=>{M(!0),I(null);try{let t=await A(e.email,e.password);t.success||(I((0,u.getErrorCodeMessage)(t.error.messageCode,(0,u.checkErrorFlag)("login",t.error.messageCode??0))),M(!1))}catch(e){I(N("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)(d.Form,{...L,children:(0,t.jsxs)("form",{onSubmit:L.handleSubmit(V),children:[(0,t.jsx)(d.FormField,{control:L.control,name:"email",render:({field:e})=>(0,t.jsx)(d.FormItem,{children:(0,t.jsx)(d.FormControl,{children:(0,t.jsx)(m.Input,{...e,type:"email",label:N("email"),icon:v.Email})})})}),(0,t.jsx)(d.FormField,{control:L.control,name:"password",render:({field:e})=>(0,t.jsx)(d.FormItem,{children:(0,t.jsx)(d.FormControl,{children:(0,t.jsx)(x.PasswordInput,{...e,label:N("password"),icon:p.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)(f.default,{href:"/forgot-password",className:"text-sm whitespace-nowrap hover:underline",children:N("forgotPassword")})}),(0,t.jsx)(h.Text,{className:"m-0 @lg/loginForm:max-w-xl",dangerouslySetInnerHTML:{__html:N.raw("authenticationUniformityNote")}})]}),(0,t.jsx)(g.Button,{type:"submit",loading:C,disabled:C,children:e||N("signin")}),(0,t.jsx)(h.Text,{className:"my-4 py-2.5 text-[13px] font-normal",children:N.rich("agreeTermsContinue",{termsOfUse:e=>(0,t.jsx)(f.default,{href:T?.url||"",className:"text-blue-600 underline",children:e}),privacyPolicy:e=>(0,t.jsx)(f.default,{href:_?.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:n="continue_with",theme:l="outline",size:a="large",shape:o="rectangular",logo_alignment:c="center",className:u=""}){let d=(0,s.useAtomValue)(i.googleLoginInitilizedAtom),f=(0,r.useRef)(null);return(0,r.useEffect)(()=>{let t=window?.google?.accounts?.id;t&&t?.renderButton(f.current,{type:e,shape:o,theme:l,text:n,size:a,logo_alignment:c})},[e,l,a,n,o,c,d]),(0,t.jsx)("div",{id:"google-login-button",ref:f,className:`google-login-button ${u}`,"data-testid":"google-login-button"})}])},238430,e=>{"use strict";var t=e.i(902875),r=e.i(247865);e.s(["default",0,function({candidate:e,failedMessage:i="Authentication failed. Please try again.",protectMessage:s="Remove your adblocker.",fetch:n,refresh:l,getCustomAccountInfo:a}){let[o,c]=(0,r.useState)(""),[u,d]=(0,r.useState)(!1),[f,m]=(0,r.useState)(!1),[h,x]=(0,r.useState)(!1),g=(0,r.useRef)([]);(0,r.useEffect)(()=>{e.id!==g.current[0]&&(g.current=[e.id],e.transactIDs&&g.current.push(...e.transactIDs))},[e.id,e.transactIDs]);let v=(0,r.useCallback)(()=>{try{n("/?adm_get_token=1").then(e=>{e.ok&&l()}).catch(()=>{c(i)})}catch{c(i)}},[n,i,l]),p=(0,r.useMemo)(()=>"u">typeof window?window:{admiral:{}},[]);return(0,r.useEffect)(()=>{typeof window>"u"||(p.admiral=p.admiral||function(...e){(p.admiral.q=p.admiral.q||[]).push(e)},p.admiral("after","measure.detected",function(t){if("abr"==e.requirement)t.adblocking?(c(s),d(!0)):x(!0);else if("account"==e.requirement||"benefits"==e.requirement){let t=!!a;p.admiral("after","visitor.latest",function(r){var i;if("account"===e.requirement)(t?a().registered:r.status.registered)||f||(c(s),d(!0));else if("benefits"===e.requirement){let r=[];if(t)r=a().benefits;else{let e=document.cookie.split(";");e&&(r=(null==(i=e.find(e=>e.startsWith("admbenefits=")))?void 0:i.split(","))??[])}if(r){let t=e.benefits??[];if(0==t.length)return void x(!0);let i=!1;for(let e of t)r.includes(e)&&(i=!0);i?x(!0):(c(s),d(!0))}else c(s),d(!0)}})}}))},[]),(0,r.useEffect)(()=>{h&&(x(!1),v())},[h,v]),(0,r.useEffect)(()=>{f||!u||(m(!0),p.admiral("targeting","force",{candidateIDs:g.current}))},[f,u,g,p]),(0,t.jsxs)("div",{children:[o||null," "]})}])},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,...n}=e,l=t.useMemo(()=>n,Object.values(n));return(0,i.jsx)(s.Provider,{value:l,children:r})};return n.displayName=e+"Provider",[n,function(i){let n=t.useContext(s);if(n)return n;if(void 0!==r)return r;throw Error(`\`${i}\` must be used within \`${e}\``)}]},"createContextScope",0,function(e,r=[]){let s=[],n=()=>{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 n.scopeName=e,[function(r,n){let l=t.createContext(n),a=s.length;s=[...s,n];let o=r=>{let{scope:s,children:n,...o}=r,c=s?.[e]?.[a]||l,u=t.useMemo(()=>o,Object.values(o));return(0,i.jsx)(c.Provider,{value:u,children:n})};return o.displayName=r+"Provider",[o,function(i,s){let o=s?.[e]?.[a]||l,c=t.useContext(o);if(c)return c;if(void 0!==n)return n;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}(n,...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:n}){let[l,a,o]=function({defaultProp:e,onChange:r}){let[s,n]=t.useState(e),l=t.useRef(s),a=t.useRef(r);return i(()=>{a.current=r},[r]),t.useEffect(()=>{l.current!==s&&(a.current?.(s),l.current=s)},[s,l]),[s,n,a]}({defaultProp:r,onChange:s}),c=void 0!==e,u=c?e:l;{let r=t.useRef(void 0!==e);t.useEffect(()=>{let e=r.current;if(e!==c){let t=c?"controlled":"uncontrolled";console.warn(`${n} 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=c},[c,n])}return[u,t.useCallback(t=>{if(c){let r="function"==typeof t?t(e):t;r!==e&&o.current?.(r)}else a(t)},[c,e,a,o])]}],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 n=t[0];if("borderBoxSize"in n){let e=n.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),n=e.i(982538),l=e.i(902875),a=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,r)=>{let i=(0,n.createSlot)(`Primitive.${r}`),s=t.forwardRef((e,t)=>{let{asChild:s,...n}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,l.jsx)(s?i:r,{...n,ref:t})});return s.displayName=`Primitive.${r}`,{...e,[r]:s}},{});e.s(["Primitive",0,a,"dispatchDiscreteCustomEvent",0,function(e,t){e&&s.flushSync(()=>e.dispatchEvent(t))}],556872)},590238,e=>{"use strict";var t=e.i(725287),r=e.i(537989);e.i(609717);var i=e.i(950771),s=e.i(695203),n=e.i(604323),l=e.i(797770),a=e.i(236433),o=e.i(513539),c=e.i(991511);e.s(["AnalyticsBoundary",0,e=>{let u=(0,t.usePathname)();return(0,c.useRehydrateAtoms)([[r.pageIdAtom,e.pageId],[i.pageLocaleAtom,e.pageLocale],[s.deviceClassAtom,e.deviceClass],[n.metricsArticleDataAtom,e.metricsArticleData],[l.adsMetricsUnitAndZoneAtom,e.adsMetricsUnitAndZone??"non_monetized"],[o.layoutStateAtom,e.layoutState??null],[o.activeEventAtom,e.activeEvent??null],[a.pageAtomsPathnameAtom,u]]),null}])},853686,e=>{"use strict";var t=e.i(902875),r=e.i(333350),i=e.i(283366);let s=["cw12138"],n=["cw12648","cw13694"];function l({flagKey:e,requireReachableFold:t=!0}){let s=r.default?function(e,t){let r=function(e){try{let t=window.localStorage.getItem(`amp-exp-$default_instance-${"client-a74nh7wdmymfO9eOcl5awe1cgB30BDRV".slice(-6)}`);if(!t)return;let r=JSON.parse(t);if(!a(r))return;let i=r[e];if(!a(i)||!i.expKey||!i.key&&!i.value)return;return i}catch{return}}(e);if(r&&(!t||function(e){let t=window.__HeliosConfig?.slotsConfig;if(!t)return!1;let r=!1,i=!1;for(let n of Object.values(t)){let t=n?.modules?.refresh?.bidMode;if("atf"!==t&&"btf"!==t)continue;r=!0;let l=a(e)?e[t]:void 0;if(void 0!==l){var s;a(l)&&"number"==typeof(s=l.interval)&&Number.isFinite(s)&&s>=1e4&&s(0,t.jsx)(l,{flagKey:e},e)),n.map(e=>(0,t.jsx)(l,{flagKey:e,requireReachableFold:!1},e))]})}],853686)},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,...n},l)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":r,"aria-describedby":s,...n,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"})})]})),n=r.default.forwardRef((e,r)=>(0,t.jsx)(i.BaseIcon,{ref:r,icon:s,...e}));n.displayName="Person",e.s(["Person",0,n])},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,...n},l)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":r,"aria-describedby":s,...n,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"})})})]})),n=r.default.forwardRef((e,r)=>(0,t.jsx)(i.BaseIcon,{ref:r,icon:s,...e}));n.displayName="Warning",e.s(["Warning",0,n])},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,...n},l)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":r,"aria-describedby":s,...n,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"})]})),n=r.default.forwardRef((e,r)=>(0,t.jsx)(i.BaseIcon,{ref:r,icon:s,...e}));n.displayName="Email",e.s(["Email",0,n])},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,...n},l)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":r,"aria-describedby":s,...n,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"})]})),n=r.default.forwardRef((e,r)=>(0,t.jsx)(i.BaseIcon,{ref:r,icon:s,...e}));n.displayName="Locked",e.s(["Locked",0,n])},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,...n},l)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":r,"aria-describedby":s,...n,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"})]})]})),n=r.default.forwardRef((e,r)=>(0,t.jsx)(i.BaseIcon,{ref:r,icon:s,...e}));n.displayName="View",e.s(["View",0,n])},677988,e=>{"use strict";var t=e.i(902875),r=e.i(247865),i=e.i(825440),s=e.i(877957),n=e.i(747961);let l=(0,r.forwardRef)(({title:e,titleId:r,desc:i,descId:s,...n},l)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":r,"aria-describedby":s,...n,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"})]})]})),a=r.default.forwardRef((e,r)=>(0,t.jsx)(n.BaseIcon,{ref:r,icon:l,...e}));a.displayName="ViewOff";var o=e.i(245308);let c=r.default.forwardRef(({className:e,label:n="Password",error:l,...c},u)=>{let[d,f]=(0,r.useState)(!1);return(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(i.Input,{label:n,type:d?"text":"password",error:l,ref:u,...c,onClear:void 0}),(0,t.jsx)(s.Button,{type:"button",onClick:()=>{f(!d)},variant:"ghost",size:"text","data-testid":"password-toggle-button",className:"absolute top-4 right-0 flex items-center hover:bg-transparent",children:d?(0,t.jsx)(a,{className:"h-4 w-4 text-gray-500"}):(0,t.jsx)(o.View,{className:"h-4 w-4 text-gray-500"})})]})});c.displayName="PasswordInput",e.s(["PasswordInput",0,c],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,n={})=>{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,n),{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}}])}]);