PageSourceSearch

https://www.kompas.id/www-nuxt-v3/_nuxt/b5VR0PJe.js

js kompas.id collected 2026-10-01 10:28:41 UTC 8,558 bytes, 1 lines download raw bytes

1import{d as M,a as q,c as i,b as e,h as t,g as u,n as D,F as I,r as T,o as n,t as W,A as y,p as Z,k as A,L as K,_ as Q,u as X,B as Y,Z as ee,w as S,j as w,a8 as te,i as se,I as ae,a1 as ne,l as oe,a2 as ie}from"./Hm6SCfzj.js";import{_ as re}from"./8BEZz4ML.js";import{_ as le}from"./yM2QE7oS.js";import{_ as E}from"./DDEO0RtS.js";import{_ as ce}from"./CsfLsfmU.js";import{_ as ue}from"./BuTi0pVe.js";import{_ as de}from"./Cee2R2cV.js";import{_ as me}from"./B7lFyy5Z.js";import{_ as pe}from"./7JZM7_Or.js";import{u as _e}from"./BaiRrEMh.js";import"./CM79uXxQ.js";import"./DY-WjHj9.js";import"./BfU8JIuq.js";import"./BygIVjLx.js";import"./BP9fCPkj.js";import"./BMiLY8uV.js";const ge={class:"w-full lg:hidden"},fe={key:0,class:"flex-col font-bold font-pt-sans px-8 py-5 border-grey-30 border rounded-lg hidden lg:flex"},be=["onClick"],he={key:1,class:"flex-col font-bold font-pt-sans px-8 py-5 border-grey-30 border rounded-lg hidden lg:flex"},ve=M({__name:"FilterRubrik",emits:["change"],setup(F,{emit:v}){const d=y(0),C=y([]),k=v,m=A(()=>["bebas-akses","uncategorized","utama","x"]),_=async()=>{const s=Z();try{const a=await $fetch(`${s.public.KOMPAS_API_ASSETSJSON_HOST}/ApiMenuIndeksTerbaru.json`);C.value=a.category}catch(a){console.error("Error fetching categories:",a)}},o=A(()=>C.value.filter(s=>!m.value.includes(s.slug)&&"slug"in s)),p=A(()=>{const s=[{value:0,name:"Semua"}];let a=1;return o.value.forEach(c=>{s.push({value:a,name:c.name}),a++}),s}),f=s=>{d.value=s;const a=s>0?o.value[s-1].slug:"semua";k("change",a)},B=s=>{d.value=s,f(s)};return q(()=>{_()}),(s,a)=>{const c=K,l=E;return n(),i("div",null,[a[2]||(a[2]=e("h5",{class:"font-pt-sans font-bold text-grey-60 mb-3 lg:mb-6"}," Rubrik ",-1)),e("div",ge,[t(ce,{class:D(["gtm-indeks-filter-rubrik",u(d)>0?"border border-brand-1 shadow-md":""]),selection:u(d),items:u(p),onChange:B},null,8,["class","selection","items"])]),u(o).length>1?(n(),i("div",fe,[e("div",{ref:"rubrikDefault",class:D(["gtm-indeks-filter-rubrik capitalize py-5 border-b border-grey-30 flex justify-between items-center cursor-pointer",u(d)===0?"text-brand-1":"text-grey-40"]),onClick:a[0]||(a[0]=b=>f(0))},[a[1]||(a[1]=e("span",null,"Semua",-1)),t(c,{name:"fa6-solid:angle-right",size:"16"})],2),(n(!0),i(I,null,T(u(o),(b,h)=>(n(),i("div",{key:h,ref_for:!0,ref:`rubrik-${h}`,class:D(["gtm-indeks-filter-rubrik capitalize py-5 flex justify-between items-center cursor-pointer",u(o).length-1!==h?"border-b border-grey-30":"",u(d)===h+1?"text-brand-1":"text-grey-40"]),onClick:z=>f(h+1)},[e("span",null,W(b.name),1),t(c,{name:"fa6-solid:angle-right",size:"16"})],10,be))),128))])):(n(),i("div",he,[(n(),i(I,null,T(26,b=>e("div",{key:b,class:"py-5 w-full lg:flex justify-between items-center cursor-pointer hidden"},[t(l,{class:"h-6 w-full"})])),64))]))])}}}),xe=Q(ve,[["__scopeId","data-v-5cd93238"]]),ye=ie(me),ke={class:"min-h-screen max-w-3xl mx-auto px-4 pt-4"},we={class:"container"},Ce={class:"mx-auto w-full max-w-3xl"},Be={class:"py-4"},$e={class:"container"},De={class:"mx-auto w-full max-w-3xl"},Ie={class:"w-full m-auto max-w-3xl flex justify-center items-center mt-5 mb-5 lg:mb-8"},Te={name:"main",class:"w-full m-auto max-w-3xl px-4"},ze={class:"grid grid-cols-1 lg:grid-cols-12 gap-6 lg:gap-8"},Ae={class:"lg:col-span-3 xl:col-span-4"},Se={class:"lg:col-span-9 xl:col-span-8"},je={key:0,class:"flex flex-col"},Le={key:0},Oe={class:"flex flex-col"},Me=["item"],Ke={key:0,class:"border-t border-b border-grey-30 my-4 py-4 lg:my-6 lg:py-6 lg:px-8 justify-center flex"},Ee={key:0,class:"py-8 mx-auto justify-center flex"},Fe={key:0},He={key:1,class:"min-h-screen"},Ne={class:"flex flex-row h-32"},Pe={class:"w-4/5 mr-1"},Re={class:"h-12 w-full bg-[#DDD] animate-pulse rounded"},Ue={class:"h-20 pt-2 w-full bg-[#DDD] animate-pulse rounded"},Ve={class:"h-24 w-1/5 ml-4"},Ge={class:"float-right lg:h-40 h-20 w-20 lg:w-40 bg-[#DDD] animate-pulse rounded"},Je={class:"h-5 md:w-3/12 w-1/2 my-1 bg-[#DDD] animate-pulse rounded"},j="Indeks - Baca Berita Terbaru Hari Ini, Jurnalisme Berkualitas Tepercaya",L="Baca berita terbaru tepercaya Indonesia dan dunia terkini hari ini dari berbagai rubrik seperti Politik & Hukum, Ekonomi, Opini, dan lainnya.",qe="berita terbaru, berita hari ini, kompas hari ini, kompas terbaru, berita hangat kompas, terbaru kompas, berita kompas, berita terkini, terkini kompas, berita aktual terkini, berita aktual terbaru",O="https://cdn-www.kompas.id/halaman-indeks/image/indeks-16-9.jpeg",We="640",Ze="360",Qe="https://cdn-www.kompas.id/halaman-indeks/image/indeks-1-1.jpeg",_t=M({__name:"index",async setup(F){let v,d;const C=X(),k=y("semua"),m=y(0),_=y(),o=y(),{data:p,status:f,execute:B}=([v,d]=Y(async()=>ae("ArticleLatest",async()=>{const c={};m.value!==0&&(c.cursor=m.value);const l=k.value!=="semua"?"/article/list/category/"+k.value:"/article/list";return await C.$apiCds(l,{params:{...c}})},{immediate:!0})),v=await v,d(),v);_.value=p.value?.result,o.value=_.value,m.value=p.value?.meta.next||0,console.log(p.value?.meta.next);async function s(){_.value=[],o.value=[],m.value=0,await B(),_.value=p.value?.result,o.value=_.value,m.value=p.value?.meta.next||0}const a=async()=>
1{if(f.value!=="success")return;const c=o.value||[];await B();const l=p.value?.result||[];o.value=c.concat(l),m.value=p.value?.meta.next||0};return ee({title:j,meta:[{name:"description",content:L},{name:"keywords",content:qe},{property:"og:description",content:L},{property:"og:image",content:O},{property:"og:image:secure_url",content:O},{property:"og:image:width",content:We},{property:"og:image:height",content:Ze},{property:"og:title",content:j},{property:"og:type",content:"article"},{name:"twitter:description",content:L},{name:"twitter:image",content:O},{id:"twitter:image",name:"twitter:image",content:Qe},{name:"twitter:title",content:j},{name:"robots",content:"index, follow"}]}),_e({eventName:"page_viewed",customPageType:"Landing Page"}).push(),(c,l)=>{const b=ne,h=re,z=le,H=xe,N=ue,P=de,R=K,U=te,$=E,V=ye,G=pe,J=se;return n(),i("div",ke,[e("section",we,[e("div",Ce,[e("div",Be,[t(b)])])]),e("section",$e,[e("div",De,[t(h)])]),e("section",Ie,[t(z,{"target-desktop":"Leaderboard","target-mobile":"TOPMOBILE",category:"Index_Berita","network-id":"31800665","size-desktop":[970,90],"size-mobile":[320,50],"use-prebid":"","id-statis":["div-gpt-ad-TOPMOBILE","div-gpt-ad-Leaderboard"]})]),e("section",Te,[e("div",ze,[e("div",Ae,[t(H,{onChange:l[0]||(l[0]=x=>(k.value=x,s()))})]),e("div",Se,[l[2]||(l[2]=e("h5",{class:"border-b border-grey-30 font-pt-sans font-bold text-grey-60 mb-4 lg:mb-6 pb-3 lg:pb-6"}," Indeks Berita Terbaru ",-1)),_.value?(n(),i("div",je,[o.value&&o.value.length?(n(),i("div",Le,[e("div",Oe,[(n(!0),i(I,null,T(o.value,(x,g)=>(n(),i("div",{key:`post-${g}`,item:x,class:D([g+1!=o.value.length&&(g+1)%5!=0?"pb-4 mb-4 lg:pb-6 lg:mb-6 border-b border-grey-30":""])},[t(P,{post:x},{default:S(r=>[t(N,{heading:"h4","image-counter":r.imageCounter,"is-analisis":r.isAnalisis,"is-eksklusif":r.isEksklusif,"is-freemium":r.isFreemium,"is-kompas-brief":r.isKompasBrief,"is-video":r.isVideo,"published-date":r.publishedDate,thumbnail:r.featuredImageThumbnail.permalink,title:r.title,taxonomy:r.taxonomyCategory(),excerpt:r.excerpt,href:r.permalink+r.queryOpenFrom("Terbaru_Page"),"thumb-size":"36","time-diff":""},null,8,["image-counter","is-analisis","is-eksklusif","is-freemium","is-kompas-brief","is-video","published-date","thumbnail","title","taxonomy","excerpt","href"])]),_:1},8,["post"]),(g+1)%5==0&&g!=0&&g+1!=o.value.length?(n(),i("div",Ke,[t(z,{"target-desktop":"Middle1","target-mobile":"Middle1",category:"Index_Berita","network-id":"31800665","size-desktop":[728,90],"size-mobile":[320,50]})])):w("",!0)],10,Me))),128))]),m.value?(n(),i("div",Ee,[t(U,{bold:"",class:"font-sans",color:"#00559a",outlined:"",transform:"capitalize",onClick:l[1]||(l[1]=x=>a())},{default:S(()=>[u(f)==="success"?(n(),i("span",Fe,"Lihat Lainnya")):(n(),oe(R,{key:1,name:"fa6-solid:spinner",class:"animate-spin"}))]),_:1})])):w("",!0)])):w("",!0),u(f)==="pending"?(n(),i("div",He,[(n(),i(I,null,T(10,(x,g)=>e("div",{key:g,class:"h-52 w-full py-4 justify-items-stretch"},[e("div",Ne,[e("div",Pe,[e("div",Re,[t($)]),e("div",Ue,[t($)])]),e("div",Ve,[e("div",Ge,[t($)])])]),e("div",Je,[t($)])])),64))])):w("",!0)])):w("",!0)])])]),t(J,null,{default:S(()=>[t(V,{taxonomy:"Kompas.id - Terbaru Page, Kompas.id - Landing Page, Kompas.id","virtual-page-title":"Indeks - Baca Berita Terbaru Hari Ini, Jurnalisme Berkualitas Tepercaya"}),t(G,{"page-source":"indeksPage"})]),_:1})])}}});export{_t 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.