import{M as k}from"./MkPagination-urywMrXv.js";import{a4 as b,i as a,r as I,f as C,n as M}from"./app-JmgyQoR0.js";import{b as U,a as V,c as u,D as x,h as i,t as o,l as d,j as m,u as s,z as l,E as e,F as h,G as v,H as A,I as D,J as S}from"./vue-y3KLWBaS.js";const B=n=>(D("data-v-dac6e090"),n=n(),S(),n),N={class:"_formRoot"},j={class:"_fullinfo"},w=["src"],E=["src"],F={class:"body"},P={class:"name"},T={class:"description"},$={class:"_keyValue"},z={class:"_keyValue"},G={class:"actions"},H=["onClick"],J=B(()=>s("i",{class:"ph-trash ph-bold ph-lg"},null,-1)),L=[J],R=U({__name:"apps",setup(n){const r=V(null),f={endpoint:"i/apps",limit:100,params:{sort:"+lastUsedAt"}};function g(_){C("i/revoke-token",{tokenId:_.id}).then(()=>{r.value.reload()})}return u(()=>[]),u(()=>[]),b({title:a.ts.installedApps,icon:"ph-plug ph-bold ph-lg"}),(_,q)=>{const p=x("MkTime");return i(),o("div",N,[d(k,{ref_key:"list",ref:r,pagination:f},{empty:m(()=>[s("div",j,[s("img",{src:l(I).images.info,class:"_ghost",alt:"Info"},null,8,w),s("div",null,e(l(a).ts.nothing),1)])]),default:m(({items:y})=>[(i(!0),o(h,null,v(y,t=>(i(),o("div",{key:t.id,class:"_panel bfomjevm"},[t.iconUrl?(i(),o("img",{key:0,class:"icon",src:t.iconUrl,alt:""},null,8,E)):A("",!0),s("div",F,[s("div",P,e(t.name),1),s("div",T,e(t.description),1),s("div",$,[s("div",null,e(l(a).ts.installedDate)+":",1),s("div",null,[d(p,{time:t.createdAt},null,8,["time"])])]),s("div",z,[s("div",null,e(l(a).ts.lastUsedDate)+":",1),s("div",null,[d(p,{time:t.lastUsedAt},null,8,["time"])])]),s("div",G,[s("button",{class:"_button",onClick:c=>g(t)},L,8,H)]),s("details",null,[s("summary",null,e(l(a).ts.details),1),s("ul",null,[(i(!0),o(h,null,v(t.permission,c=>(i(),o("li",{key:c},e(l(a).t(`_permissions.${c}`)),1))),128))])])])]))),128))]),_:1},512)])}}}),W=M(R,[["__scopeId","data-v-dac6e090"]]);export{W as default};
