{"version":3,"sources":["../../src/app/components/breadcrumb/breadcrumb.ts"],"names":["Breadcrumb","this","onItemClick","EventEmitter","prototype","itemClick","event","item","disabled","preventDefault","url","command","originalEvent","emit","onHomeClick","home","Component","args","selector","template","changeDetection","ChangeDetectionStrategy","OnPush","encapsulation","ViewEncapsulation","None","Input","Output","NgModule","imports","CommonModule","RouterModule","exports","declarations"],"mappings":"qeAKA,SAAAA,IAgEcC,KAAAC,YAAiC,IAAIC,EAAAA,oBAE/CH,EAAAI,UAAAC,UAAA,SAAUC,EAAOC,GACTA,EAAKC,SACLF,EAAMG,kBAILF,EAAKG,KACNJ,EAAMG,iBAGNF,EAAKI,SACLJ,EAAKI,QAAQ,CACTC,cAAeN,EACfC,KAAMA,IAIdN,KAAKC,YAAYW,KAAK,CAClBD,cAAeN,EACfC,KAAMA,MAIdP,EAAAI,UAAAU,YAAA,SAAYR,GACJL,KAAKc,MACLd,KAAKI,UAAUC,EAAOL,KAAKc,gCA3FtCC,EAAAA,UAASC,KAAA,CAAC,CACPC,SAAU,eACVC,SAAU,2sJAgDXC,gBAAiBC,EAAAA,wBAAwBC,OACxCC,cAAeC,EAAAA,kBAAkBC,6PAKhCC,EAAAA,qBAEAA,EAAAA,0BAEAA,EAAAA,oBAEAA,EAAAA,2BAEAC,EAAAA,gBAqCL,iCALCC,EAAAA,SAAQX,KAAA,CAAC,CACNY,QAAS,CAACC,EAAAA,aAAaC,EAAAA,cACvBC,QAAS,CAAChC,EAAW+B,EAAAA,cACrBE,aAAc,CAACjC","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"]}