import{a as g}from"./chunk-DCREHIGF.js";import{a as z,d as I}from"./chunk-N2FMBWO7.js";import{A as T,D as w,F as E,Ka as F,La as L,Qa as M,q as y,r as R,v as A,x as N}from"./chunk-YFBLRBP4.js";import{a as C,b}from"./chunk-VXSBHXCN.js";import{b as i,c as t,g as c,h as l}from"./chunk-B3CI2H5S.js";import{ua as D}from"./chunk-3OWC7J4L.js";import{Bb as f,Cd as S,fc as a,gc as v,hc as _,ic as d,id as m,jd as p,nb as u,tb as n}from"./chunk-C2QKZJOP.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-YOBS7OW5.js.map
