1import{n as y,g as N,d as $,u as k,h as G,_ as g,o as i,c as d,a as n,t as f,F as v,p as w,l as P,b as A,r as h,j as m,w as _,k as B}from"./index.1f7ce1a2.js";function b(a){return y.get(`/person/${a}`).then(s=>s)}function z(a){return y.get(`/person-garamantas/${a}`).then(s=>s)}function I({username:a}){const s=N(null);async function t(){if(u(null),!a.value)return;const e=await b(a.value);u(e)}async function r(e){return e?await z(e):void 0}function u(e){s.value=e}return{person:s,fetchPerson:t,updatePerson:u,searchGaramantas:r}}const V=$({name:"PersonInfo",async setup(){const a=k(),s=G(()=>a.params.kods),{person:t,fetchPerson:r}=I({username:s});return await r(),{person:t}}}),C=n("div",null,"Ieska\u0146ots kolekcij\u0101:",-1),F=["href"];function x(a,s,t,r,u,e){var c,o,l;return i(),d(v,null,[n("h2",null,f((o=(c=a.person)==null?void 0:c.persona)==null?void 0:o.vardsUzvards),1),C,(i(!0),d(v,null,w((l=a.person)==null?void 0:l.kolekcijas,p=>(i(),d("div",{key:p.dirFriendlyName},[n("a",{href:"/list"+p.dirFriendlyName},f(p.dir),9,F),P(" ("+f(p.skaits)+" vien\u012Bbas) ",1)]))),128))],64)}var R=g(V,[["render",x]]);const D=$({name:"PersonInfoGaramantas",async setup(){var o;const a=k(),s=G(()=>a.params.kods),{person:t,fetchPerson:r,updatePerson:u,searchGaramantas:e}=I({username:s});return await r(),{garamantasPersonas:await e((o=t.value.persona)==null?void 0:o.vardsUzvards)}}}),L=n("br",null,null,-1),S={key:0},T=["href"];function U(a,s,t,r,u,e){return i(),d(v,null,[L,a.garamantasPersonas.atrasts>0?(i(),d("div",S,[n("a",{href:""+a.garamantasPersonas.url},"Atv\u0113rt GARAMANTAS.LV personu mekl\u0113\u0161anu",8,T)])):A("",!0)],64)}var Z=g(D,[["render",U]]);const q=$({name:"PersonPage",components:{PersonInfo:R,PersonInfoGaramantas:Z,AsyncBoundary:B}}),E={class:"auth-page"},M={class:"container page"},j={class:"row"},H={class:"col-md-12"},J={class:"sidebar"};function K(a,s,t,r,u,e){const c=h("PersonInfo"),o=h("AsyncBoundary"),l=h("PersonInfoGaramantas");return i(),d("div",E,[n("div",M,[n("div",j,[n("div",H,[n("div",J,[m(o,{message:"Neizdev\u0101s iel\u0101d\u0113t zi\u0146as par personu."},{default:_(()=>[m(c)]),fallback:_(()=>[P(" Zi\u0146as par personu tiek iel\u0101d\u0113tas... ")]),_:1}),m(o,{message:"Neizdev\u0101s iel\u0101d\u0113t zi\u0146as no Garamant\u0101m."},{default:_(()=>[m(l)]),fallback:_(()=>[P(" Zi\u0146as no Garamant\u0101m tiek iel\u0101d\u0113tas... ")]),_:1})])])])])])}var Q=g(q,[["render",K]]);export{Q 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.