{"version":3,"file":"WithTyperWriter.fbmiMTGi.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/t8m58BLKecrfY1Yz4Osc/oCj3LvRdDWXojMlPMt58/WithTyperWriter.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";function makeTypeWriterOverride(texts,Component){return props=>{const[currentText,setCurrentText]=useState(\"\");const[phraseIndex,setPhraseIndex]=useState(0);const[letterIndex,setLetterIndex]=useState(0);const[isTyping,setIsTyping]=useState(true);useEffect(()=>{const delay=3e3;const speed=100;const handleTyping=()=>{const currentPhrase=texts[phraseIndex];if(isTyping){if(letterIndex<currentPhrase.length){setCurrentText(currentPhrase.substring(0,letterIndex+1));setLetterIndex(letterIndex+1);}else{setTimeout(()=>setIsTyping(false),delay);}}else{setCurrentText(\"\");setLetterIndex(0);setPhraseIndex(prev=>(prev+1)%texts.length);setIsTyping(true);}};const timeout=setTimeout(handleTyping,isTyping?speed:0);return()=>clearTimeout(timeout);},[letterIndex,isTyping,phraseIndex]);return /*#__PURE__*/_jsx(Component,{...props,text:currentText||\" \"});};}export function withTypeWriterPersonal(Component){return makeTypeWriterOverride([\"Enhance work productivity\",\"Close information gap\",\"Monetize personal knowledge\",\"Streamline team collaboration\"],Component);}export function withTypeWriterBusiness(Component){return makeTypeWriterOverride([\"Optimize decision-making\",\"Automate workflow processes\",\"Personalize customer experiences\",\"Unlock business opportunities\"],Component);}export function withTypeWriterModelDev(Component){return makeTypeWriterOverride([\"Leverage curated, high-quality data\",\"Access trusted, ready-to-use models\",\"Scale with powerful development tools\",\"Unlock new revenue opportunities\"],Component);}export function withTypeWriterAppDevelopers(Component){return makeTypeWriterOverride([\"Build faster with with no-code tools\",\"Access trusted, ready-to-use models\",\"Leverage curated, high-quality datasets\",\"Scale without needing in-house expertise\"],Component);}export function withTypeWriterComputeProviders(Component){return makeTypeWriterOverride([\"Connect directly with AI developers\",\"Expand your market\",\"Unlock new revenue streams\",\"Offer scalable, on-demand solutions\"],Component);}\nexport const __FramerMetadata__ = {\"exports\":{\"withTypeWriterPersonal\":{\"type\":\"reactHoc\",\"name\":\"withTypeWriterPersonal\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withTypeWriterModelDev\":{\"type\":\"reactHoc\",\"name\":\"withTypeWriterModelDev\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withTypeWriterComputeProviders\":{\"type\":\"reactHoc\",\"name\":\"withTypeWriterComputeProviders\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withTypeWriterAppDevelopers\":{\"type\":\"reactHoc\",\"name\":\"withTypeWriterAppDevelopers\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withTypeWriterBusiness\":{\"type\":\"reactHoc\",\"name\":\"withTypeWriterBusiness\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./WithTyperWriter.map"],"mappings":"yHAAiF,SAAS,EAAuB,EAAM,EAAU,CAAC,MAAO,IAAO,CAAC,GAAK,CAAC,EAAY,GAAgBA,EAAS,GAAG,CAAM,CAAC,EAAY,GAAgBA,EAAS,EAAE,CAAM,CAAC,EAAY,GAAgBA,EAAS,EAAE,CAAM,CAAC,EAAS,GAAaA,EAAS,GAAK,CAAkhB,OAAjhB,MAAc,CAAC,IAA0Y,EAAQ,eAA3V,CAAC,IAAM,EAAc,EAAM,GAAgB,EAAa,EAAY,EAAc,QAAQ,EAAe,EAAc,UAAU,EAAE,EAAY,EAAE,CAAC,CAAC,EAAe,EAAY,EAAE,EAAO,eAAe,EAAY,GAAM,CAAC,IAAM,EAAQ,EAAe,GAAG,CAAC,EAAe,EAAE,CAAC,EAAe,IAAO,EAAK,GAAG,EAAM,OAAO,CAAC,EAAY,GAAK,GAA0C,EAAS,IAAM,EAAE,CAAC,UAAU,aAAa,EAAQ,EAAG,CAAC,EAAY,EAAS,EAAY,CAAC,CAAqB,EAAK,EAAU,CAAC,GAAG,EAAM,KAAK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