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wBAzHwBA,mFAKDA,gIAILA,0DACKA,+HAqELA,2DACKA,ygEEzEhB,MAAMqD,EAAS,CAClB,CAACC,KAAM,GAAIC,UAAWH,EAAsBI,UAAW,OAAQC,YAAa,CAACC,OAwB1E,SACIC,SAASN,wCADPM,4DApBA,CACLC,KACAC,cAAsBR,GACtBS,KACAC,KACAC,IACAC,KACAC,KACAJ,KACAK,IACAlE,KACAA,KACAmE","names":["constructor","e","n","this","ngOnInit","onClose","dialogRef","close","d","t","s","selectors","v","loadReklamationList","store","dispatch","U","getReklamationListLoadingObservable","pipe","f","getReklamationListErrorObservable","getReklamationList","ngOnDestroy","ngUnsubscribe$","next","complete","g","factory","a","showInput","userService","isPhoenixUser","isInternalUser","reklamationList$","reklamationService","reklamationLoading$","reklamationError$","selectedIdf$","subscribe","r","currentlyDisplayedIdf","idf","onClickShowDetails","minWidth","autoFocus","data","item","perform","dialog","open","onRefresh","lastOnClickRefreshTime","Date","sortColumn","activeSortType","sortAscending","archive","sort","m","u","h","p","_","path","component","pathMatch","canActivate","F","c","l","w","k","Q","$","E","Y","N","T"],"sources":["webpack:///src/app/modules/account/pages/reklamation/reklamation-details-modal/reklamation-details-modal.component.ts","webpack:///src/app/modules/account/pages/reklamation/reklamation-details-modal/reklamation-details-modal.component.html","webpack:///src/app/core/services/reklamation.service.ts","webpack:///src/app/modules/account/pages/reklamation/reklamation.component.html","webpack:///src/app/modules/account/pages/reklamation/reklamation.component.ts","webpack:///src/app/modules/account/pages/reklamation/reklamation.module.ts"],"sourcesContent":["import {Component, Inject, OnInit} from '@angular/core';\nimport { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';\n\n@Component({\n selector: 'app-reklamation-details-modal',\n templateUrl: './reklamation-details-modal.component.html',\n styleUrls: ['./reklamation-details-modal.component.scss']\n})\nexport class ReklamationDetailsModalComponent implements OnInit {\n constructor(@Inject(MAT_DIALOG_DATA) public data,\n private dialogRef: MatDialogRef) {\n }\n\n ngOnInit() {\n }\n\n onClose() {\n this.dialogRef.close();\n }\n}\n","
\n
\n
\n

Details

\n
\n
\n \n
\n
\n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n
Anliegen eingegangen am:Grund:
\n {{data.item.createdAt | date: 'dd.MM.yyyy, H:mm\\' Uhr\\''}}\n {{data.item.complaint}}
\n
\n
\n","import {Injectable, OnDestroy} from '@angular/core';\nimport {Observable, Subject} from 'rxjs';\nimport * as fromReducers from '../store/reducers';\nimport {select, Store} from '@ngrx/store';\nimport {GetReklamationListAction} from '../store/actions/reklamation.actions';\n\n@Injectable({\n providedIn: 'root',\n})\n\nexport class ReklamationService implements OnDestroy {\n private ngUnsubscribe$ = new Subject();\n\n constructor(\n public store: Store) {\n }\n\n loadReklamationList(idf) {\n this.store.dispatch(new GetReklamationListAction(idf));\n }\n\n getReklamationListLoadingObservable(): Observable {\n return this.store.pipe(select(fromReducers.getReklamationLoading));\n }\n\n getReklamationListErrorObservable(): Observable {\n return this.store.pipe(select(fromReducers.getReklamationListError));\n }\n\n getReklamationList(): Observable {\n return this.store.pipe(select(fromReducers.getReklamationList));\n }\n\n /**\n * Unsubscribe from all subscriptions.\n */\n ngOnDestroy(): void {\n this.ngUnsubscribe$.next();\n this.ngUnsubscribe$.complete();\n }\n}\n","
\n
\n
\n
\n

Ihre aktuellen Reklamationen

\n

Hier können Sie den Status Ihrer beim Kunden-Service-Center platzierten Anliegen einsehen.

\n Letzte\n Aktualisierung {{ lastOnClickRefreshTime | date: 'short' }} Uhr\n
\n Bearbeitungsstatus neu laden\n
\n \n Aktuell liegen uns keine Reklamationen vor.\n
\n
\n \n 0\">\n
\n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
ReklamationenDetailsAufgenommenIn BearbeitungAbgeschlossen
{{recentItem.division}}\n \n \n \n \n
{{recentItem.status === 'COMPLETED' ? \"\" : recentItem.createdAt | date: 'H:mm\\' Uhr\\''}}
\n
\n
\n
\n
\n
\n {{recentItem.status === 'ASSIGNED' && recentItem.estimateInMinutes > 0 ? recentItem.estimateInMinutes + ' Min. *' : \"\"}}\n
\n
\n
\n
\n
\n
\n {{recentItem.completedAt | date: 'H:mm\\' Uhr\\''}}\n
\n
\n
\n
\n
\n
\n
\n
\n
\n *Hinweis: Die Angabe entspricht der geschätzten Bearbeitungszeit.
\n Bitte beachten Sie, dass die durchschnittliche Bearbeitungszeit aufgrund der Arbeitszeiten der\n jeweiligen Fachabteilung\n abweichen kann.
\n
\n
\n
\n
\n
\n
\n
\n

Archiv

\n Hier können Sie alle Reklamationen der letzten 30 Tage einsehen.\n
\n
\n \n 0\">\n
\n
\n Reklamationen\n
\n \n \n
\n
\n
\n Details\n
\n \n \n
\n
\n
\n Status\n
\n \n \n
\n
\n
\n
\n
\n {{archivItem.division}}\n
\n
\n {{archivItem.createdAt | date: 'dd.MM.yyyy, H:mm\\' Uhr\\''}} | {{archivItem.complaint}}\n
\n
\n Abgeschlossen \n
\n
Ausstehend
\n
\n
\n
\n
\n","import {Component, OnDestroy, OnInit} from '@angular/core';\nimport {map, takeUntil} from 'rxjs/operators';\nimport {UserService} from '../../../../core/services/user.service';\nimport {Observable, Subject} from 'rxjs';\nimport {ReklamationService} from '../../../../core/services/reklamation.service';\nimport {ReklamationResponseModel} from '../../../../core/models/reklamation/reklamation-response.model';\nimport {ReklamationModel} from '../../../../core/models/reklamation/reklamation.model';\nimport {MatDialog, MatDialogConfig, MatDialogRef} from '@angular/material/dialog';\nimport {ReklamationDetailsModalComponent} from './reklamation-details-modal/reklamation-details-modal.component';\n\n@Component({\n selector: 'app-reklamation',\n templateUrl: './reklamation.component.html',\n styleUrls: ['./reklamation.component.scss']\n})\nexport class ReklamationComponent implements OnInit, OnDestroy {\n public idfs$: Observable;\n public currentlyDisplayedIdf: string;\n public showInput = false;\n public mainIdf: string;\n private ngUnsubscribe$ = new Subject();\n public reklamationList$: Observable;\n public reklamationLoading$: Observable;\n public reklamationError$: Observable;\n lastOnClickRefreshTime: Date;\n public activeSortType = 'division';\n public sortAscending = true;\n\n constructor(public userService: UserService,\n public reklamationService: ReklamationService,\n private dialog: MatDialog,\n ) {\n // this.idfs$ = this.userService.selectContextualizedIdfsObservable('orders');\n this.showInput = this.userService.isPhoenixUser() || userService.isInternalUser();\n this.reklamationList$ = this.reklamationService.getReklamationList();\n this.reklamationLoading$ = this.reklamationService.getReklamationListLoadingObservable();\n this.reklamationError$ = this.reklamationService.getReklamationListErrorObservable();\n\n this.userService.selectedIdf$.subscribe(idf => {\n if (idf) {\n this.currentlyDisplayedIdf = idf.idf;\n this.reklamationService.loadReklamationList(idf);\n }\n })\n }\n\n ngOnInit(): void {\n }\n\n onClickShowDetails(recentItem: ReklamationModel): MatDialogRef {\n const detailsDialogConfig = new MatDialogConfig();\n detailsDialogConfig.minWidth = '30vw';\n detailsDialogConfig.autoFocus = true;\n detailsDialogConfig.data = {item: recentItem, perform: false};\n return this.dialog.open(ReklamationDetailsModalComponent, detailsDialogConfig);\n }\n\n onRefresh() {\n this.reklamationService.loadReklamationList(this.currentlyDisplayedIdf);\n this.lastOnClickRefreshTime = new Date();\n }\n\n sortColumn(column: 'division' | 'createdAt' | 'status') {\n this.activeSortType = column;\n this.sortAscending = !this.sortAscending;\n this.reklamationList$ = this.reklamationList$.pipe(map((data) => {\n if (data) {\n const arrayForSort = [...data.archive];\n arrayForSort.sort((a: any, b: any) => {\n\n const colA = a[column];\n const colB = b[column];\n\n if (colA === colB) {\n // equal items sort equally\n return 0;\n } else if (colA === null) {\n // nulls sort after anything else\n return 1;\n } else if (colB === null) {\n return -1;\n } else if (this.sortAscending) {\n // otherwise, if we're ascending, lowest sorts first\n return colA < colB ? -1 : 1;\n } else {\n // if descending, highest sorts first\n return colA < colB ? 1 : -1;\n }\n });\n\n data.archive = arrayForSort;\n return data;\n }\n }));\n }\n\n /**\n * Unsubscribe from all subscriptions.\n */\n ngOnDestroy(): void {\n this.ngUnsubscribe$.next();\n this.ngUnsubscribe$.complete();\n }\n}\n","import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\nimport {ReklamationComponent} from './reklamation.component';\nimport {RouterModule} from '@angular/router';\nimport {FormsModule, ReactiveFormsModule} from '@angular/forms';\nimport {MatFormFieldModule} from '@angular/material/form-field';\nimport {MatInputModule} from '@angular/material/input';\nimport {MatOptionModule} from '@angular/material/core';\nimport {MatSelectModule} from '@angular/material/select';\nimport {SpinnerModule} from '../../../shared/spinner/spinner.module';\nimport { ReklamationDetailsModalComponent } from './reklamation-details-modal/reklamation-details-modal.component';\nimport {MatDialogModule} from '@angular/material/dialog';\nimport {MatTooltipModule} from '@angular/material/tooltip';\nimport {RouteGuardService} from '../../../../core/services/routeGuards/route-guard.service';\nexport const routes = [\n {path: '', component: ReklamationComponent, pathMatch: 'full', canActivate: [RouteGuardService]},\n];\n\n@NgModule({\n imports: [\n CommonModule,\n RouterModule.forChild(routes),\n FormsModule,\n MatFormFieldModule,\n MatInputModule,\n MatOptionModule,\n MatSelectModule,\n ReactiveFormsModule,\n SpinnerModule,\n MatDialogModule,\n MatDialogModule,\n MatTooltipModule\n ],\n declarations: [\n ReklamationComponent,\n ReklamationDetailsModalComponent\n ],\n exports: [ReklamationComponent],\n})\nexport class ReklamationModule {\n static routes = routes;\n}\n"]}