import{Tc as h,Uc as x}from"./chunk-ATD4AEXQ.js";import{Bb as V,Ka as o,Kc as f,Qb as a,Rb as c,Ta as m,Ua as s,da as u,hb as d,ib as S,ob as n,pb as i,zb as p}from"./chunk-BXH3QC5E.js";function C(e,I){if(e&1&&(n(0,"span",5),a(1),i()),e&2){let r=V();o(),c(r.unitLabel)}}var v=999,y=(()=>{class e{incrementStep=1;maxValue=v;defaultSpinnerValue=0;unitLabel;spinnerValue=0;ngOnInit(){this.spinnerValue=this.defaultSpinnerValue}decrementSpinnerValue(){(this.spinnerValue-this.incrementStep>=this.incrementStep||this.spinnerValue-this.incrementStep>=this.defaultSpinnerValue)&&(this.spinnerValue-=this.incrementStep)}incrementSpinnerValue(){this.spinnerValue+this.incrementStep<=this.maxValue&&(this.spinnerValue+=this.incrementStep)}getSpinnerValue(){return this.spinnerValue}resetSpinnerValue(){this.spinnerValue=this.defaultSpinnerValue}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=m({type:e,selectors:[["abs-spinner-vertical"]],inputs:{incrementStep:"incrementStep",maxValue:"maxValue",defaultSpinnerValue:"defaultSpinnerValue",unitLabel:"unitLabel"},standalone:!1,decls:12,vars:2,consts:[[1,"spinner-vertical"],["data-cy","buttonIncrement",1,"arrow-button",3,"click"],[1,"value-display-container"],[1,"value-display"],["data-cy","unitValue"],["data-cy","unitLabel",1,"unit-label"],["data-cy","buttonDecrement",1,"arrow-button",3,"click"]],template:function(t,l){t&1&&(n(0,"div",0)(1,"button",1),p("click",function(){return l.incrementSpinnerValue()}),n(2,"mat-icon"),a(3,"expand_less"),i()(),n(4,"div",2)(5,"span",3)(6,"span",4),a(7),i(),d(8,C,2,1,"span",5),i()(),n(9,"button",6),p("click",function(){return l.decrementSpinnerValue()}),n(10,"mat-icon"),a(11,"expand_more"),i()()()),t&2&&(o(7),c(l.getSpinnerValue()),o(),S(l.unitLabel?8:-1))},dependencies:[h],encapsulation:2})}return e})();var M=(()=>{class e{static \u0275fac=function(t){return new(t||e)};static \u0275mod=s({type:e});static \u0275inj=u({imports:[f,x]})}return e})();export{y as a,M as b};
