{"version":3,"file":"Dynamic_view_height.DN4y3P9N.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/o6I73IBtkh5OuCDVNTm0/6vHkHOcgp7TfrxWB3JsV/Dynamic_view_height.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";/**\n * @framerDisableUnlink\n * @framerIntrinsicWidth 100\n * @framerIntrinsicHeight 100\n */export function withSmallestViewHeight(Component){return props=>{const[svh,setSvh]=useState(0);useEffect(()=>{const initialSvh=window.visualViewport?.height||window.innerHeight;setSvh(initialSvh);},[]);return /*#__PURE__*/_jsx(Component,{...props,style:{height:`${svh}px`,width:\"100%\",overflow:\"hidden\"}});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withSmallestViewHeight\":{\"type\":\"reactHoc\",\"name\":\"withSmallestViewHeight\",\"annotations\":{\"framerDisableUnlink\":\"* @framerIntrinsicWidth 100\",\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"100\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Dynamic_view_height.map"],"mappings":"uIAIG,SAAgB,EAAuB,EAAU,CAAC,MAAO,IAAO,CAAC,GAAK,CAAC,EAAI,GAAQA,EAAS,EAAE,CAA4G,OAA3G,MAAc,CAAoE,EAAlD,EAAO,gBAAgB,QAAQ,EAAO,YAA8B,EAAG,EAAE,CAAC,CAAqB,EAAK,EAAU,CAAC,GAAG,EAAM,MAAM,CAAC,OAAO,GAAG,EAAI,IAAI,MAAM,OAAO,SAAS,SAAS,CAAC,CAAC,uBAJzQ,IAAsC"}