import{r as o,B as i,h as n}from"./p-9b6cc562.js";const t=class{constructor(i){o(this,i),this.paginationEl=void 0,this.query=void 0}onSearchInput(o){this.query=o.target.value}componentDidLoad(){}render(){return[n("ion-content",{class:"ion-padding"},n("floodteam-title-bar",null,n("ion-router-link",{href:"/paymodels"},"Pay Models"),n("ion-buttons",{slot:"end"},n("ion-button",{fill:"solid",color:"primary",href:"/paymodels/new"},"Add"))),n("fireenjin-search-bar",{paginationEl:this.paginationEl,filters:[{name:"locationId",label:"Location",endpoint:"listLocations",icon:"business",resultsKey:"locations"}]}),n("fireenjin-pagination",{name:"paymodels",display:"list",ref:o=>this.paginationEl=o,listEl:({result:o})=>n("ion-item",{href:`/paymodels/${o.id}`,detail:!0},n("ion-label",null,n("h2",null,o.name?o.name:""," "))),endpoint:"listPayModels",limit:20,resultsKey:"payModels",query:this.query})),n("floodteam-navigation-footer",null)]}};t.style="";export{t as app_paymodel_list}