!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@xysfe/actui/es/assets/utils/assign.js"),require("@xysfe/actui/es/Validator/index.js")):"function"==typeof define&&define.amd?define(["@xysfe/actui/es/assets/utils/assign.js","@xysfe/actui/es/Validator/index.js"],t):"object"==typeof exports?exports["assets/mixins/form-input.js"]=t(require("@xysfe/actui/es/assets/utils/assign.js"),require("@xysfe/actui/es/Validator/index.js")):e["assets/mixins/form-input.js"]=t(e["@xysfe/actui/es/assets/utils/assign.js"],e["@xysfe/actui/es/Validator/index.js"])}("undefined"!=typeof self?self:this,function(e,t){return function(e){function t(r){if(i[r])return i[r].exports;var s=i[r]={i:r,l:!1,exports:{}};return e[r].call(s.exports,s,s.exports,t),s.l=!0,s.exports}var i={};return t.m=e,t.c=i,t.d=function(e,i,r){t.o(e,i)||Object.defineProperty(e,i,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(i,"a",i),i},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="../es",t(t.s=731)}({118:function(e,t,i){e.exports={default:i(119),__esModule:!0}},119:function(e,t,i){var r=i(2),s=r.JSON||(r.JSON={stringify:JSON.stringify});e.exports=function(e){return s.stringify.apply(s,arguments)}},2:function(e,t){var i=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=i)},271:function(e,i){e.exports=t},592:function(e,t,i){"use strict";var r=i(118),s=i.n(r),n=i(79),o=i.n(n),a=i(271),u=i.n(a);t.a={data:function(){return{pageData:{}}},props:{content:{type:Object,default:function(){return{}}}},watch:{content:{deep:!0,immediate:!0,handler:function(e){this.refresh(e)}}},methods:{refresh:function(e){this.pageData=JSON.parse(s()(o()({},e)))},errTips:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";this.pageData.form[e].tipscolor=this.pageData.tipsColor?this.pageData.tipsColor:this.titleBack?this.titleBack:"red",this.pageData.form[e].isShowTips=!0,this.pageData.form[e].isEmpty=t,this.pageData.form[e].tips=i,this.refresh(this.pageData)},getMobile:function(){if(this.pageData.form&&this.pageData.form.length)for(var e=0;e<this.pageData.form.length;++e){var t=this.pageData.form[e];if("mobile"===t.type)return this.checkInput(t.type,t.value)?[e,t.value,!0]:[e,t.value,!1]}return[-1,"",!1]},checkFormInput:function(){var e=this,t=this.pageData,i={};if(!t.form||t.form.length<=0)return[!0,i];var r="",s=!1,n=!0;return t.form.map(function(o,a){o.isEmpty=!1,o.isShowTips=!1,o.tips="",o.tipscolor=t.tipsColor?t.tipsColor:e.titleBack?e.titleBack:"red",o.value=o.value?o.value:"",r="",s=!1,e.checkInput(o.type,o.value)||(r=a),""===o.value.replace(/^\s+|\s+$/g,"")&&(s=!0,r=a),""!==r&&(n=!1,o.isEmpty=s,o.isShowTips=!0),i[o.type]=o.value}),this.refresh(t),[n,i]},checkInput:function(e,t){var i={user:["isString","required"],mobile:["isString","required","isMobile"],idcard:["isString","required","isIdCard"],address:["isString","required"],verifycode:["isString","required"]};return!0===(new u.a).data(t).add(i[e]).start()},returnData:function(e,t,i){return{ret:e,errmsg:t,data:i}}}}},731:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(592),s=i(8),n=Object(s.a)(r.a,void 0,void 0,!1,null,null,null);n.options.__file="src\\mixins\\form-input.vue",t.default=n.exports},79:function(t,i){t.exports=e},8:function(e,t,i){"use strict";function r(e,t,i,r,s,n,o,a){e=e||{};var u=typeof e.default;"object"!==u&&"function"!==u||(e=e.default);var f="function"==typeof e?e.options:e;t&&(f.render=t,f.staticRenderFns=i,f._compiled=!0),r&&(f.functional=!0),n&&(f._scopeId=n);var c;if(o?(c=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__),s&&s.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},f._ssrRegister=c):s&&(c=a?function(){s.call(this,this.$root.$options.shadowRoot)}:s),c)if(f.functional){f._injectStyles=c;var p=f.render;f.render=function(e,t){return c.call(t),p(e,t)}}else{var l=f.beforeCreate;f.beforeCreate=l?[].concat(l,c):[c]}return{exports:e,options:f}}t.a=r}})});