import { h } from '@stencil/core';
export class TabContent {
    constructor() {
        this.isSelected = false;
    }
    async getChild() {
        return {
            select: this.select.bind(this),
            unselect: this.unselect.bind(this),
            name: this.name
        };
    }
    unselect() {
        this.isSelected = false;
    }
    select() {
        this.isSelected = true;
    }
    render() {
        const classes = {
            'ema-tab-content': true,
            'ema-tab-content-selected': this.isSelected
        };
        return (h("div", { class: classes },
            h("slot", null)));
    }
    static get is() { return "ema-tab-content"; }
    static get originalStyleUrls() { return {
        "$": ["tab-content.scss"]
    }; }
    static get styleUrls() { return {
        "$": ["tab-content.css"]
    }; }
    static get properties() { return {
        "name": {
            "type": "string",
            "mutable": false,
            "complexType": {
                "original": "string",
                "resolved": "string",
                "references": {}
            },
            "required": false,
            "optional": false,
            "docs": {
                "tags": [],
                "text": ""
            },
            "attribute": "name",
            "reflect": false
        }
    }; }
    static get states() { return {
        "isSelected": {}
    }; }
    static get methods() { return {
        "getChild": {
            "complexType": {
                "signature": "() => Promise<{ select: any; unselect: any; name: string; }>",
                "parameters": [],
                "references": {
                    "Promise": {
                        "location": "global"
                    }
                },
                "return": "Promise<{ select: any; unselect: any; name: string; }>"
            },
            "docs": {
                "text": "",
                "tags": []
            }
        }
    }; }
}
