import { h } from "@stencil/core";
export class DgaNavHeaderMain {
    constructor() {
        this.collapsed = false;
        this.handleToggle = () => {
            this.toggleCollapsed.emit(!this.collapsed);
        };
    }
    render() {
        return (h("div", { key: 'aa3782138401de094b45222a48168b94871dfdda', class: "header-nav__main" }, h("button", { key: '0a201a855682cc4545bdc8ad97111b42d6685f11', type: "button", onClick: this.handleToggle, class: "header-menu__btn" }, h("span", { key: '75061c26af6527c02bfbc0e9498a28a27c538b1d', class: "btn-icon header-menu__btn-icon" }, h("dga-icon", { key: '8f6ae11a9d54ea6ccc7f4b3b7e04a243a8d5888e', icon: this.collapsed ? 'menu01' : 'cancel01' }))), h("slot", { key: '893cc7b8ed6337a11e6b23196bc90967563e5e40' })));
    }
    static get is() { return "dga-nav-header-main"; }
    static get properties() {
        return {
            "collapsed": {
                "type": "boolean",
                "mutable": false,
                "complexType": {
                    "original": "boolean",
                    "resolved": "boolean",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "getter": false,
                "setter": false,
                "attribute": "collapsed",
                "reflect": false,
                "defaultValue": "false"
            }
        };
    }
    static get events() {
        return [{
                "method": "toggleCollapsed",
                "name": "toggleCollapsed",
                "bubbles": true,
                "cancelable": true,
                "composed": true,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "complexType": {
                    "original": "boolean",
                    "resolved": "boolean",
                    "references": {}
                }
            }];
    }
}
//# sourceMappingURL=dga-nav-header-main.js.map
