import { Host, h } from "@stencil/core";
import { cls } from "../../utils/helpers";
export class XGalleryImage {
    constructor() {
        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" }));
    }
    static get is() { return "x-gallery-image"; }
    static get properties() {
        return {
            "uuid": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": "Element unique identifier"
                },
                "attribute": "uuid",
                "reflect": false
            },
            "url": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": "Element URL"
                },
                "attribute": "url",
                "reflect": false
            },
            "selected": {
                "type": "boolean",
                "mutable": false,
                "complexType": {
                    "original": "boolean",
                    "resolved": "boolean",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": "Element is selected"
                },
                "attribute": "selected",
                "reflect": false,
                "defaultValue": "false"
            },
            "loading": {
                "type": "boolean",
                "mutable": false,
                "complexType": {
                    "original": "boolean",
                    "resolved": "boolean",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": "Element is loading"
                },
                "attribute": "loading",
                "reflect": false,
                "defaultValue": "false"
            }
        };
    }
}
