import { Component, Prop, h } from '@stencil/core';
import { HTag } from '../../types/HTag';
export class TeliaContentBanner {
  constructor() {
    /** html tag for heading */
    this.headingTag = HTag.H2;
    /** Tracking id is used to identify and count Component usage */
    this.dataTrackingId = 'telia-content-banner';
  }
  render() {
    const componentClass = 'telia-content-banner';
    return (h("telia-link", { silent: true, href: this.href, "data-testid": this.dataTestid },
      h("telia-vst", { dataTrackingId: this.dataTrackingId }),
      h("article", { class: componentClass },
        !!this.imgSrc && (h("div", { class: componentClass + '__image' },
          h("telia-image", { src: this.imgSrc, "small-set": this.smallSet, "medium-set": this.mediumSet, alt: this.imgAlt, variant: 'scalable' }))),
        h("div", { class: componentClass + '__content' },
          h("telia-text-spacing", null,
            h("telia-heading", { tag: 'h2', variant: 'title-400' },
              h("span", { class: componentClass + '__heading' }, this.bannerHeading))),
          h("slot", null)))));
  }
  static get is() { return "telia-content-banner"; }
  static get encapsulation() { return "shadow"; }
  static get originalStyleUrls() { return {
    "$": ["telia-content-banner.scss"]
  }; }
  static get styleUrls() { return {
    "$": ["telia-content-banner.css"]
  }; }
  static get properties() { return {
    "dataTestid": {
      "type": "string",
      "mutable": false,
      "complexType": {
        "original": "string",
        "resolved": "string",
        "references": {}
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": "Test id set for web component host"
      },
      "attribute": "data-testid",
      "reflect": false
    },
    "smallSet": {
      "type": "string",
      "mutable": false,
      "complexType": {
        "original": "string",
        "resolved": "string",
        "references": {}
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": "image src for large screens"
      },
      "attribute": "small-set",
      "reflect": false
    },
    "mediumSet": {
      "type": "string",
      "mutable": false,
      "complexType": {
        "original": "string",
        "resolved": "string",
        "references": {}
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": "image src for medium screens"
      },
      "attribute": "medium-set",
      "reflect": false
    },
    "imgSrc": {
      "type": "string",
      "mutable": false,
      "complexType": {
        "original": "string",
        "resolved": "string",
        "references": {}
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": "image src fallback and large screen size"
      },
      "attribute": "img-src",
      "reflect": false
    },
    "imgAlt": {
      "type": "string",
      "mutable": false,
      "complexType": {
        "original": "string",
        "resolved": "string",
        "references": {}
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": "Description of content or emotion of image"
      },
      "attribute": "img-alt",
      "reflect": false
    },
    "href": {
      "type": "string",
      "mutable": false,
      "complexType": {
        "original": "string",
        "resolved": "string",
        "references": {}
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": "the url for the a tag"
      },
      "attribute": "href",
      "reflect": false
    },
    "bannerHeading": {
      "type": "string",
      "mutable": false,
      "complexType": {
        "original": "string",
        "resolved": "string",
        "references": {}
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": "banner title"
      },
      "attribute": "banner-heading",
      "reflect": false
    },
    "headingTag": {
      "type": "string",
      "mutable": false,
      "complexType": {
        "original": "HTagType",
        "resolved": "\"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\"",
        "references": {
          "HTagType": {
            "location": "import",
            "path": "../../types/HTag"
          }
        }
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": "html tag for heading"
      },
      "attribute": "heading-tag",
      "reflect": false,
      "defaultValue": "HTag.H2"
    }
  }; }
}
