Module 872725

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