{"version":3,"sources":["../../src/app/components/message/message.ts"],"names":["UIMessage","this","escape","Object","defineProperty","prototype","icon","severity","Component","args","selector","template","changeDetection","ChangeDetectionStrategy","OnPush","encapsulation","ViewEncapsulation","None","Input","NgModule","imports","CommonModule","exports","declarations"],"mappings":"oaAGA,SAAAA,IA4BaC,KAAAC,QAAkB,SAM3BC,OAAAC,eAAIJ,EAAAK,UAAA,OAAI,KAAR,WACI,IAAIC,EAAe,KAEnB,GAAIL,KAAKM,SACL,OAAON,KAAKM,UACR,IAAK,UACDD,EAAO,cACX,MAEA,IAAK,OACDA,EAAO,oBACX,MAEA,IAAK,QACDA,EAAO,qBACX,MAEA,IAAK,OACDA,EAAO,6BACX,MAEA,QACIA,EAAO,oBAKnB,OAAOA,4DA7DdE,EAAAA,UAASC,KAAA,CAAC,CACPC,SAAU,YACVC,SAAU,q5BAgBVC,gBAAiBC,EAAAA,wBAAwBC,OACzCC,cAAeC,EAAAA,kBAAkBC,+QAKhCC,EAAAA,oBAEAA,EAAAA,sBAEAA,EAAAA,qBAEAA,EAAAA,0BAEAA,EAAAA,eAsCL,iCALCC,EAAAA,SAAQV,KAAA,CAAC,CACNW,QAAS,CAACC,EAAAA,cACVC,QAAS,CAACtB,GACVuB,aAAc,CAACvB","sourcesContent":["import {NgModule,Component,Input,ChangeDetectionStrategy, ViewEncapsulation} from '@angular/core';\nimport {CommonModule} from '@angular/common';\n\n@Component({\n selector: 'p-message',\n template: `\n
\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n styleUrls: ['./message.css']\n})\nexport class UIMessage {\n\n @Input() severity: string;\n\n @Input() text: string;\n\n @Input() escape: boolean = true;\n\n @Input() style: any;\n\n @Input() styleClass: string;\n\n get icon(): string {\n let icon: string = null;\n\n if (this.severity) {\n switch(this.severity) {\n case 'success':\n icon = 'pi pi-check';\n break;\n\n case 'info':\n icon = 'pi pi-info-circle';\n break;\n\n case 'error':\n icon = 'pi pi-times-circle';\n break;\n\n case 'warn':\n icon = 'pi pi-exclamation-triangle';\n break;\n\n default:\n icon = 'pi pi-info-circle';\n break;\n }\n }\n\n return icon;\n }\n}\n\n@NgModule({\n imports: [CommonModule],\n exports: [UIMessage],\n declarations: [UIMessage]\n})\nexport class MessageModule { }\n"]}