'use strict';

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

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

const appWeatherListCss = "";

const AppWeatherList = 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: "/weather" }, "Weather"), index.h("ion-buttons", { slot: "end" }, index.h("ion-button", { fill: "solid", color: "primary", href: "/weather/new" }, "Add"))), index.h("fireenjin-search-bar", { ref: (el) => (this.filterBarEl = el), paginationEl: this.paginationEl, filters: [] }), index.h("fireenjin-pagination", { ref: (el) => (this.paginationEl = el), display: "list", listEl: ({ result }) => (index.h("ion-item", null, index.h("ion-label", null, index.h("h2", null, result.name ? result.name : "", " ")))), endpoint: "listWeather", limit: 20, resultsKey: "weathers", query: this.query })),
      index.h("floodteam-navigation-footer", null),
    ];
  }
};
AppWeatherList.style = appWeatherListCss;

exports.app_weather_list = AppWeatherList;
