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.url = undefined;
        this.selected = false;
        this.loading = false;
    }
    /**
     * Render element
     */
    render() {
        return h(Host, { key: '2eddd3311149b07102ff3880007f963353fc133b', style: { backgroundImage: `url(${this.url})` }, class: cls({ selected: this.selected, loading: this.loading }) }, h("div", { key: 'c09b46cb1a2aa433c9b8bc0678eaabcd7946b295', class: "actions" }, h("slot", { key: 'ee4f70eb2c58e5a1508b584c1257271eabd23227' })), this.loading && h("div", { key: '601e3395fab1c199e830e436cfd373d7abb94a0b', class: "loading-indicator" }), h("span", { key: '1bfa71c6d132f7da106f8be1f22753733e1ed52c', class: "checkmark" }));
    }
}, [4, "x-gallery-image", {
        "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 };
