{"version":3,"file":"HomieMobileNavigation.C7zNItbp.mjs","names":["React.useState","React.useRef","React.useId","__esmMin","init_npm_react_18_3_1","init_ssg_sandbox_shims","window","ie","_e","p","c","init_jsx_runtime","ce","de","init_framer_BWFVvmND","addPropertyControls","ControlType","HomieMobileNavigation","open","setOpen","modal","trigger","uid","close","d","old","mq","onResize","style","css","links","label","href","showFloorPlans","init_HomieMobileNavigation"],"sources":["https:/framerusercontent.com/modules/6TCnL61ksmoUdQGte244/Q7LAlateqT8B5eEc0z0g/HomieMobileNavigation.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";const links=[[\"Home\",\"/\"],[\"How Humey Works\",\"/#how-it-works\"],[\"Why Humey\",\"/#why-homey\"],[\"About\",\"/about\"]];/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n * @framerIntrinsicWidth 390\n * @framerIntrinsicHeight 76\n */export default function HomieMobileNavigation({style,showFloorPlans=false}){const[open,setOpen]=React.useState(false);const modal=React.useRef(null);const trigger=React.useRef(null);const uid=React.useId();const close=()=>{modal.current?.close();setOpen(false);trigger.current?.focus();};React.useEffect(()=>{if(!open)return;const d=modal.current;d?.showModal();const old=document.documentElement.style.overflow;document.documentElement.style.overflow=\"hidden\";const mq=window.matchMedia(\"(min-width:1200px)\");const onResize=()=>{if(mq.matches)close();};mq.addEventListener(\"change\",onResize);return()=>{document.documentElement.style.overflow=old;mq.removeEventListener(\"change\",onResize);if(d?.open)d.close();};},[open]);return /*#__PURE__*/_jsxs(\"div\",{className:\"hmn\",style:{...style,position:\"relative\",width:\"100%\",height:\"auto\"},children:[/*#__PURE__*/_jsx(\"style\",{children:css}),/*#__PURE__*/_jsxs(\"header\",{className:\"hmn-bar\",children:[/*#__PURE__*/_jsxs(\"a\",{href:\"/\",className:\"hmn-logo\",\"aria-label\":\"Humey home\",children:[/*#__PURE__*/_jsx(\"img\",{src:\"data:image/svg+xml;charset=utf-8,\"+encodeURIComponent('<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"40 28 142 162\" width=\"1420\" height=\"1620\">\\n<title>HUMEY Geometric House Monogram</title>\\n<path fill=\"#09B5F5\" d=\"M56 77 L142 42 L142 155 L56 155 Z\"/>\\n<path fill=\"#FF0064\" d=\"M80 93 L119 78 L166 89 L166 175 L80 175 Z\"/>\\n<path fill=\"#061A70\" d=\"M80 84 H102 V108 H119 V78 L142 85 V155 H119 V130 H102 V155 H80 Z\"/>\\n</svg>'),alt:\"\",style:{width:21,height:24,objectFit:\"contain\",verticalAlign:\"middle\",marginRight:8}}),\"Humey\"]}),/*#__PURE__*/_jsx(\"button\",{ref:trigger,className:\"hmn-toggle\",type:\"button\",\"aria-label\":\"Open navigation menu\",\"aria-expanded\":open,\"aria-controls\":uid,onClick:()=>setOpen(true),children:/*#__PURE__*/_jsx(\"svg\",{width:\"24\",height:\"24\",viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"2\",strokeLinecap:\"round\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M4 6h16M4 12h16M4 18h16\"})})})]}),/*#__PURE__*/_jsxs(\"dialog\",{ref:modal,id:uid,className:\"hmn-dialog\",\"aria-label\":\"Site navigation\",onCancel:e=>{e.preventDefault();close();},onClose:()=>setOpen(false),children:[/*#__PURE__*/_jsxs(\"div\",{className:\"hmn-dialog-head\",children:[/*#__PURE__*/_jsxs(\"a\",{className:\"hmn-logo\",href:\"/\",\"aria-label\":\"Humey home\",onClick:close,children:[/*#__PURE__*/_jsx(\"img\",{src:\"data:image/svg+xml;charset=utf-8,\"+encodeURIComponent('<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"40 28 142 162\" width=\"1420\" height=\"1620\">\\n<title>HUMEY Geometric House Monogram</title>\\n<path fill=\"#09B5F5\" d=\"M56 77 L142 42 L142 155 L56 155 Z\"/>\\n<path fill=\"#FF0064\" d=\"M80 93 L119 78 L166 89 L166 175 L80 175 Z\"/>\\n<path fill=\"#061A70\" d=\"M80 84 H102 V108 H119 V78 L142 85 V155 H119 V130 H102 V155 H80 Z\"/>\\n</svg>'),alt:\"\",style:{width:21,height:24,objectFit:\"contain\",verticalAlign:\"middle\",marginRight:8}}),\"Humey\"]}),/*#__PURE__*/_jsxs(\"button\",{type:\"button\",className:\"hmn-close\",onClick:close,autoFocus:true,\"aria-label\":\"Close navigation menu\",children:[\"Close \",/*#__PURE__*/_jsx(\"span\",{\"aria-hidden\":\"true\",children:\"\\xd7\"})]})]}),/*#__PURE__*/_jsxs(\"nav\",{className:\"hmn-links\",\"aria-label\":\"Main navigation\",children:[links.map(([label,href])=>/*#__PURE__*/_jsxs(\"a\",{href:href,onClick:close,children:[label,/*#__PURE__*/_jsx(\"span\",{\"aria-hidden\":\"true\",children:\"↗\"})]},href)),showFloorPlans&&/*#__PURE__*/_jsxs(\"a\",{href:\"#floor-plans\",onClick:close,children:[\"View floor plans\",/*#__PURE__*/_jsx(\"span\",{\"aria-hidden\":\"true\",children:\"↗\"})]}),/*#__PURE__*/_jsx(\"span\",{className:\"hmn-unavailable\",\"aria-disabled\":\"true\",children:\"For Landlords \"}),/*#__PURE__*/_jsxs(\"a\",{href:\"/get-started\",className:\"hmn-cta\",onClick:close,children:[\"Get Started \",/*#__PURE__*/_jsx(\"span\",{\"aria-hidden\":\"true\",children:\"→\"})]})]}),/*#__PURE__*/_jsx(\"p\",{className:\"hmn-tagline\",children:\"Renting made human.\"})]})]});}const css=`@font-face{font-family:Mattone;src:url('https://framerusercontent.com/assets/36YJn4FMZntM08iTmJYlBzlA8.woff2') format('woff2');font-weight:400;font-display:swap}\n@font-face{font-family:Mattone;src:url('https://framerusercontent.com/assets/N6IHQ5EioXKSTl6t9lslFssKI.woff2') format('woff2');font-weight:700;font-display:swap}\n@font-face{font-family:'Clash Display';src:url('https://framerusercontent.com/third-party-assets/fontshare/wf/FPDAZ2S6SW4QMSRIIKNNGTPM6VIXYMKO/5HNPQ453FRLIQWV2FNOBUU3FKTDZQVSG/Z3MGHFHX6DCTLQ55LJYRJ5MDCZPMFZU6.woff2') format('woff2');font-weight:600;font-display:swap}\n.hmn{container-type:inline-size;color:var(--token-f07bed48-a0a2-44a2-aa4c-6586c901bdd6,#0b0b0b);font-family:Mattone,Arial,sans-serif;background:white}.hmn *{box-sizing:border-box}.hmn-bar{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:76px;padding:max(16px,env(safe-area-inset-top)) max(20px,env(safe-area-inset-right)) 16px max(20px,env(safe-area-inset-left));background:white;border-bottom:1px solid #e9e9e9}.hmn a{color:inherit;text-decoration:none}.hmn .hmn-logo{font:600 30px/.9 'Clash Display',Arial,sans-serif;letter-spacing:-1px;min-height:44px;display:inline-flex;align-items:center}.hmn button{font:700 12px/1.4 Mattone,Arial,sans-serif;color:#0b0b0b;cursor:pointer;touch-action:manipulation}.hmn-toggle{width:48px;height:44px;display:grid;place-items:center;border:1px solid #ddd;border-radius:999px;background:white}.hmn :focus-visible{outline:3px solid #3478f6;outline-offset:4px}.hmn-dialog{position:fixed;inset:0;margin:0 0 0 auto;border:0;background:white;color:#0b0b0b;width:min(560px,100vw);max-width:100vw;height:100dvh;max-height:100dvh;padding:0;overflow-y:auto;overscroll-behavior:contain;font:14px/1.6 Mattone,Arial,sans-serif}.hmn-dialog::backdrop{background:#0008}.hmn-dialog{opacity:0;transform:translateX(12px);transition:opacity .16s ease-out,transform .16s ease-out,overlay .16s allow-discrete,display .16s allow-discrete}.hmn-dialog[open]{opacity:1;transform:translateX(0)}@starting-style{.hmn-dialog[open]{opacity:0;transform:translateX(12px)}}.hmn-dialog-head{position:sticky;top:0;background:white;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:16px;padding: max(16px,env(safe-area-inset-top)) max(24px,env(safe-area-inset-right)) 16px max(24px,env(safe-area-inset-left));border-bottom:1px solid #e9e9e9}.hmn-close{display:flex;align-items:center;justify-content:center;gap:14px;min-width:90px;min-height:44px;border:1px solid #ddd;border-radius:999px;background:white;padding:8px 16px}.hmn-close span{font-size:24px;line-height:1}.hmn-links{display:flex;flex-direction:column;gap:0;padding:24px max(28px,env(safe-area-inset-right)) 0 max(28px,env(safe-area-inset-left))}.hmn-links>a:not(.hmn-cta){font:600 28px/1.3 'Clash Display',Arial,sans-serif;min-height:64px;padding:16px 0;border-bottom:1px solid #eee;display:flex;align-items:center;justify-content:space-between;gap:20px}.hmn-links>a:not(.hmn-cta):hover{color:#3757b0}.hmn-links>a>span{font-size:24px}.hmn-unavailable{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 0;color:#666;font-size:14px}.hmn-unavailable small{font-size:10px}.hmn-links .hmn-cta{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:56px;margin-top:20px;padding:16px 24px;border-radius:999px;background:var(--token-2967145f-9907-4e66-980e-c5a376c72f50,#48f06f);font-weight:700;font-size:14px}.hmn-cta:hover{background:#2ed558}.hmn-tagline{margin:28px;padding:0 0 max(24px,env(safe-area-inset-bottom));font-size:11px;color:#595959}@keyframes hmn-in{from{opacity:0;transform:translateX(12px)}to{opacity:1;transform:translateX(0)}}@container(min-width:1200px){.hmn-bar{display:none}}@media(prefers-reduced-motion:reduce){.hmn-dialog{animation:none;transition:none}}@media(max-height:500px){.hmn-links{padding-top:10px}.hmn-links>a:not(.hmn-cta){min-height:48px;padding:10px 0;font-size:23px}.hmn-tagline{margin-top:20px}}\n`;addPropertyControls(HomieMobileNavigation,{showFloorPlans:{type:ControlType.Boolean,title:\"Floor plans link\",defaultValue:false}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"HomieMobileNavigation\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"76\",\"framerSupportedLayoutHeight\":\"auto\",\"framerIntrinsicWidth\":\"390\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetad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