'use strict';

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

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

const appLogListCss = "";

let AppLogList = class {
  constructor(hostRef) {
    index.registerInstance(this, hostRef);
  }
  onSearchInput(event) {
    this.query = event.target.value;
  }
  componentDidLoad() {
    if (!(index.Build === null || index.Build === void 0 ? void 0 : index.Build.isBrowser))
      return;
  }
  render() {
    return [
      index.h("ion-content", { class: "ion-padding" }, index.h("floodteam-title-bar", null, index.h("ion-router-link", { href: "/logs" }, "Logs"), index.h("ion-buttons", { slot: "end" }, index.h("ion-button", { fill: "solid", color: "primary", href: "/logs/new" }, "Add"))), index.h("div", { class: "ion-padding" }, index.h("fireenjin-search-bar", { ref: (el) => (this.filterBarEl = el), paginationEl: this.paginationEl, filters: null })), index.h("fireenjin-filter-bar", { paginationEl: this.paginationEl, filter: {
          label: "Filter By",
          controls: [
            {
              name: "locationId",
              label: "Location",
              endpoint: "listLocations",
              icon: "business",
              dataPropsMap: {
                locations: "results",
              },
            },
            {
              name: "type",
              label: "Type",
              icon: "pricetags",
              multiple: true,
              options: [
                { label: "Write", value: "Mutation" },
                { label: "Read", value: "Query" },
                { label: "Stripe", value: "stripe" },
                { label: "AnswerConnect", value: "answerconnect" },
              ],
            },
          ],
        } }), index.h("fireenjin-pagination", { ref: (el) => (this.paginationEl = el), listEl: ({ result: log }) => (index.h("fireenjin-log-item", { ...log })), display: "list", endpoint: "listLogs", limit: 24, resultsKey: "logs", query: this.query })),
      index.h("floodteam-navigation-footer", null),
    ];
  }
};
AppLogList.style = appLogListCss;

exports.app_log_list = AppLogList;

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