// see https://codepen.io/tobyj/pen/QjvEex
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);
};
// #region Imports
import { Disableable } from '../../../Behaviors/Disableable';
import { Attribute } from '../../../Decorators/AttributeDecorator';
import { Component } from '../../../Decorators/ComponentDecorator';
import { CustomElement } from '../../Abstracts/CustomElement';
import { lightChainElementTemplate } from './LightChainElementTemplate';
import { lightChainElementJoyStyle } from './Themes/LightChainElement.Joy';
import { lightChainElementRetroStyle } from './Themes/LightChainElement.Retro';
import { lightChainElementCosmopolitanStyle } from './Themes/LightChainElement.Cosmopolitan';
import { Themeable } from '../../../Behaviors/Themeable';
// #endregion
/**
 * The `{@link LightChainElement}` element.
 *
 * @public
 */
let LightChainElement = class LightChainElement extends Themeable(Disableable(CustomElement)) {
    // #region Fields
    _count;
    _state;
    // #endregion
    // #region Ctor
    /**
     * @public
     */
    constructor() {
        super();
        this._count = 56;
        this._state = 'off';
    }
    // #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-light-chain';
    }
    /**
     * Gets or sets the `count` property.
     *
     * @public
     * @attr
     */
    get count() {
        return this._count;
    }
    set count(value) {
        if (this._count !== value) {
            this._count = value;
            this.requestUpdate('count');
        }
    }
    /**
     * Gets or sets the `state` property.
     *
     * @public
     * @attr
     */
    get state() {
        return this._state;
    }
    set state(value) {
        if (this._state !== value) {
            this._state = value;
            this.requestUpdate('state');
        }
    }
};
__decorate([
    Attribute({ type: Number }),
    __metadata("design:type", Number),
    __metadata("design:paramtypes", [Number])
], LightChainElement.prototype, "count", null);
__decorate([
    Attribute({ type: String }),
    __metadata("design:type", String),
    __metadata("design:paramtypes", [String])
], LightChainElement.prototype, "state", null);
LightChainElement = __decorate([
    Component({
        selector: 'mosaik-light-chain',
        template: lightChainElementTemplate,
        themes: {
            joy: lightChainElementJoyStyle,
            retro: lightChainElementRetroStyle,
            cosmopolitan: lightChainElementCosmopolitanStyle
        },
        imports: []
    }),
    __metadata("design:paramtypes", [])
], LightChainElement);
export { LightChainElement };
//# sourceMappingURL=LightChainElement.js.map