{"version":3,"file":"Text_type_code.CxSTf1fL.mjs","names":["React.useState"],"sources":["https:/framerusercontent.com/modules/aLxm4PRTQWX9tSJhPehw/GJVdDBwDjRPeaLSYw6ti/Text_type_code.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";export function TypewriterText(props){const fullText=\"For sure! @kash_bot put $50 on yes\";const[index,setIndex]=React.useState(0);React.useEffect(()=>{if(index<fullText.length){const timeout=setTimeout(()=>{setIndex(prev=>prev+1);},getTypingDelay(index));return()=>clearTimeout(timeout);}},[index]);// Add realistic typing pauses (simulate hesitation after mention or punctuation)\nconst getTypingDelay=i=>{const char=fullText[i];if(char===\" \"||char===\".\"||char===\"$\")return 120;if(i<8)return 80// typing \"@kash_bot\"\n;return 60// regular typing speed\n;};const typed=fullText.slice(0,index);const renderHTML=()=>{if(typed.startsWith(\"@kash_bot\")){const mention=`<span style=\"color:#4C9EEB\">@kash_bot</span>`;const rest=typed.slice(9);return`${mention}${rest}`;}return typed;};const cursor=`<span style=\"\n    display: inline-block;\n    width: 1px;\n    height: 1em;\n    background-color: #FFF;\n    margin-left: 2px;\n    animation: blink 1s steps(1) infinite;\n    vertical-align: -0.15em;\n  \"></span>`;return /*#__PURE__*/_jsx(\"div\",{style:{color:\"#FFF\",fontFamily:\"Inter, sans-serif\",fontSize:16,whiteSpace:\"pre-wrap\",lineHeight:\"1.4\",...props.style},dangerouslySetInnerHTML:{__html:`${renderHTML()}${cursor}`}});}\nexport const __FramerMetadata__ = {\"exports\":{\"TypewriterText\":{\"type\":\"reactComponent\",\"name\":\"TypewriterText\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Text_type_code.map"],"mappings":"yHAAuE,SAAgB,EAAe,EAAM,CAAC,IAAM,EAAS,qCAA0C,CAAC,EAAM,GAAUA,EAAe,EAAE,CAAC,MAAoB,CAAC,GAAG,EAAM,GAAgB,CAAC,IAAM,EAAQ,eAAe,CAAC,EAAS,GAAM,EAAK,EAAE,EAAG,EAAe,EAAM,CAAC,CAAC,UAAU,aAAa,EAAQ,GAAI,CAAC,EAAM,CAAC,CACjX,IAAM,EAAe,GAAG,CAAC,IAAM,EAAK,EAAS,GAC5C,OADkD,IAAO,KAAK,IAAO,KAAK,IAAO,IAAW,IAAO,EAAE,EAAS,GACvG,IACC,EAAM,EAAS,MAAM,EAAE,EAAM,CAAO,MAAmB,EAAM,WAAW,YAAY,CAA+F,+CAArB,EAAM,MAAM,EAAE,GAAmC,EAQ3M,OAAoB,EAAK,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,WAAW,oBAAoB,SAAS,GAAG,WAAW,WAAW,WAAW,MAAM,GAAG,EAAM,MAAM,CAAC,wBAAwB,CAAC,OAAO,GAAG,GAAY;;;;;;;;aAAY,CAAC,CAAC,kBAXrL,IAA4B"}