{"version":3,"file":"cloning.DwY2GoWE.mjs","names":["React"],"sources":["https:/framerusercontent.com/modules/Da0ApllLKQHSw8djEYKs/NKlmeTJYy3YIy3O2qsS9/cloning.js"],"sourcesContent":["import React from\"react\";// It walks every level of the element tree: each nested container, stack, frame gets rendersWithMotion = false\n// It preserves all other props (styles, events, Framer props)\n// It prevents Framer from rewrapping anything in internal motion components, which stops layout animation flickers, re-renders, and performance loss\nexport function sanitizeChildrenRecursively(node){if(!/*#__PURE__*/React.isValidElement(node))return node;// Clone node with motion props disabled\nconst sanitizedProps={...node.props,rendersWithMotion:false,layoutId:undefined,scopeId:undefined};// If there are nested children, recurse into them\nif(node.props.children){sanitizedProps.children=React.Children.map(node.props.children,sanitizeChildrenRecursively);}return /*#__PURE__*/React.cloneElement(node,sanitizedProps);}\nexport const __FramerMetadata__ = {\"exports\":{\"sanitizeChildrenRecursively\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./cloning.map"],"mappings":"oGAGA,SAAgB,EAA4B,EAAK,CAAC,GAAG,CAAc,EAAM,eAAe,EAAK,CAAC,OAAO,EACrG,IAAM,EAAe,CAAC,GAAG,EAAK,MAAM,kBAAkB,GAAM,SAAS,IAAA,GAAU,QAAQ,IAAA,GAAU,CACoB,OAAlH,EAAK,MAAM,WAAU,EAAe,SAASA,EAAM,SAAS,IAAI,EAAK,MAAM,SAAS,EAA4B,EAAsB,EAAM,aAAa,EAAK,EAAe,kBALvJ"}