{"version":3,"file":"shared-lib.B3twbLPf.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/E1jY1bFDgprpfxATR24H/AqctWRi7g0jIe5090qX0/PulsingRadialBackground.js","https:/framerusercontent.com/modules/pKwLS4NQdSw8svSHOt0O/UmK95HkHHcl1B0iA0AzP/siteMetadata.js"],"sourcesContent":["// Radial gradient background with organic ocean-like variation\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{motion}from\"framer-motion\";import{addPropertyControls,ControlType}from\"framer\";import{useState,startTransition,useEffect}from\"react\";/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function PulsingRadialBackground(props){const{centerColor=\"#20448F\",outerColor=\"#2F81C9\",pulseSpeed=4}=props;const[timeOfDay,setTimeOfDay]=useState(()=>{if(typeof window!==\"undefined\"){const saved=localStorage.getItem(\"timeOfDay\");return saved||\"day\";}return\"day\";});const[hoveredToggle,setHoveredToggle]=useState(null);useEffect(()=>{if(typeof window!==\"undefined\"){localStorage.setItem(\"timeOfDay\",timeOfDay);// Dispatch custom event for other components to listen to\nconst event=new CustomEvent(\"timeOfDayChange\",{detail:{timeOfDay}});window.dispatchEvent(event);}},[timeOfDay]);// Dispatch initial event on mount\nuseEffect(()=>{if(typeof window!==\"undefined\"){const event=new CustomEvent(\"timeOfDayChange\",{detail:{timeOfDay}});window.dispatchEvent(event);}},[]);const colorSchemes={dawn:{center:\"#8C3E17\",outer:\"#734F8E\"},day:{center:centerColor,outer:outerColor},dusk:{center:\"#2D0941\",outer:\"#821922\"}};const currentColors=colorSchemes[timeOfDay];const handleTimeChange=time=>{startTransition(()=>setTimeOfDay(time));};return /*#__PURE__*/_jsx(motion.div,{style:{position:\"relative\",width:\"100%\",height:\"100%\",overflow:\"hidden\"},animate:{background:`radial-gradient(circle at 50% 50%, ${currentColors.center} 0%, ${currentColors.center} 20%, ${currentColors.outer} 100%)`},transition:{duration:2,ease:\"easeInOut\"},children:/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",bottom:\"20px\",left:\"50%\",transform:\"translateX(-50%)\",display:\"flex\",gap:\"24px\",zIndex:10},children:[\"dawn\",\"day\",\"dusk\"].map(time=>/*#__PURE__*/_jsx(\"button\",{onClick:()=>handleTimeChange(time),onMouseEnter:()=>setHoveredToggle(time),onMouseLeave:()=>setHoveredToggle(null),style:{background:\"transparent\",border:\"none\",color:hoveredToggle===time?\"#F0C957\":timeOfDay===time?\"#FFFFFF\":\"#B4B4B4\",fontSize:\"16px\",fontWeight:500,cursor:\"pointer\",padding:\"8px 12px\",textTransform:\"uppercase\",transition:\"color 0.3s ease\"},children:time},time))})});}addPropertyControls(PulsingRadialBackground,{centerColor:{type:ControlType.Color,title:\"Center Color\",defaultValue:\"#20448F\"},outerColor:{type:ControlType.Color,title:\"Outer Color\",defaultValue:\"#2F81C9\"},pulseSpeed:{type:ControlType.Number,title:\"Pulse Speed\",defaultValue:4,min:1,max:10,step:.5,unit:\"s\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"PulsingRadialBackground\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PulsingRadialBackground.map","// Generated by Framer (f21d278)\nexport default function metadata(params,activeLocale){return{description:\"Joel turns big ideas into undeniable realities. He is a product designer, music video director, and proud California native. He lives in San Francisco and Los Angeles. \",favicon:\"https://framerusercontent.com/assets/gIGWSbkPlLSdKZdI8kXreAaUqA.png\",robots:\"max-image-preview:large\",socialImage:\"https://framerusercontent.com/assets/cmafFfjA5QtP5Um3heKaYOvtq08.jpg\",title:\"Joel Yong | Designer & Director\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{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