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