import { h } from '@stencil/core';
export class EclBlockquote {
  constructor() {
    this.styleClass = '';
    this.theme = 'ec';
    this.image = undefined;
    this.author = undefined;
    this.imageAlt = undefined;
  }
  getClass() {
    return [
      `ecl-blockquote`,
      this.styleClass
    ].join(' ');
  }
  render() {
    return (h("figure", { class: this.getClass() }, h("div", { class: "ecl-blockquote__body" }, h("blockquote", { class: "ecl-blockquote__quote" }, h("p", { class: "ecl-blockquote__citation" }, h("slot", null))), this.author ?
      h("footer", { class: "ecl-blockquote__attribution" }, h("cite", { class: "ecl-blockquote__author" }, this.author)) : ''), this.image ?
      h("img", { class: "ecl-blockquote__image", src: this.image, alt: this.imageAlt })
      : ''));
  }
  static get is() { return "ecl-blockquote"; }
  static get encapsulation() { return "scoped"; }
  static get originalStyleUrls() {
    return {
      "ec": ["./build/styles/ecl-blockquote-ec.css"],
      "eu": ["./build/styles/ecl-blockquote-eu.css"]
    };
  }
  static get styleUrls() {
    return {
      "ec": ["./build/styles/ecl-blockquote-ec.css"],
      "eu": ["./build/styles/ecl-blockquote-eu.css"]
    };
  }
  static get properties() {
    return {
      "styleClass": {
        "type": "string",
        "mutable": false,
        "complexType": {
          "original": "string",
          "resolved": "string",
          "references": {}
        },
        "required": false,
        "optional": false,
        "docs": {
          "tags": [],
          "text": ""
        },
        "attribute": "style-class",
        "reflect": false,
        "defaultValue": "''"
      },
      "theme": {
        "type": "string",
        "mutable": false,
        "complexType": {
          "original": "string",
          "resolved": "string",
          "references": {}
        },
        "required": false,
        "optional": false,
        "docs": {
          "tags": [],
          "text": ""
        },
        "attribute": "theme",
        "reflect": false,
        "defaultValue": "'ec'"
      },
      "image": {
        "type": "string",
        "mutable": false,
        "complexType": {
          "original": "string",
          "resolved": "string",
          "references": {}
        },
        "required": false,
        "optional": false,
        "docs": {
          "tags": [],
          "text": ""
        },
        "attribute": "image",
        "reflect": false
      },
      "author": {
        "type": "string",
        "mutable": false,
        "complexType": {
          "original": "string",
          "resolved": "string",
          "references": {}
        },
        "required": false,
        "optional": false,
        "docs": {
          "tags": [],
          "text": ""
        },
        "attribute": "author",
        "reflect": false
      },
      "imageAlt": {
        "type": "string",
        "mutable": false,
        "complexType": {
          "original": "string",
          "resolved": "string",
          "references": {}
        },
        "required": false,
        "optional": false,
        "docs": {
          "tags": [],
          "text": ""
        },
        "attribute": "image-alt",
        "reflect": false
      }
    };
  }
}
//# sourceMappingURL=ecl-blockquote.js.map
