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