import { Build, Component, h, Prop } from "@stencil/core";
export class AppImport {
  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: "/imports" }, "Import")),
        h("ion-card", null,
          h("ion-card-header", null,
            h("ion-item", null,
              h("ion-label", null, "Import"),
              h("ion-select", { name: "type" },
                h("ion-select-option", { value: "ftms-users" }, "FTMS Users"),
                h("ion-select-option", { value: "ftms-jobs" }, "FTMS Jobs")))),
          h("ion-card-content", null,
            h("table", null,
              h("tr", null,
                h("td", null)))))),
      h("floodteam-navigation-footer", null),
    ];
  }
  static get is() { return "app-import"; }
  static get originalStyleUrls() { return {
    "$": ["app-import.css"]
  }; }
  static get styleUrls() { return {
    "$": ["app-import.css"]
  }; }
  static get properties() { return {
    "importId": {
      "type": "string",
      "mutable": false,
      "complexType": {
        "original": "string",
        "resolved": "string",
        "references": {}
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": ""
      },
      "attribute": "import-id",
      "reflect": false
    }
  }; }
}
//# sourceMappingURL=app-import.js.map