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: '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" }));
    }
    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"
            }
        };
    }
}
