import{a as g}from"./chunk-5T6TZLDM.js";import{b as z,e as I}from"./chunk-Y5ITWXM5.js";import{B as w,D as E,Fa as F,Ga as L,La as M,q as y,r as R,u as A,w as N,z as T}from"./chunk-NNMVEAHQ.js";import{a as C,b}from"./chunk-KXDO3JYP.js";import{d as i,e as t,i as c,j as l}from"./chunk-O5FUBBHI.js";import{$c as m,Cb as f,Ue as D,ad as p,bc as a,cc as v,dc as _,ec as d,kb as u,sd as S,vb as n}from"./chunk-PVUKHE45.js";import{d as h,n as U}from"./chunk-VD6R3735.js";U();var e,P=(e=class{constructor(s,o,r,j,B){this.data=s,this._dialogRef=o,this._fb=r,this._cdr=j,this._localizationService=B,this.form=this._fb.group({roundingLevel:this._fb.control(this.data.roundingLevel,g()),roundingType:this._fb.control(this.data.roundingType??null,g())}),this.adjustmentPriceActRoundingLevel=[{id:i.Whole,name:c(this._localizationService.getSync.bind(this._localizationService))[i.Whole]},{id:i.NearestFive,name:c(this._localizationService.getSync.bind(this._localizationService))[i.NearestFive]},{id:i.NearestTen,name:c(this._localizationService.getSync.bind(this._localizationService))[i.NearestTen]}],this.adjustmentPriceActRoundingType=[{id:t.Mathematical,name:l(this._localizationService.getSync.bind(this._localizationService))[t.Mathematical]},{id:t.Upward,name:l(this._localizationService.getSync.bind(this._localizationService))[t.Upward]},{id:t.Downward,name:l(this._localizationService.getSync.bind(this._localizationService))[t.Downward]}]}ngOnInit(){this._dialogRef.submitData$$.next(this.form),this._dialogRef.instance?.submitted.pipe(b(this)).subscribe(()=>this._cdr.markForCheck())}},e.\u0275fac=function(o){return new(o||e)(n(L),n(F),n(w),n(S),n(I))},e.\u0275cmp=f({type:e,selectors:[["tis-rounding-price-dialog"]],decls:5,vars:13,consts:[[3,"formGroup"],["formControlName","roundingLevel",3,"requiredForLabel","options","showClearButton","label"],["formControlName","roundingType",3,"requiredForLabel","options","showClearButton","label"]],template:function(o,r){o&1&&(v(0,"form",0),d(1,"wk-dropdown",1),m(2,"translate"),d(3,"wk-dropdown",2),m(4,"translate"),_()),o&2&&(a("formGroup",r.form),u(),a("requiredForLabel",!0)("options",r.adjustmentPriceActRoundingLevel)("showClearButton",!1)("label",p(2,9,"\u0423\u0440\u043E\u0432\u0435\u043D\u044C \u043E\u043A\u0440\u0443\u0433\u043B\u0435\u043D\u0438\u044F")),u(2),a("requiredForLabel",!0)("options",r.adjustmentPriceActRoundingType)("showClearButton",!1)("label",p(4,11,"\u0422\u0438\u043F \u043E\u043A\u0440\u0443\u0433\u043B\u0435\u043D\u0438\u044F")))},dependencies:[D,E,A,y,R,N,T,M,z],styles:[`.count-info[_ngcontent-%COMP%]{margin-bottom:var(--space-vertical-l)}
/*# sourceMappingURL=rounding-price-dialog.component-UMDIQGMM.css.map */`],changeDetection:0}),e);P=h([C()],P);export{P as a};
//# sourceMappingURL=chunk-WQC4TAMK.js.map
