import { CommonModule } from '@angular/common';
import { Input, Component, ViewEncapsulation, NgModule } from '@angular/core';

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 NtAvatarComponent = (function () {
    function NtAvatarComponent() {
        this.class = '';
        this.size = '';
        this._shape = 'square';
        this.src = '';
        this.alt = '';
    }
    Object.defineProperty(NtAvatarComponent.prototype, "shape", {
        get: function () { return this._shape; },
        set: function (value) {
            value === 'circle' && (this._shape = value);
        },
        enumerable: true,
        configurable: true
    });
    __decorate([
        Input()
    ], NtAvatarComponent.prototype, "class", void 0);
    __decorate([
        Input()
    ], NtAvatarComponent.prototype, "size", void 0);
    __decorate([
        Input()
    ], NtAvatarComponent.prototype, "shape", null);
    __decorate([
        Input()
    ], NtAvatarComponent.prototype, "src", void 0);
    __decorate([
        Input()
    ], NtAvatarComponent.prototype, "alt", void 0);
    NtAvatarComponent = __decorate([
        Component({
            selector: 'nt-avatar',
            template: '<img [src]="src" [alt]="alt">',
            encapsulation: ViewEncapsulation.None,
            host: {
                '[class]': '["nt-avatar", size, shape, class].join(" ")',
                '[class.nt-avatar-circle]': 'shape == "circle"',
            }
        })
    ], NtAvatarComponent);
    return NtAvatarComponent;
}());

var __decorate$1 = (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 NtAvatarModule = (function () {
    function NtAvatarModule() {
    }
    NtAvatarModule = __decorate$1([
        NgModule({
            imports: [CommonModule],
            declarations: [NtAvatarComponent],
            exports: [NtAvatarComponent]
        })
    ], NtAvatarModule);
    return NtAvatarModule;
}());

export { NtAvatarComponent, NtAvatarModule };
//# sourceMappingURL=avatar.js.map
