PageSourceSearch

https://sinjaikab.go.id/_nuxt/COJNZzPw.js

js sinjaikab.go.id collected 2026-10-02 18:42:24 UTC 18,450 bytes, 2 lines download raw bytes

1import{u as V,_ as R}from"./CaxKQwCA.js";import{B as J,C as Z,h as q,L as Q,E as X,G as Y,c as i,a as t,r as o,g as n,j,F as ee,K as te,f as B,q as D,b as I,k as se,A as T,z as c,o as l,M as ae}from"./BCOB8k-4.js";const le={class:"w-full min-h-screen bg-slate-50"},ie={class:"relative bg-gradient-to-br from-red-900 via-red-800 to-red-600 pt-32 md:pt-36 lg:pt-40 pb-36 md:pb-44 lg:pb-48 overflow-hidden"},re={class:"container mx-auto px-4 md:px-6 xl:px-8 max-w-7xl relative z-10"},ne={key:0,class:"text-2xl sm:text-3xl md:text-4xl lg:text-5xl font-extrabold text-white tracking-tight drop-shadow-lg leading-tight max-w-4xl break-words"},oe={key:1,class:"text-2xl sm:text-3xl md:text-4xl lg:text-5xl font-extrabold text-white tracking-tight drop-shadow-lg leading-tight max-w-4xl"},de={key:2,class:"space-y-4 max-w-4xl animate-pulse"},ue={class:"bg-slate-50 pb-28 md:pb-36"},ce={class:"container mx-auto px-4 md:px-6 xl:px-8 max-w-7xl -mt-10 md:-mt-12 relative z-20"},pe={key:0,class:"bg-white rounded-3xl shadow-sm border border-slate-100 p-8 md:p-14 text-center max-w-xl mx-auto"},xe={key:1,class:"grid grid-cols-1 lg:grid-cols-3 gap-8 lg:gap-10 xl:gap-12 items-start"},me={class:"lg:col-span-2 space-y-8 md:space-y-10"},fe={key:0,class:"bg-white rounded-3xl shadow-sm border border-slate-100 hover:border-red-100/50 transition-all duration-300 overflow-hidden"},be={class:"p-5 sm:p-8 md:p-10"},ge={class:"prose prose-slate max-w-none text-slate-700 leading-relaxed text-base sm:text-lg"},ve=["innerHTML"],he={class:"bg-white rounded-3xl shadow-sm border border-slate-100 hover:border-red-100/50 transition-all duration-300 overflow-hidden"},we={class:"border-b border-slate-100 bg-slate-50/50 px-4 sm:px-8 py-4 sm:py-5 flex justify-between items-center flex-wrap gap-3"},ke={class:"flex items-center gap-2.5"},ye={class:"text-xs bg-slate-100 text-slate-600 font-bold px-3 py-1 rounded-full"},_e={class:"p-0 h-[480px] sm:h-[620px] md:h-[720px] xl:h-[820px] w-full bg-slate-100"},je={key:0,class:"w-full h-full flex flex-col items-center justify-center bg-slate-100 p-6 sm:p-8 text-center"},De=["href"],Te={key:1,class:"w-full h-full flex items-center justify-center p-4 bg-slate-100 overflow-hidden"},Ce=["src","alt"],Se={key:2,class:"w-full h-full flex flex-col items-center justify-center bg-slate-100/90 p-6 sm:p-8 text-center relative overflow-hidden"},$e={class:"text-lg sm:text-xl font-black text-slate-900 mb-5 max-w-md line-clamp-2"},ze={class:"flex items-center justify-center"},Le=["src"],Me={key:1,class:"w-full h-full flex items-center justify-center text-slate-400 flex-col"},Pe={class:"border-t border-slate-100 bg-slate-50/50 px-4 sm:px-8 py-4 sm:py-5 flex flex-col sm:flex-row items-stretch sm:items-center justify-end gap-3"},Be=["href","download"],Ie={key:1,class:"inline-flex items-center justify-center px-6 py-3 bg-slate-100 text-slate-400 font-bold rounded-2xl cursor-not-allowed text-xs uppercase tracking-wider"},Ue={class:"lg:col-span-1 space-y-6 md:space-y-8 lg:sticky lg:top-28 self-start"},Ee={class:"bg-white rounded-3xl shadow-sm border border-slate-100 hover:border-red-100/50 transition-all duration-300 overflow-hidden"},Ke={class:"p-5 sm:p-8"},Fe={class:"space-y-5"},We={class:"flex flex-col"},Ae={class:"text-sm font-bold text-slate-800"},Ge={class:"pt-5 border-t border-slate-100 flex flex-col"},He={class:"flex flex-wrap items-center gap-2"},Ne={key:0,class:"px-2.5 py-1 bg-slate-100 text-slate-700 font-semibold rounded-lg text-xs border border-slate-200/60"},Oe={key:1,class:"px-2.5 py-1 bg-red-50 text-red-700 font-semibold rounded-lg text-xs border border-red-100"},Ve={class:"pt-5 border-t border-slate-100 flex flex-col"},Re={key:0,class:"text-sm font-bold text-emerald-700"},Je={key:1,class:"text-sm font-bold text-amber-700"},Ze={class:"pt-5 border-t border-slate-100 flex flex-col"},qe={class:"text-sm font-bold text-slate-700"},Qe={key:2,class:"grid grid-cols-1 lg:grid-cols-3 gap-8 lg:gap-10 xl:gap-12 items-start"},tt={__name:"[slug]",setup(Xe){const U=J(),C=Z(),E=se(),v=U.params.slug,h=()=>{window.scrollTo({top:0,behavior:"smooth"}),window.history.length>1?C.back():C.push("/informasi")},w=E.public?.baseUrl||"https://sinjaikab.go.id",d=w.endsWith("/")?w.slice(0,-1):w,p=c(()=>`${d}/informasi/${encodeURIComponent(String(v))}`),K=(e="")=>{const s="https://ppidkab.sinjaikab.go.id/api/v1";return e?`${s}/${e}`:s},k=T(!1),{data:S,pending:$,error:f,refresh:F}=V("informasi-"+v,()=>$fetch(K(`informasi-pemkab/${v}`),{timeout:1e4}),{server:!1,transform:e=>e?{id:e.id,judul:e.judul,slug:e.slug,kategori:e.kategori,jenis_dokumen:e.jenis_dokumen,tahun:e.tahun,deskripsi:e.deskripsi?e.deskripsi.replace(/\r\n/g,`
2`):"",file_path:e.file_path,status:e.status,views_count:e.views_count,downloads_count:e.downloads_count,visibility:e.visibility,published_at:e.published_at,created_at:e.created_at,updated_at:e.updated_at,organization:e.organization?{name:e.organization.name,slug:e.organization.slug}:null}:null});q(()=>{k.value=!0,S.value||F()});const a=c(()=>S.value||null),z=T(!1),L=c(()=>k.value&&!$.value&&(!a.value||!!f.value));Q(()=>{if(k.value&&!$.value&&f.value){const e=f.value?.status||f.value?.statusCode;if(e===404||e===422)throw ae({statusCode:404,statusMessage:"Dokumen tidak ditemukan",fatal:!0})}});const M=e=>!e||!e.file_path?"#":e.file_path.startsWith("http://")||e.file_path.startsWith("https://")?e.file_path:`https://ppidkab.sinjaikab.go.id/storage/${e.file_path}`,P=e=>e?e.startsWith("http")?e:`https://ppidkab.sinjaikab.go.id/storage/${e}`:"",W=e=>e?e.startsWith("http")?e.includes("drive.google.com/file/d/")?e.replace(/\/view\?.*$/,"/preview"):e:P(e)+"#toolbar=0":"",A=e=>e?e.includes("drive.google.com/file/d/"):!1,x=e=>e?e.includes("drive.google.com/drive/folders")||e.includes("drive.google.com")&&!e.includes("/file/d/"):!1,b=e=>e?e.startsWith("http")&&!x(e)&&!e.includes("drive.google.com/file/d/"):!1,G=e=>{if(!e)return!1;const s=e.split(".").pop().toLowerCase();return["png","jpg","jpeg","webp","svg","gif"].includes(s)},m=T(!1);let y=null;const H=e=>{if(!e)return;const s=e.slug||e.id,r=`${d}/informasi/${s}`,u=()=>{m.value=!0,y&&clearTimeout(y),y=setTimeout(()=>{m.value=!1},2500)};navigator?.clipboard?.writeText?navigator.clipboard.writeText(r).then(()=>{u()}).catch(()=>{prompt("Salin tautan berikut secara manual:",r)}):prompt("Salin tautan berikut secara manual:",r)},N=e=>e?new Date(e).toLocaleDateString("id-ID",{day:"2-digit",month:"long",year:"numeric",timeZone:"Asia/Makassar"}):"",_=c(()=>a.value?.judul?.trim()||"Detail Dokumen"),g=c(()=>
2{if(!a.value)return"Dokumen Informasi Publik Pemerintah Kabupaten Sinjai.";const e=a.value;if(e.deskripsi){const s=e.deskripsi.replace(/(<([^>]+)>)/gi,"").replace(/\s+/g," ").trim();if(s.length>160){const r=s.substring(0,157).trim(),u=r.lastIndexOf(" ");return(u>120?r.substring(0,u):r)+"..."}return s}return`Dokumen ${e.judul} - Pemerintah Kabupaten Sinjai.`});X({title:_,ogTitle:_,description:g,ogDescription:g,ogType:"article",ogUrl:p,ogImage:`${d}/meta.png`,twitterCard:"summary_large_image",twitterTitle:_,twitterDescription:g,twitterImage:`${d}/meta.png`});const O=c(()=>{if(!a.value)return[];const e=a.value,s={"@context":"https://schema.org","@type":"DigitalDocument","@id":`${p.value}#document`,url:p.value,name:e.judul,headline:e.judul,description:g.value,datePublished:e.published_at||e.created_at,dateModified:e.updated_at||e.published_at||e.created_at,inLanguage:"id-ID",publisher:{"@type":"GovernmentOrganization","@id":`${d}#organization`,name:"Pemerintah Kabupaten Sinjai",url:d},creator:e.organization?.name?{"@type":"GovernmentOrganization",name:e.organization.name}:void 0,encodingFormat:"application/pdf",isAccessibleForFree:!0},r={"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Beranda",item:d},{"@type":"ListItem",position:2,name:"Informasi Publik",item:`${d}/informasi`},{"@type":"ListItem",position:3,name:e.judul,item:p.value}]};return[{type:"application/ld+json",innerHTML:JSON.stringify(s)},{type:"application/ld+json",innerHTML:JSON.stringify(r)}]});return Y({link:[{rel:"canonical",href:p}],script:O}),(e,s)=>{const r=R;return l(),i("div",le,[t("div",ie,[t("div",re,[a.value?(l(),i("h1",ne,o(a.value.judul),1)):L.value?(l(),i("h1",oe," Dokumen Tidak Ditemukan ")):(l(),i("div",de,[...s[2]||(s[2]=[t("div",{class:"h-9 md:h-12 bg-white/20 rounded-2xl w-5/6"},null,-1),t("div",{class:"h-9 md:h-12 bg-white/20 rounded-2xl w-3/5"},null,-1)])]))]),s[3]||(s[3]=t("div",{class:"absolute bottom-0 left-0 right-0 w-full overflow-hidden leading-none transform translate-y-1"},[t("svg",{class:"relative block w-full h-[50px] md:h-[80px]","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1200 120",preserveAspectRatio:"none"},[t("path",{d:"M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V120H0V95.8C59.71,118,130.83,121.22,201.2,110.53Z",class:"fill-slate-50"})])],-1))]),t("div",ue,[t("div",ce,[L.value?(l(),i("div",pe,[s[5]||(s[5]=t("div",{class:"w-20 h-20 bg-red-50 text-red-600 rounded-3xl flex items-center justify-center mx-auto mb-6 text-3xl shadow-inner"},[t("i",{class:"fas fa-exclamation-triangle"})],-1)),s[6]||(s[6]=t("h2",{class:"text-2xl font-black text-slate-900 mb-3"},"Dokumen Tidak Ditemukan",-1)),t("button",{onClick:h,type:"button",class:"inline-flex items-center px-6 py-3.5 bg-red-700 hover:bg-red-800 text-white font-bold rounded-2xl shadow-lg shadow-red-900/20 transition uppercase tracking-wider text-xs"},[...s[4]||(s[4]=[t("i",{class:"fas fa-arrow-left mr-2"},null,-1),n(" Kembali ke Daftar ",-1)])])])):a.value?(l(),i("div",xe,[t("div",me,[a.value.deskripsi?(l(),i("div",fe,[s[7]||(s[7]=t("div",{class:"border-b border-slate-100 bg-slate-50/50 px-4 sm:px-8 py-4 sm:py-5"},[t("h2",{class:"text-xl font-black text-slate-900 flex items-center"},[t("i",{class:"fas fa-info-circle text-red-700 mr-2.5"}),n(" Deskripsi Dokumen ")])],-1)),t("div",be,[t("div",ge,[t("div",{innerHTML:a.value.deskripsi},null,8,ve)])])])):j("",!0),t("div",he,[t("div",we,[s[9]||(s[9]=t("h2",{class:"text-xl font-black text-slate-900 flex items-center"},[t("i",{class:"fas fa-eye text-red-700 mr-2.5"}),n(" Pratinjau Dokumen ")],-1)),t("div",ke,[t("span",ye,[s[8]||(s[8]=t("i",{class:"fas fa-eye mr-1 text-slate-500"},null,-1)),n(" "+o(a.value.views_count||0)+" Kali Dilihat ",1)])])]),t("div",_e,[a.value.file_path?(l(),i(ee,{key:0},[x(a.value.file_path)||b(a.value.file_path)?(l(),i("div",je,[s[11]||(s[11]=t("div",{class:"w-16 h-16 rounded-2xl bg-slate-200/70 flex items-center justify-center text-slate-400 mb-3"},[t("i",{class:"fas fa-external-link-alt text-2xl"})],-1)),s[12]||(s[12]=t("h3",{class:"text-lg font-bold text-slate-800 mb-1"},"Tautan Eksternal",-1)),s[13]||(s[13]=t("p",{class:"text-slate-500 text-sm max-w-sm mb-5"},"Pratinjau tidak tersedia langsung untuk tautan ini.",-1)),t("a",{href:a.value.file_path.startsWith("http")?a.value.file_path:M(a.value),target:"_blank",class:"px-6 py-3 bg-red-700 hover:bg-red-800 text-white font-bold rounded-2xl shadow-md shadow-red-900/20 uppercase tracking-wider text-xs transition"},[...s[10]||(s[10]=[n(" Buka Tautan ",-1),t("i",{class:"fas fa-external-link-alt ml-1.5"},null,-1)])],8,De)])):G(a.value.file_path)?(l(),i("div",Te,[t("img",{src:P(a.value.file_path),alt:a.value.judul,loading:"lazy",decoding:"async",class:"max-w-full max-h-full object-contain rounded-2xl shadow-sm"},null,8,Ce)])):A(a.value.file_path)&&!z.value?(l(),i("div",Se,[s[15]||(s[15]=t("div",{class:"w-20 h-20 rounded-3xl bg-red-50 border border-red-100 flex items-center justify-center text-red-700 mb-4 shadow-sm"},[t("i",{class:"fas fa-file-pdf text-3xl"})],-1)),t("h3",$e,o(a.value.judul),1),t("div",ze,[t("button",{onClick:s[0]||(s[0]=u=>z.value=!0),type:"button",class:"px-6 py-3 bg-red-700 hover:bg-red-800 text-white font-bold rounded-2xl shadow-md shadow-red-700/25 uppercase tracking-wider text-xs transition-all duration-300 flex items-center gap-2 cursor-pointer active:scale-95"},[...s[14]||(s[14]=[t("i",{class:"fas fa-eye text-xs"},null,-1),t("span",null,"Lihat Pratinjau",-1)])])])])):(l(),te(r,{key:3},{fallback:B(()=>[...s[16]||(s[16]=[t("div",{class:"w-full h-full flex items-center justify-center text-slate-400 flex-col"},[t("i",{class:"fas fa-circle-notch fa-spin text-3xl text-red-700 mb-3"}),t("p",{class:"text-sm font-medium text-slate-500"},"Memuat pratinjau dokumen...")],-1)])]),default:B(()=>[t("iframe",{src:W(a.value.file_path),title:"Pratinjau Dokumen",loading:"lazy",allow:"fullscreen",class:"w-full h-full border-0"},null,8,Le)]),_:1}))],64)):(l(),i("div",Me,[...s[17]||(s[17]=[t("i",{class:"fas fa-ban text-4xl mb-3"},null,-1),t("p",null,"File tidak tersedia",-1)])]))]),t("div",Pe,[a.value.file_path?(l(),i("a",{key:0,href:M(a.value),target:"_blank",rel:"noopener noreferrer",download:!x(a.value.file_path)&&!b(a.value.file_path)?a.value.judul||"dokumen":void 0,class:"inline-flex items-center justify-center px-6 py-3 bg-red-700 hover:bg-red-800 text-white font-bold rounded-2xl shadow-md shadow-red-900/20 uppercase tracking-wider text-xs transition-all duration-300"},[t("i",{class:D([x(a.value.file_path)||b(a.value.file_path)?"fa-external-link-alt":"fa-cloud-download-alt","fas mr-2 text-xs"])},null,2),n(" "+o(x(a.value.file_path)||b(a.value.file_path)?"Buka Tautan":"Unduh Dokumen"),1)],8,Be)):(l(),i("span",Ie,[...s[18]||(s[18]=[t("i",{class:"fas fa-ban mr-1.5"},null,-1),n(" File Tidak Tersedia ",-1)])])),t("button",{onClick:s[1]||(s[1]=u=>H(a.value)),class:D(["inline-flex items-center justify-center px-5 py-3 border font-bold rounded-2xl shadow-sm transition-all duration-300 uppercase tracking-wider text-xs",m.value?"bg-emerald-50 border-emerald-300 text-emerald-700":"bg-white hover:bg-slate-100 border-slate-200 text-slate-700 hover:text-red-700"])},[t("i",{class:D([m.value?"fas fa-check text-emerald-600":"fas fa-share-alt","mr-2 text-xs"])},null,2),n(" "+o(m.value?"Tautan Disalin!":"Bagikan"),1)],2)])])]),t("div",Ue,[t("div",Ee,[s[23]||(s[23]=t("div",{class:"border-b border-slate-100 bg-slate-50/50 px-4 sm:px-8 py-4 sm:py-5"},[t("h2",{class:"text-lg font-black text-slate-900 flex items-center"},[t("i",{class:"fas fa-list-ul text-red-700 mr-2.5"}),n(" Metadata ")])],-1)),t("div",Ke,[t("ul",Fe,[t("li",We,[s[19]||(s[19]=t("span",{class:"text-xs font-bold text-slate-500 uppercase tracking-wider mb-1.5"},"Sumber",-1)),t("span",Ae,o(a.value.organization?a.value.organization.name:"Pemerintah Kabupaten"),1)]),t("li",Ge,[s[20]||(s[20]=t("span",{class:"text-xs font-bold text-slate-500 uppercase tracking-wider mb-1.5"},"Kategori & Jenis",-1)),t("div",He,[a.value.kategori?(l(),i("span",Ne,o(a.value.kategori),1)):j("",!0),a.value.jenis_dokumen?(l(),i("span",Oe,o(a.value.jenis_dokumen),1)):j("",!0)])]),t("li",Ve,[s[21]||(s[21]=t("span",{class:"text-xs font-bold text-slate-500 uppercase tracking-wider mb-1.5"},"Sifat Akses",-1)),a.value.visibility==="public"?(l(),i("span",Re," Publik ")):(l(),i("span",Je," Terbatas "))]),t("li",Ze,[s[22]||(s[22]=t("span",{class:"text-xs font-bold text-slate-500 uppercase tracking-wider mb-1.5"},"Tanggal Publikasi",-1)),t("span",qe,o(N(a.value.published_at||a.value.created_at)),1)])])])]),t("button",{onClick:h,type:"button",class:"w-full flex items-center justify-center px-6 py-3.5 bg-white border border-slate-200 text-slate-600 hover:text-red-700 hover:border-red-200 font-bold rounded-2xl hover:bg-red-50/50 transition-all duration-300 shadow-sm uppercase tracking-wider text-xs"},[...s[24]||(s[24]=[t("i",{class:"fas fa-arrow-left mr-2"},null,-1),n(" Kembali ke Daftar ",-1)])])])])):(l(),i("div",Qe,[s[27]||(s[27]=I('<div class="lg:col-span-2 space-y-8 md:space-y-10"><div class="bg-white rounded-3xl shadow-sm border border-slate-100 overflow-hidden"><div class="border-b border-slate-100 bg-slate-50/50 px-4 sm:px-8 py-4 sm:py-5 flex justify-between items-center flex-wrap gap-3"><div class="flex items-center"><i class="fas fa-eye text-red-700 mr-2.5"></i><span class="font-black text-slate-900 text-xl">Pratinjau Dokumen</span></div><div class="h-6 w-24 bg-slate-200/70 rounded-full animate-pulse"></div></div><div class="p-0 h-[480px] sm:h-[620px] md:h-[720px] w-full bg-slate-100/70 flex flex-col items-center justify-center p-8 relative"><div class="text-center"><i class="fas fa-circle-notch fa-spin text-4xl text-red-700 mb-4"></i><p class="text-slate-600 font-bold text-sm tracking-wide">Memuat data dokumen...</p><p class="text-slate-500 text-xs mt-1">Menyiapkan pratinjau berkas informasi publik</p></div></div><div class="border-t border-slate-100 bg-slate-50/50 px-4 sm:px-8 py-4 sm:py-5 flex flex-col sm:flex-row items-stretch sm:items-center justify-end gap-3 animate-pulse"><div class="h-11 w-36 bg-red-200/60 rounded-2xl"></div><div class="h-11 w-28 bg-slate-200/70 rounded-2xl"></div></div></div></div>',1)),t("div",{class:"lg:col-span-1 space-y-6 md:space-y-8 lg:sticky lg:top-28 self-start"},[s[26]||(s[26]=I('<div class="bg-white rounded-3xl shadow-sm border border-slate-100 overflow-hidden"><div class="border-b border-slate-100 bg-slate-50/50 px-4 sm:px-8 py-4 sm:py-5 flex items-center"><i class="fas fa-list-ul text-red-700 mr-2.5"></i><span class="font-black text-slate-900 text-lg">Metadata</span></div><div class="p-5 sm:p-8 space-y-5 animate-pulse"><div><div class="h-3 bg-slate-200 rounded w-16 mb-2"></div><div class="h-5 bg-slate-200/80 rounded-lg w-44"></div></div><div class="pt-5 border-t border-slate-100"><div class="h-3 bg-slate-200 rounded w-28 mb-2"></div><div class="flex gap-2"><div class="h-6 bg-slate-200 rounded-lg w-24"></div><div class="h-6 bg-red-100 rounded-lg w-28"></div></div></div><div class="pt-5 border-t border-slate-100"><div class="h-3 bg-slate-200 rounded w-20 mb-2"></div><div class="h-5 bg-emerald-100 rounded-lg w-24"></div></div><div class="pt-5 border-t border-slate-100"><div class="h-3 bg-slate-200 rounded w-32 mb-2"></div><div class="h-5 bg-slate-200/80 rounded-lg w-36"></div></div></div></div>',1)),t("button",{onClick:h,type:"button",class:"w-full flex items-center justify-center px-6 py-3.5 bg-white border border-slate-200 text-slate-600 hover:text-slate-900 font-bold rounded-2xl hover:bg-slate-50 transition-all duration-300 shadow-sm uppercase tracking-wider text-xs"},[...s[25]||(s[25]=[t("i",{class:"fas fa-arrow-left mr-2"},null,-1),n(" Kembali ke Daftar ",-1)])])])]))])])])}}};export{tt 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.