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