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