Module 421094

824 characters · in a22c66b66051e819.js
Dependencies
Required by (2)
Lazily required by (0)none
Lazily requires (0)none
Source Raw
function(e,t,n){n.d(t,{K:()=>o});var l=n(627968),a=n(64700),i=n(61572),r=n(474367),s=n(375708);let o=e=>{let{handlePaymentSourceAdd:t,isTrial:n,isDiscount:o,disabled:u,hasEntitlements:c,eligiblePaymentGateways:d,currencyDropdownProps:p,label:m=s.intl.string(s.t["u+Cw58"]),shouldUseUnifiedCheckoutUI:h,paymentSourceDropdownClassName:C,paymentSourceDropdownPrependOption:A,location:E="PremiumSubscriptionReview"}=e,y=a.useMemo(()=>o||null==p?null:(0,l.jsx)(r.qX,{...p}),[o,p]),P=a.useMemo(()=>({newPaymentMethodOptionLabel:c&&!n?s.intl.string(s.t.IGU7El):null,isTrial:n,paymentGatewayRestrictions:d,shouldUseUnifiedCheckoutUI:h,className:C,prependOption:A}),[c,n,d,h,C,A]);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(i.N,{label:m,disabled:u,onPaymentSourceAdd:t,additionalPaymentSourceDropdownProps:P,location:E}),y]})}}