(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 n=(0,t.atom)(null);(0,t.atom)(null);let i=(0,t.atom)(!1),s=(0,t.atom)(null),o=(0,r.atomWithStorage)("wxu-web/keyval:cart","",void 0,{getOnInit:!0}),a=(0,r.atomWithStorage)("wxu-web/keyval:cartIds",null,void 0,{getOnInit:!0}),l=(0,t.atom)(""),c=(0,t.atom)(null),u=(0,r.atomWithStorage)("wxu-web/keyval:eventChainId","",void 0,{getOnInit:!0}),d=(0,t.atom)("idle");e.s(["addressDataAtom",0,n,"billingPreviewDataAtom",0,c,"cartIdsAtom",0,a,"cartProductIdAtom",0,o,"checkoutValidationAtom",0,d,"eventChainIdAtom",0,u,"promoCodeAtom",0,s,"showSuccessDialogAtom",0,i,"tpccAtom",0,l])},81083,e=>{"use strict";var t=e.i(902875),r=e.i(247865),n=e.i(581014),i=e.i(118119),s=e.i(171176),o=e.i(877957),a=e.i(368847),l=e.i(983950),c=e.i(528600),u=e.i(731672),d=e.i(526824);e.s(["default",0,({initSignin:e,showLastName:m,hideConfirmPassword:f,hideSocialLogin:g,hideNewsletters:p})=>{let[h,x]=(0,r.useState)(e),v=(0,n.useTranslations)("UserAuth"),{user:w,userProfile:y}=(0,c.useUser)(),{email:j,firstName:b}=y||{},N=(0,u.useUserLogout)(),{userLastName:C}=(0,d.useUserLastName)();return w?.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:v("yourAccount")}),(0,t.jsx)(o.Button,{variant:"link",type:"button",className:(0,a.textVariants)({className:"h-[revert] p-0",variant:"Body.M"}),onClick:()=>N(),children:v("logout")})]}),(0,t.jsx)(a.Text,{color:"secondary",children:[b,C].filter(Boolean).join(" ")}),(0,t.jsx)(a.Text,{color:"secondary",children:j})]}):(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:v("signin")}),(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsxs)(a.Text,{color:"secondary",children:[v("noAccount")," "]}),(0,t.jsx)(o.Button,{variant:"link",type:"button",className:(0,a.textVariants)({className:"h-[revert] p-0",variant:"Body.M",color:"secondary"}),onClick:()=>x(!1),children:v("signup")})]})]}),(0,t.jsx)(i.default,{loginBtnText:v("signinAndContinue")})]}):(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)(a.Text,{className:"mb-2",children:v("haveAccount")}),(0,t.jsxs)("div",{className:"flex justify-center gap-4",children:[(0,t.jsx)(o.Button,{variant:"secondary",className:"bg-gray-100",onClick:()=>x(!0),children:v("signin")}),!g&&(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:v("or")})})]}),(0,t.jsx)(a.Text,{variant:"Title.M",className:"mb-4 font-semibold",children:v("signup")}),(0,t.jsx)(s.default,{signupBtnText:v("signupAndContinue"),showLastName:m,hideConfirmPassword:f,hideNewsletters:p})]})})}])},118119,e=>{"use strict";var t=e.i(902875),r=e.i(247865),n=e.i(990420),i=e.i(732520),s=e.i(581014),o=e.i(725287),a=e.i(546446),l=e.i(924689),c=e.i(143851),u=e.i(226843),d=e.i(269767),m=e.i(240058),f=e.i(825440),g=e.i(368847),p=e.i(677988),h=e.i(877957),x=e.i(609958),v=e.i(558802),w=e.i(528600),y=e.i(725296),j=e.i(394481),b=e.i(918462);e.s(["default",0,({loginBtnText:e})=>{let N=(0,s.useTranslations)("UserAuth"),{login:C}=(0,c.useUserLogin)(),[A,S]=(0,r.useState)(!1),[M,I]=(0,r.useState)(null),P=(0,r.useMemo)(()=>l.z.object({email:l.z.email({message:N("invalidEmailError")}),password:l.z.string().min(8,{message:N("passwordMinLength")})}),[N]),{user:T}=(0,w.useUser)(),E=(0,a.useAtomValue)(j.privacyRegimeAtom)??y.default.EXEMPT,k=(0,o.useParams)()?.locale||"",{legalLinks:R}=(0,b.useFooterLinks)(E,k,T?.isUserLoggedIn||!1),L=(0,r.useMemo)(()=>R.find(e=>"termsOfUse"===e.titleTranslationKey),[R]),O=(0,r.useMemo)(()=>R.find(e=>"privacyPolicy"===e.titleTranslationKey),[R]),U=(0,n.useForm)({resolver:(0,i.zodResolver)(P),defaultValues:{email:"",password:""}}),V=async e=>{S(!0),I(null);try{let t=await C(e.email,e.password);t.success||(I((0,u.getErrorCodeMessage)(t.error.messageCode,(0,u.checkErrorFlag)("login",t.error.messageCode??0))),S(!1))}catch(e){I(N("loginGenericError")),S(!1),console.error("Login error:",e)}};return(0,t.jsxs)("div",{className:"@container/loginForm",children:[M&&(0,t.jsx)("div",{role:"alert",className:"rounded border border-red-200 bg-red-50 px-4 py-3 text-red-700",children:M}),(0,t.jsx)(d.Form,{...U,children:(0,t.jsxs)("form",{onSubmit:U.handleSubmit(V),children:[(0,t.jsx)(d.FormField,{control:U.control,name:"email",render:({field:e})=>(0,t.jsx)(d.FormItem,{children:(0,t.jsx)(d.FormControl,{children:(0,t.jsx)(f.Input,{...e,type:"email",label:N("email"),icon:x.Email})})})}),(0,t.jsx)(d.FormField,{control:U.control,name:"password",render:({field:e})=>(0,t.jsx)(d.FormItem,{children:(0,t.jsx)(d.FormControl,{children:(0,t.jsx)(p.PasswordInput,{...e,label:N("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:N("forgotPassword")})}),(0,t.jsx)(g.Text,{className:"m-0 @lg/loginForm:max-w-xl",dangerouslySetInnerHTML:{__html:N.raw("authenticationUniformityNote")}})]}),(0,t.jsx)(h.Button,{type:"submit",loading:A,disabled:A,children:e||N("signin")}),(0,t.jsx)(g.Text,{className:"my-4 py-2.5 text-[13px] font-normal",children:N.rich("agreeTermsContinue",{termsOfUse:e=>(0,t.jsx)(m.default,{href:L?.url||"",className:"text-blue-600 underline",children:e}),privacyPolicy:e=>(0,t.jsx)(m.default,{href:O?.url||"",className:"text-blue-600 underline",children:e})})})]})})]})}])},983950,e=>{"use strict";var t=e.i(902875),r=e.i(247865),n=e.i(404893),i=e.i(546446);e.s(["default",0,function({type:e="standard",text:s="continue_with",theme:o="outline",size:a="large",shape:l="rectangular",logo_alignment:c="center",className:u=""}){let d=(0,i.useAtomValue)(n.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:o,text:s,size:a,logo_alignment:c})},[e,o,a,s,l,c,d]),(0,t.jsx)("div",{id:"google-login-button",ref:m,className:`google-login-button ${u}`,"data-testid":"google-login-button"})}])},291967,127864,534643,e=>{"use strict";"u">typeof window&&window.document&&window.document.createElement,e.s(["composeEventHandlers",0,function(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}],291967);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 n=t[" useInsertionEffect ".trim().toString()]||r;Symbol("RADIX:SYNC_STATE"),e.s(["useControllableState",0,function({prop:e,defaultProp:r,onChange:i=()=>{},caller:s}){let[o,a,l]=function({defaultProp:e,onChange:r}){let[i,s]=t.useState(e),o=t.useRef(i),a=t.useRef(r);return n(()=>{a.current=r},[r]),t.useEffect(()=>{o.current!==i&&(a.current?.(i),o.current=i)},[i,o]),[i,s,a]}({defaultProp:r,onChange:i}),c=void 0!==e,u=c?e:o;{let r=t.useRef(void 0!==e);t.useEffect(()=>{let e=r.current;if(e!==c){let t=c?"controlled":"uncontrolled";console.warn(`${s} 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,s])}return[u,t.useCallback(t=>{if(c){let r="function"==typeof t?t(e):t;r!==e&&l.current?.(r)}else a(t)},[c,e,a,l])]}],534643)},144977,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 n=!1,i=e.map(e=>{let i=r(e,t);return n||"function"!=typeof i||(n=!0),i});if(n)return()=>{for(let t=0;t{"use strict";var t=e.i(247865),r=e.i(902875);e.s(["createContext",0,function(e,n){let i=t.createContext(n),s=e=>{let{children:n,...s}=e,o=t.useMemo(()=>s,Object.values(s));return(0,r.jsx)(i.Provider,{value:o,children:n})};return s.displayName=e+"Provider",[s,function(r){let s=t.useContext(i);if(s)return s;if(void 0!==n)return n;throw Error(`\`${r}\` must be used within \`${e}\``)}]},"createContextScope",0,function(e,n=[]){let i=[],s=()=>{let r=i.map(e=>t.createContext(e));return function(n){let i=n?.[e]||r;return t.useMemo(()=>({[`__scope${e}`]:{...n,[e]:i}}),[n,i])}};return s.scopeName=e,[function(n,s){let o=t.createContext(s),a=i.length;i=[...i,s];let l=n=>{let{scope:i,children:s,...l}=n,c=i?.[e]?.[a]||o,u=t.useMemo(()=>l,Object.values(l));return(0,r.jsx)(c.Provider,{value:u,children:s})};return l.displayName=n+"Provider",[l,function(r,i){let l=i?.[e]?.[a]||o,c=t.useContext(l);if(c)return c;if(void 0!==s)return s;throw Error(`\`${r}\` must be used within \`${n}\``)}]},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 i=n.reduce((t,{useScope:r,scopeName:n})=>{let i=r(e)[`__scope${n}`];return{...t,...i}},{});return t.useMemo(()=>({[`__scope${r.scopeName}`]:i}),[i])}};return n.scopeName=r.scopeName,n}(s,...n)]}])},653747,e=>{"use strict";var t=e.i(247865),r=e.i(144977),n=e.i(127864),i=e=>{var i;let o,a,{present:l,children:c}=e,u=function(e){var r,i;let[o,a]=t.useState(),l=t.useRef(null),c=t.useRef(e),u=t.useRef("none"),[d,m]=(r=e?"mounted":"unmounted",i={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},t.useReducer((e,t)=>i[e][t]??e,r));return t.useEffect(()=>{let e=s(l.current);u.current="mounted"===d?e:"none"},[d]),(0,n.useLayoutEffect)(()=>{let t=l.current,r=c.current;if(r!==e){let n=u.current,i=s(t);e?m("MOUNT"):"none"===i||t?.display==="none"?m("UNMOUNT"):r&&n!==i?m("ANIMATION_OUT"):m("UNMOUNT"),c.current=e}},[e,m]),(0,n.useLayoutEffect)(()=>{if(o){let e,t=o.ownerDocument.defaultView??window,r=r=>{let n=s(l.current).includes(CSS.escape(r.animationName));if(r.target===o&&n&&(m("ANIMATION_END"),!c.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&&(u.current=s(l.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)}}m("ANIMATION_END")},[o,m]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:t.useCallback(e=>{l.current=e?getComputedStyle(e):null,a(e)},[])}}(l),d="function"==typeof c?c({present:u.isPresent}):t.Children.only(c),m=(0,r.useComposedRefs)(u.ref,(i=d,(a=(o=Object.getOwnPropertyDescriptor(i.props,"ref")?.get)&&"isReactWarning"in o&&o.isReactWarning)?i.ref:(a=(o=Object.getOwnPropertyDescriptor(i,"ref")?.get)&&"isReactWarning"in o&&o.isReactWarning)?i.props.ref:i.props.ref||i.ref));return"function"==typeof c||u.isPresent?t.cloneElement(d,{ref:m}):null};function s(e){return e?.animationName||"none"}i.displayName="Presence",e.s(["Presence",0,i])},556872,e=>{"use strict";var t=e.i(247865),r=e.i(352825),n=e.i(982538),i=e.i(902875),s=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,r)=>{let s=(0,n.createSlot)(`Primitive.${r}`),o=t.forwardRef((e,t)=>{let{asChild:n,...o}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,i.jsx)(n?s:r,{...o,ref:t})});return o.displayName=`Primitive.${r}`,{...e,[r]:o}},{});e.s(["Primitive",0,s,"dispatchDiscreteCustomEvent",0,function(e,t){e&&r.flushSync(()=>e.dispatchEvent(t))}])},617145,542675,243083,964937,e=>{"use strict";var t=e.i(247865),r=e.i(546446),n=e.i(128541);let i={sourcePage:null,sourceModule:null,sourceElement:null,sourceUpsellPlacement:null};function s(e){if(!e||"string"!=typeof e)return i;let t=e.split("-");if("mktg"!==t[0])return i;let r=t[1]||null,n=t[2]||null,s=t[3]||null,o=n&&n.toLowerCase().includes("upsell")?n:null;return{sourcePage:r,sourceModule:n,sourceElement:s,sourceUpsellPlacement:o}}e.s(["parseTpcc",0,s],542675);var o=e.i(293163);e.s(["usePurchaseSourceAttributes",0,()=>{let e=(0,r.useAtomValue)(n.purchaseSourceAttributionAtom),i=s((0,o.getTpcc)()),a=e?.sourcePage??i.sourcePage,l=e?.sourceModule??i.sourceModule,c=e?.sourceElement??i.sourceElement,u=e?.sourceUpsellPlacement??i.sourceUpsellPlacement;return(0,t.useMemo)(()=>({...a&&{sourcePage:a},...l&&{sourceModule:l},...c&&{sourceElement:c},...u&&{sourceUpsellPlacement:u}}),[a,l,c,u])}],617145);var a=e.i(777638);e.s(["usePurchaseSourceAttributes",0,()=>{let e=(0,r.useAtomValue)(n.purchaseSourceAttributionAtom),i=s((0,a.getTpcc)()),o=e?.sourcePage??i.sourcePage,l=e?.sourceModule??i.sourceModule,c=e?.sourceElement??i.sourceElement,u=e?.sourceUpsellPlacement??i.sourceUpsellPlacement;return(0,t.useMemo)(()=>({...o&&{sourcePage:o},...l&&{sourceModule:l},...c&&{sourceElement:c},...u&&{sourceUpsellPlacement:u}}),[o,l,c,u])}],243083);var l=e.i(540768),c=e.i(682142),u=e.i(782937),d=e.i(695881),m=e.i(333350),f=e.i(64412),g=e.i(950771),p=e.i(537989),h=e.i(695203),x=e.i(673915),v=e.i(158662),w=e.i(358273),y=e.i(409628),j=e.i(924776),b=e.i(605781);let N=(0,d.createLogger)("useTrackSubscriptionAttempted");e.s(["useTrackSubscriptionAttempted",0,()=>{let e=(0,r.useAtomValue)(p.pageIdAtom),n=(0,r.useAtomValue)(g.pageLocaleAtom),i=(0,r.useAtomValue)(h.deviceClassAtom),s=(0,r.useAtomValue)(x.fromStringAtom),o=(0,r.useAtomValue)(v.experimentJoinListAtom),{location:d}=(0,f.useLocation)(),C=(0,j.useIsHightouchReady)(),A=(0,t.useRef)(new Set);return(0,t.useCallback)(t=>{if(!m.default)return;let r=`${t.step}:${t.completed??!1}`;if(A.current.has(r))return;if(!C)return void N.warn('Hightouch: Event "subscription-attempted" skipped - SDK not ready');let f=(0,c.getCICookie)(),g=f?.["TWC-GeoIP-Country"]??(0,l.getCookie)("twc-location-country"),p=f?.["TWC-GeoIP-Region"]??(0,l.getCookie)("twc-location-region"),h=f?.["TWC-Privacy"]??(0,l.getCookie)("twc-privacy"),x=window.DprSdk?.getGdprConsentOptInsString()??"",v=String(window.DprSdk?.getUserConsent("sale-of-data")!==!1),j=(0,l.getCookie)("partner")||"",S=(0,u.getPartnerByPattern)(j)??j,M=(0,w.getMetricsSession)(),I=new Date,P={step:t.step,url:t.url,accountCreated:t.accountCreated??!1,accountLogin:t.accountLogin??!1,completed:t.completed??!1,eventChainId:t.eventChainId,pageId:e??"",schemaVersion:"nextgen",locale:n,deviceClass:i,partner:S,sessionId:M?.sessionId||"",sessionStartTime:new Date(M?.sessionStartTime||0).toISOString(),siteMode:"normal",dayOfWeek:y.WEEK_DAYS[I.getDay()]??"",hourOfDay:I.getHours(),regime:h??"",cookiesEnabled:navigator?.cookieEnabled??!1,gpcSignalOptOut:window.navigator?.globalPrivacyControl??!1,functionalTechnologies:x.includes("functional-technology"),geographicallyRelevantAds:window.DprSdk?.getUserConsent("geographically-relevant-advertising")!==!1,interestBasedAds:window.DprSdk?.getUserConsent("interest-based-ads")!==!1,priv:x,privProducts:window.DprSdk?.getCcpaSaleOptInString()??"",saleOfData:v,saleOfDataAuthorization:v,sensitiveDataAuthorization:String(window.DprSdk?.getUserConsent("sensitive-data")!==!1),referrer:document.referrer,campaign:(0,a.getCampaign)(),tpcc:(0,a.getTpcc)(),linkReferral:(0,a.getLinkReferral)(),fromString:s,experimentJoinList:o,weatherMode:"normal",physicalCountry:g??"",physicalState:p??"",wlocCity:d?.city??null,wlocCountry:d?.countryCode??null,wlocState:d?.adminDistrictCode??null,wlocDMA:d?.dmaCd??null,samsungVersion:(0,a.getSamsungVersion)(),appVersion:"b4ee6b8a9b7a5cea26876dd24ff63a13c366fbff".slice(0,10)};try{let e=(0,b.trackSubscriptionAttempted)(P);return A.current.add(r),N.info('Hightouch: Event "subscription-attempted" tracked'),e}catch(e){N.error('Hightouch: Event "subscription-attempted" failed',{error:e});return}},[C,e,n,i,s,o,d])}],964937)},723356,e=>{"use strict";var t=e.i(902875),r=e.i(247865),n=e.i(747961);let i=(0,r.forwardRef)(({title:e,titleId:r,desc:n,descId:i,...s},o)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:o,"aria-labelledby":r,"aria-describedby":i,...s,children:[n?(0,t.jsx)("desc",{id:i,children:n}):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"})})]})),s=r.default.forwardRef((e,r)=>(0,t.jsx)(n.BaseIcon,{ref:r,icon:i,...e}));s.displayName="Person",e.s(["Person",0,s])},105335,e=>{"use strict";var t=e.i(902875),r=e.i(247865),n=e.i(747961);let i=(0,r.forwardRef)(({title:e,titleId:r,desc:n,descId:i,...s},o)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:o,"aria-labelledby":r,"aria-describedby":i,...s,children:[n?(0,t.jsx)("desc",{id:i,children:n}):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"})})})]})),s=r.default.forwardRef((e,r)=>(0,t.jsx)(n.BaseIcon,{ref:r,icon:i,...e}));s.displayName="Warning",e.s(["Warning",0,s])},609958,e=>{"use strict";var t=e.i(902875),r=e.i(247865),n=e.i(747961);let i=(0,r.forwardRef)(({title:e,titleId:r,desc:n,descId:i,...s},o)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:o,"aria-labelledby":r,"aria-describedby":i,...s,children:[n?(0,t.jsx)("desc",{id:i,children:n}):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"})]})),s=r.default.forwardRef((e,r)=>(0,t.jsx)(n.BaseIcon,{ref:r,icon:i,...e}));s.displayName="Email",e.s(["Email",0,s])},558802,e=>{"use strict";var t=e.i(902875),r=e.i(247865),n=e.i(747961);let i=(0,r.forwardRef)(({title:e,titleId:r,desc:n,descId:i,...s},o)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:o,"aria-labelledby":r,"aria-describedby":i,...s,children:[n?(0,t.jsx)("desc",{id:i,children:n}):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"})]})),s=r.default.forwardRef((e,r)=>(0,t.jsx)(n.BaseIcon,{ref:r,icon:i,...e}));s.displayName="Locked",e.s(["Locked",0,s])},245308,e=>{"use strict";var t=e.i(902875),r=e.i(247865),n=e.i(747961);let i=(0,r.forwardRef)(({title:e,titleId:r,desc:n,descId:i,...s},o)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:o,"aria-labelledby":r,"aria-describedby":i,...s,children:[n?(0,t.jsx)("desc",{id:i,children:n}):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"})]})]})),s=r.default.forwardRef((e,r)=>(0,t.jsx)(n.BaseIcon,{ref:r,icon:i,...e}));s.displayName="View",e.s(["View",0,s])},677988,e=>{"use strict";var t=e.i(902875),r=e.i(247865),n=e.i(825440),i=e.i(877957),s=e.i(747961);let o=(0,r.forwardRef)(({title:e,titleId:r,desc:n,descId:i,...s},o)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:o,"aria-labelledby":r,"aria-describedby":i,...s,children:[n?(0,t.jsx)("desc",{id:i,children:n}):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)(s.BaseIcon,{ref:r,icon:o,...e}));a.displayName="ViewOff";var l=e.i(245308);let c=r.default.forwardRef(({className:e,label:s="Password",error:o,...c},u)=>{let[d,m]=(0,r.useState)(!1);return(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(n.Input,{label:s,type:d?"text":"password",error:o,ref:u,...c,onClear:void 0}),(0,t.jsx)(i.Button,{type:"button",onClick:()=>{m(!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)(l.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),n=e.i(143851);e.s(["useUserSignup",0,function(){let{authSuccess:e,authRedirect:i}=(0,n.useUserLogin)();return{signup:async(n,i=!0,s={})=>{try{let t=await (n.password?r.upsxClient.auth.register({email:n.email,password:n.password,firstName:n.firstName}):r.upsxClient.auth.registerPasswordless({email:n.email,firstName:n.firstName}));return await e({email:t.email,userID:t.userID,type:"signup"},i,s),{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:i}}])}]);