import{r as n,B as i,h as o}from"./p-03169580.js";const e="";let t=class{constructor(i){n(this,i)}onSearchInput(n){this.query=n.target.value}componentDidLoad(){if(!(i===null||i===void 0?void 0:i.isBrowser))return}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:n=>this.filterBarEl=n,paginationEl:this.paginationEl,filters:null})),o("fireenjin-pagination",{ref:n=>this.paginationEl=n,gridEl:({result:n})=>o("floodteam-snapshot-card",{href:`/companies/${n.id}`,buttonText:"View Company"},o("ion-label",null,o("h2",null,n.name?n.name:""))),listEl:({result:n})=>o("ion-item",{href:`/companies/${n.id}`,detail:true},o("ion-label",null,o("h2",null,n.name?n.name:""," "))),endpoint:"listCompanies",limit:20,resultsKey:"companies",query:this.query})),o("floodteam-navigation-footer",null)]}};t.style=e;export{t as app_company_list};
//# sourceMappingURL=p-b77502fb.entry.js.map