{"version":3,"file":"Textselection.B3YAi6Wr.mjs","names":["React.useState","__legacyOverrideHOC_DataObserverContext","_jsx","__legacyOverrideHOC_DataObserverContext","_jsx"],"sources":["https:/framerusercontent.com/modules/ufD4m8Pux2a4ubdkc2D0/jsCrExwXl5BGxW3ahtgN/Hellotextchange.js","https:/framerusercontent.com/modules/Keqe4fLSERLiaP1MUKqx/PaPJxj6x3ukdU9oHo4ev/Textselection.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";export function CyclicHello(){const greetings=[\"Hello 👋🏼\",\"வணக்கம் 🙏🏼\",\"नमस्ते 🙏🏼\",\"こんにちは 👋🏼\"];const[index,setIndex]=React.useState(0);React.useEffect(()=>{const interval=setInterval(()=>{setIndex(prev=>(prev+1)%greetings.length);},2e3)// Change text every 2 seconds\n;return()=>clearInterval(interval);},[]);return{text:greetings[index]};}import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withCyclicHello(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...CyclicHello(props)});};}withCyclicHello.displayName=\"CyclicHello\";\nexport const __FramerMetadata__ = {\"exports\":{\"withCyclicHello\":{\"type\":\"reactHoc\",\"name\":\"withCyclicHello\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"CyclicHello\":{\"type\":\"override\",\"name\":\"CyclicHello\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Hellotextchange.map","import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";export function CustomSelection(){React.useEffect(()=>{const style=document.createElement(\"style\");style.innerHTML=`\n            ::selection {\n                background-color: #ff9545; /* Your desired background */\n                color: white;             /* Your desired text color */\n            }\n        `;document.head.appendChild(style);return()=>{document.head.removeChild(style);};},[]);return{};}import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withCustomSelection(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...CustomSelection(props)});};}withCustomSelection.displayName=\"CustomSelection\";\nexport const __FramerMetadata__ = {\"exports\":{\"CustomSelection\":{\"type\":\"override\",\"name\":\"CustomSelection\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withCustomSelection\":{\"type\":\"reactHoc\",\"name\":\"withCustomSelection\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Textselection.map"],"mappings":"4KAAuE,SAAgB,GAAa,CAAC,IAAM,EAAU,CAAC,aAAa,eAAe,cAAc,aAAa,CAAM,CAAC,EAAM,GAAUA,EAAe,EAAE,CAC5K,OAD6K,MAAoB,CAAC,IAAM,EAAS,gBAAgB,CAAC,EAAS,IAAO,EAAK,GAAG,EAAU,OAAO,EAAG,IAAI,CAC1T,UAAU,cAAc,EAAS,EAAG,EAAE,CAAC,CAAO,CAAC,KAAK,EAAU,GAAO,CAAqJ,SAAgB,EAAgB,EAAE,CAAC,MAAO,KAAQ,EAA+BC,EAAwC,CAAQC,EAAK,EAAE,CAAC,GAAG,EAAM,GAAG,EAAY,EAAM,CAAC,CAAC,mBADzV,IAA4B,IACoJ,CAA6K,EAAgB,YAAY,iBCD7V,SAAgB,GAAiB,CAKT,OALU,MAAoB,CAAC,IAAM,EAAM,SAAS,cAAc,QAAQ,CAK9H,MAL+H,GAAM,UAAU;;;;;UAKhL,SAAS,KAAK,YAAY,EAAM,KAAW,CAAC,SAAS,KAAK,YAAY,EAAM,GAAK,EAAE,CAAC,CAAO,EAAE,CAAqJ,SAAgB,EAAoB,EAAE,CAAC,MAAO,KAAQ,EAA+BC,EAAwC,CAAQC,EAAK,EAAE,CAAC,GAAG,EAAM,GAAG,EAAgB,EAAM,CAAC,CAAC,mBALlY,IAA4B,IAKqL,CAAqL,EAAoB,YAAY"}