Build 582977stable
Module 580133
774 characters · in 0c7bb03f35ecce71.jsDependencies
Source Raw
function(e,t,n){n.d(t,{f:()=>p,l:()=>m});var l=n(627968),i=n(64700),r=n(725836),a=n(364995),s=n(883645),o=n(427675),u=n(316915),c=n(584160),d=n(480642);function p(e){let{headerBadgeConfig:t}=e,{selectedSkuId:n,paymentSourceId:r}=(0,u.t4)(e=>({selectedSkuId:e.selectedSkuId,paymentSourceId:e.paymentSourceId})),p=(0,o.S3)(),m=(0,s.s2)(),{checkoutPaymentSources:h,storeCountry:C}=(0,a.t)(),E=i.useMemo(()=>{if(null==r)return null;let e=h.find(e=>e.id===r);return null==e?null:e.relocationCountry??null},[h,r]),f=i.useMemo(()=>(0,c.u)({step:m??void 0,skuId:n??(null!=p?p.id:null),storeCountryFromCheckoutContext:C,relocationCountry:E,...t}),[m,p,n,C,E,t]);return(0,l.jsx)(d.s3,{...f})}function m(){let{setCheckoutHeaderElementNode:e}=(0,r.ck)();return(0,l.jsx)("div",{ref:e})}}