import{a as S}from"./chunk-HDEN3BIJ.js";import{a as Q,c as O}from"./chunk-DCREHIGF.js";import{r as j}from"./chunk-ZVQ5RRLK.js";import{a as N}from"./chunk-N2FMBWO7.js";import{F as B,Ka as T,La as k,Sa as x,q as R,t as V,w as F}from"./chunk-YFBLRBP4.js";import{a as A,b as M}from"./chunk-VXSBHXCN.js";import{ua as I}from"./chunk-3OWC7J4L.js";import{Bb as _,Bc as f,Cc as g,Cd as w,Dc as b,Lc as y,Nc as E,fc as d,gc as s,hc as m,id as h,jd as C,nb as r,pc as v,tb as a,vc as c,wa as p,xa as l}from"./chunk-C2QKZJOP.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-R7EZMCY2.js.map
