PageSourceSearch

https://hilo.com/cdn/shopifycloud/checkout-web/assets/c1/page-PostPurchase.fSKmUjS9.js

js hilo.com collected 2026-09-24 12:26:29 UTC 114,941 bytes, 23 lines download raw bytes

1import{x as oo,X as De,u as r,T as z,g as S,A as w,h as R,k as M,q as C,Q as Fe,S as U,_ as ho,a7 as Hr,a8 as qr,o as Le,j as zo,l as Ur,P as jr,E as Mn,C as _n,ay as Yr,V as h,D as Fo,Z as Vr,ah as Gr,N as Xr,at as Qr,a4 as Jr,az as Kr,a5 as Zr,f as ea,aA as oa,i as na}from"./esnext-vendor.D7ldIee_.js";import{cD as Nn,N as me,x as An,bB as $n,bF as zn,cC as ta,ad as ra,O as aa,cX as Qo,jj as ia}from"./addresses-is-address-empty.-MuOhIyI.js";import{_ as sa,B as ie,n as Jo,cJ as ca,k as Ko,I as la,L as da,fU as ua,bt as ga,gZ as pa,a5 as ha,dH as ma,g_ as ba,g$ as va,dI as Sa}from"./hydrate.ByRIsqvd.js";import{c as Wo,u as fa,S as Ba}from"./components-RedirectionNotice.module.CqgkZHXB.js";import{p as Dn,c as ya,a as ka,b as Ta}from"./PostPurchaseShouldRender.qYhx4WV9.js";import{r as Ea,c as xa}from"./constants.DowbVE6J.js";import{T as Ia,c as Pa}from"./stopwatch.wWgdKLTI.js";import{a as La}from"./MarketsProDisclaimer.wV7aMZTc.js";import{P as Ca}from"./Popover.BNecjV8x.js";import{v as wa}from"./utilities-extension-execution-errors.C94S0eIO.js";import{receiptForUI as Ra}from"./graphql-utilities.DsOk1VlV.js";import"./app.A60-IfPs.js";import"./hooks-useReplaceShopPayInHistory.Cz4PqGkk.js";import"./extensions-rpc.a_fI7Gy6.js";import"./performance-index.mu6MOGR9.js";import"./receipt-eager-mappers.C1dYRU4X.js";import"./receipt-merchandise-lines.DPd9PNUS.js";class pe extends Error{constructor(){super(...arguments),this.name="PostPurchaseUIError"}}const Fn=De(void 0);function Wn(){return oo(Fn)}function Ma({children:e,level:o}){const n=Wn();if(n!=null&&o!=null&&o>n)throw new pe(`You are trying to nest a heading group with level ${o} inside a context where the current heading level is ${n}. This will create a broken document outline.`);const t=o??(n??0)+1;return r(Fn.Provider,{value:t,children:e})}function mo({children:e}){return r(Ma,{children:e})}const On=De(null);function _a({children:e,translate:o,linkComponent:n,shop:t}){const a=z(()=>({translate:o,linkComponent:n,shop:t}),[t,o,n]);return r(On.Provider,{value:a,children:r(mo,{children:e})})}function Oo(){const e=oo(On);if(e==null)throw new pe("No app context available");return e}function no(){return Oo().translate}function Na(){return Oo().linkComponent}function Aa(){return Oo().shop}const $a="hJRmE",be={Button:$a,"Surface-colorCanvas":"j4rZ6","Surface-colorSurfacePrimary":"OyTlI","Surface-colorSurfaceSecondary":"Y5OXA","Surface-colorSurfaceTertiary":"popET","Utility-defaultBorderColor":"_9c3s7","Utility-defaultTextSubduedColor":"_9FcHx","Utility-defaultTextEmphasizedColor":"_74HAj","Utility-defaultAccentColor":"AdgkN"},lo=be.Button,Je=be["Surface-colorCanvas"],Oe=be["Surface-colorSurfacePrimary"],He=be["Surface-colorSurfaceSecondary"],qe=be["Surface-colorSurfaceTertiary"],ao=be["Utility-defaultBorderColor"],Ae=be["Utility-defaultTextSubduedColor"],Ce=be["Utility-defaultTextEmphasizedColor"],$e=be["Utility-defaultAccentColor"],za="WZ1ep",Da={Canvas:za};function Zo({children:e}){return r("div",{className:S(Da.Canvas,Je),children:e})}const en=1,Fa=.19783000664283,Wa=.46831999493879,uo=[[3.240969941904521,-1.537383177570093,-.498610760293],[-.96924363628087,1.87596750150772,.041555057407175],[.055630079696993,-.20397695888897,1.056971514242878]],Hn=903.2962962,Oa=.0088564516;class Ze{constructor(o,n,t){this.h=o,this.s=n,this.l=t}adjust({h:o,s:n,l:t}){return new Ze(o?.(this.h)??this.h,n?.(this.s)??this.s,t?.(this.l)??this.l)}toRgb(){return qn(this)}getYiqPerceivedBrightness(){return Ua(this)}}const Ha=/hsl\(\s*(?<h>\d+),\s*(?<s>\d+)%,\s(?<l>\d+)%\)/;function qa(e){const o=e.match(Ha);if(o==null)throw new pe(`Invalid HSL value: ${e}`);const{h:n,s:t,l:a}=o.groups,i=n?parseInt(n,10):NaN,s=t?parseInt(t,10):NaN,c=a?parseInt(a,10):NaN;if(Number.isNaN(i)||Number.isNaN(s)||Number.isNaN(c))throw new pe(`Invalid HSL value: ${e}`);return new Ze(i,s,c)}function qn({h:e,s:o,l:n}){return`rgb(${Un(...jn(e,o,n)).join(",")})`}function Ua({h:e,s:o,l:n}){const[t]=ja(e,o,n);return t}function ja(e,o,n){const[t,a,i]=Un(...jn(e,o,n));return[(t*.299+a*.587+i*.114)/255,(t*.596-a*.275-i*.321)/255,(t*.212-a*.523+i*.311)/255]}function Un(e,o,n){return Ya(...Ga(...Va(e,o,n)))}function Ya(...e){return[xo(Po(Io(uo[0],e))),xo(Po(Io(uo[1],e))),xo(Po(Io(uo[2],e)))]}function xo(e){return Math.round(e*255)}function Io(e,o){return e[0]*o[0]+e[1]*o[1]+e[2]*o[2]}function Po(e){return e<=.0031308?12.92*e:1.055*e**.4166666666666667-.055}function Va(e,o,n){const t=n/360*2*Math.PI;return[e,Math.cos(t)*o,Math.sin(t)*o]}function Ga(e,o,n){if(e===0)return[0,0,0];const t=o/(13*e)+Fa,a=n/(13*e)+Wa,i=Xa(e),s=0-9*i*t/((t-4)*a-t*a);return[s,i,(9*i-15*a*i-a*s)/(3*a)]}function Xa(e){return e<=8?en*e/Hn:en*((e+16)/116)**3}function jn(e,o,n){if(n>99.9999999)return[100,0,e];if(n<1e-8)return[0,0,e];const a=Qa(n,e)/100*o;return[n,a,e]}function Qa(e,o){const n=o/360*Math.PI*2,t=Ka(e);return Math.min(...t.map(a=>Ja(n,a)).filter(a=>a>0))}function Ja(e,o){return o.intercept/(Math.sin(e)-o.slope*Math.cos(e))}function Ka(e){const o=[],n=(e+16)**3/1560896,t=n>Oa?n:e/Hn;for(const[a,i,s]of uo)for(const c of[0,1]){const l=(284517*a-94839*s)*t,u=(838422*s+769860*i+731718*a)*e*t-769860*c*e,d=(632260*s-126452*i)*t+126452*c;o.push({slope:l/d,intercept:u/d})}return o}
1function H(e,o,n=1.285){const t=typeof o=="string"?parseFloat(o):o;return`${(typeof n=="string"?parseFloat(n):n)**e*(t/10)}rem`}const Yn=De(void 0);function Za({global:e={},buyerJourney:o={},typographyScale:n={},typographyPrimary:t={},typographySecondary:a={},headingLevel1:i={},headingLevel2:s={},headingLevel3:c={},link:l={},controls:u={},label:d={},textFields:g={},select:p={},checkbox:m={},radio:b={},optionList:v={},reviewBlock:f={},lineItems:B={},moneyLines:I={},moneySummary:_={},primaryButton:W={},secondaryButton:D={},formLayout:N={},tag:A={},tooltip:$={},popover:T={},banner:x={},thumbnail:k={},typographyStyle1:P={},typographyStyle2:q={},typographyStyle3:F={},typographyStyle4:se={},typographyStyle5:ne={},typographyStyle6:te={},typographyStyle7:ce={},typographyStyle8:le={},typographyStyle9:Ie={},colors:L}={}){return new ei({global:e,buyerJourney:o,typographyScale:n,typographyPrimary:t,typographySecondary:a,headingLevel1:i,headingLevel2:s,headingLevel3:c,link:l,controls:u,label:d,textFields:g,select:p,checkbox:m,radio:b,optionList:v,reviewBlock:f,lineItems:B,moneyLines:I,moneySummary:_,primaryButton:W,secondaryButton:D,formLayout:N,tag:A,tooltip:$,popover:T,banner:x,thumbnail:k,typographyStyle1:P,typographyStyle2:q,typographyStyle3:F,typographyStyle4:se,typographyStyle5:ne,typographyStyle6:te,typographyStyle7:ce,typographyStyle8:le,typographyStyle9:Ie,colors:L})}class ei{constructor(o){this.listeners={change:new Set,preview:new Set},this.configuration={...o,colors:Do(o.colors??{}),typographyScale:o.typographyScale??{}},this.customProperties=un(this.configuration)}preview(o,n){const t=Do(o),a=Gn(t);this.configuration={...this.configuration,colors:{...this.configuration.colors,...t}};const i=Xn(n);for(const s of this.listeners.preview)s({...a,...i})}set(o,n){this.configuration={...this.configuration,[o]:n};for(const a of this.listeners.change)a(this.configuration);const t=un(this.configuration);for(const a of this.listeners.preview)a(t)}on(o,n){return this.listeners[o].add(n),()=>{this.listeners[o].delete(n)}}}function fe(e){return e?.background?.adjust({l:o=>o>50?o-1.7:Math.max(o-5.2,0)})}function Pe(e){return e?.background?.adjust({l:o=>o>50?Math.min(o-2.5,97.5):Math.max(o+2.5,2.5)})}function Be(e){return e?.foreground??e?.background?.adjust({s:o=>o>50?Math.max(o-55,0):o,l:o=>he(e?.background)?Math.max(o-62.6,0):Math.min(o+82,98.3)})}function ye(e){return e?.foreground?e?.foreground?.adjust({l:o=>he(e?.foreground)?Math.min(o+15,100):o-10}):e?.background?.adjust({s:o=>o>50?o:Math.min(o+15,100),l:o=>he(e?.background)?Math.max(o-77.5,0):98.3})}function ke(e){return e?.foreground?e?.foreground?.adjust({l:o=>he(e?.foreground)?Math.max(o-35,0):o+43.2}):e?.background?.adjust({s:o=>o>50?Math.max(o-55,0):o,l:o=>he(e?.background)?Math.max(o-49.9,10):Math.min(o+63.2,90)})}function on(e){return e?.background?.adjust({l:o=>o-10})}function nn(e){return e?.background?.adjust({l:o=>o-10})}function Lo(e){return e?.foreground??e?.background?.adjust({l:()=>he(e?.background)?4:100})}function tn(e){return e?.background?.adjust({l:o=>o-10})}function rn(e){return e?.background?.adjust({l:o=>o-10})}function Do(e){return Object.keys(e).reduce((o,n)=>{const t=e[n];if(t==null)return o;const{background:a,foreground:i,accent:s}=t;return{...o,[n]:{background:a?Co(a):void 0,foreground:i?Co(i):void 0,accent:s?Co(s):void 0}}},{})}function Te(e){return e?.background?.adjust({s:o=>o>50?Math.max(o-15,0):o,l:o=>he(e?.background)?Math.max(o-8.8,0):Math.min(o+11.3,90)})}function Ee(e){return e?.background?.adjust({s:o=>o>50?o:Math.min(o+15,100),l:o=>he(e?.background)?Math.max(o-77.5,0):98.3})}function he(e){return typeof e>"u"?!1:e.getYiqPerceivedBrightness()>=.65}function Co(e){return e instanceof Ze?e:typeof e=="string"?qa(e):new Ze(...e)}const to=14,an={colorCanvas:({canvas:e})=>e?.background,colorCanvasSubdued:({canvas:e})=>fe(e),colorCanvasText:({canvas:e})=>Be(e),colorCanvasTextSubdued:({canvas:e})=>ke(e),colorCanvasTextEmphasized:({canvas:e})=>ye(e),colorCanvasBorder:({canvas:e})=>Te(e),colorCanvasBorderEmphasized:({canvas:e})=>Ee(e),colorCanvasAccent:({canvas:e})=>e?.accent,colorSurfacePrimary:({surfacePrimary:e})=>e?.background,colorSurfacePrimaryDisabled:({surfacePrimary:e})=>Pe(e),colorSurfacePrimarySubdued:({surfacePrimary:e})=>fe(e),colorSurfacePrimaryText:({surfacePrimary:e})=>Be(e),colorSurfacePrimaryTextSubdued:({surfacePrimary:e})=>ke(e),colorSurfacePrimaryTextEmphasized:({surfacePrimary:e})=>ye(e),colorSurfacePrimaryBorder:({surfacePrimary:e})=>Te(e),colorSurfacePrimaryBorderEmphasized:({surfacePrimary:e})=>Ee(e),colorSurfacePrimaryAccent:({surfacePrimary:e})=>e?.accent,colorSurfaceSecondary:({surfaceSecondary:e})=>
1e?.background,colorSurfaceSecondaryDisabled:({surfaceSecondary:e})=>Pe(e),colorSurfaceSecondarySubdued:({surfaceSecondary:e})=>fe(e),colorSurfaceSecondaryText:({surfaceSecondary:e})=>Be(e),colorSurfaceSecondaryTextSubdued:({surfaceSecondary:e})=>ke(e),colorSurfaceSecondaryTextEmphasized:({surfaceSecondary:e})=>ye(e),colorSurfaceSecondaryBorder:({surfaceSecondary:e})=>Te(e),colorSurfaceSecondaryBorderEmphasized:({surfaceSecondary:e})=>Ee(e),colorSurfaceSecondaryAccent:({surfaceSecondary:e})=>e?.accent,colorSurfaceTertiary:({surfaceTertiary:e})=>e?.background,colorSurfaceTertiaryDisabled:({surfaceTertiary:e})=>Pe(e),colorSurfaceTertiarySubdued:({surfaceTertiary:e})=>fe(e),colorSurfaceTertiaryText:({surfaceTertiary:e})=>Be(e),colorSurfaceTertiaryTextSubdued:({surfaceTertiary:e})=>ke(e),colorSurfaceTertiaryTextEmphasized:({surfaceTertiary:e})=>ye(e),colorSurfaceTertiaryBorder:({surfaceTertiary:e})=>Te(e),colorSurfaceTertiaryBorderEmphasized:({surfaceTertiary:e})=>Ee(e),colorSurfaceTertiaryAccent:({surfaceTertiary:e})=>e?.accent,color1:({color1:e})=>e?.background,color1Text:({color1:e})=>e?.foreground,color2:({color2:e})=>e?.background,color2Text:({color2:e})=>e?.foreground,colorPrimaryAction:({primaryAction:e})=>e?.background,colorPrimaryActionHovered:({primaryAction:e})=>on(e),colorPrimaryActionPressed:({primaryAction:e})=>nn(e),colorPrimaryActionText:({primaryAction:e})=>Lo(e),colorPrimaryActionTextHovered:({primaryAction:e})=>tn(e),colorPrimaryActionTextPressed:({primaryAction:e})=>rn(e),colorSecondaryAction:({secondaryAction:e})=>e?.background,colorSecondaryActionHovered:({secondaryAction:e})=>on(e),colorSecondaryActionPressed:({secondaryAction:e})=>nn(e),colorSecondaryActionText:({secondaryAction:e})=>Lo(e),colorSecondaryActionTextHovered:({secondaryAction:e})=>tn(e),colorSecondaryActionTextPressed:({secondaryAction:e})=>rn(e),colorTertiaryAction:({tertiaryAction:e})=>e?.background,colorTertiaryActionText:({tertiaryAction:e})=>Lo(e),colorTertiaryActionTextSubdued:({tertiaryAction:e})=>e?.foreground?e?.foreground?.adjust({l:o=>Math.min(o+20,100)}):e?.background?.adjust({s:o=>o>50?Math.max(o-55,0):o,l:o=>he(e?.background)?Math.max(o-49.9,10):Math.min(o+63.2,90)}),colorInteractive:({interactive:e})=>e?.background,colorInteractiveHovered:({interactive:e})=>e?.background?.adjust({l:o=>o+5}),colorInteractivePressed:({interactive:e})=>e?.background?.adjust({l:o=>o+5}),colorInteractiveText:({interactive:e})=>e?.foreground,colorInteractiveTextHovered:({interactive:e})=>e?.foreground?.adjust({l:o=>o+10}),colorInteractiveTextPressed:({interactive:e})=>e?.foreground?.adjust({l:o=>o+10}),colorInfo:({info:e})=>e?.background,colorInfoDisabled:({info:e})=>Pe(e),colorInfoSubdued:({info:e})=>fe(e),colorInfoText:({info:e})=>Be(e),colorInfoTextSubdued:({info:e})=>ke(e),colorInfoTextEmphasized:({info:e})=>ye(e),colorInfoBorder:({info:e})=>Te(e),colorInfoBorderEmphasized:({info:e})=>Ee(e),colorInfoAccent:({info:e})=>e?.accent,colorSuccess:({success:e})=>e?.background,colorSuccessDisabled:({success:e})=>Pe(e),colorSuccessSubdued:({success:e})=>fe(e),colorSuccessText:({success:e})=>Be(e),colorSuccessTextSubdued:({success:e})=>ke(e),colorSuccessTextEmphasized:({success:e})=>ye(e),colorSuccessBorder:({success:e})=>Te(e),colorSuccessBorderEmphasized:({success:e})=>Ee(e),colorSuccessAccent:({success:e})=>e?.accent,colorWarning:({warning:e})=>e?.background,colorWarningDisabled:({warning:e})=>Pe(e),colorWarningSubdued:({warning:e})=>fe(e),colorWarningText:({warning:e})=>Be(e),colorWarningTextSubdued:({warning:e})=>ke(e),colorWarningTextEmphasized:({warning:e})=>ye(e),colorWarningBorder:({warning:e})=>Te(e),colorWarningBorderEmphasized:({warning:e})=>Ee(e),colorWarningAccent:({warning:e})=>e?.accent,colorCritical:({critical:e})=>e?.background,colorCriticalDisabled:({critical:e})=>Pe(e),colorCriticalSubdued:({critical:e})=>fe(e),colorCriticalText:({critical:e})=>Be(e),colorCriticalTextSubdued:({critical:e})=>ke(e),colorCriticalTextEmphasized:({critical:e})=>ye(e),colorCriticalBorder:({critical:e})=>Te(e),colorCriticalBorderEmphasized:({critical:e})=>Ee(e),colorCriticalAccent:({critical:e})=>e?.accent},sn={typographySizeXSmall:({base:e,ratio:o})=>e?H(-1,e,o):void 0,typographySizeSmall:({base:e,ratio:o})=>e?H(-.5,e,o):void 0,typographySizeDefault:({base:e,ratio:o})=>e?H(0,e,o):void 0,typographySizeMedium:({base:e,ratio:o})=>e?H(.5,e,o):void 0,typographySizeLarge:({base:e,ratio:o})=>e?H(1,e,o):void 0,typographySizeXLarge:({base:e,ratio:o})=>e?H(2,e,o):void 0,typographySizeXXLarge:({base:e,ratio:o})=>e?H(3,e,o):void 0},oi={xsmall:"var(--x-pp-typography-size-xsmall)",small:"var(--x-pp-typography-size-small)",base:"var(--x-pp-typography-size-default)",medium:"var(--x-pp-typography-size-medium)",large:"var(--x-pp-typography-size-large)",xlarge:"var(--x-pp-typography-size-xlarge)",xxlarge:"var(--x-pp-typography-size-xxlarge)"},cn={none:"none",title:"capitalize",upper:"uppercase",lower:"lowercase"},ni={primary:"var(--x-pp-typography-primary-fonts)",secondary:"var(--x-pp-typography-secondary-fonts)"},ln={base:"normal",loose:"0.125em",xloose:"0.16em"},wo={base:"1.3",large:"1.5"},ti={base:"var(--x-pp-typography-primary-weight-base)",bold:"var(--x-pp-typography-primary-weight-bold)"},ri={base:"var(--x-pp-typography-secondary-weight-base)",bold:"var(--x-pp-typography-secondary-weight-bold)"},re=1.225,dn={spacingTight4x:({base:e})=>e?H(-5,e,re):void 0,spacingTight3x:({base:e})=>e?H(-4,e,re):void 0,spacingTight2x:({base:e})=>e?H(-3,e,re):void 0,spacingTight1x:({base:e})=>e?H(-2,e,re):void 0,spacingTight:({base:e})=>e?H(-1,e,re):void 0,spacingBase:({base:e})=>e?H(0,e,re):void 0,spacingLoose:({base:e})=>e?H(1,e,re):void 0,spacingLoose1x:({base:e})=>e?H(2,e,re):void 0,spacingLoose2x:({base:e})=>e?H(3,e,re):void 0,spacingLoose3x:({base:e})=>e?H(4,e,re):void 0,spacingLoose4x:({base:e})=>e?H(5,e,re):void 0},Vn={none:"var(--x-pp-border-radius-none)",base:"var(--x-pp-border-radius-base)"},Re={...Vn,tight:"var(--x-pp-border-radius-tight)",fullyRounded:"var(--x-pp-border-radius-fully-rounded)"},Ro={full:"var(--x-pp-border-full)",blockEnd:"var(--x-pp-border-block-end)",none:"var(--x-pp-border-none)"},ai={base:"var(--x-pp-spacing-base)",tight:"var(--x-pp-spacing-tight4x)",none:"0"},ii={base:"var(--x-pp-spacing-tight)",tight:"var(--x-pp-spacing-tight1x)",none:"0"},si={base:"var(--x-pp-spacing-loose1x)",tight:"var(--x-pp-spacing-base)",none:"0"},ci={base:"var(--x-pp-spacing-base)",tight:"var(--x-pp-spacing-tight4x)",none:"0"},li={base:"var(--x-pp-spacing-tight1x)",loose:"var(--x-pp-spacing-loose2x)"},de={none:"0",tight4x:"var(--x-pp-spacing-tight4x)",tight3x:"var(--x-pp-spacing-tight3x)",tight2x:"var(--x-pp-spacing-tight2x)",tight1x:"var(--x-pp-spacing-tight1x)",tight:"var(--x-pp-spacing-tight)",base:"var(--x-pp-spacing-base)",loose:"var(--x-pp-spacing-loose)",loose1x:"var(--x-pp-spacing-loose1x)",loose2x:"var(--x-pp-spacing-loose2x)",loose3x:"var(--x-pp-spacing-loose3x)",loose4x:"var(--x-pp-spacing-loose4x)"},di={none:"0",fast:"var(--x-pp-duration-fast)",base:"var(--x-pp-duration-base)",slow:"var(--x-pp-duration-slow)",slower:"var(--x-pp-duration-slower)",slowest:"var(--x-pp-duration-slowest)"},ui=18/to,gi=22/to,pi=18/to,hi=10/to,mi=18/to;function un({global:e,buyerJourney:o,colors:n,typographyScale:t,typographyPrimary:a,typographySecondary:i,controls:s,textFields:c,select:l,optionList:u,checkbox:d,moneyLines:g,moneySummary:p,reviewBlock:m,primaryButton:b,secondaryButton:v,tag:f,banner:B,thumbnail:I,link:_,typographyStyle1:W,typographyStyle2:D,typographyStyle3:N,typographyStyle4:A,typographyStyle5:$,typographyStyle6:T,typographyStyle7:x,typographyStyle8:k,typographyStyle9:P}){const q=y(cn)(e.typographyLetterCase),F=y(wo)(e.typographyLineSizeDefault),se=y(wo)(e.typographyLineSizeLarge),ne=y(ln)(e.typographyKerning),te=y(Re)(e.borderRadius),ce=y(Vn)(s.borderRadius),le=y(Re)(u.borderRadius),Ie=y(Re)(d.borderRadius),L=y(Re)(m.borderRadius),[E,G,ee]=[c.border,l.border,d.border].map(y(Ro)),j=a.fonts??void 0,ue=a.weightBase??void 0,We=a.weightBold??void 0,To=i.fonts??void 0,Eo=i.weightBase??void 0,Go=i.weightBold??void 0,oe=y(ai)(u.gap),Xo=y(ii)(g.gap),bt=y(si)(g.gap),vt=y(li)(o.gap),St=y(ci)(m.gap),ft=y(Ro)(m.border),[Bt,yt,kt,Tt,Et,xt,It,Pt,Lt,Ct,
1wt,Rt,Mt,_t,Nt,At,$t,zt,Dt,Ft,Wt,Ot,Ht,qt,Ut,jt,Yt,Vt,Gt,Xt,Qt,Jt,Kt,Zt,er,or,nr,tr,rr,ar,ir,sr,cr,lr,dr,ur,gr,pr,hr,mr,br,vr,Sr,fr]=[W,D,N,A,$,T,x,k,P].map(X=>[y(oi)(X.size),y(cn)(X.letterCase),y(ni)(X.fonts),X.weight?vi(X.fonts?X.fonts:"secondary",X.weight):void 0,y(wo)(X.lineSize),y(ln)(X.kerning)]).reduce((X,Or)=>[...X,...Or],[]),Br=y(de)(b.blockPadding),yr=y(de)(b.inlinePadding),kr=y(de)(v.blockPadding),Tr=y(de)(v.inlinePadding),Er=y(de)(g.blockPadding),xr=y(de)(g.inlinePadding),Ir=y(de)(p.blockPadding),Pr=y(de)(p.inlinePadding),Lr=y(de)(u.blockPadding),Cr=y(de)(u.inlinePadding),wr=y(Re)(f.borderRadius),Rr=t.base?`${Math.floor(parseFloat(t.base.toString())*ui)}px`:void 0,Mr=t.base?`${Math.floor(parseFloat(t.base.toString())*gi)}px`:void 0,_r=t.base?`${Math.floor(parseFloat(t.base.toString())*pi)}px`:void 0,Nr=y(Ro)(B.border),Ar=y(Re)(B.borderRadius),$r=t.base?`${Math.floor(parseFloat(t.base.toString())*hi)}px`:void 0,zr=t.base?`${t?.base?.toString()}px`:void 0,Dr=t.base?`${Math.floor(parseFloat(t.base.toString())*mi)}px`:void 0,Fr=I.aspectRatio?`${I.aspectRatio}`:void 0,Wr=y(di)(_.transitionDuration),ro={...Gn(Do(n)),...Xn(t),...bi(t),typographyPrimaryFonts:j,typographyPrimaryWeightBase:ue,typographyPrimaryWeightBold:We,typographySecondaryFonts:To,typographySecondaryWeightBase:Eo,typographySecondaryWeightBold:Go,globalTypographyLetterCase:q,globalTypographyLineSizeDefault:F,globalTypographyLineSizeLarge:se,globalTypographyKerning:ne,globalBorderRadius:te,controlBorderRadius:ce,checkboxBorder:ee,checkboxBorderRadius:Ie,textFieldBorder:E,selectBorder:G,optionListBorderRadius:le,optionListBlockGap:oe,reviewBlockBorderRadius:L,reviewBlockBlockGap:St,reviewBlockBorder:ft,moneyLinesBlockGap:Xo,moneyLinesSeparatorBlockGap:bt,buyerJourneyInlineGap:vt,style1TypographySize:Bt,style1TypographyCase:yt,style1TypographyFonts:kt,style1TypographyWeight:Tt,style1TypographyLineSize:Et,style1TypographyKerning:xt,style2TypographySize:It,style2TypographyCase:Pt,style2TypographyFonts:Lt,style2TypographyWeight:Ct,style2TypographyLineSize:wt,style2TypographyKerning:Rt,style3TypographySize:Mt,style3TypographyCase:_t,style3TypographyFonts:Nt,style3TypographyWeight:At,style3TypographyLineSize:$t,style3TypographyKerning:zt,style4TypographySize:Dt,style4TypographyCase:Ft,style4TypographyFonts:Wt,style4TypographyWeight:Ot,style4TypographyLineSize:Ht,style4TypographyKerning:qt,style5TypographySize:Ut,style5TypographyCase:jt,style5TypographyFonts:Yt,style5TypographyWeight:Vt,style5TypographyLineSize:Gt,style5TypographyKerning:Xt,style6TypographySize:Qt,style6TypographyCase:Jt,style6TypographyFonts:Kt,style6TypographyWeight:Zt,style6TypographyLineSize:er,style6TypographyKerning:or,style7TypographySize:nr,style7TypographyCase:tr,style7TypographyFonts:rr,style7TypographyWeight:ar,style7TypographyLineSize:ir,style7TypographyKerning:sr,style8TypographySize:cr,style8TypographyCase:lr,style8TypographyFonts:dr,style8TypographyWeight:ur,style8TypographyLineSize:gr,style8TypographyKerning:pr,style9TypographySize:hr,style9TypographyCase:mr,style9TypographyFonts:br,style9TypographyWeight:vr,style9TypographyLineSize:Sr,style9TypographyKerning:fr,primaryButtonBlockPadding:Br,primaryButtonInlinePadding:yr,secondaryButtonBlockPadding:kr,secondaryButtonInlinePadding:Tr,moneyLinesBlockPadding:Er,moneyLinesInlinePadding:xr,moneySummaryBlockPadding:Ir,moneySummaryInlinePadding:Pr,optionListBlockPadding:Lr,optionListInlinePadding:Cr,tagBorderRadius:wr,radioSizeBase:Rr,radioSizeLarge:Mr,thumbnailAspectRatio:Fr,linkTransitionDuration:Wr,checkboxSize:_r,bannerBorder:Nr,bannerBorderRadius:Ar,iconSizeSmall:$r,iconSizeDefault:zr,iconSizeLarge:Dr};for(const X of Object.keys(ro))ro[X]==null&&delete ro[X];return ro}function Gn(e){const o={};for(const n of Object.keys(an)){const t=an[n]?.(e);t!=null&&(o[n]=qn(t))}return o}function Xn(e){const o={};for(const n of Object.keys(sn)){const t=sn[n]?.(e);t!=null&&(o[n]=t)}return o}function bi(e){const o={};for(const n of Object.keys(dn)){const t=dn[n]?.(e);t!=null&&(o[n]=t)}return o}function vi(e,o){return e==="primary"?ti[o]:ri[o]}function y(e){return o=>o?e[o]:void 0}function Ho(){const e=oo(Yn);if(e==null)throw new pe("No theme found in context");return e}function Q(){const e=Ho(),o=Si(),n=w(e.configuration);n.current=e.configuration;const t=w();if(t.current==null){const a=new Set,i={};for(const s of Object.keys(e.configuration))Object.defineProperty(i,s,{enumerable:!0,get(){return a.add(s),n.current[s]}});t.current={watchedKeys:a,reactiveConfiguration:i}}return R(()=>{const{current:a}=n;
1return n.current=e.configuration,[...t.current.watchedKeys].some(i=>a[i]!==e.configuration[i])&&o(),e.on("change",()=>{const{current:i}=n;n.current=e.configuration,[...t.current.watchedKeys].some(s=>i[s]!==e.configuration[s])&&o()})},[o,e]),t.current.reactiveConfiguration}function Si(){const[,e]=M({});return C(()=>e(()=>({})),[])}const fi=Fe(function({children:o}){const n=Ho(),t=w(null),a=z(()=>gn(n.customProperties),[n]);return R(()=>n.on("preview",i=>{const{current:s}=t;if(s==null)return;const c=gn(i);for(const l of Object.keys(c))s.style.setProperty(l,c[l])}),[n]),r("div",{style:a,ref:t,children:o})});function gn(e){const o={};for(const n of Object.keys(e))o[`--x-pp-${n.replace(/([a-z\d])([A-Z])/g,"$1-$2").toLowerCase()}`]=e[n];return o}const Bi=Fe(function(){const o=Ho(),[n,t]=M(o.customProperties);R(()=>o.on("preview",i=>{t(s=>({...s,...i}))}),[o]);const a=z(()=>yi(n),[n]);return r("style",{dangerouslySetInnerHTML:{__html:a}})});function yi(e){return ki({[`.${lo}`]:{color:e.colorPrimaryActionText,background:e.colorPrimaryAction},[`.${lo}:hover`]:{background:e.colorPrimaryActionHovered},[`.${lo}:active`]:{background:e.colorPrimaryActionPressed},[`.${Je}`]:{color:e.colorCanvasText,"border-color":e.colorCanvasBorder,"background-color":e.colorCanvas},[`.${Je} .${ao}`]:{"border-color":e.colorCanvasBorder},[`.${Je} .${Ae}`]:{color:e.colorCanvasTextSubdued},[`.${Je} .${Ce}`]:{color:e.colorCanvasTextEmphasized},[`.${Oe}`]:{color:e.colorSurfacePrimaryText,"border-color":e.colorSurfacePrimaryBorder,"background-color":e.colorSurfacePrimary},[`.${Oe} .${ao}`]:{"border-color":e.colorSurfacePrimaryBorder},[`.${Oe} .${Ae}`]:{color:e.colorSurfacePrimaryTextSubdued},[`.${Oe} .${Ce}`]:{color:e.colorSurfacePrimaryTextEmphasized},[`.${Oe} .${$e}`]:{color:e.colorSurfacePrimaryAccent},[`.${He}`]:{color:e.colorSurfaceSecondaryText,"border-color":e.colorSurfaceSecondaryBorder,"background-color":e.colorSurfaceSecondary},[`.${He} .${ao}`]:{"border-color":e.colorSurfaceSecondaryBorder},[`.${He} .${Ae}`]:{color:e.colorSurfaceSecondaryTextSubdued},[`.${He} .${Ce}`]:{color:e.colorSurfaceSecondaryTextEmphasized},[`.${He} .${$e}`]:{color:e.colorSurfaceSecondaryAccent},[`.${qe}`]:{color:e.colorSurfaceTertiaryText,"border-color":e.colorSurfaceTertiaryBorder,"background-color":e.colorSurfaceTertiary},[`.${qe} .${ao}`]:{"border-color":e.colorSurfaceTertiaryBorder},[`.${qe} .${Ae}`]:{color:e.colorSurfaceTertiaryTextSubdued},[`.${qe} .${Ce}`]:{color:e.colorSurfaceTertiaryTextEmphasized},[`.${qe} .${$e}`]:{color:e.colorSurfaceTertiaryAccent}})}function ki(e){const o=[];for(const n of Object.keys(e)){const t=[];for(const a of Object.keys(e[n])){const i=e[n][a];i&&t.push(`${a}: ${i} !important;`)}t.length>0&&o.push(`${n} {
2  ${t.join(`
3  `)}
4}`)}return o.join(`
5`)}function Ti({children:e}){const{typographyPrimary:o,typographySecondary:n}=Q();return R(()=>{const t=[o,n].map(i=>[{fonts:i.fonts,source:i.sourceBase,weight:i.weightBase},{fonts:i.fonts,source:i.sourceBold,weight:i.weightBold}]).reduce((i,s)=>i.concat(s),[]).filter(i=>i.fonts!==void 0&&i.source!==void 0).map(({fonts:i,source:s,weight:c})=>new FontFace(i,s,{weight:c}));async function a(){await Promise.all(t).then(i=>{i.forEach(s=>{document.fonts.add(s)})})}a()},[o,n]),r(U,{children:e})}function Ei({children:e,condition:o}){return o?r(Ti,{children:e}):r(U,{children:e})}function xi({children:e,theme:o,shouldLoadFonts:n}){const t=Ii();return r(Yn.Provider,{value:o,children:r(Ei,{condition:!!n,children:t?r(fi,{children:r(Zo,{children:e})}):r(U,{children:[r(Bi,{}),r(Zo,{children:e})]})})})}function Ii(){return z(()=>typeof CSS<"u"&&CSS.supports("color","var(--test)"),[])}const Pi=1e4,pn=500,hn=3;function Li(e){return e.status==="partially_processed"&&e.errors.some(o=>o.code==="payment_authentication_required")}function Ci(e){return e.status==="partially_processed"&&e.errors.some(o=>o.code==="payment_processing")}function wi(e){return e<=1?0:e<=hn?pn:pn*(e-hn)}async function Ri(e){await Nn(wi(e))}class Ke extends Error{constructor(){super(...arguments),this.name="PostPurchaseError"}}class Mi extends Error{constructor(){super(...arguments),this.name="InitializePostPurchaseIframeError",this.message="Post Purchase tracking iframe failed to initialize"}}
5class Mo extends Error{constructor(){super(...arguments),this.name="PayPalFraudnetCollectError"}}function _i(e){return!!(e?.status==="processed"&&e?.purchaseOrder?.paymentLines?.some(({method:o})=>o.type==="wallet"&&o.name==="PAYPAL_EXPRESS"))}function Ni(e){return/^(?!.*Chrome\/).*Safari\//.test(navigator.userAgent)?e instanceof SyntaxError&&e.message==="JSON Parse error: Unexpected EOF":!1}const Ue={errors:[{code:"server_error",message:"The server encountered an unknown issue while processing the request."}],status:"unprocessed"};class Ai{constructor(o,n,t,a,i){this.changesetsUrl=o,this.observability=n,this.receiptToken=t,this.sessionToken=a,this.developmentMode=i,this.calculateChangeset=this.calculateChangeset.bind(this),this.applyChangeset=this.applyChangeset.bind(this),this.appliedChangeset=this.appliedChangeset.bind(this),this.sendChangesetsRequest=this.sendChangesetsRequest.bind(this)}async calculateChangeset(o){const n=typeof o=="string"?{changes:o}:o;return this.sendChangesetsRequest("calculate.json","calculateChangeset",n)}async applyChangeset(o,n){const t={changes:o,options:n};return this.sendChangesetsRequest("apply.json","applyChangeset",t)}async appliedChangeset(o){const n={changes:o};return this.sendChangesetsRequest("applied.json","appliedChangeset",n)}async sendChangesetsRequest(o,n,t){try{this.observability.leaveErrorBreadcrumb(`PostPurchase::${String(n)}`);const a=`${this.changesetsUrl}/${o}`,i={Accept:"application/json","Content-Type":"application/json","X-Shopify-Receipt-Token":this.receiptToken,"X-Shopify-Checkout-Session-Token":this.sessionToken};this.developmentMode&&(i["X-Shopify-Post-Purchase-Development-Mode"]="1");const s=await fetch(a,{method:"POST",body:JSON.stringify(t),headers:i,credentials:"omit"});if(s.status===404||s.status===502)return Ue;if(s.status===421||s.status===503){const d=s.headers.get("content-type");if(!d?.includes("application/json")){const g=s.headers.get("x-request-id");return this.observability.counter({name:"PostPurchase_unactionable_infra_error",value:1,attributes:{action:String(n),status:s.status,hasRequestId:g!=null}}),this.observability.log("PostPurchase::UnactionableInfraError",`Unactionable infra status ${s.status} for request id '${g}'`,{action:String(n),statusCode:s.status,requestId:g??void 0,contentType:d??void 0}),Ue}}if(!s.headers.get("x-request-id")&&s.status===403)return this.observability.log("PostPurchase::ExternalInterception",`Changeset request intercepted externally with status ${s.status}`,{action:String(n),statusCode:s.status,contentType:s.headers.get("content-type")??void 0}),Ue;if(s.status===429){const d=s.headers.get("x-request-id");return this.observability.log("PostPurchase::RateLimited",`Rate limited with status 429 for request id '${d}'`,{action:String(n),requestId:d??void 0}),{errors:[{code:"server_error",message:"The server responded with status 429, too many requests"}],status:"unprocessed"}}const l=s.headers.get("content-type");if(!l?.includes("application/json")){const d=s.headers.get("x-request-id"),g=await s.text(),p={};for(const[m,b]of Object.entries(i))p[m]=b.length;return this.observability.log("PostPurchase::InvalidContentType",`Unexpected content type '${l}' for request id '${d}'`,{action:String(n),statusCode:s.status,contentType:l??void 0,responseBody:g.substring(0,300),headerLengths:p}),this.notifyAndThrowGenericError(new Ke(`Unexpected content type '${l}' for request id '${d}' with status ${s.status}`),n)}const u=await s.text();try{return JSON.parse(u)}catch(d){const g=s.headers.get("x-request-id"),p=d instanceof Error?d.message:"No error.message",m=u.length>500?u.substring(0,300):u.substring(0,500),b=u.length>500?u.substring(u.length-200):"";this.observability.log("PostPurchase::JsonParseError",`JSON parse failed for request id '${g}'`,{action:String(n),status:s.status,bodyLength:u.length,bodyPreview:m,bodyTail:b,errorMessage:p});const v=s.status===200||s.status<500&&Ni(d)?"PostPurchase::ClientJsonParseError":`PostPurchase::Exception::${String(n)}`;return this.observability.error(new Ke(`Unexpected error parsing json response for request id '${g}'; error: ${p}`),{errorClass:v,severity:"error",metadata:{response:{action:String(n),status:s.status}}}),Ue}}catch(a){return this.notifyAndThrowGenericError(a,n)}}notifyAndThrowGenericError(o,n){return this.notifyError(o,n),Ue}notifyError(o,n){this.observability.error(o,{errorClass:`PostPurchase::Exception::${String(n)}`,severity:"error"})}}function $i(){const{client:e,checkout:o,observability:n}=me(),t=o.latestReceipt.value,a=e.unstable_getSerialization("sessionToken"),{developmentMode:i,changesetsUrl:s}=Wo();if(!s)throw new Ke("There was an error initializing the PostPurchaseApiClient: Changesets Url is blank.");
5if(!a)throw new Ke("There was an error initializing the PostPurchaseApiClient: Session Token is blank.");if(t?.status!=="processed")throw new Ke("There was an error initializing the PostPurchaseApiClient: Receipt Status must be processed.");return z(()=>new Ai(s,n,t.token,a,i),[s,n,t.token,a,i])}function mn(){return An().replace(/-/g,"").slice(0,32)}const Qn="checkoutsCompleted";function zi(e,o,n,t){if(!n.order)return;const a=location.href,i=Di(n.order.checkoutToken,t);e.call.initializeIFrame(o,{referrer:document.referrer,cookie:document.cookie,title:document.title,trackingData:n},a,i)}function Di(e,o){if(!e)return!1;let n;try{n=sessionStorage.getItem(Qn)}catch{return!1}if(!n)return io(JSON.stringify([e]),o),!1;let t;try{t=JSON.parse(n)}catch{return io(JSON.stringify([e]),o),!1}return Array.isArray(t)?t.includes(e)?!0:(t.push(e),io(JSON.stringify(t),o),!1):(io(JSON.stringify([e]),o),!1)}function io(e,o){try{sessionStorage.setItem(Qn,e)}catch(n){n instanceof DOMException&&n.name==="SecurityError"||Fi(o)}}function Fi(e){try{const o={};for(const n in sessionStorage)if(sessionStorage.hasOwnProperty(n)){const t=sessionStorage.getItem(n);o[n]={size:new Blob([t??""]).size}}e.leaveErrorBreadcrumb("sessionStorage inventory",o)}catch{}}function Wi(e,o){const[n,t]=M(null),[a,i]=M("initial"),s=w(""),{observability:c}=me(),l=w(0);return ho(()=>{let u=null;if(a==="initial"&&e?.analyticsIframeURL&&e.postPurchaseAdditionalTrackingScript){const{analyticsIframeURL:d}=e;Ea(d,c),l.current=Date.now(),u=xa({id:`merchant-script-${An()}`,url:d,privileges:["allow-scripts","allow-forms"],title:document.title??void 0}),c.leaveErrorBreadcrumb("Post-purchase tracking iframe: createSandboxedIframe called.");const g=Hr(qr(u),{callable:["ping","initializeIFrame","emitEvent"]});g.expose({mirrorCookie:Oi}),t(g)}return()=>{n?.terminate?.(),u?.remove(),i("initial")}},[]),R(()=>{(async()=>{if(a==="initial"&&n&&e?.trackingData&&e.postPurchaseAdditionalTrackingScript)try{i("initializing"),c.leaveErrorBreadcrumb("Post-purchase tracking iframe: polling iframe");const u=await qi(n,c);if(c.leaveErrorBreadcrumb("Post-purchase tracking iframe: polling iframe completed",{isOk:u}),!u){c.counter({name:"PostPurchase_tracking_iframe_timeout",value:1});return}c.histogram({name:"PostPurchase_tracking_iframe_time_until_ok",value:Date.now()-l.current}),s.current=JSON.stringify(e.trackingData.order),zi(n,e.postPurchaseAdditionalTrackingScript,e.trackingData,c),i("initialized")}catch(u){i("failed"),(u instanceof Error||u instanceof Mi)&&c.error(u)}})()},[e,c,n,a]),R(()=>{a==="initialized"&&n&&o?.(u=>{if(!u)return;const d=JSON.stringify(u.order);s.current!==d&&(s.current=d,n.call.emitEvent("CheckoutAmended",u))})},[o,n,a]),n}function Oi(e){document.cookie=e}const bn=500,Hi=15e3;async function qi(e,o){for(let n=0;n<Hi/bn;n++){const t=e.call.ping(),a=new Promise(s=>{setTimeout(()=>s(!1),bn)}),i=await Promise.race([t,a]);if(i)return o.counter({name:"PostPurchase_tracking_iframe_number_of_polls",value:n+1}),i}return!1}const Ui=$n(({checkout:e,client:o,graphql:{coreGraphql:n},observability:t,shop:a},{lastChangeTimestamp:i})=>{const s=o.unstable_getSerialization("sessionToken"),c=Le(()=>e.latestReceipt.value?.id),l=Le(()=>!a.postPurchase.additionalTrackingScript||e.latestReceipt.value?.status!=="processed"||!s),u=n.query(Dn,{variables:()=>({input:{forRender:{receiptId:c.value,sessionToken:s}}}),skip:()=>l.value,cache:!1}),d=Le(()=>ji(u.data.value??void 0));zo(()=>{l.value||t.counter({name:"PostPurchase_page_loading_analytics_sandbox",value:1})});let g=i.peek();return zo(()=>{const p=i.value;l.value||p===g||(g=p,u.refetch())}),{emittableTrackingData:Le(()=>l.value||u.loading.value||u.error.value?null:d.value),trackingData:d}});function ji(e){if(!e||!e.postPurchaseData)return null;const o=e.postPurchaseData;return o.__typename!=="PostPurchaseDataSuccess"||!o.trackingData?null:JSON.parse(o.trackingData)}function Yi({lastChangeTimestamp:e}){const{shop:o,url:n}=me(),t=Ur(e),{emittableTrackingData:a,trackingData:i}=zn(Ui,{lastChangeTimestamp:t}),s=c=>{if(a.value)return c(a.value)};return Wi({trackingData:i.value,analyticsIframeURL:n.sandboxAnalytics(),postPurchaseAdditionalTrackingScript:o.postPurchase.additionalTrackingScript},s),null}const Vi="https://c.paypal.com/da/r/fb.js",Gi="https://c.paypal.com/da/r/fbts.js",Xi="fnparams-dede7cc5-15fd-4c75-a9f4-36c430ee3a99";function Qi({checkoutSessionIdentifier:e,shopId:o,paymentGatewaySessionId:n,fraudnetMultioffersEnabled:t}){return r(U,{children:[r("script",{type:"application/json",fncls:Xi,dangerouslySetInnerHTML:{__html:JSON.stringify({f:t?n:e,s:t?"shopify_checkout_postPurchase":`shop-${o}`})}}),r("script",{src:t?Gi:Vi})]})}const Ji="_1gdkV",Ki="svk3O",Jn={SectionContent:Ji,HeaderLogo:Ki};function Zi({children:e,onHeaderClick:o}){const{main:n}=sa(),{i18n:t}=me();return r(ie,{background:"base",className:ta({colorScheme:n.colorScheme,colorLayer:"base"}),children:[r(Ia,{children:t.translate("post_purchase.title")}),r(es,{onClick:o}),r("div",{className:Jn.SectionContent,children:e}),r(os,{})]})}function es({onClick:e}){const{checkout:o,i18n:n}=me(),t=o.latestReceipt.value,a=t?.status==="processed"?t.orderIdentity.buyerIdentifier:null;return r(U,{children:[r("header",{children:r(ie,{inlineAlignment:"center",children:r(ie,{inlineSize:"100%",maxInlineSize:"@media (inline-size >= medium) 1100px, 560px",padding:"@media (inline-size >= medium) none large-500, none",children:r(ie,{padding:"@media (inline-size >= medium) small-200 large-500, small-200 base small-400 base",children:r(Jo,{level:1,children:r("div",{className:Jn.HeaderLogo,children:r(ca,{})})})})})})}),r(ie,{inlineAlignment:"center",children:r(ie,{inlineSize:"100%",maxInlineSize:"@media (inline-size >= medium) 1176px, 560px",padding:"@media (inline-size >= medium) none large-500, none",children:r(ie,{padding:"@media (inline-size >= medium) none large-500 large-200 large-500, none base base base'",children:r(Ko,{gap:"base",direction:"inline",alignItems:"start",accessibilityRole:"header",children:[r(la,{type:"check-circle",tone:"accent",size:"large"}
5),r(ie,{children:r(Ko,{alignItems:"start",gap:"small-400",children:[a&&n.translate("order_summary.confirmation_number_label",{confirmation_number:`${a}`}),r(Jo,{level:2,children:n.translate("post_purchase.escape_confirmation")}),r(da,{onClick:e,children:n.translate("post_purchase.escape_action")})]})})]})})})})]})}function os(){return r(ie,{accessibilityRole:"footer",inlineAlignment:"center",padding:"large-400",children:r(ie,{inlineSize:"100%",maxInlineSize:"@media (inline-size >= small) 560px, (inline-size >= medium) 946px, none",children:r(ie,{padding:"base none",borderWidth:"base none none none",children:r(ua,{})})})})}function bo(e,o){const[n,t]=M({receiver:e,id:o.id,version:o.version,value:o});let a=n.value;return(n.receiver!==e||n.id!==o.id)&&(a=e.attached.get(o),t({receiver:e,id:o.id,version:o.version,value:a})),jr(a),R(()=>{let i=!1;const s=()=>{i||t(l=>{const{id:u,version:d,receiver:g}=l,{id:p}=o;if(g!==e||u!==p)return l;const m=e.attached.get(o),b=m?.version;return d===b?l:{receiver:e,value:m,id:p,version:b}})},c=e.attached.subscribe(o,s);return s(),()=>{i=!0,c()}},[e,o]),a}const ns=Fe(function({controller:o,receiver:n}){const{root:t}=n.attached,{children:a}=bo(n,t),{renderComponent:i,renderText:s}=o.renderer;return r(U,{children:a.map(c=>{switch(c.kind){case _n:return i({parent:t,component:c,receiver:n,controller:o,key:c.id});case Mn:return s({parent:t,text:c,receiver:n,key:c.id});default:return null}})})}),ts={},rs=Fe(function({receiver:o,component:n,controller:t}){const a=t.get(n.type),i=bo(o,n),s=z(()=>{const l=i?.props;if(!l)return ts;const u={};for(const d of Object.keys(l)){const g=l[d];u[d]=Yr(g)?r(as,{parent:n,receiver:o,fragment:g,controller:t}):g}return u},[o,t,i?.props,n.version]);if(i==null)return null;const{children:c}=i;return c.length===0?r(a,{...s}):r(a,{...s,children:Kn(n,c,o,t)})}),as=Fe(function({parent:o,receiver:n,fragment:t,controller:a}){var i;const{children:s}=(i=bo(n,t))!==null&&i!==void 0?i:{};return s?r(U,{children:Kn(o,s,n,a)}):null});function Kn(e,o,n,t){const{renderComponent:a,renderText:i}=t.renderer;return[...o].map(s=>{switch(s.kind){case _n:return a({parent:e,component:s,receiver:n,controller:t,key:s.id});case Mn:return i({parent:e,text:s,receiver:n,key:s.id});default:return null}})}const is=Fe(function({text:o,receiver:n}){const t=bo(n,o);return t?r(U,{children:t.text}):null});function ss(e,{renderComponent:o,renderText:n}={}){const t=new Map(Object.entries(e)),a=({parent:l,component:u,controller:d,receiver:g,key:p})=>r(rs,{parent:l,component:u,controller:d,receiver:g},p),i=o?l=>o(l,{renderDefault(){return a(l)}}):a,s=({key:l,receiver:u,text:d,parent:g})=>r(is,{receiver:u,text:d,parent:g},l);return{get(l){const u=t.get(l);if(u==null)throw new Error(`Unknown component: ${l}`);return u},renderer:{renderComponent:i,renderText:n?l=>n(l,{renderDefault(){return s(l)}}):s}}}function ve(e){let o=0;return()=>`${e}${o++}`}function Se(e,o){const n=w(e);return n.current=e??n.current??o(),n.current}const cs="Pt5C9",ls="AHnvD",ds="_0kHdH",us="Mj39f",gs="mHRdF",ps="bgPkT",hs="QGqKQ",ms="C0fD2",bs="z2I8f",vs="dg84n",Ss="uLkzw",je={Bookend:cs,alignmentLeading:ls,alignmentCenter:ds,alignmentTrailing:us,alignmentBaseline:gs,spacingXtight:ps,spacingTight:hs,spacingLoose:ms,spacingXloose:bs,trailing:vs,leading:Ss};function Zn({children:e,spacing:o,alignment:n,leading:t,trailing:a}){return r("div",{className:S(je.Bookend,t&&je.leading,a&&je.trailing,o&&je[h("spacing",o)],n&&je[h("alignment",n)]),children:e})}const fs="S6mQH",Bs="Qxy5o",ys="Lebua",ks="dJkfR",Ts="_9L1yu",Es="_8EqjA",xs="_7cFDn",Is="piSw3",Ps="q9HMK",Ls="DfCuC",Cs="zF1vV",ws="LC3a5",Rs="kd33n",Ms="cGahq",_s="JIXAj",Ns="YOogo",As="kgOOJ",$s="rwvoZ",Z={style1:fs,placeholderStyle1:Bs,style2:ys,placeholderStyle2:ks,style3:Ts,placeholderStyle3:Es,style4:xs,placeholderStyle4:Is,style5:Ps,placeholderStyle5:Ls,style6:Cs,placeholderStyle6:ws,style7:Rs,placeholderStyle7:Ms,style8:_s,placeholderStyle8:Ns,style9:As,placeholderStyle9:$s}
5,zs="J7FWc",Ds="EBR0w",Fs="OyUup",Ws="b3EhK",Os="qPKsd",Hs="Fv43w",qs="TxTLq",vn={Heading:zs,h1:Ds,h2:Fs,h3:Ws,h4:Os,h5:Hs,h6:qs};function vo({id:e,children:o,role:n,level:t}){const{headingLevel1:a,headingLevel2:i,headingLevel3:s}=Q(),c=Wn(),l=t??c??0,u=n==="presentation"||c==null?"p":`h${c}`,d=S(vn.Heading,l?vn[h("h",l)]:void 0,l>=2&&Ce,l===1&&a.typographyStyle&&Z[a.typographyStyle],l===2&&i.typographyStyle&&Z[i.typographyStyle],l===3&&s.typographyStyle&&Z[s.typographyStyle]);return r(u,{id:e,tabIndex:e?-1:void 0,className:d,children:o})}const Us=e=>r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e,children:r("path",{fillRule:"evenodd",d:"M8.87 3a.71.71 0 0 0-.605.337L6.353 6.469H1.412A1.4 1.4 0 0 0 0 7.856v11.793a1.4 1.4 0 0 0 1.412 1.387h21.176A1.4 1.4 0 0 0 24 19.65V7.856a1.4 1.4 0 0 0-1.412-1.387h-4.94l-1.913-3.132A.71.71 0 0 0 15.13 3zM12 18.088c2.826 0 5.118-2.252 5.118-5.03 0-2.777-2.292-5.029-5.118-5.029s-5.118 2.252-5.118 5.03 2.292 5.03 5.118 5.03m3.265-5.03c0 1.773-1.462 3.21-3.265 3.21s-3.265-1.437-3.265-3.21c0-1.771 1.462-3.208 3.265-3.208s3.265 1.437 3.265 3.209",clipRule:"evenodd"})}),js=e=>r("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 50 50",...e,children:[r("path",{strokeWidth:2,d:"M49 25c0 13.255-10.745 24-24 24S1 38.255 1 25 11.745 1 25 1s24 10.745 24 24Z",style:{stroke:"currentColor"}}),r("path",{d:"M39 12 12 39m0-27 27 27",style:{stroke:"currentColor"}})]}),Ys=e=>r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",...e,children:r("path",{d:"M0 5h20L10 15"})}),Vs=e=>r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",...e,children:r("path",{d:"M17.178 13.088H5.453c-.454 0-.91-.364-.91-.818L3.727 1.818H0V0h4.544c.455 0 .91.364.91.818l.09 1.272h13.45c.274 0 .547.09.73.364.18.182.27.454.18.727l-1.817 9.18c-.09.455-.455.728-.91.728zM6.27 11.27h10.09l1.454-7.362H5.634l.637 7.362zm.092 7.715a1.817 1.817 0 1 0 .002-3.634 1.817 1.817 0 0 0-.002 3.634m9.18 0a1.816 1.816 0 1 0-.001-3.635 1.818 1.818 0 0 0 0 3.635z"})}),Gs=e=>r("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 50 50",...e,children:[r("path",{strokeWidth:2,d:"M49 25c0 13.255-10.745 24-24 24S1 38.255 1 25 11.745 1 25 1s24 10.745 24 24Z",style:{stroke:"currentColor"}}),r("path",{strokeWidth:2,d:"m15 24.511 7.307 7.307L35.125 19",style:{stroke:"currentColor"}})]}),Xs=e=>r("svg",{viewBox:"0 0 20 20",...e,children:r("path",{d:"M20 5.347 7.647 17.462 0 9.962l2.393-2.347 5.254 5.154L17.607 3z"})}),Qs=e=>r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 14 14",...e,children:r("path",{d:"M12.6 3 14 4.4 8.4 10 7 11.4 5.6 10 0 4.4 1.4 3 7 8.6"})}),Js=e=>r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 10 10",...e,children:r("path",{d:"M8 1 7 0 3 4 2 5l1 1 4 4 1-1-4-4"})}),Ks=e=>r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 10 10",...e,children:r("path",{d:"m2 1 1-1 4 4 1 1-1 1-4 4-1-1 4-4"})}),Zs=e=>r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 14 14",...e,children:r("path",{d:"M1.4 10.4 0 9l7-7 7 7-1.4 1.4L7 4.8z"})}),ec=e=>r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",...e,children:r("path",{d:"M15.1 2.3 13.7.9 8 6.6 2.3.9.9 2.3 6.6 8 .9 13.7l1.4 1.4L8 9.4l5.7 5.7 1.4-1.4L9.4 8"})}),oc=e=>r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e,children:r("path",{d:"M12 24C5.373 24 0 18.627 0 12S5.373 0 12 0s12 5.373 12 12-5.373 12-12 12m0-2c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10m0-16a1 1 0 0 1 1 1v5a1 1 0 0 1-2 0V7a1 1 0 0 1 1-1m-1.5 10.5c0-.828.666-1.5 1.5-1.5.828 0 1.5.666 1.5 1.5 0 .828-.666 1.5-1.5 1.5-.828 0-1.5-.666-1.5-1.5"})}),nc=e=>r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",...e,children:r("path",{d:"m9.46 4.305-6.129 5.11c-.28.24-.467.516-.467.885v8.864c0 .46.479.835.937.835h2.863a.837.837 0 0 0 .835-.835l-.048-4.449c0-.229.186-.414.415-.414h4.168c.229 0 .417.185.417.414l.048 4.45c0 .46.375.835.834.835h2.986c.46 0 .835-.374.835-.834v-8.482c0-.367-.245-.894-.528-1.131l-6.09-5.248a.834.834 0 0 0-1.077 0zm10.243 3.391L11.179.489A1.66 1.66 0 0 0 9.999 0c-.446 0-.866.176-1.129.443L.294 7.696a.834.834 0 0 0 1.077 1.273L9.5 2.045a.83.83 0 0 1 .996-.002c1.837 1.374 8.133 6.927 8.133 6.927a.835.835 0 0 0 1.077-1.274z"})}),tc=e=>r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",...e,children:r("path",{fillRule:"evenodd",d:"M7.267 2.688 11.922 0l1.813 3.14-4.656 2.687zM0 3.264h3.296L9 13.187a3.39 3.39 0 1 0 2.406 4.186l.508.884 7.775-4.502-1.003-1.731-6.038 3.497L4.454 1.264H0zm9.529 13.203a1.39 1.39 0 1 1-2.782 0 1.39 1.39 0 0 1 2.782 0m6.7-13.328L9.516 7.014l3.771 6.533L20 9.672z",clipRule:"evenodd"})}),rc=e=>r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",...e,children:r("path",{fillRule:"evenodd",d:"M10 17.5a7.45 7.45 0 0 1-4.339-1.394L16.106 5.661A7.45 7.45 0 0 1 17.5 10c0 4.136-3.364 7.5-7.5 7.5m0-15c1.617 0 3.113.52 4.339 1.394L3.894 14.339A7.45 7.45 0 0 1 2.5 10c0-4.136 3.364-7.5 7.5-7.5M10 0C4.486 0 0 4.486 0 10s4.486 10 10 10 10-4.486 10-10S15.514 0 10 0",clipRule:"evenodd"})}),ac=e=>r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18",...e,children:[r("path",{fillOpacity:.55,d:"M17.78 3.09A2 2 0 0 0 16 2h-5.165c-.535 0-1.046.214-1.422.593l-6.82 6.89q0 .003-.002.003a2.04 2.04 0 0 0-.5.874L.74 8.055a2 2 0 0 1 .712-2.737L9.823.425A2 2 0 0 1 11.35.22l4.99 1.337a2 2 0 0 1 1.44 1.533"}),r("path",{d:"M10.835 2H16a2 2 0 0 1 2 2v5.172c0 .53-.21 1.04-.586 1.414l-6.818 6.818a2 2 0 0 1-2.82.01l-5.166-5.1a2 2 0 0 1-.02-2.828q.003 0 .003-.002l6.82-6.89A2 2 0 0 1 10.835 2M13.5 8a1.5 1.5 0 1 0-.001-3.001A1.5 1.5 0 0 0 13.5 8"})]}),ic=e=>r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",...e,children:r("path",{fillRule:"evenodd",d:"M10 20c5.523 0 10-4.477 10-10S15.523 0 10 0 0 4.477 0 10s4.477 10 10 10m-3.292-5.38L10 11.328l3.257 3.257 1.328-1.328L11.328 10l3.292-3.292-1.328-1.328L10 8.672 6.743 5.415 5.415 6.743 8.672 10 5.38 13.292z",clipRule:"evenodd"})}),sc=e=>r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18",...e,children:r("g",{fillRule:"evenodd",children:[r("path",{fillOpacity:.55,fillRule:"nonzero",d:"M12.915 5q.084-.236.085-.5a1.5 1.5 0 0 0-3 0V11h6v2h-6v5H8v-5H2v-2h6V4.5a1.5 1.5 0 1 0-2.915.5h-2.05A3.5 3.5 0 0 1 9 2.05 3.5 3.5 0 0 1 14.965 5z"}),r("path",{d:"M16 13v2a3 3 0 0 1-3 3h-3v-5zm0-2h-6V5h6a2 2 0 1 1 0 4zM2 13h6v5H5a3 3 0 0 1-3-3zm0-2V9a2 2 0 1 1 0-4h6v6z"})]})}),cc=e=>r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e,children:r("path",{d:"M12 11h1v7h-2v-5a1 1 0 0 1 0-2zm0 13C5.373 24 0 18.627 0 12S5.373 0 12 0s12 5.373 12 12-5.373 12-12 12m0-2c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10M10.5 7.5c0-.828.666-1.5 1.5-1.5.828 0 1.5.666 1.5 1.5 0 .828-.666 1.5-1.5 1.5-.828 0-1.5-.666-1.5-1.5"})}),lc=e=>r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 14 14",...e,children:r("path",{d:"M12 6h-1V4c0-2.2-1.8-4-4-4S3 1.8 3 4v2H2c-.5 0-1 .5-1 1v6c0 .5.5 1 1 1h10c.5 0 1-.5 1-1V7c0-.5-.5-1-1-1M5 4c0-1.1.9-2 2-2s2 .9 2 2v2H5z"})}),dc=e=>r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e,children:r("path",{fillRule:"evenodd",d:"M5 2.99C5 1.34 6.342 0 8.003 0h7.994A3 3 0 0 1 19 2.99v18.02c0 1.65-1.342 2.99-3.003 2.99H8.003A3 3 0 0 1 5 21.01zM7 5c0-.552.456-1 .995-1h8.01c.55 0 .995.445.995 1v14c0 .552-.456 1-.995 1h-8.01A.995.995 0 0 1 7 19zm5 18a1 1 0 1 0 0-2 1 1 0 0 0 0 2"})}),uc=e=>r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",...e,children:r("path",{d:"M8 0C3.6 0 0 3.6 0 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8m.7 13H6.8v-2h1.9zm2.6-7.1c0 1.8-1.3 2.6-2.8 2.8l-.1 1.1H7.3L7 7.5l.1-.1c1.8-.1 2.6-.6 2.6-1.6 0-.8-.6-1.3-1.6-1.3-.9 0-1.6.4-2.3 1.1L4.7 4.5c.8-.9 1.9-1.6 3.4-1.6 1.9.1 3.2 1.2 3.2 3"})}),gc=e=>r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",...e,children:[r("path",{d:"M5.156 17.75a2.75 2.75 0 1 0 0-5.5 2.75 2.75 0 0 0 0 5.5m9.969 0a2.75 2.75 0 1 0 0-5.5 2.75 2.75 0 0 0 0 5.5"}),r("path",{fillRule:"evenodd",d:"M0 14V3a1 1 0 0 1 1-1h7.756a1 1 0 0 1 1 1v1.469h.01V15h-.787q.006-.099.005-.199A3.75 3.75 0 1 0 1.49 15H1a1 1 0 0 1-1-1m10.656 1h.709a3.75 3.75 0 1 1 7.49 0H19a1 1 0 0 0 1-1v-3.853a1 1 0 0 0-.169-.556l-3.128-4.678a1 1 0 0 0-.83-.444h-5.217z",clipRule:"evenodd"})]}),pc=e=>r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",...e,children:r("path",{d:"M20 10c0 5.523-4.477 10-10 10S0 15.523 0 10 4.477 0 10 0v2a8 8 0 1 0 8 8z"})}),hc=e=>r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e,children:r("path",{d:"M32 16c0 8.837-7.163 16-16 16S0 24.837 0 16 7.163 0 16 0v2C8.268 2 2 8.268 2 16s6.268 14 14 14 14-6.268 14-14z"})}),mc=e=>r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e,children:r("path",{d:"M12 24C5.373 24 0 18.627 0 12S5.373 0 12 0s12 5.373 12 12-5.373 12-12 12m0-2c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10m3.784-13.198a.999.999 0 1 1 1.432 1.396l-5.85 6a1 1 0 0 1-1.432 0l-3.15-3.23a1 1 0 1 1 1.432-1.397l2.434 2.5 5.134-5.267z"})}),bc=e=>r("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 50 50",...e,children:[r("path",{strokeWidth:2,d:"M49 25c0 13.255-10.745 24-24 24S1 38.255 1 25 11.745 1 25 1s24 10.745 24 24Z",style:{stroke:"currentColor"}}),r("path",{strokeLinecap:"square",strokeWidth:2,d:"M25 11v19",style:{stroke:"currentColor"}}),r("path",{fillRule:"evenodd",d:"M25 39a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3",clipRule:"evenodd",style:{fill:"currentColor"}})]}),vc=e=>r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",...e,children:r("path",{fillRule:"evenodd",d:"m12.738 3.06 6.592 11.968C20.842 17.774 19.71 20 16.8 20H3.2C.29 20-.842 17.778.67 15.028L7.262 3.061c1.513-2.745 3.962-2.75 5.476 0m-3.571 9.761V6.668h1.666v6.153zM10 16.734c.69 0 1.25-.58 1.25-1.295 0-.716-.56-1.296-1.25-1.296s-1.25.58-1.25 1.296c0 .715.56 1.295 1.25 1.295",clipRule:"evenodd"})}),Sc=e=>r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",...e,children:[r("path",{fillRule:"evenodd",d:"M9.167 12.407V6.469h1.667v5.938z",clipRule:"evenodd"}),r("path",{d:"M10 16.183a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5"}),r("path",{fillRule:"evenodd",d:"M19.33 14.536 12.738 2.99C11.223.334 8.774.34 7.261 2.989L.67 14.536C-.842 17.19.291 19.334 3.2 19.334h13.6c2.909 0 4.042-2.148 2.53-4.798M8.761 4.08c.839-1.467 1.637-1.468 2.476 0l6.316 11.066c.86 1.506.49 2.209-1.
5036 2.209H3.483c-1.525 0-1.894-.701-1.038-2.209z",clipRule:"evenodd"})]}),fc="BMGnr",Bc="EwEn7",yc="eT6oI",kc="oDjiF",Tc="oGW7E",Ec="eZ7zj",xc="RYcxG",Ic="_6qD2C",Pc="_65MYf",Lc="WryPG",Cc="wBGCW",wc="woymO",Rc="ecTdl",Mc="z9u48",Ye={Icon:fc,sizeDefault:Bc,sizeSmall:yc,sizeLarge:kc,appearanceAccent:Tc,appearanceInteractive:Ec,appearanceSubdued:xc,appearanceInfo:Ic,appearanceSuccess:Pc,appearanceCritical:Lc,appearanceWarning:Cc,Svg:wc,Img:Rc,Placeholder:Mc},_c={camera:Us,cancelCircle:js,caretDown:Ys,cart:Vs,checkmark:Xs,checkmarkCircle:Gs,chevronDown:Qs,chevronUp:Zs,chevronRight:Ks,chevronLeft:Js,close:ec,critical:oc,discount:ac,delivered:nc,delivery:tc,disabled:rc,errorFill:ic,info:cc,lock:lc,mobile:dc,questionFill:uc,spinner:hc,spinnerSmall:pc,success:mc,ship:gc,warning:Sc,warningCircle:bc,warningFill:vc,giftFill:sc};function we({source:e,appearance:o,size:n,accessibilityLabel:t}){const a=S(Ye.Icon,o&&Ye[h("appearance",o)],o&&o==="accent"&&$e,n&&Ye[h("size",n)]);let i;if(e==="placeholder")i=r("div",{className:Ye.Placeholder});else{const s=_c[e];i=r(s,{className:Ye.Svg,focusable:"false","aria-hidden":"true",role:"presentation"})}return r("span",{className:a,"aria-label":t,children:i})}const Nc="WBViK",Ac="xgQYA",$c="a67HM",zc="A50FK",Dc="Z00zw",Fc="wNtvT",Wc="JBd0G",_o={TextContainer:Nc,spacingNone:Ac,spacingTight:$c,spacingLoose:zc,alignmentLeading:Dc,alignmentCenter:Fc,alignmentTrailing:Wc};function So({alignment:e,spacing:o,children:n}){const t=S(_o.TextContainer,e&&_o[h("alignment",e)],o&&_o[h("spacing",o)]);return r("div",{className:t,children:n})}const Sn={padding:["paddingInlineStart","paddingInlineEnd","paddingBlockStart","paddingBlockEnd"],paddingInline:["paddingInlineStart","paddingInlineEnd"],paddingInlineStart:"paddingInlineStart",paddingInlineEnd:"paddingInlineEnd",paddingBlock:["paddingBlockStart","paddingBlockEnd"],paddingBlockStart:"paddingBlockStart",paddingBlockEnd:"paddingBlockEnd",background:"background",border:["borderInlineStart","borderInlineEnd","borderBlockStart","borderBlockEnd"],borderInline:["borderInlineStart","borderInlineEnd"],borderInlineStart:"borderInlineStart",borderInlineEnd:"borderInlineEnd",borderBlock:["borderBlockStart","borderBlockEnd"],borderBlockStart:"borderBlockStart",borderBlockEnd:"borderBlockEnd",borderWidth:["borderWidthInlineStart","borderWidthInlineEnd","borderWidthBlockStart","borderWidthBlockEnd"],borderWidthInline:["borderWidthInlineStart","borderWidthInlineEnd"],borderWidthInlineStart:"borderWidthInlineStart",borderWidthInlineEnd:"borderWidthInlineEnd",borderWidthBlock:["borderWidthBlockStart","borderWidthBlockEnd"],borderWidthBlockStart:"borderWidthBlockStart",borderWidthBlockEnd:"borderWidthBlockEnd",borderColor:["borderColorInlineStart","borderColorInlineEnd","borderColorBlockStart","borderColorBlockEnd"],borderRadius:["borderRadiusInlineStart","borderRadiusInlineEnd","borderRadiusBlockStart","borderRadiusBlockEnd"],borderRadiusInline:["borderRadiusInlineStart","borderRadiusInlineEnd"],borderRadiusInlineStart:"borderRadiusInlineStart",borderRadiusInlineEnd:"borderRadiusInlineEnd",borderRadiusBlock:["borderRadiusBlockStart","borderRadiusBlockEnd"],borderRadiusBlockStart:"borderRadiusBlockStart",borderRadiusBlockEnd:"borderRadiusBlockEnd",spacing:"spacing"};function fn(e,o){return Object.entries(e).filter(([n,t])=>Sn[n]&&t).reduce((n,[t,a])=>{const i=Sn[t];return Array.isArray(i)?[...n,...i.map(s=>o?h(h(o,s),a):h(s,a))]:[...n,o?h(h(o,i),a):h(i,a)]},[])}function Bn(e){return Object.assign({},...Object.entries(e).map(([o,n])=>{if(Array.isArray(n)){if(n.length===2){const[t,a]=n;return{[`${o}Block`]:t,[`${o}Inline`]:a}}else if(n.length===4){const[t,a,i,s]=n;return{[`${o}BlockStart`]:t,[`${o}InlineEnd`]:a,[`${o}BlockEnd`]:i,[`${o}InlineStart`]:s}}}return{[o]:n}}))}function Oc(e,o){return[...fn(Bn(e)),...o?o.map(({viewportSize:n,...t})=>fn(Bn(t),n)).reduce((n,t)=>n.concat(t),[]):[]]}const Hc="_47zIR",qc="fEqQ9",Uc="ii27j",jc="_1fK3S",Yc="mUB1b",Vc="q9YYb",Gc="_1HJFC",Xc="oV4Z2",Qc="uAMYP",Jc="menNc",Kc="NFMUD",Zc="JNQAO",el="dWe54",ol="FsqcC",nl="foinD",tl="rfp8Y",rl="iOrF3",al="Y3mIT",il="PQE0l",sl="eP0RQ",cl="ZHBJy",ll="gohnJ",dl="r3Sce",ul="_9gRm7",gl="_2aFJq",pl="_91j9L",hl="aWdpf",ml="yZuyc",bl="CQ6UX",vl="xBdlE",Sl="MISHF",fl="b0ylU",Bl="cAZzk",yl="LjBbN",kl="czEIY",Tl="u6ieL",El="Q2Pcd",xl="NUIuJ",Il="cH20N",Pl="xwvJT",Ll="NdQ5q",Cl="S9nQ3",wl="GkWv4",Rl="ctr2e",Ml="VnGGl",_l="Pstdl",Nl="NXQcj",Al="tL3Qp",$l="nmLTV",zl="Umil9",Dl="yUCBq",Fl="uNuk8",Wl="Ou9KA",Ol="fc28B",Hl="WIefK",ql="C7lzD",Ul="B4qvI",jl="kw9sh",Yl="M1V6g",Vl="_7zlaM",Gl="qqYT8",Xl="mYPZ9",Ql="HdQ9U",Jl="xy8tg",Kl="zhe2S",Zl="nezfL",ed="tyNxx",od="hngp5",nd="RZ4s7",td="_5WUxN",rd="rzF4T",ad="_20Bvh",id="Y5pQs",sd="t4kF6",cd="yOH8O",ld="pLQEz",dd="_94rqG",ud="Fughu",gd="S1ctf",pd="eOuG5",hd="GK4xe",md="w2psg",bd="EjiAg",vd="kfWbx",Sd="_2N5qr",fd="_5Q7fi",Bd="tdUoq",yd="ggaPg",kd="tfE80",Td="GJSUI",Ed="zwoP1",xd="mTxb5",Id="mpI9z",Pd="HTywT",Ld="_9ulY8",Cd="s8qMf",wd="_2CmEJ",Rd="AboN6",Md="_49IGz",_d="fNZ1l",Nd="M45Ob",Ad="jp4c7",$d="xAA0R",zd="fGY5f",Dd="_31Id7",Fd="bx2qN",Wd="goLU0",Od="rrwTq",Hd="XIoWB",qd="_8KbGZ",Ud="Ix69q",jd="AOjX1",Yd="ewG2X",Vd="v7w4I",Gd="ujYhI",Xd="ADHOF",Qd="vHX6M",Jd="DDfrF",Kd="VoCpG",Zd="zUIvX",eu="nrS8q",ou="lqJd0",nu="_91azi",tu="jL2aC",ru="tBmbv",au="FK6vz",iu="OOcxv",su="_1vJ1r",cu="K3lQt",lu="sX3hs",du="uJ2FB",uu="J29re",gu="uYzG0",pu="unNTt",hu
5="_6OoQk",mu="QbmcA",bu="_1d436",vu="jpz96",Su="nZWdv",fu="DRAbK",Bu="stEtS",yu="K8QJ6",ku="sn841",Tu="KM5LL",Eu="GAkFo",xu="y2TnV",Iu="SYRpa",Pu="_3fwPx",Lu="_2C2sx",Cu="rtbaJ",wu="ybFn0",Ru="Sa0EE",Mu="jcIY2",_u="D5uaS",Nu="n3T6g",Au="r3OSj",$u="C6pla",zu="o3tmc",Du="_1yxs5",Fu="_2c5K2",Wu="UJUYC",Ou="_1Wlgi",Hu="_0xUxo",qu="F8sYl",Uu="_5AA7L",ju="oxQ90",Yu="_0Qd1M",Vu="xJYUk",Gu="TrEq6",Xu="_0P8Q4",Qu="mvGSG",Ju="EuTFm",Ku="AeCtW",Zu="sipVW",eg="XGruh",og="hFd2M",ng="z8BTV",tg="_2MGZK",rg="_1cOM9",ag="eUSnk",ig="cQL8O",sg="EbLsC",cg="kcnav",lg="_4QhrI",dg="ZZWpj",ug="_2BOrb",gg="_1ueKi",pg="Fax9T",hg="ydi6p",mg="fp8IC",bg="fsaBa",vg="MkU19",Sg="_3tdr9",fg="TpEsF",Bg="yft63",yg="VmImD",kg="NM2yV",Tg="_1g20z",Eg="WxBVR",xg="LrIuq",Ig="K1XLm",Pg="_1bMw2",Lg="BUD9H",Cg="R9RZt",wg="JxfQV",Rg="_2T75z",Mg="POiRg",_g="_2DY0L",Ng="Epshn",Ag="kcAiv",$g="zDiwA",zg="_1uZFt",Dg="vnrZ2",Fg="riGjf",Wg="QQYVl",Og="ulJWL",Hg="nDtP5",qg="CL4rO",Ug="l4pK0",jg="OqXHc",Yg="AGTRa",Vg="V33M5",Gg="Fz5s9",Xg="_9xFaI",Qg="UNDlf",Jg="vkBQ7",Kg="sopqf",Zg="BZTuX",ep="_0VqWv",op="hQws7",np="Ja6HK",tp="nns70",rp="zy4ps",ap="aYgpQ",ip="Fp15A",sp="gjVG8",cp="Tg842",lp="UhUwi",dp="_6F4dd",up="E6TZr",gp="tWLn5",pp="qYx1Q",hp="w7Uxz",mp="RO5sq",bp="fkjVf",vp="K6n6y",Sp="qguz7",fp="TJs83",Bp="_9Pw4q",yp="_71meE",kp="a42rs",Tp="iWZkR",Ep="NpZaQ",xp="NHCvw",Ip="sujnm",Pp="nAzPb",Lp="tBVOS",Cp="Mh4rq",wp="ZDnKL",yn={paddingInlineStartTight4x:Hc,paddingInlineStartTight1x:qc,paddingInlineStartBase:Uc,paddingInlineStartLoose1x:jc,paddingInlineStartLoose4x:Yc,paddingInlineEndTight4x:Vc,paddingInlineEndTight1x:Gc,paddingInlineEndBase:Xc,paddingInlineEndLoose1x:Qc,paddingInlineEndLoose4x:Jc,paddingBlockStartTight4x:Kc,paddingBlockStartTight1x:Zc,paddingBlockStartBase:el,paddingBlockStartLoose1x:ol,paddingBlockStartLoose4x:nl,paddingBlockEndTight4x:tl,paddingBlockEndTight1x:rl,paddingBlockEndBase:al,paddingBlockEndLoose1x:il,paddingBlockEndLoose4x:sl,backgroundSurfacePrimary:cl,backgroundSurfaceSecondary:ll,backgroundSurfaceTertiary:dl,borderInlineStartBase:ul,borderInlineStartDotted:gl,borderInlineEndBase:pl,borderInlineEndDotted:hl,borderBlockStartBase:ml,borderBlockStartDotted:bl,borderBlockEndBase:vl,borderBlockEndDotted:Sl,borderWidthInlineStartBase:fl,borderWidthInlineStartThick:Bl,borderWidthInlineEndBase:yl,borderWidthInlineEndThick:kl,borderWidthBlockStartBase:Tl,borderWidthBlockStartThick:El,borderWidthBlockEndBase:xl,borderWidthBlockEndThick:Il,borderColorInlineStartBase:Pl,borderColorInlineStartEmphasized:Ll,borderColorInlineEndBase:Cl,borderColorInlineEndEmphasized:wl,borderColorBlockStartBase:Rl,borderColorBlockStartEmphasized:Ml,borderColorBlockEndBase:_l,borderColorBlockEndEmphasized:Nl,borderRadiusBlockStartTight:Al,borderRadiusBlockStartBase:$l,borderRadiusInlineStartTight:zl,borderRadiusInlineStartBase:Dl,borderRadiusInlineEndTight:Fl,borderRadiusInlineEndBase:Wl,borderRadiusBlockEndTight:Ol,borderRadiusBlockEndBase:Hl,aboveSmallPaddingInlineStartTight4x:ql,aboveSmallPaddingInlineStartTight1x:Ul,aboveSmallPaddingInlineStartBase:jl,aboveSmallPaddingInlineStartLoose1x:Yl,aboveSmallPaddingInlineStartLoose4x:Vl,aboveSmallPaddingInlineStartNone:Gl,aboveSmallPaddingInlineEndTight4x:Xl,aboveSmallPaddingInlineEndTight1x:Ql,aboveSmallPaddingInlineEndBase:Jl,aboveSmallPaddingInlineEndLoose1x:Kl,aboveSmallPaddingInlineEndLoose4x:Zl,aboveSmallPaddingInlineEndNone:ed,aboveSmallPaddingBlockStartTight4x:od,aboveSmallPaddingBlockStartTight1x:nd,aboveSmallPaddingBlockStartBase:td,aboveSmallPaddingBlockStartLoose1x:rd,aboveSmallPaddingBlockStartLoose4x:ad,aboveSmallPaddingBlockStartNone:id,aboveSmallPaddingBlockEndTight4x:sd,aboveSmallPaddingBlockEndTight1x:cd,aboveSmallPaddingBlockEndBase:ld,aboveSmallPaddingBlockEndLoose1x:dd,aboveSmallPaddingBlockEndLoose4x:ud,aboveSmallPaddingBlockEndNone:gd,aboveSmallBackgroundSurfacePrimary:pd,aboveSmallBackgroundSurfaceSecondary:hd,aboveSmallBackgroundSurfaceTertiary:md,aboveSmallBackgroundTransparent:bd,aboveSmallBorderInlineStartBase:vd,aboveSmallBorderInlineStartDotted:Sd,aboveSmallBorderInlineStartNone:fd,aboveSmallBorderInlineEndBase:Bd,aboveSmallBorderInlineEndDotted:yd,aboveSmallBorderInlineEndNone:kd,aboveSmallBorderBlockStartBase:Td,aboveSmallBorderBlockStartDotted:Ed,aboveSmallBorderBlockStartNone:xd,aboveSmallBorderBlockEndBase:Id,aboveSmallBorderBlockEndDotted:Pd,aboveSmallBorderBlockEndNone:Ld,aboveSmallBorderWidthInlineStartBase:Cd,aboveSmallBorderWidthInlineStartThick:wd,aboveSmallBorderWidthInlineEndBase:Rd,aboveSmallBorderWidthInlineEndThick:Md,aboveSmallBorderWidthBlockStartBase:_d,aboveSmallBorderWidthBlockStartThick:Nd,aboveSmallBorderWidthBlockEndBase:Ad,aboveSmallBorderWidthBlockEndThick:$d,aboveSmallBorderColorInlineStartBase:zd,aboveSmallBorderColorInlineStartEmphasized:Dd,aboveSmallBorderColorInlineEndBase:Fd,aboveSmallBorderColorInlineEndEmphasized:Wd,aboveSmallBorderColorBlockStartBase:Od,aboveSmallBorderColorBlockStartEmphasized:Hd,aboveSmallBorderColorBlockEndBase:qd,aboveSmallBorderColorBlockEndEmphasized:Ud,aboveSmallBorderRadiusBlockStartTight:jd,aboveSmallBorderRadiusBlockStartBase:Yd,aboveSmallBorderRadiusBlockStartNone:Vd,aboveSmallBorderRadiusInlineStartTight:Gd,aboveSmallBorderRadiusInlineStartBase:Xd,aboveSmallBorderRadiusInlineStartNone:Qd,aboveSmallBorderRadiusInlineEndTight:Jd,aboveSmallBorderRadiusInlineEndBase:Kd,aboveSmallBorderRadiusInlineEndNone:Zd,aboveSmallBorderRadiusBlockEndTight:eu,aboveSmallBorderRadiusBlockEndBase:ou,aboveSmallBorderRadiusBlockEndNone:nu,aboveMediumPaddingInlineStartTight4x:tu,aboveMediumPaddingInlineStartTight1x:ru,aboveMediumPaddingInlineStartBase:au,aboveMediumPaddingInlineStartLoose1x:iu,aboveMediumPaddingInlineStartLoose4x:su,aboveMediumPaddingInlineStartNone:cu,aboveMediumPaddingInlineEndTight4x:lu,aboveMediumPaddingInlineEndTight1x:du,aboveMediumPaddingInlineEndBase:uu,aboveMediumPaddingInlineEndLoose1x:gu,aboveMediumPaddingInlineEndLoose4x:pu,aboveMediumPaddingInlineEndNone:hu,aboveMediumPaddingBlockStartTight4x:mu,aboveMediumPaddingBlockStartTight1x:bu,aboveMediumPaddingBlockStartBase:vu,aboveMediumPaddingBlockStartLoose1x:Su,aboveMediumPaddingBlockStartLoose4x:fu,aboveMediumPaddingBlockStartNone:Bu,aboveMediumPaddingBlockEndTight4x:yu,aboveMediumPaddingBlockEndTight1x:ku,aboveMediumPaddingBlockEndBase:Tu,aboveMediumPaddingBlockEndLoose1x:Eu,aboveMediumPaddingBlockEndLoose4x:xu,aboveMediumPaddingBlockEndNone:Iu,aboveMediumBackgroun
5dSurfacePrimary:Pu,aboveMediumBackgroundSurfaceSecondary:Lu,aboveMediumBackgroundSurfaceTertiary:Cu,aboveMediumBackgroundTransparent:wu,aboveMediumBorderInlineStartBase:Ru,aboveMediumBorderInlineStartDotted:Mu,aboveMediumBorderInlineStartNone:_u,aboveMediumBorderInlineEndBase:Nu,aboveMediumBorderInlineEndDotted:Au,aboveMediumBorderInlineEndNone:$u,aboveMediumBorderBlockStartBase:zu,aboveMediumBorderBlockStartDotted:Du,aboveMediumBorderBlockStartNone:Fu,aboveMediumBorderBlockEndBase:Wu,aboveMediumBorderBlockEndDotted:Ou,aboveMediumBorderBlockEndNone:Hu,aboveMediumBorderWidthInlineStartBase:qu,aboveMediumBorderWidthInlineStartThick:Uu,aboveMediumBorderWidthInlineEndBase:ju,aboveMediumBorderWidthInlineEndThick:Yu,aboveMediumBorderWidthBlockStartBase:Vu,aboveMediumBorderWidthBlockStartThick:Gu,aboveMediumBorderWidthBlockEndBase:Xu,aboveMediumBorderWidthBlockEndThick:Qu,aboveMediumBorderColorInlineStartBase:Ju,aboveMediumBorderColorInlineStartEmphasized:Ku,aboveMediumBorderColorInlineEndBase:Zu,aboveMediumBorderColorInlineEndEmphasized:eg,aboveMediumBorderColorBlockStartBase:og,aboveMediumBorderColorBlockStartEmphasized:ng,aboveMediumBorderColorBlockEndBase:tg,aboveMediumBorderColorBlockEndEmphasized:rg,aboveMediumBorderRadiusBlockStartTight:ag,aboveMediumBorderRadiusBlockStartBase:ig,aboveMediumBorderRadiusBlockStartNone:sg,aboveMediumBorderRadiusInlineStartTight:cg,aboveMediumBorderRadiusInlineStartBase:lg,aboveMediumBorderRadiusInlineStartNone:dg,aboveMediumBorderRadiusInlineEndTight:ug,aboveMediumBorderRadiusInlineEndBase:gg,aboveMediumBorderRadiusInlineEndNone:pg,aboveMediumBorderRadiusBlockEndTight:hg,aboveMediumBorderRadiusBlockEndBase:mg,aboveMediumBorderRadiusBlockEndNone:bg,aboveLargePaddingInlineStartTight4x:vg,aboveLargePaddingInlineStartTight1x:Sg,aboveLargePaddingInlineStartBase:fg,aboveLargePaddingInlineStartLoose1x:Bg,aboveLargePaddingInlineStartLoose4x:yg,aboveLargePaddingInlineStartNone:kg,aboveLargePaddingInlineEndTight4x:Tg,aboveLargePaddingInlineEndTight1x:Eg,aboveLargePaddingInlineEndBase:xg,aboveLargePaddingInlineEndLoose1x:Ig,aboveLargePaddingInlineEndLoose4x:Pg,aboveLargePaddingInlineEndNone:Lg,aboveLargePaddingBlockStartTight4x:Cg,aboveLargePaddingBlockStartTight1x:wg,aboveLargePaddingBlockStartBase:Rg,aboveLargePaddingBlockStartLoose1x:Mg,aboveLargePaddingBlockStartLoose4x:_g,aboveLargePaddingBlockStartNone:Ng,aboveLargePaddingBlockEndTight4x:Ag,aboveLargePaddingBlockEndTight1x:$g,aboveLargePaddingBlockEndBase:zg,aboveLargePaddingBlockEndLoose1x:Dg,aboveLargePaddingBlockEndLoose4x:Fg,aboveLargePaddingBlockEndNone:Wg,aboveLargeBackgroundSurfacePrimary:Og,aboveLargeBackgroundSurfaceSecondary:Hg,aboveLargeBackgroundSurfaceTertiary:qg,aboveLargeBackgroundTransparent:Ug,aboveLargeBorderInlineStartBase:jg,aboveLargeBorderInlineStartDotted:Yg,aboveLargeBorderInlineStartNone:Vg,aboveLargeBorderInlineEndBase:Gg,aboveLargeBorderInlineEndDotted:Xg,aboveLargeBorderInlineEndNone:Qg,aboveLargeBorderBlockStartBase:Jg,aboveLargeBorderBlockStartDotted:Kg,aboveLargeBorderBlockStartNone:Zg,aboveLargeBorderBlockEndBase:ep,aboveLargeBorderBlockEndDotted:op,aboveLargeBorderBlockEndNone:np,aboveLargeBorderWidthInlineStartBase:tp,aboveLargeBorderWidthInlineStartThick:rp,aboveLargeBorderWidthInlineEndBase:ap,aboveLargeBorderWidthInlineEndThick:ip,aboveLargeBorderWidthBlockStartBase:sp,aboveLargeBorderWidthBlockStartThick:cp,aboveLargeBorderWidthBlockEndBase:lp,aboveLargeBorderWidthBlockEndThick:dp,aboveLargeBorderColorInlineStartBase:up,aboveLargeBorderColorInlineStartEmphasized:gp,aboveLargeBorderColorInlineEndBase:pp,aboveLargeBorderColorInlineEndEmphasized:hp,aboveLargeBorderColorBlockStartBase:mp,aboveLargeBorderColorBlockStartEmphasized:bp,aboveLargeBorderColorBlockEndBase:vp,aboveLargeBorderColorBlockEndEmphasized:Sp,aboveLargeBorderRadiusBlockStartTight:fp,aboveLargeBorderRadiusBlockStartBase:Bp,aboveLargeBorderRadiusBlockStartNone:yp,aboveLargeBorderRadiusInlineStartTight:kp,aboveLargeBorderRadiusInlineStartBase:Tp,aboveLargeBorderRadiusInlineStartNone:Ep,aboveLargeBorderRadiusInlineEndTight:xp,aboveLargeBorderRadiusInlineEndBase:Ip,aboveLargeBorderRadiusInlineEndNone:Pp,aboveLargeBorderRadiusBlockEndTight:Lp,aboveLargeBorderRadiusBlockEndBase:Cp,aboveLargeBorderRadiusBlockEndNone:wp};function eo({blockPadding:e,inlinePadding:o,padding:n,children:t,media:a,...i}){const c=Oc({...i,padding:!n&&(e||o)?Rp(e,o):n},a);return r("div",{className:S(yn.View,c&&c.map(l=>yn[l])),children:t})}function Rp(e,o){const n=t=>{switch(t){case"base":return"base";case"tight":return"tight1x";case"extraTight":return"tight4x";case"loose":return"loose1x";case"extraLoose":return"loose4x";default:return"none"}};return[n(e),n(o)]}const Mp="HwFtv",_p="gvEcX",Np="_2OMMy",Ap="WHH75",$p="LEzwg",zp="u07YM",Dp="_4TfRQ",Ve={Banner:Mp,Icon:_p,statusInfo:Np,statusSuccess:Ap,statusWarning:$p,statusCritical:zp,Button:Dp},Fp=ve("Banner");function Wp({children:e,collapsible:o=!1,iconHidden:n=!1,status:t="info",title:a,autoFocus:i=!1}){const s=no(),[c,l]=M(!0),u=w(null);R(()=>{i===!0&&u?.current?.focus()},[i]);const d=S(Ve.Banner,t&&Ve[h("status",t)]),g=Se(void 0,Fp),p=c?void 0:g,m=!o||o&&!c;return r("div",{className:d,role:t==="critical"?"alert":"status","aria-atomic":"true","aria-live":"polite",...i&&{tabIndex:-1},ref:u,children:r(Zn,{leading:!n,trailing:o,children:[!n&&r("div",{className:Ve.Icon,children:r(we,{source:t})}),r(So,{spacing:"tight",children:[a&&r(vo,{level:3,children:a}),e&&m&&r("div",{className:Ve.Content,id:p,children:r(mo,{children:r(eo,{children:e})})})]}),o&&r(eo,{children:r("button",{type:"button",className:Ve.Button,onClick:()=>l(b=>!b),"aria-pressed":!c,"aria-expanded":!c,"aria-controls":p,children:r(we,{size:"small",source:c?"chevronDown":"chevronUp",accessibilityLabel:s("expand")})})})]})})}const Op="kIgpr",Hp="bFWIE",qp="kkSSu",Up="rMvcE",jp="m8fnu",Yp="gFMiI",Vp="KQ319",Gp="cThsa",Xp="FAXRQ",No={BlockStack:Op,spacingNone:Hp,spacingXtight:qp,spacingTight:Up,spacingLoose:jp,spacingXloose:Yp,alignmentLeading:Vp,alignmentCenter:Gp,alignmentTrailing:Xp};function fo({alignment:e,spacing:o,children:n}){const t=S(No.BlockStack,e&&No[h("alignment",e)],o&&No[h("spacing",o)]);return r("div",{className:t,children:n})}function qo(){const[e,o]=M(!1);return ho(()=>{o(Qp())},[]),R(()=>
5{if(typeof window>"u")return;const n=window.matchMedia("(prefers-reduced-motion: reduce)"),t=()=>{o(n.matches)};return n.addListener(t),()=>{n.removeListener(t)}},[]),e}function Qp(){return typeof window<"u"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches}const kn=new Map([["none",0],["fast",100],["base",200],["slow",300],["slower",400],["slowest",500]]);function Uo(e,o="slow",n=!1){const[t,a]=M(n?!1:e),[i,s]=M(!1),c=w(n?!1:e),l=w(()=>{s(!1),a(c.current)}),u=qo();let d=typeof o=="string"?o:o.enter,g=typeof o=="string"?o:o.exit;return u&&(d="none",g="none"),R(()=>{e!==c.current&&s(!0),c.current=e;const p=setTimeout(l.current,e?kn.get(d??"none"):kn.get(g??"none"));return()=>{clearTimeout(p)}},[d,g,e]),i?e?"entering":"exiting":e===t?e?"entered":"exited":e?"enter":"exit"}function et({children:e,className:o,to:n,external:t,id:a,language:i,onPress:s}){const c=Na(),l=s&&(()=>s());return c?r(c,{to:n,onClick:l,external:t,id:a,className:o,lang:i,children:e}):r("a",{href:n,onClick:l,target:t?"_blank":void 0,rel:t?"noopener noreferrer":void 0,id:a,className:o,lang:i,children:e})}const Jp="Saysr",Kp="aAUgK",Zp="jc1jU",eh="_4WBeo",Tn={Spinner:Jp,"fade-in":"Tsfjk",rotate:Kp,sizeLarge:Zp,sizeSmall:eh};function ot({size:e,color:o,children:n}){const t=qo(),a=!!(n&&t),i=a?void 0:S(Tn.Spinner,e&&Tn[h("size",e)]);return r("div",{className:i,children:a?n:r(we,{source:e==="small"?"spinnerSmall":"spinner",appearance:o?void 0:"accent"})})}const oh="MImI3",nh="c2MXY",th="Lh31i",rh="AdR2j",ah="Ad3oQ",ih="Imf0g",sh="yXHHV",ch="ts108",lh="a5wxR",dh="pUDoY",uh="NQ2yj",gh="fYrWH",ph="_1Zk1y",hh="B2YDL",mh="nNNso",bh="AABVP",vh="N8QRz",Sh="GZggx",Y={Button:oh,Content:nh,LoadingContent:th,Spinner:rh,subdued:ah,plain:ih,underline:sh,fill:ch,disabled:lh,loading:dh,"loading-transitionEnter":"eKXZP","loading-transitionEntering":"kEwCl","loading-transitionEntered":"FFWrm",secondary:uh,tertiary:gh,progressBar:ph,progressbar:hh,colorHoveredColor1:mh,colorHoveredColor2:bh,colorPressedColor1:vh,colorPressedColor2:Sh},nt=Fo(function({children:o,submit:n=!1,disabled:t,onPress:a,to:i,subdued:s,plain:c,secondary:l,tertiary:u,loading:d=!1,fill:g=!1,loadingLabel:p,underline:m},b){const v=t?void 0:i,f=t||typeof a!="function"?void 0:()=>a?.(),B=C(le=>{typeof b=="function"?b(le):b&&(b.current=le)},[b]),I=no(),_=qo(),W=Uo(d,{enter:"slow"}),{primaryButton:{typographyStyle:D,loadingStyle:N="spinner"},secondaryButton:{typographyStyle:A,loadingStyle:$="spinner"},link:{colorHovered:T,colorPressed:x}}=Q(),k=l?$:N,P=S(Y.Button,lo,s&&Y.subdued,c&&Y.plain,c&&T&&Y[h("colorHovered",T)],c&&x&&Y[h("colorPressed",x)],c&&m&&Y.underline,t&&Y.disabled,d&&k==="spinner"&&Y.loading,g&&Y.fill,d&&k==="spinner"&&Y[h("loading-transition",W)],l&&Y.secondary,u&&Y.tertiary,d&&k==="progressBar"&&Y[k]),q=p||I("processing"),F=l?A&&Z[A]:D&&Z[D],se=S(Y.Content,!c&&F),ne=r("span",{className:se,children:d&&k==="progressBar"&&_?q:o}),te=n?"submit":"button",ce=r("span",{className:S(Y.LoadingContent,!_&&Y.Spinner),children:r(ot,{size:"small",color:"inherit",children:q})});return v?r(et,{to:v,className:P,onPress:a,"aria-busy":d,"aria-live":d?"assertive":"polite",children:[ne,d&&k==="spinner"&&ce]}):r("button",{type:te,className:P,disabled:t||d,onClick:f,"aria-busy":d,"aria-live":d?"assertive":"polite",ref:B,children:[ne,d&&k==="spinner"&&ce]})}),fh="xbP8T",Bh="MnY5j",yh="oweDI",kh="_9Wkb7",Th="egIQs",Eh="JBAUV",xh="tEPo1",Ih="_8kU9E",Ph="_1d4vg",Ao={InlineStack:fh,spacingXtight:Bh,spacingTight:yh,spacingLoose:kh,spacingXloose:Th,alignmentLeading:Eh,alignmentCenter:xh,alignmentTrailing:Ih,alignmentBaseline:Ph};function tt({spacing:e,alignment:o,children:n}){const t=S(Ao.InlineStack,e&&Ao[h("spacing",e)],o&&Ao[h("alignment",o)]);return r("div",{className:t,children:n})}function Lh({children:e}){return r(tt,{alignment:"center",children:e})}function Bo(e){return`error-for-${e}`}function yo({children:e}){return r("span",{"aria-hidden":"true",children:e})}const Ch="IZGO7",wh={InlineError:Ch};function jo({children:e,controlID:o}){return r("p",{className:wh.InlineError,id:o?Bo(o):void 0,children:e})}const Rh="q6PFP",Mh={VisuallyHidden:Rh};function ze({children:e}){return r("span",{className:Mh.VisuallyHidden,children:e})}const _h="PDMGs",Nh="o7KtC",Ah="XRqWc",$h="HyDWS",zh="giGGc",Dh="DKMqn",Fh="Y0iFQ",K={Wrapper:_h,hasError:Nh,errorIndentationToText:Ah,Checkbox:$h,Input:zh,Icon:Dh,"Input-hasError":"eADQA","Input-backgroundTransparent":"iFRwL","Input-backgroundSurfacePrimary":"kEW1r","Input-backgroundSurfaceSecondary":"biGeI","Input-backgroundSurfaceTertiary":"_2s0y0","Input-borderColorEmphasized":"nZlde","Input-isDisabled":"Py3dv",Label:Fh,"Label-isDisabled":"idTjj",Error:"_9XLCJ"},Wh=ve("Checkbox");function rt({id:e,name:o,accessibilityLabel:n,error:t,disabled:a,children:i,...s}){const c=Se(e,Wh),{checkbox:{errorIndentation:l,errorTypographyStyle:u}}=Q(),d=t?r("div",{className:S(K.Error,u&&Z[u]),children:r(jo,{controlID:c,children:t})}):null,g=S(K.Label,a&&K["Label-isDisabled"]),p=!!t;return r("div",{className:S(K.Wrapper,p&&K.hasError,p&&l&&K[h("errorIndentation",l)]),children:[r(Oh,{id:c,name:o,error:!!t,disabled:a,...s}),r("label",{htmlFor:c,className:g,children:n?r(U,{children:[r(ze,{children:n}),r(yo,{children:i})]}):i}),d]})}function Oh({id:e,name:o,value:n=!1,checked:t=n,disabled:a,error:i=!1,onChange:s}){const{controls:{background:c},checkbox:{background:l,borderColor:u="base"}}=Q(),d=l||c||"surfaceTertiary",g=S(K.Input,i&&K["Input-hasError"],a&&K["Input-isDisabled"],K[h("Input-background",d)],K[h("Input-borderColor",u)]);return r("div",{className:K.Checkbox,children:[r("input",{type:"checkbox",id:e,name:o,checked:t,disabled:a,onChange:({currentTarget:p})=>{s?.(p.checked)},className:g,"aria-describedby":i?Bo(e):void 0,"aria-invalid":i}),r("div",{className:K.Icon,children:r(we,{source:"checkmark",size:"small"})})]})}const Hh="occN5",qh="xonXO",Uh="dZPXf",jh="Gdq36",Yh="eqsiw",Vh="IwUJJ",so={Link:Hh,underline:qh,colorHoveredColor1:Uh,colorHoveredColor2:jh,colorPressedColor1:Yh,colorPressedColor2:Vh},Gh=new Set(["http","https"]),Xh=new Set([...Gh,"mailto","tel","sms"]);function at({to:e,language:o,children:n,onPress:t,underline:a,...i}){const{link:{colorHovered:s,colorPressed:c}}=Q();if(!e)return r(nt,{onPress:t,plain:!0,underline:!0,...i,children:n});const l=Qh(e);return r(et,{className:S(so.Link,a&&so.underline,s&&so[h("colorHovered",s)],c&&so[h("colorPressed",c)]),to:l,onPress:t,language:o,...i,children:n})}function Qh(e){try{const n=new URL(e,window.location.origin).protocol.replace(":","");return Xh.has(n)?e:"#"}catch{return e}}
5const it={base:0,small:750,medium:1e3,large:1200};function Jh({addMaxWidth:e}={addMaxWidth:!0}){return Object.entries(it).map(([o,n],t,a)=>{const i=a[t+1],[,s]=i||[],c=s&&e?`(min-width: ${n}px) and (max-width: ${s-1}px)`:`(min-width: ${n}px)`;return{breakpoint:o,query:c}})}function Kh(){const e=z(()=>Jh(),[]),o=C(()=>{const a=e.find(({query:i})=>window.matchMedia(i).matches);return a?a.breakpoint:void 0},[e]),[n,t]=M(o());return R(()=>{const a=()=>{const i=o();n!==i&&t(i)};return a(),window.addEventListener("resize",a),()=>window.removeEventListener("resize",a)},[n,o,e]),n}function Zh(e){const o=Kh();return em(e,o)}function em(e,o){if(!o)return;if(e[o]!==void 0)return e[o];const n=Object.keys(it),t=n.indexOf(o);for(let a=t;a>=0;a--){const i=n[a];if(e[i]!==void 0)return e[i]}}function Yo(e,o=10){return`${e/o}rem`}function Vo(e){return e>1?Yo(e):`${e*100}%`}const po=`
6  a[href],
7  area[href],
8  input:not([type="hidden"]):not([disabled]):not([tabindex="-1"]),
9  select:not([disabled]),
10  textarea:not([disabled]),
11  button:not([disabled]):not([tabindex="-1"]),
12  iframe,
13  object,
14  embed,
15  [tabindex="0"],
16  [contenteditable],
17  audio[controls],
18  video[controls]`;function om(e,o=!0){return!o&&e.matches(po)?e:e.querySelector(po)}function nm(e,o=!0){if(!o&&e.matches(po))return e;const n=e.querySelectorAll(po);return n[n.length-1]}const tm="YqJKm",En={Bumper:tm},rm=({children:e,onContainerFocus:o})=>{const n=w(null),t=w(null),a=w(null);ho(()=>{a.current?.focus({preventScroll:!0})},[]);const i=s=>{const c=a.current;if(c){const l=s?om(c):nm(c);l?l.focus():c.focus()}};return r(U,{children:[r("button",{className:En.Bumper,ref:n,"aria-hidden":"true",onFocus:()=>i(!1),type:"button"}),Vr(e,{tabIndex:-1,ref:a,onFocus:o}),r("button",{className:En.Bumper,ref:t,"aria-hidden":"true",onFocus:()=>i(!0),type:"button"})]})},am="_31OOl",im={Portal:am},sm="PortalHost",cm=ve("Portal");function st({children:e}){const[o,n]=M(null),t=Se(void 0,cm);return R(()=>{const a=document.getElementById(sm)??document.body,i=document.createElement("div");return i.setAttribute("id",t),i.setAttribute("class",im.Portal),a.appendChild(i),n(i),()=>{a.removeChild(i)}},[t]),o&&Gr(e,o)}const lm="CzBEl",dm="bUMzc",um="PfnJm",gm="Zqwd3",pm="CjXfl",hm="Eep2v",mm="_9bDa6",bm="IfNYu",ge={Backdrop:lm,Dialog:dm,transitionEntered:um,Modal:gm,Content:pm,"Dialog-blockSizeFill":"JOey5",IFrame:hm,Header:mm,CloseButton:bm},vm=ve("ModalHeading"),Sm=-1;function fm({maxInlineSize:e,blockSize:o,open:n,title:t,titleHidden:a,source:i,noMountTransition:s=!1,children:c,...l}){const u=l.blocking,d=l.blocking?void 0:l.onClose,g=no(),[p,m]=M(),b=w(null),v=w(null),f=Se(void 0,vm),B=Uo(n,"fast",!s),I=ge[h("transition",B)],_=Zh({base:!0,medium:!1});R(()=>{B==="enter"&&(document.body.style.overflow="hidden",b.current=document.activeElement),B==="exited"&&(document.body.style.overflow="auto",b?.current instanceof HTMLElement&&b.current.focus(),m(void 0))},[B]),R(()=>()=>{document.body.style.overflow="auto"},[]);const W=()=>{setTimeout(()=>{v.current?.scrollTo(0,0)},0)};R(()=>{const k=P=>{(P.key==="Escape"||P.key==="Esc")&&!u&&d?.()};return document.addEventListener("keydown",k,!1),()=>{document.removeEventListener("keydown",k,!1)}},[u,d]);const D=C(k=>{const P=k.target;if(P&&P.contentWindow)try{m(P.contentWindow.document.body.scrollHeight)}catch{m(Sm)}},[]);function N(){d?.()}if(B==="exited")return null;const A=a?{"aria-label":t}:{"aria-labelledby":f},$=a?r("span",{}):r(vo,{level:1,id:f,children:t}),T=(!a||!u)&&r("header",{className:ge.Header,children:[$,!u&&r("button",{type:"button",className:ge.CloseButton,onClick:d,"aria-label":g("close")||"Close",children:r(we,{source:"close",size:"large"})})]}),x=i?r("iframe",{src:i,title:t,className:ge.IFrame,...p&&p>0&&{style:{height:p}},...!o&&{onLoad:D}}):r("div",{className:ge.Content,...(o||_)&&{tabIndex:0},children:c});return r(st,{children:r("div",{className:ge.Modal,ref:v,children:[r("div",{className:S(ge.Backdrop,I),onClick:N}),r(rm,{onContainerFocus:W,children:r("div",{className:S(ge.Dialog,I,{[ge["Dialog-blockSizeFill"]]:o==="fill"||p===-1}),role:"dialog","aria-modal":!0,style:{...e&&{maxWidth:Vo(e==="fill"?1:e)}},...A,children:[T,x]})})]})})}function Bm({checked:e,onChange:o,error:n,policy:t}){return t==="subscriptions"?r(ym,{checked:e,onChange:o,error:n}):null}function ym({checked:e,onChange:o,error:n}){const[t,a]=M(!1),i=no(),{merchantPolicies:s}=Aa(),c=s?.find(d=>d.handle==="subscription-policy"),l=i("subscription.cancelled");return r(U,{children:[r(rt,{name:"subscription_agreement",checked:e,onChange:o,error:n,children:i("subscription.agreement",{cancelled:c?r(at,{onPress:()=>a(!0),children:l}):l})}),c&&r(fm,{open:t,title:i("subscription.policy"),source:c.url,onClose:()=>a(!1)})]})}const km="SOPT0",Tm="nKTUa",Em="fGe9g",xm="fhec3",$o={CalloutBanner:km,borderBlock:Tm,backgroundSecondary:Em,backgroundTransparent:xm};function Im({title:e,children:o,border:n="block",background:t="secondary",alignment:a="center",spacing:i="tight"}){const s=e&&r(vo,{level:3,children:e});return r("div",{className:S($o.CalloutBanner,n&&$o[h("border",n)],t&&$o[h("background",t)]),role:"status","aria-atomic":"true","aria-live":"polite",children:r(So,{alignment:a==="leading"?void 0:a,spacing:i,children:r(mo,{children:[s,r(eo,{children:o})]})})})}const Pm="_9o02B",Lm={Form:Pm};
18function Cm({onSubmit:e,children:o,disabled:n=!1,implicitSubmit:t=!0}){const a=no(),i=t===!1?null:r(ze,{children:r("button",{type:"submit",disabled:n,tabIndex:-1,"aria-hidden":!0,children:typeof t=="string"?t:a("submit")})});return r("form",{action:"",method:"POST",noValidate:!0,onSubmit:s=>{n||(s.preventDefault(),e())},className:Lm.Form,children:[o,i]})}const wm="_4uFg4",Rm="Zroh1",xn={Group:wm,spacingTight:Rm};function Mm({children:e}){const{formLayout:{spacing:o}}=Q();return r(fo,{spacing:o==="base"?void 0:o,children:e})}function _m({children:e}){const{formLayout:{spacing:o}}=Q();return r("div",{className:S(xn.Group,o&&o!=="base"&&xn[h("spacing",o)]),children:e})}const Nm="oiNTK",Am="ENwjc",$m="Kkl3o",zm="_9HP9S",Dm="LHbWP",go={Image:Nm,bordered:Am,aspectRatio:$m,fitContain:zm,fitCover:Dm},Fm=new Map([["small","(max-width: 600px)"],["medium","(max-width: 1200px)"],["large","(min-width: 1201px)"]]);function Wm({source:e,sources:o,description:n="",fit:t,bordered:a,loading:i,aspectRatio:s,decorative:c}){const l=[],u=o&&o.reduce((g,{source:p,viewportSize:m,resolution:b})=>{const v=m&&Fm.get(m),f=g.find(({media:I})=>v===I),B=[p,b&&`${b}x`].join(" ").trim();return f?(f.srcSet+=`, ${B}`,g):[...g,{media:v,srcSet:B}]},l).map(g=>r("source",{...g})),d=S(go.Image,a&&go.bordered,t&&go[h("fit",t)]);return r(Om,{condition:c===!0,children:r(Hm,{condition:s!=null,aspectRatio:s,children:r(qm,{condition:u!=null,children:[u,r("img",{src:e,alt:n,className:d,loading:i})]})})})}function Om({children:e,condition:o}){return o?r(yo,{children:e}):r(U,{children:e})}function Hm({children:e,condition:o,aspectRatio:n}){return o?r("div",{className:go.aspectRatio,style:{paddingBottom:`calc(100% / ${n})`},children:e}):r(U,{children:e})}function qm({children:e,condition:o}){return o?r("picture",{children:e}):r(U,{children:e})}const Um="HZoss",jm="XarlU",Ym="YTxaJ",Vm="_9qVBD",Gm="F2fuL",Xm="VjRYe",Me={Layout:Um,blockAlignmentTrailing:jm,blockAlignmentCenter:Ym,inlineAlignmentLeading:Vm,inlineAlignmentTrailing:Gm,LayoutInner:Xm,"LayoutInner-inlineAlignmentLeading":"_8Bkjq","LayoutInner-inlineAlignmentTrailing":"fITy1"},In=new Map([["small","@media all and (max-width: 749px)"],["medium","@media all and (min-width: 750px) and (max-width: 1199px)"],["large","@media all and (min-width: 1200px)"]]),Qm=ve("Layout");function Jm({inlineAlignment:e,blockAlignment:o,maxInlineSize:n,sizes:t,media:a,children:i}){const s=Se(void 0,Qm),c=`.${s} > .${Me.LayoutInner}`,l=S(Me.Layout,s,o&&Me[h("blockAlignment",o)],e&&Me[h("inlineAlignment",e)]),u=S(Me.LayoutInner,e&&Me[h("LayoutInner-inlineAlignment",e)]),d={viewportSize:"default",sizes:t,maxInlineSize:n},g=a?Pn(c,[d,...a]):Pn(c,[d]);return r(U,{children:r("div",{className:l,children:[r("style",{children:g}),r("div",{className:u,children:i})]})})}function Km(e,o){return o.reduce((n,t,a)=>{const i=t==="fill",s=typeof t!="number",c=typeof t=="number"?Vo(t):"auto",l=`
19        ${e} > :nth-child(${a+1}) {
20          flex: ${i?"1":"0"} ${s?"1":"0"} ${c};
21          max-width: ${c};
22        }
23      `;return[n,l].join(" ")},"")}function Pn(e,o){return o.reduce((n,{viewportSize:t,maxInlineSize:a,sizes:i})=>{const s=i&&Km(e,i),c=i?.includes(1)?`${e} { flex-wrap: wrap; }`:"",l=a?`${e} { max-width: ${Vo(a)}; }`:"",u=[s,c,l],d=t==="default"||typeof In.get(t)>"u"?u:[In.get(t),"{",...u,"}"];return[n,...d].join(" ")},"")}const Zm="tstNy",eb="c0kTe",ob="fOxEo",nb="_8G4jN",ae={Wrapper:Zm,Radio:eb,Input:ob,"Input-sizeBase":"EY8QG","Input-sizeLarge":"TxORn","Input-checkedStyleRing":"_9tjNu","Input-checkedStyleDisc":"oQ4o1","Input-checkedColorInteractive":"WuWVP","Input-c
23heckedColorPrimary":"s0SXQ","Input-isDisabled":"aQaN9","Input-backgroundSurfacePrimary":"HG87V","Input-backgroundSurfaceSecondary":"MZDuc","Input-backgroundSurfaceTertiary":"rED7c","Input-backgroundTransparent":"ENiw1","Input-borderColorEmphasized":"Mexwm",Label:nb,"Label-isDisabled":"UJrFL"},tb=ve("Radio");function rb({id:e,accessibilityLabel:o,children:n,disabled:t,...a}){const i=Se(e,tb),s=S(ae.Label,t&&ae["Label-isDisabled"]);return r("div",{className:ae.Wrapper,children:[r(ab,{id:i,disabled:t,...a}),r("label",{htmlFor:i,className:s,children:o?r(U,{children:[r(ze,{children:o}),r(yo,{children:n})]}):n})]})}const ab=({id:e,name:o,value:n=!1,checked:t=n,disabled:a,onChange:i})=>{const{controls:{background:s},radio:{background:c,borderColor:l="base",checkedStyle:u="ring",checkedColor:d="interactive",size:g="base"}}=Q(),p=c||s||"surfaceTertiary",m=S(ae.Input,a&&ae["Input-isDisabled"],ae[h("Input-size",g)],ae[h("Input-background",p)],ae[h("Input-borderColor",l)],ae[h("Input-checkedStyle",u)],ae[h("Input-checkedColor",d)]);return r("div",{className:ae.Radio,children:r("input",{type:"radio",id:e,name:o,checked:t,disabled:a,onChange:({currentTarget:b})=>{i?.(b.checked)},className:m})})},ib=new Map([["telephone","tel"],["credit-card","cc"],["birthday","bday"],["expiry","exp"],["security-code","csc"],["instant-message","impp"]]);function ct(e){if(e==null)return;if(e===!1)return"none";if(e===!0)return"on";const{group:o,field:n}=e,t=n.replace(/(?:telephone|credit-card|expiry|security-code|instant-message)/g,a=>ib.get(a)??a);return o?`${o} ${t}`:t}const sb="wgIZT",cb="g0VDz",lb="gIDtT",db="R5x0Q",ub="_5twot",gb="zrFpd",pb="pGVcI",hb="GhrMi",mb="_8z3Vh",bb="yHciV",vb="hEwEw",Sb="ZfTam",fb="wUae1",_e={Text:sb,subdued:cb,emphasized:lb,appearanceAccent:db,appearanceSuccess:ub,appearanceWarning:gb,appearanceCritical:pb,sizeXsmall:hb,sizeSmall:mb,sizeMedium:bb,sizeLarge:vb,sizeXlarge:Sb,Abbr:fb};function ko({children:e,size:o,emphasized:n,subdued:t,appearance:a,role:i,style:s,id:c}){const l=S(_e.Text,n&&_e.emphasized,n&&Ce,t&&_e.subdued,t&&Ae,o&&_e[h("size",o)],a&&_e[h("appearance",a)],a&&a==="accent"&&$e,s&&Z[s]),u=n?r("strong",{children:e}):e,d={className:l,id:c};if(typeof i=="string")switch(i){case"address":return r("address",{...d,children:u});case"deletion":return r("del",{...d,children:u});default:throw new pe("Invalid Text’s role")}if(typeof i=="object")switch(i.type){case"abbreviation":return r("abbr",{defaultProps:d,className:S(l,_e.Abbr),title:i.for,children:u});case"directional-override":return r("bdo",{...d,dir:i.direction,children:u});case"datetime":return r("time",{...d,dateTime:i.machineReadable,children:u});default:throw new pe("Invalid Text’s role")}return r(n?"strong":"span",{...d,children:e})}const Bb="UOOjT",yb="uXhbj",Ln={Truncate:Bb,variationEllipsis:yb};function lt({children:e,variation:o="ellipsis"}){return r("span",{className:S(Ln.Truncate,o&&Ln[h("variation",o)]),children:e})}const kb="zvnsh",Tb="XzyTi",Eb="kt285",xb="_8ky8x",Ib="fpvwY",O={Wrapper:kb,Label:Tb,"Label-positionInside":"LTf4Q","Label-onBackgroundSurfacePrimary":"_4C7ll","Label-onBackgroundSurfaceSecondary":"ZbP0Y","Label-onBackgroundSurfaceTertiary":"eeIkA","Label-positionOutside":"ukV2A","Label-isPlaceholder":"EESHa",Select:Eb,"Select-labelOutside":"jh8xU","Select-labelInline":"NSJFm","Select-backgroundTransparent":"a3I80","Select-backgroundSurfacePrimary":"ZAVmF",Selector:xb,"Selector-borderColorEmphasized":"IBq5Q","Select-backgroundSurfaceSecondary":"IdVUz","Select-backgroundSurfaceTertiary":"kyrIc","Select-borderNone":"HsEAL","Select-focusBorderFull":"rDBCs",hasError:Ib,"Select-focusBorderBlockEnd":"_3OFrW","Select-borderFull":"TxjZ0","Select-borderBlockEnd":"UvvoM","Select-borderColorEmphasized":"_5ZuhZ","Select-isDisabled":"VWkGa","Select-isReadOnly":"OA8Hj","Selector-separated":"JxZDR","Error-errorIndentationToText":"RbVkf"},Ge="",Pb=ve("Select");
23function Lb({id:e,name:o,label:n,options:t,value:a=Ge,disabled:i,readonly:s,required:c,error:l,autocomplete:u,placeholder:d,onChange:g}){const{controls:{background:p},select:{labelPosition:m="inside",background:b,border:v="full",borderColor:f="base",focusBorder:B="full",disclosureIcon:I="caretDown",disclosureIconSeparator:_=!0,typographyStyle:W,errorIndentation:D,errorTypographyStyle:N},label:{typographyStyle:A}}=Q(),$=Se(e,Pb),T=b||p||"surfaceTertiary",x=l&&r("span",{className:S(D&&O[h("Error-errorIndentation",D)],N&&Z[N]),children:r(jo,{controlID:$,children:l})}),k=S(O.Select,!!l&&O.hasError,i&&O["Select-isDisabled"],s&&O["Select-isReadOnly"],O[h("Select-label",m)],O[h("Select-background",T)],O[h("Select-border",v)],O[h("Select-borderColor",f)],O[h("Select-focusBorder",B)],W&&Z[W]),P=r("label",{className:S(O.Label,O[h("Label-position",m)],{[O["Label-isPlaceholder"]]:a===Ge&&d===n},O[h("Label-onBackground",T)]),htmlFor:$,children:r(ko,{size:!(a===Ge&&d===n)||m==="inside"?"small":void 0,subdued:!0,style:A,children:r(lt,{children:n})})}),q=r("div",{children:[m==="outside"?P:null,r("div",{className:O.Wrapper,children:[m==="inside"&&P,r("select",{name:o,id:$,disabled:i,onChange:F=>g?.(F.target.value),required:c,value:a,className:k,"aria-describedby":l?Bo($):void 0,"aria-invalid":!!l,autoComplete:ct(u),children:[d&&(a===Ge||d!==n)&&r("option",{value:Ge,hidden:d===n,disabled:!0,children:d===n?r(U,{children:" "}):d}),t.map(F=>r("option",{value:F.value,disabled:F.disabled||s,children:F.label},F.value))]}),r("div",{className:S(O.Selector,_&&O["Selector-separated"],_&&O[h("Selector-borderColor",f)]),children:r(we,{source:I,size:"small"})})]})]});return r(fo,{spacing:"tight",children:[q,x]})}const Cb="AHJia",wb="nHtsq",Rb="_2xVXH",Cn={Separator:Cb,directionHorizontal:wb,directionVertical:Rb},wn={thin:"1px",medium:"3px",thick:"5px",xthick:"10px"};function Mb({width:e="thin",direction:o="horizontal"}){const n={horizontal:{borderBottomWidth:wn[e]},vertical:{borderRightWidth:wn[e]}};return r("div",{className:S(Cn.Separator,Cn[h("direction",o)]),style:n[o]})}const _b=De(!1),Nb="jeX3G",Ab="KIbI9",$b="_4T5X4",zb="V7LhS",Db="ZWtpk",Fb="_87JsI",Wb="JjQZa",Ob="N95rF",Hb="dI6aB",qb="EvsJm",Ub="D0Aw4",Xe={TextBlock:Nb,subdued:Ab,emphasized:$b,appearanceAccent:zb,appearanceSuccess:Db,appearanceWarning:Fb,a
23ppearanceCritical:Wb,sizeSmall:Ob,sizeMedium:Hb,sizeLarge:qb,sizeXlarge:Ub};function dt({children:e,size:o,emphasized:n,subdued:t,appearance:a,style:i,id:s}){const c=S(Xe.TextBlock,o&&Xe[h("size",o)],n&&Xe.emphasized,n&&Ce,t&&Xe.subdued,t&&Ae,a&&Xe[h("appearance",a)],a&&a==="accent"&&$e,i&&Z[i]),l=n?r("strong",{children:e}):e;return r(_b.Provider,{value:!0,children:r("p",{className:c,id:s,children:l})})}function ut(e){return!e||e===""}const gt=De(void 0);function jb(){const e=oo(gt);if(e==null)throw new pe("No labelled in context");return e}function Yb(){const e=w(!1);return R(()=>(e.current=!0,()=>{e.current=!1}),[]),e}const Vb="SxYag",Gb="j5nyn",Xb="nVJMC",Ne={Wrapper:Vb,"Label-positionInside":"fhPbt","Label-onBackgroundSurfacePrimary":"YSlfF","Label-onBackgroundSurfaceSecondary":"zCv2y","Label-onBackgroundSurfaceTertiary":"f4qYp","Label-isSubdued":"jir88","Label-positionOutside":"fjuC5",isFloating:Gb,Label:Xb};function Qb({children:e,label:o,htmlFor:n,isEmpty:t=!0,position:a="inside",background:i="surfaceTertiary",subdued:s}){const c=Yb(),[l,u]=Xr((v,f)=>{if(!c.current)return v;switch(f.type){case"focus":return{...v,isFocused:!0};case"blur":return{...v,isFloating:!v.isEmpty,isFocused:!1};case"change":return{...v,isFloating:!0,isEmpty:f.isEmpty};case"init":return{...v,isFloating:!f.isEmpty,isEmpty:f.isEmpty}}},{isEmpty:t,isFloating:!t,isFocused:!1});R(()=>{!l.isFocused&&l.isEmpty!==t&&u({type:"init",isEmpty:t})},[t]);const d=C(()=>u({type:"focus"}),[]),g=C(()=>u({type:"blur"}),[]),p=C(v=>u({type:"change",isEmpty:v}),[]),m=z(()=>({...l,onBlur:g,onChange:p,onFocus:d}),[g,p,d,l]),{label:{typographyStyle:b}}=Q();return r(gt.Provider,{value:m,children:r("div",{className:Ne.Wrapper,children:r("div",{className:S({[Ne.isFloating]:l.isFloating&&a==="inside"}),children:[r("label",{htmlFor:n,className:S(Ne.Label,Ne[h("Label-position",a)],s&&Ne["Label-isSubdued"],i&&Ne[h("Label-onBackground",i)]),children:r(ko,{size:"small",subdued:!0,style:b,children:r(lt,{children:o})})}),e]})})})}const pt=De(null);function ht(){const e=oo(pt);if(e===null)throw new pe("No Popper in context");return e}function Jb(){const[e,o]=M(null),n=C(t=>{t!==null&&o(t.getBoundingClientRect())},[]);return[e,n]}function Kb(e){const[o,n]=M(null),t=C(()=>{e!==null&&n(e.getBoundingClientRect())},[e]);return ho(()=>(t(),window.addEventListener("resize",t),window.addEventListener("scroll",t),()=>{window.removeEventListener("resize",t),window.removeEventListener("scroll",t)}),[t]),o}const Rn=10;function Zb({x:e,y:o}){const n=window.devicePixelRatio||1;return{x:Math.round(e*n)/n||0,y:Math.round(o*n)/n||0}}function ev(e,o,n,{offset:t=0,preventOverflow:a=!1,sameInlineSize:i=!1}={}){let s={x:0,y:0},c={left:0,right:0},l=0;if(!o||!n)return{offsets:s,clipping:c,spacing:l};const u=i?n.left:n.left+n.width/2-o.width/2,d=n.top+n.height/2-o.height/2;switch(e){case"blockStart":s={x:u,y:n.top-o.height-t};break;case"blockEnd":s={x:u,y:n.bottom+t};break;case"inlineStart":s={x:n.left-o.width-t,y:d};break;case"inlineEnd":s={x:n.right+t,y:d};break}return a&&(c=ov(s,o),c.right&&!c.left&&(s.x+=c.right,l=-Rn),!c.right&&c.left&&(s.x=0,l=Rn)),{offsets:s,clipping:c,spacing:l}}function ov(e,o){const n=document.documentElement.clientWidth,t=e.x+o.width;let a={left:0,right:0};return t>n&&(a={...a,right:n-t}),e.x<0&&(a={...a,left:-e.x}),a}const nv="_6ruy3",tv={Popper:nv};function rv({children:e,offset:o,placement:n="blockStart",preventOverflow:t,activator:a,sameInlineSize:i,minInlineSize:s}){const c=Kb(a),[l,u]=Jb(),{clipping:d,offsets:g,spacing:p}=z(()=>ev(n,l,c,{offset:o,preventOverflow:t,sameInlineSize:i}),[o,n,l,t,c,i]),m=z(()=>({clipping:d,offsets:g,placement:n,popperRect:l,referenceRect:c,spacing:p}),[d,g,n,l,c,p]),{x:b,y:v}=Zb({x:g.x+p+(window.scrollX||window.pageXOffset),y:g.y+(window.scrollY||window.pageYOffset)}),f=(window.devicePixelRatio||1)<2?`translate(${b}px, ${v}px)`:`translate3d(${b}px, ${v}px, 0)`;return r(pt.Provider,{value:m,children:r(st,{children:r("div",{className:tv.Popper,style:{...c&&{transform:f,MozTransform:f,WebkitTransform:f,...i&&{width:c.width},...s&&{minWidth:Yo(s)}}},ref:u,children:e})})})}const av="IbPNg",iv="nDyVA",sv="awl9J",cv="el1S2",lv="pLPLd",dv="RnX2a",uv="pmIGY",xe={Wrapper:av,Button:iv,Tooltip:sv,transitionEntered:cv,transitionExit:lv,transitionExiting:dv,Arrow:uv,"Tooltip-backgroundSurfacePrimary":"_3yAoT","Tooltip-backgroundSurfaceSecondary":"eY5YR","Tooltip-backgroundSurfaceTertiary":"e7NEz","Tooltip-opacityTranslucent":"_8ekQS","Tooltip-opacityOpaque":"i34YA","Tooltip-borderRadiusNone":"_2saX4","Tooltip-borderRadiusTight":"_9T8DA","Tooltip-borderRadiusBase":"x1Cux","Tooltip-borderRadiusFullyRounded":"PhMp8"},gv=ve("Tooltip");function pv({content:e,children:o}){const[n,t]=M(!1),a=w(null),i=w(!1),s=Uo(n,{exit:"base"});function c(d){switch(d.key){case"Enter":case"Space":d.preventDefault(),t(g=>!g);break;case"Escape":case"Esc":d.preventDefault(),t(!1);break}}const l=Se(void 0,gv),u=n?l:void 0;return r("div",{className:xe.Wrapper,children:[r("button",{type:"button",className:xe.Button,"aria-pressed":n,"aria-controls":u,"aria-describedby":u,onFocus:()=>{i.current||t(!0)},onBlur:()=>{i.current||t(!1)},onMouseEnter:()=>{i.current||t(!0)},onMouseLeave:()=>{t(!1)},onTouchStart:()=>{i.current=!0},onClick:()=>{t(d=>!d)},onKeyDown:c,ref:a,children:o}),s!=="exited"&&r(rv,{activator:a.current,preventOverflow:!0,children:r(hv,{content:e,id:u,onMouseEnter:()=>{i.current||t(!0)},onMouseLeave:()=>{t(!1)},transition:s})})]})}function hv({content:e,id:o,onMouseEnter:n,onMouseLeave:t,transition:a}){const{clipping:i,spacing:s}=ht(),{tooltip:{background:c,opacity:l="translucent",borderRadius:u="base",textAlignment:d="center"}}=Q(),g=(i.right||i.left)&&`calc(50% - ${(i.right||i.left)+s}px)`,p=S(xe.Tooltip,xe[h("transition",a)],xe[h("Tooltip-opacity",l)],xe[h("Tooltip-borderRadius",u)],c&&xe[h("Tooltip-background",c)]),m=d==="start"?"leading":d;return r("div",{id:o,role:"tooltip",onMouseEnter:n,onMouseLeave:t,className:p,style:{...g&&{transformOrigin:`${g} 120%`}},children:[r(So,{alignment:m,children:r(dt,{size:"small",children:e})}),r(mv,{})]})}function mv(){const{clipping:e,spacing:o}=ht(),n=(e.right||e.left)&&`calc(${document.dir==="ltr"?"-50":"50"}% - ${(e.right||e.left)+o}px)`,t=(window.devicePixelRatio||1)<2?`translate(${n}, 0)`:`translate3d(${n}, 0, 0)`;return r("div",{className:xe.Arrow,style:{...n&&{transform:t,MozTransform:t,WebkitTransform:t}}})}const bv="DH3Lj",vv="IwgL6",Sv="TBKkQ",fv="ks0iI",J={Wrapper:bv,Field:vv,"Field-isFloating":"_24ZCV","Field-hasTooltip":"PSuwk","Field-backgroundTransparent":"VpMLh","Field-backgroundSurfacePrimary":"pzNEy",Tooltip:Sv,"Field-backgroundSurfaceSecondary":"SN65D","Field-backgroundSurfaceTertiary":"rm2lq","Field-borderNone":"zp5Uq","Field-focusBorderFull":"ud1CI",hasError:fv,"Field-focusBorderBlockEnd":"ONy0r","Field-borderFull":"IbPFL","Field-borderBlockEnd":"K1c22","Field-borderColorEmphasized":"L9KMr","Error-errorIndentationToText":"_2Ei4t","Field-isDisabled":"QMBIY","Field-isReadOnly":"f8i8Y"},Bv=ve("TextField"),yv=Fo(function(o,n){const{controls:{background:t},textFields:{labelPosition:a,background:i,errorIndentation:s,errorTypographyStyle:c}}=Q(),l=i||t||"surfaceTertiary",{accessibilityDescription:u,error:d,id:g,label:p,tooltip:m,value:b}=o,v=Se(g,Bv),f=u?`${v}-description`:void 0,B=f?r(ze,{children:r(ko,{id:f,children:u})}):null,I=d&&r("span",{className:S(s&&J[h("Error-errorIndentation",s)],c&&Z[c]),children:r(jo,{controlID:v,children:d})}),_=m?r("div",{className:J.Tooltip,children:r(pv,{content:m.content,children:[r(ze,{children:m.label}),r(we,{source:"questionFill",size:"large",appearance:"subdued"})]})}):null;return r(fo,{spacing:"tight",children:[r(Qb,{label:p,htmlFor:v,isEmpty:ut(b),position:a,background:l,subdued:o.readonly,children:r("div",{className:J.Wrapper,children:[B,r(kv,{ref:n,...o,id:v,ariaDescribedBy:f}),_]})}),I]})}),kv=Fo(function({id:o,min:n,max:t,step:a,name:i,label:s,value:c,controlledValue:l,type:u="text",role:d,required:g,error:p,tooltip:m,autocomplete:b,autoF
23ocus:v,multiline:f,disabled:B,readonly:I,ariaActiveDescendant:_,ariaAutocomplete:W,ariaControls:D,ariaDescribedBy:N,ariaExpanded:A,onFocus:$,onBlur:T,onChange:x,onInput:k,onKeyDown:P},q){const F=w(),se=C(oe=>{typeof q=="function"?q(oe):q&&(q.current=oe),F.current=oe},[q]);R(()=>{v&&F.current?.focus()},[v]);const{controls:{background:ne},textFields:{labelPosition:te="inside",background:ce,border:le="full",borderColor:Ie="base",focusBorder:L="full",typographyStyle:E},label:{typographyStyle:G}}=Q(),ee=ce||ne||"surfaceTertiary",j=jb(),[ue,We]=Tv(l??c),To=S(J.Field,!!p&&J.hasError,!!m&&J["Field-hasTooltip"],j.isFloating&&te!=="outside"&&J["Field-isFloating"],B&&J["Field-isDisabled"],I&&J["Field-isReadOnly"],J[h("Field-background",ee)],J[h("Field-border",le)],J[h("Field-borderColor",Ie)],J[h("Field-focusBorder",L)],E&&Z[E],G&&Z[h("placeholder",G)]),Eo=[N,p&&Bo(o)].filter(Boolean).join(" ");return Qr(f?"textarea":"input",{id:o,min:n,max:t,step:a,name:i,placeholder:j.isFloating||te==="outside"?void 0:s,className:To,required:g,type:Ev(f?void 0:u),disabled:B,readOnly:I,"aria-activedescendant":_,"aria-autocomplete":W,"aria-controls":D,"aria-describedby":Eo,"aria-expanded":A,"aria-invalid":!!p,"aria-required":g,onBlur:({currentTarget:{value:oe}})=>{oe!==(c??"")&&x?.(oe),T?.(),j.onBlur()},onChange({currentTarget:{value:oe}}){We(oe),typeof k=="function"&&k(oe),j.onChange(ut(oe))},onFocus:()=>{$?.(),j.onFocus()},onKeyDown:P,ref:se,role:d,value:ue,autoComplete:ct(b),autoFocus:v})});function Tv(e){const[o,n]=M(e),t=w(e);let a=o;return t.current!==e&&(t.current=e,n(e),a=e),[a,n]}function Ev(e){return e==="telephone"?"tel":e}const xv="WD2BB",Iv="zBxYI",Pv="oZ7y8",Lv="BuLdd",Cv="_6g6G1",wv="mW6Tc",Rv="_29xdS",Mv="tTD6D",_v="VzRf2",Nv="_5v7xp",Av="CQtfp",$v="_3Pf9z",Qe={Tiles:xv,spacingNone:Iv,spacingXtight:Pv,spacingTight:Lv,spacingLoose:Cv,spacingXloose:wv,alignmentLeading:Rv,alignmentCenter:Mv,alignmentTrailing:_v,alignmentBaseline:Nv,doesNotWrap:Av,doesNotBreak:$v};function zv({children:e,maxPerLine:o,breakAt:n,alignment:t,spacing:a}){const i=S(Qe.Tiles,a&&Qe[h("spacing",a)],t&&Qe[h("alignment",t)],o?void 0:Qe.doesNotWrap,n?void 0:Qe.doesNotBreak),s=o?`${100/o}%`:"0",c=n?Yo(n):"0";return r(eo,{children:r("div",{className:i,style:{"--tile-width":s,"--tiles-breakpoint":c},children:e})})}function Dv(e,{publicProps:o,notifyError:n,extension:t}){const a=e.displayName??e.name,i=s=>{const c={},{children:l}=s;for(const d of o){const g=s[d];typeof g=="function"?c[d]=async function(...m){try{return await g.apply(this,m)}catch(b){n(new wa(`Error in ${a} component event handler: ${b}`,{cause:b}))}}:c[d]=g}const u=Wv(e,t,c);return r(e,{...u,children:l})};return i.displayName=`Extension(${a})`,i}const co=new WeakMap,Fv=new Set([ga,Ca]);function Wv(e,o,n){const{id:t}=n;if(t&&o&&Fv.has(e)){const{onOpen:a,onClose:i}=n;return{...n,onOpen:()=>{a?.(),co.has(o)||co.set(o,new Set),co.get(o)?.add(t)},onClose:()=>{i?.(),co.get(o)?.delete(t)}}}return n}function Ov({notifyError:e}){const o=(n,t)=>Dv(n,{publicProps:t,notifyError:e});return{Banner:o(Wp,["collapsible","iconHidden","status","title"]),BlockStack:o(fo,["alignment","spacing"]),Bookend:o(Zn,["alignment","leading","spacing","trailing"]),Button:o(nt,["disabled","loading","loadingLabel","onPress","plain","subdued","submit","to"]),ButtonGroup:o(Lh,[]),BuyerConsent:o(Bm,["checked","error","onChange","policy"]),CalloutBanner:o(Im,["alignment","background","border","spacing","title"]),Checkbox:o(rt,["accessibilityLabel","checked","disabled","error","id","name","onChange","value"]),Form:o(Cm,["disabled","implicitSubmit","onSubmit"]),FormLayout:o(Mm,[]),FormLayoutGroup:o(_m,[]),Heading:o(vo,["
23id","level","role"]),HeadingGroup:o(mo,[]),HiddenForAccessibility:o(yo,[]),Image:o(Wm,["aspectRatio","bordered","decorative","description","fit","loading","source","sources"]),InlineStack:o(tt,["alignment","spacing"]),Layout:o(Jm,["blockAlignment","inlineAlignment","maxInlineSize","media","sizes"]),Link:o(at,["external","id","onPress","to"]),Radio:o(rb,["accessibilityLabel","checked","disabled","id","name","onChange","value"]),Select:o(Lb,["autocomplete","disabled","error","id","label","name","onChange","options","placeholder","required","value"]),Separator:o(Mb,["direction","width"]),Spinner:o(ot,["color","size"]),Text:o(ko,["appearance","emphasized","id","role","size","subdued"]),TextBlock:o(dt,["appearance","emphasized","id","size","subdued"]),TextContainer:o(So,["alignment","spacing"]),TextField:o(yv,["autocomplete","error","id","label","multiline","name","onBlur","onChange","onFocus","onInput","required","tooltip","type","value"]),Tiles:o(zv,["alignment","breakAt","maxPerLine","spacing"]),View:o(eo,["blockPadding","inlinePadding"]),VisuallyHidden:o(ze,[])}}function Hv({input:e,scriptUrl:o,onError:n,onStopwatchMark:t,developmentMode:a,liveReload:i}){const[s,c]=M(!1),l=z(()=>Pa(t),[t]);ra("post-purchase",{pageWasPainted:s});const{client:u,observability:d}=me(),g=z(()=>Ov({notifyError(f){d.error(f)}}),[d]),p=w(null),m=w(null),b=z(()=>ss(g),[g]),v=C(()=>{const f=Kr();let B=!1,I=!1,_=null;p.current=f;const W=f.on("mount",()=>{W(),c(!0),l.mark("firstContentfulRenderCompleted")}),D=()=>{I||(I=!0,Zr(_))},N=()=>{B||(B=!0,W(),D(),m.current===N&&(m.current=null))};return m.current=N,(async()=>{let A="load",$=Date.now();const T=x=>{d.log("post_purchase_extension_lifecycle",`[PostPurchase] Extension ${A} ${x}`,{phase:A,status:x,duration:x==="started"?void 0:Date.now()-$})};try{const x=ya({createMessenger:ka(u,d)});if(_=x,T("started"),await x.load(o),B||(T("completed"),l.mark("loaded"),A="render",$=Date.now(),T("started"),await x.render("Checkout::PostPurchase::Render",f.receive,Object.keys(g),e),B))return;T("completed"),l.mark("initialRenderCompleted"),A="setup",$=Date.now(),T("started");async function k(){a&&(N(),c(!1))}Jr(x,{reload:k}),a&&i&&La(i,k),T("completed")}catch{if(B)return;T("failed"),N(),n?.()}})(),W},[]);return R(()=>()=>{m.current?.()},[]),R(()=>{if(!s)return v()},[s,v]),!s||!p.current?null:r(ns,{controller:b,receiver:p.current})}const qv={id:"56603286faf7c2fc6279ae9d974501bd8ada653472e6a1cb5f0cc17e51ce66f7",type:"mutation",name:"PostPurchaseDone",source:""};function mt(e){const{client:o,checkout:n,observability:t,graphql:{coreGraphql:a}}=me(),i=n.latestReceipt.value,s=o.unstable_getSerialization("sessionToken"),{postPurchaseInquiryStatus:c}=aa(),l=C(()=>{c.value="done"},[c]);return async u=>{const d=Date.now(),g=(p,m,b=d)=>{t.log("post_purchase_done_lifecycle",`[PostPurchase] Done ${p} ${m}`,{trigger:u,phase:p,status:m,duration:m==="started"?void 0:Date.now()-b})};if(g("started","started"),i?.status!=="processed"||!s){g("completed","skipped");return}if(i.redirectUrl)g("receipt_poll","skipped");else{const p=Date.now();g("receipt_poll","started",p);const{data:m,error:b}=await a.staticQuery(pa,{cache:!1,variables:{receiptId:i.id,sessionToken:s}});if(g("receipt_poll",b?"failed":"completed",p),!b&&m?.receipt?.__typename==="ProcessedReceipt"){const v=Ra(m.receipt,{});n.unstable_overwriteLatestReceipt(v)}}a.mutate(qv,{variables:{receiptId:i.id,sessionToken:s}}),g("mutation_dispatched","completed"),e?.onComplete?.(),e?.wait&&await Nn(500),l(),g("completed","completed")}}function Uv(){const e=ha(),o=e.configuration.colors,n=o.global,t=o.schemes?.scheme1,a=o.schemes?.scheme2,s=t?.control?.background!=null&&Qo(t.control.background)||a?.control?.background!=null&&Qo(a.control.background)?"transparent":"color3";return z(()=>Za({colors:{primaryAction:{background:V(n?.brand)},secondaryAction:{foreground:V(n?.brand)},tertiaryAction:{},interactive:{foreground:V(n?.accent)},info:{accent:V(n?.info)},success:{accent:V(n?.success)},warning:{accent:V(n?.warning)},critical:{accent:V(n?.critical)},canvas:{background:V(t?.base?.background),foreground:V(t?.base?.text),accent:V(t?.base?.accent)},surfacePrimary:{background:V(t?.base?.background),foreground:V(t?.base?.text),accent:V(t?.base?.accent)},surfaceSecondary:{background:V(a?.base?.background),foreground:V(a?.base?.text),accent:V(a?.base?.accent)},surfaceTertiary:{},color1:{},color2:{}},typographyPrimary:e.configuration.typographyPrimary??{},typographySecondary:e.configuration.typographySecondary??{},controls:{background:s},textFields:e.configuration.textField??{},select:e.configuration.select??{},optionList:{background:s},reviewBlock:{background:s}}),[s,e.configuration.select,e.configuration.textField,e.configuration.typographyPrimary,e.configuration.typographySecondary,n,t,a])}function V(e){if(!(typeof e>"u"))return[e.h,e.s,e.l]}
23class jv extends Error{constructor(o){super(o??"Post purchase page failed to render due to missing receipt"),this.name="PostPurchaseMissingProcessedReceiptError"}}const Yv=$n(({checkout:e,client:o,graphql:{coreGraphql:n},observability:t},{developmentOptions:a})=>{const i=o.unstable_getSerialization("sessionToken"),s=Le(()=>e.latestReceipt.value?.id),c=Le(()=>e.latestReceipt.value?.status!=="processed"||!i),l=n.query(Dn,{variables:()=>({input:{forRender:{receiptId:s.value,sessionToken:i,developmentOptions:a}}}),skip:()=>c.value});let u=!1;return zo(()=>{const d=e.latestReceipt.value;if(!c.value||u)return;const g=setTimeout(()=>{t.error(new jv,{severity:"error",metadata:{app:{receiptId:d?.id,receiptStatus:d?.status,typeofReceipt:typeof d,typeofSessionToken:typeof i}}}),u=!0},2e3);return()=>{clearTimeout(g)}}),{data:l.data,error:l.error,invalidResult:Le(()=>c.value||!!l.error.value||l.data.value?.postPurchaseData.__typename==="PostPurchaseDataFailed"),loading:l.loading}}),Vv={errors:[{code:"payment_required",message:"Timed out while processing the 3DS challenge modal."}],status:"partially_processed"},Gv={errors:[{code:"payment_required",message:"Timed out while processing the payment."}],status:"partially_processed"};function p1(){const{checkout:e,observability:o}=me(),n=e.latestReceipt.value,t=mt();fa({stage:Ba.Complete,id:"PostPurchase"});const{developmentOptions:a}=Wo(),{data:i,error:s,invalidResult:c,loading:l}=zn(Yv,{developmentOptions:a});if(R(()=>{c.value&&(s.value&&o.log("post_purchase_graphql_request_failed","Post purchase GraphQL request failed with error",{error:s.value.message,receiptId:n?.id,receiptStatus:n?.status}),i.value?.postPurchaseData.__typename==="PostPurchaseDataFailed"&&o.log("post_purchase_graphql_request_failed",`Post purchase GraphQL request failed with code: "${i.value.postPurchaseData.code}"`,{data:JSON.stringify(i.value.postPurchaseData),receiptId:n?.id,receiptStatus:n?.status}),t("invalid_data"))},[t,c.value,s.value,i.value,o,n]),l.value||!i.value||c.value)return null;const u=i.value.postPurchaseData;return r(Xv,{data:u})}function Xv({data:e}){const{checkout:o,shop:n,source:t,i18n:a,observability:i}=me(),s=Uv(),c=$i(),{developmentMode:l,liveReload:u}=Wo(),d=ea(()=>_i(o.latestReceipt.value)),g=z(()=>({app:e.appId}),[e.appId]),[p,m]=M(Date.now()),b=z(()=>new oa({locale:a.locale,currency:a.currency,timeZone:a.timeZone},{close:a.translate("post_purchase.components.close"),expand:a.translate("post_purchase.components.expand"),submit:a.translate("post_purchase.components.submit"),processing:a.translate("post_purchase.components.processing"),subscription:{cancelled:a.translate("payment.subscription_agreement_cancelled"),agreement:a.translate("payment.subscription_agreement_label"),policy:a.translate("shop_policies.subscription_policy")}}),[a]),v=z(()=>b.translate.bind(b),[b]),f=z(()=>Ta({extensionId:e.appId,sourceId:t.sourceId}),[e.appId,t.sourceId]),B=mt({onComplete:f.delete,wait:!!n.postPurchase.additionalTrackingScript}),I=C(()=>B("extension"),[B]),_=C(()=>B("header"),[B]),W=z(()=>f.read(),[f]),D=z(()=>JSON.parse(e.inputData),[e.inputData]),[N,A]=M(void 0),$=ma({source:N,logMessage:"[PostPurchase] Action required modal iframe loaded; this does not prove issuer challenge rendered",telemetryContext:{modalSourceType:"post_purchase_three_ds_modal_url"}}),[T,x]=M(void 0);R(()=>{if(T)return window.addEventListener("message",T),()=>window.removeEventListener("message",T)},[T]);const k=C(()=>{A(void 0),x(void 0)},[]),P=w(mn()),q=C(()=>{P.current=mn()},[]),F=n.hasFlagEnabled(ia),se=C(()=>{try{if(typeof window?.PAYPAL?.asyncData?.initAndCollect=="function")window.PAYPAL.asyncData.initAndCollect();else throw new Mo("PayPal global is not available")}catch(L){const E=L instanceof Error?L.message:`${L}`;i.error(new Mo(E,{cause:L}),{severity:"error",errorClass:Mo.name})}},[i]),ne=C((L,E)=>(A(L.redirectUrl),new Promise(G=>{const ee=setTimeout(()=>{k(),G({...Vv,changesetApplicationsRemaining:L.changesetApplicationsRemaining})},ba),j=async({data:ue})=>{if(ue.type===va){clearTimeout(ee),k();const We=await c.appliedChangeset(E);m(Date.now()),G(We)}};x(()=>j)})),[c,k]),te=C(async(L,E)=>{let G=Date.now(),ee=0,j=L,ue=!1;for(;!ue;){if(Li(j))j=await ne(j,E),ee=0,G=Date.now();else if(Ci(j))ee+=1,await Ri(ee),j=await c.appliedChangeset(E);else break;ue=Pi<=Date.now()-G}return ue?(i.counter({name:"PostPurchase_page_async_payment_polling_timeout",value:1,attributes:g}),{...Gv,changesetApplicationsRemaining:L.changesetApplicationsRemaining}):(ee>0&&i.histogram({name:"PostPurchase_page_async_payment_polling_duration",value:Date.now()-G,attributes:g}),m(Date.now()),j)},[c,ne,i,g]),ce=C(async(L,E)=>{let G=E;F&&d.value&&(se(),G={...E,paymentGatewaySessionId:P.current});const ee=await c.applyChangeset(L,G);return q(),te(ee,L)},[c,F,d,q,se,te]),le=C(({mark:L,timestamps:E={}})=>{switch(L){case"loaded":{L==="loaded"&&E.loaded&&i.histogram({name:"PostPurchase_page_sandbox_duration",value:E.loaded,attributes:g});break}case"initialRenderCompleted":{E.initialRenderCompleted&&E.loaded&&i.histogram({name:"PostPurchase_page_initial_render_duration",value:E.initialRenderCompleted-E.loaded,attributes:g});break}case"firstContentfulRenderCompleted":E.firstContentfulRenderCompleted&&E.loaded&&i.histogram({name:"PostPurchase_page_first_contentful_render",value:E.firstContentfulRenderCompleted-E.loaded,attributes:g}),window.performance&&i.histogram({name:"PostPurchase_page_time_to_first_render",value:performance.now(),attributes:g})}},[i,g]),Ie=C(()=>{i.counter({name:"PostPurchase_page_uncaught_client_error",value:1,attributes:g}),B("extension_error")},[B,i,g]);return r(Zi,{onHeaderClick:_,children:[r(Sa,{source:N,title:a.translate("processing.action_required"),onIframeLoad:$}),r(_a,{translate:v,shop:n,children:r(xi,{theme:s,children:r(Hv,{developmentMode:l,onStopwatchMark:le,onError:Ie,scriptUrl:e.scriptUrl,liveReload:u,input:{done:I,locale:a.locale,inputData:D,applyChangeset:ce,calculateChangeset:c.calculateChangeset,extensionPoint:"Checkout::PostPurchase::Render",version:"unstable",storage:{initialData:W,update:f.write}}})})}),r(na,{when:d,children:r(Qi,{shopId:D.shop.id,checkoutSessionIdentifier:D.initialPurchase.referenceId,paymentGatewaySessionId:P.current,fraudnetMultioffersEnabled:F})}),r(Yi,{lastChangeTimestamp:p})]})}export{Xv as PostPurchaseInner,p1 as default};

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.