import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
import { c as cls } from './helpers.js';

const XGalleryImage = /*@__PURE__*/ proxyCustomElement(class XGalleryImage extends HTMLElement {
    constructor() {
        super();
        this.__registerHost();
        this.uuid = undefined;
        this.url = undefined;
        this.selected = false;
        this.loading = false;
    }
    /**
     * Render element
     */
    render() {
        return h(Host, { key: 'dc759ccd61e1e03041dbedc4549622ac57015817', style: { backgroundImage: `url(${this.url})` }, class: cls({ selected: this.selected, loading: this.loading }) }, h("div", { key: 'b1a2dce7e48e6e3e195f8fd5924e96b1ed303078', class: "actions" }, h("slot", { key: 'd5ffd63f5570d610b09c971bbaee2ab18a11c642' })), this.loading && h("div", { key: 'f288c5adcb44049c0224df090922cc5038dfe754', class: "loading-indicator" }), h("span", { key: '2753145b067f6873b48030e1eb91d3ad7cdba36e', class: "checkmark" }));
    }
}, [4, "x-gallery-image", {
        "uuid": [1],
        "url": [1],
        "selected": [4],
        "loading": [4]
    }]);
function defineCustomElement() {
    if (typeof customElements === "undefined") {
        return;
    }
    const components = ["x-gallery-image"];
    components.forEach(tagName => { switch (tagName) {
        case "x-gallery-image":
            if (!customElements.get(tagName)) {
                customElements.define(tagName, XGalleryImage);
            }
            break;
    } });
}

export { XGalleryImage as X, defineCustomElement as d };
