import { Component, h, State, Prop } from '@stencil/core';
export class UserRole {
  constructor() {
    this.roleSelected = null;
    this.buttonClass = 'disabled';
    this.skill = 1;
    this.communityAddress = null;
    this.partnersAddress = null;
  }
  render() {
    return (h("div", { class: "user-role-modal-window-child" }, this.isPartner ?
      h("roles-screen-partner", { community: this.community, isPartner: this.isPartner, isLoading: this.isLoading, buttonClass: this.buttonClass, roleSelected: this.roleSelected, communityAddress: this.communityAddress, partnersAddress: this.partnersAddress }) :
      h("roles-screen-new-user", { skill: this.skill, community: this.community, isPartner: this.isPartner, isLoading: this.isLoading, buttonClass: this.buttonClass, roleSelected: this.roleSelected, web3Provider: this.web3Provider, validator: this.validator })));
  }
  static get is() { return "user-role"; }
  static get encapsulation() { return "shadow"; }
  static get originalStyleUrls() { return {
    "$": ["skillwallet-auth.css"]
  }; }
  static get styleUrls() { return {
    "$": ["skillwallet-auth.css"]
  }; }
  static get properties() { return {
    "isLoading": {
      "type": "boolean",
      "mutable": true,
      "complexType": {
        "original": "boolean",
        "resolved": "boolean",
        "references": {}
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": ""
      },
      "attribute": "is-loading",
      "reflect": false
    },
    "community": {
      "type": "any",
      "mutable": false,
      "complexType": {
        "original": "any",
        "resolved": "any",
        "references": {}
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": ""
      },
      "attribute": "community",
      "reflect": false
    },
    "isPartner": {
      "type": "unknown",
      "mutable": false,
      "complexType": {
        "original": "Boolean",
        "resolved": "Boolean",
        "references": {
          "Boolean": {
            "location": "global"
          }
        }
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": ""
      }
    },
    "communityAddress": {
      "type": "string",
      "mutable": false,
      "complexType": {
        "original": "string",
        "resolved": "string",
        "references": {}
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": ""
      },
      "attribute": "community-address",
      "reflect": false,
      "defaultValue": "null"
    },
    "partnersAddress": {
      "type": "string",
      "mutable": false,
      "complexType": {
        "original": "string",
        "resolved": "string",
        "references": {}
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": ""
      },
      "attribute": "partners-address",
      "reflect": false,
      "defaultValue": "null"
    },
    "web3Provider": {
      "type": "any",
      "mutable": true,
      "complexType": {
        "original": "any",
        "resolved": "any",
        "references": {}
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": ""
      },
      "attribute": "web-3-provider",
      "reflect": false
    },
    "validator": {
      "type": "any",
      "mutable": false,
      "complexType": {
        "original": "string | any",
        "resolved": "any",
        "references": {}
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": ""
      },
      "attribute": "validator",
      "reflect": false
    }
  }; }
  static get states() { return {
    "roleSelected": {},
    "buttonClass": {},
    "skill": {}
  }; }
}
