{"version":3,"file":"ForceFillWidth.DgRM62aj.mjs","names":["React"],"sources":["https:/framerusercontent.com/modules/TZHqFcHzpI28tfGcYjyD/rdsWGaJO9uSj85KYJnwn/ForceFillWidth.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import React from\"react\";export function withChildWidthFill(Component){return props=>{const{children,...rest}=props;const newChildren=React.Children.map(children,child=>{if(/*#__PURE__*/React.isValidElement(child)){return /*#__PURE__*/React.cloneElement(child,{style:{...child.props.style,width:\"100%\"}});}return child;});return /*#__PURE__*/_jsx(Component,{...rest,children:newChildren});};}const applyFillWidthRecursively=(children,level,maxDepth)=>{if(level>maxDepth){return children;}return React.Children.map(children,child=>{if(!/*#__PURE__*/React.isValidElement(child)){return child;}const newProps={style:{...child.props.style,width:\"100%\"}};if(child.props.children){newProps.children=applyFillWidthRecursively(child.props.children,level+1,maxDepth);}return /*#__PURE__*/React.cloneElement(child,newProps);});};export function withChildWidthFillTwoLevels(Component){return props=>{const{children,...rest}=props;const newChildren=applyFillWidthRecursively(children,1,2);return /*#__PURE__*/_jsx(Component,{...rest,children:newChildren});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withChildWidthFillTwoLevels\":{\"type\":\"reactHoc\",\"name\":\"withChildWidthFillTwoLevels\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withChildWidthFill\":{\"type\":\"reactHoc\",\"name\":\"withChildWidthFill\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ForceFillWidth.map"],"mappings":"kHAAoE,SAAgB,EAAmB,EAAU,CAAC,MAAO,IAAO,CAAC,GAAK,CAAC,WAAS,GAAG,GAAM,EAAY,EAAYA,EAAM,SAAS,IAAI,EAAS,GAAwB,EAAM,eAAe,CAAK,EAAuB,EAAM,aAAa,EAAM,CAAC,MAAM,CAAC,GAAG,EAAM,MAAM,MAAM,MAAM,MAAM,CAAC,CAAC,EAAU,CAAO,EAAE,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAK,SAAS,CAAW,CAAC,CAAE,CAAE,CAA4a,SAAgB,EAA4B,EAAU,CAAC,MAAO,IAAO,CAAC,GAAK,CAAC,WAAS,GAAG,GAAM,EAAY,EAAY,EAA0B,EAAS,EAAE,CAAC,EAAE,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAK,SAAS,CAAW,CAAC,CAAE,CAAE,mBAAvhC,IAAyB,EAAsX,GAA2B,EAAS,EAAM,IAAe,EAAM,EAAiB,EAAiBA,EAAM,SAAS,IAAI,EAAS,GAAO,CAAC,GAAG,CAAc,EAAM,eAAe,CAAK,EAAG,OAAO,EAAO,IAAM,EAAS,CAAC,MAAM,CAAC,GAAG,EAAM,MAAM,MAAM,MAAM,MAAM,CAAC,EAA+G,OAA1G,EAAM,MAAM,WAAU,EAAS,SAAS,EAA0B,EAAM,MAAM,SAAS,EAAM,EAAE,CAAQ,GAAuB,EAAM,aAAa,EAAM,CAAQ,CAAE,CAAC"}