{"version":3,"file":"Custom.KBui19ay.mjs","names":["Children"],"sources":["https:/framerusercontent.com/modules/6HI4FN5EiJwiUxsuCxYf/IhesatopWxECFTZACEUN/Custom.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{Children,cloneElement}from\"react\";import{motion}from\"framer-motion\";export function withStaggerChildren(Component){return props=>{const{children}=props;const clonedChildren=Children.map(children,(child,index)=>child?.props?/*#__PURE__*/cloneElement(child,{...child.props,initial:{opacity:0,y:20},whileInView:{opacity:1,y:0,transition:{duration:.8,ease:[.19,1,.22,1],delay:.1*index}},viewport:{once:true}}):null);return /*#__PURE__*/_jsx(Component,{...props,children:clonedChildren});};}export function withWordSpacing(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,style:{letterSpacing:\"0.1em\",paddingRight:\"0.2em\",display:\"inline-block\"}});};}export function withAspectRatioSquare(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,style:{aspectRatio:\"1 / 1\",width:\"100%\",height:\"auto\"}});};}export const AnimatedText=({text,className=\"\"})=>{const words=text.split(\" \");const container={hidden:{opacity:0},visible:(i=1)=>({opacity:1,transition:{staggerChildren:.12,delayChildren:.04*i}})};const child={visible:{opacity:1,y:0,transition:{type:\"spring\",damping:12,stiffness:100}},hidden:{opacity:0,y:20,transition:{type:\"spring\",damping:12,stiffness:100}}};return /*#__PURE__*/_jsx(motion.div,{className:`overflow-hidden ${className}`,variants:container,initial:\"hidden\",whileInView:\"visible\",viewport:{once:true},children:words.map((word,index)=>/*#__PURE__*/_jsx(motion.span,{className:\"inline-block mr-1\",variants:child,children:word},index))});};\nexport const __FramerMetadata__ = {\"exports\":{\"withAspectRatioSquare\":{\"type\":\"reactHoc\",\"name\":\"withAspectRatioSquare\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"AnimatedText\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withWordSpacing\":{\"type\":\"reactHoc\",\"name\":\"withWordSpacing\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withStaggerChildren\":{\"type\":\"reactHoc\",\"name\":\"withStaggerChildren\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Custom.map"],"mappings":"mKAAsH,SAAgB,EAAoB,EAAU,CAAC,MAAO,IAAO,CAAC,GAAK,CAAC,YAAU,EAAY,EAAeA,EAAS,IAAI,GAAU,EAAM,IAAQ,GAAO,MAAmB,EAAa,EAAM,CAAC,GAAG,EAAM,MAAM,QAAQ,CAAC,QAAQ,EAAE,EAAE,GAAG,CAAC,YAAY,CAAC,QAAQ,EAAE,EAAE,EAAE,WAAW,CAAC,SAAS,GAAG,KAAK,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,MAAM,GAAG,EAAM,CAAC,CAAC,SAAS,CAAC,KAAK,GAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAM,SAAS,EAAe,CAAC,EAAI,SAAgB,EAAgB,EAAU,CAAC,MAAO,IAA4B,EAAK,EAAU,CAAC,GAAG,EAAM,MAAM,CAAC,cAAc,QAAQ,aAAa,QAAQ,QAAQ,eAAe,CAAC,CAAC,kBAA/pB,IAAyC,IAAkC"}