import { Build, Component, h } from "@stencil/core";
import getHandlebarsHelpers from "../../../helpers/getHandlebarsHelpers";
import state from "../../../store";
export class AppHome {
  componentDidLoad() {
    if (!(Build === null || Build === void 0 ? void 0 : Build.isBrowser))
      return;
  }
  render() {
    var _a;
    return [
      h("ion-content", { class: "ion-padding" }, (Build === null || Build === void 0 ? void 0 : Build.isBrowser) && (h("fireenjin-render-template", { templateId: "MSAQz1dJEsPQYXMOwGe5", partials: ((_a = state === null || state === void 0 ? void 0 : state.templates) === null || _a === void 0 ? void 0 : _a.length)
          ? state.templates
            .filter((template) => !!(template === null || template === void 0 ? void 0 : template.partial))
            .map((partial) => ({
            html: (partial === null || partial === void 0 ? void 0 : partial.html) || "",
            id: (partial === null || partial === void 0 ? void 0 : partial.id) || null,
          }))
          : [], helpers: getHandlebarsHelpers(), data: {
          user: state === null || state === void 0 ? void 0 : state.profile,
        } }))),
      h("floodteam-navigation-footer", null),
    ];
  }
  static get is() { return "app-home"; }
  static get originalStyleUrls() { return {
    "$": ["app-home.css"]
  }; }
  static get styleUrls() { return {
    "$": ["app-home.css"]
  }; }
}
//# sourceMappingURL=app-home.js.map