Loading
function(e,t,n){"use strict";n.d(t,{jP:()=>em,Rf:()=>er,oK:()=>eo,r6:()=>eu,MR:()=>es});var l,i=n(627968),s=n(64700),r=n(503698),a=n.n(r),o=n(534514),u=n(17928),c=n(331322),d=n(821609),m=n(462887),h=n(315629),p=n(834730),f=n(939249),g=n(403581),E=n(736653),A=n(775602),C=n(793574),x=n(688810),I=n(287809),_=n(166403),S=n(428262),y=n(580630),v=n(526292),T=n(442123),N=n(877624),j=n(978656),b=n(937008),R=n(807098),P=n(374200),L=n(380619),M=n(375708),O=n(756974);function w(){let{claimableRewards:e}=(0,b.Pv)(),t=(0,u.bG)([P.A],()=>{let e=P.A.getMarketingComponentByType(N.C.GIFT_PLAN_SELECTION_CARD_BANNER);return null==e||"giftPlanSelectionCardBanner"!==e.properties.properties.oneofKind?null:e.properties.properties.giftPlanSelectionCardBanner}),n=(0,R.T)(t?.bannerAsset),l=(0,R.T)(t?.avatarAsset),s=t?.assetVariant===j.Y.LARGE_TILTED;if(null==t||null==e||0===e.length)return null;let r=(0,L.gc)(n),o=t?.gradient,c=null!=o&&null!=o.colors&&o.colors.length>=2?(0,L.K5)({gradient:o.colors,angle:o.angle??void 0}):void 0,d=(0,L.x)(r,c);return(0,i.jsxs)("div",{className:O.kL,style:d,children:[(0,i.jsxs)("div",{className:O.V_,children:[(0,i.jsx)(p.E,{variant:"text-md/bold",color:"always-white",children:M.intl.string(M.t.OEtqpm)}),(0,i.jsx)(p.E,{variant:"text-md/medium",color:"always-white",children:M.intl.formatToPlainString(M.t["2h5M+X"],{availableCount:e.length})})]}),null!=l&&(0,i.jsx)("div",{className:O.R3,children:(0,i.jsx)("img",{alt:"gift promotion reward",src:l,className:a()(O.my,{[O.R_]:s})})})]})}var k=n(422936),D=n(234419),U=n(862990),G=n(783420),F=n(204413),V=n(410516),B=n(774774),H=n(289873),W=n(97352),K=n(795269),Y=n(788868),z=n(466919),Z=n(707259),q=n(378874);let $=function(e){let{isGift:t=!1,discountOffer:n,priceOptions:l,isApplicationHome:s=!1}=e,r=(0,u.bG)([W.A],()=>W.A.get(Y.gD.PREMIUM_GROUP_MONTH)),d=(0,V.N1)(Y.gD.PREMIUM_GROUP_MONTH),h=(0,m.q)((0,E.Ay)());if(null==r)return(0,i.jsx)(H.y,{type:H.y.Type.PULSING_ELLIPSIS,className:q.xB});let f=(0,S.sS)(r,l,!1,t),g=Y.WT.MONTH;if(null!=n&&null!=d){let e=n.discount.userUsageLimit;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("hr",{className:a()(Z.vI,{[Z.oE]:s})}),(0,i.jsxs)(c.B,{direction:"horizontal",align:"center",justify:"space-between",gap:12,fullWidth:!1,children:[(0,i.jsxs)(c.B,{direction:"vertical",gap:4,fullWidth:!1,className:Z.Yc,children:[(0,i.jsx)(o.D,{variant:s?"heading-md/semibold":"heading-sm/semibold",color:"text-strong",children:M.intl.format(z.default.rCpGVA,{discountedPrice:d,discountInterval:e})}),(0,i.jsx)(p.E,{variant:s?"text-sm/medium":"text-xs/medium",color:"text-muted",children:M.intl.format(z.default["4b2ByP"],{regularPrice:f})})]}),(0,i.jsx)(K.R,{text:M.intl.formatToPlainString(z.default.GEwdVw,{percent:n.discount.amount,discountOfferAmount:n.discount.amount})})]}),(0,i.jsx)("hr",{className:a()(Z.yF,{[Z.oE]:s})})]})}return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{children:[(0,i.jsx)(p.E,{variant:"heading-xxl/extrabold",color:h?"text-strong":"always-white",tag:"span",children:f}),(0,i.jsxs)(p.E,{variant:"text-xs/medium",tag:"span",color:"text-muted",children:["/",(0,S.FJ)(g)]})]}),(0,i.jsx)(o.D,{variant:"heading-md/semibold",color:"text-muted",children:M.intl.string(z.default["R+dzZw"])}),(0,i.jsx)("hr",{className:Z.yF})]})};var J=n(860839),X=n(765516),Q=n(88001),ee=n(115599),et=n(232266),en=n(243002),el=n(241988);function ei(e){let{children:t,footer:n}=e;return null==n?(0,i.jsx)(c.B,{direction:"vertical",gap:0,className:ee.tierCardStack,children:t}):(0,i.jsxs)(c.B,{direction:"vertical",justify:"space-between",gap:0,className:ee.tierCardStack,children:[(0,i.jsx)(c.B,{direction:"vertical",gap:0,className:ee.tierCardStackContent,children:t}),(0,i.jsx)("div",{className:ee.footer,children:n})]})}function es(e){let{ctaButton:t,showYearlyPrice:n,className:l,isGift:s=!1,priceOptions:r,isApplicationHome:c=!1,useShortTitle:d=!1}=e,p=(0,u.bG)([_.A],()=>_.A.getPremiumTypeSubscription()),f=(0,u.bG)([I.default],()=>I.default.getCurrentUser()),g=(0,D.V)(),A=g?.subscription_trial?.sku_id,C=(0,k.O)(),x=(0,k.p)(),S=p?.hasActiveTrial?f?.premiumType:null,y=(0,B.Lj)(S,A),v=null!=y,N=(0,m.q)((0,E.Ay)()),{showGiftPrice:j}=T.A.useConfig({location:`PremiumTier0Card${s?"":" - DO NOT USE"}`}),b=d?M.intl.string(M.t.tUbSDK):M.intl.string(M.t["t9uG/o"]),R=(0,i.jsxs)(ei,{footer:t,children:[v&&(0,i.jsx)(K.R,{text:y,className:ee.pill}),(0,i.jsx)(o.D,{variant:"display-md",color:N?"text-strong":"always-white",className:ee.cardTitle,children:b}),(!s||j)&&(0,i.jsx)(X.A,{isGift:s,premiumTier:Y.PremiumTypes.TIER_0,offerType:Y.Vk.PREMIUM_TRIAL,offerTierMatchesCard:A===Y.pe.TIER_0,showYearlyPrice:n,priceOptions:r,enablePremiumBrandRefresh:!0,headingVariant:"text-md/medium",headingColor:"text-strong",headerClassName:ee.priceHeader}),(0,i.jsx)("hr",{className:ee.divider}),(0,i.jsx)(J.nH,{enablePremiumBrandRefresh:!0,isApplicationHome:c})]}),P=a()(ee.card,ee.tier0,l,{[ee.pillMargin]:!c&&v});return((0,V.hm)(C)||null!=x)&&!s?(0,i.jsx)("div",{className:P,children:R}):(0,i.jsx)(h.h,{color:"nitro-green",className:P,children:R})}var er=((l={}).IN_CARD="inCard",l.OUTER_CORNER="outerCorner",l.INSIDE_CORNER="insideCorner",l.GIFT_SELECTION_MODAL="giftSelectionModal",l);function ea(e){let{discountOffer:t,priceOptions:n,isGift:l,narrowLayout:r=!1}=e,a=(0,V.N1)(Y.gD.PREMIUM_YEAR_TIER_2),o=s.useMemo(()=>{try{let e=(0,S.y8)(Y.gD.PREMIUM_YEAR_TIER_2,!1,l,n);return(0,y.$g)(e.amount,e.currency)}catch{return null}},[l,n]);return null==a||null==o?null:(0,i.jsxs)("div",{className:ee.annualDiscountBanner,children:[(0,i.jsxs)("div",{className:ee.annualDiscountBannerText,children:[(0,i.jsx)(p.E,{variant:r?"text-sm/semibold":"text-md/semibold",color:"always-white",children:M.intl.format(M.t["TCFNZ/"],{discountedPrice:a})}),(0,i.jsx)(p.E,{variant:r?"text-xs/normal":"text-sm/normal",children:M.intl.format(M.t.aUTlph,{regularPrice:o})})]}),(0,i.jsx)(K.R,{text:M.intl.formatToPlainString(M.t.v5WSns,{percent:t.discount.amount})})]})}function eo(e){let{ctaButton:t,showYearlyPrice:n,featureSet:l=J.Nz.DEFAULT,className:s,isGift:r=!1,isModal:c=!1,priceOptions:d,showPromotionalGiftBanner:p=!1,wumpusPosition:f="inCard",isApplicationHome:g=!1,showWumpus:A=!0,showPill:C=!0,narrowLayout:x=!1}=e,S=(0,u.bG)([_.A],()=>_.A.getPremiumTypeSubscription()),y=(0,u.bG)([I.default],()=>I.default.getCurrentUser()),N=(0,D.V)(),j=N?.subscription_trial?.sku_id,b=S?.hasActiveTrial?y?.premiumType:null,R=S?.planIdFromItems===Y.gD.PREMIUM_YEAR_TIER_2,P=(0,k.O)(),L=(0,k.p)(),O=(0,v.k5)(),U=null!=j||null!=b?Y.Vk.PREMIUM_TRIAL:null!=P||O?Y.Vk.PREMIUM_DISCOUNT:null,G=(0,m.q)((0,E.Ay)()),F=null!=L&&!r,H=!r&&null!=P&&(0,V.hm)(P),W=!r&&O&&R&&U===Y.Vk.PREMIUM_DISCOUNT,z=(0,B.rm)(O,b,r?null:P,N,j),{showGiftPrice:Z}=T.A.useConfig({location:`PremiumTier2Card${r?"":" - DO NOT USE"}`}),q=null!=t||p?(0,i.jsxs)(i.Fragment,{children:[t,p&&(0,i.jsx)(w,{})]}):null,$=(0,i.jsxs)(ei,{footer:q,children:[A&&!F&&!W&&(0,i.jsx)(()=>(0,i.jsxs)(i.Fragment,{children:[!H&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("img",{src:en,alt:"",className:a()(ee.bigCloud,ee[f])}),(0,i.jsx)("img",{src:et,alt:"",className:a()(ee.smallCloud,ee[f])})]}),(!H||null!=t)&&(0,i.jsx)("img",{src:el,alt:"",className:a()(ee.wumpus,ee[f],{[ee.withAnnualDiscountBanner]:H,[ee.noGiftPrice]:r&&!Z})})]}),{}),C&&!H&&(0,i.jsx)(K.R,{text:z??M.intl.string(M.t["6bEcYr"]),className:ee.pill}),(0,i.jsx)(o.D,{variant:"display-md",color:G?"text-strong":"always-white",className:ee.cardTitle,children:M.intl.string(M.t.lG6a5x)}),(!r||Z)&&(0,i.jsx)(X.A,{isGift:r,premiumTier:Y.PremiumTypes.TIER_2,offerType:U,offerTierMatchesCard:j===Y.pe.TIER_2||(0,V.U9)(P,Y.pe.TIER_2),showYearlyPrice:n&&!H,priceOptions:d,enablePremiumBrandRefresh:!0,headingVariant:"text-md/medium",headingColor:"text-strong",headerClassName:ee.priceHeader}),H?(0,i.jsx)(ea,{discountOffer:P,priceOptions:d,isGift:r,narrowLayout:x}):(0,i.jsx)("hr",{className:ee.divider}),(0,i.jsx)(J.ZP,{featureSet:l,isModal:c,isGift:r,enablePremiumBrandRefresh:!0,isApplicationHome:g,firstFeatureItemClassName:H||"inCard"!==f&&"giftSelectionModal"!==f?void 0:ee.firstFeatureItemContainer})]}),Q=a()(ee.card,s,{[ee.withGiftBanner]:p});return F?(0,i.jsx)("div",{className:Q,children:$}):(0,i.jsx)(h.h,{color:"nitro-pink",className:Q,children:$})}function eu(e){let{className:t,ctaButton:n,isApplicationHome:l,priceOptions:s}=e,r=(0,m.q)((0,E.Ay)()),u=(0,k.p)(),c=(0,i.jsxs)(ei,{footer:n,children:[(0,i.jsxs)("div",{className:ee.cardHeader,children:[(0,i.jsx)(o.D,{variant:"display-md",color:r?"text-strong":"always-white",className:ee.cardTitle,children:M.intl.string(z.default.eSKiXk)}),(0,i.jsx)(K.R,{text:M.intl.string(M.t.oW0eUd),className:ee.betaPill,disableGradient:null!=u})]}),(0,i.jsx)($,{discountOffer:u,priceOptions:s,isApplicationHome:l}),(0,i.jsx)(J.Lg,{isApplicationHome:l})]});return null!=u?(0,i.jsx)(h.h,{color:"nitro-pink",className:a()(ee.card,t),children:c}):(0,i.jsx)("div",{className:a()(ee.card,ee.borderGradient,t),children:c})}let ec=e=>{let{subscriptionTier:t,isReducedMotion:n,tierCardProps:l,className:s,narrowLayout:r}=e,o=t===Y.pe.TIER_2,u=(0,k.p)(),{subscribeButtonProps:m,subscriptionTier:h}=(0,F.$)({subscriptionTier:t,variantOverride:o&&null==u?"expressive":"secondary"}),{disabled:p}=m,g=(0,i.jsx)(d.$,{size:"md",fullWidth:!0,...m,disabled:p}),E=(0,i.jsx)(c.B,{direction:"vertical",gap:0,className:a()(ee.tierCardStack,{[ee.premiumCardHover]:!n}),children:(0,i.jsx)(o?eo:es,{className:a()(ee.applicationHomeCard,{[ee.narrow]:r}),ctaButton:g,showYearlyPrice:!0,isApplicationHome:!0,...l})});return(0,i.jsx)(c.B,{direction:"vertical",gap:0,className:a()(ee.tierCardStack,s),children:p?E:(0,i.jsx)(G.A,{subscriptionTier:h,children:e=>{let{onClick:t}=e;return(0,i.jsx)(f.D,{onClick:t,className:ee.tierCardStack,children:E})}})})},ed=e=>{let{isReducedMotion:t,className:n}=e,l=(0,k.p)(),s=null!=l?M.intl.format(z.default["7j70dP"],{percent:l.discount?.amount,premiumGroupProductName:(0,Q.DP)()}):M.intl.string(M.t["2pG5Ga"]),r=(0,i.jsx)(d.$,{size:"md",fullWidth:!0,icon:g.t,text:s,variant:null!=l?"expressive":"secondary"}),o=(0,i.jsx)(c.B,{direction:"vertical",gap:0,className:a()(ee.tierCardStack,{[ee.premiumCardHover]:!t}),children:(0,i.jsx)(eu,{className:a()(ee.applicationHomeCard,ee.narrow),ctaButton:r,isApplicationHome:!0})});return(0,i.jsx)(G.A,{subscriptionTier:Y.pe.TIER_2,initialPlanId:Y.gD.PREMIUM_GROUP_MONTH,children:e=>{let{onClick:t}=e;return(0,i.jsx)(c.B,{direction:"vertical",gap:0,className:a()(ee.tierCardStack,n),children:(0,i.jsx)(f.D,{onClick:t,className:ee.tierCardStack,children:o})})}})};function em(e){let{innerRef:t,className:n}=e,{analyticsLocations:l}=(0,x.Ay)(C.A.PREMIUM_MARKETING_TIER_CARD),s=(0,J.pw)(t),r=(0,u.bG)([A.Ay],()=>A.Ay.useReducedMotion),c=(0,U.PA)();return(0,i.jsx)(x.f5,{value:l,children:(0,i.jsxs)("div",{className:a()(ee.premiumCardsContainer,n),children:[(0,i.jsx)(o.D,{variant:"display-md",color:"text-strong",className:ee.premiumCardsHeader,children:M.intl.string(M.t.vLz3Zs)}),(0,i.jsxs)("div",{ref:s,className:ee.premiumCards,children:[(0,i.jsx)(ec,{subscriptionTier:Y.pe.TIER_0,isReducedMotion:r,className:ee.tier0CardOrder,narrowLayout:c}),(0,i.jsx)(ec,{subscriptionTier:Y.pe.TIER_2,isReducedMotion:r,className:ee.tier2CardOrder,tierCardProps:{wumpusPosition:c?"insideCorner":"outerCorner",showPill:!c},narrowLayout:c}),c&&(0,i.jsx)(ed,{isReducedMotion:r,className:ee.premiumGroupCardOrder})]})]})})}}