{"version":3,"file":"DynamicViewportHeight.Bm2Ukdyp.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/jWB9ZB8JNruiCgwSUQOE/xvxLSXOGNcZ0NTtT3hoI/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":"uIAEG,SAAgB,EAA0B,EAAU,CAAC,MAAO,IAAO,CAAC,GAAK,CAAC,EAAI,GAAQA,EAAS,OAAO,EAA+R,OAA7R,MAAc,CAAC,IAAM,MAAc,CAAC,IAAM,EAAG,EAAO,YAAY,IAAI,SAAS,gBAAgB,MAAM,YAAY,QAAQ,GAAG,EAAG,GAAG,EAAE,EAAO,GAAG,EAAO,YAAY,GAAG,CAAE,EAA0D,OAAxD,EAAU,EAAE,EAAO,iBAAiB,SAAS,CAAS,MAAY,EAAO,oBAAoB,SAAS,CAAS,CAAE,EAAE,CAAC,CAAC,EAAsB,EAAK,EAAU,CAAC,GAAG,EAAM,MAAM,CAAC,GAAG,EAAM,MAAM,OAAO,CAAG,CAAC,CAAC,CAAE,CAAE,qBAFjb,IAAsC"}