import{n as o}from"./index-DDNMzpZj.js";const a={props:{prop:Number,shortName:String,longName:String,length:Number,max:Number,alignRight:Boolean},methods:{incrementProp(){(this.max===void 0||this.max>this.localProp)&&this.localProp++},decrementProp(){this.localProp>0&&this.localProp--}},computed:{localProp:{get(){return this.prop},set(t){this.$emit("update:prop",t)}}}};var l=function(){var e=this,n=e._self._c;return n("label",{attrs:{title:e.longName}},[e._v(" "+e._s(e.shortName)+" "),n("input",{directives:[{name:"model",rawName:"v-model.number.lazy",value:e.localProp,expression:"localProp",modifiers:{number:!0,lazy:!0}}],staticClass:"appearance-none text-primary bg-transparent",class:e.alignRight?"text-right":"",style:"width: "+e.length+"ch;",attrs:{type:"tel"},domProps:{value:e.localProp},on:{keydown:[function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"arrow-up",void 0,r.key,void 0)?null:e.incrementProp()},function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"arrow-down",void 0,r.key,void 0)?null:e.decrementProp()}],change:function(r){e.localProp=e._n(r.target.value)},blur:function(r){return e.$forceUpdate()}}})])},i=[],p=o(a,l,i,!1,null,null);const u=p.exports;export{u as S};
