Loading
function(a,e,t){t.d(e,{DJ:()=>R,Jg:()=>L,KT:()=>T,lo:()=>I,oH:()=>y,s3:()=>b});var l=t(627968),n=t(64700),i=t(503698),r=t.n(i),s=t(20742),c=t(364840),o=t(331322),h=t(224640),d=t(430993),u=t(289873),m=t(231723),p=t(632088),x=t(500380),E=t(423764),j=t(683433),C=t(981036),v=t(725836),A=t(520149),g=t(652215),f=t(857414);function b(a){let{gradientColor:e,title:t,headerBadgeVariant:i="expressive",headerBadgeText:r,headerBadgeIcon:c,countryCode:o,relocationCountryCode:h,...d}=a,u=n.useCallback(()=>null==o?null:(0,l.jsx)("img",{alt:"",className:f.bI,src:(0,x.t)(o)}),[o]),m=n.useMemo(()=>{if(null!=r)return{icon:c,type:{text:r??""},variant:i}},[r,c,i]),p=null!=o&&null!=h,j=n.useMemo(()=>{if(!p&&null!=o)return{text:(0,E.j7)((0,E.ni)(o)),leadingIcon:u}},[p,o,u]);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(s.rQ,{...d,badge:m,badgePosition:"end",gradientColor:e,titleTextVariant:"heading-lg/semibold",alignCenter:!1,title:t,subtitle:j}),p&&(0,l.jsx)(A.w,{countryCode:o,relocationCountryCode:h})]})}let M={top:16,bottom:8};function I(a){let{onBackClick:e,primaryButtonProps:t,portalClassName:n}=a,{variant:i}=t,{setCheckoutFooterContentNode:s}=(0,v.ck)();return(0,l.jsxs)(c.j,{children:[(0,l.jsx)("div",{ref:s,className:r()(f.K4,n)}),(0,l.jsxs)(o.B,{direction:"horizontal",align:"center",justify:null!=e?"space-between":"end",fullWidth:!0,padding:M,children:[null!=e?(0,l.jsx)(j.A,{onClick:e}):null,(0,l.jsx)(C.p,{...t,variant:i??"active",autoFocus:!0})]})]})}function R(a){let{className:e}=a;return(0,l.jsx)("div",{className:r()(f.g4,e),children:(0,l.jsx)(u.y,{type:u.y.Type.PULSING_ELLIPSIS,itemClassName:f.Je})})}function L(a){let{children:e,size:t="md",maxHeight:n="viewport",isModalContentLoading:i,...r}=a;return(0,l.jsx)(v.e0,{children:(0,l.jsx)(h.d,{size:t,...r,maxHeight:n,contentOutsideContainer:(0,l.jsx)(p.A,{}),children:i?(0,l.jsx)(R,{}):e})})}function T(){return(0,l.jsx)(L,{transitionState:m.ip.ENTERED,onClose:g.tEg,size:"md",isModalContentLoading:!0})}function y(a){let{title:e,gradientColor:t="purple",countryCode:n,relocationCountryCode:i,headerBadgeText:r,headerBadgeIcon:s,onBackClick:c,primaryButtonProps:o,children:u,...m}=a;return(0,l.jsx)(v.e0,{children:(0,l.jsxs)(h.d,{...m,children:[(0,l.jsx)(b,{gradientColor:t,title:e,countryCode:n,relocationCountryCode:i,headerBadgeText:r,headerBadgeIcon:s}),(0,l.jsx)(d.c,{children:u}),(0,l.jsx)(I,{onBackClick:c,primaryButtonProps:o})]})})}}