{"version":3,"file":"GlowWrapper.BJNq-Ryd.mjs","names":["useRef","useState","useEffect","startTransition","_jsxs","_jsx","__esmMin","init_npm_react_18_3_1","te","ce","init_jsx_runtime","c","p","_e","de","addPropertyControls","ControlType","init_framer_BWzg2IRg","useInView","init_framer_motion_1EwlFBEG","GlowWrapper","props","content","showGlow","glowSize","glowIntensity","color1","color2","color3","backgroundColor","padding","borderRadius","animationSpeed","transitionDuration","style","glowRef","isInView","hasAnimated","setHasAnimated","isFillWidth","isFillHeight","init_GlowWrapper"],"sources":["https:/framerusercontent.com/modules/D0bbAjVLGCA9r7DPWBG5/Bpc2O9YOopYrDJ9vXbM6/GlowWrapper.js"],"sourcesContent":["// Glow wrapper component with slot for child components\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useInView}from\"framer-motion\";import{useRef,useEffect,useState,startTransition}from\"react\";/**\n * @framerIntrinsicWidth 300\n * @framerIntrinsicHeight 200\n * \n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function GlowWrapper(props){const{content,showGlow,glowSize,glowIntensity,color1,color2,color3,backgroundColor,padding,borderRadius,animationSpeed,transitionDuration,style}=props;const glowRef=useRef(null);const isInView=useInView(glowRef,{once:true,amount:.3});const[hasAnimated,setHasAnimated]=useState(false);const isFillWidth=style?.width===\"100%\";const isFillHeight=style?.height===\"100%\";useEffect(()=>{if(isInView&&!hasAnimated&&showGlow){startTransition(()=>setHasAnimated(true));}},[isInView,hasAnimated,showGlow]);return /*#__PURE__*/_jsxs(\"div\",{ref:glowRef,style:{...style,position:\"relative\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",minWidth:5,minHeight:5,overflow:\"visible\",pointerEvents:\"auto\",// CSS variables for dynamic animation values\n[\"--glow-size\"]:`${glowSize}px`,[\"--glow-intensity\"]:glowIntensity,[\"--transition-duration\"]:`${transitionDuration}s`},children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                    @keyframes glowPulse {\n                        0%, 100% {\n                            transform: translate(-50%, -50%) scaleX(1) scaleY(1);\n                        }\n                        50% {\n                            transform: translate(-50%, -50%) scaleX(1.02) scaleY(1.02);\n                        }\n                    }\n                `}),showGlow&&/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",top:\"50%\",left:\"50%\",transform:\"translate(-50%, -50%)\",width:`calc(100% + ${glowSize*2}px)`,height:`calc(100% + ${glowSize*2}px)`,borderRadius:borderRadius,background:`radial-gradient(ellipse at center, ${color1}, ${color2}, ${color3}, transparent)`,pointerEvents:\"none\",filter:`blur(${glowSize*1.2}px)`,opacity:hasAnimated?glowIntensity*.1:0,animation:`glowPulse ${animationSpeed}s ease-in-out infinite`,zIndex:0,transition:`opacity ${hasAnimated?transitionDuration:.8}s ease-out, width ${transitionDuration}s ease-out, height ${transitionDuration}s ease-out, filter ${transitionDuration}s ease-out`}}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:isFillWidth?\"100%\":\"fit-content\",height:isFillHeight?\"100%\":\"fit-content\",minWidth:5,minHeight:5,display:\"inline-flex\",alignItems:\"center\",justifyContent:\"center\",padding:padding,borderRadius:borderRadius,background:backgroundColor,zIndex:1,pointerEvents:\"auto\"},children:/*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:isFillWidth?\"100%\":\"auto\",height:isFillHeight?\"100%\":\"auto\",display:\"inline-flex\",alignItems:\"center\",justifyContent:\"center\",pointerEvents:\"auto\"},children:content})})]});}GlowWrapper.defaultProps={content:null,showGlow:true,glowSize:60,glowIntensity:10,color1:\"#0047FF\",color2:\"#0066FF\",color3:\"#0088FF\",backgroundColor:\"#000000\",padding:20,borderRadius:50,animationSpeed:3,transitionDuration:1.5};addPropertyControls(GlowWrapper,{content:{type:ControlType.ComponentInstance,title:\"Glow Content\"},showGlow:{type:ControlType.Boolean,title:\"Show Glow\",defaultValue:true,enabledTitle:\"On\",disabledTitle:\"Off\"},color1:{type:ControlType.Color,title:\"Color 1\",defaultValue:\"#0047FF\",hidden:({showGlow})=>!showGlow},color2:{type:ControlType.Color,title:\"Color 2\",defaultValue:\"#0066FF\",hidden:({showGlow})=>!showGlow},color3:{type:ControlType.Color,title:\"Color 3\",defaultValue:\"#0088FF\",hidden:({showGlow})=>!showGlow},glowSize:{type:ControlType.Number,title:\"Glow Size\",defaultValue:60,min:1,max:200,step:5,unit:\"px\",hidden:({showGlow})=>!showGlow},glowIntensity:{type:ControlType.Number,title:\"Glow Intensity\",defaultValue:10,min:1,max:15,step:.5,hidden:({showGlow})=>!showGlow},animationSpeed:{type:ControlType.Number,title:\"Animation Speed\",defaultValue:3,min:1,max:10,step:.5,unit:\"s\",hidden:({showGlow})=>!showGlow},transitionDuration:{type:ControlType.Number,title:\"Transition Time\",defaultValue:1.5,min:.1,max:5,step:.1,unit:\"s\",hidden:({showGlow})=>!showGlow},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#000000\"},padding:{type:ControlType.Number,title:\"Padding\",defaultValue:20,min:0,max:100,step:5,unit:\"px\"},borderRadius:{type:ControlType.Number,title:\"Border Radius\",defaultValue:50,min:0,max:200,step:5,unit:\"px\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"GlowWrapper\",\"slots\":[\"content\"],\"annotations\":{\"framerIntrinsicHeight\":\"200\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"300\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./GlowWrapper.map"],"mappings":"A,wPAOG,SAAwBoB,EAAYC,EAAM,CAAC,GAAK,CAACC,UAAQC,WAASC,WAASC,gBAAcC,SAAOC,SAAOC,SAAOC,kBAAgBC,UAAQC,eAAaC,iBAAeC,qBAAmBC,SAAOb,EAAYc,EAAQnC,EAAO,IAAI,EAAQoC,EA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