!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@xysfe/actui/es/assets/common/input.js"),require("@xysfe/actui/es/assets/svgicon.js")):"function"==typeof define&&define.amd?define(["@xysfe/actui/es/assets/common/input.js","@xysfe/actui/es/assets/svgicon.js"],t):"object"==typeof exports?exports["assets/common/forminput.js"]=t(require("@xysfe/actui/es/assets/common/input.js"),require("@xysfe/actui/es/assets/svgicon.js")):e["assets/common/forminput.js"]=t(e["@xysfe/actui/es/assets/common/input.js"],e["@xysfe/actui/es/assets/svgicon.js"])}("undefined"!=typeof self?self:this,function(e,t){return function(e){function t(s){if(n[s])return n[s].exports;var o=n[s]={i:s,l:!1,exports:{}};return e[s].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,s){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:s})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="../es",t(t.s=902)}({549:function(t,n){t.exports=e},550:function(e,n){e.exports=t},673:function(e,t,n){"use strict";var s=n(549),o=n.n(s),r=n(550),i=n.n(r);t.a={name:"ActFormInput",components:{svgIcon:i.a,ActInput:o.a},props:{content:{type:Array,default:function(){return[]}},verifyColor:{type:String,default:"#f9433d"}},data:function(){return{seconds:0,form:{user:{type:"text",placeholder:"请输入姓名",emptyTips:"*姓名不可为空",errTips:"*请输入正确的姓名"},mobile:{type:"tel",placeholder:"请输入手机号",emptyTips:"*手机号不可为空",errTips:"*请输入正确的手机号"},idcard:{type:"text",placeholder:"请输入身份证号",emptyTips:"*身份证号不可为空",errTips:"*请输入正确的身份证号"},address:{type:"text",placeholder:"请输入收件人地址",emptyTips:"*收件人地址不可为空",errTips:"*请输入正确的收件人地址"},verifycode:{type:"number",placeholder:"请输入验证码",emptyTips:"*验证码不可为空",errTips:"*请输入正确的验证码"}}}},mounted:function(){this.$on("startcountdown",this.startCountDown)},methods:{getInfoCode:function(e){this.seconds||this.$emit("getcode",{index:e})},getInputType:function(e){return this.form[e.type]?this.form[e.type].type:"text"},getErrTips:function(e){return e.isShowTips&&e.tips?e.tips:e.isShowTips&&this.form[e.type]?e.isEmpty?this.form[e.type].emptyTips:this.form[e.type].errTips:""},startCountDown:function(){this.seconds=60,this.clearTimer(),this.freshTime()},freshTime:function(){var e=this;this.timer=setInterval(function(){e.seconds>0?e.seconds--:e.clearTimer()},1e3)},clearTimer:function(){this.timer&&clearInterval(this.timer)}}}},8:function(e,t,n){"use strict";function s(e,t,n,s,o,r,i,c){e=e||{};var u=typeof e.default;"object"!==u&&"function"!==u||(e=e.default);var p="function"==typeof e?e.options:e;t&&(p.render=t,p.staticRenderFns=n,p._compiled=!0),s&&(p.functional=!0),r&&(p._scopeId=r);var a;if(i?(a=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(i)},p._ssrRegister=a):o&&(a=c?function(){o.call(this,this.$root.$options.shadowRoot)}:o),a)if(p.functional){p._injectStyles=a;var f=p.render;p.render=function(e,t){return a.call(t),f(e,t)}}else{var l=p.beforeCreate;p.beforeCreate=l?[].concat(l,a):[a]}return{exports:e,options:p}}t.a=s},902:function(e,t,n){"use strict";function s(e){c||n(903)}Object.defineProperty(t,"__esModule",{value:!0});var o=n(673),r=n(904),i=n(8),c=!1,u=s,p=Object(i.a)(o.a,r.a,r.b,!1,u,"data-v-74871045",null);p.options.__file="src\\components\\common\\forminput.vue",t.default=p.exports},903:function(e,t){},904:function(e,t,n){"use strict";n.d(t,"a",function(){return s}),n.d(t,"b",function(){return o});var s=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",e._l(e.content,function(t,s){return n("div",{key:s},[n("act-input",{attrs:{showdel:t.showdel,disabled:t.disabled,type:e.getInputType(t),tipscolor:t.tipscolor,placeholder:e.form[t.type]&&e.form[t.type].placeholder,tips:e.getErrTips(t)},scopedSlots:e._u(["verifycode"!==t.type?{key:"left",fn:function(){return[n("div",{staticClass:"act-given-content-formicon",class:t.type},[n("svg-icon",{attrs:{iconClass:t.type}})],1)]},proxy:!0}:{key:"right",fn:function(){return[e.seconds?n("div",{staticClass:"act-mobile-word",style:{color:e.verifyColor}},[e._v("\n          剩余"+e._s(e.seconds)+"秒\n        ")]):n("div",{staticClass:"act-mobile-word",style:{color:e.verifyColor},on:{click:function(t){return e.getInfoCode(s)}}},[e._v("\n          "+e._s(t.text?t.text:"发送验证码")+"\n        ")])]},proxy:!0}],null,!0),model:{value:t.value,callback:function(n){e.$set(t,"value","string"==typeof n?n.trim():n)},expression:"item.value"}})],1)}),0)},o=[];s._withStripped=!0}})});