Build 533169stable
Module 422268
2,040 characters · in no known chunkDependencies
Source Raw
function(e,t,n){"use strict";n.d(t,{n:()=>m}),n(321073);var r=n(627968),i=n(64700),s=n(69882),a=n(104745),o=n(222707),l=n(340034),u=n(134638),c=n(927578),d=n(218075),_=n(692440),f=n(299301),p=n(985018),h=n(327105);let m=e=>{let{disabled:t,showFractionalPremiumBanner:n,fractionalPremiumInfo:m,isPremiumGroupPurchase:E,paymentRestrictionBannerType:g,invoiceError:A,unifiedPlainNoticeText:I,invoicePreview:T,invoicePreviewComponent:S,shouldShowPlanSelectAndPromoBanner:y,shouldRenderInvoicePreviewSubscriptionDetailsDirectly:v,newPlan:N,planId:C,priceOptions:R,premiumPlanOptions:O,unifiedSubscriptionDetailsNode:b,isInvoiceBilledImmediately:D,paymentSelectContent:L,currencySelectComponent:w,legalContent:M}=e,P=i.useMemo(()=>{let e=[];return n&&e.push({directContent:(0,r.jsx)(l.l$,{fractionalPremiumInfo:m}),key:"fractional-premium-notice"}),E&&e.push({type:"info",message:(0,o.Nn)(),key:"premium-group-purchase-notice"}),null!=g&&e.push({type:"warning",message:(0,d.i)(g),key:"payment-restriction-banner-notice"}),null!=A&&e.push({type:"critical",message:A.message,key:"invoice-error-notice"}),e},[E,g,A,n,m]),x=i.useMemo(()=>(0,c.l6)(R,T?.checkoutContext?.available_plans),[R,T]),k=i.useMemo(()=>y?(0,r.jsx)(a.P,{planSkuId:N.skuId}):null,[y,N.skuId]),U=(0,c.J$)(R.paymentSourceId),G=null,F=null;y?F=(0,r.jsx)(l.XH,{disabled:t,headingSubText:I,planOptions:O,selectedPlanId:C,showPlanStatusSubText:!0,priceOptions:x}):null!=T&&(G=(0,r.jsx)(u._,{type:f.N$.PREMIUM_SWITCH_PLAN,invoicePreview:T,subscriptionPlan:N,isPrepaidPaymentSource:U,isPremiumGroupPurchase:E,bottomSubText:I}));let V=v?S:(0,r.jsx)("div",{ref:b}),B=v?null:S;return(0,r.jsx)(s.T_,{shouldShowGlobalNotices:!0,upperInlineNoticeProps:P,paymentSelectContent:(0,r.jsxs)(r.Fragment,{children:[L,w]}),subscriptionDetailsContent:V,purchaseItemContent:G,planSelectContent:F,invoiceSummaryContent:B,legalContent:M,invoiceTotalDueLabel:D?p.intl.string(h.default.R0cZsM):p.intl.string(h.default["11g67A"]),invoiceTotalDueValue:null!=T?(0,_.U5)(T):void 0,promotionalNoticeContent:k})}}