(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,829862,e=>{"use strict";var t=e.i(538167);let n=(0,t.createContext)({experience:"wx",embedded:!1}),r=n.Provider;e.s(["C",0,r,"a",0,function(){return(0,t.useContext)(n)}])},499239,e=>{"use strict";var t=e.i(144683),n=e.i(74492);(0,t.g)("auth");let r=(0,t.g)(null);(0,t.g)(null);let i=(0,t.g)(!1),l=(0,t.g)(null),a=(0,n.N)("wxu-web/keyval:cart","",void 0,{getOnInit:!0}),s=(0,n.N)("wxu-web/keyval:cartIds",null,void 0,{getOnInit:!0}),o=(0,t.g)(""),c=(0,t.g)(null),u=(0,n.N)("wxu-web/keyval:eventChainId","",void 0,{getOnInit:!0}),d=(0,t.g)("idle");e.s(["O",0,r,"N",0,c,"E",0,s,"A",0,a,"u",0,d,"C",0,u,"Q",0,l,"k",0,i,"P",0,o])},81083,e=>{"use strict";var t=e.i(458201),n=e.i(538167),r=e.i(789422),i=e.i(118119),l=e.i(171176),a=e.i(877957),s=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,hideSocialLogin:p,hideNewsletters:g})=>{let[h,x]=(0,n.useState)(e),v=(0,r.r)("UserAuth"),{user:w,userProfile:b}=(0,c.f)(),{email:y,firstName:j}=b||{},N=(0,u.f)(),{userLastName:C}=(0,d.f)();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)(s.p,{variant:"Title.M",color:"secondary",className:"font-semibold",children:v("yourAccount")}),(0,t.jsx)(a.f,{variant:"link",type:"button",className:(0,s.E)({className:"h-[revert] p-0",variant:"Body.M"}),onClick:()=>N(),children:v("logout")})]}),(0,t.jsx)(s.p,{color:"secondary",children:[j,C].filter(Boolean).join(" ")}),(0,t.jsx)(s.p,{color:"secondary",children:y})]}):(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)(s.p,{variant:"Title.M",className:"font-semibold",children:v("signin")}),(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsxs)(s.p,{color:"secondary",children:[v("noAccount")," "]}),(0,t.jsx)(a.f,{variant:"link",type:"button",className:(0,s.E)({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)(s.p,{className:"mb-2",children:v("haveAccount")}),(0,t.jsxs)("div",{className:"flex justify-center gap-4",children:[(0,t.jsx)(a.f,{variant:"secondary",className:"bg-gray-100",onClick:()=>x(!0),children:v("signin")}),!p&&(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:v("or")})})]}),(0,t.jsx)(s.p,{variant:"Title.M",className:"mb-4 font-semibold",children:v("signup")}),(0,t.jsx)(l.default,{signupBtnText:v("signupAndContinue"),showLastName:f,hideConfirmPassword:m,hideNewsletters:g})]})})}])},118119,e=>{"use strict";var t=e.i(458201),n=e.i(538167),r=e.i(748689),i=e.i(930836),l=e.i(789422),a=e.i(935251),s=e.i(282446),o=e.i(430235),c=e.i(323083),u=e.i(738653),d=e.i(143851),f=e.i(226843),m=e.i(269767),p=e.i(240058),g=e.i(825440),h=e.i(368847),x=e.i(677988),v=e.i(877957),w=e.i(495110),b=e.i(609958),y=e.i(558802),j=e.i(528600),N=e.i(725296),C=e.i(394481),E=e.i(918462);e.s(["default",0,({loginBtnText:e})=>{let M=(0,l.r)("UserAuth"),{login:T}=(0,d.f)(),[A,S]=(0,n.useState)(!1),P=(0,w.f)(),[O,I]=(0,n.useState)(null),R=(0,n.useMemo)(()=>o.z.object({email:c.z.email({message:M("invalidEmailError")}),password:u.z.string().min(8,{message:M("passwordMinLength")})}),[M]),{user:_}=(0,j.f)(),L=(0,s.y)(C.f)??N.U.EXEMPT,k=(0,a.useParams)()?.locale||"",{legalLinks:U}=(0,E.f)(L,k,_?.isUserLoggedIn||!1),D=(0,n.useMemo)(()=>U.find(e=>"termsOfUse"===e.titleTranslationKey),[U]),V=(0,n.useMemo)(()=>U.find(e=>"privacyPolicy"===e.titleTranslationKey),[U]),B=(0,r.G)({resolver:(0,i.f)(R),defaultValues:{email:"",password:""}}),z=async e=>{S(!0),I(null);try{let t=await T(e.email,e.password);t.success||(I((0,f.s)(t.error.messageCode,(0,f.A)("login",t.error.messageCode??0))),S(!1))}catch(e){I(M("loginGenericError")),S(!1),console.error("Login error:",e)}};return(0,t.jsxs)("div",{className:"@container/loginForm",children:[O&&(0,t.jsx)("div",{role:"alert",className:"rounded border border-red-200 bg-red-50 px-4 py-3 text-red-700",children:O}),(0,t.jsx)(m.n,{...B,children:(0,t.jsxs)("form",{method:"post",onSubmit:B.handleSubmit(z),children:[(0,t.jsx)(m.G,{control:B.control,name:"email",render:({field:e})=>(0,t.jsx)(m.V,{children:(0,t.jsx)(m.K,{children:(0,t.jsx)(g.f,{...e,type:"email",label:M("email"),icon:b.f})})})}),(0,t.jsx)(m.G,{control:B.control,name:"password",render:({field:e})=>(0,t.jsx)(m.V,{children:(0,t.jsx)(m.K,{children:(0,t.jsx)(x.f,{...e,label:M("password"),icon:y.f})})})}),(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)(p.default,{href:"/forgot-password",className:"text-sm whitespace-nowrap hover:underline",children:M("forgotPassword")})}),(0,t.jsx)(h.p,{className:"m-0 @lg/loginForm:max-w-xl",dangerouslySetInnerHTML:{__html:M.raw("authenticationUniformityNote")}})]}),(0,t.jsx)(v.f,{type:"submit",loading:A,disabled:A||P,children:e||M("signin")}),(0,t.jsx)(h.p,{className:"my-4 py-2.5 text-[13px] font-normal",children:M.rich("agreeTermsContinue",{termsOfUse:e=>(0,t.jsx)(p.default,{href:D?.url||"",className:"text-blue-600 underline",children:e}),privacyPolicy:e=>(0,t.jsx)(p.default,{href:V?.url||"",className:"text-blue-600 underline",children:e})})})]})})]})}])},983950,e=>{"use strict";var t=e.i(458201),n=e.i(538167),r=e.i(404893),i=e.i(282446);e.s(["default",0,function({type:e="standard",text:l="continue_with",theme:a="outline",size:s="large",shape:o="rectangular",logo_alignment:c="center",className:u=""}){let d=(0,i.y)(r.f),f=(0,n.useRef)(null);return(0,n.useEffect)(()=>{let t=window?.google?.accounts?.id;t&&t?.renderButton(f.current,{type:e,shape:o,theme:a,text:l,size:s,logo_alignment:c})},[e,a,s,l,o,c,d]),(0,t.jsx)("div",{id:"google-login-button",ref:f,className:`google-login-button ${u}`,"data-testid":"google-login-button"})}])},138276,e=>{"use strict";let t={"f42d0603-2f6f-454f-aa1f-8a293b8a82a2":{plan:"twc-premium-monthly"},"e251f39b-afd7-4ad9-9c87-5e2a8ed63fbb":{plan:"twc-premium-annual"},"f42d0603-2f6f-454f-aa1f-8a293b8a86ma":{plan:"twc-premium-annual",offer:"ep2qejazaqea"},"ab383695-a1b9-4d39-86e0-90e63b0cb9fb":{plan:"twc-premium-annual",offer:"56e9u62z6c92"},"f7e53b80-9d8c-4733-a31e-d0f97aa917c8":{plan:"twc-premium-annual-100"},"9c2d8ad5-51a4-464e-9d8a-12c0f248ceea":{plan:"twc-premium-6month"},"7218a4c4-1a0a-4e31-b047-b05a4c7a1a7d":{plan:"twc-standard-monthly"},"44b324df-0b83-4b95-b4ab-77803026ee07":{plan:"twc-standard-annual"},"43ea0710-b055-4ab5-ba39-bbfd0bc5d5ce":{plan:"wu-adfree-annual"},"15730354-c91f-4343-a792-a83b16dd183b":{plan:"wu-adfree-monthly"},"55883fb6-c39b-440b-b964-0b96155851e5":{plan:"wu-premium-annual"},"7a808b48-a174-417b-aa4d-c8561cf430ea":{plan:"wu-premium-monthly"}};function n(e){let n;return(!(n=e?.trim().toLowerCase())||!Object.hasOwn(t,n)?null:t[n]??null)?.plan??null}let r=new Map(Object.entries(t).filter(([,e])=>!e.offer).map(([e,{plan:t}])=>[t,e]));e.s(["e",0,n,"B",0,function(e){let t=e?.trim().toLowerCase();return t&&r.get(t)||null},"l",0,function(e){return n(e)?.startsWith("wu-")??!1}])},291967,312557,797238,e=>{"use strict";"u">typeof window&&window.document&&window.document.createElement,e.s(["f",0,function(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}],291967);var t=e.i(538167),n=globalThis?.document?t.useLayoutEffect:()=>{};e.s(["f",0,n],312557),t[" useEffectEvent ".trim().toString()],t[" useInsertionEffect ".trim().toString()];var r=t[" useInsertionEffect ".trim().toString()]||n;Symbol("RADIX:SYNC_STATE"),e.s(["f",0,function({prop:e,defaultProp:n,onChange:i=()=>{},caller:l}){let[a,s,o]=function({defaultProp:e,onChange:n}){let[i,l]=t.useState(e),a=t.useRef(i),s=t.useRef(n);return r(()=>{s.current=n},[n]),t.useEffect(()=>{a.current!==i&&(s.current?.(i),a.current=i)},[i,a]),[i,l,s]}({defaultProp:n,onChange:i}),c=void 0!==e,u=c?e:a;{let n=t.useRef(void 0!==e);t.useEffect(()=>{let e=n.current;if(e!==c){let t=c?"controlled":"uncontrolled";console.warn(`${l} 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.`)}n.current=c},[c,l])}return[u,t.useCallback(t=>{if(c){let n="function"==typeof t?t(e):t;n!==e&&o.current?.(n)}else s(t)},[c,e,s,o])]}],797238)},585886,e=>{"use strict";var t=e.i(538167);function n(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}e.s(["f",0,function(...e){return t.useCallback(function(...e){return t=>{let r=!1,i=e.map(e=>{let i=n(e,t);return r||"function"!=typeof i||(r=!0),i});if(r)return()=>{for(let t=0;t{"use strict";var t=e.i(538167),n=e.i(458201);e.s(["e",0,function(e,r){let i=t.createContext(r),l=e=>{let{children:r,...l}=e,a=t.useMemo(()=>l,Object.values(l));return(0,n.jsx)(i.Provider,{value:a,children:r})};return l.displayName=e+"Provider",[l,function(n){let l=t.useContext(i);if(l)return l;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${e}\``)}]},"c",0,function(e,r=[]){let i=[],l=()=>{let n=i.map(e=>t.createContext(e));return function(r){let i=r?.[e]||n;return t.useMemo(()=>({[`__scope${e}`]:{...r,[e]:i}}),[r,i])}};return l.scopeName=e,[function(r,l){let a=t.createContext(l),s=i.length;i=[...i,l];let o=r=>{let{scope:i,children:l,...o}=r,c=i?.[e]?.[s]||a,u=t.useMemo(()=>o,Object.values(o));return(0,n.jsx)(c.Provider,{value:u,children:l})};return o.displayName=r+"Provider",[o,function(n,i){let o=i?.[e]?.[s]||a,c=t.useContext(o);if(c)return c;if(void 0!==l)return l;throw Error(`\`${n}\` must be used within \`${r}\``)}]},function(...e){let n=e[0];if(1===e.length)return n;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=r.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return t.useMemo(()=>({[`__scope${n.scopeName}`]:i}),[i])}};return r.scopeName=n.scopeName,r}(l,...r)]}])},192323,e=>{"use strict";var t=e.i(538167),n=e.i(585886),r=e.i(312557),i=e=>{var i;let a,s,{present:o,children:c}=e,u=function(e){var n,i;let[a,s]=t.useState(),o=t.useRef(null),c=t.useRef(e),u=t.useRef("none"),[d,f]=(n=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,n));return t.useEffect(()=>{let e=l(o.current);u.current="mounted"===d?e:"none"},[d]),(0,r.f)(()=>{let t=o.current,n=c.current;if(n!==e){let r=u.current,i=l(t);e?f("MOUNT"):"none"===i||t?.display==="none"?f("UNMOUNT"):n&&r!==i?f("ANIMATION_OUT"):f("UNMOUNT"),c.current=e}},[e,f]),(0,r.f)(()=>{if(a){let e,t=a.ownerDocument.defaultView??window,n=n=>{let r=l(o.current).includes(CSS.escape(n.animationName));if(n.target===a&&r&&(f("ANIMATION_END"),!c.current)){let n=a.style.animationFillMode;a.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===a.style.animationFillMode&&(a.style.animationFillMode=n)})}},r=e=>{e.target===a&&(u.current=l(o.current))};return a.addEventListener("animationstart",r),a.addEventListener("animationcancel",n),a.addEventListener("animationend",n),()=>{t.clearTimeout(e),a.removeEventListener("animationstart",r),a.removeEventListener("animationcancel",n),a.removeEventListener("animationend",n)}}f("ANIMATION_END")},[a,f]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:t.useCallback(e=>{o.current=e?getComputedStyle(e):null,s(e)},[])}}(o),d="function"==typeof c?c({present:u.isPresent}):t.Children.only(c),f=(0,n.f)(u.ref,(i=d,(s=(a=Object.getOwnPropertyDescriptor(i.props,"ref")?.get)&&"isReactWarning"in a&&a.isReactWarning)?i.ref:(s=(a=Object.getOwnPropertyDescriptor(i,"ref")?.get)&&"isReactWarning"in a&&a.isReactWarning)?i.props.ref:i.props.ref||i.ref));return"function"==typeof c||u.isPresent?t.cloneElement(d,{ref:f}):null};function l(e){return e?.animationName||"none"}i.displayName="Presence",e.s(["f",0,i])},366461,e=>{"use strict";var t=e.i(538167),n=e.i(2248),r=e.i(95927),i=e.i(458201),l=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,n)=>{let l=(0,r.B)(`Primitive.${n}`),a=t.forwardRef((e,t)=>{let{asChild:r,...a}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,i.jsx)(r?l:n,{...a,ref:t})});return a.displayName=`Primitive.${n}`,{...e,[n]:a}},{});e.s(["V",0,l,"u",0,function(e,t){e&&n.flushSync(()=>e.dispatchEvent(t))}])},675535,723356,e=>{"use strict";var t=e.i(115071);e.s(["z",0,t],675535);var n=e.i(458201),r=e.i(538167),i=e.i(747961);let l=(0,r.forwardRef)(({title:e,titleId:t,desc:r,descId:i,...l},a)=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:a,"aria-labelledby":t,"aria-describedby":i,...l,children:[r?(0,n.jsx)("desc",{id:i,children:r}):null,void 0===e?(0,n.jsx)("title",{id:t,children:"Person"}):e?(0,n.jsx)("title",{id:t,children:e}):null,(0,n.jsx)("g",{fill:"currentColor",children:(0,n.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,t)=>(0,n.jsx)(i.f,{ref:t,icon:l,...e}));a.displayName="Person",e.s(["f",0,a],723356)},323083,e=>{"use strict";var t=e.i(115071);e.s(["z",0,t])},738653,677988,e=>{"use strict";var t=e.i(115071);e.s(["z",0,t],738653);var n=e.i(458201),r=e.i(538167),i=e.i(825440),l=e.i(877957),a=e.i(747961);let s=(0,r.forwardRef)(({title:e,titleId:t,desc:r,descId:i,...l},a)=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:a,"aria-labelledby":t,"aria-describedby":i,...l,children:[r?(0,n.jsx)("desc",{id:i,children:r}):null,void 0===e?(0,n.jsx)("title",{id:t,children:"View Off"}):e?(0,n.jsx)("title",{id:t,children:e}):null,(0,n.jsxs)("g",{fill:"currentColor",children:[(0,n.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,n.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,t)=>(0,n.jsx)(a.f,{ref:t,icon:s,...e}));o.displayName="ViewOff";var c=e.i(245308);let u=r.default.forwardRef(({className:e,label:t="Password",error:a,...s},u)=>{let[d,f]=(0,r.useState)(!1);return(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsx)(i.f,{label:t,type:d?"text":"password",error:a,ref:u,...s,onClear:void 0}),(0,n.jsx)(l.f,{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,n.jsx)(o,{className:"h-4 w-4 text-gray-500"}):(0,n.jsx)(c.f,{className:"h-4 w-4 text-gray-500"})})]})});u.displayName="PasswordInput",e.s(["f",0,u],677988)},617145,542675,243083,964937,e=>{"use strict";var t=e.i(538167),n=e.i(282446),r=e.i(128541);let i={sourcePage:null,sourceModule:null,sourceElement:null,sourceUpsellPlacement:null};function l(e){if(!e||"string"!=typeof e)return i;let t=e.split("-");if("mktg"!==t[0])return i;let n=t[1]||null,r=t[2]||null,l=t[3]||null,a=r&&r.toLowerCase().includes("upsell")?r:null;return{sourcePage:n,sourceModule:r,sourceElement:l,sourceUpsellPlacement:a}}e.s(["f",0,l],542675);var a=e.i(293163);e.s(["f",0,()=>{let e=(0,n.y)(r.f),i=l((0,a.J)()),s=e?.sourcePage??i.sourcePage,o=e?.sourceModule??i.sourceModule,c=e?.sourceElement??i.sourceElement,u=e?.sourceUpsellPlacement??i.sourceUpsellPlacement;return(0,t.useMemo)(()=>({...s&&{sourcePage:s},...o&&{sourceModule:o},...c&&{sourceElement:c},...u&&{sourceUpsellPlacement:u}}),[s,o,c,u])}],617145);var s=e.i(777638);e.s(["f",0,()=>{let e=(0,n.y)(r.f),i=l((0,s.J)()),a=e?.sourcePage??i.sourcePage,o=e?.sourceModule??i.sourceModule,c=e?.sourceElement??i.sourceElement,u=e?.sourceUpsellPlacement??i.sourceUpsellPlacement;return(0,t.useMemo)(()=>({...a&&{sourcePage:a},...o&&{sourceModule:o},...c&&{sourceElement:c},...u&&{sourceUpsellPlacement:u}}),[a,o,c,u])}],243083);var o=e.i(201542),c=e.i(682142),u=e.i(782937),d=e.i(695881),f=e.i(333350),m=e.i(64412),p=e.i(950771),g=e.i(537989),h=e.i(695203),x=e.i(673915),v=e.i(158662),w=e.i(358273),b=e.i(409628),y=e.i(924776),j=e.i(24638),N=e.i(605781),C=e.i(963722),E=e.i(313983);let M=(0,d.createLogger)("useTrackSubscriptionAttempted");e.s(["f",0,()=>{let e=(0,n.y)(g.f),r=(0,n.y)(p.f),i=(0,n.y)(h.f),l=(0,n.y)(x.f),a=(0,n.y)(v.f),{location:d}=(0,m.f)(),T=(0,j.f)(),A=(0,y.f)()&&void 0!==T,S=(0,t.useRef)(new Set);return(0,t.useCallback)(t=>{if(!f.default)return;let n=`${t.step}:${t.completed??!1}`;if(S.current.has(n))return;if(!A)return void M.warn('Hightouch: Event "subscription-attempted" skipped - SDK not ready');let m=(0,c.f)(),p=m?.["TWC-GeoIP-Country"]??(0,o.getCookie)("twc-location-country"),g=m?.["TWC-GeoIP-Region"]??(0,o.getCookie)("twc-location-region"),h=m?.["TWC-Privacy"]??(0,o.getCookie)("twc-privacy"),x=window.DprSdk?.getGdprConsentOptInsString()??"",v=(0,C.u)(E.f.SALE_OF_DATA),y=(0,o.getCookie)("partner")||"",j=(0,u.i)(y)??y,P=(0,w.N)(),O=new Date,I={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:r,deviceClass:i,partner:j,sessionId:P?.sessionId||"",sessionStartTime:new Date(P?.sessionStartTime||0).toISOString(),siteMode:"normal",dayOfWeek:b.f[O.getDay()]??"",hourOfDay:O.getHours(),regime:h??"",cookiesEnabled:navigator?.cookieEnabled??!1,gpcSignalOptOut:window.navigator?.globalPrivacyControl??!1,functionalTechnologies:(0,C.u)(E.f.FUNCTIONAL_TECHNOLOGY),geographicallyRelevantAds:(0,C.u)(E.f.GEOGRAPHICALLY_RELEVANT_ADVERTISING),interestBasedAds:T?.[E.f.INTEREST_BASED_ADS]??null,priv:x,privProducts:window.DprSdk?.getCcpaSaleOptInString()??"",saleOfDataAuthorization:v,sensitiveDataAuthorization:(0,C.u)(E.f.SENSITIVE_DATA),referrer:document.referrer,campaign:(0,s.s)(),tpcc:(0,s.J)(),linkReferral:(0,s.W)(),fromString:l,experimentJoinList:a,weatherMode:"normal",physicalCountry:p??"",physicalState:g??"",wlocCity:d?.city??null,wlocCountry:d?.countryCode??null,wlocState:d?.adminDistrictCode??null,wlocDMA:d?.dmaCd??null,samsungVersion:(0,s.L)(),appVersion:"a9ce9f6ee5972c3d49b968d0378f5c244f1b9d64".slice(0,10)};try{let e=(0,N.E)(I);return S.current.add(n),M.info('Hightouch: Event "subscription-attempted" tracked'),e}catch(e){M.error('Hightouch: Event "subscription-attempted" failed',{error:e});return}},[A,e,r,i,l,a,d,T])}],964937)},105335,e=>{"use strict";var t=e.i(458201),n=e.i(538167),r=e.i(747961);let i=(0,n.forwardRef)(({title:e,titleId:n,desc:r,descId:i,...l},a)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:a,"aria-labelledby":n,"aria-describedby":i,...l,children:[r?(0,t.jsx)("desc",{id:i,children:r}):null,void 0===e?(0,t.jsx)("title",{id:n,children:"Warning"}):e?(0,t.jsx)("title",{id:n,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"})})})]})),l=n.default.forwardRef((e,n)=>(0,t.jsx)(r.f,{ref:n,icon:i,...e}));l.displayName="Warning",e.s(["f",0,l])},609958,e=>{"use strict";var t=e.i(458201),n=e.i(538167),r=e.i(747961);let i=(0,n.forwardRef)(({title:e,titleId:n,desc:r,descId:i,...l},a)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:a,"aria-labelledby":n,"aria-describedby":i,...l,children:[r?(0,t.jsx)("desc",{id:i,children:r}):null,void 0===e?(0,t.jsx)("title",{id:n,children:"Email"}):e?(0,t.jsx)("title",{id:n,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"})]})),l=n.default.forwardRef((e,n)=>(0,t.jsx)(r.f,{ref:n,icon:i,...e}));l.displayName="Email",e.s(["f",0,l])}]);