import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
import { d as defineCustomElement$a } from './telia-badge2.js';
import { d as defineCustomElement$9 } from './telia-card-frame2.js';
import { d as defineCustomElement$8 } from './telia-card-frame-link2.js';
import { d as defineCustomElement$7 } from './telia-heading2.js';
import { d as defineCustomElement$6 } from './telia-icon2.js';
import { d as defineCustomElement$5 } from './telia-image2.js';
import { d as defineCustomElement$4 } from './telia-link2.js';
import { d as defineCustomElement$3 } from './telia-style-link2.js';
import { d as defineCustomElement$2 } from './telia-vst2.js';

const teliaProductCardHardwareCss = ".telia-product-card-hardware{color:#222222;box-sizing:border-box;display:flex;height:100%}@media screen and (min-width: 37.5em){.telia-product-card-hardware{flex-direction:column;text-align:center}}.telia-product-card-hardware__image{box-sizing:border-box;display:block;padding-left:calc(calc(1.6rem * var(--voca-rem-multiplier)) / 2);padding-right:calc(calc(1.6rem * var(--voca-rem-multiplier)) / 2);width:calc(((100% - 1px) / 12) * 4);align-items:center;display:flex;height:100%;justify-content:center}@media screen and (min-width: 37.5em){.telia-product-card-hardware__image{padding-left:calc(calc(2.4rem * var(--voca-rem-multiplier)) / 2);padding-right:calc(calc(2.4rem * var(--voca-rem-multiplier)) / 2)}}@media screen and (min-width: 64em){.telia-product-card-hardware__image{padding-left:calc(calc(2.4rem * var(--voca-rem-multiplier)) / 2);padding-right:calc(calc(2.4rem * var(--voca-rem-multiplier)) / 2)}}@media screen and (min-width: 37.5em){.telia-product-card-hardware__image{box-sizing:border-box;display:block;padding-left:calc(calc(1.6rem * var(--voca-rem-multiplier)) / 2);padding-right:calc(calc(1.6rem * var(--voca-rem-multiplier)) / 2);width:calc(((100% - 1px) / 12) * 12);height:calc(20rem * var(--voca-rem-multiplier));width:auto}}@media screen and (min-width: 37.5em) and (min-width: 37.5em){.telia-product-card-hardware__image{padding-left:calc(calc(2.4rem * var(--voca-rem-multiplier)) / 2);padding-right:calc(calc(2.4rem * var(--voca-rem-multiplier)) / 2)}}@media screen and (min-width: 37.5em) and (min-width: 64em){.telia-product-card-hardware__image{padding-left:calc(calc(2.4rem * var(--voca-rem-multiplier)) / 2);padding-right:calc(calc(2.4rem * var(--voca-rem-multiplier)) / 2)}}@media screen and (min-width: 64em){.telia-product-card-hardware__image{height:calc(29.6rem * var(--voca-rem-multiplier))}}.telia-product-card-hardware__image picture{align-items:center;box-sizing:border-box;display:flex;height:calc(11.2rem * var(--voca-rem-multiplier));justify-content:center;width:calc(11.2rem * var(--voca-rem-multiplier))}@media screen and (min-width: 37.5em){.telia-product-card-hardware__image picture{height:100%;width:100%}}.telia-product-card-hardware__image img{object-fit:contain}.telia-product-card-hardware__content{box-sizing:border-box;display:block;padding-left:calc(calc(1.6rem * var(--voca-rem-multiplier)) / 2);padding-right:calc(calc(1.6rem * var(--voca-rem-multiplier)) / 2);width:calc(((100% - 1px) / 12) * 8);display:flex;flex-direction:column;justify-content:center;padding-bottom:calc(calc(1.6rem * var(--voca-rem-multiplier)) / 2);padding-top:calc(calc(1.6rem * var(--voca-rem-multiplier)) / 2)}@media screen and (min-width: 37.5em){.telia-product-card-hardware__content{padding-left:calc(calc(2.4rem * var(--voca-rem-multiplier)) / 2);padding-right:calc(calc(2.4rem * var(--voca-rem-multiplier)) / 2)}}@media screen and (min-width: 64em){.telia-product-card-hardware__content{padding-left:calc(calc(2.4rem * var(--voca-rem-multiplier)) / 2);padding-right:calc(calc(2.4rem * var(--voca-rem-multiplier)) / 2)}}@media screen and (min-width: 37.5em){.telia-product-card-hardware__content{box-sizing:border-box;display:block;padding-left:calc(calc(1.6rem * var(--voca-rem-multiplier)) / 2);padding-right:calc(calc(1.6rem * var(--voca-rem-multiplier)) / 2);width:calc(((100% - 1px) / 12) * 12);flex-grow:1;justify-content:unset;margin:0;padding-bottom:0;padding-top:calc(2.4rem * var(--voca-rem-multiplier))}}@media screen and (min-width: 37.5em) and (min-width: 37.5em){.telia-product-card-hardware__content{padding-left:calc(calc(2.4rem * var(--voca-rem-multiplier)) / 2);padding-right:calc(calc(2.4rem * var(--voca-rem-multiplier)) / 2)}}@media screen and (min-width: 37.5em) and (min-width: 64em){.telia-product-card-hardware__content{padding-left:calc(calc(2.4rem * var(--voca-rem-multiplier)) / 2);padding-right:calc(calc(2.4rem * var(--voca-rem-multiplier)) / 2)}}.telia-product-card-hardware__badge{position:absolute;right:calc(1.6rem * var(--voca-rem-multiplier));top:0}@media screen and (min-width: 37.5em){.telia-product-card-hardware__badge{right:calc(2.4rem * var(--voca-rem-multiplier))}}.telia-product-card-hardware__badge>*{display:flex}.telia-product-card-hardware__pre-title{font-family:\"TeliaSans\", Helvetica, Arial, \"Lucida Grande\", sans-serif;font-weight:normal;font-size:calc(1.6rem * var(--voca-rem-multiplier));line-height:1.5;color:rgba(0, 0, 0, 0.6);display:block;text-transform:uppercase}.telia-product-card-hardware__title{color:rgba(0, 0, 0, 0.85);align-items:center;display:flex}@media screen and (min-width: 37.5em){.telia-product-card-hardware__title{justify-content:center}}@media screen and (min-width: 37.5em){.telia-product-card-hardware__additional{flex-grow:1}}.telia-product-card-hardware--left{text-align:left}.telia-product-card-hardware--left .telia-product-card-hardware__title{justify-content:left}.telia-product-card-hardware ::slotted([slot=content]){color:#48484b;margin:calc(0.8rem * var(--voca-rem-multiplier)) 0 calc(1.6rem * var(--voca-rem-multiplier))}.telia-product-card-hardware ::slotted([slot=price]){color:#48484b;margin-top:calc(0.8rem * var(--voca-rem-multiplier))}";

const TeliaProductCardHardware$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
  constructor() {
    super();
    this.__registerHost();
    this.__attachShadow();
    /** text alignment */
    this.alignment = 'center';
    this.dataTrackingId = 'telia-product-card-hardware';
  }
  isLeft() {
    return this.alignment === 'left';
  }
  concatLinkTitle(...args) {
    return args.filter(el => el !== undefined).join(' ');
  }
  render() {
    const cardClass = 'telia-product-card-hardware';
    return (h("telia-card-frame-link", { "data-testid": this.dataTestid, href: this.href, "link-title": this.concatLinkTitle(this.badgeTitle, this.preTitle, this.productTitle) }, h("article", { class: {
        'telia-product-card-hardware': true,
        [`telia-product-card-hardware--${this.alignment}`]: this.isLeft(),
      } }, h("telia-image", { class: cardClass + '__image', src: this.imgSrc, alt: ' ' }), h("div", { class: cardClass + '__content' }, h("telia-heading", { tag: "h2", variant: "title-200" }, h("span", { role: 'text' }, this.badgeTitle && (h("span", { class: cardClass + '__badge' }, h("telia-badge", { variant: this.badgeVariant || 'attention' }, this.badgeTitle))), h("span", { class: cardClass + '__pre-title' }, this.preTitle), h("span", { class: cardClass + '__title' }, this.productTitle))), h("div", { class: cardClass + '__additional' }, h("slot", { name: 'content' })), h("div", { class: cardClass + '__price' }, h("slot", { name: 'price' })))), h("telia-vst", { dataTrackingId: this.dataTrackingId })));
  }
  static get style() { return teliaProductCardHardwareCss; }
}, [1, "telia-product-card-hardware", {
    "alignment": [1],
    "badgeTitle": [1, "badge-title"],
    "badgeVariant": [1, "badge-variant"],
    "dataTestid": [1, "data-testid"],
    "href": [1],
    "preTitle": [1, "pre-title"],
    "productTitle": [1, "product-title"],
    "imgSrc": [1, "img-src"]
  }]);
function defineCustomElement$1() {
  if (typeof customElements === "undefined") {
    return;
  }
  const components = ["telia-product-card-hardware", "telia-badge", "telia-card-frame", "telia-card-frame-link", "telia-heading", "telia-icon", "telia-image", "telia-link", "telia-style-link", "telia-vst"];
  components.forEach(tagName => { switch (tagName) {
    case "telia-product-card-hardware":
      if (!customElements.get(tagName)) {
        customElements.define(tagName, TeliaProductCardHardware$1);
      }
      break;
    case "telia-badge":
      if (!customElements.get(tagName)) {
        defineCustomElement$a();
      }
      break;
    case "telia-card-frame":
      if (!customElements.get(tagName)) {
        defineCustomElement$9();
      }
      break;
    case "telia-card-frame-link":
      if (!customElements.get(tagName)) {
        defineCustomElement$8();
      }
      break;
    case "telia-heading":
      if (!customElements.get(tagName)) {
        defineCustomElement$7();
      }
      break;
    case "telia-icon":
      if (!customElements.get(tagName)) {
        defineCustomElement$6();
      }
      break;
    case "telia-image":
      if (!customElements.get(tagName)) {
        defineCustomElement$5();
      }
      break;
    case "telia-link":
      if (!customElements.get(tagName)) {
        defineCustomElement$4();
      }
      break;
    case "telia-style-link":
      if (!customElements.get(tagName)) {
        defineCustomElement$3();
      }
      break;
    case "telia-vst":
      if (!customElements.get(tagName)) {
        defineCustomElement$2();
      }
      break;
  } });
}
defineCustomElement$1();

const TeliaProductCardHardware = TeliaProductCardHardware$1;
const defineCustomElement = defineCustomElement$1;

export { TeliaProductCardHardware, defineCustomElement };
