import { r as registerInstance, h } from './index-0a3acb15.js';

const eclDescriptionListEcCss = ".ecl-description-list.sc-ecl-description-list-ec{margin:0}.ecl-description-list__term.sc-ecl-description-list-ec{color:#404040;font:normal normal 400 1rem/1.5rem arial, sans-serif;font-weight:700;margin-top:1rem;max-width:80ch;overflow-wrap:break-word}.ecl-description-list__term.sc-ecl-description-list-ec:first-child{margin-top:0}.ecl-description-list__term.sc-ecl-description-list-ec+.ecl-description-list__term.sc-ecl-description-list-ec{margin-top:0.25rem}.ecl-description-list__definition.sc-ecl-description-list-ec{color:#404040;font:normal normal 400 1rem/1.5rem arial, sans-serif;-webkit-margin-start:0;margin-inline-start:0;margin-top:0.5rem;max-width:80ch}.ecl-description-list__definition--link.sc-ecl-description-list-ec{align-items:flex-start;display:flex;flex-direction:column}.ecl-description-list__definition--link.sc-ecl-description-list-ec .ecl-description-list__definition-item.sc-ecl-description-list-ec{margin-top:0.75rem}.ecl-description-list__definition--link.sc-ecl-description-list-ec .ecl-description-list__definition-item.sc-ecl-description-list-ec:first-child{margin-top:0}.ecl-description-list__definition--inline.sc-ecl-description-list-ec{display:inline-block;margin-bottom:-0.5rem}.ecl-description-list__definition--inline.sc-ecl-description-list-ec .ecl-description-list__definition-item.sc-ecl-description-list-ec{-webkit-border-end:1px solid #404040;border-inline-end:1px solid #404040;display:inline;-webkit-margin-end:0.5rem;margin-inline-end:0.5rem;margin-bottom:0.5rem;-webkit-padding-end:0.5rem;padding-inline-end:0.5rem;unicode-bidi:isolate}.ecl-description-list__definition--inline.sc-ecl-description-list-ec .ecl-description-list__definition-item.sc-ecl-description-list-ec:last-child{border-inline-end-width:0;-webkit-margin-end:0;margin-inline-end:0;-webkit-padding-end:0;padding-inline-end:0}.ecl-description-list__definition--taxonomy.sc-ecl-description-list-ec{color:#707070;display:inline-block;margin-bottom:-0.5rem}.ecl-description-list__definition--taxonomy.sc-ecl-description-list-ec .ecl-description-list__definition-item.sc-ecl-description-list-ec{display:inline;-webkit-margin-end:1rem;margin-inline-end:1rem;margin-bottom:0.5rem;-webkit-padding-start:1rem;padding-inline-start:1rem;position:relative}.ecl-description-list__definition--taxonomy.sc-ecl-description-list-ec .ecl-description-list__definition-item.sc-ecl-description-list-ec::before{background-color:#004494;border-radius:50%;content:\"\";display:block;height:4px;left:-2px;position:absolute;top:8px;width:4px}.ecl-description-list__definition--taxonomy.sc-ecl-description-list-ec .ecl-description-list__definition-item.sc-ecl-description-list-ec:first-child{-webkit-padding-start:0;padding-inline-start:0}.ecl-description-list__definition--taxonomy.sc-ecl-description-list-ec .ecl-description-list__definition-item.sc-ecl-description-list-ec:first-child::before{display:none}.ecl-description-list__definition--taxonomy.sc-ecl-description-list-ec .ecl-description-list__definition-item.sc-ecl-description-list-ec:last-child{-webkit-margin-start:0;margin-inline-start:0}@media (min-width: 996px){.ecl-description-list--horizontal.sc-ecl-description-list-ec{display:grid;grid-template-columns:210px fit-content(80ch)}.ecl-description-list--horizontal.sc-ecl-description-list-ec .ecl-description-list__term.sc-ecl-description-list-ec{margin-top:1rem}.ecl-description-list--horizontal.sc-ecl-description-list-ec .ecl-description-list__term.sc-ecl-description-list-ec:first-of-type{margin-top:0}.ecl-description-list--horizontal.sc-ecl-description-list-ec .ecl-description-list__definition.sc-ecl-description-list-ec{align-items:flex-start;-webkit-margin-start:2rem;margin-inline-start:2rem;margin-top:1rem;overflow-wrap:break-word}.ecl-description-list--horizontal.sc-ecl-description-list-ec .ecl-description-list__definition.sc-ecl-description-list-ec:first-of-type{margin-top:0}}.ecl-description-list__term.sc-ecl-description-list-ec.sc-ecl-description-list-ec:first-child{margin-top:1rem}.ecl-link--icon-before.sc-ecl-description-list-ec .ecl-icon.sc-ecl-description-list-ec{-webkit-margin-end:0.5rem !important;margin-inline-end:0.5rem !important}.ecl-description-list--horizontal.sc-ecl-description-list-ec.sc-ecl-description-list-ec .ecl-description-list__term.sc-ecl-description-list-ec.sc-ecl-description-list-ec,.ecl-description-list--horizontal.sc-ecl-description-list-ec.sc-ecl-description-list-ec .ecl-description-list__definition.sc-ecl-description-list-ec.sc-ecl-description-list-ec{margin-top:1rem}.ecl-description-list__definition--inline.sc-ecl-description-list-ec.sc-ecl-description-list-ec .ecl-description-list__definition-item.sc-ecl-description-list-ec.sc-ecl-description-list-ec:last-child{-webkit-border-end:1px solid #404040;border-inline-end:1px solid #404040;-webkit-margin-end:0.5rem;margin-inline-end:0.5rem;-webkit-padding-end:0.5rem;padding-inline-end:0.5rem}";

const eclDescriptionListEuCss = ".ecl-description-list.sc-ecl-description-list-eu{margin:0}.ecl-description-list__term.sc-ecl-description-list-eu{color:#171a22;font:normal normal 400 1.125rem/1.75rem arial, sans-serif;font-weight:700;margin-top:1rem;max-width:80ch;overflow-wrap:break-word}.ecl-description-list__term.sc-ecl-description-list-eu:first-child{margin-top:0}.ecl-description-list__term.sc-ecl-description-list-eu+.ecl-description-list__term.sc-ecl-description-list-eu{margin-top:0.25rem}.ecl-description-list__definition.sc-ecl-description-list-eu{color:#171a22;font:normal normal 400 1rem/1.5rem arial, sans-serif;-webkit-margin-start:0;margin-inline-start:0;margin-top:0.5rem;max-width:80ch}.ecl-description-list__definition--link.sc-ecl-description-list-eu{align-items:flex-start;display:flex;flex-direction:column}.ecl-description-list__definition--link.sc-ecl-description-list-eu .ecl-description-list__definition-item.sc-ecl-description-list-eu{margin-top:0.75rem}.ecl-description-list__definition--link.sc-ecl-description-list-eu .ecl-description-list__definition-item.sc-ecl-description-list-eu:first-child{margin-top:0}.ecl-description-list__definition--inline.sc-ecl-description-list-eu{display:inline-block;margin-bottom:-0.5rem}.ecl-description-list__definition--inline.sc-ecl-description-list-eu .ecl-description-list__definition-item.sc-ecl-description-list-eu{-webkit-border-end:1px solid #171a22;border-inline-end:1px solid #171a22;display:inline;-webkit-margin-end:0.5rem;margin-inline-end:0.5rem;margin-bottom:0.5rem;-webkit-padding-end:0.5rem;padding-inline-end:0.5rem;unicode-bidi:isolate}.ecl-description-list__definition--inline.sc-ecl-description-list-eu .ecl-description-list__definition-item.sc-ecl-description-list-eu:last-child{border-inline-end-width:0;-webkit-margin-end:0;margin-inline-end:0;-webkit-padding-end:0;padding-inline-end:0}.ecl-description-list__definition--taxonomy.sc-ecl-description-list-eu{color:#515560;display:inline-block;margin-bottom:-0.5rem}.ecl-description-list__definition--taxonomy.sc-ecl-description-list-eu .ecl-description-list__definition-item.sc-ecl-description-list-eu{display:inline;-webkit-margin-end:1rem;margin-inline-end:1rem;margin-bottom:0.5rem;-webkit-padding-start:1rem;padding-inline-start:1rem;position:relative}.ecl-description-list__definition--taxonomy.sc-ecl-description-list-eu .ecl-description-list__definition-item.sc-ecl-description-list-eu::before{background-color:#0e47cb;border-radius:50%;content:\"\";display:block;height:4px;left:-2px;position:absolute;top:8px;width:4px}.ecl-description-list__definition--taxonomy.sc-ecl-description-list-eu .ecl-description-list__definition-item.sc-ecl-description-list-eu:first-child{-webkit-padding-start:0;padding-inline-start:0}.ecl-description-list__definition--taxonomy.sc-ecl-description-list-eu .ecl-description-list__definition-item.sc-ecl-description-list-eu:first-child::before{display:none}.ecl-description-list__definition--taxonomy.sc-ecl-description-list-eu .ecl-description-list__definition-item.sc-ecl-description-list-eu:last-child{-webkit-margin-start:0;margin-inline-start:0}@media (min-width: 996px){.ecl-description-list--horizontal.sc-ecl-description-list-eu{display:grid;grid-template-columns:210px fit-content(80ch)}.ecl-description-list--horizontal.sc-ecl-description-list-eu .ecl-description-list__term.sc-ecl-description-list-eu{margin-top:1rem}.ecl-description-list--horizontal.sc-ecl-description-list-eu .ecl-description-list__term.sc-ecl-description-list-eu:first-of-type{margin-top:0}.ecl-description-list--horizontal.sc-ecl-description-list-eu .ecl-description-list__definition.sc-ecl-description-list-eu{align-items:flex-start;-webkit-margin-start:2rem;margin-inline-start:2rem;margin-top:1rem;overflow-wrap:break-word}.ecl-description-list--horizontal.sc-ecl-description-list-eu .ecl-description-list__definition.sc-ecl-description-list-eu:first-of-type{margin-top:0}}.ecl-description-list__term.sc-ecl-description-list-eu.sc-ecl-description-list-eu:first-child{margin-top:1rem}.ecl-link--icon-before.sc-ecl-description-list-eu .ecl-icon.sc-ecl-description-list-eu{-webkit-margin-end:0.5rem !important;margin-inline-end:0.5rem !important}";

const EclDescriptionList = class {
  constructor(hostRef) {
    registerInstance(this, hostRef);
    this.styleClass = '';
    this.theme = 'ec';
    this.variant = 'vertical';
  }
  getClass() {
    return [
      `ecl-description-list`,
      `ecl-description-list--${this.variant}`,
      this.styleClass
    ].join(' ');
  }
  render() {
    return (h("dl", { class: this.getClass() }, h("slot", null)));
  }
  static get assetsDirs() { return ["build"]; }
};
EclDescriptionList.style = {
  ec: eclDescriptionListEcCss,
  eu: eclDescriptionListEuCss
};

const EclDescriptionListDefinition = class {
  constructor(hostRef) {
    registerInstance(this, hostRef);
    this.getMarkup = (itemsArray) => {
      if (this.type === 'link' && itemsArray) {
        return itemsArray.map((link) => (h("ecl-link", { "style-class": `ecl-description-list__definition-item sc-ecl-description-list-${this.theme}`, path: link.path }, link.icon ?
          h("ecl-icon", { slot: "icon-before", icon: link.icon })
          : '', link.label)));
      }
      else if (this.type === 'link' && !itemsArray) {
        return h("slot", null);
      }
      if (this.type === 'inline' && itemsArray) {
        return itemsArray.map((inline) => (h("ecl-link", { "style-class": `ecl-description-list__definition-item sc-ecl-description-list-${this.theme}`, path: inline.path }, inline.label)));
      }
      else if (this.type === 'inline' && !itemsArray) {
        return h("slot", null);
      }
      if (this.type === 'taxonomy' && itemsArray) {
        return itemsArray.map((taxonomy) => (h("span", { class: `ecl-description-list__definition-item sc-ecl-description-list-${this.theme}` }, taxonomy.path ?
          h("ecl-link", { path: taxonomy.path }, taxonomy.label) : taxonomy)));
      }
      else if (this.type === 'taxonomy' && !itemsArray) {
        return h("slot", null);
      }
      if (this.type === 'text') {
        return h("slot", null);
      }
    };
    this.type = 'text';
    this.styleClass = '';
    this.theme = 'ec';
    this.items = undefined;
  }
  getClass() {
    return [
      `ecl-description-list__definition`,
      `sc-ecl-description-list-${this.theme}`,
      `ecl-description-list__definition--${this.type}`,
      this.styleClass
    ].join(' ');
  }
  render() {
    const itemsArray = this.items ? JSON.parse(this.items) : false;
    return (h("dd", { class: this.getClass() }, this.getMarkup(itemsArray)));
  }
};

const EclDescriptionListTerm = class {
  constructor(hostRef) {
    registerInstance(this, hostRef);
    this.styleClass = '';
    this.theme = 'ec';
  }
  getClass() {
    return [
      `ecl-description-list__term`,
      `sc-ecl-description-list-${this.theme}`,
      this.styleClass
    ].join(' ');
  }
  render() {
    return (h("dt", { class: this.getClass() }, h("slot", null)));
  }
};

const eclLabelEcCss = ".ecl-label.sc-ecl-label-ec{border-radius:0;color:#404040;display:inline-block;font:normal normal 400 0.875rem/1rem arial, sans-serif;margin:0;text-transform:uppercase}.ecl-label--low.sc-ecl-label-ec{background-color:#f5f5f5;border:1px solid #cfcfcf;padding:calc(\n      0.5rem - 1px\n    ) calc(0.75rem - 1px)}.ecl-label--medium.sc-ecl-label-ec{background-color:#fff4bb;border:0px solid transparent;padding:calc(\n      0.5rem - 0px\n    ) calc(0.75rem - 0px)}.ecl-label--high.sc-ecl-label-ec{background-color:#ffd617;border:0px solid transparent;padding:calc(\n      0.5rem - 0px\n    ) calc(0.75rem - 0px)}.ecl-label--highlight.sc-ecl-label-ec{background-color:#004494;border:0px solid transparent;color:#fff;padding:calc(\n      0.5rem - 0px\n    ) calc(\n      0.75rem - 0px\n    )}";

const eclLabelEuCss = ".ecl-label.sc-ecl-label-eu{border-radius:4px;color:#171a22;display:inline-block;font:normal normal 400 0.875rem/1rem arial, sans-serif;margin:0;text-transform:uppercase}.ecl-label--low.sc-ecl-label-eu{background-color:#e7edfa;border:0px solid transparent;padding:calc(\n      0.5rem - 0px\n    ) calc(0.75rem - 0px)}.ecl-label--medium.sc-ecl-label-eu{background-color:#fffae6;border:0px solid transparent;padding:calc(\n      0.5rem - 0px\n    ) calc(0.75rem - 0px)}.ecl-label--high.sc-ecl-label-eu{background-color:#fc0;border:0px solid transparent;padding:calc(\n      0.5rem - 0px\n    ) calc(0.75rem - 0px)}.ecl-label--highlight.sc-ecl-label-eu{background-color:#0e47cb;border:0px solid transparent;color:#fff;padding:calc(\n      0.5rem - 0px\n    ) calc(\n      0.75rem - 0px\n    )}";

const EclLabel = class {
  constructor(hostRef) {
    registerInstance(this, hostRef);
    this.styleClass = '';
    this.variant = 'low';
    this.theme = 'ec';
  }
  getClass() {
    return [
      `ecl-label`,
      `ecl-label--${this.variant}`,
      this.styleClass
    ].join(' ');
  }
  render() {
    return (h("span", { class: this.getClass() }, h("slot", null)));
  }
};
EclLabel.style = {
  ec: eclLabelEcCss,
  eu: eclLabelEuCss
};

export { EclDescriptionList as ecl_description_list, EclDescriptionListDefinition as ecl_description_list_definition, EclDescriptionListTerm as ecl_description_list_term, EclLabel as ecl_label };

//# sourceMappingURL=ecl-description-list_4.entry.js.map