@teselagen/ove 0.3.9 → 0.3.10

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.
package/index.mjs CHANGED
@@ -3418,10 +3418,7 @@ function getAugmentedNamespace(n) {
3418
3418
  if (typeof f == "function") {
3419
3419
  var a = function a () {
3420
3420
  if (this instanceof a) {
3421
- var args = [null];
3422
- args.push.apply(args, arguments);
3423
- var Ctor = Function.bind.apply(f, args);
3424
- return new Ctor();
3421
+ return Reflect.construct(f, arguments, this.constructor);
3425
3422
  }
3426
3423
  return f.apply(this, arguments);
3427
3424
  };
@@ -5500,7 +5497,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
5500
5497
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
5501
5498
  PERFORMANCE OF THIS SOFTWARE.
5502
5499
  ***************************************************************************** */
5503
- /* global Reflect, Promise */
5500
+ /* global Reflect, Promise, SuppressedError, Symbol */
5504
5501
 
5505
5502
 
5506
5503
  function __awaiter$1(thisArg, _arguments, P, generator) {
@@ -5565,6 +5562,11 @@ function __spread() {
5565
5562
  return ar;
5566
5563
  }
5567
5564
 
5565
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
5566
+ var e = new Error(message);
5567
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
5568
+ };
5569
+
5568
5570
  var COMMON_MIME_TYPES = new Map([
5569
5571
  // https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types
5570
5572
  ['aac', 'audio/aac'],
@@ -9164,19 +9166,20 @@ var Reaction = /*#__PURE__*/function () {
9164
9166
  }
9165
9167
  }
9166
9168
  };
9167
- _proto.getDisposer_ = function getDisposer_() {
9168
- var r = this.dispose.bind(this);
9169
- r[$mobx] = this;
9170
- return r;
9169
+ _proto.getDisposer_ = function getDisposer_(abortSignal) {
9170
+ var _this2 = this;
9171
+ var dispose = function dispose() {
9172
+ _this2.dispose();
9173
+ abortSignal == null ? void 0 : abortSignal.removeEventListener == null ? void 0 : abortSignal.removeEventListener("abort", dispose);
9174
+ };
9175
+ abortSignal == null ? void 0 : abortSignal.addEventListener == null ? void 0 : abortSignal.addEventListener("abort", dispose);
9176
+ dispose[$mobx] = this;
9177
+ return dispose;
9171
9178
  };
9172
9179
  _proto.toString = function toString() {
9173
9180
  return "Reaction[" + this.name_ + "]";
9174
9181
  };
9175
9182
  _proto.trace = function trace$1(enterBreakPoint) {
9176
- if (enterBreakPoint === void 0) {
9177
- enterBreakPoint = false;
9178
- }
9179
- trace(this, enterBreakPoint);
9180
9183
  };
9181
9184
  return Reaction;
9182
9185
  }();
@@ -9308,7 +9311,7 @@ function isAction(thing) {
9308
9311
  * @returns disposer function, which can be used to stop the view from being updated in the future.
9309
9312
  */
9310
9313
  function autorun(view, opts) {
9311
- var _opts$name, _opts;
9314
+ var _opts$name, _opts, _opts2, _opts2$signal, _opts3;
9312
9315
  if (opts === void 0) {
9313
9316
  opts = EMPTY_OBJECT;
9314
9317
  }
@@ -9339,8 +9342,10 @@ function autorun(view, opts) {
9339
9342
  function reactionRunner() {
9340
9343
  view(reaction);
9341
9344
  }
9342
- reaction.schedule_();
9343
- return reaction.getDisposer_();
9345
+ if (!((_opts2 = opts) != null && (_opts2$signal = _opts2.signal) != null && _opts2$signal.aborted)) {
9346
+ reaction.schedule_();
9347
+ }
9348
+ return reaction.getDisposer_((_opts3 = opts) == null ? void 0 : _opts3.signal);
9344
9349
  }
9345
9350
  var run = function run(f) {
9346
9351
  return f();
@@ -9557,37 +9562,6 @@ function isObservable$1(value) {
9557
9562
  return _isObservable(value);
9558
9563
  }
9559
9564
 
9560
- function trace() {
9561
- {
9562
- die("trace() is not available in production builds");
9563
- }
9564
- var enterBreakPoint = false;
9565
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
9566
- args[_key] = arguments[_key];
9567
- }
9568
- if (typeof args[args.length - 1] === "boolean") {
9569
- enterBreakPoint = args.pop();
9570
- }
9571
- var derivation = getAtomFromArgs(args);
9572
- if (!derivation) {
9573
- return die("'trace(break?)' can only be used inside a tracked computed value or a Reaction. Consider passing in the computed value or reaction explicitly");
9574
- }
9575
- if (derivation.isTracing_ === TraceMode.NONE) {
9576
- console.log("[mobx.trace] '" + derivation.name_ + "' tracing enabled");
9577
- }
9578
- derivation.isTracing_ = enterBreakPoint ? TraceMode.BREAK : TraceMode.LOG;
9579
- }
9580
- function getAtomFromArgs(args) {
9581
- switch (args.length) {
9582
- case 0:
9583
- return globalState.trackingDerivation;
9584
- case 1:
9585
- return getAtom(args[0]);
9586
- case 2:
9587
- return getAtom(args[0], args[1]);
9588
- }
9589
- }
9590
-
9591
9565
  /**
9592
9566
  * During a transaction no views are updated until the end of the transaction.
9593
9567
  * The transaction will be run synchronously nonetheless.
@@ -30322,17 +30296,17 @@ var _toPrimitive$1 = function (it, S) {
30322
30296
  throw TypeError("Can't convert object to primitive value");
30323
30297
  };
30324
30298
 
30325
- var anObject$5 = _anObject;
30299
+ var anObject$3 = _anObject;
30326
30300
  var IE8_DOM_DEFINE$1 = _ie8DomDefine;
30327
30301
  var toPrimitive$2 = _toPrimitive$1;
30328
- var dP$3 = Object.defineProperty;
30302
+ var dP$2 = Object.defineProperty;
30329
30303
 
30330
30304
  _objectDp.f = _descriptors ? Object.defineProperty : function defineProperty(O, P, Attributes) {
30331
- anObject$5(O);
30305
+ anObject$3(O);
30332
30306
  P = toPrimitive$2(P, true);
30333
- anObject$5(Attributes);
30307
+ anObject$3(Attributes);
30334
30308
  if (IE8_DOM_DEFINE$1) try {
30335
- return dP$3(O, P, Attributes);
30309
+ return dP$2(O, P, Attributes);
30336
30310
  } catch (e) { /* empty */ }
30337
30311
  if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
30338
30312
  if ('value' in Attributes) O[P] = Attributes.value;
@@ -30348,10 +30322,10 @@ var _propertyDesc = function (bitmap, value) {
30348
30322
  };
30349
30323
  };
30350
30324
 
30351
- var dP$2 = _objectDp;
30325
+ var dP$1 = _objectDp;
30352
30326
  var createDesc$3 = _propertyDesc;
30353
30327
  var _hide = _descriptors ? function (object, key, value) {
30354
- return dP$2.f(object, key, createDesc$3(1, value));
30328
+ return dP$1.f(object, key, createDesc$3(1, value));
30355
30329
  } : function (object, key, value) {
30356
30330
  object[key] = value;
30357
30331
  return object;
@@ -30367,7 +30341,7 @@ var core$3 = _coreExports;
30367
30341
  var ctx$1 = _ctx;
30368
30342
  var hide$3 = _hide;
30369
30343
  var has$e = _has;
30370
- var PROTOTYPE$2 = 'prototype';
30344
+ var PROTOTYPE$1 = 'prototype';
30371
30345
 
30372
30346
  var $export$8 = function (type, name, source) {
30373
30347
  var IS_FORCED = type & $export$8.F;
@@ -30377,8 +30351,8 @@ var $export$8 = function (type, name, source) {
30377
30351
  var IS_BIND = type & $export$8.B;
30378
30352
  var IS_WRAP = type & $export$8.W;
30379
30353
  var exports = IS_GLOBAL ? core$3 : core$3[name] || (core$3[name] = {});
30380
- var expProto = exports[PROTOTYPE$2];
30381
- var target = IS_GLOBAL ? global$5 : IS_STATIC ? global$5[name] : (global$5[name] || {})[PROTOTYPE$2];
30354
+ var expProto = exports[PROTOTYPE$1];
30355
+ var target = IS_GLOBAL ? global$5 : IS_STATIC ? global$5[name] : (global$5[name] || {})[PROTOTYPE$1];
30382
30356
  var key, own, out;
30383
30357
  if (IS_GLOBAL) source = name;
30384
30358
  for (key in source) {
@@ -30402,7 +30376,7 @@ var $export$8 = function (type, name, source) {
30402
30376
  } return new C(a, b, c);
30403
30377
  } return C.apply(this, arguments);
30404
30378
  };
30405
- F[PROTOTYPE$2] = C[PROTOTYPE$2];
30379
+ F[PROTOTYPE$1] = C[PROTOTYPE$1];
30406
30380
  return F;
30407
30381
  // make static versions for prototype methods
30408
30382
  })(out) : IS_PROTO && typeof out == 'function' ? ctx$1(Function.call, out) : out;
@@ -30431,12 +30405,20 @@ var _cof = function (it) {
30431
30405
  return toString$6.call(it).slice(8, -1);
30432
30406
  };
30433
30407
 
30434
- // fallback for non-array-like ES3 and non-enumerable old V8 strings
30435
- var cof$2 = _cof;
30436
- // eslint-disable-next-line no-prototype-builtins
30437
- var _iobject = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
30438
- return cof$2(it) == 'String' ? it.split('') : Object(it);
30439
- };
30408
+ var _iobject;
30409
+ var hasRequired_iobject;
30410
+
30411
+ function require_iobject () {
30412
+ if (hasRequired_iobject) return _iobject;
30413
+ hasRequired_iobject = 1;
30414
+ // fallback for non-array-like ES3 and non-enumerable old V8 strings
30415
+ var cof = _cof;
30416
+ // eslint-disable-next-line no-prototype-builtins
30417
+ _iobject = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
30418
+ return cof(it) == 'String' ? it.split('') : Object(it);
30419
+ };
30420
+ return _iobject;
30421
+ }
30440
30422
 
30441
30423
  // 7.2.1 RequireObjectCoercible(argument)
30442
30424
  var _defined = function (it) {
@@ -30445,7 +30427,7 @@ var _defined = function (it) {
30445
30427
  };
30446
30428
 
30447
30429
  // to indexed object, toObject with fallback for non-array-like ES3 strings
30448
- var IObject = _iobject;
30430
+ var IObject = require_iobject();
30449
30431
  var defined$2 = _defined;
30450
30432
  var _toIobject = function (it) {
30451
30433
  return IObject(defined$2(it));
@@ -30531,14 +30513,14 @@ var _sharedKey = function (key) {
30531
30513
  var has$d = _has;
30532
30514
  var toIObject$4 = _toIobject;
30533
30515
  var arrayIndexOf = _arrayIncludes$1(false);
30534
- var IE_PROTO$2 = _sharedKey('IE_PROTO');
30516
+ var IE_PROTO$1 = _sharedKey('IE_PROTO');
30535
30517
 
30536
30518
  var _objectKeysInternal = function (object, names) {
30537
30519
  var O = toIObject$4(object);
30538
30520
  var i = 0;
30539
30521
  var result = [];
30540
30522
  var key;
30541
- for (key in O) if (key != IE_PROTO$2) has$d(O, key) && result.push(key);
30523
+ for (key in O) if (key != IE_PROTO$1) has$d(O, key) && result.push(key);
30542
30524
  // Don't enum bug & hidden keys
30543
30525
  while (names.length > i) if (has$d(O, key = names[i++])) {
30544
30526
  ~arrayIndexOf(result, key) || result.push(key);
@@ -30552,11 +30534,11 @@ var _enumBugKeys = (
30552
30534
  ).split(',');
30553
30535
 
30554
30536
  // 19.1.2.14 / 15.2.3.14 Object.keys(O)
30555
- var $keys$3 = _objectKeysInternal;
30556
- var enumBugKeys$1 = _enumBugKeys;
30537
+ var $keys$2 = _objectKeysInternal;
30538
+ var enumBugKeys = _enumBugKeys;
30557
30539
 
30558
30540
  var _objectKeys = Object.keys || function keys(O) {
30559
- return $keys$3(O, enumBugKeys$1);
30541
+ return $keys$2(O, enumBugKeys);
30560
30542
  };
30561
30543
 
30562
30544
  var _objectGops = {};
@@ -30565,7 +30547,14 @@ _objectGops.f = Object.getOwnPropertySymbols;
30565
30547
 
30566
30548
  var _objectPie = {};
30567
30549
 
30568
- _objectPie.f = {}.propertyIsEnumerable;
30550
+ var hasRequired_objectPie;
30551
+
30552
+ function require_objectPie () {
30553
+ if (hasRequired_objectPie) return _objectPie;
30554
+ hasRequired_objectPie = 1;
30555
+ _objectPie.f = {}.propertyIsEnumerable;
30556
+ return _objectPie;
30557
+ }
30569
30558
 
30570
30559
  // 7.1.13 ToObject(argument)
30571
30560
  var defined$1 = _defined;
@@ -30583,9 +30572,9 @@ function require_objectAssign () {
30583
30572
  var DESCRIPTORS = _descriptors;
30584
30573
  var getKeys = _objectKeys;
30585
30574
  var gOPS = _objectGops;
30586
- var pIE = _objectPie;
30575
+ var pIE = require_objectPie();
30587
30576
  var toObject = _toObject;
30588
- var IObject = _iobject;
30577
+ var IObject = require_iobject();
30589
30578
  var $assign = Object.assign;
30590
30579
 
30591
30580
  // should work with symbols and should have deterministic property order (V8 bug)
@@ -30656,19 +30645,27 @@ var _iterators = {};
30656
30645
 
30657
30646
  var _redefine = _hide;
30658
30647
 
30659
- var dP$1 = _objectDp;
30660
- var anObject$4 = _anObject;
30661
- var getKeys$1 = _objectKeys;
30648
+ var _objectDps;
30649
+ var hasRequired_objectDps;
30662
30650
 
30663
- var _objectDps = _descriptors ? Object.defineProperties : function defineProperties(O, Properties) {
30664
- anObject$4(O);
30665
- var keys = getKeys$1(Properties);
30666
- var length = keys.length;
30667
- var i = 0;
30668
- var P;
30669
- while (length > i) dP$1.f(O, P = keys[i++], Properties[P]);
30670
- return O;
30671
- };
30651
+ function require_objectDps () {
30652
+ if (hasRequired_objectDps) return _objectDps;
30653
+ hasRequired_objectDps = 1;
30654
+ var dP = _objectDp;
30655
+ var anObject = _anObject;
30656
+ var getKeys = _objectKeys;
30657
+
30658
+ _objectDps = _descriptors ? Object.defineProperties : function defineProperties(O, Properties) {
30659
+ anObject(O);
30660
+ var keys = getKeys(Properties);
30661
+ var length = keys.length;
30662
+ var i = 0;
30663
+ var P;
30664
+ while (length > i) dP.f(O, P = keys[i++], Properties[P]);
30665
+ return O;
30666
+ };
30667
+ return _objectDps;
30668
+ }
30672
30669
 
30673
30670
  var _html;
30674
30671
  var hasRequired_html;
@@ -30681,47 +30678,55 @@ function require_html () {
30681
30678
  return _html;
30682
30679
  }
30683
30680
 
30684
- // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
30685
- var anObject$3 = _anObject;
30686
- var dPs = _objectDps;
30687
- var enumBugKeys = _enumBugKeys;
30688
- var IE_PROTO$1 = _sharedKey('IE_PROTO');
30689
- var Empty = function () { /* empty */ };
30690
- var PROTOTYPE$1 = 'prototype';
30681
+ var _objectCreate;
30682
+ var hasRequired_objectCreate;
30691
30683
 
30692
- // Create object with fake `null` prototype: use iframe Object with cleared prototype
30693
- var createDict = function () {
30694
- // Thrash, waste and sodomy: IE GC bug
30695
- var iframe = require_domCreate()('iframe');
30696
- var i = enumBugKeys.length;
30697
- var lt = '<';
30698
- var gt = '>';
30699
- var iframeDocument;
30700
- iframe.style.display = 'none';
30701
- require_html().appendChild(iframe);
30702
- iframe.src = 'javascript:'; // eslint-disable-line no-script-url
30703
- // createDict = iframe.contentWindow.Object;
30704
- // html.removeChild(iframe);
30705
- iframeDocument = iframe.contentWindow.document;
30706
- iframeDocument.open();
30707
- iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
30708
- iframeDocument.close();
30709
- createDict = iframeDocument.F;
30710
- while (i--) delete createDict[PROTOTYPE$1][enumBugKeys[i]];
30711
- return createDict();
30712
- };
30713
-
30714
- var _objectCreate = Object.create || function create(O, Properties) {
30715
- var result;
30716
- if (O !== null) {
30717
- Empty[PROTOTYPE$1] = anObject$3(O);
30718
- result = new Empty();
30719
- Empty[PROTOTYPE$1] = null;
30720
- // add "__proto__" for Object.getPrototypeOf polyfill
30721
- result[IE_PROTO$1] = O;
30722
- } else result = createDict();
30723
- return Properties === undefined ? result : dPs(result, Properties);
30724
- };
30684
+ function require_objectCreate () {
30685
+ if (hasRequired_objectCreate) return _objectCreate;
30686
+ hasRequired_objectCreate = 1;
30687
+ // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
30688
+ var anObject = _anObject;
30689
+ var dPs = require_objectDps();
30690
+ var enumBugKeys = _enumBugKeys;
30691
+ var IE_PROTO = _sharedKey('IE_PROTO');
30692
+ var Empty = function () { /* empty */ };
30693
+ var PROTOTYPE = 'prototype';
30694
+
30695
+ // Create object with fake `null` prototype: use iframe Object with cleared prototype
30696
+ var createDict = function () {
30697
+ // Thrash, waste and sodomy: IE GC bug
30698
+ var iframe = require_domCreate()('iframe');
30699
+ var i = enumBugKeys.length;
30700
+ var lt = '<';
30701
+ var gt = '>';
30702
+ var iframeDocument;
30703
+ iframe.style.display = 'none';
30704
+ require_html().appendChild(iframe);
30705
+ iframe.src = 'javascript:'; // eslint-disable-line no-script-url
30706
+ // createDict = iframe.contentWindow.Object;
30707
+ // html.removeChild(iframe);
30708
+ iframeDocument = iframe.contentWindow.document;
30709
+ iframeDocument.open();
30710
+ iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
30711
+ iframeDocument.close();
30712
+ createDict = iframeDocument.F;
30713
+ while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];
30714
+ return createDict();
30715
+ };
30716
+
30717
+ _objectCreate = Object.create || function create(O, Properties) {
30718
+ var result;
30719
+ if (O !== null) {
30720
+ Empty[PROTOTYPE] = anObject(O);
30721
+ result = new Empty();
30722
+ Empty[PROTOTYPE] = null;
30723
+ // add "__proto__" for Object.getPrototypeOf polyfill
30724
+ result[IE_PROTO] = O;
30725
+ } else result = createDict();
30726
+ return Properties === undefined ? result : dPs(result, Properties);
30727
+ };
30728
+ return _objectCreate;
30729
+ }
30725
30730
 
30726
30731
  var _wks = {exports: {}};
30727
30732
 
@@ -30747,7 +30752,7 @@ var _setToStringTag = function (it, tag, stat) {
30747
30752
  if (it && !has$c(it = stat ? it : it.prototype, TAG$1)) def(it, TAG$1, { configurable: true, value: tag });
30748
30753
  };
30749
30754
 
30750
- var create$4 = _objectCreate;
30755
+ var create$4 = require_objectCreate();
30751
30756
  var descriptor = _propertyDesc;
30752
30757
  var setToStringTag$2 = _setToStringTag;
30753
30758
  var IteratorPrototype = {};
@@ -31298,7 +31303,7 @@ var _wksDefine = function (name) {
31298
31303
  // all enumerable object keys, includes symbols
31299
31304
  var getKeys = _objectKeys;
31300
31305
  var gOPS$1 = _objectGops;
31301
- var pIE$1 = _objectPie;
31306
+ var pIE$1 = require_objectPie();
31302
31307
  var _enumKeys = function (it) {
31303
31308
  var result = getKeys(it);
31304
31309
  var getSymbols = gOPS$1.f;
@@ -31321,17 +31326,24 @@ var _objectGopnExt = {};
31321
31326
 
31322
31327
  var _objectGopn = {};
31323
31328
 
31324
- // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)
31325
- var $keys$2 = _objectKeysInternal;
31326
- var hiddenKeys = _enumBugKeys.concat('length', 'prototype');
31329
+ var hasRequired_objectGopn;
31327
31330
 
31328
- _objectGopn.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
31329
- return $keys$2(O, hiddenKeys);
31330
- };
31331
+ function require_objectGopn () {
31332
+ if (hasRequired_objectGopn) return _objectGopn;
31333
+ hasRequired_objectGopn = 1;
31334
+ // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)
31335
+ var $keys = _objectKeysInternal;
31336
+ var hiddenKeys = _enumBugKeys.concat('length', 'prototype');
31337
+
31338
+ _objectGopn.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
31339
+ return $keys(O, hiddenKeys);
31340
+ };
31341
+ return _objectGopn;
31342
+ }
31331
31343
 
31332
31344
  // fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
31333
31345
  var toIObject$2 = _toIobject;
31334
- var gOPN$1 = _objectGopn.f;
31346
+ var gOPN$1 = require_objectGopn().f;
31335
31347
  var toString$5 = {}.toString;
31336
31348
 
31337
31349
  var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames
@@ -31351,7 +31363,7 @@ _objectGopnExt.f = function getOwnPropertyNames(it) {
31351
31363
 
31352
31364
  var _objectGopd = {};
31353
31365
 
31354
- var pIE = _objectPie;
31366
+ var pIE = require_objectPie();
31355
31367
  var createDesc$1 = _propertyDesc;
31356
31368
  var toIObject$1 = _toIobject;
31357
31369
  var toPrimitive$1 = _toPrimitive$1;
@@ -31390,7 +31402,7 @@ var toObject$1 = _toObject;
31390
31402
  var toIObject = _toIobject;
31391
31403
  var toPrimitive = _toPrimitive$1;
31392
31404
  var createDesc = _propertyDesc;
31393
- var _create$1 = _objectCreate;
31405
+ var _create$1 = require_objectCreate();
31394
31406
  var gOPNExt = _objectGopnExt;
31395
31407
  var $GOPD = _objectGopd;
31396
31408
  var $GOPS = _objectGops;
@@ -31518,8 +31530,8 @@ if (!USE_NATIVE) {
31518
31530
 
31519
31531
  $GOPD.f = $getOwnPropertyDescriptor;
31520
31532
  $DP.f = $defineProperty$1;
31521
- _objectGopn.f = gOPNExt.f = $getOwnPropertyNames;
31522
- _objectPie.f = $propertyIsEnumerable;
31533
+ require_objectGopn().f = gOPNExt.f = $getOwnPropertyNames;
31534
+ require_objectPie().f = $propertyIsEnumerable;
31523
31535
  $GOPS.f = $getOwnPropertySymbols;
31524
31536
 
31525
31537
  if (DESCRIPTORS && !_library) {
@@ -31700,7 +31712,7 @@ var setPrototypeOf = { "default": setPrototypeOf$1, __esModule: true };
31700
31712
 
31701
31713
  var $export = _export;
31702
31714
  // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
31703
- $export($export.S, 'Object', { create: _objectCreate });
31715
+ $export($export.S, 'Object', { create: require_objectCreate() });
31704
31716
 
31705
31717
  var $Object$1 = _coreExports.Object;
31706
31718
  var create$3 = function create(P, D) {
@@ -41252,7 +41264,7 @@ ReactTable.defaultProps = defaultProps$2;
41252
41264
  var dayjs_min = {exports: {}};
41253
41265
 
41254
41266
  (function (module, exports) {
41255
- !function(t,e){module.exports=e();}(commonjsGlobal,(function(){var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",s="minute",u="hour",a="day",o="week",f="month",h="quarter",c="year",d="date",l="Invalid Date",$=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return "["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},m=function(t,e,n){var r=String(t);return !r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},v={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return (e<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return -t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,f),s=n-i<0,u=e.clone().add(r+(s?-1:1),f);return +(-(r+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return {M:f,y:c,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:h}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},g="en",D={};D[g]=M;var p=function(t){return t instanceof _},S=function t(e,n,r){var i;if(!e)return g;if("string"==typeof e){var s=e.toLowerCase();D[s]&&(i=s),n&&(D[s]=n,i=s);var u=e.split("-");if(!i&&u.length>1)return t(u[0])}else {var a=e.name;D[a]=e,i=a;}return !r&&i&&(g=i),i||!r&&g},w=function(t,e){if(p(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},O=v;O.l=S,O.i=p,O.w=function(t,e){return w(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=S(t.locale,null,!0),this.parse(t);}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(O.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match($);if(r){var i=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.$x=t.x||{},this.init();},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds();},m.$utils=function(){return O},m.isValid=function(){return !(this.$d.toString()===l)},m.isSame=function(t,e){var n=w(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return w(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<w(t)},m.$g=function(t,e,n){return O.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,r=!!O.u(e)||e,h=O.p(t),l=function(t,e){var i=O.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},$=function(t,e){return O.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,M=this.$M,m=this.$D,v="set"+(this.$u?"UTC":"");switch(h){case c:return r?l(1,0):l(31,11);case f:return r?l(1,M):l(0,M+1);case o:var g=this.$locale().weekStart||0,D=(y<g?y+7:y)-g;return l(r?m-D:m+(6-D),M);case a:case d:return $(v+"Hours",0);case u:return $(v+"Minutes",1);case s:return $(v+"Seconds",2);case i:return $(v+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var n,o=O.p(t),h="set"+(this.$u?"UTC":""),l=(n={},n[a]=h+"Date",n[d]=h+"Date",n[f]=h+"Month",n[c]=h+"FullYear",n[u]=h+"Hours",n[s]=h+"Minutes",n[i]=h+"Seconds",n[r]=h+"Milliseconds",n)[o],$=o===a?this.$D+(e-this.$W):e;if(o===f||o===c){var y=this.clone().set(d,1);y.$d[l]($),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d;}else l&&this.$d[l]($);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[O.p(t)]()},m.add=function(r,h){var d,l=this;r=Number(r);var $=O.p(h),y=function(t){var e=w(l);return O.w(e.date(e.date()+Math.round(t*r)),l)};if($===f)return this.set(f,this.$M+r);if($===c)return this.set(c,this.$y+r);if($===a)return y(1);if($===o)return y(7);var M=(d={},d[s]=e,d[u]=n,d[i]=t,d)[$]||1,m=this.$d.getTime()+r*M;return O.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||l;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=O.z(this),s=this.$H,u=this.$m,a=this.$M,o=n.weekdays,f=n.months,h=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].slice(0,s)},c=function(t){return O.s(s%12||12,t,"0")},d=n.meridiem||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r},$={YY:String(this.$y).slice(-2),YYYY:this.$y,M:a+1,MM:O.s(a+1,2,"0"),MMM:h(n.monthsShort,a,f,3),MMMM:h(f,a),D:this.$D,DD:O.s(this.$D,2,"0"),d:String(this.$W),dd:h(n.weekdaysMin,this.$W,o,2),ddd:h(n.weekdaysShort,this.$W,o,3),dddd:o[this.$W],H:String(s),HH:O.s(s,2,"0"),h:c(1),hh:c(2),a:d(s,u,!0),A:d(s,u,!1),m:String(u),mm:O.s(u,2,"0"),s:String(this.$s),ss:O.s(this.$s,2,"0"),SSS:O.s(this.$ms,3,"0"),Z:i};return r.replace(y,(function(t,e){return e||$[t]||i.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,l){var $,y=O.p(d),M=w(r),m=(M.utcOffset()-this.utcOffset())*e,v=this-M,g=O.m(this,M);return g=($={},$[c]=g/12,$[f]=g,$[h]=g/3,$[o]=(v-m)/6048e5,$[a]=(v-m)/864e5,$[u]=v/n,$[s]=v/e,$[i]=v/t,$)[y]||v,l?g:O.a(g)},m.daysInMonth=function(){return this.endOf(f).$D},m.$locale=function(){return D[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=S(t,e,!0);return r&&(n.$L=r),n},m.clone=function(){return O.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},M}(),T=_.prototype;return w.prototype=T,[["$ms",r],["$s",i],["$m",s],["$H",u],["$W",a],["$M",f],["$y",c],["$D",d]].forEach((function(t){T[t[1]]=function(e){return this.$g(e,t[0],t[1])};})),w.extend=function(t,e){return t.$i||(t(e,_,w),t.$i=!0),w},w.locale=S,w.isDayjs=p,w.unix=function(t){return w(1e3*t)},w.en=D[g],w.Ls=D,w.p={},w}));
41267
+ !function(t,e){module.exports=e();}(commonjsGlobal,(function(){var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",s="minute",u="hour",a="day",o="week",c="month",f="quarter",h="year",d="date",l="Invalid Date",$=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return "["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},m=function(t,e,n){var r=String(t);return !r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},v={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return (e<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return -t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,c),s=n-i<0,u=e.clone().add(r+(s?-1:1),c);return +(-(r+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return {M:c,y:h,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:f}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},g="en",D={};D[g]=M;var p=function(t){return t instanceof b},S=function t(e,n,r){var i;if(!e)return g;if("string"==typeof e){var s=e.toLowerCase();D[s]&&(i=s),n&&(D[s]=n,i=s);var u=e.split("-");if(!i&&u.length>1)return t(u[0])}else {var a=e.name;D[a]=e,i=a;}return !r&&i&&(g=i),i||!r&&g},w=function(t,e){if(p(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new b(n)},O=v;O.l=S,O.i=p,O.w=function(t,e){return w(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var b=function(){function M(t){this.$L=S(t.locale,null,!0),this.parse(t);}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(O.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match($);if(r){var i=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.$x=t.x||{},this.init();},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds();},m.$utils=function(){return O},m.isValid=function(){return !(this.$d.toString()===l)},m.isSame=function(t,e){var n=w(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return w(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<w(t)},m.$g=function(t,e,n){return O.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,r=!!O.u(e)||e,f=O.p(t),l=function(t,e){var i=O.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},$=function(t,e){return O.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,M=this.$M,m=this.$D,v="set"+(this.$u?"UTC":"");switch(f){case h:return r?l(1,0):l(31,11);case c:return r?l(1,M):l(0,M+1);case o:var g=this.$locale().weekStart||0,D=(y<g?y+7:y)-g;return l(r?m-D:m+(6-D),M);case a:case d:return $(v+"Hours",0);case u:return $(v+"Minutes",1);case s:return $(v+"Seconds",2);case i:return $(v+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var n,o=O.p(t),f="set"+(this.$u?"UTC":""),l=(n={},n[a]=f+"Date",n[d]=f+"Date",n[c]=f+"Month",n[h]=f+"FullYear",n[u]=f+"Hours",n[s]=f+"Minutes",n[i]=f+"Seconds",n[r]=f+"Milliseconds",n)[o],$=o===a?this.$D+(e-this.$W):e;if(o===c||o===h){var y=this.clone().set(d,1);y.$d[l]($),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d;}else l&&this.$d[l]($);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[O.p(t)]()},m.add=function(r,f){var d,l=this;r=Number(r);var $=O.p(f),y=function(t){var e=w(l);return O.w(e.date(e.date()+Math.round(t*r)),l)};if($===c)return this.set(c,this.$M+r);if($===h)return this.set(h,this.$y+r);if($===a)return y(1);if($===o)return y(7);var M=(d={},d[s]=e,d[u]=n,d[i]=t,d)[$]||1,m=this.$d.getTime()+r*M;return O.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||l;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=O.z(this),s=this.$H,u=this.$m,a=this.$M,o=n.weekdays,c=n.months,f=n.meridiem,h=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].slice(0,s)},d=function(t){return O.s(s%12||12,t,"0")},$=f||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(y,(function(t,r){return r||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return O.s(e.$y,4,"0");case"M":return a+1;case"MM":return O.s(a+1,2,"0");case"MMM":return h(n.monthsShort,a,c,3);case"MMMM":return h(c,a);case"D":return e.$D;case"DD":return O.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return h(n.weekdaysMin,e.$W,o,2);case"ddd":return h(n.weekdaysShort,e.$W,o,3);case"dddd":return o[e.$W];case"H":return String(s);case"HH":return O.s(s,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return $(s,u,!0);case"A":return $(s,u,!1);case"m":return String(u);case"mm":return O.s(u,2,"0");case"s":return String(e.$s);case"ss":return O.s(e.$s,2,"0");case"SSS":return O.s(e.$ms,3,"0");case"Z":return i}return null}(t)||i.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,l){var $,y=this,M=O.p(d),m=w(r),v=(m.utcOffset()-this.utcOffset())*e,g=this-m,D=function(){return O.m(y,m)};switch(M){case h:$=D()/12;break;case c:$=D();break;case f:$=D()/3;break;case o:$=(g-v)/6048e5;break;case a:$=(g-v)/864e5;break;case u:$=g/n;break;case s:$=g/e;break;case i:$=g/t;break;default:$=g;}return l?$:O.a($)},m.daysInMonth=function(){return this.endOf(c).$D},m.$locale=function(){return D[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=S(t,e,!0);return r&&(n.$L=r),n},m.clone=function(){return O.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},M}(),_=b.prototype;return w.prototype=_,[["$ms",r],["$s",i],["$m",s],["$H",u],["$W",a],["$M",c],["$y",h],["$D",d]].forEach((function(t){_[t[1]]=function(e){return this.$g(e,t[0],t[1])};})),w.extend=function(t,e){return t.$i||(t(e,b,w),t.$i=!0),w},w.locale=S,w.isDayjs=p,w.unix=function(t){return w(1e3*t)},w.en=D[g],w.Ls=D,w.p={},w}));
41256
41268
  } (dayjs_min));
41257
41269
 
41258
41270
  var dayjs_minExports = dayjs_min.exports;
@@ -97696,7 +97708,9 @@ const extractZipFiles = async (allFiles) => {
97696
97708
  const zipFilesArray = Array.isArray(zipFiles) ? zipFiles : [zipFiles];
97697
97709
  const parsedZips = await Promise$1.map(
97698
97710
  zipFilesArray,
97699
- (file) => jszip_minExports.loadAsync(file instanceof Blob ? file : file.originFileObj)
97711
+ (file) => jszip_minExports.loadAsync(
97712
+ file instanceof (typeof Blob !== "undefined" ? Blob : require("buffer").Blob) ? file : file.originFileObj
97713
+ )
97700
97714
  );
97701
97715
  const zippedFiles = lodashExports.flatMap(
97702
97716
  parsedZips,
@@ -99553,10 +99567,7 @@ function UploaderInner({
99553
99567
  const { showDialogPromise: showUploadCsvWizardDialog, comp } = useDialog({
99554
99568
  ModalComponent: UploadCsvWizardDialog
99555
99569
  });
99556
- const {
99557
- showDialogPromise: showSimpleInsertDataDialog,
99558
- comp: comp2
99559
- } = useDialog({
99570
+ const { showDialogPromise: showSimpleInsertDataDialog, comp: comp2 } = useDialog({
99560
99571
  ModalComponent: SimpleInsertDataDialog
99561
99572
  });
99562
99573
  function cleanupFiles() {
@@ -99632,17 +99643,16 @@ function UploaderInner({
99632
99643
  const handleDownloadXlsxFile = async () => {
99633
99644
  const dataDictionarySchema = [
99634
99645
  { value: (f) => f.displayName || f.path, column: `Column Name` },
99646
+ // {
99647
+ // value: f => f.isUnique ? "Unique" : "",
99648
+ // column: `Unique?`
99649
+ // },
99635
99650
  {
99636
- value: (f) => f.isUnique,
99637
- column: `Unique`
99651
+ value: (f) => f.isRequired ? "Required" : "Optional",
99652
+ column: `Required?`
99638
99653
  },
99639
99654
  {
99640
- value: (f) => f.isRequired,
99641
- column: `Required`,
99642
- type: Boolean
99643
- },
99644
- {
99645
- value: (f) => f.type || "text",
99655
+ value: (f) => f.type === "dropdown" ? "text" : f.type || "text",
99646
99656
  column: `Data Type`
99647
99657
  },
99648
99658
  {
@@ -99978,10 +99988,7 @@ function UploaderInner({
99978
99988
  ...file.parsedString ? { parsedString: file.parsedString } : {}
99979
99989
  };
99980
99990
  });
99981
- const cleanedFileList = [
99982
- ...cleanedAccepted,
99983
- ...fileListToUse
99984
- ].slice(0, fileLimit ? fileLimit : void 0);
99991
+ const toKeep = [];
99985
99992
  if (validateAgainstSchema) {
99986
99993
  const filesWIssues = [];
99987
99994
  const filesWOIssues = [];
@@ -100012,65 +100019,65 @@ function UploaderInner({
100012
100019
  userSchema,
100013
100020
  parsedF.data
100014
100021
  );
100015
- window.toastr && window.toastr.error(
100016
- `It looks like there wasn't any data in your file. Please add some data and try again`
100017
- );
100018
- return;
100019
- }
100020
- let csvValidationIssue = _csvValidationIssue;
100021
- if (csvValidationIssue) {
100022
- if (lodashExports.isObject(csvValidationIssue)) {
100023
- initializeForm(
100024
- `editableCellTable${cleanedAccepted.length > 1 ? `-${i}` : ""}`,
100025
- {
100026
- reduxFormCellValidation: csvValidationIssue
100027
- },
100028
- {
100029
- keepDirty: true,
100030
- keepValues: true,
100031
- updateUnregisteredFields: true
100032
- }
100033
- );
100034
- const err = Object.values(csvValidationIssue)[0];
100035
- const errMsg = err && err.message ? err.message : err;
100036
- if (lodashExports.isPlainObject(errMsg)) {
100037
- throw new Error(
100038
- `errMsg is an object ${JSON.stringify(
100039
- errMsg,
100040
- null,
100041
- 4
100042
- )}`
100022
+ } else {
100023
+ toKeep.push(file);
100024
+ let csvValidationIssue = _csvValidationIssue;
100025
+ if (csvValidationIssue) {
100026
+ if (lodashExports.isObject(csvValidationIssue)) {
100027
+ initializeForm(
100028
+ `editableCellTable${cleanedAccepted.length > 1 ? `-${i}` : ""}`,
100029
+ {
100030
+ reduxFormCellValidation: csvValidationIssue
100031
+ },
100032
+ {
100033
+ keepDirty: true,
100034
+ keepValues: true,
100035
+ updateUnregisteredFields: true
100036
+ }
100043
100037
  );
100038
+ const err = Object.values(csvValidationIssue)[0];
100039
+ const errMsg = err && err.message ? err.message : err;
100040
+ if (lodashExports.isPlainObject(errMsg)) {
100041
+ throw new Error(
100042
+ `errMsg is an object ${JSON.stringify(
100043
+ errMsg,
100044
+ null,
100045
+ 4
100046
+ )}`
100047
+ );
100048
+ }
100049
+ csvValidationIssue = /* @__PURE__ */ React__default$1.createElement("div", null, /* @__PURE__ */ React__default$1.createElement("div", null, "It looks like there was an error with your data (Correct on the Review Data page):"), /* @__PURE__ */ React__default$1.createElement("div", { style: { color: "red" } }, errMsg), /* @__PURE__ */ React__default$1.createElement("div", null, "Please review your headers and then correct any errors on the next page."));
100044
100050
  }
100045
- csvValidationIssue = /* @__PURE__ */ React__default$1.createElement("div", null, /* @__PURE__ */ React__default$1.createElement("div", null, "It looks like there was an error with your data (Correct on the Review Data page):"), /* @__PURE__ */ React__default$1.createElement("div", { style: { color: "red" } }, errMsg), /* @__PURE__ */ React__default$1.createElement("div", null, "Please review your headers and then correct any errors on the next page."));
100051
+ filesWIssues.push({
100052
+ file,
100053
+ csvValidationIssue,
100054
+ matchedHeaders,
100055
+ userSchema,
100056
+ searchResults
100057
+ });
100058
+ } else {
100059
+ filesWOIssues.push({
100060
+ file,
100061
+ csvValidationIssue,
100062
+ matchedHeaders,
100063
+ userSchema,
100064
+ searchResults
100065
+ });
100066
+ const newFileName = removeExt(file.name) + `.csv`;
100067
+ const { newFile, cleanedEntities } = getNewCsvFile(
100068
+ userSchema.userData,
100069
+ newFileName
100070
+ );
100071
+ file.meta = parsedF.meta;
100072
+ file.hasEditClick = true;
100073
+ file.parsedData = cleanedEntities;
100074
+ file.name = newFileName;
100075
+ file.originFileObj = newFile;
100076
+ file.originalFileObj = newFile;
100046
100077
  }
100047
- filesWIssues.push({
100048
- file,
100049
- csvValidationIssue,
100050
- matchedHeaders,
100051
- userSchema,
100052
- searchResults
100053
- });
100054
- } else {
100055
- filesWOIssues.push({
100056
- file,
100057
- csvValidationIssue,
100058
- matchedHeaders,
100059
- userSchema,
100060
- searchResults
100061
- });
100062
- const newFileName = removeExt(file.name) + `.csv`;
100063
- const { newFile, cleanedEntities } = getNewCsvFile(
100064
- userSchema.userData,
100065
- newFileName
100066
- );
100067
- file.meta = parsedF.meta;
100068
- file.hasEditClick = true;
100069
- file.parsedData = cleanedEntities;
100070
- file.name = newFileName;
100071
- file.originFileObj = newFile;
100072
- file.originalFileObj = newFile;
100073
100078
  }
100079
+ } else {
100080
+ toKeep.push(file);
100074
100081
  }
100075
100082
  }
100076
100083
  if (filesWIssues.length) {
@@ -100118,7 +100125,18 @@ function UploaderInner({
100118
100125
  }, 200);
100119
100126
  }
100120
100127
  }
100128
+ } else {
100129
+ toKeep.push(...cleanedAccepted);
100121
100130
  }
100131
+ if (toKeep.length === 0) {
100132
+ window.toastr && window.toastr.error(
100133
+ `It looks like there wasn't any data in your file. Please add some data and try again`
100134
+ );
100135
+ }
100136
+ const cleanedFileList = [...toKeep, ...fileListToUse].slice(
100137
+ 0,
100138
+ fileLimit ? fileLimit : void 0
100139
+ );
100122
100140
  handleSecondHalfOfUpload({ acceptedFiles, cleanedFileList });
100123
100141
  }
100124
100142
  },
@@ -100253,9 +100271,7 @@ function UploaderInner({
100253
100271
  incomingData: file.parsedData,
100254
100272
  validateAgainstSchema
100255
100273
  });
100256
- const {
100257
- newEntities
100258
- } = await showSimpleInsertDataDialog(
100274
+ const { newEntities } = await showSimpleInsertDataDialog(
100259
100275
  "onSimpleInsertDialogFinish",
100260
100276
  {
100261
100277
  dialogProps: {
@@ -100271,10 +100287,7 @@ function UploaderInner({
100271
100287
  if (!newEntities) {
100272
100288
  return;
100273
100289
  } else {
100274
- const {
100275
- newFile,
100276
- cleanedEntities
100277
- } = getNewCsvFile(newEntities, file.name);
100290
+ const { newFile, cleanedEntities } = getNewCsvFile(newEntities, file.name);
100278
100291
  Object.assign(file, {
100279
100292
  ...newFile,
100280
100293
  originFileObj: newFile,
@@ -125190,6 +125203,7 @@ const parseXml = function(xmlData) {
125190
125203
  if (tagExp.length > 0 && tagExp.lastIndexOf("/") === tagExp.length - 1) {
125191
125204
  if (tagName[tagName.length - 1] === "/") {
125192
125205
  tagName = tagName.substr(0, tagName.length - 1);
125206
+ jPath = jPath.substr(0, jPath.length - 1);
125193
125207
  tagExp = tagName;
125194
125208
  } else {
125195
125209
  tagExp = tagExp.substr(0, tagExp.length - 1);
@@ -125746,11 +125760,18 @@ Builder.prototype.j2x = function(jObj, level) {
125746
125760
  let attrStr = "";
125747
125761
  let val = "";
125748
125762
  for (let key in jObj) {
125749
- if (typeof jObj[key] === "undefined") ; else if (jObj[key] === null) {
125750
- if (key[0] === "?")
125763
+ if (typeof jObj[key] === "undefined") {
125764
+ if (this.isAttribute(key)) {
125765
+ val += "";
125766
+ }
125767
+ } else if (jObj[key] === null) {
125768
+ if (this.isAttribute(key)) {
125769
+ val += "";
125770
+ } else if (key[0] === "?") {
125751
125771
  val += this.indentate(level) + "<" + key + "?" + this.tagEndChar;
125752
- else
125772
+ } else {
125753
125773
  val += this.indentate(level) + "<" + key + "/" + this.tagEndChar;
125774
+ }
125754
125775
  } else if (jObj[key] instanceof Date) {
125755
125776
  val += this.buildTextValNode(jObj[key], key, "", level);
125756
125777
  } else if (typeof jObj[key] !== "object") {
@@ -125833,7 +125854,7 @@ Builder.prototype.buildObjectNode = function(val, key, attrStr, level) {
125833
125854
  piClosingChar = "?";
125834
125855
  tagEndExp = "";
125835
125856
  }
125836
- if (attrStr && val.indexOf("<") === -1) {
125857
+ if ((attrStr || attrStr === "") && val.indexOf("<") === -1) {
125837
125858
  return this.indentate(level) + "<" + key + attrStr + piClosingChar + ">" + val + tagEndExp;
125838
125859
  } else if (this.options.commentPropName !== false && key === this.options.commentPropName && piClosingChar.length === 0) {
125839
125860
  return this.indentate(level) + `<!--${val}-->` + this.newLine;
@@ -125884,7 +125905,7 @@ function indentate(level) {
125884
125905
  return this.options.indentBy.repeat(level);
125885
125906
  }
125886
125907
  function isAttribute(name) {
125887
- if (name.startsWith(this.options.attributeNamePrefix)) {
125908
+ if (name.startsWith(this.options.attributeNamePrefix) && name !== this.options.textNodeName) {
125888
125909
  return name.substr(this.attrPrefixLen);
125889
125910
  } else {
125890
125911
  return false;
@@ -142523,7 +142544,7 @@ const importSequenceFromFile = (props) => async (file, opts = {}) => {
142523
142544
  }
142524
142545
  async function finishDisplayingSeq(seqData) {
142525
142546
  if (onImport) {
142526
- seqData = await onImport(seqData);
142547
+ seqData = await onImport(seqData, file, props);
142527
142548
  }
142528
142549
  if (seqData) {
142529
142550
  seqData.stateTrackingId = uuid();
@@ -161029,7 +161050,7 @@ function showFileDialog({ multiple = false, onSelect }) {
161029
161050
  }
161030
161051
 
161031
161052
  const name = "@teselagen/ove";
161032
- const version = "0.3.8";
161053
+ const version = "0.3.9";
161033
161054
  const main = "./src/index.js";
161034
161055
  const exports$1 = {
161035
161056
  ".": {
@@ -169280,7 +169301,7 @@ class _LinearView extends React__default$1.Component {
169280
169301
  updateLabelsForInViewFeatures();
169281
169302
  },
169282
169303
  rowContainerStyle: {
169283
- height: height - 36,
169304
+ height: isNaN(height - 36) ? "auto" : height - 36,
169284
169305
  width: innerWidth + 26,
169285
169306
  paddingRight: marginWidth / 2,
169286
169307
  ...isLinViewZoomed && !isInAlignment && { paddingBottom: 15 }