{"version":3,"file":"Footer_Padding.Bwmr-Rfh.mjs","names":["__legacyOverrideHOC_DataObserverContext","_jsx"],"sources":["https:/framerusercontent.com/modules/EcoWBeetGW4xDDLj2jma/TaOhKu51DNHfugacIFJq/Footer_Padding.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";import{useCartUIStore,useCartStore}from\"https://framerusercontent.com/modules/AF7zXtwPU15MwxobEnNj/c8FmTxPvPBCc6ieLwjMe/cartStore.js\";export function CartBodyBottomPadding(){const[ui]=useCartUIStore();const[cart]=useCartStore();const hasItems=!!(cart?.items&&cart.items.length>0);// \"Cart zone is active\" when:\n// - there are items in the cart\n// - OR cart modal / checkout / thankyou is open\nconst active=hasItems||ui.open===true||ui.checkout===true||ui.thankyou===true;useEffect(()=>{if(typeof document===\"undefined\")return;// 👉 this is the only thing that actually changes layout:\ndocument.body.style.paddingBottom=active?\"70px\":\"0px\";},[active]);// No visual change on the element we attach to;\n// we only use this override as a \"hook\" to run the effect.\nreturn{};}import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withCartBodyBottomPadding(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...CartBodyBottomPadding(props)});};}withCartBodyBottomPadding.displayName=\"CartBodyBottomPadding\";\nexport const __FramerMetadata__ = {\"exports\":{\"withCartBodyBottomPadding\":{\"type\":\"reactHoc\",\"name\":\"withCartBodyBottomPadding\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"CartBodyBottomPadding\":{\"type\":\"override\",\"name\":\"CartBodyBottomPadding\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Footer_Padding.map"],"mappings":"sOAA8M,SAAgB,GAAuB,CAAC,GAAK,CAAC,GAAI,GAAgB,CAAM,CAAC,GAAM,GAAc,CAGrS,EAHqT,CAAC,EAAE,GAAM,OAAO,EAAK,MAAM,OAAO,IAGtU,EAAG,OAAO,IAAM,EAAG,WAAW,IAAM,EAAG,WAAW,GAGzE,OAH8E,MAAc,CAAI,OAAO,SAAW,MAClH,SAAS,KAAK,MAAM,cAAc,EAAO,OAAO,QAAQ,CAAC,EAAO,CAAC,CAE3D,EAAE,CAAqJ,SAAgB,EAA0B,EAAE,CAAC,MAAO,KAAQ,EAA+BA,EAAwC,CAAQC,EAAK,EAAE,CAAC,GAAG,EAAM,GAAG,EAAsB,EAAM,CAAC,CAAC,mBAN/S,IAA6B,IAAsI,IAMjD,CAAiM,EAA0B,YAAY"}