import { Build, h, } from "@stencil/core";
export class AppAlert {
  constructor() {
    this.alertId = undefined;
    this.alert = {};
  }
  async fetchData() {
    if (!Build.isBrowser)
      return;
  }
  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),
    ];
  }
  static get is() { return "app-alert"; }
  static get originalStyleUrls() {
    return {
      "$": ["app-alert.css"]
    };
  }
  static get styleUrls() {
    return {
      "$": ["app-alert.css"]
    };
  }
  static get properties() {
    return {
      "alertId": {
        "type": "string",
        "mutable": false,
        "complexType": {
          "original": "string",
          "resolved": "string",
          "references": {}
        },
        "required": false,
        "optional": false,
        "docs": {
          "tags": [],
          "text": ""
        },
        "attribute": "alert-id",
        "reflect": false
      }
    };
  }
  static get states() {
    return {
      "alert": {}
    };
  }
}
