{"version":3,"file":"AITextDemo.fT2YQHaw.mjs","names":["useState","_Fragment"],"sources":["https:/framerusercontent.com/modules/UfsHhAsOBvDU6s5l6reg/aCHyJk5EYVi1iAUjHO1N/AnimatedCursor.js","https:/framer.com/m/AnimatedCursor-Bj4C.js@aCHyJk5EYVi1iAUjHO1N","https:/framerusercontent.com/modules/NvfXQ5DVCpl31b1fckur/FhMo3zMZl9T3M9uNQ95s/AITextDemo.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{motion}from\"framer-motion\";const cursorVariants={blinking:{opacity:[0,0,1,1],transition:{duration:1,repeat:Infinity,repeatDelay:0,ease:\"linear\",times:[0,.5,.5,1]}}};const style={display:\"inline-block\",color:\"#17B582\"};export default function AnimatedCursor(){return /*#__PURE__*/_jsx(motion.div,{variants:cursorVariants,animate:\"blinking\",style:style,children:\"|\"});}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"AnimatedCursor\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./AnimatedCursor.map","/*\n * AnimatedCursor\n *\n * Learn More: https://www.framer.com/asset-urls\n */\n\nexport * from \"https://framerusercontent.com/modules/UfsHhAsOBvDU6s5l6reg/aCHyJk5EYVi1iAUjHO1N/AnimatedCursor.js\"\nexport { default } from \"https://framerusercontent.com/modules/UfsHhAsOBvDU6s5l6reg/aCHyJk5EYVi1iAUjHO1N/AnimatedCursor.js\"\n","import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{motion,useMotionValue,useTransform,animate}from\"framer-motion\";import{addPropertyControls,ControlType}from\"framer\";import{useEffect,useState}from\"react\";import AnimatedCursor from\"https://framer.com/m/AnimatedCursor-Bj4C.js@aCHyJk5EYVi1iAUjHO1N\";const baseText=`Psalm 100 is a powerful call to all believers, offering a clear model of giving thanks to God. It doesn't merely suggest thankfulness in response to receiving blessings. It commands a series of actions that position the worshipper in a place of humility and honor towards the Lord. Let's delve deeper into its message and application in our lives.\n\nJoyful Thanksgiving: An Ode to God’s Steadfast Love\nRead: Psalm 100 (NIV)`;const pre={fontFamily:\"Inter, 'Inter Placeholder', sans-serif\",display:\"inline-block\",whiteSpace:\"pre-wrap\",lineHeight:\"225%\",margin:0};export default function AITextAnim(props){const textGroups=(props.text||baseText).split(\".\").map(t=>`${t}.`);const motionValues=textGroups.map(()=>useMotionValue(0));const[showCursor,setShowCursor]=useState(false);useEffect(()=>{var _animations_;const animations=[];textGroups.forEach((text,i)=>{animations.push(animate(motionValues[i],text.length,{type:\"tween\",duration:1.25,delay:props.delay+(i*1.7+.8),ease:\"easeOut\"}));});(_animations_=animations[animations.length-1])===null||_animations_===void 0?void 0:_animations_.then(()=>{setShowCursor(false);});const timeout=setTimeout(()=>setShowCursor(true),props.delay*1e3);return()=>{animations.forEach(a=>a.stop());clearTimeout(timeout);};},[]);const rounded=motionValues.map(v=>useTransform(v,latest=>Math.round(latest)));const displayText=rounded.map((r,i)=>useTransform(r,latest=>textGroups[i].slice(0,latest)));return /*#__PURE__*/_jsx(\"pre\",{...props,style:{...props.style?props.style:{},...pre},children:/*#__PURE__*/_jsxs(\"p\",{className:\"framer-text\",style:{fontSize:props.fontSize,fontWeight:props.fontWeight,color:props.textColor,...pre},children:[displayText.map(t=>/*#__PURE__*/_jsx(motion.span,{children:t})),showCursor?/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(AnimatedCursor,{}),\" \",props.showWand?\"🪄\":null]}):null]})});}AITextAnim.defaultProps={text:baseText,delay:0,showWand:true,fontWeight:\"regular\",textColor:\"#FFFFFF\"};addPropertyControls(AITextAnim,{fontSize:{type:ControlType.Number,defaultValue:16},fontWeight:{type:ControlType.String,defaultValue:\"regular\"},text:{type:ControlType.String,defaultValue:baseText},delay:{type:ControlType.Number,defaultValue:0},showWand:{type:ControlType.Boolean,defaultValue:true},textColor:{type:ControlType.Color,defaultValue:\"#FFFFFF\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"AITextAnim\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./AITextDemo.map"],"mappings":"qQAA4Q,SAAwB,GAAgB,CAAC,OAAoB,EAAK,EAAO,IAAI,CAAC,SAAS,EAAe,QAAQ,WAAiB,QAAM,SAAS,IAAI,CAAC,sBAApX,IAAkC,CAAM,EAAe,CAAC,SAAS,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,EAAE,CAAC,WAAW,CAAC,SAAS,EAAE,OAAO,IAAS,YAAY,EAAE,KAAK,SAAS,MAAM,CAAC,EAAE,GAAG,GAAG,EAAE,CAAC,CAAC,CAAC,CAAO,EAAM,CAAC,QAAQ,eAAe,MAAM,UAAU,qBCOhJ,ICJoC,SAAwB,EAAW,EAAM,CAAC,IAAM,GAAY,EAAM,MAAM,GAAU,MAAM,IAAI,CAAC,IAAI,GAAG,GAAG,EAAE,GAAG,CAAO,EAAa,EAAW,QAAQ,EAAe,EAAE,CAAC,CAAM,CAAC,EAAW,GAAeA,EAAS,GAAM,CAAC,MAAc,CAAC,IAAI,EAAa,IAAM,EAAW,EAAE,CAAC,EAAW,SAAS,EAAK,IAAI,CAAC,EAAW,KAAK,EAAQ,EAAa,GAAG,EAAK,OAAO,CAAC,KAAK,QAAQ,SAAS,KAAK,MAAM,EAAM,OAAO,EAAE,IAAI,IAAI,KAAK,UAAU,CAAC,CAAC,EAAG,EAAE,EAAa,EAAW,EAAW,OAAO,KAAM,MAAmC,EAAa,SAAS,CAAC,EAAc,GAAM,EAAG,CAAC,IAAM,EAAQ,eAAe,EAAc,GAAK,CAAC,EAAM,MAAM,IAAI,CAAC,UAAU,CAAC,EAAW,QAAQ,GAAG,EAAE,MAAM,CAAC,CAAC,aAAa,EAAQ,GAAK,EAAE,CAAC,CA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