import{a as S}from"./chunk-Y7XZVPT6.js";import{a as Q,e as O}from"./chunk-VFX53AYF.js";import{r as j}from"./chunk-ZVQ5RRLK.js";import{b as N}from"./chunk-LH4LY7P4.js";import{D as B,Ia as T,Ja as k,Qa as x,q as R,s as V,v as F}from"./chunk-IDENGFF3.js";import{a as A,b as M}from"./chunk-IGFM5CCE.js";import{ua as I}from"./chunk-TDUJNOEU.js";import{Ac as g,Bc as b,Db as _,Jc as y,Lc as E,dc as d,ec as s,fc as m,fd as h,gd as C,lb as r,nc as v,tc as c,ua as p,va as l,wb as a,zc as f,zd as w}from"./chunk-I3FGJX2C.js";import{d as D,n as P}from"./chunk-INB5GR2I.js";P();var G=["numpad"],U=["numberInput"],i,q=(i=class{constructor(n,e,t){this.data=n,this._dialogRef=e,this._cdr=t,this.form=new V(0,{nonNullable:!0,validators:[O(j.max),Q()]})}ngOnInit(){this._dialogRef.instance?.submitted.pipe(M(this)).subscribe(()=>this._cdr.markForCheck())}ngAfterViewInit(){this.focus()}focus(){let n=this.numberInput.numberInput.textField.inputEl.nativeElement;this.numpad.attachTarget(n)}submitted(){this.form.invalid||(this._dialogRef.submitData$$.next(this.form.value),this._dialogRef.submit())}},i.\u0275fac=function(e){return new(e||i)(a(k),a(T),a(w))},i.\u0275cmp=_({type:i,selectors:[["tis-shift-manage-dialog"]],viewQuery:function(e,t){if(e&1&&(f(G,5),f(U,5)),e&2){let u;g(u=b())&&(t.numpad=u.first),g(u=b())&&(t.numberInput=u.first)}},decls:9,vars:10,consts:[["numberInput",""],["numpad",""],[1,"font-st2-secondary","subtitle"],["postfix","\u20B8","token","numpad-shift",3,"focused","formControl","precision","labelBold","label"],[3,"submitted","buttonVariant"]],template:function(e,t){if(e&1){let u=v();s(0,"div")(1,"span",2),y(2),h(3,"translate"),m(),s(4,"wk-number-input",3,0),h(6,"translate"),c("focused",function(){return p(u),l(t.focus())}),m()(),s(7,"tis-numpad",4,1),c("submitted",function(){return p(u),l(t.submitted())}),m()}e&2&&(r(2),E(" ",C(3,6,"\u0412\u0430\u043C \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u043E \u0432\u0432\u0435\u0441\u0442\u0438 \u043E\u0441\u0442\u0430\u0442\u043E\u043A \u043D\u0430\u043B\u0438\u0447\u043D\u044B\u0445 \u0441\u0440\u0435\u0434\u0441\u0442\u0432 \u043D\u0430 \u043A\u0430\u0441\u0441\u0435 \u0438 \u043D\u0430\u0436\u0430\u0442\u044C \u043D\u0430 \u043A\u043D\u043E\u043F\u043A\u0443 \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043D\u0438\u044F")," "),r(2),d("formControl",t.form)("precision",2)("labelBold",!0)("label",C(6,8,"\u0421\u0443\u043C\u043C\u0430")),r(3),d("buttonVariant",t.data.buttonVariant))},dependencies:[I,B,R,F,x,S,N],styles:[`.subtitle[_ngcontent-%COMP%]{display:block;margin-bottom:16px}
/*# sourceMappingURL=shift-manage-dialog.component-6YDEDAPT.css.map */`],changeDetection:0}),i);q=D([A()],q);var $=(function(o){return o[o.Open=0]="Open",o[o.Close=1]="Close",o})($||{});export{q as a,$ as b};
//# sourceMappingURL=chunk-6BVJQJTN.js.map
