import { r as registerInstance, B as Build, h } from './index-33e43734.js';

const appPaymodelListCss = "";

let AppPaymodelList = class {
  constructor(hostRef) {
    registerInstance(this, hostRef);
  }
  onSearchInput(event) {
    this.query = event.target.value;
  }
  componentDidLoad() {
    if (!(Build === null || Build === void 0 ? void 0 : Build.isBrowser))
      return;
  }
  render() {
    return [
      h("ion-content", { class: "ion-padding" }, h("floodteam-title-bar", null, h("ion-router-link", { href: "/paymodels" }, "Pay Models"), h("ion-buttons", { slot: "end" }, h("ion-button", { fill: "solid", color: "primary", href: "/paymodels/new" }, "Add"))), h("fireenjin-search-bar", { paginationEl: this.paginationEl, filters: [
          {
            name: "locationId",
            label: "Location",
            endpoint: "listLocations",
            icon: "business",
            resultsKey: "locations",
          },
        ] }), h("fireenjin-pagination", { display: "list", ref: (el) => (this.paginationEl = el), listEl: ({ result }) => (h("ion-item", { href: `/paymodels/${result.id}`, detail: true }, h("ion-label", null, h("h2", null, result.name ? result.name : "", " ")))), endpoint: "listPayModels", limit: 24, resultsKey: "payModels", query: this.query })),
      h("floodteam-navigation-footer", null),
    ];
  }
};
AppPaymodelList.style = appPaymodelListCss;

export { AppPaymodelList as app_paymodel_list };

//# sourceMappingURL=app-paymodel-list.entry.js.map