PageSourceSearch

https://ung.ac.id/_nuxt/ev5DOUTo.js

js ung.ac.id collected 2026-10-02 05:46:00 UTC 8,704 bytes, 9 lines download raw bytes

1import{_ as st}from"./DrC6DSBg.js";import{p as lt,q as nt,K as it,v as ot,m as rt,x as ct,h as w,u as V,c as d,a as t,b as u,k as p,t as r,l as i,j as dt,w as W,d as g,F as N,G as $,I as ut,o as c,E as pt,n as mt}from"./By76FmM_.js";import{_ as gt}from"./XYjTqsGE.js";import{s as I}from"./B0TW7Yan.js";import{u as ft}from"./CpUzIpVH.js";import{u as _t}from"./beoyLXs-.js";import{u as ht}from"./BUo2t9N4.js";import{u as xt}from"./Dwj1deVD.js";import"./BTdwmAfI.js";import"./Clb_K38H.js";const bt=lt("/images/chart.svg"),wt={class:"mt-25 lg:mt-37.5 left-0 right-0 mx-auto px-4 flex flex-col lg:w-220 gap-22 justify-center items-start self-stretch"},yt={class:"w-full"},vt={class:"mt-3 flex flex-col gap-5"},kt={class:"flex flex-col gap-2"},St={class:"title"},Ct={class:"flex flex-row justify-between items-center"},Lt={class:"flex flex-col lg:flex-row gap-2"},zt={class:"flex gap-1"},Nt={class:"text-xs text-disabled leading-5 flex items-center"},$t={class:"flex flex-row gap-2"},It={class:"text-xs text-disabled leading-5 flex items-center"},Pt={class:"text-xs text-disabled leading-5 flex items-center"},Tt={key:0,class:"w-full rounded-xl overflow-hidden aspect-video lg:aspect-auto lg:h-107"},jt={key:1,class:"grid grid-cols-1 lg:grid-cols-3 gap-2"},At={class:"flex flex-row gap-3"},Mt={class:"flex flex-col gap-1 w-full"},Ut={class:"flex flex-row gap-1 items-center justify-between"},Bt={class:"text-xs leading-5 text-main"},Dt={class:"text-xl font-semibold leading-7 text-main"},Ht={class:"flex flex-col mt-0.5"},Rt={class:"text-xs leading-5 text-caption"},Vt={class:"text-main font-semibold leading-6"},Wt={key:2,class:"flex flex-col lg:flex-row items-start gap-3 w-full max-w-220"},Yt={class:"flex items-center gap-1 w-full"},Et={class:"text-xs font-semibold leading-5 text-main flex-1"},Ft={class:"text-2xl font-semibold leading-8 text-main w-full"},Gt={key:0,class:"text-xs leading-5 text-caption w-full"},Ot={key:3,class:"rounded-xl overflow-hidden"},Kt=["src","alt"],qt=["innerHTML"],re=nt({__name:"[slug]",async setup(Jt){let f,P;const T=it(),{fetchPagesBySlug:Y}=ft(),{fetchUniversityStats:y}=_t(),{siteUrl:_,siteName:E}=ht(),{data:F}=([f,P]=ot(()=>xt(`pusat-informasi-${T.params.slug}`,()=>Promise.all([Y(T.params.slug),y("students").catch(()=>[]),y("staff").catch(()=>[]),y("ranking").catch(()=>[])]))),f=await f,P(),f),[j,A,G,O]=F.value??[null,[],[],[]];if(!j)throw rt({statusCode:404,message:"Halaman tidak ditemukan"});const s=j,v=ct(!1),K=e=>(e??"").replace(/<[^>]*>/g,""),q=e=>I(e??"",{allowedTags:I.defaults.allowedTags.concat(["br","div","figure","figcaption","h1","h2","h3","h4","h5","h6","img","span","table","tbody","td","tfoot","th","thead","tr"]),allowedAttributes:{a:["class","download","href","name","target","rel","title"],blockquote:["cite"],div:["class","style"],img:["alt","height","loading","src","srcset","title","width"],ol:["start","type"],p:["style"],span:["class","style"],table:["summary"],td:["colspan","rowspan","style"],th:["colspan","rowspan","scope","style"]},allowedStyles:{"*":{"text-align":[/^(left|right|center|justify)$/]}},allowedSchemes:["http","https","mailto","tel"],transformTags:{a:(a,l)=>{const o=l.href??"";return{tagName:"a",attribs:/^https?:\/\//i.test(o)&&!o.startsWith(_)||l.target==="_blank"?{...l,target:"_blank",rel:"noopener noreferrer"}:l}},img:I.simpleTransform("img",{loading:"lazy"},!0)}}),J=w(()=>q(s.content)),k=(e,a)=>e.find(l=>l.label.toLowerCase()===a.toLowerCase()),m=e=>e?.value?.trim()||"...",M=e=>e?.sub_label?.trim()||"",U=e=>{const a=M(e);return a?[{label:"Keterangan",value:a}]:[]},B=e=>{const a=e?.replace(/[^\d-]/g,"")??"";if(!a)return null;const l=Number(a);return Number.isFinite(l)?l:null},Z=e=>new Intl.NumberFormat("id-ID").format(e),D=k(A,"Mahasiswa Lokal"),h=k(A,"Mahasiswa Internasional"),H=k(G,"Staf Pengajar"),Q=[{label:"Total Mahasiswa",value:(()=>{const e=B(D?.value),a=B(h?.value);return e===null||a===null?"...":Z(e+a)})(),details:[{label:"Lokal",value:m(D)},{label:"Internasional",value:m(h)}]},{label:"Mahasiswa International",value:m(h),details:U(h)},{label:"Staf Pengajar",value:m(H),details:U(H)}],X=e=>e.sub_label?.match(/\bby\s+([A-Za-z0-9_-]+)\s*$/i)?.[1]?.trim()??"",S=(e,a)=>{const l=O.filter(o=>o.label.toLowerCase()===e.toLowerCase());if(l.length)return l.find(o=>a&&X(o).toLowerCase()===a.toLowerCase())??l[0]},C=(e,a)=>({label:e,value:m(a),desc:M(a)}),tt=[C("Peringkat di Indonesia",S("Peringkat di Indonesia","Webometrics")),C("Peringkat di Asia",S("Peringkat di Asia")),C("Peringkat di Dunia",S("Peringkat di Dunia"))],x=w(()=>s.featured_image||`${_}/og-image.jpg`),L=w(()=>`${_}/pusat-informasi/${s.slug}`),b=w(()=>K(s.content).substring(0,160));V(()=>({title:s.title,link:[{rel:"canonical",href:L.value}],script:[{type:"application/ld+json",innerHTML:JSON.stringify({"@context":"https://schema.org","@type":"NewsArticle",headline:s.title,de
1scription:b.value,image:x.value,datePublished:s.created_at,author:{"@type":"Person",name:"Redaksi Universitas Negeri Gorontalo"},publisher:{"@type":"Organization",name:E,logo:{"@type":"ImageObject",url:`${_}/images/logo-ung.png`}}})}]})),V({meta:[{name:"description",content:b},{property:"og:title",content:s.title},{property:"og:description",content:b},{property:"og:type",content:"article"},{property:"og:url",content:L},{property:"og:image",content:x},{property:"og:image:width",content:1200},{property:"og:image:height",content:630},{property:"article:published_time",content:s.created_at},{property:"article:tag",content:s.slug},{name:"twitter:card",content:"summary_large_image"},{name:"twitter:title",content:s.title},{name:"twitter:description",content:b},{name:"twitter:image",content:x}]});const et=async()=>{try{await navigator.clipboard.writeText(L.value),v.value=!0,setTimeout(()=>{v.value=!1},2e3)}catch{alert("Gagal menyalin link")}};return(e,a)=>{const l=st,o=pt,R=ut,at=gt;return c(),d("div",wt,[t("div",yt,[t("article",vt,[t("div",kt,[t("h1",St,r(i(s).title),1),t("div",Ct,[t("div",Lt,[t("div",zt,[i(s).template?(c(),dt(l,{key:0,variant:"soft",color:"neutral"},{default:W(()=>[g(r(i(s).template),1)]),_:1})):p("",!0)]),t("div",Nt,[u(o,{name:"i-lucide-user",class:"size-4 inline-block mr-1"}),a[0]||(a[0]=g(" Redaksi ",-1))]),t("div",$t,[t("div",It,[u(o,{name:"i-lucide-calendar",class:"size-4 inline-block mr-1"}),g(" "+r(e.$dayjs(i(s).created_at).format("DD MMM YYYY")),1)]),t("div",Pt,[u(o,{name:"i-lucide-clock",class:"size-4 inline-block mr-1"}),g(" "+r(e.$dayjs(i(s).created_at).format("HH:mm"))+" WITA ",1)])])]),u(R,{onClick:et,icon:"mdi-share-variant",size:"md",color:"primary",variant:"outline",class:"cursor-pointer"},{default:W(()=>[g(r(i(v)?"Link Tersalin":"Bagikan"),1)]),_:1})])]),i(s).template=="profil"?(c(),d("div",Tt,[...a[1]||(a[1]=[t("iframe",{class:"w-full h-full",src:"https://www.youtube.com/embed/kWuIAwC8Wk4?si=l2oL2oW4zKGvYLVd",title:"YouTube video player",frameborder:"0",allow:`
2              accelerometer;
3              autoplay;
4              clipboard-write;
5              encrypted-media;
6              gyroscope;
7              picture-in-picture;
8              web-share;
9            `,referrerpolicy:"strict-origin-when-cross-origin",allowfullscreen:""},null,-1)])])):p("",!0),i(s).template=="profil"?(c(),d("div",jt,[(c(),d(N,null,$(Q,n=>t("div",{key:n.label,class:"p-4 grid grid-cols-1 gap-4 bg-white shadow-[0px_4px_4px_rgba(0,0,0,0.03),0px_1px_1px_0.5px_rgba(0,0,0,0.05)] rounded-xl"},[t("div",At,[a[2]||(a[2]=t("img",{src:bt,alt:"Chart Icon",class:"w-13.5 h-13.5"},null,-1)),t("div",Mt,[t("div",Ut,[t("p",Bt,r(n.label),1),u(o,{name:"i-lucide-move-up-right",class:"size-4 text-primary"})]),t("p",Dt,r(n.value),1)])]),n.details.length?(c(),d("div",{key:0,class:mt(["grid gap-4",n.details.length>1?"grid-cols-2":"grid-cols-1"])},[(c(!0),d(N,null,$(n.details,z=>(c(),d("div",{key:`${n.label}-${z.label}`,class:"flex flex-row gap-1 items-start"},[a[3]||(a[3]=t("span",{class:"text-base text-primary"},"▪",-1)),t("div",Ht,[t("p",Rt,r(z.label),1),t("p",Vt,r(z.value),1)])]))),128))],2)):p("",!0)])),64))])):p("",!0),i(s).template=="profil"?(c(),d("div",Wt,[(c(),d(N,null,$(tt,n=>t("div",{key:n.label,class:"flex flex-col items-start p-5 gap-1 w-full lg:flex-1 bg-white shadow-[0px_4px_4px_rgba(0,0,0,0.03),0px_1px_1px_0.5px_rgba(0,0,0,0.05)] rounded-xl"},[t("div",Yt,[t("span",Et,r(n.label),1),u(o,{name:"i-lucide-trophy",class:"size-6 text-primary"})]),t("div",Ft,r(n.value),1),n.desc?(c(),d("div",Gt,r(n.desc),1)):p("",!0)])),64))])):p("",!0),i(s).featured_image?(c(),d("div",Ot,[t("img",{src:i(x),alt:i(s).title,loading:"lazy",class:"w-full"},null,8,Kt)])):p("",!0),t("div",{class:"text-base leading-7.5 text-main content-rich",innerHTML:i(J)},null,8,qt)])]),u(at)])}}});
9export{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.