'use strict';

var index = require('./index-BUvWX8u2.js');

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

const PdsImage = class {
    constructor(hostRef) {
        index.registerInstance(this, hostRef);
        /**
         * The image's alt tag. If none is provided,
         * it will default to an empty string, which is desired for
         * decorative images.
         * @defaultValue ''
         */
        this.alt = '';
        /**
         * Indicates how the browser should load the image.
         * @defaultValue eager
         */
        this.loading = 'eager';
    }
    render() {
        return (index.h(index.Host, { key: 'fa205f03d5c378d27a66cbfd520ae2bc7ab9e9df', class: {
                'pds-image': true,
            }, id: this.componentId }, index.h("img", { key: '8d03dddf6e924ef8aebea2bf34a32e326bee329a', alt: this.alt, height: this.height, loading: this.loading, sizes: this.sizes, src: this.src, srcset: this.srcset, width: this.width })));
    }
};
PdsImage.style = pdsImageCss;

exports.pds_image = PdsImage;
//# sourceMappingURL=pds-image.entry.cjs.js.map
