// #region Imports
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
import { Component } from '../../../Decorators/ComponentDecorator';
import { Property } from '../../../Decorators/PropertyDecorator';
import { CustomElement } from '../../Abstracts/CustomElement';
import { IconElement } from '../../Media/Icon/IconElement';
import { footerItemGroupElementTemplate } from './FooterItemGroupElementTemplate';
import { footerItemGroupElementJoyStyle } from './Themes/FooterItemGroupElement.Joy';
import { footerItemGroupElementRetroStyle } from './Themes/FooterItemGroupElement.Retro';
import { footerItemGroupElementCosmopolitanStyle } from './Themes/FooterItemGroupElement.Cosmopolitan';
import { Themeable } from '../../../Behaviors/Themeable';
// #endregion
/**
 * The `{@link FooterItemGroupElement}` element.
 *
 * @public
 */
let FooterItemGroupElement = class FooterItemGroupElement extends Themeable(CustomElement) {
    // #region Fields
    _header;
    _open;
    // #endregion
    // #region Ctor
    /**
     * @public
     */
    constructor() {
        super();
        this._header = '';
        this._open = false;
    }
    // #endregion
    // #region Properties
    /**
     * Returns the `{@link is}` property.
     * The `{@link is}` property represents natural name of this element.
     *
     * @public
     * @static
     * @readonly
     */
    static get is() {
        return 'mosaik-footer-item-group';
    }
    /**
     * Gets or sets the `header` property.
     *
     * @public
     */
    get header() {
        return this._header;
    }
    set header(value) {
        if (this._header !== value) {
            this._header = value;
            this.requestUpdate('header');
        }
    }
    /**
     * Gets or sets the `open` property.
     *
     * @public
     */
    get open() {
        return this._open;
    }
    set open(value) {
        if (this._open !== value) {
            this._open = value;
            this.requestUpdate('open');
        }
    }
    // #endregion
    // #region Methods
    toggle() {
        this.open = !this.open;
    }
};
__decorate([
    Property({ type: String }),
    __metadata("design:type", String),
    __metadata("design:paramtypes", [String])
], FooterItemGroupElement.prototype, "header", null);
__decorate([
    Property({ type: Boolean }),
    __metadata("design:type", Boolean),
    __metadata("design:paramtypes", [Boolean])
], FooterItemGroupElement.prototype, "open", null);
FooterItemGroupElement = __decorate([
    Component({
        selector: 'mosaik-footer-item-group',
        template: footerItemGroupElementTemplate,
        themes: {
            joy: footerItemGroupElementJoyStyle,
            retro: footerItemGroupElementRetroStyle,
            cosmopolitan: footerItemGroupElementCosmopolitanStyle
        },
        imports: [
            IconElement
        ]
    }),
    __metadata("design:paramtypes", [])
], FooterItemGroupElement);
export { FooterItemGroupElement };
//# sourceMappingURL=FooterItemGroupElement.js.map