1import{H as R,T as U}from"./DaqyzntR.js";import{_ as V}from"./Tlel_GdF.js";import{_ as $}from"./d11Plx3G.js";import{p as D,_ as I,b as S,d as z,e as A,g as E,f as F}from"./CEkAGCgv.js";import{_ as P}from"./DpxZmzNS.js";import{b as G}from"./B20giOYu.js";import{y as J,Q as a,J as r,a3 as c,R as e,j as u,P as s,a4 as v,a2 as o,u as t,H as h,a5 as k,Z as O,X as w}from"./DGn-ehg2.js";const Q=D("/images/open-sources.png"),X={class:"open-sources-view bg-light-3"},Y={class:"about-bank-top flex justify-between"},Z={class:"max-w-[535px] ml-[106px] mt-[87px]"},q={class:"text-[50px] font-extraBold text-dark-1 leading-[1.2em]"},K={class:"text-dark-1 opacity-50 mt-4 mb-12"},W={class:"py-20 bg-white"},ee={class:"font-extraBold text-[50px] leading-[1.2em] text-dark-1 text-center mb-16"},te={key:0,class:"grid grid-cols-2 gap-8 open-sources-grid"},oe={key:0,class:"grid grid-cols-3 gap-8 open-sources-grid"},se={class:"flex items-center justify-between mb-6"},ne={class:"flex items-center justify-center w-14 h-14 rounded-2xl bg-white text-primary-color-900"},ae={class:"inline-flex items-center gap-2 bg-white rounded-full px-4 py-2 text-sm text-dark-1 font-boldLocal"},re={class:"text-[26px] font-extraBold text-dark-1 leading-[1.2em] line-clamp-2 mb-3"},le=["innerHTML"],ce={class:"mt-auto flex items-center justify-between pt-6 border-t border-light-1"},ie={class:"text-dark-1 opacity-50 text-sm"},de={class:"inline-flex items-center gap-2 text-primary-color-900 font-boldLocal group-hover:gap-3 transition-all"},ue={key:1,class:"text-3xl text-center"},_e={key:2,class:"text-center mt-20"},pe={class:"text-base font-regular"},me={__name:"home",setup(ge){const L=A(),B=S(),{t:l}=z(),p=u(!0),i=u(!1),d=u([]),x=u(0),f=u(1),b=async()=>{try{i.value||(p.value=!0);const{results:m,count:_}=await $fetch(`${L.public.apiBase}/bank-structure/v1/open-sources/`,{method:"GET",headers:{"Accept-Language":B.fullPath.slice(1,3)},params:{page_size:15,page:f.value}});i.value?d.value.push(...m):d.value=m,x.value=_??0}finally{setTimeout(()=>{p.value=!1,i.value=!1},500)}},T=async()=>{i.value=!0,f.value++,await b()};return J(async()=>{await b()}),(m,_)=>{const H=U,j=R,y=V,C=$,g=E,M=P,N=F;return s(),a("div",X,[r(j,null,{default:c(()=>[r(H,null,{default:c(()=>[v(o(t(l)("open-data")),1)]),_:1})]),_:1}),r(y,null,{default:c(()=>[e("div",Y,[e("div",Z,[e("h1",q,o(t(l)("open-sources-description")),1),e("p",K,o(t(l)("open-sources-description-2",{year:new Date().getFullYear()-1995})),1)]),_[0]||(_[0]=e("img",{src:Q,alt:"bank-tower"},null,-1))])]),_:1}),e("div",W,[r(y,null,{default:c(()=>[e("h1",ee,o(t(l)("open-data")),1),t(p)?(s(),a("div",te,[(s(),a(h,null,k(4,n=>r(C,{key:n,class:"rounded-[20px] w-full bg-gray-200 h-[240px]"})),64))])):(s(),a(h,{key:1},[t(d).length?(s(),a("div",oe,[(s(!0),a(h,null,k(t(d),n=>(s(),O(M,{key:n.id,to:`/open-sources/${n.id}`,rel:"noopener noreferrer",class:"open-sources-card group flex flex-col bg-light-3 rounded-[20px] p-8 border border-transparent transition-all hover:border-light-1 hover:shadow-lg"},{default:c(()=>[e("div",se,[e("div",ne,[r(g,{name:"i-heroicons-folder",class:"w-7 h-7"})]),e("span",ae,[r(g,{name:"i-heroicons-document-duplicate",class:"w-4 h-4 text-primary-color-900"}),v(" "+o((n.contents||[]).length)+" "+o(t(l)("files-count")),1)])]),e("h2",re,o(n.title),1),n.description?(s(),a("div",{key:0,class:"text-dark-1 opacity-50 line-clamp-2 mb-8",innerHTML:n.description},null,8,le)):w("",!0),e("div",ce,[e("span",ie,o(t(G)(n.published_at)),1),e("span",de,[e("span",null,o(t(l)("more-details")),1),r(g,{name:"i-heroicons-arrow-right",class:"w-5 h-5"})])])]),_:2},1032,["to"]))),128))])):(s(),a("h1",ue,o(t(l)("there-is-nothing-yet")),1))],64)),t(x)>t(d).length?(s(),a("div",_e,[r(N,{size:"lg",icon:"i-heroicons-cloud-arrow-down",trailing:"",loading:t(i),ui:{padding:{lg:"px-8"},rounded:"rounded-lg"},onClick:T},{default:c(()=>[e("span",pe,o(t(l)("load-more")),1)]),_:1},8,["loading"])])):w("",!0)]),_:1})])])}}},we=I(me,[["__scopeId","data-v-2bbf1004"]]);export{we 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.