import{r as o,e as i,B as l,h as n}from"./p-a89095f5.js";const s=class{constructor(l){o(this,l),this.fireenjinTrigger=i(this,"fireenjinTrigger",7),this.fireenjinFetch=i(this,"fireenjinFetch",7),this.flows=void 0}onSuccess(o){var i,l,n;"listFlows"===(null===(i=null==o?void 0:o.detail)||void 0===i?void 0:i.endpoint)&&(this.flows=(null===(n=null===(l=null==o?void 0:o.detail)||void 0===l?void 0:l.data)||void 0===n?void 0:n.flows)||[],console.log(this.flows,"flows"))}fetchFlow(){this.fireenjinFetch.emit({endpoint:"listFlows"})}componentDidLoad(){(null==l?void 0:l.isBrowser)&&this.fetchFlow()}render(){return[n("ion-content",{class:"ion-padding"},n("floodteam-title-bar",null,n("ion-router-link",{href:"/flows"},"Flows")),n("div",{class:"ion-padding"},(this.flows||[]).map((o=>n("ion-item",{href:`/flows/${o.id}`,detail:!0,lines:"full"},n("ion-grid",null,n("ion-row",{class:"ion-align-items-center ion-justify-content-between"},n("ion-col",null,n("ion-label",null,n("h2",null,o.name)))))))))),n("floodteam-navigation-footer",null,n("floodteam-title-bar",{back:"/dashboard"},n("ion-breadcrumbs",null,n("ion-breadcrumb",{href:"/flows"},n("ion-icon",{class:"ft-icon-style",slot:"start",name:"layers-outline"}),"Flows")),n("ion-buttons",{slot:"end"},n("ion-button",{fill:"solid",color:"primary",href:"/flows/new"},"Add"))))]}};s.style="";export{s as app_flow_list}