{"ast":null,"code":"import { MatTableDataSource } from '@angular/material/table';\nimport { ErrorModalComponent } from 'src/app/shared/modals/error-modal/error-modal.component';\nimport { SuccessModalComponent } from 'src/app/shared/modals/success-modal/success-modal.component';\nimport * as i0 from \"@angular/core\";\nimport * as i1 from \"@angular/router\";\nimport * as i2 from \"src/app/shared/services/repository.service\";\nimport * as i3 from \"src/app/shared/services/repository-error-handler.service\";\nimport * as i4 from \"src/app/shared/services/dialog.service\";\nimport * as i5 from \"ngx-bootstrap/modal\";\nimport * as i6 from \"src/app/shared/services/authentication.service\";\nimport * as i7 from \"@angular/common\";\nimport * as i8 from \"@angular/material/card\";\nimport * as i9 from \"@angular/material/button\";\nimport * as i10 from \"@angular/material/icon\";\nimport * as i11 from \"@angular/material/table\";\nfunction EmployeeDetailsComponent_div_0_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"div\", 18);\n    i0.ɵɵtext(1);\n    i0.ɵɵelementEnd();\n  }\n  if (rf & 2) {\n    const ctx_r0 = i0.ɵɵnextContext();\n    i0.ɵɵadvance();\n    i0.ɵɵtextInterpolate1(\" \", ctx_r0.errorMessage, \"\\n\");\n  }\n}\nfunction EmployeeDetailsComponent_th_32_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"th\", 19);\n    i0.ɵɵtext(1, \" Seri Numaras\\u0131 \");\n    i0.ɵɵelementEnd();\n  }\n}\nfunction EmployeeDetailsComponent_td_33_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"td\", 20);\n    i0.ɵɵtext(1);\n    i0.ɵɵelementEnd();\n  }\n  if (rf & 2) {\n    const element_r2 = ctx.$implicit;\n    i0.ɵɵadvance();\n    i0.ɵɵtextInterpolate1(\" \", element_r2.serialNumber, \" \");\n  }\n}\nfunction EmployeeDetailsComponent_th_35_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"th\", 19);\n    i0.ɵɵtext(1, \" Kategori \");\n    i0.ɵɵelementEnd();\n  }\n}\nfunction EmployeeDetailsComponent_td_36_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"td\", 20);\n    i0.ɵɵtext(1);\n    i0.ɵɵelementEnd();\n  }\n  if (rf & 2) {\n    const element_r3 = ctx.$implicit;\n    i0.ɵɵadvance();\n    i0.ɵɵtextInterpolate1(\" \", element_r3.categoryName, \" \");\n  }\n}\nfunction EmployeeDetailsComponent_th_38_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"th\", 19);\n    i0.ɵɵtext(1, \" Marka \");\n    i0.ɵɵelementEnd();\n  }\n}\nfunction EmployeeDetailsComponent_td_39_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"td\", 20);\n    i0.ɵɵtext(1);\n    i0.ɵɵelementEnd();\n  }\n  if (rf & 2) {\n    const element_r4 = ctx.$implicit;\n    i0.ɵɵadvance();\n    i0.ɵɵtextInterpolate1(\" \", element_r4.brandName, \" \");\n  }\n}\nfunction EmployeeDetailsComponent_th_41_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"th\", 19);\n    i0.ɵɵtext(1, \" Cihaz \");\n    i0.ɵɵelementEnd();\n  }\n}\nfunction EmployeeDetailsComponent_td_42_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"td\", 20);\n    i0.ɵɵtext(1);\n    i0.ɵɵelementEnd();\n  }\n  if (rf & 2) {\n    const element_r5 = ctx.$implicit;\n    i0.ɵɵadvance();\n    i0.ɵɵtextInterpolate1(\" \", element_r5.name, \" \");\n  }\n}\nfunction EmployeeDetailsComponent_th_44_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"th\", 19);\n    i0.ɵɵtext(1, \" Verilme Tarihi \");\n    i0.ɵɵelementEnd();\n  }\n}\nfunction EmployeeDetailsComponent_td_45_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"td\", 20);\n    i0.ɵɵtext(1);\n    i0.ɵɵpipe(2, \"date\");\n    i0.ɵɵelementEnd();\n  }\n  if (rf & 2) {\n    const element_r6 = ctx.$implicit;\n    i0.ɵɵadvance();\n    i0.ɵɵtextInterpolate1(\" \", i0.ɵɵpipeBind1(2, 1, element_r6.assignedDate), \" \");\n  }\n}\nfunction EmployeeDetailsComponent_th_47_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"th\", 19);\n    i0.ɵɵtext(1, \" Remove\");\n    i0.ɵɵelementEnd();\n  }\n}\nfunction EmployeeDetailsComponent_td_48_Template(rf, ctx) {\n  if (rf & 1) {\n    const _r7 = i0.ɵɵgetCurrentView();\n    i0.ɵɵelementStart(0, \"td\", 20)(1, \"button\", 21);\n    i0.ɵɵlistener(\"click\", function EmployeeDetailsComponent_td_48_Template_button_click_1_listener() {\n      const element_r8 = i0.ɵɵrestoreView(_r7).$implicit;\n      const ctx_r0 = i0.ɵɵnextContext();\n      return i0.ɵɵresetView(ctx_r0.deleteAssignDevice(element_r8.id));\n    });\n    i0.ɵɵelementStart(2, \"mat-icon\", 22);\n    i0.ɵɵtext(3, \"delete\");\n    i0.ɵɵelementEnd()()();\n  }\n}\nfunction EmployeeDetailsComponent_tr_49_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelement(0, \"tr\", 23);\n  }\n}\nfunction EmployeeDetailsComponent_tr_50_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelement(0, \"tr\", 24);\n  }\n}\nexport class EmployeeDetailsComponent {\n  constructor(route, repository, errorHandler, dialogService, modal, authService) {\n    this.route = route;\n    this.repository = repository;\n    this.errorHandler = errorHandler;\n    this.dialogService = dialogService;\n    this.modal = modal;\n    this.authService = authService;\n    this.errorMessage = '';\n    this.displayedColumns = ['serialNumber', 'categoryName', 'brandName', 'name', 'assignedDate', 'delete'];\n    this.dataSource = new MatTableDataSource();\n  }\n  ngOnInit() {\n    this.loadEmployeeDetails();\n  }\n  loadEmployeeDetails() {\n    const employeeId = this.route.snapshot.paramMap.get('id');\n    const apiUrl = `api/employees/${employeeId}`;\n    this.repository.getData(apiUrl).subscribe({\n      next: employee => {\n        this.employeeDetails = employee;\n        this.dataSource.data = employee.deviceAssignments;\n      },\n      error: err => {\n        this.errorHandler.handleError(err);\n        this.errorMessage = this.errorHandler.errorMessage;\n      }\n    });\n  }\n  deleteAssignDevice(id) {\n    if (this.authService.isUserAdmin()) {\n      this.dialogService.openConfirmDialog('Are you sure you want to remove this device?').afterClosed().subscribe(res => {\n        if (res) {\n          const deleteUri = `api/deviceassignments/${id}`;\n          this.repository.delete(deleteUri).subscribe(() => {\n            const config = {\n              initialState: {\n                modalHeaderText: 'Success Message',\n                modalBodyText: `Device remove successfully`,\n                okButtonText: 'OK'\n              }\n            };\n            this.bsModalRef = this.modal.show(SuccessModalComponent, config);\n            this.bsModalRef.content.redirectOnOk.subscribe(() => this.loadEmployeeDetails());\n          });\n        }\n      });\n    } else {\n      const config = {\n        initialState: {\n          modalHeaderText: 'Error Message',\n          modalBodyText: 'Only Admin allowed',\n          okButtonText: 'OK'\n        }\n      };\n      this.modal.show(ErrorModalComponent, config);\n    }\n  }\n  static #_ = this.ɵfac = function EmployeeDetailsComponent_Factory(t) {\n    return new (t || EmployeeDetailsComponent)(i0.ɵɵdirectiveInject(i1.ActivatedRoute), i0.ɵɵdirectiveInject(i2.RepositoryService), i0.ɵɵdirectiveInject(i3.RepositoryErrorHandlerService), i0.ɵɵdirectiveInject(i4.DialogService), i0.ɵɵdirectiveInject(i5.BsModalService), i0.ɵɵdirectiveInject(i6.AuthenticationService));\n  };\n  static #_2 = this.ɵcmp = /*@__PURE__*/i0.ɵɵdefineComponent({\n    type: EmployeeDetailsComponent,\n    selectors: [[\"app-employee-details\"]],\n    decls: 51,\n    vars: 9,\n    consts: [[\"class\", \"alert alert-danger\", 4, \"ngIf\"], [1, \"cardWithShadow\", \"theme-card\"], [1, \"m-b-0\"], [1, \"col-lg-4\", \"col-sm-6\"], [1, \"b-1\", \"shadow-none\"], [1, \"b-t-1\"], [1, \"table-responsive\", \"m-t-16\"], [\"mat-table\", \"\", 1, \"mat-elevation-z8\", 3, \"dataSource\"], [\"matColumnDef\", \"serialNumber\"], [\"mat-header-cell\", \"\", 4, \"matHeaderCellDef\"], [\"mat-cell\", \"\", 4, \"matCellDef\"], [\"matColumnDef\", \"categoryName\"], [\"matColumnDef\", \"brandName\"], [\"matColumnDef\", \"name\"], [\"matColumnDef\", \"assignedDate\"], [\"matColumnDef\", \"delete\"], [\"mat-header-row\", \"\", 4, \"matHeaderRowDef\"], [\"mat-row\", \"\", 4, \"matRowDef\", \"matRowDefColumns\"], [1, \"alert\", \"alert-danger\"], [\"mat-header-cell\", \"\"], [\"mat-cell\", \"\"], [\"mat-icon-button\", \"\", \"color\", \"warn\", 3, \"click\"], [1, \"mat-18\"], [\"mat-header-row\", \"\"], [\"mat-row\", \"\"]],\n    template: function EmployeeDetailsComponent_Template(rf, ctx) {\n      if (rf & 1) {\n        i0.ɵɵtemplate(0, EmployeeDetailsComponent_div_0_Template, 2, 1, \"div\", 0);\n        i0.ɵɵelementStart(1, \"mat-card\", 1)(2, \"mat-card-header\")(3, \"mat-card-title\", 2);\n        i0.ɵɵtext(4, \"Employee Details\");\n        i0.ɵɵelementEnd()();\n        i0.ɵɵelementStart(5, \"div\", 3)(6, \"mat-card\", 4)(7, \"mat-card-content\", 5)(8, \"p\")(9, \"strong\");\n        i0.ɵɵtext(10, \"\\u0130sim\");\n        i0.ɵɵelementEnd();\n        i0.ɵɵtext(11);\n        i0.ɵɵelementEnd();\n        i0.ɵɵelementStart(12, \"p\")(13, \"strong\");\n        i0.ɵɵtext(14, \"Soyisim\");\n        i0.ɵɵelementEnd();\n        i0.ɵɵtext(15);\n        i0.ɵɵelementEnd();\n        i0.ɵɵelementStart(16, \"p\")(17, \"strong\");\n        i0.ɵɵtext(18, \"Sicil:\");\n        i0.ɵɵelementEnd();\n        i0.ɵɵtext(19);\n        i0.ɵɵelementEnd();\n        i0.ɵɵelementStart(20, \"p\")(21, \"strong\");\n        i0.ɵɵtext(22, \"\\u00DCnvan\");\n        i0.ɵɵelementEnd();\n        i0.ɵɵtext(23);\n        i0.ɵɵelementEnd();\n        i0.ɵɵelementStart(24, \"p\")(25, \"strong\");\n        i0.ɵɵtext(26, \"Email:\");\n        i0.ɵɵelementEnd();\n        i0.ɵɵtext(27);\n        i0.ɵɵelementEnd()()()();\n        i0.ɵɵelementStart(28, \"mat-card-content\", 5)(29, \"div\", 6)(30, \"table\", 7);\n        i0.ɵɵelementContainerStart(31, 8);\n        i0.ɵɵtemplate(32, EmployeeDetailsComponent_th_32_Template, 2, 0, \"th\", 9)(33, EmployeeDetailsComponent_td_33_Template, 2, 1, \"td\", 10);\n        i0.ɵɵelementContainerEnd();\n        i0.ɵɵelementContainerStart(34, 11);\n        i0.ɵɵtemplate(35, EmployeeDetailsComponent_th_35_Template, 2, 0, \"th\", 9)(36, EmployeeDetailsComponent_td_36_Template, 2, 1, \"td\", 10);\n        i0.ɵɵelementContainerEnd();\n        i0.ɵɵelementContainerStart(37, 12);\n        i0.ɵɵtemplate(38, EmployeeDetailsComponent_th_38_Template, 2, 0, \"th\", 9)(39, EmployeeDetailsComponent_td_39_Template, 2, 1, \"td\", 10);\n        i0.ɵɵelementContainerEnd();\n        i0.ɵɵelementContainerStart(40, 13);\n        i0.ɵɵtemplate(41, EmployeeDetailsComponent_th_41_Template, 2, 0, \"th\", 9)(42, EmployeeDetailsComponent_td_42_Template, 2, 1, \"td\", 10);\n        i0.ɵɵelementContainerEnd();\n        i0.ɵɵelementContainerStart(43, 14);\n        i0.ɵɵtemplate(44, EmployeeDetailsComponent_th_44_Template, 2, 0, \"th\", 9)(45, EmployeeDetailsComponent_td_45_Template, 3, 3, \"td\", 10);\n        i0.ɵɵelementContainerEnd();\n        i0.ɵɵelementContainerStart(46, 15);\n        i0.ɵɵtemplate(47, EmployeeDetailsComponent_th_47_Template, 2, 0, \"th\", 9)(48, EmployeeDetailsComponent_td_48_Template, 4, 0, \"td\", 10);\n        i0.ɵɵelementContainerEnd();\n        i0.ɵɵtemplate(49, EmployeeDetailsComponent_tr_49_Template, 1, 0, \"tr\", 16)(50, EmployeeDetailsComponent_tr_50_Template, 1, 0, \"tr\", 17);\n        i0.ɵɵelementEnd()()()();\n      }\n      if (rf & 2) {\n        i0.ɵɵproperty(\"ngIf\", ctx.errorMessage);\n        i0.ɵɵadvance(11);\n        i0.ɵɵtextInterpolate1(\" \", ctx.employeeDetails == null ? null : ctx.employeeDetails.firstName, \"\");\n        i0.ɵɵadvance(4);\n        i0.ɵɵtextInterpolate1(\" \", ctx.employeeDetails == null ? null : ctx.employeeDetails.lastName, \"\");\n        i0.ɵɵadvance(4);\n        i0.ɵɵtextInterpolate1(\" \", ctx.employeeDetails == null ? null : ctx.employeeDetails.employeeNumber, \"\");\n        i0.ɵɵadvance(4);\n        i0.ɵɵtextInterpolate1(\" \", ctx.employeeDetails == null ? null : ctx.employeeDetails.position, \"\");\n        i0.ɵɵadvance(4);\n        i0.ɵɵtextInterpolate1(\" \", ctx.employeeDetails == null ? null : ctx.employeeDetails.email, \"\");\n        i0.ɵɵadvance(3);\n        i0.ɵɵproperty(\"dataSource\", ctx.dataSource);\n        i0.ɵɵadvance(19);\n        i0.ɵɵproperty(\"matHeaderRowDef\", ctx.displayedColumns);\n        i0.ɵɵadvance();\n        i0.ɵɵproperty(\"matRowDefColumns\", ctx.displayedColumns);\n      }\n    },\n    dependencies: [i7.NgIf, i8.MatCard, i8.MatCardContent, i8.MatCardHeader, i8.MatCardTitle, i9.MatIconButton, i10.MatIcon, i11.MatTable, i11.MatHeaderCellDef, i11.MatHeaderRowDef, i11.MatColumnDef, i11.MatCellDef, i11.MatRowDef, i11.MatHeaderCell, i11.MatCell, i11.MatHeaderRow, i11.MatRow, i7.DatePipe],\n    styles: [\"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIifQ== */\"]\n  });\n}","map":{"version":3,"names":["MatTableDataSource","ErrorModalComponent","SuccessModalComponent","i0","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵadvance","ɵɵtextInterpolate1","ctx_r0","errorMessage","element_r2","serialNumber","element_r3","categoryName","element_r4","brandName","element_r5","name","ɵɵpipeBind1","element_r6","assignedDate","ɵɵlistener","EmployeeDetailsComponent_td_48_Template_button_click_1_listener","element_r8","ɵɵrestoreView","_r7","$implicit","ɵɵnextContext","ɵɵresetView","deleteAssignDevice","id","ɵɵelement","EmployeeDetailsComponent","constructor","route","repository","errorHandler","dialogService","modal","authService","displayedColumns","dataSource","ngOnInit","loadEmployeeDetails","employeeId","snapshot","paramMap","get","apiUrl","getData","subscribe","next","employee","employeeDetails","data","deviceAssignments","error","err","handleError","isUserAdmin","openConfirmDialog","afterClosed","res","deleteUri","delete","config","initialState","modalHeaderText","modalBodyText","okButtonText","bsModalRef","show","content","redirectOnOk","_","ɵɵdirectiveInject","i1","ActivatedRoute","i2","RepositoryService","i3","RepositoryErrorHandlerService","i4","DialogService","i5","BsModalService","i6","AuthenticationService","_2","selectors","decls","vars","consts","template","EmployeeDetailsComponent_Template","rf","ctx","ɵɵtemplate","EmployeeDetailsComponent_div_0_Template","ɵɵelementContainerStart","EmployeeDetailsComponent_th_32_Template","EmployeeDetailsComponent_td_33_Template","EmployeeDetailsComponent_th_35_Template","EmployeeDetailsComponent_td_36_Template","EmployeeDetailsComponent_th_38_Template","EmployeeDetailsComponent_td_39_Template","EmployeeDetailsComponent_th_41_Template","EmployeeDetailsComponent_td_42_Template","EmployeeDetailsComponent_th_44_Template","EmployeeDetailsComponent_td_45_Template","EmployeeDetailsComponent_th_47_Template","EmployeeDetailsComponent_td_48_Template","EmployeeDetailsComponent_tr_49_Template","EmployeeDetailsComponent_tr_50_Template","ɵɵproperty","firstName","lastName","employeeNumber","position","email"],"sources":["C:\\Users\\fsengul\\Desktop\\MendereIT\\InventoryManagement\\InventryUI-Client\\src\\app\\pages\\ui-components\\employee\\employee-details\\employee-details.component.ts","C:\\Users\\fsengul\\Desktop\\MendereIT\\InventoryManagement\\InventryUI-Client\\src\\app\\pages\\ui-components\\employee\\employee-details\\employee-details.component.html"],"sourcesContent":["import { Component, OnInit } from '@angular/core';\nimport { MatTableDataSource } from '@angular/material/table';\nimport { ActivatedRoute } from '@angular/router';\nimport { BsModalRef, BsModalService, ModalOptions } from 'ngx-bootstrap/modal';\nimport { ErrorModalComponent } from 'src/app/shared/modals/error-modal/error-modal.component';\nimport { SuccessModalComponent } from 'src/app/shared/modals/success-modal/success-modal.component';\nimport { AuthenticationService } from 'src/app/shared/services/authentication.service';\nimport { DialogService } from 'src/app/shared/services/dialog.service';\nimport { RepositoryErrorHandlerService } from 'src/app/shared/services/repository-error-handler.service';\nimport { RepositoryService } from 'src/app/shared/services/repository.service';\n\n@Component({\n  selector: 'app-employee-details',\n  templateUrl: './employee-details.component.html',\n  styleUrls: ['./employee-details.component.css'],\n})\nexport class EmployeeDetailsComponent implements OnInit {\n  public bsModalRef?: BsModalRef;\n  public employeeDetails: any;\n  public errorMessage: string = '';\n  public displayedColumns: string[] = [\n    'serialNumber',\n    'categoryName',\n    'brandName',\n    'name',\n    'assignedDate',\n    'delete',\n  ];\n  public dataSource = new MatTableDataSource<any>();\n\n  constructor(\n    private route: ActivatedRoute,\n    private repository: RepositoryService,\n    private errorHandler: RepositoryErrorHandlerService,\n    private dialogService: DialogService,\n    private modal: BsModalService,\n    private authService: AuthenticationService\n  ) {}\n\n  ngOnInit(): void {\n    this.loadEmployeeDetails();\n  }\n\n  private loadEmployeeDetails(): void {\n    const employeeId = this.route.snapshot.paramMap.get('id');\n    const apiUrl = `api/employees/${employeeId}`;\n    this.repository.getData(apiUrl).subscribe({\n      next: (employee: any) => {\n        this.employeeDetails = employee;\n        this.dataSource.data = employee.deviceAssignments;\n      },\n      error: (err: any) => {\n        this.errorHandler.handleError(err);\n        this.errorMessage = this.errorHandler.errorMessage;\n      },\n    });\n  }\n\n  public deleteAssignDevice(id: string) {\n    if (this.authService.isUserAdmin()) {\n      this.dialogService\n        .openConfirmDialog('Are you sure you want to remove this device?')\n        .afterClosed()\n        .subscribe((res) => {\n          if (res) {\n            const deleteUri: string = `api/deviceassignments/${id}`;\n            this.repository.delete(deleteUri).subscribe(() => {\n              const config: ModalOptions = {\n                initialState: {\n                  modalHeaderText: 'Success Message',\n                  modalBodyText: `Device remove successfully`,\n                  okButtonText: 'OK',\n                },\n              };\n\n              this.bsModalRef = this.modal.show(SuccessModalComponent, config);\n              this.bsModalRef.content.redirectOnOk.subscribe(() =>\n                this.loadEmployeeDetails()\n              );\n            });\n          }\n        });\n    } else {\n      const config: ModalOptions = {\n        initialState: {\n          modalHeaderText: 'Error Message',\n          modalBodyText: 'Only Admin allowed',\n          okButtonText: 'OK',\n        },\n      };\n      this.modal.show(ErrorModalComponent, config);\n    }\n  }\n}\n","\n<!-- Error Message -->\n<div *ngIf=\"errorMessage\" class=\"alert alert-danger\">\n  {{ errorMessage }}\n</div>\n\n<mat-card class=\"cardWithShadow theme-card\">\n  <mat-card-header>\n    <mat-card-title class=\"m-b-0\">Employee Details</mat-card-title>\n  </mat-card-header>\n\n  <div class=\"col-lg-4 col-sm-6\">\n    <mat-card class=\"b-1 shadow-none\">\n      <mat-card-content class=\"b-t-1\">\n        <p><strong>İsim</strong> {{ employeeDetails?.firstName }}</p>\n        <p><strong>Soyisim</strong> {{ employeeDetails?.lastName }}</p>\n        <p><strong>Sicil:</strong> {{ employeeDetails?.employeeNumber }}</p>\n        <p><strong>Ünvan</strong> {{ employeeDetails?.position }}</p>\n        <p><strong>Email:</strong> {{ employeeDetails?.email }}</p>\n      </mat-card-content>\n    </mat-card>\n  </div>\n\n  <mat-card-content class=\"b-t-1\">\n    <div class=\"table-responsive m-t-16\">\n      <table mat-table [dataSource]=\"dataSource\" class=\"mat-elevation-z8\">\n        <!-- Serial Number Column -->\n        <ng-container matColumnDef=\"serialNumber\">\n          <th mat-header-cell *matHeaderCellDef> Seri Numarası </th>\n          <td mat-cell *matCellDef=\"let element\"> {{ element.serialNumber }} </td>\n        </ng-container>\n\n        <!-- Category Name Column -->\n        <ng-container matColumnDef=\"categoryName\">\n          <th mat-header-cell *matHeaderCellDef> Kategori </th>\n          <td mat-cell *matCellDef=\"let element\"> {{ element.categoryName }} </td>\n        </ng-container>\n\n        <!-- Brand Name Column -->\n        <ng-container matColumnDef=\"brandName\">\n          <th mat-header-cell *matHeaderCellDef> Marka  </th>\n          <td mat-cell *matCellDef=\"let element\"> {{ element.brandName }} </td>\n        </ng-container>\n\n        <!-- Device Name Column -->\n        <ng-container matColumnDef=\"name\">\n          <th mat-header-cell *matHeaderCellDef> Cihaz </th>\n          <td mat-cell *matCellDef=\"let element\"> {{ element.name }} </td>\n        </ng-container>\n\n        <!-- Assigned Date Column -->\n        <ng-container matColumnDef=\"assignedDate\">\n          <th mat-header-cell *matHeaderCellDef> Verilme Tarihi </th>\n          <td mat-cell *matCellDef=\"let element\"> {{ element.assignedDate | date }} </td>\n        </ng-container>\n\n        <ng-container matColumnDef=\"delete\">\n          <th mat-header-cell *matHeaderCellDef> Remove</th>\n          <td mat-cell *matCellDef=\"let element\">\n            <button mat-icon-button color=\"warn\" (click)=\"deleteAssignDevice(element.id)\">\n              <mat-icon class=\"mat-18\">delete</mat-icon>\n            </button>\n          </td>\n        </ng-container>\n\n        <tr mat-header-row *matHeaderRowDef=\"displayedColumns\"></tr>\n        <tr mat-row *matRowDef=\"let row; columns: displayedColumns;\"></tr>\n      </table>\n    </div>\n  </mat-card-content>\n</mat-card>\n"],"mappings":"AACA,SAASA,kBAAkB,QAAQ,yBAAyB;AAG5D,SAASC,mBAAmB,QAAQ,yDAAyD;AAC7F,SAASC,qBAAqB,QAAQ,6DAA6D;;;;;;;;;;;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