{"version":3,"file":"MobileLayout.BprxASrW.mjs","names":["useState","_Fragment"],"sources":["https:/framerusercontent.com/modules/MsMjAvDeFxYAiLM7xDWY/GNruYvQwKU8VynE6vRqW/MobileLayout.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{forwardRef,useEffect,useState}from\"react\";export function withMobileViewport(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const[visibleHeight,setVisibleHeight]=useState(null);useEffect(()=>{const viewport=window.visualViewport;let frame=0;const update=()=>{cancelAnimationFrame(frame);frame=requestAnimationFrame(()=>{if(!window.matchMedia(\"(max-width: 809px)\").matches){setVisibleHeight(null);return;}if(viewport&&viewport.scale!==1)return;const height=Math.round(Math.min(window.innerHeight,viewport?.height??window.innerHeight));if(height>0)setVisibleHeight(height);});};update();viewport?.addEventListener(\"resize\",update);window.addEventListener(\"resize\",update);return()=>{cancelAnimationFrame(frame);viewport?.removeEventListener(\"resize\",update);window.removeEventListener(\"resize\",update);};},[]);return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:`@media (max-width: 809px) {\n            [data-chey-phone-hero] { height: var(--chey-visible-height, 100dvh) !important; min-height: 0 !important; max-height: none !important; box-sizing: border-box; }\n            [data-chey-phone-hero] [data-framer-name=\"Scroll Down\"] { top: auto !important; bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important; z-index: 6; visibility: visible; opacity: 1; }\n        }`}),/*#__PURE__*/_jsx(Component,{...props,ref:ref,\"data-chey-phone-hero\":\"\",style:{...props.style,...visibleHeight?{\"--chey-visible-height\":visibleHeight+\"px\"}:{}}})]});});}export function withFooterSafeArea(Component){return /*#__PURE__*/forwardRef((props,ref)=>/*#__PURE__*/_jsx(Component,{...props,ref:ref,style:{...props.style,paddingBottom:\"calc(48px + env(safe-area-inset-bottom, 0px))\"}}));}export function withVideoAspect(Component){return /*#__PURE__*/forwardRef((props,ref)=>/*#__PURE__*/_jsx(Component,{...props,ref:ref,style:{...props.style,height:\"auto\",aspectRatio:\"16 / 9\"}}));}export function withMobileNavInset(Component){return /*#__PURE__*/forwardRef((props,ref)=>/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:`@media (max-width: 427.98px) { [data-chey-nav-inset] { padding-left: 16px !important; padding-right: 16px !important; } } @media (min-width: 428px) and (max-width: 809.98px) { [data-chey-nav-inset] { padding-left: 20px !important; padding-right: 20px !important; } }`}),/*#__PURE__*/_jsx(Component,{...props,ref:ref,\"data-chey-nav-inset\":\"\"})]}));}\nexport const __FramerMetadata__ = {\"exports\":{\"withFooterSafeArea\":{\"type\":\"reactHoc\",\"name\":\"withFooterSafeArea\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withMobileViewport\":{\"type\":\"reactHoc\",\"name\":\"withMobileViewport\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withMobileNavInset\":{\"type\":\"reactHoc\",\"name\":\"withMobileNavInset\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withVideoAspect\":{\"type\":\"reactHoc\",\"name\":\"withVideoAspect\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./MobileLayout.map"],"mappings":"4JAAgI,SAAgB,EAAmB,EAAU,CAAC,OAAoB,GAAY,EAAM,IAAM,CAAC,GAAK,CAAC,EAAc,GAAkBA,EAAS,IAAI,EAAynB,OAAvnB,MAAc,CAAC,IAAM,EAAS,EAAO,eAAmB,EAAM,EAAQ,MAAW,CAAC,qBAAqB,CAAK,EAAE,EAAM,0BAA0B,CAAC,GAAG,CAAC,EAAO,WAAW,oBAAoB,CAAC,CAAC,QAAQ,CAAC,EAAiB,IAAI,EAAE,MAAO,CAAC,GAAG,GAAU,EAAS,QAAQ,EAAE,OAAO,IAAM,EAAO,KAAK,MAAM,KAAK,IAAI,EAAO,YAAY,GAAU,QAAQ,EAAO,WAAW,CAAC,EA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