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]=`dd32172a-4168-4ead-b4b1-defa0e48f73d`,e._sentryDebugIdIdentifier=`sentry-dbid-dd32172a-4168-4ead-b4b1-defa0e48f73d`)}catch{}import{o as e}from"./rolldown-runtime-eb2nym32.js";import{Ag as t,Fg as n,Ig as r,th as i}from"./entry.client-dr7r6s9a.js";import{t as a}from"./Fingerprinting-bseize2n.js";import{f as o,n as s,r as c,t as l}from"./Spinner-mrd5j1i8.js";var u=n(),d=e(r(),1),f=t(),p=e=>{let t=(0,u.c)(37),{getLogger:n}=i(),r,p;t[0]===n?p=t[1]:(p=new c(n),t[0]=n,t[1]=p),r=p;let m=r,[h,g]=(0,d.useState)(null),[_,v]=(0,d.useState)(!1),y;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(y=e=>g(e),t[2]=y):y=t[2];let b=y,x,S;t[3]!==e.requiresFingerprinting||t[4]!==e.returnOptions.callbacks||t[5]!==h||t[6]!==_?(x=()=>{e.requiresFingerprinting&&h&&_&&e.returnOptions.callbacks?.success?.(h)},S=[e.returnOptions.callbacks,h,_,e.requiresFingerprinting],t[3]=e.requiresFingerprinting,t[4]=e.returnOptions.callbacks,t[5]=h,t[6]=_,t[7]=x,t[8]=S):(x=t[7],S=t[8]),(0,d.useEffect)(x,S);let C=e.session.challengeStatus,w=e.session.challengeScenario,T=e.session.challengeWindowSize,E;t[9]!==e.session||t[10]!==C||t[11]!==w||t[12]!==T?(E={...e.session,challengeStatus:C,challengeScenario:w,challengeWindowSize:T},t[9]=e.session,t[10]=C,t[11]=w,t[12]=T,t[13]=E):E=t[13];let D;t[14]!==e.requiresFingerprinting||t[15]!==e.returnOptions?(D=e.requiresFingerprinting?{...e.returnOptions,callbacks:{...e.returnOptions.callbacks,success:b}}:e.returnOptions,t[14]=e.requiresFingerprinting,t[15]=e.returnOptions,t[16]=D):D=t[16];let O;t[17]===e.authToken?O=t[18]:(O={authToken:e.authToken,userId:`me`},t[17]=e.authToken,t[18]=O);let k;t[19]===Symbol.for(`react.memo_cache_sentinel`)?(k={containerId:`bankChallengeContainer`},t[19]=k):k=t[19];let A;t[20]===e.cV?A=t[21]:(A={contextData:{cvInitValue:e.cV,partnerName:`playxbox`}},t[20]=e.cV,t[21]=A);let j;t[22]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,f.jsx)(l,{}),t[22]=j):j=t[22];let M;t[23]!==E||t[24]!==D||t[25]!==O||t[26]!==A||t[27]!==e.containerRef||t[28]!==m?(M=(0,f.jsx)(s,{children:(0,f.jsx)(`div`,{id:`bankChallengeContainer`,className:`relative flex h-full justify-center`,children:(0,f.jsx)(o,{paymentSessionOrData:E,env:`prod`,returnOptions:D,userContext:O,displayOptions:k,telemetryOptions:A,containerRef:e.containerRef,busyBlockElement:j,elementFactory:m})})}),t[23]=E,t[24]=D,t[25]=O,t[26]=A,t[27]=e.containerRef,t[28]=m,t[29]=M):M=t[29];let N;t[30]!==h?.id||t[31]!==e?(N=(h?.id||e.session.id)&&(0,f.jsx)(a,{sessionId:h?.id||e.session.id,onFingerprintingDone:()=>v(!0)}),t[30]=h?.id,t[31]=e,t[32]=N):N=t[32];let P;return t[33]!==e.shell||t[34]!==M||t[35]!==N?(P=(0,f.jsxs)(e.shell,{children:[M,N]}),t[33]=e.shell,t[34]=M,t[35]=N,t[36]=P):P=t[36],P};export{p as t};