{"version":3,"file":"shared-lib.xcSlCPNj.mjs","names":["useRef"],"sources":["https:/framerusercontent.com/modules/epLorWm4t3woBr9KRUc6/QqOI7yIXTS88bhXbYxxn/DynamicViewport.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useLayoutEffect,useRef}from\"react\";function applyViewport(el){if(!el)return;el.style.setProperty(\"height\",\"auto\",\"important\");el.style.setProperty(\"min-height\",\"100dvh\",\"important\");el.style.setProperty(\"overflow\",\"visible\",\"important\");}export function withDynamicViewport(Component){return props=>{const ref=useRef(null);useLayoutEffect(()=>{applyViewport(ref.current);});useEffect(()=>{const reapply=()=>applyViewport(ref.current);const raf=requestAnimationFrame(reapply);window.addEventListener(\"resize\",reapply);window.addEventListener(\"popstate\",reapply);return()=>{cancelAnimationFrame(raf);window.removeEventListener(\"resize\",reapply);window.removeEventListener(\"popstate\",reapply);};},[]);return /*#__PURE__*/_jsx(Component,{...props,ref:ref,style:{...props.style,height:\"auto\",minHeight:\"100dvh\",overflow:\"visible\"}});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withDynamicViewport\":{\"type\":\"reactHoc\",\"name\":\"withDynamicViewport\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./DynamicViewport.map"],"mappings":"8IAA+F,SAAS,EAAc,EAAG,CAAK,IAAU,EAAG,MAAM,YAAY,SAAS,OAAO,WAAW,EAAE,EAAG,MAAM,YAAY,aAAa,SAAS,WAAW,EAAE,EAAG,MAAM,YAAY,WAAW,UAAU,WAAW,EAAE,CAAC,SAAgB,EAAoB,EAAU,CAAC,MAAO,IAAO,CAAC,IAAM,EAAIA,EAAO,IAAI,EAAyX,OAAvX,MAAoB,CAAC,EAAc,EAAI,OAAO,CAAE,CAAC,EAAE,MAAc,CAAC,IAAM,MAAY,EAAc,EAAI,OAAO,EAAQ,EAAI,sBAAsB,CAAO,EAAwF,OAAtF,EAAO,iBAAiB,SAAS,CAAO,EAAE,EAAO,iBAAiB,WAAW,CAAO,MAAY,CAAC,qBAAqB,CAAG,EAAE,EAAO,oBAAoB,SAAS,CAAO,EAAE,EAAO,oBAAoB,WAAW,CAAO,CAAE,CAAE,EAAE,CAAC,CAAC,EAAsB,EAAK,EAAU,CAAC,GAAG,EAAU,MAAI,MAAM,CAAC,GAAG,EAAM,MAAM,OAAO,OAAO,UAAU,SAAS,SAAS,SAAS,CAAC,CAAC,CAAE,CAAE,qBAAh1B,IAAoD"}