{"version":3,"sources":["../../src/app/components/avatar/avatar.ts"],"names":["Avatar","this","size","shape","prototype","containerClass","p-avatar p-component","p-avatar-image","image","p-avatar-circle","p-avatar-lg","p-avatar-xl","Component","args","selector","template","changeDetection","ChangeDetectionStrategy","OnPush","encapsulation","ViewEncapsulation","None","Input","NgModule","imports","CommonModule","exports","declarations"],"mappings":"kaAGA,SAAAA,IAsBaC,KAAAC,KAAe,SAEfD,KAAAE,MAAgB,gBAMzBH,EAAAI,UAAAC,eAAA,WACI,MAAO,CACHC,wBAAwB,EACxBC,iBAAgC,MAAdN,KAAKO,MACvBC,kBAAkC,WAAfR,KAAKE,MACxBO,cAA6B,UAAdT,KAAKC,KACpBS,cAA6B,WAAdV,KAAKC,gCApC/BU,EAAAA,UAASC,KAAA,CAAC,CACPC,SAAU,WACVC,SAAU,ydAQVC,gBAAiBC,EAAAA,wBAAwBC,OACzCC,cAAeC,EAAAA,kBAAkBC,iVAKhCC,EAAAA,oBAEAA,EAAAA,qBAEAA,EAAAA,oBAEAA,EAAAA,qBAEAA,EAAAA,qBAEAA,EAAAA,0BAEAA,EAAAA,eAkBL,iCALCC,EAAAA,SAAQV,KAAA,CAAC,CACNW,QAAS,CAACC,EAAAA,cACVC,QAAS,CAAC1B,GACV2B,aAAc,CAAC3B","sourcesContent":["import { NgModule, Component, ChangeDetectionStrategy, ViewEncapsulation, Input } from '@angular/core';\nimport { CommonModule } from '@angular/common';\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})\nexport class Avatar {\n\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 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\n@NgModule({\n imports: [CommonModule],\n exports: [Avatar],\n declarations: [Avatar]\n})\nexport class AvatarModule { }\n"]}