{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/nwYhnzWbqEw05zCrh1jG/XAA0UzCAAp4if45UdAiF/Typewriter_with_Plus.js"],
  "sourcesContent": ["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{Frame,addPropertyControls,ControlType}from\"framer\";import{useState,useEffect}from\"react\";export function StaticTypewriter({textColor,textAlign,fontSize,fontSizeTablet,fontSizeMobile,lineHeight,textStyle,writeSpeed,waitAfterComplete,loop,waitBeforeDelete,waitBeforeRestart,loopCount,cursorSize,cursorBorderWidth,cursorBorderColor,cursorFillColor,cursorImage,cursorImageSize,breathingSpeed}){const[visibleChars,setVisibleChars]=useState(0);const[isDeleting,setIsDeleting]=useState(false);const[currentLoop,setCurrentLoop]=useState(0);const[showCursor,setShowCursor]=useState(true);const phrase=\"The Future of Sports Betting\";const totalText=phrase;// Responsive font size based on the viewport width\nconst getResponsiveFontSize=()=>{const width=typeof window!==\"undefined\"?window.innerWidth:1200;if(width<809)return fontSizeMobile// Mobile breakpoint\n;if(width<1199)return fontSizeTablet// Tablet breakpoint\n;return fontSize// Default desktop size\n;};// Cursor Style\nconst cursorStyle={position:\"relative\",left:\"12px\",width:cursorSize+\"px\",height:cursorSize+\"px\",border:`${cursorBorderWidth}px solid ${cursorBorderColor}`,backgroundColor:cursorFillColor,borderRadius:\"50%\",display:\"inline-block\",userSelect:\"none\",cursor:\"default\",caretColor:\"transparent\",pointerEvents:\"none\",animation:`breathing-animation ${breathingSpeed}ms infinite`,backgroundImage:`url(${cursorImage})`,backgroundSize:`${cursorImageSize}% ${cursorImageSize}%`,backgroundRepeat:\"no-repeat\",backgroundPosition:\"center\"};useEffect(()=>{let timeoutId;if(isDeleting){if(visibleChars>0){timeoutId=setTimeout(()=>{setVisibleChars(visibleChars-1);},writeSpeed)// Deleting speed\n;}else{setIsDeleting(false);setVisibleChars(0);if(loop&&(loopCount===0||currentLoop<loopCount)){timeoutId=setTimeout(()=>{setCurrentLoop(currentLoop+1);setShowCursor(true);},waitBeforeRestart)// Wait time before restarting loop\n;}}}else{if(visibleChars<totalText.length){timeoutId=setTimeout(()=>{setVisibleChars(visibleChars+1);},writeSpeed)// Writing speed\n;}else{timeoutId=setTimeout(()=>{setShowCursor(false);if(loop){setIsDeleting(true);}},waitAfterComplete)// Wait time after completing\n;}}return()=>clearTimeout(timeoutId);},[visibleChars,isDeleting,currentLoop,loopCount,loop,waitAfterComplete]);return /*#__PURE__*/_jsx(Frame,{width:\"100%\",height:\"100%\",background:\"transparent\",style:{fontFamily:textStyle,fontSize:`${getResponsiveFontSize()}px`,color:textColor,textAlign:textAlign,lineHeight:lineHeight,display:\"flex\",justifyContent:\"center\",alignItems:\"center\",overflow:\"visible\"},children:/*#__PURE__*/_jsxs(\"span\",{style:{position:\"relative\",whiteSpace:\"pre-wrap\"},children:[totalText.slice(0,visibleChars),/*#__PURE__*/_jsx(\"span\",{style:{width:cursorSize+\"px\",display:\"inline-block\"},children:(visibleChars<totalText.length||showCursor&&!isDeleting)&&/*#__PURE__*/_jsx(\"span\",{style:cursorStyle})})]})});}addPropertyControls(StaticTypewriter,{textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#000000\"},textAlign:{type:ControlType.Enum,title:\"Text Alignment\",options:[\"left\",\"center\",\"right\"],optionTitles:[\"Left\",\"Center\",\"Right\"],defaultValue:\"center\"},fontSize:{type:ControlType.Number,title:\"Font Size\",defaultValue:72,min:10,max:100,unit:\"px\"},fontSizeTablet:{type:ControlType.Number,title:\"Font Size (Tablet)\",defaultValue:56,min:10,max:100,unit:\"px\"},fontSizeMobile:{type:ControlType.Number,title:\"Font Size (Mobile)\",defaultValue:48,min:10,max:100,unit:\"px\"},lineHeight:{type:ControlType.Number,title:\"Line Height\",defaultValue:1.5,min:.5,max:3,unit:\"\"},textStyle:{type:ControlType.String,title:\"Text Style\",defaultValue:\"Merriweather\"},writeSpeed:{type:ControlType.Number,title:\"Write Speed (ms)\",defaultValue:100,min:10,max:1e3,unit:\"ms\"},waitAfterComplete:{type:ControlType.Number,title:\"Wait After Complete (ms)\",defaultValue:2e3,min:0,max:5e3,unit:\"ms\"},loop:{type:ControlType.Boolean,title:\"Loop\",defaultValue:true},waitBeforeRestart:{type:ControlType.Number,title:\"Wait Before Restart (ms)\",defaultValue:3e3,min:0,max:5e3,unit:\"ms\",hidden:({loop})=>!loop},waitBeforeDelete:{type:ControlType.Number,title:\"Wait Before Delete (ms)\",defaultValue:3e3,min:0,max:5e3,unit:\"ms\",hidden:({loop})=>!loop},loopCount:{type:ControlType.Number,title:\"Loop Count (0 for infinite)\",defaultValue:0,min:0,max:100,hidden:({loop})=>!loop},cursorSize:{type:ControlType.Number,title:\"Cursor Size\",defaultValue:36,min:10,max:100,unit:\"px\"},cursorBorderWidth:{type:ControlType.Number,title:\"Cursor Border Width\",defaultValue:2,min:0,max:10,unit:\"px\"},cursorBorderColor:{type:ControlType.Color,title:\"Cursor Border Color\",defaultValue:\"#1DA8E0\"},cursorFillColor:{type:ControlType.Color,title:\"Cursor Fill Color\",defaultValue:\"transparent\"},cursorImage:{type:ControlType.File,title:\"Cursor Image\",allowedFileTypes:[\"jpg\",\"png\",\"svg\",\"gif\"]},cursorImageSize:{type:ControlType.Number,title:\"Cursor Image Size (%)\",defaultValue:50,min:10,max:100,unit:\"%\"},breathingSpeed:{type:ControlType.Number,title:\"Breathing Speed (ms)\",defaultValue:1e3,min:50,max:5e3,unit:\"ms\"}});// Add keyframes for the breathing animation\nif(typeof document!==\"undefined\"){const style=document.createElement(\"style\");style.textContent=`\n        @keyframes breathing-animation {\n            0%, 100% { transform: scale(1); }\n            50% { transform: scale(1.2); }\n        }\n    `;document.head.appendChild(style);}\nexport const __FramerMetadata__ = {\"exports\":{\"StaticTypewriter\":{\"type\":\"reactComponent\",\"name\":\"StaticTypewriter\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Typewriter_with_Plus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I,EAAE,IAAI,GAAG,KAAK,IAAI,EAAE,kBAAkB,CAAC,KAAKA,EAAY,MAAM,MAAM,sBAAsB,aAAa,SAAS,EAAE,gBAAgB,CAAC,KAAKA,EAAY,MAAM,MAAM,oBAAoB,aAAa,aAAa,EAAE,YAAY,CAAC,KAAKA,EAAY,KAAK,MAAM,eAAe,iBAAiB,CAAC,MAAM,MAAM,MAAM,KAAK,CAAC,EAAE,gBAAgB,CAAC,KAAKA,EAAY,OAAO,MAAM,wBAAwB,aAAa,GAAG,IAAI,GAAG,IAAI,IAAI,KAAK,GAAG,EAAE,eAAe,CAAC,KAAKA,EAAY,OAAO,MAAM,uBAAuB,aAAa,IAAI,IAAI,GAAG,IAAI,IAAI,KAAK,IAAI,CAAC,CAAC,EAC90F,GAAG,OAAO,SAAW,IAAY,CAAC,IAAMC,EAAM,SAAS,cAAc,OAAO,EAAEA,EAAM,YAAY;AAAA;AAAA;AAAA;AAAA;AAAA,MAK1F,SAAS,KAAK,YAAYA,CAAK,CAAE",
  "names": ["StaticTypewriter", "textColor", "textAlign", "fontSize", "fontSizeTablet", "fontSizeMobile", "lineHeight", "textStyle", "writeSpeed", "waitAfterComplete", "loop", "waitBeforeDelete", "waitBeforeRestart", "loopCount", "cursorSize", "cursorBorderWidth", "cursorBorderColor", "cursorFillColor", "cursorImage", "cursorImageSize", "breathingSpeed", "visibleChars", "setVisibleChars", "ye", "isDeleting", "setIsDeleting", "currentLoop", "setCurrentLoop", "showCursor", "setShowCursor", "totalText", "getResponsiveFontSize", "width", "window", "cursorStyle", "ue", "timeoutId", "p", "Frame", "u", "addPropertyControls", "ControlType", "style"]
}
