(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/z-modal/z-modal"],{"2f53":function(t,e,n){"use strict";n.r(e);var r=n("ad17"),i=n.n(r);for(var o in r)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(o);e["default"]=i.a},"563a":function(t,e,n){},7727:function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var r=function(){var t=this.$createElement;this._self._c},i=[]},ad17:function(t,e,n){"use strict";function r(t,e){var n="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"===typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(t,e)}(t))||e&&t&&"number"===typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,u=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return u=t.done,t},e:function(t){l=!0,a=t},f:function(){try{u||null==n.return||n.return()}finally{if(l)throw a}}}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o={name:"z-modal",props:{check:{type:Boolean,default:!1},checkItem:{type:Array,default:function(){return[]}},selfCheckItem:{type:Object,default:function(){return{}}},show:{type:Boolean,default:!1},btnGroup:{type:Array,default:function(){return[{text:"取消",color:"#FFFFFF",bgColor:"#999999",width:"220rpx",height:"80rpx",shape:"circle",eventName:"cancle"},{text:"确定",color:"#FFFFFF",bgColor:"#007AFF",width:"220rpx",height:"80rpx",shape:"circle",eventName:"sure"}]}},contentType:{type:[Number,String],default:1},maxLength:{type:Number,default:20},modalWidth:{type:String,default:"580rpx"},titleSize:{type:String,default:"32rpx"},contentSize:{type:String,default:"28rpx"},bottomFontSize:{type:String,default:"28rpx"},titlePadding:{type:String,default:"20rpx 0"},contentPadding:{type:String,default:"10rpx 40rpx"},bottomPadding:{type:String,default:"30rpx 40rpx"},titleColor:{type:String,default:"#333333"},contentColor:{type:String,default:"#333333"},placeholderColor:{type:String,default:"#999"},inputBorderColor:{type:String,default:"#999"},titleText:{type:String,default:"titleText"},contentText:{type:String,default:"Please type in your text"},placeholderText:{type:String,default:"请输入你的内容"}},computed:{btnLength:function(){return this.btnGroup.length},placeholderStyleString:function(){return"color:".concat(this.placeholderColor,";font-size:").concat(this.contentSize)}},data:function(){return{shapeObj:{circle:"1000rpx",straight:"0",fillet:"12rpx"},inputText:"",textareaText:"",checkCollection:{isRequired:function(t){return!(null===t||""===t||void 0===t)},isNumber:function(t){return/^\+?[0-9][0-9]*$/.test(t)},isChinese:function(t){return/^[\u4e00-\u9fa5]+$/.test(t)},isEnglish:function(t){return/^[a-zA-Z]+$/.test(t)},isEmail:function(t){return/^[a-z0-9]+([._\\-]*[a-z0-9])*@([a-z0-9]+[-a-z0-9]*[a-z0-9]+.){1,63}[a-z0-9]+$/.test(t)},isIdNum:function(t){return/^\d{6}(18|19|20)?\d{2}(0[1-9]|1[12])(0[1-9]|[12]\d|3[01])\d{3}(\d|X)$/i.test(t)}}}},methods:{btnClick:function(t){var e=2==this.contentType?this.inputText:this.textareaText;if(this.check&&this.checkItem.length&&1!=this.contentType){var n,i=!1,o=r(this.checkItem);try{for(o.s();!(n=o.n()).done;){var a=n.value;if(!this.checkCollection[a](e)){this.$emit("error",a),i=!0;break}}}catch(i){o.e(i)}finally{o.f()}if(i)return}var u=Object.entries(this.selfCheckItem);if(this.check&&u.length&&1!=this.contentType){var l,c=!1,f=r(u);try{for(f.s();!(l=f.n()).done;){var d=l.value,s=new RegExp(d[1]);if(!s.test(e)){this.$emit("error",d[0]),c=!0;break}}}catch(i){f.e(i)}finally{f.f()}if(c)return}this.$emit(this.btnGroup[t]["eventName"],{inputText:this.inputText||"",textareaText:this.textareaText||""}),this.inputText="",this.textareaText=""}}};e.default=o},db6f:function(t,e,n){"use strict";n.r(e);var r=n("7727"),i=n("2f53");for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n("ec1a");var a=n("828b"),u=Object(a["a"])(i["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],void 0);e["default"]=u.exports},ec1a:function(t,e,n){"use strict";var r=n("563a"),i=n.n(r);i.a}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'components/z-modal/z-modal-create-component',
    {
        'components/z-modal/z-modal-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('df3c')['createComponent'](__webpack_require__("db6f"))
        })
    },
    [['components/z-modal/z-modal-create-component']]
]);
