import{_ as c}from"./Paginate-D_g9VFI3.js";import{_ as u}from"./NoDataFound-Xi4CpDbx.js";import{s as _}from"./assetStore-BSVLrDIW.js";import{h}from"./moment-BAtM24Ew.js";import{_ as f}from"./UserLayout-D_lxcpvH.js";import{c as l,o as a,d as t,k as o,g as p,t as s,F as k,h as y,u as d}from"./app-fEKA3BkQ.js";import"./PageHeader-DmRLoM5E.js";import"./ValidationErrors-B24rcOPH.js";const b={class:"card mt-4"},g={class:"card-body"},v={class:"table-responsive w-full"},M={class:"table"},B={key:0,class:"tbody"},T=Object.assign({layout:f},{__name:"Logs",props:["device","logs","buttons"],setup(n){const{textExcerpt:m}=_();return(r,C)=>(a(),l("div",b,[t("div",g,[t("div",v,[t("table",M,[t("thead",null,[t("tr",null,[t("th",null,s(r.trans("Id")),1),t("th",null,s(r.trans("Message Type")),1),t("th",null,s(r.trans("Message")),1),t("th",null,s(r.trans("Created At")),1)])]),n.logs.data.length?(a(),l("tbody",B,[(a(!0),l(k,null,y(n.logs.data,(e,i)=>(a(),l("tr",{key:i},[t("td",null,s(e==null?void 0:e.id),1),t("td",null,s(e.message_type),1),t("td",null,s(e.message_type=="text"?d(m)(e.message_text,50):""),1),t("td",null,s(d(h)(e.created_at).format("DD MMM, YY | h:mm A")),1)]))),128))])):(a(),o(u,{key:1,forTable:!0}))]),n.logs.data.length?(a(),o(c,{key:0,links:n.logs.links},null,8,["links"])):p("",!0)])])]))}});export{T as default};
