1import{_ as N}from"./DxEVAnCg.js";import{d as f,o as t,c as s,b as r,n as c,F as g,r as v,_ as z,j as P,h as d,w as u,g as i,E as S,G as p,t as x,k as $,u as j,l as w,D,O as K,ab as E,M as H,L as W}from"./C-AxzrAu.js";import{_ as q}from"./6aUzlIMd.js";import{u as B}from"./Bzamx65O.js";import{_ as O}from"./wms1jQWc.js";import{u as F}from"./xmlHQCVz.js";const R={class:"animate-pulse grid grid-cols-1 gap-4 w-full md:grid-cols-3 md:gap-8"},U={class:"flex flex-col gap-2"},G=f({__name:"ArticleProCardHeadlineSkeleton",props:{reverse:{type:Boolean}},setup(e){return(l,o)=>(t(),s("div",R,[r("div",{class:c(["w-full aspect-video bg-gradient-to-r from-grey-20 via-grey-30 to-grey-20 rounded",e.reverse?"order-2":"order-1 md:order-2"])},null,2),r("div",{class:c(["flex flex-col gap-2",e.reverse?"order-1":"order-2 md:order-1"])},[r("div",U,[(t(),s(g,null,v(2,a=>r("div",{key:a,class:c(["h-5 bg-gradient-to-r from-grey-20 via-grey-30 to-grey-20 rounded md:h-6",a===2?"w-3/4":"w-full"])},null,2)),64)),(t(),s(g,null,v(3,a=>r("div",{key:a,class:c(["h-4 bg-gradient-to-r from-grey-20 via-grey-30 to-grey-20 rounded",a===3?"w-3/4":"w-full"])},null,2)),64))])],2)]))}}),I={},J={class:"animate-pulse flex flex-col gap-2"},Q={class:"flex gap-4"},X={class:"grow flex flex-col gap-2"};function Y(e,l){return t(),s("div",J,[r("div",Q,[r("div",X,[(t(),s(g,null,v(3,o=>r("div",{key:o,class:c(["h-4 bg-gradient-to-r from-grey-20 via-grey-30 to-grey-20 rounded",o===3?"w-3/4":"w-full"])},null,2)),64))]),l[0]||(l[0]=r("div",{class:"w-20 aspect-square bg-gradient-to-r from-grey-20 via-grey-30 to-grey-20 rounded"},null,-1))]),l[1]||(l[1]=r("div",{class:"w-3/5 h-3.5 bg-gradient-to-r from-grey-20 via-grey-30 to-grey-20 rounded"},null,-1))])}const Z=z(I,[["render",Y]]),ee={class:"animate-pulse grid grid-cols-1 gap-4 md:grid-cols-3 md:gap-8"},te=f({__name:"ArticleProCardFullSkeleton",props:{reverse:{type:Boolean}},setup(e){return(l,o)=>(t(),s("div",ee,[r("div",{class:c(["w-full aspect-video order-1 bg-gradient-to-r from-grey-20 via-grey-30 to-grey-20 rounded",e.reverse?"md:order-2":"md:order-1"])},null,2),r("div",{class:c(["flex flex-col gap-2 order-2 md:col-span-2 md:order-1",e.reverse?"md:order-1":"md:order-2"])},[(t(),s(g,null,v(2,a=>r("div",{key:a,class:c(["h-5 bg-gradient-to-r from-grey-20 via-grey-30 to-grey-20 rounded md:h-6",a===2?"w-3/4":"w-full"])},null,2)),64)),(t(),s(g,null,v(3,a=>r("div",{key:a,class:c(["h-4 bg-gradient-to-r from-grey-20 via-grey-30 to-grey-20 rounded",a===3?"w-3/4":"w-full"])},null,2)),64))],2)]))}}),re={class:"animate-pulse flex flex-col gap-4"},ae={key:0,class:"w-full aspect-video bg-gradient-to-r from-grey-20 via-grey-30 to-grey-20 rounded"},le={class:"flex flex-col gap-2"},oe=f({__name:"ArticleProCardStandardSkeleton",props:{withoutThumb:{type:Boolean}},setup(e){return(l,o)=>(t(),s("div",re,[e.withoutThumb?P("",!0):(t(),s("div",ae)),r("div",le,[(t(),s(g,null,v(3,a=>r("div",{key:a,class:c(["h-4 bg-gradient-to-r from-grey-20 via-grey-30 to-grey-20 rounded",a===3?"w-3/4":"w-full"])},null,2)),64))])]))}}),se={class:"grid grid-cols-1 gap-4 w-full md:grid-cols-3 md:gap-8"},ne=["src","alt"],ce=f({__name:"ArticleProCardHeadline",props:{article:{},reverse:{type:Boolean}},setup(e){const l=B(),o=$(()=>l.openFromValue());return(a,m)=>{const n=S;return t(),s("div",se,[d(n,{to:e.article.permalink+i(o),class:c(["flex items-center justify-center w-full aspect-video overflow-hidden md:col-span-2 md:mb-0",e.reverse?"order-2":"order-1 md:order-2"])},{default:u(()=>[r("img",{src:e.article.thumbnails.sizes.medium?.permalink,alt:e.article.title,class:"w-full"},null,8,ne)]),_:1},8,["to","class"]),r("div",{class:c(["flex flex-col gap-2",e.reverse?"order-1":"order-2 md:order-1"])},[d(n,{to:e.article.permalink+i(o),class:"font-serif font-bold text-xl text-grey-60 !leading-normal md:text-2xl hover:underline"},{default:u(()=>[p(x(e.article.title),1)]),_:1},8,["to"]),d(n,{to:e.article.permalink+i(o),class:"text-base text-grey-60"},{default:u(()=>[p(x(e.article.excerpt),1)]),_:1},8,["to"])],2)])}}}),ie={class:"flex flex-col gap-2"},de={class:"flex gap-4"},ue=["src","alt"],me={class:"text-sm text-grey-40 leading-none"},ge=f({__name:"ArticleProCardCompact",props:{article:{}},setup(e){const l=e,o=j(),{i18nKompasPro:a}=F(),{language:m}=a(),n=$(()=>{const y=new Set(["bebas-akses","uncategorized","utama","x"]),_=l.article.category?.find(C=>!y.has(C.slug));if(!_)return;const{name:b="",slug:h=""}=_,k=b;return{name:o.$decodeSpecialChars(k).replaceAll(/\b\w/g,C=>C.toUpperCase()),slug:h,permalink:`/kategori/${h}`}});return(y,_)=>{const b=S,h=O;return t(),s("div",ie,[r("div",de,[d(b,{to:e.article.permalink,class:"grow font-serif font-bold text-base text-grey-60 hover:underline"},{default:u(()=>
1[p(x(e.article.title),1)]),_:1},8,["to"]),d(b,{to:e.article.permalink,class:"shrink-0 flex items-center justify-center w-20 aspect-square overflow-hidden"},{default:u(()=>[r("img",{src:e.article.thumbnails.sizes.thumbnail?.permalink,alt:e.article.title},null,8,ue)]),_:1},8,["to"])]),r("p",me,[i(n)?(t(),s(g,{key:0},[d(b,{to:i(n).permalink,class:"font-bold text-brand-1 hover:underline"},{default:u(()=>[p(x(i(n).name),1)]),_:1},8,["to"]),_[0]||(_[0]=p(" · ",-1))],64)):P("",!0),d(h,{"date-diff":"",locale:i(m)??"id",dt:e.article.publishedDate,format:i(m)==="id"?"d MMMM yyyy":"d MMM yyyy"},null,8,["locale","dt","format"])])])}}}),fe={class:"grid grid-cols-1 gap-4 md:grid-cols-3 md:gap-8"},ye=["src","alt"],pe=f({__name:"ArticleProCardFull",props:{article:{},reverse:{type:Boolean}},setup(e){const l=B(),o=$(()=>l.openFromValue());return(a,m)=>{const n=S;return t(),s("div",fe,[d(n,{to:e.article.permalink+i(o),class:c(["flex items-center justify-center order-1 w-full aspect-video overflow-hidden",e.reverse?"md:order-2":"md:order-1"])},{default:u(()=>[r("img",{src:e.article.thumbnails.sizes.medium?.permalink,alt:e.article.title},null,8,ye)]),_:1},8,["to","class"]),r("div",{class:c(["flex flex-col gap-2 order-2 md:col-span-2 md:order-1",e.reverse?"md:order-1":"md:order-2"])},[d(n,{to:e.article.permalink+i(o),class:"font-serif font-bold text-xl text-grey-60 leading-normal md:text-2xl hover:underline"},{default:u(()=>[p(x(e.article.title),1)]),_:1},8,["to"]),d(n,{to:e.article.permalink+i(o),class:"text-base text-grey-60"},{default:u(()=>[p(x(e.article.excerpt),1)]),_:1},8,["to"])],2)])}}}),ve={class:"flex flex-col gap-4"},he=["src","alt"],xe=f({__name:"ArticleProCardStandard",props:{article:{},withoutThumb:{type:Boolean}},setup(e){const l=B(),o=$(()=>l.openFromValue());return(a,m)=>{const n=S;return t(),s("div",ve,[e.withoutThumb?P("",!0):(t(),w(n,{key:0,to:e.article.permalink+i(o),class:"flex items-center justify-center w-full aspect-video overflow-hidden"},{default:u(()=>[r("img",{src:e.article.thumbnails.sizes.medium?.permalink,alt:e.article.title,class:"w-full"},null,8,he)]),_:1},8,["to"])),d(n,{to:e.article.permalink+i(o),class:"font-serif font-bold text-base text-grey-60 hover:underline"},{default:u(()=>[p(x(e.article.title),1)]),_:1},8,["to"])])}}}),T=f({__name:"ArticleProCard",props:{article:{},type:{default:"standard"},withoutThumb:{type:Boolean},reverse:{type:Boolean},loading:{type:Boolean,default:!1}},setup(e){const l=e,o=$(()=>{if(l.loading)switch(l.type){case"headline":return G;case"compact":return Z;case"full":return te;default:return oe}switch(l.type){case"headline":return ce;case"compact":return ge;case"full":return pe;default:return xe}});return(a,m)=>(t(),w(D(i(o)),K(E(l)),null,16))}}),_e=f({__name:"SecondaryProArticles",props:{articles:{},label:{},to:{},withoutThumb:{type:Boolean}},setup(e){return(l,o)=>{const a=T,m=N;return t(),w(m,{label:e.label,to:e.to,"empty-state":!e.articles.length},{default:u(()=>[r("div",{class:c(["flex flex-col md:flex-row",e.withoutThumb?"gap-4 divide-y divide-grey-30 md:divide-y-0 md:divide-x":"gap-8"])},[(t(!0),s(g,null,v(e.articles,(n,y)=>(t(),s("div",{key:y,class:c(["flex-1",{"pt-4 first:pt-0 md:ps-4 md:pt-0 md:first:ps-0":e.withoutThumb}])},[d(a,{article:n,"without-thumb":e.withoutThumb},null,8,["article","without-thumb"])],2))),128))],2)]),_:1},8,["label","to","empty-state"])}}}),Be=f({__name:"HeadlineProArticles",props:{articles:{},isSubCategory:{type:Boolean}},setup(e){return(l,o)=>{const a=T,m=_e,n=q,y=N;return t(),w(y,{"empty-state":!e.articles.length},{"empty-state":u(()=>[d(n,{tag:"regulation"})]),default:u(()=>[r("div",{class:c(["flex flex-col",e.isSubCategory?"gap-8":"gap-4 divide-y divide-grey-30 md:gap-6"])},[d(a,{article:e.articles[0],type:"headline",reverse:!e.isSubCategory},null,8,["article","reverse"]),d(m,{articles:e.articles.slice(1),"without-thumb":!e.isSubCategory,class:c({"pt-4 md:pt-6":!e.isSubCategory})},null,8,["articles","without-thumb","class"])],2)]),_:1},8,["empty-state"])}}}),be={class:"flex flex-col gap-8"},we={class:"flex justify-center"},Me=f({__name:"OtherProArticles",props:{articles:{},isSubCategory:{type:Boolean},canLoadMore:{type:Boolean,default:!1},isLoadingMore:{type:Boolean,default:!1}},emits:["loadMore"],setup(e){const l=e,{i18nKompasPro:o}=F(),a=B(),{activeSlug:m}=H(a),{language:n,$t:y}=o(),_=$(()=>{if(l.isSubCategory)return"";const h=y("moreArticles"),k=n.value==="id"?m.value?.parent.name??"":m.value?.parent.i18n?.[n.value]??"";return h.replaceAll("${proAccess}",k)}),b=[];
1return(h,k)=>{const M=T,L=W,C=N;return t(),w(C,{label:i(_),"empty-state":!e.articles.length},{default:u(()=>[r("div",be,[(t(!0),s(g,null,v(e.articles,(A,V)=>(t(),w(M,{key:V,article:A,type:"full",reverse:e.isSubCategory},null,8,["article","reverse"]))),128))]),e.isLoadingMore?(t(),s(g,{key:0},v(10,A=>d(M,{key:A,article:b,type:"full",reverse:e.isSubCategory,loading:""},null,8,["reverse"])),64)):P("",!0),r("div",we,[e.canLoadMore?(t(),s("button",{key:0,class:"inline-block w-max font-bold text-base text-grey-60 leading-none py-4 px-6 bg-white border border-grey-30 rounded-lg transition-all",onClick:k[0]||(k[0]=A=>h.$emit("loadMore"))},[e.isLoadingMore?(t(),w(L,{key:0,name:"fa6-solid:spinner",class:"animate-spin"})):(t(),s(g,{key:1},[p(x(i(y)("loadMore")),1)],64))])):P("",!0)])]),_:1},8,["label","empty-state"])}}});export{T as _,Be as a,_e as b,Me as c};
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.