View file File name : main.1eec7e87ed3546625a0a.bundle.js Content :webpackJsonp([1],{"/UYd":function(e,t){e.exports='<div class="page-title">\r\n <div class="row">\r\n <div class="col-sm-6">\r\n <h4 class="mb-0"> {{ \'jobs\' | translate }} </h4>\r\n </div>\r\n <div class="col-sm-6">\r\n <ol class="breadcrumb pt-0 float-left float-sm-right ">\r\n <li class="breadcrumb-item"><a href="javascript:void(0);" class="default-color">{{ \'pages_setting\' | translate\r\n }}</a></li>\r\n <li class="breadcrumb-item active">{{ \'jobs\' | translate }}</li>\r\n </ol>\r\n </div>\r\n </div>\r\n</div>\r\n\x3c!-- main body --\x3e\r\n<div class="row">\r\n <div class="col-xl-12 mb-30">\r\n <div class="card card-statistics h-100">\r\n <div class="card-body">\r\n <h5 class="card-title mb-0">{{ \'control_jobs\' | translate }}</h5>\r\n\r\n \x3c!-- add or update location form--\x3e\r\n <form novalidate #locationForm="ngForm" (ngSubmit)="formSubmit(locationForm)">\r\n <div class="form-row">\r\n <div class="form-group col-md-4">\r\n <label>{{ \'arabic_name\' | translate }}</label>\r\n <input myArabicOnly type="text" class="form-control" placeholder="{{ \'arabic_name\' | translate }}"\r\n [(ngModel)]="addUpdateLocation.NameAr" name="nameAr" required>\r\n\r\n <div class="validation-error "\r\n *ngIf="addUpdateLocation.submit && locationForm.controls[\'nameAr\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n </div>\r\n </div>\r\n\r\n\r\n <div class="form-group col-md-4">\r\n <label>{{ \'english_name\' | translate }}</label>\r\n <input myEnglishOnly type="text" class="form-control" placeholder="{{ \'english_name\' | translate }}"\r\n [(ngModel)]="addUpdateLocation.NameEn" name="nameEn" required>\r\n <div class="validation-error "\r\n *ngIf="addUpdateLocation.submit && locationForm.controls[\'nameEn\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n </div>\r\n </div>\r\n\r\n\r\n\r\n </div>\r\n\r\n <div class="form-group clearfix ">\r\n\r\n <button type="submit" class="btn btn-success btn-lg">{{ (addUpdateLocation.id==0 ?\'add\':\'edit\') |\r\n translate}}\r\n </button>\r\n <button type="button" class="btn btn-danger btn-lg" (click)="resetForm()">{{ \'clear\' | translate }}</button>\r\n\r\n </div>\r\n </form>\r\n\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<div class="row">\r\n <div class="col-xl-12 mb-30">\r\n <div class="card card-statistics h-100">\r\n <div class="card-body">\r\n <h5 class="card-title mb-0">{{ \'jobs_list\' | translate }}</h5>\r\n\r\n <div class="form-group col-md-4" style="margin-top: 20px">\r\n\r\n <input type="text" class="form-control" placeholder="{{ \'search\' | translate }}"\r\n (input)="filterLocations($event)">\r\n </div>\r\n <div class="table-responsive">\r\n <ngx-datatable\r\n\r\n [messages]="{emptyMessage: \'NODATA\' | translate, totalMessage: \'TOTAL\' | translate, selectedMessage: false}"\r\n\r\n class="bootstrap" [rows]="locations" [columns]="columns" [columnMode]="\'force\'"\r\n [headerHeight]="50" [footerHeight]="50" [rowHeight]="\'auto\'" [limit]="10">\r\n\r\n \x3c!--edit cell--\x3e\r\n <ng-template #editTemplate let-row="row" let-value="value" let-rowIndex="rowIndex">\r\n <span class="text-primary" (click)="editLocation(rowIndex)"><i class="fa fa-edit"></i></span>\r\n </ng-template>\r\n\r\n \x3c!-- delete cell--\x3e\r\n <ng-template #deleteTemplate let-row="row" let-value="value" let-rowIndex="rowIndex">\r\n <span appCanDelete class="text-danger" (click)="deleteLocation(rowIndex)"> <i class="fa fa-trash"></i></span>\r\n </ng-template>\r\n </ngx-datatable>\r\n\r\n </div>\r\n\r\n </div>\r\n </div>\r\n </div>\r\n\r\n\r\n</div>\r\n'},0:function(e,t){},"0R0W":function(e,t){e.exports='<div class="page-title">\r\n <div class="row">\r\n <div class="col-sm-6">\r\n <h4 class="mb-0"> {{ \'location\' | translate }} </h4>\r\n </div>\r\n <div class="col-sm-6">\r\n <ol class="breadcrumb pt-0 float-left float-sm-right ">\r\n <li class="breadcrumb-item"><a href="javascript:void(0);" class="default-color">{{ \'pages_setting\' | translate\r\n }}</a></li>\r\n <li class="breadcrumb-item active">{{ \'location\' | translate }}</li>\r\n </ol>\r\n </div>\r\n </div>\r\n</div>\r\n\x3c!-- main body --\x3e\r\n<div class="row">\r\n <div class="col-xl-12 mb-30">\r\n <div class="card card-statistics h-100">\r\n <div class="card-body">\r\n <h5 class="card-title mb-0">{{ \'control_location\' | translate }}</h5>\r\n\r\n \x3c!-- add or update location form--\x3e\r\n <form novalidate #locationForm="ngForm" (ngSubmit)="formSubmit(locationForm)">\r\n <div class="form-row">\r\n <div class="form-group col-md-4">\r\n <label>{{ \'arabic_name\' | translate }}</label>\r\n <input\r\n myArabicOnly\r\n type="text" class="form-control" placeholder="{{ \'arabic_name\' | translate }}"\r\n [(ngModel)]="addUpdateLocation.NameAr" name="nameAr" required>\r\n\r\n <div class="validation-error "\r\n *ngIf="addUpdateLocation.submit && locationForm.controls[\'nameAr\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n </div>\r\n </div>\r\n\r\n\r\n <div class="form-group col-md-4">\r\n <label>{{ \'english_name\' | translate }}</label>\r\n <input\r\n myEnglishOnly\r\n type="text" class="form-control" placeholder="{{ \'english_name\' | translate }}"\r\n [(ngModel)]="addUpdateLocation.NameEn" name="nameEn" required>\r\n <div class="validation-error "\r\n *ngIf="addUpdateLocation.submit && locationForm.controls[\'nameEn\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n </div>\r\n </div>\r\n\r\n\r\n <div class="form-group col-md-4">\r\n <label>{{ \'city\' | translate }}</label>\r\n <input type="text" class="form-control" placeholder="{{ \'city\' | translate }}"\r\n [(ngModel)]="addUpdateLocation.CityName" name="cityName" required>\r\n <div class="validation-error "\r\n *ngIf="addUpdateLocation.submit && locationForm.controls[\'cityName\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div class="form-group clearfix ">\r\n\r\n <button type="submit" class="btn btn-success btn-lg">{{ (addUpdateLocation.id==0 ?\'add\':\'edit\') |\r\n translate}}\r\n </button>\r\n <button type="button" class="btn btn-danger btn-lg" (click)="resetForm()">{{ \'clear\' | translate }}</button>\r\n\r\n </div>\r\n </form>\r\n\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<div class="row">\r\n <div class="col-xl-12 mb-30">\r\n <div class="card card-statistics h-100">\r\n <div class="card-body">\r\n <h5 class="card-title mb-0">{{ \'locations_list\' | translate }}\r\n <i >\r\n <img (click)="printExcel()" src="assets/images/excel_icon.png" >\r\n\r\n </i>\r\n </h5>\r\n\r\n <div class="form-group col-md-4" style="margin-top: 20px">\r\n\r\n <input type="text" class="form-control" placeholder="{{ \'search\' | translate }}"\r\n (input)="filterLocations($event)">\r\n </div>\r\n <div class="table-responsive">\r\n <ngx-datatable\r\n\r\n [messages]="\r\n\r\n {emptyMessage: \'NODATA\' | translate, totalMessage: \'TOTAL\' | translate,\r\n selectedMessage: false}"\r\n\r\n class="bootstrap" [rows]="locations" [columns]="columns" [columnMode]="\'force\'"\r\n [headerHeight]="50" [footerHeight]="50" [rowHeight]="\'auto\'" [limit]="10">\r\n\r\n \x3c!--edit cell--\x3e\r\n <ng-template #editTemplate let-row="row" let-value="value" let-rowIndex="rowIndex">\r\n <span class="text-primary" (click)="editLocation(rowIndex)"><i class="fa fa-edit"></i></span>\r\n </ng-template>\r\n\r\n \x3c!-- delete cell--\x3e\r\n <ng-template #deleteTemplate let-row="row" let-value="value" let-rowIndex="rowIndex">\r\n <span appCanDelete class="text-danger" (click)="deleteLocation(rowIndex)"> <i class="fa fa-trash"></i></span>\r\n </ng-template>\r\n </ngx-datatable>\r\n\r\n </div>\r\n\r\n </div>\r\n </div>\r\n </div>\r\n\r\n\r\n</div>\r\n'},"0S75":function(e,t){e.exports='\x3c!-- main body --\x3e\r\n\r\n\r\n<app-model class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"\r\n aria-hidden="true">\r\n\r\n <div class="modal-dialog modal-lg" role="document">\r\n <div class="modal-content">\r\n <div class="modal-header">\r\n <div class="modal-title" id="exampleModalLabel">\r\n <h5 class="modal-title">\r\n\r\n\r\n <h5 class="modal-title" *ngIf="editMode == false">{{ \'add_new_emp\' | translate }}</h5>\r\n <h5 class="modal-title" *ngIf="editMode == true">{{ \'edit_new_emp\' | translate }}</h5>\r\n\r\n\r\n </h5>\r\n\r\n </div>\r\n <button type="button" class="close" data-dismiss="modal" aria-label="Close"\r\n (click)="closeModal()">\r\n <span style="color: white" aria-hidden="true">×</span>\r\n </button>\r\n </div>\r\n <div class="modal-body">\r\n\r\n <form novalidate #addasset="ngForm" (ngSubmit)="addNewAsset(addasset)">\r\n\r\n\r\n <div class="accordion accordion-border mb-30">\r\n\r\n\r\n <div class="acd-group" [ngClass]="{\'acd-active\':selectedTab === \'collapse1\'}">\r\n\r\n\r\n <a class="acd-heading" [ngClass]="{\'acd-active\':selectedTab === \'collapse1\'}" href="javascript:void(0);"\r\n data-toggle="collapse"\r\n data-target="#collapse1" (click)="expandCollpse(\'collapse1\')">\r\n\r\n {{\'main_info\' |translate}}\r\n </a>\r\n <div class="acd-des collapse" id="collapse1">\r\n\r\n <div class="row">\r\n <div class="form-group col-md-4">\r\n <label>{{ \'arabic_name\' | translate }}</label>\r\n <input required type="text" class="form-control"\r\n myArabicOnly\r\n name="arabic_name" [(ngModel)]="arabic_name"\r\n placeholder="{{ \'arabic_name\' | translate }}">\r\n\r\n <div class="validation-error "\r\n *ngIf=" submitForm && addasset.controls[\'arabic_name\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n </div>\r\n </div>\r\n\r\n\r\n <div class="form-group col-md-4">\r\n <label> {{ \'english_name\' | translate }}</label>\r\n <input\r\n myEnglishOnly\r\n name="english_name" type="text" class="form-control"\r\n [(ngModel)]="english_name" required\r\n placeholder="{{ \'english_name\' | translate }}">\r\n\r\n\r\n <div class="validation-error "\r\n *ngIf=" submitForm && addasset.controls[\'english_name\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n </div>\r\n </div>\r\n\r\n\r\n <div class="form-group col-md-4" *ngIf="false">\r\n <label>{{ \'arabic_address\' | translate }}</label>\r\n <input type="text" class="form-control"\r\n name="arabic_address" [(ngModel)]="arabic_address"\r\n\r\n myArabicOnly\r\n placeholder="{{ \'arabic_address\' | translate }}">\r\n\r\n <div class="validation-error "\r\n *ngIf=" submitForm && addasset.controls[\'arabic_address\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n\r\n </div>\r\n </div>\r\n\r\n\r\n <div class="form-group col-md-4" *ngIf="false">\r\n <label>{{ \'english_address\' | translate }}</label>\r\n <input type="text" class="form-control"\r\n name="english_address" [(ngModel)]="english_address"\r\n myEnglishOnly\r\n placeholder="{{ \'english_address\' | translate }}">\r\n\r\n <div class="validation-error "\r\n *ngIf=" submitForm && addasset.controls[\'english_address\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n\r\n </div>\r\n\r\n </div>\r\n\r\n\r\n <div class="form-group col-md-4">\r\n <label>{{ \'mobile\' | translate }}</label>\r\n <input type="text" class="form-control"\r\n maxlength="10" myNumberOnly\r\n name="mobileNumber" [(ngModel)]="mobileNumber"\r\n\r\n\r\n placeholder="{{ \'mobile\' | translate }}">\r\n\r\n\r\n <div class="validation-error "\r\n *ngIf=" submitForm && addasset.controls[\'mobileNumber\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n\r\n </div>\r\n </div>\r\n\r\n\r\n <div class="form-group col-md-4">\r\n <label> {{ \'location\' | translate }} </label>\r\n <select class="form-control" name="selectedlocation" [(ngModel)]="selectedlocation" required>\r\n <option value="">{{ \'select\' | translate }}</option>\r\n\r\n <option *ngFor="let obj of locations" [value]="obj.Id">{{obj | translate }}</option>\r\n\r\n\r\n </select>\r\n\r\n <div class="validation-error "\r\n *ngIf=" submitForm && addasset.controls[\'selectedlocation\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n\r\n </div>\r\n </div>\r\n\r\n <div class="form-group col-md-4" *ngIf="false">\r\n <label> {{ \'nationalities\' | translate }} </label>\r\n <select name="selectednationalities" [(ngModel)]="selectednationalities" class="form-control">\r\n <option value="">{{ \'select\' | translate }}</option>\r\n <option *ngFor="let obj of nationalities" [value]="obj.Id">{{obj | translate }}</option>\r\n\r\n\r\n </select>\r\n\r\n <div class="validation-error "\r\n *ngIf=" submitForm && addasset.controls[\'selectednationalities\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n\r\n </div>\r\n </div>\r\n <div class="form-group col-md-4" *ngIf="false">\r\n <label> {{ \'jobs\' | translate }} </label>\r\n <select name="selectedJops" class="form-control" [(ngModel)]="selectedJops">\r\n <option value="">{{ \'select\' | translate }}</option>\r\n\r\n <option *ngFor="let obj of jobs" [value]="obj.Id">{{obj | translate }}</option>\r\n\r\n\r\n </select>\r\n\r\n <div class="validation-error "\r\n *ngIf=" submitForm && addasset.controls[\'selectedJops\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n\r\n </div>\r\n </div>\r\n\r\n\r\n <div class="form-group col-md-4">\r\n <label> {{ \'personal_pic\' | translate }} </label>\r\n\r\n <div class="custom-file">\r\n <input type="file" class="custom-file-input" id="customFile"\r\n (change)="fileSelect($event)">\r\n <label class="custom-file-label" for="customFile"> </label>\r\n </div>\r\n </div>\r\n\r\n <div class="form-group col-md-2" *ngIf="userImageURL != \'\'">\r\n <img style="width: 100px; height: 100px"\r\n [src]="userImageURL"\r\n class="rounded float-left\r\n justify-content-center align-items-center"\r\n alt="...">\r\n\r\n\r\n </div>\r\n\r\n\r\n </div>\r\n </div>\r\n </div>\r\n\r\n\r\n <div class="acd-group" [ngClass]="{\'acd-active\':selectedTab === \'collapse2\'}">\r\n <a class="acd-heading" [ngClass]="{\'acd-active\':selectedTab === \'collapse2\'}"\r\n href="javascript:void(0);" data-toggle="collapse"\r\n data-target="#collapse2" (click)="expandCollpse(\'collapse2\')">\r\n\r\n {{\'emp_info\' |translate}}\r\n\r\n </a>\r\n <div class="acd-des collapse" id="collapse2">\r\n\r\n <div class="row">\r\n\r\n\r\n <div class="form-group col-md-4">\r\n <label>{{ \'extension_number\' | translate }}</label>\r\n <input type="number" class="form-control"\r\n name="extension_number" [(ngModel)]="extension_number"\r\n\r\n\r\n placeholder="{{ \'extension_number\' | translate }}">\r\n\r\n <div class="validation-error "\r\n *ngIf=" submitForm && addasset.controls[\'extension_number\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n\r\n </div>\r\n </div>\r\n\r\n\r\n <div class="form-group col-md-4">\r\n <label> {{ \'emp_number\' | translate }}</label>\r\n <input type="text"\r\n name="emp_number" [(ngModel)]="emp_number"\r\n class="form-control" placeholder=" {{ \'emp_number\' | translate }}">\r\n\r\n\r\n <div class="validation-error "\r\n *ngIf=" submitForm && addasset.controls[\'emp_number\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n\r\n </div>\r\n </div>\r\n\r\n\r\n <div class="form-group col-md-4">\r\n <label> {{ \'ip_address\' | translate }} </label>\r\n <input type="text" class="form-control"\r\n name="ip_address" [(ngModel)]="ip_address"\r\n\r\n\r\n placeholder="{{ \'ip_address\' | translate }}">\r\n\r\n\r\n <div class="validation-error "\r\n *ngIf=" submitForm && addasset.controls[\'ip_address\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n\r\n </div>\r\n\r\n </div>\r\n\r\n\r\n <div class="form-group col-md-4">\r\n <label>{{ \'device_name\' | translate }} </label>\r\n <input type="text" class="form-control"\r\n name="device_name" [(ngModel)]="device_name"\r\n\r\n placeholder="{{ \'device_name\' | translate }}">\r\n\r\n <div class="validation-error "\r\n *ngIf=" submitForm && addasset.controls[\'device_name\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n\r\n </div>\r\n\r\n\r\n </div>\r\n\r\n\r\n <div class="form-group col-md-4">\r\n <label> {{ \'emps_departments\' | translate }} </label>\r\n <select name="selectedDeps" class="form-control" [(ngModel)]="selectedDeps">\r\n <option value="">{{ \'select\' | translate }}</option>\r\n <option *ngFor="let obj of main_categories" [value]="obj.Id">{{obj | translate }}</option>\r\n\r\n </select>\r\n\r\n <div class="validation-error "\r\n *ngIf=" submitForm && addasset.controls[\'selectedDeps\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n\r\n </div>\r\n </div>\r\n\r\n\r\n <div class="form-group col-md-4">\r\n <label> {{ \'your_manger\' | translate }} </label>\r\n\r\n\r\n <ng-select\r\n [multiple]="false"\r\n name="selectedAssigner"\r\n placeholder="{{ \'select\' | translate }}"\r\n\r\n [(ngModel)]="selectedAssigner">\r\n <ng-option *ngFor="let obj of assigners" [value]="obj.Id">\r\n {{obj | translate }}</ng-option>\r\n\r\n </ng-select>\r\n\r\n\r\n\r\n\r\n <div class="validation-error "\r\n *ngIf=" submitForm && addasset.controls[\'selectedAssigner\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n\r\n </div>\r\n </div>\r\n\r\n\r\n <div class="form-group col-md-4" *ngIf="false">\r\n <label> {{ \'hiring_date\' | translate }} </label>\r\n <div class="input-group">\r\n <input [(ngModel)]="hireDate" class="form-control" placeholder="yyyy-mm-dd"\r\n name="hireDate" ngbDatepicker #d="ngbDatepicker">\r\n <div class="input-group-append">\r\n <button class="btn btn-secondary" (click)="d.toggle()" type="button">\r\n <i class="fa fa-calendar"></i>\r\n </button>\r\n </div>\r\n </div>\r\n\r\n <div class="validation-error "\r\n *ngIf=" submitForm && addasset.controls[\'hireDate\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n\r\n </div>\r\n </div>\r\n\r\n\r\n <div class="form-group col-md-4" *ngIf="false">\r\n <label> {{ \'retirement_data\' | translate }} </label>\r\n <div class="input-group">\r\n <input [(ngModel)]="retireDate" class="form-control" placeholder="yyyy-mm-dd"\r\n name="retireDate" ngbDatepicker #s="ngbDatepicker">\r\n <div class="input-group-append">\r\n <button class="btn btn-secondary" (click)="s.toggle()" type="button">\r\n <i class="fa fa-calendar"></i>\r\n </button>\r\n </div>\r\n </div>\r\n\r\n\r\n <div class="validation-error "\r\n *ngIf=" submitForm && addasset.controls[\'retireDate\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n\r\n </div>\r\n\r\n </div>\r\n\r\n\r\n </div>\r\n\r\n </div>\r\n </div>\r\n\r\n\r\n <div class="acd-group" [ngClass]="{\'acd-active\':selectedTab === \'collapse3\'}">\r\n <a class="acd-heading" [ngClass]="{\'acd-active\':selectedTab === \'collapse3\'}"\r\n href="javascript:void(0);" data-toggle="collapse" data-target="#collapse3"\r\n (click)="expandCollpse(\'collapse3\')">\r\n {{\'inf_secuirty\' |translate}}\r\n\r\n </a>\r\n <div class="acd-des collapse" id="collapse3">\r\n\r\n <div class="row">\r\n\r\n <div class="form-group col-md-4" *ngIf="userRoleselected != \'4\'">\r\n <label> {{ \'username\' | translate }}</label>\r\n <input type="text" class="form-control"\r\n\r\n name="username" [required]="userRoleselected != \'4\'" [(ngModel)]="username"\r\n\r\n placeholder="{{ \'username\' | translate }}">\r\n\r\n\r\n <div class="validation-error "\r\n *ngIf=" submitForm && addasset.controls[\'username\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n\r\n </div>\r\n\r\n </div>\r\n\r\n\r\n <div class="form-group col-md-4" *ngIf="userRoleselected != \'4\'">\r\n <label>{{ \'password\' | translate }}</label>\r\n <input type="password" class="form-control"\r\n name="password" [required]="userRoleselected != \'4\'" [(ngModel)]="password"\r\n\r\n placeholder="{{ \'password\' | translate }}">\r\n <div class="validation-error "\r\n *ngIf=" submitForm && addasset.controls[\'password\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n\r\n </div>\r\n </div>\r\n\r\n\r\n <div class="form-group col-md-4">\r\n <label>{{ \'email\' | translate }}</label>\r\n <input type="text" class="form-control"\r\n name="email" required [(ngModel)]="email"\r\n pattern="^[a-z0-9._%+-]+@[a-z0-9.-]+\\.[a-z]{2,4}$"\r\n placeholder="{{ \'email\' | translate }}">\r\n\r\n <div class="validation-error "\r\n *ngIf=" submitForm && addasset.controls[\'email\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n\r\n </div>\r\n\r\n <div class="validation-error"\r\n *ngIf="submitForm && addasset.controls[\'email\'].errors?.pattern">\r\n {{ \'invalid_email\' | translate }}\r\n </div>\r\n\r\n\r\n </div>\r\n\r\n\r\n <div class="form-group col-md-4" >\r\n <label> {{ \'employee_role\' | translate }} </label>\r\n <select name="userRoleselected" required class="form-control" [(ngModel)]="userRoleselected">\r\n <option value="">{{ \'select\' | translate }}</option>\r\n <option *ngFor="let obj of roles" [value]="obj.Id">{{obj | translate }}</option>\r\n\r\n </select>\r\n\r\n <div class="validation-error "\r\n *ngIf=" submitForm && addasset.controls[\'userRoleselected\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n\r\n </div>\r\n </div>\r\n\r\n\r\n <div class="from-group col-md-6" *ngIf="userRoleselected != \'4\'">\r\n <label> {{ \'employee_category\' | translate }} </label>\r\n\r\n\r\n <ng-select name="userCategory" [items]="allCategories"\r\n bindLabel="NameAr"\r\n placeholder="{{ \'select\' | translate }}"\r\n\r\n [multiple]="true"\r\n [(ngModel)]="userCategories">\r\n </ng-select>\r\n \x3c!--<select class="form-control" multiple name="userCategory" #userCategoriesView>--\x3e\r\n \x3c!--<option value="" >{{ \'all\' | translate }}</option>--\x3e\r\n \x3c!--<option *ngFor="let category of allCategories" [selected]="isCategorySelected(category)">{{category |--\x3e\r\n \x3c!--translate}}--\x3e\r\n \x3c!--</option>--\x3e\r\n \x3c!--</select>--\x3e\r\n \x3c!--<div class="validation-error "--\x3e\r\n \x3c!--*ngIf=" submitForm && userCategories.length==0">--\x3e\r\n \x3c!--{{ \'required\' | translate }}--\x3e\r\n\r\n \x3c!--</div>--\x3e\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n\r\n </div>\r\n\r\n\r\n <div class="row" justify-content-center>\r\n\r\n <button type="button" type="submit" class="btn btn-success btn-lg col-2" style="margin: 10px">\r\n\r\n <span *ngIf="editMode == false">{{ \'add\' | translate }}</span>\r\n\r\n <span *ngIf="editMode == true">{{ \'edit\' | translate }}</span>\r\n </button>\r\n\r\n <button (click)="ClearAll()" type="button" class="btn btn-danger btn-lg col-2"\r\n style="margin: 10px">{{ \'clear\' | translate }}\r\n </button>\r\n\r\n\r\n </div>\r\n\r\n\r\n </form>\r\n\r\n </div>\r\n </div>\r\n\r\n </div>\r\n</app-model>\r\n'},1:function(e,t,r){e.exports=r("x35b")},"10Ei":function(e,t){e.exports='<div class="page-title">\r\n <div class="row">\r\n <div class="col-sm-6">\r\n <h4 class="mb-0">{{\'emp_categories\' |translate}}</h4>\r\n </div>\r\n <div class="col-sm-6">\r\n <ol class="breadcrumb pt-0 float-left float-sm-right ">\r\n <li class="breadcrumb-item"><a href="javascript:void(0);" class="default-color">{{ \'pages_setting\' | translate\r\n }}</a></li>\r\n <li class="breadcrumb-item active">{{ \'emps_departments\' | translate }}</li>\r\n </ol>\r\n </div>\r\n </div>\r\n</div>\r\n\x3c!-- main body --\x3e\r\n<div class="row">\r\n <div class="col-xl-12 mb-30">\r\n <div class="card card-statistics h-100">\r\n <div class="card-body">\r\n <h5 class="card-title mb-0">{{ \'control_emps_departments\' | translate }}\r\n\r\n\r\n </h5>\r\n <form novalidate #locationForm="ngForm" (ngSubmit)="formSubmit(locationForm)">\r\n\r\n <div class="form-row">\r\n <div class="form-group col-md-6">\r\n <label>{{ \'arabic_name\' | translate }}</label>\r\n <input myArabicOnly type="text" class="form-control" placeholder="{{ \'arabic_name\' | translate }}"\r\n [(ngModel)]="addUpdateLocation.NameAr" name="nameAr" required>\r\n\r\n <div class="validation-error "\r\n *ngIf="addUpdateLocation.submit && locationForm.controls[\'nameAr\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n </div>\r\n </div>\r\n\r\n\r\n <div class="form-group col-md-6">\r\n <label>{{ \'english_name\' | translate }}</label>\r\n <input myEnglishOnly type="text" class="form-control" placeholder="{{ \'english_name\' | translate }}"\r\n [(ngModel)]="addUpdateLocation.NameEn" name="nameEn" required>\r\n <div class="validation-error "\r\n *ngIf="addUpdateLocation.submit && locationForm.controls[\'nameEn\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n </div>\r\n </div>\r\n\r\n\r\n </div>\r\n\r\n <div class="form-group clearfix ">\r\n <button type="submit" class="btn btn-success btn-lg">{{ (addUpdateLocation.id==0 ?\'add\':\'edit\') |\r\n translate}}\r\n </button>\r\n <button type="button" class="btn btn-danger btn-lg" (click)="resetForm()">{{ \'clear\' | translate }}</button>\r\n\r\n\r\n </div>\r\n </form>\r\n\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n\r\n<div class="row">\r\n <div class="col-xl-12 mb-30">\r\n <div class="card card-statistics h-100">\r\n <div class="card-body">\r\n <h5 class="card-title mb-0">{{ \'department_list\' | translate }}\r\n <i >\r\n\r\n <img (click)="printExcel()" src="assets/images/excel_icon.png" >\r\n\r\n </i></h5>\r\n\r\n\r\n <div class="form-group col-md-4" style="margin-top: 20px">\r\n\r\n <input [(ngModel)]="search" type="text" class="form-control" placeholder="{{ \'search\' | translate }}"\r\n (input)="filterLocations($event)">\r\n </div>\r\n <div class="table-responsive">\r\n <ngx-datatable\r\n\r\n [messages]="{emptyMessage: (\'NODATA\' | translate), totalMessage:( \'TOTAL\' | translate), selectedMessage: false}"\r\n\r\n\r\n class="bootstrap" [rows]="locations" [columns]="columns" [columnMode]="\'force\'"\r\n [headerHeight]="50" [footerHeight]="50" [rowHeight]="\'auto\'" [limit]="10">\r\n\r\n \x3c!--edit cell--\x3e\r\n <ng-template #editTemplate let-row="row" let-value="value" let-rowIndex="rowIndex">\r\n <span class="text-primary" (click)="editLocation(rowIndex)"><i class="fa fa-edit"></i></span>\r\n </ng-template>\r\n\r\n \x3c!-- delete cell--\x3e\r\n <ng-template #deleteTemplate let-row="row" let-value="value" let-rowIndex="rowIndex">\r\n <span appCanDelete class="text-danger" (click)="deleteLocation(rowIndex)"> <i\r\n class="fa fa-trash"></i></span>\r\n </ng-template>\r\n </ngx-datatable>\r\n\r\n </div>\r\n\r\n\r\n </div>\r\n </div>\r\n </div>\r\n\r\n\r\n</div>\r\n'},"1zwP":function(e,t){e.exports='<div class="wrapper">\r\n\r\n <section class="height-100vh d-flex align-items-center page-section-ptb login"\r\n style="background: url(../../../../assets/images/login-bg.jpg);">\r\n <div class="container">\r\n <div class="row justify-content-center no-gutters vertical-align">\r\n <div class="col-lg-4 col-md-6 login-fancy-bg bg"\r\n style="background: url(../../../../assets/images/login-inner-bg.jpg);">\r\n <div class="login-fancy">\r\n <h2 class="text-white mb-20">{{ \'hello\' | translate }}</h2>\r\n <p class="mb-20 text-white">{{ \'login_in_system\' | translate }}</p>\r\n <ul class="list-unstyled pos-bot pb-30">\r\n \x3c!--<li class="list-inline-item"><a class="text-white" routerLink=""> Terms of Use</a></li>--\x3e\r\n \x3c!--<li class="list-inline-item"><a class="text-white" routerLink=""> Privacy Policy</a></li>--\x3e\r\n </ul>\r\n </div>\r\n </div>\r\n <div class="col-lg-4 col-md-6 bg-white">\r\n <form novalidate #passwordCodeForm="ngForm" (ngSubmit)="verifyPasswordCode(passwordCodeForm)">\r\n <div class="login-fancy pb-40 clearfix">\r\n <h3 class="mb-30">{{ \'enter_confirmation_code\' | translate }}</h3>\r\n <div class="section-field mb-20">\r\n <label class="mb-10" for="password_code">{{ \'confirmation_code\' | translate }}* </label>\r\n <input id="password_code" class="web form-control" type="text" placeholder="{{ \'confirmation_code\' | translate }}"\r\n name="password_code"\r\n [(ngModel)]="verificationCode" required minlength="6">\r\n\r\n <div class="validation-error "\r\n *ngIf="passwordCodeForm.submitted && passwordCodeForm.controls[\'password_code\'].errors?.required">\r\n {{ \'enter_confirmation_code\' | translate }}\r\n </div>\r\n <div class="validation-error"\r\n *ngIf="passwordCodeForm.submitted && passwordCodeForm.controls[\'password_code\'].errors?.minlength">\r\n {{ \'confirmation_code_less_6\' | translate }}\r\n </div>\r\n </div>\r\n <button class="button btn-success d-block" type="submit">\r\n {{ \'activate\' | translate }}activate <i class="fa fa-check"></i>\r\n </button>\r\n </div>\r\n </form>\r\n </div>\r\n </div>\r\n </div>\r\n </section>\r\n\r\n</div>\r\n'},2:function(e,t){},3:function(e,t){},"3P4Y":function(e,t){e.exports='<div class="d-flex">\r\n <div *ngFor="let image of images ; let i=index" class="mx-1">\r\n <img class="img-thumbnail d-block" style="width: 80px; height: 80px" [src]="image.ImageUrl"\r\n (click)="showImage(image)">\r\n <button type="button" class="btn btn-danger btn-sm " style="width: 100% ;margin-top: 2px " (click)="deleteImage(image , i)"><i\r\n class="fa fa-trash text-white"></i>\r\n </button>\r\n </div>\r\n</div>\r\n'},"3j/I":function(e,t){e.exports='<div class="page-title">\r\n <div class="row">\r\n <div class="col-sm-6">\r\n <h4 class="mb-0"> \u0627\u0644\u062a\u062d\u0643\u0645 \u0628\u062f\u0648\u0631\u0627\u062a \u0627\u0644\u062c\u0631\u062f\r\n </h4>\r\n </div>\r\n <div class="col-sm-6">\r\n <ol class="breadcrumb pt-0 float-left float-sm-right ">\r\n <li class="breadcrumb-item"><a href="javascript:void(0);" class="default-color">{{ \'main\' | translate }}</a></li>\r\n <li class="breadcrumb-item active"> {{ \'inventory_loops\' | translate }}</li>\r\n </ol>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n\r\n\r\n<app-add-new-invatory #addinv>\r\n\r\n</app-add-new-invatory>\r\n\r\n\r\n\r\n<app-session-report #sessionResult>\r\n\r\n</app-session-report>\r\n\r\n\r\n<div class="row">\r\n <div class="col-xl-12 mb-30">\r\n <div class="card card-statistics h-100">\r\n <div class="card-body">\r\n <div class="row">\r\n\r\n\r\n <div class="form-group col-md-4">\r\n <a (click)="showAddNewItem()" class="button button-border black btn-block" >{{ \'add_new_inventory_loop\' | translate }} </a>\r\n </div>\r\n\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n\r\n\r\n<div class="row">\r\n <div class="col-xl-12 mb-30">\r\n <div class="card card-statistics h-100">\r\n <div class="card-body">\r\n <h5 class="card-title mb-0">{{ \'inventory_loops_list\' | translate }}</h5>\r\n\r\n\r\n\r\n <div class="table-responsive">\r\n <table class="table table-1 table-bordered table-striped mb-0">\r\n <thead>\r\n <tr >\r\n\r\n <th>{{ \'name\' | translate }} </th>\r\n <th>{{ \'location\' | translate }}</th>\r\n <th>{{ \'building\' | translate }}</th>\r\n <th>{{ \'floor\' | translate }} </th>\r\n <th>{{ \'office_name\' | translate }}</th>\r\n\r\n\r\n\r\n <th>{{ \'inventory_start_date\' | translate }}</th>\r\n <th>{{ \'inventory_end_date\' | translate }}</th>\r\n <th>{{ \'status\' | translate }}</th>\r\n <th>{{ \'edit\' | translate }}</th>\r\n <th appCanDelete>{{ \'delete\' | translate }}</th>\r\n\r\n\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr *ngFor="let item of sessionCycle;let i = index">\r\n\r\n <td>{{item.Name}}</td>\r\n <td>{{item.location | translate}}</td>\r\n <td>{{item.tower | translate}}</td>\r\n <td>{{item.floor| translate}}</td>\r\n <td>{{item.room | translate}}</td>\r\n <td>{{item.StartDate}}</td>\r\n <td>{{item.EndDate}}</td>\r\n\r\n\r\n <td *ngIf="item.Completed == 1" style="color: green">\r\n <a> <i (click)="showReport(item,i)" >\r\n {{ \'completed_inventory\' | translate }}\r\n </i>\r\n </a>\r\n </td>\r\n\r\n <td *ngIf="item.Completed == 0" style="color: red">{{ \'uncompleted_inventory\' | translate }}</td>\r\n\r\n <td >\r\n <i *ngIf="item.Completed == 0" (click)="editAsset(item,i)" class="fa fa-edit"></i>\r\n\r\n </td>\r\n\r\n <td appCanDelete>\r\n\r\n <i (click)="deleteAsset(item,i)" class="text-primary ti-trash "></i>\r\n </td>\r\n\r\n\r\n </tr>\r\n\r\n </tbody>\r\n </table>\r\n\r\n\r\n <div class="sm-mt-20" style="margin-top: 20px">\r\n <nav aria-label="Page navigation example">\r\n <ul class="pagination justify-content-center">\r\n\r\n\r\n <ngb-pagination [maxSize]="10" [directionLinks]="true"\r\n\r\n\r\n [pageSize]="10" (pageChange)="SearchAsset($event)" [collectionSize]="count"\r\n aria-label="Default pagination"></ngb-pagination>\r\n\r\n\r\n\r\n </ul>\r\n </nav>\r\n </div>\r\n\r\n\r\n </div>\r\n\r\n\r\n\r\n\r\n\r\n </div>\r\n </div>\r\n </div>\r\n\r\n\r\n\r\n\r\n</div>\r\n'},4:function(e,t){},"4nOt":function(e,t){e.exports=""},"5xMp":function(e,t){e.exports='<!doctype html>\r\n<html lang="en" >\r\n<head>\r\n\r\n <meta name="keywords" content="{{\'assets_system\' | translate}}"/>\r\n <meta name="description" content="{{\'assets_system\' | translate}}"/>\r\n <meta name="author"/>\r\n <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>\r\n <title>{{\'assets_system\' | translate}}</title>\r\n\r\n\r\n \x3c!--<link rel="stylesheet" href="{{ \'style\' | translate}}">--\x3e\r\n\r\n\r\n\r\n</head>\r\n\r\n\r\n<router-outlet >\r\n\r\n\r\n</router-outlet>\r\n\r\n</html>\r\n'},"6EHv":function(e,t){e.exports=""},C47e:function(e,t){e.exports=""},CJa6:function(e,t){e.exports='<div class="page-title">\r\n <div class="row">\r\n <div class="col-sm-6">\r\n <h4 class="mb-0"> {{ \'control_emps\' | translate }}\r\n </h4>\r\n </div>\r\n <div class="col-sm-6">\r\n <ol class="breadcrumb pt-0 float-left float-sm-right ">\r\n <li class="breadcrumb-item"><a href="javascript:void(0);" class="default-color">{{ \'main\' | translate }}</a>\r\n </li>\r\n <li class="breadcrumb-item active">{{ \'control_emps\' | translate }}</li>\r\n </ol>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n\r\n<app-add-new-emp #addemp>\r\n\r\n</app-add-new-emp>\r\n\r\n\r\n\x3c!-- main body --\x3e\r\n<div class="row">\r\n <div class="col-xl-12 mb-30">\r\n <div class="card card-statistics h-100">\r\n <div class="card-body">\r\n <h5 class="card-title mb-0">{{ \'emps_search\' | translate }}</h5>\r\n\r\n <div class="form-row">\r\n <div class="form-group col-md-3">\r\n <label>{{ \'emp_name\' | translate }}</label>\r\n <input type="text" [(ngModel)]="empname" class="form-control" placeholder="{{ \'emp_name\' | translate }}">\r\n </div>\r\n\r\n\r\n <div class="form-group col-md-3" *ngIf="false">\r\n <label> {{ \'jobs\' | translate }} </label>\r\n <select class="form-control" [(ngModel)]="selectedJops">\r\n <option value="">{{ \'select\' | translate }}</option>\r\n\r\n <option *ngFor="let obj of jobs" [value]="obj.Id">{{obj | translate }}</option>\r\n\r\n\r\n </select>\r\n </div>\r\n\r\n\r\n <div class="form-group col-md-3">\r\n <label> {{ \'emps_departments\' | translate }} </label>\r\n <select class="form-control" [(ngModel)]="selectedDeps">\r\n <option value="">{{ \'select\' | translate }}</option>\r\n <option *ngFor="let obj of main_categories" [value]="obj.Id">{{obj | translate }}</option>\r\n\r\n </select>\r\n </div>\r\n\r\n\r\n </div>\r\n\r\n <div class="row justify-content-center">\r\n\r\n <button type="button" (click)="SearchAsset()" class="btn btn-primary btn-lg col-md-2" style="margin: 10px">\r\n {{ \'search\' | translate }}\r\n </button>\r\n\r\n <button type="button" (click)="ClearAll()" class="btn btn-danger btn-lg col-md-2" style="margin: 10px">{{\r\n \'clear\' | translate }}\r\n </button>\r\n\r\n\r\n </div>\r\n\r\n\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n\r\n\r\n\r\n<div class="row">\r\n <div class="col-xl-12 mb-30">\r\n <div class="card card-statistics h-100">\r\n <div class="card-body">\r\n <h5 class="card-title mb-0">{{ \'emps_list\' | translate }}</h5>\r\n\r\n <div class="row justify-content-center">\r\n\r\n\r\n\r\n\r\n <button type="button" (click)="showAddNewItem()" class="btn btn-primary btn-lg btn-block col-md-4"\r\n style="margin: 10px">{{ \'add_new_emp\' | translate }}\r\n </button>\r\n\r\n\r\n\r\n <div class="form-group col-md-4" *ngIf="false" >\r\n\r\n <a class="button button-border black btn-block"> {{ \'upload_emp_file\' | translate }}</a>\r\n </div>\r\n <div class="form-group col-md-4" *ngIf="false" >\r\n\r\n <a class="button button-border black btn-block">{{ \'upload_emp_file_with_assets\' | translate }} </a>\r\n </div>\r\n </div>\r\n <div class="table-responsive">\r\n <table class="table table-1 table-bordered table-striped mb-0">\r\n <thead>\r\n <tr>\r\n\r\n <th>{{ \'arabic_name\' | translate }}</th>\r\n <th>{{ \'english_name\' | translate }}</th>\r\n <th>{{ \'department_name\' | translate }}</th>\r\n <th *ngIf="false">{{ \'the_job\' | translate }}</th>\r\n <th>{{ \'manager\' | translate }}</th>\r\n <th>{{ \'edit\' | translate }}</th>\r\n <th appCanDelete>{{ \'delete\' | translate }}</th>\r\n <th>{{ \'reset_password\' | translate }}</th>\r\n <th>{{ \'send_email_for_asset\' | translate }}</th>\r\n\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr *ngFor="let item of emplist;let i = index">\r\n\r\n <td>{{item.NameAr}}</td>\r\n <td>{{item.NameEn}}</td>\r\n <td>{{item.department | translate}}</td>\r\n <td *ngIf="false">{{item.job | translate}}</td>\r\n <td>{{item.manager | translate}}</td>\r\n\r\n\r\n <td>\r\n <i (click)="editAsset(item,i)" class="fa fa-edit"></i>\r\n\r\n </td>\r\n\r\n <td appCanDelete>\r\n\r\n <i (click)="deleteAsset(item,i)" class="text-primary ti-trash "></i>\r\n </td>\r\n\r\n\r\n <td>\r\n\r\n <i class="text-primary fa fa-expeditedssl" (click)="updateUserPassword(item)"></i>\r\n </td>\r\n\r\n <td>\r\n\r\n <span *ngIf="item.assets_assigned.length > 0"\r\n\r\n\r\n (click)="sendAssetReminderEmail(item.Id)"> <i class="text-primary ti-email "></i></span>\r\n </td>\r\n\r\n\r\n </tr>\r\n\r\n </tbody>\r\n </table>\r\n\r\n <div class="sm-mt-20" style="margin-top: 20px">\r\n <nav aria-label="Page navigation example">\r\n <ul class="pagination justify-content-center">\r\n\r\n <ngb-pagination [maxSize]="10" [directionLinks]="true"\r\n\r\n\r\n [pageSize]="10" (pageChange)="SearchAssetPage($event)" [collectionSize]="count"\r\n aria-label="Default pagination"></ngb-pagination>\r\n\r\n\r\n </ul>\r\n </nav>\r\n </div>\r\n\r\n </div>\r\n\r\n\r\n </div>\r\n </div>\r\n </div>\r\n\r\n\r\n <app-update-user-password #passwordComponent></app-update-user-password>\r\n\r\n</div>\r\n'},DUPo:function(e,t){e.exports='<div class="page-title">\r\n <div class="row">\r\n <div class="col-sm-6">\r\n <h4 class="mb-0"> {{ \'model\' | translate }} </h4>\r\n </div>\r\n <div class="col-sm-6">\r\n\r\n\r\n <ol class="breadcrumb pt-0 float-left float-sm-right ">\r\n <li class="breadcrumb-item"><a href="javascript:void(0);" class="default-color">{{ \'assets\' | translate\r\n }}</a></li>\r\n <li class="breadcrumb-item active">{{ \'model\' | translate }}</li>\r\n </ol>\r\n\r\n </div>\r\n </div>\r\n</div>\r\n\x3c!-- main body --\x3e\r\n<div class="row">\r\n <div class="col-xl-12 mb-30">\r\n <div class="card card-statistics h-100">\r\n <div class="card-body">\r\n <h5 class="card-title mb-0">{{ \'control_model\' | translate }}</h5>\r\n <div class="card-body">\r\n <form #inputForm="ngForm" (ngSubmit)="formSubmit(inputForm)">\r\n <div class="form-row">\r\n\r\n <div class="form-group col-md-3">\r\n <label>{{ \'arabic_name\' | translate }}</label>\r\n <input myArabicOnly type="text" class="form-control" placeholder="{{ \'arabic_name\' | translate }}" required\r\n name="nameAr" [(ngModel)]="addUpdateTower.NameAr">\r\n <div class="validation-error "\r\n *ngIf="addUpdateTower.submitForm && inputForm.controls[\'nameAr\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n </div>\r\n </div>\r\n\r\n\r\n <div class="form-group col-md-3">\r\n <label>{{ \'english_name\' | translate }}</label>\r\n <input myEnglishOnly type="text" class="form-control" placeholder="{{ \'english_name\' | translate }}" required\r\n name="nameEn" [(ngModel)]="addUpdateTower.NameEn">\r\n <div class="validation-error "\r\n *ngIf="addUpdateTower.submitForm && inputForm.controls[\'nameEn\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n </div>\r\n </div>\r\n\r\n <div class="form-group col-md-3">\r\n <label> {{ \'its_department\' | translate }}</label>\r\n <select name="selectedMaincat" required class="form-control"\r\n (change)="getAllSubCat($event)"\r\n [(ngModel)]="selectedMaincat">\r\n <option value="">{{ \'select\' | translate }}</option>\r\n\r\n\r\n <option *ngFor="let obj of locations" [value]="obj.Id">{{obj | translate }}</option>\r\n\r\n </select>\r\n <div class="validation-error "\r\n *ngIf="addUpdateTower.submitForm && inputForm.controls[\'selectedMaincat\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n </div>\r\n\r\n\r\n </div>\r\n\r\n\r\n <div class="form-group col-md-3">\r\n <label> {{ \'its_category\' | translate }}</label>\r\n <select name="selectedSubcat" required class="form-control" [(ngModel)]="selectedSubcat">\r\n <option value="">{{ \'select\' | translate }}</option>\r\n\r\n\r\n <option *ngFor="let obj of subcat" [value]="obj.Id">{{obj | translate }}</option>\r\n\r\n </select>\r\n <div class="validation-error "\r\n *ngIf="addUpdateTower.submitForm && inputForm.controls[\'selectedSubcat\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n </div>\r\n\r\n\r\n </div>\r\n\r\n\r\n <div class="form-group col-md-3">\r\n <label>{{ \'DesAr\' | translate }}</label>\r\n <input myArabicOnly type="text" class="form-control" placeholder="{{ \'DesAr\' | translate }}"\r\n [(ngModel)]="addUpdateTower.DescriptionAr" name="DescriptionAr" required>\r\n <div class="validation-error "\r\n *ngIf="addUpdateTower.submitForm && inputForm.controls[\'DescriptionAr\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n </div>\r\n </div>\r\n\r\n\r\n <div class="form-group col-md-3">\r\n <label>{{ \'DesEn\' | translate }}</label>\r\n <input myEnglishOnly type="text" class="form-control" placeholder="{{ \'DesEn\' | translate }}"\r\n [(ngModel)]="addUpdateTower.DescriptionEn" name="DescriptionEn" required>\r\n <div class="validation-error "\r\n *ngIf="addUpdateTower.submitForm && inputForm.controls[\'DescriptionEn\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n </div>\r\n </div>\r\n\r\n\r\n </div>\r\n\r\n <div class="form-group clearfix ">\r\n\r\n <button type="submit" class="btn btn-success btn-lg">{{ (addUpdateTower.rowIndex== -1? \'add\' :\'edit\') |\r\n translate }}\r\n </button>\r\n <button type="button" class="btn btn-danger btn-lg" (click)="clearForm()">{{ \'clear\' | translate }}\r\n </button>\r\n </div>\r\n </form>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n\r\n<div class="row">\r\n <div class="col-xl-12 mb-30">\r\n <div class="card card-statistics h-100">\r\n <div class="card-body">\r\n <h5 class="card-title mb-0">{{ \'model_list\' | translate }}\r\n <i >\r\n <img (click)="printExcel()" src="assets/images/excel_icon.png" >\r\n\r\n </i>\r\n </h5>\r\n\r\n <div class="row" style="margin-top: 20px">\r\n\r\n <div class="form-group col-md-4">\r\n\r\n <input type="text" class="form-control" placeholder="{{ \'search\' | translate }}"\r\n (input)="filterBuildings($event)">\r\n </div>\r\n\r\n\r\n\r\n <div class="form-group col-md-4">\r\n <select class="form-control"\r\n (change)="getAllSubCatSearch($event)"\r\n [(ngModel)]="selectedMaincatSearch">\r\n <option value="">{{ \'its_department\' | translate }}</option>\r\n\r\n\r\n <option *ngFor="let obj of locations" [value]="obj.Id">{{obj | translate }}</option>\r\n\r\n </select>\r\n </div>\r\n\r\n\r\n <div class="col-md-4">\r\n\r\n <select class="form-control"\r\n (change)="getAllModelSearch(selectedSubcatSearch)"\r\n [(ngModel)]="selectedSubcatSearch">\r\n <option value="">{{ \'its_category\' | translate }}</option>\r\n\r\n\r\n <option *ngFor="let obj of subcatSearch" [value]="obj.Id">{{obj | translate }}</option>\r\n\r\n </select>\r\n </div>\r\n\r\n\r\n\r\n </div>\r\n\r\n <div class="table-responsive">\r\n\r\n <ngx-datatable\r\n\r\n #dataTable\r\n [messages]="{emptyMessage: \'NODATA\' | translate,\r\n totalMessage: \'TOTAL\' | translate, selectedMessage: false}"\r\n\r\n\r\n\r\n [rowHeight]="\'auto\'"\r\n [scrollbarV]="false"\r\n [scrollbarH]="false"\r\n\r\n class="bootstrap striped" [rows]="towers" [columns]="columns" [columnMode]="\'standard\'"\r\n [headerHeight]="50" [footerHeight]="50" [limit]="10">\r\n\r\n \x3c!--edit cell--\x3e\r\n <ng-template #editTemplate let-row="row" let-value="value" let-rowIndex="rowIndex">\r\n <span class="text-primary"><i class="fa fa-edit" (click)="editTower(rowIndex)"></i></span>\r\n </ng-template>\r\n\r\n \x3c!-- delete cell--\x3e\r\n <ng-template #deleteTemplate let-row="row" let-value="value" let-rowIndex="rowIndex">\r\n <span appCanDelete class="text-danger"> <i class="fa fa-trash"\r\n (click)="deleteTower(rowIndex)"></i></span>\r\n </ng-template>\r\n </ngx-datatable>\r\n\r\n </div>\r\n\r\n </div>\r\n </div>\r\n </div>\r\n\r\n</div>\r\n'},Dym3:function(e,t){e.exports=""},E6gQ:function(e,t){e.exports='<div class="wrapper" [class.slide-menu]="isSlideMenu">\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n <div id="pre-loader" *ngIf="_commondata.loader.value">\r\n <img src="assets/images/pre-loader/loader-01.svg" alt="">\r\n </div>\r\n\r\n \x3c!-- header start--\x3e\r\n <nav class="admin-header navbar navbar-default col-lg-12 col-12 p-0 fixed-top d-flex flex-row">\r\n \x3c!-- logo --\x3e\r\n <div class="bg-white text-left navbar-brand-wrapper">\r\n <a class="navbar-brand brand-logo" href="javascript:void(0);"><img src="../../../../assets/images/logo-dark.png"/></a>\r\n <a class="navbar-brand brand-logo-mini" href="javascript:void(0);"><img\r\n src="../../../../assets/images/logo-icon-dark.png" alt=""></a>\r\n </div>\r\n \x3c!-- Top bar left --\x3e\r\n <ul class="nav navbar-nav mr-auto">\r\n <li class="nav-item">\r\n <a id="button-toggle" class="button-toggle-nav inline-block ml-20 pull-left" href="javascript:void(0);"\r\n (click)="toggleMenu()"><i class="zmdi zmdi-menu ti-align-right"></i></a>\r\n </li>\r\n <li class="nav-item">\r\n <div class="search" [class.search-open]="isSearchActive">\r\n <a class="search-btn not_click" href="javascript:void(0);" (click)="toggleSearch()"></a>\r\n <div class="search-box not-click">\r\n <input type="text" class="not-click form-control" placeholder="{{ \'search\' | translate }}"\r\n value="" name="{{ \'search\' | translate }}">\r\n <button class="search-button" type="submit"><i class="fa fa-search not-click"></i></button>\r\n </div>\r\n </div>\r\n </li>\r\n </ul>\r\n \x3c!-- top bar right --\x3e\r\n <ul class="nav navbar-nav ml-auto">\r\n\r\n\r\n <li class="nav-item dropdown mr-30">\r\n <a class="nav-link nav-pill user-avatar" data-toggle="dropdown" href="javascript:void(0);" role="button"\r\n aria-haspopup="true" aria-expanded="false">\r\n <img [src]="getUserImage()" alt="avatar">\r\n </a>\r\n <div class="dropdown-menu dropdown-menu-right">\r\n <div class="dropdown-header">\r\n <div class="media">\r\n <div class="media-body">\r\n <h5 class="mt-0 mb-0">{{user.UserName}}</h5>\r\n <span>{{user.Email}}</span>\r\n </div>\r\n </div>\r\n </div>\r\n <div class="dropdown-divider"></div>\r\n\r\n <a class="dropdown-item" href="javascript:void(0);" routerLink="/profile"><i class="text-warning ti-user"></i>{{\'profile\'\r\n |translate}}</a>\r\n <div class="dropdown-divider"></div>\r\n \x3c!--<a class="dropdown-item" href="javascript:void(0);"><i class="text-info ti-settings"></i>Settings</a>--\x3e\r\n <a class="dropdown-item" href="javascript:void(0);"\r\n (click)="logOutClick()"><i class="text-danger ti-unlock"></i>{{ \'logout\' | translate }}</a>\r\n </div>\r\n </li>\r\n </ul>\r\n </nav>\r\n\r\n \x3c!--=================================\r\n header End--\x3e\r\n \x3c!--=================================\r\n Main content --\x3e\r\n\r\n <div class="container-fluid">\r\n <div class="row">\r\n \x3c!-- Left Sidebar start--\x3e\r\n <div class="side-menu-fixed">\r\n <div class="scrollbar side-menu-bg" malihu-scrollbar [scrollbarOptions]="scrollbarOptions">\r\n <ul class="nav navbar-nav side-menu">\r\n \x3c!-- menu item Dashboard--\x3e\r\n\r\n <li>\r\n <a href="javascript:void(0);" data-toggle="collapse" data-target="#elements"\r\n (click)="expandCollpse(\'elements\')">\r\n <div class="pull-left"><i class="ti-palette"></i><span class="right-nav-text">{{\'assets\' | translate}}</span></div>\r\n <div class="pull-right"><i class="ti-plus"></i></div>\r\n <div class="clearfix"></div>\r\n </a>\r\n <ul id="elements" class="collapse">\r\n <li><a routerLink="/salesmen" routerLinkActive="active">\r\n\r\n\r\n\r\n\r\n\r\n <i class="fa fa-barcode"></i>\r\n {{ \'control_assets\' | translate }} </a></li>\r\n <li appShowRoute><a routerLink="/maincats" routerLinkActive="active">\r\n\r\n <i class="fa fa-home"></i>\r\n\r\n\r\n {{ \'main_departments\' | translate }}</a></li>\r\n <li appShowRoute><a routerLink="/subcat" routerLinkActive="active">\r\n <i class="fa fa-glide"></i>\r\n {{ \'categories\' | translate }}</a></li>\r\n <li appShowRoute><a routerLink="/models" routerLinkActive="active">\r\n <i class="fa fa-modx"></i>\r\n {{ \'model\' | translate }}</a></li>\r\n \x3c!--<li><a routerLink="/add_new_salesman" routerLinkActive="active">Add new</a></li>--\x3e\r\n </ul>\r\n </li>\r\n\r\n\r\n <li>\r\n <a routerLink="/sysemps"><i class="fa fa-address-book-o"></i><span class="right-nav-text">{{ \'control_emps\' | translate }} </span></a>\r\n </li>\r\n\r\n\r\n <li>\r\n <a routerLink="/inventory"><i class=" ti-shopping-cart-full"></i><span class="right-nav-text"> {{ \'control_inventory\' | translate }} </span></a>\r\n </li>\r\n\r\n <li appShowRoute>\r\n <a href="javascript:void(0);" data-toggle="collapse" data-target="#table"\r\n (click)="expandCollpse(\'Table\')">\r\n <div class="pull-left"><i class="ti-layout-tab-window"></i><span\r\n class="right-nav-text">{{ \'pages_setting\' | translate }}</span></div>\r\n <div class="pull-right"><i class="ti-plus"></i></div>\r\n <div class="clearfix"></div>\r\n </a>\r\n <ul id="Table" class="collapse">\r\n\r\n\r\n \x3c!--<li><a routerLink="/city" routerLinkActive="active">\u0627\u0644\u0645\u062f\u0646</a></li>--\x3e\r\n\r\n <li><a routerLink="/location" routerLinkActive="active">\r\n <i class="ti-location-pin"></i>{{ \'location\' | translate }}</a></li>\r\n <li><a routerLink="/build" routerLinkActive="active">\r\n <i class="fa fa-building-o"></i>\r\n {{ \'buildings\' | translate }}</a></li>\r\n <li><a routerLink="/roofs" routerLinkActive="active">\r\n <i class="fa fa-bars"></i>\r\n {{ \'floors\' | translate }}</a></li>\r\n\r\n <li><a routerLink="/office" routerLinkActive="active">\r\n <i class="fa fa-shopping-bag"></i>\r\n {{ \'offices\' | translate }}</a></li>\r\n\r\n <li><a routerLink="/empdeps" routerLinkActive="active">\r\n <i class="fa fa-vcard"></i>\r\n {{ \'emps_departments\' | translate }}</a></li>\r\n <li><a *ngIf="false" routerLink="/nationalty" routerLinkActive="active">\r\n <i class="ti-palette"></i>\r\n {{ \'nationalities\' | translate }}</a></li>\r\n <li><a *ngIf="false" routerLink="/job" routerLinkActive="active">\r\n <i class="ti-palette"></i>\r\n {{ \'jobs\' | translate }}</a></li>\r\n\r\n </ul>\r\n </li>\r\n\r\n </ul>\r\n </div>\r\n </div>\r\n\r\n \x3c!-- Left Sidebar End--\x3e\r\n \x3c!--=================================\r\n wrapper --\x3e\r\n <div class="content-wrapper">\r\n\r\n \x3c!--Router Outlet--\x3e\r\n <router-outlet></router-outlet>\r\n \x3c!-- End of Router Outlet--\x3e\r\n\r\n\r\n \x3c!--<footer class="bg-white p-4">--\x3e\r\n \x3c!--<div class="row">--\x3e\r\n \x3c!--<div class="col-md-6">--\x3e\r\n \x3c!--<div class="text-center text-md-left">--\x3e\r\n \x3c!--<p class="mb-0">--\x3e\r\n \x3c!--<!–{{ \'assets_system\' | translate }}–>--\x3e\r\n\r\n \x3c!--<span id="copyright">--\x3e\r\n\r\n\r\n\x3c!--<!–<element>{{ \'KEY\' | translate }}</element>–>--\x3e\r\n\r\n \x3c!--<!–{{ \'TITLE\' | translate }}–>--\x3e\r\n\r\n\r\n \x3c!--<!–<element>{{ \'KEY\' | translate }}</element>–>--\x3e\r\n \x3c!--<!–<element title="{{ \'KEY\' | translate }}"></element>–>--\x3e\r\n \x3c!--<!–<element [title]="property | translate"></element>–>--\x3e\r\n\r\n \x3c!--<script>document.getElementById(\'copyright\').appendChild(document.createTextNode(new Date().getFullYear()))<\/script>--\x3e\r\n \x3c!--</span>--\x3e\r\n \x3c!--</p>--\x3e\r\n \x3c!--</div>--\x3e\r\n \x3c!--</div>--\x3e\r\n \x3c!--<div class="col-md-6">--\x3e\r\n \x3c!--<!–<ul class="text-center text-md-right">–>--\x3e\r\n \x3c!--<!–<li class="list-inline-item"><a href="javascript:void(0);">Terms & Conditions </a></li>–>--\x3e\r\n \x3c!--<!–<li class="list-inline-item"><a href="javascript:void(0);">API Use Policy </a></li>–>--\x3e\r\n \x3c!--<!–<li class="list-inline-item"><a href="javascript:void(0);">Privacy Policy </a></li>–>--\x3e\r\n \x3c!--<!–</ul>–>--\x3e\r\n \x3c!--</div>--\x3e\r\n \x3c!--</div>--\x3e\r\n \x3c!--</footer>--\x3e\r\n \x3c!----\x3e\r\n \x3c!----\x3e\r\n </div>\r\n\r\n\r\n \x3c!-- main content wrapper end--\x3e\r\n </div>\r\n </div>\r\n\r\n \x3c!--=================================\r\n footer --\x3e\r\n\r\n</div>\r\n'},EiIh:function(e,t){e.exports=""},GIIc:function(e,t){e.exports='<div class="page-title">\r\n <div class="row">\r\n <div class="col-sm-6">\r\n <h4 class="mb-0">{{ \'nationalities_list\' | translate }} </h4>\r\n </div>\r\n <div class="col-sm-6">\r\n <ol class="breadcrumb pt-0 float-left float-sm-right ">\r\n <li class="breadcrumb-item"><a href="javascript:void(0);" class="default-color">{{ \'pages_setting\' | translate }}</a></li>\r\n <li class="breadcrumb-item active">{{ \'nationalities_list\' | translate }} </li>\r\n </ol>\r\n </div>\r\n </div>\r\n</div>\r\n\x3c!-- main body --\x3e\r\n<div class="row">\r\n <div class="col-xl-12 mb-30">\r\n <div class="card card-statistics h-100">\r\n <div class="card-body">\r\n <h5 class="card-title mb-0">{{ \'control_nationalities\' | translate }}</h5>\r\n <form novalidate #locationForm="ngForm" (ngSubmit)="formSubmit(locationForm)">\r\n\r\n <div class="form-row">\r\n <div class="form-group col-md-6">\r\n <label>{{ \'arabic_name\' | translate }}</label>\r\n <input myArabicOnly type="text" class="form-control" placeholder="{{ \'arabic_name\' | translate }}"\r\n [(ngModel)]="addUpdateLocation.NameAr" name="nameAr" required>\r\n\r\n <div class="validation-error "\r\n *ngIf="addUpdateLocation.submit && locationForm.controls[\'nameAr\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n </div>\r\n </div>\r\n\r\n\r\n <div class="form-group col-md-6">\r\n <label>{{ \'english_name\' | translate }}</label>\r\n <input myEnglishOnly type="text" class="form-control" placeholder="{{ \'english_name\' | translate }}"\r\n [(ngModel)]="addUpdateLocation.NameEn" name="nameEn" required>\r\n <div class="validation-error "\r\n *ngIf="addUpdateLocation.submit && locationForm.controls[\'nameEn\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n </div>\r\n </div>\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n </div>\r\n\r\n <div class="form-group clearfix ">\r\n <button type="submit" class="btn btn-success btn-lg">{{ (addUpdateLocation.id==0 ?\'add\':\'edit\') |\r\n translate}}\r\n </button>\r\n <button type="button" class="btn btn-danger btn-lg" (click)="resetForm()">{{ \'clear\' | translate }}</button>\r\n\r\n\r\n\r\n </div>\r\n </form>\r\n\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n\r\n\r\n\r\n\r\n\r\n<div class="row">\r\n <div class="col-xl-12 mb-30">\r\n <div class="card card-statistics h-100">\r\n <div class="card-body">\r\n <h5 class="card-title mb-0">{{ \'nationalities_list\' | translate }} </h5>\r\n\r\n\r\n <div class="form-group col-md-4" style="margin-top: 20px">\r\n\r\n <input type="text" class="form-control" placeholder="{{ \'search\' | translate }}"\r\n (input)="filterLocations($event)">\r\n </div>\r\n <div class="table-responsive">\r\n <ngx-datatable\r\n\r\n [messages]="{emptyMessage: \'NODATA\' | translate, totalMessage: \'TOTAL\' | translate, selectedMessage: false}"\r\n\r\n\r\n class="bootstrap" [rows]="locations" [columns]="columns" [columnMode]="\'force\'"\r\n [headerHeight]="50" [footerHeight]="50" [rowHeight]="\'auto\'" [limit]="10">\r\n\r\n \x3c!--edit cell--\x3e\r\n <ng-template #editTemplate let-row="row" let-value="value" let-rowIndex="rowIndex">\r\n <span class="text-primary" (click)="editLocation(rowIndex)"><i class="fa fa-edit"></i></span>\r\n </ng-template>\r\n\r\n \x3c!-- delete cell--\x3e\r\n <ng-template #deleteTemplate let-row="row" let-value="value" let-rowIndex="rowIndex">\r\n <span appCanDelete class="text-danger" (click)="deleteLocation(rowIndex)"> <i class="fa fa-trash"></i></span>\r\n </ng-template>\r\n </ngx-datatable>\r\n\r\n </div>\r\n\r\n\r\n\r\n\r\n\r\n </div>\r\n </div>\r\n </div>\r\n\r\n\r\n\r\n\r\n</div>\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n'},GmHC:function(e,t){e.exports='\x3c!-- main body --\x3e\r\n\r\n\r\n\r\n<app-model class="modal fade" id="followasst" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">\r\n\r\n <div class="modal-dialog" role="document">\r\n <div class="modal-content">\r\n <div class="modal-header">\r\n <div class="modal-title" id="exampleModalLabel">\r\n <h5 class="modal-title">{{ \'follow_request\' | translate }}\r\n\r\n <i >\r\n <img (click)="printExcel()" src="assets/images/excel_icon.png" >\r\n\r\n </i>\r\n\r\n </h5>\r\n\r\n </div>\r\n <button type="button" class="close" data-dismiss="modal" aria-label="Close" (click)="closeModal()">\r\n <span aria-hidden="true">×</span>\r\n </button>\r\n </div>\r\n <div class="modal-body">\r\n\r\n\r\n\r\n\r\n <div class="row">\r\n <div class="col-xl-12 mb-30">\r\n <div class="card card-statistics h-100">\r\n <div class="card-body">\r\n\r\n\r\n\r\n <div class="table-responsive">\r\n <table class="table table-1 table-bordered table-striped mb-0">\r\n <thead>\r\n <tr >\r\n\r\n\r\n <th>{{ \'status\' | translate }}</th>\r\n <th>{{ \'action\' | translate }}</th>\r\n\r\n <th>{{ \'empname\' | translate }}</th>\r\n <th>{{ \'CreatedOn\' | translate }}</th>\r\n\r\n </tr>\r\n </thead>\r\n <tbody>\r\n\r\n <tr *ngFor="let item of selectedAssets">\r\n\r\n\r\n <td>{{item.asset_status | translate}}</td>\r\n\r\n <td>{{item.asset_action | translate}}</td>\r\n <td>{{item.employee | translate}}</td>\r\n <td>{{item.CreatedOn }}</td>\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n </tr>\r\n\r\n </tbody>\r\n </table>\r\n\r\n\r\n\r\n\r\n </div>\r\n\r\n\r\n\r\n\r\n\r\n </div>\r\n </div>\r\n </div>\r\n\r\n\r\n\r\n\r\n </div>\r\n\r\n\r\n\r\n\r\n </div>\r\n\r\n\r\n </div>\r\n </div>\r\n</app-model>\r\n'},HTgR:function(e,t){e.exports='<div class="page-title">\r\n <div class="row">\r\n <div class="col-sm-6">\r\n <h4 class="mb-0"> {{ \'building\' | translate }} </h4>\r\n </div>\r\n <div class="col-sm-6">\r\n <ol class="breadcrumb pt-0 float-left float-sm-right ">\r\n <li class="breadcrumb-item"><a href="javascript:void(0);" class="default-color">{{ \'pages_setting\' | translate\r\n }}</a></li>\r\n <li class="breadcrumb-item active">{{ \'building\' | translate }}</li>\r\n </ol>\r\n </div>\r\n </div>\r\n</div>\r\n\x3c!-- main body --\x3e\r\n<div class="row">\r\n <div class="col-xl-12 mb-30">\r\n <div class="card card-statistics h-100">\r\n <div class="card-body">\r\n <h5 class="card-title mb-0">{{ \'control_buildings\' | translate }}</h5>\r\n <div class="card-body">\r\n <form #inputForm="ngForm" (ngSubmit)="formSubmit(inputForm)">\r\n <div class="form-row">\r\n\r\n <div class="form-group col-md-4">\r\n <label>{{ \'arabic_name\' | translate }}</label>\r\n <input myArabicOnly type="text" class="form-control" placeholder="{{ \'arabic_name\' | translate }}" required\r\n name="nameAr" [(ngModel)]="addUpdateTower.NameAr">\r\n <div class="validation-error "\r\n *ngIf="addUpdateTower.submitForm && inputForm.controls[\'nameAr\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n </div>\r\n </div>\r\n\r\n\r\n <div class="form-group col-md-4">\r\n <label>{{ \'english_name\' | translate }}</label>\r\n <input type="text" class="form-control"\r\n myEnglishOnly\r\n placeholder="{{ \'english_name\' | translate }}" required\r\n name="nameEn" [(ngModel)]="addUpdateTower.NameEn">\r\n <div class="validation-error "\r\n *ngIf="addUpdateTower.submitForm && inputForm.controls[\'nameEn\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n </div>\r\n </div>\r\n\r\n <div class="form-group col-md-4">\r\n <label> {{ \'its_location\' | translate }}</label>\r\n <select name="selectedSubcat" required class="form-control" [(ngModel)]="selectedSubcat" >\r\n <option value="">{{ \'select\' | translate }}</option>\r\n\r\n\r\n\r\n\r\n <option *ngFor="let obj of locations" [value]="obj.Id">{{obj | translate }}</option>\r\n\r\n </select>\r\n <div class="validation-error "\r\n *ngIf="addUpdateTower.submitForm && inputForm.controls[\'selectedSubcat\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n </div>\r\n </div>\r\n\r\n </div>\r\n\r\n <div class="form-group clearfix ">\r\n\r\n <button type="submit" class="btn btn-success btn-lg">{{ (addUpdateTower.rowIndex== -1? \'add\' :\'edit\') |\r\n translate }}\r\n </button>\r\n <button type="button" class="btn btn-danger btn-lg" (click)="clearForm()">{{ \'clear\' | translate }}\r\n </button>\r\n </div>\r\n </form>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n\r\n<div class="row">\r\n <div class="col-xl-12 mb-30">\r\n <div class="card card-statistics h-100">\r\n <div class="card-body">\r\n <h5 class="card-title mb-0">{{ \'building_list\' | translate }}\r\n <i >\r\n <img (click)="printExcel()" src="assets/images/excel_icon.png" >\r\n\r\n </i>\r\n </h5>\r\n\r\n <div class="form-group col-md-4" style="margin-top: 20px">\r\n\r\n <input type="text" class="form-control" placeholder="{{ \'search\' | translate }}"\r\n (input)="filterBuildings($event)">\r\n </div>\r\n <div class="table-responsive">\r\n\r\n <ngx-datatable\r\n\r\n [messages]="{emptyMessage: \'NODATA\' | translate, totalMessage: \'TOTAL\' | translate, selectedMessage: false}"\r\n\r\n\r\n class="bootstrap" [rows]="towers" [columns]="columns" [columnMode]="\'force\'"\r\n [headerHeight]="50" [footerHeight]="50" [rowHeight]="\'auto\'" [limit]="10">\r\n\r\n \x3c!--edit cell--\x3e\r\n <ng-template #editTemplate let-row="row" let-value="value" let-rowIndex="rowIndex">\r\n <span class="text-primary"><i class="fa fa-edit" (click)="editTower(rowIndex)"></i></span>\r\n </ng-template>\r\n\r\n \x3c!-- delete cell--\x3e\r\n <ng-template #deleteTemplate let-row="row" let-value="value" let-rowIndex="rowIndex">\r\n <span appCanDelete class="text-danger"> <i class="fa fa-trash" (click)="deleteTower(rowIndex)"></i></span>\r\n </ng-template>\r\n </ngx-datatable>\r\n\r\n </div>\r\n\r\n </div>\r\n </div>\r\n </div>\r\n\r\n</div>\r\n'},"HaY/":function(e,t){e.exports=""},"Hff+":function(e,t){e.exports="<router-outlet></router-outlet>\r\n"},Jnfr:function(e,t){function r(e){return Promise.resolve().then(function(){throw new Error("Cannot find module '"+e+"'.")})}r.keys=function(){return[]},r.resolve=r,e.exports=r,r.id="Jnfr"},Lw4G:function(e,t){e.exports=""},M1bp:function(e,t){e.exports=""},MVQA:function(e,t){e.exports=""},Ne79:function(e,t){e.exports=""},PZFO:function(e,t){e.exports='<div class="row mb-30">\r\n <div class="col">\r\n <div class="card card-statistics" style="width: 100%">\r\n <div class="card-body">\r\n <h5 class="card-title"> {{\'profile\' | translate}}</h5>\r\n <div class="tab round">\r\n <ul class="nav nav-tabs" role="tablist">\r\n <li class="nav-item" (click)="setSelectedTab(1)">\r\n <a [ngClass]="{\'nav-link\':true , \'active\':selectedTab==1 ,\'pointer\':true}" data-toggle="tab" role="tab">\r\n <i class="fa fa-user-circle"></i> {{\'my_info\' | translate}}</a>\r\n </li>\r\n <li class="nav-item" (click)="setSelectedTab(2)">\r\n <a [ngClass]="{\'nav-link\':true , \'active\':selectedTab==2,\'pointer\':true}" role="tab"><i\r\n class="fa fa-user"></i> {{\'personal_info\' | translate}} </a>\r\n </li>\r\n <li class="nav-item" (click)="setSelectedTab(3)">\r\n <a [ngClass]="{\'nav-link\':true , \'active\':selectedTab==3,\'pointer\':true}"><i class="fa fa-lock"></i>\r\n {{\'update_password\'|translate}} </a>\r\n </li>\r\n <li class="nav-item" (click)="setSelectedTab(4)">\r\n <a [ngClass]="{\'nav-link\':true , \'active\':selectedTab==4,\'pointer\':true}"><i\r\n class="fa fa-camera"></i>\r\n {{\'change_personal_photo\' | translate}} </a>\r\n </li>\r\n\r\n\r\n \x3c!--<li class="nav-item" (click)="setSelectedTab(5)">--\x3e\r\n \x3c!--<a [ngClass]="{\'nav-link\':true , \'active\':selectedTab==5,\'pointer\':true}"><i--\x3e\r\n \x3c!--class="fa fa-language"></i>--\x3e\r\n \x3c!--{{\'change_lang\' | translate}} </a>--\x3e\r\n \x3c!--</li>--\x3e\r\n\r\n </ul>\r\n\r\n\r\n <div class="row" *ngIf="selectedTab==1">\r\n <div class="col-12 text-center">\r\n <img class="img-thumbnail rounded-circle" style="width: 100px; height: 100px"\r\n [src]="getUserImage()">\r\n </div>\r\n <div class="col-12 mt-2 text-center">\r\n <h6>{{user.UserName}}</h6>\r\n <h6>{{user.Email}}</h6>\r\n <h6>{{user.employee?.MobileNumber}}</h6>\r\n </div>\r\n </div>\r\n\r\n <div class="row" *ngIf="selectedTab==2">\r\n <div class="col">\r\n <form novalidate #form="ngForm" (ngSubmit)="updateProfile(form)">\r\n \x3c!-- name ar --\x3e\r\n <div class="form-group">\r\n <label for="nameAr">{{\'arabic_name\' | translate}}</label>\r\n <input type="text" class="form-control" id="nameAr" name="arabic_name"\r\n [(ngModel)]="userEditableData.NameAr" required>\r\n <small *ngIf="userEditableData.submitForm &&form.controls[\'arabic_name\'].errors?.required"\r\n class="validation-error">\r\n {{\'required\'|translate}}\r\n </small>\r\n </div>\r\n\r\n \x3c!-- name en--\x3e\r\n <div class="form-group">\r\n <label for="nameEn">{{\'english_name\' | translate}}</label>\r\n <input type="text" class="form-control" id="nameEn" name="english_name"\r\n [(ngModel)]="userEditableData.NameEn" required>\r\n <small *ngIf="userEditableData.submitForm &&form.controls[\'english_name\'].errors?.required"\r\n class="validation-error">\r\n {{\'required\'|translate}}\r\n </small>\r\n </div>\r\n \x3c!-- phone--\x3e\r\n <div class="form-group">\r\n <label for="phone">{{\'mobile\' | translate}}</label>\r\n <input maxlength="10" myNumberOnly type="text" class="form-control" id="phone" name="mobile_number"\r\n [(ngModel)]="userEditableData.MobileNumber" required>\r\n <small *ngIf="userEditableData.submitForm &&form.controls[\'mobile_number\'].errors?.required"\r\n class="validation-error">\r\n {{\'required\'|translate}}\r\n </small>\r\n </div>\r\n\r\n \x3c!-- Address ar--\x3e\r\n <div class="form-group">\r\n <label for="addressAr">{{\'arabic_address\' | translate}}</label>\r\n <input myArabicOnly class="form-control" id="addressAr" name="addressAr"\r\n [(ngModel)]="userEditableData.AddressAr" required>\r\n <small *ngIf="userEditableData.submitForm &&form.controls[\'addressAr\'].errors?.required"\r\n class="validation-error">\r\n {{\'required\'|translate}}\r\n </small>\r\n </div>\r\n \x3c!-- Address en--\x3e\r\n <div class="form-group">\r\n <label for="addressAr">{{\'english_address\' | translate}}</label>\r\n <input myEnglishOnly class="form-control" id="addressEn" name="addressEn"\r\n [(ngModel)]="userEditableData.AddressEn" required>\r\n <small *ngIf="userEditableData.submitForm &&form.controls[\'addressEn\'].errors?.required"\r\n class="validation-error">\r\n {{\'required\'|translate}}\r\n </small>\r\n </div>\r\n <button class="btn btn-success btn-lg" type="submit">{{\'edit\'|translate}}</button>\r\n </form>\r\n </div>\r\n </div>\r\n\r\n <div class="row" *ngIf="selectedTab==3">\r\n <div class="col">\r\n <form novalidate #passForm="ngForm" (ngSubmit)="changePassword(passForm)">\r\n \x3c!-- Old Password --\x3e\r\n <div class="form-group">\r\n <label for="oldPassword">{{\'old_password\' | translate}}</label>\r\n <input type="text" class="form-control" id="oldPassword" name="old_password"\r\n [(ngModel)]="passwordData.old_password" required minlength="6">\r\n <small *ngIf="passwordData.submitForm &&passForm.controls[\'old_password\'].errors?.required"\r\n class="validation-error">\r\n {{\'required\'|translate}}\r\n </small>\r\n\r\n <small *ngIf="passwordData.submitForm &&passForm.controls[\'old_password\'].errors?.minlength"\r\n class="validation-error">\r\n {{\'min_length_6\'|translate}}\r\n </small>\r\n </div>\r\n\r\n \x3c!-- New Password --\x3e\r\n <div class="form-group">\r\n <label for="new_password">{{\'new_password\' | translate}}</label>\r\n <input type="text" class="form-control" id="new_password" name="new_password"\r\n [(ngModel)]="passwordData.new_password" required minlength="6">\r\n <small *ngIf="passwordData.submitForm &&passForm.controls[\'new_password\'].errors?.required"\r\n class="validation-error">\r\n {{\'required\'|translate}}\r\n </small>\r\n <small *ngIf="passwordData.submitForm &&passForm.controls[\'new_password\'].errors?.minlength"\r\n class="validation-error">\r\n {{\'min_length_6\'|translate}}\r\n </small>\r\n </div>\r\n \x3c!-- retyped New Password--\x3e\r\n <div class="form-group">\r\n <label for="retyped_password">{{\'retyped_password\' | translate}}</label>\r\n <input type="tel" class="form-control" id="retyped_password" name="retyped_password"\r\n [(ngModel)]="passwordData.same_new_password" required minlength="6">\r\n <small *ngIf="passwordData.submitForm &&passForm.controls[\'retyped_password\'].errors?.required"\r\n class="validation-error">\r\n {{\'required\'|translate}}\r\n </small>\r\n <small *ngIf="passwordData.submitForm &&passForm.controls[\'retyped_password\'].errors?.minlength"\r\n class="validation-error">\r\n {{\'min_length_6\'|translate}}\r\n </small>\r\n </div>\r\n\r\n <button class="btn btn-success btn-lg" type="submit">{{\'change_password\'|translate}}</button>\r\n <button class="btn btn-danger btn-lg mx-2" (click)="clearPasswordForm()">{{\'clear\' |translate}}</button>\r\n </form>\r\n </div>\r\n </div>\r\n\r\n <div class="row" *ngIf="selectedTab==4">\r\n <div class="col">\r\n <form #imageForm="ngForm" novalidate (ngSubmit)="uploadPersonalPhoto()">\r\n\r\n <div class="form-group col-md-6">\r\n <label> {{ \'personal_pic\' | translate }} </label>\r\n\r\n <div class="custom-file">\r\n <input type="file" class="custom-file-input" id="customFile"\r\n (change)="selectPhoto($event)">\r\n <label class="custom-file-label" for="customFile">\r\n {{filePath}}\r\n </label>\r\n </div>\r\n </div>\r\n <button class="btn btn-lg btn-success" type="submit">{{\'upload_photo\' |translate}}</button>\r\n </form>\r\n\r\n </div>\r\n </div>\r\n\r\n\r\n <div class="row" *ngIf="selectedTab==5">\r\n <div class="col">\r\n <form novalidate #form="ngForm" (ngSubmit)="changeLang(form)">\r\n\r\n <div class="form-group col-md-6">\r\n\r\n <label> {{ \'choose_lang\' | translate }} </label>\r\n <select name="lang" required class="form-control" [(ngModel)]="selectedLang">\r\n <option value="ar">{{ \'arabic\' | translate }}</option>\r\n <option value="en">{{ \'english\' | translate }}</option>\r\n\r\n </select>\r\n\r\n\r\n </div>\r\n\r\n <button class="btn btn-success btn-lg" type="submit">{{\'edit\'|translate}}</button>\r\n </form>\r\n </div>\r\n </div>\r\n\r\n\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n'},Pl7K:function(e,t){e.exports=""},"RMG/":function(e,t){e.exports=""},RiXN:function(e,t){e.exports='\x3c!-- main body --\x3e\r\n\r\n\r\n\r\n<app-model class="modal fade" id="followasst" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">\r\n\r\n <div class="modal-dialog modal-lg" role="document">\r\n <div class="modal-content">\r\n <div class="modal-header">\r\n <div class="modal-title" id="exampleModalLabel">\r\n <h5 class="modal-title">{{ \'session_result\' | translate }}\r\n\r\n <i >\r\n <img (click)="printExcel()" src="assets/images/excel_icon.png" >\r\n\r\n </i>\r\n\r\n </h5>\r\n\r\n </div>\r\n <button type="button" class="close" data-dismiss="modal" aria-label="Close" (click)="closeModal()">\r\n <span aria-hidden="true">×</span>\r\n </button>\r\n </div>\r\n <div class="modal-body">\r\n\r\n\r\n\r\n\r\n <div class="row">\r\n <div class="col-xl-12 mb-30">\r\n <div class="card card-statistics h-100">\r\n <div class="card-body">\r\n\r\n\r\n\r\n <div class="table-responsive">\r\n <table class="table table-1 table-bordered table-striped mb-0">\r\n <thead>\r\n <tr >\r\n <th>{{ \'electronic_id\' | translate }}</th>\r\n\r\n <th>{{ \'main_department\' | translate }}</th>\r\n <th>{{ \'category\' | translate }}</th>\r\n <th>{{ \'model\' | translate }}</th>\r\n <th>{{ \'status\' | translate }}</th>\r\n <th>{{ \'name_attached\' | translate }}</th>\r\n\r\n\r\n <th>{{ \'status\' | translate }}</th>\r\n\r\n\r\n\r\n </tr>\r\n </thead>\r\n <tbody>\r\n\r\n <tr *ngFor="let item of selectedAssets">\r\n <td>{{item.Epc | translate}}</td>\r\n\r\n\r\n\r\n <td>{{item.asset?.main_category | translate}}</td>\r\n <td>{{item.asset?.category | translate}}</td>\r\n <td>{{item.asset?.model | translate}}</td>\r\n\r\n <td>{{item.asset?.status | translate}}</td>\r\n\r\n <td>{{item.asset?.employee | translate}}</td>\r\n\r\n\r\n <td *ngIf="item.IsFound == 1 && item.IsRead == 1" style="color: green">\r\n {{ \'found2\' | translate }}\r\n </td>\r\n\r\n\r\n\r\n <td *ngIf="(item.IsFound == 1 || item.IsFound == 0) && item.IsRead == 0" style="color: red">\r\n {{ \'not_found2\' | translate }}\r\n </td>\r\n\r\n\r\n\r\n <td *ngIf="item.IsFound == 0 && item.IsRead == 1 && item.asset == null" style="color: orange">\r\n {{ \'not_found_in_system\' | translate }}\r\n <i (click)="addAsset(item.Epc,i)" class="fa fa-plus"></i>\r\n\r\n </td>\r\n\r\n <td *ngIf="item.IsFound == 0 && item.IsRead == 1 && item.asset != null" style="color: orange">\r\n {{ \'found_other_place\' | translate }}\r\n <br/>\r\n {{item.asset.location | translate }} / {{item.asset.tower | translate }}\r\n / {{item.asset.floor | translate }} / {{item.asset.room | translate }}\r\n\r\n\r\n\r\n <i (click)="editAsset(item.asset,i)" class="fa fa-edit"></i>\r\n\r\n\r\n </td>\r\n\r\n\r\n\r\n\r\n </tr>\r\n\r\n </tbody>\r\n </table>\r\n\r\n\r\n\r\n\r\n </div>\r\n\r\n\r\n\r\n\r\n\r\n </div>\r\n </div>\r\n </div>\r\n\r\n\r\n\r\n\r\n </div>\r\n\r\n\r\n\r\n\r\n </div>\r\n\r\n\r\n </div>\r\n </div>\r\n</app-model>\r\n\r\n\r\n<app-addnew-asset #addasset>\r\n\r\n</app-addnew-asset>\r\n'},RwMf:function(e,t){e.exports='<div class="page-title">\r\n <div class="row">\r\n <div class="col-sm-6">\r\n <h4 class="mb-0"> {{ \'categories\' | translate }} </h4>\r\n </div>\r\n <div class="col-sm-6">\r\n\r\n\r\n <ol class="breadcrumb pt-0 float-left float-sm-right ">\r\n <li class="breadcrumb-item"><a href="javascript:void(0);" class="default-color">{{ \'assets\' | translate\r\n }}</a></li>\r\n <li class="breadcrumb-item active">{{ \'categories\' | translate }}</li>\r\n </ol>\r\n\r\n </div>\r\n </div>\r\n</div>\r\n\x3c!-- main body --\x3e\r\n<div class="row">\r\n <div class="col-xl-12 mb-30">\r\n <div class="card card-statistics h-100">\r\n <div class="card-body">\r\n <h5 class="card-title mb-0">{{ \'control_categories\' | translate }}</h5>\r\n <div class="card-body">\r\n <form #inputForm="ngForm" (ngSubmit)="formSubmit(inputForm)">\r\n <div class="form-row">\r\n\r\n <div class="form-group col-md-3">\r\n <label>{{ \'arabic_name\' | translate }}</label>\r\n <input type="text"\r\n myArabicOnly\r\n class="form-control"\r\n placeholder="{{ \'arabic_name\' | translate }}" required\r\n name="nameAr" [(ngModel)]="addUpdateTower.NameAr">\r\n <div class="validation-error "\r\n *ngIf="addUpdateTower.submitForm && inputForm.controls[\'nameAr\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n </div>\r\n </div>\r\n\r\n\r\n <div class="form-group col-md-3">\r\n <label>{{ \'english_name\' | translate }}</label>\r\n <input myEnglishOnly type="text"\r\n class="form-control" placeholder="{{ \'english_name\' | translate }}"\r\n required\r\n name="nameEn" [(ngModel)]="addUpdateTower.NameEn">\r\n <div class="validation-error "\r\n *ngIf="addUpdateTower.submitForm && inputForm.controls[\'nameEn\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n </div>\r\n </div>\r\n\r\n <div class="form-group col-md-3">\r\n <label> {{ \'its_department\' | translate }}</label>\r\n <select myArabicOnly name="selectedSubcat" required class="form-control" [(ngModel)]="selectedSubcat" >\r\n <option value="">{{ \'select\' | translate }}</option>\r\n\r\n\r\n\r\n\r\n <option *ngFor="let obj of locations" [value]="obj.Id">{{obj | translate }}</option>\r\n\r\n </select>\r\n <div class="validation-error "\r\n *ngIf="addUpdateTower.submitForm && inputForm.controls[\'selectedSubcat\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n </div>\r\n </div>\r\n\r\n\r\n\r\n\r\n\r\n <div class="form-group col-md-3">\r\n <label>{{ \'DesAr\' | translate }}</label>\r\n <input myArabicOnly type="text" class="form-control" placeholder="{{ \'DesAr\' | translate }}"\r\n [(ngModel)]="addUpdateTower.DescriptionAr" name="DescriptionAr" required>\r\n <div class="validation-error "\r\n *ngIf="addUpdateTower.submitForm && inputForm.controls[\'DescriptionAr\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n </div>\r\n </div>\r\n\r\n\r\n\r\n\r\n\r\n <div class="form-group col-md-3">\r\n <label>{{ \'DesEn\' | translate }}</label>\r\n <input myEnglishOnly type="text" class="form-control" placeholder="{{ \'DesEn\' | translate }}"\r\n [(ngModel)]="addUpdateTower.DescriptionEn" name="DescriptionEn" required>\r\n <div class="validation-error "\r\n *ngIf="addUpdateTower.submitForm && inputForm.controls[\'DescriptionEn\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n </div>\r\n </div>\r\n\r\n\r\n </div>\r\n\r\n <div class="form-group clearfix ">\r\n\r\n <button type="submit" class="btn btn-success btn-lg">{{ (addUpdateTower.rowIndex== -1? \'add\' :\'edit\') |\r\n translate }}\r\n </button>\r\n <button type="button" class="btn btn-danger btn-lg" (click)="clearForm()">{{ \'clear\' | translate }}\r\n </button>\r\n </div>\r\n </form>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n\r\n<div class="row">\r\n <div class="col-xl-12 mb-30">\r\n <div class="card card-statistics h-100">\r\n <div class="card-body">\r\n <h5 class="card-title mb-0">{{ \'category_list\' | translate }}\r\n <i >\r\n <img (click)="printExcel()" src="assets/images/excel_icon.png" >\r\n\r\n </i>\r\n </h5>\r\n\r\n <div class="form-group col-md-4" style="margin-top: 20px">\r\n\r\n <input type="text" class="form-control" placeholder="{{ \'search\' | translate }}"\r\n (input)="filterBuildings($event)">\r\n </div>\r\n\r\n\r\n\r\n\r\n\r\n\r\n <div class="table-responsive">\r\n\r\n <ngx-datatable\r\n\r\n [messages]="{emptyMessage: \'NODATA\' | translate, totalMessage: \'TOTAL\' | translate, selectedMessage: false}"\r\n\r\n\r\n class="bootstrap" [rows]="towers" [columns]="columns" [columnMode]="\'force\'"\r\n [headerHeight]="50" [footerHeight]="50" [rowHeight]="\'auto\'" [limit]="10">\r\n\r\n \x3c!--edit cell--\x3e\r\n <ng-template #editTemplate let-row="row" let-value="value" let-rowIndex="rowIndex">\r\n <span class="text-primary"><i class="fa fa-edit" (click)="editTower(rowIndex)"></i></span>\r\n </ng-template>\r\n\r\n \x3c!-- delete cell--\x3e\r\n <ng-template #deleteTemplate let-row="row" let-value="value" let-rowIndex="rowIndex">\r\n <span appCanDelete class="text-danger"> <i class="fa fa-trash" (click)="deleteTower(rowIndex)"></i></span>\r\n </ng-template>\r\n </ngx-datatable>\r\n\r\n </div>\r\n\r\n </div>\r\n </div>\r\n </div>\r\n\r\n</div>\r\n'},SaPb:function(e,t){e.exports=""},Tlan:function(e,t){e.exports='<div class="page-title">\r\n <div class="row">\r\n <div class="col-sm-6">\r\n <h4 class="mb-0"> {{ \'attach_assets\' | translate }}\r\n </h4>\r\n </div>\r\n <div class="col-sm-6">\r\n <ol class="breadcrumb pt-0 float-left float-sm-right ">\r\n <li class="breadcrumb-item"><a href="javascript:void(0);" class="default-color">{{ \'assets\' | translate }}</a>\r\n </li>\r\n <li class="breadcrumb-item active">{{ \'attach_assets\' | translate }} </li>\r\n </ol>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n\r\n<div class="row">\r\n <div class="col-xl-12 mb-30">\r\n <div class="card card-statistics h-100">\r\n <div class="card-body">\r\n <h5 class="card-title mb-0">{{ \'assets_list\' | translate }}</h5>\r\n\r\n <h4 *ngIf="NoteText != \'\'">\r\n\r\n {{\'NoteText\' |translate}} : - {{NoteText}}\r\n </h4>\r\n\r\n <div class="table-responsive">\r\n <table class="table table-1 table-bordered table-striped mb-0">\r\n <thead>\r\n <tr>\r\n\r\n <th>{{ \'serial_number\' | translate }}</th>\r\n <th>{{ \'main_department\' | translate }}</th>\r\n <th>{{ \'category\' | translate }}</th>\r\n <th>{{ \'model\' | translate }}</th>\r\n <th>{{ \'status\' | translate }}</th>\r\n <th>{{ \'location\' | translate }}</th>\r\n <th>{{ \'building\' | translate }}</th>\r\n <th>{{ \'floor\' | translate }}</th>\r\n <th>{{ \'offices_select\' | translate }}</th>\r\n\r\n <th>{{ \'action\' | translate }}</th>\r\n\r\n </tr>\r\n </thead>\r\n <tbody>\r\n\r\n <tr *ngFor="let item of assets;let i = index">\r\n\r\n\r\n <td>{{item.SerialNumber}}</td>\r\n\r\n\r\n <td>{{item.main_category | translate}}</td>\r\n <td>{{item.category | translate}}</td>\r\n <td>{{item.model | translate}}</td>\r\n\r\n <td>{{item.status | translate}}</td>\r\n\r\n\r\n <td>{{item.location | translate}}</td>\r\n <td>{{item.tower | translate}}</td>\r\n <td>{{item.floor | translate}}</td>\r\n <td>{{item.room | translate}}</td>\r\n <td>\r\n <div class="row" *ngIf="isAttachedBefore(item)">\r\n <button (click)="AcceptAsset(item ,i)" type="button" type="submit" class="btn btn-success btn-lg" style="margin: 10px">\r\n {{\'accept\'| translate}}\r\n </button>\r\n <button (click)="RejectAsset(item,i)" type="button" type="submit" class="btn btn-danger btn-lg" style="margin: 10px">\r\n {{\'reject\'| translate}}\r\n </button>\r\n </div>\r\n\r\n <div *ngIf="!isAttachedBefore(item)">\r\n {{\'attached_before\' | translate}}\r\n </div>\r\n\r\n </td>\r\n\r\n\r\n </tr>\r\n\r\n </tbody>\r\n </table>\r\n\r\n </div>\r\n\r\n\r\n </div>\r\n </div>\r\n </div>\r\n\r\n\r\n</div>\r\n\r\n\r\n\r\n\r\n\r\n'},UL2A:function(e,t){e.exports='<div id="pre-loader" *ngIf="_commondata.loader.value">\r\n <img src="assets/images/pre-loader/loader-01.svg" alt="">\r\n</div>\r\n\r\n<div class="wrapper">\r\n\r\n <section class="height-100vh d-flex align-items-center page-section-ptb login"\r\n style="background: url(../../../../assets/images/login-bg.jpg);">\r\n <div class="container">\r\n <div class="row justify-content-center no-gutters vertical-align">\r\n <div class="col-lg-4 col-md-6 login-fancy-bg "\r\n style="background: url(../../../../assets/images/login-inner-bg.jpg);">\r\n <div class="h-100"\r\n\r\n >\r\n\r\n <img style=" height: 100%; width: 100%" src="assets/images/login-inner-bg.jpg">\r\n\r\n </div>\r\n\r\n\r\n\r\n\r\n\r\n\r\n </div>\r\n <div class="col-lg-4 col-md-6 bg-white">\r\n <form novalidate #passwordForm="ngForm" (ngSubmit)="forgetPasswordClick(passwordForm)">\r\n <div class="login-fancy pb-40 clearfix">\r\n <h3 class="mb-30">{{ \'enter_email\' | translate }}</h3>\r\n <div class="section-field mb-20">\r\n <label class="mb-10" for="email">{{ \'email\' | translate }} </label>\r\n <input id="email" class="web form-control" type="text" placeholder="\r\n{{ \'email\' | translate }}" name="email"\r\n pattern="^[a-z0-9._%+-]+@[a-z0-9.-]+\\.[a-z]{2,4}$"\r\n [(ngModel)]="email"\r\n required>\r\n\r\n <div class="validation-error "\r\n *ngIf="passwordForm.submitted && passwordForm.controls[\'email\'].errors?.required">\r\n {{ \'enter_email\' | translate }}\r\n </div>\r\n\r\n <div class="validation-error"\r\n *ngIf="passwordForm.submitted && passwordForm.controls[\'email\'].errors?.pattern">\r\n {{ \'invalid_email\' | translate }}\r\n </div>\r\n\r\n </div>\r\n <button class="button btn-success d-block" type="submit">\r\n {{ \'send_message\' | translate }} <i class="fa fa-check"></i>\r\n </button>\r\n </div>\r\n </form>\r\n </div>\r\n </div>\r\n </div>\r\n </section>\r\n\r\n</div>\r\n'},UrQ3:function(e,t){e.exports='<div class="page-title">\r\n <div class="row">\r\n <div class="col-sm-6">\r\n <h4 class="mb-0"> {{ \'floor\' | translate }} </h4>\r\n </div>\r\n <div class="col-sm-6">\r\n\r\n <ol class="breadcrumb pt-0 float-left float-sm-right ">\r\n <li class="breadcrumb-item"><a href="javascript:void(0);" class="default-color">{{ \'pages_setting\' | translate\r\n }}</a></li>\r\n <li class="breadcrumb-item active">{{ \'floor\' | translate }}</li>\r\n </ol>\r\n\r\n\r\n\r\n </div>\r\n </div>\r\n</div>\r\n\x3c!-- main body --\x3e\r\n<div class="row">\r\n <div class="col-xl-12 mb-30">\r\n <div class="card card-statistics h-100">\r\n <div class="card-body">\r\n <h5 class="card-title mb-0">{{ \'control_floor\' | translate }}</h5>\r\n <div class="card-body">\r\n <form #inputForm="ngForm" (ngSubmit)="formSubmit(inputForm)">\r\n <div class="form-row">\r\n\r\n <div class="form-group col-md-4">\r\n <label>{{ \'arabic_name\' | translate }}</label>\r\n <input\r\n myArabicOnly\r\n type="text" class="form-control" placeholder="{{ \'arabic_name\' | translate }}" required\r\n name="nameAr" [(ngModel)]="addUpdateTower.NameAr">\r\n <div class="validation-error "\r\n *ngIf="addUpdateTower.submitForm && inputForm.controls[\'nameAr\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n </div>\r\n </div>\r\n\r\n\r\n <div class="form-group col-md-4">\r\n <label>{{ \'english_name\' | translate }}</label>\r\n <input\r\n myEnglishOnly\r\n type="text" class="form-control" placeholder="{{ \'english_name\' | translate }}" required\r\n name="nameEn" [(ngModel)]="addUpdateTower.NameEn">\r\n <div class="validation-error "\r\n *ngIf="addUpdateTower.submitForm && inputForm.controls[\'nameEn\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n </div>\r\n </div>\r\n\r\n <div class="form-group col-md-4">\r\n <label> {{ \'its_location\' | translate }}</label>\r\n <select name="selectedMaincat" required class="form-control"\r\n (change)="getAllSubCat($event)"\r\n [(ngModel)]="selectedMaincat" >\r\n <option value="">{{ \'select\' | translate }}</option>\r\n\r\n\r\n\r\n\r\n <option *ngFor="let obj of locations" [value]="obj.Id">{{obj | translate }}</option>\r\n\r\n </select>\r\n <div class="validation-error "\r\n *ngIf="addUpdateTower.submitForm && inputForm.controls[\'selectedMaincat\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n </div>\r\n\r\n\r\n\r\n\r\n\r\n\r\n </div>\r\n\r\n\r\n\r\n <div class="form-group col-md-4">\r\n <label> {{ \'its_building\' | translate }}</label>\r\n <select name="selectedSubcat" required class="form-control" [(ngModel)]="selectedSubcat" >\r\n <option value="">{{ \'select\' | translate }}</option>\r\n\r\n\r\n\r\n\r\n <option *ngFor="let obj of subcat" [value]="obj.Id">{{obj | translate }}</option>\r\n\r\n </select>\r\n <div class="validation-error "\r\n *ngIf="addUpdateTower.submitForm && inputForm.controls[\'selectedSubcat\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n </div>\r\n\r\n\r\n\r\n\r\n\r\n\r\n </div>\r\n\r\n\r\n </div>\r\n\r\n <div class="form-group clearfix ">\r\n\r\n <button type="submit" class="btn btn-success btn-lg">{{ (addUpdateTower.rowIndex== -1? \'add\' :\'edit\') |\r\n translate }}\r\n </button>\r\n <button type="button" class="btn btn-danger btn-lg" (click)="clearForm()">{{ \'clear\' | translate }}\r\n </button>\r\n </div>\r\n </form>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n\r\n<div class="row">\r\n <div class="col-xl-12 mb-30">\r\n <div class="card card-statistics h-100">\r\n <div class="card-body">\r\n <h5 class="card-title mb-0">{{ \'floor_list\' | translate }}\r\n <i >\r\n <img (click)="printExcel()" src="assets/images/excel_icon.png" >\r\n\r\n </i>\r\n </h5>\r\n\r\n <div class="form-group col-md-4" style="margin-top: 20px">\r\n\r\n <input type="text" class="form-control" placeholder="{{ \'search\' | translate }}"\r\n (input)="filterBuildings($event)">\r\n </div>\r\n <div class="table-responsive">\r\n\r\n <ngx-datatable\r\n\r\n [messages]="{emptyMessage: \'NODATA\' | translate, totalMessage: \'TOTAL\' | translate, selectedMessage: false}"\r\n\r\n\r\n class="bootstrap" [rows]="towers" [columns]="columns" [columnMode]="\'force\'"\r\n [headerHeight]="50" [footerHeight]="50" [rowHeight]="\'auto\'" [limit]="10">\r\n\r\n \x3c!--edit cell--\x3e\r\n <ng-template #editTemplate let-row="row" let-value="value" let-rowIndex="rowIndex">\r\n <span class="text-primary"><i class="fa fa-edit" (click)="editTower(rowIndex)"></i></span>\r\n </ng-template>\r\n\r\n \x3c!-- delete cell--\x3e\r\n <ng-template #deleteTemplate let-row="row" let-value="value" let-rowIndex="rowIndex">\r\n <span appCanDelete class="text-danger"> <i class="fa fa-trash" (click)="deleteTower(rowIndex)"></i></span>\r\n </ng-template>\r\n </ngx-datatable>\r\n\r\n </div>\r\n\r\n </div>\r\n </div>\r\n </div>\r\n\r\n</div>\r\n'},V7qO:function(e,t){e.exports=""},XErW:function(e,t){e.exports=""},"Xn/Z":function(e,t){e.exports=""},Xpvu:function(e,t){e.exports=""},YdQc:function(e,t){e.exports='<div class="page-title">\r\n <div class="row">\r\n <div class="col-sm-6">\r\n <h4 class="mb-0">{{ \'main_departments\' | translate }} </h4>\r\n </div>\r\n <div class="col-sm-6">\r\n <ol class="breadcrumb pt-0 float-left float-sm-right ">\r\n <li class="breadcrumb-item"><a href="javascript:void(0);" class="default-color">{{ \'pages_setting\' | translate }}</a></li>\r\n <li class="breadcrumb-item active">{{ \'main_departments\' | translate }} </li>\r\n </ol>\r\n </div>\r\n </div>\r\n</div>\r\n\x3c!-- main body --\x3e\r\n<div class="row">\r\n <div class="col-xl-12 mb-30">\r\n <div class="card card-statistics h-100">\r\n <div class="card-body">\r\n <h5 class="card-title mb-0">{{ \'control_main_departments\' | translate }}</h5>\r\n <form novalidate #locationForm="ngForm" (ngSubmit)="formSubmit(locationForm)">\r\n\r\n <div class="form-row">\r\n <div class="form-group col-md-3">\r\n <label>{{ \'arabic_name\' | translate }}</label>\r\n <input myArabicOnly type="text" class="form-control" placeholder="{{ \'arabic_name\' | translate }}"\r\n [(ngModel)]="addUpdateLocation.NameAr" name="nameAr" required>\r\n\r\n <div class="validation-error "\r\n *ngIf="addUpdateLocation.submit && locationForm.controls[\'nameAr\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n </div>\r\n </div>\r\n\r\n\r\n <div class="form-group col-md-3">\r\n <label>{{ \'english_name\' | translate }}</label>\r\n <input myEnglishOnly type="text" class="form-control" placeholder="{{ \'english_name\' | translate }}"\r\n [(ngModel)]="addUpdateLocation.NameEn" name="nameEn" required>\r\n <div class="validation-error "\r\n *ngIf="addUpdateLocation.submit && locationForm.controls[\'nameEn\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n </div>\r\n </div>\r\n\r\n\r\n\r\n\r\n\r\n <div class="form-group col-md-3">\r\n <label>{{ \'DesAr\' | translate }}</label>\r\n <input myArabicOnly type="text" class="form-control" placeholder="{{ \'DesAr\' | translate }}"\r\n [(ngModel)]="addUpdateLocation.DescriptionAr" name="DescriptionAr" required>\r\n <div class="validation-error "\r\n *ngIf="addUpdateLocation.submit && locationForm.controls[\'DescriptionAr\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n </div>\r\n </div>\r\n\r\n\r\n\r\n\r\n\r\n <div class="form-group col-md-3">\r\n <label>{{ \'DesEn\' | translate }}</label>\r\n <input myEnglishOnly type="text" class="form-control" placeholder="{{ \'DesEn\' | translate }}"\r\n [(ngModel)]="addUpdateLocation.DescriptionEn" name="DescriptionEn" required>\r\n <div class="validation-error "\r\n *ngIf="addUpdateLocation.submit && locationForm.controls[\'DescriptionEn\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n </div>\r\n </div>\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n </div>\r\n\r\n <div class="form-group clearfix ">\r\n <button type="submit" class="btn btn-success btn-lg">{{ (addUpdateLocation.id==0 ?\'add\':\'edit\') |\r\n translate}}\r\n </button>\r\n <button type="button" class="btn btn-danger btn-lg" (click)="resetForm()">{{ \'clear\' | translate }}</button>\r\n\r\n\r\n\r\n </div>\r\n </form>\r\n\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n\r\n\r\n\r\n\r\n\r\n<div class="row">\r\n <div class="col-xl-12 mb-30">\r\n <div class="card card-statistics h-100">\r\n <div class="card-body">\r\n <h5 class="card-title mb-0">{{ \'main_departments\' | translate }}\r\n <i >\r\n <img (click)="printExcel()" src="assets/images/excel_icon.png" >\r\n\r\n </i>\r\n\r\n </h5>\r\n\r\n\r\n <div class="form-group col-md-4" style="margin-top: 20px">\r\n\r\n <input type="text" class="form-control" placeholder="{{ \'search\' | translate }}"\r\n (input)="filterLocations($event)">\r\n </div>\r\n <div class="table-responsive">\r\n <ngx-datatable\r\n\r\n [messages]="{emptyMessage: \'NODATA\' | translate, totalMessage: \'TOTAL\' | translate, selectedMessage: false}"\r\n\r\n\r\n class="bootstrap" [rows]="locations" [columns]="columns" [columnMode]="\'force\'"\r\n [headerHeight]="50" [footerHeight]="50" [rowHeight]="\'auto\'" [limit]="10">\r\n\r\n \x3c!--edit cell--\x3e\r\n <ng-template #editTemplate let-row="row" let-value="value" let-rowIndex="rowIndex">\r\n <span class="text-primary" (click)="editLocation(rowIndex)"><i class="fa fa-edit"></i></span>\r\n </ng-template>\r\n\r\n \x3c!-- delete cell--\x3e\r\n <ng-template #deleteTemplate let-row="row" let-value="value" let-rowIndex="rowIndex">\r\n <span appCanDelete class="text-danger" (click)="deleteLocation(rowIndex)"> <i class="fa fa-trash"></i></span>\r\n </ng-template>\r\n </ngx-datatable>\r\n\r\n </div>\r\n\r\n\r\n\r\n\r\n\r\n </div>\r\n </div>\r\n </div>\r\n\r\n\r\n\r\n\r\n</div>\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n'},c4Ja:function(e,t){e.exports=""},effW:function(e,t){e.exports=""},fLPC:function(e,t){e.exports=""},gXcV:function(e,t){e.exports=""},iVEC:function(e,t){e.exports=""},itsN:function(e,t){e.exports='<div class="page-title">\r\n <div class="row">\r\n <div class="col-sm-6">\r\n <h4 class="mb-0"> Error </h4>\r\n </div>\r\n <div class="col-sm-6">\r\n <ol class="breadcrumb pt-0 float-left float-sm-right ">\r\n <li class="breadcrumb-item"><a href="javascript:void(0);" class="default-color" routerLink="/">Home</a></li>\r\n <li class="breadcrumb-item active"> Error </li>\r\n </ol>\r\n </div>\r\n </div>\r\n</div>\r\n\x3c!-- main body --\x3e\r\n<div class="row">\r\n <div class="col-xl-12 mb-30">\r\n <div class="card card-statistics">\r\n <div class="card-body position-relative">\r\n <div class="error">\r\n <h1>404</h1>\r\n <h2>error</h2>\r\n </div>\r\n </div>\r\n <img class="img-fluid error-image" src="../../../assets/images/error.png" alt="">\r\n </div>\r\n\r\n \x3c!--=================================\r\n wrapper --\x3e\r\n </div>\r\n</div>\r\n'},iu4U:function(e,t){e.exports='<div class="page-title">\r\n <div class="row">\r\n <div class="col-sm-6">\r\n <h4 class="mb-0"> {{ \'offices\' | translate }} </h4>\r\n </div>\r\n <div class="col-sm-6">\r\n\r\n <ol class="breadcrumb pt-0 float-left float-sm-right ">\r\n <li class="breadcrumb-item"><a href="javascript:void(0);" class="default-color">{{ \'pages_setting\' | translate\r\n }}</a></li>\r\n <li class="breadcrumb-item active">{{ \'offices\' | translate }}</li>\r\n </ol>\r\n\r\n\r\n\r\n </div>\r\n </div>\r\n</div>\r\n\x3c!-- main body --\x3e\r\n<div class="row">\r\n <div class="col-xl-12 mb-30">\r\n <div class="card card-statistics h-100">\r\n <div class="card-body">\r\n <h5 class="card-title mb-0">{{ \'control_offices\' | translate }}</h5>\r\n <div class="card-body">\r\n <form #inputForm="ngForm" (ngSubmit)="formSubmit(inputForm)">\r\n <div class="form-row">\r\n\r\n <div class="form-group col-md-4">\r\n <label>{{ \'arabic_name\' | translate }}</label>\r\n <input myArabicOnly type="text" class="form-control" placeholder="{{ \'arabic_name\' | translate }}" required\r\n name="nameAr" [(ngModel)]="addUpdateTower.NameAr">\r\n <div class="validation-error "\r\n *ngIf="addUpdateTower.submitForm && inputForm.controls[\'nameAr\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n </div>\r\n </div>\r\n\r\n\r\n <div class="form-group col-md-4">\r\n <label>{{ \'english_name\' | translate }}</label>\r\n <input myEnglishOnly type="text" class="form-control" placeholder="{{ \'english_name\' | translate }}" required\r\n name="nameEn" [(ngModel)]="addUpdateTower.NameEn">\r\n <div class="validation-error "\r\n *ngIf="addUpdateTower.submitForm && inputForm.controls[\'nameEn\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n </div>\r\n </div>\r\n\r\n <div class="form-group col-md-4">\r\n <label> {{ \'its_location\' | translate }}</label>\r\n <select name="selectedMaincat" required class="form-control"\r\n (change)="getAllSubCat($event)"\r\n [(ngModel)]="selectedMaincat" >\r\n <option value="">{{ \'select\' | translate }}</option>\r\n\r\n\r\n\r\n\r\n <option *ngFor="let obj of locations" [value]="obj.Id">{{obj | translate }}</option>\r\n\r\n </select>\r\n <div class="validation-error "\r\n *ngIf="addUpdateTower.submitForm && inputForm.controls[\'selectedMaincat\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n </div>\r\n\r\n\r\n\r\n\r\n\r\n\r\n </div>\r\n\r\n\r\n\r\n <div class="form-group col-md-4">\r\n <label> {{ \'its_building\' | translate }}</label>\r\n <select name="selectedSubcat" required class="form-control"\r\n (change)="getBuilder($event)"\r\n\r\n [(ngModel)]="selectedSubcat" >\r\n <option value="">{{ \'select\' | translate }}</option>\r\n\r\n\r\n\r\n\r\n <option *ngFor="let obj of subcat" [value]="obj.Id">{{obj | translate }}</option>\r\n\r\n </select>\r\n <div class="validation-error "\r\n *ngIf="addUpdateTower.submitForm && inputForm.controls[\'selectedSubcat\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n </div>\r\n\r\n\r\n\r\n\r\n\r\n\r\n </div>\r\n\r\n\r\n\r\n\r\n <div class="form-group col-md-4">\r\n <label> {{ \'its_floor\' | translate }}</label>\r\n <select name="selectedTower" required class="form-control" [(ngModel)]="selectedTower" >\r\n <option value="">{{ \'select\' | translate }}</option>\r\n\r\n\r\n\r\n\r\n <option *ngFor="let obj of Floorlist" [value]="obj.Id">{{obj | translate }}</option>\r\n\r\n </select>\r\n <div class="validation-error "\r\n *ngIf="addUpdateTower.submitForm && inputForm.controls[\'selectedTower\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n </div>\r\n\r\n\r\n\r\n\r\n\r\n\r\n </div>\r\n\r\n\r\n\r\n\r\n </div>\r\n\r\n <div class="form-group clearfix ">\r\n\r\n <button type="submit" class="btn btn-success btn-lg">{{ (addUpdateTower.rowIndex== -1? \'add\' :\'edit\') |\r\n translate }}\r\n </button>\r\n <button type="button" class="btn btn-danger btn-lg" (click)="clearForm()">{{ \'clear\' | translate }}\r\n </button>\r\n </div>\r\n </form>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n\r\n<div class="row">\r\n <div class="col-xl-12 mb-30">\r\n <div class="card card-statistics h-100">\r\n <div class="card-body">\r\n <h5 class="card-title mb-0">{{ \'offices_list\' | translate }}\r\n <i >\r\n <img (click)="printExcel()" src="assets/images/excel_icon.png" >\r\n\r\n </i>\r\n </h5>\r\n\r\n <div class="form-group col-md-4" style="margin-top: 20px">\r\n\r\n <input type="text" class="form-control" placeholder="{{ \'search\' | translate }}"\r\n (input)="filterBuildings($event)">\r\n </div>\r\n <div class="table-responsive">\r\n\r\n <ngx-datatable\r\n\r\n [messages]="{emptyMessage: \'NODATA\' | translate, totalMessage: \'TOTAL\' | translate, selectedMessage: false}"\r\n\r\n\r\n class="bootstrap" [rows]="towers" [columns]="columns" [columnMode]="\'force\'"\r\n [headerHeight]="50" [footerHeight]="50" [rowHeight]="\'auto\'" [limit]="10">\r\n\r\n \x3c!--edit cell--\x3e\r\n <ng-template #editTemplate let-row="row" let-value="value" let-rowIndex="rowIndex">\r\n <span class="text-primary"><i class="fa fa-edit" (click)="editTower(rowIndex)"></i></span>\r\n </ng-template>\r\n\r\n \x3c!-- delete cell--\x3e\r\n <ng-template #deleteTemplate let-row="row" let-value="value" let-rowIndex="rowIndex">\r\n <span appCanDelete class="text-danger"> <i class="fa fa-trash" (click)="deleteTower(rowIndex)"></i></span>\r\n </ng-template>\r\n </ngx-datatable>\r\n\r\n </div>\r\n\r\n </div>\r\n </div>\r\n </div>\r\n\r\n</div>\r\n'},jK4l:function(e,t){e.exports=""},ju9Z:function(e,t){e.exports='\x3c!-- main body --\x3e\r\n\r\n\r\n\r\n<app-model class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">\r\n\r\n <div class="modal-dialog" role="document">\r\n <div class="modal-content">\r\n <div class="modal-header">\r\n <div class="modal-title" id="exampleModalLabel">\r\n <h5 class="modal-title" *ngIf="editMode == false">{{ \'add_new_inventory\' | translate }}</h5>\r\n <h5 class="modal-title" *ngIf="editMode == true">{{ \'edit_inventory\' | translate }}</h5>\r\n </div>\r\n <button type="button" class="close" data-dismiss="modal" aria-label="Close" (click)="closeModal()">\r\n <span aria-hidden="true">×</span>\r\n </button>\r\n </div>\r\n <div class="modal-body">\r\n\r\n <form novalidate #addasset="ngForm" (ngSubmit)="addNewAsset(addasset)">\r\n\r\n <div class="form-row">\r\n <div class="form-group col-md-6">\r\n <label>{{ \'inventory_name\' | translate}} </label>\r\n <input required name="inventory_name" [(ngModel)]="inventory_name" type="text" class="form-control"\r\n placeholder=" {{ \'inventory_name\' | translate}}">\r\n\r\n <div class="validation-error "\r\n *ngIf="submitForm && addasset.controls[\'inventory_name\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n </div>\r\n </div>\r\n\r\n\r\n\r\n\r\n <div class="form-group col-md-6">\r\n </div>\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n <div class="form-group col-md-6">\r\n <label> {{ \'location\' | translate }} </label>\r\n <select required name="selectedLocation" class="form-control" [(ngModel)]="selectedLocation" (change)="getBuild($event)">\r\n <option value="">{{ \'select\' | translate }}</option>\r\n <option *ngFor="let obj of locations" [value]="obj.Id">{{obj | translate }}</option>\r\n\r\n </select>\r\n\r\n <div class="validation-error "\r\n *ngIf=" submitForm && addasset.controls[\'selectedLocation\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n </div>\r\n </div>\r\n\r\n\r\n <div class="form-group col-md-6">\r\n <label> {{ \'building\' | translate }} </label>\r\n <select required name="selectedTowers" class="form-control"\r\n [(ngModel)]="selectedTowers" (change)="getFloors($event)">\r\n <option value="">{{ \'select\' | translate }}</option>\r\n <option *ngFor="let obj of towers" [value]="obj.Id">{{obj | translate }}</option>\r\n\r\n\r\n </select>\r\n\r\n <div class="validation-error "\r\n *ngIf=" submitForm && addasset.controls[\'selectedTowers\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n </div>\r\n </div>\r\n\r\n\r\n <div class="form-group col-md-6">\r\n <label> {{ \'floors\' | translate }} </label>\r\n <select required name="selectedFloors" class="form-control" [(ngModel)]="selectedFloors" (change)="getFloorRooms($event)">\r\n <option value="">{{ \'select\' | translate }}</option>\r\n <option *ngFor="let obj of floors" [value]="obj.Id">{{obj | translate }}</option>\r\n\r\n </select>\r\n\r\n <div class="validation-error "\r\n *ngIf=" submitForm && addasset.controls[\'selectedFloors\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n </div>\r\n </div>\r\n\r\n\r\n <div class="form-group col-md-6">\r\n <label> {{ \'offices\' | translate }} </label>\r\n <select required name="selectedRoom" class="form-control" [(ngModel)]="selectedRoom">\r\n <option value="">{{ \'select\' | translate }}</option>\r\n <option *ngFor="let obj of rooms" [value]="obj.Id">{{obj | translate }}</option>\r\n\r\n </select>\r\n\r\n <div class="validation-error "\r\n *ngIf=" submitForm && addasset.controls[\'selectedRoom\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n </div>\r\n </div>\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n <div class="form-group col-md-6">\r\n <label> {{ \'inventory_start_date\' | translate}} </label>\r\n <div class="input-group">\r\n <input required class="form-control" placeholder="yyyy-mm-dd"\r\n name="Datepickerfrom" ngbDatepicker #d="ngbDatepicker" [(ngModel)]="Datepickerfrom">\r\n <div class="input-group-append">\r\n <button class="btn btn-secondary" (click)="d.toggle()" type="button">\r\n <i class="fa fa-calendar"></i>\r\n </button>\r\n </div>\r\n <div class="validation-error "\r\n *ngIf="submitForm && addasset.controls[\'Datepickerfrom\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n </div>\r\n </div>\r\n </div>\r\n\r\n\r\n\r\n <div class="form-group col-md-6">\r\n <label> {{ \'inventory_end_date\' | translate}} </label>\r\n <div class="input-group">\r\n <input required class="form-control" placeholder="yyyy-mm-dd"\r\n name="Datepickerto" ngbDatepicker #s="ngbDatepicker" [(ngModel)]="Datepickerto">\r\n <div class="input-group-append">\r\n <button class="btn btn-secondary" (click)="s.toggle()" type="button">\r\n <i class="fa fa-calendar"></i>\r\n </button>\r\n </div>\r\n </div>\r\n\r\n <div class="validation-error"\r\n *ngIf="submitForm && addasset.controls[\'Datepickerto\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n </div>\r\n\r\n </div>\r\n\r\n\r\n\r\n\r\n\r\n </div>\r\n\r\n\r\n <div class="row">\r\n\r\n <button style="margin: 10px" class="btn btn-success btn-lg col-md-4" type="submit">\r\n <span *ngIf="editMode == false">\r\n {{ \'add\' | translate }}\r\n\r\n </span>\r\n\r\n\r\n <span *ngIf="editMode == true">\r\n {{ \'edit\' | translate }}\r\n\r\n </span>\r\n\r\n <i class="fa fa-check"></i>\r\n </button>\r\n\r\n\r\n <button type="button" (click)="ClearAll()" class="btn btn-danger btn-lg col-md-4"\r\n style="margin: 10px">{{ \'clear\' | translate }}</button>\r\n </div>\r\n </form>\r\n\r\n </div>\r\n\r\n\r\n </div>\r\n </div>\r\n</app-model>\r\n'},kLQg:function(e,t){e.exports=""},kav2:function(e,t){e.exports='<div id="pre-loader" *ngIf="_commondata.loader.value">\r\n <img src="assets/images/pre-loader/loader-01.svg" alt="">\r\n</div>\r\n\r\n<div class="wrapper">\r\n\r\n <section class="height-100vh d-flex align-items-center page-section-ptb login"\r\n style="background: url(../../../../assets/images/login-bg.jpg);">\r\n\r\n\r\n <div class="container">\r\n <div class="row justify-content-center no-gutters vertical-align">\r\n <div class="col-lg-4 col-md-6 login-fancy-bg "\r\n >\r\n\r\n <div class="h-100"\r\n\r\n >\r\n\r\n <img style=" height: 100%; width: 100%" src="assets/images/login-inner-bg.jpg">\r\n\r\n </div>\r\n\r\n\r\n <div class="login-fancy">\r\n <h2 class="text-white mb-20">{{ \'hello\' | translate }}</h2>\r\n <p class="mb-20 text-white">{{ \'login_in_system\' | translate }}</p>\r\n <ul class="list-unstyled pos-bot pb-30">\r\n </ul>\r\n </div>\r\n\r\n\r\n\r\n </div>\r\n\r\n\r\n <div class="col-lg-4 col-md-6 bg-white">\r\n <form novalidate #loginForm="ngForm" (ngSubmit)="loginClick(loginForm)">\r\n <div class="login-fancy pb-40 clearfix">\r\n <h3 class="mb-30">{{ \'login_to_system\' | translate }}</h3>\r\n <div class="section-field mb-20">\r\n <label class="mb-10" for="email">{{ \'email\' | translate }}</label>\r\n <input id="email" class="web form-control" type="text"\r\n placeholder="{{ \'email\' | translate }}" name="email"\r\n [(ngModel)]="userLoginRequest.Email"\r\n pattern="^[a-z0-9._%+-]+@[a-z0-9.-]+\\.[a-z]{2,4}$"\r\n required>\r\n\r\n <div class="validation-error "\r\n *ngIf="loginForm.submitted && loginForm.controls[\'email\'].errors?.required">\r\n {{ \'enter_email\' | translate }}\r\n </div>\r\n <div class="validation-error"\r\n *ngIf="loginForm.submitted && loginForm.controls[\'email\'].errors?.pattern">\r\n {{ \'invalid_email\' | translate }}\r\n </div>\r\n </div>\r\n <div class="section-field mb-20">\r\n <label class="mb-10" for="Password">{{ \'password\' | translate }} </label>\r\n <input id="Password" class="Password form-control" type="password"\r\n placeholder="{{ \'password\' | translate }}"\r\n name="password" [(ngModel)]="userLoginRequest.PasswordHash" required minlength="5">\r\n\r\n <div class="validation-error"\r\n *ngIf="loginForm.submitted && loginForm.controls[\'password\'].errors?.required">\r\n {{ \'Enter_your_password\' | translate }}\r\n </div>\r\n <div class="validation-error"\r\n *ngIf="loginForm.submitted && loginForm.controls[\'password\'].errors?.minlength">\r\n {{ \'password_less_6\' | translate }}\r\n </div>\r\n </div>\r\n <div class="section-field">\r\n <div class="remember-checkbox mb-30">\r\n <input type="checkbox" class="form-control" name="remember-me" id="remember-me"\r\n [checked]="rememberMe" (change)="rememberMe = !rememberMe"\r\n />\r\n <label for="remember-me"> {{ \'remember_me\' | translate }}</label>\r\n <a routerLink="/forget_password" class="float-right">{{ \'forget_password\' | translate }}</a>\r\n </div>\r\n </div>\r\n <button class="button btn-success" type="submit">\r\n {{ \'login\' | translate }} <i class="fa fa-check"></i>\r\n </button>\r\n </div>\r\n </form>\r\n </div>\r\n </div>\r\n </div>\r\n </section>\r\n\r\n</div>\r\n'},lhD9:function(e,t){e.exports='<app-model class="modal fade" id="passwordModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"\r\n aria-hidden="true">\r\n\r\n <div class="modal-dialog" role="document">\r\n <div class="modal-content">\r\n <div class="modal-header">\r\n <div class="modal-title" id="exampleModalLabel">\r\n <h5 class="modal-title">\r\n {{ \'change_user_password\' | translate }}\r\n </h5>\r\n\r\n </div>\r\n <button type="button" class="close" data-dismiss="modal" aria-label="Close"\r\n (click)="closeModal()">\r\n <span aria-hidden="true">×</span>\r\n </button>\r\n </div>\r\n <div class="modal-body">\r\n <form novalidate #form="ngForm" (ngSubmit)="updatePassword(form)">\r\n <div class="form-group col-12">\r\n <label>{{\'user_name\' |translate}}</label>\r\n <h5>{{user | translate}}</h5>\r\n </div>\r\n\r\n <div class="form-group col-12">\r\n <label>{{\'new_password\' |translate}}</label>\r\n <input type="text" class="form-control"\r\n name="new_password" [(ngModel)]="newPassword" required minlength="6"\r\n placeholder="{{ \'new_password\' | translate }}">\r\n\r\n <div class="validation-error "\r\n *ngIf=" submitForm && form.controls[\'new_password\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n\r\n </div>\r\n <div class="validation-error "\r\n *ngIf=" submitForm && form.controls[\'new_password\'].errors?.minlength">\r\n {{ \'min_length_6\' | translate }}\r\n\r\n </div>\r\n </div>\r\n\r\n <button class="btn btn-lg btn-success" type="submit">{{\'change\' |translate}}</button>\r\n\r\n </form>\r\n\r\n </div>\r\n </div>\r\n </div>\r\n</app-model>\r\n'},mFGk:function(e,t){e.exports='\x3c!-- main body --\x3e\r\n<app-model class="modal fade" id="add_new_asset" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"\r\n aria-hidden="true">\r\n\r\n <div class="modal-dialog modal-lg" role="document">\r\n <div class="modal-content">\r\n <div class="modal-header">\r\n <div class="modal-title" id="exampleModalLabel">\r\n <h5 class="modal-title" *ngIf="editMode == false">{{ \'add_new_asset\' | translate }}</h5>\r\n <h5 class="modal-title" *ngIf="editMode == true">{{ \'edit_asset\' | translate }}</h5>\r\n\r\n </div>\r\n <button type="button" class="close" data-dismiss="modal" aria-label="Close"\r\n (click)="closeModal()">\r\n <span style="color: white" aria-hidden="true">×</span>\r\n </button>\r\n </div>\r\n <div class="modal-body">\r\n\r\n\r\n <form novalidate #addasset="ngForm" (ngSubmit)="addNewAsset(addasset)">\r\n\r\n\r\n <div class="accordion accordion-border mb-30">\r\n <div class="acd-group" [ngClass]="{\'acd-active\':selectedTab === \'collapse1\'}">\r\n\r\n\r\n <a class="acd-heading"\r\n [ngClass]="{\'acd-active\':selectedTab === \'collapse1\'}" href="javascript:void(0);"\r\n data-toggle="collapse"\r\n data-target="#collapse1" (click)="expandCollpse(\'collapse1\')">\r\n\r\n {{\'main_info\' |translate}}\r\n </a>\r\n <div class="acd-des collapse" id="collapse1">\r\n\r\n <div class="row">\r\n <button class="btn btn-sm btn-info" type="button" [disabled]="disableGenrator"\r\n (click)="generateAssetNumber()">{{\'generate_number\' |translate}}</button>\r\n </div>\r\n\r\n <div class="row">\r\n\r\n <div class="form-group col-md-4">\r\n <label>{{ \'QR\' | translate }}</label>\r\n\r\n <input trim id="QR" name="QR"\r\n class="web form-control"\r\n type="text" class="form-control" [(ngModel)]="QR"\r\n placeholder="{{ \'QR\' | translate }}" required>\r\n\r\n <div class="validation-error "\r\n *ngIf=" submitForm && addasset.controls[\'QR\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n </div>\r\n </div>\r\n\r\n\r\n <div class="form-group col-md-4">\r\n <label>{{ \'serial_number\' | translate }}</label>\r\n <input trim id="serial_number" name="serial_number"\r\n class="web form-control"\r\n type="text" class="form-control" [(ngModel)]="serial_number"\r\n placeholder="{{ \'serial_number\' | translate }}" required>\r\n\r\n\r\n <div class="validation-error "\r\n *ngIf=" submitForm && addasset.controls[\'serial_number\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n </div>\r\n </div>\r\n\r\n\r\n <div class="form-group col-md-4">\r\n <label> {{ \'electronic_id\' | translate }}</label>\r\n <input trim id="electronic_id" name="electronic_id" type="text" class="form-control"\r\n [(ngModel)]="electronic_id"\r\n placeholder="{{ \'electronic_id\' | translate }}" required>\r\n\r\n\r\n <div class="validation-error "\r\n *ngIf=" submitForm && addasset.controls[\'electronic_id\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n </div>\r\n\r\n </div>\r\n\r\n <div class="form-group col-md-4">\r\n <label> {{ \'main_department\' | translate }} </label>\r\n <select name="main_department" class="form-control" [(ngModel)]="selectedMainCat"\r\n (change)="getAllSubCat($event)" required>\r\n <option value="">{{ \'select\' | translate }} </option>\r\n <option *ngFor="let obj of main_categories" [value]="obj.Id">{{obj | translate }}</option>\r\n </select>\r\n\r\n\r\n <div class="validation-error "\r\n *ngIf=" submitForm && addasset.controls[\'main_department\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n </div>\r\n </div>\r\n\r\n\r\n <div class="form-group col-md-4">\r\n <label> {{ \'category\' | translate }} </label>\r\n\r\n <select required name="selectedSubcat" class="form-control"\r\n [(ngModel)]="selectedSubcat" (change)="getModel($event)">\r\n <option value="">{{ \'select\' | translate }}</option>\r\n\r\n <option *ngFor="let obj of sub_category" [value]="obj.Id">{{obj | translate }}</option>\r\n\r\n\r\n </select>\r\n\r\n <div class="validation-error "\r\n *ngIf=" submitForm && addasset.controls[\'selectedSubcat\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n </div>\r\n </div>\r\n\r\n\r\n <div class="form-group col-md-4">\r\n\r\n <label> {{ \'model\' | translate }} </label>\r\n\r\n <select required name="selectedModel" class="form-control" [(ngModel)]="selectedModel">\r\n <option value="">{{ \'select\' | translate }}</option>\r\n <option *ngFor="let obj of models" [value]="obj.Id">{{obj | translate }}</option>\r\n\r\n </select>\r\n\r\n <div class="validation-error "\r\n *ngIf=" submitForm && addasset.controls[\'selectedModel\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n </div>\r\n </div>\r\n\r\n\r\n <div class="form-group col-md-4">\r\n <label> {{ \'status\' | translate }} </label>\r\n <select required name="selectedstatus" class="form-control"\r\n [(ngModel)]="selectedstatus" (change)="getAllSubCat($event)">\r\n <option value="">{{ \'select\' | translate }}</option>\r\n <option *ngFor="let obj of status" [value]="obj.Id">{{obj | translate }}</option>\r\n\r\n </select>\r\n\r\n\r\n <div class="validation-error "\r\n *ngIf=" submitForm && addasset.controls[\'selectedstatus\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n </div>\r\n </div>\r\n\r\n </div>\r\n\r\n </div>\r\n </div>\r\n\r\n\r\n <div class="acd-group" [ngClass]="{\'acd-active\':selectedTab === \'collapse2\'}">\r\n <a class="acd-heading" [ngClass]="{\'acd-active\':selectedTab === \'collapse2\'}"\r\n href="javascript:void(0);" data-toggle="collapse"\r\n data-target="#collapse2" (click)="expandCollpse(\'collapse2\')">\r\n\r\n {{\'location_asset\' |translate}}\r\n\r\n </a>\r\n <div class="acd-des collapse" id="collapse2">\r\n <div class="row">\r\n\r\n\r\n <div class="form-group col-md-4">\r\n <label> {{ \'location\' | translate }} </label>\r\n <select required name="selectedLocation" class="form-control" [(ngModel)]="selectedLocation"\r\n (change)="getBuild($event)">\r\n <option value="">{{ \'select\' | translate }}</option>\r\n <option *ngFor="let obj of locations" [value]="obj.Id">{{obj | translate }}</option>\r\n\r\n </select>\r\n\r\n <div class="validation-error "\r\n *ngIf=" submitForm && addasset.controls[\'selectedLocation\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n </div>\r\n </div>\r\n\r\n\r\n <div class="form-group col-md-4">\r\n <label> {{ \'building\' | translate }} </label>\r\n <select required name="selectedTowers" class="form-control"\r\n [(ngModel)]="selectedTowers" (change)="getFloors($event)">\r\n <option value="">{{ \'select\' | translate }}</option>\r\n <option *ngFor="let obj of towers" [value]="obj.Id">{{obj | translate }}</option>\r\n\r\n\r\n </select>\r\n\r\n <div class="validation-error "\r\n *ngIf=" submitForm && addasset.controls[\'selectedTowers\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n </div>\r\n </div>\r\n\r\n\r\n <div class="form-group col-md-4">\r\n <label> {{ \'floors\' | translate }} </label>\r\n <select required name="selectedFloors" class="form-control" [(ngModel)]="selectedFloors"\r\n (change)="getFloorRooms($event)">\r\n <option value="">{{ \'select\' | translate }}</option>\r\n <option *ngFor="let obj of floors" [value]="obj.Id">{{obj | translate }}</option>\r\n\r\n </select>\r\n\r\n <div class="validation-error "\r\n *ngIf=" submitForm && addasset.controls[\'selectedFloors\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n </div>\r\n </div>\r\n\r\n\r\n <div class="form-group col-md-4">\r\n <label> {{ \'offices\' | translate }} </label>\r\n <select required name="selectedRoom" class="form-control" [(ngModel)]="selectedRoom">\r\n <option value="">{{ \'select\' | translate }}</option>\r\n <option *ngFor="let obj of rooms" [value]="obj.Id">{{obj | translate }}</option>\r\n\r\n </select>\r\n\r\n <div class="validation-error "\r\n *ngIf=" submitForm && addasset.controls[\'selectedRoom\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n </div>\r\n </div>\r\n\r\n\r\n </div>\r\n\r\n\r\n </div>\r\n </div>\r\n\r\n\r\n <div class="acd-group" [ngClass]="{\'acd-active\':selectedTab === \'collapse3\'}">\r\n <a class="acd-heading" [ngClass]="{\'acd-active\':selectedTab === \'collapse3\'}"\r\n href="javascript:void(0);" data-toggle="collapse" data-target="#collapse3"\r\n (click)="expandCollpse(\'collapse3\')">\r\n {{\'other\' |translate}}\r\n\r\n </a>\r\n <div class="acd-des collapse" id="collapse3">\r\n\r\n <div class="row">\r\n <div class="form-group col-md-4">\r\n <label> {{ \'DateCreate\' | translate}} </label>\r\n <div class="input-group">\r\n <input class="form-control" placeholder="yyyy-mm-dd"\r\n name="DateCreate" ngbDatepicker #d="ngbDatepicker" [(ngModel)]="DateCreate">\r\n <div class="input-group-append">\r\n <button class="btn btn-secondary" (click)="d.toggle()" type="button">\r\n <i class="fa fa-calendar"></i>\r\n </button>\r\n </div>\r\n <div class="validation-error "\r\n *ngIf="submitForm && addasset.controls[\'DateCreate\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n </div>\r\n </div>\r\n </div>\r\n\r\n\r\n <div class="form-group col-md-4">\r\n <label> {{ \'DateBuy\' | translate}} </label>\r\n <div class="input-group">\r\n <input class="form-control" placeholder="yyyy-mm-dd"\r\n name="DateBuy" ngbDatepicker #s="ngbDatepicker" [(ngModel)]="DateBuy">\r\n <div class="input-group-append">\r\n <button class="btn btn-secondary" (click)="s.toggle()" type="button">\r\n <i class="fa fa-calendar"></i>\r\n </button>\r\n </div>\r\n </div>\r\n\r\n <div class="validation-error"\r\n *ngIf="submitForm && addasset.controls[\'DateBuy\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n </div>\r\n\r\n </div>\r\n\r\n\r\n <div class="form-group col-md-4">\r\n <label> {{ \'DesAr\' | translate }}</label>\r\n <input myArabicOnly id="DesAr" name="DesAr" type="text" class="form-control"\r\n [(ngModel)]="DesAr"\r\n placeholder="{{ \'DesAr\' | translate }}"/>\r\n\r\n\r\n <div class="validation-error "\r\n *ngIf=" submitForm && addasset.controls[\'DesAr\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n </div>\r\n\r\n </div>\r\n\r\n\r\n <div class="form-group col-md-4">\r\n <label> {{ \'DesEn\' | translate }}</label>\r\n <input myEnglishOnly id="DesEn" name="DesEn" type="text" class="form-control"\r\n [(ngModel)]="DesEn"\r\n placeholder="{{ \'DesEn\' | translate }}"/>\r\n\r\n\r\n <div class="validation-error "\r\n *ngIf=" submitForm && addasset.controls[\'DesEn\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n </div>\r\n\r\n </div>\r\n\r\n\r\n <div class="form-group col-md-4">\r\n <label> {{ \'num_support_years\' | translate }}</label>\r\n <input id="support_years" name="support_years" type="number" class="form-control"\r\n [(ngModel)]="numberOfSupportedYears"\r\n placeholder="{{ \'num_support_years\' | translate }}" />\r\n\r\n\r\n <div class="validation-error "\r\n *ngIf=" submitForm && addasset.controls[\'support_years\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n </div>\r\n\r\n </div>\r\n\r\n\r\n <div class="form-group col-md-4">\r\n <label> {{ \'attach_asset_image\' | translate }} </label>\r\n\r\n <div class="custom-file">\r\n <input type="file" class="custom-file-input" id="customFile" (change)="fileSelect($event)">\r\n <label class="custom-file-label" for="customFile"> </label>\r\n\r\n\r\n </div>\r\n </div>\r\n\r\n <div class="form-group col-md-8">\r\n <label> {{ \'asset_images\' | translate }} </label>\r\n <app-asset-images #assetImages></app-asset-images>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n\r\n <div class="row">\r\n\r\n <button style="margin: 10px" class="btn btn-success btn-lg col-2 " type="submit">\r\n <span *ngIf="editMode == false">\r\n {{ \'add\' | translate }}\r\n\r\n </span>\r\n\r\n\r\n <span *ngIf="editMode == true">\r\n {{ \'edit\' | translate }}\r\n\r\n </span>\r\n\r\n <i class="fa fa-check"></i>\r\n </button>\r\n\r\n\r\n <button type="button" (click)="ClearAll()" class="btn btn-danger btn-lg col-2"\r\n style="margin: 10px">{{ \'clear\' | translate }}</button>\r\n\r\n\r\n </div>\r\n\r\n </form>\r\n </div>\r\n <div class="modal-footer">\r\n\r\n\r\n </div>\r\n </div>\r\n </div>\r\n</app-model>\r\n'},nlQe:function(e,t){e.exports='<div class="page-title">\r\n <div class="row">\r\n <div class="col-sm-6">\r\n <h4 class="mb-0"> {{ \'attach_assets\' | translate }}\r\n </h4>\r\n </div>\r\n <div class="col-sm-6">\r\n <ol class="breadcrumb pt-0 float-left float-sm-right ">\r\n <li class="breadcrumb-item"><a href="javascript:void(0);" class="default-color">{{ \'assets\' | translate }}</a></li>\r\n <li class="breadcrumb-item active">{{ \'attach_assets\' | translate }} </li>\r\n </ol>\r\n </div>\r\n </div>\r\n</div>\r\n\x3c!-- main body --\x3e\r\n<div class="row">\r\n <div class="col-xl-12 mb-30">\r\n <div class="card card-statistics h-100">\r\n <div class="card-body">\r\n\r\n\r\n <form novalidate #addasset="ngForm" (ngSubmit)="AssginAssets(addasset)">\r\n\r\n\r\n <div class="form-row">\r\n\r\n <div class="form-group col-md-6">\r\n <label> {{ \'emps_departments\' | translate }} </label>\r\n <select required name="emps_departments" class="form-control"\r\n [(ngModel)]="selectedDep" (change)="getAllEmps($event)">\r\n <option value="">{{ \'select\' | translate }} </option>\r\n <option *ngFor="let obj of deplist" [value]="obj.Id">{{obj | translate }}</option>\r\n </select>\r\n\r\n\r\n\r\n\r\n\r\n\r\n <div class="validation-error "\r\n *ngIf=" submitForm && addasset.controls[\'emps_departments\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n </div>\r\n </div>\r\n\r\n\r\n\r\n <div class="form-group col-md-6">\r\n <label> {{ \'chooseemp\' | translate }} </label>\r\n\r\n\r\n\r\n\r\n\r\n <ng-select required name="chooseemp"\r\n (search)="getAllEmps($event)"\r\n placeholder="{{ \'select\' | translate }}"\r\n\r\n [(ngModel)]="selectedEmp">\r\n <ng-option (search)="getAllEmps($event)" *ngFor="let obj of emplist" [value]="obj.Id">{{obj | translate }}</ng-option>\r\n\r\n </ng-select>\r\n\r\n\r\n\r\n\r\n <div class="validation-error"\r\n *ngIf=" submitForm && addasset.controls[\'chooseemp\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n </div>\r\n </div>\r\n\r\n\r\n\r\n <div class="form-group col-md-6">\r\n <label>{{ \'NoteText\' | translate }}</label>\r\n <input name="NoteText" type="text" class="form-control" [(ngModel)]="NoteText"\r\n placeholder="{{ \'NoteText\' | translate }}">\r\n\r\n\r\n <div class="validation-error "\r\n *ngIf=" submitForm && addasset.controls[\'NoteText\'].errors?.required">\r\n {{ \'required\' | translate }}\r\n </div>\r\n\r\n </div>\r\n\r\n <div class="form-group col-md-6">\r\n\r\n </div>\r\n\r\n\r\n\r\n </div>\r\n\r\n <div class="row">\r\n \x3c!--<button type="button" class="btn btn-success btn-lg col-md-2" style="margin: 10px">\u0623\u0636\u0627\u0641\u0629</button>--\x3e\r\n\r\n <button type="submit"\r\n class="btn btn-primary btn-lg col-md-2"\r\n style="margin: 10px">{{ \'attach_assets\' | translate }}</button>\r\n\r\n\r\n <button type="button" (click)="ClearAll()" class="btn btn-danger btn-lg col-md-2" style="margin: 10px">{{ \'clear\' | translate }}</button>\r\n\r\n\r\n </div>\r\n </form>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n\r\n\r\n\r\n\r\n<div class="row">\r\n <div class="col-xl-12 mb-30">\r\n <div class="card card-statistics h-100">\r\n <div class="card-body">\r\n <h5 class="card-title mb-0">{{ \'assets_list\' | translate }}</h5>\r\n\r\n\r\n\r\n <div class="table-responsive">\r\n <table class="table table-1 table-bordered table-striped mb-0">\r\n <thead>\r\n <tr >\r\n\r\n <th>{{ \'serial_number\' | translate }}</th>\r\n <th>{{ \'main_department\' | translate }}</th>\r\n <th>{{ \'category\' | translate }}</th>\r\n <th>{{ \'model\' | translate }}</th>\r\n <th>{{ \'status\' | translate }}</th>\r\n <th>{{ \'location\' | translate }}</th>\r\n <th>{{ \'building\' | translate }}</th>\r\n <th>{{ \'floor\' | translate }}</th>\r\n <th>{{ \'offices_select\' | translate }}</th>\r\n <th>{{ \'delete\' | translate }}</th>\r\n\r\n </tr>\r\n </thead>\r\n <tbody>\r\n\r\n <tr *ngFor="let item of assets;let i = index">\r\n\r\n\r\n\r\n\r\n\r\n <td>{{item.SerialNumber}}</td>\r\n\r\n\r\n <td>{{item.main_category | translate}}</td>\r\n <td>{{item.category | translate}}</td>\r\n <td>{{item.model | translate}}</td>\r\n\r\n <td>{{item.status | translate}}</td>\r\n\r\n\r\n\r\n <td>{{item.location | translate}}</td>\r\n <td>{{item.tower | translate}}</td>\r\n <td>{{item.floor | translate}}</td>\r\n <td>{{item.room | translate}}</td>\r\n <td >\r\n\r\n <i (click)="deleteAsset(item,i)" class="text-primary ti-trash "></i>\r\n </td>\r\n\r\n\r\n\r\n\r\n </tr>\r\n\r\n </tbody>\r\n </table>\r\n\r\n </div>\r\n\r\n\r\n\r\n\r\n\r\n </div>\r\n </div>\r\n </div>\r\n\r\n\r\n\r\n\r\n</div>\r\n\r\n\r\n\r\n\r\n\r\n'},oJNw:function(e,t){e.exports=""},oliW:function(e,t){e.exports=""},sBfR:function(e,t){e.exports=""},sQHO:function(e,t){e.exports="/* This stylesheet generated by Transfonter (https://transfonter.org) on March 4, 2018 1:35 AM */\r\n\r\n@font-face {\r\n font-family: 'Frutiger LT Arabic 45';\r\n src: url('FrutigerLTArabic-45Light.1a522453057cf9176246.eot');\r\n src: url('FrutigerLTArabic-45Light.1a522453057cf9176246.eot?#iefix') format('embedded-opentype'),\r\n url('FrutigerLTArabic-45Light.7248abbf94e843be7273.woff2') format('woff2'),\r\n url('FrutigerLTArabic-45Light.24660082fd5b183ddbb6.woff') format('woff');\r\n font-weight: 300;\r\n font-style: normal;\r\n}\r\n\r\nbody {\r\n font-family: 'Frutiger LT Arabic 45', sans-serif !important;\r\n}\r\n\r\n:host /deep/ .side-menu-fixed .slimscroll-wrapper {\n height: 100vh !important;\n padding-bottom: 58px; }\r\n\r\n.btn-danger {\n background: black; }\n"},sffL:function(e,t){e.exports=""},t59G:function(e,t){e.exports='<div id="pre-loader" *ngIf="_commondata.loader.value">\r\n <img src="assets/images/pre-loader/loader-01.svg" alt="">\r\n</div>\r\n<div class="wrapper">\r\n\r\n <section class="height-100vh d-flex align-items-center page-section-ptb login"\r\n style="background: url(../../../../assets/images/login-bg.jpg);">\r\n <div class="container">\r\n <div class="row justify-content-center no-gutters vertical-align">\r\n <div class="col-lg-4 col-md-6 login-fancy-bg bg"\r\n style="background: url(../../../../assets/images/login-inner-bg.jpg);">\r\n <div class="login-fancy">\r\n <h2 class="text-white mb-20">{{ \'hello\' | translate }}</h2>\r\n <p class="mb-20 text-white">{{ \'login_in_system\' | translate }}</p>\r\n <ul class="list-unstyled pos-bot pb-30">\r\n \x3c!--<li class="list-inline-item"><a class="text-white" routerLink=""> Terms of Use</a></li>--\x3e\r\n \x3c!--<li class="list-inline-item"><a class="text-white" routerLink=""> Privacy Policy</a></li>--\x3e\r\n </ul>\r\n </div>\r\n </div>\r\n <div class="col-lg-4 col-md-6 bg-white">\r\n <form novalidate #passwordForm="ngForm" (ngSubmit)="changePassword(passwordForm)">\r\n <div class="login-fancy pb-40 clearfix">\r\n <h3 class="mb-30">{{ \'enter_new_password\' | translate }}</h3>\r\n <div class="section-field mb-20">\r\n <label class="mb-10" for="password">{{ \'enter_new_password\' | translate }} * </label>\r\n <input id="password" class="web form-control" [type]="showPassword ? \'text\':\'password\'"\r\n placeholder="{{ \'enter_new_password\' | translate}}" name="password"\r\n [(ngModel)]="password" required minlength="6">\r\n <em (click)="showPassword=!showPassword" style="text-decoration: underline ;cursor: pointer">{{showPassword\r\n ? \'\u0627\u062e\u0641\u0627\u0621 \u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631\':\'\u0627\u0638\u0647\u0627\u0631 \u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631\'}}</em>\r\n <div class="validation-error "\r\n *ngIf="passwordForm.submitted && passwordForm.controls[\'password\'].errors?.required">\r\n {{ \'enter_password\' | translate }}\r\n </div>\r\n <div class="validation-error"\r\n *ngIf="passwordForm.submitted && passwordForm.controls[\'password\'].errors?.minlength">\r\n {{ \'password_less_6\' | translate }}\r\n </div>\r\n </div>\r\n <button class="button btn-success d-block" type="submit">\r\n\r\n {{ \'change_password\' | translate }}\r\n\r\n\r\n <i class="fa fa-check"></i>\r\n </button>\r\n </div>\r\n </form>\r\n </div>\r\n </div>\r\n </div>\r\n </section>\r\n\r\n</div>\r\n'},uslO:function(e,t,r){var s={"./af":"3CJN","./af.js":"3CJN","./ar":"3MVc","./ar-dz":"tkWw","./ar-dz.js":"tkWw","./ar-kw":"j8cJ","./ar-kw.js":"j8cJ","./ar-ly":"wPpW","./ar-ly.js":"wPpW","./ar-ma":"dURR","./ar-ma.js":"dURR","./ar-sa":"7OnE","./ar-sa.js":"7OnE","./ar-tn":"BEem","./ar-tn.js":"BEem","./ar.js":"3MVc","./az":"eHwN","./az.js":"eHwN","./be":"3hfc","./be.js":"3hfc","./bg":"lOED","./bg.js":"lOED","./bm":"hng5","./bm.js":"hng5","./bn":"aM0x","./bn.js":"aM0x","./bo":"w2Hs","./bo.js":"w2Hs","./br":"OSsP","./br.js":"OSsP","./bs":"aqvp","./bs.js":"aqvp","./ca":"wIgY","./ca.js":"wIgY","./cs":"ssxj","./cs.js":"ssxj","./cv":"N3vo","./cv.js":"N3vo","./cy":"ZFGz","./cy.js":"ZFGz","./da":"YBA/","./da.js":"YBA/","./de":"DOkx","./de-at":"8v14","./de-at.js":"8v14","./de-ch":"Frex","./de-ch.js":"Frex","./de.js":"DOkx","./dv":"rIuo","./dv.js":"rIuo","./el":"CFqe","./el.js":"CFqe","./en-au":"Sjoy","./en-au.js":"Sjoy","./en-ca":"Tqun","./en-ca.js":"Tqun","./en-gb":"hPuz","./en-gb.js":"hPuz","./en-ie":"ALEw","./en-ie.js":"ALEw","./en-il":"QZk1","./en-il.js":"QZk1","./en-nz":"dyB6","./en-nz.js":"dyB6","./eo":"Nd3h","./eo.js":"Nd3h","./es":"LT9G","./es-do":"7MHZ","./es-do.js":"7MHZ","./es-us":"INcR","./es-us.js":"INcR","./es.js":"LT9G","./et":"XlWM","./et.js":"XlWM","./eu":"sqLM","./eu.js":"sqLM","./fa":"2pmY","./fa.js":"2pmY","./fi":"nS2h","./fi.js":"nS2h","./fo":"OVPi","./fo.js":"OVPi","./fr":"tzHd","./fr-ca":"bXQP","./fr-ca.js":"bXQP","./fr-ch":"VK9h","./fr-ch.js":"VK9h","./fr.js":"tzHd","./fy":"g7KF","./fy.js":"g7KF","./gd":"nLOz","./gd.js":"nLOz","./gl":"FuaP","./gl.js":"FuaP","./gom-latn":"+27R","./gom-latn.js":"+27R","./gu":"rtsW","./gu.js":"rtsW","./he":"Nzt2","./he.js":"Nzt2","./hi":"ETHv","./hi.js":"ETHv","./hr":"V4qH","./hr.js":"V4qH","./hu":"xne+","./hu.js":"xne+","./hy-am":"GrS7","./hy-am.js":"GrS7","./id":"yRTJ","./id.js":"yRTJ","./is":"upln","./is.js":"upln","./it":"FKXc","./it.js":"FKXc","./ja":"ORgI","./ja.js":"ORgI","./jv":"JwiF","./jv.js":"JwiF","./ka":"RnJI","./ka.js":"RnJI","./kk":"j+vx","./kk.js":"j+vx","./km":"5j66","./km.js":"5j66","./kn":"gEQe","./kn.js":"gEQe","./ko":"eBB/","./ko.js":"eBB/","./ky":"6cf8","./ky.js":"6cf8","./lb":"z3hR","./lb.js":"z3hR","./lo":"nE8X","./lo.js":"nE8X","./lt":"/6P1","./lt.js":"/6P1","./lv":"jxEH","./lv.js":"jxEH","./me":"svD2","./me.js":"svD2","./mi":"gEU3","./mi.js":"gEU3","./mk":"Ab7C","./mk.js":"Ab7C","./ml":"oo1B","./ml.js":"oo1B","./mn":"CqHt","./mn.js":"CqHt","./mr":"5vPg","./mr.js":"5vPg","./ms":"ooba","./ms-my":"G++c","./ms-my.js":"G++c","./ms.js":"ooba","./mt":"oCzW","./mt.js":"oCzW","./my":"F+2e","./my.js":"F+2e","./nb":"FlzV","./nb.js":"FlzV","./ne":"/mhn","./ne.js":"/mhn","./nl":"3K28","./nl-be":"Bp2f","./nl-be.js":"Bp2f","./nl.js":"3K28","./nn":"C7av","./nn.js":"C7av","./pa-in":"pfs9","./pa-in.js":"pfs9","./pl":"7LV+","./pl.js":"7LV+","./pt":"ZoSI","./pt-br":"AoDM","./pt-br.js":"AoDM","./pt.js":"ZoSI","./ro":"wT5f","./ro.js":"wT5f","./ru":"ulq9","./ru.js":"ulq9","./sd":"fW1y","./sd.js":"fW1y","./se":"5Omq","./se.js":"5Omq","./si":"Lgqo","./si.js":"Lgqo","./sk":"OUMt","./sk.js":"OUMt","./sl":"2s1U","./sl.js":"2s1U","./sq":"V0td","./sq.js":"V0td","./sr":"f4W3","./sr-cyrl":"c1x4","./sr-cyrl.js":"c1x4","./sr.js":"f4W3","./ss":"7Q8x","./ss.js":"7Q8x","./sv":"Fpqq","./sv.js":"Fpqq","./sw":"DSXN","./sw.js":"DSXN","./ta":"+7/x","./ta.js":"+7/x","./te":"Nlnz","./te.js":"Nlnz","./tet":"gUgh","./tet.js":"gUgh","./tg":"5SNd","./tg.js":"5SNd","./th":"XzD+","./th.js":"XzD+","./tl-ph":"3LKG","./tl-ph.js":"3LKG","./tlh":"m7yE","./tlh.js":"m7yE","./tr":"k+5o","./tr.js":"k+5o","./tzl":"iNtv","./tzl.js":"iNtv","./tzm":"FRPF","./tzm-latn":"krPU","./tzm-latn.js":"krPU","./tzm.js":"FRPF","./ug-cn":"To0v","./ug-cn.js":"To0v","./uk":"ntHu","./uk.js":"ntHu","./ur":"uSe8","./ur.js":"uSe8","./uz":"XU1s","./uz-latn":"/bsm","./uz-latn.js":"/bsm","./uz.js":"XU1s","./vi":"0X8Q","./vi.js":"0X8Q","./x-pseudo":"e/KL","./x-pseudo.js":"e/KL","./yo":"YXlc","./yo.js":"YXlc","./zh-cn":"Vz2w","./zh-cn.js":"Vz2w","./zh-hk":"ZUyn","./zh-hk.js":"ZUyn","./zh-tw":"BbgG","./zh-tw.js":"BbgG"};function n(e){return r(a(e))}function a(e){var t=s[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}n.keys=function(){return Object.keys(s)},n.resolve=a,e.exports=n,n.id="uslO"},wArP:function(e,t){e.exports='<div class="page-title">\r\n <div class="row">\r\n <div class="col-sm-6">\r\n <h4 class="mb-0"> {{ \'control_assets\' | translate }}\r\n </h4>\r\n </div>\r\n <div class="col-sm-6">\r\n <ol class="breadcrumb pt-0 float-left float-sm-right ">\r\n <li class="breadcrumb-item"><a href="javascript:void(0);" class="default-color">{{ \'assets\' | translate }}</a>\r\n </li>\r\n <li class="breadcrumb-item active">{{ \'control_assets\' | translate }}</li>\r\n </ol>\r\n </div>\r\n </div>\r\n</div>\r\n\x3c!-- main body --\x3e\r\n<div class="row">\r\n <div class="col-xl-12 mb-30">\r\n <div class="card card-statistics h-100">\r\n <div class="card-body">\r\n <h5 class="card-title mb-0">{{ \'search_in_assets\' | translate }}</h5>\r\n\r\n <div class="form-row">\r\n\r\n <div class="form-group col-md-3">\r\n <label>{{ \'serial_number\' | translate }}</label>\r\n <input type="text" class="form-control" [(ngModel)]="serial_number"\r\n placeholder="{{ \'serial_number\' | translate }}">\r\n </div>\r\n\r\n\r\n <div class="form-group col-md-3">\r\n <label>{{ \'QR\' | translate }}</label>\r\n <input type="text" class="form-control" [(ngModel)]="QR"\r\n placeholder="{{ \'QR\' | translate }}">\r\n </div>\r\n\r\n\r\n <div class="form-group col-md-3">\r\n <label> {{ \'electronic_id\' | translate }}</label>\r\n <input type="text" class="form-control" [(ngModel)]="electronic_id"\r\n placeholder="{{ \'electronic_id\' | translate }}">\r\n </div>\r\n\r\n\r\n <div class="form-group col-md-3">\r\n <label> {{ \'main_department\' | translate }} </label>\r\n <select class="form-control" [(ngModel)]="selectedMainCat" (change)="getAllSubCat($event)">\r\n <option value="">{{ \'select\' | translate }}</option>\r\n <option *ngFor="let obj of main_categories" [value]="obj.Id">{{obj | translate }}</option>\r\n </select>\r\n </div>\r\n\r\n\r\n <div class="form-group col-md-3" *ngIf="selectedMainCat != \'\'">\r\n <label> {{ \'category\' | translate }} </label>\r\n\r\n <select class="form-control" [(ngModel)]="selectedSubcat" (change)="getModel($event)">\r\n <option value="">{{ \'select\' | translate }}</option>\r\n\r\n <option *ngFor="let obj of sub_category" [value]="obj.Id">{{obj | translate }}</option>\r\n\r\n\r\n </select>\r\n </div>\r\n\r\n\r\n <div class="form-group col-md-3" *ngIf="selectedSubcat != \'\'">\r\n\r\n <label> {{ \'model\' | translate }} </label>\r\n\r\n <select class="form-control" [(ngModel)]="selectedModel">\r\n <option value="">{{ \'select\' | translate }}</option>\r\n <option *ngFor="let obj of models" [value]="obj.Id">{{obj | translate }}</option>\r\n\r\n </select>\r\n </div>\r\n\r\n\r\n <div class="form-group col-md-3">\r\n <label> {{ \'status\' | translate }} </label>\r\n <select class="form-control" [(ngModel)]="selectedstatus">\r\n <option value="">{{ \'select\' | translate }}</option>\r\n <option *ngFor="let obj of status" [value]="obj.Id">{{obj | translate }}</option>\r\n\r\n </select>\r\n </div>\r\n\r\n\r\n <div class="form-group col-md-3">\r\n <label> {{ \'location\' | translate }} </label>\r\n <select class="form-control" [(ngModel)]="selectedLocation" (change)="getBuild($event)">\r\n <option value="">{{ \'select\' | translate }}</option>\r\n <option *ngFor="let obj of locations" [value]="obj.Id">{{obj | translate }}</option>\r\n\r\n </select>\r\n </div>\r\n\r\n\r\n <div class="form-group col-md-3" *ngIf="selectedLocation != \'\'">\r\n <label> {{ \'building\' | translate }} </label>\r\n <select class="form-control" [(ngModel)]="selectedTowers" (change)="getFloors($event)">\r\n <option value="">{{ \'select\' | translate }}</option>\r\n <option *ngFor="let obj of towers" [value]="obj.Id">{{obj | translate }}</option>\r\n\r\n\r\n </select>\r\n </div>\r\n\r\n\r\n <div class="form-group col-md-3" *ngIf="selectedTowers != \'\'">\r\n <label> {{ \'floors\' | translate }} </label>\r\n <select class="form-control" [(ngModel)]="selectedFloors" (change)="getFloorRooms($event)">\r\n <option value="">{{ \'select\' | translate }}</option>\r\n <option *ngFor="let obj of floors" [value]="obj.Id">{{obj | translate }}</option>\r\n\r\n </select>\r\n </div>\r\n\r\n\r\n <div class="form-group col-md-3" *ngIf="selectedFloors != \'\'">\r\n <label> {{ \'offices\' | translate }} </label>\r\n <select class="form-control" [(ngModel)]="selectedRoom">\r\n <option value="">{{ \'select\' | translate }}</option>\r\n <option *ngFor="let obj of rooms" [value]="obj.Id">{{obj | translate }}</option>\r\n\r\n </select>\r\n </div>\r\n\r\n <div class="form-group col-md-3">\r\n <label> {{ \'assigners\' | translate }} </label>\r\n\r\n\r\n <ng-select\r\n placeholder="{{ \'select\' | translate }}"\r\n\r\n [(ngModel)]="selectedAssigner">\r\n <ng-option *ngFor="let obj of assigners" [value]="obj.Id">{{obj | translate }}</ng-option>\r\n\r\n </ng-select>\r\n\r\n\r\n </div>\r\n\r\n <div class="form-group col-md-3">\r\n <label> {{ \'assigned_to\' | translate }} </label>\r\n\r\n\r\n <ng-select\r\n placeholder="{{ \'select\' | translate }}"\r\n\r\n [(ngModel)]="selectedAssignedTo">\r\n <ng-option *ngFor="let obj of assignedTo" [value]="obj.Id">{{obj | translate }}</ng-option>\r\n\r\n </ng-select>\r\n\r\n\r\n </div>\r\n\r\n\r\n <div class="form-group col-md-3">\r\n <label> {{ \'received\' | translate }} </label>\r\n <select class="form-control" [(ngModel)]="userRecive">\r\n <option value="0">{{ \'select\' | translate }}</option>\r\n <option value="1">{{ \'Yes\' | translate }}</option>\r\n <option value="2">{{ \'No\' | translate }}</option>\r\n\r\n\r\n </select>\r\n </div>\r\n\r\n\r\n <div class="form-group col-md-3">\r\n <label> {{ \'creator\' | translate }} </label>\r\n\r\n\r\n <ng-select\r\n placeholder="{{ \'select\' | translate }}"\r\n\r\n [(ngModel)]="selectedCreator">\r\n <ng-option *ngFor="let obj of assigners" [value]="obj.Id">{{obj | translate }}</ng-option>\r\n\r\n </ng-select>\r\n </div>\r\n\r\n\r\n <div class="form-group col-md-3">\r\n <label> {{ \'date_from\' | translate}} </label>\r\n <div class="input-group">\r\n <input class="form-control" placeholder="yyyy-mm-dd"\r\n name="date_from" ngbDatepicker #s="ngbDatepicker" [(ngModel)]="date_from">\r\n <div class="input-group-append">\r\n <button class="btn btn-secondary" (click)="s.toggle()" type="button">\r\n <i class="fa fa-calendar"></i>\r\n </button>\r\n </div>\r\n </div>\r\n\r\n\r\n </div>\r\n\r\n\r\n <div class="form-group col-md-3">\r\n <label> {{ \'date_to\' | translate}} </label>\r\n <div class="input-group">\r\n <input class="form-control" placeholder="yyyy-mm-dd"\r\n name="date_to" ngbDatepicker #d="ngbDatepicker" [(ngModel)]="date_to">\r\n <div class="input-group-append">\r\n <button class="btn btn-secondary" (click)="d.toggle()" type="button">\r\n <i class="fa fa-calendar"></i>\r\n </button>\r\n </div>\r\n </div>\r\n\r\n\r\n </div>\r\n\r\n\r\n </div>\r\n\r\n <div class="row justify-content-center">\r\n \x3c!--<button type="button" class="btn btn-success btn-lg col-md-2" style="margin: 10px">\u0623\u0636\u0627\u0641\u0629</button>--\x3e\r\n\r\n <button type="button" (click)="SearchAsset()" class="btn btn-primary btn-lg col-md-2 center-block"\r\n style="margin: 10px">{{ \'search\' | translate }}\r\n </button>\r\n <button type="button" (click)="printAsset()" class="btn btn-warning btn-lg col-md-2 center-block"\r\n style="margin: 10px">{{ \'export_report\' | translate }}\r\n </button>\r\n\r\n <button type="button" (click)="ClearAll()" class="btn btn-danger btn-lg col-md-2 center-block"\r\n style="margin: 10px">{{ \'clear\' | translate }}\r\n </button>\r\n\r\n\r\n </div>\r\n\r\n\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n\r\n<app-addnew-asset #addcomponent>\r\n\r\n</app-addnew-asset>\r\n\r\n\r\n<app-follow-asset #followasset>\r\n\r\n</app-follow-asset>\r\n\r\n<div class="row">\r\n <div class="col-xl-12 mb-30">\r\n <div class="card card-statistics h-100">\r\n <div class="card-body">\r\n <h5 class="card-title mb-0">{{ \'assets_list\' | translate }}\r\n\r\n /\r\n\r\n {{ \'number_asset\' | translate }} ({{count}})\r\n </h5>\r\n <div class="row justify-content-center">\r\n\r\n\r\n <div class="form-group col-md-4">\r\n\r\n <button type="button" (click)="showAddNewItem()" class="btn btn-primary btn-lg btn-block"\r\n style="margin: 10px">{{ \'add_new_asset\' | translate }}\r\n </button>\r\n\r\n\r\n\r\n </div>\r\n <div class="form-group col-md-4" *ngIf="false">\r\n\r\n <a class="button button-border black btn-block"> {{ \'upload_asset_file\' | translate }} </a>\r\n </div>\r\n <div class="form-group col-md-4">\r\n\r\n\r\n <button type="button" (click)="attachAssets()" class="btn btn-primary btn-lg btn-block"\r\n style="margin: 10px">{{ \'attach_assets\' | translate }}\r\n\r\n <div class="float-right" *ngIf="this.selectedAttachAssets.length > 0">\r\n <span class="badge badge-pill badge-success">{{this.selectedAttachAssets.length}}</span>\r\n </div>\r\n </button>\r\n\r\n\r\n\r\n\r\n\r\n </div>\r\n </div>\r\n\r\n <div class="table-responsive">\r\n <table class="table table-1 table-bordered table-striped mb-0">\r\n <thead>\r\n <tr>\r\n <th>\r\n #\r\n </th>\r\n <th>{{ \'serial_number\' | translate }}</th>\r\n <th>{{ \'main_department\' | translate }}</th>\r\n <th>{{ \'category\' | translate }}</th>\r\n <th>{{ \'model\' | translate }}</th>\r\n <th>{{ \'status\' | translate }}</th>\r\n <th>{{ \'location\' | translate }}</th>\r\n <th>{{ \'building\' | translate }}</th>\r\n <th>{{ \'floor\' | translate }}</th>\r\n <th>{{ \'offices_select\' | translate }}</th>\r\n <th>{{ \'print_status\' | translate }}</th>\r\n <th>{{ \'attachment\' | translate }}</th>\r\n <th>{{ \'name_attached\' | translate }}</th>\r\n <th>{{ \'received\' | translate }}</th>\r\n <th>{{ \'options\' | translate }}</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n\r\n <tr *ngFor="let item of assets;let i = index">\r\n\r\n <td>\r\n <input *ngIf="item.IsAssigned != 1 "\r\n\r\n\r\n (change)="item.selectedAttach = !item.selectedAttach"\r\n (change)="onChangeAsset(item,$event) "\r\n\r\n\r\n type="checkbox" [checked]="item.IsAssigned == 1 || item.selectedAttach" class="remember-checkbox"\r\n\r\n />\r\n\r\n <input *ngIf="item.IsAssigned == 1 "\r\n\r\n\r\n disabled="true"\r\n\r\n\r\n type="checkbox" [checked]="item.IsAssigned == 1 || item.selectedAttach" class="remember-checkbox"\r\n\r\n />\r\n\r\n \x3c!--[disabled]="item.IsAssigned == 1" [(ngModel)]="item.checkForEmp"--\x3e\r\n </td>\r\n\r\n\r\n <td>{{item.SerialNumber}}</td>\r\n\r\n\r\n <td>{{item.main_category | translate}}</td>\r\n <td>{{item.category | translate}}</td>\r\n <td>{{item.model | translate}}</td>\r\n\r\n <td>{{item.status | translate}}</td>\r\n\r\n\r\n <td>{{item.location | translate}}</td>\r\n <td>{{item.tower | translate}}</td>\r\n <td>{{item.floor | translate}}</td>\r\n <td>{{item.room | translate}}</td>\r\n\r\n <td>\r\n <input type="checkbox" [checked]="item.IsPrinted == 1" class="remember-checkbox" disabled\r\n />\r\n </td>\r\n <td>\r\n <input type="checkbox" [checked]="item.IsAssigned == 1" class="remember-checkbox" disabled\r\n />\r\n </td>\r\n\r\n\r\n <td>{{item.employee | translate}}</td>\r\n <td>{{getAttachedName(item.IsReceived )}}</td>\r\n\r\n\r\n <td>\r\n\r\n <a (click)="editAsset(item,i)" class="dropdown-item" href="javascript:void(0);">\r\n <i class="text-dark ti-pencil-alt"></i> {{ \'edit\' | translate }}</a>\r\n\r\n\r\n\r\n <div class="d-block" ngbDropdown #myDrop="ngbDropdown">\r\n <button class="btn btn-secondary" id="dropdownManual"\r\n ngbDropdownAnchor (focus)="myDrop.open()">{{ \'options\' | translate }}\r\n </button>\r\n <div ngbDropdownMenu aria-labelledby="dropdownManual">\r\n <a (click)="editAsset(item,i)" class="dropdown-item" href="javascript:void(0);">\r\n <i class="text-dark ti-pencil-alt"></i> {{ \'edit\' | translate }}</a>\r\n <a appCanDelete (click)="deleteAsset(item,i)" class="dropdown-item" href="javascript:void(0);">\r\n <i class="text-primary ti-trash"></i> {{ \'delete\' | translate }}</a>\r\n <a class="dropdown-item" (click)="showFollowItem(item)"><i\r\n class="text-success ti-user"></i> {{ \'follow\' | translate }} </a>\r\n\r\n \x3c!--<a (click)="printeAsset(item,i)" class="dropdown-item" href="javascript:void(0);"><i--\x3e\r\n \x3c!--class="text-success ti-printer"></i> {{ \'print\' | translate }}</a>--\x3e\r\n \x3c!----\x3e\r\n \x3c!----\x3e\r\n <a *ngIf="item.IsAssigned != 1 " (click)="changeStatusToMissing(item,i)" class="dropdown-item"\r\n href="javascript:void(0);">\r\n <i class="text-success ti-share"></i> {{ \'change_status_to_missing\' | translate }}</a>\r\n <a *ngIf="item.IsAssigned != 1 " (click)="changeStatusToCorrupted(item,i)" class="dropdown-item"\r\n href="javascript:void(0);">\r\n <i class="text-success ti-share-alt"></i> {{ \'change_status_to_corrupted\' | translate }}</a>\r\n\r\n <a *ngIf="item.IsAssigned != 1 " (click)="usedBefore(item,i)" class="dropdown-item"\r\n href="javascript:void(0);">\r\n <i class="text-success ti-more"></i> {{ \'used_before\' | translate }}</a>\r\n\r\n <a *ngIf="item.IsAssigned == 1 " (click)="pullAsset(item,i)" class="dropdown-item"\r\n href="javascript:void(0);">\r\n <i class="text-secondary ti-desktop"></i>\r\n {{ \'pull_asset\' | translate }}</a>\r\n </div>\r\n </div>\r\n\r\n\r\n </td>\r\n </tr>\r\n\r\n </tbody>\r\n </table>\r\n\r\n <div class="sm-mt-20" style="margin-top: 20px">\r\n <nav aria-label="Page navigation example">\r\n <ul class="pagination justify-content-center">\r\n\r\n\r\n <ngb-pagination [maxSize]="10" [directionLinks]="true"\r\n\r\n\r\n [pageSize]="10" (pageChange)="SearchAssetPage($event)" [collectionSize]="count"\r\n aria-label="Default pagination"></ngb-pagination>\r\n\r\n\r\n </ul>\r\n </nav>\r\n </div>\r\n\r\n </div>\r\n\r\n\r\n </div>\r\n </div>\r\n </div>\r\n\r\n\r\n</div>\r\n'},x35b:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=r("48oy"),n=r("tGNx"),a=r("kLMJ"),i=r("ktDe"),o=r("WPSd"),l=this&&this.__decorate||function(e,t,r,s){var n,a=arguments.length,i=a<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(i=(a<3?n(i):a>3?n(t,r,i):n(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let d=class{constructor(){this.loader=new o.BehaviorSubject(!1)}showLoader(e){this.loader.next(e)}setExpandDiv(e){null!=document.getElementById(e)&&(document.getElementById(e).setAttribute("class","collapse show"),document.getElementById(e).previousElementSibling.setAttribute("aria-expanded","true"))}setAssetArray(e){this.assets=e}};d=l([Object(s.Injectable)(),c("design:paramtypes",[])],d);class m{static getProjectAPiLink(){return this.getProjectBaseLink()+"public/index.php/web_api/v1/"}static getImagesLink(){return this.getProjectBaseLink()+"storage/app/"}static getProjectBaseLink(){return this.IS_PRODUCTION?"http://assettracking.appsgateway.website/project/":"http://localhost/assettracking-laravel/"}static loadjscssfile(e,t){let r=null;"js"==t?((r=document.createElement("script")).setAttribute("type","text/javascript"),r.setAttribute("src",e)):"css"==t&&((r=document.createElement("link")).setAttribute("rel","stylesheet"),r.setAttribute("type","text/css"),r.setAttribute("href",e)),"undefined"!=typeof r&&document.getElementsByTagName("head")[0].appendChild(r)}static getLocal(){let e=localStorage.getItem("lang");return""!=e&&null!=e&&"null"!=e||(e="ar"),"ar"==e?m.loadjscssfile("assets/css/style.css","css"):m.loadjscssfile("assets/css2/style.css","css"),e}}m.IS_PRODUCTION=!0,m.MAIN_LINK=m.getProjectAPiLink(),m.BASE_LINK=m.getProjectBaseLink(),m.IMAGE_LINK=m.getImagesLink(),m.USERS=m.MAIN_LINK+"users/",m.LOGIN=m.USERS+"login",m.LANG=m.getLocal(),m.DASHBOARD_COUNTERS=m.MAIN_LINK+"dashboard_counters",m.SALESMEN=m.MAIN_LINK+"salesmen",m.CHANGE_SALESMAN_ACTIVE_STATE=m.MAIN_LINK+"change_salesman_active_state",m.FORGET_PASSWORD=m.MAIN_LINK+"users/forget_password",m.VERIFY_PASSWORD_CODE=m.MAIN_LINK+"verify_password_code",m.CHANGE_FORGOTEN_PASSWORD=m.MAIN_LINK+"users/change_forget_password",m.ASSET_LOOKUP=m.MAIN_LINK+"assets/lookup",m.ASSET_EMP=m.MAIN_LINK+"employees/assets/",m.ASSET_STATUS=m.MAIN_LINK+"employees/assets/change_status/",m.ASSET=m.MAIN_LINK+"assets",m.MAIN_CATEGORIES=m.MAIN_LINK+"main_categories",m.CATEGORIES=m.MAIN_LINK+"categories",m.LOCATIONS=m.MAIN_LINK+"locations",m.TOWERS=m.MAIN_LINK+"towers",m.FLOORS=m.MAIN_LINK+"floors",m.FILTER_ASSETS=m.MAIN_LINK+"assets/filter_assets",m.UNASSAIN_ASSETS=m.MAIN_LINK+"assets/un_assign",m.ASSAIN_ASSETS=m.MAIN_LINK+"assets/assign",m.ROLES=m.MAIN_LINK+"roles",m.ROOMS=m.MAIN_LINK+"rooms",m.NATIONALITIES=m.MAIN_LINK+"nationalities",m.JOBS=m.MAIN_LINK+"jobs",m.EMPLOYEES=m.MAIN_LINK+"employees",m.DEPARTMENTS=m.MAIN_LINK+"departments",m.MODEL=m.MAIN_LINK+"models",m.SESSION_CYCLE=m.MAIN_LINK+"sessioncycle",m.CHANGE_PASSWORD=m.EMPLOYEES+"/change_password",m.CHANGE_USER_PASSWORD=m.MAIN_LINK+"users/update_user_password";var p=this&&this.__decorate||function(e,t,r,s){var n,a=arguments.length,i=a<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(i=(a<3?n(i):a>3?n(t,r,i):n(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},h=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let u=class{constructor(e){this.router=e,this.user=null}canActivate(){return!!this.getUser()||(this.router.navigate(["/login"]),!1)}getUser(){if(null==this.user){const e=localStorage.getItem("user");e&&(this.user=JSON.parse(e))}return this.user}saveUser(e){this.user=e,localStorage.setItem("user",JSON.stringify(e))}setUser(e){this.user=e}removeUser(){this.user=null,localStorage.removeItem("user")}getUserFullImageUrlOrDefault(){return this.user&&this.user.employee&&null!=this.user.employee.ImageUrl?m.IMAGE_LINK+this.user.employee.ImageUrl:"../../../../assets/images/user-bg.jpg"}};u=p([Object(s.Injectable)(),h("design:paramtypes",[i.c])],u);var f=this&&this.__decorate||function(e,t,r,s){var n,a=arguments.length,i=a<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(i=(a<3?n(i):a>3?n(t,r,i):n(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},g=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let b=class{constructor(e){this.router=e}navigate(e){this.router.navigate([e])}navigateWithParams(e,t){let r=e;t.forEach(e=>{r+="/"+e}),this.router.navigate([r])}};b=f([Object(s.Injectable)(),g("design:paramtypes",[i.c])],b);var v=this&&this.__decorate||function(e,t,r,s){var n,a=arguments.length,i=a<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(i=(a<3?n(i):a>3?n(t,r,i):n(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},y=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let w=class{constructor(e,t,r){this._commondata=e,this.authService=t,this.appRouter=r,this.isSearchActive=!1,this.isSlideMenu=!1,this.scrollbarOptions={axis:"yx",theme:"minimal"},this.user=null,this.user=this.authService.getUser()}ngOnInit(){this._commondata.showLoader(!0)}toggleSearch(){this.isSearchActive=!this.isSearchActive}toggleMenu(){this.isSlideMenu=!this.isSlideMenu}expandCollpse(e){const t=document.getElementById(e).getAttribute("class");"collapse"==t||"collapse hide"==t?(document.getElementById(e).setAttribute("class","collapse show"),document.getElementById(e).previousElementSibling.setAttribute("aria-expanded","true")):(document.getElementById(e).setAttribute("class","collapse hide"),document.getElementById(e).previousElementSibling.setAttribute("aria-expanded","false"))}toggleFullscreen(e){e=e||document.documentElement,document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement?document.exitFullscreen?document.exitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen():e.requestFullscreen?e.requestFullscreen():e.msRequestFullscreen?e.msRequestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen&&e.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT)}logOutClick(){this.user=null,this.authService.removeUser(),this.appRouter.navigate("/login")}getUserImage(){return this.authService.getUserFullImageUrlOrDefault()}};w=v([Object(s.Component)({selector:"app-layout",template:r("E6gQ"),styles:[r("C47e")]}),y("design:paramtypes",[d,u,b])],w);var _=this&&this.__decorate||function(e,t,r,s){var n,a=arguments.length,i=a<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(i=(a<3?n(i):a>3?n(t,r,i):n(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},I=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let S=class{constructor(e){this.router=e}canActivate(e,t){return!localStorage.getItem("user")||(this.router.navigate([""]),!1)}};S=_([Object(s.Injectable)(),I("design:paramtypes",[i.c])],S);var x=r("ApZv"),A=this&&this.__decorate||function(e,t,r,s){var n,a=arguments.length,i=a<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(i=(a<3?n(i):a>3?n(t,r,i):n(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},j=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let T=class{constructor(e,t){this.authGuard=e,this.httpClient=t,this.IGNORE_FIELDS=new Map}login(e){return this.httpClient.post(m.LOGIN,e)}getDashboardCounters(){return this.httpClient.get(m.DASHBOARD_COUNTERS)}getSalesmen(){return this.httpClient.get(m.SALESMEN)}changeSalesmanActiveState(e,t){return this.httpClient.post(m.CHANGE_SALESMAN_ACTIVE_STATE,{salesman_id:e,state:t})}forgetPassword(e){return this.httpClient.post(m.FORGET_PASSWORD,{email:e})}verifyPasswordCode(e,t){return this.httpClient.post(m.VERIFY_PASSWORD_CODE,{email:e,password_code:t})}changeForgettenPassword(e,t){return this.httpClient.post(m.CHANGE_FORGOTEN_PASSWORD,{password_code:e,new_password:t})}getAssetLookup(){return this.httpClient.get(m.ASSET_LOOKUP)}getMainCategoryCategories(e){return this.httpClient.get(m.MAIN_CATEGORIES+"/"+e+"/categories")}deleteAsset(e){return this.httpClient.delete(m.ASSET+"/"+e)}updateAsset(e,t){const r=new FormData;if(t){let e=1;t.forEach(t=>{r.append("Image"+e,t,"Image"+e),e++})}return r.append("AssetData",JSON.stringify(e)),r.append("_method","PUT"),this.httpClient.post(m.ASSET+"/"+e.Id,r)}pullAsset(e,t){let r=m.UNASSAIN_ASSETS;return r+="?AssetId="+e,r+="&EmployeeId="+t,this.httpClient.get(r)}AssainAsset(e){return this.httpClient.post(m.ASSAIN_ASSETS,e)}addAsset(e,t){const r=new FormData;if(t){let e=1;t.forEach(t=>{r.append("Image"+e,t,t),e++})}return r.append("AssetData",JSON.stringify(e)),this.httpClient.post(m.ASSET,r)}getCategoryModels(e){return this.httpClient.get(m.CATEGORIES+"/"+e+"/models")}getLocationTowers(e){return this.httpClient.get(m.LOCATIONS+"/"+e+"/towers")}getTowerFloors(e){return this.httpClient.get(m.TOWERS+"/"+e+"/floors")}getFloorRooms(e){return this.httpClient.get(m.FLOORS+"/"+e+"/rooms")}searchAssets(e,t,r,s,n,a,i,o,l,c,d,p,h,u,f,g,b,v,y){let w=m.FILTER_ASSETS,_=!1;return""!=e&&(w+="?id="+e,_=!0),""!=t&&(_?w+="&serial_number="+t:(w+="?serial_number="+t,_=!0)),""!=y&&"0"!=y&&(_?w+="&userRecive="+y:(w+="?userRecive="+y,_=!0)),""!=r&&(_?w+="&main_category="+r:(w+="?main_category="+r,_=!0)),""!=g&&(_?w+="&QR="+g:(w+="?QR="+g,_=!0)),""!=s&&(_?w+="&category="+s:(w+="?category="+s,_=!0)),""!=n&&(_?w+="&model="+n:(w+="?model="+n,_=!0)),""!=a&&(_?w+="&status="+a:(w+="?status="+a,_=!0)),null!=b&&(_?w+="&fromDate="+b.year+"-"+b.month+"-"+b.day:(w+="?fromDate="+b.year+"-"+b.month+"-"+b.day,_=!0)),null!=v&&(_?w+="&endDate="+v.year+"-"+v.month+"-"+v.day:(w+="?endDate="+v.year+"-"+v.month+"-"+v.day,_=!0)),""!=i&&(_?w+="&location="+i:(w+="?location="+i,_=!0)),""!=o&&(_?w+="&tower="+o:(w+="?tower="+o,_=!0)),""!=l&&(_?w+="&floor="+l:(w+="?floor="+l,_=!0)),""!=c&&(_?w+="&room="+c:(w+="?room="+c,_=!0)),d>-1&&(_?w+="&offset="+d:(w+="?offset="+d,_=!0)),p>-1&&(_?w+="&limit="+p:(w+="?limit="+p,_=!0)),null!=u&&"0"!=u&&(_?w+="&assigned_to="+u:(w+="?assigned_to="+u,_=!0)),null!=h&&"0"!=h&&(_?w+="&assigner="+h:(w+="?assigner="+h,_=!0)),null!=f&&"0"!=f&&(_?w+="&creator_id="+f:(w+="?creator_id="+f,_=!0)),this.httpClient.get(w)}getLocations(){return this.httpClient.get(m.LOCATIONS)}getDepartments(){return this.httpClient.get(m.DEPARTMENTS)}getTowers(){return this.httpClient.get(m.TOWERS)}getFloors(){return this.httpClient.get(m.FLOORS)}getRooms(){return this.httpClient.get(m.ROOMS)}addLocation(e,t,r){return this.httpClient.post(m.LOCATIONS,{NameAr:e,NameEn:t,CityName:r})}addDepartment(e,t){return this.httpClient.post(m.DEPARTMENTS,{NameAr:e,NameEn:t})}updateLocation(e,t){return this.httpClient.put(m.LOCATIONS+"/"+t,e)}updateDepartment(e,t){return this.httpClient.put(m.DEPARTMENTS+"/"+t,e)}deleteLocation(e){return this.httpClient.delete(m.LOCATIONS+"/"+e)}addTower(e){return this.httpClient.post(m.TOWERS,e)}updateTower(e,t){return this.httpClient.put(m.TOWERS+"/"+t,e)}deleteTower(e){return this.httpClient.delete(m.TOWERS+"/"+e)}updateProfile(e){return this.httpClient.post(m.EMPLOYEES+"/update_profile",e)}changePassword(e){return this.httpClient.post(m.CHANGE_PASSWORD,e)}updateProfileImage(e){const t=new FormData;return t.append("Image",e,e.name),this.httpClient.post(m.EMPLOYEES+"/change_profile_image",t)}updateUserPassword(e,t){return this.httpClient.post(m.CHANGE_USER_PASSWORD,{userId:e,newPassword:t})}getMainCategories(){return this.httpClient.get(m.MAIN_CATEGORIES)}getRoles(){let e=m.ROLES;return null!=this.authGuard&&null!=this.authGuard.getUser()&&null!=this.authGuard.getUser().role&&(e+="?all="+this.authGuard.getUser().role.Id),this.httpClient.get(e)}getAssetAssignInvitationDetail(e){return this.httpClient.get(m.ASSET+"/asset_assigned_invitation/"+e)}getAssigners(){return this.httpClient.get(m.USERS+"assigners")}getAssignedTo(){return this.httpClient.get(m.USERS+"assigned_to")}generateAssetNumber(){return this.httpClient.get(m.ASSET+"/generate_asset_number")}deleteAssetImage(e){return this.httpClient.delete(m.ASSET+"/images/"+e)}};T=A([Object(s.Injectable)(),j("design:paramtypes",[u,x.b])],T);var N=this&&this.__decorate||function(e,t,r,s){var n,a=arguments.length,i=a<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(i=(a<3?n(i):a>3?n(t,r,i):n(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},E=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let R=class{constructor(e){this.http=e,this.data={}}use(e){return new Promise((t,r)=>{const s=`assets/${e||"en"}.json`;this.http.get(s).subscribe(e=>{this.data=Object.assign({},e||{}),t(this.data)},e=>{this.data={},t(this.data)})})}};R=N([Object(s.Injectable)(),E("design:paramtypes",[x.b])],R);var O=this&&this.__decorate||function(e,t,r,s){var n,a=arguments.length,i=a<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(i=(a<3?n(i):a>3?n(t,r,i):n(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},M=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let C=class{constructor(e){this.translate=e}transform(e){if(null==e||void 0==e)return this.translate.data.not_found;if("ar"==m.LANG){if(null!=e.NameAr&&void 0!=e.NameAr&&""!=e.NameAr)return e.NameAr;if(null!=e.NameEn&&void 0!=e.NameEn&&""!=e.NameEn)return e.NameEn}else if("en"==m.LANG){if(null!=e.NameEn&&void 0!=e.NameEn&&""!=e.NameEn)return e.NameEn;if(null!=e.NameAr&&void 0!=e.NameAr&&""!=e.NameAr)return e.NameAr}return this.translate.data[e]||e}};C=O([Object(s.Pipe)({name:"translate",pure:!1}),M("design:paramtypes",[R])],C);var L=this&&this.__decorate||function(e,t,r,s){var n,a=arguments.length,i=a<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(i=(a<3?n(i):a>3?n(t,r,i):n(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},D=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let F=class{constructor(e){this.translate=e,this.translatePipe=new C(e)}showError(e="Error",t="Error in server."){swal(e,t,"error")}showErrorMessage(e="Error in server."){swal({title:this.translatePipe.transform("Error"),text:this.translatePipe.transform(e),type:"error",confirmButtonColor:"#3085d6",confirmButtonText:this.translatePipe.transform("cancel")})}deleteMessage(e){swal({title:this.translatePipe.transform("DeleteMessage"),text:this.translatePipe.transform("DeleteComfirm"),type:"error",showCancelButton:!0,confirmButtonColor:"#3085d6",cancelButtonColor:"#d33",confirmButtonText:this.translatePipe.transform("Yes"),cancelButtonText:this.translatePipe.transform("No")}).then(t=>{t.value&&e()})}confirmation(e,t){swal({title:this.translatePipe.transform(e),type:"error",showCancelButton:!0,confirmButtonColor:"#3085d6",cancelButtonColor:"#d33",confirmButtonText:this.translatePipe.transform("Yes"),cancelButtonText:this.translatePipe.transform("No")}).then(e=>{e.value&&t()})}confirmationWithTitle(e,t){swal({title:e,type:"info",showCancelButton:!0,confirmButtonColor:"#3085d6",cancelButtonColor:"#d33",confirmButtonText:this.translatePipe.transform("Yes"),cancelButtonText:this.translatePipe.transform("No")}).then(e=>{e.value&&t()})}SuccesMessage(e="Done"){swal({type:"success",title:this.translatePipe.transform(e),showConfirmButton:!1,timer:1500})}};F=L([Object(s.Injectable)(),D("design:paramtypes",[R])],F);var k=r("D1q2"),U=this&&this.__decorate||function(e,t,r,s){var n,a=arguments.length,i=a<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(i=(a<3?n(i):a>3?n(t,r,i):n(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},P=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let q=class{constructor(e,t,r,s,n,a){this._commondata=e,this.apiService=t,this.router=r,this.alertService=s,this.logger=n,this.authService=a,this.userLoginRequest={Email:"",PasswordHash:""},this.rememberMe=!0}ngOnInit(){setTimeout(e=>this._commondata.showLoader(!1),200)}loginClick(e){e.invalid||this.apiService.login(this.userLoginRequest).subscribe(e=>{this.logger.debug(e),this.rememberMe?this.authService.saveUser(e.user):this.authService.setUser(e.user),this.router.navigate("")},e=>{this.logger.error(e.error),this.alertService.showErrorMessage(e.error.user_message)})}};q=U([Object(s.Component)({selector:"app-login",template:r("kav2"),styles:[r("SaPb")]}),P("design:paramtypes",[d,T,b,F,k.Logger,u])],q);var B=this&&this.__decorate||function(e,t,r,s){var n,a=arguments.length,i=a<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(i=(a<3?n(i):a>3?n(t,r,i):n(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},H=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let G=class{constructor(e){this._commondata=e}ngOnInit(){this._commondata.setExpandDiv("custom-page"),setTimeout(e=>this._commondata.showLoader(!1),200)}};G=B([Object(s.Component)({selector:"app-error",template:r("itsN"),styles:[r("sBfR")]}),H("design:paramtypes",[d])],G);var z=r("xssS"),V=this&&this.__decorate||function(e,t,r,s){var n,a=arguments.length,i=a<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(i=(a<3?n(i):a>3?n(t,r,i):n(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},J=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let K=class{constructor(e,t,r,s,n,a){this.router=e,this.alert=t,this.apiService=r,this.toastService=s,this.translateService=n,this._commondata=a,this.email="",this.tr=new C(n)}ngOnInit(){}forgetPasswordClick(e){e.valid&&this.apiService.forgetPassword(this.email).subscribe(e=>{this.toastService.info(this.tr.transform("send_email_successful"))},e=>{})}};K=V([Object(s.Component)({selector:"app-forget-password",template:r("UL2A"),styles:[r("V7qO")]}),J("design:paramtypes",[b,F,T,z.ToastsManager,R,d])],K);var Q=this&&this.__decorate||function(e,t,r,s){var n,a=arguments.length,i=a<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(i=(a<3?n(i):a>3?n(t,r,i):n(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},W=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let Y=class{constructor(e,t,r,s,n,a,i){this.apiService=e,this.appRouter=t,this.dialogService=r,this.activatedRoute=s,this.toastManager=n,this.translateService=a,this._commondata=i,this.password="",this.email="",this.verificationCode="",this.showPassword=!1,this.tr=new C(a)}ngOnInit(){this.activatedRoute.paramMap.subscribe(e=>{this.email=e.get("email"),this.verificationCode=e.get("code")})}changePassword(e){e.valid&&this.apiService.changeForgettenPassword(this.verificationCode,this.password).subscribe(e=>{this.toastManager.success(this.tr.transform("Password_changed_successfully")),this.appRouter.navigate("")},e=>{})}};Y=Q([Object(s.Component)({selector:"app-change-password",template:r("t59G"),styles:[r("iVEC")]}),W("design:paramtypes",[T,b,F,i.a,z.ToastsManager,R,d])],Y);var $=r("rdLu");class X{constructor(){this.modals=[]}add(e){this.modals.push(e)}remove(e){const t=$.findWhere(this.modals,{id:e});this.modals=$.without(this.modals,t)}open(e){$.findWhere(this.modals,{id:e}).open()}close(e){$.find(this.modals,{id:e}).close()}}class Z{constructor(){this.selectedAttach=!1}}var ee=this&&this.__decorate||function(e,t,r,s){var n,a=arguments.length,i=a<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(i=(a<3?n(i):a>3?n(t,r,i):n(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},te=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let re=class{constructor(e,t,r,s){this.dialogService=e,this.toast=t,this.apiService=r,this.translate=s,this.images=[],this.tr=new C(s)}ngOnInit(){}addImage(e,t){4==this.images.length?this.dialogService.showErrorMessage("Cannot_images"):this.images.push({Id:0,AssetId:0,ImageUrl:e,imageFile:t})}deleteImage(e,t){const r=this;this.dialogService.deleteMessage(function(){e.Id>0?r.apiService.deleteAssetImage(e.Id).subscribe(e=>{r.images.splice(t,1)},e=>{}):r.images.splice(t,1),r.toast.success(r.tr.transform("Delete_images"))})}getLocalImages(){return this.images.filter(e=>0==e.Id).map(e=>e.imageFile)}setImages(e){this.images=e.map(e=>(e.ImageUrl=m.IMAGE_LINK+e.ImageUrl,e))}isHasServerImages(){return this.images.find(e=>e.Id>0)}addImages(){return this.images.length>0}showImage(e){swal({imageUrl:e.ImageUrl,imageWidth:400,imageHeight:200,animation:!1})}};re=ee([Object(s.Component)({selector:"app-asset-images",template:r("3P4Y"),styles:[r("Pl7K")]}),te("design:paramtypes",[F,z.ToastsManager,T,R])],re);var se=this&&this.__decorate||function(e,t,r,s){var n,a=arguments.length,i=a<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(i=(a<3?n(i):a>3?n(t,r,i):n(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},ne=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let ae=class{constructor(e,t,r,s){this._commondata=e,this.alertService=t,this.modalService=r,this.apiService=s,this.numberOfSupportedYears="",this.DesAr="",this.DesEn="",this.selectedTab="collapse1",this.selectedMainCat="",this.selectedstatus="",this.selectedSubcat="",this.selectedModel="",this.selectedLocation="",this.selectedTowers="",this.selectedFloors="",this.selectedRoom="",this.serial_number="",this.electronic_id="",this.QR="",this.AssetId=0,this.submitForm=!1,this.assetSelected=new Z,this.callback=null,this.editMode=!1,this.disableGenrator=!1}ngOnInit(){}showModel(e){this.callback=e,this.modalService.open("add_new_asset"),this.ClearAll(),this.setLookupData()}showModelWithEPc(e){this.modalService.open("add_new_asset"),this.ClearAll(),this.setLookupData(),this.QR=e,this.serial_number=e,this.electronic_id=e}EditMode(e,t){if(this.ClearAll(),this.callback=t,this.modalService.open("add_new_asset"),this.editMode=!0,this.assetSelected=e,this.assetImages.setImages(e.images),this.selectedMainCat=this.getEmptyIfNull(e.MainCategoryId),this.selectedstatus=this.getEmptyIfNull(e.AssetStatusId),this.selectedSubcat=this.getEmptyIfNull(e.CategoryId),this.selectedModel=this.getEmptyIfNull(e.ModelId),this.selectedLocation=this.getEmptyIfNull(e.LocationId),this.selectedTowers=this.getEmptyIfNull(e.TowerId),this.selectedFloors=this.getEmptyIfNull(e.FloorId),this.selectedRoom=this.getEmptyIfNull(e.RoomId),this.serial_number=this.getEmptyIfNull(e.SerialNumber),this.electronic_id=this.getEmptyIfNull(e.Epc),this.numberOfSupportedYears=this.getEmptyIfNull(e.NoSupportedYears),this.DesAr=this.getEmptyIfNull(e.DescriptionAr),this.DesEn=this.getEmptyIfNull(e.DescriptionEn),this.QR=this.getEmptyIfNull(e.QR),this.AssetId=e.Id,""!=this.getEmptyIfNull(e.ManufactureDate)){const t=e.ManufactureDate.split(" ")[0].split("-");this.DateCreate=new class{constructor(){this.day=Number(t[2]),this.month=Number(t[1]),this.year=Number(t[0])}}}if(""!=this.getEmptyIfNull(e.PurchaseDate)){const t=e.PurchaseDate.split(" ")[0].split("-");this.DateBuy=new class{constructor(){this.day=Number(t[2]),this.month=Number(t[1]),this.year=Number(t[0])}}}this.setLookupData(),this.getModel(null),this.getFloors(null),this.getFloorRooms(null),this.getBuild(null),this.getAllSubCat(null)}getEmptyIfNull(e){return null==e||void 0==e?"":""+e}closeModal(){this.modalService.close("add_new_asset")}getModel(e){""!=this.selectedSubcat&&this.apiService.getCategoryModels(this.selectedSubcat).subscribe(e=>{this.models=e.models},e=>{})}getFloors(e){""!=this.selectedTowers&&this.apiService.getTowerFloors(this.selectedTowers).subscribe(e=>{this.floors=e.floors},e=>{})}getFloorRooms(e){""!=this.selectedFloors&&this.apiService.getFloorRooms(this.selectedFloors).subscribe(e=>{this.rooms=e.rooms},e=>{})}getBuild(e){""!=this.selectedLocation&&this.apiService.getLocationTowers(this.selectedLocation).subscribe(e=>{this.towers=e.towers},e=>{})}getAllSubCat(e){""!=this.selectedMainCat&&this.apiService.getMainCategoryCategories(this.selectedMainCat).subscribe(e=>{this.sub_category=e.categories},e=>{})}setLookupData(){this.apiService.getAssetLookup().subscribe(e=>{this.main_categories=e.lookup.main_categories,this.status=e.lookup.status,this.locations=e.lookup.locations},e=>{})}ClearAll(){this.DateBuy=null,this.DateCreate=null,this.assetImages.setImages([]),this.selectedMainCat="",this.submitForm=!1,this.selectedstatus="",this.QR="",this.selectedSubcat="",this.selectedModel="",this.selectedLocation="",this.selectedTowers="",this.selectedFloors="",this.selectedRoom="",this.serial_number="",this.electronic_id="",this.numberOfSupportedYears="",this.DesAr="",this.DesEn="",this.editMode=!1,this.selectedTab="collapse1",document.getElementById(this.selectedTab).setAttribute("class","acd-des collapse hide"),document.getElementById(this.selectedTab).previousElementSibling.setAttribute("aria-expanded","false"),this.disableGenrator=!1,this.expandCollpse(this.selectedTab)}addNewAsset(e){console.log(e),this.submitForm=!0,e.invalid||(this.assetSelected.MainCategoryId=Number(this.selectedMainCat),this.assetSelected.SerialNumber=this.serial_number,this.assetSelected.Epc=this.electronic_id,this.assetSelected.CategoryId=Number(this.selectedSubcat),this.assetSelected.ModelId=Number(this.selectedModel),this.assetSelected.AssetStatusId=Number(this.selectedstatus),this.assetSelected.LocationId=Number(this.selectedLocation),this.assetSelected.TowerId=Number(this.selectedTowers),this.assetSelected.FloorId=Number(this.selectedFloors),this.assetSelected.RoomId=Number(this.selectedRoom),null!=this.DateBuy&&(this.assetSelected.PurchaseDate=this.DateBuy.year+"-"+this.DateBuy.month+"-"+this.DateBuy.day),null!=this.DateCreate&&(this.assetSelected.ManufactureDate=this.DateCreate.year+"-"+this.DateCreate.month+"-"+this.DateCreate.day),this.assetSelected.NoSupportedYears=Number(this.numberOfSupportedYears),this.assetSelected.DescriptionAr=this.DesAr,this.assetSelected.DescriptionEn=this.DesEn,this.assetSelected.QR=this.QR,this.editMode?(this.assetSelected.Id=this.AssetId,this.apiService.updateAsset(this.assetSelected,this.assetImages.getLocalImages()).subscribe(e=>{this.modalService.close("add_new_asset"),this.alertService.SuccesMessage(),this.callback(e.asset),this.ClearAll()},e=>{})):this.apiService.addAsset(this.assetSelected,this.assetImages.getLocalImages()).subscribe(e=>{this.modalService.close("add_new_asset"),this.callback(e.asset),this.ClearAll(),this.alertService.SuccesMessage()},e=>{console.log(e)}))}fileSelect(e){this.assetImages.images.length>=4&&this.alertService.showErrorMessage("Cannot_images");const t=e.target.files[0],r=new FileReader;r.readAsDataURL(t),r.onload=(e=>{this.assetImages.addImage(e.target.result,t)})}expandCollpse(e){this.selectedTab=e;const t=document.getElementById(e).getAttribute("class");"acd-des collapse"==t||"acd-des collapse hide"==t?(document.getElementById(e).setAttribute("class","acd-des collapse show"),document.getElementById(e).previousElementSibling.setAttribute("aria-expanded","true"),"collapse1"==e?(e="collapse2",document.getElementById(e).setAttribute("class","acd-des collapse hide"),document.getElementById(e).previousElementSibling.setAttribute("aria-expanded","false"),e="collapse3",document.getElementById(e).setAttribute("class","acd-des collapse hide"),document.getElementById(e).previousElementSibling.setAttribute("aria-expanded","false")):"collapse2"==e?(e="collapse1",document.getElementById(e).setAttribute("class","acd-des collapse hide"),document.getElementById(e).previousElementSibling.setAttribute("aria-expanded","false"),e="collapse3",document.getElementById(e).setAttribute("class","acd-des collapse hide"),document.getElementById(e).previousElementSibling.setAttribute("aria-expanded","false")):"collapse3"==e&&(e="collapse1",document.getElementById(e).setAttribute("class","acd-des collapse hide"),document.getElementById(e).previousElementSibling.setAttribute("aria-expanded","false"),e="collapse2",document.getElementById(e).setAttribute("class","acd-des collapse hide"),document.getElementById(e).previousElementSibling.setAttribute("aria-expanded","false"))):(document.getElementById(e).setAttribute("class","acd-des collapse hide"),document.getElementById(e).previousElementSibling.setAttribute("aria-expanded","false"))}generateAssetNumber(){this.apiService.generateAssetNumber().subscribe(e=>{this.QR=e.number,this.serial_number=e.number,this.electronic_id=e.number,this.disableGenrator=!0},e=>{console.log(e)})}};se([Object(s.ViewChild)("assetImages"),ne("design:type",re)],ae.prototype,"assetImages",void 0),ae=se([Object(s.Component)({selector:"app-addnew-asset",template:r("mFGk"),styles:[r("effW")]}),ne("design:paramtypes",[d,F,X,T])],ae);var ie=r("uXZL"),oe=this&&this.__decorate||function(e,t,r,s){var n,a=arguments.length,i=a<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(i=(a<3?n(i):a>3?n(t,r,i):n(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},le=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};r("l9mu");r("+2xD");let ce=class{constructor(e,t){this.translate=e,this.apiService=t,this.rows=[],this.tr=new C(e)}printMainCat(e){this.rows=[],this.rows.push([this.tr.transform("arabic_name"),this.tr.transform("english_name")]);for(const t of e)this.rows.push([t.NameAr,t.NameEn]);this.printCSV()}printBuild(e){this.rows=[],this.rows.push([this.tr.transform("arabic_name"),this.tr.transform("english_name"),this.tr.transform("location")]);for(const t of e)this.rows.push([t.NameAr,t.NameEn,this.tr.transform(t.location)]);this.printCSV()}printFloor(e){this.rows=[],this.rows.push([this.tr.transform("arabic_name"),this.tr.transform("english_name"),this.tr.transform("buildings"),this.tr.transform("location")]);for(const t of e)this.rows.push([t.NameAr,t.NameEn,this.tr.transform(t.tower),this.tr.transform(t.tower.location)]);this.printCSV()}printDepartment(e){this.rows=[],this.rows.push([this.tr.transform("arabic_name"),this.tr.transform("english_name")]);for(const t of e)this.rows.push([t.NameAr,t.NameEn]);this.printCSV()}printRoom(e){this.rows=[],this.rows.push([this.tr.transform("arabic_name"),this.tr.transform("english_name"),this.tr.transform("floor"),this.tr.transform("building"),this.tr.transform("location")]);for(const t of e)this.rows.push([t.NameAr,t.NameEn,this.tr.transform(t.floor),this.tr.transform(t.floor.tower),this.tr.transform(t.floor.tower.location)]);this.printCSV()}printLocation(e){this.rows=[],this.rows.push([this.tr.transform("arabic_name"),this.tr.transform("english_name"),this.tr.transform("city")]);for(const t of e)this.rows.push([t.NameAr,t.NameEn,t.CityName]);this.printCSV()}printInvitoryResult(e){this.rows=[],this.rows.push([this.tr.transform("electronic_id"),this.tr.transform("status")]);for(const t of e)this.rows.push([this.tr.transform(t.Epc),this.tr.transform(this.getstatuName(this.tr,t))]);this.printCSV()}getstatuName(e,t){return 1==t.IsFound&&1==t.IsRead?e.transform("found2"):1==t.IsFound&&0==t.IsRead?e.transform("not_found2"):0==t.IsFound&&1==t.IsRead&&null==t.asset?e.transform("not_found_in_system"):0==t.IsFound&&1==t.IsRead&&null!=t.asset?e.transform("found_other_place")+e.transform(t.asset.location)+"/"+e.transform(t.asset.tower)+"/"+e.transform(t.asset.floor)+"/"+e.transform(t.asset.room):void 0}printTrackHistory(e){this.rows=[],this.rows.push([this.tr.transform("status"),this.tr.transform("action"),this.tr.transform("empname"),this.tr.transform("CreatedOn")]);for(const t of e)this.rows.push([this.tr.transform(t.asset_status),this.tr.transform(t.asset_action),this.tr.transform(t.employee),this.tr.transform(t.CreatedOn)]);this.printCSV()}printModel(e){this.rows=[],this.rows.push([this.tr.transform("arabic_name"),this.tr.transform("english_name"),this.tr.transform("category"),this.tr.transform("main_departments")]);for(const t of e)this.rows.push([t.NameAr,t.NameEn,this.tr.transform(t.category),this.tr.transform(t.category.main_category)]);this.printCSV()}printSubCat(e){this.rows=[],this.rows.push([this.tr.transform("arabic_name"),this.tr.transform("english_name"),this.tr.transform("main_department")]);for(const t of e)this.rows.push([t.NameAr,t.NameEn,this.tr.transform(t.main_category)]);this.printCSV()}printAssets(e,t,r,s,n,a,i,o,l,c,d,m,p,h,u,f,g){this.rows=[],this.rows.push([this.tr.transform("serial_number"),this.tr.transform("QR"),this.tr.transform("main_department"),this.tr.transform("category"),this.tr.transform("model"),this.tr.transform("status"),this.tr.transform("location"),this.tr.transform("building"),this.tr.transform("floor"),this.tr.transform("offices_select"),this.tr.transform("name_attached"),this.tr.transform("CreatedOn"),this.tr.transform("follow_request")]),this.apiService.searchAssets("",t,r,s,n,a,i,o,l,c,0,1e4,d,m,p,h,u,f,g).subscribe(e=>{for(const t of e.assets.assets)this.rows.push([t.SerialNumber,t.QR,this.tr.transform(t.main_category),this.tr.transform(t.category),this.tr.transform(t.model),this.tr.transform(t.status),this.tr.transform(t.location),this.tr.transform(t.tower),this.tr.transform(t.floor),this.tr.transform(t.room),this.tr.transform(t.employee),t.CreatedOn,this.getAssetHistoryString(t.asset_track_history)]);this.printCSV()},e=>{})}printCSV(){const e=ie.utils.json_to_sheet(this.rows),t=ie.utils.book_new();ie.utils.book_append_sheet(t,e,"Sheet1"),ie.writeFile(t,"SheetJS.xlsx")}getAssetHistoryString(e){let t=this.tr.transform("status")+" - "+this.tr.transform("action")+" - "+this.tr.transform("empname")+" - "+this.tr.transform("CreatedOn")+"\n";for(let r=0;r<e.length;r++)t+=this.tr.transform(e[r].asset_status)+" - "+this.tr.transform(e[r].asset_action)+" - "+this.tr.transform(e[r].employee)+" - "+e[r].CreatedOn+"\n";return t}};ce=oe([Object(s.Injectable)(),le("design:paramtypes",[R,T])],ce);var de=this&&this.__decorate||function(e,t,r,s){var n,a=arguments.length,i=a<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(i=(a<3?n(i):a>3?n(t,r,i):n(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},me=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let pe=class{constructor(e,t,r){this._commondata=e,this.modalService=t,this.pdfServiceService=r}printExcel(){this.pdfServiceService.printTrackHistory(this.selectedAssets)}ngOnInit(){}showModel(e){this.modalService.open("followasst"),this.selectedAssets=e.asset_track_history}closeModal(){this.modalService.close("followasst")}};pe=de([Object(s.Component)({selector:"app-follow-asset",template:r("GmHC"),styles:[r("Xn/Z")]}),me("design:paramtypes",[d,X,ce])],pe);var he=this&&this.__decorate||function(e,t,r,s){var n,a=arguments.length,i=a<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(i=(a<3?n(i):a>3?n(t,r,i):n(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},ue=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let fe=class{constructor(e,t,r,s,n,a,i){this._commondata=e,this.apiService=t,this.alertService=r,this.translate=s,this.router=n,this.toast=a,this.pdfServiceService=i,this.selectedMainCat="",this.selectedstatus="",this.selectedSubcat="",this.selectedModel="",this.selectedLocation="",this.selectedTowers="",this.selectedFloors="",this.selectedRoom="",this.serial_number="",this.QR="",this.electronic_id="",this.loadingIndicator=!0,this.selectedAssigner=null,this.selectedAssignedTo=null,this.userRecive="0",this.selectedCreator=null,this.offset=0,this.limit=10,this.count=0,this.tr=new C(s),setTimeout(()=>{this.loadingIndicator=!1},1500),this.setLookupData(),this.SearchAsset(),this.selectedAttachAssets=Array(),this.getAssigners(),this.getAssignedTo()}getModel(e){this.apiService.getCategoryModels(this.selectedSubcat).subscribe(e=>{this.models=e.models,this.selectedModel=""},e=>{})}getFloors(e){this.apiService.getTowerFloors(this.selectedTowers).subscribe(e=>{this.floors=e.floors,this.selectedFloors=""},e=>{})}getFloorRooms(e){this.apiService.getFloorRooms(this.selectedFloors).subscribe(e=>{this.rooms=e.rooms,this.selectedRoom=""},e=>{})}getBuild(e){this.apiService.getLocationTowers(this.selectedLocation).subscribe(e=>{this.towers=e.towers,this.selectedTowers=""},e=>{})}getAllSubCat(e){this.apiService.getMainCategoryCategories(this.selectedMainCat).subscribe(e=>{this.sub_category=e.categories,this.selectedSubcat=""},e=>{})}setLookupData(){this.apiService.getAssetLookup().subscribe(e=>{this.main_categories=e.lookup.main_categories,this.status=e.lookup.status,this.locations=e.lookup.locations},e=>{})}ngOnInit(){this._commondata.setExpandDiv("Table"),setTimeout(e=>this._commondata.showLoader(!1),200)}onChangeAsset(e,t){if(1==e.selectedAttach)this.selectedAttachAssets.push(e);else{let t=0;for(let r=0;r<this.selectedAttachAssets.length;r++)this.selectedAttachAssets[r].Id==e.Id&&(t=r);this.selectedAttachAssets.splice(t,1)}}attachAssets(){0!=this.selectedAttachAssets.length?(this._commondata.setAssetArray(this.selectedAttachAssets),this.router.navigate("attach_assets")):this.toast.error(this.tr.transform("Choose_one"))}showAddNewItem(){this.addcomponent.showModel(e=>{this.SearchAssetPage(this.offset)})}editAsset(e,t){this.addcomponent.EditMode(e,e=>{this.SearchAssetPage(this.offset)})}printAsset(){this.assets.length<=0?this.toast.error(this.tr.transform("NODATA")):this.alertService.confirmationWithTitle(this.tr.transform("sure")+this.tr.transform("export_report")+this.tr.transform("\u061f"),()=>{this.pdfServiceService.printAssets("",this.serial_number,this.selectedMainCat,this.selectedSubcat,this.selectedModel,this.selectedstatus,this.selectedLocation,this.selectedTowers,this.selectedFloors,this.selectedRoom,this.selectedAssigner,this.selectedAssignedTo,this.selectedCreator,this.QR,this.date_from,this.date_to,this.userRecive)})}SearchAsset(){this.offset=0,this.apiService.searchAssets("",this.serial_number,this.selectedMainCat,this.selectedSubcat,this.selectedModel,this.selectedstatus,this.selectedLocation,this.selectedTowers,this.selectedFloors,this.selectedRoom,this.offset,this.limit,this.selectedAssigner,this.selectedAssignedTo,this.selectedCreator,this.QR,this.date_from,this.date_to,this.userRecive).subscribe(e=>{if(null!=this.selectedAttachAssets&&this.selectedAttachAssets.length>0)for(const t of e.assets.assets)for(const e of this.selectedAttachAssets)e.Id==t.Id&&(t.selectedAttach=!0);this.assets=e.assets.assets,this.count=e.assets.count,0==e.assets.assets.length&&this.toast.error(this.tr.transform("no_search_data"))},e=>{console.log(e)})}SearchAssetPage(e){this.offset=e,this.apiService.searchAssets("",this.serial_number,this.selectedMainCat,this.selectedSubcat,this.selectedModel,this.selectedstatus,this.selectedLocation,this.selectedTowers,this.selectedFloors,this.selectedRoom,this.offset,this.limit,this.selectedAssigner,this.selectedAssignedTo,this.selectedCreator,this.QR,this.date_from,this.date_to,this.userRecive).subscribe(e=>{if(null!=this.selectedAttachAssets&&this.selectedAttachAssets.length>0)for(const t of e.assets.assets)for(const e of this.selectedAttachAssets)e.Id==t.Id&&(t.selectedAttach=!0);this.assets=e.assets.assets,this.count=e.assets.count},e=>{})}ClearAll(){this.selectedMainCat="",this.selectedstatus="",this.selectedSubcat="",this.selectedModel="",this.selectedLocation="",this.selectedTowers="",this.selectedFloors="",this.selectedRoom="",this.serial_number="",this.electronic_id="",this.selectedAssigner=null,this.selectedAssignedTo=null,this.userRecive="0",this.selectedCreator=null,this.date_from=null,this.date_to=null}deleteAsset(e,t){this.alertService.deleteMessage(()=>{this.apiService.deleteAsset(e.Id).subscribe(e=>{this.alertService.SuccesMessage(),this.assets.splice(t,1),this.selectedAttachAssets=[]},e=>{})})}printeAsset(e,t){}checboxAssaing(e){e.checkForEmp=!e.checkForEmp}changeStatusToMissing(e,t){const r=new Z;r.Id=e.Id,this.alertService.confirmationWithTitle(this.tr.transform("sure")+this.tr.transform("change_status_to_missing")+this.tr.transform("\u061f"),()=>{r.AssetStatusId=4,this.apiService.updateAsset(r,null).subscribe(e=>{this.assets[t]=e.asset,this.alertService.SuccesMessage()},e=>{})})}changeStatusToCorrupted(e,t){const r=new Z;r.Id=e.Id,this.alertService.confirmationWithTitle(this.tr.transform("sure")+this.tr.transform("change_status_to_corrupted")+this.tr.transform("\u061f"),()=>{r.AssetStatusId=3,this.apiService.updateAsset(r,null).subscribe(e=>{this.assets[t]=e.asset,this.alertService.SuccesMessage()},e=>{})})}usedBefore(e,t){const r=new Z;r.Id=e.Id,this.alertService.confirmationWithTitle(this.tr.transform("sure")+this.tr.transform("used_before")+this.tr.transform("\u061f"),()=>{r.AssetStatusId=3,this.apiService.updateAsset(r,null).subscribe(e=>{this.assets[t]=e.asset,this.alertService.SuccesMessage()},e=>{})})}pullAsset(e,t){this.alertService.confirmationWithTitle(this.tr.transform("sure")+this.tr.transform("pull_asset")+this.tr.transform("\u061f"),()=>{this.apiService.pullAsset(e.Id,e.EmployeeId).subscribe(e=>{this.assets[t]=e.asset,this.alertService.SuccesMessage()},e=>{})})}showFollowItem(e){this.followasset.showModel(e)}getAssigners(){this.apiService.getAssigners().subscribe(e=>{this.assigners=e.assigners},e=>{console.log(e.error)})}getAttachedName(e){return 1==e?this.tr.transform("Yes"):0==e?this.tr.transform("No"):""}getAssignedTo(){this.apiService.getAssignedTo().subscribe(e=>{this.assignedTo=e.assignedTo},e=>{console.log(e.error)})}};he([Object(s.ViewChild)("addcomponent"),ue("design:type",ae)],fe.prototype,"addcomponent",void 0),he([Object(s.ViewChild)("followasset"),ue("design:type",pe)],fe.prototype,"followasset",void 0),fe=he([Object(s.Component)({selector:"app-salesmen",template:r("wArP"),styles:[r("gXcV")]}),ue("design:paramtypes",[d,T,F,R,b,z.ToastsManager,ce])],fe);var ge=r("Gvdl"),be=r("/AE3"),ve=this&&this.__decorate||function(e,t,r,s){var n,a=arguments.length,i=a<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(i=(a<3?n(i):a>3?n(t,r,i):n(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},ye=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let we=class{constructor(e,t){this.authGuard=e,this.httpClient=t}getMainCategory(){return this.httpClient.get(m.MAIN_CATEGORIES)}addMainCat(e,t,r,s){return this.httpClient.post(m.MAIN_CATEGORIES,{NameAr:e,NameEn:t,DescriptionEn:r,DescriptionAr:s})}updateMainCategory(e,t){return this.httpClient.put(m.MAIN_CATEGORIES+"/"+t,e)}deleteCat(e){return this.httpClient.delete(m.MAIN_CATEGORIES+"/"+e)}};we=ve([Object(s.Injectable)(),ye("design:paramtypes",[u,x.b])],we);var _e=this&&this.__decorate||function(e,t,r,s){var n,a=arguments.length,i=a<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(i=(a<3?n(i):a>3?n(t,r,i):n(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},Ie=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let Se=class{constructor(e,t,r,s,n,a){this._commondata=e,this.apiService=t,this.dialogService=r,this.translate=s,this.auth1=n,this.pdfServiceService=a,this.loadingIndicator=!0,this.columns=[],this.locations=[],this.allLocations=[],this.addUpdateLocation={NameAr:"",NameEn:"",DescriptionAr:"",DescriptionEn:"",rowIndex:0,id:0,submit:!1},this.tr=new C(s),setTimeout(()=>{this.loadingIndicator=!1},1500)}ngOnInit(){this._commondata.setExpandDiv("Table"),setTimeout(e=>this._commondata.showLoader(!1),200),this.columns=[{prop:"Id",name:"#"},{prop:"NameAr",name:this.tr.transform("arabic_name")},{prop:"NameEn",name:this.tr.transform("english_name")},{prop:"Id",name:this.tr.transform("edit"),cellTemplate:this.editTemplate},{prop:"Id",name:this.tr.transform("delete"),cellTemplate:this.deleteTemplate}],1!=this.auth1.getUser().role.Id&&this.columns.splice(this.columns.length-1,1),this.loadDepartment()}printExcel(){this.pdfServiceService.printMainCat(this.locations)}filterLocations(e){const t=e.data;null!=t?ge.Observable.from(this.allLocations).pipe(Object(be.filter)(e=>e.NameAr.indexOf(t)>-1||e.NameEn.indexOf(t)>-1)).toArray().subscribe(e=>{this.locations=e}):this.locations=this.allLocations}editLocation(e){const t=this.locations[e];this.addUpdateLocation={NameAr:t.NameAr,NameEn:t.NameEn,DescriptionAr:t.DescriptionAr,DescriptionEn:t.DescriptionEn,rowIndex:e,id:t.Id,submit:!1},window.scrollTo(0,0)}deleteLocation(e){const t=this.locations[e];this.dialogService.deleteMessage(()=>{this.apiService.deleteCat(t.Id).subscribe(t=>{this.allLocations.splice(e,1),this.locations=[...this.allLocations],this.dialogService.SuccesMessage()},e=>{console.log(e)})})}getDefaultLocation(){return{NameAr:"",NameEn:"",DescriptionAr:"",DescriptionEn:"",rowIndex:0,id:0,submit:!1}}formSubmit(e){this.addUpdateLocation.submit=!0,e.valid&&(0==this.addUpdateLocation.id?this.apiService.addMainCat(this.addUpdateLocation.NameAr,this.addUpdateLocation.NameEn,this.addUpdateLocation.DescriptionEn,this.addUpdateLocation.DescriptionAr).subscribe(e=>{this.allLocations.push(e.main_category),this.locations=[...this.allLocations],this.addUpdateLocation=this.getDefaultLocation(),this.dialogService.SuccesMessage()},e=>{console.error(e)}):this.apiService.updateMainCategory(this.addUpdateLocation,this.addUpdateLocation.id).subscribe(e=>{this.allLocations[this.addUpdateLocation.rowIndex]=e.main_category,this.locations=[...this.allLocations],this.addUpdateLocation=this.getDefaultLocation()},e=>{console.error(e)}))}resetForm(){this.addUpdateLocation=this.getDefaultLocation()}loadDepartment(){this.apiService.getMainCategory().subscribe(e=>{this.locations=e.main_categories,this.allLocations=e.main_categories},e=>{console.log(e)})}};_e([Object(s.ViewChild)("editTemplate"),Ie("design:type",s.TemplateRef)],Se.prototype,"editTemplate",void 0),_e([Object(s.ViewChild)("deleteTemplate"),Ie("design:type",s.TemplateRef)],Se.prototype,"deleteTemplate",void 0),Se=_e([Object(s.Component)({selector:"app-maincats",template:r("YdQc"),styles:[r("MVQA")]}),Ie("design:paramtypes",[d,we,F,R,u,ce])],Se);var xe=this&&this.__decorate||function(e,t,r,s){var n,a=arguments.length,i=a<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(i=(a<3?n(i):a>3?n(t,r,i):n(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},Ae=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let je=class{constructor(e,t){this.authGuard=e,this.httpClient=t}getNationalities(){return this.httpClient.get(m.CATEGORIES)}addNationality(e){return this.httpClient.post(m.CATEGORIES,e)}updateNationality(e,t){return this.httpClient.put(m.CATEGORIES+"/"+t,e)}deleteNationality(e){return this.httpClient.delete(m.CATEGORIES+"/"+e)}};je=xe([Object(s.Injectable)(),Ae("design:paramtypes",[u,x.b])],je);var Te=this&&this.__decorate||function(e,t,r,s){var n,a=arguments.length,i=a<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(i=(a<3?n(i):a>3?n(t,r,i):n(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},Ne=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let Ee=class{constructor(e,t,r,s,n,a,i,o,l){this._commondata=e,this.apiService=t,this.translateService=r,this.toastService=s,this.dialogService=n,this.auth1=i,this.pdfServiceService=o,this.translate=l,this.columns=[],this.towers=[],this.allTowers=[],this.selectedSubcat="",a.getMainCategory().subscribe(e=>{this.locations=e.main_categories}),this.addUpdateTower=this.getDefaultTower(),this.tr=new C(l)}printExcel(){this.pdfServiceService.printSubCat(this.allTowers)}ngOnInit(){this._commondata.setExpandDiv("Table"),setTimeout(e=>this._commondata.showLoader(!1),200),this.columns=[{prop:"Id",name:"#"},{prop:"NameAr",name:this.tr.transform("arabic_name")},{prop:"NameEn",name:this.tr.transform("english_name")},{prop:"main_category.NameEn",name:this.tr.transform("main_department")},{prop:"Id",name:this.tr.transform("edit"),cellTemplate:this.editTemplate},{prop:"Id",name:this.tr.transform("delete"),cellTemplate:this.deleteTemplate}],"ar"==m.LANG?this.columns[3]={prop:"main_category.NameAr",name:this.tr.transform("main_department")}:this.columns[3]={prop:"main_category.NameEn",name:this.tr.transform("main_department")},1!=this.auth1.getUser().role.Id&&this.columns.splice(this.columns.length-1,1),this.loadBuildings()}loadBuildings(){this.apiService.getNationalities().subscribe(e=>{this.towers=e.categories,this.allTowers=e.categories},e=>{console.log(e)})}filterBuildings(e){const t=e.data;null==t?this.towers=[...this.allTowers]:ge.Observable.from(this.allTowers).pipe(Object(be.filter)(e=>e.NameAr.indexOf(t)>-1||e.NameEn.indexOf(t)>-1||e.NameAr.indexOf(t)>-1||e.NameEn.indexOf(t)>-1)).toArray().subscribe(e=>{this.towers=e})}clearForm(){this.addUpdateTower=this.getDefaultTower()}getDefaultTower(){return this.selectedSubcat="",{id:0,rowIndex:-1,LocationId:"",NameAr:"",NameEn:"",DescriptionAr:"",DescriptionEn:"",submitForm:!1}}formSubmit(e){this.addUpdateTower.submitForm=!0,e.valid&&(0==this.addUpdateTower.id?this.apiService.addNationality({NameAr:this.addUpdateTower.NameAr,NameEn:this.addUpdateTower.NameEn,MainCategoryId:Number(this.selectedSubcat),DescriptionAr:this.addUpdateTower.DescriptionAr,DescriptionEn:this.addUpdateTower.DescriptionEn}).subscribe(e=>{this.addUpdateTower=this.getDefaultTower(),this.allTowers.push(e.category),this.towers=[...this.allTowers],this.dialogService.SuccesMessage()},e=>{console.error(e)}):this.apiService.updateNationality({NameAr:this.addUpdateTower.NameAr,NameEn:this.addUpdateTower.NameEn,MainCategoryId:Number(this.selectedSubcat),DescriptionAr:this.addUpdateTower.DescriptionAr,DescriptionEn:this.addUpdateTower.DescriptionEn},this.addUpdateTower.id).subscribe(e=>{this.allTowers[this.addUpdateTower.rowIndex]=e.category,this.towers=[...this.allTowers],this.dialogService.SuccesMessage(),this.addUpdateTower=this.getDefaultTower()},e=>{console.error(e)}))}editTower(e){const t=this.towers[e];this.addUpdateTower.rowIndex=e,this.addUpdateTower.id=t.Id,this.selectedSubcat=""+t.MainCategoryId,this.addUpdateTower.NameEn=t.NameEn,this.addUpdateTower.NameAr=t.NameAr,this.addUpdateTower.DescriptionEn=t.DescriptionEn,this.addUpdateTower.DescriptionAr=t.DescriptionAr,window.scrollTo(0,0)}deleteTower(e){this.dialogService.deleteMessage(()=>{const t=this.towers[e];this.apiService.deleteNationality(t.Id).subscribe(t=>{this.allTowers.splice(e,1),this.towers=[...this.allTowers],this.dialogService.SuccesMessage()},e=>{console.error(e)})})}};Te([Object(s.ViewChild)("editTemplate"),Ne("design:type",s.TemplateRef)],Ee.prototype,"editTemplate",void 0),Te([Object(s.ViewChild)("deleteTemplate"),Ne("design:type",s.TemplateRef)],Ee.prototype,"deleteTemplate",void 0),Ee=Te([Object(s.Component)({selector:"app-subcat",template:r("RwMf"),styles:[r("yaDV")]}),Ne("design:paramtypes",[d,je,R,z.ToastsManager,F,we,u,ce,R])],Ee);var Re=this&&this.__decorate||function(e,t,r,s){var n,a=arguments.length,i=a<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(i=(a<3?n(i):a>3?n(t,r,i):n(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},Oe=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let Me=class{constructor(e,t){this.authGuard=e,this.httpClient=t}addAuthHeader(){const e=this.authGuard.getUser();let t=null;t=null!=e?e.token:"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjEsImlzcyI6Imh0dHA6Ly9sb2NhbGhvc3QvQXNzZXRUcmFja2luZy9wdWJsaWMvaW5kZXgucGhwL3dlYl9hcGkvdjEvdXNlcnMvbG9naW4iLCJpYXQiOjE1NDM1Nzc0MDUsImV4cCI6MTU1OTEyOTQwNSwibmJmIjoxNTQzNTc3NDA1LCJqdGkiOiJ5M240cjlxc3Nld0hxaDFjIn0.l_s2JQPO5PfRKSEhkX-48TGm3adj_3Ogl-QCHFnNsFg";let r=new x.d;return r=r.append("Authorization","Bearer "+t)}getNationalities(){return this.httpClient.get(m.MODEL,{headers:this.addAuthHeader()})}addNationality(e){return this.httpClient.post(m.MODEL,e,{headers:this.addAuthHeader()})}updateNationality(e,t){return this.httpClient.put(m.MODEL+"/"+t,e,{headers:this.addAuthHeader()})}deleteNationality(e){return this.httpClient.delete(m.MODEL+"/"+e,{headers:this.addAuthHeader()})}};Me=Re([Object(s.Injectable)(),Oe("design:paramtypes",[u,x.b])],Me);var Ce=this&&this.__decorate||function(e,t,r,s){var n,a=arguments.length,i=a<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(i=(a<3?n(i):a>3?n(t,r,i):n(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},Le=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let De=class{constructor(e,t,r,s,n,a,i,o,l,c){this._commondata=e,this.apiService=t,this.apiService1=r,this.apiService2=s,this.translateService=n,this.toastService=a,this.dialogService=i,this.pdfServiceService=o,this.translate=l,this.auth1=c,this.columns=[],this.towers=[],this.allTowers=[],this.selectedSubcat="",this.selectedMaincat="",this.selectedSubcatSearch="",this.selectedMaincatSearch="",s.getMainCategory().subscribe(e=>{this.locations=e.main_categories}),t.getNationalities().subscribe(e=>{this.towers=e.models,this.allTowers=e.models}),this.addUpdateTower=this.getDefaultTower(),this.tr=new C(l)}getAllSubCat(e){""!=this.selectedMaincat?this.apiService1.getMainCategoryCategories(this.selectedMaincat).subscribe(e=>{this.subcat=e.categories},e=>{}):this.subcat=[]}getAllModelSearch(e){""!=this.selectedSubcatSearch&&null!=this.selectedSubcatSearch?ge.Observable.from(this.allTowers).pipe(Object(be.filter)(e=>e.category.Id==Number(this.selectedSubcatSearch))).toArray().subscribe(e=>{this.towers=e}):this.getAllSubCatSearch(null)}getAllSubCatSearch(e){if(""==this.selectedMaincatSearch)return this.subcatSearch=[],void(this.towers=[...this.allTowers]);ge.Observable.from(this.allTowers).pipe(Object(be.filter)(e=>e.category.main_category.Id==Number(this.selectedMaincatSearch))).toArray().subscribe(e=>{this.towers=e}),this.apiService1.getMainCategoryCategories(this.selectedMaincatSearch).subscribe(e=>{this.subcatSearch=e.categories},e=>{})}ngOnInit(){this._commondata.setExpandDiv("Table"),setTimeout(e=>this._commondata.showLoader(!1),200),this.columns=[{prop:"Id",name:"#"},{prop:"NameAr",name:this.tr.transform("arabic_name")},{prop:"NameEn",name:this.tr.transform("english_name")},{prop:"category.NameEn",name:this.tr.transform("category")},{prop:"main_departments.NameEn",name:this.tr.transform("main_departments")},{prop:"Id",name:this.tr.transform("edit"),cellTemplate:this.editTemplate},{prop:"Id",name:this.tr.transform("delete"),cellTemplate:this.deleteTemplate}],"ar"==m.LANG?(this.columns[3]={prop:"category.NameAr",name:this.tr.transform("category")},this.columns[4]={prop:"category.main_category.NameAr",name:this.tr.transform("main_departments")}):(this.columns[3]={prop:"category.NameEn",name:this.tr.transform("category")},this.columns[4]={prop:"category.main_category.NameEn",name:this.tr.transform("main_departments")}),1!=this.auth1.getUser().role.Id&&this.columns.splice(this.columns.length-1,1),this.loadBuildings()}printExcel(){this.pdfServiceService.printModel(this.allTowers)}loadBuildings(){this.apiService.getNationalities().subscribe(e=>{this.towers=e.models,this.allTowers=e.models},e=>{console.log(e)})}filterBuildings(e){const t=e.data;null==t||""==t?this.towers=[...this.allTowers]:ge.Observable.from(this.allTowers).pipe(Object(be.filter)(e=>e.NameAr.indexOf(t)>-1||e.NameEn.indexOf(t)>-1||e.NameAr.indexOf(t)>-1||e.NameEn.indexOf(t)>-1)).toArray().subscribe(e=>{this.towers=e})}clearForm(){this.addUpdateTower=this.getDefaultTower()}getDefaultTower(){return this.selectedSubcat="",this.selectedMaincat="",{id:0,rowIndex:-1,LocationId:"",NameAr:"",NameEn:"",DescriptionAr:"",DescriptionEn:"",submitForm:!1}}formSubmit(e){this.addUpdateTower.submitForm=!0,e.valid&&(0==this.addUpdateTower.id?this.apiService.addNationality({NameAr:this.addUpdateTower.NameAr,NameEn:this.addUpdateTower.NameEn,DescriptionAr:this.addUpdateTower.DescriptionAr,DescriptionEn:this.addUpdateTower.DescriptionEn,CategoryId:Number(this.selectedSubcat)}).subscribe(e=>{this.addUpdateTower=this.getDefaultTower(),this.allTowers.push(e.model),this.towers=[...this.allTowers],this.dialogService.SuccesMessage()},e=>{console.error(e)}):this.apiService.updateNationality({NameAr:this.addUpdateTower.NameAr,NameEn:this.addUpdateTower.NameEn,DescriptionAr:this.addUpdateTower.DescriptionAr,DescriptionEn:this.addUpdateTower.DescriptionEn,CategoryId:Number(this.selectedSubcat)},this.addUpdateTower.id).subscribe(e=>{this.allTowers[this.addUpdateTower.rowIndex]=e.model,this.towers=[...this.allTowers],this.dialogService.SuccesMessage(),this.addUpdateTower=this.getDefaultTower()},e=>{console.error(e)}))}editTower(e){const t=this.towers[e];this.addUpdateTower.rowIndex=e,this.addUpdateTower.id=t.Id,this.selectedSubcat=""+t.CategoryId,this.addUpdateTower.NameEn=t.NameEn,this.addUpdateTower.NameAr=t.NameAr,this.addUpdateTower.DescriptionEn=t.DescriptionEn,this.addUpdateTower.DescriptionAr=t.DescriptionAr,this.selectedMaincat=""+t.category.MainCategoryId,this.getAllSubCat(null),window.scrollTo(0,0)}deleteTower(e){this.dialogService.deleteMessage(()=>{const t=this.towers[e];this.apiService.deleteNationality(t.Id).subscribe(t=>{this.allTowers.splice(e,1),this.towers=[...this.allTowers],this.dialogService.SuccesMessage()},e=>{console.error(e)})})}};Ce([Object(s.ViewChild)("editTemplate"),Le("design:type",s.TemplateRef)],De.prototype,"editTemplate",void 0),Ce([Object(s.ViewChild)("deleteTemplate"),Le("design:type",s.TemplateRef)],De.prototype,"deleteTemplate",void 0),De=Ce([Object(s.Component)({selector:"app-models",template:r("DUPo"),styles:[r("kLQg")]}),Le("design:paramtypes",[d,Me,T,we,R,z.ToastsManager,F,ce,R,u])],De);var Fe=this&&this.__decorate||function(e,t,r,s){var n,a=arguments.length,i=a<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(i=(a<3?n(i):a>3?n(t,r,i):n(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},ke=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let Ue=class{constructor(e,t){this.authGuard=e,this.httpClient=t}getNationalities(){return this.httpClient.get(m.ROOMS)}addNationality(e){return this.httpClient.post(m.ROOMS,e)}updateNationality(e,t){return this.httpClient.put(m.ROOMS+"/"+t,e)}deleteNationality(e){return this.httpClient.delete(m.ROOMS+"/"+e)}};Ue=Fe([Object(s.Injectable)(),ke("design:paramtypes",[u,x.b])],Ue);var Pe=this&&this.__decorate||function(e,t,r,s){var n,a=arguments.length,i=a<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(i=(a<3?n(i):a>3?n(t,r,i):n(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},qe=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let Be=class{constructor(e,t,r,s,n,a,i,o,l,c){this._commondata=e,this.apiService=t,this.apiService1=r,this.apiService2=s,this.translateService=n,this.toastService=a,this.dialogService=i,this.auth1=o,this.pdfServiceService=l,this.translate=c,this.columns=[],this.towers=[],this.allTowers=[],this.selectedSubcat="",this.selectedTower="",this.selectedMaincat="",r.getLocations().subscribe(e=>{this.locations=e.locations}),this.addUpdateTower=this.getDefaultTower(),this.tr=new C(c)}printExcel(){this.pdfServiceService.printRoom(this.allTowers)}getAllSubCat(e){""!=this.selectedMaincat?this.apiService1.getLocationTowers(this.selectedMaincat).subscribe(e=>{this.subcat=e.towers},e=>{}):this.subcat=[]}getBuilder(e){""!=this.selectedSubcat?this.apiService1.getTowerFloors(this.selectedSubcat).subscribe(e=>{this.Floorlist=e.floors},e=>{}):this.subcat=[]}ngOnInit(){this._commondata.setExpandDiv("Table"),setTimeout(e=>this._commondata.showLoader(!1),200),this.columns=[{prop:"Id",name:"#"},{prop:"NameAr",name:this.tr.transform("arabic_name")},{prop:"NameEn",name:this.tr.transform("english_name")},{prop:"category.NameEn",name:this.tr.transform("floor")},{prop:"category.NameEn",name:this.tr.transform("building")},{prop:"category.NameEn",name:this.tr.transform("location")},{prop:"Id",name:this.tr.transform("edit"),cellTemplate:this.editTemplate},{prop:"Id",name:this.tr.transform("delete"),cellTemplate:this.deleteTemplate}],"ar"==m.LANG?(this.columns[3]={prop:"floor.NameAr",name:this.tr.transform("floor")},this.columns[4]={prop:"floor.tower.NameAr",name:this.tr.transform("building")},this.columns[5]={prop:"floor.tower.location.NameAr",name:this.tr.transform("location")}):(this.columns[3]={prop:"floor.NameEn",name:this.tr.transform("floor")},this.columns[4]={prop:"floor.tower.NameEn",name:this.tr.transform("building")},this.columns[5]={prop:"floor.tower.location.NameEn",name:this.tr.transform("location")}),1!=this.auth1.getUser().role.Id&&this.columns.splice(this.columns.length-1,1),this.loadBuildings()}loadBuildings(){this.apiService.getNationalities().subscribe(e=>{this.towers=e.rooms,this.allTowers=e.rooms},e=>{console.log(e)})}filterBuildings(e){const t=e.data;null==t?this.towers=[...this.allTowers]:ge.Observable.from(this.allTowers).pipe(Object(be.filter)(e=>e.NameAr.indexOf(t)>-1||e.NameEn.indexOf(t)>-1||e.NameAr.indexOf(t)>-1||e.NameEn.indexOf(t)>-1)).toArray().subscribe(e=>{this.towers=e})}clearForm(){this.addUpdateTower=this.getDefaultTower()}getDefaultTower(){return this.selectedSubcat="",this.selectedMaincat="",this.selectedTower="",{id:0,rowIndex:-1,LocationId:"",NameAr:"",NameEn:"",submitForm:!1}}formSubmit(e){this.addUpdateTower.submitForm=!0,e.valid&&(0==this.addUpdateTower.id?this.apiService.addNationality({NameAr:this.addUpdateTower.NameAr,NameEn:this.addUpdateTower.NameEn,FloorId:Number(this.selectedTower)}).subscribe(e=>{this.addUpdateTower=this.getDefaultTower(),this.allTowers.push(e.rooms),this.towers=[...this.allTowers],this.dialogService.SuccesMessage()},e=>{console.error(e)}):this.apiService.updateNationality({NameAr:this.addUpdateTower.NameAr,NameEn:this.addUpdateTower.NameEn,FloorId:Number(this.selectedTower)},this.addUpdateTower.id).subscribe(e=>{this.allTowers[this.addUpdateTower.rowIndex]=e.rooms,this.towers=[...this.allTowers],this.dialogService.SuccesMessage(),this.addUpdateTower=this.getDefaultTower()},e=>{console.error(e)}))}editTower(e){const t=this.towers[e];this.addUpdateTower.rowIndex=e,this.addUpdateTower.id=t.Id,this.selectedSubcat=""+t.floor.TowerId,this.selectedTower=""+t.FloorId,this.addUpdateTower.NameEn=t.NameEn,this.addUpdateTower.NameAr=t.NameAr,this.selectedMaincat=""+t.floor.tower.LocationId,this.getAllSubCat(null),this.getBuilder(null),window.scrollTo(0,0)}deleteTower(e){this.dialogService.deleteMessage(()=>{const t=this.towers[e];this.apiService.deleteNationality(t.Id).subscribe(t=>{this.allTowers.splice(e,1),this.towers=[...this.allTowers],this.dialogService.SuccesMessage()},e=>{console.error(e)})})}};Pe([Object(s.ViewChild)("editTemplate"),qe("design:type",s.TemplateRef)],Be.prototype,"editTemplate",void 0),Pe([Object(s.ViewChild)("deleteTemplate"),qe("design:type",s.TemplateRef)],Be.prototype,"deleteTemplate",void 0),Be=Pe([Object(s.Component)({selector:"app-office",template:r("iu4U"),styles:[r("c4Ja")]}),qe("design:paramtypes",[d,Ue,T,we,R,z.ToastsManager,F,u,ce,R])],Be);var He=this&&this.__decorate||function(e,t,r,s){var n,a=arguments.length,i=a<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(i=(a<3?n(i):a>3?n(t,r,i):n(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},Ge=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let ze=class{constructor(e,t){this.authGuard=e,this.httpClient=t}getNationalities(){return this.httpClient.get(m.FLOORS)}addNationality(e){return this.httpClient.post(m.FLOORS,e)}updateNationality(e,t){return this.httpClient.put(m.FLOORS+"/"+t,e)}deleteNationality(e){return this.httpClient.delete(m.FLOORS+"/"+e)}};ze=He([Object(s.Injectable)(),Ge("design:paramtypes",[u,x.b])],ze);var Ve=this&&this.__decorate||function(e,t,r,s){var n,a=arguments.length,i=a<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(i=(a<3?n(i):a>3?n(t,r,i):n(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},Je=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let Ke=class{constructor(e,t,r,s,n,a,i,o,l,c){this._commondata=e,this.apiService=t,this.apiService1=r,this.apiService2=s,this.translateService=n,this.toastService=a,this.dialogService=i,this.auth1=o,this.pdfServiceService=l,this.translate=c,this.columns=[],this.towers=[],this.allTowers=[],this.selectedSubcat="",this.selectedMaincat="",r.getLocations().subscribe(e=>{this.locations=e.locations}),t.getNationalities().subscribe(e=>{this.towers=e.floors,this.allTowers=e.floors}),this.addUpdateTower=this.getDefaultTower(),this.tr=new C(c)}printExcel(){this.pdfServiceService.printFloor(this.allTowers)}getAllSubCat(e){""!=this.selectedMaincat?this.apiService1.getLocationTowers(this.selectedMaincat).subscribe(e=>{this.subcat=e.towers},e=>{}):this.subcat=[]}ngOnInit(){this._commondata.setExpandDiv("Table"),setTimeout(e=>this._commondata.showLoader(!1),200),this.columns=[{prop:"Id",name:"#"},{prop:"NameAr",name:this.tr.transform("arabic_name")},{prop:"NameEn",name:this.tr.transform("english_name")},{prop:"category.NameEn",name:this.tr.transform("category")},{prop:"category.NameEn",name:this.tr.transform("location")},{prop:"Id",name:this.tr.transform("edit"),cellTemplate:this.editTemplate},{prop:"Id",name:this.tr.transform("delete"),cellTemplate:this.deleteTemplate}],"ar"==m.LANG?(this.columns[3]={prop:"tower.NameAr",name:this.tr.transform("buildings")},this.columns[4]={prop:"tower.location.NameAr",name:this.tr.transform("location")}):(this.columns[3]={prop:"tower.NameEn",name:this.tr.transform("buildings")},this.columns[4]={prop:"tower.location.NameEn",name:this.tr.transform("location")}),1!=this.auth1.getUser().role.Id&&this.columns.splice(this.columns.length-1,1),this.loadBuildings()}loadBuildings(){this.apiService.getNationalities().subscribe(e=>{this.towers=e.floors,this.allTowers=e.floors},e=>{console.log(e)})}filterBuildings(e){const t=e.data;null==t?this.towers=[...this.allTowers]:ge.Observable.from(this.allTowers).pipe(Object(be.filter)(e=>e.NameAr.indexOf(t)>-1||e.NameEn.indexOf(t)>-1||e.NameAr.indexOf(t)>-1||e.NameEn.indexOf(t)>-1)).toArray().subscribe(e=>{this.towers=e})}clearForm(){this.addUpdateTower=this.getDefaultTower()}getDefaultTower(){return this.selectedSubcat="",this.selectedMaincat="",{id:0,rowIndex:-1,LocationId:"",NameAr:"",NameEn:"",submitForm:!1}}formSubmit(e){this.addUpdateTower.submitForm=!0,e.valid&&(0==this.addUpdateTower.id?this.apiService.addNationality({NameAr:this.addUpdateTower.NameAr,NameEn:this.addUpdateTower.NameEn,TowerId:Number(this.selectedSubcat)}).subscribe(e=>{this.addUpdateTower=this.getDefaultTower(),this.allTowers.push(e.floors),this.towers=[...this.allTowers],this.dialogService.SuccesMessage()},e=>{console.error(e)}):this.apiService.updateNationality({NameAr:this.addUpdateTower.NameAr,NameEn:this.addUpdateTower.NameEn,TowerId:Number(this.selectedSubcat)},this.addUpdateTower.id).subscribe(e=>{this.allTowers[this.addUpdateTower.rowIndex]=e.floors,this.towers=[...this.allTowers],this.dialogService.SuccesMessage(),this.addUpdateTower=this.getDefaultTower()},e=>{console.error(e)}))}editTower(e){const t=this.towers[e];this.addUpdateTower.rowIndex=e,this.addUpdateTower.id=t.Id,this.selectedSubcat=""+t.TowerId,this.addUpdateTower.NameEn=t.NameEn,this.addUpdateTower.NameAr=t.NameAr,this.selectedMaincat=""+t.tower.LocationId,this.getAllSubCat(null),window.scrollTo(0,0)}deleteTower(e){this.dialogService.deleteMessage(()=>{const t=this.towers[e];this.apiService.deleteNationality(t.Id).subscribe(t=>{this.allTowers.splice(e,1),this.towers=[...this.allTowers],this.dialogService.SuccesMessage()},e=>{console.error(e)})})}};Ve([Object(s.ViewChild)("editTemplate"),Je("design:type",s.TemplateRef)],Ke.prototype,"editTemplate",void 0),Ve([Object(s.ViewChild)("deleteTemplate"),Je("design:type",s.TemplateRef)],Ke.prototype,"deleteTemplate",void 0),Ke=Ve([Object(s.Component)({selector:"app-roofs",template:r("UrQ3"),styles:[r("oliW")]}),Je("design:paramtypes",[d,ze,T,we,R,z.ToastsManager,F,u,ce,R])],Ke);var Qe=this&&this.__decorate||function(e,t,r,s){var n,a=arguments.length,i=a<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(i=(a<3?n(i):a>3?n(t,r,i):n(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},We=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let Ye=class{constructor(e,t,r,s,n,a,i,o){this._commondata=e,this.apiService=t,this.translateService=r,this.toastService=s,this.dialogService=n,this.auth1=a,this.pdfServiceService=i,this.translate=o,this.columns=[],this.towers=[],this.allTowers=[],this.selectedSubcat="",this.apiService.getLocations().subscribe(e=>{this.locations=e.locations}),this.addUpdateTower=this.getDefaultTower(),this.tr=new C(o)}ngOnInit(){this._commondata.setExpandDiv("Table"),setTimeout(e=>this._commondata.showLoader(!1),200),this.columns=[{prop:"Id",name:"#"},{prop:"NameAr",name:this.tr.transform("arabic_name")},{prop:"NameEn",name:this.tr.transform("english_name")},{prop:"location.NameAr",name:this.tr.transform("location")},{prop:"Id",name:this.tr.transform("edit"),cellTemplate:this.editTemplate},{prop:"Id",name:this.tr.transform("delete"),cellTemplate:this.deleteTemplate}],"ar"==m.LANG?this.columns[3]={prop:"location.NameAr",name:this.tr.transform("location")}:this.columns[3]={prop:"location.NameEn",name:this.tr.transform("location")},1!=this.auth1.getUser().role.Id&&this.columns.splice(this.columns.length-1,1),this.loadBuildings()}loadBuildings(){this.apiService.getTowers().subscribe(e=>{this.towers=e.towers,this.allTowers=e.towers},e=>{console.log(e)})}filterBuildings(e){const t=e.data;null==t?this.towers=[...this.allTowers]:ge.Observable.from(this.allTowers).pipe(Object(be.filter)(e=>e.NameAr.indexOf(t)>-1||e.NameEn.indexOf(t)>-1||e.NameAr.indexOf(t)>-1||e.NameEn.indexOf(t)>-1)).toArray().subscribe(e=>{this.towers=e})}clearForm(){this.addUpdateTower=this.getDefaultTower()}getDefaultTower(){return this.selectedSubcat="",{id:0,rowIndex:-1,LocationId:"",NameAr:"",NameEn:"",submitForm:!1}}formSubmit(e){this.addUpdateTower.submitForm=!0,e.valid&&(0==this.addUpdateTower.id?this.apiService.addTower({NameAr:this.addUpdateTower.NameAr,NameEn:this.addUpdateTower.NameEn,LocationId:Number(this.selectedSubcat)}).subscribe(e=>{this.addUpdateTower=this.getDefaultTower(),this.allTowers.push(e.tower),this.towers=[...this.allTowers],this.dialogService.SuccesMessage()},e=>{console.error(e)}):this.apiService.updateTower({NameAr:this.addUpdateTower.NameAr,NameEn:this.addUpdateTower.NameEn,LocationId:Number(this.selectedSubcat)},this.addUpdateTower.id).subscribe(e=>{this.allTowers[this.addUpdateTower.rowIndex]=e.tower,this.towers=[...this.allTowers],this.dialogService.SuccesMessage(),this.addUpdateTower=this.getDefaultTower()},e=>{console.error(e)}))}editTower(e){const t=this.towers[e];this.addUpdateTower.rowIndex=e,this.addUpdateTower.id=t.Id,this.selectedSubcat=""+t.LocationId,this.addUpdateTower.NameEn=t.NameEn,this.addUpdateTower.NameAr=t.NameAr,window.scrollTo(0,0)}printExcel(){this.pdfServiceService.printBuild(this.allTowers)}deleteTower(e){this.dialogService.deleteMessage(()=>{const t=this.towers[e];this.apiService.deleteTower(t.Id).subscribe(t=>{this.allTowers.splice(e,1),this.towers=[...this.allTowers],this.dialogService.SuccesMessage()},e=>{console.error(e)})})}};Qe([Object(s.ViewChild)("editTemplate"),We("design:type",s.TemplateRef)],Ye.prototype,"editTemplate",void 0),Qe([Object(s.ViewChild)("deleteTemplate"),We("design:type",s.TemplateRef)],Ye.prototype,"deleteTemplate",void 0),Ye=Qe([Object(s.Component)({selector:"app-builds",template:r("HTgR"),styles:[r("4nOt")]}),We("design:paramtypes",[d,T,R,z.ToastsManager,F,u,ce,R])],Ye);var $e=this&&this.__decorate||function(e,t,r,s){var n,a=arguments.length,i=a<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(i=(a<3?n(i):a>3?n(t,r,i):n(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},Xe=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let Ze=class{constructor(e,t,r,s,n,a){this._commondata=e,this.apiService=t,this.dialogService=r,this.translate=s,this.auth1=n,this.pdfServiceService=a,this.loadingIndicator=!0,this.columns=[],this.locations=[],this.allLocations=[],this.addUpdateLocation={NameAr:"",NameEn:"",rowIndex:0,id:0,submit:!1},this.search="",this.tr=new C(s),setTimeout(()=>{this.loadingIndicator=!1},1500)}printExcel(){this.pdfServiceService.printDepartment(this.locations)}ngOnInit(){this._commondata.setExpandDiv("Table"),setTimeout(e=>this._commondata.showLoader(!1),200),this.columns=[{prop:"Id",name:"#"},{prop:"NameAr",name:this.tr.transform("arabic_name")},{prop:"NameEn",name:this.tr.transform("english_name")},{prop:"Id",name:this.tr.transform("edit"),cellTemplate:this.editTemplate},{prop:"Id",name:this.tr.transform("delete"),cellTemplate:this.deleteTemplate}],1!=this.auth1.getUser().role.Id&&this.columns.splice(this.columns.length-1,1),this.loadDepartment()}filterLocations(e){const t=this.search;null==t?this.locations=[...this.allLocations]:ge.Observable.from(this.allLocations).pipe(Object(be.filter)(e=>e.NameAr.indexOf(t)>-1||e.NameEn.indexOf(t)>-1||e.NameAr.indexOf(t)>-1||e.NameEn.indexOf(t)>-1)).toArray().subscribe(e=>{this.locations=e})}editLocation(e){const t=this.locations[e];this.addUpdateLocation={NameAr:t.NameAr,NameEn:t.NameEn,rowIndex:e,id:t.Id,submit:!1},window.scrollTo(0,0)}deleteLocation(e){const t=this.locations[e];this.dialogService.deleteMessage(()=>{this.apiService.deleteLocation(t.Id).subscribe(t=>{this.allLocations.splice(e,1),this.locations=[...this.allLocations],this.dialogService.SuccesMessage()},e=>{console.log(e)})})}getDefaultLocation(){return{NameAr:"",NameEn:"",rowIndex:0,id:0,submit:!1}}formSubmit(e){this.addUpdateLocation.submit=!0,e.valid&&(0==this.addUpdateLocation.id?this.apiService.addDepartment(this.addUpdateLocation.NameAr,this.addUpdateLocation.NameEn).subscribe(e=>{this.allLocations.push(e.department),this.locations=[...this.allLocations],this.addUpdateLocation=this.getDefaultLocation(),this.dialogService.SuccesMessage()},e=>{console.error(e)}):this.apiService.updateDepartment(this.addUpdateLocation,this.addUpdateLocation.id).subscribe(e=>{this.allLocations[this.addUpdateLocation.rowIndex]=e.department,this.locations=[...this.allLocations],this.addUpdateLocation=this.getDefaultLocation()},e=>{console.error(e)}))}resetForm(){this.addUpdateLocation=this.getDefaultLocation()}loadDepartment(){this.apiService.getDepartments().subscribe(e=>{this.locations=e.departments,this.allLocations=e.departments},e=>{console.log(e)})}};$e([Object(s.ViewChild)("editTemplate"),Xe("design:type",s.TemplateRef)],Ze.prototype,"editTemplate",void 0),$e([Object(s.ViewChild)("deleteTemplate"),Xe("design:type",s.TemplateRef)],Ze.prototype,"deleteTemplate",void 0),Ze=$e([Object(s.Component)({selector:"app-empdes",template:r("10Ei"),styles:[r("EiIh")]}),Xe("design:paramtypes",[d,T,F,R,u,ce])],Ze);var et=this&&this.__decorate||function(e,t,r,s){var n,a=arguments.length,i=a<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(i=(a<3?n(i):a>3?n(t,r,i):n(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},tt=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let rt=class{constructor(e,t,r,s,n,a,i){this._commondata=e,this.apiService=t,this.toastService=r,this.dialogService=s,this.translate=n,this.auth1=a,this.pdfServiceService=i,this.loadingIndicator=!0,this.columns=[],this.locations=[],this.allLocations=[],this.addUpdateLocation={NameAr:"",NameEn:"",CityName:"",rowIndex:0,id:0,submit:!1},this.tr=new C(n),setTimeout(()=>{this.loadingIndicator=!1},1500)}printExcel(){this.pdfServiceService.printLocation(this.allLocations)}ngOnInit(){this._commondata.setExpandDiv("Table"),setTimeout(e=>this._commondata.showLoader(!1),200),this.columns=[{prop:"Id",name:"#"},{prop:"NameAr",name:this.tr.transform("arabic_name")},{prop:"NameEn",name:this.tr.transform("english_name")},{prop:"CityName",name:this.tr.transform("city")},{prop:"Id",name:this.tr.transform("edit"),cellTemplate:this.editTemplate},{prop:"Id",name:this.tr.transform("delete"),cellTemplate:this.deleteTemplate}],1!=this.auth1.getUser().role.Id&&this.columns.splice(this.columns.length-1,1),this.loadLocations()}loadLocations(){this.apiService.getLocations().subscribe(e=>{this.locations=e.locations,this.allLocations=this.locations},e=>{console.log(e)})}filterLocations(e){const t=e.data;null!=t?ge.Observable.from(this.allLocations).pipe(Object(be.filter)(e=>e.NameAr.indexOf(t)>-1||e.NameEn.indexOf(t)>-1||e.CityName.indexOf(t)>-1)).toArray().subscribe(e=>{this.locations=e}):this.locations=this.allLocations}formSubmit(e){this.addUpdateLocation.submit=!0,e.valid&&(0==this.addUpdateLocation.id?this.apiService.addLocation(this.addUpdateLocation.NameAr,this.addUpdateLocation.NameEn,this.addUpdateLocation.CityName).subscribe(e=>{this.allLocations.push(e.location),this.locations=[...this.allLocations],this.addUpdateLocation=this.getDefaultLocation(),this.dialogService.SuccesMessage()},e=>{console.error(e)}):this.apiService.updateLocation(this.addUpdateLocation,this.addUpdateLocation.id).subscribe(e=>{this.allLocations[this.addUpdateLocation.rowIndex]=e.location,this.locations=[...this.allLocations],this.addUpdateLocation=this.getDefaultLocation()},e=>{console.error(e)}))}editLocation(e){const t=this.locations[e];this.addUpdateLocation={NameAr:t.NameAr,NameEn:t.NameEn,CityName:t.CityName,rowIndex:e,id:t.Id,submit:!1},window.scrollTo(0,0)}deleteLocation(e){const t=this.locations[e];this.dialogService.deleteMessage(()=>{this.apiService.deleteLocation(t.Id).subscribe(t=>{this.allLocations.splice(e,1),this.locations=[...this.allLocations],this.dialogService.SuccesMessage()},e=>{console.log(e)})})}resetForm(){this.addUpdateLocation=this.getDefaultLocation()}getDefaultLocation(){return{NameAr:"",NameEn:"",CityName:"",rowIndex:0,id:0,submit:!1}}};et([Object(s.ViewChild)("editTemplate"),tt("design:type",s.TemplateRef)],rt.prototype,"editTemplate",void 0),et([Object(s.ViewChild)("deleteTemplate"),tt("design:type",s.TemplateRef)],rt.prototype,"deleteTemplate",void 0),rt=et([Object(s.Component)({selector:"app-locations",template:r("0R0W"),styles:[r("oJNw")]}),tt("design:paramtypes",[d,T,z.ToastsManager,F,R,u,ce])],rt);var st=this&&this.__decorate||function(e,t,r,s){var n,a=arguments.length,i=a<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(i=(a<3?n(i):a>3?n(t,r,i):n(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},nt=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let at=class{constructor(e,t){this.authGuard=e,this.httpClient=t}getJobs(){return this.httpClient.get(m.JOBS)}addNationality(e,t){return this.httpClient.post(m.JOBS,{NameAr:e,NameEn:t})}updateNationality(e,t){return this.httpClient.put(m.JOBS+"/"+t,e)}deleteNationality(e){return this.httpClient.delete(m.JOBS+"/"+e)}};at=st([Object(s.Injectable)(),nt("design:paramtypes",[u,x.b])],at);var it=this&&this.__decorate||function(e,t,r,s){var n,a=arguments.length,i=a<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(i=(a<3?n(i):a>3?n(t,r,i):n(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},ot=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let lt=class{constructor(e,t,r,s,n){this._commondata=e,this.apiService=t,this.dialogService=r,this.translate=s,this.auth1=n,this.loadingIndicator=!0,this.columns=[],this.locations=[],this.allLocations=[],this.addUpdateLocation={NameAr:"",NameEn:"",rowIndex:0,id:0,submit:!1},this.tr=new C(s),setTimeout(()=>{this.loadingIndicator=!1},1500)}ngOnInit(){this._commondata.setExpandDiv("Table"),setTimeout(e=>this._commondata.showLoader(!1),200),this.columns=[{prop:"Id",name:"#"},{prop:"NameAr",name:this.tr.transform("arabic_name")},{prop:"NameEn",name:this.tr.transform("english_name")},{prop:"Id",name:this.tr.transform("edit"),cellTemplate:this.editTemplate},{prop:"Id",name:this.tr.transform("delete"),cellTemplate:this.deleteTemplate}],1!=this.auth1.getUser().role.Id&&this.columns.splice(this.columns.length-1,1),this.loadDepartment()}filterLocations(e){const t=e.data;null!=t?ge.Observable.from(this.allLocations).pipe(Object(be.filter)(e=>e.NameAr.indexOf(t)>-1||e.NameEn.indexOf(t)>-1)).toArray().subscribe(e=>{this.locations=e}):this.locations=this.allLocations}editLocation(e){const t=this.locations[e];this.addUpdateLocation={NameAr:t.NameAr,NameEn:t.NameEn,rowIndex:e,id:t.Id,submit:!1},window.scrollTo(0,0)}deleteLocation(e){const t=this.locations[e];this.dialogService.deleteMessage(()=>{this.apiService.deleteNationality(t.Id).subscribe(t=>{this.allLocations.splice(e,1),this.locations=[...this.allLocations],this.dialogService.SuccesMessage()},e=>{console.log(e)})})}getDefaultLocation(){return{NameAr:"",NameEn:"",rowIndex:0,id:0,submit:!1}}formSubmit(e){this.addUpdateLocation.submit=!0,e.valid&&(0==this.addUpdateLocation.id?this.apiService.addNationality(this.addUpdateLocation.NameAr,this.addUpdateLocation.NameEn).subscribe(e=>{this.allLocations.push(e.job),this.locations=[...this.allLocations],this.addUpdateLocation=this.getDefaultLocation(),this.dialogService.SuccesMessage()},e=>{console.error(e)}):this.apiService.updateNationality(this.addUpdateLocation,this.addUpdateLocation.id).subscribe(e=>{this.allLocations[this.addUpdateLocation.rowIndex]=e.job,this.locations=[...this.allLocations],this.addUpdateLocation=this.getDefaultLocation()},e=>{console.error(e)}))}resetForm(){this.addUpdateLocation=this.getDefaultLocation()}loadDepartment(){this.apiService.getJobs().subscribe(e=>{this.locations=e.jobs,this.allLocations=e.jobs},e=>{console.log(e)})}};it([Object(s.ViewChild)("editTemplate"),ot("design:type",s.TemplateRef)],lt.prototype,"editTemplate",void 0),it([Object(s.ViewChild)("deleteTemplate"),ot("design:type",s.TemplateRef)],lt.prototype,"deleteTemplate",void 0),lt=it([Object(s.Component)({selector:"app-job",template:r("/UYd"),styles:[r("ztID")]}),ot("design:paramtypes",[d,at,F,R,u])],lt);var ct=r("kzcK");var dt=this&&this.__decorate||function(e,t,r,s){var n,a=arguments.length,i=a<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(i=(a<3?n(i):a>3?n(t,r,i):n(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},mt=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let pt=class{constructor(e,t){this.authGuard=e,this.httpClient=t}getNationalities(){return this.httpClient.get(m.NATIONALITIES)}addNationality(e,t){return this.httpClient.post(m.NATIONALITIES,{NameAr:e,NameEn:t})}updateNationality(e,t){return this.httpClient.put(m.NATIONALITIES+"/"+t,e)}deleteNationality(e){return this.httpClient.delete(m.NATIONALITIES+"/"+e)}};pt=dt([Object(s.Injectable)(),mt("design:paramtypes",[u,x.b])],pt);var ht=this&&this.__decorate||function(e,t,r,s){var n,a=arguments.length,i=a<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(i=(a<3?n(i):a>3?n(t,r,i):n(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},ut=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let ft=class{constructor(e,t){this.authGuard=e,this.httpClient=t}getAssignedTo(e,t,r){return this.httpClient.get(m.USERS+"assigned_to")}getEmps(e,t,r,s,n){let a=m.EMPLOYEES+"/filterEmployees",i=!1;return e>-1&&(i?a+="&offset="+e:(a+="?offset="+e,i=!0)),""!=r&&(i?a+="&DepartmentId="+r:(a+="?DepartmentId="+r,i=!0)),""!=s&&(i?a+="&JobId="+s:(a+="?JobId="+s,i=!0)),""!=n&&(i?a+="&Name="+n:(a+="?Name="+n,i=!0)),t>-1&&(i?a+="&limit="+t:(a+="?limit="+t,i=!0)),this.httpClient.get(a)}addEmp(e,t){const r=new FormData;return null!=t&&null!=t.name&&r.append("Image",t,t.name),r.append("UserData",JSON.stringify(e)),this.httpClient.post(m.EMPLOYEES,r)}updateEmp(e,t){const r=new FormData;return null!=t&&null!=t.name&&r.append("Image",t,t.name),r.append("UserData",JSON.stringify(e)),r.append("_method","PUT"),this.httpClient.post(m.EMPLOYEES+"/"+e.Id,r)}deleteEmp(e){return this.httpClient.delete(m.EMPLOYEES+"/"+e)}sendAssetReminder(e){return this.httpClient.get(m.ASSET+"/send_reminder/"+e)}};ft=ht([Object(s.Injectable)(),ut("design:paramtypes",[u,x.b])],ft);var gt=this&&this.__decorate||function(e,t,r,s){var n,a=arguments.length,i=a<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(i=(a<3?n(i):a>3?n(t,r,i):n(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},bt=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let vt=class{constructor(e,t,r,s,n,a,i,o,l){this.modalService=t,this._commondata=r,this.alertService=s,this.apiService=n,this.empService=a,this.depService=i,this.jobService=o,this.natService=l,this.selectedUser=new class{},this.allCategories=[],this.userCategories=[],this.roles=[],this.editMode=!1,this.callback=null,this.selectedDeps="",this.selectedTab="collapse1",this.english_address="",this.emp_number="",this.ip_address="",this.device_name="",this.password="",this.email="",this.username="",this.selectednationalities="",this.selectedlocation="",this.selectedJops="",this.arabic_address="",this.extension_number="",this.mobileNumber="",this.arabic_name="",this.english_name="",this.submitForm=!1,this.userImage=null,this.userImageURL="",this.userRoleselected="",this.selectedAssigner=null,this.loadDepartment(),this.loadMaiNCategories(),this.loadRoles(),this.getAssigners()}getAssigners(){this.apiService.getAssigners().subscribe(e=>{this.assigners=e.assigners},e=>{console.log(e.error)})}ngOnInit(){}EditMode(e,t){if(this.ClearAll(),this.callback=t,this.modalService.open("exampleModal"),this.editMode=!0,this.selectedUser=e,this.selectedDeps=this.getEmptyIfNull(e.DepartmentId),this.english_address=this.getEmptyIfNull(e.AddressEn),this.arabic_address=this.getEmptyIfNull(e.AddressAr),this.emp_number=this.getEmptyIfNull(e.IdentifierNo),this.ip_address=this.getEmptyIfNull(e.IpAddress),this.device_name=this.getEmptyIfNull(e.PCName),this.email=this.getEmptyIfNull(e.Email),this.selectedAssigner=e.ManagerId,""!=this.getEmptyIfNull(e.HiringDate)){const t=e.HiringDate.split(" ")[0].split("-");this.hireDate=new class{constructor(){this.day=Number(t[2]),this.month=Number(t[1]),this.year=Number(t[0])}}}if(""!=this.getEmptyIfNull(e.RetirementDate)){const t=e.RetirementDate.split(" ")[0].split("-");this.retireDate=new class{constructor(){this.day=Number(t[2]),this.month=Number(t[1]),this.year=Number(t[0])}}}if(this.username=this.getEmptyIfNull(e.user.UserName),this.selectednationalities=this.getEmptyIfNull(e.NationalityId),this.selectedlocation=this.getEmptyIfNull(e.LocationId),this.selectedJops=this.getEmptyIfNull(e.JobId),this.extension_number=this.getEmptyIfNull(e.extension_number),this.mobileNumber=this.getEmptyIfNull(e.MobileNumber),this.english_name=this.getEmptyIfNull(e.NameEn),this.arabic_name=this.getEmptyIfNull(e.NameAr),""!=this.getEmptyIfNull(e.ImageUrl)&&(this.userImageURL=m.IMAGE_LINK+this.getEmptyIfNull(e.ImageUrl)),this.userRoleselected=""+e.user.RoleId,null!=e.user.main_categories)for(const r of e.user.main_categories)for(const e of this.allCategories)r.MainCategoryId==e.Id&&this.userCategories.push(e)}ClearAll(){this.selectedDeps="",this.userImageURL="",this.english_address="",this.emp_number="",this.ip_address="",this.device_name="",this.password="",this.email="",this.hireDate=null,this.retireDate=null,this.username="",this.selectednationalities="",this.selectedlocation="",this.selectedJops="",this.arabic_address="",this.extension_number="",this.mobileNumber="",this.arabic_name="",this.english_name="",this.email="",this.submitForm=!1,this.userImage=null,this.editMode=!1,this.userRoleselected="",this.userCategories=[],this.selectedAssigner=null,this.selectedTab="collapse1",document.getElementById(this.selectedTab).setAttribute("class","acd-des collapse hide"),document.getElementById(this.selectedTab).previousElementSibling.setAttribute("aria-expanded","false"),this.expandCollpse(this.selectedTab)}getEmptyIfNull(e){return null==e||void 0==e?"":""+e}showModel(e){this.callback=e,this.modalService.open("exampleModal"),this.ClearAll()}closeModal(){this.modalService.close("exampleModal")}addNewAsset(e){this.submitForm=!0,e.valid&&(this.selectedUser.NameEn=this.english_name,this.selectedUser.NameAr=this.arabic_name,this.selectedUser.DepartmentId=Number(this.selectedDeps),this.selectedUser.AddressEn=this.english_address,this.selectedUser.AddressAr=this.arabic_address,this.selectedUser.IdentifierNo=this.emp_number,this.selectedUser.IpAddress=this.ip_address,this.selectedUser.PCName=this.device_name,this.selectedUser.Email=this.email,this.selectedUser.ManagerId=this.selectedAssigner,this.selectedUser.RetirementDate=this.retireDate,this.selectedUser.MobileNumber=this.mobileNumber,this.selectedUser.extension_number=this.extension_number,this.selectedUser.PasswordHash=this.password,this.selectedUser.UserName=this.username,this.selectedUser.LocationId=Number(this.selectedlocation),null!=this.hireDate&&(this.selectedUser.HiringDate=this.hireDate.year+"-"+this.hireDate.month+"-"+this.hireDate.day),null!=this.retireDate&&(this.selectedUser.RetirementDate=this.retireDate.year+"-"+this.retireDate.month+"-"+this.retireDate.day),this.selectedUser.userRole=new class{},this.selectedUser.userRole.Id=Number(this.userRoleselected),this.selectedUser.userCategories=this.userCategories,this.editMode?this.empService.updateEmp(this.selectedUser,this.userImage).subscribe(e=>{this.modalService.close("exampleModal"),this.alertService.SuccesMessage(),this.callback(e.employee),this.ClearAll()},e=>{}):this.empService.addEmp(this.selectedUser,this.userImage).subscribe(e=>{this.modalService.close("exampleModal"),this.callback(e.employee),this.ClearAll(),this.alertService.SuccesMessage()},e=>{console.log(e.error)}))}loadDepartment(){this.depService.getDepartments().subscribe(e=>{this.main_categories=e.departments},e=>{console.log(e)}),this.jobService.getJobs().subscribe(e=>{this.jobs=e.jobs},e=>{console.log(e)}),this.apiService.getLocations().subscribe(e=>{this.locations=e.locations},e=>{console.log(e)}),this.natService.getNationalities().subscribe(e=>{this.nationalities=e.nationalities},e=>{console.log(e)})}fileSelect(e){this.userImage=e.target.files[0];const t=new FileReader;t.readAsDataURL(this.userImage),t.onload=(e=>{this.userImageURL=e.target.result})}loadMaiNCategories(){this.apiService.getMainCategories().subscribe(e=>{this.allCategories=e.main_categories},e=>{console.log(e)})}isCategorySelected(e){let t=!1;for(const r of this.userCategories)if(r.Id==e.Id){t=!0;break}return t}loadRoles(){this.apiService.getRoles().subscribe(e=>{this.roles=e.roles},e=>{console.log(e)})}expandCollpse(e){this.selectedTab=e;const t=document.getElementById(e).getAttribute("class");"acd-des collapse"==t||"acd-des collapse hide"==t?(document.getElementById(e).setAttribute("class","acd-des collapse show"),document.getElementById(e).previousElementSibling.setAttribute("aria-expanded","true"),"collapse1"==e?(e="collapse2",document.getElementById(e).setAttribute("class","acd-des collapse hide"),document.getElementById(e).previousElementSibling.setAttribute("aria-expanded","false"),e="collapse3",document.getElementById(e).setAttribute("class","acd-des collapse hide"),document.getElementById(e).previousElementSibling.setAttribute("aria-expanded","false")):"collapse2"==e?(e="collapse1",document.getElementById(e).setAttribute("class","acd-des collapse hide"),document.getElementById(e).previousElementSibling.setAttribute("aria-expanded","false"),e="collapse3",document.getElementById(e).setAttribute("class","acd-des collapse hide"),document.getElementById(e).previousElementSibling.setAttribute("aria-expanded","false")):"collapse3"==e&&(e="collapse1",document.getElementById(e).setAttribute("class","acd-des collapse hide"),document.getElementById(e).previousElementSibling.setAttribute("aria-expanded","false"),e="collapse2",document.getElementById(e).setAttribute("class","acd-des collapse hide"),document.getElementById(e).previousElementSibling.setAttribute("aria-expanded","false"))):(document.getElementById(e).setAttribute("class","acd-des collapse hide"),document.getElementById(e).previousElementSibling.setAttribute("aria-expanded","false"))}};gt([Object(s.ViewChild)("userCategoriesView"),bt("design:type",s.ElementRef)],vt.prototype,"selectedCategoriesView",void 0),vt=gt([Object(s.Component)({selector:"app-add-new-emp",template:r("0S75"),styles:[r("sffL")]}),bt("design:paramtypes",[ct.a,X,d,F,T,ft,T,at,pt])],vt);var yt=this&&this.__decorate||function(e,t,r,s){var n,a=arguments.length,i=a<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(i=(a<3?n(i):a>3?n(t,r,i):n(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},wt=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let _t=class{constructor(e,t,r){this.modalService=e,this.toastService=t,this.apiService=r,this.newPassword="",this.submitForm=!1}ngOnInit(){}setUser(e){this.user=e}updatePassword(e){this.submitForm=!0,e.valid&&this.apiService.updateUserPassword(this.user.user.Id,this.newPassword).subscribe(e=>{this.toastService.success("\u062a\u0645 \u062a\u062d\u062f\u064a\u062b \u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631"),this.closeModal()},e=>{this.toastService.error(e.error_user_message)})}showModel(){this.modalService.open("passwordModal")}closeModal(){this.modalService.close("passwordModal")}};_t=yt([Object(s.Component)({selector:"app-update-user-password",template:r("lhD9"),styles:[r("M1bp")]}),wt("design:paramtypes",[X,z.ToastsManager,T])],_t);var It=this&&this.__decorate||function(e,t,r,s){var n,a=arguments.length,i=a<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(i=(a<3?n(i):a>3?n(t,r,i):n(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},St=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let xt=class{constructor(e,t,r,s,n,a){this._commondata=e,this.alertService=t,this.apiService=r,this.depService=s,this.jobService=n,this.toastService=a,this.loadingIndicator=!0,this.selectedDeps="",this.selectedJops="",this.empname="",this.offset=0,this.limit=10,this.count=0,setTimeout(()=>{this.loadingIndicator=!1},1500)}ngOnInit(){this._commondata.setExpandDiv("Table"),setTimeout(e=>this._commondata.showLoader(!1),200),this.loadDepartment()}SearchAssetPage(e){this.offset=e,this.apiService.getEmps(this.offset,this.limit,this.selectedDeps,this.selectedJops,this.empname).subscribe(e=>{this.emplist=e.data.employees,this.count=e.data.count},e=>{})}SearchAsset(){this.offset=0,this.apiService.getEmps(this.offset,this.limit,this.selectedDeps,this.selectedJops,this.empname).subscribe(e=>{this.emplist=e.data.employees,this.count=e.data.count},e=>{})}showAddNewItem(){this.addcomponent.showModel(e=>{this.SearchAssetPage(this.offset)})}ClearAll(){this.empname="",this.selectedDeps="",this.selectedJops=""}editAsset(e,t){this.addcomponent.EditMode(e,e=>{this.SearchAssetPage(this.offset)})}deleteAsset(e,t){this.alertService.deleteMessage(()=>{this.apiService.deleteEmp(e.Id).subscribe(e=>{this.emplist.splice(t,1),this.alertService.SuccesMessage()},e=>{})})}loadDepartment(){this.depService.getDepartments().subscribe(e=>{this.main_categories=e.departments},e=>{console.log(e)}),this.jobService.getJobs().subscribe(e=>{this.jobs=e.jobs},e=>{console.log(e)}),this.SearchAsset()}updateUserPassword(e){this.passwordComponent.setUser(e),this.passwordComponent.showModel()}sendAssetReminderEmail(e){this.apiService.sendAssetReminder(e).subscribe(e=>{1==e.status?this.toastService.success("\u062a\u0645 \u0627\u0644\u0627\u0631\u0633\u0627\u0644 \u0628\u0646\u062c\u0627\u062d"):this.toastService.error(e.user_message)},e=>{console.log(e.error)})}};It([Object(s.ViewChild)("addemp"),St("design:type",vt)],xt.prototype,"addcomponent",void 0),It([Object(s.ViewChild)("passwordComponent"),St("design:type",_t)],xt.prototype,"passwordComponent",void 0),xt=It([Object(s.Component)({selector:"app-systememps",template:r("CJa6"),styles:[r("Dym3")]}),St("design:paramtypes",[d,F,ft,T,at,z.ToastsManager])],xt);var At=this&&this.__decorate||function(e,t,r,s){var n,a=arguments.length,i=a<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(i=(a<3?n(i):a>3?n(t,r,i):n(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},jt=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let Tt=class{constructor(e,t){this.authGuard=e,this.httpClient=t}addAuthHeader(){const e=this.authGuard.getUser();let t=null;t=null!=e?e.token:"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjEsImlzcyI6Imh0dHA6Ly9sb2NhbGhvc3QvQXNzZXRUcmFja2luZy9wdWJsaWMvaW5kZXgucGhwL3dlYl9hcGkvdjEvdXNlcnMvbG9naW4iLCJpYXQiOjE1NDM1Nzc0MDUsImV4cCI6MTU1OTEyOTQwNSwibmJmIjoxNTQzNTc3NDA1LCJqdGkiOiJ5M240cjlxc3Nld0hxaDFjIn0.l_s2JQPO5PfRKSEhkX-48TGm3adj_3Ogl-QCHFnNsFg";let r=new x.d;return r=r.append("Authorization","Bearer "+t)}getJobs(e,t){let r=m.SESSION_CYCLE+"/filter_session",s=!1;return e>-1&&(s?r+="&offset="+e:(r+="?offset="+e,s=!0)),t>-1&&(s?r+="&limit="+t:(r+="?limit="+t,s=!0)),this.httpClient.get(r,{headers:this.addAuthHeader()})}addNationality(e){return this.httpClient.post(m.SESSION_CYCLE,e,{headers:this.addAuthHeader()})}updateNationality(e){return this.httpClient.put(m.SESSION_CYCLE+"/"+e.Id,e,{headers:this.addAuthHeader()})}deleteNationality(e){return this.httpClient.delete(m.SESSION_CYCLE+"/"+e,{headers:this.addAuthHeader()})}getResult(e){let t=m.SESSION_CYCLE+"/getInventory/"+e;return this.httpClient.get(t,{headers:this.addAuthHeader()})}};Tt=At([Object(s.Injectable)(),jt("design:paramtypes",[u,x.b])],Tt);var Nt=this&&this.__decorate||function(e,t,r,s){var n,a=arguments.length,i=a<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(i=(a<3?n(i):a>3?n(t,r,i):n(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},Et=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let Rt=class{constructor(e,t,r,s,n){this.modalService=t,this.apiService=r,this.alertService=s,this.invService=n,this.editMode=!1,this.inventory_name="",this.selectedTowers="",this.selectedFloors="",this.selectedRoom="",this.selectedLocation="",this.callback=null,this.submitForm=!1}ngOnInit(){this.loadLocations()}showModel(e){this.callback=e,this.sessionCycle=new class{},this.modalService.open("exampleModal"),this.ClearAll()}closeModal(){this.modalService.close("exampleModal"),this.ClearAll()}getFloorRooms(e){this.apiService.getFloorRooms(this.selectedFloors).subscribe(e=>{this.rooms=e.rooms},e=>{})}getFloors(e){this.apiService.getTowerFloors(this.selectedTowers).subscribe(e=>{this.floors=e.floors},e=>{})}ClearAll(){this.submitForm=!1,this.inventory_name="",this.Datepickerfrom=null,this.Datepickerto=null,this.selectedTowers="",this.selectedFloors="",this.selectedRoom="",this.selectedLocation="",this.editMode=!1}getEmptyIfNull(e){return null==e||void 0==e?"":""+e}EditMode(e,t){this.callback=t,this.sessionCycle=e,this.modalService.open("exampleModal"),this.editMode=!0;const r=e.StartDate.split(" ")[0].split("-"),s=e.EndDate.split(" ")[0].split("-");this.inventory_name=e.Name,this.Datepickerfrom=new class{constructor(){this.day=Number(r[2]),this.month=Number(r[1]),this.year=Number(r[0])}},this.Datepickerto=new class{constructor(){this.day=Number(s[2]),this.month=Number(s[1]),this.year=Number(s[0])}},this.selectedRoom=""+e.RoomId,this.selectedFloors=""+e.room.FloorId,this.selectedTowers=""+e.room.floor.TowerId,this.selectedLocation=""+e.room.floor.tower.LocationId,this.loadLocations(),this.getBuild(null),this.getFloors(null),this.getFloorRooms(null)}loadLocations(){this.apiService.getLocations().subscribe(e=>{this.locations=e.locations},e=>{console.log(e)})}getBuild(e){this.apiService.getLocationTowers(this.selectedLocation).subscribe(e=>{this.towers=e.towers},e=>{})}addNewAsset(e){console.log(e),e.invalid?this.submitForm=!0:(this.sessionCycle.Name=this.inventory_name,this.sessionCycle.FloorId=this.selectedFloors,this.sessionCycle.TowerId=this.selectedTowers,this.sessionCycle.LocationId=this.selectedLocation,this.sessionCycle.StartDate=this.Datepickerfrom.year+"-"+this.Datepickerfrom.month+"-"+this.Datepickerfrom.day,this.sessionCycle.EndDate=this.Datepickerto.year+"-"+this.Datepickerto.month+"-"+this.Datepickerto.day,this.sessionCycle.RoomId=Number(this.selectedRoom),this.editMode?this.invService.updateNationality(this.sessionCycle).subscribe(e=>{this.modalService.close("exampleModal"),this.alertService.SuccesMessage(),this.callback(e.SessionCycle)},e=>{}):this.invService.addNationality(this.sessionCycle).subscribe(e=>{this.modalService.close("exampleModal"),this.alertService.SuccesMessage(),this.callback(e.SessionCycle)},e=>{}),this.ClearAll())}};Rt=Nt([Object(s.Component)({selector:"app-add-new-invatory",template:r("ju9Z"),styles:[r("HaY/")]}),Et("design:paramtypes",[ct.a,X,T,F,Tt])],Rt);var Ot=this&&this.__decorate||function(e,t,r,s){var n,a=arguments.length,i=a<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(i=(a<3?n(i):a>3?n(t,r,i):n(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},Mt=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let Ct=class{constructor(e,t,r){this._commondata=e,this.modalService=t,this.pdfServiceService=r}editAsset(e,t){this.modalService.close("followasst"),this.addasset.EditMode(e,e=>{})}addAsset(e,t){this.modalService.close("followasst"),this.addasset.showModelWithEPc(e)}printExcel(){this.pdfServiceService.printInvitoryResult(this.selectedAssets)}ngOnInit(){}showModel(e){this.modalService.open("followasst"),this.selectedAssets=e}closeModal(){this.modalService.close("followasst")}};Ot([Object(s.ViewChild)("addasset"),Mt("design:type",ae)],Ct.prototype,"addasset",void 0),Ct=Ot([Object(s.Component)({selector:"app-session-report",template:r("RiXN"),styles:[r("Xpvu")]}),Mt("design:paramtypes",[d,X,ce])],Ct);var Lt=this&&this.__decorate||function(e,t,r,s){var n,a=arguments.length,i=a<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(i=(a<3?n(i):a>3?n(t,r,i):n(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},Dt=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let Ft=class{constructor(e,t,r){this._commondata=e,this.alertService=t,this.apiService=r,this.loadingIndicator=!0,this.offset=0,this.limit=10,this.count=0,setTimeout(()=>{this.loadingIndicator=!1},1500)}ngOnInit(){this._commondata.setExpandDiv("Table"),setTimeout(e=>this._commondata.showLoader(!1),200),this.SearchAsset(this.offset)}showAddNewItem(){this.addcomponent.showModel(e=>{this.SearchAsset(this.offset)})}SearchAsset(e){this.offset=e,this.apiService.getJobs(this.offset,this.limit).subscribe(e=>{this.sessionCycle=e.SessionCycles.SessionCycles,this.count=e.SessionCycles.count},e=>{})}showReport(e,t){this.apiService.getResult(e.Id).subscribe(e=>{this.sessionResult.showModel(e.SessionCycleResults)},e=>{})}editAsset(e,t){this.addcomponent.EditMode(e,e=>{this.SearchAsset(this.offset)})}deleteAsset(e,t){this.alertService.deleteMessage(()=>{this.apiService.deleteNationality(e.Id).subscribe(e=>{this.sessionCycle.splice(t,1),this.alertService.SuccesMessage()},e=>{})})}};Lt([Object(s.ViewChild)("addinv"),Dt("design:type",Rt)],Ft.prototype,"addcomponent",void 0),Lt([Object(s.ViewChild)("sessionResult"),Dt("design:type",Ct)],Ft.prototype,"sessionResult",void 0),Ft=Lt([Object(s.Component)({selector:"app-inventory",template:r("3j/I"),styles:[r("XErW")]}),Dt("design:paramtypes",[d,F,Tt])],Ft);var kt=this&&this.__decorate||function(e,t,r,s){var n,a=arguments.length,i=a<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(i=(a<3?n(i):a>3?n(t,r,i):n(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},Ut=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let Pt=class{constructor(e,t,r,s,n){this._commondata=e,this.apiService=t,this.dialogService=r,this.translate=s,this.auth1=n,this.loadingIndicator=!0,this.columns=[],this.locations=[],this.allLocations=[],this.addUpdateLocation={NameAr:"",NameEn:"",rowIndex:0,id:0,submit:!1},this.tr=new C(s),setTimeout(()=>{this.loadingIndicator=!1},1500)}ngOnInit(){this._commondata.setExpandDiv("Table"),setTimeout(e=>this._commondata.showLoader(!1),200),this.columns=[{prop:"Id",name:"#"},{prop:"NameAr",name:this.tr.transform("arabic_name")},{prop:"NameEn",name:this.tr.transform("english_name")},{prop:"Id",name:this.tr.transform("edit"),cellTemplate:this.editTemplate},{prop:"Id",name:this.tr.transform("delete"),cellTemplate:this.deleteTemplate}],1!=this.auth1.getUser().role.Id&&this.columns.splice(this.columns.length-1,1),this.loadDepartment()}filterLocations(e){const t=e.data;null!=t?ge.Observable.from(this.allLocations).pipe(Object(be.filter)(e=>e.NameAr.indexOf(t)>-1||e.NameEn.indexOf(t)>-1)).toArray().subscribe(e=>{this.locations=e}):this.locations=this.allLocations}editLocation(e){const t=this.locations[e];this.addUpdateLocation={NameAr:t.NameAr,NameEn:t.NameEn,rowIndex:e,id:t.Id,submit:!1},window.scrollTo(0,0)}deleteLocation(e){const t=this.locations[e];this.dialogService.deleteMessage(()=>{this.apiService.deleteNationality(t.Id).subscribe(t=>{this.allLocations.splice(e,1),this.locations=[...this.allLocations],this.dialogService.SuccesMessage()},e=>{console.log(e)})})}getDefaultLocation(){return{NameAr:"",NameEn:"",rowIndex:0,id:0,submit:!1}}formSubmit(e){this.addUpdateLocation.submit=!0,e.valid&&(0==this.addUpdateLocation.id?this.apiService.addNationality(this.addUpdateLocation.NameAr,this.addUpdateLocation.NameEn).subscribe(e=>{this.allLocations.push(e.nationality),this.locations=[...this.allLocations],this.addUpdateLocation=this.getDefaultLocation(),this.dialogService.SuccesMessage()},e=>{console.error(e)}):this.apiService.updateNationality(this.addUpdateLocation,this.addUpdateLocation.id).subscribe(e=>{this.allLocations[this.addUpdateLocation.rowIndex]=e.nationality,this.locations=[...this.allLocations],this.addUpdateLocation=this.getDefaultLocation()},e=>{console.error(e)}))}resetForm(){this.addUpdateLocation=this.getDefaultLocation()}loadDepartment(){this.apiService.getNationalities().subscribe(e=>{this.locations=e.nationalities,this.allLocations=e.nationalities},e=>{console.log(e)})}};kt([Object(s.ViewChild)("editTemplate"),Ut("design:type",s.TemplateRef)],Pt.prototype,"editTemplate",void 0),kt([Object(s.ViewChild)("deleteTemplate"),Ut("design:type",s.TemplateRef)],Pt.prototype,"deleteTemplate",void 0),Pt=kt([Object(s.Component)({selector:"app-nationalty",template:r("GIIc"),styles:[r("Lw4G")]}),Ut("design:paramtypes",[d,pt,F,R,u])],Pt);var qt=this&&this.__decorate||function(e,t,r,s){var n,a=arguments.length,i=a<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(i=(a<3?n(i):a>3?n(t,r,i):n(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},Bt=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let Ht=class{constructor(e,t,r,s,n,a){this._commondata=e,this.apiService=t,this.empService=r,this.alertService=s,this.translate=n,this.router=a,this.loadingIndicator=!0,this.NoteText="",this.selectedEmp=null,this.selectedDep="",this.submitForm=!1,this.tr=new C(n),setTimeout(()=>{this.loadingIndicator=!1},1500),this.apiService.getDepartments().subscribe(e=>{this.deplist=e.departments},e=>{console.log(e)}),null!=this._commondata&&null!=this._commondata.assets&&(this.assets=this._commondata.assets),0==this.assets.length&&this.router.navigate("salesmen")}getAllEmps(e){this.empService.getAssignedTo(1,5e4,this.selectedDep).subscribe(e=>{this.emplist=e.assignedTo,this.selectedEmp=null},e=>{})}ngOnInit(){this._commondata.setExpandDiv("Table"),setTimeout(e=>this._commondata.showLoader(!1),200)}ClearAll(){this.submitForm=!1,this.NoteText="",this.selectedEmp=null,this.selectedDep=""}deleteAsset(e,t){this.alertService.deleteMessage(()=>{this.assets.splice(t,1)})}AssginAssets(e){console.log(e),this.submitForm=!0,e.form.invalid||(this.dataAssagin=new class{},this.dataAssagin.EmployeeId=Number(this.selectedEmp),this.dataAssagin.AssetIds=this.assets,this.dataAssagin.Notes=this.NoteText,this.apiService.AssainAsset(this.dataAssagin).subscribe(e=>{this.router.navigate("salesmen"),this.alertService.SuccesMessage()},e=>{}))}};Ht=qt([Object(s.Component)({selector:"app-assagin-asset",template:r("nlQe"),styles:[r("fLPC")]}),Bt("design:paramtypes",[d,T,ft,F,R,b])],Ht);var Gt=this&&this.__decorate||function(e,t,r,s){var n,a=arguments.length,i=a<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(i=(a<3?n(i):a>3?n(t,r,i):n(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},zt=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let Vt=class{constructor(e,t,r,s,n,a){this._commondata=e,this.apiService=t,this.toastService=r,this.dialogService=s,this.authService=n,this.translate=a,this.selectedTab=1,this.filePath="",this.selectedLang=m.LANG,this.passwordData={old_password:"",new_password:"",same_new_password:"",submitForm:!1},this.userImage=null,this.tr=new C(a),this.selectedLang=m.LANG,this.user=n.getUser();const i=this.user.employee;this.userEditableData={NameAr:i.NameAr,NameEn:i.NameEn,AddressAr:i.AddressAr,AddressEn:i.AddressEn,MobileNumber:i.MobileNumber,submitForm:!1}}ngOnInit(){setTimeout(e=>this._commondata.showLoader(!1),200)}setSelectedTab(e){this.selectedTab=e}updateProfile(e){this.userEditableData.submitForm=!0,e.valid&&this.apiService.updateProfile(this.userEditableData).subscribe(e=>{this.user.employee=e.employee,this.authService.saveUser(this.user),this.toastService.success(this.tr.transform("edit_complete"))},e=>{console.error(e)})}clearPasswordForm(){this.passwordData=this.getDefaultPasswordData()}changeLang(){localStorage.setItem("lang",this.selectedLang),location.reload()}changePassword(e){this.passwordData.submitForm=!0,e.valid&&(this.passwordData.new_password==this.passwordData.same_new_password?this.apiService.changePassword(this.passwordData).subscribe(e=>{this.toastService.success(this.tr.transform("Change_password_success")),this.passwordData=this.getDefaultPasswordData()},e=>{console.error(e),this.dialogService.showErrorMessage(e.error.user_message)}):this.dialogService.showErrorMessage(this.tr.transform("Passwords_not_match")))}getDefaultPasswordData(){return{old_password:"",new_password:"",same_new_password:"",submitForm:!1}}uploadPersonalPhoto(){null!=this.userImage?this.apiService.updateProfileImage(this.userImage).subscribe(e=>{this.userImage=null,this.user.employee=e.employee,this.authService.saveUser(this.user),this.toastService.success(this.tr.transform("Update_profile_image"))},e=>{console.error(e),this.dialogService.showErrorMessage(e.error.user_message)}):this.dialogService.showErrorMessage(this.tr.transform("Select_Photo"))}selectPhoto(e){this.filePath=e.target.files[0].name,this.userImage=e.target.files[0]}getUserImage(){return this.authService.getUserFullImageUrlOrDefault()}};Vt=Gt([Object(s.Component)({selector:"app-profile",template:r("PZFO"),styles:[r("RMG/")]}),zt("design:paramtypes",[d,T,z.ToastsManager,F,u,R])],Vt);var Jt=this&&this.__decorate||function(e,t,r,s){var n,a=arguments.length,i=a<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(i=(a<3?n(i):a>3?n(t,r,i):n(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},Kt=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let Qt=class{constructor(e,t){this.authGuard=e,this.httpClient=t}getEmpAsset(e){return this.httpClient.get(m.ASSET_EMP+e)}ChangeStatusAsset(e,t){return this.httpClient.get(m.ASSET_STATUS+e+"/"+t)}};Qt=Jt([Object(s.Injectable)(),Kt("design:paramtypes",[u,x.b])],Qt);var Wt=this&&this.__decorate||function(e,t,r,s){var n,a=arguments.length,i=a<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(i=(a<3?n(i):a>3?n(t,r,i):n(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},Yt=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let $t=class{constructor(e,t,r,s,n,a){this._commondata=e,this.empService=t,this.assaginService=r,this.alertService=s,this.translate=n,this.router=a,this.loadingIndicator=!0,this.NoteText="",this.submitForm=!1,this.tr=new C(n),setTimeout(()=>{this.loadingIndicator=!1},1500),this.assets=Array(),this.assaginService.getEmpAsset(this.router.snapshot.params.hash_link).subscribe(e=>{for(const t of e.assets){const e=t.employee_asset_detail.asset;e.Id=t.employee_asset_detail.Id,e.IsCancelled=t.employee_asset_detail.IsCancelled,e.IsConfirmed=t.employee_asset_detail.IsConfirmed,this.NoteText=t.Notes,this.assets.push(t.employee_asset_detail.asset)}},e=>{})}ngOnInit(){this._commondata.setExpandDiv("Table"),setTimeout(e=>this._commondata.showLoader(!1),200)}isAttachedBefore(e){let t=!0;return 1!=e.IsConfirmed&&1!=e.IsCancelled||(t=!1),t}AcceptAsset(e,t){this.alertService.confirmationWithTitle(this.tr.transform("confirm_message"),()=>{this.assaginService.ChangeStatusAsset(""+e.Id,"1").subscribe(e=>{this.assets[t].IsConfirmed=1},e=>{})})}RejectAsset(e,t){this.alertService.confirmationWithTitle(this.tr.transform("cancel_message"),()=>{this.assaginService.ChangeStatusAsset(""+e.Id,"0").subscribe(e=>{this.assets[t].IsCancelled=1},e=>{})})}};const Xt=[{path:"",component:w,canActivate:[u],children:[{path:"",component:fe,data:{title:"assets_system"}},{path:"salesmen",component:fe,data:{title:"controller_asset"}},{path:"maincats",component:Se,data:{title:"maincats"}},{path:"subcat",component:Ee,data:{title:"subcat"}},{path:"models",component:De,data:{title:"models"}},{path:"location",component:rt,data:{title:"controller_asset_location"}},{path:"build",component:Ye,data:{title:"build"}},{path:"roofs",component:Ke,data:{title:"roofs "}},{path:"office",component:Be,data:{title:"office"}},{path:"empdeps",component:Ze,data:{title:"empdeps "}},{path:"nationalty",component:Pt,data:{title:"nationalty"}},{path:"job",component:lt,data:{title:"job"}},{path:"sysemps",component:xt,data:{title:"sysemps"}},{path:"inventory",component:Ft,data:{title:"inventory"}},{path:"attach_assets",component:Ht,data:{title:"attach_assets"}},{path:"profile",component:Vt,data:{title:"profile"}}]},{path:"",canActivate:[S],children:[{path:"",redirectTo:"login",pathMatch:"full"},{path:"login",component:q,data:{title:"login"}},{path:"forget_password",component:K,data:{title:"forget_password"}},{path:"change_password/:code",component:Y,data:{title:"email_verfication"}}]},{path:"asset_assign/:hash_link",component:$t=Wt([Object(s.Component)({selector:"app-attach-asset-to-employee",template:r("Tlan"),styles:[r("jK4l")]}),Yt("design:paramtypes",[d,ft,Qt,F,R,i.a])],$t)},{path:"**",component:G}];let Zt=class{};Zt=(this&&this.__decorate||function(e,t,r,s){var n,a=arguments.length,i=a<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(i=(a<3?n(i):a>3?n(t,r,i):n(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i})([Object(s.NgModule)({imports:[i.d.forRoot(Xt,{useHash:!0,enableTracing:!0})],exports:[i.d]})],Zt);r("Qjik"),r("Nwq9"),r("i3HK");var er=this&&this.__decorate||function(e,t,r,s){var n,a=arguments.length,i=a<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(i=(a<3?n(i):a>3?n(t,r,i):n(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},tr=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let rr=class{constructor(e,t,r,s,n,a,o){this._commondata=e,this.toastr=t,this.router=s,this.activatedRoute=n,this.titleService=a,this.translate=o,this.title="app",this.toastr.setRootViewContainerRef(r),this.translatePipe=new C(o),o.use(m.LANG).then(()=>{console.log(o.data),this.router.events.filter(e=>e instanceof i.b).map(()=>this.activatedRoute).map(e=>{for(;e.firstChild;)e=e.firstChild;return e}).filter(e=>"primary"===e.outlet).mergeMap(e=>e.data).subscribe(e=>this.titleService.setTitle(""+this.translatePipe.transform(e.title)))}),console.log(o.data)}ngOnInit(){}};rr=er([Object(s.Component)({selector:"app-root",template:r("5xMp"),styles:[r("sQHO")]}),tr("design:paramtypes",[d,z.ToastsManager,s.ViewContainerRef,i.c,i.a,a.Title,R])],rr);var sr=r("QDSr"),nr=r("ejaz"),ar=r("oHSm"),ir=r("dBtz"),or=r("EAH6"),lr=r("TXDH"),cr=this&&this.__decorate||function(e,t,r,s){var n,a=arguments.length,i=a<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(i=(a<3?n(i):a>3?n(t,r,i):n(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},dr=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let mr=class{constructor(){}ngOnInit(){}};mr=cr([Object(s.Component)({selector:"app-guest",template:r("Hff+"),styles:[r("6EHv")]}),dr("design:paramtypes",[])],mr);var pr=r("me0u"),hr=this&&this.__decorate||function(e,t,r,s){var n,a=arguments.length,i=a<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(i=(a<3?n(i):a>3?n(t,r,i):n(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},ur=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let fr=class{constructor(e,t,r,s,n){this.appRouter=e,this.dialogService=t,this.toastService=r,this.activatedRoute=s,this.apiService=n,this.verificationCode="",this.email=""}ngOnInit(){this.activatedRoute.paramMap.subscribe(e=>{console.log(e),this.email=e.get("email")})}verifyPasswordCode(e){e.valid&&this.apiService.verifyPasswordCode(this.email,this.verificationCode).subscribe(e=>{this.appRouter.navigateWithParams("change_password",[this.email,this.verificationCode])},e=>{console.log(e),-3==e.error.error_code?this.dialogService.showErrorMessage("Email address not exists in system"):-5==e.error.error_code&&this.dialogService.showErrorMessage("Verification code not correct.")})}};fr=hr([Object(s.Component)({selector:"app-password-code",template:r("1zwP"),styles:[r("Ne79")]}),ur("design:paramtypes",[b,F,z.ToastsManager,i.a,T])],fr);var gr=this&&this.__decorate||function(e,t,r,s){var n,a=arguments.length,i=a<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(i=(a<3?n(i):a>3?n(t,r,i):n(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},br=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let vr=class{constructor(){}ngOnInit(){}};vr=gr([Object(s.Component)({selector:"app-load-file",template:r("zmdS"),styles:[r("zVps")]}),br("design:paramtypes",[])],vr);var yr=r("7t+N"),wr=this&&this.__decorate||function(e,t,r,s){var n,a=arguments.length,i=a<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(i=(a<3?n(i):a>3?n(t,r,i):n(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},_r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let Ir=class{constructor(e,t){this.modalService=e,this.el=t,this.element=yr(t.nativeElement)}ngOnInit(){this.id?(this.element.appendTo("body"),this.modalService.add(this)):console.error("modal must have an id")}ngOnDestroy(){this.modalService.remove(this.id),this.element.remove()}open(){this.element.show(),this.element.addClass("fade show"),yr("body").addClass("modal-open")}close(){this.element.hide(),this.element.addClass("fade hide"),yr("body").removeClass("modal-open")}};wr([Object(s.Input)(),_r("design:type",String)],Ir.prototype,"id",void 0),Ir=wr([Object(s.Component)({selector:"app-model",template:"<ng-content></ng-content>"}),_r("design:paramtypes",[X,s.ElementRef])],Ir);var Sr=this&&this.__decorate||function(e,t,r,s){var n,a=arguments.length,i=a<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(i=(a<3?n(i):a>3?n(t,r,i):n(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},xr=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let Ar=class{constructor(e,t,r){this.el=e,this.auth1=t,this.renderer=r}ngOnInit(){null!=this.auth1&&null!=this.auth1.getUser()&&null!=this.auth1.getUser().role&&3==this.auth1.getUser().role.Id&&(this.el.nativeElement.style.display="none")}};Ar=Sr([Object(s.Directive)({selector:"[appShowRoute]"}),xr("design:paramtypes",[s.ElementRef,u,s.Renderer])],Ar);var jr=this&&this.__decorate||function(e,t,r,s){var n,a=arguments.length,i=a<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(i=(a<3?n(i):a>3?n(t,r,i):n(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},Tr=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let Nr=class{constructor(e,t,r){this.el=e,this.auth1=t,this.renderer=r}ngOnInit(){null!=this.auth1&&null!=this.auth1.getUser()&&null!=this.auth1.getUser().role&&1!=this.auth1.getUser().role.Id&&(this.el.nativeElement.style.display="none")}};Nr=jr([Object(s.Directive)({selector:"[appCanDelete]"}),Tr("design:paramtypes",[s.ElementRef,u,s.Renderer])],Nr);var Er=r("ves3"),Rr=(r("8O/H"),this&&this.__decorate||function(e,t,r,s){var n,a=arguments.length,i=a<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(i=(a<3?n(i):a>3?n(t,r,i):n(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i}),Or=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let Mr=class{constructor(){this.cache=new Map}get(e){const t=e.urlWithParams,r=this.cache.get(t);if(!r)return;r.lastRead,Date.now();return r.response}put(e,t){const r=e.url,s={url:r,response:t,lastRead:Date.now()};this.cache.set(r,s);const n=Date.now()-3e4;this.cache.forEach(e=>{e.lastRead<n&&this.cache.delete(e.url)})}};Mr=Rr([Object(s.Injectable)(),Or("design:paramtypes",[])],Mr);r("qChU");var Cr=this&&this.__decorate||function(e,t,r,s){var n,a=arguments.length,i=a<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(i=(a<3?n(i):a>3?n(t,r,i):n(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},Lr=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let Dr=class{constructor(e,t,r,s,n){this.authGuard=e,this._commondata=t,this.appRouter=r,this.alertService=s,this.cache=n,this.loadingIndicator=!0}intercept(e,t){return this.sendRequest(e,t,this.cache)}sendRequest(e,t,r){return e=null!=this.authGuard.getUser()?e.clone({setHeaders:{Authorization:`Bearer ${this.authGuard.getUser().token}`,"app-lang":"ar","Access-Control-Allow-Origin":"*","Access-Control-Allow-Methods":"GET,PUT,OPTIONS,POST"}}):e.clone({setHeaders:{"app-lang":"ar","Access-Control-Allow-Methods":"GET,PUT,OPTIONS,POST","Access-Control-Allow-Headers":"Access-Control-Allow-Origin","Access-Control-Allow-Origin":"*"}}),t.handle(e).pipe(Object(be.map)(e=>(this._commondata.showLoader(!0),e)),Object(be.catchError)(e=>{if(this._commondata.showLoader(!1),null==e.error.dev_message||""==e.error.dev_message)return null!=e.error.user_message&&null!=e.error.user_message.errorInfo?this.alertService.showErrorMessage(e.error.user_message.errorInfo[2]):this.alertService.showErrorMessage(e.error.user_message),Er.a.throw(e);this.alertService.showErrorMessage(e.error.dev_message)}),Object(be.finalize)(()=>{this._commondata.showLoader(!1)}))}};Dr=Cr([Object(s.Injectable)(),Lr("design:paramtypes",[u,d,b,F,Mr])],Dr);var Fr=r("dIlY"),kr=r("E0md"),Ur=this&&this.__decorate||function(e,t,r,s){var n,a=arguments.length,i=a<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(i=(a<3?n(i):a>3?n(t,r,i):n(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},Pr=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let qr=class{constructor(e){this.el=e,this.regex=new RegExp(/^-?[0-9]+(\.[0-9]*){0,1}$/g),this.specialKeys=["Backspace","Tab","End","Home","-"]}onKeyDown(e){if(-1!==this.specialKeys.indexOf(e.key))return;const t=this.el.nativeElement.value.concat(e.key);"Backspace"!=t&&t&&!String(t).match(this.regex)&&e.preventDefault()}};Ur([Object(s.HostListener)("keydown",["$event"]),Pr("design:type",Function),Pr("design:paramtypes",[KeyboardEvent]),Pr("design:returntype",void 0)],qr.prototype,"onKeyDown",null),qr=Ur([Object(s.Directive)({selector:"[myNumberOnly]"}),Pr("design:paramtypes",[s.ElementRef])],qr);var Br=this&&this.__decorate||function(e,t,r,s){var n,a=arguments.length,i=a<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(i=(a<3?n(i):a>3?n(t,r,i):n(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},Hr=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let Gr=class{constructor(e,t,r){this.el=e,this.toast=t,this.translate=r,this.AllowedString="Backspace \u0644\u0625\u0625\u2018\u0623\u0644\u0623\u0650\u064d\u0640\u0652\u0622 \u0630\u0636\u0635\u062b\u0642\u0641\u063a\u0639\u0647\u062e\u062d\u062c\u062f\u0637\u0643\u0645\u0646\u062a\u0627\u0644\u0628\u064a\u0633\u0634\u0638\u0632\u0648\u0629\u0649\u0644\u0627\u0631\u0624\u0621\u0626",this.specialKeys=["Backspace","Tab","End","Home","-"],this.tr=new C(r)}onKeyDown(e){this.el.nativeElement.value.concat(e.key);-1==this.AllowedString.indexOf(e.key)?(e.preventDefault(),this.toast.clearAllToasts(),this.toast.info(this.tr.transform("arabic_only"))):this.toast.clearAllToasts()}};Br([Object(s.HostListener)("keydown",["$event"]),Hr("design:type",Function),Hr("design:paramtypes",[KeyboardEvent]),Hr("design:returntype",void 0)],Gr.prototype,"onKeyDown",null),Gr=Br([Object(s.Directive)({selector:"[myArabicOnly]"}),Hr("design:paramtypes",[s.ElementRef,z.ToastsManager,R])],Gr);var zr=this&&this.__decorate||function(e,t,r,s){var n,a=arguments.length,i=a<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(i=(a<3?n(i):a>3?n(t,r,i):n(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},Vr=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let Jr=class{constructor(e,t,r){this.el=e,this.toast=t,this.translate=r,this.AllowedString=" qwertyuioplkjhgfdsazxcvbnmQWERTYUIOPLKJHGFDSAZXCVBNM Backspace ",this.specialKeys=["Backspace","Tab","End","Home","-"],this.tr=new C(r)}onKeyDown(e){this.el.nativeElement.value.concat(e.key);-1==this.AllowedString.indexOf(e.key)?(e.preventDefault(),this.toast.clearAllToasts(),this.toast.info(this.tr.transform("english_only"))):this.toast.clearAllToasts()}};zr([Object(s.HostListener)("keydown",["$event"]),Vr("design:type",Function),Vr("design:paramtypes",[KeyboardEvent]),Vr("design:returntype",void 0)],Jr.prototype,"onKeyDown",null),Jr=zr([Object(s.Directive)({selector:"[myEnglishOnly]"}),Vr("design:paramtypes",[s.ElementRef,z.ToastsManager,R])],Jr);const Kr=[Dr];let Qr=class{};Qr=(this&&this.__decorate||function(e,t,r,s){var n,a=arguments.length,i=a<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(i=(a<3?n(i):a>3?n(t,r,i):n(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i})([Object(s.NgModule)({declarations:[rr,mr,q,w,G,K,fr,Y,Se,fe,Ee,De,rt,Ye,Ke,Be,Ze,Pt,lt,Ft,xt,ae,Ir,vt,Rt,pe,vr,C,Vt,C,Ht,_t,Ar,Nr,$t,re,qr,Gr,Jr,Ct],imports:[a.BrowserModule,Zt,sr.a,z.ToastModule.forRoot(),ct.c.forRoot(),nr.FormsModule,lr.ChartsModule,ar.NgxDatatableModule,x.c,ir.NgxChartsModule,or.DxVectorMapModule,or.DxSelectBoxModule,Fr.a,kr.InputTrimModule,ct.b.forRoot(),pr.a.forRoot()],providers:[d,X,z.ToastOptions,u,S,b,F,T,we,k.Logger,k.Options,R,pt,at,je,Me,ze,Ue,ft,Tt,ce,Qt,Mr,{provide:s.APP_INITIALIZER,useFactory:function(e){return()=>e.use(m.LANG)},deps:[R],multi:!0},Kr,{provide:x.a,useClass:Dr,multi:!0}],bootstrap:[rr]})],Qr);Object(s.enableProdMode)(),Object(n.a)().bootstrapModule(Qr).catch(e=>console.log(e))},yaDV:function(e,t){e.exports=""},zVps:function(e,t){e.exports=""},zmdS:function(e,t){e.exports="<p>\r\n load-file works!\r\n</p>\r\n"},ztID:function(e,t){e.exports=""}},[1]);