{"version":3,"file":"HighlightTextAnimation.CTCulCdu.mjs","names":["useStore","useState","React.useState"],"sources":["https:/framerusercontent.com/modules/vj7bFUjvEQFgEzNBkdoG/vf3CKm378wlVcBk7IhSU/createStore.js","https:/framer.com/m/framer/store.js@^1.0.0","https:/framerusercontent.com/modules/i1Ck32Fgmb7WhyuoMszs/SP7q2Hn5QkBN4Qw94aUA/HighlightTextAnimation.js"],"sourcesContent":["import{useState,useEffect}from\"react\";import{Data,useObserveData}from\"framer\";export function createStore(state1){// Use Data so that a Preview reload resets the state\nconst dataStore=Data({state:Object.freeze({...state1})});// Create a set function that updates the state\nconst setDataStore=newState=>{// If the state is an object, make sure we copy it\nif(typeof newState===\"function\"){newState=newState(dataStore.state);}dataStore.state=Object.freeze({...dataStore.state,...newState});};// Store the initial state, copy the object if it's an object\nlet storeState=typeof state1===\"object\"?Object.freeze({...state1}):state1;// Keep a list of all the listeners, in the form of React hook setters\nconst storeSetters=new Set();// Create a set function that updates all the listeners / setters\nconst setStoreState=newState=>{// If the state is an object, make sure we copy it\nif(typeof newState===\"function\"){newState=newState(storeState);}storeState=typeof newState===\"object\"?Object.freeze({...storeState,...newState}):newState;// Update all the listeners / setters with the new value\nstoreSetters.forEach(setter=>setter(storeState));};// Create the actual hook based on everything above\nfunction useStore(){// Create the hook we are going to use as a listener\nconst[state,setState]=useState(storeState);// If we unmount the component using this hook, we need to remove the listener\n// @ts-ignore\nuseEffect(()=>{// But right now, we need to add the listener\nstoreSetters.add(setState);return()=>storeSetters.delete(setState);},[]);// If Data context exists, use Data, otherwise use vanilla React state\nif(useObserveData()===true){useObserveData();return[dataStore.state,setDataStore];}else{// Return the state and a function to update the central store\nreturn[state,setStoreState];}}return useStore;}\nexport const __FramerMetadata__ = {\"exports\":{\"createStore\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./createStore.map","/*\n * createStore (framer/store@1.0.1)\n *\n * Learn More: https://www.framer.com/asset-urls\n */\n\nexport * from \"https://framerusercontent.com/modules/vj7bFUjvEQFgEzNBkdoG/vf3CKm378wlVcBk7IhSU/createStore.js\"\n","import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{forwardRef}from\"react\";import{motion}from\"framer-motion\";import{createStore}from\"https://framer.com/m/framer/store.js@^1.0.0\";// Updated gradient: Blue → Pink (#00B7FF → #F78AFF)\nconst useStore=createStore({gradient:\"linear-gradient(90deg, #00B7FF, #F78AFF)\"});const TypewriterText=({words,typingSpeed=120,deletingSpeed=60,pause=1200})=>{const[index,setIndex]=React.useState(0);const[subIndex,setSubIndex]=React.useState(0);const[blink,setBlink]=React.useState(true);const[reverse,setReverse]=React.useState(false);React.useEffect(()=>{if(index===words.length)return;if(subIndex===words[index].length+1&&!reverse){setTimeout(()=>setReverse(true),pause);return;}if(subIndex===0&&reverse){setReverse(false);setIndex(prev=>(prev+1)%words.length);return;}const timeout=setTimeout(()=>{setSubIndex(prev=>prev+(reverse?-1:1));},reverse?deletingSpeed:typingSpeed);return()=>clearTimeout(timeout);},[subIndex,index,reverse]);React.useEffect(()=>{const blinkTimeout=setTimeout(()=>setBlink(prev=>!prev),500);return()=>clearTimeout(blinkTimeout);},[blink]);return /*#__PURE__*/_jsx(\"span\",{children:`${words[index].substring(0,subIndex)}${blink?\"|\":\" \"}`});};export function withAnimatedPresence(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const[store]=useStore();const words=[\"Online Presence\",\"Digital Identity\",\"Creative Impact\"];return /*#__PURE__*/_jsx(\"div\",{ref:ref,...props,style:{display:\"flex\",justifyContent:\"center\",alignItems:\"center\",textAlign:\"center\",fontFamily:\"Inter, sans-serif\",height:\"auto\",padding:\"0.25rem 0.5rem\",backgroundColor:\"transparent\",lineHeight:\"2.5em\"},children:/*#__PURE__*/_jsxs(motion.h1,{style:{fontSize:\"1.00rem\",fontWeight:700,color:\"#FFFFFF\",letterSpacing:\"-0.01em\",margin:0},initial:{opacity:1},animate:{opacity:1},transition:{duration:0},children:[\"Shape Your\",\" \",/*#__PURE__*/_jsx(\"span\",{style:{background:store.gradient,WebkitBackgroundClip:\"text\",WebkitTextFillColor:\"transparent\"},children:/*#__PURE__*/_jsx(TypewriterText,{words:words})}),\".\"]})});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withAnimatedPresence\":{\"type\":\"reactHoc\",\"name\":\"withAnimatedPresence\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./HighlightTextAnimation.map"],"mappings":"4OAA8E,SAAgB,EAAY,EAAO,CACjH,IAAM,EAAU,EAAK,CAAC,MAAM,OAAO,OAAO,CAAC,GAAG,EAAO,CAAC,CAAC,CAAC,CAClD,EAAa,GAAU,CAC1B,OAAO,GAAW,aAAY,EAAS,EAAS,EAAU,MAAM,EAAE,EAAU,MAAM,OAAO,OAAO,CAAC,GAAG,EAAU,MAAM,GAAG,EAAS,CAAC,EAChI,EAAW,OAAO,GAAS,SAAS,OAAO,OAAO,CAAC,GAAG,EAAO,CAAC,CAAC,EAC7D,EAAa,IAAI,IACjB,EAAc,GAAU,CAC3B,OAAO,GAAW,aAAY,EAAS,EAAS,EAAW,EAAE,EAAW,OAAO,GAAW,SAAS,OAAO,OAAO,CAAC,GAAG,EAAW,GAAG,EAAS,CAAC,CAAC,EACjJ,EAAa,QAAQ,GAAQ,EAAO,EAAW,CAAC,EAChD,SAASA,GAAU,CACnB,GAAK,CAAC,EAAM,GAAUC,EAAS,EAAW,CAK1C,OAHA,OACA,EAAa,IAAI,EAAS,KAAW,EAAa,OAAO,EAAS,EAAG,EAAE,CAAC,CACrE,GAAgB,GAAG,IAAM,GAAgB,CAAO,CAAC,EAAU,MAAM,EAAa,EAC3E,CAAC,EAAM,EAAc,CAAG,OAAOD,mBAfC,IAAwC,qBEC43B,SAAgB,EAAqB,EAAU,CAAC,OAAoB,GAAY,EAAM,IAAM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