{"ast":null,"code":"import { FormGroup, FormControl, Validators } from '@angular/forms';\nimport { SuccessModalComponent } from 'src/app/shared/modals/success-modal/success-modal.component';\nimport * as i0 from \"@angular/core\";\nimport * as i1 from \"src/app/shared/services/repository.service\";\nimport * as i2 from \"src/app/shared/services/repository-error-handler.service\";\nimport * as i3 from \"@angular/router\";\nimport * as i4 from \"ngx-bootstrap/modal\";\nfunction AddDeviceComponent_mat_error_11_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"mat-error\");\n    i0.ɵɵtext(1, \"Ad Gerekli\");\n    i0.ɵɵelementEnd();\n  }\n}\nfunction AddDeviceComponent_mat_error_12_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"mat-error\");\n    i0.ɵɵtext(1, \"60'tan fazla karakteriniz var\");\n    i0.ɵɵelementEnd();\n  }\n}\nfunction AddDeviceComponent_mat_error_17_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"mat-error\");\n    i0.ɵɵtext(1, \"Seri Numaras\\u0131 Gerekli\");\n    i0.ɵɵelementEnd();\n  }\n}\nfunction AddDeviceComponent_mat_error_18_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"mat-error\");\n    i0.ɵɵtext(1, \"100'den fazla karakteriniz var\");\n    i0.ɵɵelementEnd();\n  }\n}\nfunction AddDeviceComponent_mat_option_21_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"mat-option\", 15);\n    i0.ɵɵtext(1);\n    i0.ɵɵelementEnd();\n  }\n  if (rf & 2) {\n    const category_r1 = ctx.$implicit;\n    i0.ɵɵproperty(\"value\", category_r1.id);\n    i0.ɵɵadvance();\n    i0.ɵɵtextInterpolate1(\" \", category_r1.name, \" \");\n  }\n}\nfunction AddDeviceComponent_mat_error_22_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"mat-error\");\n    i0.ɵɵtext(1, \"Kategori Gerekli\");\n    i0.ɵɵelementEnd();\n  }\n}\nfunction AddDeviceComponent_mat_option_25_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"mat-option\", 15);\n    i0.ɵɵtext(1);\n    i0.ɵɵelementEnd();\n  }\n  if (rf & 2) {\n    const brand_r2 = ctx.$implicit;\n    i0.ɵɵproperty(\"value\", brand_r2.id);\n    i0.ɵɵadvance();\n    i0.ɵɵtextInterpolate1(\" \", brand_r2.name, \" \");\n  }\n}\nfunction AddDeviceComponent_mat_error_26_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"mat-error\");\n    i0.ɵɵtext(1, \"Marka Gerekli\");\n    i0.ɵɵelementEnd();\n  }\n}\nfunction AddDeviceComponent_mat_option_29_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"mat-option\", 15);\n    i0.ɵɵtext(1);\n    i0.ɵɵelementEnd();\n  }\n  if (rf & 2) {\n    const supplier_r3 = ctx.$implicit;\n    i0.ɵɵproperty(\"value\", supplier_r3.id);\n    i0.ɵɵadvance();\n    i0.ɵɵtextInterpolate1(\" \", supplier_r3.name, \" \");\n  }\n}\nfunction AddDeviceComponent_mat_error_30_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"mat-error\");\n    i0.ɵɵtext(1, \"Tedarik\\u00E7i gerekli\");\n    i0.ɵɵelementEnd();\n  }\n}\nexport class AddDeviceComponent {\n  constructor(repository, errorHandler, router, modal) {\n    this.repository = repository;\n    this.errorHandler = errorHandler;\n    this.router = router;\n    this.modal = modal;\n    this.errorMessage = '';\n    this.categories = [];\n    this.brands = [];\n    this.suppliers = [];\n  }\n  ngOnInit() {\n    this.deviceForm = new FormGroup({\n      name: new FormControl('', [Validators.required, Validators.maxLength(60)]),\n      serialNumber: new FormControl('', [Validators.required, Validators.maxLength(100)]),\n      categoryId: new FormControl('', [Validators.required]),\n      brandId: new FormControl('', [Validators.required]),\n      supplierId: new FormControl('', [Validators.required]),\n      isFaulty: new FormControl(false)\n    });\n    this.loadDropdownData();\n  }\n  loadDropdownData() {\n    this.repository.getData('api/categories').subscribe(res => this.categories = res, err => this.errorHandler.handleError(err));\n    this.repository.getData('api/brands').subscribe(res => this.brands = res, err => this.errorHandler.handleError(err));\n    this.repository.getData('api/suppliers').subscribe(res => this.suppliers = res, err => this.errorHandler.handleError(err));\n  }\n  validateControl(controlName) {\n    return this.deviceForm.get(controlName).invalid && this.deviceForm.get(controlName).touched;\n  }\n  hasError(controlName, errorName) {\n    return this.deviceForm.get(controlName).hasError(errorName);\n  }\n  createDevice(deviceFormValue) {\n    if (this.deviceForm.valid) {\n      this.executeDeviceCreation(deviceFormValue);\n    }\n  }\n  executeDeviceCreation(deviceFormValue) {\n    const device = {\n      name: deviceFormValue.name,\n      serialNumber: deviceFormValue.serialNumber,\n      categoryId: deviceFormValue.categoryId,\n      brandId: deviceFormValue.brandId,\n      supplierId: deviceFormValue.supplierId,\n      isFaulty: deviceFormValue.isFaulty\n    };\n    console.log(device);\n    const apiUrl = 'api/devices';\n    this.repository.create(apiUrl, device).subscribe({\n      next: createdDevice => {\n        const config = {\n          initialState: {\n            modalHeaderText: 'Success Message',\n            modalBodyText: `Device: ${createdDevice.name} created successfully`,\n            okButtonText: 'OK'\n          }\n        };\n        this.bsModalRef = this.modal.show(SuccessModalComponent, config);\n        this.bsModalRef.content.redirectOnOk.subscribe(() => this.redirectToDeviceList());\n      },\n      error: err => {\n        this.errorHandler.handleError(err);\n        this.errorMessage = this.errorHandler.errorMessage;\n      }\n    });\n  }\n  redirectToDeviceList() {\n    this.router.navigate(['/ui-components/device']);\n  }\n  static #_ = this.ɵfac = function AddDeviceComponent_Factory(t) {\n    return new (t || AddDeviceComponent)(i0.ɵɵdirectiveInject(i1.RepositoryService), i0.ɵɵdirectiveInject(i2.RepositoryErrorHandlerService), i0.ɵɵdirectiveInject(i3.Router), i0.ɵɵdirectiveInject(i4.BsModalService));\n  };\n  static #_2 = this.ɵcmp = /*@__PURE__*/i0.ɵɵdefineComponent({\n    type: AddDeviceComponent,\n    selectors: [[\"app-add-device\"]],\n    decls: 38,\n    vars: 12,\n    consts: [[\"fxLayout\", \"row wrap\", \"fxLayoutAlign\", \"center center\"], [\"fxFlex\", \"500px\", \"fxFlex.xs\", \"100%\", 1, \"b-1\", \"shadow-none\"], [\"autocomplete\", \"off\", \"novalidate\", \"\", 3, \"ngSubmit\", \"formGroup\"], [\"appearance\", \"outline\", \"color\", \"primary\", 1, \"w-100\"], [\"matInput\", \"\", \"type\", \"text\", \"placeholder\", \"Cihaz Ad\\u0131\", \"formControlName\", \"name\", \"id\", \"name\"], [\"align\", \"end\"], [4, \"ngIf\"], [\"matInput\", \"\", \"type\", \"text\", \"placeholder\", \"Seri Numaras\\u0131\", \"formControlName\", \"serialNumber\", \"id\", \"serialNumber\"], [\"placeholder\", \"Kategori Se\\u00E7in\", \"formControlName\", \"categoryId\", \"id\", \"categoryId\"], [3, \"value\", 4, \"ngFor\", \"ngForOf\"], [\"placeholder\", \"Marka Se\\u00E7in\", \"formControlName\", \"brandId\", \"id\", \"brandId\"], [\"placeholder\", \"Tedarik\\u00E7i Se\\u00E7in\", \"formControlName\", \"supplierId\", \"id\", \"supplierId\"], [\"formControlName\", \"isFaulty\"], [\"mat-flat-button\", \"\", \"color\", \"primary\", 1, \"w-100\", \"action-button\", 3, \"disabled\"], [\"type\", \"button\", \"mat-flat-button\", \"\", \"color\", \"warn\", 1, \"w-100\", 3, \"click\"], [3, \"value\"]],\n    template: function AddDeviceComponent_Template(rf, ctx) {\n      if (rf & 1) {\n        i0.ɵɵelementStart(0, \"section\", 0)(1, \"mat-card\", 1)(2, \"mat-card-header\")(3, \"mat-card-title\");\n        i0.ɵɵtext(4, \"Yeni bir cihaz ekle\");\n        i0.ɵɵelementEnd()();\n        i0.ɵɵelementStart(5, \"form\", 2);\n        i0.ɵɵlistener(\"ngSubmit\", function AddDeviceComponent_Template_form_ngSubmit_5_listener() {\n          return ctx.createDevice(ctx.deviceForm.value);\n        });\n        i0.ɵɵelementStart(6, \"mat-card-content\")(7, \"mat-form-field\", 3);\n        i0.ɵɵelement(8, \"input\", 4);\n        i0.ɵɵelementStart(9, \"mat-hint\", 5);\n        i0.ɵɵtext(10, \"60 karakterden uzun olmamal\\u0131d\\u0131r.\");\n        i0.ɵɵelementEnd();\n        i0.ɵɵtemplate(11, AddDeviceComponent_mat_error_11_Template, 2, 0, \"mat-error\", 6)(12, AddDeviceComponent_mat_error_12_Template, 2, 0, \"mat-error\", 6);\n        i0.ɵɵelementEnd();\n        i0.ɵɵelementStart(13, \"mat-form-field\", 3);\n        i0.ɵɵelement(14, \"input\", 7);\n        i0.ɵɵelementStart(15, \"mat-hint\", 5);\n        i0.ɵɵtext(16, \"100 karakterden uzun olmamal\\u0131d\\u0131r.\");\n        i0.ɵɵelementEnd();\n        i0.ɵɵtemplate(17, AddDeviceComponent_mat_error_17_Template, 2, 0, \"mat-error\", 6)(18, AddDeviceComponent_mat_error_18_Template, 2, 0, \"mat-error\", 6);\n        i0.ɵɵelementEnd();\n        i0.ɵɵelementStart(19, \"mat-form-field\", 3)(20, \"mat-select\", 8);\n        i0.ɵɵtemplate(21, AddDeviceComponent_mat_option_21_Template, 2, 2, \"mat-option\", 9);\n        i0.ɵɵelementEnd();\n        i0.ɵɵtemplate(22, AddDeviceComponent_mat_error_22_Template, 2, 0, \"mat-error\", 6);\n        i0.ɵɵelementEnd();\n        i0.ɵɵelementStart(23, \"mat-form-field\", 3)(24, \"mat-select\", 10);\n        i0.ɵɵtemplate(25, AddDeviceComponent_mat_option_25_Template, 2, 2, \"mat-option\", 9);\n        i0.ɵɵelementEnd();\n        i0.ɵɵtemplate(26, AddDeviceComponent_mat_error_26_Template, 2, 0, \"mat-error\", 6);\n        i0.ɵɵelementEnd();\n        i0.ɵɵelementStart(27, \"mat-form-field\", 3)(28, \"mat-select\", 11);\n        i0.ɵɵtemplate(29, AddDeviceComponent_mat_option_29_Template, 2, 2, \"mat-option\", 9);\n        i0.ɵɵelementEnd();\n        i0.ɵɵtemplate(30, AddDeviceComponent_mat_error_30_Template, 2, 0, \"mat-error\", 6);\n        i0.ɵɵelementEnd();\n        i0.ɵɵelementStart(31, \"mat-checkbox\", 12);\n        i0.ɵɵtext(32, \"Ar\\u0131zal\\u0131\");\n        i0.ɵɵelementEnd()();\n        i0.ɵɵelementStart(33, \"mat-card-actions\")(34, \"button\", 13);\n        i0.ɵɵtext(35, \"Cihaz Ekle\");\n        i0.ɵɵelementEnd();\n        i0.ɵɵelementStart(36, \"button\", 14);\n        i0.ɵɵlistener(\"click\", function AddDeviceComponent_Template_button_click_36_listener() {\n          return ctx.redirectToDeviceList();\n        });\n        i0.ɵɵtext(37, \"\\u0130ptal et\");\n        i0.ɵɵelementEnd()()()()();\n      }\n      if (rf & 2) {\n        i0.ɵɵadvance(5);\n        i0.ɵɵproperty(\"formGroup\", ctx.deviceForm);\n        i0.ɵɵadvance(6);\n        i0.ɵɵproperty(\"ngIf\", ctx.hasError(\"name\", \"required\"));\n        i0.ɵɵadvance();\n        i0.ɵɵproperty(\"ngIf\", ctx.hasError(\"name\", \"maxlength\"));\n        i0.ɵɵadvance(5);\n        i0.ɵɵproperty(\"ngIf\", ctx.hasError(\"serialNumber\", \"required\"));\n        i0.ɵɵadvance();\n        i0.ɵɵproperty(\"ngIf\", ctx.hasError(\"serialNumber\", \"maxlength\"));\n        i0.ɵɵadvance(3);\n        i0.ɵɵproperty(\"ngForOf\", ctx.categories);\n        i0.ɵɵadvance();\n        i0.ɵɵproperty(\"ngIf\", ctx.hasError(\"categoryId\", \"required\"));\n        i0.ɵɵadvance(3);\n        i0.ɵɵproperty(\"ngForOf\", ctx.brands);\n        i0.ɵɵadvance();\n        i0.ɵɵproperty(\"ngIf\", ctx.hasError(\"brandId\", \"required\"));\n        i0.ɵɵadvance(3);\n        i0.ɵɵproperty(\"ngForOf\", ctx.suppliers);\n        i0.ɵɵadvance();\n        i0.ɵɵproperty(\"ngIf\", ctx.hasError(\"supplierId\", \"required\"));\n        i0.ɵɵadvance(4);\n        i0.ɵɵproperty(\"disabled\", !ctx.deviceForm.valid);\n      }\n    },\n    styles: [\"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIifQ== */\"]\n  });\n}","map":{"version":3,"names":["FormGroup","FormControl","Validators","SuccessModalComponent","i0","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵproperty","category_r1","id","ɵɵadvance","ɵɵtextInterpolate1","name","brand_r2","supplier_r3","AddDeviceComponent","constructor","repository","errorHandler","router","modal","errorMessage","categories","brands","suppliers","ngOnInit","deviceForm","required","maxLength","serialNumber","categoryId","brandId","supplierId","isFaulty","loadDropdownData","getData","subscribe","res","err","handleError","validateControl","controlName","get","invalid","touched","hasError","errorName","createDevice","deviceFormValue","valid","executeDeviceCreation","device","console","log","apiUrl","create","next","createdDevice","config","initialState","modalHeaderText","modalBodyText","okButtonText","bsModalRef","show","content","redirectOnOk","redirectToDeviceList","error","navigate","_","ɵɵdirectiveInject","i1","RepositoryService","i2","RepositoryErrorHandlerService","i3","Router","i4","BsModalService","_2","selectors","decls","vars","consts","template","AddDeviceComponent_Template","rf","ctx","ɵɵlistener","AddDeviceComponent_Template_form_ngSubmit_5_listener","value","ɵɵelement","ɵɵtemplate","AddDeviceComponent_mat_error_11_Template","AddDeviceComponent_mat_error_12_Template","AddDeviceComponent_mat_error_17_Template","AddDeviceComponent_mat_error_18_Template","AddDeviceComponent_mat_option_21_Template","AddDeviceComponent_mat_error_22_Template","AddDeviceComponent_mat_option_25_Template","AddDeviceComponent_mat_error_26_Template","AddDeviceComponent_mat_option_29_Template","AddDeviceComponent_mat_error_30_Template","AddDeviceComponent_Template_button_click_36_listener"],"sources":["C:\\Users\\Cem\\Desktop\\InventryUI-Client\\src\\app\\pages\\ui-components\\device\\add-device\\add-device.component.ts","C:\\Users\\Cem\\Desktop\\InventryUI-Client\\src\\app\\pages\\ui-components\\device\\add-device\\add-device.component.html"],"sourcesContent":["import { Component, OnInit } from '@angular/core';\nimport { FormGroup, FormControl, Validators } from '@angular/forms';\nimport { Router } from '@angular/router';\nimport { BsModalRef, BsModalService, ModalOptions } from 'ngx-bootstrap/modal';\nimport { SuccessModalComponent } from 'src/app/shared/modals/success-modal/success-modal.component';\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-add-device',\n  templateUrl: './add-device.component.html',\n  styleUrls: ['./add-device.component.css']\n})\nexport class AddDeviceComponent implements OnInit {\n\n  public deviceForm: FormGroup | any;\n  public errorMessage: string = '';\n  public bsModalRef?: BsModalRef;\n  public categories: any[] = [];\n  public brands: any[] = [];\n  public suppliers: any[] = [];\n\n  constructor(\n    private repository: RepositoryService,\n    private errorHandler: RepositoryErrorHandlerService,\n    private router: Router,\n    private modal: BsModalService\n  ) { }\n\n  ngOnInit(): void {\n    this.deviceForm = new FormGroup({\n      name: new FormControl('', [Validators.required, Validators.maxLength(60)]),\n      serialNumber: new FormControl('', [Validators.required, Validators.maxLength(100)]),\n      categoryId: new FormControl('', [Validators.required]),\n      brandId: new FormControl('', [Validators.required]),\n      supplierId: new FormControl('', [Validators.required]),\n      isFaulty: new FormControl(false)\n    });\n\n    this.loadDropdownData();\n  }\n\n  private loadDropdownData() {\n    this.repository.getData('api/categories')\n      .subscribe(res => this.categories = res as any[], err => this.errorHandler.handleError(err));\n    this.repository.getData('api/brands')\n      .subscribe(res => this.brands = res as any[], err => this.errorHandler.handleError(err));\n    this.repository.getData('api/suppliers')\n      .subscribe(res => this.suppliers = res as any[], err => this.errorHandler.handleError(err));\n  }\n\n  validateControl(controlName: string): boolean {\n    return this.deviceForm.get(controlName).invalid && this.deviceForm.get(controlName).touched;\n  }\n\n  hasError(controlName: string, errorName: string): boolean {\n    return this.deviceForm.get(controlName).hasError(errorName);\n  }\n\n  createDevice(deviceFormValue: any): void {\n    if (this.deviceForm.valid) {\n      this.executeDeviceCreation(deviceFormValue);\n    }\n  }\n\n  private executeDeviceCreation(deviceFormValue: any): void {\n    const device = {\n      name: deviceFormValue.name,\n      serialNumber: deviceFormValue.serialNumber,\n      categoryId: deviceFormValue.categoryId,\n      brandId: deviceFormValue.brandId,\n      supplierId: deviceFormValue.supplierId,\n      isFaulty: deviceFormValue.isFaulty\n    };\n console.log(device);\n    const apiUrl = 'api/devices';\n    this.repository.create(apiUrl, device)\n      .subscribe({\n        next: (createdDevice: any) => {\n          const config: ModalOptions = {\n            initialState: {\n              modalHeaderText: 'Success Message',\n              modalBodyText: `Device: ${createdDevice.name} created successfully`,\n              okButtonText: 'OK'\n            }\n          };\n          this.bsModalRef = this.modal.show(SuccessModalComponent, config);\n          this.bsModalRef.content.redirectOnOk.subscribe(() => this.redirectToDeviceList());\n        },\n        error: (err: any) => {\n          this.errorHandler.handleError(err);\n          this.errorMessage = this.errorHandler.errorMessage;\n        }\n      });\n  }\n\n  redirectToDeviceList(): void {\n    this.router.navigate(['/ui-components/device']);\n  }\n\n}\n","<section fxLayout=\"row wrap\" fxLayoutAlign=\"center center\">\n  <mat-card fxFlex=\"500px\" fxFlex.xs=\"100%\" class=\"b-1 shadow-none\">\n    <mat-card-header>\n      <mat-card-title>Yeni bir cihaz ekle</mat-card-title>\n    </mat-card-header>\n    <form [formGroup]=\"deviceForm\" autocomplete=\"off\" novalidate (ngSubmit)=\"createDevice(deviceForm.value)\">\n      <mat-card-content>\n        <!-- Name Input -->\n        <mat-form-field appearance=\"outline\" class=\"w-100\" color=\"primary\">\n          <input matInput type=\"text\" placeholder=\"Cihaz Adı\" formControlName=\"name\" id=\"name\">\n          <mat-hint align=\"end\">60 karakterden uzun olmamalıdır.</mat-hint>\n          <mat-error *ngIf=\"hasError('name', 'required')\">Ad Gerekli</mat-error>\n          <mat-error *ngIf=\"hasError('name', 'maxlength')\">60'tan fazla karakteriniz var</mat-error>\n        </mat-form-field>\n\n        <!-- Serial Number Input -->\n        <mat-form-field appearance=\"outline\" class=\"w-100\" color=\"primary\">\n          <input matInput type=\"text\" placeholder=\"Seri Numarası\" formControlName=\"serialNumber\" id=\"serialNumber\">\n          <mat-hint align=\"end\">100 karakterden uzun olmamalıdır.</mat-hint>\n          <mat-error *ngIf=\"hasError('serialNumber', 'required')\">Seri Numarası Gerekli</mat-error>\n          <mat-error *ngIf=\"hasError('serialNumber', 'maxlength')\">100'den fazla karakteriniz var</mat-error>\n        </mat-form-field>\n\n        <!-- Category Dropdown -->\n        <mat-form-field appearance=\"outline\" class=\"w-100\" color=\"primary\">\n          <mat-select placeholder=\"Kategori Seçin\" formControlName=\"categoryId\" id=\"categoryId\">\n            <mat-option *ngFor=\"let category of categories\" [value]=\"category.id\">\n              {{ category.name }}\n            </mat-option>\n          </mat-select>\n          <mat-error *ngIf=\"hasError('categoryId', 'required')\">Kategori Gerekli</mat-error>\n        </mat-form-field>\n\n        <!-- Brand Dropdown -->\n        <mat-form-field appearance=\"outline\" class=\"w-100\" color=\"primary\">\n          <mat-select placeholder=\"Marka Seçin\" formControlName=\"brandId\" id=\"brandId\">\n            <mat-option *ngFor=\"let brand of brands\" [value]=\"brand.id\">\n              {{ brand.name }}\n            </mat-option>\n          </mat-select>\n          <mat-error *ngIf=\"hasError('brandId', 'required')\">Marka Gerekli</mat-error>\n        </mat-form-field>\n\n        <!-- Supplier Dropdown -->\n        <mat-form-field appearance=\"outline\" class=\"w-100\" color=\"primary\">\n          <mat-select placeholder=\"Tedarikçi Seçin\" formControlName=\"supplierId\" id=\"supplierId\">\n            <mat-option *ngFor=\"let supplier of suppliers\" [value]=\"supplier.id\">\n              {{ supplier.name }}\n            </mat-option>\n          </mat-select>\n          <mat-error *ngIf=\"hasError('supplierId', 'required')\">Tedarikçi gerekli</mat-error>\n        </mat-form-field>\n\n        <!-- Is Faulty Checkbox -->\n        <mat-checkbox formControlName=\"isFaulty\">Arızalı</mat-checkbox>\n      </mat-card-content>\n      <mat-card-actions>\n        <button mat-flat-button color=\"primary\" class=\"w-100 action-button\" [disabled]=\"!deviceForm.valid\">Cihaz Ekle</button>\n        <button type=\"button\" mat-flat-button color=\"warn\" class=\"w-100\"\n          (click)=\"redirectToDeviceList()\">İptal et</button>\n      </mat-card-actions>\n    </form>\n  </mat-card>\n</section>\n"],"mappings":"AACA,SAASA,SAAS,EAAEC,WAAW,EAAEC,UAAU,QAAQ,gBAAgB;AAGnE,SAASC,qBAAqB,QAAQ,6DAA6D;;;;;;;;ICOzFC,EAAA,CAAAC,cAAA,gBAAgD;IAAAD,EAAA,CAAAE,MAAA,iBAAU;IAAAF,EAAA,CAAAG,YAAA,EAAY;;;;;IACtEH,EAAA,CAAAC,cAAA,gBAAiD;IAAAD,EAAA,CAAAE,MAAA,oCAA6B;IAAAF,EAAA,CAAAG,YAAA,EAAY;;;;;IAO1FH,EAAA,CAAAC,cAAA,gBAAwD;IAAAD,EAAA,CAAAE,MAAA,iCAAqB;IAAAF,EAAA,CAAAG,YAAA,EAAY;;;;;IACzFH,EAAA,CAAAC,cAAA,gBAAyD;IAAAD,EAAA,CAAAE,MAAA,qCAA8B;IAAAF,EAAA,CAAAG,YAAA,EAAY;;;;;IAMjGH,EAAA,CAAAC,cAAA,qBAAsE;IACpED,EAAA,CAAAE,MAAA,GACF;IAAAF,EAAA,CAAAG,YAAA,EAAa;;;;IAFmCH,EAAA,CAAAI,UAAA,UAAAC,WAAA,CAAAC,EAAA,CAAqB;IACnEN,EAAA,CAAAO,SAAA,EACF;IADEP,EAAA,CAAAQ,kBAAA,MAAAH,WAAA,CAAAI,IAAA,MACF;;;;;IAEFT,EAAA,CAAAC,cAAA,gBAAsD;IAAAD,EAAA,CAAAE,MAAA,uBAAgB;IAAAF,EAAA,CAAAG,YAAA,EAAY;;;;;IAMhFH,EAAA,CAAAC,cAAA,qBA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