Build 555975stable
Module 442734
1,320 characters · in e9175405ea876908.jsDependencies
Source Raw
function(t,e,n){n.d(e,{e:()=>x});var s=n(627968),i=n(661531),a=n(602853),o=n(939249),l=n(834730),r=n(403581),u=n(998304),c=n(31587),C=n(576761),E=n(617986),d=n(652215),A=n(375708),T=n(900601);function x(t){let{onClick:e,questId:n,orbMultiplierEligibility:x}=t,_=(0,c.ZP)(n),I=(0,a.r)(i.A.colors.EXPRESSIVE_GRADIENT_NITRO_PINK_START,d.NJ8.DARK).hex(),g=(0,a.r)(i.A.colors.EXPRESSIVE_GRADIENT_TENURE_BADGE_DIAMOND_END,d.NJ8.DARK).hex(),L=(0,a.r)(i.A.colors.BACKGROUND_BASE_LOWEST,d.NJ8.DARK).hex(),O=(0,a.r)(i.A.colors.BACKGROUND_BRAND).hex(),f=(0,u.cb)(I,.5),h=(0,u.cb)(g,.5),N=x===C.MA.CREPE,R=(0,C.B9)(x);if(null==_)return null;let y=R?A.intl.formatToPlainString(A.t.l2UfLG,{bonusOrbMultiplier:_}):A.intl.formatToPlainString(A.t["G+mKoo"],{bonusOrbMultiplier:_}),p=()=>{(0,E.gC)(_,x),e?.()};return N?(0,s.jsx)(o.D,{onClick:p,"aria-label":y,children:(0,s.jsx)("div",{className:T._,style:{"--custom-pill-crepe-bg":O},children:(0,s.jsx)(l.E,{variant:"text-xs/semibold",color:"always-white",children:y})})}):(0,s.jsx)(o.D,{onClick:p,"aria-label":y,children:(0,s.jsxs)("div",{className:T.I,style:{"--custom-pill-gradient-start":f,"--custom-pill-gradient-end":h,"--custom-pill-base-color":L},children:[(0,s.jsx)(r.t,{size:"xs",color:"white"}),(0,s.jsx)(l.E,{variant:"text-xs/semibold",color:"always-white",children:y})]})})}}