PageSourceSearch

https://curry.moscow/1878.3dfcb0ffd5a59a4e.js

js curry.moscow collected 2026-09-29 15:05:54 UTC 11,305 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkyumapos_web_client_mobile=self.webpackChunkyumapos_web_client_mobile||[]).push([[1878],{41878(Q,C,a){a.r(C),a.d(C,{DialogVehicleEditorComponent:()=>P});var s=a(85802),g=a(17705),i=a(89417),V=a(65868),R=a(34006),h=a(26920),F=a(40100),L=a(82798),p=a(77339),I=a(59640),b=a(68018);const v=["Abarth","Acura","Alfa Romeo","Aston Martin","Audi","Bentley","BMW","Buick","Cadillac","Chevrolet","Chrysler","Citroen","Dacia","Dodge","Ferrari","Fiat","Ford","GMC","Honda","Hummer","Hyundai","Infiniti","Isuzu","Jaguar","Jeep","Kia","Lamborghini","Lancia","Land Rover","Lexus","Lincoln","Lotus","Maserati","Mazda","Mercedes-Benz","Mercury","Mini","Mitsubishi","Nissan","Opel","Peugeot","Pontiac","Porsche","Ram","Renault","Saab","Saturn","Scion","Seat","Skoda","Smart","SsangYong","Subaru","Suzuki","Tesla","Toyota","Volkswagen","Volvo","Wiesmann"],T=["WHITE","GRAY","BLACK","SILVER","BLUE","RED","GREEN","BROWN","ORANGE","YELLOW","GOLD","PURPLE"];var A=a(65873),D=a(28934),f=a(13810),M=a(69501),O=a(85988),B=a(12560),d=a(30995),m=a(44162),e=a(35547);function y(t,n){1&t&&(e.j41(0,"yp-dialog-header"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"CHECKOUT.VEHICLE.DIALOG.ADD.TITLE")," "))}function $(t,n){1&t&&(e.j41(0,"mat-error"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"CHECKOUT.VEHICLE.DIALOG.ADD.CAR_NAME.ERROR.REQUIRED")))}function G(t,n){1&t&&(e.j41(0,"mat-error"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"CHECKOUT.VEHICLE.DIALOG.ADD.CAR_PLATE.ERROR.REQUIRED")))}function k(t,n){if(1&t&&(e.j41(0,"mat-option",8),e.EFF(1),e.k0s()),2&t){const r=n.$implicit;e.Y8G("value",r),e.R7$(),e.JRh(r)}}function S(t,n){1&t&&(e.j41(0,"mat-error"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"CHECKOUT.VEHICLE.DIALOG.ADD.CAR_BRAND.ERROR.REQUIRED")))}function H(t,n){1&t&&(e.j41(0,"mat-error"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"CHECKOUT.VEHICLE.DIALOG.ADD.CAR_BRAND.ERROR.REQUIRED")))}function x(t,n){if(1&t&&(e.j41(0,"mat-form-field",5)(1,"mat-label"),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.nrm(4,"input",6),e.nVh(5,H,3,3,"mat-error"),e.k0s()),2&t){const r=e.XpG();e.Y8G("appearance","outline")("subscriptSizing","dynamic"),e.R7$(2),e.JRh(e.bMT(3,6,"CHECKOUT.VEHICLE.DIALOG.ADD.CAR_BRAND_CUSTOM.LABEL")),e.R7$(2),e.Y8G("formControl",r.vehicleEditForm.controls.carBrandCustom),e.BMQ("maxlength",r.carBrandMaxLength),e.R7$(),e.vxM(r.vehicleEditForm.controls.carBrandCustom.hasError("required")?5:-1)}}function N(t,n){if(1&t&&(e.j41(0,"mat-option",8),e.nI1(1,"translate"),e.EFF(2),e.nI1(3,"translate"),e.k0s()),2&t){const r=n.$implicit;e.Y8G("value",e.bMT(1,2,"COLOR."+r)),e.R7$(2),e.JRh(e.bMT(3,4,"COLOR."+r))}}function j(t,n){1&t&&(e.j41(0,"mat-error"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"CHECKOUT.VEHICLE.DIALOG.ADD.CAR_COLOR.ERROR.REQUIRED")))}function U(t,n){1&t&&(e.j41(0,"mat-error"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"CHECKOUT.VEHICLE.DIALOG.ADD.CAR_COLOR.ERROR.REQUIRED")))}function J(t,n){if(1&t&&(e.j41(0,"mat-form-field",5)(1,"mat-label"),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.nrm(4,"input",6),e.nVh(5,U,3,3,"mat-error"),e.k0s()),2&t){const r=e.XpG();e.Y8G("appearance","outline")("subscriptSizing","dynamic"),e.R7$(2),e.JRh(e.bMT(3,6,"CHECKOUT.VEHICLE.DIALOG.ADD.CAR_COLOR_CUSTOM.LABEL")),e.R7$(2),e.Y8G("formControl",r.vehicleEditForm.controls.carColorCustom),e.BMQ("maxlength",r.carColorMaxLength),e.R7$(),e.vxM(r.vehicleEditForm.controls.carColorCustom.hasError("required")?5:-1)}}function Y(t,n){if(1&t&&(e.j41(0,"div",9),e.nrm(1,"yp-error",11),e.k0s()),2&t){const r=n.$implicit;e.R7$(),e.Y8G("serverResponseError",r)}}function K(t,n){if(1&t){const r=e.RV6();e.j41(0,"div",12)(1,"button",13),e.bIt("click",function(){s.eBV(r);const o=e.XpG();return s.Njj(o.closeModal())}),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"button",14),e.bIt("click",function(){s.eBV(r);const o=e.XpG();return s.Njj(o.continue())}),e.EFF(5),e.nI1(6,"translate"),e.k0s()()}2&t&&(e.R7$(2),e.SpI(" ",e.bMT(3,2,"COMMON.CANCEL")," "),e.R7$(3),e.SpI(" ",e.bMT(6,4,"COMMON.CONTINUE")," "))}let P=(()=>{class t{constructor(){this.carNameMaxLength=50,this.carPlateMaxLength=10,this.carBrandMaxLength=50,this.carColorMaxLength=50,this.otherSelectValue="other",this.carBrands=v,this.colorI18nKeys=T,this.spinnerType=(0,s.WQX)(A.D).generateSpinnerType(),this.dialogData=(0,s.WQX)(R.Vh),this.serverResponseErrors=[],this.matDialogRef=(0,s.WQX)(R.CP),this.store=(0,s.WQX)(I.il),this.actions$=(0,s.WQX)(p.En),this.changeDetectorRef=(0,s.WQX)(g.gRc);const r=(0,s.WQX)(D.z);let l,o,c,u;this.dialogData.customerVehicleDto&&(v.includes(this.dialogData.customerVehicleDto.customerVehicleBrand)?l=this.dialogData.customerVehicleDto.customerVehicleBrand:(l=this.otherSelectValue,o=this.dialogData.customerVehicleDto.customerVehicleBrand),c=this.otherSelectValue,u=this.dialogData.customerVehicleDto.customerVehicleC
1olor),this.vehicleEditForm=new i.gE({carName:new i.MJ(this.dialogData.customerVehicleDto?.customerVehicleName??"",{nonNullable:!0,validators:[i.k0.required,i.k0.maxLength(this.carNameMaxLength)]}),carPlate:new i.MJ(this.dialogData.customerVehicleDto?.customerVehicleNumber??"",{nonNullable:!0,validators:[i.k0.required,i.k0.maxLength(this.carPlateMaxLength)]}),carBrand:new i.MJ(l??null,{validators:[i.k0.required]}),carBrandCustom:new i.MJ(o??"",{nonNullable:!0,validators:[i.k0.required,i.k0.maxLength(this.carBrandMaxLength)]}),carColor:new i.MJ(c??null,{validators:[i.k0.required]}),carColorCustom:new i.MJ(u??"",{nonNullable:!0,validators:[i.k0.required,i.k0.maxLength(this.carColorMaxLength)]})}),o||this.vehicleEditForm.controls.carBrandCustom.disable(),u||this.vehicleEditForm.controls.carColorCustom.disable(),r.sink=this.vehicleEditForm.controls.carBrand.valueChanges.subscribe(E=>{E===this.otherSelectValue?this.vehicleEditForm.controls.carBrandCustom.enable():this.vehicleEditForm.controls.carBrandCustom.disable()}),r.sink=this.vehicleEditForm.controls.carColor.valueChanges.subscribe(E=>{E===this.otherSelectValue?this.vehicleEditForm.controls.carColorCustom.enable():this.vehicleEditForm.controls.carColorCustom.disable()})}continue(){if(this.vehicleEditForm.invalid)this.vehicleEditForm.markAllAsTouched();else{let r,l;(0,f.HO)(this.vehicleEditForm.controls.carBrand.value),(0,f.HO)(this.vehicleEditForm.controls.carColor.value),r=this.vehicleEditForm.controls.carBrand.value===this.otherSelectValue?this.vehicleEditForm.controls.carBrandCustom.value:this.vehicleEditForm.controls.carBrand.value,l=this.vehicleEditForm.controls.carColor.value===this.otherSelectValue?this.vehicleEditForm.controls.carColorCustom.value:this.vehicleEditForm.controls.carColor.value;const o={customerVehicleId:this.dialogData.customerVehicleDto?.customerVehicleId??M.w.generateUuid(),customerVehicleName:this.vehicleEditForm.controls.carName.value,customerVehicleNumber:this.vehicleEditForm.controls.carPlate.value,customerVehicleBrand:r,customerVehicleColor:l};this.actions$.pipe((0,p.gp)(m.I.saveCustomerVehicleSuccess,m.I.saveCustomerVehicleFailure)).subscribe(c=>{c.type===m.I.saveCustomerVehicleSuccess.type?this.matDialogRef.close({customerVehicleDto:o}):this.serverResponseErrors=c.errors,this.vehicleEditForm.enable(),this.changeDetectorRef.markForCheck()}),this.serverResponseErrors=[],this.vehicleEditForm.disable(),this.store.dispatch(m.I.saveCustomerVehicle(o,this.spinnerType))}}closeModal(){this.matDialogRef.close()}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["yp-dialog-vehicle-editor"]],features:[e.Jv_([D.z])],decls:44,vars:42,consts:[[3,"showSpinner"],[4,"ypProjectedHeader"],["novalidate","",1,"m-3","mb-5",3,"submit","formGroup"],["type","submit",1,"d-none"],[1,"d-flex","flex-column","gap-2"],[3,"appearance","subscriptSizing"],["type","text","matInput","",3,"formControl"],[3,"formControl"],[3,"value"],[1,"my-2","mx-3"],["class","yp-bottom-buttons-wrapper",4,"ypProjectedFooter"],[3,"serverResponseError"],[1,"yp-bottom-buttons-wrapper"],["type","button",1,"yp-btn","yp-btn-lg","yp-btn-secondary",3,"click"],["type","button",1,"yp-btn","yp-btn-lg","yp-btn-primary",3,"click"]],template:function(l,o){1&l&&(e.j41(0,"yp-fixed-header-footer",0),e.DNE(1,y,3,3,"yp-dialog-header",1),e.j41(2,"form",2),e.bIt("submit",function(){return o.continue()}),e.nrm(3,"input",3),e.j41(4,"div",4)(5,"mat-form-field",5)(6,"mat-label"),e.EFF(7),e.nI1(8,"translate"),e.k0s(),e.nrm(9,"input",6),e.nVh(10,$,3,3,"mat-error"),e.k0s(),e.j41(11,"mat-form-field",5)(12,"mat-label"),e.EFF(13),e.nI1(14,"translate"),e.k0s(),e.nrm(15,"input",6),e.nVh(16,G,3,3,"mat-error"),e.k0s(),e.j41(17,"mat-form-field",5)(18,"mat-label"),e.EFF(19),e.nI1(20,"translate"),e.k0s(),e.j41(21,"mat-select",7),e.Z7z(22,k,2,2,"mat-option",8,e.fX1),e.j41(24,"mat-option",8),e.EFF(25),e.nI1(26,"translate"),e.k0s()(),e.nVh(27,S,3,3,"mat-error"),e.k0s(),e.nVh(28,x,6,8,"mat-form-field",5),e.j41(29,"mat-form-field",5)(30,"mat-label"),e.EFF(31),e.nI1(32,"translate"),e.k0s(),e.j41(33,"mat-select",7),e.Z7z(34,N,4,6,"mat-option",8,e.fX1),e.j41(36,"mat-option",8),e.EFF(37),e.nI1(38,"translate"),e.k0s()(),e.nVh(39,j,3,3,"mat-error"),e.k0s(),e.nVh(40,J,6,8,"mat-form-field",5),e.Z7z(41,Y,2,1,"div",9,e.fX1),e.k0s()(),e.DNE(43,K,7,6,"div",10),e.k0s()),2&l&&(e.Y8G("showSpinner",o.spinnerType),e.R7$(2),e.Y8G("formGroup",o.vehicleEditForm),e.R7$(3),e.Y8G("appearance","outline")("subscriptSizing","dynamic"),e.R7$(2),e.JRh(e.bMT(8,30,"CHECKOUT.VEHICLE.DIALOG.ADD.CAR_NAME.LABEL")),e.R7$(2),e.Y8G("formControl",o.vehicleEditForm.controls.carName),e.BMQ("maxlength",o.carNameMaxLength),e.R7$(),e.vxM(o.vehicleEditForm.controls.carName.hasError("required")?10:-1),e.R7$(),e.Y8G("appearance","outline")("subscriptSizing","dynamic"),e.R7$(2),e.JRh(e.bMT(14,32,"CHECKOUT.VEHICLE.DIALOG.ADD.CAR_PLATE.LABEL")),e.R7$(2),e.Y8G("formControl",o.vehicleEditForm.controls.carPlate),e.BMQ("maxlength",o.carPlateMaxLength),e.R7$(),e.vxM(o.vehicleEditForm.controls.carPlate.hasError("required")?16:-1),e.R7$(),e.Y8G("appearance","outline")("subscriptSizing","dynamic"),e.R7$(2),e.JRh(e.bMT(20,34,"CHECKOUT.VEHICLE.DIALOG.ADD.CAR_BRAND.LABEL")),e.R7$(2),e.Y8G("formControl",o.vehicleEditForm.controls.carBrand),e.R7$(),e.Dyx(o.carBrands),e.R7$(2),e.Y8G("value",o.otherSelectValue),e.R7$(),e.SpI(" ",e.bMT(26,36,"CHECKOUT.VEHICLE.DIALOG.ADD.CAR_BRAND.OTHER")," "),e.R7$(2),e.vxM(o.vehicleEditForm.controls.carBrand.hasError("required")?27:-1),e.R7$(),e.vxM(o.vehicleEditForm.controls.carBrandCustom.enabled?28:-1),e.R7$(),e.Y8G("appearance","outline")("subscriptSizing","dynamic"),e.R7$(2),e.JRh(e.bMT(32,38,"CHECKOUT.VEHICLE.DIALOG.ADD.CAR_COLOR.LABEL")),e.R7$(2),e.Y8G("formControl",o.vehicleEditForm.controls.carColor),e.R7$(),e.Dyx(o.colorI18nKeys),e.R7$(2),e.Y8G("value",o.otherSelectValue),e.R7$(),e.JRh(e.bMT(38,40,"COLOR.OTHER")),e.R7$(2),e.vxM(o.vehicleEditForm.controls.carColor.hasError("required")?39:-1),e.R7$(),e.vxM(o.vehicleEditForm.controls.carColorCustom.enabled?40:-1),e.R7$(),e.Dyx(o.serverResponseErrors))},dependencies:[i.X1,i.qT,i.me,i.BC,i.cb,i.l_,i.j4,h.TL,h.rl,F.fg,h.nJ,V.wT,L.VO,d.cU,O.B,B.A,d.xp,d.J0,b.D9],encapsulation:2,changeDetection:0})}}return t})()}}]);

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.