{"version":3,"file":"Viewheight.DwLujkNa.mjs","names":[],"sources":["https:/framerusercontent.com/modules/q78Twm89CsJBn5qOeAbG/VSkBkACUz8Iat0vNBFHX/Viewheight.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";export function withMobileViewportFix(Component){return props=>{useEffect(()=>{// Only set the initial height once\nconst vh=window.innerHeight*.01;document.documentElement.style.setProperty(\"--vh\",`${vh}px`);},[])// Empty dependency array means this only runs once\n;const style={...props.style,height:\"calc(var(--vh, 1vh) * 100)\"};return /*#__PURE__*/_jsx(Component,{...props,style:style});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withMobileViewportFix\":{\"type\":\"reactHoc\",\"name\":\"withMobileViewportFix\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Viewheight.map"],"mappings":"mMAAwE,SAAgB,EAAsB,EAAU,CAAC,MAAO,CAAA,GAAO,CAAC,EAAU,IAAI,CACtJ,IAAM,EAAG,EAAO,YAAY,IAAI,SAAS,gBAAgB,MAAM,YAAY,UAAU,EAAG,IAAI,AAAE,EAAC,CAAE,EAAC,CACjG,IAAM,EAAM,CAAC,GAAG,EAAM,MAAM,OAAO,4BAA6B,EAAC,MAAoB,GAAK,EAAU,CAAC,GAAG,EAAY,OAAM,EAAC,AAAE,CAAE,kBAFhI,GAA2C,IAA6B"}