'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

const index = require('./index-fd2bbf0b.js');

const appTriggerListCss = "";

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

exports.app_trigger_list = AppTrigger;

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