import{m as I,_ as P,a as V,b as O,c as R}from"./menu.aea978f3.js";import{y as z,r as E,w as S,l as Y,g as i,o as s,c as l,e as m,a as e,b as a,j as C,d,F as v,f as x,q as f,t as _,C as b,n as F,x as q,O as G,u as J}from"./entry.cebe1249.js";import{_ as K}from"./Footer.f1774bdd.js";const Q=""+new URL("arrow-down-black.e4dfd794.svg",import.meta.url).href,W={key:0,class:"overflow-y-auto animate-fade py-4 fixed h-full w-full z-50 bg-[#267F6D]"},X={class:"flex justify-between mx-4 pb-3 items-center",style:{"border-bottom":"1px solid #D9D9D9"}},Z={class:"flex items-center"},ee={class:"grid grid-cols-2 gap-2"},te=["onClick"],oe={class:"font-bold text-[#111111]"},ne={class:"text-md text-[#7F7F7F] line-clamp-1"},se={class:"w-full bg-white",style:{"border-bottom":"1.4px solid #EFEFEF"}},le={class:"w-[95%] lg:w-[90%] mx-auto p-4 flex items-center rounded-lg justify-between"},ie={class:"flex cursor-pointer"},ae={class:"hidden lg:flex flex-1 justify-end items-center"},re={class:"flex ml-10"},de={class:"flex"},ce=["onClick"],ue={key:0,src:Q},_e={class:"bg-white p-4 rounded-lg mt-3 h-fit"},pe={class:"text-[#7F7F7F] text-lg pb-3 font-bold",style:{"border-bottom":"1px solid #EFEFEF"}},me=["onClick"],ve={class:"font-bold text-[#11111]"},fe={__name:"Header",async setup(A){let c,g;const{mobile:w}=z(),u=E(!1),h=E(!1);function y(){u.value=!0,document.documentElement.classList.add("overflow-hidden")}function k(){u.value=!1,document.documentElement.classList.remove("overflow-hidden")}async function p(o){o&&(u.value=!1,document.documentElement.classList.remove("overflow-hidden"),await F(o))}function B(o){o.external?window.open(o.url):F(o.url)}return([c,g]=S(()=>$fetch(Y().public.API_PUBLIC_URL+"/api/setting/banner")),c=await c,g(),c)==1&&(h.value=!0),(o,t)=>{const $=i("v-img"),D=O,L=i("v-expansion-panel-title"),M=i("v-expansion-panel-text"),T=i("v-expansion-panel"),N=i("v-expansion-panels"),H=i("v-overlay"),U=R;return s(),l(v,null,[m(u)?(s(),l("div",W,[e("div",X,[e("div",Z,[a($,{src:"/logo.png",onClick:t[0]||(t[0]=n=>p("/")),width:"40"}),t[4]||(t[4]=e("div",{class:"font-semibold text-white text-lg ml-2"},[C("Universitas Cokroaminoto "),e("br"),C(" Yogyakarta")],-1))]),a(D,{onClick:k})]),e("div",{onClick:t[1]||(t[1]=n=>p("/")),class:"flex rounded-md cursor-pointer py-2 mt-6 px-6"},t[5]||(t[5]=[e("div",{class:"font-semibold text-white"},"Beranda",-1)])),e("div",{onClick:t[2]||(t[2]=n=>p("/alumni")),class:"flex rounded-md cursor-pointer py-2 px-6"},t[6]||(t[6]=[e("div",{class:"font-semibold text-white"},"Alumni",-1)])),a(N,{elevation:"0",variant:"accordion"},{default:d(()=>[(s(!0),l(v,null,x(m(I),n=>(s(),f(T,{"bg-color":"#267F6D",key:o.i},{default:d(()=>[a(L,{class:"font-xl text-white font-semibold"},{default:d(()=>[C(_(o.$t(n.parent)),1)]),_:2},1024),n.haveMenu?(s(),f(M,{key:0},{default:d(()=>[e("div",ee,[(s(!0),l(v,null,x(n.submenu,r=>(s(),l("div",{onClick:j=>p(r.url),class:"flex rounded-md cursor-pointer bg-[#F0FAFA] py-3 px-2"},[e("div",null,[e("div",oe,_(o.$t(r.title)),1),e("div",ne,_(r.description),1)])],8,te))),256))])]),_:2},1024)):b("",!0)]),_:2},1024))),128))]),_:1})])):b("",!0),e("div",se,[e("div",le,[e("div",ie,[a($,{src:"/logo.png",onClick:t[3]||(t[3]=n=>("navigateTo"in o?o.navigateTo:m(F))("/")),width:m(w)?40:50},null,8,["width"])]),e("div",ae,[(s(!0),l(v,null,x(m(V),n=>(s(),l("div",re,[e("div",de,[e("div",{onClick:r=>p(n.url),class:"mr-1 font-semibold"},_(o.$t(n.parent)),9,ce),n.haveMenu?(s(),l("img",ue)):b("",!0),n.haveMenu?(s(),f(H,{key:1,"close-on-content-click":"",openOnHover:"",activator:"parent","location-strategy":"connected","scroll-strategy":"block"},{default:d(()=>[e("div",_e,[e("div",pe,_(o.$t(n.parent)),1),e("div",{class:q([n.submenu.length<=2?"grid-rows-1":"grid-rows-2","px-1 pt-4 block grid-flow-col gap-2"])},[(s(!0),l(v,null,x(n.submenu,r=>(s(),l("div",{onClick:j=>B(r),class:"flex w-[240px] mb-3 rounded-md cursor-pointer hover:bg-[#F0FAFA] py-3 px-1"},[t[7]||(t[7]=e("div",{class:"flex-none mr-2 pt-1"},[e("img",{width:"20",src:P})],-1)),e("div",null,[e("div",ve,_(o.$t(r.title)),1)])],8,me))),256))],2)])]),_:2},1024)):b("",!0)])]))),256))]),e("div",{class:"flex lg:hidden cursor-pointer",onClick:y},[a(U)])])])],64)}}},xe={class:"min-h-screen flex flex-col bg-[#FCFCFC]"},ye=G({__name:"nohome",setup(A){return J({titleTemplate:"%s - Prodi Teknik Sipil  UCY"}),(c,g)=>{const w=fe,u=i("router-view"),h=K,y=i("v-app"),k=i("v-layout");return s(),f(k,null,{default:d(()=>[a(y,null,{default:d(()=>[e("div",xe,[a(w),(s(),f(u,{key:c.$route.fullPath})),a(h)])]),_:1})]),_:1})}}});export{ye as default};
