import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';

const pdsImageCss = ":host{--dimension-aspect-ratio:auto;display:inline-block}img{aspect-ratio:var(--dimension-aspect-ratio);height:auto;width:100%}";
const PdsImageStyle0 = pdsImageCss;

const PdsImage$1 = /*@__PURE__*/ proxyCustomElement(class PdsImage extends HTMLElement {
    constructor() {
        super();
        this.__registerHost();
        this.__attachShadow();
        this.alt = '';
        this.componentId = undefined;
        this.height = undefined;
        this.loading = 'eager';
        this.sizes = undefined;
        this.src = undefined;
        this.srcset = undefined;
        this.width = undefined;
    }
    render() {
        return (h(Host, { key: '8d97b63e1c5b0eb72117d6378a0b6d869c0dbdea', class: {
                'pds-image': true,
            }, id: this.componentId }, h("img", { key: '3cc2d1c185244c8e8de2f7258b85194b37a4ff38', alt: this.alt, height: this.height, loading: this.loading, sizes: this.sizes, src: this.src, srcset: this.srcset, width: this.width })));
    }
    static get style() { return PdsImageStyle0; }
}, [1, "pds-image", {
        "alt": [1],
        "componentId": [1, "component-id"],
        "height": [2],
        "loading": [1],
        "sizes": [1],
        "src": [1],
        "srcset": [1],
        "width": [2]
    }]);
function defineCustomElement$1() {
    if (typeof customElements === "undefined") {
        return;
    }
    const components = ["pds-image"];
    components.forEach(tagName => { switch (tagName) {
        case "pds-image":
            if (!customElements.get(tagName)) {
                customElements.define(tagName, PdsImage$1);
            }
            break;
    } });
}

const PdsImage = PdsImage$1;
const defineCustomElement = defineCustomElement$1;

export { PdsImage, defineCustomElement };

//# sourceMappingURL=pds-image.js.map