import{g as H,_ as M}from"./DWBp3f-a.js";import{d as v,aI as C,b2 as x,b3 as O,b as U,j as V,b4 as E,l as J,b5 as K,b6 as j,a as ,ドルo as m,c as y,z as t,s as _,n as a,a7 as G,H as W,aX as X,aY as Y,e as Z,aZ as k,I as q,J as h,K as Q,L as ee,M as oe,r as te,ae,v as ne,w as b,N as se,y as re}from"./THKDK2vJ.js";import{a as me}from"./CGo2nIzJ.js";import{a as ce,b as pe}from"./BZuYtqtm.js";import{_ as ie,a as le}from"./BImndmkU.js";import{_ as ue}from"./CtJ6Fov1.js";import{_ as _e,a as de}from"./rl8dtii3.js";import{_ as fe}from"./BPFdVrFZ.js";import{_ as ge}from"./YJm4DKqa.js";import{_ as be}from"./ClCEtD3u.js";import{_ as Se}from"./D5H62OD-.js";import{_ as $e,a as he}from"./CuZpHWBq.js";import{s as ve}from"./BrCwotgh.js";import"./DuEI0n4-.js";import"./BQcMRhkh.js";import"./D_VJnh_o.js";import"./BjUJeUOJ.js";import"./AsNYHyjE.js";import"./zfOrzVHD.js";import"./VprD6uco.js";const xe=v({__name:"Department",setup(z){var r,p;const{currentRoute:n}=C(),{getMetadata:e,getBasicPageData:o}=x(),c=O(n.value.path),s=e==null?void 0:e.title,d=e==null?void 0:e.description,l=U(o==null?void 0:o.canonicalPath),u=!((r=e==null?void 0:e.robotsOverrides)!=null&&r.includes("disallowIndexing")),f=!((p=e==null?void 0:e.robotsOverrides)!=null&&p.includes("disallowFollowing"));return V({title:c===1?s:`${s} - Seite ${c}`,description:d,robots:H({follow:f,index:c===1&&u}),...E(s,d,l)}),J({link:[u&&c===1?{rel:"canonical",href:l}:{}],meta:[K,j]}),o!=null&&o.path&&$(me(o==null?void 0:o.path)),o&&($(ce(o)),$(pe(o))),(i,g)=>(m(),y("div"))}}),ye={class:"flex flex-col"},ze=v({__name:"Department",setup(z){const n=x(),e=n.getPageContent("department"),o=e&&n.isDepartmentTypeDepartment("department")?e.manualSlots:[],c=n.isDepartmentTypeDepartment("department")&&(e!=null&&e.modules)?e.modules:[],s=n.isDepartmentTypeDepartment("department")&&(e!=null&&e.additionalModules)?e.additionalModules:[];return(d,l)=>{var i,g;const u=ue,f=ie,r=_e,p=de;return m(),y("div",ye,[(i=t(e))!=null&&i.pageTeaser?(m(),_(u,{key:0,class:"mb-[40px] mt-[50px]","page-teaser":t(e).pageTeaser},null,8,["page-teaser"])):(m(),_(f,{key:1,class:"mb-[40px] mt-[50px]","department-name":t(n).getDepartmentName,subnavigation:(g=t(n).basicPageState)==null?void 0:g.subpages},null,8,["department-name","subnavigation"])),a(r,{"manual-slots":t(o),"suppress-top-margin":!0},null,8,["manual-slots"]),a(p,{modules:t(c)},null,8,["modules"]),a(p,{modules:t(s)},null,8,["modules"])])}}}),Fe={class:"content-wrapper"},je=v({__name:"department",setup(z){var p;const{getAdsMetadata:n,getBasicPageData:e,getPageContent:o}=G(x()),c=W(),s=X(),d=Y(),l=Z(()=>o.value("department")),u=()=>{s.setLoadingStatus(!1),c.refreshAds("page"),ve(),h("faz-component-mounted")};k(s.departmentItems,(p=e.value)==null?void 0:p.path),q(()=>{h("faz-component-before-mount")}),Q(()=>{var i;u(),k(s.departmentItems,(i=e.value)==null?void 0:i.path)}),ee(()=>{h("faz-component-before-mount")}),oe(u);const f=C().currentRoute,r=te(0);return ae(()=>f.value.path,()=>{d.currentLayout==="department"&&r.value++}),(i,g)=>{const S=M,w=xe,T=le,D=ze,R=fe,A=ge,I=be,L=Se,N=he,B=$e;return m(),y("div",null,[a(S,{name:"pos_header","container-styles":"mx-auto min-w-screen-xs pur:max-w-screen-xl max-w-screen-lg"}),ne("div",Fe,[a(B,null,{headerSlot:b(()=>[(m(),_(w,{key:t(r)})),(m(),_(T,{key:t(r)}))]),mainSlot:b(()=>[a(S,{name:"pos_1",viewport:"desktop"}),a(R,{"ads-meta":t(n)},{default:b(()=>[(m(),_(D,{key:t(r)}))]),_:1},8,["ads-meta"])]),footerSlot:b(()=>{var F,P;return[a(A,{topics:(F=t(l))==null?void 0:F.topics,class:"content-section"},null,8,["topics"]),(P=t(l))!=null&&P.cooperationLinks?(m(),_(I,{key:0,"cooperation-links":t(l).cooperationLinks,class:"content-section"},null,8,["cooperation-links"])):re("",!0),a(L),a(S,{name:"pos_footer"}),a(N,{class:"content-section"})]}),_:1}),se(i.$slots,"default")])])}}});export{je as default};