import { p as proxyCustomElement, H, h, d as Host } from './p-a53686b3.js';
import { T as TagMediaIcon } from './p-820e795b.js';
import { d as defineCustomElement$6 } from './p-85197207.js';
import { d as defineCustomElement$5 } from './p-73101c41.js';
import { d as defineCustomElement$4 } from './p-73796afb.js';
import { d as defineCustomElement$3 } from './p-8bc620b1.js';
import { d as defineCustomElement$2 } from './p-12ec96fa.js';
import { d as defineCustomElement$1 } from './p-6db48210.js';

const tagMediaCss = ".sc-digi-tag-media-h{--digi--tag-media--background-color:var(--digi--color--background--sentiment--neutral--tertiary);--digi--tag-media--color--icon:var(--digi--color--icon--secondary);--digi--tag-media--width--icon:var(--digi--typography--body--font-size--desktop-large);--digi--tag-media--color--text:var(--digi--color--text--secondary);--digi--tag-media--text--font-weight:var(--digi--typography--description--font-weight--desktop);--digi--tag-media--text--font-size:var(--digi--typography--tag--font-size--desktop);--digi--tag-media--border-radius:var(--digi--global--border-radius--base);--digi--tag-media--padding:0 var(--digi--gutter--small);--digi--tag-media--margin:var(--digi--gutter--small);--digi--tag-media--height:1.875rem}.sc-digi-tag-media-h .digi-tag-media.sc-digi-tag-media{display:inline-flex;align-items:center;background-color:var(--digi--tag-media--background-color);border-radius:var(--digi--tag-media--border-radius);padding:var(--digi--tag-media--padding);height:var(--digi--tag-media--height)}.sc-digi-tag-media-h .digi-tag-media__icon.sc-digi-tag-media{--digi--icon--color:var(--digi--tag-media--color--icon);margin-right:var(--digi--tag-media--margin)}.sc-digi-tag-media-h .digi-tag-media__text.sc-digi-tag-media{font-family:var(--digi--global--typography--font-family--default);font-size:var(--digi--tag-media--text--font-size);font-weight:var(--digi--tag-media--text--font-weight);color:var(--digi--tag-media--color--text)}.sc-digi-tag-media-h .digi-tag-media.sc-digi-tag-media digi-icon-online-computervideo.sc-digi-tag-media,.sc-digi-tag-media-h .digi-tag-media.sc-digi-tag-media digi-icon-pod.sc-digi-tag-media,.sc-digi-tag-media-h .digi-tag-media.sc-digi-tag-media digi-icon-news.sc-digi-tag-media,.sc-digi-tag-media-h .digi-tag-media.sc-digi-tag-media digi-icon-webinar.sc-digi-tag-media{--digi--icon--width:20px}.sc-digi-tag-media-h .digi-tag-media.sc-digi-tag-media digi-icon-online-video.sc-digi-tag-media{--digi--icon--width:19px}.sc-digi-tag-media-h .digi-tag-media.sc-digi-tag-media digi-icon-list-ul.sc-digi-tag-media{--digi--icon--width:16px}";
const DigiTagMediaStyle0 = tagMediaCss;

const TagMedia = /*@__PURE__*/ proxyCustomElement(class TagMedia extends H {
    constructor() {
        super();
        this.__registerHost();
        this.afText = undefined;
        this.afIcon = TagMediaIcon.NEWS;
    }
    get tagIcon() {
        if (this.afIcon === TagMediaIcon.NEWS) {
            return h("digi-icon-news", { class: "digi-tag-media__icon" });
        }
        if (this.afIcon === TagMediaIcon.PLAYLIST) {
            return (h("digi-icon-list-ul", { class: "digi-tag-media__icon" }));
        }
        if (this.afIcon === TagMediaIcon.PODCAST) {
            return h("digi-icon-pod", { class: "digi-tag-media__icon" });
        }
        if (this.afIcon === TagMediaIcon.FILM) {
            return (h("digi-icon-online-video", { class: "digi-tag-media__icon" }));
        }
        if (this.afIcon === TagMediaIcon.WEBTV) {
            return (h("digi-icon-online-computervideo", { class: "digi-tag-media__icon" }));
        }
        if (this.afIcon === TagMediaIcon.WEBINAR) {
            return (h("digi-icon-webinar", { class: "digi-tag-media__icon" }));
        }
        return h("digi-icon-news", { class: "digi-tag-media__icon" });
    }
    render() {
        return (h(Host, { key: '2b1b0e8155f24a242c3a23489a12b6df92879cb2' }, h("div", { key: '1ce30677ca3a5e6d923c06776262773eefa1d7a9', class: {
                'digi-tag-media': true
            } }, this.tagIcon, h("span", { key: 'd67de1beeba5532df63ef59b5aad80728a10f27c', class: "digi-tag-media__text" }, this.afText))));
    }
    get hostElement() { return this; }
    static get style() { return DigiTagMediaStyle0; }
}, [2, "digi-tag-media", {
        "afText": [1, "af-text"],
        "afIcon": [1, "af-icon"]
    }]);
function defineCustomElement() {
    if (typeof customElements === "undefined") {
        return;
    }
    const components = ["digi-tag-media", "digi-icon-list-ul", "digi-icon-news", "digi-icon-online-computervideo", "digi-icon-online-video", "digi-icon-pod", "digi-icon-webinar"];
    components.forEach(tagName => { switch (tagName) {
        case "digi-tag-media":
            if (!customElements.get(tagName)) {
                customElements.define(tagName, TagMedia);
            }
            break;
        case "digi-icon-list-ul":
            if (!customElements.get(tagName)) {
                defineCustomElement$6();
            }
            break;
        case "digi-icon-news":
            if (!customElements.get(tagName)) {
                defineCustomElement$5();
            }
            break;
        case "digi-icon-online-computervideo":
            if (!customElements.get(tagName)) {
                defineCustomElement$4();
            }
            break;
        case "digi-icon-online-video":
            if (!customElements.get(tagName)) {
                defineCustomElement$3();
            }
            break;
        case "digi-icon-pod":
            if (!customElements.get(tagName)) {
                defineCustomElement$2();
            }
            break;
        case "digi-icon-webinar":
            if (!customElements.get(tagName)) {
                defineCustomElement$1();
            }
            break;
    } });
}

export { TagMedia as T, defineCustomElement as d };
