import { Component, h, Prop, Event, } from "@stencil/core";
export class PopoverInvoiceSelect {
  constructor() {
    this.name = "type";
    this.options = ["Water Remediation", "Box Out", "Contents", "Reconstruction", "Other"];
    this.value = "Water Remediation";
  }
  render() {
    return (h("ion-content", { style: {
        "--background": "var(--ion-color-base)",
      } },
      h("ion-list", null, (this.options || []).map((option) => (h("ion-item", { detail: true, detailIcon: option === this.value ? "checkmark-circle" : "chevron-forward", href: "#", onClick: (event) => {
          this.value = option;
          this.floodteamSelect.emit({
            event,
            name: this.name,
            value: option,
          });
          this.floodteamClosePopover.emit({
            event,
          });
        } },
        h("ion-label", null, option)))))));
  }
  static get is() { return "popover-invoice-select"; }
  static get originalStyleUrls() { return {
    "$": ["popover-invoice-select.css"]
  }; }
  static get styleUrls() { return {
    "$": ["popover-invoice-select.css"]
  }; }
  static get properties() { return {
    "name": {
      "type": "string",
      "mutable": false,
      "complexType": {
        "original": "string",
        "resolved": "string",
        "references": {}
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": ""
      },
      "attribute": "name",
      "reflect": false,
      "defaultValue": "\"type\""
    },
    "options": {
      "type": "unknown",
      "mutable": false,
      "complexType": {
        "original": "(\n    | \"Water Remediation\"\n    | \"Box Out\"\n    | \"Contents\"\n    | \"Reconstruction\"\n    | \"Other\"\n  )[]",
        "resolved": "(\"Water Remediation\" | \"Box Out\" | \"Contents\" | \"Reconstruction\" | \"Other\")[]",
        "references": {}
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": ""
      },
      "defaultValue": "[\"Water Remediation\", \"Box Out\", \"Contents\", \"Reconstruction\", \"Other\"]"
    },
    "value": {
      "type": "string",
      "mutable": true,
      "complexType": {
        "original": "| \"Water Remediation\"\n    | \"Box Out\"\n    | \"Contents\"\n    | \"Reconstruction\"\n    | \"Other\"",
        "resolved": "\"Box Out\" | \"Contents\" | \"Other\" | \"Reconstruction\" | \"Water Remediation\"",
        "references": {}
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": ""
      },
      "attribute": "value",
      "reflect": false,
      "defaultValue": "\"Water Remediation\""
    }
  }; }
  static get events() { return [{
      "method": "floodteamSelect",
      "name": "floodteamSelect",
      "bubbles": true,
      "cancelable": true,
      "composed": true,
      "docs": {
        "tags": [],
        "text": ""
      },
      "complexType": {
        "original": "any",
        "resolved": "any",
        "references": {}
      }
    }, {
      "method": "floodteamClosePopover",
      "name": "floodteamClosePopover",
      "bubbles": true,
      "cancelable": true,
      "composed": true,
      "docs": {
        "tags": [],
        "text": ""
      },
      "complexType": {
        "original": "any",
        "resolved": "any",
        "references": {}
      }
    }]; }
}
//# sourceMappingURL=popover-invoice-select.js.map