(function (global, factory) {
    typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@angular/core')) :
    typeof define === 'function' && define.amd ? define('@ng-tangram/components/avatar', ['exports', '@angular/common', '@angular/core'], factory) :
    (global = global || self, factory((global.nt = global.nt || {}, global.nt.components = global.nt.components || {}, global.nt.components.avatar = {}), global.ng.common, global.ng.core));
}(this, (function (exports, common, core) { 'use strict';

    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([
            core.Input()
        ], NtAvatarComponent.prototype, "class", void 0);
        __decorate([
            core.Input()
        ], NtAvatarComponent.prototype, "size", void 0);
        __decorate([
            core.Input()
        ], NtAvatarComponent.prototype, "shape", null);
        __decorate([
            core.Input()
        ], NtAvatarComponent.prototype, "src", void 0);
        __decorate([
            core.Input()
        ], NtAvatarComponent.prototype, "alt", void 0);
        NtAvatarComponent = __decorate([
            core.Component({
                selector: 'nt-avatar',
                template: '<img [src]="src" [alt]="alt">',
                encapsulation: core.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([
            core.NgModule({
                imports: [common.CommonModule],
                declarations: [NtAvatarComponent],
                exports: [NtAvatarComponent]
            })
        ], NtAvatarModule);
        return NtAvatarModule;
    }());

    exports.NtAvatarComponent = NtAvatarComponent;
    exports.NtAvatarModule = NtAvatarModule;

    Object.defineProperty(exports, '__esModule', { value: true });

})));
//# sourceMappingURL=avatar.umd.js.map
