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]=`256c84d2-f6f1-4c52-a660-bb7b4eaf80da`,e._sentryDebugIdIdentifier=`sentry-dbid-256c84d2-f6f1-4c52-a660-bb7b4eaf80da`)}catch{}import{o as e}from"./rolldown-runtime-eb2nym32.js";import{st as t}from"./xds-react-components-lks62tbl.js";import{Ag as n,Fg as r,Ig as i,th as a}from"./entry.client-dr7r6s9a.js";import{m as o,n as s,o as c,r as l,s as u,t as d}from"./Spinner-mrd5j1i8.js";import{t as f}from"./pidlsdk.resource.helpers.module-lmygf733.js";import{t as p}from"./PaymentInstrumentShell-b1pcior5.js";var m=e(i(),1),h=r(),g=f(),_=n(),v=e=>{let n=(0,h.c)(19),{getLogger:r}=a(),i,f;n[0]===r?f=n[1]:(f=new l(r),n[0]=r,n[1]=f),i=f;let g=i,v;n[2]===Symbol.for(`react.memo_cache_sentinel`)?(v=[],n[2]=v):v=n[2],(0,m.useEffect)(y,v);let b;n[3]===Symbol.for(`react.memo_cache_sentinel`)?(b=`flex,h-full,flex-col,overflow-y-auto,sbar,p-layout-vertical-related-content-in-a-section-tight,[&_#pidlddc-div-xboxBillingAddressPage1SequenceTopGroup]:flex-1,[&_#pidlddc-div-xboxBillingAddressPage1SequenceTopGroup]:flex-col,[&_#pidlddc-div-xboxBillingAddressPage1SequenceTopGroup]:gap-internal-gap-regular,[&_#pidlddc-div-addressInlineGroup]:flex-col,[&_#pidlddc-div-addressInlineGroup]:gap-internal-gap-regular,[&_#pidlddc-div-cityStateInlineGroup]:flex-col,[&_#pidlddc-div-cityStateInlineGroup]:gap-internal-gap-regular,[&_#pidlddc-div-postalCountryStandaloneGroup]:flex-col,[&_#pidlddc-div-postalCountryStandaloneGroup]:gap-internal-gap-regular,[&_#pidlddc-button-group-displayId]:flex,[&_#pidlddc-button-group-displayId]:flex-col,[&_#pidlddc-button-group-displayId]:gap-internal-gap-regular,[&_#pidlddc-button-group-id]:flex,[&_#pidlddc-button-group-id]:flex-col,[&_#pidlddc-button-group-id]:gap-internal-gap-regular,[&_#pidlddc-div-pagebodycontents]:flex-1,[&_#pidlddc-div-pagebodycontents]:flex-col,[&_.d-none]:hidden,[&_.pidlddc-div-group]:flex,[&_.pidlddc-div-pagebodycontents]:gap-internal-gap-regular,[&_#pidlddc-div-footerDonePreviousBillingGroup]:flex-col,[&_#pidlddc-div-footerDonePreviousBillingGroup]:gap-internal-gap-tight,[&_#pidlddc-div-donePreviousButtonBillingGroup]:gap-internal-gap-tight,[&_button]:w-full,[&_img[id^='pidlddc-image-addNewAddressLink']]:me-internal-gap-tight,[&_img[id^='pidlddc-image-addNewAddressLink']]:h-icon-body,[&_img[id^='pidlddc-image-addNewAddressLink']]:rounded,[&_#pidlddc-div-pagesubmitblock]:gap-internal-gap-tight,[&_#pidlddc-div-suggestBlockUserEnteredV2]:flex,[&_#pidlddc-div-suggestBlockUserEnteredV2]:flex-col,[&_#pidlddc-div-suggestBlockUserEnteredV2]:gap-internal-gap-regular,[&_#pidlddc-div-addressEnteredOnlyTradeAVSV2Group]:flex,[&_#pidlddc-div-addressEnteredOnlyTradeAVSV2Group]:flex-col,[&_#pidlddc-div-addressEnteredOnlyTradeAVSGroup]:flex,[&_#pidlddc-div-addressEnteredOnlyTradeAVSGroup]:flex-col,[&_#pidlddc-div-suggestBlockUserEnteredV2]:mb-layout-vertical-group-of-items-regular,[&_#pidlddc-div-suggestBlockV2]:flex,[&_#pidlddc-div-suggestBlockV2]:flex-col,[&_#pidlddc-div-suggestBlockV2]:gap-internal-gap-regular`.split(`,`),n[3]=b):b=n[3];let x=b.join(` `),S;n[4]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,_.jsx)(d,{}),n[4]=S):S=n[4];let C;n[5]===Symbol.for(`react.memo_cache_sentinel`)?(C={"x-ms-flight":`PXRemoveJarvisHeadersFromSubmitUrl`},n[5]=C):C=n[5];let w;n[6]===e?w=n[7]:(w=t=>e.onSuccess(t.instance.id),n[6]=e,n[7]=w);let T;n[8]!==e.authToken||n[9]!==e.market||n[10]!==e.locale||n[11]!==e.onCancel||n[12]!==e.onError||n[13]!==g||n[14]!==w?(T=(0,_.jsx)(s,{children:(0,_.jsx)(t,{className:x,children:(0,_.jsx)(c,{authToken:e.authToken,busyBlockElement:S,country:e.market,language:e.locale,elementFactory:g,partner:`playxbox`,headers:C,onCancel:e.onCancel,onFailure:e.onError,onSuccess:w,scenario:o.billing,mode:u.Select})})}),n[8]=e.authToken,n[9]=e.market,n[10]=e.locale,n[11]=e.onCancel,n[12]=e.onError,n[13]=g,n[14]=w,n[15]=T):T=n[15];let E;return n[16]!==e.backgroundUrl||n[17]!==T?(E=(0,_.jsx)(p,{backgroundUrl:e.backgroundUrl,children:T}),n[16]=e.backgroundUrl,n[17]=T,n[18]=E):E=n[18],E};function y(){(0,g.initializeResources)()}export{v as t};