import{_ as L}from"./Dg4l_M5U.js";import{d as B,N as $,r as O,l as o,p as u,m as e,n as r,h as f,i as d,a1 as p,t as l,j as n,s as _,G as v,H as h,q as k,E as I,a3 as D,v as F,z as T}from"./C8f13W7F.js";import{u as V}from"./Bj36TDT5.js";import"./8-ARhfJj.js";const j={class:"bg-white"},S={class:"mx-auto max-w-[1160px] px-5 xl:px-0 py-2.5"},E={class:"bg-primary"},q={class:"mx-auto max-w-[1160px] px-5 xl:px-0"},G={class:"m-0 p-0 items-center h-57px -ml-25px hidden lg:flex"},K={class:"item-text"},P={class:"icon-rotate"},J={class:"submenu hidden shadow-hover flex-row absolute z-10 top-52px left-0 flex flex-cols p-5 rounded-b-xl rounded-r-xl text-base font-medium text-secondary bg-white"},Q={class:"flex flex-col w-[260px] mr-5 font-medium flex-shrink-0"},R=["src","alt"],U={class:"z-20 absolute bottom-5 left-5 text-white"},W={class:"text-shadow pb-0.5 leading-tight"},X={class:"flex flex-wrap text-sm leading-16px"},Y={class:"pr-2.5 leading-16px"},Z={class:"px-2.5"},ee={key:0,class:"flex h-full"},te={class:"item"},se={class:"item-text"},oe={class:"lg:hidden"},ne={key:0,class:"lg:hidden bg-primary absolute w-full z-20 pb-2.5"},ae=["onClick"],le={class:"item relative w-full"},ie={class:"item-text"},re={key:0,class:"px-5 text-base font-medium"},ce={class:"block mr-5 font-medium"},ue={class:"item-text"},de={key:1,class:"h-full"},me={class:"item-text"},pe=B({__name:"BlogHeader",props:{breadcrumbs:{},blogHomepageItems:{},showBlogTitle:{type:Boolean}},setup(A){const z=A,x=$().blog,C=z.blogHomepageItems.navigation,a=O({isMenuOpen:!1,mobileClickedItems:[],navigationArticle:null,selectedMenuId:0});function y(s){s!=null&&s.article?a.navigationArticle=s.article:a.navigationArticle=z.blogHomepageItems.navigation.article}function H(s){return s.filename.replace("https://a.storyblok.com","https://img2.storyblok.com/360x220")}function M(s){a.mobileClickedItems.includes(s)?a.mobileClickedItems.splice(a.mobileClickedItems.indexOf(s),1):a.mobileClickedItems.push(s)}return(s,i)=>{const N=L,c=D,g=F;return o(),u("div",j,[e("div",S,[r(N,{items:s.breadcrumbs,class:"text-gray-dark"},null,8,["items"]),s.showBlogTitle?(o(),f(c,{key:0,to:n(x).url,class:"flex my-5 headline-1"},{default:d(()=>[p(l(s.blogHomepageItems.title),1)]),_:1},8,["to"])):_("",!0)]),e("div",E,[e("div",q,[e("div",G,[(o(!0),u(v,null,h(n(C),(t,b)=>(o(),u("div",{key:b,class:k(["nav-item",{"has-sub":t.submenu}])},[r(c,{to:t.url,"active-class":"active",class:k(["nav-item",{"has-sub":t.submenu}]),onMouseenter:m=>y(t)},{default:d(()=>[e("div",{class:"item",onMouseleave:i[0]||(i[0]=m=>y(null))},[e("div",K,[p(l(t.name)+" ",1),e("span",P,[r(g,{size:"17",icon:"far-angle-down"})])]),e("object",J,[e("div",Q,[(o(!0),u(v,null,h(t.submenu,(m,w)=>(o(),f(c,{key:w,to:m.url,class:"submenu-item pt-5",onMouseenter:fe=>y(m)},{default:d(()=>[r(g,{size:"16",icon:m.icon},null,8,["icon"]),p(l(m.name),1)]),_:2},1032,["to","onMouseenter"]))),128)),i[2]||(i[2]=e("hr",{class:"my-2.5 border-gray-light"},null,-1)),t.glossary?(o(),f(c,{key:0,to:t.glossary,class:"submenu-item"},{default:d(()=>[r(g,{size:"16",icon:"far-clipboard-list"}),p(" "+l(t.glossaryName),1)]),_:2},1032,["to"])):_("",!0),t.documents?(o(),f(c,{key:1,to:t.documents,class:"submenu-item pt-5"},{default:d(()=>[r(g,{size:"16",icon:"far-file-check"}),p(" "+l(t.documentsName),1)]),_:2},1032,["to"])):_("",!0)]),n(a).navigationArticle?(o(),f(c,{key:n(a).navigationArticle.slug,to:`${n(x).url}/${n(a).navigationArticle.slug}`,class:"w-360px h-220px hover:shadow-hover relative"},{default:d(()=>[e("img",{src:H(n(a).navigationArticle.content.image),class:"rounded-xl z-10 w-auto h-220px",alt:n(a).navigationArticle.content.image.alt},null,8,R),i[4]||(i[4]=e("div",{class:"absolute top-0 w-full h-220px rounded-xl bg-gradient-to-b from-transparent to-black opacity-60 z-11 overflow-hidden"},null,-1)),e("div",U,[e("h4",W,l(n(a).navigationArticle.content.title),1),e("div",X,[e("div",Y,l(("useFormatDate"in s?s.useFormatDate:n(V))(n(a).navigationArticle.content.publishDate,"d. M. yyyy")),1),i[3]||(i[3]=e("div",null,"|",-1)),e("div",Z,l(n(x).articleLength)+": "+l(n(a).navigationArticle.content.readTime)+" min. ",1)])])]),_:1},8,["to"])):_("",!0)])],32)]),_:2},1032,["to","class","onMouseenter"])],2))),128)),s.blogHomepageItems.navigationLink.length?(o(),u("div",ee,[(o(!0),u(v,null,h(s.blogHomepageItems.navigationLink,(t,b)=>(o(),f(c,I({key:b,ref_for:!0},t.link,{class:"nav-item"}),{default:d(()=>[e("div",te,[e("span",se,l(t.text),1)])]),_:2},1040))),128))])):_("",!0)]),e("div",oe,[e("div",{class:"flex items-center h-47px text-white text-lg font-semibold justify-between",onClick:i[1]||(i[1]=t=>n(a).isMenuOpen=!n(a).isMenuOpen)},[p(l(n(x).category||"Kategorie")+" ",1),e("span",{class:k({"rotate-icon":n(a).isMenuOpen})},[r(g,{size:"18",icon:"far-angle-down"})],2)])])])]),n(a).isMenuOpen?(o(),u("div",ne,[i[6]||(i[6]=e("hr",{class:"mx-2.5 border-gray opacity-15"},null,-1)),(o(!0),u(v,null,h(n(C),(t,b)=>(o(),u("div",{class:"nav-item-mobile has-sub",onClick:m=>M(b)},[e("div",le,[e("div",ie,[p(l(t.name)+" ",1),e("span",{class:k(["ml-2",{"rotate-icon":n(a).mobileClickedItems.includes(b)}])},[r(g,{size:"18",class:"icon-sub",icon:"far-angle-down"})],2)]),n(a).mobileClickedItems.includes(b)?(o(),u("div",re,[e("div",ce,[r(c,{to:t.url,class:"submenu-item"},{default:d(()=>[r(g,{size:"16",icon:"far-newspaper",class:"pr-2"}),p(l(n(x).allArticles),1)]),_:2},1032,["to"]),(o(!0),u(v,null,h(t.submenu,(m,w)=>(o(),f(c,{key:w,to:m.url,class:"submenu-item"},{default:d(()=>[r(g,{size:"16",icon:m.icon,class:"pr-2"},null,8,["icon"]),p(l(m.name),1)]),_:2},1032,["to"]))),128)),i[5]||(i[5]=e("hr",{class:"my-2.5 mx-2.5 border-gray opacity-15"},null,-1)),t.glossary?(o(),f(c,{key:0,to:t.glossary,class:"submenu-item"},{default:d(()=>[r(g,{size:"16",icon:"far-clipboard-list",class:"pr-2"}),p(" "+l(t.glossaryName),1)]),_:2},1032,["to"])):_("",!0),r(c,{to:t.documents,class:"submenu-item pt-5"},{default:d(()=>[r(g,{size:"16",icon:"far-file-check",class:"pr-2"}),p(" "+l(t.documentsName),1)]),_:2},1032,["to"])])])):_("",!0)])],8,ae))),256)),s.blogHomepageItems.navigationLink.length?(o(),f(c,I({key:0},s.blogHomepageItems.navigationLink[0].link,{class:"nav-item-mobile"}),{default:d(()=>[e("span",ue,l(s.blogHomepageItems.navigationLink[0].text),1)]),_:1},16)):_("",!0),s.blogHomepageItems.navigationLink.length?(o(),u("div",de,[(o(!0),u(v,null,h(s.blogHomepageItems.navigationLink,(t,b)=>(o(),f(c,I({key:b,class:"nav-item-mobile",ref_for:!0},t.link),{default:d(()=>[e("span",me,l(t.text),1)]),_:2},1040))),128))])):_("",!0)])):_("",!0)])}}}),xe=T(pe,[["__scopeId","data-v-d5cf17aa"]]);export{xe as default};