1import{M as f}from"./MemberCard-a3875ac1.js";import{_ as b,I as h,a as g}from"./index-9eec04d3.js";import{W as t,X as e,I as m,aE as p,a2 as y,b1 as c,V as k,aG as _,ay as o,U as w,D as l}from"./index.es-c3ff41b5.js";import"./MapShow-314ff7a3.js";import"./OSM-bca3a4b0.js";const x={name:"ShowPersonFriends",components:{MemberCard:f,InfiniteLoading:h},inject:["user"],data(){return{friends:[],page:0,identifier:+new Date}},computed:{},beforeMount:function(){},mounted:function(){},methods:{loadFriends(s){g.post("/api/people/get-friends",{id:this.user.id,page:this.page+1}).then(n=>{var r=n.data;r.friends.length?(this.page+=1,this.friends.push(...r.friends),s.loaded()):s.complete()}).catch(n=>{console.log("FAILURE!!",n),s.error()})}}},I={id:"full-content",class:"col col-12 p-0"},F={key:0,id:"member-list",class:"row mx-0 my-1 mb-1"},C={class:"row px-1"},z={class:"card-loader card my-1 col-12"},B={class:"card-body text-center py-4"},V={class:"mb-4"},D={key:0,class:"row px-1"},E={class:"card-loader card my-1 col-12"},L={class:"card-body text-center py-4"},M={key:1},N={class:"row"},S=e("div",{class:"card member-card m-1"},[e("div",{class:"member-cover"},[e("div",{class:"member-header"},[e("div",{class:"member-avatar m-2"},[e("div",{class:"animated-background"})])])]),e("div",{class:"card-body"},[e("div",null,[e("div",{class:"mb-1 animated-background animated-row w-50 py-2"}),e("div",{class:"mb-1 animated-background animated-row w-25 py-2"}),e("div",{class:"mb-1 animated-background animated-row w-75 py-1"}),e("div",{class:"mb-1 w-100 pb-4 animated-row"})])])],-1),j=[S];function A(s,n,r,P,i,d){const u=_("member-card"),v=_("infinite-loading");return o(),t("div",null,[e("div",I,[d.user&&d.user.id?(o(),t("div",F,[(o(!0),t(m,null,p(i.friends,a=>(o(),w(u,{key:a.id,"show-tools":!0,user:a,class:"col-sm-6 p-0"},null,8,["user"]))),128)),y(v,{distance:i.page<4?0+200*i.page:600,identifier:i.identifier,target:"#main-container",onInfinite:d.loadFriends},{error:c(()=>[e("div",C,[e("div",z,[e("div",B,[e("div",V,l(s.$t("common.neco_se_pokazilo")),1),e("button",{class:"btn btn-primary",onClick:n[0]||(n[0]=a=>i.identifier++)},l(s.$t("common.opakovat")),1)])])])]),complete:c(()=>[Object.keys(i.friends).length==0?(o(),t("div",D,[e("div",E,[e("div",L,l(s.$t("common.zadni_clenove_k_zobrazeni")),1)])])):(o(),t("div",M))]),spinner:c(()=>[e("div",N,[(o(),t(m,null,p(4,a=>e("div",{key:a,class:"col-sm-6 p-0"},j)),64))])]),_:1},8,["distance","identifier","onInfinite"])])):k("",!0)])])}const X=b(x,[["render",A]]);export{X 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.