{"version":3,"file":"shared-lib.DLxaEYR0.mjs","names":["React.useState","React.useRef","React.useId","_Fragment","__esmMin","ie","init_ssg_sandbox_shims","window","_e","de","l","Ha","c","init_jsx_runtime","init_npm_react_18_3_1","ce","init_framer_CaDWdxiz","RenderTarget","NyoraNavigatie","open","setOpen","mobile","setMobile","path","setPath","mounted","setMounted","root","isCanvas","id","query","update","onPointer","event","onKey","close","navigation","MINT","PURPLE","value","LINKS","link","init_Navigatie_menu","init_npm_react_dom_18_3_1","metadata","init_siteMetadata"],"sources":["https:/framerusercontent.com/modules/kXSlf4n0msxk6k19W3GS/MlApw3zPq7LTcYPn4oTB/Navigatie_menu.js","https:/framerusercontent.com/modules/hGWQ6DoocusTRlKjXbzF/itczqvbEqpED3jEVlLGI/siteMetadata.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import*as React from\"react\";import{createPortal}from\"react-dom\";import{RenderTarget}from\"framer\";/**\n * NYORA — gedeelde navigatie v10 — canvasweergave op positie, preview vast\n * Plaats deze Code Component op iedere Framer-pagina.\n * @framerIntrinsicWidth 320\n * @framerIntrinsicHeight 72\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */const LINKS=[{label:\"Zo werkt NYORA\",href:\"/zo-werkt-nyora\"},{label:\"Voor je organisatie\",href:\"/voor-je-organisatie\"},{label:\"Het gezicht achter NYORA\",href:\"/het-gezicht-achter-nyora\"},{label:\"Investering\",href:\"/investering\"},{label:\"Kennismaken met NYORA\",href:\"/kennismaken-met-nyora\"}];const PURPLE=\"#2A0129\";const MINT=\"#65E6C2\";export default function NyoraNavigatie(){const[open,setOpen]=React.useState(false);const[mobile,setMobile]=React.useState(false);const[path,setPath]=React.useState(\"\");const[mounted,setMounted]=React.useState(false);const root=React.useRef(null);const isCanvas=RenderTarget.current()===RenderTarget.canvas;const id=React.useId().replace(/:/g,\"\");React.useEffect(()=>{setMounted(true);},[]);React.useEffect(()=>{const query=window.matchMedia(\"(max-width: 760px)\");const update=()=>{setMobile(query.matches);setOpen(false);};update();query.addEventListener(\"change\",update);setPath(window.location.pathname.replace(/\\/$/,\"\")||\"/\");return()=>query.removeEventListener(\"change\",update);},[]);React.useEffect(()=>{if(!open)return;const onPointer=event=>{if(root.current&&!root.current.contains(event.target)&&!event.target.closest?.(`[data-nyora-mobile-menu=\"${id}\"]`))setOpen(false);};const onKey=event=>{if(event.key===\"Escape\")setOpen(false);};document.addEventListener(\"pointerdown\",onPointer);document.addEventListener(\"keydown\",onKey);return()=>{document.removeEventListener(\"pointerdown\",onPointer);document.removeEventListener(\"keydown\",onKey);};},[open]);const close=()=>setOpen(false);const desktopHover=()=>{if(!mobile)setOpen(true);};const desktopLeave=()=>{if(!mobile)setOpen(false);};const navigation=/*#__PURE__*/_jsxs(\"div\",{className:`nyora-nav-root-${id}`,ref:root,onMouseEnter:desktopHover,onMouseLeave:desktopLeave,onBlur:e=>{if(!e.currentTarget.contains(e.relatedTarget))close();},style:{position:isCanvas?\"relative\":\"fixed\",top:0,left:0,width:\"100%\",height:mobile?65:72,zIndex:2147483e3,overflow:\"visible\"},children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                .nyora-nav-root-${id} * { box-sizing: border-box; }\n                .nyora-nav-root-${id} { min-width:0; max-width:100%; }\n                .nyora-nav-root-${id} .ny-bar {\n                    position: relative; width:100%; height:72px; z-index: 2;\n                    min-height: 72px; display:flex; align-items:center;\n                    justify-content:space-between; gap:24px;\n                    padding: 0 clamp(22px, 5.8vw, 94px);\n                    background: rgba(42,1,41,.89);\n                    border-bottom:1px solid rgba(255,249,247,.105);\n                    -webkit-backdrop-filter:blur(17px); backdrop-filter:blur(17px);\n                    transition: background .25s ease, box-shadow .25s ease;\n                    font-family:\"Helvetica Neue\", Helvetica, Arial, sans-serif;\n                }\n                .nyora-nav-root-${id} .ny-bar.is-open { background:rgba(42,1,41,.97); box-shadow:0 13px 30px rgba(20,0,22,.14); }\n                .nyora-nav-root-${id} .ny-logo {\n                    color:#fff9f7; text-decoration:none; font-size:19px; font-weight:300;\n                    letter-spacing:.27em; line-height:1; white-space:nowrap;\n                }\n                .nyora-nav-root-${id} .ny-right { display:flex; align-items:center; gap:18px; }\n                .nyora-nav-root-${id} .ny-cta {\n                    display:inline-flex; align-items:center; justify-content:center;\n                    background:${MINT}; color:${PURPLE}; text-decoration:none;\n                    border-radius:30px; padding:11px 19px;\n                    font-size:12px; font-weight:600; white-space:nowrap;\n                    transition:filter .2s ease;\n                }\n                .nyora-nav-root-${id} .ny-cta:hover { filter:brightness(1.08); }\n                .nyora-nav-root-${id} .ny-toggle {\n                    appearance:none; background:none; border:0; cursor:pointer;\n                    display:flex; flex-direction:column; justify-content:center;\n                    align-items:center; gap:7px; width:42px; height:44px;\n                    padding:8px; flex-shrink:0;\n                }\n                .nyora-nav-root-${id} .ny-toggle span {\n                    display:block; width:25px; height:1.5px; background:#fff9f7;\n                    transition:transform .25s ease;\n                }\n                .nyora-nav-root-${id} .ny-toggle[aria-expanded=\"true\"] span:first-child { transform:translateY(4.25px) rotate(45deg); }\n                .nyora-nav-root-${id} .ny-toggle[aria-expanded=\"true\"] span:last-child { transform:translateY(-4.25px) rotate(-45deg); }\n                .nyora-nav-root-${id} .ny-links {\n                    position:absolute; top:72px; left:0; right:0; z-index:3;\n                    display:flex; flex-direction:row; align-items:center;\n                    justify-content:center; flex-wrap:wrap; gap:6px 27px;\n                    padding:17px clamp(20px,5.8vw,94px) 19px;\n                    background:#2A0129; border-bottom:1px solid rgba(101,230,194,.24);\n                    box-shadow:0 16px 28px rgba(20,0,22,.17);\n                    -webkit-backdrop-filter:blur(17px); backdrop-filter:blur(17px);\n                    opacity:0; visibility:hidden; transform:translateY(-7px);\n                    pointer-events:none;\n                    transition:opacity .23s ease, transform .23s ease, visibility .23s ease;\n                    font-family:\"Helvetica Neue\", Helvetica, Arial, sans-serif;\n                }\n                .nyora-nav-root-${id} .ny-links.is-open {\n                    opacity:1; visibility:visible; transform:translateY(0); pointer-events:auto;\n                }\n                .nyora-nav-root-${id} .ny-links a {\n                    font-size:13px; font-weight:350; color:#fff9f7; text-decoration:none;\n                    padding:10px 0; white-space:nowrap; transition:color .2s ease;\n                }\n                .nyora-nav-root-${id} .ny-links a:hover,\n                .nyora-nav-root-${id} .ny-links a[aria-current=\"page\"] { color:${MINT}; }\n                .nyora-nav-root-${id} a:focus-visible,\n                .nyora-nav-root-${id} button:focus-visible { outline:2px solid ${MINT}; outline-offset:4px; }\n                .nyora-nav-root-${id} .ny-mobile-home { display:none; }\n                @media(max-width:760px) {\n                    .nyora-nav-root-${id} { height:65px !important; background:#2A0129; }\n                    .nyora-nav-root-${id} .ny-bar {\n                        background:#2A0129; border:0; box-shadow:none;\n                        -webkit-backdrop-filter:none; backdrop-filter:none;\n                        min-height:0; height:65px; padding:0 18px;\n                        justify-content:flex-end; pointer-events:none;\n                    }\n                    .nyora-nav-root-${id} .ny-bar.is-open { background:#2A0129; box-shadow:none; }\n                    .nyora-nav-root-${id} .ny-logo { display:none; }\n                    .nyora-nav-root-${id} .ny-cta { display:none; }\n                    .nyora-nav-root-${id} .ny-right { gap:0; }\n                    .nyora-nav-root-${id} .ny-toggle {\n                        pointer-events:auto; background:${PURPLE};\n                        border:1px solid rgba(255,249,247,.14);\n                        border-radius:12px; width:45px; height:44px;\n                        box-shadow:0 5px 20px rgba(20,0,22,.14);\n                    }\n                    .nyora-nav-root-${id} .ny-links {\n                        top:65px; left:auto; right:18px;\n                        background:#2A0129; opacity:0; isolation:isolate;\n                        width:min(330px, calc(100vw - 36px));\n                        flex-direction:column; align-items:stretch; gap:0;\n                        padding:14px 23px 20px; border:1px solid rgba(101,230,194,.23);\n                        border-radius:12px; box-shadow:0 17px 38px rgba(20,0,22,.22);\n                    }\n                    .nyora-nav-root-${id} .ny-links .ny-mobile-home { display:block; color:#fff9f7; font-size:17px; font-weight:300; letter-spacing:.27em; padding:12px 0 17px; }\n                    .nyora-nav-root-${id} .ny-links a {\n                        font-size:15px; white-space:normal; padding:13px 0;\n                        border-bottom:1px solid rgba(255,255,255,.09);\n                    }\n                    .nyora-nav-root-${id} .ny-links a:last-child {\n                        color:${MINT}; border-bottom:0;\n                    }\n                }\n                @media(prefers-reduced-motion:reduce) {\n                    .nyora-nav-root-${id} *, .nyora-nav-root-${id} *::before,\n                    .nyora-nav-root-${id} *::after { transition:none !important; }\n                }\n            `}),/*#__PURE__*/_jsxs(\"div\",{className:`ny-bar${open?\" is-open\":\"\"}`,children:[/*#__PURE__*/_jsx(\"a\",{className:\"ny-logo\",href:\"/\",\"aria-label\":\"NYORA — naar home\",children:\"NYORA\"}),/*#__PURE__*/_jsxs(\"div\",{className:\"ny-right\",children:[/*#__PURE__*/_jsx(\"a\",{className:\"ny-cta\",href:\"/kennismaken-met-nyora\",children:\"Kennismaken\"}),/*#__PURE__*/_jsxs(\"button\",{className:\"ny-toggle\",type:\"button\",\"aria-label\":open?\"Sluit navigatiemenu\":\"Open navigatiemenu\",\"aria-expanded\":open,\"aria-controls\":`ny-links-${id}`,onClick:()=>setOpen(value=>!value),children:[/*#__PURE__*/_jsx(\"span\",{}),/*#__PURE__*/_jsx(\"span\",{})]})]})]}),!mobile&&/*#__PURE__*/_jsxs(\"nav\",{id:`ny-links-${id}`,\"aria-label\":\"Hoofdnavigatie\",className:`ny-links${open?\" is-open\":\"\"}`,\"aria-hidden\":!open,inert:!open?true:undefined,children:[/*#__PURE__*/_jsx(\"a\",{className:\"ny-mobile-home\",href:\"/\",onClick:close,\"aria-label\":\"NYORA — naar homepage\",\"aria-current\":path===\"/\"?\"page\":undefined,children:\"NYORA\"}),LINKS.map(link=>/*#__PURE__*/_jsx(\"a\",{href:link.href,onClick:close,\"aria-current\":path===link.href?\"page\":undefined,children:link.label},link.href))]}),mounted&&mobile&&open&&/*#__PURE__*/createPortal(/*#__PURE__*/_jsxs(\"nav\",{\"data-nyora-mobile-menu\":id,id:`ny-links-${id}`,\"aria-label\":\"Hoofdnavigatie\",style:{position:\"fixed\",top:65,right:18,left:\"auto\",width:\"min(330px, calc(100vw - 36px))\",boxSizing:\"border-box\",padding:\"16px 22px 20px\",backgroundColor:\"#2A0129\",backgroundImage:\"none\",opacity:1,isolation:\"isolate\",zIndex:2147483647,border:\"1px solid rgba(101,230,194,.28)\",borderRadius:12,boxShadow:\"0 20px 50px rgba(20,0,22,.42)\",display:\"flex\",flexDirection:\"column\",fontFamily:\"Helvetica Neue, Helvetica, Arial, sans-serif\"},children:[/*#__PURE__*/_jsx(\"a\",{href:\"/\",onClick:close,style:{color:\"#FFF9F7\",fontSize:17,letterSpacing:\".27em\",padding:\"12px 0 17px\",textDecoration:\"none\",borderBottom:\"1px solid #ffffff25\"},children:\"NYORA\"}),LINKS.map(link=>/*#__PURE__*/_jsx(\"a\",{href:link.href,onClick:close,\"aria-current\":path===link.href?\"page\":undefined,style:{color:path===link.href?MINT:\"#FFF9F7\",fontSize:15,padding:\"13px 0\",textDecoration:\"none\",borderBottom:\"1px solid #ffffff20\"},children:link.label},link.href))]}),document.body)]});return /*#__PURE__*/_jsxs(_Fragment,{children:[!isCanvas&&/*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":\"true\",style:{width:\"100%\",height:mobile?65:72,minWidth:0,flexShrink:0}}),isCanvas?navigation:mounted?/*#__PURE__*/createPortal(navigation,document.body):null]});}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"NyoraNavigatie\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Navigatie_menu.map","// Generated by Framer (3ad0d99)\nexport default function metadata(params,activeLocale){return{description:\"Made with Framer\",robots:\"max-image-preview:large\",title:\"My Framer Site\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\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