custom-variant-form 2.4.0 → 2.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -32,4 +32,4 @@ function i(e){return i="function"===typeof Symbol&&"symbol"===typeof Symbol.iter
|
|
|
32
32
|
* @author Feross Aboukhadijeh <http://feross.org>
|
|
33
33
|
* @license MIT
|
|
34
34
|
*/
|
|
35
|
-
var i=n("1fb5"),o=n("9152"),r=n("e3db");function s(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"===typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}function a(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=c.prototype):(null===e&&(e=new c(t)),e.length=t),e}function c(e,t,n){if(!c.TYPED_ARRAY_SUPPORT&&!(this instanceof c))return new c(e,t,n);if("number"===typeof e){if("string"===typeof t)throw new Error("If encoding is specified then the first argument must be a string");return f(this,e)}return u(this,e,t,n)}function u(e,t,n,i){if("number"===typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&t instanceof ArrayBuffer?m(e,t,n,i):"string"===typeof t?p(e,t,n):b(e,t)}function d(e){if("number"!==typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function h(e,t,n,i){return d(t),t<=0?l(e,t):void 0!==n?"string"===typeof i?l(e,t).fill(n,i):l(e,t).fill(n):l(e,t)}function f(e,t){if(d(t),e=l(e,t<0?0:0|v(t)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function p(e,t,n){if("string"===typeof n&&""!==n||(n="utf8"),!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var i=0|w(t,n);e=l(e,i);var o=e.write(t,n);return o!==i&&(e=e.slice(0,o)),e}function g(e,t){var n=t.length<0?0:0|v(t.length);e=l(e,n);for(var i=0;i<n;i+=1)e[i]=255&t[i];return e}function m(e,t,n,i){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(i||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void 0===i?new Uint8Array(t):void 0===i?new Uint8Array(t,n):new Uint8Array(t,n,i),c.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=c.prototype):e=g(e,t),e}function b(e,t){if(c.isBuffer(t)){var n=0|v(t.length);return e=l(e,n),0===e.length?e:(t.copy(e,0,0,n),e)}if(t){if("undefined"!==typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!==typeof t.length||te(t.length)?l(e,0):g(e,t);if("Buffer"===t.type&&r(t.data))return g(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function v(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function y(e){return+e!=e&&(e=0),c.alloc(+e)}function w(e,t){if(c.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return J(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Q(e).length;default:if(i)return J(e).length;t=(""+t).toLowerCase(),i=!0}}function x(e,t,n){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return q(this,t,n);case"utf8":case"utf-8":return R(this,t,n);case"ascii":return j(this,t,n);case"latin1":case"binary":return I(this,t,n);case"base64":return T(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,t,n);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function C(e,t,n){var i=e[t];e[t]=e[n],e[n]=i}function _(e,t,n,i,o){if(0===e.length)return-1;if("string"===typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"===typeof t&&(t=c.from(t,i)),c.isBuffer(t))return 0===t.length?-1:k(e,t,n,i,o);if("number"===typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):k(e,[t],n,i,o);throw new TypeError("val must be string, number or Buffer")}function k(e,t,n,i,o){var r,s=1,a=e.length,l=t.length;if(void 0!==i&&(i=String(i).toLowerCase(),"ucs2"===i||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;s=2,a/=2,l/=2,n/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(o){var u=-1;for(r=n;r<a;r++)if(c(e,r)===c(t,-1===u?0:r-u)){if(-1===u&&(u=r),r-u+1===l)return u*s}else-1!==u&&(r-=r-u),u=-1}else for(n+l>a&&(n=a-l),r=n;r>=0;r--){for(var d=!0,h=0;h<l;h++)if(c(e,r+h)!==c(t,h)){d=!1;break}if(d)return r}return-1}function S(e,t,n,i){n=Number(n)||0;var o=e.length-n;i?(i=Number(i),i>o&&(i=o)):i=o;var r=t.length;if(r%2!==0)throw new TypeError("Invalid hex string");i>r/2&&(i=r/2);for(var s=0;s<i;++s){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))return s;e[n+s]=a}return s}function O(e,t,n,i){return ee(J(t,e.length-n),e,n,i)}function E(e,t,n,i){return ee(X(t),e,n,i)}function L(e,t,n,i){return E(e,t,n,i)}function M(e,t,n,i){return ee(Q(t),e,n,i)}function A(e,t,n,i){return ee(Z(t,e.length-n),e,n,i)}function T(e,t,n){return 0===t&&n===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,n))}function R(e,t,n){n=Math.min(e.length,n);var i=[],o=t;while(o<n){var r,s,a,l,c=e[o],u=null,d=c>239?4:c>223?3:c>191?2:1;if(o+d<=n)switch(d){case 1:c<128&&(u=c);break;case 2:r=e[o+1],128===(192&r)&&(l=(31&c)<<6|63&r,l>127&&(u=l));break;case 3:r=e[o+1],s=e[o+2],128===(192&r)&&128===(192&s)&&(l=(15&c)<<12|(63&r)<<6|63&s,l>2047&&(l<55296||l>57343)&&(u=l));break;case 4:r=e[o+1],s=e[o+2],a=e[o+3],128===(192&r)&&128===(192&s)&&128===(192&a)&&(l=(15&c)<<18|(63&r)<<12|(63&s)<<6|63&a,l>65535&&l<1114112&&(u=l))}null===u?(u=65533,d=1):u>65535&&(u-=65536,i.push(u>>>10&1023|55296),u=56320|1023&u),i.push(u),o+=d}return F(i)}t.Buffer=c,t.SlowBuffer=y,t.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:s(),t.kMaxLength=a(),c.poolSize=8192,c._augment=function(e){return e.__proto__=c.prototype,e},c.from=function(e,t,n){return u(null,e,t,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(e,t,n){return h(null,e,t,n)},c.allocUnsafe=function(e){return f(null,e)},c.allocUnsafeSlow=function(e){return f(null,e)},c.isBuffer=function(e){return!(null==e||!e._isBuffer)},c.compare=function(e,t){if(!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,i=t.length,o=0,r=Math.min(n,i);o<r;++o)if(e[o]!==t[o]){n=e[o],i=t[o];break}return n<i?-1:i<n?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!r(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var i=c.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var s=e[n];if(!c.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(i,o),o+=s.length}return i},c.byteLength=w,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)C(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)C(this,t,t+3),C(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)C(this,t,t+7),C(this,t+1,t+6),C(this,t+2,t+5),C(this,t+3,t+4);return this},c.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?R(this,0,e):x.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},c.prototype.compare=function(e,t,n,i,o){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===i&&(i=0),void 0===o&&(o=this.length),t<0||n>e.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&t>=n)return 0;if(i>=o)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,i>>>=0,o>>>=0,this===e)return 0;for(var r=o-i,s=n-t,a=Math.min(r,s),l=this.slice(i,o),u=e.slice(t,n),d=0;d<a;++d)if(l[d]!==u[d]){r=l[d],s=u[d];break}return r<s?-1:s<r?1:0},c.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return _(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return _(this,e,t,n,!1)},c.prototype.write=function(e,t,n,i){if(void 0===t)i="utf8",n=this.length,t=0;else if(void 0===n&&"string"===typeof t)i=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===i&&(i="utf8")):(i=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var r=!1;;)switch(i){case"hex":return S(this,e,t,n);case"utf8":case"utf-8":return O(this,e,t,n);case"ascii":return E(this,e,t,n);case"latin1":case"binary":return L(this,e,t,n);case"base64":return M(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,e,t,n);default:if(r)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),r=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var $=4096;function F(e){var t=e.length;if(t<=$)return String.fromCharCode.apply(String,e);var n="",i=0;while(i<t)n+=String.fromCharCode.apply(String,e.slice(i,i+=$));return n}function j(e,t,n){var i="";n=Math.min(e.length,n);for(var o=t;o<n;++o)i+=String.fromCharCode(127&e[o]);return i}function I(e,t,n){var i="";n=Math.min(e.length,n);for(var o=t;o<n;++o)i+=String.fromCharCode(e[o]);return i}function q(e,t,n){var i=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>i)&&(n=i);for(var o="",r=t;r<n;++r)o+=Y(e[r]);return o}function P(e,t,n){for(var i=e.slice(t,n),o="",r=0;r<i.length;r+=2)o+=String.fromCharCode(i[r]+256*i[r+1]);return o}function N(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function D(e,t,n,i,o,r){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<r)throw new RangeError('"value" argument is out of bounds');if(n+i>e.length)throw new RangeError("Index out of range")}function W(e,t,n,i){t<0&&(t=65535+t+1);for(var o=0,r=Math.min(e.length-n,2);o<r;++o)e[n+o]=(t&255<<8*(i?o:1-o))>>>8*(i?o:1-o)}function B(e,t,n,i){t<0&&(t=4294967295+t+1);for(var o=0,r=Math.min(e.length-n,4);o<r;++o)e[n+o]=t>>>8*(i?o:3-o)&255}function H(e,t,n,i,o,r){if(n+i>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function z(e,t,n,i,r){return r||H(e,t,n,4,34028234663852886e22,-34028234663852886e22),o.write(e,t,n,i,23,4),n+4}function V(e,t,n,i,r){return r||H(e,t,n,8,17976931348623157e292,-17976931348623157e292),o.write(e,t,n,i,52,8),n+8}c.prototype.slice=function(e,t){var n,i=this.length;if(e=~~e,t=void 0===t?i:~~t,e<0?(e+=i,e<0&&(e=0)):e>i&&(e=i),t<0?(t+=i,t<0&&(t=0)):t>i&&(t=i),t<e&&(t=e),c.TYPED_ARRAY_SUPPORT)n=this.subarray(e,t),n.__proto__=c.prototype;else{var o=t-e;n=new c(o,void 0);for(var r=0;r<o;++r)n[r]=this[r+e]}return n},c.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);var i=this[e],o=1,r=0;while(++r<t&&(o*=256))i+=this[e+r]*o;return i},c.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);var i=this[e+--t],o=1;while(t>0&&(o*=256))i+=this[e+--t]*o;return i},c.prototype.readUInt8=function(e,t){return t||N(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||N(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||N(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||N(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||N(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);var i=this[e],o=1,r=0;while(++r<t&&(o*=256))i+=this[e+r]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*t)),i},c.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);var i=t,o=1,r=this[e+--i];while(i>0&&(o*=256))r+=this[e+--i]*o;return o*=128,r>=o&&(r-=Math.pow(2,8*t)),r},c.prototype.readInt8=function(e,t){return t||N(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||N(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){t||N(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return t||N(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||N(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||N(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||N(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||N(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||N(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,i){if(e=+e,t|=0,n|=0,!i){var o=Math.pow(2,8*n)-1;D(this,e,t,n,o,0)}var r=1,s=0;this[t]=255&e;while(++s<n&&(r*=256))this[t+s]=e/r&255;return t+n},c.prototype.writeUIntBE=function(e,t,n,i){if(e=+e,t|=0,n|=0,!i){var o=Math.pow(2,8*n)-1;D(this,e,t,n,o,0)}var r=n-1,s=1;this[t+r]=255&e;while(--r>=0&&(s*=256))this[t+r]=e/s&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):W(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):W(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):B(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):B(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,n,i){if(e=+e,t|=0,!i){var o=Math.pow(2,8*n-1);D(this,e,t,n,o-1,-o)}var r=0,s=1,a=0;this[t]=255&e;while(++r<n&&(s*=256))e<0&&0===a&&0!==this[t+r-1]&&(a=1),this[t+r]=(e/s>>0)-a&255;return t+n},c.prototype.writeIntBE=function(e,t,n,i){if(e=+e,t|=0,!i){var o=Math.pow(2,8*n-1);D(this,e,t,n,o-1,-o)}var r=n-1,s=1,a=0;this[t+r]=255&e;while(--r>=0&&(s*=256))e<0&&0===a&&0!==this[t+r+1]&&(a=1),this[t+r]=(e/s>>0)-a&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):W(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):W(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):B(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):B(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return z(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return z(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return V(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return V(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,i){if(n||(n=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i<n&&(i=n),i===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t<i-n&&(i=e.length-t+n);var o,r=i-n;if(this===e&&n<t&&t<i)for(o=r-1;o>=0;--o)e[o+t]=this[o+n];else if(r<1e3||!c.TYPED_ARRAY_SUPPORT)for(o=0;o<r;++o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+r),t);return r},c.prototype.fill=function(e,t,n,i){if("string"===typeof e){if("string"===typeof t?(i=t,t=0,n=this.length):"string"===typeof n&&(i=n,n=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==i&&"string"!==typeof i)throw new TypeError("encoding must be a string");if("string"===typeof i&&!c.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else"number"===typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var r;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(r=t;r<n;++r)this[r]=e;else{var s=c.isBuffer(e)?e:J(new c(e,i).toString()),a=s.length;for(r=0;r<n-t;++r)this[r+t]=s[r%a]}return this};var U=/[^+\/0-9A-Za-z-_]/g;function K(e){if(e=G(e).replace(U,""),e.length<2)return"";while(e.length%4!==0)e+="=";return e}function G(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function Y(e){return e<16?"0"+e.toString(16):e.toString(16)}function J(e,t){var n;t=t||1/0;for(var i=e.length,o=null,r=[],s=0;s<i;++s){if(n=e.charCodeAt(s),n>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&r.push(239,191,189);continue}if(s+1===i){(t-=3)>-1&&r.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&r.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&r.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;r.push(n)}else if(n<2048){if((t-=2)<0)break;r.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;r.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;r.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return r}function X(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}function Z(e,t){for(var n,i,o,r=[],s=0;s<e.length;++s){if((t-=2)<0)break;n=e.charCodeAt(s),i=n>>8,o=n%256,r.push(o),r.push(i)}return r}function Q(e){return i.toByteArray(K(e))}function ee(e,t,n,i){for(var o=0;o<i;++o){if(o+n>=t.length||o>=e.length)break;t[o+n]=e[o]}return o}function te(e){return e!==e}}).call(this,n("c8ba"))},b64b:function(e,t,n){var i=n("23e7"),o=n("7b0b"),r=n("df75"),s=n("d039"),a=s((function(){r(1)}));i({target:"Object",stat:!0,forced:a},{keys:function(e){return r(o(e))}})},b674:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.allowHalf")}},[n("el-switch",{model:{value:e.optionModel.allowHalf,callback:function(t){e.$set(e.optionModel,"allowHalf",t)},expression:"optionModel.allowHalf"}})],1)},o=[],r=n("79fa"),s={name:"allowHalf-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"75c91e5d",null);t["default"]=c.exports},b6b7:function(e,t,n){var i=n("ebb5"),o=n("4840"),r=i.TYPED_ARRAY_CONSTRUCTOR,s=i.aTypedArrayConstructor;e.exports=function(e){return s(o(e,e[r]))}},b6b9:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.showBlankRow")}},[n("el-switch",{model:{value:e.optionModel.showBlankRow,callback:function(t){e.$set(e.optionModel,"showBlankRow",t)},expression:"optionModel.showBlankRow"}})],1)},o=[],r=n("79fa"),s={name:"showBlankRow-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"aacb0e56",null);t["default"]=c.exports},b727:function(e,t,n){var i=n("0366"),o=n("e330"),r=n("44ad"),s=n("7b0b"),a=n("07fa"),l=n("65f0"),c=o([].push),u=function(e){var t=1==e,n=2==e,o=3==e,u=4==e,d=6==e,h=7==e,f=5==e||d;return function(p,g,m,b){for(var v,y,w=s(p),x=r(w),C=i(g,m),_=a(x),k=0,S=b||l,O=t?S(p,_):n||h?S(p,0):void 0;_>k;k++)if((f||k in x)&&(v=x[k],y=C(v,k,w),e))if(t)O[k]=y;else if(y)switch(e){case 3:return!0;case 5:return v;case 6:return k;case 2:c(O,v)}else switch(e){case 4:return!1;case 7:c(O,v)}return d?-1:o||u?u:O}};e.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},b76a:function(e,t,n){(function(e){var i,o,r,s=n("7037").default;n("a4d3"),n("e01a"),n("d3b7"),n("944a"),n("0c47"),n("23dc"),n("e260"),n("ddb0"),n("b0c0"),n("fb6a"),n("2c3e"),n("b64b"),n("ac1f"),n("5319"),n("1276"),n("4d63"),n("c607"),n("25f0"),n("a15b"),n("3410"),n("cca6"),n("159b"),n("99af"),n("2ca0"),n("466d"),n("d28b"),n("3ca3"),n("a630"),n("00b4"),n("d81d"),n("4de4"),n("caad"),n("a434"),function(a,l){"object"===s(t)&&"object"===s(e)?e.exports=l(n("aa47")):(o=[n("aa47")],i=l,r="function"===typeof i?i.apply(t,o):i,void 0===r||(e.exports=r))}("undefined"!==typeof self&&self,(function(e){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===s(e)&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fb15")}({"01f9":function(e,t,n){"use strict";var i=n("2d00"),o=n("5ca1"),r=n("2aba"),s=n("32e9"),a=n("84f2"),l=n("41a0"),c=n("7f20"),u=n("38fd"),d=n("2b4c")("iterator"),h=!([].keys&&"next"in[].keys()),f="@@iterator",p="keys",g="values",m=function(){return this};e.exports=function(e,t,n,b,v,y,w){l(n,t,b);var x,C,_,k=function(e){if(!h&&e in L)return L[e];switch(e){case p:return function(){return new n(this,e)};case g:return function(){return new n(this,e)}}return function(){return new n(this,e)}},S=t+" Iterator",O=v==g,E=!1,L=e.prototype,M=L[d]||L[f]||v&&L[v],A=M||k(v),T=v?O?k("entries"):A:void 0,R="Array"==t&&L.entries||M;if(R&&(_=u(R.call(new e)),_!==Object.prototype&&_.next&&(c(_,S,!0),i||"function"==typeof _[d]||s(_,d,m))),O&&M&&M.name!==g&&(E=!0,A=function(){return M.call(this)}),i&&!w||!h&&!E&&L[d]||s(L,d,A),a[t]=A,a[S]=m,v)if(x={values:O?A:k(g),keys:y?A:k(p),entries:T},w)for(C in x)C in L||r(L,C,x[C]);else o(o.P+o.F*(h||E),t,x);return x}},"02f4":function(e,t,n){var i=n("4588"),o=n("be13");e.exports=function(e){return function(t,n){var r,s,a=String(o(t)),l=i(n),c=a.length;return l<0||l>=c?e?"":void 0:(r=a.charCodeAt(l),r<55296||r>56319||l+1===c||(s=a.charCodeAt(l+1))<56320||s>57343?e?a.charAt(l):r:e?a.slice(l,l+2):s-56320+(r-55296<<10)+65536)}}},"0390":function(e,t,n){"use strict";var i=n("02f4")(!0);e.exports=function(e,t,n){return t+(n?i(e,t).length:1)}},"0bfb":function(e,t,n){"use strict";var i=n("cb7c");e.exports=function(){var e=i(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},"0d58":function(e,t,n){var i=n("ce10"),o=n("e11e");e.exports=Object.keys||function(e){return i(e,o)}},1495:function(e,t,n){var i=n("86cc"),o=n("cb7c"),r=n("0d58");e.exports=n("9e1e")?Object.defineProperties:function(e,t){o(e);var n,s=r(t),a=s.length,l=0;while(a>l)i.f(e,n=s[l++],t[n]);return e}},"214f":function(e,t,n){"use strict";n("b0c5");var i=n("2aba"),o=n("32e9"),r=n("79e5"),s=n("be13"),a=n("2b4c"),l=n("520a"),c=a("species"),u=!r((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),d=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]}();e.exports=function(e,t,n){var h=a(e),f=!r((function(){var t={};return t[h]=function(){return 7},7!=""[e](t)})),p=f?!r((function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[c]=function(){return n}),n[h](""),!t})):void 0;if(!f||!p||"replace"===e&&!u||"split"===e&&!d){var g=/./[h],m=n(s,h,""[e],(function(e,t,n,i,o){return t.exec===l?f&&!o?{done:!0,value:g.call(t,n,i)}:{done:!0,value:e.call(n,t,i)}:{done:!1}})),b=m[0],v=m[1];i(String.prototype,e,b),o(RegExp.prototype,h,2==t?function(e,t){return v.call(e,this,t)}:function(e){return v.call(e,this)})}}},"230e":function(e,t,n){var i=n("d3f4"),o=n("7726").document,r=i(o)&&i(o.createElement);e.exports=function(e){return r?o.createElement(e):{}}},"23c6":function(e,t,n){var i=n("2d95"),o=n("2b4c")("toStringTag"),r="Arguments"==i(function(){return arguments}()),s=function(e,t){try{return e[t]}catch(n){}};e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=s(t=Object(e),o))?n:r?i(t):"Object"==(a=i(t))&&"function"==typeof t.callee?"Arguments":a}},2621:function(e,t){t.f=Object.getOwnPropertySymbols},"2aba":function(e,t,n){var i=n("7726"),o=n("32e9"),r=n("69a8"),s=n("ca5a")("src"),a=n("fa5b"),l="toString",c=(""+a).split(l);n("8378").inspectSource=function(e){return a.call(e)},(e.exports=function(e,t,n,a){var l="function"==typeof n;l&&(r(n,"name")||o(n,"name",t)),e[t]!==n&&(l&&(r(n,s)||o(n,s,e[t]?""+e[t]:c.join(String(t)))),e===i?e[t]=n:a?e[t]?e[t]=n:o(e,t,n):(delete e[t],o(e,t,n)))})(Function.prototype,l,(function(){return"function"==typeof this&&this[s]||a.call(this)}))},"2aeb":function(e,t,n){var i=n("cb7c"),o=n("1495"),r=n("e11e"),s=n("613b")("IE_PROTO"),a=function(){},l="prototype",c=function(){var e,t=n("230e")("iframe"),i=r.length,o="<",s=">";t.style.display="none",n("fab2").appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(o+"script"+s+"document.F=Object"+o+"/script"+s),e.close(),c=e.F;while(i--)delete c[l][r[i]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(a[l]=i(e),n=new a,a[l]=null,n[s]=e):n=c(),void 0===t?n:o(n,t)}},"2b4c":function(e,t,n){var i=n("5537")("wks"),o=n("ca5a"),r=n("7726").Symbol,s="function"==typeof r,a=e.exports=function(e){return i[e]||(i[e]=s&&r[e]||(s?r:o)("Symbol."+e))};a.store=i},"2d00":function(e,t){e.exports=!1},"2d95":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"2fdb":function(e,t,n){"use strict";var i=n("5ca1"),o=n("d2c8"),r="includes";i(i.P+i.F*n("5147")(r),"String",{includes:function(e){return!!~o(this,e,r).indexOf(e,arguments.length>1?arguments[1]:void 0)}})},"32e9":function(e,t,n){var i=n("86cc"),o=n("4630");e.exports=n("9e1e")?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},"38fd":function(e,t,n){var i=n("69a8"),o=n("4bf8"),r=n("613b")("IE_PROTO"),s=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),i(e,r)?e[r]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?s:null}},"41a0":function(e,t,n){"use strict";var i=n("2aeb"),o=n("4630"),r=n("7f20"),s={};n("32e9")(s,n("2b4c")("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=i(s,{next:o(1,n)}),r(e,t+" Iterator")}},"456d":function(e,t,n){var i=n("4bf8"),o=n("0d58");n("5eda")("keys",(function(){return function(e){return o(i(e))}}))},4588:function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?i:n)(e)}},4630:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"4bf8":function(e,t,n){var i=n("be13");e.exports=function(e){return Object(i(e))}},5147:function(e,t,n){var i=n("2b4c")("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[i]=!1,!"/./"[e](t)}catch(o){}}return!0}},"520a":function(e,t,n){"use strict";var i=n("0bfb"),o=RegExp.prototype.exec,r=String.prototype.replace,s=o,a="lastIndex",l=function(){var e=/a/,t=/b*/g;return o.call(e,"a"),o.call(t,"a"),0!==e[a]||0!==t[a]}(),c=void 0!==/()??/.exec("")[1],u=l||c;u&&(s=function(e){var t,n,s,u,d=this;return c&&(n=new RegExp("^"+d.source+"$(?!\\s)",i.call(d))),l&&(t=d[a]),s=o.call(d,e),l&&s&&(d[a]=d.global?s.index+s[0].length:t),c&&s&&s.length>1&&r.call(s[0],n,(function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(s[u]=void 0)})),s}),e.exports=s},"52a7":function(e,t){t.f={}.propertyIsEnumerable},5537:function(e,t,n){var i=n("8378"),o=n("7726"),r="__core-js_shared__",s=o[r]||(o[r]={});(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:i.version,mode:n("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"5ca1":function(e,t,n){var i=n("7726"),o=n("8378"),r=n("32e9"),s=n("2aba"),a=n("9b43"),l="prototype",c=function e(t,n,c){var u,d,h,f,p=t&e.F,g=t&e.G,m=t&e.S,b=t&e.P,v=t&e.B,y=g?i:m?i[n]||(i[n]={}):(i[n]||{})[l],w=g?o:o[n]||(o[n]={}),x=w[l]||(w[l]={});for(u in g&&(c=n),c)d=!p&&y&&void 0!==y[u],h=(d?y:c)[u],f=v&&d?a(h,i):b&&"function"==typeof h?a(Function.call,h):h,y&&s(y,u,h,t&e.U),w[u]!=h&&r(w,u,f),b&&x[u]!=h&&(x[u]=h)};i.core=o,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},"5eda":function(e,t,n){var i=n("5ca1"),o=n("8378"),r=n("79e5");e.exports=function(e,t){var n=(o.Object||{})[e]||Object[e],s={};s[e]=t(n),i(i.S+i.F*r((function(){n(1)})),"Object",s)}},"5f1b":function(e,t,n){"use strict";var i=n("23c6"),o=RegExp.prototype.exec;e.exports=function(e,t){var n=e.exec;if("function"===typeof n){var r=n.call(e,t);if("object"!==s(r))throw new TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==i(e))throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(e,t)}},"613b":function(e,t,n){var i=n("5537")("keys"),o=n("ca5a");e.exports=function(e){return i[e]||(i[e]=o(e))}},"626a":function(e,t,n){var i=n("2d95");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==i(e)?e.split(""):Object(e)}},6762:function(e,t,n){"use strict";var i=n("5ca1"),o=n("c366")(!0);i(i.P,"Array",{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")("includes")},6821:function(e,t,n){var i=n("626a"),o=n("be13");e.exports=function(e){return i(o(e))}},"69a8":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"6a99":function(e,t,n){var i=n("d3f4");e.exports=function(e,t){if(!i(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!i(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!i(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!i(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},7333:function(e,t,n){"use strict";var i=n("0d58"),o=n("2621"),r=n("52a7"),s=n("4bf8"),a=n("626a"),l=Object.assign;e.exports=!l||n("79e5")((function(){var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!=l({},e)[n]||Object.keys(l({},t)).join("")!=i}))?function(e,t){var n=s(e),l=arguments.length,c=1,u=o.f,d=r.f;while(l>c){var h,f=a(arguments[c++]),p=u?i(f).concat(u(f)):i(f),g=p.length,m=0;while(g>m)d.call(f,h=p[m++])&&(n[h]=f[h])}return n}:l},7726:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"77f1":function(e,t,n){var i=n("4588"),o=Math.max,r=Math.min;e.exports=function(e,t){return e=i(e),e<0?o(e+t,0):r(e,t)}},"79e5":function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},"7f20":function(e,t,n){var i=n("86cc").f,o=n("69a8"),r=n("2b4c")("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,r)&&i(e,r,{configurable:!0,value:t})}},8378:function(e,t){var n=e.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},"84f2":function(e,t){e.exports={}},"86cc":function(e,t,n){var i=n("cb7c"),o=n("c69a"),r=n("6a99"),s=Object.defineProperty;t.f=n("9e1e")?Object.defineProperty:function(e,t,n){if(i(e),t=r(t,!0),i(n),o)try{return s(e,t,n)}catch(a){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},"9b43":function(e,t,n){var i=n("d8e8");e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,o){return e.call(t,n,i,o)}}return function(){return e.apply(t,arguments)}}},"9c6c":function(e,t,n){var i=n("2b4c")("unscopables"),o=Array.prototype;void 0==o[i]&&n("32e9")(o,i,{}),e.exports=function(e){o[i][e]=!0}},"9def":function(e,t,n){var i=n("4588"),o=Math.min;e.exports=function(e){return e>0?o(i(e),9007199254740991):0}},"9e1e":function(e,t,n){e.exports=!n("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},a352:function(t,n){t.exports=e},a481:function(e,t,n){"use strict";var i=n("cb7c"),o=n("4bf8"),r=n("9def"),s=n("4588"),a=n("0390"),l=n("5f1b"),c=Math.max,u=Math.min,d=Math.floor,h=/\$([$&`']|\d\d?|<[^>]*>)/g,f=/\$([$&`']|\d\d?)/g,p=function(e){return void 0===e?e:String(e)};n("214f")("replace",2,(function(e,t,n,g){return[function(i,o){var r=e(this),s=void 0==i?void 0:i[t];return void 0!==s?s.call(i,r,o):n.call(String(r),i,o)},function(e,t){var o=g(n,e,this,t);if(o.done)return o.value;var d=i(e),h=String(this),f="function"===typeof t;f||(t=String(t));var b=d.global;if(b){var v=d.unicode;d.lastIndex=0}var y=[];while(1){var w=l(d,h);if(null===w)break;if(y.push(w),!b)break;var x=String(w[0]);""===x&&(d.lastIndex=a(h,r(d.lastIndex),v))}for(var C="",_=0,k=0;k<y.length;k++){w=y[k];for(var S=String(w[0]),O=c(u(s(w.index),h.length),0),E=[],L=1;L<w.length;L++)E.push(p(w[L]));var M=w.groups;if(f){var A=[S].concat(E,O,h);void 0!==M&&A.push(M);var T=String(t.apply(void 0,A))}else T=m(S,h,O,E,M,t);O>=_&&(C+=h.slice(_,O)+T,_=O+S.length)}return C+h.slice(_)}];function m(e,t,i,r,s,a){var l=i+e.length,c=r.length,u=f;return void 0!==s&&(s=o(s),u=h),n.call(a,u,(function(n,o){var a;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,i);case"'":return t.slice(l);case"<":a=s[o.slice(1,-1)];break;default:var u=+o;if(0===u)return n;if(u>c){var h=d(u/10);return 0===h?n:h<=c?void 0===r[h-1]?o.charAt(1):r[h-1]+o.charAt(1):n}a=r[u-1]}return void 0===a?"":a}))}}))},aae3:function(e,t,n){var i=n("d3f4"),o=n("2d95"),r=n("2b4c")("match");e.exports=function(e){var t;return i(e)&&(void 0!==(t=e[r])?!!t:"RegExp"==o(e))}},ac6a:function(e,t,n){for(var i=n("cadf"),o=n("0d58"),r=n("2aba"),s=n("7726"),a=n("32e9"),l=n("84f2"),c=n("2b4c"),u=c("iterator"),d=c("toStringTag"),h=l.Array,f={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=o(f),g=0;g<p.length;g++){var m,b=p[g],v=f[b],y=s[b],w=y&&y.prototype;if(w&&(w[u]||a(w,u,h),w[d]||a(w,d,b),l[b]=h,v))for(m in i)w[m]||r(w,m,i[m],!0)}},b0c5:function(e,t,n){"use strict";var i=n("520a");n("5ca1")({target:"RegExp",proto:!0,forced:i!==/./.exec},{exec:i})},be13:function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},c366:function(e,t,n){var i=n("6821"),o=n("9def"),r=n("77f1");e.exports=function(e){return function(t,n,s){var a,l=i(t),c=o(l.length),u=r(s,c);if(e&&n!=n){while(c>u)if(a=l[u++],a!=a)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}}},c649:function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return o})),n.d(t,"d",(function(){return l}));n("a481");function i(){return"undefined"!==typeof window?window.console:e.console}var o=i();function r(e){var t=Object.create(null);return function(n){var i=t[n];return i||(t[n]=e(n))}}var s=/-(\w)/g,a=r((function(e){return e.replace(s,(function(e,t){return t?t.toUpperCase():""}))}));function l(e){null!==e.parentElement&&e.parentElement.removeChild(e)}function c(e,t,n){var i=0===n?e.children[0]:e.children[n-1].nextSibling;e.insertBefore(t,i)}}).call(this,n("c8ba"))},c69a:function(e,t,n){e.exports=!n("9e1e")&&!n("79e5")((function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a}))},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(i){"object"===("undefined"===typeof window?"undefined":s(window))&&(n=window)}e.exports=n},ca5a:function(e,t){var n=0,i=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+i).toString(36))}},cadf:function(e,t,n){"use strict";var i=n("9c6c"),o=n("d53b"),r=n("84f2"),s=n("6821");e.exports=n("01f9")(Array,"Array",(function(e,t){this._t=s(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):o(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),r.Arguments=r.Array,i("keys"),i("values"),i("entries")},cb7c:function(e,t,n){var i=n("d3f4");e.exports=function(e){if(!i(e))throw TypeError(e+" is not an object!");return e}},ce10:function(e,t,n){var i=n("69a8"),o=n("6821"),r=n("c366")(!1),s=n("613b")("IE_PROTO");e.exports=function(e,t){var n,a=o(e),l=0,c=[];for(n in a)n!=s&&i(a,n)&&c.push(n);while(t.length>l)i(a,n=t[l++])&&(~r(c,n)||c.push(n));return c}},d2c8:function(e,t,n){var i=n("aae3"),o=n("be13");e.exports=function(e,t,n){if(i(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(o(e))}},d3f4:function(e,t){e.exports=function(e){return"object"===s(e)?null!==e:"function"===typeof e}},d53b:function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},d8e8:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},e11e:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},f559:function(e,t,n){"use strict";var i=n("5ca1"),o=n("9def"),r=n("d2c8"),s="startsWith",a=""[s];i(i.P+i.F*n("5147")(s),"String",{startsWith:function(e){var t=r(this,e,s),n=o(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),i=String(e);return a?a.call(t,i,n):t.slice(n,n+i.length)===i}})},f6fd:function(e,t){(function(e){var t="currentScript",n=e.getElementsByTagName("script");t in e||Object.defineProperty(e,t,{get:function(){try{throw new Error}catch(i){var e,t=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(i.stack)||[!1])[1];for(e in n)if(n[e].src==t||"interactive"==n[e].readyState)return n[e];return null}}})})(document)},f751:function(e,t,n){var i=n("5ca1");i(i.S+i.F,"Object",{assign:n("7333")})},fa5b:function(e,t,n){e.exports=n("5537")("native-function-to-string",Function.toString)},fab2:function(e,t,n){var i=n("7726").document;e.exports=i&&i.documentElement},fb15:function(e,t,n){"use strict";var i;(n.r(t),"undefined"!==typeof window)&&(n("f6fd"),(i=window.document.currentScript)&&(i=i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=i[1]));n("f751"),n("f559"),n("ac6a"),n("cadf"),n("456d");function o(e){if(Array.isArray(e))return e}function r(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],i=!0,o=!1,r=void 0;try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done);i=!0)if(n.push(s.value),t&&n.length===t)break}catch(l){o=!0,r=l}finally{try{i||null==a["return"]||a["return"]()}finally{if(o)throw r}}return n}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function a(e,t){if(e){if("string"===typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function l(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(e,t){return o(e)||r(e,t)||a(e,t)||l()}n("6762"),n("2fdb");function u(e){if(Array.isArray(e))return s(e)}function d(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function h(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function f(e){return u(e)||d(e)||a(e)||h()}var p=n("a352"),g=n.n(p),m=n("c649");function b(e,t,n){return void 0===n||(e=e||{},e[t]=n),e}function v(e,t){return e.map((function(e){return e.elm})).indexOf(t)}function y(e,t,n,i){if(!e)return[];var o=e.map((function(e){return e.elm})),r=t.length-i,s=f(t).map((function(e,t){return t>=r?o.length:o.indexOf(e)}));return n?s.filter((function(e){return-1!==e})):s}function w(e,t){var n=this;this.$nextTick((function(){return n.$emit(e.toLowerCase(),t)}))}function x(e){var t=this;return function(n){null!==t.realList&&t["onDrag"+e](n),w.call(t,e,n)}}function C(e){return["transition-group","TransitionGroup"].includes(e)}function _(e){if(!e||1!==e.length)return!1;var t=c(e,1),n=t[0].componentOptions;return!!n&&C(n.tag)}function k(e,t,n){return e[n]||(t[n]?t[n]():void 0)}function S(e,t,n){var i=0,o=0,r=k(t,n,"header");r&&(i=r.length,e=e?[].concat(f(r),f(e)):f(r));var s=k(t,n,"footer");return s&&(o=s.length,e=e?[].concat(f(e),f(s)):f(s)),{children:e,headerOffset:i,footerOffset:o}}function O(e,t){var n=null,i=function(e,t){n=b(n,e,t)},o=Object.keys(e).filter((function(e){return"id"===e||e.startsWith("data-")})).reduce((function(t,n){return t[n]=e[n],t}),{});if(i("attrs",o),!t)return n;var r=t.on,s=t.props,a=t.attrs;return i("on",r),i("props",s),Object.assign(n.attrs,a),n}var E=["Start","Add","Remove","Update","End"],L=["Choose","Unchoose","Sort","Filter","Clone"],M=["Move"].concat(E,L).map((function(e){return"on"+e})),A=null,T={options:Object,list:{type:Array,required:!1,default:null},value:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:function(e){return e}},element:{type:String,default:"div"},tag:{type:String,default:null},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},R={name:"draggable",inheritAttrs:!1,props:T,data:function(){return{transitionMode:!1,noneFunctionalComponentMode:!1}},render:function(e){var t=this.$slots.default;this.transitionMode=_(t);var n=S(t,this.$slots,this.$scopedSlots),i=n.children,o=n.headerOffset,r=n.footerOffset;this.headerOffset=o,this.footerOffset=r;var s=O(this.$attrs,this.componentData);return e(this.getTag(),s,i)},created:function(){null!==this.list&&null!==this.value&&m["b"].error("Value and list props are mutually exclusive! Please set one or another."),"div"!==this.element&&m["b"].warn("Element props is deprecated please use tag props instead. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#element-props"),void 0!==this.options&&m["b"].warn("Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props")},mounted:function(){var e=this;if(this.noneFunctionalComponentMode=this.getTag().toLowerCase()!==this.$el.nodeName.toLowerCase()&&!this.getIsFunctional(),this.noneFunctionalComponentMode&&this.transitionMode)throw new Error("Transition-group inside component is not supported. Please alter tag value or remove transition-group. Current tag value: ".concat(this.getTag()));var t={};E.forEach((function(n){t["on"+n]=x.call(e,n)})),L.forEach((function(n){t["on"+n]=w.bind(e,n)}));var n=Object.keys(this.$attrs).reduce((function(t,n){return t[Object(m["a"])(n)]=e.$attrs[n],t}),{}),i=Object.assign({},this.options,n,t,{onMove:function(t,n){return e.onDragMove(t,n)}});!("draggable"in i)&&(i.draggable=">*"),this._sortable=new g.a(this.rootContainer,i),this.computeIndexes()},beforeDestroy:function(){void 0!==this._sortable&&this._sortable.destroy()},computed:{rootContainer:function(){return this.transitionMode?this.$el.children[0]:this.$el},realList:function(){return this.list?this.list:this.value}},watch:{options:{handler:function(e){this.updateOptions(e)},deep:!0},$attrs:{handler:function(e){this.updateOptions(e)},deep:!0},realList:function(){this.computeIndexes()}},methods:{getIsFunctional:function(){var e=this._vnode.fnOptions;return e&&e.functional},getTag:function(){return this.tag||this.element},updateOptions:function(e){for(var t in e){var n=Object(m["a"])(t);-1===M.indexOf(n)&&this._sortable.option(n,e[t])}},getChildrenNodes:function(){if(this.noneFunctionalComponentMode)return this.$children[0].$slots.default;var e=this.$slots.default;return this.transitionMode?e[0].child.$slots.default:e},computeIndexes:function(){var e=this;this.$nextTick((function(){e.visibleIndexes=y(e.getChildrenNodes(),e.rootContainer.children,e.transitionMode,e.footerOffset)}))},getUnderlyingVm:function(e){var t=v(this.getChildrenNodes()||[],e);if(-1===t)return null;var n=this.realList[t];return{index:t,element:n}},getUnderlyingPotencialDraggableComponent:function(e){var t=e.__vue__;return t&&t.$options&&C(t.$options._componentTag)?t.$parent:!("realList"in t)&&1===t.$children.length&&"realList"in t.$children[0]?t.$children[0]:t},emitChanges:function(e){var t=this;this.$nextTick((function(){t.$emit("change",e)}))},alterList:function(e){if(this.list)e(this.list);else{var t=f(this.value);e(t),this.$emit("input",t)}},spliceList:function(){var e=arguments,t=function(t){return t.splice.apply(t,f(e))};this.alterList(t)},updatePosition:function(e,t){var n=function(n){return n.splice(t,0,n.splice(e,1)[0])};this.alterList(n)},getRelatedContextFromMoveEvent:function(e){var t=e.to,n=e.related,i=this.getUnderlyingPotencialDraggableComponent(t);if(!i)return{component:i};var o=i.realList,r={list:o,component:i};if(t!==n&&o&&i.getUnderlyingVm){var s=i.getUnderlyingVm(n);if(s)return Object.assign(s,r)}return r},getVmIndex:function(e){var t=this.visibleIndexes,n=t.length;return e>n-1?n:t[e]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(e){if(this.noTransitionOnDrag&&this.transitionMode){var t=this.getChildrenNodes();t[e].data=null;var n=this.getComponent();n.children=[],n.kept=void 0}},onDragStart:function(e){this.context=this.getUnderlyingVm(e.item),e.item._underlying_vm_=this.clone(this.context.element),A=e.item},onDragAdd:function(e){var t=e.item._underlying_vm_;if(void 0!==t){Object(m["d"])(e.item);var n=this.getVmIndex(e.newIndex);this.spliceList(n,0,t),this.computeIndexes();var i={element:t,newIndex:n};this.emitChanges({added:i})}},onDragRemove:function(e){if(Object(m["c"])(this.rootContainer,e.item,e.oldIndex),"clone"!==e.pullMode){var t=this.context.index;this.spliceList(t,1);var n={element:this.context.element,oldIndex:t};this.resetTransitionData(t),this.emitChanges({removed:n})}else Object(m["d"])(e.clone)},onDragUpdate:function(e){Object(m["d"])(e.item),Object(m["c"])(e.from,e.item,e.oldIndex);var t=this.context.index,n=this.getVmIndex(e.newIndex);this.updatePosition(t,n);var i={element:this.context.element,oldIndex:t,newIndex:n};this.emitChanges({moved:i})},updateProperty:function(e,t){e.hasOwnProperty(t)&&(e[t]+=this.headerOffset)},computeFutureIndex:function(e,t){if(!e.element)return 0;var n=f(t.to.children).filter((function(e){return"none"!==e.style["display"]})),i=n.indexOf(t.related),o=e.component.getVmIndex(i),r=-1!==n.indexOf(A);return r||!t.willInsertAfter?o:o+1},onDragMove:function(e,t){var n=this.move;if(!n||!this.realList)return!0;var i=this.getRelatedContextFromMoveEvent(e),o=this.context,r=this.computeFutureIndex(i,e);Object.assign(o,{futureIndex:r});var s=Object.assign({},e,{relatedContext:i,draggedContext:o});return n(s,t)},onDragEnd:function(){this.computeIndexes(),A=null}}};"undefined"!==typeof window&&"Vue"in window&&window.Vue.component("draggable",R);var $=R;t["default"]=$}})["default"]}))}).call(this,n("62e4")(e))},b87d:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form-item-wrapper",{attrs:{designer:e.designer,field:e.field,rules:e.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[n("el-radio-group",{ref:"fieldEditor",attrs:{disabled:e.field.options.disabled,size:e.field.options.size},on:{change:e.handleChangeEvent},model:{value:e.fieldModel,callback:function(t){e.fieldModel=t},expression:"fieldModel"}},[e.field.options.buttonStyle?e._l(e.field.options.optionItems,(function(t,i){return n("el-radio-button",{key:i,style:{display:e.field.options.displayStyle},attrs:{label:t.value,disabled:t.disabled,border:e.field.options.border}},[e._v(e._s(t.label))])})):e._l(e.field.options.optionItems,(function(t,i){return n("el-radio",{key:i,style:{display:e.field.options.displayStyle},attrs:{label:t.value,disabled:t.disabled,border:e.field.options.border}},[e._v(e._s(t.label))])}))],2)],1)},o=[],r=(n("a9e3"),n("9eeb")),s=n("c6e3"),a=n("79fa"),l=n("2d11"),c={name:"radio-widget",componentName:"FieldWidget",mixins:[s["a"],l["a"],a["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper:r["default"]},inject:["refList","formConfig","globalOptionData","globalModel"],data:function(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{},beforeCreate:function(){},created:function(){this.initOptionItems(),this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted:function(){this.handleOnMounted()},beforeDestroy:function(){this.unregisterFromRefList()},methods:{}},u=c,d=(n("13f0"),n("2877")),h=Object(d["a"])(u,i,o,!1,null,"ef35f5b6",null);t["default"]=h.exports},b8d7:function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-select-field",use:"icon-select-field-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-select-field"><defs><style type="text/css"></style></defs><path d="M374.784 649.514667a32 32 0 0 1 3.072 41.685333l-3.114667 3.584L225.28 843.946667a32 32 0 0 1-37.845333 5.504l-3.968-2.56-85.333334-64a32 32 0 0 1 34.432-53.76l3.968 2.56 63.146667 47.36 129.834667-129.621334a32 32 0 0 1 45.269333 0.042667zM906.154667 725.333333a32 32 0 0 1 4.309333 63.701334l-4.309333 0.298666h-448a32 32 0 0 1-4.352-63.744l4.352-0.256h448z m0.512-256a32 32 0 0 1 4.352 63.701334l-4.352 0.298666h-448a32 32 0 0 1-4.352-63.701333L458.666667 469.333333h448zM374.826667 137.557333a32 32 0 0 1 2.986666 41.685334l-3.114666 3.584L224.853333 332.032a32 32 0 0 1-37.888 5.418667l-3.925333-2.56-84.906667-64a32 32 0 0 1 34.517334-53.674667l3.968 2.56 62.72 47.274667 130.261333-129.578667a32 32 0 0 1 45.226667 0.085333z m531.328 75.818667a32 32 0 0 1 4.309333 63.701333l-4.309333 0.298667H459.349333a32 32 0 0 1-4.352-63.744l4.352-0.256h446.805334z" p-id="40341" /></symbol>'});s.a.add(a);t["default"]=a},b8e9:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("static-content-wrapper",{attrs:{designer:e.designer,field:e.field,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[n("div",{class:[e.designState?"slot-wrapper-design":"slot-wrapper-render"]},[e._t(e.field.options.name,null,{formModel:e.formModel}),e.designState?n("div",{staticClass:"slot-title"},[e._v(e._s(e.field.options.label))]):e._e()],2)])},o=[],r=(n("a9e3"),n("828b")),s=n("c6e3"),a=n("79fa"),l=n("2d11"),c={name:"slot-widget",componentName:"FieldWidget",mixins:[s["a"],l["a"],a["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{StaticContentWrapper:r["default"]},computed:{},beforeCreate:function(){},created:function(){this.registerToRefList(),this.initEventHandler(),this.handleOnCreated()},mounted:function(){this.handleOnMounted()},beforeDestroy:function(){this.unregisterFromRefList()},methods:{}},u=c,d=(n("f1ab"),n("2877")),h=Object(d["a"])(u,i,o,!1,null,"856e2df6",null);t["default"]=h.exports},b90a:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:"onCreated","label-width":"150px"}},[n("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:"",round:""},on:{click:function(t){return e.editEventHandler("onCreated",e.eventParams)}}},[e._v(" "+e._s(e.i18nt("designer.setting.addEventHandler")))])],1)},o=[],r=n("79fa"),s=n("7d6c"),a={name:"onCreated-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},data:function(){return{eventParams:[]}}},l=a,c=n("2877"),u=Object(c["a"])(l,i,o,!1,null,"20e467a8",null);t["default"]=u.exports},ba08:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form-item-wrapper",{attrs:{designer:e.designer,field:e.field,rules:e.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[n("el-date-picker",{ref:"fieldEditor",staticClass:"full-width-input",attrs:{type:e.field.options.type,disabled:e.field.options.disabled,readonly:e.field.options.readonly,size:e.field.options.size,clearable:e.field.options.clearable,editable:e.field.options.editable,format:e.field.options.format,"value-format":e.field.options.valueFormat,"start-placeholder":e.field.options.startPlaceholder||e.i18nt("render.hint.startDatePlaceholder"),"end-placeholder":e.field.options.endPlaceholder||e.i18nt("render.hint.endDatePlaceholder")},on:{focus:e.handleFocusCustomEvent,blur:e.handleBlurCustomEvent,change:e.handleChangeEvent},model:{value:e.fieldModel,callback:function(t){e.fieldModel=t},expression:"fieldModel"}})],1)},o=[],r=(n("a9e3"),n("9eeb")),s=n("c6e3"),a=n("79fa"),l=n("2d11"),c={name:"date-range-widget",componentName:"FieldWidget",mixins:[s["a"],l["a"],a["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper:r["default"]},inject:["refList","formConfig","globalOptionData","globalModel"],data:function(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{},beforeCreate:function(){},created:function(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted:function(){this.handleOnMounted()},beforeDestroy:function(){this.unregisterFromRefList()},methods:{}},u=c,d=(n("447a"),n("2877")),h=Object(d["a"])(u,i,o,!1,null,"76c3fdc8",null);t["default"]=h.exports},bae2:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.defaultValue")}},[n("el-color-picker",{on:{change:e.emitDefaultValueChange},model:{value:e.optionModel.defaultValue,callback:function(t){e.$set(e.optionModel,"defaultValue",t)},expression:"optionModel.defaultValue"}})],1)},o=[],r=n("79fa"),s=n("b2bf"),a={name:"color-defaultValue-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},l=a,c=n("2877"),u=Object(c["a"])(l,i,o,!1,null,"667e90e8",null);t["default"]=u.exports},baf1:function(e,t,n){},bb2f:function(e,t,n){var i=n("d039");e.exports=!i((function(){return Object.isExtensible(Object.preventExtensions({}))}))},bb60:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.multiple")}},[n("el-switch",{model:{value:e.optionModel.multiple,callback:function(t){e.$set(e.optionModel,"multiple",t)},expression:"optionModel.multiple"}})],1)},o=[],r=n("79fa"),s=n("b2bf"),a={name:"cascader-multiple-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},l=a,c=n("2877"),u=Object(c["a"])(l,i,o,!1,null,"115602ef",null);t["default"]=u.exports},bc16:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.buttonIcon")}},[n("el-input",{attrs:{type:"text"},model:{value:e.optionModel.icon,callback:function(t){e.$set(e.optionModel,"icon",t)},expression:"optionModel.icon"}})],1)},o=[],r=n("79fa"),s={name:"icon-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"4b90cd5a",null);t["default"]=c.exports},bc3a:function(e,t,n){e.exports=n("cee4")},bdcf:function(e,t,n){},c029:function(e,t,n){"use strict";n("d81d"),n("e260"),n("d3b7"),n("ddb0"),n("b0c0");var i=n("7899"),o={};i.keys().map((function(e){var t=i(e).default;o[t.name]=t})),t["a"]=o},c04e:function(e,t,n){var i=n("da84"),o=n("c65b"),r=n("861d"),s=n("d9b5"),a=n("dc4a"),l=n("485a"),c=n("b622"),u=i.TypeError,d=c("toPrimitive");e.exports=function(e,t){if(!r(e)||s(e))return e;var n,i=a(e,d);if(i){if(void 0===t&&(t="default"),n=o(i,e,t),!r(n)||s(n))return n;throw u("Can't convert object to primitive value")}return void 0===t&&(t="number"),l(e,t)}},c061:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.noLabelSetting?e._e():n("el-form-item",{attrs:{label:e.i18nt("designer.setting.label")}},[n("el-input",{attrs:{type:"text"},model:{value:e.optionModel.label,callback:function(t){e.$set(e.optionModel,"label",t)},expression:"optionModel.label"}})],1)},o=[],r=n("79fa"),s={name:"label-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},computed:{noLabelSetting:function(){return"static-text"===this.selectedWidget.type||"html-text"===this.selectedWidget.type}}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"5d9d81e5",null);t["default"]=c.exports},c077:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form-item-wrapper",{attrs:{designer:e.designer,field:e.field,rules:e.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[n("el-cascader",{ref:"fieldEditor",staticClass:"full-width-input",attrs:{options:e.field.options.optionItems,disabled:e.field.options.disabled,size:e.field.options.size,clearable:e.field.options.clearable,filterable:e.field.options.filterable,"show-all-levels":e.showFullPath,props:{checkStrictly:e.field.options.checkStrictly,multiple:e.field.options.multiple,expandTrigger:"hover"},placeholder:e.field.options.placeholder||e.i18nt("render.hint.selectPlaceholder")},on:{"visible-change":e.hideDropDownOnClick,"expand-change":e.hideDropDownOnClick,focus:e.handleFocusCustomEvent,blur:e.handleBlurCustomEvent,change:e.handleChangeEvent},model:{value:e.fieldModel,callback:function(t){e.fieldModel=t},expression:"fieldModel"}})],1)},o=[],r=(n("a9e3"),n("d3b7"),n("159b"),n("9eeb")),s=n("c6e3"),a=n("79fa"),l=n("2d11"),c={name:"cascader-widget",componentName:"FieldWidget",mixins:[s["a"],l["a"],a["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper:r["default"]},inject:["refList","formConfig","globalOptionData","globalModel"],data:function(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{showFullPath:function(){return void 0===this.field.options.showAllLevels||!!this.field.options.showAllLevels}},beforeCreate:function(){},created:function(){this.initOptionItems(),this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted:function(){this.handleOnMounted()},beforeDestroy:function(){this.unregisterFromRefList()},methods:{hideDropDownOnClick:function(){var e=this;setTimeout((function(){document.querySelectorAll(".el-cascader-panel .el-radio").forEach((function(t){t.onclick=function(){e.$refs.fieldEditor.dropDownVisible=!1}}))}),100)}}},u=c,d=(n("dbe8"),n("2877")),h=Object(d["a"])(u,i,o,!1,null,"9fb36e9a",null);t["default"]=h.exports},c1ac:function(e,t,n){"use strict";var i=n("ebb5"),o=n("b727").filter,r=n("1448"),s=i.aTypedArray,a=i.exportTypedArrayMethod;a("filter",(function(e){var t=o(s(this),e,arguments.length>1?arguments[1]:void 0);return r(this,t)}))},c345:function(e,t,n){"use strict";var i=n("c532"),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,r,s={};return e?(i.forEach(e.split("\n"),(function(e){if(r=e.indexOf(":"),t=i.trim(e.substr(0,r)).toLowerCase(),n=i.trim(e.substr(r+1)),t){if(s[t]&&o.indexOf(t)>=0)return;s[t]="set-cookie"===t?(s[t]?s[t]:[]).concat([n]):s[t]?s[t]+", "+n:n}})),s):s}},c391:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:"onFileRemove","label-width":"150px"}},[n("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:"",round:""},on:{click:function(t){return e.editEventHandler("onFileRemove",e.eventParams)}}},[e._v(" "+e._s(e.i18nt("designer.setting.addEventHandler")))])],1)},o=[],r=n("79fa"),s=n("7d6c"),a={name:"onFileRemove-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},data:function(){return{eventParams:["file","fileList"]}}},l=a,c=n("2877"),u=Object(c["a"])(l,i,o,!1,null,"21c42c04",null);t["default"]=u.exports},c3f1:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.responsive")}},[n("el-switch",{model:{value:e.optionModel.responsive,callback:function(t){e.$set(e.optionModel,"responsive",t)},expression:"optionModel.responsive"}})],1)},o=[],r=n("79fa"),s={name:"grid-col-responsive-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"1d360e4e",null);t["default"]=c.exports},c3f8:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:"onSubFormRowInsert","label-width":"150px"}},[n("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:"",round:""},on:{click:function(t){return e.editEventHandler("onSubFormRowInsert",e.eventParams)}}},[e._v(" "+e._s(e.i18nt("designer.setting.addEventHandler")))])],1)},o=[],r=n("79fa"),s=n("7d6c"),a={name:"onSubFormRowInsert-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},data:function(){return{eventParams:["subFormData","newRowId"]}}},l=a,c=n("2877"),u=Object(c["a"])(l,i,o,!1,null,"ae0fbd12",null);t["default"]=u.exports},c401:function(e,t,n){"use strict";var i=n("c532"),o=n("2444");e.exports=function(e,t,n){var r=this||o;return i.forEach(n,(function(n){e=n.call(r,e,t)})),e}},c430:function(e,t){e.exports=!1},c51e:function(e,t,n){},c532:function(e,t,n){"use strict";var i=n("1d2b"),o=Object.prototype.toString;function r(e){return"[object Array]"===o.call(e)}function s(e){return"undefined"===typeof e}function a(e){return null!==e&&!s(e)&&null!==e.constructor&&!s(e.constructor)&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function l(e){return"[object ArrayBuffer]"===o.call(e)}function c(e){return"undefined"!==typeof FormData&&e instanceof FormData}function u(e){var t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function d(e){return"string"===typeof e}function h(e){return"number"===typeof e}function f(e){return null!==e&&"object"===typeof e}function p(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function g(e){return"[object Date]"===o.call(e)}function m(e){return"[object File]"===o.call(e)}function b(e){return"[object Blob]"===o.call(e)}function v(e){return"[object Function]"===o.call(e)}function y(e){return f(e)&&v(e.pipe)}function w(e){return"undefined"!==typeof URLSearchParams&&e instanceof URLSearchParams}function x(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function C(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function _(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),r(e))for(var n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}function k(){var e={};function t(t,n){p(e[n])&&p(t)?e[n]=k(e[n],t):p(t)?e[n]=k({},t):r(t)?e[n]=t.slice():e[n]=t}for(var n=0,i=arguments.length;n<i;n++)_(arguments[n],t);return e}function S(e,t,n){return _(t,(function(t,o){e[o]=n&&"function"===typeof t?i(t,n):t})),e}function O(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}e.exports={isArray:r,isArrayBuffer:l,isBuffer:a,isFormData:c,isArrayBufferView:u,isString:d,isNumber:h,isObject:f,isPlainObject:p,isUndefined:s,isDate:g,isFile:m,isBlob:b,isFunction:v,isStream:y,isURLSearchParams:w,isStandardBrowserEnv:C,forEach:_,merge:k,extend:S,trim:x,stripBOM:O}},c607:function(e,t,n){var i=n("da84"),o=n("83ab"),r=n("fce3"),s=n("c6b6"),a=n("9bf2").f,l=n("69f3").get,c=RegExp.prototype,u=i.TypeError;o&&r&&a(c,"dotAll",{configurable:!0,get:function(){if(this!==c){if("RegExp"===s(this))return!!l(this).dotAll;throw u("Incompatible receiver, RegExp required")}}})},c60b:function(e,t,n){},c610:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.hasConfig("optionItems")?e._e():n("el-form-item",{attrs:{label:e.i18nt("designer.setting.defaultValue")}},[n("el-input",{attrs:{type:"text"},on:{change:e.emitDefaultValueChange},model:{value:e.optionModel.defaultValue,callback:function(t){e.$set(e.optionModel,"defaultValue",t)},expression:"optionModel.defaultValue"}})],1)},o=[],r=n("79fa"),s=n("b2bf"),a={name:"defaultValue-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},l=a,c=n("2877"),u=Object(c["a"])(l,i,o,!1,null,"14ff026e",null);t["default"]=u.exports},c635:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return"static-text"===e.selectedWidget.type?n("el-form-item",{attrs:{label:e.i18nt("designer.setting.textAlign")}},[n("el-radio-group",{staticClass:"radio-group-custom",model:{value:e.optionModel.textAlign,callback:function(t){e.$set(e.optionModel,"textAlign",t)},expression:"optionModel.textAlign"}},[n("el-radio-button",{attrs:{label:"left"}},[e._v(" "+e._s(e.i18nt("designer.setting.leftAlign")))]),n("el-radio-button",{attrs:{label:"center"}},[e._v(" "+e._s(e.i18nt("designer.setting.centerAlign")))]),n("el-radio-button",{attrs:{label:"right"}},[e._v(" "+e._s(e.i18nt("designer.setting.rightAlign")))])],1)],1):e._e()},o=[],r=n("79fa"),s={name:"textAlign-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=(n("e895"),n("2877")),c=Object(l["a"])(a,i,o,!1,null,"2a8305e8",null);t["default"]=c.exports},c65b:function(e,t){var n=Function.prototype.call;e.exports=n.bind?n.bind(n):function(){return n.apply(n,arguments)}},c67a:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:"onSubFormRowAdd","label-width":"150px"}},[n("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:"",round:""},on:{click:function(t){return e.editEventHandler("onSubFormRowAdd",e.eventParams)}}},[e._v(" "+e._s(e.i18nt("designer.setting.addEventHandler")))])],1)},o=[],r=n("79fa"),s=n("7d6c"),a={name:"onSubFormRowAdd-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},data:function(){return{eventParams:["subFormData","newRowId"]}}},l=a,c=n("2877"),u=Object(c["a"])(l,i,o,!1,null,"4e7e840d",null);t["default"]=u.exports},c6b6:function(e,t,n){var i=n("e330"),o=i({}.toString),r=i("".slice);e.exports=function(e){return r(o(e),8,-1)}},c6c1:function(e,t,n){},c6c4:function(e,t,n){},c6cd:function(e,t,n){var i=n("da84"),o=n("ce4e"),r="__core-js_shared__",s=i[r]||o(r,{});e.exports=s},c6d2:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.startPlaceholder")}},[n("el-input",{attrs:{type:"text"},model:{value:e.optionModel.startPlaceholder,callback:function(t){e.$set(e.optionModel,"startPlaceholder",t)},expression:"optionModel.startPlaceholder"}})],1)},o=[],r=n("79fa"),s={name:"startPlaceholder-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"10c0a37e",null);t["default"]=c.exports},c6e3:function(e,t,n){"use strict";n("d3b7"),n("159b"),n("99af");function i(e,t,n){this.$children.forEach((function(o){var r=o.$options.componentName;r===e?(o.$emit.apply(o,[t].concat(n)),i.apply(o,[e,t].concat([n]))):i.apply(o,[e,t].concat([n]))}))}t["a"]={methods:{dispatch:function(e,t,n){var i=this.$parent||this.$root,o=i.$options.componentName;while(i&&(!o||o!==e))i=i.$parent,i&&(o=i.$options.componentName);i&&i.$emit.apply(i,[t].concat(n))},broadcast:function(e,t,n){i.call(this,e,t,n)}}}},c833:function(e,t,n){"use strict";n("98f5")},c885:function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-custom-component",use:"icon-custom-component-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-custom-component"><defs><style type="text/css"></style></defs><path d="M811.008 335.872c-2.048-7.168-11.264-9.216-17.408-4.096L690.176 435.2c-8.192 8.192-20.48 8.192-28.672 0l-72.704-72.704c-8.192-8.192-8.192-20.48 0-28.672l104.448-104.448c5.12-5.12 3.072-14.336-4.096-17.408-17.408-4.096-35.84-7.168-54.272-7.168-108.544 0-195.584 94.208-183.296 204.8 2.048 17.408 6.144 32.768 12.288 48.128L225.28 697.344c-27.648 27.648-27.648 73.728 0 101.376 14.336 14.336 32.768 21.504 51.2 21.504s36.864-7.168 51.2-21.504l238.592-238.592c15.36 6.144 31.744 10.24 48.128 12.288 111.616 12.288 204.8-74.752 204.8-183.296 0-18.432-3.072-36.864-8.192-53.248z" p-id="68660" /></symbol>'});s.a.add(a);t["default"]=a},c8af:function(e,t,n){"use strict";var i=n("c532");e.exports=function(e,t){i.forEach(e,(function(n,i){i!==t&&i.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[i])}))}},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(i){"object"===typeof window&&(n=window)}e.exports=n},c8d2:function(e,t,n){var i=n("5e77").PROPER,o=n("d039"),r=n("5899"),s="
";e.exports=function(e){return o((function(){return!!r[e]()||s[e]()!==s||i&&r[e].name!==e}))}},c9d4:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("container-item-wrapper",{attrs:{widget:e.widget}},[n("div",{directives:[{name:"show",rawName:"v-show",value:!e.widget.options.hidden,expression:"!widget.options.hidden"}],key:e.widget.id,staticClass:"tab-container"},[n("el-tabs",{ref:e.widget.id,class:[e.customClass],attrs:{type:e.widget.displayType},model:{value:e.activeTabName,callback:function(t){e.activeTabName=t},expression:"activeTabName"}},e._l(e.visibleTabs,(function(t,i){return n("el-tab-pane",{key:i,attrs:{label:t.options.label,disabled:t.options.disabled,name:t.options.name}},[e._l(t.widgetList,(function(i,o){return["container"===i.category?[n(e.getComponentByContainer(i),{key:o,tag:"component",attrs:{widget:i,"parent-list":t.widgetList,"index-of-parent-list":o,"parent-widget":e.widget},scopedSlots:e._u([e._l(Object.keys(e.$scopedSlots),(function(t){return{key:t,fn:function(n){return[e._t(t,null,null,n)]}}}))],null,!0)})]:[n(i.type+"-widget",{key:o,tag:"component",attrs:{field:i,"parent-list":t.widgetList,"index-of-parent-list":o,"parent-widget":e.widget},scopedSlots:e._u([e._l(Object.keys(e.$scopedSlots),(function(t){return{key:t,fn:function(n){return[e._t(t,null,null,n)]}}}))],null,!0)})]]}))],2)})),1)],1)])},o=[],r=n("5530"),s=(n("4de4"),n("d3b7"),n("b0c0"),n("c6e3")),a=n("79fa"),l=n("d67f"),c=n("90c2"),u=n("34f0"),d=n("c029"),h={name:"tab-item",componentName:"ContainerItem",mixins:[s["a"],a["b"],l["a"],u["a"]],components:Object(r["a"])({ContainerItemWrapper:c["default"]},d["a"]),props:{widget:Object},inject:["refList","sfRefList","globalModel"],data:function(){return{activeTabName:""}},computed:{visibleTabs:function(){return this.widget.tabs.filter((function(e){return!e.options.hidden}))}},created:function(){this.initRefList()},mounted:function(){this.initActiveTab()},beforeDestroy:function(){this.unregisterFromRefList()},methods:{initActiveTab:function(){if("tab"===this.widget.type&&this.widget.tabs.length>0){var e=this.widget.tabs.filter((function(e){return!0===e.options.active}));e.length>0?this.activeTabName=e[0].options.name:this.activeTabName=this.widget.tabs[0].options.name}}}},f=h,p=n("2877"),g=Object(p["a"])(f,i,o,!1,null,"66f2f987",null);t["default"]=g.exports},ca00:function(e,t,n){"use strict";n.d(t,"o",(function(){return r})),n.d(t,"n",(function(){return s})),n.d(t,"m",(function(){return a})),n.d(t,"f",(function(){return l})),n.d(t,"d",(function(){return c})),n.d(t,"q",(function(){return u})),n.d(t,"e",(function(){return d})),n.d(t,"a",(function(){return h})),n.d(t,"k",(function(){return f})),n.d(t,"l",(function(){return p})),n.d(t,"p",(function(){return g})),n.d(t,"t",(function(){return m})),n.d(t,"s",(function(){return b})),n.d(t,"r",(function(){return v})),n.d(t,"u",(function(){return w})),n.d(t,"h",(function(){return x})),n.d(t,"g",(function(){return C})),n.d(t,"c",(function(){return _})),n.d(t,"j",(function(){return k})),n.d(t,"i",(function(){return S})),n.d(t,"b",(function(){return O}));n("ac1f"),n("00b4"),n("e9c4"),n("d3b7"),n("159b"),n("b64b"),n("b0c0"),n("841c"),n("1276");var i=n("b311"),o=n.n(i);function r(e){return null===e||void 0===e}function s(e){return null!==e&&void 0!==e}function a(e){return void 0===e||!e&&0!==e&&"0"!==e||!/[^\s]/.test(e)}var l=function(){return Math.floor(1e5*Math.random()+2e4*Math.random()+5e3*Math.random())},c=function(e){if(void 0!==e)return JSON.parse(JSON.stringify(e))},u=function(e,t){Object.keys(t).forEach((function(n){e[n]=t[n]}))},d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=new Function("DSV","VFR","return "+e);return i(t,n)},h=function(e){var t=window.onresize;"function"!=typeof window.onresize?window.onresize=e:window.onresize=function(){t(),e()}},f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=document.getElementsByTagName("head")[0],i=document.getElementById("vform-custom-css");i&&n.removeChild(i),t&&(i=document.getElementById("vform-custom-css-"+t),i&&n.removeChild(i));var o=document.createElement("style");o.type="text/css",o.rel="stylesheet",o.id=t?"vform-custom-css-"+t:"vform-custom-css";try{o.appendChild(document.createTextNode(e))}catch(r){o.styleSheet.cssText=e}n.appendChild(o)},p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=document.getElementsByTagName("body")[0],i=document.getElementById("v_form_global_functions");i&&n.removeChild(i),t&&(i=document.getElementById("v_form_global_functions-"+t),i&&n.removeChild(i));var o=document.createElement("script");o.id=t?"v_form_global_functions-"+t:"v_form_global_functions",o.type="text/javascript",o.innerHTML=e,n.appendChild(o)},g=function(e,t){var n=encodeURIComponent(e),i=document.getElementById(n);if(!i){var o=document.createElement("script");o.src=e,o.id=n,document.body.appendChild(o),o.onload=o.onreadystatechange=function(e,n){!n&&o.readyState&&"loaded"!==o.readyState&&"complete"!==o.readyState||(o=o.onload=o.onreadystatechange=null,n||t())}}};function m(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;e&&e.forEach((function(e){e.formItemFlag?t(e,n):"grid"===e.type?e.cols.forEach((function(n){m(n.widgetList,t,e)})):"table"===e.type?e.rows.forEach((function(n){n.cols.forEach((function(n){m(n.widgetList,t,e)}))})):"tab"===e.type?e.tabs.forEach((function(n){m(n.widgetList,t,e)})):("sub-form"===e.type||"container"===e.category)&&m(e.widgetList,t,e)}))}function b(e,t){e&&e.forEach((function(e){"container"===e.category&&t(e),"grid"===e.type?e.cols.forEach((function(e){b(e.widgetList,t)})):"table"===e.type?e.rows.forEach((function(e){e.cols.forEach((function(e){b(e.widgetList,t)}))})):"tab"===e.type?e.tabs.forEach((function(e){b(e.widgetList,t)})):("sub-form"===e.type||"container"===e.category)&&b(e.widgetList,t)}))}function v(e,t){e&&e.forEach((function(e){t(e),"grid"===e.type?e.cols.forEach((function(e){t(e),v(e.widgetList,t)})):"table"===e.type?e.rows.forEach((function(e){e.cols.forEach((function(e){t(e),v(e.widgetList,t)}))})):"tab"===e.type?e.tabs.forEach((function(e){v(e.widgetList,t)})):("sub-form"===e.type||"container"===e.category)&&v(e.widgetList,t)}))}function y(e,t){e.category?w(e,t):e.formItemFlag&&t(e)}function w(e,t){"grid"===e.type?e.cols.forEach((function(e){e.widgetList.forEach((function(e){y(e,t)}))})):"table"===e.type?e.rows.forEach((function(e){e.cols.forEach((function(e){e.widgetList.forEach((function(e){y(e,t)}))}))})):"tab"===e.type?e.tabs.forEach((function(e){e.widgetList.forEach((function(e){y(e,t)}))})):("sub-form"===e.type||"container"===e.category)&&e.widgetList.forEach((function(e){y(e,t)}))}function x(e){if(!e)return[];var t=[],n=function(e){t.push({type:e.type,name:e.options.name,field:e})};return m(e,n),t}function C(e){if(!e)return[];var t=[],n=function(e){t.push({type:e.type,name:e.options.name,container:e})};return b(e,n),t}function _(e,t,n,i,r){var s=new o.a(t.target,{text:function(){return e}});s.on("success",(function(){n.success(i),s.destroy()})),s.on("error",(function(){n.error(r),s.destroy()})),s.onClick(t)}function k(e){for(var t=window.location.search.substring(1),n=t.split("&"),i=0;i<n.length;i++){var o=n[i].split("=");if(o[0]==e)return o[1]}}function S(){return{modelName:"formData",refName:"vForm",rulesName:"rules",labelWidth:80,labelPosition:"left",size:"",labelAlign:"label-left-align",cssCode:"",customClass:[],functions:"",layoutType:"PC",onFormCreated:"",onFormMounted:"",onFormDataChange:""}}function O(){return{widgetList:[],formConfig:c(S())}}},ca84:function(e,t,n){var i=n("e330"),o=n("1a2d"),r=n("fc6a"),s=n("4d64").indexOf,a=n("d012"),l=i([].push);e.exports=function(e,t){var n,i=r(e),c=0,u=[];for(n in i)!o(a,n)&&o(i,n)&&l(u,n);while(t.length>c)o(i,n=t[c++])&&(~s(u,n)||l(u,n));return u}},ca91:function(e,t,n){"use strict";var i=n("ebb5"),o=n("d58f").left,r=i.aTypedArray,s=i.exportTypedArrayMethod;s("reduce",(function(e){var t=arguments.length;return o(r(this),e,t,t>1?arguments[1]:void 0)}))},caad:function(e,t,n){"use strict";var i=n("23e7"),o=n("4d64").includes,r=n("44d2");i({target:"Array",proto:!0},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),r("includes")},cab0:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form-item-wrapper",{attrs:{designer:e.designer,field:e.field,rules:e.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[n("el-time-picker",{ref:"fieldEditor",staticClass:"full-width-input",attrs:{"is-range":"",disabled:e.field.options.disabled,readonly:e.field.options.readonly,size:e.field.options.size,clearable:e.field.options.clearable,editable:e.field.options.editable,format:e.field.options.format,"value-format":"HH:mm:ss","start-placeholder":e.field.options.startPlaceholder||e.i18nt("render.hint.startTimePlaceholder"),"end-placeholder":e.field.options.endPlaceholder||e.i18nt("render.hint.endTimePlaceholder")},on:{focus:e.handleFocusCustomEvent,blur:e.handleBlurCustomEvent,change:e.handleChangeEvent},model:{value:e.fieldModel,callback:function(t){e.fieldModel=t},expression:"fieldModel"}})],1)},o=[],r=(n("a9e3"),n("9eeb")),s=n("c6e3"),a=n("79fa"),l=n("2d11"),c={name:"time-range-widget",componentName:"FieldWidget",mixins:[s["a"],l["a"],a["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper:r["default"]},inject:["refList","formConfig","globalOptionData","globalModel"],data:function(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{},beforeCreate:function(){},created:function(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted:function(){this.handleOnMounted()},beforeDestroy:function(){this.unregisterFromRefList()},methods:{}},u=c,d=(n("4120"),n("2877")),h=Object(d["a"])(u,i,o,!1,null,"68ea79e5",null);t["default"]=h.exports},cbd6:function(e,t,n){"use strict";n("8b39")},cbdd:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.vertical")}},[n("el-switch",{model:{value:e.optionModel.vertical,callback:function(t){e.$set(e.optionModel,"vertical",t)},expression:"optionModel.vertical"}})],1)},o=[],r=n("79fa"),s={name:"vertical-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"8e7b19b4",null);t["default"]=c.exports},cc12:function(e,t,n){var i=n("da84"),o=n("861d"),r=i.document,s=o(r)&&o(r.createElement);e.exports=function(e){return s?r.createElement(e):{}}},cc5f:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.displayType")}},[n("el-select",{model:{value:e.optionModel.type,callback:function(t){e.$set(e.optionModel,"type",t)},expression:"optionModel.type"}},[n("el-option",{attrs:{label:"datetime",value:"datetime"}}),n("el-option",{attrs:{label:"date",value:"date"}}),n("el-option",{attrs:{label:"dates",value:"dates"}}),n("el-option",{attrs:{label:"year",value:"year"}}),n("el-option",{attrs:{label:"month",value:"month"}}),n("el-option",{attrs:{label:"week",value:"week"}})],1)],1)},o=[],r=n("79fa"),s={name:"date-type-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"1eb20f34",null);t["default"]=c.exports},cc78:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.customClass")}},[n("el-select",{attrs:{multiple:"",filterable:"","allow-create":"","default-first-option":""},model:{value:e.optionModel.customClass,callback:function(t){e.$set(e.optionModel,"customClass",t)},expression:"optionModel.customClass"}},e._l(e.cssClassList,(function(e,t){return n("el-option",{key:t,attrs:{label:e,value:e}})})),1)],1)},o=[],r=n("79fa"),s=n("ca00"),a={name:"customClass-editor",componentName:"PropertyEditor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},data:function(){return{cssClassList:[]}},created:function(){var e=this;this.cssClassList=Object(s["d"])(this.designer.getCssClassList()),this.designer.handleEvent("form-css-updated",(function(t){e.cssClassList=t}))}},l=a,c=n("2877"),u=Object(c["a"])(l,i,o,!1,null,"18a2c67d",null);t["default"]=u.exports},cca6:function(e,t,n){var i=n("23e7"),o=n("60da");i({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},cd26:function(e,t,n){"use strict";var i=n("ebb5"),o=i.aTypedArray,r=i.exportTypedArrayMethod,s=Math.floor;r("reverse",(function(){var e,t=this,n=o(t).length,i=s(n/2),r=0;while(r<i)e=t[r],t[r++]=t[--n],t[n]=e;return t}))},cd36:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"container-wrapper",class:[e.customClass]},[e._t("default"),e.designer.selectedId!==e.widget.id||e.widget.internal?e._e():n("div",{staticClass:"container-action"},[n("i",{staticClass:"el-icon-back",attrs:{title:e.i18nt("designer.hint.selectParentWidget")},on:{click:function(t){return t.stopPropagation(),e.selectParentWidget(e.widget)}}}),e.parentList&&e.parentList.length>1?n("i",{staticClass:"el-icon-top",attrs:{title:e.i18nt("designer.hint.moveUpWidget")},on:{click:function(t){return t.stopPropagation(),e.moveUpWidget()}}}):e._e(),e.parentList&&e.parentList.length>1?n("i",{staticClass:"el-icon-bottom",attrs:{title:e.i18nt("designer.hint.moveDownWidget")},on:{click:function(t){return t.stopPropagation(),e.moveDownWidget()}}}):e._e(),"table"===e.widget.type?n("i",{staticClass:"iconfont icon-insertrow",attrs:{title:e.i18nt("designer.hint.insertRow")},on:{click:function(t){return t.stopPropagation(),e.appendTableRow(e.widget)}}}):e._e(),"table"===e.widget.type?n("i",{staticClass:"iconfont icon-insertcolumn",attrs:{title:e.i18nt("designer.hint.insertColumn")},on:{click:function(t){return t.stopPropagation(),e.appendTableCol(e.widget)}}}):e._e(),"grid"===e.widget.type||"table"===e.widget.type?n("i",{staticClass:"el-icon-copy-document",attrs:{title:e.i18nt("designer.hint.cloneWidget")},on:{click:function(t){return t.stopPropagation(),e.cloneContainer(e.widget)}}}):e._e(),n("i",{staticClass:"el-icon-delete",attrs:{title:e.i18nt("designer.hint.remove")},on:{click:function(t){return t.stopPropagation(),e.removeWidget.apply(null,arguments)}}})]),e.designer.selectedId!==e.widget.id||e.widget.internal?e._e():n("div",{staticClass:"drag-handler"},[n("i",{staticClass:"el-icon-rank",attrs:{title:e.i18nt("designer.hint.dragHandler")}}),n("i",[e._v(e._s(e.i18n2t("designer.widgetLabel."+e.widget.type,"extension.widgetLabel."+e.widget.type)))]),!0===e.widget.options.hidden?n("i",{staticClass:"iconfont icon-hide"}):e._e()])],2)},o=[],r=(n("a9e3"),n("a15b"),n("79fa")),s=n("61ca"),a={name:"container-wrapper",mixins:[r["b"],s["a"]],props:{widget:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object},computed:{customClass:function(){return this.widget.options.customClass?this.widget.options.customClass.join(" "):""}}},l=a,c=(n("d49a"),n("2877")),u=Object(c["a"])(l,i,o,!1,null,"b98cf8dc",null);t["default"]=u.exports},cde5:function(e,t,n){"use strict";n("a8a0")},cdf9:function(e,t,n){var i=n("825a"),o=n("861d"),r=n("f069");e.exports=function(e,t){if(i(e),o(t)&&t.constructor===e)return t;var n=r.f(e),s=n.resolve;return s(t),n.promise}},ce37:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.colPullTitle")}},[n("el-input-number",{staticStyle:{width:"100%"},attrs:{min:0,max:24},model:{value:e.optionModel.pull,callback:function(t){e.$set(e.optionModel,"pull",e._n(t))},expression:"optionModel.pull"}})],1)},o=[],r=n("79fa"),s={name:"grid-col-pull-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"5a74fe7e",null);t["default"]=c.exports},ce4e:function(e,t,n){var i=n("da84"),o=Object.defineProperty;e.exports=function(e,t){try{o(i,e,{value:t,configurable:!0,writable:!0})}catch(n){i[e]=t}return t}},ceaf:function(e,t,n){},cee4:function(e,t,n){"use strict";var i=n("c532"),o=n("1d2b"),r=n("0a06"),s=n("4a7b"),a=n("2444");function l(e){var t=new r(e),n=o(r.prototype.request,t);return i.extend(n,r.prototype,t),i.extend(n,t),n}var c=l(a);c.Axios=r,c.create=function(e){return l(s(c.defaults,e))},c.Cancel=n("7a77"),c.CancelToken=n("8df4"),c.isCancel=n("2e67"),c.all=function(e){return Promise.all(e)},c.spread=n("0df6"),c.isAxiosError=n("5f02"),e.exports=c,e.exports.default=c},ceec:function(e,t,n){"use strict";n("ee21")},cf32:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form-item-wrapper",{attrs:{designer:e.designer,field:e.field,rules:e.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[n("el-input-number",{ref:"fieldEditor",staticClass:"full-width-input",attrs:{disabled:e.field.options.disabled,size:e.field.options.size,"controls-position":e.field.options.controlsPosition,placeholder:e.field.options.placeholder,min:e.field.options.min,max:e.field.options.max,precision:e.field.options.precision,step:e.field.options.step},on:{focus:e.handleFocusCustomEvent,blur:e.handleBlurCustomEvent,change:e.handleChangeEvent},model:{value:e.fieldModel,callback:function(t){e.fieldModel=t},expression:"fieldModel"}})],1)},o=[],r=(n("a9e3"),n("9eeb")),s=n("c6e3"),a=n("79fa"),l=n("2d11"),c={name:"number-widget",componentName:"FieldWidget",mixins:[s["a"],l["a"],a["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper:r["default"]},inject:["refList","formConfig","globalOptionData","globalModel"],data:function(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{},beforeCreate:function(){},created:function(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted:function(){this.handleOnMounted()},beforeDestroy:function(){this.unregisterFromRefList()},methods:{}},u=c,d=(n("34c5"),n("2877")),h=Object(d["a"])(u,i,o,!1,null,"a039267e",null);t["default"]=h.exports},d012:function(e,t){e.exports={}},d039:function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},d066:function(e,t,n){var i=n("da84"),o=n("1626"),r=function(e){return o(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?r(i[e]):i[e]&&i[e][t]}},d119:function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-file-upload-field",use:"icon-file-upload-field-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-file-upload-field"><defs><style type="text/css"></style></defs><path d="M676.48 72.96l209.92 211.2 9.6 23.04v620.8l-32 32h-704l-32-32v-832l32-32h494.08l22.4 8.96zM640 320h192l-192-192v192zM192 128v768h640V384H608L576 352V128H192z m512 320H320v64h384V448zM320 576h384v64H320V576z m384 128H320v64h384v-64z" p-id="65361" /></symbol>'});s.a.add(a);t["default"]=a},d139:function(e,t,n){"use strict";var i=n("ebb5"),o=n("b727").find,r=i.aTypedArray,s=i.exportTypedArrayMethod;s("find",(function(e){return o(r(this),e,arguments.length>1?arguments[1]:void 0)}))},d1ba:function(e,t,n){"use strict";n("c6c1")},d1e7:function(e,t,n){"use strict";var i={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,r=o&&!i.call({1:2},1);t.f=r?function(e){var t=o(this,e);return!!t&&t.enumerable}:i},d28b:function(e,t,n){var i=n("746f");i("iterator")},d2bb:function(e,t,n){var i=n("e330"),o=n("825a"),r=n("3bbe");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{e=i(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),e(n,[]),t=n instanceof Array}catch(s){}return function(n,i){return o(n),r(i),t?e(n,i):n.__proto__=i,n}}():void 0)},d2d9:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-form-item",{attrs:{label:e.i18nt("designer.setting.customClass")}},[n("el-select",{attrs:{multiple:"",filterable:"","allow-create":"","default-first-option":""},model:{value:e.optionModel.customClass,callback:function(t){e.$set(e.optionModel,"customClass",t)},expression:"optionModel.customClass"}},e._l(e.cssClassList,(function(e,t){return n("el-option",{key:t,attrs:{label:e,value:e}})})),1)],1),n("el-form-item",{attrs:{label:e.i18nt("designer.setting.tabPaneSetting")}}),n("el-form-item",{staticClass:"panes-setting",attrs:{"label-width":"0"}},[n("draggable",e._b({attrs:{tag:"ul",list:e.selectedWidget.tabs}},"draggable",{group:"panesGroup",ghostClass:"ghost",handle:".drag-option"},!1),[e._l(e.selectedWidget.tabs,(function(t,i){return n("li",{key:i,staticClass:"col-item"},[n("el-checkbox",{staticStyle:{"margin-right":"8px"},attrs:{disabled:""},on:{change:function(n){return e.onTabPaneActiveChange(n,t)}},model:{value:t.options.active,callback:function(n){e.$set(t.options,"active",n)},expression:"tpItem.options.active"}},[e._v(e._s(e.i18nt("designer.setting.paneActive")))]),n("el-input",{staticStyle:{width:"155px"},attrs:{type:"text"},model:{value:t.options.label,callback:function(n){e.$set(t.options,"label",n)},expression:"tpItem.options.label"}}),n("i",{staticClass:"iconfont icon-drag drag-option"}),n("el-button",{staticClass:"col-delete-button",attrs:{circle:"",plain:"",size:"mini",type:"danger",icon:"el-icon-minus"},on:{click:function(t){return e.deleteTabPane(e.selectedWidget,i)}}})],1)})),n("div",[n("el-button",{attrs:{type:"text"},on:{click:function(t){return e.addTabPane(e.selectedWidget)}}},[e._v(e._s(e.i18nt("designer.setting.addTabPane")))])],1)],2)],1)],1)},o=[],r=n("79fa"),s=n("b76a"),a=n.n(s),l=n("ca00"),c={name:"tab-customClass-editor",componentName:"PropertyEditor",mixins:[r["b"]],components:{Draggable:a.a},props:{designer:Object,selectedWidget:Object,optionModel:Object},data:function(){return{cssClassList:[]}},created:function(){var e=this;this.cssClassList=Object(l["d"])(this.designer.getCssClassList()),this.designer.handleEvent("form-css-updated",(function(t){e.cssClassList=t}))},methods:{onTabPaneActiveChange:function(e,t){},addTabPane:function(e){this.designer.addTabPaneOfTabs(e),this.designer.emitHistoryChange()},deleteTabPane:function(e,t){1!==e.tabs.length?(this.designer.deleteTabPaneOfTabs(e,t),this.designer.emitHistoryChange()):this.$message.info(this.i18nt("designer.hint.lastPaneCannotBeDeleted"))}}},u=c,d=(n("fe05"),n("2877")),h=Object(d["a"])(u,i,o,!1,null,"6ddd24c1",null);t["default"]=h.exports},d2e4:function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-textarea-field",use:"icon-textarea-field-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-textarea-field"><defs><style type="text/css"></style></defs><path d="M896.4 173.1H128.9c-35.2 0-49 13.8-49 49v575.6c0 35.2 13.8 49 49 49h767.5c35.2 0 49-13.8 49-49V222.1c0-35.2-13.8-49-49-49z m0 592.6c0 16-12.8 32-32 32H160.9c-19.2 0-32-12.8-32-32V254.1c0-16 12.8-32 32-32h703.5c19.2 0 32 12.8 32 32v511.6z" p-id="12940" /><path d="M710.2 766.7h141.5c8.1 0 14.7-6.6 14.7-14.7V610.4c0-1.3-1.6-2-2.6-1.1L709.1 764.1c-1 1-0.3 2.6 1.1 2.6zM207.2 594.3h-13.5c-10 0-18.2-8.2-18.2-18.2V291.8c0-10.2 8.4-18.6 18.6-18.6h12.8c10.2 0 18.6 8.4 18.6 18.6v284.3c-0.1 10-8.3 18.2-18.3 18.2z" p-id="12941" /></symbol>'});s.a.add(a);t["default"]=a},d312:function(e,t,n){"use strict";n("7873")},d3b7:function(e,t,n){var i=n("00ee"),o=n("6eeb"),r=n("b041");i||o(Object.prototype,"toString",r,{unsafe:!0})},d3eb:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.showStops")}},[n("el-switch",{model:{value:e.optionModel.showStops,callback:function(t){e.$set(e.optionModel,"showStops",t)},expression:"optionModel.showStops"}})],1)},o=[],r=n("79fa"),s={name:"showStops-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"24139f8e",null);t["default"]=c.exports},d3fb:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAWdJREFUeNrsmjFuwjAUhp8jxJQBujQH4ABhYmaDU7Sdu/QIcIKKE0APwM7GEQgLU/dmo0N3178SI0Qx2KpQ8sJ7kpUojsn/2S/JrxeImhRa64lpe13fgLbJsWZVCu+Yzdq0lMlcZ0qpPnai8sAbI/GI1K6EXYG92XSYZfy3WYWuBdAc71kDoFquzo+MaLHx+6H1S9iYNCF6Hxf7w/n180c9otcBUdz+2xdxmOnVJ9Fyd74v4pIu2RdzAFcIgAAIgABUG62qBTz3/c57jGsK8JRKClVgC3I/E+cygPIUEgABEAABEIDGADjrQvlP0XzfkqFjQgMlld7DiXiEC4DF7F8qbMGvbPPbXBjWGMUqBIphoWO8zBzE+1bmQgMpZ8X4XuN4jDyFBEAABEAA7g8giRkDwAPhE9PNzNx/jFmWh5u4c2aO7WdWm0Izhvfv7JBC5SrAVrH9qwGVB6ZYmjqnDTRa8Y2IXwEGAI1dAiVnUcUMAAAAAElFTkSuQmCC"},d44e:function(e,t,n){var i=n("9bf2").f,o=n("1a2d"),r=n("b622"),s=r("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,s)&&i(e,s,{configurable:!0,value:t})}},d459:function(e,t,n){"use strict";n("112c")},d49a:function(e,t,n){"use strict";n("6ce9")},d4c3:function(e,t,n){var i=n("342f"),o=n("da84");e.exports=/ipad|iphone|ipod/i.test(i)&&void 0!==o.Pebble},d53b:function(e,t,n){"use strict";n("f6f1")},d58f:function(e,t,n){var i=n("da84"),o=n("59ed"),r=n("7b0b"),s=n("44ad"),a=n("07fa"),l=i.TypeError,c=function(e){return function(t,n,i,c){o(n);var u=r(t),d=s(u),h=a(u),f=e?h-1:0,p=e?-1:1;if(i<2)while(1){if(f in d){c=d[f],f+=p;break}if(f+=p,e?f<0:h<=f)throw l("Reduce of empty array with no initial value")}for(;e?f>=0:h>f;f+=p)f in d&&(c=n(c,d[f],f,u));return c}};e.exports={left:c(!1),right:c(!0)}},d5d6:function(e,t,n){"use strict";var i=n("ebb5"),o=n("b727").forEach,r=i.aTypedArray,s=i.exportTypedArrayMethod;s("forEach",(function(e){o(r(this),e,arguments.length>1?arguments[1]:void 0)}))},d67b:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form-item-wrapper",{attrs:{designer:e.designer,field:e.field,rules:e.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[n("el-input",{ref:"fieldEditor",staticClass:"hide-spin-button",attrs:{disabled:e.field.options.disabled,readonly:e.field.options.readonly,size:e.field.options.size,type:e.inputType,"show-password":e.field.options.showPassword,placeholder:e.field.options.placeholder,clearable:e.field.options.clearable,minlength:e.field.options.minLength,maxlength:e.field.options.maxLength,"show-word-limit":e.field.options.showWordLimit,"prefix-icon":e.field.options.prefixIcon,"suffix-icon":e.field.options.suffixIcon},on:{focus:e.handleFocusCustomEvent,blur:e.handleBlurCustomEvent,input:e.handleInputCustomEvent,change:e.handleChangeEvent},model:{value:e.fieldModel,callback:function(t){e.fieldModel=t},expression:"fieldModel"}},[e.field.options.appendButton?n("el-button",{class:e.field.options.buttonIcon,attrs:{slot:"append",disabled:e.field.options.disabled||e.field.options.appendButtonDisabled},nativeOn:{click:function(t){return e.emitAppendButtonClick.apply(null,arguments)}},slot:"append"}):e._e()],1)],1)},o=[],r=(n("a9e3"),n("9eeb")),s=n("c6e3"),a=n("79fa"),l=n("2d11"),c={name:"input-widget",componentName:"FieldWidget",mixins:[s["a"],l["a"],a["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper:r["default"]},inject:["refList","formConfig","globalOptionData","globalModel"],data:function(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{inputType:function(){return"number"===this.field.options.type?"text":this.field.options.type}},beforeCreate:function(){},created:function(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted:function(){this.handleOnMounted()},beforeDestroy:function(){this.unregisterFromRefList()},methods:{}},u=c,d=(n("cbd6"),n("2877")),h=Object(d["a"])(u,i,o,!1,null,"97099720",null);t["default"]=h.exports},d67f:function(e,t,n){"use strict";n("b0c0");t["a"]={methods:{initRefList:function(){null!==this.refList&&this.widget.options.name&&(this.refList[this.widget.options.name]=this)},getWidgetRef:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.refList[e];return!n&&t&&this.$message.error(this.i18nt("render.hint.refNotFound")+e),n},getFormRef:function(){return this.refList["v_form_ref"]},getComponentByContainer:function(e){return"grid"===e.type?"vf-grid-item":e.type+"-item"}}}},d6e6:function(e,t,n){},d741:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.withCredentials")}},[n("el-switch",{model:{value:e.optionModel.withCredentials,callback:function(t){e.$set(e.optionModel,"withCredentials",t)},expression:"optionModel.withCredentials"}})],1)},o=[],r=n("79fa"),s={name:"withCredentials-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"3d15893a",null);t["default"]=c.exports},d773:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:"onSubFormRowDelete","label-width":"150px"}},[n("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:"",round:""},on:{click:function(t){return e.editEventHandler("onSubFormRowDelete",e.eventParams)}}},[e._v(" "+e._s(e.i18nt("designer.setting.addEventHandler")))])],1)},o=[],r=n("79fa"),s=n("7d6c"),a={name:"onSubFormRowDelete-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},data:function(){return{eventParams:["subFormData","deletedDataRow"]}}},l=a,c=n("2877"),u=Object(c["a"])(l,i,o,!1,null,"1a13f95e",null);t["default"]=u.exports},d784:function(e,t,n){"use strict";n("ac1f");var i=n("e330"),o=n("6eeb"),r=n("9263"),s=n("d039"),a=n("b622"),l=n("9112"),c=a("species"),u=RegExp.prototype;e.exports=function(e,t,n,d){var h=a(e),f=!s((function(){var t={};return t[h]=function(){return 7},7!=""[e](t)})),p=f&&!s((function(){var t=!1,n=/a/;return"split"===e&&(n={},n.constructor={},n.constructor[c]=function(){return n},n.flags="",n[h]=/./[h]),n.exec=function(){return t=!0,null},n[h](""),!t}));if(!f||!p||n){var g=i(/./[h]),m=t(h,""[e],(function(e,t,n,o,s){var a=i(e),l=t.exec;return l===r||l===u.exec?f&&!s?{done:!0,value:g(t,n,o)}:{done:!0,value:a(n,t,o)}:{done:!1}}));o(String.prototype,e,m[0]),o(u,h,m[1])}d&&l(u[h],"sham",!0)}},d81d:function(e,t,n){"use strict";var i=n("23e7"),o=n("b727").map,r=n("1dde"),s=r("map");i({target:"Array",proto:!0,forced:!s},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},d86b:function(e,t,n){var i=n("d039");e.exports=i((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},d8ec:function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-grid",use:"icon-grid-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-grid"><defs><style type="text/css"></style></defs><path d="M819.3536 921.6h102.4v-102.4h-102.4v102.4z m102.4-204.8h-102.4a102.4 102.4 0 0 0-102.4 102.4v102.4a102.4 102.4 0 0 0 102.4 102.4h102.4a102.4 102.4 0 0 0 102.4-102.4v-102.4a102.4 102.4 0 0 0-102.4-102.4z m-460.8 204.8h102.4v-102.4h-102.4v102.4z m102.4-204.8h-102.4a102.4 102.4 0 0 0-102.4 102.4v102.4a102.4 102.4 0 0 0 102.4 102.4h102.4a102.4 102.4 0 0 0 102.4-102.4v-102.4a102.4 102.4 0 0 0-102.4-102.4z m-460.8 204.8h102.4v-102.4h-102.4v102.4z m102.4-204.8h-102.4a102.4 102.4 0 0 0-102.4 102.4v102.4a102.4 102.4 0 0 0 102.4 102.4h102.4a102.4 102.4 0 0 0 102.4-102.4v-102.4a102.4 102.4 0 0 0-102.4-102.4z m614.4-153.6h102.4V460.8h-102.4v102.4z m102.4-204.8h-102.4a102.4 102.4 0 0 0-102.4 102.4v102.4a102.4 102.4 0 0 0 102.4 102.4h102.4a102.4 102.4 0 0 0 102.4-102.4V460.8a102.4 102.4 0 0 0-102.4-102.4z m-460.8 204.8h102.4V460.8h-102.4v102.4z m102.4-204.8h-102.4a102.4 102.4 0 0 0-102.4 102.4v102.4a102.4 102.4 0 0 0 102.4 102.4h102.4a102.4 102.4 0 0 0 102.4-102.4V460.8a102.4 102.4 0 0 0-102.4-102.4z m-460.8 204.8h102.4V460.8h-102.4v102.4z m102.4-204.8h-102.4a102.4 102.4 0 0 0-102.4 102.4v102.4a102.4 102.4 0 0 0 102.4 102.4h102.4a102.4 102.4 0 0 0 102.4-102.4V460.8a102.4 102.4 0 0 0-102.4-102.4z m614.4-153.6h102.4V102.4h-102.4v102.4z m102.4-204.8h-102.4a102.4 102.4 0 0 0-102.4 102.4v102.4a102.4 102.4 0 0 0 102.4 102.4h102.4a102.4 102.4 0 0 0 102.4-102.4V102.4a102.4 102.4 0 0 0-102.4-102.4z m-460.8 204.8h102.4V102.4h-102.4v102.4z m102.4-204.8h-102.4a102.4 102.4 0 0 0-102.4 102.4v102.4a102.4 102.4 0 0 0 102.4 102.4h102.4a102.4 102.4 0 0 0 102.4-102.4V102.4a102.4 102.4 0 0 0-102.4-102.4z m-460.8 204.8h102.4V102.4h-102.4v102.4z m102.4-204.8h-102.4a102.4 102.4 0 0 0-102.4 102.4v102.4a102.4 102.4 0 0 0 102.4 102.4h102.4a102.4 102.4 0 0 0 102.4-102.4V102.4a102.4 102.4 0 0 0-102.4-102.4z" p-id="8473" /></symbol>'});s.a.add(a);t["default"]=a},d925:function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},d998:function(e,t,n){var i=n("342f");e.exports=/MSIE|Trident/.test(i)},d9b5:function(e,t,n){var i=n("da84"),o=n("d066"),r=n("1626"),s=n("3a9b"),a=n("fdbf"),l=i.Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=o("Symbol");return r(t)&&s(t.prototype,l(e))}},da4e:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form-item-wrapper",{attrs:{designer:e.designer,field:e.field,rules:e.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[n("el-date-picker",{ref:"fieldEditor",staticClass:"full-width-input",attrs:{type:e.field.options.type,readonly:e.field.options.readonly,disabled:e.field.options.disabled,size:e.field.options.size,clearable:e.field.options.clearable,editable:e.field.options.editable,format:e.field.options.format,"value-format":e.field.options.valueFormat,placeholder:e.field.options.placeholder||e.i18nt("render.hint.datePlaceholder")},on:{focus:e.handleFocusCustomEvent,blur:e.handleBlurCustomEvent,change:e.handleChangeEvent},model:{value:e.fieldModel,callback:function(t){e.fieldModel=t},expression:"fieldModel"}})],1)},o=[],r=(n("a9e3"),n("9eeb")),s=n("c6e3"),a=n("79fa"),l=n("2d11"),c={name:"date-widget",componentName:"FieldWidget",mixins:[s["a"],l["a"],a["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper:r["default"]},inject:["refList","formConfig","globalOptionData","globalModel"],data:function(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{},beforeCreate:function(){},created:function(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted:function(){this.handleOnMounted()},beforeDestroy:function(){this.unregisterFromRefList()},methods:{}},u=c,d=(n("38b9"),n("2877")),h=Object(d["a"])(u,i,o,!1,null,"ea728dba",null);t["default"]=h.exports},da84:function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||Function("return this")()}).call(this,n("c8ba"))},db13:function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-sub-form",use:"icon-sub-form-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-sub-form"><defs><style type="text/css"></style></defs><path d="M512 106.666667H112a5.333333 5.333333 0 0 0-5.333333 5.333333v800a5.333333 5.333333 0 0 0 5.333333 5.333333h800a5.333333 5.333333 0 0 0 5.333333-5.333333V112a5.333333 5.333333 0 0 0-5.333333-5.333333z m0 74.666666h325.333333a5.333333 5.333333 0 0 1 5.333334 5.333334v160a5.333333 5.333333 0 0 1-5.333334 5.333333H186.666667a5.333333 5.333333 0 0 1-5.333334-5.333333V186.666667a5.333333 5.333333 0 0 1 5.333334-5.333334z m85.333333 250.666667v405.333333a5.333333 5.333333 0 0 1-5.333333 5.333334H432a5.333333 5.333333 0 0 1-5.333333-5.333334V432a5.333333 5.333333 0 0 1 5.333333-5.333333h160a5.333333 5.333333 0 0 1 5.333333 5.333333z m-410.666666-5.333333h160a5.333333 5.333333 0 0 1 5.333333 5.333333v405.333333a5.333333 5.333333 0 0 1-5.333333 5.333334H186.666667a5.333333 5.333333 0 0 1-5.333334-5.333334V432a5.333333 5.333333 0 0 1 5.333334-5.333333z m485.333333 410.666666V432a5.333333 5.333333 0 0 1 5.333333-5.333333h160a5.333333 5.333333 0 0 1 5.333334 5.333333v405.333333a5.333333 5.333333 0 0 1-5.333334 5.333334h-160a5.333333 5.333333 0 0 1-5.333333-5.333334z" p-id="97355" /></symbol>'});s.a.add(a);t["default"]=a},dbb4:function(e,t,n){var i=n("23e7"),o=n("83ab"),r=n("56ef"),s=n("fc6a"),a=n("06cf"),l=n("8418");i({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(e){var t,n,i=s(e),o=a.f,c=r(i),u={},d=0;while(c.length>d)n=o(i,t=c[d++]),void 0!==n&&l(u,t,n);return u}})},dbe8:function(e,t,n){"use strict";n("9c31")},dc4a:function(e,t,n){var i=n("59ed");e.exports=function(e,t){var n=e[t];return null==n?void 0:i(n)}},dca8:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.appendButtonDisabled")}},[n("el-switch",{model:{value:e.optionModel.appendButtonDisabled,callback:function(t){e.$set(e.optionModel,"appendButtonDisabled",t)},expression:"optionModel.appendButtonDisabled"}})],1)},o=[],r=n("79fa"),s={name:"appendButtonDisabled-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"5ce987da",null);t["default"]=c.exports},ddb0:function(e,t,n){var i=n("da84"),o=n("fdbc"),r=n("785a"),s=n("e260"),a=n("9112"),l=n("b622"),c=l("iterator"),u=l("toStringTag"),d=s.values,h=function(e,t){if(e){if(e[c]!==d)try{a(e,c,d)}catch(i){e[c]=d}if(e[u]||a(e,u,t),o[t])for(var n in s)if(e[n]!==s[n])try{a(e,n,s[n])}catch(i){e[n]=s[n]}}};for(var f in o)h(i[f]&&i[f].prototype,f);h(r,"DOMTokenList")},de19:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("static-content-wrapper",{attrs:{designer:e.designer,field:e.field,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[n("el-divider",{ref:"fieldEditor",attrs:{direction:"horizontal","content-position":e.field.options.contentPosition}},[e._v(" "+e._s(e.field.options.label))])],1)},o=[],r=(n("a9e3"),n("828b")),s=n("c6e3"),a=n("79fa"),l=n("2d11"),c={name:"divider-widget",componentName:"FieldWidget",mixins:[s["a"],l["a"],a["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{StaticContentWrapper:r["default"]},computed:{},beforeCreate:function(){},created:function(){this.registerToRefList(),this.initEventHandler(),this.handleOnCreated()},mounted:function(){this.handleOnMounted()},beforeDestroy:function(){this.unregisterFromRefList()},methods:{}},u=c,d=(n("d1ba"),n("2877")),h=Object(d["a"])(u,i,o,!1,null,"0faf59b2",null);t["default"]=h.exports},df12:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-form-item",{attrs:{label:e.i18nt("designer.setting.htmlContent")}}),n("el-form-item",{attrs:{"label-width":"0"}},[n("el-input",{staticClass:"html-content-editor",attrs:{type:"textarea",rows:5},model:{value:e.optionModel.htmlContent,callback:function(t){e.$set(e.optionModel,"htmlContent",t)},expression:"optionModel.htmlContent"}})],1)],1)},o=[],r=n("79fa"),s={name:"htmlContent-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=(n("effc"),n("2877")),c=Object(l["a"])(a,i,o,!1,null,"a3fcc8ba",null);t["default"]=c.exports},df75:function(e,t,n){var i=n("ca84"),o=n("7839");e.exports=Object.keys||function(e){return i(e,o)}},df7c:function(e,t,n){(function(e){function n(e,t){for(var n=0,i=e.length-1;i>=0;i--){var o=e[i];"."===o?e.splice(i,1):".."===o?(e.splice(i,1),n++):n&&(e.splice(i,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function i(e){"string"!==typeof e&&(e+="");var t,n=0,i=-1,o=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!o){n=t+1;break}}else-1===i&&(o=!1,i=t+1);return-1===i?"":e.slice(n,i)}function o(e,t){if(e.filter)return e.filter(t);for(var n=[],i=0;i<e.length;i++)t(e[i],i,e)&&n.push(e[i]);return n}t.resolve=function(){for(var t="",i=!1,r=arguments.length-1;r>=-1&&!i;r--){var s=r>=0?arguments[r]:e.cwd();if("string"!==typeof s)throw new TypeError("Arguments to path.resolve must be strings");s&&(t=s+"/"+t,i="/"===s.charAt(0))}return t=n(o(t.split("/"),(function(e){return!!e})),!i).join("/"),(i?"/":"")+t||"."},t.normalize=function(e){var i=t.isAbsolute(e),s="/"===r(e,-1);return e=n(o(e.split("/"),(function(e){return!!e})),!i).join("/"),e||i||(e="."),e&&s&&(e+="/"),(i?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(o(e,(function(e,t){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,n){function i(e){for(var t=0;t<e.length;t++)if(""!==e[t])break;for(var n=e.length-1;n>=0;n--)if(""!==e[n])break;return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var o=i(e.split("/")),r=i(n.split("/")),s=Math.min(o.length,r.length),a=s,l=0;l<s;l++)if(o[l]!==r[l]){a=l;break}var c=[];for(l=a;l<o.length;l++)c.push("..");return c=c.concat(r.slice(a)),c.join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){if("string"!==typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,i=-1,o=!0,r=e.length-1;r>=1;--r)if(t=e.charCodeAt(r),47===t){if(!o){i=r;break}}else o=!1;return-1===i?n?"/":".":n&&1===i?"/":e.slice(0,i)},t.basename=function(e,t){var n=i(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){"string"!==typeof e&&(e+="");for(var t=-1,n=0,i=-1,o=!0,r=0,s=e.length-1;s>=0;--s){var a=e.charCodeAt(s);if(47!==a)-1===i&&(o=!1,i=s+1),46===a?-1===t?t=s:1!==r&&(r=1):-1!==t&&(r=-1);else if(!o){n=s+1;break}}return-1===t||-1===i||0===r||1===r&&t===i-1&&t===n+1?"":e.slice(t,i)};var r="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n("4362"))},df90:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.endPlaceholder")}},[n("el-input",{attrs:{type:"text"},model:{value:e.optionModel.endPlaceholder,callback:function(t){e.$set(e.optionModel,"endPlaceholder",t)},expression:"optionModel.endPlaceholder"}})],1)},o=[],r=n("79fa"),s={name:"endPlaceholder-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"373a69c1",null);t["default"]=c.exports},dfb9:function(e,t){e.exports=function(e,t){var n=0,i=t.length,o=new e(i);while(i>n)o[n]=t[n++];return o}},e017:function(e,t,n){(function(t){(function(t,n){e.exports=n()})(0,(function(){"use strict";var e=function(e){var t=e.id,n=e.viewBox,i=e.content;this.id=t,this.viewBox=n,this.content=i};e.prototype.stringify=function(){return this.content},e.prototype.toString=function(){return this.stringify()},e.prototype.destroy=function(){var e=this;["id","viewBox","content"].forEach((function(t){return delete e[t]}))};var n=function(e){var t=!!document.importNode,n=(new DOMParser).parseFromString(e,"image/svg+xml").documentElement;return t?document.importNode(n,!0):n};"undefined"!==typeof window?window:"undefined"!==typeof t||"undefined"!==typeof self&&self;function i(e,t){return t={exports:{}},e(t,t.exports),t.exports}var o=i((function(e,t){(function(t,n){e.exports=n()})(0,(function(){function e(e){var t=e&&"object"===typeof e;return t&&"[object RegExp]"!==Object.prototype.toString.call(e)&&"[object Date]"!==Object.prototype.toString.call(e)}function t(e){return Array.isArray(e)?[]:{}}function n(n,i){var o=i&&!0===i.clone;return o&&e(n)?r(t(n),n,i):n}function i(t,i,o){var s=t.slice();return i.forEach((function(i,a){"undefined"===typeof s[a]?s[a]=n(i,o):e(i)?s[a]=r(t[a],i,o):-1===t.indexOf(i)&&s.push(n(i,o))})),s}function o(t,i,o){var s={};return e(t)&&Object.keys(t).forEach((function(e){s[e]=n(t[e],o)})),Object.keys(i).forEach((function(a){e(i[a])&&t[a]?s[a]=r(t[a],i[a],o):s[a]=n(i[a],o)})),s}function r(e,t,r){var s=Array.isArray(t),a=r||{arrayMerge:i},l=a.arrayMerge||i;return s?Array.isArray(e)?l(e,t,r):n(t,r):o(e,t,r)}return r.all=function(e,t){if(!Array.isArray(e)||e.length<2)throw new Error("first argument should be an array with at least two elements");return e.reduce((function(e,n){return r(e,n,t)}))},r}))})),r=i((function(e,t){var n={svg:{name:"xmlns",uri:"http://www.w3.org/2000/svg"},xlink:{name:"xmlns:xlink",uri:"http://www.w3.org/1999/xlink"}};t.default=n,e.exports=t.default})),s=function(e){return Object.keys(e).map((function(t){var n=e[t].toString().replace(/"/g,""");return t+'="'+n+'"'})).join(" ")},a=r.svg,l=r.xlink,c={};c[a.name]=a.uri,c[l.name]=l.uri;var u=function(e,t){void 0===e&&(e="");var n=o(c,t||{}),i=s(n);return"<svg "+i+">"+e+"</svg>"},d=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var i={isMounted:{}};return i.isMounted.get=function(){return!!this.node},t.createFromExistingNode=function(e){return new t({id:e.getAttribute("id"),viewBox:e.getAttribute("viewBox"),content:e.outerHTML})},t.prototype.destroy=function(){this.isMounted&&this.unmount(),e.prototype.destroy.call(this)},t.prototype.mount=function(e){if(this.isMounted)return this.node;var t="string"===typeof e?document.querySelector(e):e,n=this.render();return this.node=n,t.appendChild(n),n},t.prototype.render=function(){var e=this.stringify();return n(u(e)).childNodes[0]},t.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},Object.defineProperties(t.prototype,i),t}(e);return d}))}).call(this,n("c8ba"))},e01a:function(e,t,n){"use strict";var i=n("23e7"),o=n("83ab"),r=n("da84"),s=n("e330"),a=n("1a2d"),l=n("1626"),c=n("3a9b"),u=n("577e"),d=n("9bf2").f,h=n("e893"),f=r.Symbol,p=f&&f.prototype;if(o&&l(f)&&(!("description"in p)||void 0!==f().description)){var g={},m=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:u(arguments[0]),t=c(p,this)?new f(e):void 0===e?f():f(e);return""===e&&(g[t]=!0),t};h(m,f),m.prototype=p,p.constructor=m;var b="Symbol(test)"==String(f("test")),v=s(p.toString),y=s(p.valueOf),w=/^Symbol\((.*)\)[^)]+$/,x=s("".replace),C=s("".slice);d(p,"description",{configurable:!0,get:function(){var e=y(this),t=v(e);if(a(g,e))return"";var n=b?C(t,7,-1):x(t,w,"$1");return""===n?void 0:n}}),i({global:!0,forced:!0},{Symbol:m})}},e072:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:"onValidate","label-width":"150px"}},[n("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:"",round:""},on:{click:function(t){return e.editEventHandler("onValidate",e.eventParams)}}},[e._v(" "+e._s(e.i18nt("designer.setting.addEventHandler")))])],1)},o=[],r=n("79fa"),s=n("7d6c"),a={name:"onValidate-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},data:function(){return{eventParams:["rule","value","callback"]}}},l=a,c=n("2877"),u=Object(c["a"])(l,i,o,!1,null,"4509c6b4",null);t["default"]=u.exports},e090:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.maxLength")}},[n("el-input",{staticClass:"hide-spin-button",staticStyle:{width:"100%"},attrs:{type:"number",min:"1"},nativeOn:{input:function(t){return e.inputNumberHandler.apply(null,arguments)}},model:{value:e.maxLength,callback:function(t){e.maxLength=t},expression:"maxLength"}})],1)},o=[],r=(n("a9e3"),n("79fa")),s=n("b2bf"),a={name:"maxLength-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},computed:{maxLength:{get:function(){return this.optionModel["maxLength"]},set:function(e){!e||isNaN(e)?this.optionModel.maxLength=null:this.optionModel.maxLength=Number(e)}}}},l=a,c=n("2877"),u=Object(c["a"])(l,i,o,!1,null,"361e66e1",null);t["default"]=u.exports},e0b7:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.defaultValue")}},[n("el-switch",{attrs:{"active-text":"true","inactive-text":"false"},on:{change:e.emitDefaultValueChange},model:{value:e.optionModel.defaultValue,callback:function(t){e.$set(e.optionModel,"defaultValue",t)},expression:"optionModel.defaultValue"}})],1)},o=[],r=n("79fa"),s=n("b2bf"),a={name:"switch-defaultValue-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},l=a,c=n("2877"),u=Object(c["a"])(l,i,o,!1,null,"98bc90ba",null);t["default"]=u.exports},e11b:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("container-wrapper",{attrs:{designer:e.designer,widget:e.widget,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList}},[n("el-row",{key:e.widget.id,staticClass:"grid-container",class:[e.selected?"selected":"",e.customClass],attrs:{gutter:e.widget.options.gutter},nativeOn:{click:function(t){return t.stopPropagation(),e.selectWidget(e.widget)}}},[e._l(e.widget.cols,(function(t,i){return[n("grid-col-widget",{key:t.id,attrs:{widget:t,designer:e.designer,"parent-list":e.widget.cols,"index-of-parent-list":i,"parent-widget":e.widget,"col-height":e.widget.options.colHeight}})]}))],2)],1)},o=[],r=(n("a9e3"),n("79fa")),s=n("f7729"),a=n("61ca"),l=n("cd36"),c=n("26a6"),u={name:"grid-widget",componentName:"ContainerWidget",mixins:[r["b"],a["a"],c["a"]],inject:["refList"],components:{ContainerWrapper:l["default"],GridColWidget:s["default"]},props:{widget:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object},computed:{selected:function(){return this.widget.id===this.designer.selectedId},customClass:function(){return this.widget.options.customClass||""}},watch:{},created:function(){this.initRefList()},mounted:function(){},methods:{}},d=u,h=(n("3c10"),n("2877")),f=Object(h["a"])(d,i,o,!1,null,"ec57838c",null);t["default"]=f.exports},e163:function(e,t,n){var i=n("da84"),o=n("1a2d"),r=n("1626"),s=n("7b0b"),a=n("f772"),l=n("e177"),c=a("IE_PROTO"),u=i.Object,d=u.prototype;e.exports=l?u.getPrototypeOf:function(e){var t=s(e);if(o(t,c))return t[c];var n=t.constructor;return r(n)&&t instanceof n?n.prototype:t instanceof u?d:null}},e177:function(e,t,n){var i=n("d039");e.exports=!i((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},e260:function(e,t,n){"use strict";var i=n("fc6a"),o=n("44d2"),r=n("3f8c"),s=n("69f3"),a=n("7dd0"),l="Array Iterator",c=s.set,u=s.getterFor(l);e.exports=a(Array,"Array",(function(e,t){c(this,{type:l,target:i(e),index:0,kind:t})}),(function(){var e=u(this),t=e.target,n=e.kind,i=e.index++;return!t||i>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:i,done:!1}:"values"==n?{value:t[i],done:!1}:{value:[i,t[i]],done:!1}}),"values"),r.Arguments=r.Array,o("keys"),o("values"),o("entries")},e2cc:function(e,t,n){var i=n("6eeb");e.exports=function(e,t,n){for(var o in t)i(e,o,t[o],n);return e}},e330:function(e,t){var n=Function.prototype,i=n.bind,o=n.call,r=i&&i.bind(o);e.exports=i?function(e){return e&&r(o,e)}:function(e){return e&&function(){return o.apply(e,arguments)}}},e3db:function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},e439:function(e,t,n){var i=n("23e7"),o=n("d039"),r=n("fc6a"),s=n("06cf").f,a=n("83ab"),l=o((function(){s(1)})),c=!a||l;i({target:"Object",stat:!0,forced:c,sham:!a},{getOwnPropertyDescriptor:function(e,t){return s(r(e),t)}})},e447:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-form-item",{attrs:{"label-width":"0"}},[n("el-divider",{staticClass:"custom-divider"},[e._v(e._s(e.i18nt("designer.setting.columnSetting")))])],1),n("el-form-item",{attrs:{label:e.i18nt("designer.setting.gutter")}},[n("el-input-number",{staticStyle:{width:"100%"},model:{value:e.optionModel.gutter,callback:function(t){e.$set(e.optionModel,"gutter",t)},expression:"optionModel.gutter"}})],1),n("el-form-item",{attrs:{label:e.i18nt("designer.setting.colsOfGrid")}}),n("el-form-item",{attrs:{"label-width":"0"}},[e._l(e.selectedWidget.cols,(function(t,i){return n("li",{key:i,staticClass:"col-item"},[n("span",{staticClass:"col-span-title"},[e._v(e._s(e.i18nt("designer.setting.colSpanTitle"))+e._s(i+1))]),n("el-input-number",{staticClass:"cell-span-input",attrs:{min:1,max:24},on:{change:function(n,o){return e.spanChanged(e.selectedWidget,t,i,n,o)}},model:{value:t.options.span,callback:function(n){e.$set(t.options,"span",e._n(n))},expression:"colItem.options.span"}}),n("el-button",{staticClass:"col-delete-button",attrs:{circle:"",plain:"",size:"mini",type:"danger",icon:"el-icon-minus"},on:{click:function(t){return e.deleteCol(e.selectedWidget,i)}}})],1)})),n("div",[n("el-button",{attrs:{type:"text"},on:{click:function(t){return e.addNewCol(e.selectedWidget)}}},[e._v(e._s(e.i18nt("designer.setting.addColumn")))])],1)],2)],1)},o=[],r=(n("d3b7"),n("159b"),n("79fa")),s={name:"gutter-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},methods:{spanChanged:function(e){var t=0;e.cols.forEach((function(e){t+=e.options.span})),t>24&&console.log("列栅格之和超出24"),this.designer.saveCurrentHistoryStep()},deleteCol:function(e,t){this.designer.deleteColOfGrid(e,t),this.designer.emitHistoryChange()},addNewCol:function(e){this.designer.addNewColOfGrid(e),this.designer.emitHistoryChange()}}},a=s,l=(n("2445"),n("2877")),c=Object(l["a"])(a,i,o,!1,null,"ebfa1f06",null);t["default"]=c.exports},e486:function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-node-tree",use:"icon-node-tree-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-node-tree"><defs><style type="text/css"></style></defs><path d="M332.48 500.864a25.6 25.6 0 1 0 0-51.2H192.384v-184.96a115.2 115.2 0 0 0 89.6-112.128c0-63.488-51.712-115.2-115.2-115.2s-115.2 51.712-115.2 115.2a115.2 115.2 0 0 0 89.6 112.128v696.192a25.6 25.6 0 1 0 51.2 0v-141.12c2.304 0.192 4.48 0.512 6.912 0.512h133.184a25.6 25.6 0 1 0 0-51.2H199.296c-3.456 0-5.504-0.448-6.08-0.256a29.184 29.184 0 0 1-0.896-8.576V500.8h140.16zM102.784 152.64c0-35.264 28.736-64 64-64s64 28.736 64 64-28.736 64-64 64-64-28.736-64-64zM921.216 360.064h-486.4c-28.224 0-51.2 22.976-51.2 51.2v128c0 28.224 22.976 51.2 51.2 51.2h486.4c28.224 0 51.2-22.976 51.2-51.2v-128c0-28.224-22.976-51.2-51.2-51.2z m-486.336 179.2v-128h486.4v128h-486.4zM921.216 679.616h-486.4c-28.224 0-51.2 22.976-51.2 51.2v128c0 28.224 22.976 51.2 51.2 51.2h486.4c28.224 0 51.2-22.976 51.2-51.2v-128c0-28.224-22.976-51.2-51.2-51.2z m-486.336 179.2v-128h486.4v128h-486.4z" p-id="4876" /></symbol>'});s.a.add(a);t["default"]=a},e538:function(e,t,n){var i=n("b622");t.f=i},e58c:function(e,t,n){"use strict";var i=n("2ba4"),o=n("fc6a"),r=n("5926"),s=n("07fa"),a=n("a640"),l=Math.min,c=[].lastIndexOf,u=!!c&&1/[1].lastIndexOf(1,-0)<0,d=a("lastIndexOf"),h=u||!d;e.exports=h?function(e){if(u)return i(c,this,arguments)||0;var t=o(this),n=s(t),a=n-1;for(arguments.length>1&&(a=l(a,r(arguments[1]))),a<0&&(a=n+a);a>=0;a--)if(a in t&&t[a]===e)return a||0;return-1}:c},e632:function(e,t,n){},e667:function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},e683:function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},e6cf:function(e,t,n){"use strict";var i,o,r,s,a=n("23e7"),l=n("c430"),c=n("da84"),u=n("d066"),d=n("c65b"),h=n("fea9"),f=n("6eeb"),p=n("e2cc"),g=n("d2bb"),m=n("d44e"),b=n("2626"),v=n("59ed"),y=n("1626"),w=n("861d"),x=n("19aa"),C=n("8925"),_=n("2266"),k=n("1c7e"),S=n("4840"),O=n("2cf4").set,E=n("b575"),L=n("cdf9"),M=n("44de"),A=n("f069"),T=n("e667"),R=n("69f3"),$=n("94ca"),F=n("b622"),j=n("6069"),I=n("605d"),q=n("2d00"),P=F("species"),N="Promise",D=R.getterFor(N),W=R.set,B=R.getterFor(N),H=h&&h.prototype,z=h,V=H,U=c.TypeError,K=c.document,G=c.process,Y=A.f,J=Y,X=!!(K&&K.createEvent&&c.dispatchEvent),Z=y(c.PromiseRejectionEvent),Q="unhandledrejection",ee="rejectionhandled",te=0,ne=1,ie=2,oe=1,re=2,se=!1,ae=$(N,(function(){var e=C(z),t=e!==String(z);if(!t&&66===q)return!0;if(l&&!V["finally"])return!0;if(q>=51&&/native code/.test(e))return!1;var n=new z((function(e){e(1)})),i=function(e){e((function(){}),(function(){}))},o=n.constructor={};return o[P]=i,se=n.then((function(){}))instanceof i,!se||!t&&j&&!Z})),le=ae||!k((function(e){z.all(e)["catch"]((function(){}))})),ce=function(e){var t;return!(!w(e)||!y(t=e.then))&&t},ue=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;E((function(){var i=e.value,o=e.state==ne,r=0;while(n.length>r){var s,a,l,c=n[r++],u=o?c.ok:c.fail,h=c.resolve,f=c.reject,p=c.domain;try{u?(o||(e.rejection===re&&pe(e),e.rejection=oe),!0===u?s=i:(p&&p.enter(),s=u(i),p&&(p.exit(),l=!0)),s===c.promise?f(U("Promise-chain cycle")):(a=ce(s))?d(a,s,h,f):h(s)):f(i)}catch(g){p&&!l&&p.exit(),f(g)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&he(e)}))}},de=function(e,t,n){var i,o;X?(i=K.createEvent("Event"),i.promise=t,i.reason=n,i.initEvent(e,!1,!0),c.dispatchEvent(i)):i={promise:t,reason:n},!Z&&(o=c["on"+e])?o(i):e===Q&&M("Unhandled promise rejection",n)},he=function(e){d(O,c,(function(){var t,n=e.facade,i=e.value,o=fe(e);if(o&&(t=T((function(){I?G.emit("unhandledRejection",i,n):de(Q,n,i)})),e.rejection=I||fe(e)?re:oe,t.error))throw t.value}))},fe=function(e){return e.rejection!==oe&&!e.parent},pe=function(e){d(O,c,(function(){var t=e.facade;I?G.emit("rejectionHandled",t):de(ee,t,e.value)}))},ge=function(e,t,n){return function(i){e(t,i,n)}},me=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=ie,ue(e,!0))},be=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw U("Promise can't be resolved itself");var i=ce(t);i?E((function(){var n={done:!1};try{d(i,t,ge(be,n,e),ge(me,n,e))}catch(o){me(n,o,e)}})):(e.value=t,e.state=ne,ue(e,!1))}catch(o){me({done:!1},o,e)}}};if(ae&&(z=function(e){x(this,V),v(e),d(i,this);var t=D(this);try{e(ge(be,t),ge(me,t))}catch(n){me(t,n)}},V=z.prototype,i=function(e){W(this,{type:N,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:te,value:void 0})},i.prototype=p(V,{then:function(e,t){var n=B(this),i=n.reactions,o=Y(S(this,z));return o.ok=!y(e)||e,o.fail=y(t)&&t,o.domain=I?G.domain:void 0,n.parent=!0,i[i.length]=o,n.state!=te&&ue(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new i,t=D(e);this.promise=e,this.resolve=ge(be,t),this.reject=ge(me,t)},A.f=Y=function(e){return e===z||e===r?new o(e):J(e)},!l&&y(h)&&H!==Object.prototype)){s=H.then,se||(f(H,"then",(function(e,t){var n=this;return new z((function(e,t){d(s,n,e,t)})).then(e,t)}),{unsafe:!0}),f(H,"catch",V["catch"],{unsafe:!0}));try{delete H.constructor}catch(ve){}g&&g(H,V)}a({global:!0,wrap:!0,forced:ae},{Promise:z}),m(z,N,!1,!0),b(N),r=u(N),a({target:N,stat:!0,forced:ae},{reject:function(e){var t=Y(this);return d(t.reject,void 0,e),t.promise}}),a({target:N,stat:!0,forced:l||ae},{resolve:function(e){return L(l&&this===r?z:this,e)}}),a({target:N,stat:!0,forced:le},{all:function(e){var t=this,n=Y(t),i=n.resolve,o=n.reject,r=T((function(){var n=v(t.resolve),r=[],s=0,a=1;_(e,(function(e){var l=s++,c=!1;a++,d(n,t,e).then((function(e){c||(c=!0,r[l]=e,--a||i(r))}),o)})),--a||i(r)}));return r.error&&o(r.value),n.promise},race:function(e){var t=this,n=Y(t),i=n.reject,o=T((function(){var o=v(t.resolve);_(e,(function(e){d(o,t,e).then(n.resolve,i)}))}));return o.error&&i(o.value),n.promise}})},e801:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.labelWidth")}},[n("el-input",{staticClass:"hide-spin-button",attrs:{type:"number",min:"0"},nativeOn:{input:function(t){return e.inputNumberHandler.apply(null,arguments)}},model:{value:e.optionModel.labelWidth,callback:function(t){e.$set(e.optionModel,"labelWidth",t)},expression:"optionModel.labelWidth"}})],1)},o=[],r=n("79fa"),s=n("b2bf"),a={name:"labelWidth-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},l=a,c=n("2877"),u=Object(c["a"])(l,i,o,!1,null,"39b735cc",null);t["default"]=u.exports},e85f:function(e,t,n){"use strict";n("2921")},e86f:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.multiple")}},[n("el-switch",{on:{change:e.onMultipleSelected},model:{value:e.optionModel.multiple,callback:function(t){e.$set(e.optionModel,"multiple",t)},expression:"optionModel.multiple"}})],1)},o=[],r=n("79fa"),s=n("b2bf"),a={name:"multiple-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},l=a,c=n("2877"),u=Object(c["a"])(l,i,o,!1,null,"30a47068",null);t["default"]=u.exports},e893:function(e,t,n){var i=n("1a2d"),o=n("56ef"),r=n("06cf"),s=n("9bf2");e.exports=function(e,t){for(var n=o(t),a=s.f,l=r.f,c=0;c<n.length;c++){var u=n[c];i(e,u)||a(e,u,l(t,u))}}},e894:function(e,t,n){"use strict";n("4ef4")},e895:function(e,t,n){"use strict";n("3cd5")},e8b5:function(e,t,n){var i=n("c6b6");e.exports=Array.isArray||function(e){return"Array"==i(e)}},e8d7:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.showAllLevels")}},[n("el-switch",{model:{value:e.optionModel.showAllLevels,callback:function(t){e.$set(e.optionModel,"showAllLevels",t)},expression:"optionModel.showAllLevels"}})],1)},o=[],r=n("79fa"),s={name:"showAllLevels-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"1f0743ee",null);t["default"]=c.exports},e905:function(e,t,n){},e91f:function(e,t,n){"use strict";var i=n("ebb5"),o=n("4d64").indexOf,r=i.aTypedArray,s=i.exportTypedArrayMethod;s("indexOf",(function(e){return o(r(this),e,arguments.length>1?arguments[1]:void 0)}))},e934:function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-section",use:"icon-section-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-section"><defs><style type="text/css"></style></defs><path d="M141.074286 906.496h741.851428c89.581714 0 134.582857-44.562286 134.582857-132.845714V250.331429c0-88.283429-45.001143-132.845714-134.582857-132.845715H141.074286C51.931429 117.504 6.491429 161.645714 6.491429 250.331429V773.668571c0 88.704 45.44 132.845714 134.582857 132.845715z m1.28-68.992c-42.861714 0-66.852571-22.710857-66.852572-67.291429V253.805714c0-44.580571 23.990857-67.291429 66.852572-67.291428h739.291428c42.422857 0 66.852571 22.710857 66.852572 67.291428V770.194286c0 44.580571-24.429714 67.291429-66.852572 67.291428z" p-id="11329" /></symbol>'});s.a.add(a);t["default"]=a},e95a:function(e,t,n){var i=n("b622"),o=n("3f8c"),r=i("iterator"),s=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||s[r]===e)}},e96c:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.activeText")}},[n("el-input",{model:{value:e.optionModel.activeText,callback:function(t){e.$set(e.optionModel,"activeText",t)},expression:"optionModel.activeText"}})],1)},o=[],r=n("79fa"),s={name:"activeText-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"2684f3ad",null);t["default"]=c.exports},e9c4:function(e,t,n){var i=n("23e7"),o=n("da84"),r=n("d066"),s=n("2ba4"),a=n("e330"),l=n("d039"),c=o.Array,u=r("JSON","stringify"),d=a(/./.exec),h=a("".charAt),f=a("".charCodeAt),p=a("".replace),g=a(1..toString),m=/[\uD800-\uDFFF]/g,b=/^[\uD800-\uDBFF]$/,v=/^[\uDC00-\uDFFF]$/,y=function(e,t,n){var i=h(n,t-1),o=h(n,t+1);return d(b,e)&&!d(v,o)||d(v,e)&&!d(b,i)?"\\u"+g(f(e,0),16):e},w=l((function(){return'"\\udf06\\ud834"'!==u("\udf06\ud834")||'"\\udead"'!==u("\udead")}));u&&i({target:"JSON",stat:!0,forced:w},{stringify:function(e,t,n){for(var i=0,o=arguments.length,r=c(o);i<o;i++)r[i]=arguments[i];var a=s(u,null,r);return"string"==typeof a?p(a,m,y):a}})},eac5:function(e,t,n){var i=n("861d"),o=Math.floor;e.exports=Number.isInteger||function(e){return!i(e)&&isFinite(e)&&o(e)===e}},eb5e:function(e,t,n){},ebb5:function(e,t,n){"use strict";var i,o,r,s=n("a981"),a=n("83ab"),l=n("da84"),c=n("1626"),u=n("861d"),d=n("1a2d"),h=n("f5df"),f=n("0d51"),p=n("9112"),g=n("6eeb"),m=n("9bf2").f,b=n("3a9b"),v=n("e163"),y=n("d2bb"),w=n("b622"),x=n("90e3"),C=l.Int8Array,_=C&&C.prototype,k=l.Uint8ClampedArray,S=k&&k.prototype,O=C&&v(C),E=_&&v(_),L=Object.prototype,M=l.TypeError,A=w("toStringTag"),T=x("TYPED_ARRAY_TAG"),R=x("TYPED_ARRAY_CONSTRUCTOR"),$=s&&!!y&&"Opera"!==h(l.opera),F=!1,j={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},I={BigInt64Array:8,BigUint64Array:8},q=function(e){if(!u(e))return!1;var t=h(e);return"DataView"===t||d(j,t)||d(I,t)},P=function(e){if(!u(e))return!1;var t=h(e);return d(j,t)||d(I,t)},N=function(e){if(P(e))return e;throw M("Target is not a typed array")},D=function(e){if(c(e)&&(!y||b(O,e)))return e;throw M(f(e)+" is not a typed array constructor")},W=function(e,t,n){if(a){if(n)for(var i in j){var o=l[i];if(o&&d(o.prototype,e))try{delete o.prototype[e]}catch(r){}}E[e]&&!n||g(E,e,n?t:$&&_[e]||t)}},B=function(e,t,n){var i,o;if(a){if(y){if(n)for(i in j)if(o=l[i],o&&d(o,e))try{delete o[e]}catch(r){}if(O[e]&&!n)return;try{return g(O,e,n?t:$&&O[e]||t)}catch(r){}}for(i in j)o=l[i],!o||o[e]&&!n||g(o,e,t)}};for(i in j)o=l[i],r=o&&o.prototype,r?p(r,R,o):$=!1;for(i in I)o=l[i],r=o&&o.prototype,r&&p(r,R,o);if((!$||!c(O)||O===Function.prototype)&&(O=function(){throw M("Incorrect invocation")},$))for(i in j)l[i]&&y(l[i],O);if((!$||!E||E===L)&&(E=O.prototype,$))for(i in j)l[i]&&y(l[i].prototype,E);if($&&v(S)!==E&&y(S,E),a&&!d(E,A))for(i in F=!0,m(E,A,{get:function(){return u(this)?this[T]:void 0}}),j)l[i]&&p(l[i],T,i);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:$,TYPED_ARRAY_CONSTRUCTOR:R,TYPED_ARRAY_TAG:F&&T,aTypedArray:N,aTypedArrayConstructor:D,exportTypedArrayMethod:W,exportTypedArrayStaticMethod:B,isView:q,isTypedArray:P,TypedArray:O,TypedArrayPrototype:E}},ecaa:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form-item-wrapper",{attrs:{designer:e.designer,field:e.field,rules:e.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[n("el-switch",{ref:"fieldEditor",attrs:{disabled:e.field.options.disabled,"active-text":e.field.options.activeText,"inactive-text":e.field.options.inactiveText,"active-color":e.field.options.activeColor,"inactive-color":e.field.options.inactiveColor,width:e.field.options.switchWidth},on:{change:e.handleChangeEvent},model:{value:e.fieldModel,callback:function(t){e.fieldModel=t},expression:"fieldModel"}})],1)},o=[],r=(n("a9e3"),n("9eeb")),s=n("c6e3"),a=n("79fa"),l=n("2d11"),c={name:"switch-widget",componentName:"FieldWidget",mixins:[s["a"],l["a"],a["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper:r["default"]},inject:["refList","formConfig","globalOptionData","globalModel"],data:function(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{},beforeCreate:function(){},created:function(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted:function(){this.handleOnMounted()},beforeDestroy:function(){this.unregisterFromRefList()},methods:{}},u=c,d=(n("7b2c"),n("2877")),h=Object(d["a"])(u,i,o,!1,null,"88bb0ad8",null);t["default"]=h.exports},ecf2:function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-slot-field",use:"icon-slot-field-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-slot-field"><defs><style type="text/css"></style></defs><path d="M475.937391 244.869565m18.031305 0l36.285217 0q18.031304 0 18.031304 18.031305l0 217.266087q0 18.031304-18.031304 18.031304l-36.285217 0q-18.031304 0-18.031305-18.031304l0-217.266087q0-18.031304 18.031305-18.031305Z" p-id="2852" /><path d="M305.41913 525.801739m18.031305 0l36.285217 0q18.031304 0 18.031305 18.031304l0 217.266087q0 18.031304-18.031305 18.031305l-36.285217 0q-18.031304 0-18.031305-18.031305l0-217.266087q0-18.031304 18.031305-18.031304Z" p-id="2853" /><path d="M646.233043 525.801739m18.031305 0l36.285217 0q18.031304 0 18.031305 18.031304l0 217.266087q0 18.031304-18.031305 18.031305l-36.285217 0q-18.031304 0-18.031305-18.031305l0-217.266087q0-18.031304 18.031305-18.031304Z" p-id="2854" /><path d="M827.436522 122.212174H196.563478a74.573913 74.573913 0 0 0-74.351304 74.351304v630.873044a74.573913 74.573913 0 0 0 74.351304 74.351304h630.873044a74.573913 74.573913 0 0 0 74.351304-74.351304V196.563478a74.573913 74.573913 0 0 0-74.351304-74.351304z m52.090435 705.224348a52.090435 52.090435 0 0 1-52.090435 52.090435H196.563478a52.090435 52.090435 0 0 1-52.090435-52.090435V196.563478a52.090435 52.090435 0 0 1 52.090435-52.090435h630.873044a52.090435 52.090435 0 0 1 52.090435 52.090435z" p-id="2855" /></symbol>'});s.a.add(a);t["default"]=a},ee21:function(e,t,n){},efdc:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("container-item-wrapper",{attrs:{widget:e.widget}},[n("div",{directives:[{name:"show",rawName:"v-show",value:!e.widget.options.hidden,expression:"!widget.options.hidden"}],key:e.widget.id,staticClass:"sub-form-container"},[n("el-row",{staticClass:"header-row"},[n("div",{staticClass:"action-header-column"},[n("span",{staticClass:"action-label"},[e._v(e._s(e.i18nt("render.hint.subFormAction")))]),n("el-button",{staticClass:"action-button",attrs:{disabled:e.actionDisabled,round:"",type:"primary",size:"mini",title:e.i18nt("render.hint.subFormAddActionHint")},on:{click:e.addSubFormRow}},[e._v(" "+e._s(e.i18nt("render.hint.subFormAddAction"))),n("i",{staticClass:"el-icon-plus el-icon-right"})])],1),e._l(e.widget.widgetList,(function(t){return[n("div",{key:t.id+"thc",staticClass:"field-header-column",class:[e.getLabelAlign(e.widget,t),t.options.required?"is-required":""],style:{width:t.options.columnWidth}},[t.options.labelIconClass?n("span",{staticClass:"custom-label"},["front"===t.options.labelIconPosition?[t.options.labelTooltip?[n("el-tooltip",{attrs:{content:t.options.labelTooltip,effect:"light"}},[n("i",{class:t.options.labelIconClass})]),e._v(e._s(t.options.label))]:[n("i",{class:t.options.labelIconClass}),e._v(e._s(t.options.label))]]:"rear"===t.options.labelIconPosition?[t.options.labelTooltip?[e._v(" "+e._s(t.options.label)),n("el-tooltip",{attrs:{content:t.options.labelTooltip,effect:"light"}},[n("i",{class:t.options.labelIconClass})])]:[e._v(" "+e._s(t.options.label)),n("i",{class:t.options.labelIconClass})]]:e._e()],2):[n("span",{attrs:{title:t.options.labelTooltip}},[e._v(e._s(t.options.label))])]],2)]}))],2),e._l(e.rowIdData,(function(t,i){return n("el-row",{key:t,staticClass:"sub-form-row"},[n("div",{staticClass:"sub-form-action-column hide-label"},[n("div",{staticClass:"action-button-column"},[n("el-button",{attrs:{disabled:e.actionDisabled,circle:"",type:"",icon:"el-icon-circle-plus-outline",title:e.i18nt("render.hint.insertSubFormRow")},on:{click:function(t){return e.insertSubFormRow(i)}}}),n("el-button",{attrs:{disabled:e.actionDisabled,circle:"",type:"",icon:"el-icon-delete",title:e.i18nt("render.hint.deleteSubFormRow")},on:{click:function(t){return e.deleteSubFormRow(i)}}}),e.widget.options.showRowNumber?n("span",{staticClass:"row-number-span"},[e._v("#"+e._s(i+1))]):e._e()],1)]),e._l(e.widget.widgetList,(function(o,r){return[n("div",{key:o.id+"tc"+t,staticClass:"sub-form-table-column hide-label",style:{width:o.options.columnWidth}},[n(o.type+"-widget",{key:e.fieldSchemaData[i][r].id,tag:"component",attrs:{field:e.fieldSchemaData[i][r],"parent-list":e.widget.widgetList,"index-of-parent-list":r,"parent-widget":e.widget,"sub-form-row-id":t,"sub-form-row-index":i,"sub-form-col-index":r}})],1)]}))],2)}))],2)])},o=[],r=n("5530"),s=(n("b0c0"),n("a434"),n("d3b7"),n("159b"),n("c6e3")),a=n("79fa"),l=n("ca00"),c=n("d67f"),u=n("90c2"),d=n("34f0"),h=n("c029"),f={name:"sub-form-item",componentName:"ContainerItem",mixins:[s["a"],a["b"],c["a"],d["a"]],components:Object(r["a"])({ContainerItemWrapper:u["default"]},h["a"]),props:{widget:Object},inject:["refList","sfRefList","globalModel"],data:function(){return{rowIdData:[],fieldSchemaData:[],actionDisabled:!1}},created:function(){this.initRefList(),this.registerSubFormToRefList(),this.initRowIdData(!0),this.initFieldSchemaData(),this.initEventHandler()},mounted:function(){this.handleSubFormFirstRowAdd()},beforeDestroy:function(){this.unregisterFromRefList()},methods:{getLabelAlign:function(e,t){return t.options.labelAlign||e.options.labelAlign},registerSubFormToRefList:function(){"sub-form"===this.widget.type&&(this.sfRefList[this.widget.options.name]=this)},initRowIdData:function(e){var t=this;if("sub-form"===this.widget.type){this.rowIdData.splice(0,this.rowIdData.length);var n=this.formModel[this.widget.options.name];n&&n.length>0&&(n.forEach((function(){t.rowIdData.push("id"+Object(l["f"])())})),e&&setTimeout((function(){t.handleSubFormRowChange(n)}),800))}},addToRowIdData:function(){this.rowIdData.push("id"+Object(l["f"])())},insertToRowIdData:function(e){this.rowIdData.splice(e,0,"id"+Object(l["f"])())},deleteFromRowIdData:function(e){this.rowIdData.splice(e,1)},getRowIdData:function(){return this.rowIdData},getWidgetRefOfSubForm:function(e,t){var n=e+"@row"+this.rowIdData[t];return this.getWidgetRef(n)},initFieldSchemaData:function(){var e=this;if("sub-form"===this.widget.type){var t=this.rowIdData.length;if(this.fieldSchemaData.splice(0,this.fieldSchemaData.length),t>0)for(var n=function(t){var n=[];e.widget.widgetList.forEach((function(t){n.push(e.cloneFieldSchema(t))})),e.fieldSchemaData.push(n)},i=0;i<t;i++)n(i)}},addToFieldSchemaData:function(e){var t=this,n=[];this.widget.widgetList.forEach((function(e){n.push(t.cloneFieldSchema(e))})),void 0===e?this.fieldSchemaData.push(n):this.fieldSchemaData.splice(e,0,n)},deleteFromFieldSchemaData:function(e){this.fieldSchemaData.splice(e,1)},cloneFieldSchema:function(e){var t=Object(l["d"])(e);return t.id=e.type+Object(l["f"])(),t},initEventHandler:function(){var e=this;"sub-form"===this.widget.type&&this.$on("setFormData",(function(t){e.initRowIdData(!1),e.initFieldSchemaData();var n=t[e.widget.options.name]||[];setTimeout((function(){e.handleSubFormRowChange(n)}),800)}))},handleSubFormFirstRowAdd:function(){if("sub-form"===this.widget.type&&this.widget.options.showBlankRow&&1===this.rowIdData.length){var e=this.formModel[this.widget.options.name]||[];this.handleSubFormRowAdd(e,this.rowIdData[0]),this.handleSubFormRowChange(e)}},addSubFormRow:function(){var e={};this.widget.widgetList.forEach((function(t){t.formItemFlag&&(e[t.options.name]=t.options.defaultValue)}));var t=this.formModel[this.widget.options.name]||[];t.push(e),this.addToRowIdData(),this.addToFieldSchemaData(),this.handleSubFormRowAdd(t,this.rowIdData[t.length-1]),this.handleSubFormRowChange(t)},insertSubFormRow:function(e){var t={};this.widget.widgetList.forEach((function(e){e.formItemFlag&&(t[e.options.name]=e.options.defaultValue)}));var n=this.formModel[this.widget.options.name]||[];n.splice(e,0,t),this.insertToRowIdData(e),this.addToFieldSchemaData(e),this.handleSubFormRowInsert(n,this.rowIdData[e]),this.handleSubFormRowChange(n)},deleteSubFormRow:function(e){var t=this;this.$confirm(this.i18nt("render.hint.deleteSubFormRow")+"?",this.i18nt("render.hint.prompt"),{confirmButtonText:this.i18nt("render.hint.confirm"),cancelButtonText:this.i18nt("render.hint.cancel")}).then((function(){var n=t.formModel[t.widget.options.name]||[],i=Object(l["d"])(n[e]);n.splice(e,1),t.deleteFromRowIdData(e),t.deleteFromFieldSchemaData(e),t.handleSubFormRowDelete(n,i),t.handleSubFormRowChange(n)})).catch((function(){}))},handleSubFormRowChange:function(e){if(this.widget.options.onSubFormRowChange){var t=new Function("subFormData",this.widget.options.onSubFormRowChange);t.call(this,e)}},handleSubFormRowAdd:function(e,t){if(this.widget.options.onSubFormRowAdd){var n=new Function("subFormData","newRowId",this.widget.options.onSubFormRowAdd);n.call(this,e,t)}},handleSubFormRowInsert:function(e,t){if(this.widget.options.onSubFormRowInsert){var n=new Function("subFormData","newRowId",this.widget.options.onSubFormRowInsert);n.call(this,e,t)}},handleSubFormRowDelete:function(e,t){if(this.widget.options.onSubFormRowDelete){var n=new Function("subFormData","deletedDataRow",this.widget.options.onSubFormRowDelete);n.call(this,e,t)}}}},p=f,g=(n("d459"),n("2877")),m=Object(g["a"])(p,i,o,!1,null,"7dbaba43",null);t["default"]=m.exports},effc:function(e,t,n){"use strict";n("3559")},f069:function(e,t,n){"use strict";var i=n("59ed"),o=function(e){var t,n;this.promise=new e((function(e,i){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=i})),this.resolve=i(t),this.reject=i(n)};e.exports.f=function(e){return new o(e)}},f0c7:function(e,t,n){},f0d9:function(e,t,n){"use strict";t.__esModule=!0,t.default={el:{colorpicker:{confirm:"确定",clear:"清空"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!"},upload:{deleteTip:"按 delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"},empty:{description:"暂无数据"}}}},f14c:function(e,t,n){(function(e){ace.define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var i=e("../lib/oop"),o=e("./text_highlight_rules").TextHighlightRules,r=function(){this.$rules={start:[{token:"comment.doc.tag",regex:"@[\\w\\d_]+"},r.getTagRule(),{defaultToken:"comment.doc",caseInsensitive:!0}]}};i.inherits(r,o),r.getTagRule=function(e){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},r.getStartRule=function(e){return{token:"comment.doc",regex:"\\/\\*(?=\\*)",next:e}},r.getEndRule=function(e){return{token:"comment.doc",regex:"\\*\\/",next:e}},t.DocCommentHighlightRules=r})),ace.define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/doc_comment_highlight_rules","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";function i(){var e=l.replace("\\d","\\d\\-"),t={onMatch:function(e,t,n){var i="/"==e.charAt(1)?2:1;return 1==i?(t!=this.nextState?n.unshift(this.next,this.nextState,0):n.unshift(this.next),n[2]++):2==i&&t==this.nextState&&(n[1]--,(!n[1]||n[1]<0)&&(n.shift(),n.shift())),[{type:"meta.tag.punctuation."+(1==i?"":"end-")+"tag-open.xml",value:e.slice(0,i)},{type:"meta.tag.tag-name.xml",value:e.substr(i)}]},regex:"</?"+e,next:"jsxAttributes",nextState:"jsx"};this.$rules.start.unshift(t);var n={regex:"{",token:"paren.quasi.start",push:"start"};this.$rules.jsx=[n,t,{include:"reference"},{defaultToken:"string"}],this.$rules.jsxAttributes=[{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",onMatch:function(e,t,n){return t==n[0]&&n.shift(),2==e.length&&(n[0]==this.nextState&&n[1]--,(!n[1]||n[1]<0)&&n.splice(0,2)),this.next=n[0]||"start",[{type:this.token,value:e}]},nextState:"jsx"},n,o("jsxAttributes"),{token:"entity.other.attribute-name.xml",regex:e},{token:"keyword.operator.attribute-equals.xml",regex:"="},{token:"text.tag-whitespace.xml",regex:"\\s+"},{token:"string.attribute-value.xml",regex:"'",stateName:"jsx_attr_q",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',stateName:"jsx_attr_qq",push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},t],this.$rules.reference=[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}]}function o(e){return[{token:"comment",regex:/\/\*/,next:[s.getTagRule(),{token:"comment",regex:"\\*\\/",next:e||"pop"},{defaultToken:"comment",caseInsensitive:!0}]},{token:"comment",regex:"\\/\\/",next:[s.getTagRule(),{token:"comment",regex:"$|^",next:e||"pop"},{defaultToken:"comment",caseInsensitive:!0}]}]}var r=e("../lib/oop"),s=e("./doc_comment_highlight_rules").DocCommentHighlightRules,a=e("./text_highlight_rules").TextHighlightRules,l="[a-zA-Z\\$_¡-][a-zA-Z\\d\\$_¡-]*",c=function(e){var t=this.createKeywordMapper({"variable.language":"Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|Namespace|QName|XML|XMLList|ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|SyntaxError|TypeError|URIError|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|isNaN|parseFloat|parseInt|JSON|Math|this|arguments|prototype|window|document",keyword:"const|yield|import|get|set|async|await|break|case|catch|continue|default|delete|do|else|finally|for|function|if|in|of|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|__parent__|__count__|escape|unescape|with|__proto__|class|enum|extends|super|export|implements|private|public|interface|package|protected|static","storage.type":"const|let|var|function","constant.language":"null|Infinity|NaN|undefined","support.function":"alert","constant.language.boolean":"true|false"},"identifier"),n="case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void",r="\\\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|u{[0-9a-fA-F]{1,6}}|[0-2][0-7]{0,2}|3[0-7][0-7]?|[4-7][0-7]?|.)";this.$rules={no_regex:[s.getStartRule("doc-start"),o("no_regex"),{token:"string",regex:"'(?=.)",next:"qstring"},{token:"string",regex:'"(?=.)',next:"qqstring"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:["storage.type","punctuation.operator","support.function","punctuation.operator","entity.name.function","text","keyword.operator"],regex:"("+l+")(\\.)(prototype)(\\.)("+l+")(\\s*)(=)",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+l+")(\\.)("+l+")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+l+")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+l+")(\\.)("+l+")(\\s*)(=)(\\s*)(function)(\\s+)(\\w+)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","entity.name.function","text","paren.lparen"],regex:"(function)(\\s+)("+l+")(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","punctuation.operator","text","storage.type","text","paren.lparen"],regex:"("+l+")(\\s*)(:)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["text","text","storage.type","text","paren.lparen"],regex:"(:)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:"keyword",regex:"from(?=\\s*('|\"))"},{token:"keyword",regex:"(?:"+n+")\\b",next:"start"},{token:["support.constant"],regex:/that\b/},{token:["storage.type","punctuation.operator","support.function.firebug"],regex:/(console)(\.)(warn|info|log|error|time|trace|timeEnd|assert)\b/},{token:t,regex:l},{token:"punctuation.operator",regex:/[.](?![.])/,next:"property"},{token:"storage.type",regex:/=>/,next:"start"},{token:"keyword.operator",regex:/--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,next:"start"},{token:"punctuation.operator",regex:/[?:,;.]/,next:"start"},{token:"paren.lparen",regex:/[\[({]/,next:"start"},{token:"paren.rparen",regex:/[\])}]/},{token:"comment",regex:/^#!.*$/}],property:[{token:"text",regex:"\\s+"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+l+")(\\.)("+l+")(\\s*)(=)(\\s*)(function)(?:(\\s+)(\\w+))?(\\s*)(\\()",next:"function_arguments"},{token:"punctuation.operator",regex:/[.](?![.])/},{token:"support.function",regex:/(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:op|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\b(?=\()/},{token:"support.function.dom",regex:/(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName|ClassName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/},{token:"support.constant",regex:/(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/},{token:"identifier",regex:l},{regex:"",token:"empty",next:"no_regex"}],start:[s.getStartRule("doc-start"),o("start"),{token:"string.regexp",regex:"\\/",next:"regex"},{token:"text",regex:"\\s+|^$",next:"start"},{token:"empty",regex:"",next:"no_regex"}],regex:[{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"string.regexp",regex:"/[sxngimy]*",next:"no_regex"},{token:"invalid",regex:/\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/},{token:"constant.language.escape",regex:/\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/},{token:"constant.language.delimiter",regex:/\|/},{token:"constant.language.escape",regex:/\[\^?/,next:"regex_character_class"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp"}],regex_character_class:[{token:"regexp.charclass.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"constant.language.escape",regex:"]",next:"regex"},{token:"constant.language.escape",regex:"-"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp.charachterclass"}],function_arguments:[{token:"variable.parameter",regex:l},{token:"punctuation.operator",regex:"[, ]+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],qqstring:[{token:"constant.language.escape",regex:r},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:r},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}]},e&&e.noES6||(this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(e,t,n){if(this.next="{"==e?this.nextState:"","{"==e&&n.length)n.unshift("start",t);else if("}"==e&&n.length&&(n.shift(),this.next=n.shift(),-1!=this.next.indexOf("string")||-1!=this.next.indexOf("jsx")))return"paren.quasi.end";return"{"==e?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.quasi.start",regex:/`/,push:[{token:"constant.language.escape",regex:r},{token:"paren.quasi.start",regex:/\${/,push:"start"},{token:"string.quasi.end",regex:/`/,next:"pop"},{defaultToken:"string.quasi"}]}),(!e||0!=e.jsx)&&i.call(this)),this.embedRules(s,"doc-",[s.getEndRule("no_regex")]),this.normalizeRules()};r.inherits(c,a),t.JavaScriptHighlightRules=c})),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var i=e("../range").Range,o=function(){};(function(){this.checkOutdent=function(e,t){return!!/^\s+$/.test(e)&&/^\s*\}/.test(t)},this.autoOutdent=function(e,t){var n=e.getLine(t),o=n.match(/^(\s*\})/);if(!o)return 0;var r=o[1].length,s=e.findMatchingBracket({row:t,column:r});if(!s||s.row==t)return 0;var a=this.$getIndent(e.getLine(s.row));e.replace(new i(t,0,t,r-1),a)},this.$getIndent=function(e){return e.match(/^\s*/)[0]}}).call(o.prototype),t.MatchingBraceOutdent=o})),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],(function(e,t,n){"use strict";var i=e("../../lib/oop"),o=e("../../range").Range,r=e("./fold_mode").FoldMode,s=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};i.inherits(s,r),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var i=e.getLine(n);if(this.singleLineBlockCommentRe.test(i)&&!this.startRegionRe.test(i)&&!this.tripleStarBlockCommentRe.test(i))return"";var o=this._getFoldWidgetBase(e,t,n);return!o&&this.startRegionRe.test(i)?"start":o},this.getFoldWidgetRange=function(e,t,n,i){var o=e.getLine(n);if(this.startRegionRe.test(o))return this.getCommentRegionBlock(e,o,n);var r=o.match(this.foldingStartMarker);if(r){var s=r.index;if(r[1])return this.openingBracketBlock(e,r[1],n,s);var a=e.getCommentFoldRange(n,s+r[0].length,1);return a&&!a.isMultiLine()&&(i?a=this.getSectionRange(e,n):"all"!=t&&(a=null)),a}if("markbegin"!==t){r=o.match(this.foldingStopMarker);if(r){s=r.index+r[0].length;return r[1]?this.closingBracketBlock(e,r[1],n,s):e.getCommentFoldRange(n,s,-1)}}},this.getSectionRange=function(e,t){var n=e.getLine(t),i=n.search(/\S/),r=t,s=n.length;t+=1;var a=t,l=e.getLength();while(++t<l){n=e.getLine(t);var c=n.search(/\S/);if(-1!==c){if(i>c)break;var u=this.getFoldWidgetRange(e,"all",t);if(u){if(u.start.row<=r)break;if(u.isMultiLine())t=u.end.row;else if(i==c)break}a=t}}return new o(r,s,a,e.getLine(a).length)},this.getCommentRegionBlock=function(e,t,n){var i=t.search(/\s*$/),r=e.getLength(),s=n,a=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,l=1;while(++n<r){t=e.getLine(n);var c=a.exec(t);if(c&&(c[1]?l--:l++,!l))break}var u=n;if(u>s)return new o(s,i,u,t.length)}}.call(s.prototype)})),ace.define("ace/mode/javascript",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/javascript_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle"],(function(e,t,n){"use strict";var i=e("../lib/oop"),o=e("./text").Mode,r=e("./javascript_highlight_rules").JavaScriptHighlightRules,s=e("./matching_brace_outdent").MatchingBraceOutdent,a=e("../worker/worker_client").WorkerClient,l=e("./behaviour/cstyle").CstyleBehaviour,c=e("./folding/cstyle").FoldMode,u=function(){this.HighlightRules=r,this.$outdent=new s,this.$behaviour=new l,this.foldingRules=new c};i.inherits(u,o),function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.$quotes={'"':'"',"'":"'","`":"`"},this.getNextLineIndent=function(e,t,n){var i=this.$getIndent(t),o=this.getTokenizer().getLineTokens(t,e),r=o.tokens,s=o.state;if(r.length&&"comment"==r[r.length-1].type)return i;if("start"==e||"no_regex"==e){var a=t.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/);a&&(i+=n)}else if("doc-start"==e){if("start"==s||"no_regex"==s)return"";a=t.match(/^\s*(\/?)\*/);a&&(a[1]&&(i+=" "),i+="* ")}return i},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)},this.createWorker=function(e){var t=new a(["ace"],"ace/mode/javascript_worker","JavaScriptWorker");return t.attachToDocument(e.getDocument()),t.on("annotate",(function(t){e.setAnnotations(t.data)})),t.on("terminate",(function(){e.clearAnnotations()})),t},this.$id="ace/mode/javascript",this.snippetFileId="ace/snippets/javascript"}.call(u.prototype),t.Mode=u})),function(){ace.require(["ace/mode/javascript"],(function(t){e&&(e.exports=t)}))}()}).call(this,n("62e4")(e))},f183:function(e,t,n){var i=n("23e7"),o=n("e330"),r=n("d012"),s=n("861d"),a=n("1a2d"),l=n("9bf2").f,c=n("241c"),u=n("057f"),d=n("4fad"),h=n("90e3"),f=n("bb2f"),p=!1,g=h("meta"),m=0,b=function(e){l(e,g,{value:{objectID:"O"+m++,weakData:{}}})},v=function(e,t){if(!s(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,g)){if(!d(e))return"F";if(!t)return"E";b(e)}return e[g].objectID},y=function(e,t){if(!a(e,g)){if(!d(e))return!0;if(!t)return!1;b(e)}return e[g].weakData},w=function(e){return f&&p&&d(e)&&!a(e,g)&&b(e),e},x=function(){C.enable=function(){},p=!0;var e=c.f,t=o([].splice),n={};n[g]=1,e(n).length&&(c.f=function(n){for(var i=e(n),o=0,r=i.length;o<r;o++)if(i[o]===g){t(i,o,1);break}return i},i({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:u.f}))},C=e.exports={enable:x,fastKey:v,getWeakData:y,onFreeze:w};r[g]=!0},f1ab:function(e,t,n){"use strict";n("4eff")},f250:function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-rate-field",use:"icon-rate-field-usage",viewBox:"0 0 1069 1024",content:'<symbol class="icon" viewBox="0 0 1069 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-rate-field"><defs><style type="text/css"></style></defs><path d="M633.73 378.02l9.498 18.688 20.78 2.798 206.616 27.332a11.465 11.465 0 0 1 6.61 19.473L729.966 593.665l-14.893 14.893 3.8 20.683 37.847 204.89a11.465 11.465 0 0 1-16.481 12.296l-185.55-94.58-18.687-9.493-18.487 9.992-183.24 99.35a11.465 11.465 0 0 1-16.784-11.867l32.543-205.796 3.297-20.786-15.192-14.492-151.033-143.484a11.465 11.465 0 0 1 6.1-19.64L399 402.998l20.786-3.296 9.092-18.98 89.713-188.078a11.465 11.465 0 0 1 20.569-0.263l94.568 185.635zM496.647 85.52L374.89 340.501l-279.126 44.26a34.395 34.395 0 0 0-18.303 58.908l204.873 194.663-44.169 279.115a34.395 34.395 0 0 0 50.366 35.616l248.4-134.679L788.776 946.66a34.395 34.395 0 0 0 49.437-36.894l-51.306-277.854 199.731-199.909a34.395 34.395 0 0 0-19.828-58.408l-280.118-37.032L558.33 84.713a34.395 34.395 0 0 0-61.682 0.802z" p-id="49627" /></symbol>'});s.a.add(a);t["default"]=a},f2db:function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-alert",use:"icon-alert-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-alert"><defs><style type="text/css"></style></defs><path d="M512 85.162667a319.573333 319.573333 0 0 1 319.829333 309.333333l0.170667 10.666667v174.805333l58.88 134.656a53.290667 53.290667 0 0 1-48.853333 74.709333L640 789.418667a128 128 0 0 1-255.786667 7.509333L384 789.290667l-201.6 0.042666a53.333333 53.333333 0 0 1-48.938667-74.581333L192 580.010667V405.162667c0-177.28 143.018667-320 320-320zM576 789.333333l-128 0.128a64 64 0 0 0 127.701333 6.144l0.256-6.272zM512 149.162667c-141.653333 0-256 114.090667-256 256v188.16L198.656 725.333333h627.072L768 593.365333V405.717333l-0.170667-9.6A255.488 255.488 0 0 0 512 149.162667z m384 202.837333h85.333333a32 32 0 0 1 4.352 63.701333L981.333333 416h-85.333333a32 32 0 0 1-4.352-63.701333L896 352z m-853.333333 0h85.333333a32 32 0 0 1 4.352 63.701333L128 416H42.666667a32 32 0 0 1-4.352-63.701333L42.666667 352z m921.6-243.2a32 32 0 0 1-2.816 41.685333l-3.584 3.114667-85.333334 64a32 32 0 0 1-41.984-48.085333l3.584-3.114667 85.333334-64a32 32 0 0 1 44.8 6.4zM104.533333 102.4l85.333334 64a32 32 0 1 1-38.4 51.2l-85.333334-64a32 32 0 1 1 38.4-51.2z" p-id="6432" /></symbol>'});s.a.add(a);t["default"]=a},f319:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.labelTooltip")}},[n("el-input",{attrs:{type:"text"},model:{value:e.optionModel.labelTooltip,callback:function(t){e.$set(e.optionModel,"labelTooltip",t)},expression:"optionModel.labelTooltip"}})],1)},o=[],r=n("79fa"),s={name:"labelTooltip-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"4bb85541",null);t["default"]=c.exports},f355:function(e,t,n){},f36a:function(e,t,n){var i=n("e330");e.exports=i([].slice)},f388:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-form-item",{directives:[{name:"show",rawName:"v-show",value:!!e.isSubFormChildWidget(),expression:"!!isSubFormChildWidget()"}],attrs:{label:e.i18nt("designer.setting.widgetColumnWidth")}},[n("el-input",{attrs:{type:"text"},model:{value:e.optionModel.columnWidth,callback:function(t){e.$set(e.optionModel,"columnWidth",t)},expression:"optionModel.columnWidth"}})],1)],1)},o=[],r=n("79fa"),s={name:"columnWidth-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},inject:["isSubFormChildWidget"]},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"5f410a01",null);t["default"]=c.exports},f4a6:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:"onFocus","label-width":"150px"}},[n("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:"",round:""},on:{click:function(t){return e.editEventHandler("onFocus",e.eventParams)}}},[e._v(" "+e._s(e.i18nt("designer.setting.addEventHandler")))])],1)},o=[],r=n("79fa"),s=n("7d6c"),a={name:"onFocus-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},data:function(){return{eventParams:["event"]}}},l=a,c=n("2877"),u=Object(c["a"])(l,i,o,!1,null,"ccd01010",null);t["default"]=u.exports},f4c1:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form-item-wrapper",{attrs:{designer:e.designer,field:e.field,rules:e.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[n("vue-editor",{ref:"fieldEditor",attrs:{"editor-toolbar":e.customToolbar,disabled:e.field.options.disabled,placeholder:e.field.options.placeholder},on:{"text-change":e.handleRichEditorChangeEvent,focus:e.handleRichEditorFocusEvent,blur:e.handleRichEditorBlurEvent},model:{value:e.fieldModel,callback:function(t){e.fieldModel=t},expression:"fieldModel"}})],1)},o=[],r=(n("a9e3"),n("9eeb")),s=n("5873"),a=n("c6e3"),l=n("79fa"),c=n("ca00"),u=n("2d11"),d={name:"rich-editor-widget",componentName:"FieldWidget",mixins:[a["a"],u["a"],l["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper:r["default"],VueEditor:s["a"]},inject:["refList","formConfig","globalOptionData","globalModel"],data:function(){return{oldFieldValue:null,fieldModel:null,rules:[],customToolbar:[],valueChangedFlag:!1}},computed:{},beforeCreate:function(){},created:function(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted:function(){this.handleOnMounted()},beforeDestroy:function(){this.unregisterFromRefList()},methods:{handleRichEditorChangeEvent:function(){this.valueChangedFlag=!0,this.syncUpdateFormModel(this.fieldModel)},handleRichEditorFocusEvent:function(){this.oldFieldValue=Object(c["d"])(this.fieldModel)},handleRichEditorBlurEvent:function(){this.valueChangedFlag&&(this.emitFieldDataChange(this.fieldModel,this.oldFieldValue),this.valueChangedFlag=!1)}}},h=d,f=(n("f8e7"),n("2877")),p=Object(f["a"])(h,i,o,!1,null,"29731672",null);t["default"]=p.exports},f582:function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-checkbox-field",use:"icon-checkbox-field-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-checkbox-field"><defs><style type="text/css"></style></defs><path d="M897.940444 896.76927c6.258541-6.27696 10.256598-14.833847 10.256598-24.530696L908.197042 147.672294c0-9.118682-3.998057-18.235316-10.256598-24.533766l0 0c-6.27696-6.257517-14.815427-9.695826-24.511253-9.695826l0 0-723.784474 0 0 0c-9.68764 0-18.235316 3.437286-24.503067 9.695826l0 0c-6.26775 6.297426-9.686616 15.414061-9.686616 24.533766L115.455033 872.238574c0 9.69685 3.419889 18.253736 9.686616 24.530696 6.26775 6.277984 14.815427 10.276041 24.503067 10.276041l0 0 723.784474 0 0 0C883.126041 907.045311 891.663484 903.047254 897.940444 896.76927L897.940444 896.76927zM149.644717 61.521169l723.784474 0 0 0c23.933085 0 45.586245 9.69685 60.97984 25.110911 15.396665 15.97381 25.073048 37.665855 25.073048 61.039191L959.482079 872.238574c0 23.969924-9.676383 45.64355-25.073048 61.056588l0 0c-15.393595 15.395642-37.046754 25.092491-60.97984 25.092491l0 0-723.784474 0 0 0c-23.364127 0-45.016263-9.69685-60.971653-25.092491l0 0c-15.395642-15.414061-25.082258-37.086663-25.082258-61.056588L63.590805 147.672294c0-23.37436 9.686616-45.065382 25.082258-61.039191l0 0C104.628454 71.218018 126.28059 61.521169 149.644717 61.521169L149.644717 61.521169z" p-id="25736" /><path d="M417.41939 698.269357c-6.025227 0-12.047384-2.301416-16.667611-6.89913L259.500731 550.119179c-9.172917-9.148357-9.172917-24.093744 0-33.290197 9.169847-9.147334 24.115234-9.147334 33.288151 0l124.583436 124.606972 312.89429-312.916802c9.194406-9.171893 24.139793-9.171893 33.288151 0 9.196453 9.171893 9.196453 24.116257 0 33.289174L433.991834 691.370227c-4.618181 4.644787-10.642384 6.89913-16.665565 6.89913L417.41939 698.269357z" p-id="25737" /></symbol>'});s.a.add(a);t["default"]=a},f584:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",[n("span",{attrs:{slot:"label"},slot:"label"},[e._v(e._s(e.i18nt("designer.setting.fileTypes"))+" "),n("el-tooltip",{attrs:{effect:"light",content:e.i18nt("designer.setting.fileTypesHelp")}},[n("i",{staticClass:"el-icon-info"})])],1),n("el-select",{staticStyle:{width:"100%"},attrs:{multiple:"","allow-create":"",filterable:"","default-first-option":""},model:{value:e.optionModel.fileTypes,callback:function(t){e.$set(e.optionModel,"fileTypes",t)},expression:"optionModel.fileTypes"}},e._l(e.uploadFileTypes,(function(e,t){return n("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1)},o=[],r=n("79fa"),s={name:"file-upload-fileTypes-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},data:function(){return{uploadFileTypes:[{value:"doc",label:"doc"},{value:"xls",label:"xls"},{value:"docx",label:"docx"},{value:"xlsx",label:"xlsx"}]}}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"68a1d928",null);t["default"]=c.exports},f5df:function(e,t,n){var i=n("da84"),o=n("00ee"),r=n("1626"),s=n("c6b6"),a=n("b622"),l=a("toStringTag"),c=i.Object,u="Arguments"==s(function(){return arguments}()),d=function(e,t){try{return e[t]}catch(n){}};e.exports=o?s:function(e){var t,n,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=d(t=c(e),l))?n:u?s(t):"Object"==(i=s(t))&&r(t.callee)?"Arguments":i}},f6b4:function(e,t,n){"use strict";var i=n("c532");function o(){this.handlers=[]}o.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){i.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},f6e6:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("container-wrapper",{attrs:{designer:e.designer,widget:e.widget,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList}},[n("div",{key:e.widget.id,staticClass:"table-container",class:[e.selected?"selected":"",e.customClass],on:{click:function(t){return t.stopPropagation(),e.selectWidget(e.widget)}}},[n("table",{staticClass:"table-layout"},[n("tbody",e._l(e.widget.rows,(function(t,i){return n("tr",{key:t.id},[e._l(t.cols,(function(o,r){return[o.merged?e._e():n("table-cell-widget",{key:o.id,attrs:{widget:o,designer:e.designer,"parent-list":e.widget.cols,"row-index":i,"row-length":e.widget.rows.length,"col-index":r,"col-length":t.cols.length,"col-array":t.cols,"row-array":e.widget.rows,"parent-widget":e.widget}})]}))],2)})),0)])])])},o=[],r=(n("a9e3"),n("79fa")),s=n("61ca"),a=n("cd36"),l=n("1516"),c=n("26a6"),u={name:"table-widget",componentName:"ContainerWidget",mixins:[r["b"],s["a"],c["a"]],inject:["refList"],components:{ContainerWrapper:a["default"],TableCellWidget:l["default"]},props:{widget:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object},computed:{selected:function(){return this.widget.id===this.designer.selectedId},customClass:function(){return this.widget.options.customClass||""}},watch:{},created:function(){this.initRefList()},mounted:function(){},methods:{}},d=u,h=(n("5479"),n("2877")),f=Object(h["a"])(d,i,o,!1,null,"37d3c0b7",null);t["default"]=f.exports},f6f1:function(e,t,n){},f746:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("container-item-wrapper",{attrs:{widget:e.widget}},[n("el-row",{directives:[{name:"show",rawName:"v-show",value:!e.widget.options.hidden,expression:"!widget.options.hidden"}],key:e.widget.id,ref:e.widget.id,staticClass:"grid-container",class:[e.customClass],attrs:{gutter:e.widget.options.gutter}},[e._l(e.widget.cols,(function(t,i){return[n("grid-col-item",{key:i,attrs:{widget:t,"parent-list":e.widget.cols,"index-of-parent-list":i,"parent-widget":e.widget,"col-height":e.widget.options.colHeight},scopedSlots:e._u([e._l(Object.keys(e.$scopedSlots),(function(t){return{key:t,fn:function(n){return[e._t(t,null,null,n)]}}}))],null,!0)})]}))],2)],1)},o=[],r=n("c6e3"),s=n("79fa"),a=n("d67f"),l=n("90c2"),c=n("a93f"),u=n("34f0"),d={name:"vf-grid-item",componentName:"ContainerItem",mixins:[r["a"],s["b"],a["a"],u["a"]],components:{ContainerItemWrapper:l["default"],GridColItem:c["default"]},props:{widget:Object},inject:["refList","sfRefList","globalModel"],created:function(){this.initRefList()},mounted:function(){},beforeDestroy:function(){this.unregisterFromRefList()},methods:{}},h=d,f=n("2877"),p=Object(f["a"])(h,i,o,!1,null,"7382a44f",null);t["default"]=p.exports},f772:function(e,t,n){var i=n("5692"),o=n("90e3"),r=i("keys");e.exports=function(e){return r[e]||(r[e]=o(e))}},f7729:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return"grid-col"===e.widget.type?n("el-col",e._b({key:e.widget.id,staticClass:"grid-cell",class:[e.selected?"selected":"",e.customClass],style:e.colHeightStyle,nativeOn:{click:function(t){return t.stopPropagation(),e.selectWidget(e.widget)}}},"el-col",e.layoutProps,!1),[n("draggable",e._b({attrs:{list:e.widget.widgetList,handle:".drag-handler",move:e.checkContainerMove},on:{end:function(t){return e.onGridDragEnd(t,e.widget.widgetList)},add:function(t){return e.onGridDragAdd(t,e.widget.widgetList)},update:e.onGridDragUpdate}},"draggable",{group:"dragGroup",ghostClass:"ghost",animation:200},!1),[n("transition-group",{staticClass:"form-widget-list",attrs:{name:"fade",tag:"div"}},[e._l(e.widget.widgetList,(function(t,i){return["container"===t.category?[n(t.type+"-widget",{key:t.id,tag:"component",attrs:{widget:t,designer:e.designer,"parent-list":e.widget.widgetList,"index-of-parent-list":i,"parent-widget":e.widget}})]:[n(t.type+"-widget",{key:t.id,tag:"component",attrs:{field:t,designer:e.designer,"parent-list":e.widget.widgetList,"index-of-parent-list":i,"parent-widget":e.widget,"design-state":!0}})]]}))],2)],1),e.designer.selectedId===e.widget.id&&"grid-col"===e.widget.type?n("div",{staticClass:"grid-col-action"},[n("i",{staticClass:"el-icon-back",attrs:{title:e.i18nt("designer.hint.selectParentWidget")},on:{click:function(t){return t.stopPropagation(),e.selectParentWidget(e.widget)}}}),e.parentList&&e.parentList.length>1?n("i",{staticClass:"el-icon-top",attrs:{title:e.i18nt("designer.hint.moveUpWidget")},on:{click:function(t){return t.stopPropagation(),e.moveUpWidget()}}}):e._e(),e.parentList&&e.parentList.length>1?n("i",{staticClass:"el-icon-bottom",attrs:{title:e.i18nt("designer.hint.moveDownWidget")},on:{click:function(t){return t.stopPropagation(),e.moveDownWidget()}}}):e._e(),n("i",{staticClass:"el-icon-copy-document",attrs:{title:e.i18nt("designer.hint.cloneWidget")},on:{click:function(t){return t.stopPropagation(),e.cloneGridCol(e.widget)}}}),n("i",{staticClass:"el-icon-delete",attrs:{title:e.i18nt("designer.hint.remove")},on:{click:function(t){return t.stopPropagation(),e.removeWidget.apply(null,arguments)}}})]):e._e(),e.designer.selectedId===e.widget.id&&"grid-col"===e.widget.type?n("div",{staticClass:"grid-col-handler"},[n("i",[e._v(e._s(e.i18nt("designer.widgetLabel."+e.widget.type)))])]):e._e()],1):e._e()},o=[],r=n("5530"),s=(n("a9e3"),n("a434"),n("b76a")),a=n.n(s),l=n("79fa"),c=n("c029"),u=n("26a6"),d={name:"GridColWidget",componentName:"GridColWidget",mixins:[l["b"],u["a"]],inject:["refList"],components:Object(r["a"])({Draggable:a.a},c["a"]),props:{widget:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,colHeight:{type:String,default:null}},data:function(){return{layoutProps:{span:this.widget.options.span||12,offset:this.widget.options.offset||0,push:this.widget.options.push||0,pull:this.widget.options.pull||0}}},computed:{selected:function(){return this.widget.id===this.designer.selectedId},customClass:function(){return this.widget.options.customClass||""},colHeightStyle:function(){return this.colHeight?{height:this.colHeight+"px"}:{}}},watch:{"designer.formConfig.layoutType":{handler:function(e){this.widget.options.responsive?this.layoutProps.span="H5"===e?this.widget.options.xs||12:"Pad"===e?this.widget.options.sm||12:this.widget.options.md||12:this.layoutProps.span=this.widget.options.span||12}},"widget.options.responsive":{handler:function(e){var t=this.designer.formConfig.layoutType;this.layoutProps.span=e?"H5"===t?this.widget.options.xs||12:"Pad"===t?this.widget.options.sm||12:this.widget.options.md||12:this.widget.options.span||12}},"widget.options.span":{handler:function(e){this.layoutProps.span=e}},"widget.options.md":{handler:function(e){this.layoutProps.span=e}},"widget.options.sm":{handler:function(e){this.layoutProps.span=e}},"widget.options.xs":{handler:function(e){this.layoutProps.span=e}},"widget.options.offset":{handler:function(e){this.layoutProps.offset=e}},"widget.options.push":{handler:function(e){this.layoutProps.push=e}},"widget.options.pull":{handler:function(e){this.layoutProps.pull=e}}},created:function(){this.initRefList(),this.initLayoutProps()},methods:{initLayoutProps:function(){if(this.widget.options.responsive){var e=this.designer.formConfig.layoutType;this.layoutProps.span="H5"===e?this.widget.options.xs||12:"Pad"===e?this.widget.options.sm||12:this.widget.options.md||12}else this.layoutProps.span=this.widget.options.span},onGridDragEnd:function(e,t){},onGridDragAdd:function(e,t){var n=e.newIndex;t[n]&&this.designer.setSelected(t[n]),this.designer.emitHistoryChange(),this.designer.emitEvent("field-selected",this.widget)},onGridDragUpdate:function(){this.designer.emitHistoryChange()},selectWidget:function(e){console.log("id: "+e.id),this.designer.setSelected(e)},checkContainerMove:function(e){return this.designer.checkWidgetMove(e)},selectParentWidget:function(){this.parentWidget?this.designer.setSelected(this.parentWidget):this.designer.clearSelected()},moveUpWidget:function(){this.designer.moveUpWidget(this.parentList,this.indexOfParentList)},moveDownWidget:function(){this.designer.moveDownWidget(this.parentList,this.indexOfParentList)},cloneGridCol:function(e){this.designer.cloneGridCol(e,this.parentWidget)},removeWidget:function(){var e=this;if(this.parentList){var t=null;1===this.parentList.length?this.parentWidget&&(t=this.parentWidget):t=this.parentList.length===1+this.indexOfParentList?this.parentList[this.indexOfParentList-1]:this.parentList[this.indexOfParentList+1],this.$nextTick((function(){e.parentList.splice(e.indexOfParentList,1),e.designer.setSelected(t),e.designer.emitHistoryChange()}))}}}},h=d,f=(n("1415"),n("2877")),p=Object(f["a"])(h,i,o,!1,null,"3151e59a",null);t["default"]=p.exports},f8cd:function(e,t,n){var i=n("da84"),o=n("5926"),r=i.RangeError;e.exports=function(e){var t=o(e);if(t<0)throw r("The argument can't be less than 0");return t}},f8e7:function(e,t,n){"use strict";n("e632")},fa85:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.colPushTitle")}},[n("el-input-number",{staticStyle:{width:"100%"},attrs:{min:0,max:24},model:{value:e.optionModel.push,callback:function(t){e.$set(e.optionModel,"push",e._n(t))},expression:"optionModel.push"}})],1)},o=[],r=n("79fa"),s={name:"grid-col-push-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"570c4841",null);t["default"]=c.exports},fb15:function(e,t,n){"use strict";n.r(t);var i={};n.r(i),n.d(i,"registerCommonProperty",(function(){return He})),n.d(i,"registerAdvancedProperty",(function(){return ze})),n.d(i,"registerEventProperty",(function(){return Ve})),n.d(i,"propertyRegistered",(function(){return Ue})),n.d(i,"registerCPEditor",(function(){return Ke})),n.d(i,"registerAPEditor",(function(){return Ge})),n.d(i,"registerEPEditor",(function(){return Ye})),n.d(i,"default",(function(){return Je}));var o={};if(n.r(o),n.d(o,"createInputTextEditor",(function(){return bt})),n.d(o,"createInputNumberEditor",(function(){return vt})),n.d(o,"createBooleanEditor",(function(){return yt})),n.d(o,"createCheckboxGroupEditor",(function(){return wt})),n.d(o,"createRadioGroupEditor",(function(){return xt})),n.d(o,"createRadioButtonGroupEditor",(function(){return Ct})),n.d(o,"createSelectEditor",(function(){return _t})),n.d(o,"createEventHandlerEditor",(function(){return kt})),n.d(o,"createEmptyEditor",(function(){return St})),"undefined"!==typeof window){var r=window.document.currentScript,s=n("8875");r=s(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:s});var a=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);a&&(n.p=a[1])}n("b0c0"),n("d3b7"),n("159b");var l=n("bc3a"),c=n.n(l),u=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-container",{staticClass:"main-container full-height"},[i("el-header",{staticClass:"main-header"},[i("div",{staticClass:"float-left main-title"},[i("img",{attrs:{src:n("d3fb")},on:{click:e.openHome}}),i("span",{staticClass:"bold"},[e._v("VForm")]),e._v(" "+e._s(e.i18nt("application.productTitle"))+" "),i("span",{staticClass:"version-span"},[e._v("Ver "+e._s(e.vFormVersion))])]),i("div",{staticClass:"float-right external-link"},[e.showLink("languageMenu")?i("el-dropdown",{attrs:{"hide-timeout":2e3},on:{command:e.handleLanguageChanged}},[i("span",{staticClass:"el-dropdown-link"},[e._v(e._s(e.curLangName)),i("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),i("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[i("el-dropdown-item",{attrs:{command:"zh-CN"}},[e._v(e._s(e.i18nt("application.zh-CN")))]),i("el-dropdown-item",{attrs:{command:"en-US"}},[e._v(e._s(e.i18nt("application.en-US")))])],1)],1):e._e(),e.showLink("externalLink")?i("a",{attrs:{href:"javascript:void(0)",target:"_blank"},on:{click:function(t){return e.openUrl(t,e.gitUrl)}}},[i("svg-icon",{attrs:{"icon-class":"github"}}),e._v(e._s(e.i18nt("application.github")))],1):e._e(),e.showLink("externalLink")?i("a",{attrs:{href:"javascript:void(0)",target:"_blank"},on:{click:function(t){return e.openUrl(t,e.docUrl)}}},[i("svg-icon",{attrs:{"icon-class":"document"}}),e._v(e._s(e.i18nt("application.document")))],1):e._e(),e.showLink("externalLink")?i("a",{attrs:{href:"javascript:void(0)",target:"_blank"},on:{click:function(t){return e.openUrl(t,e.chatUrl)}}},[e._v(e._s(e.i18nt("application.qqGroup")))]):e._e(),e.showLink("externalLink")?i("a",{attrs:{href:"javascript:void(0)",target:"_blank"},on:{click:function(t){return e.openUrl(t,e.subScribeUrl)}}},[e._v(" "+e._s(e.i18nt("application.subscription"))),i("i",{staticClass:"el-icon-top-right"})]):e._e()],1)]),i("el-container",[i("el-aside",{staticClass:"side-panel"},[i("widget-panel",{attrs:{designer:e.designer}})],1),i("el-container",{staticClass:"center-layout-container"},[i("el-header",{staticClass:"toolbar-header"},[i("toolbar-panel",{ref:"toolbarRef",attrs:{designer:e.designer,"global-dsv":e.globalDsv},scopedSlots:e._u([e._l(e.$slots,(function(t,n){return{key:n,fn:function(){return[e._t(n)]},proxy:!0}}))],null,!0)})],1),i("el-main",{staticClass:"form-widget-main"},[i("el-scrollbar",{staticClass:"container-scroll-bar",style:{height:e.scrollerHeight}},[i("v-form-widget",{ref:"formRef",attrs:{designer:e.designer,"form-config":e.designer.formConfig,"global-dsv":e.globalDsv}})],1)],1)],1),i("el-aside",[i("setting-panel",{attrs:{designer:e.designer,"selected-widget":e.designer.selectedWidget,"form-config":e.designer.formConfig,"global-dsv":e.globalDsv}})],1)],1)],1)},d=[],h=(n("a434"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-scrollbar",{staticClass:"side-scroll-bar",style:{height:e.scrollerHeight}},[n("div",{staticClass:"panel-container"},[n("el-tabs",{staticClass:"no-bottom-margin indent-left-margin",model:{value:e.firstTab,callback:function(t){e.firstTab=t},expression:"firstTab"}},[n("el-tab-pane",{attrs:{name:"componentLib"}},[n("span",{attrs:{slot:"label"},slot:"label"},[n("i",{staticClass:"el-icon-set-up"}),e._v(" "+e._s(e.i18nt("designer.componentLib")))]),n("el-collapse",{staticClass:"widget-collapse",model:{value:e.activeNames,callback:function(t){e.activeNames=t},expression:"activeNames"}},[n("el-collapse-item",{attrs:{name:"1",title:e.i18nt("designer.containerTitle")}},[n("draggable",{attrs:{tag:"ul",list:e.containers,group:{name:"dragGroup",pull:"clone",put:!1},clone:e.handleContainerWidgetClone,"ghost-class":"ghost",sort:!1,move:e.checkContainerMove},on:{end:e.onContainerDragEnd}},e._l(e.containers,(function(t,i){return n("li",{key:i,staticClass:"container-widget-item",attrs:{title:t.displayName},on:{dblclick:function(n){return e.addContainerByDbClick(t)}}},[n("span",[n("svg-icon",{attrs:{"icon-class":t.icon,"class-name":"color-svg-icon"}}),e._v(e._s(e.i18n2t("designer.widgetLabel."+t.type,"extension.widgetLabel."+t.type)))],1)])})),0)],1),n("el-collapse-item",{attrs:{name:"2",title:e.i18nt("designer.basicFieldTitle")}},[n("draggable",{attrs:{tag:"ul",list:e.basicFields,group:{name:"dragGroup",pull:"clone",put:!1},move:e.checkFieldMove,clone:e.handleFieldWidgetClone,"ghost-class":"ghost",sort:!1}},e._l(e.basicFields,(function(t,i){return n("li",{key:i,staticClass:"field-widget-item",attrs:{title:t.displayName},on:{dblclick:function(n){return e.addFieldByDbClick(t)}}},[n("span",[n("svg-icon",{attrs:{"icon-class":t.icon,"class-name":"color-svg-icon"}}),e._v(e._s(e.i18n2t("designer.widgetLabel."+t.type,"extension.widgetLabel."+t.type)))],1)])})),0)],1),n("el-collapse-item",{attrs:{name:"3",title:e.i18nt("designer.advancedFieldTitle")}},[n("draggable",{attrs:{tag:"ul",list:e.advancedFields,group:{name:"dragGroup",pull:"clone",put:!1},move:e.checkFieldMove,clone:e.handleFieldWidgetClone,"ghost-class":"ghost",sort:!1}},e._l(e.advancedFields,(function(t,i){return n("li",{key:i,staticClass:"field-widget-item",attrs:{title:t.displayName},on:{dblclick:function(n){return e.addFieldByDbClick(t)}}},[n("span",[n("svg-icon",{attrs:{"icon-class":t.icon,"class-name":"color-svg-icon"}}),e._v(e._s(e.i18n2t("designer.widgetLabel."+t.type,"extension.widgetLabel."+t.type)))],1)])})),0)],1),n("el-collapse-item",{attrs:{name:"4",title:e.i18nt("designer.customFieldTitle")}},[n("draggable",{attrs:{tag:"ul",list:e.customFields,group:{name:"dragGroup",pull:"clone",put:!1},move:e.checkFieldMove,clone:e.handleFieldWidgetClone,"ghost-class":"ghost",sort:!1}},e._l(e.customFields,(function(t,i){return n("li",{key:i,staticClass:"field-widget-item",attrs:{title:t.displayName},on:{dblclick:function(n){return e.addFieldByDbClick(t)}}},[n("span",[n("svg-icon",{attrs:{"icon-class":t.icon,"class-name":"color-svg-icon"}}),e._v(e._s(e.i18n2t("designer.widgetLabel."+t.type,"extension.widgetLabel."+t.type)))],1)])})),0)],1)],1)],1),e.showFormTemplates()?n("el-tab-pane",{staticStyle:{padding:"8px"},attrs:{name:"formLib"}},[n("span",{attrs:{slot:"label"},slot:"label"},[n("i",{staticClass:"el-icon-c-scale-to-original"}),e._v(" "+e._s(e.i18nt("designer.formLib")))]),e._l(e.formTemplates,(function(t,i){return[n("el-card",{key:i,staticClass:"ft-card",attrs:{"bord-style":{padding:"0"},shadow:"hover"}},[n("el-popover",{attrs:{placement:"right",trigger:"hover"}},[n("img",{staticStyle:{width:"200px"},attrs:{slot:"reference",src:t.imgUrl},slot:"reference"}),n("img",{staticStyle:{height:"600px",width:"720px"},attrs:{src:t.imgUrl}})]),n("div",{staticClass:"bottom clear-fix"},[n("span",{staticClass:"ft-title"},[e._v("#"+e._s(i+1)+" "+e._s(t.title))]),n("el-button",{staticClass:"right-button",attrs:{type:"text"},on:{click:function(n){return e.loadFormTemplate(t.jsonUrl)}}},[e._v(" "+e._s(e.i18nt("designer.hint.loadFormTemplate")))])],1)],1)]}))],2):e._e()],1)],1)])}),f=[],p=n("5530"),g=(n("4de4"),n("d81d"),n("b76a")),m=n.n(g),b=[{type:"grid",category:"container",icon:"grid",cols:[],options:{name:"",hidden:!1,gutter:12,colHeight:null,customClass:""}},{type:"table",category:"container",icon:"table",rows:[],options:{name:"",hidden:!1,customClass:""}},{type:"tab",category:"container",icon:"tab",displayType:"border-card",tabs:[],options:{name:"",hidden:!1,customClass:""}},{type:"grid-col",category:"container",icon:"grid-col",internal:!0,widgetList:[],options:{name:"",hidden:!1,span:12,offset:0,push:0,pull:0,responsive:!1,md:12,sm:12,xs:12,customClass:""}},{type:"table-cell",category:"container",icon:"table-cell",internal:!0,widgetList:[],merged:!1,options:{name:"",cellWidth:"",cellHeight:"",colspan:1,rowspan:1,wordBreak:!1,customClass:""}},{type:"tab-pane",category:"container",icon:"tab-pane",internal:!0,widgetList:[],options:{name:"",label:"",hidden:!1,active:!1,disabled:!1,customClass:""}}],v=[{type:"input",icon:"text-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",type:"text",defaultValue:"",placeholder:"",columnWidth:"200px",size:"",labelWidth:null,labelHidden:!1,readonly:!1,disabled:!1,hidden:!1,clearable:!0,showPassword:!1,required:!1,requiredHint:"",validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,minLength:null,maxLength:null,showWordLimit:!1,prefixIcon:"",suffixIcon:"",appendButton:!1,appendButtonDisabled:!1,buttonIcon:"el-icon-search",onCreated:"",onMounted:"",onInput:"",onChange:"",onFocus:"",onBlur:"",onValidate:"",onAppendButtonClick:""}},{type:"textarea",icon:"textarea-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",rows:3,defaultValue:"",placeholder:"",columnWidth:"200px",size:"",labelWidth:null,labelHidden:!1,readonly:!1,disabled:!1,hidden:!1,required:!1,requiredHint:"",validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,minLength:null,maxLength:null,showWordLimit:!1,onCreated:"",onMounted:"",onInput:"",onChange:"",onFocus:"",onBlur:"",onValidate:""}},{type:"number",icon:"number-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",defaultValue:0,placeholder:"",columnWidth:"200px",size:"",labelWidth:null,labelHidden:!1,disabled:!1,hidden:!1,required:!1,requiredHint:"",validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,min:-1e11,max:1e11,precision:0,step:1,controlsPosition:"right",onCreated:"",onMounted:"",onChange:"",onFocus:"",onBlur:"",onValidate:""}},{type:"radio",icon:"radio-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",defaultValue:null,columnWidth:"200px",size:"",displayStyle:"inline",buttonStyle:!1,border:!1,labelWidth:null,labelHidden:!1,disabled:!1,hidden:!1,optionItems:[{label:"radio 1",value:1},{label:"radio 2",value:2},{label:"radio 3",value:3}],required:!1,requiredHint:"",validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onChange:"",onValidate:""}},{type:"checkbox",icon:"checkbox-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",defaultValue:[],columnWidth:"200px",size:"",displayStyle:"inline",buttonStyle:!1,border:!1,labelWidth:null,labelHidden:!1,disabled:!1,hidden:!1,optionItems:[{label:"check 1",value:1},{label:"check 2",value:2},{label:"check 3",value:3}],required:!1,requiredHint:"",validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onChange:"",onValidate:""}},{type:"select",icon:"select-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",defaultValue:"",placeholder:"",columnWidth:"200px",size:"",labelWidth:null,labelHidden:!1,disabled:!1,hidden:!1,clearable:!0,filterable:!1,allowCreate:!1,remote:!1,automaticDropdown:!1,multiple:!1,multipleLimit:0,optionItems:[{label:"select 1",value:1},{label:"select 2",value:2},{label:"select 3",value:3}],required:!1,requiredHint:"",validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onRemoteQuery:"",onChange:"",onFocus:"",onBlur:"",onValidate:""}},{type:"time",icon:"time-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",defaultValue:null,placeholder:"",columnWidth:"200px",size:"",labelWidth:null,labelHidden:!1,readonly:!1,disabled:!1,hidden:!1,clearable:!0,editable:!1,format:"HH:mm:ss",required:!1,requiredHint:"",validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onChange:"",onFocus:"",onBlur:"",onValidate:""}},{type:"time-range",icon:"time-range-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",defaultValue:null,startPlaceholder:"",endPlaceholder:"",columnWidth:"200px",size:"",labelWidth:null,labelHidden:!1,readonly:!1,disabled:!1,hidden:!1,clearable:!0,editable:!1,format:"HH:mm:ss",required:!1,requiredHint:"",validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onChange:"",onFocus:"",onBlur:"",onValidate:""}},{type:"date",icon:"date-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",type:"date",defaultValue:null,placeholder:"",columnWidth:"200px",size:"",labelWidth:null,labelHidden:!1,readonly:!1,disabled:!1,hidden:!1,clearable:!0,editable:!1,format:"yyyy-MM-dd",valueFormat:"yyyy-MM-dd",required:!1,requiredHint:"",validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onChange:"",onFocus:"",onBlur:"",onValidate:""}},{type:"date-range",icon:"date-range-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",type:"daterange",defaultValue:null,startPlaceholder:"",endPlaceholder:"",columnWidth:"200px",size:"",labelWidth:null,labelHidden:!1,readonly:!1,disabled:!1,hidden:!1,clearable:!0,editable:!1,format:"yyyy-MM-dd",valueFormat:"yyyy-MM-dd",required:!1,requiredHint:"",validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onChange:"",onFocus:"",onBlur:"",onValidate:""}},{type:"switch",icon:"switch-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",defaultValue:null,columnWidth:"200px",labelWidth:null,labelHidden:!1,disabled:!1,hidden:!1,customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,switchWidth:40,activeText:"",inactiveText:"",activeColor:null,inactiveColor:null,onCreated:"",onMounted:"",onChange:"",onValidate:""}},{type:"rate",icon:"rate-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",defaultValue:null,columnWidth:"200px",labelWidth:null,labelHidden:!1,disabled:!1,hidden:!1,required:!1,requiredHint:"",validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,max:5,lowThreshold:2,highThreshold:4,allowHalf:!1,showText:!1,showScore:!1,onCreated:"",onMounted:"",onChange:"",onValidate:""}},{type:"color",icon:"color-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",defaultValue:null,columnWidth:"200px",size:"",labelWidth:null,labelHidden:!1,disabled:!1,hidden:!1,required:!1,requiredHint:"",validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onChange:"",onValidate:""}},{type:"slider",icon:"slider-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",columnWidth:"200px",showStops:!0,size:"",labelWidth:null,labelHidden:!1,disabled:!1,hidden:!1,required:!1,requiredHint:"",validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,min:0,max:100,step:10,range:!1,height:null,onCreated:"",onMounted:"",onChange:"",onValidate:""}},{type:"static-text",icon:"static-text",formItemFlag:!1,options:{name:"",columnWidth:"200px",hidden:!1,textContent:"static text",textAlign:"left",fontSize:"13px",preWrap:!1,customClass:"",onCreated:"",onMounted:""}},{type:"html-text",icon:"html-text",formItemFlag:!1,options:{name:"",columnWidth:"200px",hidden:!1,htmlContent:"<b>html text</b>",customClass:"",onCreated:"",onMounted:""}},{type:"button",icon:"button",formItemFlag:!1,options:{name:"",label:"",columnWidth:"200px",size:"",displayStyle:"block",disabled:!1,hidden:!1,type:"",plain:!1,round:!1,circle:!1,icon:null,customClass:"",onCreated:"",onMounted:"",onClick:""}},{type:"divider",icon:"divider",formItemFlag:!1,options:{name:"",label:"",columnWidth:"200px",direction:"horizontal",contentPosition:"center",hidden:!1,customClass:"",onCreated:"",onMounted:""}}],y=[{type:"picture-upload",icon:"picture-upload-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",labelWidth:null,labelHidden:!1,columnWidth:"200px",disabled:!1,hidden:!1,required:!1,requiredHint:"",customRule:"",customRuleHint:"",uploadURL:"",uploadTip:"",withCredentials:!1,multipleSelect:!1,showFileList:!0,limit:3,fileMaxSize:5,fileTypes:["jpg","jpeg","png"],customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onBeforeUpload:"",onUploadSuccess:"",onUploadError:"",onFileRemove:"",onValidate:""}},{type:"file-upload",icon:"file-upload-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",labelWidth:null,labelHidden:!1,columnWidth:"200px",disabled:!1,hidden:!1,required:!1,requiredHint:"",customRule:"",customRuleHint:"",uploadURL:"",uploadTip:"",withCredentials:!1,multipleSelect:!1,showFileList:!0,limit:3,fileMaxSize:5,fileTypes:["doc","docx","xls","xlsx"],customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onBeforeUpload:"",onUploadSuccess:"",onUploadError:"",onFileRemove:"",onValidate:""}},{type:"rich-editor",icon:"rich-editor-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",placeholder:"",labelWidth:null,labelHidden:!1,columnWidth:"200px",disabled:!1,hidden:!1,required:!1,requiredHint:"",customRule:"",customRuleHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,minLength:null,maxLength:null,showWordLimit:!1,onCreated:"",onMounted:"",onValidate:""}},{type:"cascader",icon:"cascader-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",defaultValue:"",placeholder:"",size:"",labelWidth:null,labelHidden:!1,columnWidth:"200px",disabled:!1,hidden:!1,clearable:!0,filterable:!1,multiple:!1,checkStrictly:!1,showAllLevels:!0,optionItems:[{label:"select 1",value:1,children:[{label:"child 1",value:11}]},{label:"select 2",value:2},{label:"select 3",value:3}],required:!1,requiredHint:"",customRule:"",customRuleHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onChange:"",onFocus:"",onBlur:"",onValidate:""}}],w=[];function x(e){b.push(e)}function C(e){v.push(e)}function _(e){y.push(e)}function k(e){w.push(e)}var S=[{title:"单列表单",imgUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/t1.png",jsonUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/json1.txt",description:"表单模板详细说明..."},{title:"多列表单",imgUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/t2.png",jsonUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/json2.txt",description:"表单模板详细说明..."},{title:"分组表单",imgUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/t3.png",jsonUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/json3.txt",description:"表单模板详细说明..."},{title:"标签页表单",imgUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/t4.png",jsonUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/json4.txt",description:"表单模板详细说明..."},{title:"主从表单",imgUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/t5.png",jsonUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/json5.txt",description:"表单模板详细说明..."},{title:"响应式表单",imgUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/t6.png",jsonUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/json6.txt",description:"表单模板详细说明..."},{title:"问卷调查表",imgUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/t7.png",jsonUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/json7.txt",description:"表单模板详细说明..."},{title:"固定表格表单",imgUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/t8.png",jsonUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/json8.txt",description:"表单模板详细说明..."}],O=n("ca00"),E=n("79fa"),L=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("svg",{class:e.svgClass,attrs:{"aria-hidden":"true"}},[n("use",{attrs:{"xlink:href":e.iconName}}),e.title?n("title",[e._v(e._s(e.title))]):e._e()])},M=[],A={name:"SvgIcon",props:{iconClass:{type:String,required:!0},className:{type:String},title:{type:String,default:""}},computed:{iconName:function(){return"#icon-".concat(this.iconClass)},svgClass:function(){return this.className?"svg-icon "+this.className:"svg-icon"}}},T=A,R=(n("d53b"),n("2877")),$=Object(R["a"])(T,L,M,!1,null,"1a7581a2",null),F=$.exports,j={name:"FieldPanel",mixins:[E["b"]],components:{Draggable:m.a,SvgIcon:F},props:{designer:Object},inject:["getBannedWidgets","getDesignerConfig"],data:function(){return{designerConfig:this.getDesignerConfig(),firstTab:"componentLib",scrollerHeight:0,activeNames:["1","2","3","4"],containers:b,basicFields:v,advancedFields:y,customFields:w,formTemplates:S}},computed:{},mounted:function(){var e=this;this.loadWidgets(),this.scrollerHeight=window.innerHeight-56+"px",Object(O["a"])((function(){e.$nextTick((function(){e.scrollerHeight=window.innerHeight-56+"px"}))}))},methods:{isBanned:function(e){return this.getBannedWidgets().indexOf(e)>-1},showFormTemplates:function(){return void 0===this.designerConfig["formTemplates"]||!!this.designerConfig["formTemplates"]},loadWidgets:function(){var e=this;this.containers=this.containers.map((function(t){return Object(p["a"])(Object(p["a"])({},t),{},{displayName:e.i18n2t("designer.widgetLabel.".concat(t.type),"extension.widgetLabel.".concat(t.type))})})).filter((function(t){return!t.internal&&!e.isBanned(t.type)})),this.basicFields=this.basicFields.map((function(t){return Object(p["a"])(Object(p["a"])({},t),{},{displayName:e.i18n2t("designer.widgetLabel.".concat(t.type),"extension.widgetLabel.".concat(t.type))})})).filter((function(t){return!e.isBanned(t.type)})),this.advancedFields=this.advancedFields.map((function(t){return Object(p["a"])(Object(p["a"])({},t),{},{displayName:e.i18n2t("designer.widgetLabel.".concat(t.type),"extension.widgetLabel.".concat(t.type))})})).filter((function(t){return!e.isBanned(t.type)})),this.customFields=this.customFields.map((function(t){return Object(p["a"])(Object(p["a"])({},t),{},{displayName:e.i18n2t("designer.widgetLabel.".concat(t.type),"extension.widgetLabel.".concat(t.type))})})).filter((function(t){return!e.isBanned(t.type)}))},handleContainerWidgetClone:function(e){return this.designer.copyNewContainerWidget(e)},handleFieldWidgetClone:function(e){return this.designer.copyNewFieldWidget(e)},checkContainerMove:function(e){return this.designer.checkWidgetMove(e)},checkFieldMove:function(e){return this.designer.checkFieldMove(e)},onContainerDragEnd:function(e){},addContainerByDbClick:function(e){this.designer.addContainerByDbClick(e)},addFieldByDbClick:function(e){this.designer.addFieldByDbClick(e)},loadFormTemplate:function(e){var t=this;this.$confirm(this.i18nt("designer.hint.loadFormTemplateHint"),this.i18nt("render.hint.prompt"),{confirmButtonText:this.i18nt("render.hint.confirm"),cancelButtonText:this.i18nt("render.hint.cancel")}).then((function(){c.a.get(e).then((function(e){var n=!1;"string"===typeof e.data?n=t.designer.loadFormJson(JSON.parse(e.data)):e.data.constructor===Object&&(n=t.designer.loadFormJson(e.data)),n&&t.designer.emitHistoryChange(),t.$message.success(t.i18nt("designer.hint.loadFormTemplateSuccess"))})).catch((function(e){t.$message.error(t.i18nt("designer.hint.loadFormTemplateFailed")+":"+e)}))})).catch((function(e){console.error(e)}))}}},I=j,q=(n("6425"),Object(R["a"])(I,h,f,!1,null,"7c54b0c6",null)),P=q.exports,N=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"toolbar-container"},[n("div",{staticClass:"left-toolbar"},[n("el-button",{attrs:{type:"text",disabled:e.undoDisabled,title:e.i18nt("designer.toolbar.undoHint")},on:{click:e.undoHistory}},[n("svg-icon",{attrs:{"icon-class":"undo"}})],1),n("el-button",{attrs:{type:"text",disabled:e.redoDisabled,title:e.i18nt("designer.toolbar.redoHint")},on:{click:e.redoHistory}},[n("svg-icon",{attrs:{"icon-class":"redo"}})],1),n("el-button-group",{staticStyle:{"margin-left":"20px"}},[n("el-button",{attrs:{type:"PC"===e.layoutType?"info":""},on:{click:function(t){return e.changeLayoutType("PC")}}},[e._v(" "+e._s(e.i18nt("designer.toolbar.pcLayout")))]),n("el-button",{attrs:{type:"Pad"===e.layoutType?"info":""},on:{click:function(t){return e.changeLayoutType("Pad")}}},[e._v(" "+e._s(e.i18nt("designer.toolbar.padLayout")))]),n("el-button",{attrs:{type:"H5"===e.layoutType?"info":""},on:{click:function(t){return e.changeLayoutType("H5")}}},[e._v(" "+e._s(e.i18nt("designer.toolbar.mobileLayout")))])],1),n("el-button",{staticStyle:{"margin-left":"20px"},attrs:{type:"",title:e.i18nt("designer.toolbar.nodeTreeHint")},on:{click:e.showNodeTreeDrawer}},[n("svg-icon",{attrs:{"icon-class":"node-tree"}})],1)],1),n("el-drawer",{staticClass:"node-tree-drawer",attrs:{title:e.i18nt("designer.toolbar.nodeTreeTitle"),direction:"ltr",visible:e.showNodeTreeDrawerFlag,modal:!1,size:280,"destroy-on-close":!0},on:{"update:visible":function(t){e.showNodeTreeDrawerFlag=t}}},[n("el-tree",{ref:"nodeTree",staticClass:"node-tree",attrs:{data:e.nodeTreeData,"node-key":"id","default-expand-all":"","highlight-current":"","icon-class":"el-icon-arrow-right"},on:{"node-click":e.onNodeTreeClick}})],1),n("div",{staticClass:"right-toolbar",style:{width:e.toolbarWidth+"px"}},[n("div",{staticClass:"right-toolbar-con"},[e.showToolButton("clearDesignerButton")?n("el-button",{attrs:{type:"text"},on:{click:e.clearFormWidget}},[n("i",{staticClass:"el-icon-delete"}),e._v(e._s(e.i18nt("designer.toolbar.clear")))]):e._e(),e.showToolButton("previewFormButton")?n("el-button",{attrs:{type:"text"},on:{click:e.previewForm}},[n("i",{staticClass:"el-icon-view"}),e._v(e._s(e.i18nt("designer.toolbar.preview")))]):e._e(),e.showToolButton("importJsonButton")?n("el-button",{attrs:{type:"text"},on:{click:e.importJson}},[e._v(" "+e._s(e.i18nt("designer.toolbar.importJson")))]):e._e(),e.showToolButton("exportJsonButton")?n("el-button",{attrs:{type:"text"},on:{click:e.exportJson}},[e._v(" "+e._s(e.i18nt("designer.toolbar.exportJson")))]):e._e(),e.showToolButton("exportCodeButton")?n("el-button",{attrs:{type:"text"},on:{click:e.exportCode}},[e._v(" "+e._s(e.i18nt("designer.toolbar.exportCode")))]):e._e(),e.showToolButton("generateSFCButton")?n("el-button",{attrs:{type:"text"},on:{click:e.generateSFC}},[n("svg-icon",{attrs:{"icon-class":"vue-sfc"}}),e._v(e._s(e.i18nt("designer.toolbar.generateSFC")))],1):e._e(),e._l(e.$slots,(function(t,n){return[e._t(n)]}))],2)]),e.showPreviewDialogFlag?n("el-dialog",{directives:[{name:"dialog-drag",rawName:"v-dialog-drag"}],staticClass:"small-padding-dialog",attrs:{title:e.i18nt("designer.toolbar.preview"),visible:e.showPreviewDialogFlag,"show-close":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,center:"","destroy-on-close":!0,"append-to-body":!0,width:"75%",fullscreen:"H5"===e.layoutType||"Pad"===e.layoutType},on:{"update:visible":function(t){e.showPreviewDialogFlag=t}}},[n("div",[n("div",{staticClass:"form-render-wrapper",class:["H5"===e.layoutType?"h5-layout":"Pad"===e.layoutType?"pad-layout":""]},[n("VFormRender",{ref:"preForm",attrs:{"form-json":e.formJson,"form-data":e.testFormData,"preview-state":!0,"option-data":e.testOptionData,"global-dsv":e.designerDsv},on:{appendButtonClick:e.testOnAppendButtonClick,buttonClick:e.testOnButtonClick,formChange:e.handleFormChange}})],1)]),n("code-editor",{staticStyle:{display:"none"},model:{value:e.testFunc,callback:function(t){e.testFunc=t},expression:"testFunc"}}),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{type:"primary"},on:{click:e.getFormData}},[e._v(e._s(e.i18nt("designer.hint.getFormData")))]),n("el-button",{attrs:{type:"primary"},on:{click:e.resetForm}},[e._v(e._s(e.i18nt("designer.hint.resetForm")))]),n("el-button",{attrs:{type:"primary"},on:{click:e.setFormDisabled}},[e._v(e._s(e.i18nt("designer.hint.disableForm")))]),n("el-button",{attrs:{type:"primary"},on:{click:e.setFormEnabled}},[e._v(e._s(e.i18nt("designer.hint.enableForm")))]),n("el-button",{attrs:{type:""},on:{click:function(t){e.showPreviewDialogFlag=!1}}},[e._v(e._s(e.i18nt("designer.hint.closePreview")))]),e._e(),e._e(),e._e(),e._e()],1)],1):e._e(),e.showImportJsonDialogFlag?n("el-dialog",{directives:[{name:"dialog-drag",rawName:"v-dialog-drag"}],staticClass:"small-padding-dialog",attrs:{title:e.i18nt("designer.toolbar.importJson"),visible:e.showImportJsonDialogFlag,"show-close":!0,center:"","append-to-body":"","close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":!0},on:{"update:visible":function(t){e.showImportJsonDialogFlag=t}}},[n("el-alert",{staticClass:"alert-padding",attrs:{type:"info",title:e.i18nt("designer.hint.importJsonHint"),"show-icon":""}}),n("code-editor",{attrs:{mode:"json",readonly:!1},model:{value:e.importTemplate,callback:function(t){e.importTemplate=t},expression:"importTemplate"}}),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{type:"primary"},on:{click:e.doJsonImport}},[e._v(" "+e._s(e.i18nt("designer.hint.import")))]),n("el-button",{on:{click:function(t){e.showImportJsonDialogFlag=!1}}},[e._v(" "+e._s(e.i18nt("designer.hint.cancel")))])],1)],1):e._e(),e.showExportJsonDialogFlag?n("el-dialog",{directives:[{name:"dialog-drag",rawName:"v-dialog-drag"}],staticClass:"small-padding-dialog",attrs:{title:e.i18nt("designer.toolbar.exportJson"),visible:e.showExportJsonDialogFlag,"show-close":!0,center:"","append-to-body":"","close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":!0},on:{"update:visible":function(t){e.showExportJsonDialogFlag=t}}},[n("code-editor",{attrs:{mode:"json",readonly:!0},model:{value:e.jsonContent,callback:function(t){e.jsonContent=t},expression:"jsonContent"}}),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{staticClass:"copy-json-btn",attrs:{type:"primary","data-clipboard-text":e.jsonRawContent},on:{click:e.copyFormJson}},[e._v(" "+e._s(e.i18nt("designer.hint.copyJson")))]),n("el-button",{on:{click:e.saveFormJson}},[e._v(e._s(e.i18nt("designer.hint.saveFormJson")))]),n("el-button",{attrs:{type:""},on:{click:function(t){e.showExportJsonDialogFlag=!1}}},[e._v(" "+e._s(e.i18nt("designer.hint.closePreview")))])],1)],1):e._e(),e.showExportCodeDialogFlag?n("el-dialog",{directives:[{name:"dialog-drag",rawName:"v-dialog-drag"}],staticClass:"small-padding-dialog",attrs:{title:e.i18nt("designer.toolbar.exportCode"),visible:e.showExportCodeDialogFlag,"show-close":!0,center:"","append-to-body":"",width:"65%","close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":!0},on:{"update:visible":function(t){e.showExportCodeDialogFlag=t}}},[n("el-tabs",{staticClass:"no-box-shadow no-padding",attrs:{type:"border-card"},model:{value:e.activeCodeTab,callback:function(t){e.activeCodeTab=t},expression:"activeCodeTab"}},[n("el-tab-pane",{attrs:{label:"Vue",name:"vue"}},[n("code-editor",{attrs:{mode:"html",readonly:!0,"user-worker":!1},model:{value:e.vueCode,callback:function(t){e.vueCode=t},expression:"vueCode"}})],1),n("el-tab-pane",{attrs:{label:"HTML",name:"html"}},[n("code-editor",{attrs:{mode:"html",readonly:!0,"user-worker":!1},model:{value:e.htmlCode,callback:function(t){e.htmlCode=t},expression:"htmlCode"}})],1)],1),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{staticClass:"copy-vue-btn",attrs:{type:"primary","data-clipboard-text":e.vueCode},on:{click:e.copyVueCode}},[e._v(" "+e._s(e.i18nt("designer.hint.copyVueCode")))]),n("el-button",{staticClass:"copy-html-btn",attrs:{type:"primary","data-clipboard-text":e.htmlCode},on:{click:e.copyHtmlCode}},[e._v(" "+e._s(e.i18nt("designer.hint.copyHtmlCode")))]),n("el-button",{on:{click:e.saveVueCode}},[e._v(e._s(e.i18nt("designer.hint.saveVueCode")))]),n("el-button",{on:{click:e.saveHtmlCode}},[e._v(e._s(e.i18nt("designer.hint.saveHtmlCode")))]),n("el-button",{attrs:{type:""},on:{click:function(t){e.showExportCodeDialogFlag=!1}}},[e._v(" "+e._s(e.i18nt("designer.hint.closePreview")))])],1)],1):e._e(),e.showFormDataDialogFlag?n("el-dialog",{directives:[{name:"dialog-drag",rawName:"v-dialog-drag"}],staticClass:"dialog-title-light-bg",attrs:{title:e.i18nt("designer.hint.exportFormData"),visible:e.showFormDataDialogFlag,"show-close":!0,center:"","close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":!0,"append-to-body":!0},on:{"update:visible":function(t){e.showFormDataDialogFlag=t}}},[n("div",{staticStyle:{border:"1px solid #DCDFE6"}},[n("code-editor",{attrs:{mode:"json",readonly:!0},model:{value:e.formDataJson,callback:function(t){e.formDataJson=t},expression:"formDataJson"}})],1),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{staticClass:"copy-form-data-json-btn",attrs:{type:"primary","data-clipboard-text":e.formDataRawJson},on:{click:e.copyFormDataJson}},[e._v(" "+e._s(e.i18nt("designer.hint.copyFormData")))]),n("el-button",{on:{click:e.saveFormData}},[e._v(e._s(e.i18nt("designer.hint.saveFormData")))]),n("el-button",{attrs:{type:""},on:{click:function(t){e.showFormDataDialogFlag=!1}}},[e._v(" "+e._s(e.i18nt("designer.hint.closePreview")))])],1)]):e._e(),e.showExportSFCDialogFlag?n("el-dialog",{directives:[{name:"dialog-drag",rawName:"v-dialog-drag"}],staticClass:"small-padding-dialog",attrs:{title:e.i18nt("designer.toolbar.generateSFC"),visible:e.showExportSFCDialogFlag,"show-close":!0,center:"","append-to-body":"",width:"65%","close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":!0},on:{"update:visible":function(t){e.showExportSFCDialogFlag=t}}},[n("el-tabs",{staticClass:"no-box-shadow no-padding",attrs:{type:"border-card"},model:{value:e.activeSFCTab,callback:function(t){e.activeSFCTab=t},expression:"activeSFCTab"}},[n("el-tab-pane",{attrs:{label:"Vue2",name:"vue2"}},[n("code-editor",{attrs:{mode:"html",readonly:!0,"user-worker":!1},model:{value:e.sfcCode,callback:function(t){e.sfcCode=t},expression:"sfcCode"}})],1),n("el-tab-pane",{attrs:{label:"Vue3",name:"vue3"}},[n("code-editor",{attrs:{mode:"html",readonly:!0,"user-worker":!1},model:{value:e.sfcCodeV3,callback:function(t){e.sfcCodeV3=t},expression:"sfcCodeV3"}})],1)],1),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{staticClass:"copy-vue2-sfc-btn",attrs:{type:"primary","data-clipboard-text":e.sfcCode},on:{click:e.copyV2SFC}},[e._v(" "+e._s(e.i18nt("designer.hint.copyVue2SFC")))]),n("el-button",{staticClass:"copy-vue3-sfc-btn",attrs:{type:"primary","data-clipboard-text":e.sfcCodeV3},on:{click:e.copyV3SFC}},[e._v(" "+e._s(e.i18nt("designer.hint.copyVue3SFC")))]),n("el-button",{on:{click:e.saveV2SFC}},[e._v(e._s(e.i18nt("designer.hint.saveVue2SFC")))]),n("el-button",{on:{click:e.saveV3SFC}},[e._v(e._s(e.i18nt("designer.hint.saveVue3SFC")))]),n("el-button",{attrs:{type:""},on:{click:function(t){e.showExportSFCDialogFlag=!1}}},[e._v(" "+e._s(e.i18nt("designer.hint.closePreview")))])],1)],1):e._e()],1)},D=[],W=(n("e9c4"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form",{ref:"renderForm",staticClass:"render-form",class:[e.customClass],attrs:{"label-position":e.labelPosition,size:e.size,"label-width":e.labelWidth,"validate-on-rule-change":!1,model:e.formDataModel},nativeOn:{submit:function(e){e.preventDefault()}}},[e._l(e.widgetList,(function(t,i){return["container"===t.category?[n(e.getContainerWidgetName(t),{key:t.id,tag:"component",attrs:{widget:t,"parent-list":e.widgetList,"index-of-parent-list":i,"parent-widget":null},scopedSlots:e._u([e._l(Object.keys(e.$scopedSlots),(function(t){return{key:t,fn:function(n){return[e._t(t,null,null,n)]}}}))],null,!0)})]:[n(e.getWidgetName(t),{key:t.id,tag:"component",attrs:{field:t,"form-model":e.formDataModel,designer:null,"parent-list":e.widgetList,"index-of-parent-list":i,"parent-widget":null},scopedSlots:e._u([e._l(Object.keys(e.$scopedSlots),(function(t){return{key:t,fn:function(n){return[e._t(t,null,null,n)]}}}))],null,!0)})]]}))],2)}),B=[],H=n("2909"),z=(n("e6cf"),n("b64b"),n("c6e3")),V=(n("e260"),n("ddb0"),n("8bbf")),U=n.n(V),K=n("10ae");K.keys().map((function(e){var t=K(e).default;U.a.component(t.name,t)}));var G,Y=n("c029"),J={name:"VFormRender",componentName:"VFormRender",mixins:[z["a"],E["b"]],components:Object(p["a"])({},Y["a"]),props:{formJson:{type:Object,default:function(){return Object(O["b"])()}},formData:{type:Object,default:function(){return{}}},optionData:{type:Object,default:function(){return{}}},previewState:{type:Boolean,default:!1},globalDsv:{type:Object,default:function(){return{}}}},provide:function(){var e=this;return{refList:this.widgetRefList,sfRefList:this.subFormRefList,formConfig:this.formConfig,getGlobalDsv:function(){return e.globalDsv},globalOptionData:this.optionData,getOptionData:function(){return e.optionData},globalModel:{formModel:this.formDataModel},previewState:this.previewState}},data:function(){return{formJsonObj:this.formJson,formDataModel:{},widgetRefList:{},subFormRefList:{},formId:null,externalComponents:{}}},computed:{formConfig:function(){return this.formJsonObj.formConfig},widgetList:function(){return this.formJsonObj.widgetList},labelPosition:function(){return this.formConfig&&this.formConfig.labelPosition?this.formConfig.labelPosition:"left"},labelWidth:function(){return this.formConfig&&this.formConfig.labelWidth?this.formConfig.labelWidth+"px":"80px"},size:function(){return this.formConfig&&this.formConfig.size?this.formConfig.size:"medium"},customClass:function(){return this.formConfig&&this.formConfig.customClass?this.formConfig.customClass:""}},watch:{},created:function(){this.buildFormModel(this.formJsonObj?this.formJsonObj.widgetList:null),this.initFormObject()},mounted:function(){this.initLocale(),this.handleOnMounted()},methods:{initFormObject:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.formId="vfRender"+Object(O["f"])(),e&&this.insertCustomStyleAndScriptNode(),this.addFieldChangeEventHandler(),this.addFieldValidateEventHandler(),this.registerFormToRefList(),this.handleOnCreated()},getContainerWidgetName:function(e){return"grid"===e.type?"vf-grid-item":e.type+"-item"},getWidgetName:function(e){return e.type+"-widget"},initLocale:function(){var e=localStorage.getItem("v_form_locale")||"zh-CN";this.changeLanguage(e)},insertCustomStyleAndScriptNode:function(){this.formConfig&&this.formConfig.cssCode&&Object(O["k"])(this.formConfig.cssCode,this.previewState?"":this.formId),this.formConfig&&this.formConfig.functions&&Object(O["l"])(this.formConfig.functions,this.previewState?"":this.formId)},buildFormModel:function(e){var t=this;e&&e.length>0&&e.forEach((function(e){t.buildDataFromWidget(e)}))},buildDataFromWidget:function(e){var t=this;if("container"===e.category)if("grid"===e.type)e.cols&&e.cols.length>0&&e.cols.forEach((function(e){t.buildDataFromWidget(e)}));else if("table"===e.type)e.rows&&e.rows.length>0&&e.rows.forEach((function(e){e.cols&&e.cols.length>0&&e.cols.forEach((function(e){t.buildDataFromWidget(e)}))}));else if("tab"===e.type)e.tabs&&e.tabs.length>0&&e.tabs.forEach((function(e){e.widgetList&&e.widgetList.length>0&&e.widgetList.forEach((function(e){t.buildDataFromWidget(e)}))}));else if("sub-form"===e.type){var n=e.options.name;if(this.formData.hasOwnProperty(n)){var i=this.formData[n];this.$set(this.formDataModel,n,Object(O["d"])(i))}else{var o={};e.options.showBlankRow?(e.widgetList.forEach((function(e){e.formItemFlag&&(o[e.options.name]=e.options.defaultValue)})),this.$set(this.formDataModel,n,[o])):this.$set(this.formDataModel,n,[])}}else"grid-col"===e.type||e.type,e.widgetList&&e.widgetList.length>0&&e.widgetList.forEach((function(e){t.buildDataFromWidget(e)}));else if(e.formItemFlag)if(this.formData.hasOwnProperty(e.options.name)){var r=this.formData[e.options.name];this.$set(this.formDataModel,e.options.name,Object(O["d"])(r))}else this.$set(this.formDataModel,e.options.name,e.options.defaultValue)},addFieldChangeEventHandler:function(){var e=this;this.$off("fieldChange"),this.$on("fieldChange",(function(t,n,i,o,r){e.handleFieldDataChange(t,n,i,o,r),e.$emit("formChange",t,n,i,e.formDataModel,o,r)}))},addFieldValidateEventHandler:function(){var e=this;this.$off("fieldValidation"),this.$on("fieldValidation",(function(t){e.$refs.renderForm.validateField(t)}))},registerFormToRefList:function(){this.widgetRefList["v_form_ref"]=this},handleFieldDataChange:function(e,t,n,i,o){if(this.formConfig&&this.formConfig.onFormDataChange){var r=new Function("fieldName","newValue","oldValue","formModel","subFormName","subFormRowIndex",this.formConfig.onFormDataChange);r.call(this,e,t,n,this.formDataModel,i,o)}},handleOnCreated:function(){if(this.formConfig&&this.formConfig.onFormCreated){var e=new Function(this.formConfig.onFormCreated);e.call(this)}},handleOnMounted:function(){if(this.formConfig&&this.formConfig.onFormMounted){var e=new Function(this.formConfig.onFormMounted);e.call(this)}},findWidgetAndSetDisabled:function(e,t){var n=this.getWidgetRef(e);n?n.setDisabled(t):this.findWidgetOfSubFormAndSetDisabled(e,t)},findWidgetOfSubFormAndSetDisabled:function(e,t){var n=this;this.findWidgetNameInSubForm(e).forEach((function(e){var i=n.getWidgetRef(e);i&&i.setDisabled(t)}))},findWidgetAndSetHidden:function(e,t){var n=this.getWidgetRef(e);n?n.setHidden(t):this.findWidgetOfSubFormAndSetHidden(e,t)},findWidgetOfSubFormAndSetHidden:function(e,t){var n=this;this.findWidgetNameInSubForm(e).forEach((function(e){var i=n.getWidgetRef(e);i&&i.setHidden(t)}))},findWidgetNameInSubForm:function(e){var t=[],n=null,i=function(t,i){t.options&&t.options.name===e&&(n=i.options.name)};if(Object(O["t"])(this.widgetList,i),n){var o=this.getWidgetRef(n);if(o){var r=o.getRowIdData();r&&r.length>0&&r.forEach((function(n){t.push(e+"@row"+n)}))}}return t},changeLanguage:function(e){Object(E["a"])(e)},getNativeForm:function(){return this.$refs["renderForm"]},getFormRef:function(){return this},getWidgetRef:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.widgetRefList[e];return!n&&t&&this.$message.error(this.i18nt("render.hint.refNotFound")+e),n},clearFormDataModel:function(){for(var e in this.formDataModel)delete this.formDataModel[e]},setFormJson:function(e){var t=this;if(e)if("string"===typeof e||e.constructor===Object){var n=null;if(n="string"===typeof e?JSON.parse(e):e,!n.formConfig||!n.widgetList)return void this.$message.error("Invalid format of form json.");this.clearFormDataModel(),this.buildFormModel(n.widgetList),this.$set(this.formJsonObj,"formConfig",n.formConfig),this._provided.formConfig=n.formConfig,this.$set(this.formJsonObj,"widgetList",n.widgetList),this.insertCustomStyleAndScriptNode(),this.$nextTick((function(){t.initFormObject(!1),t.handleOnMounted()}))}else this.$message.error("Set form json failed.")},reloadOptionData:function(e){var t=[];e&&"string"===typeof e?t=[e]:e&&Array.isArray(e)&&(t=Object(H["a"])(e)),this.broadcast("FieldWidget","reloadOptionItems",[t])},getFormData:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!t)return this.formDataModel;var n=function(){},i=new window.Promise((function(e,t){n=function(n,i){i?t(i):e(n)}}));return this.$refs["renderForm"].validate((function(t){t?n(e.formDataModel):n(e.formDataModel,e.i18nt("render.hint.validationFailed"))})),i},setFormData:function(e){var t=this;Object.keys(this.formDataModel).forEach((function(n){e&&e.hasOwnProperty(n)&&(t.formDataModel[n]=Object(O["d"])(e[n]))})),this.broadcast("ContainerItem","setFormData",this.formDataModel),this.broadcast("FieldWidget","setFormData",this.formDataModel)},getFieldValue:function(e){var t=this,n=this.getWidgetRef(e);if(n&&n.getValue)return n.getValue();if(!n){var i=[];return this.findWidgetNameInSubForm(e).forEach((function(e){var n=t.getWidgetRef(e);n&&n.getValue&&i.push(n.getValue())})),i}},setFieldValue:function(e,t){var n=this,i=this.getWidgetRef(e);i&&i.setValue&&i.setValue(t),i||this.findWidgetNameInSubForm(e).forEach((function(e){var i=n.getWidgetRef(e);i&&i.setValue&&i.setValue(t)}))},getSubFormValues:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.subFormRefList[e];return n.getSubFormValues(t)},setSubFormValues:function(e,t){},disableForm:function(){var e=this,t=Object.keys(this.widgetRefList);t.forEach((function(t){var n=e.getWidgetRef(t);n&&(n.widget&&"sub-form"===n.widget.type?n.disableSubForm():n.setDisabled&&n.setDisabled(!0))}))},enableForm:function(){var e=this,t=Object.keys(this.widgetRefList);t.forEach((function(t){var n=e.getWidgetRef(t);n&&(n.widget&&"sub-form"===n.widget.type?n.enableSubForm():n.setDisabled&&n.setDisabled(!1))}))},resetForm:function(){var e=this,t=Object.keys(this.subFormRefList);t.forEach((function(t){e.subFormRefList[t].resetSubForm&&e.subFormRefList[t].resetSubForm()}));var n=Object.keys(this.widgetRefList);n.forEach((function(t){var n=e.getWidgetRef(t);n&&!n.subFormItemFlag&&n.resetField&&n.resetField()})),this.$nextTick((function(){e.clearValidate()}))},clearValidate:function(e){this.$refs.renderForm.clearValidate(e)},validateForm:function(e){this.$refs["renderForm"].validate((function(t){e(t)}))},validateFields:function(){},disableWidgets:function(e){var t=this;e&&("string"===typeof e?this.findWidgetAndSetDisabled(e,!0):Array.isArray(e)&&e.forEach((function(e){t.findWidgetAndSetDisabled(e,!0)})))},enableWidgets:function(e){var t=this;e&&("string"===typeof e?this.findWidgetAndSetDisabled(e,!1):Array.isArray(e)&&e.forEach((function(e){t.findWidgetAndSetDisabled(e,!1)})))},hideWidgets:function(e){var t=this;e&&("string"===typeof e?this.findWidgetAndSetHidden(e,!0):Array.isArray(e)&&e.forEach((function(e){t.findWidgetAndSetHidden(e,!0)})))},showWidgets:function(e){var t=this;e&&("string"===typeof e?this.findWidgetAndSetHidden(e,!1):Array.isArray(e)&&e.forEach((function(e){t.findWidgetAndSetHidden(e,!1)})))},getFieldWidgets:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e?Object(O["h"])(e):Object(O["h"])(this.formJsonObj.widgetList)},getContainerWidgets:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e?Object(O["g"])(e):Object(O["g"])(this.formJsonObj.widgetList)},addEC:function(e,t){this.externalComponents[e]=t},hasEC:function(e){return this.externalComponents.hasOwnProperty(e)},getEC:function(e){return this.externalComponents[e]},getGlobalDsv:function(){return this.globalDsv}}},X=J,Z=(n("d312"),Object(R["a"])(X,W,B,!1,null,"5fc8e448",null)),Q=Z.exports,ee=n("9470"),te=n("b311"),ne=n.n(te),ie=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"vue",n=JSON.stringify(e);return"html"===t?'<!DOCTYPE html>\n<html>\n<head>\n\t<meta charset="UTF-8">\n\t<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no" />\n\t<title>VForm Demo</title>\n\t<link rel="stylesheet" href="https://cdn.staticfile.org/element-ui/2.15.7/theme-chalk/index.min.css">\n\t<link rel="stylesheet" href="https://ks3-cn-beijing.ksyun.com/vform2021/VFormRender.css?t=20210720">\n\t<style type="text/css">\n\t</style>\n</head>\n<body>\n\n <div id="app">\n\t <v-form-render :form-json="formJson" :form-data="formData" :option-data="optionData" ref="vFormRef">\n </v-form-render>\n\t <el-button type="primary" @click="submitForm">Submit</el-button>\n </div>\n\n<script type="text/javascript">\n if (!!window.ActiveXObject || "ActiveXObject" in window) { //IE load polyfill.js for Promise\n var scriptEle = document.createElement("script");\n scriptEle.type = "text/javascript";\n scriptEle.src = "https://cdn.bootcss.com/babel-polyfill/6.23.0/polyfill.min.js"\n document.body.appendChild(scriptEle)\n }\n<\/script>\n<script src="https://lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/vue/2.6.14/vue.min.js"><\/script>\n<script src="https://cdn.staticfile.org/element-ui/2.15.7/index.min.js"><\/script>\n<script src="https://ks3-cn-beijing.ksyun.com/vform2021/VFormRender.umd.min.js?t=20210720"><\/script>\n<script>\n\tnew Vue({\n el: \'#app\',\n data: {\n formJson: '.concat(n,",\n formData: {},\n optionData: {}\n },\n methods: {\n submitForm() {\n this.$refs.vFormRef.getFormData().then( function(formData) {\n // Form Validation OK\n alert( JSON.stringify(formData) )\n }).catch( function(error) {\n // Form Validation Failed\n alert(error)\n })\n }\n }\n\t});\n<\/script>\n</body>\n</html>"):'<template>\n <div>\n <v-form-render :form-json="formJson" :form-data="formData" :option-data="optionData" ref="vFormRef">\n </v-form-render>\n <el-button type="primary" @click="submitForm">Submit</el-button>\n </div>\n</template>\n<script>\n export default {\n data() {\n return {\n formJson: '.concat(n,",\n formData: {},\n optionData: {}\n }\n },\n methods: {\n submitForm() {\n this.$refs.vFormRef.getFormData().then(formData => {\n // Form Validation OK\n alert( JSON.stringify(formData) )\n }).catch(error => {\n // Form Validation failed\n this.$message.error(error)\n })\n }\n }\n }\n<\/script>")},oe=(n("a15b"),n("99af"),n("71bc")),re=n("01ea"),se={html:{indent_size:"2",indent_char:" ",max_preserve_newlines:"-1",preserve_newlines:!1,keep_array_indentation:!1,break_chained_methods:!1,indent_scripts:"separate",brace_style:"end-expand",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:"110",indent_inner_html:!0,comma_first:!1,e4x:!0,indent_empty_lines:!0},js:{indent_size:"2",indent_char:" ",max_preserve_newlines:"-1",preserve_newlines:!1,keep_array_indentation:!1,break_chained_methods:!1,indent_scripts:"normal",brace_style:"end-expand",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!0,end_with_newline:!0,wrap_line_length:"110",indent_inner_html:!0,comma_first:!1,e4x:!0,indent_empty_lines:!0},css:{indent_size:"2",indent_char:" ",max_preserve_newlines:"-1",preserve_newlines:!1,keep_array_indentation:!1,break_chained_methods:!1,indent_scripts:"normal",brace_style:"end-expand",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!0,end_with_newline:!0,wrap_line_length:"110",indent_inner_html:!0,comma_first:!1,e4x:!0,indent_empty_lines:!0}};function ae(e){G?e(G):Object(O["p"])(re["b"],(function(){G=beautifier,e(G)}))}var le=function(e,t){var n=[],i=[],o=[],r=[];Object(O["t"])(t,(function(s){Object(oe["b"])(e,t,n)(s),Object(oe["d"])(e,t,i)(s),Object(oe["c"])(e,t,o)(s),Object(oe["e"])(e,t,r)(s)}));var s=Object(oe["a"])(e,t),a=" import { defineComponent, toRefs, reactive, getCurrentInstance } from 'vue'\n \n export default defineComponent({\n components: {},\n props: {},\n setup() {\n const state = reactive({\n ".concat(e.modelName,": {\n ").concat(n.join("\n"),"\n },\n \n ").concat(e.rulesName,": {\n ").concat(i.join("\n"),"\n },\n \n ").concat(s.join("\n"),"\n \n ").concat(o.join("\n"),"\n \n ").concat(r.join("\n"),"\n })\n \n const instance = getCurrentInstance()\n \n const submitForm = () => {\n instance.proxy.$refs['vForm'].validate(valid => {\n if (!valid) return\n \n //TODO: 提交表单\n })\n }\n \n const resetForm = () => {\n instance.proxy.$refs['vForm'].resetFields()\n }\n \n return {\n ...toRefs(state),\n submitForm,\n resetForm\n }\n }\n })");return a};function ce(e,t){var n=e.options,i=[];return t&&i.push(t),n.customClass&&n.customClass.length>0&&i.push(n.customClass.join(" ")),i.length>0?'class="'.concat(i.join(" "),'"'):""}var ue={grid:function(e,t){var n=ce(e),i="<el-row ".concat(n,">\n").concat(e.cols.map((function(e){var n=e.options,i=n.responsive?"":':span="'.concat(n.span,'"'),o=n.responsive?':md="'.concat(n.md,'"'):"",r=n.responsive?':sm="'.concat(n.sm,'"'):"",s=n.responsive?':xs="'.concat(n.xs,'"'):"",a=n.offset?':offset="'.concat(n.offset,'"'):"",l=n.push?':push="'.concat(n.push,'"'):"",c=n.pull?':pull="'.concat(n.pull,'"'):"",u=ce(e,"grid-cell");return"<el-col ".concat(i," ").concat(o," ").concat(r," ").concat(s," ").concat(a," ").concat(l," ").concat(c," ").concat(u,">\n ").concat(e.widgetList.map((function(e){return"container"===e.category?de(e,t):be(e,t)})).join(""),"\n </el-col>")})).join(""),"\n</el-row>");return i},table:function(e,t){var n=ce(e,"table-layout"),i='<div class="table-container">\n <table '.concat(n,"><tbody>\n ").concat(e.rows.map((function(e){return"<tr>".concat(e.cols.filter((function(e){return!e.merged})).map((function(e){var n=e.options,i=ce(e,"table-cell"),o=isNaN(n.colspan)||1===n.colspan?"":'colspan="'.concat(n.colspan,'"'),r=isNaN(n.rowspan)||1===n.rowspan?"":'rowspan="'.concat(n.rowspan,'"'),s=[];n.cellWidth&&s.push("width: "+n.cellWidth+" !important"),n.cellHeight&&s.push("height: "+n.cellHeight+" !important");var a=s.length>0?'style="'.concat(s.join(";"),'"'):"";return"<td ".concat(i," ").concat(o," ").concat(r," ").concat(a,">").concat(e.widgetList.map((function(e){return"container"===e.category?de(e,t):be(e,t)})).join(""),"\n </td>")})).join(""),"</tr>")})).join(""),"\n </tbody></table>\n</div>");return i},tab:function(e,t){var n=ce(e),i=e.tabs&&e.tabs.length>0?'v-model="'.concat(e.options.name,'ActiveTab"'):"",o='<div class="tab-container">\n <el-tabs '.concat(i,' type="').concat(e.displayType,'" ').concat(n,">\n ").concat(e.tabs.map((function(e){var n=e.options,i=!0===n.disabled?"disabled":"";return'<el-tab-pane name="'.concat(n.name,'" label="').concat(n.label,'" ').concat(i,">\n ").concat(e.widgetList.map((function(e){return"container"===e.category?de(e,t):be(e,t)})).join(""),"</el-tab-pane>")})).join(""),"\n </el-tabs>\n</div>");return o},"sub-form":function(e,t){}};function de(e,t){return ue[e.type]?ue[e.type](e,t):null}function he(e,t){var n=e.options;return{vModel:'v-model="'.concat(t.modelName,".").concat(n.name,'"'),readonly:n.readonly?'readonly="true"':"",disabled:n.disabled?':disabled="true"':"",size:n.size?'size="'.concat(n.size,'"'):"",type:n.type?'type="'.concat("number"===n.type?"text":n.type,'"'):"",showPassword:n.showPassword?':show-password="'.concat(n.showPassword,'"'):"",placeholder:n.placeholder?'placeholder="'.concat(n.placeholder,'"'):"",rows:Object(O["n"])(n.rows)&&!isNaN(n.rows)?'rows="'.concat(n.rows,'"'):"",clearable:n.clearable?"clearable":"",minlength:Object(O["n"])(n.minLength)&&!isNaN(n.minLength)?':minlength="'.concat(n.minLength,'"'):"",maxlength:Object(O["n"])(n.maxLength)&&!isNaN(n.maxLength)?':maxlength="'.concat(n.maxLength,'"'):"",showWordLimit:n.showWordLimit?':show-word-limit="true"':"",prefixIcon:n.prefixIcon?'prefix-icon="'.concat(n.prefixIcon,'"'):"",suffixIcon:n.suffixIcon?'suffix-icon="'.concat(n.suffixIcon,'"'):"",controlsPosition:"right"===n.controlsPosition?'controls-position="right"':"",min:Object(O["n"])(n.min)&&!isNaN(n.min)?':min="'.concat(n.min,'"'):"",max:Object(O["n"])(n.max)&&!isNaN(n.max)?':max="'.concat(n.max,'"'):"",precision:Object(O["n"])(n.precision)&&!isNaN(n.precision)?':precision="'.concat(n.precision,'"'):"",step:Object(O["n"])(n.step)&&!isNaN(n.step)?':step="'.concat(n.step,'"'):"",filterable:n.filterable?"filterable":"",allowCreate:n.allowCreate?"allow-create":"",defaultFirstOption:n.filterable&&n.allowCreate?"default-first-option":"",multiple:n.multiple?"multiple":"",multipleLimit:!isNaN(n.multipleLimit)&&n.multipleLimit>0?':multiple-limit="'.concat(n.multipleLimit,'"'):"",automaticDropdown:n.automaticDropdown?"automatic-dropdown":"",remote:n.remote?"remote":"",format:n.format?'format="'.concat(n.format,'"'):"",valueFormat:n.valueFormat?'value-format="'.concat(n.valueFormat,'"'):"",editable:n.editable?':editable="'.concat(n.editable,'"'):"",startPlaceholder:n.startPlaceholder?'start-placeholder="'.concat(n.startPlaceholder,'"'):"",endPlaceholder:n.endPlaceholder?'end-placeholder="'.concat(n.endPlaceholder,'"'):"",activeText:n.activeText?'active-text="'.concat(n.activeText,'"'):"",inactiveText:n.inactiveText?'inactive-text="'.concat(n.inactiveText,'"'):"",activeColor:n.activeColor?'active-color="'.concat(n.activeColor,'"'):"",inactiveColor:n.inactiveColor?'inactive-color="'.concat(n.inactiveColor,'"'):"",switchWidth:isNaN(n.switchWidth)||40===n.switchWidth?"":':width="'.concat(n.switchWidth,'"'),rateMax:isNaN(n.max)||5===n.max?"":':max="'.concat(n.max,'"'),lowThreshold:isNaN(n.lowThreshold)||2===n.lowThreshold?"":':low-threshold="'.concat(n.lowThreshold,'"'),highThreshold:isNaN(n.highThreshold)||4===n.highThreshold?"":':high-threshold="'.concat(n.highThreshold,'"'),allowHalf:n.allowHalf?"allow-half":"",showText:n.showText?"show-text":"",showScore:n.showScore?"show-score":"",sliderMin:isNaN(n.min)||0===n.min?"":':min="'.concat(n.min,'"'),sliderMax:isNaN(n.max)||100===n.max?"":':max="'.concat(n.max,'"'),sliderStep:isNaN(n.step)||1===n.step?"":':step="'.concat(n.step,'"'),sliderRange:n.range?"range":"",sliderVertical:n.vertical?"vertical":"",uploadAction:n.uploadURL?'action="'.concat(n.uploadURL,'"'):"",withCredentials:n.withCredentials?"with-credentials":"",multipleSelect:n.multipleSelect?"multiple":"",showFileList:n.showFileList?"show-file-list":"",limit:isNaN(n.limit)?"":':limit="'.concat(n.limit,'"'),uploadTipSlotChild:n.uploadTip?'<template #tip><div class="el-upload__tip">'.concat(n.uploadTip,"</div></template>"):"",pictureUploadIconChild:'<template #default><i class="el-icon-plus"></i></template>',fileUploadIconChild:'<template #default><i class="el-icon-plus"></i></template>',buttonType:n.type?'type="'.concat(n.type,'"'):"",buttonPlain:n.plain?"plain":"",buttonRound:n.round?"round":"",buttonCircle:n.circle?"circle":"",buttonIcon:n.icon?'icon="'.concat(n.icon,'"'):"",contentPosition:n.contentPosition&&"center"!==n.contentPosition?'content-position="'.concat(n.contentPosition,'"'):"",appendButtonChild:n.appendButton?'<template #append><el-button class="'.concat(n.buttonIcon,'" ').concat(n.appendButtonDisabled?"disabled":"","></el-button></template>"):""}}function fe(e,t){var n=e.options,i=n.buttonStyle?"el-radio-button":"el-radio",o=n.border?"border":"",r='style="{display: '.concat(n.displayStyle,'}"');return"<".concat(i,' v-for="(item, index) in ').concat(n.name,'Options" :key="index" :label="item.value"\n :disabled="item.disabled" ').concat(o," ").concat(r,">{{item.label}}</").concat(i,">")}function pe(e,t){var n=e.options,i=n.buttonStyle?"el-checkbox-button":"el-checkbox",o=n.border?"border":"",r='style="{display: '.concat(n.displayStyle,'}"');return"<".concat(i,' v-for="(item, index) in ').concat(n.name,'Options" :key="index" :label="item.value"\n :disabled="item.disabled" ').concat(o," ").concat(r,">{{item.label}}</").concat(i,">")}function ge(e,t){var n=e.options,i="el-option";return"<".concat(i,' v-for="(item, index) in ').concat(n.name,'Options" :key="index" :label="item.label"\n :value="item.value" :disabled="item.disabled"></').concat(i,">")}var me={input:function(e,t){var n=he(e,t),i=n.vModel,o=n.readonly,r=n.disabled,s=n.size,a=n.type,l=n.showPassword,c=n.placeholder,u=n.clearable,d=n.minlength,h=n.maxlength,f=n.showWordLimit,p=n.prefixIcon,g=n.suffixIcon,m=n.appendButtonChild;return"<el-input ".concat(i," ").concat(o," ").concat(r," ").concat(s," ").concat(a," ").concat(l," ").concat(c," ").concat(u,"\n ").concat(d," ").concat(h," ").concat(f," ").concat(p," ").concat(g,">").concat(m,"</el-input>")},textarea:function(e,t){var n=he(e,t),i=n.vModel,o=n.readonly,r=n.disabled,s=n.size,a=n.type,l=n.showPassword,c=n.placeholder,u=n.rows,d=n.clearable,h=n.minlength,f=n.maxlength,p=n.showWordLimit;return'<el-input type="textarea" '.concat(i," ").concat(o," ").concat(r," ").concat(s," ").concat(a," ").concat(l," ").concat(c,"\n ").concat(u," ").concat(d," ").concat(h," ").concat(f," ").concat(p,"></el-input>")},number:function(e,t){var n=he(e,t),i=n.vModel,o=n.disabled,r=n.size,s=n.type,a=n.showPassword,l=n.placeholder,c=n.controlsPosition,u=n.min,d=n.max,h=n.precision,f=n.step;return"<el-input-number ".concat(i,' class="full-width-input" ').concat(o," ").concat(r," ").concat(s," ").concat(a,"\n ").concat(l," ").concat(c," ").concat(u," ").concat(d," ").concat(h," ").concat(f,"></el-input-number>")},radio:function(e,t){var n=he(e,t),i=n.vModel,o=n.disabled,r=n.size,s=fe(e,t);return"<el-radio-group ".concat(i," ").concat(o," ").concat(r,">").concat(s,"</el-radio-group>")},checkbox:function(e,t){var n=he(e,t),i=n.vModel,o=n.disabled,r=n.size,s=pe(e,t);return"<el-checkbox-group ".concat(i," ").concat(o," ").concat(r,">").concat(s,"</el-checkbox-group>")},select:function(e,t){var n=he(e,t),i=n.vModel,o=n.disabled,r=n.size,s=n.clearable,a=n.filterable,l=n.allowCreate,c=n.defaultFirstOption,u=n.automaticDropdown,d=n.multiple,h=n.multipleLimit,f=n.remote,p=n.placeholder,g=ge(e,t);return"<el-select ".concat(i,' class="full-width-input" ').concat(o," ").concat(r," ").concat(s," ").concat(a,"\n ").concat(l," ").concat(c," ").concat(u," ").concat(d," ").concat(h," ").concat(p,"\n ").concat(f,">").concat(g,"</el-select>")},time:function(e,t){var n=he(e,t),i=n.vModel,o=n.readonly,r=n.disabled,s=n.size,a=n.placeholder,l=n.clearable,c=n.format,u=n.editable;return"<el-time-picker ".concat(i,' class="full-width-input" ').concat(o," ").concat(r," ").concat(s," ").concat(c,'\n value-format="HH:mm:ss" ').concat(a," ").concat(l," ").concat(u,"></el-time-picker>")},"time-range":function(e,t){var n=he(e,t),i=n.vModel,o=n.readonly,r=n.disabled,s=n.size,a=n.startPlaceholder,l=n.endPlaceholder,c=n.clearable,u=n.format,d=n.editable;return"<el-time-picker is-range ".concat(i,' class="full-width-input" ').concat(o," ").concat(r," ").concat(s," ").concat(u,'\n value-format="HH:mm:ss" ').concat(a," ").concat(l," ").concat(c," ").concat(d,"></el-time-picker>")},date:function(e,t){var n=he(e,t),i=n.vModel,o=n.readonly,r=n.disabled,s=n.size,a=n.type,l=n.placeholder,c=n.clearable,u=n.format,d=n.valueFormat,h=n.editable;return"<el-date-picker ".concat(i," ").concat(a,' class="full-width-input" ').concat(o," ").concat(r," ").concat(s," ").concat(u,"\n ").concat(d," ").concat(l," ").concat(c," ").concat(h,"></el-date-picker>")},"date-range":function(e,t){var n=he(e,t),i=n.vModel,o=n.readonly,r=n.disabled,s=n.size,a=n.type,l=n.startPlaceholder,c=n.endPlaceholder,u=n.clearable,d=n.format,h=n.valueFormat,f=n.editable;return"<el-date-picker is-range ".concat(i," ").concat(a,' class="full-width-input" ').concat(o," ").concat(r," ").concat(s," ").concat(d,"\n ").concat(h," ").concat(l," ").concat(c," ").concat(u," ").concat(f,"></el-date-picker>")},switch:function(e,t){var n=he(e,t),i=n.vModel,o=n.disabled,r=n.activeText,s=n.inactiveText,a=n.activeColor,l=n.inactiveColor,c=n.switchWidth;return"<el-switch ".concat(i," ").concat(o," ").concat(r," ").concat(s," ").concat(a," ").concat(l,"\n ").concat(c,"></el-switch>")},rate:function(e,t){var n=he(e,t),i=n.vModel,o=n.disabled,r=n.rateMax,s=n.lowThreshold,a=n.highThreshold,l=n.allowHalf,c=n.showText,u=n.showScore;return"<el-rate ".concat(i," ").concat(o," ").concat(r," ").concat(s," ").concat(a," ").concat(l,"\n ").concat(c," ").concat(u,"></el-rate>")},color:function(e,t){var n=he(e,t),i=n.vModel,o=n.disabled,r=n.size;return"<el-color-picker ".concat(i," ").concat(o," ").concat(r,"></el-color-picker>")},slider:function(e,t){var n=he(e,t),i=n.vModel,o=n.disabled,r=n.sliderMin,s=n.sliderMax,a=n.sliderStep,l=n.sliderRange,c=n.sliderVertical;return"<el-slider ".concat(i," ").concat(o," ").concat(r," ").concat(s," ").concat(a," ").concat(l,"\n ").concat(c,"></el-slider>")},"picture-upload":function(e,t){var n=he(e,t),i=(n.vModel,n.disabled),o=n.uploadAction,r=n.withCredentials,s=n.multipleSelect,a=n.showFileList,l=n.limit,c=n.uploadTipSlotChild,u=n.pictureUploadIconChild,d=e.options;return'<el-upload :file-list="'.concat(d.name,'FileList" :headers="').concat(d.name,'UploadHeaders" :data="').concat(d.name,'UploadData" \n ').concat(i," ").concat(o,' list-type="picture-card" ').concat(r," ").concat(s," ").concat(a," \n ").concat(l,">").concat(c," ").concat(u,"</el-upload>")},"file-upload":function(e,t){var n=he(e,t),i=(n.vModel,n.disabled),o=n.uploadAction,r=n.withCredentials,s=n.multipleSelect,a=n.showFileList,l=n.limit,c=n.uploadTipSlotChild,u=n.fileUploadIconChild,d=e.options;return'<el-upload :file-list="'.concat(d.name,'FileList" :headers="').concat(d.name,'UploadHeaders" :data="').concat(d.name,'UploadData" \n ').concat(i," ").concat(o,' list-type="picture-card" ').concat(r," ").concat(s," ").concat(a," \n ").concat(l,">").concat(c," ").concat(u,"</el-upload>")},"rich-editor":function(e,t){var n=he(e,t),i=n.vModel,o=n.disabled,r=n.placeholder;return"<vue-editor ".concat(i," ").concat(o," ").concat(r,"></vue-editor>")},cascader:function(e,t){var n=he(e,t),i=n.vModel,o=n.disabled,r=n.size,s=n.clearable,a=n.filterable,l=n.placeholder,c=e.options,u=':options="'.concat(c.name,'Options"');return"<el-cascader ".concat(i,' class="full-width-input" ').concat(u," ").concat(o," ").concat(r," ").concat(s,"\n ").concat(a," ").concat(l,"></el-cascader>")},"static-text":function(e,t){return"<div>".concat(e.options.textContent,"</div>")},"html-text":function(e,t){return'<div v-html="'.concat(e.options.htmlContent,'"></div>')},button:function(e,t){var n=he(e,t),i=n.buttonType,o=n.buttonPlain,r=n.buttonRound,s=n.buttonCircle,a=n.buttonIcon,l=n.disabled;return"<el-button ".concat(i," ").concat(o," ").concat(r," ").concat(s," ").concat(a,"\n ").concat(l,">").concat(e.options.label,"</el-button>")},divider:function(e,t){var n=he(e,t),i=n.contentPosition;return'<el-divider direction="horizontal" '.concat(i,"></el-divider>")}};function be(e,t){var n=e.options,i=n.labelHidden?"":n.label,o=n.labelHidden?'label-width="0"':n.labelWidth?'label-width="'.concat(n.labelWidth,'px"'):"",r=n.labelTooltip?'title="'.concat(n.labelTooltip,'"'):"",s='prop="'.concat(n.name,'"'),a=[];n.required&&a.push("required"),n.customClass&&n.customClass.length>0&&a.push(n.customClass.join(" ")),n.labelAlign?"label-left-align"!==n.labelAlign&&a.push(n.labelAlign):e.formItemFlag&&"label-left-align"!==t.labelAlign&&a.push(t.labelAlign),e.formItemFlag||a.push("static-content-item");var l=a.length>0?'class="'.concat(a.join(" "),'"'):"",c='<template #label><span class="custom-label">'.concat("front"===n.labelIconPosition?n.labelTooltip?'<el-tooltip content="'.concat(n.labelTooltip,'" effect="light"><i class="').concat(n.labelIconClass,'"></i></el-tooltip>').concat(n.label):'<i class="'.concat(n.labelIconClass,'"></i>').concat(n.label):n.labelTooltip?"".concat(n.label,'<el-tooltip content="').concat(n.labelTooltip,'" effect="light"><i class="').concat(n.labelIconClass,'"></i></el-tooltip>'):"".concat(n.label,'<i class="').concat(n.labelIconClass,'"></i>'),"\n</span></template>");!n.labelIconClass&&(c="");var u=me[e.type]?me[e.type](e,t):null,d=!!e.formItemFlag,h=n.hidden?'v-show="false"':"";return d?'<el-form-item label="'.concat(i,'" ').concat(o," ").concat(r," ").concat(s," ").concat(l,">\n ").concat(c,"\n ").concat(u,"\n</el-form-item>"):"<div ".concat(l," ").concat(h,">").concat(u,"</div>")}function ve(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=n?"@submit.prevent":"@submit.native.prevent",o=[];t.forEach((function(t){"container"===t.category?o.push(de(t,e)):o.push(be(t,e))}));var r=' <el-form :model="'.concat(e.modelName,'" ref="').concat(e.refName,'" :rules="').concat(e.rulesName,'"\n label-position="').concat(e.labelPosition,'" label-width="').concat(e.labelWidth,'px" size="').concat(e.size||"medium",'"\n ').concat(i,">\n ").concat(o?o.join("\n"):"","\n</el-form>");return r}var ye=function(e){var t=' .el-input-number.full-width-input, .el-cascader.full-width-input {\n width: 100% !important;\n }\n \n .el-form-item--medium {\n .el-radio {\n line-height: 36px !important;\n }\n \n .el-rate{\n margin-top: 8px;\n }\n }\n\n .el-form-item--small {\n .el-radio {\n line-height: 32px !important;\n }\n \n .el-rate{\n margin-top: 6px;\n }\n }\n\n .el-form-item--mini {\n .el-radio {\n line-height: 28px !important;\n }\n \n .el-rate{\n margin-top: 4px;\n }\n }\n \n .clear-fix:before, .clear-fix:after {\n display: table;\n content: "";\n }\n\n .clear-fix:after {\n clear: both;\n }\n\n .float-right {\n float: right;\n }\n\n'.concat(e.cssCode);return t},we=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=" div.table-container {\n table.table-layout {\n width: 100%;\n table-layout: fixed;\n border-collapse: collapse;\n \n td.table-cell {\n display: table-cell;\n height: 36px;\n border: 1px solid #e1e2e3;\n }\n }\n }\n \n div.tab-container {\n }\n \n .label-left-align ".concat(t?":deep(.el-form-item__label)":"::v-deep .el-form-item__label"," {\n text-align: left;\n }\n\n .label-center-align ").concat(t?":deep(.el-form-item__label)":"::v-deep .el-form-item__label"," {\n text-align: center;\n }\n\n .label-right-align ").concat(t?":deep(.el-form-item__label)":"::v-deep .el-form-item__label"," {\n text-align: right;\n }\n \n .custom-label {\n }\n \n .static-content-item {\n min-height: 20px;\n display: flex;\n align-items: center;\n\n ").concat(t?":deep(.el-divider--horizontal)":"::v-deep .el-divider--horizontal"," {\n margin: 0;\n }\n }");return n},xe=function(e,t){ue[e]=t},Ce=function(e,t){me[e]=t},_e=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=n.html(ve(e,t,i),se.html),r=n.js(i?le(e,t):Object(oe["f"])(e,t),se.js),s=n.css(ye(e),se.css),a=n.css(we(e,i),se.css);return"\x3c!-- \nCodes Generated By VForm:\nhttps://www.vform666.com\n--\x3e\n\n<template>\n".concat(o,"\n</template>\n\n<script>\n").concat(r,'\n<\/script>\n\n<style lang="scss">\n').concat(s,'\n</style>\n\n<style lang="scss" scoped>\n').concat(a,"\n</style>")},ke=n("21a6"),Se={name:"ToolbarPanel",mixins:[E["b"]],components:{VFormRender:Q,CodeEditor:ee["a"],Clipboard:ne.a,SvgIcon:F},props:{designer:Object,globalDsv:{type:Object,default:function(){return{}}}},inject:["getDesignerConfig"],data:function(){return{designerConfig:this.getDesignerConfig(),toolbarWidth:420,showPreviewDialogFlag:!1,showImportJsonDialogFlag:!1,showExportJsonDialogFlag:!1,showExportCodeDialogFlag:!1,showFormDataDialogFlag:!1,showExportSFCDialogFlag:!1,showNodeTreeDrawerFlag:!1,nodeTreeData:[],testFunc:"",importTemplate:"",jsonContent:"",jsonRawContent:"",formDataJson:"",formDataRawJson:"",vueCode:"",htmlCode:"",sfcCode:"",sfcCodeV3:"",activeCodeTab:"vue",activeSFCTab:"vue2",testFormData:{select62173:2},testOptionData:{select62173:[{label:"01",value:1},{label:"22",value:2},{label:"333",value:3}],select001:[{label:"辣椒",value:1},{label:"菠萝",value:2},{label:"丑橘子",value:3}]}}},computed:{formJson:function(){return{widgetList:Object(O["d"])(this.designer.widgetList),formConfig:Object(O["d"])(this.designer.formConfig)}},undoDisabled:function(){return!this.designer.undoEnabled()},redoDisabled:function(){return!this.designer.redoEnabled()},layoutType:function(){return this.designer.getLayoutType()},designerDsv:function(){return this.globalDsv}},watch:{"designer.widgetList":{deep:!0,handler:function(e){}}},mounted:function(){var e=this,t=this.designerConfig.toolbarMaxWidth||420,n=this.designerConfig.toolbarMinWidth||300,i=window.innerWidth-260-300-320-80;this.toolbarWidth=i>=t?t:i<=n?n:i,Object(O["a"])((function(){e.$nextTick((function(){var i=window.innerWidth-260-300-320-80;e.toolbarWidth=i>=t?t:i<=n?n:i}))}))},methods:{showToolButton:function(e){return void 0===this.designerConfig[e]||!!this.designerConfig[e]},buildTreeNodeOfWidget:function(e,t){var n=this,i={id:e.id,label:e.options.label||e.type};t.push(i),void 0!==e.category&&(i.children=[],"grid"===e.type?e.cols.map((function(t){var o={id:t.id,label:t.options.name||e.type,children:[]};i.children.push(o),t.widgetList.map((function(e){n.buildTreeNodeOfWidget(e,o.children)}))})):"table"===e.type?e.rows.map((function(e){var t={id:e.id,label:"table-row",selectable:!1,children:[]};i.children.push(t),e.cols.map((function(e){if(!e.merged){var i=t.children,o={id:e.id,label:"table-cell",children:[]};i.push(o),e.widgetList.map((function(e){n.buildTreeNodeOfWidget(e,o.children)}))}}))})):"tab"===e.type?e.tabs.map((function(t){var o={id:t.id,label:t.options.name||e.type,selectable:!1,children:[]};i.children.push(o),t.widgetList.map((function(e){n.buildTreeNodeOfWidget(e,o.children)}))})):("sub-form"===e.type||"container"===e.category)&&e.widgetList.map((function(e){n.buildTreeNodeOfWidget(e,i.children)})))},refreshNodeTree:function(){var e=this;this.nodeTreeData.length=0,this.designer.widgetList.forEach((function(t){e.buildTreeNodeOfWidget(t,e.nodeTreeData)}))},showNodeTreeDrawer:function(){var e=this;this.refreshNodeTree(),this.showNodeTreeDrawerFlag=!0,this.$nextTick((function(){e.designer.selectedId&&e.$refs.nodeTree.setCurrentKey(e.designer.selectedId)}))},undoHistory:function(){this.designer.undoHistoryStep()},redoHistory:function(){this.designer.redoHistoryStep()},changeLayoutType:function(e){this.designer.changeLayoutType(e)},clearFormWidget:function(){this.designer.clearDesigner(),this.designer.formWidget.clearWidgetRefList()},previewForm:function(){this.showPreviewDialogFlag=!0},saveAsFile:function(e,t){var n=this;this.$prompt(this.i18nt("designer.hint.fileNameForSave"),this.i18nt("designer.hint.saveFileTitle"),{inputValue:t,closeOnClickModal:!1,inputPlaceholder:this.i18nt("designer.hint.fileNameInputPlaceholder")}).then((function(i){var o=i.value;if(o||(o=t),1!=Object(O["j"])("vscode")){var r=new Blob([e],{type:"text/plain;charset=utf-8"});Object(ke["saveAs"])(r,o)}else n.vsSaveFile(o,e)})).catch((function(){}))},vsSaveFile:function(e,t){var n={cmd:"writeFile",data:{fileName:e,code:t}};window.parent.postMessage(n,"*")},importJson:function(){this.importTemplate=JSON.stringify(this.designer.getImportTemplate(),null," "),this.showImportJsonDialogFlag=!0},doJsonImport:function(){try{var e=JSON.parse(this.importTemplate);this.designer.loadFormJson(e),this.showImportJsonDialogFlag=!1,this.$message.success(this.i18nt("designer.hint.importJsonSuccess")),this.designer.emitHistoryChange(),this.designer.emitEvent("form-json-imported",[])}catch(t){this.$message.error(t+"")}},exportJson:function(){var e=Object(O["d"])(this.designer.widgetList),t=Object(O["d"])(this.designer.formConfig);this.jsonContent=JSON.stringify({widgetList:e,formConfig:t},null," "),this.jsonRawContent=JSON.stringify({widgetList:e,formConfig:t}),this.showExportJsonDialogFlag=!0},copyFormJson:function(e){Object(O["c"])(this.jsonRawContent,e,this.$message,this.i18nt("designer.hint.copyJsonSuccess"),this.i18nt("designer.hint.copyJsonFail"))},saveFormJson:function(){this.saveAsFile(this.jsonContent,"vform".concat(Object(O["f"])(),".json"))},exportCode:function(){this.vueCode=ie(this.formJson),this.htmlCode=ie(this.formJson,"html"),this.showExportCodeDialogFlag=!0},copyVueCode:function(e){Object(O["c"])(this.vueCode,e,this.$message,this.i18nt("designer.hint.copyVueCodeSuccess"),this.i18nt("designer.hint.copyVueCodeFail"))},copyHtmlCode:function(e){Object(O["c"])(this.htmlCode,e,this.$message,this.i18nt("designer.hint.copyHtmlCodeSuccess"),this.i18nt("designer.hint.copyHtmlCodeFail"))},saveVueCode:function(){this.saveAsFile(this.vueCode,"vform".concat(Object(O["f"])(),".vue"))},saveHtmlCode:function(){this.saveAsFile(this.htmlCode,"vform".concat(Object(O["f"])(),".html"))},generateSFC:function(){var e=this;ae((function(t){e.sfcCode=_e(e.designer.formConfig,e.designer.widgetList,t),e.sfcCodeV3=_e(e.designer.formConfig,e.designer.widgetList,t,!0),e.showExportSFCDialogFlag=!0}))},copyV2SFC:function(e){Object(O["c"])(this.sfcCode,e,this.$message,this.i18nt("designer.hint.copySFCSuccess"),this.i18nt("designer.hint.copySFCFail"))},copyV3SFC:function(e){Object(O["c"])(this.sfcCodeV3,e,this.$message,this.i18nt("designer.hint.copySFCSuccess"),this.i18nt("designer.hint.copySFCFail"))},saveV2SFC:function(){this.saveAsFile(this.sfcCode,"vformV2-".concat(Object(O["f"])(),".vue"))},saveV3SFC:function(){this.saveAsFile(this.sfcCodeV3,"vformV3-".concat(Object(O["f"])(),".vue"))},getFormData:function(){var e=this;this.$refs["preForm"].getFormData().then((function(t){e.formDataJson=JSON.stringify(t,null," "),e.formDataRawJson=JSON.stringify(t),e.showFormDataDialogFlag=!0})).catch((function(t){e.$message.error(t)}))},copyFormDataJson:function(e){Object(O["c"])(this.formDataRawJson,e,this.$message,this.i18nt("designer.hint.copyJsonSuccess"),this.i18nt("designer.hint.copyJsonFail"))},saveFormData:function(){this.saveAsFile(this.htmlCode,"formData".concat(Object(O["f"])(),".json"))},resetForm:function(){this.$refs["preForm"].resetForm()},setFormDisabled:function(){this.$refs["preForm"].disableForm()},setFormEnabled:function(){this.$refs["preForm"].enableForm()},printFormJson:function(){var e={widgetList:Object(O["d"])(this.designer.widgetList),formConfig:Object(O["d"])(this.designer.formConfig)};console.log(e)},testValidate:function(){console.log("test===",this.$refs["preForm"].validateForm())},testSetFormData:function(){var e={checkbox45524:[1,2]};this.$refs["preForm"].setFormData(e)},testReloadOptionData:function(){this.testOptionData["select001"].push({label:"aaa",value:888}),this.$refs.preForm.reloadOptionData("select001")},handleFormChange:function(e,t,n,i){},testOnAppendButtonClick:function(e){console.log("test",e)},testOnButtonClick:function(e){console.log("test",e)},findWidgetById:function(e){var t=null;return Object(O["r"])(this.designer.widgetList,(function(n){n.id===e&&(t=n)})),t},onNodeTreeClick:function(e,t,n){if(void 0===e.selectable||e.selectable){var i=e.id,o=this.findWidgetById(i);o&&this.designer.setSelected(o)}else this.$message.info(this.i18nt("designer.hint.currentNodeCannotBeSelected"))}}},Oe=Se,Ee=(n("ceec"),Object(R["a"])(Oe,N,D,!1,null,"7fab259c",null)),Le=Ee.exports,Me=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-container",{staticClass:"panel-container"},[n("el-tabs",{staticStyle:{height:"100%",overflow:"hidden"},attrs:{"active-name":e.activeTab}},[n("el-tab-pane",{attrs:{label:e.i18nt("designer.hint.widgetSetting"),name:"1"}},[n("el-scrollbar",{staticClass:"setting-scrollbar",style:{height:e.scrollerHeight}},[e.designer.selectedWidget&&!e.designer.selectedWidget.category?[n("el-form",{staticClass:"setting-form",attrs:{model:e.optionModel,size:"mini","label-position":"left","label-width":"120px"},nativeOn:{submit:function(e){e.preventDefault()}}},[n("el-collapse",{staticClass:"setting-collapse",model:{value:e.widgetActiveCollapseNames,callback:function(t){e.widgetActiveCollapseNames=t},expression:"widgetActiveCollapseNames"}},[e.showCollapse(e.commonProps)?n("el-collapse-item",{attrs:{name:"1",title:e.i18nt("designer.setting.commonSetting")}},[e._l(e.commonProps,(function(t,i){return[e.hasPropEditor(i,t)?n(e.getPropEditor(i,t),{tag:"component",attrs:{designer:e.designer,"selected-widget":e.selectedWidget,"option-model":e.optionModel}}):e._e()]}))],2):e._e(),e.showCollapse(e.advProps)?n("el-collapse-item",{attrs:{name:"2",title:e.i18nt("designer.setting.advancedSetting")}},[e._l(e.advProps,(function(t,i){return[e.hasPropEditor(i,t)?n(e.getPropEditor(i,t),{tag:"component",attrs:{designer:e.designer,"selected-widget":e.selectedWidget,"option-model":e.optionModel}}):e._e()]}))],2):e._e(),e.showEventCollapse()&&e.showCollapse(e.eventProps)?n("el-collapse-item",{attrs:{name:"3",title:e.i18nt("designer.setting.eventSetting")}},[e._l(e.eventProps,(function(t,i){return[e.hasPropEditor(i,t)?n(e.getPropEditor(i,t),{tag:"component",attrs:{designer:e.designer,"selected-widget":e.selectedWidget,"option-model":e.optionModel}}):e._e()]}))],2):e._e()],1)],1)]:e._e(),e.designer.selectedWidget&&e.designer.selectedWidget.category?[n("el-form",{staticClass:"setting-form",attrs:{model:e.optionModel,size:"mini","label-position":"left","label-width":"120px"},nativeOn:{submit:function(e){e.preventDefault()}}},[n("el-collapse",{staticClass:"setting-collapse",model:{value:e.widgetActiveCollapseNames,callback:function(t){e.widgetActiveCollapseNames=t},expression:"widgetActiveCollapseNames"}},[e.showCollapse(e.commonProps)?n("el-collapse-item",{attrs:{name:"1",title:e.i18nt("designer.setting.commonSetting")}},[e._l(e.commonProps,(function(t,i){return[e.hasPropEditor(i,t)?n(e.getPropEditor(i,t),{tag:"component",attrs:{designer:e.designer,"selected-widget":e.selectedWidget,"option-model":e.optionModel}}):e._e()]}))],2):e._e(),e.showCollapse(e.advProps)?n("el-collapse-item",{attrs:{name:"2",title:e.i18nt("designer.setting.advancedSetting")}},[e._l(e.advProps,(function(t,i){return[e.hasPropEditor(i,t)?n(e.getPropEditor(i,t),{tag:"component",attrs:{designer:e.designer,"selected-widget":e.selectedWidget,"option-model":e.optionModel}}):e._e()]}))],2):e._e(),e.showEventCollapse()&&e.showCollapse(e.eventProps)?n("el-collapse-item",{attrs:{name:"3",title:e.i18nt("designer.setting.eventSetting")}},[e._l(e.eventProps,(function(t,i){return[e.hasPropEditor(i,t)?n(e.getPropEditor(i,t),{tag:"component",attrs:{designer:e.designer,"selected-widget":e.selectedWidget,"option-model":e.optionModel}}):e._e()]}))],2):e._e()],1)],1)]:e._e()],2)],1),e.designer?n("el-tab-pane",{attrs:{label:e.i18nt("designer.hint.formSetting"),name:"2"}},[n("el-scrollbar",{staticClass:"setting-scrollbar",style:{height:e.scrollerHeight}},[n("form-setting",{attrs:{designer:e.designer,"form-config":e.formConfig}})],1)],1):e._e()],1),e.showWidgetEventDialogFlag?n("el-dialog",{directives:[{name:"dialog-drag",rawName:"v-dialog-drag"}],staticClass:"small-padding-dialog",attrs:{title:e.i18nt("designer.setting.editWidgetEventHandler"),visible:e.showWidgetEventDialogFlag,"show-close":!0,"append-to-body":"","close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":!0},on:{"update:visible":function(t){e.showWidgetEventDialogFlag=t}}},[n("el-alert",{attrs:{type:"info",closable:!1,title:e.eventHeader}}),n("code-editor",{ref:"ecEditor",attrs:{mode:"javascript",readonly:!1},model:{value:e.eventHandlerCode,callback:function(t){e.eventHandlerCode=t},expression:"eventHandlerCode"}}),n("el-alert",{attrs:{type:"info",closable:!1,title:"}"}}),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.showWidgetEventDialogFlag=!1}}},[e._v(" "+e._s(e.i18nt("designer.hint.cancel")))]),n("el-button",{attrs:{type:"primary"},on:{click:e.saveEventHandler}},[e._v(" "+e._s(e.i18nt("designer.hint.confirm")))])],1)],1):e._e()],1)},Ae=[],Te=(n("ac1f"),n("5319"),n("0654")),Re={};Te.keys().map((function(e){var t=Te(e).default;Re[t.name]=t}));var $e=Re,Fe=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-form",{staticClass:"setting-form",attrs:{model:e.formConfig,size:"mini","label-position":"left","label-width":"120px"},nativeOn:{submit:function(e){e.preventDefault()}}},[n("el-collapse",{staticClass:"setting-collapse",model:{value:e.formActiveCollapseNames,callback:function(t){e.formActiveCollapseNames=t},expression:"formActiveCollapseNames"}},[n("el-collapse-item",{attrs:{name:"1",title:e.i18nt("designer.setting.basicSetting")}},[n("el-form-item",{attrs:{label:e.i18nt("designer.setting.formSize")}},[n("el-select",{model:{value:e.formConfig.size,callback:function(t){e.$set(e.formConfig,"size",t)},expression:"formConfig.size"}},e._l(e.formSizes,(function(e){return n("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),n("el-form-item",{attrs:{label:e.i18nt("designer.setting.labelPosition")}},[n("el-radio-group",{staticClass:"radio-group-custom",model:{value:e.formConfig.labelPosition,callback:function(t){e.$set(e.formConfig,"labelPosition",t)},expression:"formConfig.labelPosition"}},[n("el-radio-button",{attrs:{label:"left"}},[e._v(e._s(e.i18nt("designer.setting.leftPosition")))]),n("el-radio-button",{attrs:{label:"top"}},[e._v(e._s(e.i18nt("designer.setting.topPosition")))])],1)],1),n("el-form-item",{attrs:{label:e.i18nt("designer.setting.labelAlign")}},[n("el-radio-group",{staticClass:"radio-group-custom",model:{value:e.formConfig.labelAlign,callback:function(t){e.$set(e.formConfig,"labelAlign",t)},expression:"formConfig.labelAlign"}},[n("el-radio-button",{attrs:{label:"label-left-align"}},[e._v(e._s(e.i18nt("designer.setting.leftAlign")))]),n("el-radio-button",{attrs:{label:"label-center-align"}},[e._v(e._s(e.i18nt("designer.setting.centerAlign")))]),n("el-radio-button",{attrs:{label:"label-right-align"}},[e._v(e._s(e.i18nt("designer.setting.rightAlign")))])],1)],1),n("el-form-item",{attrs:{label:e.i18nt("designer.setting.labelWidth")}},[n("el-input-number",{staticStyle:{width:"100%"},attrs:{min:0},model:{value:e.formConfig.labelWidth,callback:function(t){e.$set(e.formConfig,"labelWidth",t)},expression:"formConfig.labelWidth"}})],1),n("el-form-item",{attrs:{label:e.i18nt("designer.setting.formCss")}},[n("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:"",round:""},on:{click:e.editFormCss}},[e._v(e._s(e.i18nt("designer.setting.addCss")))])],1),n("el-form-item",{attrs:{label:e.i18nt("designer.setting.customClass")}},[n("el-select",{attrs:{multiple:"",filterable:"","allow-create":"","default-first-option":""},model:{value:e.formConfig.customClass,callback:function(t){e.$set(e.formConfig,"customClass",t)},expression:"formConfig.customClass"}},e._l(e.cssClassList,(function(e,t){return n("el-option",{key:t,attrs:{label:e,value:e}})})),1)],1),n("el-form-item",{attrs:{label:e.i18nt("designer.setting.globalFunctions")}},[n("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:"",round:""},on:{click:e.editGlobalFunctions}},[e._v(e._s(e.i18nt("designer.setting.addEventHandler")))])],1),n("el-form-item",{attrs:{"label-width":"0"}},[n("el-divider",{staticClass:"custom-divider"},[e._v(e._s(e.i18nt("designer.setting.formSFCSetting")))])],1),n("el-form-item",{attrs:{label:e.i18nt("designer.setting.formModelName")}},[n("el-input",{attrs:{type:"text"},model:{value:e.formConfig.modelName,callback:function(t){e.$set(e.formConfig,"modelName",t)},expression:"formConfig.modelName"}})],1),n("el-form-item",{attrs:{label:e.i18nt("designer.setting.formRefName")}},[n("el-input",{attrs:{type:"text"},model:{value:e.formConfig.refName,callback:function(t){e.$set(e.formConfig,"refName",t)},expression:"formConfig.refName"}})],1),n("el-form-item",{attrs:{label:e.i18nt("designer.setting.formRulesName")}},[n("el-input",{attrs:{type:"text"},model:{value:e.formConfig.rulesName,callback:function(t){e.$set(e.formConfig,"rulesName",t)},expression:"formConfig.rulesName"}})],1)],1),e.showEventCollapse()?n("el-collapse-item",{attrs:{name:"2",title:e.i18nt("designer.setting.eventSetting")}},[n("el-form-item",{attrs:{label:"onFormCreated","label-width":"150px"}},[n("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:"",round:""},on:{click:function(t){return e.editFormEventHandler("onFormCreated")}}},[e._v(" "+e._s(e.i18nt("designer.setting.addEventHandler")))])],1),n("el-form-item",{attrs:{label:"onFormMounted","label-width":"150px"}},[n("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:"",round:""},on:{click:function(t){return e.editFormEventHandler("onFormMounted")}}},[e._v(" "+e._s(e.i18nt("designer.setting.addEventHandler")))])],1),n("el-form-item",{attrs:{label:"onFormDataChange","label-width":"150px"}},[n("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:"",round:""},on:{click:function(t){return e.editFormEventHandler("onFormDataChange")}}},[e._v(" "+e._s(e.i18nt("designer.setting.addEventHandler")))])],1)],1):e._e()],1)],1),e.showFormEventDialogFlag?n("el-dialog",{directives:[{name:"dialog-drag",rawName:"v-dialog-drag"}],staticClass:"small-padding-dialog",attrs:{title:e.i18nt("designer.setting.editFormEventHandler"),visible:e.showFormEventDialogFlag,"show-close":!0,"append-to-body":"","close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":!0},on:{"update:visible":function(t){e.showFormEventDialogFlag=t}}},[n("el-alert",{attrs:{type:"info",closable:!1,title:"form."+e.eventParamsMap[e.curEventName]}}),n("code-editor",{ref:"ecEditor",attrs:{mode:"javascript",readonly:!1},model:{value:e.formEventHandlerCode,callback:function(t){e.formEventHandlerCode=t},expression:"formEventHandlerCode"}}),n("el-alert",{attrs:{type:"info",closable:!1,title:"}"}}),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.showFormEventDialogFlag=!1}}},[e._v(" "+e._s(e.i18nt("designer.hint.cancel")))]),n("el-button",{attrs:{type:"primary"},on:{click:e.saveFormEventHandler}},[e._v(" "+e._s(e.i18nt("designer.hint.confirm")))])],1)],1):e._e(),e.showEditFormCssDialogFlag?n("el-dialog",{directives:[{name:"dialog-drag",rawName:"v-dialog-drag"}],staticClass:"small-padding-dialog",attrs:{title:e.i18nt("designer.setting.formCss"),visible:e.showEditFormCssDialogFlag,"show-close":!0,"append-to-body":"","close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":!0},on:{"update:visible":function(t){e.showEditFormCssDialogFlag=t}}},[n("code-editor",{attrs:{mode:"css",readonly:!1},model:{value:e.formCssCode,callback:function(t){e.formCssCode=t},expression:"formCssCode"}}),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.showEditFormCssDialogFlag=!1}}},[e._v(" "+e._s(e.i18nt("designer.hint.cancel")))]),n("el-button",{attrs:{type:"primary"},on:{click:e.saveFormCss}},[e._v(" "+e._s(e.i18nt("designer.hint.confirm")))])],1)],1):e._e(),e.showEditFunctionsDialogFlag?n("el-dialog",{directives:[{name:"dialog-drag",rawName:"v-dialog-drag"}],staticClass:"small-padding-dialog",attrs:{title:e.i18nt("designer.setting.globalFunctions"),visible:e.showEditFunctionsDialogFlag,"show-close":!0,"append-to-body":"","close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":!0},on:{"update:visible":function(t){e.showEditFunctionsDialogFlag=t}}},[n("code-editor",{ref:"gfEditor",attrs:{mode:"javascript",readonly:!1},model:{value:e.functionsCode,callback:function(t){e.functionsCode=t},expression:"functionsCode"}}),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.showEditFunctionsDialogFlag=!1}}},[e._v(" "+e._s(e.i18nt("designer.hint.cancel")))]),n("el-button",{attrs:{type:"primary"},on:{click:e.saveGlobalFunctions}},[e._v(" "+e._s(e.i18nt("designer.hint.confirm")))])],1)],1):e._e()],1)},je=[],Ie=(n("466d"),n("1276"),n("498a"),n("a630"),n("3ca3"),n("6062"),{name:"form-setting",mixins:[E["b"]],components:{CodeEditor:ee["a"]},props:{designer:Object,formConfig:Object},inject:["getDesignerConfig"],data:function(){return{designerConfig:this.getDesignerConfig(),formActiveCollapseNames:["1","2"],formSizes:[{label:"default",value:""},{label:"large",value:"large"},{label:"medium",value:"medium"},{label:"small",value:"small"},{label:"mini",value:"mini"}],showEditFormCssDialogFlag:!1,formCssCode:"",cssClassList:[],showEditFunctionsDialogFlag:!1,functionsCode:"",showFormEventDialogFlag:!1,formEventHandlerCode:"",curEventName:"",eventParamsMap:{onFormCreated:"onFormCreated() {",onFormMounted:"onFormMounted() {",onFormDataChange:"onFormDataChange(fieldName, newValue, oldValue, formModel, subFormName, subFormRowIndex) {"}}},created:function(){var e=this;this.designer.handleEvent("form-json-imported",(function(){e.formCssCode=e.formConfig.cssCode,Object(O["k"])(e.formCssCode),e.extractCssClass(),e.designer.emitEvent("form-css-updated",Object(O["d"])(e.cssClassList))}))},mounted:function(){var e=this;setTimeout((function(){e.formCssCode=e.formConfig.cssCode,Object(O["k"])(e.formCssCode),e.extractCssClass(),e.designer.emitEvent("form-css-updated",Object(O["d"])(e.cssClassList))}),1200)},methods:{showEventCollapse:function(){return void 0===this.designerConfig["eventCollapse"]||!!this.designerConfig["eventCollapse"]},editFormCss:function(){this.formCssCode=this.designer.formConfig.cssCode,this.showEditFormCssDialogFlag=!0},extractCssClass:function(){var e=/\..*{/g,t=this.formCssCode.match(e),n=[];t&&t.length>0&&t.forEach((function(e){var t=e.split(",");t.length>0&&t.forEach((function(e){var t=e.trim();if(-1!==t.indexOf(".",1)){var i=t.substring(t.indexOf(".")+1,t.indexOf(".",1));i&&n.push(i.trim())}else if(-1!==t.indexOf(" ")){var o=t.substring(t.indexOf(".")+1,t.indexOf(" "));o&&n.push(o.trim())}else if(-1!==t.indexOf("{")){var r=t.substring(t.indexOf(".")+1,t.indexOf("{"));n.push(r.trim())}else{var s=t.substring(t.indexOf(".")+1);n.push(s.trim())}}))})),this.cssClassList.splice(0,this.cssClassList.length),this.cssClassList=Array.from(new Set(n))},saveFormCss:function(){this.extractCssClass(),this.designer.formConfig.cssCode=this.formCssCode,Object(O["k"])(this.formCssCode),this.showEditFormCssDialogFlag=!1,this.designer.emitEvent("form-css-updated",Object(O["d"])(this.cssClassList))},editGlobalFunctions:function(){this.functionsCode=this.designer.formConfig.functions,this.showEditFunctionsDialogFlag=!0},saveGlobalFunctions:function(){var e=this.$refs.gfEditor.getEditorAnnotations(),t=!1;e&&e.length>0&&(e.forEach((function(e){"error"===e.type&&(t=!0)})),t)?this.$message.error(this.i18nt("designer.setting.syntaxCheckWarning")):(this.designer.formConfig.functions=this.functionsCode,Object(O["l"])(this.functionsCode),this.showEditFunctionsDialogFlag=!1)},editFormEventHandler:function(e){this.curEventName=e,this.formEventHandlerCode=this.formConfig[e],this.showFormEventDialogFlag=!0},saveFormEventHandler:function(){var e=this.$refs.ecEditor.getEditorAnnotations(),t=!1;e&&e.length>0&&(e.forEach((function(e){"error"===e.type&&(t=!0)})),t)?this.$message.error(this.i18nt("designer.setting.syntaxCheckWarning")):(this.formConfig[this.curEventName]=this.formEventHandlerCode,this.showFormEventDialogFlag=!1)}}}),qe=Ie,Pe=(n("28ce"),Object(R["a"])(qe,Fe,je,!1,null,"5c7642f4",null)),Ne=Pe.exports,De={name:"name-editor",label:"label-editor",labelAlign:"labelAlign-editor",type:"type-editor",defaultValue:"defaultValue-editor",placeholder:"placeholder-editor",startPlaceholder:"startPlaceholder-editor",endPlaceholder:"endPlaceholder-editor",columnWidth:"columnWidth-editor",size:"size-editor",showStops:"showStops-editor",displayStyle:"displayStyle-editor",buttonStyle:"buttonStyle-editor",border:"border-editor",labelWidth:"labelWidth-editor",labelHidden:"labelHidden-editor",rows:"rows-editor",required:"required-editor",requiredHint:"requiredHint-editor",validation:"validation-editor",validationHint:"validationHint-editor",readonly:"readonly-editor",disabled:"disabled-editor",hidden:"hidden-editor",clearable:"clearable-editor",editable:"editable-editor",showPassword:"showPassword-editor",textContent:"textContent-editor",textAlign:"textAlign-editor",fontSize:"fontSize-editor",preWrap:"preWrap-editor",htmlContent:"htmlContent-editor",format:"format-editor",valueFormat:"valueFormat-editor",filterable:"filterable-editor",allowCreate:"allowCreate-editor",remote:"remote-editor",automaticDropdown:"automaticDropdown-editor",checkStrictly:"checkStrictly-editor",showAllLevels:"showAllLevels-editor",multiple:"multiple-editor",multipleLimit:"multipleLimit-editor",contentPosition:"contentPosition-editor",optionItems:"optionItems-editor",uploadURL:"uploadURL-editor",uploadTip:"uploadTip-editor",withCredentials:"withCredentials-editor",multipleSelect:"multipleSelect-editor",limit:"limit-editor",fileMaxSize:"fileMaxSize-editor",fileTypes:"fileTypes-editor",customClass:"customClass-editor",showBlankRow:"showBlankRow-editor",showRowNumber:"showRowNumber-editor",cellWidth:"cellWidth-editor",cellHeight:"cellHeight-editor",colHeight:"colHeight-editor",wordBreak:"wordBreak-editor",gutter:"gutter-editor",responsive:"responsive-editor",span:"span-editor",offset:"offset-editor",push:"push-editor",pull:"pull-editor"},We={min:"min-editor",max:"max-editor",precision:"precision-editor",step:"step-editor",controlsPosition:"controlsPosition-editor",minLength:"minLength-editor",maxLength:"maxLength-editor",showWordLimit:"showWordLimit-editor",prefixIcon:"prefixIcon-editor",suffixIcon:"suffixIcon-editor",switchWidth:"switchWidth-editor",activeText:"activeText-editor",inactiveText:"inactiveText-editor",activeColor:"activeColor-editor",inactiveColor:"inactiveColor-editor",lowThreshold:"lowThreshold-editor",highThreshold:"highThreshold-editor",allowHalf:"allowHalf-editor",showText:"showText-editor",showScore:"showScore-editor",range:"range-editor",vertical:"vertical-editor",plain:"plain-editor",round:"round-editor",circle:"circle-editor",icon:"icon-editor",labelIconClass:"labelIconClass-editor",labelIconPosition:"labelIconPosition-editor",labelTooltip:"labelTooltip-editor",appendButton:"appendButton-editor",appendButtonDisabled:"appendButtonDisabled-editor",buttonIcon:"buttonIcon-editor"},Be={onCreated:"onCreated-editor",onMounted:"onMounted-editor",onClick:"onClick-editor",onInput:"onInput-editor",onChange:"onChange-editor",onFocus:"onFocus-editor",onBlur:"onBlur-editor",onRemoteQuery:"onRemoteQuery-editor",onBeforeUpload:"onBeforeUpload-editor",onUploadSuccess:"onUploadSuccess-editor",onUploadError:"onUploadError-editor",onFileRemove:"onFileRemove-editor",onValidate:"onValidate-editor",onAppendButtonClick:"onAppendButtonClick-editor",onSubFormRowAdd:"onSubFormRowAdd-editor",onSubFormRowInsert:"onSubFormRowInsert-editor",onSubFormRowDelete:"onSubFormRowDelete-editor",onSubFormRowChange:"onSubFormRowChange-editor"};function He(e,t){De[e]=t}function ze(e,t){We[e]=t}function Ve(e,t){Be[e]=t}function Ue(e){return!!De[e]||!!We[e]||!!Be[e]}function Ke(e,t,n){U.a.component(t,n),He(e,t)}function Ge(e,t,n){U.a.component(t,n),ze(e,t)}function Ye(e,t,n){U.a.component(t,n),Ve(e,t)}var Je={COMMON_PROPERTIES:De,ADVANCED_PROPERTIES:We,EVENT_PROPERTIES:Be},Xe=Je.COMMON_PROPERTIES,Ze=Je.ADVANCED_PROPERTIES,Qe=Je.EVENT_PROPERTIES,et={name:"SettingPanel",componentName:"SettingPanel",mixins:[E["b"]],components:Object(p["a"])({CodeEditor:ee["a"],FormSetting:Ne},$e),props:{designer:Object,selectedWidget:Object,formConfig:Object,globalDsv:{type:Object,default:function(){return{}}}},provide:function(){var e=this;return{isSubFormChildWidget:function(){return e.subFormChildWidgetFlag}}},inject:["getDesignerConfig"],data:function(){return{designerConfig:this.getDesignerConfig(),scrollerHeight:0,activeTab:"2",widgetActiveCollapseNames:["1","3"],formActiveCollapseNames:["1","2"],commonProps:Xe,advProps:Ze,eventProps:Qe,showWidgetEventDialogFlag:!1,eventHandlerCode:"",curEventName:"",eventHeader:"",subFormChildWidgetFlag:!1}},computed:{optionModel:{get:function(){return this.selectedWidget.options},set:function(e){this.selectedWidget.options=e}}},watch:{"designer.selectedWidget":{handler:function(e){e&&(this.activeTab="1")}},"selectedWidget.options":{deep:!0,handler:function(){this.designer.saveCurrentHistoryStep()}},formConfig:{deep:!0,handler:function(){this.designer.saveCurrentHistoryStep()}}},created:function(){var e=this;this.$on("editEventHandler",(function(e,t){this.editEventHandler(e,t)})),this.designer.handleEvent("form-css-updated",(function(t){e.designer.setCssClassList(t)})),this.designer.handleEvent("field-selected",(function(t){e.subFormChildWidgetFlag=!!t&&"sub-form"===t.type}))},mounted:function(){var e=this;this.designer.selectedWidget?this.activeTab="1":this.activeTab="2",this.scrollerHeight=window.innerHeight-56-48+"px",Object(O["a"])((function(){e.$nextTick((function(){e.scrollerHeight=window.innerHeight-56-48+"px"}))}))},methods:{showEventCollapse:function(){return void 0===this.designerConfig["eventCollapse"]||!!this.designerConfig["eventCollapse"]},hasPropEditor:function(e,t){if(!t)return!1;if(e.indexOf("-")<=-1){var n=this.selectedWidget.type+"-"+e;if(Ue(n))return!1}var i=e.replace(this.selectedWidget.type+"-","");return this.designer.hasConfig(this.selectedWidget,i)},getPropEditor:function(e,t){var n=e.replace(this.selectedWidget.type+"-",""),i="".concat(this.selectedWidget.type,"-").concat(n,"-editor");return this.$options.components[i]||this.$root.$options.components[i]?i:t},showCollapse:function(e){var t=!1;for(var n in e)if(e.hasOwnProperty(n)&&this.hasPropEditor(n,e[n])){t=!0;break}return t},editEventHandler:function(e,t){this.curEventName=e,this.eventHeader="".concat(this.optionModel.name,".").concat(e,"(").concat(t.join(", "),") {"),this.eventHandlerCode=this.selectedWidget.options[e]||"","onValidate"!==e||this.optionModel["onValidate"]||(this.eventHandlerCode=" /* sample code */\n /*\n if ((value > 100) || (value < 0)) {\n callback(new Error('error message')) //fail\n } else {\n callback(); //pass\n }\n */"),this.showWidgetEventDialogFlag=!0},saveEventHandler:function(){var e=this.$refs.ecEditor.getEditorAnnotations(),t=!1;e&&e.length>0&&(e.forEach((function(e){"error"===e.type&&(t=!0)})),t)?this.$message.error(this.i18nt("designer.setting.syntaxCheckWarning")):(this.selectedWidget.options[this.curEventName]=this.eventHandlerCode,this.showWidgetEventDialogFlag=!1)}}},tt=et,nt=(n("2c2c"),Object(R["a"])(tt,Me,Ae,!1,null,"9296a6f2",null)),it=nt.exports,ot=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"form-widget-container"},[n("el-form",{staticClass:"full-height-width widget-form",class:[e.customClass,e.layoutType+"-layout"],attrs:{"label-position":e.labelPosition,size:e.size,"validate-on-rule-change":!1}},[0===e.designer.widgetList.length?n("div",{staticClass:"no-widget-hint"},[e._v(e._s(e.i18nt("designer.noWidgetHint")))]):e._e(),n("draggable",e._b({attrs:{list:e.designer.widgetList,handle:".drag-handler",move:e.checkMove},on:{end:e.onDragEnd,add:e.onDragAdd,update:e.onDragUpdate}},"draggable",{group:"dragGroup",ghostClass:"ghost",animation:300},!1),[n("transition-group",{staticClass:"form-widget-list",attrs:{name:"fade",tag:"div"}},[e._l(e.designer.widgetList,(function(t,i){return["container"===t.category?[n(e.getWidgetName(t),{key:t.id,tag:"component",attrs:{widget:t,designer:e.designer,"parent-list":e.designer.widgetList,"index-of-parent-list":i,"parent-widget":null}})]:[n(e.getWidgetName(t),{key:t.id,tag:"component",attrs:{field:t,designer:e.designer,"parent-list":e.designer.widgetList,"index-of-parent-list":i,"parent-widget":null,"design-state":!0}})]]}))],2)],1)],1)],1)},rt=[],st=n("8b30");st.keys().map((function(e){var t=st(e).default;U.a.component(t.name,t)}));var at={name:"VFormWidget",componentName:"VFormWidget",mixins:[E["b"]],components:Object(p["a"])({Draggable:m.a},Y["a"]),props:{designer:Object,formConfig:Object,optionData:{type:Object,default:function(){return{}}},globalDsv:{type:Object,default:function(){return{}}}},provide:function(){var e=this;return{refList:this.widgetRefList,formConfig:this.formConfig,getGlobalDsv:function(){return e.globalDsv},globalOptionData:this.optionData,getOptionData:function(){return e.optionData},globalModel:{formModel:this.formModel}}},inject:["getDesignerConfig"],data:function(){return{formModel:{},widgetRefList:{}}},computed:{labelPosition:function(){return this.designer.formConfig&&this.designer.formConfig.labelPosition?this.designer.formConfig.labelPosition:"left"},size:function(){return this.designer.formConfig&&this.designer.formConfig.size?this.designer.formConfig.size:"medium"},customClass:function(){return this.designer.formConfig.customClass||""},layoutType:function(){return this.designer.getLayoutType()}},watch:{"designer.widgetList":{deep:!0,handler:function(e){}},"designer.formConfig":{deep:!0,handler:function(e){}}},created:function(){this.designer.initDesigner(!!this.getDesignerConfig().resetFormJson),this.designer.loadPresetCssCode(this.getDesignerConfig().presetCssCode)},mounted:function(){this.disableFirefoxDefaultDrop(),this.designer.registerFormWidget(this)},methods:{getWidgetName:function(e){return e.type+"-widget"},disableFirefoxDefaultDrop:function(){var e=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");e&&(document.body.ondrop=function(e){e.stopPropagation(),e.preventDefault()})},onDragEnd:function(e){},onDragAdd:function(e){var t=e.newIndex;this.designer.widgetList[t]&&this.designer.setSelected(this.designer.widgetList[t]),this.designer.emitHistoryChange(),this.designer.emitEvent("field-selected",null)},onDragUpdate:function(){this.designer.emitHistoryChange()},checkMove:function(e){return this.designer.checkWidgetMove(e)},getFormData:function(){return this.formModel},getWidgetRef:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.widgetRefList[e];return!n&&t&&this.$message.error(this.i18nt("render.hint.refNotFound")+e),n},getSelectedWidgetRef:function(){var e=this.designer.selectedWidgetName;return this.getWidgetRef(e)},clearWidgetRefList:function(){var e=this;Object.keys(this.widgetRefList).forEach((function(t){delete e.widgetRefList[t]}))},deleteWidgetRef:function(e){delete this.widgetRefList[e]}}},lt=at,ct=(n("c833"),Object(R["a"])(lt,ot,rt,!1,null,"34254691",null)),ut=ct.exports;n("fb6a");function dt(e){var t=Object(O["d"])(Object(O["i"])());return{widgetList:[],formConfig:{cssCode:""},selectedId:null,selectedWidget:null,selectedWidgetName:null,vueInstance:e,formWidget:null,cssClassList:[],historyData:{index:-1,maxStep:20,steps:[]},initDesigner:function(e){this.widgetList=[],this.formConfig=Object(O["d"])(t),console.info("%cVariantForm %cVer".concat(re["d"]," %chttps://www.yuque.com/visualdev/vform"),"color:#409EFF;font-size: 22px;font-weight:bolder","color:#999;font-size: 12px","color:#333"),e||this.initHistoryData()},clearDesigner:function(e){var n=0===this.widgetList.length;this.widgetList=[],this.selectedId=null,this.selectedWidgetName=null,this.selectedWidget={},Object(O["q"])(this.formConfig,t),e||(n?this.saveCurrentHistoryStep():this.emitHistoryChange())},loadPresetCssCode:function(e){""===this.formConfig.cssCode&&e&&(this.formConfig.cssCode=e)},getLayoutType:function(){return this.formConfig.layoutType||"PC"},changeLayoutType:function(e){this.formConfig.layoutType=e},getImportTemplate:function(){return{widgetList:[],formConfig:Object(O["d"])(t)}},loadFormJson:function(e){var t=!1;return e&&e.widgetList&&(this.formWidget.clearWidgetRefList(),this.widgetList=e.widgetList,t=!0),e&&e.formConfig&&(Object(O["q"])(this.formConfig,e.formConfig),t=!0),t&&this.emitEvent("form-json-imported",[]),t},setSelected:function(e){e?(this.selectedWidget=e,e.id&&(this.selectedId=e.id,this.selectedWidgetName=e.options.name)):this.clearSelected()},updateSelectedWidgetNameAndLabel:function(e,t,n){this.selectedWidgetName=t,n&&Object.keys(e.options).indexOf("label")>-1&&(e.options.label=n)},clearSelected:function(){this.selectedId=null,this.selectedWidgetName=null,this.selectedWidget={}},checkWidgetMove:function(e){if(e.draggedContext&&e.draggedContext.element){var t=e.draggedContext.element.category;e.draggedContext.element.type;if(e.to&&"sub-form-table"===e.to.className&&"container"===t)return!1}return!0},checkFieldMove:function(e){if(e.draggedContext&&e.draggedContext.element){e.draggedContext.element.category;var t=e.draggedContext.element.type+"";if(e.to&&"sub-form-table"===e.to.className&&"slot"===t)return!1}return!0},appendTableRow:function(e){var t=e.rows.length,n=Object(O["d"])(e.rows[e.rows.length-1]);n.id="table-row-"+Object(O["f"])(),n.merged=!1,n.cols.forEach((function(e){e.id="table-cell-"+Object(O["f"])(),e.options.name=e.id,e.merged=!1,e.options.colspan=1,e.options.rowspan=1,e.widgetList.length=0})),e.rows.splice(t,0,n),this.emitHistoryChange()},appendTableCol:function(e){var t=this,n=e.rows[0].cols.length;e.rows.forEach((function(e){var i=Object(O["d"])(t.getContainerByType("table-cell"));i.id="table-cell-"+Object(O["f"])(),i.options.name=i.id,i.merged=!1,i.options.colspan=1,i.options.rowspan=1,i.widgetList.length=0,e.cols.splice(n,0,i)})),this.emitHistoryChange()},insertTableRow:function(e,t,n,i,o){var r=o?t:t+1;if(!o){var s=r,a=!1;while(s<e.rows.length){if(!e.rows[s].cols[i].merged){r=s,a=!0;break}s++}a||(r=e.rows.length)}var l=Object(O["d"])(e.rows[n]);l.id="table-row-"+Object(O["f"])(),l.merged=!1,l.cols.forEach((function(e){e.id="table-cell-"+Object(O["f"])(),e.options.name=e.id,e.merged=!1,e.options.colspan=1,e.options.rowspan=1,e.widgetList.length=0})),e.rows.splice(r,0,l);var c=0;while(r<e.rows.length-1&&c<e.rows[0].cols.length){var u=e.rows[r+1].cols[c],d=u.merged;if(d){for(var h=e.rows,f={},p=null,g=r;g>=0;g--)if(!h[g].cols[c].merged&&h[g].cols[c].options.rowspan>1){p=g,f=h[g].cols[c];break}if(f.options){var m=f.options.rowspan+1;this.setPropsOfMergedRows(e.rows,p,c,f.options.colspan,m),c+=f.options.colspan}else c+=1}else c+=u.options.colspan||1}this.emitHistoryChange()},insertTableCol:function(e,t,n,i){var o=this,r=i?t:t+1;if(!i){var s=r,a=!1;while(s<e.rows[n].cols.length){if(!e.rows[n].cols[s].merged){r=s,a=!0;break}s++,a||(r=e.rows[n].cols.length)}}e.rows.forEach((function(e){var t=Object(O["d"])(o.getContainerByType("table-cell"));t.id="table-cell-"+Object(O["f"])(),t.options.name=t.id,t.merged=!1,t.options.colspan=1,t.options.rowspan=1,t.widgetList.length=0,e.cols.splice(r,0,t)}));var l=0;while(r<e.rows[0].cols.length-1&&l<e.rows.length){var c=e.rows[l].cols[r+1],u=c.merged;if(u){for(var d=e.rows[l].cols,h={},f=null,p=r;p>=0;p--)if(!d[p].merged&&d[p].options.colspan>1){f=p,h=d[p];break}if(h.options){var g=h.options.colspan+1;this.setPropsOfMergedCols(e.rows,l,f,g,h.options.rowspan),l+=h.options.rowspan}else l+=1}else l+=c.options.rowspan||1}this.emitHistoryChange()},setPropsOfMergedCols:function(e,t,n,i,o){for(var r=t;r<t+o;r++)for(var s=n;s<n+i;s++)r!==t||s!==n?(e[r].cols[s].merged=!0,e[r].cols[s].options.colspan=i,e[r].cols[s].widgetList=[]):e[r].cols[s].options.colspan=i},setPropsOfMergedRows:function(e,t,n,i,o){for(var r=t;r<t+o;r++)for(var s=n;s<n+i;s++)r!==t||s!==n?(e[r].cols[s].merged=!0,e[r].cols[s].options.rowspan=o,e[r].cols[s].widgetList=[]):e[r].cols[s].options.rowspan=o},setPropsOfSplitCol:function(e,t,n,i,o){for(var r=t;r<t+o;r++)for(var s=n;s<n+i;s++)e[r].cols[s].merged=!1,e[r].cols[s].options.rowspan=1,e[r].cols[s].options.colspan=1},setPropsOfSplitRow:function(e,t,n,i,o){for(var r=t;r<t+o;r++)for(var s=n;s<n+i;s++)e[r].cols[s].merged=!1,e[r].cols[s].options.rowspan=1,e[r].cols[s].options.colspan=1},mergeTableCol:function(e,t,n,i,o,r){var s=o?i:i+t[i].options.colspan,a=o?i-1:i;if(o){var l=a;while(l>=0){if(!e[n].cols[l].merged){a=l;break}l--}}t[s].widgetList&&t[s].widgetList.length>0&&(t[a].widgetList&&0!==t[a].widgetList.length||(t[a].widgetList=Object(O["d"])(t[s].widgetList)));var c=1*t[s].options.colspan+1*t[a].options.colspan;this.setPropsOfMergedCols(e,n,a,c,r.options.rowspan),this.emitHistoryChange()},mergeTableWholeRow:function(e,t,n,i){for(var o=e[n].cols[0].options.rowspan,r=!1,s=1;s<e[n].cols.length;s++)if(e[n].cols[s].options.rowspan!==o){r=!0;break}if(r)this.vueInstance.$message.info(this.vueInstance.i18nt("designer.hint.rowspanNotConsistentForMergeEntireRow"));else{var a=t.filter((function(e){return!e.merged&&!!e.widgetList&&e.widgetList.length>0}));a&&a.length>0&&a[0].id!==t[0].id&&(!t[0].widgetList||t[0].widgetList.length<=0)&&(t[0].widgetList=Object(O["d"])(a[0].widgetList)),this.setPropsOfMergedCols(e,n,0,t.length,t[i].options.rowspan),this.emitHistoryChange()}},mergeTableRow:function(e,t,n,i,o){var r=i?t:t+o.options.rowspan,s=i?t-1:t;if(i){var a=s;while(a>=0){if(!e[a].cols[n].merged){s=a;break}a--}}e[r].cols[n].widgetList&&e[r].cols[n].widgetList.length>0&&(e[s].cols[n].widgetList&&0!==e[s].cols[n].widgetList.length||(e[s].cols[n].widgetList=Object(O["d"])(e[r].cols[n].widgetList)));var l=1*e[r].cols[n].options.rowspan+1*e[s].cols[n].options.rowspan;this.setPropsOfMergedRows(e,s,n,o.options.colspan,l),this.emitHistoryChange()},mergeTableWholeCol:function(e,t,n,i){for(var o=e[0].cols[i].options.colspan,r=!1,s=1;s<e.length;s++)if(e[s].cols[i].options.colspan!==o){r=!0;break}if(r)this.vueInstance.$message.info(this.vueInstance.i18nt("designer.hint.colspanNotConsistentForMergeEntireColumn"));else{var a=[];e.forEach((function(e){var t=e.cols[i];!t.merged&&t.widgetList&&t.widgetList.length>0&&a.push(t)}));var l=e[0].cols[i];a&&a.length>0&&a[0].id!==l.id&&(!l.widgetList||l.widgetList.length<=0)&&(l.widgetList=Object(O["d"])(a[0].widgetList)),this.setPropsOfMergedRows(e,0,i,l.options.colspan,e.length),this.emitHistoryChange()}},undoMergeTableCol:function(e,t,n,i,o){this.setPropsOfSplitCol(e,t,n,i,o),this.emitHistoryChange()},undoMergeTableRow:function(e,t,n,i,o){this.setPropsOfSplitRow(e,t,n,i,o),this.emitHistoryChange()},deleteTableWholeCol:function(e,t){var n=!0;if(e.forEach((function(t){t.cols[0].options.colspan!==e[0].cols.length&&(n=!1)})),n)this.vueInstance.$message.info(this.vueInstance.i18nt("designer.hint.lastColCannotBeDeleted"));else{for(var i=e[0].cols[t].options.colspan,o=!1,r=1;r<e.length;r++)if(e[r].cols[t].options.colspan!==i){o=!0;break}o?this.vueInstance.$message.info(this.vueInstance.i18nt("designer.hint.colspanNotConsistentForDeleteEntireColumn")):(e.forEach((function(e){e.cols.splice(t,i)})),this.emitHistoryChange())}},deleteTableWholeRow:function(e,t){var n=!0;if(e[0].cols.forEach((function(t){t.options.rowspan!==e.length&&(n=!1)})),n)this.vueInstance.$message.info(this.vueInstance.i18nt("designer.hint.lastRowCannotBeDeleted"));else{for(var i=e[t].cols[0].options.rowspan,o=!1,r=1;r<e[t].cols.length;r++)if(e[t].cols[r].options.rowspan!==i){o=!0;break}o?this.vueInstance.$message.info(this.vueInstance.i18nt("designer.hint.rowspanNotConsistentForDeleteEntireRow")):(e.splice(t,i),this.emitHistoryChange())}},getContainerByType:function(e){var t=[].concat(Object(H["a"])(b),Object(H["a"])(v),Object(H["a"])(y),Object(H["a"])(w)),n=null;return t.forEach((function(t){t.category&&t.type&&t.type===e&&(n=t)})),n},getFieldWidgetByType:function(e){var t=[].concat(Object(H["a"])(b),Object(H["a"])(v),Object(H["a"])(y),Object(H["a"])(w)),n=null;return t.forEach((function(t){!t.category&&t.type&&t.type===e&&(n=t)})),n},hasConfig:function(e,t){var n=null;return n=e.category?this.getContainerByType(e.type):this.getFieldWidgetByType(e.type),!(!n||!n.options)&&Object.keys(n.options).indexOf(t)>-1},upgradeWidgetConfig:function(e){var t=null;t=e.category?this.getContainerByType(e.type):this.getFieldWidgetByType(e.type),t&&t.options&&Object.keys(t.options).forEach((function(n){e.hasOwnProperty(n)||(e.options[n]=Object(O["d"])(t.options[n]))}))},upgradeFormConfig:function(e){var t=this;Object.keys(this.formConfig).forEach((function(n){e.hasOwnProperty(n)||(e[n]=Object(O["d"])(t.formConfig[n]))}))},cloneGridCol:function(e,t){var n=Object(O["d"])(this.getContainerByType("grid-col"));n.options.span=e.options.span;var i=Object(O["f"])();n.id="grid-col-"+i,n.options.name="gridCol"+i,t.cols.push(n)},cloneContainer:function(e){var t=this;if("grid"===e.type){var n=Object(O["d"])(this.getContainerByType("grid"));return n.id=n.type+Object(O["f"])(),n.options.name=n.id,e.cols.forEach((function(e){var i=Object(O["d"])(t.getContainerByType("grid-col")),o=Object(O["f"])();i.id="grid-col-"+o,i.options.name="gridCol"+o,i.options.span=e.options.span,n.cols.push(i)})),n}if("table"===e.type){var i=Object(O["d"])(this.getContainerByType("table"));return i.id=i.type+Object(O["f"])(),i.options.name=i.id,e.rows.forEach((function(e){var t=Object(O["d"])(e);t.id="table-row-"+Object(O["f"])(),t.cols.forEach((function(e){e.id="table-cell-"+Object(O["f"])(),e.options.name=e.id,e.widgetList=[]})),i.rows.push(t)})),i}return null},moveUpWidget:function(e,t){if(e){if(0===t)return void this.vueInstance.$message(this.vueInstance.i18nt("designer.hint.moveUpFirstChildHint"));var n=e[t];e.splice(t,1),e.splice(t-1,0,n)}},moveDownWidget:function(e,t){if(e){if(t===e.length-1)return void this.vueInstance.$message(this.vueInstance.i18nt("designer.hint.moveDownLastChildHint"));var n=e[t];e.splice(t,1),e.splice(t+1,0,n)}},copyNewFieldWidget:function(e){var t=Object(O["d"])(e),n=Object(O["f"])();return t.id=t.type.replace(/-/g,"")+n,t.options.name=t.id,t.options.label=t.options.label||t.type.toLowerCase(),delete t.displayName,t},copyNewContainerWidget:function(e){var t=Object(O["d"])(e);if(t.id=t.type.replace(/-/g,"")+Object(O["f"])(),t.options.name=t.id,"grid"===t.type){var n=Object(O["d"])(this.getContainerByType("grid-col")),i=Object(O["f"])();n.id="grid-col-"+i,n.options.name="gridCol"+i,t.cols.push(n),n=Object(O["d"])(n),i=Object(O["f"])(),n.id="grid-col-"+i,n.options.name="gridCol"+i,t.cols.push(n)}else if("table"===t.type){var o={cols:[]};o.id="table-row-"+Object(O["f"])(),o.merged=!1;var r=Object(O["d"])(this.getContainerByType("table-cell"));r.id="table-cell-"+Object(O["f"])(),r.options.name=r.id,r.merged=!1,r.options.colspan=1,r.options.rowspan=1,o.cols.push(r),t.rows.push(o)}else if("tab"===t.type){var s=Object(O["d"])(this.getContainerByType("tab-pane"));s.id="tab-pane-"+Object(O["f"])(),s.options.name="tab1",s.options.label="tab 1",t.tabs.push(s)}return delete t.displayName,t},addContainerByDbClick:function(e){var t=this.copyNewContainerWidget(e);this.widgetList.push(t),this.setSelected(t)},addFieldByDbClick:function(e){var t=this.copyNewFieldWidget(e);if(this.selectedWidget&&"tab"===this.selectedWidget.type){var n=this.selectedWidget.tabs[0];this.selectedWidget.tabs.forEach((function(e){e.options.active&&(n=e)})),n&&n.widgetList.push(t)}else this.selectedWidget&&this.selectedWidget.widgetList?this.selectedWidget.widgetList.push(t):this.widgetList.push(t);this.setSelected(t),this.emitHistoryChange()},deleteColOfGrid:function(e,t){e&&e.cols&&e.cols.splice(t,1)},addNewColOfGrid:function(e){var t=e.cols,n=Object(O["d"])(this.getContainerByType("grid-col")),i=Object(O["f"])();if(n.id="grid-col-"+i,n.options.name="gridCol"+i,t&&t.length>0){var o=0;t.forEach((function(e){o+=e.options.span})),o>=24?(console.log("列栅格之和超出24"),e.cols.push(n)):(n.options.span=24-o>12?12:24-o,e.cols.push(n))}else e.cols=[n]},addTabPaneOfTabs:function(e){var t=e.tabs,n=Object(O["d"])(this.getContainerByType("tab-pane"));n.id="tab-pane-"+Object(O["f"])(),n.options.name=n.id,n.options.label="tab "+(t.length+1),t.push(n)},deleteTabPaneOfTabs:function(e,t){e.tabs.splice(t,1)},emitEvent:function(e,t){this.vueInstance.$emit(e,t)},handleEvent:function(e,t){this.vueInstance.$on(e,(function(e){return t(e)}))},setCssClassList:function(e){this.cssClassList=e},getCssClassList:function(){return this.cssClassList},registerFormWidget:function(e){this.formWidget=e},initHistoryData:function(){this.loadFormContentFromStorage(),this.historyData.index++,this.historyData.steps[this.historyData.index]={widgetList:Object(O["d"])(this.widgetList),formConfig:Object(O["d"])(this.formConfig)}},emitHistoryChange:function(){this.historyData.index===this.historyData.maxStep-1?this.historyData.steps.shift():this.historyData.index++,this.historyData.steps[this.historyData.index]={widgetList:Object(O["d"])(this.widgetList),formConfig:Object(O["d"])(this.formConfig)},this.saveFormContentToStorage(),this.historyData.index<this.historyData.steps.length-1&&(this.historyData.steps=this.historyData.steps.slice(0,this.historyData.index+1))},saveCurrentHistoryStep:function(){this.historyData.steps[this.historyData.index]=Object(O["d"])({widgetList:this.widgetList,formConfig:this.formConfig}),this.saveFormContentToStorage()},undoHistoryStep:function(){0!==this.historyData.index&&this.historyData.index--,this.widgetList=Object(O["d"])(this.historyData.steps[this.historyData.index].widgetList),this.formConfig=Object(O["d"])(this.historyData.steps[this.historyData.index].formConfig)},redoHistoryStep:function(){this.historyData.index!==this.historyData.steps.length-1&&this.historyData.index++,this.widgetList=Object(O["d"])(this.historyData.steps[this.historyData.index].widgetList),this.formConfig=Object(O["d"])(this.historyData.steps[this.historyData.index].formConfig)},undoEnabled:function(){return this.historyData.index>0&&this.historyData.steps.length>0},redoEnabled:function(){return this.historyData.index<this.historyData.steps.length-1},saveFormContentToStorage:function(){window.localStorage.setItem("widget__list__backup",JSON.stringify(this.widgetList)),window.localStorage.setItem("form__config__backup",JSON.stringify(this.formConfig))},loadFormContentFromStorage:function(){var e=window.localStorage.getItem("widget__list__backup");e&&(this.widgetList=JSON.parse(e));var t=window.localStorage.getItem("form__config__backup");t&&Object(O["q"])(this.formConfig,JSON.parse(t))}}}var ht={name:"VFormDesigner",componentName:"VFormDesigner",mixins:[E["b"]],components:{WidgetPanel:P,ToolbarPanel:Le,SettingPanel:it,VFormWidget:ut,SvgIcon:F},props:{fieldListApi:{type:Object,default:null},bannedWidgets:{type:Array,default:function(){return[]}},designerConfig:{type:Object,default:function(){return{languageMenu:!0,externalLink:!0,formTemplates:!0,eventCollapse:!0,widgetNameReadonly:!1,clearDesignerButton:!0,previewFormButton:!0,importJsonButton:!0,exportJsonButton:!0,exportCodeButton:!0,generateSFCButton:!0,toolbarMaxWidth:420,toolbarMinWidth:300,presetCssCode:"",resetFormJson:!1}}},globalDsv:{type:Object,default:function(){return{}}}},data:function(){return{vFormVersion:re["d"],curLangName:"",vsCodeFlag:!1,caseName:"",docUrl:"https://www.vform666.com/document.html",gitUrl:"https://github.com/vform666/variant-form",chatUrl:"https://www.vform666.com/pages/chat-group/",subScribeUrl:"https://www.vform666.com/pages/pro/",scrollerHeight:0,designer:dt(this),fieldList:[]}},provide:function(){var e=this;return{serverFieldList:this.fieldList,getDesignerConfig:function(){return e.designerConfig},getBannedWidgets:function(){return e.bannedWidgets}}},created:function(){this.vsCodeFlag=1==Object(O["j"])("vscode"),this.caseName=Object(O["j"])("case")},mounted:function(){var e=this;this.initLocale(),this.scrollerHeight=window.innerHeight-56-36+"px",Object(O["a"])((function(){e.$nextTick((function(){e.scrollerHeight=window.innerHeight-56-36+"px"}))})),this.loadCase(),this.loadFieldListFromServer()},methods:{showLink:function(e){return void 0===this.designerConfig[e]||!!this.designerConfig[e]},openHome:function(){if(this.vsCodeFlag){var e={cmd:"openUrl",data:{url:"https://www.vform666.com/"}};window.parent.postMessage(e,"*")}},openUrl:function(e,t){if(this.vsCodeFlag){var n={cmd:"openUrl",data:{url:t}};window.parent.postMessage(n,"*")}else{var i=e.currentTarget;i.href=t}},loadCase:function(){var e=this;this.caseName&&c.a.get(re["c"]+this.caseName+".txt").then((function(t){t.data.code?e.$message.error(e.i18nt("designer.hint.sampleLoadedFail")):(e.setFormJson(t.data),e.$message.success(e.i18nt("designer.hint.sampleLoadedSuccess")))})).catch((function(t){e.$message.error(e.i18nt("designer.hint.sampleLoadedFail")+":"+t)}))},initLocale:function(){var e=localStorage.getItem("v_form_locale");e=this.vsCodeFlag?e||"en-US":e||"zh-CN",this.curLangName=this.i18nt("application."+e),this.changeLanguage(e)},loadFieldListFromServer:function(){var e=this;if(this.fieldListApi){var t=this.fieldListApi.headers||{};c.a.get(this.fieldListApi.URL,{headers:t}).then((function(t){var n=e.fieldListApi.labelKey||"label",i=e.fieldListApi.nameKey||"name";e.fieldList.splice(0,e.fieldList.length),t.data.forEach((function(t){e.fieldList.push({label:t[n],name:t[i]})}))})).catch((function(t){e.$message.error(t)}))}},handleLanguageChanged:function(e){this.changeLanguage(e),this.curLangName=this.i18nt("application."+e)},changeLanguage:function(e){Object(E["a"])(e)},setFormJson:function(e){var t=!1;e&&("string"===typeof e?t=this.designer.loadFormJson(JSON.parse(e)):e.constructor===Object&&(t=this.designer.loadFormJson(e)),t&&this.designer.emitHistoryChange())},getFormJson:function(){return{widgetList:Object(O["d"])(this.designer.widgetList),formConfig:Object(O["d"])(this.designer.formConfig)}},clearDesigner:function(){this.$refs.toolbarRef.clearFormWidget()},refreshDesigner:function(){var e=this.getFormJson();this.designer.clearDesigner(!0),this.designer.loadFormJson(e)},previewForm:function(){this.$refs.toolbarRef.previewForm()},importJson:function(){this.$refs.toolbarRef.importJson()},exportJson:function(){this.$refs.toolbarRef.exportJson()},exportCode:function(){this.$refs.toolbarRef.exportCode()},generateSFC:function(){this.$refs.toolbarRef.generateSFC()},getFieldWidgets:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e?Object(O["h"])(e):Object(O["h"])(this.designer.widgetList)},getContainerWidgets:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e?Object(O["g"])(e):Object(O["g"])(this.designer.widgetList)},upgradeFormJson:function(e){var t=this;if(e.widgetList&&e.formConfig)return Object(O["r"])(e.widgetList,(function(e){t.designer.upgradeWidgetConfig(e)})),this.designer.upgradeFormConfig(e.formConfig),e;this.$message.error("Invalid form json!")},getWidgetRef:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.$refs["formRef"].getWidgetRef(e,t)},getSelectedWidgetRef:function(){return this.$refs["formRef"].getSelectedWidgetRef()}}},ft=ht,pt=(n("e85f"),Object(R["a"])(ft,u,d,!1,null,"355d356e",null)),gt=pt.exports,mt=n("9eeb"),bt=(n("a9e3"),function(e,t){return{props:{optionModel:Object},render:function(n){var i=this;return n("el-form-item",{attrs:{label:Object(E["c"])(t)}},[n("el-input",{attrs:{type:"text"},model:{value:i.optionModel[e],callback:function(t){i.$set(i.optionModel,e,t)}}})])}}}),vt=function(e,t){return{props:{optionModel:Object},methods:{updateValue:function(t){void 0===t||null===t||isNaN(t)?this.optionModel[e]=null:this.optionModel[e]=Number(t)}},render:function(n){var i=this;return n("el-form-item",{attrs:{label:Object(E["c"])(t)}},[n("el-input-number",{attrs:{type:"text"},on:{change:this.updateValue},style:"width: 100%",model:{value:i.optionModel[e],callback:function(t){i.$set(i.optionModel,e,t)}}})])}}},yt=function(e,t){return{props:{optionModel:Object},render:function(n){var i=this;return n("el-form-item",{attrs:{label:Object(E["c"])(t)}},[n("el-switch",{model:{value:i.optionModel[e],callback:function(t){i.$set(i.optionModel,e,t)}}})])}}},wt=function(e,t,n){return{props:{optionModel:Object},render:function(i){var o=this;return i("el-form-item",{attrs:{label:Object(E["c"])(t)}},[i("el-checkbox-group",{model:{value:o.optionModel[e],callback:function(t){o.$set(o.optionModel,e,t)}}},[n.optionItems.map((function(e){return i("el-checkbox",{attrs:{label:e.value}},[e.label])}))])])}}},xt=function(e,t,n){return{props:{optionModel:Object},render:function(i){var o=this;return i("el-form-item",{attrs:{label:Object(E["c"])(t)}},[i("el-radio-group",{model:{value:o.optionModel[e],callback:function(t){o.$set(o.optionModel,e,t)}}},[n.optionItems.map((function(e){return i("el-radio",{attrs:{label:e.value}},[e.label])}))])])}}},Ct=function(e,t,n){return{props:{optionModel:Object},render:function(i){var o=this;return i("el-form-item",{attrs:{label:Object(E["c"])(t)}},[i("el-radio-group",{model:{value:o.optionModel[e],callback:function(t){o.$set(o.optionModel,e,t)}}},[n.optionItems.map((function(e){return i("el-radio-button",{attrs:{label:e.value}},[e.label])}))])])}}},_t=function(e,t,n){return{props:{optionModel:Object},render:function(i){var o=this;return i("el-form-item",{attrs:{label:Object(E["c"])(t)}},[i("el-select",{model:{value:o.optionModel[e],callback:function(t){o.$set(o.optionModel,e,t)}}},[n.optionItems.map((function(e){return i("el-option",{attrs:{label:e.label,value:e.value}})}))])])}}},kt=function(e,t){return{props:{optionModel:Object},mixins:[z["a"]],methods:{editEventHandler:function(){this.dispatch("SettingPanel","editEventHandler",[e,Object(H["a"])(t)])}},render:function(t){return t("el-form-item",{attrs:{label:e,"label-width":"150px"}},[t("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:!0,round:!0},on:{click:this.editEventHandler}},[Object(E["c"])("designer.setting.addEventHandler")])])}}},St=function(){return{render:function(){var e=arguments[0];return e("div",{style:"display: none"})}}},Ot=(n("6c57"),!1),Et=[];function Lt(e,t){try{e(t)}catch(n){console.error("[variant-form] extension installer failed:",n)}}function Mt(e){if("function"!==typeof e)throw new TypeError("registerExtension(installer) expects a function");Et.push(e),Ot&&globalThis.__VFORM_EXTENSION_CTX__&&Lt(e,globalThis.__VFORM_EXTENSION_CTX__)}function At(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];Ot=!0,globalThis.__VFORM_EXTENSION_CTX__=e,Et.forEach((function(t){return Lt(t,e)})),t.forEach((function(t){return Lt(t,e)}))}var Tt={type:"card",category:"container",icon:"card",widgetList:[],options:{name:"",label:"card",hidden:!1,folded:!1,showFold:!0,cardWidth:"100%",shadow:"never",customClass:""}},Rt={type:"alert",icon:"alert",formItemFlag:!1,options:{name:"",title:"Good things are coming...",type:"info",description:"",closable:!0,closeText:"",center:!0,showIcon:!1,effect:"light",hidden:!1,onClose:"",customClass:""}},$t=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("container-wrapper",{attrs:{designer:e.designer,widget:e.widget,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList}},[n("el-card",{key:e.widget.id,staticClass:"card-container",class:[e.selected?"selected":"",e.widget.options.folded?"folded":"",e.customClass],style:{width:e.widget.options.cardWidth+"!important"||!1},attrs:{shadow:e.widget.options.shadow},nativeOn:{click:function(t){return t.stopPropagation(),e.selectWidget(e.widget)}}},[n("div",{staticClass:"clear-fix",attrs:{slot:"header"},slot:"header"},[n("span",[e._v(e._s(e.widget.options.label))]),e.widget.options.showFold?n("i",{staticClass:"float-right",class:[e.widget.options.folded?"el-icon-arrow-up":"el-icon-arrow-down"],on:{click:e.toggleCard}}):e._e()]),n("draggable",e._b({attrs:{list:e.widget.widgetList,handle:".drag-handler",move:e.checkContainerMove},on:{add:function(t){return e.onContainerDragAdd(t,e.widget.widgetList)},update:e.onContainerDragUpdate}},"draggable",{group:"dragGroup",ghostClass:"ghost",animation:200},!1),[n("transition-group",{staticClass:"form-widget-list",attrs:{name:"fade",tag:"div"}},[e._l(e.widget.widgetList,(function(t,i){return["container"===t.category?[n(t.type+"-widget",{key:t.id,tag:"component",attrs:{widget:t,designer:e.designer,"parent-list":e.widget.widgetList,"index-of-parent-list":i,"parent-widget":e.widget}})]:[n(t.type+"-widget",{key:t.id,tag:"component",attrs:{field:t,designer:e.designer,"parent-list":e.widget.widgetList,"index-of-parent-list":i,"parent-widget":e.widget,"design-state":!0}})]]}))],2)],1)],1)],1)},Ft=[],jt=n("61ca"),It=n("cd36"),qt=n("26a6"),Pt={name:"card-widget",componentName:"ContainerWidget",mixins:[E["b"],jt["a"],qt["a"]],inject:["refList"],components:Object(p["a"])({Draggable:m.a,ContainerWrapper:It["default"]},Y["a"]),props:{widget:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object},computed:{selected:function(){return this.widget.id===this.designer.selectedId},customClass:function(){return this.widget.options.customClass||""}},created:function(){this.initRefList()},methods:{checkContainerMove:function(e){return!0},toggleCard:function(){this.widget.options.folded=!this.widget.options.folded},setFolded:function(e){this.widget.options.folded=!!e}}},Nt=Pt,Dt=(n("09c3"),Object(R["a"])(Nt,$t,Ft,!1,null,"228afde5",null)),Wt=Dt.exports,Bt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("container-item-wrapper",{attrs:{widget:e.widget}},[n("el-card",{directives:[{name:"show",rawName:"v-show",value:!e.widget.options.hidden,expression:"!widget.options.hidden"}],key:e.widget.id,ref:e.widget.id,staticClass:"card-container",class:[e.widget.options.folded?"folded":"",e.customClass],style:{width:e.widget.options.cardWidth+"!important"||!1},attrs:{shadow:e.widget.options.shadow}},[n("div",{staticClass:"clear-fix",attrs:{slot:"header"},slot:"header"},[n("span",[e._v(e._s(e.widget.options.label))]),e.widget.options.showFold?n("i",{staticClass:"float-right",class:[e.widget.options.folded?"el-icon-arrow-up":"el-icon-arrow-down"],on:{click:e.toggleCard}}):e._e()]),e.widget.widgetList&&e.widget.widgetList.length>0?[e._l(e.widget.widgetList,(function(t,i){return["container"===t.category?[n(e.getComponentByContainer(t),{key:i,tag:"component",attrs:{widget:t,"parent-list":e.widget.widgetList,"index-of-parent-list":i,"parent-widget":e.widget},scopedSlots:e._u([e._l(Object.keys(e.$scopedSlots),(function(t){return{key:t,fn:function(n){return[e._t(t,null,null,n)]}}}))],null,!0)})]:[n(t.type+"-widget",{key:i,tag:"component",attrs:{field:t,designer:null,"parent-list":e.widget.widgetList,"index-of-parent-list":i,"parent-widget":e.widget},scopedSlots:e._u([e._l(Object.keys(e.$scopedSlots),(function(t){return{key:t,fn:function(n){return[e._t(t,null,null,n)]}}}))],null,!0)})]]}))]:e._e()],2)],1)},Ht=[],zt=n("d67f"),Vt=n("90c2"),Ut=n("34f0"),Kt={name:"card-item",componentName:"ContainerItem",mixins:[z["a"],E["b"],zt["a"],Ut["a"]],components:Object(p["a"])({ContainerItemWrapper:Vt["default"]},Y["a"]),props:{widget:Object},inject:["refList","sfRefList","globalModel"],computed:{customClass:function(){return this.widget.options.customClass||""}},created:function(){this.initRefList()},beforeDestroy:function(){this.unregisterFromRefList()},methods:{toggleCard:function(){this.widget.options.folded=!this.widget.options.folded}}},Gt=Kt,Yt=(n("2e46"),Object(R["a"])(Gt,Bt,Ht,!1,null,"2a1af67f",null)),Jt=Yt.exports,Xt=(n("a4d3"),n("e01a"),function(e,t){var n=e.options,i=ce(e),o=n.cardWidth?'style="{width: '.concat(n.cardWidth,' !important}"'):"",r='shadow="'.concat(n.shadow,'"'),s=n.hidden?'v-show="false"':"",a='<div class="card-container">\n <el-card '.concat(i," ").concat(o," ").concat(r," ").concat(s,'>\n <div slot="header" class="clear-fix">\n <span>').concat(n.label,"</span>\n ").concat(n.showFold?'<i class="float-right el-icon-arrow-down"></i>':"","\n </div>\n ").concat(e.widgetList.map((function(e){return"container"===e.category?de(e,t):be(e,t)})).join(""),"\n </el-card>\n</div>");return a}),Zt=function(e,t){var n=e.options,i='title="'.concat(n.title,'"'),o="type=".concat(n.type),r=n.description?'description="'.concat(n.description,'"'):"",s=':closable="'.concat(n.closable,'"'),a=n.closeText?'close-text="'.concat(n.closeText,'"'):"",l=':center="'.concat(n.center,'"'),c=':show-icon="'.concat(n.showIcon,'"'),u='effect="'.concat(n.effect,'"'),d="<el-alert ".concat(i," ").concat(o," ").concat(r," ").concat(s," ").concat(a," ").concat(l," \n ").concat(c," ").concat(u,">\n</el-alert>");return d},Qt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("static-content-wrapper",{attrs:{designer:e.designer,field:e.field,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[n("el-alert",{ref:"fieldEditor",attrs:{title:e.field.options.title,type:e.field.options.type,description:e.field.options.description,closable:e.field.options.closable,center:e.field.options.center,"close-text":e.field.options.closeText,"show-icon":e.field.options.showIcon,effect:e.field.options.effect},on:{close:e.handleCloseCustomEvent}})],1)},en=[],tn=n("828b"),nn=n("2d11"),on={name:"alert-widget",componentName:"FieldWidget",mixins:[z["a"],nn["a"],E["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{StaticContentWrapper:tn["default"]},created:function(){this.registerToRefList(),this.initEventHandler()},beforeDestroy:function(){this.unregisterFromRefList()},methods:{handleCloseCustomEvent:function(){if(this.field.options.onClose){var e=new Function(this.field.options.onClose);e.call(this)}}}},rn=on,sn=Object(R["a"])(rn,Qt,en,!1,null,"b1f52dec",null),an=sn.exports,ln={type:"tag",icon:"tag-field",formItemFlag:!0,options:{name:"",label:"Tag",labelAlign:"",content:"Tag",type:"",size:"",closable:!1,disableTransitions:!1,hit:!1,effect:"plain",columnWidth:"200px",labelWidth:null,labelHidden:!1,disabled:!1,hidden:!1,customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onClick:"",onClose:""}},cn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form-item-wrapper",{attrs:{designer:e.designer,field:e.field,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList}},[n("el-tag",{key:e.field.id,attrs:{type:e.field.options.type,size:e.field.options.size,closable:e.field.options.closable,"disable-transitions":e.field.options.disableTransitions,hit:e.field.options.hit,effect:e.field.options.effect},on:{click:function(t){return e.selectWidget(e.field)}}},[e._v(" "+e._s(e.field.options.content||"Tag")+" ")])],1)},un=[],dn={name:"tag-widget",componentName:"FieldWidget",mixins:[E["b"],nn["a"],qt["a"]],components:{FormItemWrapper:mt["default"]},props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object},computed:{selected:function(){return this.field.id===this.designer.selectedId}},created:function(){this.initRefList()}},hn=dn,fn=(n("54ca"),Object(R["a"])(hn,cn,un,!1,null,"73eadd57",null)),pn=fn.exports,gn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"tag-item"},[n("el-tag",{attrs:{type:e.field.options.type,size:e.field.options.size,closable:e.field.options.closable,"disable-transitions":e.field.options.disableTransitions,hit:e.field.options.hit,effect:e.field.options.effect},on:{close:e.handleClose}},[e._v(" "+e._s(e.field.options.content||"Tag")+" ")])],1)},mn=[],bn={name:"tag-item",mixins:[E["b"]],props:{field:Object,formData:Object,value:[String,Number,Boolean,Array,Object],disabled:Boolean,rules:Array},methods:{handleClose:function(){if(this.field.options.onClose)try{var e=new Function("$event","$field","$value",this.field.options.onClose);e.call(this,"close",this.field,this.value)}catch(t){console.error("Error executing onClose event:",t)}}}},vn=bn,yn=(n("9c84"),Object(R["a"])(vn,gn,mn,!1,null,"7c622d09",null)),wn=yn.exports,xn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];x(Tt),U.a.component(Wt.name,Wt),U.a.component(Jt.name,Jt),Ke("card-folded","card-folded-editor",yt("folded","extension.setting.cardFolded")),Ke("card-showFold","card-showFold-editor",yt("showFold","extension.setting.cardShowFold")),Ke("card-cardWidth","card-cardWidth-editor",bt("cardWidth","extension.setting.cardWidth"));var t=[{label:"never",value:"never"},{label:"hover",value:"hover"},{label:"always",value:"always"}];Ke("card-shadow","card-shadow-editor",_t("shadow","extension.setting.cardShadow",{optionItems:t})),xe("card",Xt),k(Rt),U.a.component(an.name,an),Ke("alert-title","alert-title-editor",bt("title","extension.setting.alertTitle"));var n=[{label:"success",value:"success"},{label:"warning",value:"warning"},{label:"info",value:"info"},{label:"error",value:"error"}];U.a.component("alert-type-editor",_t("type","extension.setting.alertType",{optionItems:n})),Ke("alert-description","alert-description-editor",bt("description","extension.setting.description")),Ke("alert-closable","alert-closable-editor",yt("closable","extension.setting.closable")),Ke("alert-closeText","alert-closeText-editor",bt("closeText","extension.setting.closeText")),Ke("alert-center","alert-center-editor",yt("center","extension.setting.center")),Ke("alert-showIcon","alert-showIcon-editor",yt("showIcon","extension.setting.showIcon"));var r=[{label:"light",value:"light"},{label:"dark",value:"dark"}];Ke("alert-effect","alert-effect-editor",Ct("effect","extension.setting.effect",{optionItems:r})),Ye("alert-onClose","alert-onClose-editor",kt("onClose",[])),Ce("alert",Zt),k(ln),U.a.component(pn.name,pn),U.a.component(wn.name,wn),Ke("tag-content","tag-content-editor",bt("content","extension.setting.tagContent"));var s=[{label:"",value:""},{label:"success",value:"success"},{label:"warning",value:"warning"},{label:"info",value:"info"},{label:"error",value:"error"}];U.a.component("tag-type-editor",_t("type","extension.setting.tagType",{optionItems:s}));var a=[{label:"",value:""},{label:"medium",value:"medium"},{label:"small",value:"small"},{label:"mini",value:"mini"}];U.a.component("tag-size-editor",_t("size","extension.setting.tagSize",{optionItems:a})),Ke("tag-closable","tag-closable-editor",yt("closable","extension.setting.tagClosable")),Ke("tag-disableTransitions","tag-disableTransitions-editor",yt("disableTransitions","extension.setting.tagDisableTransitions")),Ke("tag-hit","tag-hit-editor",yt("hit","extension.setting.tagHit"));var l=[{label:"plain",value:"plain"},{label:"dark",value:"dark"}];U.a.component("tag-effect-editor",Ct("effect","extension.setting.tagEffect",{optionItems:l})),Ye("tag-onClose","tag-onClose-editor",kt("onClose",[])),At({Vue:U.a,widgets:{addContainerWidgetSchema:x,addBasicFieldSchema:C,addAdvancedFieldSchema:_,addCustomWidgetSchema:k},properties:i,editors:o,generators:{registerCWGenerator:xe,registerFWGenerator:Ce}},e)};n("caad"),n("2532");U.a.directive("dialogDrag",{bind:function(e,t,n,i){var o=e.querySelector(".el-dialog__header"),r=e.querySelector(".el-dialog");o.style.cursor="move";var s=r.currentStyle||window.getComputedStyle(r,null);o.onmousedown=function(e){var t,n,i=e.clientX-o.offsetLeft,a=e.clientY-o.offsetTop;s.left.includes("%")?(t=+document.body.clientWidth*(+s.left.replace(/%/g,"")/100),n=+document.body.clientHeight*(+s.top.replace(/%/g,"")/100)):(t=+s.left.replace(/px/g,""),n=+s.top.replace(/px/g,"")),document.onmousemove=function(e){var o=e.clientX-i,s=e.clientY-a;r.style.left="".concat(o+t,"px"),r.style.top="".concat(s+n,"px")},document.onmouseup=function(e){document.onmousemove=null,document.onmouseup=null}}}}),U.a.directive("dialogDragWidth",{bind:function(e,t,n,i){var o=t.value.$el.querySelector(".el-dialog");e.onmousedown=function(t){var n=t.clientX-e.offsetLeft;document.onmousemove=function(e){e.preventDefault();var t=e.clientX-n;o.style.width="".concat(t,"px")},document.onmouseup=function(e){document.onmousemove=null,document.onmouseup=null}}}});n("985d"),n("0f59");var Cn=!1;gt.install=function(e){e.component(gt.name,gt)},Q.install=function(e){e.component(Q.name,Q)};var _n=[gt,Q],kn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};window.axios=c.a,Cn||(xn(t.extensions||[]),Cn=!0),_n.forEach((function(t){e.component(t.name,t)}))};"undefined"!==typeof window&&window.Vue&&kn(window.Vue);var Sn={install:kn,registerExtension:Mt,VFormDesigner:gt,VFormRender:Q,FormItemWrapper:mt["default"]};t["default"]=Sn},fb56:function(e,t,n){"use strict";n("ff5e")},fb6a:function(e,t,n){"use strict";var i=n("23e7"),o=n("da84"),r=n("e8b5"),s=n("68ee"),a=n("861d"),l=n("23cb"),c=n("07fa"),u=n("fc6a"),d=n("8418"),h=n("b622"),f=n("1dde"),p=n("f36a"),g=f("slice"),m=h("species"),b=o.Array,v=Math.max;i({target:"Array",proto:!0,forced:!g},{slice:function(e,t){var n,i,o,h=u(this),f=c(h),g=l(e,f),y=l(void 0===t?f:t,f);if(r(h)&&(n=h.constructor,s(n)&&(n===b||r(n.prototype))?n=void 0:a(n)&&(n=n[m],null===n&&(n=void 0)),n===b||void 0===n))return p(h,g,y);for(i=new(void 0===n?b:n)(v(y-g,0)),o=0;g<y;g++,o++)g in h&&d(i,o,h[g]);return i.length=o,i}})},fbe0:function(e,t,n){},fc6a:function(e,t,n){var i=n("44ad"),o=n("1d80");e.exports=function(e){return i(o(e))}},fc8b:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.lowThreshold")}},[n("el-input-number",{staticClass:"hide-spin-button",staticStyle:{width:"100%"},attrs:{min:1,max:e.optionModel.highThreshold},model:{value:e.optionModel.lowThreshold,callback:function(t){e.$set(e.optionModel,"lowThreshold",t)},expression:"optionModel.lowThreshold"}})],1)},o=[],r=n("79fa"),s={name:"lowThreshold-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"d66e35d0",null);t["default"]=c.exports},fcbf:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.cellHeight")}},[n("el-input",{attrs:{type:"text"},model:{value:e.optionModel.cellHeight,callback:function(t){e.$set(e.optionModel,"cellHeight",t)},expression:"optionModel.cellHeight"}})],1)},o=[],r=n("79fa"),s={name:"cellHeight-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"52af6c29",null);t["default"]=c.exports},fce3:function(e,t,n){var i=n("d039"),o=n("da84"),r=o.RegExp;e.exports=i((function(){var e=r(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}))},fd28:function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-document",use:"icon-document-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-document"><defs><style type="text/css"></style></defs><path d="M979.478261 706.381913a44.521739 44.521739 0 0 1-11.842783 57.967304l-4.36313 2.849392-393.794783 227.862261-5.38713 4.763826a84.012522 84.012522 0 0 1-43.942957 17.808695l-8.102956 0.400696c-19.055304 0-37.309217-6.544696-52.045913-18.253913l-5.431652-4.719304-393.750261-227.862261a44.521739 44.521739 0 0 1-18.610087-56.186435l2.359652-4.630261a44.521739 44.521739 0 0 1 60.816696-16.250435l405.325913 234.540522 1.335652 1.513739 1.335652-1.513739 405.281391-234.540522a44.521739 44.521739 0 0 1 60.861218 16.250435z m0-222.608696a44.521739 44.521739 0 0 1-11.842783 57.967305l-4.36313 2.849391-393.794783 227.862261-5.38713 4.763826a84.012522 84.012522 0 0 1-43.942957 17.808696l-8.102956 0.400695c-19.055304 0-37.309217-6.544696-52.045913-18.253913l-5.431652-4.719304-393.750261-227.862261a44.521739 44.521739 0 0 1-18.610087-56.186435l2.359652-4.630261a44.521739 44.521739 0 0 1 60.816696-16.250434l405.325913 234.540521 1.335652 1.513739 1.335652-1.513739 405.281391-234.540521a44.521739 44.521739 0 0 1 60.861218 16.250434zM512 0c18.788174 0 36.864 6.099478 51.645217 17.185391l4.58574 3.739826 403.500521 199.68 5.609739 6.144c32.50087 35.439304 32.50087 89.889391 0 125.328696l-5.609739 6.144-403.500521 199.590957-4.541218 3.784347a86.238609 86.238609 0 0 1-43.675826 16.829218L512 578.782609c-18.788174 0-36.864-6.099478-51.645217-17.185392l-4.630261-3.784347L52.268522 358.221913l-5.609739-6.144a92.738783 92.738783 0 0 1 0-125.328696l5.609739-6.144L455.724522 20.925217l4.585739-3.739826c12.688696-9.48313 27.826087-15.315478 43.675826-16.829217z" fill="#008df0" p-id="5455" /></symbol>'});s.a.add(a);t["default"]=a},fd87:function(e,t,n){var i=n("74e8");i("Int8",(function(e){return function(t,n,i){return e(this,t,n,i)}}))},fdbc:function(e,t){e.exports={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}},fdbf:function(e,t,n){var i=n("4930");e.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},fe05:function(e,t,n){"use strict";n("2dd9")},fe5d:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.allowCreate")}},[n("el-switch",{model:{value:e.optionModel.allowCreate,callback:function(t){e.$set(e.optionModel,"allowCreate",t)},expression:"optionModel.allowCreate"}})],1)},o=[],r=n("79fa"),s={name:"allowCreate-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"7ea31b71",null);t["default"]=c.exports},fea9:function(e,t,n){var i=n("da84");e.exports=i.Promise},feea:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.displayType")}},[n("el-select",{model:{value:e.optionModel.type,callback:function(t){e.$set(e.optionModel,"type",t)},expression:"optionModel.type"}},[n("el-option",{attrs:{label:"daterange",value:"daterange"}}),n("el-option",{attrs:{label:"datetimerange",value:"datetimerange"}}),n("el-option",{attrs:{label:"monthrange",value:"monthrange"}})],1)],1)},o=[],r=n("79fa"),s={name:"date-range-type-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"574545a5",null);t["default"]=c.exports},ff09:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.maxValue")}},[n("el-input-number",{staticClass:"hide-spin-button",staticStyle:{width:"100%"},model:{value:e.maxValue,callback:function(t){e.maxValue=t},expression:"maxValue"}})],1)},o=[],r=(n("a9e3"),n("79fa")),s={name:"max-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},computed:{maxValue:{get:function(){return this.optionModel["max"]},set:function(e){!e||isNaN(e)?this.optionModel.max=null:this.optionModel.max=Number(e)}}}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"edcd3882",null);t["default"]=c.exports},ff5e:function(e,t,n){},ff66:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.precision")}},[n("el-input-number",{staticClass:"hide-spin-button",staticStyle:{width:"100%"},attrs:{min:0},model:{value:e.optionModel.precision,callback:function(t){e.$set(e.optionModel,"precision",t)},expression:"optionModel.precision"}})],1)},o=[],r=n("79fa"),s={name:"precision-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"6d29eaf2",null);t["default"]=c.exports},ffcf:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.optionModel.responsive?e._e():n("el-form-item",{attrs:{label:e.i18nt("designer.setting.colSpanTitle")}},[n("el-input-number",{staticStyle:{width:"100%"},attrs:{min:1,max:24},model:{value:e.optionModel.span,callback:function(t){e.$set(e.optionModel,"span",e._n(t))},expression:"optionModel.span"}})],1),e.optionModel.responsive&&"PC"===e.formConfig.layoutType?n("el-form-item",{attrs:{label:e.i18nt("designer.setting.colSpanTitle")+"(PC)"}},[n("el-input-number",{staticStyle:{width:"100%"},attrs:{min:1,max:24},model:{value:e.optionModel.md,callback:function(t){e.$set(e.optionModel,"md",e._n(t))},expression:"optionModel.md"}})],1):e._e(),e.optionModel.responsive&&"Pad"===e.formConfig.layoutType?n("el-form-item",{attrs:{label:e.i18nt("designer.setting.colSpanTitle")+"(Pad)"}},[n("el-input-number",{staticStyle:{width:"100%"},attrs:{min:1,max:24},model:{value:e.optionModel.sm,callback:function(t){e.$set(e.optionModel,"sm",e._n(t))},expression:"optionModel.sm"}})],1):e._e(),e.optionModel.responsive&&"H5"===e.formConfig.layoutType?n("el-form-item",{attrs:{label:e.i18nt("designer.setting.colSpanTitle")+"(H5)"}},[n("el-input-number",{staticStyle:{width:"100%"},attrs:{min:1,max:24},model:{value:e.optionModel.xs,callback:function(t){e.$set(e.optionModel,"xs",e._n(t))},expression:"optionModel.xs"}})],1):e._e()],1)},o=[],r=n("79fa"),s={name:"grid-col-span-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},computed:{formConfig:function(){return this.designer.formConfig}}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"163e0823",null);t["default"]=c.exports}})["default"]}));
|
|
35
|
+
var i=n("1fb5"),o=n("9152"),r=n("e3db");function s(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"===typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}function a(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=c.prototype):(null===e&&(e=new c(t)),e.length=t),e}function c(e,t,n){if(!c.TYPED_ARRAY_SUPPORT&&!(this instanceof c))return new c(e,t,n);if("number"===typeof e){if("string"===typeof t)throw new Error("If encoding is specified then the first argument must be a string");return f(this,e)}return u(this,e,t,n)}function u(e,t,n,i){if("number"===typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&t instanceof ArrayBuffer?m(e,t,n,i):"string"===typeof t?p(e,t,n):b(e,t)}function d(e){if("number"!==typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function h(e,t,n,i){return d(t),t<=0?l(e,t):void 0!==n?"string"===typeof i?l(e,t).fill(n,i):l(e,t).fill(n):l(e,t)}function f(e,t){if(d(t),e=l(e,t<0?0:0|v(t)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function p(e,t,n){if("string"===typeof n&&""!==n||(n="utf8"),!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var i=0|w(t,n);e=l(e,i);var o=e.write(t,n);return o!==i&&(e=e.slice(0,o)),e}function g(e,t){var n=t.length<0?0:0|v(t.length);e=l(e,n);for(var i=0;i<n;i+=1)e[i]=255&t[i];return e}function m(e,t,n,i){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(i||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void 0===i?new Uint8Array(t):void 0===i?new Uint8Array(t,n):new Uint8Array(t,n,i),c.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=c.prototype):e=g(e,t),e}function b(e,t){if(c.isBuffer(t)){var n=0|v(t.length);return e=l(e,n),0===e.length?e:(t.copy(e,0,0,n),e)}if(t){if("undefined"!==typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!==typeof t.length||te(t.length)?l(e,0):g(e,t);if("Buffer"===t.type&&r(t.data))return g(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function v(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function y(e){return+e!=e&&(e=0),c.alloc(+e)}function w(e,t){if(c.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return J(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Q(e).length;default:if(i)return J(e).length;t=(""+t).toLowerCase(),i=!0}}function x(e,t,n){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return q(this,t,n);case"utf8":case"utf-8":return R(this,t,n);case"ascii":return j(this,t,n);case"latin1":case"binary":return I(this,t,n);case"base64":return T(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,t,n);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function C(e,t,n){var i=e[t];e[t]=e[n],e[n]=i}function _(e,t,n,i,o){if(0===e.length)return-1;if("string"===typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"===typeof t&&(t=c.from(t,i)),c.isBuffer(t))return 0===t.length?-1:k(e,t,n,i,o);if("number"===typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):k(e,[t],n,i,o);throw new TypeError("val must be string, number or Buffer")}function k(e,t,n,i,o){var r,s=1,a=e.length,l=t.length;if(void 0!==i&&(i=String(i).toLowerCase(),"ucs2"===i||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;s=2,a/=2,l/=2,n/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(o){var u=-1;for(r=n;r<a;r++)if(c(e,r)===c(t,-1===u?0:r-u)){if(-1===u&&(u=r),r-u+1===l)return u*s}else-1!==u&&(r-=r-u),u=-1}else for(n+l>a&&(n=a-l),r=n;r>=0;r--){for(var d=!0,h=0;h<l;h++)if(c(e,r+h)!==c(t,h)){d=!1;break}if(d)return r}return-1}function S(e,t,n,i){n=Number(n)||0;var o=e.length-n;i?(i=Number(i),i>o&&(i=o)):i=o;var r=t.length;if(r%2!==0)throw new TypeError("Invalid hex string");i>r/2&&(i=r/2);for(var s=0;s<i;++s){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))return s;e[n+s]=a}return s}function O(e,t,n,i){return ee(J(t,e.length-n),e,n,i)}function E(e,t,n,i){return ee(X(t),e,n,i)}function L(e,t,n,i){return E(e,t,n,i)}function M(e,t,n,i){return ee(Q(t),e,n,i)}function A(e,t,n,i){return ee(Z(t,e.length-n),e,n,i)}function T(e,t,n){return 0===t&&n===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,n))}function R(e,t,n){n=Math.min(e.length,n);var i=[],o=t;while(o<n){var r,s,a,l,c=e[o],u=null,d=c>239?4:c>223?3:c>191?2:1;if(o+d<=n)switch(d){case 1:c<128&&(u=c);break;case 2:r=e[o+1],128===(192&r)&&(l=(31&c)<<6|63&r,l>127&&(u=l));break;case 3:r=e[o+1],s=e[o+2],128===(192&r)&&128===(192&s)&&(l=(15&c)<<12|(63&r)<<6|63&s,l>2047&&(l<55296||l>57343)&&(u=l));break;case 4:r=e[o+1],s=e[o+2],a=e[o+3],128===(192&r)&&128===(192&s)&&128===(192&a)&&(l=(15&c)<<18|(63&r)<<12|(63&s)<<6|63&a,l>65535&&l<1114112&&(u=l))}null===u?(u=65533,d=1):u>65535&&(u-=65536,i.push(u>>>10&1023|55296),u=56320|1023&u),i.push(u),o+=d}return F(i)}t.Buffer=c,t.SlowBuffer=y,t.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:s(),t.kMaxLength=a(),c.poolSize=8192,c._augment=function(e){return e.__proto__=c.prototype,e},c.from=function(e,t,n){return u(null,e,t,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(e,t,n){return h(null,e,t,n)},c.allocUnsafe=function(e){return f(null,e)},c.allocUnsafeSlow=function(e){return f(null,e)},c.isBuffer=function(e){return!(null==e||!e._isBuffer)},c.compare=function(e,t){if(!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,i=t.length,o=0,r=Math.min(n,i);o<r;++o)if(e[o]!==t[o]){n=e[o],i=t[o];break}return n<i?-1:i<n?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!r(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var i=c.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var s=e[n];if(!c.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(i,o),o+=s.length}return i},c.byteLength=w,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)C(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)C(this,t,t+3),C(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)C(this,t,t+7),C(this,t+1,t+6),C(this,t+2,t+5),C(this,t+3,t+4);return this},c.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?R(this,0,e):x.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},c.prototype.compare=function(e,t,n,i,o){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===i&&(i=0),void 0===o&&(o=this.length),t<0||n>e.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&t>=n)return 0;if(i>=o)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,i>>>=0,o>>>=0,this===e)return 0;for(var r=o-i,s=n-t,a=Math.min(r,s),l=this.slice(i,o),u=e.slice(t,n),d=0;d<a;++d)if(l[d]!==u[d]){r=l[d],s=u[d];break}return r<s?-1:s<r?1:0},c.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return _(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return _(this,e,t,n,!1)},c.prototype.write=function(e,t,n,i){if(void 0===t)i="utf8",n=this.length,t=0;else if(void 0===n&&"string"===typeof t)i=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===i&&(i="utf8")):(i=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var r=!1;;)switch(i){case"hex":return S(this,e,t,n);case"utf8":case"utf-8":return O(this,e,t,n);case"ascii":return E(this,e,t,n);case"latin1":case"binary":return L(this,e,t,n);case"base64":return M(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,e,t,n);default:if(r)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),r=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var $=4096;function F(e){var t=e.length;if(t<=$)return String.fromCharCode.apply(String,e);var n="",i=0;while(i<t)n+=String.fromCharCode.apply(String,e.slice(i,i+=$));return n}function j(e,t,n){var i="";n=Math.min(e.length,n);for(var o=t;o<n;++o)i+=String.fromCharCode(127&e[o]);return i}function I(e,t,n){var i="";n=Math.min(e.length,n);for(var o=t;o<n;++o)i+=String.fromCharCode(e[o]);return i}function q(e,t,n){var i=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>i)&&(n=i);for(var o="",r=t;r<n;++r)o+=Y(e[r]);return o}function P(e,t,n){for(var i=e.slice(t,n),o="",r=0;r<i.length;r+=2)o+=String.fromCharCode(i[r]+256*i[r+1]);return o}function N(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function D(e,t,n,i,o,r){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<r)throw new RangeError('"value" argument is out of bounds');if(n+i>e.length)throw new RangeError("Index out of range")}function W(e,t,n,i){t<0&&(t=65535+t+1);for(var o=0,r=Math.min(e.length-n,2);o<r;++o)e[n+o]=(t&255<<8*(i?o:1-o))>>>8*(i?o:1-o)}function B(e,t,n,i){t<0&&(t=4294967295+t+1);for(var o=0,r=Math.min(e.length-n,4);o<r;++o)e[n+o]=t>>>8*(i?o:3-o)&255}function H(e,t,n,i,o,r){if(n+i>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function z(e,t,n,i,r){return r||H(e,t,n,4,34028234663852886e22,-34028234663852886e22),o.write(e,t,n,i,23,4),n+4}function V(e,t,n,i,r){return r||H(e,t,n,8,17976931348623157e292,-17976931348623157e292),o.write(e,t,n,i,52,8),n+8}c.prototype.slice=function(e,t){var n,i=this.length;if(e=~~e,t=void 0===t?i:~~t,e<0?(e+=i,e<0&&(e=0)):e>i&&(e=i),t<0?(t+=i,t<0&&(t=0)):t>i&&(t=i),t<e&&(t=e),c.TYPED_ARRAY_SUPPORT)n=this.subarray(e,t),n.__proto__=c.prototype;else{var o=t-e;n=new c(o,void 0);for(var r=0;r<o;++r)n[r]=this[r+e]}return n},c.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);var i=this[e],o=1,r=0;while(++r<t&&(o*=256))i+=this[e+r]*o;return i},c.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);var i=this[e+--t],o=1;while(t>0&&(o*=256))i+=this[e+--t]*o;return i},c.prototype.readUInt8=function(e,t){return t||N(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||N(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||N(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||N(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||N(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);var i=this[e],o=1,r=0;while(++r<t&&(o*=256))i+=this[e+r]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*t)),i},c.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);var i=t,o=1,r=this[e+--i];while(i>0&&(o*=256))r+=this[e+--i]*o;return o*=128,r>=o&&(r-=Math.pow(2,8*t)),r},c.prototype.readInt8=function(e,t){return t||N(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||N(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){t||N(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return t||N(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||N(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||N(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||N(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||N(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||N(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,i){if(e=+e,t|=0,n|=0,!i){var o=Math.pow(2,8*n)-1;D(this,e,t,n,o,0)}var r=1,s=0;this[t]=255&e;while(++s<n&&(r*=256))this[t+s]=e/r&255;return t+n},c.prototype.writeUIntBE=function(e,t,n,i){if(e=+e,t|=0,n|=0,!i){var o=Math.pow(2,8*n)-1;D(this,e,t,n,o,0)}var r=n-1,s=1;this[t+r]=255&e;while(--r>=0&&(s*=256))this[t+r]=e/s&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):W(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):W(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):B(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):B(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,n,i){if(e=+e,t|=0,!i){var o=Math.pow(2,8*n-1);D(this,e,t,n,o-1,-o)}var r=0,s=1,a=0;this[t]=255&e;while(++r<n&&(s*=256))e<0&&0===a&&0!==this[t+r-1]&&(a=1),this[t+r]=(e/s>>0)-a&255;return t+n},c.prototype.writeIntBE=function(e,t,n,i){if(e=+e,t|=0,!i){var o=Math.pow(2,8*n-1);D(this,e,t,n,o-1,-o)}var r=n-1,s=1,a=0;this[t+r]=255&e;while(--r>=0&&(s*=256))e<0&&0===a&&0!==this[t+r+1]&&(a=1),this[t+r]=(e/s>>0)-a&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):W(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):W(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):B(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):B(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return z(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return z(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return V(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return V(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,i){if(n||(n=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i<n&&(i=n),i===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t<i-n&&(i=e.length-t+n);var o,r=i-n;if(this===e&&n<t&&t<i)for(o=r-1;o>=0;--o)e[o+t]=this[o+n];else if(r<1e3||!c.TYPED_ARRAY_SUPPORT)for(o=0;o<r;++o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+r),t);return r},c.prototype.fill=function(e,t,n,i){if("string"===typeof e){if("string"===typeof t?(i=t,t=0,n=this.length):"string"===typeof n&&(i=n,n=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==i&&"string"!==typeof i)throw new TypeError("encoding must be a string");if("string"===typeof i&&!c.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else"number"===typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var r;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(r=t;r<n;++r)this[r]=e;else{var s=c.isBuffer(e)?e:J(new c(e,i).toString()),a=s.length;for(r=0;r<n-t;++r)this[r+t]=s[r%a]}return this};var U=/[^+\/0-9A-Za-z-_]/g;function K(e){if(e=G(e).replace(U,""),e.length<2)return"";while(e.length%4!==0)e+="=";return e}function G(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function Y(e){return e<16?"0"+e.toString(16):e.toString(16)}function J(e,t){var n;t=t||1/0;for(var i=e.length,o=null,r=[],s=0;s<i;++s){if(n=e.charCodeAt(s),n>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&r.push(239,191,189);continue}if(s+1===i){(t-=3)>-1&&r.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&r.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&r.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;r.push(n)}else if(n<2048){if((t-=2)<0)break;r.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;r.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;r.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return r}function X(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}function Z(e,t){for(var n,i,o,r=[],s=0;s<e.length;++s){if((t-=2)<0)break;n=e.charCodeAt(s),i=n>>8,o=n%256,r.push(o),r.push(i)}return r}function Q(e){return i.toByteArray(K(e))}function ee(e,t,n,i){for(var o=0;o<i;++o){if(o+n>=t.length||o>=e.length)break;t[o+n]=e[o]}return o}function te(e){return e!==e}}).call(this,n("c8ba"))},b64b:function(e,t,n){var i=n("23e7"),o=n("7b0b"),r=n("df75"),s=n("d039"),a=s((function(){r(1)}));i({target:"Object",stat:!0,forced:a},{keys:function(e){return r(o(e))}})},b674:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.allowHalf")}},[n("el-switch",{model:{value:e.optionModel.allowHalf,callback:function(t){e.$set(e.optionModel,"allowHalf",t)},expression:"optionModel.allowHalf"}})],1)},o=[],r=n("79fa"),s={name:"allowHalf-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"75c91e5d",null);t["default"]=c.exports},b6b7:function(e,t,n){var i=n("ebb5"),o=n("4840"),r=i.TYPED_ARRAY_CONSTRUCTOR,s=i.aTypedArrayConstructor;e.exports=function(e){return s(o(e,e[r]))}},b6b9:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.showBlankRow")}},[n("el-switch",{model:{value:e.optionModel.showBlankRow,callback:function(t){e.$set(e.optionModel,"showBlankRow",t)},expression:"optionModel.showBlankRow"}})],1)},o=[],r=n("79fa"),s={name:"showBlankRow-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"aacb0e56",null);t["default"]=c.exports},b727:function(e,t,n){var i=n("0366"),o=n("e330"),r=n("44ad"),s=n("7b0b"),a=n("07fa"),l=n("65f0"),c=o([].push),u=function(e){var t=1==e,n=2==e,o=3==e,u=4==e,d=6==e,h=7==e,f=5==e||d;return function(p,g,m,b){for(var v,y,w=s(p),x=r(w),C=i(g,m),_=a(x),k=0,S=b||l,O=t?S(p,_):n||h?S(p,0):void 0;_>k;k++)if((f||k in x)&&(v=x[k],y=C(v,k,w),e))if(t)O[k]=y;else if(y)switch(e){case 3:return!0;case 5:return v;case 6:return k;case 2:c(O,v)}else switch(e){case 4:return!1;case 7:c(O,v)}return d?-1:o||u?u:O}};e.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},b76a:function(e,t,n){(function(e){var i,o,r,s=n("7037").default;n("a4d3"),n("e01a"),n("d3b7"),n("944a"),n("0c47"),n("23dc"),n("e260"),n("ddb0"),n("b0c0"),n("fb6a"),n("2c3e"),n("b64b"),n("ac1f"),n("5319"),n("1276"),n("4d63"),n("c607"),n("25f0"),n("a15b"),n("3410"),n("cca6"),n("159b"),n("99af"),n("2ca0"),n("466d"),n("d28b"),n("3ca3"),n("a630"),n("00b4"),n("d81d"),n("4de4"),n("caad"),n("a434"),function(a,l){"object"===s(t)&&"object"===s(e)?e.exports=l(n("aa47")):(o=[n("aa47")],i=l,r="function"===typeof i?i.apply(t,o):i,void 0===r||(e.exports=r))}("undefined"!==typeof self&&self,(function(e){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===s(e)&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fb15")}({"01f9":function(e,t,n){"use strict";var i=n("2d00"),o=n("5ca1"),r=n("2aba"),s=n("32e9"),a=n("84f2"),l=n("41a0"),c=n("7f20"),u=n("38fd"),d=n("2b4c")("iterator"),h=!([].keys&&"next"in[].keys()),f="@@iterator",p="keys",g="values",m=function(){return this};e.exports=function(e,t,n,b,v,y,w){l(n,t,b);var x,C,_,k=function(e){if(!h&&e in L)return L[e];switch(e){case p:return function(){return new n(this,e)};case g:return function(){return new n(this,e)}}return function(){return new n(this,e)}},S=t+" Iterator",O=v==g,E=!1,L=e.prototype,M=L[d]||L[f]||v&&L[v],A=M||k(v),T=v?O?k("entries"):A:void 0,R="Array"==t&&L.entries||M;if(R&&(_=u(R.call(new e)),_!==Object.prototype&&_.next&&(c(_,S,!0),i||"function"==typeof _[d]||s(_,d,m))),O&&M&&M.name!==g&&(E=!0,A=function(){return M.call(this)}),i&&!w||!h&&!E&&L[d]||s(L,d,A),a[t]=A,a[S]=m,v)if(x={values:O?A:k(g),keys:y?A:k(p),entries:T},w)for(C in x)C in L||r(L,C,x[C]);else o(o.P+o.F*(h||E),t,x);return x}},"02f4":function(e,t,n){var i=n("4588"),o=n("be13");e.exports=function(e){return function(t,n){var r,s,a=String(o(t)),l=i(n),c=a.length;return l<0||l>=c?e?"":void 0:(r=a.charCodeAt(l),r<55296||r>56319||l+1===c||(s=a.charCodeAt(l+1))<56320||s>57343?e?a.charAt(l):r:e?a.slice(l,l+2):s-56320+(r-55296<<10)+65536)}}},"0390":function(e,t,n){"use strict";var i=n("02f4")(!0);e.exports=function(e,t,n){return t+(n?i(e,t).length:1)}},"0bfb":function(e,t,n){"use strict";var i=n("cb7c");e.exports=function(){var e=i(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},"0d58":function(e,t,n){var i=n("ce10"),o=n("e11e");e.exports=Object.keys||function(e){return i(e,o)}},1495:function(e,t,n){var i=n("86cc"),o=n("cb7c"),r=n("0d58");e.exports=n("9e1e")?Object.defineProperties:function(e,t){o(e);var n,s=r(t),a=s.length,l=0;while(a>l)i.f(e,n=s[l++],t[n]);return e}},"214f":function(e,t,n){"use strict";n("b0c5");var i=n("2aba"),o=n("32e9"),r=n("79e5"),s=n("be13"),a=n("2b4c"),l=n("520a"),c=a("species"),u=!r((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),d=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]}();e.exports=function(e,t,n){var h=a(e),f=!r((function(){var t={};return t[h]=function(){return 7},7!=""[e](t)})),p=f?!r((function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[c]=function(){return n}),n[h](""),!t})):void 0;if(!f||!p||"replace"===e&&!u||"split"===e&&!d){var g=/./[h],m=n(s,h,""[e],(function(e,t,n,i,o){return t.exec===l?f&&!o?{done:!0,value:g.call(t,n,i)}:{done:!0,value:e.call(n,t,i)}:{done:!1}})),b=m[0],v=m[1];i(String.prototype,e,b),o(RegExp.prototype,h,2==t?function(e,t){return v.call(e,this,t)}:function(e){return v.call(e,this)})}}},"230e":function(e,t,n){var i=n("d3f4"),o=n("7726").document,r=i(o)&&i(o.createElement);e.exports=function(e){return r?o.createElement(e):{}}},"23c6":function(e,t,n){var i=n("2d95"),o=n("2b4c")("toStringTag"),r="Arguments"==i(function(){return arguments}()),s=function(e,t){try{return e[t]}catch(n){}};e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=s(t=Object(e),o))?n:r?i(t):"Object"==(a=i(t))&&"function"==typeof t.callee?"Arguments":a}},2621:function(e,t){t.f=Object.getOwnPropertySymbols},"2aba":function(e,t,n){var i=n("7726"),o=n("32e9"),r=n("69a8"),s=n("ca5a")("src"),a=n("fa5b"),l="toString",c=(""+a).split(l);n("8378").inspectSource=function(e){return a.call(e)},(e.exports=function(e,t,n,a){var l="function"==typeof n;l&&(r(n,"name")||o(n,"name",t)),e[t]!==n&&(l&&(r(n,s)||o(n,s,e[t]?""+e[t]:c.join(String(t)))),e===i?e[t]=n:a?e[t]?e[t]=n:o(e,t,n):(delete e[t],o(e,t,n)))})(Function.prototype,l,(function(){return"function"==typeof this&&this[s]||a.call(this)}))},"2aeb":function(e,t,n){var i=n("cb7c"),o=n("1495"),r=n("e11e"),s=n("613b")("IE_PROTO"),a=function(){},l="prototype",c=function(){var e,t=n("230e")("iframe"),i=r.length,o="<",s=">";t.style.display="none",n("fab2").appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(o+"script"+s+"document.F=Object"+o+"/script"+s),e.close(),c=e.F;while(i--)delete c[l][r[i]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(a[l]=i(e),n=new a,a[l]=null,n[s]=e):n=c(),void 0===t?n:o(n,t)}},"2b4c":function(e,t,n){var i=n("5537")("wks"),o=n("ca5a"),r=n("7726").Symbol,s="function"==typeof r,a=e.exports=function(e){return i[e]||(i[e]=s&&r[e]||(s?r:o)("Symbol."+e))};a.store=i},"2d00":function(e,t){e.exports=!1},"2d95":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"2fdb":function(e,t,n){"use strict";var i=n("5ca1"),o=n("d2c8"),r="includes";i(i.P+i.F*n("5147")(r),"String",{includes:function(e){return!!~o(this,e,r).indexOf(e,arguments.length>1?arguments[1]:void 0)}})},"32e9":function(e,t,n){var i=n("86cc"),o=n("4630");e.exports=n("9e1e")?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},"38fd":function(e,t,n){var i=n("69a8"),o=n("4bf8"),r=n("613b")("IE_PROTO"),s=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),i(e,r)?e[r]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?s:null}},"41a0":function(e,t,n){"use strict";var i=n("2aeb"),o=n("4630"),r=n("7f20"),s={};n("32e9")(s,n("2b4c")("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=i(s,{next:o(1,n)}),r(e,t+" Iterator")}},"456d":function(e,t,n){var i=n("4bf8"),o=n("0d58");n("5eda")("keys",(function(){return function(e){return o(i(e))}}))},4588:function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?i:n)(e)}},4630:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"4bf8":function(e,t,n){var i=n("be13");e.exports=function(e){return Object(i(e))}},5147:function(e,t,n){var i=n("2b4c")("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[i]=!1,!"/./"[e](t)}catch(o){}}return!0}},"520a":function(e,t,n){"use strict";var i=n("0bfb"),o=RegExp.prototype.exec,r=String.prototype.replace,s=o,a="lastIndex",l=function(){var e=/a/,t=/b*/g;return o.call(e,"a"),o.call(t,"a"),0!==e[a]||0!==t[a]}(),c=void 0!==/()??/.exec("")[1],u=l||c;u&&(s=function(e){var t,n,s,u,d=this;return c&&(n=new RegExp("^"+d.source+"$(?!\\s)",i.call(d))),l&&(t=d[a]),s=o.call(d,e),l&&s&&(d[a]=d.global?s.index+s[0].length:t),c&&s&&s.length>1&&r.call(s[0],n,(function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(s[u]=void 0)})),s}),e.exports=s},"52a7":function(e,t){t.f={}.propertyIsEnumerable},5537:function(e,t,n){var i=n("8378"),o=n("7726"),r="__core-js_shared__",s=o[r]||(o[r]={});(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:i.version,mode:n("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"5ca1":function(e,t,n){var i=n("7726"),o=n("8378"),r=n("32e9"),s=n("2aba"),a=n("9b43"),l="prototype",c=function e(t,n,c){var u,d,h,f,p=t&e.F,g=t&e.G,m=t&e.S,b=t&e.P,v=t&e.B,y=g?i:m?i[n]||(i[n]={}):(i[n]||{})[l],w=g?o:o[n]||(o[n]={}),x=w[l]||(w[l]={});for(u in g&&(c=n),c)d=!p&&y&&void 0!==y[u],h=(d?y:c)[u],f=v&&d?a(h,i):b&&"function"==typeof h?a(Function.call,h):h,y&&s(y,u,h,t&e.U),w[u]!=h&&r(w,u,f),b&&x[u]!=h&&(x[u]=h)};i.core=o,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},"5eda":function(e,t,n){var i=n("5ca1"),o=n("8378"),r=n("79e5");e.exports=function(e,t){var n=(o.Object||{})[e]||Object[e],s={};s[e]=t(n),i(i.S+i.F*r((function(){n(1)})),"Object",s)}},"5f1b":function(e,t,n){"use strict";var i=n("23c6"),o=RegExp.prototype.exec;e.exports=function(e,t){var n=e.exec;if("function"===typeof n){var r=n.call(e,t);if("object"!==s(r))throw new TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==i(e))throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(e,t)}},"613b":function(e,t,n){var i=n("5537")("keys"),o=n("ca5a");e.exports=function(e){return i[e]||(i[e]=o(e))}},"626a":function(e,t,n){var i=n("2d95");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==i(e)?e.split(""):Object(e)}},6762:function(e,t,n){"use strict";var i=n("5ca1"),o=n("c366")(!0);i(i.P,"Array",{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")("includes")},6821:function(e,t,n){var i=n("626a"),o=n("be13");e.exports=function(e){return i(o(e))}},"69a8":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"6a99":function(e,t,n){var i=n("d3f4");e.exports=function(e,t){if(!i(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!i(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!i(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!i(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},7333:function(e,t,n){"use strict";var i=n("0d58"),o=n("2621"),r=n("52a7"),s=n("4bf8"),a=n("626a"),l=Object.assign;e.exports=!l||n("79e5")((function(){var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!=l({},e)[n]||Object.keys(l({},t)).join("")!=i}))?function(e,t){var n=s(e),l=arguments.length,c=1,u=o.f,d=r.f;while(l>c){var h,f=a(arguments[c++]),p=u?i(f).concat(u(f)):i(f),g=p.length,m=0;while(g>m)d.call(f,h=p[m++])&&(n[h]=f[h])}return n}:l},7726:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"77f1":function(e,t,n){var i=n("4588"),o=Math.max,r=Math.min;e.exports=function(e,t){return e=i(e),e<0?o(e+t,0):r(e,t)}},"79e5":function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},"7f20":function(e,t,n){var i=n("86cc").f,o=n("69a8"),r=n("2b4c")("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,r)&&i(e,r,{configurable:!0,value:t})}},8378:function(e,t){var n=e.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},"84f2":function(e,t){e.exports={}},"86cc":function(e,t,n){var i=n("cb7c"),o=n("c69a"),r=n("6a99"),s=Object.defineProperty;t.f=n("9e1e")?Object.defineProperty:function(e,t,n){if(i(e),t=r(t,!0),i(n),o)try{return s(e,t,n)}catch(a){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},"9b43":function(e,t,n){var i=n("d8e8");e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,o){return e.call(t,n,i,o)}}return function(){return e.apply(t,arguments)}}},"9c6c":function(e,t,n){var i=n("2b4c")("unscopables"),o=Array.prototype;void 0==o[i]&&n("32e9")(o,i,{}),e.exports=function(e){o[i][e]=!0}},"9def":function(e,t,n){var i=n("4588"),o=Math.min;e.exports=function(e){return e>0?o(i(e),9007199254740991):0}},"9e1e":function(e,t,n){e.exports=!n("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},a352:function(t,n){t.exports=e},a481:function(e,t,n){"use strict";var i=n("cb7c"),o=n("4bf8"),r=n("9def"),s=n("4588"),a=n("0390"),l=n("5f1b"),c=Math.max,u=Math.min,d=Math.floor,h=/\$([$&`']|\d\d?|<[^>]*>)/g,f=/\$([$&`']|\d\d?)/g,p=function(e){return void 0===e?e:String(e)};n("214f")("replace",2,(function(e,t,n,g){return[function(i,o){var r=e(this),s=void 0==i?void 0:i[t];return void 0!==s?s.call(i,r,o):n.call(String(r),i,o)},function(e,t){var o=g(n,e,this,t);if(o.done)return o.value;var d=i(e),h=String(this),f="function"===typeof t;f||(t=String(t));var b=d.global;if(b){var v=d.unicode;d.lastIndex=0}var y=[];while(1){var w=l(d,h);if(null===w)break;if(y.push(w),!b)break;var x=String(w[0]);""===x&&(d.lastIndex=a(h,r(d.lastIndex),v))}for(var C="",_=0,k=0;k<y.length;k++){w=y[k];for(var S=String(w[0]),O=c(u(s(w.index),h.length),0),E=[],L=1;L<w.length;L++)E.push(p(w[L]));var M=w.groups;if(f){var A=[S].concat(E,O,h);void 0!==M&&A.push(M);var T=String(t.apply(void 0,A))}else T=m(S,h,O,E,M,t);O>=_&&(C+=h.slice(_,O)+T,_=O+S.length)}return C+h.slice(_)}];function m(e,t,i,r,s,a){var l=i+e.length,c=r.length,u=f;return void 0!==s&&(s=o(s),u=h),n.call(a,u,(function(n,o){var a;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,i);case"'":return t.slice(l);case"<":a=s[o.slice(1,-1)];break;default:var u=+o;if(0===u)return n;if(u>c){var h=d(u/10);return 0===h?n:h<=c?void 0===r[h-1]?o.charAt(1):r[h-1]+o.charAt(1):n}a=r[u-1]}return void 0===a?"":a}))}}))},aae3:function(e,t,n){var i=n("d3f4"),o=n("2d95"),r=n("2b4c")("match");e.exports=function(e){var t;return i(e)&&(void 0!==(t=e[r])?!!t:"RegExp"==o(e))}},ac6a:function(e,t,n){for(var i=n("cadf"),o=n("0d58"),r=n("2aba"),s=n("7726"),a=n("32e9"),l=n("84f2"),c=n("2b4c"),u=c("iterator"),d=c("toStringTag"),h=l.Array,f={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=o(f),g=0;g<p.length;g++){var m,b=p[g],v=f[b],y=s[b],w=y&&y.prototype;if(w&&(w[u]||a(w,u,h),w[d]||a(w,d,b),l[b]=h,v))for(m in i)w[m]||r(w,m,i[m],!0)}},b0c5:function(e,t,n){"use strict";var i=n("520a");n("5ca1")({target:"RegExp",proto:!0,forced:i!==/./.exec},{exec:i})},be13:function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},c366:function(e,t,n){var i=n("6821"),o=n("9def"),r=n("77f1");e.exports=function(e){return function(t,n,s){var a,l=i(t),c=o(l.length),u=r(s,c);if(e&&n!=n){while(c>u)if(a=l[u++],a!=a)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}}},c649:function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return o})),n.d(t,"d",(function(){return l}));n("a481");function i(){return"undefined"!==typeof window?window.console:e.console}var o=i();function r(e){var t=Object.create(null);return function(n){var i=t[n];return i||(t[n]=e(n))}}var s=/-(\w)/g,a=r((function(e){return e.replace(s,(function(e,t){return t?t.toUpperCase():""}))}));function l(e){null!==e.parentElement&&e.parentElement.removeChild(e)}function c(e,t,n){var i=0===n?e.children[0]:e.children[n-1].nextSibling;e.insertBefore(t,i)}}).call(this,n("c8ba"))},c69a:function(e,t,n){e.exports=!n("9e1e")&&!n("79e5")((function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a}))},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(i){"object"===("undefined"===typeof window?"undefined":s(window))&&(n=window)}e.exports=n},ca5a:function(e,t){var n=0,i=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+i).toString(36))}},cadf:function(e,t,n){"use strict";var i=n("9c6c"),o=n("d53b"),r=n("84f2"),s=n("6821");e.exports=n("01f9")(Array,"Array",(function(e,t){this._t=s(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):o(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),r.Arguments=r.Array,i("keys"),i("values"),i("entries")},cb7c:function(e,t,n){var i=n("d3f4");e.exports=function(e){if(!i(e))throw TypeError(e+" is not an object!");return e}},ce10:function(e,t,n){var i=n("69a8"),o=n("6821"),r=n("c366")(!1),s=n("613b")("IE_PROTO");e.exports=function(e,t){var n,a=o(e),l=0,c=[];for(n in a)n!=s&&i(a,n)&&c.push(n);while(t.length>l)i(a,n=t[l++])&&(~r(c,n)||c.push(n));return c}},d2c8:function(e,t,n){var i=n("aae3"),o=n("be13");e.exports=function(e,t,n){if(i(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(o(e))}},d3f4:function(e,t){e.exports=function(e){return"object"===s(e)?null!==e:"function"===typeof e}},d53b:function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},d8e8:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},e11e:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},f559:function(e,t,n){"use strict";var i=n("5ca1"),o=n("9def"),r=n("d2c8"),s="startsWith",a=""[s];i(i.P+i.F*n("5147")(s),"String",{startsWith:function(e){var t=r(this,e,s),n=o(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),i=String(e);return a?a.call(t,i,n):t.slice(n,n+i.length)===i}})},f6fd:function(e,t){(function(e){var t="currentScript",n=e.getElementsByTagName("script");t in e||Object.defineProperty(e,t,{get:function(){try{throw new Error}catch(i){var e,t=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(i.stack)||[!1])[1];for(e in n)if(n[e].src==t||"interactive"==n[e].readyState)return n[e];return null}}})})(document)},f751:function(e,t,n){var i=n("5ca1");i(i.S+i.F,"Object",{assign:n("7333")})},fa5b:function(e,t,n){e.exports=n("5537")("native-function-to-string",Function.toString)},fab2:function(e,t,n){var i=n("7726").document;e.exports=i&&i.documentElement},fb15:function(e,t,n){"use strict";var i;(n.r(t),"undefined"!==typeof window)&&(n("f6fd"),(i=window.document.currentScript)&&(i=i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=i[1]));n("f751"),n("f559"),n("ac6a"),n("cadf"),n("456d");function o(e){if(Array.isArray(e))return e}function r(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],i=!0,o=!1,r=void 0;try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done);i=!0)if(n.push(s.value),t&&n.length===t)break}catch(l){o=!0,r=l}finally{try{i||null==a["return"]||a["return"]()}finally{if(o)throw r}}return n}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function a(e,t){if(e){if("string"===typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function l(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(e,t){return o(e)||r(e,t)||a(e,t)||l()}n("6762"),n("2fdb");function u(e){if(Array.isArray(e))return s(e)}function d(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function h(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function f(e){return u(e)||d(e)||a(e)||h()}var p=n("a352"),g=n.n(p),m=n("c649");function b(e,t,n){return void 0===n||(e=e||{},e[t]=n),e}function v(e,t){return e.map((function(e){return e.elm})).indexOf(t)}function y(e,t,n,i){if(!e)return[];var o=e.map((function(e){return e.elm})),r=t.length-i,s=f(t).map((function(e,t){return t>=r?o.length:o.indexOf(e)}));return n?s.filter((function(e){return-1!==e})):s}function w(e,t){var n=this;this.$nextTick((function(){return n.$emit(e.toLowerCase(),t)}))}function x(e){var t=this;return function(n){null!==t.realList&&t["onDrag"+e](n),w.call(t,e,n)}}function C(e){return["transition-group","TransitionGroup"].includes(e)}function _(e){if(!e||1!==e.length)return!1;var t=c(e,1),n=t[0].componentOptions;return!!n&&C(n.tag)}function k(e,t,n){return e[n]||(t[n]?t[n]():void 0)}function S(e,t,n){var i=0,o=0,r=k(t,n,"header");r&&(i=r.length,e=e?[].concat(f(r),f(e)):f(r));var s=k(t,n,"footer");return s&&(o=s.length,e=e?[].concat(f(e),f(s)):f(s)),{children:e,headerOffset:i,footerOffset:o}}function O(e,t){var n=null,i=function(e,t){n=b(n,e,t)},o=Object.keys(e).filter((function(e){return"id"===e||e.startsWith("data-")})).reduce((function(t,n){return t[n]=e[n],t}),{});if(i("attrs",o),!t)return n;var r=t.on,s=t.props,a=t.attrs;return i("on",r),i("props",s),Object.assign(n.attrs,a),n}var E=["Start","Add","Remove","Update","End"],L=["Choose","Unchoose","Sort","Filter","Clone"],M=["Move"].concat(E,L).map((function(e){return"on"+e})),A=null,T={options:Object,list:{type:Array,required:!1,default:null},value:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:function(e){return e}},element:{type:String,default:"div"},tag:{type:String,default:null},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},R={name:"draggable",inheritAttrs:!1,props:T,data:function(){return{transitionMode:!1,noneFunctionalComponentMode:!1}},render:function(e){var t=this.$slots.default;this.transitionMode=_(t);var n=S(t,this.$slots,this.$scopedSlots),i=n.children,o=n.headerOffset,r=n.footerOffset;this.headerOffset=o,this.footerOffset=r;var s=O(this.$attrs,this.componentData);return e(this.getTag(),s,i)},created:function(){null!==this.list&&null!==this.value&&m["b"].error("Value and list props are mutually exclusive! Please set one or another."),"div"!==this.element&&m["b"].warn("Element props is deprecated please use tag props instead. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#element-props"),void 0!==this.options&&m["b"].warn("Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props")},mounted:function(){var e=this;if(this.noneFunctionalComponentMode=this.getTag().toLowerCase()!==this.$el.nodeName.toLowerCase()&&!this.getIsFunctional(),this.noneFunctionalComponentMode&&this.transitionMode)throw new Error("Transition-group inside component is not supported. Please alter tag value or remove transition-group. Current tag value: ".concat(this.getTag()));var t={};E.forEach((function(n){t["on"+n]=x.call(e,n)})),L.forEach((function(n){t["on"+n]=w.bind(e,n)}));var n=Object.keys(this.$attrs).reduce((function(t,n){return t[Object(m["a"])(n)]=e.$attrs[n],t}),{}),i=Object.assign({},this.options,n,t,{onMove:function(t,n){return e.onDragMove(t,n)}});!("draggable"in i)&&(i.draggable=">*"),this._sortable=new g.a(this.rootContainer,i),this.computeIndexes()},beforeDestroy:function(){void 0!==this._sortable&&this._sortable.destroy()},computed:{rootContainer:function(){return this.transitionMode?this.$el.children[0]:this.$el},realList:function(){return this.list?this.list:this.value}},watch:{options:{handler:function(e){this.updateOptions(e)},deep:!0},$attrs:{handler:function(e){this.updateOptions(e)},deep:!0},realList:function(){this.computeIndexes()}},methods:{getIsFunctional:function(){var e=this._vnode.fnOptions;return e&&e.functional},getTag:function(){return this.tag||this.element},updateOptions:function(e){for(var t in e){var n=Object(m["a"])(t);-1===M.indexOf(n)&&this._sortable.option(n,e[t])}},getChildrenNodes:function(){if(this.noneFunctionalComponentMode)return this.$children[0].$slots.default;var e=this.$slots.default;return this.transitionMode?e[0].child.$slots.default:e},computeIndexes:function(){var e=this;this.$nextTick((function(){e.visibleIndexes=y(e.getChildrenNodes(),e.rootContainer.children,e.transitionMode,e.footerOffset)}))},getUnderlyingVm:function(e){var t=v(this.getChildrenNodes()||[],e);if(-1===t)return null;var n=this.realList[t];return{index:t,element:n}},getUnderlyingPotencialDraggableComponent:function(e){var t=e.__vue__;return t&&t.$options&&C(t.$options._componentTag)?t.$parent:!("realList"in t)&&1===t.$children.length&&"realList"in t.$children[0]?t.$children[0]:t},emitChanges:function(e){var t=this;this.$nextTick((function(){t.$emit("change",e)}))},alterList:function(e){if(this.list)e(this.list);else{var t=f(this.value);e(t),this.$emit("input",t)}},spliceList:function(){var e=arguments,t=function(t){return t.splice.apply(t,f(e))};this.alterList(t)},updatePosition:function(e,t){var n=function(n){return n.splice(t,0,n.splice(e,1)[0])};this.alterList(n)},getRelatedContextFromMoveEvent:function(e){var t=e.to,n=e.related,i=this.getUnderlyingPotencialDraggableComponent(t);if(!i)return{component:i};var o=i.realList,r={list:o,component:i};if(t!==n&&o&&i.getUnderlyingVm){var s=i.getUnderlyingVm(n);if(s)return Object.assign(s,r)}return r},getVmIndex:function(e){var t=this.visibleIndexes,n=t.length;return e>n-1?n:t[e]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(e){if(this.noTransitionOnDrag&&this.transitionMode){var t=this.getChildrenNodes();t[e].data=null;var n=this.getComponent();n.children=[],n.kept=void 0}},onDragStart:function(e){this.context=this.getUnderlyingVm(e.item),e.item._underlying_vm_=this.clone(this.context.element),A=e.item},onDragAdd:function(e){var t=e.item._underlying_vm_;if(void 0!==t){Object(m["d"])(e.item);var n=this.getVmIndex(e.newIndex);this.spliceList(n,0,t),this.computeIndexes();var i={element:t,newIndex:n};this.emitChanges({added:i})}},onDragRemove:function(e){if(Object(m["c"])(this.rootContainer,e.item,e.oldIndex),"clone"!==e.pullMode){var t=this.context.index;this.spliceList(t,1);var n={element:this.context.element,oldIndex:t};this.resetTransitionData(t),this.emitChanges({removed:n})}else Object(m["d"])(e.clone)},onDragUpdate:function(e){Object(m["d"])(e.item),Object(m["c"])(e.from,e.item,e.oldIndex);var t=this.context.index,n=this.getVmIndex(e.newIndex);this.updatePosition(t,n);var i={element:this.context.element,oldIndex:t,newIndex:n};this.emitChanges({moved:i})},updateProperty:function(e,t){e.hasOwnProperty(t)&&(e[t]+=this.headerOffset)},computeFutureIndex:function(e,t){if(!e.element)return 0;var n=f(t.to.children).filter((function(e){return"none"!==e.style["display"]})),i=n.indexOf(t.related),o=e.component.getVmIndex(i),r=-1!==n.indexOf(A);return r||!t.willInsertAfter?o:o+1},onDragMove:function(e,t){var n=this.move;if(!n||!this.realList)return!0;var i=this.getRelatedContextFromMoveEvent(e),o=this.context,r=this.computeFutureIndex(i,e);Object.assign(o,{futureIndex:r});var s=Object.assign({},e,{relatedContext:i,draggedContext:o});return n(s,t)},onDragEnd:function(){this.computeIndexes(),A=null}}};"undefined"!==typeof window&&"Vue"in window&&window.Vue.component("draggable",R);var $=R;t["default"]=$}})["default"]}))}).call(this,n("62e4")(e))},b87d:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form-item-wrapper",{attrs:{designer:e.designer,field:e.field,rules:e.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[n("el-radio-group",{ref:"fieldEditor",attrs:{disabled:e.field.options.disabled,size:e.field.options.size},on:{change:e.handleChangeEvent},model:{value:e.fieldModel,callback:function(t){e.fieldModel=t},expression:"fieldModel"}},[e.field.options.buttonStyle?e._l(e.field.options.optionItems,(function(t,i){return n("el-radio-button",{key:i,style:{display:e.field.options.displayStyle},attrs:{label:t.value,disabled:t.disabled,border:e.field.options.border}},[e._v(e._s(t.label))])})):e._l(e.field.options.optionItems,(function(t,i){return n("el-radio",{key:i,style:{display:e.field.options.displayStyle},attrs:{label:t.value,disabled:t.disabled,border:e.field.options.border}},[e._v(e._s(t.label))])}))],2)],1)},o=[],r=(n("a9e3"),n("9eeb")),s=n("c6e3"),a=n("79fa"),l=n("2d11"),c={name:"radio-widget",componentName:"FieldWidget",mixins:[s["a"],l["a"],a["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper:r["default"]},inject:["refList","formConfig","globalOptionData","globalModel"],data:function(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{},beforeCreate:function(){},created:function(){this.initOptionItems(),this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted:function(){this.handleOnMounted()},beforeDestroy:function(){this.unregisterFromRefList()},methods:{}},u=c,d=(n("13f0"),n("2877")),h=Object(d["a"])(u,i,o,!1,null,"ef35f5b6",null);t["default"]=h.exports},b8d7:function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-select-field",use:"icon-select-field-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-select-field"><defs><style type="text/css"></style></defs><path d="M374.784 649.514667a32 32 0 0 1 3.072 41.685333l-3.114667 3.584L225.28 843.946667a32 32 0 0 1-37.845333 5.504l-3.968-2.56-85.333334-64a32 32 0 0 1 34.432-53.76l3.968 2.56 63.146667 47.36 129.834667-129.621334a32 32 0 0 1 45.269333 0.042667zM906.154667 725.333333a32 32 0 0 1 4.309333 63.701334l-4.309333 0.298666h-448a32 32 0 0 1-4.352-63.744l4.352-0.256h448z m0.512-256a32 32 0 0 1 4.352 63.701334l-4.352 0.298666h-448a32 32 0 0 1-4.352-63.701333L458.666667 469.333333h448zM374.826667 137.557333a32 32 0 0 1 2.986666 41.685334l-3.114666 3.584L224.853333 332.032a32 32 0 0 1-37.888 5.418667l-3.925333-2.56-84.906667-64a32 32 0 0 1 34.517334-53.674667l3.968 2.56 62.72 47.274667 130.261333-129.578667a32 32 0 0 1 45.226667 0.085333z m531.328 75.818667a32 32 0 0 1 4.309333 63.701333l-4.309333 0.298667H459.349333a32 32 0 0 1-4.352-63.744l4.352-0.256h446.805334z" p-id="40341" /></symbol>'});s.a.add(a);t["default"]=a},b8e9:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("static-content-wrapper",{attrs:{designer:e.designer,field:e.field,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[n("div",{class:[e.designState?"slot-wrapper-design":"slot-wrapper-render"]},[e._t(e.field.options.name,null,{formModel:e.formModel}),e.designState?n("div",{staticClass:"slot-title"},[e._v(e._s(e.field.options.label))]):e._e()],2)])},o=[],r=(n("a9e3"),n("828b")),s=n("c6e3"),a=n("79fa"),l=n("2d11"),c={name:"slot-widget",componentName:"FieldWidget",mixins:[s["a"],l["a"],a["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{StaticContentWrapper:r["default"]},computed:{},beforeCreate:function(){},created:function(){this.registerToRefList(),this.initEventHandler(),this.handleOnCreated()},mounted:function(){this.handleOnMounted()},beforeDestroy:function(){this.unregisterFromRefList()},methods:{}},u=c,d=(n("f1ab"),n("2877")),h=Object(d["a"])(u,i,o,!1,null,"856e2df6",null);t["default"]=h.exports},b90a:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:"onCreated","label-width":"150px"}},[n("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:"",round:""},on:{click:function(t){return e.editEventHandler("onCreated",e.eventParams)}}},[e._v(" "+e._s(e.i18nt("designer.setting.addEventHandler")))])],1)},o=[],r=n("79fa"),s=n("7d6c"),a={name:"onCreated-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},data:function(){return{eventParams:[]}}},l=a,c=n("2877"),u=Object(c["a"])(l,i,o,!1,null,"20e467a8",null);t["default"]=u.exports},ba08:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form-item-wrapper",{attrs:{designer:e.designer,field:e.field,rules:e.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[n("el-date-picker",{ref:"fieldEditor",staticClass:"full-width-input",attrs:{type:e.field.options.type,disabled:e.field.options.disabled,readonly:e.field.options.readonly,size:e.field.options.size,clearable:e.field.options.clearable,editable:e.field.options.editable,format:e.field.options.format,"value-format":e.field.options.valueFormat,"start-placeholder":e.field.options.startPlaceholder||e.i18nt("render.hint.startDatePlaceholder"),"end-placeholder":e.field.options.endPlaceholder||e.i18nt("render.hint.endDatePlaceholder")},on:{focus:e.handleFocusCustomEvent,blur:e.handleBlurCustomEvent,change:e.handleChangeEvent},model:{value:e.fieldModel,callback:function(t){e.fieldModel=t},expression:"fieldModel"}})],1)},o=[],r=(n("a9e3"),n("9eeb")),s=n("c6e3"),a=n("79fa"),l=n("2d11"),c={name:"date-range-widget",componentName:"FieldWidget",mixins:[s["a"],l["a"],a["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper:r["default"]},inject:["refList","formConfig","globalOptionData","globalModel"],data:function(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{},beforeCreate:function(){},created:function(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted:function(){this.handleOnMounted()},beforeDestroy:function(){this.unregisterFromRefList()},methods:{}},u=c,d=(n("447a"),n("2877")),h=Object(d["a"])(u,i,o,!1,null,"76c3fdc8",null);t["default"]=h.exports},bae2:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.defaultValue")}},[n("el-color-picker",{on:{change:e.emitDefaultValueChange},model:{value:e.optionModel.defaultValue,callback:function(t){e.$set(e.optionModel,"defaultValue",t)},expression:"optionModel.defaultValue"}})],1)},o=[],r=n("79fa"),s=n("b2bf"),a={name:"color-defaultValue-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},l=a,c=n("2877"),u=Object(c["a"])(l,i,o,!1,null,"667e90e8",null);t["default"]=u.exports},baf1:function(e,t,n){},bb2f:function(e,t,n){var i=n("d039");e.exports=!i((function(){return Object.isExtensible(Object.preventExtensions({}))}))},bb60:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.multiple")}},[n("el-switch",{model:{value:e.optionModel.multiple,callback:function(t){e.$set(e.optionModel,"multiple",t)},expression:"optionModel.multiple"}})],1)},o=[],r=n("79fa"),s=n("b2bf"),a={name:"cascader-multiple-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},l=a,c=n("2877"),u=Object(c["a"])(l,i,o,!1,null,"115602ef",null);t["default"]=u.exports},bc16:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.buttonIcon")}},[n("el-input",{attrs:{type:"text"},model:{value:e.optionModel.icon,callback:function(t){e.$set(e.optionModel,"icon",t)},expression:"optionModel.icon"}})],1)},o=[],r=n("79fa"),s={name:"icon-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"4b90cd5a",null);t["default"]=c.exports},bc3a:function(e,t,n){e.exports=n("cee4")},bdcf:function(e,t,n){},c029:function(e,t,n){"use strict";n("d81d"),n("e260"),n("d3b7"),n("ddb0"),n("b0c0");var i=n("7899"),o={};i.keys().map((function(e){var t=i(e).default;o[t.name]=t})),t["a"]=o},c04e:function(e,t,n){var i=n("da84"),o=n("c65b"),r=n("861d"),s=n("d9b5"),a=n("dc4a"),l=n("485a"),c=n("b622"),u=i.TypeError,d=c("toPrimitive");e.exports=function(e,t){if(!r(e)||s(e))return e;var n,i=a(e,d);if(i){if(void 0===t&&(t="default"),n=o(i,e,t),!r(n)||s(n))return n;throw u("Can't convert object to primitive value")}return void 0===t&&(t="number"),l(e,t)}},c061:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.noLabelSetting?e._e():n("el-form-item",{attrs:{label:e.i18nt("designer.setting.label")}},[n("el-input",{attrs:{type:"text"},model:{value:e.optionModel.label,callback:function(t){e.$set(e.optionModel,"label",t)},expression:"optionModel.label"}})],1)},o=[],r=n("79fa"),s={name:"label-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},computed:{noLabelSetting:function(){return"static-text"===this.selectedWidget.type||"html-text"===this.selectedWidget.type}}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"5d9d81e5",null);t["default"]=c.exports},c077:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form-item-wrapper",{attrs:{designer:e.designer,field:e.field,rules:e.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[n("el-cascader",{ref:"fieldEditor",staticClass:"full-width-input",attrs:{options:e.field.options.optionItems,disabled:e.field.options.disabled,size:e.field.options.size,clearable:e.field.options.clearable,filterable:e.field.options.filterable,"show-all-levels":e.showFullPath,props:{checkStrictly:e.field.options.checkStrictly,multiple:e.field.options.multiple,expandTrigger:"hover"},placeholder:e.field.options.placeholder||e.i18nt("render.hint.selectPlaceholder")},on:{"visible-change":e.hideDropDownOnClick,"expand-change":e.hideDropDownOnClick,focus:e.handleFocusCustomEvent,blur:e.handleBlurCustomEvent,change:e.handleChangeEvent},model:{value:e.fieldModel,callback:function(t){e.fieldModel=t},expression:"fieldModel"}})],1)},o=[],r=(n("a9e3"),n("d3b7"),n("159b"),n("9eeb")),s=n("c6e3"),a=n("79fa"),l=n("2d11"),c={name:"cascader-widget",componentName:"FieldWidget",mixins:[s["a"],l["a"],a["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper:r["default"]},inject:["refList","formConfig","globalOptionData","globalModel"],data:function(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{showFullPath:function(){return void 0===this.field.options.showAllLevels||!!this.field.options.showAllLevels}},beforeCreate:function(){},created:function(){this.initOptionItems(),this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted:function(){this.handleOnMounted()},beforeDestroy:function(){this.unregisterFromRefList()},methods:{hideDropDownOnClick:function(){var e=this;setTimeout((function(){document.querySelectorAll(".el-cascader-panel .el-radio").forEach((function(t){t.onclick=function(){e.$refs.fieldEditor.dropDownVisible=!1}}))}),100)}}},u=c,d=(n("dbe8"),n("2877")),h=Object(d["a"])(u,i,o,!1,null,"9fb36e9a",null);t["default"]=h.exports},c1ac:function(e,t,n){"use strict";var i=n("ebb5"),o=n("b727").filter,r=n("1448"),s=i.aTypedArray,a=i.exportTypedArrayMethod;a("filter",(function(e){var t=o(s(this),e,arguments.length>1?arguments[1]:void 0);return r(this,t)}))},c345:function(e,t,n){"use strict";var i=n("c532"),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,r,s={};return e?(i.forEach(e.split("\n"),(function(e){if(r=e.indexOf(":"),t=i.trim(e.substr(0,r)).toLowerCase(),n=i.trim(e.substr(r+1)),t){if(s[t]&&o.indexOf(t)>=0)return;s[t]="set-cookie"===t?(s[t]?s[t]:[]).concat([n]):s[t]?s[t]+", "+n:n}})),s):s}},c391:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:"onFileRemove","label-width":"150px"}},[n("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:"",round:""},on:{click:function(t){return e.editEventHandler("onFileRemove",e.eventParams)}}},[e._v(" "+e._s(e.i18nt("designer.setting.addEventHandler")))])],1)},o=[],r=n("79fa"),s=n("7d6c"),a={name:"onFileRemove-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},data:function(){return{eventParams:["file","fileList"]}}},l=a,c=n("2877"),u=Object(c["a"])(l,i,o,!1,null,"21c42c04",null);t["default"]=u.exports},c3f1:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.responsive")}},[n("el-switch",{model:{value:e.optionModel.responsive,callback:function(t){e.$set(e.optionModel,"responsive",t)},expression:"optionModel.responsive"}})],1)},o=[],r=n("79fa"),s={name:"grid-col-responsive-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"1d360e4e",null);t["default"]=c.exports},c3f8:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:"onSubFormRowInsert","label-width":"150px"}},[n("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:"",round:""},on:{click:function(t){return e.editEventHandler("onSubFormRowInsert",e.eventParams)}}},[e._v(" "+e._s(e.i18nt("designer.setting.addEventHandler")))])],1)},o=[],r=n("79fa"),s=n("7d6c"),a={name:"onSubFormRowInsert-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},data:function(){return{eventParams:["subFormData","newRowId"]}}},l=a,c=n("2877"),u=Object(c["a"])(l,i,o,!1,null,"ae0fbd12",null);t["default"]=u.exports},c401:function(e,t,n){"use strict";var i=n("c532"),o=n("2444");e.exports=function(e,t,n){var r=this||o;return i.forEach(n,(function(n){e=n.call(r,e,t)})),e}},c430:function(e,t){e.exports=!1},c51e:function(e,t,n){},c532:function(e,t,n){"use strict";var i=n("1d2b"),o=Object.prototype.toString;function r(e){return"[object Array]"===o.call(e)}function s(e){return"undefined"===typeof e}function a(e){return null!==e&&!s(e)&&null!==e.constructor&&!s(e.constructor)&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function l(e){return"[object ArrayBuffer]"===o.call(e)}function c(e){return"undefined"!==typeof FormData&&e instanceof FormData}function u(e){var t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function d(e){return"string"===typeof e}function h(e){return"number"===typeof e}function f(e){return null!==e&&"object"===typeof e}function p(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function g(e){return"[object Date]"===o.call(e)}function m(e){return"[object File]"===o.call(e)}function b(e){return"[object Blob]"===o.call(e)}function v(e){return"[object Function]"===o.call(e)}function y(e){return f(e)&&v(e.pipe)}function w(e){return"undefined"!==typeof URLSearchParams&&e instanceof URLSearchParams}function x(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function C(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function _(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),r(e))for(var n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}function k(){var e={};function t(t,n){p(e[n])&&p(t)?e[n]=k(e[n],t):p(t)?e[n]=k({},t):r(t)?e[n]=t.slice():e[n]=t}for(var n=0,i=arguments.length;n<i;n++)_(arguments[n],t);return e}function S(e,t,n){return _(t,(function(t,o){e[o]=n&&"function"===typeof t?i(t,n):t})),e}function O(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}e.exports={isArray:r,isArrayBuffer:l,isBuffer:a,isFormData:c,isArrayBufferView:u,isString:d,isNumber:h,isObject:f,isPlainObject:p,isUndefined:s,isDate:g,isFile:m,isBlob:b,isFunction:v,isStream:y,isURLSearchParams:w,isStandardBrowserEnv:C,forEach:_,merge:k,extend:S,trim:x,stripBOM:O}},c607:function(e,t,n){var i=n("da84"),o=n("83ab"),r=n("fce3"),s=n("c6b6"),a=n("9bf2").f,l=n("69f3").get,c=RegExp.prototype,u=i.TypeError;o&&r&&a(c,"dotAll",{configurable:!0,get:function(){if(this!==c){if("RegExp"===s(this))return!!l(this).dotAll;throw u("Incompatible receiver, RegExp required")}}})},c60b:function(e,t,n){},c610:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.hasConfig("optionItems")?e._e():n("el-form-item",{attrs:{label:e.i18nt("designer.setting.defaultValue")}},[n("el-input",{attrs:{type:"text"},on:{change:e.emitDefaultValueChange},model:{value:e.optionModel.defaultValue,callback:function(t){e.$set(e.optionModel,"defaultValue",t)},expression:"optionModel.defaultValue"}})],1)},o=[],r=n("79fa"),s=n("b2bf"),a={name:"defaultValue-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},l=a,c=n("2877"),u=Object(c["a"])(l,i,o,!1,null,"14ff026e",null);t["default"]=u.exports},c635:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return"static-text"===e.selectedWidget.type?n("el-form-item",{attrs:{label:e.i18nt("designer.setting.textAlign")}},[n("el-radio-group",{staticClass:"radio-group-custom",model:{value:e.optionModel.textAlign,callback:function(t){e.$set(e.optionModel,"textAlign",t)},expression:"optionModel.textAlign"}},[n("el-radio-button",{attrs:{label:"left"}},[e._v(" "+e._s(e.i18nt("designer.setting.leftAlign")))]),n("el-radio-button",{attrs:{label:"center"}},[e._v(" "+e._s(e.i18nt("designer.setting.centerAlign")))]),n("el-radio-button",{attrs:{label:"right"}},[e._v(" "+e._s(e.i18nt("designer.setting.rightAlign")))])],1)],1):e._e()},o=[],r=n("79fa"),s={name:"textAlign-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=(n("e895"),n("2877")),c=Object(l["a"])(a,i,o,!1,null,"2a8305e8",null);t["default"]=c.exports},c65b:function(e,t){var n=Function.prototype.call;e.exports=n.bind?n.bind(n):function(){return n.apply(n,arguments)}},c67a:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:"onSubFormRowAdd","label-width":"150px"}},[n("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:"",round:""},on:{click:function(t){return e.editEventHandler("onSubFormRowAdd",e.eventParams)}}},[e._v(" "+e._s(e.i18nt("designer.setting.addEventHandler")))])],1)},o=[],r=n("79fa"),s=n("7d6c"),a={name:"onSubFormRowAdd-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},data:function(){return{eventParams:["subFormData","newRowId"]}}},l=a,c=n("2877"),u=Object(c["a"])(l,i,o,!1,null,"4e7e840d",null);t["default"]=u.exports},c6b6:function(e,t,n){var i=n("e330"),o=i({}.toString),r=i("".slice);e.exports=function(e){return r(o(e),8,-1)}},c6c1:function(e,t,n){},c6c4:function(e,t,n){},c6cd:function(e,t,n){var i=n("da84"),o=n("ce4e"),r="__core-js_shared__",s=i[r]||o(r,{});e.exports=s},c6d2:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.startPlaceholder")}},[n("el-input",{attrs:{type:"text"},model:{value:e.optionModel.startPlaceholder,callback:function(t){e.$set(e.optionModel,"startPlaceholder",t)},expression:"optionModel.startPlaceholder"}})],1)},o=[],r=n("79fa"),s={name:"startPlaceholder-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"10c0a37e",null);t["default"]=c.exports},c6e3:function(e,t,n){"use strict";n("d3b7"),n("159b"),n("99af");function i(e,t,n){this.$children.forEach((function(o){var r=o.$options.componentName;r===e?(o.$emit.apply(o,[t].concat(n)),i.apply(o,[e,t].concat([n]))):i.apply(o,[e,t].concat([n]))}))}t["a"]={methods:{dispatch:function(e,t,n){var i=this.$parent||this.$root,o=i.$options.componentName;while(i&&(!o||o!==e))i=i.$parent,i&&(o=i.$options.componentName);i&&i.$emit.apply(i,[t].concat(n))},broadcast:function(e,t,n){i.call(this,e,t,n)}}}},c833:function(e,t,n){"use strict";n("98f5")},c885:function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-custom-component",use:"icon-custom-component-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-custom-component"><defs><style type="text/css"></style></defs><path d="M811.008 335.872c-2.048-7.168-11.264-9.216-17.408-4.096L690.176 435.2c-8.192 8.192-20.48 8.192-28.672 0l-72.704-72.704c-8.192-8.192-8.192-20.48 0-28.672l104.448-104.448c5.12-5.12 3.072-14.336-4.096-17.408-17.408-4.096-35.84-7.168-54.272-7.168-108.544 0-195.584 94.208-183.296 204.8 2.048 17.408 6.144 32.768 12.288 48.128L225.28 697.344c-27.648 27.648-27.648 73.728 0 101.376 14.336 14.336 32.768 21.504 51.2 21.504s36.864-7.168 51.2-21.504l238.592-238.592c15.36 6.144 31.744 10.24 48.128 12.288 111.616 12.288 204.8-74.752 204.8-183.296 0-18.432-3.072-36.864-8.192-53.248z" p-id="68660" /></symbol>'});s.a.add(a);t["default"]=a},c8af:function(e,t,n){"use strict";var i=n("c532");e.exports=function(e,t){i.forEach(e,(function(n,i){i!==t&&i.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[i])}))}},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(i){"object"===typeof window&&(n=window)}e.exports=n},c8d2:function(e,t,n){var i=n("5e77").PROPER,o=n("d039"),r=n("5899"),s="
";e.exports=function(e){return o((function(){return!!r[e]()||s[e]()!==s||i&&r[e].name!==e}))}},c9d4:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("container-item-wrapper",{attrs:{widget:e.widget}},[n("div",{directives:[{name:"show",rawName:"v-show",value:!e.widget.options.hidden,expression:"!widget.options.hidden"}],key:e.widget.id,staticClass:"tab-container"},[n("el-tabs",{ref:e.widget.id,class:[e.customClass],attrs:{type:e.widget.displayType},model:{value:e.activeTabName,callback:function(t){e.activeTabName=t},expression:"activeTabName"}},e._l(e.visibleTabs,(function(t,i){return n("el-tab-pane",{key:i,attrs:{label:t.options.label,disabled:t.options.disabled,name:t.options.name}},[e._l(t.widgetList,(function(i,o){return["container"===i.category?[n(e.getComponentByContainer(i),{key:o,tag:"component",attrs:{widget:i,"parent-list":t.widgetList,"index-of-parent-list":o,"parent-widget":e.widget},scopedSlots:e._u([e._l(Object.keys(e.$scopedSlots),(function(t){return{key:t,fn:function(n){return[e._t(t,null,null,n)]}}}))],null,!0)})]:[n(i.type+"-widget",{key:o,tag:"component",attrs:{field:i,"parent-list":t.widgetList,"index-of-parent-list":o,"parent-widget":e.widget},scopedSlots:e._u([e._l(Object.keys(e.$scopedSlots),(function(t){return{key:t,fn:function(n){return[e._t(t,null,null,n)]}}}))],null,!0)})]]}))],2)})),1)],1)])},o=[],r=n("5530"),s=(n("4de4"),n("d3b7"),n("b0c0"),n("c6e3")),a=n("79fa"),l=n("d67f"),c=n("90c2"),u=n("34f0"),d=n("c029"),h={name:"tab-item",componentName:"ContainerItem",mixins:[s["a"],a["b"],l["a"],u["a"]],components:Object(r["a"])({ContainerItemWrapper:c["default"]},d["a"]),props:{widget:Object},inject:["refList","sfRefList","globalModel"],data:function(){return{activeTabName:""}},computed:{visibleTabs:function(){return this.widget.tabs.filter((function(e){return!e.options.hidden}))}},created:function(){this.initRefList()},mounted:function(){this.initActiveTab()},beforeDestroy:function(){this.unregisterFromRefList()},methods:{initActiveTab:function(){if("tab"===this.widget.type&&this.widget.tabs.length>0){var e=this.widget.tabs.filter((function(e){return!0===e.options.active}));e.length>0?this.activeTabName=e[0].options.name:this.activeTabName=this.widget.tabs[0].options.name}}}},f=h,p=n("2877"),g=Object(p["a"])(f,i,o,!1,null,"66f2f987",null);t["default"]=g.exports},ca00:function(e,t,n){"use strict";n.d(t,"o",(function(){return r})),n.d(t,"n",(function(){return s})),n.d(t,"m",(function(){return a})),n.d(t,"f",(function(){return l})),n.d(t,"d",(function(){return c})),n.d(t,"q",(function(){return u})),n.d(t,"e",(function(){return d})),n.d(t,"a",(function(){return h})),n.d(t,"k",(function(){return f})),n.d(t,"l",(function(){return p})),n.d(t,"p",(function(){return g})),n.d(t,"t",(function(){return m})),n.d(t,"s",(function(){return b})),n.d(t,"r",(function(){return v})),n.d(t,"u",(function(){return w})),n.d(t,"h",(function(){return x})),n.d(t,"g",(function(){return C})),n.d(t,"c",(function(){return _})),n.d(t,"j",(function(){return k})),n.d(t,"i",(function(){return S})),n.d(t,"b",(function(){return O}));n("ac1f"),n("00b4"),n("e9c4"),n("d3b7"),n("159b"),n("b64b"),n("b0c0"),n("841c"),n("1276");var i=n("b311"),o=n.n(i);function r(e){return null===e||void 0===e}function s(e){return null!==e&&void 0!==e}function a(e){return void 0===e||!e&&0!==e&&"0"!==e||!/[^\s]/.test(e)}var l=function(){return Math.floor(1e5*Math.random()+2e4*Math.random()+5e3*Math.random())},c=function(e){if(void 0!==e)return JSON.parse(JSON.stringify(e))},u=function(e,t){Object.keys(t).forEach((function(n){e[n]=t[n]}))},d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=new Function("DSV","VFR","return "+e);return i(t,n)},h=function(e){var t=window.onresize;"function"!=typeof window.onresize?window.onresize=e:window.onresize=function(){t(),e()}},f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=document.getElementsByTagName("head")[0],i=document.getElementById("vform-custom-css");i&&n.removeChild(i),t&&(i=document.getElementById("vform-custom-css-"+t),i&&n.removeChild(i));var o=document.createElement("style");o.type="text/css",o.rel="stylesheet",o.id=t?"vform-custom-css-"+t:"vform-custom-css";try{o.appendChild(document.createTextNode(e))}catch(r){o.styleSheet.cssText=e}n.appendChild(o)},p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=document.getElementsByTagName("body")[0],i=document.getElementById("v_form_global_functions");i&&n.removeChild(i),t&&(i=document.getElementById("v_form_global_functions-"+t),i&&n.removeChild(i));var o=document.createElement("script");o.id=t?"v_form_global_functions-"+t:"v_form_global_functions",o.type="text/javascript",o.innerHTML=e,n.appendChild(o)},g=function(e,t){var n=encodeURIComponent(e),i=document.getElementById(n);if(!i){var o=document.createElement("script");o.src=e,o.id=n,document.body.appendChild(o),o.onload=o.onreadystatechange=function(e,n){!n&&o.readyState&&"loaded"!==o.readyState&&"complete"!==o.readyState||(o=o.onload=o.onreadystatechange=null,n||t())}}};function m(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;e&&e.forEach((function(e){e.formItemFlag?t(e,n):"grid"===e.type?e.cols.forEach((function(n){m(n.widgetList,t,e)})):"table"===e.type?e.rows.forEach((function(n){n.cols.forEach((function(n){m(n.widgetList,t,e)}))})):"tab"===e.type?e.tabs.forEach((function(n){m(n.widgetList,t,e)})):("sub-form"===e.type||"container"===e.category)&&m(e.widgetList,t,e)}))}function b(e,t){e&&e.forEach((function(e){"container"===e.category&&t(e),"grid"===e.type?e.cols.forEach((function(e){b(e.widgetList,t)})):"table"===e.type?e.rows.forEach((function(e){e.cols.forEach((function(e){b(e.widgetList,t)}))})):"tab"===e.type?e.tabs.forEach((function(e){b(e.widgetList,t)})):("sub-form"===e.type||"container"===e.category)&&b(e.widgetList,t)}))}function v(e,t){e&&e.forEach((function(e){t(e),"grid"===e.type?e.cols.forEach((function(e){t(e),v(e.widgetList,t)})):"table"===e.type?e.rows.forEach((function(e){e.cols.forEach((function(e){t(e),v(e.widgetList,t)}))})):"tab"===e.type?e.tabs.forEach((function(e){v(e.widgetList,t)})):("sub-form"===e.type||"container"===e.category)&&v(e.widgetList,t)}))}function y(e,t){e.category?w(e,t):e.formItemFlag&&t(e)}function w(e,t){"grid"===e.type?e.cols.forEach((function(e){e.widgetList.forEach((function(e){y(e,t)}))})):"table"===e.type?e.rows.forEach((function(e){e.cols.forEach((function(e){e.widgetList.forEach((function(e){y(e,t)}))}))})):"tab"===e.type?e.tabs.forEach((function(e){e.widgetList.forEach((function(e){y(e,t)}))})):("sub-form"===e.type||"container"===e.category)&&e.widgetList.forEach((function(e){y(e,t)}))}function x(e){if(!e)return[];var t=[],n=function(e){t.push({type:e.type,name:e.options.name,field:e})};return m(e,n),t}function C(e){if(!e)return[];var t=[],n=function(e){t.push({type:e.type,name:e.options.name,container:e})};return b(e,n),t}function _(e,t,n,i,r){var s=new o.a(t.target,{text:function(){return e}});s.on("success",(function(){n.success(i),s.destroy()})),s.on("error",(function(){n.error(r),s.destroy()})),s.onClick(t)}function k(e){for(var t=window.location.search.substring(1),n=t.split("&"),i=0;i<n.length;i++){var o=n[i].split("=");if(o[0]==e)return o[1]}}function S(){return{modelName:"formData",refName:"vForm",rulesName:"rules",labelWidth:80,labelPosition:"left",size:"",labelAlign:"label-left-align",cssCode:"",customClass:[],functions:"",layoutType:"PC",onFormCreated:"",onFormMounted:"",onFormDataChange:""}}function O(){return{widgetList:[],formConfig:c(S())}}},ca84:function(e,t,n){var i=n("e330"),o=n("1a2d"),r=n("fc6a"),s=n("4d64").indexOf,a=n("d012"),l=i([].push);e.exports=function(e,t){var n,i=r(e),c=0,u=[];for(n in i)!o(a,n)&&o(i,n)&&l(u,n);while(t.length>c)o(i,n=t[c++])&&(~s(u,n)||l(u,n));return u}},ca91:function(e,t,n){"use strict";var i=n("ebb5"),o=n("d58f").left,r=i.aTypedArray,s=i.exportTypedArrayMethod;s("reduce",(function(e){var t=arguments.length;return o(r(this),e,t,t>1?arguments[1]:void 0)}))},caad:function(e,t,n){"use strict";var i=n("23e7"),o=n("4d64").includes,r=n("44d2");i({target:"Array",proto:!0},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),r("includes")},cab0:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form-item-wrapper",{attrs:{designer:e.designer,field:e.field,rules:e.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[n("el-time-picker",{ref:"fieldEditor",staticClass:"full-width-input",attrs:{"is-range":"",disabled:e.field.options.disabled,readonly:e.field.options.readonly,size:e.field.options.size,clearable:e.field.options.clearable,editable:e.field.options.editable,format:e.field.options.format,"value-format":"HH:mm:ss","start-placeholder":e.field.options.startPlaceholder||e.i18nt("render.hint.startTimePlaceholder"),"end-placeholder":e.field.options.endPlaceholder||e.i18nt("render.hint.endTimePlaceholder")},on:{focus:e.handleFocusCustomEvent,blur:e.handleBlurCustomEvent,change:e.handleChangeEvent},model:{value:e.fieldModel,callback:function(t){e.fieldModel=t},expression:"fieldModel"}})],1)},o=[],r=(n("a9e3"),n("9eeb")),s=n("c6e3"),a=n("79fa"),l=n("2d11"),c={name:"time-range-widget",componentName:"FieldWidget",mixins:[s["a"],l["a"],a["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper:r["default"]},inject:["refList","formConfig","globalOptionData","globalModel"],data:function(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{},beforeCreate:function(){},created:function(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted:function(){this.handleOnMounted()},beforeDestroy:function(){this.unregisterFromRefList()},methods:{}},u=c,d=(n("4120"),n("2877")),h=Object(d["a"])(u,i,o,!1,null,"68ea79e5",null);t["default"]=h.exports},cbd6:function(e,t,n){"use strict";n("8b39")},cbdd:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.vertical")}},[n("el-switch",{model:{value:e.optionModel.vertical,callback:function(t){e.$set(e.optionModel,"vertical",t)},expression:"optionModel.vertical"}})],1)},o=[],r=n("79fa"),s={name:"vertical-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"8e7b19b4",null);t["default"]=c.exports},cc12:function(e,t,n){var i=n("da84"),o=n("861d"),r=i.document,s=o(r)&&o(r.createElement);e.exports=function(e){return s?r.createElement(e):{}}},cc5f:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.displayType")}},[n("el-select",{model:{value:e.optionModel.type,callback:function(t){e.$set(e.optionModel,"type",t)},expression:"optionModel.type"}},[n("el-option",{attrs:{label:"datetime",value:"datetime"}}),n("el-option",{attrs:{label:"date",value:"date"}}),n("el-option",{attrs:{label:"dates",value:"dates"}}),n("el-option",{attrs:{label:"year",value:"year"}}),n("el-option",{attrs:{label:"month",value:"month"}}),n("el-option",{attrs:{label:"week",value:"week"}})],1)],1)},o=[],r=n("79fa"),s={name:"date-type-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"1eb20f34",null);t["default"]=c.exports},cc78:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.customClass")}},[n("el-select",{attrs:{multiple:"",filterable:"","allow-create":"","default-first-option":""},model:{value:e.optionModel.customClass,callback:function(t){e.$set(e.optionModel,"customClass",t)},expression:"optionModel.customClass"}},e._l(e.cssClassList,(function(e,t){return n("el-option",{key:t,attrs:{label:e,value:e}})})),1)],1)},o=[],r=n("79fa"),s=n("ca00"),a={name:"customClass-editor",componentName:"PropertyEditor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},data:function(){return{cssClassList:[]}},created:function(){var e=this;this.cssClassList=Object(s["d"])(this.designer.getCssClassList()),this.designer.handleEvent("form-css-updated",(function(t){e.cssClassList=t}))}},l=a,c=n("2877"),u=Object(c["a"])(l,i,o,!1,null,"18a2c67d",null);t["default"]=u.exports},cca6:function(e,t,n){var i=n("23e7"),o=n("60da");i({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},cd26:function(e,t,n){"use strict";var i=n("ebb5"),o=i.aTypedArray,r=i.exportTypedArrayMethod,s=Math.floor;r("reverse",(function(){var e,t=this,n=o(t).length,i=s(n/2),r=0;while(r<i)e=t[r],t[r++]=t[--n],t[n]=e;return t}))},cd36:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"container-wrapper",class:[e.customClass]},[e._t("default"),e.designer.selectedId!==e.widget.id||e.widget.internal?e._e():n("div",{staticClass:"container-action"},[n("i",{staticClass:"el-icon-back",attrs:{title:e.i18nt("designer.hint.selectParentWidget")},on:{click:function(t){return t.stopPropagation(),e.selectParentWidget(e.widget)}}}),e.parentList&&e.parentList.length>1?n("i",{staticClass:"el-icon-top",attrs:{title:e.i18nt("designer.hint.moveUpWidget")},on:{click:function(t){return t.stopPropagation(),e.moveUpWidget()}}}):e._e(),e.parentList&&e.parentList.length>1?n("i",{staticClass:"el-icon-bottom",attrs:{title:e.i18nt("designer.hint.moveDownWidget")},on:{click:function(t){return t.stopPropagation(),e.moveDownWidget()}}}):e._e(),"table"===e.widget.type?n("i",{staticClass:"iconfont icon-insertrow",attrs:{title:e.i18nt("designer.hint.insertRow")},on:{click:function(t){return t.stopPropagation(),e.appendTableRow(e.widget)}}}):e._e(),"table"===e.widget.type?n("i",{staticClass:"iconfont icon-insertcolumn",attrs:{title:e.i18nt("designer.hint.insertColumn")},on:{click:function(t){return t.stopPropagation(),e.appendTableCol(e.widget)}}}):e._e(),"grid"===e.widget.type||"table"===e.widget.type?n("i",{staticClass:"el-icon-copy-document",attrs:{title:e.i18nt("designer.hint.cloneWidget")},on:{click:function(t){return t.stopPropagation(),e.cloneContainer(e.widget)}}}):e._e(),n("i",{staticClass:"el-icon-delete",attrs:{title:e.i18nt("designer.hint.remove")},on:{click:function(t){return t.stopPropagation(),e.removeWidget.apply(null,arguments)}}})]),e.designer.selectedId!==e.widget.id||e.widget.internal?e._e():n("div",{staticClass:"drag-handler"},[n("i",{staticClass:"el-icon-rank",attrs:{title:e.i18nt("designer.hint.dragHandler")}}),n("i",[e._v(e._s(e.i18n2t("designer.widgetLabel."+e.widget.type,"extension.widgetLabel."+e.widget.type)))]),!0===e.widget.options.hidden?n("i",{staticClass:"iconfont icon-hide"}):e._e()])],2)},o=[],r=(n("a9e3"),n("a15b"),n("79fa")),s=n("61ca"),a={name:"container-wrapper",mixins:[r["b"],s["a"]],props:{widget:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object},computed:{customClass:function(){return this.widget.options.customClass?this.widget.options.customClass.join(" "):""}}},l=a,c=(n("d49a"),n("2877")),u=Object(c["a"])(l,i,o,!1,null,"b98cf8dc",null);t["default"]=u.exports},cde5:function(e,t,n){"use strict";n("a8a0")},cdf9:function(e,t,n){var i=n("825a"),o=n("861d"),r=n("f069");e.exports=function(e,t){if(i(e),o(t)&&t.constructor===e)return t;var n=r.f(e),s=n.resolve;return s(t),n.promise}},ce37:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.colPullTitle")}},[n("el-input-number",{staticStyle:{width:"100%"},attrs:{min:0,max:24},model:{value:e.optionModel.pull,callback:function(t){e.$set(e.optionModel,"pull",e._n(t))},expression:"optionModel.pull"}})],1)},o=[],r=n("79fa"),s={name:"grid-col-pull-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"5a74fe7e",null);t["default"]=c.exports},ce4e:function(e,t,n){var i=n("da84"),o=Object.defineProperty;e.exports=function(e,t){try{o(i,e,{value:t,configurable:!0,writable:!0})}catch(n){i[e]=t}return t}},ceaf:function(e,t,n){},cee4:function(e,t,n){"use strict";var i=n("c532"),o=n("1d2b"),r=n("0a06"),s=n("4a7b"),a=n("2444");function l(e){var t=new r(e),n=o(r.prototype.request,t);return i.extend(n,r.prototype,t),i.extend(n,t),n}var c=l(a);c.Axios=r,c.create=function(e){return l(s(c.defaults,e))},c.Cancel=n("7a77"),c.CancelToken=n("8df4"),c.isCancel=n("2e67"),c.all=function(e){return Promise.all(e)},c.spread=n("0df6"),c.isAxiosError=n("5f02"),e.exports=c,e.exports.default=c},ceec:function(e,t,n){"use strict";n("ee21")},cf32:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form-item-wrapper",{attrs:{designer:e.designer,field:e.field,rules:e.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[n("el-input-number",{ref:"fieldEditor",staticClass:"full-width-input",attrs:{disabled:e.field.options.disabled,size:e.field.options.size,"controls-position":e.field.options.controlsPosition,placeholder:e.field.options.placeholder,min:e.field.options.min,max:e.field.options.max,precision:e.field.options.precision,step:e.field.options.step},on:{focus:e.handleFocusCustomEvent,blur:e.handleBlurCustomEvent,change:e.handleChangeEvent},model:{value:e.fieldModel,callback:function(t){e.fieldModel=t},expression:"fieldModel"}})],1)},o=[],r=(n("a9e3"),n("9eeb")),s=n("c6e3"),a=n("79fa"),l=n("2d11"),c={name:"number-widget",componentName:"FieldWidget",mixins:[s["a"],l["a"],a["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper:r["default"]},inject:["refList","formConfig","globalOptionData","globalModel"],data:function(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{},beforeCreate:function(){},created:function(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted:function(){this.handleOnMounted()},beforeDestroy:function(){this.unregisterFromRefList()},methods:{}},u=c,d=(n("34c5"),n("2877")),h=Object(d["a"])(u,i,o,!1,null,"a039267e",null);t["default"]=h.exports},d012:function(e,t){e.exports={}},d039:function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},d066:function(e,t,n){var i=n("da84"),o=n("1626"),r=function(e){return o(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?r(i[e]):i[e]&&i[e][t]}},d119:function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-file-upload-field",use:"icon-file-upload-field-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-file-upload-field"><defs><style type="text/css"></style></defs><path d="M676.48 72.96l209.92 211.2 9.6 23.04v620.8l-32 32h-704l-32-32v-832l32-32h494.08l22.4 8.96zM640 320h192l-192-192v192zM192 128v768h640V384H608L576 352V128H192z m512 320H320v64h384V448zM320 576h384v64H320V576z m384 128H320v64h384v-64z" p-id="65361" /></symbol>'});s.a.add(a);t["default"]=a},d139:function(e,t,n){"use strict";var i=n("ebb5"),o=n("b727").find,r=i.aTypedArray,s=i.exportTypedArrayMethod;s("find",(function(e){return o(r(this),e,arguments.length>1?arguments[1]:void 0)}))},d1ba:function(e,t,n){"use strict";n("c6c1")},d1e7:function(e,t,n){"use strict";var i={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,r=o&&!i.call({1:2},1);t.f=r?function(e){var t=o(this,e);return!!t&&t.enumerable}:i},d28b:function(e,t,n){var i=n("746f");i("iterator")},d2bb:function(e,t,n){var i=n("e330"),o=n("825a"),r=n("3bbe");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{e=i(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),e(n,[]),t=n instanceof Array}catch(s){}return function(n,i){return o(n),r(i),t?e(n,i):n.__proto__=i,n}}():void 0)},d2d9:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-form-item",{attrs:{label:e.i18nt("designer.setting.customClass")}},[n("el-select",{attrs:{multiple:"",filterable:"","allow-create":"","default-first-option":""},model:{value:e.optionModel.customClass,callback:function(t){e.$set(e.optionModel,"customClass",t)},expression:"optionModel.customClass"}},e._l(e.cssClassList,(function(e,t){return n("el-option",{key:t,attrs:{label:e,value:e}})})),1)],1),n("el-form-item",{attrs:{label:e.i18nt("designer.setting.tabPaneSetting")}}),n("el-form-item",{staticClass:"panes-setting",attrs:{"label-width":"0"}},[n("draggable",e._b({attrs:{tag:"ul",list:e.selectedWidget.tabs}},"draggable",{group:"panesGroup",ghostClass:"ghost",handle:".drag-option"},!1),[e._l(e.selectedWidget.tabs,(function(t,i){return n("li",{key:i,staticClass:"col-item"},[n("el-checkbox",{staticStyle:{"margin-right":"8px"},attrs:{disabled:""},on:{change:function(n){return e.onTabPaneActiveChange(n,t)}},model:{value:t.options.active,callback:function(n){e.$set(t.options,"active",n)},expression:"tpItem.options.active"}},[e._v(e._s(e.i18nt("designer.setting.paneActive")))]),n("el-input",{staticStyle:{width:"155px"},attrs:{type:"text"},model:{value:t.options.label,callback:function(n){e.$set(t.options,"label",n)},expression:"tpItem.options.label"}}),n("i",{staticClass:"iconfont icon-drag drag-option"}),n("el-button",{staticClass:"col-delete-button",attrs:{circle:"",plain:"",size:"mini",type:"danger",icon:"el-icon-minus"},on:{click:function(t){return e.deleteTabPane(e.selectedWidget,i)}}})],1)})),n("div",[n("el-button",{attrs:{type:"text"},on:{click:function(t){return e.addTabPane(e.selectedWidget)}}},[e._v(e._s(e.i18nt("designer.setting.addTabPane")))])],1)],2)],1)],1)},o=[],r=n("79fa"),s=n("b76a"),a=n.n(s),l=n("ca00"),c={name:"tab-customClass-editor",componentName:"PropertyEditor",mixins:[r["b"]],components:{Draggable:a.a},props:{designer:Object,selectedWidget:Object,optionModel:Object},data:function(){return{cssClassList:[]}},created:function(){var e=this;this.cssClassList=Object(l["d"])(this.designer.getCssClassList()),this.designer.handleEvent("form-css-updated",(function(t){e.cssClassList=t}))},methods:{onTabPaneActiveChange:function(e,t){},addTabPane:function(e){this.designer.addTabPaneOfTabs(e),this.designer.emitHistoryChange()},deleteTabPane:function(e,t){1!==e.tabs.length?(this.designer.deleteTabPaneOfTabs(e,t),this.designer.emitHistoryChange()):this.$message.info(this.i18nt("designer.hint.lastPaneCannotBeDeleted"))}}},u=c,d=(n("fe05"),n("2877")),h=Object(d["a"])(u,i,o,!1,null,"6ddd24c1",null);t["default"]=h.exports},d2e4:function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-textarea-field",use:"icon-textarea-field-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-textarea-field"><defs><style type="text/css"></style></defs><path d="M896.4 173.1H128.9c-35.2 0-49 13.8-49 49v575.6c0 35.2 13.8 49 49 49h767.5c35.2 0 49-13.8 49-49V222.1c0-35.2-13.8-49-49-49z m0 592.6c0 16-12.8 32-32 32H160.9c-19.2 0-32-12.8-32-32V254.1c0-16 12.8-32 32-32h703.5c19.2 0 32 12.8 32 32v511.6z" p-id="12940" /><path d="M710.2 766.7h141.5c8.1 0 14.7-6.6 14.7-14.7V610.4c0-1.3-1.6-2-2.6-1.1L709.1 764.1c-1 1-0.3 2.6 1.1 2.6zM207.2 594.3h-13.5c-10 0-18.2-8.2-18.2-18.2V291.8c0-10.2 8.4-18.6 18.6-18.6h12.8c10.2 0 18.6 8.4 18.6 18.6v284.3c-0.1 10-8.3 18.2-18.3 18.2z" p-id="12941" /></symbol>'});s.a.add(a);t["default"]=a},d312:function(e,t,n){"use strict";n("7873")},d3b7:function(e,t,n){var i=n("00ee"),o=n("6eeb"),r=n("b041");i||o(Object.prototype,"toString",r,{unsafe:!0})},d3eb:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.showStops")}},[n("el-switch",{model:{value:e.optionModel.showStops,callback:function(t){e.$set(e.optionModel,"showStops",t)},expression:"optionModel.showStops"}})],1)},o=[],r=n("79fa"),s={name:"showStops-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"24139f8e",null);t["default"]=c.exports},d3fb:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAWdJREFUeNrsmjFuwjAUhp8jxJQBujQH4ABhYmaDU7Sdu/QIcIKKE0APwM7GEQgLU/dmo0N3178SI0Qx2KpQ8sJ7kpUojsn/2S/JrxeImhRa64lpe13fgLbJsWZVCu+Yzdq0lMlcZ0qpPnai8sAbI/GI1K6EXYG92XSYZfy3WYWuBdAc71kDoFquzo+MaLHx+6H1S9iYNCF6Hxf7w/n180c9otcBUdz+2xdxmOnVJ9Fyd74v4pIu2RdzAFcIgAAIgABUG62qBTz3/c57jGsK8JRKClVgC3I/E+cygPIUEgABEAABEIDGADjrQvlP0XzfkqFjQgMlld7DiXiEC4DF7F8qbMGvbPPbXBjWGMUqBIphoWO8zBzE+1bmQgMpZ8X4XuN4jDyFBEAABEAA7g8giRkDwAPhE9PNzNx/jFmWh5u4c2aO7WdWm0Izhvfv7JBC5SrAVrH9qwGVB6ZYmjqnDTRa8Y2IXwEGAI1dAiVnUcUMAAAAAElFTkSuQmCC"},d44e:function(e,t,n){var i=n("9bf2").f,o=n("1a2d"),r=n("b622"),s=r("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,s)&&i(e,s,{configurable:!0,value:t})}},d459:function(e,t,n){"use strict";n("112c")},d49a:function(e,t,n){"use strict";n("6ce9")},d4c3:function(e,t,n){var i=n("342f"),o=n("da84");e.exports=/ipad|iphone|ipod/i.test(i)&&void 0!==o.Pebble},d53b:function(e,t,n){"use strict";n("f6f1")},d58f:function(e,t,n){var i=n("da84"),o=n("59ed"),r=n("7b0b"),s=n("44ad"),a=n("07fa"),l=i.TypeError,c=function(e){return function(t,n,i,c){o(n);var u=r(t),d=s(u),h=a(u),f=e?h-1:0,p=e?-1:1;if(i<2)while(1){if(f in d){c=d[f],f+=p;break}if(f+=p,e?f<0:h<=f)throw l("Reduce of empty array with no initial value")}for(;e?f>=0:h>f;f+=p)f in d&&(c=n(c,d[f],f,u));return c}};e.exports={left:c(!1),right:c(!0)}},d5d6:function(e,t,n){"use strict";var i=n("ebb5"),o=n("b727").forEach,r=i.aTypedArray,s=i.exportTypedArrayMethod;s("forEach",(function(e){o(r(this),e,arguments.length>1?arguments[1]:void 0)}))},d67b:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form-item-wrapper",{attrs:{designer:e.designer,field:e.field,rules:e.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[n("el-input",{ref:"fieldEditor",staticClass:"hide-spin-button",attrs:{disabled:e.field.options.disabled,readonly:e.field.options.readonly,size:e.field.options.size,type:e.inputType,"show-password":e.field.options.showPassword,placeholder:e.field.options.placeholder,clearable:e.field.options.clearable,minlength:e.field.options.minLength,maxlength:e.field.options.maxLength,"show-word-limit":e.field.options.showWordLimit,"prefix-icon":e.field.options.prefixIcon,"suffix-icon":e.field.options.suffixIcon},on:{focus:e.handleFocusCustomEvent,blur:e.handleBlurCustomEvent,input:e.handleInputCustomEvent,change:e.handleChangeEvent},model:{value:e.fieldModel,callback:function(t){e.fieldModel=t},expression:"fieldModel"}},[e.field.options.appendButton?n("el-button",{class:e.field.options.buttonIcon,attrs:{slot:"append",disabled:e.field.options.disabled||e.field.options.appendButtonDisabled},nativeOn:{click:function(t){return e.emitAppendButtonClick.apply(null,arguments)}},slot:"append"}):e._e()],1)],1)},o=[],r=(n("a9e3"),n("9eeb")),s=n("c6e3"),a=n("79fa"),l=n("2d11"),c={name:"input-widget",componentName:"FieldWidget",mixins:[s["a"],l["a"],a["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper:r["default"]},inject:["refList","formConfig","globalOptionData","globalModel"],data:function(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{inputType:function(){return"number"===this.field.options.type?"text":this.field.options.type}},beforeCreate:function(){},created:function(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted:function(){this.handleOnMounted()},beforeDestroy:function(){this.unregisterFromRefList()},methods:{}},u=c,d=(n("cbd6"),n("2877")),h=Object(d["a"])(u,i,o,!1,null,"97099720",null);t["default"]=h.exports},d67f:function(e,t,n){"use strict";n("b0c0");t["a"]={methods:{initRefList:function(){null!==this.refList&&this.widget.options.name&&(this.refList[this.widget.options.name]=this)},getWidgetRef:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.refList[e];return!n&&t&&this.$message.error(this.i18nt("render.hint.refNotFound")+e),n},getFormRef:function(){return this.refList["v_form_ref"]},getComponentByContainer:function(e){return"grid"===e.type?"vf-grid-item":e.type+"-item"}}}},d6e6:function(e,t,n){},d741:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.withCredentials")}},[n("el-switch",{model:{value:e.optionModel.withCredentials,callback:function(t){e.$set(e.optionModel,"withCredentials",t)},expression:"optionModel.withCredentials"}})],1)},o=[],r=n("79fa"),s={name:"withCredentials-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"3d15893a",null);t["default"]=c.exports},d773:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:"onSubFormRowDelete","label-width":"150px"}},[n("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:"",round:""},on:{click:function(t){return e.editEventHandler("onSubFormRowDelete",e.eventParams)}}},[e._v(" "+e._s(e.i18nt("designer.setting.addEventHandler")))])],1)},o=[],r=n("79fa"),s=n("7d6c"),a={name:"onSubFormRowDelete-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},data:function(){return{eventParams:["subFormData","deletedDataRow"]}}},l=a,c=n("2877"),u=Object(c["a"])(l,i,o,!1,null,"1a13f95e",null);t["default"]=u.exports},d784:function(e,t,n){"use strict";n("ac1f");var i=n("e330"),o=n("6eeb"),r=n("9263"),s=n("d039"),a=n("b622"),l=n("9112"),c=a("species"),u=RegExp.prototype;e.exports=function(e,t,n,d){var h=a(e),f=!s((function(){var t={};return t[h]=function(){return 7},7!=""[e](t)})),p=f&&!s((function(){var t=!1,n=/a/;return"split"===e&&(n={},n.constructor={},n.constructor[c]=function(){return n},n.flags="",n[h]=/./[h]),n.exec=function(){return t=!0,null},n[h](""),!t}));if(!f||!p||n){var g=i(/./[h]),m=t(h,""[e],(function(e,t,n,o,s){var a=i(e),l=t.exec;return l===r||l===u.exec?f&&!s?{done:!0,value:g(t,n,o)}:{done:!0,value:a(n,t,o)}:{done:!1}}));o(String.prototype,e,m[0]),o(u,h,m[1])}d&&l(u[h],"sham",!0)}},d81d:function(e,t,n){"use strict";var i=n("23e7"),o=n("b727").map,r=n("1dde"),s=r("map");i({target:"Array",proto:!0,forced:!s},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},d86b:function(e,t,n){var i=n("d039");e.exports=i((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},d8ec:function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-grid",use:"icon-grid-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-grid"><defs><style type="text/css"></style></defs><path d="M819.3536 921.6h102.4v-102.4h-102.4v102.4z m102.4-204.8h-102.4a102.4 102.4 0 0 0-102.4 102.4v102.4a102.4 102.4 0 0 0 102.4 102.4h102.4a102.4 102.4 0 0 0 102.4-102.4v-102.4a102.4 102.4 0 0 0-102.4-102.4z m-460.8 204.8h102.4v-102.4h-102.4v102.4z m102.4-204.8h-102.4a102.4 102.4 0 0 0-102.4 102.4v102.4a102.4 102.4 0 0 0 102.4 102.4h102.4a102.4 102.4 0 0 0 102.4-102.4v-102.4a102.4 102.4 0 0 0-102.4-102.4z m-460.8 204.8h102.4v-102.4h-102.4v102.4z m102.4-204.8h-102.4a102.4 102.4 0 0 0-102.4 102.4v102.4a102.4 102.4 0 0 0 102.4 102.4h102.4a102.4 102.4 0 0 0 102.4-102.4v-102.4a102.4 102.4 0 0 0-102.4-102.4z m614.4-153.6h102.4V460.8h-102.4v102.4z m102.4-204.8h-102.4a102.4 102.4 0 0 0-102.4 102.4v102.4a102.4 102.4 0 0 0 102.4 102.4h102.4a102.4 102.4 0 0 0 102.4-102.4V460.8a102.4 102.4 0 0 0-102.4-102.4z m-460.8 204.8h102.4V460.8h-102.4v102.4z m102.4-204.8h-102.4a102.4 102.4 0 0 0-102.4 102.4v102.4a102.4 102.4 0 0 0 102.4 102.4h102.4a102.4 102.4 0 0 0 102.4-102.4V460.8a102.4 102.4 0 0 0-102.4-102.4z m-460.8 204.8h102.4V460.8h-102.4v102.4z m102.4-204.8h-102.4a102.4 102.4 0 0 0-102.4 102.4v102.4a102.4 102.4 0 0 0 102.4 102.4h102.4a102.4 102.4 0 0 0 102.4-102.4V460.8a102.4 102.4 0 0 0-102.4-102.4z m614.4-153.6h102.4V102.4h-102.4v102.4z m102.4-204.8h-102.4a102.4 102.4 0 0 0-102.4 102.4v102.4a102.4 102.4 0 0 0 102.4 102.4h102.4a102.4 102.4 0 0 0 102.4-102.4V102.4a102.4 102.4 0 0 0-102.4-102.4z m-460.8 204.8h102.4V102.4h-102.4v102.4z m102.4-204.8h-102.4a102.4 102.4 0 0 0-102.4 102.4v102.4a102.4 102.4 0 0 0 102.4 102.4h102.4a102.4 102.4 0 0 0 102.4-102.4V102.4a102.4 102.4 0 0 0-102.4-102.4z m-460.8 204.8h102.4V102.4h-102.4v102.4z m102.4-204.8h-102.4a102.4 102.4 0 0 0-102.4 102.4v102.4a102.4 102.4 0 0 0 102.4 102.4h102.4a102.4 102.4 0 0 0 102.4-102.4V102.4a102.4 102.4 0 0 0-102.4-102.4z" p-id="8473" /></symbol>'});s.a.add(a);t["default"]=a},d925:function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},d998:function(e,t,n){var i=n("342f");e.exports=/MSIE|Trident/.test(i)},d9b5:function(e,t,n){var i=n("da84"),o=n("d066"),r=n("1626"),s=n("3a9b"),a=n("fdbf"),l=i.Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=o("Symbol");return r(t)&&s(t.prototype,l(e))}},da4e:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form-item-wrapper",{attrs:{designer:e.designer,field:e.field,rules:e.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[n("el-date-picker",{ref:"fieldEditor",staticClass:"full-width-input",attrs:{type:e.field.options.type,readonly:e.field.options.readonly,disabled:e.field.options.disabled,size:e.field.options.size,clearable:e.field.options.clearable,editable:e.field.options.editable,format:e.field.options.format,"value-format":e.field.options.valueFormat,placeholder:e.field.options.placeholder||e.i18nt("render.hint.datePlaceholder")},on:{focus:e.handleFocusCustomEvent,blur:e.handleBlurCustomEvent,change:e.handleChangeEvent},model:{value:e.fieldModel,callback:function(t){e.fieldModel=t},expression:"fieldModel"}})],1)},o=[],r=(n("a9e3"),n("9eeb")),s=n("c6e3"),a=n("79fa"),l=n("2d11"),c={name:"date-widget",componentName:"FieldWidget",mixins:[s["a"],l["a"],a["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper:r["default"]},inject:["refList","formConfig","globalOptionData","globalModel"],data:function(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{},beforeCreate:function(){},created:function(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted:function(){this.handleOnMounted()},beforeDestroy:function(){this.unregisterFromRefList()},methods:{}},u=c,d=(n("38b9"),n("2877")),h=Object(d["a"])(u,i,o,!1,null,"ea728dba",null);t["default"]=h.exports},da84:function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||Function("return this")()}).call(this,n("c8ba"))},db13:function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-sub-form",use:"icon-sub-form-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-sub-form"><defs><style type="text/css"></style></defs><path d="M512 106.666667H112a5.333333 5.333333 0 0 0-5.333333 5.333333v800a5.333333 5.333333 0 0 0 5.333333 5.333333h800a5.333333 5.333333 0 0 0 5.333333-5.333333V112a5.333333 5.333333 0 0 0-5.333333-5.333333z m0 74.666666h325.333333a5.333333 5.333333 0 0 1 5.333334 5.333334v160a5.333333 5.333333 0 0 1-5.333334 5.333333H186.666667a5.333333 5.333333 0 0 1-5.333334-5.333333V186.666667a5.333333 5.333333 0 0 1 5.333334-5.333334z m85.333333 250.666667v405.333333a5.333333 5.333333 0 0 1-5.333333 5.333334H432a5.333333 5.333333 0 0 1-5.333333-5.333334V432a5.333333 5.333333 0 0 1 5.333333-5.333333h160a5.333333 5.333333 0 0 1 5.333333 5.333333z m-410.666666-5.333333h160a5.333333 5.333333 0 0 1 5.333333 5.333333v405.333333a5.333333 5.333333 0 0 1-5.333333 5.333334H186.666667a5.333333 5.333333 0 0 1-5.333334-5.333334V432a5.333333 5.333333 0 0 1 5.333334-5.333333z m485.333333 410.666666V432a5.333333 5.333333 0 0 1 5.333333-5.333333h160a5.333333 5.333333 0 0 1 5.333334 5.333333v405.333333a5.333333 5.333333 0 0 1-5.333334 5.333334h-160a5.333333 5.333333 0 0 1-5.333333-5.333334z" p-id="97355" /></symbol>'});s.a.add(a);t["default"]=a},dbb4:function(e,t,n){var i=n("23e7"),o=n("83ab"),r=n("56ef"),s=n("fc6a"),a=n("06cf"),l=n("8418");i({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(e){var t,n,i=s(e),o=a.f,c=r(i),u={},d=0;while(c.length>d)n=o(i,t=c[d++]),void 0!==n&&l(u,t,n);return u}})},dbe8:function(e,t,n){"use strict";n("9c31")},dc4a:function(e,t,n){var i=n("59ed");e.exports=function(e,t){var n=e[t];return null==n?void 0:i(n)}},dca8:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.appendButtonDisabled")}},[n("el-switch",{model:{value:e.optionModel.appendButtonDisabled,callback:function(t){e.$set(e.optionModel,"appendButtonDisabled",t)},expression:"optionModel.appendButtonDisabled"}})],1)},o=[],r=n("79fa"),s={name:"appendButtonDisabled-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"5ce987da",null);t["default"]=c.exports},ddb0:function(e,t,n){var i=n("da84"),o=n("fdbc"),r=n("785a"),s=n("e260"),a=n("9112"),l=n("b622"),c=l("iterator"),u=l("toStringTag"),d=s.values,h=function(e,t){if(e){if(e[c]!==d)try{a(e,c,d)}catch(i){e[c]=d}if(e[u]||a(e,u,t),o[t])for(var n in s)if(e[n]!==s[n])try{a(e,n,s[n])}catch(i){e[n]=s[n]}}};for(var f in o)h(i[f]&&i[f].prototype,f);h(r,"DOMTokenList")},de19:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("static-content-wrapper",{attrs:{designer:e.designer,field:e.field,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[n("el-divider",{ref:"fieldEditor",attrs:{direction:"horizontal","content-position":e.field.options.contentPosition}},[e._v(" "+e._s(e.field.options.label))])],1)},o=[],r=(n("a9e3"),n("828b")),s=n("c6e3"),a=n("79fa"),l=n("2d11"),c={name:"divider-widget",componentName:"FieldWidget",mixins:[s["a"],l["a"],a["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{StaticContentWrapper:r["default"]},computed:{},beforeCreate:function(){},created:function(){this.registerToRefList(),this.initEventHandler(),this.handleOnCreated()},mounted:function(){this.handleOnMounted()},beforeDestroy:function(){this.unregisterFromRefList()},methods:{}},u=c,d=(n("d1ba"),n("2877")),h=Object(d["a"])(u,i,o,!1,null,"0faf59b2",null);t["default"]=h.exports},df12:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-form-item",{attrs:{label:e.i18nt("designer.setting.htmlContent")}}),n("el-form-item",{attrs:{"label-width":"0"}},[n("el-input",{staticClass:"html-content-editor",attrs:{type:"textarea",rows:5},model:{value:e.optionModel.htmlContent,callback:function(t){e.$set(e.optionModel,"htmlContent",t)},expression:"optionModel.htmlContent"}})],1)],1)},o=[],r=n("79fa"),s={name:"htmlContent-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=(n("effc"),n("2877")),c=Object(l["a"])(a,i,o,!1,null,"a3fcc8ba",null);t["default"]=c.exports},df75:function(e,t,n){var i=n("ca84"),o=n("7839");e.exports=Object.keys||function(e){return i(e,o)}},df7c:function(e,t,n){(function(e){function n(e,t){for(var n=0,i=e.length-1;i>=0;i--){var o=e[i];"."===o?e.splice(i,1):".."===o?(e.splice(i,1),n++):n&&(e.splice(i,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function i(e){"string"!==typeof e&&(e+="");var t,n=0,i=-1,o=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!o){n=t+1;break}}else-1===i&&(o=!1,i=t+1);return-1===i?"":e.slice(n,i)}function o(e,t){if(e.filter)return e.filter(t);for(var n=[],i=0;i<e.length;i++)t(e[i],i,e)&&n.push(e[i]);return n}t.resolve=function(){for(var t="",i=!1,r=arguments.length-1;r>=-1&&!i;r--){var s=r>=0?arguments[r]:e.cwd();if("string"!==typeof s)throw new TypeError("Arguments to path.resolve must be strings");s&&(t=s+"/"+t,i="/"===s.charAt(0))}return t=n(o(t.split("/"),(function(e){return!!e})),!i).join("/"),(i?"/":"")+t||"."},t.normalize=function(e){var i=t.isAbsolute(e),s="/"===r(e,-1);return e=n(o(e.split("/"),(function(e){return!!e})),!i).join("/"),e||i||(e="."),e&&s&&(e+="/"),(i?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(o(e,(function(e,t){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,n){function i(e){for(var t=0;t<e.length;t++)if(""!==e[t])break;for(var n=e.length-1;n>=0;n--)if(""!==e[n])break;return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var o=i(e.split("/")),r=i(n.split("/")),s=Math.min(o.length,r.length),a=s,l=0;l<s;l++)if(o[l]!==r[l]){a=l;break}var c=[];for(l=a;l<o.length;l++)c.push("..");return c=c.concat(r.slice(a)),c.join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){if("string"!==typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,i=-1,o=!0,r=e.length-1;r>=1;--r)if(t=e.charCodeAt(r),47===t){if(!o){i=r;break}}else o=!1;return-1===i?n?"/":".":n&&1===i?"/":e.slice(0,i)},t.basename=function(e,t){var n=i(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){"string"!==typeof e&&(e+="");for(var t=-1,n=0,i=-1,o=!0,r=0,s=e.length-1;s>=0;--s){var a=e.charCodeAt(s);if(47!==a)-1===i&&(o=!1,i=s+1),46===a?-1===t?t=s:1!==r&&(r=1):-1!==t&&(r=-1);else if(!o){n=s+1;break}}return-1===t||-1===i||0===r||1===r&&t===i-1&&t===n+1?"":e.slice(t,i)};var r="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n("4362"))},df90:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.endPlaceholder")}},[n("el-input",{attrs:{type:"text"},model:{value:e.optionModel.endPlaceholder,callback:function(t){e.$set(e.optionModel,"endPlaceholder",t)},expression:"optionModel.endPlaceholder"}})],1)},o=[],r=n("79fa"),s={name:"endPlaceholder-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"373a69c1",null);t["default"]=c.exports},dfb9:function(e,t){e.exports=function(e,t){var n=0,i=t.length,o=new e(i);while(i>n)o[n]=t[n++];return o}},e017:function(e,t,n){(function(t){(function(t,n){e.exports=n()})(0,(function(){"use strict";var e=function(e){var t=e.id,n=e.viewBox,i=e.content;this.id=t,this.viewBox=n,this.content=i};e.prototype.stringify=function(){return this.content},e.prototype.toString=function(){return this.stringify()},e.prototype.destroy=function(){var e=this;["id","viewBox","content"].forEach((function(t){return delete e[t]}))};var n=function(e){var t=!!document.importNode,n=(new DOMParser).parseFromString(e,"image/svg+xml").documentElement;return t?document.importNode(n,!0):n};"undefined"!==typeof window?window:"undefined"!==typeof t||"undefined"!==typeof self&&self;function i(e,t){return t={exports:{}},e(t,t.exports),t.exports}var o=i((function(e,t){(function(t,n){e.exports=n()})(0,(function(){function e(e){var t=e&&"object"===typeof e;return t&&"[object RegExp]"!==Object.prototype.toString.call(e)&&"[object Date]"!==Object.prototype.toString.call(e)}function t(e){return Array.isArray(e)?[]:{}}function n(n,i){var o=i&&!0===i.clone;return o&&e(n)?r(t(n),n,i):n}function i(t,i,o){var s=t.slice();return i.forEach((function(i,a){"undefined"===typeof s[a]?s[a]=n(i,o):e(i)?s[a]=r(t[a],i,o):-1===t.indexOf(i)&&s.push(n(i,o))})),s}function o(t,i,o){var s={};return e(t)&&Object.keys(t).forEach((function(e){s[e]=n(t[e],o)})),Object.keys(i).forEach((function(a){e(i[a])&&t[a]?s[a]=r(t[a],i[a],o):s[a]=n(i[a],o)})),s}function r(e,t,r){var s=Array.isArray(t),a=r||{arrayMerge:i},l=a.arrayMerge||i;return s?Array.isArray(e)?l(e,t,r):n(t,r):o(e,t,r)}return r.all=function(e,t){if(!Array.isArray(e)||e.length<2)throw new Error("first argument should be an array with at least two elements");return e.reduce((function(e,n){return r(e,n,t)}))},r}))})),r=i((function(e,t){var n={svg:{name:"xmlns",uri:"http://www.w3.org/2000/svg"},xlink:{name:"xmlns:xlink",uri:"http://www.w3.org/1999/xlink"}};t.default=n,e.exports=t.default})),s=function(e){return Object.keys(e).map((function(t){var n=e[t].toString().replace(/"/g,""");return t+'="'+n+'"'})).join(" ")},a=r.svg,l=r.xlink,c={};c[a.name]=a.uri,c[l.name]=l.uri;var u=function(e,t){void 0===e&&(e="");var n=o(c,t||{}),i=s(n);return"<svg "+i+">"+e+"</svg>"},d=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var i={isMounted:{}};return i.isMounted.get=function(){return!!this.node},t.createFromExistingNode=function(e){return new t({id:e.getAttribute("id"),viewBox:e.getAttribute("viewBox"),content:e.outerHTML})},t.prototype.destroy=function(){this.isMounted&&this.unmount(),e.prototype.destroy.call(this)},t.prototype.mount=function(e){if(this.isMounted)return this.node;var t="string"===typeof e?document.querySelector(e):e,n=this.render();return this.node=n,t.appendChild(n),n},t.prototype.render=function(){var e=this.stringify();return n(u(e)).childNodes[0]},t.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},Object.defineProperties(t.prototype,i),t}(e);return d}))}).call(this,n("c8ba"))},e01a:function(e,t,n){"use strict";var i=n("23e7"),o=n("83ab"),r=n("da84"),s=n("e330"),a=n("1a2d"),l=n("1626"),c=n("3a9b"),u=n("577e"),d=n("9bf2").f,h=n("e893"),f=r.Symbol,p=f&&f.prototype;if(o&&l(f)&&(!("description"in p)||void 0!==f().description)){var g={},m=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:u(arguments[0]),t=c(p,this)?new f(e):void 0===e?f():f(e);return""===e&&(g[t]=!0),t};h(m,f),m.prototype=p,p.constructor=m;var b="Symbol(test)"==String(f("test")),v=s(p.toString),y=s(p.valueOf),w=/^Symbol\((.*)\)[^)]+$/,x=s("".replace),C=s("".slice);d(p,"description",{configurable:!0,get:function(){var e=y(this),t=v(e);if(a(g,e))return"";var n=b?C(t,7,-1):x(t,w,"$1");return""===n?void 0:n}}),i({global:!0,forced:!0},{Symbol:m})}},e072:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:"onValidate","label-width":"150px"}},[n("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:"",round:""},on:{click:function(t){return e.editEventHandler("onValidate",e.eventParams)}}},[e._v(" "+e._s(e.i18nt("designer.setting.addEventHandler")))])],1)},o=[],r=n("79fa"),s=n("7d6c"),a={name:"onValidate-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},data:function(){return{eventParams:["rule","value","callback"]}}},l=a,c=n("2877"),u=Object(c["a"])(l,i,o,!1,null,"4509c6b4",null);t["default"]=u.exports},e090:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.maxLength")}},[n("el-input",{staticClass:"hide-spin-button",staticStyle:{width:"100%"},attrs:{type:"number",min:"1"},nativeOn:{input:function(t){return e.inputNumberHandler.apply(null,arguments)}},model:{value:e.maxLength,callback:function(t){e.maxLength=t},expression:"maxLength"}})],1)},o=[],r=(n("a9e3"),n("79fa")),s=n("b2bf"),a={name:"maxLength-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},computed:{maxLength:{get:function(){return this.optionModel["maxLength"]},set:function(e){!e||isNaN(e)?this.optionModel.maxLength=null:this.optionModel.maxLength=Number(e)}}}},l=a,c=n("2877"),u=Object(c["a"])(l,i,o,!1,null,"361e66e1",null);t["default"]=u.exports},e0b7:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.defaultValue")}},[n("el-switch",{attrs:{"active-text":"true","inactive-text":"false"},on:{change:e.emitDefaultValueChange},model:{value:e.optionModel.defaultValue,callback:function(t){e.$set(e.optionModel,"defaultValue",t)},expression:"optionModel.defaultValue"}})],1)},o=[],r=n("79fa"),s=n("b2bf"),a={name:"switch-defaultValue-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},l=a,c=n("2877"),u=Object(c["a"])(l,i,o,!1,null,"98bc90ba",null);t["default"]=u.exports},e11b:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("container-wrapper",{attrs:{designer:e.designer,widget:e.widget,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList}},[n("el-row",{key:e.widget.id,staticClass:"grid-container",class:[e.selected?"selected":"",e.customClass],attrs:{gutter:e.widget.options.gutter},nativeOn:{click:function(t){return t.stopPropagation(),e.selectWidget(e.widget)}}},[e._l(e.widget.cols,(function(t,i){return[n("grid-col-widget",{key:t.id,attrs:{widget:t,designer:e.designer,"parent-list":e.widget.cols,"index-of-parent-list":i,"parent-widget":e.widget,"col-height":e.widget.options.colHeight}})]}))],2)],1)},o=[],r=(n("a9e3"),n("79fa")),s=n("f7729"),a=n("61ca"),l=n("cd36"),c=n("26a6"),u={name:"grid-widget",componentName:"ContainerWidget",mixins:[r["b"],a["a"],c["a"]],inject:["refList"],components:{ContainerWrapper:l["default"],GridColWidget:s["default"]},props:{widget:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object},computed:{selected:function(){return this.widget.id===this.designer.selectedId},customClass:function(){return this.widget.options.customClass||""}},watch:{},created:function(){this.initRefList()},mounted:function(){},methods:{}},d=u,h=(n("3c10"),n("2877")),f=Object(h["a"])(d,i,o,!1,null,"ec57838c",null);t["default"]=f.exports},e163:function(e,t,n){var i=n("da84"),o=n("1a2d"),r=n("1626"),s=n("7b0b"),a=n("f772"),l=n("e177"),c=a("IE_PROTO"),u=i.Object,d=u.prototype;e.exports=l?u.getPrototypeOf:function(e){var t=s(e);if(o(t,c))return t[c];var n=t.constructor;return r(n)&&t instanceof n?n.prototype:t instanceof u?d:null}},e177:function(e,t,n){var i=n("d039");e.exports=!i((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},e260:function(e,t,n){"use strict";var i=n("fc6a"),o=n("44d2"),r=n("3f8c"),s=n("69f3"),a=n("7dd0"),l="Array Iterator",c=s.set,u=s.getterFor(l);e.exports=a(Array,"Array",(function(e,t){c(this,{type:l,target:i(e),index:0,kind:t})}),(function(){var e=u(this),t=e.target,n=e.kind,i=e.index++;return!t||i>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:i,done:!1}:"values"==n?{value:t[i],done:!1}:{value:[i,t[i]],done:!1}}),"values"),r.Arguments=r.Array,o("keys"),o("values"),o("entries")},e2cc:function(e,t,n){var i=n("6eeb");e.exports=function(e,t,n){for(var o in t)i(e,o,t[o],n);return e}},e330:function(e,t){var n=Function.prototype,i=n.bind,o=n.call,r=i&&i.bind(o);e.exports=i?function(e){return e&&r(o,e)}:function(e){return e&&function(){return o.apply(e,arguments)}}},e3db:function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},e439:function(e,t,n){var i=n("23e7"),o=n("d039"),r=n("fc6a"),s=n("06cf").f,a=n("83ab"),l=o((function(){s(1)})),c=!a||l;i({target:"Object",stat:!0,forced:c,sham:!a},{getOwnPropertyDescriptor:function(e,t){return s(r(e),t)}})},e447:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-form-item",{attrs:{"label-width":"0"}},[n("el-divider",{staticClass:"custom-divider"},[e._v(e._s(e.i18nt("designer.setting.columnSetting")))])],1),n("el-form-item",{attrs:{label:e.i18nt("designer.setting.gutter")}},[n("el-input-number",{staticStyle:{width:"100%"},model:{value:e.optionModel.gutter,callback:function(t){e.$set(e.optionModel,"gutter",t)},expression:"optionModel.gutter"}})],1),n("el-form-item",{attrs:{label:e.i18nt("designer.setting.colsOfGrid")}}),n("el-form-item",{attrs:{"label-width":"0"}},[e._l(e.selectedWidget.cols,(function(t,i){return n("li",{key:i,staticClass:"col-item"},[n("span",{staticClass:"col-span-title"},[e._v(e._s(e.i18nt("designer.setting.colSpanTitle"))+e._s(i+1))]),n("el-input-number",{staticClass:"cell-span-input",attrs:{min:1,max:24},on:{change:function(n,o){return e.spanChanged(e.selectedWidget,t,i,n,o)}},model:{value:t.options.span,callback:function(n){e.$set(t.options,"span",e._n(n))},expression:"colItem.options.span"}}),n("el-button",{staticClass:"col-delete-button",attrs:{circle:"",plain:"",size:"mini",type:"danger",icon:"el-icon-minus"},on:{click:function(t){return e.deleteCol(e.selectedWidget,i)}}})],1)})),n("div",[n("el-button",{attrs:{type:"text"},on:{click:function(t){return e.addNewCol(e.selectedWidget)}}},[e._v(e._s(e.i18nt("designer.setting.addColumn")))])],1)],2)],1)},o=[],r=(n("d3b7"),n("159b"),n("79fa")),s={name:"gutter-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},methods:{spanChanged:function(e){var t=0;e.cols.forEach((function(e){t+=e.options.span})),t>24&&console.log("列栅格之和超出24"),this.designer.saveCurrentHistoryStep()},deleteCol:function(e,t){this.designer.deleteColOfGrid(e,t),this.designer.emitHistoryChange()},addNewCol:function(e){this.designer.addNewColOfGrid(e),this.designer.emitHistoryChange()}}},a=s,l=(n("2445"),n("2877")),c=Object(l["a"])(a,i,o,!1,null,"ebfa1f06",null);t["default"]=c.exports},e486:function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-node-tree",use:"icon-node-tree-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-node-tree"><defs><style type="text/css"></style></defs><path d="M332.48 500.864a25.6 25.6 0 1 0 0-51.2H192.384v-184.96a115.2 115.2 0 0 0 89.6-112.128c0-63.488-51.712-115.2-115.2-115.2s-115.2 51.712-115.2 115.2a115.2 115.2 0 0 0 89.6 112.128v696.192a25.6 25.6 0 1 0 51.2 0v-141.12c2.304 0.192 4.48 0.512 6.912 0.512h133.184a25.6 25.6 0 1 0 0-51.2H199.296c-3.456 0-5.504-0.448-6.08-0.256a29.184 29.184 0 0 1-0.896-8.576V500.8h140.16zM102.784 152.64c0-35.264 28.736-64 64-64s64 28.736 64 64-28.736 64-64 64-64-28.736-64-64zM921.216 360.064h-486.4c-28.224 0-51.2 22.976-51.2 51.2v128c0 28.224 22.976 51.2 51.2 51.2h486.4c28.224 0 51.2-22.976 51.2-51.2v-128c0-28.224-22.976-51.2-51.2-51.2z m-486.336 179.2v-128h486.4v128h-486.4zM921.216 679.616h-486.4c-28.224 0-51.2 22.976-51.2 51.2v128c0 28.224 22.976 51.2 51.2 51.2h486.4c28.224 0 51.2-22.976 51.2-51.2v-128c0-28.224-22.976-51.2-51.2-51.2z m-486.336 179.2v-128h486.4v128h-486.4z" p-id="4876" /></symbol>'});s.a.add(a);t["default"]=a},e538:function(e,t,n){var i=n("b622");t.f=i},e58c:function(e,t,n){"use strict";var i=n("2ba4"),o=n("fc6a"),r=n("5926"),s=n("07fa"),a=n("a640"),l=Math.min,c=[].lastIndexOf,u=!!c&&1/[1].lastIndexOf(1,-0)<0,d=a("lastIndexOf"),h=u||!d;e.exports=h?function(e){if(u)return i(c,this,arguments)||0;var t=o(this),n=s(t),a=n-1;for(arguments.length>1&&(a=l(a,r(arguments[1]))),a<0&&(a=n+a);a>=0;a--)if(a in t&&t[a]===e)return a||0;return-1}:c},e632:function(e,t,n){},e667:function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},e683:function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},e6cf:function(e,t,n){"use strict";var i,o,r,s,a=n("23e7"),l=n("c430"),c=n("da84"),u=n("d066"),d=n("c65b"),h=n("fea9"),f=n("6eeb"),p=n("e2cc"),g=n("d2bb"),m=n("d44e"),b=n("2626"),v=n("59ed"),y=n("1626"),w=n("861d"),x=n("19aa"),C=n("8925"),_=n("2266"),k=n("1c7e"),S=n("4840"),O=n("2cf4").set,E=n("b575"),L=n("cdf9"),M=n("44de"),A=n("f069"),T=n("e667"),R=n("69f3"),$=n("94ca"),F=n("b622"),j=n("6069"),I=n("605d"),q=n("2d00"),P=F("species"),N="Promise",D=R.getterFor(N),W=R.set,B=R.getterFor(N),H=h&&h.prototype,z=h,V=H,U=c.TypeError,K=c.document,G=c.process,Y=A.f,J=Y,X=!!(K&&K.createEvent&&c.dispatchEvent),Z=y(c.PromiseRejectionEvent),Q="unhandledrejection",ee="rejectionhandled",te=0,ne=1,ie=2,oe=1,re=2,se=!1,ae=$(N,(function(){var e=C(z),t=e!==String(z);if(!t&&66===q)return!0;if(l&&!V["finally"])return!0;if(q>=51&&/native code/.test(e))return!1;var n=new z((function(e){e(1)})),i=function(e){e((function(){}),(function(){}))},o=n.constructor={};return o[P]=i,se=n.then((function(){}))instanceof i,!se||!t&&j&&!Z})),le=ae||!k((function(e){z.all(e)["catch"]((function(){}))})),ce=function(e){var t;return!(!w(e)||!y(t=e.then))&&t},ue=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;E((function(){var i=e.value,o=e.state==ne,r=0;while(n.length>r){var s,a,l,c=n[r++],u=o?c.ok:c.fail,h=c.resolve,f=c.reject,p=c.domain;try{u?(o||(e.rejection===re&&pe(e),e.rejection=oe),!0===u?s=i:(p&&p.enter(),s=u(i),p&&(p.exit(),l=!0)),s===c.promise?f(U("Promise-chain cycle")):(a=ce(s))?d(a,s,h,f):h(s)):f(i)}catch(g){p&&!l&&p.exit(),f(g)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&he(e)}))}},de=function(e,t,n){var i,o;X?(i=K.createEvent("Event"),i.promise=t,i.reason=n,i.initEvent(e,!1,!0),c.dispatchEvent(i)):i={promise:t,reason:n},!Z&&(o=c["on"+e])?o(i):e===Q&&M("Unhandled promise rejection",n)},he=function(e){d(O,c,(function(){var t,n=e.facade,i=e.value,o=fe(e);if(o&&(t=T((function(){I?G.emit("unhandledRejection",i,n):de(Q,n,i)})),e.rejection=I||fe(e)?re:oe,t.error))throw t.value}))},fe=function(e){return e.rejection!==oe&&!e.parent},pe=function(e){d(O,c,(function(){var t=e.facade;I?G.emit("rejectionHandled",t):de(ee,t,e.value)}))},ge=function(e,t,n){return function(i){e(t,i,n)}},me=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=ie,ue(e,!0))},be=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw U("Promise can't be resolved itself");var i=ce(t);i?E((function(){var n={done:!1};try{d(i,t,ge(be,n,e),ge(me,n,e))}catch(o){me(n,o,e)}})):(e.value=t,e.state=ne,ue(e,!1))}catch(o){me({done:!1},o,e)}}};if(ae&&(z=function(e){x(this,V),v(e),d(i,this);var t=D(this);try{e(ge(be,t),ge(me,t))}catch(n){me(t,n)}},V=z.prototype,i=function(e){W(this,{type:N,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:te,value:void 0})},i.prototype=p(V,{then:function(e,t){var n=B(this),i=n.reactions,o=Y(S(this,z));return o.ok=!y(e)||e,o.fail=y(t)&&t,o.domain=I?G.domain:void 0,n.parent=!0,i[i.length]=o,n.state!=te&&ue(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new i,t=D(e);this.promise=e,this.resolve=ge(be,t),this.reject=ge(me,t)},A.f=Y=function(e){return e===z||e===r?new o(e):J(e)},!l&&y(h)&&H!==Object.prototype)){s=H.then,se||(f(H,"then",(function(e,t){var n=this;return new z((function(e,t){d(s,n,e,t)})).then(e,t)}),{unsafe:!0}),f(H,"catch",V["catch"],{unsafe:!0}));try{delete H.constructor}catch(ve){}g&&g(H,V)}a({global:!0,wrap:!0,forced:ae},{Promise:z}),m(z,N,!1,!0),b(N),r=u(N),a({target:N,stat:!0,forced:ae},{reject:function(e){var t=Y(this);return d(t.reject,void 0,e),t.promise}}),a({target:N,stat:!0,forced:l||ae},{resolve:function(e){return L(l&&this===r?z:this,e)}}),a({target:N,stat:!0,forced:le},{all:function(e){var t=this,n=Y(t),i=n.resolve,o=n.reject,r=T((function(){var n=v(t.resolve),r=[],s=0,a=1;_(e,(function(e){var l=s++,c=!1;a++,d(n,t,e).then((function(e){c||(c=!0,r[l]=e,--a||i(r))}),o)})),--a||i(r)}));return r.error&&o(r.value),n.promise},race:function(e){var t=this,n=Y(t),i=n.reject,o=T((function(){var o=v(t.resolve);_(e,(function(e){d(o,t,e).then(n.resolve,i)}))}));return o.error&&i(o.value),n.promise}})},e801:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.labelWidth")}},[n("el-input",{staticClass:"hide-spin-button",attrs:{type:"number",min:"0"},nativeOn:{input:function(t){return e.inputNumberHandler.apply(null,arguments)}},model:{value:e.optionModel.labelWidth,callback:function(t){e.$set(e.optionModel,"labelWidth",t)},expression:"optionModel.labelWidth"}})],1)},o=[],r=n("79fa"),s=n("b2bf"),a={name:"labelWidth-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},l=a,c=n("2877"),u=Object(c["a"])(l,i,o,!1,null,"39b735cc",null);t["default"]=u.exports},e85f:function(e,t,n){"use strict";n("2921")},e86f:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.multiple")}},[n("el-switch",{on:{change:e.onMultipleSelected},model:{value:e.optionModel.multiple,callback:function(t){e.$set(e.optionModel,"multiple",t)},expression:"optionModel.multiple"}})],1)},o=[],r=n("79fa"),s=n("b2bf"),a={name:"multiple-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},l=a,c=n("2877"),u=Object(c["a"])(l,i,o,!1,null,"30a47068",null);t["default"]=u.exports},e893:function(e,t,n){var i=n("1a2d"),o=n("56ef"),r=n("06cf"),s=n("9bf2");e.exports=function(e,t){for(var n=o(t),a=s.f,l=r.f,c=0;c<n.length;c++){var u=n[c];i(e,u)||a(e,u,l(t,u))}}},e894:function(e,t,n){"use strict";n("4ef4")},e895:function(e,t,n){"use strict";n("3cd5")},e8b5:function(e,t,n){var i=n("c6b6");e.exports=Array.isArray||function(e){return"Array"==i(e)}},e8d7:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.showAllLevels")}},[n("el-switch",{model:{value:e.optionModel.showAllLevels,callback:function(t){e.$set(e.optionModel,"showAllLevels",t)},expression:"optionModel.showAllLevels"}})],1)},o=[],r=n("79fa"),s={name:"showAllLevels-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"1f0743ee",null);t["default"]=c.exports},e905:function(e,t,n){},e91f:function(e,t,n){"use strict";var i=n("ebb5"),o=n("4d64").indexOf,r=i.aTypedArray,s=i.exportTypedArrayMethod;s("indexOf",(function(e){return o(r(this),e,arguments.length>1?arguments[1]:void 0)}))},e934:function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-section",use:"icon-section-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-section"><defs><style type="text/css"></style></defs><path d="M141.074286 906.496h741.851428c89.581714 0 134.582857-44.562286 134.582857-132.845714V250.331429c0-88.283429-45.001143-132.845714-134.582857-132.845715H141.074286C51.931429 117.504 6.491429 161.645714 6.491429 250.331429V773.668571c0 88.704 45.44 132.845714 134.582857 132.845715z m1.28-68.992c-42.861714 0-66.852571-22.710857-66.852572-67.291429V253.805714c0-44.580571 23.990857-67.291429 66.852572-67.291428h739.291428c42.422857 0 66.852571 22.710857 66.852572 67.291428V770.194286c0 44.580571-24.429714 67.291429-66.852572 67.291428z" p-id="11329" /></symbol>'});s.a.add(a);t["default"]=a},e95a:function(e,t,n){var i=n("b622"),o=n("3f8c"),r=i("iterator"),s=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||s[r]===e)}},e96c:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.activeText")}},[n("el-input",{model:{value:e.optionModel.activeText,callback:function(t){e.$set(e.optionModel,"activeText",t)},expression:"optionModel.activeText"}})],1)},o=[],r=n("79fa"),s={name:"activeText-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"2684f3ad",null);t["default"]=c.exports},e9c4:function(e,t,n){var i=n("23e7"),o=n("da84"),r=n("d066"),s=n("2ba4"),a=n("e330"),l=n("d039"),c=o.Array,u=r("JSON","stringify"),d=a(/./.exec),h=a("".charAt),f=a("".charCodeAt),p=a("".replace),g=a(1..toString),m=/[\uD800-\uDFFF]/g,b=/^[\uD800-\uDBFF]$/,v=/^[\uDC00-\uDFFF]$/,y=function(e,t,n){var i=h(n,t-1),o=h(n,t+1);return d(b,e)&&!d(v,o)||d(v,e)&&!d(b,i)?"\\u"+g(f(e,0),16):e},w=l((function(){return'"\\udf06\\ud834"'!==u("\udf06\ud834")||'"\\udead"'!==u("\udead")}));u&&i({target:"JSON",stat:!0,forced:w},{stringify:function(e,t,n){for(var i=0,o=arguments.length,r=c(o);i<o;i++)r[i]=arguments[i];var a=s(u,null,r);return"string"==typeof a?p(a,m,y):a}})},eac5:function(e,t,n){var i=n("861d"),o=Math.floor;e.exports=Number.isInteger||function(e){return!i(e)&&isFinite(e)&&o(e)===e}},eb5e:function(e,t,n){},ebb5:function(e,t,n){"use strict";var i,o,r,s=n("a981"),a=n("83ab"),l=n("da84"),c=n("1626"),u=n("861d"),d=n("1a2d"),h=n("f5df"),f=n("0d51"),p=n("9112"),g=n("6eeb"),m=n("9bf2").f,b=n("3a9b"),v=n("e163"),y=n("d2bb"),w=n("b622"),x=n("90e3"),C=l.Int8Array,_=C&&C.prototype,k=l.Uint8ClampedArray,S=k&&k.prototype,O=C&&v(C),E=_&&v(_),L=Object.prototype,M=l.TypeError,A=w("toStringTag"),T=x("TYPED_ARRAY_TAG"),R=x("TYPED_ARRAY_CONSTRUCTOR"),$=s&&!!y&&"Opera"!==h(l.opera),F=!1,j={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},I={BigInt64Array:8,BigUint64Array:8},q=function(e){if(!u(e))return!1;var t=h(e);return"DataView"===t||d(j,t)||d(I,t)},P=function(e){if(!u(e))return!1;var t=h(e);return d(j,t)||d(I,t)},N=function(e){if(P(e))return e;throw M("Target is not a typed array")},D=function(e){if(c(e)&&(!y||b(O,e)))return e;throw M(f(e)+" is not a typed array constructor")},W=function(e,t,n){if(a){if(n)for(var i in j){var o=l[i];if(o&&d(o.prototype,e))try{delete o.prototype[e]}catch(r){}}E[e]&&!n||g(E,e,n?t:$&&_[e]||t)}},B=function(e,t,n){var i,o;if(a){if(y){if(n)for(i in j)if(o=l[i],o&&d(o,e))try{delete o[e]}catch(r){}if(O[e]&&!n)return;try{return g(O,e,n?t:$&&O[e]||t)}catch(r){}}for(i in j)o=l[i],!o||o[e]&&!n||g(o,e,t)}};for(i in j)o=l[i],r=o&&o.prototype,r?p(r,R,o):$=!1;for(i in I)o=l[i],r=o&&o.prototype,r&&p(r,R,o);if((!$||!c(O)||O===Function.prototype)&&(O=function(){throw M("Incorrect invocation")},$))for(i in j)l[i]&&y(l[i],O);if((!$||!E||E===L)&&(E=O.prototype,$))for(i in j)l[i]&&y(l[i].prototype,E);if($&&v(S)!==E&&y(S,E),a&&!d(E,A))for(i in F=!0,m(E,A,{get:function(){return u(this)?this[T]:void 0}}),j)l[i]&&p(l[i],T,i);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:$,TYPED_ARRAY_CONSTRUCTOR:R,TYPED_ARRAY_TAG:F&&T,aTypedArray:N,aTypedArrayConstructor:D,exportTypedArrayMethod:W,exportTypedArrayStaticMethod:B,isView:q,isTypedArray:P,TypedArray:O,TypedArrayPrototype:E}},ecaa:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form-item-wrapper",{attrs:{designer:e.designer,field:e.field,rules:e.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[n("el-switch",{ref:"fieldEditor",attrs:{disabled:e.field.options.disabled,"active-text":e.field.options.activeText,"inactive-text":e.field.options.inactiveText,"active-color":e.field.options.activeColor,"inactive-color":e.field.options.inactiveColor,width:e.field.options.switchWidth},on:{change:e.handleChangeEvent},model:{value:e.fieldModel,callback:function(t){e.fieldModel=t},expression:"fieldModel"}})],1)},o=[],r=(n("a9e3"),n("9eeb")),s=n("c6e3"),a=n("79fa"),l=n("2d11"),c={name:"switch-widget",componentName:"FieldWidget",mixins:[s["a"],l["a"],a["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper:r["default"]},inject:["refList","formConfig","globalOptionData","globalModel"],data:function(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{},beforeCreate:function(){},created:function(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted:function(){this.handleOnMounted()},beforeDestroy:function(){this.unregisterFromRefList()},methods:{}},u=c,d=(n("7b2c"),n("2877")),h=Object(d["a"])(u,i,o,!1,null,"88bb0ad8",null);t["default"]=h.exports},ecf2:function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-slot-field",use:"icon-slot-field-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-slot-field"><defs><style type="text/css"></style></defs><path d="M475.937391 244.869565m18.031305 0l36.285217 0q18.031304 0 18.031304 18.031305l0 217.266087q0 18.031304-18.031304 18.031304l-36.285217 0q-18.031304 0-18.031305-18.031304l0-217.266087q0-18.031304 18.031305-18.031305Z" p-id="2852" /><path d="M305.41913 525.801739m18.031305 0l36.285217 0q18.031304 0 18.031305 18.031304l0 217.266087q0 18.031304-18.031305 18.031305l-36.285217 0q-18.031304 0-18.031305-18.031305l0-217.266087q0-18.031304 18.031305-18.031304Z" p-id="2853" /><path d="M646.233043 525.801739m18.031305 0l36.285217 0q18.031304 0 18.031305 18.031304l0 217.266087q0 18.031304-18.031305 18.031305l-36.285217 0q-18.031304 0-18.031305-18.031305l0-217.266087q0-18.031304 18.031305-18.031304Z" p-id="2854" /><path d="M827.436522 122.212174H196.563478a74.573913 74.573913 0 0 0-74.351304 74.351304v630.873044a74.573913 74.573913 0 0 0 74.351304 74.351304h630.873044a74.573913 74.573913 0 0 0 74.351304-74.351304V196.563478a74.573913 74.573913 0 0 0-74.351304-74.351304z m52.090435 705.224348a52.090435 52.090435 0 0 1-52.090435 52.090435H196.563478a52.090435 52.090435 0 0 1-52.090435-52.090435V196.563478a52.090435 52.090435 0 0 1 52.090435-52.090435h630.873044a52.090435 52.090435 0 0 1 52.090435 52.090435z" p-id="2855" /></symbol>'});s.a.add(a);t["default"]=a},ee21:function(e,t,n){},efdc:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("container-item-wrapper",{attrs:{widget:e.widget}},[n("div",{directives:[{name:"show",rawName:"v-show",value:!e.widget.options.hidden,expression:"!widget.options.hidden"}],key:e.widget.id,staticClass:"sub-form-container"},[n("el-row",{staticClass:"header-row"},[n("div",{staticClass:"action-header-column"},[n("span",{staticClass:"action-label"},[e._v(e._s(e.i18nt("render.hint.subFormAction")))]),n("el-button",{staticClass:"action-button",attrs:{disabled:e.actionDisabled,round:"",type:"primary",size:"mini",title:e.i18nt("render.hint.subFormAddActionHint")},on:{click:e.addSubFormRow}},[e._v(" "+e._s(e.i18nt("render.hint.subFormAddAction"))),n("i",{staticClass:"el-icon-plus el-icon-right"})])],1),e._l(e.widget.widgetList,(function(t){return[n("div",{key:t.id+"thc",staticClass:"field-header-column",class:[e.getLabelAlign(e.widget,t),t.options.required?"is-required":""],style:{width:t.options.columnWidth}},[t.options.labelIconClass?n("span",{staticClass:"custom-label"},["front"===t.options.labelIconPosition?[t.options.labelTooltip?[n("el-tooltip",{attrs:{content:t.options.labelTooltip,effect:"light"}},[n("i",{class:t.options.labelIconClass})]),e._v(e._s(t.options.label))]:[n("i",{class:t.options.labelIconClass}),e._v(e._s(t.options.label))]]:"rear"===t.options.labelIconPosition?[t.options.labelTooltip?[e._v(" "+e._s(t.options.label)),n("el-tooltip",{attrs:{content:t.options.labelTooltip,effect:"light"}},[n("i",{class:t.options.labelIconClass})])]:[e._v(" "+e._s(t.options.label)),n("i",{class:t.options.labelIconClass})]]:e._e()],2):[n("span",{attrs:{title:t.options.labelTooltip}},[e._v(e._s(t.options.label))])]],2)]}))],2),e._l(e.rowIdData,(function(t,i){return n("el-row",{key:t,staticClass:"sub-form-row"},[n("div",{staticClass:"sub-form-action-column hide-label"},[n("div",{staticClass:"action-button-column"},[n("el-button",{attrs:{disabled:e.actionDisabled,circle:"",type:"",icon:"el-icon-circle-plus-outline",title:e.i18nt("render.hint.insertSubFormRow")},on:{click:function(t){return e.insertSubFormRow(i)}}}),n("el-button",{attrs:{disabled:e.actionDisabled,circle:"",type:"",icon:"el-icon-delete",title:e.i18nt("render.hint.deleteSubFormRow")},on:{click:function(t){return e.deleteSubFormRow(i)}}}),e.widget.options.showRowNumber?n("span",{staticClass:"row-number-span"},[e._v("#"+e._s(i+1))]):e._e()],1)]),e._l(e.widget.widgetList,(function(o,r){return[n("div",{key:o.id+"tc"+t,staticClass:"sub-form-table-column hide-label",style:{width:o.options.columnWidth}},[n(o.type+"-widget",{key:e.fieldSchemaData[i][r].id,tag:"component",attrs:{field:e.fieldSchemaData[i][r],"parent-list":e.widget.widgetList,"index-of-parent-list":r,"parent-widget":e.widget,"sub-form-row-id":t,"sub-form-row-index":i,"sub-form-col-index":r}})],1)]}))],2)}))],2)])},o=[],r=n("5530"),s=(n("b0c0"),n("a434"),n("d3b7"),n("159b"),n("c6e3")),a=n("79fa"),l=n("ca00"),c=n("d67f"),u=n("90c2"),d=n("34f0"),h=n("c029"),f={name:"sub-form-item",componentName:"ContainerItem",mixins:[s["a"],a["b"],c["a"],d["a"]],components:Object(r["a"])({ContainerItemWrapper:u["default"]},h["a"]),props:{widget:Object},inject:["refList","sfRefList","globalModel"],data:function(){return{rowIdData:[],fieldSchemaData:[],actionDisabled:!1}},created:function(){this.initRefList(),this.registerSubFormToRefList(),this.initRowIdData(!0),this.initFieldSchemaData(),this.initEventHandler()},mounted:function(){this.handleSubFormFirstRowAdd()},beforeDestroy:function(){this.unregisterFromRefList()},methods:{getLabelAlign:function(e,t){return t.options.labelAlign||e.options.labelAlign},registerSubFormToRefList:function(){"sub-form"===this.widget.type&&(this.sfRefList[this.widget.options.name]=this)},initRowIdData:function(e){var t=this;if("sub-form"===this.widget.type){this.rowIdData.splice(0,this.rowIdData.length);var n=this.formModel[this.widget.options.name];n&&n.length>0&&(n.forEach((function(){t.rowIdData.push("id"+Object(l["f"])())})),e&&setTimeout((function(){t.handleSubFormRowChange(n)}),800))}},addToRowIdData:function(){this.rowIdData.push("id"+Object(l["f"])())},insertToRowIdData:function(e){this.rowIdData.splice(e,0,"id"+Object(l["f"])())},deleteFromRowIdData:function(e){this.rowIdData.splice(e,1)},getRowIdData:function(){return this.rowIdData},getWidgetRefOfSubForm:function(e,t){var n=e+"@row"+this.rowIdData[t];return this.getWidgetRef(n)},initFieldSchemaData:function(){var e=this;if("sub-form"===this.widget.type){var t=this.rowIdData.length;if(this.fieldSchemaData.splice(0,this.fieldSchemaData.length),t>0)for(var n=function(t){var n=[];e.widget.widgetList.forEach((function(t){n.push(e.cloneFieldSchema(t))})),e.fieldSchemaData.push(n)},i=0;i<t;i++)n(i)}},addToFieldSchemaData:function(e){var t=this,n=[];this.widget.widgetList.forEach((function(e){n.push(t.cloneFieldSchema(e))})),void 0===e?this.fieldSchemaData.push(n):this.fieldSchemaData.splice(e,0,n)},deleteFromFieldSchemaData:function(e){this.fieldSchemaData.splice(e,1)},cloneFieldSchema:function(e){var t=Object(l["d"])(e);return t.id=e.type+Object(l["f"])(),t},initEventHandler:function(){var e=this;"sub-form"===this.widget.type&&this.$on("setFormData",(function(t){e.initRowIdData(!1),e.initFieldSchemaData();var n=t[e.widget.options.name]||[];setTimeout((function(){e.handleSubFormRowChange(n)}),800)}))},handleSubFormFirstRowAdd:function(){if("sub-form"===this.widget.type&&this.widget.options.showBlankRow&&1===this.rowIdData.length){var e=this.formModel[this.widget.options.name]||[];this.handleSubFormRowAdd(e,this.rowIdData[0]),this.handleSubFormRowChange(e)}},addSubFormRow:function(){var e={};this.widget.widgetList.forEach((function(t){t.formItemFlag&&(e[t.options.name]=t.options.defaultValue)}));var t=this.formModel[this.widget.options.name]||[];t.push(e),this.addToRowIdData(),this.addToFieldSchemaData(),this.handleSubFormRowAdd(t,this.rowIdData[t.length-1]),this.handleSubFormRowChange(t)},insertSubFormRow:function(e){var t={};this.widget.widgetList.forEach((function(e){e.formItemFlag&&(t[e.options.name]=e.options.defaultValue)}));var n=this.formModel[this.widget.options.name]||[];n.splice(e,0,t),this.insertToRowIdData(e),this.addToFieldSchemaData(e),this.handleSubFormRowInsert(n,this.rowIdData[e]),this.handleSubFormRowChange(n)},deleteSubFormRow:function(e){var t=this;this.$confirm(this.i18nt("render.hint.deleteSubFormRow")+"?",this.i18nt("render.hint.prompt"),{confirmButtonText:this.i18nt("render.hint.confirm"),cancelButtonText:this.i18nt("render.hint.cancel")}).then((function(){var n=t.formModel[t.widget.options.name]||[],i=Object(l["d"])(n[e]);n.splice(e,1),t.deleteFromRowIdData(e),t.deleteFromFieldSchemaData(e),t.handleSubFormRowDelete(n,i),t.handleSubFormRowChange(n)})).catch((function(){}))},handleSubFormRowChange:function(e){if(this.widget.options.onSubFormRowChange){var t=new Function("subFormData",this.widget.options.onSubFormRowChange);t.call(this,e)}},handleSubFormRowAdd:function(e,t){if(this.widget.options.onSubFormRowAdd){var n=new Function("subFormData","newRowId",this.widget.options.onSubFormRowAdd);n.call(this,e,t)}},handleSubFormRowInsert:function(e,t){if(this.widget.options.onSubFormRowInsert){var n=new Function("subFormData","newRowId",this.widget.options.onSubFormRowInsert);n.call(this,e,t)}},handleSubFormRowDelete:function(e,t){if(this.widget.options.onSubFormRowDelete){var n=new Function("subFormData","deletedDataRow",this.widget.options.onSubFormRowDelete);n.call(this,e,t)}}}},p=f,g=(n("d459"),n("2877")),m=Object(g["a"])(p,i,o,!1,null,"7dbaba43",null);t["default"]=m.exports},effc:function(e,t,n){"use strict";n("3559")},f069:function(e,t,n){"use strict";var i=n("59ed"),o=function(e){var t,n;this.promise=new e((function(e,i){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=i})),this.resolve=i(t),this.reject=i(n)};e.exports.f=function(e){return new o(e)}},f0c7:function(e,t,n){},f0d9:function(e,t,n){"use strict";t.__esModule=!0,t.default={el:{colorpicker:{confirm:"确定",clear:"清空"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!"},upload:{deleteTip:"按 delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"},empty:{description:"暂无数据"}}}},f14c:function(e,t,n){(function(e){ace.define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var i=e("../lib/oop"),o=e("./text_highlight_rules").TextHighlightRules,r=function(){this.$rules={start:[{token:"comment.doc.tag",regex:"@[\\w\\d_]+"},r.getTagRule(),{defaultToken:"comment.doc",caseInsensitive:!0}]}};i.inherits(r,o),r.getTagRule=function(e){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},r.getStartRule=function(e){return{token:"comment.doc",regex:"\\/\\*(?=\\*)",next:e}},r.getEndRule=function(e){return{token:"comment.doc",regex:"\\*\\/",next:e}},t.DocCommentHighlightRules=r})),ace.define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/doc_comment_highlight_rules","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";function i(){var e=l.replace("\\d","\\d\\-"),t={onMatch:function(e,t,n){var i="/"==e.charAt(1)?2:1;return 1==i?(t!=this.nextState?n.unshift(this.next,this.nextState,0):n.unshift(this.next),n[2]++):2==i&&t==this.nextState&&(n[1]--,(!n[1]||n[1]<0)&&(n.shift(),n.shift())),[{type:"meta.tag.punctuation."+(1==i?"":"end-")+"tag-open.xml",value:e.slice(0,i)},{type:"meta.tag.tag-name.xml",value:e.substr(i)}]},regex:"</?"+e,next:"jsxAttributes",nextState:"jsx"};this.$rules.start.unshift(t);var n={regex:"{",token:"paren.quasi.start",push:"start"};this.$rules.jsx=[n,t,{include:"reference"},{defaultToken:"string"}],this.$rules.jsxAttributes=[{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",onMatch:function(e,t,n){return t==n[0]&&n.shift(),2==e.length&&(n[0]==this.nextState&&n[1]--,(!n[1]||n[1]<0)&&n.splice(0,2)),this.next=n[0]||"start",[{type:this.token,value:e}]},nextState:"jsx"},n,o("jsxAttributes"),{token:"entity.other.attribute-name.xml",regex:e},{token:"keyword.operator.attribute-equals.xml",regex:"="},{token:"text.tag-whitespace.xml",regex:"\\s+"},{token:"string.attribute-value.xml",regex:"'",stateName:"jsx_attr_q",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',stateName:"jsx_attr_qq",push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},t],this.$rules.reference=[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}]}function o(e){return[{token:"comment",regex:/\/\*/,next:[s.getTagRule(),{token:"comment",regex:"\\*\\/",next:e||"pop"},{defaultToken:"comment",caseInsensitive:!0}]},{token:"comment",regex:"\\/\\/",next:[s.getTagRule(),{token:"comment",regex:"$|^",next:e||"pop"},{defaultToken:"comment",caseInsensitive:!0}]}]}var r=e("../lib/oop"),s=e("./doc_comment_highlight_rules").DocCommentHighlightRules,a=e("./text_highlight_rules").TextHighlightRules,l="[a-zA-Z\\$_¡-][a-zA-Z\\d\\$_¡-]*",c=function(e){var t=this.createKeywordMapper({"variable.language":"Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|Namespace|QName|XML|XMLList|ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|SyntaxError|TypeError|URIError|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|isNaN|parseFloat|parseInt|JSON|Math|this|arguments|prototype|window|document",keyword:"const|yield|import|get|set|async|await|break|case|catch|continue|default|delete|do|else|finally|for|function|if|in|of|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|__parent__|__count__|escape|unescape|with|__proto__|class|enum|extends|super|export|implements|private|public|interface|package|protected|static","storage.type":"const|let|var|function","constant.language":"null|Infinity|NaN|undefined","support.function":"alert","constant.language.boolean":"true|false"},"identifier"),n="case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void",r="\\\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|u{[0-9a-fA-F]{1,6}}|[0-2][0-7]{0,2}|3[0-7][0-7]?|[4-7][0-7]?|.)";this.$rules={no_regex:[s.getStartRule("doc-start"),o("no_regex"),{token:"string",regex:"'(?=.)",next:"qstring"},{token:"string",regex:'"(?=.)',next:"qqstring"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:["storage.type","punctuation.operator","support.function","punctuation.operator","entity.name.function","text","keyword.operator"],regex:"("+l+")(\\.)(prototype)(\\.)("+l+")(\\s*)(=)",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+l+")(\\.)("+l+")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+l+")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+l+")(\\.)("+l+")(\\s*)(=)(\\s*)(function)(\\s+)(\\w+)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","entity.name.function","text","paren.lparen"],regex:"(function)(\\s+)("+l+")(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","punctuation.operator","text","storage.type","text","paren.lparen"],regex:"("+l+")(\\s*)(:)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["text","text","storage.type","text","paren.lparen"],regex:"(:)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:"keyword",regex:"from(?=\\s*('|\"))"},{token:"keyword",regex:"(?:"+n+")\\b",next:"start"},{token:["support.constant"],regex:/that\b/},{token:["storage.type","punctuation.operator","support.function.firebug"],regex:/(console)(\.)(warn|info|log|error|time|trace|timeEnd|assert)\b/},{token:t,regex:l},{token:"punctuation.operator",regex:/[.](?![.])/,next:"property"},{token:"storage.type",regex:/=>/,next:"start"},{token:"keyword.operator",regex:/--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,next:"start"},{token:"punctuation.operator",regex:/[?:,;.]/,next:"start"},{token:"paren.lparen",regex:/[\[({]/,next:"start"},{token:"paren.rparen",regex:/[\])}]/},{token:"comment",regex:/^#!.*$/}],property:[{token:"text",regex:"\\s+"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+l+")(\\.)("+l+")(\\s*)(=)(\\s*)(function)(?:(\\s+)(\\w+))?(\\s*)(\\()",next:"function_arguments"},{token:"punctuation.operator",regex:/[.](?![.])/},{token:"support.function",regex:/(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:op|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\b(?=\()/},{token:"support.function.dom",regex:/(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName|ClassName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/},{token:"support.constant",regex:/(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/},{token:"identifier",regex:l},{regex:"",token:"empty",next:"no_regex"}],start:[s.getStartRule("doc-start"),o("start"),{token:"string.regexp",regex:"\\/",next:"regex"},{token:"text",regex:"\\s+|^$",next:"start"},{token:"empty",regex:"",next:"no_regex"}],regex:[{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"string.regexp",regex:"/[sxngimy]*",next:"no_regex"},{token:"invalid",regex:/\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/},{token:"constant.language.escape",regex:/\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/},{token:"constant.language.delimiter",regex:/\|/},{token:"constant.language.escape",regex:/\[\^?/,next:"regex_character_class"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp"}],regex_character_class:[{token:"regexp.charclass.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"constant.language.escape",regex:"]",next:"regex"},{token:"constant.language.escape",regex:"-"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp.charachterclass"}],function_arguments:[{token:"variable.parameter",regex:l},{token:"punctuation.operator",regex:"[, ]+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],qqstring:[{token:"constant.language.escape",regex:r},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:r},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}]},e&&e.noES6||(this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(e,t,n){if(this.next="{"==e?this.nextState:"","{"==e&&n.length)n.unshift("start",t);else if("}"==e&&n.length&&(n.shift(),this.next=n.shift(),-1!=this.next.indexOf("string")||-1!=this.next.indexOf("jsx")))return"paren.quasi.end";return"{"==e?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.quasi.start",regex:/`/,push:[{token:"constant.language.escape",regex:r},{token:"paren.quasi.start",regex:/\${/,push:"start"},{token:"string.quasi.end",regex:/`/,next:"pop"},{defaultToken:"string.quasi"}]}),(!e||0!=e.jsx)&&i.call(this)),this.embedRules(s,"doc-",[s.getEndRule("no_regex")]),this.normalizeRules()};r.inherits(c,a),t.JavaScriptHighlightRules=c})),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var i=e("../range").Range,o=function(){};(function(){this.checkOutdent=function(e,t){return!!/^\s+$/.test(e)&&/^\s*\}/.test(t)},this.autoOutdent=function(e,t){var n=e.getLine(t),o=n.match(/^(\s*\})/);if(!o)return 0;var r=o[1].length,s=e.findMatchingBracket({row:t,column:r});if(!s||s.row==t)return 0;var a=this.$getIndent(e.getLine(s.row));e.replace(new i(t,0,t,r-1),a)},this.$getIndent=function(e){return e.match(/^\s*/)[0]}}).call(o.prototype),t.MatchingBraceOutdent=o})),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],(function(e,t,n){"use strict";var i=e("../../lib/oop"),o=e("../../range").Range,r=e("./fold_mode").FoldMode,s=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};i.inherits(s,r),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var i=e.getLine(n);if(this.singleLineBlockCommentRe.test(i)&&!this.startRegionRe.test(i)&&!this.tripleStarBlockCommentRe.test(i))return"";var o=this._getFoldWidgetBase(e,t,n);return!o&&this.startRegionRe.test(i)?"start":o},this.getFoldWidgetRange=function(e,t,n,i){var o=e.getLine(n);if(this.startRegionRe.test(o))return this.getCommentRegionBlock(e,o,n);var r=o.match(this.foldingStartMarker);if(r){var s=r.index;if(r[1])return this.openingBracketBlock(e,r[1],n,s);var a=e.getCommentFoldRange(n,s+r[0].length,1);return a&&!a.isMultiLine()&&(i?a=this.getSectionRange(e,n):"all"!=t&&(a=null)),a}if("markbegin"!==t){r=o.match(this.foldingStopMarker);if(r){s=r.index+r[0].length;return r[1]?this.closingBracketBlock(e,r[1],n,s):e.getCommentFoldRange(n,s,-1)}}},this.getSectionRange=function(e,t){var n=e.getLine(t),i=n.search(/\S/),r=t,s=n.length;t+=1;var a=t,l=e.getLength();while(++t<l){n=e.getLine(t);var c=n.search(/\S/);if(-1!==c){if(i>c)break;var u=this.getFoldWidgetRange(e,"all",t);if(u){if(u.start.row<=r)break;if(u.isMultiLine())t=u.end.row;else if(i==c)break}a=t}}return new o(r,s,a,e.getLine(a).length)},this.getCommentRegionBlock=function(e,t,n){var i=t.search(/\s*$/),r=e.getLength(),s=n,a=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,l=1;while(++n<r){t=e.getLine(n);var c=a.exec(t);if(c&&(c[1]?l--:l++,!l))break}var u=n;if(u>s)return new o(s,i,u,t.length)}}.call(s.prototype)})),ace.define("ace/mode/javascript",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/javascript_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle"],(function(e,t,n){"use strict";var i=e("../lib/oop"),o=e("./text").Mode,r=e("./javascript_highlight_rules").JavaScriptHighlightRules,s=e("./matching_brace_outdent").MatchingBraceOutdent,a=e("../worker/worker_client").WorkerClient,l=e("./behaviour/cstyle").CstyleBehaviour,c=e("./folding/cstyle").FoldMode,u=function(){this.HighlightRules=r,this.$outdent=new s,this.$behaviour=new l,this.foldingRules=new c};i.inherits(u,o),function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.$quotes={'"':'"',"'":"'","`":"`"},this.getNextLineIndent=function(e,t,n){var i=this.$getIndent(t),o=this.getTokenizer().getLineTokens(t,e),r=o.tokens,s=o.state;if(r.length&&"comment"==r[r.length-1].type)return i;if("start"==e||"no_regex"==e){var a=t.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/);a&&(i+=n)}else if("doc-start"==e){if("start"==s||"no_regex"==s)return"";a=t.match(/^\s*(\/?)\*/);a&&(a[1]&&(i+=" "),i+="* ")}return i},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)},this.createWorker=function(e){var t=new a(["ace"],"ace/mode/javascript_worker","JavaScriptWorker");return t.attachToDocument(e.getDocument()),t.on("annotate",(function(t){e.setAnnotations(t.data)})),t.on("terminate",(function(){e.clearAnnotations()})),t},this.$id="ace/mode/javascript",this.snippetFileId="ace/snippets/javascript"}.call(u.prototype),t.Mode=u})),function(){ace.require(["ace/mode/javascript"],(function(t){e&&(e.exports=t)}))}()}).call(this,n("62e4")(e))},f183:function(e,t,n){var i=n("23e7"),o=n("e330"),r=n("d012"),s=n("861d"),a=n("1a2d"),l=n("9bf2").f,c=n("241c"),u=n("057f"),d=n("4fad"),h=n("90e3"),f=n("bb2f"),p=!1,g=h("meta"),m=0,b=function(e){l(e,g,{value:{objectID:"O"+m++,weakData:{}}})},v=function(e,t){if(!s(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,g)){if(!d(e))return"F";if(!t)return"E";b(e)}return e[g].objectID},y=function(e,t){if(!a(e,g)){if(!d(e))return!0;if(!t)return!1;b(e)}return e[g].weakData},w=function(e){return f&&p&&d(e)&&!a(e,g)&&b(e),e},x=function(){C.enable=function(){},p=!0;var e=c.f,t=o([].splice),n={};n[g]=1,e(n).length&&(c.f=function(n){for(var i=e(n),o=0,r=i.length;o<r;o++)if(i[o]===g){t(i,o,1);break}return i},i({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:u.f}))},C=e.exports={enable:x,fastKey:v,getWeakData:y,onFreeze:w};r[g]=!0},f1ab:function(e,t,n){"use strict";n("4eff")},f250:function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-rate-field",use:"icon-rate-field-usage",viewBox:"0 0 1069 1024",content:'<symbol class="icon" viewBox="0 0 1069 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-rate-field"><defs><style type="text/css"></style></defs><path d="M633.73 378.02l9.498 18.688 20.78 2.798 206.616 27.332a11.465 11.465 0 0 1 6.61 19.473L729.966 593.665l-14.893 14.893 3.8 20.683 37.847 204.89a11.465 11.465 0 0 1-16.481 12.296l-185.55-94.58-18.687-9.493-18.487 9.992-183.24 99.35a11.465 11.465 0 0 1-16.784-11.867l32.543-205.796 3.297-20.786-15.192-14.492-151.033-143.484a11.465 11.465 0 0 1 6.1-19.64L399 402.998l20.786-3.296 9.092-18.98 89.713-188.078a11.465 11.465 0 0 1 20.569-0.263l94.568 185.635zM496.647 85.52L374.89 340.501l-279.126 44.26a34.395 34.395 0 0 0-18.303 58.908l204.873 194.663-44.169 279.115a34.395 34.395 0 0 0 50.366 35.616l248.4-134.679L788.776 946.66a34.395 34.395 0 0 0 49.437-36.894l-51.306-277.854 199.731-199.909a34.395 34.395 0 0 0-19.828-58.408l-280.118-37.032L558.33 84.713a34.395 34.395 0 0 0-61.682 0.802z" p-id="49627" /></symbol>'});s.a.add(a);t["default"]=a},f2db:function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-alert",use:"icon-alert-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-alert"><defs><style type="text/css"></style></defs><path d="M512 85.162667a319.573333 319.573333 0 0 1 319.829333 309.333333l0.170667 10.666667v174.805333l58.88 134.656a53.290667 53.290667 0 0 1-48.853333 74.709333L640 789.418667a128 128 0 0 1-255.786667 7.509333L384 789.290667l-201.6 0.042666a53.333333 53.333333 0 0 1-48.938667-74.581333L192 580.010667V405.162667c0-177.28 143.018667-320 320-320zM576 789.333333l-128 0.128a64 64 0 0 0 127.701333 6.144l0.256-6.272zM512 149.162667c-141.653333 0-256 114.090667-256 256v188.16L198.656 725.333333h627.072L768 593.365333V405.717333l-0.170667-9.6A255.488 255.488 0 0 0 512 149.162667z m384 202.837333h85.333333a32 32 0 0 1 4.352 63.701333L981.333333 416h-85.333333a32 32 0 0 1-4.352-63.701333L896 352z m-853.333333 0h85.333333a32 32 0 0 1 4.352 63.701333L128 416H42.666667a32 32 0 0 1-4.352-63.701333L42.666667 352z m921.6-243.2a32 32 0 0 1-2.816 41.685333l-3.584 3.114667-85.333334 64a32 32 0 0 1-41.984-48.085333l3.584-3.114667 85.333334-64a32 32 0 0 1 44.8 6.4zM104.533333 102.4l85.333334 64a32 32 0 1 1-38.4 51.2l-85.333334-64a32 32 0 1 1 38.4-51.2z" p-id="6432" /></symbol>'});s.a.add(a);t["default"]=a},f319:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.labelTooltip")}},[n("el-input",{attrs:{type:"text"},model:{value:e.optionModel.labelTooltip,callback:function(t){e.$set(e.optionModel,"labelTooltip",t)},expression:"optionModel.labelTooltip"}})],1)},o=[],r=n("79fa"),s={name:"labelTooltip-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"4bb85541",null);t["default"]=c.exports},f355:function(e,t,n){},f36a:function(e,t,n){var i=n("e330");e.exports=i([].slice)},f388:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-form-item",{directives:[{name:"show",rawName:"v-show",value:!!e.isSubFormChildWidget(),expression:"!!isSubFormChildWidget()"}],attrs:{label:e.i18nt("designer.setting.widgetColumnWidth")}},[n("el-input",{attrs:{type:"text"},model:{value:e.optionModel.columnWidth,callback:function(t){e.$set(e.optionModel,"columnWidth",t)},expression:"optionModel.columnWidth"}})],1)],1)},o=[],r=n("79fa"),s={name:"columnWidth-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},inject:["isSubFormChildWidget"]},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"5f410a01",null);t["default"]=c.exports},f4a6:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:"onFocus","label-width":"150px"}},[n("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:"",round:""},on:{click:function(t){return e.editEventHandler("onFocus",e.eventParams)}}},[e._v(" "+e._s(e.i18nt("designer.setting.addEventHandler")))])],1)},o=[],r=n("79fa"),s=n("7d6c"),a={name:"onFocus-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},data:function(){return{eventParams:["event"]}}},l=a,c=n("2877"),u=Object(c["a"])(l,i,o,!1,null,"ccd01010",null);t["default"]=u.exports},f4c1:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form-item-wrapper",{attrs:{designer:e.designer,field:e.field,rules:e.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[n("vue-editor",{ref:"fieldEditor",attrs:{"editor-toolbar":e.customToolbar,disabled:e.field.options.disabled,placeholder:e.field.options.placeholder},on:{"text-change":e.handleRichEditorChangeEvent,focus:e.handleRichEditorFocusEvent,blur:e.handleRichEditorBlurEvent},model:{value:e.fieldModel,callback:function(t){e.fieldModel=t},expression:"fieldModel"}})],1)},o=[],r=(n("a9e3"),n("9eeb")),s=n("5873"),a=n("c6e3"),l=n("79fa"),c=n("ca00"),u=n("2d11"),d={name:"rich-editor-widget",componentName:"FieldWidget",mixins:[a["a"],u["a"],l["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper:r["default"],VueEditor:s["a"]},inject:["refList","formConfig","globalOptionData","globalModel"],data:function(){return{oldFieldValue:null,fieldModel:null,rules:[],customToolbar:[],valueChangedFlag:!1}},computed:{},beforeCreate:function(){},created:function(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted:function(){this.handleOnMounted()},beforeDestroy:function(){this.unregisterFromRefList()},methods:{handleRichEditorChangeEvent:function(){this.valueChangedFlag=!0,this.syncUpdateFormModel(this.fieldModel)},handleRichEditorFocusEvent:function(){this.oldFieldValue=Object(c["d"])(this.fieldModel)},handleRichEditorBlurEvent:function(){this.valueChangedFlag&&(this.emitFieldDataChange(this.fieldModel,this.oldFieldValue),this.valueChangedFlag=!1)}}},h=d,f=(n("f8e7"),n("2877")),p=Object(f["a"])(h,i,o,!1,null,"29731672",null);t["default"]=p.exports},f582:function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-checkbox-field",use:"icon-checkbox-field-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-checkbox-field"><defs><style type="text/css"></style></defs><path d="M897.940444 896.76927c6.258541-6.27696 10.256598-14.833847 10.256598-24.530696L908.197042 147.672294c0-9.118682-3.998057-18.235316-10.256598-24.533766l0 0c-6.27696-6.257517-14.815427-9.695826-24.511253-9.695826l0 0-723.784474 0 0 0c-9.68764 0-18.235316 3.437286-24.503067 9.695826l0 0c-6.26775 6.297426-9.686616 15.414061-9.686616 24.533766L115.455033 872.238574c0 9.69685 3.419889 18.253736 9.686616 24.530696 6.26775 6.277984 14.815427 10.276041 24.503067 10.276041l0 0 723.784474 0 0 0C883.126041 907.045311 891.663484 903.047254 897.940444 896.76927L897.940444 896.76927zM149.644717 61.521169l723.784474 0 0 0c23.933085 0 45.586245 9.69685 60.97984 25.110911 15.396665 15.97381 25.073048 37.665855 25.073048 61.039191L959.482079 872.238574c0 23.969924-9.676383 45.64355-25.073048 61.056588l0 0c-15.393595 15.395642-37.046754 25.092491-60.97984 25.092491l0 0-723.784474 0 0 0c-23.364127 0-45.016263-9.69685-60.971653-25.092491l0 0c-15.395642-15.414061-25.082258-37.086663-25.082258-61.056588L63.590805 147.672294c0-23.37436 9.686616-45.065382 25.082258-61.039191l0 0C104.628454 71.218018 126.28059 61.521169 149.644717 61.521169L149.644717 61.521169z" p-id="25736" /><path d="M417.41939 698.269357c-6.025227 0-12.047384-2.301416-16.667611-6.89913L259.500731 550.119179c-9.172917-9.148357-9.172917-24.093744 0-33.290197 9.169847-9.147334 24.115234-9.147334 33.288151 0l124.583436 124.606972 312.89429-312.916802c9.194406-9.171893 24.139793-9.171893 33.288151 0 9.196453 9.171893 9.196453 24.116257 0 33.289174L433.991834 691.370227c-4.618181 4.644787-10.642384 6.89913-16.665565 6.89913L417.41939 698.269357z" p-id="25737" /></symbol>'});s.a.add(a);t["default"]=a},f584:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",[n("span",{attrs:{slot:"label"},slot:"label"},[e._v(e._s(e.i18nt("designer.setting.fileTypes"))+" "),n("el-tooltip",{attrs:{effect:"light",content:e.i18nt("designer.setting.fileTypesHelp")}},[n("i",{staticClass:"el-icon-info"})])],1),n("el-select",{staticStyle:{width:"100%"},attrs:{multiple:"","allow-create":"",filterable:"","default-first-option":""},model:{value:e.optionModel.fileTypes,callback:function(t){e.$set(e.optionModel,"fileTypes",t)},expression:"optionModel.fileTypes"}},e._l(e.uploadFileTypes,(function(e,t){return n("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1)},o=[],r=n("79fa"),s={name:"file-upload-fileTypes-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},data:function(){return{uploadFileTypes:[{value:"doc",label:"doc"},{value:"xls",label:"xls"},{value:"docx",label:"docx"},{value:"xlsx",label:"xlsx"}]}}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"68a1d928",null);t["default"]=c.exports},f5df:function(e,t,n){var i=n("da84"),o=n("00ee"),r=n("1626"),s=n("c6b6"),a=n("b622"),l=a("toStringTag"),c=i.Object,u="Arguments"==s(function(){return arguments}()),d=function(e,t){try{return e[t]}catch(n){}};e.exports=o?s:function(e){var t,n,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=d(t=c(e),l))?n:u?s(t):"Object"==(i=s(t))&&r(t.callee)?"Arguments":i}},f6b4:function(e,t,n){"use strict";var i=n("c532");function o(){this.handlers=[]}o.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){i.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},f6e6:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("container-wrapper",{attrs:{designer:e.designer,widget:e.widget,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList}},[n("div",{key:e.widget.id,staticClass:"table-container",class:[e.selected?"selected":"",e.customClass],on:{click:function(t){return t.stopPropagation(),e.selectWidget(e.widget)}}},[n("table",{staticClass:"table-layout"},[n("tbody",e._l(e.widget.rows,(function(t,i){return n("tr",{key:t.id},[e._l(t.cols,(function(o,r){return[o.merged?e._e():n("table-cell-widget",{key:o.id,attrs:{widget:o,designer:e.designer,"parent-list":e.widget.cols,"row-index":i,"row-length":e.widget.rows.length,"col-index":r,"col-length":t.cols.length,"col-array":t.cols,"row-array":e.widget.rows,"parent-widget":e.widget}})]}))],2)})),0)])])])},o=[],r=(n("a9e3"),n("79fa")),s=n("61ca"),a=n("cd36"),l=n("1516"),c=n("26a6"),u={name:"table-widget",componentName:"ContainerWidget",mixins:[r["b"],s["a"],c["a"]],inject:["refList"],components:{ContainerWrapper:a["default"],TableCellWidget:l["default"]},props:{widget:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object},computed:{selected:function(){return this.widget.id===this.designer.selectedId},customClass:function(){return this.widget.options.customClass||""}},watch:{},created:function(){this.initRefList()},mounted:function(){},methods:{}},d=u,h=(n("5479"),n("2877")),f=Object(h["a"])(d,i,o,!1,null,"37d3c0b7",null);t["default"]=f.exports},f6f1:function(e,t,n){},f746:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("container-item-wrapper",{attrs:{widget:e.widget}},[n("el-row",{directives:[{name:"show",rawName:"v-show",value:!e.widget.options.hidden,expression:"!widget.options.hidden"}],key:e.widget.id,ref:e.widget.id,staticClass:"grid-container",class:[e.customClass],attrs:{gutter:e.widget.options.gutter}},[e._l(e.widget.cols,(function(t,i){return[n("grid-col-item",{key:i,attrs:{widget:t,"parent-list":e.widget.cols,"index-of-parent-list":i,"parent-widget":e.widget,"col-height":e.widget.options.colHeight},scopedSlots:e._u([e._l(Object.keys(e.$scopedSlots),(function(t){return{key:t,fn:function(n){return[e._t(t,null,null,n)]}}}))],null,!0)})]}))],2)],1)},o=[],r=n("c6e3"),s=n("79fa"),a=n("d67f"),l=n("90c2"),c=n("a93f"),u=n("34f0"),d={name:"vf-grid-item",componentName:"ContainerItem",mixins:[r["a"],s["b"],a["a"],u["a"]],components:{ContainerItemWrapper:l["default"],GridColItem:c["default"]},props:{widget:Object},inject:["refList","sfRefList","globalModel"],created:function(){this.initRefList()},mounted:function(){},beforeDestroy:function(){this.unregisterFromRefList()},methods:{}},h=d,f=n("2877"),p=Object(f["a"])(h,i,o,!1,null,"7382a44f",null);t["default"]=p.exports},f772:function(e,t,n){var i=n("5692"),o=n("90e3"),r=i("keys");e.exports=function(e){return r[e]||(r[e]=o(e))}},f7729:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return"grid-col"===e.widget.type?n("el-col",e._b({key:e.widget.id,staticClass:"grid-cell",class:[e.selected?"selected":"",e.customClass],style:e.colHeightStyle,nativeOn:{click:function(t){return t.stopPropagation(),e.selectWidget(e.widget)}}},"el-col",e.layoutProps,!1),[n("draggable",e._b({attrs:{list:e.widget.widgetList,handle:".drag-handler",move:e.checkContainerMove},on:{end:function(t){return e.onGridDragEnd(t,e.widget.widgetList)},add:function(t){return e.onGridDragAdd(t,e.widget.widgetList)},update:e.onGridDragUpdate}},"draggable",{group:"dragGroup",ghostClass:"ghost",animation:200},!1),[n("transition-group",{staticClass:"form-widget-list",attrs:{name:"fade",tag:"div"}},[e._l(e.widget.widgetList,(function(t,i){return["container"===t.category?[n(t.type+"-widget",{key:t.id,tag:"component",attrs:{widget:t,designer:e.designer,"parent-list":e.widget.widgetList,"index-of-parent-list":i,"parent-widget":e.widget}})]:[n(t.type+"-widget",{key:t.id,tag:"component",attrs:{field:t,designer:e.designer,"parent-list":e.widget.widgetList,"index-of-parent-list":i,"parent-widget":e.widget,"design-state":!0}})]]}))],2)],1),e.designer.selectedId===e.widget.id&&"grid-col"===e.widget.type?n("div",{staticClass:"grid-col-action"},[n("i",{staticClass:"el-icon-back",attrs:{title:e.i18nt("designer.hint.selectParentWidget")},on:{click:function(t){return t.stopPropagation(),e.selectParentWidget(e.widget)}}}),e.parentList&&e.parentList.length>1?n("i",{staticClass:"el-icon-top",attrs:{title:e.i18nt("designer.hint.moveUpWidget")},on:{click:function(t){return t.stopPropagation(),e.moveUpWidget()}}}):e._e(),e.parentList&&e.parentList.length>1?n("i",{staticClass:"el-icon-bottom",attrs:{title:e.i18nt("designer.hint.moveDownWidget")},on:{click:function(t){return t.stopPropagation(),e.moveDownWidget()}}}):e._e(),n("i",{staticClass:"el-icon-copy-document",attrs:{title:e.i18nt("designer.hint.cloneWidget")},on:{click:function(t){return t.stopPropagation(),e.cloneGridCol(e.widget)}}}),n("i",{staticClass:"el-icon-delete",attrs:{title:e.i18nt("designer.hint.remove")},on:{click:function(t){return t.stopPropagation(),e.removeWidget.apply(null,arguments)}}})]):e._e(),e.designer.selectedId===e.widget.id&&"grid-col"===e.widget.type?n("div",{staticClass:"grid-col-handler"},[n("i",[e._v(e._s(e.i18nt("designer.widgetLabel."+e.widget.type)))])]):e._e()],1):e._e()},o=[],r=n("5530"),s=(n("a9e3"),n("a434"),n("b76a")),a=n.n(s),l=n("79fa"),c=n("c029"),u=n("26a6"),d={name:"GridColWidget",componentName:"GridColWidget",mixins:[l["b"],u["a"]],inject:["refList"],components:Object(r["a"])({Draggable:a.a},c["a"]),props:{widget:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,colHeight:{type:String,default:null}},data:function(){return{layoutProps:{span:this.widget.options.span||12,offset:this.widget.options.offset||0,push:this.widget.options.push||0,pull:this.widget.options.pull||0}}},computed:{selected:function(){return this.widget.id===this.designer.selectedId},customClass:function(){return this.widget.options.customClass||""},colHeightStyle:function(){return this.colHeight?{height:this.colHeight+"px"}:{}}},watch:{"designer.formConfig.layoutType":{handler:function(e){this.widget.options.responsive?this.layoutProps.span="H5"===e?this.widget.options.xs||12:"Pad"===e?this.widget.options.sm||12:this.widget.options.md||12:this.layoutProps.span=this.widget.options.span||12}},"widget.options.responsive":{handler:function(e){var t=this.designer.formConfig.layoutType;this.layoutProps.span=e?"H5"===t?this.widget.options.xs||12:"Pad"===t?this.widget.options.sm||12:this.widget.options.md||12:this.widget.options.span||12}},"widget.options.span":{handler:function(e){this.layoutProps.span=e}},"widget.options.md":{handler:function(e){this.layoutProps.span=e}},"widget.options.sm":{handler:function(e){this.layoutProps.span=e}},"widget.options.xs":{handler:function(e){this.layoutProps.span=e}},"widget.options.offset":{handler:function(e){this.layoutProps.offset=e}},"widget.options.push":{handler:function(e){this.layoutProps.push=e}},"widget.options.pull":{handler:function(e){this.layoutProps.pull=e}}},created:function(){this.initRefList(),this.initLayoutProps()},methods:{initLayoutProps:function(){if(this.widget.options.responsive){var e=this.designer.formConfig.layoutType;this.layoutProps.span="H5"===e?this.widget.options.xs||12:"Pad"===e?this.widget.options.sm||12:this.widget.options.md||12}else this.layoutProps.span=this.widget.options.span},onGridDragEnd:function(e,t){},onGridDragAdd:function(e,t){var n=e.newIndex;t[n]&&this.designer.setSelected(t[n]),this.designer.emitHistoryChange(),this.designer.emitEvent("field-selected",this.widget)},onGridDragUpdate:function(){this.designer.emitHistoryChange()},selectWidget:function(e){console.log("id: "+e.id),this.designer.setSelected(e)},checkContainerMove:function(e){return this.designer.checkWidgetMove(e)},selectParentWidget:function(){this.parentWidget?this.designer.setSelected(this.parentWidget):this.designer.clearSelected()},moveUpWidget:function(){this.designer.moveUpWidget(this.parentList,this.indexOfParentList)},moveDownWidget:function(){this.designer.moveDownWidget(this.parentList,this.indexOfParentList)},cloneGridCol:function(e){this.designer.cloneGridCol(e,this.parentWidget)},removeWidget:function(){var e=this;if(this.parentList){var t=null;1===this.parentList.length?this.parentWidget&&(t=this.parentWidget):t=this.parentList.length===1+this.indexOfParentList?this.parentList[this.indexOfParentList-1]:this.parentList[this.indexOfParentList+1],this.$nextTick((function(){e.parentList.splice(e.indexOfParentList,1),e.designer.setSelected(t),e.designer.emitHistoryChange()}))}}}},h=d,f=(n("1415"),n("2877")),p=Object(f["a"])(h,i,o,!1,null,"3151e59a",null);t["default"]=p.exports},f8cd:function(e,t,n){var i=n("da84"),o=n("5926"),r=i.RangeError;e.exports=function(e){var t=o(e);if(t<0)throw r("The argument can't be less than 0");return t}},f8e7:function(e,t,n){"use strict";n("e632")},fa85:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.colPushTitle")}},[n("el-input-number",{staticStyle:{width:"100%"},attrs:{min:0,max:24},model:{value:e.optionModel.push,callback:function(t){e.$set(e.optionModel,"push",e._n(t))},expression:"optionModel.push"}})],1)},o=[],r=n("79fa"),s={name:"grid-col-push-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"570c4841",null);t["default"]=c.exports},fb15:function(e,t,n){"use strict";n.r(t);var i={};n.r(i),n.d(i,"registerCommonProperty",(function(){return He})),n.d(i,"registerAdvancedProperty",(function(){return ze})),n.d(i,"registerEventProperty",(function(){return Ve})),n.d(i,"propertyRegistered",(function(){return Ue})),n.d(i,"registerCPEditor",(function(){return Ke})),n.d(i,"registerAPEditor",(function(){return Ge})),n.d(i,"registerEPEditor",(function(){return Ye})),n.d(i,"default",(function(){return Je}));var o={};if(n.r(o),n.d(o,"createInputTextEditor",(function(){return bt})),n.d(o,"createInputNumberEditor",(function(){return vt})),n.d(o,"createBooleanEditor",(function(){return yt})),n.d(o,"createCheckboxGroupEditor",(function(){return wt})),n.d(o,"createRadioGroupEditor",(function(){return xt})),n.d(o,"createRadioButtonGroupEditor",(function(){return Ct})),n.d(o,"createSelectEditor",(function(){return _t})),n.d(o,"createEventHandlerEditor",(function(){return kt})),n.d(o,"createEmptyEditor",(function(){return St})),"undefined"!==typeof window){var r=window.document.currentScript,s=n("8875");r=s(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:s});var a=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);a&&(n.p=a[1])}n("b0c0"),n("d3b7"),n("159b");var l=n("bc3a"),c=n.n(l),u=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-container",{staticClass:"main-container full-height"},[i("el-header",{staticClass:"main-header"},[i("div",{staticClass:"float-left main-title"},[i("img",{attrs:{src:n("d3fb")},on:{click:e.openHome}}),i("span",{staticClass:"bold"},[e._v("VForm")]),e._v(" "+e._s(e.i18nt("application.productTitle"))+" "),i("span",{staticClass:"version-span"},[e._v("Ver "+e._s(e.vFormVersion))])]),i("div",{staticClass:"float-right external-link"},[e.showLink("languageMenu")?i("el-dropdown",{attrs:{"hide-timeout":2e3},on:{command:e.handleLanguageChanged}},[i("span",{staticClass:"el-dropdown-link"},[e._v(e._s(e.curLangName)),i("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),i("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[i("el-dropdown-item",{attrs:{command:"zh-CN"}},[e._v(e._s(e.i18nt("application.zh-CN")))]),i("el-dropdown-item",{attrs:{command:"en-US"}},[e._v(e._s(e.i18nt("application.en-US")))])],1)],1):e._e(),e.showLink("externalLink")?i("a",{attrs:{href:"javascript:void(0)",target:"_blank"},on:{click:function(t){return e.openUrl(t,e.gitUrl)}}},[i("svg-icon",{attrs:{"icon-class":"github"}}),e._v(e._s(e.i18nt("application.github")))],1):e._e(),e.showLink("externalLink")?i("a",{attrs:{href:"javascript:void(0)",target:"_blank"},on:{click:function(t){return e.openUrl(t,e.docUrl)}}},[i("svg-icon",{attrs:{"icon-class":"document"}}),e._v(e._s(e.i18nt("application.document")))],1):e._e(),e.showLink("externalLink")?i("a",{attrs:{href:"javascript:void(0)",target:"_blank"},on:{click:function(t){return e.openUrl(t,e.chatUrl)}}},[e._v(e._s(e.i18nt("application.qqGroup")))]):e._e(),e.showLink("externalLink")?i("a",{attrs:{href:"javascript:void(0)",target:"_blank"},on:{click:function(t){return e.openUrl(t,e.subScribeUrl)}}},[e._v(" "+e._s(e.i18nt("application.subscription"))),i("i",{staticClass:"el-icon-top-right"})]):e._e()],1)]),i("el-container",[i("el-aside",{staticClass:"side-panel"},[i("widget-panel",{attrs:{designer:e.designer}})],1),i("el-container",{staticClass:"center-layout-container"},[i("el-header",{staticClass:"toolbar-header"},[i("toolbar-panel",{ref:"toolbarRef",attrs:{designer:e.designer,"global-dsv":e.globalDsv},scopedSlots:e._u([e._l(e.$slots,(function(t,n){return{key:n,fn:function(){return[e._t(n)]},proxy:!0}}))],null,!0)})],1),i("el-main",{staticClass:"form-widget-main"},[i("el-scrollbar",{staticClass:"container-scroll-bar",style:{height:e.scrollerHeight}},[i("v-form-widget",{ref:"formRef",attrs:{designer:e.designer,"form-config":e.designer.formConfig,"global-dsv":e.globalDsv}})],1)],1)],1),i("el-aside",[i("setting-panel",{attrs:{designer:e.designer,"selected-widget":e.designer.selectedWidget,"form-config":e.designer.formConfig,"global-dsv":e.globalDsv}})],1)],1)],1)},d=[],h=(n("a434"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-scrollbar",{staticClass:"side-scroll-bar",style:{height:e.scrollerHeight}},[n("div",{staticClass:"panel-container"},[n("el-tabs",{staticClass:"no-bottom-margin indent-left-margin",model:{value:e.firstTab,callback:function(t){e.firstTab=t},expression:"firstTab"}},[n("el-tab-pane",{attrs:{name:"componentLib"}},[n("span",{attrs:{slot:"label"},slot:"label"},[n("i",{staticClass:"el-icon-set-up"}),e._v(" "+e._s(e.i18nt("designer.componentLib")))]),n("el-collapse",{staticClass:"widget-collapse",model:{value:e.activeNames,callback:function(t){e.activeNames=t},expression:"activeNames"}},[n("el-collapse-item",{attrs:{name:"1",title:e.i18nt("designer.containerTitle")}},[n("draggable",{attrs:{tag:"ul",list:e.containers,group:{name:"dragGroup",pull:"clone",put:!1},clone:e.handleContainerWidgetClone,"ghost-class":"ghost",sort:!1,move:e.checkContainerMove},on:{end:e.onContainerDragEnd}},e._l(e.containers,(function(t,i){return n("li",{key:i,staticClass:"container-widget-item",attrs:{title:t.displayName},on:{dblclick:function(n){return e.addContainerByDbClick(t)}}},[n("span",[n("svg-icon",{attrs:{"icon-class":t.icon,"class-name":"color-svg-icon"}}),e._v(e._s(e.i18n2t("designer.widgetLabel."+t.type,"extension.widgetLabel."+t.type)))],1)])})),0)],1),n("el-collapse-item",{attrs:{name:"2",title:e.i18nt("designer.basicFieldTitle")}},[n("draggable",{attrs:{tag:"ul",list:e.basicFields,group:{name:"dragGroup",pull:"clone",put:!1},move:e.checkFieldMove,clone:e.handleFieldWidgetClone,"ghost-class":"ghost",sort:!1}},e._l(e.basicFields,(function(t,i){return n("li",{key:i,staticClass:"field-widget-item",attrs:{title:t.displayName},on:{dblclick:function(n){return e.addFieldByDbClick(t)}}},[n("span",[n("svg-icon",{attrs:{"icon-class":t.icon,"class-name":"color-svg-icon"}}),e._v(e._s(e.i18n2t("designer.widgetLabel."+t.type,"extension.widgetLabel."+t.type)))],1)])})),0)],1),n("el-collapse-item",{attrs:{name:"3",title:e.i18nt("designer.advancedFieldTitle")}},[n("draggable",{attrs:{tag:"ul",list:e.advancedFields,group:{name:"dragGroup",pull:"clone",put:!1},move:e.checkFieldMove,clone:e.handleFieldWidgetClone,"ghost-class":"ghost",sort:!1}},e._l(e.advancedFields,(function(t,i){return n("li",{key:i,staticClass:"field-widget-item",attrs:{title:t.displayName},on:{dblclick:function(n){return e.addFieldByDbClick(t)}}},[n("span",[n("svg-icon",{attrs:{"icon-class":t.icon,"class-name":"color-svg-icon"}}),e._v(e._s(e.i18n2t("designer.widgetLabel."+t.type,"extension.widgetLabel."+t.type)))],1)])})),0)],1),n("el-collapse-item",{attrs:{name:"4",title:e.i18nt("designer.customFieldTitle")}},[n("draggable",{attrs:{tag:"ul",list:e.customFields,group:{name:"dragGroup",pull:"clone",put:!1},move:e.checkFieldMove,clone:e.handleFieldWidgetClone,"ghost-class":"ghost",sort:!1}},e._l(e.customFields,(function(t,i){return n("li",{key:i,staticClass:"field-widget-item",attrs:{title:t.displayName},on:{dblclick:function(n){return e.addFieldByDbClick(t)}}},[n("span",[n("svg-icon",{attrs:{"icon-class":t.icon,"class-name":"color-svg-icon"}}),e._v(e._s(e.i18n2t("designer.widgetLabel."+t.type,"extension.widgetLabel."+t.type)))],1)])})),0)],1)],1)],1),e.showFormTemplates()?n("el-tab-pane",{staticStyle:{padding:"8px"},attrs:{name:"formLib"}},[n("span",{attrs:{slot:"label"},slot:"label"},[n("i",{staticClass:"el-icon-c-scale-to-original"}),e._v(" "+e._s(e.i18nt("designer.formLib")))]),e._l(e.formTemplates,(function(t,i){return[n("el-card",{key:i,staticClass:"ft-card",attrs:{"bord-style":{padding:"0"},shadow:"hover"}},[n("el-popover",{attrs:{placement:"right",trigger:"hover"}},[n("img",{staticStyle:{width:"200px"},attrs:{slot:"reference",src:t.imgUrl},slot:"reference"}),n("img",{staticStyle:{height:"600px",width:"720px"},attrs:{src:t.imgUrl}})]),n("div",{staticClass:"bottom clear-fix"},[n("span",{staticClass:"ft-title"},[e._v("#"+e._s(i+1)+" "+e._s(t.title))]),n("el-button",{staticClass:"right-button",attrs:{type:"text"},on:{click:function(n){return e.loadFormTemplate(t.jsonUrl)}}},[e._v(" "+e._s(e.i18nt("designer.hint.loadFormTemplate")))])],1)],1)]}))],2):e._e()],1)],1)])}),f=[],p=n("5530"),g=(n("4de4"),n("d81d"),n("b76a")),m=n.n(g),b=[{type:"grid",category:"container",icon:"grid",cols:[],options:{name:"",hidden:!1,gutter:12,colHeight:null,customClass:""}},{type:"table",category:"container",icon:"table",rows:[],options:{name:"",hidden:!1,customClass:""}},{type:"tab",category:"container",icon:"tab",displayType:"border-card",tabs:[],options:{name:"",hidden:!1,customClass:""}},{type:"grid-col",category:"container",icon:"grid-col",internal:!0,widgetList:[],options:{name:"",hidden:!1,span:12,offset:0,push:0,pull:0,responsive:!1,md:12,sm:12,xs:12,customClass:""}},{type:"table-cell",category:"container",icon:"table-cell",internal:!0,widgetList:[],merged:!1,options:{name:"",cellWidth:"",cellHeight:"",colspan:1,rowspan:1,wordBreak:!1,customClass:""}},{type:"tab-pane",category:"container",icon:"tab-pane",internal:!0,widgetList:[],options:{name:"",label:"",hidden:!1,active:!1,disabled:!1,customClass:""}}],v=[{type:"input",icon:"text-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",type:"text",defaultValue:"",placeholder:"",columnWidth:"200px",size:"",labelWidth:null,labelHidden:!1,readonly:!1,disabled:!1,hidden:!1,clearable:!0,showPassword:!1,required:!1,requiredHint:"",validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,minLength:null,maxLength:null,showWordLimit:!1,prefixIcon:"",suffixIcon:"",appendButton:!1,appendButtonDisabled:!1,buttonIcon:"el-icon-search",onCreated:"",onMounted:"",onInput:"",onChange:"",onFocus:"",onBlur:"",onValidate:"",onAppendButtonClick:""}},{type:"textarea",icon:"textarea-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",rows:3,defaultValue:"",placeholder:"",columnWidth:"200px",size:"",labelWidth:null,labelHidden:!1,readonly:!1,disabled:!1,hidden:!1,required:!1,requiredHint:"",validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,minLength:null,maxLength:null,showWordLimit:!1,onCreated:"",onMounted:"",onInput:"",onChange:"",onFocus:"",onBlur:"",onValidate:""}},{type:"number",icon:"number-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",defaultValue:0,placeholder:"",columnWidth:"200px",size:"",labelWidth:null,labelHidden:!1,disabled:!1,hidden:!1,required:!1,requiredHint:"",validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,min:-1e11,max:1e11,precision:0,step:1,controlsPosition:"right",onCreated:"",onMounted:"",onChange:"",onFocus:"",onBlur:"",onValidate:""}},{type:"radio",icon:"radio-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",defaultValue:null,columnWidth:"200px",size:"",displayStyle:"inline",buttonStyle:!1,border:!1,labelWidth:null,labelHidden:!1,disabled:!1,hidden:!1,optionItems:[{label:"radio 1",value:1},{label:"radio 2",value:2},{label:"radio 3",value:3}],required:!1,requiredHint:"",validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onChange:"",onValidate:""}},{type:"checkbox",icon:"checkbox-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",defaultValue:[],columnWidth:"200px",size:"",displayStyle:"inline",buttonStyle:!1,border:!1,labelWidth:null,labelHidden:!1,disabled:!1,hidden:!1,optionItems:[{label:"check 1",value:1},{label:"check 2",value:2},{label:"check 3",value:3}],required:!1,requiredHint:"",validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onChange:"",onValidate:""}},{type:"select",icon:"select-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",defaultValue:"",placeholder:"",columnWidth:"200px",size:"",labelWidth:null,labelHidden:!1,disabled:!1,hidden:!1,clearable:!0,filterable:!1,allowCreate:!1,remote:!1,automaticDropdown:!1,multiple:!1,multipleLimit:0,optionItems:[{label:"select 1",value:1},{label:"select 2",value:2},{label:"select 3",value:3}],required:!1,requiredHint:"",validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onRemoteQuery:"",onChange:"",onFocus:"",onBlur:"",onValidate:""}},{type:"time",icon:"time-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",defaultValue:null,placeholder:"",columnWidth:"200px",size:"",labelWidth:null,labelHidden:!1,readonly:!1,disabled:!1,hidden:!1,clearable:!0,editable:!1,format:"HH:mm:ss",required:!1,requiredHint:"",validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onChange:"",onFocus:"",onBlur:"",onValidate:""}},{type:"time-range",icon:"time-range-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",defaultValue:null,startPlaceholder:"",endPlaceholder:"",columnWidth:"200px",size:"",labelWidth:null,labelHidden:!1,readonly:!1,disabled:!1,hidden:!1,clearable:!0,editable:!1,format:"HH:mm:ss",required:!1,requiredHint:"",validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onChange:"",onFocus:"",onBlur:"",onValidate:""}},{type:"date",icon:"date-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",type:"date",defaultValue:null,placeholder:"",columnWidth:"200px",size:"",labelWidth:null,labelHidden:!1,readonly:!1,disabled:!1,hidden:!1,clearable:!0,editable:!1,format:"yyyy-MM-dd",valueFormat:"yyyy-MM-dd",required:!1,requiredHint:"",validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onChange:"",onFocus:"",onBlur:"",onValidate:""}},{type:"date-range",icon:"date-range-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",type:"daterange",defaultValue:null,startPlaceholder:"",endPlaceholder:"",columnWidth:"200px",size:"",labelWidth:null,labelHidden:!1,readonly:!1,disabled:!1,hidden:!1,clearable:!0,editable:!1,format:"yyyy-MM-dd",valueFormat:"yyyy-MM-dd",required:!1,requiredHint:"",validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onChange:"",onFocus:"",onBlur:"",onValidate:""}},{type:"switch",icon:"switch-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",defaultValue:null,columnWidth:"200px",labelWidth:null,labelHidden:!1,disabled:!1,hidden:!1,customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,switchWidth:40,activeText:"",inactiveText:"",activeColor:null,inactiveColor:null,onCreated:"",onMounted:"",onChange:"",onValidate:""}},{type:"rate",icon:"rate-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",defaultValue:null,columnWidth:"200px",labelWidth:null,labelHidden:!1,disabled:!1,hidden:!1,required:!1,requiredHint:"",validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,max:5,lowThreshold:2,highThreshold:4,allowHalf:!1,showText:!1,showScore:!1,onCreated:"",onMounted:"",onChange:"",onValidate:""}},{type:"color",icon:"color-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",defaultValue:null,columnWidth:"200px",size:"",labelWidth:null,labelHidden:!1,disabled:!1,hidden:!1,required:!1,requiredHint:"",validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onChange:"",onValidate:""}},{type:"slider",icon:"slider-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",columnWidth:"200px",showStops:!0,size:"",labelWidth:null,labelHidden:!1,disabled:!1,hidden:!1,required:!1,requiredHint:"",validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,min:0,max:100,step:10,range:!1,height:null,onCreated:"",onMounted:"",onChange:"",onValidate:""}},{type:"static-text",icon:"static-text",formItemFlag:!1,options:{name:"",columnWidth:"200px",hidden:!1,textContent:"static text",textAlign:"left",fontSize:"13px",preWrap:!1,customClass:"",onCreated:"",onMounted:""}},{type:"html-text",icon:"html-text",formItemFlag:!1,options:{name:"",columnWidth:"200px",hidden:!1,htmlContent:"<b>html text</b>",customClass:"",onCreated:"",onMounted:""}},{type:"button",icon:"button",formItemFlag:!1,options:{name:"",label:"",columnWidth:"200px",size:"",displayStyle:"block",disabled:!1,hidden:!1,type:"",plain:!1,round:!1,circle:!1,icon:null,customClass:"",onCreated:"",onMounted:"",onClick:""}},{type:"divider",icon:"divider",formItemFlag:!1,options:{name:"",label:"",columnWidth:"200px",direction:"horizontal",contentPosition:"center",hidden:!1,customClass:"",onCreated:"",onMounted:""}}],y=[{type:"picture-upload",icon:"picture-upload-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",labelWidth:null,labelHidden:!1,columnWidth:"200px",disabled:!1,hidden:!1,required:!1,requiredHint:"",customRule:"",customRuleHint:"",uploadURL:"",uploadTip:"",withCredentials:!1,multipleSelect:!1,showFileList:!0,limit:3,fileMaxSize:5,fileTypes:["jpg","jpeg","png"],customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onBeforeUpload:"",onUploadSuccess:"",onUploadError:"",onFileRemove:"",onValidate:""}},{type:"file-upload",icon:"file-upload-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",labelWidth:null,labelHidden:!1,columnWidth:"200px",disabled:!1,hidden:!1,required:!1,requiredHint:"",customRule:"",customRuleHint:"",uploadURL:"",uploadTip:"",withCredentials:!1,multipleSelect:!1,showFileList:!0,limit:3,fileMaxSize:5,fileTypes:["doc","docx","xls","xlsx"],customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onBeforeUpload:"",onUploadSuccess:"",onUploadError:"",onFileRemove:"",onValidate:""}},{type:"rich-editor",icon:"rich-editor-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",placeholder:"",labelWidth:null,labelHidden:!1,columnWidth:"200px",disabled:!1,hidden:!1,required:!1,requiredHint:"",customRule:"",customRuleHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,minLength:null,maxLength:null,showWordLimit:!1,onCreated:"",onMounted:"",onValidate:""}},{type:"cascader",icon:"cascader-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",defaultValue:"",placeholder:"",size:"",labelWidth:null,labelHidden:!1,columnWidth:"200px",disabled:!1,hidden:!1,clearable:!0,filterable:!1,multiple:!1,checkStrictly:!1,showAllLevels:!0,optionItems:[{label:"select 1",value:1,children:[{label:"child 1",value:11}]},{label:"select 2",value:2},{label:"select 3",value:3}],required:!1,requiredHint:"",customRule:"",customRuleHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onChange:"",onFocus:"",onBlur:"",onValidate:""}}],w=[];function x(e){b.push(e)}function C(e){v.push(e)}function _(e){y.push(e)}function k(e){w.push(e)}var S=[{title:"单列表单",imgUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/t1.png",jsonUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/json1.txt",description:"表单模板详细说明..."},{title:"多列表单",imgUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/t2.png",jsonUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/json2.txt",description:"表单模板详细说明..."},{title:"分组表单",imgUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/t3.png",jsonUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/json3.txt",description:"表单模板详细说明..."},{title:"标签页表单",imgUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/t4.png",jsonUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/json4.txt",description:"表单模板详细说明..."},{title:"主从表单",imgUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/t5.png",jsonUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/json5.txt",description:"表单模板详细说明..."},{title:"响应式表单",imgUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/t6.png",jsonUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/json6.txt",description:"表单模板详细说明..."},{title:"问卷调查表",imgUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/t7.png",jsonUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/json7.txt",description:"表单模板详细说明..."},{title:"固定表格表单",imgUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/t8.png",jsonUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/json8.txt",description:"表单模板详细说明..."}],O=n("ca00"),E=n("79fa"),L=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("svg",{class:e.svgClass,attrs:{"aria-hidden":"true"}},[n("use",{attrs:{"xlink:href":e.iconName}}),e.title?n("title",[e._v(e._s(e.title))]):e._e()])},M=[],A={name:"SvgIcon",props:{iconClass:{type:String,required:!0},className:{type:String},title:{type:String,default:""}},computed:{iconName:function(){return"#icon-".concat(this.iconClass)},svgClass:function(){return this.className?"svg-icon "+this.className:"svg-icon"}}},T=A,R=(n("d53b"),n("2877")),$=Object(R["a"])(T,L,M,!1,null,"1a7581a2",null),F=$.exports,j={name:"FieldPanel",mixins:[E["b"]],components:{Draggable:m.a,SvgIcon:F},props:{designer:Object},inject:["getBannedWidgets","getDesignerConfig"],data:function(){return{designerConfig:this.getDesignerConfig(),firstTab:"componentLib",scrollerHeight:0,activeNames:["1","2","3","4"],containers:b,basicFields:v,advancedFields:y,customFields:w,formTemplates:S}},computed:{},mounted:function(){var e=this;this.loadWidgets(),this.scrollerHeight=window.innerHeight-56+"px",Object(O["a"])((function(){e.$nextTick((function(){e.scrollerHeight=window.innerHeight-56+"px"}))}))},methods:{isBanned:function(e){return this.getBannedWidgets().indexOf(e)>-1},showFormTemplates:function(){return void 0===this.designerConfig["formTemplates"]||!!this.designerConfig["formTemplates"]},loadWidgets:function(){var e=this;this.containers=this.containers.map((function(t){return Object(p["a"])(Object(p["a"])({},t),{},{displayName:e.i18n2t("designer.widgetLabel.".concat(t.type),"extension.widgetLabel.".concat(t.type))})})).filter((function(t){return!t.internal&&!e.isBanned(t.type)})),this.basicFields=this.basicFields.map((function(t){return Object(p["a"])(Object(p["a"])({},t),{},{displayName:e.i18n2t("designer.widgetLabel.".concat(t.type),"extension.widgetLabel.".concat(t.type))})})).filter((function(t){return!e.isBanned(t.type)})),this.advancedFields=this.advancedFields.map((function(t){return Object(p["a"])(Object(p["a"])({},t),{},{displayName:e.i18n2t("designer.widgetLabel.".concat(t.type),"extension.widgetLabel.".concat(t.type))})})).filter((function(t){return!e.isBanned(t.type)})),this.customFields=this.customFields.map((function(t){return Object(p["a"])(Object(p["a"])({},t),{},{displayName:e.i18n2t("designer.widgetLabel.".concat(t.type),"extension.widgetLabel.".concat(t.type))})})).filter((function(t){return!e.isBanned(t.type)}))},handleContainerWidgetClone:function(e){return this.designer.copyNewContainerWidget(e)},handleFieldWidgetClone:function(e){return this.designer.copyNewFieldWidget(e)},checkContainerMove:function(e){return this.designer.checkWidgetMove(e)},checkFieldMove:function(e){return this.designer.checkFieldMove(e)},onContainerDragEnd:function(e){},addContainerByDbClick:function(e){this.designer.addContainerByDbClick(e)},addFieldByDbClick:function(e){this.designer.addFieldByDbClick(e)},loadFormTemplate:function(e){var t=this;this.$confirm(this.i18nt("designer.hint.loadFormTemplateHint"),this.i18nt("render.hint.prompt"),{confirmButtonText:this.i18nt("render.hint.confirm"),cancelButtonText:this.i18nt("render.hint.cancel")}).then((function(){c.a.get(e).then((function(e){var n=!1;"string"===typeof e.data?n=t.designer.loadFormJson(JSON.parse(e.data)):e.data.constructor===Object&&(n=t.designer.loadFormJson(e.data)),n&&t.designer.emitHistoryChange(),t.$message.success(t.i18nt("designer.hint.loadFormTemplateSuccess"))})).catch((function(e){t.$message.error(t.i18nt("designer.hint.loadFormTemplateFailed")+":"+e)}))})).catch((function(e){console.error(e)}))}}},I=j,q=(n("6425"),Object(R["a"])(I,h,f,!1,null,"7c54b0c6",null)),P=q.exports,N=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"toolbar-container"},[n("div",{staticClass:"left-toolbar"},[n("el-button",{attrs:{type:"text",disabled:e.undoDisabled,title:e.i18nt("designer.toolbar.undoHint")},on:{click:e.undoHistory}},[n("svg-icon",{attrs:{"icon-class":"undo"}})],1),n("el-button",{attrs:{type:"text",disabled:e.redoDisabled,title:e.i18nt("designer.toolbar.redoHint")},on:{click:e.redoHistory}},[n("svg-icon",{attrs:{"icon-class":"redo"}})],1),n("el-button-group",{staticStyle:{"margin-left":"20px"}},[n("el-button",{attrs:{type:"PC"===e.layoutType?"info":""},on:{click:function(t){return e.changeLayoutType("PC")}}},[e._v(" "+e._s(e.i18nt("designer.toolbar.pcLayout")))]),n("el-button",{attrs:{type:"Pad"===e.layoutType?"info":""},on:{click:function(t){return e.changeLayoutType("Pad")}}},[e._v(" "+e._s(e.i18nt("designer.toolbar.padLayout")))]),n("el-button",{attrs:{type:"H5"===e.layoutType?"info":""},on:{click:function(t){return e.changeLayoutType("H5")}}},[e._v(" "+e._s(e.i18nt("designer.toolbar.mobileLayout")))])],1),n("el-button",{staticStyle:{"margin-left":"20px"},attrs:{type:"",title:e.i18nt("designer.toolbar.nodeTreeHint")},on:{click:e.showNodeTreeDrawer}},[n("svg-icon",{attrs:{"icon-class":"node-tree"}})],1)],1),n("el-drawer",{staticClass:"node-tree-drawer",attrs:{title:e.i18nt("designer.toolbar.nodeTreeTitle"),direction:"ltr",visible:e.showNodeTreeDrawerFlag,modal:!1,size:280,"destroy-on-close":!0},on:{"update:visible":function(t){e.showNodeTreeDrawerFlag=t}}},[n("el-tree",{ref:"nodeTree",staticClass:"node-tree",attrs:{data:e.nodeTreeData,"node-key":"id","default-expand-all":"","highlight-current":"","icon-class":"el-icon-arrow-right"},on:{"node-click":e.onNodeTreeClick}})],1),n("div",{staticClass:"right-toolbar",style:{width:e.toolbarWidth+"px"}},[n("div",{staticClass:"right-toolbar-con"},[e.showToolButton("clearDesignerButton")?n("el-button",{attrs:{type:"text"},on:{click:e.clearFormWidget}},[n("i",{staticClass:"el-icon-delete"}),e._v(e._s(e.i18nt("designer.toolbar.clear")))]):e._e(),e.showToolButton("previewFormButton")?n("el-button",{attrs:{type:"text"},on:{click:e.previewForm}},[n("i",{staticClass:"el-icon-view"}),e._v(e._s(e.i18nt("designer.toolbar.preview")))]):e._e(),e.showToolButton("importJsonButton")?n("el-button",{attrs:{type:"text"},on:{click:e.importJson}},[e._v(" "+e._s(e.i18nt("designer.toolbar.importJson")))]):e._e(),e.showToolButton("exportJsonButton")?n("el-button",{attrs:{type:"text"},on:{click:e.exportJson}},[e._v(" "+e._s(e.i18nt("designer.toolbar.exportJson")))]):e._e(),e.showToolButton("exportCodeButton")?n("el-button",{attrs:{type:"text"},on:{click:e.exportCode}},[e._v(" "+e._s(e.i18nt("designer.toolbar.exportCode")))]):e._e(),e.showToolButton("generateSFCButton")?n("el-button",{attrs:{type:"text"},on:{click:e.generateSFC}},[n("svg-icon",{attrs:{"icon-class":"vue-sfc"}}),e._v(e._s(e.i18nt("designer.toolbar.generateSFC")))],1):e._e(),e._l(e.$slots,(function(t,n){return[e._t(n)]}))],2)]),e.showPreviewDialogFlag?n("el-dialog",{directives:[{name:"dialog-drag",rawName:"v-dialog-drag"}],staticClass:"small-padding-dialog",attrs:{title:e.i18nt("designer.toolbar.preview"),visible:e.showPreviewDialogFlag,"show-close":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,center:"","destroy-on-close":!0,"append-to-body":!0,width:"75%",fullscreen:"H5"===e.layoutType||"Pad"===e.layoutType},on:{"update:visible":function(t){e.showPreviewDialogFlag=t}}},[n("div",[n("div",{staticClass:"form-render-wrapper",class:["H5"===e.layoutType?"h5-layout":"Pad"===e.layoutType?"pad-layout":""]},[n("VFormRender",{ref:"preForm",attrs:{"form-json":e.formJson,"form-data":e.testFormData,"preview-state":!0,"option-data":e.testOptionData,"global-dsv":e.designerDsv},on:{appendButtonClick:e.testOnAppendButtonClick,buttonClick:e.testOnButtonClick,formChange:e.handleFormChange}})],1)]),n("code-editor",{staticStyle:{display:"none"},model:{value:e.testFunc,callback:function(t){e.testFunc=t},expression:"testFunc"}}),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{type:"primary"},on:{click:e.getFormData}},[e._v(e._s(e.i18nt("designer.hint.getFormData")))]),n("el-button",{attrs:{type:"primary"},on:{click:e.resetForm}},[e._v(e._s(e.i18nt("designer.hint.resetForm")))]),n("el-button",{attrs:{type:"primary"},on:{click:e.setFormDisabled}},[e._v(e._s(e.i18nt("designer.hint.disableForm")))]),n("el-button",{attrs:{type:"primary"},on:{click:e.setFormEnabled}},[e._v(e._s(e.i18nt("designer.hint.enableForm")))]),n("el-button",{attrs:{type:""},on:{click:function(t){e.showPreviewDialogFlag=!1}}},[e._v(e._s(e.i18nt("designer.hint.closePreview")))]),e._e(),e._e(),e._e(),e._e()],1)],1):e._e(),e.showImportJsonDialogFlag?n("el-dialog",{directives:[{name:"dialog-drag",rawName:"v-dialog-drag"}],staticClass:"small-padding-dialog",attrs:{title:e.i18nt("designer.toolbar.importJson"),visible:e.showImportJsonDialogFlag,"show-close":!0,center:"","append-to-body":"","close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":!0},on:{"update:visible":function(t){e.showImportJsonDialogFlag=t}}},[n("el-alert",{staticClass:"alert-padding",attrs:{type:"info",title:e.i18nt("designer.hint.importJsonHint"),"show-icon":""}}),n("code-editor",{attrs:{mode:"json",readonly:!1},model:{value:e.importTemplate,callback:function(t){e.importTemplate=t},expression:"importTemplate"}}),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{type:"primary"},on:{click:e.doJsonImport}},[e._v(" "+e._s(e.i18nt("designer.hint.import")))]),n("el-button",{on:{click:function(t){e.showImportJsonDialogFlag=!1}}},[e._v(" "+e._s(e.i18nt("designer.hint.cancel")))])],1)],1):e._e(),e.showExportJsonDialogFlag?n("el-dialog",{directives:[{name:"dialog-drag",rawName:"v-dialog-drag"}],staticClass:"small-padding-dialog",attrs:{title:e.i18nt("designer.toolbar.exportJson"),visible:e.showExportJsonDialogFlag,"show-close":!0,center:"","append-to-body":"","close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":!0},on:{"update:visible":function(t){e.showExportJsonDialogFlag=t}}},[n("code-editor",{attrs:{mode:"json",readonly:!0},model:{value:e.jsonContent,callback:function(t){e.jsonContent=t},expression:"jsonContent"}}),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{staticClass:"copy-json-btn",attrs:{type:"primary","data-clipboard-text":e.jsonRawContent},on:{click:e.copyFormJson}},[e._v(" "+e._s(e.i18nt("designer.hint.copyJson")))]),n("el-button",{on:{click:e.saveFormJson}},[e._v(e._s(e.i18nt("designer.hint.saveFormJson")))]),n("el-button",{attrs:{type:""},on:{click:function(t){e.showExportJsonDialogFlag=!1}}},[e._v(" "+e._s(e.i18nt("designer.hint.closePreview")))])],1)],1):e._e(),e.showExportCodeDialogFlag?n("el-dialog",{directives:[{name:"dialog-drag",rawName:"v-dialog-drag"}],staticClass:"small-padding-dialog",attrs:{title:e.i18nt("designer.toolbar.exportCode"),visible:e.showExportCodeDialogFlag,"show-close":!0,center:"","append-to-body":"",width:"65%","close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":!0},on:{"update:visible":function(t){e.showExportCodeDialogFlag=t}}},[n("el-tabs",{staticClass:"no-box-shadow no-padding",attrs:{type:"border-card"},model:{value:e.activeCodeTab,callback:function(t){e.activeCodeTab=t},expression:"activeCodeTab"}},[n("el-tab-pane",{attrs:{label:"Vue",name:"vue"}},[n("code-editor",{attrs:{mode:"html",readonly:!0,"user-worker":!1},model:{value:e.vueCode,callback:function(t){e.vueCode=t},expression:"vueCode"}})],1),n("el-tab-pane",{attrs:{label:"HTML",name:"html"}},[n("code-editor",{attrs:{mode:"html",readonly:!0,"user-worker":!1},model:{value:e.htmlCode,callback:function(t){e.htmlCode=t},expression:"htmlCode"}})],1)],1),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{staticClass:"copy-vue-btn",attrs:{type:"primary","data-clipboard-text":e.vueCode},on:{click:e.copyVueCode}},[e._v(" "+e._s(e.i18nt("designer.hint.copyVueCode")))]),n("el-button",{staticClass:"copy-html-btn",attrs:{type:"primary","data-clipboard-text":e.htmlCode},on:{click:e.copyHtmlCode}},[e._v(" "+e._s(e.i18nt("designer.hint.copyHtmlCode")))]),n("el-button",{on:{click:e.saveVueCode}},[e._v(e._s(e.i18nt("designer.hint.saveVueCode")))]),n("el-button",{on:{click:e.saveHtmlCode}},[e._v(e._s(e.i18nt("designer.hint.saveHtmlCode")))]),n("el-button",{attrs:{type:""},on:{click:function(t){e.showExportCodeDialogFlag=!1}}},[e._v(" "+e._s(e.i18nt("designer.hint.closePreview")))])],1)],1):e._e(),e.showFormDataDialogFlag?n("el-dialog",{directives:[{name:"dialog-drag",rawName:"v-dialog-drag"}],staticClass:"dialog-title-light-bg",attrs:{title:e.i18nt("designer.hint.exportFormData"),visible:e.showFormDataDialogFlag,"show-close":!0,center:"","close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":!0,"append-to-body":!0},on:{"update:visible":function(t){e.showFormDataDialogFlag=t}}},[n("div",{staticStyle:{border:"1px solid #DCDFE6"}},[n("code-editor",{attrs:{mode:"json",readonly:!0},model:{value:e.formDataJson,callback:function(t){e.formDataJson=t},expression:"formDataJson"}})],1),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{staticClass:"copy-form-data-json-btn",attrs:{type:"primary","data-clipboard-text":e.formDataRawJson},on:{click:e.copyFormDataJson}},[e._v(" "+e._s(e.i18nt("designer.hint.copyFormData")))]),n("el-button",{on:{click:e.saveFormData}},[e._v(e._s(e.i18nt("designer.hint.saveFormData")))]),n("el-button",{attrs:{type:""},on:{click:function(t){e.showFormDataDialogFlag=!1}}},[e._v(" "+e._s(e.i18nt("designer.hint.closePreview")))])],1)]):e._e(),e.showExportSFCDialogFlag?n("el-dialog",{directives:[{name:"dialog-drag",rawName:"v-dialog-drag"}],staticClass:"small-padding-dialog",attrs:{title:e.i18nt("designer.toolbar.generateSFC"),visible:e.showExportSFCDialogFlag,"show-close":!0,center:"","append-to-body":"",width:"65%","close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":!0},on:{"update:visible":function(t){e.showExportSFCDialogFlag=t}}},[n("el-tabs",{staticClass:"no-box-shadow no-padding",attrs:{type:"border-card"},model:{value:e.activeSFCTab,callback:function(t){e.activeSFCTab=t},expression:"activeSFCTab"}},[n("el-tab-pane",{attrs:{label:"Vue2",name:"vue2"}},[n("code-editor",{attrs:{mode:"html",readonly:!0,"user-worker":!1},model:{value:e.sfcCode,callback:function(t){e.sfcCode=t},expression:"sfcCode"}})],1),n("el-tab-pane",{attrs:{label:"Vue3",name:"vue3"}},[n("code-editor",{attrs:{mode:"html",readonly:!0,"user-worker":!1},model:{value:e.sfcCodeV3,callback:function(t){e.sfcCodeV3=t},expression:"sfcCodeV3"}})],1)],1),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{staticClass:"copy-vue2-sfc-btn",attrs:{type:"primary","data-clipboard-text":e.sfcCode},on:{click:e.copyV2SFC}},[e._v(" "+e._s(e.i18nt("designer.hint.copyVue2SFC")))]),n("el-button",{staticClass:"copy-vue3-sfc-btn",attrs:{type:"primary","data-clipboard-text":e.sfcCodeV3},on:{click:e.copyV3SFC}},[e._v(" "+e._s(e.i18nt("designer.hint.copyVue3SFC")))]),n("el-button",{on:{click:e.saveV2SFC}},[e._v(e._s(e.i18nt("designer.hint.saveVue2SFC")))]),n("el-button",{on:{click:e.saveV3SFC}},[e._v(e._s(e.i18nt("designer.hint.saveVue3SFC")))]),n("el-button",{attrs:{type:""},on:{click:function(t){e.showExportSFCDialogFlag=!1}}},[e._v(" "+e._s(e.i18nt("designer.hint.closePreview")))])],1)],1):e._e()],1)},D=[],W=(n("e9c4"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form",{ref:"renderForm",staticClass:"render-form",class:[e.customClass],attrs:{"label-position":e.labelPosition,size:e.size,"label-width":e.labelWidth,"validate-on-rule-change":!1,model:e.formDataModel},nativeOn:{submit:function(e){e.preventDefault()}}},[e._l(e.widgetList,(function(t,i){return["container"===t.category?[n(e.getContainerWidgetName(t),{key:t.id,tag:"component",attrs:{widget:t,"parent-list":e.widgetList,"index-of-parent-list":i,"parent-widget":null},scopedSlots:e._u([e._l(Object.keys(e.$scopedSlots),(function(t){return{key:t,fn:function(n){return[e._t(t,null,null,n)]}}}))],null,!0)})]:[n(e.getWidgetName(t),{key:t.id,tag:"component",attrs:{field:t,"form-model":e.formDataModel,designer:null,"parent-list":e.widgetList,"index-of-parent-list":i,"parent-widget":null},scopedSlots:e._u([e._l(Object.keys(e.$scopedSlots),(function(t){return{key:t,fn:function(n){return[e._t(t,null,null,n)]}}}))],null,!0)})]]}))],2)}),B=[],H=n("2909"),z=(n("e6cf"),n("b64b"),n("c6e3")),V=(n("e260"),n("ddb0"),n("8bbf")),U=n.n(V),K=n("10ae");K.keys().map((function(e){var t=K(e).default;U.a.component(t.name,t)}));var G,Y=n("c029"),J={name:"VFormRender",componentName:"VFormRender",mixins:[z["a"],E["b"]],components:Object(p["a"])({},Y["a"]),props:{formJson:{type:Object,default:function(){return Object(O["b"])()}},formData:{type:Object,default:function(){return{}}},optionData:{type:Object,default:function(){return{}}},previewState:{type:Boolean,default:!1},globalDsv:{type:Object,default:function(){return{}}}},provide:function(){var e=this;return{refList:this.widgetRefList,sfRefList:this.subFormRefList,formConfig:this.formConfig,getGlobalDsv:function(){return e.globalDsv},globalOptionData:this.optionData,getOptionData:function(){return e.optionData},globalModel:{formModel:this.formDataModel},previewState:this.previewState}},data:function(){return{formJsonObj:this.formJson,formDataModel:{},widgetRefList:{},subFormRefList:{},formId:null,externalComponents:{}}},computed:{formConfig:function(){return this.formJsonObj.formConfig},widgetList:function(){return this.formJsonObj.widgetList},labelPosition:function(){return this.formConfig&&this.formConfig.labelPosition?this.formConfig.labelPosition:"left"},labelWidth:function(){return this.formConfig&&this.formConfig.labelWidth?this.formConfig.labelWidth+"px":"80px"},size:function(){return this.formConfig&&this.formConfig.size?this.formConfig.size:"medium"},customClass:function(){return this.formConfig&&this.formConfig.customClass?this.formConfig.customClass:""}},watch:{},created:function(){this.buildFormModel(this.formJsonObj?this.formJsonObj.widgetList:null),this.initFormObject()},mounted:function(){this.initLocale(),this.handleOnMounted()},methods:{initFormObject:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.formId="vfRender"+Object(O["f"])(),e&&this.insertCustomStyleAndScriptNode(),this.addFieldChangeEventHandler(),this.addFieldValidateEventHandler(),this.registerFormToRefList(),this.handleOnCreated()},getContainerWidgetName:function(e){return"grid"===e.type?"vf-grid-item":e.type+"-item"},getWidgetName:function(e){return e.type+"-widget"},initLocale:function(){var e=localStorage.getItem("v_form_locale")||"zh-CN";this.changeLanguage(e)},insertCustomStyleAndScriptNode:function(){this.formConfig&&this.formConfig.cssCode&&Object(O["k"])(this.formConfig.cssCode,this.previewState?"":this.formId),this.formConfig&&this.formConfig.functions&&Object(O["l"])(this.formConfig.functions,this.previewState?"":this.formId)},buildFormModel:function(e){var t=this;e&&e.length>0&&e.forEach((function(e){t.buildDataFromWidget(e)}))},buildDataFromWidget:function(e){var t=this;if("container"===e.category)if("grid"===e.type)e.cols&&e.cols.length>0&&e.cols.forEach((function(e){t.buildDataFromWidget(e)}));else if("table"===e.type)e.rows&&e.rows.length>0&&e.rows.forEach((function(e){e.cols&&e.cols.length>0&&e.cols.forEach((function(e){t.buildDataFromWidget(e)}))}));else if("tab"===e.type)e.tabs&&e.tabs.length>0&&e.tabs.forEach((function(e){e.widgetList&&e.widgetList.length>0&&e.widgetList.forEach((function(e){t.buildDataFromWidget(e)}))}));else if("sub-form"===e.type){var n=e.options.name;if(this.formData.hasOwnProperty(n)){var i=this.formData[n];this.$set(this.formDataModel,n,Object(O["d"])(i))}else{var o={};e.options.showBlankRow?(e.widgetList.forEach((function(e){e.formItemFlag&&(o[e.options.name]=e.options.defaultValue)})),this.$set(this.formDataModel,n,[o])):this.$set(this.formDataModel,n,[])}}else"grid-col"===e.type||e.type,e.widgetList&&e.widgetList.length>0&&e.widgetList.forEach((function(e){t.buildDataFromWidget(e)}));else if(e.formItemFlag)if(this.formData.hasOwnProperty(e.options.name)){var r=this.formData[e.options.name];this.$set(this.formDataModel,e.options.name,Object(O["d"])(r))}else this.$set(this.formDataModel,e.options.name,e.options.defaultValue)},addFieldChangeEventHandler:function(){var e=this;this.$off("fieldChange"),this.$on("fieldChange",(function(t,n,i,o,r){e.handleFieldDataChange(t,n,i,o,r),e.$emit("formChange",t,n,i,e.formDataModel,o,r)}))},addFieldValidateEventHandler:function(){var e=this;this.$off("fieldValidation"),this.$on("fieldValidation",(function(t){e.$refs.renderForm.validateField(t)}))},registerFormToRefList:function(){this.widgetRefList["v_form_ref"]=this},handleFieldDataChange:function(e,t,n,i,o){if(this.formConfig&&this.formConfig.onFormDataChange){var r=new Function("fieldName","newValue","oldValue","formModel","subFormName","subFormRowIndex",this.formConfig.onFormDataChange);r.call(this,e,t,n,this.formDataModel,i,o)}},handleOnCreated:function(){if(this.formConfig&&this.formConfig.onFormCreated){var e=new Function(this.formConfig.onFormCreated);e.call(this)}},handleOnMounted:function(){if(this.formConfig&&this.formConfig.onFormMounted){var e=new Function(this.formConfig.onFormMounted);e.call(this)}},findWidgetAndSetDisabled:function(e,t){var n=this.getWidgetRef(e);n?n.setDisabled(t):this.findWidgetOfSubFormAndSetDisabled(e,t)},findWidgetOfSubFormAndSetDisabled:function(e,t){var n=this;this.findWidgetNameInSubForm(e).forEach((function(e){var i=n.getWidgetRef(e);i&&i.setDisabled(t)}))},findWidgetAndSetHidden:function(e,t){var n=this.getWidgetRef(e);n?n.setHidden(t):this.findWidgetOfSubFormAndSetHidden(e,t)},findWidgetOfSubFormAndSetHidden:function(e,t){var n=this;this.findWidgetNameInSubForm(e).forEach((function(e){var i=n.getWidgetRef(e);i&&i.setHidden(t)}))},findWidgetNameInSubForm:function(e){var t=[],n=null,i=function(t,i){t.options&&t.options.name===e&&(n=i.options.name)};if(Object(O["t"])(this.widgetList,i),n){var o=this.getWidgetRef(n);if(o){var r=o.getRowIdData();r&&r.length>0&&r.forEach((function(n){t.push(e+"@row"+n)}))}}return t},changeLanguage:function(e){Object(E["a"])(e)},getNativeForm:function(){return this.$refs["renderForm"]},getFormRef:function(){return this},getWidgetRef:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.widgetRefList[e];return!n&&t&&this.$message.error(this.i18nt("render.hint.refNotFound")+e),n},clearFormDataModel:function(){for(var e in this.formDataModel)delete this.formDataModel[e]},setFormJson:function(e){var t=this;if(e)if("string"===typeof e||e.constructor===Object){var n=null;if(n="string"===typeof e?JSON.parse(e):e,!n.formConfig||!n.widgetList)return void this.$message.error("Invalid format of form json.");this.clearFormDataModel(),this.buildFormModel(n.widgetList),this.$set(this.formJsonObj,"formConfig",n.formConfig),this._provided.formConfig=n.formConfig,this.$set(this.formJsonObj,"widgetList",n.widgetList),this.insertCustomStyleAndScriptNode(),this.$nextTick((function(){t.initFormObject(!1),t.handleOnMounted()}))}else this.$message.error("Set form json failed.")},reloadOptionData:function(e){var t=[];e&&"string"===typeof e?t=[e]:e&&Array.isArray(e)&&(t=Object(H["a"])(e)),this.broadcast("FieldWidget","reloadOptionItems",[t])},getFormData:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!t)return this.formDataModel;var n=function(){},i=new window.Promise((function(e,t){n=function(n,i){i?t(i):e(n)}}));return this.$refs["renderForm"].validate((function(t){t?n(e.formDataModel):n(e.formDataModel,e.i18nt("render.hint.validationFailed"))})),i},setFormData:function(e){var t=this;Object.keys(this.formDataModel).forEach((function(n){e&&e.hasOwnProperty(n)&&(t.formDataModel[n]=Object(O["d"])(e[n]))})),this.broadcast("ContainerItem","setFormData",this.formDataModel),this.broadcast("FieldWidget","setFormData",this.formDataModel)},getFieldValue:function(e){var t=this,n=this.getWidgetRef(e);if(n&&n.getValue)return n.getValue();if(!n){var i=[];return this.findWidgetNameInSubForm(e).forEach((function(e){var n=t.getWidgetRef(e);n&&n.getValue&&i.push(n.getValue())})),i}},setFieldValue:function(e,t){var n=this,i=this.getWidgetRef(e);i&&i.setValue&&i.setValue(t),i||this.findWidgetNameInSubForm(e).forEach((function(e){var i=n.getWidgetRef(e);i&&i.setValue&&i.setValue(t)}))},getSubFormValues:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.subFormRefList[e];return n.getSubFormValues(t)},setSubFormValues:function(e,t){},disableForm:function(){var e=this,t=Object.keys(this.widgetRefList);t.forEach((function(t){var n=e.getWidgetRef(t);n&&(n.widget&&"sub-form"===n.widget.type?n.disableSubForm():n.setDisabled&&n.setDisabled(!0))}))},enableForm:function(){var e=this,t=Object.keys(this.widgetRefList);t.forEach((function(t){var n=e.getWidgetRef(t);n&&(n.widget&&"sub-form"===n.widget.type?n.enableSubForm():n.setDisabled&&n.setDisabled(!1))}))},resetForm:function(){var e=this,t=Object.keys(this.subFormRefList);t.forEach((function(t){e.subFormRefList[t].resetSubForm&&e.subFormRefList[t].resetSubForm()}));var n=Object.keys(this.widgetRefList);n.forEach((function(t){var n=e.getWidgetRef(t);n&&!n.subFormItemFlag&&n.resetField&&n.resetField()})),this.$nextTick((function(){e.clearValidate()}))},clearValidate:function(e){this.$refs.renderForm.clearValidate(e)},validateForm:function(e){this.$refs["renderForm"].validate((function(t){e(t)}))},validateFields:function(){},disableWidgets:function(e){var t=this;e&&("string"===typeof e?this.findWidgetAndSetDisabled(e,!0):Array.isArray(e)&&e.forEach((function(e){t.findWidgetAndSetDisabled(e,!0)})))},enableWidgets:function(e){var t=this;e&&("string"===typeof e?this.findWidgetAndSetDisabled(e,!1):Array.isArray(e)&&e.forEach((function(e){t.findWidgetAndSetDisabled(e,!1)})))},hideWidgets:function(e){var t=this;e&&("string"===typeof e?this.findWidgetAndSetHidden(e,!0):Array.isArray(e)&&e.forEach((function(e){t.findWidgetAndSetHidden(e,!0)})))},showWidgets:function(e){var t=this;e&&("string"===typeof e?this.findWidgetAndSetHidden(e,!1):Array.isArray(e)&&e.forEach((function(e){t.findWidgetAndSetHidden(e,!1)})))},getFieldWidgets:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e?Object(O["h"])(e):Object(O["h"])(this.formJsonObj.widgetList)},getContainerWidgets:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e?Object(O["g"])(e):Object(O["g"])(this.formJsonObj.widgetList)},addEC:function(e,t){this.externalComponents[e]=t},hasEC:function(e){return this.externalComponents.hasOwnProperty(e)},getEC:function(e){return this.externalComponents[e]},getGlobalDsv:function(){return this.globalDsv}}},X=J,Z=(n("d312"),Object(R["a"])(X,W,B,!1,null,"5fc8e448",null)),Q=Z.exports,ee=n("9470"),te=n("b311"),ne=n.n(te),ie=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"vue",n=JSON.stringify(e);return"html"===t?'<!DOCTYPE html>\n<html>\n<head>\n\t<meta charset="UTF-8">\n\t<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no" />\n\t<title>VForm Demo</title>\n\t<link rel="stylesheet" href="https://cdn.staticfile.org/element-ui/2.15.7/theme-chalk/index.min.css">\n\t<link rel="stylesheet" href="https://ks3-cn-beijing.ksyun.com/vform2021/VFormRender.css?t=20210720">\n\t<style type="text/css">\n\t</style>\n</head>\n<body>\n\n <div id="app">\n\t <v-form-render :form-json="formJson" :form-data="formData" :option-data="optionData" ref="vFormRef">\n </v-form-render>\n\t <el-button type="primary" @click="submitForm">Submit</el-button>\n </div>\n\n<script type="text/javascript">\n if (!!window.ActiveXObject || "ActiveXObject" in window) { //IE load polyfill.js for Promise\n var scriptEle = document.createElement("script");\n scriptEle.type = "text/javascript";\n scriptEle.src = "https://cdn.bootcss.com/babel-polyfill/6.23.0/polyfill.min.js"\n document.body.appendChild(scriptEle)\n }\n<\/script>\n<script src="https://lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/vue/2.6.14/vue.min.js"><\/script>\n<script src="https://cdn.staticfile.org/element-ui/2.15.7/index.min.js"><\/script>\n<script src="https://ks3-cn-beijing.ksyun.com/vform2021/VFormRender.umd.min.js?t=20210720"><\/script>\n<script>\n\tnew Vue({\n el: \'#app\',\n data: {\n formJson: '.concat(n,",\n formData: {},\n optionData: {}\n },\n methods: {\n submitForm() {\n this.$refs.vFormRef.getFormData().then( function(formData) {\n // Form Validation OK\n alert( JSON.stringify(formData) )\n }).catch( function(error) {\n // Form Validation Failed\n alert(error)\n })\n }\n }\n\t});\n<\/script>\n</body>\n</html>"):'<template>\n <div>\n <v-form-render :form-json="formJson" :form-data="formData" :option-data="optionData" ref="vFormRef">\n </v-form-render>\n <el-button type="primary" @click="submitForm">Submit</el-button>\n </div>\n</template>\n<script>\n export default {\n data() {\n return {\n formJson: '.concat(n,",\n formData: {},\n optionData: {}\n }\n },\n methods: {\n submitForm() {\n this.$refs.vFormRef.getFormData().then(formData => {\n // Form Validation OK\n alert( JSON.stringify(formData) )\n }).catch(error => {\n // Form Validation failed\n this.$message.error(error)\n })\n }\n }\n }\n<\/script>")},oe=(n("a15b"),n("99af"),n("71bc")),re=n("01ea"),se={html:{indent_size:"2",indent_char:" ",max_preserve_newlines:"-1",preserve_newlines:!1,keep_array_indentation:!1,break_chained_methods:!1,indent_scripts:"separate",brace_style:"end-expand",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:"110",indent_inner_html:!0,comma_first:!1,e4x:!0,indent_empty_lines:!0},js:{indent_size:"2",indent_char:" ",max_preserve_newlines:"-1",preserve_newlines:!1,keep_array_indentation:!1,break_chained_methods:!1,indent_scripts:"normal",brace_style:"end-expand",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!0,end_with_newline:!0,wrap_line_length:"110",indent_inner_html:!0,comma_first:!1,e4x:!0,indent_empty_lines:!0},css:{indent_size:"2",indent_char:" ",max_preserve_newlines:"-1",preserve_newlines:!1,keep_array_indentation:!1,break_chained_methods:!1,indent_scripts:"normal",brace_style:"end-expand",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!0,end_with_newline:!0,wrap_line_length:"110",indent_inner_html:!0,comma_first:!1,e4x:!0,indent_empty_lines:!0}};function ae(e){G?e(G):Object(O["p"])(re["b"],(function(){G=beautifier,e(G)}))}var le=function(e,t){var n=[],i=[],o=[],r=[];Object(O["t"])(t,(function(s){Object(oe["b"])(e,t,n)(s),Object(oe["d"])(e,t,i)(s),Object(oe["c"])(e,t,o)(s),Object(oe["e"])(e,t,r)(s)}));var s=Object(oe["a"])(e,t),a=" import { defineComponent, toRefs, reactive, getCurrentInstance } from 'vue'\n \n export default defineComponent({\n components: {},\n props: {},\n setup() {\n const state = reactive({\n ".concat(e.modelName,": {\n ").concat(n.join("\n"),"\n },\n \n ").concat(e.rulesName,": {\n ").concat(i.join("\n"),"\n },\n \n ").concat(s.join("\n"),"\n \n ").concat(o.join("\n"),"\n \n ").concat(r.join("\n"),"\n })\n \n const instance = getCurrentInstance()\n \n const submitForm = () => {\n instance.proxy.$refs['vForm'].validate(valid => {\n if (!valid) return\n \n //TODO: 提交表单\n })\n }\n \n const resetForm = () => {\n instance.proxy.$refs['vForm'].resetFields()\n }\n \n return {\n ...toRefs(state),\n submitForm,\n resetForm\n }\n }\n })");return a};function ce(e,t){var n=e.options,i=[];return t&&i.push(t),n.customClass&&n.customClass.length>0&&i.push(n.customClass.join(" ")),i.length>0?'class="'.concat(i.join(" "),'"'):""}var ue={grid:function(e,t){var n=ce(e),i="<el-row ".concat(n,">\n").concat(e.cols.map((function(e){var n=e.options,i=n.responsive?"":':span="'.concat(n.span,'"'),o=n.responsive?':md="'.concat(n.md,'"'):"",r=n.responsive?':sm="'.concat(n.sm,'"'):"",s=n.responsive?':xs="'.concat(n.xs,'"'):"",a=n.offset?':offset="'.concat(n.offset,'"'):"",l=n.push?':push="'.concat(n.push,'"'):"",c=n.pull?':pull="'.concat(n.pull,'"'):"",u=ce(e,"grid-cell");return"<el-col ".concat(i," ").concat(o," ").concat(r," ").concat(s," ").concat(a," ").concat(l," ").concat(c," ").concat(u,">\n ").concat(e.widgetList.map((function(e){return"container"===e.category?de(e,t):be(e,t)})).join(""),"\n </el-col>")})).join(""),"\n</el-row>");return i},table:function(e,t){var n=ce(e,"table-layout"),i='<div class="table-container">\n <table '.concat(n,"><tbody>\n ").concat(e.rows.map((function(e){return"<tr>".concat(e.cols.filter((function(e){return!e.merged})).map((function(e){var n=e.options,i=ce(e,"table-cell"),o=isNaN(n.colspan)||1===n.colspan?"":'colspan="'.concat(n.colspan,'"'),r=isNaN(n.rowspan)||1===n.rowspan?"":'rowspan="'.concat(n.rowspan,'"'),s=[];n.cellWidth&&s.push("width: "+n.cellWidth+" !important"),n.cellHeight&&s.push("height: "+n.cellHeight+" !important");var a=s.length>0?'style="'.concat(s.join(";"),'"'):"";return"<td ".concat(i," ").concat(o," ").concat(r," ").concat(a,">").concat(e.widgetList.map((function(e){return"container"===e.category?de(e,t):be(e,t)})).join(""),"\n </td>")})).join(""),"</tr>")})).join(""),"\n </tbody></table>\n</div>");return i},tab:function(e,t){var n=ce(e),i=e.tabs&&e.tabs.length>0?'v-model="'.concat(e.options.name,'ActiveTab"'):"",o='<div class="tab-container">\n <el-tabs '.concat(i,' type="').concat(e.displayType,'" ').concat(n,">\n ").concat(e.tabs.map((function(e){var n=e.options,i=!0===n.disabled?"disabled":"";return'<el-tab-pane name="'.concat(n.name,'" label="').concat(n.label,'" ').concat(i,">\n ").concat(e.widgetList.map((function(e){return"container"===e.category?de(e,t):be(e,t)})).join(""),"</el-tab-pane>")})).join(""),"\n </el-tabs>\n</div>");return o},"sub-form":function(e,t){}};function de(e,t){return ue[e.type]?ue[e.type](e,t):null}function he(e,t){var n=e.options;return{vModel:'v-model="'.concat(t.modelName,".").concat(n.name,'"'),readonly:n.readonly?'readonly="true"':"",disabled:n.disabled?':disabled="true"':"",size:n.size?'size="'.concat(n.size,'"'):"",type:n.type?'type="'.concat("number"===n.type?"text":n.type,'"'):"",showPassword:n.showPassword?':show-password="'.concat(n.showPassword,'"'):"",placeholder:n.placeholder?'placeholder="'.concat(n.placeholder,'"'):"",rows:Object(O["n"])(n.rows)&&!isNaN(n.rows)?'rows="'.concat(n.rows,'"'):"",clearable:n.clearable?"clearable":"",minlength:Object(O["n"])(n.minLength)&&!isNaN(n.minLength)?':minlength="'.concat(n.minLength,'"'):"",maxlength:Object(O["n"])(n.maxLength)&&!isNaN(n.maxLength)?':maxlength="'.concat(n.maxLength,'"'):"",showWordLimit:n.showWordLimit?':show-word-limit="true"':"",prefixIcon:n.prefixIcon?'prefix-icon="'.concat(n.prefixIcon,'"'):"",suffixIcon:n.suffixIcon?'suffix-icon="'.concat(n.suffixIcon,'"'):"",controlsPosition:"right"===n.controlsPosition?'controls-position="right"':"",min:Object(O["n"])(n.min)&&!isNaN(n.min)?':min="'.concat(n.min,'"'):"",max:Object(O["n"])(n.max)&&!isNaN(n.max)?':max="'.concat(n.max,'"'):"",precision:Object(O["n"])(n.precision)&&!isNaN(n.precision)?':precision="'.concat(n.precision,'"'):"",step:Object(O["n"])(n.step)&&!isNaN(n.step)?':step="'.concat(n.step,'"'):"",filterable:n.filterable?"filterable":"",allowCreate:n.allowCreate?"allow-create":"",defaultFirstOption:n.filterable&&n.allowCreate?"default-first-option":"",multiple:n.multiple?"multiple":"",multipleLimit:!isNaN(n.multipleLimit)&&n.multipleLimit>0?':multiple-limit="'.concat(n.multipleLimit,'"'):"",automaticDropdown:n.automaticDropdown?"automatic-dropdown":"",remote:n.remote?"remote":"",format:n.format?'format="'.concat(n.format,'"'):"",valueFormat:n.valueFormat?'value-format="'.concat(n.valueFormat,'"'):"",editable:n.editable?':editable="'.concat(n.editable,'"'):"",startPlaceholder:n.startPlaceholder?'start-placeholder="'.concat(n.startPlaceholder,'"'):"",endPlaceholder:n.endPlaceholder?'end-placeholder="'.concat(n.endPlaceholder,'"'):"",activeText:n.activeText?'active-text="'.concat(n.activeText,'"'):"",inactiveText:n.inactiveText?'inactive-text="'.concat(n.inactiveText,'"'):"",activeColor:n.activeColor?'active-color="'.concat(n.activeColor,'"'):"",inactiveColor:n.inactiveColor?'inactive-color="'.concat(n.inactiveColor,'"'):"",switchWidth:isNaN(n.switchWidth)||40===n.switchWidth?"":':width="'.concat(n.switchWidth,'"'),rateMax:isNaN(n.max)||5===n.max?"":':max="'.concat(n.max,'"'),lowThreshold:isNaN(n.lowThreshold)||2===n.lowThreshold?"":':low-threshold="'.concat(n.lowThreshold,'"'),highThreshold:isNaN(n.highThreshold)||4===n.highThreshold?"":':high-threshold="'.concat(n.highThreshold,'"'),allowHalf:n.allowHalf?"allow-half":"",showText:n.showText?"show-text":"",showScore:n.showScore?"show-score":"",sliderMin:isNaN(n.min)||0===n.min?"":':min="'.concat(n.min,'"'),sliderMax:isNaN(n.max)||100===n.max?"":':max="'.concat(n.max,'"'),sliderStep:isNaN(n.step)||1===n.step?"":':step="'.concat(n.step,'"'),sliderRange:n.range?"range":"",sliderVertical:n.vertical?"vertical":"",uploadAction:n.uploadURL?'action="'.concat(n.uploadURL,'"'):"",withCredentials:n.withCredentials?"with-credentials":"",multipleSelect:n.multipleSelect?"multiple":"",showFileList:n.showFileList?"show-file-list":"",limit:isNaN(n.limit)?"":':limit="'.concat(n.limit,'"'),uploadTipSlotChild:n.uploadTip?'<template #tip><div class="el-upload__tip">'.concat(n.uploadTip,"</div></template>"):"",pictureUploadIconChild:'<template #default><i class="el-icon-plus"></i></template>',fileUploadIconChild:'<template #default><i class="el-icon-plus"></i></template>',buttonType:n.type?'type="'.concat(n.type,'"'):"",buttonPlain:n.plain?"plain":"",buttonRound:n.round?"round":"",buttonCircle:n.circle?"circle":"",buttonIcon:n.icon?'icon="'.concat(n.icon,'"'):"",contentPosition:n.contentPosition&&"center"!==n.contentPosition?'content-position="'.concat(n.contentPosition,'"'):"",appendButtonChild:n.appendButton?'<template #append><el-button class="'.concat(n.buttonIcon,'" ').concat(n.appendButtonDisabled?"disabled":"","></el-button></template>"):""}}function fe(e,t){var n=e.options,i=n.buttonStyle?"el-radio-button":"el-radio",o=n.border?"border":"",r='style="{display: '.concat(n.displayStyle,'}"');return"<".concat(i,' v-for="(item, index) in ').concat(n.name,'Options" :key="index" :label="item.value"\n :disabled="item.disabled" ').concat(o," ").concat(r,">{{item.label}}</").concat(i,">")}function pe(e,t){var n=e.options,i=n.buttonStyle?"el-checkbox-button":"el-checkbox",o=n.border?"border":"",r='style="{display: '.concat(n.displayStyle,'}"');return"<".concat(i,' v-for="(item, index) in ').concat(n.name,'Options" :key="index" :label="item.value"\n :disabled="item.disabled" ').concat(o," ").concat(r,">{{item.label}}</").concat(i,">")}function ge(e,t){var n=e.options,i="el-option";return"<".concat(i,' v-for="(item, index) in ').concat(n.name,'Options" :key="index" :label="item.label"\n :value="item.value" :disabled="item.disabled"></').concat(i,">")}var me={input:function(e,t){var n=he(e,t),i=n.vModel,o=n.readonly,r=n.disabled,s=n.size,a=n.type,l=n.showPassword,c=n.placeholder,u=n.clearable,d=n.minlength,h=n.maxlength,f=n.showWordLimit,p=n.prefixIcon,g=n.suffixIcon,m=n.appendButtonChild;return"<el-input ".concat(i," ").concat(o," ").concat(r," ").concat(s," ").concat(a," ").concat(l," ").concat(c," ").concat(u,"\n ").concat(d," ").concat(h," ").concat(f," ").concat(p," ").concat(g,">").concat(m,"</el-input>")},textarea:function(e,t){var n=he(e,t),i=n.vModel,o=n.readonly,r=n.disabled,s=n.size,a=n.type,l=n.showPassword,c=n.placeholder,u=n.rows,d=n.clearable,h=n.minlength,f=n.maxlength,p=n.showWordLimit;return'<el-input type="textarea" '.concat(i," ").concat(o," ").concat(r," ").concat(s," ").concat(a," ").concat(l," ").concat(c,"\n ").concat(u," ").concat(d," ").concat(h," ").concat(f," ").concat(p,"></el-input>")},number:function(e,t){var n=he(e,t),i=n.vModel,o=n.disabled,r=n.size,s=n.type,a=n.showPassword,l=n.placeholder,c=n.controlsPosition,u=n.min,d=n.max,h=n.precision,f=n.step;return"<el-input-number ".concat(i,' class="full-width-input" ').concat(o," ").concat(r," ").concat(s," ").concat(a,"\n ").concat(l," ").concat(c," ").concat(u," ").concat(d," ").concat(h," ").concat(f,"></el-input-number>")},radio:function(e,t){var n=he(e,t),i=n.vModel,o=n.disabled,r=n.size,s=fe(e,t);return"<el-radio-group ".concat(i," ").concat(o," ").concat(r,">").concat(s,"</el-radio-group>")},checkbox:function(e,t){var n=he(e,t),i=n.vModel,o=n.disabled,r=n.size,s=pe(e,t);return"<el-checkbox-group ".concat(i," ").concat(o," ").concat(r,">").concat(s,"</el-checkbox-group>")},select:function(e,t){var n=he(e,t),i=n.vModel,o=n.disabled,r=n.size,s=n.clearable,a=n.filterable,l=n.allowCreate,c=n.defaultFirstOption,u=n.automaticDropdown,d=n.multiple,h=n.multipleLimit,f=n.remote,p=n.placeholder,g=ge(e,t);return"<el-select ".concat(i,' class="full-width-input" ').concat(o," ").concat(r," ").concat(s," ").concat(a,"\n ").concat(l," ").concat(c," ").concat(u," ").concat(d," ").concat(h," ").concat(p,"\n ").concat(f,">").concat(g,"</el-select>")},time:function(e,t){var n=he(e,t),i=n.vModel,o=n.readonly,r=n.disabled,s=n.size,a=n.placeholder,l=n.clearable,c=n.format,u=n.editable;return"<el-time-picker ".concat(i,' class="full-width-input" ').concat(o," ").concat(r," ").concat(s," ").concat(c,'\n value-format="HH:mm:ss" ').concat(a," ").concat(l," ").concat(u,"></el-time-picker>")},"time-range":function(e,t){var n=he(e,t),i=n.vModel,o=n.readonly,r=n.disabled,s=n.size,a=n.startPlaceholder,l=n.endPlaceholder,c=n.clearable,u=n.format,d=n.editable;return"<el-time-picker is-range ".concat(i,' class="full-width-input" ').concat(o," ").concat(r," ").concat(s," ").concat(u,'\n value-format="HH:mm:ss" ').concat(a," ").concat(l," ").concat(c," ").concat(d,"></el-time-picker>")},date:function(e,t){var n=he(e,t),i=n.vModel,o=n.readonly,r=n.disabled,s=n.size,a=n.type,l=n.placeholder,c=n.clearable,u=n.format,d=n.valueFormat,h=n.editable;return"<el-date-picker ".concat(i," ").concat(a,' class="full-width-input" ').concat(o," ").concat(r," ").concat(s," ").concat(u,"\n ").concat(d," ").concat(l," ").concat(c," ").concat(h,"></el-date-picker>")},"date-range":function(e,t){var n=he(e,t),i=n.vModel,o=n.readonly,r=n.disabled,s=n.size,a=n.type,l=n.startPlaceholder,c=n.endPlaceholder,u=n.clearable,d=n.format,h=n.valueFormat,f=n.editable;return"<el-date-picker is-range ".concat(i," ").concat(a,' class="full-width-input" ').concat(o," ").concat(r," ").concat(s," ").concat(d,"\n ").concat(h," ").concat(l," ").concat(c," ").concat(u," ").concat(f,"></el-date-picker>")},switch:function(e,t){var n=he(e,t),i=n.vModel,o=n.disabled,r=n.activeText,s=n.inactiveText,a=n.activeColor,l=n.inactiveColor,c=n.switchWidth;return"<el-switch ".concat(i," ").concat(o," ").concat(r," ").concat(s," ").concat(a," ").concat(l,"\n ").concat(c,"></el-switch>")},rate:function(e,t){var n=he(e,t),i=n.vModel,o=n.disabled,r=n.rateMax,s=n.lowThreshold,a=n.highThreshold,l=n.allowHalf,c=n.showText,u=n.showScore;return"<el-rate ".concat(i," ").concat(o," ").concat(r," ").concat(s," ").concat(a," ").concat(l,"\n ").concat(c," ").concat(u,"></el-rate>")},color:function(e,t){var n=he(e,t),i=n.vModel,o=n.disabled,r=n.size;return"<el-color-picker ".concat(i," ").concat(o," ").concat(r,"></el-color-picker>")},slider:function(e,t){var n=he(e,t),i=n.vModel,o=n.disabled,r=n.sliderMin,s=n.sliderMax,a=n.sliderStep,l=n.sliderRange,c=n.sliderVertical;return"<el-slider ".concat(i," ").concat(o," ").concat(r," ").concat(s," ").concat(a," ").concat(l,"\n ").concat(c,"></el-slider>")},"picture-upload":function(e,t){var n=he(e,t),i=(n.vModel,n.disabled),o=n.uploadAction,r=n.withCredentials,s=n.multipleSelect,a=n.showFileList,l=n.limit,c=n.uploadTipSlotChild,u=n.pictureUploadIconChild,d=e.options;return'<el-upload :file-list="'.concat(d.name,'FileList" :headers="').concat(d.name,'UploadHeaders" :data="').concat(d.name,'UploadData" \n ').concat(i," ").concat(o,' list-type="picture-card" ').concat(r," ").concat(s," ").concat(a," \n ").concat(l,">").concat(c," ").concat(u,"</el-upload>")},"file-upload":function(e,t){var n=he(e,t),i=(n.vModel,n.disabled),o=n.uploadAction,r=n.withCredentials,s=n.multipleSelect,a=n.showFileList,l=n.limit,c=n.uploadTipSlotChild,u=n.fileUploadIconChild,d=e.options;return'<el-upload :file-list="'.concat(d.name,'FileList" :headers="').concat(d.name,'UploadHeaders" :data="').concat(d.name,'UploadData" \n ').concat(i," ").concat(o,' list-type="picture-card" ').concat(r," ").concat(s," ").concat(a," \n ").concat(l,">").concat(c," ").concat(u,"</el-upload>")},"rich-editor":function(e,t){var n=he(e,t),i=n.vModel,o=n.disabled,r=n.placeholder;return"<vue-editor ".concat(i," ").concat(o," ").concat(r,"></vue-editor>")},cascader:function(e,t){var n=he(e,t),i=n.vModel,o=n.disabled,r=n.size,s=n.clearable,a=n.filterable,l=n.placeholder,c=e.options,u=':options="'.concat(c.name,'Options"');return"<el-cascader ".concat(i,' class="full-width-input" ').concat(u," ").concat(o," ").concat(r," ").concat(s,"\n ").concat(a," ").concat(l,"></el-cascader>")},"static-text":function(e,t){return"<div>".concat(e.options.textContent,"</div>")},"html-text":function(e,t){return'<div v-html="'.concat(e.options.htmlContent,'"></div>')},button:function(e,t){var n=he(e,t),i=n.buttonType,o=n.buttonPlain,r=n.buttonRound,s=n.buttonCircle,a=n.buttonIcon,l=n.disabled;return"<el-button ".concat(i," ").concat(o," ").concat(r," ").concat(s," ").concat(a,"\n ").concat(l,">").concat(e.options.label,"</el-button>")},divider:function(e,t){var n=he(e,t),i=n.contentPosition;return'<el-divider direction="horizontal" '.concat(i,"></el-divider>")}};function be(e,t){var n=e.options,i=n.labelHidden?"":n.label,o=n.labelHidden?'label-width="0"':n.labelWidth?'label-width="'.concat(n.labelWidth,'px"'):"",r=n.labelTooltip?'title="'.concat(n.labelTooltip,'"'):"",s='prop="'.concat(n.name,'"'),a=[];n.required&&a.push("required"),n.customClass&&n.customClass.length>0&&a.push(n.customClass.join(" ")),n.labelAlign?"label-left-align"!==n.labelAlign&&a.push(n.labelAlign):e.formItemFlag&&"label-left-align"!==t.labelAlign&&a.push(t.labelAlign),e.formItemFlag||a.push("static-content-item");var l=a.length>0?'class="'.concat(a.join(" "),'"'):"",c='<template #label><span class="custom-label">'.concat("front"===n.labelIconPosition?n.labelTooltip?'<el-tooltip content="'.concat(n.labelTooltip,'" effect="light"><i class="').concat(n.labelIconClass,'"></i></el-tooltip>').concat(n.label):'<i class="'.concat(n.labelIconClass,'"></i>').concat(n.label):n.labelTooltip?"".concat(n.label,'<el-tooltip content="').concat(n.labelTooltip,'" effect="light"><i class="').concat(n.labelIconClass,'"></i></el-tooltip>'):"".concat(n.label,'<i class="').concat(n.labelIconClass,'"></i>'),"\n</span></template>");!n.labelIconClass&&(c="");var u=me[e.type]?me[e.type](e,t):null,d=!!e.formItemFlag,h=n.hidden?'v-show="false"':"";return d?'<el-form-item label="'.concat(i,'" ').concat(o," ").concat(r," ").concat(s," ").concat(l,">\n ").concat(c,"\n ").concat(u,"\n</el-form-item>"):"<div ".concat(l," ").concat(h,">").concat(u,"</div>")}function ve(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=n?"@submit.prevent":"@submit.native.prevent",o=[];t.forEach((function(t){"container"===t.category?o.push(de(t,e)):o.push(be(t,e))}));var r=' <el-form :model="'.concat(e.modelName,'" ref="').concat(e.refName,'" :rules="').concat(e.rulesName,'"\n label-position="').concat(e.labelPosition,'" label-width="').concat(e.labelWidth,'px" size="').concat(e.size||"medium",'"\n ').concat(i,">\n ").concat(o?o.join("\n"):"","\n</el-form>");return r}var ye=function(e){var t=' .el-input-number.full-width-input, .el-cascader.full-width-input {\n width: 100% !important;\n }\n \n .el-form-item--medium {\n .el-radio {\n line-height: 36px !important;\n }\n \n .el-rate{\n margin-top: 8px;\n }\n }\n\n .el-form-item--small {\n .el-radio {\n line-height: 32px !important;\n }\n \n .el-rate{\n margin-top: 6px;\n }\n }\n\n .el-form-item--mini {\n .el-radio {\n line-height: 28px !important;\n }\n \n .el-rate{\n margin-top: 4px;\n }\n }\n \n .clear-fix:before, .clear-fix:after {\n display: table;\n content: "";\n }\n\n .clear-fix:after {\n clear: both;\n }\n\n .float-right {\n float: right;\n }\n\n'.concat(e.cssCode);return t},we=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=" div.table-container {\n table.table-layout {\n width: 100%;\n table-layout: fixed;\n border-collapse: collapse;\n \n td.table-cell {\n display: table-cell;\n height: 36px;\n border: 1px solid #e1e2e3;\n }\n }\n }\n \n div.tab-container {\n }\n \n .label-left-align ".concat(t?":deep(.el-form-item__label)":"::v-deep .el-form-item__label"," {\n text-align: left;\n }\n\n .label-center-align ").concat(t?":deep(.el-form-item__label)":"::v-deep .el-form-item__label"," {\n text-align: center;\n }\n\n .label-right-align ").concat(t?":deep(.el-form-item__label)":"::v-deep .el-form-item__label"," {\n text-align: right;\n }\n \n .custom-label {\n }\n \n .static-content-item {\n min-height: 20px;\n display: flex;\n align-items: center;\n\n ").concat(t?":deep(.el-divider--horizontal)":"::v-deep .el-divider--horizontal"," {\n margin: 0;\n }\n }");return n},xe=function(e,t){ue[e]=t},Ce=function(e,t){me[e]=t},_e=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=n.html(ve(e,t,i),se.html),r=n.js(i?le(e,t):Object(oe["f"])(e,t),se.js),s=n.css(ye(e),se.css),a=n.css(we(e,i),se.css);return"\x3c!-- \nCodes Generated By VForm:\nhttps://www.vform666.com\n--\x3e\n\n<template>\n".concat(o,"\n</template>\n\n<script>\n").concat(r,'\n<\/script>\n\n<style lang="scss">\n').concat(s,'\n</style>\n\n<style lang="scss" scoped>\n').concat(a,"\n</style>")},ke=n("21a6"),Se={name:"ToolbarPanel",mixins:[E["b"]],components:{VFormRender:Q,CodeEditor:ee["a"],Clipboard:ne.a,SvgIcon:F},props:{designer:Object,globalDsv:{type:Object,default:function(){return{}}}},inject:["getDesignerConfig"],data:function(){return{designerConfig:this.getDesignerConfig(),toolbarWidth:420,showPreviewDialogFlag:!1,showImportJsonDialogFlag:!1,showExportJsonDialogFlag:!1,showExportCodeDialogFlag:!1,showFormDataDialogFlag:!1,showExportSFCDialogFlag:!1,showNodeTreeDrawerFlag:!1,nodeTreeData:[],testFunc:"",importTemplate:"",jsonContent:"",jsonRawContent:"",formDataJson:"",formDataRawJson:"",vueCode:"",htmlCode:"",sfcCode:"",sfcCodeV3:"",activeCodeTab:"vue",activeSFCTab:"vue2",testFormData:{select62173:2},testOptionData:{select62173:[{label:"01",value:1},{label:"22",value:2},{label:"333",value:3}],select001:[{label:"辣椒",value:1},{label:"菠萝",value:2},{label:"丑橘子",value:3}]}}},computed:{formJson:function(){return{widgetList:Object(O["d"])(this.designer.widgetList),formConfig:Object(O["d"])(this.designer.formConfig)}},undoDisabled:function(){return!this.designer.undoEnabled()},redoDisabled:function(){return!this.designer.redoEnabled()},layoutType:function(){return this.designer.getLayoutType()},designerDsv:function(){return this.globalDsv}},watch:{"designer.widgetList":{deep:!0,handler:function(e){}}},mounted:function(){var e=this,t=this.designerConfig.toolbarMaxWidth||420,n=this.designerConfig.toolbarMinWidth||300,i=window.innerWidth-260-300-320-80;this.toolbarWidth=i>=t?t:i<=n?n:i,Object(O["a"])((function(){e.$nextTick((function(){var i=window.innerWidth-260-300-320-80;e.toolbarWidth=i>=t?t:i<=n?n:i}))}))},methods:{showToolButton:function(e){return void 0===this.designerConfig[e]||!!this.designerConfig[e]},buildTreeNodeOfWidget:function(e,t){var n=this,i={id:e.id,label:e.options.label||e.type};t.push(i),void 0!==e.category&&(i.children=[],"grid"===e.type?e.cols.map((function(t){var o={id:t.id,label:t.options.name||e.type,children:[]};i.children.push(o),t.widgetList.map((function(e){n.buildTreeNodeOfWidget(e,o.children)}))})):"table"===e.type?e.rows.map((function(e){var t={id:e.id,label:"table-row",selectable:!1,children:[]};i.children.push(t),e.cols.map((function(e){if(!e.merged){var i=t.children,o={id:e.id,label:"table-cell",children:[]};i.push(o),e.widgetList.map((function(e){n.buildTreeNodeOfWidget(e,o.children)}))}}))})):"tab"===e.type?e.tabs.map((function(t){var o={id:t.id,label:t.options.name||e.type,selectable:!1,children:[]};i.children.push(o),t.widgetList.map((function(e){n.buildTreeNodeOfWidget(e,o.children)}))})):("sub-form"===e.type||"container"===e.category)&&e.widgetList.map((function(e){n.buildTreeNodeOfWidget(e,i.children)})))},refreshNodeTree:function(){var e=this;this.nodeTreeData.length=0,this.designer.widgetList.forEach((function(t){e.buildTreeNodeOfWidget(t,e.nodeTreeData)}))},showNodeTreeDrawer:function(){var e=this;this.refreshNodeTree(),this.showNodeTreeDrawerFlag=!0,this.$nextTick((function(){e.designer.selectedId&&e.$refs.nodeTree.setCurrentKey(e.designer.selectedId)}))},undoHistory:function(){this.designer.undoHistoryStep()},redoHistory:function(){this.designer.redoHistoryStep()},changeLayoutType:function(e){this.designer.changeLayoutType(e)},clearFormWidget:function(){this.designer.clearDesigner(),this.designer.formWidget.clearWidgetRefList()},previewForm:function(){this.showPreviewDialogFlag=!0},saveAsFile:function(e,t){var n=this;this.$prompt(this.i18nt("designer.hint.fileNameForSave"),this.i18nt("designer.hint.saveFileTitle"),{inputValue:t,closeOnClickModal:!1,inputPlaceholder:this.i18nt("designer.hint.fileNameInputPlaceholder")}).then((function(i){var o=i.value;if(o||(o=t),1!=Object(O["j"])("vscode")){var r=new Blob([e],{type:"text/plain;charset=utf-8"});Object(ke["saveAs"])(r,o)}else n.vsSaveFile(o,e)})).catch((function(){}))},vsSaveFile:function(e,t){var n={cmd:"writeFile",data:{fileName:e,code:t}};window.parent.postMessage(n,"*")},importJson:function(){this.importTemplate=JSON.stringify(this.designer.getImportTemplate(),null," "),this.showImportJsonDialogFlag=!0},doJsonImport:function(){try{var e=JSON.parse(this.importTemplate);this.designer.loadFormJson(e),this.showImportJsonDialogFlag=!1,this.$message.success(this.i18nt("designer.hint.importJsonSuccess")),this.designer.emitHistoryChange(),this.designer.emitEvent("form-json-imported",[])}catch(t){this.$message.error(t+"")}},exportJson:function(){var e=Object(O["d"])(this.designer.widgetList),t=Object(O["d"])(this.designer.formConfig);this.jsonContent=JSON.stringify({widgetList:e,formConfig:t},null," "),this.jsonRawContent=JSON.stringify({widgetList:e,formConfig:t}),this.showExportJsonDialogFlag=!0},copyFormJson:function(e){Object(O["c"])(this.jsonRawContent,e,this.$message,this.i18nt("designer.hint.copyJsonSuccess"),this.i18nt("designer.hint.copyJsonFail"))},saveFormJson:function(){this.saveAsFile(this.jsonContent,"vform".concat(Object(O["f"])(),".json"))},exportCode:function(){this.vueCode=ie(this.formJson),this.htmlCode=ie(this.formJson,"html"),this.showExportCodeDialogFlag=!0},copyVueCode:function(e){Object(O["c"])(this.vueCode,e,this.$message,this.i18nt("designer.hint.copyVueCodeSuccess"),this.i18nt("designer.hint.copyVueCodeFail"))},copyHtmlCode:function(e){Object(O["c"])(this.htmlCode,e,this.$message,this.i18nt("designer.hint.copyHtmlCodeSuccess"),this.i18nt("designer.hint.copyHtmlCodeFail"))},saveVueCode:function(){this.saveAsFile(this.vueCode,"vform".concat(Object(O["f"])(),".vue"))},saveHtmlCode:function(){this.saveAsFile(this.htmlCode,"vform".concat(Object(O["f"])(),".html"))},generateSFC:function(){var e=this;ae((function(t){e.sfcCode=_e(e.designer.formConfig,e.designer.widgetList,t),e.sfcCodeV3=_e(e.designer.formConfig,e.designer.widgetList,t,!0),e.showExportSFCDialogFlag=!0}))},copyV2SFC:function(e){Object(O["c"])(this.sfcCode,e,this.$message,this.i18nt("designer.hint.copySFCSuccess"),this.i18nt("designer.hint.copySFCFail"))},copyV3SFC:function(e){Object(O["c"])(this.sfcCodeV3,e,this.$message,this.i18nt("designer.hint.copySFCSuccess"),this.i18nt("designer.hint.copySFCFail"))},saveV2SFC:function(){this.saveAsFile(this.sfcCode,"vformV2-".concat(Object(O["f"])(),".vue"))},saveV3SFC:function(){this.saveAsFile(this.sfcCodeV3,"vformV3-".concat(Object(O["f"])(),".vue"))},getFormData:function(){var e=this;this.$refs["preForm"].getFormData().then((function(t){e.formDataJson=JSON.stringify(t,null," "),e.formDataRawJson=JSON.stringify(t),e.showFormDataDialogFlag=!0})).catch((function(t){e.$message.error(t)}))},copyFormDataJson:function(e){Object(O["c"])(this.formDataRawJson,e,this.$message,this.i18nt("designer.hint.copyJsonSuccess"),this.i18nt("designer.hint.copyJsonFail"))},saveFormData:function(){this.saveAsFile(this.htmlCode,"formData".concat(Object(O["f"])(),".json"))},resetForm:function(){this.$refs["preForm"].resetForm()},setFormDisabled:function(){this.$refs["preForm"].disableForm()},setFormEnabled:function(){this.$refs["preForm"].enableForm()},printFormJson:function(){var e={widgetList:Object(O["d"])(this.designer.widgetList),formConfig:Object(O["d"])(this.designer.formConfig)};console.log(e)},testValidate:function(){console.log("test===",this.$refs["preForm"].validateForm())},testSetFormData:function(){var e={checkbox45524:[1,2]};this.$refs["preForm"].setFormData(e)},testReloadOptionData:function(){this.testOptionData["select001"].push({label:"aaa",value:888}),this.$refs.preForm.reloadOptionData("select001")},handleFormChange:function(e,t,n,i){},testOnAppendButtonClick:function(e){console.log("test",e)},testOnButtonClick:function(e){console.log("test",e)},findWidgetById:function(e){var t=null;return Object(O["r"])(this.designer.widgetList,(function(n){n.id===e&&(t=n)})),t},onNodeTreeClick:function(e,t,n){if(void 0===e.selectable||e.selectable){var i=e.id,o=this.findWidgetById(i);o&&this.designer.setSelected(o)}else this.$message.info(this.i18nt("designer.hint.currentNodeCannotBeSelected"))}}},Oe=Se,Ee=(n("ceec"),Object(R["a"])(Oe,N,D,!1,null,"7fab259c",null)),Le=Ee.exports,Me=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-container",{staticClass:"panel-container"},[n("el-tabs",{staticStyle:{height:"100%",overflow:"hidden"},attrs:{"active-name":e.activeTab}},[n("el-tab-pane",{attrs:{label:e.i18nt("designer.hint.widgetSetting"),name:"1"}},[n("el-scrollbar",{staticClass:"setting-scrollbar",style:{height:e.scrollerHeight}},[e.designer.selectedWidget&&!e.designer.selectedWidget.category?[n("el-form",{staticClass:"setting-form",attrs:{model:e.optionModel,size:"mini","label-position":"left","label-width":"120px"},nativeOn:{submit:function(e){e.preventDefault()}}},[n("el-collapse",{staticClass:"setting-collapse",model:{value:e.widgetActiveCollapseNames,callback:function(t){e.widgetActiveCollapseNames=t},expression:"widgetActiveCollapseNames"}},[e.showCollapse(e.commonProps)?n("el-collapse-item",{attrs:{name:"1",title:e.i18nt("designer.setting.commonSetting")}},[e._l(e.commonProps,(function(t,i){return[e.hasPropEditor(i,t)?n(e.getPropEditor(i,t),{tag:"component",attrs:{designer:e.designer,"selected-widget":e.selectedWidget,"option-model":e.optionModel}}):e._e()]}))],2):e._e(),e.showCollapse(e.advProps)?n("el-collapse-item",{attrs:{name:"2",title:e.i18nt("designer.setting.advancedSetting")}},[e._l(e.advProps,(function(t,i){return[e.hasPropEditor(i,t)?n(e.getPropEditor(i,t),{tag:"component",attrs:{designer:e.designer,"selected-widget":e.selectedWidget,"option-model":e.optionModel}}):e._e()]}))],2):e._e(),e.showEventCollapse()&&e.showCollapse(e.eventProps)?n("el-collapse-item",{attrs:{name:"3",title:e.i18nt("designer.setting.eventSetting")}},[e._l(e.eventProps,(function(t,i){return[e.hasPropEditor(i,t)?n(e.getPropEditor(i,t),{tag:"component",attrs:{designer:e.designer,"selected-widget":e.selectedWidget,"option-model":e.optionModel}}):e._e()]}))],2):e._e()],1)],1)]:e._e(),e.designer.selectedWidget&&e.designer.selectedWidget.category?[n("el-form",{staticClass:"setting-form",attrs:{model:e.optionModel,size:"mini","label-position":"left","label-width":"120px"},nativeOn:{submit:function(e){e.preventDefault()}}},[n("el-collapse",{staticClass:"setting-collapse",model:{value:e.widgetActiveCollapseNames,callback:function(t){e.widgetActiveCollapseNames=t},expression:"widgetActiveCollapseNames"}},[e.showCollapse(e.commonProps)?n("el-collapse-item",{attrs:{name:"1",title:e.i18nt("designer.setting.commonSetting")}},[e._l(e.commonProps,(function(t,i){return[e.hasPropEditor(i,t)?n(e.getPropEditor(i,t),{tag:"component",attrs:{designer:e.designer,"selected-widget":e.selectedWidget,"option-model":e.optionModel}}):e._e()]}))],2):e._e(),e.showCollapse(e.advProps)?n("el-collapse-item",{attrs:{name:"2",title:e.i18nt("designer.setting.advancedSetting")}},[e._l(e.advProps,(function(t,i){return[e.hasPropEditor(i,t)?n(e.getPropEditor(i,t),{tag:"component",attrs:{designer:e.designer,"selected-widget":e.selectedWidget,"option-model":e.optionModel}}):e._e()]}))],2):e._e(),e.showEventCollapse()&&e.showCollapse(e.eventProps)?n("el-collapse-item",{attrs:{name:"3",title:e.i18nt("designer.setting.eventSetting")}},[e._l(e.eventProps,(function(t,i){return[e.hasPropEditor(i,t)?n(e.getPropEditor(i,t),{tag:"component",attrs:{designer:e.designer,"selected-widget":e.selectedWidget,"option-model":e.optionModel}}):e._e()]}))],2):e._e()],1)],1)]:e._e()],2)],1),e.designer?n("el-tab-pane",{attrs:{label:e.i18nt("designer.hint.formSetting"),name:"2"}},[n("el-scrollbar",{staticClass:"setting-scrollbar",style:{height:e.scrollerHeight}},[n("form-setting",{attrs:{designer:e.designer,"form-config":e.formConfig}})],1)],1):e._e()],1),e.showWidgetEventDialogFlag?n("el-dialog",{directives:[{name:"dialog-drag",rawName:"v-dialog-drag"}],staticClass:"small-padding-dialog",attrs:{title:e.i18nt("designer.setting.editWidgetEventHandler"),visible:e.showWidgetEventDialogFlag,"show-close":!0,"append-to-body":"","close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":!0},on:{"update:visible":function(t){e.showWidgetEventDialogFlag=t}}},[n("el-alert",{attrs:{type:"info",closable:!1,title:e.eventHeader}}),n("code-editor",{ref:"ecEditor",attrs:{mode:"javascript",readonly:!1},model:{value:e.eventHandlerCode,callback:function(t){e.eventHandlerCode=t},expression:"eventHandlerCode"}}),n("el-alert",{attrs:{type:"info",closable:!1,title:"}"}}),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.showWidgetEventDialogFlag=!1}}},[e._v(" "+e._s(e.i18nt("designer.hint.cancel")))]),n("el-button",{attrs:{type:"primary"},on:{click:e.saveEventHandler}},[e._v(" "+e._s(e.i18nt("designer.hint.confirm")))])],1)],1):e._e()],1)},Ae=[],Te=(n("ac1f"),n("5319"),n("0654")),Re={};Te.keys().map((function(e){var t=Te(e).default;Re[t.name]=t}));var $e=Re,Fe=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-form",{staticClass:"setting-form",attrs:{model:e.formConfig,size:"mini","label-position":"left","label-width":"120px"},nativeOn:{submit:function(e){e.preventDefault()}}},[n("el-collapse",{staticClass:"setting-collapse",model:{value:e.formActiveCollapseNames,callback:function(t){e.formActiveCollapseNames=t},expression:"formActiveCollapseNames"}},[n("el-collapse-item",{attrs:{name:"1",title:e.i18nt("designer.setting.basicSetting")}},[n("el-form-item",{attrs:{label:e.i18nt("designer.setting.formSize")}},[n("el-select",{model:{value:e.formConfig.size,callback:function(t){e.$set(e.formConfig,"size",t)},expression:"formConfig.size"}},e._l(e.formSizes,(function(e){return n("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),n("el-form-item",{attrs:{label:e.i18nt("designer.setting.labelPosition")}},[n("el-radio-group",{staticClass:"radio-group-custom",model:{value:e.formConfig.labelPosition,callback:function(t){e.$set(e.formConfig,"labelPosition",t)},expression:"formConfig.labelPosition"}},[n("el-radio-button",{attrs:{label:"left"}},[e._v(e._s(e.i18nt("designer.setting.leftPosition")))]),n("el-radio-button",{attrs:{label:"top"}},[e._v(e._s(e.i18nt("designer.setting.topPosition")))])],1)],1),n("el-form-item",{attrs:{label:e.i18nt("designer.setting.labelAlign")}},[n("el-radio-group",{staticClass:"radio-group-custom",model:{value:e.formConfig.labelAlign,callback:function(t){e.$set(e.formConfig,"labelAlign",t)},expression:"formConfig.labelAlign"}},[n("el-radio-button",{attrs:{label:"label-left-align"}},[e._v(e._s(e.i18nt("designer.setting.leftAlign")))]),n("el-radio-button",{attrs:{label:"label-center-align"}},[e._v(e._s(e.i18nt("designer.setting.centerAlign")))]),n("el-radio-button",{attrs:{label:"label-right-align"}},[e._v(e._s(e.i18nt("designer.setting.rightAlign")))])],1)],1),n("el-form-item",{attrs:{label:e.i18nt("designer.setting.labelWidth")}},[n("el-input-number",{staticStyle:{width:"100%"},attrs:{min:0},model:{value:e.formConfig.labelWidth,callback:function(t){e.$set(e.formConfig,"labelWidth",t)},expression:"formConfig.labelWidth"}})],1),n("el-form-item",{attrs:{label:e.i18nt("designer.setting.formCss")}},[n("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:"",round:""},on:{click:e.editFormCss}},[e._v(e._s(e.i18nt("designer.setting.addCss")))])],1),n("el-form-item",{attrs:{label:e.i18nt("designer.setting.customClass")}},[n("el-select",{attrs:{multiple:"",filterable:"","allow-create":"","default-first-option":""},model:{value:e.formConfig.customClass,callback:function(t){e.$set(e.formConfig,"customClass",t)},expression:"formConfig.customClass"}},e._l(e.cssClassList,(function(e,t){return n("el-option",{key:t,attrs:{label:e,value:e}})})),1)],1),n("el-form-item",{attrs:{label:e.i18nt("designer.setting.globalFunctions")}},[n("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:"",round:""},on:{click:e.editGlobalFunctions}},[e._v(e._s(e.i18nt("designer.setting.addEventHandler")))])],1),n("el-form-item",{attrs:{"label-width":"0"}},[n("el-divider",{staticClass:"custom-divider"},[e._v(e._s(e.i18nt("designer.setting.formSFCSetting")))])],1),n("el-form-item",{attrs:{label:e.i18nt("designer.setting.formModelName")}},[n("el-input",{attrs:{type:"text"},model:{value:e.formConfig.modelName,callback:function(t){e.$set(e.formConfig,"modelName",t)},expression:"formConfig.modelName"}})],1),n("el-form-item",{attrs:{label:e.i18nt("designer.setting.formRefName")}},[n("el-input",{attrs:{type:"text"},model:{value:e.formConfig.refName,callback:function(t){e.$set(e.formConfig,"refName",t)},expression:"formConfig.refName"}})],1),n("el-form-item",{attrs:{label:e.i18nt("designer.setting.formRulesName")}},[n("el-input",{attrs:{type:"text"},model:{value:e.formConfig.rulesName,callback:function(t){e.$set(e.formConfig,"rulesName",t)},expression:"formConfig.rulesName"}})],1)],1),e.showEventCollapse()?n("el-collapse-item",{attrs:{name:"2",title:e.i18nt("designer.setting.eventSetting")}},[n("el-form-item",{attrs:{label:"onFormCreated","label-width":"150px"}},[n("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:"",round:""},on:{click:function(t){return e.editFormEventHandler("onFormCreated")}}},[e._v(" "+e._s(e.i18nt("designer.setting.addEventHandler")))])],1),n("el-form-item",{attrs:{label:"onFormMounted","label-width":"150px"}},[n("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:"",round:""},on:{click:function(t){return e.editFormEventHandler("onFormMounted")}}},[e._v(" "+e._s(e.i18nt("designer.setting.addEventHandler")))])],1),n("el-form-item",{attrs:{label:"onFormDataChange","label-width":"150px"}},[n("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:"",round:""},on:{click:function(t){return e.editFormEventHandler("onFormDataChange")}}},[e._v(" "+e._s(e.i18nt("designer.setting.addEventHandler")))])],1)],1):e._e()],1)],1),e.showFormEventDialogFlag?n("el-dialog",{directives:[{name:"dialog-drag",rawName:"v-dialog-drag"}],staticClass:"small-padding-dialog",attrs:{title:e.i18nt("designer.setting.editFormEventHandler"),visible:e.showFormEventDialogFlag,"show-close":!0,"append-to-body":"","close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":!0},on:{"update:visible":function(t){e.showFormEventDialogFlag=t}}},[n("el-alert",{attrs:{type:"info",closable:!1,title:"form."+e.eventParamsMap[e.curEventName]}}),n("code-editor",{ref:"ecEditor",attrs:{mode:"javascript",readonly:!1},model:{value:e.formEventHandlerCode,callback:function(t){e.formEventHandlerCode=t},expression:"formEventHandlerCode"}}),n("el-alert",{attrs:{type:"info",closable:!1,title:"}"}}),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.showFormEventDialogFlag=!1}}},[e._v(" "+e._s(e.i18nt("designer.hint.cancel")))]),n("el-button",{attrs:{type:"primary"},on:{click:e.saveFormEventHandler}},[e._v(" "+e._s(e.i18nt("designer.hint.confirm")))])],1)],1):e._e(),e.showEditFormCssDialogFlag?n("el-dialog",{directives:[{name:"dialog-drag",rawName:"v-dialog-drag"}],staticClass:"small-padding-dialog",attrs:{title:e.i18nt("designer.setting.formCss"),visible:e.showEditFormCssDialogFlag,"show-close":!0,"append-to-body":"","close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":!0},on:{"update:visible":function(t){e.showEditFormCssDialogFlag=t}}},[n("code-editor",{attrs:{mode:"css",readonly:!1},model:{value:e.formCssCode,callback:function(t){e.formCssCode=t},expression:"formCssCode"}}),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.showEditFormCssDialogFlag=!1}}},[e._v(" "+e._s(e.i18nt("designer.hint.cancel")))]),n("el-button",{attrs:{type:"primary"},on:{click:e.saveFormCss}},[e._v(" "+e._s(e.i18nt("designer.hint.confirm")))])],1)],1):e._e(),e.showEditFunctionsDialogFlag?n("el-dialog",{directives:[{name:"dialog-drag",rawName:"v-dialog-drag"}],staticClass:"small-padding-dialog",attrs:{title:e.i18nt("designer.setting.globalFunctions"),visible:e.showEditFunctionsDialogFlag,"show-close":!0,"append-to-body":"","close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":!0},on:{"update:visible":function(t){e.showEditFunctionsDialogFlag=t}}},[n("code-editor",{ref:"gfEditor",attrs:{mode:"javascript",readonly:!1},model:{value:e.functionsCode,callback:function(t){e.functionsCode=t},expression:"functionsCode"}}),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.showEditFunctionsDialogFlag=!1}}},[e._v(" "+e._s(e.i18nt("designer.hint.cancel")))]),n("el-button",{attrs:{type:"primary"},on:{click:e.saveGlobalFunctions}},[e._v(" "+e._s(e.i18nt("designer.hint.confirm")))])],1)],1):e._e()],1)},je=[],Ie=(n("466d"),n("1276"),n("498a"),n("a630"),n("3ca3"),n("6062"),{name:"form-setting",mixins:[E["b"]],components:{CodeEditor:ee["a"]},props:{designer:Object,formConfig:Object},inject:["getDesignerConfig"],data:function(){return{designerConfig:this.getDesignerConfig(),formActiveCollapseNames:["1","2"],formSizes:[{label:"default",value:""},{label:"large",value:"large"},{label:"medium",value:"medium"},{label:"small",value:"small"},{label:"mini",value:"mini"}],showEditFormCssDialogFlag:!1,formCssCode:"",cssClassList:[],showEditFunctionsDialogFlag:!1,functionsCode:"",showFormEventDialogFlag:!1,formEventHandlerCode:"",curEventName:"",eventParamsMap:{onFormCreated:"onFormCreated() {",onFormMounted:"onFormMounted() {",onFormDataChange:"onFormDataChange(fieldName, newValue, oldValue, formModel, subFormName, subFormRowIndex) {"}}},created:function(){var e=this;this.designer.handleEvent("form-json-imported",(function(){e.formCssCode=e.formConfig.cssCode,Object(O["k"])(e.formCssCode),e.extractCssClass(),e.designer.emitEvent("form-css-updated",Object(O["d"])(e.cssClassList))}))},mounted:function(){var e=this;setTimeout((function(){e.formCssCode=e.formConfig.cssCode,Object(O["k"])(e.formCssCode),e.extractCssClass(),e.designer.emitEvent("form-css-updated",Object(O["d"])(e.cssClassList))}),1200)},methods:{showEventCollapse:function(){return void 0===this.designerConfig["eventCollapse"]||!!this.designerConfig["eventCollapse"]},editFormCss:function(){this.formCssCode=this.designer.formConfig.cssCode,this.showEditFormCssDialogFlag=!0},extractCssClass:function(){var e=/\..*{/g,t=this.formCssCode.match(e),n=[];t&&t.length>0&&t.forEach((function(e){var t=e.split(",");t.length>0&&t.forEach((function(e){var t=e.trim();if(-1!==t.indexOf(".",1)){var i=t.substring(t.indexOf(".")+1,t.indexOf(".",1));i&&n.push(i.trim())}else if(-1!==t.indexOf(" ")){var o=t.substring(t.indexOf(".")+1,t.indexOf(" "));o&&n.push(o.trim())}else if(-1!==t.indexOf("{")){var r=t.substring(t.indexOf(".")+1,t.indexOf("{"));n.push(r.trim())}else{var s=t.substring(t.indexOf(".")+1);n.push(s.trim())}}))})),this.cssClassList.splice(0,this.cssClassList.length),this.cssClassList=Array.from(new Set(n))},saveFormCss:function(){this.extractCssClass(),this.designer.formConfig.cssCode=this.formCssCode,Object(O["k"])(this.formCssCode),this.showEditFormCssDialogFlag=!1,this.designer.emitEvent("form-css-updated",Object(O["d"])(this.cssClassList))},editGlobalFunctions:function(){this.functionsCode=this.designer.formConfig.functions,this.showEditFunctionsDialogFlag=!0},saveGlobalFunctions:function(){var e=this.$refs.gfEditor.getEditorAnnotations(),t=!1;e&&e.length>0&&(e.forEach((function(e){"error"===e.type&&(t=!0)})),t)?this.$message.error(this.i18nt("designer.setting.syntaxCheckWarning")):(this.designer.formConfig.functions=this.functionsCode,Object(O["l"])(this.functionsCode),this.showEditFunctionsDialogFlag=!1)},editFormEventHandler:function(e){this.curEventName=e,this.formEventHandlerCode=this.formConfig[e],this.showFormEventDialogFlag=!0},saveFormEventHandler:function(){var e=this.$refs.ecEditor.getEditorAnnotations(),t=!1;e&&e.length>0&&(e.forEach((function(e){"error"===e.type&&(t=!0)})),t)?this.$message.error(this.i18nt("designer.setting.syntaxCheckWarning")):(this.formConfig[this.curEventName]=this.formEventHandlerCode,this.showFormEventDialogFlag=!1)}}}),qe=Ie,Pe=(n("28ce"),Object(R["a"])(qe,Fe,je,!1,null,"5c7642f4",null)),Ne=Pe.exports,De={name:"name-editor",label:"label-editor",labelAlign:"labelAlign-editor",type:"type-editor",defaultValue:"defaultValue-editor",placeholder:"placeholder-editor",startPlaceholder:"startPlaceholder-editor",endPlaceholder:"endPlaceholder-editor",columnWidth:"columnWidth-editor",size:"size-editor",showStops:"showStops-editor",displayStyle:"displayStyle-editor",buttonStyle:"buttonStyle-editor",border:"border-editor",labelWidth:"labelWidth-editor",labelHidden:"labelHidden-editor",rows:"rows-editor",required:"required-editor",requiredHint:"requiredHint-editor",validation:"validation-editor",validationHint:"validationHint-editor",readonly:"readonly-editor",disabled:"disabled-editor",hidden:"hidden-editor",clearable:"clearable-editor",editable:"editable-editor",showPassword:"showPassword-editor",textContent:"textContent-editor",textAlign:"textAlign-editor",fontSize:"fontSize-editor",preWrap:"preWrap-editor",htmlContent:"htmlContent-editor",format:"format-editor",valueFormat:"valueFormat-editor",filterable:"filterable-editor",allowCreate:"allowCreate-editor",remote:"remote-editor",automaticDropdown:"automaticDropdown-editor",checkStrictly:"checkStrictly-editor",showAllLevels:"showAllLevels-editor",multiple:"multiple-editor",multipleLimit:"multipleLimit-editor",contentPosition:"contentPosition-editor",optionItems:"optionItems-editor",uploadURL:"uploadURL-editor",uploadTip:"uploadTip-editor",withCredentials:"withCredentials-editor",multipleSelect:"multipleSelect-editor",limit:"limit-editor",fileMaxSize:"fileMaxSize-editor",fileTypes:"fileTypes-editor",customClass:"customClass-editor",showBlankRow:"showBlankRow-editor",showRowNumber:"showRowNumber-editor",cellWidth:"cellWidth-editor",cellHeight:"cellHeight-editor",colHeight:"colHeight-editor",wordBreak:"wordBreak-editor",gutter:"gutter-editor",responsive:"responsive-editor",span:"span-editor",offset:"offset-editor",push:"push-editor",pull:"pull-editor"},We={min:"min-editor",max:"max-editor",precision:"precision-editor",step:"step-editor",controlsPosition:"controlsPosition-editor",minLength:"minLength-editor",maxLength:"maxLength-editor",showWordLimit:"showWordLimit-editor",prefixIcon:"prefixIcon-editor",suffixIcon:"suffixIcon-editor",switchWidth:"switchWidth-editor",activeText:"activeText-editor",inactiveText:"inactiveText-editor",activeColor:"activeColor-editor",inactiveColor:"inactiveColor-editor",lowThreshold:"lowThreshold-editor",highThreshold:"highThreshold-editor",allowHalf:"allowHalf-editor",showText:"showText-editor",showScore:"showScore-editor",range:"range-editor",vertical:"vertical-editor",plain:"plain-editor",round:"round-editor",circle:"circle-editor",icon:"icon-editor",labelIconClass:"labelIconClass-editor",labelIconPosition:"labelIconPosition-editor",labelTooltip:"labelTooltip-editor",appendButton:"appendButton-editor",appendButtonDisabled:"appendButtonDisabled-editor",buttonIcon:"buttonIcon-editor"},Be={onCreated:"onCreated-editor",onMounted:"onMounted-editor",onClick:"onClick-editor",onInput:"onInput-editor",onChange:"onChange-editor",onFocus:"onFocus-editor",onBlur:"onBlur-editor",onRemoteQuery:"onRemoteQuery-editor",onBeforeUpload:"onBeforeUpload-editor",onUploadSuccess:"onUploadSuccess-editor",onUploadError:"onUploadError-editor",onFileRemove:"onFileRemove-editor",onValidate:"onValidate-editor",onAppendButtonClick:"onAppendButtonClick-editor",onSubFormRowAdd:"onSubFormRowAdd-editor",onSubFormRowInsert:"onSubFormRowInsert-editor",onSubFormRowDelete:"onSubFormRowDelete-editor",onSubFormRowChange:"onSubFormRowChange-editor"};function He(e,t){De[e]=t}function ze(e,t){We[e]=t}function Ve(e,t){Be[e]=t}function Ue(e){return!!De[e]||!!We[e]||!!Be[e]}function Ke(e,t,n){U.a.component(t,n),He(e,t)}function Ge(e,t,n){U.a.component(t,n),ze(e,t)}function Ye(e,t,n){U.a.component(t,n),Ve(e,t)}var Je={COMMON_PROPERTIES:De,ADVANCED_PROPERTIES:We,EVENT_PROPERTIES:Be},Xe=Je.COMMON_PROPERTIES,Ze=Je.ADVANCED_PROPERTIES,Qe=Je.EVENT_PROPERTIES,et={name:"SettingPanel",componentName:"SettingPanel",mixins:[E["b"]],components:Object(p["a"])({CodeEditor:ee["a"],FormSetting:Ne},$e),props:{designer:Object,selectedWidget:Object,formConfig:Object,globalDsv:{type:Object,default:function(){return{}}}},provide:function(){var e=this;return{isSubFormChildWidget:function(){return e.subFormChildWidgetFlag}}},inject:["getDesignerConfig"],data:function(){return{designerConfig:this.getDesignerConfig(),scrollerHeight:0,activeTab:"2",widgetActiveCollapseNames:["1","3"],formActiveCollapseNames:["1","2"],commonProps:Xe,advProps:Ze,eventProps:Qe,showWidgetEventDialogFlag:!1,eventHandlerCode:"",curEventName:"",eventHeader:"",subFormChildWidgetFlag:!1}},computed:{optionModel:{get:function(){return this.selectedWidget.options},set:function(e){this.selectedWidget.options=e}}},watch:{"designer.selectedWidget":{handler:function(e){e&&(this.activeTab="1")}},"selectedWidget.options":{deep:!0,handler:function(){this.designer.saveCurrentHistoryStep()}},formConfig:{deep:!0,handler:function(){this.designer.saveCurrentHistoryStep()}}},created:function(){var e=this;this.$on("editEventHandler",(function(e,t){this.editEventHandler(e,t)})),this.designer.handleEvent("form-css-updated",(function(t){e.designer.setCssClassList(t)})),this.designer.handleEvent("field-selected",(function(t){e.subFormChildWidgetFlag=!!t&&"sub-form"===t.type}))},mounted:function(){var e=this;this.designer.selectedWidget?this.activeTab="1":this.activeTab="2",this.scrollerHeight=window.innerHeight-56-48+"px",Object(O["a"])((function(){e.$nextTick((function(){e.scrollerHeight=window.innerHeight-56-48+"px"}))}))},methods:{showEventCollapse:function(){return void 0===this.designerConfig["eventCollapse"]||!!this.designerConfig["eventCollapse"]},hasPropEditor:function(e,t){if(!t)return!1;if(e.indexOf("-")<=-1){var n=this.selectedWidget.type+"-"+e;if(Ue(n))return!1}var i=e.replace(this.selectedWidget.type+"-","");return this.designer.hasConfig(this.selectedWidget,i)},getPropEditor:function(e,t){var n=e.replace(this.selectedWidget.type+"-",""),i="".concat(this.selectedWidget.type,"-").concat(n,"-editor");return this.$options.components[i]||this.$root.$options.components[i]?i:t},showCollapse:function(e){var t=!1;for(var n in e)if(e.hasOwnProperty(n)&&this.hasPropEditor(n,e[n])){t=!0;break}return t},editEventHandler:function(e,t){this.curEventName=e,this.eventHeader="".concat(this.optionModel.name,".").concat(e,"(").concat(t.join(", "),") {"),this.eventHandlerCode=this.selectedWidget.options[e]||"","onValidate"!==e||this.optionModel["onValidate"]||(this.eventHandlerCode=" /* sample code */\n /*\n if ((value > 100) || (value < 0)) {\n callback(new Error('error message')) //fail\n } else {\n callback(); //pass\n }\n */"),this.showWidgetEventDialogFlag=!0},saveEventHandler:function(){var e=this.$refs.ecEditor.getEditorAnnotations(),t=!1;e&&e.length>0&&(e.forEach((function(e){"error"===e.type&&(t=!0)})),t)?this.$message.error(this.i18nt("designer.setting.syntaxCheckWarning")):(this.selectedWidget.options[this.curEventName]=this.eventHandlerCode,this.showWidgetEventDialogFlag=!1)}}},tt=et,nt=(n("2c2c"),Object(R["a"])(tt,Me,Ae,!1,null,"9296a6f2",null)),it=nt.exports,ot=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"form-widget-container"},[n("el-form",{staticClass:"full-height-width widget-form",class:[e.customClass,e.layoutType+"-layout"],attrs:{"label-position":e.labelPosition,size:e.size,"validate-on-rule-change":!1}},[0===e.designer.widgetList.length?n("div",{staticClass:"no-widget-hint"},[e._v(e._s(e.i18nt("designer.noWidgetHint")))]):e._e(),n("draggable",e._b({attrs:{list:e.designer.widgetList,handle:".drag-handler",move:e.checkMove},on:{end:e.onDragEnd,add:e.onDragAdd,update:e.onDragUpdate}},"draggable",{group:"dragGroup",ghostClass:"ghost",animation:300},!1),[n("transition-group",{staticClass:"form-widget-list",attrs:{name:"fade",tag:"div"}},[e._l(e.designer.widgetList,(function(t,i){return["container"===t.category?[n(e.getWidgetName(t),{key:t.id,tag:"component",attrs:{widget:t,designer:e.designer,"parent-list":e.designer.widgetList,"index-of-parent-list":i,"parent-widget":null}})]:[n(e.getWidgetName(t),{key:t.id,tag:"component",attrs:{field:t,designer:e.designer,"parent-list":e.designer.widgetList,"index-of-parent-list":i,"parent-widget":null,"design-state":!0}})]]}))],2)],1)],1)],1)},rt=[],st=n("8b30");st.keys().map((function(e){var t=st(e).default;U.a.component(t.name,t)}));var at={name:"VFormWidget",componentName:"VFormWidget",mixins:[E["b"]],components:Object(p["a"])({Draggable:m.a},Y["a"]),props:{designer:Object,formConfig:Object,optionData:{type:Object,default:function(){return{}}},globalDsv:{type:Object,default:function(){return{}}}},provide:function(){var e=this;return{refList:this.widgetRefList,formConfig:this.formConfig,getGlobalDsv:function(){return e.globalDsv},globalOptionData:this.optionData,getOptionData:function(){return e.optionData},globalModel:{formModel:this.formModel}}},inject:["getDesignerConfig"],data:function(){return{formModel:{},widgetRefList:{}}},computed:{labelPosition:function(){return this.designer.formConfig&&this.designer.formConfig.labelPosition?this.designer.formConfig.labelPosition:"left"},size:function(){return this.designer.formConfig&&this.designer.formConfig.size?this.designer.formConfig.size:"medium"},customClass:function(){return this.designer.formConfig.customClass||""},layoutType:function(){return this.designer.getLayoutType()}},watch:{"designer.widgetList":{deep:!0,handler:function(e){}},"designer.formConfig":{deep:!0,handler:function(e){}}},created:function(){this.designer.initDesigner(!!this.getDesignerConfig().resetFormJson),this.designer.loadPresetCssCode(this.getDesignerConfig().presetCssCode)},mounted:function(){this.disableFirefoxDefaultDrop(),this.designer.registerFormWidget(this)},methods:{getWidgetName:function(e){return e.type+"-widget"},disableFirefoxDefaultDrop:function(){var e=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");e&&(document.body.ondrop=function(e){e.stopPropagation(),e.preventDefault()})},onDragEnd:function(e){},onDragAdd:function(e){var t=e.newIndex;this.designer.widgetList[t]&&this.designer.setSelected(this.designer.widgetList[t]),this.designer.emitHistoryChange(),this.designer.emitEvent("field-selected",null)},onDragUpdate:function(){this.designer.emitHistoryChange()},checkMove:function(e){return this.designer.checkWidgetMove(e)},getFormData:function(){return this.formModel},getWidgetRef:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.widgetRefList[e];return!n&&t&&this.$message.error(this.i18nt("render.hint.refNotFound")+e),n},getSelectedWidgetRef:function(){var e=this.designer.selectedWidgetName;return this.getWidgetRef(e)},clearWidgetRefList:function(){var e=this;Object.keys(this.widgetRefList).forEach((function(t){delete e.widgetRefList[t]}))},deleteWidgetRef:function(e){delete this.widgetRefList[e]}}},lt=at,ct=(n("c833"),Object(R["a"])(lt,ot,rt,!1,null,"34254691",null)),ut=ct.exports;n("fb6a");function dt(e){var t=Object(O["d"])(Object(O["i"])());return{widgetList:[],formConfig:{cssCode:""},selectedId:null,selectedWidget:null,selectedWidgetName:null,vueInstance:e,formWidget:null,cssClassList:[],historyData:{index:-1,maxStep:20,steps:[]},initDesigner:function(e){this.widgetList=[],this.formConfig=Object(O["d"])(t),console.info("%cVariantForm %cVer".concat(re["d"]," %chttps://www.yuque.com/visualdev/vform"),"color:#409EFF;font-size: 22px;font-weight:bolder","color:#999;font-size: 12px","color:#333"),e||this.initHistoryData()},clearDesigner:function(e){var n=0===this.widgetList.length;this.widgetList=[],this.selectedId=null,this.selectedWidgetName=null,this.selectedWidget={},Object(O["q"])(this.formConfig,t),e||(n?this.saveCurrentHistoryStep():this.emitHistoryChange())},loadPresetCssCode:function(e){""===this.formConfig.cssCode&&e&&(this.formConfig.cssCode=e)},getLayoutType:function(){return this.formConfig.layoutType||"PC"},changeLayoutType:function(e){this.formConfig.layoutType=e},getImportTemplate:function(){return{widgetList:[],formConfig:Object(O["d"])(t)}},loadFormJson:function(e){var t=!1;return e&&e.widgetList&&(this.formWidget.clearWidgetRefList(),this.widgetList=e.widgetList,t=!0),e&&e.formConfig&&(Object(O["q"])(this.formConfig,e.formConfig),t=!0),t&&this.emitEvent("form-json-imported",[]),t},setSelected:function(e){e?(this.selectedWidget=e,e.id&&(this.selectedId=e.id,this.selectedWidgetName=e.options.name)):this.clearSelected()},updateSelectedWidgetNameAndLabel:function(e,t,n){this.selectedWidgetName=t,n&&Object.keys(e.options).indexOf("label")>-1&&(e.options.label=n)},clearSelected:function(){this.selectedId=null,this.selectedWidgetName=null,this.selectedWidget={}},checkWidgetMove:function(e){if(e.draggedContext&&e.draggedContext.element){var t=e.draggedContext.element.category;e.draggedContext.element.type;if(e.to&&"sub-form-table"===e.to.className&&"container"===t)return!1}return!0},checkFieldMove:function(e){if(e.draggedContext&&e.draggedContext.element){e.draggedContext.element.category;var t=e.draggedContext.element.type+"";if(e.to&&"sub-form-table"===e.to.className&&"slot"===t)return!1}return!0},appendTableRow:function(e){var t=e.rows.length,n=Object(O["d"])(e.rows[e.rows.length-1]);n.id="table-row-"+Object(O["f"])(),n.merged=!1,n.cols.forEach((function(e){e.id="table-cell-"+Object(O["f"])(),e.options.name=e.id,e.merged=!1,e.options.colspan=1,e.options.rowspan=1,e.widgetList.length=0})),e.rows.splice(t,0,n),this.emitHistoryChange()},appendTableCol:function(e){var t=this,n=e.rows[0].cols.length;e.rows.forEach((function(e){var i=Object(O["d"])(t.getContainerByType("table-cell"));i.id="table-cell-"+Object(O["f"])(),i.options.name=i.id,i.merged=!1,i.options.colspan=1,i.options.rowspan=1,i.widgetList.length=0,e.cols.splice(n,0,i)})),this.emitHistoryChange()},insertTableRow:function(e,t,n,i,o){var r=o?t:t+1;if(!o){var s=r,a=!1;while(s<e.rows.length){if(!e.rows[s].cols[i].merged){r=s,a=!0;break}s++}a||(r=e.rows.length)}var l=Object(O["d"])(e.rows[n]);l.id="table-row-"+Object(O["f"])(),l.merged=!1,l.cols.forEach((function(e){e.id="table-cell-"+Object(O["f"])(),e.options.name=e.id,e.merged=!1,e.options.colspan=1,e.options.rowspan=1,e.widgetList.length=0})),e.rows.splice(r,0,l);var c=0;while(r<e.rows.length-1&&c<e.rows[0].cols.length){var u=e.rows[r+1].cols[c],d=u.merged;if(d){for(var h=e.rows,f={},p=null,g=r;g>=0;g--)if(!h[g].cols[c].merged&&h[g].cols[c].options.rowspan>1){p=g,f=h[g].cols[c];break}if(f.options){var m=f.options.rowspan+1;this.setPropsOfMergedRows(e.rows,p,c,f.options.colspan,m),c+=f.options.colspan}else c+=1}else c+=u.options.colspan||1}this.emitHistoryChange()},insertTableCol:function(e,t,n,i){var o=this,r=i?t:t+1;if(!i){var s=r,a=!1;while(s<e.rows[n].cols.length){if(!e.rows[n].cols[s].merged){r=s,a=!0;break}s++,a||(r=e.rows[n].cols.length)}}e.rows.forEach((function(e){var t=Object(O["d"])(o.getContainerByType("table-cell"));t.id="table-cell-"+Object(O["f"])(),t.options.name=t.id,t.merged=!1,t.options.colspan=1,t.options.rowspan=1,t.widgetList.length=0,e.cols.splice(r,0,t)}));var l=0;while(r<e.rows[0].cols.length-1&&l<e.rows.length){var c=e.rows[l].cols[r+1],u=c.merged;if(u){for(var d=e.rows[l].cols,h={},f=null,p=r;p>=0;p--)if(!d[p].merged&&d[p].options.colspan>1){f=p,h=d[p];break}if(h.options){var g=h.options.colspan+1;this.setPropsOfMergedCols(e.rows,l,f,g,h.options.rowspan),l+=h.options.rowspan}else l+=1}else l+=c.options.rowspan||1}this.emitHistoryChange()},setPropsOfMergedCols:function(e,t,n,i,o){for(var r=t;r<t+o;r++)for(var s=n;s<n+i;s++)r!==t||s!==n?(e[r].cols[s].merged=!0,e[r].cols[s].options.colspan=i,e[r].cols[s].widgetList=[]):e[r].cols[s].options.colspan=i},setPropsOfMergedRows:function(e,t,n,i,o){for(var r=t;r<t+o;r++)for(var s=n;s<n+i;s++)r!==t||s!==n?(e[r].cols[s].merged=!0,e[r].cols[s].options.rowspan=o,e[r].cols[s].widgetList=[]):e[r].cols[s].options.rowspan=o},setPropsOfSplitCol:function(e,t,n,i,o){for(var r=t;r<t+o;r++)for(var s=n;s<n+i;s++)e[r].cols[s].merged=!1,e[r].cols[s].options.rowspan=1,e[r].cols[s].options.colspan=1},setPropsOfSplitRow:function(e,t,n,i,o){for(var r=t;r<t+o;r++)for(var s=n;s<n+i;s++)e[r].cols[s].merged=!1,e[r].cols[s].options.rowspan=1,e[r].cols[s].options.colspan=1},mergeTableCol:function(e,t,n,i,o,r){var s=o?i:i+t[i].options.colspan,a=o?i-1:i;if(o){var l=a;while(l>=0){if(!e[n].cols[l].merged){a=l;break}l--}}t[s].widgetList&&t[s].widgetList.length>0&&(t[a].widgetList&&0!==t[a].widgetList.length||(t[a].widgetList=Object(O["d"])(t[s].widgetList)));var c=1*t[s].options.colspan+1*t[a].options.colspan;this.setPropsOfMergedCols(e,n,a,c,r.options.rowspan),this.emitHistoryChange()},mergeTableWholeRow:function(e,t,n,i){for(var o=e[n].cols[0].options.rowspan,r=!1,s=1;s<e[n].cols.length;s++)if(e[n].cols[s].options.rowspan!==o){r=!0;break}if(r)this.vueInstance.$message.info(this.vueInstance.i18nt("designer.hint.rowspanNotConsistentForMergeEntireRow"));else{var a=t.filter((function(e){return!e.merged&&!!e.widgetList&&e.widgetList.length>0}));a&&a.length>0&&a[0].id!==t[0].id&&(!t[0].widgetList||t[0].widgetList.length<=0)&&(t[0].widgetList=Object(O["d"])(a[0].widgetList)),this.setPropsOfMergedCols(e,n,0,t.length,t[i].options.rowspan),this.emitHistoryChange()}},mergeTableRow:function(e,t,n,i,o){var r=i?t:t+o.options.rowspan,s=i?t-1:t;if(i){var a=s;while(a>=0){if(!e[a].cols[n].merged){s=a;break}a--}}e[r].cols[n].widgetList&&e[r].cols[n].widgetList.length>0&&(e[s].cols[n].widgetList&&0!==e[s].cols[n].widgetList.length||(e[s].cols[n].widgetList=Object(O["d"])(e[r].cols[n].widgetList)));var l=1*e[r].cols[n].options.rowspan+1*e[s].cols[n].options.rowspan;this.setPropsOfMergedRows(e,s,n,o.options.colspan,l),this.emitHistoryChange()},mergeTableWholeCol:function(e,t,n,i){for(var o=e[0].cols[i].options.colspan,r=!1,s=1;s<e.length;s++)if(e[s].cols[i].options.colspan!==o){r=!0;break}if(r)this.vueInstance.$message.info(this.vueInstance.i18nt("designer.hint.colspanNotConsistentForMergeEntireColumn"));else{var a=[];e.forEach((function(e){var t=e.cols[i];!t.merged&&t.widgetList&&t.widgetList.length>0&&a.push(t)}));var l=e[0].cols[i];a&&a.length>0&&a[0].id!==l.id&&(!l.widgetList||l.widgetList.length<=0)&&(l.widgetList=Object(O["d"])(a[0].widgetList)),this.setPropsOfMergedRows(e,0,i,l.options.colspan,e.length),this.emitHistoryChange()}},undoMergeTableCol:function(e,t,n,i,o){this.setPropsOfSplitCol(e,t,n,i,o),this.emitHistoryChange()},undoMergeTableRow:function(e,t,n,i,o){this.setPropsOfSplitRow(e,t,n,i,o),this.emitHistoryChange()},deleteTableWholeCol:function(e,t){var n=!0;if(e.forEach((function(t){t.cols[0].options.colspan!==e[0].cols.length&&(n=!1)})),n)this.vueInstance.$message.info(this.vueInstance.i18nt("designer.hint.lastColCannotBeDeleted"));else{for(var i=e[0].cols[t].options.colspan,o=!1,r=1;r<e.length;r++)if(e[r].cols[t].options.colspan!==i){o=!0;break}o?this.vueInstance.$message.info(this.vueInstance.i18nt("designer.hint.colspanNotConsistentForDeleteEntireColumn")):(e.forEach((function(e){e.cols.splice(t,i)})),this.emitHistoryChange())}},deleteTableWholeRow:function(e,t){var n=!0;if(e[0].cols.forEach((function(t){t.options.rowspan!==e.length&&(n=!1)})),n)this.vueInstance.$message.info(this.vueInstance.i18nt("designer.hint.lastRowCannotBeDeleted"));else{for(var i=e[t].cols[0].options.rowspan,o=!1,r=1;r<e[t].cols.length;r++)if(e[t].cols[r].options.rowspan!==i){o=!0;break}o?this.vueInstance.$message.info(this.vueInstance.i18nt("designer.hint.rowspanNotConsistentForDeleteEntireRow")):(e.splice(t,i),this.emitHistoryChange())}},getContainerByType:function(e){var t=[].concat(Object(H["a"])(b),Object(H["a"])(v),Object(H["a"])(y),Object(H["a"])(w)),n=null;return t.forEach((function(t){t.category&&t.type&&t.type===e&&(n=t)})),n},getFieldWidgetByType:function(e){var t=[].concat(Object(H["a"])(b),Object(H["a"])(v),Object(H["a"])(y),Object(H["a"])(w)),n=null;return t.forEach((function(t){!t.category&&t.type&&t.type===e&&(n=t)})),n},hasConfig:function(e,t){var n=null;return n=e.category?this.getContainerByType(e.type):this.getFieldWidgetByType(e.type),!(!n||!n.options)&&Object.keys(n.options).indexOf(t)>-1},upgradeWidgetConfig:function(e){var t=null;t=e.category?this.getContainerByType(e.type):this.getFieldWidgetByType(e.type),t&&t.options&&Object.keys(t.options).forEach((function(n){e.hasOwnProperty(n)||(e.options[n]=Object(O["d"])(t.options[n]))}))},upgradeFormConfig:function(e){var t=this;Object.keys(this.formConfig).forEach((function(n){e.hasOwnProperty(n)||(e[n]=Object(O["d"])(t.formConfig[n]))}))},cloneGridCol:function(e,t){var n=Object(O["d"])(this.getContainerByType("grid-col"));n.options.span=e.options.span;var i=Object(O["f"])();n.id="grid-col-"+i,n.options.name="gridCol"+i,t.cols.push(n)},cloneContainer:function(e){var t=this;if("grid"===e.type){var n=Object(O["d"])(this.getContainerByType("grid"));return n.id=n.type+Object(O["f"])(),n.options.name=n.id,e.cols.forEach((function(e){var i=Object(O["d"])(t.getContainerByType("grid-col")),o=Object(O["f"])();i.id="grid-col-"+o,i.options.name="gridCol"+o,i.options.span=e.options.span,n.cols.push(i)})),n}if("table"===e.type){var i=Object(O["d"])(this.getContainerByType("table"));return i.id=i.type+Object(O["f"])(),i.options.name=i.id,e.rows.forEach((function(e){var t=Object(O["d"])(e);t.id="table-row-"+Object(O["f"])(),t.cols.forEach((function(e){e.id="table-cell-"+Object(O["f"])(),e.options.name=e.id,e.widgetList=[]})),i.rows.push(t)})),i}return null},moveUpWidget:function(e,t){if(e){if(0===t)return void this.vueInstance.$message(this.vueInstance.i18nt("designer.hint.moveUpFirstChildHint"));var n=e[t];e.splice(t,1),e.splice(t-1,0,n)}},moveDownWidget:function(e,t){if(e){if(t===e.length-1)return void this.vueInstance.$message(this.vueInstance.i18nt("designer.hint.moveDownLastChildHint"));var n=e[t];e.splice(t,1),e.splice(t+1,0,n)}},copyNewFieldWidget:function(e){var t=Object(O["d"])(e),n=Object(O["f"])();return t.id=t.type.replace(/-/g,"")+n,t.options.name=t.id,t.options.label=t.options.label||t.type.toLowerCase(),delete t.displayName,t},copyNewContainerWidget:function(e){var t=Object(O["d"])(e);if(t.id=t.type.replace(/-/g,"")+Object(O["f"])(),t.options.name=t.id,"grid"===t.type){var n=Object(O["d"])(this.getContainerByType("grid-col")),i=Object(O["f"])();n.id="grid-col-"+i,n.options.name="gridCol"+i,t.cols.push(n),n=Object(O["d"])(n),i=Object(O["f"])(),n.id="grid-col-"+i,n.options.name="gridCol"+i,t.cols.push(n)}else if("table"===t.type){var o={cols:[]};o.id="table-row-"+Object(O["f"])(),o.merged=!1;var r=Object(O["d"])(this.getContainerByType("table-cell"));r.id="table-cell-"+Object(O["f"])(),r.options.name=r.id,r.merged=!1,r.options.colspan=1,r.options.rowspan=1,o.cols.push(r),t.rows.push(o)}else if("tab"===t.type){var s=Object(O["d"])(this.getContainerByType("tab-pane"));s.id="tab-pane-"+Object(O["f"])(),s.options.name="tab1",s.options.label="tab 1",t.tabs.push(s)}return delete t.displayName,t},addContainerByDbClick:function(e){var t=this.copyNewContainerWidget(e);this.widgetList.push(t),this.setSelected(t)},addFieldByDbClick:function(e){var t=this.copyNewFieldWidget(e);if(this.selectedWidget&&"tab"===this.selectedWidget.type){var n=this.selectedWidget.tabs[0];this.selectedWidget.tabs.forEach((function(e){e.options.active&&(n=e)})),n&&n.widgetList.push(t)}else this.selectedWidget&&this.selectedWidget.widgetList?this.selectedWidget.widgetList.push(t):this.widgetList.push(t);this.setSelected(t),this.emitHistoryChange()},deleteColOfGrid:function(e,t){e&&e.cols&&e.cols.splice(t,1)},addNewColOfGrid:function(e){var t=e.cols,n=Object(O["d"])(this.getContainerByType("grid-col")),i=Object(O["f"])();if(n.id="grid-col-"+i,n.options.name="gridCol"+i,t&&t.length>0){var o=0;t.forEach((function(e){o+=e.options.span})),o>=24?(console.log("列栅格之和超出24"),e.cols.push(n)):(n.options.span=24-o>12?12:24-o,e.cols.push(n))}else e.cols=[n]},addTabPaneOfTabs:function(e){var t=e.tabs,n=Object(O["d"])(this.getContainerByType("tab-pane"));n.id="tab-pane-"+Object(O["f"])(),n.options.name=n.id,n.options.label="tab "+(t.length+1),t.push(n)},deleteTabPaneOfTabs:function(e,t){e.tabs.splice(t,1)},emitEvent:function(e,t){this.vueInstance.$emit(e,t)},handleEvent:function(e,t){this.vueInstance.$on(e,(function(e){return t(e)}))},setCssClassList:function(e){this.cssClassList=e},getCssClassList:function(){return this.cssClassList},registerFormWidget:function(e){this.formWidget=e},initHistoryData:function(){this.loadFormContentFromStorage(),this.historyData.index++,this.historyData.steps[this.historyData.index]={widgetList:Object(O["d"])(this.widgetList),formConfig:Object(O["d"])(this.formConfig)}},emitHistoryChange:function(){this.historyData.index===this.historyData.maxStep-1?this.historyData.steps.shift():this.historyData.index++,this.historyData.steps[this.historyData.index]={widgetList:Object(O["d"])(this.widgetList),formConfig:Object(O["d"])(this.formConfig)},this.saveFormContentToStorage(),this.historyData.index<this.historyData.steps.length-1&&(this.historyData.steps=this.historyData.steps.slice(0,this.historyData.index+1))},saveCurrentHistoryStep:function(){this.historyData.steps[this.historyData.index]=Object(O["d"])({widgetList:this.widgetList,formConfig:this.formConfig}),this.saveFormContentToStorage()},undoHistoryStep:function(){0!==this.historyData.index&&this.historyData.index--,this.widgetList=Object(O["d"])(this.historyData.steps[this.historyData.index].widgetList),this.formConfig=Object(O["d"])(this.historyData.steps[this.historyData.index].formConfig)},redoHistoryStep:function(){this.historyData.index!==this.historyData.steps.length-1&&this.historyData.index++,this.widgetList=Object(O["d"])(this.historyData.steps[this.historyData.index].widgetList),this.formConfig=Object(O["d"])(this.historyData.steps[this.historyData.index].formConfig)},undoEnabled:function(){return this.historyData.index>0&&this.historyData.steps.length>0},redoEnabled:function(){return this.historyData.index<this.historyData.steps.length-1},saveFormContentToStorage:function(){window.localStorage.setItem("widget__list__backup",JSON.stringify(this.widgetList)),window.localStorage.setItem("form__config__backup",JSON.stringify(this.formConfig))},loadFormContentFromStorage:function(){var e=window.localStorage.getItem("widget__list__backup");e&&(this.widgetList=JSON.parse(e));var t=window.localStorage.getItem("form__config__backup");t&&Object(O["q"])(this.formConfig,JSON.parse(t))}}}var ht={name:"VFormDesigner",componentName:"VFormDesigner",mixins:[E["b"]],components:{WidgetPanel:P,ToolbarPanel:Le,SettingPanel:it,VFormWidget:ut,SvgIcon:F},props:{fieldListApi:{type:Object,default:null},bannedWidgets:{type:Array,default:function(){return[]}},designerConfig:{type:Object,default:function(){return{languageMenu:!0,externalLink:!0,formTemplates:!0,eventCollapse:!0,widgetNameReadonly:!1,clearDesignerButton:!0,previewFormButton:!0,importJsonButton:!0,exportJsonButton:!0,exportCodeButton:!0,generateSFCButton:!0,toolbarMaxWidth:420,toolbarMinWidth:300,presetCssCode:"",resetFormJson:!1}}},globalDsv:{type:Object,default:function(){return{}}}},data:function(){return{vFormVersion:re["d"],curLangName:"",vsCodeFlag:!1,caseName:"",docUrl:"https://www.vform666.com/document.html",gitUrl:"https://github.com/vform666/variant-form",chatUrl:"https://www.vform666.com/pages/chat-group/",subScribeUrl:"https://www.vform666.com/pages/pro/",scrollerHeight:0,designer:dt(this),fieldList:[]}},provide:function(){var e=this;return{serverFieldList:this.fieldList,getDesignerConfig:function(){return e.designerConfig},getBannedWidgets:function(){return e.bannedWidgets}}},created:function(){this.vsCodeFlag=1==Object(O["j"])("vscode"),this.caseName=Object(O["j"])("case")},mounted:function(){var e=this;this.initLocale(),this.scrollerHeight=window.innerHeight-56-36+"px",Object(O["a"])((function(){e.$nextTick((function(){e.scrollerHeight=window.innerHeight-56-36+"px"}))})),this.loadCase(),this.loadFieldListFromServer()},methods:{showLink:function(e){return void 0===this.designerConfig[e]||!!this.designerConfig[e]},openHome:function(){if(this.vsCodeFlag){var e={cmd:"openUrl",data:{url:"https://www.vform666.com/"}};window.parent.postMessage(e,"*")}},openUrl:function(e,t){if(this.vsCodeFlag){var n={cmd:"openUrl",data:{url:t}};window.parent.postMessage(n,"*")}else{var i=e.currentTarget;i.href=t}},loadCase:function(){var e=this;this.caseName&&c.a.get(re["c"]+this.caseName+".txt").then((function(t){t.data.code?e.$message.error(e.i18nt("designer.hint.sampleLoadedFail")):(e.setFormJson(t.data),e.$message.success(e.i18nt("designer.hint.sampleLoadedSuccess")))})).catch((function(t){e.$message.error(e.i18nt("designer.hint.sampleLoadedFail")+":"+t)}))},initLocale:function(){var e=localStorage.getItem("v_form_locale");e=this.vsCodeFlag?e||"en-US":e||"zh-CN",this.curLangName=this.i18nt("application."+e),this.changeLanguage(e)},loadFieldListFromServer:function(){var e=this;if(this.fieldListApi){var t=this.fieldListApi.headers||{};c.a.get(this.fieldListApi.URL,{headers:t}).then((function(t){var n=e.fieldListApi.labelKey||"label",i=e.fieldListApi.nameKey||"name";e.fieldList.splice(0,e.fieldList.length),t.data.forEach((function(t){e.fieldList.push({label:t[n],name:t[i]})}))})).catch((function(t){e.$message.error(t)}))}},handleLanguageChanged:function(e){this.changeLanguage(e),this.curLangName=this.i18nt("application."+e)},changeLanguage:function(e){Object(E["a"])(e)},setFormJson:function(e){var t=!1;e&&("string"===typeof e?t=this.designer.loadFormJson(JSON.parse(e)):e.constructor===Object&&(t=this.designer.loadFormJson(e)),t&&this.designer.emitHistoryChange())},getFormJson:function(){return{widgetList:Object(O["d"])(this.designer.widgetList),formConfig:Object(O["d"])(this.designer.formConfig)}},clearDesigner:function(){this.$refs.toolbarRef.clearFormWidget()},refreshDesigner:function(){var e=this.getFormJson();this.designer.clearDesigner(!0),this.designer.loadFormJson(e)},previewForm:function(){this.$refs.toolbarRef.previewForm()},importJson:function(){this.$refs.toolbarRef.importJson()},exportJson:function(){this.$refs.toolbarRef.exportJson()},exportCode:function(){this.$refs.toolbarRef.exportCode()},generateSFC:function(){this.$refs.toolbarRef.generateSFC()},getFieldWidgets:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e?Object(O["h"])(e):Object(O["h"])(this.designer.widgetList)},getContainerWidgets:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e?Object(O["g"])(e):Object(O["g"])(this.designer.widgetList)},upgradeFormJson:function(e){var t=this;if(e.widgetList&&e.formConfig)return Object(O["r"])(e.widgetList,(function(e){t.designer.upgradeWidgetConfig(e)})),this.designer.upgradeFormConfig(e.formConfig),e;this.$message.error("Invalid form json!")},getWidgetRef:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.$refs["formRef"].getWidgetRef(e,t)},getSelectedWidgetRef:function(){return this.$refs["formRef"].getSelectedWidgetRef()}}},ft=ht,pt=(n("e85f"),Object(R["a"])(ft,u,d,!1,null,"355d356e",null)),gt=pt.exports,mt=n("9eeb"),bt=(n("a9e3"),function(e,t){return{props:{optionModel:Object},render:function(n){var i=this;return n("el-form-item",{attrs:{label:Object(E["c"])(t)}},[n("el-input",{attrs:{type:"text"},model:{value:i.optionModel[e],callback:function(t){i.$set(i.optionModel,e,t)}}})])}}}),vt=function(e,t){return{props:{optionModel:Object},methods:{updateValue:function(t){void 0===t||null===t||isNaN(t)?this.optionModel[e]=null:this.optionModel[e]=Number(t)}},render:function(n){var i=this;return n("el-form-item",{attrs:{label:Object(E["c"])(t)}},[n("el-input-number",{attrs:{type:"text"},on:{change:this.updateValue},style:"width: 100%",model:{value:i.optionModel[e],callback:function(t){i.$set(i.optionModel,e,t)}}})])}}},yt=function(e,t){return{props:{optionModel:Object},render:function(n){var i=this;return n("el-form-item",{attrs:{label:Object(E["c"])(t)}},[n("el-switch",{model:{value:i.optionModel[e],callback:function(t){i.$set(i.optionModel,e,t)}}})])}}},wt=function(e,t,n){return{props:{optionModel:Object},render:function(i){var o=this;return i("el-form-item",{attrs:{label:Object(E["c"])(t)}},[i("el-checkbox-group",{model:{value:o.optionModel[e],callback:function(t){o.$set(o.optionModel,e,t)}}},[n.optionItems.map((function(e){return i("el-checkbox",{attrs:{label:e.value}},[e.label])}))])])}}},xt=function(e,t,n){return{props:{optionModel:Object},render:function(i){var o=this;return i("el-form-item",{attrs:{label:Object(E["c"])(t)}},[i("el-radio-group",{model:{value:o.optionModel[e],callback:function(t){o.$set(o.optionModel,e,t)}}},[n.optionItems.map((function(e){return i("el-radio",{attrs:{label:e.value}},[e.label])}))])])}}},Ct=function(e,t,n){return{props:{optionModel:Object},render:function(i){var o=this;return i("el-form-item",{attrs:{label:Object(E["c"])(t)}},[i("el-radio-group",{model:{value:o.optionModel[e],callback:function(t){o.$set(o.optionModel,e,t)}}},[n.optionItems.map((function(e){return i("el-radio-button",{attrs:{label:e.value}},[e.label])}))])])}}},_t=function(e,t,n){return{props:{optionModel:Object},render:function(i){var o=this;return i("el-form-item",{attrs:{label:Object(E["c"])(t)}},[i("el-select",{model:{value:o.optionModel[e],callback:function(t){o.$set(o.optionModel,e,t)}}},[n.optionItems.map((function(e){return i("el-option",{attrs:{label:e.label,value:e.value}})}))])])}}},kt=function(e,t){return{props:{optionModel:Object},mixins:[z["a"]],methods:{editEventHandler:function(){this.dispatch("SettingPanel","editEventHandler",[e,Object(H["a"])(t)])}},render:function(t){return t("el-form-item",{attrs:{label:e,"label-width":"150px"}},[t("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:!0,round:!0},on:{click:this.editEventHandler}},[Object(E["c"])("designer.setting.addEventHandler")])])}}},St=function(){return{render:function(){var e=arguments[0];return e("div",{style:"display: none"})}}},Ot=(n("6c57"),!1),Et=[];function Lt(e,t){try{e(t)}catch(n){console.error("[variant-form] extension installer failed:",n)}}function Mt(e){if("function"!==typeof e)throw new TypeError("registerExtension(installer) expects a function");Et.push(e),Ot&&globalThis.__VFORM_EXTENSION_CTX__&&Lt(e,globalThis.__VFORM_EXTENSION_CTX__)}function At(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];Ot=!0,globalThis.__VFORM_EXTENSION_CTX__=e,Et.forEach((function(t){return Lt(t,e)})),t.forEach((function(t){return Lt(t,e)}))}var Tt={type:"card",category:"container",icon:"card",widgetList:[],options:{name:"",label:"card",hidden:!1,folded:!1,showFold:!0,cardWidth:"100%",shadow:"never",customClass:""}},Rt={type:"alert",icon:"alert",formItemFlag:!1,options:{name:"",title:"Good things are coming...",type:"info",description:"",closable:!0,closeText:"",center:!0,showIcon:!1,effect:"light",hidden:!1,onClose:"",customClass:""}},$t=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("container-wrapper",{attrs:{designer:e.designer,widget:e.widget,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList}},[n("el-card",{key:e.widget.id,staticClass:"card-container",class:[e.selected?"selected":"",e.widget.options.folded?"folded":"",e.customClass],style:{width:e.widget.options.cardWidth+"!important"||!1},attrs:{shadow:e.widget.options.shadow},nativeOn:{click:function(t){return t.stopPropagation(),e.selectWidget(e.widget)}}},[n("div",{staticClass:"clear-fix",attrs:{slot:"header"},slot:"header"},[n("span",[e._v(e._s(e.widget.options.label))]),e.widget.options.showFold?n("i",{staticClass:"float-right",class:[e.widget.options.folded?"el-icon-arrow-up":"el-icon-arrow-down"],on:{click:e.toggleCard}}):e._e()]),n("draggable",e._b({attrs:{list:e.widget.widgetList,handle:".drag-handler",move:e.checkContainerMove},on:{add:function(t){return e.onContainerDragAdd(t,e.widget.widgetList)},update:e.onContainerDragUpdate}},"draggable",{group:"dragGroup",ghostClass:"ghost",animation:200},!1),[n("transition-group",{staticClass:"form-widget-list",attrs:{name:"fade",tag:"div"}},[e._l(e.widget.widgetList,(function(t,i){return["container"===t.category?[n(t.type+"-widget",{key:t.id,tag:"component",attrs:{widget:t,designer:e.designer,"parent-list":e.widget.widgetList,"index-of-parent-list":i,"parent-widget":e.widget}})]:[n(t.type+"-widget",{key:t.id,tag:"component",attrs:{field:t,designer:e.designer,"parent-list":e.widget.widgetList,"index-of-parent-list":i,"parent-widget":e.widget,"design-state":!0}})]]}))],2)],1)],1)],1)},Ft=[],jt=n("61ca"),It=n("cd36"),qt=n("26a6"),Pt={name:"card-widget",componentName:"ContainerWidget",mixins:[E["b"],jt["a"],qt["a"]],inject:["refList"],components:Object(p["a"])({Draggable:m.a,ContainerWrapper:It["default"]},Y["a"]),props:{widget:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object},computed:{selected:function(){return this.widget.id===this.designer.selectedId},customClass:function(){return this.widget.options.customClass||""}},created:function(){this.initRefList()},methods:{checkContainerMove:function(e){return!0},toggleCard:function(){this.widget.options.folded=!this.widget.options.folded},setFolded:function(e){this.widget.options.folded=!!e}}},Nt=Pt,Dt=(n("09c3"),Object(R["a"])(Nt,$t,Ft,!1,null,"228afde5",null)),Wt=Dt.exports,Bt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("container-item-wrapper",{attrs:{widget:e.widget}},[n("el-card",{directives:[{name:"show",rawName:"v-show",value:!e.widget.options.hidden,expression:"!widget.options.hidden"}],key:e.widget.id,ref:e.widget.id,staticClass:"card-container",class:[e.widget.options.folded?"folded":"",e.customClass],style:{width:e.widget.options.cardWidth+"!important"||!1},attrs:{shadow:e.widget.options.shadow}},[n("div",{staticClass:"clear-fix",attrs:{slot:"header"},slot:"header"},[n("span",[e._v(e._s(e.widget.options.label))]),e.widget.options.showFold?n("i",{staticClass:"float-right",class:[e.widget.options.folded?"el-icon-arrow-up":"el-icon-arrow-down"],on:{click:e.toggleCard}}):e._e()]),e.widget.widgetList&&e.widget.widgetList.length>0?[e._l(e.widget.widgetList,(function(t,i){return["container"===t.category?[n(e.getComponentByContainer(t),{key:i,tag:"component",attrs:{widget:t,"parent-list":e.widget.widgetList,"index-of-parent-list":i,"parent-widget":e.widget},scopedSlots:e._u([e._l(Object.keys(e.$scopedSlots),(function(t){return{key:t,fn:function(n){return[e._t(t,null,null,n)]}}}))],null,!0)})]:[n(t.type+"-widget",{key:i,tag:"component",attrs:{field:t,designer:null,"parent-list":e.widget.widgetList,"index-of-parent-list":i,"parent-widget":e.widget},scopedSlots:e._u([e._l(Object.keys(e.$scopedSlots),(function(t){return{key:t,fn:function(n){return[e._t(t,null,null,n)]}}}))],null,!0)})]]}))]:e._e()],2)],1)},Ht=[],zt=n("d67f"),Vt=n("90c2"),Ut=n("34f0"),Kt={name:"card-item",componentName:"ContainerItem",mixins:[z["a"],E["b"],zt["a"],Ut["a"]],components:Object(p["a"])({ContainerItemWrapper:Vt["default"]},Y["a"]),props:{widget:Object},inject:["refList","sfRefList","globalModel"],computed:{customClass:function(){return this.widget.options.customClass||""}},created:function(){this.initRefList()},beforeDestroy:function(){this.unregisterFromRefList()},methods:{toggleCard:function(){this.widget.options.folded=!this.widget.options.folded}}},Gt=Kt,Yt=(n("2e46"),Object(R["a"])(Gt,Bt,Ht,!1,null,"2a1af67f",null)),Jt=Yt.exports,Xt=(n("a4d3"),n("e01a"),function(e,t){var n=e.options,i=ce(e),o=n.cardWidth?'style="{width: '.concat(n.cardWidth,' !important}"'):"",r='shadow="'.concat(n.shadow,'"'),s=n.hidden?'v-show="false"':"",a='<div class="card-container">\n <el-card '.concat(i," ").concat(o," ").concat(r," ").concat(s,'>\n <div slot="header" class="clear-fix">\n <span>').concat(n.label,"</span>\n ").concat(n.showFold?'<i class="float-right el-icon-arrow-down"></i>':"","\n </div>\n ").concat(e.widgetList.map((function(e){return"container"===e.category?de(e,t):be(e,t)})).join(""),"\n </el-card>\n</div>");return a}),Zt=function(e,t){var n=e.options,i='title="'.concat(n.title,'"'),o="type=".concat(n.type),r=n.description?'description="'.concat(n.description,'"'):"",s=':closable="'.concat(n.closable,'"'),a=n.closeText?'close-text="'.concat(n.closeText,'"'):"",l=':center="'.concat(n.center,'"'),c=':show-icon="'.concat(n.showIcon,'"'),u='effect="'.concat(n.effect,'"'),d="<el-alert ".concat(i," ").concat(o," ").concat(r," ").concat(s," ").concat(a," ").concat(l," \n ").concat(c," ").concat(u,">\n</el-alert>");return d},Qt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("static-content-wrapper",{attrs:{designer:e.designer,field:e.field,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[n("el-alert",{ref:"fieldEditor",attrs:{title:e.field.options.title,type:e.field.options.type,description:e.field.options.description,closable:e.field.options.closable,center:e.field.options.center,"close-text":e.field.options.closeText,"show-icon":e.field.options.showIcon,effect:e.field.options.effect},on:{close:e.handleCloseCustomEvent}})],1)},en=[],tn=n("828b"),nn=n("2d11"),on={name:"alert-widget",componentName:"FieldWidget",mixins:[z["a"],nn["a"],E["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{StaticContentWrapper:tn["default"]},created:function(){this.registerToRefList(),this.initEventHandler()},beforeDestroy:function(){this.unregisterFromRefList()},methods:{handleCloseCustomEvent:function(){if(this.field.options.onClose){var e=new Function(this.field.options.onClose);e.call(this)}}}},rn=on,sn=Object(R["a"])(rn,Qt,en,!1,null,"b1f52dec",null),an=sn.exports,ln={type:"tag",icon:"tag-field",formItemFlag:!0,options:{name:"",label:"Tag",labelAlign:"",content:"Tag",type:"",size:"",closable:!1,disableTransitions:!1,hit:!1,effect:"plain",columnWidth:"200px",labelWidth:null,labelHidden:!1,disabled:!1,hidden:!1,customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onClick:"",onClose:""}},cn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form-item-wrapper",{attrs:{designer:e.designer,field:e.field,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList}},[n("el-tag",{key:e.field.id,attrs:{type:e.field.options.type,size:e.field.options.size,closable:e.field.options.closable,"disable-transitions":e.field.options.disableTransitions,hit:e.field.options.hit,effect:e.field.options.effect},on:{click:function(t){return e.selectWidget(e.field)}}},[e._v(" "+e._s(e.field.options.content||"Tag")+" ")])],1)},un=[],dn={name:"tag-widget",componentName:"FieldWidget",mixins:[E["b"],nn["a"],qt["a"]],components:{FormItemWrapper:mt["default"]},props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object},computed:{selected:function(){return this.field.id===this.designer.selectedId}},created:function(){this.initRefList()}},hn=dn,fn=(n("54ca"),Object(R["a"])(hn,cn,un,!1,null,"73eadd57",null)),pn=fn.exports,gn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"tag-item"},[n("el-tag",{attrs:{type:e.field.options.type,size:e.field.options.size,closable:e.field.options.closable,"disable-transitions":e.field.options.disableTransitions,hit:e.field.options.hit,effect:e.field.options.effect},on:{close:e.handleClose}},[e._v(" "+e._s(e.field.options.content||"Tag")+" ")])],1)},mn=[],bn={name:"tag-item",mixins:[E["b"]],props:{field:Object,formData:Object,value:[String,Number,Boolean,Array,Object],disabled:Boolean,rules:Array},methods:{handleClose:function(){if(this.field.options.onClose)try{var e=new Function("$event","$field","$value",this.field.options.onClose);e.call(this,"close",this.field,this.value)}catch(t){console.error("Error executing onClose event:",t)}}}},vn=bn,yn=(n("9c84"),Object(R["a"])(vn,gn,mn,!1,null,"7c622d09",null)),wn=yn.exports,xn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];x(Tt),U.a.component(Wt.name,Wt),U.a.component(Jt.name,Jt),Ke("card-folded","card-folded-editor",yt("folded","extension.setting.cardFolded")),Ke("card-showFold","card-showFold-editor",yt("showFold","extension.setting.cardShowFold")),Ke("card-cardWidth","card-cardWidth-editor",bt("cardWidth","extension.setting.cardWidth"));var t=[{label:"never",value:"never"},{label:"hover",value:"hover"},{label:"always",value:"always"}];Ke("card-shadow","card-shadow-editor",_t("shadow","extension.setting.cardShadow",{optionItems:t})),xe("card",Xt),k(Rt),U.a.component(an.name,an),Ke("alert-title","alert-title-editor",bt("title","extension.setting.alertTitle"));var n=[{label:"success",value:"success"},{label:"warning",value:"warning"},{label:"info",value:"info"},{label:"error",value:"error"}];U.a.component("alert-type-editor",_t("type","extension.setting.alertType",{optionItems:n})),Ke("alert-description","alert-description-editor",bt("description","extension.setting.description")),Ke("alert-closable","alert-closable-editor",yt("closable","extension.setting.closable")),Ke("alert-closeText","alert-closeText-editor",bt("closeText","extension.setting.closeText")),Ke("alert-center","alert-center-editor",yt("center","extension.setting.center")),Ke("alert-showIcon","alert-showIcon-editor",yt("showIcon","extension.setting.showIcon"));var r=[{label:"light",value:"light"},{label:"dark",value:"dark"}];Ke("alert-effect","alert-effect-editor",Ct("effect","extension.setting.effect",{optionItems:r})),Ye("alert-onClose","alert-onClose-editor",kt("onClose",[])),Ce("alert",Zt),k(ln),U.a.component(pn.name,pn),U.a.component(wn.name,wn),Ke("tag-content","tag-content-editor",bt("content","extension.setting.tagContent"));var s=[{label:"",value:""},{label:"success",value:"success"},{label:"warning",value:"warning"},{label:"info",value:"info"},{label:"error",value:"error"}];U.a.component("tag-type-editor",_t("type","extension.setting.tagType",{optionItems:s}));var a=[{label:"",value:""},{label:"medium",value:"medium"},{label:"small",value:"small"},{label:"mini",value:"mini"}];U.a.component("tag-size-editor",_t("size","extension.setting.tagSize",{optionItems:a})),Ke("tag-closable","tag-closable-editor",yt("closable","extension.setting.tagClosable")),Ke("tag-disableTransitions","tag-disableTransitions-editor",yt("disableTransitions","extension.setting.tagDisableTransitions")),Ke("tag-hit","tag-hit-editor",yt("hit","extension.setting.tagHit"));var l=[{label:"plain",value:"plain"},{label:"dark",value:"dark"}];U.a.component("tag-effect-editor",Ct("effect","extension.setting.tagEffect",{optionItems:l})),Ye("tag-onClose","tag-onClose-editor",kt("onClose",[])),At({Vue:U.a,widgets:{addContainerWidgetSchema:x,addBasicFieldSchema:C,addAdvancedFieldSchema:_,addCustomWidgetSchema:k},properties:i,editors:o,generators:{registerCWGenerator:xe,registerFWGenerator:Ce}},e)};n("caad"),n("2532");U.a.directive("dialogDrag",{bind:function(e,t,n,i){var o=e.querySelector(".el-dialog__header"),r=e.querySelector(".el-dialog");o.style.cursor="move";var s=r.currentStyle||window.getComputedStyle(r,null);o.onmousedown=function(e){var t,n,i=e.clientX-o.offsetLeft,a=e.clientY-o.offsetTop;s.left.includes("%")?(t=+document.body.clientWidth*(+s.left.replace(/%/g,"")/100),n=+document.body.clientHeight*(+s.top.replace(/%/g,"")/100)):(t=+s.left.replace(/px/g,""),n=+s.top.replace(/px/g,"")),document.onmousemove=function(e){var o=e.clientX-i,s=e.clientY-a;r.style.left="".concat(o+t,"px"),r.style.top="".concat(s+n,"px")},document.onmouseup=function(e){document.onmousemove=null,document.onmouseup=null}}}}),U.a.directive("dialogDragWidth",{bind:function(e,t,n,i){var o=t.value.$el.querySelector(".el-dialog");e.onmousedown=function(t){var n=t.clientX-e.offsetLeft;document.onmousemove=function(e){e.preventDefault();var t=e.clientX-n;o.style.width="".concat(t,"px")},document.onmouseup=function(e){document.onmousemove=null,document.onmouseup=null}}}});n("985d"),n("0f59");var Cn=!1;gt.install=function(e){e.component(gt.name,gt)},Q.install=function(e){e.component(Q.name,Q)},mt["default"].install=function(e){e.component(mt["default"].name,mt["default"])};var _n=[gt,Q,mt["default"]],kn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};window.axios=c.a,Cn||(xn(t.extensions||[]),Cn=!0),_n.forEach((function(t){e.component(t.name,t)}))};"undefined"!==typeof window&&window.Vue&&kn(window.Vue);var Sn={install:kn,registerExtension:Mt,VFormDesigner:gt,VFormRender:Q,FormItemWrapper:mt["default"]};t["default"]=Sn},fb56:function(e,t,n){"use strict";n("ff5e")},fb6a:function(e,t,n){"use strict";var i=n("23e7"),o=n("da84"),r=n("e8b5"),s=n("68ee"),a=n("861d"),l=n("23cb"),c=n("07fa"),u=n("fc6a"),d=n("8418"),h=n("b622"),f=n("1dde"),p=n("f36a"),g=f("slice"),m=h("species"),b=o.Array,v=Math.max;i({target:"Array",proto:!0,forced:!g},{slice:function(e,t){var n,i,o,h=u(this),f=c(h),g=l(e,f),y=l(void 0===t?f:t,f);if(r(h)&&(n=h.constructor,s(n)&&(n===b||r(n.prototype))?n=void 0:a(n)&&(n=n[m],null===n&&(n=void 0)),n===b||void 0===n))return p(h,g,y);for(i=new(void 0===n?b:n)(v(y-g,0)),o=0;g<y;g++,o++)g in h&&d(i,o,h[g]);return i.length=o,i}})},fbe0:function(e,t,n){},fc6a:function(e,t,n){var i=n("44ad"),o=n("1d80");e.exports=function(e){return i(o(e))}},fc8b:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.lowThreshold")}},[n("el-input-number",{staticClass:"hide-spin-button",staticStyle:{width:"100%"},attrs:{min:1,max:e.optionModel.highThreshold},model:{value:e.optionModel.lowThreshold,callback:function(t){e.$set(e.optionModel,"lowThreshold",t)},expression:"optionModel.lowThreshold"}})],1)},o=[],r=n("79fa"),s={name:"lowThreshold-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"d66e35d0",null);t["default"]=c.exports},fcbf:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.cellHeight")}},[n("el-input",{attrs:{type:"text"},model:{value:e.optionModel.cellHeight,callback:function(t){e.$set(e.optionModel,"cellHeight",t)},expression:"optionModel.cellHeight"}})],1)},o=[],r=n("79fa"),s={name:"cellHeight-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"52af6c29",null);t["default"]=c.exports},fce3:function(e,t,n){var i=n("d039"),o=n("da84"),r=o.RegExp;e.exports=i((function(){var e=r(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}))},fd28:function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-document",use:"icon-document-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-document"><defs><style type="text/css"></style></defs><path d="M979.478261 706.381913a44.521739 44.521739 0 0 1-11.842783 57.967304l-4.36313 2.849392-393.794783 227.862261-5.38713 4.763826a84.012522 84.012522 0 0 1-43.942957 17.808695l-8.102956 0.400696c-19.055304 0-37.309217-6.544696-52.045913-18.253913l-5.431652-4.719304-393.750261-227.862261a44.521739 44.521739 0 0 1-18.610087-56.186435l2.359652-4.630261a44.521739 44.521739 0 0 1 60.816696-16.250435l405.325913 234.540522 1.335652 1.513739 1.335652-1.513739 405.281391-234.540522a44.521739 44.521739 0 0 1 60.861218 16.250435z m0-222.608696a44.521739 44.521739 0 0 1-11.842783 57.967305l-4.36313 2.849391-393.794783 227.862261-5.38713 4.763826a84.012522 84.012522 0 0 1-43.942957 17.808696l-8.102956 0.400695c-19.055304 0-37.309217-6.544696-52.045913-18.253913l-5.431652-4.719304-393.750261-227.862261a44.521739 44.521739 0 0 1-18.610087-56.186435l2.359652-4.630261a44.521739 44.521739 0 0 1 60.816696-16.250434l405.325913 234.540521 1.335652 1.513739 1.335652-1.513739 405.281391-234.540521a44.521739 44.521739 0 0 1 60.861218 16.250434zM512 0c18.788174 0 36.864 6.099478 51.645217 17.185391l4.58574 3.739826 403.500521 199.68 5.609739 6.144c32.50087 35.439304 32.50087 89.889391 0 125.328696l-5.609739 6.144-403.500521 199.590957-4.541218 3.784347a86.238609 86.238609 0 0 1-43.675826 16.829218L512 578.782609c-18.788174 0-36.864-6.099478-51.645217-17.185392l-4.630261-3.784347L52.268522 358.221913l-5.609739-6.144a92.738783 92.738783 0 0 1 0-125.328696l5.609739-6.144L455.724522 20.925217l4.585739-3.739826c12.688696-9.48313 27.826087-15.315478 43.675826-16.829217z" fill="#008df0" p-id="5455" /></symbol>'});s.a.add(a);t["default"]=a},fd87:function(e,t,n){var i=n("74e8");i("Int8",(function(e){return function(t,n,i){return e(this,t,n,i)}}))},fdbc:function(e,t){e.exports={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}},fdbf:function(e,t,n){var i=n("4930");e.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},fe05:function(e,t,n){"use strict";n("2dd9")},fe5d:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.allowCreate")}},[n("el-switch",{model:{value:e.optionModel.allowCreate,callback:function(t){e.$set(e.optionModel,"allowCreate",t)},expression:"optionModel.allowCreate"}})],1)},o=[],r=n("79fa"),s={name:"allowCreate-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"7ea31b71",null);t["default"]=c.exports},fea9:function(e,t,n){var i=n("da84");e.exports=i.Promise},feea:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.displayType")}},[n("el-select",{model:{value:e.optionModel.type,callback:function(t){e.$set(e.optionModel,"type",t)},expression:"optionModel.type"}},[n("el-option",{attrs:{label:"daterange",value:"daterange"}}),n("el-option",{attrs:{label:"datetimerange",value:"datetimerange"}}),n("el-option",{attrs:{label:"monthrange",value:"monthrange"}})],1)],1)},o=[],r=n("79fa"),s={name:"date-range-type-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"574545a5",null);t["default"]=c.exports},ff09:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.maxValue")}},[n("el-input-number",{staticClass:"hide-spin-button",staticStyle:{width:"100%"},model:{value:e.maxValue,callback:function(t){e.maxValue=t},expression:"maxValue"}})],1)},o=[],r=(n("a9e3"),n("79fa")),s={name:"max-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},computed:{maxValue:{get:function(){return this.optionModel["max"]},set:function(e){!e||isNaN(e)?this.optionModel.max=null:this.optionModel.max=Number(e)}}}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"edcd3882",null);t["default"]=c.exports},ff5e:function(e,t,n){},ff66:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.precision")}},[n("el-input-number",{staticClass:"hide-spin-button",staticStyle:{width:"100%"},attrs:{min:0},model:{value:e.optionModel.precision,callback:function(t){e.$set(e.optionModel,"precision",t)},expression:"optionModel.precision"}})],1)},o=[],r=n("79fa"),s={name:"precision-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"6d29eaf2",null);t["default"]=c.exports},ffcf:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.optionModel.responsive?e._e():n("el-form-item",{attrs:{label:e.i18nt("designer.setting.colSpanTitle")}},[n("el-input-number",{staticStyle:{width:"100%"},attrs:{min:1,max:24},model:{value:e.optionModel.span,callback:function(t){e.$set(e.optionModel,"span",e._n(t))},expression:"optionModel.span"}})],1),e.optionModel.responsive&&"PC"===e.formConfig.layoutType?n("el-form-item",{attrs:{label:e.i18nt("designer.setting.colSpanTitle")+"(PC)"}},[n("el-input-number",{staticStyle:{width:"100%"},attrs:{min:1,max:24},model:{value:e.optionModel.md,callback:function(t){e.$set(e.optionModel,"md",e._n(t))},expression:"optionModel.md"}})],1):e._e(),e.optionModel.responsive&&"Pad"===e.formConfig.layoutType?n("el-form-item",{attrs:{label:e.i18nt("designer.setting.colSpanTitle")+"(Pad)"}},[n("el-input-number",{staticStyle:{width:"100%"},attrs:{min:1,max:24},model:{value:e.optionModel.sm,callback:function(t){e.$set(e.optionModel,"sm",e._n(t))},expression:"optionModel.sm"}})],1):e._e(),e.optionModel.responsive&&"H5"===e.formConfig.layoutType?n("el-form-item",{attrs:{label:e.i18nt("designer.setting.colSpanTitle")+"(H5)"}},[n("el-input-number",{staticStyle:{width:"100%"},attrs:{min:1,max:24},model:{value:e.optionModel.xs,callback:function(t){e.$set(e.optionModel,"xs",e._n(t))},expression:"optionModel.xs"}})],1):e._e()],1)},o=[],r=n("79fa"),s={name:"grid-col-span-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},computed:{formConfig:function(){return this.designer.formConfig}}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"163e0823",null);t["default"]=c.exports}})["default"]}));
|