zul.inp.SimpleSpinnerConstraint=zk.$extends(zul.inp.SimpleConstraint,{$define:{min:_zkf=function(){},max:_zkf},parseConstraint_:function(g){var a=g.replace(/ +/g," ").split(/[, ]/),f=a.length,b=this._cstArr;if(a.$contains("max")&&a.$contains("min")){b[b.length]="maxmin";var d=!0}for(var c=0;c<f+1;c++){var e=a[c];if("min"==e||"max"==e)d||(b[b.length]=e,d=!0),this["_"+e]=+a[++c]}if(!d)return this.$supers("parseConstraint_",arguments)},validate:function(g,a){var f=this.$supers("validate",arguments);
switch(typeof a){case "number":var b=this._max&&a>this._max,d=this._min&&a<this._min;if(b||d)var c=(b=(c=this._errmsg.maxmin)?c:b?this._errmsg.max:this._errmsg.min)?b:msgzul.OUT_OF_RANGE+": "+(null!=this._min?null!=this._max?this._min+" - "+this._max:">= "+this._min:"<= "+this._max)}return c||f}});
