'use strict';

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

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

const appTotallerListCss = "";

let AppTotallerList = class {
  constructor(hostRef) {
    index.registerInstance(this, hostRef);
  }
  onSuccess() {
    if (!(index.Build === null || index.Build === void 0 ? void 0 : index.Build.isBrowser))
      return;
    setTimeout(() => {
      window.dispatchEvent(new Event("resize"));
    }, 400);
  }
  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("div", { class: "ion-padding" }, index.h("fireenjin-search-bar", { ref: (el) => (this.filterBarEl = el), paginationEl: this.paginationEl, filters: null })), index.h("fireenjin-pagination", { ref: (el) => (this.paginationEl = el), disableVirtualScroll: true, removeDuplicates: true, listEl: ({ result: totaller }) => (index.h("ion-item", { href: `/totallers/${totaller.id}`, detail: true, lines: "full" }, index.h("ion-label", null, index.h("h2", null, totaller.name)))), display: "list", endpoint: "listTotallers", limit: 30, resultsKey: "totallers", query: this.query })),
      index.h("floodteam-navigation-footer", null, index.h("floodteam-title-bar", { back: "/dashboard", disableUnderline: true }, index.h("ion-breadcrumbs", null, index.h("ion-breadcrumb", { href: "/totallers" }, index.h("ion-icon", { class: "ft-icon-style", slot: "start", name: "calculator" }), "Totallers")), index.h("ion-buttons", { slot: "end" }, index.h("ion-button", { fill: "solid", color: "primary", href: "/totallers/new" }, "Add")))),
    ];
  }
};
AppTotallerList.style = appTotallerListCss;

exports.app_totaller_list = AppTotallerList;

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