try{let e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`7edbe67e-fbda-4a60-86ab-476674b7cca1`,e._sentryDebugIdIdentifier=`sentry-dbid-7edbe67e-fbda-4a60-86ab-476674b7cca1`)}catch{}import"./rolldown-runtime-eb2nym32.js";import{Ag as e,Fg as t,eh as n,hn as r,ka as i,lh as a}from"./entry.client-dr7r6s9a.js";import{n as o}from"./dist-mh7lbneh.js";import{t as s}from"./gamepadUtils-rk5i47js.js";import{t as c}from"./PurchaseShell-bdt26dfl.js";var l=t(),u=e(),d=e=>{let t=(0,l.c)(29),{error:r,exit:s,cV:d}=e,{locSomethingWentWrong:p,locGenericErrorSubheading:m}=n(),{t:h}=a(`PurchaseError`),g;t[0]===p?g=t[1]:(g=p(),t[0]=p,t[1]=g);let _=g,v;t[2]===m?v=t[3]:(v=m(),t[2]=m,t[3]=v);let y=v;if(r instanceof i)_=r.title||_,y=r.description||y;else if(r.name===o.UserFailedChallenge){let e;t[4]===h?e=t[5]:(e=h(`An incorrect payment challenge response was provided.`,{shortKey:`failed_challenge_error`}),t[4]=h,t[5]=e),y=e}else if(r.name===`ErrorDuringPaymentComplete`){let e;t[6]===h?e=t[7]:(e=h(`Payment Unsuccessful`,{shortKey:`failed_async_purchase_error_title`}),t[6]=h,t[7]=e),_=e;let n;t[8]===h?n=t[9]:(n=h(`Something went wrong when we tried to complete your payment. Please try again.`,{shortKey:`failed_async_purchase_error`}),t[8]=h,t[9]=n),y=n}let b;t[10]===_?b=t[11]:(b=(0,u.jsx)(`h1`,{className:`text-noninteractive-content-primary-content type-display2`,children:_}),t[10]=_,t[11]=b);let x;t[12]===r.tags.code?x=t[13]:(x=(0,u.jsx)(`p`,{className:`text-noninteractive-content-primary-content type-subtitle2`,children:r.tags.code}),t[12]=r.tags.code,t[13]=x);let S;t[14]===d?S=t[15]:(S=d&&(0,u.jsx)(`p`,{className:`text-noninteractive-content-primary-content type-subtitle2`,children:d}),t[14]=d,t[15]=S);let C;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,u.jsx)(`div`,{className:`border-Color-Noninteractive-Content-Divider-Semi-Transparent-Medium/40 h-0 self-stretch border`}),t[16]=C):C=t[16];let w;t[17]===y?w=t[18]:(w=(0,u.jsx)(`p`,{className:`text-noninteractive-content-primary-content type-subtitle2`,children:y}),t[17]=y,t[18]=w);let T;t[19]!==b||t[20]!==x||t[21]!==S||t[22]!==w?(T=(0,u.jsx)(`div`,{className:`flex grow flex-row items-center justify-center`,children:(0,u.jsxs)(`div`,{className:`flex w-full flex-col items-start justify-center gap-4`,children:[b,x,S,C,w]})}),t[19]=b,t[20]=x,t[21]=S,t[22]=w,t[23]=T):T=t[23];let E;t[24]===s?E=t[25]:(E=(0,u.jsx)(f,{exit:s}),t[24]=s,t[25]=E);let D;return t[26]!==T||t[27]!==E?(D=(0,u.jsx)(c,{children:(0,u.jsx)(`div`,{className:`relative flex h-full flex-col justify-center lg-10:flex-row`,children:(0,u.jsxs)(`div`,{className:`flex w-full grow flex-col p-[24px] sm-10:p-[32px] lg-10:p-[48px] xl-10:p-[80px] density-high:xl-10:p-[48px]`,children:[T,E]})})}),t[26]=T,t[27]=E,t[28]=D):D=t[28],D},f=e=>{let t=(0,l.c)(7),{exit:i}=e,{locClose:a}=n(),o;t[0]===i?o=t[1]:(o=()=>i?.(),t[0]=i,t[1]=o),s(o);let c;t[2]===a?c=t[3]:(c=a(),t[2]=a,t[3]=c);let d;return t[4]!==i||t[5]!==c?(d=(0,u.jsx)(`div`,{className:`flex gap-[16px]`,children:(0,u.jsx)(r,{as:`button`,kind:`standard`,onPress:i,size:`large`,children:c})}),t[4]=i,t[5]=c,t[6]=d):d=t[6],d};export{d as default};