{"version":3,"file":"DynamicViewportHeight.D00S8cl9.mjs","names":["__esmMin","window","init_ssg_sandbox_shims","c","J","init_jsx_runtime","init_npm_react_18_3_1","ce","withMobileSafeDVH","setVh","vh","Component","props","init_DynamicViewportHeight"],"sources":["https:/framerusercontent.com/modules/0Mcg9J9onauH1Cx9FeXn/gnB4nwufcpTqJ976V9fT/DynamicViewportHeight.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";import{forwardRef}from\"react\";export function withMobileSafeDVH(Component){return /*#__PURE__*/forwardRef((props,ref)=>{useEffect(()=>{const setVh=()=>{const vh=window.innerHeight*.01;document.documentElement.style.setProperty(\"--vh\",`${vh}px`);};setVh();window.addEventListener(\"resize\",setVh);return()=>window.removeEventListener(\"resize\",setVh);},[]);return /*#__PURE__*/_jsx(Component,{ref:ref,...props,style:{...props.style,height:\"calc(var(--vh, 1vh) * 100)\"}});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withMobileSafeDVH\":{\"type\":\"reactHoc\",\"name\":\"withMobileSafeDVH\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./DynamicViewportHeight.map"],"mappings":"A,uIAAsG,SAAgBQ,EAAkB,EAAU,CAAC,MAAoB,iBAAY,EAAM,KAAOD,MAAc,CAAC,IAAME,MAAU,CAAC,IAAMC,EAAGT,EAAO,YAAY,IAAI,SAAS,gBAAgB,MAAM,YAAY,OAAO,GAAGS,EAAG,GAAG,CAAE,EAAkD,OAAhDD,EAAM,EAAER,EAAO,iBAAiB,SAASQ,CAAK,MAAYR,EAAO,oBAAoB,SAASQ,CAAK,CAAE,EAAE,CAAC,CAAC,EAAsB,gBAAKE,EAAU,CAAK,MAAI,GAAGC,EAAM,MAAM,CAAC,GAAGA,EAAM,MAAM,OAAO,4BAA4B,CAAC,CAAC,EAAG,CAAE,C"}