"use strict";const e=require("../../../../common/vendor.js"),a={name:"u-car-keyboard",mixins:[e.mpMixin,e.mixin,e.props$11],data:()=>({abc:!1}),computed:{areaList(){let a=["京","沪","粤","津","冀","豫","云","辽","黑","湘","皖","鲁","苏","浙","赣","鄂","桂","甘","晋","陕","蒙","吉","闽","贵","渝","川","青","琼","宁","挂","藏","港","澳","新","使","学"],t=[];return this.random&&(a=e.randomArray(a)),t[0]=a.slice(0,10),t[1]=a.slice(10,20),t[2]=a.slice(20,30),t[3]=a.slice(30,36),t},engKeyBoardList(){let a=[1,2,3,4,5,6,7,8,9,0,"Q","W","E","R","T","Y","U","I","O","P","A","S","D","F","G","H","J","K","L","Z","X","C","V","B","N","M"],t=[];return this.random&&(a=e.randomArray(a)),t[0]=a.slice(0,10),t[1]=a.slice(10,20),t[2]=a.slice(20,30),t[3]=a.slice(30,36),t}},emits:["change","backspace"],methods:{carInputClick(a,t){let c="";c=this.abc?this.engKeyBoardList[a][t]:this.areaList[a][t],!this.abc&&this.autoChange&&e.sleep(200).then((()=>this.abc=!0)),this.$emit("change",c)},changeCarInputMode(){this.abc=!this.abc},backspaceClick(){this.$emit("backspace"),clearInterval(this.timer),this.timer=null,this.timer=setInterval((()=>{this.$emit("backspace")}),250)},clearTimer(){clearInterval(this.timer),this.timer=null}}};if(!Array){e.resolveComponent("u-icon")()}Math;const t=e._export_sfc(a,[["render",function(a,t,c,i,r,n){return{a:e.f(r.abc?n.engKeyBoardList:n.areaList,((a,t,c)=>e.e({a:3===t},3===t?{b:e.n(!r.abc&&"u-keyboard__button__inner-wrapper__left__lang--active"),c:e.n(r.abc&&"u-keyboard__button__inner-wrapper__left__lang--active"),d:e.o(((...e)=>n.changeCarInputMode&&n.changeCarInputMode(...e)),t)}:{},{e:e.f(a,((a,c,i)=>({a:e.t(a),b:e.o((e=>n.carInputClick(t,c)),c),c:c}))),f:3===t},3===t?{g:"aecf1073-0-"+c,h:e.p({size:"28",name:"backspace",color:"#303133"}),i:e.o(((...e)=>n.backspaceClick&&n.backspaceClick(...e)),t),j:e.o(((...e)=>n.clearTimer&&n.clearTimer(...e)),t)}:{},{k:t,l:t,m:e.n(t+1===4&&"u-keyboard__button--center")}))),b:e.o(((...e)=>a.noop&&a.noop(...e)))}}],["__scopeId","data-v-aecf1073"]]);wx.createComponent(t);
