import{p as i,H as t,h as s,t as e}from"./p-BHHBMN0G.js";import{d as l}from"./p-C1DHlsEo.js";import{d as c}from"./p-Bmv0DoO8.js";import{d as n}from"./p-CvotSt5y.js";import{d as o}from"./p-3qNI36ps.js";const a=i(class extends t{constructor(i){super(),!1!==i&&this.__registerHost(),this.type="text",this.styleClass="",this.collapsible=!1,this.getMarkup=i=>"link"===this.type&&i?i.map((i=>s("li",{class:`ecl-description-list__definition-item sc-ecl-description-list-${this.theme}`},s("ecl-link",{theme:this.theme,styleClass:`sc-ecl-description-list-${this.theme}`,path:i.path},i.label)))):"link"!==this.type||i?"inline"===this.type&&i?i.map((i=>s("li",{class:`ecl-description-list__definition-item sc-ecl-description-list-${this.theme}`},s("ecl-link",{styleClass:`sc-ecl-description-list-${this.theme}`,path:i.path,theme:this.theme},i.label)))):"inline"!==this.type||i?"taxonomy"===this.type&&i?i.map((i=>s("li",{class:`ecl-description-list__definition-item sc-ecl-description-list-${this.theme}`},i.path?s("ecl-link",{theme:this.theme,path:i.path},i.label):i))):"taxonomy"!==this.type||i?"tag"===this.type&&i?i.map((i=>s("li",{class:`ecl-description-list__definition-item sc-ecl-description-list-${this.theme}`},s("ecl-tag",{variant:"link",url:i.url}," ",i.label)))):"tag"!==this.type||i?"text"===this.type?s("slot",null):void 0:s("slot",null):s("slot",null):s("slot",null):s("slot",null)}getClass(){return["ecl-description-list__definition",`sc-ecl-description-list-${this.theme}`,`ecl-description-list__definition--${this.type}`,this.styleClass].join(" ")}componentWillLoad(){var i;this.theme=null!==(i=document.documentElement.getAttribute("data-ecl-theme"))&&void 0!==i?i:this.theme||"ec"}render(){const i=!!this.items&&JSON.parse(this.items);return s("dd",{key:"efb399271f7f92ec08334aa7bfa7d8614c45d51e",class:this.getClass()},s("ul",Object.assign({key:"4b148a12be780264c66bc7e498b987ab7c47c857",class:`ecl-description-list__definition-list sc-ecl-description-list-${this.theme}`},this.collapsible?{"data-ecl-description-list-collapsible":!0}:{}),this.getMarkup(i)))}},[260,"ecl-description-list-definition",{type:[1],styleClass:[1,"style-class"],theme:[1025],items:[1],collapsible:[4]}]);function d(){"undefined"!=typeof customElements&&["ecl-description-list-definition","ecl-icon","ecl-indicator","ecl-link","ecl-tag"].forEach((i=>{switch(i){case"ecl-description-list-definition":customElements.get(e(i))||customElements.define(e(i),a);break;case"ecl-icon":customElements.get(e(i))||l();break;case"ecl-indicator":customElements.get(e(i))||c();break;case"ecl-link":customElements.get(e(i))||n();break;case"ecl-tag":customElements.get(e(i))||o()}}))}export{a as E,d}