{"version":3,"file":"HeroHeading.DSH04Y-R.mjs","names":["useState","useMemo","_Fragment"],"sources":["https:/framerusercontent.com/modules/PnWlhXiCXaDDSQjLLHsb/92QHt2qQA9BupL8i1VoR/HeroHeading.js"],"sourcesContent":["// Hero heading with typing animation: \"[Changing Word] Infrastructure for Fintechs & Enterprises.\"\n// The changing word rotates between Stablecoin, Digital Asset, and Wallet.\n// Only the changing word is highlighted in green with character flip animation.\nimport{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";import{useMemo,useState,useEffect,startTransition}from\"react\";import{motion,AnimatePresence}from\"framer-motion\";/**\n * CTA Animation - Hero Heading with Rotating Words\n *\n * @framerIntrinsicWidth 800\n * @framerIntrinsicHeight 60\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n */export default function CTAAnimation(props){const{word1=\"Stablecoin\",word2=\"Digital Asset\",word3=\"Wallet\",suffix=\"Infrastructure for Fintechs & Enterprises.\",suffixLine2=\"\",suffixLine2Color=\"#000000\",textColor=\"#000000\",font,changingWordColor=\"#22CC66\",changingWordFont,style={},tag=\"h2\",animationDuration=.4,charDelay=.05,wordDuration=3e3}=props;const[currentWordIndex,setCurrentWordIndex]=useState(0);const isStatic=useIsStaticRenderer();const safeWords=useMemo(()=>{const words=[word1,word2,word3].map(w=>typeof w===\"string\"?w.trim():\"\").filter(Boolean);return words.length>0?words:[\"Stablecoin\",\"Digital Asset\",\"Wallet\"];},[word1,word2,word3]);const displayWord=safeWords[currentWordIndex];const Tag=tag;// Word rotation effect\nuseEffect(()=>{if(isStatic||safeWords.length<=1)return;const interval=setInterval(()=>{startTransition(()=>{setCurrentWordIndex(prev=>(prev+1)%safeWords.length);});},wordDuration);return()=>clearInterval(interval);},[safeWords.length,wordDuration,isStatic]);// Character animation variants\nconst containerVariants={hidden:{},visible:{transition:{staggerChildren:charDelay}}};const charVariants={hidden:{rotateY:90,opacity:0},visible:{rotateY:0,opacity:1,transition:{type:\"spring\",stiffness:300,damping:20}},exit:{rotateY:-90,opacity:0,transition:{duration:.15}}};// Show static text in static renderer (Framer canvas)\nif(isStatic){return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",...style,position:\"relative\",display:\"flex\",flexDirection:\"column\",alignItems:\"flex-start\",overflow:\"visible\"},children:/*#__PURE__*/_jsxs(Tag,{style:{display:\"block\",color:textColor,margin:0,padding:0,...font},children:[/*#__PURE__*/_jsx(\"span\",{style:{display:\"inline\",color:changingWordColor,...changingWordFont},children:safeWords[0]||\"\"}),/*#__PURE__*/_jsxs(\"span\",{style:{display:\"inline\"},children:[\" \",suffix]}),suffixLine2&&/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"br\",{}),/*#__PURE__*/_jsx(\"span\",{style:{display:\"inline\",color:suffixLine2Color},children:suffixLine2})]})]})});}return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",...style,position:\"relative\",display:\"flex\",flexDirection:\"column\",alignItems:\"flex-start\",overflow:\"visible\"},children:/*#__PURE__*/_jsxs(Tag,{style:{display:\"block\",color:textColor,margin:0,padding:0,...font,perspective:\"1000px\"},children:[/*#__PURE__*/_jsx(\"span\",{style:{display:\"inline\",color:changingWordColor,...changingWordFont,transformStyle:\"preserve-3d\"},children:/*#__PURE__*/_jsx(AnimatePresence,{mode:\"popLayout\",children:/*#__PURE__*/_jsx(motion.span,{variants:containerVariants,initial:\"hidden\",animate:\"visible\",exit:\"exit\",style:{display:\"inline-flex\",flexWrap:\"nowrap\",transformStyle:\"preserve-3d\"},children:displayWord.split(\"\").map((char,charIndex)=>/*#__PURE__*/_jsx(motion.span,{variants:charVariants,style:{display:\"inline-block\",transformOrigin:\"bottom center\",transformStyle:\"preserve-3d\",whiteSpace:char===\" \"?\"pre\":\"nowrap\",backfaceVisibility:\"hidden\"},children:char===\" \"?\"\\xa0\":char},`${displayWord}-${charIndex}`))},displayWord)})}),/*#__PURE__*/_jsxs(\"span\",{style:{display:\"inline\"},children:[\" \",suffix]}),suffixLine2&&/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"br\",{}),/*#__PURE__*/_jsx(\"span\",{style:{display:\"inline\",color:suffixLine2Color},children:suffixLine2})]})]})});}addPropertyControls(CTAAnimation,{word1:{type:ControlType.String,title:\"Word 1\",defaultValue:\"Stablecoin\"},word2:{type:ControlType.String,title:\"Word 2\",defaultValue:\"Digital Asset\"},word3:{type:ControlType.String,title:\"Word 3\",defaultValue:\"Wallet\"},suffix:{type:ControlType.String,title:\"Suffix Text\",defaultValue:\"Infrastructure for Fintechs & Enterprises.\",placeholder:\"Text after the words...\"},suffixLine2:{type:ControlType.String,title:\"Suffix Line 2\",defaultValue:\"\",placeholder:\"Additional text below...\"},suffixLine2Color:{type:ControlType.Color,title:\"Suffix Line 2 Color\",defaultValue:\"#000000\"},tag:{type:ControlType.Enum,title:\"HTML Tag\",options:[\"h1\",\"h2\",\"h3\",\"h4\",\"h5\",\"h6\",\"p\",\"div\",\"span\"],optionTitles:[\"H1\",\"H2\",\"H3\",\"H4\",\"H5\",\"H6\",\"Paragraph\",\"Div\",\"Span\"],defaultValue:\"h2\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#000000\"},changingWordColor:{type:ControlType.Color,title:\"Highlight Color\",defaultValue:\"#22CC66\"},font:{type:ControlType.Font,title:\"Text Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"40px\",lineHeight:\"1.2em\",variant:\"Bold\",letterSpacing:\"-0.02em\"}},changingWordFont:{type:ControlType.Font,title:\"Highlight Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"40px\",lineHeight:\"1.2em\",variant:\"Bold\",letterSpacing:\"-0.02em\"}},animationDuration:{type:ControlType.Number,title:\"Anim Duration\",defaultValue:.4,min:.1,max:2,step:.05,unit:\"s\"},charDelay:{type:ControlType.Number,title:\"Char Delay\",defaultValue:.05,min:.01,max:.5,step:.01,unit:\"s\"},wordDuration:{type:ControlType.Number,title:\"Word Duration\",defaultValue:3e3,min:1e3,max:1e4,step:100,unit:\"ms\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CTAAnimation\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"60\",\"framerSupportedLayoutHeight\":\"auto\",\"framerIntrinsicWidth\":\"800\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./HeroHeading.map"],"mappings":"yQAWG,SAAwB,EAAa,EAAM,CAAC,GAAK,CAAC,QAAM,aAAa,QAAM,gBAAgB,QAAM,SAAS,SAAO,6CAA6C,cAAY,GAAG,mBAAiB,UAAU,YAAU,UAAU,OAAK,oBAAkB,UAAU,mBAAiB,QAAM,CAAC,EAAE,MAAI,KAAK,oBAAkB,GAAG,YAAU,IAAI,eAAa,KAAK,EAAW,CAAC,EAAiB,GAAqBA,EAAS,CAAC,EAAQ,EAAS,EAAoB,EAAQ,EAAUC,MAAY,CAAC,IAAM,EAAM,CAAC,EAAM,EAAM,CAAK,CAAC,CAAC,IAAI,GAAG,OAAO,GAAI,SAAS,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC,OAAO,OAAO,EAAE,OAAO,EAAM,OAAO,EAAE,EAAM,CAAC,aAAa,gBAAgB,QAAQ,CAAE,EAAE,CAAC,EAAM,EAAM,CAAK,CAAC,EAAQ,EAAY,EAAU,GAAwB,EAAI,EACnsB,MAAc,CAAC,GAAG,GAAU,EAAU,QAAQ,EAAE,OAAO,IAAM,EAAS,gBAAgB,CAAC,MAAoB,CAAC,EAAoB,IAAO,EAAK,GAAG,EAAU,MAAM,CAAE,CAAC,CAAE,EAAE,CAAY,EAAE,UAAU,cAAc,CAAQ,CAAE,EAAE,CAAC,EAAU,OAAO,EAAa,CAAQ,CAAC,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