{"version":3,"file":"GridGlow.3O2duoMR.mjs","names":[],"sources":["https:/framerusercontent.com/modules/bCji8hB7rreincm5YNrS/sfmYRtvkwgJWLHM0xFAe/GridGlow.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";const CSS=`\n@keyframes mb-gg-breathe {\n  0%, 100% { opacity: var(--mb-gg-lo); transform: scale(1); }\n  50%      { opacity: var(--mb-gg-hi); transform: scale(1.08); }\n}\n@keyframes mb-gg-halo {\n  0%, 100% { opacity: var(--mb-gg-hlo); }\n  50%      { opacity: var(--mb-gg-hhi); }\n}\n.mb-gg-run { animation: mb-gg-breathe var(--mb-gg-dur) ease-in-out infinite; will-change: opacity, transform; }\n@keyframes mb-gg-dot {\n  0%, 100% { opacity: var(--mb-gg-dlo); }\n  50%      { opacity: var(--mb-gg-dhi); }\n}\n.mb-gg-dot-run { animation: mb-gg-dot var(--mb-gg-dur) ease-in-out infinite; will-change: opacity; }\n.mb-gg-halo-run { animation: mb-gg-halo var(--mb-gg-dur) ease-in-out infinite; will-change: opacity; }\n@media (prefers-reduced-motion: reduce) { .mb-gg-run, .mb-gg-halo-run, .mb-gg-dot-run { animation: none; } }\n`;const lines=(color,w)=>`linear-gradient(to right, ${color} ${w}px, transparent ${w}px), linear-gradient(to bottom, ${color} ${w}px, transparent ${w}px)`;// Soft band of width h: transparent -> color -> transparent.\nconst halo=(color,h)=>`linear-gradient(to right, transparent 0px, ${color} ${h/2}px, transparent ${h}px), linear-gradient(to bottom, transparent 0px, ${color} ${h/2}px, transparent ${h}px)`;/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function GridGlow(props){const{corner,lineColor,lineWidth,cellSize,reach,offsetX,offsetY,lineGlow,haloColor,haloWidth,haloMin,haloMax,dotGlow,dotColor,dotGlowColor,dotSize,dotGlowSize,dotMin,dotMax,cornerGlow,glowColor,glowSize,glowMin,glowMax,breathe,duration,style}=props;const isStatic=useIsStaticRenderer();const run=breathe&&!isStatic;const sides=corner===\"Both\"?[\"left\",\"right\"]:corner===\"Top Left\"?[\"left\"]:[\"right\"];const mask=sides.map(s=>`radial-gradient(ellipse ${reach}% ${reach*1.2}% at ${s===\"right\"?\"100%\":\"0%\"} 0%, #000 0%, transparent 100%)`).join(\", \");const off=haloWidth/2-lineWidth/2;return /*#__PURE__*/_jsxs(\"div\",{\"aria-hidden\":\"true\",style:{...style,position:\"relative\",width:\"100%\",height:\"100%\",overflow:\"hidden\",pointerEvents:\"none\",[\"--mb-gg-lo\"]:glowMin,[\"--mb-gg-hi\"]:glowMax,[\"--mb-gg-hlo\"]:haloMin,[\"--mb-gg-hhi\"]:haloMax,[\"--mb-gg-dlo\"]:dotMin,[\"--mb-gg-dhi\"]:dotMax,[\"--mb-gg-dur\"]:`${duration}s`},children:[/*#__PURE__*/_jsx(\"style\",{children:CSS}),cornerGlow&&sides.map(s=>/*#__PURE__*/_jsx(\"div\",{className:run?\"mb-gg-run\":undefined,style:{position:\"absolute\",top:-glowSize/2,[s]:-glowSize/2,width:glowSize,height:glowSize,borderRadius:\"50%\",background:`radial-gradient(circle at 50% 50%, ${glowColor} 0%, transparent 65%)`,opacity:run?undefined:glowMax}},\"g\"+s)),/*#__PURE__*/_jsxs(\"div\",{style:{position:\"absolute\",inset:0,WebkitMaskImage:mask,maskImage:mask},children:[lineGlow&&/*#__PURE__*/_jsx(\"div\",{className:run?\"mb-gg-halo-run\":undefined,style:{position:\"absolute\",inset:0,backgroundImage:halo(haloColor,haloWidth),backgroundSize:`${cellSize}px ${cellSize}px`,backgroundPosition:`${offsetX-off}px ${offsetY-off}px`,opacity:run?undefined:haloMax}}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",inset:0,backgroundImage:lines(lineColor,lineWidth),backgroundSize:`${cellSize}px ${cellSize}px`,backgroundPosition:`${offsetX}px ${offsetY}px`}}),dotGlow&&/*#__PURE__*/_jsx(\"div\",{className:run?\"mb-gg-dot-run\":undefined,style:{position:\"absolute\",inset:0,backgroundImage:`radial-gradient(circle at 50% 50%, ${dotColor} 0px, ${dotColor} ${dotSize/2}px, ${dotGlowColor} ${dotSize/2+.5}px, transparent ${dotGlowSize}px)`,backgroundSize:`${cellSize}px ${cellSize}px`,backgroundPosition:`${offsetX+lineWidth/2-cellSize/2}px ${offsetY+lineWidth/2-cellSize/2}px`,opacity:run?undefined:dotMax}})]})]});}GridGlow.defaultProps={corner:\"Top Right\",lineColor:\"rgba(190, 200, 230, 0.14)\",lineWidth:1,cellSize:56,reach:55,offsetX:0,offsetY:0,lineGlow:false,haloColor:\"rgba(0, 85, 254, 0.35)\",haloWidth:8,haloMin:.35,haloMax:1,dotGlow:false,dotColor:\"rgba(110, 200, 255, 0.9)\",dotGlowColor:\"rgba(40, 140, 255, 0.28)\",dotSize:2,dotGlowSize:9,dotMin:.45,dotMax:.85,cornerGlow:true,glowColor:\"rgba(169, 135, 255, 0.45)\",glowSize:720,glowMin:.35,glowMax:.8,breathe:true,duration:6};addPropertyControls(GridGlow,{corner:{type:ControlType.Enum,title:\"Corner\",options:[\"Top Right\",\"Top Left\",\"Both\"],displaySegmentedControl:true},lineColor:{type:ControlType.Color,title:\"Grid Color\"},lineWidth:{type:ControlType.Number,title:\"Line Width\",min:.5,max:3,step:.5,unit:\"px\"},cellSize:{type:ControlType.Number,title:\"Cell Size\",min:16,max:160,step:4,unit:\"px\"},reach:{type:ControlType.Number,title:\"Grid Reach\",min:15,max:100,step:5,unit:\"%\"},offsetX:{type:ControlType.Number,title:\"Offset X\",min:-200,max:200,step:1,unit:\"px\"},offsetY:{type:ControlType.Number,title:\"Offset Y\",min:-200,max:200,step:1,unit:\"px\"},lineGlow:{type:ControlType.Boolean,title:\"Glowing Lines\"},haloColor:{type:ControlType.Color,title:\"Line Glow Color\",hidden:p=>!p.lineGlow},haloWidth:{type:ControlType.Number,title:\"Line Glow Width\",min:2,max:24,step:1,unit:\"px\",hidden:p=>!p.lineGlow},haloMax:{type:ControlType.Number,title:\"Line Glow Strength\",min:0,max:1,step:.05,hidden:p=>!p.lineGlow},haloMin:{type:ControlType.Number,title:\"Line Glow Low\",min:0,max:1,step:.05,hidden:p=>!p.lineGlow||!p.breathe},dotGlow:{type:ControlType.Boolean,title:\"Glowing Dots\"},dotColor:{type:ControlType.Color,title:\"Dot Color\",hidden:p=>!p.dotGlow},dotGlowColor:{type:ControlType.Color,title:\"Dot Glow Color\",hidden:p=>!p.dotGlow},dotSize:{type:ControlType.Number,title:\"Dot Size\",min:1,max:6,step:.5,unit:\"px\",hidden:p=>!p.dotGlow},dotGlowSize:{type:ControlType.Number,title:\"Dot Glow Size\",min:3,max:24,step:1,unit:\"px\",hidden:p=>!p.dotGlow},dotMax:{type:ControlType.Number,title:\"Dot Strength\",min:0,max:1,step:.05,hidden:p=>!p.dotGlow},dotMin:{type:ControlType.Number,title:\"Dot Low\",min:0,max:1,step:.05,hidden:p=>!p.dotGlow||!p.breathe},cornerGlow:{type:ControlType.Boolean,title:\"Corner Glow\"},glowColor:{type:ControlType.Color,title:\"Glow Color\",hidden:p=>!p.cornerGlow},glowSize:{type:ControlType.Number,title:\"Glow Size\",min:200,max:1600,step:20,unit:\"px\",hidden:p=>!p.cornerGlow},glowMax:{type:ControlType.Number,title:\"Glow Strength\",min:0,max:1,step:.05,hidden:p=>!p.cornerGlow},breathe:{type:ControlType.Boolean,title:\"Breathe\"},glowMin:{type:ControlType.Number,title:\"Breathe Low\",min:0,max:1,step:.05,hidden:p=>!p.breathe||!p.cornerGlow},duration:{type:ControlType.Number,title:\"Breathe (s)\",min:2,max:20,step:.5,hidden:p=>!p.breathe}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"GridGlow\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any\",\"framerSupportedLayoutWidth\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//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