{"version":3,"file":"shared-lib.CST1yfm2.mjs","names":["React.useState","metadata","siteMetadata","metadataVersion","__FramerMetadata__","metadata","siteMetadata"],"sources":["https:/framerusercontent.com/modules/3SNmAZ7tWm67uhVG8aaY/Y71iwHAqGtKjvGPqZCjK/LightEffect_4.js","https:/framerusercontent.com/modules/5Dk1Dwlo8tK2yFXp6qFD/qlHz6pz1Z6tk5GSE0Z1V/siteMetadata.js","https:/framerusercontent.com/modules/52Pmx8SJ1bSQzDZeXY39/fkVNtfQKtPrf5lnNdUWa/augiA20Il.js","https:/framerusercontent.com/modules/3PyP3IdQaPHQOhRwtxDs/CvQSPS2QYK10I3xzDeao/RSECBRsI2.js"],"sourcesContent":["/**\n * Evaluate the 2 attachments in detail and make a Framer componetn with NO background that has the same light effect as these atachments. Make it purple. The default size should be 200x200, but it should be responsive. There shoul dbe a subtle star background where stars are varying in color and go up and down in size at a subtle speed, and please make sure the stars aren't too bright. The light effect appear tohave subtle movement of the rays shining down, and to the side.\n *\n * Update: please make 200x200 the default size, but it should be responsive able to be changed to any size\n */import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";import{motion}from\"framer-motion\";/**\n * @framerIntrinsicWidth 200\n * @framerIntrinsicHeight 200\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function LightEffect(props){const{primaryColor,secondaryColor,starCount,starColor,raySpeed,rayOpacity,starOpacity,direction}=props;const isStatic=useIsStaticRenderer();// Generate stars with random positions and animation delays\nconst[stars,setStars]=React.useState([]);React.useEffect(()=>{if(!props.starsOn){setStars([]);return;}// Improved star distribution for natural night sky\nconst generatedStars=Array.from({length:starCount}).map((_,i)=>{// Use Poisson disk sampling for more even distribution\n// Fallback to random with jitter for now\nlet left,top;if(i<starCount*.7){// Clustered in upper 70% for denser sky\nleft=Math.random()*100;top=Math.random()*70+Math.random()*10// more jitter\n;}else{// Ensure some stars in lower 30%\nleft=Math.random()*100;top=70+Math.random()*30;}return{id:i,left,top,size:Math.random()*2.5+2.5,delay:Math.random()*2,duration:Math.random()*1.2+.7,initialOpacity:Math.random()*.5+.5,color:Math.random()>.6?starColor:primaryColor};});setStars(generatedStars);},[starCount,starColor,primaryColor,props.starsOn]);const isRight=direction===\"right\";// Sharper beam gradients with hard stops for defined rays\nconst sharpBeamGradient=isRight?`conic-gradient(from 200deg at 100% 0%, transparent 0deg, ${primaryColor} 7deg, transparent 12deg, ${secondaryColor} 20deg, transparent 28deg, ${primaryColor} 38deg, transparent 50deg)`:`conic-gradient(from 110deg at 0% 0%, transparent 0deg, ${primaryColor} 7deg, transparent 12deg, ${secondaryColor} 20deg, transparent 28deg, ${primaryColor} 38deg, transparent 50deg)`;const softBeamGradient=isRight?`conic-gradient(from 190deg at 100% 0%, transparent 0deg, ${primaryColor} 20deg, ${secondaryColor} 40deg, transparent 70deg)`:`conic-gradient(from 100deg at 0% 0%, transparent 0deg, ${primaryColor} 20deg, ${secondaryColor} 40deg, transparent 70deg)`;// Calculate brightness for rays and stars\n// Star Brightness should only affect stars and particles, not rays\nconst starBrightness=starOpacity;// Twinkle toggle\nconst twinkleOn=props.twinkleOn!==false;return /*#__PURE__*/_jsxs(\"div\",{style:{width:\"100%\",height:\"100%\",position:\"relative\",overflow:\"hidden\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{position:\"absolute\",top:0,left:0,width:\"100%\",height:\"100%\",zIndex:1,// Aggressive mask to prevent bottom cutoff\nmaskImage:\"linear-gradient(to bottom, black 40%, transparent 85%)\",WebkitMaskImage:\"linear-gradient(to bottom, black 40%, transparent 85%)\",pointerEvents:\"none\"},children:[/*#__PURE__*/_jsx(motion.div,{style:{position:\"absolute\",width:\"100%\",height:\"100%\",top:0,left:0,background:`radial-gradient(circle at ${isRight?\"100% 0%\":\"0% 0%\"}, ${primaryColor} 0%, transparent 40%)`,opacity:.6,filter:\"blur(40px)\"},animate:isStatic?undefined:{scale:[1,1.1,1],opacity:[.6,.7,.6]},transition:{duration:4,repeat:Infinity,ease:\"easeInOut\"}}),/*#__PURE__*/_jsx(motion.div,{style:{position:\"absolute\",top:0,left:0,width:\"100%\",height:\"100%\",background:softBeamGradient,opacity:rayOpacity*.5,filter:\"blur(30px)\",transformOrigin:isRight?\"100% 0%\":\"0% 0%\"},animate:isStatic?undefined:{scale:[1,1.05,1],opacity:[rayOpacity*.5,rayOpacity*.4,rayOpacity*.5],rotate:[0,1,0]},transition:{duration:6/raySpeed,repeat:Infinity,ease:\"easeInOut\"}}),/*#__PURE__*/_jsx(motion.div,{style:{position:\"absolute\",top:0,left:0,width:\"100%\",height:\"150%\",background:sharpBeamGradient,opacity:rayOpacity,filter:\"blur(8px)\",transformOrigin:isRight?\"100% 0%\":\"0% 0%\"},animate:isStatic?undefined:{rotate:isRight?[-2,0,-2]:[2,0,2],scale:[1,1.02,1],opacity:[rayOpacity,rayOpacity*.8,rayOpacity]},transition:{duration:5/raySpeed,repeat:Infinity,ease:\"easeInOut\"}})]}),props.starsOn&&stars.map(star=>/*#__PURE__*/_jsx(motion.div,{style:{position:\"absolute\",left:`${star.left}%`,top:`${star.top}%`,width:star.size,height:star.size,borderRadius:\"50%\",backgroundColor:star.color,zIndex:0,boxShadow:`0 0 ${star.size}px ${star.color}`,opacity:starBrightness},animate:twinkleOn&&!isStatic?{opacity:[star.initialOpacity*.5,1,star.initialOpacity*.5],scale:[.8,1.2,.8]}:{opacity:starBrightness,scale:1},transition:twinkleOn&&!isStatic?{duration:star.duration,repeat:Infinity,delay:star.delay,ease:\"easeInOut\"}:undefined},star.id))]});}addPropertyControls(LightEffect,{primaryColor:{type:ControlType.Color,title:\"Ray Color Primary\",defaultValue:\"#5999D6\"},secondaryColor:{type:ControlType.Color,title:\"Ray Color Secondary\",defaultValue:\"#4A90E2\"},direction:{type:ControlType.Enum,title:\"Ray Direction\",options:[\"left\",\"right\"],optionTitles:[\"Top Left\",\"Top Right\"],defaultValue:\"right\",displaySegmentedControl:true},rayOpacity:{type:ControlType.Number,title:\"Ray Opacity\",min:0,max:1,step:.1,defaultValue:.4},raySpeed:{type:ControlType.Number,title:\"Ray Speed\",min:.1,max:5,step:.1,defaultValue:1},starsOn:{type:ControlType.Boolean,title:\"Show Stars\",defaultValue:true},starCount:{type:ControlType.Number,title:\"Stars\",min:0,max:100,defaultValue:100,hidden:({starsOn})=>!starsOn},starColor:{type:ControlType.Color,title:\"Star Color\",defaultValue:\"#FFFFFF\",hidden:({starsOn})=>!starsOn},starOpacity:{type:ControlType.Number,title:\"Star Brightness\",min:0,max:1,step:.1,defaultValue:.4,hidden:({starsOn})=>!starsOn},twinkleOn:{type:ControlType.Boolean,title:\"Star Twinkle\",defaultValue:true,hidden:({starsOn})=>!starsOn}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"LightEffect\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerIntrinsicWidth\":\"200\",\"framerIntrinsicHeight\":\"200\",\"framerSupportedLayoutWidth\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./LightEffect_4.map","// Generated by Framer (3ad0d99)\nexport default function metadata(params,activeLocale){return{description:\"Made with Framer\",robots:\"max-image-preview:large\",title:\"My Framer Site\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// Generated by Framer (2db7bbf)\nimport siteMetadata from\"https://framerusercontent.com/modules/5Dk1Dwlo8tK2yFXp6qFD/qlHz6pz1Z6tk5GSE0Z1V/siteMetadata.js\";export default function metadata(params,activeLocale){return{breakpoints:[{hash:\"72rtr7\"}],description:siteMetadata(params,activeLocale).description,elements:{},robots:\"max-image-preview:large\",serializationId:\"framer-pkDr6\",title:siteMetadata(params,activeLocale).title||\"Home\",viewport:\"width=1200\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// Generated by Framer (2db7bbf)\nimport siteMetadata from\"https://framerusercontent.com/modules/5Dk1Dwlo8tK2yFXp6qFD/qlHz6pz1Z6tk5GSE0Z1V/siteMetadata.js\";export default function metadata(params,activeLocale){return{breakpoints:[{hash:\"1nb7uve\"}],description:siteMetadata(params,activeLocale).description,elements:{},robots:\"max-image-preview:large\",serializationId:\"framer-NwpcN\",title:siteMetadata(params,activeLocale).title||\"Preview\",viewport:\"width=1600\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"2OAUG,SAAwB,EAAY,EAAM,CAAC,GAAK,CAAC,eAAa,iBAAe,YAAU,YAAU,WAAS,aAAW,cAAY,aAAW,EAAY,EAAS,GAAqB,CACpL,CAAC,EAAM,GAAUA,EAAe,EAAE,CAAC,CAAC,MAAoB,CAAC,GAAG,CAAC,EAAM,QAAQ,CAAC,EAAS,EAAE,CAAC,CAAC,OAM2I,EALpN,MAAM,KAAK,CAAC,OAAO,EAAU,CAAC,CAAC,KAAK,EAAE,IAAI,CAE/D,IAAI,EAAK,EAGuC,OAHhC,EAAE,EAAU,IAC5B,EAAK,KAAK,QAAQ,CAAC,IAAI,EAAI,KAAK,QAAQ,CAAC,GAAG,KAAK,QAAQ,CAAC,KAE1D,EAAK,KAAK,QAAQ,CAAC,IAAI,EAAI,GA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