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

const appTotallerListCss = "";

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

export { AppTotallerList as app_totaller_list };
