Loading
function(e,t,n){n.d(t,{k:()=>h});var r=n(17928),s=n(851746),i=n(975571),a=n(326084),l=n(197630),c=n(664654);n(232198);var d=n(652215),o=n(660183),u=n(879416);function h(){let e,t,n,{location:h="PremiumNitroHomeReferralBanner"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{referralSentUsers:f}=(0,c.J)(),m=(0,r.bG)([s.A],()=>s.A.getRecipientStatus()),b=!1!==(0,r.bG)([s.A],()=>s.A.getHasEligibleFriends()),{isEligibleForIncentive:p,referralRewardType:A,useAltReferralCardArt:R}=(0,u.x)({location:h}),S=p?A:null,x=(e=0,t=0,n=0,m.forEach(r=>{r===a.aK.REFERRER_REWARD_GRANTED?(e++,t++,n++):r===a.aK.CONVERTED?(t++,n++):r===a.aK.REDEEMED&&n++}),{numRewardGranted:e,numConverted:t,numRedeemed:n,numSent:m.size}),v=m.size===c.Z,g=function(e,t,n){let r=i.A.getArticleURL(d.MVz.REFERRAL_PROGRAM);if(!e)return o.intl.format(o.t["zWhX/Q"],{helpdeskArticle:r});if(null!=n)return t.numRewardGranted===c.Z?n===l.xb.ORBS?o.intl.format(o.t.OluhLp,{helpdeskArticle:r}):o.intl.format(o.t["8BYihN"],{helpdeskArticle:r}):t.numSent===c.Z?n===l.xb.ORBS?o.intl.format(o.t["1aV1j9"],{helpdeskArticle:r}):o.intl.format(o.t.QNrPuS,{helpdeskArticle:r}):e?n===l.xb.ORBS?o.intl.format(o.t.cfE0uG,{numOrbs:5e3,helpdeskArticle:r}):o.intl.format(o.t["+fcvlI"],{helpdeskArticle:r}):o.intl.format(o.t["a0+Jwv"],{helpdeskArticle:r});return t.numSent===c.Z?t.numRedeemed===c.Z?o.intl.format(o.t["1aEjsH"],{helpdeskArticle:r}):o.intl.format(o.t["+u3AOO"],{helpdeskArticle:r}):o.intl.format(o.t["omMr+V"],{helpdeskArticle:r})}(b,x,S),E=S===l.xb.ORBS?o.intl.string(o.t.tAlkl4):S===l.xb.DISCOUNT?o.intl.formatToPlainString(o.t["/JJ9I5"],{discountPercent:30}):o.intl.string(o.t.USo4s7),O=S===l.xb.ORBS&&x.numSent===c.Z&&x.numConverted>=1;return{referralSentUsers:f,nReferralsSent:x.numSent,hasEligibleFriends:b,allSent:v,headingText:E,bodyText:g,referralStatus:x,isEligibleForIncentive:p,referralIncentiveRewardType:S,useAltReferralCardArt:R,shouldShowSpendOrbsCta:O}}}