{"version":3,"file":"Text.CoFuH5M1.mjs","names":["useRef","__legacyOverrideHOC_DataObserverContext","_jsx"],"sources":["https:/framerusercontent.com/modules/2MbmfN53VIDeFwgcr5bW/XhLHDrcJNkbvo52dPysi/Text.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useRef}from\"react\";export function ChangePeriodColor(){const ref=useRef(null);useEffect(()=>{const el=ref.current;if(!el)return;const walk=node=>{if(node.nodeType===3){// Replace . in text nodes only\nconst fragments=node.textContent.split(\".\");if(fragments.length>1){const parent=node.parentNode;fragments.forEach((text,index)=>{parent.insertBefore(document.createTextNode(text),node);if(index<fragments.length-1){const span=document.createElement(\"span\");span.textContent=\".\";span.style.color=\"#FE6F61\"// Your desired period color\n;parent.insertBefore(span,node);}});parent.removeChild(node);}}else if(node.nodeType===1&&node.childNodes){node.childNodes.forEach(walk);}};walk(el);},[]);return{ref};}import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withChangePeriodColor(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...ChangePeriodColor(props)});};}withChangePeriodColor.displayName=\"ChangePeriodColor\";\nexport const __FramerMetadata__ = {\"exports\":{\"ChangePeriodColor\":{\"type\":\"override\",\"name\":\"ChangePeriodColor\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withChangePeriodColor\":{\"type\":\"reactHoc\",\"name\":\"withChangePeriodColor\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Text.map"],"mappings":"4KAA+E,SAAgB,GAAmB,CAAC,IAAM,EAAIA,EAAO,IAAI,EAEmB,OAFjB,MAAc,CAAC,IAAM,EAAG,EAAI,QAAQ,GAAG,CAAC,EAAG,OAAO,IAAM,EAAK,GAAM,CAAC,GAAG,EAAK,WAAW,EAAE,CACnO,IAAM,EAAU,EAAK,YAAY,MAAM,GAAG,EAAE,GAAG,EAAU,OAAO,EAAE,CAAC,IAAM,EAAO,EAAK,WAAW,EAAU,SAAS,EAAK,IAAQ,CAAyD,GAAxD,EAAO,aAAa,SAAS,eAAe,CAAI,EAAE,CAAI,EAAK,EAAM,EAAU,OAAO,EAAE,CAAC,IAAM,EAAK,SAAS,cAAc,MAAM,EAAE,EAAK,YAAY,IAAI,EAAK,MAAM,MAAM,UACrS,EAAO,aAAa,EAAK,CAAI,CAAE,CAAC,CAAC,EAAE,EAAO,YAAY,CAAI,CAAE,CAAC,MAAS,EAAK,WAAW,GAAG,EAAK,YAAY,EAAK,WAAW,QAAQ,CAAI,CAAG,EAAE,EAAK,CAAE,CAAE,EAAE,CAAC,CAAC,EAAQ,CAAC,KAAG,CAAE,CAAoJ,SAAgB,EAAsB,EAAE,CAAC,MAAO,KAAQ,EAA+BC,CAAuC,EAASC,EAAK,EAAE,CAAC,GAAG,EAAM,GAAG,EAAkB,CAAK,CAAC,CAAC,EAAI,iBAFzc,IAAoC,IAE4O,EAA0L,EAAsB,YAAY"}