import { Host, h } from "@stencil/core";
import { cls } from "../../utils/helpers";
export class XFlag {
    constructor() {
        this.code = undefined;
        this.circle = false;
        this.rounded = false;
        this.size = '1em';
    }
    /**
     * Render component
     */
    render() {
        return h(Host, { key: '17d63744d502f272ac653ed437edc1324f1e8352', class: cls('flag', `flag-${this.code.toLowerCase()}`, { 'flag-rounded': this.rounded && !this.circle, 'flag-circle': this.circle }), "aria-label": this.code, style: { fontSize: this.size } });
    }
    static get is() { return "x-flag"; }
    static get originalStyleUrls() {
        return {
            "$": ["./style.scss"]
        };
    }
    static get styleUrls() {
        return {
            "$": ["style.css"]
        };
    }
    static get properties() {
        return {
            "code": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "FlagType",
                    "resolved": "string",
                    "references": {
                        "FlagType": {
                            "location": "import",
                            "path": "../../constants/icons",
                            "id": "src/constants/icons.ts::FlagType"
                        }
                    }
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": "Element country code by ISO 3166 Alpha-2"
                },
                "attribute": "code",
                "reflect": false
            },
            "circle": {
                "type": "boolean",
                "mutable": false,
                "complexType": {
                    "original": "boolean",
                    "resolved": "boolean",
                    "references": {}
                },
                "required": false,
                "optional": true,
                "docs": {
                    "tags": [],
                    "text": "Element circle style"
                },
                "attribute": "circle",
                "reflect": false,
                "defaultValue": "false"
            },
            "rounded": {
                "type": "boolean",
                "mutable": false,
                "complexType": {
                    "original": "boolean",
                    "resolved": "boolean",
                    "references": {}
                },
                "required": false,
                "optional": true,
                "docs": {
                    "tags": [],
                    "text": "Element rounded style"
                },
                "attribute": "rounded",
                "reflect": false,
                "defaultValue": "false"
            },
            "size": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": true,
                "docs": {
                    "tags": [],
                    "text": "Element font size"
                },
                "attribute": "size",
                "reflect": false,
                "defaultValue": "'1em'"
            }
        };
    }
}
