import{a as R,b}from"./chunk-B4BXIPDQ.js";import{a as j}from"./chunk-CKDUQWQK.js";import{H as s,J as A,K as N,O as T,Q as y,T as E,W as w,Y as P}from"./chunk-KT4MWGDC.js";import{a as _,b as v}from"./chunk-3KIQTF23.js";import{b as e,c as t,f as a,g as u}from"./chunk-JCFMOM7U.js";import{ya as D}from"./chunk-ONNJVTQI.js";import{Ab as p,Tb as r,cc as g,dc as f,ec as h,gd as C,mb as m,rb as n}from"./chunk-A4WWLITB.js";import{b as l,i as M}from"./chunk-QOJKCMZT.js";M();var F=class c{constructor(d,o,i,I){this.data=d,this._dialogRef=o,this._fb=i,this._cdr=I,this.form=this._fb.group({roundingLevel:this._fb.control(this.data.roundingLevel,s.required),roundingType:this._fb.control(this.data.roundingType??null,s.required)}),this.adjustmentPriceActRoundingLevel=[{id:e.Whole,name:a[e.Whole]},{id:e.NearestFive,name:a[e.NearestFive]},{id:e.NearestTen,name:a[e.NearestTen]}],this.adjustmentPriceActRoundingType=[{id:t.Mathematical,name:u[t.Mathematical]},{id:t.Upward,name:u[t.Upward]},{id:t.Downward,name:u[t.Downward]}]}ngOnInit(){this._dialogRef.submitData$$.next(this.form),this._dialogRef.instance?.submitted.pipe(v(this)).subscribe(()=>this._cdr.markForCheck())}static{this.\u0275fac=function(o){return new(o||c)(n(b),n(R),n(w),n(C))}}static{this.\u0275cmp=p({type:c,selectors:[["tis-rounding-price-dialog"]],decls:3,vars:5,consts:[[3,"formGroup"],["formControlName","roundingLevel","label","\u0423\u0440\u043E\u0432\u0435\u043D\u044C \u043E\u043A\u0440\u0443\u0433\u043B\u0435\u043D\u0438\u044F",3,"options","showClearButton"],["formControlName","roundingType","label","\u0422\u0438\u043F \u043E\u043A\u0440\u0443\u0433\u043B\u0435\u043D\u0438\u044F",3,"options","showClearButton"]],template:function(o,i){o&1&&(g(0,"form",0),h(1,"tis-dropdown",1)(2,"tis-dropdown",2),f()),o&2&&(r("formGroup",i.form),m(),r("options",i.adjustmentPriceActRoundingLevel)("showClearButton",!1),m(),r("options",i.adjustmentPriceActRoundingType)("showClearButton",!1))},dependencies:[D,P,T,A,N,y,E,j],styles:[".count-info[_ngcontent-%COMP%]{margin-bottom:var(--space-vertical-l)}"],changeDetection:0})}};F=l([_()],F);export{F as a};
