{"version":3,"file":"ScrollHighlightText.DaZlycYP.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/hZ1ESCiE8oL77SmYs2WM/nBFOE8DXYhlkTn4ggcRF/ScrollHighlightText.js"],"sourcesContent":["// Animated text that fades in on load with word cycling effect\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState}from\"react\";import{motion}from\"framer-motion\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";/**\n * Animated Text with Scroll Effect\n * \n * Text that animates in as you scroll into view with architect/ai hover effect.\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function AnimatedText(props){const{text=\"We design, build, and support the software systems that set complex businesses apart.\",font,textColor=\"#14B8A6\",letterSpacing=0}=props;const isStatic=useIsStaticRenderer();const[isHovered,setIsHovered]=useState(false);const words=text.split(\" \");return /*#__PURE__*/_jsx(\"div\",{style:{...props.style,position:\"relative\",width:\"100%\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",padding:0},children:/*#__PURE__*/_jsx(motion.div,{style:{...font,color:textColor,letterSpacing:`${letterSpacing}em`,textAlign:font.textAlign||\"center\",lineHeight:font.lineHeight||\"1.2em\",width:\"100%\",maxWidth:\"1000px\",display:\"flex\",flexWrap:\"wrap\",gap:\"0.3em\",justifyContent:font.textAlign===\"center\"?\"center\":font.textAlign===\"right\"?\"flex-end\":\"flex-start\"},initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:true,amount:.3},transition:{duration:.8,delay:.2,ease:\"easeOut\"},children:words.map((word,index)=>{const isArchitect=word.toLowerCase()===\"architect\";if(isArchitect){return /*#__PURE__*/_jsxs(\"span\",{onMouseEnter:()=>setIsHovered(true),onMouseLeave:()=>setIsHovered(false),style:{cursor:\"pointer\",position:\"relative\",display:\"inline-block\"},children:[/*#__PURE__*/_jsx(motion.span,{animate:{opacity:isHovered?0:1},transition:{duration:.3},children:word}),/*#__PURE__*/_jsx(motion.span,{style:{position:\"absolute\",left:0,top:0},animate:{opacity:isHovered?1:0},transition:{duration:.3},children:\"ai\"})]},index);}return /*#__PURE__*/_jsx(\"span\",{children:word},index);})})});}addPropertyControls(AnimatedText,{text:{type:ControlType.String,title:\"Text\",defaultValue:\"We design, build, and support the software systems that set complex businesses apart.\",displayTextArea:true},font:{type:ControlType.Font,title:\"Font\",defaultValue:{fontSize:\"48px\",variant:\"Semibold\",letterSpacing:\"-0.03em\",lineHeight:\"1.2em\",textAlign:\"center\"},controls:\"extended\",defaultFontType:\"sans-serif\"},letterSpacing:{type:ControlType.Number,title:\"Letter Spacing\",defaultValue:0,min:-.1,max:.5,step:.01,unit:\"em\",displayStepper:false},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#FFFFFF\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"AnimatedText\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ScrollHighlightText.map"],"mappings":"0OAQG,SAAwB,EAAa,EAAM,CAAC,GAAK,CAAC,OAAK,wFAAwF,OAAK,YAAU,UAAU,gBAAc,GAAG,EAAqB,GAAqB,CAAC,GAAK,CAAC,EAAU,GAAcA,EAAS,GAAM,CAAO,EAAM,EAAK,MAAM,IAAI,CAAC,OAAoB,EAAK,MAAM,CAAC,MAAM,CAAC,GAAG,EAAM,MAAM,SAAS,WAAW,MAAM,OAAO,QAAQ,OAAO,WAAW,SAAS,eAAe,SAAS,QAAQ,EAAE,CAAC,SAAsB,EAAK,EAAO,IAAI,CAAC,MAAM,CAAC,GAAG,EAAK,MAAM,EAAU,cAAc,GAAG,EAAc,IAAI,UAAU,EAAK,WAAW,SAAS,WAAW,EAAK,YAAY,QAAQ,MAAM,OAAO,SAAS,SAAS,QAAQ,OAAO,S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