{"version":3,"file":"primeng-message.umd.js","sources":["../../src/app/components/message/message.ts","../../src/app/components/message/primeng-message.ts"],"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","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["Component","ChangeDetectionStrategy","ViewEncapsulation","Input","NgModule","CommonModule"],"mappings":";;;;;;;QAGA;YA4Ba,WAAM,GAAY,IAAI,CAAC;SAmCnC;QA7BG,sBAAI,2BAAI;iBAAR;gBACI,IAAI,IAAI,GAAW,IAAI,CAAC;gBAExB,IAAI,IAAI,CAAC,QAAQ,EAAE;oBACf,QAAO,IAAI,CAAC,QAAQ;wBAChB,KAAK,SAAS;4BACV,IAAI,GAAG,aAAa,CAAC;4BACzB,MAAM;wBAEN,KAAK,MAAM;4BACP,IAAI,GAAG,mBAAmB,CAAC;4BAC/B,MAAM;wBAEN,KAAK,OAAO;4BACR,IAAI,GAAG,oBAAoB,CAAC;4BAChC,MAAM;wBAEN,KAAK,MAAM;4BACP,IAAI,GAAG,4BAA4B,CAAC;4BACxC,MAAM;wBAEN;4BACI,IAAI,GAAG,mBAAmB,CAAC;4BAC/B,MAAM;qBACT;iBACJ;gBAED,OAAO,IAAI,CAAC;aACf;;;WAAA;;;;gBA9DJA,cAAS,SAAC;oBACP,QAAQ,EAAE,WAAW;oBACrB,QAAQ,EAAE,85BAeT;oBACD,eAAe,EAAEC,4BAAuB,CAAC,MAAM;oBAC/C,aAAa,EAAEC,sBAAiB,CAAC,IAAI;;iBAExC;;;2BAGIC,UAAK;uBAELA,UAAK;yBAELA,UAAK;wBAELA,UAAK;6BAELA,UAAK;;;QAsCV;;;;;gBALCC,aAAQ,SAAC;oBACN,OAAO,EAAE,CAACC,mBAAY,CAAC;oBACvB,OAAO,EAAE,CAAC,SAAS,CAAC;oBACpB,YAAY,EAAE,CAAC,SAAS,CAAC;iBAC5B;;;ICxED;;;;;;;;;;;;;"}