import{a as g}from"./chunk-VFX53AYF.js";import{b as z,e as I}from"./chunk-XJK5B3XJ.js";import{B as w,D as E,Ga as F,Ha as L,Ma as M,q as y,r as R,u as A,w as N,z as T}from"./chunk-NKXT7PF4.js";import{a as C,b}from"./chunk-IGFM5CCE.js";import{b as i,c as t,g as c,h as l}from"./chunk-Y47MVODT.js";import{ua as D}from"./chunk-TDUJNOEU.js";import{Db as f,dc as a,ec as v,fc as _,fd as m,gc as d,gd as p,lb as u,wb as n,zd as S}from"./chunk-I3FGJX2C.js";import{d as h,n as U}from"./chunk-INB5GR2I.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-A4FS4L2Y.js.map
