{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/2g7P6BvXvZZsAI9PyVTu/571yUPu8PJSha5wbxPFZ/Dvh_svh.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";/**\n * @framerDisableUnlink\n */export function withSmallViewportHeight(Component){return props=>{const[svh,setSvh]=useState(\"100vh\");useEffect(()=>{const setInitialSvh=()=>{const vh=window.innerHeight*.01;document.documentElement.style.setProperty(\"--svh\",`${vh}px`);setSvh(`${window.innerHeight}px`);};setInitialSvh();// We're not adding any resize listeners to keep it static\n},[]);return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,height:svh}});};}/**\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\":{\"withSmallViewportHeight\":{\"type\":\"reactHoc\",\"name\":\"withSmallViewportHeight\",\"annotations\":{\"framerDisableUnlink\":\"\",\"framerContractVersion\":\"1\"}},\"withDynamicViewportHeight\":{\"type\":\"reactHoc\",\"name\":\"withDynamicViewportHeight\",\"annotations\":{\"framerDisableUnlink\":\"\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Dvh_svh.map"],
  "mappings": "gGAKU,SAASA,EAA0BC,EAAU,CAAC,OAAOC,GAAO,CAAC,GAAK,CAACC,EAAIC,CAAM,EAAEC,EAAS,OAAO,EAAE,OAAAC,EAAU,IAAI,CAAC,IAAMC,EAAU,IAAI,CAAC,IAAMC,EAAGC,EAAO,YAAY,IAAI,SAAS,gBAAgB,MAAM,YAAY,QAAQ,GAAGD,CAAE,IAAI,EAAEJ,EAAO,GAAGK,EAAO,WAAW,IAAI,CAAE,EAAE,OAAAF,EAAU,EAAEE,EAAO,iBAAiB,SAASF,CAAS,EAAQ,IAAIE,EAAO,oBAAoB,SAASF,CAAS,CAAE,EAAE,CAAC,CAAC,EAAsBG,EAAKT,EAAU,CAAC,GAAGC,EAAM,MAAM,CAAC,GAAGA,EAAM,MAAM,OAAOC,CAAG,CAAC,CAAC,CAAE,CAAE",
  "names": ["withDynamicViewportHeight", "Component", "props", "dvh", "setDvh", "ye", "ue", "updateDvh", "vh", "window", "p"]
}
