import{_ as $}from"./Content.vue.DMTqvoyC.js";import{_ as w}from"./Card.vue.TrLfa8Cd.js";import{_ as B}from"./index.vue.hVX2LEO7.js";import{_ as N}from"./nuxt-layout.BiQQTQLU.js";import{d as S,e as F,a2 as A,a3 as V,t as C,w as c,a9 as E,s,m as e,C as r,y as m,F as i,D as L,G as u,v}from"./entry.YecQDbUo.js";import{u as M,a as G}from"./meta.DDAF9B9O.js";import{u as H}from"./meta-social.BbulAShe.js";import{u as R}from"./department.BEHUXxPe.js";import"./uniform.CQfK_2nv.js";import"./Headshot.vue.CAJxgiba.js";import"./util.Bx7Qs3b4.js";import"./Card.vue.PDMJXOPk.js";import"./url.DB1u1Nwk.js";const T={key:0},j=v("div",{class:"text-overline"},"Department Heads",-1),q=v("div",{class:"text-overline"},"Department Contact",-1),ot=S({__name:"[slug]",async setup(z){var f;let o,_;const{params:l}=F(),{data:t}=([o,_]=A(()=>E(`department:${l.slug}`,()=>$fetch(`/api/contentstack/departments/${l.slug}`))),o=await o,_(),o);if(!t.value)throw V({statusCode:404,statusMessage:"Department Not Found!"});M((f=t.value)==null?void 0:f.title),H(t.value),G([{title:"Departments",href:"/departments"}]);const{contact:p,managers:d}=R(t.value);return(I,J)=>{const x=$,b=w,g=B,D=N;return s(),C(D,null,{default:c(()=>{var y,h,k;return[e(t)?(s(),r("article",T,[m(g,{blocks:((k=(h=(y=e(t))==null?void 0:y.sidebar)==null?void 0:h.blocks)==null?void 0:k.map(a=>a))??[]},{sidebar:c(()=>{var a;return[(a=e(d))!=null&&a.length?(s(),r(i,{key:0},[j,(s(!0),r(i,null,L(e(d),n=>(s(),C(b,{contact:n,class:"mb-5"},null,8,["contact"]))),256))],64)):u("",!0),e(p)?(s(),r(i,{key:1},[q,m(b,{contact:e(p),class:"mb-5"},null,8,["contact"])],64)):u("",!0)]}),default:c(()=>{var a,n;return[m(x,{"content-type":"department",system:(a=e(t))==null?void 0:a.system,"base-content":(n=e(t))==null?void 0:n.base},null,8,["system","base-content"])]}),_:1},8,["blocks"])])):u("",!0)]}),_:1})}}});export{ot as default};