1import{_ as G,s as Z,b as j,g as w,d as K,x as B,F as I,f as Q}from"./ApiService-nvq5E6yC.js";import{u as L,ai as X,o as l,c as n,a as e,F as _,k as C,b as i,q as Y,t as p,f as R,i as tt,l as h,j as d,d as P,e as et,h as u,r as lt}from"./vue-i18n-D6XWbVxL.js";import{F as at,B as ot,W as nt,_ as st,a as it,b as rt,c as ct,d as dt,e as ut,f as pt,g as ft}from"./index-CU0h2sle.js";const z="/assets/bg-pattern-first-DJ5VyZHj.svg",gt="data:image/svg+xml,%3csvg%20width='253'%20height='169'%20viewBox='0%200%20253%20169'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Pattern'%20clip-path='url(%23clip0_3242_77232)'%3e%3cpath%20id='Vector'%20d='M252.167%2087.5864C245.012%2087.5864%20239.215%2093.3737%20239.215%20100.517C246.37%20100.517%20252.167%2094.7294%20252.167%2087.5864Z'%20fill='white'%20fill-opacity='0.3'/%3e%3cpath%20id='Vector_2'%20d='M237.357%20100.588C237.357%2093.3655%20231.488%2087.5068%20224.254%2087.5068C224.254%2094.7291%20230.123%20100.588%20237.357%20100.588Z'%20fill='white'%20fill-opacity='0.3'/%3e%3cpath%20id='Vector_3'%20d='M160.072%20142.352C160.072%20138.245%20156.737%20134.923%20152.623%20134.923C152.623%20139.03%20155.958%20142.352%20160.072%20142.352Z'%20fill='white'%20fill-opacity='0.3'/%3e%3cpath%20id='Vector_4'%20d='M251.126%20114.335C251.126%20108.341%20246.258%20103.481%20240.255%20103.481C240.255%20109.475%20245.123%20114.335%20251.126%20114.335Z'%20fill='white'%20fill-opacity='0.3'/%3e%3cpath%20id='Vector_5'%20d='M224.548%20115.151C231.457%20115.151%20237.055%20109.562%20237.055%20102.665C230.146%20102.665%20224.548%20108.254%20224.548%20115.151Z'%20fill='%23FFB900'%20fill-opacity='0.9'/%3e%3cpath%20id='Vector_6'%20d='M219.632%20172.081C219.632%20167.974%20216.296%20164.652%20212.183%20164.652C212.183%20168.759%20215.518%20172.081%20219.632%20172.081Z'%20fill='white'%20fill-opacity='0.3'/%3e%3cpath%20id='Vector_7'%20d='M220.307%20143.018C220.307%20138.174%20216.376%20134.25%20211.523%20134.25C211.523%20139.093%20215.454%20143.018%20220.307%20143.018Z'%20fill='white'%20fill-opacity='0.3'/%3e%3cpath%20id='Vector_8'%20d='M222.983%2086.9917C215.169%2086.9917%20208.84%2093.3102%20208.84%20101.111C216.654%20101.111%20222.983%2094.7927%20222.983%2086.9917Z'%20fill='%23FFB900'%20fill-opacity='0.9'/%3e%3cpath%20id='Vector_9'%20d='M205.044%20127.788C205.044%20123.356%20201.446%20119.765%20196.999%20119.765C196.999%20124.197%20200.596%20127.788%20205.044%20127.788Z'%20fill='white'%20fill-opacity='0.3'/%3e%3cpath%20id='Vector_10'%20d='M176.082%20158.334C176.082%20152.999%20171.746%20148.67%20166.401%20148.67C166.401%20154.005%20170.737%20158.334%20176.082%20158.334Z'%20fill='white'%20fill-opacity='0.3'/%3e%3cpath%20id='Vector_11'%20d='M160.445%20149.415C155.919%20149.415%20152.258%20153.078%20152.258%20157.589C156.784%20157.589%20160.445%20153.926%20160.445%20149.415Z'%20fill='white'%20fill-opacity='0.3'/%3e%3cpath%20id='Vector_12'%20d='M162.304%20174.309C162.304%20167.744%20156.967%20162.417%20150.392%20162.417C150.392%20168.981%20155.728%20174.309%20162.304%20174.309Z'%20fill='%23FFB900'%20fill-opacity='0.9'/%3e%3cpath%20id='Vector_13'%20d='M239.366%2072.8247C239.366%2079.8012%20245.036%2085.4616%20252.025%2085.4616C252.025%2078.4852%20246.355%2072.8247%20239.366%2072.8247Z'%20fill='%23FFB900'%20fill-opacity='0.9'/%3e%3cpath%20id='Vector_14'%20d='M165.361%20174.237C171.857%20174.237%20177.122%20168.981%20177.122%20162.496C170.626%20162.496%20165.361%20167.752%20165.361%20174.237Z'%20fill='white'%20fill-opacity='0.3'/%3e%3cpath%20id='Vector_15'%20d='M252.842%20146.363C244.949%20146.363%20238.548%20152.753%20238.548%20160.633C246.441%20160.633%20252.842%20154.243%20252.842%20146.363Z'%20fill='white'%20fill-opacity='0.3'/%3e%3cpath%20id='Vector_16'%20d='M236.015%20158.699C236.015%20152.951%20231.345%20148.297%20225.588%20148.297C225.588%20154.045%20230.257%20158.699%20236.015%20158.699Z'%20fill='white'%20fill-opacity='0.3'/%3e%3cpath%20id='Vector_17'%20d='M226.636%20142.795C231.242%20142.795%20234.974%20139.069%20234.974%20134.471C230.368%20134.471%20226.636%20138.197%20226.636%20142.795Z'%20fill='%23FFB900'%20fill-opacity='0.9'/%3e%3cpath%20id='Vector_18'%20d='M252.167%20145.103C252.167%20137.96%20246.37%20132.172%20239.215%20132.172C239.215%20139.315%20245.012%20145.103%20252.167%20145.103Z'%20fill='white'%20fill-opacity='0.3'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_3242_77232'%3e%3crect%20width='253'%20height='200'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",ht={class:"py-10 container"},_t={class:"flex flex-col lg:flex-row justify-between w-full h-fit min-h-100 lg:space-x-4 space-x-0"},mt={key:0,class:"card-content flex flex-col flex-wrap justify-between w-1/2 xs:w-full bg-blue-600 mb-6 lg:mb-0 py-16 px-10 text-white relative overflow-hidden",style:{"border-radius":"16px","background-image":"var(--gradient-blue-1, linear-gradient(180deg, #2D3985 0%, #1A6ED3 100%))"}},yt=["src"],vt={class:"absolute h-full md:w-3/4 right-0 top-0 z-1 object-contain opacity-75 hover:opacity-100 transition-opacity duration-300 ease-in-out",alt:""},xt={class:"flex flex-col z-5 relative"},wt={class:"text-3xl text-white uppercase"},Ct={class:"text-sm text-white my-5"},bt={class:"flex flex-col gap-y-2 mt-5 lg:mt-0 z-5 relative"}
1,kt=["href"],$t={class:"bg-[#FFB900] rounded-full py-2 px-4 text-sm text-black"},Bt=["src"],Ft={key:1,class:"flex flex-col flex-wrap justify-between w-1/2 xs:w-full py-14 px-10 text-black relative overflow-hidden",style:{"border-radius":"16px",background:"linear-gradient(95deg, #F1F5FF 39.33%, rgba(239, 244, 255, 0.00) 75.51%)","backdrop-filter":"blur(2.5px)"}},Pt=["src"],Vt=["src"],St={class:"flex flex-col w-2/3 relative z-5"},Mt={class:"text-3xl uppercase"},Zt={class:"text-xs sm:text-sm mt-5"},jt={class:"flex flex-col uppercase text-Primary text-xs sm:text-sm font-semibold mt-5 space-y-3"},It=["href"],zt={__name:"CardStatic",props:{content:Object},setup(V){const{t:f,locale:y}=L();return(F,v)=>{const k=X("lazy");return l(),n("section",ht,[e("div",_t,[(l(!0),n(_,null,C(V.content,(r,m)=>(l(),n(_,null,[m%2==0?(l(),n("div",mt,[e("img",{class:"absolute h-1/3 w-1/3 top-0 left-0 z-2",src:i(z),alt:""},null,8,yt),Y(e("img",vt,null,512),[[k,{src:i(j)(r.image_path),loading:i(Z),error:i(Z)}]]),e("div",xt,[e("h2",wt,p(i(f)("landing.cardStatic.title",{value:i(w)(r,"title")})),1),e("p",Ct,p(i(f)("landing.cardStatic.description",{value:i(w)(r,"description")})),1)]),e("div",bt,[(l(!0),n(_,null,C(r.banner_link,(g,$)=>(l(),n("a",{href:g.url,target:"_blank"},[e("button",$t,p(i(f)("landing.cardStatic.button",{value:i(w)(g,"title")})),1)],8,kt))),256))]),e("img",{class:"absolute h-2/4 w-2/4 -bottom-5 right-0 z-1",src:i(gt),alt:""},null,8,Bt)])):(l(),n("div",Ft,[e("img",{class:"absolute h-1/3 w-1/3 top-0 left-0 z-1 hidden md:block",src:i(z),alt:""},null,8,Pt),e("img",{class:"absolute h-full md:w-3/4 right-0 top-0 z-1 object-contain opacity-75 hover:opacity-100 transition-opacity duration-300 ease-in-out",src:i(j)(r.image_path),alt:""},null,8,Vt),e("div",St,[e("h2",Mt,p(i(f)("landing.cardStatic.title",{value:i(w)(r,"title")})),1),e("p",Zt,p(i(f)("landing.cardStatic.description",{value:i(w)(r,"description")})),1),e("div",jt,[(l(!0),n(_,null,C(r.banner_link,(g,$)=>(l(),n("a",{class:"flex flex-row items-center",href:g.url,target:"_blank"},[R(p(i(f)("landing.cardStatic.button",{value:i(w)(g,"title")}))+" ",1),v[0]||(v[0]=e("span",{class:"material-symbols-outlined"}," chevron_right ",-1))],8,It))),256))])])]))],64))),256))])])}}},Lt=G(zt,[["__scopeId","data-v-8758e75f"]]),Rt={key:0,class:"mx-auto"},Dt={key:1,class:"flex flex-col md:flex-row"},Nt={class:"w-full h-96 md:h-auto md:w-2/3"},Tt={class:"w-full md:w-1/3"},Ht={key:1,class:"flex gap-x-5 container py-10"},Jt={key:2,class:"container py-10"},Ot={class:"flex flex-col md:flex-row gap-6 md:gap-10"},qt={class:"md:w-1/4"},At={class:"text-Primary font-semibold text-xl md:text-2xl"},Et={class:"md:w-3/4 grid grid-cols-1 md:grid-cols-3 gap-3 items-start"},Wt=["onToggle"],Ut={class:"list-none cursor-pointer px-4 py-3 flex items-center justify-between text-sm md:text-base font-medium text-neutral-700 [&::-webkit-details-marker]:hidden"},Gt={class:"px-4 pb-3 pt-1"},Kt={key:0,class:"text-sm text-neutral-500"},Qt={key:1,class:"grid grid-cols-1 sm:grid-cols-2 gap-x-6 gap-y-1"},Xt={key:2,class:"text-sm text-neutral-500"},Yt={key:3,class:"flex flex-auto flex-col justify-center items-center p-4 md:p-5"},te={key:1,class:"min-h-[15rem] flex flex-col bg-white"},oe={__name:"LandingPage",setup(V){Q();const{t:f}=L(),y=u([]),F=u([]),v=u([]),k=u([]),r=u([]),m=u([]),g=u({}),$=u(!1),S=u(!0),M=u(!0);async function D(){const t=localStorage.getItem("currPortal"),s=t!=="pusat"?`${t}/`:"";try{const a=await B.getContentBannerItem();a&&(y.value={parent:a.content_consumed[0].consume_parent,listItems:a.content_consumed[0].list_content.map(o=>{const x=`${s}${a.content_consumed[0]?.consume_parent?.slug}/${o.slug}`;return{...o,full_path:x}})}),$.value=!1}catch{}}async function N(){localStorage.getItem("currPortal");try{const t=await B.getContentHomePage();F.value=t}catch{}}async function T(){try{const t=await B.getLatestInformation(b.value.slug);v.value=t}catch(t){console.log(t)}}async function H(){try{const t=await B.getBanner(b.value.slug);k.value=t}catch(t){console.log(t)}}async function J(){try{const t=await I.getRegion();r.value=t}catch(t){console.log(t)}}async function O(t,s){try{const c=await I.getCountryByRegion(t);m.value[s]=c}catch(c){console.log(c)}finally{g.value[s]=!1}}function q(t,s,c){if(!c?.target?.open)return;const a=m.value[s];a&&a.length>0||g.value[s]||(g.value[s]=!0,O(t.benua_id,s))}function A(t){return typeof t=="string"?t:t?.nama||t?.name||t?.country||t?.country_name||"-"}function E(t){return typeof t=="string"?null:t?.negara_id||t?.nationality_id||t?.id||null}function W(t){const s=E(t),c=localStorage.getItem("currPortal");return{path:`${c&&c!=="pusat"?`/${c}/perwakilan`:"/perwakilan"}/${s}`,query:{type:"perwakilan-detail"}}}const b=u({});return tt(async()=>{await D();let t=K();b.value=JSON.parse(localStorage.getItem("dataPortal")).find(s=>s.slug===t),b.value===void 0&&(b.value=JSON.parse(localStorage.getItem("dataPortal")).find(s=>s.slug==="pusat")),await T(),await N(),S.value=!1,await H(),M.value=!1,J()}),(t,s)=>{const c=lt("router-link");return $.value?(l(),n("div",te,[...s[3]||(s[3]=[e("div",{class:"flex flex-auto flex-col justify-center items-center p-4 md:p-5"},[e("div",{class:"flex justify-center"},[e("div",{class:"animate-spin inline-block w-6 h-6 border-[3px] border-current border-t-transparent text-blue-600 rounded-full dark:text-blue-500",role:"status","aria-label":"loading"},[e("span",{class:"sr-only"},"Loading...")])])],-1)])])):(l(),n("div",Rt,[v.value?.length>0?(l(),h(at,{key:0,items:v.value},null,8,["items"])):d("",!0),y.value.listItems&&y.value.listItems.length>0?(l(),n("div",Dt,[e("div",Nt,[P(ot,{items:y.value},null,8,["items"])]),e("div",Tt,[P(nt,{articles:y.value},null,8,["articles"])])])):d("",!0),S.value?(l(),n("div",Yt,[...s[2]||(s[2]=[e("div",{class:"flex justify-center"},[e("div",{class:"animate-spin inline-block w-6 h-6 border-[3px] border-current border-t-transparent text-blue-600 rounded-full dark:text-blue-500",role:"status","aria-label":"loading"},[e("span",{class:"sr-only"},"Loading...")])],-1)])])):(l(),n(_,{key:2},[(l(!0),n(_,null,C(F.value,(a,o)=>(l(),n(_,{key:o},[a.type=="image_link"?(l(),h(st,{key:0,item:a,indexContent:o,bgCover:o%2==0?"white":"primary"},null,8,["item","indexContent","bgCover"])):d("",!0),a.type=="card_link"?(l(),h(it,{key:1,item:a,indexContent:o,bgCover:o%2==0?"white":"primary"},null,8,["item","indexContent","bgCover"])):d("",!0),a.type=="text"?(l(),h(rt,{key:2,item:a,indexContent:o,bgCover:o%2==0?"white":"primary"},null,8,["item","indexContent","bgCover"])):d("",!0),a.type=="video_carousel"?(l(),h(ct,{key:3,item:a,indexContent:o,bgCover:o%2==0?"white":"primary"},null,8,["item","indexContent","bgCover"])):d("",!0),a.type=="image_carousel"?(l(),h(dt,{key:4,item:a,indexContent:o,bgCover:o%2==0?"white":"primary"},null,8,["item","indexContent","bgCover"])):d("",!0),a.type==="consume"&&a.consumed_type==="gallery"?(l(),h(ut,{key:5,item:a,indexContent:o,bgCover:o%2==0?"white":"primary"},null,8,["item","indexContent","bgCover"])):d("",!0),a.type==="consume"&&a.consumed_type==="publication"?(l(),h(pt,{key:6,item:a,indexContent:o,bgCover:o%2==0?"white":"primary"},null,8,["item","indexContent","bgCover"])):d("",!0),a.type==="consume"&&a.consumed_type==="repository"?(l(),h(ft,{key:7,item:a,indexContent:o,bgCover:o%2==0?"white":"primary"},null,8,["item","indexContent","bgCover"])):d("",!0)],64))),128)),M.value?(l(),n("div",Ht,[...s[0]||(s[0]=[e("div",{class:"w-full h-64 bg-gray-200"},null,-1),e("div",{class:"w-full h-64 bg-gray-200"},null,-1)])])):(l(),h(Lt,{key:0,content:k.value},null,8,["content"])),r.value&&r.value.length>=1?(l(),n("section",Jt,[e("div",Ot,[e("div",qt,[e("h3",At,p(i(f)("landing.regi
1on.title")),1)]),e("div",Et,[(l(!0),n(_,null,C(r.value,(a,o)=>(l(),n("details",{key:a.benua_id,class:"group border border-gray-200 rounded-lg bg-white overflow-hidden self-start",onToggle:x=>q(a,o,x)},[e("summary",Ut,[e("span",null,p(a.nama),1),s[1]||(s[1]=e("svg",{class:"w-4 h-4 transition-transform duration-200 group-open:rotate-180",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e("path",{d:"m6 9 6 6 6-6"})],-1))]),e("div",Gt,[g.value[o]?(l(),n("p",Kt,p(i(f)("landing.region.loadingCountries")),1)):m.value[o]&&m.value[o].length>0?(l(),n("ul",Qt,[(l(!0),n(_,null,C(m.value[o],(x,U)=>(l(),n("li",{key:U,class:"text-sm text-neutral-600"},[P(c,{to:W(x),class:"hover:text-Primary hover:underline"},{default:et(()=>[R(p(A(x)),1)]),_:2},1032,["to"])]))),128))])):(l(),n("p",Xt,p(i(f)("landing.region.noCountryData")),1))])],40,Wt))),128))])])])):d("",!0)],64))]))}}};export{oe 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.