{"version":3,"file":"Navigation.-C1ynjXV.mjs","names":["useState","useMemo","__esmMin","pe","init_npm_react_18_3_1","init_ssg_sandbox_shims","te","window","_e","p","init_jsx_runtime","ce","addPropertyControls","ControlType","init_framer_B1b760uK","Navigation","props","isMobile","setIsMobile","updateBreakpoint","color","menuColor","logoFilter","horizontalPadding","linkStyle","style","init_Navigation"],"sources":["https:/framerusercontent.com/modules/Vj8WjHgJ0CqIMZFuXJ1j/zFQDYoz1q8C0iZzvICfC/Navigation.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{startTransition,useEffect,useMemo,useState}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight fixed\n */export default function Navigation(props){const{menuColor,style}=props;const[isMobile,setIsMobile]=useState(false);useEffect(()=>{if(typeof window===\"undefined\")return;const updateBreakpoint=()=>{startTransition(()=>{setIsMobile(window.innerWidth<768);});};updateBreakpoint();window.addEventListener(\"resize\",updateBreakpoint);return()=>window.removeEventListener(\"resize\",updateBreakpoint);},[]);const color=menuColor===\"White\"?\"#FFFFFF\":\"#000000\";const logoFilter=menuColor===\"White\"?\"brightness(0) invert(1)\":\"none\";const horizontalPadding=isMobile?10:20;const linkStyle=useMemo(()=>({color,textDecoration:\"none\",fontSize:12,fontWeight:600,lineHeight:\"135.5%\",fontFamily:\"Switzer, Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif\",whiteSpace:\"nowrap\"}),[color]);return /*#__PURE__*/_jsxs(\"nav\",{\"aria-label\":\"Main navigation\",style:{position:\"relative\",width:\"100%\",height:40,minHeight:40,maxHeight:40,display:\"flex\",alignItems:\"center\",justifyContent:\"space-between\",background:\"transparent\",paddingLeft:horizontalPadding,paddingRight:horizontalPadding,boxSizing:\"border-box\",...style},children:[/*#__PURE__*/_jsx(\"a\",{href:\"/\",\"aria-label\":\"Home\",style:{display:\"inline-flex\",alignItems:\"center\",width:78,minWidth:78,height:\"auto\",lineHeight:0},children:/*#__PURE__*/_jsx(\"img\",{src:\"https://framerusercontent.com/images/B3Uq9M0aOBtA3gY2P2U8zldLY0.svg\",alt:\"Max Peters logo\",style:{width:78,height:\"auto\",filter:logoFilter,display:\"block\"}})}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",justifyContent:\"center\",gap:10,flex:1},children:[/*#__PURE__*/_jsx(\"a\",{href:\"/case-studies\",style:linkStyle,children:\"Works\"}),/*#__PURE__*/_jsx(\"a\",{href:\"/about\",style:linkStyle,children:\"About\"}),/*#__PURE__*/_jsx(\"a\",{href:\"/contact\",style:linkStyle,children:\"Contact\"})]}),/*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":true,style:{width:78,minWidth:78,height:1}})]});}addPropertyControls(Navigation,{menuColor:{type:ControlType.Enum,title:\"Menu color\",options:[\"Black\",\"White\"],optionTitles:[\"Black\",\"White\"],defaultValue:\"Black\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Navigation\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Navigation.map"],"mappings":"A,oNAGG,SAAwBe,EAAW,EAAM,CAAC,GAAK,CAAC,YAAU,SAAOC,EAAW,CAACC,EAASC,GAAalB,EAAS,EAAK,EAAEW,MAAc,CAAC,GAAUJ,IAAS,OAAY,OAAO,IAAMY,MAAqB,CAACb,MAAoB,CAACY,EAAYX,EAAO,WAAW,GAAG,CAAE,CAAC,CAAE,EAAwE,OAAtEY,EAAiB,EAAEZ,EAAO,iBAAiB,SAASY,CAAgB,MAAYZ,EAAO,oBAAoB,SAASY,CAAgB,CAAE,EAAE,CAAC,CAAC,EAAE,IAAMC,EAAMC,IAAY,QAAQ,UAAU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