import { Component, Event, h, Listen, Prop } from "@stencil/core";
import { Identifier } from "authly";
export class IntergiroOnboard {
  componentWillLoad() {
    if (!this.number)
      this.number = Identifier.generate(16);
  }
  onCreate(event) {
    this.create.emit(event.detail);
  }
  render() {
    return (h("payfunc-onboard", { "api-key": this.apiKey, customer: this.customer, number: this.number, cosmetic: this.cosmetic, responseTimer: this.responseTimer }));
  }
  static get is() { return "intergiro-onboard"; }
  static get encapsulation() { return "scoped"; }
  static get originalStyleUrls() { return {
    "$": ["style.css"]
  }; }
  static get styleUrls() { return {
    "$": ["style.css"]
  }; }
  static get properties() { return {
    "apiKey": {
      "type": "string",
      "mutable": false,
      "complexType": {
        "original": "string",
        "resolved": "string",
        "references": {}
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": ""
      },
      "attribute": "api-key",
      "reflect": false
    },
    "customer": {
      "type": "unknown",
      "mutable": false,
      "complexType": {
        "original": "Customer | undefined",
        "resolved": "Customer | undefined",
        "references": {
          "Customer": {
            "location": "import",
            "path": "@payfunc/model"
          }
        }
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": ""
      }
    },
    "number": {
      "type": "string",
      "mutable": false,
      "complexType": {
        "original": "string | undefined",
        "resolved": "string | undefined",
        "references": {}
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": ""
      },
      "attribute": "number",
      "reflect": false
    },
    "cosmetic": {
      "type": "string",
      "mutable": false,
      "complexType": {
        "original": "| string\n\t\t| {\n\t\t\t\theader?: { background?: string; color?: string }\n\t\t\t\ttext?: { background?: string; color?: string }\n\t\t\t\tlineColor?: string\n\t\t\t\tsubmit?: { background?: string; color?: string }\n\t\t\t\tfontFamily?: string\n\t\t\t\tdangerColor?: string\n\t\t  }",
        "resolved": "string | undefined | { header?: { background?: string | undefined; color?: string | undefined; } | undefined; text?: { background?: string | undefined; color?: string | undefined; } | undefined; lineColor?: string | undefined; submit?: { background?: string | undefined; color?: string | undefined; } | undefined; fontFamily?: string | undefined; dangerColor?: string | undefined; }",
        "references": {}
      },
      "required": false,
      "optional": true,
      "docs": {
        "tags": [],
        "text": ""
      },
      "attribute": "cosmetic",
      "reflect": false
    },
    "responseTimer": {
      "type": "number",
      "mutable": false,
      "complexType": {
        "original": "number",
        "resolved": "number | undefined",
        "references": {}
      },
      "required": false,
      "optional": true,
      "docs": {
        "tags": [],
        "text": ""
      },
      "attribute": "response-timer",
      "reflect": false
    }
  }; }
  static get events() { return [{
      "method": "create",
      "name": "create",
      "bubbles": true,
      "cancelable": true,
      "composed": true,
      "docs": {
        "tags": [],
        "text": ""
      },
      "complexType": {
        "original": "Customer",
        "resolved": "Customer",
        "references": {
          "Customer": {
            "location": "import",
            "path": "@payfunc/model"
          }
        }
      }
    }]; }
  static get listeners() { return [{
      "name": "createCustomer",
      "method": "onCreate",
      "target": undefined,
      "capture": false,
      "passive": false
    }]; }
}
