1import{g as l,o as r,b as e,F as u,G as x,d as n,a as i,t as a,w as m,l as c,i as b,c as h,n as v,f}from"./app-DRUFJMt9.js";import{n as y}from"./404-CcAzIo20.js";import{C as w}from"./chevron-left-Dyz37H81.js";import{C as p}from"./chevron-right-BTqElfon.js";import"./createLucideIcon-pHvkJqNT.js";const _={class:"grid grid-cols-1 gap-6 md:grid-cols-3 xl:grid-cols-3"},k={class:"relative overflow-hidden aspect-w-16 aspect-h-9"},j=["src","alt"],L=["src","alt"],C={class:"relative flex flex-col flex-grow p-6 bg-gray-50"},D={class:"relative z-10 flex items-center justify-between mb-4"},z={class:"flex items-center"},M={class:"flex flex-col items-center mr-3 overflow-hidden transition-all duration-300 border rounded-lg shadow-sm bg-gradient-to-br from-emerald-50 to-emerald-100 border-emerald-100 group-hover:shadow-md"},N={class:"bg-emerald-500 text-white text-xs font-bold w-full text-center py-0.5 px-2"},T={class:"text-emerald-700 text-base font-bold py-0.5 px-3"},B={class:"flex flex-col text-xs"},H={class:"font-medium text-gray-500"},I={class:"text-gray-400"},S={class:"inline-flex items-center px-2.5 py-1.5 rounded-md text-xs font-medium text-white bg-emerald-500 border-emerald-600 shadow-md border-l-4"},V={class:"mb-3 text-xl font-bold leading-tight text-gray-900 transition-colors line-clamp-2 group-hover:text-emerald-600"},F={class:"relative z-10 mt-1"},R={class:"text-gray-600 text-sm leading-relaxed mb-5 pl-3 border-l-2 border-emerald-200 line-clamp-2 after:content-['...']"},E={class:"relative z-10 flex items-center justify-between pt-4 mt-auto border-t border-gray-200 border-dashed"},G={class:"flex items-center text-sm text-gray-500"},O={class:"mt-12"},P={key:0,class:"pb-8 pagination-container"},$={class:"flex flex-wrap items-center justify-center gap-2 mt-6"},q={key:1,class:"relative inline-flex items-center justify-center w-10 h-10 text-gray-400 bg-white border rounded-full opacity-50 cursor-not-allowed"},A={key:3,class:"relative inline-flex items-center justify-center w-10 h-10 text-gray-400 bg-white border rounded-full opacity-50 cursor-not-allowed"},J=["innerHTML"],K={class:"mt-3 text-sm text-center text-gray-500"},Q={class:"font-medium"},U={class:"font-medium"},W={class:"font-medium"},X={key:1,class:"py-20 text-center"},re={__name:"NewsList",props:{news:{type:Object}},setup(o){return(g,s)=>o.news?.data?.length>0?(r(),l(u,{key:0},[e("div",_,[(r(!0),l(u,null,x(o.news.data,t=>(r(),l("div",{key:t.id,class:"relative flex flex-col h-full overflow-hidden transition-all duration-300 bg-white border border-gray-100 shadow-sm group rounded-2xl hover:shadow-lg aos-init aos-animate","data-aos":"fade-up","data-aos-delay":"0"},[e("div",k,[t?.thumbnail?(r(),l("img",{key:0,class:"object-cover w-full h-full transition-transform duration-700 group-hover:scale-105",src:`/storage/${t.thumbnail}`,alt:t.title,loading:"lazy"},null,8,j)):(r(),l("img",{key:1,class:"object-cover w-full h-full transition-transform duration-700 group-hover:scale-105",src:n(y),alt:t.title,loading:"lazy"},null,8,L)),s[0]||(s[0]=e("div",{class:"absolute inset-0 transition-opacity duration-300 opacity-0 bg-gradient-to-t from-black/60 via-black/20 to-transparent group-hover:opacity-100"},null,-1))]),e("div",C,[e("div",D,[e("div",z,[e("div",M,[e("div",N,a(new Date(t.published_at).toLocaleString("id-ID",{month:"short"})),1),e("div",T,a(new Date(t.published_at).getDate()),1)]),e("div",B,[e("span",H,a(new Date(t.published_at).toLocaleString("id-ID",{year:"numeric"})),1),e("span",I,a(new Date(t.published_at).toLocaleString("id-ID",{weekday:"long"})),1)])]),e("span",S,a(t.category.name),1)]),i(n(c),{href:g.route("news.show",t.slug),class:"relative z-10 block group"},{default:m(()=>[s[1]||(s[1]=e("div",{class:"relative h-0.5 w-12 bg-gradient-to-r from-emerald-400 to-emerald-600 rounded-full mb-3 transition-all duration-300 group-hover:w-24"},null,-1)),e("h3",V,a(t.title),1)]),_:2,__:[1]},1032,["href"]),e("div",F,[e("p",R,a(t.excerpt),1)]),e("div",E,[e("div",G,[s[2]||(s[2]=e("i",{class:"mr-2 fas fa-user text-emerald-500"},null,-1)),e("span",null,a(t.author.name),1)]),i(n(c),{href:g.route("news.show",t.slug),class:"inline-flex items-center bg-emerald-50 hover:bg-emerald-100 text-emerald-600 font-medium text-sm rounded-full px-4 py-1.5 transition-colors duration-300 group/link"},{default:m(()=>s[3]||(s[3]=[e("span",null,"Read",-1),e("svg",{class:"ml-1.5 w-4 h-4 transform transition-transform duration-300 group-hover/link:translate-x-1",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13 7l5 5m0 0l-5 5m5-5H6"})],-1)])),_:2,__:[3]},1032,["href"])])])]))),128))]),e("div",O,[o.news?.total>
1o.news?.per_page?(r(),l("div",P,[e("div",$,[(r(!0),l(u,null,x(o.news?.links,(t,d)=>(r(),l(u,{key:d},[d===0&&t.url?(r(),h(n(c),{key:0,href:t.url,class:"relative inline-flex items-center justify-center w-10 h-10 text-gray-700 bg-white border rounded-full hover:bg-emerald-50 hover:text-emerald-600"},{default:m(()=>[i(n(w),{class:"w-5 h-5"})]),_:2},1032,["href"])):d===0&&!t.url?(r(),l("span",q,[i(n(w),{class:"w-5 h-5"})])):d===o.news?.links.length-1&&t.url?(r(),h(n(c),{key:2,href:t.url,class:"relative inline-flex items-center justify-center w-10 h-10 text-gray-700 bg-white border rounded-full hover:bg-emerald-50 hover:text-emerald-600"},{default:m(()=>[i(n(p),{class:"w-5 h-5"})]),_:2},1032,["href"])):d===o.news?.links.length-1&&!t.url?(r(),l("span",A,[i(n(p),{class:"w-5 h-5"})])):t.url?t.label!=="« Previous"&&t.label!=="Next »"?(r(),h(n(c),{key:5,href:t.url,class:v(["relative inline-flex items-center justify-center w-10 h-10 px-4 py-2 text-sm",t.active?"font-bold text-white bg-emerald-600 border border-emerald-600 rounded-full shadow-sm":"text-gray-700 transition-colors bg-white border rounded-full shadow-sm hover:border-emerald-300 hover:bg-emerald-50 hover:text-emerald-600 focus:outline-none focus:ring-2 focus:ring-emerald-500 focus:ring-offset-1"]),innerHTML:t.label},null,8,["href","class","innerHTML"])):b("",!0):(r(),l("span",{key:4,class:"relative inline-flex items-center justify-center w-10 h-10 px-4 py-2 text-sm text-gray-400 bg-white border rounded-full opacity-50 cursor-not-allowed select-none",innerHTML:t.label},null,8,J))],64))),128))]),e("div",K,[s[4]||(s[4]=f(" Menampilkan ",-1)),e("span",Q,a(o.news?.from),1),s[5]||(s[5]=f(" sampai ",-1)),e("span",U,a(o.news?.to),1),s[6]||(s[6]=f(" dari ",-1)),e("span",W,a(o.news?.total),1),s[7]||(s[7]=f(" hasil ",-1))])])):b("",!0)])],64)):(r(),l("div",X,s[8]||(s[8]=[e("h3",{class:"mb-4 text-2xl font-semibold text-gray-700"},"Tidak ada berita ditemukan",-1),e("p",{class:"text-gray-500"},"Coba periksa kembali nanti atau kunjungi halaman lain.",-1)])))}};export{re 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.