"use strict";const e=require("../../common/vendor.js"),l=require("./reducer.js");if(!Array){e.resolveComponent("uni-icons")()}Math;const o=e.defineComponent({__name:"hs-input",props:l.wlInputProps,emits:["update:valueModel","input","blur","bindconfirm","onClose"],setup(l,{emit:o}){const n=l,t=e.ref("");e.watch(()=>n.valueModel,e=>{t.value=e,a(e)}),e.onMounted(()=>{t.value=n.valueModel,a(n.valueModel)});const u=e=>{let l=e.target.value;a(l)},a=e=>{o("update:valueModel",e),o("input",e)},i=()=>{o("blur",n.valueModel)},d=e=>{let l=e.target.value;o("bindconfirm",l)},r=()=>{t.value="",u({target:{value:""}})};return(l,o)=>{var a,s;return e.e({a:e.n(n.classInputName),b:e.o([e=>t.value=e.detail.value,u]),c:n.placeholderStyle,d:(null==n?void 0:n.width)||"300rpx",e:null==n?void 0:n.textAlign,f:e.o(u),g:(null==n?void 0:n.placeholder)||"请输入",h:(null==n?void 0:n.maxLength)||255,i:(null==n?void 0:n.type)||"text",j:e.o(i),k:e.o(d),l:null==n?void 0:n.disabled,m:null==n?void 0:n.confirmType,n:(null==n?void 0:n.password)||!1,o:t.value,p:(null==(a=t.value)?void 0:a.length)&&!n.disabled},(null==(s=t.value)?void 0:s.length)&&!n.disabled?{q:e.p({type:"closeempty",color:"#999999",size:"15"}),r:e.o(r)}:{},{s:l.suffix},l.suffix?{t:e.t(l.suffix)}:{},{v:e.n(n.className)})}}});wx.createComponent(o);
