1"use strict";(self.webpackChunknefaa_management_system=self.webpackChunknefaa_management_system||[]).push([[269],{4946:(nt,K,c)=>{c.r(K),c.d(K,{LookupConfigModule:()=>Q});var l=c(6814),P=c(8109),D=c(7398),E=c(1355),b=c(5769),e=c(5879),Z=c(9862);let w=(()=>{class m extends E.e{constructor(o,i){super(o,i),this.http=o,this.injector=i,this.apiURL="api/public/lookups/manager/objects",this.availableLookups=[b.o.RimType,b.o.CarShapeType,b.o.VehicleType,b.o.FuelType,b.o.TrunkSpecification,b.o.OwnershipType,b.o.RegistrationType,b.o.ExemptionType,b.o.Sector,b.o.MortgagingEntityType,b.o.InsuranceCompany,b.o.LicenseType,b.o.Nationality],this.hierarchyConfig={Kadaa:"Mouhafaza",Municipality:"Kadaa"}}isLookupAvailable(o){return this.availableLookups.includes(o)}getAvailableLookups(){return this.availableLookups.map(String)}addLookupField(o,i){if(!this.isLookupAvailable(o))throw new Error(`Lookup field '${o}' is not available in backend. Available lookups: ${this.availableLookups.join(", ")}`);const d={name:i.name,nameEn:i.nameEn,deprecated:i.deprecated||!1,...i.foreignKey&&{foreignKey:i.foreignKey}};return this.post(`${this.apiURL}/add/${o}`,d,null,!0,this.settingsService.settings.carRegistrationBaseURL).pipe((0,D.U)(f=>f.body||f))}getLookupObjects(o){return this.get(`${this.apiURL}/${o.join(",")}`,null,!0,this.settingsService.settings.carRegistrationBaseURL).pipe((0,D.U)(i=>i.body||i))}getFieldsByLookupName(o){return this.getLookupObjects([o]).pipe((0,D.U)(i=>i[o]||[]))}updateLookupField(o,i){if(!this.isLookupAvailable(o))throw new Error(`Lookup field '${o}' is not available in backend. Available lookups: ${this.availableLookups.join(", ")}`);const d={id:i.id,name:i.name,nameEn:i.nameEn,deprecated:i.deprecated||!1,...i.foreignKey&&{foreignKey:i.foreignKey}};return this.put(`${this.apiURL}/update/${o}`,d,null,!0,this.settingsService.settings.carRegistrationBaseURL).pipe((0,D.U)(f=>f.body||f))}deprecateLookupField(o,i){if(!this.isLookupAvailable(o))throw new Error(`Lookup field '${o}' is not available in backend. Available lookups: ${this.availableLookups.join(", ")}`);return this.put(`${this.apiURL}/deprecate/${o}`,{id:i.id,deprecated:!0},null,!0,this.settingsService.settings.carRegistrationBaseURL).pipe((0,D.U)(f=>f.body||f))}deleteField(o){return this.delete(`${this.apiURL}/delete/${o}`,null,null,!0,this.settingsService.settings.carRegistrationBaseURL).pipe((0,D.U)(i=>i.body||i))}prepareLookupForAdd(o,i,d=!1){return{name:i,nameEn:o,deprecated:d}}prepareLookupForUpdate(o,i,d,f=!1){return{id:o,name:d,nameEn:i,deprecated:f}}prepareLookupForDeprecation(o){return{id:o,deprecated:!0,nameEn:""}}addLookupWithNames(o,i,d){const f=this.prepareLookupForAdd(i,d);return this.addLookupField(o,f)}updateLookupWithNames(o,i,d,f,O=!1){const A=this.prepareLookupForUpdate(i,d,f,O);return this.updateLookupField(o,A)}deprecateLookupById(o,i){const d=this.prepareLookupForDeprecation(i);return this.deprecateLookupField(o,d)}getParentLookupType(o){return this.hierarchyConfig[o]||null}requiresParent(o){return!!this.hierarchyConfig[o]}getRootLookupTypes(){const o=Object.keys(this.hierarchyConfig);return this.availableLookups.map(String).filter(i=>!o.includes(i))}getChildLookupTypes(o){return Object.keys(this.hierarchyConfig).filter(i=>this.hierarchyConfig[i]===o)}}return m.\u0275fac=function(o){return new(o||m)(e.LFG(Z.eN),e.LFG(e.zs3))},m.\u0275prov=e.Yz7({token:m,factory:m.\u0275fac,providedIn:"root"}),m})();var N=c(9085),t=c(6223),I=c(9347),L=c(4486),M=c(9515),S=c(2296),R=c(617),B=c(1962);function V(m,C){if(1&m&&(e.TgZ(0,"option",17),e._uU(1),e.qZA()),2&m){const o=C.$implicit;e.Q6J("value",o.id),e.xp6(1),e.AsE(" ",o.nameEn," ",o.name?"("+o.name+")":""," ")}}const j=function(m){return{parentType:m}};function p(m,C){if(1&m&&(e.TgZ(0,"span",20),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&m){const o=e.oxw(2);e.xp6(1),e.hij(" ",e.xi3(2,1,"lookup_management.noParentFound",e.VKq(4,j,o.getParentLookupType()))," ")}}function U(m,C){if(1&m&&(e.TgZ(0,"div",14)(1,"label",15),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"select",16)(5,"option",17),e._uU(6),e.ALo(7,"translate"),e.qZA(),e.YNc(8,V,2,3,"option",18),e.qZA(),e.YNc(9,p,3,6,"span",19),e.qZA()),2&m){const o=e.oxw();e.xp6(2),e.AsE("",e.lcZ(3,9,"lookup_management.select")," ",o.getParentLookupType(),":"),e.xp6(2),e.ekj("required",o.requiresParent()),e.xp6(1),e.Q6J("value",null),e.xp6(1),e.AsE("",e.lcZ(7,11,"lookup_management.selectOption")," ",o.getParentLookupType()," --"),e.xp6(2),e.Q6J("ngForOf",o.parentLookupData),e.xp6(1),e.Q6J("ngIf",0===o.parentLookupData.length)}}let x=(()=>{class m{constructor(o,i,d,f,O,A){this.formBuilder=o,this.lookupConfigService=i,this.utils=d,this.translate=f,this.dialogRef=O,this.data=A,this.selectedLookupType="",this.parentLookupData=[],this.editFieldId=null,this.initializeForm(),this.selectedLookupType=A.selectedLookupType,this.editFieldId=A.editFieldId}initializeForm(){this.lookupForm=this.formBuilder.group({name:["",t.kI.required],nameEn:["",t.kI.required],deprecated:[!1],parentId:[null]})}ngOnInit(){this.loadParentLookupData(),this.editFieldId&&this.loadFieldForEdit()}loadParentLookupData(){const o=this.getParentLookupType();o?this.loadParentDataSubscription=this.lookupConfigService.getFieldsByLookupName(o).subscribe({next:i=>{this.parentLookupData=Array.isArray(i)?i.filter(d=>!d.deprecated):[]},error:i=>{this.utils.showCustomSnackbar("lookup_management.errorLoadingParentData"),this.parentLookupData=[]}}):this.parentLookupData=[]}loadFieldForEdit(){!this.editFieldId||!this.selectedLookupType||(this.loadFieldDataSubscription=this.lookupConfigService.getFieldsByLookupName(this.selectedLookupType).subscribe({next:o=>{const i=o.find(d=>d.id===this.editFieldId);i?this.populateForm(i):(this.utils.showCustomSnackbar("lookup_management.fieldNotFound"),this.navigateBack())},error:o=>{this.utils.showCustomSnackbar("lookup_management.errorLoadingFieldData"),this.navigateBack()}}))}navigateBack(){this.dialogRef.close()}populateForm(o){this.lookupForm.patchValue({name:o.name||"",nameEn:o.nameEn,deprecated:o.deprecated||!1,parentId:this.extractParentId(o)})}submit(){this.updateField()}updateField(){if(null==this.editFieldId)return;const o=this.lookupForm.value,i=o.name||"",d=o.nameEn||"",f=o.deprecated||!1,O=o.parentId||null;if(!i.trim()||!d.trim())return void this.utils.showCustomSnackbar("lookup_management.bothNamesRequired");if(this.requiresParent()&&!O)return void this.utils.showCustomSnackbar("lookup_management.pleaseSelectParentFirst");const A={id:this.editFieldId,name:i.trim(),nameEn:d.trim(),deprecated:f,foreignKey:O||void 0};this.updateLookupFieldSubscription=this.lookupConfigService.updateLookupField(this.selectedLookupType,A).subscribe({next:$=>{this.utils.showCustomSnackbar("lookup_management.fieldUpdatedSuccessfully"),this.dialogRef.close(!0)},error:$=>{this.utils.showCustomSnackbar("lookup_management.failedToUpdateField")}})}canUpdateField(){const o=this.lookupForm.get("name")?.value,i=this.lookupForm.get("nameEn")?.value,d=this.lookupForm.get("parentId")?.value;return!(!(o&&o.trim()&&i&&i.trim())||this.requiresParent()&&!d)}getUpdateButtonTooltip(){const o=this.lookupForm.get("name")?.value,i=this.lookupForm.get("nameEn")?.value,d=this.lookupForm.get("parentId")?.value;
1return o&&o.trim()&&i&&i.trim()?this.requiresParent()?d?"":this.translate.instant("lookup_management.pleaseSelectParentFirst"):"":this.translate.instant("lookup_management.bothNamesRequired")}requiresParent(){return!!this.selectedLookupType&&this.lookupConfigService.requiresParent(this.selectedLookupType)}getParentLookupType(){return this.selectedLookupType?this.lookupConfigService.getParentLookupType(this.selectedLookupType):null}extractParentId(o){const i=this.getParentLookupType();if(!i)return null;const d=i.toLowerCase();return o[d]&&o[d].id?o[d].id:o.foreignKey||null}ngOnDestroy(){this.unsubscribe()}unsubscribe(){this.loadParentDataSubscription&&(this.loadParentDataSubscription.unsubscribe(),this.loadParentDataSubscription=void 0),this.loadFieldDataSubscription&&(this.loadFieldDataSubscription.unsubscribe(),this.loadFieldDataSubscription=void 0),this.updateLookupFieldSubscription&&(this.updateLookupFieldSubscription.unsubscribe(),this.updateLookupFieldSubscription=void 0)}}return m.\u0275fac=function(o){return new(o||m)(e.Y36(t.qu),e.Y36(w),e.Y36(L.F),e.Y36(M.sK),e.Y36(I.so),e.Y36(I.WI))},m.\u0275cmp=e.Xpm({type:m,selectors:[["app-lookup-config-form-edit"]],decls:24,vars:23,consts:[[1,"formBorderTheme1","defaultForm"],[3,"formGroup"],["lookupFormRef","ngForm"],[1,"dialog-header"],["mat-dialog-title",""],["mat-icon-button","",1,"close-button",3,"click"],["class","form-row parent-selection",4,"ngIf"],[1,"form-row"],["formControlName","name",3,"placeholdertext","ngForm"],["formControlName","nameEn",3,"placeholdertext","ngForm"],[1,"last-button"],[1,"checkbox-label"],["type","checkbox","formControlName","deprecated"],["mat-raised-button","","color","primary",3,"disabled","title","click"],[1,"form-row","parent-selection"],["for","parentSelect"],["id","parentSelect","formControlName","parentId"],[3,"value"],[3,"value",4,"ngFor","ngForOf"],["class","warning-text",4,"ngIf"],[1,"warning-text"]],template:function(o,i){if(1&o&&(e.TgZ(0,"div",0)(1,"form",1,2)(3,"div",3)(4,"h2",4),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"button",5),e.NdJ("click",function(){return i.dialogRef.close()}),e.TgZ(8,"mat-icon"),e._uU(9,"close"),e.qZA()()(),e.YNc(10,U,10,13,"div",6),e.TgZ(11,"div",7),e._UZ(12,"app-text-input",8),e.ALo(13,"translate"),e._UZ(14,"app-text-input",9),e.ALo(15,"translate"),e.TgZ(16,"div",10)(17,"label",11),e._UZ(18,"input",12),e._uU(19),e.ALo(20,"translate"),e.qZA(),e.TgZ(21,"button",13),e.NdJ("click",function(){return i.submit()}),e._uU(22),e.ALo(23,"translate"),e.qZA()()()()()),2&o){const d=e.MAs(2);e.xp6(1),e.Q6J("formGroup",i.lookupForm),e.xp6(4),e.Oqu(e.lcZ(6,13,"lookup_management.editField")),e.xp6(5),e.Q6J("ngIf",i.requiresParent()),e.xp6(2),e.s9C("placeholdertext",e.lcZ(13,15,"lookup_management.arabicNameRequired")),e.Q6J("ngForm",d),e.xp6(2),e.s9C("placeholdertext",e.lcZ(15,17,"lookup_management.englishNameRequired")),e.Q6J("ngForm",d),e.xp6(5),e.hij(" ",e.lcZ(20,19,"lookup_management.deprecated")," "),e.xp6(2),e.ekj("disabled",!i.canUpdateField()),e.Q6J("disabled",!i.canUpdateField())("title",i.getUpdateButtonTooltip()),e.xp6(1),e.hij(" ",e.lcZ(23,21,"lookup_management.save")," ")}},dependencies:[l.sg,l.O5,I.uh,S.lW,S.RK,R.Hw,t._Y,t.YN,t.Kr,t.Wl,t.EJ,t.JJ,t.JL,t.F,t.sg,t.u,B.t,M.X$],styles:[".last-button[_ngcontent-%COMP%]{padding-top:20px;display:flex;justify-content:space-between}.defaultForm[_ngcontent-%COMP%]{overflow:hidden}.dialog-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.dialog-header[_ngcontent-%COMP%] .close-button[_ngcontent-%COMP%]:hover{color:#333;background-color:#f5f5f5}"]}),m})();function z(m,C){if(1&m&&(e.TgZ(0,"option",16),e._uU(1),e.qZA()),2&m){const o=C.$implicit;e.Q6J("value",o.id),e.xp6(1),e.AsE(" ",o.nameEn," ",o.name?"("+o.name+")":""," ")}}const g=function(m){return{parentType:m}};function _(m,C){if(1&m&&(e.TgZ(0,"span",19),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&m){const o=e.oxw(2);e.xp6(1),e.hij(" ",e.xi3(2,1,"lookup_management.noParentFound",e.VKq(4,g,o.getParentLookupType()))," ")}}function v(m,C){if(1&m&&(e.TgZ(0,"div",13)(1,"label",14),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"select",15)(5,"option",16),e._uU(6),e.ALo(7,"translate"),e.qZA(),e.YNc(8,z,2,3,"option",17),e.qZA(),e.YNc(9,_,3,6,"span",18),e.qZA()),2&m){const o=e.oxw();e.xp6(2),e.AsE("",e.lcZ(3,9,"lookup_management.select")," ",o.getParentLookupType(),":"),e.xp6(2),e.ekj("required",o.requiresParent()),e.xp6(1),e.Q6J("value",null),e.xp6(1),e.AsE("",e.lcZ(7,11,"lookup_management.selectOption")," ",o.getParentLookupType()," --"),e.xp6(2),e.Q6J("ngForOf",o.parentLookupData),e.xp6(1),e.Q6J("ngIf",0===o.parentLookupData.length)}}let F=(()=>{class m{constructor(o,i,d,f,O,A){this.formBuilder=o,this.lookupConfigService=i,this.utils=d,this.translate=f,this.dialogRef=O,this.data=A,this.selectedLookupType="",this.parentLookupData=[],this.initializeForm(),this.selectedLookupType=A.selectedLookupType}initializeForm(){this.lookupForm=this.formBuilder.group({name:["",t.kI.required],nameEn:["",t.kI.required],deprecated:[!1],parentId:[null]})}ngOnInit(){this.loadParentLookupData(),this.resetForm()}loadParentLookupData(){const o=this.getParentLookupType();o?this.loadParentDataSubscription=this.lookupConfigService.getFieldsByLookupName(o).subscribe({next:i=>{this.parentLookupData=Array.isArray(i)?i.filter(d=>!d.deprecated):[]},error:i=>{this.utils.showCustomSnackbar("lookup_management.errorLoadingParentData"),this.parentLookupData=[]}}):this.parentLookupData=[]}submit(){this.addField()}addField(){const o=this.lookupForm.value,i=o.name||"",d=o.nameEn||"",f=o.deprecated||!1,O=o.parentId||null;if(!i.trim()||!d.trim())return void this.utils.showCustomSnackbar("lookup_management.bothNamesRequired");if(this.requiresParent()&&!O)return void this.utils.showCustomSnackbar("lookup_management.pleaseSelectParentFirst");const A={name:i.trim(),nameEn:d.trim(),deprecated:f,foreignKey:O||void 0};this.addLookupFieldSubscription=this.lookupConfigService.addLookupField(this.selectedLookupType,A).subscribe({next:$=>{this.resetForm(),this.utils.showCustomSnackbar("lookup_management.fieldAddedSuccessfully"),this.dialogRef.close(!0)},error:$=>{this.utils.showCustomSnackbar("lookup_management.failedToAddField")}})}resetForm(){this.lookupForm.reset({name:"",nameEn:"",deprecated:!1,parentId:null})}requiresParent(){return!!this.selectedLookupType&&this.lookupConfigService.requiresParent(this.selectedLookupType)}getParentLookupType(){return this.selectedLookupType?this.lookupConfigService.getParentLookupType(this.selectedLookupType):null}canAddField(){const o=this.lookupForm.get("name")?.value,i=this.lookupForm.get("nameEn")?.value,d=this.lookupForm.get("parentId")?.value;return!(!(o&&o.trim()&&i&&i.trim())||this.requiresParent()&&!d)}getAddButtonTooltip(){const o=this.lookupForm.get("name")?.value,i=this.lookupForm.get("nameEn")?.value,d=this.lookupForm.get("parentId")?.value;
1return o&&o.trim()&&i&&i.trim()?this.requiresParent()?d?"":this.translate.instant("lookup_management.pleaseSelectParentFirst"):"":this.translate.instant("lookup_management.bothNamesRequired")}ngOnDestroy(){this.unsubscribe()}unsubscribe(){this.loadParentDataSubscription&&(this.loadParentDataSubscription.unsubscribe(),this.loadParentDataSubscription=void 0),this.addLookupFieldSubscription&&(this.addLookupFieldSubscription.unsubscribe(),this.addLookupFieldSubscription=void 0)}}return m.\u0275fac=function(o){return new(o||m)(e.Y36(t.qu),e.Y36(w),e.Y36(L.F),e.Y36(M.sK),e.Y36(I.so),e.Y36(I.WI))},m.\u0275cmp=e.Xpm({type:m,selectors:[["app-lookup-config-form"]],decls:24,vars:23,consts:[[1,"formBorderTheme1","defaultForm"],[3,"formGroup"],["lookupFormRef","ngForm"],[1,"dialog-header"],["mat-icon-button","",1,"close-button",3,"click"],["class","form-row parent-selection",4,"ngIf"],[1,"form-row"],["formControlName","name",3,"placeholdertext","ngForm"],["formControlName","nameEn",3,"placeholdertext","ngForm"],[1,"last-button"],[1,"checkbox-label"],["type","checkbox","formControlName","deprecated"],["mat-raised-button","","color","primary",3,"disabled","title","click"],[1,"form-row","parent-selection"],["for","parentSelect"],["id","parentSelect","formControlName","parentId"],[3,"value"],[3,"value",4,"ngFor","ngForOf"],["class","warning-text",4,"ngIf"],[1,"warning-text"]],template:function(o,i){if(1&o&&(e.TgZ(0,"div",0)(1,"form",1,2)(3,"div",3)(4,"h2"),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"button",4),e.NdJ("click",function(){return i.dialogRef.close()}),e.TgZ(8,"mat-icon"),e._uU(9,"close"),e.qZA()()(),e.YNc(10,v,10,13,"div",5),e.TgZ(11,"div",6),e._UZ(12,"app-text-input",7),e.ALo(13,"translate"),e._UZ(14,"app-text-input",8),e.ALo(15,"translate"),e.TgZ(16,"div",9)(17,"label",10),e._UZ(18,"input",11),e._uU(19),e.ALo(20,"translate"),e.qZA(),e.TgZ(21,"button",12),e.NdJ("click",function(){return i.submit()}),e._uU(22),e.ALo(23,"translate"),e.qZA()()()()()),2&o){const d=e.MAs(2);e.xp6(1),e.Q6J("formGroup",i.lookupForm),e.xp6(4),e.Oqu(e.lcZ(6,13,"lookup_management.addFieldTo")+" "+i.selectedLookupType),e.xp6(5),e.Q6J("ngIf",i.requiresParent()),e.xp6(2),e.s9C("placeholdertext",e.lcZ(13,15,"lookup_management.arabicNameRequired")),e.Q6J("ngForm",d),e.xp6(2),e.s9C("placeholdertext",e.lcZ(15,17,"lookup_management.englishNameRequired")),e.Q6J("ngForm",d),e.xp6(5),e.hij(" ",e.lcZ(20,19,"lookup_management.deprecated")," "),e.xp6(2),e.ekj("disabled",!i.canAddField()),e.Q6J("disabled",!i.canAddField())("title",i.getAddButtonTooltip()),e.xp6(1),e.hij(" ",e.lcZ(23,21,"lookup_management.addField")," ")}},dependencies:[l.sg,l.O5,S.lW,S.RK,R.Hw,t._Y,t.YN,t.Kr,t.Wl,t.EJ,t.JJ,t.JL,t.F,t.sg,t.u,B.t,M.X$],styles:[".last-button[_ngcontent-%COMP%]{padding-top:20px;display:flex;justify-content:space-between}.defaultForm[_ngcontent-%COMP%]{overflow:hidden}.dialog-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.dialog-header[_ngcontent-%COMP%] .close-button[_ngcontent-%COMP%]:hover{color:#333;background-color:#f5f5f5}"]}),m})();var T=c(4170),Y=c(8525),ot=c(3680);function J(m,C){if(1&m&&(e.TgZ(0,"mat-option",11),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&m){const o=C.$implicit;e.Q6J("value",o),e.xp6(1),e.hij(" ",e.lcZ(2,2,"lookup_management.lookupTypes."+o)," ")}}function G(m,C){if(1&m){const o=e.EpF();e.TgZ(0,"div",14)(1,"mat-icon",15),e.NdJ("click",function(){const f=e.CHM(o).$implicit,O=e.oxw(2);return e.KtG(O.edit(f))}),e.ALo(2,"translate"),e._uU(3," edit "),e.qZA()()}2&m&&(e.xp6(1),e.s9C("title",e.lcZ(2,1,"lookup_management.edit")))}function at(m,C){if(1&m&&(e.TgZ(0,"siren-table",12),e.YNc(1,G,4,3,"div",13),e.qZA()),2&m){const o=e.oxw();e.Q6J("dataSource",o.lookupFieldsDataSource)("displayedColumns",o.columns)("allowPagination",!0)("allowFiltering",!0),e.xp6(1),e.Q6J("appCustomColsColumnDef","actions")}}let it=(()=>{class m{constructor(o,i,d,f,O,A){this.lookupConfigService=o,this.cdr=i,this.utils=d,this.translate=f,this.route=O,this.dialog=A,this.availableLookupTypes=[],this.selectedLookupType="",this.lookupFields=[],this._lookupFieldsDisplay=[],this.showDeprecated=!0,this.parentLookupData=[],this.defaultParams={page:0,size:10},this.columns=[],this.lookupFieldsDataSource=new N.wC(this._lookupFieldsDisplay,this.defaultParams)}ngOnInit(){this.initializeLookupTypes(),this.queryParamsSubscription=this.route.queryParams.subscribe(o=>{o.type&&this.availableLookupTypes.includes(o.type)?this.selectedLookupType=o.type:this.availableLookupTypes.length>0&&(this.selectedLookupType=this.availableLookupTypes[0]),this.updateColumns(),this.onLookupTypeChange()})}initializeLookupTypes(){this.availableLookupTypes=this.lookupConfigService.getAvailableLookups()}onLookupTypeChange(){this.updateColumns(),this.fetchFields(),this.loadParentLookupData()}loadParentLookupData(){const o=this.getParentLookupType();o?this.loadParentDataSubscription=this.lookupConfigService.getFieldsByLookupName(o).subscribe({next:i=>{this.parentLookupData=Array.isArray(i)?i.filter(d=>!d.deprecated):[]},error:i=>{this.utils.showCustomSnackbar("lookup_management.errorLoadingParentData"),this.parentLookupData=[]}}):this.parentLookupData=[]}onShowDeprecatedChanged(){this.updateTableData()}edit(o){this.dialog.open(x,{width:"500px",maxWidth:"90vw",disableClose:!1,data:{editFieldId:o.id,selectedLookupType:this.selectedLookupType}}).afterClosed().subscribe(d=>{!0===d&&this.fetchFields()})}navigateToForm(){this.dialog.open(F,{width:"500px",maxWidth:"90vw",disableClose:!1,data:{selectedLookupType:this.selectedLookupType}}).afterClosed().subscribe(i=>{!0===i&&this.fetchFields()})}deprecateField(o){this.deprecateFieldSubscription=this.lookupConfigService.deprecateLookupField(this.selectedLookupType,{id:o.id,nameEn:o.nameEn}).subscribe({next:d=>{this.fetchFields(),this.utils.showCustomSnackbar("lookup_management.fieldDeprecatedSuccessfully")},error:d=>{this.utils.showCustomSnackbar("lookup_management.failedToDeprecateField")}})}fetchFields(){this.selectedLookupType&&(this.refreshDataSubscription=this.lookupConfigService.getFieldsByLookupName(this.selectedLookupType).subscribe({next:o=>{this.lookupFields=Array.isArray(o)?o:[],this.updateTableData(),this.cdr.detectChanges()},error:o=>{this.utils.showCustomSnackbar("lookup_management.errorFetchingFields"),this.lookupFields=[],this.updateTableData(),this.cdr.detectChanges()}}))}updateTableData(){const o=this.getFilteredFields();this._lookupFieldsDisplay=o.map(i=>({...i,actions:!0})),this.lookupFieldsDataSource.loadData(this._lookupFieldsDisplay,this.defaultParams)}updateColumns(){const i=[{columnDef:"name",header:this.translate.instant("lookup_management.arabicName"),cellValue:d=>d.name||"-"},{columnDef:"nameEn",header:this.translate.instant("lookup_management.englishName"),cellValue:d=>d.nameEn}];if(this.requiresParent()){const d=this.getParentLookupType(),f=this.translate.instant(d?"lookup_management.lookupTypes."+d:"lookup_management.parent");i.push({columnDef:"parentName",header:f,cellValue:O=>this.getParentDisplayName(O)})}i.push({columnDef:"status",header:this.translate.instant("lookup_management.status"),cellValue:d=>this.translate.instant(d.deprecated?"lookup_management.deprecated":"lookup_management.active")},{columnDef:"actions",header:this.translate.instant("lookup_management.actions"),cellValue:d=>"actions",customColumn:!0}),this.columns=i}getFilteredFields(){return this.showDeprecated?this.lookupFields:this.lookupFields.filter(o=>!o.deprecated)}requiresParent(){return this.lookupConfigService.requiresParent(this.selectedLookupType)}getParentLookupType(){return this.lookupConfigService.getParentLookupType(this.selectedLookupType)}getParentDisplayName(o){const i=this.getParentFromNestedObject(o);if(i)return i;const d=this.extractParentId(o);if(!d)return"-";const f=this.parentLookupData.find(O=>O.id===d);return f?f.nameEn:`ID: ${d}`}extractParentId(o){const i=this.getParentLookupType();if(!i)return null;const d=i.toLowerCase();return o[d]&&o[d].id?o[d].id:o.foreignKey||null}getParentFromNestedObject(o){const i=this.getParentLookupType();if(!i)return null;const d=i.toLowerCase();if(o[d]){const f=o[d];return f.nameEn||f.name||`ID: ${f.id}`}return null}ngOnDestroy(){this.unsubscribe()}unsubscribe(){this.queryParamsSubscription&&(this.queryParamsSubscription.unsubscribe(),this.queryParamsSubscription=void 0),this.loadParentDataSubscription&&(this.loadParentDataSubscription.unsubscribe(),this.loadParentDataSubscription=void 0),this.deprecateFieldSubscription&&(this.deprecateFieldSubscription.unsubscribe(),this.deprecateFieldSubscription=void 0),this.refreshDataSubscription&&(this.refreshDataSubscription.unsubscribe(),this.refreshDataSubscription=void 0)}}return m.\u0275fac=function(o){return new(o||m)(e.Y36(w),e.Y36(e.sBO),e.Y36(L.F),e.Y36(M.sK),e.Y36(P.gz),e.Y36(I.uw))},m.\u0275cmp=e.Xpm({type:m,selectors:[["app-lookup-config-listing"]],decls:16,vars:12,consts:[[1,"lookup-manager"],[1,"control-rows"],[1,"type-select-group"],["appearance","outline",1,"custom-type-select"],[1,"mat-blue"],[3,"value","valueChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[1,"add-btn-group"],["mat-raised-button","","type","button",1,"custom-add-btn",3,"title","click"],[1,"list-section"],["class","siren-table-one",3,"dataSource","displayedColumns","allowPagination","allowFiltering",4,"ngIf"],[3,"value"],[1,"siren-table-one",3,"dataSource","displayedColumns","allowPagination","allowFiltering"],["class","buttons",4,"appCustomCols","appCustomColsColumnDef"],[1,"buttons"],[1,"edit-icon",3,"title","click"]],template:function(o,i){1&o&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"mat-form-field",3)(4,"mat-label",4),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"mat-select",5),e.NdJ("valueChange",function(f){return i.selectedLookupType=f})("selectionChange",function(){return i.onLookupTypeChange()}),e.YNc(8,J,3,4,"mat-option",6),e.qZA()()(),e.TgZ(9,"div",7)(10,"button",8),e.NdJ("click",function(){return i.navigateToForm()}),e.ALo(11,"translate"),e._uU(12),e.ALo(13,"translate"),e.qZA()()(),e.TgZ(14,"div",9),e.YNc(15,at,2,5,"siren-table",10),e.qZA()()),2&o&&(e.xp6(5),e.Oqu(e.l
1cZ(6,6,"lookup_management.selectType")),e.xp6(2),e.Q6J("value",i.selectedLookupType),e.xp6(1),e.Q6J("ngForOf",i.availableLookupTypes),e.xp6(2),e.s9C("title",e.lcZ(11,8,"general.add")),e.xp6(2),e.hij("",e.lcZ(13,10,"general.add")," +"),e.xp6(3),e.Q6J("ngIf",i.getFilteredFields().length>0))},dependencies:[l.sg,l.O5,T.KE,T.hX,Y.gD,ot.ey,S.lW,R.Hw,N.Cx,N.F6,M.X$],styles:[".table-container[_ngcontent-%COMP%]{margin-top:1rem;width:100%}.table-container[_ngcontent-%COMP%] .add-btn[_ngcontent-%COMP%]{cursor:pointer;background-color:#015586;color:#fff;padding:.5rem 1rem;border-radius:.8rem;border:1px solid #015586;font-size:.875rem;transition:all .3s ease}.table-container[_ngcontent-%COMP%] .add-btn[_ngcontent-%COMP%]:hover{background-color:#0a6ebd}.buttons[_ngcontent-%COMP%]{display:flex;gap:.5rem;align-items:center}.edit-button[_ngcontent-%COMP%]{cursor:pointer;padding:.375rem .75rem;border-radius:.8rem;background-color:transparent;font-size:.875rem;transition:all .3s ease}.edit-button[_ngcontent-%COMP%]:hover{font-weight:600}.edit-button[_ngcontent-%COMP%]{border:1px solid #D9D9D9;color:#d9d9d9}.edit-button[_ngcontent-%COMP%]:hover{background-color:#d9d9d91a}.control-rows[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;gap:2rem;width:100%;justify-content:space-between;padding-bottom:10px}.control-rows[_ngcontent-%COMP%] .custom-add-btn[_ngcontent-%COMP%]{background-color:#015586!important;color:#fff!important}.control-rows[_ngcontent-%COMP%] .custom-add-btn[_ngcontent-%COMP%]:hover{background-color:#013d5c!important}.control-rows[_ngcontent-%COMP%] .custom-type-select[_ngcontent-%COMP%]{color:red}.control-rows[_ngcontent-%COMP%] .custom-type-select[_ngcontent-%COMP%] .mat-form-field[_ngcontent-%COMP%]{width:100%}.control-rows[_ngcontent-%COMP%] .mat-blue[_ngcontent-%COMP%]{color:#013d5c}.custom-type-select[_ngcontent-%COMP%]{width:249px}"]}),m})();var rt=c(1038),W=c(4664),q=c(2096),lt=c(6759);function ct(m,C){if(1&m&&(e.TgZ(0,"div",7)(1,"div",8),e._uU(2),e.qZA(),e.TgZ(3,"div",9),e._uU(4),e.qZA()()),2&m){const o=C.$implicit;e.xp6(2),e.hij(" ",o.key," "),e.xp6(2),e.hij(" ",o.value," ")}}let st=(()=>{class m{constructor(o,i,d,f){this.route=o,this.lookupConfigService=i,this.translationService=d,this.router=f,this.lookupInfos=[],this.generalInfos=[],this.backPath=rt.q.MANAGEMENT_LOOKUP_CONFIG,this.lookupItem=null}ngOnInit(){this.lookupDataSubscription=this.route.paramMap.pipe((0,W.w)(o=>{const i=o.get("id"),d=o.get("type")||this.route.snapshot.queryParams.type;return i&&d?this.lookupConfigService.getFieldsByLookupName(d).pipe((0,W.w)(f=>{const O=f.find(A=>A.id?.toString()===i);return(0,q.of)(O||null)})):(console.error("Missing ID or lookup type parameters"),(0,q.of)(null))})).subscribe({next:o=>{o?(this.lookupItem=o,this.prepareLookupInfos(o)):console.error("Lookup item not found")},error:o=>{console.error("Error fetching lookup item:",o)}})}prepareLookupInfos(o){this.lookupInfos=Object.entries(o).map(([i,d])=>({key:i,value:d})),this.generalInfos=[],this.lookupInfos.forEach(i=>{"id"===i.key&&this.generalInfos.push({key:this.translationService.instant("lookup-config.id"),value:i.value}),"name"===i.key&&this.generalInfos.push({key:this.translationService.instant("lookup-config.nameArabic"),value:i.value||"N/A"}),"nameEn"===i.key&&this.generalInfos.push({key:this.translationService.instant("lookup-config.nameEnglish"),value:i.value}),"type"===i.key&&this.generalInfos.push({key:this.translationService.instant("lookup-config.type"),value:i.value}),"deprecated"===i.key&&this.generalInfos.push({key:this.translationService.instant("lookup-config.status"),value:this.translationService.instant(i.value?"lookup-config.deprecated":"lookup-config.active")}),"foreignKey"===i.key&&this.generalInfos.push({key:this.translationService.instant("lookup-config.parentId"),value:i.value||"N/A"}),"mouhafaza"===i.key&&this.generalInfos.push({key:this.translationService.instant("lookup-config.mouhafaza"),value:i.value?`${i.value.nameEn} (${i.value.name||"N/A"})`:"N/A"}),"kadaa"===i.key&&this.generalInfos.push({key:this.translationService.instant("lookup-config.kadaa"),value:i.value?`${i.value.nameEn} (${i.value.name||"N/A"})`:"N/A"})})}ngOnDestroy(){this.unsubscribe()}unsubscribe(){this.lookupDataSubscription&&(this.lookupDataSubscription.unsubscribe(),this.lookupDataSubscription=void 0)}}return m.\u0275fac=function(o){return new(o||m)(e.Y36(P.gz),e.Y36(w),e.Y36(M.sK),e.Y36(P.F0))},m.\u0275cmp=e.Xpm({type:m,selectors:[["app-lookup-config-view"]],decls:9,vars:6,consts:[[1,"lookup-config-view"],["title","lookup-config.lookup_information",3,"backPath","confirmActionOnBack"],[1,"lookup-view","defaultForm","formBorderTheme1"],[1,"default-form-style"],[1,"sub-title"],[1,"two-fields-grid"],["class","field",4,"ngFor","ngForOf"],[1,"field"],[1,"field-name"],[1,"field-value"]],template:function(o,i){1&o&&(e.TgZ(0,"div",0),e._UZ(1,"app-page-title",1),e.TgZ(2,"div",2)(3,"div",3)(4,"div",4),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"div",5),e.YNc(8,ct,5,2,"div",6),e.qZA()()()()),2&o&&(e.xp6(1),e.Q6J("backPath",i.backPath)("confirmActionOnBack",!1),e.xp6(4),e.Oqu(e.l
1cZ(6,4,"lookup-config.general_info")),e.xp6(3),e.Q6J("ngForOf",i.generalInfos))},dependencies:[l.sg,lt.T,M.X$]}),m})();var H=c(78),X=c(3385);const tt=[{path:"",component:it,canActivate:[(0,H.UG)(X.j.CAR_COMPANY_MGT)]},{path:"view/:id",component:st,canActivate:[(0,H.UG)(X.j.CAR_COMPANY_GET)]}];let et=(()=>{class m{}return m.\u0275fac=function(o){return new(o||m)},m.\u0275mod=e.oAB({type:m}),m.\u0275inj=e.cJS({imports:[P.Bz.forChild(tt),P.Bz]}),m})();var dt=c(8360);let Q=(()=>{class m{}return m.\u0275fac=function(o){return new(o||m)},m.\u0275mod=e.oAB({type:m}),m.\u0275inj=e.cJS({imports:[l.ez,et,dt.m,N.Ix,t.UX,t.u5]}),m})()},6269:(nt,K,c)=>{c.r(K),c.d(K,{ManagementModule:()=>Ft});var l=c(6814),P=c(8109),D=c(8429),E=c(78),b=c(3385),e=c(9085),Z=c(6025),w=c(8264),N=c(2874),t=c(5879);let I=(()=>{class r{constructor(n){this.injector=n,this.drivingschools=[],this.defaultParams={page:0,size:20},this._columns=[{columnDef:"ownerFirstName",header:"ownerFirstName",cellValue:a=>a.ownerFirstName,allowSorting:!0},{columnDef:"ownerLastName",header:"ownerLastName",cellValue:a=>a.ownerLastName,allowSorting:!0},{columnDef:"drivingSchoolName",header:"drivingSchoolName",cellValue:a=>a.drivingSchoolName,allowSorting:!0},{columnDef:"phoneNumber",header:"phoneNumber",cellValue:a=>a.contacts.find(s=>s.contactType==N.u.MOBILE).value,allowSorting:!0},{columnDef:"email",header:"email",cellValue:a=>a.contacts.find(s=>s.contactType==N.u.EMAIL).value,allowSorting:!0},{columnDef:"certificateNumber",header:"certificateNumber",cellValue:a=>a.certificateNumber,allowSorting:!0}],this.drivingschoolsFeDataSource=new e.wC(this.drivingschools,this.defaultParams),this.tableAFeatures=[Z.b.SORTING,Z.b.PAGINATION,Z.b.FILTERING,Z.b.DELETE],this._drivingschoolService=this.injector.get(w.o),this.router=this.injector.get(P.F0),this.route=this.injector.get(P.gz)}ngOnInit(){this._drivingschoolService.getAll().subscribe(n=>{this.drivingschoolsFeDataSource.loadData(n)},n=>{})}print(n){console.log(n)}printNewData(n){console.log(event)}deleteDrivingSchool(n){const a=this.drivingschoolsFeDataSource.getData();a.splice(n.index,1),this.drivingschoolsFeDataSource.loadData(a)}handleRowClick(n){this.router.navigate(["../details/"+n.row.id],{relativeTo:this.route})}onAdd(){this.router.navigate(["../add"],{relativeTo:this.route})}goBack(){this.router.navigate(["../../"],{relativeTo:this.route})}}return r.\u0275fac=function(n){return new(n||r)(t.Y36(t.zs3))},r.\u0275cmp=t.Xpm({type:r,selectors:[["ng-component"]],decls:0,vars:0,template:function(n,a){},encapsulation:2}),r})();var L=c(1038),M=c(9515),S=c(2296),R=c(5704),B=c(6759);let V=(()=>{class r extends I{constructor(n,a){super(n),this.injector=n,this.translateService=a,this.PermissionsEnum=b.j}ngOnInit(){this._columns[0].header=this.translateService.instant("drivingSchool.ownerFName"),this._columns[1].header=this.translateService.instant("drivingSchool.ownerLName"),this._columns[2].header=this.translateService.instant("drivingSchool.drivingSchoolName"),this._columns[3].header=this.translateService.instant("general.contactInfo.mobileNumber"),this._columns[4].header=this.translateService.instant("drivingSchool.email"),this._columns[5].header=this.translateService.instant("drivingSchool.certificateNumber"),this._drivingschoolService.getAll().subscribe(n=>{this.drivingschoolsFeDataSource.loadData(n)},n=>{})}onAdd(){this.router.navigate(["../drivingschools/new"],{relativeTo:this.route})}handleRowClick(n){n.row.contacts.find(s=>"EMAIL"===s.contactType),this.router.navigateByUrl(L.q.MANAGEMENT_DRIVINGSCHOOL+"/"+n.row.id)}}return r.\u0275fac=function(n){return new(n||r)(t.Y36(t.zs3),t.Y36(M.sK))},r.\u0275cmp=t.Xpm({type:r,selectors:[["app-drivingschool-list"]],features:[t.qOj],decls:8,vars:14,consts:[["title","drivingSchool.title",3,"hideBack"],["mat-raised-button","","type","button",3,"needsPermissions","title","click"],[1,"container",3,"needsPermissions"],[1,"siren-table-one",3,"dataSource","allowSingleSelection","displayedColumns","allowPagination","allowFiltering","onRowClick"]],template:function(n,a){1&n&&(t.TgZ(0,"div")(1,"app-page-title",0)(2,"button",1),t.NdJ("click",function(){return a.onAdd()}),t.ALo(3,"translate"),t._uU(4),t.ALo(5,"translate"),t.qZA()(),t.TgZ(6,"div",2)(7,"siren-table",3),t.NdJ("onRowClick",function(h){return a.handleRowClick(h)}),t.qZA()()()),2&n&&(t.xp6(1),t.Q6J("hideBack",!0),t.xp6(1),t.s9C("title",t.lcZ(3,10,"general.add")),t.Q6J("needsPermissions",a.PermissionsEnum.DRIVING_SCHOOL_CREATE),t.xp6(2),t.hij("",t.lcZ(5,12,"general.add")," +"),t.xp6(2),t.Q6J("needsPermissions",a.PermissionsEnum.DRIVING_SCHOOL_READ),t.xp6(1),t.Q6J("dataSource",a.drivingschoolsFeDataSource)("allowSingleSelection",!1)("displayedColumns",a._columns)("allowPagination",!0)("allowFiltering",!0))},dependencies:[S.lW,e.Cx,R.J,B.T,M.X$],styles:[".mdl-card__title[_ngcontent-%COMP%]{margin-right:40px;
1display:flex;align-items:flex-end;justify-content:space-between}.mdl-card__title-text[_ngcontent-%COMP%]{margin-bottom:0%}"]}),r})();var j=c(7625),p=c(6223),U=c(9347),x=c(1962),z=c(1693);const g=function(r){return{min:r,max:"50"}};let _=(()=>{class r{constructor(n,a){this.dialogRef=n,this.data=a}ngOnInit(){this.initForm(),this.editForm.patchValue(this.data.data)}onFileClicked(n){}onDeleteFile(n){}submitButtonClicked(){this.dialogRef.close(this.editForm.value)}closeButtonClicked(){this.dialogRef.close(null)}initForm(){const n={name:new p.NI(null,[p.kI.required,p.kI.minLength(2),p.kI.maxLength(50)]),logo:new p.NI(null,[])};this.editForm=new p.cw(n)}}return r.\u0275fac=function(n){return new(n||r)(t.Y36(U.so),t.Y36(U.WI))},r.\u0275cmp=t.Xpm({type:r,selectors:[["car-brand-edit-dialog"]],decls:15,vars:24,consts:[[1,"edit-dialog"],[1,"car-brand-form-edit",3,"formGroup"],["formControlName","name","maxlength","50",1,"input",3,"placeholdertext","ngForm","customErrorMessage"],["formControlName","logo","allowedFileExtensions",".png",3,"multipleUpload","placeholdertext","ngForm","fileNameClick","fileDeletionClick"],[1,"action-buttons"],["mat-raised-button","",1,"btn",3,"click"]],template:function(n,a){1&n&&(t.TgZ(0,"div",0)(1,"form",1),t._UZ(2,"app-text-input",2),t.ALo(3,"translate"),t.ALo(4,"translate"),t.ALo(5,"translate"),t.TgZ(6,"file-upload-input",3),t.NdJ("fileNameClick",function(h){return a.onFileClicked(h)})("fileDeletionClick",function(h){return a.onDeleteFile(h)}),t.ALo(7,"translate"),t.qZA()(),t.TgZ(8,"div",4)(9,"button",5),t.NdJ("click",function(){return a.submitButtonClicked()}),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.TgZ(12,"button",5),t.NdJ("click",function(){return a.closeButtonClicked()}),t._uU(13),t.ALo(14,"translate"),t.qZA()()()),2&n&&(t.xp6(1),t.Q6J("formGroup",a.editForm),t.xp6(1),t.s9C("placeholdertext",t.lcZ(3,9,"car_brand.carBrandName")),t.Q6J("ngForm",a.editForm)("customErrorMessage",t.xi3(4,11,"form_errors.minMax",t.VKq(22,g,t.lcZ(5,14,"form_errors.twoLetters")))),t.xp6(4),t.s9C("placeholdertext",t.lcZ(7,16,"car_brand.carBrandLogo")),t.Q6J("multipleUpload",!1)("ngForm",a.editForm),t.xp6(4),t.hij(" ",t.lcZ(11,18,"general.submit")," "),t.xp6(3),t.hij(" ",t.lcZ(14,20,"general.close")," "))},dependencies:[S.lW,p._Y,p.JJ,p.JL,p.nD,p.F,p.sg,p.u,x.t,z.Y,M.X$],styles:['@font-face{font-family:DroidKufi;src:url(assets/fonts/DroidKufi-Regular.ttf) format("truetype")}@font-face{font-family:DroidKufiBold;src:url(assets/fonts/DroidKufi-Bold.ttf) format("truetype")}.mat-ripple[_ngcontent-%COMP%]{overflow:hidden;position:relative}.mat-ripple[_ngcontent-%COMP%]:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded[_ngcontent-%COMP%]{overflow:visible}.mat-ripple-element[_ngcontent-%COMP%]{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0,0,.2,1);transform:scale3d(0,0,0)}.cdk-high-contrast-active[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%]{display:none}.cdk-visually-hidden[_ngcontent-%COMP%]{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl][_ngcontent-%COMP%] .cdk-visually-hidden[_ngcontent-%COMP%]{left:auto;right:0}.cdk-overlay-container[_ngcontent-%COMP%], .cdk-global-overlay-wrapper[_ngcontent-%COMP%]{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container[_ngcontent-%COMP%]{position:fixed;z-index:1000}.cdk-overlay-container[_ngcontent-%COMP%]:empty{display:none}.cdk-global-overlay-wrapper[_ngcontent-%COMP%]{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane[_ngcontent-%COMP%]{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;max-width:100%;max-height:100%}.cdk-overlay-backdrop[_ngcontent-%COMP%]{position:absolute;inset:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:transparent;transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:1}.cdk-high-contrast-active[_ngcontent-%COMP%] .cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:.6}.cdk-overlay-dark-backdrop[_ngcontent-%COMP%]{background:rgba(0,0,0,.32)}.cdk-overlay-transparent-backdrop[_ngcontent-%COMP%]{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation[_ngcontent-%COMP%]{transition:none}.cdk-overlay-connected-position-bounding-box[_ngcontent-%COMP%]{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock[_ngcontent-%COMP%]{position:fixed;width:100%;overflow-y:scroll}textarea.cdk-textarea-autosize[_ngcontent-%COMP%]{resize:none}textarea.cdk-textarea-autosize-measuring[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:auto!important;overflow:hidden!important}textarea.cdk-textarea-autosize-measuring-firefox[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:0!important}@keyframes _ngcontent-%COMP%_cdk-text-field-autofill-start{}@keyframes _ngcontent-%COMP%_cdk-text-field-autofill-end{}
1.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:-webkit-autofill{animation:_ngcontent-%COMP%_cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:not(:-webkit-autofill){animation:_ngcontent-%COMP%_cdk-text-field-autofill-end 0s 1ms}.mat-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-focus-indicator[_ngcontent-%COMP%]:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border:var(--mat-focus-indicator-border-width, 3px) var(--mat-focus-indicator-border-style, solid) var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator[_ngcontent-%COMP%]:focus:before{content:""}.cdk-high-contrast-active[_ngcontent-%COMP%]{--mat-focus-indicator-display: block}.mat-mdc-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-mdc-focus-indicator[_ngcontent-%COMP%]:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-mdc-focus-indicator-display, none);border:var(--mat-mdc-focus-indicator-border-width, 3px) var(--mat-mdc-focus-indicator-border-style, solid) var(--mat-mdc-focus-indicator-border-color, transparent);border-radius:var(--mat-mdc-focus-indicator-border-radius, 4px)}.mat-mdc-focus-indicator[_ngcontent-%COMP%]:focus:before{content:""}.cdk-high-contrast-active[_ngcontent-%COMP%]{--mat-mdc-focus-indicator-display: block}html[_ngcontent-%COMP%]{--mat-option-label-text-font: DroidKufi;--mat-option-label-text-line-height: 24px;--mat-option-label-text-size: 16px;--mat-option-label-text-tracking: .03125em;--mat-option-label-text-weight: 400}html[_ngcontent-%COMP%]{--mat-optgroup-label-text-font: DroidKufi;--mat-optgroup-label-text-line-height: 24px;--mat-optgroup-label-text-size: 16px;--mat-optgroup-label-text-tracking: .03125em;--mat-optgroup-label-text-weight: 400}.mat-mdc-card[_ngcontent-%COMP%]{--mat-card-title-text-font: DroidKufi;--mat-card-title-text-line-height: 32px;--mat-card-title-text-size: 20px;--mat-card-title-text-tracking: .0125em;--mat-card-title-text-weight: 500;--mat-card-subtitle-text-font: DroidKufi;--mat-card-subtitle-text-line-height: 22px;--mat-card-subtitle-text-size: 14px;--mat-card-subtitle-text-tracking: .0071428571em;--mat-card-subtitle-text-weight: 500}.mat-mdc-tooltip[_ngcontent-%COMP%]{--mdc-plain-tooltip-supporting-text-font: DroidKufi;--mdc-plain-tooltip-supporting-text-size: 12px;--mdc-plain-tooltip-supporting-text-weight: 400;--mdc-plain-tooltip-supporting-text-tracking: .0333333333em}.mat-mdc-form-field-infix[_ngcontent-%COMP%]{min-height:56px}.mat-mdc-text-field-wrapper[_ngcontent-%COMP%] .mat-mdc-form-field-flex[_ngcontent-%COMP%] .mat-mdc-floating-label[_ngcontent-%COMP%]{top:28px}.mat-mdc-text-field-wrapper.mdc-text-field--outlined[_ngcontent-%COMP%] .mdc-notched-outline--upgraded[_ngcontent-%COMP%] .mdc-floating-label--float-above[_ngcontent-%COMP%]{--mat-mdc-form-field-label-transform: translateY( -34.75px) scale(var(--mat-mdc-form-field-floating-label-scale, .75));transform:var(--mat-mdc-form-field-label-transform)}.mat-mdc-text-field-wrapper.mdc-text-field--outlined[_ngcontent-%COMP%] .mat-mdc-form-field-infix[_ngcontent-%COMP%]{padding-top:16px;padding-bottom:16px}.mat-mdc-text-field-wrapper[_ngcontent-%COMP%]:not(.mdc-text-field--outlined) .mat-mdc-form-field-infix[_ngcontent-%COMP%]{padding-top:24px;padding-bottom:8px}.mdc-text-field--no-label[_ngcontent-%COMP%]:not(.mdc-text-field--outlined):not(.mdc-text-field--textarea) .mat-mdc-form-field-infix[_ngcontent-%COMP%]{padding-top:16px;padding-bottom:16px}.mdc-text-field__input[_ngcontent-%COMP%], .mdc-text-field__affix[_ngcontent-%COMP%]{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, DroidKufi));font-size:var(--mdc-typography-subtitle1-font-size, 16px);font-weight:var(--mdc-typography-subtitle1-font-weight, 400);letter-spacing:var(--mdc-typography-subtitle1-letter-spacing, .009375em);-webkit-text-decoration:var(--mdc-typography-subtitle1-text-decoration, inherit);text-decoration:var(--mdc-typography-subtitle1-text-decoration, inherit);text-transform:var(--mdc-typography-subtitle1-text-transform, none)}.mdc-text-field--textarea[_ngcontent-%COMP%] .mdc-text-field__input[_ngcontent-%COMP%]{line-height:1.5rem}.mdc-floating-label[_ngcontent-%COMP%]{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, DroidKufi));font-size:var(--mdc-typography-subtitle1-font-size, 16px);font-weight:var(--mdc-typography-subtitle1-font-weight, 400);letter-spacing:var(--mdc-typography-subtitle1-letter-spacing, .009375em);-webkit-text-decoration:var(--mdc-typography-subtitle1-text-decoration, inherit);text-decoration:var(--mdc-typography-subtitle1-text-decoration, inherit);text-transform:var(--mdc-typography-subtitle1-text-transform, none)}.mat-mdc-form-field-subscript-wrapper[_ngcontent-%COMP%], .mat-mdc-form-field-bottom-align[_ngcontent-%COMP%]:before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-caption-font-family, var(--mdc-typography-font-family, DroidKufi));font-size:var(--mdc-typography-caption-font-size, 12px);line-height:var(--mdc-typography-caption-line-height, 20px);font-weight:var(--mdc-typography-caption-font-weight, 400);letter-spacing:var(--mdc-typography-caption-letter-spacing, .0333333333em);-webkit-text-decoration:var(--mdc-typography-caption-text-decoration, inherit);text-decoration:var(--mdc-typography-caption-text-decoration, inherit);text-transform:var(--mdc-typography-caption-text-transform, none)}.mat-mdc-form-field[_ngcontent-%COMP%], .mat-mdc-floating-label[_ngcontent-%COMP%]{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-body1-font-family, var(--mdc-typography-font-family, DroidKufi));font-size:var(--mdc-typography-body1-font-size, 16px);line-height:var(--mdc-typography-body1-line-height, 24px);font-weight:var(--mdc-typography-body1-font-weight, 400);letter-spacing:var(--mdc-typography-body1-letter-spacing, .03125em);-webkit-text-decoration:var(--mdc-typography-body1-text-decoration, inherit);text-decoration:var(--mdc-typography-body1-text-decoration, inherit);text-transform:var(--mdc-typography-body1-text-transform, none)}.mat-mdc-form-field[_ngcontent-%COMP%] .mdc-text-field--outlined[_ngcontent-%COMP%] .mdc-floating-label--float-above[_ngcontent-%COMP%]{font-size:calc(16px * var(--mat-mdc-form-field-floating-label-scale, .75))}.mat-mdc-form-field[_ngcontent-%COMP%] .mdc-text-field--outlined[_ngcontent-%COMP%] .mdc-notched-outline--upgraded[_ngcontent-%COMP%] .mdc-floating-label--float-above[_ngcontent-%COMP%]{font-size:16px}html[_ngcontent-%COMP%]{--mat-select-trigger-text-font: DroidKufi;--mat-select-trigger-text-line-height: 24px;--mat-select-trigger-text-size: 16px;--mat-select-trigger-text-tracking: .03125em;--mat-select-trigger-text-weight: 400}.mat-mdc-dialog-container[_ngcontent-%COMP%]{--mdc-dialog-subhead-font: DroidKufi;--mdc-dialog-subhead-line-height: 32px;--mdc-dialog-subhead-size: 20px;--mdc-dialog-subhead-weight: 500;--mdc-dialog-subhead-tracking: .0125em;--mdc-dialog-supporting-text-font: DroidKufi;--mdc-dialog-supporting-text-line-height: 24px;--mdc-dialog-supporting-text-size: 16px;--mdc-dialog-supporting-text-weight: 400;--mdc-dialog-supporting-text-tracking: .03125em}.mat-mdc-chip.mat-mdc-standard-chip[_ngcontent-%COMP%]{--mdc-chip-container-height: 32px}.mat-mdc-standard-chip[_ngcontent-%COMP%]{--mdc-chip-label-text-font: DroidKufi;--mdc-chip-label-text-line-height: 20px;--mdc-chip-label-text-size: 14px;--mdc-chip-label-text-tracking: .0178571429em;--mdc-chip-label-text-weight: 400}.mat-mdc-slide-toggle[_ngcontent-%COMP%]{--mdc-switch-state-layer-size: 48px}.mdc-form-field[_ngcontent-%COMP%]{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, DroidKufi));font-size:var(--mdc-typography-body2-font-size, 14px);line-height:var(--mdc-typography-body2-line-height, 20px);
1font-weight:var(--mdc-typography-body2-font-weight, 400);letter-spacing:var(--mdc-typography-body2-letter-spacing, .0178571429em);-webkit-text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-transform:var(--mdc-typography-body2-text-transform, none)}.mat-mdc-radio-button[_ngcontent-%COMP%] .mdc-radio[_ngcontent-%COMP%]{--mdc-radio-state-layer-size: 40px}.mat-mdc-radio-button[_ngcontent-%COMP%] .mdc-form-field[_ngcontent-%COMP%]{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, DroidKufi));font-size:var(--mdc-typography-body2-font-size, 14px);line-height:var(--mdc-typography-body2-line-height, 20px);font-weight:var(--mdc-typography-body2-font-weight, 400);letter-spacing:var(--mdc-typography-body2-letter-spacing, .0178571429em);-webkit-text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-transform:var(--mdc-typography-body2-text-transform, none)}.mat-mdc-slider[_ngcontent-%COMP%]{--mdc-slider-label-label-text-font: DroidKufi;--mdc-slider-label-label-text-size: 14px;--mdc-slider-label-label-text-line-height: 22px;--mdc-slider-label-label-text-tracking: .0071428571em;--mdc-slider-label-label-text-weight: 500}.mat-mdc-menu-content[_ngcontent-%COMP%]{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, DroidKufi));font-size:var(--mdc-typography-subtitle1-font-size, 16px);line-height:var(--mdc-typography-subtitle1-line-height, 28px);font-weight:var(--mdc-typography-subtitle1-font-weight, 400);letter-spacing:var(--mdc-typography-subtitle1-letter-spacing, .009375em);-webkit-text-decoration:var(--mdc-typography-subtitle1-text-decoration, inherit);text-decoration:var(--mdc-typography-subtitle1-text-decoration, inherit);text-transform:var(--mdc-typography-subtitle1-text-transform, none);line-height:24px}.mat-mdc-menu-content[_ngcontent-%COMP%], .mat-mdc-menu-content[_ngcontent-%COMP%] .mat-mdc-menu-item[_ngcontent-%COMP%] .mdc-list-item__primary-text[_ngcontent-%COMP%]{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-body1-font-family, var(--mdc-typography-font-family, DroidKufi));font-size:var(--mdc-typography-body1-font-size, 16px);line-height:var(--mdc-typography-body1-line-height, 24px);font-weight:var(--mdc-typography-body1-font-weight, 400);letter-spacing:var(--mdc-typography-body1-letter-spacing, .03125em);-webkit-text-decoration:var(--mdc-typography-body1-text-decoration, inherit);text-decoration:var(--mdc-typography-body1-text-decoration, inherit);text-transform:var(--mdc-typography-body1-text-transform, none)}.mat-mdc-list-base[_ngcontent-%COMP%]{--mdc-list-list-item-one-line-container-height: 48px;--mdc-list-list-item-two-line-container-height: 64px;--mdc-list-list-item-three-line-container-height: 88px}.mat-mdc-list-item.mdc-list-item--with-leading-avatar.mdc-list-item--with-one-line[_ngcontent-%COMP%], .mat-mdc-list-item.mdc-list-item--with-leading-checkbox.mdc-list-item--with-one-line[_ngcontent-%COMP%], .mat-mdc-list-item.mdc-list-item--with-leading-icon.mdc-list-item--with-one-line[_ngcontent-%COMP%]{height:56px}.mat-mdc-list-item.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines[_ngcontent-%COMP%], .mat-mdc-list-item.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines[_ngcontent-%COMP%], .mat-mdc-list-item.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines[_ngcontent-%COMP%]{height:72px}.mat-mdc-list-base[_ngcontent-%COMP%]{--mdc-list-list-item-label-text-font: DroidKufi;--mdc-list-list-item-label-text-line-height: 24px;--mdc-list-list-item-label-text-size: 16px;--mdc-list-list-item-label-text-tracking: .03125em;--mdc-list-list-item-label-text-weight: 400;--mdc-list-list-item-supporting-text-font: DroidKufi;--mdc-list-list-item-supporting-text-line-height: 20px;--mdc-list-list-item-supporting-text-size: 14px;--mdc-list-list-item-supporting-text-tracking: .0178571429em;--mdc-list-list-item-supporting-text-weight: 400;--mdc-list-list-item-trailing-supporting-text-font: DroidKufi;--mdc-list-list-item-trailing-supporting-text-line-height: 20px;--mdc-list-list-item-trailing-supporting-text-size: 12px;--mdc-list-list-item-trailing-supporting-text-tracking: .0333333333em;--mdc-list-list-item-trailing-supporting-text-weight: 400}.mdc-list-group__subheader[_ngcontent-%COMP%]{font-size:16px;font-weight:400;line-height:28px;font-family:DroidKufi;letter-spacing:.009375em}html[_ngcontent-%COMP%]{--mat-paginator-container-size: 56px}.mat-mdc-paginator[_ngcontent-%COMP%] .mat-mdc-form-field-infix[_ngcontent-%COMP%]{min-height:40px}.mat-mdc-paginator[_ngcontent-%COMP%] .mat-mdc-text-field-wrapper[_ngcontent-%COMP%] .mat-mdc-form-field-flex[_ngcontent-%COMP%] .mat-mdc-floating-label[_ngcontent-%COMP%]{top:20px}.mat-mdc-paginator[_ngcontent-%COMP%] .mat-mdc-text-field-wrapper.mdc-text-field--outlined[_ngcontent-%COMP%] .mdc-notched-outline--upgraded[_ngcontent-%COMP%] .mdc-floating-label--float-above[_ngcontent-%COMP%]{--mat-mdc-form-field-label-transform: translateY( -26.75px) scale(var(--mat-mdc-form-field-floating-label-scale, .75));transform:var(--mat-mdc-form-field-label-transform)}.mat-mdc-paginator[_ngcontent-%COMP%] .mat-mdc-text-field-wrapper.mdc-text-field--outlined[_ngcontent-%COMP%] .mat-mdc-form-field-infix[_ngcontent-%COMP%]{padding-top:8px;padding-bottom:8px}.mat-mdc-paginator[_ngcontent-%COMP%] .mat-mdc-text-field-wrapper[_ngcontent-%COMP%]:not(.mdc-text-field--outlined) .mat-mdc-form-field-infix[_ngcontent-%COMP%]{padding-top:8px;padding-bottom:8px}.mat-mdc-paginator[_ngcontent-%COMP%] .mdc-text-field--no-label[_ngcontent-%COMP%]:not(.mdc-text-field--outlined):not(.mdc-text-field--textarea) .mat-mdc-form-field-infix[_ngcontent-%COMP%]{padding-top:8px;padding-bottom:8px}.mat-mdc-paginator[_ngcontent-%COMP%] .mat-mdc-text-field-wrapper[_ngcontent-%COMP%]:not(.mdc-text-field--outlined) .mat-mdc-floating-label[_ngcontent-%COMP%]{display:none}html[_ngcontent-%COMP%]{--mat-paginator-container-text-font: DroidKufi;--mat-paginator-container-text-line-height: 20px;--mat-paginator-container-text-size: 12px;--mat-paginator-container-text-tracking: .0333333333em;--mat-paginator-container-text-weight: 400;--mat-paginator-select-trigger-text-size: 12px}.mat-mdc-tab-header[_ngcontent-%COMP%]{--mdc-secondary-navigation-tab-container-height: 48px}.mat-mdc-tab-header[_ngcontent-%COMP%]{--mat-tab-header-label-text-font: DroidKufi;--mat-tab-header-label-text-size: 14px;--mat-tab-header-label-text-letter-spacing: .0892857143em;--mat-tab-header-label-text-line-height: 36px;--mat-tab-header-label-text-weight: 500}html[_ngcontent-%COMP%]{--mdc-checkbox-state-layer-size: 40px}.mat-mdc-checkbox[_ngcontent-%COMP%] .mdc-form-field[_ngcontent-%COMP%]{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, DroidKufi));font-size:var(--mdc-typography-body2-font-size, 14px);line-height:var(--mdc-typography-body2-line-height, 20px);
1font-weight:var(--mdc-typography-body2-font-weight, 400);letter-spacing:var(--mdc-typography-body2-letter-spacing, .0178571429em);-webkit-text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-transform:var(--mdc-typography-body2-text-transform, none)}.mat-mdc-button.mat-mdc-button-base[_ngcontent-%COMP%], .mat-mdc-raised-button.mat-mdc-button-base[_ngcontent-%COMP%], .mat-mdc-unelevated-button.mat-mdc-button-base[_ngcontent-%COMP%], .mat-mdc-outlined-button.mat-mdc-button-base[_ngcontent-%COMP%]{height:36px}.mdc-button[_ngcontent-%COMP%]{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-button-font-family, var(--mdc-typography-font-family, DroidKufi));font-size:var(--mdc-typography-button-font-size, 14px);line-height:var(--mdc-typography-button-line-height, 36px);font-weight:var(--mdc-typography-button-font-weight, 500);letter-spacing:var(--mdc-typography-button-letter-spacing, .0892857143em);-webkit-text-decoration:var(--mdc-typography-button-text-decoration, none);text-decoration:var(--mdc-typography-button-text-decoration, none);text-transform:var(--mdc-typography-button-text-transform, none)}.mat-mdc-icon-button.mat-mdc-button-base[_ngcontent-%COMP%]{--mdc-icon-button-state-layer-size: 48px;width:var(--mdc-icon-button-state-layer-size);height:var(--mdc-icon-button-state-layer-size);padding:12px}.mdc-fab--extended[_ngcontent-%COMP%]{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-button-font-family, var(--mdc-typography-font-family, DroidKufi));font-size:var(--mdc-typography-button-font-size, 14px);line-height:var(--mdc-typography-button-line-height, 36px);font-weight:var(--mdc-typography-button-font-weight, 500);letter-spacing:var(--mdc-typography-button-letter-spacing, .0892857143em);-webkit-text-decoration:var(--mdc-typography-button-text-decoration, none);text-decoration:var(--mdc-typography-button-text-decoration, none);text-transform:var(--mdc-typography-button-text-transform, none)}.mat-mdc-snack-bar-container[_ngcontent-%COMP%]{--mdc-snackbar-supporting-text-font: DroidKufi;--mdc-snackbar-supporting-text-line-height: 20px;--mdc-snackbar-supporting-text-size: 14px;--mdc-snackbar-supporting-text-weight: 400}.mat-mdc-table[_ngcontent-%COMP%] .mdc-data-table__row[_ngcontent-%COMP%]{height:52px}.mat-mdc-table[_ngcontent-%COMP%] .mdc-data-table__pagination[_ngcontent-%COMP%]{min-height:52px}.mat-mdc-table[_ngcontent-%COMP%] .mdc-data-table__header-row[_ngcontent-%COMP%]{height:56px}.mdc-data-table__content[_ngcontent-%COMP%], .mdc-data-table__cell[_ngcontent-%COMP%]{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, DroidKufi));font-size:var(--mdc-typography-body2-font-size, 14px);line-height:var(--mdc-typography-body2-line-height, 20px);font-weight:var(--mdc-typography-body2-font-weight, 400);letter-spacing:var(--mdc-typography-body2-letter-spacing, .0178571429em);-webkit-text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-transform:var(--mdc-typography-body2-text-transform, none)}.mdc-data-table__header-cell[_ngcontent-%COMP%]{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-subtitle2-font-family, var(--mdc-typography-font-family, DroidKufi));font-size:var(--mdc-typography-subtitle2-font-size, 14px);line-height:var(--mdc-typography-subtitle2-line-height, 22px);font-weight:var(--mdc-typography-subtitle2-font-weight, 500);letter-spacing:var(--mdc-typography-subtitle2-letter-spacing, .0071428571em);-webkit-text-decoration:var(--mdc-typography-subtitle2-text-decoration, inherit);text-decoration:var(--mdc-typography-subtitle2-text-decoration, inherit);text-transform:var(--mdc-typography-subtitle2-text-transform, none)}.mat-badge[_ngcontent-%COMP%]{position:relative}.mat-badge.mat-badge[_ngcontent-%COMP%]{overflow:visible}.mat-badge-hidden[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{display:none}.mat-badge-content[_ngcontent-%COMP%]{position:absolute;text-align:center;display:inline-block;border-radius:50%;transition:transform .2s ease-in-out;transform:scale(.6);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;pointer-events:none}.ng-animate-disabled[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%], .mat-badge-content._mat-animation-noopable[_ngcontent-%COMP%]{transition:none}.mat-badge-content.mat-badge-active[_ngcontent-%COMP%]{transform:none}.mat-badge-small[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{width:16px;height:16px;line-height:16px}.mat-badge-small.mat-badge-above[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{top:-8px}.mat-badge-small.mat-badge-below[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{bottom:-8px}.mat-badge-small.mat-badge-before[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{left:-16px}[dir=rtl][_ngcontent-%COMP%] .mat-badge-small.mat-badge-before[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{left:auto;right:-16px}.mat-badge-small.mat-badge-after[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{right:-16px}[dir=rtl][_ngcontent-%COMP%] .mat-badge-small.mat-badge-after[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{right:auto;left:-16px}.mat-badge-small.mat-badge-overlap.mat-badge-before[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{left:-8px}[dir=rtl][_ngcontent-%COMP%] .mat-badge-small.mat-badge-overlap.mat-badge-before[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{left:auto;right:-8px}.mat-badge-small.mat-badge-overlap.mat-badge-after[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{right:-8px}[dir=rtl][_ngcontent-%COMP%] .mat-badge-small.mat-badge-overlap.mat-badge-after[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{right:auto;left:-8px}
1.mat-badge-medium[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{width:22px;height:22px;line-height:22px}.mat-badge-medium.mat-badge-above[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{top:-11px}.mat-badge-medium.mat-badge-below[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{bottom:-11px}.mat-badge-medium.mat-badge-before[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{left:-22px}[dir=rtl][_ngcontent-%COMP%] .mat-badge-medium.mat-badge-before[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{left:auto;right:-22px}.mat-badge-medium.mat-badge-after[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{right:-22px}[dir=rtl][_ngcontent-%COMP%] .mat-badge-medium.mat-badge-after[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{right:auto;left:-22px}.mat-badge-medium.mat-badge-overlap.mat-badge-before[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{left:-11px}[dir=rtl][_ngcontent-%COMP%] .mat-badge-medium.mat-badge-overlap.mat-badge-before[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{left:auto;right:-11px}.mat-badge-medium.mat-badge-overlap.mat-badge-after[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{right:-11px}[dir=rtl][_ngcontent-%COMP%] .mat-badge-medium.mat-badge-overlap.mat-badge-after[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{right:auto;left:-11px}.mat-badge-large[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{width:28px;height:28px;line-height:28px}.mat-badge-large.mat-badge-above[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{top:-14px}.mat-badge-large.mat-badge-below[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{bottom:-14px}.mat-badge-large.mat-badge-before[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{left:-28px}[dir=rtl][_ngcontent-%COMP%] .mat-badge-large.mat-badge-before[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{left:auto;right:-28px}.mat-badge-large.mat-badge-after[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{right:-28px}[dir=rtl][_ngcontent-%COMP%] .mat-badge-large.mat-badge-after[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{right:auto;left:-28px}.mat-badge-large.mat-badge-overlap.mat-badge-before[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{left:-14px}[dir=rtl][_ngcontent-%COMP%] .mat-badge-large.mat-badge-overlap.mat-badge-before[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{left:auto;right:-14px}.mat-badge-large.mat-badge-overlap.mat-badge-after[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{right:-14px}[dir=rtl][_ngcontent-%COMP%] .mat-badge-large.mat-badge-overlap.mat-badge-after[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{right:auto;left:-14px}.mat-badge-content[_ngcontent-%COMP%]{font-weight:600;font-size:12px;font-family:DroidKufi}.mat-badge-small[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{font-size:9px}.mat-badge-large[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{font-size:24px}.mat-bottom-sheet-container[_ngcontent-%COMP%]{font-size:14px;font-weight:400;line-height:20px;font-family:DroidKufi;letter-spacing:.0178571429em}.mat-button-toggle-appearance-standard[_ngcontent-%COMP%] .mat-button-toggle-label-content[_ngcontent-%COMP%]{line-height:48px}.mat-button-toggle[_ngcontent-%COMP%]{font-family:DroidKufi}.mat-calendar-controls[_ngcontent-%COMP%] .mat-mdc-icon-button.mat-mdc-button-base[_ngcontent-%COMP%]{--mdc-icon-button-state-layer-size: 40px;width:var(--mdc-icon-button-state-layer-size);height:var(--mdc-icon-button-state-layer-size);padding:8px}.mat-calendar-controls[_ngcontent-%COMP%] .mat-mdc-icon-button.mat-mdc-button-base[_ngcontent-%COMP%] .mat-mdc-button-touch-target[_ngcontent-%COMP%]{display:none}.mat-calendar[_ngcontent-%COMP%]{font-family:DroidKufi}.mat-calendar-body[_ngcontent-%COMP%]{font-size:13px}.mat-calendar-body-label[_ngcontent-%COMP%], .mat-calendar-period-button[_ngcontent-%COMP%]{font-size:14px;font-weight:500}.mat-calendar-table-header[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-size:11px;font-weight:400}.mat-expansion-panel-header[_ngcontent-%COMP%]{height:48px}.mat-expansion-panel-header.mat-expanded[_ngcontent-%COMP%]{height:64px}.mat-expansion-panel-header[_ngcontent-%COMP%]{font-family:DroidKufi;font-size:14px;font-weight:500}.mat-expansion-panel-content[_ngcontent-%COMP%]{font-size:14px;font-weight:400;line-height:20px;font-family:DroidKufi;letter-spacing:.0178571429em}.mat-grid-tile-header[_ngcontent-%COMP%], .mat-grid-tile-footer[_ngcontent-%COMP%]{font-size:14px}.mat-grid-tile-header[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%], .mat-grid-tile-footer[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-grid-tile-header[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2), .mat-grid-tile-footer[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2){font-size:12px}.mat-horizontal-stepper-header[_ngcontent-%COMP%]{height:72px}.mat-stepper-label-position-bottom[_ngcontent-%COMP%] .mat-horizontal-stepper-header[_ngcontent-%COMP%], .mat-vertical-stepper-header[_ngcontent-%COMP%]{padding:24px}.mat-stepper-vertical-line[_ngcontent-%COMP%]:before{top:-16px;bottom:-16px}.mat-stepper-label-position-bottom[_ngcontent-%COMP%] .mat-horizontal-stepper-header[_ngcontent-%COMP%]:after, .mat-stepper-label-position-bottom[_ngcontent-%COMP%] .mat-horizontal-stepper-header[_ngcontent-%COMP%]:before{top:36px}.mat-stepper-label-position-bottom[_ngcontent-%COMP%] .mat-stepper-horizontal-line[_ngcontent-%COMP%]{top:36px}.mat-stepper-vertical[_ngcontent-%COMP%], .mat-stepper-horizontal[_ngcontent-%COMP%]{font-family:DroidKufi}.mat-step-label[_ngcontent-%COMP%]{font-size:14px;font-weight:400}.mat-step-sub-label-error[_ngcontent-%COMP%]{font-weight:400}.mat-step-label-error[_ngcontent-%COMP%]{font-size:16px}.mat-step-label-selected[_ngcontent-%COMP%]{font-size:16px;font-weight:400}.mat-toolbar-multiple-rows[_ngcontent-%COMP%]{min-height:64px}.mat-toolbar-row[_ngcontent-%COMP%], .mat-toolbar-single-row[_ngcontent-%COMP%]{height:64px}@media (max-width: 599px){.mat-toolbar-multiple-rows[_ngcontent-%COMP%]{min-height:56px}.mat-toolbar-row[_ngcontent-%COMP%], .mat-toolbar-single-row[_ngcontent-%COMP%]{height:56px}}.mat-toolbar[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h4[_ng
1content-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font-size:20px;font-weight:500;line-height:32px;font-family:DroidKufi;letter-spacing:.0125em;margin:0}.mat-tree-node[_ngcontent-%COMP%]{min-height:48px}.mat-tree[_ngcontent-%COMP%]{font-family:DroidKufi}.mat-tree-node[_ngcontent-%COMP%], .mat-nested-tree-node[_ngcontent-%COMP%]{font-weight:400;font-size:14px}[class^=mdc-][_ngcontent-%COMP%], [class^=mat-mdc-][_ngcontent-%COMP%]{letter-spacing:.5px}mat-label[_ngcontent-%COMP%], .mat-mdc-input-element[_ngcontent-%COMP%], .mat-mdc-select-value-text[_ngcontent-%COMP%] span[_ngcontent-%COMP%], mat-option[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .mdc-list-item[_ngcontent-%COMP%], .cdk-virtual-scroll-content-wrapper[_ngcontent-%COMP%] .mat-mdc-option[_ngcontent-%COMP%] .mdc-list-item__primary-text[_ngcontent-%COMP%]{letter-spacing:0}.edit-dialog[_ngcontent-%COMP%] .car-brand-form-edit[_ngcontent-%COMP%]{padding:20px;display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:space-around;align-items:center;align-content:stretch}.edit-dialog[_ngcontent-%COMP%] .car-brand-form-edit[_ngcontent-%COMP%] .input[_ngcontent-%COMP%] .mat-mdc-form-field{width:450px}.edit-dialog[_ngcontent-%COMP%] .car-brand-form-edit[_ngcontent-%COMP%] .logo-input[_ngcontent-%COMP%] .mat-mdc-text-field-wrapper{width:450px}.edit-dialog[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{padding-bottom:15px;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-around;align-items:center;align-content:stretch}.edit-dialog[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{font-size:16px;background-color:#015586;font-weight:700;text-align:center;color:#fff;width:45%}']}),r})();var v=c(7398),F=c(4664),T=c(2096),Y=c(9131),ot=c(6593),J=c(4486),G=c(617);function at(r,u){if(1&r&&t._UZ(0,"img",10),2&r){const n=t.oxw().$implicit,a=t.oxw();t.Q6J("src",a.getSafeImageSource(n.logo),t.LSH)}}function it(r,u){if(1&r&&(t.TgZ(0,"div",6)(1,"div",7),t.YNc(2,at,1,1,"img",8),t.qZA(),t.TgZ(3,"div",9),t._uU(4),t.qZA()()),2&r){const n=u.$implicit;t.xp6(2),t.Q6J("ngIf",n.logo),t.xp6(2),t.hij(" ",n.name," ")}}function rt(r,u){if(1&r){const n=t.EpF();t.TgZ(0,"div",11)(1,"mat-icon",12),t.NdJ("click",function(){const h=t.CHM(n).$implicit,y=t.oxw();return t.KtG(y.delete(h))}),t._uU(2," delete "),t.qZA(),t.TgZ(3,"mat-icon",13),t.NdJ("click",function(){const h=t.CHM(n).$implicit,y=t.oxw();return t.KtG(y.edit(h))}),t._uU(4," edit "),t.qZA()()}if(2&r){const n=t.oxw();t.xp6(1),t.Q6J("needsPermissions",n.deleteCarBrandPermission),t.xp6(2),t.Q6J("needsPermissions",n.editCarBrandPermission)}}let W=(()=>{class r{constructor(n,a,s,h,y,k){this.router=n,this.carBrandService=a,this.dialog=s,this.translateService=h,this.sanitizer=y,this.utilsService=k,this._carBrandsList=[],this.defaultParams={page:0,size:10},this.columns=[{columnDef:"name",header:this.translateService.instant("car_brand.carBrandName"),cellValue:pt=>pt.name,customColumn:!0},{columnDef:"actions",header:"",cellValue:pt=>pt.actions,customColumn:!0}],this.carBrandsFeDataSource=new e.wC(this._carBrandsList,this.defaultParams),this.addCarBrandPermission=b.j.CAR_BRAND_ADD,this.editCarBrandPermission=b.j.CAR_BRAND_EDIT,this.deleteCarBrandPermission=b.j.CAR_BRAND_DELETE,this.getCarBrandPermission=b.j.CAR_BRAND_GET}ngOnInit(){this.getAllCarBrands().subscribe()}getSafeImageSource(n){return this.sanitizer.bypassSecurityTrustUrl("data:image/png;base64,"+n)}navigateToForm(){this.router.navigate([L.q.MANAGEMENT_CAR_BRANDS_ADD])}getAllCarBrands(){return this.carBrandService.getAllCarBrands().pipe((0,v.U)(n=>{this._carBrandsList=n.body.map(a=>({...a,actions:!0})),this.carBrandsFeDataSource.loadData(this._carBrandsList,this.defaultParams)}))}edit(n){let a;a=this.dialog.open(_,{disableClose:!0,width:"500px",data:{data:{name:n.name}}}),a.afterClosed().pipe((0,F.w)(s=>{if(s){const h=new FormData;return h.append("name",s.name),s.logo&&h.append("logo",s.logo[0]),this.carBrandService.editCarBrand(n.id,h).pipe((0,F.w)(y=>(this.utilsService.showCustomSnackbar("car_brand.changedSuccess"),this.getAllCarBrands())))}return(0,T.of)(null)})).subscribe()}delete(n){let a;a=this.dialog.open(j.z,{width:"400px",data:{text:this.translateService.instant("general.confirmationQuestion")}}),a.afterClosed().pipe((0,F.w)(s=>s?this.carBrandService.deleteCarbrand(n.id).pipe((0,F.w)(h=>(this.utilsService.showCustomSnackbar("car_brand.deleteSuccess"),this.getAllCarBrands()))):(0,T.of)(null))).subscribe()}}return r.\u0275fac=function(n){return new(n||r)(t.Y36(P.F0),t.Y36(Y.u),t.Y36(U.uw),t.Y36(M.sK),t.Y36(ot.H7),t.Y36(J.F))},r.\u0275cmp=t.Xpm({type:r,selectors:[["car-brand-listing"]],decls:9,vars:15,consts:[[1,"table-container"],["title","car_brand.title",3,"hideBack"],["color","primary","mat-raised-button","","type","button",3,"needsPermissions","title","click"],[1,"siren-table-one","column-to-right",3,"needsPermissions","dataSource","displayedColumns","allowPagination","allowFiltering"],["class","nameLogo",4,"appCustomCols","appCustomColsColumnDef"],["class","buttons",4,"appCustomCols","appCustomColsColumnDef"],[1,"nameLogo"],[1,"logo"],["alt","Base64 Image","class","logo",3,"src",4,"ngIf"],[1,"name"],["alt","Base64 Image",1,"logo",3,"src"],[1,"buttons"],[1,"delete-icon",3,"needsPermissions","click"],[1,"edit-icon",3,"needsPermissions","click"]],template:function(n,a){1&n&&(t.TgZ(0,"div",0)(1,"app-page-title",1)(2,"button",2),t.NdJ("click",function(){return a.navigateToForm()}),t.ALo(3,"translate"),t._uU(4),t.ALo(5,"translate"),t.qZA()(),t.TgZ(6,"siren-table",3),t.YNc(7,it,5,2,"div",4),t.YNc(8,rt,5,2,"div",5),t.qZA()()),2&n&&(t.xp6(1),t.Q6J("hideBack",!0),t.xp6(1),t.s9C("title",t.lcZ(3,11,"general.add")),t.Q6J("needsPermissions",a.addCarBrandPermission),t.xp6(2),t.hij("",t.lcZ(5,13,"general.add")," +"),t.xp6(2),t.Q6J("needsPermissions",a.getCarBrandPermission)("dataSource",a.carBrandsFeDataSource)("displayedColumns",a.columns)("allowPagination",!0)("allowFiltering",!0),t.xp6(1),t.Q6J("appCustomColsColumnDef","name"),t.xp6(1),t.Q6J("appCustomColsColumnDef","actions"))},dependencies:[l.O5,S.lW,G.Hw,B.T,R.J,e.Cx,e.F6,M.X$],styles:[".buttons[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:flex-end;align-items:center;align-content:stretch;margin-left:5px}.nameLogo[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:flex-start;align-items:center;align-content:center}.nameLogo[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{width:50px;max-height:50px}.nameLogo[_ngcontent-%COMP%] .name[_ngcontent-%COMP%]{margin-right:15px}"]}),r})();var q=c(9315),lt=c(3104);const ct=["ngForm"],st=function(r){return{min:r,max:"50"}};function H(r,u){if(1&r){const n=t.EpF();t.TgZ(0,"div",8)(1,"form",9)(2,"div",10),t._UZ(3,"app-text-input",11),t.ALo(4,"translate"),t.ALo(5,"translate"),t.ALo(6,"translate"),t.TgZ(7,"div",12),t._UZ(8,"file-upload-input",13),t.ALo(9,"translate"),t.TgZ(10,"mat-icon",14),t.NdJ("click",function(){const h=t.CHM(n).index,y=t.oxw();return t.KtG(y.removeFormGroup(h))}),t._uU(11,"remove"),t.qZA()()()()()}if(2&r){const n=u.$implicit,a=t.oxw();
1t.xp6(1),t.Q6J("formGroup",n),t.xp6(2),t.s9C("placeholdertext",t.lcZ(4,7,"car_brand.carBrandName")),t.Q6J("ngForm",a.ngForm)("customErrorMessage",t.xi3(5,9,"form_errors.minMax",t.VKq(16,st,t.lcZ(6,12,"form_errors.twoLetters")))),t.xp6(5),t.s9C("placeholdertext",t.lcZ(9,14,"car_brand.carBrandLogo")),t.Q6J("maxFileSizeMB",5)("ngForm",a.ngForm)}}let X=(()=>{class r{constructor(n,a,s){this._router=n,this._utilsService=a,this._carBrandService=s,this.formGroups=[],this.backPath=L.q.MANAGEMENT_CAR_BRANDS}ngOnInit(){this.addRow()}addRow(){const n=this.createFormGroup();this.formGroups.push(n)}removeRow(){this.formGroups.length>1&&this.formGroups.pop()}removeFormGroup(n){this.formGroups.length>1&&n>=0&&n<this.formGroups.length&&this.formGroups.splice(n,1)}submit(){if(this.formGroups.some(a=>a.invalid))return void this._utilsService.showCustomSnackbar("general.checkInfo");const n=this.formGroups.map(a=>this.addOneCarBrand(a));(0,q.D)(n).subscribe({next:a=>{a.every(s=>s.ok)?(this._utilsService.showCustomSnackbar("general.success"),this._router.navigate([L.q.MANAGEMENT_CAR_BRANDS])):this._utilsService.showCustomSnackbar("general.savedCarBrandError")},error:a=>{this._utilsService.showCustomSnackbar("general.error")}})}addOneCarBrand(n){const a=new FormData;return a.append("name",n.value.carBrandName),n.value.carBrandLogo&&a.append("logo",n.value.carBrandLogo[0]),this._carBrandService.addCarBrand(a)}createFormGroup(){return new p.cw({carBrandName:new p.NI(null,[p.kI.required,p.kI.pattern(lt.H.arabicOrEnglishLettersSpaceAndDashAllowed),p.kI.minLength(2),p.kI.maxLength(50)]),carBrandLogo:new p.NI(null,[])})}}return r.\u0275fac=function(n){return new(n||r)(t.Y36(P.F0),t.Y36(J.F),t.Y36(Y.u))},r.\u0275cmp=t.Xpm({type:r,selectors:[["car-brand-form"]],viewQuery:function(n,a){if(1&n&&t.Gf(ct,5),2&n){let s;t.iGM(s=t.CRH())&&(a.ngForm=s.first)}},decls:15,vars:8,consts:[["title","car_brand.addTitle",3,"backPath"],[1,"formBorderTheme1","defaultForm"],[1,"default-form-style"],["class","car-brand-form",4,"ngFor","ngForOf"],["mat-button","",1,"add-row-btn","item-full-row",3,"click"],[1,"text"],[1,"actionButtons"],["mat-flat-button","","color","primary",1,"btnsubmit",3,"click"],[1,"car-brand-form"],[3,"formGroup"],[1,"gridContainer"],["formControlName","carBrandName","maxlength","50",1,"input",3,"placeholdertext","ngForm","customErrorMessage"],[1,"file-upload-wrapper"],["formControlName","carBrandLogo","allowedFileExtensions",".png",1,"logo-input",3,"maxFileSizeMB","placeholdertext","ngForm"],[1,"remove-icon",3,"click"]],template:function(n,a){1&n&&(t._UZ(0,"app-page-title",0),t.TgZ(1,"div",1)(2,"div",2)(3,"div"),t.YNc(4,H,12,18,"div",3),t.TgZ(5,"button",4),t.NdJ("click",function(){return a.addRow()}),t.TgZ(6,"mat-icon"),t._uU(7,"add"),t.qZA(),t.TgZ(8,"div",5),t._uU(9),t.ALo(10,"translate"),t.qZA()()(),t.TgZ(11,"div",6)(12,"button",7),t.NdJ("click",function(){return a.submit()}),t._uU(13),t.ALo(14,"translate"),t.qZA()()()()),2&n&&(t.Q6J("backPath",a.backPath),t.xp6(4),t.Q6J("ngForOf",a.formGroups),t.xp6(5),t.hij(" ",t.lcZ(10,4,"general.addRow")," "),t.xp6(4),t.hij(" ",t.lcZ(14,6,"general.submit")," "))},dependencies:[l.sg,S.lW,G.Hw,p._Y,p.JJ,p.JL,p.nD,p.F,p.sg,p.u,x.t,z.Y,B.T,M.X$],styles:[".car-brand-form[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{border:unset!important;padding:0;width:100%}@media screen and (max-width: 599px){.car-brand-form[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{flex-direction:column;border-bottom:1px solid #015586}}.car-brand-form[_ngcontent-%COMP%] form[_ngcontent-%COMP%] .file-upload-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;align-items:center;align-content:center;width:100%;align-self:flex-start}.car-brand-form[_ngcontent-%COMP%] form[_ngcontent-%COMP%] .file-upload-wrapper[_ngcontent-%COMP%] .logo-input[_ngcontent-%COMP%]{width:calc(100% - 50px)}.car-brand-form[_ngcontent-%COMP%] form[_ngcontent-%COMP%] .file-upload-wrapper[_ngcontent-%COMP%] .remove-icon[_ngcontent-%COMP%]{cursor:pointer;margin-right:20px;margin-top:15px;color:#015586}.car-brand-form[_ngcontent-%COMP%] form[_ngcontent-%COMP%] .file-upload-wrapper[_ngcontent-%COMP%] .remove-icon[_ngcontent-%COMP%]:hover{color:#0a6ebd}.add-row-btn[_ngcontent-%COMP%]{font-weight:700;color:#015586!important;font-size:1rem;margin-top:1rem}"]}),r})();var tt=c(9137),et=c(3722);let dt=(()=>
1{class r{constructor(n,a){this.dialogRef=n,this.data=a}ngOnInit(){this.initForm(),this.editForm.patchValue(this.data.data)}submitButtonClicked(){this.editForm.invalid||this.dialogRef.close(this.editForm.value)}closeButtonClicked(){this.dialogRef.close(null)}initForm(){const n={plateNumber:new p.NI(null,[p.kI.required,(0,tt.S5)()]),evaluatedPrice:new p.NI(null,[p.kI.required])};this.editForm=new p.cw(n)}}return r.\u0275fac=function(n){return new(n||r)(t.Y36(U.so),t.Y36(U.WI))},r.\u0275cmp=t.Xpm({type:r,selectors:[["special-plates-edit-dialog"]],decls:16,vars:24,consts:[[1,"edit-dialog"],[1,"special-plates-form-edit",3,"formGroup"],["formControlName","plateNumber","applyUpperCase","true","maxlength","50",1,"input",3,"placeholdertext","placeholderLabel","ngForm"],["formControlName","evaluatedPrice","min","1",1,"input",3,"placeholdertext","placeholderLabel","customErrorMessage","ngForm"],[1,"action-buttons"],["mat-raised-button","",1,"btn",3,"click"]],template:function(n,a){1&n&&(t.TgZ(0,"div",0)(1,"form",1),t._UZ(2,"app-text-input",2),t.ALo(3,"translate"),t.ALo(4,"translate"),t._UZ(5,"app-number-input",3),t.ALo(6,"translate"),t.ALo(7,"translate"),t.ALo(8,"translate"),t.qZA(),t.TgZ(9,"div",4)(10,"button",5),t.NdJ("click",function(){return a.submitButtonClicked()}),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.TgZ(13,"button",5),t.NdJ("click",function(){return a.closeButtonClicked()}),t._uU(14),t.ALo(15,"translate"),t.qZA()()()),2&n&&(t.xp6(1),t.Q6J("formGroup",a.editForm),t.xp6(1),t.Q6J("placeholdertext",t.lcZ(3,10,"specialPlates.plateNumber"))("placeholderL
1abel",t.lcZ(4,12,"general.plateNumberLabelIndicator"))("ngForm",a.editForm),t.xp6(3),t.Q6J("placeholdertext",t.lcZ(6,14,"specialPlates.evaluatedPrice"))("placeholderLabel",t.lcZ(7,16,"general.plateNumberEvaluatedPriceIndicator"))("customErrorMessage",t.lcZ(8,18,"form_errors.min_plate_price"))("ngForm",a.editForm),t.xp6(6),t.hij(" ",t.lcZ(12,20,"general.submit")," "),t.xp6(3),t.hij(" ",t.lcZ(15,22,"general.close")," "))},dependencies:[S.lW,p._Y,p.JJ,p.JL,p.nD,p.F,p.sg,p.u,x.t,et.f,M.X$],styles:['@font-face{font-family:DroidKufi;src:url(assets/fonts/DroidKufi-Regular.ttf) format("truetype")}@font-face{font-family:DroidKufiBold;src:url(assets/fonts/DroidKufi-Bold.ttf) format("truetype")}.mat-ripple[_ngcontent-%COMP%]{overflow:hidden;position:relative}.mat-ripple[_ngcontent-%COMP%]:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded[_ngcontent-%COMP%]{overflow:visible}.mat-ripple-element[_ngcontent-%COMP%]{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0,0,.2,1);transform:scale3d(0,0,0)}.cdk-high-contrast-active[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%]{display:none}.cdk-visually-hidden[_ngcontent-%COMP%]{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl][_ngcontent-%COMP%] .cdk-visually-hidden[_ngcontent-%COMP%]{left:auto;right:0}.cdk-overlay-container[_ngcontent-%COMP%], .cdk-global-overlay-wrapper[_ngcontent-%COMP%]{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container[_ngcontent-%COMP%]{position:fixed;z-index:1000}.cdk-overlay-container[_ngcontent-%COMP%]:empty{display:none}.cdk-global-overlay-wrapper[_ngcontent-%COMP%]{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane[_ngcontent-%COMP%]{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;max-width:100%;max-height:100%}.cdk-overlay-backdrop[_ngcontent-%COMP%]{position:absolute;inset:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:transparent;transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:1}.cdk-high-contrast-active[_ngcontent-%COMP%] .cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:.6}.cdk-overlay-dark-backdrop[_ngcontent-%COMP%]{background:rgba(0,0,0,.32)}.cdk-overlay-transparent-backdrop[_ngcontent-%COMP%]{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation[_ngcontent-%COMP%]{transition:none}.cdk-overlay-connected-position-bounding-box[_ngcontent-%COMP%]{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock[_ngcontent-%COMP%]{position:fixed;width:100%;overflow-y:scroll}textarea.cdk-textarea-autosize[_ngcontent-%COMP%]{resize:none}textarea.cdk-textarea-autosize-measuring[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:auto!important;overflow:hidden!important}textarea.cdk-textarea-autosize-measuring-firefox[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:0!important}@keyframes _ngcontent-%COMP%_cdk-text-field-autofill-start{}@keyframes _ngcontent-%COMP%_cdk-text-field-autofill-end{}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:-webkit-autofill{animation:_ngcontent-%COMP%_cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:not(:-webkit-autofill){animation:_ngcontent-%COMP%_cdk-text-field-autofill-end 0s 1ms}.mat-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-focus-indicator[_ngcontent-%COMP%]:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border:var(--mat-focus-indicator-border-width, 3px) var(--mat-focus-indicator-border-style, solid) var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator[_ngcontent-%COMP%]:focus:before{content:""}.cdk-high-contrast-active[_ngcontent-%COMP%]{--mat-focus-indicator-display: block}.mat-mdc-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-mdc-focus-indicator[_ngcontent-%COMP%]:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-mdc-focus-indicator-display, none);border:var(--mat-mdc-focus-indicator-border-width, 3px) var(--mat-mdc-focus-indicator-border-style, solid) var(--mat-mdc-focus-indicator-border-color, transparent);border-radius:var(--mat-mdc-focus-indicator-border-radius, 4px)}.mat-mdc-focus-indicator[_ngcontent-%COMP%]:focus:before{content:""}.cdk-high-contrast-active[_ngcontent-%COMP%]{--mat-mdc-focus-indicator-display: block}html[_ngcontent-%COMP%]{--mat-option-label-text-font: DroidKufi;--mat-option-label-text-line-height: 24px;--mat-option-label-text-size: 16px;--mat-option-label-text-tracking: .03125em;--mat-option-label-text-weight: 400}html[_ngcontent-%COMP%]{--mat-optgroup-label-text-font: DroidKufi;--mat-optgroup-label-text-line-height: 24px;--mat-optgroup-label-text-size: 16px;--mat-optgroup-label-text-tracking: .03125em;--mat-optgroup-label-text-weight: 400}.mat-mdc-card[_ngcontent-%COMP%]{--mat-card-title-text-font: DroidKufi;--mat-card-title-text-line-height: 32px;--mat-card-title-text-size: 20px;--mat-card-title-text-tracking: .0125em;--mat-card-title-text-weight: 500;--mat-card-subtitle-text-font: DroidKufi;--mat-card-subtitle-text-line-height: 22px;--mat-card-subtitle-text-size: 14px;--mat-card-subtitle-text-tracking: .0071428571em;--mat-card-subtitle-text-weight: 500}.mat-mdc-tooltip[_ngcontent-%COMP%]{--mdc-plain-tooltip-supporting-text-font: DroidKufi;--mdc-plain-tooltip-supporting-text-size: 12px;--mdc-plain-tooltip-supporting-text-weight: 400;--mdc-plain-tooltip-supporting-text-tracking: .0333333333em}.mat-mdc-form-field-infix[_ngcontent-%COMP%]{min-height:56px}.mat-mdc-text-field-wrapper[_ngcontent-%COMP%] .mat-mdc-form-field-flex[_ngcontent-%COMP%] .mat-mdc-floating-label[_ngcontent-%COMP%]{top:28px}.mat-mdc-text-field-wrapper.mdc-text-field--outlined[_ngcontent-%COMP%] .mdc-notched-outline--upgraded[_ngcontent-%COMP%] .mdc-floating-label--float-above[_ngcontent-%COMP%]{--mat-mdc-form-field-label-transform: translateY( -34.75px) scale(var(--mat-mdc-form-field-floating-label-scale, .75));transform:var(--mat-mdc-form-field-label-transform)}.mat-mdc-text-field-wrapper.mdc-text-field--outlined[_ngcontent-%COMP%] .mat-mdc-form-field-infix[_ngcontent-%COMP%]{padding-top:16px;padding-bottom:16px}.mat-mdc-text-field-wrapper[_ngcontent-%COMP%]:not(.mdc-text-field--outlined) .mat-mdc-form-field-infix[_ngcontent-%COMP%]{padding-top:24px;padding-bottom:8px}.mdc-text-field--no-label[_ngcontent-%COMP%]:not(.mdc-text-field--outlined):not(.mdc-text-field--textarea) .mat-mdc-form-field-infix[_ngcontent-%COMP%]{padding-top:16px;padding-bottom:16px}.mdc-text-field__input[_ngcontent-%COMP%], .mdc-text-field__affix[_ngcontent-%COMP%]{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, DroidKufi));font-size:var(--mdc-typography-subtitle1-font-size, 16px);font-weight:var(--mdc-typography-subtitle1-font-weight, 400);letter-spacing:var(--mdc-typography-subtitle1-letter-spacing, .009375em);-webkit-text-decoration:var(--mdc-typography-subtitle1-text-decoration, inherit);text-decoration:var(--mdc-typography-subtitle1-text-decoration, inherit);text-transform:var(--mdc-typography-subtitle1-text-transform, none)}.mdc-text-field--textarea[_ngcontent-%COMP%] .mdc-text-field__input[_ngcontent-%COMP%]{line-height:1.5rem}.mdc-floating-label[_ngcontent-%COMP%]{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, DroidKufi));font-size:var(--mdc-typography-subtitle1-font-size, 16px);font-weight:var(--mdc-typography-subtitle1-font-weight, 400);letter-spacing:var(--mdc-typography-subtitle1-letter-spacing, .009375em);-webkit-text-decoration:var(--mdc-typography-subtitle1-text-decoration, inherit);text-decoration:var(--mdc-typography-subtitle1-text-decoration, inherit);text-transform:var(--mdc-typography-subtitle1-text-transform, none)}.mat-mdc-form-field-subscript-wrapper[_ngcontent-%COMP%], .mat-mdc-form-field-bottom-align[_ngcontent-%COMP%]:before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-caption-font-family, var(--mdc-typography-font-family, DroidKufi));font-size:var(--mdc-typography-caption-font-size, 12px);line-height:var(--mdc-typography-caption-line-height, 20px);font-weight:var(--mdc-typography-caption-font-weight, 400);letter-spacing:var(--mdc-typography-caption-letter-spacing, .0333333333em);-webkit-text-decoration:var(--mdc-typography-caption-text-decoration, inherit);text-decoration:var(--mdc-typography-caption-text-decoration, inherit);text-transform:var(--mdc-typography-caption-text-transform, none)}.mat-mdc-form-field[_ngcontent-%COMP%], .mat-mdc-floating-label[_ngcontent-%COMP%]{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-body1-font-family, var(--mdc-typography-font-family, DroidKufi));font-size:var(--mdc-typography-body1-font-size, 16px);line-height:var(--mdc-typography-body1-line-height, 24px);font-weight:var(--mdc-typography-body1-font-weight, 400);letter-spacing:var(--mdc-typography-body1-letter-spacing, .03125em);-webkit-text-decoration:var(--mdc-typography-body1-text-decoration, inherit);text-decoration:var(--mdc-typography-body1-text-decoration, inherit);text-transform:var(--mdc-typography-body1-text-transform, none)}.mat-mdc-form-field[_ngcontent-%COMP%] .mdc-text-field--outlined[_ngcontent-%COMP%] .mdc-floating-label--float-above[_ngcontent-%COMP%]{font-size:calc(16px * var(--mat-mdc-form-field-floating-label-scale, .75))}.mat-mdc-form-field[_ngcontent-%COMP%] .mdc-text-field--outlined[_ngcontent-%COMP%] .mdc-notched-outline--upgraded[_ngcontent-%COMP%] .mdc-floating-label--float-above[_ngcontent-%COMP%]{font-size:16px}html[_ngcontent-%COMP%]{--mat-select-trigger-text-font: DroidKufi;--mat-select-trigger-text-line-height: 24px;--mat-select-trigger-text-size: 16px;--mat-select-trigger-text-tracking: .03125em;--mat-select-trigger-text-weight: 400}.mat-mdc-dialog-container[_ngcontent-%COMP%]{--mdc-dialog-subhead-font: DroidKufi;--mdc-dialog-subhead-line-height: 32px;--mdc-dialog-subhead-size: 20px;--mdc-dialog-subhead-weight: 500;--mdc-dialog-subhead-tracking: .0125em;--mdc-dialog-supporting-text-font: DroidKufi;--mdc-dialog-supporting-text-line-height: 24px;--mdc-dialog-supporting-text-size: 16px;--mdc-dialog-supporting-text-weight: 400;--mdc-dialog-supporting-text-tracking: .03125em}.mat-mdc-chip.mat-mdc-standard-chip[_ngcontent-%COMP%]{--mdc-chip-container-height: 32px}.mat-mdc-standard-chip[_ngcontent-%COMP%]{--mdc-chip-label-text-font: DroidKufi;--mdc-chip-label-text-line-height: 20px;--mdc-chip-label-text-size: 14px;--mdc-chip-label-text-tracking: .0178571429em;--mdc-chip-label-text-weight: 400}.mat-mdc-slide-toggle[_ngcontent-%COMP%]{--mdc-switch-state-layer-size: 48px}.mdc-form-field[_ngcontent-%COMP%]{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, DroidKufi));font-size:var(--mdc-typography-body2-font-size, 14px);line-height:var(--mdc-typography-body2-line-height, 20px);
1font-weight:var(--mdc-typography-body2-font-weight, 400);letter-spacing:var(--mdc-typography-body2-letter-spacing, .0178571429em);-webkit-text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-transform:var(--mdc-typography-body2-text-transform, none)}.mat-mdc-radio-button[_ngcontent-%COMP%] .mdc-radio[_ngcontent-%COMP%]{--mdc-radio-state-layer-size: 40px}.mat-mdc-radio-button[_ngcontent-%COMP%] .mdc-form-field[_ngcontent-%COMP%]{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, DroidKufi));font-size:var(--mdc-typography-body2-font-size, 14px);line-height:var(--mdc-typography-body2-line-height, 20px);font-weight:var(--mdc-typography-body2-font-weight, 400);letter-spacing:var(--mdc-typography-body2-letter-spacing, .0178571429em);-webkit-text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-transform:var(--mdc-typography-body2-text-transform, none)}.mat-mdc-slider[_ngcontent-%COMP%]{--mdc-slider-label-label-text-font: DroidKufi;--mdc-slider-label-label-text-size: 14px;--mdc-slider-label-label-text-line-height: 22px;--mdc-slider-label-label-text-tracking: .0071428571em;--mdc-slider-label-label-text-weight: 500}.mat-mdc-menu-content[_ngcontent-%COMP%]{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, DroidKufi));font-size:var(--mdc-typography-subtitle1-font-size, 16px);line-height:var(--mdc-typography-subtitle1-line-height, 28px);font-weight:var(--mdc-typography-subtitle1-font-weight, 400);letter-spacing:var(--mdc-typography-subtitle1-letter-spacing, .009375em);-webkit-text-decoration:var(--mdc-typography-subtitle1-text-decoration, inherit);text-decoration:var(--mdc-typography-subtitle1-text-decoration, inherit);text-transform:var(--mdc-typography-subtitle1-text-transform, none);line-height:24px}.mat-mdc-menu-content[_ngcontent-%COMP%], .mat-mdc-menu-content[_ngcontent-%COMP%] .mat-mdc-menu-item[_ngcontent-%COMP%] .mdc-list-item__primary-text[_ngcontent-%COMP%]{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-body1-font-family, var(--mdc-typography-font-family, DroidKufi));font-size:var(--mdc-typography-body1-font-size, 16px);line-height:var(--mdc-typography-body1-line-height, 24px);font-weight:var(--mdc-typography-body1-font-weight, 400);letter-spacing:var(--mdc-typography-body1-letter-spacing, .03125em);-webkit-text-decoration:var(--mdc-typography-body1-text-decoration, inherit);text-decoration:var(--mdc-typography-body1-text-decoration, inherit);text-transform:var(--mdc-typography-body1-text-transform, none)}.mat-mdc-list-base[_ngcontent-%COMP%]{--mdc-list-list-item-one-line-container-height: 48px;--mdc-list-list-item-two-line-container-height: 64px;--mdc-list-list-item-three-line-container-height: 88px}.mat-mdc-list-item.mdc-list-item--with-leading-avatar.mdc-list-item--with-one-line[_ngcontent-%COMP%], .mat-mdc-list-item.mdc-list-item--with-leading-checkbox.mdc-list-item--with-one-line[_ngcontent-%COMP%], .mat-mdc-list-item.mdc-list-item--with-leading-icon.mdc-list-item--with-one-line[_ngcontent-%COMP%]{height:56px}.mat-mdc-list-item.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines[_ngcontent-%COMP%], .mat-mdc-list-item.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines[_ngcontent-%COMP%], .mat-mdc-list-item.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines[_ngcontent-%COMP%]{height:72px}.mat-mdc-list-base[_ngcontent-%COMP%]{--mdc-list-list-item-label-text-font: DroidKufi;--mdc-list-list-item-label-text-line-height: 24px;--mdc-list-list-item-label-text-size: 16px;--mdc-list-list-item-label-text-tracking: .03125em;--mdc-list-list-item-label-text-weight: 400;--mdc-list-list-item-supporting-text-font: DroidKufi;--mdc-list-list-item-supporting-text-line-height: 20px;--mdc-list-list-item-supporting-text-size: 14px;--mdc-list-list-item-supporting-text-tracking: .0178571429em;--mdc-list-list-item-supporting-text-weight: 400;--mdc-list-list-item-trailing-supporting-text-font: DroidKufi;--mdc-list-list-item-trailing-supporting-text-line-height: 20px;--mdc-list-list-item-trailing-supporting-text-size: 12px;--mdc-list-list-item-trailing-supporting-text-tracking: .0333333333em;--mdc-list-list-item-trailing-supporting-text-weight: 400}.mdc-list-group__subheader[_ngcontent-%COMP%]{font-size:16px;font-weight:400;line-height:28px;font-family:DroidKufi;letter-spacing:.009375em}html[_ngcontent-%COMP%]{--mat-paginator-container-size: 56px}.mat-mdc-paginator[_ngcontent-%COMP%] .mat-mdc-form-field-infix[_ngcontent-%COMP%]{min-height:40px}.mat-mdc-paginator[_ngcontent-%COMP%] .mat-mdc-text-field-wrapper[_ngcontent-%COMP%] .mat-mdc-form-field-flex[_ngcontent-%COMP%] .mat-mdc-floating-label[_ngcontent-%COMP%]{top:20px}.mat-mdc-paginator[_ngcontent-%COMP%] .mat-mdc-text-field-wrapper.mdc-text-field--outlined[_ngcontent-%COMP%] .mdc-notched-outline--upgraded[_ngcontent-%COMP%] .mdc-floating-label--float-above[_ngcontent-%COMP%]{--mat-mdc-form-field-label-transform: translateY( -26.75px) scale(var(--mat-mdc-form-field-floating-label-scale, .75));transform:var(--mat-mdc-form-field-label-transform)}.mat-mdc-paginator[_ngcontent-%COMP%] .mat-mdc-text-field-wrapper.mdc-text-field--outlined[_ngcontent-%COMP%] .mat-mdc-form-field-infix[_ngcontent-%COMP%]{padding-top:8px;padding-bottom:8px}.mat-mdc-paginator[_ngcontent-%COMP%] .mat-mdc-text-field-wrapper[_ngcontent-%COMP%]:not(.mdc-text-field--outlined) .mat-mdc-form-field-infix[_ngcontent-%COMP%]{padding-top:8px;padding-bottom:8px}.mat-mdc-paginator[_ngcontent-%COMP%] .mdc-text-field--no-label[_ngcontent-%COMP%]:not(.mdc-text-field--outlined):not(.mdc-text-field--textarea) .mat-mdc-form-field-infix[_ngcontent-%COMP%]{padding-top:8px;padding-bottom:8px}.mat-mdc-paginator[_ngcontent-%COMP%] .mat-mdc-text-field-wrapper[_ngcontent-%COMP%]:not(.mdc-text-field--outlined) .mat-mdc-floating-label[_ngcontent-%COMP%]{display:none}html[_ngcontent-%COMP%]{--mat-paginator-container-text-font: DroidKufi;--mat-paginator-container-text-line-height: 20px;--mat-paginator-container-text-size: 12px;--mat-paginator-container-text-tracking: .0333333333em;--mat-paginator-container-text-weight: 400;--mat-paginator-select-trigger-text-size: 12px}.mat-mdc-tab-header[_ngcontent-%COMP%]{--mdc-secondary-navigation-tab-container-height: 48px}.mat-mdc-tab-header[_ngcontent-%COMP%]{--mat-tab-header-label-text-font: DroidKufi;--mat-tab-header-label-text-size: 14px;--mat-tab-header-label-text-letter-spacing: .0892857143em;--mat-tab-header-label-text-line-height: 36px;--mat-tab-header-label-text-weight: 500}html[_ngcontent-%COMP%]{--mdc-checkbox-state-layer-size: 40px}.mat-mdc-checkbox[_ngcontent-%COMP%] .mdc-form-field[_ngcontent-%COMP%]{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, DroidKufi));font-size:var(--mdc-typography-body2-font-size, 14px);line-height:var(--mdc-typography-body2-line-height, 20px);
1font-weight:var(--mdc-typography-body2-font-weight, 400);letter-spacing:var(--mdc-typography-body2-letter-spacing, .0178571429em);-webkit-text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-transform:var(--mdc-typography-body2-text-transform, none)}.mat-mdc-button.mat-mdc-button-base[_ngcontent-%COMP%], .mat-mdc-raised-button.mat-mdc-button-base[_ngcontent-%COMP%], .mat-mdc-unelevated-button.mat-mdc-button-base[_ngcontent-%COMP%], .mat-mdc-outlined-button.mat-mdc-button-base[_ngcontent-%COMP%]{height:36px}.mdc-button[_ngcontent-%COMP%]{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-button-font-family, var(--mdc-typography-font-family, DroidKufi));font-size:var(--mdc-typography-button-font-size, 14px);line-height:var(--mdc-typography-button-line-height, 36px);font-weight:var(--mdc-typography-button-font-weight, 500);letter-spacing:var(--mdc-typography-button-letter-spacing, .0892857143em);-webkit-text-decoration:var(--mdc-typography-button-text-decoration, none);text-decoration:var(--mdc-typography-button-text-decoration, none);text-transform:var(--mdc-typography-button-text-transform, none)}.mat-mdc-icon-button.mat-mdc-button-base[_ngcontent-%COMP%]{--mdc-icon-button-state-layer-size: 48px;width:var(--mdc-icon-button-state-layer-size);height:var(--mdc-icon-button-state-layer-size);padding:12px}.mdc-fab--extended[_ngcontent-%COMP%]{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-button-font-family, var(--mdc-typography-font-family, DroidKufi));font-size:var(--mdc-typography-button-font-size, 14px);line-height:var(--mdc-typography-button-line-height, 36px);font-weight:var(--mdc-typography-button-font-weight, 500);letter-spacing:var(--mdc-typography-button-letter-spacing, .0892857143em);-webkit-text-decoration:var(--mdc-typography-button-text-decoration, none);text-decoration:var(--mdc-typography-button-text-decoration, none);text-transform:var(--mdc-typography-button-text-transform, none)}.mat-mdc-snack-bar-container[_ngcontent-%COMP%]{--mdc-snackbar-supporting-text-font: DroidKufi;--mdc-snackbar-supporting-text-line-height: 20px;--mdc-snackbar-supporting-text-size: 14px;--mdc-snackbar-supporting-text-weight: 400}.mat-mdc-table[_ngcontent-%COMP%] .mdc-data-table__row[_ngcontent-%COMP%]{height:52px}.mat-mdc-table[_ngcontent-%COMP%] .mdc-data-table__pagination[_ngcontent-%COMP%]{min-height:52px}.mat-mdc-table[_ngcontent-%COMP%] .mdc-data-table__header-row[_ngcontent-%COMP%]{height:56px}.mdc-data-table__content[_ngcontent-%COMP%], .mdc-data-table__cell[_ngcontent-%COMP%]{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, DroidKufi));font-size:var(--mdc-typography-body2-font-size, 14px);line-height:var(--mdc-typography-body2-line-height, 20px);font-weight:var(--mdc-typography-body2-font-weight, 400);letter-spacing:var(--mdc-typography-body2-letter-spacing, .0178571429em);-webkit-text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-transform:var(--mdc-typography-body2-text-transform, none)}.mdc-data-table__header-cell[_ngcontent-%COMP%]{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-subtitle2-font-family, var(--mdc-typography-font-family, DroidKufi));font-size:var(--mdc-typography-subtitle2-font-size, 14px);line-height:var(--mdc-typography-subtitle2-line-height, 22px);font-weight:var(--mdc-typography-subtitle2-font-weight, 500);letter-spacing:var(--mdc-typography-subtitle2-letter-spacing, .0071428571em);-webkit-text-decoration:var(--mdc-typography-subtitle2-text-decoration, inherit);text-decoration:var(--mdc-typography-subtitle2-text-decoration, inherit);text-transform:var(--mdc-typography-subtitle2-text-transform, none)}.mat-badge[_ngcontent-%COMP%]{position:relative}.mat-badge.mat-badge[_ngcontent-%COMP%]{overflow:visible}.mat-badge-hidden[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{display:none}.mat-badge-content[_ngcontent-%COMP%]{position:absolute;text-align:center;display:inline-block;border-radius:50%;transition:transform .2s ease-in-out;transform:scale(.6);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;pointer-events:none}.ng-animate-disabled[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%], .mat-badge-content._mat-animation-noopable[_ngcontent-%COMP%]{transition:none}.mat-badge-content.mat-badge-active[_ngcontent-%COMP%]{transform:none}.mat-badge-small[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{width:16px;height:16px;line-height:16px}.mat-badge-small.mat-badge-above[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{top:-8px}.mat-badge-small.mat-badge-below[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{bottom:-8px}.mat-badge-small.mat-badge-before[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{left:-16px}[dir=rtl][_ngcontent-%COMP%] .mat-badge-small.mat-badge-before[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{left:auto;right:-16px}.mat-badge-small.mat-badge-after[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{right:-16px}[dir=rtl][_ngcontent-%COMP%] .mat-badge-small.mat-badge-after[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{right:auto;left:-16px}.mat-badge-small.mat-badge-overlap.mat-badge-before[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{left:-8px}[dir=rtl][_ngcontent-%COMP%] .mat-badge-small.mat-badge-overlap.mat-badge-before[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{left:auto;right:-8px}.mat-badge-small.mat-badge-overlap.mat-badge-after[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{right:-8px}[dir=rtl][_ngcontent-%COMP%] .mat-badge-small.mat-badge-overlap.mat-badge-after[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{right:auto;left:-8px}
1.mat-badge-medium[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{width:22px;height:22px;line-height:22px}.mat-badge-medium.mat-badge-above[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{top:-11px}.mat-badge-medium.mat-badge-below[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{bottom:-11px}.mat-badge-medium.mat-badge-before[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{left:-22px}[dir=rtl][_ngcontent-%COMP%] .mat-badge-medium.mat-badge-before[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{left:auto;right:-22px}.mat-badge-medium.mat-badge-after[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{right:-22px}[dir=rtl][_ngcontent-%COMP%] .mat-badge-medium.mat-badge-after[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{right:auto;left:-22px}.mat-badge-medium.mat-badge-overlap.mat-badge-before[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{left:-11px}[dir=rtl][_ngcontent-%COMP%] .mat-badge-medium.mat-badge-overlap.mat-badge-before[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{left:auto;right:-11px}.mat-badge-medium.mat-badge-overlap.mat-badge-after[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{right:-11px}[dir=rtl][_ngcontent-%COMP%] .mat-badge-medium.mat-badge-overlap.mat-badge-after[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{right:auto;left:-11px}.mat-badge-large[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{width:28px;height:28px;line-height:28px}.mat-badge-large.mat-badge-above[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{top:-14px}.mat-badge-large.mat-badge-below[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{bottom:-14px}.mat-badge-large.mat-badge-before[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{left:-28px}[dir=rtl][_ngcontent-%COMP%] .mat-badge-large.mat-badge-before[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{left:auto;right:-28px}.mat-badge-large.mat-badge-after[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{right:-28px}[dir=rtl][_ngcontent-%COMP%] .mat-badge-large.mat-badge-after[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{right:auto;left:-28px}.mat-badge-large.mat-badge-overlap.mat-badge-before[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{left:-14px}[dir=rtl][_ngcontent-%COMP%] .mat-badge-large.mat-badge-overlap.mat-badge-before[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{left:auto;right:-14px}.mat-badge-large.mat-badge-overlap.mat-badge-after[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{right:-14px}[dir=rtl][_ngcontent-%COMP%] .mat-badge-large.mat-badge-overlap.mat-badge-after[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{right:auto;left:-14px}.mat-badge-content[_ngcontent-%COMP%]{font-weight:600;font-size:12px;font-family:DroidKufi}.mat-badge-small[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{font-size:9px}.mat-badge-large[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{font-size:24px}.mat-bottom-sheet-container[_ngcontent-%COMP%]{font-size:14px;font-weight:400;line-height:20px;font-family:DroidKufi;letter-spacing:.0178571429em}.mat-button-toggle-appearance-standard[_ngcontent-%COMP%] .mat-button-toggle-label-content[_ngcontent-%COMP%]{line-height:48px}.mat-button-toggle[_ngcontent-%COMP%]{font-family:DroidKufi}.mat-calendar-controls[_ngcontent-%COMP%] .mat-mdc-icon-button.mat-mdc-button-base[_ngcontent-%COMP%]{--mdc-icon-button-state-layer-size: 40px;width:var(--mdc-icon-button-state-layer-size);height:var(--mdc-icon-button-state-layer-size);padding:8px}.mat-calendar-controls[_ngcontent-%COMP%] .mat-mdc-icon-button.mat-mdc-button-base[_ngcontent-%COMP%] .mat-mdc-button-touch-target[_ngcontent-%COMP%]{display:none}.mat-calendar[_ngcontent-%COMP%]{font-family:DroidKufi}.mat-calendar-body[_ngcontent-%COMP%]{font-size:13px}.mat-calendar-body-label[_ngcontent-%COMP%], .mat-calendar-period-button[_ngcontent-%COMP%]{font-size:14px;font-weight:500}.mat-calendar-table-header[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-size:11px;font-weight:400}.mat-expansion-panel-header[_ngcontent-%COMP%]{height:48px}.mat-expansion-panel-header.mat-expanded[_ngcontent-%COMP%]{height:64px}.mat-expansion-panel-header[_ngcontent-%COMP%]{font-family:DroidKufi;font-size:14px;font-weight:500}.mat-expansion-panel-content[_ngcontent-%COMP%]{font-size:14px;font-weight:400;line-height:20px;font-family:DroidKufi;letter-spacing:.0178571429em}.mat-grid-tile-header[_ngcontent-%COMP%], .mat-grid-tile-footer[_ngcontent-%COMP%]{font-size:14px}.mat-grid-tile-header[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%], .mat-grid-tile-footer[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-grid-tile-header[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2), .mat-grid-tile-footer[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2){font-size:12px}.mat-horizontal-stepper-header[_ngcontent-%COMP%]{height:72px}.mat-stepper-label-position-bottom[_ngcontent-%COMP%] .mat-horizontal-stepper-header[_ngcontent-%COMP%], .mat-vertical-stepper-header[_ngcontent-%COMP%]{padding:24px}.mat-stepper-vertical-line[_ngcontent-%COMP%]:before{top:-16px;bottom:-16px}.mat-stepper-label-position-bottom[_ngcontent-%COMP%] .mat-horizontal-stepper-header[_ngcontent-%COMP%]:after, .mat-stepper-label-position-bottom[_ngcontent-%COMP%] .mat-horizontal-stepper-header[_ngcontent-%COMP%]:before{top:36px}.mat-stepper-label-position-bottom[_ngcontent-%COMP%] .mat-stepper-horizontal-line[_ngcontent-%COMP%]{top:36px}.mat-stepper-vertical[_ngcontent-%COMP%], .mat-stepper-horizontal[_ngcontent-%COMP%]{font-family:DroidKufi}.mat-step-label[_ngcontent-%COMP%]{font-size:14px;font-weight:400}.mat-step-sub-label-error[_ngcontent-%COMP%]{font-weight:400}.mat-step-label-error[_ngcontent-%COMP%]{font-size:16px}.mat-step-label-selected[_ngcontent-%COMP%]{font-size:16px;font-weight:400}.mat-toolbar-multiple-rows[_ngcontent-%COMP%]{min-height:64px}.mat-toolbar-row[_ngcontent-%COMP%], .mat-toolbar-single-row[_ngcontent-%COMP%]{height:64px}@media (max-width: 599px){.mat-toolbar-multiple-rows[_ngcontent-%COMP%]{min-height:56px}.mat-toolbar-row[_ngcontent-%COMP%], .mat-toolbar-single-row[_ngcontent-%COMP%]{height:56px}}.mat-toolbar[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h4[_ng
1content-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font-size:20px;font-weight:500;line-height:32px;font-family:DroidKufi;letter-spacing:.0125em;margin:0}.mat-tree-node[_ngcontent-%COMP%]{min-height:48px}.mat-tree[_ngcontent-%COMP%]{font-family:DroidKufi}.mat-tree-node[_ngcontent-%COMP%], .mat-nested-tree-node[_ngcontent-%COMP%]{font-weight:400;font-size:14px}[class^=mdc-][_ngcontent-%COMP%], [class^=mat-mdc-][_ngcontent-%COMP%]{letter-spacing:.5px}mat-label[_ngcontent-%COMP%], .mat-mdc-input-element[_ngcontent-%COMP%], .mat-mdc-select-value-text[_ngcontent-%COMP%] span[_ngcontent-%COMP%], mat-option[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .mdc-list-item[_ngcontent-%COMP%], .cdk-virtual-scroll-content-wrapper[_ngcontent-%COMP%] .mat-mdc-option[_ngcontent-%COMP%] .mdc-list-item__primary-text[_ngcontent-%COMP%]{letter-spacing:0}.edit-dialog[_ngcontent-%COMP%] .special-plates-form-edit[_ngcontent-%COMP%]{padding:20px;display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:space-around;align-items:center;align-content:stretch}.edit-dialog[_ngcontent-%COMP%] .special-plates-form-edit[_ngcontent-%COMP%] .input[_ngcontent-%COMP%] .mat-mdc-form-field{width:450px}.edit-dialog[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{padding-bottom:15px;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-around;align-items:center;align-content:stretch}.edit-dialog[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{font-size:16px;background-color:#015586;font-weight:700;text-align:center;color:#fff;width:45%}']}),r})();var Q=c(9862),m=c(6469),C=c(6743);let o=(()=>{class r extends m.M{constructor(n,a){super(n,a,"/api/plate-number"),this.actionUrl=a.settings.nefaaAuctionUrl+"/api/plate-number"}fetchData(n,a){const s=(new Q.WM).set("showLoader","true");return this._http.get(this.actionUrl,{headers:s,params:{...n}}).pipe((0,v.U)(h=>({body:{...h}})))}handleData(n){return{count:n.totalElements,list:n.content.map(a=>{let s="";return a.currency&&a.evaluatedPrice&&(s+=a.currency+" "+a.evaluatedPrice),{...a,evaluatedPriceStr:s}})}}addBulk(n){const a=(new Q.WM).set("showLoader","true");return this._http.post(this.actionUrl+"/add-bulk",n,{headers:a})}updateById(n,a){const s=(new Q.WM).set("showLoader","true");return this._http.put(this.actionUrl+"/"+n,a,{headers:s})}}return r.\u0275fac=function(n){return new(n||r)(t.LFG(Q.eN),t.LFG(C.g))},r.\u0275prov=t.Yz7({token:r,factory:r.\u0275fac}),r})();function i(r,u){if(1&r&&(t.TgZ(0,"div")(1,"div",6)(2,"span"),t._uU(3),t.ALo(4,"translate"),t.qZA()()()),2&r){const n=u.$implicit;t.xp6(1),t.Q6J("ngClass",n.status),t.xp6(2),t.Oqu(t.lcZ(4,2,"specialPlates."+n.status))}}function d(r,u){if(1&r){const n=t.EpF();t.TgZ(0,"div",7)(1,"mat-icon",8),t.NdJ("click",function(){const h=t.CHM(n).$implicit,y=t.oxw();return t.KtG(y.edit(h))}),t._uU(2," edit "),t.qZA()()}if(2&r){const n=t.oxw();t.xp6(1),t.Q6J("needsPermissions",n.permissionsEnum.PLATE_NUMBER_EDIT)}}let f=(()=>{class r{constructor(n,a,s,h,y){this._router=n,this._specialPlatesService=a,this._dialog=s,this._translateService=h,this._utilsService=y,this.defaultParams={page:0,size:10},this.columns=[{columnDef:"code",header:this._translateService.instant("specialPlates.code"),cellValue:k=>k.code},{columnDef:"number",header:this._translateService.instant("specialPlates.plateNumber"),cellValue:k=>k.number},{columnDef:"evaluatedPrice",header:this._translateService.instant("specialPlates.evaluatedPrice"),cellValue:k=>k.evaluatedPriceStr},{columnDef:"status",header:this._translateService.instant("specialPlates.status"),cellValue:k=>k.status,customColumn:!0},{columnDef:"actions",header:"",cellValue:k=>k.actions,customColumn:!0}],this.beDataSource=new e.W(this._specialPlatesService),this.permissionsEnum=b.j}ngOnInit(){this.beDataSource.loadData(this.defaultParams)}navigateToForm(){this._router.navigate([L.q.MANAGEMENT_SPECIAL_PLATES_ADD])}edit(n){let a;a=this._dialog.open(dt,{disableClose:!0,width:"500px",data:{data:{plateNumber:n.code+"-"+n.number,evaluatedPrice:n.evaluatedPrice}}}),a.afterClosed().subscribe(s=>{if(s){const h=s.plateNumber.split("-");this._handleEdit(n.id,{code:h[0],number:h[1],evaluatedPrice:s.evaluatedPrice})}})}_handleEdit(n,a){this._specialPlatesService.updateById(n,a).subscribe(s=>{s&&(this._utilsService.showCustomSnackbar("general.success"),this._refreshData())})}_refreshData(){this.beDataSource.loadData({page:this.beDataSource.getPage(),size:this.beDataSource.getSize()})}}return r.\u0275fac=function(n){return new(n||r)(t.Y36(P.F0),t.Y36(o),t.Y36(U.uw),t.Y36(M.sK),t.Y36(J.F))},r.\u0275cmp=t.Xpm({type:r,selectors:[["special-plates-listing"]],decls:9,vars:15,consts:[[1,"table-container"],["title","specialPlates.title",3,"hideBack"],["color","primary","mat-raised-button","","type","button",3,"title","needsPermissions","click"],[1,"siren-table-one","column-to-right",3,"needsPermissions","dataSource","displayedColumns","allowPagination","allowFiltering"],[4,"appCustomCols","appCustomColsColumnDef"],["class","buttons",4,"appCustomCols","appCustomColsColumnDef"],[1,"commonChip",3,"ngClass"],[1,"buttons"],[1,"edit-icon",3,"needsPermissions","click"]],template:function(n,a){1&n&&(t.TgZ(0,"div",0)(1,"app-page-title",1)(2,"button",2),t.NdJ("click",function(){return a.navigateToForm()}),t.ALo(3,"translate"),t._uU(4),t.ALo(5,"translate"),t.qZA()(),t.TgZ(6,"siren-table",3),t.YNc(7,i,5,4,"div",4),t.YNc(8,d,3,1,"div",5),t.qZA()()),2&n&&(t.xp6(1),t.Q6J("hideBack",!0),t.xp6(1),t.s9C("title",t.lcZ(3,11,"general.add")),t.Q6J("needsPermissions",a.permissionsEnum.PLATE_NUMBER_ADD_BULK),t.xp6(2),t.hij("",t.lcZ(5,13,"general.add")," +"),t.xp6(2),t.Q6J("needsPermissions",a.permissionsEnum.PLATE_NUMBER_GET)("dataSource",a.beDataSource)("displayedColumns",a.columns)("allowPagination",!0)("allowFiltering",!0),t.xp6(1),t.Q6J("appCustomColsColumnDef","status"),t.xp6(1),t.Q6J("appCustomColsColumnDef","actions"))},dependencies:[l.mk,S.lW,G.Hw,B.T,R.J,e.Cx,e.F6,M.X$],styles:[".FOR_SALE[_ngcontent-%COMP%]{background-color:#ffeb61;color:#8c764f}.SOLD[_ngcontent-%COMP%]{background-color:#00b2a933;color:#00b2a9}.NOT_FOR_SALE[_ngcontent-%COMP%]{background-color:#8b8b8b;color:#fff}.AVAILABLE[_ngcontent-%COMP%]{background-color:#6eaaf9;color:#fff}.RESERVED[_ngcontent-%COMP%]{background-color:#c117b933;color:#ca25ae}.OPEN_FOR_BIDDING[_ngcontent-%COMP%]{background-color:#ffb6ba;color:#c11722}"]}),r})();const O=["ngForm"];function A(r,u){if(1&r){const n=t.EpF();t.TgZ(0,"div",8)(1,"form",9)(2,"div",10)(3,"div",11),t._UZ(4,"app-text-input",12),t.ALo(5,"translate"),t.ALo(6,"translate"),t._UZ(7,"app-number-input",13),t.ALo(8,"translate"),t.ALo(9,"translate"),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"button",14),t.NdJ("click",function(){const h=t.CHM(n).index,y=t.oxw();return t.KtG(y.removeFormGroup(h))}),t.TgZ(12,"mat-icon",15),t._uU(13,"remove"),t.qZA()()()()()}if(2&r){const n=u.$implicit,a=t.oxw();
1t.xp6(1),t.Q6J("formGroup",n),t.xp6(3),t.Q6J("placeholdertext",t.lcZ(5,8,"specialPlates.plateNumber"))("placeholderLabel",t.lcZ(6,10,"general.plateNumberLabelIndicator"))("ngForm",a.ngForm),t.xp6(3),t.Q6J("placeholdertext",t.lcZ(8,12,"specialPlates.evaluatedPrice"))("placeholderLabel",t.lcZ(9,14,"general.plateNumberEvaluatedPriceIndicator"))("customErrorMessage",t.lcZ(10,16,"form_errors.min_plate_price"))("ngForm",a.ngForm)}}let $=(()=>{class r{constructor(n,a,s){this._router=n,this._utilsService=a,this._specialPlatesService=s,this.formGroups=[],this.backPath=L.q.MANAGEMENT_SPECIAL_PLATES}ngOnInit(){this.addRow()}addRow(){const n=this.createFormGroup();this.formGroups.push(n)}removeRow(){this.formGroups.length>1&&this.formGroups.pop()}removeFormGroup(n){this.formGroups.length>1&&n>=0&&n<this.formGroups.length&&this.formGroups.splice(n,1)}submit(){if(this.formGroups.some(a=>a.invalid))return void this._utilsService.showCustomSnackbar("general.checkInfo");const n=[];this.formGroups.forEach(a=>{const s=a.get("plateNumber").value.split("-");n.push({code:s[0],number:s[1],evaluatedPrice:a.get("evaluatedPrice").value})}),this._specialPlatesService.addBulk(n).subscribe({next:a=>{a?(this._utilsService.showCustomSnackbar("general.success"),this._router.navigate([L.q.MANAGEMENT_SPECIAL_PLATES])):this._utilsService.showCustomSnackbar("general.error")},error:a=>{this._utilsService.showRelatedAPIErrorMessage(a)}})}createFormGroup(){return new p.cw({plateNumber:new p.NI(null,[p.kI.required,(0,tt.S5)()]),evaluatedPrice:new p.NI(null,[p.kI.required])})}}return r.\u0275fac=function(n){return new(n||r)(t.Y36(P.F0),t.Y36(J.F),t.Y36(o))},r.\u0275cmp=t.Xpm({type:r,selectors:[["special-plates-form"]],viewQuery:function(n,a){if(1&n&&t.Gf(O,5),2&n){let s;t.iGM(s=t.CRH())&&(a.ngForm=s.first)}},decls:15,vars:8,consts:[["title","specialPlates.addTitle",3,"backPath"],[1,"formBorderTheme1","defaultForm"],[1,"default-form-style"],["class","special-plate-form",4,"ngFor","ngForOf"],["mat-button","",1,"add-row-btn","item-full-row",3,"click"],[1,"text"],[1,"actionButtons"],["mat-flat-button","","color","primary",1,"btnsubmit",3,"click"],[1,"special-plate-form"],[3,"formGroup"],[1,"gridContainer"],[1,"inputs"],["formControlName","plateNumber","applyUpperCase","true","maxlength","50",1,"input",3,"placeholdertext","placeholderL
1abel","ngForm"],["formControlName","evaluatedPrice","min","1",1,"input",3,"placeholdertext","placeholderLabel","customErrorMessage","ngForm"],["mat-icon-button","","color","white",1,"remove-button",3,"click"],[1,"remove-icon"]],template:function(n,a){1&n&&(t._UZ(0,"app-page-title",0),t.TgZ(1,"div",1)(2,"div",2)(3,"div"),t.YNc(4,A,14,18,"div",3),t.TgZ(5,"button",4),t.NdJ("click",function(){return a.addRow()}),t.TgZ(6,"mat-icon"),t._uU(7,"add"),t.qZA(),t.TgZ(8,"div",5),t._uU(9),t.ALo(10,"translate"),t.qZA()()(),t.TgZ(11,"div",6)(12,"button",7),t.NdJ("click",function(){return a.submit()}),t._uU(13),t.ALo(14,"translate"),t.qZA()()()()),2&n&&(t.Q6J("backPath",a.backPath),t.xp6(4),t.Q6J("ngForOf",a.formGroups),t.xp6(5),t.hij(" ",t.lcZ(10,4,"general.addRow")," "),t.xp6(4),t.hij(" ",t.lcZ(14,6,"general.submit")," "))},dependencies:[l.sg,S.lW,S.RK,G.Hw,p._Y,p.JJ,p.JL,p.nD,p.F,p.sg,p.u,x.t,et.f,B.T,M.X$],styles:[".special-plate-form[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{border:unset!important;padding:0;width:100%}.special-plate-form[_ngcontent-%COMP%] form[_ngcontent-%COMP%] .gridContainer[_ngcontent-%COMP%]{display:flex;align-items:flex-start}.special-plate-form[_ngcontent-%COMP%] form[_ngcontent-%COMP%] .gridContainer[_ngcontent-%COMP%] .remove-button[_ngcontent-%COMP%]{margin-top:20px}.special-plate-form[_ngcontent-%COMP%] form[_ngcontent-%COMP%] .gridContainer[_ngcontent-%COMP%] .inputs[_ngcontent-%COMP%]{width:100%;gap:1rem;display:flex;align-items:flex-start}.special-plate-form[_ngcontent-%COMP%] form[_ngcontent-%COMP%] .gridContainer[_ngcontent-%COMP%] app-text-input[_ngcontent-%COMP%]{flex-grow:1}.special-plate-form[_ngcontent-%COMP%] form[_ngcontent-%COMP%] .gridContainer[_ngcontent-%COMP%] app-number-input[_ngcontent-%COMP%]{flex-grow:1}.add-row-btn[_ngcontent-%COMP%]{font-weight:700;color:#015586!important;font-size:1rem;margin-top:1rem}"]}),r})();var ut=c(1355);let mt=(()=>{class r extends ut.e{constructor(n,a){super(n,a),this.http=n,this.injector=a}getAllCarBrands(){return this.get("api/car-brand/all",null,!0,this.settingsService.settings.carRegistrationBaseURL)}getAllSubcategories(){return this.get("api/car-subtype",null,!0,this.settingsService.settings.carRegistrationBaseURL)}createSubcategories(n){return this.post("api/car-subtype/brand/subcategories",n,null,!0,this.settingsService.settings.carRegistrationBaseURL)}updateSubcategory(n,a){return this.put(`api/car-subtype/${n}`,a,null,!0,this.settingsService.settings.carRegistrationBaseURL)}deleteSubcategory(n){return this.delete(`api/car-subtype/${n}`,null,null,!0,this.settingsService.settings.carRegistrationBaseURL)}getSingleSubcategory(n){return this.get(`api/car-subtype/${n}`,null,!0,this.settingsService.settings.carRegistrationBaseURL)}}return r.\u0275fac=function(n){return new(n||r)(t.LFG(Q.eN),t.LFG(t.zs3))},r.\u0275prov=t.Yz7({token:r,factory:r.\u0275fac}),r})();function ht(r,u){if(1&r){const n=t.EpF();t.TgZ(0,"div",4)(1,"mat-icon",5),t.NdJ("click",function(){const h=t.CHM(n).$implicit,y=t.oxw();return t.KtG(y.edit(h))}),t.ALo(2,"translate"),t._uU(3," edit "),t.qZA(),t.TgZ(4,"mat-icon",6),t.NdJ("click",function(){const h=t.CHM(n).$implicit,y=t.oxw();return t.KtG(y.delete(h))}),t.ALo(5,"translate"),t._uU(6," delete "),t.qZA()()}if(2&r){const n=t.oxw();t.xp6(1),t.s9C("title",t.lcZ(2,4,"general.edit")),t.Q6J("needsPermissions",n.editSubtypePermission),t.xp6(3),t.s9C("title",t.lcZ(5,6,"general.delete")),t.Q6J("needsPermissions",n.deleteSubtypePermission)}}let ft=(()=>{class r{constructor(n,a,s,h,y){this.router=n,this.carSubcategoriesService=a,this.dialog=s,this.translateService=h,this.utilsService=y,this._subtypesList=[],this.defaultParams={page:0,size:10},this.columns=[{columnDef:"carBrandName",header:this.translateService.instant("car_brand.carBrandName"),cellValue:k=>k.carBrand?.name||""},{columnDef:"name",header:this.translateService.instant("carSubcategories.subcategoryName"),cellValue:k=>k.name},{columnDef:"nameEn",header:this.translateService.instant("carSubcategories.subcategoryNameEn"),cellValue:k=>k.nameEn||""},{columnDef:"actions",header:"",cellValue:k=>k.actions,customColumn:!0}],this.subtypesDataSource=new e.wC(this._subtypesList,this.defaultParams),this.addSubtypePermission=b.j.CAR_BRAND_ADD,this.editSubtypePermission=b.j.CAR_BRAND_EDIT,this.deleteSubtypePermission=b.j.CAR_BRAND_DELETE,this.get
1SubtypePermission=b.j.CAR_BRAND_GET}ngOnInit(){this.getAllSubtypes().subscribe()}navigateToForm(){this.router.navigate([L.q.MANAGEMENT_CAR_SUBCATEGORIES_ADD])}getAllSubtypes(){return this.carSubcategoriesService.getAllSubcategories().pipe((0,v.U)(n=>{this._subtypesList=(n.body||[]).map(a=>({...a,actions:!0})),this._subtypesList.sort((a,s)=>a.id-s.id),this.subtypesDataSource.loadData(this._subtypesList,this.defaultParams)}))}edit(n){this.router.navigate([L.q.MANAGEMENT_CAR_SUBCATEGORIES_EDIT,n.id])}delete(n){this.dialog.open(j.z,{width:"400px",data:{text:this.translateService.instant("general.confirmationQuestion")}}).afterClosed().pipe((0,F.w)(s=>s?this.carSubcategoriesService.deleteSubcategory(n.id).pipe((0,F.w)(h=>(this.utilsService.showCustomSnackbar("carSubcategories.deleteSuccess"),this.getAllSubtypes()))):(0,T.of)(null))).subscribe()}}return r.\u0275fac=function(n){return new(n||r)(t.Y36(P.F0),t.Y36(mt),t.Y36(U.uw),t.Y36(M.sK),t.Y36(J.F))},r.\u0275cmp=t.Xpm({type:r,selectors:[["app-car-subtype-listing"]],decls:7,vars:14,consts:[["title","carSubcategories.title",3,"hideBack"],["color","primary","mat-raised-button","","type","button",3,"needsPermissions","title","click"],[1,"siren-table-one",3,"needsPermissions","dataSource","displayedColumns","allowPagination","allowFiltering"],["class","buttons",4,"appCustomCols","appCustomColsColumnDef"],[1,"buttons"],[1,"edit-icon",3,"needsPermissions","title","click"],[1,"delete-icon",3,"needsPermissions","title","click"]],template:function(n,a){1&n&&(t.TgZ(0,"app-page-title",0)(1,"button",1),t.NdJ("click",function(){return a.navigateToForm()}),t.ALo(2,"translate"),t._uU(3),t.ALo(4,"translate"),t.qZA()(),t.TgZ(5,"siren-table",2),t.YNc(6,ht,7,8,"div",3),t.qZA()),2&n&&(t.Q6J("hideBack",!0),t.xp6(1),t.s9C("title",t.lcZ(2,10,"general.add")),t.Q6J("needsPermissions",a.addSubtypePermission),t.xp6(2),t.hij(" ",t.lcZ(4,12,"general.add")," + "),t.xp6(2),t.Q6J("needsPermissions",a.get
1SubtypePermission)("dataSource",a.subtypesDataSource)("displayedColumns",a.columns)("allowPagination",!0)("allowFiltering",!0),t.xp6(1),t.Q6J("appCustomColsColumnDef","actions"))},dependencies:[S.lW,G.Hw,B.T,R.J,e.Cx,e.F6,M.X$],styles:[".buttons[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:flex-end;align-items:center;align-content:stretch;margin-left:5px;gap:10px}.buttons[_ngcontent-%COMP%] .edit-icon[_ngcontent-%COMP%], .buttons[_ngcontent-%COMP%] .delete-icon[_ngcontent-%COMP%]{cursor:pointer;transition:all .3s ease;font-size:20px}.buttons[_ngcontent-%COMP%] .edit-icon[_ngcontent-%COMP%]:hover, .buttons[_ngcontent-%COMP%] .delete-icon[_ngcontent-%COMP%]:hover{transform:scale(1.1)}.buttons[_ngcontent-%COMP%] .edit-icon[_ngcontent-%COMP%]{color:#015586}.buttons[_ngcontent-%COMP%] .edit-icon[_ngcontent-%COMP%]:hover{color:#013553}.buttons[_ngcontent-%COMP%] .delete-icon[_ngcontent-%COMP%]{color:#f24a49}.buttons[_ngcontent-%COMP%] .delete-icon[_ngcontent-%COMP%]:hover{color:#ef1b19}"]}),r})();var bt=c(4622);const _t=["ngForm"];function Ct(r,u){if(1&r){const n=t.EpF();t.TgZ(0,"div",14)(1,"mat-icon",15),t.NdJ("click",function(){t.CHM(n);const s=t.oxw().index,h=t.oxw();return t.KtG(h.removeFormGroup(s))}),t._uU(2,"remove"),t.qZA()()}}const yt=function(r){return{min:r,max:"50"}};function xt(r,u){if(1&r&&(t.TgZ(0,"div",7)(1,"form",8)(2,"div",9),t._UZ(3,"app-single-select",10),t.ALo(4,"translate"),t._UZ(5,"app-text-input",11),t.ALo(6,"translate"),t.ALo(7,"translate"),t.ALo(8,"translate"),t._UZ(9,"app-text-input",12),t.ALo(10,"translate"),t.YNc(11,Ct,3,0,"div",13),t.qZA()()()),2&r){const n=u.$implicit,a=t.oxw();
1t.xp6(1),t.Q6J("formGroup",n),t.xp6(2),t.s9C("placeholderLabel",t.lcZ(4,10,"car_brand.selectCarBrand")),t.Q6J("dropdownList",a.carBrands)("ngForm",n),t.xp6(2),t.s9C("placeholdertext",t.lcZ(6,12,"carSubcategories.subcategoryName")),t.Q6J("ngForm",a.ngForm)("customErrorMessage",t.xi3(7,14,"form_errors.minMax",t.VKq(21,yt,t.lcZ(8,17,"form_errors.twoLetters")))),t.xp6(4),t.s9C("placeholdertext",t.lcZ(10,19,"carSubcategories.subcategoryNameEn")),t.Q6J("ngForm",a.ngForm),t.xp6(2),t.Q6J("ngIf",!a.isEditMode&&a.formGroups.length>1)}}function Pt(r,u){if(1&r){const n=t.EpF();t.TgZ(0,"button",16),t.NdJ("click",function(){t.CHM(n);const s=t.oxw();return t.KtG(s.addRow())}),t.TgZ(1,"mat-icon"),t._uU(2,"add"),t.qZA(),t.TgZ(3,"div",17),t._uU(4),t.ALo(5,"translate"),t.qZA()()}2&r&&(t.xp6(4),t.hij(" ",t.lcZ(5,1,"general.addRow")," "))}let gt=(()=>{class r{constructor(n,a,s,h){this._router=n,this._route=a,this._utilsService=s,this._carSubcategoriesService=h,this.formGroups=[],this.backPath=L.q.MANAGEMENT_CAR_SUBCATEGORIES,this.carBrands=[],this.isEditMode=!1,this.editingSubtypeId=null}ngOnInit(){const n=this._route.snapshot.paramMap.get("id");n?(this.isEditMode=!0,this.editingSubtypeId=+n,this.loadSubtypeForEdit(+n)):this.addRow(),this.loadCarBrands()}loadCarBrands(){this._carSubcategoriesService.getAllCarBrands().subscribe({next:n=>{this.carBrands=n.body||[]},error:n=>{this._utilsService.showCustomSnackbar("general.error")}})}loadSubtypeForEdit(n){this._carSubcategoriesService.getSingleSubcategory(n).subscribe({next:a=>{const s=a.body;if(s){const h=this.createFormGroup();h.patchValue({carBrandId:s.carBrand?.id,subtypeName:s.name,subtypeNameEn:s.nameEn||""}),this.formGroups=[h]}},error:a=>{this._utilsService.showCustomSnackbar("general.error"),this._router.navigate([this.backPath])}})}addRow(){const n=this.createFormGroup();this.formGroups.push(n)}removeRow(){this.formGroups.length>1&&this.formGroups.pop()}removeFormGroup(n){this.formGroups.length>1&&n>=0&&n<this.formGroups.length&&this.formGroups.splice(n,1)}submit(){this.formGroups.some(n=>n.invalid)?this._utilsService.showCustomSnackbar("general.checkInfo"):this.isEditMode&&this.editingSubtypeId?this.updateSubtype():this.createSubtypes()}updateSubtype(){const n=this.formGroups[0].value,a={name:n.subtypeName,nameEn:n.subtypeNameEn,carBrand:{id:n.carBrandId},type:n.subtypeNameEn?n.subtypeNameEn.toUpperCase():""};this._carSubcategoriesService.updateSubcategory(this.editingSubtypeId,a).subscribe({next:s=>{this._utilsService.showCustomSnackbar("carSubcategories.updateSuccess"),this._router.navigate([L.q.MANAGEMENT_CAR_SUBCATEGORIES])},error:s=>{this._utilsService.showCustomSnackbar("general.error")}})}createSubtypes(){const n=new Map;this.formGroups.forEach(s=>{const h=s.value,y=h.carBrandId;n.has(y)||n.set(y,[]),n.get(y).push({name:h.subtypeName,nameEn:h.subtypeNameEn||""})});const a=[];n.forEach((s,h)=>{const y={carBrandId:h,subcategories:s.map(k=>({...k,type:k.nameEn?k.nameEn.toUpperCase():""}))};a.push(this._carSubcategoriesService.createSubcategories(y))}),(0,q.D)(a).subscribe({next:s=>{s.every(h=>h.ok||201===h.status)?(this._utilsService.showCustomSnackbar("carSubcategories.createSuccess"),this._router.navigate([L.q.MANAGEMENT_CAR_SUBCATEGORIES])):this._utilsService.showCustomSnackbar("general.error")},error:s=>{this._utilsService.showCustomSnackbar("general.error")}})}createFormGroup(){return new p.cw({carBrandId:new p.NI(null,[p.kI.required]),subtypeName:new p.NI(null,[p.kI.required,p.kI.minLength(2),p.kI.maxLength(50)]),subtypeNameEn:new p.NI(null,[p.kI.required,p.kI.minLength(2),p.kI.maxLength(50)])})}getSelectedBrandName(n){const a=n.get("carBrandId")?.value;return this.carBrands.find(h=>h.id===a)?.name||""}}return r.\u0275fac=function(n){return new(n||r)(t.Y36(P.F0),t.Y36(P.gz),t.Y36(J.F),t.Y36(mt))},r.\u0275cmp=t.Xpm({type:r,selectors:[["app-car-subtype-form"]],viewQuery:function(n,a){if(1&n&&t.Gf(_t,5),2&n){let s;t.iGM(s=t.CRH())&&(a.ngForm=s.first)}},decls:11,vars:9,consts:[[3,"title","backPath"],[1,"formBorderTheme1","defaultForm"],[1,"default-form-style"],["class","subtype-form",4,"ngFor","ngForOf"],["class","add-row-btn item-full-row","mat-button","",3,"click",4,"ngIf"],[1,"actionButtons"],["mat-flat-button","","color","primary",1,"btnsubmit",3,"click"],[1,"subtype-form"],[3,"formGroup"],[1,"gridContainer"],["formControlName","carBrandId",3,"placeholderL
1abel","dropdownList","ngForm"],["formControlName","subtypeName","maxlength","50",1,"input",3,"placeholdertext","ngForm","customErrorMessage"],["formControlName","subtypeNameEn","maxlength","50",1,"input",3,"placeholdertext","ngForm"],["class","remove-button-wrapper",4,"ngIf"],[1,"remove-button-wrapper"],[1,"remove-icon",3,"click"],["mat-button","",1,"add-row-btn","item-full-row",3,"click"],[1,"text"]],template:function(n,a){1&n&&(t._UZ(0,"app-page-title",0),t.TgZ(1,"div",1)(2,"div",2)(3,"div"),t.YNc(4,xt,12,23,"div",3),t.YNc(5,Pt,6,3,"button",4),t.qZA(),t.TgZ(6,"div",5)(7,"button",6),t.NdJ("click",function(){return a.submit()}),t._uU(8),t.ALo(9,"translate"),t.ALo(10,"translate"),t.qZA()()()()),2&n&&(t.Q6J("title",a.isEditMode?"carSubcategories.editTitle":"carSubcategories.addTitle")("backPath",a.backPath),t.xp6(4),t.Q6J("ngForOf",a.formGroups),t.xp6(1),t.Q6J("ngIf",!a.isEditMode),t.xp6(3),t.hij(" ",a.isEditMode?t.lcZ(9,5,"general.update"):t.lcZ(10,7,"general.submit")," "))},dependencies:[l.sg,l.O5,S.lW,G.Hw,p._Y,p.JJ,p.JL,p.nD,p.F,p.sg,p.u,x.t,bt.Z,B.T,M.X$],styles:[".subtype-form[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{border:unset!important;padding:0;width:100%}@media screen and (max-width: 599px){.subtype-form[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{flex-direction:column;border-bottom:1px solid #015586}}.subtype-form[_ngcontent-%COMP%] form[_ngcontent-%COMP%] .remove-button-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-end;align-items:center;align-content:center;width:100%}.subtype-form[_ngcontent-%COMP%] form[_ngcontent-%COMP%] .remove-button-wrapper[_ngcontent-%COMP%] .remove-icon[_ngcontent-%COMP%]{cursor:pointer;margin-right:20px;margin-top:15px;color:#f24a49;font-size:24px}.subtype-form[_ngcontent-%COMP%] form[_ngcontent-%COMP%] .remove-button-wrapper[_ngcontent-%COMP%] .remove-icon[_ngcontent-%COMP%]:hover{color:#ef1b19}.subtype-form[_ngcontent-%COMP%] form[_ngcontent-%COMP%] .selected-brand[_ngcontent-%COMP%]{margin-top:15px;padding:12px;background-color:#f5f5f5;border-radius:8px;border-left:4px solid #015586}.subtype-form[_ngcontent-%COMP%] form[_ngcontent-%COMP%] .selected-brand[_ngcontent-%COMP%] .brand-label[_ngcontent-%COMP%]{font-weight:600;color:#015586;margin-left:10px}.subtype-form[_ngcontent-%COMP%] form[_ngcontent-%COMP%] .selected-brand[_ngcontent-%COMP%] .brand-name[_ngcontent-%COMP%]{font-weight:700;color:navy;margin-right:10px}.add-row-btn[_ngcontent-%COMP%]{font-weight:700;color:#015586!important;font-size:1rem;margin-top:1rem;display:flex;align-items:center;gap:8px}.add-row-btn[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{font-weight:600}.add-row-btn[_ngcontent-%COMP%]:hover{background-color:#0155861a}.actionButtons[_ngcontent-%COMP%]{margin-top:30px;text-align:center}.actionButtons[_ngcontent-%COMP%] .btnsubmit[_ngcontent-%COMP%]{min-width:150px;height:45px;font-size:16px;font-weight:600}"]}),r})();const vt=[{path:"drivingschools",component:V,canActivate:[(0,E.UG)(b.j.DRIVING_SCHOOL_MGT)]},{path:"drivingschools/new",component:D.T,canActivate:[(0,E.UG)(b.j.DRIVING_SCHOOL_CREATE)]},{path:"drivingschools/:id",component:D.T,canActivate:[(0,E.UG)(b.j.DRIVING_SCHOOL_READ)]},{path:"car-brands",children:[{path:"",component:W,canActivate:[(0,E.UG)(b.j.CAR_BRAND_MGT)]},{path:"add",component:X,canActivate:[(0,E.UG)(b.j.CAR_BRAND_ADD)]}]},{path:"car-subcategories",children:[{path:"",component:ft,canActivate:[(0,E.UG)(b.j.CAR_BRAND_MGT)]},{path:"add",component:gt,canActivate:[(0,E.UG)(b.j.CAR_BRAND_MGT)]},{path:"edit/:id",component:gt,canActivate:[(0,E.UG)(b.j.CAR_BRAND_MGT)]}]},{path:"special-plates",children:[{path:"",component:f},{path:"add",component:$}]},{path:"car-companies",loadChildren:()=>Promise.all([c.e(592),c.e(374)]).then(c.bind(c,7433)).then(r=>r.CarCompanyModule),canActivate:[(0,E.UG)(b.j.CAR_COMPANY_MGT)]},{path:"staff",loadChildren:()=>Promise.all([c.e(592),c.e(12)]).then(c.bind(c,6012)).then(r=>r.StaffManagementModule),canActivate:[(0,E.Ld)([b.j.TMO_STAFF_MGT,b.b.System_Admin])]},{path:"quota-configuration",loadChildren:()=>c.e(706).then(c.bind(c,4706)).then(r=>r.QuotaConfigurationModule),canActivate:[(0,E.UG)(b.b.TMO_ADMIN)]},{path:"lookup-config",loadChildren:()=>Promise.resolve().then(c.bind(c,4946)).then(r=>
1r.LookupConfigModule),canActivate:[(0,E.UG)(b.b.TMO_ADMIN)]}];let Mt=(()=>{class r{}return r.\u0275fac=function(n){return new(n||r)},r.\u0275mod=t.oAB({type:r}),r.\u0275inj=t.cJS({imports:[P.Bz.forChild(vt),P.Bz]}),r})();var Ot=c(8360),kt=c(7116),wt=c(4946);let Ft=(()=>{class r{}return r.\u0275fac=function(n){return new(n||r)},r.\u0275mod=t.oAB({type:r}),r.\u0275inj=t.cJS({providers:[Y.u,o,mt],imports:[l.ez,Mt,Ot.m,e.Ix,kt.N,wt.LookupConfigModule]}),r})()},9131:(nt,K,c)=>{c.d(K,{u:()=>b});var l=c(1355),P=c(6122),D=c(5879),E=c(9862);let b=(()=>{class e extends l.e{constructor(w,N){super(w,N),this.http=w,this.injector=N}getAllCarBrandPage(w,N){return this.get(`api/car-brand?page=${w}&size=${N}`,null,!0,this.settingsService.settings.carRegistrationBaseURL)}getAllCarBrands(){return this.get("api/car-brand/all",null,!0,this.settingsService.settings.carRegistrationBaseURL)}addCarBrand(w){return this.post("api/car-brand/",w,P.RY,!0,this.settingsService.settings.carRegistrationBaseURL)}deleteCarbrand(w){return this.delete(`api/car-brand/${w}`,null,null,!0,this.settingsService.settings.carRegistrationBaseURL)}editCarBrand(w,N){return this.put(`api/car-brand/${w}`,N,P.RY,!0,this.settingsService.settings.carRegistrationBaseURL)}}return e.\u0275fac=function(w){return new(w||e)(D.LFG(E.eN),D.LFG(D.zs3))},e.\u0275prov=D.Yz7({token:e,factory:e.\u0275fac}),e})()},1693:(nt,K,c)=>{c.d(K,{Y:()=>U});var l=c(5879),P=c(6223),D=c(9137),b=(c(1450),c(4486)),e=c(9515),Z=c(6814),w=c(9388),N=c(4516),t=c(4170),I=c(2296),L=c(617),M=c(7034);const S=["f_input"];function R(x,z){if(1&x){const g=l.EpF();l.TgZ(0,"div",12)(1,"span",13),l.NdJ("click",function(){const F=l.CHM(g).$implicit,T=l.oxw(2);return l.KtG(T.nameClick(F))}),l._uU(2),l.qZA(),l.TgZ(3,"button",14),l.NdJ("click",function(){const F=l.CHM(g).$implicit,T=l.oxw(2);return l.KtG(T.removeFile(F))}),l.TgZ(4,"mat-icon"),l._uU(5,"close"),l.qZA()()()}if(2&x){const g=z.$implicit;l.xp6(2),l.AsE("",g.fileName,".",g.fileExtension,"")}}function B(x,z){if(1&x&&(l.TgZ(0,"div",10),l.YNc(1,R,6,2,"div",11),l.qZA()),2&x){const g=l.oxw();l.xp6(1),l.Q6J("ngForOf",g.existingFiles)}}function V(x,z){if(1&x){const g=l.EpF();l.TgZ(0,"div",12)(1,"span",16),l._uU(2),l.qZA(),l.TgZ(3,"button",14),l.NdJ("click",function(){const v=l.CHM(g),F=v.$implicit,T=v.index,Y=l.oxw(2);return l.KtG(Y.removeFile(F,!0,T))}),l.TgZ(4,"mat-icon"),l._uU(5,"close"),l.qZA()()()}if(2&x){const g=z.$implicit;l.xp6(2),l.Oqu(g.name)}}function j(x,z){if(1&x&&(l.TgZ(0,"div",15),l.YNc(1,V,6,1,"div",11),l.qZA()),2&x){const g=l.oxw();l.xp6(1),l.Q6J("ngForOf",g.newFiles)}}const p=function(x,z,g){return{invalid:x,hasFilesAlreadyUploaded:z,hasValue:g}};let U=(()=>{class x{set allowedFileExtensions(g){g&&(Array.isArray(g)&&g.length>0?this.acceptableFilesExtention=g.join(", "):"string"==typeof g&&(this.acceptableFilesExtention=g))}set filesAlreadyUploaded(g){g?.length&&(this.existingFiles=g)}constructor(g,_,v,F){this.ngControl=g,this.host=_,this.utils=v,this.translation=F,this.direction="rtl",this.maxFileSizeMB=5,this.multipleUpload=!1,this.multipleUploadLimit=this.multipleUpload?5:1,this.existingFiles=[],this.removedAllNewFiles=new l.vpe,this.fileNameClick=new l.vpe,this.fileDeletionClick=new l.vpe,this.acceptableFilesExtention=".doc, .docx, .pdf, .jpeg, .jpg, .png",this.newFiles=[],this.touched=!1,this.display=new P.NI(""),this.ngControl.valueAccessor=this}ngOnInit(){this.ngControl.control.addValidators([(0,D.L3)(this.maxFileSizeMB),(0,D.N5)(this.acceptableFilesExtention.split(", ").map(g=>g.toLowerCase()))])}onFileSelected(g){const _=g.target.files;if(_?.length)if(this.multipleUpload){if(this.existingFiles?.length+this.newFiles.length+_.length>this.multipleUploadLimit)return void this.utils.showCustomSnackbar(this.translation.instant("car_registration.form_errors.max_files_limit",{limit:this.multipleUploadLimit,field:this.placeholdertext}));for(let v=0;v<_.length;v++)this.newFiles.push(_[v]),this.display.patchValue(_[v].name);this.onChange(this.newFiles),this.onTouched()}else{if(this.newFiles?.length+this.existingFiles.length>0)return void this.utils.showCustomSnackbar(this.translation.instant("car_registration.form_errors.max_files_limit",{limit:this.multipleUploadLimit,field:this.placeholdertext}));this.newFiles.push(_[0]),this.onChange(this.newFiles),this.display.patchValue(_[0].name),this.onTouched()}else this.setTouched()}setTouched(){this.touched=!0}fieldInvalid(){const g=this.ngControl.control;
1return!(!g.touched||!g.invalid)}writeValue(g){}registerOnChange(g){this.onChange=g}registerOnTouched(g){this.onTouched=g}nameClick(g){this.fileNameClick.emit(g)}removeFile(g,_,v){_?(this.newFiles.splice(v,1),this.onChange(this.newFiles?.length?this.newFiles:null),this.onTouched(),this.newFiles?.length||(this.display.setValue(""),this.ngControl.control.setValue(null),this.removedAllNewFiles.emit())):(this.onChange(this.newFiles),this.fileDeletionClick.emit(g))}clearAllNewFiles(){this.newFiles=[],this.onChange(null),this.onTouched(),this.display.setValue(""),this.ngControl.control.setValue(null)}isFieldRequired(){return this.ngControl?.control?.isRequired()||!1}getDisplayLabel(){const g=this.placeholdertext||"";return this.isFieldRequired()?`${g} *`:g}}return x.\u0275fac=function(g){return new(g||x)(l.Y36(P.a5,2),l.Y36(l.SBq),l.Y36(b.F),l.Y36(e.sK))},x.\u0275cmp=l.Xpm({type:x,selectors:[["file-upload-input"]],viewQuery:function(g,_){if(1&g&&l.Gf(S,5),2&g){let v;l.iGM(v=l.CRH())&&(_.fInput=v.first)}},inputs:{placeholdertext:"placeholdertext",formControlName:"formControlName",direction:"direction",ngForm:"ngForm",maxFileSizeMB:"maxFileSizeMB",multipleUpload:"multipleUpload",multipleUploadLimit:"multipleUploadLimit",allowedFileExtensions:"allowedFileExtensions",filesAlreadyUploaded:"filesAlreadyUploaded"},outputs:{removedAllNewFiles:"removedAllNewFiles",fileNameClick:"fileNameClick",fileDeletionClick:"fileDeletionClick"},decls:14,vars:15,consts:[[1,"fileUpload"],[1,"wrapping-square","pointer",3,"ngClass"],["color","primary",1,"field",3,"change"],["class","previousFiles",4,"ngIf"],["class","newFiles",4,"ngIf"],["type","text","readonly","","matInput","",1,"inputLbl",3,"placeholder","formControl","click"],["type","file","hidden","",3,"dir","accept","multiple","change"],["f_input",""],["mat-icon-button","","matSuffix","","type","button",1,"icon","btnUpload",3,"click"],[3,"control","form"],[1,"previousFiles"],["class","contFileName",4,"ngFor","ngForOf"],[1,"contFileName"],[1,"name",3,"click"],["mat-icon-button","","matSuffix","","type","button",1,"icon",3,"click"],[1,"newFiles"],[1,"name"]],template:function(g,_){if(1&g){const v=l.EpF();l.TgZ(0,"div",0)(1,"div",1)(2,"mat-form-field",2),l.NdJ("change",function(){return _.setTouched()}),l.TgZ(3,"mat-label"),l._uU(4),l.qZA(),l.YNc(5,B,2,1,"div",3),l.YNc(6,j,2,1,"div",4),l.TgZ(7,"input",5),l.NdJ("click",function(){l.CHM(v);const T=l.MAs(9);return l.KtG(T.click())}),l.qZA(),l.TgZ(8,"input",6,7),l.NdJ("change",function(T){return _.onFileSelected(T)}),l.qZA(),l.TgZ(10,"button",8),l.NdJ("click",function(){l.CHM(v);const T=l.MAs(9);return l.KtG(T.click())}),l.TgZ(11,"mat-icon"),l._uU(12,"cloud_upload"),l.qZA()()()(),l._UZ(13,"app-error-display",9),l.qZA()}2&g&&(l.xp6(1),l.Q6J("ngClass",l.kEZ(11,p,_.fieldInvalid(),null==_.existingFiles?null:_.existingFiles.length,null==_.display?null:_.display.value)),l.xp6(3),l.hij(" ",_.getDisplayLabel()," "),l.xp6(1),l.Q6J("ngIf",null==_.existingFiles?null:_.existingFiles.length),l.xp6(1),l.Q6J("ngIf",null==_.newFiles?null:_.newFiles.length),l.xp6(1),l.Q6J("placeholder",_.getDisplayLabel())("formControl",_.display),l.xp6(1),l.Q6J("dir",_.direction)("accept",_.acceptableFilesExtention)("multiple",_.multipleUpload),l.xp6(5),l.Q6J("control",_.ngControl.control)("form",_.ngForm))},dependencies:[Z.mk,Z.sg,Z.O5,w.Lv,N.Nt,t.KE,t.hX,t.R9,I.RK,L.Hw,P.Fj,P.JJ,P.oH,M.n],styles:[".fileUpload[_ngcontent-%COMP%]{margin-top:.7rem}.fileUpload[_ngcontent-%COMP%] .wrapping-square[_ngcontent-%COMP%]{padding:0;width:100%;border:1px solid rgba(0,0,0,.38);border-radius:.5rem;background-color:#fff;height:56px}.fileUpload[_ngcontent-%COMP%] .wrapping-square.disabled_field[_ngcontent-%COMP%]{border-color:#dedede;background-color:#ffffffab}.fileUpload[_ngcontent-%COMP%] .wrapping-square[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:97%;margin-right:.25rem}.fileUpload[_ngcontent-%COMP%] .wrapping-square[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%] .mat-form-field-label{transform:inherit}.fileUpload[_ngcontent-%COMP%] .wrapping-square[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%] .mat-mdc-form-field-subscript-wrapper{display:none}.fileUpload[_ngcontent-%COMP%] .wrapping-square[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%] .mat-mdc-text-field-wrapper{background-color:#fff}.fileUpload[_ngcontent-%COMP%] .wrapping-square[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%] .mdc-line-ripple:before{display:none;border-bottom-style:none}.fileUpload[_ngcontent-%COMP%] .wrapping-square[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%] .mdc-line-ripple:after{display:none;border-bottom-style:none}.fileUpload[_ngcontent-%COMP%] .field[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{color:#132f5a}
1.fileUpload[_ngcontent-%COMP%] .inputLbl[_ngcontent-%COMP%]{cursor:pointer}.fileUpload[_ngcontent-%COMP%] .previousFiles[_ngcontent-%COMP%] .contFileName[_ngcontent-%COMP%], .fileUpload[_ngcontent-%COMP%] .newFiles[_ngcontent-%COMP%] .contFileName[_ngcontent-%COMP%]{cursor:pointer;border-bottom:1px solid #c4c4c4;margin:.25rem 0;color:gray;width:100%;display:flex;align-items:center}.fileUpload[_ngcontent-%COMP%] .previousFiles[_ngcontent-%COMP%] .contFileName[_ngcontent-%COMP%] .name[_ngcontent-%COMP%], .fileUpload[_ngcontent-%COMP%] .newFiles[_ngcontent-%COMP%] .contFileName[_ngcontent-%COMP%] .name[_ngcontent-%COMP%]{width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.fileUpload[_ngcontent-%COMP%] .previousFiles[_ngcontent-%COMP%] .contFileName[_ngcontent-%COMP%]:hover, .fileUpload[_ngcontent-%COMP%] .newFiles[_ngcontent-%COMP%] .contFileName[_ngcontent-%COMP%]:hover{color:#000}.fileUpload[_ngcontent-%COMP%] .newFiles[_ngcontent-%COMP%] .contFileName[_ngcontent-%COMP%]{background:#fbfbfb}.fileUpload[_ngcontent-%COMP%] .hasFilesAlreadyUploaded[_ngcontent-%COMP%], .fileUpload[_ngcontent-%COMP%] .hasValue[_ngcontent-%COMP%]{height:auto}.fileUpload[_ngcontent-%COMP%] .hasFilesAlreadyUploaded[_ngcontent-%COMP%] .inputLbl[_ngcontent-%COMP%], .fileUpload[_ngcontent-%COMP%] .hasValue[_ngcontent-%COMP%] .inputLbl[_ngcontent-%COMP%]{display:none}.fileUpload[_ngcontent-%COMP%] .hasFilesAlreadyUploaded[_ngcontent-%COMP%] .mat-mdc-form-field-subscript-wrapper, .fileUpload[_ngcontent-%COMP%] .hasValue[_ngcontent-%COMP%] .mat-mdc-form-field-subscript-wrapper{display:none}.fileUpload[_ngcontent-%COMP%] .hasFilesAlreadyUploaded[_ngcontent-%COMP%] .mat-mdc-form-field-icon-suffix, .fileUpload[_ngcontent-%COMP%] .hasValue[_ngcontent-%COMP%] .mat-mdc-form-field-icon-suffix{align-self:auto}.fileUpload[_ngcontent-%COMP%] .hasFilesAlreadyUploaded[_ngcontent-%COMP%] .mat-mdc-form-field-icon-suffix .btnUpload, .fileUpload[_ngcontent-%COMP%] .hasValue[_ngcontent-%COMP%] .mat-mdc-form-field-icon-suffix .btnUpload{position:relative;top:10px}"]}),x})()}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.