UNPKG

78.4 kBJavaScriptView Raw
1/*!
2 * form-create v1.6.5 iviewUI
3 * (c) 2018-2019 xaboy
4 * Github https://github.com/xaboy/form-create
5 * Released under the MIT License.
6 */
7!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("iview")):"function"==typeof define&&define.amd?define(["exports","vue","iview"],t):t(e.formCreate={},e.Vue,e.iview)}(this,function(e,t,n){"use strict";t=t&&t.hasOwnProperty("default")?t.default:t,n=n&&n.hasOwnProperty("default")?n.default:n;var r={}.toString,i=function(e){return r.call(e).slice(8,-1)},o=Array.isArray||function(e){return"Array"==i(e)},a=function(e){return"object"==typeof e?null!==e:"function"==typeof e},u=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},s=function(e){return Object(u(e))},c=Math.ceil,l=Math.floor,f=function(e){return isNaN(e=+e)?0:(e>0?l:c)(e)},h=Math.min,p=function(e){return e>0?h(f(e),9007199254740991):0},d=function(e,t){if(!a(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!a(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!a(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!a(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},v=function(e){try{return!!e()}catch(e){return!0}},m=!v(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),y="object"==typeof window&&window&&window.Math==Math?window:"object"==typeof self&&self&&self.Math==Math?self:Function("return this")(),g=y.document,k=a(g)&&a(g.createElement),b=function(e){return k?g.createElement(e):{}},_=!m&&!v(function(){return 7!=Object.defineProperty(b("div"),"a",{get:function(){return 7}}).a}),w=function(e){if(!a(e))throw TypeError(String(e)+" is not an object");return e},x=Object.defineProperty,O={f:m?x:function(e,t,n){if(w(e),t=d(t,!0),w(n),_)try{return x(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},V=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},S=function(e,t,n){var r=d(t);r in e?O.f(e,r,V(0,n)):e[r]=n};function E(e,t){return e(t={exports:{}},t.exports),t.exports}var I,N,P,F=m?function(e,t,n){return O.f(e,t,V(1,n))}:function(e,t,n){return e[t]=n,e},C=function(e,t){try{F(y,e,t)}catch(n){y[e]=t}return t},A=E(function(e){var t=y["__core-js_shared__"]||C("__core-js_shared__",{});(e.exports=function(e,n){return t[e]||(t[e]=void 0!==n?n:{})})("versions",[]).push({version:"3.0.1",mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})}),$=0,j=Math.random(),D=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++$+j).toString(36))},R=!v(function(){return!String(Symbol())}),T=A("wks"),L=y.Symbol,M=function(e){return T[e]||(T[e]=R&&L[e]||(R?L:D)("Symbol."+e))},B=M("species"),q=function(e,t){var n;return o(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!o(n.prototype)?a(n)&&null===(n=n[B])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)},U=M("species"),H=function(e){return!v(function(){var t=[];return(t.constructor={})[U]=function(){return{foo:1}},1!==t[e](Boolean).foo})},z={}.propertyIsEnumerable,G=Object.getOwnPropertyDescriptor,W={f:G&&!z.call({1:2},1)?function(e){var t=G(this,e);return!!t&&t.enumerable}:z},J="".split,Y=v(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return"String"==i(e)?J.call(e,""):Object(e)}:Object,X=function(e){return Y(u(e))},K={}.hasOwnProperty,Z=function(e,t){return K.call(e,t)},Q=Object.getOwnPropertyDescriptor,ee={f:m?Q:function(e,t){if(e=X(e),t=d(t,!0),_)try{return Q(e,t)}catch(e){}if(Z(e,t))return V(!W.f.call(e,t),e[t])}},te=A("native-function-to-string",Function.toString),ne=y.WeakMap,re="function"==typeof ne&&/native code/.test(te.call(ne)),ie=A("keys"),oe=function(e){return ie[e]||(ie[e]=D(e))},ae={},ue=y.WeakMap;if(re){var se=new ue,ce=se.get,le=se.has,fe=se.set;I=function(e,t){return fe.call(se,e,t),t},N=function(e){return ce.call(se,e)||{}},P=function(e){return le.call(se,e)}}else{var he=oe("state");ae[he]=!0,I=function(e,t){return F(e,he,t),t},N=function(e){return Z(e,he)?e[he]:{}},P=function(e){return Z(e,he)}}var pe,de={set:I,get:N,has:P,enforce:function(e){return P(e)?N(e):I(e,{})},getterFor:function(e){return function(t){var n;if(!a(t)||(n=N(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},ve=E(function(e){var t=de.get,n=de.enforce,r=String(te).split("toString");A("inspectSource",function(e){return te.call(e)}),(e.exports=function(e,t,i,o){var a=!!o&&!!o.unsafe,u=!!o&&!!o.enumerable,s=!!o&&!!o.noTargetGet;"function"==typeof i&&("string"!=typeof t||Z(i,"name")||F(i,"name",t),n(i).source=r.join("string"==typeof t?t:"")),e!==y?(a?!s&&e[t]&&(u=!0):delete e[t],u?e[t]=i:F(e,t,i)):u?e[t]=i:C(t,i)})(Function.prototype,"toString",function(){return"function"==typeof this&&t(this).source||te.call(this)})}),me=Math.max,ye=Math.min,ge=function(e,t){var n=f(e);return n<0?me(n+t,0):ye(n,t)},ke=(pe=!1,function(e,t,n){var r,i=X(e),o=p(i.length),a=ge(n,o);if(pe&&t!=t){for(;o>a;)if((r=i[a++])!=r)return!0}else for(;o>a;a++)if((pe||a in i)&&i[a]===t)return pe||a||0;return!pe&&-1}),be=function(e,t){var n,r=X(e),i=0,o=[];for(n in r)!Z(ae,n)&&Z(r,n)&&o.push(n);for(;t.length>i;)Z(r,n=t[i++])&&(~ke(o,n)||o.push(n));return o},_e=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],we=_e.concat("length","prototype"),xe={f:Object.getOwnPropertyNames||function(e){return be(e,we)}},Oe={f:Object.getOwnPropertySymbols},Ve=y.Reflect,Se=Ve&&Ve.ownKeys||function(e){var t=xe.f(w(e)),n=Oe.f;return n?t.concat(n(e)):t},Ee=function(e,t){for(var n=Se(t),r=O.f,i=ee.f,o=0;o<n.length;o++){var a=n[o];Z(e,a)||r(e,a,i(t,a))}},Ie=/#|\.prototype\./,Ne=function(e,t){var n=Fe[Pe(e)];return n==Ae||n!=Ce&&("function"==typeof t?v(t):!!t)},Pe=Ne.normalize=function(e){return String(e).replace(Ie,".").toLowerCase()},Fe=Ne.data={},Ce=Ne.NATIVE="N",Ae=Ne.POLYFILL="P",$e=Ne,je=ee.f,De=function(e,t){var n,r,i,o,a,u=e.target,s=e.global,c=e.stat;if(n=s?y:c?y[u]||C(u,{}):(y[u]||{}).prototype)for(r in t){if(o=t[r],i=e.noTargetGet?(a=je(n,r))&&a.value:n[r],!$e(s?r:u+(c?".":"#")+r,e.forced)&&void 0!==i){if(typeof o==typeof i)continue;Ee(o,i)}(e.sham||i&&i.sham)&&F(o,"sham",!0),ve(n,r,o,e)}},Re=M("isConcatSpreadable"),Te=!v(function(){var e=[];return e[Re]=!1,e.concat()[0]!==e}),Le=H("concat"),Me=function(e){if(!a(e))return!1;var t=e[Re];return void 0!==t?!!t:o(e)};De({target:"Array",proto:!0,forced:!Te||!Le},{concat:function(e){var t,n,r,i,o,a=s(this),u=q(a,0),c=0;for(t=-1,r=arguments.length;t<r;t++)if(o=-1===t?a:arguments[t],Me(o)){if(c+(i=p(o.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<i;n++,c++)n in o&&S(u,c,o[n])}else{if(c>=9007199254740991)throw TypeError("Maximum allowed index exceeded");S(u,c++,o)}return u.length=c,u}});var Be=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e},qe=function(e,t){var n=1==e,r=2==e,i=3==e,o=4==e,a=6==e,u=5==e||a,c=t||q;return function(t,l,f){for(var h,d,v=s(t),m=Y(v),y=function(e,t,n){if(Be(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}(l,f,3),g=p(m.length),k=0,b=n?c(t,g):r?c(t,0):void 0;g>k;k++)if((u||k in m)&&(d=y(h=m[k],k,v),e))if(n)b[k]=d;else if(d)switch(e){case 3:return!0;case 5:return h;case 6:return k;case 2:b.push(h)}else if(o)return!1;return a?-1:i||o?o:b}},Ue=qe(2);De({target:"Array",proto:!0,forced:!H("filter")},{filter:function(e){return Ue(this,e,arguments[1])}});var He=qe(1);De({target:"Array",proto:!0,forced:!H("map")},{map:function(e){return He(this,e,arguments[1])}});var ze=Math.max,Ge=Math.min;De({target:"Array",proto:!0,forced:!H("splice")},{splice:function(e,t){var n,r,i,o,a,u,c=s(this),l=p(c.length),h=ge(e,l),d=arguments.length;if(0===d?n=r=0:1===d?(n=0,r=l-h):(n=d-2,r=Ge(ze(f(t),0),l-h)),l+n-r>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(i=q(c,r),o=0;o<r;o++)(a=h+o)in c&&S(i,o,c[a]);if(i.length=r,n<r){for(o=h;o<l-r;o++)u=o+n,(a=o+r)in c?c[u]=c[a]:delete c[u];for(o=l;o>l-r+n;o--)delete c[o-1]}else if(n>r)for(o=l-r;o>h;o--)u=o+n-1,(a=o+r-1)in c?c[u]=c[a]:delete c[u];for(o=0;o<n;o++)c[o+h]=arguments[o+2];return c.length=l-r+n,i}});var We=Object.keys||function(e){return be(e,_e)};De({target:"Object",stat:!0,forced:v(function(){We(1)})},{keys:function(e){return We(s(e))}});var Je,Ye,Xe=[].forEach,Ke=qe(0),Ze=!(Ye=[]["forEach"])||!v(function(){Ye.call(null,Je||function(){throw 1},1)})?function(e){return Ke(this,e,arguments[1])}:Xe;for(var Qe in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var et=y[Qe],tt=et&&et.prototype;if(tt&&tt.forEach!==Ze)try{F(tt,"forEach",Ze)}catch(e){tt.forEach=Ze}}function nt(e){return(nt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function rt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function it(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ot(e,t,n){return t&&it(e.prototype,t),n&&it(e,n),e}function at(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ut(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){at(e,t,n[t])})}return e}function st(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&lt(e,t)}function ct(e){return(ct=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function lt(e,t){return(lt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ft(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ht(e,t,n){return(ht="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=ct(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function pt(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var dt=M("toStringTag"),vt="Arguments"==i(function(){return arguments}()),mt={};mt[M("toStringTag")]="z";var yt="[object z]"!==String(mt)?function(){return"[object "+(void 0===(e=this)?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),dt))?n:vt?i(t):"Object"==(r=i(t))&&"function"==typeof t.callee?"Arguments":r)+"]";var e,t,n,r}:mt.toString,gt=Object.prototype;yt!==gt.toString&&ve(gt,"toString",yt,{unsafe:!0});var kt=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return function(e,t){if(w(e),!a(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}(n,r),t?e.call(n,r):n.__proto__=r,n}}():void 0),bt=function(e,t,n){var r,i=t.constructor;return i!==n&&"function"==typeof i&&(r=i.prototype)!==n.prototype&&a(r)&&kt&&kt(e,r),e},_t=M("match"),wt=function(e){var t;return a(e)&&(void 0!==(t=e[_t])?!!t:"RegExp"==i(e))},xt=function(){var e=w(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},Ot=y,Vt=function(e){return"function"==typeof e?e:void 0},St=M("species"),Et=M("match"),It=O.f,Nt=xe.f,Pt=y.RegExp,Ft=Pt.prototype,Ct=/a/g,At=/a/g,$t=new Pt(Ct)!==Ct;if($e("RegExp",m&&(!$t||v(function(){return At[Et]=!1,Pt(Ct)!=Ct||Pt(At)==At||"/a/i"!=Pt(Ct,"i")})))){for(var jt=function(e,t){var n=this instanceof jt,r=wt(e),i=void 0===t;return!n&&r&&e.constructor===jt&&i?e:bt($t?new Pt(r&&!i?e.source:e,t):Pt((r=e instanceof jt)?e.source:e,r&&i?xt.call(e):t),n?this:Ft,jt)},Dt=function(e){e in jt||It(jt,e,{configurable:!0,get:function(){return Pt[e]},set:function(t){Pt[e]=t}})},Rt=Nt(Pt),Tt=0;Tt<Rt.length;)Dt(Rt[Tt++]);Ft.constructor=jt,jt.prototype=Ft,ve(y,"RegExp",jt)}!function(e){var t=function(e,t){return arguments.length<2?Vt(Ot[e])||Vt(y[e]):Ot[e]&&Ot[e][t]||y[e]&&y[e][t]}(e),n=O.f;m&&t&&!t[St]&&n(t,St,{configurable:!0,get:function(){return this}})}("RegExp");var Lt=/./.toString,Mt=v(function(){return"/a/b"!=Lt.call({source:"a",flags:"b"})}),Bt="toString"!=Lt.name;(Mt||Bt)&&ve(RegExp.prototype,"toString",function(){var e=w(this);return"/".concat(e.source,"/","flags"in e?e.flags:!m&&e instanceof RegExp?xt.call(e):void 0)},{unsafe:!0});var qt=function(e,t,n){return t+(n?function(e,t,n){var r,i,o=String(u(e)),a=f(t),s=o.length;return a<0||a>=s?n?"":void 0:(r=o.charCodeAt(a))<55296||r>56319||a+1===s||(i=o.charCodeAt(a+1))<56320||i>57343?n?o.charAt(a):r:n?o.slice(a,a+2):i-56320+(r-55296<<10)+65536}(e,t,!0).length:1)},Ut=RegExp.prototype.exec,Ht=String.prototype.replace,zt=Ut,Gt=function(){var e=/a/,t=/b*/g;return Ut.call(e,"a"),Ut.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),Wt=void 0!==/()??/.exec("")[1];(Gt||Wt)&&(zt=function(e){var t,n,r,i,o=this;return Wt&&(n=new RegExp("^"+o.source+"$(?!\\s)",xt.call(o))),Gt&&(t=o.lastIndex),r=Ut.call(o,e),Gt&&r&&(o.lastIndex=o.global?r.index+r[0].length:t),Wt&&r&&r.length>1&&Ht.call(r[0],n,function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)}),r});var Jt=zt,Yt=function(e,t){var n=e.exec;if("function"==typeof n){var r=n.call(e,t);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==i(e))throw TypeError("RegExp#exec called on incompatible receiver");return Jt.call(e,t)},Xt=M("species"),Kt=!v(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}),Zt=!v(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}),Qt=function(e,t,n,r){var i=M(e),o=!v(function(){var t={};return t[i]=function(){return 7},7!=""[e](t)}),a=o&&!v(function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[Xt]=function(){return n}),n[i](""),!t});if(!o||!a||"replace"===e&&!Kt||"split"===e&&!Zt){var u=/./[i],s=n(i,""[e],function(e,t,n,r,i){return t.exec===Jt?o&&!i?{done:!0,value:u.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),c=s[0],l=s[1];ve(String.prototype,e,c),ve(RegExp.prototype,i,2==t?function(e,t){return l.call(e,this,t)}:function(e){return l.call(e,this)}),r&&F(RegExp.prototype[i],"sham",!0)}},en=Math.max,tn=Math.min,nn=Math.floor,rn=/\$([$&`']|\d\d?|<[^>]*>)/g,on=/\$([$&`']|\d\d?)/g;Qt("replace",2,function(e,t,n){return[function(n,r){var i=u(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,i,r):t.call(String(i),n,r)},function(e,i){var o=n(t,e,this,i);if(o.done)return o.value;var a=w(e),u=String(this),s="function"==typeof i;s||(i=String(i));var c=a.global;if(c){var l=a.unicode;a.lastIndex=0}for(var h=[];;){var d=Yt(a,u);if(null===d)break;if(h.push(d),!c)break;""===String(d[0])&&(a.lastIndex=qt(u,p(a.lastIndex),l))}for(var v,m="",y=0,g=0;g<h.length;g++){d=h[g];for(var k=String(d[0]),b=en(tn(f(d.index),u.length),0),_=[],x=1;x<d.length;x++)_.push(void 0===(v=d[x])?v:String(v));var O=d.groups;if(s){var V=[k].concat(_,b,u);void 0!==O&&V.push(O);var S=String(i.apply(void 0,V))}else S=r(k,u,b,_,O,i);b>=y&&(m+=u.slice(y,b)+S,y=b+k.length)}return m+u.slice(y)}];function r(e,n,r,i,o,a){var u=r+e.length,c=i.length,l=on;return void 0!==o&&(o=s(o),l=rn),t.call(a,l,function(t,a){var s;switch(a.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,r);case"'":return n.slice(u);case"<":s=o[a.slice(1,-1)];break;default:var l=+a;if(0===l)return t;if(l>c){var f=nn(l/10);return 0===f?t:f<=c?void 0===i[f-1]?a.charAt(1):i[f-1]+a.charAt(1):t}s=i[l-1]}return void 0===s?"":s})}});var an=y.navigator,un=an&&an.userAgent||"",sn=[].slice,cn=function(e){return function(t,n){var r=arguments.length>2,i=!!r&&sn.call(arguments,2);return e(r?function(){("function"==typeof t?t:Function(t)).apply(this,i)}:t,n)}};function ln(e){t.nextTick(e)}function fn(e,n,r){t.set(e,n,r)}function hn(e,n){t.delete(e,n)}function pn(e){return Array.isArray(e)&&e.length>0}De({global:!0,bind:!0,forced:/MSIE .\./.test(un)},{setTimeout:cn(y.setTimeout),setInterval:cn(y.setInterval)});var dn=Object.prototype.toString;function vn(e){return null==e}function mn(e){return null==e?"":"object"===nt(e)?JSON.stringify(e,null,2):String(e)}function yn(e,t){for(var n in t)fn(e,n,t[n]);return e}function gn(e,t){var n=null;return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];null!==n&&clearTimeout(n),n=setTimeout(function(){return e.apply(void 0,i)},t)}}function kn(e){return"[object Date]"===dn.call(e)}function bn(e){return"[object Object]"===dn.call(e)}function _n(e){return"[object Function]"===dn.call(e)}function wn(e){return"[object String]"===dn.call(e)}function xn(e){return"[object Boolean]"===dn.call(e)}function On(e){var t=e.replace(/([A-Z])/g,"-$1").toLowerCase();return 0===t.indexOf("-")&&(t=t.substr(1)),t}function Vn(e){return Array.isArray(e)?e:[e]}function Sn(e){return"object"===nt(e)&&null!==e&&1===e.nodeType&&!bn(e)}function En(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!1;for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var i=t[r];if((n=Array.isArray(i))||bn(i)){var o=void 0===e[r];n?(n=!1,o&&fn(e,r,[])):o&&fn(e,r,{}),En(e[r],i)}else fn(e,r,i)}return e}var In=0;function Nn(){return++In}function Pn(e){if(kn(e))return e;var t=new Date(e);return"Invalid Date"===t.toString()?e:t}function Fn(e){e.preventDefault()}var Cn={data:function(){return{rules:{},components:{},cptData:{},buttonProps:{},resetProps:{},trueData:{},jsonData:{},$f:{},isShow:!0,unique:1}},components:Zn,methods:{_formField:function(){return Object.keys(this.trueData)},_changeFormData:function(e,t){-1!==Object.keys(this.cptData).indexOf(e)&&this.$set(this.cptData,e,t)},_changeValue:function(e,t){this.$set(this.trueData[e],"value",t)},_value:function(e){return void 0===this.trueData[e]?void 0:this.trueData[e].value},_trueData:function(e){return this.trueData[e]},_formData:function(e){return this.cptData[e]},_removeField:function(e){hn(this.cptData,e),hn(this.trueData,e),hn(this.jsonData,e),void 0!==this.components[e]&&hn(this.components,e)},_buttonProps:function(e){this.$set(this,"buttonProps",En(this.buttonProps,e))},_resetProps:function(e){this.$set(this,"resetProps",En(this.resetProps,e))},__init:function(){},_refresh:function(){this.unique+=1},_sync:function(){this.unique+=1,this._fComponent.fRender.cacheUnique=this.unique},_change:function(e,t){return this.jsonData[e]!==t&&(this.jsonData[e]=t,!0)}},beforeDestroy:function(){this._fComponent.reload([])}},An="FormCreate",$n=function(){return{name:An,mixins:[Cn],props:{rule:{type:Array,required:!0,default:function(){return{}}},option:{type:Object,default:function(){return{}},required:!1},value:Object},render:function(){return this._fComponent.render()},beforeCreate:function(){var e=this.$options.propsData,t=e.rule,n=e.option,r=new er(t,n);this._fComponent=r,r._type="rule",r.beforeBoot(this)},created:function(){var e=this._fComponent;e.boot(),this.$f=e.fCreateApi,this.$emit("input",e.fCreateApi)},mounted:function(){var e=this,t=this._fComponent;t.mounted(this),this.$watch("rule",function(n){t.reload(n),e.$emit("input",e.$f)}),this.$watch("option",function(t){ln(function(){e._sync()})},{deep:!0}),this.__init(),this.$emit("input",this.$f)}}};function jn(e){return{name:"".concat(An,"Core"),mixins:[Cn],render:function(){return e.render()},beforeCreate:function(){this._fComponent=e,e._type="rules",e.beforeBoot(this)},created:function(){e.boot(),this.$f=e.fCreateApi},mounted:function(){var t=this;e.mounted(this),this.$watch("rules",function(e){t._fComponent.reload(e)}),this.$watch("option",function(e){ln(function(){t._sync()})},{deep:!0}),this.__init()}}}var Dn=function(){function e(t,n,r,i,o){rt(this,e);var a=function(e,t,n){var r={validate:[],event:{},col:{},emit:[],props:{},on:{},options:[],title:"",value:"",field:"",className:""};Object.keys(r).forEach(function(t){vn(e[t])&&fn(e,t,r[t])});var i={col:Mn(e.col),props:Ln(e.props),emitEvent:Tn(e.field,e.emitPrefix,e.emit,t),validate:Rn(e.validate),options:Rn(e.options)};i.event=yn((u=e.event,Object.keys(u).forEach(function(e){var t=0===mn(e).indexOf("on-")?e:"on-".concat(e);t!==e&&fn(u,t,u[e])}),u),i.emitEvent),i.on=(o=e.on,a=i.emitEvent,Object.keys(a).length>0&&yn(o,a),o),Object.keys(i).forEach(function(t){fn(e,t,i[t])}),e.field||n||console.error("规则的 field 字段不能空\ngithub:https://github.com/xaboy/form-create\ndocument:http://www.form-create.com");var o,a;var u;return e}(n,t,o);this.rule=a,this.noValue=o,this.type=mn(a.type).toLowerCase(),this.isDef=!0,this.vm=t,this.el={},this.watch=[],this.root=[],this.orgChildren=[],!a.field&&o?(this.field="_def_"+Nn(),this.isDef=!1):this.field=a.field,this.init();var u=Nn();this.id=u,this.unique="fc_"+u,this.key="key_"+u,this.refName="__"+this.field+this.id,vn(a.props.elementId)&&fn(a.props,"elementId",this.unique),this.refresh(),this.render=new r(t,this,i)}return ot(e,[{key:"refresh",value:function(){var e=this.rule;return this.parseValue=this.toFormValue(e.value),this.orgChildren=pn(e.children)?pt(e.children):[],this.deleted=!1,this}},{key:"init",value:function(){}},{key:"toFormValue",value:function(e){return e}},{key:"toValue",value:function(e){return e}},{key:"setValue",value:function(e){this.rule.value=e,this.vm._changeValue(this.field,e)}},{key:"getValue",value:function(){return this.vm._value(this.field)}},{key:"watchValue",value:function(e){fn(this.rule,"value",e),this.vm._changeFormData(this.field,this.toFormValue(e))}},{key:"watchFormValue",value:function(e){}},{key:"reset",value:function(){this.vm._changeValue(this.field,this.defaultValue),this.clearMsg()}},{key:"clearMsg",value:function(){var e="fItem"+this.refName,t=this.vm.$refs[e];t&&(t.validateMessage="",t.validateState="",t.validateDisabled=!0)}},{key:"mounted",value:function(){var e="fItem"+this.refName,t=this.vm;this.el=t.$refs[this.refName]||{},void 0===this.defaultValue&&(this.defaultValue=this.toValue(t.$refs[e]&&!vn(t.$refs[e].initialValue)?t.$refs[e].initialValue:En({},{value:this.rule.value}).value))}},{key:"$emit",value:function(e){var t,n;e="fc:".concat(e);for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];"template"===this.type&&this.rule.template?(t=this.rule.vm).$emit.apply(t,[e].concat(i)):!0===this.noValue&&this.el.$emit&&(n=this.el).$emit.apply(n,[e].concat(i))}}]),e}();function Rn(e){return Array.isArray(e)?e:[]}function Tn(e,t,n,r){var i={};return Array.isArray(n)?(n.forEach(function(n){var o=On("".concat(e,"-").concat(n)).replace("_","-"),a=t?"".concat(t,"-").toLowerCase()+On(n):t;i[n]=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];r.$emit.apply(r,[o].concat(t)),a&&o!==a&&r.$emit.apply(r,[a].concat(t))},i["on-".concat(n)]=i[n]}),i):i}function Ln(e){return vn(e.hidden)&&fn(e,"hidden",!1),vn(e.visibility)&&fn(e,"visibility",!1),e}function Mn(e){return""!==(t=e)&&!isNaN(parseFloat(t))&&isFinite(t)?{span:e}:(void 0===e.span&&fn(e,"span",24),e);var t}var Bn=function(){function e(t){rt(this,e),this.setVm(t)}return ot(e,[{key:"setVm",value:function(e){this.vm=e,this.$h=e.$createElement}},{key:"make",value:function(e,t,n){var r,i=this.$h(e,function(e){return wn(e)?e={domProps:{innerHTML:e}}:e&&_n(e.get)&&(e=e.get()),e}(t),_n(r=n)?r():r||[]);return i.context=this.vm,i}}],[{key:"use",value:function(t){Object.keys(t).forEach(function(n){e.prototype[n]=function(e,r){return this.make(t[n],e,r)}})}}]),e}();var qn=function(){function e(){rt(this,e),this.init()}return ot(e,[{key:"class",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return vn(e)?this:(Array.isArray(e)?e.forEach(function(e){fn(t._data.class,mn(e),!0)}):bn(e)?fn(this._data,"class",yn(this._data.class,e)):fn(this._data.class,mn(e),void 0===n||n),this)}},{key:"directives",value:function(e){return vn(e)?this:(fn(this._data,"directives",this._data.directives.concat(Vn(e))),this)}},{key:"init",value:function(){return this._data={class:{},style:{},attrs:{},props:{},domProps:{},on:{},nativeOn:{},directives:[],scopedSlots:{},slot:void 0,key:void 0,ref:void 0},this}},{key:"get",value:function(){return this._prev=this._data,this.init(),this._prev}}]),e}();["ref","key","slot"].forEach(function(e){qn.prototype[e]=function(t){return fn(this._data,e,t),this}}),["scopedSlots","nativeOn","on","domProps","props","attrs","style"].forEach(function(e){qn.prototype[e]=function(t,n){return vn(t)?this:(bn(t)?fn(this._data,e,yn(this._data[e],t)):fn(this._data[e],mn(t),n),this)}});var Un=gn(function(e){return e()},1),Hn=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};rt(this,e),this.vm=t,this.handler=n,this.options=r,this.vNode=new Bn(t),this.vData=new qn,this.cache=null,this.$tickEvent=[],this.init()}return ot(e,[{key:"init",value:function(){}},{key:"cacheParse",value:function(t,n){var r=this.handler,i=r.noValue,o=r.noCache;this.cache&&!0!==i&&!0!==o||(this.cache=n?e.prototype.parse.call(this,t):this.parse(t));var a=pt(this.$tickEvent);return this.$tickEvent=[],a.length&&ln(function(){a.forEach(function(e){return e()})}),this.cache}},{key:"sync",value:function(e){_n(e)&&this.$tickEvent.push(e),this.clearCache(),this.vm._sync()}},{key:"clearCache",value:function(){this.cache=null;var e=this.handler.rule.children;pn(e)&&e.forEach(function(e){return!wn(e)&&e.__handler__.render.clearCache()})}},{key:"childrenParse",value:function(e){var t=this.handler,n=t.rule,r=t.orgChildren,i=t.vm,o=n.children,a=[];return pn(o)?(r.forEach(function(e){-1===o.indexOf(e)&&i._fComponent.removeField(e.__field__)}),a=o.map(function(t){return wn(t)?[t]:t.__handler__?t.__handler__.render.cacheParse(e,!0):void Un(function(){return i._fComponent.reload()})}),this.handler.orgChildren=pt(o)):r.length>0&&(r.forEach(function(e){i._fComponent.removeField(e.__field__)}),this.handler.orgChildren=[]),a}},{key:"parse",value:function(e){var n=this.handler,r=n.type,i=n.rule,o=n.refName,a=n.key,u=n.noValue;if("template"===r&&i.template){if(void 0===t.compile)return console.error("使用的 Vue 版本不支持 compile\ngithub:https://github.com/xaboy/form-create\ndocument:http://www.form-create.com"),[];vn(i.vm)&&(i.vm=new t);var s=t.compile(i.template,{}).render.call(i.vm);return void 0===s.data&&(s.data={}),yn(s.data,i),s.key=a,[s]}if(u){i.ref=o,vn(i.key)&&(i.key="def"+Nn());var c=this.vNode.make(r,ut({},i),this.childrenParse(e));return c.key=a,[c]}return e.makeComponent(this.handler.render)}},{key:"inputProps",value:function(){var e=this,t=this.handler,n=t.refName,r=t.key,i=t.field,o=t.rule,a=o.props,u=o.event;Object.keys(this.vData._data).forEach(function(t){void 0!==o[t]&&e.vData[t](o[t])});var s=this.vData.props({value:this.vm._formData(i)}).ref(n).key(r+"fc"+i).on(u).on("input",function(t){e.onInput(t)});return vn(a.size)&&s.props({size:this.options.form.size}),s}},{key:"onInput",value:function(e){e=vn(e)?"":e;var t=this.handler,n=this.handler,r=n.field,i=n.vm,o=t.toValue(e);i._changeFormData(r,e),i._change(r,JSON.stringify(o))&&(t.setValue(o),t.watchFormValue(e))}}]),e}();function zn(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n){function r(){return rt(this,r),ft(this,ct(r).apply(this,arguments))}return st(r,Hn),ot(r,[{key:"parse",value:function(n){var r=this.inputProps();return t&&r.key(this.handler.key),[this.vNode[e](r.get(),this.childrenParse(n))]}}]),r}()}var Gn="form-create-style",Wn={};function Jn(e,t,n){var r=Wn.componentList,i=mn(t.type).toLowerCase(),o=Yn(i)?r[i]:{handler:Dn,render:Hn,noValue:!0};return new o.handler(e,t,o.render,n,o.noValue)}function Yn(e){return void 0!==Wn.componentList[e]}var Xn="undefined"!=typeof window&&window.Vue?window.Vue:t;function Kn(e){e.watch.forEach(function(e){return e()}),e.watch=[],e.deleted=!0}var Zn={"form-create":Xn.extend($n())};function Qn(e,t){return t?Xn.component(mn(e),t):e?Zn[mn(e)]:ut({},Zn)}var er=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};rt(this,e),this.fRender=void 0,this.fCreateApi=void 0,this.$parent=void 0,this.id=Nn(),this.validate={},this.__init(t,n),function(){if(null===document.getElementById(Gn)){var e=document.createElement("style");e.id=Gn,e.innerText=Wn.style,document.getElementsByTagName("head")[0].appendChild(e)}}(),this.$tick=gn(function(e){return e()},150)}return ot(e,[{key:"__init",value:function(e,t){this.options=function(e){xn(e.sumbitBtn)&&fn(e,"sumbitBtn",{show:e.sumbitBtn}),xn(e.resetBtn)&&fn(e,"resetBtn",{show:e.resetBtn});var t=En(yn(Wn.getConfig(),{mounted:function(e){},onReload:function(e){},onSubmit:function(e,t){},el:null,switchMaker:!0}),e);return fn(t,"el",t.el?Sn(t.el)?t.el:document.querySelector(t.el):window.document.body),t}(t),this.rules=Array.isArray(e)?e:[],this.origin=pt(this.rules),this.handlers={},this.formData={},this.trueData={},this.components={},this.fieldList=[],this.switchMaker=this.options.switchMaker}},{key:"render",value:function(){return this.fRender.render(this.vm)}},{key:"beforeBoot",value:function(e){this.vm=e,this.createHandler(this.rules),this.fRender=new Wn.formRender(this)}},{key:"boot",value:function(){var e=this.vm;e.$set(e,"cptData",this.formData),e.$set(e,"trueData",this.trueData),e.$set(e,"buttonProps",this.options.submitBtn),e.$set(e,"resetProps",this.options.resetBtn),e.$set(e,"rules",this.rules),e.$set(e,"components",this.components),void 0===this.fCreateApi&&(this.fCreateApi=Wn.getGlobalApi(this)),this.fCreateApi.rule=this.rules,this.fCreateApi.config=this.options}},{key:"setHandler",value:function(e){var t=e.rule,n=e.field,r=e.isDef;this.handlers[n]=e,!0!==e.noValue?(fn(this.formData,n,e.parseValue),fn(this.validate,n,t.validate),fn(this.trueData,n,t)):!0===r&&fn(this.components,n,t)}},{key:"notField",value:function(e){return void 0===this.handlers[e]}},{key:"createHandler",value:function(e,t){var n=this;return e.map(function(r,i){if(!t||!wn(r)){if(!r.type)return console.error("未定义生成规则的 type 字段\ngithub:https://github.com/xaboy/form-create\ndocument:http://www.form-create.com");var o,a=function(e){return _n(e.getRule)?e.getRule():e}(r);if(r.__handler__){if((o=r.__handler__).vm!==n.vm&&!o.deleted)return console.error("第".concat(i+1,"条规则正在其他的 <form-create> 中使用")+"\ngithub:https://github.com/xaboy/form-create\ndocument:http://www.form-create.com");o.vm=n.vm,o.render.vm=n.vm,o.render.vNode.setVm(n.vm),o.refresh()}else o=Jn(n.vm,a,n.options);var u=o.rule.children;return n.notField(o.field)?(n.switchMaker&&(e[i]=a,t||(n.origin[i]=a),r=a),n.setHandler(o),r.__handler__||function(e,t){Object.defineProperties(e,{__field__:{value:t.field,enumerable:!1,configurable:!1},__handler__:{value:t,enumerable:!1,configurable:!1}})}(r,o),pn(u)&&n.createHandler(u,!0),t||n.fieldList.push(o.field),o):console.error("".concat(a.field," 字段已存在")+"\ngithub:https://github.com/xaboy/form-create\ndocument:http://www.form-create.com")}}).filter(function(e){return e}).forEach(function(t){t.root=e}),e}},{key:"create",value:function(e){var t=(new(e.extend(jn(this)))).$mount();return this.options.el.appendChild(t.$el),t}},{key:"mounted",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.vm=e;var r=this.options,i=r.mounted,o=r.onReload;Object.keys(this.handlers).forEach(function(e){var n=t.handlers[e];0===n.watch.length&&t.addHandlerWatch(n),n.mounted()}),Object.keys(e.cptData).forEach(function(n){var r=t.handlers[n].toValue(e.cptData[n]);e.jsonData[n]=JSON.stringify(r),e._changeValue(n,r)}),n&&(i&&i(this.fCreateApi),this.$emit("mounted",this.fCreateApi)),o&&o(this.fCreateApi),this.$emit("reload",this.fCreateApi)}},{key:"$emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i,o;this.$parent?(i=this.$parent).$emit.apply(i,["fc:".concat(e)].concat(n)):(o=this.vm).$emit.apply(o,[e].concat(n))}},{key:"removeField",value:function(e){if(void 0!==this.handlers[e]){var t=this.fieldList.indexOf(e);Kn(this.handlers[e]),hn(this.handlers,e),hn(this.validate,e),-1!==t&&this.fieldList.splice(t,1),this.vm._removeField(e)}}},{key:"addHandlerWatch",value:function(e){var t=this;if(!0!==e.noValue){var n=e.field,r=this.vm,i=r.$watch(function(){return r.cptData[n]},function(i){if(void 0===t.handlers[n])return Kn(e);var o=e.toValue(i),a=JSON.stringify(o);r._change(n,a)&&(e.setValue(o),e.watchFormValue(i))},{deep:!0}),o=r.$watch(function(){return r.trueData[n].value},function(i){if(void 0!==i){if(void 0===t.handlers[n])return Kn(e);var o=JSON.stringify(i);r._change(n,o)&&(e.watchValue(i),ln(function(){return e.render.sync()}))}},{deep:!0});e.watch.push(i,o);var a=function(){void 0===t.handlers[n]?Kn(e):t.$tick(function(){return e.render.sync()})};Object.keys(r._trueData(n)).forEach(function(t){"value"!==t&&e.watch.push(r.$watch(function(){return r.trueData[n][t]},a,{deep:!0}))})}}},{key:"reload",value:function(e){var t=this,n=this.vm;if(!e)return this.reload(this.rules);this.origin.length||this.fCreateApi.refresh(),this.origin=pt(e),Object.keys(this.handlers).forEach(function(e){return t.removeField(e)}),this.__init(e,this.options),this.beforeBoot(n),this.boot(),n.__init(),ln(function(){t.mounted(n,!1)}),n.$f=this.fCreateApi}},{key:"getFormRef",value:function(){return this.vm.$refs[this.fRender.refName]}}],[{key:"create",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,i=new e(t,Sn(n)?{el:n}:n);i.create(Xn);return i.$parent=r,i.fCreateApi}},{key:"install",value:function(t){var n=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.create(t,n,this)};n.maker=e.maker,n.version="1.6.5",n.ui="iview",n.component=Qn,t.prototype.$formCreate=n,t.component(An,t.extend($n())),Xn=t}},{key:"init",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=new e(t,Sn(n)?{el:n}:n),i=(new(Xn.extend(jn(r)))).$mount();return{mount:function(e){return e&&Sn(e)&&fn(r.options,"el",e),r.options.el.appendChild(i.$el),r.fCreateApi},remove:function(){r.options.el.removeChild(i.$el)},$f:r.fCreateApi}}}]),e}();function tr(e){return function(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return new rr(e,t,n,r,i)}}function nr(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"type";return function(r,i,o){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=new rr(e,r,i,o,a);return _n(t)?t(u):u.props(n,t),u}}er.version="1.6.5",er.ui="iview",er.component=Qn;var rr=function(e){function t(e,n,r,i){var o,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return rt(this,t),(o=ft(this,ct(t).call(this))).rule=yn({event:{},validate:[],options:[],col:{},children:[],emit:[],template:null,emitPrefix:null},{type:e,title:n,field:r,value:i}),o.props({hidden:!1,visibility:!1}),bn(a)&&o.props(a),o}return st(t,qn),ot(t,[{key:"type",value:function(e){return this.props("type",e),this}},{key:"get",value:function(){return this._data}},{key:"getRule",value:function(){return yn(this.rule,this.get())}},{key:"setValue",value:function(e){return fn(this.rule,"value",e),this}}]),t}();["emitPrefix","className","defaultSlot"].forEach(function(e){rr.prototype[e]=function(t){return fn(this.rule,e,t),this}});["event","col"].forEach(function(e){rr.prototype[e]=function(t){return fn(this.rule,e,yn(this.rule[e],t)),this}});["validate","options","children","emit"].forEach(function(e){rr.prototype[e]=function(t){return Array.isArray(t)||(t=[t]),fn(this.rule,e,this.rule[e].concat(t)),this}});var ir=function(e){function t(){return rt(this,t),ft(this,ct(t).apply(this,arguments))}return st(t,Hn),ot(t,[{key:"parse",value:function(){return[]}}]),t}(),or=at({},"hidden",function(e,t){return tr("hidden")("",e,t)}),ar={handler:Dn,render:ir,name:"hidden",maker:or},ur=function(e){function t(){return rt(this,t),ft(this,ct(t).apply(this,arguments))}return st(t,Dn),ot(t,[{key:"init",value:function(){var e=this.rule.props;e.autosize&&e.autosize.minRows&&fn(e,"rows",e.autosize.minRows||2)}},{key:"toFormValue",value:function(e){return mn(e)}}]),t}(),sr=["password","url","email","text","textarea"].reduce(function(e,t){return e[t]=nr("input",t),e},{});sr.idate=nr("input","date");var cr={handler:ur,render:zn("input"),name:"input",maker:sr},lr={handler:function(e){function t(){return rt(this,t),ft(this,ct(t).apply(this,arguments))}return st(t,Dn),ot(t,[{key:"toFormValue",value:function(e){return this.rule.options.filter(function(t){return t.value===e}).reduce(function(e,t){return t.label},"")}},{key:"toValue",value:function(e){return this.rule.options.filter(function(t){return t.label===e}).reduce(function(e,t){return t.value},"")}}]),t}(),render:function(e){function t(){return rt(this,t),ft(this,ct(t).apply(this,arguments))}return st(t,Hn),ot(t,[{key:"parse",value:function(){var e=this,t=this.handler,n=t.unique,r=t.rule.options;return[this.vNode.radioGroup(this.inputProps().get(),function(){return r.map(function(t,r){var i=ut({},t);return delete i.value,e.vNode.radio({props:i,key:"ropt".concat(r).concat(n)})})})]}}]),t}(),name:"radio"},fr={handler:function(e){function t(){return rt(this,t),ft(this,ct(t).apply(this,arguments))}return st(t,Dn),ot(t,[{key:"init",value:function(){var e=this.rule.props;vn(e.disabled)&&fn(e,"disabled",!1)}},{key:"toFormValue",value:function(e){return e?Array.isArray(e)||(e=[e]):e=[],this.rule.options.filter(function(t){return-1!==e.indexOf(t.value)}).map(function(e){return e.label})}},{key:"toValue",value:function(e){var t=this.rule.options.filter(function(t){return-1!==e.indexOf(t.label)}).map(function(e){return e.value});return 1===this.rule.options.length?void 0===t[0]?"":t[0]:t}},{key:"watchFormValue",value:function(e){ht(ct(t.prototype),"watchFormValue",this).call(this,e),this.render.sync()}}]),t}(),render:function(e){function t(){return rt(this,t),ft(this,ct(t).apply(this,arguments))}return st(t,Hn),ot(t,[{key:"parse",value:function(){var e=this,t=this.handler,n=t.unique,r=t.rule.options,i=t.key;return[this.vNode.checkboxGroup(this.inputProps().key(i).get(),function(){return r.map(function(t,r){var i=ut({},t);return delete i.value,e.vNode.checkbox({props:i,key:"copt".concat(r).concat(n)})})})]}}]),t}(),name:"checkbox"},hr=function(e){function t(){return rt(this,t),ft(this,ct(t).apply(this,arguments))}return st(t,Hn),ot(t,[{key:"parse",value:function(){var e=this.handler.rule,t=vn(e.props.slot)?e.slot:e.props.slot;return bn(t)||(t={}),[this.vNode.switch(this.inputProps().scopedSlots({open:function(){return t.open},close:function(){return t.close}}).style({margin:"4.5px 0px"}).get())]}}]),t}(),pr={sliderRange:nr("switch",!0,"range")},dr={handler:Dn,render:hr,name:"switch",maker:pr},vr={handler:function(e){function t(){return rt(this,t),ft(this,ct(t).apply(this,arguments))}return st(t,Dn),ot(t,[{key:"toFormValue",value:function(e){var t=Array.isArray(e);return!0===this.rule.props.multiple?!0===t?e:[e]:!0===t?e[0]||"":e}},{key:"watchFormValue",value:function(e){ht(ct(t.prototype),"watchFormValue",this).call(this,e),this.render.sync()}}]),t}(),render:function(e){function t(){return rt(this,t),ft(this,ct(t).apply(this,arguments))}return st(t,Hn),ot(t,[{key:"parse",value:function(){var e=this,t=this.handler,n=t.unique,r=t.rule;return[this.vNode.select(this.inputProps().get(),function(){return r.options.map(function(t,i){return e.vNode.option({props:t,key:"sopt".concat(i).concat(n)},function(e,t,n){return[e&&_n(e)?e.call(n,t):e]}(t.slot,e.vm.$createElement,r))})})]}}]),t}(),name:"select",maker:{selectMultiple:nr("select",!0,"multiple"),selectOne:nr("select",!1,"multiple")}},mr=function(e){function t(){return rt(this,t),ft(this,ct(t).apply(this,arguments))}return st(t,Dn),ot(t,[{key:"init",value:function(){var e=this.rule.props;fn(e,"type",e.type?mn(e.type).toLowerCase():"date"),vn(e.startDate)&&fn(e,"startDate",Pn(e.startDate))}},{key:"toFormValue",value:function(e){var t,n=Array.isArray(e),r=this.rule.props;return t=-1!==["daterange","datetimerange"].indexOf(r.type)?n?e.map(function(e){return e?Pn(e):""}):["",""]:"date"===r.type&&!0===r.multiple?mn(e):(t=n?e[0]||"":e)?Pn(t):""}},{key:"toValue",value:function(){return this.el.publicStringValue}},{key:"mounted",value:function(){ht(ct(t.prototype),"mounted",this).call(this),this.rule.value=this.el.publicStringValue,this.vm._changeFormData(this.field,this.toFormValue(this.el.publicStringValue))}}]),t}(),yr=["date","dateRange","dateTime","dateTimeRange","year","month"].reduce(function(e,t){return e[t]=nr("datePicker",t.toLowerCase()),e},{}),gr={handler:mr,render:zn("datePicker",!0),name:"datePicker",maker:yr};function kr(e){return kn(e)?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,n={"M+":t.getMonth()+1,"d+":t.getDate(),"h+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds(),"q+":Math.floor((t.getMonth()+3)/3),S:t.getMilliseconds()};for(var r in/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length))),n)new RegExp("("+r+")").test(e)&&(e=e.replace(RegExp.$1,1==RegExp.$1.length?n[r]:("00"+n[r]).substr((""+n[r]).length)));return e}("hh:mm:ss",e):e}var br=function(e){function t(){return rt(this,t),ft(this,ct(t).apply(this,arguments))}return st(t,Dn),ot(t,[{key:"init",value:function(){var e=this.rule.props;e.type||fn(e,"type","time"),vn(e.confirm)&&fn(e,"confirm",!0)}},{key:"toFormValue",value:function(e){var t,n=Array.isArray(e);return"timerange"===this.rule.props.type?t=n?e.map(function(e){return e?kr(Pn(e)):""}):["",""]:(n&&(e=e[0]),t=e?kr(Pn(e)):""),t}},{key:"mounted",value:function(){ht(ct(t.prototype),"mounted",this).call(this),this.rule.value=this.el.publicStringValue,this.vm._changeFormData(this.field,this.toFormValue(this.el.publicStringValue))}}]),t}(),_r="timePicker",wr={time:nr(_r,"time"),timeRange:nr(_r,"timerange")},xr={handler:br,render:zn(_r,!0),name:_r,maker:wr},Or="[\t\n\v\f\r                 \u2028\u2029\ufeff]",Vr=RegExp("^"+Or+Or+"*"),Sr=RegExp(Or+Or+"*$"),Er=m?Object.defineProperties:function(e,t){w(e);for(var n,r=We(t),i=r.length,o=0;i>o;)O.f(e,n=r[o++],t[n]);return e},Ir=y.document,Nr=Ir&&Ir.documentElement,Pr=oe("IE_PROTO"),Fr=function(){},Cr=function(){var e,t=b("iframe"),n=_e.length;for(t.style.display="none",Nr.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),Cr=e.F;n--;)delete Cr.prototype[_e[n]];return Cr()},Ar=Object.create||function(e,t){var n;return null!==e?(Fr.prototype=w(e),n=new Fr,Fr.prototype=null,n[Pr]=e):n=Cr(),void 0===t?n:Er(n,t)};ae[Pr]=!0;var $r=xe.f,jr=ee.f,Dr=O.f,Rr=y.Number,Tr=Rr.prototype,Lr="Number"==i(Ar(Tr)),Mr="trim"in String.prototype,Br=function(e){var t,n,r,i,o,a,s,c,l,f,h=d(e,!1);if("string"==typeof h&&h.length>2)if(43===(t=(h=Mr?h.trim():(l=h,f=3,l=String(u(l)),1&f&&(l=l.replace(Vr,"")),2&f&&(l=l.replace(Sr,"")),l)).charCodeAt(0))||45===t){if(88===(n=h.charCodeAt(2))||120===n)return NaN}else if(48===t){switch(h.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+h}for(a=(o=h.slice(2)).length,s=0;s<a;s++)if((c=o.charCodeAt(s))<48||c>i)return NaN;return parseInt(o,r)}return+h};if($e("Number",!Rr(" 0o1")||!Rr("0b1")||Rr("+0x1"))){for(var qr,Ur=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof Ur&&(Lr?v(function(){Tr.valueOf.call(n)}):"Number"!=i(n))?bt(new Rr(Br(t)),n,Ur):Br(t)},Hr=m?$r(Rr):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),zr=0;Hr.length>zr;zr++)Z(Rr,qr=Hr[zr])&&!Z(Ur,qr)&&Dr(Ur,qr,jr(Rr,qr));Ur.prototype=Tr,Tr.constructor=Ur,ve(y,"Number",Ur)}De({target:"Number",stat:!0},{isNaN:function(e){return e!=e}});var Gr=function(e){function t(){return rt(this,t),ft(this,ct(t).apply(this,arguments))}return st(t,Dn),ot(t,[{key:"toFormValue",value:function(e){var t=parseFloat(e);return Number.isNaN(t)&&(t=0),t}}]),t}(),Wr={number:tr("inputNumber")},Jr={handler:Gr,render:zn("inputNumber"),name:"inputNumber",maker:Wr},Yr=function(e){function t(){return rt(this,t),ft(this,ct(t).apply(this,arguments))}return st(t,Dn),ot(t,[{key:"watchFormValue",value:function(e){ht(ct(t.prototype),"watchFormValue",this).call(this,e),this.render.sync()}}]),t}(),Xr={color:tr("colorPicker")},Kr={handler:Yr,render:zn("colorPicker",!0),name:"colorPicker",maker:Xr},Zr=M("species"),Qr=[].push,ei=Math.min,ti=!v(function(){return!RegExp(4294967295,"y")});function ni(e){return Array.isArray(e)?e:e?[e]:[]}Qt("split",2,function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=String(u(this)),i=void 0===n?4294967295:n>>>0;if(0===i)return[];if(void 0===e)return[r];if(!wt(e))return t.call(r,e,i);for(var o,a,s,c=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),f=0,h=new RegExp(e.source,l+"g");(o=Jt.call(h,r))&&!((a=h.lastIndex)>f&&(c.push(r.slice(f,o.index)),o.length>1&&o.index<r.length&&Qr.apply(c,o.slice(1)),s=o[0].length,f=a,c.length>=i));)h.lastIndex===o.index&&h.lastIndex++;return f===r.length?!s&&h.test("")||c.push(""):c.push(r.slice(f)),c.length>i?c.slice(0,i):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var i=u(this),o=null==t?void 0:t[e];return void 0!==o?o.call(t,i,n):r.call(String(i),t,n)},function(e,i){var o=n(r,e,this,i,r!==t);if(o.done)return o.value;var a=w(e),u=String(this),s=function(e,t){var n,r=w(e).constructor;return void 0===r||null==(n=w(r)[Zr])?t:Be(n)}(a,RegExp),c=a.unicode,l=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(ti?"y":"g"),f=new s(ti?a:"^(?:"+a.source+")",l),h=void 0===i?4294967295:i>>>0;if(0===h)return[];if(0===u.length)return null===Yt(f,u)?[u]:[];for(var d=0,v=0,m=[];v<u.length;){f.lastIndex=ti?v:0;var y,g=Yt(f,ti?u:u.slice(v));if(null===g||(y=ei(p(f.lastIndex+(ti?0:v)),u.length))===d)v=qt(u,v,c);else{if(m.push(u.slice(d,v)),m.length===h)return m;for(var k=1;k<=g.length-1;k++)if(m.push(g[k]),m.length===h)return m;v=d=y}}return m.push(u.slice(d)),m}]},!ti);var ri=function(e){function t(){return rt(this,t),ft(this,ct(t).apply(this,arguments))}return st(t,Dn),ot(t,[{key:"init",value:function(){var e=this.rule.props;fn(e,"defaultFileList",[]),vn(e.showUploadList)&&fn(e,"showUploadList",!1),vn(e.uploadType)&&fn(e,"uploadType","file"),void 0===e.maxLength&&fn(e,"maxLength",0),void 0===e.action&&fn(e,"action",""),"file"===e.uploadType&&vn(e.handleIcon)&&fn(e,"handleIcon",!1),e.modalTitle||fn(e,"modalTitle","预览"),fn(this.rule,"value",ni(this.rule.value)),this.parseValue=[]}},{key:"toFormValue",value:function(e){var t=this,n=ni(e);return this.parseValue.splice(0,this.parseValue.length),n.forEach(function(e){return t.push(e)}),fn(this.rule.props,"defaultFileList",this.parseValue),this.parseValue}},{key:"mounted",value:function(){ht(ct(t.prototype),"mounted",this).call(this),fn(this.rule.props,"defaultFileList",this.parseValue),this.changeParseValue(this.el.fileList||[])}},{key:"push",value:function(e){var t;this.parseValue.push({url:e,name:(t=e,mn(t).split("/").pop())})}},{key:"toValue",value:function(e){if(vn(e))return[];var t=e.map(function(e){return e.url}).filter(function(e){return void 0!==e});return 1===this.rule.props.maxLength?t[0]||"":t}},{key:"changeParseValue",value:function(e){this.parseValue=e,this.vm._changeFormData(this.field,e)}},{key:"watchValue",value:function(e){var n=!0;this.rule.props.defaultFileList.forEach(function(e){n=n&&(void 0===e.percentage||"finished"===e.status)}),n&&ht(ct(t.prototype),"watchValue",this).call(this,e)}}]),t}(),ii={_v:2,resetBtnType:"ghost",resetBtnIcon:"refresh",submitBtnIcon:"ios-upload",fileIcon:"document-text",fileUpIcon:"folder",imgUpIcon:"image"},oi={_v:3,resetBtnType:"default",resetBtnIcon:"md-refresh",submitBtnIcon:"ios-share",fileIcon:"md-document",fileUpIcon:"ios-folder-open",imgUpIcon:"md-images"},ai=void 0===n?ii:n.version&&3==n.version.split(".")[0]?oi:ii;var ui=new Bn({}),si=function(e,t){return{name:"fc-modal",data:function(){return ut({value:!0},e)},render:function(){return ui.setVm(this),ui.modal({props:this.$data,on:{"on-visible-change":this.remove}},[t(ui,this)])},methods:{onClose:function(){this.value=!1},remove:function(){this.$el.parentNode.removeChild(this.$el)}}}};function ci(e,t){var n=(new(Xn.extend(si(e,t)))).$mount();window.document.body.appendChild(n.$el)}function li(e,t){ci({title:t,footerHide:!0},function(t){return t.make("img",{style:{width:"100%"},attrs:{src:e}})})}var fi=function(e){function t(){return rt(this,t),ft(this,ct(t).apply(this,arguments))}return st(t,Hn),ot(t,[{key:"init",value:function(){var e=this,t=this.handler;this.uploadOptions=yn(ut({},this.options.upload),this.handler.rule.props),this.issetIcon=this.uploadOptions.allowRemove||this.uploadOptions.handleIcon,this.propsData=this.vData.props(this.uploadOptions).props("onSuccess",function(){return e.onSuccess.apply(e,arguments)}).props("onRemove",function(){return e.onRemove.apply(e,arguments)}).props("beforeUpload",function(){return e.beforeUpload.apply(e,arguments)}).ref(t.refName).key("fip".concat(t.unique)).get()}},{key:"onRemove",value:function(){var e;this.handler.changeParseValue(this.handler.el.fileList),this.uploadOptions.onRemove&&(e=this.uploadOptions).onRemove.apply(e,arguments),this.sync()}},{key:"beforeUpload",value:function(){var e;this.handler.changeParseValue(this.handler.el.fileList),this.uploadOptions.beforeUpload&&(e=this.uploadOptions).beforeUpload.apply(e,arguments)}},{key:"onSuccess",value:function(e,t,n){var r=this.uploadOptions.onSuccess.call(null,e,t,n);if(vn(r)){var i=n.indexOf(t);-1!==i&&n.splice(i,1)}else t.url=r,t.showProgress=!1;this.handler.changeParseValue(n)}},{key:"onHandle",value:function(e){var t=this.uploadOptions.onHandle;if(t)return t(e);li(e,this.uploadOptions.modalTitle)}},{key:"parse",value:function(){var e=this,t=this.handler,n=t.unique,r=t.field;this.init(),!0===this.uploadOptions.handleIcon&&(this.uploadOptions.handleIcon="ios-eye-outline");var i=this.vm._formData(r),o=this.uploadOptions.showUploadList?[]:pt(i.map(function(t,r){return t.showProgress?e.makeProgress(t,"uppg".concat(r).concat(n)):void 0===t.status||"finished"===t.status?e.makeUploadView(t.url,"upview".concat(r).concat(n),r):void 0})),a=!this.uploadOptions.maxLength||this.uploadOptions.maxLength>i.length;return o.push(this.makeUploadBtn(n,a)),[this.vNode.make("div",{key:"div4".concat(n),class:{"fc-upload":!0,"fc-hide-btn":!a}},o)]}},{key:"cacheParse",value:function(e){return this.cache=null,ht(ct(t.prototype),"cacheParse",this).call(this,e)}},{key:"makeUploadView",value:function(e,t,n){var r=this;return this.vNode.make("div",{key:"div1".concat(t),class:{"fc-files":!0}},function(){var i=[];return"image"===r.handler.rule.props.uploadType?i.push(r.vNode.make("img",{key:"img".concat(t),attrs:{src:e}})):i.push(r.vNode.icon({key:"file".concat(t),props:{type:ai.fileIcon,size:40}})),r.issetIcon&&i.push(r.makeIcons(e,t,n)),i})}},{key:"makeIcons",value:function(e,t,n){var r=this;return this.vNode.make("div",{key:"div2".concat(t),class:{"fc-upload-cover":!0}},function(){var i=[];return r.uploadOptions.handleIcon&&i.push(r.makeHandleIcon(e,t,n)),!0===r.uploadOptions.allowRemove&&i.push(r.makeRemoveIcon(e,t,n)),i})}},{key:"makeProgress",value:function(e,t){return this.vNode.make("div",{key:"div3".concat(t),class:{"fc-files":!0}},[this.vNode.progress({key:"upp".concat(t),props:{percent:e.percentage,hideInfo:!0},style:{width:"90%"}})])}},{key:"makeUploadBtn",value:function(e,t){return this.vNode.upload(this.propsData,!0===t?[this.vNode.make("div",{key:"div5".concat(e),class:{"fc-upload-btn":!0}},[this.vNode.icon({key:"upi".concat(e),props:{type:"file"===this.handler.rule.props.uploadType?"ios-cloud-upload-outline":ai.imgUpIcon,size:20}})])]:[])}},{key:"makeRemoveIcon",value:function(e,t,n){var r=this;return this.vNode.icon({key:"upri".concat(t).concat(n),props:{type:"ios-trash-outline"},nativeOn:{click:function(){if(!0!==r.uploadOptions.disabled){var e=r.handler.el.fileList,t=e[n];e.splice(n,1),r.onRemove(t,e)}}}})}},{key:"makeHandleIcon",value:function(e,t,n){var r=this;return this.vNode.icon({key:"uphi".concat(t).concat(n),props:{type:mn(this.uploadOptions.handleIcon)},nativeOn:{click:function(){!0!==r.uploadOptions.disabled&&r.onHandle(e)}}})}}]),t}(),hi={image:["image",0],file:["file",0],uploadFileOne:["file",1],uploadImageOne:["image",1]},pi=Object.keys(hi).reduce(function(e,t){return e[t]=nr("upload",function(e){return e.props({uploadType:hi[t][0],maxLength:hi[t][1]})}),e},{});pi.uploadImage=pi.image,pi.uploadFile=pi.file;var di={handler:ri,render:fi,name:"upload",maker:pi},vi={handler:function(e){function t(){return rt(this,t),ft(this,ct(t).apply(this,arguments))}return st(t,Dn),ot(t,[{key:"init",value:function(){var e=this.rule;e.props.data||fn(e.props,"data",[]),e.props.options||fn(e.props,"options",[]),Array.isArray(this.rule.value)||fn(e,"value",[])}},{key:"toFormValue",value:function(e){return Array.isArray(e)?e:[]}},{key:"mounted",value:function(){ht(ct(t.prototype),"mounted",this).call(this),this.vm._changeFormData(this.field,this.toFormValue(this.el.value))}}]),t}(),render:zn("cascader"),name:"cascader"},mi={handler:function(e){function t(){return rt(this,t),ft(this,ct(t).apply(this,arguments))}return st(t,Dn),ot(t,[{key:"toFormValue",value:function(e){var t=parseFloat(e);return Number.isNaN(t)&&(t=0),t}}]),t}(),render:zn("rate"),name:"rate"},yi=function(e){function t(){return rt(this,t),ft(this,ct(t).apply(this,arguments))}return st(t,Dn),ot(t,[{key:"init",value:function(){var e=this.rule;fn(e.props,"min",void 0===e.props.min?0:parseFloat(e.props.min)||0)}},{key:"toFormValue",value:function(e){var t=this.rule,n=Array.isArray(e),r=t.props,i=r.min;return!0===r.range?n?e:[i,parseFloat(e)||i]:n?parseFloat(e[0])||i:parseFloat(e)}}]),t}(),gi={sliderRange:nr("slider",!0,"range")},ki={handler:yi,render:zn("slider"),name:"slider",maker:gi};var bi=function(e){function t(){return rt(this,t),ft(this,ct(t).apply(this,arguments))}return st(t,Dn),ot(t,[{key:"init",value:function(){var e,t;e=this.rule,(t=e.props).type||fn(t,"type","input"),t.icon||fn(t,"icon",ai.fileUpIcon),t.width||fn(t,"width","500px"),t.height||fn(t,"height","370px"),vn(t.spin)&&fn(t,"spin",!0),t.title||fn(t,"title","请选择"+e.title),t.maxLength||fn(t,"maxLength",0),t.okBtnText||fn(t,"okBtnText","确定"),t.closeBtnText||fn(t,"closeBtnText","关闭"),t.modalTitle||fn(t,"modalTitle","预览"),t.loadingText||fn(t,"loadingText","加载中..."),t.handleIcon,fn(t,"handleIcon",("file"!==t.type||void 0!==t.handleIcon)&&(!0===t.handleIcon||void 0===t.handleIcon?"ios-eye-outline":t.handleIcon)),void 0===t.allowRemove&&fn(t,"allowRemove",!0)}},{key:"toFormValue",value:function(e){var t,n=e,r=Array.isArray(n);return t=""===n?[]:r?n:[n],this.parseValue=t,t}},{key:"toValue",value:function(e){return 1!=this.rule.props.maxLength?e:void 0===e[0]?"":e[0]}},{key:"watchValue",value:function(e){ht(ct(t.prototype),"watchValue",this).call(this,e),this.render.onChange(e),this.render.sync()}},{key:"watchFormValue",value:function(e){ht(ct(t.prototype),"watchFormValue",this).call(this,e),this.parseValue=e,this.render.sync()}}]),t}(),_i={onOpen:"on-open",onChange:"on-change",onCancel:"on-cancel",onOk:"on-ok"},wi=function(e){function t(){return rt(this,t),ft(this,ct(t).apply(this,arguments))}return st(t,Hn),ot(t,[{key:"init",value:function(){this._props=this.handler.rule.props,this.issetIcon=!1!==this._props.handleIcon||!0===this._props.allowRemove}},{key:"parse",value:function(){this.init();var e=this._props.type;return"image"===e?this.makeGroup(this.makeImage()):"file"===e?this.makeGroup(this.makeFile()):this.makeInput()}},{key:"makeInput",value:function(e){var t=this,n=this.handler.unique,r=this.inputProps().props({type:"text",value:this.handler.parseValue.toString(),icon:this._props.icon,readonly:!0,clearable:!0}).on("on-click",function(){t.showModel()}).on("input",function(){}).key("ifit"+n).class("__fc_h",!0===e).get();return[this.vNode.input(r)]}},{key:"makeGroup",value:function(e){var t=this.handler.unique,n=this.handler.field;return[this.vNode.make("div",{key:"ifgp1".concat(t),class:{"fc-upload fc-frame":!0},ref:this.handler.refName,props:{value:this.vm._formData(n)}},e),this.makeInput(!0)]}},{key:"makeImage",value:function(){var e=this,t=this.handler.unique,n=this.handler.parseValue.map(function(n,r){return e.vNode.make("div",{key:"ifid1".concat(t).concat(r),class:{"fc-files":!0}},[e.vNode.make("img",{key:"ifim".concat(t).concat(r),attrs:{src:n}}),e.makeIcons(n,t,r)])});return n.push(this.makeBtn()),n}},{key:"makeFile",value:function(){var e=this,t=this.handler.unique,n=this.handler.parseValue.map(function(n,r){return e.vNode.make("div",{key:"iffd2".concat(t).concat(r),class:{"fc-files":!0}},[e.vNode.icon({key:"iff".concat(t).concat(r),props:{type:ai.fileIcon,size:40}}),e.makeIcons(n,t,r)])});return n.push(this.makeBtn()),n}},{key:"makeBtn",value:function(){var e=this,t=this.handler.rule.props;if(!(t.maxLength>0&&this.handler.parseValue.length>=t.maxLength)){var n=this.handler.unique;return this.vNode.make("div",{key:"ifbd3".concat(n),class:{"fc-upload-btn":!0},on:{click:function(){!0!==t.disabled&&e.showModel()}}},[this.vNode.icon({key:"ifbi3".concat(n),props:{type:this._props.icon,size:20}})])}}},{key:"makeSpin",value:function(e){if(!0===this._props.spin){var t=this.handler.unique;return e.make("Spin",{props:{fix:!0},key:"ifsp"+t,ref:"spin",class:{"fc-spin":!0}},[e.icon({props:{type:"load-c",size:18},class:{"fc-spin-icon-load":!0},key:"ifspi"+t}),e.make("div",{domProps:{innerHTML:mn(this._props.loadingText)},key:"ifspd"+t})])}}},{key:"makeIcons",value:function(e,t,n){var r=this;if(!0===this.issetIcon)return this.vNode.make("div",{key:"ifis".concat(t).concat(n),class:{"fc-upload-cover":!0}},function(){var i=[];return!1!==r._props.handleIcon&&i.push(r.makeHandleIcon(e,t,n)),!0===r._props.allowRemove&&i.push(r.makeRemoveIcon(e,t,n)),i})}},{key:"makeRemoveIcon",value:function(e,t,n){var r=this;return this.vNode.icon({key:"ifri".concat(t).concat(n),props:{type:"ios-trash-outline"},nativeOn:{click:function(){!0!==r._props.disabled&&!1!==r.onRemove(e)&&(r.handler.parseValue.splice(n,1),r.sync())}}})}},{key:"makeHandleIcon",value:function(e,t,n){var r=this,i=this._props;return this.vNode.icon({key:"ifhi".concat(t).concat(n),props:{type:mn(i.handleIcon)},nativeOn:{click:function(){!0!==i.disabled&&r.onHandle(e)}}})}},{key:"onRemove",value:function(e){if(!0!==this._props.disabled){var t=this.handler.rule.event["on-remove"];return t?t(e,this.handler.getValue()):void 0}}},{key:"onHandle",value:function(e){if(!0!==this._props.disabled){var t=this.handler.rule.event["on-handle"];if(t)return t(e);li(e,this._props.modalTitle)}}},{key:"valid",value:function(e){if(e!==this.handler.field)throw new Error("无效的表单字段\ngithub:https://github.com/xaboy/form-create\ndocument:http://www.form-create.com")}},{key:"showModel",value:function(){var e=this,t=!1!==this.onOpen(),n=this._props,r=n.width,i=n.height,o=n.src,a=n.title,u=n.okBtnText,s=n.closeBtnText;t&&ci({width:r,title:a},function(t,n){return e.handler.$modal=n,[e.makeSpin(t),t.make("iframe",{attrs:{src:o},style:{height:i,border:"0 none",width:"100%"},on:{load:function(t){var r=n.$refs.spin;r&&r.$el.parentNode.removeChild(r.$el);try{if(!0===e.options.iframeHelper){var i=t.path[0].contentWindow;i["".concat(e.handler.field,"_change")]=function(t){e.handler.setValue(t)},i.form_create_helper={close:function(t){e.valid(t),n.onClose()},set:function(t,n){e.valid(t),i["".concat(t,"_change")](n)},get:function(t){return e.valid(t),e.handler.rule.value}}}}catch(t){}}}}),t.make("div",{slot:"footer"},[t.button({on:{click:function(){n.onClose(),e.onCancel()}}},[mn(s)]),t.button({props:{type:"primary"},on:{click:function(){!1!==e.onOk()&&n.onClose()}}},[mn(u)])])]})}}]),t}();Object.keys(_i).forEach(function(e){wi.prototype[e]=function(){var t=this.handler.rule.event[_i[e]];if(t)return t(this.handler.getValue())}});var xi={frameInputs:["input",0],frameFiles:["file",0],frameImages:["image",0],frameInputOne:["input",1],frameFileOne:["file",1],frameImageOne:["image",1]},Oi=Object.keys(xi).reduce(function(e,t){return e[t]=nr("frame",function(e){return e.props({type:xi[t][0],maxLength:xi[t][1]})}),e},{});Oi.frameInput=Oi.frameInputs,Oi.frameFile=Oi.frameFiles,Oi.frameImage=Oi.frameImages;var Vi={handler:bi,render:wi,name:"frame",maker:Oi};var Si=function(e){function t(){return rt(this,t),ft(this,ct(t).apply(this,arguments))}return st(t,Dn),ot(t,[{key:"init",value:function(){var e,t;e=this.rule,void 0===(t=e.props).data&&fn(t,"data",[]),void 0===t.type&&fn(t,"type","checked"),void 0===t.multiple&&fn(t,"multiple",!1),this._data={},this.data(this.rule.props.data),fn(this.rule,"value",this._parseValue())}},{key:"_parseValue",value:function(){var e=this;this.rule.value.forEach("selected"===this.rule.props.type?function(t){return e.selected(t)}:function(t){return e.checked(t)});var t=[];return"selected"===this.rule.props.type?Object.keys(this._data).forEach(function(n){var r=e._data[n];!0===r.selected&&t.push(r.id)}):Object.keys(this._data).forEach(function(n){var r=e._data[n];!0===r.checked&&t.push(r.id)}),t}},{key:"toFormValue",value:function(e){return e=Vn(e),this.choose(e),this.parseValue=e,e}},{key:"choose",value:function(e){var t=this.rule,n=this._data;"selected"===t.props.type?Object.keys(n).forEach(function(t){fn(n[t],"selected",-1!==e.indexOf(n[t].id))}):Object.keys(n).forEach(function(t){fn(n[t],"checked",-1!==e.indexOf(n[t].id))})}},{key:"checked",value:function(e){void 0!==this._data[e]&&fn(this._data[e],"checked",!0)}},{key:"selected",value:function(e){void 0!==this._data[e]&&fn(this._data[e],"selected",!0)}},{key:"toValue",value:function(e){var t,n=e;return(t=this.rule).props.multiple||"selected"!==t.props.type?n:n[0]||""}},{key:"watchFormValue",value:function(e){this.choose(e)}},{key:"selectedValue",value:function(e){var t=[];return e.forEach(function(e){!0===e.selected&&t.push(e.id)}),t}},{key:"checkedValue",value:function(e){var t=[];return e.forEach(function(e){!0===e.checked&&t.push(e.id)}),t}},{key:"_toValue",value:function(){return"selected"===this.rule.props.type?this.selectedValue(this.el.getSelectedNodes()):this.checkedValue(this.el.getCheckedNodes())}},{key:"data",value:function(e){var t=this;e.forEach(function(e){t._data[e.id]=e,void 0!==e.children&&Array.isArray(e.children)&&t.data(e.children)})}}]),t}(),Ei="on-select-change",Ii="on-check-change",Ni=function(e){function t(){return rt(this,t),ft(this,ct(t).apply(this,arguments))}return st(t,Hn),ot(t,[{key:"parse",value:function(){var e,t=this,n=this.handler,r=n.rule,i=n.refName,o=n.field,a=n.unique,u=this.vData.on(r.event).on((e={},at(e,Ei,function(){var e;t.vm._changeFormData(o,t.handler._toValue()),r.event[Ei]&&(e=r.event)[Ei].apply(e,arguments)}),at(e,Ii,function(){var e;t.vm._changeFormData(o,t.handler._toValue()),r.event[Ii]&&(e=r.event)[Ii].apply(e,arguments)}),e)).props(r.props).ref(i).key("fip".concat(a)).get(),s=this.inputProps().props({type:"text",value:""+this.handler.rule.value,disable:!0,readonly:!0}).key("fipit"+a).class("__fc_h").ref("".concat(i,"it")).on("input",function(){}).get();return[this.vNode.tree(u),this.vNode.input(s)]}}]),t}(),Pi={treeSelected:"selected",treeChecked:"checked"},Fi={handler:Si,render:Ni,name:"tree",maker:Object.keys(Pi).reduce(function(e,t){return e[t]=nr("tree",Pi[t]),e},{})},Ci=function(e){function t(){return rt(this,t),ft(this,ct(t).apply(this,arguments))}return st(t,Dn),ot(t,[{key:"init",value:function(){var e=this.rule;Array.isArray(e.data)||fn(e,"data",[])}},{key:"watchFormValue",value:function(e){ht(ct(t.prototype),"watchFormValue",this).call(this,e),this.render.sync()}}]),t}(),Ai="autoComplete",$i={auto:tr(Ai)},ji={handler:Ci,render:zn(Ai,!0),name:Ai,maker:$i},Di=function(){function e(t){rt(this,e);var n=t.id,r=t.vm,i=t.fieldList,o=t.handlers;this.vm=r,this.handlers=o,this.renderSort=i,this._fc=t,this.vNode=new Bn(r),this.vData=new qn,this.unique=n,this.refName="cForm".concat(n),this.cacheUnique=0}return ot(e,[{key:"getRender",value:function(e){return this.handlers[e].render}},{key:"render",value:function(e){var t=this;if(e.isShow){this.vNode.setVm(e),this.cacheUnique!==e.unique&&(this.renderSort.forEach(function(e){t.getRender(e).clearCache()}),this.cacheUnique=e.unique),this.propsData=this.vData.props(this._fc.options.form).props({model:this._fc.formData,rules:this._fc.validate,key:"form"+this.unique}).ref(this.refName).nativeOn({submit:Fn}).class("form-create",!0).key(this.unique).get();var n=this.unique,r=this.renderSort.map(function(e){var n=t.getRender(e);if("hidden"!==n.handler.type)return t.makeComponent(n)}).filter(function(e){return void 0!==e});return r.length>0&&r.push(this.makeFormBtn(n)),this.vNode.form(this.propsData,r.length>0?[this.vNode.row(yn({props:this._fc.options.row||{}},{key:"row"+n}),r)]:[])}}},{key:"makeComponent",value:function(e){return this.makeFormItem(e.handler,e.cacheParse(this),"fItem".concat(e.handler.key).concat(this.unique))}},{key:"makeFormItem",value:function(e,t,n){var r=e.type,i=e.rule,o=e.unique,a=e.field,u=e.refName,s=Yn(r)||i.col.labelWidth||i.title?i.col.labelWidth:1,c=i.className,l=this.vData.props({prop:a,label:i.title,labelFor:o,rules:i.validate,labelWidth:s,required:i.props.required}).key(n).ref("fItem"+u).class(c).get(),f=this.vNode.formItem(l,t);return!0===this.propsData.props.inline?[f]:this.makeCol(i,n,[f])}},{key:"makeCol",value:function(e,t,n){return this.vNode.col({props:e.col,class:{__fc_h:!0===e.props.hidden,__fc_v:!0===e.props.visibility},key:"".concat(t,"col1")},n)}},{key:"makeFormBtn",value:function(e){var t=[],n=!1!==this.vm.buttonProps&&!1!==this.vm.buttonProps.show,r=!1!==this.vm.resetProps&&!1!==this.vm.resetProps.show;return n&&t.push(this.makeSubmitBtn(e,r?19:24)),r&&t.push(this.makeResetBtn(e,4)),this.vNode.col({props:{span:24},key:"".concat(this.unique,"col2")},t)}},{key:"makeResetBtn",value:function(e,t){var n=this,r=this._fc.options.resetBtn,i=vn(this._fc.options.resetBtn.col)?{span:t,push:1}:r.col;return this.vNode.col({props:i,key:"".concat(this.unique,"col3")},[this.vNode.button({key:"frsbtn".concat(e),props:this.vm.resetProps,on:{click:function(){var e=n._fc.fCreateApi;_n(r.click)?r.click(e):e.resetFields()}}},[this.vm.resetProps.innerText])])}},{key:"makeSubmitBtn",value:function(e,t){var n=this,r=this._fc.options.submitBtn,i=vn(this._fc.options.submitBtn.col)?{span:t}:r.col;return this.vNode.col({props:i,key:"".concat(this.unique,"col4")},[this.vNode.button({key:"fbtn".concat(e),props:this.vm.buttonProps,on:{click:function(){var e=n._fc.fCreateApi;_n(r.click)?r.click(e):e.submit()}}},[this.vm.buttonProps.innerText])])}}]),e}(),Ri=O.f,Ti=Function.prototype,Li=Ti.toString,Mi=/^\s*function ([^ (]*)/;function Bi(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(wn(e)&&(e=JSON.parse(e)),e instanceof rr)return t?e:e.getRule();if(bn(e)){var n=function(e){var t=new rr;return Object.keys(e).forEach(function(n){-1===Object.keys(t._data).indexOf(n)?t.rule[n]=e[n]:t._data[n]=e[n]}),t}(e);return t?n:n.getRule()}if(Array.isArray(e)){var r=e.map(function(e){return Bi(e,t)});return Object.defineProperty(r,"find",{value:qi,enumerable:!1,configurable:!1}),r}return e}function qi(e){var t=[];for(var n in this){var r=this[n]instanceof rr?this[n].rule:this[n];if(r.field===e)return this[n];pn(r.children)&&(t=t.concat(r.children))}if(t.length>0)return qi.call(t,e)}!m||"name"in Ti||Ri(Ti,"name",{configurable:!0,get:function(){try{return Li.call(this).match(Mi)[1]}catch(e){return""}}});var Ui,Hi={hidden:ar,input:cr,radio:lr,checkbox:fr,switch:dr,select:vr,datepicker:gr,timepicker:xr,inputnumber:Jr,colorpicker:Kr,upload:di,cascader:vi,rate:mi,slider:ki,frame:Vi,tree:Fi,autocomplete:ji},zi={modal:"Modal",progress:"i-progress",button:"i-button",icon:"Icon",slider:"Slider",rate:"Rate",upload:"Upload",cascader:"Cascader",colorPicker:"Color-Picker",timePicker:"Time-Picker",datePicker:"Date-Picker",switch:"i-switch",option:"i-option",select:"i-select",checkbox:"Checkbox",checkboxGroup:"Checkbox-Group",radio:"Radio",radioGroup:"Radio-Group",inputNumber:"Input-Number",input:"i-input",formItem:"Form-Item",form:"i-form",col:"i-col",row:"row",tree:"Tree",autoComplete:"AutoComplete"};Wn=Ui={componentList:Hi,formRender:Di,style:".form-create{padding:25px;} .fc-upload-btn,.fc-files{display: inline-block;width: 58px;height: 58px;text-align: center;line-height: 58px;border: 1px solid #c0ccda;border-radius: 4px;overflow: hidden;background: #fff;position: relative;box-shadow: 2px 2px 5px rgba(0,0,0,.1);margin-right: 4px;box-sizing: border-box;}.__fc_h{display:none;}.__fc_v{visibility:hidden;} .fc-files>.ivu-icon{vertical-align: middle;}.fc-files img{width:100%;height:100%;display:inline-block;vertical-align: top;}.fc-upload .ivu-upload{display: inline-block;}.fc-upload-btn{border: 1px dashed #c0ccda;cursor: pointer;}.fc-upload-btn>ivu-icon{vertical-align:sub;}.fc-upload .fc-upload-cover{opacity: 0; position: absolute; top: 0; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,.6); transition: opacity .3s;}.fc-upload .fc-upload-cover i{ color: #fff; font-size: 20px; cursor: pointer; margin: 0 2px; }.fc-files:hover .fc-upload-cover{opacity: 1; }.fc-hide-btn .ivu-upload .ivu-upload{display:none;}.fc-upload .ivu-upload-list{margin-top: 0;}.fc-spin-icon-load{animation: ani-fc-spin 1s linear infinite;} @-webkit-keyframes ani-fc-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}50%{-webkit-transform:rotate(180deg);transform:rotate(180deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes ani-fc-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}50%{-webkit-transform:rotate(180deg);transform:rotate(180deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}",getGlobalApi:function(e){var t=e.vm;function n(n){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return n?Array.isArray(n)||(n=[n]):n=r?Object.keys(e.handlers):t._formField(),n}return{formData:function(){var n=this,r=e.handlers;return Object.keys(r).reduce(function(e,i){var o=r[i];return!0===o.noValue?o.$emit("input",function(t){e[i]=t},n):e[i]=En({},{value:t._value(i)}).value,e},{})},getValue:function(n){n=mn(n);var r=e.handlers[n];if(!vn(r)){var i=void 0;return!0===r.noValue?r.$emit("input",function(e){i=e},this):i=En({},{value:t._value(n)}).value,i}},setValue:function(e,t){var n=this,r=e;bn(e)||(r=at({},e,t)),Object.keys(r).forEach(function(e){n.changeValue(e,r[e])})},changeValue:function(n,r){var i=this;n=mn(n);var o=e.handlers[n];void 0!==o&&(_n(r)?r(t._trueData(n),function(e){i.changeField(n,e)}):!0===o.noValue?o.$emit("set-value",r,this):o.setValue(r))},changeField:function(e,t){this.setValue(e,t)},removeField:function(n){var r=e.handlers[n];if(r){var i=r.root.map(function(e){return e.__field__}).indexOf(mn(n));-1!==i&&(r.root.splice(i,1),t._refresh())}},validate:function(t,n){e.getFormRef().validate(function(e){!0===e?t&&t():n&&n()})},validateField:function(n,r){t.cptData[n]&&e.getFormRef().validateField(n,r)},resetFields:function(t){var r=this,i=e.handlers;n(t,!0).forEach(function(e){var t=i[e];t&&(t.noValue?t.$emit("reset-field",r):t.reset())}),this.refresh()},destroy:function(){t.$el.parentNode.removeChild(t.$el),t.$destroy()},fields:function(){return t._formField()},append:function(t,n){var r=e.fieldList,i=r.indexOf(mn(n));if(t.field&&-1!==r.indexOf(mn(t.field)))return console.error("".concat(t.field," 字段已存在")+"\ngithub:https://github.com/xaboy/form-create\ndocument:http://www.form-create.com");if(vn(n))i=r.length;else if(-1===i)return;e.rules.splice(i+1,0,t)},prepend:function(t,n){var r=e.fieldList,i=r.indexOf(mn(n));if(t.field&&-1!==r.indexOf(mn(t.field)))return console.error("".concat(t.field," 字段已存在")+"\ngithub:https://github.com/xaboy/form-create\ndocument:http://www.form-create.com");if(vn(n))i=0;else{if(-1===i)return;i--}e.rules.splice(i+1,0,t)},submit:function(t,n){var r=this;this.validate(function(){var n=r.formData();_n(t)?t(n,r):e.options.onSubmit&&e.options.onSubmit(n)},function(){return n&&n()})},hidden:function(r){var i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];n(r).forEach(function(n){var r=e.handlers[n];e.handlers[n]&&(t.$set(t._trueData(n).props,"hidden",!!i),r.render.sync())})},visibility:function(r){var i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];n(r).forEach(function(n){var r=e.handlers[n];r&&(t.$set(t._trueData(n).props,"visibility",!!i),r.render.sync())})},disabled:function(r){var i=this,o=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];o=!!o,n(r,!0).forEach(function(n){var r=e.handlers[n];r&&(r.noValue?r.$emit("disabled",o,i):t.$set(t._trueData(n).props,"disabled",o),r.render.sync())})},clearValidateState:function(t){n(t).forEach(function(t){var n=e.handlers[t];n&&n.clearMsg()})},model:function(){return ut({},t.trueData)},component:function(){return ut({},t.components)},bind:function(e){var r={},i={};return n(e).forEach(function(e){var n=t._trueData(e);if(!n)return console.error("".concat(e," 字段不存在")+"\ngithub:https://github.com/xaboy/form-create\ndocument:http://www.form-create.com");i[e]={get:function(){return n.value},set:function(e){t.$set(n,"value",e)},enumerable:!0,configurable:!0}}),Object.defineProperties(r,i),r},submitStatus:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t._buttonProps(e)},resetStatus:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t._resetProps(e)},btn:{loading:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];t._buttonProps({loading:e})},finish:function(){this.loading(!1)},disabled:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];t._buttonProps({disabled:e})},show:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];t._buttonProps({show:e})}},resetBtn:{loading:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];t._resetProps({loading:e})},finish:function(){this.loading(!1)},disabled:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];t._resetProps({disabled:e})},show:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];t._resetProps({show:e})}},closeModal:function(t){var n=e.handlers[t];n&&n.$modal&&(n.$modal.onClose(),n.$modal=null)},set:function(e,n,r){t.$set(e,n,r)},reload:function(t){e.reload(t)},options:function(n){En(e.options,n),t._sync()},onSuccess:function(e){this.onSubmit(e)},onSubmit:function(e){this.options({onSubmit:e})},sync:function(t,n){e.handlers[t]&&e.handlers[t].render.sync(n)},refresh:function(){t._refresh()},show:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];t.isShow=!!e}}},getConfig:function(){return{form:{inline:!1,labelPosition:"right",labelWidth:125,showMessage:!0,autocomplete:"off",size:void 0},row:{gutter:0,type:void 0,align:void 0,justify:void 0,className:void 0},upload:{beforeUpload:function(){},onProgress:function(e,t,n){},onSuccess:function(e,t,n){},onError:function(e,t,n){},onPreview:function(e){},onRemove:function(e,t){},onFormatError:function(e,t){},onExceededSize:function(e,t){},handleIcon:"ios-eye-outline",allowRemove:!0},submitBtn:{type:"primary",size:"large",shape:void 0,long:!0,htmlType:"button",disabled:!1,icon:ai.submitBtnIcon,innerText:"提交",loading:!1,show:!0,col:void 0,click:void 0},resetBtn:{type:ai.resetBtnType,size:"large",shape:void 0,long:!0,htmlType:"button",disabled:!1,icon:ai.resetBtnIcon,innerText:"重置",loading:!1,show:!1,col:void 0,click:void 0},iframeHelper:!1}},install:function(e){e.maker=function(e){var t={};Object.keys(e).forEach(function(n){var r=e[n],i=vn(r.maker);(i||void 0===r.maker[r.name])&&(t[r.name]=tr(r.name)),i||yn(t,r.maker)});var n=tr("");return yn(t,{create:function(e,t,r){var i=n("",t);return i.rule.type=e,i.rule.title=r,i},createTmp:function(e,t,r,i){var o=n("",r);return o.rule.type="template",o.rule.template=e,o.rule.title=i,o.rule.vm=t,o}}),t.template=t.createTmp,t.parse=Bi,t}(Hi),Bn.use(zi)}},Ui.install(er),"undefined"!=typeof window&&(window.formCreate=er,window.Vue&&function(e){!0!==e._installedFormCreate&&(e._installedFormCreate=!0,e.use(er))}(Vue));var Gi=er.maker;e.maker=Gi,e.default=er,Object.defineProperty(e,"__esModule",{value:!0})});
8//# sourceMappingURL=form-create.min.js.map