import{r as _,w as $,u as I,c as i,a as e,j as d,v as w,e as a,i as h,F as P,f as A,b as F,l as f,g as y,h as B,o as n,n as R,t as v}from"./entry.126c240b.js";import{_ as C}from"./search.f9c251f3.js";const T=""+globalThis.__publicAssetsURL("download.svg"),V={class:"animate-fade w-full"},J={class:"bg-white uhjk py-6 mt-6 w-[90%] mx-auto rounded-xl my-12",style:{border:"1.4px solid #EFEFEF"}},M=e("div",{class:"sm:flex items-center justify-between w-full pb-4",style:{"border-bottom":"1px solid #EFEFEF"}},[e("h1",{class:"font-bold"},"Jurnal UCY")],-1),D={class:"sm:flex items-center w-full mt-8 px-4 mx-auto"},z=e("div",{class:"mr-1"},"Cari",-1),N=e("img",{src:C},null,-1),S=[z,N],H=e("div",{class:"mr-1"},"Cari",-1),Y=e("img",{src:C},null,-1),q=[H,Y],G={class:"w-full mt-8 grid grid-cols-1 sm:grid-cols-2 gap-6"},K={style:{border:"1px solid #EFEFEF"},class:"sm:flex items-center rounded-xl p-4"},O={class:"sm:px-3 ui"},Q={class:"flex items-center justify-between"},W=e("div",{class:"uppercase tracking-widest font-semibold text-[#2E8586]"},[e("span",null,"Jurnal")],-1),X=["href"],Z={class:"rounded-full p-1 cursor-pointer"},ee=e("img",{src:T},null,-1),te=[ee],se=["href"],le=["onClick"],oe={class:"san line-clamp-2"},ie={class:"mt-1 text-[#7F7F7F]"},ae={class:"line-clamp-2"},ne={class:"mt-5 flex items-center justify-between"},ce={class:"flex items-center"},de={class:"flex-0 mr-2"},re={class:"flex-1"},ue={class:"text-base font-medium"},fe={__name:"Jurnal",async setup(_e){let r,x;const s=_(null),u=_(null),c=_(1),m=_(0),g=f(),{data:E,total:U}=([r,x]=$(()=>$fetch(g.public.API_PUBLIC_URL+"/api/jurnal?limit=6&page=1")),r=await r,x(),r);u.value=E,m.value=Math.ceil(U/6);async function j(){let l;if(s.value?l=await $fetch(f().public.API_PUBLIC_URL+`/api/jurnal?limit=6&page=${c.value}&search=${s.value}`):l=await $fetch(f().public.API_PUBLIC_URL+`/api/jurnal?limit=6&page=${c.value}`),u.value=l.data,navigator.userAgent.includes("Chrome")){window.scrollTo({behavior:"smooth",top:0,left:0});return}windowScrollTo(window,{behavior:"smooth",top:0,left:0})}async function b(){const{data:l,total:o}=await $fetch(g.public.API_PUBLIC_URL+`/api/jurnal?limit=100&page=1&search=${s.value}`);u.value=l,m.value=Math.ceil(o/6)}return I({title:"Informasi Mahasiswa"}),(l,o)=>{const L=y("v-img"),k=y("v-pagination"),p=B("ripple");return n(),i("div",V,[e("div",J,[M,e("div",D,[d(e("input",{"onUpdate:modelValue":o[0]||(o[0]=t=>h(s)?s.value=t:null),class:"bg-[#F8F8F8] flex-1 sm:flex hidden rounded-xl px-4 h-[50px]",placeholder:"Cari Jurnal"},null,512),[[w,a(s)]]),d(e("input",{"onUpdate:modelValue":o[1]||(o[1]=t=>h(s)?s.value=t:null),class:"flex sm:hidden bg-[#F8F8F8] w-full rounded-xl px-4 h-[50px]",placeholder:"Cari Jurnal"},null,512),[[w,a(s)]]),d((n(),i("button",{onClick:b,class:"text-base sm:text-lg hidden sm:flex items-center flex-none bg-[#2E8586] text-white ml-2 rounded-xl font-semibold text-center px-8 py-3"},S)),[[p]]),d((n(),i("button",{onClick:b,class:"text-base sm:text-lg flex sm:hidden items-center w-full justify-center mt-3 flex-none bg-[#2E8586] text-white rounded-xl font-semibold text-center px-8 py-3"},q)),[[p]])]),e("div",G,[(n(!0),i(P,null,A(a(u),t=>(n(),i("div",K,[e("div",O,[e("div",Q,[W,e("a",{href:t.url,target:"_blank"},[d((n(),i("div",Z,te)),[[p]])],8,X)]),e("a",{href:t.url,target:"_blank"},[e("div",{class:"text-2xl font-semibold cursor-pointer",onClick:me=>("navigateTo"in l?l.navigateTo:a(R))("/jurnal/"+t.slug)},[e("span",oe,v(t.title),1)],8,le)],8,se),e("div",ie,[e("span",ae,v(t.description),1)]),e("div",ne,[e("div",ce,[e("div",de,[F(L,{src:"/avatar.png",width:"30"})]),e("div",re,[e("div",ue,[e("span",null,v(t.created_by),1)])])])])])]))),256))]),F(k,{size:(l.$vuetify.display.mobile,"small"),class:"mt-10 mb-6",modelValue:a(c),"onUpdate:modelValue":[o[2]||(o[2]=t=>h(c)?c.value=t:null),j],"total-visible":5,length:a(m)},null,8,["size","modelValue","length"])])])}}};export{fe as default};
