{"version":3,"file":"shared-lib.BZ3fCmrY.mjs","names":["useRef","useState"],"sources":["https:/framerusercontent.com/modules/gXF7qVkkfnEzNVMwc8oK/VmtgLSk8cgEaeUeehsfR/StarryBackground.js","https:/framerusercontent.com/modules/ibUMvLrzzynvomKbqve5/KhyVkx9JChAmyyqU9cht/siteMetadata.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useRef,useState,startTransition}from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";import{motion}from\"framer-motion\";/**\n * A background component that shows dots perfectly aligned in a grid and they pulse slightly like a sky full of stars.\n * \n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function StarryBackground(props){const{dotColor=\"#FFFFFF\",backgroundColor=\"#000000\",dotSize=2,dotSpacing=30,pulseIntensity=.5,pulseSpeed=1,style}=props;const containerRef=useRef(null);const[dots,setDots]=useState([]);const isStatic=useIsStaticRenderer();useEffect(()=>{if(!containerRef.current)return;const generateDots=()=>{const{width,height}=containerRef.current.getBoundingClientRect();const newDots=[];const cols=Math.floor(width/dotSpacing);const rows=Math.floor(height/dotSpacing);// Add extra rows and columns to ensure coverage\nfor(let i=0;i<=cols;i++){for(let j=0;j<=rows;j++){newDots.push({x:i*dotSpacing,y:j*dotSpacing,delay:Math.random()*2// Random delay for each dot\n});}}startTransition(()=>setDots(newDots));};generateDots();const handleResize=()=>{generateDots();};window.addEventListener(\"resize\",handleResize);return()=>window.removeEventListener(\"resize\",handleResize);},[dotSpacing]);return /*#__PURE__*/_jsx(\"div\",{ref:containerRef,style:{position:\"relative\",width:\"100%\",height:\"100%\",backgroundColor,overflow:\"hidden\",...style},children:dots.map((dot,index)=>/*#__PURE__*/_jsx(motion.div,{style:{position:\"absolute\",left:dot.x,top:dot.y,width:dotSize,height:dotSize,borderRadius:\"50%\",backgroundColor:dotColor,transform:\"translate(-50%, -50%)\"},animate:isStatic?{}:{opacity:[.2+pulseIntensity*.3,.5+pulseIntensity*.5,.2+pulseIntensity*.3]},transition:{duration:3/pulseSpeed,ease:\"easeInOut\",repeat:Infinity,delay:dot.delay}},index))});}addPropertyControls(StarryBackground,{backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#000000\"},dotColor:{type:ControlType.Color,title:\"Dot Color\",defaultValue:\"#FFFFFF\"},dotSize:{type:ControlType.Number,title:\"Dot Size\",defaultValue:2,min:1,max:10,step:.5,unit:\"px\"},dotSpacing:{type:ControlType.Number,title:\"Dot Spacing\",defaultValue:30,min:10,max:100,step:5,unit:\"px\"},pulseIntensity:{type:ControlType.Number,title:\"Pulse Intensity\",defaultValue:.5,min:0,max:1,step:.1},pulseSpeed:{type:ControlType.Number,title:\"Pulse Speed\",defaultValue:1,min:.1,max:3,step:.1}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"StarryBackground\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./StarryBackground.map","// Generated by Framer (f2f96df)\nexport default function metadata(params,activeLocale){return{description:\"Regina Barjau\",favicon:\"https://framerusercontent.com/assets/ZzUPnuhck5cWTOJYbjEGMpofbXU.png\",robots:\"max-image-preview:large\",title:\"Regina Barjau\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"qQAKG,SAAwB,EAAiB,EAAM,CAAC,GAAK,CAAC,WAAS,UAAU,kBAAgB,UAAU,UAAQ,EAAE,aAAW,GAAG,iBAAe,GAAG,aAAW,EAAE,SAAO,EAAY,EAAaA,EAAO,KAAK,CAAM,CAAC,E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