// #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 { Attribute } from '../../../Decorators/AttributeDecorator';
import { Component } from '../../../Decorators/ComponentDecorator';
import { Property } from '../../../Decorators/PropertyDecorator';
import { CustomElement } from '../../Abstracts/CustomElement';
import { footerElementTemplate } from './FooterElementTemplate';
import { footerElementJoyStyle } from './Themes/FooterElement.Joy';
import { footerElementRetroStyle } from './Themes/FooterElement.Retro';
import { footerElementCosmopolitanStyle } from './Themes/FooterElement.Cosmopolitan';
import { Themeable } from '../../../Behaviors/Themeable';
// #endregion
/**
 * The `{@link FooterElement}` element.
 *
 * @slot top - The top slot of the footer.
 * @slot start - The start slot of the footer.
 * @slot end - The end slot of the footer.
 * @slot bottom - The bottom slot of the footer.
 * @slot brand - The brand slot of the footer.
 * @slot copyright - The copyright slot of the footer.
 *
 * @public
 */
let FooterElement = class FooterElement extends Themeable(CustomElement) {
    // #region Fields
    _copyright;
    _breakpoint;
    _brand;
    // #endregion
    // #region Ctor
    /**
     * @public
     */
    constructor() {
        super();
        this._brand = '';
        this._copyright = `Copyright © ${new Date().getFullYear()} ${this._brand}`;
        this._breakpoint = '';
    }
    // #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';
    }
    /**
     * Gets or sets the `brand` property.
     *
     * @public
     */
    get brand() {
        return this._brand;
    }
    set brand(value) {
        if (this._brand !== value) {
            this._brand = value;
            this.requestUpdate('brand');
        }
    }
    /**
     * Gets or sets the `copyright` property.
     *
     * @public
     */
    get copyright() {
        return this._copyright;
    }
    set copyright(value) {
        if (this._copyright !== value) {
            this._copyright = value;
            this.requestUpdate('copyright');
        }
    }
    /**
     * Gets or sets the `breakpoint` property.
     *
     * @public
     * @attr
     */
    get breakpoint() {
        return this._breakpoint;
    }
    set breakpoint(value) {
        if (this._breakpoint !== value) {
            this._breakpoint = value;
            this.requestUpdate('breakpoint');
        }
    }
};
__decorate([
    Property({ type: String }),
    __metadata("design:type", String),
    __metadata("design:paramtypes", [String])
], FooterElement.prototype, "brand", null);
__decorate([
    Property({ type: String }),
    __metadata("design:type", String),
    __metadata("design:paramtypes", [String])
], FooterElement.prototype, "copyright", null);
__decorate([
    Attribute({ type: String }),
    __metadata("design:type", String),
    __metadata("design:paramtypes", [String])
], FooterElement.prototype, "breakpoint", null);
FooterElement = __decorate([
    Component({
        selector: 'mosaik-footer',
        template: footerElementTemplate,
        themes: {
            joy: footerElementJoyStyle,
            retro: footerElementRetroStyle,
            cosmopolitan: footerElementCosmopolitanStyle
        },
        imports: []
    }),
    __metadata("design:paramtypes", [])
], FooterElement);
export { FooterElement };
//# sourceMappingURL=FooterElement.js.map