{"version":3,"file":"Text_Position_Animation.BgueBTad.mjs","names":[],"sources":["https:/framerusercontent.com/modules/Sj4aUuLrSwhXQ9FybpuT/FGPjmlIdpwgNSnxE1IXP/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":"qJAA6E,SAAgB,EAAmB,EAAU,CAAC,MAAO,IAAO,CAEzI,IAAM,EAAY,EAAM,MAAM,EAAM,SAEpC,GAAG,OAAO,GAAc,SAAU,OAAoB,EAAK,EAAU,CAAC,GAAG,CAAK,CAAC,EAC/E,IAAM,EAAM,EAAY,MAAM,GAAG,EAAE,OAAoB,EAAK,EAAO,IAAI,CAAC,GAAG,EAC3E,MAAM,CAAC,GAAG,EAAM,MAAM,QAAQ,OAAO,SAAS,OAAO,IAAI,SAAS,OAAO,SAAS,EAAE,QAAQ,UAAU,WAAW,QAAQ,SAAS,EAAM,KAAK,EAAK,IAAiB,EAAK,EAAO,KAAK,CAAC,SAAS,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC,EAAE,EAAE,CAAC,EAAE,WAAW,CAAC,KAAK,SAAS,QAAQ,GAAG,UAAU,IAAI,MAAM,EAAE,GAAG,EAAE,MAAM,CAAC,QAAQ,cAAc,EAAE,SAAS,CAAI,EAAE,CAAC,CAAC,CAAC,CAAC,CAAE,CAAE,iBANvS,IAAkC"}