Build 541864stable
Module 872725
1,145 characters · in 25a7e063aeebe2ee.jsDependencies
Source Raw
function(e,t,s){s.d(t,{A:()=>x});var r=s(627968),l=s(64700),a=s(503698),i=s.n(a),n=s(524007),d=s(844222),o=s(594639),c=s(105596),u=s(359778),m=s(544888);let h={HoverLightmode:{posy:"number",posx:"number"},BaseGlow:{},ButtonFillLightmode:{},HoverDarkmode:{posy:"number",posx:"number"},BaseGlowRemapped:{},ButtonFillDarkmode:{}},C={},x=e=>{let{children:t,id:s,tabIndex:a,className:x,cardClassName:p,cardStyle:_=C,cardType:g,artboard:R="BaseGlowRemapped",fit:j="layout",glowing:E=!1,glowAmount:f=8,blurAmount:N=30,hueRotate:v=0,isReducedMotion:A,onMouseEnter:P}=e,D=l.useRef(null),I=l.useRef(null),{status:b,buffer:y}=(0,c.CE)(E?n.A:null),w=l.useContext(d.C),O=A??w.reducedMotion.enabled,S={"--custom-glow-amount":`${f}px`,"--custom-blur-amount":`${N}px`,"--custom-hue-rotate":`${v}deg`,"--custom-glow-opacity":+(0!==f)};return(0,r.jsxs)("div",{id:s,ref:D,tabIndex:a,className:i()(m.k,x),style:S,onMouseEnter:P,children:[E&&b!==c.BW.Loading&&(0,r.jsx)(o.w,{buffer:y,artboard:R,artboardProperties:h,eventTargetRef:D,className:m.Q,ref:I,fit:j,withReducedMotion:O?"halt":"play"}),(0,r.jsx)(u.Z,{type:g??u.s.CUSTOM,className:p,style:_,children:t})]})}}