Build 612377stable
Module 73663
17,615 characters · in f0c85083cd78ea12.jsDependencies
Lazily required by (0)none
Requires (67)
17928262793418835587459384999997352131607158045202541222707284009285719297264318007318824331322332026341535346689361158363476375708398590403581403689408278452027463376477421477900503698508770511484531506554146557679558620580194580630582128594832649102652215656715661531663341688810721836726656735164774962785007793574818348834040834730839534871181878678881489909753939249951305958720975571976860
Lazily requires (0)none
Source Raw
function(e,t,n){n.d(t,{U_:()=>ex,yq:()=>eT,LR:()=>eU,$p:()=>eD,cD:()=>eM,O8:()=>eN,Ct:()=>eL,RO:()=>eb});var l=n(477900),i=n(582128),r=n(284009),a=n.n(r),s=n(17928),o=n(785007),u=n(331322),c=n(297264),d=n(834730),m=n(726656),p=n(463376),C=n(558620),h=n(721836),f=n(34188),E=n(661531),S=n(939249),y=n(398590),I=n(793574),g=n(688810),A=n(878678),P=n(361158),v=n(976860),_=n(839534),x=n(403689),T=n(652215),N=n(375708),b=n(909753);let j=function(e){let{onClose:t}=e,{analyticsLocations:n}=(0,g.Ay)(),{isHidden:i}=x.A.useConfig({location:"CollectiblesGiftPremiumPlanSelectUpsell"});function r(){t(),(0,v.pX)(T.BVt.COLLECTIBLES_SHOP),(0,_.Cz)({analyticsSource:I.A.PREMIUM_PAYMENT_MODAL,analyticsLocations:n}),(0,y.jH)(),(0,P.dF)(A.Zt)}return i?null:(0,l.jsxs)("div",{className:b.kL,children:[(0,l.jsx)("div",{className:b.Wk,children:(0,l.jsx)(f.U,{size:"custom",width:20,height:20,color:E.A.colors.ICON_DEFAULT})}),(0,l.jsx)(d.E,{variant:"text-sm/normal",children:N.intl.format(N.t.twSHte,{checkItOut:e=>(0,l.jsx)(S.D,{className:b.nf,onClick:r,children:e})})})]})};var R=n(951305),M=n(222707),O=n(594832),L=n(97352),k=n(45938),w=n(975571),U=n(158045),D=n(580630),G=n(881489),F=n(774962),B=n(332026),H=n(580194),W=n(557679),Y=n(452027),V=n(403581),K=n(202541),Z=n(341535),q=n(318824);let z=[1,2,5,10];function Q(e){return z.some(t=>t===e)}function $(e){return Number.isInteger(e)&&e>=h.y0&&e<=50}function J(e){let{amount:t,currency:n,selected:i,announce:r,id:a}=e;return(0,l.jsx)("div",{id:a,className:q.eg,"aria-live":r?"polite":void 0,children:(0,l.jsx)(d.E,{tag:"span",variant:"text-sm/semibold",color:i?"text-default":"text-subtle",children:(0,D.$g)(t,n)})})}function X(e){let{selectedPlanId:t,planOptions:n,unitPrice:r}=e,a=(0,s.yK)([L.A],()=>n.map(e=>L.A.get(e))),{quantity:o,setQuantity:c,setSelectedPlanId:m,checkoutPriceOptions:p}=(0,h.t4)(e=>({quantity:e.quantity,setQuantity:e.setQuantity,setSelectedPlanId:e.setSelectedPlanId,checkoutPriceOptions:e.checkoutPriceOptions})),C=!Q(o)&&$(o)?o:3,[f,S]=i.useState(()=>Q(o)?"preset":"custom"),[y,I]=i.useState(()=>String(C)),[g,A]=i.useState(C),P=i.useId(),v=i.useId(),_=i.useId(),x=a.find(e=>e?.interval===K.WT.MONTH),T=a.find(e=>e?.interval===K.WT.YEAR),b=null!=T?(0,U.L_)({planId:T.id,isGift:!0,priceOptions:p,subscriptionPlan:T}):void 0,j=[null!=T?{plan:T,label:N.intl.formatToPlainString(Z.default.Aq6Jxd,{durationCount:1}),savingsPercent:b}:null,null!=x?{plan:x,label:N.intl.formatToPlainString(Z.default["0nFw35"],{durationCount:1}),savingsPercent:void 0}:null].filter(e=>null!=e);return(0,l.jsxs)(u.B,{gap:24,padding:{bottom:12},children:[(0,l.jsx)(Y.D,{label:N.intl.string(Z.default.UWycjR),role:"radiogroup",children:(0,l.jsx)("div",{className:q.bH,children:j.map(e=>{let{plan:n,label:i,savingsPercent:r}=e,a=n.id===t;return(0,l.jsxs)("label",{className:q.Ap,"data-selected":a,children:[(0,l.jsx)("input",{className:q.Ts,type:"radio",name:P,value:n.id,checked:a,onChange:()=>{n.id!==t&&m(n.id,{shouldUpdateQuantity:!1})}}),(0,l.jsx)("span",{"aria-hidden":"true",className:q.FC}),(0,l.jsx)(d.E,{tag:"span",variant:"text-sm/semibold",color:"text-default",children:i}),null!=r&&r>0?(0,l.jsx)(d.E,{tag:"span",variant:"text-sm/medium",color:"text-feedback-positive",className:q.eQ,children:N.intl.formatToPlainString(Z.default.rr3AQS,{percent:r})}):null]},n.id)})})}),(0,l.jsx)(Y.D,{label:N.intl.string(Z.default.H3pTAa),role:"group",children:(0,l.jsxs)("div",{className:q._L,children:[z.map(e=>{let t="preset"===f&&o===e,n=N.intl.formatToPlainString(Z.default["AxON/M"],{giftCount:e});return(0,l.jsxs)("button",{type:"button","aria-pressed":t,className:q.Jy,onClick:()=>{S("preset"),c(e)},children:[(0,l.jsx)("div",{className:q.E6,"aria-hidden":"true",children:(0,l.jsx)(V.t,{size:"md",color:E.A.colors.ICON_STRONG})}),(0,l.jsxs)(u.B,{gap:4,fullWidth:!1,className:q.Ng,children:[(0,l.jsx)(d.E,{tag:"span",variant:"text-md/semibold",color:t?"text-strong":"text-default",children:n}),(0,l.jsx)(J,{amount:r.amount*e,currency:r.currency,selected:t})]})]},e)}),(0,l.jsxs)("label",{className:q.r8,"data-selected":"custom"===f,onPointerUp:function(){"custom"!==f&&(S("custom"),c(g))},children:[(0,l.jsx)("input",{className:q.Wb,type:"text",inputMode:"numeric",pattern:"[0-9]*",maxLength:String(50).length,value:y,"aria-labelledby":v,"aria-describedby":_,onChange:function(e){let t=e.currentTarget.value;if(!/^\d*$/.test(t))return;if(""!==t&&Number(t)>50){let e=String(50);S("custom"),I(e),A(50),c(50);return}I(t);let n=Number(t);$(n)&&(S("custom"),A(n),c(n))},onBlur:function(){let e=Number(y);I(String($(e)?e:g))}}),(0,l.jsxs)(u.B,{gap:4,fullWidth:!1,className:q.Ng,children:[(0,l.jsx)(d.E,{id:v,tag:"span",variant:"text-md/semibold",color:"custom"===f?"text-strong":"text-default",children:N.intl.string(Z.default.jhNRIe)}),(0,l.jsx)(J,{id:_,amount:r.amount*g,currency:r.currency,selected:"custom"===f,announce:"custom"===f})]})]})]})})]})}var ee=n(554146),et=n(508770),en=n(408278),el=n(834040),ei=n(663341),er=n(131607),ea=n(503698),es=n.n(ea),eo=n(346689);function eu(e){let{className:t,unitPrice:n}=e,i=(0,h.t4)(e=>e.quantity);return(0,l.jsx)("div",{className:es()(eo.z,t),"aria-live":"polite",children:(0,l.jsxs)("div",{className:eo.y,children:[(0,l.jsx)(d.E,{variant:"text-md/medium",color:"text-default",children:N.intl.string(N.t["0YJHm5"])}),(0,l.jsx)(d.E,{tag:"span",variant:"heading-md/semibold",color:"text-default",children:(0,D.$g)(n.amount*i,n.currency)})]})})}var ec=n(49999),ed=n(649102);let em=ee.M.PREMIUM_GIFT_QUANTITY_STEPPER_NEW_BADGE;function ep(e){let{unitPrice:t}=e,{quantity:n,setQuantity:r}=(0,h.t4)(e=>({quantity:e.quantity,setQuantity:e.setQuantity})),[a,s]=i.useState(n),o=function(){let[e,t]=(0,er.kn)([em]),n=e===em;return i.useEffect(()=>{if(n)return()=>t(ec.i.AUTO_DISMISS,!0)},[n,t]),n}();i.useEffect(()=>{s(n)},[n]);let u="number"==typeof a,c=!u||a<=h.y0,m=!u||a>=50;function p(e){s(e),r(e)}return(0,l.jsxs)("div",{className:ed.kL,children:[(0,l.jsxs)("div",{className:ed.W_,children:[(0,l.jsxs)("div",{className:ed.l_,children:[(0,l.jsx)(d.E,{variant:"text-md/medium",color:"text-default",children:N.intl.string(Z.default.WnnzG7)}),o&&(0,l.jsx)("div",{className:ed.qS,children:(0,l.jsx)(et.E,{type:"new",variant:"brand"})})]}),(0,l.jsxs)("div",{className:ed.Im,role:"group","aria-label":N.intl.string(Z.default.WnnzG7),children:[(0,l.jsx)(en.K,{variant:"secondary",size:"md",icon:el.MinusIcon,onClick:()=>{c||p(a-1)},"aria-label":N.intl.string(N.t["k+ohJm"]),disabled:c}),(0,l.jsx)("div",{className:ed.t3,children:(0,l.jsx)("input",{className:ed.Ax,"aria-label":N.intl.string(Z.default.WnnzG7),inputMode:"numeric",value:`${a}`,onChange:e=>(function(e){if(""===e)return void s(e);let t=parseInt(e,10);if(!isNaN(t)){if(t<=h.y0)return void p(h.y0);if(t>=50)return void p(50);p(t)}})(e.currentTarget.value),onBlur:function(){""===a&&s(n)}})}),(0,l.jsx)(en.K,{variant:"secondary",size:"md",icon:ei.PlusLargeIcon,onClick:()=>{m||p(a+1)},"aria-label":N.intl.string(N.t.w8Sc4B),disabled:m})]})]}),(0,l.jsx)(eu,{unitPrice:t})]})}var eC=n(477421),eh=n(35587),ef=n(511484),eE=n(735164),eS=n(363476),ey=n(531506),eI=n(871181),eg=n(318007),eA=n(958720),eP=n(285719);n(26279);var ev=n(818348),e_=n(656715);function ex(e,t){let{isEligibleForBOGOPromotion:n}=t;return null!=e&&!n}function eT(e,t){let n=N.intl.string(N.t.BYa62u),l=N.intl.string(N.t.CDa6Dq),i=(()=>{switch(e.interval){case K.WT.YEAR:return n;case K.WT.MONTH:default:return l}})(),r=e.skuId;switch(t){case K.pe.TIER_0:switch(r){case K.pe.TIER_1:return N.intl.string(N.t.q6mxDS);case K.pe.TIER_2:return N.intl.string(N.t.seZVS0);default:return i}case K.pe.TIER_1:switch(r){case K.pe.TIER_0:return N.intl.string(N.t["7+u2zg"]);case K.pe.TIER_2:return N.intl.string(N.t.NG2qcc);default:return i}case K.pe.TIER_2:switch(r){case K.pe.TIER_0:case K.pe.TIER_1:return N.intl.string(N.t["eB0/w9"]);case K.pe.TIER_2:return e.interval===K.WT.MONTH?N.intl.formatToPlainString(N.t.RqUv86,{numFreeGuildSubscriptions:K.M4}):i;default:return i}default:return i}}function eN(){let{userTrialOffer:e}=(0,p.i)(),t=e?.subscriptionTrial,{daysCount:n,copy:l}=i.useMemo(()=>t?.interval===K.WT.DAY?t?.intervalCount>7?{daysCount:14,copy:N.intl.string(N.t.Z1V2cs)}:{daysCount:7,copy:N.intl.string(N.t.MI1rHs)}:{daysCount:30,copy:N.intl.string(N.t["+S5lrV"])},[t]);return{daysCount:n,copy:l,userTrialOffer:e}}function eb(e){let{selectedPlanId:t,priceOptions:n,planOptions:l,subscriptionPeriodEnd:r,showTotal:u}=e,{selectedSkuId:c,setSelectedPlanId:d,checkoutPriceOptions:m,activeSubscription:f}=(0,h.t4)(e=>({selectedSkuId:e.selectedSkuId,setSelectedPlanId:e.setSelectedPlanId,checkoutPriceOptions:e.checkoutPriceOptions,activeSubscription:e.activeSubscription})),{userTrialOffer:E,isEligibleForTrial:S,discountOffer:y}=(0,p.i)(),I=(0,ef.YJ)(y),{isGift:g,giftRecipient:A,selectedGiftStyle:P,customGiftMessage:v,setCustomGiftMessage:_,claimableRewards:x,setSelectedGiftingPromotionRewards:T}=(0,R.Pv)(),N=(0,C.A)(),b=(0,H.kz)(N,g&&(0,k.Ik)(A),x),j=(0,O.tA)({giftRecipient:A,isGift:g});a()(void 0!==f,"should not be undefined");let[M,w]=(0,s.yK)([L.A],()=>[null!=f?L.A.get(f.planId):null,null!=t?L.A.get(t):null]),D=E?.subscriptionTrial,G=E?.isReferralTrial===!0,F=(0,eh.Sq)()&&!G,B=w??N,W=n??m;a()(null!=W,"Price option has to be set");let Y=y?.discount?.planIds,V=null!=y&&l.some(e=>Y?.includes(e))&&null!=y.discount,K=null!=I&&l.includes(I)?(0,U.y8)(I,!1,g,W):void 0,Z=null!=B?B.id:void 0,q=null!=Z&&l.includes(Z);i.useEffect(()=>{if(q)return void d(Z,{shouldUpdateQuantity:!1});let e=!g&&null!=I&&l.includes(I)?I:null;if(null==M||g)d(e??l[0]);else if(null!=M){let e=l.find(e=>e!==M.id);null!=e&&d(e)}},[q,g,l,M,d,Z,I]),i.useEffect(()=>{b&&null!=x&&x.length>0&&T(x)},[x,T,b]);let{ref:z,...Q}=(0,o._u)(),$=B?.id!=null?(0,U.y8)(B.id,!1,g,W):void 0,{ipCountryCode:J}=(0,eC.A)(),X="HR"===J&&null!=$&&$.currency===ev.Yr.EUR,ee=(0,U.J$)(W.paymentSourceId),et=!g&&(V||null!=D&&S&&null!=r),{copy:en}=eN();return{skuId:c,selectedPlan:B,selectedPlanPrice:$,premiumSubscriptionPlan:M,premiumSubscription:f,thePriceOptions:W,hasSeenCollectiblesInSkuSelect:j,shouldShowTrialOrDiscountLayout:et,shouldShowHRKEuroWarning:X,shouldShowTotalInSubscriptionFlow:!S&&!V&&q&&u,canContinue:q,isPrepaid:ee,radioGroupRef:z,radioGroupProps:Q,isGift:g,giftRecipient:A,customGiftMessage:v,setCustomGiftMessage:_,selectedGiftStyle:P,isEligibleForBOGOPromotion:F,isEligibleForTrial:S,userTrialOffer:E,trialPeriodCopy:en,isPlansEligibleForDiscount:V,discountedPlanRegularPrice:K}}function ej(e){let{isPrepaid:t,selectedPlan:n,selectedPlanPrice:i,intervalType:r,className:a}=e;return(0,l.jsxs)("div",{className:a,children:[(0,l.jsx)("div",{className:e_.T}),(0,l.jsx)(eE.Sd,{label:N.intl.string(N.t.txajQG),value:(0,l.jsx)(eS.A,{price:i.amount,currency:i.currency,intervalType:r,intervalCount:n.intervalCount,isPrepaidPaymentSource:t}),className:e_.M3})]})}function eR(e){let{giftRecipient:t,customGiftMessage:n,setCustomGiftMessage:i,selectedGiftStyle:r,hasSeenCollectiblesInSkuSelect:a,isPrepaid:s,canContinue:o,selectedPlan:d,selectedPlanPrice:m,useCompactGiftComponents:p,showQuantityStepper:C,quantityPresetsSelector:h,handleClose:f,showTotal:E,switchPlanSelectComponent:S,warningComponent:y}=e;function I(){var e;return e=C&&null!=m?(0,l.jsxs)("div",{className:e_.SL,children:[S,(0,l.jsx)(ep,{unitPrice:m})]}):S,(0,l.jsxs)(u.B,{gap:8,children:[(0,l.jsx)(c.D,{variant:"heading-md/semibold",color:"text-strong",children:N.intl.string(N.t["3E5hXj"])}),e]})}return null!=h?(0,l.jsxs)(l.Fragment,{children:[h,y,!a&&(0,l.jsx)(j,{onClose:f})]}):(0,k.Ik)(t)?(0,l.jsxs)("div",{className:e_.mh,children:[(0,l.jsx)("div",{className:e_.MU,children:null!=r&&(0,l.jsx)(eg.t,{})}),(0,l.jsxs)("div",{className:e_.Tc,children:[(0,l.jsx)(eP.Z,{className:p?e_.KW:void 0,giftRecipient:t}),function(){if((0,k.lo)(t)===k.tB.CUSTOM_MESSAGE_EMOJI_SOUNDBOARD&&null!=i)return(0,l.jsx)(eI.A,{className:e_.iX,innerClassName:e_.pt,onTextChange:e=>i(e),pendingText:n,currentText:n})}(),I(),y,!a&&(0,l.jsx)(j,{onClose:f})]})]}):(0,l.jsxs)("div",{className:e_.Du,children:[(0,l.jsx)(eP.Z,{className:p?e_.KW:void 0,giftRecipient:t}),I(),!C&&o&&E&&null!=d&&null!=m&&(0,l.jsx)(ej,{selectedPlan:d,selectedPlanPrice:m,intervalType:null,isPrepaid:s}),y,!a&&(0,l.jsx)(j,{onClose:f})]})}function eM(e,t){let n=null!=e&&e.planId===t,l=n||t===K.gD.PREMIUM_MONTH_TIER_2&&null!=e&&[K.gD.PREMIUM_YEAR_TIER_0,K.gD.PREMIUM_YEAR_TIER_1].includes(e.planId);return{isCurrentPlan:n,disabled:l}}function eO(e){let{isPrepaid:t,planOptions:n,radioGroupRef:r,selectedPlan:a,radioGroupProps:s,shouldShowTrialOrDiscountLayout:o,thePriceOptions:u,isPlansEligibleForDiscount:c,isEligibleForTrial:d}=e,{currentPremiumSubscriptionForCheckout:m}=(0,h.t4)(e=>({currentPremiumSubscriptionForCheckout:e.isGift?null:e.activeSubscription})),p=i.useMemo(()=>n.map(n=>{let{isCurrentPlan:i,disabled:r}=eM(m,n);return(0,l.jsx)(eA.Ay,{planId:n,selected:a?.id===n,isCurrentPlan:i,disabled:e.disabled||r,premiumSubscription:m,isPrepaid:t,priceOptions:u,shouldShowTrialOrDiscountLayout:o,isEligibleForDiscount:c,isEligibleForTrial:d},n)}),[e.disabled,n,a,m,t,u,o,c,d]);return(0,l.jsx)("div",{ref:r,...s,children:p})}function eL(e,t){let{subscriptionPeriodEnd:n,trialPeriodCopy:l}=t,i=e?.isReferralTrial===!0;return null==n?null:i?N.intl.format(N.t.nG95hA,{endDate:n}):N.intl.format(N.t.s4E7kb,{trialEnd:n,trialPeriod:l})}function ek(e){let{shouldShowHRKEuroWarning:t,selectedPlanPrice:n}=e;return t&&null!=n?(0,l.jsx)(m.A,{message:N.intl.formatToPlainString(N.t["9hnZoK"],{kunaPriceWithCurrency:(0,D.$g)(7.5345*n.amount,ev.Yr.HRK)})}):null}function ew(){let e=(0,F.p)("StatefulUnifiedCheckoutPremiumPlanSelect");return(0,l.jsx)(m.A,{message:e?N.intl.string(N.t.jHqrJW):N.intl.format(N.t.Om31w8,{documentationLink:w.A.getArticleURL(T.MVz.LOCALIZED_PRICING)})})}function eU(e){let{selectedPlan:t,selectedPlanPrice:n,isPrepaid:i,shouldShowHRKEuroWarning:r,shouldShowTrialOrDiscountLayout:a,showTotal:s,shouldShowTotalInSubscriptionFlow:o,previewTotalSectionClassName:u}=e;return(0,l.jsxs)(l.Fragment,{children:[o&&null!=t&&null!=n&&(0,l.jsx)(ej,{className:u,selectedPlan:t,selectedPlanPrice:n,intervalType:t.interval,isPrepaid:i}),ek({shouldShowHRKEuroWarning:r,selectedPlanPrice:n}),!a&&s&&(0,l.jsx)(ew,{})]})}function eD(e){let{disabled:t,selectedPlanId:n,planGroup:i,priceOptions:r,planOptions:a,subscriptionPeriodEnd:s,showTotal:o=!0,useCompactGiftComponents:u,handleClose:m}=e,{skuId:p,selectedPlan:C,premiumSubscription:f,premiumSubscriptionPlan:E,isEligibleForBOGOPromotion:S,isGift:y,thePriceOptions:I,isEligibleForTrial:g,giftRecipient:A,customGiftMessage:P,setCustomGiftMessage:v,selectedGiftStyle:_,isPlansEligibleForDiscount:x,discountedPlanRegularPrice:T,hasSeenCollectiblesInSkuSelect:b,userTrialOffer:j,shouldShowTrialOrDiscountLayout:R,isPrepaid:O,radioGroupRef:L,radioGroupProps:k,selectedPlanPrice:w,shouldShowHRKEuroWarning:U,shouldShowTotalInSubscriptionFlow:F,canContinue:H,trialPeriodCopy:Y}=eb({selectedPlanId:n,priceOptions:r,planOptions:a,subscriptionPeriodEnd:s,showTotal:o}),{discountAmountOff:V,applicablePlan:Z,discountOffer:q}=(0,h.t4)(e=>e.premiumDiscountInfo),z=(0,G.ds)(),Q=B.Ay.useConfig({location:"PremiumSwitchPlanSelectBody"}),$=(0,W.M)({isGift:y,giftRecipient:A,selectedPlanId:C?.id}),J=$&&Q===B.o3.STEPPER,ee=$&&Q===B.o3.PRESETS;function et(){return(0,l.jsx)(eO,{disabled:t,planOptions:a,radioGroupRef:L,radioGroupProps:k,isGift:y,isPrepaid:O,premiumSubscription:f,selectedPlan:C,thePriceOptions:I,shouldShowTrialOrDiscountLayout:R,isEligibleForTrial:g,isPlansEligibleForDiscount:x})}let{showFractionalPremiumBanner:en,fractionalPremiumInfo:el}=(0,M._V)({premiumSubscription:f,selectedPlanId:n,planGroup:i,isGift:y,fractionalPremiumInfoArgs:{forceFetch:!1,excludeReverseTrial:!1,excludeReverseTrialFromCountdown:!0}});if(y)return(0,l.jsx)(eR,{giftRecipient:A,customGiftMessage:P,setCustomGiftMessage:v,selectedGiftStyle:_,hasSeenCollectiblesInSkuSelect:b,isPrepaid:O,canContinue:H,selectedPlan:C,selectedPlanPrice:w,useCompactGiftComponents:u,showQuantityStepper:J,quantityPresetsSelector:ee&&null!=C&&null!=w?(0,l.jsx)(X,{selectedPlanId:C.id,planOptions:a,unitPrice:w}):null,handleClose:m,showTotal:o,switchPlanSelectComponent:et(),warningComponent:ek({shouldShowHRKEuroWarning:U,selectedPlanPrice:w})});let ei=!(g&&en&&!z),er=ex(E,{isEligibleForBOGOPromotion:S});return(0,l.jsxs)("div",{children:[en&&!z&&(0,l.jsx)(ey.vi,{fractionalPremiumInfo:el,enablePremiumBrandRefresh:!0,variant:g?ey.uA.TRIAL:void 0,trialPeriod:g?Y:void 0,trialEnd:g?s:void 0}),er&&!en&&(0,l.jsx)(d.E,{variant:"text-md/medium",color:"interactive-text-default",className:e_.G3,children:eT(E,p)}),ei&&function(e,t,i){if(!R)return(0,l.jsx)(c.D,{variant:"heading-md/semibold",color:"text-strong",className:e_.VZ,children:N.intl.string(N.t.a19jpU)});if(t)return(0,l.jsxs)("div",{children:[(0,l.jsx)(d.E,{variant:"text-sm/normal",className:e_.Tz,children:eL(e,{subscriptionPeriodEnd:s,trialPeriodCopy:Y})}),(0,l.jsx)("hr",{className:e_.RA})]});if(i&&null!=V&&null!=T&&null!=Z&&n===Z){let e=C?.interval===K.WT.YEAR,t=(0,D.$g)(T.amount-V,T.currency),n=(0,D.$g)(T.amount,T.currency);return(0,l.jsxs)("div",{children:[(0,l.jsx)(d.E,{variant:"text-sm/normal",className:e_.Tz,children:e?N.intl.format(N.t.ofweWu,{numYears:q?.discount.intervalCount??"",discountedPrice:t,regularPrice:n}):N.intl.format(N.t["nG7g/E"],{numMonths:q?.discount.intervalCount??"",discountedPrice:t,regularPrice:n})}),(0,l.jsx)("hr",{className:e_.RA})]})}}(j,g,x),et(),eU({selectedPlan:C,selectedPlanPrice:w,isPrepaid:O,shouldShowHRKEuroWarning:U,shouldShowTrialOrDiscountLayout:R,showTotal:o,shouldShowTotalInSubscriptionFlow:F})]})}}