{"version":3,"file":"Text_Position_Animation.CD-fBLa9.mjs","names":["__esmMin","init_jsx_runtime","c","motion","init_framer_motion_DhsWWWsN","StaggeredWordHover","textContent","props","Component","words","i","word","init_Text_Position_Animation"],"sources":["https:/framerusercontent.com/modules/dlxDdlTg60EEHXDcK0dK/8OSEHgBELOQcbMDoEZvY/Text_Position_Animation.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{motion}from\"framer-motion\";export function StaggeredWordHover(Component){return props=>{// 1. We grab the text content from the layer's properties.\n// Framer usually passes the content in 'text' (if a variable) or 'children'.\nconst textContent=props.text||props.children;// Safety Check: If it's not a simple string (e.g., mixed bold/italic),\n// we return the original component to prevent it from breaking.\nif(typeof textContent!==\"string\"){return /*#__PURE__*/_jsx(Component,{...props});}// 2. Split the dynamic text into words\nconst words=textContent.split(\" \");return /*#__PURE__*/_jsx(motion.div,{...props,// 3. We apply the original styles (font, color, size) to the container\nstyle:{...props.style,display:\"flex\",flexWrap:\"wrap\",gap:\"0.27em\",cursor:\"default\"},initial:\"initial\",whileHover:\"hover\",children:words.map((word,i)=>/*#__PURE__*/_jsx(motion.span,{variants:{initial:{y:0},hover:{y:-8}},transition:{type:\"spring\",damping:12,stiffness:200,delay:i*.03},style:{display:\"inline-block\"},children:word},i))});};}\nexport const __FramerMetadata__ = {\"exports\":{\"StaggeredWordHover\":{\"type\":\"reactHoc\",\"name\":\"StaggeredWordHover\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Text_Position_Animation.map"],"mappings":"A,qJAA6E,SAAgBK,EAAmB,EAAU,CAAC,MAAO,IAAO,CAEzI,IAAMC,EAAYC,EAAM,MAAMA,EAAM,SAEpC,GAAG,OAAOD,GAAc,SAAU,MAAoB,gBAAKE,EAAU,CAAC,GAAGD,CAAK,CAAC,EAC/E,IAAME,EAAMH,EAAY,MAAM,GAAG,EAAE,MAAoB,gBAAKH,EAAO,IAAI,CAAC,GAAGI,EAC3E,MAAM,CAAC,GAAGA,EAAM,MAAM,QAAQ,OAAO,SAAS,OAAO,IAAI,SAAS,OAAO,SAAS,EAAE,QAAQ,UAAU,WAAW,QAAQ,SAASE,EAAM,KAAK,EAAK,IAAiB,gBAAKN,EAAO,KAAK,CAAC,SAAS,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC,EAAE,EAAE,CAAC,EAAE,WAAW,CAAC,KAAK,SAAS,QAAQ,GAAG,UAAU,IAAI,MAAMO,EAAE,GAAG,EAAE,MAAM,CAAC,QAAQ,cAAc,EAAE,SAASC,CAAI,EAAED,CAAC,CAAC,CAAC,CAAC,CAAE,CAAE,C"}