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