1import{a as B}from"./0jpeVMQd.js";import{_ as I}from"./1borm-Ba.js";import{_ as L}from"./l958PAQ1.js";import{ad as f,ab as v,u as $,ao as s,ap as n,as as e,aj as d,aD as C,ar as x,at as i,a2 as m,bg as w,b1 as h,bl as N,af as g,aq as b,aL as S}from"./C61nuW1G.js";import"./01wF8Y1e.js";const V={class:"flex flex-col sm:flex-row"},j={class:"hidden sm:inline-block sm:w-44 p-2"},T={class:"flex-1 p-2 sm:pl-4"},q=["href","title"],A={class:"block sm:hidden m-2"},D=f({__name:"Link",props:{item:{type:Object,required:!0}},setup(t){const a=v(()=>$().user);return(l,u)=>{const r=I,o=L;return n(),s("div",V,[e("div",j,[d(r,{name:t.item.name,image:t.item.thumb,link:t.item.url,landscape:""},null,8,["name","image","link"])]),e("div",T,[e("div",null,[e("a",{href:t.item.url,title:t.item.url},[e("strong",null,i(t.item.name),1)],8,q),m(a)?(n(),C(o,{key:0,link:"link/"+t.item.linkId,item:"link"},null,8,["link"])):x("",!0)]),e("div",A,[d(r,{name:t.item.name,image:t.item.thumb,link:t.item.url,landscape:""},null,8,["name","image","link"])]),e("div",null,i(t.item.dscr),1)])])}}}),O=Object.assign(D,{__name:"ItemLink"}),z={class:"box-header"},E={class:"ml-1"},F={class:"inline ml-2"},G={class:"box-content"},H={key:0,class:"p-2"},J={class:"-mt-2 text-lg"},W=f({__name:"links",async setup(t){let a,l;const u=w();[a,l]=h(()=>u.init()),await a,l();const r=v(()=>u.getByType("l")),o=N();return[a,l]=h(()=>o.init()),await a,l(),(_,K)=>{const y=B,p=O;return n(),s("div",null,[(n(!0),s(g,null,b(m(r),c=>(n(),s("div",{key:c.categoryId,class:"box"},[e("div",z,[e("div",E,[d(y,{icon:"globe",size:"1.125rem","css-class":"mb-1.5 mr-1"}),e("h2",F,i(c.name),1)])]),e("div",G,[e("div",null,i(c.dscr),1),(n(!0),s(g,null,b(m(o).getByCategory(c.categoryId),k=>(n(),s("div",{key:k.linkId},[d(p,{item:k},null,8,["item"])]))),128)),m(o).getByCategory(c.categoryId).length<1?(n(),s("div",H,i(_.$t("links.none")),1)):x("",!0)])]))),128)),e("div",J,[S(i(_.$t("links.total"))+": ",1),e("strong",null,i(m(o).getCount),1)])])}}});export{W 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.