import { Host, h } from "@stencil/core";
import { cls } from "../../utils/helpers";
export class XGalleryImage {
    constructor() {
        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" }));
    }
    static get is() { return "x-gallery-image"; }
    static get properties() {
        return {
            "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"
            }
        };
    }
}
