1import{j as t}from"./vendor-motion-hRg_q8lq.js";import{e as j,b as v,d as A,r as y}from"./vendor-react-E98sgxjj.js";import{u as E,B as N,D as S,T,C as b}from"./index-BKzE8EQ8.js";import"./vendor-fa-Bn2dnpnC.js";import"./vendor-query-bOUN_gKe.js";function D(){const{t:c}=E("checkout"),n=j(),{lang:o}=v(),[e]=A(),{pendingPrompt:i,returnPath:u,gameId:m,checkoutType:a,clearPendingCheckout:d}=N(),p=y.useRef(!1);return y.useEffect(()=>{if(p.current)return;p.current=!0;const l=e.get("session_id")||"",r=u||e.get("return_to")||"",g=e.get("game_id"),h=m??(g?Number(g):null),f=a||e.get("type")||"",x=o||S,_=h?`/${x}/studio/${h}`:r&&!r.startsWith("/payment-success")?r:`/${x}/dashboard`,s=new URL(_,window.location.origin);s.searchParams.set("payment_success","1"),l&&s.searchParams.set("session_id",l),f&&s.searchParams.set("type",f);const P=i;d(),n(`${s.pathname}${s.search}`,{replace:!0,state:P?{prompt:P}:void 0})},[e,u,m,a,i,d,n,o]),t.jsx("div",{className:"flex min-h-screen items-center justify-center bg-background",children:t.jsxs("div",{className:"flex flex-col items-center gap-4",children:[t.jsx(T,{size:"lg",overlayColor:b}),t.jsx("p",{className:"text-sm text-muted-foreground",children:c(a==="credits"?"paymentSuccess.processingCredits":"paymentSuccess.processingSubscription")})]})})}export{D 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.