import { ChangeDetectionStrategy, Component, HostBinding, Input } from '@angular/core';
import * as i0 from "@angular/core";
import * as i1 from "@angular/common";
export class NbChatAvatarComponent {
    constructor() {
        this.avatarClass = true;
    }
    static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.3", ngImport: i0, type: NbChatAvatarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
    static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.3", type: NbChatAvatarComponent, selector: "nb-chat-avatar", inputs: { initials: "initials", avatarStyle: "avatarStyle" }, host: { properties: { "style.background-image": "this.avatarStyle", "class.avatar": "this.avatarClass" } }, ngImport: i0, template: `
    <ng-container *ngIf="!avatarStyle">
      {{ initials }}
    </ng-container>
  `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.3", ngImport: i0, type: NbChatAvatarComponent, decorators: [{
            type: Component,
            args: [{
                    selector: 'nb-chat-avatar',
                    template: `
    <ng-container *ngIf="!avatarStyle">
      {{ initials }}
    </ng-container>
  `,
                    changeDetection: ChangeDetectionStrategy.OnPush,
                }]
        }], propDecorators: { initials: [{
                type: Input
            }], avatarStyle: [{
                type: Input
            }, {
                type: HostBinding,
                args: ['style.background-image']
            }], avatarClass: [{
                type: HostBinding,
                args: ['class.avatar']
            }] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hhdC1hdmF0YXIuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vc3JjL2ZyYW1ld29yay90aGVtZS9jb21wb25lbnRzL2NoYXQvY2hhdC1hdmF0YXIuY29tcG9uZW50LnRzIl0sIm5hbWVzIj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