import{a as g}from"./chunk-VFX53AYF.js";import{a as z,d as I}from"./chunk-BOZT4LSN.js";import{B as w,D as E,Ia as F,Ja as L,Oa as M,q as y,r as R,u as A,w as N,z as T}from"./chunk-JQUUDIFA.js";import{a as C,b}from"./chunk-EK6YV2TW.js";import{b as i,c as t,g as c,h as l}from"./chunk-YICJB6GR.js";import{ua as D}from"./chunk-NZ765PUK.js";import{Bb as f,bc as a,cc as v,dc as _,ec as d,ed as m,fd as p,jb as u,ub as n,yd as S}from"./chunk-DYUFV4HF.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-5HKZU4IM.js.map
