import{M as C}from"./MkPagination-DzUgufpZ.js";import{aA as A,b as i,a9 as B,M as S,_ as T}from"./app-QjDgb7aF.js";import{b as D,Y as N,a5 as P,E as l,j as r,g as j,i as e,k as a,q as t,D as c,u as m,J as V,p as _,F as $,G as w,x as z,f as k,a as E}from"./vue-Cm77DuTi.js";import"./charts-3gEHPHRq.js";import"./media-DuCIZ-3n.js";const F={class:"ieepwinx"},H={class:""},I={class:"name"},q=D({__name:"index",setup(G){const h={endpoint:"antennas/list",limit:250},g=k(()=>[]),M=k(()=>[]),d=E(null);let p=!1,n=null;const u=()=>{p&&d.value?.refresh(),p=!0,n=setTimeout(u,15e3)};return N(()=>{u()}),P(()=>{n&&(clearTimeout(n),n=null)}),A({title:i.ts.manageAntennas,icon:"ph-flying-saucer ph-bold ph-lg"}),(J,o)=>{const y=l("MkPageHeader"),f=l("MkA"),b=l("MkSpacer"),v=l("MkStickyContainer");return r(),j(v,null,{header:e(()=>[a(y,{actions:g.value,tabs:M.value,"display-back-button":!0},null,8,["actions","tabs"])]),default:e(()=>[a(b,{"content-max":700},{default:e(()=>[t("div",F,[a(B,{class:"_gap",icon:"flying-saucer",card:!0},{default:e(()=>[t("p",null,c(m(i).ts.antennasDesc),1),a(S,{link:!0,to:"/my/antennas/create",primary:"",class:"add"},{default:e(()=>[o[0]||(o[0]=t("i",{class:"ph-plus ph-bold ph-lg"},null,-1)),V(" "+c(m(i).ts.add),1)]),_:1})]),_:1}),t("div",H,[a(C,{ref_key:"list",ref:d,pagination:h},{default:e(({items:x})=>[(r(!0),_($,null,w(x,s=>(r(),_("div",{key:s.id},[a(f,{class:"uopelskx",link:!0,to:`/timeline/antenna/${s.id}`},{default:e(()=>[o[1]||(o[1]=t("i",{class:"ph-flying-saucer ph-bold ph-lg"},null,-1)),t("i",{class:z(`${s.hasUnreadNote?"ph-circle ph-fill":"ph-check"} ph-xs notify-icon`)},null,2)]),_:2},1032,["to"]),a(f,{class:"ljoevbzj",to:`/my/antennas/${s.id}`},{default:e(()=>[t("div",I,c(s.name),1)]),_:2},1032,["to"])]))),128))]),_:1},512)])])]),_:1})]),_:1})}}}),Q=T(q,[["__scopeId","data-v-c8b3af38"]]);export{Q as default};
//# sourceMappingURL=index-B1Ash5P8.js.map
