import{r as i,B as n,h as o}from"./p-846bd001.js";const e=class{constructor(n){i(this,n),this.paginationEl=void 0,this.query=void 0}onSearchInput(i){this.query=i.target.value}componentDidLoad(){}render(){return[o("ion-content",{class:"ion-padding"},o("floodteam-title-bar",null,o("ion-router-link",{href:"/companies"},"Companies"),o("ion-buttons",{slot:"end"},o("ion-button",{fill:"solid",color:"primary",href:"/companies/new"},"Add"))),o("div",{class:"ion-padding"},o("fireenjin-search-bar",{ref:i=>this.filterBarEl=i,paginationEl:this.paginationEl,filters:null})),o("fireenjin-pagination",{ref:i=>this.paginationEl=i,gridEl:({result:i})=>o("floodteam-snapshot-card",{href:`/companies/${i.id}`,buttonText:"View Company"},o("ion-label",null,o("h2",null,i.name?i.name:""))),listEl:({result:i})=>o("ion-item",{href:`/companies/${i.id}`,detail:!0},o("ion-label",null,o("h2",null,i.name?i.name:""," "))),endpoint:"listCompanies",limit:20,resultsKey:"companies",query:this.query,name:"companies"})),o("floodteam-navigation-footer",null)]}};e.style="";export{e as app_company_list}