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E,aAAaA,CAACC,CAAC;IACb,OAAO,IAAI,CAACX,YAAY,GAAG,IAAI,CAACI,WAAW,GAAGO,CAAC,GAAG,CAAC;EACrD;EAAC,QAAAC,CAAA;qBA/BUd,mBAAmB;EAAA;EAAA,QAAAe,EAAA;UAAnBf,mBAAmB;IAAAgB,SAAA;IAAAC,MAAA;MAAAnB,KAAA;MAAAQ,WAAA;MAAAE,KAAA;MAAAN,YAAA;IAAA;IAAAgB,OAAA;MAAAf,UAAA;IAAA;IAAAgB,QAAA,GAAAzD,kEAAA;IAAA2D,KAAA;IAAAC,IAAA;IAAAC,MAAA;IAAAC,QAAA,WAAAC,6BAAAC,EAAA,EAAAC,GAAA;MAAA,IAAAD,EAAA;QCfhChE,wDAAA,IAAAkE,2CAAA,4BAA4B;;;QAAblE,wDAAA,SAAAiE,GAAA,CAAA7B,KAAA,CAAW;;;;;;;;;;;;;;;;;;;;;;;;;;ACCqB;AACe;AACT;AACC;AACa;;AAO7D,MAAOmC,gBAAgB;EAAA,QAAAnB,CAAA;qBAAhBmB,gBAAgB;EAAA;EAAA,QAAAlB,EAAA;UAAhBkB;EAAgB;EAAA,QAAAC,EAAA;cAHjBL,yDAAY,EAAEC,+DAAmB,EAAEC,gEAAe,EAAEC,6EAAU;EAAA;;;sHAG7DC,gBAAgB;IAAAE,YAAA,GAJZnC,uEAAmB;IAAAoC,OAAA,GACxBP,yDAAY,EAAEC,+DAAmB,EAAEC,gEAAe,EAAEC,6EAAU;IAAAK,OAAA,GAC9DrC,uEAAmB;EAAA;AAAA","sources":["./src/app/ui/pages/search-result/components/result-list/result-list.component.ts","./src/app/ui/pages/search-result/components/result-list/result-list.component.html","./src/app/ui/pages/search-result/components/result-list/result-list.module.ts"],"sourcesContent":["import {\r\n Component,\r\n OnInit,\r\n Input,\r\n Output,\r\n EventEmitter,\r\n OnChanges,\r\n} from '@angular/core';\r\nimport { Link } from 'src/app/dynamic-module/lib/public_api';\r\nimport { ISearchItem } from '../../search-result.component';\r\n@Component({\r\n selector: 'app-result-list',\r\n templateUrl: './result-list.component.html',\r\n styleUrls: ['./result-list.component.less'],\r\n})\r\nexport class ResultListComponent implements OnInit, OnChanges {\r\n @Input() items: ISearchItem[];\r\n @Input() currentPage: number;\r\n @Input() total: number;\r\n @Input() itemsPerPage = 10;\r\n\r\n @Output() pageChange: EventEmitter = new EventEmitter();\r\n\r\n Link = Link;\r\n paginateOptions: any;\r\n resultItems: ISearchItem[];\r\n\r\n constructor() {}\r\n\r\n ngOnInit() {}\r\n\r\n ngOnChanges() {\r\n this.paginateOptions = {\r\n itemsPerPage: this.itemsPerPage,\r\n currentPage: this.currentPage + 1,\r\n totalItems: this.total,\r\n };\r\n }\r\n\r\n onPageChange(e) {\r\n const newPage = e - 1;\r\n this.pageChange.emit(newPage);\r\n }\r\n\r\n getItemNumber(i) {\r\n return this.itemsPerPage * this.currentPage + i + 1;\r\n }\r\n}\r\n","\r\n
    \r\n \r\n \r\n

    \r\n {{\r\n 'searchResult.Obsolete' | translate\r\n }}\r\n

    \r\n {{ item.type }}\r\n -\r\n \r\n {{ 'searchResult.Published' | translate }}\r\n {{ item.publishDate }}\r\n
    \r\n \r\n
\r\n\r\n \r\n
\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { ResultListComponent } from './result-list.component';\r\nimport { NgxPaginationModule } from 'ngx-pagination';\r\nimport { TranslateModule } from '@ngx-translate/core';\r\nimport { LinkModule } from 'src/app/dynamic-module/lib/public_api';\r\n\r\n@NgModule({\r\n declarations: [ResultListComponent],\r\n imports: [CommonModule, NgxPaginationModule, TranslateModule, LinkModule],\r\n exports: [ResultListComponent],\r\n})\r\nexport class ResultListModule {}\r\n"],"names":["EventEmitter","Link","i0","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵadvance","ɵɵtextInterpolate","ɵɵpipeBind1","ɵɵelementContainerStart","ɵɵtextInterpolate2","item_r2","publishDate","ɵɵelement","ɵɵtemplate","ResultListComponent_ng_container_0_li_2_span_3_Template","ResultListComponent_ng_container_0_li_2_ng_container_7_Template","ResultListComponent_ng_container_0_li_2_span_8_Template","ɵɵproperty","ctx_r3","fromUrlWithTarget","url","urlTarget","title","ɵɵsanitizeHtml","isObsolete","description","type","ResultListComponent_ng_container_0_li_2_Template","ɵɵlistener","ResultListComponent_ng_container_0_Template_pagination_controls_pageChange_4_listener","$event","ɵɵrestoreView","_r1","ɵɵnextContext","ɵɵresetView","onPageChange","ɵɵpipeBind2","items","paginateOptions","ResultListComponent","constructor","itemsPerPage","pageChange","ngOnInit","ngOnChanges","currentPage","totalItems","total","e","newPage","emit","getItemNumber","i","_","_2","selectors","inputs","outputs","features","ɵɵNgOnChangesFeature","decls","vars","consts","template","ResultListComponent_Template","rf","ctx","ResultListComponent_ng_container_0_Template","CommonModule","NgxPaginationModule","TranslateModule","LinkModule","ResultListModule","_3","declarations","imports","exports"],"sourceRoot":"webpack:///","x_google_ignoreList":[]}