@teselagen/ove 0.4.1 → 0.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs.js +556 -351
- package/index.es.js +557 -352
- package/index.umd.js +455 -222
- package/package.json +4 -4
- package/src/AlignmentView/Minimap.js +3 -8
- package/src/LinearView/index.js +11 -8
- package/src/LinearView/style.css +1 -1
- package/src/RowItem/Axis.js +1 -3
- package/src/RowItem/index.js +6 -6
- package/src/commands/index.js +8 -6
- package/src/style.css +4 -4
- package/src/withEditorInteractions/index.js +49 -47
- package/style.css +28 -5
package/index.cjs.js
CHANGED
|
@@ -64,8 +64,8 @@ const ReactDOM$1 = require("react-dom");
|
|
|
64
64
|
const reduxForm = require("redux-form");
|
|
65
65
|
const reactRedux = require("react-redux");
|
|
66
66
|
const select = require("@blueprintjs/select");
|
|
67
|
-
const datetime = require("@blueprintjs/datetime");
|
|
68
67
|
const redux = require("redux");
|
|
68
|
+
const datetime = require("@blueprintjs/datetime");
|
|
69
69
|
function _interopNamespaceDefault(e2) {
|
|
70
70
|
const n2 = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
71
71
|
if (e2) {
|
|
@@ -2839,7 +2839,7 @@ var followCursor = {
|
|
|
2839
2839
|
}
|
|
2840
2840
|
}
|
|
2841
2841
|
__name(onMouseMove, "onMouseMove");
|
|
2842
|
-
function
|
|
2842
|
+
function create6() {
|
|
2843
2843
|
if (instance.props.followCursor) {
|
|
2844
2844
|
activeInstances.push({
|
|
2845
2845
|
instance,
|
|
@@ -2848,7 +2848,7 @@ var followCursor = {
|
|
|
2848
2848
|
addMouseCoordsListener(doc);
|
|
2849
2849
|
}
|
|
2850
2850
|
}
|
|
2851
|
-
__name(
|
|
2851
|
+
__name(create6, "create");
|
|
2852
2852
|
function destroy2() {
|
|
2853
2853
|
activeInstances = activeInstances.filter(function(data) {
|
|
2854
2854
|
return data.instance !== instance;
|
|
@@ -2861,7 +2861,7 @@ var followCursor = {
|
|
|
2861
2861
|
}
|
|
2862
2862
|
__name(destroy2, "destroy");
|
|
2863
2863
|
return {
|
|
2864
|
-
onCreate:
|
|
2864
|
+
onCreate: create6,
|
|
2865
2865
|
onDestroy: destroy2,
|
|
2866
2866
|
onBeforeUpdate: /* @__PURE__ */ __name(function onBeforeUpdate2() {
|
|
2867
2867
|
prevProps = instance.props;
|
|
@@ -2874,7 +2874,7 @@ var followCursor = {
|
|
|
2874
2874
|
if (followCursor2 !== void 0 && prevProps.followCursor !== followCursor2) {
|
|
2875
2875
|
destroy2();
|
|
2876
2876
|
if (followCursor2) {
|
|
2877
|
-
|
|
2877
|
+
create6();
|
|
2878
2878
|
if (instance.state.isMounted && !wasFocusEvent && !getIsInitialBehavior()) {
|
|
2879
2879
|
addListener();
|
|
2880
2880
|
}
|
|
@@ -3041,7 +3041,7 @@ let clearMe;
|
|
|
3041
3041
|
inner2(dataTip, el, opts2);
|
|
3042
3042
|
break;
|
|
3043
3043
|
} else if (isEllipsized && el.offsetWidth < el.scrollWidth - 4 && //the -4 is adding a teeny bit of tolerance to fix issues with the column headers getting tooltips even when fully visible
|
|
3044
|
-
!el.classList.contains("no-data-tip") && !document.body.classList.contains("drag-active") && el.textContent && ((_b2 = (_a2 = el.textContent) == null ? void 0 : _a2.trim) == null ? void 0 : _b2.call(_a2).length) !== 0) {
|
|
3044
|
+
!el.classList.contains("no-data-tip") && !parentIncludesNoChildDataTip(el, 0) && !document.body.classList.contains("drag-active") && el.textContent && ((_b2 = (_a2 = el.textContent) == null ? void 0 : _a2.trim) == null ? void 0 : _b2.call(_a2).length) !== 0) {
|
|
3045
3045
|
inner2(el.textContent, el, opts2);
|
|
3046
3046
|
break;
|
|
3047
3047
|
} else if (isEllipsized && el.offsetWidth >= el.scrollWidth)
|
|
@@ -3054,6 +3054,28 @@ let clearMe;
|
|
|
3054
3054
|
}
|
|
3055
3055
|
});
|
|
3056
3056
|
})();
|
|
3057
|
+
function parentIncludesNoChildDataTip(el, count2) {
|
|
3058
|
+
if (count2 > 4)
|
|
3059
|
+
return false;
|
|
3060
|
+
if (!el)
|
|
3061
|
+
return false;
|
|
3062
|
+
if (el.getAttribute("data-no-child-data-tip"))
|
|
3063
|
+
return true;
|
|
3064
|
+
return parentIncludesNoChildDataTip(el.parentElement, count2 + 1);
|
|
3065
|
+
}
|
|
3066
|
+
__name(parentIncludesNoChildDataTip, "parentIncludesNoChildDataTip");
|
|
3067
|
+
const LoadingDots = /* @__PURE__ */ __name(() => {
|
|
3068
|
+
const [dots, setDots] = React$2.useState("");
|
|
3069
|
+
React$2.useEffect(() => {
|
|
3070
|
+
const interval = setInterval(() => {
|
|
3071
|
+
setDots((dots2) => {
|
|
3072
|
+
return dots2.length === 3 ? "" : dots2 + ".";
|
|
3073
|
+
});
|
|
3074
|
+
}, 500);
|
|
3075
|
+
return () => clearInterval(interval);
|
|
3076
|
+
}, []);
|
|
3077
|
+
return /* @__PURE__ */ React$2.createElement("span", null, dots);
|
|
3078
|
+
}, "LoadingDots");
|
|
3057
3079
|
const AssignDefaultsModeContext = React$2.createContext({
|
|
3058
3080
|
inAssignDefaultsMode: false,
|
|
3059
3081
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
@@ -5515,10 +5537,10 @@ var ownKeys$7 = typeof Reflect !== "undefined" && Reflect.ownKeys ? Reflect.ownK
|
|
|
5515
5537
|
/* istanbul ignore next */
|
|
5516
5538
|
Object.getOwnPropertyNames
|
|
5517
5539
|
);
|
|
5518
|
-
function toPrimitive$
|
|
5540
|
+
function toPrimitive$2(value) {
|
|
5519
5541
|
return value === null ? null : typeof value === "object" ? "" + value : value;
|
|
5520
5542
|
}
|
|
5521
|
-
__name(toPrimitive$
|
|
5543
|
+
__name(toPrimitive$2, "toPrimitive$2");
|
|
5522
5544
|
function hasProp(target, prop2) {
|
|
5523
5545
|
return objectPrototype$1.hasOwnProperty.call(target, prop2);
|
|
5524
5546
|
}
|
|
@@ -6415,7 +6437,7 @@ var ObservableValue = /* @__PURE__ */ function(_Atom) {
|
|
|
6415
6437
|
return this.name_ + "[" + this.value_ + "]";
|
|
6416
6438
|
}, "toString");
|
|
6417
6439
|
_proto.valueOf = /* @__PURE__ */ __name(function valueOf() {
|
|
6418
|
-
return toPrimitive$
|
|
6440
|
+
return toPrimitive$2(this.get());
|
|
6419
6441
|
}, "valueOf");
|
|
6420
6442
|
_proto[_Symbol$toPrimitive] = function() {
|
|
6421
6443
|
return this.valueOf();
|
|
@@ -6600,7 +6622,7 @@ var ComputedValue = /* @__PURE__ */ function() {
|
|
|
6600
6622
|
return this.name_ + "[" + this.derivation.toString() + "]";
|
|
6601
6623
|
}, "toString");
|
|
6602
6624
|
_proto.valueOf = /* @__PURE__ */ __name(function valueOf() {
|
|
6603
|
-
return toPrimitive$
|
|
6625
|
+
return toPrimitive$2(this.get());
|
|
6604
6626
|
}, "valueOf");
|
|
6605
6627
|
_proto[_Symbol$toPrimitive$1] = function() {
|
|
6606
6628
|
return this.valueOf();
|
|
@@ -11234,7 +11256,7 @@ lodash.exports;
|
|
|
11234
11256
|
"^" + funcToString2.call(hasOwnProperty2).replace(reRegExpChar2, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
11235
11257
|
);
|
|
11236
11258
|
var Buffer2 = moduleExports2 ? context.Buffer : undefined$12, Symbol2 = context.Symbol, Uint8Array2 = context.Uint8Array, allocUnsafe2 = Buffer2 ? Buffer2.allocUnsafe : undefined$12, getPrototype2 = overArg2(Object2.getPrototypeOf, Object2), objectCreate2 = Object2.create, propertyIsEnumerable3 = objectProto2.propertyIsEnumerable, splice3 = arrayProto2.splice, spreadableSymbol2 = Symbol2 ? Symbol2.isConcatSpreadable : undefined$12, symIterator = Symbol2 ? Symbol2.iterator : undefined$12, symToStringTag2 = Symbol2 ? Symbol2.toStringTag : undefined$12;
|
|
11237
|
-
var
|
|
11259
|
+
var defineProperty5 = function() {
|
|
11238
11260
|
try {
|
|
11239
11261
|
var func = getNative2(Object2, "defineProperty");
|
|
11240
11262
|
func({}, "", {});
|
|
@@ -11674,8 +11696,8 @@ lodash.exports;
|
|
|
11674
11696
|
}
|
|
11675
11697
|
__name(baseAssignIn2, "baseAssignIn");
|
|
11676
11698
|
function baseAssignValue2(object3, key, value) {
|
|
11677
|
-
if (key == "__proto__" &&
|
|
11678
|
-
|
|
11699
|
+
if (key == "__proto__" && defineProperty5) {
|
|
11700
|
+
defineProperty5(object3, key, {
|
|
11679
11701
|
"configurable": true,
|
|
11680
11702
|
"enumerable": true,
|
|
11681
11703
|
"value": value,
|
|
@@ -12408,8 +12430,8 @@ lodash.exports;
|
|
|
12408
12430
|
metaMap.set(func, data);
|
|
12409
12431
|
return func;
|
|
12410
12432
|
};
|
|
12411
|
-
var baseSetToString2 = !
|
|
12412
|
-
return
|
|
12433
|
+
var baseSetToString2 = !defineProperty5 ? identity4 : function(func, string2) {
|
|
12434
|
+
return defineProperty5(func, "toString", {
|
|
12413
12435
|
"configurable": true,
|
|
12414
12436
|
"enumerable": false,
|
|
12415
12437
|
"value": constant2(string2),
|
|
@@ -15143,11 +15165,11 @@ lodash.exports;
|
|
|
15143
15165
|
copyObject2(source, keys5(source), object3, customizer);
|
|
15144
15166
|
});
|
|
15145
15167
|
var at = flatRest2(baseAt);
|
|
15146
|
-
function
|
|
15168
|
+
function create6(prototype, properties) {
|
|
15147
15169
|
var result2 = baseCreate2(prototype);
|
|
15148
15170
|
return properties == null ? result2 : baseAssign2(result2, properties);
|
|
15149
15171
|
}
|
|
15150
|
-
__name(
|
|
15172
|
+
__name(create6, "create");
|
|
15151
15173
|
var defaults2 = baseRest2(function(object3, sources) {
|
|
15152
15174
|
object3 = Object2(object3);
|
|
15153
15175
|
var index2 = -1;
|
|
@@ -15972,7 +15994,7 @@ lodash.exports;
|
|
|
15972
15994
|
lodash2.conforms = conforms;
|
|
15973
15995
|
lodash2.constant = constant2;
|
|
15974
15996
|
lodash2.countBy = countBy;
|
|
15975
|
-
lodash2.create =
|
|
15997
|
+
lodash2.create = create6;
|
|
15976
15998
|
lodash2.curry = curry;
|
|
15977
15999
|
lodash2.curryRight = curryRight;
|
|
15978
16000
|
lodash2.debounce = debounce2;
|
|
@@ -16933,11 +16955,20 @@ var _fails = /* @__PURE__ */ __name(function(exec) {
|
|
|
16933
16955
|
return true;
|
|
16934
16956
|
}
|
|
16935
16957
|
}, "_fails");
|
|
16936
|
-
var _descriptors
|
|
16937
|
-
|
|
16938
|
-
|
|
16939
|
-
|
|
16940
|
-
|
|
16958
|
+
var _descriptors;
|
|
16959
|
+
var hasRequired_descriptors;
|
|
16960
|
+
function require_descriptors() {
|
|
16961
|
+
if (hasRequired_descriptors)
|
|
16962
|
+
return _descriptors;
|
|
16963
|
+
hasRequired_descriptors = 1;
|
|
16964
|
+
_descriptors = !_fails(function() {
|
|
16965
|
+
return Object.defineProperty({}, "a", { get: function() {
|
|
16966
|
+
return 7;
|
|
16967
|
+
} }).a != 7;
|
|
16968
|
+
});
|
|
16969
|
+
return _descriptors;
|
|
16970
|
+
}
|
|
16971
|
+
__name(require_descriptors, "require_descriptors");
|
|
16941
16972
|
var _domCreate;
|
|
16942
16973
|
var hasRequired_domCreate;
|
|
16943
16974
|
function require_domCreate() {
|
|
@@ -16953,11 +16984,20 @@ function require_domCreate() {
|
|
|
16953
16984
|
return _domCreate;
|
|
16954
16985
|
}
|
|
16955
16986
|
__name(require_domCreate, "require_domCreate");
|
|
16956
|
-
var _ie8DomDefine
|
|
16957
|
-
|
|
16958
|
-
|
|
16959
|
-
|
|
16960
|
-
|
|
16987
|
+
var _ie8DomDefine;
|
|
16988
|
+
var hasRequired_ie8DomDefine;
|
|
16989
|
+
function require_ie8DomDefine() {
|
|
16990
|
+
if (hasRequired_ie8DomDefine)
|
|
16991
|
+
return _ie8DomDefine;
|
|
16992
|
+
hasRequired_ie8DomDefine = 1;
|
|
16993
|
+
_ie8DomDefine = !require_descriptors() && !_fails(function() {
|
|
16994
|
+
return Object.defineProperty(require_domCreate()("div"), "a", { get: function() {
|
|
16995
|
+
return 7;
|
|
16996
|
+
} }).a != 7;
|
|
16997
|
+
});
|
|
16998
|
+
return _ie8DomDefine;
|
|
16999
|
+
}
|
|
17000
|
+
__name(require_ie8DomDefine, "require_ie8DomDefine");
|
|
16961
17001
|
var isObject$d = _isObject;
|
|
16962
17002
|
var _toPrimitive$1 = /* @__PURE__ */ __name(function(it, S2) {
|
|
16963
17003
|
if (!isObject$d(it))
|
|
@@ -16971,25 +17011,33 @@ var _toPrimitive$1 = /* @__PURE__ */ __name(function(it, S2) {
|
|
|
16971
17011
|
return val2;
|
|
16972
17012
|
throw TypeError("Can't convert object to primitive value");
|
|
16973
17013
|
}, "_toPrimitive$1");
|
|
16974
|
-
var
|
|
16975
|
-
|
|
16976
|
-
|
|
16977
|
-
|
|
16978
|
-
|
|
16979
|
-
|
|
16980
|
-
|
|
16981
|
-
|
|
16982
|
-
|
|
16983
|
-
|
|
16984
|
-
|
|
16985
|
-
|
|
16986
|
-
|
|
16987
|
-
|
|
16988
|
-
|
|
16989
|
-
|
|
16990
|
-
|
|
16991
|
-
|
|
16992
|
-
|
|
17014
|
+
var hasRequired_objectDp;
|
|
17015
|
+
function require_objectDp() {
|
|
17016
|
+
if (hasRequired_objectDp)
|
|
17017
|
+
return _objectDp;
|
|
17018
|
+
hasRequired_objectDp = 1;
|
|
17019
|
+
var anObject2 = _anObject;
|
|
17020
|
+
var IE8_DOM_DEFINE2 = require_ie8DomDefine();
|
|
17021
|
+
var toPrimitive2 = _toPrimitive$1;
|
|
17022
|
+
var dP2 = Object.defineProperty;
|
|
17023
|
+
_objectDp.f = require_descriptors() ? Object.defineProperty : /* @__PURE__ */ __name(function defineProperty5(O2, P2, Attributes) {
|
|
17024
|
+
anObject2(O2);
|
|
17025
|
+
P2 = toPrimitive2(P2, true);
|
|
17026
|
+
anObject2(Attributes);
|
|
17027
|
+
if (IE8_DOM_DEFINE2)
|
|
17028
|
+
try {
|
|
17029
|
+
return dP2(O2, P2, Attributes);
|
|
17030
|
+
} catch (e2) {
|
|
17031
|
+
}
|
|
17032
|
+
if ("get" in Attributes || "set" in Attributes)
|
|
17033
|
+
throw TypeError("Accessors not supported!");
|
|
17034
|
+
if ("value" in Attributes)
|
|
17035
|
+
O2[P2] = Attributes.value;
|
|
17036
|
+
return O2;
|
|
17037
|
+
}, "defineProperty");
|
|
17038
|
+
return _objectDp;
|
|
17039
|
+
}
|
|
17040
|
+
__name(require_objectDp, "require_objectDp");
|
|
16993
17041
|
var _propertyDesc = /* @__PURE__ */ __name(function(bitmap, value) {
|
|
16994
17042
|
return {
|
|
16995
17043
|
enumerable: !(bitmap & 1),
|
|
@@ -16998,10 +17046,10 @@ var _propertyDesc = /* @__PURE__ */ __name(function(bitmap, value) {
|
|
|
16998
17046
|
value
|
|
16999
17047
|
};
|
|
17000
17048
|
}, "_propertyDesc");
|
|
17001
|
-
var dP$
|
|
17049
|
+
var dP$2 = require_objectDp();
|
|
17002
17050
|
var createDesc$3 = _propertyDesc;
|
|
17003
|
-
var _hide =
|
|
17004
|
-
return dP$
|
|
17051
|
+
var _hide = require_descriptors() ? function(object3, key, value) {
|
|
17052
|
+
return dP$2.f(object3, key, createDesc$3(1, value));
|
|
17005
17053
|
} : function(object3, key, value) {
|
|
17006
17054
|
object3[key] = value;
|
|
17007
17055
|
return object3;
|
|
@@ -17015,7 +17063,7 @@ var core$3 = _coreExports;
|
|
|
17015
17063
|
var ctx$1 = _ctx;
|
|
17016
17064
|
var hide$3 = _hide;
|
|
17017
17065
|
var has$e = _has;
|
|
17018
|
-
var PROTOTYPE$
|
|
17066
|
+
var PROTOTYPE$2 = "prototype";
|
|
17019
17067
|
var $export$8 = /* @__PURE__ */ __name(function(type, name2, source) {
|
|
17020
17068
|
var IS_FORCED = type & $export$8.F;
|
|
17021
17069
|
var IS_GLOBAL = type & $export$8.G;
|
|
@@ -17024,8 +17072,8 @@ var $export$8 = /* @__PURE__ */ __name(function(type, name2, source) {
|
|
|
17024
17072
|
var IS_BIND = type & $export$8.B;
|
|
17025
17073
|
var IS_WRAP = type & $export$8.W;
|
|
17026
17074
|
var exports2 = IS_GLOBAL ? core$3 : core$3[name2] || (core$3[name2] = {});
|
|
17027
|
-
var expProto = exports2[PROTOTYPE$
|
|
17028
|
-
var target = IS_GLOBAL ? global$5 : IS_STATIC ? global$5[name2] : (global$5[name2] || {})[PROTOTYPE$
|
|
17075
|
+
var expProto = exports2[PROTOTYPE$2];
|
|
17076
|
+
var target = IS_GLOBAL ? global$5 : IS_STATIC ? global$5[name2] : (global$5[name2] || {})[PROTOTYPE$2];
|
|
17029
17077
|
var key, own2, out;
|
|
17030
17078
|
if (IS_GLOBAL)
|
|
17031
17079
|
source = name2;
|
|
@@ -17049,7 +17097,7 @@ var $export$8 = /* @__PURE__ */ __name(function(type, name2, source) {
|
|
|
17049
17097
|
}
|
|
17050
17098
|
return C.apply(this, arguments);
|
|
17051
17099
|
}, "F");
|
|
17052
|
-
F[PROTOTYPE$
|
|
17100
|
+
F[PROTOTYPE$2] = C[PROTOTYPE$2];
|
|
17053
17101
|
return F;
|
|
17054
17102
|
}(out) : IS_PROTO && typeof out == "function" ? ctx$1(Function.call, out) : out;
|
|
17055
17103
|
if (IS_PROTO) {
|
|
@@ -17163,14 +17211,14 @@ var _sharedKey = /* @__PURE__ */ __name(function(key) {
|
|
|
17163
17211
|
var has$d = _has;
|
|
17164
17212
|
var toIObject$4 = _toIobject;
|
|
17165
17213
|
var arrayIndexOf = _arrayIncludes$1(false);
|
|
17166
|
-
var IE_PROTO$
|
|
17214
|
+
var IE_PROTO$2 = _sharedKey("IE_PROTO");
|
|
17167
17215
|
var _objectKeysInternal = /* @__PURE__ */ __name(function(object3, names2) {
|
|
17168
17216
|
var O2 = toIObject$4(object3);
|
|
17169
17217
|
var i = 0;
|
|
17170
17218
|
var result = [];
|
|
17171
17219
|
var key;
|
|
17172
17220
|
for (key in O2)
|
|
17173
|
-
if (key != IE_PROTO$
|
|
17221
|
+
if (key != IE_PROTO$2)
|
|
17174
17222
|
has$d(O2, key) && result.push(key);
|
|
17175
17223
|
while (names2.length > i)
|
|
17176
17224
|
if (has$d(O2, key = names2[i++])) {
|
|
@@ -17180,14 +17228,22 @@ var _objectKeysInternal = /* @__PURE__ */ __name(function(object3, names2) {
|
|
|
17180
17228
|
}, "_objectKeysInternal");
|
|
17181
17229
|
var _enumBugKeys = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",");
|
|
17182
17230
|
var $keys$3 = _objectKeysInternal;
|
|
17183
|
-
var enumBugKeys = _enumBugKeys;
|
|
17231
|
+
var enumBugKeys$1 = _enumBugKeys;
|
|
17184
17232
|
var _objectKeys = Object.keys || /* @__PURE__ */ __name(function keys(O2) {
|
|
17185
|
-
return $keys$3(O2, enumBugKeys);
|
|
17233
|
+
return $keys$3(O2, enumBugKeys$1);
|
|
17186
17234
|
}, "keys");
|
|
17187
17235
|
var _objectGops = {};
|
|
17188
17236
|
_objectGops.f = Object.getOwnPropertySymbols;
|
|
17189
17237
|
var _objectPie = {};
|
|
17190
|
-
|
|
17238
|
+
var hasRequired_objectPie;
|
|
17239
|
+
function require_objectPie() {
|
|
17240
|
+
if (hasRequired_objectPie)
|
|
17241
|
+
return _objectPie;
|
|
17242
|
+
hasRequired_objectPie = 1;
|
|
17243
|
+
_objectPie.f = {}.propertyIsEnumerable;
|
|
17244
|
+
return _objectPie;
|
|
17245
|
+
}
|
|
17246
|
+
__name(require_objectPie, "require_objectPie");
|
|
17191
17247
|
var defined$1 = _defined;
|
|
17192
17248
|
var _toObject = /* @__PURE__ */ __name(function(it) {
|
|
17193
17249
|
return Object(defined$1(it));
|
|
@@ -17198,10 +17254,10 @@ function require_objectAssign() {
|
|
|
17198
17254
|
if (hasRequired_objectAssign)
|
|
17199
17255
|
return _objectAssign;
|
|
17200
17256
|
hasRequired_objectAssign = 1;
|
|
17201
|
-
var DESCRIPTORS2 =
|
|
17257
|
+
var DESCRIPTORS2 = require_descriptors();
|
|
17202
17258
|
var getKeys2 = _objectKeys;
|
|
17203
17259
|
var gOPS2 = _objectGops;
|
|
17204
|
-
var pIE2 =
|
|
17260
|
+
var pIE2 = require_objectPie();
|
|
17205
17261
|
var toObject2 = _toObject;
|
|
17206
17262
|
var IObject2 = require_iobject();
|
|
17207
17263
|
var $assign = Object.assign;
|
|
@@ -17264,28 +17320,19 @@ var _iterStep = /* @__PURE__ */ __name(function(done, value) {
|
|
|
17264
17320
|
}, "_iterStep");
|
|
17265
17321
|
var _iterators = {};
|
|
17266
17322
|
var _redefine = _hide;
|
|
17267
|
-
var
|
|
17268
|
-
var
|
|
17269
|
-
|
|
17270
|
-
|
|
17271
|
-
|
|
17272
|
-
|
|
17273
|
-
var
|
|
17274
|
-
var
|
|
17275
|
-
var
|
|
17276
|
-
|
|
17277
|
-
|
|
17278
|
-
|
|
17279
|
-
|
|
17280
|
-
var i = 0;
|
|
17281
|
-
var P2;
|
|
17282
|
-
while (length > i)
|
|
17283
|
-
dP2.f(O2, P2 = keys5[i++], Properties2[P2]);
|
|
17284
|
-
return O2;
|
|
17285
|
-
}, "defineProperties");
|
|
17286
|
-
return _objectDps;
|
|
17287
|
-
}
|
|
17288
|
-
__name(require_objectDps, "require_objectDps");
|
|
17323
|
+
var dP$1 = require_objectDp();
|
|
17324
|
+
var anObject$4 = _anObject;
|
|
17325
|
+
var getKeys$1 = _objectKeys;
|
|
17326
|
+
var _objectDps = require_descriptors() ? Object.defineProperties : /* @__PURE__ */ __name(function defineProperties(O2, Properties2) {
|
|
17327
|
+
anObject$4(O2);
|
|
17328
|
+
var keys5 = getKeys$1(Properties2);
|
|
17329
|
+
var length = keys5.length;
|
|
17330
|
+
var i = 0;
|
|
17331
|
+
var P2;
|
|
17332
|
+
while (length > i)
|
|
17333
|
+
dP$1.f(O2, P2 = keys5[i++], Properties2[P2]);
|
|
17334
|
+
return O2;
|
|
17335
|
+
}, "defineProperties");
|
|
17289
17336
|
var _html;
|
|
17290
17337
|
var hasRequired_html;
|
|
17291
17338
|
function require_html() {
|
|
@@ -17297,51 +17344,42 @@ function require_html() {
|
|
|
17297
17344
|
return _html;
|
|
17298
17345
|
}
|
|
17299
17346
|
__name(require_html, "require_html");
|
|
17300
|
-
var
|
|
17301
|
-
var
|
|
17302
|
-
|
|
17303
|
-
|
|
17304
|
-
|
|
17305
|
-
|
|
17306
|
-
|
|
17307
|
-
|
|
17308
|
-
var
|
|
17309
|
-
var
|
|
17310
|
-
var
|
|
17311
|
-
|
|
17312
|
-
var
|
|
17313
|
-
|
|
17314
|
-
|
|
17315
|
-
|
|
17316
|
-
|
|
17317
|
-
|
|
17318
|
-
|
|
17319
|
-
|
|
17320
|
-
|
|
17321
|
-
|
|
17322
|
-
|
|
17323
|
-
|
|
17324
|
-
|
|
17325
|
-
|
|
17326
|
-
|
|
17327
|
-
|
|
17328
|
-
|
|
17329
|
-
|
|
17330
|
-
|
|
17331
|
-
|
|
17332
|
-
|
|
17333
|
-
|
|
17334
|
-
|
|
17335
|
-
|
|
17336
|
-
Empty[PROTOTYPE2] = null;
|
|
17337
|
-
result[IE_PROTO2] = O2;
|
|
17338
|
-
} else
|
|
17339
|
-
result = createDict();
|
|
17340
|
-
return Properties2 === void 0 ? result : dPs(result, Properties2);
|
|
17341
|
-
}, "create");
|
|
17342
|
-
return _objectCreate;
|
|
17343
|
-
}
|
|
17344
|
-
__name(require_objectCreate, "require_objectCreate");
|
|
17347
|
+
var anObject$3 = _anObject;
|
|
17348
|
+
var dPs = _objectDps;
|
|
17349
|
+
var enumBugKeys = _enumBugKeys;
|
|
17350
|
+
var IE_PROTO$1 = _sharedKey("IE_PROTO");
|
|
17351
|
+
var Empty = /* @__PURE__ */ __name(function() {
|
|
17352
|
+
}, "Empty");
|
|
17353
|
+
var PROTOTYPE$1 = "prototype";
|
|
17354
|
+
var createDict = /* @__PURE__ */ __name(function() {
|
|
17355
|
+
var iframe = require_domCreate()("iframe");
|
|
17356
|
+
var i = enumBugKeys.length;
|
|
17357
|
+
var lt = "<";
|
|
17358
|
+
var gt = ">";
|
|
17359
|
+
var iframeDocument;
|
|
17360
|
+
iframe.style.display = "none";
|
|
17361
|
+
require_html().appendChild(iframe);
|
|
17362
|
+
iframe.src = "javascript:";
|
|
17363
|
+
iframeDocument = iframe.contentWindow.document;
|
|
17364
|
+
iframeDocument.open();
|
|
17365
|
+
iframeDocument.write(lt + "script" + gt + "document.F=Object" + lt + "/script" + gt);
|
|
17366
|
+
iframeDocument.close();
|
|
17367
|
+
createDict = iframeDocument.F;
|
|
17368
|
+
while (i--)
|
|
17369
|
+
delete createDict[PROTOTYPE$1][enumBugKeys[i]];
|
|
17370
|
+
return createDict();
|
|
17371
|
+
}, "createDict");
|
|
17372
|
+
var _objectCreate = Object.create || /* @__PURE__ */ __name(function create(O2, Properties2) {
|
|
17373
|
+
var result;
|
|
17374
|
+
if (O2 !== null) {
|
|
17375
|
+
Empty[PROTOTYPE$1] = anObject$3(O2);
|
|
17376
|
+
result = new Empty();
|
|
17377
|
+
Empty[PROTOTYPE$1] = null;
|
|
17378
|
+
result[IE_PROTO$1] = O2;
|
|
17379
|
+
} else
|
|
17380
|
+
result = createDict();
|
|
17381
|
+
return Properties2 === void 0 ? result : dPs(result, Properties2);
|
|
17382
|
+
}, "create");
|
|
17345
17383
|
var _wks = { exports: {} };
|
|
17346
17384
|
var store$2 = _sharedExports("wks");
|
|
17347
17385
|
var uid$1 = _uid;
|
|
@@ -17352,14 +17390,14 @@ var $exports = _wks.exports = function(name2) {
|
|
|
17352
17390
|
};
|
|
17353
17391
|
$exports.store = store$2;
|
|
17354
17392
|
var _wksExports = _wks.exports;
|
|
17355
|
-
var def =
|
|
17393
|
+
var def = require_objectDp().f;
|
|
17356
17394
|
var has$c = _has;
|
|
17357
17395
|
var TAG$1 = _wksExports("toStringTag");
|
|
17358
17396
|
var _setToStringTag = /* @__PURE__ */ __name(function(it, tag, stat) {
|
|
17359
17397
|
if (it && !has$c(it = stat ? it : it.prototype, TAG$1))
|
|
17360
17398
|
def(it, TAG$1, { configurable: true, value: tag });
|
|
17361
17399
|
}, "_setToStringTag");
|
|
17362
|
-
var create$4 =
|
|
17400
|
+
var create$4 = _objectCreate;
|
|
17363
17401
|
var descriptor = _propertyDesc;
|
|
17364
17402
|
var setToStringTag$2 = _setToStringTag;
|
|
17365
17403
|
var IteratorPrototype = {};
|
|
@@ -17625,7 +17663,7 @@ var ArrayProto = Array.prototype;
|
|
|
17625
17663
|
var _isArrayIter = /* @__PURE__ */ __name(function(it) {
|
|
17626
17664
|
return it !== void 0 && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
|
|
17627
17665
|
}, "_isArrayIter");
|
|
17628
|
-
var $defineProperty$2 =
|
|
17666
|
+
var $defineProperty$2 = require_objectDp();
|
|
17629
17667
|
var createDesc$2 = _propertyDesc;
|
|
17630
17668
|
var _createProperty = /* @__PURE__ */ __name(function(object3, index2, value) {
|
|
17631
17669
|
if (index2 in object3)
|
|
@@ -17754,9 +17792,9 @@ var _default$8 = /* @__PURE__ */ __name(function(instance, Constructor) {
|
|
|
17754
17792
|
}
|
|
17755
17793
|
}, "_default$8");
|
|
17756
17794
|
var $export$3 = _export;
|
|
17757
|
-
$export$3($export$3.S + $export$3.F * !
|
|
17795
|
+
$export$3($export$3.S + $export$3.F * !require_descriptors(), "Object", { defineProperty: require_objectDp().f });
|
|
17758
17796
|
var $Object$2 = _coreExports.Object;
|
|
17759
|
-
var defineProperty$c = /* @__PURE__ */ __name(function
|
|
17797
|
+
var defineProperty$c = /* @__PURE__ */ __name(function defineProperty2(it, key, desc) {
|
|
17760
17798
|
return $Object$2.defineProperty(it, key, desc);
|
|
17761
17799
|
}, "defineProperty");
|
|
17762
17800
|
var defineProperty$b = { "default": defineProperty$c, __esModule: true };
|
|
@@ -17767,7 +17805,7 @@ function _interopRequireDefault$c(obj) {
|
|
|
17767
17805
|
}
|
|
17768
17806
|
__name(_interopRequireDefault$c, "_interopRequireDefault$c");
|
|
17769
17807
|
var _default$7 = function() {
|
|
17770
|
-
function
|
|
17808
|
+
function defineProperties4(target, props) {
|
|
17771
17809
|
for (var i = 0; i < props.length; i++) {
|
|
17772
17810
|
var descriptor2 = props[i];
|
|
17773
17811
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -17777,12 +17815,12 @@ var _default$7 = function() {
|
|
|
17777
17815
|
(0, _defineProperty2.default)(target, descriptor2.key, descriptor2);
|
|
17778
17816
|
}
|
|
17779
17817
|
}
|
|
17780
|
-
__name(
|
|
17818
|
+
__name(defineProperties4, "defineProperties");
|
|
17781
17819
|
return function(Constructor, protoProps, staticProps) {
|
|
17782
17820
|
if (protoProps)
|
|
17783
|
-
|
|
17821
|
+
defineProperties4(Constructor.prototype, protoProps);
|
|
17784
17822
|
if (staticProps)
|
|
17785
|
-
|
|
17823
|
+
defineProperties4(Constructor, staticProps);
|
|
17786
17824
|
return Constructor;
|
|
17787
17825
|
};
|
|
17788
17826
|
}();
|
|
@@ -17795,7 +17833,7 @@ var _meta = { exports: {} };
|
|
|
17795
17833
|
var META$1 = _uid("meta");
|
|
17796
17834
|
var isObject$c = _isObject;
|
|
17797
17835
|
var has$a = _has;
|
|
17798
|
-
var setDesc =
|
|
17836
|
+
var setDesc = require_objectDp().f;
|
|
17799
17837
|
var id$1 = 0;
|
|
17800
17838
|
var isExtensible = Object.isExtensible || function() {
|
|
17801
17839
|
return true;
|
|
@@ -17811,23 +17849,23 @@ var setMeta = /* @__PURE__ */ __name(function(it) {
|
|
|
17811
17849
|
// weak collections IDs
|
|
17812
17850
|
} });
|
|
17813
17851
|
}, "setMeta");
|
|
17814
|
-
var fastKey = /* @__PURE__ */ __name(function(it,
|
|
17852
|
+
var fastKey = /* @__PURE__ */ __name(function(it, create6) {
|
|
17815
17853
|
if (!isObject$c(it))
|
|
17816
17854
|
return typeof it == "symbol" ? it : (typeof it == "string" ? "S" : "P") + it;
|
|
17817
17855
|
if (!has$a(it, META$1)) {
|
|
17818
17856
|
if (!isExtensible(it))
|
|
17819
17857
|
return "F";
|
|
17820
|
-
if (!
|
|
17858
|
+
if (!create6)
|
|
17821
17859
|
return "E";
|
|
17822
17860
|
setMeta(it);
|
|
17823
17861
|
}
|
|
17824
17862
|
return it[META$1].i;
|
|
17825
17863
|
}, "fastKey");
|
|
17826
|
-
var getWeak = /* @__PURE__ */ __name(function(it,
|
|
17864
|
+
var getWeak = /* @__PURE__ */ __name(function(it, create6) {
|
|
17827
17865
|
if (!has$a(it, META$1)) {
|
|
17828
17866
|
if (!isExtensible(it))
|
|
17829
17867
|
return true;
|
|
17830
|
-
if (!
|
|
17868
|
+
if (!create6)
|
|
17831
17869
|
return false;
|
|
17832
17870
|
setMeta(it);
|
|
17833
17871
|
}
|
|
@@ -17848,7 +17886,7 @@ var meta = _meta.exports = {
|
|
|
17848
17886
|
var _metaExports = _meta.exports;
|
|
17849
17887
|
var core = _coreExports;
|
|
17850
17888
|
var wksExt$1 = _wksExt;
|
|
17851
|
-
var defineProperty$a =
|
|
17889
|
+
var defineProperty$a = require_objectDp().f;
|
|
17852
17890
|
var _wksDefine = /* @__PURE__ */ __name(function(name2) {
|
|
17853
17891
|
var $Symbol2 = core.Symbol || (core.Symbol = {});
|
|
17854
17892
|
if (name2.charAt(0) != "_" && !(name2 in $Symbol2))
|
|
@@ -17856,7 +17894,7 @@ var _wksDefine = /* @__PURE__ */ __name(function(name2) {
|
|
|
17856
17894
|
}, "_wksDefine");
|
|
17857
17895
|
var getKeys = _objectKeys;
|
|
17858
17896
|
var gOPS$1 = _objectGops;
|
|
17859
|
-
var pIE$1 =
|
|
17897
|
+
var pIE$1 = require_objectPie();
|
|
17860
17898
|
var _enumKeys = /* @__PURE__ */ __name(function(it) {
|
|
17861
17899
|
var result = getKeys(it);
|
|
17862
17900
|
var getSymbols2 = gOPS$1.f;
|
|
@@ -17897,14 +17935,14 @@ _objectGopnExt.f = /* @__PURE__ */ __name(function getOwnPropertyNames2(it) {
|
|
|
17897
17935
|
return windowNames && toString$5.call(it) == "[object Window]" ? getWindowNames(it) : gOPN$1(toIObject$2(it));
|
|
17898
17936
|
}, "getOwnPropertyNames");
|
|
17899
17937
|
var _objectGopd = {};
|
|
17900
|
-
var pIE =
|
|
17938
|
+
var pIE = require_objectPie();
|
|
17901
17939
|
var createDesc$1 = _propertyDesc;
|
|
17902
17940
|
var toIObject$1 = _toIobject;
|
|
17903
17941
|
var toPrimitive$1 = _toPrimitive$1;
|
|
17904
17942
|
var has$9 = _has;
|
|
17905
|
-
var IE8_DOM_DEFINE =
|
|
17943
|
+
var IE8_DOM_DEFINE = require_ie8DomDefine();
|
|
17906
17944
|
var gOPD$5 = Object.getOwnPropertyDescriptor;
|
|
17907
|
-
_objectGopd.f =
|
|
17945
|
+
_objectGopd.f = require_descriptors() ? gOPD$5 : /* @__PURE__ */ __name(function getOwnPropertyDescriptor(O2, P2) {
|
|
17908
17946
|
O2 = toIObject$1(O2);
|
|
17909
17947
|
P2 = toPrimitive$1(P2, true);
|
|
17910
17948
|
if (IE8_DOM_DEFINE)
|
|
@@ -17917,7 +17955,7 @@ _objectGopd.f = _descriptors ? gOPD$5 : /* @__PURE__ */ __name(function getOwnPr
|
|
|
17917
17955
|
}, "getOwnPropertyDescriptor");
|
|
17918
17956
|
var global$2 = _globalExports;
|
|
17919
17957
|
var has$8 = _has;
|
|
17920
|
-
var DESCRIPTORS =
|
|
17958
|
+
var DESCRIPTORS = require_descriptors();
|
|
17921
17959
|
var $export$2 = _export;
|
|
17922
17960
|
var redefine = _redefine;
|
|
17923
17961
|
var META = _metaExports.KEY;
|
|
@@ -17936,11 +17974,11 @@ var toObject$1 = _toObject;
|
|
|
17936
17974
|
var toIObject = _toIobject;
|
|
17937
17975
|
var toPrimitive = _toPrimitive$1;
|
|
17938
17976
|
var createDesc = _propertyDesc;
|
|
17939
|
-
var _create$1 =
|
|
17977
|
+
var _create$1 = _objectCreate;
|
|
17940
17978
|
var gOPNExt = _objectGopnExt;
|
|
17941
17979
|
var $GOPD = _objectGopd;
|
|
17942
17980
|
var $GOPS = _objectGops;
|
|
17943
|
-
var $DP =
|
|
17981
|
+
var $DP = require_objectDp();
|
|
17944
17982
|
var $keys$1 = _objectKeys;
|
|
17945
17983
|
var gOPD$4 = $GOPD.f;
|
|
17946
17984
|
var dP = $DP.f;
|
|
@@ -17983,7 +18021,7 @@ var isSymbol$8 = USE_NATIVE && typeof $Symbol.iterator == "symbol" ? function(it
|
|
|
17983
18021
|
} : function(it) {
|
|
17984
18022
|
return it instanceof $Symbol;
|
|
17985
18023
|
};
|
|
17986
|
-
var $defineProperty$1 = /* @__PURE__ */ __name(function
|
|
18024
|
+
var $defineProperty$1 = /* @__PURE__ */ __name(function defineProperty3(it, key, D2) {
|
|
17987
18025
|
if (it === ObjectProto)
|
|
17988
18026
|
$defineProperty$1(OPSymbols, key, D2);
|
|
17989
18027
|
anObject(it);
|
|
@@ -18003,7 +18041,7 @@ var $defineProperty$1 = /* @__PURE__ */ __name(function defineProperty4(it, key,
|
|
|
18003
18041
|
}
|
|
18004
18042
|
return dP(it, key, D2);
|
|
18005
18043
|
}, "defineProperty");
|
|
18006
|
-
var $defineProperties = /* @__PURE__ */ __name(function
|
|
18044
|
+
var $defineProperties = /* @__PURE__ */ __name(function defineProperties2(it, P2) {
|
|
18007
18045
|
anObject(it);
|
|
18008
18046
|
var keys5 = enumKeys(P2 = toIObject(P2));
|
|
18009
18047
|
var i = 0;
|
|
@@ -18013,7 +18051,7 @@ var $defineProperties = /* @__PURE__ */ __name(function defineProperties(it, P2)
|
|
|
18013
18051
|
$defineProperty$1(it, key = keys5[i++], P2[key]);
|
|
18014
18052
|
return it;
|
|
18015
18053
|
}, "defineProperties");
|
|
18016
|
-
var $create = /* @__PURE__ */ __name(function
|
|
18054
|
+
var $create = /* @__PURE__ */ __name(function create2(it, P2) {
|
|
18017
18055
|
return P2 === void 0 ? _create$1(it) : $defineProperties(_create$1(it), P2);
|
|
18018
18056
|
}, "create");
|
|
18019
18057
|
var $propertyIsEnumerable = /* @__PURE__ */ __name(function propertyIsEnumerable(key) {
|
|
@@ -18077,7 +18115,7 @@ if (!USE_NATIVE) {
|
|
|
18077
18115
|
$GOPD.f = $getOwnPropertyDescriptor;
|
|
18078
18116
|
$DP.f = $defineProperty$1;
|
|
18079
18117
|
_objectGopn.f = gOPNExt.f = $getOwnPropertyNames;
|
|
18080
|
-
|
|
18118
|
+
require_objectPie().f = $propertyIsEnumerable;
|
|
18081
18119
|
$GOPS.f = $getOwnPropertySymbols;
|
|
18082
18120
|
if (DESCRIPTORS && !_library) {
|
|
18083
18121
|
redefine(ObjectProto, "propertyIsEnumerable", $propertyIsEnumerable);
|
|
@@ -18243,9 +18281,9 @@ $export$1($export$1.S, "Object", { setPrototypeOf: require_setProto().set });
|
|
|
18243
18281
|
var setPrototypeOf$1 = _coreExports.Object.setPrototypeOf;
|
|
18244
18282
|
var setPrototypeOf = { "default": setPrototypeOf$1, __esModule: true };
|
|
18245
18283
|
var $export = _export;
|
|
18246
|
-
$export($export.S, "Object", { create:
|
|
18284
|
+
$export($export.S, "Object", { create: _objectCreate });
|
|
18247
18285
|
var $Object$1 = _coreExports.Object;
|
|
18248
|
-
var create$3 = /* @__PURE__ */ __name(function
|
|
18286
|
+
var create$3 = /* @__PURE__ */ __name(function create3(P2, D2) {
|
|
18249
18287
|
return $Object$1.create(P2, D2);
|
|
18250
18288
|
}, "create");
|
|
18251
18289
|
var create$2 = { "default": create$3, __esModule: true };
|
|
@@ -22332,7 +22370,7 @@ function normalizeComponent(Comp) {
|
|
|
22332
22370
|
}
|
|
22333
22371
|
__name(normalizeComponent, "normalizeComponent");
|
|
22334
22372
|
var _createClass$d = function() {
|
|
22335
|
-
function
|
|
22373
|
+
function defineProperties4(target, props) {
|
|
22336
22374
|
for (var i = 0; i < props.length; i++) {
|
|
22337
22375
|
var descriptor2 = props[i];
|
|
22338
22376
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -22342,12 +22380,12 @@ var _createClass$d = function() {
|
|
|
22342
22380
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
22343
22381
|
}
|
|
22344
22382
|
}
|
|
22345
|
-
__name(
|
|
22383
|
+
__name(defineProperties4, "defineProperties");
|
|
22346
22384
|
return function(Constructor, protoProps, staticProps) {
|
|
22347
22385
|
if (protoProps)
|
|
22348
|
-
|
|
22386
|
+
defineProperties4(Constructor.prototype, protoProps);
|
|
22349
22387
|
if (staticProps)
|
|
22350
|
-
|
|
22388
|
+
defineProperties4(Constructor, staticProps);
|
|
22351
22389
|
return Constructor;
|
|
22352
22390
|
};
|
|
22353
22391
|
}();
|
|
@@ -22508,7 +22546,7 @@ var _extends$o = Object.assign || function(target) {
|
|
|
22508
22546
|
return target;
|
|
22509
22547
|
};
|
|
22510
22548
|
var _createClass$c = function() {
|
|
22511
|
-
function
|
|
22549
|
+
function defineProperties4(target, props) {
|
|
22512
22550
|
for (var i = 0; i < props.length; i++) {
|
|
22513
22551
|
var descriptor2 = props[i];
|
|
22514
22552
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -22518,12 +22556,12 @@ var _createClass$c = function() {
|
|
|
22518
22556
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
22519
22557
|
}
|
|
22520
22558
|
}
|
|
22521
|
-
__name(
|
|
22559
|
+
__name(defineProperties4, "defineProperties");
|
|
22522
22560
|
return function(Constructor, protoProps, staticProps) {
|
|
22523
22561
|
if (protoProps)
|
|
22524
|
-
|
|
22562
|
+
defineProperties4(Constructor.prototype, protoProps);
|
|
22525
22563
|
if (staticProps)
|
|
22526
|
-
|
|
22564
|
+
defineProperties4(Constructor, staticProps);
|
|
22527
22565
|
return Constructor;
|
|
22528
22566
|
};
|
|
22529
22567
|
}();
|
|
@@ -23114,7 +23152,7 @@ const Methods = /* @__PURE__ */ __name(function(Base) {
|
|
|
23114
23152
|
}(Base);
|
|
23115
23153
|
}, "Methods");
|
|
23116
23154
|
var _createClass$b = function() {
|
|
23117
|
-
function
|
|
23155
|
+
function defineProperties4(target, props) {
|
|
23118
23156
|
for (var i = 0; i < props.length; i++) {
|
|
23119
23157
|
var descriptor2 = props[i];
|
|
23120
23158
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -23124,12 +23162,12 @@ var _createClass$b = function() {
|
|
|
23124
23162
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
23125
23163
|
}
|
|
23126
23164
|
}
|
|
23127
|
-
__name(
|
|
23165
|
+
__name(defineProperties4, "defineProperties");
|
|
23128
23166
|
return function(Constructor, protoProps, staticProps) {
|
|
23129
23167
|
if (protoProps)
|
|
23130
|
-
|
|
23168
|
+
defineProperties4(Constructor.prototype, protoProps);
|
|
23131
23169
|
if (staticProps)
|
|
23132
|
-
|
|
23170
|
+
defineProperties4(Constructor, staticProps);
|
|
23133
23171
|
return Constructor;
|
|
23134
23172
|
};
|
|
23135
23173
|
}();
|
|
@@ -23901,7 +23939,7 @@ var _extends$l = Object.assign || function(target) {
|
|
|
23901
23939
|
return target;
|
|
23902
23940
|
};
|
|
23903
23941
|
var _createClass$a = function() {
|
|
23904
|
-
function
|
|
23942
|
+
function defineProperties4(target, props) {
|
|
23905
23943
|
for (var i = 0; i < props.length; i++) {
|
|
23906
23944
|
var descriptor2 = props[i];
|
|
23907
23945
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -23911,12 +23949,12 @@ var _createClass$a = function() {
|
|
|
23911
23949
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
23912
23950
|
}
|
|
23913
23951
|
}
|
|
23914
|
-
__name(
|
|
23952
|
+
__name(defineProperties4, "defineProperties");
|
|
23915
23953
|
return function(Constructor, protoProps, staticProps) {
|
|
23916
23954
|
if (protoProps)
|
|
23917
|
-
|
|
23955
|
+
defineProperties4(Constructor.prototype, protoProps);
|
|
23918
23956
|
if (staticProps)
|
|
23919
|
-
|
|
23957
|
+
defineProperties4(Constructor, staticProps);
|
|
23920
23958
|
return Constructor;
|
|
23921
23959
|
};
|
|
23922
23960
|
}();
|
|
@@ -30240,21 +30278,21 @@ function parse$7(options) {
|
|
|
30240
30278
|
defined: [],
|
|
30241
30279
|
lazy: {},
|
|
30242
30280
|
constructs: constructs2,
|
|
30243
|
-
content:
|
|
30244
|
-
document:
|
|
30245
|
-
flow:
|
|
30246
|
-
string:
|
|
30247
|
-
text:
|
|
30281
|
+
content: create6(content$1),
|
|
30282
|
+
document: create6(document$2),
|
|
30283
|
+
flow: create6(flow$1),
|
|
30284
|
+
string: create6(string$1),
|
|
30285
|
+
text: create6(text$3)
|
|
30248
30286
|
};
|
|
30249
30287
|
return parser;
|
|
30250
|
-
function
|
|
30288
|
+
function create6(initial) {
|
|
30251
30289
|
return creator;
|
|
30252
30290
|
function creator(from3) {
|
|
30253
30291
|
return createTokenizer(parser, initial, from3);
|
|
30254
30292
|
}
|
|
30255
30293
|
__name(creator, "creator");
|
|
30256
30294
|
}
|
|
30257
|
-
__name(
|
|
30295
|
+
__name(create6, "create");
|
|
30258
30296
|
}
|
|
30259
30297
|
__name(parse$7, "parse$7");
|
|
30260
30298
|
const search$1 = /[\0\t\n\r]/g;
|
|
@@ -30665,10 +30703,10 @@ function compiler(options) {
|
|
|
30665
30703
|
return data[key];
|
|
30666
30704
|
}
|
|
30667
30705
|
__name(getData, "getData");
|
|
30668
|
-
function opener(
|
|
30706
|
+
function opener(create6, and) {
|
|
30669
30707
|
return open2;
|
|
30670
30708
|
function open2(token) {
|
|
30671
|
-
enter2.call(this,
|
|
30709
|
+
enter2.call(this, create6(token), token);
|
|
30672
30710
|
if (and)
|
|
30673
30711
|
and.call(this, token);
|
|
30674
30712
|
}
|
|
@@ -39019,27 +39057,51 @@ __publicField(_TgSelect, "defaultProps", {
|
|
|
39019
39057
|
value: void 0
|
|
39020
39058
|
});
|
|
39021
39059
|
let TgSelect = _TgSelect;
|
|
39022
|
-
const
|
|
39023
|
-
const
|
|
39024
|
-
|
|
39025
|
-
|
|
39026
|
-
|
|
39027
|
-
|
|
39028
|
-
|
|
39029
|
-
|
|
39030
|
-
|
|
39031
|
-
|
|
39032
|
-
return matching;
|
|
39060
|
+
const withAsyncOptions = /* @__PURE__ */ __name((Component) => (props) => {
|
|
39061
|
+
const _a2 = props, { loadOptions, options } = _a2, rest = __objRest(_a2, ["loadOptions", "options"]);
|
|
39062
|
+
const [asyncOptions, setAsyncOptions] = React$2.useState([]);
|
|
39063
|
+
const [isLoading, setLoading] = React$2.useState(false);
|
|
39064
|
+
React$2.useEffect(() => {
|
|
39065
|
+
if (loadOptions) {
|
|
39066
|
+
setLoading(true);
|
|
39067
|
+
loadOptions().then((options2) => {
|
|
39068
|
+
setAsyncOptions(options2);
|
|
39069
|
+
setLoading(false);
|
|
39033
39070
|
});
|
|
39034
|
-
|
|
39035
|
-
|
|
39036
|
-
|
|
39037
|
-
|
|
39038
|
-
|
|
39039
|
-
|
|
39040
|
-
|
|
39041
|
-
|
|
39042
|
-
|
|
39071
|
+
}
|
|
39072
|
+
}, [loadOptions]);
|
|
39073
|
+
return /* @__PURE__ */ React$2.createElement(
|
|
39074
|
+
Component,
|
|
39075
|
+
__spreadProps(__spreadValues({}, rest), {
|
|
39076
|
+
isLoading: isLoading || rest.isLoading,
|
|
39077
|
+
options: loadOptions ? asyncOptions : options
|
|
39078
|
+
})
|
|
39079
|
+
);
|
|
39080
|
+
}, "withAsyncOptions");
|
|
39081
|
+
const TgSelect$1 = redux.compose(
|
|
39082
|
+
withAsyncOptions,
|
|
39083
|
+
withProps((props) => {
|
|
39084
|
+
const { multi, value, options = [] } = props;
|
|
39085
|
+
let optionsToRet = options;
|
|
39086
|
+
if (multi && value) {
|
|
39087
|
+
const valArray = getValueArray(value);
|
|
39088
|
+
optionsToRet = options.filter((op) => {
|
|
39089
|
+
const isOptionSelected = valArray.some((val2) => {
|
|
39090
|
+
if (!val2)
|
|
39091
|
+
return false;
|
|
39092
|
+
const matching = lodashExports.isEqual(val2.value, op.value);
|
|
39093
|
+
return matching;
|
|
39094
|
+
});
|
|
39095
|
+
return !isOptionSelected;
|
|
39096
|
+
});
|
|
39097
|
+
}
|
|
39098
|
+
return {
|
|
39099
|
+
// unfilteredOptions is needed for finding selected items
|
|
39100
|
+
unfilteredOptions: options,
|
|
39101
|
+
options: optionsToRet
|
|
39102
|
+
};
|
|
39103
|
+
})
|
|
39104
|
+
)(TgSelect);
|
|
39043
39105
|
const itemDisabled = /* @__PURE__ */ __name((i) => i.disabled, "itemDisabled");
|
|
39044
39106
|
const noResultsDefault = /* @__PURE__ */ React$2.createElement("div", null, "No Results...");
|
|
39045
39107
|
const renderCreateNewOption$1 = /* @__PURE__ */ __name((query, active3, handleClick) => /* @__PURE__ */ React$2.createElement(
|
|
@@ -39577,11 +39639,11 @@ var implementation$8 = /* @__PURE__ */ __name(function bind(that) {
|
|
|
39577
39639
|
}
|
|
39578
39640
|
bound = Function("binder", "return function (" + boundArgs.join(",") + "){ return binder.apply(this,arguments); }")(binder);
|
|
39579
39641
|
if (target.prototype) {
|
|
39580
|
-
var
|
|
39642
|
+
var Empty2 = /* @__PURE__ */ __name(function Empty3() {
|
|
39581
39643
|
}, "Empty");
|
|
39582
|
-
|
|
39583
|
-
bound.prototype = new
|
|
39584
|
-
|
|
39644
|
+
Empty2.prototype = target.prototype;
|
|
39645
|
+
bound.prototype = new Empty2();
|
|
39646
|
+
Empty2.prototype = null;
|
|
39585
39647
|
}
|
|
39586
39648
|
return bound;
|
|
39587
39649
|
}, "bind");
|
|
@@ -42389,19 +42451,59 @@ const generateToast = /* @__PURE__ */ __name((intent) => (message, options) => {
|
|
|
42389
42451
|
if (intent === core$5.Intent.DANGER) {
|
|
42390
42452
|
console.error("Toastr error message: ", message);
|
|
42391
42453
|
}
|
|
42454
|
+
const maybeAddClearAll = /* @__PURE__ */ __name(() => {
|
|
42455
|
+
const existingClearAllButtons = document.querySelectorAll(`.tg-clear-all-toasts`);
|
|
42456
|
+
existingClearAllButtons.forEach((button) => {
|
|
42457
|
+
button.remove();
|
|
42458
|
+
});
|
|
42459
|
+
const activeToasts = document.querySelectorAll(
|
|
42460
|
+
`.bp3-toast:not(.bp3-toast-exit)`
|
|
42461
|
+
);
|
|
42462
|
+
if (activeToasts.length > 1) {
|
|
42463
|
+
const topToaster = document.querySelector(`.bp3-toast`);
|
|
42464
|
+
if (!topToaster)
|
|
42465
|
+
return;
|
|
42466
|
+
const closeButton = document.createElement("div");
|
|
42467
|
+
closeButton.classList.add(
|
|
42468
|
+
core$5.Classes.BUTTON,
|
|
42469
|
+
core$5.Classes.LARGE,
|
|
42470
|
+
core$5.Classes.INTENT_PRIMARY,
|
|
42471
|
+
"tg-clear-all-toasts"
|
|
42472
|
+
);
|
|
42473
|
+
closeButton.innerText = "Clear all";
|
|
42474
|
+
closeButton.onclick = window.__tgClearAllToasts;
|
|
42475
|
+
closeButton.style.position = "absolute";
|
|
42476
|
+
closeButton.style.right = "-100px";
|
|
42477
|
+
topToaster.appendChild(closeButton);
|
|
42478
|
+
}
|
|
42479
|
+
}, "maybeAddClearAll");
|
|
42392
42480
|
const uniqKey = toastToUse.show(
|
|
42393
42481
|
{
|
|
42394
42482
|
intent,
|
|
42395
42483
|
message,
|
|
42396
|
-
|
|
42484
|
+
onDismiss: () => {
|
|
42485
|
+
if (options.onDismiss) {
|
|
42486
|
+
options.onDismiss();
|
|
42487
|
+
}
|
|
42488
|
+
setTimeout(() => {
|
|
42489
|
+
maybeAddClearAll();
|
|
42490
|
+
}, 0);
|
|
42491
|
+
},
|
|
42492
|
+
timeout: options.timeout || updatedTimeout || (!window.Cypress && intent === core$5.Intent.DANGER ? 6e4 : void 0),
|
|
42397
42493
|
action: options.action,
|
|
42398
42494
|
icon: options.icon,
|
|
42399
42495
|
className: classNames("preserve-newline", options.className)
|
|
42400
42496
|
},
|
|
42401
42497
|
options.key
|
|
42402
42498
|
);
|
|
42499
|
+
setTimeout(() => {
|
|
42500
|
+
maybeAddClearAll();
|
|
42501
|
+
}, 0);
|
|
42403
42502
|
function clear3() {
|
|
42404
42503
|
toastToUse.dismiss(uniqKey);
|
|
42504
|
+
setTimeout(() => {
|
|
42505
|
+
maybeAddClearAll();
|
|
42506
|
+
}, 0);
|
|
42405
42507
|
}
|
|
42406
42508
|
__name(clear3, "clear");
|
|
42407
42509
|
clear3.key = uniqKey;
|
|
@@ -42571,6 +42673,7 @@ const _FilterAndSortMenu = class _FilterAndSortMenu extends React$2.Component {
|
|
|
42571
42673
|
intent: core$5.Intent.SUCCESS,
|
|
42572
42674
|
text: "Filter",
|
|
42573
42675
|
secondaryText: "Clear",
|
|
42676
|
+
secondaryIntent: core$5.Intent.DANGER,
|
|
42574
42677
|
secondaryAction: () => {
|
|
42575
42678
|
currentFilter && removeSingleFilter(currentFilter.filterOn);
|
|
42576
42679
|
}
|
|
@@ -43716,7 +43819,7 @@ var _extends$f = Object.assign || function(target) {
|
|
|
43716
43819
|
return target;
|
|
43717
43820
|
};
|
|
43718
43821
|
var _createClass$9 = function() {
|
|
43719
|
-
function
|
|
43822
|
+
function defineProperties4(target, props) {
|
|
43720
43823
|
for (var i = 0; i < props.length; i++) {
|
|
43721
43824
|
var descriptor2 = props[i];
|
|
43722
43825
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -43726,12 +43829,12 @@ var _createClass$9 = function() {
|
|
|
43726
43829
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
43727
43830
|
}
|
|
43728
43831
|
}
|
|
43729
|
-
__name(
|
|
43832
|
+
__name(defineProperties4, "defineProperties");
|
|
43730
43833
|
return function(Constructor, protoProps, staticProps) {
|
|
43731
43834
|
if (protoProps)
|
|
43732
|
-
|
|
43835
|
+
defineProperties4(Constructor.prototype, protoProps);
|
|
43733
43836
|
if (staticProps)
|
|
43734
|
-
|
|
43837
|
+
defineProperties4(Constructor, staticProps);
|
|
43735
43838
|
return Constructor;
|
|
43736
43839
|
};
|
|
43737
43840
|
}();
|
|
@@ -43873,7 +43976,7 @@ var Alpha = function(_ref) {
|
|
|
43873
43976
|
return Alpha2;
|
|
43874
43977
|
}(React$2.PureComponent || React$2.Component);
|
|
43875
43978
|
var _createClass$8 = function() {
|
|
43876
|
-
function
|
|
43979
|
+
function defineProperties4(target, props) {
|
|
43877
43980
|
for (var i = 0; i < props.length; i++) {
|
|
43878
43981
|
var descriptor2 = props[i];
|
|
43879
43982
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -43883,12 +43986,12 @@ var _createClass$8 = function() {
|
|
|
43883
43986
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
43884
43987
|
}
|
|
43885
43988
|
}
|
|
43886
|
-
__name(
|
|
43989
|
+
__name(defineProperties4, "defineProperties");
|
|
43887
43990
|
return function(Constructor, protoProps, staticProps) {
|
|
43888
43991
|
if (protoProps)
|
|
43889
|
-
|
|
43992
|
+
defineProperties4(Constructor.prototype, protoProps);
|
|
43890
43993
|
if (staticProps)
|
|
43891
|
-
|
|
43994
|
+
defineProperties4(Constructor, staticProps);
|
|
43892
43995
|
return Constructor;
|
|
43893
43996
|
};
|
|
43894
43997
|
}();
|
|
@@ -44121,7 +44224,7 @@ var calculateChange$1 = /* @__PURE__ */ __name(function calculateChange2(e2, dir
|
|
|
44121
44224
|
return null;
|
|
44122
44225
|
}, "calculateChange");
|
|
44123
44226
|
var _createClass$7 = function() {
|
|
44124
|
-
function
|
|
44227
|
+
function defineProperties4(target, props) {
|
|
44125
44228
|
for (var i = 0; i < props.length; i++) {
|
|
44126
44229
|
var descriptor2 = props[i];
|
|
44127
44230
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -44131,12 +44234,12 @@ var _createClass$7 = function() {
|
|
|
44131
44234
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
44132
44235
|
}
|
|
44133
44236
|
}
|
|
44134
|
-
__name(
|
|
44237
|
+
__name(defineProperties4, "defineProperties");
|
|
44135
44238
|
return function(Constructor, protoProps, staticProps) {
|
|
44136
44239
|
if (protoProps)
|
|
44137
|
-
|
|
44240
|
+
defineProperties4(Constructor.prototype, protoProps);
|
|
44138
44241
|
if (staticProps)
|
|
44139
|
-
|
|
44242
|
+
defineProperties4(Constructor, staticProps);
|
|
44140
44243
|
return Constructor;
|
|
44141
44244
|
};
|
|
44142
44245
|
}();
|
|
@@ -45347,7 +45450,7 @@ var calculateChange3 = /* @__PURE__ */ __name(function calculateChange4(e2, hsl,
|
|
|
45347
45450
|
};
|
|
45348
45451
|
}, "calculateChange");
|
|
45349
45452
|
var _createClass$6 = function() {
|
|
45350
|
-
function
|
|
45453
|
+
function defineProperties4(target, props) {
|
|
45351
45454
|
for (var i = 0; i < props.length; i++) {
|
|
45352
45455
|
var descriptor2 = props[i];
|
|
45353
45456
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -45357,12 +45460,12 @@ var _createClass$6 = function() {
|
|
|
45357
45460
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
45358
45461
|
}
|
|
45359
45462
|
}
|
|
45360
|
-
__name(
|
|
45463
|
+
__name(defineProperties4, "defineProperties");
|
|
45361
45464
|
return function(Constructor, protoProps, staticProps) {
|
|
45362
45465
|
if (protoProps)
|
|
45363
|
-
|
|
45466
|
+
defineProperties4(Constructor.prototype, protoProps);
|
|
45364
45467
|
if (staticProps)
|
|
45365
|
-
|
|
45468
|
+
defineProperties4(Constructor, staticProps);
|
|
45366
45469
|
return Constructor;
|
|
45367
45470
|
};
|
|
45368
45471
|
}();
|
|
@@ -46664,7 +46767,7 @@ var _extends$e = Object.assign || function(target) {
|
|
|
46664
46767
|
return target;
|
|
46665
46768
|
};
|
|
46666
46769
|
var _createClass$5 = function() {
|
|
46667
|
-
function
|
|
46770
|
+
function defineProperties4(target, props) {
|
|
46668
46771
|
for (var i = 0; i < props.length; i++) {
|
|
46669
46772
|
var descriptor2 = props[i];
|
|
46670
46773
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -46674,12 +46777,12 @@ var _createClass$5 = function() {
|
|
|
46674
46777
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
46675
46778
|
}
|
|
46676
46779
|
}
|
|
46677
|
-
__name(
|
|
46780
|
+
__name(defineProperties4, "defineProperties");
|
|
46678
46781
|
return function(Constructor, protoProps, staticProps) {
|
|
46679
46782
|
if (protoProps)
|
|
46680
|
-
|
|
46783
|
+
defineProperties4(Constructor.prototype, protoProps);
|
|
46681
46784
|
if (staticProps)
|
|
46682
|
-
|
|
46785
|
+
defineProperties4(Constructor, staticProps);
|
|
46683
46786
|
return Constructor;
|
|
46684
46787
|
};
|
|
46685
46788
|
}();
|
|
@@ -46776,7 +46879,7 @@ var _extends$d = Object.assign || function(target) {
|
|
|
46776
46879
|
return target;
|
|
46777
46880
|
};
|
|
46778
46881
|
var _createClass$4 = function() {
|
|
46779
|
-
function
|
|
46882
|
+
function defineProperties4(target, props) {
|
|
46780
46883
|
for (var i = 0; i < props.length; i++) {
|
|
46781
46884
|
var descriptor2 = props[i];
|
|
46782
46885
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -46786,12 +46889,12 @@ var _createClass$4 = function() {
|
|
|
46786
46889
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
46787
46890
|
}
|
|
46788
46891
|
}
|
|
46789
|
-
__name(
|
|
46892
|
+
__name(defineProperties4, "defineProperties");
|
|
46790
46893
|
return function(Constructor, protoProps, staticProps) {
|
|
46791
46894
|
if (protoProps)
|
|
46792
|
-
|
|
46895
|
+
defineProperties4(Constructor.prototype, protoProps);
|
|
46793
46896
|
if (staticProps)
|
|
46794
|
-
|
|
46897
|
+
defineProperties4(Constructor, staticProps);
|
|
46795
46898
|
return Constructor;
|
|
46796
46899
|
};
|
|
46797
46900
|
}();
|
|
@@ -47849,7 +47952,7 @@ var _default$3 = UnfoldMoreHorizontalIcon.default = function(_ref) {
|
|
|
47849
47952
|
);
|
|
47850
47953
|
};
|
|
47851
47954
|
var _createClass$3 = function() {
|
|
47852
|
-
function
|
|
47955
|
+
function defineProperties4(target, props) {
|
|
47853
47956
|
for (var i = 0; i < props.length; i++) {
|
|
47854
47957
|
var descriptor2 = props[i];
|
|
47855
47958
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -47859,12 +47962,12 @@ var _createClass$3 = function() {
|
|
|
47859
47962
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
47860
47963
|
}
|
|
47861
47964
|
}
|
|
47862
|
-
__name(
|
|
47965
|
+
__name(defineProperties4, "defineProperties");
|
|
47863
47966
|
return function(Constructor, protoProps, staticProps) {
|
|
47864
47967
|
if (protoProps)
|
|
47865
|
-
|
|
47968
|
+
defineProperties4(Constructor.prototype, protoProps);
|
|
47866
47969
|
if (staticProps)
|
|
47867
|
-
|
|
47970
|
+
defineProperties4(Constructor, staticProps);
|
|
47868
47971
|
return Constructor;
|
|
47869
47972
|
};
|
|
47870
47973
|
}();
|
|
@@ -49274,7 +49377,7 @@ var PhotoshopPreviews = /* @__PURE__ */ __name(function PhotoshopPreviews2(_ref)
|
|
|
49274
49377
|
);
|
|
49275
49378
|
}, "PhotoshopPreviews");
|
|
49276
49379
|
var _createClass$2 = function() {
|
|
49277
|
-
function
|
|
49380
|
+
function defineProperties4(target, props) {
|
|
49278
49381
|
for (var i = 0; i < props.length; i++) {
|
|
49279
49382
|
var descriptor2 = props[i];
|
|
49280
49383
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -49284,12 +49387,12 @@ var _createClass$2 = function() {
|
|
|
49284
49387
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
49285
49388
|
}
|
|
49286
49389
|
}
|
|
49287
|
-
__name(
|
|
49390
|
+
__name(defineProperties4, "defineProperties");
|
|
49288
49391
|
return function(Constructor, protoProps, staticProps) {
|
|
49289
49392
|
if (protoProps)
|
|
49290
|
-
|
|
49393
|
+
defineProperties4(Constructor.prototype, protoProps);
|
|
49291
49394
|
if (staticProps)
|
|
49292
|
-
|
|
49395
|
+
defineProperties4(Constructor, staticProps);
|
|
49293
49396
|
return Constructor;
|
|
49294
49397
|
};
|
|
49295
49398
|
}();
|
|
@@ -55460,17 +55563,20 @@ const _DataTable = class _DataTable extends React$2.Component {
|
|
|
55460
55563
|
});
|
|
55461
55564
|
}
|
|
55462
55565
|
}, "handleSelectAllRows"));
|
|
55566
|
+
__publicField(this, "updateValidationHelper", /* @__PURE__ */ __name(() => {
|
|
55567
|
+
const { entities, reduxFormCellValidation } = computePresets(this.props);
|
|
55568
|
+
this.updateValidation(entities, reduxFormCellValidation);
|
|
55569
|
+
}, "updateValidationHelper"));
|
|
55463
55570
|
__publicField(this, "updateValidation", /* @__PURE__ */ __name((entities, newCellValidate) => {
|
|
55464
55571
|
const { change, schema: schema2 } = computePresets(this.props);
|
|
55465
|
-
|
|
55466
|
-
|
|
55467
|
-
|
|
55468
|
-
|
|
55469
|
-
|
|
55470
|
-
|
|
55471
|
-
|
|
55472
|
-
|
|
55473
|
-
);
|
|
55572
|
+
const tableWideErr = validateTableWideErrors({
|
|
55573
|
+
entities,
|
|
55574
|
+
schema: schema2,
|
|
55575
|
+
newCellValidate,
|
|
55576
|
+
props: this.props
|
|
55577
|
+
});
|
|
55578
|
+
change("reduxFormCellValidation", tableWideErr);
|
|
55579
|
+
this.forceUpdate();
|
|
55474
55580
|
}, "updateValidation"));
|
|
55475
55581
|
__publicField(this, "handleDeleteCell", /* @__PURE__ */ __name(() => {
|
|
55476
55582
|
const {
|
|
@@ -55536,7 +55642,7 @@ const _DataTable = class _DataTable extends React$2.Component {
|
|
|
55536
55642
|
onFinishMsg: "Column Copied"
|
|
55537
55643
|
});
|
|
55538
55644
|
}, "handleCopyColumn"));
|
|
55539
|
-
__publicField(this, "handleCopyRows", /* @__PURE__ */ __name((rowElsToCopy, { specificColumn, onFinishMsg } = {}) => {
|
|
55645
|
+
__publicField(this, "handleCopyRows", /* @__PURE__ */ __name((rowElsToCopy, { specificColumn, onFinishMsg, isDownload } = {}) => {
|
|
55540
55646
|
let textToCopy = [];
|
|
55541
55647
|
const jsonToCopy = [];
|
|
55542
55648
|
lodashExports.forEach(rowElsToCopy, (rowEl) => {
|
|
@@ -55547,7 +55653,15 @@ const _DataTable = class _DataTable extends React$2.Component {
|
|
|
55547
55653
|
textToCopy = textToCopy.filter((text2) => text2).join("\n");
|
|
55548
55654
|
if (!textToCopy)
|
|
55549
55655
|
return window.toastr.warning("No text to copy");
|
|
55550
|
-
|
|
55656
|
+
if (isDownload) {
|
|
55657
|
+
downloadjs(textToCopy.replaceAll(" ", ","), "tableData.csv", "text/csv");
|
|
55658
|
+
} else {
|
|
55659
|
+
this.handleCopyHelper(
|
|
55660
|
+
textToCopy,
|
|
55661
|
+
jsonToCopy,
|
|
55662
|
+
onFinishMsg || "Row Copied"
|
|
55663
|
+
);
|
|
55664
|
+
}
|
|
55551
55665
|
}, "handleCopyRows"));
|
|
55552
55666
|
__publicField(this, "updateEntitiesHelper", /* @__PURE__ */ __name((ents, fn4) => {
|
|
55553
55667
|
const { change, reduxFormEntitiesUndoRedoStack = { currentVersion: 0 } } = this.props;
|
|
@@ -55600,14 +55714,14 @@ const _DataTable = class _DataTable extends React$2.Component {
|
|
|
55600
55714
|
window.toastr.success(message);
|
|
55601
55715
|
}
|
|
55602
55716
|
}, "handleCopyHelper"));
|
|
55603
|
-
__publicField(this, "handleCopyTable", /* @__PURE__ */ __name((e2) => {
|
|
55717
|
+
__publicField(this, "handleCopyTable", /* @__PURE__ */ __name((e2, opts2) => {
|
|
55604
55718
|
try {
|
|
55605
55719
|
const allRowEls = getAllRows(e2);
|
|
55606
55720
|
if (!allRowEls)
|
|
55607
55721
|
return;
|
|
55608
|
-
this.handleCopyRows(allRowEls, {
|
|
55722
|
+
this.handleCopyRows(allRowEls, __spreadProps(__spreadValues({}, opts2), {
|
|
55609
55723
|
onFinishMsg: "Table Copied"
|
|
55610
|
-
});
|
|
55724
|
+
}));
|
|
55611
55725
|
} catch (error) {
|
|
55612
55726
|
console.error(`error:`, error);
|
|
55613
55727
|
window.toastr.error("Error copying rows.");
|
|
@@ -55855,7 +55969,8 @@ const _DataTable = class _DataTable extends React$2.Component {
|
|
|
55855
55969
|
getRowClassName && getRowClassName(rowInfo, state2, this.props),
|
|
55856
55970
|
{
|
|
55857
55971
|
disabled: rowDisabled,
|
|
55858
|
-
selected: rowSelected && !withCheckboxes
|
|
55972
|
+
selected: rowSelected && !withCheckboxes,
|
|
55973
|
+
"rt-tr-last-row": rowInfo.index === entities.length - 1
|
|
55859
55974
|
}
|
|
55860
55975
|
),
|
|
55861
55976
|
"data-test-id": dataId === void 0 ? rowInfo.index : dataId,
|
|
@@ -55952,7 +56067,8 @@ const _DataTable = class _DataTable extends React$2.Component {
|
|
|
55952
56067
|
this.startCellEdit(cellId);
|
|
55953
56068
|
}
|
|
55954
56069
|
}, err2 && {
|
|
55955
|
-
"data-tip": (err2 == null ? void 0 : err2.message) || err2
|
|
56070
|
+
"data-tip": (err2 == null ? void 0 : err2.message) || err2,
|
|
56071
|
+
"data-no-child-data-tip": true
|
|
55956
56072
|
}), {
|
|
55957
56073
|
onContextMenu: (e2) => {
|
|
55958
56074
|
if (!isPrimarySelected) {
|
|
@@ -57258,6 +57374,7 @@ const _DataTable = class _DataTable extends React$2.Component {
|
|
|
57258
57374
|
);
|
|
57259
57375
|
}, "renderColumnHeader"));
|
|
57260
57376
|
if (this.props.helperProp) {
|
|
57377
|
+
this.props.helperProp.updateValidationHelper = this.updateValidationHelper;
|
|
57261
57378
|
this.props.helperProp.addEditableTableEntities = this.addEditableTableEntities;
|
|
57262
57379
|
this.props.helperProp.getEditableTableInfoAndThrowFormError = this.getEditableTableInfoAndThrowFormError;
|
|
57263
57380
|
}
|
|
@@ -57857,27 +57974,6 @@ const _DataTable = class _DataTable extends React$2.Component {
|
|
|
57857
57974
|
if (n2)
|
|
57858
57975
|
this.table = n2;
|
|
57859
57976
|
},
|
|
57860
|
-
additionalBodyEl: isCellEditable && !onlyShowRowsWErrors && /* @__PURE__ */ React$2.createElement(
|
|
57861
|
-
"div",
|
|
57862
|
-
{
|
|
57863
|
-
style: {
|
|
57864
|
-
width: "100%",
|
|
57865
|
-
display: "flex",
|
|
57866
|
-
justifyContent: "center"
|
|
57867
|
-
}
|
|
57868
|
-
},
|
|
57869
|
-
/* @__PURE__ */ React$2.createElement(
|
|
57870
|
-
core$5.Button,
|
|
57871
|
-
{
|
|
57872
|
-
icon: "add",
|
|
57873
|
-
onClick: () => {
|
|
57874
|
-
this.insertRows({ numRows: 10, appendToBottom: true });
|
|
57875
|
-
},
|
|
57876
|
-
minimal: true
|
|
57877
|
-
},
|
|
57878
|
-
"Add 10 Rows"
|
|
57879
|
-
)
|
|
57880
|
-
),
|
|
57881
57977
|
className: classNames({
|
|
57882
57978
|
isCellEditable,
|
|
57883
57979
|
"tg-table-loading": isLoading,
|
|
@@ -57919,6 +58015,37 @@ const _DataTable = class _DataTable extends React$2.Component {
|
|
|
57919
58015
|
SubComponent: SubComponentToUse
|
|
57920
58016
|
}, ReactTableProps)
|
|
57921
58017
|
),
|
|
58018
|
+
isCellEditable && /* @__PURE__ */ React$2.createElement("div", { style: { display: "flex" } }, /* @__PURE__ */ React$2.createElement(
|
|
58019
|
+
"div",
|
|
58020
|
+
{
|
|
58021
|
+
style: {
|
|
58022
|
+
width: "100%",
|
|
58023
|
+
display: "flex",
|
|
58024
|
+
justifyContent: "center"
|
|
58025
|
+
}
|
|
58026
|
+
},
|
|
58027
|
+
!onlyShowRowsWErrors && /* @__PURE__ */ React$2.createElement(
|
|
58028
|
+
core$5.Button,
|
|
58029
|
+
{
|
|
58030
|
+
icon: "add",
|
|
58031
|
+
onClick: () => {
|
|
58032
|
+
this.insertRows({ numRows: 10, appendToBottom: true });
|
|
58033
|
+
},
|
|
58034
|
+
minimal: true
|
|
58035
|
+
},
|
|
58036
|
+
"Add 10 Rows"
|
|
58037
|
+
)
|
|
58038
|
+
), /* @__PURE__ */ React$2.createElement(
|
|
58039
|
+
core$5.Button,
|
|
58040
|
+
{
|
|
58041
|
+
onClick: (e2) => {
|
|
58042
|
+
this.handleCopyTable(e2, { isDownload: true });
|
|
58043
|
+
},
|
|
58044
|
+
"data-tip": "Download Table as CSV",
|
|
58045
|
+
minimal: true,
|
|
58046
|
+
icon: "download"
|
|
58047
|
+
}
|
|
58048
|
+
)),
|
|
57922
58049
|
!noFooter && /* @__PURE__ */ React$2.createElement(
|
|
57923
58050
|
"div",
|
|
57924
58051
|
{
|
|
@@ -58526,6 +58653,7 @@ function MatchHeaders({
|
|
|
58526
58653
|
onMultiFileUploadSubmit,
|
|
58527
58654
|
doAllFilesHaveSameHeaders,
|
|
58528
58655
|
csvValidationIssue,
|
|
58656
|
+
ignoredHeadersMsg,
|
|
58529
58657
|
searchResults,
|
|
58530
58658
|
matchedHeaders,
|
|
58531
58659
|
userSchema,
|
|
@@ -58543,7 +58671,7 @@ function MatchHeaders({
|
|
|
58543
58671
|
if (v2)
|
|
58544
58672
|
flippedMatchedHeaders[v2] = k2;
|
|
58545
58673
|
});
|
|
58546
|
-
return /* @__PURE__ */ React$2.createElement("div", { style: { maxWidth: 500 } }, !onMultiFileUploadSubmit && /* @__PURE__ */ React$2.createElement(core$5.Callout, { style: { width: "fit-content" }, intent: "warning" }, csvValidationIssue), /* @__PURE__ */ React$2.createElement("br", null), /* @__PURE__ */ React$2.createElement(
|
|
58674
|
+
return /* @__PURE__ */ React$2.createElement("div", { style: { maxWidth: 500 } }, !onMultiFileUploadSubmit && /* @__PURE__ */ React$2.createElement(core$5.Callout, { style: { width: "fit-content" }, intent: "warning" }, csvValidationIssue), !onMultiFileUploadSubmit && ignoredHeadersMsg && /* @__PURE__ */ React$2.createElement(core$5.Callout, { style: { width: "fit-content" }, intent: "warning" }, ignoredHeadersMsg), /* @__PURE__ */ React$2.createElement("br", null), /* @__PURE__ */ React$2.createElement(
|
|
58547
58675
|
"tr",
|
|
58548
58676
|
{
|
|
58549
58677
|
style: {
|
|
@@ -58932,7 +59060,7 @@ const AdvancedOptions$1 = {
|
|
|
58932
59060
|
};
|
|
58933
59061
|
var Config = __spreadValues(__spreadValues(__spreadValues(__spreadValues({}, BasicOptions), MatchOptions), FuzzyOptions), AdvancedOptions$1);
|
|
58934
59062
|
const SPACE = /[^ ]+/g;
|
|
58935
|
-
function norm(weight = 1, mantissa = 3) {
|
|
59063
|
+
function norm$1(weight = 1, mantissa = 3) {
|
|
58936
59064
|
const cache2 = /* @__PURE__ */ new Map();
|
|
58937
59065
|
const m2 = Math.pow(10, mantissa);
|
|
58938
59066
|
return {
|
|
@@ -58951,13 +59079,13 @@ function norm(weight = 1, mantissa = 3) {
|
|
|
58951
59079
|
}
|
|
58952
59080
|
};
|
|
58953
59081
|
}
|
|
58954
|
-
__name(norm, "norm");
|
|
59082
|
+
__name(norm$1, "norm$1");
|
|
58955
59083
|
const _FuseIndex = class _FuseIndex {
|
|
58956
59084
|
constructor({
|
|
58957
59085
|
getFn = Config.getFn,
|
|
58958
59086
|
fieldNormWeight = Config.fieldNormWeight
|
|
58959
59087
|
} = {}) {
|
|
58960
|
-
this.norm = norm(fieldNormWeight, 3);
|
|
59088
|
+
this.norm = norm$1(fieldNormWeight, 3);
|
|
58961
59089
|
this.getFn = getFn;
|
|
58962
59090
|
this.isCreated = false;
|
|
58963
59091
|
this.setIndexRecords();
|
|
@@ -60106,7 +60234,7 @@ function tryToMatchSchemas(_0) {
|
|
|
60106
60234
|
}) {
|
|
60107
60235
|
yield resolveValidateAgainstSchema();
|
|
60108
60236
|
const userSchema = getSchema(incomingData);
|
|
60109
|
-
const { searchResults, csvValidationIssue } = yield matchSchemas({
|
|
60237
|
+
const { searchResults, csvValidationIssue, ignoredHeadersMsg } = yield matchSchemas({
|
|
60110
60238
|
userSchema,
|
|
60111
60239
|
officialSchema: validateAgainstSchema
|
|
60112
60240
|
});
|
|
@@ -60142,6 +60270,7 @@ function tryToMatchSchemas(_0) {
|
|
|
60142
60270
|
}
|
|
60143
60271
|
});
|
|
60144
60272
|
return {
|
|
60273
|
+
ignoredHeadersMsg,
|
|
60145
60274
|
csvValidationIssue,
|
|
60146
60275
|
matchedHeaders,
|
|
60147
60276
|
userSchema,
|
|
@@ -60158,15 +60287,31 @@ function matchSchemas(_0) {
|
|
|
60158
60287
|
};
|
|
60159
60288
|
let csvValidationIssue = false;
|
|
60160
60289
|
const fuse = new Fuse(userSchema.fields, options);
|
|
60290
|
+
const matchedAltPaths = [];
|
|
60161
60291
|
officialSchema.fields.forEach((h2) => {
|
|
60162
60292
|
let hasMatch = false;
|
|
60163
60293
|
let result = fuse.search(h2.path) || [];
|
|
60294
|
+
const hadNormalPathMatch = userSchema.fields.some(
|
|
60295
|
+
(uh) => norm(uh.path) === norm(h2.path)
|
|
60296
|
+
);
|
|
60164
60297
|
userSchema.fields.forEach((uh, i) => {
|
|
60165
|
-
const pathMatch = uh.path
|
|
60166
|
-
const displayNameMatch = h2.displayName && uh.path
|
|
60167
|
-
const hasAlternatePathMatch = h2.alternatePathMatch && (lodashExports.isArray(h2.alternatePathMatch) ? h2.alternatePathMatch.
|
|
60168
|
-
|
|
60169
|
-
|
|
60298
|
+
const pathMatch = norm(uh.path) === norm(h2.path);
|
|
60299
|
+
const displayNameMatch = h2.displayName && norm(uh.path) === norm(getTextFromEl(h2.displayName));
|
|
60300
|
+
const hasAlternatePathMatch = !hadNormalPathMatch && h2.alternatePathMatch && (lodashExports.isArray(h2.alternatePathMatch) ? h2.alternatePathMatch : [h2.alternatePathMatch]).find((alternatePathMatch) => {
|
|
60301
|
+
let altPath = alternatePathMatch;
|
|
60302
|
+
if (lodashExports.isPlainObject(alternatePathMatch)) {
|
|
60303
|
+
altPath = alternatePathMatch.path;
|
|
60304
|
+
}
|
|
60305
|
+
return norm(uh.path) === norm(altPath);
|
|
60306
|
+
});
|
|
60307
|
+
if (hasAlternatePathMatch) {
|
|
60308
|
+
matchedAltPaths.push(
|
|
60309
|
+
hasAlternatePathMatch.path || hasAlternatePathMatch
|
|
60310
|
+
);
|
|
60311
|
+
if (hasAlternatePathMatch.format) {
|
|
60312
|
+
h2.format = hasAlternatePathMatch.format;
|
|
60313
|
+
}
|
|
60314
|
+
}
|
|
60170
60315
|
if (pathMatch || displayNameMatch || hasAlternatePathMatch) {
|
|
60171
60316
|
result = result.filter(({ path: path2 }) => path2 === uh.path);
|
|
60172
60317
|
result.unshift({
|
|
@@ -60186,6 +60331,16 @@ function matchSchemas(_0) {
|
|
|
60186
60331
|
csvValidationIssue = "It looks like some of the headers in your uploaded file(s) do not match the expected headers. Please look over and correct any issues with the mappings below.";
|
|
60187
60332
|
}
|
|
60188
60333
|
});
|
|
60334
|
+
const ignoredUserSchemaFields = [];
|
|
60335
|
+
userSchema.fields.forEach((uh) => {
|
|
60336
|
+
if (!officialSchema.fields.find(
|
|
60337
|
+
(h2) => norm(h2.path) === norm(uh.path) || norm(h2.displayName) === norm(uh.path) || matchedAltPaths.includes(uh.path)
|
|
60338
|
+
)) {
|
|
60339
|
+
if (userSchema.userData.some((e2) => e2[uh.path])) {
|
|
60340
|
+
ignoredUserSchemaFields.push(uh);
|
|
60341
|
+
}
|
|
60342
|
+
}
|
|
60343
|
+
});
|
|
60189
60344
|
if (officialSchema.coerceUserSchema) {
|
|
60190
60345
|
officialSchema.coerceUserSchema({ userSchema, officialSchema });
|
|
60191
60346
|
}
|
|
@@ -60243,9 +60398,14 @@ function matchSchemas(_0) {
|
|
|
60243
60398
|
};
|
|
60244
60399
|
}
|
|
60245
60400
|
}
|
|
60401
|
+
let ignoredHeadersMsg;
|
|
60402
|
+
if (ignoredUserSchemaFields.length) {
|
|
60403
|
+
ignoredHeadersMsg = `It looks like the following headers in your file didn't map to any of the accepted headers: ${ignoredUserSchemaFields.map((f2) => f2.displayName || f2.path).join(", ")}`;
|
|
60404
|
+
}
|
|
60246
60405
|
return {
|
|
60247
60406
|
searchResults: officialSchema.fields,
|
|
60248
|
-
csvValidationIssue
|
|
60407
|
+
csvValidationIssue,
|
|
60408
|
+
ignoredHeadersMsg
|
|
60249
60409
|
};
|
|
60250
60410
|
});
|
|
60251
60411
|
}
|
|
@@ -60264,6 +60424,10 @@ function resolveValidateAgainstSchema() {
|
|
|
60264
60424
|
});
|
|
60265
60425
|
}
|
|
60266
60426
|
__name(resolveValidateAgainstSchema, "resolveValidateAgainstSchema");
|
|
60427
|
+
function norm(h2) {
|
|
60428
|
+
return lodashExports.snakeCase(h2).toLowerCase().replace(/ /g, "");
|
|
60429
|
+
}
|
|
60430
|
+
__name(norm, "norm");
|
|
60267
60431
|
const getInitialSteps = /* @__PURE__ */ __name((csvValidationIssue) => [
|
|
60268
60432
|
{ text: "Review Headers", active: csvValidationIssue },
|
|
60269
60433
|
{ text: "Review Data", active: !csvValidationIssue }
|
|
@@ -60311,6 +60475,7 @@ const UploadCsvWizardDialog = compose(
|
|
|
60311
60475
|
doAllFilesHaveSameHeaders,
|
|
60312
60476
|
destroyForms,
|
|
60313
60477
|
csvValidationIssue,
|
|
60478
|
+
ignoredHeadersMsg,
|
|
60314
60479
|
searchResults,
|
|
60315
60480
|
matchedHeaders,
|
|
60316
60481
|
userSchema,
|
|
@@ -60422,6 +60587,7 @@ const UploadCsvWizardDialog = compose(
|
|
|
60422
60587
|
destroyForms,
|
|
60423
60588
|
setFilesWIssues,
|
|
60424
60589
|
csvValidationIssue,
|
|
60590
|
+
ignoredHeadersMsg,
|
|
60425
60591
|
searchResults,
|
|
60426
60592
|
matchedHeaders,
|
|
60427
60593
|
userSchema,
|
|
@@ -60457,6 +60623,7 @@ const UploadCsvWizardDialog = compose(
|
|
|
60457
60623
|
reduxFormEntitiesArray,
|
|
60458
60624
|
// onMultiFileUploadSubmit,
|
|
60459
60625
|
csvValidationIssue,
|
|
60626
|
+
ignoredHeadersMsg,
|
|
60460
60627
|
searchResults,
|
|
60461
60628
|
matchedHeaders,
|
|
60462
60629
|
userSchema,
|
|
@@ -60499,6 +60666,7 @@ const UploadCsvWizardDialog = compose(
|
|
|
60499
60666
|
searchResults,
|
|
60500
60667
|
onUploadWizardFinish,
|
|
60501
60668
|
csvValidationIssue,
|
|
60669
|
+
ignoredHeadersMsg,
|
|
60502
60670
|
matchedHeaders,
|
|
60503
60671
|
//fromRedux:
|
|
60504
60672
|
changeForm,
|
|
@@ -60528,6 +60696,7 @@ const UploadCsvWizardDialogInner = compose(
|
|
|
60528
60696
|
searchResults,
|
|
60529
60697
|
onUploadWizardFinish,
|
|
60530
60698
|
csvValidationIssue,
|
|
60699
|
+
ignoredHeadersMsg,
|
|
60531
60700
|
matchedHeaders,
|
|
60532
60701
|
//fromRedux:
|
|
60533
60702
|
handleSubmit,
|
|
@@ -60565,6 +60734,7 @@ const UploadCsvWizardDialogInner = compose(
|
|
|
60565
60734
|
__spreadValues({}, {
|
|
60566
60735
|
onMultiFileUploadSubmit,
|
|
60567
60736
|
csvValidationIssue,
|
|
60737
|
+
ignoredHeadersMsg,
|
|
60568
60738
|
searchResults,
|
|
60569
60739
|
matchedHeaders,
|
|
60570
60740
|
userSchema,
|
|
@@ -68737,7 +68907,7 @@ const isZipFile = /* @__PURE__ */ __name((file) => {
|
|
|
68737
68907
|
}, "isZipFile");
|
|
68738
68908
|
const getExt = /* @__PURE__ */ __name((file) => {
|
|
68739
68909
|
var _a2;
|
|
68740
|
-
return (_a2 = file == null ? void 0 : file.name) == null ? void 0 : _a2.split(".").pop();
|
|
68910
|
+
return (_a2 = (file == null ? void 0 : file.name) || (file == null ? void 0 : file.originalname)) == null ? void 0 : _a2.split(".").pop();
|
|
68741
68911
|
}, "getExt");
|
|
68742
68912
|
const isExcelFile = /* @__PURE__ */ __name((file) => getExt(file) === "xlsx", "isExcelFile");
|
|
68743
68913
|
const isCsvFile = /* @__PURE__ */ __name((file) => getExt(file) === "csv", "isCsvFile");
|
|
@@ -68825,7 +68995,9 @@ const parseCsvFile = /* @__PURE__ */ __name((csvFile, parserOptions = {}) => {
|
|
|
68825
68995
|
const opts2 = __spreadProps(__spreadValues(__spreadValues({}, defaultCsvParserOptions), setupCsvParserOptions(parserOptions)), {
|
|
68826
68996
|
complete: (results) => {
|
|
68827
68997
|
var _a2;
|
|
68828
|
-
if (results && ((_a2 = results.data) == null ? void 0 : _a2.length) && results.errors && results.errors.length === 1 && results.errors[0].code === `UndetectableDelimiter`
|
|
68998
|
+
if (results && ((_a2 = results.data) == null ? void 0 : _a2.length) && results.errors && (results.errors.length === 1 && results.errors[0].code === `UndetectableDelimiter` || results.errors.every(
|
|
68999
|
+
(e2) => e2.code === `TooFewFields` || e2.code === `TooManyFields`
|
|
69000
|
+
))) {
|
|
68829
69001
|
return resolve(results);
|
|
68830
69002
|
} else if (results && results.errors && results.errors.length) {
|
|
68831
69003
|
return reject("Error in csv: " + JSON.stringify(results.errors));
|
|
@@ -70375,7 +70547,7 @@ __name(_ValidateAgainstSchema, "ValidateAgainstSchema");
|
|
|
70375
70547
|
let ValidateAgainstSchema = _ValidateAgainstSchema;
|
|
70376
70548
|
const emptyPromise = Promise.resolve.bind(Promise);
|
|
70377
70549
|
function UploaderInner({
|
|
70378
|
-
accept:
|
|
70550
|
+
accept: __accept,
|
|
70379
70551
|
contentOverride: maybeContentOverride,
|
|
70380
70552
|
innerIcon,
|
|
70381
70553
|
innerText,
|
|
@@ -70405,20 +70577,37 @@ function UploaderInner({
|
|
|
70405
70577
|
dropzoneProps = {},
|
|
70406
70578
|
overflowList,
|
|
70407
70579
|
autoUnzip,
|
|
70408
|
-
disabled,
|
|
70580
|
+
disabled: _disabled,
|
|
70409
70581
|
noBuildCsvOption,
|
|
70410
70582
|
initializeForm,
|
|
70411
70583
|
showFilesCount,
|
|
70412
70584
|
threeDotMenuItems,
|
|
70413
70585
|
onPreviewClick
|
|
70414
70586
|
}) {
|
|
70415
|
-
var _a2, _b2, _c, _d
|
|
70587
|
+
var _a2, _b2, _c, _d;
|
|
70588
|
+
let dropzoneDisabled = _disabled;
|
|
70589
|
+
let _accept = __accept;
|
|
70416
70590
|
const validateAgainstSchemaStore = React$2.useRef(new ValidateAgainstSchema());
|
|
70417
|
-
const
|
|
70418
|
-
|
|
70419
|
-
|
|
70420
|
-
|
|
70421
|
-
)) == null ? void 0 :
|
|
70591
|
+
const [resolvedAccept, setResolvedAccept] = React$2.useState();
|
|
70592
|
+
if (resolvedAccept) {
|
|
70593
|
+
_accept = resolvedAccept;
|
|
70594
|
+
}
|
|
70595
|
+
const isAcceptPromise = (__accept == null ? void 0 : __accept.then) || (Array.isArray(__accept) ? __accept.some((a2) => a2 == null ? void 0 : a2.then) : false);
|
|
70596
|
+
const acceptLoading = !resolvedAccept && isAcceptPromise && `Accept Loading...`;
|
|
70597
|
+
if (isAcceptPromise && !resolvedAccept) {
|
|
70598
|
+
Promise.allSettled(Array.isArray(__accept) ? __accept : [__accept]).then(
|
|
70599
|
+
(results) => {
|
|
70600
|
+
const resolved = lodashExports.flatMap(results, (r2) => r2.value);
|
|
70601
|
+
setResolvedAccept(resolved);
|
|
70602
|
+
}
|
|
70603
|
+
);
|
|
70604
|
+
_accept = [];
|
|
70605
|
+
}
|
|
70606
|
+
if (acceptLoading)
|
|
70607
|
+
dropzoneDisabled = true;
|
|
70608
|
+
const accept = !_accept ? void 0 : isAcceptPromise && !resolvedAccept ? [] : lodashExports.isPlainObject(_accept) ? [_accept] : lodashExports.isArray(_accept) ? _accept : _accept.split(",").map((a2) => ({ type: a2 }));
|
|
70609
|
+
const callout = _callout || ((_b2 = (_a2 = accept == null ? void 0 : accept.find) == null ? void 0 : _a2.call(accept, (a2) => a2 == null ? void 0 : a2.callout)) == null ? void 0 : _b2.callout);
|
|
70610
|
+
const validateAgainstSchemaToUse = _validateAgainstSchema || ((_d = (_c = accept == null ? void 0 : accept.find) == null ? void 0 : _c.call(accept, (a2) => a2 == null ? void 0 : a2.validateAgainstSchema)) == null ? void 0 : _d.validateAgainstSchema);
|
|
70422
70611
|
React$2.useEffect(() => {
|
|
70423
70612
|
validateAgainstSchemaStore.current.setValidateAgainstSchema(
|
|
70424
70613
|
validateAgainstSchemaToUse
|
|
@@ -70428,7 +70617,6 @@ function UploaderInner({
|
|
|
70428
70617
|
if (validateAgainstSchemaToUse) {
|
|
70429
70618
|
validateAgainstSchema = validateAgainstSchemaStore.current;
|
|
70430
70619
|
}
|
|
70431
|
-
const accept = !_accept ? void 0 : lodashExports.isPlainObject(_accept) ? [_accept] : lodashExports.isArray(_accept) ? _accept : _accept.split(",").map((a2) => ({ type: a2 }));
|
|
70432
70620
|
if ((validateAgainstSchema || autoUnzip) && accept && !accept.some((a2) => a2.type === "zip")) {
|
|
70433
70621
|
accept == null ? void 0 : accept.unshift({
|
|
70434
70622
|
type: "zip",
|
|
@@ -70693,14 +70881,14 @@ function UploaderInner({
|
|
|
70693
70881
|
className: "tg-uploader-inner",
|
|
70694
70882
|
style: { width: "100%", height: "fit-content", minWidth: 0 }
|
|
70695
70883
|
},
|
|
70696
|
-
simpleAccept && /* @__PURE__ */ React$2.createElement(
|
|
70884
|
+
(simpleAccept || acceptLoading) && /* @__PURE__ */ React$2.createElement(
|
|
70697
70885
|
"div",
|
|
70698
70886
|
{
|
|
70699
70887
|
className: core$5.Classes.TEXT_MUTED,
|
|
70700
70888
|
style: { fontSize: 11, marginBottom: 5 }
|
|
70701
70889
|
},
|
|
70702
70890
|
advancedAccept ? /* @__PURE__ */ React$2.createElement("div", { style: {} }, "Accepts ", /* @__PURE__ */ React$2.createElement("span", { style: {} }, advancedAccept.map((a2, i) => {
|
|
70703
|
-
const
|
|
70891
|
+
const disabled = !(a2.description || a2.exampleFile || a2.exampleFiles);
|
|
70704
70892
|
const PopOrTooltip = a2.exampleFiles ? core$5.Popover : core$5.Tooltip;
|
|
70705
70893
|
const hasDownload = a2.exampleFile || a2.exampleFiles;
|
|
70706
70894
|
const CustomTag = !hasDownload ? "span" : "a";
|
|
@@ -70709,7 +70897,7 @@ function UploaderInner({
|
|
|
70709
70897
|
{
|
|
70710
70898
|
key: i,
|
|
70711
70899
|
interactionKind: "hover",
|
|
70712
|
-
disabled
|
|
70900
|
+
disabled,
|
|
70713
70901
|
modifiers: popoverOverflowModifiers,
|
|
70714
70902
|
content: a2.exampleFiles ? /* @__PURE__ */ React$2.createElement(core$5.Menu, null, a2.exampleFiles.map(
|
|
70715
70903
|
({ description: description2, subtext, exampleFile, icon }, i2) => {
|
|
@@ -70787,12 +70975,15 @@ function UploaderInner({
|
|
|
70787
70975
|
)
|
|
70788
70976
|
)
|
|
70789
70977
|
);
|
|
70790
|
-
}))) :
|
|
70978
|
+
}))) : acceptLoading ? (
|
|
70979
|
+
// make the dots below "load"
|
|
70980
|
+
/* @__PURE__ */ React$2.createElement(React$2.Fragment, null, "Accept Loading", /* @__PURE__ */ React$2.createElement(LoadingDots, null))
|
|
70981
|
+
) : /* @__PURE__ */ React$2.createElement(React$2.Fragment, null, "Accepts ", simpleAccept)
|
|
70791
70982
|
),
|
|
70792
70983
|
/* @__PURE__ */ React$2.createElement(
|
|
70793
70984
|
Dropzone$1,
|
|
70794
70985
|
__spreadValues(__spreadValues({
|
|
70795
|
-
disabled,
|
|
70986
|
+
disabled: dropzoneDisabled,
|
|
70796
70987
|
onClick: (evt) => evt.preventDefault(),
|
|
70797
70988
|
multiple: fileLimit !== 1,
|
|
70798
70989
|
accept: simpleAccept ? simpleAccept.split(", ").map((a2) => a2.startsWith(".") ? a2 : "." + a2).join(", ") : void 0
|
|
@@ -70875,7 +71066,13 @@ function UploaderInner({
|
|
|
70875
71066
|
if (isCsvOrExcelFile(file)) {
|
|
70876
71067
|
let parsedF;
|
|
70877
71068
|
try {
|
|
70878
|
-
parsedF = yield parseCsvOrExcelFile(file
|
|
71069
|
+
parsedF = yield parseCsvOrExcelFile(file, {
|
|
71070
|
+
csvParserOptions: lodashExports.isFunction(
|
|
71071
|
+
validateAgainstSchema.csvParserOptions
|
|
71072
|
+
) ? validateAgainstSchema.csvParserOptions({
|
|
71073
|
+
validateAgainstSchema
|
|
71074
|
+
}) : validateAgainstSchema.csvParserOptions
|
|
71075
|
+
});
|
|
70879
71076
|
} catch (error) {
|
|
70880
71077
|
console.error("error:", error);
|
|
70881
71078
|
window.toastr && window.toastr.error(
|
|
@@ -70887,7 +71084,8 @@ function UploaderInner({
|
|
|
70887
71084
|
csvValidationIssue: _csvValidationIssue,
|
|
70888
71085
|
matchedHeaders,
|
|
70889
71086
|
userSchema,
|
|
70890
|
-
searchResults
|
|
71087
|
+
searchResults,
|
|
71088
|
+
ignoredHeadersMsg
|
|
70891
71089
|
} = yield tryToMatchSchemas({
|
|
70892
71090
|
incomingData: parsedF.data,
|
|
70893
71091
|
validateAgainstSchema
|
|
@@ -70930,6 +71128,7 @@ function UploaderInner({
|
|
|
70930
71128
|
filesWIssues.push({
|
|
70931
71129
|
file,
|
|
70932
71130
|
csvValidationIssue,
|
|
71131
|
+
ignoredHeadersMsg,
|
|
70933
71132
|
matchedHeaders,
|
|
70934
71133
|
userSchema,
|
|
70935
71134
|
searchResults
|
|
@@ -70938,6 +71137,7 @@ function UploaderInner({
|
|
|
70938
71137
|
filesWOIssues.push({
|
|
70939
71138
|
file,
|
|
70940
71139
|
csvValidationIssue,
|
|
71140
|
+
ignoredHeadersMsg,
|
|
70941
71141
|
matchedHeaders,
|
|
70942
71142
|
userSchema,
|
|
70943
71143
|
searchResults
|
|
@@ -71037,7 +71237,8 @@ function UploaderInner({
|
|
|
71037
71237
|
"tg-dropzone-reject": isDragReject,
|
|
71038
71238
|
// tnr: the acceptClassName/rejectClassName doesn't work with file extensions (only mimetypes are supported when dragging). Thus we'll just always turn the drop area blue when dragging and let the filtering occur on drop. See https://github.com/react-dropzone/react-dropzone/issues/888#issuecomment-773938074
|
|
71039
71239
|
"tg-dropzone-accept": isDragAccept,
|
|
71040
|
-
"tg-dropzone-disabled":
|
|
71240
|
+
"tg-dropzone-disabled": dropzoneDisabled,
|
|
71241
|
+
"bp3-disabled": dropzoneDisabled
|
|
71041
71242
|
})
|
|
71042
71243
|
}),
|
|
71043
71244
|
/* @__PURE__ */ React$2.createElement("input", __spreadValues({}, getInputProps())),
|
|
@@ -73401,7 +73602,7 @@ ObjectWithoutPrototypeCache.prototype.set = function(key, value) {
|
|
|
73401
73602
|
this.cache[key] = value;
|
|
73402
73603
|
};
|
|
73403
73604
|
var cacheDefault = {
|
|
73404
|
-
create: /* @__PURE__ */ __name(function
|
|
73605
|
+
create: /* @__PURE__ */ __name(function create4() {
|
|
73405
73606
|
return new ObjectWithoutPrototypeCache();
|
|
73406
73607
|
}, "create")
|
|
73407
73608
|
};
|
|
@@ -78509,7 +78710,7 @@ __name(requireEmpty, "requireEmpty");
|
|
|
78509
78710
|
}
|
|
78510
78711
|
}, "classCallCheck");
|
|
78511
78712
|
var createClass2 = function() {
|
|
78512
|
-
function
|
|
78713
|
+
function defineProperties4(target, props) {
|
|
78513
78714
|
for (var i = 0; i < props.length; i++) {
|
|
78514
78715
|
var descriptor2 = props[i];
|
|
78515
78716
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -78519,12 +78720,12 @@ __name(requireEmpty, "requireEmpty");
|
|
|
78519
78720
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
78520
78721
|
}
|
|
78521
78722
|
}
|
|
78522
|
-
__name(
|
|
78723
|
+
__name(defineProperties4, "defineProperties");
|
|
78523
78724
|
return function(Constructor, protoProps, staticProps) {
|
|
78524
78725
|
if (protoProps)
|
|
78525
|
-
|
|
78726
|
+
defineProperties4(Constructor.prototype, protoProps);
|
|
78526
78727
|
if (staticProps)
|
|
78527
|
-
|
|
78728
|
+
defineProperties4(Constructor, staticProps);
|
|
78528
78729
|
return Constructor;
|
|
78529
78730
|
};
|
|
78530
78731
|
}();
|
|
@@ -82339,10 +82540,10 @@ __name(requireEmpty, "requireEmpty");
|
|
|
82339
82540
|
return value;
|
|
82340
82541
|
}
|
|
82341
82542
|
__name(dateReviver, "dateReviver");
|
|
82342
|
-
function
|
|
82543
|
+
function create6(options) {
|
|
82343
82544
|
return new DiffPatcher(options);
|
|
82344
82545
|
}
|
|
82345
|
-
__name(
|
|
82546
|
+
__name(create6, "create");
|
|
82346
82547
|
var defaultInstance$4 = void 0;
|
|
82347
82548
|
function diff() {
|
|
82348
82549
|
if (!defaultInstance$4) {
|
|
@@ -82382,7 +82583,7 @@ __name(requireEmpty, "requireEmpty");
|
|
|
82382
82583
|
exports3.DiffPatcher = DiffPatcher;
|
|
82383
82584
|
exports3.formatters = index2;
|
|
82384
82585
|
exports3.console = console$1;
|
|
82385
|
-
exports3.create =
|
|
82586
|
+
exports3.create = create6;
|
|
82386
82587
|
exports3.dateReviver = dateReviver;
|
|
82387
82588
|
exports3.diff = diff;
|
|
82388
82589
|
exports3.patch = patch2;
|
|
@@ -82911,7 +83112,7 @@ const modifiableTypes = [
|
|
|
82911
83112
|
let allWarnings = [];
|
|
82912
83113
|
let makeToast = /* @__PURE__ */ __name(() => {
|
|
82913
83114
|
if (typeof window !== "undefined" && window.toastr && allWarnings.length) {
|
|
82914
|
-
window.toastr.warning(allWarnings.join("\n"));
|
|
83115
|
+
window.toastr.warning(lodashExports.uniq(allWarnings).join("\n"));
|
|
82915
83116
|
}
|
|
82916
83117
|
allWarnings = [];
|
|
82917
83118
|
}, "makeToast");
|
|
@@ -91812,6 +92013,8 @@ function convertAmbiguousStringToRegex(string2, isProtein2) {
|
|
|
91812
92013
|
}
|
|
91813
92014
|
__name(convertAmbiguousStringToRegex, "convertAmbiguousStringToRegex");
|
|
91814
92015
|
function getComplementSequenceString(sequence2, isRna2) {
|
|
92016
|
+
if (typeof sequence2 !== "string")
|
|
92017
|
+
return "";
|
|
91815
92018
|
let complementSeqString = "";
|
|
91816
92019
|
const complementMap = lodashExports.merge(
|
|
91817
92020
|
DNAComplementMap,
|
|
@@ -106798,7 +107001,7 @@ var defineProperty$2 = /* @__PURE__ */ __name(function(object3, name2, value, pr
|
|
|
106798
107001
|
object3[name2] = value;
|
|
106799
107002
|
}
|
|
106800
107003
|
}, "defineProperty$2");
|
|
106801
|
-
var
|
|
107004
|
+
var defineProperties3 = /* @__PURE__ */ __name(function(object3, map3) {
|
|
106802
107005
|
var predicates = arguments.length > 2 ? arguments[2] : {};
|
|
106803
107006
|
var props = keys$1(map3);
|
|
106804
107007
|
if (hasSymbols2) {
|
|
@@ -106808,8 +107011,8 @@ var defineProperties2 = /* @__PURE__ */ __name(function(object3, map3) {
|
|
|
106808
107011
|
defineProperty$2(object3, props[i], map3[props[i]], predicates[props[i]]);
|
|
106809
107012
|
}
|
|
106810
107013
|
}, "defineProperties");
|
|
106811
|
-
|
|
106812
|
-
var defineProperties_1 =
|
|
107014
|
+
defineProperties3.supportsDescriptors = !!supportsDescriptors$2;
|
|
107015
|
+
var defineProperties_1 = defineProperties3;
|
|
106813
107016
|
var numberIsNaN = /* @__PURE__ */ __name(function(value) {
|
|
106814
107017
|
return value !== value;
|
|
106815
107018
|
}, "numberIsNaN");
|
|
@@ -115536,7 +115739,7 @@ function usePrevious(current) {
|
|
|
115536
115739
|
return ref;
|
|
115537
115740
|
}
|
|
115538
115741
|
__name(usePrevious, "usePrevious");
|
|
115539
|
-
function
|
|
115742
|
+
function create5() {
|
|
115540
115743
|
let lock = null;
|
|
115541
115744
|
function isClaimed() {
|
|
115542
115745
|
return Boolean(lock);
|
|
@@ -115575,7 +115778,7 @@ function create4() {
|
|
|
115575
115778
|
tryAbandon
|
|
115576
115779
|
};
|
|
115577
115780
|
}
|
|
115578
|
-
__name(
|
|
115781
|
+
__name(create5, "create");
|
|
115579
115782
|
function isDragging(state2) {
|
|
115580
115783
|
if (state2.phase === "IDLE" || state2.phase === "DROP_ANIMATING") {
|
|
115581
115784
|
return false;
|
|
@@ -116618,7 +116821,7 @@ function useSensorMarshal(_ref4) {
|
|
|
116618
116821
|
enableDefaultSensors
|
|
116619
116822
|
} = _ref4;
|
|
116620
116823
|
const useSensors = [...enableDefaultSensors ? defaultSensors : [], ...customSensors || []];
|
|
116621
|
-
const lockAPI = React$2.useState(() =>
|
|
116824
|
+
const lockAPI = React$2.useState(() => create5())[0];
|
|
116622
116825
|
const tryAbandonLock = useCallback(/* @__PURE__ */ __name(function tryAbandonLock2(previous2, current) {
|
|
116623
116826
|
if (isDragging(previous2) && !isDragging(current)) {
|
|
116624
116827
|
lockAPI.tryAbandon();
|
|
@@ -120649,6 +120852,7 @@ const Axis$1 = /* @__PURE__ */ __name(function(props) {
|
|
|
120649
120852
|
{
|
|
120650
120853
|
className: "veRowViewAxis veAxis",
|
|
120651
120854
|
height: annotationHeight,
|
|
120855
|
+
width,
|
|
120652
120856
|
style: __spreadValues({ marginTop, overflow: "visible", display: "block" }, style2)
|
|
120653
120857
|
},
|
|
120654
120858
|
tickMarkSVG,
|
|
@@ -123694,10 +123898,10 @@ function RowItem(props) {
|
|
|
123694
123898
|
height: height2
|
|
123695
123899
|
} = annotationVisibility2;
|
|
123696
123900
|
const { sequence: sequence2 = "", cutsites = [] } = row;
|
|
123697
|
-
const reverseSequence = getComplementSequenceString(
|
|
123901
|
+
const reverseSequence = showReverseSequence ? getComplementSequenceString(
|
|
123698
123902
|
alignmentData && alignmentData.sequence || sequence2,
|
|
123699
123903
|
isRna2
|
|
123700
|
-
);
|
|
123904
|
+
) : "";
|
|
123701
123905
|
const getGaps = React$2.useMemo(() => {
|
|
123702
123906
|
if (alignmentData) {
|
|
123703
123907
|
const gapMap = getGapMap$1(alignmentData.sequence);
|
|
@@ -124791,7 +124995,7 @@ function showFileDialog({ multiple = false, onSelect }) {
|
|
|
124791
124995
|
}
|
|
124792
124996
|
__name(showFileDialog, "showFileDialog");
|
|
124793
124997
|
const name = "@teselagen/ove";
|
|
124794
|
-
const version = "0.4.
|
|
124998
|
+
const version = "0.4.2";
|
|
124795
124999
|
const main = "./src/index.js";
|
|
124796
125000
|
const exports$1 = {
|
|
124797
125001
|
".": {
|
|
@@ -125793,8 +125997,10 @@ Object.keys(defaultCopyOptions).forEach((type) => {
|
|
|
125793
125997
|
const readOnlyDisabledTooltip = "Sorry this function is not allowed in Read-Only Mode";
|
|
125794
125998
|
const bpEditingDisabledTooltip = "Sequence Editing Disabled";
|
|
125795
125999
|
const noSelection = /* @__PURE__ */ __name(({ selectionLayer: selectionLayer2 = {} }) => !(selectionLayer2.start > -1 && selectionLayer2.end > -1) && "Selection Required", "noSelection");
|
|
125796
|
-
const triggerClipboardCommand = /* @__PURE__ */ __name((type) => {
|
|
125797
|
-
const wrapper2 = document.querySelector(
|
|
126000
|
+
const triggerClipboardCommand = /* @__PURE__ */ __name((type, props) => {
|
|
126001
|
+
const wrapper2 = document.querySelector(
|
|
126002
|
+
`.${props.editorName} .veVectorInteractionWrapper`
|
|
126003
|
+
);
|
|
125798
126004
|
if (!wrapper2) {
|
|
125799
126005
|
return window.toastr.info(`Cannot trigger a ${type} in the current view`);
|
|
125800
126006
|
}
|
|
@@ -125825,8 +126031,8 @@ const editCommandDefs = __spreadValues(__spreadProps(__spreadValues({
|
|
|
125825
126031
|
cut: {
|
|
125826
126032
|
isDisabled: (props) => props.disableBpEditing && bpEditingDisabledTooltip || props.readOnly && readOnlyDisabledTooltip || props.sequenceLength === 0,
|
|
125827
126033
|
isHidden: (props) => props.readOnly || props.disableBpEditing,
|
|
125828
|
-
handler: () => {
|
|
125829
|
-
triggerClipboardCommand("cut");
|
|
126034
|
+
handler: (props) => {
|
|
126035
|
+
triggerClipboardCommand("cut", props);
|
|
125830
126036
|
},
|
|
125831
126037
|
hotkey: "mod+x"
|
|
125832
126038
|
},
|
|
@@ -125844,13 +126050,13 @@ const editCommandDefs = __spreadValues(__spreadProps(__spreadValues({
|
|
|
125844
126050
|
},
|
|
125845
126051
|
copy: {
|
|
125846
126052
|
isDisabled: (props) => props.sequenceLength === 0,
|
|
125847
|
-
handler: () => triggerClipboardCommand("copy"),
|
|
126053
|
+
handler: (props) => triggerClipboardCommand("copy", props),
|
|
125848
126054
|
hotkey: "mod+c"
|
|
125849
126055
|
},
|
|
125850
126056
|
paste: {
|
|
125851
126057
|
isDisabled: (props) => props.readOnly && readOnlyDisabledTooltip,
|
|
125852
126058
|
isHidden: (props) => props.readOnly || props.disableBpEditing,
|
|
125853
|
-
handler: () => triggerClipboardCommand("paste"),
|
|
126059
|
+
handler: (props) => triggerClipboardCommand("paste", props),
|
|
125854
126060
|
hotkey: "mod+v"
|
|
125855
126061
|
},
|
|
125856
126062
|
undo: {
|
|
@@ -127099,7 +127305,7 @@ var classCallCheck = /* @__PURE__ */ __name(function(instance, Constructor) {
|
|
|
127099
127305
|
}
|
|
127100
127306
|
}, "classCallCheck");
|
|
127101
127307
|
var createClass = function() {
|
|
127102
|
-
function
|
|
127308
|
+
function defineProperties4(target, props) {
|
|
127103
127309
|
for (var i = 0; i < props.length; i++) {
|
|
127104
127310
|
var descriptor2 = props[i];
|
|
127105
127311
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -127109,16 +127315,16 @@ var createClass = function() {
|
|
|
127109
127315
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
127110
127316
|
}
|
|
127111
127317
|
}
|
|
127112
|
-
__name(
|
|
127318
|
+
__name(defineProperties4, "defineProperties");
|
|
127113
127319
|
return function(Constructor, protoProps, staticProps) {
|
|
127114
127320
|
if (protoProps)
|
|
127115
|
-
|
|
127321
|
+
defineProperties4(Constructor.prototype, protoProps);
|
|
127116
127322
|
if (staticProps)
|
|
127117
|
-
|
|
127323
|
+
defineProperties4(Constructor, staticProps);
|
|
127118
127324
|
return Constructor;
|
|
127119
127325
|
};
|
|
127120
127326
|
}();
|
|
127121
|
-
var
|
|
127327
|
+
var defineProperty4 = /* @__PURE__ */ __name(function(obj, key, value) {
|
|
127122
127328
|
if (key in obj) {
|
|
127123
127329
|
Object.defineProperty(obj, key, {
|
|
127124
127330
|
value,
|
|
@@ -127729,7 +127935,7 @@ function arrow(data, options) {
|
|
|
127729
127935
|
var sideValue = center - data.offsets.popper[side] - popperMarginSide - popperBorderSide;
|
|
127730
127936
|
sideValue = Math.max(Math.min(popper2[len] - arrowElementSize, sideValue), 0);
|
|
127731
127937
|
data.arrowElement = arrowElement;
|
|
127732
|
-
data.offsets.arrow = (_data$offsets$arrow = {},
|
|
127938
|
+
data.offsets.arrow = (_data$offsets$arrow = {}, defineProperty4(_data$offsets$arrow, side, Math.round(sideValue)), defineProperty4(_data$offsets$arrow, altSide, ""), _data$offsets$arrow);
|
|
127733
127939
|
return data;
|
|
127734
127940
|
}
|
|
127735
127941
|
__name(arrow, "arrow");
|
|
@@ -127960,7 +128166,7 @@ function preventOverflow(data, options) {
|
|
|
127960
128166
|
if (popper2[placement] < boundaries[placement] && !options.escapeWithReference) {
|
|
127961
128167
|
value = Math.max(popper2[placement], boundaries[placement]);
|
|
127962
128168
|
}
|
|
127963
|
-
return
|
|
128169
|
+
return defineProperty4({}, placement, value);
|
|
127964
128170
|
}, "primary"),
|
|
127965
128171
|
secondary: /* @__PURE__ */ __name(function secondary(placement) {
|
|
127966
128172
|
var mainSide = placement === "right" ? "left" : "top";
|
|
@@ -127968,7 +128174,7 @@ function preventOverflow(data, options) {
|
|
|
127968
128174
|
if (popper2[placement] > boundaries[placement] && !options.escapeWithReference) {
|
|
127969
128175
|
value = Math.min(popper2[mainSide], boundaries[placement] - (placement === "right" ? popper2.width : popper2.height));
|
|
127970
128176
|
}
|
|
127971
|
-
return
|
|
128177
|
+
return defineProperty4({}, mainSide, value);
|
|
127972
128178
|
}, "secondary")
|
|
127973
128179
|
};
|
|
127974
128180
|
order2.forEach(function(placement) {
|
|
@@ -127989,8 +128195,8 @@ function shift3(data) {
|
|
|
127989
128195
|
var side = isVertical ? "left" : "top";
|
|
127990
128196
|
var measurement = isVertical ? "width" : "height";
|
|
127991
128197
|
var shiftOffsets = {
|
|
127992
|
-
start:
|
|
127993
|
-
end:
|
|
128198
|
+
start: defineProperty4({}, side, reference2[side]),
|
|
128199
|
+
end: defineProperty4({}, side, reference2[side] + reference2[measurement] - popper2[measurement])
|
|
127994
128200
|
};
|
|
127995
128201
|
data.offsets.popper = _extends$1({}, popper2, shiftOffsets[shiftvariation]);
|
|
127996
128202
|
}
|
|
@@ -130088,7 +130294,7 @@ function VectorInteractionHOC(Component) {
|
|
|
130088
130294
|
...getEditDeleteHandlers("Feature", annotation),
|
|
130089
130295
|
...this.getSelectionMenuOptions(annotation),
|
|
130090
130296
|
...readOnly2 ? [] : [
|
|
130091
|
-
...parts2
|
|
130297
|
+
...parts2 ? [
|
|
130092
130298
|
"--",
|
|
130093
130299
|
{
|
|
130094
130300
|
text: "Make a Part from Feature",
|
|
@@ -130117,7 +130323,7 @@ function VectorInteractionHOC(Component) {
|
|
|
130117
130323
|
});
|
|
130118
130324
|
})
|
|
130119
130325
|
}
|
|
130120
|
-
],
|
|
130326
|
+
] : [],
|
|
130121
130327
|
{
|
|
130122
130328
|
text: "Merge With Another Feature",
|
|
130123
130329
|
onClick: () => {
|
|
@@ -132299,6 +132505,11 @@ const __LinearView = class __LinearView extends React$2.Component {
|
|
|
132299
132505
|
updateLabelsForInViewFeatures();
|
|
132300
132506
|
}
|
|
132301
132507
|
};
|
|
132508
|
+
const tickSpacingToUse = tickSpacing || (isLinViewZoomed ? massageTickSpacing(Math.ceil(120 / this.charWidth)) : massageTickSpacing(
|
|
132509
|
+
Math.floor(
|
|
132510
|
+
this.getMaxLength() / (sequenceData2.isProtein ? 9 : 10) * Math.max(1, Math.log10(1 / this.charWidth))
|
|
132511
|
+
)
|
|
132512
|
+
));
|
|
132302
132513
|
return /* @__PURE__ */ React$2.createElement(
|
|
132303
132514
|
ReactDraggable,
|
|
132304
132515
|
{
|
|
@@ -132400,9 +132611,7 @@ const __LinearView = class __LinearView extends React$2.Component {
|
|
|
132400
132611
|
bpsPerRow,
|
|
132401
132612
|
fullSequence: sequenceData2.sequence,
|
|
132402
132613
|
emptyText: getEmptyText({ sequenceData: sequenceData2, caretPosition: caretPosition2 }),
|
|
132403
|
-
tickSpacing:
|
|
132404
|
-
this.getMaxLength() / (sequenceData2.isProtein ? 9 : 10)
|
|
132405
|
-
)),
|
|
132614
|
+
tickSpacing: tickSpacingToUse,
|
|
132406
132615
|
annotationVisibility: __spreadValues(__spreadValues(__spreadValues({}, rest.annotationVisibility), (!isLinViewZoomed || this.charWidth < 5) && {
|
|
132407
132616
|
translations: false,
|
|
132408
132617
|
primaryProteinSequence: false,
|
|
@@ -132687,7 +132896,6 @@ const _Minimap = class _Minimap extends React$2.Component {
|
|
|
132687
132896
|
display: "flex",
|
|
132688
132897
|
flexDirection: "column",
|
|
132689
132898
|
overflowX: "visible"
|
|
132690
|
-
// overflowY: "hidden"
|
|
132691
132899
|
},
|
|
132692
132900
|
onClick: this.handleMinimapClick
|
|
132693
132901
|
},
|
|
@@ -132701,9 +132909,7 @@ const _Minimap = class _Minimap extends React$2.Component {
|
|
|
132701
132909
|
}
|
|
132702
132910
|
},
|
|
132703
132911
|
style: {
|
|
132704
|
-
// maxHeight: 350,
|
|
132705
132912
|
overflowY: minimapTracksPartialHeight > 190 ? "auto" : "hidden",
|
|
132706
|
-
// overflowY: "auto",
|
|
132707
132913
|
overflowX: "hidden",
|
|
132708
132914
|
position: "relative"
|
|
132709
132915
|
},
|
|
@@ -132734,7 +132940,6 @@ const _Minimap = class _Minimap extends React$2.Component {
|
|
|
132734
132940
|
{
|
|
132735
132941
|
style: {
|
|
132736
132942
|
marginTop: -3
|
|
132737
|
-
// paddingLeft: nameDivWidth
|
|
132738
132943
|
},
|
|
132739
132944
|
ref
|
|
132740
132945
|
},
|
|
@@ -132750,15 +132955,15 @@ const _Minimap = class _Minimap extends React$2.Component {
|
|
|
132750
132955
|
/* @__PURE__ */ React$2.createElement(
|
|
132751
132956
|
Axis$2,
|
|
132752
132957
|
__spreadValues({}, {
|
|
132753
|
-
row: { start: 0, end: seqLength },
|
|
132958
|
+
row: { start: 0, end: seqLength - 1 },
|
|
132754
132959
|
tickSpacing: massageTickSpacing(Math.floor(seqLength / 10)),
|
|
132755
132960
|
bpsPerRow: seqLength,
|
|
132756
132961
|
charWidth: charWidth2,
|
|
132757
132962
|
annotationHeight: 15,
|
|
132758
132963
|
sequenceLength: seqLength,
|
|
132759
132964
|
style: {
|
|
132760
|
-
|
|
132761
|
-
|
|
132965
|
+
height: 17,
|
|
132966
|
+
width: "100%"
|
|
132762
132967
|
}
|
|
132763
132968
|
})
|
|
132764
132969
|
)
|