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,IAAI,CAAC,UAAU,CAAC;iBAC7E,SAAS,EAAE;iBACX,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE;gBACZ,OAAO,CAAC,GAAG,CAAC,yCAAyC,EAAE,CAAC,CAAC,CAAC;YAC3D,CAAC,CAAC,CAAC;YAEJ,IAAI,CAAC,MAAM,CAAC,WAAW,GAAG,UAAU,CAAC,WAAW,CAAC;YACjD,IAAI,CAAC,aAAa,GAAG,UAAU,CAAC,WAAW,CAAC,MAAM,GAAG,GAAG,GAAG,UAAU,CAAC,UAAU,CAAC;YACjF,IAAI,CAAC,YAAY,GAAG,UAAU,CAAC,YAAY,CAAC;QAE7C,CAAC;KAAA;CAED;;YAjLO,sDAAQ;YAER,wFAAiB;YACjB,oEAAW;YACX,6EAAc;YAKd,2FAAkB;YAElB,gFAAe;YANC,oDAAM;YACtB,uEAAY;YACZ,iGAAoB;YAFpB,4DAAc;;;6BAepB,qDAAS,SAAC,8DAAiB;;AAFhB,kBAAkB;IAL9B,yDAAS,CAAC;QACV,QAAQ,EAAE,oBAAoB;QAC9B,qNAAyC;;KAEzC,CAAC;GACW,kBAAkB,CA+J9B;AA/J8B;;;;;;;;;;;;;;;ACnB/B,iEAAe,imCAAimC,sBAAsB,gGAAgG,mBAAmB,gCAAgC,WAAW,wmCAAwmC","sources":["./src/app/views/suchergebnisse/suchergebnisse-routing.module.ts","./src/app/views/suchergebnisse/suchergebnisse.module.ts","./src/app/views/suchergebnisse/suchergebnisse.page.ts","./src/app/views/suchergebnisse/suchergebnisse.page.html"],"sourcesContent":["import { NgModule } from '@angular/core';\nimport { Routes, RouterModule } from '@angular/router';\n\nimport { SuchergebnissePage } from './suchergebnisse.page';\n\nconst routes: Routes = [\n {\n path: '',\n component: SuchergebnissePage\n }\n];\n\n@NgModule({\n imports: [RouterModule.forChild(routes)],\n exports: [RouterModule],\n})\nexport class SuchergebnissePageRoutingModule {}\n","import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\nimport {FormsModule} from '@angular/forms';\n\nimport {IonicModule} from '@ionic/angular';\n\nimport {SuchergebnissePageRoutingModule} from './suchergebnisse-routing.module';\n\nimport {SuchergebnissePage} from './suchergebnisse.page';\nimport {ComponentsModule} from '../../components/components.module';\nimport {RegisafeDirectiveModule} from '../../directives.module';\n\n@NgModule({\n\timports: [\n\t\tCommonModule,\n\t\tFormsModule,\n\t\tIonicModule,\n\t\tSuchergebnissePageRoutingModule,\n\t\tComponentsModule,\n\t\tRegisafeDirectiveModule\n\t],\n\tdeclarations: [SuchergebnissePage]\n})\nexport class SuchergebnissePageModule {\n}\n","import {Component, OnChanges, OnInit, SimpleChanges, ViewChild} from '@angular/core';\nimport {Location} from '@angular/common';\nimport {IQApiResultObject} from '../../interfaces/interfaces.regisafe';\nimport {SharedDataService} from '../../provider/shared-data/shared-data.service';\nimport {UserService} from '../../provider/user/user.service';\nimport {StorageService} from '../../provider/storage/storage.service';\nimport {ActivatedRoute, Router} from '@angular/router';\nimport {IQApiService} from '../../provider/iqapi/iqapi.service';\nimport {ErrorHandlingService} from '../../provider/error-handling/error-handling.service';\nimport {APP_ROUTES, APP_ICON_PATH} from '../../../environments/environment';\nimport {SessionDataService} from '../../provider/session-data/session-data.service';\nimport {IonInfiniteScroll} from '@ionic/angular';\nimport {SettingsService} from '../../provider/settings/settings.service';\n\n@Component({\n\tselector: 'app-suchergebnisse',\n\ttemplateUrl: './suchergebnisse.page.html',\n\tstyleUrls: ['./suchergebnisse.page.scss'],\n})\nexport class SuchergebnissePage implements OnInit, OnChanges {\n\n\t@ViewChild(IonInfiniteScroll) infiniteScroll: IonInfiniteScroll;\n\n\tresult: IQApiResultObject;\n\torgastruktur = '';\n\tfirstSubStructuresInResults: Array = [];\n\tbody: any = {};\n\tappIconPath = APP_ICON_PATH;\n\tsearchInOtherStructures = false;\n\tsearchBody = null;\n\tfirstHitCounter = 0;\n\tsearchLevel1: number;\n\tresultCounter = '';\n\tcache = false;\n\tsortFields = '';\n\n\tconstructor(private location: Location,\n\t\t\t\tprivate sharedService: SharedDataService,\n\t\t\t\tpublic userService: UserService,\n\t\t\t\tprivate storageService: StorageService,\n\t\t\t\tprivate sessionData: SessionDataService,\n\t\t\t\tprivate settingsService: SettingsService,\n\t\t\t\tprivate router: Router,\n\t\t\t\tprivate iqAPI: IQApiService,\n\t\t\t\tprivate errorHandling: ErrorHandlingService,\n\t\t\t\tprivate activatedRoute: ActivatedRoute) {\n\t}\n\n\tngOnInit() {\n\t\tthis.activatedRoute.data.subscribe((response: any) => {\n\t\t\tthis.result = response.result.data;\n\t\t\tthis.searchBody = response.result.body;\n\t\t\tthis.cache = response.result.cache;\n\t\t\tthis.searchInOtherStructures = response.result.searchInOtherStructures;\n\t\t\tthis.resultCounter = this.result.objDatasets.length + '/' + this.result.totalCount;\n\t\t\tthis.searchLevel1 = response.result.data.searchLevel1;\n\t\t\tthis.sortFields = response.result.body.sortFields;\n\t\t});\n\n\t\tthis.setRegisafeGlobalData();\n\t}\n\n\tngOnChanges(changes: SimpleChanges) {\n\t\tconsole.log('ngOnChanges: ', changes);\n\t}\n\n\tionViewDidLeave() {\n\t\tthis.infiniteScroll.disabled = false;\n\t}\n\n\tionViewDidEnter() {\n\t\tthis.setRegisafeGlobalData();\n\n\t\tif (this.cache) {\n\t\t\tif (this.result.objDatasets.length === this.result.totalCount) {\n\t\t\t\tthis.infiniteScroll.disabled = true;\n\t\t\t}\n\t\t}\n\t}\n\n\tasync setRegisafeGlobalData() {\n\t\tthis.orgastruktur = this.activatedRoute.snapshot.queryParamMap.get('osId');\n\t\tconst headerTitle = await this.storageService.getOsStructNameFromConditions(this.orgastruktur);\n\t\tthis.sharedService.setRegisafeGlobalData(\n\t\t\t{\n\t\t\t\torgastruktur: this.orgastruktur,\n\t\t\t\ttitle: headerTitle\n\t\t\t});\n\t}\n\n\tasync showDetail(data: any, firstSubStructure: string) {\n\t\t// eslint-disable-next-line no-underscore-dangle\n\t\tthis.router.navigate([APP_ROUTES.detail, this.orgastruktur, this.userService.objIdAsRouteParam(data._ObjID)])\n\t\t\t.then((navigated) => {\n\t\t\t\t// do something or leave ist\n\t\t\t});\n\t}\n\n\tsetFirstSubstructure(event) {\n\t\tthis.firstSubStructuresInResults.push(event);\n\t}\n\n\ttoggleInfiniteScroll() {\n\t\tthis.infiniteScroll.disabled = !this.infiniteScroll.disabled;\n\t}\n\n\tasync loadData(event) {\n\n\t\tthis.firstHitCounter += this.settingsService.getUserSettings().getHits;\n\t\tthis.searchBody.firstHit = this.firstHitCounter;\n\n\t\tconst infiniteResult = await this.iqAPI.orgaManagerSearchObjectsEx(this.searchBody)\n\t\t\t.toPromise()\n\t\t\t.catch((e) => {\n\t\t\t\tconsole.log('orgaManagerSearchObjectsEx error lazy: ', e);\n\t\t\t});\n\n\t\tconsole.log('infiniteResult.objDatasets: ', infiniteResult);\n\n\t\tif (infiniteResult) {\n\t\t\tevent.target.complete();\n\t\t\tthis.result.objDatasets = this.result.objDatasets.concat(infiniteResult.objDatasets);\n\t\t\tthis.result.totalCount = infiniteResult.totalCount;\n\n\t\t\tthis.toggleInfiniteScroll();\n\n\t\t\tif (this.result.objDatasets.length < infiniteResult.totalCount) {\n\t\t\t\tevent.target.disabled = false;\n\t\t\t} else {\n\t\t\t\tevent.target.disabled = true;\n\t\t\t\tthis.userService.presentDefaultToast('Keine weiteren Suchergebnisse gefunden.', 3000, 'bottom');\n\t\t\t}\n\n\t\t\tthis.resultCounter = this.result.objDatasets.length + '/' + this.result.totalCount;\n\t\t}\n\t}\n\n\tasync filterResults(event) {\n\n\t\tthis.storageService.setSortingDataSelection(event.values, this.activatedRoute.snapshot.queryParamMap.get('osId'));\n\n\t\tthis.infiniteScroll.disabled = false;\n\t\tthis.result.objDatasets = [];\n\t\tthis.searchBody.sortFields = event.values;\n\n\t\tthis.firstHitCounter = 0;\n\t\tthis.searchBody.firstHit = this.firstHitCounter;\n\t\tconst result = await this.iqAPI.orgaManagerSearchObjectsEx(this.searchBody)\n\t\t\t.toPromise()\n\t\t\t.catch((e) => {\n\t\t\t\tconsole.log('orgaManagerSearchObjectsEx error lazy: ', e);\n\t\t\t});\n\n\t\tif (result) {\n\t\t\tthis.result.objDatasets = result.objDatasets;\n\t\t\tthis.resultCounter = this.result.objDatasets.length + '/' + this.result.totalCount;\n\t\t}\n\t}\n\n\tasync loadSubData() {\n\n\t\tthis.firstHitCounter = 0;\n\t\tthis.searchBody.searchLevel1 = 0;\n\n\t\tthis.infiniteScroll.disabled = false;\n\n\t\tconst subResults = await this.iqAPI.orgaManagerSearchObjectsEx(this.searchBody)\n\t\t\t.toPromise()\n\t\t\t.catch((e) => {\n\t\t\t\tconsole.log('orgaManagerSearchObjectsEx error lazy: ', e);\n\t\t\t});\n\n\t\tthis.result.objDatasets = subResults.objDatasets;\n\t\tthis.resultCounter = subResults.objDatasets.length + '/' + subResults.totalCount;\n\t\tthis.searchLevel1 = subResults.searchLevel1;\n\n\t}\n\n}\n\n\n","export default \"\\n\\n\\n
\\n\\n \\n \\n \\n \\n

{{item.Vorgangskennung}}

\\n

{{item.Aktenzeichen}}

\\n

{{item.Text}}

\\n \\n
\\n \\n
\\n
\\n\\n \\n \\n \\n \\n\\n
\\n\\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n\";"],"names":[],"sourceRoot":"webpack:///"}