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

const appAlertCss = "app-alert ion-card,app-alert ion-card-content{overflow:visible !important}";

const AppAlert = class {
  constructor(hostRef) {
    registerInstance(this, hostRef);
    this.alertId = undefined;
    this.alert = {};
  }
  async fetchData() {
  }
  onBeforeSubmit(data) {
    console.log(data);
    return {
      ...data,
      isPrivate: data.isPrivate === "on",
      ignoreWhitelist: data.ignoreWhitelist === "on",
    };
  }
  componentDidLoad() {
    if (!(Build === null || Build === void 0 ? void 0 : Build.isBrowser))
      return;
    this.fetchData();
  }
  render() {
    return [
      h("ion-content", { class: "ion-padding" }, h("floodteam-title-bar", null, h("ion-router-link", { href: "/alerts" }, "Alerts")), h("ion-card", null, h("ion-card-content", null, "Alert Info"))),
      h("floodteam-navigation-footer", null),
    ];
  }
};
AppAlert.style = appAlertCss;

export { AppAlert as app_alert };
