dara-core 1.16.19__py3-none-any.whl → 1.16.20a1__py3-none-any.whl
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.
- dara/core/defaults.py +3 -0
- dara/core/interactivity/actions.py +3 -8
- dara/core/interactivity/loop_variable.py +88 -0
- dara/core/interactivity/non_data_variable.py +35 -0
- dara/core/internal/normalization.py +1 -1
- dara/core/umd/dara.core.umd.js +1275 -782
- dara/core/visual/components/__init__.py +3 -0
- dara/core/visual/components/for_cmp.py +149 -0
- {dara_core-1.16.19.dist-info → dara_core-1.16.20a1.dist-info}/METADATA +10 -10
- {dara_core-1.16.19.dist-info → dara_core-1.16.20a1.dist-info}/RECORD +13 -11
- {dara_core-1.16.19.dist-info → dara_core-1.16.20a1.dist-info}/LICENSE +0 -0
- {dara_core-1.16.19.dist-info → dara_core-1.16.20a1.dist-info}/WHEEL +0 -0
- {dara_core-1.16.19.dist-info → dara_core-1.16.20a1.dist-info}/entry_points.txt +0 -0
dara/core/umd/dara.core.umd.js
CHANGED
|
@@ -7528,6 +7528,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
7528
7528
|
retentionZone: retentionZone$1
|
|
7529
7529
|
};
|
|
7530
7530
|
var Recoil_index_1 = Recoil_index.DefaultValue;
|
|
7531
|
+
var Recoil_index_2 = Recoil_index.isRecoilValue;
|
|
7531
7532
|
var Recoil_index_5 = Recoil_index.RecoilRoot;
|
|
7532
7533
|
var Recoil_index_8 = Recoil_index.atom;
|
|
7533
7534
|
var Recoil_index_10 = Recoil_index.atomFamily;
|
|
@@ -11100,7 +11101,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
11100
11101
|
failure: failure$1$1,
|
|
11101
11102
|
success: success$1$1
|
|
11102
11103
|
} = Refine_Checkers$1$1;
|
|
11103
|
-
function isPlainObject$
|
|
11104
|
+
function isPlainObject$2(value) {
|
|
11104
11105
|
if (Object.prototype.toString.call(value) !== "[object Object]") {
|
|
11105
11106
|
return false;
|
|
11106
11107
|
}
|
|
@@ -11151,7 +11152,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
11151
11152
|
}
|
|
11152
11153
|
function dict$2(valueChecker) {
|
|
11153
11154
|
return (value, path = new Path$1$1()) => {
|
|
11154
|
-
if (typeof value !== "object" || value === null || !isPlainObject$
|
|
11155
|
+
if (typeof value !== "object" || value === null || !isPlainObject$2(value)) {
|
|
11155
11156
|
return failure$1$1("value is not an object", path);
|
|
11156
11157
|
}
|
|
11157
11158
|
const out = {};
|
|
@@ -11191,7 +11192,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
11191
11192
|
function object$2(checkers) {
|
|
11192
11193
|
const checkerProperties = Object.keys(checkers);
|
|
11193
11194
|
return (value, path = new Path$1$1()) => {
|
|
11194
|
-
if (typeof value !== "object" || value === null || !isPlainObject$
|
|
11195
|
+
if (typeof value !== "object" || value === null || !isPlainObject$2(value)) {
|
|
11195
11196
|
return failure$1$1("value is not an object", path);
|
|
11196
11197
|
}
|
|
11197
11198
|
const out = {};
|
|
@@ -11589,7 +11590,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
11589
11590
|
map: map$1$1,
|
|
11590
11591
|
object: object$1$1,
|
|
11591
11592
|
optional: optional$1$1,
|
|
11592
|
-
set: set$1$
|
|
11593
|
+
set: set$1$2,
|
|
11593
11594
|
tuple: tuple$1$1,
|
|
11594
11595
|
writableArray: writableArray$1$1,
|
|
11595
11596
|
writableDict: writableDict$1$1,
|
|
@@ -11652,7 +11653,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
11652
11653
|
dict: dict$1$1,
|
|
11653
11654
|
object: object$1$1,
|
|
11654
11655
|
optional: optional$1$1,
|
|
11655
|
-
set: set$1$
|
|
11656
|
+
set: set$1$2,
|
|
11656
11657
|
map: map$1$1,
|
|
11657
11658
|
writableArray: writableArray$1$1,
|
|
11658
11659
|
writableDict: writableDict$1$1,
|
|
@@ -16148,12 +16149,12 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
16148
16149
|
var Symbol$6 = root$d.Symbol;
|
|
16149
16150
|
var _Symbol = Symbol$6;
|
|
16150
16151
|
var Symbol$5 = _Symbol;
|
|
16151
|
-
var objectProto$
|
|
16152
|
-
var hasOwnProperty$
|
|
16153
|
-
var nativeObjectToString$1 = objectProto$
|
|
16152
|
+
var objectProto$h = Object.prototype;
|
|
16153
|
+
var hasOwnProperty$f = objectProto$h.hasOwnProperty;
|
|
16154
|
+
var nativeObjectToString$1 = objectProto$h.toString;
|
|
16154
16155
|
var symToStringTag$1 = Symbol$5 ? Symbol$5.toStringTag : void 0;
|
|
16155
16156
|
function getRawTag$1(value) {
|
|
16156
|
-
var isOwn = hasOwnProperty$
|
|
16157
|
+
var isOwn = hasOwnProperty$f.call(value, symToStringTag$1), tag = value[symToStringTag$1];
|
|
16157
16158
|
try {
|
|
16158
16159
|
value[symToStringTag$1] = void 0;
|
|
16159
16160
|
var unmasked = true;
|
|
@@ -16170,8 +16171,8 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
16170
16171
|
return result;
|
|
16171
16172
|
}
|
|
16172
16173
|
var _getRawTag = getRawTag$1;
|
|
16173
|
-
var objectProto$
|
|
16174
|
-
var nativeObjectToString = objectProto$
|
|
16174
|
+
var objectProto$g = Object.prototype;
|
|
16175
|
+
var nativeObjectToString = objectProto$g.toString;
|
|
16175
16176
|
function objectToString$1(value) {
|
|
16176
16177
|
return nativeObjectToString.call(value);
|
|
16177
16178
|
}
|
|
@@ -16179,25 +16180,25 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
16179
16180
|
var Symbol$4 = _Symbol, getRawTag = _getRawTag, objectToString = _objectToString;
|
|
16180
16181
|
var nullTag = "[object Null]", undefinedTag = "[object Undefined]";
|
|
16181
16182
|
var symToStringTag = Symbol$4 ? Symbol$4.toStringTag : void 0;
|
|
16182
|
-
function baseGetTag$
|
|
16183
|
+
function baseGetTag$6(value) {
|
|
16183
16184
|
if (value == null) {
|
|
16184
16185
|
return value === void 0 ? undefinedTag : nullTag;
|
|
16185
16186
|
}
|
|
16186
16187
|
return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
|
|
16187
16188
|
}
|
|
16188
|
-
var _baseGetTag = baseGetTag$
|
|
16189
|
+
var _baseGetTag = baseGetTag$6;
|
|
16189
16190
|
function isObject$b(value) {
|
|
16190
16191
|
var type = typeof value;
|
|
16191
16192
|
return value != null && (type == "object" || type == "function");
|
|
16192
16193
|
}
|
|
16193
16194
|
var isObject_1 = isObject$b;
|
|
16194
|
-
var baseGetTag$
|
|
16195
|
+
var baseGetTag$5 = _baseGetTag, isObject$a = isObject_1;
|
|
16195
16196
|
var asyncTag = "[object AsyncFunction]", funcTag$2 = "[object Function]", genTag$1 = "[object GeneratorFunction]", proxyTag = "[object Proxy]";
|
|
16196
16197
|
function isFunction$3(value) {
|
|
16197
16198
|
if (!isObject$a(value)) {
|
|
16198
16199
|
return false;
|
|
16199
16200
|
}
|
|
16200
|
-
var tag = baseGetTag$
|
|
16201
|
+
var tag = baseGetTag$5(value);
|
|
16201
16202
|
return tag == funcTag$2 || tag == genTag$1 || tag == asyncTag || tag == proxyTag;
|
|
16202
16203
|
}
|
|
16203
16204
|
var isFunction_1 = isFunction$3;
|
|
@@ -16213,12 +16214,12 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
16213
16214
|
return !!maskSrcKey && maskSrcKey in func;
|
|
16214
16215
|
}
|
|
16215
16216
|
var _isMasked = isMasked$1;
|
|
16216
|
-
var funcProto$
|
|
16217
|
-
var funcToString$
|
|
16217
|
+
var funcProto$2 = Function.prototype;
|
|
16218
|
+
var funcToString$2 = funcProto$2.toString;
|
|
16218
16219
|
function toSource$2(func) {
|
|
16219
16220
|
if (func != null) {
|
|
16220
16221
|
try {
|
|
16221
|
-
return funcToString$
|
|
16222
|
+
return funcToString$2.call(func);
|
|
16222
16223
|
} catch (e2) {
|
|
16223
16224
|
}
|
|
16224
16225
|
try {
|
|
@@ -16232,11 +16233,11 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
16232
16233
|
var isFunction$2 = isFunction_1, isMasked = _isMasked, isObject$9 = isObject_1, toSource$1 = _toSource;
|
|
16233
16234
|
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
|
16234
16235
|
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
16235
|
-
var funcProto = Function.prototype, objectProto$
|
|
16236
|
-
var funcToString = funcProto.toString;
|
|
16237
|
-
var hasOwnProperty$
|
|
16236
|
+
var funcProto$1 = Function.prototype, objectProto$f = Object.prototype;
|
|
16237
|
+
var funcToString$1 = funcProto$1.toString;
|
|
16238
|
+
var hasOwnProperty$e = objectProto$f.hasOwnProperty;
|
|
16238
16239
|
var reIsNative = RegExp(
|
|
16239
|
-
"^" + funcToString.call(hasOwnProperty$
|
|
16240
|
+
"^" + funcToString$1.call(hasOwnProperty$e).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
16240
16241
|
);
|
|
16241
16242
|
function baseIsNative$1(value) {
|
|
16242
16243
|
if (!isObject$9(value) || isMasked(value)) {
|
|
@@ -16276,23 +16277,23 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
16276
16277
|
var _hashDelete = hashDelete$1;
|
|
16277
16278
|
var nativeCreate$2 = _nativeCreate;
|
|
16278
16279
|
var HASH_UNDEFINED$2 = "__lodash_hash_undefined__";
|
|
16279
|
-
var objectProto$
|
|
16280
|
-
var hasOwnProperty$
|
|
16280
|
+
var objectProto$e = Object.prototype;
|
|
16281
|
+
var hasOwnProperty$d = objectProto$e.hasOwnProperty;
|
|
16281
16282
|
function hashGet$1(key) {
|
|
16282
16283
|
var data = this.__data__;
|
|
16283
16284
|
if (nativeCreate$2) {
|
|
16284
16285
|
var result = data[key];
|
|
16285
16286
|
return result === HASH_UNDEFINED$2 ? void 0 : result;
|
|
16286
16287
|
}
|
|
16287
|
-
return hasOwnProperty$
|
|
16288
|
+
return hasOwnProperty$d.call(data, key) ? data[key] : void 0;
|
|
16288
16289
|
}
|
|
16289
16290
|
var _hashGet = hashGet$1;
|
|
16290
16291
|
var nativeCreate$1 = _nativeCreate;
|
|
16291
|
-
var objectProto$
|
|
16292
|
-
var hasOwnProperty$
|
|
16292
|
+
var objectProto$d = Object.prototype;
|
|
16293
|
+
var hasOwnProperty$c = objectProto$d.hasOwnProperty;
|
|
16293
16294
|
function hashHas$1(key) {
|
|
16294
16295
|
var data = this.__data__;
|
|
16295
|
-
return nativeCreate$1 ? data[key] !== void 0 : hasOwnProperty$
|
|
16296
|
+
return nativeCreate$1 ? data[key] !== void 0 : hasOwnProperty$c.call(data, key);
|
|
16296
16297
|
}
|
|
16297
16298
|
var _hashHas = hashHas$1;
|
|
16298
16299
|
var nativeCreate = _nativeCreate;
|
|
@@ -16593,8 +16594,8 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
16593
16594
|
}
|
|
16594
16595
|
var stubArray_1 = stubArray$2;
|
|
16595
16596
|
var arrayFilter = _arrayFilter, stubArray$1 = stubArray_1;
|
|
16596
|
-
var objectProto$
|
|
16597
|
-
var propertyIsEnumerable$1 = objectProto$
|
|
16597
|
+
var objectProto$c = Object.prototype;
|
|
16598
|
+
var propertyIsEnumerable$1 = objectProto$c.propertyIsEnumerable;
|
|
16598
16599
|
var nativeGetSymbols$1 = Object.getOwnPropertySymbols;
|
|
16599
16600
|
var getSymbols$3 = !nativeGetSymbols$1 ? stubArray$1 : function(object2) {
|
|
16600
16601
|
if (object2 == null) {
|
|
@@ -16614,24 +16615,24 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
16614
16615
|
return result;
|
|
16615
16616
|
}
|
|
16616
16617
|
var _baseTimes = baseTimes$1;
|
|
16617
|
-
function isObjectLike$
|
|
16618
|
+
function isObjectLike$9(value) {
|
|
16618
16619
|
return value != null && typeof value == "object";
|
|
16619
16620
|
}
|
|
16620
|
-
var isObjectLike_1 = isObjectLike$
|
|
16621
|
-
var baseGetTag$
|
|
16621
|
+
var isObjectLike_1 = isObjectLike$9;
|
|
16622
|
+
var baseGetTag$4 = _baseGetTag, isObjectLike$8 = isObjectLike_1;
|
|
16622
16623
|
var argsTag$3 = "[object Arguments]";
|
|
16623
16624
|
function baseIsArguments$1(value) {
|
|
16624
|
-
return isObjectLike$
|
|
16625
|
+
return isObjectLike$8(value) && baseGetTag$4(value) == argsTag$3;
|
|
16625
16626
|
}
|
|
16626
16627
|
var _baseIsArguments = baseIsArguments$1;
|
|
16627
|
-
var baseIsArguments = _baseIsArguments, isObjectLike$
|
|
16628
|
-
var objectProto$
|
|
16629
|
-
var hasOwnProperty$
|
|
16630
|
-
var propertyIsEnumerable = objectProto$
|
|
16628
|
+
var baseIsArguments = _baseIsArguments, isObjectLike$7 = isObjectLike_1;
|
|
16629
|
+
var objectProto$b = Object.prototype;
|
|
16630
|
+
var hasOwnProperty$b = objectProto$b.hasOwnProperty;
|
|
16631
|
+
var propertyIsEnumerable = objectProto$b.propertyIsEnumerable;
|
|
16631
16632
|
var isArguments$2 = baseIsArguments(function() {
|
|
16632
16633
|
return arguments;
|
|
16633
16634
|
}()) ? baseIsArguments : function(value) {
|
|
16634
|
-
return isObjectLike$
|
|
16635
|
+
return isObjectLike$7(value) && hasOwnProperty$b.call(value, "callee") && !propertyIsEnumerable.call(value, "callee");
|
|
16635
16636
|
};
|
|
16636
16637
|
var isArguments_1 = isArguments$2;
|
|
16637
16638
|
var isBuffer$3 = { exports: {} };
|
|
@@ -16662,14 +16663,14 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
16662
16663
|
return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
|
16663
16664
|
}
|
|
16664
16665
|
var isLength_1 = isLength$3;
|
|
16665
|
-
var baseGetTag$
|
|
16666
|
-
var argsTag$2 = "[object Arguments]", arrayTag$2 = "[object Array]", boolTag$2 = "[object Boolean]", dateTag$2 = "[object Date]", errorTag$1 = "[object Error]", funcTag$1 = "[object Function]", mapTag$4 = "[object Map]", numberTag$2 = "[object Number]", objectTag$
|
|
16666
|
+
var baseGetTag$3 = _baseGetTag, isLength$2 = isLength_1, isObjectLike$6 = isObjectLike_1;
|
|
16667
|
+
var argsTag$2 = "[object Arguments]", arrayTag$2 = "[object Array]", boolTag$2 = "[object Boolean]", dateTag$2 = "[object Date]", errorTag$1 = "[object Error]", funcTag$1 = "[object Function]", mapTag$4 = "[object Map]", numberTag$2 = "[object Number]", objectTag$4 = "[object Object]", regexpTag$2 = "[object RegExp]", setTag$4 = "[object Set]", stringTag$2 = "[object String]", weakMapTag$2 = "[object WeakMap]";
|
|
16667
16668
|
var arrayBufferTag$2 = "[object ArrayBuffer]", dataViewTag$3 = "[object DataView]", float32Tag$2 = "[object Float32Array]", float64Tag$2 = "[object Float64Array]", int8Tag$2 = "[object Int8Array]", int16Tag$2 = "[object Int16Array]", int32Tag$2 = "[object Int32Array]", uint8Tag$2 = "[object Uint8Array]", uint8ClampedTag$2 = "[object Uint8ClampedArray]", uint16Tag$2 = "[object Uint16Array]", uint32Tag$2 = "[object Uint32Array]";
|
|
16668
16669
|
var typedArrayTags = {};
|
|
16669
16670
|
typedArrayTags[float32Tag$2] = typedArrayTags[float64Tag$2] = typedArrayTags[int8Tag$2] = typedArrayTags[int16Tag$2] = typedArrayTags[int32Tag$2] = typedArrayTags[uint8Tag$2] = typedArrayTags[uint8ClampedTag$2] = typedArrayTags[uint16Tag$2] = typedArrayTags[uint32Tag$2] = true;
|
|
16670
|
-
typedArrayTags[argsTag$2] = typedArrayTags[arrayTag$2] = typedArrayTags[arrayBufferTag$2] = typedArrayTags[boolTag$2] = typedArrayTags[dataViewTag$3] = typedArrayTags[dateTag$2] = typedArrayTags[errorTag$1] = typedArrayTags[funcTag$1] = typedArrayTags[mapTag$4] = typedArrayTags[numberTag$2] = typedArrayTags[objectTag$
|
|
16671
|
+
typedArrayTags[argsTag$2] = typedArrayTags[arrayTag$2] = typedArrayTags[arrayBufferTag$2] = typedArrayTags[boolTag$2] = typedArrayTags[dataViewTag$3] = typedArrayTags[dateTag$2] = typedArrayTags[errorTag$1] = typedArrayTags[funcTag$1] = typedArrayTags[mapTag$4] = typedArrayTags[numberTag$2] = typedArrayTags[objectTag$4] = typedArrayTags[regexpTag$2] = typedArrayTags[setTag$4] = typedArrayTags[stringTag$2] = typedArrayTags[weakMapTag$2] = false;
|
|
16671
16672
|
function baseIsTypedArray$1(value) {
|
|
16672
|
-
return isObjectLike$
|
|
16673
|
+
return isObjectLike$6(value) && isLength$2(value.length) && !!typedArrayTags[baseGetTag$3(value)];
|
|
16673
16674
|
}
|
|
16674
16675
|
var _baseIsTypedArray = baseIsTypedArray$1;
|
|
16675
16676
|
function baseUnary$3(func) {
|
|
@@ -16702,21 +16703,21 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
16702
16703
|
var isTypedArray$2 = nodeIsTypedArray ? baseUnary$2(nodeIsTypedArray) : baseIsTypedArray;
|
|
16703
16704
|
var isTypedArray_1 = isTypedArray$2;
|
|
16704
16705
|
var baseTimes = _baseTimes, isArguments$1 = isArguments_1, isArray$8 = isArray_1, isBuffer$2 = isBuffer$3.exports, isIndex$3 = _isIndex, isTypedArray$1 = isTypedArray_1;
|
|
16705
|
-
var objectProto$
|
|
16706
|
-
var hasOwnProperty$
|
|
16706
|
+
var objectProto$a = Object.prototype;
|
|
16707
|
+
var hasOwnProperty$a = objectProto$a.hasOwnProperty;
|
|
16707
16708
|
function arrayLikeKeys$2(value, inherited) {
|
|
16708
16709
|
var isArr = isArray$8(value), isArg = !isArr && isArguments$1(value), isBuff = !isArr && !isArg && isBuffer$2(value), isType = !isArr && !isArg && !isBuff && isTypedArray$1(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length;
|
|
16709
16710
|
for (var key in value) {
|
|
16710
|
-
if ((inherited || hasOwnProperty$
|
|
16711
|
+
if ((inherited || hasOwnProperty$a.call(value, key)) && !(skipIndexes && (key == "length" || isBuff && (key == "offset" || key == "parent") || isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || isIndex$3(key, length)))) {
|
|
16711
16712
|
result.push(key);
|
|
16712
16713
|
}
|
|
16713
16714
|
}
|
|
16714
16715
|
return result;
|
|
16715
16716
|
}
|
|
16716
16717
|
var _arrayLikeKeys = arrayLikeKeys$2;
|
|
16717
|
-
var objectProto$
|
|
16718
|
+
var objectProto$9 = Object.prototype;
|
|
16718
16719
|
function isPrototype$3(value) {
|
|
16719
|
-
var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto$
|
|
16720
|
+
var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto$9;
|
|
16720
16721
|
return value === proto;
|
|
16721
16722
|
}
|
|
16722
16723
|
var _isPrototype = isPrototype$3;
|
|
@@ -16730,15 +16731,15 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
16730
16731
|
var nativeKeys$1 = overArg$1(Object.keys, Object);
|
|
16731
16732
|
var _nativeKeys = nativeKeys$1;
|
|
16732
16733
|
var isPrototype$2 = _isPrototype, nativeKeys = _nativeKeys;
|
|
16733
|
-
var objectProto$
|
|
16734
|
-
var hasOwnProperty$
|
|
16734
|
+
var objectProto$8 = Object.prototype;
|
|
16735
|
+
var hasOwnProperty$9 = objectProto$8.hasOwnProperty;
|
|
16735
16736
|
function baseKeys$1(object2) {
|
|
16736
16737
|
if (!isPrototype$2(object2)) {
|
|
16737
16738
|
return nativeKeys(object2);
|
|
16738
16739
|
}
|
|
16739
16740
|
var result = [];
|
|
16740
16741
|
for (var key in Object(object2)) {
|
|
16741
|
-
if (hasOwnProperty$
|
|
16742
|
+
if (hasOwnProperty$9.call(object2, key) && key != "constructor") {
|
|
16742
16743
|
result.push(key);
|
|
16743
16744
|
}
|
|
16744
16745
|
}
|
|
@@ -16762,8 +16763,8 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
16762
16763
|
var _getAllKeys = getAllKeys$2;
|
|
16763
16764
|
var getAllKeys$1 = _getAllKeys;
|
|
16764
16765
|
var COMPARE_PARTIAL_FLAG$3 = 1;
|
|
16765
|
-
var objectProto$
|
|
16766
|
-
var hasOwnProperty$
|
|
16766
|
+
var objectProto$7 = Object.prototype;
|
|
16767
|
+
var hasOwnProperty$8 = objectProto$7.hasOwnProperty;
|
|
16767
16768
|
function equalObjects$1(object2, other, bitmask, customizer, equalFunc, stack) {
|
|
16768
16769
|
var isPartial = bitmask & COMPARE_PARTIAL_FLAG$3, objProps = getAllKeys$1(object2), objLength = objProps.length, othProps = getAllKeys$1(other), othLength = othProps.length;
|
|
16769
16770
|
if (objLength != othLength && !isPartial) {
|
|
@@ -16772,7 +16773,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
16772
16773
|
var index2 = objLength;
|
|
16773
16774
|
while (index2--) {
|
|
16774
16775
|
var key = objProps[index2];
|
|
16775
|
-
if (!(isPartial ? key in other : hasOwnProperty$
|
|
16776
|
+
if (!(isPartial ? key in other : hasOwnProperty$8.call(other, key))) {
|
|
16776
16777
|
return false;
|
|
16777
16778
|
}
|
|
16778
16779
|
}
|
|
@@ -16820,14 +16821,14 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
16820
16821
|
var getNative$1 = _getNative, root$6 = _root;
|
|
16821
16822
|
var WeakMap$3 = getNative$1(root$6, "WeakMap");
|
|
16822
16823
|
var _WeakMap = WeakMap$3;
|
|
16823
|
-
var DataView$1 = _DataView, Map$1 = _Map, Promise$1 = _Promise, Set$1 = _Set, WeakMap$2 = _WeakMap, baseGetTag$
|
|
16824
|
-
var mapTag$3 = "[object Map]", objectTag$
|
|
16824
|
+
var DataView$1 = _DataView, Map$1 = _Map, Promise$1 = _Promise, Set$1 = _Set, WeakMap$2 = _WeakMap, baseGetTag$2 = _baseGetTag, toSource = _toSource;
|
|
16825
|
+
var mapTag$3 = "[object Map]", objectTag$3 = "[object Object]", promiseTag = "[object Promise]", setTag$3 = "[object Set]", weakMapTag$1 = "[object WeakMap]";
|
|
16825
16826
|
var dataViewTag$2 = "[object DataView]";
|
|
16826
16827
|
var dataViewCtorString = toSource(DataView$1), mapCtorString = toSource(Map$1), promiseCtorString = toSource(Promise$1), setCtorString = toSource(Set$1), weakMapCtorString = toSource(WeakMap$2);
|
|
16827
|
-
var getTag$4 = baseGetTag$
|
|
16828
|
+
var getTag$4 = baseGetTag$2;
|
|
16828
16829
|
if (DataView$1 && getTag$4(new DataView$1(new ArrayBuffer(1))) != dataViewTag$2 || Map$1 && getTag$4(new Map$1()) != mapTag$3 || Promise$1 && getTag$4(Promise$1.resolve()) != promiseTag || Set$1 && getTag$4(new Set$1()) != setTag$3 || WeakMap$2 && getTag$4(new WeakMap$2()) != weakMapTag$1) {
|
|
16829
16830
|
getTag$4 = function(value) {
|
|
16830
|
-
var result = baseGetTag$
|
|
16831
|
+
var result = baseGetTag$2(value), Ctor = result == objectTag$3 ? value.constructor : void 0, ctorString = Ctor ? toSource(Ctor) : "";
|
|
16831
16832
|
if (ctorString) {
|
|
16832
16833
|
switch (ctorString) {
|
|
16833
16834
|
case dataViewCtorString:
|
|
@@ -16848,14 +16849,14 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
16848
16849
|
var _getTag = getTag$4;
|
|
16849
16850
|
var Stack$2 = _Stack, equalArrays = _equalArrays, equalByTag = _equalByTag, equalObjects = _equalObjects, getTag$3 = _getTag, isArray$7 = isArray_1, isBuffer$1 = isBuffer$3.exports, isTypedArray = isTypedArray_1;
|
|
16850
16851
|
var COMPARE_PARTIAL_FLAG$2 = 1;
|
|
16851
|
-
var argsTag$1 = "[object Arguments]", arrayTag$1 = "[object Array]", objectTag$
|
|
16852
|
-
var objectProto$
|
|
16853
|
-
var hasOwnProperty$
|
|
16852
|
+
var argsTag$1 = "[object Arguments]", arrayTag$1 = "[object Array]", objectTag$2 = "[object Object]";
|
|
16853
|
+
var objectProto$6 = Object.prototype;
|
|
16854
|
+
var hasOwnProperty$7 = objectProto$6.hasOwnProperty;
|
|
16854
16855
|
function baseIsEqualDeep$1(object2, other, bitmask, customizer, equalFunc, stack) {
|
|
16855
16856
|
var objIsArr = isArray$7(object2), othIsArr = isArray$7(other), objTag = objIsArr ? arrayTag$1 : getTag$3(object2), othTag = othIsArr ? arrayTag$1 : getTag$3(other);
|
|
16856
|
-
objTag = objTag == argsTag$1 ? objectTag$
|
|
16857
|
-
othTag = othTag == argsTag$1 ? objectTag$
|
|
16858
|
-
var objIsObj = objTag == objectTag$
|
|
16857
|
+
objTag = objTag == argsTag$1 ? objectTag$2 : objTag;
|
|
16858
|
+
othTag = othTag == argsTag$1 ? objectTag$2 : othTag;
|
|
16859
|
+
var objIsObj = objTag == objectTag$2, othIsObj = othTag == objectTag$2, isSameTag = objTag == othTag;
|
|
16859
16860
|
if (isSameTag && isBuffer$1(object2)) {
|
|
16860
16861
|
if (!isBuffer$1(other)) {
|
|
16861
16862
|
return false;
|
|
@@ -16868,7 +16869,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
16868
16869
|
return objIsArr || isTypedArray(object2) ? equalArrays(object2, other, bitmask, customizer, equalFunc, stack) : equalByTag(object2, other, objTag, bitmask, customizer, equalFunc, stack);
|
|
16869
16870
|
}
|
|
16870
16871
|
if (!(bitmask & COMPARE_PARTIAL_FLAG$2)) {
|
|
16871
|
-
var objIsWrapped = objIsObj && hasOwnProperty$
|
|
16872
|
+
var objIsWrapped = objIsObj && hasOwnProperty$7.call(object2, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty$7.call(other, "__wrapped__");
|
|
16872
16873
|
if (objIsWrapped || othIsWrapped) {
|
|
16873
16874
|
var objUnwrapped = objIsWrapped ? object2.value() : object2, othUnwrapped = othIsWrapped ? other.value() : other;
|
|
16874
16875
|
stack || (stack = new Stack$2());
|
|
@@ -16882,12 +16883,12 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
16882
16883
|
return equalObjects(object2, other, bitmask, customizer, equalFunc, stack);
|
|
16883
16884
|
}
|
|
16884
16885
|
var _baseIsEqualDeep = baseIsEqualDeep$1;
|
|
16885
|
-
var baseIsEqualDeep = _baseIsEqualDeep, isObjectLike$
|
|
16886
|
+
var baseIsEqualDeep = _baseIsEqualDeep, isObjectLike$5 = isObjectLike_1;
|
|
16886
16887
|
function baseIsEqual$3(value, other, bitmask, customizer, stack) {
|
|
16887
16888
|
if (value === other) {
|
|
16888
16889
|
return true;
|
|
16889
16890
|
}
|
|
16890
|
-
if (value == null || other == null || !isObjectLike$
|
|
16891
|
+
if (value == null || other == null || !isObjectLike$5(value) && !isObjectLike$5(other)) {
|
|
16891
16892
|
return value !== value && other !== other;
|
|
16892
16893
|
}
|
|
16893
16894
|
return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual$3, stack);
|
|
@@ -16924,10 +16925,10 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
16924
16925
|
return string2 ? string2.slice(0, trimmedEndIndex(string2) + 1).replace(reTrimStart, "") : string2;
|
|
16925
16926
|
}
|
|
16926
16927
|
var _baseTrim = baseTrim$1;
|
|
16927
|
-
var baseGetTag = _baseGetTag, isObjectLike$
|
|
16928
|
+
var baseGetTag$1 = _baseGetTag, isObjectLike$4 = isObjectLike_1;
|
|
16928
16929
|
var symbolTag$2 = "[object Symbol]";
|
|
16929
16930
|
function isSymbol$4(value) {
|
|
16930
|
-
return typeof value == "symbol" || isObjectLike$
|
|
16931
|
+
return typeof value == "symbol" || isObjectLike$4(value) && baseGetTag$1(value) == symbolTag$2;
|
|
16931
16932
|
}
|
|
16932
16933
|
var isSymbol_1 = isSymbol$4;
|
|
16933
16934
|
var baseTrim = _baseTrim, isObject$8 = isObject_1, isSymbol$3 = isSymbol_1;
|
|
@@ -17777,7 +17778,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
17777
17778
|
return uid2 ? "Symbol(src)_1." + uid2 : "";
|
|
17778
17779
|
}();
|
|
17779
17780
|
var nativeObjectToString2 = objectProto2.toString;
|
|
17780
|
-
var
|
|
17781
|
+
var objectCtorString2 = funcToString2.call(Object2);
|
|
17781
17782
|
var oldDash = root2._;
|
|
17782
17783
|
var reIsNative2 = RegExp2(
|
|
17783
17784
|
"^" + funcToString2.call(hasOwnProperty2).replace(reRegExpChar2, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
@@ -21191,7 +21192,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
21191
21192
|
return true;
|
|
21192
21193
|
}
|
|
21193
21194
|
var Ctor = hasOwnProperty2.call(proto, "constructor") && proto.constructor;
|
|
21194
|
-
return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString2.call(Ctor) ==
|
|
21195
|
+
return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString2.call(Ctor) == objectCtorString2;
|
|
21195
21196
|
}
|
|
21196
21197
|
var isRegExp = nodeIsRegExp ? baseUnary2(nodeIsRegExp) : baseIsRegExp;
|
|
21197
21198
|
function isSafeInteger(value) {
|
|
@@ -49701,7 +49702,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
49701
49702
|
};
|
|
49702
49703
|
function createListComponent(_ref2) {
|
|
49703
49704
|
var _class;
|
|
49704
|
-
var getItemOffset = _ref2.getItemOffset,
|
|
49705
|
+
var getItemOffset = _ref2.getItemOffset, getEstimatedTotalSize2 = _ref2.getEstimatedTotalSize, getItemSize = _ref2.getItemSize, getOffsetForIndexAndAlignment = _ref2.getOffsetForIndexAndAlignment, getStartIndexForOffset = _ref2.getStartIndexForOffset, getStopIndexForStartIndex = _ref2.getStopIndexForStartIndex, initInstanceProps = _ref2.initInstanceProps, shouldResetStyleCacheOnItemSizeChange = _ref2.shouldResetStyleCacheOnItemSizeChange, validateProps = _ref2.validateProps;
|
|
49705
49706
|
return _class = /* @__PURE__ */ function(_PureComponent) {
|
|
49706
49707
|
_inheritsLoose$1(List2, _PureComponent);
|
|
49707
49708
|
function List2(props) {
|
|
@@ -49929,7 +49930,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
49929
49930
|
}));
|
|
49930
49931
|
}
|
|
49931
49932
|
}
|
|
49932
|
-
var estimatedTotalSize =
|
|
49933
|
+
var estimatedTotalSize = getEstimatedTotalSize2(this.props, this._instanceProps);
|
|
49933
49934
|
return React.createElement(outerElementType || outerTagName || "div", {
|
|
49934
49935
|
className,
|
|
49935
49936
|
onScroll,
|
|
@@ -49997,6 +49998,161 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
49997
49998
|
_ref2.width;
|
|
49998
49999
|
_ref3.instance;
|
|
49999
50000
|
};
|
|
50001
|
+
var DEFAULT_ESTIMATED_ITEM_SIZE$1 = 50;
|
|
50002
|
+
var getItemMetadata$1 = function getItemMetadata(props, index2, instanceProps) {
|
|
50003
|
+
var _ref2 = props, itemSize = _ref2.itemSize;
|
|
50004
|
+
var itemMetadataMap = instanceProps.itemMetadataMap, lastMeasuredIndex = instanceProps.lastMeasuredIndex;
|
|
50005
|
+
if (index2 > lastMeasuredIndex) {
|
|
50006
|
+
var offset2 = 0;
|
|
50007
|
+
if (lastMeasuredIndex >= 0) {
|
|
50008
|
+
var itemMetadata = itemMetadataMap[lastMeasuredIndex];
|
|
50009
|
+
offset2 = itemMetadata.offset + itemMetadata.size;
|
|
50010
|
+
}
|
|
50011
|
+
for (var i2 = lastMeasuredIndex + 1; i2 <= index2; i2++) {
|
|
50012
|
+
var size2 = itemSize(i2);
|
|
50013
|
+
itemMetadataMap[i2] = {
|
|
50014
|
+
offset: offset2,
|
|
50015
|
+
size: size2
|
|
50016
|
+
};
|
|
50017
|
+
offset2 += size2;
|
|
50018
|
+
}
|
|
50019
|
+
instanceProps.lastMeasuredIndex = index2;
|
|
50020
|
+
}
|
|
50021
|
+
return itemMetadataMap[index2];
|
|
50022
|
+
};
|
|
50023
|
+
var findNearestItem$1 = function findNearestItem(props, instanceProps, offset2) {
|
|
50024
|
+
var itemMetadataMap = instanceProps.itemMetadataMap, lastMeasuredIndex = instanceProps.lastMeasuredIndex;
|
|
50025
|
+
var lastMeasuredItemOffset = lastMeasuredIndex > 0 ? itemMetadataMap[lastMeasuredIndex].offset : 0;
|
|
50026
|
+
if (lastMeasuredItemOffset >= offset2) {
|
|
50027
|
+
return findNearestItemBinarySearch$1(props, instanceProps, lastMeasuredIndex, 0, offset2);
|
|
50028
|
+
} else {
|
|
50029
|
+
return findNearestItemExponentialSearch$1(props, instanceProps, Math.max(0, lastMeasuredIndex), offset2);
|
|
50030
|
+
}
|
|
50031
|
+
};
|
|
50032
|
+
var findNearestItemBinarySearch$1 = function findNearestItemBinarySearch(props, instanceProps, high, low, offset2) {
|
|
50033
|
+
while (low <= high) {
|
|
50034
|
+
var middle = low + Math.floor((high - low) / 2);
|
|
50035
|
+
var currentOffset = getItemMetadata$1(props, middle, instanceProps).offset;
|
|
50036
|
+
if (currentOffset === offset2) {
|
|
50037
|
+
return middle;
|
|
50038
|
+
} else if (currentOffset < offset2) {
|
|
50039
|
+
low = middle + 1;
|
|
50040
|
+
} else if (currentOffset > offset2) {
|
|
50041
|
+
high = middle - 1;
|
|
50042
|
+
}
|
|
50043
|
+
}
|
|
50044
|
+
if (low > 0) {
|
|
50045
|
+
return low - 1;
|
|
50046
|
+
} else {
|
|
50047
|
+
return 0;
|
|
50048
|
+
}
|
|
50049
|
+
};
|
|
50050
|
+
var findNearestItemExponentialSearch$1 = function findNearestItemExponentialSearch(props, instanceProps, index2, offset2) {
|
|
50051
|
+
var itemCount = props.itemCount;
|
|
50052
|
+
var interval = 1;
|
|
50053
|
+
while (index2 < itemCount && getItemMetadata$1(props, index2, instanceProps).offset < offset2) {
|
|
50054
|
+
index2 += interval;
|
|
50055
|
+
interval *= 2;
|
|
50056
|
+
}
|
|
50057
|
+
return findNearestItemBinarySearch$1(props, instanceProps, Math.min(index2, itemCount - 1), Math.floor(index2 / 2), offset2);
|
|
50058
|
+
};
|
|
50059
|
+
var getEstimatedTotalSize = function getEstimatedTotalSize2(_ref2, _ref3) {
|
|
50060
|
+
var itemCount = _ref2.itemCount;
|
|
50061
|
+
var itemMetadataMap = _ref3.itemMetadataMap, estimatedItemSize = _ref3.estimatedItemSize, lastMeasuredIndex = _ref3.lastMeasuredIndex;
|
|
50062
|
+
var totalSizeOfMeasuredItems = 0;
|
|
50063
|
+
if (lastMeasuredIndex >= itemCount) {
|
|
50064
|
+
lastMeasuredIndex = itemCount - 1;
|
|
50065
|
+
}
|
|
50066
|
+
if (lastMeasuredIndex >= 0) {
|
|
50067
|
+
var itemMetadata = itemMetadataMap[lastMeasuredIndex];
|
|
50068
|
+
totalSizeOfMeasuredItems = itemMetadata.offset + itemMetadata.size;
|
|
50069
|
+
}
|
|
50070
|
+
var numUnmeasuredItems = itemCount - lastMeasuredIndex - 1;
|
|
50071
|
+
var totalSizeOfUnmeasuredItems = numUnmeasuredItems * estimatedItemSize;
|
|
50072
|
+
return totalSizeOfMeasuredItems + totalSizeOfUnmeasuredItems;
|
|
50073
|
+
};
|
|
50074
|
+
var VariableSizeList = /* @__PURE__ */ createListComponent({
|
|
50075
|
+
getItemOffset: function getItemOffset(props, index2, instanceProps) {
|
|
50076
|
+
return getItemMetadata$1(props, index2, instanceProps).offset;
|
|
50077
|
+
},
|
|
50078
|
+
getItemSize: function getItemSize(props, index2, instanceProps) {
|
|
50079
|
+
return instanceProps.itemMetadataMap[index2].size;
|
|
50080
|
+
},
|
|
50081
|
+
getEstimatedTotalSize,
|
|
50082
|
+
getOffsetForIndexAndAlignment: function getOffsetForIndexAndAlignment(props, index2, align, scrollOffset, instanceProps, scrollbarSize) {
|
|
50083
|
+
var direction = props.direction, height = props.height, layout = props.layout, width = props.width;
|
|
50084
|
+
var isHorizontal = direction === "horizontal" || layout === "horizontal";
|
|
50085
|
+
var size2 = isHorizontal ? width : height;
|
|
50086
|
+
var itemMetadata = getItemMetadata$1(props, index2, instanceProps);
|
|
50087
|
+
var estimatedTotalSize = getEstimatedTotalSize(props, instanceProps);
|
|
50088
|
+
var maxOffset = Math.max(0, Math.min(estimatedTotalSize - size2, itemMetadata.offset));
|
|
50089
|
+
var minOffset = Math.max(0, itemMetadata.offset - size2 + itemMetadata.size + scrollbarSize);
|
|
50090
|
+
if (align === "smart") {
|
|
50091
|
+
if (scrollOffset >= minOffset - size2 && scrollOffset <= maxOffset + size2) {
|
|
50092
|
+
align = "auto";
|
|
50093
|
+
} else {
|
|
50094
|
+
align = "center";
|
|
50095
|
+
}
|
|
50096
|
+
}
|
|
50097
|
+
switch (align) {
|
|
50098
|
+
case "start":
|
|
50099
|
+
return maxOffset;
|
|
50100
|
+
case "end":
|
|
50101
|
+
return minOffset;
|
|
50102
|
+
case "center":
|
|
50103
|
+
return Math.round(minOffset + (maxOffset - minOffset) / 2);
|
|
50104
|
+
case "auto":
|
|
50105
|
+
default:
|
|
50106
|
+
if (scrollOffset >= minOffset && scrollOffset <= maxOffset) {
|
|
50107
|
+
return scrollOffset;
|
|
50108
|
+
} else if (scrollOffset < minOffset) {
|
|
50109
|
+
return minOffset;
|
|
50110
|
+
} else {
|
|
50111
|
+
return maxOffset;
|
|
50112
|
+
}
|
|
50113
|
+
}
|
|
50114
|
+
},
|
|
50115
|
+
getStartIndexForOffset: function getStartIndexForOffset(props, offset2, instanceProps) {
|
|
50116
|
+
return findNearestItem$1(props, instanceProps, offset2);
|
|
50117
|
+
},
|
|
50118
|
+
getStopIndexForStartIndex: function getStopIndexForStartIndex(props, startIndex, scrollOffset, instanceProps) {
|
|
50119
|
+
var direction = props.direction, height = props.height, itemCount = props.itemCount, layout = props.layout, width = props.width;
|
|
50120
|
+
var isHorizontal = direction === "horizontal" || layout === "horizontal";
|
|
50121
|
+
var size2 = isHorizontal ? width : height;
|
|
50122
|
+
var itemMetadata = getItemMetadata$1(props, startIndex, instanceProps);
|
|
50123
|
+
var maxOffset = scrollOffset + size2;
|
|
50124
|
+
var offset2 = itemMetadata.offset + itemMetadata.size;
|
|
50125
|
+
var stopIndex = startIndex;
|
|
50126
|
+
while (stopIndex < itemCount - 1 && offset2 < maxOffset) {
|
|
50127
|
+
stopIndex++;
|
|
50128
|
+
offset2 += getItemMetadata$1(props, stopIndex, instanceProps).size;
|
|
50129
|
+
}
|
|
50130
|
+
return stopIndex;
|
|
50131
|
+
},
|
|
50132
|
+
initInstanceProps: function initInstanceProps(props, instance) {
|
|
50133
|
+
var _ref4 = props, estimatedItemSize = _ref4.estimatedItemSize;
|
|
50134
|
+
var instanceProps = {
|
|
50135
|
+
itemMetadataMap: {},
|
|
50136
|
+
estimatedItemSize: estimatedItemSize || DEFAULT_ESTIMATED_ITEM_SIZE$1,
|
|
50137
|
+
lastMeasuredIndex: -1
|
|
50138
|
+
};
|
|
50139
|
+
instance.resetAfterIndex = function(index2, shouldForceUpdate) {
|
|
50140
|
+
if (shouldForceUpdate === void 0) {
|
|
50141
|
+
shouldForceUpdate = true;
|
|
50142
|
+
}
|
|
50143
|
+
instanceProps.lastMeasuredIndex = Math.min(instanceProps.lastMeasuredIndex, index2 - 1);
|
|
50144
|
+
instance._getItemStyleCache(-1);
|
|
50145
|
+
if (shouldForceUpdate) {
|
|
50146
|
+
instance.forceUpdate();
|
|
50147
|
+
}
|
|
50148
|
+
};
|
|
50149
|
+
return instanceProps;
|
|
50150
|
+
},
|
|
50151
|
+
shouldResetStyleCacheOnItemSizeChange: false,
|
|
50152
|
+
validateProps: function validateProps(_ref5) {
|
|
50153
|
+
_ref5.itemSize;
|
|
50154
|
+
}
|
|
50155
|
+
});
|
|
50000
50156
|
var FixedSizeList = /* @__PURE__ */ createListComponent({
|
|
50001
50157
|
getItemOffset: function getItemOffset(_ref2, index2) {
|
|
50002
50158
|
var itemSize = _ref2.itemSize;
|
|
@@ -50006,7 +50162,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
50006
50162
|
var itemSize = _ref2.itemSize;
|
|
50007
50163
|
return itemSize;
|
|
50008
50164
|
},
|
|
50009
|
-
getEstimatedTotalSize: function
|
|
50165
|
+
getEstimatedTotalSize: function getEstimatedTotalSize2(_ref3) {
|
|
50010
50166
|
var itemCount = _ref3.itemCount, itemSize = _ref3.itemSize;
|
|
50011
50167
|
return itemSize * itemCount;
|
|
50012
50168
|
},
|
|
@@ -50989,7 +51145,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
50989
51145
|
EDIT_INPUT: EditInputCell,
|
|
50990
51146
|
EDIT_SELECT: EditSelectCell
|
|
50991
51147
|
};
|
|
50992
|
-
const createItemData = memoizeOne$1((width, currentEditCell, headerGroups, rows, prepareRow, getItem, totalColumnsWidth, onClickRow, throttledClickRow, backgroundColor, mappedColumns) => ({
|
|
51148
|
+
const createItemData$1 = memoizeOne$1((width, currentEditCell, headerGroups, rows, prepareRow, getItem, totalColumnsWidth, onClickRow, throttledClickRow, backgroundColor, mappedColumns) => ({
|
|
50993
51149
|
backgroundColor,
|
|
50994
51150
|
currentEditCell,
|
|
50995
51151
|
getItem,
|
|
@@ -51099,7 +51255,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
51099
51255
|
useDeepCompare([tableProps, totalColumnsWidth, headerGroups])
|
|
51100
51256
|
);
|
|
51101
51257
|
return jsxRuntime.exports.jsx(Wrapper$3, Object.assign({}, getTableProps(), { "$hasMaxRows": !!maxRows, className: `${className} ${hasFixedColumns ? "sticky" : ""}`, style: Object.assign({ height: maxRows ? (Math.min(rows.length, maxRows) + 1) * ROW_HEIGHT : "100%" }, style), children: jsxRuntime.exports.jsx(AutoSizer, { children: ({ height, width }) => {
|
|
51102
|
-
return jsxRuntime.exports.jsx(StyledFixedSizeList, { height, innerElementType: renderTable, itemCount: itemCount || rows.length, itemData: createItemData(width, currentEditCell, headerGroups, rows, prepareRow, getItem, totalColumnsWidth, onClickRow, throttledClickRow, backgroundColor, mappedColumns), itemSize: ROW_HEIGHT, onItemsRendered, style: {
|
|
51258
|
+
return jsxRuntime.exports.jsx(StyledFixedSizeList, { height, innerElementType: renderTable, itemCount: itemCount || rows.length, itemData: createItemData$1(width, currentEditCell, headerGroups, rows, prepareRow, getItem, totalColumnsWidth, onClickRow, throttledClickRow, backgroundColor, mappedColumns), itemSize: ROW_HEIGHT, onItemsRendered, style: {
|
|
51103
51259
|
overflowX: width < totalColumnsWidth ? "auto" : "hidden",
|
|
51104
51260
|
overflowY: height < (rows.length + 1) * ROW_HEIGHT ? "auto" : "hidden"
|
|
51105
51261
|
}, width, children: RenderRow }, "table-list");
|
|
@@ -53694,10 +53850,10 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
53694
53850
|
var realNames$1 = {};
|
|
53695
53851
|
var _realNames = realNames$1;
|
|
53696
53852
|
var realNames = _realNames;
|
|
53697
|
-
var objectProto$
|
|
53698
|
-
var hasOwnProperty$
|
|
53853
|
+
var objectProto$5 = Object.prototype;
|
|
53854
|
+
var hasOwnProperty$6 = objectProto$5.hasOwnProperty;
|
|
53699
53855
|
function getFuncName$1(func) {
|
|
53700
|
-
var result = func.name + "", array2 = realNames[result], length = hasOwnProperty$
|
|
53856
|
+
var result = func.name + "", array2 = realNames[result], length = hasOwnProperty$6.call(realNames, result) ? array2.length : 0;
|
|
53701
53857
|
while (length--) {
|
|
53702
53858
|
var data = array2[length], otherFunc = data.func;
|
|
53703
53859
|
if (otherFunc == null || otherFunc == func) {
|
|
@@ -53739,15 +53895,15 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
53739
53895
|
return result;
|
|
53740
53896
|
}
|
|
53741
53897
|
var _wrapperClone = wrapperClone$1;
|
|
53742
|
-
var LazyWrapper$1 = _LazyWrapper, LodashWrapper = _LodashWrapper, baseLodash = _baseLodash, isArray$5 = isArray_1, isObjectLike$
|
|
53743
|
-
var objectProto$
|
|
53744
|
-
var hasOwnProperty$
|
|
53898
|
+
var LazyWrapper$1 = _LazyWrapper, LodashWrapper = _LodashWrapper, baseLodash = _baseLodash, isArray$5 = isArray_1, isObjectLike$3 = isObjectLike_1, wrapperClone = _wrapperClone;
|
|
53899
|
+
var objectProto$4 = Object.prototype;
|
|
53900
|
+
var hasOwnProperty$5 = objectProto$4.hasOwnProperty;
|
|
53745
53901
|
function lodash$1(value) {
|
|
53746
|
-
if (isObjectLike$
|
|
53902
|
+
if (isObjectLike$3(value) && !isArray$5(value) && !(value instanceof LazyWrapper$1)) {
|
|
53747
53903
|
if (value instanceof LodashWrapper) {
|
|
53748
53904
|
return value;
|
|
53749
53905
|
}
|
|
53750
|
-
if (hasOwnProperty$
|
|
53906
|
+
if (hasOwnProperty$5.call(value, "__wrapped__")) {
|
|
53751
53907
|
return wrapperClone(value);
|
|
53752
53908
|
}
|
|
53753
53909
|
}
|
|
@@ -54204,353 +54360,8 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
54204
54360
|
useNotifications,
|
|
54205
54361
|
Notification
|
|
54206
54362
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
54207
|
-
|
|
54208
|
-
|
|
54209
|
-
const keys2 = Object.keys(storage);
|
|
54210
|
-
keys2.forEach((key) => {
|
|
54211
|
-
if (key.startsWith("dara-session") && !key.startsWith(`dara-session-${sessionToken}`)) {
|
|
54212
|
-
storage.removeItem(key);
|
|
54213
|
-
}
|
|
54214
|
-
});
|
|
54215
|
-
}
|
|
54216
|
-
}
|
|
54217
|
-
const DARA_JWT_TOKEN = "dara-jwt-token";
|
|
54218
|
-
function isEmbedded() {
|
|
54219
|
-
var _a;
|
|
54220
|
-
const frame = window.frameElement;
|
|
54221
|
-
return frame && ((_a = frame == null ? void 0 : frame.dataset) == null ? void 0 : _a.daraPageId) !== "";
|
|
54222
|
-
}
|
|
54223
|
-
function getEmbedTokenKey() {
|
|
54224
|
-
var _a;
|
|
54225
|
-
const frame = window.frameElement;
|
|
54226
|
-
return (_a = frame == null ? void 0 : frame.dataset) == null ? void 0 : _a.daraPageId;
|
|
54227
|
-
}
|
|
54228
|
-
function getEmbedToken() {
|
|
54229
|
-
return localStorage.getItem(getEmbedTokenKey());
|
|
54230
|
-
}
|
|
54231
|
-
function getToken() {
|
|
54232
|
-
if (isEmbedded()) {
|
|
54233
|
-
const embedToken = getEmbedToken();
|
|
54234
|
-
return embedToken;
|
|
54235
|
-
}
|
|
54236
|
-
return localStorage.getItem(DARA_JWT_TOKEN);
|
|
54237
|
-
}
|
|
54238
|
-
function getTokenKey() {
|
|
54239
|
-
if (isEmbedded()) {
|
|
54240
|
-
return getEmbedTokenKey();
|
|
54241
|
-
}
|
|
54242
|
-
return DARA_JWT_TOKEN;
|
|
54243
|
-
}
|
|
54244
|
-
var ComponentType = /* @__PURE__ */ ((ComponentType2) => {
|
|
54245
|
-
ComponentType2["JS"] = "js";
|
|
54246
|
-
ComponentType2["PY"] = "py";
|
|
54247
|
-
return ComponentType2;
|
|
54248
|
-
})(ComponentType || {});
|
|
54249
|
-
function isRawString(instance) {
|
|
54250
|
-
return instance.name === "RawString";
|
|
54251
|
-
}
|
|
54252
|
-
function isInvalidComponent(instance) {
|
|
54253
|
-
return instance.name === "InvalidComponent";
|
|
54254
|
-
}
|
|
54255
|
-
var ConditionOperator = /* @__PURE__ */ ((ConditionOperator2) => {
|
|
54256
|
-
ConditionOperator2["EQUAL"] = "equal";
|
|
54257
|
-
ConditionOperator2["GREATER_EQUAL"] = "greater_equal";
|
|
54258
|
-
ConditionOperator2["GREATER_THAN"] = "greater_than";
|
|
54259
|
-
ConditionOperator2["LESS_EQUAL"] = "less_equal";
|
|
54260
|
-
ConditionOperator2["LESS_THAN"] = "less_than";
|
|
54261
|
-
ConditionOperator2["NOT_EQUAL"] = "not_equal";
|
|
54262
|
-
ConditionOperator2["TRUTHY"] = "truthy";
|
|
54263
|
-
return ConditionOperator2;
|
|
54264
|
-
})(ConditionOperator || {});
|
|
54265
|
-
function isVariable(variable) {
|
|
54266
|
-
return variable && typeof variable == "object" && variable.hasOwnProperty("uid") && variable.hasOwnProperty("__typename") && variable.__typename.includes("Variable");
|
|
54267
|
-
}
|
|
54268
|
-
function isUrlVariable(variable) {
|
|
54269
|
-
return isVariable(variable) && variable.__typename === "UrlVariable";
|
|
54270
|
-
}
|
|
54271
|
-
function isDerivedVariable(variable) {
|
|
54272
|
-
return isVariable(variable) && variable.__typename === "DerivedVariable";
|
|
54273
|
-
}
|
|
54274
|
-
function isDataVariable(variable) {
|
|
54275
|
-
return isVariable(variable) && variable.__typename === "DataVariable";
|
|
54276
|
-
}
|
|
54277
|
-
function isDerivedDataVariable(variable) {
|
|
54278
|
-
return isVariable(variable) && variable.__typename === "DerivedDataVariable";
|
|
54279
|
-
}
|
|
54280
|
-
function isResolvedDerivedVariable(value) {
|
|
54281
|
-
return value && typeof value === "object" && "values" in value && "type" in value && value.type === "derived" && "uid" in value;
|
|
54282
|
-
}
|
|
54283
|
-
function isResolvedDataVariable(value) {
|
|
54284
|
-
return value && typeof value === "object" && "filters" in value && "type" in value && value.type === "data" && "uid" in value;
|
|
54285
|
-
}
|
|
54286
|
-
function isResolvedDerivedDataVariable(value) {
|
|
54287
|
-
return value && typeof value === "object" && "filters" in value && "values" in value && "type" in value && value.type === "derived-data" && "uid" in value;
|
|
54288
|
-
}
|
|
54289
|
-
function isActionImpl(action) {
|
|
54290
|
-
return action && typeof action === "object" && action.__typename === "ActionImpl";
|
|
54291
|
-
}
|
|
54292
|
-
function isJsComponent(component) {
|
|
54293
|
-
return component.type === ComponentType.JS;
|
|
54294
|
-
}
|
|
54295
|
-
function isNull(value) {
|
|
54296
|
-
return value === null;
|
|
54297
|
-
}
|
|
54298
|
-
var isNull_1 = isNull;
|
|
54299
|
-
var Stack$1 = _Stack, baseIsEqual$1 = _baseIsEqual;
|
|
54300
|
-
var COMPARE_PARTIAL_FLAG$1 = 1, COMPARE_UNORDERED_FLAG$1 = 2;
|
|
54301
|
-
function baseIsMatch$1(object2, source, matchData, customizer) {
|
|
54302
|
-
var index2 = matchData.length, length = index2, noCustomizer = !customizer;
|
|
54303
|
-
if (object2 == null) {
|
|
54304
|
-
return !length;
|
|
54305
|
-
}
|
|
54306
|
-
object2 = Object(object2);
|
|
54307
|
-
while (index2--) {
|
|
54308
|
-
var data = matchData[index2];
|
|
54309
|
-
if (noCustomizer && data[2] ? data[1] !== object2[data[0]] : !(data[0] in object2)) {
|
|
54310
|
-
return false;
|
|
54311
|
-
}
|
|
54312
|
-
}
|
|
54313
|
-
while (++index2 < length) {
|
|
54314
|
-
data = matchData[index2];
|
|
54315
|
-
var key = data[0], objValue = object2[key], srcValue = data[1];
|
|
54316
|
-
if (noCustomizer && data[2]) {
|
|
54317
|
-
if (objValue === void 0 && !(key in object2)) {
|
|
54318
|
-
return false;
|
|
54319
|
-
}
|
|
54320
|
-
} else {
|
|
54321
|
-
var stack = new Stack$1();
|
|
54322
|
-
if (customizer) {
|
|
54323
|
-
var result = customizer(objValue, srcValue, key, object2, source, stack);
|
|
54324
|
-
}
|
|
54325
|
-
if (!(result === void 0 ? baseIsEqual$1(srcValue, objValue, COMPARE_PARTIAL_FLAG$1 | COMPARE_UNORDERED_FLAG$1, customizer, stack) : result)) {
|
|
54326
|
-
return false;
|
|
54327
|
-
}
|
|
54328
|
-
}
|
|
54329
|
-
}
|
|
54330
|
-
return true;
|
|
54331
|
-
}
|
|
54332
|
-
var _baseIsMatch = baseIsMatch$1;
|
|
54333
|
-
var isObject$3 = isObject_1;
|
|
54334
|
-
function isStrictComparable$2(value) {
|
|
54335
|
-
return value === value && !isObject$3(value);
|
|
54336
|
-
}
|
|
54337
|
-
var _isStrictComparable = isStrictComparable$2;
|
|
54338
|
-
var isStrictComparable$1 = _isStrictComparable, keys$2 = keys_1;
|
|
54339
|
-
function getMatchData$1(object2) {
|
|
54340
|
-
var result = keys$2(object2), length = result.length;
|
|
54341
|
-
while (length--) {
|
|
54342
|
-
var key = result[length], value = object2[key];
|
|
54343
|
-
result[length] = [key, value, isStrictComparable$1(value)];
|
|
54344
|
-
}
|
|
54345
|
-
return result;
|
|
54346
|
-
}
|
|
54347
|
-
var _getMatchData = getMatchData$1;
|
|
54348
|
-
function matchesStrictComparable$2(key, srcValue) {
|
|
54349
|
-
return function(object2) {
|
|
54350
|
-
if (object2 == null) {
|
|
54351
|
-
return false;
|
|
54352
|
-
}
|
|
54353
|
-
return object2[key] === srcValue && (srcValue !== void 0 || key in Object(object2));
|
|
54354
|
-
};
|
|
54355
|
-
}
|
|
54356
|
-
var _matchesStrictComparable = matchesStrictComparable$2;
|
|
54357
|
-
var baseIsMatch = _baseIsMatch, getMatchData = _getMatchData, matchesStrictComparable$1 = _matchesStrictComparable;
|
|
54358
|
-
function baseMatches$1(source) {
|
|
54359
|
-
var matchData = getMatchData(source);
|
|
54360
|
-
if (matchData.length == 1 && matchData[0][2]) {
|
|
54361
|
-
return matchesStrictComparable$1(matchData[0][0], matchData[0][1]);
|
|
54362
|
-
}
|
|
54363
|
-
return function(object2) {
|
|
54364
|
-
return object2 === source || baseIsMatch(object2, source, matchData);
|
|
54365
|
-
};
|
|
54366
|
-
}
|
|
54367
|
-
var _baseMatches = baseMatches$1;
|
|
54368
|
-
var isArray$4 = isArray_1, isSymbol$1 = isSymbol_1;
|
|
54369
|
-
var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/;
|
|
54370
|
-
function isKey$3(value, object2) {
|
|
54371
|
-
if (isArray$4(value)) {
|
|
54372
|
-
return false;
|
|
54373
|
-
}
|
|
54374
|
-
var type = typeof value;
|
|
54375
|
-
if (type == "number" || type == "symbol" || type == "boolean" || value == null || isSymbol$1(value)) {
|
|
54376
|
-
return true;
|
|
54377
|
-
}
|
|
54378
|
-
return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object2 != null && value in Object(object2);
|
|
54379
|
-
}
|
|
54380
|
-
var _isKey = isKey$3;
|
|
54381
|
-
var MapCache = _MapCache;
|
|
54382
|
-
var FUNC_ERROR_TEXT$1 = "Expected a function";
|
|
54383
|
-
function memoize$1(func, resolver) {
|
|
54384
|
-
if (typeof func != "function" || resolver != null && typeof resolver != "function") {
|
|
54385
|
-
throw new TypeError(FUNC_ERROR_TEXT$1);
|
|
54386
|
-
}
|
|
54387
|
-
var memoized = function() {
|
|
54388
|
-
var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache2 = memoized.cache;
|
|
54389
|
-
if (cache2.has(key)) {
|
|
54390
|
-
return cache2.get(key);
|
|
54391
|
-
}
|
|
54392
|
-
var result = func.apply(this, args);
|
|
54393
|
-
memoized.cache = cache2.set(key, result) || cache2;
|
|
54394
|
-
return result;
|
|
54395
|
-
};
|
|
54396
|
-
memoized.cache = new (memoize$1.Cache || MapCache)();
|
|
54397
|
-
return memoized;
|
|
54398
|
-
}
|
|
54399
|
-
memoize$1.Cache = MapCache;
|
|
54400
|
-
var memoize_1 = memoize$1;
|
|
54401
|
-
var memoize = memoize_1;
|
|
54402
|
-
var MAX_MEMOIZE_SIZE = 500;
|
|
54403
|
-
function memoizeCapped$1(func) {
|
|
54404
|
-
var result = memoize(func, function(key) {
|
|
54405
|
-
if (cache2.size === MAX_MEMOIZE_SIZE) {
|
|
54406
|
-
cache2.clear();
|
|
54407
|
-
}
|
|
54408
|
-
return key;
|
|
54409
|
-
});
|
|
54410
|
-
var cache2 = result.cache;
|
|
54411
|
-
return result;
|
|
54412
|
-
}
|
|
54413
|
-
var _memoizeCapped = memoizeCapped$1;
|
|
54414
|
-
var memoizeCapped = _memoizeCapped;
|
|
54415
|
-
var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
|
|
54416
|
-
var reEscapeChar = /\\(\\)?/g;
|
|
54417
|
-
var stringToPath$1 = memoizeCapped(function(string2) {
|
|
54418
|
-
var result = [];
|
|
54419
|
-
if (string2.charCodeAt(0) === 46) {
|
|
54420
|
-
result.push("");
|
|
54421
|
-
}
|
|
54422
|
-
string2.replace(rePropName, function(match2, number2, quote, subString) {
|
|
54423
|
-
result.push(quote ? subString.replace(reEscapeChar, "$1") : number2 || match2);
|
|
54424
|
-
});
|
|
54425
|
-
return result;
|
|
54426
|
-
});
|
|
54427
|
-
var _stringToPath = stringToPath$1;
|
|
54428
|
-
var isArray$3 = isArray_1, isKey$2 = _isKey, stringToPath = _stringToPath, toString = toString_1;
|
|
54429
|
-
function castPath$4(value, object2) {
|
|
54430
|
-
if (isArray$3(value)) {
|
|
54431
|
-
return value;
|
|
54432
|
-
}
|
|
54433
|
-
return isKey$2(value, object2) ? [value] : stringToPath(toString(value));
|
|
54434
|
-
}
|
|
54435
|
-
var _castPath = castPath$4;
|
|
54436
|
-
var isSymbol = isSymbol_1;
|
|
54437
|
-
var INFINITY = 1 / 0;
|
|
54438
|
-
function toKey$5(value) {
|
|
54439
|
-
if (typeof value == "string" || isSymbol(value)) {
|
|
54440
|
-
return value;
|
|
54441
|
-
}
|
|
54442
|
-
var result = value + "";
|
|
54443
|
-
return result == "0" && 1 / value == -INFINITY ? "-0" : result;
|
|
54444
|
-
}
|
|
54445
|
-
var _toKey = toKey$5;
|
|
54446
|
-
var castPath$3 = _castPath, toKey$4 = _toKey;
|
|
54447
|
-
function baseGet$3(object2, path) {
|
|
54448
|
-
path = castPath$3(path, object2);
|
|
54449
|
-
var index2 = 0, length = path.length;
|
|
54450
|
-
while (object2 != null && index2 < length) {
|
|
54451
|
-
object2 = object2[toKey$4(path[index2++])];
|
|
54452
|
-
}
|
|
54453
|
-
return index2 && index2 == length ? object2 : void 0;
|
|
54454
|
-
}
|
|
54455
|
-
var _baseGet = baseGet$3;
|
|
54456
|
-
var baseGet$2 = _baseGet;
|
|
54457
|
-
function get$1(object2, path, defaultValue) {
|
|
54458
|
-
var result = object2 == null ? void 0 : baseGet$2(object2, path);
|
|
54459
|
-
return result === void 0 ? defaultValue : result;
|
|
54460
|
-
}
|
|
54461
|
-
var get_1 = get$1;
|
|
54462
|
-
function baseHasIn$1(object2, key) {
|
|
54463
|
-
return object2 != null && key in Object(object2);
|
|
54464
|
-
}
|
|
54465
|
-
var _baseHasIn = baseHasIn$1;
|
|
54466
|
-
var castPath$2 = _castPath, isArguments = isArguments_1, isArray$2 = isArray_1, isIndex$1 = _isIndex, isLength = isLength_1, toKey$3 = _toKey;
|
|
54467
|
-
function hasPath$1(object2, path, hasFunc) {
|
|
54468
|
-
path = castPath$2(path, object2);
|
|
54469
|
-
var index2 = -1, length = path.length, result = false;
|
|
54470
|
-
while (++index2 < length) {
|
|
54471
|
-
var key = toKey$3(path[index2]);
|
|
54472
|
-
if (!(result = object2 != null && hasFunc(object2, key))) {
|
|
54473
|
-
break;
|
|
54474
|
-
}
|
|
54475
|
-
object2 = object2[key];
|
|
54476
|
-
}
|
|
54477
|
-
if (result || ++index2 != length) {
|
|
54478
|
-
return result;
|
|
54479
|
-
}
|
|
54480
|
-
length = object2 == null ? 0 : object2.length;
|
|
54481
|
-
return !!length && isLength(length) && isIndex$1(key, length) && (isArray$2(object2) || isArguments(object2));
|
|
54482
|
-
}
|
|
54483
|
-
var _hasPath = hasPath$1;
|
|
54484
|
-
var baseHasIn = _baseHasIn, hasPath = _hasPath;
|
|
54485
|
-
function hasIn$1(object2, path) {
|
|
54486
|
-
return object2 != null && hasPath(object2, path, baseHasIn);
|
|
54487
|
-
}
|
|
54488
|
-
var hasIn_1 = hasIn$1;
|
|
54489
|
-
var baseIsEqual = _baseIsEqual, get = get_1, hasIn = hasIn_1, isKey$1 = _isKey, isStrictComparable = _isStrictComparable, matchesStrictComparable = _matchesStrictComparable, toKey$2 = _toKey;
|
|
54490
|
-
var COMPARE_PARTIAL_FLAG = 1, COMPARE_UNORDERED_FLAG = 2;
|
|
54491
|
-
function baseMatchesProperty$1(path, srcValue) {
|
|
54492
|
-
if (isKey$1(path) && isStrictComparable(srcValue)) {
|
|
54493
|
-
return matchesStrictComparable(toKey$2(path), srcValue);
|
|
54494
|
-
}
|
|
54495
|
-
return function(object2) {
|
|
54496
|
-
var objValue = get(object2, path);
|
|
54497
|
-
return objValue === void 0 && objValue === srcValue ? hasIn(object2, path) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
|
|
54498
|
-
};
|
|
54499
|
-
}
|
|
54500
|
-
var _baseMatchesProperty = baseMatchesProperty$1;
|
|
54501
|
-
function baseProperty$1(key) {
|
|
54502
|
-
return function(object2) {
|
|
54503
|
-
return object2 == null ? void 0 : object2[key];
|
|
54504
|
-
};
|
|
54505
|
-
}
|
|
54506
|
-
var _baseProperty = baseProperty$1;
|
|
54507
|
-
var baseGet$1 = _baseGet;
|
|
54508
|
-
function basePropertyDeep$1(path) {
|
|
54509
|
-
return function(object2) {
|
|
54510
|
-
return baseGet$1(object2, path);
|
|
54511
|
-
};
|
|
54512
|
-
}
|
|
54513
|
-
var _basePropertyDeep = basePropertyDeep$1;
|
|
54514
|
-
var baseProperty = _baseProperty, basePropertyDeep = _basePropertyDeep, isKey = _isKey, toKey$1 = _toKey;
|
|
54515
|
-
function property$1(path) {
|
|
54516
|
-
return isKey(path) ? baseProperty(toKey$1(path)) : basePropertyDeep(path);
|
|
54517
|
-
}
|
|
54518
|
-
var property_1 = property$1;
|
|
54519
|
-
var baseMatches = _baseMatches, baseMatchesProperty = _baseMatchesProperty, identity = identity_1, isArray$1 = isArray_1, property = property_1;
|
|
54520
|
-
function baseIteratee$2(value) {
|
|
54521
|
-
if (typeof value == "function") {
|
|
54522
|
-
return value;
|
|
54523
|
-
}
|
|
54524
|
-
if (value == null) {
|
|
54525
|
-
return identity;
|
|
54526
|
-
}
|
|
54527
|
-
if (typeof value == "object") {
|
|
54528
|
-
return isArray$1(value) ? baseMatchesProperty(value[0], value[1]) : baseMatches(value);
|
|
54529
|
-
}
|
|
54530
|
-
return property(value);
|
|
54531
|
-
}
|
|
54532
|
-
var _baseIteratee = baseIteratee$2;
|
|
54533
|
-
var FUNC_ERROR_TEXT = "Expected a function";
|
|
54534
|
-
function negate$1(predicate) {
|
|
54535
|
-
if (typeof predicate != "function") {
|
|
54536
|
-
throw new TypeError(FUNC_ERROR_TEXT);
|
|
54537
|
-
}
|
|
54538
|
-
return function() {
|
|
54539
|
-
var args = arguments;
|
|
54540
|
-
switch (args.length) {
|
|
54541
|
-
case 0:
|
|
54542
|
-
return !predicate.call(this);
|
|
54543
|
-
case 1:
|
|
54544
|
-
return !predicate.call(this, args[0]);
|
|
54545
|
-
case 2:
|
|
54546
|
-
return !predicate.call(this, args[0], args[1]);
|
|
54547
|
-
case 3:
|
|
54548
|
-
return !predicate.call(this, args[0], args[1], args[2]);
|
|
54549
|
-
}
|
|
54550
|
-
return !predicate.apply(this, args);
|
|
54551
|
-
};
|
|
54552
|
-
}
|
|
54553
|
-
var negate_1 = negate$1;
|
|
54363
|
+
const directionCtx = React.createContext({ direction: "row" });
|
|
54364
|
+
const importersCtx = React.createContext({});
|
|
54554
54365
|
var defineProperty = _defineProperty$1;
|
|
54555
54366
|
function baseAssignValue$2(object2, key, value) {
|
|
54556
54367
|
if (key == "__proto__" && defineProperty) {
|
|
@@ -54566,66 +54377,40 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
54566
54377
|
}
|
|
54567
54378
|
var _baseAssignValue = baseAssignValue$2;
|
|
54568
54379
|
var baseAssignValue$1 = _baseAssignValue, eq = eq_1;
|
|
54569
|
-
var objectProto$
|
|
54570
|
-
var hasOwnProperty$
|
|
54380
|
+
var objectProto$3 = Object.prototype;
|
|
54381
|
+
var hasOwnProperty$4 = objectProto$3.hasOwnProperty;
|
|
54571
54382
|
function assignValue$3(object2, key, value) {
|
|
54572
54383
|
var objValue = object2[key];
|
|
54573
|
-
if (!(hasOwnProperty$
|
|
54384
|
+
if (!(hasOwnProperty$4.call(object2, key) && eq(objValue, value)) || value === void 0 && !(key in object2)) {
|
|
54574
54385
|
baseAssignValue$1(object2, key, value);
|
|
54575
54386
|
}
|
|
54576
54387
|
}
|
|
54577
54388
|
var _assignValue = assignValue$3;
|
|
54578
|
-
var assignValue$2 = _assignValue,
|
|
54579
|
-
function
|
|
54580
|
-
|
|
54581
|
-
|
|
54582
|
-
|
|
54583
|
-
|
|
54584
|
-
|
|
54585
|
-
|
|
54586
|
-
|
|
54587
|
-
|
|
54588
|
-
return object2;
|
|
54389
|
+
var assignValue$2 = _assignValue, baseAssignValue = _baseAssignValue;
|
|
54390
|
+
function copyObject$4(source, props, object2, customizer) {
|
|
54391
|
+
var isNew = !object2;
|
|
54392
|
+
object2 || (object2 = {});
|
|
54393
|
+
var index2 = -1, length = props.length;
|
|
54394
|
+
while (++index2 < length) {
|
|
54395
|
+
var key = props[index2];
|
|
54396
|
+
var newValue = customizer ? customizer(object2[key], source[key], key, object2, source) : void 0;
|
|
54397
|
+
if (newValue === void 0) {
|
|
54398
|
+
newValue = source[key];
|
|
54589
54399
|
}
|
|
54590
|
-
if (
|
|
54591
|
-
|
|
54592
|
-
|
|
54593
|
-
|
|
54594
|
-
newValue = isObject$2(objValue) ? objValue : isIndex(path[index2 + 1]) ? [] : {};
|
|
54595
|
-
}
|
|
54400
|
+
if (isNew) {
|
|
54401
|
+
baseAssignValue(object2, key, newValue);
|
|
54402
|
+
} else {
|
|
54403
|
+
assignValue$2(object2, key, newValue);
|
|
54596
54404
|
}
|
|
54597
|
-
assignValue$2(nested, key, newValue);
|
|
54598
|
-
nested = nested[key];
|
|
54599
54405
|
}
|
|
54600
54406
|
return object2;
|
|
54601
54407
|
}
|
|
54602
|
-
var
|
|
54603
|
-
var
|
|
54604
|
-
function
|
|
54605
|
-
|
|
54606
|
-
while (++index2 < length) {
|
|
54607
|
-
var path = paths[index2], value = baseGet(object2, path);
|
|
54608
|
-
if (predicate(value, path)) {
|
|
54609
|
-
baseSet(result, castPath(path, object2), value);
|
|
54610
|
-
}
|
|
54611
|
-
}
|
|
54612
|
-
return result;
|
|
54408
|
+
var _copyObject = copyObject$4;
|
|
54409
|
+
var copyObject$3 = _copyObject, keys$2 = keys_1;
|
|
54410
|
+
function baseAssign$1(object2, source) {
|
|
54411
|
+
return object2 && copyObject$3(source, keys$2(source), object2);
|
|
54613
54412
|
}
|
|
54614
|
-
var
|
|
54615
|
-
var overArg = _overArg;
|
|
54616
|
-
var getPrototype$2 = overArg(Object.getPrototypeOf, Object);
|
|
54617
|
-
var _getPrototype = getPrototype$2;
|
|
54618
|
-
var arrayPush = _arrayPush, getPrototype$1 = _getPrototype, getSymbols$1 = _getSymbols, stubArray = stubArray_1;
|
|
54619
|
-
var nativeGetSymbols = Object.getOwnPropertySymbols;
|
|
54620
|
-
var getSymbolsIn$2 = !nativeGetSymbols ? stubArray : function(object2) {
|
|
54621
|
-
var result = [];
|
|
54622
|
-
while (object2) {
|
|
54623
|
-
arrayPush(result, getSymbols$1(object2));
|
|
54624
|
-
object2 = getPrototype$1(object2);
|
|
54625
|
-
}
|
|
54626
|
-
return result;
|
|
54627
|
-
};
|
|
54628
|
-
var _getSymbolsIn = getSymbolsIn$2;
|
|
54413
|
+
var _baseAssign = baseAssign$1;
|
|
54629
54414
|
function nativeKeysIn$1(object2) {
|
|
54630
54415
|
var result = [];
|
|
54631
54416
|
if (object2 != null) {
|
|
@@ -54636,16 +54421,16 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
54636
54421
|
return result;
|
|
54637
54422
|
}
|
|
54638
54423
|
var _nativeKeysIn = nativeKeysIn$1;
|
|
54639
|
-
var isObject$
|
|
54640
|
-
var objectProto$
|
|
54641
|
-
var hasOwnProperty$
|
|
54424
|
+
var isObject$3 = isObject_1, isPrototype$1 = _isPrototype, nativeKeysIn = _nativeKeysIn;
|
|
54425
|
+
var objectProto$2 = Object.prototype;
|
|
54426
|
+
var hasOwnProperty$3 = objectProto$2.hasOwnProperty;
|
|
54642
54427
|
function baseKeysIn$1(object2) {
|
|
54643
|
-
if (!isObject$
|
|
54428
|
+
if (!isObject$3(object2)) {
|
|
54644
54429
|
return nativeKeysIn(object2);
|
|
54645
54430
|
}
|
|
54646
54431
|
var isProto = isPrototype$1(object2), result = [];
|
|
54647
54432
|
for (var key in object2) {
|
|
54648
|
-
if (!(key == "constructor" && (isProto || !hasOwnProperty$
|
|
54433
|
+
if (!(key == "constructor" && (isProto || !hasOwnProperty$3.call(object2, key)))) {
|
|
54649
54434
|
result.push(key);
|
|
54650
54435
|
}
|
|
54651
54436
|
}
|
|
@@ -54657,124 +54442,62 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
54657
54442
|
return isArrayLike(object2) ? arrayLikeKeys(object2, true) : baseKeysIn(object2);
|
|
54658
54443
|
}
|
|
54659
54444
|
var keysIn_1 = keysIn$3;
|
|
54660
|
-
var
|
|
54661
|
-
function
|
|
54662
|
-
return
|
|
54445
|
+
var copyObject$2 = _copyObject, keysIn$2 = keysIn_1;
|
|
54446
|
+
function baseAssignIn$1(object2, source) {
|
|
54447
|
+
return object2 && copyObject$2(source, keysIn$2(source), object2);
|
|
54663
54448
|
}
|
|
54664
|
-
var
|
|
54665
|
-
var
|
|
54666
|
-
function
|
|
54667
|
-
|
|
54668
|
-
|
|
54669
|
-
|
|
54670
|
-
var
|
|
54671
|
-
|
|
54672
|
-
|
|
54673
|
-
|
|
54674
|
-
|
|
54675
|
-
|
|
54676
|
-
|
|
54677
|
-
|
|
54678
|
-
|
|
54679
|
-
var baseIteratee = _baseIteratee, negate = negate_1, pickBy = pickBy_1;
|
|
54680
|
-
function omitBy(object2, predicate) {
|
|
54681
|
-
return pickBy(object2, negate(baseIteratee(predicate)));
|
|
54682
|
-
}
|
|
54683
|
-
var omitBy_1 = omitBy;
|
|
54684
|
-
function isTheme(configTheme) {
|
|
54685
|
-
return typeof configTheme !== "string";
|
|
54686
|
-
}
|
|
54687
|
-
function resolveTheme(configTheme, baseTheme) {
|
|
54688
|
-
if (!configTheme || configTheme === "light") {
|
|
54689
|
-
return theme;
|
|
54690
|
-
}
|
|
54691
|
-
if (configTheme === "dark") {
|
|
54692
|
-
return darkTheme;
|
|
54693
|
-
}
|
|
54694
|
-
if (isTheme(configTheme)) {
|
|
54695
|
-
const original = baseTheme === "dark" ? darkTheme : theme;
|
|
54696
|
-
return {
|
|
54697
|
-
...original,
|
|
54698
|
-
...omitBy_1(configTheme, isNull_1),
|
|
54699
|
-
colors: {
|
|
54700
|
-
...original.colors,
|
|
54701
|
-
...omitBy_1(configTheme.colors, isNull_1)
|
|
54702
|
-
},
|
|
54703
|
-
font: {
|
|
54704
|
-
...original.font,
|
|
54705
|
-
...omitBy_1(configTheme.font, isNull_1)
|
|
54706
|
-
},
|
|
54707
|
-
shadow: {
|
|
54708
|
-
...original.shadow,
|
|
54709
|
-
...omitBy_1(configTheme.shadow, isNull_1)
|
|
54710
|
-
}
|
|
54711
|
-
};
|
|
54712
|
-
}
|
|
54713
|
-
console.warn("No valid theme was found. Defaulting to light theme.");
|
|
54714
|
-
return theme;
|
|
54715
|
-
}
|
|
54716
|
-
var assignValue$1 = _assignValue, baseAssignValue = _baseAssignValue;
|
|
54717
|
-
function copyObject$4(source, props, object2, customizer) {
|
|
54718
|
-
var isNew = !object2;
|
|
54719
|
-
object2 || (object2 = {});
|
|
54720
|
-
var index2 = -1, length = props.length;
|
|
54721
|
-
while (++index2 < length) {
|
|
54722
|
-
var key = props[index2];
|
|
54723
|
-
var newValue = customizer ? customizer(object2[key], source[key], key, object2, source) : void 0;
|
|
54724
|
-
if (newValue === void 0) {
|
|
54725
|
-
newValue = source[key];
|
|
54726
|
-
}
|
|
54727
|
-
if (isNew) {
|
|
54728
|
-
baseAssignValue(object2, key, newValue);
|
|
54729
|
-
} else {
|
|
54730
|
-
assignValue$1(object2, key, newValue);
|
|
54731
|
-
}
|
|
54732
|
-
}
|
|
54733
|
-
return object2;
|
|
54734
|
-
}
|
|
54735
|
-
var _copyObject = copyObject$4;
|
|
54736
|
-
var copyObject$3 = _copyObject, keys$1 = keys_1;
|
|
54737
|
-
function baseAssign$1(object2, source) {
|
|
54738
|
-
return object2 && copyObject$3(source, keys$1(source), object2);
|
|
54739
|
-
}
|
|
54740
|
-
var _baseAssign = baseAssign$1;
|
|
54741
|
-
var copyObject$2 = _copyObject, keysIn$1 = keysIn_1;
|
|
54742
|
-
function baseAssignIn$1(object2, source) {
|
|
54743
|
-
return object2 && copyObject$2(source, keysIn$1(source), object2);
|
|
54744
|
-
}
|
|
54745
|
-
var _baseAssignIn = baseAssignIn$1;
|
|
54746
|
-
var _cloneBuffer = { exports: {} };
|
|
54747
|
-
(function(module2, exports2) {
|
|
54748
|
-
var root2 = _root;
|
|
54749
|
-
var freeExports = exports2 && !exports2.nodeType && exports2;
|
|
54750
|
-
var freeModule = freeExports && true && module2 && !module2.nodeType && module2;
|
|
54751
|
-
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
54752
|
-
var Buffer2 = moduleExports ? root2.Buffer : void 0, allocUnsafe = Buffer2 ? Buffer2.allocUnsafe : void 0;
|
|
54753
|
-
function cloneBuffer2(buffer, isDeep) {
|
|
54754
|
-
if (isDeep) {
|
|
54755
|
-
return buffer.slice();
|
|
54756
|
-
}
|
|
54757
|
-
var length = buffer.length, result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
|
|
54758
|
-
buffer.copy(result);
|
|
54759
|
-
return result;
|
|
54449
|
+
var _baseAssignIn = baseAssignIn$1;
|
|
54450
|
+
var _cloneBuffer = { exports: {} };
|
|
54451
|
+
(function(module2, exports2) {
|
|
54452
|
+
var root2 = _root;
|
|
54453
|
+
var freeExports = exports2 && !exports2.nodeType && exports2;
|
|
54454
|
+
var freeModule = freeExports && true && module2 && !module2.nodeType && module2;
|
|
54455
|
+
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
54456
|
+
var Buffer2 = moduleExports ? root2.Buffer : void 0, allocUnsafe = Buffer2 ? Buffer2.allocUnsafe : void 0;
|
|
54457
|
+
function cloneBuffer2(buffer, isDeep) {
|
|
54458
|
+
if (isDeep) {
|
|
54459
|
+
return buffer.slice();
|
|
54460
|
+
}
|
|
54461
|
+
var length = buffer.length, result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
|
|
54462
|
+
buffer.copy(result);
|
|
54463
|
+
return result;
|
|
54760
54464
|
}
|
|
54761
54465
|
module2.exports = cloneBuffer2;
|
|
54762
54466
|
})(_cloneBuffer, _cloneBuffer.exports);
|
|
54763
|
-
var copyObject$1 = _copyObject, getSymbols = _getSymbols;
|
|
54467
|
+
var copyObject$1 = _copyObject, getSymbols$1 = _getSymbols;
|
|
54764
54468
|
function copySymbols$1(source, object2) {
|
|
54765
|
-
return copyObject$1(source, getSymbols(source), object2);
|
|
54469
|
+
return copyObject$1(source, getSymbols$1(source), object2);
|
|
54766
54470
|
}
|
|
54767
54471
|
var _copySymbols = copySymbols$1;
|
|
54768
|
-
var
|
|
54472
|
+
var overArg = _overArg;
|
|
54473
|
+
var getPrototype$3 = overArg(Object.getPrototypeOf, Object);
|
|
54474
|
+
var _getPrototype = getPrototype$3;
|
|
54475
|
+
var arrayPush = _arrayPush, getPrototype$2 = _getPrototype, getSymbols = _getSymbols, stubArray = stubArray_1;
|
|
54476
|
+
var nativeGetSymbols = Object.getOwnPropertySymbols;
|
|
54477
|
+
var getSymbolsIn$2 = !nativeGetSymbols ? stubArray : function(object2) {
|
|
54478
|
+
var result = [];
|
|
54479
|
+
while (object2) {
|
|
54480
|
+
arrayPush(result, getSymbols(object2));
|
|
54481
|
+
object2 = getPrototype$2(object2);
|
|
54482
|
+
}
|
|
54483
|
+
return result;
|
|
54484
|
+
};
|
|
54485
|
+
var _getSymbolsIn = getSymbolsIn$2;
|
|
54486
|
+
var copyObject = _copyObject, getSymbolsIn$1 = _getSymbolsIn;
|
|
54769
54487
|
function copySymbolsIn$1(source, object2) {
|
|
54770
|
-
return copyObject(source, getSymbolsIn(source), object2);
|
|
54488
|
+
return copyObject(source, getSymbolsIn$1(source), object2);
|
|
54771
54489
|
}
|
|
54772
54490
|
var _copySymbolsIn = copySymbolsIn$1;
|
|
54773
|
-
var
|
|
54774
|
-
|
|
54491
|
+
var baseGetAllKeys = _baseGetAllKeys, getSymbolsIn = _getSymbolsIn, keysIn$1 = keysIn_1;
|
|
54492
|
+
function getAllKeysIn$2(object2) {
|
|
54493
|
+
return baseGetAllKeys(object2, keysIn$1, getSymbolsIn);
|
|
54494
|
+
}
|
|
54495
|
+
var _getAllKeysIn = getAllKeysIn$2;
|
|
54496
|
+
var objectProto$1 = Object.prototype;
|
|
54497
|
+
var hasOwnProperty$2 = objectProto$1.hasOwnProperty;
|
|
54775
54498
|
function initCloneArray$1(array2) {
|
|
54776
54499
|
var length = array2.length, result = new array2.constructor(length);
|
|
54777
|
-
if (length && typeof array2[0] == "string" && hasOwnProperty$
|
|
54500
|
+
if (length && typeof array2[0] == "string" && hasOwnProperty$2.call(array2, "index")) {
|
|
54778
54501
|
result.index = array2.index;
|
|
54779
54502
|
result.input = array2.input;
|
|
54780
54503
|
}
|
|
@@ -54850,37 +54573,37 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
54850
54573
|
}
|
|
54851
54574
|
}
|
|
54852
54575
|
var _initCloneByTag = initCloneByTag$1;
|
|
54853
|
-
var baseCreate = _baseCreate, getPrototype = _getPrototype, isPrototype = _isPrototype;
|
|
54576
|
+
var baseCreate = _baseCreate, getPrototype$1 = _getPrototype, isPrototype = _isPrototype;
|
|
54854
54577
|
function initCloneObject$1(object2) {
|
|
54855
|
-
return typeof object2.constructor == "function" && !isPrototype(object2) ? baseCreate(getPrototype(object2)) : {};
|
|
54578
|
+
return typeof object2.constructor == "function" && !isPrototype(object2) ? baseCreate(getPrototype$1(object2)) : {};
|
|
54856
54579
|
}
|
|
54857
54580
|
var _initCloneObject = initCloneObject$1;
|
|
54858
|
-
var getTag$2 = _getTag, isObjectLike$
|
|
54581
|
+
var getTag$2 = _getTag, isObjectLike$2 = isObjectLike_1;
|
|
54859
54582
|
var mapTag$1 = "[object Map]";
|
|
54860
54583
|
function baseIsMap$1(value) {
|
|
54861
|
-
return isObjectLike$
|
|
54584
|
+
return isObjectLike$2(value) && getTag$2(value) == mapTag$1;
|
|
54862
54585
|
}
|
|
54863
54586
|
var _baseIsMap = baseIsMap$1;
|
|
54864
54587
|
var baseIsMap = _baseIsMap, baseUnary$1 = _baseUnary, nodeUtil$1 = _nodeUtil.exports;
|
|
54865
54588
|
var nodeIsMap = nodeUtil$1 && nodeUtil$1.isMap;
|
|
54866
54589
|
var isMap$1 = nodeIsMap ? baseUnary$1(nodeIsMap) : baseIsMap;
|
|
54867
54590
|
var isMap_1 = isMap$1;
|
|
54868
|
-
var getTag$1 = _getTag, isObjectLike = isObjectLike_1;
|
|
54591
|
+
var getTag$1 = _getTag, isObjectLike$1 = isObjectLike_1;
|
|
54869
54592
|
var setTag$1 = "[object Set]";
|
|
54870
54593
|
function baseIsSet$1(value) {
|
|
54871
|
-
return isObjectLike(value) && getTag$1(value) == setTag$1;
|
|
54594
|
+
return isObjectLike$1(value) && getTag$1(value) == setTag$1;
|
|
54872
54595
|
}
|
|
54873
54596
|
var _baseIsSet = baseIsSet$1;
|
|
54874
54597
|
var baseIsSet = _baseIsSet, baseUnary = _baseUnary, nodeUtil = _nodeUtil.exports;
|
|
54875
54598
|
var nodeIsSet = nodeUtil && nodeUtil.isSet;
|
|
54876
54599
|
var isSet$1 = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
|
|
54877
54600
|
var isSet_1 = isSet$1;
|
|
54878
|
-
var Stack = _Stack, arrayEach = _arrayEach, assignValue = _assignValue, baseAssign = _baseAssign, baseAssignIn = _baseAssignIn, cloneBuffer = _cloneBuffer.exports, copyArray = _copyArray, copySymbols = _copySymbols, copySymbolsIn = _copySymbolsIn, getAllKeys = _getAllKeys, getAllKeysIn = _getAllKeysIn, getTag = _getTag, initCloneArray = _initCloneArray, initCloneByTag = _initCloneByTag, initCloneObject = _initCloneObject, isArray = isArray_1, isBuffer = isBuffer$3.exports, isMap = isMap_1, isObject = isObject_1, isSet = isSet_1, keys = keys_1, keysIn = keysIn_1;
|
|
54601
|
+
var Stack$1 = _Stack, arrayEach = _arrayEach, assignValue$1 = _assignValue, baseAssign = _baseAssign, baseAssignIn = _baseAssignIn, cloneBuffer = _cloneBuffer.exports, copyArray = _copyArray, copySymbols = _copySymbols, copySymbolsIn = _copySymbolsIn, getAllKeys = _getAllKeys, getAllKeysIn$1 = _getAllKeysIn, getTag = _getTag, initCloneArray = _initCloneArray, initCloneByTag = _initCloneByTag, initCloneObject = _initCloneObject, isArray$4 = isArray_1, isBuffer = isBuffer$3.exports, isMap = isMap_1, isObject$2 = isObject_1, isSet = isSet_1, keys$1 = keys_1, keysIn = keysIn_1;
|
|
54879
54602
|
var CLONE_DEEP_FLAG$1 = 1, CLONE_FLAT_FLAG = 2, CLONE_SYMBOLS_FLAG$2 = 4;
|
|
54880
|
-
var argsTag = "[object Arguments]", arrayTag = "[object Array]", boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", funcTag = "[object Function]", genTag = "[object GeneratorFunction]", mapTag = "[object Map]", numberTag = "[object Number]", objectTag = "[object Object]", regexpTag = "[object RegExp]", setTag = "[object Set]", stringTag = "[object String]", symbolTag = "[object Symbol]", weakMapTag = "[object WeakMap]";
|
|
54603
|
+
var argsTag = "[object Arguments]", arrayTag = "[object Array]", boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", funcTag = "[object Function]", genTag = "[object GeneratorFunction]", mapTag = "[object Map]", numberTag = "[object Number]", objectTag$1 = "[object Object]", regexpTag = "[object RegExp]", setTag = "[object Set]", stringTag = "[object String]", symbolTag = "[object Symbol]", weakMapTag = "[object WeakMap]";
|
|
54881
54604
|
var arrayBufferTag = "[object ArrayBuffer]", dataViewTag = "[object DataView]", float32Tag = "[object Float32Array]", float64Tag = "[object Float64Array]", int8Tag = "[object Int8Array]", int16Tag = "[object Int16Array]", int32Tag = "[object Int32Array]", uint8Tag = "[object Uint8Array]", uint8ClampedTag = "[object Uint8ClampedArray]", uint16Tag = "[object Uint16Array]", uint32Tag = "[object Uint32Array]";
|
|
54882
54605
|
var cloneableTags = {};
|
|
54883
|
-
cloneableTags[argsTag] = cloneableTags[arrayTag] = cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] = cloneableTags[boolTag] = cloneableTags[dateTag] = cloneableTags[float32Tag] = cloneableTags[float64Tag] = cloneableTags[int8Tag] = cloneableTags[int16Tag] = cloneableTags[int32Tag] = cloneableTags[mapTag] = cloneableTags[numberTag] = cloneableTags[objectTag] = cloneableTags[regexpTag] = cloneableTags[setTag] = cloneableTags[stringTag] = cloneableTags[symbolTag] = cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
|
|
54606
|
+
cloneableTags[argsTag] = cloneableTags[arrayTag] = cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] = cloneableTags[boolTag] = cloneableTags[dateTag] = cloneableTags[float32Tag] = cloneableTags[float64Tag] = cloneableTags[int8Tag] = cloneableTags[int16Tag] = cloneableTags[int32Tag] = cloneableTags[mapTag] = cloneableTags[numberTag] = cloneableTags[objectTag$1] = cloneableTags[regexpTag] = cloneableTags[setTag] = cloneableTags[stringTag] = cloneableTags[symbolTag] = cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
|
|
54884
54607
|
cloneableTags[errorTag] = cloneableTags[funcTag] = cloneableTags[weakMapTag] = false;
|
|
54885
54608
|
function baseClone$2(value, bitmask, customizer, key, object2, stack) {
|
|
54886
54609
|
var result, isDeep = bitmask & CLONE_DEEP_FLAG$1, isFlat = bitmask & CLONE_FLAT_FLAG, isFull = bitmask & CLONE_SYMBOLS_FLAG$2;
|
|
@@ -54890,10 +54613,10 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
54890
54613
|
if (result !== void 0) {
|
|
54891
54614
|
return result;
|
|
54892
54615
|
}
|
|
54893
|
-
if (!isObject(value)) {
|
|
54616
|
+
if (!isObject$2(value)) {
|
|
54894
54617
|
return value;
|
|
54895
54618
|
}
|
|
54896
|
-
var isArr = isArray(value);
|
|
54619
|
+
var isArr = isArray$4(value);
|
|
54897
54620
|
if (isArr) {
|
|
54898
54621
|
result = initCloneArray(value);
|
|
54899
54622
|
if (!isDeep) {
|
|
@@ -54904,7 +54627,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
54904
54627
|
if (isBuffer(value)) {
|
|
54905
54628
|
return cloneBuffer(value, isDeep);
|
|
54906
54629
|
}
|
|
54907
|
-
if (tag == objectTag || tag == argsTag || isFunc && !object2) {
|
|
54630
|
+
if (tag == objectTag$1 || tag == argsTag || isFunc && !object2) {
|
|
54908
54631
|
result = isFlat || isFunc ? {} : initCloneObject(value);
|
|
54909
54632
|
if (!isDeep) {
|
|
54910
54633
|
return isFlat ? copySymbolsIn(value, baseAssignIn(result, value)) : copySymbols(value, baseAssign(result, value));
|
|
@@ -54916,7 +54639,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
54916
54639
|
result = initCloneByTag(value, tag, isDeep);
|
|
54917
54640
|
}
|
|
54918
54641
|
}
|
|
54919
|
-
stack || (stack = new Stack());
|
|
54642
|
+
stack || (stack = new Stack$1());
|
|
54920
54643
|
var stacked = stack.get(value);
|
|
54921
54644
|
if (stacked) {
|
|
54922
54645
|
return stacked;
|
|
@@ -54931,14 +54654,14 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
54931
54654
|
result.set(key2, baseClone$2(subValue, bitmask, customizer, key2, value, stack));
|
|
54932
54655
|
});
|
|
54933
54656
|
}
|
|
54934
|
-
var keysFunc = isFull ? isFlat ? getAllKeysIn : getAllKeys : isFlat ? keysIn : keys;
|
|
54657
|
+
var keysFunc = isFull ? isFlat ? getAllKeysIn$1 : getAllKeys : isFlat ? keysIn : keys$1;
|
|
54935
54658
|
var props = isArr ? void 0 : keysFunc(value);
|
|
54936
54659
|
arrayEach(props || value, function(subValue, key2) {
|
|
54937
54660
|
if (props) {
|
|
54938
54661
|
key2 = subValue;
|
|
54939
54662
|
subValue = value[key2];
|
|
54940
54663
|
}
|
|
54941
|
-
assignValue(result, key2, baseClone$2(subValue, bitmask, customizer, key2, value, stack));
|
|
54664
|
+
assignValue$1(result, key2, baseClone$2(subValue, bitmask, customizer, key2, value, stack));
|
|
54942
54665
|
});
|
|
54943
54666
|
return result;
|
|
54944
54667
|
}
|
|
@@ -55014,8 +54737,9 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
55014
54737
|
__privateGet(this, _subscribers)[key].push(callback);
|
|
55015
54738
|
window.addEventListener("storage", subFunc);
|
|
55016
54739
|
return () => {
|
|
54740
|
+
var _a;
|
|
55017
54741
|
window.removeEventListener("storage", subFunc);
|
|
55018
|
-
__privateGet(this, _subscribers)[key].splice(
|
|
54742
|
+
(_a = __privateGet(this, _subscribers)[key]) == null ? void 0 : _a.splice(
|
|
55019
54743
|
__privateGet(this, _subscribers)[key].findIndex((val) => val === callback),
|
|
55020
54744
|
1
|
|
55021
54745
|
);
|
|
@@ -55025,6 +54749,37 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
55025
54749
|
_locks = new WeakMap();
|
|
55026
54750
|
_subscribers = new WeakMap();
|
|
55027
54751
|
const store = new GlobalStore();
|
|
54752
|
+
const DARA_JWT_TOKEN = "dara-jwt-token";
|
|
54753
|
+
function isEmbedded() {
|
|
54754
|
+
var _a;
|
|
54755
|
+
const frame = window.frameElement;
|
|
54756
|
+
return frame && ((_a = frame == null ? void 0 : frame.dataset) == null ? void 0 : _a.daraPageId) !== "";
|
|
54757
|
+
}
|
|
54758
|
+
function getEmbedTokenKey() {
|
|
54759
|
+
var _a;
|
|
54760
|
+
const frame = window.frameElement;
|
|
54761
|
+
return (_a = frame == null ? void 0 : frame.dataset) == null ? void 0 : _a.daraPageId;
|
|
54762
|
+
}
|
|
54763
|
+
function getEmbedToken() {
|
|
54764
|
+
const key = getEmbedTokenKey();
|
|
54765
|
+
if (!key) {
|
|
54766
|
+
return null;
|
|
54767
|
+
}
|
|
54768
|
+
return localStorage.getItem(key);
|
|
54769
|
+
}
|
|
54770
|
+
function getToken() {
|
|
54771
|
+
if (isEmbedded()) {
|
|
54772
|
+
const embedToken = getEmbedToken();
|
|
54773
|
+
return embedToken;
|
|
54774
|
+
}
|
|
54775
|
+
return localStorage.getItem(DARA_JWT_TOKEN);
|
|
54776
|
+
}
|
|
54777
|
+
function getTokenKey() {
|
|
54778
|
+
if (isEmbedded()) {
|
|
54779
|
+
return getEmbedTokenKey();
|
|
54780
|
+
}
|
|
54781
|
+
return DARA_JWT_TOKEN;
|
|
54782
|
+
}
|
|
55028
54783
|
class RequestExtrasSerializable {
|
|
55029
54784
|
constructor(extras) {
|
|
55030
54785
|
__publicField(this, "extras");
|
|
@@ -55176,6 +54931,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
55176
54931
|
} catch (e2) {
|
|
55177
54932
|
console.error("Failed to revoke session", e2);
|
|
55178
54933
|
}
|
|
54934
|
+
return null;
|
|
55179
54935
|
}
|
|
55180
54936
|
function resolveReferrer() {
|
|
55181
54937
|
if (!window.dara.base_url) {
|
|
@@ -55192,7 +54948,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
55192
54948
|
async function handleAuthErrors(res, toLogin = false, ignoreErrors = null) {
|
|
55193
54949
|
var _a;
|
|
55194
54950
|
const content = await res.clone().json();
|
|
55195
|
-
if (isAuthenticationError(content == null ? void 0 : content.detail) && !shouldIgnoreError(content == null ? void 0 : content.detail, ignoreErrors)) {
|
|
54951
|
+
if (isAuthenticationError(content == null ? void 0 : content.detail) && !shouldIgnoreError(content == null ? void 0 : content.detail, ignoreErrors != null ? ignoreErrors : [])) {
|
|
55196
54952
|
localStorage.removeItem(getTokenKey());
|
|
55197
54953
|
const queryParams = new URLSearchParams(window.location.search);
|
|
55198
54954
|
const referrer = (_a = queryParams.get("referrer")) != null ? _a : resolveReferrer();
|
|
@@ -55236,6 +54992,63 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
55236
54992
|
});
|
|
55237
54993
|
return res.ok;
|
|
55238
54994
|
}
|
|
54995
|
+
var ComponentType = /* @__PURE__ */ ((ComponentType2) => {
|
|
54996
|
+
ComponentType2["JS"] = "js";
|
|
54997
|
+
ComponentType2["PY"] = "py";
|
|
54998
|
+
return ComponentType2;
|
|
54999
|
+
})(ComponentType || {});
|
|
55000
|
+
function isRawString(instance) {
|
|
55001
|
+
return instance.name === "RawString";
|
|
55002
|
+
}
|
|
55003
|
+
function isInvalidComponent(instance) {
|
|
55004
|
+
return instance.name === "InvalidComponent";
|
|
55005
|
+
}
|
|
55006
|
+
var ConditionOperator = /* @__PURE__ */ ((ConditionOperator2) => {
|
|
55007
|
+
ConditionOperator2["EQUAL"] = "equal";
|
|
55008
|
+
ConditionOperator2["GREATER_EQUAL"] = "greater_equal";
|
|
55009
|
+
ConditionOperator2["GREATER_THAN"] = "greater_than";
|
|
55010
|
+
ConditionOperator2["LESS_EQUAL"] = "less_equal";
|
|
55011
|
+
ConditionOperator2["LESS_THAN"] = "less_than";
|
|
55012
|
+
ConditionOperator2["NOT_EQUAL"] = "not_equal";
|
|
55013
|
+
ConditionOperator2["TRUTHY"] = "truthy";
|
|
55014
|
+
return ConditionOperator2;
|
|
55015
|
+
})(ConditionOperator || {});
|
|
55016
|
+
class UserError extends Error {
|
|
55017
|
+
}
|
|
55018
|
+
function isVariable(variable) {
|
|
55019
|
+
return variable && typeof variable == "object" && variable.hasOwnProperty("uid") && variable.hasOwnProperty("__typename") && variable.__typename.includes("Variable");
|
|
55020
|
+
}
|
|
55021
|
+
function isUrlVariable(variable) {
|
|
55022
|
+
return isVariable(variable) && variable.__typename === "UrlVariable";
|
|
55023
|
+
}
|
|
55024
|
+
function isDerivedVariable(variable) {
|
|
55025
|
+
return isVariable(variable) && variable.__typename === "DerivedVariable";
|
|
55026
|
+
}
|
|
55027
|
+
function isDataVariable(variable) {
|
|
55028
|
+
return isVariable(variable) && variable.__typename === "DataVariable";
|
|
55029
|
+
}
|
|
55030
|
+
function isDerivedDataVariable(variable) {
|
|
55031
|
+
return isVariable(variable) && variable.__typename === "DerivedDataVariable";
|
|
55032
|
+
}
|
|
55033
|
+
function isLoopVariable(variable) {
|
|
55034
|
+
return variable && typeof variable == "object" && variable.hasOwnProperty("uid") && variable.hasOwnProperty("__typename") && variable.__typename === "LoopVariable";
|
|
55035
|
+
}
|
|
55036
|
+
function isResolvedDerivedVariable(value) {
|
|
55037
|
+
return value && typeof value === "object" && "values" in value && "type" in value && value.type === "derived" && "uid" in value;
|
|
55038
|
+
}
|
|
55039
|
+
function isResolvedDataVariable(value) {
|
|
55040
|
+
return value && typeof value === "object" && "filters" in value && "type" in value && value.type === "data" && "uid" in value;
|
|
55041
|
+
}
|
|
55042
|
+
function isResolvedDerivedDataVariable(value) {
|
|
55043
|
+
return value && typeof value === "object" && "filters" in value && "values" in value && "type" in value && value.type === "derived-data" && "uid" in value;
|
|
55044
|
+
}
|
|
55045
|
+
function isActionImpl(action) {
|
|
55046
|
+
return action && typeof action === "object" && action.__typename === "ActionImpl";
|
|
55047
|
+
}
|
|
55048
|
+
function isAnnotatedAction(action) {
|
|
55049
|
+
return action && "uid" in action && "definition_uid" in action && "dynamic_kwargs" in action;
|
|
55050
|
+
}
|
|
55051
|
+
const isPyComponent = (value) => lodash$2.exports.isObject(value) && "props" in value && lodash$2.exports.isObject(value.props) && "func_name" in value.props && "dynamic_kwargs" in value.props;
|
|
55239
55052
|
function commonjsRequire(path) {
|
|
55240
55053
|
throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
55241
55054
|
}
|
|
@@ -56278,8 +56091,6 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
56278
56091
|
await validateResponse(res, `Failed to cancel task with id: ${taskId}`);
|
|
56279
56092
|
return true;
|
|
56280
56093
|
}
|
|
56281
|
-
const directionCtx = React.createContext({ direction: "row" });
|
|
56282
|
-
const importersCtx = React.createContext({});
|
|
56283
56094
|
const dataRegistry = /* @__PURE__ */ new Map();
|
|
56284
56095
|
const atomRegistry = /* @__PURE__ */ new Map();
|
|
56285
56096
|
const atomFamilyRegistry = /* @__PURE__ */ new Map();
|
|
@@ -56288,10 +56099,14 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
56288
56099
|
const selectorFamilyMembersRegistry = /* @__PURE__ */ new Map();
|
|
56289
56100
|
const depsRegistry = /* @__PURE__ */ new Map();
|
|
56290
56101
|
function getRegistryKey(variable, type) {
|
|
56291
|
-
|
|
56102
|
+
var _a;
|
|
56103
|
+
let extras = "";
|
|
56104
|
+
if (isDerivedVariable(variable)) {
|
|
56105
|
+
extras = (_a = variable.loop_instance_uid) != null ? _a : "";
|
|
56106
|
+
}
|
|
56107
|
+
return `${getUniqueIdentifier(variable)}-${type}-${extras}`;
|
|
56292
56108
|
}
|
|
56293
56109
|
function isRegistered(variable) {
|
|
56294
|
-
var _a;
|
|
56295
56110
|
if (!isVariable(variable)) {
|
|
56296
56111
|
return false;
|
|
56297
56112
|
}
|
|
@@ -56301,7 +56116,10 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
56301
56116
|
return true;
|
|
56302
56117
|
}
|
|
56303
56118
|
const family = atomFamilyRegistry.get(variable.uid);
|
|
56304
|
-
|
|
56119
|
+
if (!family) {
|
|
56120
|
+
return false;
|
|
56121
|
+
}
|
|
56122
|
+
return atomFamilyMembersRegistry.get(family).size > 0;
|
|
56305
56123
|
}
|
|
56306
56124
|
case "UrlVariable":
|
|
56307
56125
|
case "DataVariable":
|
|
@@ -56323,7 +56141,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
56323
56141
|
const tasksRef = React__namespace.useRef(tasks != null ? tasks : /* @__PURE__ */ new Set());
|
|
56324
56142
|
const mapRef = React__namespace.useRef(variableTaskMap != null ? variableTaskMap : /* @__PURE__ */ new Map());
|
|
56325
56143
|
const extras = useRequestExtras();
|
|
56326
|
-
const extrasRef = React__namespace.useRef();
|
|
56144
|
+
const extrasRef = React__namespace.useRef(extras);
|
|
56327
56145
|
extrasRef.current = extras;
|
|
56328
56146
|
const refreshSelector = Recoil_index_31(({ set: set2 }) => (key) => {
|
|
56329
56147
|
set2(atomRegistry.get(key), (prev) => ({ ...prev, inc: prev.inc + 1 }));
|
|
@@ -56336,7 +56154,9 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
56336
56154
|
if (taskToCancel) {
|
|
56337
56155
|
cancelTask(runningTask, extrasRef.current);
|
|
56338
56156
|
tasksRef.current.delete(runningTask);
|
|
56339
|
-
|
|
56157
|
+
if (taskToCancel.triggerKey) {
|
|
56158
|
+
refreshSelector(taskToCancel.triggerKey);
|
|
56159
|
+
}
|
|
56340
56160
|
}
|
|
56341
56161
|
}
|
|
56342
56162
|
}
|
|
@@ -56366,17 +56186,27 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
56366
56186
|
const hasRunningTasks = React__namespace.useCallback(() => {
|
|
56367
56187
|
return tasksRef.current.size > 0;
|
|
56368
56188
|
}, []);
|
|
56369
|
-
|
|
56189
|
+
const value = React__namespace.useMemo(
|
|
56190
|
+
() => ({
|
|
56191
|
+
cleanupRunningTasks,
|
|
56192
|
+
endTask,
|
|
56193
|
+
getVariableTasks,
|
|
56194
|
+
hasRunningTasks,
|
|
56195
|
+
startTask
|
|
56196
|
+
}),
|
|
56197
|
+
[cleanupRunningTasks, endTask, getVariableTasks, hasRunningTasks, startTask]
|
|
56198
|
+
);
|
|
56199
|
+
return /* @__PURE__ */ React__namespace.createElement(GlobalTaskCtx.Provider, { value }, children);
|
|
56370
56200
|
}
|
|
56371
56201
|
function useTaskContext() {
|
|
56372
56202
|
const taskCtx = React__namespace.useContext(GlobalTaskCtx);
|
|
56373
|
-
if (taskCtx
|
|
56203
|
+
if (!taskCtx) {
|
|
56374
56204
|
throw new Error("useTaskContext must be used within GlobalTaskProvider");
|
|
56375
56205
|
}
|
|
56376
56206
|
return taskCtx;
|
|
56377
56207
|
}
|
|
56378
56208
|
const variablesCtx = React__namespace.createContext(null);
|
|
56379
|
-
const websocketCtx = React.createContext({});
|
|
56209
|
+
const websocketCtx = React.createContext({ client: void 0 });
|
|
56380
56210
|
const registriesCtx = React.createContext({
|
|
56381
56211
|
actionRegistry: {},
|
|
56382
56212
|
componentRegistry: {},
|
|
@@ -56384,6 +56214,373 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
56384
56214
|
});
|
|
56385
56215
|
const displayCtx = React.createContext({ component: null, direction: "horizontal" });
|
|
56386
56216
|
const fallbackCtx = React__namespace.createContext(null);
|
|
56217
|
+
function useFallbackCtx() {
|
|
56218
|
+
const ctx = React__namespace.useContext(fallbackCtx);
|
|
56219
|
+
if (!ctx) {
|
|
56220
|
+
throw new Error("useFallback must be used within FallbackCtx");
|
|
56221
|
+
}
|
|
56222
|
+
return ctx;
|
|
56223
|
+
}
|
|
56224
|
+
function cleanSessionCache(sessionToken) {
|
|
56225
|
+
for (const storage of [sessionStorage, localStorage]) {
|
|
56226
|
+
const keys2 = Object.keys(storage);
|
|
56227
|
+
keys2.forEach((key) => {
|
|
56228
|
+
if (key.startsWith("dara-session") && !key.startsWith(`dara-session-${sessionToken}`)) {
|
|
56229
|
+
storage.removeItem(key);
|
|
56230
|
+
}
|
|
56231
|
+
});
|
|
56232
|
+
}
|
|
56233
|
+
}
|
|
56234
|
+
function isJsComponent(component) {
|
|
56235
|
+
return component.type === ComponentType.JS;
|
|
56236
|
+
}
|
|
56237
|
+
function isNull(value) {
|
|
56238
|
+
return value === null;
|
|
56239
|
+
}
|
|
56240
|
+
var isNull_1 = isNull;
|
|
56241
|
+
var Stack = _Stack, baseIsEqual$1 = _baseIsEqual;
|
|
56242
|
+
var COMPARE_PARTIAL_FLAG$1 = 1, COMPARE_UNORDERED_FLAG$1 = 2;
|
|
56243
|
+
function baseIsMatch$1(object2, source, matchData, customizer) {
|
|
56244
|
+
var index2 = matchData.length, length = index2, noCustomizer = !customizer;
|
|
56245
|
+
if (object2 == null) {
|
|
56246
|
+
return !length;
|
|
56247
|
+
}
|
|
56248
|
+
object2 = Object(object2);
|
|
56249
|
+
while (index2--) {
|
|
56250
|
+
var data = matchData[index2];
|
|
56251
|
+
if (noCustomizer && data[2] ? data[1] !== object2[data[0]] : !(data[0] in object2)) {
|
|
56252
|
+
return false;
|
|
56253
|
+
}
|
|
56254
|
+
}
|
|
56255
|
+
while (++index2 < length) {
|
|
56256
|
+
data = matchData[index2];
|
|
56257
|
+
var key = data[0], objValue = object2[key], srcValue = data[1];
|
|
56258
|
+
if (noCustomizer && data[2]) {
|
|
56259
|
+
if (objValue === void 0 && !(key in object2)) {
|
|
56260
|
+
return false;
|
|
56261
|
+
}
|
|
56262
|
+
} else {
|
|
56263
|
+
var stack = new Stack();
|
|
56264
|
+
if (customizer) {
|
|
56265
|
+
var result = customizer(objValue, srcValue, key, object2, source, stack);
|
|
56266
|
+
}
|
|
56267
|
+
if (!(result === void 0 ? baseIsEqual$1(srcValue, objValue, COMPARE_PARTIAL_FLAG$1 | COMPARE_UNORDERED_FLAG$1, customizer, stack) : result)) {
|
|
56268
|
+
return false;
|
|
56269
|
+
}
|
|
56270
|
+
}
|
|
56271
|
+
}
|
|
56272
|
+
return true;
|
|
56273
|
+
}
|
|
56274
|
+
var _baseIsMatch = baseIsMatch$1;
|
|
56275
|
+
var isObject$1 = isObject_1;
|
|
56276
|
+
function isStrictComparable$2(value) {
|
|
56277
|
+
return value === value && !isObject$1(value);
|
|
56278
|
+
}
|
|
56279
|
+
var _isStrictComparable = isStrictComparable$2;
|
|
56280
|
+
var isStrictComparable$1 = _isStrictComparable, keys = keys_1;
|
|
56281
|
+
function getMatchData$1(object2) {
|
|
56282
|
+
var result = keys(object2), length = result.length;
|
|
56283
|
+
while (length--) {
|
|
56284
|
+
var key = result[length], value = object2[key];
|
|
56285
|
+
result[length] = [key, value, isStrictComparable$1(value)];
|
|
56286
|
+
}
|
|
56287
|
+
return result;
|
|
56288
|
+
}
|
|
56289
|
+
var _getMatchData = getMatchData$1;
|
|
56290
|
+
function matchesStrictComparable$2(key, srcValue) {
|
|
56291
|
+
return function(object2) {
|
|
56292
|
+
if (object2 == null) {
|
|
56293
|
+
return false;
|
|
56294
|
+
}
|
|
56295
|
+
return object2[key] === srcValue && (srcValue !== void 0 || key in Object(object2));
|
|
56296
|
+
};
|
|
56297
|
+
}
|
|
56298
|
+
var _matchesStrictComparable = matchesStrictComparable$2;
|
|
56299
|
+
var baseIsMatch = _baseIsMatch, getMatchData = _getMatchData, matchesStrictComparable$1 = _matchesStrictComparable;
|
|
56300
|
+
function baseMatches$1(source) {
|
|
56301
|
+
var matchData = getMatchData(source);
|
|
56302
|
+
if (matchData.length == 1 && matchData[0][2]) {
|
|
56303
|
+
return matchesStrictComparable$1(matchData[0][0], matchData[0][1]);
|
|
56304
|
+
}
|
|
56305
|
+
return function(object2) {
|
|
56306
|
+
return object2 === source || baseIsMatch(object2, source, matchData);
|
|
56307
|
+
};
|
|
56308
|
+
}
|
|
56309
|
+
var _baseMatches = baseMatches$1;
|
|
56310
|
+
var isArray$3 = isArray_1, isSymbol$1 = isSymbol_1;
|
|
56311
|
+
var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/;
|
|
56312
|
+
function isKey$3(value, object2) {
|
|
56313
|
+
if (isArray$3(value)) {
|
|
56314
|
+
return false;
|
|
56315
|
+
}
|
|
56316
|
+
var type = typeof value;
|
|
56317
|
+
if (type == "number" || type == "symbol" || type == "boolean" || value == null || isSymbol$1(value)) {
|
|
56318
|
+
return true;
|
|
56319
|
+
}
|
|
56320
|
+
return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object2 != null && value in Object(object2);
|
|
56321
|
+
}
|
|
56322
|
+
var _isKey = isKey$3;
|
|
56323
|
+
var MapCache = _MapCache;
|
|
56324
|
+
var FUNC_ERROR_TEXT$1 = "Expected a function";
|
|
56325
|
+
function memoize$1(func, resolver) {
|
|
56326
|
+
if (typeof func != "function" || resolver != null && typeof resolver != "function") {
|
|
56327
|
+
throw new TypeError(FUNC_ERROR_TEXT$1);
|
|
56328
|
+
}
|
|
56329
|
+
var memoized = function() {
|
|
56330
|
+
var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache2 = memoized.cache;
|
|
56331
|
+
if (cache2.has(key)) {
|
|
56332
|
+
return cache2.get(key);
|
|
56333
|
+
}
|
|
56334
|
+
var result = func.apply(this, args);
|
|
56335
|
+
memoized.cache = cache2.set(key, result) || cache2;
|
|
56336
|
+
return result;
|
|
56337
|
+
};
|
|
56338
|
+
memoized.cache = new (memoize$1.Cache || MapCache)();
|
|
56339
|
+
return memoized;
|
|
56340
|
+
}
|
|
56341
|
+
memoize$1.Cache = MapCache;
|
|
56342
|
+
var memoize_1 = memoize$1;
|
|
56343
|
+
var memoize = memoize_1;
|
|
56344
|
+
var MAX_MEMOIZE_SIZE = 500;
|
|
56345
|
+
function memoizeCapped$1(func) {
|
|
56346
|
+
var result = memoize(func, function(key) {
|
|
56347
|
+
if (cache2.size === MAX_MEMOIZE_SIZE) {
|
|
56348
|
+
cache2.clear();
|
|
56349
|
+
}
|
|
56350
|
+
return key;
|
|
56351
|
+
});
|
|
56352
|
+
var cache2 = result.cache;
|
|
56353
|
+
return result;
|
|
56354
|
+
}
|
|
56355
|
+
var _memoizeCapped = memoizeCapped$1;
|
|
56356
|
+
var memoizeCapped = _memoizeCapped;
|
|
56357
|
+
var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
|
|
56358
|
+
var reEscapeChar = /\\(\\)?/g;
|
|
56359
|
+
var stringToPath$1 = memoizeCapped(function(string2) {
|
|
56360
|
+
var result = [];
|
|
56361
|
+
if (string2.charCodeAt(0) === 46) {
|
|
56362
|
+
result.push("");
|
|
56363
|
+
}
|
|
56364
|
+
string2.replace(rePropName, function(match2, number2, quote, subString) {
|
|
56365
|
+
result.push(quote ? subString.replace(reEscapeChar, "$1") : number2 || match2);
|
|
56366
|
+
});
|
|
56367
|
+
return result;
|
|
56368
|
+
});
|
|
56369
|
+
var _stringToPath = stringToPath$1;
|
|
56370
|
+
var isArray$2 = isArray_1, isKey$2 = _isKey, stringToPath = _stringToPath, toString = toString_1;
|
|
56371
|
+
function castPath$4(value, object2) {
|
|
56372
|
+
if (isArray$2(value)) {
|
|
56373
|
+
return value;
|
|
56374
|
+
}
|
|
56375
|
+
return isKey$2(value, object2) ? [value] : stringToPath(toString(value));
|
|
56376
|
+
}
|
|
56377
|
+
var _castPath = castPath$4;
|
|
56378
|
+
var isSymbol = isSymbol_1;
|
|
56379
|
+
var INFINITY = 1 / 0;
|
|
56380
|
+
function toKey$5(value) {
|
|
56381
|
+
if (typeof value == "string" || isSymbol(value)) {
|
|
56382
|
+
return value;
|
|
56383
|
+
}
|
|
56384
|
+
var result = value + "";
|
|
56385
|
+
return result == "0" && 1 / value == -INFINITY ? "-0" : result;
|
|
56386
|
+
}
|
|
56387
|
+
var _toKey = toKey$5;
|
|
56388
|
+
var castPath$3 = _castPath, toKey$4 = _toKey;
|
|
56389
|
+
function baseGet$3(object2, path) {
|
|
56390
|
+
path = castPath$3(path, object2);
|
|
56391
|
+
var index2 = 0, length = path.length;
|
|
56392
|
+
while (object2 != null && index2 < length) {
|
|
56393
|
+
object2 = object2[toKey$4(path[index2++])];
|
|
56394
|
+
}
|
|
56395
|
+
return index2 && index2 == length ? object2 : void 0;
|
|
56396
|
+
}
|
|
56397
|
+
var _baseGet = baseGet$3;
|
|
56398
|
+
var baseGet$2 = _baseGet;
|
|
56399
|
+
function get$1(object2, path, defaultValue) {
|
|
56400
|
+
var result = object2 == null ? void 0 : baseGet$2(object2, path);
|
|
56401
|
+
return result === void 0 ? defaultValue : result;
|
|
56402
|
+
}
|
|
56403
|
+
var get_1 = get$1;
|
|
56404
|
+
function baseHasIn$1(object2, key) {
|
|
56405
|
+
return object2 != null && key in Object(object2);
|
|
56406
|
+
}
|
|
56407
|
+
var _baseHasIn = baseHasIn$1;
|
|
56408
|
+
var castPath$2 = _castPath, isArguments = isArguments_1, isArray$1 = isArray_1, isIndex$1 = _isIndex, isLength = isLength_1, toKey$3 = _toKey;
|
|
56409
|
+
function hasPath$1(object2, path, hasFunc) {
|
|
56410
|
+
path = castPath$2(path, object2);
|
|
56411
|
+
var index2 = -1, length = path.length, result = false;
|
|
56412
|
+
while (++index2 < length) {
|
|
56413
|
+
var key = toKey$3(path[index2]);
|
|
56414
|
+
if (!(result = object2 != null && hasFunc(object2, key))) {
|
|
56415
|
+
break;
|
|
56416
|
+
}
|
|
56417
|
+
object2 = object2[key];
|
|
56418
|
+
}
|
|
56419
|
+
if (result || ++index2 != length) {
|
|
56420
|
+
return result;
|
|
56421
|
+
}
|
|
56422
|
+
length = object2 == null ? 0 : object2.length;
|
|
56423
|
+
return !!length && isLength(length) && isIndex$1(key, length) && (isArray$1(object2) || isArguments(object2));
|
|
56424
|
+
}
|
|
56425
|
+
var _hasPath = hasPath$1;
|
|
56426
|
+
var baseHasIn = _baseHasIn, hasPath = _hasPath;
|
|
56427
|
+
function hasIn$1(object2, path) {
|
|
56428
|
+
return object2 != null && hasPath(object2, path, baseHasIn);
|
|
56429
|
+
}
|
|
56430
|
+
var hasIn_1 = hasIn$1;
|
|
56431
|
+
var baseIsEqual = _baseIsEqual, get = get_1, hasIn = hasIn_1, isKey$1 = _isKey, isStrictComparable = _isStrictComparable, matchesStrictComparable = _matchesStrictComparable, toKey$2 = _toKey;
|
|
56432
|
+
var COMPARE_PARTIAL_FLAG = 1, COMPARE_UNORDERED_FLAG = 2;
|
|
56433
|
+
function baseMatchesProperty$1(path, srcValue) {
|
|
56434
|
+
if (isKey$1(path) && isStrictComparable(srcValue)) {
|
|
56435
|
+
return matchesStrictComparable(toKey$2(path), srcValue);
|
|
56436
|
+
}
|
|
56437
|
+
return function(object2) {
|
|
56438
|
+
var objValue = get(object2, path);
|
|
56439
|
+
return objValue === void 0 && objValue === srcValue ? hasIn(object2, path) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
|
|
56440
|
+
};
|
|
56441
|
+
}
|
|
56442
|
+
var _baseMatchesProperty = baseMatchesProperty$1;
|
|
56443
|
+
function baseProperty$1(key) {
|
|
56444
|
+
return function(object2) {
|
|
56445
|
+
return object2 == null ? void 0 : object2[key];
|
|
56446
|
+
};
|
|
56447
|
+
}
|
|
56448
|
+
var _baseProperty = baseProperty$1;
|
|
56449
|
+
var baseGet$1 = _baseGet;
|
|
56450
|
+
function basePropertyDeep$1(path) {
|
|
56451
|
+
return function(object2) {
|
|
56452
|
+
return baseGet$1(object2, path);
|
|
56453
|
+
};
|
|
56454
|
+
}
|
|
56455
|
+
var _basePropertyDeep = basePropertyDeep$1;
|
|
56456
|
+
var baseProperty = _baseProperty, basePropertyDeep = _basePropertyDeep, isKey = _isKey, toKey$1 = _toKey;
|
|
56457
|
+
function property$1(path) {
|
|
56458
|
+
return isKey(path) ? baseProperty(toKey$1(path)) : basePropertyDeep(path);
|
|
56459
|
+
}
|
|
56460
|
+
var property_1 = property$1;
|
|
56461
|
+
var baseMatches = _baseMatches, baseMatchesProperty = _baseMatchesProperty, identity = identity_1, isArray = isArray_1, property = property_1;
|
|
56462
|
+
function baseIteratee$2(value) {
|
|
56463
|
+
if (typeof value == "function") {
|
|
56464
|
+
return value;
|
|
56465
|
+
}
|
|
56466
|
+
if (value == null) {
|
|
56467
|
+
return identity;
|
|
56468
|
+
}
|
|
56469
|
+
if (typeof value == "object") {
|
|
56470
|
+
return isArray(value) ? baseMatchesProperty(value[0], value[1]) : baseMatches(value);
|
|
56471
|
+
}
|
|
56472
|
+
return property(value);
|
|
56473
|
+
}
|
|
56474
|
+
var _baseIteratee = baseIteratee$2;
|
|
56475
|
+
var FUNC_ERROR_TEXT = "Expected a function";
|
|
56476
|
+
function negate$1(predicate) {
|
|
56477
|
+
if (typeof predicate != "function") {
|
|
56478
|
+
throw new TypeError(FUNC_ERROR_TEXT);
|
|
56479
|
+
}
|
|
56480
|
+
return function() {
|
|
56481
|
+
var args = arguments;
|
|
56482
|
+
switch (args.length) {
|
|
56483
|
+
case 0:
|
|
56484
|
+
return !predicate.call(this);
|
|
56485
|
+
case 1:
|
|
56486
|
+
return !predicate.call(this, args[0]);
|
|
56487
|
+
case 2:
|
|
56488
|
+
return !predicate.call(this, args[0], args[1]);
|
|
56489
|
+
case 3:
|
|
56490
|
+
return !predicate.call(this, args[0], args[1], args[2]);
|
|
56491
|
+
}
|
|
56492
|
+
return !predicate.apply(this, args);
|
|
56493
|
+
};
|
|
56494
|
+
}
|
|
56495
|
+
var negate_1 = negate$1;
|
|
56496
|
+
var assignValue = _assignValue, castPath$1 = _castPath, isIndex = _isIndex, isObject = isObject_1, toKey = _toKey;
|
|
56497
|
+
function baseSet$2(object2, path, value, customizer) {
|
|
56498
|
+
if (!isObject(object2)) {
|
|
56499
|
+
return object2;
|
|
56500
|
+
}
|
|
56501
|
+
path = castPath$1(path, object2);
|
|
56502
|
+
var index2 = -1, length = path.length, lastIndex = length - 1, nested = object2;
|
|
56503
|
+
while (nested != null && ++index2 < length) {
|
|
56504
|
+
var key = toKey(path[index2]), newValue = value;
|
|
56505
|
+
if (key === "__proto__" || key === "constructor" || key === "prototype") {
|
|
56506
|
+
return object2;
|
|
56507
|
+
}
|
|
56508
|
+
if (index2 != lastIndex) {
|
|
56509
|
+
var objValue = nested[key];
|
|
56510
|
+
newValue = customizer ? customizer(objValue, key, nested) : void 0;
|
|
56511
|
+
if (newValue === void 0) {
|
|
56512
|
+
newValue = isObject(objValue) ? objValue : isIndex(path[index2 + 1]) ? [] : {};
|
|
56513
|
+
}
|
|
56514
|
+
}
|
|
56515
|
+
assignValue(nested, key, newValue);
|
|
56516
|
+
nested = nested[key];
|
|
56517
|
+
}
|
|
56518
|
+
return object2;
|
|
56519
|
+
}
|
|
56520
|
+
var _baseSet = baseSet$2;
|
|
56521
|
+
var baseGet = _baseGet, baseSet$1 = _baseSet, castPath = _castPath;
|
|
56522
|
+
function basePickBy$1(object2, paths, predicate) {
|
|
56523
|
+
var index2 = -1, length = paths.length, result = {};
|
|
56524
|
+
while (++index2 < length) {
|
|
56525
|
+
var path = paths[index2], value = baseGet(object2, path);
|
|
56526
|
+
if (predicate(value, path)) {
|
|
56527
|
+
baseSet$1(result, castPath(path, object2), value);
|
|
56528
|
+
}
|
|
56529
|
+
}
|
|
56530
|
+
return result;
|
|
56531
|
+
}
|
|
56532
|
+
var _basePickBy = basePickBy$1;
|
|
56533
|
+
var arrayMap = _arrayMap, baseIteratee$1 = _baseIteratee, basePickBy = _basePickBy, getAllKeysIn = _getAllKeysIn;
|
|
56534
|
+
function pickBy$1(object2, predicate) {
|
|
56535
|
+
if (object2 == null) {
|
|
56536
|
+
return {};
|
|
56537
|
+
}
|
|
56538
|
+
var props = arrayMap(getAllKeysIn(object2), function(prop) {
|
|
56539
|
+
return [prop];
|
|
56540
|
+
});
|
|
56541
|
+
predicate = baseIteratee$1(predicate);
|
|
56542
|
+
return basePickBy(object2, props, function(value, path) {
|
|
56543
|
+
return predicate(value, path[0]);
|
|
56544
|
+
});
|
|
56545
|
+
}
|
|
56546
|
+
var pickBy_1 = pickBy$1;
|
|
56547
|
+
var baseIteratee = _baseIteratee, negate = negate_1, pickBy = pickBy_1;
|
|
56548
|
+
function omitBy(object2, predicate) {
|
|
56549
|
+
return pickBy(object2, negate(baseIteratee(predicate)));
|
|
56550
|
+
}
|
|
56551
|
+
var omitBy_1 = omitBy;
|
|
56552
|
+
function isTheme(configTheme) {
|
|
56553
|
+
return typeof configTheme !== "string";
|
|
56554
|
+
}
|
|
56555
|
+
function resolveTheme(configTheme, baseTheme) {
|
|
56556
|
+
if (!configTheme || configTheme === "light") {
|
|
56557
|
+
return theme;
|
|
56558
|
+
}
|
|
56559
|
+
if (configTheme === "dark") {
|
|
56560
|
+
return darkTheme;
|
|
56561
|
+
}
|
|
56562
|
+
if (isTheme(configTheme)) {
|
|
56563
|
+
const original = baseTheme === "dark" ? darkTheme : theme;
|
|
56564
|
+
return {
|
|
56565
|
+
...original,
|
|
56566
|
+
...omitBy_1(configTheme, isNull_1),
|
|
56567
|
+
colors: {
|
|
56568
|
+
...original.colors,
|
|
56569
|
+
...omitBy_1(configTheme.colors, isNull_1)
|
|
56570
|
+
},
|
|
56571
|
+
font: {
|
|
56572
|
+
...original.font,
|
|
56573
|
+
...omitBy_1(configTheme.font, isNull_1)
|
|
56574
|
+
},
|
|
56575
|
+
shadow: {
|
|
56576
|
+
...original.shadow,
|
|
56577
|
+
...omitBy_1(configTheme.shadow, isNull_1)
|
|
56578
|
+
}
|
|
56579
|
+
};
|
|
56580
|
+
}
|
|
56581
|
+
console.warn("No valid theme was found. Defaulting to light theme.");
|
|
56582
|
+
return theme;
|
|
56583
|
+
}
|
|
56387
56584
|
class EventBus {
|
|
56388
56585
|
constructor(parentBus) {
|
|
56389
56586
|
__privateAdd(this, _events$, new Subject());
|
|
@@ -56535,7 +56732,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
56535
56732
|
failure: failure$1,
|
|
56536
56733
|
success: success$1
|
|
56537
56734
|
} = Refine_Checkers$1;
|
|
56538
|
-
function isPlainObject(value) {
|
|
56735
|
+
function isPlainObject$1(value) {
|
|
56539
56736
|
if (Object.prototype.toString.call(value) !== "[object Object]") {
|
|
56540
56737
|
return false;
|
|
56541
56738
|
}
|
|
@@ -56586,7 +56783,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
56586
56783
|
}
|
|
56587
56784
|
function dict(valueChecker) {
|
|
56588
56785
|
return (value, path = new Path$1()) => {
|
|
56589
|
-
if (typeof value !== "object" || value === null || !isPlainObject(value)) {
|
|
56786
|
+
if (typeof value !== "object" || value === null || !isPlainObject$1(value)) {
|
|
56590
56787
|
return failure$1("value is not an object", path);
|
|
56591
56788
|
}
|
|
56592
56789
|
const out = {};
|
|
@@ -56626,7 +56823,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
56626
56823
|
function object(checkers) {
|
|
56627
56824
|
const checkerProperties = Object.keys(checkers);
|
|
56628
56825
|
return (value, path = new Path$1()) => {
|
|
56629
|
-
if (typeof value !== "object" || value === null || !isPlainObject(value)) {
|
|
56826
|
+
if (typeof value !== "object" || value === null || !isPlainObject$1(value)) {
|
|
56630
56827
|
return failure$1("value is not an object", path);
|
|
56631
56828
|
}
|
|
56632
56829
|
const out = {};
|
|
@@ -56657,7 +56854,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
56657
56854
|
return success$1(out, warnings);
|
|
56658
56855
|
};
|
|
56659
56856
|
}
|
|
56660
|
-
function set(checker) {
|
|
56857
|
+
function set$1(checker) {
|
|
56661
56858
|
return (value, path = new Path$1()) => {
|
|
56662
56859
|
if (!(value instanceof Set)) {
|
|
56663
56860
|
return failure$1("value is not a Set", path);
|
|
@@ -56727,7 +56924,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
56727
56924
|
object,
|
|
56728
56925
|
optional,
|
|
56729
56926
|
dict,
|
|
56730
|
-
set,
|
|
56927
|
+
set: set$1,
|
|
56731
56928
|
map,
|
|
56732
56929
|
writableArray,
|
|
56733
56930
|
writableDict,
|
|
@@ -57009,7 +57206,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
57009
57206
|
map: map$1,
|
|
57010
57207
|
object: object$1,
|
|
57011
57208
|
optional: optional$1,
|
|
57012
|
-
set: set$1,
|
|
57209
|
+
set: set$1$1,
|
|
57013
57210
|
tuple: tuple$1,
|
|
57014
57211
|
writableArray: writableArray$1,
|
|
57015
57212
|
writableDict: writableDict$1,
|
|
@@ -57070,7 +57267,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
57070
57267
|
dict: dict$1,
|
|
57071
57268
|
object: object$1,
|
|
57072
57269
|
optional: optional$1,
|
|
57073
|
-
set: set$1,
|
|
57270
|
+
set: set$1$1,
|
|
57074
57271
|
map: map$1,
|
|
57075
57272
|
writableArray: writableArray$1,
|
|
57076
57273
|
writableDict: writableDict$1,
|
|
@@ -57150,6 +57347,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
57150
57347
|
__privateSet(this, _socketUrl, _socketUrl2);
|
|
57151
57348
|
__privateSet(this, _reconnectCount, 0);
|
|
57152
57349
|
__privateSet(this, _pingInterval, null);
|
|
57350
|
+
this.channel = Promise.resolve("");
|
|
57153
57351
|
this.socket = this.initialize();
|
|
57154
57352
|
}
|
|
57155
57353
|
initialize(isReconnect = false) {
|
|
@@ -57209,7 +57407,9 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
57209
57407
|
}, interAttemptTimeout);
|
|
57210
57408
|
}
|
|
57211
57409
|
close() {
|
|
57212
|
-
|
|
57410
|
+
if (__privateGet(this, _pingInterval)) {
|
|
57411
|
+
clearInterval(__privateGet(this, _pingInterval));
|
|
57412
|
+
}
|
|
57213
57413
|
this.socket.removeEventListener("close", this.closeHandler);
|
|
57214
57414
|
this.socket.close();
|
|
57215
57415
|
}
|
|
@@ -57236,7 +57436,9 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
57236
57436
|
}
|
|
57237
57437
|
taskStatusUpdates$(...task_ids) {
|
|
57238
57438
|
return this.messages$.pipe(
|
|
57239
|
-
filter(
|
|
57439
|
+
filter(
|
|
57440
|
+
(msg) => isTaskNotification(msg) && task_ids.includes(msg.message.task_id)
|
|
57441
|
+
),
|
|
57240
57442
|
map$2((msg) => msg.message.status)
|
|
57241
57443
|
);
|
|
57242
57444
|
}
|
|
@@ -57350,6 +57552,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
57350
57552
|
);
|
|
57351
57553
|
return Promise.resolve(null);
|
|
57352
57554
|
}
|
|
57555
|
+
return Promise.resolve(null);
|
|
57353
57556
|
}
|
|
57354
57557
|
}
|
|
57355
57558
|
_pingInterval = new WeakMap();
|
|
@@ -57626,7 +57829,10 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
57626
57829
|
if (isResolvedDataVariable(value)) {
|
|
57627
57830
|
return value;
|
|
57628
57831
|
}
|
|
57629
|
-
|
|
57832
|
+
if (Recoil_index_2(value)) {
|
|
57833
|
+
return getter(value);
|
|
57834
|
+
}
|
|
57835
|
+
return value;
|
|
57630
57836
|
}
|
|
57631
57837
|
function getDeps(values, deps) {
|
|
57632
57838
|
return values.map((val, idx) => {
|
|
@@ -57643,15 +57849,17 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
57643
57849
|
}
|
|
57644
57850
|
const values = resolvedVariables.map((v2) => resolveValue$1(v2, get2));
|
|
57645
57851
|
const depsValues = getDeps(values);
|
|
57646
|
-
const variableValueMap = variables.reduce(
|
|
57647
|
-
|
|
57648
|
-
|
|
57649
|
-
|
|
57852
|
+
const variableValueMap = variables.reduce((acc, v2, idx) => {
|
|
57853
|
+
if (!isVariable(v2)) {
|
|
57854
|
+
return acc;
|
|
57855
|
+
}
|
|
57856
|
+
return acc.set(getUniqueIdentifier(v2), depsValues[idx]);
|
|
57857
|
+
}, /* @__PURE__ */ new Map());
|
|
57650
57858
|
let recalculateForced = false;
|
|
57651
57859
|
let wasTriggered = false;
|
|
57652
57860
|
let wasTriggeredItself = false;
|
|
57653
57861
|
const previousEntry = depsRegistry.get(key);
|
|
57654
|
-
const relevantValues = deps.map((dep) => variableValueMap.get(getUniqueIdentifier(dep))).concat(triggers.map((trigger) => trigger.inc));
|
|
57862
|
+
const relevantValues = deps.filter(isVariable).map((dep) => variableValueMap.get(getUniqueIdentifier(dep))).concat(triggers.map((trigger) => trigger.inc));
|
|
57655
57863
|
if (previousEntry) {
|
|
57656
57864
|
const areArgsTheSame = lodash$2.exports.isEqual(previousEntry.args, relevantValues);
|
|
57657
57865
|
if (areArgsTheSame) {
|
|
@@ -57695,9 +57903,12 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
57695
57903
|
eviction: "most-recent"
|
|
57696
57904
|
},
|
|
57697
57905
|
get: (extrasSerializable) => async ({ get: get2 }) => {
|
|
57698
|
-
const resolvedVariables = variable.variables.map(
|
|
57699
|
-
(v2)
|
|
57700
|
-
|
|
57906
|
+
const resolvedVariables = variable.variables.map((v2) => {
|
|
57907
|
+
if (!isVariable(v2)) {
|
|
57908
|
+
return v2;
|
|
57909
|
+
}
|
|
57910
|
+
return resolveVariable(v2, wsClient, taskContext, currentExtras);
|
|
57911
|
+
});
|
|
57701
57912
|
const selfTrigger = get2(getOrRegisterTrigger(variable));
|
|
57702
57913
|
const { extras } = extrasSerializable;
|
|
57703
57914
|
const selectorKey = key + extrasSerializable.toJSON();
|
|
@@ -57855,7 +58066,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
57855
58066
|
return cloneDeep_1(obj);
|
|
57856
58067
|
}
|
|
57857
58068
|
const cloned = clone_1(obj);
|
|
57858
|
-
const
|
|
58069
|
+
const key = nested[0];
|
|
57859
58070
|
if (!Object.keys(obj).includes(key)) {
|
|
57860
58071
|
cloned[key] = {};
|
|
57861
58072
|
}
|
|
@@ -57997,7 +58208,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
57997
58208
|
};
|
|
57998
58209
|
}();
|
|
57999
58210
|
var _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
58000
|
-
function hasOwnProperty(obj, key) {
|
|
58211
|
+
function hasOwnProperty$1(obj, key) {
|
|
58001
58212
|
return _hasOwnProperty.call(obj, key);
|
|
58002
58213
|
}
|
|
58003
58214
|
function _objectKeys(obj) {
|
|
@@ -58013,7 +58224,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
58013
58224
|
}
|
|
58014
58225
|
var keys2 = [];
|
|
58015
58226
|
for (var i2 in obj) {
|
|
58016
|
-
if (hasOwnProperty(obj, i2)) {
|
|
58227
|
+
if (hasOwnProperty$1(obj, i2)) {
|
|
58017
58228
|
keys2.push(i2);
|
|
58018
58229
|
}
|
|
58019
58230
|
}
|
|
@@ -58543,7 +58754,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
58543
58754
|
for (var t2 = oldKeys.length - 1; t2 >= 0; t2--) {
|
|
58544
58755
|
var key = oldKeys[t2];
|
|
58545
58756
|
var oldVal = mirror[key];
|
|
58546
|
-
if (hasOwnProperty(obj, key) && !(obj[key] === void 0 && oldVal !== void 0 && Array.isArray(obj) === false)) {
|
|
58757
|
+
if (hasOwnProperty$1(obj, key) && !(obj[key] === void 0 && oldVal !== void 0 && Array.isArray(obj) === false)) {
|
|
58547
58758
|
var newVal = obj[key];
|
|
58548
58759
|
if (typeof oldVal == "object" && oldVal != null && typeof newVal == "object" && newVal != null && Array.isArray(oldVal) === Array.isArray(newVal)) {
|
|
58549
58760
|
_generate(oldVal, newVal, patches, path + "/" + escapePathComponent(key), invertible);
|
|
@@ -58573,7 +58784,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
58573
58784
|
}
|
|
58574
58785
|
for (var t2 = 0; t2 < newKeys.length; t2++) {
|
|
58575
58786
|
var key = newKeys[t2];
|
|
58576
|
-
if (!hasOwnProperty(mirror, key) && obj[key] !== void 0) {
|
|
58787
|
+
if (!hasOwnProperty$1(mirror, key) && obj[key] !== void 0) {
|
|
58577
58788
|
patches.push({ op: "add", path: path + "/" + escapePathComponent(key), value: _deepClone(obj[key]) });
|
|
58578
58789
|
}
|
|
58579
58790
|
}
|
|
@@ -58618,8 +58829,9 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
58618
58829
|
function BackendStoreSync({ children }) {
|
|
58619
58830
|
const { client } = React__namespace.useContext(websocketCtx);
|
|
58620
58831
|
const getStoreValue = React__namespace.useCallback(async (itemKey) => {
|
|
58832
|
+
var _a;
|
|
58621
58833
|
const serializableExtras = STORE_EXTRAS_MAP.get(itemKey);
|
|
58622
|
-
const response = await request(`/api/core/store/${itemKey}`, {}, serializableExtras.extras);
|
|
58834
|
+
const response = await request(`/api/core/store/${itemKey}`, {}, (_a = serializableExtras == null ? void 0 : serializableExtras.extras) != null ? _a : {});
|
|
58623
58835
|
await handleAuthErrors(response, true);
|
|
58624
58836
|
await validateResponse(response, `Failed to fetch the store value for key: ${itemKey}`);
|
|
58625
58837
|
const { value, sequence_number } = await response.json();
|
|
@@ -58850,12 +59062,12 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
58850
59062
|
}
|
|
58851
59063
|
};
|
|
58852
59064
|
function getEffect(variable) {
|
|
58853
|
-
var _a, _b;
|
|
59065
|
+
var _a, _b, _c;
|
|
58854
59066
|
const storeName = (_a = variable.store) == null ? void 0 : _a.__typename;
|
|
58855
59067
|
if (!storeName) {
|
|
58856
59068
|
return null;
|
|
58857
59069
|
}
|
|
58858
|
-
return (_b = STORES[storeName].effect) != null ?
|
|
59070
|
+
return (_c = (_b = STORES[storeName]) == null ? void 0 : _b.effect) != null ? _c : null;
|
|
58859
59071
|
}
|
|
58860
59072
|
function StoreProviders({ children }) {
|
|
58861
59073
|
return /* @__PURE__ */ React__namespace.createElement(BackendStoreSync, null, /* @__PURE__ */ React__namespace.createElement(BrowserStoreSync, null, children));
|
|
@@ -59011,7 +59223,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
59011
59223
|
return atomInstance;
|
|
59012
59224
|
}
|
|
59013
59225
|
function useDeferLoadable(loadable) {
|
|
59014
|
-
const { suspend } =
|
|
59226
|
+
const { suspend } = useFallbackCtx();
|
|
59015
59227
|
const [availableState, setAvailableState] = React.useState(() => loadable.getValue());
|
|
59016
59228
|
const timerId = React.useRef(null);
|
|
59017
59229
|
const isFirstRender = React.useRef(true);
|
|
@@ -59027,12 +59239,16 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
59027
59239
|
}, suspend);
|
|
59028
59240
|
}
|
|
59029
59241
|
return () => {
|
|
59030
|
-
|
|
59242
|
+
if (timerId.current) {
|
|
59243
|
+
clearTimeout(timerId.current);
|
|
59244
|
+
}
|
|
59031
59245
|
};
|
|
59032
59246
|
}, [loadable.state, suspend]);
|
|
59033
59247
|
React.useEffect(() => {
|
|
59034
59248
|
if (loadable.state === "hasValue") {
|
|
59035
|
-
|
|
59249
|
+
if (timerId.current) {
|
|
59250
|
+
clearTimeout(timerId.current);
|
|
59251
|
+
}
|
|
59036
59252
|
setShowFallback(false);
|
|
59037
59253
|
setAvailableState(loadable.valueOrThrow());
|
|
59038
59254
|
}
|
|
@@ -59047,24 +59263,24 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
59047
59263
|
}
|
|
59048
59264
|
function useVariable(variable) {
|
|
59049
59265
|
const extras = useRequestExtras();
|
|
59050
|
-
const { client:
|
|
59266
|
+
const { client: wsClient } = React.useContext(websocketCtx);
|
|
59051
59267
|
const taskContext = useTaskContext();
|
|
59052
59268
|
const variablesContext = React.useContext(variablesCtx);
|
|
59053
59269
|
const bus = useEventBus();
|
|
59054
59270
|
if (!isVariable(variable)) {
|
|
59055
59271
|
return React.useState(variable);
|
|
59056
59272
|
}
|
|
59057
|
-
variablesContext.variables.current.add(variable.uid);
|
|
59273
|
+
variablesContext == null ? void 0 : variablesContext.variables.current.add(variable.uid);
|
|
59058
59274
|
React.useEffect(() => {
|
|
59059
59275
|
return () => {
|
|
59060
|
-
variablesContext.variables.current.delete(variable.uid);
|
|
59276
|
+
variablesContext == null ? void 0 : variablesContext.variables.current.delete(variable.uid);
|
|
59061
59277
|
};
|
|
59062
59278
|
}, []);
|
|
59063
59279
|
if (isDataVariable(variable) || isDerivedDataVariable(variable)) {
|
|
59064
59280
|
throw new Error(`Non-data variable expected, got ${variable.__typename}`);
|
|
59065
59281
|
}
|
|
59066
59282
|
if (isDerivedVariable(variable)) {
|
|
59067
|
-
const selector2 = useDerivedVariable(variable,
|
|
59283
|
+
const selector2 = useDerivedVariable(variable, wsClient, taskContext, extras);
|
|
59068
59284
|
const selectorLoadable = Recoil_index_28(selector2);
|
|
59069
59285
|
React.useEffect(() => {
|
|
59070
59286
|
if (selectorLoadable.state !== "loading") {
|
|
@@ -59081,7 +59297,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
59081
59297
|
}, [urlValue]);
|
|
59082
59298
|
return [urlValue, setUrlValue];
|
|
59083
59299
|
}
|
|
59084
|
-
const recoilState = getOrRegisterPlainVariable(variable,
|
|
59300
|
+
const recoilState = getOrRegisterPlainVariable(variable, wsClient, taskContext, extras);
|
|
59085
59301
|
if (!isDerivedVariable(variable.default)) {
|
|
59086
59302
|
const [value, setValue] = Recoil_index_22(recoilState);
|
|
59087
59303
|
React.useEffect(() => {
|
|
@@ -59115,13 +59331,13 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
59115
59331
|
const resolvedKwargs = Object.keys(annotatedAction.dynamic_kwargs).reduce(
|
|
59116
59332
|
(acc, k2) => {
|
|
59117
59333
|
const value = annotatedAction.dynamic_kwargs[k2];
|
|
59118
|
-
acc[k2] = resolveVariable(
|
|
59334
|
+
acc[k2] = isVariable(value) ? resolveVariable(
|
|
59119
59335
|
value,
|
|
59120
59336
|
actionCtx.wsClient,
|
|
59121
59337
|
actionCtx.taskCtx,
|
|
59122
59338
|
actionCtx.extras,
|
|
59123
59339
|
(v2) => actionCtx.snapshot.getLoadable(v2).getValue()
|
|
59124
|
-
);
|
|
59340
|
+
) : value;
|
|
59125
59341
|
return acc;
|
|
59126
59342
|
},
|
|
59127
59343
|
{}
|
|
@@ -59262,7 +59478,15 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
59262
59478
|
const taskCtx = useTaskContext();
|
|
59263
59479
|
const location2 = useLocation();
|
|
59264
59480
|
const eventBus = useEventBus();
|
|
59265
|
-
const actionCtx = React.useRef(
|
|
59481
|
+
const actionCtx = React.useRef({
|
|
59482
|
+
extras,
|
|
59483
|
+
history: history2,
|
|
59484
|
+
location: location2,
|
|
59485
|
+
notificationCtx,
|
|
59486
|
+
taskCtx,
|
|
59487
|
+
wsClient,
|
|
59488
|
+
eventBus
|
|
59489
|
+
});
|
|
59266
59490
|
const optionsRef = React.useRef(options);
|
|
59267
59491
|
React.useLayoutEffect(() => {
|
|
59268
59492
|
actionCtx.current = {
|
|
@@ -59281,6 +59505,9 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
59281
59505
|
var _a;
|
|
59282
59506
|
const actionsToExecute = Array.isArray(action) ? action : [action];
|
|
59283
59507
|
for (const actionToExecute of actionsToExecute) {
|
|
59508
|
+
if (!actionToExecute) {
|
|
59509
|
+
continue;
|
|
59510
|
+
}
|
|
59284
59511
|
const loadingVariable = !isActionImpl(actionToExecute) ? getOrRegisterPlainVariable(actionToExecute.loading, wsClient, taskCtx, extras) : null;
|
|
59285
59512
|
if (loadingVariable) {
|
|
59286
59513
|
cbInterface.set(loadingVariable, true);
|
|
@@ -59364,12 +59591,15 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
59364
59591
|
function useWindowTitle(pageTitle) {
|
|
59365
59592
|
const { data: config2 } = useConfig();
|
|
59366
59593
|
React.useEffect(() => {
|
|
59594
|
+
if (!config2) {
|
|
59595
|
+
return;
|
|
59596
|
+
}
|
|
59367
59597
|
if (!pageTitle) {
|
|
59368
|
-
document.title = config2
|
|
59598
|
+
document.title = config2.title;
|
|
59369
59599
|
return;
|
|
59370
59600
|
}
|
|
59371
|
-
document.title = `${config2
|
|
59372
|
-
}, [config2 == null ? void 0 : config2.title, pageTitle]);
|
|
59601
|
+
document.title = `${config2.title} - ${pageTitle}`;
|
|
59602
|
+
}, [config2, config2 == null ? void 0 : config2.title, pageTitle]);
|
|
59373
59603
|
}
|
|
59374
59604
|
const all_min = "";
|
|
59375
59605
|
const BaseRawCssInject = styled__default.default.div`
|
|
@@ -59625,7 +59855,7 @@ Inferred class string: "${iconClasses}."`
|
|
|
59625
59855
|
const { search } = useLocation();
|
|
59626
59856
|
const query = React.useMemo(() => new URLSearchParams(search), [search]);
|
|
59627
59857
|
const code = query.get("code");
|
|
59628
|
-
const errorConfig = errorMessages[code] || errorMessages.default;
|
|
59858
|
+
const errorConfig = code && errorMessages[code] || errorMessages.default;
|
|
59629
59859
|
return /* @__PURE__ */ React__default.default.createElement(CenteredDivWithGap, null, /* @__PURE__ */ React__default.default.createElement("h1", null, errorConfig.title), /* @__PURE__ */ React__default.default.createElement("p", null, errorConfig.description), /* @__PURE__ */ React__default.default.createElement(Button$1, { href: "/login", styling: errorConfig.styling }, "Retry"));
|
|
59630
59860
|
}
|
|
59631
59861
|
function PrivateRoute({ children, on_load, name }) {
|
|
@@ -59655,6 +59885,9 @@ Inferred class string: "${iconClasses}."`
|
|
|
59655
59885
|
const [component, setComponent] = React.useState(() => /* @__PURE__ */ React__default.default.createElement(DefaultFallback, null));
|
|
59656
59886
|
React.useEffect(() => {
|
|
59657
59887
|
const importer = importers[props.component.py_module];
|
|
59888
|
+
if (!importer) {
|
|
59889
|
+
throw new Error(`Missing importer for module ${props.component.py_module}`);
|
|
59890
|
+
}
|
|
59658
59891
|
importer().then((moduleContent) => {
|
|
59659
59892
|
if (!moduleContent) {
|
|
59660
59893
|
throw new Error(`Failed to import module ${props.component.py_module}`);
|
|
@@ -59781,6 +60014,112 @@ Inferred class string: "${iconClasses}."`
|
|
|
59781
60014
|
let b2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
59782
60015
|
return a2.length !== b2.length || a2.some((item, index2) => !Object.is(item, b2[index2]));
|
|
59783
60016
|
}
|
|
60017
|
+
var baseGetTag = _baseGetTag, getPrototype = _getPrototype, isObjectLike = isObjectLike_1;
|
|
60018
|
+
var objectTag = "[object Object]";
|
|
60019
|
+
var funcProto = Function.prototype, objectProto = Object.prototype;
|
|
60020
|
+
var funcToString = funcProto.toString;
|
|
60021
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
60022
|
+
var objectCtorString = funcToString.call(Object);
|
|
60023
|
+
function isPlainObject(value) {
|
|
60024
|
+
if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
|
|
60025
|
+
return false;
|
|
60026
|
+
}
|
|
60027
|
+
var proto = getPrototype(value);
|
|
60028
|
+
if (proto === null) {
|
|
60029
|
+
return true;
|
|
60030
|
+
}
|
|
60031
|
+
var Ctor = hasOwnProperty.call(proto, "constructor") && proto.constructor;
|
|
60032
|
+
return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString;
|
|
60033
|
+
}
|
|
60034
|
+
var isPlainObject_1 = isPlainObject;
|
|
60035
|
+
var baseSet = _baseSet;
|
|
60036
|
+
function set(object2, path, value) {
|
|
60037
|
+
return object2 == null ? object2 : baseSet(object2, path, value);
|
|
60038
|
+
}
|
|
60039
|
+
var set_1 = set;
|
|
60040
|
+
function createMarkers(scope, loopInstanceUid) {
|
|
60041
|
+
const markers = [];
|
|
60042
|
+
if (scope.action) {
|
|
60043
|
+
markers.push({ type: "action", path: scope.action });
|
|
60044
|
+
}
|
|
60045
|
+
if (scope.derivedVariable) {
|
|
60046
|
+
markers.push({ type: "derived_var", path: scope.derivedVariable, loopInstanceUid });
|
|
60047
|
+
}
|
|
60048
|
+
if (scope.serverComponent) {
|
|
60049
|
+
markers.push({ type: "server_component", path: scope.serverComponent, loopInstanceUid });
|
|
60050
|
+
}
|
|
60051
|
+
return markers;
|
|
60052
|
+
}
|
|
60053
|
+
function updateScope(scope, value, path) {
|
|
60054
|
+
const newScope = { ...scope };
|
|
60055
|
+
if (!scope.action && isAnnotatedAction(value)) {
|
|
60056
|
+
newScope.action = path;
|
|
60057
|
+
}
|
|
60058
|
+
if (!scope.derivedVariable && isDerivedVariable(value)) {
|
|
60059
|
+
newScope.derivedVariable = path;
|
|
60060
|
+
}
|
|
60061
|
+
if (!scope.serverComponent && isPyComponent(value)) {
|
|
60062
|
+
newScope.serverComponent = path;
|
|
60063
|
+
}
|
|
60064
|
+
return newScope;
|
|
60065
|
+
}
|
|
60066
|
+
function getInjectionMarkers(renderer) {
|
|
60067
|
+
const markers = [];
|
|
60068
|
+
function walk(obj, pathSegments, scope = {}) {
|
|
60069
|
+
for (const [key, value] of Object.entries(obj)) {
|
|
60070
|
+
const currentPath = [...pathSegments, key];
|
|
60071
|
+
const dotPath = currentPath.join(".");
|
|
60072
|
+
if (isLoopVariable(value)) {
|
|
60073
|
+
markers.push(
|
|
60074
|
+
{ path: dotPath, nested: value.nested, type: "loop_var" },
|
|
60075
|
+
...createMarkers(scope, value.uid)
|
|
60076
|
+
);
|
|
60077
|
+
continue;
|
|
60078
|
+
}
|
|
60079
|
+
if (isPlainObject_1(value) || Array.isArray(value)) {
|
|
60080
|
+
const newScope = updateScope(scope, value, dotPath);
|
|
60081
|
+
walk(value, [...pathSegments, key], newScope);
|
|
60082
|
+
}
|
|
60083
|
+
}
|
|
60084
|
+
}
|
|
60085
|
+
walk(renderer, []);
|
|
60086
|
+
return markers;
|
|
60087
|
+
}
|
|
60088
|
+
function applyMarkers(renderer, markers, loopValue, itemKey) {
|
|
60089
|
+
if (markers.length === 0) {
|
|
60090
|
+
return renderer;
|
|
60091
|
+
}
|
|
60092
|
+
const clonedRenderer = cloneDeep_1(renderer);
|
|
60093
|
+
for (const marker of markers) {
|
|
60094
|
+
switch (marker.type) {
|
|
60095
|
+
case "loop_var": {
|
|
60096
|
+
set_1(clonedRenderer, marker.path, resolveNested(loopValue, marker.nested));
|
|
60097
|
+
break;
|
|
60098
|
+
}
|
|
60099
|
+
case "action": {
|
|
60100
|
+
set_1(clonedRenderer, `${marker.path}.loading.uid`, nanoid());
|
|
60101
|
+
break;
|
|
60102
|
+
}
|
|
60103
|
+
case "derived_var": {
|
|
60104
|
+
set_1(clonedRenderer, `${marker.path}.loop_instance_uid`, `${marker.loopInstanceUid}:${itemKey}`);
|
|
60105
|
+
break;
|
|
60106
|
+
}
|
|
60107
|
+
case "server_component": {
|
|
60108
|
+
set_1(clonedRenderer, `${marker.path}.loop_instance_uid`, `${marker.loopInstanceUid}:${itemKey}`);
|
|
60109
|
+
break;
|
|
60110
|
+
}
|
|
60111
|
+
}
|
|
60112
|
+
}
|
|
60113
|
+
return clonedRenderer;
|
|
60114
|
+
}
|
|
60115
|
+
function hasMarkers(component) {
|
|
60116
|
+
for (const [key, value] of Object.entries(component.props)) {
|
|
60117
|
+
if (isLoopVariable(value)) {
|
|
60118
|
+
return key;
|
|
60119
|
+
}
|
|
60120
|
+
}
|
|
60121
|
+
return null;
|
|
60122
|
+
}
|
|
59784
60123
|
const POLLING_INTERVAL = 100;
|
|
59785
60124
|
const FAKE_PROGRESS_INTERVAL = 100;
|
|
59786
60125
|
const ESTIMATE_RATIO = 0.85;
|
|
@@ -59835,7 +60174,7 @@ Inferred class string: "${iconClasses}."`
|
|
|
59835
60174
|
`;
|
|
59836
60175
|
function findRunningTasks(tasksContext, variablesRef) {
|
|
59837
60176
|
var _a;
|
|
59838
|
-
if (!(((_a = variablesRef == null ? void 0 : variablesRef.current) == null ? void 0 : _a.size) > 0 && tasksContext.hasRunningTasks())) {
|
|
60177
|
+
if (!(variablesRef && ((_a = variablesRef == null ? void 0 : variablesRef.current) == null ? void 0 : _a.size) > 0 && tasksContext.hasRunningTasks())) {
|
|
59839
60178
|
return [];
|
|
59840
60179
|
}
|
|
59841
60180
|
return tasksContext.getVariableTasks(...variablesRef.current.values());
|
|
@@ -59843,12 +60182,17 @@ Inferred class string: "${iconClasses}."`
|
|
|
59843
60182
|
function ProgressTracker(props) {
|
|
59844
60183
|
const taskContext = useTaskContext();
|
|
59845
60184
|
const { client: wsClient } = React.useContext(websocketCtx);
|
|
59846
|
-
const [latestProgressUpdate, setLatestProgressUpdate] = React.useState(
|
|
60185
|
+
const [latestProgressUpdate, setLatestProgressUpdate] = React.useState(
|
|
60186
|
+
null
|
|
60187
|
+
);
|
|
59847
60188
|
const [progress, setProgress] = React.useState(null);
|
|
59848
60189
|
const fakeInterval = React.useRef(null);
|
|
59849
60190
|
const [subscribedTaskIds, setSubscribedTaskIds] = React.useState([]);
|
|
59850
60191
|
const [restartTrigger, setRestartTrigger] = React.useState(0);
|
|
59851
60192
|
React.useEffect(() => {
|
|
60193
|
+
if (!wsClient) {
|
|
60194
|
+
return;
|
|
60195
|
+
}
|
|
59852
60196
|
let progressSubscription = null;
|
|
59853
60197
|
const timer2 = setInterval(() => {
|
|
59854
60198
|
const taskIds = findRunningTasks(taskContext, props.variablesRef);
|
|
@@ -59865,8 +60209,11 @@ Inferred class string: "${iconClasses}."`
|
|
|
59865
60209
|
}
|
|
59866
60210
|
progressSubscription == null ? void 0 : progressSubscription.unsubscribe();
|
|
59867
60211
|
};
|
|
59868
|
-
}, [restartTrigger]);
|
|
60212
|
+
}, [restartTrigger, wsClient]);
|
|
59869
60213
|
React.useEffect(() => {
|
|
60214
|
+
if (!wsClient) {
|
|
60215
|
+
return;
|
|
60216
|
+
}
|
|
59870
60217
|
let subscription = null;
|
|
59871
60218
|
if (subscribedTaskIds.length > 0) {
|
|
59872
60219
|
subscription = wsClient.taskStatusUpdates$(...subscribedTaskIds).subscribe((newStatus) => {
|
|
@@ -59884,7 +60231,7 @@ Inferred class string: "${iconClasses}."`
|
|
|
59884
60231
|
return () => {
|
|
59885
60232
|
subscription == null ? void 0 : subscription.unsubscribe();
|
|
59886
60233
|
};
|
|
59887
|
-
}, [subscribedTaskIds]);
|
|
60234
|
+
}, [subscribedTaskIds, wsClient]);
|
|
59888
60235
|
React.useEffect(() => {
|
|
59889
60236
|
var _a, _b;
|
|
59890
60237
|
if (!latestProgressUpdate) {
|
|
@@ -60013,7 +60360,8 @@ Inferred class string: "${iconClasses}."`
|
|
|
60013
60360
|
function ErrorDisplay$1(props) {
|
|
60014
60361
|
var _a, _b, _c, _d, _e2;
|
|
60015
60362
|
const [styles2, css2] = parseRawCss((_a = props.config) == null ? void 0 : _a.raw_css);
|
|
60016
|
-
|
|
60363
|
+
const defaultMessage = props.error instanceof UserError ? props.error.message : "Try again or contact the application owner.";
|
|
60364
|
+
return /* @__PURE__ */ React__default.default.createElement(ErrorDisplayWrapper, { $rawCss: css2, style: styles2 }, /* @__PURE__ */ React__default.default.createElement(ContentWrapper, null, /* @__PURE__ */ React__default.default.createElement(ErrorContent, null, /* @__PURE__ */ React__default.default.createElement(ErrorTitle$1, null, /* @__PURE__ */ React__default.default.createElement(IconWrapper, null, /* @__PURE__ */ React__default.default.createElement(ErrorIcon, { "aria-hidden": true, className: "fa-solid fa-circle-xmark fa-lg" })), (_c = (_b = props == null ? void 0 : props.config) == null ? void 0 : _b.title) != null ? _c : "Error"), /* @__PURE__ */ React__default.default.createElement(ErrorText$1, null, (_e2 = (_d = props == null ? void 0 : props.config) == null ? void 0 : _d.description) != null ? _e2 : defaultMessage))), props.resetErrorBoundary && /* @__PURE__ */ React__default.default.createElement(RetryButton, { onClick: () => props.resetErrorBoundary(props.error), type: "button" }, /* @__PURE__ */ React__default.default.createElement("i", { "aria-hidden": true, className: "fa-solid fa-rotate fa-xl" })));
|
|
60017
60365
|
}
|
|
60018
60366
|
function useDataVariable(variable) {
|
|
60019
60367
|
const extras = useRequestExtras();
|
|
@@ -60030,10 +60378,10 @@ Inferred class string: "${iconClasses}."`
|
|
|
60030
60378
|
return fetchDataVariable2;
|
|
60031
60379
|
}
|
|
60032
60380
|
const variablesContext = React.useContext(variablesCtx);
|
|
60033
|
-
variablesContext.variables.current.add(variable.uid);
|
|
60381
|
+
variablesContext == null ? void 0 : variablesContext.variables.current.add(variable.uid);
|
|
60034
60382
|
React.useEffect(() => {
|
|
60035
60383
|
return () => {
|
|
60036
|
-
variablesContext.variables.current.delete(variable.uid);
|
|
60384
|
+
variablesContext == null ? void 0 : variablesContext.variables.current.delete(variable.uid);
|
|
60037
60385
|
};
|
|
60038
60386
|
}, []);
|
|
60039
60387
|
const taskContext = useTaskContext();
|
|
@@ -60064,7 +60412,7 @@ Inferred class string: "${iconClasses}."`
|
|
|
60064
60412
|
React.useEffect(() => {
|
|
60065
60413
|
refetch();
|
|
60066
60414
|
}, [getData2]);
|
|
60067
|
-
return data;
|
|
60415
|
+
return data != null ? data : void 0;
|
|
60068
60416
|
}
|
|
60069
60417
|
return useVariable(variable)[0];
|
|
60070
60418
|
}
|
|
@@ -60183,11 +60531,14 @@ Inferred class string: "${iconClasses}."`
|
|
|
60183
60531
|
function isTaskResponse(response) {
|
|
60184
60532
|
return response && typeof response === "object" && "task_id" in response;
|
|
60185
60533
|
}
|
|
60186
|
-
function getComponentRegistryKey(uid2, trigger) {
|
|
60534
|
+
function getComponentRegistryKey(uid2, trigger, loopInstanceUid) {
|
|
60187
60535
|
let key = `_COMPONENT_${uid2}`;
|
|
60188
60536
|
if (trigger) {
|
|
60189
60537
|
key += "_TRIGGER";
|
|
60190
60538
|
}
|
|
60539
|
+
if (loopInstanceUid) {
|
|
60540
|
+
key += `_${loopInstanceUid}`;
|
|
60541
|
+
}
|
|
60191
60542
|
return key;
|
|
60192
60543
|
}
|
|
60193
60544
|
async function fetchFunctionComponent(component, values, uid2, extras, wsClient) {
|
|
@@ -60226,8 +60577,8 @@ Inferred class string: "${iconClasses}."`
|
|
|
60226
60577
|
{}
|
|
60227
60578
|
);
|
|
60228
60579
|
}
|
|
60229
|
-
function getOrRegisterComponentTrigger(uid2) {
|
|
60230
|
-
const triggerKey = getComponentRegistryKey(uid2, true);
|
|
60580
|
+
function getOrRegisterComponentTrigger(uid2, loop_instance_uid) {
|
|
60581
|
+
const triggerKey = getComponentRegistryKey(uid2, true, loop_instance_uid);
|
|
60231
60582
|
if (!atomRegistry.has(triggerKey)) {
|
|
60232
60583
|
atomRegistry.set(
|
|
60233
60584
|
triggerKey,
|
|
@@ -60242,8 +60593,16 @@ Inferred class string: "${iconClasses}."`
|
|
|
60242
60593
|
}
|
|
60243
60594
|
return atomRegistry.get(triggerKey);
|
|
60244
60595
|
}
|
|
60245
|
-
function getOrRegisterServerComponent(
|
|
60246
|
-
|
|
60596
|
+
function getOrRegisterServerComponent({
|
|
60597
|
+
name,
|
|
60598
|
+
uid: uid2,
|
|
60599
|
+
dynamicKwargs,
|
|
60600
|
+
wsClient,
|
|
60601
|
+
taskContext,
|
|
60602
|
+
currentExtras,
|
|
60603
|
+
loop_instance_uid
|
|
60604
|
+
}) {
|
|
60605
|
+
const key = getComponentRegistryKey(uid2, false, loop_instance_uid);
|
|
60247
60606
|
if (!selectorFamilyRegistry.has(key)) {
|
|
60248
60607
|
selectorFamilyRegistry.set(
|
|
60249
60608
|
key,
|
|
@@ -60255,7 +60614,7 @@ Inferred class string: "${iconClasses}."`
|
|
|
60255
60614
|
const resolvedKwargs = Object.keys(dynamicKwargs).reduce(
|
|
60256
60615
|
(acc, k2) => {
|
|
60257
60616
|
const value = dynamicKwargs[k2];
|
|
60258
|
-
acc[k2] = resolveVariable(value, wsClient, taskContext, currentExtras);
|
|
60617
|
+
acc[k2] = isVariable(value) ? resolveVariable(value, wsClient, taskContext, currentExtras) : value;
|
|
60259
60618
|
return acc;
|
|
60260
60619
|
},
|
|
60261
60620
|
{}
|
|
@@ -60343,19 +60702,27 @@ Inferred class string: "${iconClasses}."`
|
|
|
60343
60702
|
selectorFamilyMembersRegistry.get(family).set(serializableExtras.toJSON(), selectorInstance);
|
|
60344
60703
|
return selectorInstance;
|
|
60345
60704
|
}
|
|
60346
|
-
function useServerComponent(name, uid2, dynamicKwargs) {
|
|
60705
|
+
function useServerComponent(name, uid2, dynamicKwargs, loop_instance_uid) {
|
|
60347
60706
|
const extras = useRequestExtras();
|
|
60348
60707
|
const { client: wsClient } = React.useContext(websocketCtx);
|
|
60349
60708
|
const taskContext = useTaskContext();
|
|
60350
60709
|
const variablesContext = React.useContext(variablesCtx);
|
|
60351
60710
|
const bus = useEventBus();
|
|
60352
|
-
variablesContext.variables.current.add(getComponentRegistryKey(uid2));
|
|
60711
|
+
variablesContext == null ? void 0 : variablesContext.variables.current.add(getComponentRegistryKey(uid2));
|
|
60353
60712
|
React.useEffect(() => {
|
|
60354
60713
|
return () => {
|
|
60355
|
-
variablesContext.variables.current.delete(getComponentRegistryKey(uid2));
|
|
60714
|
+
variablesContext == null ? void 0 : variablesContext.variables.current.delete(getComponentRegistryKey(uid2));
|
|
60356
60715
|
};
|
|
60357
60716
|
}, []);
|
|
60358
|
-
const componentSelector = getOrRegisterServerComponent(
|
|
60717
|
+
const componentSelector = getOrRegisterServerComponent({
|
|
60718
|
+
name,
|
|
60719
|
+
uid: uid2,
|
|
60720
|
+
dynamicKwargs,
|
|
60721
|
+
wsClient,
|
|
60722
|
+
taskContext,
|
|
60723
|
+
currentExtras: extras,
|
|
60724
|
+
loop_instance_uid
|
|
60725
|
+
});
|
|
60359
60726
|
const componentLoadable = Recoil_index_21(componentSelector);
|
|
60360
60727
|
React.useEffect(() => {
|
|
60361
60728
|
if (componentLoadable.state === "hasValue") {
|
|
@@ -60365,10 +60732,10 @@ Inferred class string: "${iconClasses}."`
|
|
|
60365
60732
|
const deferred = useDeferLoadable(componentLoadable);
|
|
60366
60733
|
return deferred;
|
|
60367
60734
|
}
|
|
60368
|
-
function useRefreshServerComponent(uid2) {
|
|
60735
|
+
function useRefreshServerComponent(uid2, loop_instance_uid) {
|
|
60369
60736
|
return Recoil_index_31(
|
|
60370
60737
|
({ set: set2 }) => () => {
|
|
60371
|
-
const triggerAtom = getOrRegisterComponentTrigger(uid2);
|
|
60738
|
+
const triggerAtom = getOrRegisterComponentTrigger(uid2, loop_instance_uid);
|
|
60372
60739
|
set2(triggerAtom, (triggerIndexValue) => ({
|
|
60373
60740
|
force: false,
|
|
60374
60741
|
inc: triggerIndexValue.inc + 1
|
|
@@ -60415,71 +60782,92 @@ Inferred class string: "${iconClasses}."`
|
|
|
60415
60782
|
}
|
|
60416
60783
|
return pollingInterval;
|
|
60417
60784
|
}
|
|
60418
|
-
|
|
60785
|
+
const MODULE_CACHE = /* @__PURE__ */ new Map();
|
|
60786
|
+
const COMPONENT_METADATA_CACHE = /* @__PURE__ */ new Map();
|
|
60787
|
+
function resolveComponentSync(component) {
|
|
60419
60788
|
var _a;
|
|
60420
|
-
|
|
60421
|
-
|
|
60422
|
-
|
|
60423
|
-
|
|
60424
|
-
|
|
60789
|
+
if ((component == null ? void 0 : component.name) === "RawString") {
|
|
60790
|
+
return component.props.content;
|
|
60791
|
+
}
|
|
60792
|
+
const metadata = COMPONENT_METADATA_CACHE.get(component.name);
|
|
60793
|
+
if (!metadata) {
|
|
60794
|
+
return null;
|
|
60795
|
+
}
|
|
60796
|
+
if (metadata.type === "py") {
|
|
60797
|
+
return /* @__PURE__ */ React__default.default.createElement(
|
|
60798
|
+
PythonWrapper,
|
|
60799
|
+
{
|
|
60800
|
+
component,
|
|
60801
|
+
dynamic_kwargs: component.props.dynamic_kwargs,
|
|
60802
|
+
func_name: component.props.func_name,
|
|
60803
|
+
name: component.name,
|
|
60804
|
+
polling_interval: component.props.polling_interval,
|
|
60805
|
+
uid: component.uid
|
|
60806
|
+
}
|
|
60807
|
+
);
|
|
60808
|
+
}
|
|
60809
|
+
const moduleContent = MODULE_CACHE.get(metadata.py_module);
|
|
60810
|
+
if (!moduleContent) {
|
|
60811
|
+
return null;
|
|
60812
|
+
}
|
|
60813
|
+
const ResolvedComponent = moduleContent[(_a = metadata.js_component) != null ? _a : metadata.name];
|
|
60814
|
+
if (!ResolvedComponent) {
|
|
60815
|
+
return /* @__PURE__ */ React__default.default.createElement(
|
|
60816
|
+
ErrorDisplay$1,
|
|
60817
|
+
{
|
|
60818
|
+
config: {
|
|
60819
|
+
description: `The JavaScript module was imported successfully but the component was not found within the module.`,
|
|
60820
|
+
title: `Component "${metadata.name}" could not be resolved`
|
|
60821
|
+
}
|
|
60822
|
+
}
|
|
60823
|
+
);
|
|
60824
|
+
}
|
|
60825
|
+
const props = cleanProps(component.props);
|
|
60826
|
+
return /* @__PURE__ */ React__default.default.createElement(ResolvedComponent, { uid: component.uid, ...props });
|
|
60827
|
+
}
|
|
60828
|
+
class ComponentLoadError extends Error {
|
|
60829
|
+
constructor(message, title) {
|
|
60830
|
+
super(message);
|
|
60831
|
+
__publicField(this, "title");
|
|
60832
|
+
this.title = title;
|
|
60833
|
+
}
|
|
60834
|
+
}
|
|
60835
|
+
async function resolveComponentAsync(component, getComponent, importers) {
|
|
60836
|
+
const entry = await getComponent(component);
|
|
60837
|
+
if (!isJsComponent(entry)) {
|
|
60838
|
+
COMPONENT_METADATA_CACHE.set(component.name, entry);
|
|
60839
|
+
return;
|
|
60840
|
+
}
|
|
60841
|
+
COMPONENT_METADATA_CACHE.set(component.name, entry);
|
|
60842
|
+
if (MODULE_CACHE.has(entry.py_module)) {
|
|
60843
|
+
return;
|
|
60844
|
+
}
|
|
60845
|
+
const importer = importers[entry.py_module];
|
|
60846
|
+
if (!importer) {
|
|
60847
|
+
const errorDescription = entry.py_module === "LOCAL" ? `This is a local component so make sure you are in production mode and dara.config.json is present.
|
|
60425
60848
|
You can try re-building JavaScript by running Dara with the --rebuild flag.` : `This means that the JavaScript module for the component was not included by the discovery system.
|
|
60426
60849
|
You can try re-building JavaScript by running Dara with the --rebuild flag
|
|
60427
60850
|
and/or explicitly registering the component with "config.add_component(MyComponentClass)".`;
|
|
60428
|
-
|
|
60429
|
-
|
|
60430
|
-
|
|
60431
|
-
|
|
60432
|
-
|
|
60433
|
-
|
|
60434
|
-
|
|
60435
|
-
}
|
|
60436
|
-
);
|
|
60437
|
-
}
|
|
60438
|
-
let moduleContent = null;
|
|
60439
|
-
try {
|
|
60440
|
-
moduleContent = await importer();
|
|
60441
|
-
} catch (e2) {
|
|
60442
|
-
console.error(e2);
|
|
60851
|
+
throw new ComponentLoadError(errorDescription, `Component ${entry.name} could not be resolved`);
|
|
60852
|
+
}
|
|
60853
|
+
let moduleContent = null;
|
|
60854
|
+
try {
|
|
60855
|
+
moduleContent = await importer();
|
|
60856
|
+
if (moduleContent) {
|
|
60857
|
+
MODULE_CACHE.set(entry.py_module, moduleContent);
|
|
60443
60858
|
}
|
|
60444
|
-
|
|
60445
|
-
|
|
60446
|
-
|
|
60447
|
-
|
|
60448
|
-
|
|
60449
|
-
|
|
60859
|
+
} catch (e2) {
|
|
60860
|
+
console.error(`Failed to load module ${entry.py_module}:`, e2);
|
|
60861
|
+
}
|
|
60862
|
+
if (!moduleContent) {
|
|
60863
|
+
throw new ComponentLoadError(
|
|
60864
|
+
`Failed to import the JavaScript module for the component.
|
|
60450
60865
|
This likely means that the module was not installed properly.
|
|
60451
60866
|
You can try re-building JavaScript by running Dara with the --rebuild flag
|
|
60452
60867
|
and/or explicitly registering the component with "config.add_component(MyComponentClass)".`,
|
|
60453
|
-
|
|
60454
|
-
|
|
60455
|
-
}
|
|
60456
|
-
);
|
|
60457
|
-
}
|
|
60458
|
-
const ResolvedComponent = moduleContent[(_a = componentEntry.js_component) != null ? _a : componentEntry.name];
|
|
60459
|
-
if (!ResolvedComponent) {
|
|
60460
|
-
return /* @__PURE__ */ React__default.default.createElement(
|
|
60461
|
-
ErrorDisplay$1,
|
|
60462
|
-
{
|
|
60463
|
-
config: {
|
|
60464
|
-
description: `The JavaScript module was imported successfully but the component was not found within the module.`,
|
|
60465
|
-
title: `Component "${componentEntry.name}" could not be resolved`
|
|
60466
|
-
}
|
|
60467
|
-
}
|
|
60468
|
-
);
|
|
60469
|
-
}
|
|
60470
|
-
const props = cleanProps(component.props);
|
|
60471
|
-
return /* @__PURE__ */ React__default.default.createElement(ResolvedComponent, { uid: component.uid, ...props });
|
|
60868
|
+
`Component ${entry.name} could not be resolved`
|
|
60869
|
+
);
|
|
60472
60870
|
}
|
|
60473
|
-
return /* @__PURE__ */ React__default.default.createElement(
|
|
60474
|
-
PythonWrapper,
|
|
60475
|
-
{
|
|
60476
|
-
dynamic_kwargs: component.props.dynamic_kwargs,
|
|
60477
|
-
func_name: component.props.func_name,
|
|
60478
|
-
name: component.name,
|
|
60479
|
-
polling_interval: component.props.polling_interval,
|
|
60480
|
-
uid: component.uid
|
|
60481
|
-
}
|
|
60482
|
-
);
|
|
60483
60871
|
}
|
|
60484
60872
|
function getFallbackComponent(fallback, track_progress, variablesRef) {
|
|
60485
60873
|
let fallbackComponent = /* @__PURE__ */ React__default.default.createElement(DefaultFallback, null);
|
|
@@ -60493,40 +60881,53 @@ Inferred class string: "${iconClasses}."`
|
|
|
60493
60881
|
}
|
|
60494
60882
|
function DynamicComponent(props) {
|
|
60495
60883
|
var _a, _b, _c, _d, _e2, _f;
|
|
60496
|
-
const [isLoading, setIsLoading] = React.useState(true);
|
|
60497
|
-
const [component, setComponent] = React.useState();
|
|
60498
|
-
const { get: getComponent } = useComponentRegistry();
|
|
60499
60884
|
const importers = React.useContext(importersCtx);
|
|
60500
60885
|
const fallbackCtx$1 = React.useContext(fallbackCtx);
|
|
60886
|
+
const { get: getComponent } = useComponentRegistry();
|
|
60887
|
+
const [component, setComponent] = React.useState(() => resolveComponentSync(props.component));
|
|
60888
|
+
const [isLoading, setIsLoading] = React.useState(() => component === null);
|
|
60889
|
+
const [loadingStarted, setLoadingStarted] = React.useState(false);
|
|
60890
|
+
React.useLayoutEffect(() => {
|
|
60891
|
+
const markerProp = hasMarkers(props.component);
|
|
60892
|
+
if (markerProp) {
|
|
60893
|
+
throw new UserError(
|
|
60894
|
+
`Component "${props.component.name}" has a loop variable in its "${markerProp}" property
|
|
60895
|
+
LoopVariable (aka "Variable.list_item") can only be used within the For component's "renderer" property.`
|
|
60896
|
+
);
|
|
60897
|
+
}
|
|
60898
|
+
}, [props.component]);
|
|
60501
60899
|
React.useEffect(() => {
|
|
60502
|
-
|
|
60503
|
-
if (((_a2 = props.component) == null ? void 0 : _a2.name) === "RawString") {
|
|
60504
|
-
setComponent(props.component.props.content);
|
|
60505
|
-
setIsLoading(false);
|
|
60900
|
+
if (!isLoading || loadingStarted) {
|
|
60506
60901
|
return;
|
|
60507
60902
|
}
|
|
60508
|
-
|
|
60509
|
-
|
|
60510
|
-
|
|
60511
|
-
|
|
60512
|
-
|
|
60513
|
-
}
|
|
60514
|
-
|
|
60903
|
+
setLoadingStarted(true);
|
|
60904
|
+
resolveComponentAsync(props.component, getComponent, importers).then(() => {
|
|
60905
|
+
const resolvedComponent = resolveComponentSync(props.component);
|
|
60906
|
+
setIsLoading(false);
|
|
60907
|
+
setComponent(resolvedComponent);
|
|
60908
|
+
}).catch((error) => {
|
|
60909
|
+
console.error("Failed to resolve component:", error);
|
|
60910
|
+
setIsLoading(false);
|
|
60911
|
+
if (error instanceof ComponentLoadError) {
|
|
60912
|
+
setComponent(/* @__PURE__ */ React__default.default.createElement(ErrorDisplay$1, { config: { title: error.title, description: error.message } }));
|
|
60913
|
+
}
|
|
60914
|
+
});
|
|
60915
|
+
}, [props.component, getComponent, importers, isLoading, loadingStarted]);
|
|
60515
60916
|
const refreshSelector = useRefreshSelector();
|
|
60516
60917
|
function onResetErrorBoundary(error) {
|
|
60517
60918
|
if (isSelectorError(error)) {
|
|
60518
60919
|
refreshSelector(error.selectorId, error.selectorExtras);
|
|
60519
60920
|
}
|
|
60520
60921
|
}
|
|
60521
|
-
const
|
|
60922
|
+
const { hasRunningTasks, cleanupRunningTasks } = useTaskContext();
|
|
60522
60923
|
const variables = React.useRef(/* @__PURE__ */ new Set());
|
|
60523
60924
|
React.useEffect(() => {
|
|
60524
60925
|
return () => {
|
|
60525
|
-
if (variables.current.size > 0 &&
|
|
60526
|
-
|
|
60926
|
+
if (variables.current.size > 0 && hasRunningTasks()) {
|
|
60927
|
+
cleanupRunningTasks(...variables.current.values());
|
|
60527
60928
|
}
|
|
60528
60929
|
};
|
|
60529
|
-
}, []);
|
|
60930
|
+
}, [cleanupRunningTasks, hasRunningTasks]);
|
|
60530
60931
|
const [fallback] = React.useState(
|
|
60531
60932
|
() => {
|
|
60532
60933
|
var _a2, _b2, _c2, _d2;
|
|
@@ -60534,7 +60935,7 @@ Inferred class string: "${iconClasses}."`
|
|
|
60534
60935
|
}
|
|
60535
60936
|
);
|
|
60536
60937
|
if (isLoading) {
|
|
60537
|
-
return
|
|
60938
|
+
return fallback;
|
|
60538
60939
|
}
|
|
60539
60940
|
const suspend = (_f = (_e2 = (_d = (_c = (_b = (_a = props.component) == null ? void 0 : _a.props) == null ? void 0 : _b.fallback) == null ? void 0 : _c.props) == null ? void 0 : _d.suspend_render) != null ? _e2 : fallbackCtx$1 == null ? void 0 : fallbackCtx$1.suspend) != null ? _f : 200;
|
|
60540
60941
|
return /* @__PURE__ */ React__default.default.createElement(
|
|
@@ -60550,11 +60951,16 @@ Inferred class string: "${iconClasses}."`
|
|
|
60550
60951
|
);
|
|
60551
60952
|
}
|
|
60552
60953
|
function PythonWrapper(props) {
|
|
60553
|
-
const component = useServerComponent(
|
|
60554
|
-
|
|
60954
|
+
const component = useServerComponent(
|
|
60955
|
+
props.name,
|
|
60956
|
+
props.uid,
|
|
60957
|
+
props.dynamic_kwargs,
|
|
60958
|
+
props.component.loop_instance_uid
|
|
60959
|
+
);
|
|
60960
|
+
const refresh = useRefreshServerComponent(props.uid, props.component.loop_instance_uid);
|
|
60555
60961
|
const pollingInterval = React.useMemo(
|
|
60556
60962
|
() => computePollingInterval(props.dynamic_kwargs, props.polling_interval),
|
|
60557
|
-
[props.polling_interval]
|
|
60963
|
+
[props.dynamic_kwargs, props.polling_interval]
|
|
60558
60964
|
);
|
|
60559
60965
|
useInterval(refresh, pollingInterval);
|
|
60560
60966
|
if (component === null) {
|
|
@@ -60579,17 +60985,21 @@ Inferred class string: "${iconClasses}."`
|
|
|
60579
60985
|
}
|
|
60580
60986
|
return /* @__PURE__ */ React__default.default.createElement(DynamicComponent, { component, key: component.uid });
|
|
60581
60987
|
}
|
|
60988
|
+
const DynamicComponent$1 = React.memo(DynamicComponent);
|
|
60582
60989
|
function useBackendErrorsSubscription() {
|
|
60583
60990
|
const [errors, setErrors] = React.useState([]);
|
|
60584
60991
|
const { client } = React.useContext(websocketCtx);
|
|
60585
60992
|
React.useEffect(() => {
|
|
60993
|
+
if (!client) {
|
|
60994
|
+
return;
|
|
60995
|
+
}
|
|
60586
60996
|
const sub = client.serverErrors$().subscribe((err2) => {
|
|
60587
60997
|
setErrors((prev) => [...prev, err2.message]);
|
|
60588
60998
|
});
|
|
60589
60999
|
return () => {
|
|
60590
61000
|
sub.unsubscribe();
|
|
60591
61001
|
};
|
|
60592
|
-
});
|
|
61002
|
+
}, [client]);
|
|
60593
61003
|
const clearErrors = React.useCallback(() => {
|
|
60594
61004
|
setErrors([]);
|
|
60595
61005
|
}, []);
|
|
@@ -60601,7 +61011,11 @@ Inferred class string: "${iconClasses}."`
|
|
|
60601
61011
|
return /* @__PURE__ */ React__default.default.createElement(BackendErrorsCtx.Provider, { value: { clearErrors, errors } }, props.children);
|
|
60602
61012
|
}
|
|
60603
61013
|
function useBackendErrors() {
|
|
60604
|
-
|
|
61014
|
+
const ctx = React.useContext(BackendErrorsCtx);
|
|
61015
|
+
if (!ctx) {
|
|
61016
|
+
throw new Error("useBackendErrors must be used within BackendErrorsProvider");
|
|
61017
|
+
}
|
|
61018
|
+
return ctx;
|
|
60605
61019
|
}
|
|
60606
61020
|
const ErrorWrapper = styled__default.default.div`
|
|
60607
61021
|
display: flex;
|
|
@@ -61031,7 +61445,7 @@ Inferred class string: "${iconClasses}."`
|
|
|
61031
61445
|
const variableValue = getVariableState(req.message.variable);
|
|
61032
61446
|
props.wsClient.sendVariable(variableValue, req.message.__rchan);
|
|
61033
61447
|
} catch (err2) {
|
|
61034
|
-
console.warn(`Error when processing a getVariableValue request: ${err2}`);
|
|
61448
|
+
console.warn(`Error when processing a getVariableValue request: ${String(err2)}`);
|
|
61035
61449
|
}
|
|
61036
61450
|
});
|
|
61037
61451
|
return () => {
|
|
@@ -61046,7 +61460,7 @@ Inferred class string: "${iconClasses}."`
|
|
|
61046
61460
|
...component,
|
|
61047
61461
|
props: {
|
|
61048
61462
|
...component.props,
|
|
61049
|
-
children: rest.length === 0 ? children : /* @__PURE__ */ React__namespace.createElement(DynamicComponent, { component: mergeContext(rest, children) })
|
|
61463
|
+
children: rest.length === 0 ? children : /* @__PURE__ */ React__namespace.createElement(DynamicComponent$1, { component: mergeContext(rest, children) })
|
|
61050
61464
|
}
|
|
61051
61465
|
};
|
|
61052
61466
|
}
|
|
@@ -61060,7 +61474,7 @@ Inferred class string: "${iconClasses}."`
|
|
|
61060
61474
|
if (!mergedContext) {
|
|
61061
61475
|
return /* @__PURE__ */ React__namespace.createElement(React__namespace.Fragment, null, props.children);
|
|
61062
61476
|
}
|
|
61063
|
-
return /* @__PURE__ */ React__namespace.createElement(DynamicComponent, { component: mergedContext });
|
|
61477
|
+
return /* @__PURE__ */ React__namespace.createElement(DynamicComponent$1, { component: mergedContext });
|
|
61064
61478
|
}
|
|
61065
61479
|
const RootWrapper = styled__default.default.div`
|
|
61066
61480
|
scrollbar-color: ${(props) => `${props.theme.colors.grey5} ${props.theme.colors.grey2}`};
|
|
@@ -61099,22 +61513,24 @@ Inferred class string: "${iconClasses}."`
|
|
|
61099
61513
|
function TemplateRoot(props) {
|
|
61100
61514
|
var _a, _b, _c;
|
|
61101
61515
|
const token = useSessionToken();
|
|
61102
|
-
const tokenRef = React.useRef(token);
|
|
61103
61516
|
const { data: config2 } = useConfig();
|
|
61104
61517
|
const { data: template, isLoading: templateLoading } = useTemplate(config2 == null ? void 0 : config2.template);
|
|
61105
61518
|
const { data: actions, isLoading: actionsLoading } = useActions();
|
|
61106
61519
|
const { data: components, isLoading: componentsLoading, refetch: refetchComponents } = useComponents();
|
|
61107
|
-
const [wsClient, setWsClient] = React.useState(props.initialWebsocketClient);
|
|
61520
|
+
const [wsClient, setWsClient] = React.useState(() => props.initialWebsocketClient);
|
|
61108
61521
|
React.useEffect(() => {
|
|
61109
|
-
|
|
61522
|
+
if (token) {
|
|
61523
|
+
cleanSessionCache(token);
|
|
61524
|
+
}
|
|
61110
61525
|
}, [token]);
|
|
61111
61526
|
React.useEffect(() => {
|
|
61112
61527
|
if (!wsClient) {
|
|
61113
61528
|
return;
|
|
61114
61529
|
}
|
|
61115
61530
|
return onTokenChange((newToken) => {
|
|
61116
|
-
|
|
61117
|
-
|
|
61531
|
+
if (newToken) {
|
|
61532
|
+
wsClient.updateToken(newToken);
|
|
61533
|
+
}
|
|
61118
61534
|
});
|
|
61119
61535
|
}, [wsClient]);
|
|
61120
61536
|
React.useEffect(() => {
|
|
@@ -61123,14 +61539,16 @@ Inferred class string: "${iconClasses}."`
|
|
|
61123
61539
|
}
|
|
61124
61540
|
}, [config2 == null ? void 0 : config2.title]);
|
|
61125
61541
|
React.useEffect(() => {
|
|
61126
|
-
if (config2) {
|
|
61127
|
-
|
|
61542
|
+
if (wsClient || !config2) {
|
|
61543
|
+
return;
|
|
61128
61544
|
}
|
|
61545
|
+
const newWsClient = setupWebsocket(token, config2.live_reload);
|
|
61546
|
+
setWsClient(newWsClient);
|
|
61129
61547
|
return () => {
|
|
61130
|
-
|
|
61548
|
+
newWsClient.close();
|
|
61131
61549
|
};
|
|
61132
|
-
}, [
|
|
61133
|
-
if (templateLoading || actionsLoading || componentsLoading) {
|
|
61550
|
+
}, [token, config2 == null ? void 0 : config2.live_reload]);
|
|
61551
|
+
if (templateLoading || actionsLoading || componentsLoading || !wsClient) {
|
|
61134
61552
|
return null;
|
|
61135
61553
|
}
|
|
61136
61554
|
return /* @__PURE__ */ React__default.default.createElement(styled.ThemeProvider, { theme: resolveTheme((_a = config2 == null ? void 0 : config2.theme) == null ? void 0 : _a.main, (_b = config2 == null ? void 0 : config2.theme) == null ? void 0 : _b.base) }, /* @__PURE__ */ React__default.default.createElement(websocketCtx.Provider, { value: { client: wsClient } }, /* @__PURE__ */ React__default.default.createElement(
|
|
@@ -61138,7 +61556,7 @@ Inferred class string: "${iconClasses}."`
|
|
|
61138
61556
|
{
|
|
61139
61557
|
value: { actionRegistry: actions, componentRegistry: components, refetchComponents }
|
|
61140
61558
|
},
|
|
61141
|
-
/* @__PURE__ */ React__default.default.createElement(
|
|
61559
|
+
/* @__PURE__ */ React__default.default.createElement(DynamicContext, { contextComponents: (_c = config2 == null ? void 0 : config2.context_components) != null ? _c : [] }, /* @__PURE__ */ React__default.default.createElement(StoreProviders, null, /* @__PURE__ */ React__default.default.createElement(RootWrapper, null, /* @__PURE__ */ React__default.default.createElement(DynamicComponent$1, { component: template.layout }), /* @__PURE__ */ React__default.default.createElement(VariableStateProvider, { wsClient }), (config2 == null ? void 0 : config2.enable_devtools) && /* @__PURE__ */ React__default.default.createElement(DevTools, null))))
|
|
61142
61560
|
)));
|
|
61143
61561
|
}
|
|
61144
61562
|
const Wrapper$1 = styled__default.default.div`
|
|
@@ -61161,7 +61579,7 @@ Inferred class string: "${iconClasses}."`
|
|
|
61161
61579
|
function Root() {
|
|
61162
61580
|
const history2 = createBrowserHistory({ basename });
|
|
61163
61581
|
const syncOptions = useUrlSync({ history: history2 });
|
|
61164
|
-
return /* @__PURE__ */ React__default.default.createElement(reactQuery.QueryClientProvider, { client: queryClient }, /* @__PURE__ */ React__default.default.createElement(styled.ThemeProvider, { theme }, /* @__PURE__ */ React__default.default.createElement(ErrorBoundary$1, null, /* @__PURE__ */ React__default.default.createElement(importersCtx.Provider, { value: importers }, /* @__PURE__ */ React__default.default.createElement(directionCtx.Provider, { value: { direction: "row" } }, /* @__PURE__ */ React__default.default.createElement(Recoil_index_5, null, /* @__PURE__ */ React__default.default.createElement(RecoilSync_index_3, { ...syncOptions }, /* @__PURE__ */ React__default.default.createElement(Router, { history: history2 }, /* @__PURE__ */ React__default.default.createElement(AuthWrapper, null, /* @__PURE__ */ React__default.default.createElement(NotificationWrapper, null), /* @__PURE__ */ React__default.default.createElement(TemplateRoot, null))))))))));
|
|
61582
|
+
return /* @__PURE__ */ React__default.default.createElement(reactQuery.QueryClientProvider, { client: queryClient }, /* @__PURE__ */ React__default.default.createElement(styled.ThemeProvider, { theme }, /* @__PURE__ */ React__default.default.createElement(ErrorBoundary$1, null, /* @__PURE__ */ React__default.default.createElement(importersCtx.Provider, { value: importers }, /* @__PURE__ */ React__default.default.createElement(directionCtx.Provider, { value: { direction: "row" } }, /* @__PURE__ */ React__default.default.createElement(Recoil_index_5, null, /* @__PURE__ */ React__default.default.createElement(RecoilSync_index_3, { ...syncOptions }, /* @__PURE__ */ React__default.default.createElement(GlobalTaskProvider, null, /* @__PURE__ */ React__default.default.createElement(Router, { history: history2 }, /* @__PURE__ */ React__default.default.createElement(AuthWrapper, null, /* @__PURE__ */ React__default.default.createElement(NotificationWrapper, null), /* @__PURE__ */ React__default.default.createElement(TemplateRoot, null)))))))))));
|
|
61165
61583
|
}
|
|
61166
61584
|
const container = document.getElementById("dara_root");
|
|
61167
61585
|
const root2 = createRoot(container);
|
|
@@ -86550,7 +86968,7 @@ Inferred class string: "${iconClasses}."`
|
|
|
86550
86968
|
if (isMatrix) {
|
|
86551
86969
|
return val;
|
|
86552
86970
|
}
|
|
86553
|
-
return
|
|
86971
|
+
return null;
|
|
86554
86972
|
};
|
|
86555
86973
|
const DownloadVariable = async (ctx, actionImpl) => {
|
|
86556
86974
|
let value = getVariableValue(actionImpl.variable, true, {
|
|
@@ -86578,7 +86996,7 @@ Inferred class string: "${iconClasses}."`
|
|
|
86578
86996
|
return Promise.resolve();
|
|
86579
86997
|
}
|
|
86580
86998
|
const matrix = createMatrixFromValue(value);
|
|
86581
|
-
if (
|
|
86999
|
+
if (matrix === null) {
|
|
86582
87000
|
throw new Error("Unable to create matrix from value");
|
|
86583
87001
|
}
|
|
86584
87002
|
const notExcel = !actionImpl.type || actionImpl.type !== "xlsx";
|
|
@@ -86856,8 +87274,8 @@ Inferred class string: "${iconClasses}."`
|
|
|
86856
87274
|
function Menu(props) {
|
|
86857
87275
|
const directionCtx$1 = React.useContext(directionCtx);
|
|
86858
87276
|
return /* @__PURE__ */ React__default.default.createElement(React__default.default.Fragment, null, props.routes.map(({ icon: icon2, name, route }) => {
|
|
86859
|
-
const Icon2 = getIcon(icon2);
|
|
86860
|
-
return /* @__PURE__ */ React__default.default.createElement(MenuItem, { activeClassName: "selected", direction: directionCtx$1.direction, key: name, to: route }, /* @__PURE__ */ React__default.default.createElement(Icon2, { style: { marginRight: "0.5rem" } }), name);
|
|
87277
|
+
const Icon2 = icon2 ? getIcon(icon2) : null;
|
|
87278
|
+
return /* @__PURE__ */ React__default.default.createElement(MenuItem, { activeClassName: "selected", direction: directionCtx$1.direction, key: name, to: route }, Icon2 && /* @__PURE__ */ React__default.default.createElement(Icon2, { style: { marginRight: "0.5rem" } }), name);
|
|
86861
87279
|
}));
|
|
86862
87280
|
}
|
|
86863
87281
|
const PageNotFound = () => {
|
|
@@ -86869,7 +87287,7 @@ Inferred class string: "${iconClasses}."`
|
|
|
86869
87287
|
{
|
|
86870
87288
|
key: route,
|
|
86871
87289
|
path: route,
|
|
86872
|
-
render: () => /* @__PURE__ */ React__default.default.createElement(PrivateRoute, { name, on_load }, /* @__PURE__ */ React__default.default.createElement(DynamicComponent, { component: content }))
|
|
87290
|
+
render: () => /* @__PURE__ */ React__default.default.createElement(PrivateRoute, { name, on_load }, /* @__PURE__ */ React__default.default.createElement(DynamicComponent$1, { component: content }))
|
|
86873
87291
|
}
|
|
86874
87292
|
)), /* @__PURE__ */ React__default.default.createElement(Route, { exact: true, path: "/", render: () => /* @__PURE__ */ React__default.default.createElement(Redirect, { to: props.routes[0].route }) }), /* @__PURE__ */ React__default.default.createElement(Route, { component: PageNotFound }));
|
|
86875
87293
|
}
|
|
@@ -86968,7 +87386,7 @@ Inferred class string: "${iconClasses}."`
|
|
|
86968
87386
|
const causalensLogoSrc = theme2.themeType === "dark" ? CausalensDark : CausalensLight;
|
|
86969
87387
|
const daraLogo = /* @__PURE__ */ React__default.default.createElement("img", { alt: "Dara Logo", src: logoSrc });
|
|
86970
87388
|
const causalensLogo = /* @__PURE__ */ React__default.default.createElement("img", { alt: "causaLens Logo", src: causalensLogoSrc });
|
|
86971
|
-
return /* @__PURE__ */ React__default.default.createElement(Wrapper$1, { backgroundColor: theme2.colors.background }, props.side_bar_position === "right" && /* @__PURE__ */ React__default.default.createElement(Wrapper$1, null, props.content && /* @__PURE__ */ React__default.default.createElement(DynamicComponent, { component: props.content })), /* @__PURE__ */ React__default.default.createElement(styled.ThemeContext.Provider, { value: resolveTheme((_a = config2 == null ? void 0 : config2.theme) == null ? void 0 : _a.main, (_b = config2 == null ? void 0 : config2.theme) == null ? void 0 : _b.base) }, /* @__PURE__ */ React__default.default.createElement(SideBar, { style: { padding: props.side_bar_padding }, width: props.side_bar_width }, !props.hide_logo && props.logo_position !== "bottom" && logo, /* @__PURE__ */ React__default.default.createElement(Wrapper$1, { direction: "column" }, /* @__PURE__ */ React__default.default.createElement(directionCtx.Provider, { value: { direction: "column" } }, props.side_bar && /* @__PURE__ */ React__default.default.createElement(DynamicComponent, { component: props.side_bar }))), !props.hide_logo && props.logo_position === "bottom" && logo, /* @__PURE__ */ React__default.default.createElement(LogoutButton$1, { href: "/logout", styling: "error" }, /* @__PURE__ */ React__default.default.createElement(LogoutArrow$1, { style: { marginRight: "0.5rem" } }), "Logout"), /* @__PURE__ */ React__default.default.createElement(BuiltWithLink, { href: "https://github.com/causalens/dara", target: "_blank", rel: "noopener noreferrer" }, "Built with ", daraLogo), (config2 == null ? void 0 : config2.powered_by_causalens) && /* @__PURE__ */ React__default.default.createElement(
|
|
87389
|
+
return /* @__PURE__ */ React__default.default.createElement(Wrapper$1, { backgroundColor: theme2.colors.background }, props.side_bar_position === "right" && /* @__PURE__ */ React__default.default.createElement(Wrapper$1, null, props.content && /* @__PURE__ */ React__default.default.createElement(DynamicComponent$1, { component: props.content })), /* @__PURE__ */ React__default.default.createElement(styled.ThemeContext.Provider, { value: resolveTheme((_a = config2 == null ? void 0 : config2.theme) == null ? void 0 : _a.main, (_b = config2 == null ? void 0 : config2.theme) == null ? void 0 : _b.base) }, /* @__PURE__ */ React__default.default.createElement(SideBar, { style: { padding: props.side_bar_padding }, width: props.side_bar_width }, !props.hide_logo && props.logo_position !== "bottom" && logo, /* @__PURE__ */ React__default.default.createElement(Wrapper$1, { direction: "column" }, /* @__PURE__ */ React__default.default.createElement(directionCtx.Provider, { value: { direction: "column" } }, props.side_bar && /* @__PURE__ */ React__default.default.createElement(DynamicComponent$1, { component: props.side_bar }))), !props.hide_logo && props.logo_position === "bottom" && logo, /* @__PURE__ */ React__default.default.createElement(LogoutButton$1, { href: "/logout", styling: "error" }, /* @__PURE__ */ React__default.default.createElement(LogoutArrow$1, { style: { marginRight: "0.5rem" } }), "Logout"), /* @__PURE__ */ React__default.default.createElement(BuiltWithLink, { href: "https://github.com/causalens/dara", target: "_blank", rel: "noopener noreferrer" }, "Built with ", daraLogo), (config2 == null ? void 0 : config2.powered_by_causalens) && /* @__PURE__ */ React__default.default.createElement(
|
|
86972
87390
|
BuiltWithLink,
|
|
86973
87391
|
{
|
|
86974
87392
|
href: "https://causalens.com/?utm_source=dara&utm_medium=direct&utm_campaign=dara_platform",
|
|
@@ -86978,7 +87396,7 @@ Inferred class string: "${iconClasses}."`
|
|
|
86978
87396
|
/* @__PURE__ */ React__default.default.createElement("span", { style: { marginTop: "0.4375rem" } }, "Powered by"),
|
|
86979
87397
|
" ",
|
|
86980
87398
|
causalensLogo
|
|
86981
|
-
))), props.side_bar_position !== "right" && /* @__PURE__ */ React__default.default.createElement(Wrapper$1, { style: { padding: "2rem 3rem" } }, props.content && /* @__PURE__ */ React__default.default.createElement(DynamicComponent, { component: props.content })));
|
|
87399
|
+
))), props.side_bar_position !== "right" && /* @__PURE__ */ React__default.default.createElement(Wrapper$1, { style: { padding: "2rem 3rem" } }, props.content && /* @__PURE__ */ React__default.default.createElement(DynamicComponent$1, { component: props.content })));
|
|
86982
87400
|
}
|
|
86983
87401
|
const shouldForwardProp = (prop) => !["width"].includes(prop);
|
|
86984
87402
|
const TopBar = styled__default.default.div.withConfig({ shouldForwardProp })`
|
|
@@ -87062,7 +87480,7 @@ Inferred class string: "${iconClasses}."`
|
|
|
87062
87480
|
const logo = props.logo_path && /* @__PURE__ */ React__default.default.createElement(LogoImage, { alt: "Logo", src: prependBaseUrl(props.logo_path), width: props.logo_width });
|
|
87063
87481
|
const logoSrc = theme2.themeType === "dark" ? DaraDark : DaraLight;
|
|
87064
87482
|
const daraLogo = /* @__PURE__ */ React__default.default.createElement("img", { alt: "Dara", src: logoSrc });
|
|
87065
|
-
return /* @__PURE__ */ React__default.default.createElement(Wrapper$1, { backgroundColor: theme2.colors.background, direction: "column" }, /* @__PURE__ */ React__default.default.createElement(styled.ThemeContext.Provider, { value: resolveTheme((_a = config2 == null ? void 0 : config2.theme) == null ? void 0 : _a.main, (_b = config2 == null ? void 0 : config2.theme) == null ? void 0 : _b.base) }, /* @__PURE__ */ React__default.default.createElement(TopBar, { height: props.top_bar_height, style: { padding: props.top_bar_padding } }, /* @__PURE__ */ React__default.default.createElement(TopBarContent, null, !props.hide_logo && logo, props.top_bar && /* @__PURE__ */ React__default.default.createElement(RouteButtons, { direction: "row" }, /* @__PURE__ */ React__default.default.createElement(directionCtx.Provider, { value: { direction: "row" } }, props.top_bar && /* @__PURE__ */ React__default.default.createElement(DynamicComponent, { component: props.top_bar }))), /* @__PURE__ */ React__default.default.createElement(LogoutButton, { href: "/logout", styling: "error" }, /* @__PURE__ */ React__default.default.createElement(LogoutArrow, { style: { marginRight: "0.5rem" } }), "Logout")), /* @__PURE__ */ React__default.default.createElement(BuiltWithSpan, null, "Built with ", daraLogo))), /* @__PURE__ */ React__default.default.createElement(Wrapper$1, { style: { padding: "2rem 3rem" } }, props.content && /* @__PURE__ */ React__default.default.createElement(DynamicComponent, { component: props.content })));
|
|
87483
|
+
return /* @__PURE__ */ React__default.default.createElement(Wrapper$1, { backgroundColor: theme2.colors.background, direction: "column" }, /* @__PURE__ */ React__default.default.createElement(styled.ThemeContext.Provider, { value: resolveTheme((_a = config2 == null ? void 0 : config2.theme) == null ? void 0 : _a.main, (_b = config2 == null ? void 0 : config2.theme) == null ? void 0 : _b.base) }, /* @__PURE__ */ React__default.default.createElement(TopBar, { height: props.top_bar_height, style: { padding: props.top_bar_padding } }, /* @__PURE__ */ React__default.default.createElement(TopBarContent, null, !props.hide_logo && logo, props.top_bar && /* @__PURE__ */ React__default.default.createElement(RouteButtons, { direction: "row" }, /* @__PURE__ */ React__default.default.createElement(directionCtx.Provider, { value: { direction: "row" } }, props.top_bar && /* @__PURE__ */ React__default.default.createElement(DynamicComponent$1, { component: props.top_bar }))), /* @__PURE__ */ React__default.default.createElement(LogoutButton, { href: "/logout", styling: "error" }, /* @__PURE__ */ React__default.default.createElement(LogoutArrow, { style: { marginRight: "0.5rem" } }), "Logout")), /* @__PURE__ */ React__default.default.createElement(BuiltWithSpan, null, "Built with ", daraLogo))), /* @__PURE__ */ React__default.default.createElement(Wrapper$1, { style: { padding: "2rem 3rem" } }, props.content && /* @__PURE__ */ React__default.default.createElement(DynamicComponent$1, { component: props.content })));
|
|
87066
87484
|
}
|
|
87067
87485
|
const RowDots = styled__default.default(Dots)`
|
|
87068
87486
|
height: 2.5rem;
|
|
@@ -87072,6 +87490,76 @@ Inferred class string: "${iconClasses}."`
|
|
|
87072
87490
|
const [style, css2] = useComponentStyles(props);
|
|
87073
87491
|
return /* @__PURE__ */ React__default.default.createElement(StyledDots, { $rawCss: css2, style });
|
|
87074
87492
|
}
|
|
87493
|
+
const createItemData = (items, renderer, markers, getItemKey) => ({
|
|
87494
|
+
items,
|
|
87495
|
+
renderer,
|
|
87496
|
+
markers,
|
|
87497
|
+
getItemKey
|
|
87498
|
+
});
|
|
87499
|
+
const ForChild = React__namespace.memo((props) => {
|
|
87500
|
+
const transformedRenderer = React__namespace.useMemo(() => {
|
|
87501
|
+
let component;
|
|
87502
|
+
try {
|
|
87503
|
+
component = applyMarkers(
|
|
87504
|
+
props.data.renderer,
|
|
87505
|
+
props.data.markers,
|
|
87506
|
+
props.data.items[props.index],
|
|
87507
|
+
props.data.getItemKey(props.index, props.data)
|
|
87508
|
+
);
|
|
87509
|
+
} catch (e2) {
|
|
87510
|
+
console.error("Failed to apply markers", e2);
|
|
87511
|
+
component = cloneDeep_1(props.data.renderer);
|
|
87512
|
+
}
|
|
87513
|
+
component.props.style = { ...component.props.style, ...props.style };
|
|
87514
|
+
return component;
|
|
87515
|
+
}, [props.data, props.index, props.style]);
|
|
87516
|
+
return /* @__PURE__ */ React__namespace.createElement(DynamicComponent$1, { component: transformedRenderer });
|
|
87517
|
+
}, isEqual_1);
|
|
87518
|
+
function ForImpl(props) {
|
|
87519
|
+
const items = useAnyVariable(props.items);
|
|
87520
|
+
const markers = React__namespace.useMemo(() => getInjectionMarkers(props.renderer), [props.renderer]);
|
|
87521
|
+
const key = React__namespace.useMemo(() => {
|
|
87522
|
+
var _a, _b;
|
|
87523
|
+
return (_b = (_a = props.key_accessor) == null ? void 0 : _a.split(".")) != null ? _b : null;
|
|
87524
|
+
}, [props.key_accessor]);
|
|
87525
|
+
const getItemKey = React__namespace.useCallback(
|
|
87526
|
+
(index2, data) => key ? resolveNested(data.items[index2], key) : index2,
|
|
87527
|
+
[key]
|
|
87528
|
+
);
|
|
87529
|
+
const itemData = React__namespace.useMemo(
|
|
87530
|
+
() => createItemData(items, props.renderer, markers, getItemKey),
|
|
87531
|
+
[items, props.renderer, markers, getItemKey]
|
|
87532
|
+
);
|
|
87533
|
+
const getItemSize = React__namespace.useCallback(
|
|
87534
|
+
(index2) => {
|
|
87535
|
+
if (typeof props.virtualization.size === "string") {
|
|
87536
|
+
return items[index2][props.virtualization.size];
|
|
87537
|
+
}
|
|
87538
|
+
return props.virtualization.size;
|
|
87539
|
+
},
|
|
87540
|
+
[props.virtualization, items]
|
|
87541
|
+
);
|
|
87542
|
+
if (props.virtualization === null) {
|
|
87543
|
+
return /* @__PURE__ */ React__namespace.createElement(fallbackCtx.Provider, { value: { suspend: props.suspend } }, items.map((_, index2) => /* @__PURE__ */ React__namespace.createElement(ForChild, { key: getItemKey(index2, itemData), data: itemData, index: index2, style: {} })));
|
|
87544
|
+
}
|
|
87545
|
+
return /* @__PURE__ */ React__namespace.createElement(fallbackCtx.Provider, { value: { suspend: props.suspend } }, /* @__PURE__ */ React__namespace.createElement(AutoSizer, null, ({ width, height }) => /* @__PURE__ */ React__namespace.createElement(
|
|
87546
|
+
VariableSizeList,
|
|
87547
|
+
{
|
|
87548
|
+
height,
|
|
87549
|
+
width,
|
|
87550
|
+
itemCount: items.length,
|
|
87551
|
+
itemData,
|
|
87552
|
+
itemKey: getItemKey,
|
|
87553
|
+
itemSize: getItemSize,
|
|
87554
|
+
layout: props.virtualization.direction
|
|
87555
|
+
},
|
|
87556
|
+
ForChild
|
|
87557
|
+
)));
|
|
87558
|
+
}
|
|
87559
|
+
function For(props) {
|
|
87560
|
+
const { suspend } = useFallbackCtx();
|
|
87561
|
+
return /* @__PURE__ */ React__namespace.createElement(fallbackCtx.Provider, { value: { suspend: false } }, /* @__PURE__ */ React__namespace.createElement(ForImpl, { ...props, suspend }));
|
|
87562
|
+
}
|
|
87075
87563
|
exports.BasicAuthLogin = BasicAuthLogin;
|
|
87076
87564
|
exports.BasicAuthLogout = BasicAuthLogout;
|
|
87077
87565
|
exports.Center = Center;
|
|
@@ -87081,9 +87569,10 @@ Inferred class string: "${iconClasses}."`
|
|
|
87081
87569
|
exports.DefaultFallback = DefaultFallback;
|
|
87082
87570
|
exports.DisplayCtx = displayCtx;
|
|
87083
87571
|
exports.DownloadVariable = DownloadVariable;
|
|
87084
|
-
exports.DynamicComponent = DynamicComponent;
|
|
87572
|
+
exports.DynamicComponent = DynamicComponent$1;
|
|
87085
87573
|
exports.EventBus = EventBus;
|
|
87086
87574
|
exports.EventCapturer = EventCapturer;
|
|
87575
|
+
exports.For = For;
|
|
87087
87576
|
exports.Menu = Menu;
|
|
87088
87577
|
exports.NavigateTo = NavigateTo;
|
|
87089
87578
|
exports.Notifications = index$1;
|
|
@@ -87102,7 +87591,9 @@ Inferred class string: "${iconClasses}."`
|
|
|
87102
87591
|
exports.WebSocketCtx = websocketCtx;
|
|
87103
87592
|
exports.combineFilters = combineFilters;
|
|
87104
87593
|
exports.default = run;
|
|
87594
|
+
exports.getComponentRegistryKey = getComponentRegistryKey;
|
|
87105
87595
|
exports.getIcon = getIcon;
|
|
87596
|
+
exports.getRegistryKey = getRegistryKey;
|
|
87106
87597
|
exports.getSessionToken = getSessionToken;
|
|
87107
87598
|
exports.getToken = getToken;
|
|
87108
87599
|
exports.getTokenKey = getTokenKey;
|
|
@@ -87121,6 +87612,8 @@ Inferred class string: "${iconClasses}."`
|
|
|
87121
87612
|
exports.useComponentStyles = useComponentStyles;
|
|
87122
87613
|
exports.useDataVariable = useDataVariable;
|
|
87123
87614
|
exports.useEventBus = useEventBus;
|
|
87615
|
+
exports.useRefreshSelector = useRefreshSelector;
|
|
87616
|
+
exports.useRefreshServerComponent = useRefreshServerComponent;
|
|
87124
87617
|
exports.useRequestExtras = useRequestExtras;
|
|
87125
87618
|
exports.useSessionToken = useSessionToken;
|
|
87126
87619
|
exports.useUser = useUser;
|