zul.inp.Decimalbox=zk.$extends(zul.inp.NumberInputWidget,{$define:{scale:null},coerceFromString_:function(a){if(!a)return null;var b=zk.fmt.Number.unformat(this._format,a,!1,this._localizedSymbols),c=new zk.BigDecimal(b.raw),d=c.$toString();if(b.raw!=d&&b.raw!="-"+d)return{error:zk.fmt.Text.format(msgzul.NUMBER_REQUIRED,a)};if(7==this._rounding&&(this._errmsg||zk.fmt.Number.isRoundingRequired(a,this.getFormat(),this._localizedSymbols)))return{server:!0};b.divscale&&c.setPrecision(c.getPrecision()+
b.divscale);0<this._scale&&(c=zk.fmt.Number.setScale(c,this._scale,this._rounding));return c},coerceToString_:function(a){var b=this._format;return null!=a?"string"==typeof a?a:b?zk.fmt.Number.format(b,a.$toString(),this._rounding,this._localizedSymbols):a.$toLocaleString():""},marshall_:function(a){return a?a.$toString():a},unmarshall_:function(a){return a?new zk.BigDecimal(a):a},getAllowedKeys_:function(){var a=this._localizedSymbols;return this.$supers("getAllowedKeys_",arguments)+(a?a:zk).DECIMAL}});
