{"version":3,"file":"Navbar.C6ofQMfK.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/2OGxkT9zx4mvP8rKal1r/efYuWecyu0Xhze7ZZoA7/Navbar.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState}from\"react\";import{addPropertyControls,ControlType,useLocaleInfo}from\"framer\";const LOGO=\"https://framerusercontent.com/images/0HCLuwOOKyrQMNvRB5cGEs2s.svg\";const MUTED=\"#3D4757\";const BORDER=\"rgba(18,30,43,0.09)\";const GRAD=\"linear-gradient(120deg, #F06543 0%, #E5502C 100%)\";const LINKS_DE=[[\"produkt\",\"Produkt\"],[\"funktionen\",\"Funktionen\"],[\"lagebild\",\"Lagebild\"],[\"sicherheit\",\"Sicherheit\"],[\"preise\",\"Preise\"],[\"/blog\",\"Blog\"]];const LINKS_EN=[[\"produkt\",\"Product\"],[\"funktionen\",\"Features\"],[\"lagebild\",\"Intelligence\"],[\"sicherheit\",\"Security\"],[\"preise\",\"Pricing\"],[\"/blog\",\"Blog\"]];/**\n * Navbar\n *\n * @framerIntrinsicWidth 1200\n * @framerIntrinsicHeight 64\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function Navbar(props){const{accent=\"#F06543\",ink=\"#121E2B\",loginHref=\"/\",demoHref=\"/demo\"}=props;const[open,setOpen]=useState(false);let isEN=false;try{const info=useLocaleInfo();const l=info&&info.activeLocale;isEN=/en/i.test(l?l.code||l.slug||l.name||\"\":\"\");}catch(e){}const links=isEN?LINKS_EN:LINKS_DE;const loginLabel=isEN?\"Login\":\"Login\";const demoLabel=isEN?\"Book a demo\":\"Demo buchen\";let path=\"/\";if(typeof window!==\"undefined\")path=window.location.pathname;const strip=path.replace(/^\\/en(?=\\/|$)/,\"\")||\"/\";const enHref=\"/en\"+(strip===\"/\"?\"\":strip);const deHref=strip;const go=(e,id)=>{setOpen(false);if(id.charAt(0)===\"/\")return;if(typeof document===\"undefined\")return;const el=document.getElementById(id);if(el&&el.scrollIntoView){e.preventDefault();el.scrollIntoView({behavior:\"smooth\",block:\"start\"});}};const linkStyle={fontSize:15,fontWeight:500,letterSpacing:\"-0.01em\",color:MUTED,textDecoration:\"none\",cursor:\"pointer\",whiteSpace:\"nowrap\"};const demoBtn={display:\"inline-flex\",alignItems:\"center\",gap:7,background:GRAD,color:\"#fff\",borderRadius:999,padding:\"10px 18px\",fontSize:14,fontWeight:600,textDecoration:\"none\",whiteSpace:\"nowrap\"};const localeStyle=active=>({fontSize:13.5,fontWeight:600,textDecoration:\"none\",color:active?ink:\"rgba(61,71,87,0.5)\"});return /*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",width:\"100%\",background:\"#fff\",borderBottom:\"1px solid \"+BORDER,fontFamily:\"Geist, sans-serif\",containerType:\"inline-size\",...props.style},children:[/*#__PURE__*/_jsx(\"style\",{children:`\n.odnav-d { display: flex; align-items: center; gap: 28px; }\n.odnav-cta { display: flex; align-items: center; gap: 18px; }\n.odnav-burger { display: none; align-items: center; justify-content: center; }\n.odnav-drawer { display: block; }\n@container (max-width: 940px) {\n  .odnav-d { display: none !important; }\n  .odnav-burger { display: inline-flex !important; }\n}\n@container (min-width: 941px) {\n  .odnav-drawer { display: none !important; }\n}\n@keyframes odnavDrop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }\n`}),/*#__PURE__*/_jsxs(\"div\",{style:{maxWidth:1240,margin:\"0 auto\",display:\"flex\",alignItems:\"center\",justifyContent:\"space-between\",padding:\"12px 24px\",gap:16},children:[/*#__PURE__*/_jsx(\"a\",{href:isEN?\"/en\":\"/\",style:{display:\"inline-flex\",alignItems:\"center\",flexShrink:0},children:/*#__PURE__*/_jsx(\"img\",{src:LOGO,alt:\"OnDuty\",style:{height:26,width:\"auto\",display:\"block\"}})}),/*#__PURE__*/_jsx(\"div\",{className:\"odnav-d\",style:{flex:1,justifyContent:\"center\"},children:links.map(([id,label])=>/*#__PURE__*/_jsx(\"a\",{href:id.charAt(0)===\"/\"?isEN?\"/en\"+id:id:\"/#\"+id,onClick:e=>go(e,id),style:linkStyle,onMouseEnter:e=>{e.currentTarget.style.color=accent;},onMouseLeave:e=>{e.currentTarget.style.color=MUTED;},children:label},id))}),/*#__PURE__*/_jsxs(\"div\",{className:\"odnav-d odnav-cta\",style:{flexShrink:0},children:[/*#__PURE__*/_jsxs(\"span\",{style:{display:\"inline-flex\",gap:6},children:[/*#__PURE__*/_jsx(\"a\",{href:deHref,style:localeStyle(!isEN),children:\"DE\"}),/*#__PURE__*/_jsx(\"span\",{style:{color:\"rgba(61,71,87,0.3)\",fontSize:13.5},children:\"/\"}),/*#__PURE__*/_jsx(\"a\",{href:enHref,style:localeStyle(isEN),children:\"EN\"})]}),/*#__PURE__*/_jsx(\"a\",{href:loginHref,style:{...linkStyle,fontWeight:600},children:loginLabel}),/*#__PURE__*/_jsx(\"a\",{href:demoHref,style:demoBtn,children:demoLabel})]}),/*#__PURE__*/_jsx(\"button\",{className:\"odnav-burger\",onClick:()=>setOpen(o=>!o),\"aria-label\":\"Menu\",\"aria-expanded\":open,style:{background:\"transparent\",border:\"none\",padding:8,cursor:\"pointer\",color:ink,marginRight:-8},children:open?/*#__PURE__*/_jsx(\"svg\",{width:\"24\",height:\"24\",viewBox:\"0 0 24 24\",fill:\"none\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M6 6l12 12M18 6L6 18\",stroke:\"currentColor\",strokeWidth:\"2\",strokeLinecap:\"round\"})}):/*#__PURE__*/_jsx(\"svg\",{width:\"24\",height:\"24\",viewBox:\"0 0 24 24\",fill:\"none\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M4 7h16M4 12h16M4 17h16\",stroke:\"currentColor\",strokeWidth:\"2\",strokeLinecap:\"round\"})})})]}),open&&/*#__PURE__*/_jsxs(\"div\",{className:\"odnav-drawer\",style:{position:\"absolute\",top:\"100%\",left:0,right:0,background:\"#fff\",borderTop:\"1px solid \"+BORDER,borderBottom:\"1px solid \"+BORDER,boxShadow:\"0 24px 40px -24px rgba(18,30,43,0.25)\",padding:\"12px 24px 20px\",display:\"flex\",flexDirection:\"column\",gap:4,zIndex:50,animation:\"odnavDrop 0.22s ease both\"},children:[links.map(([id,label])=>/*#__PURE__*/_jsx(\"a\",{href:id.charAt(0)===\"/\"?isEN?\"/en\"+id:id:\"/#\"+id,onClick:e=>go(e,id),style:{...linkStyle,fontSize:17,padding:\"12px 0\",borderBottom:\"1px solid \"+BORDER},children:label},id)),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:8,padding:\"14px 0 4px\"},children:[/*#__PURE__*/_jsx(\"a\",{href:deHref,style:localeStyle(!isEN),children:\"DE\"}),/*#__PURE__*/_jsx(\"span\",{style:{color:\"rgba(61,71,87,0.3)\"},children:\"/\"}),/*#__PURE__*/_jsx(\"a\",{href:enHref,style:localeStyle(isEN),children:\"EN\"})]}),/*#__PURE__*/_jsx(\"a\",{href:loginHref,style:{...linkStyle,fontSize:16,fontWeight:600,padding:\"8px 0\"},children:loginLabel}),/*#__PURE__*/_jsx(\"a\",{href:demoHref,style:{...demoBtn,justifyContent:\"center\",padding:\"13px 18px\",fontSize:15,marginTop:6},children:demoLabel})]})]});}addPropertyControls(Navbar,{accent:{type:ControlType.Color,title:\"Accent\",defaultValue:\"#F06543\"},ink:{type:ControlType.Color,title:\"Ink\",defaultValue:\"#121E2B\"},loginHref:{type:ControlType.Link,title:\"Login link\",defaultValue:\"/\"},demoHref:{type:ControlType.Link,title:\"Demo link\",defaultValue:\"/demo\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Navbar\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerIntrinsicWidth\":\"1200\",\"framerIntrinsicHeight\":\"64\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}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