Loading
function(e,t,n){var l=n(477900),o=n(582128),i=n(503698),r=n.n(i),u=n(683071),a=n(725836),s=n(176702),c=n(580133),d=n(169797),C=n(744615);n(652215);var p=n(379912),h=n(792996),m=n(66414);function f(e){let{className:t,shouldShowUnifiedHeader:n,headerBadgeConfig:o}=e;return(0,l.jsxs)(l.Fragment,{children:[n?(0,l.jsx)(a.UY,{children:(0,l.jsx)(c.f,{headerBadgeConfig:o})}):null,(0,l.jsx)(d.DJ,{className:r()(m.g4,t)})]})}function E(e){return null!=e&&"object"==typeof e&&"message"in e&&"type"in e?(0,l.jsx)(u.w,{type:e.type,hidden:e.hidden,message:e.message,role:e.role},e.key):(0,l.jsx)(o.Fragment,{children:e.directContent},e.key)}function _(e){return null==e||""===e}function A(e){let{children:t,showUpperNoticesAboveGlobalNotices:n=!1}=e,{errorMessage:i,richNotices:r}=(0,s.u)(),a=o.useRef(null);return o.useEffect(()=>{_(i)||null==a.current||a.current.scrollIntoView({behavior:"smooth"})},[i]),o.useMemo(()=>{if(!(!_(i)||r.length>0||null!=t))return null;let e=(0,l.jsxs)(l.Fragment,{children:[_(i)?null:(0,l.jsx)(u.w,{type:"critical",message:i,role:"alert"}),r.map(E)]});return(0,l.jsx)("div",{ref:a,className:m.dD,children:n?(0,l.jsxs)(l.Fragment,{children:[t,e]}):(0,l.jsxs)(l.Fragment,{children:[e,t]})})},[i,r,t,n])}function g(e){return o.useMemo(()=>null==e?null:Array.isArray(e)?0===e.length?null:(0,l.jsx)(l.Fragment,{children:e.map(e=>E(e))}):null!=e?E(e):null,[e])}function y(e){let{footerInlineNoticeProps:t}=e,n=g(t);return null==n?null:(0,l.jsx)("div",{className:m.Uu,children:n})}function T(e){let{upperInlineNoticeProps:t,shouldShowGlobalNotices:n,showUpperNoticesAboveGlobalNotices:i}=e,r=g(t);return o.useMemo(()=>null!=r||n?n?null!=r?(0,l.jsx)(A,{showUpperNoticesAboveGlobalNotices:i,children:r}):(0,l.jsx)(A,{}):(0,l.jsx)("div",{className:m.dD,children:r}):null,[n,r,i])}function S(e){let{children:t}=e;return(0,l.jsx)("div",{className:m.uh,children:t})}n.d(t,{},{Ed:f,T_:function(e){let{upperInlineNoticeProps:t,upperInlineNoticeContent:n,planSelectContent:i,purchaseItemContent:u,subscriptionDetailsContent:s,isStepLoading:d,paymentMethodContent:E,invoiceSummaryContent:_,promotionalNoticeContent:A,tenantProvidesPromotionalNoticeContainer:g,legalContent:N,invoiceTotalDueLabel:O=h.intl.string(p.default.R0cZsM),invoiceTotalDueValue:k,shouldShowGlobalNotices:I,showUpperNoticesAboveGlobalNotices:v,footerInlineNoticeProps:x,footerInlineNoticeContent:w,headerBadgeConfig:F,className:P}=e,{setCheckoutFooterLineItemNode:j}=(0,a.ck)(),b=o.useMemo(()=>null==A?null:g?A:(0,l.jsx)(S,{children:A}),[A,g]);return d?(0,l.jsx)(f,{className:P,shouldShowUnifiedHeader:!0}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:r()(P,{[m.pg]:null==_}),children:[null!=n?n:(0,l.jsx)(T,{upperInlineNoticeProps:t,shouldShowGlobalNotices:I,showUpperNoticesAboveGlobalNotices:v}),i,null!=i&&null!=u&&(0,l.jsx)("div",{className:m.ls}),u,null!=s&&(0,l.jsx)("div",{className:m.P3,children:s}),(0,l.jsx)("div",{className:m.Jv,children:E}),null!=_&&(0,l.jsx)("div",{className:m.ZF,children:_})]}),(0,l.jsx)(a.UY,{children:(0,l.jsx)(c.f,{headerBadgeConfig:F})}),(0,l.jsxs)(a.bx,{children:[(0,l.jsx)("div",{ref:j}),null!=O&&null!=k&&(0,l.jsx)(C.Qf,{className:m.NR,label:O,value:k}),b,N,null!=w?w:(0,l.jsx)(y,{footerInlineNoticeProps:x})]})]})},Wl:y,iA:S,zJ:T})}