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

const appTriggerListCss = "";

let AppTrigger = class {
  constructor(hostRef) {
    registerInstance(this, hostRef);
    this.filters = [];
  }
  onSearchInput(event) {
    this.query = event.target.value;
  }
  componentDidLoad() {
    if (!(Build === null || Build === void 0 ? void 0 : Build.isBrowser))
      return;
    // Get Data
  }
  render() {
    return [
      h("ion-content", { class: "ion-padding" }, h("floodteam-title-bar", null, h("ion-router-link", { href: "/triggers" }, "Triggers"), h("ion-buttons", { slot: "end" }, h("ion-button", { fill: "solid", color: "primary", href: "/triggers/new" }, "Add"))), h("div", { class: "ion-padding" }, h("fireenjin-search-bar", { ref: (el) => (this.filterBarEl = el), paginationEl: this.paginationEl, filters: this.filters }), h("fireenjin-pagination", { ref: (el) => (this.paginationEl = el), resultsKey: "triggers", disableVirtualScroll: true, removeDuplicates: true, listEl: ({ result: trigger }) => (h("ion-item", { href: `/triggers/${trigger.id}`, detail: true, lines: "full" }, h("ion-label", null, h("h2", null, trigger.name)))), display: "list", endpoint: "listTriggers", limit: 20, query: this.query }))),
      h("floodteam-navigation-footer", null),
    ];
  }
};
AppTrigger.style = appTriggerListCss;

export { AppTrigger as app_trigger_list };

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