{"version":3,"file":"DynamicViewportHeight.EB3qquds.mjs","names":["useState","__esmMin","init_ssg_sandbox_shims","ce","window","_e","init_npm_react_18_3_1","c","init_jsx_runtime","withDynamicViewportHeight","dvh","setDvh","updateDvh","vh","Component","props","init_DynamicViewportHeight"],"sources":["https:/framerusercontent.com/modules/2mRTFlCnXVychwAiCwJi/pykytb47SylejDJvLPZW/DynamicViewportHeight.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";/**\n * @framerDisableUnlink\n */export function withDynamicViewportHeight(Component){return props=>{const[dvh,setDvh]=useState(\"100vh\");useEffect(()=>{const updateDvh=()=>{const vh=window.innerHeight*.01;document.documentElement.style.setProperty(\"--dvh\",`${vh}px`);setDvh(`${window.innerHeight}px`);};updateDvh();window.addEventListener(\"resize\",updateDvh);return()=>window.removeEventListener(\"resize\",updateDvh);},[]);return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,height:dvh}});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withDynamicViewportHeight\":{\"type\":\"reactHoc\",\"name\":\"withDynamicViewportHeight\",\"annotations\":{\"framerContractVersion\":\"1\",\"framerDisableUnlink\":\"\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./DynamicViewportHeight.map"],"mappings":"A,uIAEG,SAAgBS,EAA0B,EAAU,CAAC,MAAO,IAAO,CAAC,GAAK,CAACC,EAAIC,GAAQX,EAAS,OAAO,EAA+R,OAA7RG,MAAc,CAAC,IAAMS,MAAc,CAAC,IAAMC,EAAGT,EAAO,YAAY,IAAI,SAAS,gBAAgB,MAAM,YAAY,QAAQ,GAAGS,EAAG,GAAG,EAAEF,EAAO,GAAGP,EAAO,YAAY,GAAG,CAAE,EAA0D,OAAxDQ,EAAU,EAAER,EAAO,iBAAiB,SAASQ,CAAS,MAAYR,EAAO,oBAAoB,SAASQ,CAAS,CAAE,EAAE,CAAC,CAAC,EAAsB,gBAAKE,EAAU,CAAC,GAAGC,EAAM,MAAM,CAAC,GAAGA,EAAM,MAAM,OAAOL,CAAG,CAAC,CAAC,CAAE,CAAE,C"}