PageSourceSearch

https://abrighteryear.com/a/account/_next/static/chunks/app/layout…?dpl=dpl_8mmd7GBmvJxcniZre8MzsB7y1MiT

js abrighteryear.com collected 2026-10-03 21:23:36 UTC 39,266 bytes, 200 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[589,4243,7177],{1101:(e,t,r)=>{"use strict";let n,o;r.d(t,{Op:()=>N,JZ:()=>C,nz:()=>O});var i=r(64486),s=r.n(i),a=r(76985),l=r(91007),c=r(67186),u=r(2998),d=r(25992),m=r(33863),f=r(73350),h=r(35222),p=r(78051),y=r(63790);async function g(e,t){let r,n=`${e}:${t}`,o=new TextEncoder().encode(n);return r=window.crypto,Array.from(new Uint8Array(await r.subtle.digest("SHA-256",o))).map(e=>e.toString(16).padStart(2,"0")).join("").slice(0,32)}var v=r(10190),b=r(78109),x=r(37811);let w=[],S=null;function k(){if(0===w.length)return;let e=[...w];w=[],S&&(clearTimeout(S),S=null),(0,b.U)({path:v.eXJ,body:{metrics:e},method:"POST"})}var _=function(e){return e.GraphQL="graphql",e.IntegrationMetrics="integration_metrics",e.JourneyRunMetrics="journey_run_metrics",e.LegacyPrometheus="legacy_prometheus",e.BigQuery="bigquery",e.UserActivityLog="user_activity_log",e.LambdaInvocations="lambda_invocations",e.LoyaltyReward="loyalty_reward",e.BillingMetrics="billing_metrics",e.ABTestExposure="ABTestExposure",e.McpUsageEvents="mcp_usage_events",e.JarvisUsageEvents="jarvis_usage_events",e.AnalyticsPipelineMetrics="analytics_pipeline_metrics",e.ComponentAnalyticsEvents="component_analytics_events",e.SmartCarouselABEvents="smart_carousel_ab_events",e}({}),j=r(91476),P=r(37811);function O({hasuraUrl:e,cognitoUserPoolId:t}){n=e,o=t}async function I(){try{return(await j.N.currentSession()).getIdToken().getJwtToken()}catch{return}}async function C(){try{let e=(await j.N.currentSession()).getIdToken().decodePayload();return e["custom:storefrontUserId"]||e.sub}catch{return}}let E=new a.c(e=>(function(e){let t=e.definitions.find(e=>"OperationDefinition"===e.kind);if(!t||!t.name?.value)return e;let r=t.name.value;return t.selectionSet&&t.selectionSet.selections&&t.selectionSet.selections.forEach(e=>{"Field"===e.kind&&function(e,t){if("Field"===t.kind){if(!t.selectionSet||t.selectionSet.selections.find(t=>"Field"===t.kind&&t.alias?.value===`_${e}`))return;let r={kind:y.b.FIELD,name:{kind:y.b.NAME,value:"__typename"},alias:{kind:y.b.NAME,value:`_${e}`},arguments:[],directives:[]};t.selectionSet.selections=[r,...t.selectionSet.selections]}}(r,e)}),e})(e));function N(e){let t=(0,l.$)({uri:n??"https://graphql.skio.com/v1/graphql"}),r=(0,f.o)(async(t,{headers:r})=>{let i=await I();if(i){let t=o??"us-west-2_ky2hNEMAZ";if(!t)throw Error("Cognito user pool id missing");let s={userpoolid:t,region:"us-west-2",authorization:`Bearer ${i}`},a=Math.floor(Date.now()/6e4),l=n??"https://graphql.skio.com/v1/graphql";return{headers:{...e?.useReadReplica&&{"X-Hasura-Read-Replica":"true"},...r,...s,"X-Hasura-From-Skio":"true",...l?.includes("localhost")&&{"X-Hasura-Admin-Secret":"myadminsecretkey"},...e?.dashboard&&{"X-Hasura-Permission-Token":await g(a,t),"X-Hasura-Timestamp":a,"X-Hasura-Site-Id":t}}}}return{headers:{...r,qaV3StackId:e?.qaV3StackId}}}),i=e?.shopifyStorefront!=null&&null!=e.shopifyStorefront.storefrontAccessToken,a=new c.C((e,t)=>e.getContext().useStorefront&&!i?null:t(e)),y=i?(0,l.$)({uri:`https://${e.shopifyStorefront.domain}/api/2024-07/graphql.json`}):null,v=i?(0,f.o)(async(t,{headers:r})=>({headers:{"X-Shopify-Storefront-Access-Token":e?.shopifyStorefront?.storefrontAccessToken,...r}})):null,b=e=>i&&v&&y?c.C.split(e=>e.getContext().useStorefront,(0,u.H)([v,y]),e):e;if(P.env.NEXT_PUBLIC_HASURA_ACTION_URL){let n=(0,l.$)({uri:P.env.NEXT_PUBLIC_HASURA_ACTION_URL}),o=(0,f.o)(async(e,{headers:t})=>({headers:{...t,"X-Hasura-Admin-Secret":"myadminsecretkey"}})),i=e?.link?c.C.from([e.link,a,n]):n,s=e?.link?c.C.from([e.link,a,t]):t,u=c.C.split(e=>!0===e.getContext().isAction,o.concat(i),r.concat(s));return new d.R({link:b(u),cache:new m.D,documentTransform:E})}let j=new h.z({delay:{initial:50},attempts:{max:3}}),O=new c.C((e,t)=>(e.setContext({start:performance.now()}),t(e))),C=new c.C((t,r)=>r(t).map(r=>{let n=performance.now()-t.getContext().start;return(({table:e,metric:t})=>{if(!x.env.JEST_WORKER_ID){if(w.push({table:e,metric:t}),w.length>=50)return k();S||(S=setTimeout(k,5e3))}})({table:_.GraphQL,metric:{operationName:t.operationName,functionName:e?.dashboard?"_dashboard":"_storefront",duration:Math.round(n),responseSize:r.data?JSON.stringify(r.data).length:0,success:!r.errors,siteId:s().get(p.Cn)}}),r})),N=O.concat(C),L=(0,u.H)([r,j,N,...e?.link?[e.link]:[],t]);return new d.R({link:i?b(L):(0,u.H)([a,L]),cache:new m.D,documentTransform:E})}},3546:(e,t,r)=>{Promise.resolve().then(r.bind(r,84699)),Promise.resolve().then(r.bind(r,53530)),Promise.resolve().then(r.t.bind(r,44097,23)),Promise.resolve().then(r.bind(r,2881)),Promise.resolve().then(r.bind(r,91378)),Promise.resolve().then(r.bind(r,6844)),Promise.resolve().then(r.bind(r,27949)),Promise.resolve().then(r.bind(r,84295)),Promise.resolve().then(r.bind(r,91461)),Promise.resolve().then(r.bind(r,48725)),Promise.resolve().then(r.bind(r,40751)),Promise.resolve().then(r.bind(r,42642)),Promise.resolve().then(r.bind(r,3555)
1),Promise.resolve().then(r.bind(r,41111)),Promise.resolve().then(r.bind(r,61783)),Promise.resolve().then(r.bind(r,45107)),Promise.resolve().then(r.bind(r,39246)),Promise.resolve().then(r.bind(r,22220))},7180:(e,t,r)=>{"use strict";r.d(t,{YF:()=>m,yn:()=>d,pY:()=>u,y_:()=>l});var n=r(91536);let o=(0,n.J1)`
2    fragment StorefrontUserWithSubscriptions on StorefrontUser {
3  id
4  platformId
5  siteId
6  firstName
7  lastName
8  email
9  Site {
10    id
11    domain
12  }
13  Tags {
14    id
15    Tag {
16      id
17      name
18    }
19  }
20  Subscriptions(
21    where: {_or: [{statusContext: {_is_null: true}}, {statusContext: {_neq: "PERMANENTLY_CANCELLED"}}]}
22    order_by: [{status: asc}, {nextBillingDate: asc}]
23  ) {
24    id
25    createdAt
26    status
27    statusContext
28    nextBillingDate
29    currencyCode
30    prepaidGiftRecipientId
31    prepaidDeliveryPolicyId
32    deliveryPrice
33    deliveryPriceOverride
34    BillingPolicy {
35      interval
36      intervalCount
37      Anchors {
38        day
39        type
40        cutoffDay
41        strictness
42        missedAnchorAllowance
43      }
44    }
45    DeliveryPolicy {
46      interval
47      intervalCount
48      Anchors {
49        day
50        type
51        cutoffDay
52        strictness
53        missedAnchorAllowance
54      }
55    }
56    PrepaidDeliveryPolicy {
57      interval
58      intervalCount
59      Anchors {
60        day
61        type
62        cutoffDay
63        strictness
64        missedAnchorAllowance
65      }
66    }
67    StorefrontUser {
68      id
69      backupPaymentMethodId
70    }
71    ShippingAddress {
72      country
73    }
74    SubscriptionLines(where: {removedAt: {_is_null: true}}) {
75      id
76      platformId
77      quantity
78      priceWithoutDiscount
79      productVariantId
80      ordersRemaining
81      customAttributes
82      titleOverride
83      isPrepaid
84      taxable
85      updatedAt
86      createdAt
87      customAttributes
88      Discounts {
89        id
90        platformId
91        title
92        type
93        timesUsed
94        maxTimesUsed
95        fixedValue
96        percentage
97        redeemCode
98        appliesOnEachItem
99        updatedAt
100        createdAt
101      }
102      ProductVariant {
103        id
104        title
105        image
106        price
107        platformId
108        outOfStockAt
109        compareAtPrice
110        Product {
111          id
112          title
113          imageSrc
114          slug
115          deletedAt
116          platformId
117          limitOneTimeUpsellQuantity
118          Collection_Products {
119            collectionId
120            Collection {
121              id
122              title
123            }
124          }
125        }
126        SellingPlanGroupResources {
127          SellingPlanGroup {
128            SellingPlans {
129              BillingPolicy {
130                interval
131                intervalCount
132                Anchors {
133                  day
134                  type
135                  cutoffDay
136                  strictness
137                  missedAnchorAllowance
138                }
139              }
140            }
141          }
142        }
143      }
144    }
145  }
146}
147    `;var i=r(65245);let s={},a=(0,n.J1)`
148    query getStorefrontUserWithSubscriptionsByPlatformId($storefrontUserPlatformId: String!) {
149  StorefrontUsers(where: {platformId: {_eq: $storefrontUserPlatformId}}) {
150    ...StorefrontUserWithSubscriptions
151  }
152}
153    ${o}`;function l(e){let t=Object.assign(Object.assign({},s),e);return i.IT(a,t)}let c=(0,n.J1)`
154    query getStorefrontUserWithSubscriptionsByPk($storefrontUserId: uuid!) {
155  StorefrontUserByPk(id: $storefrontUserId) {
156    ...StorefrontUserWithSubscriptions
157  }
158}
159    ${o}`;function u(e){let t=Object.assign(Object.assign({},s),e);return i.IT(c,t)}let d=(0,n.J1)`
160    query getCustomerInfo($storefrontUserId: uuid!) {
161  StorefrontUserByPk(id: $storefrontUserId) {
162    id
163    platformId
164    firstName
165    lastName
166    email
167    phoneNumber
168    birthday
169    Tags {
170      id
171      Tag {
172        id
173        name
174      }
175    }
176  }
177}
178    `,m=(0,n.J1)`
179    query getCustomerCurrencyCode($storefrontUserId: uuid!) {
180  StorefrontUserByPk(id: $storefrontUserId) {
181    Orders(limit: 1, order_by: {createdAt: desc_nulls_last}) {
182      currencyCode
183    }
184    Subscriptions(
185      limit: 1
186      order_by: {createdAt: desc_nulls_last}
187      where: {status: {_eq: "ACTIVE"}}
188    ) {
189      currencyCode
190    }
191    Site {
192      currencyCode
193    }
194  }
195}
196    `},22220:(e,t,r)=>{"use strict";r.r(t),r.d(t,{TanstackQueryClientProvider:()=>a});var n=r(77571),o=r(24163),i=r(19884),s=r(6844);let a=({children:e})=>
196{let t=o.useMemo(()=>new i.E,[]);return(0,n.jsx)(s.QueryClientProvider,{client:t,children:e})}},30589:(e,t,r)=>{"use strict";r.d(t,{c:()=>a,_:()=>l});var n=r(1101),o=r(3555),i=r(26348),s=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)0>t.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};let a="storefrontUserId";function l(e){var t,r;let l=(0,o.useQuery)(Object.assign({queryKey:[a],queryFn:(t=()=>{var e,t,r,o;return e=this,t=void 0,r=void 0,o=function*(){try{let e=yield(0,n.JZ)();return null!=e?e:null}catch(e){throw e}},new(r||(r=Promise))(function(n,i){function s(e){try{l(o.next(e))}catch(e){i(e)}}function a(e){try{l(o.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,a)}l((o=o.apply(e,t||[])).next())})},r=()=>Promise.resolve("2bc92fc0-8221-49f2-8da3-f277def86c4c"),()=>(0,i.R)(location.search)?r():t())},e)),{data:c}=l;return Object.assign({storefrontUserId:c},s(l,["data"]))}},39246:(e,t,r)=>{"use strict";r.r(t),r.d(t,{TanstackOptionsContext:()=>l,TanstackOptionsFactory:()=>s,TanstackOptionsProvider:()=>u,useGetMutationOptions:()=>m,useGetQueryOptions:()=>d,useTanstackOptionsContext:()=>c});var n=r(77571),o=r(24163),i=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function s(e){try{l(n.next(e))}catch(e){i(e)}}function a(e){try{l(n.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})};class s{constructor(){this.registeredQueryOptions=[],this.registeredMutationOptions=[]}registerQueryOptions({key:e,options:t}){let r=this.registeredQueryOptions.findIndex(t=>t.key===e);if(-1===r)return void this.registeredQueryOptions.push({key:e,options:t});this.registeredQueryOptions[r].options=t}registerMutationOptions({key:e,options:t}){let r=this.registeredMutationOptions.findIndex(t=>t.key===e);if(-1===r)return void this.registeredMutationOptions.push({key:e,options:t});this.registeredMutationOptions[r].options=t}deleteQueryOptions(e){let t=this.registeredQueryOptions.findIndex(t=>t.key===e);-1!==t&&this.registeredQueryOptions.splice(t,1)}deleteMutationOptions(e){let t=this.registeredMutationOptions.findIndex(t=>t.key===e);-1!==t&&this.registeredMutationOptions.splice(t,1)}onFetch(e,t){var r,n,o;for(let i of this.registeredQueryOptions)null==(o=null==(n=null==(r=i.options)?void 0:r.behavior)?void 0:n.onFetch)||o.call(n,e,t)}onMutate(e){return i(this,void 0,void 0,function*(){var t,r;for(let n of this.registeredMutationOptions)yield null==(r=null==(t=n.options)?void 0:t.onMutate)?void 0:r.call(t,e)})}onMutationSuccess(e,t,r){return i(this,void 0,void 0,function*(){var n,o;for(let i of this.registeredMutationOptions)yield null==(o=null==(n=i.options)?void 0:n.onSuccess)?void 0:o.call(n,e,t,r)})}onMutationError(e,t,r){return i(this,void 0,void 0,function*(){var n,o;for(let i of this.registeredMutationOptions)yield null==(o=null==(n=i.options)?void 0:n.onError)?void 0:o.call(n,e,t,r)})}}let a=new s,l=o.createContext({tanstackOptionsFactory:a});function c(){return o.useContext(l)}function u({children:e}){return(0,n.jsx)(l.Provider,{value:{tanstackOptionsFactory:a},children:e})}function d(e){let{tanstackOptionsFactory:t}=c();return o.useMemo(()=>Object.assign(Object.assign({},e),{behavior:Object.assign(Object.assign({},e.behavior),{onFetch:(r,n)=>{var o,i;try{t.onFetch(r,n)}catch(e){}return null==(i=null==(o=e.behavior)?void 0:o.onFetch)?void 0:i.call(o,r,n)}})}),[e,t])}function m(e){let{tanstackOptionsFactory:t}=c();return o.useMemo(()=>{let r=r=>i(this,void 0,void 0,function*(){var n;try{yield t.onMutate(r)}catch(e){}return null==(n=e.onMutate)?void 0:n.call(e,r)}),n=(r,n,o)=>i(this,void 0,void 0,function*(){var i;try{yield t.onMutationSuccess(r,n,o)}catch(e){}return null==(i=e.onSuccess)?void 0:i.call(e,r,n,o)}),o=(r,n,o)=>i(this,void 0,void 0,function*(){var i;try{yield t.onMutationError(r,n,o)}catch(e){}return null==(i=e.onError)?void 0:i.call(e,r,n,o)});return Object.assign(Object.assign({},e),{onMutate:r,onSuccess:n,onError:o})},[e,t])}},42268:(e,t,r)=>{"use strict";r.d(t,{f:()=>i,j:()=>s});var n=r(77571),o=r(56149);let i=(0,r(24163).createContext)(void 0);function s(e){let t,r=(0,o.c)(3),{children:s,magicLoginData:a}=e;return r[0]!==s||r[1]!==a?(t=(0,n.jsx)(i.Provider,{value:a,children:s}),r[0]=s,r[1]=a,r[2]=t):t=r[2],t}},44097:()=>{},46567:(e,t,r)=>{"use strict";r.d(t,{d:()=>h,t:()=>f});var n=r(77571),o=r(56149),i=r(24163),s=r(338),a=r(81478),l=r(73822),c=r(20299),u=r(28402),d=r(66683);let m=i.createContext(null);function f(e){let t,r,l,u,d,f,h,p,y=(0,o.c)(16),{children:v}=e,[b,x]=i.useState(!1);y[0]===Symbol.for("react.memo_cache_sentinel")?(t={},y[0]=t):t=y[0];let[w,S]=i.useState(t),k=i.useRef(null),_=(0,a.D)();y[1]===Symbol.for("react.memo_cache_sentinel")?(r=e=>{let{title:t,description:r,duration:n,type:o,allowDismiss:i}=e,s=void 0===n?4e3:n;S({title:t,description:r,duration:s,type:void 0===o?"success":o,allowDismiss:void 0!==i&&i}),x(!1),setTimeout(()=>x(!0),10),k.current&&clearTimeout(k.current),k.current=setTimeout(()=>x(!1),s)},y[1]=r):r=y[1];let j=r;y[2]===Symbol.for("react.memo_cache_sentinel")?(l=()=>()=>{k.current&&clearTimeout(k.current)},u=[],y[2]=l,y[3]=u):(l=y[2],u=y[3]),i.useEffect(l,u),y[4]===Symbol.for("react.memo_cache_sentinel")?(d={showToast:j},y[4]=d):d=y[4];let P=w.type||"success";return y[5]!==b||y[6]!==P||y[7]!==w.description||y[8]!==w.title?(f=(0,n.jsx)(g,{open:b,onOpenChange:x,title:w.title,de
196scription:w.description,type:P}),y[5]=b,y[6]=P,y[7]=w.description,y[8]=w.title,y[9]=f):f=y[9],y[10]!==_?(h=_&&(0,s.createPortal)((0,n.jsx)(c.LM,{className:"fixed z-[99999] bottom-16 left-0 right-0 mx-auto flex flex-col gap-2 w-[360px] max-w-full outline-none"}),document.getElementById("skio-portal")??document.body),y[10]=_,y[11]=h):h=y[11],y[12]!==v||y[13]!==f||y[14]!==h?(p=(0,n.jsx)(m.Provider,{value:d,children:(0,n.jsxs)(c.Kq,{swipeDirection:"right",children:[v,f,h]})}),y[12]=v,y[13]=f,y[14]=h,y[15]=p):p=y[15],p}function h(){let e=i.useContext(m);if(!e)throw Error("useToast must be used within ToastProvider");return e}function p(e){let t,r,i,s,a=(0,o.c)(7),{description:l}=e;a[0]!==l?(t=()=>{if(!l)return null;let e=l.split(/(\{\{[^}]+\}\})/g);return(0,n.jsx)("p",{className:"leading-5 text-sm",children:e.map(y)})},a[0]=l,a[1]=t):t=a[1];let c=t;return a[2]===Symbol.for("react.memo_cache_sentinel")?(r=(0,n.jsx)("div",{className:"bg-utility-brand-200 relative rounded-full shrink-0 size-8 flex items-center justify-center",children:(0,n.jsx)(d.kyX,{className:"w-4 h-4 text-brand-700"})}),a[2]=r):r=a[2],a[3]!==c?(i=c(),a[3]=c,a[4]=i):i=a[4],a[5]!==i?(s=(0,n.jsxs)("div",{className:"bg-bg-primary flex gap-4 items-center p-4 relative rounded-xl shadow-xs",children:[r,i]}),a[5]=i,a[6]=s):s=a[6],s}function y(e,t){if(e.startsWith("{{")&&e.endsWith("}}")){let r=e.slice(2,-2);return(0,n.jsx)("span",{className:"font-semibold text-text-brand-secondary",children:r},t)}return(0,n.jsx)(i.Fragment,{children:e},t)}function g(e){let t,r,i,s,a,m,f,h,y,g,v,b,x,w=(0,o.c)(39),{open:S,onOpenChange:k,title:_,description:j,type:P,allowDismiss:O}=e,{t:I}=(0,u.B)();if("brand"===P){let e,t;return w[0]!==j?(e=(0,n.jsx)(p,{description:j}),w[0]=j,w[1]=e):e=w[1],w[2]!==k||w[3]!==S||w[4]!==e?(t=(0,n.jsx)(c.bL,{open:S,onOpenChange:k,duration:4e3,className:"w-full data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-80 data-[state=open]:fade-in-80",children:e}),w[2]=k,w[3]=S,w[4]=e,w[5]=t):t=w[5],t}w[6]===Symbol.for("react.memo_cache_sentinel")?(t={background:"var(--color-bg-secondary, #fff)",borderColor:"var(--color-border-primary, #E9EAEB)",borderRadius:"var(--radius-border-radius-2xl, 16px)"},w[6]=t):t=w[6];let C=`absolute w-10 h-10 rounded-full ${function(e){switch(e){case"success":default:return"bg-[var(--color-success,#16B364)] opacity-20";case"error":return"bg-red-600 opacity-20";case"info":return"bg-blue-600 opacity-20";case"warning":return"bg-yellow-500 opacity-20"}}(P)}`;return w[7]!==C?(r=(0,n.jsx)("span",{className:C}),w[7]=C,w[8]=r):r=w[8],w[9]!==P?(i=function(e){switch(e){case"success":default:return(0,n.jsx)(d.rAV,{className:"w-7 h-7 text-[var(--color-success,#16B364)]"});case"error":return(0,n.jsx)(d.Jpz,{className:"w-7 h-7 text-red-600"});case"info":return(0,n.jsx)(d.d0w,{className:"w-7 h-7 text-blue-600"});case"warning":return(0,n.jsx)(d.hcu,{className:"w-7 h-7 text-yellow-500"})}}(P),w[9]=P,w[10]=i):i=w[10],w[11]!==i?(s=(0,n.jsx)("span",{className:"relative z-10 flex items-center justify-center w-7 h-7 rounded-full bg-white",children:i}),w[11]=i,w[12]=s):s=w[12],w[13]!==r||w[14]!==s?(a=(0,n.jsxs)("span",{className:"relative flex items-center justify-center min-w-10 min-h-10",children:[r,s]}),w[13]=r,w[14]=s,w[15]=a):a=w[15],w[16]!==I?(m=I("common.dismiss"),w[16]=I,w[17]=m):m=w[17],w[18]===Symbol.for("react.memo_cache_sentinel")?(f=(0,n.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M5 5L13 13M13 5L5 13",stroke:"#535862",strokeWidth:"2",strokeLinecap:"round"})}),w[18]=f):f=w[18],w[19]!==m?(h=(0,n.jsx)(c.bm,{asChild:!0,children:(0,n.jsx)("button",{className:"p-1 rounded-full hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-violet-400","aria-label":m,children:f})}),w[19]=m,w[20]=h):h=w[20],w[21]!==a||w[22]!==h?(y=(0,n.jsxs)("div",{className:"flex items-start justify-between w-full gap-4",children:[a,h]}),w[21]=a,w[22]=h,w[23]=y):y=w[23],w[24]!==_||w[25]!==P?(g=_&&(0,n.jsx)("div",{className:(0,l.cx)("mt-[var(--spacing-xl)] text-base font-semibold leading-tight","error"===P?"text-red-600":"text-[var(--color-text-general,#535862)]"),children:_}),w[24]=_,w[25]=P,w[26]=g):g=w[26],w[27]!==j?(v=j&&(0,n.jsx)("div",{className:"text-text-heading text-sm font-normal leading-snug break-words mt-1",children:j}),w[27]=j,w[28]=v):v=w[28],w[29]!==O||w[30]!==I?(b=O&&(0,n.jsx)("div",{className:"flex items-center mt-[var(--spacing-xl)]",children:(0,n.jsx)(c.bm,{asChild:!0,children:(0,n.jsx)("button",{className:"text-[var(--color-text-link,#7F56D9)] text-sm font-medium underline hover:text-violet-700 focus:outline-none","aria-label":I("common.dismiss"),type:"button",children:I("common.dismiss")})})}),w[29]=O,w[30]=I,w[31]=b):b=w[31],w[32]!==k||w[33]!==S||w[34]!==y||w[35]!==g||w[36]!==v||w[37]!==b?(x=(0,n.jsxs)(c.bL,{open:S,onOpenChange:k,duration:4e3,className:"bg-white rounded-border-radius shadow-lg border-cpv3 border-[var(--color-border-primary)] px-[var(--spacing-xl)] pt-[var(--spacing-xl)] pb-3 flex flex-col w-full data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-80 data-[state=open]:fade-in-80",style:t,children:[y,g,v,b]}),w[32]=k,w[33]=S,w[34]=y,w[35]=g,w[36]=v,w[37]=b,w[38]=x):x=w[38],x}},53530:(e,t,r)=>{"use strict";r.d(t,{RootLayoutClient:()=>et});var n=r(77571),o=r(56149),i=r(24163),s=r(9050),a=r(70296),l=r(338),c=r(91476),u=r(1101),d=r(10190),m=r(14872);let f={dev:{cognitoUserPoolId:"us-west-2_94UsjGG6q",cognitoUserPoolWebClientId:"37k7na4j2elgc3q4ejr2ughj67",cognitoIdentityPoolId:"us-west-2:0aa7f3ca-c1a1-4740-876f-6c0112a52e77",hasuraUrl:"https://graphql-dev.skio.com/v1/graphql",gatewayUrl:"https://api-dev.skio.com"},prod:{cognitoUserPoolId:"us-west-2_ky2hNEMAZ",cognitoUserPoolWebClientId:"26kili0dth6djs3e0a7digs3e2",cognitoIdentityPoolId:"us-west-2:0ec95ebc-5dc8-422e-bff0-a8fb6185de13",hasuraUrl:"https://graphql.skio.com/v1/graphql",gatewayUrl:"https://api.skio.com"}},h="previewEnv";var p=r(28402),y=r(39246),g=r(2881),v=r(64486),b=r.n(v),x=r(61531),w=r(78051),S=r(38838),k=r(6965),_=r(23088),j=r(69668);function P({children:e}){let[t,r]=(0,i.useState)(!1),[o,s]=(0,i.useState)(!1),[a,l]=(0,i.useState)(!1),c=(0,_.J)(),d=(0,j.m)(),[m]=(0,i.useState)(()=>(e=>{let t=(0,S.pj)(window.location.href);return(0,u.Op)({qaV3StackId:t||void 0,link:e?.link})})(d?.mockLink));(0,i.useEffect)(()=>{r(!0)},[]);let{data:f,isLoading:h}=(0,k.K)();return(0,i.useEffect)(()=>
196{if(t&&!h&&!o&&!a&&f?.Site){l(!0);try{let e=(0,S.pj)(window.location.href),t=d?.mockLink,r=(0,u.Op)({shopifyStorefront:{domain:f.Site.domain,storefrontAccessToken:f.Site.storefrontAccessToken||null},qaV3StackId:e||void 0,link:t?.link});if(m.setLink(r.link),s(!0),f?.Site&&1){let{domain:e,hostname:t,id:r}=f.Site;e&&b().set(w.V2,e),t&&b().set(w.yA,t),r&&b().set(w.Cn,r)}l(!1)}catch(e){}finally{l(!1)}}},[t,h,f,o,a,c,m,d]),(0,n.jsx)(x.X,{client:m,children:e})}var O=r(81872);function I(e){let t,r,s,a,l,c,u=(0,o.c)(17),{children:d}=e,m=(0,_.J)(),{data:f,isLoading:h}=(0,k.K)(),p=f?.Site?.cpv3Settings,y=(0,O.S)();u[0]!==y?.customerInfo?.email?(t=y?.customerInfo?.email?.toLowerCase(),u[0]=y?.customerInfo?.email,u[1]=t):t=u[1];let g=t,v=h||y.isLoading;if(u[2]!==p?.customBlocks?.whitelistEmails?(r=p?.customBlocks?.whitelistEmails??[],u[2]=p?.customBlocks?.whitelistEmails,u[3]=r):r=u[3],u[4]!==m||u[5]!==v||u[6]!==g||u[7]!==r){let e=r.filter(Boolean);s=0===e.length||e.some(e=>e.toLowerCase()===g)&&!v||m,u[4]=m,u[5]=v,u[6]=g,u[7]=r,u[8]=s}else s=u[8];let b=s;return u[9]!==p?.customBlocks?.css||u[10]!==b?(a=()=>{let e=p?.customBlocks?.css;if(e&&b){let t=document.createElement("style");t.id="skio-custom-css",t.textContent=`
197        #skio-root, #skio-portal {
198          ${e}
199        }
200      `,document.head.appendChild(t)}return C},u[9]=p?.customBlocks?.css,u[10]=b,u[11]=a):a=u[11],u[12]!==p||u[13]!==b?(l=[p,b],u[12]=p,u[13]=b,u[14]=l):l=u[14],(0,i.useEffect)(a,l),u[15]!==d?(c=(0,n.jsx)(n.Fragment,{children:d}),u[15]=d,u[16]=c):c=u[16],c}function C(){let e=document.getElementById("skio-custom-css");e&&e.remove()}var E=r(51646),N=r(76094),L=r(57419);function A(e){let t,r,i=(0,o.c)(3),{children:s}=e,a="phc_zssMBW8vOXDBkNoldipdNLHk1UThW8HipJvv489CR1U",l="https://us.i.posthog.com";return a&&l?(i[0]===Symbol.for("react.memo_cache_sentinel")?(t={ui_host:l,person_profiles:"identified_only",cookieless_mode:"always",capture_pageview:!1,capture_pageleave:!0,disable_session_recording:!0},i[0]=t):t=i[0],i[1]!==s?(r=(0,n.jsx)(L.so,{apiKey:a,options:t,children:s}),i[1]=s,i[2]=r):r=i[2],r):s}var U=r(3312),T=r(9385),M=r(41603);let B=e=>{let t,r,i,s=(0,o.c)(9),{children:a}=e,l=(0,U.useRouter)(),c=(0,N.F)();s[0]!==c||s[1]!==l?(t=(e,t)=>l.push((0,M.Ty)({pathPrefix:c,url:e}),t),s[0]=c,s[1]=l,s[2]=t):t=s[2];let u=t;s[3]!==c?(r=e=>(0,M.Ty)({pathPrefix:c,url:e}),s[3]=c,s[4]=r):r=s[4];let d=r;return s[5]!==a||s[6]!==u||s[7]!==d?(i=(0,n.jsx)(T.pg,{navigate:u,useHref:d,children:a}),s[5]=a,s[6]=u,s[7]=d,s[8]=i):i=s[8],i};var q=r(42268),D=r(56617);function R(e){let[t,r]=e;document.documentElement.style.setProperty(t,r)}function W(e){let t,r=(0,o.c)(2),{children:s}=e;return!function(){let e,t,r=(0,o.c)(4),{data:n}=(0,k.K)();r[0]!==n?(e=()=>{if(!n?.Site?.cpv3Settings)return;let{colors:e,borders:t}=n.Site.cpv3Settings,r=requestAnimationFrame(()=>{Object.entries((0,D.cV)({colors:e,borders:t})).forEach(R),document.body.style.backgroundColor="var(--color-bg-primary)"});return()=>cancelAnimationFrame(r)},r[0]=n,r[1]=e):e=r[1];let s=n?.Site?.cpv3Settings;r[2]!==s?(t=[s],r[2]=s,r[3]=t):t=r[3],(0,i.useEffect)(e,t)}(),r[0]!==s?(t=(0,n.jsx)(n.Fragment,{children:s}),r[0]=s,r[1]=t):t=r[1],t}var $=r(46567);function F(e){let t,r,s,a,l,v,b,x,w=(0,o.c)(14),{children:S,dehydratedState:k,magicLoginData:_,pathPrefix:j}=e;return w[0]===Symbol.for("react.memo_cache_sentinel")?(r=function(){if(!(0,m.Wd)())return null;let e=new URLSearchParams(window.location.search).get("previewEnv");("dev"===e||"prod"===e)&&sessionStorage.setItem(h,e);let t=function(){let e=function(){if(!(0,m.Wd)())return null;let e=sessionStorage.getItem(h);return"dev"===e||"prod"===e?e:null}();return e?f[e]:null}();return t&&((0,u.nz)({hasuraUrl:t.hasuraUrl,cognitoUserPoolId:t.cognitoUserPoolId}),(0,d.eq2)(t.gatewayUrl),(0,d.oU7)(t.cognitoUserPoolId)),t}(),w[0]=r):r=w[0],t=r,w[1]===Symbol.for("react.memo_cache_sentinel")?(s=()=>{!function({authenticationFlowType:e,overrides:t}){!function({authenticationFlowType:e,userPoolId:t,userPoolWebClientId:r,identityPoolId:n}){if(!t||!r)throw Error("Missing cognito env vars");c.N.configure({region:"us-west-2",...n?{identityPoolId:n}:{},userPoolId:t,userPoolWebClientId:r,authenticationFlowType:e})}({authenticationFlowType:e,userPoolId:t?.userPoolId??"us-west-2_ky2hNEMAZ",userPoolWebClientId:t?.userPoolWebClientId??"26kili0dth6djs3e0a7digs3e2",identityPoolId:t?.identityPoolId??"us-west-2:179212e1-5c2c-4b2a-a66b-4427ac643ff4"})}({authenticationFlowType:"CUSTOM_AUTH",...t?{overrides:{userPoolId:t.cognitoUserPoolId,userPoolWebClientId:t.cognitoUserPoolWebClientId,identityPoolId:t.cognitoIdentityPoolId}}:{}}
200)},a=[t],w[1]=s,w[2]=a):(s=w[1],a=w[2]),(0,i.useLayoutEffect)(s,a),w[3]!==S?(l=(0,n.jsx)(I,{children:S}),w[3]=S,w[4]=l):l=w[4],w[5]!==_||w[6]!==l?(v=(0,n.jsx)(B,{children:(0,n.jsx)(W,{children:(0,n.jsx)($.t,{children:(0,n.jsx)(q.j,{magicLoginData:_,children:l})})})}),w[5]=_,w[6]=l,w[7]=v):v=w[7],w[8]!==j||w[9]!==v?(b=(0,n.jsx)(P,{children:(0,n.jsx)(A,{children:(0,n.jsx)(p.D,{children:(0,n.jsx)(E.S,{children:(0,n.jsx)(N.x,{pathPrefix:j,children:v})})})})}),w[8]=j,w[9]=v,w[10]=b):b=w[10],w[11]!==k||w[12]!==b?(x=(0,n.jsx)(y.TanstackOptionsProvider,{children:(0,n.jsx)(g.HydrationBoundary,{state:k,children:b})}),w[11]=k,w[12]=b,w[13]=x):x=w[13],x}var J=r(81478);function Q(){let e=window.visualViewport;if(!e)return void document.documentElement.style.setProperty("--visual-viewport-height",`${window.innerHeight}px`);let t=()=>{document.documentElement.style.setProperty("--visual-viewport-height",`${e.height}px`)};return t(),e.addEventListener("resize",t),()=>{e.removeEventListener("resize",t)}}var H=r(66582),z=r(35703),V=r(14323),X=r(6844),G=r(45812),K=r(54230),Z=r(94243),Y=r(57339);function ee(){let e,t,r,s,a,l,c,u,d,m,f,h,y,g,v,b,x,w,S=(0,o.c)(53),k=(0,G.L)(),{id:_}=(0,U.useParams)(),j=(0,X.useQueryClient)(),P=(0,K.t)();S[0]!==j?(e={queryClient:j},S[0]=j,S[1]=e):e=S[1];let{logout:O}=(0,Z.vz)(e),{t:I,featureTranslations:C}=(0,p.B)(),{cpv3Settings:E}=(0,V.A)(),N=E?.customButton,L=N?.isEnabled&&N?.label&&N?.href;if(S[2]!==P?(t=()=>{P.prefetch(Y.M),P.prefetch(Y.nJ),P.prefetch(Y.eu),P.prefetch(Y.oJ)},r=[P],S[2]=P,S[3]=t,S[4]=r):(t=S[3],r=S[4]),(0,i.useEffect)(t,r),S[5]!==k?(s=()=>{let e=sessionStorage.getItem("_skioCurrentPath");sessionStorage.setItem("_skioCurrentPath",k),e&&e!==k&&sessionStorage.setItem("_skioPreviousPath",e)},a=[k],S[5]=k,S[6]=s,S[7]=a):(s=S[6],a=S[7]),(0,i.useEffect)(s,a),k.includes(Y.oJ))return null;S[8]!==k?(l=k.startsWith(Y.Rv),S[8]=k,S[9]=l):l=S[9];let A=l;S[10]!==_||S[11]!==k?(c=_&&k.endsWith((0,Y.L9)(_.toString()))||k.endsWith(Y.M)||k.endsWith(Y.rN)||k.endsWith(Y.eu),S[10]=_,S[11]=k,S[12]=c):c=S[12];let T=c;S[13]!==_||S[14]!==k||S[15]!==P?(u=()=>{if(_&&k.endsWith((0,Y.L9)(_.toString())))return P.push(Y.nJ);let e=sessionStorage.getItem("_skioPreviousPath"),t=e&&(e.includes("/subscriptions")||e.includes(Y.rN)||e.includes(Y.eu)||e.includes(Y.M));sessionStorage.removeItem("_skioPreviousPath"),sessionStorage.removeItem("_skioCurrentPath"),t?P.push(e):P.push(Y.nJ)},S[13]=_,S[14]=k,S[15]=P,S[16]=u):u=S[16];let M=u;return S[17]===Symbol.for("react.memo_cache_sentinel")?(d=(0,n.jsx)("div",{"data-skio-name":"navbar-secure-badge-container",className:"flex grow justify-start",children:(0,n.jsx)(H.e,{})}),S[17]=d):d=S[17],S[18]!==N||S[19]!==L||S[20]!==C?.MISCELLANEOUS?.customAction1Label||S[21]!==A?(m=L&&!A&&(0,n.jsx)(z.$,{"data-skio-name":"navbar-custom-button",color:"link-color",iconLeading:"Link01",href:N.href,target:N.openCurrentTab?"_self":"_blank",rel:N.openCurrentTab?void 0:"noopener noreferrer",children:C?.MISCELLANEOUS?.customAction1Label||N.label}),S[18]=N,S[19]=L,S[20]=C?.MISCELLANEOUS?.customAction1Label,S[21]=A,S[22]=m):m=S[22],S[23]!==A||S[24]!==k||S[25]!==P||S[26]!==I?(f=!k.startsWith(Y.M)&&!A&&(0,n.jsx)(z.$,{"data-skio-name":"navbar-orders-button",color:"link-color",iconLeading:"Package",onClick:()=>P.push(Y.M),children:I("orders.text")}),S[23]=A,S[24]=k,S[25]=P,S[26]=I,S[27]=f):f=S[27],S[28]!==A||S[29]!==k||S[30]!==P||S[31]!==I?(h=!k.startsWith(Y.eu)&&!A&&(0,n.jsx)(z.$,{"data-skio-name":"navbar-profile-button",color:"link-color",iconLeading:"User01",onClick:()=>P.push(Y.eu),children:I("storefront.portal.account.button")}),S[28]=A,S[29]=k,S[30]=P,S[31]=I,S[32]=h):h=S[32],S[33]!==O||S[34]!==P?(y=async()=>{await O(),P.push(Y.oJ)},S[33]=O,S[34]=P,S[35]=y):y=S[35],S[36]!==I?(g=I("storefront.subscription.logout.button"),S[36]=I,S[37]=g):g=S[37],S[38]!==y||S[39]!==g?(v=(0,n.jsx)(z.$,{"data-skio-name":"navbar-logout-button",color:"link-color",iconLeading:"LogOut02",onClick:y,children:g}),S[38]=y,S[39]=g,S[40]=v):v=S[40],S[41]!==f||S[42]!==h||S[43]!==v||S[44]!==m?(b=(0,n.jsxs)("div",{"data-skio-name":"navbar-header",className:"flex justify-between gap-4 mb-8 flex-wrap",children:[d,(0,n.jsxs)("div",{"data-skio-name":"navbar-actions-container",className:"flex gap-x-4 gap-y-3 items-center flex-wrap",children:[m,f,h,v]})]}),S[41]=f,S[42]=h,S[43]=v,S[44]=m,S[45]=b):b=S[45],S[46]!==M||S[47]!==T||S[48]!==I?(x=T&&(0,n.jsx)("div",{"data-skio-name":"navbar-back-button-container",className:"mb-5",children:(0,n.jsx)(z.$,{"data-skio-name":"navbar-back-button",color:"link-color",iconLeading:"ChevronLeft",onClick:M,children:I("common.back")})}),S[46]=M,S[47]=T,S[48]=I,S[49]=x):x=S[49],S[50]!==b||S[51]!==x?(w=(0,n.jsxs)("div",{"data-skio-name":"navbar",className:"flex flex-col",children:[b,x]}),S[50]=b,S[51]=x,S[52]=w):w=S[52],w}function et(e){let t,r,c,u,d,m,f,h=(0,o.c)(14),{themeColors:p,themeBorders:y,dehydratedState:g,magicLoginData:v,pathPrefix:b,children:x}=e,w=(0,o.c)(1);w[0]===Symbol.for("react.memo_cache_sentinel")?(f=[],w[0]=f):f=w[0],(0,i.useEffect)(Q,f),h[0]!==y||h[1]!==p?(t=()=>{Object.entries((0,D.cV)({colors:p,borders:y}
200)).forEach(en),document.body.style.backgroundColor="var(--color-bg-primary)"},r=[p,y],h[0]=y,h[1]=p,h[2]=t,h[3]=r):(t=h[2],r=h[3]),(0,i.useLayoutEffect)(t,r),h[4]===Symbol.for("react.memo_cache_sentinel")?(c=(0,n.jsx)(ee,{}),h[4]=c):c=h[4],h[5]!==x?(u=(0,n.jsxs)("div",{className:"h-full w-full flex flex-col",children:[c,x]}),h[5]=x,h[6]=u):u=h[6],h[7]!==g||h[8]!==v||h[9]!==b||h[10]!==u?(d=(0,n.jsx)("div",{className:"w-full flex p-4 pb-12 max-w-(--max-skio-width)",children:(0,n.jsx)(s.N$,{getContainer:er,children:(0,n.jsx)(F,{dehydratedState:g,magicLoginData:v,pathPrefix:b,children:u})})}),h[7]=g,h[8]=v,h[9]=b,h[10]=u,h[11]=d):d=h[11];let S=d;if(!(0,J.D)())return null;let k=document.getElementById(a.wb);if(k||((k=document.createElement("div")).id=a.wb,document.body.appendChild(k)),h[12]!==S){let e=document.getElementById("skio-root");void 0===window.Shopify&&e&&e.setAttribute("role","main"),m=e?(0,l.createPortal)(S,e):null,h[12]=S,h[13]=m}else m=h[13];return m}function er(){return document.getElementById(a.wb)}function en(e){let[t,r]=e;document.documentElement.style.setProperty(t,r)}},66582:(e,t,r)=>{"use strict";r.d(t,{e:()=>a});var n=r(77571),o=r(56149);r(24163);var i=r(97934),s=r(28402);function a(){let e,t,r=(0,o.c)(4),{t:a}=(0,s.B)();return r[0]!==a?(e=a("cpv3.badge.secured"),r[0]=a,r[1]=e):e=r[1],r[2]!==e?(t=(0,n.jsx)(i.Rm,{type:"pill-color",size:"lg",iconLeading:"CheckVerified01",className:"border-utility-gray-600 bg-transparent border-[1.5px] rounded-full",iconClassName:"text-utility-gray-600",dataSkioName:"secure-badge",children:(0,n.jsx)("p",{className:"font-medium text-sm text-utility-gray-700","data-skio-name":"secure-text",children:e})}),r[2]=e,r[3]=t):t=r[3],t}},75865:(e,t,r)=>{"use strict";function n(e){return function(e){var t;let r=String(t=e).includes("Error: Shopify graphql request userErrors ")?JSON.parse(String(t).replace("Error: Shopify graphql request userErrors ",""))[0]:t;if("object"==typeof r&&null!==r&&"message"in r&&"string"==typeof r.message)return r;try{return Error(JSON.stringify(r))}catch{return Error(String(r))}}(e).message}r.d(t,{u1:()=>n})},81478:(e,t,r)=>{"use strict";r.d(t,{D:()=>i});var n=r(56149),o=r(24163);let i=()=>{let e,t,r=(0,n.c)(2),[i,s]=(0,o.useState)(!1);return r[0]===Symbol.for("react.memo_cache_sentinel")?(e=()=>s(!0),t=[],r[0]=e,r[1]=t):(e=r[0],t=r[1]),(0,o.useEffect)(e,t),i}},81872:(e,t,r)=>{"use strict";r.d(t,{S:()=>l});var n=r(26999),o=r(3555),i=r(7180),s=r(30589),a=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)0>t.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};function l(){let e=(0,n.m)(),{storefrontUserId:t,isLoading:r}=(0,s._)(),l=(0,o.useQuery)({queryKey:["customer-info",t],staleTime:6e5,refetchOnWindowFocus:"always",queryFn:()=>{var r,n,o,s;return r=this,n=void 0,o=void 0,s=function*(){let r=yield e.query({query:i.yn,variables:{storefrontUserId:null!=t?t:""},fetchPolicy:"no-cache"});if(r.error)throw r.error;return r.data},new(o||(o=Promise))(function(e,t){function i(e){try{l(s.next(e))}catch(e){t(e)}}function a(e){try{l(s.throw(e))}catch(e){t(e)}}function l(t){var r;t.done?e(t.value):((r=t.value)instanceof o?r:new o(function(e){e(r)})).then(i,a)}l((s=s.apply(r,n||[])).next())})},enabled:!!t}),{data:c,isLoading:u}=l,d=a(l,["data","isLoading"]);return Object.assign({customerInfo:null==c?void 0:c.StorefrontUserByPk,isLoading:u||r},d)}},84699:(e,t,r)=>{"use strict";r.d(t,{PreviewRoot:()=>s});var n=r(77571),o=r(56149);let i=(0,r(79441).default)(()=>Promise.all([r.e(5465),r.e(3882),r.e(5145),r.e(4060),r.e(8398),r.e(2896),r.e(8796),r.e(3040),r.e(268),r.e(4766),r.e(2265),r.e(1777),r.e(6781),r.e(1351),r.e(7623),r.e(6481),r.e(1699),r.e(8539),r.e(6928),r.e(7787),r.e(1161),r.e(9532),r.e(2665),r.e(5903),r.e(9024),r.e(7825),r.e(8720),r.e(4026),r.e(3854),r.e(3627),r.e(258),r.e(7856),r.e(9017),r.e(8255),r.e(8003),r.e(6919),r.e(1658)]).then(r.bind(r,69277
200)).then(e=>e.PreviewRuntime),{loadableGenerated:{webpack:()=>[69277]},ssr:!1});function s(e){let t,r=(0,o.c)(3),{children:s,isPreview:a}=e;return r[0]!==s||r[1]!==a?(t=a?(0,n.jsx)(i,{children:s}):s,r[0]=s,r[1]=a,r[2]=t):t=r[2],t}},94243:(e,t,r)=>{"use strict";r.d(t,{dn:()=>v,bs:()=>y,TF:()=>p,l6:()=>w,op:()=>x,JB:()=>b,vz:()=>_});var n=r(57419),o=r(24163),i=r(64486),s=r.n(i),a=r(78051),l=r(91476),c=r(1101),u=r(75865),d=r(10190),m=r(78109),f=r(48725),h=r(30589);let p="magicLoginError",y="email",g="_skio_justLoggedOut",v="EMAIL_NOT_FOUND",b="WRONG_CODE",x="NO_CODE_SENT",w="skio_multipass_checked";function S(e){return"object"==typeof e&&null!==e}function k(e,t){return!(S(e)&&S(e.challengeParam))||!(t in e.challengeParam)||"false"!==e.challengeParam[t]}function _({queryClient:e,onSuccess:t,onNoSession:r,onLoginSuccess:i,onLoginError:p,onCodeError:y}={}){let S=(0,n.sf)(),[j,P]=(0,o.useState)(()=>{let e="true"===sessionStorage.getItem(g);return sessionStorage.removeItem(g),{isLoading:!1,error:null,step:"login",justLoggedOut:e,codeSentToPhone:!0,codeSentToEmail:!0}}),[O,I]=(0,o.useState)(null),{mutateAsync:C}=function(e){return(0,f.useMutation)(Object.assign(Object.assign({},void 0),{mutationFn:e=>{var t,r,n,o;return t=this,r=[e],n=void 0,o=function*({email:e,domain:t}){let r=yield(0,m.U)({path:d.sLU,method:"POST",body:{email:e,domain:t}});return{ok:r.ok,accountCreated:r.accountCreated}},new(n||(n=Promise))(function(e,i){function s(e){try{l(o.next(e))}catch(e){i(e)}}function a(e){try{l(o.throw(e))}catch(e){i(e)}}function l(t){var r;t.done?e(t.value):((r=t.value)instanceof n?r:new n(function(e){e(r)})).then(s,a)}l((o=o.apply(t,r||[])).next())})}}))}();function E(e){queueMicrotask(()=>{P(t=>({...t,isLoading:!0,error:null,justLoggedOut:e??!1}))})}async function N(n=!1){E(j.justLoggedOut);try{let n=await (0,c.JZ)();if(!n)throw r?.(),Error("No storefront user id");e?.setQueryData([h.c],n);try{S.identify(n)}catch(e){}await t?.(),P(e=>({...e,step:"success",isLoading:!1}));try{s().set(a.fM,n)}catch(e){}}catch(e){if(n)throw e;M()}}async function L(e,t){if(!t)return!1;try{return(await C({email:e.trim().toLowerCase(),domain:t})).accountCreated??!1}catch(e){}return!1}async function A({email:e,siteId:t,domain:r,dontRetryWithCreate:n,requireCodeSent:o=!0}){try{E();let r=function({email:e,siteId:t}){return`${e}-skioSiteId-${t}`}({email:e.trim(),siteId:t}),n=await l.N.signIn(r,void 0,{siteId:t}),s=k(n,"codeSentToPhone"),a=k(n,"codeSentToEmail");if(n&&o&&!s&&!a)return p?.(Error(x)),M(x),null;return I(n),P(e=>({...e,isLoading:!1,step:n?"code":"login",codeSentToPhone:s,codeSentToEmail:a})),i?.(n),n}catch(i){if(!n&&await L(e,r))return await A({email:e,siteId:t,domain:r,dontRetryWithCreate:!0,requireCodeSent:o});p?.(i),M(v)}return null}async function U(e,t){let r=t??O;if(!r)return void M("No active authentication session");try{E(),await l.N.sendCustomChallengeAnswer(r,e);try{await N(!0)}catch(e){y?.(),P(e=>({...e,isLoading:!1,error:b}))}}catch(e){y?.(),M((0,u.u1)(e))}}async function T(){try{await l.N.signOut(),e?.setQueryData([h.c],null),sessionStorage.setItem(g,"true"),sessionStorage.removeItem(w),M(void 0,!0),await fetch("/account/logout.js").catch(()=>null)}catch(e){P(t=>({...t,error:(0,u.u1)(e)}))}}function M(e,t){P(r=>({...r,isLoading:!1,error:e??null,step:"login",justLoggedOut:t??!1,codeSentToPhone:!0,codeSentToEmail:!0}));try{s().remove(a.fM),s().remove(a.YA),s().remove(a.KJ),s().remove(a.eS),S.reset()}catch(e){}}return{loginState:j,resetLoginState:M,checkSession:N,clearError:function(){P(e=>({...e,error:null}))},confirmCode:U,login:A,logout:T}}}},e=>{e.O(0,[1026,1829,2198,6975,331,2762,3555,6683,4091,4518,4646,9782,9256,299,3331,6622,7899,4301,3811,7289,8402,6443,5703,3109,9136,4230,2970,5345,3436,4349,7358],()=>e(e.s=3546)),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.