{"version":3,"file":"primeng-avatar.mjs","sources":["../../src/app/components/avatar/avatar.ts","../../src/app/components/avatar/primeng-avatar.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport { AfterViewInit, ChangeDetectionStrategy, Component, EventEmitter, Input, NgModule, Output, ViewEncapsulation } from '@angular/core';\nimport { LicenseManager } from 'primeng/api';\n\n@Component({\n selector: 'p-avatar',\n template: `\n
\n \n {{ label }}\n \n \n
\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n styleUrls: ['./avatar.css'],\n host: {\n class: 'p-element'\n }\n})\nexport class Avatar implements AfterViewInit {\n @Input() label: string;\n\n @Input() icon: string;\n\n @Input() image: string;\n\n @Input() size: string = 'normal';\n\n @Input() shape: string = 'square';\n\n @Input() style: any;\n\n @Input() styleClass: string;\n\n @Output() onImageError: EventEmitter = new EventEmitter();\n\n ngAfterViewInit() {\n LicenseManager.check();\n }\n\n containerClass() {\n return {\n 'p-avatar p-component': true,\n 'p-avatar-image': this.image != null,\n 'p-avatar-circle': this.shape === 'circle',\n 'p-avatar-lg': this.size === 'large',\n 'p-avatar-xl': this.size === 'xlarge'\n };\n }\n\n imageError(event) {\n this.onImageError.emit(event);\n }\n}\n\n@NgModule({\n imports: [CommonModule],\n exports: [Avatar],\n declarations: [Avatar]\n})\nexport class AvatarModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;MAqBa,MAAM,CAAA;AAjBnB,IAAA,WAAA,GAAA;AAwBa,QAAA,IAAI,CAAA,IAAA,GAAW,QAAQ,CAAC;AAExB,QAAA,IAAK,CAAA,KAAA,GAAW,QAAQ,CAAC;AAMxB,QAAA,IAAA,CAAA,YAAY,GAAsB,IAAI,YAAY,EAAE,CAAC;KAmBlE;IAjBG,eAAe,GAAA;QACX,cAAc,CAAC,KAAK,EAAE,CAAC;KAC1B;IAED,cAAc,GAAA;QACV,OAAO;AACH,YAAA,sBA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