Module 717925

2,528 characters · in f3eb0aec36f1c515.js
Dependencies
Source Raw
function(e,t,n){n.d(t,{E:()=>P,T:()=>I});var l=n(627968),a=n(64700),i=n(503698),r=n.n(i),s=n(683071),o=n(289873),u=n(459357),c=n(725836);n(321073);var d=n(349786),p=n(921925),m=n(506120),h=n(944355),C=n(848584),A=n(327105),E=n(375708),y=n(312867);let P=e=>{let{className:t}=e;return(0,l.jsx)("div",{className:r()(y.g4,t),children:(0,l.jsx)(o.y,{type:o.y.Type.PULSING_ELLIPSIS,itemClassName:y.Je})})},S=e=>null!=e&&"object"==typeof e&&"message"in e&&"type"in e?(0,l.jsx)(s.w,{type:e.type,hidden:e.hidden,children:e.message},e.key):(0,l.jsx)(a.Fragment,{children:e.directContent},e.key),_=e=>null==e||""===e,T=e=>{let{children:t}=e,{errorMessage:n,warningMessage:i,richNotices:r}=(()=>{let{errorMessage:e}=(0,p.e)({}),t=(0,m.P)(),n=(0,d.f)();return{errorMessage:e,warningMessage:t,richNotices:a.useMemo(()=>{let e=[];return null!=n&&e.push(n),e},[n])}})();return a.useMemo(()=>_(n)&&_(i)&&!(r.length>0)&&null==t?null:(0,l.jsxs)("div",{className:y.dD,children:[_(n)?null:(0,l.jsx)(s.w,{type:"critical",children:n}),_(i)?null:(0,l.jsx)(s.w,{type:"warning",children:i}),r.map(S),t]}),[n,i,r,t])},f=e=>a.useMemo(()=>null==e?null:Array.isArray(e)?0===e.length?null:(0,l.jsx)(l.Fragment,{children:e.map(e=>S(e))}):null!=e?S(e):null,[e]),N=e=>{let{upperInlineNoticeProps:t,shouldShowGlobalNotices:n}=e,i=f(t);return a.useMemo(()=>null!=i||n?n?null!=i?(0,l.jsx)(T,{children:i}):(0,l.jsx)(T,{}):(0,l.jsx)("div",{className:y.dD,children:i}):null,[n,i])},I=e=>{let{upperInlineNoticeProps:t,planSelectContent:n,purchaseItemContent:a,subscriptionDetailsContent:i,isStepLoading:s,paymentSelectContent:o,invoiceSummaryContent:d,promotionalNoticeContent:p,legalContent:m,invoiceTotalDueLabel:S=E.intl.string(A.default.R0cZsM),invoiceTotalDueValue:_,shouldShowGlobalNotices:T,footerInlineNoticeProps:I,className:x}=e,{enabled:g}=(0,u.c)({location:"UnifiedReviewStep"}),v=f(I);return s?(0,l.jsx)(P,{className:x}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:r()(x,{[y.pg]:null==d}),children:[(0,l.jsx)(N,{upperInlineNoticeProps:t,shouldShowGlobalNotices:T}),n,null!=n&&null!=a&&(0,l.jsx)("div",{className:y.ls}),a,null!=i&&(0,l.jsx)("div",{className:y.P3,children:i}),(0,l.jsxs)("div",{className:y.Jv,children:[o,g?(0,l.jsx)(h.Z4,{className:y.KX}):null]}),null!=d&&(0,l.jsx)("div",{className:y.ZF,children:d})]}),(0,l.jsxs)(c.bx,{children:[null!=S&&null!=_&&(0,l.jsx)(C.Qf,{className:y.NR,label:S,value:_}),null!=p?(0,l.jsx)("div",{className:y.uh,children:p}):null,m,null!=v?(0,l.jsx)("div",{className:y.Uu,children:v}):null]})]})}}