Build 545032stable
Module 815846
26,141 characters · in b455a034c3f87850.jsDependencies
Lazily required by (0)none
Requires (68)
1792822118647006547073825863798800197808103411156601160946166403174459190187192308194509224016228366269115287809289873326084331322374200375708380619428262462887465794503698526292531260534514545075607399627968652215664654688810721668736653753390766075774774775602778712780964788868793574807098821609825484830543834730851746854627860839862482877624881489889227912140930861953727975571976860989349990078
Lazily requires (1)
Source Raw
function(e,t,s){s.d(t,{c:()=>eF,A:()=>ez});var i,l=s(627968),n=s(64700),a=s(503698),r=s.n(a),c=s(989349),o=s.n(c),d=s(607399),u=s(877624),m=s(17928),x=s(269115),p=s(825484),h=s(821609),g=s(331322),j=s(462887),f=s(862482),N=s(534514),A=s(834730),_=s(289873),C=s(228366),E=s(73825),v=s(736653),I=s(793574),R=s(688810),T=s(753390),b=s(86379),M=s(531260),y=s(160946),S=s(545075),P=s(721668),D=s(976860),O=s(780964),G=s(830543),L=s(766075),w=s(287809),k=s(166403),U=s(224016),B=s(174459),F=s(975571),H=s(428262),z=s(526292),V=s(881489),W=s(380619),K=s(22118),Y=s(807098),Z=s(374200),Q=s(103411),X=s(190187),J=s(990078),q=s(778712),$=s(97808),ee=s(192308),et=s(930861),es=s(854627),ei=s(889227),el=s(326084),en=s(851746),ea=s(664654),er=s(775602),ec=s(912140),eo=s(953727);let ed=e=>{let{className:t,backgroundColor:s,backgroundCircleSize:i,...n}=e;return(0,l.jsxs)("svg",{width:"100%",height:"100%",viewBox:"0 0 100 100",fill:"none",style:{overflow:"visible"},xmlns:"http://www.w3.org/2000/svg",...(0,eo.A)({...n}),children:[(0,l.jsx)("circle",{r:i??"40%",cx:"50%",cy:"50%",className:s}),(0,l.jsxs)("g",{transform:"translate(50, 50) scale(0.6) translate(-51, -52)",children:[(0,l.jsx)("path",{d:"M52.0002 11.7556L28.3402 35.4156V68.6956L52.0002 92.3556L75.6602 68.6956V35.4156L52.0002 11.7556ZM63.8302 63.7556L52.0002 75.6289L40.1702 63.7989V40.3122L52.0002 28.4822L63.8302 40.3122V63.7556Z",fill:"#FF6BFA",className:t}),(0,l.jsx)("path",{d:"M40.1702 40.3122V63.7989L52.0002 75.6289L63.8302 63.7989V40.3122L52.0002 28.4822L40.1702 40.3122Z",fill:"#FFDEF9"}),(0,l.jsx)("path",{d:"M52.0002 11.7556V28.4822L63.8302 40.3122L75.6602 35.4156L52.0002 11.7556Z",fill:"#FFB0FF"})]})]})},eu=e=>{let{ellipseOpacity:t,circleColor:s,...i}=e,n=(0,v.Ay)(),a=(0,j.q)(n),r=null!=s?s:a?"url(#paint0_linear_1055_83268)":"url(#paint0_linear_1282_11557)";return(0,l.jsxs)("svg",{style:{overflow:"visible"},width:"80%",height:"80%",viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg",...(0,eo.A)({...i}),children:[(0,l.jsxs)("svg",{width:"100",height:"100",viewBox:"0 0 114 114",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsxs)("defs",{children:[(0,l.jsxs)("linearGradient",{id:"purple-gradient",x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[(0,l.jsx)("stop",{offset:"0%",style:{stopColor:"#E2C7FA",stopOpacity:1}}),(0,l.jsx)("stop",{offset:"100%",style:{stopColor:"#F3D3DE",stopOpacity:1}})]}),(0,l.jsxs)("linearGradient",{id:"dark-purple-gradient",x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[(0,l.jsx)("stop",{offset:"0%",style:{stopColor:"rgb(36,23,49)",stopOpacity:1}}),(0,l.jsx)("stop",{offset:"100%",style:{stopColor:"rgb(36,23,49)",stopOpacity:1}})]})]}),(0,l.jsx)("ellipse",{cx:"57.2768",cy:"57.0796",rx:"56.3726",ry:"56.3726",fill:null!=s?s:r,fillOpacity:null!=t?t:a?.5:.2}),(0,l.jsxs)("g",{width:"65",transform:"translate(50, 50) scale(.7) translate(-10, -39)",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsx)("path",{d:"M42.0084 14.8866L33.7687 17.7832C33.3446 17.9281 32.9766 18.2015 32.7161 18.565C32.4555 18.9285 32.3154 19.3641 32.3154 19.8109C32.3154 20.2576 32.4555 20.6932 32.7161 21.0567C32.9766 21.4203 33.3446 21.6936 33.7687 21.8385L42.0084 24.7351C42.3147 24.8404 42.593 25.0138 42.8221 25.2422C43.0512 25.4705 43.2252 25.7478 43.3309 26.053L46.2373 34.2649C46.3827 34.6875 46.657 35.0543 47.0217 35.3139C47.3865 35.5736 47.8236 35.7132 48.2718 35.7132C48.7201 35.7132 49.1572 35.5736 49.522 35.3139C49.8867 35.0543 50.161 34.6875 50.3064 34.2649L53.2128 26.053C53.3204 25.7488 53.495 25.4725 53.7239 25.2444C53.9528 25.0164 54.23 24.8423 54.5353 24.7351L62.7896 21.8385C63.2136 21.6936 63.5817 21.4203 63.8422 21.0567C64.1028 20.6932 64.2428 20.2576 64.2428 19.8109C64.2428 19.3641 64.1028 18.9285 63.8422 18.565C63.5817 18.2015 63.2136 17.9281 62.7896 17.7832L54.5353 14.8866C54.2315 14.7767 53.9557 14.6018 53.7272 14.374C53.4987 14.1463 53.3231 13.8714 53.2128 13.5687L50.3064 5.34234C50.161 4.91974 49.8867 4.55297 49.522 4.2933C49.1572 4.03363 48.7201 3.89404 48.2718 3.89404C47.8236 3.89404 47.3865 4.03363 47.0217 4.2933C46.657 4.55297 46.3827 4.91974 46.2373 5.34234L43.3309 13.5687C43.2233 13.8729 43.0487 14.1492 42.8198 14.3773C42.591 14.6054 42.3137 14.7794 42.0084 14.8866Z",fill:"white",fillOpacity:a?"0.6":"0.4"}),(0,l.jsx)("path",{d:"M34.0878 3.57968L33.0393 0.634802C32.9888 0.483384 32.8917 0.351665 32.7618 0.258321C32.6319 0.164978 32.4759 0.114746 32.3158 0.114746C32.1556 0.114746 31.9996 0.164978 31.8697 0.258321C31.7398 0.351665 31.6427 0.483384 31.5922 0.634802L30.6217 3.57968C30.5838 3.68745 30.5221 3.78534 30.4411 3.86607C30.3601 3.94681 30.2619 4.00831 30.1538 4.04602L27.1555 5.02189C27.0067 5.07415 26.8777 5.17117 26.7865 5.29956C26.6953 5.42795 26.6464 5.58137 26.6464 5.73868C26.6464 5.89598 26.6953 6.04941 26.7865 6.17779C26.8777 6.30618 27.0067 6.4032 27.1555 6.45547L30.0758 7.47451C30.1839 7.51222 30.2821 7.57373 30.3631 7.65446C30.4441 7.7352 30.5059 7.83308 30.5437 7.94085L31.5575 10.8426C31.6081 10.994 31.7052 11.1257 31.835 11.219C31.9649 11.3124 32.121 11.3626 32.2811 11.3626C32.4412 11.3626 32.5973 11.3124 32.7271 11.219C32.857 11.1257 32.9541 10.994 33.0047 10.8426L34.0878 7.94085C34.1257 7.83308 34.1874 7.7352 34.2684 7.65446C34.3494 7.57373 34.4476 7.51222 34.5558 7.47451L37.476 6.45547C37.6249 6.4032 37.7538 6.30618 37.845 6.17779C37.9362 6.04941 37.9852 5.89598 37.9852 5.73868C37.9852 5.58137 37.9362 5.42795 37.845 5.29956C37.7538 5.17117 37.6249 5.07415 37.476 5.02189L34.5211 4.00284C34.4237 3.9656 34.3349 3.90883 34.2604 3.83604C34.1859 3.76326 34.1271 3.676 34.0878 3.57968Z",fill:"white",fillOpacity:"0.8"})]})]}),(0,l.jsxs)("defs",{children:[(0,l.jsxs)("filter",{id:"filter0_d_1282_11577",x:"-6.55945",y:"0.382812",width:"89.2926",height:"70.3945",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,l.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,l.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,l.jsx)("feOffset",{dy:"4"}),(0,l.jsx)("feGaussianBlur",{stdDeviation:"5"}),(0,l.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,l.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),(0,l.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_1282_11577"}),(0,l.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_1282_11577",result:"shape"})]}),(0,l.jsxs)("linearGradient",{id:"paint0_linear_1282_11577",x1:"3.44055",y1:"31.5801",x2:"72.7332",y2:"31.5801",gradientUnits:"userSpaceOnUse",children:[(0,l.jsx)("stop",{stopColor:"#B473F5"}),(0,l.jsx)("stop",{offset:"1",stopColor:"#E292AA"})]}),(0,l.jsxs)("linearGradient",{id:"paint2_linear_1986_8686",x1:"3.44073",y1:"43.8345",x2:"72.7334",y2:"43.8345",gradientUnits:"userSpaceOnUse",children:[(0,l.jsx)("stop",{stopColor:"#B473F5"}),(0,l.jsx)("stop",{offset:"1",stopColor:"#E292AA"})]}),(0,l.jsxs)("linearGradient",{id:"paint1_linear_1282_11577",x1:"3.44055",y1:"31.5801",x2:"72.7332",y2:"31.5801",gradientUnits:"userSpaceOnUse",children:[(0,l.jsx)("stop",{stopColor:"#B473F5"}),(0,l.jsx)("stop",{offset:"1",stopColor:"#E292AA"})]}),(0,l.jsxs)("linearGradient",{id:"paint1_linear_1986_8686",x1:"3.44073",y1:"43.8345",x2:"72.7334",y2:"43.8345",gradientUnits:"userSpaceOnUse",children:[(0,l.jsx)("stop",{stopColor:"#B473F5"}),(0,l.jsx)("stop",{offset:"1",stopColor:"#E292AA"})]}),(0,l.jsxs)("linearGradient",{id:"paint2_linear_1282_11577",x1:"3.44055",y1:"31.5801",x2:"72.7332",y2:"31.5801",gradientUnits:"userSpaceOnUse",children:[(0,l.jsx)("stop",{stopColor:"#B473F5"}),(0,l.jsx)("stop",{offset:"1",stopColor:"#E292AA"})]}),(0,l.jsxs)("linearGradient",{id:"paint0_linear_1986_8686",x1:"3.44073",y1:"43.8345",x2:"72.7334",y2:"43.8345",gradientUnits:"userSpaceOnUse",children:[(0,l.jsx)("stop",{stopColor:"#B473F5"}),(0,l.jsx)("stop",{offset:"1",stopColor:"#E292AA"})]}),(0,l.jsxs)("linearGradient",{id:"paint0_linear_1282_11557",x1:"0.904297",y1:"56.5004",x2:"113.649",y2:"56.5004",gradientUnits:"userSpaceOnUse",children:[(0,l.jsx)("stop",{stopColor:"#B473F5"}),(0,l.jsx)("stop",{offset:"1",stopColor:"#E292AA"})]}),(0,l.jsxs)("linearGradient",{id:"paint0_linear_684_72736",x1:"0.904236",y1:"57.0796",x2:"113.649",y2:"57.0796",gradientUnits:"userSpaceOnUse",children:[(0,l.jsx)("stop",{stopColor:"#B473F5"}),(0,l.jsx)("stop",{offset:"1",stopColor:"#E292AA"})]}),(0,l.jsxs)("linearGradient",{id:"paint0_linear_1055_83179",x1:"0.904236",y1:"56.5005",x2:"113.649",y2:"56.5005",gradientUnits:"userSpaceOnUse",children:[(0,l.jsx)("stop",{stopColor:"#B473F5"}),(0,l.jsx)("stop",{offset:"1",stopColor:"#E292AA"})]}),(0,l.jsxs)("linearGradient",{id:"paint0_linear_1055_83268",x1:"0.904236",y1:"57.2461",x2:"113.649",y2:"57.2461",gradientUnits:"userSpaceOnUse",children:[(0,l.jsx)("stop",{stopColor:"#B473F5"}),(0,l.jsx)("stop",{offset:"1",stopColor:"#E292AA"})]})]}),(0,l.jsxs)("g",{filter:a?void 0:"url(#filter0_d_1282_11577)",transform:"translate(50, 50) scale(.8) translate(-44, -30)",children:[(0,l.jsx)("path",{d:"M47.5359 37.8795C51.0149 37.8795 53.8352 35.0592 53.8352 31.5801C53.8352 28.1011 51.0149 25.2808 47.5359 25.2808C44.0568 25.2808 41.2365 28.1011 41.2365 31.5801C41.2365 35.0592 44.0568 37.8795 47.5359 37.8795Z",fill:a?"url(#paint2_linear_1986_8686)":"url(#paint0_linear_1282_11577)"}),(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22.3385 6.38281C20.599 6.38281 19.1889 7.79297 19.1889 9.53248C19.1889 11.272 20.599 12.6821 22.3385 12.6821H31.7875C33.527 12.6821 34.9372 14.0923 34.9372 15.8318C34.9372 17.5713 33.527 18.9815 31.7875 18.9815L17.614 18.9815C15.8745 18.9815 14.4644 20.3916 14.4644 22.1311C14.4644 23.8706 15.8745 25.2808 17.614 25.2808L25.4882 25.2808C27.2277 25.2808 28.6379 26.691 28.6379 28.4305C28.6379 30.17 27.2277 31.5801 25.4882 31.5801H19.1889C17.4494 31.5801 16.0392 32.9903 16.0392 34.7298C16.0392 36.4693 17.4494 37.8795 19.1889 37.8795H23.1324C25.9295 48.7472 35.7949 56.7774 47.5359 56.7774C61.4519 56.7774 72.7332 45.4962 72.7332 31.5801C72.7332 17.664 61.4519 6.38281 47.5359 6.38281H22.3385ZM47.5359 44.1788C54.4939 44.1788 60.1345 38.5382 60.1345 31.5801C60.1345 24.6221 54.4939 18.9815 47.5359 18.9815C40.5778 18.9815 34.9372 24.6221 34.9372 31.5801C34.9372 38.5382 40.5778 44.1788 47.5359 44.1788Z",fill:a?"url(#paint1_linear_1986_8686)":"url(#paint1_linear_1282_11577)"}),(0,l.jsx)("path",{d:"M8.16505 25.2808C9.90456 25.2808 11.3147 23.8706 11.3147 22.1311C11.3147 20.3916 9.90456 18.9815 8.16505 18.9815H6.59022C4.8507 18.9815 3.44055 20.3916 3.44055 22.1311C3.44055 23.8706 4.8507 25.2808 6.59022 25.2808H8.16505Z",fill:a?"url(#paint0_linear_1986_8686)":"url(#paint2_linear_1282_11577)"})]}),(0,l.jsx)("g",{width:"65",transform:"translate(50, 50) scale(0.81) translate(-26, -42)",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M12.6686 60.7298L10.9101 55.7911C10.8254 55.5372 10.6626 55.3163 10.4448 55.1597C10.227 55.0032 9.96524 54.9189 9.69671 54.9189C9.42818 54.9189 9.16646 55.0032 8.94866 55.1597C8.73086 55.3163 8.56804 55.5372 8.48326 55.7911L6.85565 60.7298C6.7922 60.9105 6.6887 61.0747 6.55284 61.2101C6.41699 61.3455 6.25226 61.4487 6.07091 61.5119L1.04275 63.1485C0.793091 63.2361 0.576874 63.3988 0.423928 63.6141C0.270981 63.8294 0.188843 64.0868 0.188843 64.3506C0.188843 64.6144 0.270981 64.8717 0.423928 65.087C0.576874 65.3023 0.793091 65.465 1.04275 65.5527L5.94012 67.2616C6.12147 67.3249 6.2862 67.428 6.42205 67.5634C6.55791 67.6988 6.66141 67.863 6.72486 68.0437L8.42513 72.91C8.50991 73.1639 8.67273 73.3848 8.89053 73.5414C9.10833 73.6979 9.37005 73.7822 9.63858 73.7822C9.90711 73.7822 10.1688 73.6979 10.3866 73.5414C10.6044 73.3848 10.7672 73.1639 10.852 72.91L12.6686 68.0437C12.732 67.863 12.8355 67.6988 12.9714 67.5634C13.1072 67.428 13.2719 67.3249 13.4533 67.2616L18.3507 65.5527C18.6003 65.465 18.8165 65.3023 18.9695 65.087C19.1224 64.8717 19.2046 64.6144 19.2046 64.3506C19.2046 64.0868 19.1224 63.8294 18.9695 63.6141C18.8165 63.3988 18.6003 63.2361 18.3507 63.1485L13.3952 61.4395C13.2318 61.377 13.083 61.2818 12.958 61.1598C12.833 61.0377 12.7345 60.8914 12.6686 60.7298Z",fill:"white",fillOpacity:"0.8"})})]})};var em=s(915588);let ex="url(#gradient)",ep=e=>{let{percentage:t=0,children:s,animationClassName:i,initialPercentage:a=0,progressCircleStrokeSize:r=2,progressCircleVariation:c,progressCircleStroke:o}=e,d=43+r/2,u=2*Math.PI*d,[m,x]=n.useState(a);n.useEffect(()=>{let e=setTimeout(()=>{x(t)},200);return()=>clearTimeout(e)},[t]);let p=(0,v.Ay)(),h=(0,j.q)(p),g=(e=>{switch(e){case eg.NITRO_GEM:case eg.AVATAR_DECO:return"var(--background-base-low)";case eg.NITRO_LOGO:return"var(--premium-tier-2-purple)";default:return}})(c),f=((e,t)=>{switch(e){case eg.NITRO_LOGO:return t?"0.3":"0.2";case eg.NITRO_GEM:case eg.AVATAR_DECO:default:return}})(c,h),N=o??((e,t)=>{switch(t){case eg.NITRO_GEM:case eg.AVATAR_DECO:return ex;case eg.NITRO_LOGO:return e?"url(#gradient_nitro_logo)":ex;default:return}})(h,c);return(0,l.jsxs)("div",{className:em.Ap,children:[(0,l.jsxs)("svg",{viewBox:"0 0 100 100",className:em.fB,children:[(0,l.jsx)("circle",{className:c===eg.NITRO_GEM||c===eg.AVATAR_DECO?em.F3:void 0,fill:"transparent",strokeWidth:r,r:`${d}`,cx:"50%",cy:"50%",stroke:g,strokeOpacity:f}),(0,l.jsx)("circle",{stroke:N,strokeWidth:r,strokeLinecap:"round",strokeDasharray:`${u} ${u}`,className:i,style:{strokeDashoffset:(1-m/100)*u},r:`${d}`,cx:"50%",cy:"50%"})]}),(0,l.jsxs)("svg",{width:"0",height:"0",children:[(0,l.jsxs)("linearGradient",{id:"gradient",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[(0,l.jsx)("stop",{offset:"0%",style:{stopColor:"#FFBDF2"}}),(0,l.jsx)("stop",{offset:"100%",style:{stopColor:"#E742E1"}})]}),(0,l.jsxs)("linearGradient",{id:"gradient_nitro_logo",x1:"2.99995",y1:"67.6298",x2:"132.55",y2:"67.6298",gradientUnits:"userSpaceOnUse",children:[(0,l.jsx)("stop",{stopColor:"#F9A0E8"}),(0,l.jsx)("stop",{offset:"1",stopColor:"#E742E1"})]}),(0,l.jsxs)("linearGradient",{id:"dark-purple-gradient",x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[(0,l.jsx)("stop",{offset:"0%",style:{stopColor:"#241731",stopOpacity:1}}),(0,l.jsx)("stop",{offset:"100%",style:{stopColor:"#241731",stopOpacity:1}})]})]}),(0,l.jsx)("div",{className:em.Vw,children:s})]})};var eh=s(170236),eg=((i={})[i.NITRO_GEM=0]="NITRO_GEM",i[i.NITRO_LOGO=1]="NITRO_LOGO",i[i.AVATAR_DECO=2]="AVATAR_DECO",i);let ej=e=>{let{avatarDecorationLegacyAssetId:t,avatarDecorationSkuId:s,avatarDecoAssetDescription:i}=e,a=n.useMemo(()=>(0,ec.A)({legacyAssetId:t,skuId:s,size:q._3.SIZE_120,canAnimate:!1}),[t,s]);return(0,l.jsx)("div",{className:eh.Q7,children:(0,l.jsx)("div",{className:eh.Nk,children:null!=a&&(0,l.jsx)("img",{className:eh.CH,alt:i,src:a})})})},ef=e=>{let{showAnimations:t=!0,iconClassName:s,staticPercentage:i,innerCircleClassName:n,progressCircleStrokeSize:a,backgroundCircleSize:c,percentage:o,initialPercentage:d,progressCircleVariation:u=0,avatarDecorationLegacyAssetId:x,avatarDecorationSkuId:p,avatarDecoAssetDescription:h,ellipseOpacity:g,customAnimationClassName:j,circleColor:f,circleStroke:N}=e,A=(0,m.bG)([er.A],()=>er.A.useReducedMotion),_=t&&!A;return(0,l.jsx)("div",{className:r()(eh.G3,s),children:(0,l.jsx)(ep,{animationClassName:r()(eh._0,{[eh.uJ]:_,[j??""]:_}),progressCircleStroke:N,progressCircleStrokeSize:a,percentage:i??o,initialPercentage:i??d,progressCircleVariation:u,children:(()=>{switch(u){case 0:return(0,l.jsx)(ed,{className:_?eh.Ow:void 0,backgroundColor:r()(eh.vH,n),backgroundCircleSize:c});case 1:return(0,l.jsx)(eu,{circleColor:f,ellipseOpacity:g});case 2:if(null!=p)return(0,l.jsx)(ej,{avatarDecorationLegacyAssetId:x,avatarDecorationSkuId:p,avatarDecoAssetDescription:h});return null;default:return null}})()})})};var eN=s(375708),eA=s(652215),e_=s(694354);let eC=e=>{let{userRecord:t,placement:s}=e,{avatarSrc:i,eventHandlers:n}=(0,es.A)({userId:t?.id,size:q._3.SIZE_32,animateOnHover:!0}),a=null!=t,r=a?(0,l.jsx)($.eu,{src:i,"aria-label":t.username,size:q._3.SIZE_32,...n}):(0,l.jsx)(N.D,{variant:"heading-md/semibold",className:e_.n5,children:s});return(0,l.jsx)(J.m,{text:eN.intl.string(eN.t.UnKHdo),shouldShow:!a,children:(0,l.jsx)("div",{className:e_.Lg,children:r})})},eE=e=>{let{numSentReferrals:t,placement:s}=e;return(0,l.jsxs)("div",{className:e_.Ip,children:[(0,l.jsx)("div",{className:e_.Ej}),(0,l.jsx)("div",{className:r()({[e_.ch]:t>s,[e_.q_]:t===s})})]})},ev=e=>{let{userRecords:t}=e,s=t.length,i=s<1?null:t[0],n=s<2?null:t[1],a=s<3?null:t[2];return(0,l.jsxs)("div",{className:e_.ZM,children:[(0,l.jsx)(eC,{userRecord:i,placement:1}),(0,l.jsx)(eE,{numSentReferrals:s,placement:1}),(0,l.jsx)(eC,{userRecord:n,placement:2}),(0,l.jsx)(eE,{numSentReferrals:s,placement:2}),(0,l.jsx)(eC,{userRecord:a,placement:3})]})},eI=()=>{let e=(0,m.bG)([en.A],()=>en.A.getRecipientStatus()),{referralSentUsers:t}=(0,ea.J)(),i=n.useMemo(()=>t.map(e=>new ei.A(e)),[t]),a={redeemed:0,converted:0,sent:e.size};e.forEach(e=>{e===el.aK.REDEEMED&&a.redeemed++,e===el.aK.CONVERTED&&(a.redeemed++,a.converted++)});let c=a.sent===ea.Z,o=F.A.getArticleURL(eA.MVz.REFERRAL_PROGRAM),{analyticsLocations:d}=(0,R.Ay)(I.A.PREMIUM_MARKETING_REFERALL_PROGRAM_PROGRESS_BAR),u=n.useRef(null),x=a.sent/ea.Z*100,p=(0,l.jsxs)("div",{className:e_.hE,children:[(0,l.jsx)(ef,{percentage:x,progressCircleVariation:eg.NITRO_LOGO,iconClassName:e_.ER}),(0,l.jsxs)("div",{className:e_.Ns,children:[(0,l.jsx)(N.D,{variant:"heading-xl/extrabold",className:e_.R0,children:(e=>{let{hasSentAll:t}=e;return eN.intl.string(eN.t.USo4s7)})({hasSentAll:c})}),(0,l.jsx)(ev,{userRecords:i}),(0,l.jsx)(A.E,{variant:"text-sm/normal",children:(e=>{let{helpdeskArticle:t,referralsStatuses:s}=e;return(e=>{let{hasSentAll:t,hasSentAtLeastOne:s,helpdeskArticle:i}=e;return t?eN.intl.format(eN.t["TYu+MH"],{helpdeskArticle:i}):eN.intl.format(eN.t["omMr+V"],{helpdeskArticle:i})})({hasSentAll:s.sent>=ea.Z,hasSentAtLeastOne:s.sent>=1,helpdeskArticle:t})})({helpdeskArticle:o,referralsStatuses:a})}),(0,l.jsx)("div",{className:e_.Fb,children:(0,l.jsx)(et.wL,{"data-migration-pending":!0,className:e_.r$,color:f.XD.CUSTOM,onClick:()=>(e=>{let{analyticsLocations:t}=e;B.default.track(eA.HAw.REFERRAL_PROGRAM_SHARE_MODAL_CTA_CLICKED,{location_stack:t}),(0,ee.openModalLazy)(async()=>{let{default:e}=await Promise.all([s.e("33023"),s.e("89746")]).then(s.bind(s,426544));return s=>(0,l.jsx)(e,{...s,sourceAnalyticsLocations:t})})})({analyticsLocations:d}),onlyShineOnHover:!0,children:(0,l.jsxs)("div",{className:e_.Zn,children:[(0,l.jsx)("img",{src:"/assets/3b9b1649f78941df.svg",alt:"",className:e_.QH}),c?eN.intl.string(eN.t.SY9tyI):eN.intl.string(eN.t.Lm2nFc)]})})})]})]}),h=a.redeemed===ea.Z;return(0,l.jsx)(R.f5,{value:d,children:(0,l.jsx)("div",{className:r()(e_.kL,{[e_.AP]:h}),children:(0,l.jsx)("div",{ref:u,className:r()(e_.d_,{[e_.kS]:h}),children:p})})})};var eR=s(194509),eT=s(65470),eb=s(465794),eM=s(774774),ey=s(156601),eS=s(860839),eP=s(788868),eD=s(88001),eO=s(613741);let eG="to_premium_home_button",eL="premium home page",ew="gifting_button",ek="payment modal";function eU(e){let{premiumSubscription:t,isDiscountApplied:s,activeDiscountInfo:i,theme:n}=e,a=t.hasActiveTrial,r=t.planIdFromItems===eP.gD.PREMIUM_YEAR_TIER_2,c=s||a,d=null!=t.trialEndsAt?o()(t.trialEndsAt).diff(o()(),"d"):0,u=eP.hd[t.planIdFromItems],m=H.Ay.formatPriceString(H.Ay.getDefaultPrice(u.id),u.interval);return c?(0,l.jsxs)(l.Fragment,{children:[(a||!r)&&(0,l.jsx)(eM.HU,{text:a?eN.intl.string(eN.t.qYKftX):eN.intl.string(eN.t.EyjDRE),className:eO.uS,colorOptions:(0,j.M)(n)?eM.at.PREMIUM_TIER_2_WHITE_FILL:eM.at.PREMIUM_TIER_2_OLD_GRADIENT_FILL}),(a||!r)&&(0,l.jsx)("div",{className:eO.on}),(0,l.jsx)(N.D,{variant:"heading-md/normal",color:"always-white",className:eO.KB,children:a?eN.intl.format(eN.t["2CGBri"],{remainingTime:d,price:m}):r?eN.intl.format(eN.t["+qqh6g"],{percent:i?.percentage??eP.Cq,regularPrice:m}):eN.intl.formatToPlainString(eN.t["3ZiutU"],{percent:i?.percentage??eP._$,regularPrice:m,numMonths:i?.duration??eP.OJ})})]}):(0,l.jsx)(ey.A,{variant:void 0,subscriptionTier:eP.pe.TIER_2,interval:u.interval})}function eB(){let e=(0,z.k5)(),t=(0,z.nf)(),s=(0,v.Ay)(),i=(0,m.bG)([k.A],()=>k.A.getPremiumTypeSubscription()),n=(0,m.bG)([w.default],()=>w.default.getCurrentUser()),a=n?.isPremiumWithPremiumGroup(),c=(0,M.A)(),o=(0,V.ds)(),d=null!==i&&null!==i.planIdFromItems;if(!d&&!c.isFractionalPremiumActive&&!a)return null;let u=c.isFractionalPremiumActive,x=null!==i&&i.hasActiveTrial;return(0,l.jsxs)("div",{className:r()(eO.$Y,{[eO.J5]:e||x}),children:[(0,l.jsxs)("div",{className:eO.jp,children:[a?(0,l.jsx)(N.D,{variant:"display-md",color:"always-white",className:eO._K,children:(0,eD.DP)()}):(0,l.jsx)(U.A,{className:eO.TJ}),a?(0,l.jsx)("div",{style:{marginBottom:"18px"}}):u&&!o?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(eM.e4,{text:eN.intl.string(eN.t.uXF4c4),className:eO.rd,colorOptions:eM.at.PREMIUM_TIER_2_OLD_GRADIENT_FILL}),(0,l.jsx)(N.D,{variant:"heading-md/normal",color:"always-white",className:eO.sQ,children:eN.intl.format(eN.t.sK7fGl,{helpCenterLink:F.A.getArticleURL(eA.MVz.FRACTIONAL_PREMIUM_ABOUT)})})]}):d?(0,l.jsx)(eU,{premiumSubscription:i,isDiscountApplied:e,activeDiscountInfo:t,theme:s}):o?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(eM.HU,{text:eN.intl.string(eN.t.qYKftX),className:eO.uS,colorOptions:(0,j.M)(s)?eM.at.PREMIUM_TIER_2_WHITE_FILL:eM.at.PREMIUM_TIER_2_OLD_GRADIENT_FILL}),(0,l.jsx)(N.D,{variant:"heading-md/normal",color:"always-white",className:eO.KB,children:eN.intl.format(eN.t["/SfHwl"],{weeks:1})})]}):null,(0,l.jsx)(eS.ZP,{featureSet:n?.isPremiumGroupPrimary()?eS.Nz.PREMIUM_GROUP_PRIMARY:n?.isPremiumGroupMember()?eS.Nz.PREMIUM_GROUP_MEMBER:u?eS.Nz.FRACTIONAL_PREMIUM:eS.Nz.DEFAULT}),u&&!d?(0,l.jsxs)(p.e,{fullWidth:!0,direction:"vertical",children:[(0,l.jsx)(eb.A,{defaultTextOverride:o?eN.intl.string(eN.t.YScQSF):eN.intl.string(eN.t["0b3YRn"])}),(0,l.jsx)(h.$,{onClick:()=>{B.default.track(eA.HAw.PREMIUM_SETTINGS_INTERACTED,{cta_type:eG,target:eL}),(0,G.default)(),(0,D.pX)(eA.BVt.APPLICATION_STORE)},variant:"overlay-secondary",fullWidth:!0,size:"md",text:o?eN.intl.string(eN.t.VR2iVB):eN.intl.string(eN.t.T1aUAX)})]}):(0,l.jsxs)(p.e,{fullWidth:!0,direction:"vertical",children:[(0,l.jsx)(h.$,{variant:"overlay-primary",fullWidth:!0,onClick:()=>{B.default.track(eA.HAw.PREMIUM_SETTINGS_INTERACTED,{cta_type:eG,target:eL}),(0,G.default)(),(0,D.pX)(eA.BVt.APPLICATION_STORE)},text:eN.intl.string(eN.t.VR2iVB),size:"md"}),(0,l.jsx)(h.$,{variant:"overlay-secondary",onClick:()=>{B.default.track(eA.HAw.PREMIUM_SETTINGS_INTERACTED,{cta_type:"to_subscriptions_button",target:"subscriptions settings"}),(0,L.openUserSettings)(O.X.SUBSCRIPTIONS_PANEL)},text:eN.intl.string(eN.t["9uDy6C"]),fullWidth:!0,size:"md"})]})]}),(0,l.jsx)("div",{className:eO.ah,children:(0,l.jsx)("img",{className:eO.ah,alt:"",src:"/assets/3aaa2c2d1874c196.svg"})})]})}function eF(e){let{className:t,config:s}=e,i=(0,Y.T)(s.asset),a=(0,Y.T)(s.backgroundAsset),c=(0,W.gc)(a),o=n.useMemo(()=>{let e=s.gradient;if(null!=e&&null!=e.colors&&!(e.colors.length<2))return(0,W.K5)({gradient:e.colors,angle:e.angle},{defaultAngle:180})},[s.gradient]),d=(0,W.x)(c,o),u={color:null!=s.textColor&&""!==s.textColor?s.textColor:"var(--always-white)"};return(0,l.jsxs)("div",{className:r()(eO.WR,t),style:d,children:[null!=i&&(0,l.jsx)("img",{alt:"",className:eO.TB,"aria-hidden":!0,src:i}),(0,l.jsxs)("div",{className:eO.QT,children:[(0,l.jsx)(N.D,{className:eO.u_,style:u,variant:"heading-lg/extrabold",children:s.header}),(0,l.jsx)(A.E,{className:eO.Oi,style:u,variant:"text-xs/medium",children:s.body}),null!=s.additionalTerms&&(0,l.jsx)(A.E,{className:eO.KW,style:u,variant:"text-xxs/normal",children:s.additionalTerms}),(0,l.jsx)(eT.A,{variant:"primary",size:"md",onClick:()=>{B.default.track(eA.HAw.PREMIUM_SETTINGS_INTERACTED,{cta_type:ew,target:ek})}})]})]})}function eH(){return(0,l.jsxs)("div",{className:eO.T1,children:[(0,l.jsx)("img",{className:eO.GY,alt:"",src:"/assets/9f5bdd034cc313ae.svg"}),(0,l.jsxs)("div",{className:eO.b4,children:[(0,l.jsx)(N.D,{className:eO.Vz,variant:"heading-xl/extrabold",children:eN.intl.string(eN.t["3KomGa"])}),(0,l.jsx)(A.E,{className:eO.Oi,variant:"text-sm/normal",children:eN.intl.string(eN.t.yQ06u1)}),(0,l.jsx)(eR.A,{className:r()(eO.Tp,eO._c),textOptions:{textOverride:eN.intl.string(eN.t.Ve9Ge6),textClassName:eO.VV},color:f.$n.Colors.CUSTOM,onClick:()=>{B.default.track(eA.HAw.PREMIUM_SETTINGS_INTERACTED,{cta_type:ew,target:ek})}})]})]})}let ez=function(){let e=(0,b.Hp)(),{analyticsLocations:t}=(0,R.Ay)(I.A.PREMIUM_SETTINGS),s=(0,m.bG)([w.default],()=>w.default.getCurrentUser()),i=(0,m.bG)([k.A],()=>k.A.getPremiumTypeSubscription()),a=(0,m.bG)([k.A],()=>k.A.hasFetchedSubscriptions()),r=(0,y.Y)(eP.T7),[c,o]=n.useState(!0),p=(0,M.A)({forceFetch:!0}),h=(0,m.bG)([Z.A],()=>{let e=Z.A.getMarketingComponentByType(u.C.BILLING_SETTINGS_NITRO_GIFT_BANNER);return null==e||"billingSettingsNitroGiftBanner"!==e.properties.properties.oneofKind?null:e.properties.properties.billingSettingsNitroGiftBanner}),j=!(d.Fr||d.v1)&&null!=h,f=n.useRef(null);(0,X.i)();let N=(0,Q.m)();n.useEffect(()=>{C.h.wait(async()=>{e||await Promise.all([T.hP(),T.$o(),(0,E.zS)(null,null,eA.tF5.DISCOVERY)]),o(!1)})},[e]);let[A,v]=n.useState(!1);if(e)return(0,l.jsx)(S.uK,{});let D=a&&null!==i&&r,O=p.fetched&&p.isFractionalPremiumActive,G=s?.isPremiumWithPremiumGroup();if(!D&&!O&&!c&&!G)return(0,l.jsx)(P.A,{title:eN.intl.string(eN.t.dyq9TR),note:null});if(!D&&!O&&!G||c)return(0,l.jsx)(_.y,{});let L=!!i?.hasActiveTrial;return(0,l.jsx)(R.f5,{value:t,children:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(g.B,{direction:"vertical",gap:40,children:[j&&(0,l.jsx)(eF,{config:h}),(0,l.jsx)(eB,{}),N&&(0,l.jsx)(eI,{}),!j&&(0,l.jsx)(eH,{}),(0,l.jsx)(K.A,{hideCTAs:!0,headingOverride:eN.intl.string(eN.t.dnVvQS),hidePill:!L,selectedPlanColumnClassName:eO.JG,selectedPlanTier:eP.PremiumTypes.TIER_2})]}),(0,l.jsx)(x.L,{innerRef:f,onChange:e=>{e&&!A&&(B.default.track(eA.HAw.PREMIUM_MARKETING_SURFACE_REACHED_BOTTOM,{location_stack:t}),v(!0))},children:(0,l.jsx)("div",{ref:f,className:eO._Z})})]})})}}