// Stencil
import { h } from "@stencil/core";
export class LargeTourSnap {
    constructor() {
        // Props
        this.showImage = false;
        this.image = '';
        this.tourTitle = null;
        this.categories = [];
        this.overlay = 20;
        this.duration = 0; // in hour
    }
    ////////////////////////////////////////////////////////////////
    // User Interactions
    ////////////////////////////////////////////////////////////////
    /**
     * Click on the card
     */
    onClick() {
        this.dosClick.emit();
    }
    ////////////////////////////////////////////////////////////////
    // Render
    ////////////////////////////////////////////////////////////////
    render() {
        return (h("div", { class: "tour-snap-container ion-activatable" },
            h("div", { class: 'tour-snap-subcontainer', style: {
                    backgroundImage: this.showImage ? 'url(' + this.image + ')' : '',
                    backgroundColor: 'rgba(0,0,0,' + this.overlay / 100 + ')'
                }, onClick: () => this.onClick() },
                h("div", { class: "tour-snap-header" },
                    h("span", { class: "tour-duration" },
                        h("ion-icon", { name: "walk", color: "light" }),
                        h("p", null,
                            this.duration,
                            "h")),
                    h("div", { class: 'category-container' }, this.categories.map(category => h("p", { class: 'category-text' },
                        "# ",
                        category)))),
                h("div", { class: 'tour-title-container' },
                    h("h3", { class: 'tour-title' }, this.tourTitle))),
            h("ion-ripple-effect", null)));
    }
    static get is() { return "large-tour-snap"; }
    static get originalStyleUrls() { return {
        "$": ["large-tour-snap.scss"]
    }; }
    static get styleUrls() { return {
        "$": ["large-tour-snap.css"]
    }; }
    static get properties() { return {
        "showImage": {
            "type": "boolean",
            "mutable": true,
            "complexType": {
                "original": "boolean",
                "resolved": "boolean",
                "references": {}
            },
            "required": false,
            "optional": false,
            "docs": {
                "tags": [],
                "text": ""
            },
            "attribute": "show-image",
            "reflect": false,
            "defaultValue": "false"
        },
        "image": {
            "type": "string",
            "mutable": true,
            "complexType": {
                "original": "string",
                "resolved": "string",
                "references": {}
            },
            "required": false,
            "optional": false,
            "docs": {
                "tags": [],
                "text": ""
            },
            "attribute": "image",
            "reflect": false,
            "defaultValue": "''"
        },
        "tourTitle": {
            "type": "string",
            "mutable": false,
            "complexType": {
                "original": "string",
                "resolved": "string",
                "references": {}
            },
            "required": false,
            "optional": false,
            "docs": {
                "tags": [],
                "text": ""
            },
            "attribute": "tour-title",
            "reflect": false,
            "defaultValue": "null"
        },
        "categories": {
            "type": "unknown",
            "mutable": false,
            "complexType": {
                "original": "string[]",
                "resolved": "string[]",
                "references": {}
            },
            "required": false,
            "optional": false,
            "docs": {
                "tags": [],
                "text": ""
            },
            "defaultValue": "[]"
        },
        "overlay": {
            "type": "number",
            "mutable": false,
            "complexType": {
                "original": "number",
                "resolved": "number",
                "references": {}
            },
            "required": false,
            "optional": false,
            "docs": {
                "tags": [],
                "text": ""
            },
            "attribute": "overlay",
            "reflect": false,
            "defaultValue": "20"
        },
        "duration": {
            "type": "number",
            "mutable": false,
            "complexType": {
                "original": "number",
                "resolved": "number",
                "references": {}
            },
            "required": false,
            "optional": false,
            "docs": {
                "tags": [],
                "text": ""
            },
            "attribute": "duration",
            "reflect": false,
            "defaultValue": "0"
        }
    }; }
    static get events() { return [{
            "method": "dosClick",
            "name": "dosClick",
            "bubbles": true,
            "cancelable": true,
            "composed": true,
            "docs": {
                "tags": [],
                "text": ""
            },
            "complexType": {
                "original": "void",
                "resolved": "void",
                "references": {}
            }
        }]; }
}
