"use strict";const e=require("../../../common/vendor.js");if(!Array){(e.resolveComponent("uni-icons")+e.resolveComponent("hs-button")+e.resolveComponent("up-keyboard"))()}Math||((()=>"../../../uni_modules/uni-icons/components/uni-icons/uni-icons.js")+(()=>"../../../components/hs-button/hs-button.js")+(()=>"../../../node-modules/uview-plus/components/u-keyboard/u-keyboard.js"))();const o=e.defineComponent({__name:"index",setup(o){const l=e.ref(["","","","","","","",""]),n=e.ref(""),u=e.ref(!1),a=e.ref("car"),s=e.ref(!0),t=()=>{s.value=!0,a.value="car",u.value=!1},v=e=>{var o,a;if((null==(o=null==n?void 0:n.value)?void 0:o.length)<8){n.value+=e;for(let e=0;e<8;e++)l.value[e]=n.value[e]||"",console.log(n.value[e])}8===(null==(a=null==n?void 0:n.value)?void 0:a.length)&&(s.value=!1,u.value=!1)},i=()=>{var e;n.value=null==(e=n.value)?void 0:e.slice(0,-1);for(let o=0;o<8;o++)l.value[o]=n.value[o]||"",console.log(n.value[o])},c=()=>{var o;(null==(o=null==n?void 0:n.value)?void 0:o.length)<7?e.index.showToast({title:"请输入完整的车牌号！",icon:"none"}):e.index.showModal({title:"提示",content:"暂不能添加车辆！",showCancel:!1,confirmColor:"#0082FA",success:function(e){e.confirm?console.log("用户点击确定"):e.cancel&&console.log("用户点击取消")}})};return(o,n)=>({a:e.f(l.value,((o,l,n)=>e.e({a:!o&&7===l},o||7!==l?{d:e.t(o)}:{b:"0e44bb83-0-"+n,c:e.p({type:"plusempty",color:"#2A7EFB",size:"13"})},{e:1===l},{},{f:`iten_${l}`}))),b:e.o(t),c:e.o(c),d:e.p({label:"添加车辆",size:"md"}),e:e.sr("uKeyboard","0e44bb83-2"),f:e.o((e=>s.value=!1)),g:e.o(v),h:e.o(i),i:e.o((e=>s.value=!1)),j:e.o((e=>s.value=!1)),k:e.p({mode:a.value,show:s.value})})}});wx.createPage(o);
