{"version":3,"file":"primeng-breadcrumb.umd.js","sources":["../../src/app/components/breadcrumb/breadcrumb.ts","../../src/app/components/breadcrumb/primeng-breadcrumb.ts"],"sourcesContent":["import {NgModule,Component,Input, Output, EventEmitter,ChangeDetectionStrategy, ViewEncapsulation} from '@angular/core';\nimport {CommonModule} from '@angular/common';\nimport {MenuItem} from 'primeng/api';\nimport {RouterModule} from '@angular/router';\n\n@Component({\n selector: 'p-breadcrumb',\n template: `\n
\n \n
\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n styleUrls: ['./breadcrumb.css']\n})\nexport class Breadcrumb {\n\n @Input() model: MenuItem[];\n\n @Input() style: any;\n\n @Input() styleClass: string;\n \n @Input() home: MenuItem;\n\n @Output() onItemClick: EventEmitter = new EventEmitter();\n \n itemClick(event, item: MenuItem) {\n if (item.disabled) {\n event.preventDefault();\n return;\n }\n \n if (!item.url) {\n event.preventDefault();\n }\n \n if (item.command) { \n item.command({\n originalEvent: event,\n item: item\n });\n }\n\n this.onItemClick.emit({\n originalEvent: event,\n item: item\n });\n }\n \n onHomeClick(event) {\n if (this.home) {\n this.itemClick(event, this.home);\n }\n }\n}\n\n@NgModule({\n imports: [CommonModule,RouterModule],\n exports: [Breadcrumb,RouterModule],\n declarations: [Breadcrumb]\n})\nexport class BreadcrumbModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["EventEmitter","Component","ChangeDetectionStrategy","ViewEncapsulation","Input","Output","NgModule","CommonModule","RouterModule"],"mappings":";;;;;;;QAKA;YAgEc,gBAAW,GAAsB,IAAIA,iBAAY,EAAE,CAAC;SA8BjE;QA5BG,8BAAS,GAAT,UAAU,KAAK,EAAE,IAAc;YAC3B,IAAI,IAAI,CAAC,QAAQ,EAAE;gBACf,KAAK,CAAC,cAAc,EAAE,CAAC;gBACvB,OAAO;aACV;YAED,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACX,KAAK,CAAC,cAAc,EAAE,CAAC;aAC1B;YAED,IAAI,IAAI,CAAC,OAAO,EAAE;gBACd,IAAI,CAAC,OAAO,CAAC;oBACT,aAAa,EAAE,KAAK;oBACpB,IAAI,EAAE,IAAI;iBACb,CAAC,CAAC;aACN;YAED,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;gBAClB,aAAa,EAAE,KAAK;gBACpB,IAAI,EAAE,IAAI;aACb,CAAC,CAAC;SACN;QAED,gCAAW,GAAX,UAAY,KAAK;YACb,IAAI,IAAI,CAAC,IAAI,EAAE;gBACX,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;aACpC;SACJ;;;;gBA7FJC,cAAS,SAAC;oBACP,QAAQ,EAAE,cAAc;oBACxB,QAAQ,EAAE,s3JA+CT;oBACF,eAAe,EAAEC,4BAAuB,CAAC,MAAM;oBAC9C,aAAa,EAAEC,sBAAiB,CAAC,IAAI;;iBAExC;;;wBAGIC,UAAK;wBAELA,UAAK;6BAELA,UAAK;uBAELA,UAAK;8BAELC,WAAM;;;QAqCX;;;;;gBALCC,aAAQ,SAAC;oBACN,OAAO,EAAE,CAACC,mBAAY,EAACC,mBAAY,CAAC;oBACpC,OAAO,EAAE,CAAC,UAAU,EAACA,mBAAY,CAAC;oBAClC,YAAY,EAAE,CAAC,UAAU,CAAC;iBAC7B;;;ICzGD;;;;;;;;;;;;;"}