react-jsonschema-form-pagination
Advanced tools
Comparing version 0.1.19 to 0.1.20
@@ -1,8 +0,2 @@ | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.JSONSchemaForm=e(require("react")):t.JSONSchemaForm=e(t.React)}(this,function(t){return function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var r={};return e.m=t,e.c=r,e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/dist/",e(e.s=8)}([function(t,e,r){"use strict";function n(){return!1}function o(t){return!t||!t.properties||0===Object.keys(t.properties).length}function i(t,e){return e&&e[t]&&e[t][g]?e[t][g][0]:d}function u(t,e){var r=Object.keys(t.properties).map(function(t){return i(t,e)}),n=Object.keys(e).map(function(t){return i(t,e)}),o=r.concat(n).concat([d]);return Array.from(new Set(o))}function a(t){Object.keys(t).forEach(function(e){t[e]&&t[e][g]&&!Array.isArray(t[e][g])&&(t[e][g]=[t[e][g]])})}function f(t){t[v]||(t[v]={}),Object.keys(t[v]).forEach(function(e){var r=t[v][e];Array.isArray(r)||(t[v][e]=[r])})}function s(t){t[b]||(t[b]=[])}function c(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=(0,y.default)(t);return a(e),f(e),s(e),e}function l(t){t.required||(t.required=[])}function h(t){var e=(0,y.default)(t);return l(e),e}Object.defineProperty(e,"__esModule",{value:!0}),e.toError=e.UI_TAB_ORDER=e.UI_TAB_ALIAS=e.UI_TAB_ID=e.UI_ORDER=e.GENERIC_TAB=void 0,e.isDevelopment=n,e.isEmptySchema=o,e.findLayer=i,e.listLayers=u,e.normalizeUiSchema=c,e.normalizeSchema=h;var p=r(2),y=function(t){return t&&t.__esModule?t:{default:t}}(p),d=e.GENERIC_TAB="default",g=(e.UI_ORDER="ui:order",e.UI_TAB_ID="ui:tabID"),v=e.UI_TAB_ALIAS="ui:tabAlias",b=e.UI_TAB_ORDER="ui:tabOrder";e.toError=function(t){console.error(t)}},function(e,r){e.exports=t},function(t,e,r){"use strict";t.exports=r(17)},function(t,e,r){"use strict";"function"==typeof Symbol&&Symbol.iterator;t.exports=r(10)()},function(t,e,r){"use strict";function n(t){return null===t||void 0===t}function o(t){return!(!t||"object"!==(void 0===t?"undefined":u(t))||"number"!=typeof t.length)&&("function"==typeof t.copy&&"function"==typeof t.slice&&!(t.length>0&&"number"!=typeof t[0]))}function i(t,e,r){var i,l;if(n(t)||n(e))return!1;if(t.prototype!==e.prototype)return!1;if(s(t))return!!s(e)&&(t=a.call(t),e=a.call(e),c(t,e,r));if(o(t)){if(!o(e))return!1;if(t.length!==e.length)return!1;for(i=0;i<t.length;i++)if(t[i]!==e[i])return!1;return!0}try{var h=f(t),p=f(e)}catch(t){return!1}if(h.length!=p.length)return!1;for(h.sort(),p.sort(),i=h.length-1;i>=0;i--)if(h[i]!=p[i])return!1;for(i=h.length-1;i>=0;i--)if(l=h[i],!c(t[l],e[l],r))return!1;return(void 0===t?"undefined":u(t))===(void 0===e?"undefined":u(e))}var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a=Array.prototype.slice,f=r(14),s=r(15),c=t.exports=function(t,e,r){return r||(r={}),t===e||(t instanceof Date&&e instanceof Date?t.getTime()===e.getTime():!t||!e||"object"!=(void 0===t?"undefined":u(t))&&"object"!=(void 0===e?"undefined":u(e))?r.strict?t===e:t==e:i(t,e,r))}},function(t,e,r){"use strict";(function(t){function n(){return i.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function o(t,e){if(n()<e)throw new RangeError("Invalid typed array length");return i.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=i.prototype):(null===t&&(t=new i(e)),t.length=e),t}function i(t,e,r){if(!(i.TYPED_ARRAY_SUPPORT||this instanceof i))return new i(t,e,r);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return s(this,t)}return u(this,t,e,r)}function u(t,e,r,n){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?h(t,e,r,n):"string"==typeof e?c(t,e,r):p(t,e)}function a(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function f(t,e,r,n){return a(e),e<=0?o(t,e):void 0!==r?"string"==typeof n?o(t,e).fill(r,n):o(t,e).fill(r):o(t,e)}function s(t,e){if(a(e),t=o(t,e<0?0:0|y(e)),!i.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)t[r]=0;return t}function c(t,e,r){if("string"==typeof r&&""!==r||(r="utf8"),!i.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|g(e,r);t=o(t,n);var u=t.write(e,r);return u!==n&&(t=t.slice(0,u)),t}function l(t,e){var r=e.length<0?0:0|y(e.length);t=o(t,r);for(var n=0;n<r;n+=1)t[n]=255&e[n];return t}function h(t,e,r,n){if(e.byteLength,r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");return e=void 0===r&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,r):new Uint8Array(e,r,n),i.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=i.prototype):t=l(t,e),t}function p(t,e){if(i.isBuffer(e)){var r=0|y(e.length);return t=o(t,r),0===t.length?t:(e.copy(t,0,0,r),t)}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||X(e.length)?o(t,0):l(t,e);if("Buffer"===e.type&&$(e.data))return l(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function y(t){if(t>=n())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n().toString(16)+" bytes");return 0|t}function d(t){return+t!=t&&(t=0),i.alloc(+t)}function g(t,e){if(i.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return q(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return W(t).length;default:if(n)return q(t).length;e=(""+e).toLowerCase(),n=!0}}function v(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if(r>>>=0,e>>>=0,r<=e)return"";for(t||(t="utf8");;)switch(t){case"hex":return j(this,e,r);case"utf8":case"utf-8":return D(this,e,r);case"ascii":return I(this,e,r);case"latin1":case"binary":return B(this,e,r);case"base64":return O(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function b(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function m(t,e,r,n,o){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=o?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(o)return-1;r=t.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof e&&(e=i.from(e,n)),i.isBuffer(e))return 0===e.length?-1:_(t,e,r,n,o);if("number"==typeof e)return e&=255,i.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):_(t,[e],r,n,o);throw new TypeError("val must be string, number or Buffer")}function _(t,e,r,n,o){function i(t,e){return 1===u?t[e]:t.readUInt16BE(e*u)}var u=1,a=t.length,f=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;u=2,a/=2,f/=2,r/=2}var s;if(o){var c=-1;for(s=r;s<a;s++)if(i(t,s)===i(e,-1===c?0:s-c)){if(-1===c&&(c=s),s-c+1===f)return c*u}else-1!==c&&(s-=s-c),c=-1}else for(r+f>a&&(r=a-f),s=r;s>=0;s--){for(var l=!0,h=0;h<f;h++)if(i(t,s+h)!==i(e,h)){l=!1;break}if(l)return s}return-1}function w(t,e,r,n){r=Number(r)||0;var o=t.length-r;n?(n=Number(n))>o&&(n=o):n=o;var i=e.length;if(i%2!=0)throw new TypeError("Invalid hex string");n>i/2&&(n=i/2);for(var u=0;u<n;++u){var a=parseInt(e.substr(2*u,2),16);if(isNaN(a))return u;t[r+u]=a}return u}function E(t,e,r,n){return K(q(e,t.length-r),t,r,n)}function A(t,e,r,n){return K(V(e),t,r,n)}function T(t,e,r,n){return A(t,e,r,n)}function R(t,e,r,n){return K(W(e),t,r,n)}function S(t,e,r,n){return K(J(e,t.length-r),t,r,n)}function O(t,e,r){return 0===e&&r===t.length?H.fromByteArray(t):H.fromByteArray(t.slice(e,r))}function D(t,e,r){r=Math.min(t.length,r);for(var n=[],o=e;o<r;){var i=t[o],u=null,a=i>239?4:i>223?3:i>191?2:1;if(o+a<=r){var f,s,c,l;switch(a){case 1:i<128&&(u=i);break;case 2:f=t[o+1],128==(192&f)&&(l=(31&i)<<6|63&f)>127&&(u=l);break;case 3:f=t[o+1],s=t[o+2],128==(192&f)&&128==(192&s)&&(l=(15&i)<<12|(63&f)<<6|63&s)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:f=t[o+1],s=t[o+2],c=t[o+3],128==(192&f)&&128==(192&s)&&128==(192&c)&&(l=(15&i)<<18|(63&f)<<12|(63&s)<<6|63&c)>65535&&l<1114112&&(u=l)}}null===u?(u=65533,a=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|1023&u),n.push(u),o+=a}return P(n)}function P(t){var e=t.length;if(e<=Q)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=Q));return r}function I(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(127&t[o]);return n}function B(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(t[o]);return n}function j(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=e;i<r;++i)o+=G(t[i]);return o}function U(t,e,r){for(var n=t.slice(e,r),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function C(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function M(t,e,r,n,o,u){if(!i.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<u)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function x(t,e,r,n){e<0&&(e=65535+e+1);for(var o=0,i=Math.min(t.length-r,2);o<i;++o)t[r+o]=(e&255<<8*(n?o:1-o))>>>8*(n?o:1-o)}function L(t,e,r,n){e<0&&(e=4294967295+e+1);for(var o=0,i=Math.min(t.length-r,4);o<i;++o)t[r+o]=e>>>8*(n?o:3-o)&255}function Y(t,e,r,n,o,i){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function k(t,e,r,n,o){return o||Y(t,e,r,4,3.4028234663852886e38,-3.4028234663852886e38),Z.write(t,e,r,n,23,4),r+4}function N(t,e,r,n,o){return o||Y(t,e,r,8,1.7976931348623157e308,-1.7976931348623157e308),Z.write(t,e,r,n,52,8),r+8}function F(t){if(t=z(t).replace(tt,""),t.length<2)return"";for(;t.length%4!=0;)t+="=";return t}function z(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function G(t){return t<16?"0"+t.toString(16):t.toString(16)}function q(t,e){e=e||1/0;for(var r,n=t.length,o=null,i=[],u=0;u<n;++u){if((r=t.charCodeAt(u))>55295&&r<57344){if(!o){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(u+1===n){(e-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function V(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}function J(t,e){for(var r,n,o,i=[],u=0;u<t.length&&!((e-=2)<0);++u)r=t.charCodeAt(u),n=r>>8,o=r%256,i.push(o),i.push(n);return i}function W(t){return H.toByteArray(F(t))}function K(t,e,r,n){for(var o=0;o<n&&!(o+r>=e.length||o>=t.length);++o)e[o+r]=t[o];return o}function X(t){return t!==t}/*! | ||
* The buffer module from node.js, for the browser. | ||
* | ||
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org> | ||
* @license MIT | ||
*/ | ||
var H=r(20),Z=r(21),$=r(22);e.Buffer=i,e.SlowBuffer=d,e.INSPECT_MAX_BYTES=50,i.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=n(),i.poolSize=8192,i._augment=function(t){return t.__proto__=i.prototype,t},i.from=function(t,e,r){return u(null,t,e,r)},i.TYPED_ARRAY_SUPPORT&&(i.prototype.__proto__=Uint8Array.prototype,i.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&i[Symbol.species]===i&&Object.defineProperty(i,Symbol.species,{value:null,configurable:!0})),i.alloc=function(t,e,r){return f(null,t,e,r)},i.allocUnsafe=function(t){return s(null,t)},i.allocUnsafeSlow=function(t){return s(null,t)},i.isBuffer=function(t){return!(null==t||!t._isBuffer)},i.compare=function(t,e){if(!i.isBuffer(t)||!i.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var r=t.length,n=e.length,o=0,u=Math.min(r,n);o<u;++o)if(t[o]!==e[o]){r=t[o],n=e[o];break}return r<n?-1:n<r?1:0},i.isEncoding=function(t){switch(String(t).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}},i.concat=function(t,e){if(!$(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return i.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=i.allocUnsafe(e),o=0;for(r=0;r<t.length;++r){var u=t[r];if(!i.isBuffer(u))throw new TypeError('"list" argument must be an Array of Buffers');u.copy(n,o),o+=u.length}return n},i.byteLength=g,i.prototype._isBuffer=!0,i.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)b(this,e,e+1);return this},i.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)b(this,e,e+3),b(this,e+1,e+2);return this},i.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)b(this,e,e+7),b(this,e+1,e+6),b(this,e+2,e+5),b(this,e+3,e+4);return this},i.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?D(this,0,t):v.apply(this,arguments)},i.prototype.equals=function(t){if(!i.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===i.compare(this,t)},i.prototype.inspect=function(){var t="",r=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),"<Buffer "+t+">"},i.prototype.compare=function(t,e,r,n,o){if(!i.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),e<0||r>t.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&e>=r)return 0;if(n>=o)return-1;if(e>=r)return 1;if(e>>>=0,r>>>=0,n>>>=0,o>>>=0,this===t)return 0;for(var u=o-n,a=r-e,f=Math.min(u,a),s=this.slice(n,o),c=t.slice(e,r),l=0;l<f;++l)if(s[l]!==c[l]){u=s[l],a=c[l];break}return u<a?-1:a<u?1:0},i.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},i.prototype.indexOf=function(t,e,r){return m(this,t,e,r,!0)},i.prototype.lastIndexOf=function(t,e,r){return m(this,t,e,r,!1)},i.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var o=this.length-e;if((void 0===r||r>o)&&(r=o),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return w(this,t,e,r);case"utf8":case"utf-8":return E(this,t,e,r);case"ascii":return A(this,t,e,r);case"latin1":case"binary":return T(this,t,e,r);case"base64":return R(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,e,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Q=4096;i.prototype.slice=function(t,e){var r=this.length;t=~~t,e=void 0===e?r:~~e,t<0?(t+=r)<0&&(t=0):t>r&&(t=r),e<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t);var n;if(i.TYPED_ARRAY_SUPPORT)n=this.subarray(t,e),n.__proto__=i.prototype;else{var o=e-t;n=new i(o,void 0);for(var u=0;u<o;++u)n[u]=this[u+t]}return n},i.prototype.readUIntLE=function(t,e,r){t|=0,e|=0,r||C(t,e,this.length);for(var n=this[t],o=1,i=0;++i<e&&(o*=256);)n+=this[t+i]*o;return n},i.prototype.readUIntBE=function(t,e,r){t|=0,e|=0,r||C(t,e,this.length);for(var n=this[t+--e],o=1;e>0&&(o*=256);)n+=this[t+--e]*o;return n},i.prototype.readUInt8=function(t,e){return e||C(t,1,this.length),this[t]},i.prototype.readUInt16LE=function(t,e){return e||C(t,2,this.length),this[t]|this[t+1]<<8},i.prototype.readUInt16BE=function(t,e){return e||C(t,2,this.length),this[t]<<8|this[t+1]},i.prototype.readUInt32LE=function(t,e){return e||C(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},i.prototype.readUInt32BE=function(t,e){return e||C(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},i.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||C(t,e,this.length);for(var n=this[t],o=1,i=0;++i<e&&(o*=256);)n+=this[t+i]*o;return o*=128,n>=o&&(n-=Math.pow(2,8*e)),n},i.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||C(t,e,this.length);for(var n=e,o=1,i=this[t+--n];n>0&&(o*=256);)i+=this[t+--n]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*e)),i},i.prototype.readInt8=function(t,e){return e||C(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},i.prototype.readInt16LE=function(t,e){e||C(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},i.prototype.readInt16BE=function(t,e){e||C(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},i.prototype.readInt32LE=function(t,e){return e||C(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},i.prototype.readInt32BE=function(t,e){return e||C(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},i.prototype.readFloatLE=function(t,e){return e||C(t,4,this.length),Z.read(this,t,!0,23,4)},i.prototype.readFloatBE=function(t,e){return e||C(t,4,this.length),Z.read(this,t,!1,23,4)},i.prototype.readDoubleLE=function(t,e){return e||C(t,8,this.length),Z.read(this,t,!0,52,8)},i.prototype.readDoubleBE=function(t,e){return e||C(t,8,this.length),Z.read(this,t,!1,52,8)},i.prototype.writeUIntLE=function(t,e,r,n){if(t=+t,e|=0,r|=0,!n){M(this,t,e,r,Math.pow(2,8*r)-1,0)}var o=1,i=0;for(this[e]=255&t;++i<r&&(o*=256);)this[e+i]=t/o&255;return e+r},i.prototype.writeUIntBE=function(t,e,r,n){if(t=+t,e|=0,r|=0,!n){M(this,t,e,r,Math.pow(2,8*r)-1,0)}var o=r-1,i=1;for(this[e+o]=255&t;--o>=0&&(i*=256);)this[e+o]=t/i&255;return e+r},i.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||M(this,t,e,1,255,0),i.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},i.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||M(this,t,e,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):x(this,t,e,!0),e+2},i.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||M(this,t,e,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):x(this,t,e,!1),e+2},i.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||M(this,t,e,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):L(this,t,e,!0),e+4},i.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||M(this,t,e,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):L(this,t,e,!1),e+4},i.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var o=Math.pow(2,8*r-1);M(this,t,e,r,o-1,-o)}var i=0,u=1,a=0;for(this[e]=255&t;++i<r&&(u*=256);)t<0&&0===a&&0!==this[e+i-1]&&(a=1),this[e+i]=(t/u>>0)-a&255;return e+r},i.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var o=Math.pow(2,8*r-1);M(this,t,e,r,o-1,-o)}var i=r-1,u=1,a=0;for(this[e+i]=255&t;--i>=0&&(u*=256);)t<0&&0===a&&0!==this[e+i+1]&&(a=1),this[e+i]=(t/u>>0)-a&255;return e+r},i.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||M(this,t,e,1,127,-128),i.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},i.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||M(this,t,e,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):x(this,t,e,!0),e+2},i.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||M(this,t,e,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):x(this,t,e,!1),e+2},i.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||M(this,t,e,4,2147483647,-2147483648),i.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):L(this,t,e,!0),e+4},i.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||M(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),i.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):L(this,t,e,!1),e+4},i.prototype.writeFloatLE=function(t,e,r){return k(this,t,e,!0,r)},i.prototype.writeFloatBE=function(t,e,r){return k(this,t,e,!1,r)},i.prototype.writeDoubleLE=function(t,e,r){return N(this,t,e,!0,r)},i.prototype.writeDoubleBE=function(t,e,r){return N(this,t,e,!1,r)},i.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var o,u=n-r;if(this===t&&r<e&&e<n)for(o=u-1;o>=0;--o)t[o+e]=this[o+r];else if(u<1e3||!i.TYPED_ARRAY_SUPPORT)for(o=0;o<u;++o)t[o+e]=this[o+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+u),e);return u},i.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===t.length){var o=t.charCodeAt(0);o<256&&(t=o)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!i.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0);var u;if("number"==typeof t)for(u=e;u<r;++u)this[u]=t;else{var a=i.isBuffer(t)?t:q(new i(t,n).toString()),f=a.length;for(u=0;u<r-e;++u)this[u+e]=a[u%f]}return this};var tt=/[^+\/0-9A-Za-z-_]/g}).call(e,r(19))},function(t,e,r){"use strict";(function(t){function r(t,e){if("[object Array]"!==o.call(t))throw new TypeError("array must be an Array");var r=void 0,n=void 0,i=void 0;for(r=0,n=t.length;r<n;++r)if((i=t[r])===e||i!==i&&e!==e)return r;return-1}var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.__esModule=!0;var o=Object.prototype.toString,i=void 0!==t?function(e){return t.isBuffer(e)}:function(){return!1},u="function"==typeof Object.keys?function(t){return Object.keys(t)}:function(t){var e=void 0===t?"undefined":n(t);if(null===t||"function"!==e&&"object"!==e)throw new TypeError("obj must be an Object");var r=[],o=void 0;for(o in t)Object.prototype.hasOwnProperty.call(t,o)&&r.push(o);return r},a="function"==typeof Symbol?function(t){return Object.getOwnPropertySymbols(t)}:function(){return[]};e.getKeys=u,e.getSymbols=a,e.indexOf=r,e.isBuffer=i}).call(e,r(5).Buffer)},function(t,e,r){"use strict";function n(t){var e=t.handleClick,r=t.isActive,n=t.name;return u.default.createElement("li",{onClick:e,className:r?"active":null},u.default.createElement("a",null,n))}function o(t){var e=t.activeTab,r=t.tabs,o=t.onTabChange,i=r.filter(function(t){return t.tabID!==a.GENERIC_TAB});return i.length>0?u.default.createElement("fieldset",null,u.default.createElement("div",{className:"form-group col-md-12"},u.default.createElement("ul",{className:"nav nav-pills"},i.map(function(t,r){var i=t.tabID,a=t.name;return u.default.createElement(n,{key:r,name:a||i,isActive:e===i,handleClick:function(){return o(i)}})})))):u.default.createElement("div",null)}Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),u=function(t){return t&&t.__esModule?t:{default:t}}(i),a=r(0);e.default=o},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(9),o=function(t){return t&&t.__esModule?t:{default:t}}(n);e.default=o.default},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:E.default,r=(0,v.default)(t,e),n=function(t){function e(t){o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));a.call(r);var n=r.props,u=n.formData,f=n.tabData,s=n.schema,c=n.uiSchema;r.formData=u||{},r.layers=(0,_.default)(s,c,f);var l=r.layers.updateActiveTabs([],0);return r.state={formData:u,activeTabs:l},r}return u(e,t),s(e,[{key:"componentWillReceiveProps",value:function(t){if(!this.sameLayers(t)){var e=t.schema,r=t.uiSchema,n=t.tabData;this.layers=(0,_.default)(e,r,n)}this.sameData(t.formData)||(this.formData=t.formData,this.setState({formData:t.formData}))}},{key:"shouldComponentUpdate",value:function(t,e){if(!(0,d.default)(e.activeTabs,this.state.activeTabs))return!0;var r=(0,d.default)(Object.assign({},this.props,{formData:{}}),Object.assign({},t,{formData:{}}));if(!r)return!0;var n=(0,d.default)(Object.assign({},this.state,{formData:this.formData}),e);if(!n)return!0;var o=this.sameData(t.formData);return!r||!n||!o}},{key:"render",value:function(){var t=this,e=this.layers.toSubForms(this.state.activeTabs),n=this.formData;return l.default.createElement("div",null,e.map(function(e,o){var i=Object.assign({},t.props,e,{formData:n});return l.default.createElement(r,f({key:o},i,{onChange:t.handleOnChange,onTabChange:t.handleTabChange(o)}))}),this.props.children)}}]),e}(c.Component),a=function(){var t=this;this.sameData=function(e){return(0,d.default)(t.props.formData,e)||(0,d.default)(t.formData,e)},this.sameLayers=function(e){var r=function(t){return{tabData:t.tabData,schema:t.schema,uiSchema:t.uiSchema}};return(0,d.default)(r(e),r(t.props))},this.handleTabChange=function(e){return function(r){var n=t.state.activeTabs.slice(0,e+1);n[e]=r,t.layers.updateActiveTabs(n),t.props.onTabChange&&t.props.onTabChange(n,t.state.activeTabs),t.setState({activeTabs:n})}},this.handleOnChange=function(e){t.formData=e.formData,t.setState({formData:e.formData}),t.props.onChange&&t.props.onChange(e)}};return(0,b.isDevelopment)()&&(n.propTypes={schema:p.default.shape({type:function(t,e,r){if("object"!==t[e])return new Error('Only "object" schemas supported by pagination for '+r+".")}}),tabData:p.default.array}),n}Object.defineProperty(e,"__esModule",{value:!0});var f=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},s=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();e.default=a;var c=r(1),l=n(c),h=r(3),p=n(h),y=r(4),d=n(y),g=r(16),v=n(g),b=r(0),m=r(23),_=n(m),w=r(7),E=n(w)},function(t,e,r){"use strict";var n=r(11),o=r(12),i=r(13);t.exports=function(){function t(t,e,r,n,u,a){a!==i&&o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function e(){return t}t.isRequired=t;var r={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e};return r.checkPropTypes=n,r.PropTypes=r,r}},function(t,e,r){"use strict";function n(t){return function(){return t}}var o=function(){};o.thatReturns=n,o.thatReturnsFalse=n(!1),o.thatReturnsTrue=n(!0),o.thatReturnsNull=n(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(t){return t},t.exports=o},function(t,e,r){"use strict";function n(t,e,r,n,i,u,a,f){if(o(e),!t){var s;if(void 0===e)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[r,n,i,u,a,f],l=0;s=new Error(e.replace(/%s/g,function(){return c[l++]})),s.name="Invariant Violation"}throw s.framesToPop=1,s}}var o=function(t){};t.exports=n},function(t,e,r){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e,r){"use strict";function n(t){var e=[];for(var r in t)e.push(r);return e}e=t.exports="function"==typeof Object.keys?Object.keys:n,e.shim=n},function(t,e,r){"use strict";function n(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function o(t){return t&&"object"==(void 0===t?"undefined":i(t))&&"number"==typeof t.length&&Object.prototype.hasOwnProperty.call(t,"callee")&&!Object.prototype.propertyIsEnumerable.call(t,"callee")||!1}var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();e=t.exports=u?n:o,e.supported=n,e.unsupported=o},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),f=r(1),s=n(f),c=r(4),l=n(c),h=r(3),p=n(h),y=r(0),d=r(7),g=n(d),v=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g.default,r=function(t){function e(t){o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));n.call(r);var u=r.props.formData;return r.state={formData:u},r}return u(e,t),a(e,[{key:"componentWillReceiveProps",value:function(t){var e=t.formData;this.sameData(e)||(this.formData=e,this.setState({formData:e}))}},{key:"shouldComponentUpdate",value:function(t,e){var r=(0,l.default)(Object.assign({},this.props,{formData:{}}),Object.assign({},t,{formData:{}})),n=(0,l.default)(Object.assign({},this.state,{formData:this.formData}),e),o=this.sameData(t.formData);return!r||!n||!o}},{key:"render",value:function(){return s.default.createElement("div",null,this.renderForm(),this.renderTabs())}}]),e}(f.Component),n=function(){var r=this;this.sameData=function(t){return(0,l.default)(r.props.formData,t)||(0,l.default)(r.formData,t)},this.handleOnChange=function(t){r.formData=t.formData,r.setState({formData:t.formData}),r.props.onChange&&r.props.onChange(t)},this.renderForm=function(){if(r.props.schema){var e=r.state.formData,n=Object.assign({},r.props,{formData:e,onChange:r.handleOnChange});return s.default.createElement(t,n,s.default.createElement("div",null))}return s.default.createElement("div",null)},this.renderTabs=function(){var t=r.props,n=t.tabs,o=t.activeTab,i=t.onTabChange;return s.default.createElement(e,{tabs:n,activeTab:o,onTabChange:i})}};return(0,y.isDevelopment)()&&(r.propTypes={tabs:p.default.array}),r};e.default=v},function(t,e,r){"use strict";function n(t){}function o(t){var e=arguments.length<=1||void 0===arguments[1]?n:arguments[1];if(null===t)return null;var r=(0,a.copyValue)(t);if(null!==r)return r;var o=(0,a.copyCollection)(t,e),u=null!==o?o:t;return i(t,e,u,[t],[u])}function i(t,e,r,n,o){if(null===t)return null;var s=(0,a.copyValue)(t);if(null!==s)return s;var c=(0,f.getKeys)(t).concat((0,f.getSymbols)(t)),l=void 0,h=void 0,p=void 0,y=void 0,d=void 0,g=void 0,v=void 0,b=void 0;for(l=0,h=c.length;l<h;++l)p=c[l],y=t[p],d=(0,f.indexOf)(n,y),g=void 0,v=void 0,b=void 0,-1===d?(g=(0,a.copy)(y,e),v=null!==g?g:y,null!==y&&/^(?:function|object)$/.test(void 0===y?"undefined":u(y))&&(n.push(y),o.push(v))):b=o[d],r[p]=b||i(y,e,v,n,o);return r}var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.__esModule=!0;var a=r(18),f=r(6);e.default=o,t.exports=e.default},function(t,e,r){"use strict";(function(t){function n(t,e){var r=i(t);return null!==r?r:o(t,e)}function o(e,r){if("function"!=typeof r)throw new TypeError("customizer is must be a Function");if("function"==typeof e){var n=String(e);return/^\s*function\s*\S*\([^\)]*\)\s*{\s*\[native code\]\s*}/.test(n)?e:new Function("return "+String(n))()}var o=f.call(e);if("[object Array]"===o)return[];if("[object Object]"===o&&e.constructor===Object)return{};if("[object Date]"===o)return new Date(e.getTime());if("[object RegExp]"===o){var i=String(e),u=i.lastIndexOf("/");return new RegExp(i.slice(1,u),i.slice(u+1))}if((0,a.isBuffer)(e)){var s=new t(e.length);return e.copy(s),s}var c=r(e);return void 0!==c?c:null}function i(t){var e=void 0===t?"undefined":u(t);return null!==t&&"object"!==e&&"function"!==e?t:null}var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.__esModule=!0,e.copyValue=e.copyCollection=e.copy=void 0;var a=r(6),f=Object.prototype.toString;e.copy=n,e.copyCollection=o,e.copyValue=i}).call(e,r(5).Buffer)},function(t,e,r){"use strict";var n,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"===("undefined"==typeof window?"undefined":o(window))&&(n=window)}t.exports=n},function(t,e,r){"use strict";function n(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===t[e-2]?2:"="===t[e-1]?1:0}function o(t){return 3*t.length/4-n(t)}function i(t){var e,r,o,i,u,a=t.length;i=n(t),u=new l(3*a/4-i),r=i>0?a-4:a;var f=0;for(e=0;e<r;e+=4)o=c[t.charCodeAt(e)]<<18|c[t.charCodeAt(e+1)]<<12|c[t.charCodeAt(e+2)]<<6|c[t.charCodeAt(e+3)],u[f++]=o>>16&255,u[f++]=o>>8&255,u[f++]=255&o;return 2===i?(o=c[t.charCodeAt(e)]<<2|c[t.charCodeAt(e+1)]>>4,u[f++]=255&o):1===i&&(o=c[t.charCodeAt(e)]<<10|c[t.charCodeAt(e+1)]<<4|c[t.charCodeAt(e+2)]>>2,u[f++]=o>>8&255,u[f++]=255&o),u}function u(t){return s[t>>18&63]+s[t>>12&63]+s[t>>6&63]+s[63&t]}function a(t,e,r){for(var n,o=[],i=e;i<r;i+=3)n=(t[i]<<16)+(t[i+1]<<8)+t[i+2],o.push(u(n));return o.join("")}function f(t){for(var e,r=t.length,n=r%3,o="",i=[],u=0,f=r-n;u<f;u+=16383)i.push(a(t,u,u+16383>f?f:u+16383));return 1===n?(e=t[r-1],o+=s[e>>2],o+=s[e<<4&63],o+="=="):2===n&&(e=(t[r-2]<<8)+t[r-1],o+=s[e>>10],o+=s[e>>4&63],o+=s[e<<2&63],o+="="),i.push(o),i.join("")}e.byteLength=o,e.toByteArray=i,e.fromByteArray=f;for(var s=[],c=[],l="undefined"!=typeof Uint8Array?Uint8Array:Array,h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p=0,y=h.length;p<y;++p)s[p]=h[p],c[h.charCodeAt(p)]=p;c["-".charCodeAt(0)]=62,c["_".charCodeAt(0)]=63},function(t,e,r){"use strict";e.read=function(t,e,r,n,o){var i,u,a=8*o-n-1,f=(1<<a)-1,s=f>>1,c=-7,l=r?o-1:0,h=r?-1:1,p=t[e+l];for(l+=h,i=p&(1<<-c)-1,p>>=-c,c+=a;c>0;i=256*i+t[e+l],l+=h,c-=8);for(u=i&(1<<-c)-1,i>>=-c,c+=n;c>0;u=256*u+t[e+l],l+=h,c-=8);if(0===i)i=1-s;else{if(i===f)return u?NaN:1/0*(p?-1:1);u+=Math.pow(2,n),i-=s}return(p?-1:1)*u*Math.pow(2,i-n)},e.write=function(t,e,r,n,o,i){var u,a,f,s=8*i-o-1,c=(1<<s)-1,l=c>>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:i-1,y=n?1:-1,d=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,u=c):(u=Math.floor(Math.log(e)/Math.LN2),e*(f=Math.pow(2,-u))<1&&(u--,f*=2),e+=u+l>=1?h/f:h*Math.pow(2,1-l),e*f>=2&&(u++,f/=2),u+l>=c?(a=0,u=c):u+l>=1?(a=(e*f-1)*Math.pow(2,o),u+=l):(a=e*Math.pow(2,l-1)*Math.pow(2,o),u=0));o>=8;t[r+p]=255&a,p+=y,a/=256,o-=8);for(u=u<<o|a,s+=o;s>0;t[r+p]=255&u,p+=y,u/=256,s-=8);t[r+p-y]|=128*d}},function(t,e,r){"use strict";var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e,r){var n=(0,u.listLayers)(t,e),i=n.filter(function(t){return t!==u.GENERIC_TAB}).reduce(function(n,i){var a=(0,c.default)(i,t,e);delete a.title,delete a.description;var s=(0,f.default)(i,a,e);return(0,u.isEmptySchema)(a)||(n[i]=o(a,s,r)),n},{}),a=(0,c.default)(u.GENERIC_TAB,t,e),s=(0,f.default)(u.GENERIC_TAB,a,e),l=(0,h.default)(i,e,r),p={schema:a,uiSchema:s,tabs:l};return new y.default(p,i)}function i(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return o((0,u.normalizeSchema)(t),(0,u.normalizeUiSchema)(e),r)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var u=r(0),a=r(24),f=n(a),s=r(25),c=n(s),l=r(26),h=n(l),p=r(27),y=n(p)},function(t,e,r){"use strict";function n(t){Object.keys(t).forEach(function(e){var r=t[e][c.UI_TAB_ID];r&&r.length>1?r.shift():delete t[e][c.UI_TAB_ID]})}function o(t,e){return Object.keys(e[c.UI_TAB_ALIAS]).reduce(function(r,n){var o=e[c.UI_TAB_ALIAS][n].filter(function(r){return(0,c.findLayer)(r,e)===t});return 1==o.length?r.push({field:n,alias:o[0]}):0!==o.length&&(0,c.toError)(n+" has too many aliases "+o+" for the "+t),r},[])}function i(t,e){o(t,e).forEach(function(t){var r=t.field,n=t.alias;e[r]=e[n]})}function u(t,e,r){if(t===c.GENERIC_TAB&&r[c.UI_ORDER]){var n=Object.keys(e.properties);r[c.UI_ORDER]=r[c.UI_ORDER].filter(function(t){return n.includes(t)}),0===r[c.UI_ORDER].length&&delete r[c.UI_ORDER]}}function a(t,e,r){var o=(0,s.default)(r);return i(t,o),n(o),u(t,e,o),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var f=r(2),s=function(t){return t&&t.__esModule?t:{default:t}}(f),c=r(0)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(2),o=function(t){return t&&t.__esModule?t:{default:t}}(n),i=r(0),u=function(t,e,r){return e[i.UI_TAB_ALIAS][t]&&e[i.UI_TAB_ALIAS][t].some(function(t){return(0,i.findLayer)(t,e)===r})},a=function(t,e){return function(r){return(0,i.findLayer)(r,t)===e||u(r,t,e)}},f=function(t,e){return function(r){e.required.includes(r)&&t.required.push(r),t.properties[r]=e.properties[r]}},s=function(t,e,r){var n=Object.assign({},(0,o.default)(e),{required:[],properties:{}});return Object.keys(e.properties).filter(a(r,t)).forEach(f(n,e)),n};e.default=s},function(t,e,r){"use strict";function n(t,e){if(0===e.length)return t;var r=e.map(function(e){return t.find(function(t){return t.tabID===e})}).filter(function(t){return void 0!==t});if(0===r.length)return t;var n=t.filter(function(t){return!r.includes(t)});return r.concat(n)}function o(t,e){var r=e.find(function(e){return e.tabID===t});return r||{tabID:t}}function i(t,e,r){return n(Object.keys(t).map(function(t){return o(t,r)}),e[u.UI_TAB_ORDER])}Object.defineProperty(e,"__esModule",{value:!0}),e.order=n,e.findTab=o,e.default=i;var u=r(0)},function(t,e,r){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var o=r(0),i=function t(e,r){n(this,t),u.call(this),this.conf=e,this.tabs=r,this.activeTab=e.tabs.length>0?e.tabs[0].tabID:o.GENERIC_TAB},u=function(){var t=this;this.updateActiveTabs=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return r===e.length?t.activeTab!==o.GENERIC_TAB&&(e.push(t.activeTab),t.tabs[t.activeTab].updateActiveTabs(e,r+1)):(t.activeTab=e[r],t.tabs[e[r]].updateActiveTabs(e,r+1)),e},this.toSubForms=function(e){var r=[],n=e[0]?e[0]:o.GENERIC_TAB;if(r.push(Object.assign({},t.conf,{activeTab:n})),n===o.GENERIC_TAB)return r;var i=t.tabs[n],u=e.slice(1);return i.toSubForms(u).forEach(function(t){return r.push(t)}),r}};e.default=i}])}); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.JSONSchemaForm=t(require("react")):e.JSONSchemaForm=t(e.React)}(this,function(e){return function(e){function t(n){if(r[n])return r[n].exports;var a=r[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,t),a.l=!0,a.exports}var r={};return t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/dist/",t(t.s=6)}([function(e,t,r){"use strict";function n(){return!1}function a(e){return!e||!e.properties||0===Object.keys(e.properties).length}function o(e,t){return t&&t[e]&&t[e][h]?t[e][h][0]:d}function u(e,t){var r=Object.keys(e.properties).map(function(e){return o(e,t)}),n=Object.keys(t).map(function(e){return o(e,t)}),a=r.concat(n).concat([d]);return Array.from(new Set(a))}function i(e){Object.keys(e).forEach(function(t){e[t]&&e[t][h]&&!Array.isArray(e[t][h])&&(e[t][h]=[e[t][h]])})}function c(e){e[b]||(e[b]={}),Object.keys(e[b]).forEach(function(t){var r=e[b][t];Array.isArray(r)||(e[b][t]=[r])})}function f(e){e[m]||(e[m]=[])}function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.assign(e);return i(t),c(t),f(t),t}function l(e){e.required||(e.required=[])}function p(e){var t=Object.assign({},e,{properties:Object.assign({},e.properties)});return l(t),t}Object.defineProperty(t,"__esModule",{value:!0}),t.isDevelopment=n,t.isEmptySchema=a,t.findLayer=o,t.listLayers=u,t.normalizeUiSchema=s,t.normalizeSchema=p;var d=t.GENERIC_TAB="default",h=(t.UI_ORDER="ui:order",t.UI_TAB_ID="ui:tabID"),b=t.UI_TAB_ALIAS="ui:tabAlias",m=t.UI_TAB_ORDER="ui:tabOrder";t.toError=function(e){console.error(e)}},function(t,r){t.exports=e},function(e,t,r){"use strict";"function"==typeof Symbol&&Symbol.iterator;e.exports=r(8)()},function(e,t,r){"use strict";function n(e){return null===e||void 0===e}function a(e){return!(!e||"object"!==(void 0===e?"undefined":u(e))||"number"!=typeof e.length)&&("function"==typeof e.copy&&"function"==typeof e.slice&&!(e.length>0&&"number"!=typeof e[0]))}function o(e,t,r){var o,l;if(n(e)||n(t))return!1;if(e.prototype!==t.prototype)return!1;if(f(e))return!!f(t)&&(e=i.call(e),t=i.call(t),s(e,t,r));if(a(e)){if(!a(t))return!1;if(e.length!==t.length)return!1;for(o=0;o<e.length;o++)if(e[o]!==t[o])return!1;return!0}try{var p=c(e),d=c(t)}catch(e){return!1}if(p.length!=d.length)return!1;for(p.sort(),d.sort(),o=p.length-1;o>=0;o--)if(p[o]!=d[o])return!1;for(o=p.length-1;o>=0;o--)if(l=p[o],!s(e[l],t[l],r))return!1;return(void 0===e?"undefined":u(e))===(void 0===t?"undefined":u(t))}var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=Array.prototype.slice,c=r(12),f=r(13),s=e.exports=function(e,t,r){return r||(r={}),e===t||(e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=(void 0===e?"undefined":u(e))&&"object"!=(void 0===t?"undefined":u(t))?r.strict?e===t:e==t:o(e,t,r))}},function(e,t,r){"use strict";function n(e){var t=e.handleClick,r=e.isActive,n=e.name;return u.default.createElement("li",{onClick:t,className:r?"active":null},u.default.createElement("a",null,n))}function a(e){var t=e.activeTab,r=e.tabs,a=e.onTabChange,o=r.filter(function(e){return e.tabID!==i.GENERIC_TAB});return o.length>0?u.default.createElement("fieldset",null,u.default.createElement("div",{className:"form-group col-md-12"},u.default.createElement("ul",{className:"nav nav-pills"},o.map(function(e,r){var o=e.tabID,i=e.name;return u.default.createElement(n,{key:r,name:i||o,isActive:t===o,handleClick:function(){return a(o)}})})))):u.default.createElement("div",null)}Object.defineProperty(t,"__esModule",{value:!0});var o=r(1),u=function(e){return e&&e.__esModule?e:{default:e}}(o),i=r(0);t.default=a},function(e,t,r){"use strict";function n(e,t){var r=t[e]&&t[e][f.UI_TAB_ID]?t[e][f.UI_TAB_ID]:[];return Array.isArray(r)?r:[r]}function a(e,t){return t.reduce(function(e,t){return void 0===e[t]&&(e[t]={}),e[t]},e)}function o(e,t,r){void 0===e[f.GENERIC_TAB]&&(e[f.GENERIC_TAB]={fields:[],aliases:{}}),e[f.GENERIC_TAB].fields.push(t),r&&(e[f.GENERIC_TAB].aliases[t]=r)}function u(e,t,r){Object.keys(e.properties).forEach(function(e){var u=n(e,t);o(a(r,u),e)},{})}function i(e,t){var r=e[f.UI_TAB_ALIAS];r&&Object.keys(r).forEach(function(u){var i=r[u];(Array.isArray(i)?i:[i]).forEach(function(r){var i=n(r,e);o(a(t,i),u,r)})})}function c(e,t){var r={};return u(e,t,r),i(t,r),r}Object.defineProperty(t,"__esModule",{value:!0}),t.findRelTree=a,t.extractTree=c;var f=r(0)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(7),a=function(e){return e&&e.__esModule?e:{default:e}}(n);t.default=a.default},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:T.default,r=(0,y.default)(e,t),n=function(e){function t(e){a(this,t);var r=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));i.call(r);var n=r.props,u=n.formData,c=n.tabData,f=n.schema,s=n.uiSchema;r.formData=u||{},r.layers=(0,O.default)(f,s,c);var l=[];return r.layers.updateActiveTabs(l,0),r.state={formData:u,activeTabs:l},r}return u(t,e),f(t,[{key:"componentWillReceiveProps",value:function(e){if(!this.sameLayers(e)){var t=e.schema,r=e.uiSchema,n=e.tabData;this.layers=(0,O.default)(t,r,n)}this.sameData(e.formData)||(this.formData=e.formData,this.setState({formData:e.formData}))}},{key:"shouldComponentUpdate",value:function(e,t){if(!(0,b.default)(t.activeTabs,this.state.activeTabs))return!0;var r=(0,b.default)(Object.assign({},this.props,{formData:{}}),Object.assign({},e,{formData:{}}));if(!r)return!0;var n=(0,b.default)(Object.assign({},this.state,{formData:this.formData}),t);if(!n)return!0;var a=this.sameData(e.formData);return!r||!n||!a}},{key:"render",value:function(){var e=this,t=this.layers.toSubForms(this.state.activeTabs),n=this.formData;return l.default.createElement("div",null,t.map(function(t,a){var o=Object.assign({},e.props,t,{formData:n});return l.default.createElement(r,c({key:a},o,{onChange:e.handleOnChange,onTabChange:e.handleTabChange(a)}))}),this.props.children)}}]),t}(s.Component),i=function(){var e=this;this.sameData=function(t){return(0,b.default)(e.props.formData,t)||(0,b.default)(e.formData,t)},this.sameLayers=function(t){var r=function(e){return{tabData:e.tabData,schema:e.schema,uiSchema:e.uiSchema}};return(0,b.default)(r(t),r(e.props))},this.handleTabChange=function(t){return function(r){var n=e.state.activeTabs.slice(0,t+1);n[t]=r,e.layers.updateActiveTabs(n),e.props.onTabChange&&e.props.onTabChange(n,e.state.activeTabs),e.setState({activeTabs:n})}},this.handleOnChange=function(t){e.formData=t.formData,e.setState({formData:t.formData}),e.props.onChange&&e.props.onChange(t)}};return(0,v.isDevelopment)()&&(n.propTypes={schema:d.default.shape({type:function(e,t,r){if("object"!==e[t])return new Error('Only "object" schemas supported by pagination for '+r+".")}}),tabData:d.default.array}),n}Object.defineProperty(t,"__esModule",{value:!0});var c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},f=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();t.default=i;var s=r(1),l=n(s),p=r(2),d=n(p),h=r(3),b=n(h),m=r(14),y=n(m),v=r(0),_=r(15),O=n(_),g=r(4),T=n(g)},function(e,t,r){"use strict";var n=r(9),a=r(10),o=r(11);e.exports=function(){function e(e,t,r,n,u,i){i!==o&&a(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t};return r.checkPropTypes=n,r.PropTypes=r,r}},function(e,t,r){"use strict";function n(e){return function(){return e}}var a=function(){};a.thatReturns=n,a.thatReturnsFalse=n(!1),a.thatReturnsTrue=n(!0),a.thatReturnsNull=n(null),a.thatReturnsThis=function(){return this},a.thatReturnsArgument=function(e){return e},e.exports=a},function(e,t,r){"use strict";function n(e,t,r,n,o,u,i,c){if(a(t),!e){var f;if(void 0===t)f=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[r,n,o,u,i,c],l=0;f=new Error(t.replace(/%s/g,function(){return s[l++]})),f.name="Invariant Violation"}throw f.framesToPop=1,f}}var a=function(e){};e.exports=n},function(e,t,r){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,r){"use strict";function n(e){var t=[];for(var r in e)t.push(r);return t}t=e.exports="function"==typeof Object.keys?Object.keys:n,t.shim=n},function(e,t,r){"use strict";function n(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function a(e){return e&&"object"==(void 0===e?"undefined":o(e))&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();t=e.exports=u?n:a,t.supported=n,t.unsupported=a},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),c=r(1),f=n(c),s=r(3),l=n(s),p=r(2),d=n(p),h=r(0),b=r(4),m=n(b),y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m.default,r=function(e){function t(e){a(this,t);var r=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));n.call(r);var u=r.props.formData;return r.state={formData:u},r}return u(t,e),i(t,[{key:"componentWillReceiveProps",value:function(e){var t=e.formData;this.sameData(t)||(this.formData=t,this.setState({formData:t}))}},{key:"shouldComponentUpdate",value:function(e,t){var r=(0,l.default)(Object.assign({},this.props,{formData:{}}),Object.assign({},e,{formData:{}})),n=(0,l.default)(Object.assign({},this.state,{formData:this.formData}),t),a=this.sameData(e.formData);return!r||!n||!a}},{key:"render",value:function(){return f.default.createElement("div",null,this.renderForm(),this.renderTabs())}}]),t}(c.Component),n=function(){var r=this;this.sameData=function(e){return(0,l.default)(r.props.formData,e)||(0,l.default)(r.formData,e)},this.handleOnChange=function(e){r.formData=e.formData,r.setState({formData:e.formData}),r.props.onChange&&r.props.onChange(e)},this.renderForm=function(){if(r.props.schema){var t=r.state.formData,n=Object.assign({},r.props,{formData:t,onChange:r.handleOnChange});return f.default.createElement(e,n,f.default.createElement("div",null))}return f.default.createElement("div",null)},this.renderTabs=function(){var e=r.props,n=e.tabs,a=e.activeTab,o=e.onTabChange;return f.default.createElement(t,{tabs:n,activeTab:a,onTabChange:o})}};return(0,h.isDevelopment)()&&(r.propTypes={tabs:d.default.array}),r};t.default=y},function(e,t,r){"use strict";function n(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=(0,u.extractTree)(e,t);return new o.default(n,e,t,r)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;var a=r(16),o=function(e){return e&&e.__esModule?e:{default:e}}(a),u=r(5)},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=r(0),u=r(5),i=r(17),c=n(i),f=r(18),s=n(f),l=r(19),p=n(l),d={schema:{type:"object",properties:{}},uiSchema:{}},h=function(e,t,r,n,a){var i=(0,u.findRelTree)(t,e),f=i[o.GENERIC_TAB],l=(0,p.default)(i,n,a);if(void 0===f)return Object.assign({},{tabs:l},d);var h=(0,s.default)(f.fields,r),b=(0,c.default)(f.fields,n,f.aliases);return 0===e.length&&(h.title=r.title,h.description=r.description),{schema:h,uiSchema:b,tabs:l}},b=function e(t,r,n,i){var c=this;a(this,e),this.pushToTabFromTree=function(e,t){var r=Object.keys(e).find(function(e){return e!==o.GENERIC_TAB});r&&(t.push(r),c.pushToTabFromTree(e[r],t))},this.updateActiveTabs=function(e){var t=(0,u.findRelTree)(c.tree,e);c.pushToTabFromTree(t,e)},this.getTab=function(e,t){var r=e.slice(0,t),n=e.length>t?e[t]:o.GENERIC_TAB,a=h(r,c.tree,c.schema,c.uiSchema,c.tabData);return a.activeTab=n,a},this.toSubForms=function(e){for(var t=[],r=0;r<=e.length;r++)t.push(c.getTab(e,r));return t},this.tree=t,this.schema=r,this.uiSchema=n,this.tabData=i};t.default=b},function(e,t,r){"use strict";function n(e,t,r){t[i.UI_ORDER]&&e&&(r[i.UI_ORDER]=t[i.UI_ORDER].filter(function(t){return e.includes(t)}),0===t[i.UI_ORDER].length&&delete t[i.UI_ORDER])}function a(e,t){var r={};return e.forEach(function(e){r[e]=t[e]}),n(e,t,r),r}function o(e,t,r){Object.keys(r).forEach(function(n){var a=r[n];t[n]=e[a]})}function u(e,t,r){var n=a(e,t);return o(t,n,r),n}Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var i=r(0)},function(e,t,r){"use strict";function n(e,t){var r={type:"object",properties:{}};return e.forEach(function(e){r.properties[e]=t.properties[e]}),t.required&&(r.required=t.required.filter(function(t){return e.includes(t)})),r}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t,r){"use strict";function n(e,t){if(!t||0===t.length)return e;var r=t.map(function(t){return e.find(function(e){return e.tabID===t})}).filter(function(e){return void 0!==e});if(0===r.length)return e;var n=e.filter(function(e){return!r.includes(e)});return r.concat(n)}function a(e,t){var r=t.find(function(t){return t.tabID===e});return r||{tabID:e}}function o(e,t,r){return n(Object.keys(e).filter(function(e){return e!==u.GENERIC_TAB}).map(function(e){return a(e,r)}),t[u.UI_TAB_ORDER])}Object.defineProperty(t,"__esModule",{value:!0}),t.order=n,t.findTab=a,t.default=o;var u=r(0)}])}); | ||
//# sourceMappingURL=form-with-pagination.js.map |
@@ -72,3 +72,4 @@ "use strict"; | ||
_this.layers = (0, _splitInLayers2.default)(schema, uiSchema, tabData); | ||
var activeTabs = _this.layers.updateActiveTabs([], 0); | ||
var activeTabs = []; | ||
_this.layers.updateActiveTabs(activeTabs, 0); | ||
_this.state = { formData: formData, activeTabs: activeTabs }; | ||
@@ -75,0 +76,0 @@ return _this; |
@@ -8,52 +8,15 @@ "use strict"; | ||
var _utils = require("../utils"); | ||
var _TabTree = require("./TabTree"); | ||
var _extractUiSchemaForLayer = require("./extractUiSchemaForLayer"); | ||
var _TabTree2 = _interopRequireDefault(_TabTree); | ||
var _extractUiSchemaForLayer2 = _interopRequireDefault(_extractUiSchemaForLayer); | ||
var _extractTree = require("./extractTree"); | ||
var _extractSchemaForLayer = require("./extractSchemaForLayer"); | ||
var _extractSchemaForLayer2 = _interopRequireDefault(_extractSchemaForLayer); | ||
var _extractTabsForLayer = require("./extractTabsForLayer"); | ||
var _extractTabsForLayer2 = _interopRequireDefault(_extractTabsForLayer); | ||
var _Layer = require("./Layer"); | ||
var _Layer2 = _interopRequireDefault(_Layer); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function doSplitInLayers(origSchema, origUiSchema, tabData) { | ||
var layerTabs = (0, _utils.listLayers)(origSchema, origUiSchema); | ||
var layers = layerTabs.filter(function (layer) { | ||
return layer !== _utils.GENERIC_TAB; | ||
}).reduce(function (tabs, layer) { | ||
var schema = (0, _extractSchemaForLayer2.default)(layer, origSchema, origUiSchema); | ||
// Following #26 | ||
delete schema.title; | ||
delete schema.description; | ||
var uiSchema = (0, _extractUiSchemaForLayer2.default)(layer, schema, origUiSchema); | ||
if (!(0, _utils.isEmptySchema)(schema)) { | ||
tabs[layer] = doSplitInLayers(schema, uiSchema, tabData); | ||
} | ||
return tabs; | ||
}, {}); | ||
var schema = (0, _extractSchemaForLayer2.default)(_utils.GENERIC_TAB, origSchema, origUiSchema); | ||
var uiSchema = (0, _extractUiSchemaForLayer2.default)(_utils.GENERIC_TAB, schema, origUiSchema); | ||
var tabs = (0, _extractTabsForLayer2.default)(layers, origUiSchema, tabData); | ||
var conf = { schema: schema, uiSchema: uiSchema, tabs: tabs }; | ||
return new _Layer2.default(conf, layers); | ||
} | ||
function splitInLayers(schema, uiSchema) { | ||
var tabData = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : []; | ||
return doSplitInLayers((0, _utils.normalizeSchema)(schema), (0, _utils.normalizeUiSchema)(uiSchema), tabData); | ||
var tree = (0, _extractTree.extractTree)(schema, uiSchema); | ||
return new _TabTree2.default(tree, schema, uiSchema, tabData); | ||
} |
@@ -6,3 +6,2 @@ "use strict"; | ||
}); | ||
exports.toError = exports.UI_TAB_ORDER = exports.UI_TAB_ALIAS = exports.UI_TAB_ID = exports.UI_ORDER = exports.GENERIC_TAB = undefined; | ||
exports.isDevelopment = isDevelopment; | ||
@@ -14,9 +13,2 @@ exports.isEmptySchema = isEmptySchema; | ||
exports.normalizeSchema = normalizeSchema; | ||
var _deepcopy = require("deepcopy"); | ||
var _deepcopy2 = _interopRequireDefault(_deepcopy); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var GENERIC_TAB = exports.GENERIC_TAB = "default"; | ||
@@ -90,3 +82,3 @@ var UI_ORDER = exports.UI_ORDER = "ui:order"; | ||
var normUiSchema = (0, _deepcopy2.default)(uiSchema); | ||
var normUiSchema = Object.assign(uiSchema); | ||
normalizeTabs(normUiSchema); | ||
@@ -105,5 +97,7 @@ normalizeAliases(normUiSchema); | ||
function normalizeSchema(schema) { | ||
var normSchema = (0, _deepcopy2.default)(schema); | ||
var normSchema = Object.assign({}, schema, { | ||
properties: Object.assign({}, schema.properties) | ||
}); | ||
normalizeRequired(normSchema); | ||
return normSchema; | ||
} |
@@ -6,3 +6,3 @@ { | ||
"author": "zboldyga@gmail.com", | ||
"version": "0.1.19", | ||
"version": "0.1.20", | ||
"scripts": { | ||
@@ -50,6 +50,6 @@ "build:lib": "rimraf lib && cross-env NODE_ENV=production babel -d lib/ src/", | ||
"deep-equal": "1.0.1", | ||
"deepcopy": "0.6.3", | ||
"prop-types": "15.5.10", | ||
"react": "15.6.1", | ||
"react-jsonschema-form": "0.50.1" | ||
"react-jsonschema-form": "0.50.1", | ||
"thunky": "^1.0.2" | ||
}, | ||
@@ -56,0 +56,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 2 instances in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
16
0
0
160452
704
+ Addedthunky@^1.0.2
+ Addedthunky@1.1.0(transitive)
- Removeddeepcopy@0.6.3
- Removeddeepcopy@0.6.3(transitive)