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]=`bc0968b4-b7e2-414f-be80-a54c8ce086d4`,e._sentryDebugIdIdentifier=`sentry-dbid-bc0968b4-b7e2-414f-be80-a54c8ce086d4`)}catch{}import{o as e}from"./rolldown-runtime-nx40z1zs.js";import{Ag as t,Um as n,jg as r,ng as i}from"./entry.client-mpghtlrl.js";import{ut as a}from"./xds-react-components-ihgca01z.js";import{m as o,n as s,o as c,r as l,s as u,t as d}from"./Spinner-bhkd19qw.js";import{t as f}from"./pidlsdk.resource.helpers.module-ifkm3kee.js";import{t as p}from"./PaymentInstrumentShell-ddd4dle6.js";var m=e(r(),1),h=t(),g=f(),_=i(),v=e=>{let t=(0,h.c)(19),{getLogger:r}=n(),i,f;t[0]===r?f=t[1]:(f=new l(r),t[0]=r,t[1]=f),i=f;let g=i,v;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(v=[],t[2]=v):v=t[2],(0,m.useEffect)(y,v);let b;t[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(`,`),t[3]=b):b=t[3];let x=b.join(` `),S;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,_.jsx)(d,{}),t[4]=S):S=t[4];let C;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(C={"x-ms-flight":`PXRemoveJarvisHeadersFromSubmitUrl`},t[5]=C):C=t[5];let w;t[6]===e?w=t[7]:(w=t=>e.onSuccess(t.instance.id),t[6]=e,t[7]=w);let T;t[8]!==e.authToken||t[9]!==e.market||t[10]!==e.locale||t[11]!==e.onCancel||t[12]!==e.onError||t[13]!==g||t[14]!==w?(T=(0,_.jsx)(s,{children:(0,_.jsx)(a,{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})})}),t[8]=e.authToken,t[9]=e.market,t[10]=e.locale,t[11]=e.onCancel,t[12]=e.onError,t[13]=g,t[14]=w,t[15]=T):T=t[15];let E;return t[16]!==e.backgroundUrl||t[17]!==T?(E=(0,_.jsx)(p,{backgroundUrl:e.backgroundUrl,children:T}),t[16]=e.backgroundUrl,t[17]=T,t[18]=E):E=t[18],E};function y(){(0,g.initializeResources)()}export{v as t};