1import{_ as G}from"./DrC6DSBg.js";import{_ as J}from"./Dso4YY73.js";import{_ as K}from"./OTB3yi_y.js";import{q as W,K as I,L as Q,x as X,v as $,h as d,y as D,u as Y,c as r,a as n,F as j,G as P,d as g,t as _,l as s,k as Z,b as S,N as tt,o as i,w as et,j as at}from"./By76FmM_.js";import{u as st}from"./BUo2t9N4.js";import{u as ot}from"./BMchPFWx.js";import{u as C}from"./Dwj1deVD.js";const nt={class:"mt-25 lg:mt-37.5 left-0 right-0 mx-auto px-4 flex flex-col lg:w-220 gap-5 lg:gap-10 justify-center items-start self-stretch"},it={class:"w-full overflow-hidden"},lt={class:"mt-4 flex flex-col lg:flex-row gap-3 justify-between items-start lg:items-center"},rt={class:"rounded-xl border p-2 bg-white border-soft"},ct={class:"flex flex-row gap-1 overflow-x-auto overflow-y-hidden scroll-smooth hide-scroll-bar"},pt={class:"flex flex-row gap-4 items-center"},dt={class:"text-sm leading-6 text-caption"},mt={class:"font-semibold text-main"},ut={class:"text-sm leading-6 text-caption"},gt={class:"font-semibold text-main"},_t={class:"text-sm leading-6 text-caption"},ft={class:"font-semibold text-main"},vt={key:0,class:"mt-6"},ht={key:1},yt={key:0,class:"mt-6 text-sm text-gray-500"},xt={key:1,class:"mt-10 grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-2"},wt={key:2,class:"mt-10 text-center w-full flex justify-center"},N="pegawai",f="dosen",B=10,Bt=W({__name:"dosen",async setup(bt){let l,m;const c=I(),w=Q(),{siteUrl:v,siteName:u,siteDescription:h}=st(),{fetchEmployeesList:U,fetchEmployeeStatistics:L,resolveEmployeePhoto:q}=ot(),E=[{label:"Penjabat",path:"/formasi/penjabat"},{label:"Dosen",path:"/formasi/dosen"},{label:"Pegawai",path:"/formasi/pegawai"}],a=X(typeof c.query.page=="string"&&Number(c.query.page)||1),{data:V}=([l,m]=$(()=>C(()=>`employee-statistics:${f}`,()=>L(f),"$Vra31v7e_M")),l=await l,m(),l),y=d(()=>V.value??{active:0,study:0,total:0}),{data:b,pending:R,refresh:A}=([l,m]=$(()=>C(()=>`employees:${f}:${N}:${a.value}:${B}`,()=>U({level:f,type:N,page:a.value,per_page:B}),{watch:[a]})),l=await l,m(),l),k=d(()=>b.value?.items??[]),p=d(()=>b.value?.meta??null),H=d(()=>(p.value?.total??0)>0),F=e=>q(e),M=e=>
1{const o=[e.department].filter(Boolean);return o.length?o.join(" ⢠"):e.education?.level||""};D(a,async e=>{await w.replace({query:{...c.query,page:e===1?void 0:String(e)}})}),D(p,async e=>{e&&a.value>e.last_page&&(a.value=e.last_page,await A())});const x=d(()=>{const e=new URL(v);return e.pathname="/formasi/dosen",a.value>1&&e.searchParams.set("page",String(a.value)),e.toString()});return Y(()=>({title:`Dosen${a.value>1?` (Halaman ${a.value})`:""}`,meta:[{name:"description",content:h},{property:"og:title",content:`Dosen - ${u}`},{property:"og:description",content:h},{property:"og:url",content:x.value},{property:"og:image",content:`${v}/og-image.jpg`},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary_large_image"},{name:"twitter:title",content:`Dosen - ${u}`},{name:"twitter:description",content:h},...a.value>1?[{name:"robots",content:"noindex,follow"}]:[]],link:[{rel:"canonical",href:x.value}],script:[{type:"application/ld+json",innerHTML:JSON.stringify({"@context":"https://schema.org","@type":"CollectionPage",name:`Dosen - ${u}`,url:x.value,isPartOf:{"@type":"WebSite",name:u,url:v}})}]})),(e,o)=>{const O=G,T=J,z=K;return i(),r("div",nt,[n("div",it,[o[4]||(o[4]=n("div",{class:"mt-3 title"},"Dosen",-1)),n("div",lt,[n("div",rt,[n("div",ct,[(i(),r(j,null,P(E,t=>S(O,{key:t.label,color:s(c).path===t.path?"primary":"neutral",variant:s(c).path===t.path?"outline":"soft",size:"lg",class:"cursor-pointer",onClick:kt=>s(w).push(t.path)},{default:et(()=>[g(_(t.label),1)]),_:2},1032,["color","variant","onClick"])),64))])]),n("div",pt,[n("div",dt,[n("span",mt,_(s(y).total??s(p)?.total??0),1),o[1]||(o[1]=g(" Dosen ",-1))]),n("div",ut,[n("span",gt,_(s(y).active??0),1),o[2]||(o[2]=g(" Aktif ",-1))]),n("div",_t,[n("span",ft,_(s(y).study??0),1),o[3]||(o[3]=g(" Studi ",-1))])])]),s(R)?(i(),r("div",vt,"Loading...")):(i(),r("div",ht,[s(k).length===0?(i(),r("div",yt," Belum ada data dosen. ")):(i(),r("div",xt,[(i(!0),r(j,null,P(s(k),t=>(i(),at(T,{key:t.uid||t.nip||t.name,"image-src":F(t)||"/images/avatar-placeholder.jpg","image-alt":t.name_with_degree||t.name,name:t.name_with_degree||t.name,position:t.position||"Dosen",subtitle:M(t),link:t.nip?`/formasi/people/${t.nip}`:"#"},null,8,["image-src","image-alt","name","position","subtitle","link"]))),128))])),s(H)?(i(),r("div",wt,[S(z,{page:s(a),"onUpdate:page":o[0]||(o[0]=t=>tt(a)?a.value=t:null),total:s(p)?.total??0,"items-per-page":s(p)?.per_page??10,variant:"link"},null,8,["page","total","items-per-page"])])):Z("",!0)]))])])}}});export{Bt as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.