import{M as _}from"./MkPagination-urywMrXv.js";import{F as l}from"./section-yxO0GkeZ.js";import{F as i}from"./link-UF1gGYGD.js";import{a4 as f}from"./app-JmgyQoR0.js";import{b as h,c as n,D as k,h as t,t as a,l as o,j as s,K as r,F as g,G as y,i as c,y as p,H as S,E as F}from"./vue-y3KLWBaS.js";const v={class:"_formRoot"},x={key:0,class:"ph-pause-circle ph-bold ph-lg"},C={key:1,class:"ph-circle ph-fill"},E=h({__name:"webhook",setup(M){const m={endpoint:"i/webhooks/list",limit:10};return n(()=>[]),n(()=>[]),f({title:"Webhook",icon:"ph-webhooks-logo ph-bold ph-lg"}),(b,B)=>{const d=k("MkTime");return t(),a("div",v,[o(l,null,{default:s(()=>[o(i,{to:"/settings/webhook/new"},{default:s(()=>[r(" Create webhook ")]),_:1})]),_:1}),o(l,null,{default:s(()=>[o(_,{pagination:m},{default:s(({items:u})=>[(t(!0),a(g,null,y(u,e=>(t(),c(i,{key:e.id,to:`/settings/webhook/edit/${e.id}`,class:"_formBlock"},{icon:s(()=>[e.active===!1?(t(),a("i",x)):e.latestStatus===null?(t(),a("i",C)):[200,201,204].includes(e.latestStatus)?(t(),a("i",{key:2,class:"ph-check ph-bold ph-lg",style:p({color:"var(--success)"})},null,4)):(t(),a("i",{key:3,class:"ph-warning ph-bold ph-lg",style:p({color:"var(--error)"})},null,4))]),suffix:s(()=>[e.latestSentAt?(t(),c(d,{key:0,time:e.latestSentAt},null,8,["time"])):S("",!0)]),default:s(()=>[r(" "+F(e.name||e.url)+" ",1)]),_:2},1032,["to"]))),128))]),_:1})]),_:1})])}}});export{E as default};
