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: 'fbf90b22e13b03598dc138c29468c780500711e1', style: { backgroundImage: `url(${this.url})` }, class: cls({ selected: this.selected, loading: this.loading }) }, h("div", { key: '495295caaf1a3b9a2053f30230760159ff007375', class: "actions" }, h("slot", { key: 'de8e21f7417115e61569b10b9a3fac252058e856' })), this.loading && h("div", { key: '271b937ffedf341320f767ca446ce7a60b3abda7', class: "loading-indicator" }), h("span", { key: 'c647e2b6c00dbc5ac811f0a1ecc1f5bd78ca15bb', 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 };
