@zscreate/form-component 1.1.519-test.7 → 1.1.520

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.
@@ -4107,7 +4107,7 @@ module.exports = closest;
4107
4107
 
4108
4108
  /***/ }),
4109
4109
 
4110
- /***/ 5503:
4110
+ /***/ 9112:
4111
4111
  /***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
4112
4112
 
4113
4113
  // CodeMirror, copyright (c) by Marijn Haverbeke and others
@@ -4117,7 +4117,7 @@ module.exports = closest;
4117
4117
 
4118
4118
  (function(mod) {
4119
4119
  if (true) // CommonJS
4120
- mod(__webpack_require__(4125));
4120
+ mod(__webpack_require__(6386));
4121
4121
  else {}
4122
4122
  })(function(CodeMirror) {
4123
4123
  "use strict";
@@ -4634,7 +4634,7 @@ module.exports = closest;
4634
4634
 
4635
4635
  /***/ }),
4636
4636
 
4637
- /***/ 3084:
4637
+ /***/ 4157:
4638
4638
  /***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
4639
4639
 
4640
4640
  // CodeMirror, copyright (c) by Marijn Haverbeke and others
@@ -4642,7 +4642,7 @@ module.exports = closest;
4642
4642
 
4643
4643
  (function(mod) {
4644
4644
  if (true) // CommonJS
4645
- mod(__webpack_require__(4125));
4645
+ mod(__webpack_require__(6386));
4646
4646
  else {}
4647
4647
  })(function(CodeMirror) {
4648
4648
  "use strict";
@@ -4710,7 +4710,7 @@ module.exports = closest;
4710
4710
 
4711
4711
  /***/ }),
4712
4712
 
4713
- /***/ 4125:
4713
+ /***/ 6386:
4714
4714
  /***/ (function(module) {
4715
4715
 
4716
4716
  // CodeMirror, copyright (c) by Marijn Haverbeke and others
@@ -14591,7 +14591,7 @@ module.exports = closest;
14591
14591
 
14592
14592
  addLegacyProps(CodeMirror);
14593
14593
 
14594
- CodeMirror.version = "5.65.16";
14594
+ CodeMirror.version = "5.65.17";
14595
14595
 
14596
14596
  return CodeMirror;
14597
14597
 
@@ -14600,7 +14600,7 @@ module.exports = closest;
14600
14600
 
14601
14601
  /***/ }),
14602
14602
 
14603
- /***/ 2864:
14603
+ /***/ 4275:
14604
14604
  /***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
14605
14605
 
14606
14606
  // CodeMirror, copyright (c) by Marijn Haverbeke and others
@@ -14608,7 +14608,7 @@ module.exports = closest;
14608
14608
 
14609
14609
  (function(mod) {
14610
14610
  if (true) // CommonJS
14611
- mod(__webpack_require__(4125));
14611
+ mod(__webpack_require__(6386));
14612
14612
  else {}
14613
14613
  })(function(CodeMirror) {
14614
14614
  "use strict";
@@ -17864,7 +17864,7 @@ module.exports = function isShallowEqual (a, b) {
17864
17864
 
17865
17865
  /***/ }),
17866
17866
 
17867
- /***/ 2210:
17867
+ /***/ 9365:
17868
17868
  /***/ (function(__unused_webpack_module, exports) {
17869
17869
 
17870
17870
  /**
@@ -19430,36 +19430,11 @@ module.exports = function isShallowEqual (a, b) {
19430
19430
  }
19431
19431
  };
19432
19432
 
19433
- /**
19434
- * Finds all elements matching the given selector, for the given parent. In order to support "scoped root" selectors,
19435
- * ie. things like "> .someClass", that is .someClass elements that are direct children of `parentElement`, we have to
19436
- * jump through a small hoop here: when a delegate draggable is registered, we write a `katavorio-draggable` attribute
19437
- * on the element on which the draggable is registered. Then when this method runs, we grab the value of that attribute and
19438
- * prepend it as part of the selector we're looking for. So "> .someClass" ends up being written as
19439
- * "[katavorio-draggable='...' > .someClass]", which works with querySelectorAll.
19440
- *
19441
- * @param availableSelectors
19442
- * @param parentElement
19443
- * @param childElement
19444
- * @returns {*}
19445
- */
19446
19433
  var findMatchingSelector = function(availableSelectors, parentElement, childElement) {
19447
19434
  var el = null;
19448
- var draggableId = parentElement.getAttribute("katavorio-draggable"),
19449
- prefix = draggableId != null ? "[katavorio-draggable='" + draggableId + "'] " : "";
19450
-
19451
19435
  for (var i = 0; i < availableSelectors.length; i++) {
19452
- el = findDelegateElement(parentElement, childElement, prefix + availableSelectors[i].selector);
19436
+ el = findDelegateElement(parentElement, childElement, availableSelectors[i].selector);
19453
19437
  if (el != null) {
19454
- if (availableSelectors[i].filter) {
19455
- var matches = matchesSelector(childElement, availableSelectors[i].filter, el),
19456
- exclude = availableSelectors[i].filterExclude === true;
19457
-
19458
- if ( (exclude && !matches) || matches) {
19459
- return null;
19460
- }
19461
-
19462
- }
19463
19438
  return [ availableSelectors[i], el ];
19464
19439
  }
19465
19440
  }
@@ -19618,12 +19593,6 @@ module.exports = function isShallowEqual (a, b) {
19618
19593
 
19619
19594
  // if an initial selector was provided, push the entire set of params as a selector config.
19620
19595
  if (params.selector) {
19621
- var draggableId = el.getAttribute("katavorio-draggable");
19622
- if (draggableId == null) {
19623
- draggableId = "" + new Date().getTime();
19624
- el.setAttribute("katavorio-draggable", draggableId);
19625
- }
19626
-
19627
19596
  availableSelectors.push(params);
19628
19597
  }
19629
19598
 
@@ -19663,11 +19632,9 @@ module.exports = function isShallowEqual (a, b) {
19663
19632
  y = y || (this.params.grid ? this.params.grid[1] : DEFAULT_GRID_Y);
19664
19633
  var p = this.params.getPosition(dragEl),
19665
19634
  tx = this.params.grid ? this.params.grid[0] / 2 : snapThreshold,
19666
- ty = this.params.grid ? this.params.grid[1] / 2 : snapThreshold,
19667
- snapped = _snap(p, x, y, tx, ty);
19635
+ ty = this.params.grid ? this.params.grid[1] / 2 : snapThreshold;
19668
19636
 
19669
- this.params.setPosition(dragEl, snapped);
19670
- return snapped;
19637
+ this.params.setPosition(dragEl, _snap(p, x, y, tx, ty));
19671
19638
  };
19672
19639
 
19673
19640
  this.setUseGhostProxy = function(val) {
@@ -19710,10 +19677,6 @@ module.exports = function isShallowEqual (a, b) {
19710
19677
  revertFunction = fn;
19711
19678
  };
19712
19679
 
19713
- if (this.params.revert) {
19714
- revertFunction = this.params.revert;
19715
- }
19716
-
19717
19680
  var _assignId = function(obj) {
19718
19681
  if (typeof obj === "function") {
19719
19682
  obj._katavorioId = _uuid();
@@ -19898,20 +19861,23 @@ module.exports = function isShallowEqual (a, b) {
19898
19861
  k.unmarkPosses(this, e);
19899
19862
  this.stop(e);
19900
19863
 
19864
+ //k.notifySelectionDragStop(this, e); removed in 1.1.0 under the "leave it for one release in case it breaks" rule.
19865
+ // it isnt necessary to fire this as the normal stop event now includes a `selection` member that has every dragged element.
19866
+ // firing this event causes consumers who use the `selection` array to process a lot more drag stop events than is necessary
19867
+
19901
19868
  k.notifyPosseDragStop(this, e);
19902
19869
  moving = false;
19903
- intersectingDroppables.length = 0;
19904
-
19905
19870
  if (clone) {
19906
19871
  dragEl && dragEl.parentNode && dragEl.parentNode.removeChild(dragEl);
19907
19872
  dragEl = null;
19908
- } else {
19909
- if (revertFunction && revertFunction(dragEl, this.params.getPosition(dragEl)) === true) {
19910
- this.params.setPosition(dragEl, posAtDown);
19911
- _dispatch("revert", dragEl);
19912
- }
19913
19873
  }
19914
19874
 
19875
+ intersectingDroppables.length = 0;
19876
+
19877
+ if (revertFunction && revertFunction(this.el, this.params.getPosition(this.el)) === true) {
19878
+ this.params.setPosition(this.el, posAtDown);
19879
+ _dispatch("revert", this.el);
19880
+ }
19915
19881
  }
19916
19882
  }.bind(this);
19917
19883
 
@@ -19959,7 +19925,7 @@ module.exports = function isShallowEqual (a, b) {
19959
19925
  var _dispatch = function(evt, value) {
19960
19926
  var result = null;
19961
19927
  if (activeSelectorParams && activeSelectorParams[evt]) {
19962
- result = activeSelectorParams[evt](value);
19928
+ activeSelectorParams[evt](value);
19963
19929
  } else if (listeners[evt]) {
19964
19930
  for (var i = 0; i < listeners[evt].length; i++) {
19965
19931
  try {
@@ -19984,14 +19950,9 @@ module.exports = function isShallowEqual (a, b) {
19984
19950
  sel = k.getSelection(),
19985
19951
  dPos = this.params.getPosition(dragEl);
19986
19952
 
19987
- if (sel.length > 0) {
19988
- for (var i = 0; i < sel.length; i++) {
19989
- var p = this.params.getPosition(sel[i].el);
19990
- positions.push([ sel[i].el, { left: p[0], top: p[1] }, sel[i] ]);
19991
- }
19992
- }
19993
- else {
19994
- positions.push([ dragEl, {left:dPos[0], top:dPos[1]}, this ]);
19953
+ for (var i = 0; i < sel.length; i++) {
19954
+ var p = this.params.getPosition(sel[i].el);
19955
+ positions.push([ sel[i].el, { left: p[0], top: p[1] }, sel[i] ]);
19995
19956
  }
19996
19957
 
19997
19958
  _dispatch("stop", {
@@ -20033,7 +19994,7 @@ module.exports = function isShallowEqual (a, b) {
20033
19994
  this.unmark = function(e, doNotCheckDroppables) {
20034
19995
  _setDroppablesActive(matchingDroppables, false, true, this);
20035
19996
 
20036
- if (isConstrained && useGhostProxy(elementToDrag, dragEl)) {
19997
+ if (isConstrained && useGhostProxy(elementToDrag)) {
20037
19998
  ghostProxyOffsets = [dragEl.offsetLeft - ghostDx, dragEl.offsetTop - ghostDy];
20038
19999
  dragEl.parentNode.removeChild(dragEl);
20039
20000
  dragEl = elementToDrag;
@@ -20063,7 +20024,7 @@ module.exports = function isShallowEqual (a, b) {
20063
20024
  cPos = constrain(desiredLoc, dragEl, constrainRect, this.size);
20064
20025
 
20065
20026
  // if we should use a ghost proxy...
20066
- if (useGhostProxy(this.el, dragEl)) {
20027
+ if (useGhostProxy(this.el)) {
20067
20028
  // and the element has been dragged outside of its parent bounds
20068
20029
  if (desiredLoc[0] !== cPos[0] || desiredLoc[1] !== cPos[1]) {
20069
20030
 
@@ -20754,18 +20715,10 @@ module.exports = function isShallowEqual (a, b) {
20754
20715
  if (true) { exports.jsPlumbUtil = jsPlumbUtil;}
20755
20716
 
20756
20717
 
20757
- /**
20758
- * Tests if the given object is an Array.
20759
- * @param a
20760
- */
20761
20718
  function isArray(a) {
20762
20719
  return Object.prototype.toString.call(a) === "[object Array]";
20763
20720
  }
20764
20721
  jsPlumbUtil.isArray = isArray;
20765
- /**
20766
- * Tests if the given object is a Number.
20767
- * @param n
20768
- */
20769
20722
  function isNumber(n) {
20770
20723
  return Object.prototype.toString.call(n) === "[object Number]";
20771
20724
  }
@@ -20899,9 +20852,9 @@ module.exports = function isShallowEqual (a, b) {
20899
20852
  path.replace(/([^\.])+/g, function (term, lc, pos, str) {
20900
20853
  var array = term.match(/([^\[0-9]+){1}(\[)([0-9+])/), last = pos + term.length >= str.length, _getArray = function () {
20901
20854
  return t[array[1]] || (function () {
20902
- t[array[1]] = [];
20903
- return t[array[1]];
20904
- })();
20855
+ t[array[1]] = [];
20856
+ return t[array[1]];
20857
+ })();
20905
20858
  };
20906
20859
  if (last) {
20907
20860
  // set term = value on current t, creating term as array if necessary.
@@ -20917,15 +20870,15 @@ module.exports = function isShallowEqual (a, b) {
20917
20870
  if (array) {
20918
20871
  var a_1 = _getArray();
20919
20872
  t = a_1[array[3]] || (function () {
20920
- a_1[array[3]] = {};
20921
- return a_1[array[3]];
20922
- })();
20873
+ a_1[array[3]] = {};
20874
+ return a_1[array[3]];
20875
+ })();
20923
20876
  }
20924
20877
  else {
20925
20878
  t = t[term] || (function () {
20926
- t[term] = {};
20927
- return t[term];
20928
- })();
20879
+ t[term] = {};
20880
+ return t[term];
20881
+ })();
20929
20882
  }
20930
20883
  }
20931
20884
  return "";
@@ -21005,12 +20958,6 @@ module.exports = function isShallowEqual (a, b) {
21005
20958
  return _one(model);
21006
20959
  }
21007
20960
  jsPlumbUtil.populate = populate;
21008
- /**
21009
- * Find the index of a given object in an array.
21010
- * @param a The array to search
21011
- * @param f The function to run on each element. Return true if the element matches.
21012
- * @returns {number} -1 if not found, otherwise the index in the array.
21013
- */
21014
20961
  function findWithFunction(a, f) {
21015
20962
  if (a) {
21016
20963
  for (var i = 0; i < a.length; i++) {
@@ -21022,13 +20969,6 @@ module.exports = function isShallowEqual (a, b) {
21022
20969
  return -1;
21023
20970
  }
21024
20971
  jsPlumbUtil.findWithFunction = findWithFunction;
21025
- /**
21026
- * Remove some element from an array by matching each element in the array against some predicate function. Note that this
21027
- * is an in-place removal; the array is altered.
21028
- * @param a The array to search
21029
- * @param f The function to run on each element. Return true if the element matches.
21030
- * @returns {boolean} true if removed, false otherwise.
21031
- */
21032
20972
  function removeWithFunction(a, f) {
21033
20973
  var idx = findWithFunction(a, f);
21034
20974
  if (idx > -1) {
@@ -21037,13 +20977,6 @@ module.exports = function isShallowEqual (a, b) {
21037
20977
  return idx !== -1;
21038
20978
  }
21039
20979
  jsPlumbUtil.removeWithFunction = removeWithFunction;
21040
- /**
21041
- * Remove some element from an array by simple lookup in the array for the given element. Note that this
21042
- * is an in-place removal; the array is altered.
21043
- * @param l The array to search
21044
- * @param v The value to remove.
21045
- * @returns {boolean} true if removed, false otherwise.
21046
- */
21047
20980
  function remove(l, v) {
21048
20981
  var idx = l.indexOf(v);
21049
20982
  if (idx > -1) {
@@ -21052,25 +20985,12 @@ module.exports = function isShallowEqual (a, b) {
21052
20985
  return idx !== -1;
21053
20986
  }
21054
20987
  jsPlumbUtil.remove = remove;
21055
- /**
21056
- * Add some element to the given array, unless it is determined that it is already in the array.
21057
- * @param list The array to add the element to.
21058
- * @param item The item to add.
21059
- * @param hashFunction A function to use to determine if the given item already exists in the array.
21060
- */
21061
20988
  function addWithFunction(list, item, hashFunction) {
21062
20989
  if (findWithFunction(list, hashFunction) === -1) {
21063
20990
  list.push(item);
21064
20991
  }
21065
20992
  }
21066
20993
  jsPlumbUtil.addWithFunction = addWithFunction;
21067
- /**
21068
- * Add some element to a list that is contained in a map of lists.
21069
- * @param map The map of [ key -> list ] entries
21070
- * @param key The name of the list to insert into
21071
- * @param value The value to insert
21072
- * @param insertAtStart Whether or not to insert at the start; defaults to false.
21073
- */
21074
20994
  function addToList(map, key, value, insertAtStart) {
21075
20995
  var l = map[key];
21076
20996
  if (l == null) {
@@ -21081,13 +21001,6 @@ module.exports = function isShallowEqual (a, b) {
21081
21001
  return l;
21082
21002
  }
21083
21003
  jsPlumbUtil.addToList = addToList;
21084
- /**
21085
- * Add an item to a list, unless it is already in the list. The test for pre-existence is a simple list lookup.
21086
- * If you want to do something more complex, perhaps #addWithFunction might help.
21087
- * @param list List to add the item to
21088
- * @param item Item to add
21089
- * @param insertAtHead Whether or not to insert at the start; defaults to false.
21090
- */
21091
21004
  function suggest(list, item, insertAtHead) {
21092
21005
  if (list.indexOf(item) === -1) {
21093
21006
  if (insertAtHead) {
@@ -21101,12 +21014,10 @@ module.exports = function isShallowEqual (a, b) {
21101
21014
  return false;
21102
21015
  }
21103
21016
  jsPlumbUtil.suggest = suggest;
21104
- /**
21105
- * Extends the given obj (which can be an array) with the given constructor function, prototype functions, and class members, any of which may be null.
21106
- * @param child
21107
- * @param parent
21108
- * @param _protoFn
21109
- */
21017
+ //
21018
+ // extends the given obj (which can be an array) with the given constructor function, prototype functions, and
21019
+ // class members, any of which may be null.
21020
+ //
21110
21021
  function extend(child, parent, _protoFn) {
21111
21022
  var i;
21112
21023
  parent = isArray(parent) ? parent : [parent];
@@ -21157,9 +21068,6 @@ module.exports = function isShallowEqual (a, b) {
21157
21068
  return child;
21158
21069
  }
21159
21070
  jsPlumbUtil.extend = extend;
21160
- /**
21161
- * Generate a UUID.
21162
- */
21163
21071
  function uuid() {
21164
21072
  return ('xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
21165
21073
  var r = Math.random() * 16 | 0, v = c === 'x' ? r : (r & 0x3 | 0x8);
@@ -21167,11 +21075,6 @@ module.exports = function isShallowEqual (a, b) {
21167
21075
  }));
21168
21076
  }
21169
21077
  jsPlumbUtil.uuid = uuid;
21170
- /**
21171
- * Trim a string.
21172
- * @param s String to trim
21173
- * @returns the String with leading and trailing whitespace removed.
21174
- */
21175
21078
  function fastTrim(s) {
21176
21079
  if (s == null) {
21177
21080
  return null;
@@ -21210,11 +21113,7 @@ module.exports = function isShallowEqual (a, b) {
21210
21113
  return def;
21211
21114
  }
21212
21115
  else {
21213
- var overrides = ["anchor", "anchors", "cssClass", "connector", "paintStyle", "hoverPaintStyle", "endpoint", "endpoints"];
21214
- if (def.mergeStrategy === "override") {
21215
- Array.prototype.push.apply(overrides, ["events", "overlays"]);
21216
- }
21217
- var d_1 = merge(parent, def, [], overrides);
21116
+ var d_1 = merge(parent, def);
21218
21117
  return _one(_parent(parent), d_1);
21219
21118
  }
21220
21119
  };
@@ -21482,231 +21381,6 @@ module.exports = function isShallowEqual (a, b) {
21482
21381
 
21483
21382
  }).call(typeof window !== 'undefined' ? window : this);
21484
21383
 
21485
- ;(function() {
21486
-
21487
- var DEFAULT_OPTIONS = {
21488
- deriveAnchor:function(edge, index, ep, conn) {
21489
- return {
21490
- top:["TopRight", "TopLeft"],
21491
- bottom:["BottomRight", "BottomLeft"]
21492
- }[edge][index];
21493
- }
21494
- };
21495
-
21496
- var root = this;
21497
-
21498
- var ListManager = function(jsPlumbInstance) {
21499
-
21500
- this.count = 0;
21501
- this.instance = jsPlumbInstance;
21502
- this.lists = {};
21503
-
21504
- this.instance.addList = function(el, options) {
21505
- return this.listManager.addList(el, options);
21506
- };
21507
-
21508
- this.instance.removeList = function(el) {
21509
- this.listManager.removeList(el);
21510
- };
21511
-
21512
- this.instance.bind("manageElement", function(p) {
21513
-
21514
- //look for [jtk-scrollable-list] elements and attach scroll listeners if necessary
21515
- var scrollableLists = this.instance.getSelector(p.el, "[jtk-scrollable-list]");
21516
- for (var i = 0; i < scrollableLists.length; i++) {
21517
- this.addList(scrollableLists[i]);
21518
- }
21519
-
21520
- }.bind(this));
21521
-
21522
- this.instance.bind("unmanageElement", function(p) {
21523
- this.removeList(p.el);
21524
- });
21525
-
21526
-
21527
- this.instance.bind("connection", function(c, evt) {
21528
- if (evt == null) {
21529
- // not added by mouse. look for an ancestor of the source and/or target element that is a scrollable list, and run
21530
- // its scroll method.
21531
- this._maybeUpdateParentList(c.source);
21532
- this._maybeUpdateParentList(c.target);
21533
- }
21534
- }.bind(this));
21535
- };
21536
-
21537
- root.jsPlumbListManager = ListManager;
21538
-
21539
- ListManager.prototype = {
21540
-
21541
- addList : function(el, options) {
21542
- var dp = this.instance.extend({}, DEFAULT_OPTIONS);
21543
- options = this.instance.extend(dp, options || {});
21544
- var id = [this.instance.getInstanceIndex(), this.count++].join("_");
21545
- this.lists[id] = new List(this.instance, el, options, id);
21546
- },
21547
-
21548
- removeList:function(el) {
21549
- var list = this.lists[el._jsPlumbList];
21550
- if (list) {
21551
- list.destroy();
21552
- delete this.lists[el._jsPlumbList];
21553
- }
21554
- },
21555
-
21556
- _maybeUpdateParentList:function (el) {
21557
- var parent = el.parentNode, container = this.instance.getContainer();
21558
- while(parent != null && parent !== container) {
21559
- if (parent._jsPlumbList != null && this.lists[parent._jsPlumbList] != null) {
21560
- parent._jsPlumbScrollHandler();
21561
- return
21562
- }
21563
- parent = parent.parentNode;
21564
- }
21565
- }
21566
-
21567
-
21568
- };
21569
-
21570
- var List = function(instance, el, options, id) {
21571
-
21572
- el["_jsPlumbList"] = id;
21573
-
21574
- //
21575
- // Derive an anchor to use for the current situation. In contrast to the way we derive an endpoint, here we use `anchor` from the options, if present, as
21576
- // our first choice, and then `deriveAnchor` as our next choice. There is a default `deriveAnchor` implementation that uses TopRight/TopLeft for top and
21577
- // BottomRight/BottomLeft for bottom.
21578
- //
21579
- // edge - "top" or "bottom"
21580
- // index - 0 when endpoint is connection source, 1 when endpoint is connection target
21581
- // ep - the endpoint that is being proxied
21582
- // conn - the connection that is being proxied
21583
- //
21584
- function deriveAnchor(edge, index, ep, conn) {
21585
- return options.anchor ? options.anchor : options.deriveAnchor(edge, index, ep, conn);
21586
- }
21587
-
21588
- //
21589
- // Derive an endpoint to use for the current situation. We'll use a `deriveEndpoint` function passed in to the options as our first choice,
21590
- // followed by `endpoint` (an endpoint spec) from the options, and failing either of those we just use the `type` of the endpoint that is being proxied.
21591
- //
21592
- // edge - "top" or "bottom"
21593
- // index - 0 when endpoint is connection source, 1 when endpoint is connection target
21594
- // endpoint - the endpoint that is being proxied
21595
- // connection - the connection that is being proxied
21596
- //
21597
- function deriveEndpoint(edge, index, ep, conn) {
21598
- return options.deriveEndpoint ? options.deriveEndpoint(edge, index, ep, conn) : options.endpoint ? options.endpoint : ep.type;
21599
- }
21600
-
21601
- //
21602
- // look for a parent of the given scrollable list that is draggable, and then update the child offsets for it. this should not
21603
- // be necessary in the delegated drag stuff from the upcoming 3.0.0 release.
21604
- //
21605
- function _maybeUpdateDraggable(el) {
21606
- var parent = el.parentNode, container = instance.getContainer();
21607
- while(parent != null && parent !== container) {
21608
- if (instance.hasClass(parent, "jtk-managed")) {
21609
- instance.recalculateOffsets(parent);
21610
- return
21611
- }
21612
- parent = parent.parentNode;
21613
- }
21614
- }
21615
-
21616
- var scrollHandler = function(e) {
21617
-
21618
- var children = instance.getSelector(el, ".jtk-managed");
21619
- var elId = instance.getId(el);
21620
-
21621
- for (var i = 0; i < children.length; i++) {
21622
-
21623
- if (children[i].offsetTop < el.scrollTop) {
21624
- if (!children[i]._jsPlumbProxies) {
21625
- children[i]._jsPlumbProxies = children[i]._jsPlumbProxies || [];
21626
- instance.select({source: children[i]}).each(function (c) {
21627
-
21628
-
21629
- instance.proxyConnection(c, 0, el, elId, function () {
21630
- return deriveEndpoint("top", 0, c.endpoints[0], c);
21631
- }, function () {
21632
- return deriveAnchor("top", 0, c.endpoints[0], c);
21633
- });
21634
- children[i]._jsPlumbProxies.push([c, 0]);
21635
- });
21636
-
21637
- instance.select({target: children[i]}).each(function (c) {
21638
- instance.proxyConnection(c, 1, el, elId, function () {
21639
- return deriveEndpoint("top", 1, c.endpoints[1], c);
21640
- }, function () {
21641
- return deriveAnchor("top", 1, c.endpoints[1], c);
21642
- });
21643
- children[i]._jsPlumbProxies.push([c, 1]);
21644
- });
21645
- }
21646
- }
21647
- //
21648
- else if (children[i].offsetTop > el.scrollTop + el.offsetHeight) {
21649
- if (!children[i]._jsPlumbProxies) {
21650
- children[i]._jsPlumbProxies = children[i]._jsPlumbProxies || [];
21651
-
21652
- instance.select({source: children[i]}).each(function (c) {
21653
- instance.proxyConnection(c, 0, el, elId, function () {
21654
- return deriveEndpoint("bottom", 0, c.endpoints[0], c);
21655
- }, function () {
21656
- return deriveAnchor("bottom", 0, c.endpoints[0], c);
21657
- });
21658
- children[i]._jsPlumbProxies.push([c, 0]);
21659
- });
21660
-
21661
- instance.select({target: children[i]}).each(function (c) {
21662
- instance.proxyConnection(c, 1, el, elId, function () {
21663
- return deriveEndpoint("bottom", 1, c.endpoints[1], c);
21664
- }, function () {
21665
- return deriveAnchor("bottom", 1, c.endpoints[1], c);
21666
- });
21667
- children[i]._jsPlumbProxies.push([c, 1]);
21668
- });
21669
- }
21670
- } else if (children[i]._jsPlumbProxies) {
21671
- for (var j = 0; j < children[i]._jsPlumbProxies.length; j++) {
21672
- instance.unproxyConnection(children[i]._jsPlumbProxies[j][0], children[i]._jsPlumbProxies[j][1], elId);
21673
- }
21674
-
21675
- delete children[i]._jsPlumbProxies;
21676
- }
21677
-
21678
- instance.revalidate(children[i]);
21679
- }
21680
-
21681
- _maybeUpdateDraggable(el);
21682
- };
21683
-
21684
- instance.setAttribute(el, "jtk-scrollable-list", "true");
21685
- el._jsPlumbScrollHandler = scrollHandler;
21686
- instance.on(el, "scroll", scrollHandler);
21687
- scrollHandler(); // run it once; there may be connections already.
21688
-
21689
- this.destroy = function() {
21690
- instance.off(el, "scroll", scrollHandler);
21691
- delete el._jsPlumbScrollHandler;
21692
-
21693
- var children = instance.getSelector(el, ".jtk-managed");
21694
- var elId = instance.getId(el);
21695
-
21696
- for (var i = 0; i < children.length; i++) {
21697
- if (children[i]._jsPlumbProxies) {
21698
- for (var j = 0; j < children[i]._jsPlumbProxies.length; j++) {
21699
- instance.unproxyConnection(children[i]._jsPlumbProxies[j][0], children[i]._jsPlumbProxies[j][1], elId);
21700
- }
21701
-
21702
- delete children[i]._jsPlumbProxies;
21703
- }
21704
- }
21705
- };
21706
- };
21707
-
21708
-
21709
- }).call(typeof window !== 'undefined' ? window : this);
21710
21384
  /*
21711
21385
  * This file contains the core code.
21712
21386
  *
@@ -21790,17 +21464,7 @@ module.exports = function isShallowEqual (a, b) {
21790
21464
  if (tid !== "__default") {
21791
21465
  var _t = component._jsPlumb.instance.getType(tid, td);
21792
21466
  if (_t != null) {
21793
-
21794
- var overrides = ["anchor", "anchors", "connector", "paintStyle", "hoverPaintStyle", "endpoint", "endpoints", "connectorOverlays", "connectorStyle", "connectorHoverStyle", "endpointStyle", "endpointHoverStyle"];
21795
- var collations = [ ];
21796
-
21797
- if (_t.mergeStrategy === "override") {
21798
- Array.prototype.push.apply(overrides, ["events", "overlays", "cssClass"]);
21799
- } else {
21800
- collations.push("cssClass");
21801
- }
21802
-
21803
- o = _ju.merge(o, _t, collations, overrides);
21467
+ o = _ju.merge(o, _t, [ "cssClass" ], [ "connector" ]);
21804
21468
  _mapType(map, _t, tid);
21805
21469
  }
21806
21470
  }
@@ -22183,7 +21847,7 @@ module.exports = function isShallowEqual (a, b) {
22183
21847
 
22184
21848
  var jsPlumbInstance = root.jsPlumbInstance = function (_defaults) {
22185
21849
 
22186
- this.version = "2.11.2";
21850
+ this.version = "2.9.2";
22187
21851
 
22188
21852
  this.Defaults = {
22189
21853
  Anchor: "Bottom",
@@ -23647,7 +23311,6 @@ module.exports = function isShallowEqual (a, b) {
23647
23311
 
23648
23312
  managedElements[id].info = _updateOffset({ elId: id, timestamp: _suspendedAt });
23649
23313
  _currentInstance.addClass(element, "jtk-managed");
23650
-
23651
23314
  if (!_transient) {
23652
23315
  _currentInstance.fire("manageElement", { id:id, info:managedElements[id].info, el:element });
23653
23316
  }
@@ -23658,10 +23321,9 @@ module.exports = function isShallowEqual (a, b) {
23658
23321
 
23659
23322
  var _unmanage = _currentInstance.unmanage = function(id) {
23660
23323
  if (managedElements[id]) {
23661
- var el = managedElements[id].el;
23662
- _currentInstance.removeClass(el, "jtk-managed");
23324
+ _currentInstance.removeClass(managedElements[id].el, "jtk-managed");
23663
23325
  delete managedElements[id];
23664
- _currentInstance.fire("unmanageElement", {id:id, el:el});
23326
+ _currentInstance.fire("unmanageElement", id);
23665
23327
  }
23666
23328
  };
23667
23329
 
@@ -24180,7 +23842,7 @@ module.exports = function isShallowEqual (a, b) {
24180
23842
  // the params passed in, because after a connection is established we're going to reset the endpoint
24181
23843
  // to have the anchor we were given.
24182
23844
  var tempEndpointParams = {};
24183
- root.jsPlumb.extend(tempEndpointParams, def.def);
23845
+ root.jsPlumb.extend(tempEndpointParams, p);
24184
23846
  tempEndpointParams.isTemporarySource = true;
24185
23847
  tempEndpointParams.anchor = [ elxy[0], elxy[1] , 0, 0];
24186
23848
  tempEndpointParams.dragOptions = dragOptions;
@@ -24798,8 +24460,6 @@ module.exports = function isShallowEqual (a, b) {
24798
24460
  this.getFloatingConnectionFor = function(id) {
24799
24461
  return floatingConnections[id];
24800
24462
  };
24801
-
24802
- this.listManager = new root.jsPlumbListManager(this);
24803
24463
  };
24804
24464
 
24805
24465
  _ju.extend(root.jsPlumbInstance, _ju.EventGenerator, {
@@ -24890,86 +24550,6 @@ module.exports = function isShallowEqual (a, b) {
24890
24550
  floatingConnections: {},
24891
24551
  getFloatingAnchorIndex: function (jpc) {
24892
24552
  return jpc.endpoints[0].isFloating() ? 0 : jpc.endpoints[1].isFloating() ? 1 : -1;
24893
- },
24894
- proxyConnection :function(connection, index, proxyEl, proxyElId, endpointGenerator, anchorGenerator) {
24895
- var proxyEp,
24896
- originalElementId = connection.endpoints[index].elementId,
24897
- originalEndpoint = connection.endpoints[index];
24898
-
24899
- connection.proxies = connection.proxies || [];
24900
- if(connection.proxies[index]) {
24901
- proxyEp = connection.proxies[index].ep;
24902
- }else {
24903
- proxyEp = this.addEndpoint(proxyEl, {
24904
- endpoint:endpointGenerator(connection, index),
24905
- anchor:anchorGenerator(connection, index),
24906
- parameters:{
24907
- isProxyEndpoint:true
24908
- }
24909
- });
24910
- }
24911
- proxyEp.setDeleteOnEmpty(true);
24912
-
24913
- // for this index, stash proxy info: the new EP, the original EP.
24914
- connection.proxies[index] = { ep:proxyEp, originalEp: originalEndpoint };
24915
-
24916
- // and advise the anchor manager
24917
- if (index === 0) {
24918
- // TODO why are there two differently named methods? Why is there not one method that says "some end of this
24919
- // connection changed (you give the index), and here's the new element and element id."
24920
- this.anchorManager.sourceChanged(originalElementId, proxyElId, connection, proxyEl);
24921
- }
24922
- else {
24923
- this.anchorManager.updateOtherEndpoint(connection.endpoints[0].elementId, originalElementId, proxyElId, connection);
24924
- connection.target = proxyEl;
24925
- connection.targetId = proxyElId;
24926
- }
24927
-
24928
- // detach the original EP from the connection.
24929
- originalEndpoint.detachFromConnection(connection, null, true);
24930
-
24931
- // set the proxy as the new ep
24932
- proxyEp.connections = [ connection ];
24933
- connection.endpoints[index] = proxyEp;
24934
-
24935
- originalEndpoint.setVisible(false);
24936
-
24937
- connection.setVisible(true);
24938
-
24939
- this.revalidate(proxyEl);
24940
- },
24941
- unproxyConnection : function(connection, index, proxyElId) {
24942
- // if connection cleaned up, no proxies, or none for this end of the connection, abort.
24943
- if (connection._jsPlumb == null || connection.proxies == null || connection.proxies[index] == null) {
24944
- return;
24945
- }
24946
-
24947
- var originalElement = connection.proxies[index].originalEp.element,
24948
- originalElementId = connection.proxies[index].originalEp.elementId;
24949
-
24950
- connection.endpoints[index] = connection.proxies[index].originalEp;
24951
- // and advise the anchor manager
24952
- if (index === 0) {
24953
- // TODO why are there two differently named methods? Why is there not one method that says "some end of this
24954
- // connection changed (you give the index), and here's the new element and element id."
24955
- this.anchorManager.sourceChanged(proxyElId, originalElementId, connection, originalElement);
24956
- }
24957
- else {
24958
- this.anchorManager.updateOtherEndpoint(connection.endpoints[0].elementId, proxyElId, originalElementId, connection);
24959
- connection.target = originalElement;
24960
- connection.targetId = originalElementId;
24961
- }
24962
-
24963
- // detach the proxy EP from the connection (which will cause it to be removed as we no longer need it)
24964
- connection.proxies[index].ep.detachFromConnection(connection, null);
24965
-
24966
- connection.proxies[index].originalEp.addConnection(connection);
24967
- if(connection.isVisible()) {
24968
- connection.proxies[index].originalEp.setVisible(true);
24969
- }
24970
-
24971
- // cleanup
24972
- delete connection.proxies[index];
24973
24553
  }
24974
24554
  });
24975
24555
 
@@ -26729,9 +26309,9 @@ module.exports = function isShallowEqual (a, b) {
26729
26309
 
26730
26310
  // INITIALISATION CODE
26731
26311
 
26732
- this.makeEndpoint = function (isSource, el, elId, ep, definition) {
26312
+ this.makeEndpoint = function (isSource, el, elId, ep) {
26733
26313
  elId = elId || this._jsPlumb.instance.getId(el);
26734
- return this.prepareEndpoint(_jsPlumb, _newEndpoint, this, ep, isSource ? 0 : 1, params, el, elId, definition);
26314
+ return this.prepareEndpoint(_jsPlumb, _newEndpoint, this, ep, isSource ? 0 : 1, params, el, elId);
26735
26315
  };
26736
26316
 
26737
26317
  // if type given, get the endpoint definitions mapping to that type from the jsplumb instance, and use those.
@@ -27052,8 +26632,6 @@ module.exports = function isShallowEqual (a, b) {
27052
26632
  this.canvas = this.connector.canvas;
27053
26633
  this.bgCanvas = this.connector.bgCanvas;
27054
26634
 
27055
- this.connector.reattach(this._jsPlumb.instance);
27056
-
27057
26635
  // put classes from prior connector onto the canvas
27058
26636
  this.addClass(previousClasses);
27059
26637
 
@@ -27165,7 +26743,7 @@ module.exports = function isShallowEqual (a, b) {
27165
26743
  p.elId = this.sourceId;
27166
26744
  this.paint(p);
27167
26745
  },
27168
- prepareEndpoint: function (_jsPlumb, _newEndpoint, conn, existing, index, params, element, elementId, definition) {
26746
+ prepareEndpoint: function (_jsPlumb, _newEndpoint, conn, existing, index, params, element, elementId) {
27169
26747
  var e;
27170
26748
  if (existing) {
27171
26749
  conn.endpoints[index] = existing;
@@ -27174,7 +26752,7 @@ module.exports = function isShallowEqual (a, b) {
27174
26752
  if (!params.endpoints) {
27175
26753
  params.endpoints = [ null, null ];
27176
26754
  }
27177
- var ep = definition || params.endpoints[index] || params.endpoint || _jsPlumb.Defaults.Endpoints[index] || _jp.Defaults.Endpoints[index] || _jsPlumb.Defaults.Endpoint || _jp.Defaults.Endpoint;
26755
+ var ep = params.endpoints[index] || params.endpoint || _jsPlumb.Defaults.Endpoints[index] || _jp.Defaults.Endpoints[index] || _jsPlumb.Defaults.Endpoint || _jp.Defaults.Endpoint;
27178
26756
  if (!params.endpointStyles) {
27179
26757
  params.endpointStyles = [ null, null ];
27180
26758
  }
@@ -27229,23 +26807,6 @@ module.exports = function isShallowEqual (a, b) {
27229
26807
 
27230
26808
  }
27231
26809
  return e;
27232
- },
27233
- replaceEndpoint:function(idx, endpointDef) {
27234
-
27235
- var current = this.endpoints[idx],
27236
- elId = current.elementId,
27237
- ebe = this._jsPlumb.instance.getEndpoints(elId),
27238
- _idx = ebe.indexOf(current),
27239
- _new = this.makeEndpoint(idx === 0, current.element, elId, null, endpointDef);
27240
-
27241
- this.endpoints[idx] = _new;
27242
-
27243
- ebe.splice(_idx, 1, _new);
27244
- this._jsPlumb.instance.deleteObject({endpoint:current, deleteAttachedObjects:false});
27245
- this._jsPlumb.instance.fire("endpointReplaced", {previous:current, current:_new});
27246
-
27247
- this._jsPlumb.instance.anchorManager.updateOtherEndpoint(this.endpoints[0].elementId, this.endpoints[1].elementId, this.endpoints[1].elementId, this);
27248
-
27249
26810
  }
27250
26811
 
27251
26812
  }); // END Connection class
@@ -28463,15 +28024,15 @@ module.exports = function isShallowEqual (a, b) {
28463
28024
  },
28464
28025
  _path = function (segments) {
28465
28026
  var anchorsPerFace = anchorCount / segments.length, a = [],
28466
- _computeFace = function (x1, y1, x2, y2, fractionalLength, ox, oy) {
28027
+ _computeFace = function (x1, y1, x2, y2, fractionalLength) {
28467
28028
  anchorsPerFace = anchorCount * fractionalLength;
28468
28029
  var dx = (x2 - x1) / anchorsPerFace, dy = (y2 - y1) / anchorsPerFace;
28469
28030
  for (var i = 0; i < anchorsPerFace; i++) {
28470
28031
  a.push([
28471
28032
  x1 + (dx * i),
28472
28033
  y1 + (dy * i),
28473
- ox == null ? 0 : ox,
28474
- oy == null ? 0 : oy
28034
+ 0,
28035
+ 0
28475
28036
  ]);
28476
28037
  }
28477
28038
  };
@@ -28485,16 +28046,16 @@ module.exports = function isShallowEqual (a, b) {
28485
28046
  _shape = function (faces) {
28486
28047
  var s = [];
28487
28048
  for (var i = 0; i < faces.length; i++) {
28488
- s.push([faces[i][0], faces[i][1], faces[i][2], faces[i][3], 1 / faces.length, faces[i][4], faces[i][5]]);
28049
+ s.push([faces[i][0], faces[i][1], faces[i][2], faces[i][3], 1 / faces.length]);
28489
28050
  }
28490
28051
  return _path(s);
28491
28052
  },
28492
28053
  _rectangle = function () {
28493
28054
  return _shape([
28494
- [ 0, 0, 1, 0, 0, -1 ],
28495
- [ 1, 0, 1, 1, 1, 0 ],
28496
- [ 1, 1, 0, 1, 0, 1 ],
28497
- [ 0, 1, 0, 0, -1, 0 ]
28055
+ [ 0, 0, 1, 0 ],
28056
+ [ 1, 0, 1, 1 ],
28057
+ [ 1, 1, 0, 1 ],
28058
+ [ 0, 1, 0, 0 ]
28498
28059
  ]);
28499
28060
  };
28500
28061
 
@@ -29809,8 +29370,8 @@ module.exports = function isShallowEqual (a, b) {
29809
29370
  this.length = params.length || 20;
29810
29371
  this.width = params.width || 20;
29811
29372
  this.id = params.id;
29812
- this.direction = (params.direction || 1) < 0 ? -1 : 1;
29813
- var paintStyle = params.paintStyle || { "stroke-width": 1 },
29373
+ var direction = (params.direction || 1) < 0 ? -1 : 1,
29374
+ paintStyle = params.paintStyle || { "stroke-width": 1 },
29814
29375
  // how far along the arrow the lines folding back in come to. default is 62.3%.
29815
29376
  foldback = params.foldback || 0.623;
29816
29377
 
@@ -29836,7 +29397,7 @@ module.exports = function isShallowEqual (a, b) {
29836
29397
  var l = parseInt(this.loc, 10),
29837
29398
  fromLoc = this.loc < 0 ? 1 : 0;
29838
29399
  hxy = component.pointAlongPathFrom(fromLoc, l, false);
29839
- mid = component.pointAlongPathFrom(fromLoc, l - (this.direction * this.length / 2), false);
29400
+ mid = component.pointAlongPathFrom(fromLoc, l - (direction * this.length / 2), false);
29840
29401
  txy = _jg.pointOnLine(hxy, mid, this.length);
29841
29402
  }
29842
29403
  else if (this.loc === 1) {
@@ -29844,7 +29405,7 @@ module.exports = function isShallowEqual (a, b) {
29844
29405
  mid = component.pointAlongPathFrom(this.loc, -(this.length));
29845
29406
  txy = _jg.pointOnLine(hxy, mid, this.length);
29846
29407
 
29847
- if (this.direction === -1) {
29408
+ if (direction === -1) {
29848
29409
  var _ = txy;
29849
29410
  txy = hxy;
29850
29411
  hxy = _;
@@ -29854,14 +29415,14 @@ module.exports = function isShallowEqual (a, b) {
29854
29415
  txy = component.pointOnPath(this.loc);
29855
29416
  mid = component.pointAlongPathFrom(this.loc, this.length);
29856
29417
  hxy = _jg.pointOnLine(txy, mid, this.length);
29857
- if (this.direction === -1) {
29418
+ if (direction === -1) {
29858
29419
  var __ = txy;
29859
29420
  txy = hxy;
29860
29421
  hxy = __;
29861
29422
  }
29862
29423
  }
29863
29424
  else {
29864
- hxy = component.pointAlongPathFrom(this.loc, this.direction * this.length / 2);
29425
+ hxy = component.pointAlongPathFrom(this.loc, direction * this.length / 2);
29865
29426
  mid = component.pointOnPath(this.loc);
29866
29427
  txy = _jg.pointOnLine(hxy, mid, this.length);
29867
29428
  }
@@ -30395,11 +29956,11 @@ module.exports = function isShallowEqual (a, b) {
30395
29956
  c.setVisible(false);
30396
29957
  if (c.endpoints[oidx].element._jsPlumbGroup === group) {
30397
29958
  c.endpoints[oidx].setVisible(false);
30398
- _expandConnection(c, oidx, group);
29959
+ self.expandConnection(c, oidx, group);
30399
29960
  }
30400
29961
  else {
30401
29962
  c.endpoints[index].setVisible(false);
30402
- _collapseConnection(c, index, group);
29963
+ self.collapseConnection(c, index, group);
30403
29964
  }
30404
29965
  });
30405
29966
  };
@@ -30423,7 +29984,7 @@ module.exports = function isShallowEqual (a, b) {
30423
29984
  _jsPlumb.revalidate(elId);
30424
29985
 
30425
29986
  if (!doNotFireEvent) {
30426
- var p = {group: group, el: el, pos:newPosition};
29987
+ var p = {group: group, el: el};
30427
29988
  if (currentGroup) {
30428
29989
  p.sourceGroup = currentGroup;
30429
29990
  }
@@ -30483,16 +30044,54 @@ module.exports = function isShallowEqual (a, b) {
30483
30044
  }
30484
30045
  }
30485
30046
 
30486
- var _collapseConnection = function(c, index, group) {
30047
+ var _collapseConnection = this.collapseConnection = function(c, index, group) {
30048
+
30049
+ var proxyEp, groupEl = group.getEl(), groupElId = _jsPlumb.getId(groupEl),
30050
+ originalElementId = c.endpoints[index].elementId;
30487
30051
 
30488
30052
  var otherEl = c.endpoints[index === 0 ? 1 : 0].element;
30489
30053
  if (otherEl[GROUP] && (!otherEl[GROUP].shouldProxy() && otherEl[GROUP].collapsed)) {
30490
30054
  return;
30491
30055
  }
30492
30056
 
30493
- var groupEl = group.getEl(), groupElId = _jsPlumb.getId(groupEl);
30057
+ c.proxies = c.proxies || [];
30058
+ if(c.proxies[index]) {
30059
+ proxyEp = c.proxies[index].ep;
30060
+ }else {
30061
+ proxyEp = _jsPlumb.addEndpoint(groupEl, {
30062
+ endpoint:group.getEndpoint(c, index),
30063
+ anchor:group.getAnchor(c, index),
30064
+ parameters:{
30065
+ isProxyEndpoint:true
30066
+ }
30067
+ });
30068
+ }
30069
+ proxyEp.setDeleteOnEmpty(true);
30070
+
30071
+ // for this index, stash proxy info: the new EP, the original EP.
30072
+ c.proxies[index] = { ep:proxyEp, originalEp: c.endpoints[index] };
30073
+
30074
+ // and advise the anchor manager
30075
+ if (index === 0) {
30076
+ // TODO why are there two differently named methods? Why is there not one method that says "some end of this
30077
+ // connection changed (you give the index), and here's the new element and element id."
30078
+ _jsPlumb.anchorManager.sourceChanged(originalElementId, groupElId, c, groupEl);
30079
+ }
30080
+ else {
30081
+ _jsPlumb.anchorManager.updateOtherEndpoint(c.endpoints[0].elementId, originalElementId, groupElId, c);
30082
+ c.target = groupEl;
30083
+ c.targetId = groupElId;
30084
+ }
30494
30085
 
30495
- _jsPlumb.proxyConnection(c, index, groupEl, groupElId, function(c, index) { return group.getEndpoint(c, index); }, function(c, index) { return group.getAnchor(c, index); });
30086
+
30087
+ // detach the original EP from the connection.
30088
+ c.proxies[index].originalEp.detachFromConnection(c, null, true);
30089
+
30090
+ // set the proxy as the new ep
30091
+ proxyEp.connections = [ c ];
30092
+ c.endpoints[index] = proxyEp;
30093
+
30094
+ c.setVisible(true);
30496
30095
  };
30497
30096
 
30498
30097
  this.collapseGroup = function(group) {
@@ -30529,8 +30128,37 @@ module.exports = function isShallowEqual (a, b) {
30529
30128
  _jsPlumb.fire(EVT_COLLAPSE, { group:group });
30530
30129
  };
30531
30130
 
30532
- var _expandConnection = function(c, index, group) {
30533
- _jsPlumb.unproxyConnection(c, index, _jsPlumb.getId(group.getEl()));
30131
+ var _expandConnection = this.expandConnection = function(c, index, group) {
30132
+
30133
+ // if no proxies or none for this end of the connection, abort.
30134
+ if (c.proxies == null || c.proxies[index] == null) {
30135
+ return;
30136
+ }
30137
+
30138
+ var groupElId = _jsPlumb.getId(group.getEl()),
30139
+ originalElement = c.proxies[index].originalEp.element,
30140
+ originalElementId = c.proxies[index].originalEp.elementId;
30141
+
30142
+ c.endpoints[index] = c.proxies[index].originalEp;
30143
+ // and advise the anchor manager
30144
+ if (index === 0) {
30145
+ // TODO why are there two differently named methods? Why is there not one method that says "some end of this
30146
+ // connection changed (you give the index), and here's the new element and element id."
30147
+ _jsPlumb.anchorManager.sourceChanged(groupElId, originalElementId, c, originalElement);
30148
+ }
30149
+ else {
30150
+ _jsPlumb.anchorManager.updateOtherEndpoint(c.endpoints[0].elementId, groupElId, originalElementId, c);
30151
+ c.target = originalElement;
30152
+ c.targetId = originalElementId;
30153
+ }
30154
+
30155
+ // detach the proxy EP from the connection (which will cause it to be removed as we no longer need it)
30156
+ c.proxies[index].ep.detachFromConnection(c, null);
30157
+
30158
+ c.proxies[index].originalEp.addConnection(c);
30159
+
30160
+ // cleanup
30161
+ delete c.proxies[index];
30534
30162
  };
30535
30163
 
30536
30164
  this.expandGroup = function(group, doNotFireEvent) {
@@ -33180,30 +32808,6 @@ module.exports = function isShallowEqual (a, b) {
33180
32808
  }.bind(this));
33181
32809
  return this;
33182
32810
  },
33183
- snapToGrid : function(el, x, y) {
33184
- var out = [];
33185
- var _oneEl = function(_el) {
33186
- var info = this.info(_el);
33187
- if (info.el != null && info.el._katavorioDrag) {
33188
- var snapped = info.el._katavorioDrag.snap(x, y);
33189
- this.revalidate(info.el);
33190
- out.push([info.el, snapped]);
33191
- }
33192
- }.bind(this);
33193
-
33194
- // if you call this method with 0 arguments or 2 arguments it is assumed you want to snap all managed elements to
33195
- // a grid. if you supply one argument or 3, then you are assumed to be specifying one element.
33196
- if(arguments.length === 1 || arguments.length === 3) {
33197
- _oneEl(el, x, y);
33198
- } else {
33199
- var _me = this.getManagedElements();
33200
- for (var mel in _me) {
33201
- _oneEl(mel, arguments[0], arguments[1]);
33202
- }
33203
- }
33204
-
33205
- return out;
33206
- },
33207
32811
  initDraggable: function (el, options, category) {
33208
32812
  _getDragManager(this, category).draggable(el, options);
33209
32813
  el._jsPlumbDragOptions = options;
@@ -67244,7 +66848,7 @@ let getFileExt = filename => {
67244
66848
  /* harmony import */ var _util_mathUtils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(9548);
67245
66849
  /* harmony import */ var _util_util__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(4063);
67246
66850
  /* harmony import */ var _layoutItem__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(1482);
67247
- /* harmony import */ var _components_index__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(6020);
66851
+ /* harmony import */ var _components_index__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(6801);
67248
66852
  /* harmony import */ var pubsub_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(1528);
67249
66853
  /* harmony import */ var pubsub_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(pubsub_js__WEBPACK_IMPORTED_MODULE_9__);
67250
66854
  /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(9274);
@@ -69159,7 +68763,7 @@ __webpack_require__.r(__webpack_exports__);
69159
68763
  if (typeof exports === 'object' && "object" === 'object')
69160
68764
  // CommonJS
69161
68765
  {
69162
- mod(__webpack_require__(4125));
68766
+ mod(__webpack_require__(6386));
69163
68767
  } else if (typeof define === 'function' && __webpack_require__.amdO)
69164
68768
  // AMD
69165
68769
  {
@@ -69331,7 +68935,7 @@ __webpack_require__.r(__webpack_exports__);
69331
68935
  if (true)
69332
68936
  // CommonJS
69333
68937
  {
69334
- mod(__webpack_require__(4125));
68938
+ mod(__webpack_require__(6386));
69335
68939
  } else {}
69336
68940
  })(function (CodeMirror) {
69337
68941
  'use strict';
@@ -70389,7 +69993,7 @@ module.exports = {
70389
69993
 
70390
69994
  /***/ }),
70391
69995
 
70392
- /***/ 6020:
69996
+ /***/ 6801:
70393
69997
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
70394
69998
 
70395
69999
  "use strict";
@@ -71223,8 +70827,8 @@ var JEllipsis_component = (0,componentNormalizer/* default */.A)(
71223
70827
  /* harmony default export */ const JEllipsis = (JEllipsis_component.exports);
71224
70828
  // EXTERNAL MODULE: ./node_modules/_vue-codemirror@4.0.6@vue-codemirror/dist/vue-codemirror.js
71225
70829
  var vue_codemirror = __webpack_require__(9366);
71226
- // EXTERNAL MODULE: ./node_modules/_codemirror@5.65.16@codemirror/addon/selection/active-line.js
71227
- var active_line = __webpack_require__(3084);
70830
+ // EXTERNAL MODULE: ./node_modules/_codemirror@5.65.17@codemirror/addon/selection/active-line.js
70831
+ var active_line = __webpack_require__(4157);
71228
70832
  ;// CONCATENATED MODULE: ./node_modules/_thread-loader@3.0.4@thread-loader/dist/cjs.js!./node_modules/_babel-loader@8.3.0@babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/common/Modals/relateSubModal.vue?vue&type=script&lang=js
71229
70833
 
71230
70834
 
@@ -71370,7 +70974,7 @@ var active_line = __webpack_require__(3084);
71370
70974
 
71371
70975
 
71372
70976
  // language js
71373
- __webpack_require__(2864);
70977
+ __webpack_require__(4275);
71374
70978
  // theme css
71375
70979
  //光标行
71376
70980
  /* harmony default export */ const relateSubModalvue_type_script_lang_js = ({
@@ -82969,8 +82573,8 @@ var widgetSetupvue_type_template_id_b139f2ac_scoped_true_render = function () {v
82969
82573
  var widgetSetupvue_type_template_id_b139f2ac_scoped_true_staticRenderFns = []
82970
82574
 
82971
82575
 
82972
- // EXTERNAL MODULE: ./node_modules/_codemirror@5.65.16@codemirror/mode/javascript/javascript.js
82973
- var javascript = __webpack_require__(2864);
82576
+ // EXTERNAL MODULE: ./node_modules/_codemirror@5.65.17@codemirror/mode/javascript/javascript.js
82577
+ var javascript = __webpack_require__(4275);
82974
82578
  ;// CONCATENATED MODULE: ./node_modules/_thread-loader@3.0.4@thread-loader/dist/cjs.js!./node_modules/_babel-loader@8.3.0@babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/components/CodeControl/widgetSetup.vue?vue&type=script&lang=js
82975
82579
  //
82976
82580
  //
@@ -87370,8 +86974,8 @@ var web_url_search_params_delete = __webpack_require__(867);
87370
86974
  var web_url_search_params_has = __webpack_require__(5510);
87371
86975
  // EXTERNAL MODULE: ./node_modules/_core-js@3.37.1@core-js/modules/web.url-search-params.size.js
87372
86976
  var web_url_search_params_size = __webpack_require__(2137);
87373
- ;// CONCATENATED MODULE: ./node_modules/_preact@10.22.0@preact/dist/preact.module.js
87374
- var n,l,u,t,i,o,r,f,e,c,s,a,h={},p=[],v=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,y=Array.isArray;function d(n,l){for(var u in l)n[u]=l[u];return n}function w(n){var l=n.parentNode;l&&l.removeChild(n)}function _(l,u,t){var i,o,r,f={};for(r in u)"key"==r?i=u[r]:"ref"==r?o=u[r]:f[r]=u[r];if(arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):t),"function"==typeof l&&null!=l.defaultProps)for(r in l.defaultProps)void 0===f[r]&&(f[r]=l.defaultProps[r]);return g(l,f,i,o,null)}function g(n,t,i,o,r){var f={type:n,props:t,key:i,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==r?++u:r,__i:-1,__u:0};return null==r&&null!=l.vnode&&l.vnode(f),f}function m(){return{current:null}}function k(n){return n.children}function b(n,l){this.props=n,this.context=l}function x(n,l){if(null==l)return n.__?x(n.__,n.__i+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return"function"==typeof n.type?x(n):null}function C(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=n.__c.base=u.__e;break}return C(n)}}function M(n){(!n.__d&&(n.__d=!0)&&i.push(n)&&!P.__r++||o!==l.debounceRendering)&&((o=l.debounceRendering)||r)(P)}function P(){var n,u,t,o,r,e,c,s;for(i.sort(f);n=i.shift();)n.__d&&(u=i.length,o=void 0,e=(r=(t=n).__v).__e,c=[],s=[],t.__P&&((o=d({},r)).__v=r.__v+1,l.vnode&&l.vnode(o),O(t.__P,o,r,t.__n,t.__P.namespaceURI,32&r.__u?[e]:null,c,null==e?x(r):e,!!(32&r.__u),s),o.__v=r.__v,o.__.__k[o.__i]=o,j(c,o,s),o.__e!=e&&C(o)),i.length>u&&i.sort(f));P.__r=0}function S(n,l,u,t,i,o,r,f,e,c,s){var a,v,y,d,w,_=t&&t.__k||p,g=l.length;for(u.__d=e,$(u,l,_),e=u.__d,a=0;a<g;a++)null!=(y=u.__k[a])&&"boolean"!=typeof y&&"function"!=typeof y&&(v=-1===y.__i?h:_[y.__i]||h,y.__i=a,O(n,y,v,i,o,r,f,e,c,s),d=y.__e,y.ref&&v.ref!=y.ref&&(v.ref&&N(v.ref,null,y),s.push(y.ref,y.__c||d,y)),null==w&&null!=d&&(w=d),65536&y.__u||v.__k===y.__k?(e&&!e.isConnected&&(e=x(v)),e=I(y,e,n)):"function"==typeof y.type&&void 0!==y.__d?e=y.__d:d&&(e=d.nextSibling),y.__d=void 0,y.__u&=-196609);u.__d=e,u.__e=w}function $(n,l,u){var t,i,o,r,f,e=l.length,c=u.length,s=c,a=0;for(n.__k=[],t=0;t<e;t++)r=t+a,null!=(i=n.__k[t]=null==(i=l[t])||"boolean"==typeof i||"function"==typeof i?null:"string"==typeof i||"number"==typeof i||"bigint"==typeof i||i.constructor==String?g(null,i,null,null,null):y(i)?g(k,{children:i},null,null,null):void 0===i.constructor&&i.__b>0?g(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i)?(i.__=n,i.__b=n.__b+1,f=L(i,u,r,s),i.__i=f,o=null,-1!==f&&(s--,(o=u[f])&&(o.__u|=131072)),null==o||null===o.__v?(-1==f&&a--,"function"!=typeof i.type&&(i.__u|=65536)):f!==r&&(f===r+1?a++:f>r?s>e-r?a+=f-r:a--:f<r?f==r-1&&(a=f-r):a=0,f!==t+a&&(i.__u|=65536))):(o=u[r])&&null==o.key&&o.__e&&0==(131072&o.__u)&&(o.__e==n.__d&&(n.__d=x(o)),V(o,o,!1),u[r]=null,s--);if(s)for(t=0;t<c;t++)null!=(o=u[t])&&0==(131072&o.__u)&&(o.__e==n.__d&&(n.__d=x(o)),V(o,o))}function I(n,l,u){var t,i;if("function"==typeof n.type){for(t=n.__k,i=0;t&&i<t.length;i++)t[i]&&(t[i].__=n,l=I(t[i],l,u));return l}n.__e!=l&&(u.insertBefore(n.__e,l||null),l=n.__e);do{l=l&&l.nextSibling}while(null!=l&&8===l.nodeType);return l}function H(n,l){return l=l||[],null==n||"boolean"==typeof n||(y(n)?n.some(function(n){H(n,l)}):l.push(n)),l}function L(n,l,u,t){var i=n.key,o=n.type,r=u-1,f=u+1,e=l[u];if(null===e||e&&i==e.key&&o===e.type&&0==(131072&e.__u))return u;if(t>(null!=e&&0==(131072&e.__u)?1:0))for(;r>=0||f<l.length;){if(r>=0){if((e=l[r])&&0==(131072&e.__u)&&i==e.key&&o===e.type)return r;r--}if(f<l.length){if((e=l[f])&&0==(131072&e.__u)&&i==e.key&&o===e.type)return f;f++}}return-1}function T(n,l,u){"-"===l[0]?n.setProperty(l,null==u?"":u):n[l]=null==u?"":"number"!=typeof u||v.test(l)?u:u+"px"}function A(n,l,u,t,i){var o;n:if("style"===l)if("string"==typeof u)n.style.cssText=u;else{if("string"==typeof t&&(n.style.cssText=t=""),t)for(l in t)u&&l in u||T(n.style,l,"");if(u)for(l in u)t&&u[l]===t[l]||T(n.style,l,u[l])}else if("o"===l[0]&&"n"===l[1])o=l!==(l=l.replace(/(PointerCapture)$|Capture$/i,"$1")),l=l.toLowerCase()in n||"onFocusOut"===l||"onFocusIn"===l?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+o]=u,u?t?u.u=t.u:(u.u=e,n.addEventListener(l,o?s:c,o)):n.removeEventListener(l,o?s:c,o);else{if("http://www.w3.org/2000/svg"==i)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=l&&"height"!=l&&"href"!=l&&"list"!=l&&"form"!=l&&"tabIndex"!=l&&"download"!=l&&"rowSpan"!=l&&"colSpan"!=l&&"role"!=l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null==u||!1===u&&"-"!==l[4]?n.removeAttribute(l):n.setAttribute(l,u))}}function F(n){return function(u){if(this.l){var t=this.l[u.type+n];if(null==u.t)u.t=e++;else if(u.t<t.u)return;return t(l.event?l.event(u):u)}}}function O(n,u,t,i,o,r,f,e,c,s){var a,h,p,v,w,_,g,m,x,C,M,P,$,I,H,L=u.type;if(void 0!==u.constructor)return null;128&t.__u&&(c=!!(32&t.__u),r=[e=u.__e=t.__e]),(a=l.__b)&&a(u);n:if("function"==typeof L)try{if(m=u.props,x=(a=L.contextType)&&i[a.__c],C=a?x?x.props.value:a.__:i,t.__c?g=(h=u.__c=t.__c).__=h.__E:("prototype"in L&&L.prototype.render?u.__c=h=new L(m,C):(u.__c=h=new b(m,C),h.constructor=L,h.render=q),x&&x.sub(h),h.props=m,h.state||(h.state={}),h.context=C,h.__n=i,p=h.__d=!0,h.__h=[],h._sb=[]),null==h.__s&&(h.__s=h.state),null!=L.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=d({},h.__s)),d(h.__s,L.getDerivedStateFromProps(m,h.__s))),v=h.props,w=h.state,h.__v=u,p)null==L.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(null==L.getDerivedStateFromProps&&m!==v&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(m,C),!h.__e&&(null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(m,h.__s,C)||u.__v===t.__v)){for(u.__v!==t.__v&&(h.props=m,h.state=h.__s,h.__d=!1),u.__e=t.__e,u.__k=t.__k,u.__k.forEach(function(n){n&&(n.__=u)}),M=0;M<h._sb.length;M++)h.__h.push(h._sb[M]);h._sb=[],h.__h.length&&f.push(h);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(m,h.__s,C),null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(v,w,_)})}if(h.context=C,h.props=m,h.__P=n,h.__e=!1,P=l.__r,$=0,"prototype"in L&&L.prototype.render){for(h.state=h.__s,h.__d=!1,P&&P(u),a=h.render(h.props,h.state,h.context),I=0;I<h._sb.length;I++)h.__h.push(h._sb[I]);h._sb=[]}else do{h.__d=!1,P&&P(u),a=h.render(h.props,h.state,h.context),h.state=h.__s}while(h.__d&&++$<25);h.state=h.__s,null!=h.getChildContext&&(i=d(d({},i),h.getChildContext())),p||null==h.getSnapshotBeforeUpdate||(_=h.getSnapshotBeforeUpdate(v,w)),S(n,y(H=null!=a&&a.type===k&&null==a.key?a.props.children:a)?H:[H],u,t,i,o,r,f,e,c,s),h.base=u.__e,u.__u&=-161,h.__h.length&&f.push(h),g&&(h.__E=h.__=null)}catch(n){u.__v=null,c||null!=r?(u.__e=e,u.__u|=c?160:32,r[r.indexOf(e)]=null):(u.__e=t.__e,u.__k=t.__k),l.__e(n,u,t)}else null==r&&u.__v===t.__v?(u.__k=t.__k,u.__e=t.__e):u.__e=z(t.__e,u,t,i,o,r,f,c,s);(a=l.diffed)&&a(u)}function j(n,u,t){u.__d=void 0;for(var i=0;i<t.length;i++)N(t[i],t[++i],t[++i]);l.__c&&l.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u)})}catch(n){l.__e(n,u.__v)}})}function z(l,u,t,i,o,r,f,e,c){var s,a,p,v,d,_,g,m=t.props,k=u.props,b=u.type;if("svg"===b?o="http://www.w3.org/2000/svg":"math"===b?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),null!=r)for(s=0;s<r.length;s++)if((d=r[s])&&"setAttribute"in d==!!b&&(b?d.localName===b:3===d.nodeType)){l=d,r[s]=null;break}if(null==l){if(null===b)return document.createTextNode(k);l=document.createElementNS(o,b,k.is&&k),r=null,e=!1}if(null===b)m===k||e&&l.data===k||(l.data=k);else{if(r=r&&n.call(l.childNodes),m=t.props||h,!e&&null!=r)for(m={},s=0;s<l.attributes.length;s++)m[(d=l.attributes[s]).name]=d.value;for(s in m)if(d=m[s],"children"==s);else if("dangerouslySetInnerHTML"==s)p=d;else if("key"!==s&&!(s in k)){if("value"==s&&"defaultValue"in k||"checked"==s&&"defaultChecked"in k)continue;A(l,s,null,d,o)}for(s in k)d=k[s],"children"==s?v=d:"dangerouslySetInnerHTML"==s?a=d:"value"==s?_=d:"checked"==s?g=d:"key"===s||e&&"function"!=typeof d||m[s]===d||A(l,s,d,m[s],o);if(a)e||p&&(a.__html===p.__html||a.__html===l.innerHTML)||(l.innerHTML=a.__html),u.__k=[];else if(p&&(l.innerHTML=""),S(l,y(v)?v:[v],u,t,i,"foreignObject"===b?"http://www.w3.org/1999/xhtml":o,r,f,r?r[0]:t.__k&&x(t,0),e,c),null!=r)for(s=r.length;s--;)null!=r[s]&&w(r[s]);e||(s="value",void 0!==_&&(_!==l[s]||"progress"===b&&!_||"option"===b&&_!==m[s])&&A(l,s,_,m[s],o),s="checked",void 0!==g&&g!==l[s]&&A(l,s,g,m[s],o))}return l}function N(n,u,t){try{"function"==typeof n?n(u):n.current=u}catch(n){l.__e(n,t)}}function V(n,u,t){var i,o;if(l.unmount&&l.unmount(n),(i=n.ref)&&(i.current&&i.current!==n.__e||N(i,null,u)),null!=(i=n.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(n){l.__e(n,u)}i.base=i.__P=null}if(i=n.__k)for(o=0;o<i.length;o++)i[o]&&V(i[o],u,t||"function"!=typeof n.type);t||null==n.__e||w(n.__e),n.__c=n.__=n.__e=n.__d=void 0}function q(n,l,u){return this.constructor(n,u)}function B(u,t,i){var o,r,f,e;l.__&&l.__(u,t),r=(o="function"==typeof i)?null:i&&i.__k||t.__k,f=[],e=[],O(t,u=(!o&&i||t).__k=_(k,null,[u]),r||h,h,t.namespaceURI,!o&&i?[i]:r?null:t.firstChild?n.call(t.childNodes):null,f,!o&&i?i:r?r.__e:t.firstChild,o,e),j(f,u,e)}function D(n,l){B(n,l,D)}function E(l,u,t){var i,o,r,f,e=d({},l.props);for(r in l.type&&l.type.defaultProps&&(f=l.type.defaultProps),u)"key"==r?i=u[r]:"ref"==r?o=u[r]:e[r]=void 0===u[r]&&void 0!==f?f[r]:u[r];return arguments.length>2&&(e.children=arguments.length>3?n.call(arguments,2):t),g(l.type,e,i||l.key,o||l.ref,null)}function G(n,l){var u={__c:l="__cC"+a++,__:n,Consumer:function(n,l){return n.children(l)},Provider:function(n){var u,t;return this.getChildContext||(u=[],(t={})[l]=this,this.getChildContext=function(){return t},this.shouldComponentUpdate=function(n){this.props.value!==n.value&&u.some(function(n){n.__e=!0,M(n)})},this.sub=function(n){u.push(n);var l=n.componentWillUnmount;n.componentWillUnmount=function(){u.splice(u.indexOf(n),1),l&&l.call(n)}}),n.children}};return u.Provider.__=u.Consumer.contextType=u}n=p.slice,l={__e:function(n,l,u,t){for(var i,o,r;l=l.__;)if((i=l.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(n)),r=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(n,t||{}),r=i.__d),r)return i.__E=i}catch(l){n=l}throw n}},u=0,t=function(n){return null!=n&&null==n.constructor},b.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=d({},this.state),"function"==typeof n&&(n=n(d({},u),this.props)),n&&d(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),M(this))},b.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),M(this))},b.prototype.render=k,i=[],r="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,f=function(n,l){return n.__v.__b-l.__v.__b},P.__r=0,e=0,c=F(!1),s=F(!0),a=0;
86977
+ ;// CONCATENATED MODULE: ./node_modules/_preact@10.23.1@preact/dist/preact.module.js
86978
+ var n,l,u,t,i,o,r,f,e,c,s,a,h={},p=[],v=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,y=Array.isArray;function d(n,l){for(var u in l)n[u]=l[u];return n}function w(n){var l=n.parentNode;l&&l.removeChild(n)}function _(l,u,t){var i,o,r,f={};for(r in u)"key"==r?i=u[r]:"ref"==r?o=u[r]:f[r]=u[r];if(arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):t),"function"==typeof l&&null!=l.defaultProps)for(r in l.defaultProps)void 0===f[r]&&(f[r]=l.defaultProps[r]);return g(l,f,i,o,null)}function g(n,t,i,o,r){var f={type:n,props:t,key:i,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==r?++u:r,__i:-1,__u:0};return null==r&&null!=l.vnode&&l.vnode(f),f}function m(){return{current:null}}function k(n){return n.children}function b(n,l){this.props=n,this.context=l}function x(n,l){if(null==l)return n.__?x(n.__,n.__i+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return"function"==typeof n.type?x(n):null}function C(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=n.__c.base=u.__e;break}return C(n)}}function M(n){(!n.__d&&(n.__d=!0)&&i.push(n)&&!P.__r++||o!==l.debounceRendering)&&((o=l.debounceRendering)||r)(P)}function P(){var n,u,t,o,r,e,c,s;for(i.sort(f);n=i.shift();)n.__d&&(u=i.length,o=void 0,e=(r=(t=n).__v).__e,c=[],s=[],t.__P&&((o=d({},r)).__v=r.__v+1,l.vnode&&l.vnode(o),O(t.__P,o,r,t.__n,t.__P.namespaceURI,32&r.__u?[e]:null,c,null==e?x(r):e,!!(32&r.__u),s),o.__v=r.__v,o.__.__k[o.__i]=o,j(c,o,s),o.__e!=e&&C(o)),i.length>u&&i.sort(f));P.__r=0}function S(n,l,u,t,i,o,r,f,e,c,s){var a,v,y,d,w,_=t&&t.__k||p,g=l.length;for(u.__d=e,$(u,l,_),e=u.__d,a=0;a<g;a++)null!=(y=u.__k[a])&&"boolean"!=typeof y&&"function"!=typeof y&&(v=-1===y.__i?h:_[y.__i]||h,y.__i=a,O(n,y,v,i,o,r,f,e,c,s),d=y.__e,y.ref&&v.ref!=y.ref&&(v.ref&&N(v.ref,null,y),s.push(y.ref,y.__c||d,y)),null==w&&null!=d&&(w=d),65536&y.__u||v.__k===y.__k?e=I(y,e,n):"function"==typeof y.type&&void 0!==y.__d?e=y.__d:d&&(e=d.nextSibling),y.__d=void 0,y.__u&=-196609);u.__d=e,u.__e=w}function $(n,l,u){var t,i,o,r,f,e=l.length,c=u.length,s=c,a=0;for(n.__k=[],t=0;t<e;t++)r=t+a,null!=(i=n.__k[t]=null==(i=l[t])||"boolean"==typeof i||"function"==typeof i?null:"string"==typeof i||"number"==typeof i||"bigint"==typeof i||i.constructor==String?g(null,i,null,null,null):y(i)?g(k,{children:i},null,null,null):void 0===i.constructor&&i.__b>0?g(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i)?(i.__=n,i.__b=n.__b+1,f=L(i,u,r,s),i.__i=f,o=null,-1!==f&&(s--,(o=u[f])&&(o.__u|=131072)),null==o||null===o.__v?(-1==f&&a--,"function"!=typeof i.type&&(i.__u|=65536)):f!==r&&(f==r-1?a=f-r:f==r+1?a++:f>r?s>e-r?a+=f-r:a--:f<r&&a++,f!==t+a&&(i.__u|=65536))):(o=u[r])&&null==o.key&&o.__e&&0==(131072&o.__u)&&(o.__e==n.__d&&(n.__d=x(o)),V(o,o,!1),u[r]=null,s--);if(s)for(t=0;t<c;t++)null!=(o=u[t])&&0==(131072&o.__u)&&(o.__e==n.__d&&(n.__d=x(o)),V(o,o))}function I(n,l,u){var t,i;if("function"==typeof n.type){for(t=n.__k,i=0;t&&i<t.length;i++)t[i]&&(t[i].__=n,l=I(t[i],l,u));return l}n.__e!=l&&(l&&n.type&&!u.contains(l)&&(l=x(n)),u.insertBefore(n.__e,l||null),l=n.__e);do{l=l&&l.nextSibling}while(null!=l&&8===l.nodeType);return l}function H(n,l){return l=l||[],null==n||"boolean"==typeof n||(y(n)?n.some(function(n){H(n,l)}):l.push(n)),l}function L(n,l,u,t){var i=n.key,o=n.type,r=u-1,f=u+1,e=l[u];if(null===e||e&&i==e.key&&o===e.type&&0==(131072&e.__u))return u;if(t>(null!=e&&0==(131072&e.__u)?1:0))for(;r>=0||f<l.length;){if(r>=0){if((e=l[r])&&0==(131072&e.__u)&&i==e.key&&o===e.type)return r;r--}if(f<l.length){if((e=l[f])&&0==(131072&e.__u)&&i==e.key&&o===e.type)return f;f++}}return-1}function T(n,l,u){"-"===l[0]?n.setProperty(l,null==u?"":u):n[l]=null==u?"":"number"!=typeof u||v.test(l)?u:u+"px"}function A(n,l,u,t,i){var o;n:if("style"===l)if("string"==typeof u)n.style.cssText=u;else{if("string"==typeof t&&(n.style.cssText=t=""),t)for(l in t)u&&l in u||T(n.style,l,"");if(u)for(l in u)t&&u[l]===t[l]||T(n.style,l,u[l])}else if("o"===l[0]&&"n"===l[1])o=l!==(l=l.replace(/(PointerCapture)$|Capture$/i,"$1")),l=l.toLowerCase()in n||"onFocusOut"===l||"onFocusIn"===l?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+o]=u,u?t?u.u=t.u:(u.u=e,n.addEventListener(l,o?s:c,o)):n.removeEventListener(l,o?s:c,o);else{if("http://www.w3.org/2000/svg"==i)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=l&&"height"!=l&&"href"!=l&&"list"!=l&&"form"!=l&&"tabIndex"!=l&&"download"!=l&&"rowSpan"!=l&&"colSpan"!=l&&"role"!=l&&"popover"!=l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null==u||!1===u&&"-"!==l[4]?n.removeAttribute(l):n.setAttribute(l,"popover"==l&&1==u?"":u))}}function F(n){return function(u){if(this.l){var t=this.l[u.type+n];if(null==u.t)u.t=e++;else if(u.t<t.u)return;return t(l.event?l.event(u):u)}}}function O(n,u,t,i,o,r,f,e,c,s){var a,h,p,v,w,_,g,m,x,C,M,P,$,I,H,L,T=u.type;if(void 0!==u.constructor)return null;128&t.__u&&(c=!!(32&t.__u),r=[e=u.__e=t.__e]),(a=l.__b)&&a(u);n:if("function"==typeof T)try{if(m=u.props,x="prototype"in T&&T.prototype.render,C=(a=T.contextType)&&i[a.__c],M=a?C?C.props.value:a.__:i,t.__c?g=(h=u.__c=t.__c).__=h.__E:(x?u.__c=h=new T(m,M):(u.__c=h=new b(m,M),h.constructor=T,h.render=q),C&&C.sub(h),h.props=m,h.state||(h.state={}),h.context=M,h.__n=i,p=h.__d=!0,h.__h=[],h._sb=[]),x&&null==h.__s&&(h.__s=h.state),x&&null!=T.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=d({},h.__s)),d(h.__s,T.getDerivedStateFromProps(m,h.__s))),v=h.props,w=h.state,h.__v=u,p)x&&null==T.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),x&&null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(x&&null==T.getDerivedStateFromProps&&m!==v&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(m,M),!h.__e&&(null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(m,h.__s,M)||u.__v===t.__v)){for(u.__v!==t.__v&&(h.props=m,h.state=h.__s,h.__d=!1),u.__e=t.__e,u.__k=t.__k,u.__k.forEach(function(n){n&&(n.__=u)}),P=0;P<h._sb.length;P++)h.__h.push(h._sb[P]);h._sb=[],h.__h.length&&f.push(h);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(m,h.__s,M),x&&null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(v,w,_)})}if(h.context=M,h.props=m,h.__P=n,h.__e=!1,$=l.__r,I=0,x){for(h.state=h.__s,h.__d=!1,$&&$(u),a=h.render(h.props,h.state,h.context),H=0;H<h._sb.length;H++)h.__h.push(h._sb[H]);h._sb=[]}else do{h.__d=!1,$&&$(u),a=h.render(h.props,h.state,h.context),h.state=h.__s}while(h.__d&&++I<25);h.state=h.__s,null!=h.getChildContext&&(i=d(d({},i),h.getChildContext())),x&&!p&&null!=h.getSnapshotBeforeUpdate&&(_=h.getSnapshotBeforeUpdate(v,w)),S(n,y(L=null!=a&&a.type===k&&null==a.key?a.props.children:a)?L:[L],u,t,i,o,r,f,e,c,s),h.base=u.__e,u.__u&=-161,h.__h.length&&f.push(h),g&&(h.__E=h.__=null)}catch(n){if(u.__v=null,c||null!=r){for(u.__u|=c?160:32;e&&8===e.nodeType&&e.nextSibling;)e=e.nextSibling;r[r.indexOf(e)]=null,u.__e=e}else u.__e=t.__e,u.__k=t.__k;l.__e(n,u,t)}else null==r&&u.__v===t.__v?(u.__k=t.__k,u.__e=t.__e):u.__e=z(t.__e,u,t,i,o,r,f,c,s);(a=l.diffed)&&a(u)}function j(n,u,t){u.__d=void 0;for(var i=0;i<t.length;i++)N(t[i],t[++i],t[++i]);l.__c&&l.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u)})}catch(n){l.__e(n,u.__v)}})}function z(l,u,t,i,o,r,f,e,c){var s,a,p,v,d,_,g,m=t.props,k=u.props,b=u.type;if("svg"===b?o="http://www.w3.org/2000/svg":"math"===b?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),null!=r)for(s=0;s<r.length;s++)if((d=r[s])&&"setAttribute"in d==!!b&&(b?d.localName===b:3===d.nodeType)){l=d,r[s]=null;break}if(null==l){if(null===b)return document.createTextNode(k);l=document.createElementNS(o,b,k.is&&k),r=null,e=!1}if(null===b)m===k||e&&l.data===k||(l.data=k);else{if(r=r&&n.call(l.childNodes),m=t.props||h,!e&&null!=r)for(m={},s=0;s<l.attributes.length;s++)m[(d=l.attributes[s]).name]=d.value;for(s in m)if(d=m[s],"children"==s);else if("dangerouslySetInnerHTML"==s)p=d;else if("key"!==s&&!(s in k)){if("value"==s&&"defaultValue"in k||"checked"==s&&"defaultChecked"in k)continue;A(l,s,null,d,o)}for(s in k)d=k[s],"children"==s?v=d:"dangerouslySetInnerHTML"==s?a=d:"value"==s?_=d:"checked"==s?g=d:"key"===s||e&&"function"!=typeof d||m[s]===d||A(l,s,d,m[s],o);if(a)e||p&&(a.__html===p.__html||a.__html===l.innerHTML)||(l.innerHTML=a.__html),u.__k=[];else if(p&&(l.innerHTML=""),S(l,y(v)?v:[v],u,t,i,"foreignObject"===b?"http://www.w3.org/1999/xhtml":o,r,f,r?r[0]:t.__k&&x(t,0),e,c),null!=r)for(s=r.length;s--;)null!=r[s]&&w(r[s]);e||(s="value",void 0!==_&&(_!==l[s]||"progress"===b&&!_||"option"===b&&_!==m[s])&&A(l,s,_,m[s],o),s="checked",void 0!==g&&g!==l[s]&&A(l,s,g,m[s],o))}return l}function N(n,u,t){try{if("function"==typeof n){var i="function"==typeof n.__u;i&&n.__u(),i&&null==u||(n.__u=n(u))}else n.current=u}catch(n){l.__e(n,t)}}function V(n,u,t){var i,o;if(l.unmount&&l.unmount(n),(i=n.ref)&&(i.current&&i.current!==n.__e||N(i,null,u)),null!=(i=n.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(n){l.__e(n,u)}i.base=i.__P=null}if(i=n.__k)for(o=0;o<i.length;o++)i[o]&&V(i[o],u,t||"function"!=typeof n.type);t||null==n.__e||w(n.__e),n.__c=n.__=n.__e=n.__d=void 0}function q(n,l,u){return this.constructor(n,u)}function B(u,t,i){var o,r,f,e;l.__&&l.__(u,t),r=(o="function"==typeof i)?null:i&&i.__k||t.__k,f=[],e=[],O(t,u=(!o&&i||t).__k=_(k,null,[u]),r||h,h,t.namespaceURI,!o&&i?[i]:r?null:t.firstChild?n.call(t.childNodes):null,f,!o&&i?i:r?r.__e:t.firstChild,o,e),j(f,u,e)}function D(n,l){B(n,l,D)}function E(l,u,t){var i,o,r,f,e=d({},l.props);for(r in l.type&&l.type.defaultProps&&(f=l.type.defaultProps),u)"key"==r?i=u[r]:"ref"==r?o=u[r]:e[r]=void 0===u[r]&&void 0!==f?f[r]:u[r];return arguments.length>2&&(e.children=arguments.length>3?n.call(arguments,2):t),g(l.type,e,i||l.key,o||l.ref,null)}function G(n,l){var u={__c:l="__cC"+a++,__:n,Consumer:function(n,l){return n.children(l)},Provider:function(n){var u,t;return this.getChildContext||(u=[],(t={})[l]=this,this.getChildContext=function(){return t},this.componentWillUnmount=function(){u=null},this.shouldComponentUpdate=function(n){this.props.value!==n.value&&u.some(function(n){n.__e=!0,M(n)})},this.sub=function(n){u.push(n);var l=n.componentWillUnmount;n.componentWillUnmount=function(){u&&u.splice(u.indexOf(n),1),l&&l.call(n)}}),n.children}};return u.Provider.__=u.Consumer.contextType=u}n=p.slice,l={__e:function(n,l,u,t){for(var i,o,r;l=l.__;)if((i=l.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(n)),r=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(n,t||{}),r=i.__d),r)return i.__E=i}catch(l){n=l}throw n}},u=0,t=function(n){return null!=n&&null==n.constructor},b.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=d({},this.state),"function"==typeof n&&(n=n(d({},u),this.props)),n&&d(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),M(this))},b.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),M(this))},b.prototype.render=k,i=[],r="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,f=function(n,l){return n.__v.__b-l.__v.__b},P.__r=0,e=0,c=F(!1),s=F(!0),a=0;
87375
86979
  //# sourceMappingURL=preact.module.js.map
87376
86980
 
87377
86981
  ;// CONCATENATED MODULE: ./node_modules/_@uppy_utils@5.9.0@@uppy/utils/lib/isDOMElement.js
@@ -87576,7 +87180,7 @@ function _apply2(locale) {
87576
87180
  pluralize: locale.pluralize || prevLocale.pluralize
87577
87181
  });
87578
87182
  }
87579
- ;// CONCATENATED MODULE: ./node_modules/_@uppy_core@3.11.3@@uppy/core/lib/BasePlugin.js
87183
+ ;// CONCATENATED MODULE: ./node_modules/_@uppy_core@3.13.1@@uppy/core/lib/BasePlugin.js
87580
87184
  /* eslint-disable class-methods-use-this */
87581
87185
 
87582
87186
  /**
@@ -87654,7 +87258,7 @@ class BasePlugin {
87654
87258
  // Called after every state update, after everything's mounted. Debounced.
87655
87259
  afterUpdate() {}
87656
87260
  }
87657
- ;// CONCATENATED MODULE: ./node_modules/_@uppy_core@3.11.3@@uppy/core/lib/UIPlugin.js
87261
+ ;// CONCATENATED MODULE: ./node_modules/_@uppy_core@3.13.1@@uppy/core/lib/UIPlugin.js
87658
87262
  function UIPlugin_classPrivateFieldLooseBase(receiver, privateKey) { if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) { throw new TypeError("attempted to use private field on non-instance"); } return receiver; }
87659
87263
  var UIPlugin_id = 0;
87660
87264
  function UIPlugin_classPrivateFieldLooseKey(name) { return "__private_" + UIPlugin_id++ + "_" + name; }
@@ -90416,11 +90020,11 @@ function getSafeFileId(file, instanceId) {
90416
90020
  type: fileType
90417
90021
  }, instanceId);
90418
90022
  }
90419
- ;// CONCATENATED MODULE: ./node_modules/_preact@10.22.0@preact/hooks/dist/hooks.module.js
90420
- var hooks_module_t,hooks_module_r,hooks_module_u,hooks_module_i,hooks_module_o=0,hooks_module_f=[],hooks_module_c=[],hooks_module_e=l,hooks_module_a=hooks_module_e.__b,hooks_module_v=hooks_module_e.__r,hooks_module_l=hooks_module_e.diffed,hooks_module_m=hooks_module_e.__c,hooks_module_s=hooks_module_e.unmount,hooks_module_d=hooks_module_e.__;function hooks_module_h(n,t){hooks_module_e.__h&&hooks_module_e.__h(hooks_module_r,n,hooks_module_o||t),hooks_module_o=0;var u=hooks_module_r.__H||(hooks_module_r.__H={__:[],__h:[]});return n>=u.__.length&&u.__.push({__V:hooks_module_c}),u.__[n]}function hooks_module_p(n){return hooks_module_o=1,hooks_module_y(hooks_module_D,n)}function hooks_module_y(n,u,i){var o=hooks_module_h(hooks_module_t++,2);if(o.t=n,!o.__c&&(o.__=[i?i(u):hooks_module_D(void 0,u),function(n){var t=o.__N?o.__N[0]:o.__[0],r=o.t(t,n);t!==r&&(o.__N=[r,o.__[1]],o.__c.setState({}))}],o.__c=hooks_module_r,!hooks_module_r.u)){var f=function(n,t,r){if(!o.__c.__H)return!0;var u=o.__c.__H.__.filter(function(n){return!!n.__c});if(u.every(function(n){return!n.__N}))return!c||c.call(this,n,t,r);var i=!1;return u.forEach(function(n){if(n.__N){var t=n.__[0];n.__=n.__N,n.__N=void 0,t!==n.__[0]&&(i=!0)}}),!(!i&&o.__c.props===n)&&(!c||c.call(this,n,t,r))};hooks_module_r.u=!0;var c=hooks_module_r.shouldComponentUpdate,e=hooks_module_r.componentWillUpdate;hooks_module_r.componentWillUpdate=function(n,t,r){if(this.__e){var u=c;c=void 0,f(n,t,r),c=u}e&&e.call(this,n,t,r)},hooks_module_r.shouldComponentUpdate=f}return o.__N||o.__}function hooks_module_(n,u){var i=hooks_module_h(hooks_module_t++,3);!hooks_module_e.__s&&hooks_module_C(i.__H,u)&&(i.__=n,i.i=u,hooks_module_r.__H.__h.push(i))}function hooks_module_A(n,u){var i=hooks_module_h(hooks_module_t++,4);!hooks_module_e.__s&&hooks_module_C(i.__H,u)&&(i.__=n,i.i=u,hooks_module_r.__h.push(i))}function hooks_module_F(n){return hooks_module_o=5,hooks_module_q(function(){return{current:n}},[])}function hooks_module_T(n,t,r){hooks_module_o=6,hooks_module_A(function(){return"function"==typeof n?(n(t()),function(){return n(null)}):n?(n.current=t(),function(){return n.current=null}):void 0},null==r?r:r.concat(n))}function hooks_module_q(n,r){var u=hooks_module_h(hooks_module_t++,7);return hooks_module_C(u.__H,r)?(u.__V=n(),u.i=r,u.__h=n,u.__V):u.__}function hooks_module_x(n,t){return hooks_module_o=8,hooks_module_q(function(){return n},t)}function hooks_module_P(n){var u=hooks_module_r.context[n.__c],i=hooks_module_h(hooks_module_t++,9);return i.c=n,u?(null==i.__&&(i.__=!0,u.sub(hooks_module_r)),u.props.value):n.__}function hooks_module_V(n,t){hooks_module_e.useDebugValue&&hooks_module_e.useDebugValue(t?t(n):n)}function hooks_module_b(n){var u=hooks_module_h(hooks_module_t++,10),i=hooks_module_p();return u.__=n,hooks_module_r.componentDidCatch||(hooks_module_r.componentDidCatch=function(n,t){u.__&&u.__(n,t),i[1](n)}),[i[0],function(){i[1](void 0)}]}function hooks_module_g(){var n=hooks_module_h(hooks_module_t++,11);if(!n.__){for(var u=hooks_module_r.__v;null!==u&&!u.__m&&null!==u.__;)u=u.__;var i=u.__m||(u.__m=[0,0]);n.__="P"+i[0]+"-"+i[1]++}return n.__}function hooks_module_j(){for(var n;n=hooks_module_f.shift();)if(n.__P&&n.__H)try{n.__H.__h.forEach(hooks_module_z),n.__H.__h.forEach(hooks_module_B),n.__H.__h=[]}catch(t){n.__H.__h=[],hooks_module_e.__e(t,n.__v)}}hooks_module_e.__b=function(n){hooks_module_r=null,hooks_module_a&&hooks_module_a(n)},hooks_module_e.__=function(n,t){n&&t.__k&&t.__k.__m&&(n.__m=t.__k.__m),hooks_module_d&&hooks_module_d(n,t)},hooks_module_e.__r=function(n){hooks_module_v&&hooks_module_v(n),hooks_module_t=0;var i=(hooks_module_r=n.__c).__H;i&&(hooks_module_u===hooks_module_r?(i.__h=[],hooks_module_r.__h=[],i.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=hooks_module_c,n.__N=n.i=void 0})):(i.__h.forEach(hooks_module_z),i.__h.forEach(hooks_module_B),i.__h=[],hooks_module_t=0)),hooks_module_u=hooks_module_r},hooks_module_e.diffed=function(n){hooks_module_l&&hooks_module_l(n);var t=n.__c;t&&t.__H&&(t.__H.__h.length&&(1!==hooks_module_f.push(t)&&hooks_module_i===hooks_module_e.requestAnimationFrame||((hooks_module_i=hooks_module_e.requestAnimationFrame)||hooks_module_w)(hooks_module_j)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==hooks_module_c&&(n.__=n.__V),n.i=void 0,n.__V=hooks_module_c})),hooks_module_u=hooks_module_r=null},hooks_module_e.__c=function(n,t){t.some(function(n){try{n.__h.forEach(hooks_module_z),n.__h=n.__h.filter(function(n){return!n.__||hooks_module_B(n)})}catch(r){t.some(function(n){n.__h&&(n.__h=[])}),t=[],hooks_module_e.__e(r,n.__v)}}),hooks_module_m&&hooks_module_m(n,t)},hooks_module_e.unmount=function(n){hooks_module_s&&hooks_module_s(n);var t,r=n.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{hooks_module_z(n)}catch(n){t=n}}),r.__H=void 0,t&&hooks_module_e.__e(t,r.__v))};var hooks_module_k="function"==typeof requestAnimationFrame;function hooks_module_w(n){var t,r=function(){clearTimeout(u),hooks_module_k&&cancelAnimationFrame(t),setTimeout(n)},u=setTimeout(r,100);hooks_module_k&&(t=requestAnimationFrame(r))}function hooks_module_z(n){var t=hooks_module_r,u=n.__c;"function"==typeof u&&(n.__c=void 0,u()),hooks_module_r=t}function hooks_module_B(n){var t=hooks_module_r;n.__c=n.__(),hooks_module_r=t}function hooks_module_C(n,t){return!n||n.length!==t.length||t.some(function(t,r){return t!==n[r]})}function hooks_module_D(n,t){return"function"==typeof t?t(n):t}
90023
+ ;// CONCATENATED MODULE: ./node_modules/_preact@10.23.1@preact/hooks/dist/hooks.module.js
90024
+ var hooks_module_t,hooks_module_r,hooks_module_u,hooks_module_i,hooks_module_o=0,hooks_module_f=[],hooks_module_c=l,hooks_module_e=hooks_module_c.__b,hooks_module_a=hooks_module_c.__r,hooks_module_v=hooks_module_c.diffed,hooks_module_l=hooks_module_c.__c,hooks_module_m=hooks_module_c.unmount,hooks_module_s=hooks_module_c.__;function hooks_module_d(n,t){hooks_module_c.__h&&hooks_module_c.__h(hooks_module_r,n,hooks_module_o||t),hooks_module_o=0;var u=hooks_module_r.__H||(hooks_module_r.__H={__:[],__h:[]});return n>=u.__.length&&u.__.push({}),u.__[n]}function hooks_module_h(n){return hooks_module_o=1,hooks_module_p(hooks_module_D,n)}function hooks_module_p(n,u,i){var o=hooks_module_d(hooks_module_t++,2);if(o.t=n,!o.__c&&(o.__=[i?i(u):hooks_module_D(void 0,u),function(n){var t=o.__N?o.__N[0]:o.__[0],r=o.t(t,n);t!==r&&(o.__N=[r,o.__[1]],o.__c.setState({}))}],o.__c=hooks_module_r,!hooks_module_r.u)){var f=function(n,t,r){if(!o.__c.__H)return!0;var u=o.__c.__H.__.filter(function(n){return!!n.__c});if(u.every(function(n){return!n.__N}))return!c||c.call(this,n,t,r);var i=!1;return u.forEach(function(n){if(n.__N){var t=n.__[0];n.__=n.__N,n.__N=void 0,t!==n.__[0]&&(i=!0)}}),!(!i&&o.__c.props===n)&&(!c||c.call(this,n,t,r))};hooks_module_r.u=!0;var c=hooks_module_r.shouldComponentUpdate,e=hooks_module_r.componentWillUpdate;hooks_module_r.componentWillUpdate=function(n,t,r){if(this.__e){var u=c;c=void 0,f(n,t,r),c=u}e&&e.call(this,n,t,r)},hooks_module_r.shouldComponentUpdate=f}return o.__N||o.__}function hooks_module_y(n,u){var i=hooks_module_d(hooks_module_t++,3);!hooks_module_c.__s&&hooks_module_C(i.__H,u)&&(i.__=n,i.i=u,hooks_module_r.__H.__h.push(i))}function hooks_module_(n,u){var i=hooks_module_d(hooks_module_t++,4);!hooks_module_c.__s&&hooks_module_C(i.__H,u)&&(i.__=n,i.i=u,hooks_module_r.__h.push(i))}function hooks_module_A(n){return hooks_module_o=5,hooks_module_T(function(){return{current:n}},[])}function hooks_module_F(n,t,r){hooks_module_o=6,hooks_module_(function(){return"function"==typeof n?(n(t()),function(){return n(null)}):n?(n.current=t(),function(){return n.current=null}):void 0},null==r?r:r.concat(n))}function hooks_module_T(n,r){var u=hooks_module_d(hooks_module_t++,7);return hooks_module_C(u.__H,r)&&(u.__=n(),u.__H=r,u.__h=n),u.__}function hooks_module_q(n,t){return hooks_module_o=8,hooks_module_T(function(){return n},t)}function hooks_module_x(n){var u=hooks_module_r.context[n.__c],i=hooks_module_d(hooks_module_t++,9);return i.c=n,u?(null==i.__&&(i.__=!0,u.sub(hooks_module_r)),u.props.value):n.__}function hooks_module_P(n,t){hooks_module_c.useDebugValue&&hooks_module_c.useDebugValue(t?t(n):n)}function hooks_module_b(n){var u=hooks_module_d(hooks_module_t++,10),i=hooks_module_h();return u.__=n,hooks_module_r.componentDidCatch||(hooks_module_r.componentDidCatch=function(n,t){u.__&&u.__(n,t),i[1](n)}),[i[0],function(){i[1](void 0)}]}function hooks_module_g(){var n=hooks_module_d(hooks_module_t++,11);if(!n.__){for(var u=hooks_module_r.__v;null!==u&&!u.__m&&null!==u.__;)u=u.__;var i=u.__m||(u.__m=[0,0]);n.__="P"+i[0]+"-"+i[1]++}return n.__}function hooks_module_j(){for(var n;n=hooks_module_f.shift();)if(n.__P&&n.__H)try{n.__H.__h.forEach(hooks_module_z),n.__H.__h.forEach(hooks_module_B),n.__H.__h=[]}catch(t){n.__H.__h=[],hooks_module_c.__e(t,n.__v)}}hooks_module_c.__b=function(n){hooks_module_r=null,hooks_module_e&&hooks_module_e(n)},hooks_module_c.__=function(n,t){n&&t.__k&&t.__k.__m&&(n.__m=t.__k.__m),hooks_module_s&&hooks_module_s(n,t)},hooks_module_c.__r=function(n){hooks_module_a&&hooks_module_a(n),hooks_module_t=0;var i=(hooks_module_r=n.__c).__H;i&&(hooks_module_u===hooks_module_r?(i.__h=[],hooks_module_r.__h=[],i.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0})):(i.__h.forEach(hooks_module_z),i.__h.forEach(hooks_module_B),i.__h=[],hooks_module_t=0)),hooks_module_u=hooks_module_r},hooks_module_c.diffed=function(n){hooks_module_v&&hooks_module_v(n);var t=n.__c;t&&t.__H&&(t.__H.__h.length&&(1!==hooks_module_f.push(t)&&hooks_module_i===hooks_module_c.requestAnimationFrame||((hooks_module_i=hooks_module_c.requestAnimationFrame)||hooks_module_w)(hooks_module_j)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),hooks_module_u=hooks_module_r=null},hooks_module_c.__c=function(n,t){t.some(function(n){try{n.__h.forEach(hooks_module_z),n.__h=n.__h.filter(function(n){return!n.__||hooks_module_B(n)})}catch(r){t.some(function(n){n.__h&&(n.__h=[])}),t=[],hooks_module_c.__e(r,n.__v)}}),hooks_module_l&&hooks_module_l(n,t)},hooks_module_c.unmount=function(n){hooks_module_m&&hooks_module_m(n);var t,r=n.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{hooks_module_z(n)}catch(n){t=n}}),r.__H=void 0,t&&hooks_module_c.__e(t,r.__v))};var hooks_module_k="function"==typeof requestAnimationFrame;function hooks_module_w(n){var t,r=function(){clearTimeout(u),hooks_module_k&&cancelAnimationFrame(t),setTimeout(n)},u=setTimeout(r,100);hooks_module_k&&(t=requestAnimationFrame(r))}function hooks_module_z(n){var t=hooks_module_r,u=n.__c;"function"==typeof u&&(n.__c=void 0,u()),hooks_module_r=t}function hooks_module_B(n){var t=hooks_module_r;n.__c=n.__(),hooks_module_r=t}function hooks_module_C(n,t){return!n||n.length!==t.length||t.some(function(t,r){return t!==n[r]})}function hooks_module_D(n,t){return"function"==typeof t?t(n):t}
90421
90025
  //# sourceMappingURL=hooks.module.js.map
90422
90026
 
90423
- ;// CONCATENATED MODULE: ./node_modules/_@uppy_provider-views@3.12.0@@uppy/provider-views/lib/ProviderView/AuthView.js
90027
+ ;// CONCATENATED MODULE: ./node_modules/_@uppy_provider-views@3.13.0@@uppy/provider-views/lib/ProviderView/AuthView.js
90424
90028
  /* eslint-disable react/require-default-props */
90425
90029
 
90426
90030
 
@@ -90467,7 +90071,7 @@ function DefaultForm(_ref) {
90467
90071
  // In order to comply with Google's brand we need to create a different button
90468
90072
  // for the Google Drive plugin
90469
90073
  const isGoogleDrive = pluginName === 'Google Drive';
90470
- const onSubmit = hooks_module_x(e => {
90074
+ const onSubmit = hooks_module_q(e => {
90471
90075
  e.preventDefault();
90472
90076
  onAuth();
90473
90077
  }, [onAuth]);
@@ -90523,7 +90127,7 @@ function AuthView(props) {
90523
90127
  onAuth: handleAuth
90524
90128
  })));
90525
90129
  }
90526
- ;// CONCATENATED MODULE: ./node_modules/_@uppy_provider-views@3.12.0@@uppy/provider-views/lib/ProviderView/User.js
90130
+ ;// CONCATENATED MODULE: ./node_modules/_@uppy_provider-views@3.13.0@@uppy/provider-views/lib/ProviderView/User.js
90527
90131
 
90528
90132
  function User(_ref) {
90529
90133
  let {
@@ -90541,7 +90145,7 @@ function User(_ref) {
90541
90145
  key: "logout"
90542
90146
  }, i18n('logOut')));
90543
90147
  }
90544
- ;// CONCATENATED MODULE: ./node_modules/_@uppy_provider-views@3.12.0@@uppy/provider-views/lib/Breadcrumbs.js
90148
+ ;// CONCATENATED MODULE: ./node_modules/_@uppy_provider-views@3.13.0@@uppy/provider-views/lib/Breadcrumbs.js
90545
90149
 
90546
90150
  const Breadcrumb = props => {
90547
90151
  const {
@@ -90573,7 +90177,7 @@ function Breadcrumbs(props) {
90573
90177
  isLast: i + 1 === breadcrumbs.length
90574
90178
  })));
90575
90179
  }
90576
- ;// CONCATENATED MODULE: ./node_modules/_@uppy_provider-views@3.12.0@@uppy/provider-views/lib/ProviderView/Header.js
90180
+ ;// CONCATENATED MODULE: ./node_modules/_@uppy_provider-views@3.13.0@@uppy/provider-views/lib/ProviderView/Header.js
90577
90181
  /* eslint-disable react/destructuring-assignment */
90578
90182
 
90579
90183
 
@@ -90782,7 +90386,7 @@ let nanoid = (size = 21) => {
90782
90386
  return id
90783
90387
  }
90784
90388
 
90785
- ;// CONCATENATED MODULE: ./node_modules/_@uppy_provider-views@3.12.0@@uppy/provider-views/lib/SearchFilterInput.js
90389
+ ;// CONCATENATED MODULE: ./node_modules/_@uppy_provider-views@3.13.0@@uppy/provider-views/lib/SearchFilterInput.js
90786
90390
  /* eslint-disable react/require-default-props */
90787
90391
 
90788
90392
 
@@ -90800,14 +90404,14 @@ function SearchFilterInput(props) {
90800
90404
  inputClassName,
90801
90405
  buttonCSSClassName
90802
90406
  } = props;
90803
- const [searchText, setSearchText] = hooks_module_p(searchTerm != null ? searchTerm : '');
90407
+ const [searchText, setSearchText] = hooks_module_h(searchTerm != null ? searchTerm : '');
90804
90408
  // const debouncedSearch = debounce((q) => search(q), 1000)
90805
90409
 
90806
- const validateAndSearch = hooks_module_x(ev => {
90410
+ const validateAndSearch = hooks_module_q(ev => {
90807
90411
  ev.preventDefault();
90808
90412
  search(searchText);
90809
90413
  }, [search, searchText]);
90810
- const handleInput = hooks_module_x(ev => {
90414
+ const handleInput = hooks_module_q(ev => {
90811
90415
  const inputValue = ev.target.value;
90812
90416
  setSearchText(inputValue);
90813
90417
  if (searchOnInput) search(inputValue);
@@ -90816,13 +90420,13 @@ function SearchFilterInput(props) {
90816
90420
  setSearchText('');
90817
90421
  if (clearSearch) clearSearch();
90818
90422
  };
90819
- const [form] = hooks_module_p(() => {
90423
+ const [form] = hooks_module_h(() => {
90820
90424
  const formEl = document.createElement('form');
90821
90425
  formEl.setAttribute('tabindex', '-1');
90822
90426
  formEl.id = nanoid();
90823
90427
  return formEl;
90824
90428
  });
90825
- hooks_module_(() => {
90429
+ hooks_module_y(() => {
90826
90430
  document.body.appendChild(form);
90827
90431
  form.addEventListener('submit', validateAndSearch);
90828
90432
  return () => {
@@ -90867,7 +90471,7 @@ function SearchFilterInput(props) {
90867
90471
  form: form.id
90868
90472
  }, buttonLabel));
90869
90473
  }
90870
- ;// CONCATENATED MODULE: ./node_modules/_@uppy_provider-views@3.12.0@@uppy/provider-views/lib/FooterActions.js
90474
+ ;// CONCATENATED MODULE: ./node_modules/_@uppy_provider-views@3.13.0@@uppy/provider-views/lib/FooterActions.js
90871
90475
 
90872
90476
  function FooterActions(_ref) {
90873
90477
  let {
@@ -90890,7 +90494,7 @@ function FooterActions(_ref) {
90890
90494
  type: "button"
90891
90495
  }, i18n('cancel')));
90892
90496
  }
90893
- ;// CONCATENATED MODULE: ./node_modules/_@uppy_provider-views@3.12.0@@uppy/provider-views/lib/Item/components/ItemIcon.js
90497
+ ;// CONCATENATED MODULE: ./node_modules/_@uppy_provider-views@3.13.0@@uppy/provider-views/lib/Item/components/ItemIcon.js
90894
90498
  /* eslint-disable react/require-default-props */
90895
90499
 
90896
90500
  function FileIcon() {
@@ -90964,7 +90568,7 @@ function ItemIcon(props) {
90964
90568
  }
90965
90569
  }
90966
90570
  }
90967
- ;// CONCATENATED MODULE: ./node_modules/_@uppy_provider-views@3.12.0@@uppy/provider-views/lib/Item/components/GridLi.js
90571
+ ;// CONCATENATED MODULE: ./node_modules/_@uppy_provider-views@3.13.0@@uppy/provider-views/lib/Item/components/GridLi.js
90968
90572
  /* eslint-disable react/require-default-props */
90969
90573
 
90970
90574
 
@@ -91008,7 +90612,7 @@ function GridListItem(props) {
91008
90612
  }, itemIconEl, showTitles && title, children));
91009
90613
  }
91010
90614
  /* harmony default export */ const GridLi = (GridListItem);
91011
- ;// CONCATENATED MODULE: ./node_modules/_@uppy_provider-views@3.12.0@@uppy/provider-views/lib/Item/components/ListLi.js
90615
+ ;// CONCATENATED MODULE: ./node_modules/_@uppy_provider-views@3.13.0@@uppy/provider-views/lib/Item/components/ListLi.js
91012
90616
  /* eslint-disable react/require-default-props */
91013
90617
 
91014
90618
 
@@ -91074,9 +90678,9 @@ function ListItem(props) {
91074
90678
  })
91075
90679
  }, _("div", {
91076
90680
  className: "uppy-ProviderBrowserItem-iconWrap"
91077
- }, itemIconEl), showTitles && _("span", null, title)));
90681
+ }, itemIconEl), showTitles && title ? _("span", null, title) : i18n('unnamed')));
91078
90682
  }
91079
- ;// CONCATENATED MODULE: ./node_modules/_@uppy_provider-views@3.12.0@@uppy/provider-views/lib/Item/index.js
90683
+ ;// CONCATENATED MODULE: ./node_modules/_@uppy_provider-views@3.13.0@@uppy/provider-views/lib/Item/index.js
91080
90684
  function Item_extends() { Item_extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return Item_extends.apply(this, arguments); }
91081
90685
  /* eslint-disable react/require-default-props */
91082
90686
 
@@ -91129,7 +90733,7 @@ function Item(props) {
91129
90733
  throw new Error(`There is no such type ${viewType}`);
91130
90734
  }
91131
90735
  }
91132
- ;// CONCATENATED MODULE: ./node_modules/_@uppy_provider-views@3.12.0@@uppy/provider-views/lib/Browser.js
90736
+ ;// CONCATENATED MODULE: ./node_modules/_@uppy_provider-views@3.13.0@@uppy/provider-views/lib/Browser.js
91133
90737
  /* eslint-disable react/require-default-props */
91134
90738
 
91135
90739
 
@@ -91180,7 +90784,7 @@ function Browser_ListItem(props) {
91180
90784
  id: f.id,
91181
90785
  title: f.name,
91182
90786
  author: f.author,
91183
- getItemIcon: () => f.icon,
90787
+ getItemIcon: () => viewType === 'grid' && f.thumbnail ? f.thumbnail : f.icon,
91184
90788
  isChecked: isChecked(f),
91185
90789
  toggleCheckbox: event => toggleCheckbox(event, f),
91186
90790
  isCheckboxDisabled: false,
@@ -91221,10 +90825,10 @@ function Browser(props) {
91221
90825
  cancel,
91222
90826
  done,
91223
90827
  noResultsLabel,
91224
- loadAllFiles
90828
+ virtualList
91225
90829
  } = props;
91226
90830
  const selected = currentSelection.length;
91227
- const rows = hooks_module_q(() => [...folders, ...files], [folders, files]);
90831
+ const rows = hooks_module_T(() => [...folders, ...files], [folders, files]);
91228
90832
  return _("div", {
91229
90833
  className: _classnames_2_5_1_classnames('uppy-ProviderBrowser', `uppy-ProviderBrowser-viewType--${viewType}`)
91230
90834
  }, headerComponent && _("div", {
@@ -91252,7 +90856,7 @@ function Browser(props) {
91252
90856
  className: "uppy-Provider-empty"
91253
90857
  }, noResultsLabel);
91254
90858
  }
91255
- if (loadAllFiles) {
90859
+ if (virtualList) {
91256
90860
  return _("div", {
91257
90861
  className: "uppy-ProviderBrowser-body"
91258
90862
  }, _("ul", {
@@ -91305,7 +90909,7 @@ function Browser(props) {
91305
90909
  }));
91306
90910
  }
91307
90911
  /* harmony default export */ const lib_Browser = (Browser);
91308
- ;// CONCATENATED MODULE: ./node_modules/_@uppy_provider-views@3.12.0@@uppy/provider-views/lib/CloseWrapper.js
90912
+ ;// CONCATENATED MODULE: ./node_modules/_@uppy_provider-views@3.13.0@@uppy/provider-views/lib/CloseWrapper.js
91309
90913
 
91310
90914
  class CloseWrapper extends b {
91311
90915
  componentWillUnmount() {
@@ -91321,9 +90925,7 @@ class CloseWrapper extends b {
91321
90925
  return H(children)[0];
91322
90926
  }
91323
90927
  }
91324
- ;// CONCATENATED MODULE: ./node_modules/_@uppy_provider-views@3.12.0@@uppy/provider-views/lib/View.js
91325
-
91326
-
90928
+ ;// CONCATENATED MODULE: ./node_modules/_@uppy_provider-views@3.13.0@@uppy/provider-views/lib/View.js
91327
90929
 
91328
90930
 
91329
90931
  // Conditional type for selecting the plugin
@@ -91439,10 +91041,7 @@ class View {
91439
91041
  requestClientId: this.requestClientId
91440
91042
  }
91441
91043
  };
91442
- const fileType = getFileType(tagFile);
91443
-
91444
- // TODO Should we just always use the thumbnail URL if it exists?
91445
- if (fileType && isPreviewSupported(fileType)) {
91044
+ if (file.thumbnail) {
91446
91045
  tagFile.preview = file.thumbnail;
91447
91046
  }
91448
91047
  if (file.author) {
@@ -91523,7 +91122,7 @@ class View {
91523
91122
  });
91524
91123
  }
91525
91124
  }
91526
- ;// CONCATENATED MODULE: ./node_modules/_@uppy_provider-views@3.12.0@@uppy/provider-views/lib/ProviderView/ProviderView.js
91125
+ ;// CONCATENATED MODULE: ./node_modules/_@uppy_provider-views@3.13.0@@uppy/provider-views/lib/ProviderView/ProviderView.js
91527
91126
  function ProviderView_classPrivateFieldLooseBase(receiver, privateKey) { if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) { throw new TypeError("attempted to use private field on non-instance"); } return receiver; }
91528
91127
  var ProviderView_id = 0;
91529
91128
  function ProviderView_classPrivateFieldLooseKey(name) { return "__private_" + ProviderView_id++ + "_" + name; }
@@ -91539,7 +91138,7 @@ function ProviderView_classPrivateFieldLooseKey(name) { return "__private_" + Pr
91539
91138
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
91540
91139
  // @ts-ignore We don't want TS to generate types for the package.json
91541
91140
  const ProviderView_packageJson = {
91542
- "version": "3.12.0"
91141
+ "version": "3.13.0"
91543
91142
  };
91544
91143
  function formatBreadcrumbs(breadcrumbs) {
91545
91144
  return breadcrumbs.slice(1).map(directory => directory.name).join('/');
@@ -91564,7 +91163,8 @@ const ProviderView_defaultOptions = {
91564
91163
  showTitles: true,
91565
91164
  showFilter: true,
91566
91165
  showBreadcrumbs: true,
91567
- loadAllFiles: false
91166
+ loadAllFiles: false,
91167
+ virtualList: false
91568
91168
  };
91569
91169
  var _abortController = /*#__PURE__*/ProviderView_classPrivateFieldLooseKey("abortController");
91570
91170
  var _withAbort = /*#__PURE__*/ProviderView_classPrivateFieldLooseKey("withAbort");
@@ -91947,6 +91547,7 @@ class ProviderView extends View {
91947
91547
  getNextFolder: this.getNextFolder,
91948
91548
  getFolder: this.getFolder,
91949
91549
  loadAllFiles: this.opts.loadAllFiles,
91550
+ virtualList: this.opts.virtualList,
91950
91551
  // For SearchFilterInput component
91951
91552
  showSearchFilter: targetViewOptions.showFilter,
91952
91553
  search: this.filterQuery,
@@ -92102,9 +91703,9 @@ async function _recursivelyListAllFiles2(_ref3) {
92102
91703
  }
92103
91704
  }
92104
91705
  ProviderView.VERSION = ProviderView_packageJson.version;
92105
- ;// CONCATENATED MODULE: ./node_modules/_@uppy_provider-views@3.12.0@@uppy/provider-views/lib/ProviderView/index.js
91706
+ ;// CONCATENATED MODULE: ./node_modules/_@uppy_provider-views@3.13.0@@uppy/provider-views/lib/ProviderView/index.js
92106
91707
 
92107
- ;// CONCATENATED MODULE: ./node_modules/_@uppy_provider-views@3.12.0@@uppy/provider-views/lib/SearchProviderView/SearchProviderView.js
91708
+ ;// CONCATENATED MODULE: ./node_modules/_@uppy_provider-views@3.13.0@@uppy/provider-views/lib/SearchProviderView/SearchProviderView.js
92108
91709
  function SearchProviderView_classPrivateFieldLooseBase(receiver, privateKey) { if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) { throw new TypeError("attempted to use private field on non-instance"); } return receiver; }
92109
91710
  var SearchProviderView_id = 0;
92110
91711
  function SearchProviderView_classPrivateFieldLooseKey(name) { return "__private_" + SearchProviderView_id++ + "_" + name; }
@@ -92117,7 +91718,7 @@ function SearchProviderView_classPrivateFieldLooseKey(name) { return "__private_
92117
91718
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
92118
91719
  // @ts-ignore We don't want TS to generate types for the package.json
92119
91720
  const SearchProviderView_packageJson = {
92120
- "version": "3.12.0"
91721
+ "version": "3.13.0"
92121
91722
  };
92122
91723
  const defaultState = {
92123
91724
  isInputMode: true,
@@ -92314,9 +91915,9 @@ function _updateFilesAndInputMode2(res, files) {
92314
91915
  });
92315
91916
  }
92316
91917
  SearchProviderView.VERSION = SearchProviderView_packageJson.version;
92317
- ;// CONCATENATED MODULE: ./node_modules/_@uppy_provider-views@3.12.0@@uppy/provider-views/lib/SearchProviderView/index.js
91918
+ ;// CONCATENATED MODULE: ./node_modules/_@uppy_provider-views@3.13.0@@uppy/provider-views/lib/SearchProviderView/index.js
92318
91919
 
92319
- ;// CONCATENATED MODULE: ./node_modules/_@uppy_provider-views@3.12.0@@uppy/provider-views/lib/index.js
91920
+ ;// CONCATENATED MODULE: ./node_modules/_@uppy_provider-views@3.13.0@@uppy/provider-views/lib/index.js
92320
91921
 
92321
91922
 
92322
91923
  ;// CONCATENATED MODULE: ./node_modules/_memoize-one@6.0.0@memoize-one/dist/memoize-one.esm.js
@@ -92374,7 +91975,7 @@ function memoizeOne(resultFn, isEqual) {
92374
91975
 
92375
91976
  ;// CONCATENATED MODULE: ./node_modules/_@uppy_utils@5.9.0@@uppy/utils/lib/FOCUSABLE_ELEMENTS.js
92376
91977
  /* harmony default export */ const FOCUSABLE_ELEMENTS = (['a[href]:not([tabindex^="-"]):not([inert]):not([aria-hidden])', 'area[href]:not([tabindex^="-"]):not([inert]):not([aria-hidden])', 'input:not([disabled]):not([inert]):not([aria-hidden])', 'select:not([disabled]):not([inert]):not([aria-hidden])', 'textarea:not([disabled]):not([inert]):not([aria-hidden])', 'button:not([disabled]):not([inert]):not([aria-hidden])', 'iframe:not([tabindex^="-"]):not([inert]):not([aria-hidden])', 'object:not([tabindex^="-"]):not([inert]):not([aria-hidden])', 'embed:not([tabindex^="-"]):not([inert]):not([aria-hidden])', '[contenteditable]:not([tabindex^="-"]):not([inert]):not([aria-hidden])', '[tabindex]:not([tabindex^="-"]):not([inert]):not([aria-hidden])']);
92377
- ;// CONCATENATED MODULE: ./node_modules/_@uppy_dashboard@3.8.3@@uppy/dashboard/lib/utils/getActiveOverlayEl.js
91978
+ ;// CONCATENATED MODULE: ./node_modules/_@uppy_dashboard@3.9.1@@uppy/dashboard/lib/utils/getActiveOverlayEl.js
92378
91979
  /**
92379
91980
  * @returns {HTMLElement} - either dashboard element, or the overlay that's most on top
92380
91981
  */
@@ -92386,7 +91987,7 @@ function getActiveOverlayEl(dashboardEl, activeOverlayType) {
92386
91987
  }
92387
91988
  return dashboardEl;
92388
91989
  }
92389
- ;// CONCATENATED MODULE: ./node_modules/_@uppy_dashboard@3.8.3@@uppy/dashboard/lib/utils/trapFocus.js
91990
+ ;// CONCATENATED MODULE: ./node_modules/_@uppy_dashboard@3.9.1@@uppy/dashboard/lib/utils/trapFocus.js
92390
91991
 
92391
91992
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
92392
91993
  // @ts-ignore untyped
@@ -92454,7 +92055,7 @@ function forInline(event, activeOverlayType, dashboardEl) {
92454
92055
  }
92455
92056
  // EXTERNAL MODULE: ./node_modules/_lodash@4.17.21@lodash/debounce.js
92456
92057
  var _lodash_4_17_21_lodash_debounce = __webpack_require__(5748);
92457
- ;// CONCATENATED MODULE: ./node_modules/_@uppy_dashboard@3.8.3@@uppy/dashboard/lib/utils/createSuperFocus.js
92058
+ ;// CONCATENATED MODULE: ./node_modules/_@uppy_dashboard@3.9.1@@uppy/dashboard/lib/utils/createSuperFocus.js
92458
92059
 
92459
92060
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
92460
92061
  // @ts-ignore untyped
@@ -92525,7 +92126,7 @@ function isDragDropSupported() {
92525
92126
  }
92526
92127
  // EXTERNAL MODULE: ./node_modules/_is-shallow-equal@1.0.1@is-shallow-equal/index.js
92527
92128
  var _is_shallow_equal_1_0_1_is_shallow_equal = __webpack_require__(9902);
92528
- ;// CONCATENATED MODULE: ./node_modules/_@uppy_dashboard@3.8.3@@uppy/dashboard/lib/utils/getFileTypeIcon.js
92129
+ ;// CONCATENATED MODULE: ./node_modules/_@uppy_dashboard@3.9.1@@uppy/dashboard/lib/utils/getFileTypeIcon.js
92529
92130
 
92530
92131
  function iconImage() {
92531
92132
  return _("svg", {
@@ -92694,7 +92295,7 @@ function getIconByMime(fileType) {
92694
92295
  }
92695
92296
  return defaultChoice;
92696
92297
  }
92697
- ;// CONCATENATED MODULE: ./node_modules/_@uppy_dashboard@3.8.3@@uppy/dashboard/lib/components/FilePreview.js
92298
+ ;// CONCATENATED MODULE: ./node_modules/_@uppy_dashboard@3.9.1@@uppy/dashboard/lib/components/FilePreview.js
92698
92299
 
92699
92300
 
92700
92301
  function FilePreview_FilePreview(props) {
@@ -92734,7 +92335,7 @@ function FilePreview_FilePreview(props) {
92734
92335
  fillRule: "evenodd"
92735
92336
  })));
92736
92337
  }
92737
- ;// CONCATENATED MODULE: ./node_modules/_@uppy_dashboard@3.8.3@@uppy/dashboard/lib/components/FileItem/MetaErrorMessage.js
92338
+ ;// CONCATENATED MODULE: ./node_modules/_@uppy_dashboard@3.9.1@@uppy/dashboard/lib/components/FileItem/MetaErrorMessage.js
92738
92339
 
92739
92340
  const metaFieldIdToName = (metaFieldId, metaFields) => {
92740
92341
  const fields = typeof metaFields === 'function' ? metaFields() : metaFields;
@@ -92766,7 +92367,7 @@ function MetaErrorMessage(props) {
92766
92367
  onClick: () => toggleFileCard(true, file.id)
92767
92368
  }, i18n('editFile')));
92768
92369
  }
92769
- ;// CONCATENATED MODULE: ./node_modules/_@uppy_dashboard@3.8.3@@uppy/dashboard/lib/components/FileItem/FilePreviewAndLink/index.js
92370
+ ;// CONCATENATED MODULE: ./node_modules/_@uppy_dashboard@3.9.1@@uppy/dashboard/lib/components/FileItem/FilePreviewAndLink/index.js
92770
92371
 
92771
92372
 
92772
92373
 
@@ -92803,7 +92404,7 @@ function FilePreviewAndLink(props) {
92803
92404
  metaFields: metaFields
92804
92405
  }));
92805
92406
  }
92806
- ;// CONCATENATED MODULE: ./node_modules/_@uppy_dashboard@3.8.3@@uppy/dashboard/lib/components/FileItem/FileProgress/index.js
92407
+ ;// CONCATENATED MODULE: ./node_modules/_@uppy_dashboard@3.9.1@@uppy/dashboard/lib/components/FileItem/FileProgress/index.js
92807
92408
  /* eslint-disable react/destructuring-assignment */
92808
92409
 
92809
92410
  function onPauseResumeCancelRetry(props) {
@@ -93005,7 +92606,7 @@ function truncateString(string, maxLength) {
93005
92606
  const backChars = Math.floor(charsToShow / 2);
93006
92607
  return string.slice(0, frontChars) + separator + string.slice(-backChars);
93007
92608
  }
93008
- ;// CONCATENATED MODULE: ./node_modules/_@uppy_dashboard@3.8.3@@uppy/dashboard/lib/components/FileItem/FileInfo/index.js
92609
+ ;// CONCATENATED MODULE: ./node_modules/_@uppy_dashboard@3.9.1@@uppy/dashboard/lib/components/FileItem/FileInfo/index.js
93009
92610
  /* eslint-disable react/destructuring-assignment */
93010
92611
 
93011
92612
 
@@ -93102,7 +92703,7 @@ function FileInfo(props) {
93102
92703
  metaFields: props.metaFields
93103
92704
  }));
93104
92705
  }
93105
- ;// CONCATENATED MODULE: ./node_modules/_@uppy_dashboard@3.8.3@@uppy/dashboard/lib/utils/copyToClipboard.js
92706
+ ;// CONCATENATED MODULE: ./node_modules/_@uppy_dashboard@3.9.1@@uppy/dashboard/lib/utils/copyToClipboard.js
93106
92707
  /**
93107
92708
  * Copies text to clipboard by creating an almost invisible textarea,
93108
92709
  * adding text there, then running execCommand('copy').
@@ -93135,7 +92736,7 @@ function copyToClipboard(textToCopy, fallbackString) {
93135
92736
  textArea.value = textToCopy;
93136
92737
  document.body.appendChild(textArea);
93137
92738
  textArea.select();
93138
- const magicCopyFailed = cause => {
92739
+ const magicCopyFailed = () => {
93139
92740
  document.body.removeChild(textArea);
93140
92741
  // eslint-disable-next-line no-alert
93141
92742
  window.prompt(fallbackString, textToCopy);
@@ -93144,17 +92745,17 @@ function copyToClipboard(textToCopy, fallbackString) {
93144
92745
  try {
93145
92746
  const successful = document.execCommand('copy');
93146
92747
  if (!successful) {
93147
- return magicCopyFailed('copy command unavailable');
92748
+ return magicCopyFailed();
93148
92749
  }
93149
92750
  document.body.removeChild(textArea);
93150
92751
  return resolve();
93151
92752
  } catch (err) {
93152
92753
  document.body.removeChild(textArea);
93153
- return magicCopyFailed(err);
92754
+ return magicCopyFailed();
93154
92755
  }
93155
92756
  });
93156
92757
  }
93157
- ;// CONCATENATED MODULE: ./node_modules/_@uppy_dashboard@3.8.3@@uppy/dashboard/lib/components/FileItem/Buttons/index.js
92758
+ ;// CONCATENATED MODULE: ./node_modules/_@uppy_dashboard@3.9.1@@uppy/dashboard/lib/components/FileItem/Buttons/index.js
93158
92759
 
93159
92760
 
93160
92761
  function EditButton(_ref) {
@@ -93303,7 +92904,7 @@ function Buttons(props) {
93303
92904
  onClick: () => uppy.removeFile(file.id, 'removed-by-user')
93304
92905
  }) : null);
93305
92906
  }
93306
- ;// CONCATENATED MODULE: ./node_modules/_@uppy_dashboard@3.8.3@@uppy/dashboard/lib/components/FileItem/index.js
92907
+ ;// CONCATENATED MODULE: ./node_modules/_@uppy_dashboard@3.9.1@@uppy/dashboard/lib/components/FileItem/index.js
93307
92908
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
93308
92909
  // @ts-nocheck Typing this file requires more work, skipping it to unblock the rest of the transition.
93309
92910
 
@@ -93427,7 +93028,7 @@ class FileItem extends b {
93427
93028
  })));
93428
93029
  }
93429
93030
  }
93430
- ;// CONCATENATED MODULE: ./node_modules/_@uppy_dashboard@3.8.3@@uppy/dashboard/lib/components/FileList.js
93031
+ ;// CONCATENATED MODULE: ./node_modules/_@uppy_dashboard@3.9.1@@uppy/dashboard/lib/components/FileList.js
93431
93032
 
93432
93033
 
93433
93034
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -93486,7 +93087,7 @@ function FileList(_ref) {
93486
93087
  : 200;
93487
93088
 
93488
93089
  // Sort files by file.isGhost, ghost files first, only if recoveredState is present
93489
- const rows = hooks_module_q(() => {
93090
+ const rows = hooks_module_T(() => {
93490
93091
  const sortByGhostComesFirst = (file1, file2) => files[file2].isGhost - files[file1].isGhost;
93491
93092
  const fileIds = Object.keys(files);
93492
93093
  if (recoveredState) fileIds.sort(sortByGhostComesFirst);
@@ -93554,7 +93155,7 @@ function FileList(_ref) {
93554
93155
  rowHeight: rowHeight
93555
93156
  });
93556
93157
  }
93557
- ;// CONCATENATED MODULE: ./node_modules/_@uppy_dashboard@3.8.3@@uppy/dashboard/lib/components/AddFiles.js
93158
+ ;// CONCATENATED MODULE: ./node_modules/_@uppy_dashboard@3.9.1@@uppy/dashboard/lib/components/AddFiles.js
93558
93159
  let _Symbol$for;
93559
93160
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
93560
93161
  // @ts-nocheck Typing this file requires more work, skipping it to unblock the rest of the transition.
@@ -93884,7 +93485,7 @@ class AddFiles extends b {
93884
93485
  }
93885
93486
  }
93886
93487
  /* harmony default export */ const components_AddFiles = (AddFiles);
93887
- ;// CONCATENATED MODULE: ./node_modules/_@uppy_dashboard@3.8.3@@uppy/dashboard/lib/components/AddFilesPanel.js
93488
+ ;// CONCATENATED MODULE: ./node_modules/_@uppy_dashboard@3.9.1@@uppy/dashboard/lib/components/AddFilesPanel.js
93888
93489
  /* eslint-disable react/destructuring-assignment */
93889
93490
 
93890
93491
 
@@ -93907,7 +93508,7 @@ const AddFilesPanel = props => {
93907
93508
  }, props.i18n('back'))), _(components_AddFiles, props));
93908
93509
  };
93909
93510
  /* harmony default export */ const components_AddFilesPanel = (AddFilesPanel);
93910
- ;// CONCATENATED MODULE: ./node_modules/_@uppy_dashboard@3.8.3@@uppy/dashboard/lib/utils/ignoreEvent.js
93511
+ ;// CONCATENATED MODULE: ./node_modules/_@uppy_dashboard@3.9.1@@uppy/dashboard/lib/utils/ignoreEvent.js
93911
93512
  // ignore drop/paste events if they are not in input or textarea —
93912
93513
  // otherwise when Url plugin adds drop/paste listeners to this.el,
93913
93514
  // draging UI elements or pasting anything into any field triggers those events —
@@ -93925,7 +93526,7 @@ function ignoreEvent(ev) {
93925
93526
  ev.stopPropagation();
93926
93527
  }
93927
93528
  /* harmony default export */ const utils_ignoreEvent = (ignoreEvent);
93928
- ;// CONCATENATED MODULE: ./node_modules/_@uppy_dashboard@3.8.3@@uppy/dashboard/lib/components/PickerPanelContent.js
93529
+ ;// CONCATENATED MODULE: ./node_modules/_@uppy_dashboard@3.9.1@@uppy/dashboard/lib/components/PickerPanelContent.js
93929
93530
 
93930
93531
 
93931
93532
 
@@ -93964,7 +93565,7 @@ function PickerPanelContent(_ref) {
93964
93565
  }, uppy.getPlugin(activePickerPanel.id).render(state)));
93965
93566
  }
93966
93567
  /* harmony default export */ const components_PickerPanelContent = (PickerPanelContent);
93967
- ;// CONCATENATED MODULE: ./node_modules/_@uppy_dashboard@3.8.3@@uppy/dashboard/lib/components/EditorPanel.js
93568
+ ;// CONCATENATED MODULE: ./node_modules/_@uppy_dashboard@3.9.1@@uppy/dashboard/lib/components/EditorPanel.js
93968
93569
  /* eslint-disable react/destructuring-assignment */
93969
93570
 
93970
93571
 
@@ -94004,7 +93605,7 @@ function EditorPanel(props) {
94004
93605
  })));
94005
93606
  }
94006
93607
  /* harmony default export */ const components_EditorPanel = (EditorPanel);
94007
- ;// CONCATENATED MODULE: ./node_modules/_@uppy_dashboard@3.8.3@@uppy/dashboard/lib/components/PickerPanelTopBar.js
93608
+ ;// CONCATENATED MODULE: ./node_modules/_@uppy_dashboard@3.9.1@@uppy/dashboard/lib/components/PickerPanelTopBar.js
94008
93609
 
94009
93610
  const uploadStates = {
94010
93611
  STATE_ERROR: 'error',
@@ -94133,7 +93734,7 @@ function PanelTopBar(props) {
94133
93734
  }, i18n('addMore'))) : _("div", null));
94134
93735
  }
94135
93736
  /* harmony default export */ const PickerPanelTopBar = (PanelTopBar);
94136
- ;// CONCATENATED MODULE: ./node_modules/_@uppy_dashboard@3.8.3@@uppy/dashboard/lib/components/FileCard/RenderMetaFields.js
93737
+ ;// CONCATENATED MODULE: ./node_modules/_@uppy_dashboard@3.9.1@@uppy/dashboard/lib/components/FileCard/RenderMetaFields.js
94137
93738
 
94138
93739
  function RenderMetaFields(props) {
94139
93740
  const {
@@ -94174,7 +93775,7 @@ function RenderMetaFields(props) {
94174
93775
  }));
94175
93776
  });
94176
93777
  }
94177
- ;// CONCATENATED MODULE: ./node_modules/_@uppy_dashboard@3.8.3@@uppy/dashboard/lib/components/FileCard/index.js
93778
+ ;// CONCATENATED MODULE: ./node_modules/_@uppy_dashboard@3.9.1@@uppy/dashboard/lib/components/FileCard/index.js
94178
93779
 
94179
93780
 
94180
93781
 
@@ -94209,8 +93810,8 @@ function FileCard(props) {
94209
93810
  var _file$meta$field$id;
94210
93811
  storedMetaData[field.id] = (_file$meta$field$id = file.meta[field.id]) != null ? _file$meta$field$id : '';
94211
93812
  });
94212
- const [formState, setFormState] = hooks_module_p(storedMetaData);
94213
- const handleSave = hooks_module_x(ev => {
93813
+ const [formState, setFormState] = hooks_module_h(storedMetaData);
93814
+ const handleSave = hooks_module_q(ev => {
94214
93815
  ev.preventDefault();
94215
93816
  saveFileCard(formState, fileCardFor);
94216
93817
  }, [saveFileCard, formState, fileCardFor]);
@@ -94223,13 +93824,13 @@ function FileCard(props) {
94223
93824
  const handleCancel = () => {
94224
93825
  toggleFileCard(false);
94225
93826
  };
94226
- const [form] = hooks_module_p(() => {
93827
+ const [form] = hooks_module_h(() => {
94227
93828
  const formEl = document.createElement('form');
94228
93829
  formEl.setAttribute('tabindex', '-1');
94229
93830
  formEl.id = nanoid();
94230
93831
  return formEl;
94231
93832
  });
94232
- hooks_module_(() => {
93833
+ hooks_module_y(() => {
94233
93834
  document.body.appendChild(form);
94234
93835
  form.addEventListener('submit', handleSave);
94235
93836
  return () => {
@@ -94304,7 +93905,7 @@ function FileCard(props) {
94304
93905
  form: form.id
94305
93906
  }, i18n('cancel')))));
94306
93907
  }
94307
- ;// CONCATENATED MODULE: ./node_modules/_@uppy_dashboard@3.8.3@@uppy/dashboard/lib/components/Slide.js
93908
+ ;// CONCATENATED MODULE: ./node_modules/_@uppy_dashboard@3.9.1@@uppy/dashboard/lib/components/Slide.js
94308
93909
 
94309
93910
 
94310
93911
 
@@ -94324,11 +93925,11 @@ function Slide(_ref) {
94324
93925
  let {
94325
93926
  children
94326
93927
  } = _ref;
94327
- const [cachedChildren, setCachedChildren] = hooks_module_p(null);
94328
- const [className, setClassName] = hooks_module_p('');
94329
- const enterTimeoutRef = hooks_module_F();
94330
- const leaveTimeoutRef = hooks_module_F();
94331
- const animationFrameRef = hooks_module_F();
93928
+ const [cachedChildren, setCachedChildren] = hooks_module_h(null);
93929
+ const [className, setClassName] = hooks_module_h('');
93930
+ const enterTimeoutRef = hooks_module_A();
93931
+ const leaveTimeoutRef = hooks_module_A();
93932
+ const animationFrameRef = hooks_module_A();
94332
93933
  const handleEnterTransition = () => {
94333
93934
  setClassName(`${transitionName}-enter`);
94334
93935
  cancelAnimationFrame(animationFrameRef.current);
@@ -94354,7 +93955,7 @@ function Slide(_ref) {
94354
93955
  }, duration);
94355
93956
  });
94356
93957
  };
94357
- hooks_module_(() => {
93958
+ hooks_module_y(() => {
94358
93959
  const child = H(children)[0];
94359
93960
  if (cachedChildren === child) return;
94360
93961
  if (child && !cachedChildren) {
@@ -94365,7 +93966,7 @@ function Slide(_ref) {
94365
93966
  setCachedChildren(child);
94366
93967
  }, [children, cachedChildren]); // Dependency array to trigger effect on children change
94367
93968
 
94368
- hooks_module_(() => {
93969
+ hooks_module_y(() => {
94369
93970
  return () => {
94370
93971
  clearTimeout(enterTimeoutRef.current);
94371
93972
  clearTimeout(leaveTimeoutRef.current);
@@ -94379,7 +93980,7 @@ function Slide(_ref) {
94379
93980
  });
94380
93981
  }
94381
93982
  /* harmony default export */ const components_Slide = (Slide);
94382
- ;// CONCATENATED MODULE: ./node_modules/_@uppy_dashboard@3.8.3@@uppy/dashboard/lib/components/Dashboard.js
93983
+ ;// CONCATENATED MODULE: ./node_modules/_@uppy_dashboard@3.9.1@@uppy/dashboard/lib/components/Dashboard.js
94383
93984
  function Dashboard_extends() { Dashboard_extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return Dashboard_extends.apply(this, arguments); }
94384
93985
  /* eslint-disable react/destructuring-assignment, react/jsx-props-no-spreading */
94385
93986
 
@@ -94561,7 +94162,7 @@ function Dashboard_Dashboard(props) {
94561
94162
  })))));
94562
94163
  return dashboard;
94563
94164
  }
94564
- ;// CONCATENATED MODULE: ./node_modules/_@uppy_dashboard@3.8.3@@uppy/dashboard/lib/locale.js
94165
+ ;// CONCATENATED MODULE: ./node_modules/_@uppy_dashboard@3.9.1@@uppy/dashboard/lib/locale.js
94565
94166
  /* harmony default export */ const dashboard_lib_locale = ({
94566
94167
  strings: {
94567
94168
  // When `inline: false`, used as the screen reader label for the button that closes the modal.
@@ -94655,7 +94256,7 @@ function Dashboard_Dashboard(props) {
94655
94256
  recordVideoBtn: 'Record Video'
94656
94257
  }
94657
94258
  });
94658
- ;// CONCATENATED MODULE: ./node_modules/_@uppy_dashboard@3.8.3@@uppy/dashboard/lib/Dashboard.js
94259
+ ;// CONCATENATED MODULE: ./node_modules/_@uppy_dashboard@3.9.1@@uppy/dashboard/lib/Dashboard.js
94659
94260
  function Dashboard_classPrivateFieldLooseBase(receiver, privateKey) { if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) { throw new TypeError("attempted to use private field on non-instance"); } return receiver; }
94660
94261
  var Dashboard_id = 0;
94661
94262
  function Dashboard_classPrivateFieldLooseKey(name) { return "__private_" + Dashboard_id++ + "_" + name; }
@@ -94676,7 +94277,7 @@ function Dashboard_classPrivateFieldLooseKey(name) { return "__private_" + Dashb
94676
94277
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
94677
94278
  // @ts-ignore We don't want TS to generate types for the package.json
94678
94279
  const Dashboard_packageJson = {
94679
- "version": "3.8.3"
94280
+ "version": "3.9.1"
94680
94281
  };
94681
94282
 
94682
94283
  const memoize = memoizeOne["default"] || memoizeOne;
@@ -94732,7 +94333,7 @@ const Dashboard_defaultOptions = {
94732
94333
  // Dynamic default options, they have to be defined in the constructor (because
94733
94334
  // they require access to the `this` keyword), but we still want them to
94734
94335
  // appear in the default options so TS knows they'll be defined.
94735
- doneButtonHandler: null,
94336
+ doneButtonHandler: undefined,
94736
94337
  onRequestCloseModal: null
94737
94338
  };
94738
94339
 
@@ -94754,7 +94355,7 @@ class Dashboard extends lib_UIPlugin {
94754
94355
  // Timeouts
94755
94356
 
94756
94357
  constructor(uppy, _opts) {
94757
- var _this$opts4, _this$opts4$doneButto, _this$opts5, _this$opts5$onRequest;
94358
+ var _this$opts4, _this$opts4$onRequest;
94758
94359
  // support for the legacy `autoOpenFileEditor` option,
94759
94360
  // TODO: we can remove this code when we update the Uppy major version
94760
94361
  let autoOpen;
@@ -95799,16 +95400,20 @@ class Dashboard extends lib_UIPlugin {
95799
95400
  this.defaultLocale = dashboard_lib_locale;
95800
95401
 
95801
95402
  // Dynamic default options:
95802
- (_this$opts4$doneButto = (_this$opts4 = this.opts).doneButtonHandler) != null ? _this$opts4$doneButto : _this$opts4.doneButtonHandler = () => {
95803
- this.uppy.clearUploadedFiles();
95804
- this.requestCloseModal();
95805
- };
95806
- (_this$opts5$onRequest = (_this$opts5 = this.opts).onRequestCloseModal) != null ? _this$opts5$onRequest : _this$opts5.onRequestCloseModal = () => this.closeModal();
95403
+ if (this.opts.doneButtonHandler === undefined) {
95404
+ // `null` means "do not display a Done button", while `undefined` means
95405
+ // "I want the default behavior". For this reason, we need to differentiate `null` and `undefined`.
95406
+ this.opts.doneButtonHandler = () => {
95407
+ this.uppy.clearUploadedFiles();
95408
+ this.requestCloseModal();
95409
+ };
95410
+ }
95411
+ (_this$opts4$onRequest = (_this$opts4 = this.opts).onRequestCloseModal) != null ? _this$opts4$onRequest : _this$opts4.onRequestCloseModal = () => this.closeModal();
95807
95412
  this.i18nInit();
95808
95413
  }
95809
95414
  }
95810
95415
  Dashboard.VERSION = Dashboard_packageJson.version;
95811
- ;// CONCATENATED MODULE: ./node_modules/_@uppy_dashboard@3.8.3@@uppy/dashboard/lib/index.js
95416
+ ;// CONCATENATED MODULE: ./node_modules/_@uppy_dashboard@3.9.1@@uppy/dashboard/lib/index.js
95812
95417
 
95813
95418
  ;// CONCATENATED MODULE: ./node_modules/_shallow-equal@1.2.1@shallow-equal/dist/index.esm.js
95814
95419
  function shallowEqualObjects(objA, objB) {
@@ -96054,7 +95659,7 @@ const isVue2 = function () {
96054
95659
  });
96055
95660
  }
96056
95661
  });
96057
- ;// CONCATENATED MODULE: ./node_modules/_@uppy_drag-drop@3.1.0@@uppy/drag-drop/lib/locale.js
95662
+ ;// CONCATENATED MODULE: ./node_modules/_@uppy_drag-drop@3.1.1@@uppy/drag-drop/lib/locale.js
96058
95663
  /* harmony default export */ const drag_drop_lib_locale = ({
96059
95664
  strings: {
96060
95665
  // Text to show on the droppable area.
@@ -96064,7 +95669,7 @@ const isVue2 = function () {
96064
95669
  browse: 'browse'
96065
95670
  }
96066
95671
  });
96067
- ;// CONCATENATED MODULE: ./node_modules/_@uppy_drag-drop@3.1.0@@uppy/drag-drop/lib/DragDrop.js
95672
+ ;// CONCATENATED MODULE: ./node_modules/_@uppy_drag-drop@3.1.1@@uppy/drag-drop/lib/DragDrop.js
96068
95673
 
96069
95674
 
96070
95675
 
@@ -96074,7 +95679,7 @@ const isVue2 = function () {
96074
95679
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
96075
95680
  // @ts-ignore We don't want TS to generate types for the package.json
96076
95681
  const DragDrop_packageJson = {
96077
- "version": "3.1.0"
95682
+ "version": "3.1.1"
96078
95683
  };
96079
95684
 
96080
95685
  // Default options, must be kept in sync with @uppy/react/src/DragDrop.js.
@@ -96291,7 +95896,7 @@ class DragDrop extends lib_UIPlugin {
96291
95896
  }
96292
95897
  }
96293
95898
  DragDrop.VERSION = DragDrop_packageJson.version;
96294
- ;// CONCATENATED MODULE: ./node_modules/_@uppy_drag-drop@3.1.0@@uppy/drag-drop/lib/index.js
95899
+ ;// CONCATENATED MODULE: ./node_modules/_@uppy_drag-drop@3.1.1@@uppy/drag-drop/lib/index.js
96295
95900
 
96296
95901
  ;// CONCATENATED MODULE: ./node_modules/_@uppy_vue@1.1.2@@uppy/vue/lib/drag-drop.js
96297
95902
 
@@ -96861,7 +96466,7 @@ function _publish2() {
96861
96466
  }
96862
96467
  DefaultStore.VERSION = store_default_lib_packageJson.version;
96863
96468
  /* harmony default export */ const lib = (DefaultStore);
96864
- ;// CONCATENATED MODULE: ./node_modules/_@uppy_core@3.11.3@@uppy/core/lib/supportsUploadProgress.js
96469
+ ;// CONCATENATED MODULE: ./node_modules/_@uppy_core@3.13.1@@uppy/core/lib/supportsUploadProgress.js
96865
96470
  // Edge 15.x does not fire 'progress' events on uploads.
96866
96471
  // See https://github.com/transloadit/uppy/issues/945
96867
96472
  // And https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/12224510/
@@ -96896,7 +96501,7 @@ function supportsUploadProgress(userAgent) {
96896
96501
  // other versions don't work.
96897
96502
  return false;
96898
96503
  }
96899
- ;// CONCATENATED MODULE: ./node_modules/_@uppy_core@3.11.3@@uppy/core/lib/getFileName.js
96504
+ ;// CONCATENATED MODULE: ./node_modules/_@uppy_core@3.13.1@@uppy/core/lib/getFileName.js
96900
96505
  function getFileName(fileType, fileDescriptor) {
96901
96506
  if (fileDescriptor.name) {
96902
96507
  return fileDescriptor.name;
@@ -96924,7 +96529,7 @@ function getTimeStamp() {
96924
96529
  const seconds = pad(date.getSeconds());
96925
96530
  return `${hours}:${minutes}:${seconds}`;
96926
96531
  }
96927
- ;// CONCATENATED MODULE: ./node_modules/_@uppy_core@3.11.3@@uppy/core/lib/loggers.js
96532
+ ;// CONCATENATED MODULE: ./node_modules/_@uppy_core@3.13.1@@uppy/core/lib/loggers.js
96928
96533
  /* eslint-disable no-console */
96929
96534
 
96930
96535
 
@@ -96966,7 +96571,7 @@ const debugLogger = {
96966
96571
 
96967
96572
  // EXTERNAL MODULE: ./node_modules/_mime-match@1.0.2@mime-match/index.js
96968
96573
  var _mime_match_1_0_2_mime_match = __webpack_require__(9769);
96969
- ;// CONCATENATED MODULE: ./node_modules/_@uppy_core@3.11.3@@uppy/core/lib/Restricter.js
96574
+ ;// CONCATENATED MODULE: ./node_modules/_@uppy_core@3.13.1@@uppy/core/lib/Restricter.js
96970
96575
  /* eslint-disable @typescript-eslint/ban-ts-comment */
96971
96576
  /* eslint-disable max-classes-per-file, class-methods-use-this */
96972
96577
 
@@ -97025,21 +96630,15 @@ class Restricter {
97025
96630
  }
97026
96631
  }
97027
96632
  if (maxTotalFileSize) {
97028
- let totalFilesSize = existingFiles.reduce((total, f) => {
96633
+ const totalFilesSize = [...existingFiles, ...addingFiles].reduce((total, f) => {
97029
96634
  var _f$size;
97030
96635
  return total + ((_f$size = f.size) != null ? _f$size : 0);
97031
96636
  }, 0);
97032
- for (const addingFile of addingFiles) {
97033
- if (addingFile.size != null) {
97034
- // We can't check maxTotalFileSize if the size is unknown.
97035
- totalFilesSize += addingFile.size;
97036
- if (totalFilesSize > maxTotalFileSize) {
97037
- throw new RestrictionError(this.getI18n()('exceedsSize', {
97038
- size: prettierBytes(maxTotalFileSize),
97039
- file: addingFile.name
97040
- }));
97041
- }
97042
- }
96637
+ if (totalFilesSize > maxTotalFileSize) {
96638
+ throw new RestrictionError(this.getI18n()('aggregateExceedsSize', {
96639
+ sizeAllowed: prettierBytes(maxTotalFileSize),
96640
+ size: prettierBytes(totalFilesSize)
96641
+ }));
97043
96642
  }
97044
96643
  }
97045
96644
  }
@@ -97128,7 +96727,7 @@ class Restricter {
97128
96727
  }
97129
96728
  }
97130
96729
 
97131
- ;// CONCATENATED MODULE: ./node_modules/_@uppy_core@3.11.3@@uppy/core/lib/locale.js
96730
+ ;// CONCATENATED MODULE: ./node_modules/_@uppy_core@3.13.1@@uppy/core/lib/locale.js
97132
96731
  /* harmony default export */ const core_lib_locale = ({
97133
96732
  strings: {
97134
96733
  addBulkFilesFailed: {
@@ -97143,6 +96742,7 @@ class Restricter {
97143
96742
  0: 'You have to select at least %{smart_count} file',
97144
96743
  1: 'You have to select at least %{smart_count} files'
97145
96744
  },
96745
+ aggregateExceedsSize: 'You selected %{size} of files, but maximum allowed size is %{sizeAllowed}',
97146
96746
  exceedsSize: '%{file} exceeds maximum allowed size of %{size}',
97147
96747
  missingRequiredMetaField: 'Missing required meta fields',
97148
96748
  missingRequiredMetaFieldOnFile: 'Missing required meta fields in %{fileName}',
@@ -97185,10 +96785,11 @@ class Restricter {
97185
96785
  0: 'Added %{smart_count} file from %{folder}',
97186
96786
  1: 'Added %{smart_count} files from %{folder}'
97187
96787
  },
97188
- additionalRestrictionsFailed: '%{count} additional restrictions were not fulfilled'
96788
+ additionalRestrictionsFailed: '%{count} additional restrictions were not fulfilled',
96789
+ unnamed: 'Unnamed'
97189
96790
  }
97190
96791
  });
97191
- ;// CONCATENATED MODULE: ./node_modules/_@uppy_core@3.11.3@@uppy/core/lib/Uppy.js
96792
+ ;// CONCATENATED MODULE: ./node_modules/_@uppy_core@3.13.1@@uppy/core/lib/Uppy.js
97192
96793
  let Uppy_Symbol$for, _Symbol$for2;
97193
96794
  function Uppy_classPrivateFieldLooseBase(receiver, privateKey) { if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) { throw new TypeError("attempted to use private field on non-instance"); } return receiver; }
97194
96795
  var Uppy_id = 0;
@@ -97215,7 +96816,7 @@ function Uppy_classPrivateFieldLooseKey(name) { return "__private_" + Uppy_id++
97215
96816
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
97216
96817
  // @ts-ignore We don't want TS to generate types for the package.json
97217
96818
  const Uppy_packageJson = {
97218
- "version": "3.11.3"
96819
+ "version": "3.13.1"
97219
96820
  };
97220
96821
 
97221
96822
 
@@ -97633,6 +97234,13 @@ class Uppy {
97633
97234
  // @todo next major: rename to `clear()`, make it also cancel ongoing uploads
97634
97235
  // or throw and say you need to cancel manually
97635
97236
  clearUploadedFiles() {
97237
+ const {
97238
+ capabilities,
97239
+ currentUploads
97240
+ } = this.getState();
97241
+ if (Object.keys(currentUploads).length > 0 && !capabilities.individualCancellation) {
97242
+ throw new Error('The installed uploader plugin does not allow removing files during an upload.');
97243
+ }
97636
97244
  this.setState({
97637
97245
  ...defaultUploadState,
97638
97246
  files: {}
@@ -97925,7 +97533,7 @@ class Uppy {
97925
97533
  capabilities
97926
97534
  } = this.getState();
97927
97535
  if (newFileIDs.length !== currentUploads[uploadID].fileIDs.length && !capabilities.individualCancellation) {
97928
- throw new Error('individualCancellation is disabled');
97536
+ throw new Error('The installed uploader plugin does not allow removing files during an upload.');
97929
97537
  }
97930
97538
  updatedUploads[uploadID] = {
97931
97539
  ...currentUploads[uploadID],
@@ -98964,7 +98572,7 @@ async function _runUpload2(uploadID) {
98964
98572
  }
98965
98573
  Uppy.VERSION = Uppy_packageJson.version;
98966
98574
  /* harmony default export */ const lib_Uppy = (Uppy);
98967
- ;// CONCATENATED MODULE: ./node_modules/_@uppy_core@3.11.3@@uppy/core/dist/style.min.css
98575
+ ;// CONCATENATED MODULE: ./node_modules/_@uppy_core@3.13.1@@uppy/core/dist/style.min.css
98968
98576
  // extracted by mini-css-extract-plugin
98969
98577
 
98970
98578
  ;// CONCATENATED MODULE: ./node_modules/_js-base64@3.7.7@js-base64/base64.mjs
@@ -101007,7 +100615,7 @@ var _window = window,
101007
100615
  browser_Blob = _window.Blob;
101008
100616
  var isSupported = browser_XMLHttpRequest && browser_Blob && typeof browser_Blob.prototype.slice === 'function';
101009
100617
 
101010
- ;// CONCATENATED MODULE: ./node_modules/_@uppy_core@3.11.3@@uppy/core/lib/EventManager.js
100618
+ ;// CONCATENATED MODULE: ./node_modules/_@uppy_core@3.13.1@@uppy/core/lib/EventManager.js
101011
100619
  function EventManager_classPrivateFieldLooseBase(receiver, privateKey) { if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) { throw new TypeError("attempted to use private field on non-instance"); } return receiver; }
101012
100620
  var EventManager_id = 0;
101013
100621
  function EventManager_classPrivateFieldLooseKey(name) { return "__private_" + EventManager_id++ + "_" + name; }
@@ -121425,7 +121033,7 @@ module.exports = Url;
121425
121033
  /***/ 9366:
121426
121034
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
121427
121035
 
121428
- !function(e,t){ true?module.exports=t(__webpack_require__(4125)):0}(this,function(e){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s=3)}([function(t,n){t.exports=e},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=function(e){return e&&e.__esModule?e:{default:e}}(r),i=window.CodeMirror||o.default;"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(e),r=1;r<arguments.length;r++){var o=arguments[r];if(null!=o)for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}return n},writable:!0,configurable:!0}),t.default={name:"codemirror",data:function(){return{content:"",codemirror:null,cminstance:null}},props:{code:String,value:String,marker:Function,unseenLines:Array,name:{type:String,default:"codemirror"},placeholder:{type:String,default:""},merge:{type:Boolean,default:!1},options:{type:Object,default:function(){return{}}},events:{type:Array,default:function(){return[]}},globalOptions:{type:Object,default:function(){return{}}},globalEvents:{type:Array,default:function(){return[]}}},watch:{options:{deep:!0,handler:function(e){for(var t in e)this.cminstance.setOption(t,e[t])}},merge:function(){this.$nextTick(this.switchMerge)},code:function(e){this.handerCodeChange(e)},value:function(e){this.handerCodeChange(e)}},methods:{initialize:function(){var e=this,t=Object.assign({},this.globalOptions,this.options);this.merge?(this.codemirror=i.MergeView(this.$refs.mergeview,t),this.cminstance=this.codemirror.edit):(this.codemirror=i.fromTextArea(this.$refs.textarea,t),this.cminstance=this.codemirror,this.cminstance.setValue(this.code||this.value||this.content)),this.cminstance.on("change",function(t){e.content=t.getValue(),e.$emit&&e.$emit("input",e.content)});var n={};["scroll","changes","beforeChange","cursorActivity","keyHandled","inputRead","electricInput","beforeSelectionChange","viewportChange","swapDoc","gutterClick","gutterContextMenu","focus","blur","refresh","optionChange","scrollCursorIntoView","update"].concat(this.events).concat(this.globalEvents).filter(function(e){return!n[e]&&(n[e]=!0)}).forEach(function(t){e.cminstance.on(t,function(){for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];e.$emit.apply(e,[t].concat(r));var i=t.replace(/([A-Z])/g,"-$1").toLowerCase();i!==t&&e.$emit.apply(e,[i].concat(r))})});this.$emit("ready",this.codemirror),this.unseenLineMarkers(),this.refresh()},refresh:function(){var e=this;this.$nextTick(function(){e.cminstance.refresh()})},destroy:function(){var e=this.cminstance.doc.cm.getWrapperElement();e&&e.remove&&e.remove()},handerCodeChange:function(e){if(e!==this.cminstance.getValue()){var t=this.cminstance.getScrollInfo();this.cminstance.setValue(e),this.content=e,this.cminstance.scrollTo(t.left,t.top)}this.unseenLineMarkers()},unseenLineMarkers:function(){var e=this;void 0!==this.unseenLines&&void 0!==this.marker&&this.unseenLines.forEach(function(t){var n=e.cminstance.lineInfo(t);e.cminstance.setGutterMarker(t,"breakpoints",n.gutterMarkers?null:e.marker())})},switchMerge:function(){var e=this.cminstance.doc.history,t=this.cminstance.doc.cleanGeneration;this.options.value=this.cminstance.getValue(),this.destroy(),this.initialize(),this.cminstance.doc.history=e,this.cminstance.doc.cleanGeneration=t}},mounted:function(){this.initialize()},beforeDestroy:function(){this.destroy()}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n.n(r);for(var i in r)["default","default"].indexOf(i)<0&&function(e){n.d(t,e,function(){return r[e]})}(i);var s=n(5),c=n(4),a=c(o.a,s.a,!1,null,null,null);t.default=a.exports},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.install=t.codemirror=t.CodeMirror=void 0;var o=n(0),i=r(o),s=n(2),c=r(s),a=window.CodeMirror||i.default,u=function(e,t){t&&(t.options&&(c.default.props.globalOptions.default=function(){return t.options}),t.events&&(c.default.props.globalEvents.default=function(){return t.events})),e.component(c.default.name,c.default)},l={CodeMirror:a,codemirror:c.default,install:u};t.default=l,t.CodeMirror=a,t.codemirror=c.default,t.install=u},function(e,t){e.exports=function(e,t,n,r,o,i){var s,c=e=e||{},a=typeof e.default;"object"!==a&&"function"!==a||(s=e,c=e.default);var u="function"==typeof c?c.options:c;t&&(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0),n&&(u.functional=!0),o&&(u._scopeId=o);var l;if(i?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(i)},u._ssrRegister=l):r&&(l=r),l){var f=u.functional,d=f?u.render:u.beforeCreate;f?(u._injectStyles=l,u.render=function(e,t){return l.call(t),d(e,t)}):u.beforeCreate=d?[].concat(d,l):[l]}return{esModule:s,exports:c,options:u}}},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vue-codemirror",class:{merge:e.merge}},[e.merge?n("div",{ref:"mergeview"}):n("textarea",{ref:"textarea",attrs:{name:e.name,placeholder:e.placeholder}})])},o=[],i={render:r,staticRenderFns:o};t.a=i}])});
121036
+ !function(e,t){ true?module.exports=t(__webpack_require__(6386)):0}(this,function(e){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s=3)}([function(t,n){t.exports=e},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=function(e){return e&&e.__esModule?e:{default:e}}(r),i=window.CodeMirror||o.default;"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(e),r=1;r<arguments.length;r++){var o=arguments[r];if(null!=o)for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}return n},writable:!0,configurable:!0}),t.default={name:"codemirror",data:function(){return{content:"",codemirror:null,cminstance:null}},props:{code:String,value:String,marker:Function,unseenLines:Array,name:{type:String,default:"codemirror"},placeholder:{type:String,default:""},merge:{type:Boolean,default:!1},options:{type:Object,default:function(){return{}}},events:{type:Array,default:function(){return[]}},globalOptions:{type:Object,default:function(){return{}}},globalEvents:{type:Array,default:function(){return[]}}},watch:{options:{deep:!0,handler:function(e){for(var t in e)this.cminstance.setOption(t,e[t])}},merge:function(){this.$nextTick(this.switchMerge)},code:function(e){this.handerCodeChange(e)},value:function(e){this.handerCodeChange(e)}},methods:{initialize:function(){var e=this,t=Object.assign({},this.globalOptions,this.options);this.merge?(this.codemirror=i.MergeView(this.$refs.mergeview,t),this.cminstance=this.codemirror.edit):(this.codemirror=i.fromTextArea(this.$refs.textarea,t),this.cminstance=this.codemirror,this.cminstance.setValue(this.code||this.value||this.content)),this.cminstance.on("change",function(t){e.content=t.getValue(),e.$emit&&e.$emit("input",e.content)});var n={};["scroll","changes","beforeChange","cursorActivity","keyHandled","inputRead","electricInput","beforeSelectionChange","viewportChange","swapDoc","gutterClick","gutterContextMenu","focus","blur","refresh","optionChange","scrollCursorIntoView","update"].concat(this.events).concat(this.globalEvents).filter(function(e){return!n[e]&&(n[e]=!0)}).forEach(function(t){e.cminstance.on(t,function(){for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];e.$emit.apply(e,[t].concat(r));var i=t.replace(/([A-Z])/g,"-$1").toLowerCase();i!==t&&e.$emit.apply(e,[i].concat(r))})});this.$emit("ready",this.codemirror),this.unseenLineMarkers(),this.refresh()},refresh:function(){var e=this;this.$nextTick(function(){e.cminstance.refresh()})},destroy:function(){var e=this.cminstance.doc.cm.getWrapperElement();e&&e.remove&&e.remove()},handerCodeChange:function(e){if(e!==this.cminstance.getValue()){var t=this.cminstance.getScrollInfo();this.cminstance.setValue(e),this.content=e,this.cminstance.scrollTo(t.left,t.top)}this.unseenLineMarkers()},unseenLineMarkers:function(){var e=this;void 0!==this.unseenLines&&void 0!==this.marker&&this.unseenLines.forEach(function(t){var n=e.cminstance.lineInfo(t);e.cminstance.setGutterMarker(t,"breakpoints",n.gutterMarkers?null:e.marker())})},switchMerge:function(){var e=this.cminstance.doc.history,t=this.cminstance.doc.cleanGeneration;this.options.value=this.cminstance.getValue(),this.destroy(),this.initialize(),this.cminstance.doc.history=e,this.cminstance.doc.cleanGeneration=t}},mounted:function(){this.initialize()},beforeDestroy:function(){this.destroy()}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n.n(r);for(var i in r)["default","default"].indexOf(i)<0&&function(e){n.d(t,e,function(){return r[e]})}(i);var s=n(5),c=n(4),a=c(o.a,s.a,!1,null,null,null);t.default=a.exports},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.install=t.codemirror=t.CodeMirror=void 0;var o=n(0),i=r(o),s=n(2),c=r(s),a=window.CodeMirror||i.default,u=function(e,t){t&&(t.options&&(c.default.props.globalOptions.default=function(){return t.options}),t.events&&(c.default.props.globalEvents.default=function(){return t.events})),e.component(c.default.name,c.default)},l={CodeMirror:a,codemirror:c.default,install:u};t.default=l,t.CodeMirror=a,t.codemirror=c.default,t.install=u},function(e,t){e.exports=function(e,t,n,r,o,i){var s,c=e=e||{},a=typeof e.default;"object"!==a&&"function"!==a||(s=e,c=e.default);var u="function"==typeof c?c.options:c;t&&(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0),n&&(u.functional=!0),o&&(u._scopeId=o);var l;if(i?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(i)},u._ssrRegister=l):r&&(l=r),l){var f=u.functional,d=f?u.render:u.beforeCreate;f?(u._injectStyles=l,u.render=function(e,t){return l.call(t),d(e,t)}):u.beforeCreate=d?[].concat(d,l):[l]}return{esModule:s,exports:c,options:u}}},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vue-codemirror",class:{merge:e.merge}},[e.merge?n("div",{ref:"mergeview"}):n("textarea",{ref:"textarea",attrs:{name:e.name,placeholder:e.placeholder}})])},o=[],i={render:r,staticRenderFns:o};t.a=i}])});
121429
121037
 
121430
121038
  /***/ }),
121431
121039
 
@@ -136013,7 +135621,7 @@ var staticRenderFns = []
136013
135621
 
136014
135622
 
136015
135623
  // EXTERNAL MODULE: ./src/form/modules/components/index.js + 974 modules
136016
- var components = __webpack_require__(6020);
135624
+ var components = __webpack_require__(6801);
136017
135625
  ;// CONCATENATED MODULE: ./node_modules/_thread-loader@3.0.4@thread-loader/dist/cjs.js!./node_modules/_babel-loader@8.3.0@babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/common/Modals/CorrectionItem.vue?vue&type=script&lang=js
136018
135626
  //
136019
135627
  //
@@ -138076,7 +137684,7 @@ var component = (0,componentNormalizer/* default */.A)(
138076
137684
 
138077
137685
  /* harmony default export */ const CorrectionModal = (component.exports);
138078
137686
  // EXTERNAL MODULE: ./src/form/modules/components/index.js + 974 modules
138079
- var components = __webpack_require__(6020);
137687
+ var components = __webpack_require__(6801);
138080
137688
  // EXTERNAL MODULE: ./node_modules/_pubsub-js@1.9.4@pubsub-js/src/pubsub.js
138081
137689
  var pubsub = __webpack_require__(1528);
138082
137690
  var pubsub_default = /*#__PURE__*/__webpack_require__.n(pubsub);
@@ -139246,7 +138854,7 @@ var vuedraggable_umd_default = /*#__PURE__*/__webpack_require__.n(vuedraggable_u
139246
138854
  // EXTERNAL MODULE: ./src/api/manage.js
139247
138855
  var manage = __webpack_require__(8501);
139248
138856
  // EXTERNAL MODULE: ./src/form/modules/components/index.js + 974 modules
139249
- var components = __webpack_require__(6020);
138857
+ var components = __webpack_require__(6801);
139250
138858
  // EXTERNAL MODULE: ./src/form/util/Bus.js
139251
138859
  var Bus = __webpack_require__(1509);
139252
138860
  // EXTERNAL MODULE: ./src/form/modules/config/hnkj.js
@@ -155119,7 +154727,7 @@ function toString(value) {
155119
154727
  /***/ ((module) => {
155120
154728
 
155121
154729
  "use strict";
155122
- module.exports = /*#__PURE__*/JSON.parse('{"rE":"1.1.519-test.7"}');
154730
+ module.exports = {"rE":"1.1.520"};
155123
154731
 
155124
154732
  /***/ })
155125
154733
 
@@ -157072,8 +156680,8 @@ var staticRenderFns = []
157072
156680
  var es_array_push = __webpack_require__(6538);
157073
156681
  // EXTERNAL MODULE: ./node_modules/_core-js@3.37.1@core-js/modules/es.json.stringify.js
157074
156682
  var es_json_stringify = __webpack_require__(8446);
157075
- // EXTERNAL MODULE: ./node_modules/_jsplumb@2.11.2@jsplumb/dist/js/jsplumb.js
157076
- var jsplumb = __webpack_require__(2210);
156683
+ // EXTERNAL MODULE: ./node_modules/_jsplumb@2.9.2@jsplumb/dist/js/jsplumb.js
156684
+ var jsplumb = __webpack_require__(9365);
157077
156685
  ;// CONCATENATED MODULE: ./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/flow/node.vue?vue&type=template&id=791fbca8&scoped=true
157078
156686
  var nodevue_type_template_id_791fbca8_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('vdr',{ref:"aa",staticClass:"vdr-no-border",attrs:{"w":_vm.node.width ? _vm.node.width : _vm.flowNodeContainer.width,"h":_vm.node.height ? _vm.node.height : _vm.flowNodeContainer.height,"x":_vm.flowNodeContainer.left,"y":_vm.flowNodeContainer.top,"draggable":_vm.flag && _vm.isFlowPanelMain,"resizable":false,"snap":true,"snap-tolerance":20},on:{"resizing":_vm.onResizing,"resizestop":_vm.onResizstop}},[_c('div',{ref:"node",staticClass:"flow-view",on:{"mouseenter":_vm.showDelete,"mouseleave":_vm.hideDelete,"dblclick":function($event){$event.stopPropagation();return _vm.clickNode.apply(null, arguments)},"mouseup":_vm.changeNodeSite,"contextmenu":function($event){$event.preventDefault();return _vm.editMenu.apply(null, arguments)},"click":function($event){$event.stopPropagation();return _vm.clickNodeOne.apply(null, arguments)}}},[_c('div',{class:_vm.node.info.cls},[_c('div',{staticClass:"inner",style:({backgroundColor: _vm.$route.query.nodeId && _vm.$route.query.nodeId === _vm.node.id ? 'red' : 'orange'})},[(_vm.node.info.type == 'comm')?_c('svg-icon',{staticStyle:{"height":"28px","font-size":"18px","margin":"0 5px"},attrs:{"iconName":"icon-icon-user"}}):_vm._e(),(_vm.lineTodo)?_c('i',{class:_vm.nodeClass}):_vm._e(),(_vm.lineTodo)?_c('i',{class:_vm.nodeClass}):_vm._e(),(_vm.lineTodo)?_c('i',{class:_vm.nodeClass}):_vm._e(),(_vm.lineTodo)?_c('i',{class:_vm.nodeClass}):_vm._e(),(_vm.node.info.type == 'comm')?_c('span',[_vm._v(_vm._s(_vm.node.info.title))]):_vm._e()],1),(_vm.node.info && _vm.node.info.type == 'comm' && _vm.node.info.taskAssigneeList && _vm.node.info.taskAssigneeList.length > 0 && _vm.node.info.taskAssigneeList.some(function (item) { return item.title; }))?_c('div',{staticClass:"text",attrs:{"title":_vm.node.info.taskAssigneeList.map(function (item) { return item.title; }).join(',')}},[_vm._v(" "+_vm._s(_vm.node.info.taskAssigneeList.map(function (item) { return item.title; }).join(','))+" ")]):_vm._e()]),(_vm.dropMenu)?_c('ul',{staticClass:"dropMenu"},[_c('li',{staticStyle:{"font-size":"16px"},on:{"click":_vm.editNode}},[_c('svg-icon',{attrs:{"iconName":"icon-shezhi"}})],1),_c('li',{on:{"click":_vm.deleteNode}},[_c('svg-icon',{staticStyle:{"font-size":"14px"},attrs:{"iconName":"icon-shanchu"}})],1)]):_vm._e(),(_vm.node.info.name === '普通' && _vm.addBtn)?_c('div',_vm._l((_vm.addButtonList),function(item,index){return _c('div',{staticClass:"dropMenuItem",style:({ top: item.top, right: item.right, display: 'block !important', opacity: 1 }),attrs:{"tabindex":index},on:{"click":function($event){$event.stopPropagation();return _vm.clickMenuItem(index)}}},[_c('a-icon',{attrs:{"type":"plus-circle"}}),(item.flag)?_c('div',{staticStyle:{"width":"105px","padding":"10px 6px","background-color":"#fff","color":"#333","font-size":"14px","border-radius":"10px","overflow":"hidden","box-shadow":"0px 3px 6px rgba(0,0,0,0.04)"}},[_c('div',{staticClass:"h-model-item",on:{"click":function($event){$event.stopPropagation();return _vm.addNodeListItem(item.type, index, 'yh')}}},[_vm._v("用户任务")]),(!_vm.nodeList.some(function (info) { return info.id === 'EndEvent'; }))?_c('div',{staticClass:"h-model-item",on:{"click":function($event){$event.stopPropagation();return _vm.addNodeListItem(item.type, index, 'js')}}},[_vm._v("结束节点")]):_vm._e()]):_vm._e()],1)}),0):_vm._e()])])}
157079
156687
  var nodevue_type_template_id_791fbca8_scoped_true_staticRenderFns = []
@@ -157726,7 +157334,7 @@ var vue_codemirror = __webpack_require__(9366);
157726
157334
  //
157727
157335
 
157728
157336
 
157729
- __webpack_require__(2864);
157337
+ __webpack_require__(4275);
157730
157338
  /* harmony default export */ const infovue_type_script_lang_js = ({
157731
157339
  data() {
157732
157340
  return {
@@ -169730,7 +169338,7 @@ var es_array_unshift = __webpack_require__(5041);
169730
169338
  // EXTERNAL MODULE: ./src/form/util/util.js
169731
169339
  var util_util = __webpack_require__(4063);
169732
169340
  // EXTERNAL MODULE: ./src/form/modules/components/index.js + 974 modules
169733
- var components = __webpack_require__(6020);
169341
+ var components = __webpack_require__(6801);
169734
169342
  // EXTERNAL MODULE: ./src/form/modules/widgetFormItem.vue + 6 modules
169735
169343
  var widgetFormItem = __webpack_require__(2895);
169736
169344
  // EXTERNAL MODULE: ./src/form/modules/WidgetIdeaSignItem.vue + 5 modules
@@ -173600,7 +173208,7 @@ var clipboard_default = /*#__PURE__*/__webpack_require__.n(clipboard);
173600
173208
 
173601
173209
 
173602
173210
 
173603
- __webpack_require__(2864);
173211
+ __webpack_require__(4275);
173604
173212
 
173605
173213
 
173606
173214
 
@@ -180325,8 +179933,8 @@ window.Formula = dist_formula.Formula;
180325
179933
 
180326
179934
 
180327
179935
 
180328
- const CodeMirror = window.CodeMirror = __webpack_require__(4125);
180329
- __webpack_require__(5503);
179936
+ const entry_lib_CodeMirror = window.CodeMirror = __webpack_require__(6386);
179937
+ __webpack_require__(9112);
180330
179938
  __webpack_require__(2177);
180331
179939
  __webpack_require__(9719);
180332
179940
 
@@ -180798,10 +180406,10 @@ list_2.forEach(item => {
180798
180406
  initCodeMirror() {
180799
180407
  this.initFormula = this.data.formula;
180800
180408
  this.form = this.data;
180801
- CodeMirror.keywords = keywords;
180802
- CodeMirror.keywordsMap = keywordsMap;
180803
- CodeMirror.feildKeywords = this.boData;
180804
- this.editor = CodeMirror.fromTextArea(this.$refs.formula, {
180409
+ entry_lib_CodeMirror.keywords = keywords;
180410
+ entry_lib_CodeMirror.keywordsMap = keywordsMap;
180411
+ entry_lib_CodeMirror.feildKeywords = this.boData;
180412
+ this.editor = entry_lib_CodeMirror.fromTextArea(this.$refs.formula, {
180805
180413
  line: true,
180806
180414
  autoCloseTags: true,
180807
180415
  autofocus: false,
@@ -180826,7 +180434,7 @@ list_2.forEach(item => {
180826
180434
  if (token.type === 'field') {
180827
180435
  // 删除字段 || "keyword" == token.type
180828
180436
  const line = cm.getCursor().line;
180829
- cm.setSelection(new CodeMirror.Pos(line, token.start), new CodeMirror.Pos(line, token.end));
180437
+ cm.setSelection(new entry_lib_CodeMirror.Pos(line, token.start), new entry_lib_CodeMirror.Pos(line, token.end));
180830
180438
  cm.replaceSelection('', null, '+delete');
180831
180439
  } else {
180832
180440
  cm.execCommand('delCharBefore');
@@ -180842,7 +180450,7 @@ list_2.forEach(item => {
180842
180450
  });
180843
180451
  this.editor.setSize('100%', '180px');
180844
180452
  this.editor.on('cursorActivity', function (editor, b) {
180845
- CodeMirror.showHint(editor, CodeMirror.formulaHint, {
180453
+ entry_lib_CodeMirror.showHint(editor, entry_lib_CodeMirror.formulaHint, {
180846
180454
  completeSingle: false
180847
180455
  });
180848
180456
  });
@@ -180948,9 +180556,9 @@ list_2.forEach(item => {
180948
180556
  const g = c.replace('$', '').split('#');
180949
180557
  const field = g[0];
180950
180558
  const entry = g[1];
180951
- const from = CodeMirror.Pos(a, e.length);
180559
+ const from = entry_lib_CodeMirror.Pos(a, e.length);
180952
180560
  e += '​' + label + '​';
180953
- const to = CodeMirror.Pos(a, e.length);
180561
+ const to = entry_lib_CodeMirror.Pos(a, e.length);
180954
180562
  d.push({
180955
180563
  from: from,
180956
180564
  to: to,