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

const appWeatherListCss = "";

let AppWeatherList = class {
  constructor(hostRef) {
    registerInstance(this, hostRef);
  }
  onSearchInput(event) {
    this.query = event.target.value;
  }
  componentDidLoad() {
    if (!(Build === null || Build === void 0 ? void 0 : Build.isBrowser))
      return;
  }
  render() {
    return [
      h("ion-content", { class: "ion-padding" }, h("floodteam-title-bar", null, h("ion-router-link", { href: "/weather" }, "Weather"), h("ion-buttons", { slot: "end" }, h("ion-button", { fill: "solid", color: "primary", href: "/weather/new" }, "Add"))), h("fireenjin-search-bar", { ref: (el) => (this.filterBarEl = el), displayMode: "list", paginationEl: this.paginationEl, filters: [] }), h("fireenjin-pagination", { ref: (el) => (this.paginationEl = el), display: "list", listEl: ({ result }) => (h("ion-item", null, h("ion-label", null, h("h2", null, result.name ? result.name : "", " ")))), endpoint: "listWeather", limit: 24, resultsKey: "weathers", query: this.query })),
      h("floodteam-navigation-footer", null),
    ];
  }
};
AppWeatherList.style = appWeatherListCss;

export { AppWeatherList as app_weather_list };

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