{"version":3,"file":"injectBreakpointIntoCmsSlot.DFZ9Ind7.mjs","names":["React.Fragment","__esmMin","x","z","init_npm_react_18_3_1","K","injectBreakpointIntoCmsSlot","node","child","breakpoint","sectionContext","nextChildren","isCustomComponent","hasResponsiveBreakpoint","nextProps","init_injectBreakpointIntoCmsSlot"],"sources":["https:/framerusercontent.com/modules/aK9K9SYO8G8EiOMnL5R8/URbcCC19y2eU1nj19Eb3/injectBreakpointIntoCmsSlot.js"],"sourcesContent":["import*as React from\"react\";export function injectBreakpointIntoCmsSlot(node,breakpoint,sectionContext){if(Array.isArray(node)){return node.map(child=>injectBreakpointIntoCmsSlot(child,breakpoint,sectionContext));}if(!/*#__PURE__*/React.isValidElement(node)){return node;}const nextChildren=node.props.children!=null?injectBreakpointIntoCmsSlot(node.props.children,breakpoint,sectionContext):node.props.children;const isCustomComponent=typeof node.type!==\"string\"&&node.type!==React.Fragment;const hasResponsiveBreakpoint=Object.prototype.hasOwnProperty.call(node.props,\"breakpoint\");const nextProps={};if(isCustomComponent){nextProps.canvasBreakpoint=breakpoint;}if(hasResponsiveBreakpoint||isCustomComponent){nextProps.breakpoint=breakpoint;}if(sectionContext&&isCustomComponent){if(sectionContext.theme!==undefined){nextProps.theme=sectionContext.theme;nextProps.themeTricount=sectionContext.theme;}if(sectionContext.brand!==undefined){nextProps.brand=sectionContext.brand;}}if(nextChildren!==node.props.children){nextProps.children=nextChildren;}if(Object.keys(nextProps).length===0){return node;}return /*#__PURE__*/React.cloneElement(node,nextProps);}\nexport const __FramerMetadata__ = {\"exports\":{\"injectBreakpointIntoCmsSlot\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"SectionCmsInjectionContext\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./injectBreakpointIntoCmsSlot.map"],"mappings":"A,kHAA4B,SAAgBM,EAA4B,EAAK,EAAW,EAAe,CAAC,GAAG,MAAM,QAAQC,CAAI,EAAG,OAAOA,EAAK,IAAI,GAAOD,EAA4BE,EAAMC,EAAWC,CAAc,CAAC,EAAG,GAAG,CAAc,gBAAqBH,CAAI,EAAG,OAAOA,EAAM,IAAMI,EAAaJ,EAAK,MAAM,UAAU,KAAgFA,EAAK,MAAM,SAAtFD,EAA4BC,EAAK,MAAM,SAASE,EAAWC,CAAc,EAA4BE,EAAkB,OAAOL,EAAK,MAAO,UAAUA,EAAK,OAAOP,EAAqBa,EAAwB,OAAO,UAAU,eAAe,KAAKN,EAAK,MAAM,YAAY,EAAQO,EAAU,CAAC,EAAof,OAA/eF,IAAmB,EAAU,iBAAiBH,IAAeI,GAAyBD,KAAmB,EAAU,WAAWH,GAAeC,GAAgBE,IAAsBF,EAAe,QAAQ,IAAA,KAAW,EAAU,MAAMA,EAAe,MAAM,EAAU,cAAcA,EAAe,OAAUA,EAAe,QAAQ,IAAA,KAAW,EAAU,MAAMA,EAAe,QAAWC,IAAeJ,EAAK,MAAM,WAAU,EAAU,SAASI,GAAiB,OAAO,KAAKG,CAAS,CAAC,CAAC,SAAS,EAAUP,EAA0B,gBAAmBA,EAAKO,CAAS,CAAE,C"}