import { r as registerInstance, d as createEvent, B as Build, h } from './index-33e43734.js';
import { g as getHandlebarsHelpers } from './getHandlebarsHelpers-c9ef69ba.js';
import { s as state } from './store-163687da.js';
import './_commonjsHelpers-cca61ea8.js';
import './logic-2eecfe1e.js';
import './index-964da72a.js';
import './index-91eb4513.js';
import './getCache-721d3aa5.js';

const modalRenderTemplateCss = ".modal-render-template{--width:855px;--max-width:855px}@media only screen and (max-width: 860px){.modal-render-template{--width:100%;--max-width:auto}}";

let ModalRenderTemplate = class {
  constructor(hostRef) {
    registerInstance(this, hostRef);
    this.floodteamCloseModal = createEvent(this, "floodteamCloseModal", 7);
  }
  componentDidLoad() {
    if (!(Build === null || Build === void 0 ? void 0 : Build.isBrowser))
      return;
  }
  render() {
    var _a;
    return [
      h("ion-header", null, h("ion-toolbar", null, h("ion-title", null, this.headerTitle), h("ion-buttons", { slot: "end" }, h("ion-button", { onClick: () => this.floodteamCloseModal.emit(), style: {
          "--color": "var(--ion-text-color)",
          "--color-hover": "var(--ion-color-danger",
        } }, h("ion-icon", { slot: "icon-only", name: "close-circle-outline" }))))),
      h("ion-content", null, h("fireenjin-render-template", { templateId: this.templateId, 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: this.data || {} })),
    ];
  }
};
ModalRenderTemplate.style = modalRenderTemplateCss;

export { ModalRenderTemplate as modal_render_template };

//# sourceMappingURL=modal-render-template.entry.js.map