"use strict";const e=require("../../../../common/vendor.js"),t={name:"u-number-keyboard",mixins:[e.mpMixin,e.mixin,e.props$10],data:()=>({backspace:"backspace",dot:".",timer:null,cardX:"X"}),computed:{numList(){return this.dotDisabled&&"number"==this.mode?this.random?e.randomArray([1,2,3,4,5,6,7,8,9,0]):[1,2,3,4,5,6,7,8,9,0]:this.dotDisabled||"number"!=this.mode?"card"==this.mode?this.random?e.randomArray([1,2,3,4,5,6,7,8,9,this.cardX,0]):[1,2,3,4,5,6,7,8,9,this.cardX,0]:void 0:this.random?e.randomArray([1,2,3,4,5,6,7,8,9,this.dot,0]):[1,2,3,4,5,6,7,8,9,this.dot,0]},itemStyle(){return e=>{let t={};return"number"==this.mode&&this.dotDisabled&&9==e&&(t.width="464rpx"),t}},btnBgGray(){return e=>!this.random&&9==e&&("number"!=this.mode||"number"==this.mode&&!this.dotDisabled)}},created(){},emits:["backspace","change"],methods:{backspaceClick(){this.$emit("backspace"),clearInterval(this.timer),this.timer=null,this.timer=setInterval((()=>{this.$emit("backspace")}),250)},clearTimer(){clearInterval(this.timer),this.timer=null},keyboardClick(e){this.dotDisabled||e==this.dot||e==this.cardX||(e=Number(e)),this.$emit("change",e)}}};if(!Array){e.resolveComponent("u-icon")()}Math;const r=e._export_sfc(t,[["render",function(t,r,i,a,s,o){return{a:e.f(o.numList,((t,r,i)=>({a:e.t(t),b:e.s(o.itemStyle(r)),c:e.o((e=>o.keyboardClick(t)),r),d:r}))),b:e.p({name:"backspace",color:"#303133",size:"28"}),c:e.o(((...e)=>o.backspaceClick&&o.backspaceClick(...e))),d:e.o(((...e)=>o.clearTimer&&o.clearTimer(...e))),e:e.o(((...e)=>t.noop&&t.noop(...e)))}}],["__scopeId","data-v-9c91674b"]]);wx.createComponent(r);
