import { Component, Element, h, Host, Prop } from '@stencil/core';
export class DvnInfoSummary {
  constructor() {
    this.scale = 'medium';
    this.leaned = false;
  }
  componentWillLoad() {
    this.hasMedia = !!this.el.querySelector('[slot="media"]');
  }
  render() {
    return (h(Host, { class: {
        [this.class]: !!this.class,
        leaned: this.leaned,
        [this.scale]: true,
      }, style: { width: this.width } },
      this.hasMedia &&
        h("div", { class: "media-container" },
          h("slot", { name: "media" })),
      h("div", { class: "info-container" },
        h("div", { class: "title" }, this.title),
        this.subTitle &&
          h("div", { class: "secondary-info" }, this.subTitle))));
  }
  static get is() { return "dvn-info-summary"; }
  static get originalStyleUrls() { return {
    "$": ["dvn-info-summary.scss"]
  }; }
  static get styleUrls() { return {
    "$": ["dvn-info-summary.css"]
  }; }
  static get properties() { return {
    "class": {
      "type": "string",
      "mutable": false,
      "complexType": {
        "original": "string",
        "resolved": "string",
        "references": {}
      },
      "required": false,
      "optional": true,
      "docs": {
        "tags": [],
        "text": ""
      },
      "attribute": "class",
      "reflect": false
    },
    "title": {
      "type": "string",
      "mutable": false,
      "complexType": {
        "original": "string",
        "resolved": "string",
        "references": {}
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": ""
      },
      "attribute": "title",
      "reflect": false
    },
    "subTitle": {
      "type": "string",
      "mutable": false,
      "complexType": {
        "original": "string",
        "resolved": "string",
        "references": {}
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": ""
      },
      "attribute": "sub-title",
      "reflect": false
    },
    "scale": {
      "type": "string",
      "mutable": false,
      "complexType": {
        "original": "Scale",
        "resolved": "\"large\" | \"medium\" | \"small\"",
        "references": {
          "Scale": {
            "location": "import",
            "path": "../../theme"
          }
        }
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": ""
      },
      "attribute": "scale",
      "reflect": false,
      "defaultValue": "'medium'"
    },
    "leaned": {
      "type": "boolean",
      "mutable": false,
      "complexType": {
        "original": "boolean",
        "resolved": "boolean",
        "references": {}
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": ""
      },
      "attribute": "leaned",
      "reflect": false,
      "defaultValue": "false"
    },
    "width": {
      "type": "string",
      "mutable": false,
      "complexType": {
        "original": "string",
        "resolved": "string",
        "references": {}
      },
      "required": false,
      "optional": true,
      "docs": {
        "tags": [],
        "text": ""
      },
      "attribute": "width",
      "reflect": false
    }
  }; }
  static get elementRef() { return "el"; }
}
