Build 574548stable
Module 800471
982 characters · in e018ffe2326a228c.jsDependencies
Source Raw
function(e,s,t){t.d(s,{UB:()=>u,lp:()=>l,vT:()=>c,xT:()=>o});var n=t(650170),i=t(428262),r=t(937008),a=t(202541);function l(e){let{selectedSkuId:s,startedPaymentFlowWithPaymentSources:t}=(0,n.t4)(e=>({selectedSkuId:e.selectedSkuId,startedPaymentFlowWithPaymentSources:e.startedPaymentFlowWithPaymentSources})),{isGift:i}=(0,r.Pv)();return c({isTrial:e??!1,isGift:i,selectedSkuId:s,startedPaymentFlowWithPaymentSources:t})}function c(e){let{isTrial:s,isGift:t,selectedSkuId:n,startedPaymentFlowWithPaymentSources:i}=e;return!s&&!t&&null!=n&&a.oz.includes(n)&&i}function u(e,s){return null!=e&&null==e.findInvoiceItemByPlanId(s.id)}function o(e,s,t){let n=null!=s?(0,i.EL)(s):null,r=a.zE[e],l=t??r;return null!=n?l===n.planId&&l===a.En[e]?l=a.zE[e]:l===n.planId&&l===a.zE[e]?l=a.En[e]:(n.planId===a.gD.PREMIUM_YEAR_TIER_0||n.planId===a.gD.PREMIUM_YEAR_TIER_1)&&l===a.gD.PREMIUM_MONTH_TIER_2&&(l=a.gD.PREMIUM_YEAR_TIER_2):l===a.gD.PREMIUM_YEAR_TIER_1&&(l=a.gD.PREMIUM_MONTH_TIER_1),l}}