{"version":3,"file":"shared-lib.D5b_rOYL.mjs","names":["p"],"sources":["https:/framerusercontent.com/modules/15P0WElegKFQZKZJsiFn/OvayYmNLcxGmyudsdLt2/FloatingNav.js","https:/framerusercontent.com/modules/wCNOALCTbqLY9E72CL0F/hfBoSY94ED8ird9BRiuZ/siteMetadata.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";import{addPropertyControls,ControlType}from\"framer\";// ─────────────────────────────────────────────────────────────\n// Site chrome, mounted on <body> so SmoothScroll's transform can't\n// trap the fixed nav. Injects the paper scrim + the ./ route nav.\n// Navigation is a normal URL navigation — on the published site the\n// routes resolve natively, no router import needed.\n// Returns a real (invisible) element so Framer registers it as a\n// component; the visible nav lives on <body>.\n// ─────────────────────────────────────────────────────────────\nconst MONO=\"'SFMono-Regular', ui-monospace, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace\";const INK=\"rgb(30,31,37)\";const MUTED=\"rgb(130,132,130)\";const ACCENT=\"rgb(216,90,48)\";const PAPER=\"rgb(250,250,249)\";const PAPER_RGB=\"250,250,249\";function isActive(href,path){if(!path)return false;const p=path.toLowerCase();const h=href.toLowerCase();if(h===\"/\")return p===\"/\";return p===h||p.startsWith(h+\"/\");}/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n */export default function FloatingNav(props){const{homeHref=\"/\",aboutHref=\"/About\",thoughtsHref=\"/thoughts\",simularchHref=\"/simularch\"}=props;useEffect(()=>{const ITEMS=[{label:\"home\",href:homeHref},{label:\"about\",href:aboutHref},{label:\"thoughts\",href:thoughtsHref},{label:\"simularch\",href:simularchHref},{label:\"books\",href:\"/books\"}];document.querySelectorAll(\"[data-snav]\").forEach(n=>n.remove());const path=window.location.pathname;const links=ITEMS.map(it=>`<a href=\"${it.href}\" class=\"${isActive(it.href,path)?\"on\":\"\"}\"><span class=\"s\">./</span>${it.label}</a>`).join(\"\");const wrap=document.createElement(\"div\");wrap.setAttribute(\"data-snav\",\"1\");wrap.innerHTML=`\n            <style>\n                .snav-scrim{\n                    position:fixed;top:0;left:0;right:0;height:88px;\n                    pointer-events:none;z-index:2147482999;\n                    background:linear-gradient(to bottom,\n                        ${PAPER} 0%, ${PAPER} 30%,\n                        rgba(${PAPER_RGB},0.82) 58%,\n                        rgba(${PAPER_RGB},0) 100%);\n                }\n                .snav-wrap{\n                    position:fixed;top:0;left:0;right:0;z-index:2147483000;\n                    display:flex;justify-content:center;pointer-events:none;\n                }\n                .snav{\n                    display:flex;align-items:center;gap:30px;\n                    padding:26px 0 0;pointer-events:auto;\n                    font-family:${MONO};\n                    animation:snavIn 420ms cubic-bezier(.22,.61,.36,1) both;\n                }\n                .snav a{\n                    text-decoration:none;font-size:13px;font-weight:500;\n                    letter-spacing:0;line-height:1;color:${MUTED};\n                    white-space:nowrap;transition:color 180ms ease;cursor:pointer;\n                }\n                .snav a .s{ color:${MUTED}; transition:color 180ms ease; }\n                .snav a:hover{ color:${INK}; }\n                .snav a.on{ color:${INK}; }\n                .snav a.on .s{ color:${ACCENT}; }\n                @keyframes snavIn{\n                    from{ opacity:0; transform:translateY(-6px); }\n                    to{ opacity:1; transform:translateY(0); }\n                }\n                @media (prefers-reduced-motion: reduce){\n                    .snav{ animation:none; }\n                }\n                @media (max-width: 480px){\n                    .snav{ gap:16px; padding:20px 14px 0; }\n                    .snav a{ font-size:12px; }\n                }\n            </style>\n            <div class=\"snav-scrim\"></div>\n            <div class=\"snav-wrap\"><nav class=\"snav\">${links}</nav></div>\n        `;document.body.appendChild(wrap);const nav=wrap.querySelector(\".snav\");const onClick=e=>{const a=e.target.closest(\"a\");if(!a)return;e.preventDefault();const href=a.getAttribute(\"href\")||\"/\";if(window.location.pathname===href){window.scrollTo({top:0});return;}window.location.assign(href);};nav?.addEventListener(\"click\",onClick);const w=window;if(!w.__simularch_hi){w.__simularch_hi=true;console.log(\"%c./ welcome to the source\",\"color:#D85A30;font:600 13px ui-monospace,monospace\");console.log(\"%csoft chaos. sharp patterns.\",\"color:#9A6A3C;font:12px ui-monospace,monospace\");console.log(\"%c// curious enough to open the console? say hi → simularch.substack.com\",\"color:#7c7c74;font:12px ui-monospace,monospace\");}return()=>{nav?.removeEventListener(\"click\",onClick);wrap.remove();};},[homeHref,aboutHref,thoughtsHref,simularchHref]);return /*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":true,style:{width:0,height:0,overflow:\"hidden\"}});}addPropertyControls(FloatingNav,{homeHref:{type:ControlType.String,title:\"Home\",defaultValue:\"/\"},aboutHref:{type:ControlType.String,title:\"About\",defaultValue:\"/About\"},thoughtsHref:{type:ControlType.String,title:\"Thoughts\",defaultValue:\"/thoughts\"},simularchHref:{type:ControlType.String,title:\"Simularch\",defaultValue:\"/simularch\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FloatingNav\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FloatingNav.map","// Generated by Framer (8442ab0)\nexport default function metadata(params,activeLocale){return{description:\"Blending engineering precision with social science insight. Passionate about using system dynamics modeling, time-series statistics, machine learning, and simulation to tackle society’s complex challenges.\",favicon:\"https://framerusercontent.com/assets/BQh0XMLLrHIPSAXnTefw9FFTtH4.svg\",robots:\"max-image-preview:large\",socialImage:\"https://framerusercontent.com/assets/MMILQaUtUpqks4KD0xe1YN1RDjY.jpg\",title:\"Ilayda Kucukafacan\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"mLAQ0P,SAAS,EAAS,EAAK,EAAK,CAAC,GAAG,CAAC,EAAK,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