@teselagen/ui 0.0.8 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +440 -867
- package/index.mjs +440 -867
- package/index.umd.js +427 -854
- package/package.json +1 -1
package/index.umd.js
CHANGED
|
@@ -1763,7 +1763,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
1763
1763
|
}
|
|
1764
1764
|
__name(getFormattedMessage, "getFormattedMessage");
|
|
1765
1765
|
var visitedMessages;
|
|
1766
|
-
if (
|
|
1766
|
+
if (production !== "production") {
|
|
1767
1767
|
resetVisitedMessages();
|
|
1768
1768
|
}
|
|
1769
1769
|
function resetVisitedMessages() {
|
|
@@ -1861,7 +1861,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
1861
1861
|
}, pluginProps, renderProps);
|
|
1862
1862
|
var defaultKeys = Object.keys(defaultProps$3);
|
|
1863
1863
|
var setDefaultProps = /* @__PURE__ */ __name(function setDefaultProps2(partialProps) {
|
|
1864
|
-
if (
|
|
1864
|
+
if (production !== "production") {
|
|
1865
1865
|
validateProps(partialProps, []);
|
|
1866
1866
|
}
|
|
1867
1867
|
var keys2 = Object.keys(partialProps);
|
|
@@ -2102,7 +2102,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
2102
2102
|
destroy
|
|
2103
2103
|
};
|
|
2104
2104
|
if (!props.render) {
|
|
2105
|
-
if (
|
|
2105
|
+
if (production !== "production") {
|
|
2106
2106
|
errorWhen(true, "render() function has not been supplied.");
|
|
2107
2107
|
}
|
|
2108
2108
|
return instance;
|
|
@@ -2551,7 +2551,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
2551
2551
|
}
|
|
2552
2552
|
instance.state.isMounted = true;
|
|
2553
2553
|
createPopperInstance();
|
|
2554
|
-
if (
|
|
2554
|
+
if (production !== "production") {
|
|
2555
2555
|
warnWhen(instance.props.interactive && appendTo === defaultProps$3.appendTo && node2.nextElementSibling !== popper2, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", "\n\n", "Using a wrapper <div> or <span> tag around the reference element", "solves this by creating a new parentNode context.", "\n\n", "Specifying `appendTo: document.body` silences this warning, but it", "assumes you are using a focus management solution to handle", "keyboard navigation.", "\n\n", "See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "));
|
|
2556
2556
|
}
|
|
2557
2557
|
}
|
|
@@ -2620,7 +2620,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
2620
2620
|
}
|
|
2621
2621
|
__name(clearDelayTimeouts, "clearDelayTimeouts");
|
|
2622
2622
|
function setProps(partialProps) {
|
|
2623
|
-
if (
|
|
2623
|
+
if (production !== "production") {
|
|
2624
2624
|
warnWhen(instance.state.isDestroyed, createMemoryLeakWarning("setProps"));
|
|
2625
2625
|
}
|
|
2626
2626
|
if (instance.state.isDestroyed) {
|
|
@@ -2666,7 +2666,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
2666
2666
|
}
|
|
2667
2667
|
__name(setContent2, "setContent");
|
|
2668
2668
|
function show() {
|
|
2669
|
-
if (
|
|
2669
|
+
if (production !== "production") {
|
|
2670
2670
|
warnWhen(instance.state.isDestroyed, createMemoryLeakWarning("show"));
|
|
2671
2671
|
}
|
|
2672
2672
|
var isAlreadyVisible = instance.state.isVisible;
|
|
@@ -2726,7 +2726,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
2726
2726
|
}
|
|
2727
2727
|
__name(show, "show");
|
|
2728
2728
|
function hide2() {
|
|
2729
|
-
if (
|
|
2729
|
+
if (production !== "production") {
|
|
2730
2730
|
warnWhen(instance.state.isDestroyed, createMemoryLeakWarning("hide"));
|
|
2731
2731
|
}
|
|
2732
2732
|
var isAlreadyHidden = !instance.state.isVisible;
|
|
@@ -2769,7 +2769,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
2769
2769
|
}
|
|
2770
2770
|
__name(hide2, "hide");
|
|
2771
2771
|
function hideWithInteractivity(event) {
|
|
2772
|
-
if (
|
|
2772
|
+
if (production !== "production") {
|
|
2773
2773
|
warnWhen(instance.state.isDestroyed, createMemoryLeakWarning("hideWithInteractivity"));
|
|
2774
2774
|
}
|
|
2775
2775
|
getDocument().addEventListener("mousemove", debouncedOnMouseMove);
|
|
@@ -2778,7 +2778,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
2778
2778
|
}
|
|
2779
2779
|
__name(hideWithInteractivity, "hideWithInteractivity");
|
|
2780
2780
|
function unmount() {
|
|
2781
|
-
if (
|
|
2781
|
+
if (production !== "production") {
|
|
2782
2782
|
warnWhen(instance.state.isDestroyed, createMemoryLeakWarning("unmount"));
|
|
2783
2783
|
}
|
|
2784
2784
|
if (instance.state.isVisible) {
|
|
@@ -2802,7 +2802,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
2802
2802
|
}
|
|
2803
2803
|
__name(unmount, "unmount");
|
|
2804
2804
|
function destroy() {
|
|
2805
|
-
if (
|
|
2805
|
+
if (production !== "production") {
|
|
2806
2806
|
warnWhen(instance.state.isDestroyed, createMemoryLeakWarning("destroy"));
|
|
2807
2807
|
}
|
|
2808
2808
|
if (instance.state.isDestroyed) {
|
|
@@ -2823,7 +2823,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
2823
2823
|
optionalProps = {};
|
|
2824
2824
|
}
|
|
2825
2825
|
var plugins = defaultProps$3.plugins.concat(optionalProps.plugins || []);
|
|
2826
|
-
if (
|
|
2826
|
+
if (production !== "production") {
|
|
2827
2827
|
validateTargets(targets);
|
|
2828
2828
|
validateProps(optionalProps, plugins);
|
|
2829
2829
|
}
|
|
@@ -2832,7 +2832,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
2832
2832
|
plugins
|
|
2833
2833
|
});
|
|
2834
2834
|
var elements = getArrayOfElements(targets);
|
|
2835
|
-
if (
|
|
2835
|
+
if (production !== "production") {
|
|
2836
2836
|
var isSingleContentElement = isElement$1(passedProps.content);
|
|
2837
2837
|
var isMoreThanOneReferenceElement = elements.length > 1;
|
|
2838
2838
|
warnWhen(isSingleContentElement && isMoreThanOneReferenceElement, ["tippy() was passed an Element as the `content` prop, but more than", "one tippy instance was created by this invocation. This means the", "content element will only be appended to the last tippy instance.", "\n\n", "Instead, pass the .innerHTML of the element, or use a function that", "returns a cloned version of the element instead.", "\n\n", "1) content: element.innerHTML\n", "2) content: () => element.cloneNode(true)"].join(" "));
|
|
@@ -3011,10 +3011,10 @@ var __async = (__this, __arguments, generator) => {
|
|
|
3011
3011
|
}, "bind");
|
|
3012
3012
|
var bind$3 = bind$4;
|
|
3013
3013
|
var toString$8 = Object.prototype.toString;
|
|
3014
|
-
function isArray$
|
|
3014
|
+
function isArray$o(val) {
|
|
3015
3015
|
return toString$8.call(val) === "[object Array]";
|
|
3016
3016
|
}
|
|
3017
|
-
__name(isArray$
|
|
3017
|
+
__name(isArray$o, "isArray$o");
|
|
3018
3018
|
function isUndefined$1(val) {
|
|
3019
3019
|
return typeof val === "undefined";
|
|
3020
3020
|
}
|
|
@@ -3041,10 +3041,10 @@ var __async = (__this, __arguments, generator) => {
|
|
|
3041
3041
|
return result;
|
|
3042
3042
|
}
|
|
3043
3043
|
__name(isArrayBufferView, "isArrayBufferView");
|
|
3044
|
-
function isString$
|
|
3044
|
+
function isString$3(val) {
|
|
3045
3045
|
return typeof val === "string";
|
|
3046
3046
|
}
|
|
3047
|
-
__name(isString$
|
|
3047
|
+
__name(isString$3, "isString$3");
|
|
3048
3048
|
function isNumber$2(val) {
|
|
3049
3049
|
return typeof val === "number";
|
|
3050
3050
|
}
|
|
@@ -3103,7 +3103,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
3103
3103
|
if (typeof obj !== "object") {
|
|
3104
3104
|
obj = [obj];
|
|
3105
3105
|
}
|
|
3106
|
-
if (isArray$
|
|
3106
|
+
if (isArray$o(obj)) {
|
|
3107
3107
|
for (var i2 = 0, l2 = obj.length; i2 < l2; i2++) {
|
|
3108
3108
|
fn2.call(null, obj[i2], i2, obj);
|
|
3109
3109
|
}
|
|
@@ -3123,7 +3123,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
3123
3123
|
result[key2] = merge$4(result[key2], val);
|
|
3124
3124
|
} else if (isPlainObject$5(val)) {
|
|
3125
3125
|
result[key2] = merge$4({}, val);
|
|
3126
|
-
} else if (isArray$
|
|
3126
|
+
} else if (isArray$o(val)) {
|
|
3127
3127
|
result[key2] = val.slice();
|
|
3128
3128
|
} else {
|
|
3129
3129
|
result[key2] = val;
|
|
@@ -3155,12 +3155,12 @@ var __async = (__this, __arguments, generator) => {
|
|
|
3155
3155
|
}
|
|
3156
3156
|
__name(stripBOM, "stripBOM");
|
|
3157
3157
|
var utils$c = {
|
|
3158
|
-
isArray: isArray$
|
|
3158
|
+
isArray: isArray$o,
|
|
3159
3159
|
isArrayBuffer,
|
|
3160
3160
|
isBuffer: isBuffer$9,
|
|
3161
3161
|
isFormData,
|
|
3162
3162
|
isArrayBufferView,
|
|
3163
|
-
isString: isString$
|
|
3163
|
+
isString: isString$3,
|
|
3164
3164
|
isNumber: isNumber$2,
|
|
3165
3165
|
isObject: isObject$h,
|
|
3166
3166
|
isPlainObject: isPlainObject$5,
|
|
@@ -4438,7 +4438,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
4438
4438
|
if (hasRequiredReactIs_development$1)
|
|
4439
4439
|
return reactIs_development$1;
|
|
4440
4440
|
hasRequiredReactIs_development$1 = 1;
|
|
4441
|
-
if (
|
|
4441
|
+
if (production !== "production") {
|
|
4442
4442
|
(function() {
|
|
4443
4443
|
var hasSymbol2 = typeof Symbol === "function" && Symbol.for;
|
|
4444
4444
|
var REACT_ELEMENT_TYPE = hasSymbol2 ? Symbol.for("react.element") : 60103;
|
|
@@ -4608,7 +4608,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
4608
4608
|
if (hasRequiredReactIs)
|
|
4609
4609
|
return reactIs$1.exports;
|
|
4610
4610
|
hasRequiredReactIs = 1;
|
|
4611
|
-
if (
|
|
4611
|
+
if (production === "production") {
|
|
4612
4612
|
reactIs$1.exports = requireReactIs_production_min$1();
|
|
4613
4613
|
} else {
|
|
4614
4614
|
reactIs$1.exports = requireReactIs_development$1();
|
|
@@ -4724,7 +4724,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
4724
4724
|
hasRequiredCheckPropTypes = 1;
|
|
4725
4725
|
var printWarning2 = /* @__PURE__ */ __name(function() {
|
|
4726
4726
|
}, "printWarning");
|
|
4727
|
-
if (
|
|
4727
|
+
if (production !== "production") {
|
|
4728
4728
|
var ReactPropTypesSecret = requireReactPropTypesSecret();
|
|
4729
4729
|
var loggedTypeFailures = {};
|
|
4730
4730
|
var has2 = requireHas();
|
|
@@ -4740,7 +4740,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
4740
4740
|
}, "printWarning");
|
|
4741
4741
|
}
|
|
4742
4742
|
function checkPropTypes(typeSpecs, values, location2, componentName, getStack) {
|
|
4743
|
-
if (
|
|
4743
|
+
if (production !== "production") {
|
|
4744
4744
|
for (var typeSpecName in typeSpecs) {
|
|
4745
4745
|
if (has2(typeSpecs, typeSpecName)) {
|
|
4746
4746
|
var error;
|
|
@@ -4774,7 +4774,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
4774
4774
|
}
|
|
4775
4775
|
__name(checkPropTypes, "checkPropTypes");
|
|
4776
4776
|
checkPropTypes.resetWarningCache = function() {
|
|
4777
|
-
if (
|
|
4777
|
+
if (production !== "production") {
|
|
4778
4778
|
loggedTypeFailures = {};
|
|
4779
4779
|
}
|
|
4780
4780
|
};
|
|
@@ -4795,7 +4795,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
4795
4795
|
var checkPropTypes = requireCheckPropTypes();
|
|
4796
4796
|
var printWarning2 = /* @__PURE__ */ __name(function() {
|
|
4797
4797
|
}, "printWarning");
|
|
4798
|
-
if (
|
|
4798
|
+
if (production !== "production") {
|
|
4799
4799
|
printWarning2 = /* @__PURE__ */ __name(function(text2) {
|
|
4800
4800
|
var message = "Warning: " + text2;
|
|
4801
4801
|
if (typeof console !== "undefined") {
|
|
@@ -4859,7 +4859,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
4859
4859
|
__name(PropTypeError, "PropTypeError");
|
|
4860
4860
|
PropTypeError.prototype = Error.prototype;
|
|
4861
4861
|
function createChainableTypeChecker(validate) {
|
|
4862
|
-
if (
|
|
4862
|
+
if (production !== "production") {
|
|
4863
4863
|
var manualPropTypeCallCache = {};
|
|
4864
4864
|
var manualPropTypeWarningCount = 0;
|
|
4865
4865
|
}
|
|
@@ -4873,7 +4873,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
4873
4873
|
);
|
|
4874
4874
|
err.name = "Invariant Violation";
|
|
4875
4875
|
throw err;
|
|
4876
|
-
} else if (
|
|
4876
|
+
} else if (production !== "production" && typeof console !== "undefined") {
|
|
4877
4877
|
var cacheKey = componentName + ":" + propName;
|
|
4878
4878
|
if (!manualPropTypeCallCache[cacheKey] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
4879
4879
|
manualPropTypeWarningCount < 3) {
|
|
@@ -4987,7 +4987,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
4987
4987
|
__name(createInstanceTypeChecker, "createInstanceTypeChecker");
|
|
4988
4988
|
function createEnumTypeChecker(expectedValues) {
|
|
4989
4989
|
if (!Array.isArray(expectedValues)) {
|
|
4990
|
-
if (
|
|
4990
|
+
if (production !== "production") {
|
|
4991
4991
|
if (arguments.length > 1) {
|
|
4992
4992
|
printWarning2(
|
|
4993
4993
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
@@ -5044,7 +5044,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
5044
5044
|
__name(createObjectOfTypeChecker, "createObjectOfTypeChecker");
|
|
5045
5045
|
function createUnionTypeChecker(arrayOfTypeCheckers) {
|
|
5046
5046
|
if (!Array.isArray(arrayOfTypeCheckers)) {
|
|
5047
|
-
|
|
5047
|
+
production !== "production" ? printWarning2("Invalid argument supplied to oneOfType, expected an instance of array.") : void 0;
|
|
5048
5048
|
return emptyFunctionThatReturnsNull;
|
|
5049
5049
|
}
|
|
5050
5050
|
for (var i2 = 0; i2 < arrayOfTypeCheckers.length; i2++) {
|
|
@@ -5323,7 +5323,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
5323
5323
|
return factoryWithThrowingShims;
|
|
5324
5324
|
}
|
|
5325
5325
|
__name(requireFactoryWithThrowingShims, "requireFactoryWithThrowingShims");
|
|
5326
|
-
if (
|
|
5326
|
+
if (production !== "production") {
|
|
5327
5327
|
var ReactIs$1 = requireReactIs();
|
|
5328
5328
|
var throwOnDirectAccess = true;
|
|
5329
5329
|
propTypes$1.exports = requireFactoryWithTypeCheckers()(ReactIs$1.isElement, throwOnDirectAccess);
|
|
@@ -7605,12 +7605,12 @@ var __async = (__this, __arguments, generator) => {
|
|
|
7605
7605
|
38: "'ownKeys()' can only be used on observable objects",
|
|
7606
7606
|
39: "'defineProperty()' can only be used on observable objects"
|
|
7607
7607
|
};
|
|
7608
|
-
var errors =
|
|
7608
|
+
var errors = production !== "production" ? niceErrors : {};
|
|
7609
7609
|
function die(error) {
|
|
7610
7610
|
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
7611
7611
|
args[_key - 1] = arguments[_key];
|
|
7612
7612
|
}
|
|
7613
|
-
if (
|
|
7613
|
+
if (production !== "production") {
|
|
7614
7614
|
var e = typeof error === "string" ? error : errors[error];
|
|
7615
7615
|
if (typeof e === "function")
|
|
7616
7616
|
e = e.apply(null, args);
|
|
@@ -7648,12 +7648,12 @@ var __async = (__this, __arguments, generator) => {
|
|
|
7648
7648
|
var plainObjectString = /* @__PURE__ */ Object.toString();
|
|
7649
7649
|
function assertProxies() {
|
|
7650
7650
|
if (!hasProxy) {
|
|
7651
|
-
die(
|
|
7651
|
+
die(production !== "production" ? "`Proxy` objects are not available in the current environment. Please configure MobX to enable a fallback implementation.`" : "Proxy not available");
|
|
7652
7652
|
}
|
|
7653
7653
|
}
|
|
7654
7654
|
__name(assertProxies, "assertProxies");
|
|
7655
7655
|
function warnAboutProxyRequirement(msg) {
|
|
7656
|
-
if (
|
|
7656
|
+
if (production !== "production" && globalState.verifyProxies) {
|
|
7657
7657
|
die("MobX is currently configured to be able to run in ES5 mode, but in ES5 MobX won't be able to " + msg);
|
|
7658
7658
|
}
|
|
7659
7659
|
}
|
|
@@ -7782,10 +7782,10 @@ var __async = (__this, __arguments, generator) => {
|
|
|
7782
7782
|
return new String(key2).toString();
|
|
7783
7783
|
}
|
|
7784
7784
|
__name(stringifyKey, "stringifyKey");
|
|
7785
|
-
function toPrimitive$
|
|
7785
|
+
function toPrimitive$2(value) {
|
|
7786
7786
|
return value === null ? null : typeof value === "object" ? "" + value : value;
|
|
7787
7787
|
}
|
|
7788
|
-
__name(toPrimitive$
|
|
7788
|
+
__name(toPrimitive$2, "toPrimitive$2");
|
|
7789
7789
|
function hasProp(target, prop) {
|
|
7790
7790
|
return objectPrototype$1.hasOwnProperty.call(target, prop);
|
|
7791
7791
|
}
|
|
@@ -7930,7 +7930,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
7930
7930
|
if (!hasProp(prototype, storedAnnotationsSymbol)) {
|
|
7931
7931
|
addHiddenProp(prototype, storedAnnotationsSymbol, _extends$o({}, prototype[storedAnnotationsSymbol]));
|
|
7932
7932
|
}
|
|
7933
|
-
if (
|
|
7933
|
+
if (production !== "production" && isOverride(annotation) && !hasProp(prototype[storedAnnotationsSymbol], key2)) {
|
|
7934
7934
|
var fieldName = prototype.constructor.name + ".prototype." + key2.toString();
|
|
7935
7935
|
die("'" + fieldName + "' is decorated with 'override', but no such decorated member was found on prototype.");
|
|
7936
7936
|
}
|
|
@@ -7941,7 +7941,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
7941
7941
|
}
|
|
7942
7942
|
__name(storeAnnotation, "storeAnnotation");
|
|
7943
7943
|
function assertNotDecorated(prototype, annotation, key2) {
|
|
7944
|
-
if (
|
|
7944
|
+
if (production !== "production" && !isOverride(annotation) && hasProp(prototype[storedAnnotationsSymbol], key2)) {
|
|
7945
7945
|
var fieldName = prototype.constructor.name + ".prototype." + key2.toString();
|
|
7946
7946
|
var currentAnnotationType = prototype[storedAnnotationsSymbol][key2].annotationType_;
|
|
7947
7947
|
var requestedAnnotationType = annotation.annotationType_;
|
|
@@ -7951,7 +7951,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
7951
7951
|
__name(assertNotDecorated, "assertNotDecorated");
|
|
7952
7952
|
function collectStoredAnnotations(target) {
|
|
7953
7953
|
if (!hasProp(target, storedAnnotationsSymbol)) {
|
|
7954
|
-
if (
|
|
7954
|
+
if (production !== "production" && !target[storedAnnotationsSymbol]) {
|
|
7955
7955
|
die("No annotations were passed to makeObservable, but no decorated members have been found either");
|
|
7956
7956
|
}
|
|
7957
7957
|
addHiddenProp(target, storedAnnotationsSymbol, _extends$o({}, target[storedAnnotationsSymbol]));
|
|
@@ -7963,7 +7963,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
7963
7963
|
var Atom = /* @__PURE__ */ function() {
|
|
7964
7964
|
function Atom2(name_) {
|
|
7965
7965
|
if (name_ === void 0) {
|
|
7966
|
-
name_ =
|
|
7966
|
+
name_ = production !== "production" ? "Atom@" + getNextId() : "Atom";
|
|
7967
7967
|
}
|
|
7968
7968
|
this.name_ = void 0;
|
|
7969
7969
|
this.isPendingUnobservation_ = false;
|
|
@@ -8114,7 +8114,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8114
8114
|
deep: false
|
|
8115
8115
|
});
|
|
8116
8116
|
}
|
|
8117
|
-
if (
|
|
8117
|
+
if (production !== "production") {
|
|
8118
8118
|
die("The shallow modifier / decorator can only used in combination with arrays, objects, maps and sets");
|
|
8119
8119
|
}
|
|
8120
8120
|
}
|
|
@@ -8124,7 +8124,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8124
8124
|
}
|
|
8125
8125
|
__name(referenceEnhancer, "referenceEnhancer");
|
|
8126
8126
|
function refStructEnhancer(v2, oldValue) {
|
|
8127
|
-
if (
|
|
8127
|
+
if (production !== "production" && isObservable(v2)) {
|
|
8128
8128
|
die("observable.struct should not be used with observable values");
|
|
8129
8129
|
}
|
|
8130
8130
|
if (deepEqual(v2, oldValue)) {
|
|
@@ -8171,7 +8171,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8171
8171
|
function assertActionDescriptor(adm, _ref, key2, _ref2) {
|
|
8172
8172
|
var annotationType_ = _ref.annotationType_;
|
|
8173
8173
|
var value = _ref2.value;
|
|
8174
|
-
if (
|
|
8174
|
+
if (production !== "production" && !isFunction$5(value)) {
|
|
8175
8175
|
die("Cannot apply '" + annotationType_ + "' to '" + adm.name_ + "." + key2.toString() + "':" + ("\n'" + annotationType_ + "' can only be used on properties with a function value."));
|
|
8176
8176
|
}
|
|
8177
8177
|
}
|
|
@@ -8242,7 +8242,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8242
8242
|
function assertFlowDescriptor(adm, _ref, key2, _ref2) {
|
|
8243
8243
|
var annotationType_ = _ref.annotationType_;
|
|
8244
8244
|
var value = _ref2.value;
|
|
8245
|
-
if (
|
|
8245
|
+
if (production !== "production" && !isFunction$5(value)) {
|
|
8246
8246
|
die("Cannot apply '" + annotationType_ + "' to '" + adm.name_ + "." + key2.toString() + "':" + ("\n'" + annotationType_ + "' can only be used on properties with a generator function value."));
|
|
8247
8247
|
}
|
|
8248
8248
|
}
|
|
@@ -8298,7 +8298,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8298
8298
|
function assertComputedDescriptor(adm, _ref, key2, _ref2) {
|
|
8299
8299
|
var annotationType_ = _ref.annotationType_;
|
|
8300
8300
|
var get2 = _ref2.get;
|
|
8301
|
-
if (
|
|
8301
|
+
if (production !== "production" && !get2) {
|
|
8302
8302
|
die("Cannot apply '" + annotationType_ + "' to '" + adm.name_ + "." + key2.toString() + "':" + ("\n'" + annotationType_ + "' can only be used on getter(+setter) properties."));
|
|
8303
8303
|
}
|
|
8304
8304
|
}
|
|
@@ -8324,7 +8324,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8324
8324
|
__name(extend_$4, "extend_$4");
|
|
8325
8325
|
function assertObservableDescriptor(adm, _ref, key2, descriptor2) {
|
|
8326
8326
|
var annotationType_ = _ref.annotationType_;
|
|
8327
|
-
if (
|
|
8327
|
+
if (production !== "production" && !("value" in descriptor2)) {
|
|
8328
8328
|
die("Cannot apply '" + annotationType_ + "' to '" + adm.name_ + "." + key2.toString() + "':" + ("\n'" + annotationType_ + "' cannot be used on getter/setter properties"));
|
|
8329
8329
|
}
|
|
8330
8330
|
}
|
|
@@ -8502,7 +8502,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8502
8502
|
if (isPlainObject$4(arg1)) {
|
|
8503
8503
|
return createDecoratorAnnotation(createComputedAnnotation(COMPUTED, arg1));
|
|
8504
8504
|
}
|
|
8505
|
-
if (
|
|
8505
|
+
if (production !== "production") {
|
|
8506
8506
|
if (!isFunction$5(arg1)) {
|
|
8507
8507
|
die("First argument to `computed` should be an expression.");
|
|
8508
8508
|
}
|
|
@@ -8532,7 +8532,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8532
8532
|
if (autoAction2 === void 0) {
|
|
8533
8533
|
autoAction2 = false;
|
|
8534
8534
|
}
|
|
8535
|
-
if (
|
|
8535
|
+
if (production !== "production") {
|
|
8536
8536
|
if (!isFunction$5(fn2)) {
|
|
8537
8537
|
die("`action` can only be invoked on functions");
|
|
8538
8538
|
}
|
|
@@ -8565,9 +8565,9 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8565
8565
|
}
|
|
8566
8566
|
__name(executeAction, "executeAction");
|
|
8567
8567
|
function _startAction(actionName, canRunAsDerivation, scope, args) {
|
|
8568
|
-
var notifySpy_ =
|
|
8568
|
+
var notifySpy_ = production !== "production" && isSpyEnabled() && !!actionName;
|
|
8569
8569
|
var startTime_ = 0;
|
|
8570
|
-
if (
|
|
8570
|
+
if (production !== "production" && notifySpy_) {
|
|
8571
8571
|
startTime_ = Date.now();
|
|
8572
8572
|
var flattenedArgs = args ? Array.from(args) : EMPTY_ARRAY;
|
|
8573
8573
|
spyReportStart({
|
|
@@ -8614,7 +8614,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8614
8614
|
if (runInfo.runAsAction_) {
|
|
8615
8615
|
untrackedEnd(runInfo.prevDerivation_);
|
|
8616
8616
|
}
|
|
8617
|
-
if (
|
|
8617
|
+
if (production !== "production" && runInfo.notifySpy_) {
|
|
8618
8618
|
spyReportEnd({
|
|
8619
8619
|
time: Date.now() - runInfo.startTime_
|
|
8620
8620
|
});
|
|
@@ -8649,7 +8649,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8649
8649
|
function ObservableValue2(value, enhancer, name_, notifySpy, equals) {
|
|
8650
8650
|
var _this;
|
|
8651
8651
|
if (name_ === void 0) {
|
|
8652
|
-
name_ =
|
|
8652
|
+
name_ = production !== "production" ? "ObservableValue@" + getNextId() : "ObservableValue";
|
|
8653
8653
|
}
|
|
8654
8654
|
if (notifySpy === void 0) {
|
|
8655
8655
|
notifySpy = true;
|
|
@@ -8670,7 +8670,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8670
8670
|
_this.name_ = name_;
|
|
8671
8671
|
_this.equals = equals;
|
|
8672
8672
|
_this.value_ = enhancer(value, void 0, name_);
|
|
8673
|
-
if (
|
|
8673
|
+
if (production !== "production" && notifySpy && isSpyEnabled()) {
|
|
8674
8674
|
spyReport({
|
|
8675
8675
|
type: CREATE,
|
|
8676
8676
|
object: _assertThisInitialized$1(_this),
|
|
@@ -8694,7 +8694,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8694
8694
|
newValue = this.prepareNewValue_(newValue);
|
|
8695
8695
|
if (newValue !== globalState.UNCHANGED) {
|
|
8696
8696
|
var notifySpy = isSpyEnabled();
|
|
8697
|
-
if (
|
|
8697
|
+
if (production !== "production" && notifySpy) {
|
|
8698
8698
|
spyReportStart({
|
|
8699
8699
|
type: UPDATE,
|
|
8700
8700
|
object: this,
|
|
@@ -8705,7 +8705,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8705
8705
|
});
|
|
8706
8706
|
}
|
|
8707
8707
|
this.setNewValue_(newValue);
|
|
8708
|
-
if (
|
|
8708
|
+
if (production !== "production" && notifySpy) {
|
|
8709
8709
|
spyReportEnd();
|
|
8710
8710
|
}
|
|
8711
8711
|
}
|
|
@@ -8769,7 +8769,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8769
8769
|
return this.name_ + "[" + this.value_ + "]";
|
|
8770
8770
|
}, "toString");
|
|
8771
8771
|
_proto.valueOf = /* @__PURE__ */ __name(function valueOf() {
|
|
8772
|
-
return toPrimitive$
|
|
8772
|
+
return toPrimitive$2(this.get());
|
|
8773
8773
|
}, "valueOf");
|
|
8774
8774
|
_proto[_Symbol$toPrimitive] = function() {
|
|
8775
8775
|
return this.valueOf();
|
|
@@ -8809,9 +8809,9 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8809
8809
|
die(31);
|
|
8810
8810
|
}
|
|
8811
8811
|
this.derivation = options.get;
|
|
8812
|
-
this.name_ = options.name || (
|
|
8812
|
+
this.name_ = options.name || (production !== "production" ? "ComputedValue@" + getNextId() : "ComputedValue");
|
|
8813
8813
|
if (options.set) {
|
|
8814
|
-
this.setter_ = createAction(
|
|
8814
|
+
this.setter_ = createAction(production !== "production" ? this.name_ + "-setter" : "ComputedValue-setter", options.set);
|
|
8815
8815
|
}
|
|
8816
8816
|
this.equals_ = options.equals || (options.compareStructural || options.struct ? comparer.structural : comparer["default"]);
|
|
8817
8817
|
this.scope_ = options.context;
|
|
@@ -8893,7 +8893,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8893
8893
|
var changed = wasSuspended || isCaughtException(oldValue) || isCaughtException(newValue) || !this.equals_(oldValue, newValue);
|
|
8894
8894
|
if (changed) {
|
|
8895
8895
|
this.value_ = newValue;
|
|
8896
|
-
if (
|
|
8896
|
+
if (production !== "production" && isSpyEnabled()) {
|
|
8897
8897
|
spyReport({
|
|
8898
8898
|
observableKind: "computed",
|
|
8899
8899
|
debugObjectName: this.name_,
|
|
@@ -8931,7 +8931,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8931
8931
|
if (!this.keepAlive_) {
|
|
8932
8932
|
clearObserving(this);
|
|
8933
8933
|
this.value_ = void 0;
|
|
8934
|
-
if (
|
|
8934
|
+
if (production !== "production" && this.isTracing_ !== TraceMode.NONE) {
|
|
8935
8935
|
console.log("[mobx.trace] Computed value '" + this.name_ + "' was suspended and it will recompute on the next access.");
|
|
8936
8936
|
}
|
|
8937
8937
|
}
|
|
@@ -8959,7 +8959,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8959
8959
|
});
|
|
8960
8960
|
}, "observe_");
|
|
8961
8961
|
_proto.warnAboutUntrackedRead_ = /* @__PURE__ */ __name(function warnAboutUntrackedRead_() {
|
|
8962
|
-
if (!(
|
|
8962
|
+
if (!(production !== "production")) {
|
|
8963
8963
|
return;
|
|
8964
8964
|
}
|
|
8965
8965
|
if (this.isTracing_ !== TraceMode.NONE) {
|
|
@@ -8973,7 +8973,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8973
8973
|
return this.name_ + "[" + this.derivation.toString() + "]";
|
|
8974
8974
|
}, "toString");
|
|
8975
8975
|
_proto.valueOf = /* @__PURE__ */ __name(function valueOf() {
|
|
8976
|
-
return toPrimitive$
|
|
8976
|
+
return toPrimitive$2(this.get());
|
|
8977
8977
|
}, "valueOf");
|
|
8978
8978
|
_proto[_Symbol$toPrimitive$1] = function() {
|
|
8979
8979
|
return this.valueOf();
|
|
@@ -9043,7 +9043,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
9043
9043
|
}
|
|
9044
9044
|
__name(shouldCompute, "shouldCompute");
|
|
9045
9045
|
function checkIfStateModificationsAreAllowed(atom) {
|
|
9046
|
-
if (!(
|
|
9046
|
+
if (!(production !== "production")) {
|
|
9047
9047
|
return;
|
|
9048
9048
|
}
|
|
9049
9049
|
var hasObservers = atom.observers_.size > 0;
|
|
@@ -9053,7 +9053,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
9053
9053
|
}
|
|
9054
9054
|
__name(checkIfStateModificationsAreAllowed, "checkIfStateModificationsAreAllowed");
|
|
9055
9055
|
function checkIfStateReadsAreAllowed(observable2) {
|
|
9056
|
-
if (
|
|
9056
|
+
if (production !== "production" && !globalState.allowStateReads && globalState.observableRequiresReaction) {
|
|
9057
9057
|
console.warn("[mobx] Observable '" + observable2.name_ + "' being read outside a reactive context.");
|
|
9058
9058
|
}
|
|
9059
9059
|
}
|
|
@@ -9086,7 +9086,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
9086
9086
|
}
|
|
9087
9087
|
__name(trackDerivedFunction, "trackDerivedFunction");
|
|
9088
9088
|
function warnAboutDerivationWithoutDependencies(derivation) {
|
|
9089
|
-
if (!(
|
|
9089
|
+
if (!(production !== "production")) {
|
|
9090
9090
|
return;
|
|
9091
9091
|
}
|
|
9092
9092
|
if (derivation.observing_.length !== 0) {
|
|
@@ -9329,7 +9329,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
9329
9329
|
observable2.lowestObserverState_ = IDerivationState_.STALE_;
|
|
9330
9330
|
observable2.observers_.forEach(function(d2) {
|
|
9331
9331
|
if (d2.dependenciesState_ === IDerivationState_.UP_TO_DATE_) {
|
|
9332
|
-
if (
|
|
9332
|
+
if (production !== "production" && d2.isTracing_ !== TraceMode.NONE) {
|
|
9333
9333
|
logTraceInfo(d2, observable2);
|
|
9334
9334
|
}
|
|
9335
9335
|
d2.onBecomeStale_();
|
|
@@ -9346,7 +9346,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
9346
9346
|
observable2.observers_.forEach(function(d2) {
|
|
9347
9347
|
if (d2.dependenciesState_ === IDerivationState_.POSSIBLY_STALE_) {
|
|
9348
9348
|
d2.dependenciesState_ = IDerivationState_.STALE_;
|
|
9349
|
-
if (
|
|
9349
|
+
if (production !== "production" && d2.isTracing_ !== TraceMode.NONE) {
|
|
9350
9350
|
logTraceInfo(d2, observable2);
|
|
9351
9351
|
}
|
|
9352
9352
|
} else if (d2.dependenciesState_ === IDerivationState_.UP_TO_DATE_) {
|
|
@@ -9393,7 +9393,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
9393
9393
|
var Reaction = /* @__PURE__ */ function() {
|
|
9394
9394
|
function Reaction2(name_, onInvalidate_, errorHandler_, requiresObservable_) {
|
|
9395
9395
|
if (name_ === void 0) {
|
|
9396
|
-
name_ =
|
|
9396
|
+
name_ = production !== "production" ? "Reaction@" + getNextId() : "Reaction";
|
|
9397
9397
|
}
|
|
9398
9398
|
this.name_ = void 0;
|
|
9399
9399
|
this.onInvalidate_ = void 0;
|
|
@@ -9440,7 +9440,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
9440
9440
|
this.isTrackPending_ = true;
|
|
9441
9441
|
try {
|
|
9442
9442
|
this.onInvalidate_();
|
|
9443
|
-
if (
|
|
9443
|
+
if (production !== "production" && this.isTrackPending_ && isSpyEnabled()) {
|
|
9444
9444
|
spyReport({
|
|
9445
9445
|
name: this.name_,
|
|
9446
9446
|
type: "scheduled-reaction"
|
|
@@ -9461,7 +9461,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
9461
9461
|
startBatch();
|
|
9462
9462
|
var notify = isSpyEnabled();
|
|
9463
9463
|
var startTime;
|
|
9464
|
-
if (
|
|
9464
|
+
if (production !== "production" && notify) {
|
|
9465
9465
|
startTime = Date.now();
|
|
9466
9466
|
spyReportStart({
|
|
9467
9467
|
name: this.name_,
|
|
@@ -9481,7 +9481,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
9481
9481
|
if (isCaughtException(result)) {
|
|
9482
9482
|
this.reportExceptionInDerivation_(result.cause);
|
|
9483
9483
|
}
|
|
9484
|
-
if (
|
|
9484
|
+
if (production !== "production" && notify) {
|
|
9485
9485
|
spyReportEnd({
|
|
9486
9486
|
time: Date.now() - startTime
|
|
9487
9487
|
});
|
|
@@ -9497,13 +9497,13 @@ var __async = (__this, __arguments, generator) => {
|
|
|
9497
9497
|
if (globalState.disableErrorBoundaries) {
|
|
9498
9498
|
throw error;
|
|
9499
9499
|
}
|
|
9500
|
-
var message =
|
|
9500
|
+
var message = production !== "production" ? "[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '" + this + "'" : "[mobx] uncaught error in '" + this + "'";
|
|
9501
9501
|
if (!globalState.suppressReactionErrors) {
|
|
9502
9502
|
console.error(message, error);
|
|
9503
|
-
} else if (
|
|
9503
|
+
} else if (production !== "production") {
|
|
9504
9504
|
console.warn("[mobx] (error in reaction '" + this.name_ + "' suppressed, fix error of causing action below)");
|
|
9505
9505
|
}
|
|
9506
|
-
if (
|
|
9506
|
+
if (production !== "production" && isSpyEnabled()) {
|
|
9507
9507
|
spyReport({
|
|
9508
9508
|
type: "error",
|
|
9509
9509
|
name: this.name_,
|
|
@@ -9558,7 +9558,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
9558
9558
|
var iterations = 0;
|
|
9559
9559
|
while (allReactions.length > 0) {
|
|
9560
9560
|
if (++iterations === MAX_REACTION_ITERATIONS) {
|
|
9561
|
-
console.error(
|
|
9561
|
+
console.error(production !== "production" ? "Reaction doesn't converge to a stable state after " + MAX_REACTION_ITERATIONS + " iterations." + (" Probably there is a cycle in the reactive function: " + allReactions[0]) : "[mobx] cycle in reaction: " + allReactions[0]);
|
|
9562
9562
|
allReactions.splice(0);
|
|
9563
9563
|
}
|
|
9564
9564
|
var remainingReactions = allReactions.splice(0);
|
|
@@ -9580,11 +9580,11 @@ var __async = (__this, __arguments, generator) => {
|
|
|
9580
9580
|
}
|
|
9581
9581
|
__name(setReactionScheduler, "setReactionScheduler");
|
|
9582
9582
|
function isSpyEnabled() {
|
|
9583
|
-
return
|
|
9583
|
+
return production !== "production" && !!globalState.spyListeners.length;
|
|
9584
9584
|
}
|
|
9585
9585
|
__name(isSpyEnabled, "isSpyEnabled");
|
|
9586
9586
|
function spyReport(event) {
|
|
9587
|
-
if (!(
|
|
9587
|
+
if (!(production !== "production")) {
|
|
9588
9588
|
return;
|
|
9589
9589
|
}
|
|
9590
9590
|
if (!globalState.spyListeners.length) {
|
|
@@ -9597,7 +9597,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
9597
9597
|
}
|
|
9598
9598
|
__name(spyReport, "spyReport");
|
|
9599
9599
|
function spyReportStart(event) {
|
|
9600
|
-
if (!(
|
|
9600
|
+
if (!(production !== "production")) {
|
|
9601
9601
|
return;
|
|
9602
9602
|
}
|
|
9603
9603
|
var change = _extends$o({}, event, {
|
|
@@ -9611,7 +9611,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
9611
9611
|
spyReportEnd: true
|
|
9612
9612
|
};
|
|
9613
9613
|
function spyReportEnd(change) {
|
|
9614
|
-
if (!(
|
|
9614
|
+
if (!(production !== "production")) {
|
|
9615
9615
|
return;
|
|
9616
9616
|
}
|
|
9617
9617
|
if (change) {
|
|
@@ -9625,7 +9625,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
9625
9625
|
}
|
|
9626
9626
|
__name(spyReportEnd, "spyReportEnd");
|
|
9627
9627
|
function spy(listener) {
|
|
9628
|
-
if (!(
|
|
9628
|
+
if (!(production !== "production")) {
|
|
9629
9629
|
console.warn("[mobx.spy] Is a no-op in production builds");
|
|
9630
9630
|
return function() {
|
|
9631
9631
|
};
|
|
@@ -9672,7 +9672,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
9672
9672
|
autoAction: autoAction2
|
|
9673
9673
|
}));
|
|
9674
9674
|
}
|
|
9675
|
-
if (
|
|
9675
|
+
if (production !== "production") {
|
|
9676
9676
|
die("Invalid arguments for `action`");
|
|
9677
9677
|
}
|
|
9678
9678
|
}, "action");
|
|
@@ -9694,7 +9694,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
9694
9694
|
if (opts === void 0) {
|
|
9695
9695
|
opts = EMPTY_OBJECT;
|
|
9696
9696
|
}
|
|
9697
|
-
if (
|
|
9697
|
+
if (production !== "production") {
|
|
9698
9698
|
if (!isFunction$5(view)) {
|
|
9699
9699
|
die("Autorun expects a function as first argument");
|
|
9700
9700
|
}
|
|
@@ -9702,7 +9702,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
9702
9702
|
die("Autorun does not accept actions since actions are untrackable");
|
|
9703
9703
|
}
|
|
9704
9704
|
}
|
|
9705
|
-
var name2 = (_opts$name = (_opts = opts) == null ? void 0 : _opts.name) != null ? _opts$name :
|
|
9705
|
+
var name2 = (_opts$name = (_opts = opts) == null ? void 0 : _opts.name) != null ? _opts$name : production !== "production" ? view.name || "Autorun@" + getNextId() : "Autorun";
|
|
9706
9706
|
var runSync = !opts.scheduler && !opts.delay;
|
|
9707
9707
|
var reaction;
|
|
9708
9708
|
if (runSync) {
|
|
@@ -9796,7 +9796,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
9796
9796
|
}
|
|
9797
9797
|
});
|
|
9798
9798
|
globalState.allowStateReads = !globalState.observableRequiresReaction;
|
|
9799
|
-
if (
|
|
9799
|
+
if (production !== "production" && globalState.disableErrorBoundaries === true) {
|
|
9800
9800
|
console.warn("WARNING: Debug feature only. MobX will NOT recover from errors when `disableErrorBoundaries` is enabled.");
|
|
9801
9801
|
}
|
|
9802
9802
|
if (options.reactionScheduler) {
|
|
@@ -9805,7 +9805,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
9805
9805
|
}
|
|
9806
9806
|
__name(configure$1, "configure$1");
|
|
9807
9807
|
function extendObservable(target, properties, annotations, options) {
|
|
9808
|
-
if (
|
|
9808
|
+
if (production !== "production") {
|
|
9809
9809
|
if (arguments.length > 4) {
|
|
9810
9810
|
die("'extendObservable' expected 2-4 arguments");
|
|
9811
9811
|
}
|
|
@@ -9872,7 +9872,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
9872
9872
|
if (isStringish(arg2)) {
|
|
9873
9873
|
return storeAnnotation(arg1, arg2, flowAnnotation);
|
|
9874
9874
|
}
|
|
9875
|
-
if (
|
|
9875
|
+
if (production !== "production" && arguments.length !== 1) {
|
|
9876
9876
|
die("Flow expects single argument with generator function");
|
|
9877
9877
|
}
|
|
9878
9878
|
var generator = arg1;
|
|
@@ -9958,7 +9958,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
9958
9958
|
return false;
|
|
9959
9959
|
}
|
|
9960
9960
|
if (property2 !== void 0) {
|
|
9961
|
-
if (
|
|
9961
|
+
if (production !== "production" && (isObservableMap(value) || isObservableArray(value))) {
|
|
9962
9962
|
return die("isObservable(object, propertyName) is not supported for arrays and maps. Use map.has or array.length instead.");
|
|
9963
9963
|
}
|
|
9964
9964
|
if (isObservableObject(value)) {
|
|
@@ -9970,14 +9970,14 @@ var __async = (__this, __arguments, generator) => {
|
|
|
9970
9970
|
}
|
|
9971
9971
|
__name(_isObservable, "_isObservable");
|
|
9972
9972
|
function isObservable(value) {
|
|
9973
|
-
if (
|
|
9973
|
+
if (production !== "production" && arguments.length !== 1) {
|
|
9974
9974
|
die("isObservable expects only 1 argument. Use isObservableProp to inspect the observability of a property");
|
|
9975
9975
|
}
|
|
9976
9976
|
return _isObservable(value);
|
|
9977
9977
|
}
|
|
9978
9978
|
__name(isObservable, "isObservable");
|
|
9979
9979
|
function trace() {
|
|
9980
|
-
if (!(
|
|
9980
|
+
if (!(production !== "production")) {
|
|
9981
9981
|
die("trace() is not available in production builds");
|
|
9982
9982
|
}
|
|
9983
9983
|
var enterBreakPoint = false;
|
|
@@ -10026,7 +10026,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
10026
10026
|
__name(getAdm, "getAdm");
|
|
10027
10027
|
var objectProxyTraps = {
|
|
10028
10028
|
has: /* @__PURE__ */ __name(function has2(target, name2) {
|
|
10029
|
-
if (
|
|
10029
|
+
if (production !== "production" && globalState.trackingDerivation) {
|
|
10030
10030
|
warnAboutProxyRequirement("detect new properties using the 'in' operator. Use 'has' from 'mobx' instead.");
|
|
10031
10031
|
}
|
|
10032
10032
|
return getAdm(target).has_(name2);
|
|
@@ -10039,14 +10039,14 @@ var __async = (__this, __arguments, generator) => {
|
|
|
10039
10039
|
if (!isStringish(name2)) {
|
|
10040
10040
|
return false;
|
|
10041
10041
|
}
|
|
10042
|
-
if (
|
|
10042
|
+
if (production !== "production" && !getAdm(target).values_.has(name2)) {
|
|
10043
10043
|
warnAboutProxyRequirement("add a new observable property through direct assignment. Use 'set' from 'mobx' instead.");
|
|
10044
10044
|
}
|
|
10045
10045
|
return (_getAdm$set_ = getAdm(target).set_(name2, value, true)) != null ? _getAdm$set_ : true;
|
|
10046
10046
|
}, "set"),
|
|
10047
10047
|
deleteProperty: /* @__PURE__ */ __name(function deleteProperty(target, name2) {
|
|
10048
10048
|
var _getAdm$delete_;
|
|
10049
|
-
if (
|
|
10049
|
+
if (production !== "production") {
|
|
10050
10050
|
warnAboutProxyRequirement("delete properties from an observable object. Use 'remove' from 'mobx' instead.");
|
|
10051
10051
|
}
|
|
10052
10052
|
if (!isStringish(name2)) {
|
|
@@ -10056,13 +10056,13 @@ var __async = (__this, __arguments, generator) => {
|
|
|
10056
10056
|
}, "deleteProperty"),
|
|
10057
10057
|
defineProperty: /* @__PURE__ */ __name(function defineProperty2(target, name2, descriptor2) {
|
|
10058
10058
|
var _getAdm$definePropert;
|
|
10059
|
-
if (
|
|
10059
|
+
if (production !== "production") {
|
|
10060
10060
|
warnAboutProxyRequirement("define property on an observable object. Use 'defineProperty' from 'mobx' instead.");
|
|
10061
10061
|
}
|
|
10062
10062
|
return (_getAdm$definePropert = getAdm(target).defineProperty_(name2, descriptor2)) != null ? _getAdm$definePropert : true;
|
|
10063
10063
|
}, "defineProperty"),
|
|
10064
10064
|
ownKeys: /* @__PURE__ */ __name(function ownKeys2(target) {
|
|
10065
|
-
if (
|
|
10065
|
+
if (production !== "production" && globalState.trackingDerivation) {
|
|
10066
10066
|
warnAboutProxyRequirement("iterate keys to detect added / removed properties. Use 'keys' from 'mobx' instead.");
|
|
10067
10067
|
}
|
|
10068
10068
|
return getAdm(target).ownKeys_();
|
|
@@ -10145,7 +10145,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
10145
10145
|
startBatch();
|
|
10146
10146
|
try {
|
|
10147
10147
|
var _annotations;
|
|
10148
|
-
if (
|
|
10148
|
+
if (production !== "production" && annotations && target[storedAnnotationsSymbol]) {
|
|
10149
10149
|
die("makeObservable second arg must be nullish when using decorators. Mixing @decorator syntax with annotations is not supported.");
|
|
10150
10150
|
}
|
|
10151
10151
|
(_annotations = annotations) != null ? _annotations : annotations = collectStoredAnnotations(target);
|
|
@@ -10197,7 +10197,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
10197
10197
|
var ObservableArrayAdministration = /* @__PURE__ */ function() {
|
|
10198
10198
|
function ObservableArrayAdministration2(name2, enhancer, owned_, legacyMode_) {
|
|
10199
10199
|
if (name2 === void 0) {
|
|
10200
|
-
name2 =
|
|
10200
|
+
name2 = production !== "production" ? "ObservableArray@" + getNextId() : "ObservableArray";
|
|
10201
10201
|
}
|
|
10202
10202
|
this.owned_ = void 0;
|
|
10203
10203
|
this.legacyMode_ = void 0;
|
|
@@ -10213,7 +10213,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
10213
10213
|
this.legacyMode_ = legacyMode_;
|
|
10214
10214
|
this.atom_ = new Atom(name2);
|
|
10215
10215
|
this.enhancer_ = function(newV, oldV) {
|
|
10216
|
-
return enhancer(newV, oldV,
|
|
10216
|
+
return enhancer(newV, oldV, production !== "production" ? name2 + "[..]" : "ObservableArray[..]");
|
|
10217
10217
|
};
|
|
10218
10218
|
}
|
|
10219
10219
|
__name(ObservableArrayAdministration2, "ObservableArrayAdministration");
|
|
@@ -10320,7 +10320,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
10320
10320
|
newItems = newItems.length === 0 ? newItems : newItems.map(function(v2) {
|
|
10321
10321
|
return _this.enhancer_(v2, void 0);
|
|
10322
10322
|
});
|
|
10323
|
-
if (this.legacyMode_ ||
|
|
10323
|
+
if (this.legacyMode_ || production !== "production") {
|
|
10324
10324
|
var lengthDelta = newItems.length - deleteCount;
|
|
10325
10325
|
this.updateArrayLength_(length, lengthDelta);
|
|
10326
10326
|
}
|
|
@@ -10359,14 +10359,14 @@ var __async = (__this, __arguments, generator) => {
|
|
|
10359
10359
|
newValue,
|
|
10360
10360
|
oldValue
|
|
10361
10361
|
} : null;
|
|
10362
|
-
if (
|
|
10362
|
+
if (production !== "production" && notifySpy) {
|
|
10363
10363
|
spyReportStart(change);
|
|
10364
10364
|
}
|
|
10365
10365
|
this.atom_.reportChanged();
|
|
10366
10366
|
if (notify) {
|
|
10367
10367
|
notifyListeners(this, change);
|
|
10368
10368
|
}
|
|
10369
|
-
if (
|
|
10369
|
+
if (production !== "production" && notifySpy) {
|
|
10370
10370
|
spyReportEnd();
|
|
10371
10371
|
}
|
|
10372
10372
|
}, "notifyArrayChildUpdate_");
|
|
@@ -10384,20 +10384,20 @@ var __async = (__this, __arguments, generator) => {
|
|
|
10384
10384
|
removedCount: removed.length,
|
|
10385
10385
|
addedCount: added.length
|
|
10386
10386
|
} : null;
|
|
10387
|
-
if (
|
|
10387
|
+
if (production !== "production" && notifySpy) {
|
|
10388
10388
|
spyReportStart(change);
|
|
10389
10389
|
}
|
|
10390
10390
|
this.atom_.reportChanged();
|
|
10391
10391
|
if (notify) {
|
|
10392
10392
|
notifyListeners(this, change);
|
|
10393
10393
|
}
|
|
10394
|
-
if (
|
|
10394
|
+
if (production !== "production" && notifySpy) {
|
|
10395
10395
|
spyReportEnd();
|
|
10396
10396
|
}
|
|
10397
10397
|
}, "notifyArraySplice_");
|
|
10398
10398
|
_proto.get_ = /* @__PURE__ */ __name(function get_(index2) {
|
|
10399
10399
|
if (this.legacyMode_ && index2 >= this.values_.length) {
|
|
10400
|
-
console.warn(
|
|
10400
|
+
console.warn(production !== "production" ? "[mobx.array] Attempt to read an array index (" + index2 + ") that is out of bounds (" + this.values_.length + "). Please check length first. Out of bound indices will not be tracked by MobX" : "[mobx] Out of bounds read: " + index2);
|
|
10401
10401
|
return void 0;
|
|
10402
10402
|
}
|
|
10403
10403
|
this.atom_.reportObserved();
|
|
@@ -10442,7 +10442,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
10442
10442
|
}();
|
|
10443
10443
|
function createObservableArray(initialValues, enhancer, name2, owned) {
|
|
10444
10444
|
if (name2 === void 0) {
|
|
10445
|
-
name2 =
|
|
10445
|
+
name2 = production !== "production" ? "ObservableArray@" + getNextId() : "ObservableArray";
|
|
10446
10446
|
}
|
|
10447
10447
|
if (owned === void 0) {
|
|
10448
10448
|
owned = false;
|
|
@@ -10622,7 +10622,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
10622
10622
|
enhancer_ = deepEnhancer;
|
|
10623
10623
|
}
|
|
10624
10624
|
if (name_ === void 0) {
|
|
10625
|
-
name_ =
|
|
10625
|
+
name_ = production !== "production" ? "ObservableMap@" + getNextId() : "ObservableMap";
|
|
10626
10626
|
}
|
|
10627
10627
|
this.enhancer_ = void 0;
|
|
10628
10628
|
this.name_ = void 0;
|
|
@@ -10638,7 +10638,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
10638
10638
|
if (!isFunction$5(Map)) {
|
|
10639
10639
|
die(18);
|
|
10640
10640
|
}
|
|
10641
|
-
this.keysAtom_ = createAtom(
|
|
10641
|
+
this.keysAtom_ = createAtom(production !== "production" ? this.name_ + ".keys()" : "ObservableMap.keys()");
|
|
10642
10642
|
this.data_ = /* @__PURE__ */ new Map();
|
|
10643
10643
|
this.hasMap_ = /* @__PURE__ */ new Map();
|
|
10644
10644
|
allowStateChanges(true, function() {
|
|
@@ -10657,7 +10657,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
10657
10657
|
}
|
|
10658
10658
|
var entry = this.hasMap_.get(key2);
|
|
10659
10659
|
if (!entry) {
|
|
10660
|
-
var newEntry = entry = new ObservableValue(this.has_(key2), referenceEnhancer,
|
|
10660
|
+
var newEntry = entry = new ObservableValue(this.has_(key2), referenceEnhancer, production !== "production" ? this.name_ + "." + stringifyKey(key2) + "?" : "ObservableMap.key?", false);
|
|
10661
10661
|
this.hasMap_.set(key2, newEntry);
|
|
10662
10662
|
onBecomeUnobserved(newEntry, function() {
|
|
10663
10663
|
return _this2.hasMap_["delete"](key2);
|
|
@@ -10710,7 +10710,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
10710
10710
|
oldValue: this.data_.get(key2).value_,
|
|
10711
10711
|
name: key2
|
|
10712
10712
|
} : null;
|
|
10713
|
-
if (
|
|
10713
|
+
if (production !== "production" && notifySpy) {
|
|
10714
10714
|
spyReportStart(_change);
|
|
10715
10715
|
}
|
|
10716
10716
|
transaction(function() {
|
|
@@ -10724,7 +10724,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
10724
10724
|
if (notify) {
|
|
10725
10725
|
notifyListeners(this, _change);
|
|
10726
10726
|
}
|
|
10727
|
-
if (
|
|
10727
|
+
if (production !== "production" && notifySpy) {
|
|
10728
10728
|
spyReportEnd();
|
|
10729
10729
|
}
|
|
10730
10730
|
return true;
|
|
@@ -10746,14 +10746,14 @@ var __async = (__this, __arguments, generator) => {
|
|
|
10746
10746
|
name: key2,
|
|
10747
10747
|
newValue
|
|
10748
10748
|
} : null;
|
|
10749
|
-
if (
|
|
10749
|
+
if (production !== "production" && notifySpy) {
|
|
10750
10750
|
spyReportStart(change);
|
|
10751
10751
|
}
|
|
10752
10752
|
observable2.setNewValue_(newValue);
|
|
10753
10753
|
if (notify) {
|
|
10754
10754
|
notifyListeners(this, change);
|
|
10755
10755
|
}
|
|
10756
|
-
if (
|
|
10756
|
+
if (production !== "production" && notifySpy) {
|
|
10757
10757
|
spyReportEnd();
|
|
10758
10758
|
}
|
|
10759
10759
|
}
|
|
@@ -10763,7 +10763,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
10763
10763
|
checkIfStateModificationsAreAllowed(this.keysAtom_);
|
|
10764
10764
|
transaction(function() {
|
|
10765
10765
|
var _this4$hasMap_$get;
|
|
10766
|
-
var observable2 = new ObservableValue(newValue, _this4.enhancer_,
|
|
10766
|
+
var observable2 = new ObservableValue(newValue, _this4.enhancer_, production !== "production" ? _this4.name_ + "." + stringifyKey(key2) : "ObservableMap.key", false);
|
|
10767
10767
|
_this4.data_.set(key2, observable2);
|
|
10768
10768
|
newValue = observable2.value_;
|
|
10769
10769
|
(_this4$hasMap_$get = _this4.hasMap_.get(key2)) == null ? void 0 : _this4$hasMap_$get.setNewValue_(true);
|
|
@@ -10779,13 +10779,13 @@ var __async = (__this, __arguments, generator) => {
|
|
|
10779
10779
|
name: key2,
|
|
10780
10780
|
newValue
|
|
10781
10781
|
} : null;
|
|
10782
|
-
if (
|
|
10782
|
+
if (production !== "production" && notifySpy) {
|
|
10783
10783
|
spyReportStart(change);
|
|
10784
10784
|
}
|
|
10785
10785
|
if (notify) {
|
|
10786
10786
|
notifyListeners(this, change);
|
|
10787
10787
|
}
|
|
10788
|
-
if (
|
|
10788
|
+
if (production !== "production" && notifySpy) {
|
|
10789
10789
|
spyReportEnd();
|
|
10790
10790
|
}
|
|
10791
10791
|
}, "addValue_");
|
|
@@ -10938,7 +10938,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
10938
10938
|
return Array.from(this);
|
|
10939
10939
|
}, "toJSON");
|
|
10940
10940
|
_proto.observe_ = /* @__PURE__ */ __name(function observe_(listener, fireImmediately) {
|
|
10941
|
-
if (
|
|
10941
|
+
if (production !== "production" && fireImmediately === true) {
|
|
10942
10942
|
die("`observe` doesn't support fireImmediately=true in combination with maps.");
|
|
10943
10943
|
}
|
|
10944
10944
|
return registerListener(this, listener);
|
|
@@ -10987,7 +10987,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
10987
10987
|
enhancer = deepEnhancer;
|
|
10988
10988
|
}
|
|
10989
10989
|
if (name_ === void 0) {
|
|
10990
|
-
name_ =
|
|
10990
|
+
name_ = production !== "production" ? "ObservableSet@" + getNextId() : "ObservableSet";
|
|
10991
10991
|
}
|
|
10992
10992
|
this.name_ = void 0;
|
|
10993
10993
|
this[$mobx] = ObservableSetMarker;
|
|
@@ -11052,7 +11052,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
11052
11052
|
_this2.data_.add(_this2.enhancer_(value, void 0));
|
|
11053
11053
|
_this2.atom_.reportChanged();
|
|
11054
11054
|
});
|
|
11055
|
-
var notifySpy =
|
|
11055
|
+
var notifySpy = production !== "production" && isSpyEnabled();
|
|
11056
11056
|
var notify = hasListeners(this);
|
|
11057
11057
|
var _change = notify || notifySpy ? {
|
|
11058
11058
|
observableKind: "set",
|
|
@@ -11061,13 +11061,13 @@ var __async = (__this, __arguments, generator) => {
|
|
|
11061
11061
|
object: this,
|
|
11062
11062
|
newValue: value
|
|
11063
11063
|
} : null;
|
|
11064
|
-
if (notifySpy &&
|
|
11064
|
+
if (notifySpy && production !== "production") {
|
|
11065
11065
|
spyReportStart(_change);
|
|
11066
11066
|
}
|
|
11067
11067
|
if (notify) {
|
|
11068
11068
|
notifyListeners(this, _change);
|
|
11069
11069
|
}
|
|
11070
|
-
if (notifySpy &&
|
|
11070
|
+
if (notifySpy && production !== "production") {
|
|
11071
11071
|
spyReportEnd();
|
|
11072
11072
|
}
|
|
11073
11073
|
}
|
|
@@ -11086,7 +11086,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
11086
11086
|
}
|
|
11087
11087
|
}
|
|
11088
11088
|
if (this.has(value)) {
|
|
11089
|
-
var notifySpy =
|
|
11089
|
+
var notifySpy = production !== "production" && isSpyEnabled();
|
|
11090
11090
|
var notify = hasListeners(this);
|
|
11091
11091
|
var _change2 = notify || notifySpy ? {
|
|
11092
11092
|
observableKind: "set",
|
|
@@ -11095,7 +11095,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
11095
11095
|
object: this,
|
|
11096
11096
|
oldValue: value
|
|
11097
11097
|
} : null;
|
|
11098
|
-
if (notifySpy &&
|
|
11098
|
+
if (notifySpy && production !== "production") {
|
|
11099
11099
|
spyReportStart(_change2);
|
|
11100
11100
|
}
|
|
11101
11101
|
transaction(function() {
|
|
@@ -11105,7 +11105,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
11105
11105
|
if (notify) {
|
|
11106
11106
|
notifyListeners(this, _change2);
|
|
11107
11107
|
}
|
|
11108
|
-
if (notifySpy &&
|
|
11108
|
+
if (notifySpy && production !== "production") {
|
|
11109
11109
|
spyReportEnd();
|
|
11110
11110
|
}
|
|
11111
11111
|
return true;
|
|
@@ -11175,7 +11175,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
11175
11175
|
return this;
|
|
11176
11176
|
}, "replace");
|
|
11177
11177
|
_proto.observe_ = /* @__PURE__ */ __name(function observe_(listener, fireImmediately) {
|
|
11178
|
-
if (
|
|
11178
|
+
if (production !== "production" && fireImmediately === true) {
|
|
11179
11179
|
die("`observe` doesn't support fireImmediately=true in combination with sets.");
|
|
11180
11180
|
}
|
|
11181
11181
|
return registerListener(this, listener);
|
|
@@ -11232,12 +11232,12 @@ var __async = (__this, __arguments, generator) => {
|
|
|
11232
11232
|
this.values_ = values_;
|
|
11233
11233
|
this.name_ = name_;
|
|
11234
11234
|
this.defaultAnnotation_ = defaultAnnotation_;
|
|
11235
|
-
this.keysAtom_ = new Atom(
|
|
11235
|
+
this.keysAtom_ = new Atom(production !== "production" ? this.name_ + ".keys" : "ObservableObject.keys");
|
|
11236
11236
|
this.isPlainObject_ = isPlainObject$4(this.target_);
|
|
11237
|
-
if (
|
|
11237
|
+
if (production !== "production" && !isAnnotation(this.defaultAnnotation_)) {
|
|
11238
11238
|
die("defaultAnnotation must be valid annotation");
|
|
11239
11239
|
}
|
|
11240
|
-
if (
|
|
11240
|
+
if (production !== "production") {
|
|
11241
11241
|
this.appliedAnnotations_ = {};
|
|
11242
11242
|
}
|
|
11243
11243
|
}
|
|
@@ -11267,7 +11267,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
11267
11267
|
newValue = observable2.prepareNewValue_(newValue);
|
|
11268
11268
|
if (newValue !== globalState.UNCHANGED) {
|
|
11269
11269
|
var notify = hasListeners(this);
|
|
11270
|
-
var notifySpy =
|
|
11270
|
+
var notifySpy = production !== "production" && isSpyEnabled();
|
|
11271
11271
|
var _change = notify || notifySpy ? {
|
|
11272
11272
|
type: UPDATE,
|
|
11273
11273
|
observableKind: "object",
|
|
@@ -11277,14 +11277,14 @@ var __async = (__this, __arguments, generator) => {
|
|
|
11277
11277
|
name: key2,
|
|
11278
11278
|
newValue
|
|
11279
11279
|
} : null;
|
|
11280
|
-
if (
|
|
11280
|
+
if (production !== "production" && notifySpy) {
|
|
11281
11281
|
spyReportStart(_change);
|
|
11282
11282
|
}
|
|
11283
11283
|
observable2.setNewValue_(newValue);
|
|
11284
11284
|
if (notify) {
|
|
11285
11285
|
notifyListeners(this, _change);
|
|
11286
11286
|
}
|
|
11287
|
-
if (
|
|
11287
|
+
if (production !== "production" && notifySpy) {
|
|
11288
11288
|
spyReportEnd();
|
|
11289
11289
|
}
|
|
11290
11290
|
}
|
|
@@ -11325,7 +11325,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
11325
11325
|
this.pendingKeys_ || (this.pendingKeys_ = /* @__PURE__ */ new Map());
|
|
11326
11326
|
var entry = this.pendingKeys_.get(key2);
|
|
11327
11327
|
if (!entry) {
|
|
11328
|
-
entry = new ObservableValue(key2 in this.target_, referenceEnhancer,
|
|
11328
|
+
entry = new ObservableValue(key2 in this.target_, referenceEnhancer, production !== "production" ? this.name_ + "." + stringifyKey(key2) + "?" : "ObservableObject.key?", false);
|
|
11329
11329
|
this.pendingKeys_.set(key2, entry);
|
|
11330
11330
|
}
|
|
11331
11331
|
return entry.get();
|
|
@@ -11455,7 +11455,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
11455
11455
|
} else {
|
|
11456
11456
|
defineProperty$a(this.target_, key2, descriptor2);
|
|
11457
11457
|
}
|
|
11458
|
-
var observable2 = new ObservableValue(value, enhancer,
|
|
11458
|
+
var observable2 = new ObservableValue(value, enhancer, production !== "production" ? this.name_ + "." + key2.toString() : "ObservableObject.key", false);
|
|
11459
11459
|
this.values_.set(key2, observable2);
|
|
11460
11460
|
this.notifyPropertyAddition_(key2, observable2.value_);
|
|
11461
11461
|
} finally {
|
|
@@ -11484,7 +11484,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
11484
11484
|
return null;
|
|
11485
11485
|
}
|
|
11486
11486
|
}
|
|
11487
|
-
options.name || (options.name =
|
|
11487
|
+
options.name || (options.name = production !== "production" ? this.name_ + "." + key2.toString() : "ObservableObject.key");
|
|
11488
11488
|
options.context = this.proxy_ || this.target_;
|
|
11489
11489
|
var cachedDescriptor = getCachedObservablePropDescriptor(key2);
|
|
11490
11490
|
var descriptor2 = {
|
|
@@ -11528,7 +11528,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
11528
11528
|
var _this$pendingKeys_, _this$pendingKeys_$ge;
|
|
11529
11529
|
startBatch();
|
|
11530
11530
|
var notify = hasListeners(this);
|
|
11531
|
-
var notifySpy =
|
|
11531
|
+
var notifySpy = production !== "production" && isSpyEnabled();
|
|
11532
11532
|
var observable2 = this.values_.get(key2);
|
|
11533
11533
|
var value = void 0;
|
|
11534
11534
|
if (!observable2 && (notify || notifySpy)) {
|
|
@@ -11542,7 +11542,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
11542
11542
|
} else {
|
|
11543
11543
|
delete this.target_[key2];
|
|
11544
11544
|
}
|
|
11545
|
-
if (
|
|
11545
|
+
if (production !== "production") {
|
|
11546
11546
|
delete this.appliedAnnotations_[key2];
|
|
11547
11547
|
}
|
|
11548
11548
|
if (observable2) {
|
|
@@ -11563,13 +11563,13 @@ var __async = (__this, __arguments, generator) => {
|
|
|
11563
11563
|
oldValue: value,
|
|
11564
11564
|
name: key2
|
|
11565
11565
|
};
|
|
11566
|
-
if (
|
|
11566
|
+
if (production !== "production" && notifySpy) {
|
|
11567
11567
|
spyReportStart(_change2);
|
|
11568
11568
|
}
|
|
11569
11569
|
if (notify) {
|
|
11570
11570
|
notifyListeners(this, _change2);
|
|
11571
11571
|
}
|
|
11572
|
-
if (
|
|
11572
|
+
if (production !== "production" && notifySpy) {
|
|
11573
11573
|
spyReportEnd();
|
|
11574
11574
|
}
|
|
11575
11575
|
}
|
|
@@ -11579,7 +11579,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
11579
11579
|
return true;
|
|
11580
11580
|
}, "delete_");
|
|
11581
11581
|
_proto.observe_ = /* @__PURE__ */ __name(function observe_(callback, fireImmediately) {
|
|
11582
|
-
if (
|
|
11582
|
+
if (production !== "production" && fireImmediately === true) {
|
|
11583
11583
|
die("`observe` doesn't support the fire immediately property for observable objects.");
|
|
11584
11584
|
}
|
|
11585
11585
|
return registerListener(this, callback);
|
|
@@ -11590,7 +11590,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
11590
11590
|
_proto.notifyPropertyAddition_ = /* @__PURE__ */ __name(function notifyPropertyAddition_(key2, value) {
|
|
11591
11591
|
var _this$pendingKeys_2, _this$pendingKeys_2$g;
|
|
11592
11592
|
var notify = hasListeners(this);
|
|
11593
|
-
var notifySpy =
|
|
11593
|
+
var notifySpy = production !== "production" && isSpyEnabled();
|
|
11594
11594
|
if (notify || notifySpy) {
|
|
11595
11595
|
var change = notify || notifySpy ? {
|
|
11596
11596
|
type: ADD,
|
|
@@ -11600,13 +11600,13 @@ var __async = (__this, __arguments, generator) => {
|
|
|
11600
11600
|
name: key2,
|
|
11601
11601
|
newValue: value
|
|
11602
11602
|
} : null;
|
|
11603
|
-
if (
|
|
11603
|
+
if (production !== "production" && notifySpy) {
|
|
11604
11604
|
spyReportStart(change);
|
|
11605
11605
|
}
|
|
11606
11606
|
if (notify) {
|
|
11607
11607
|
notifyListeners(this, change);
|
|
11608
11608
|
}
|
|
11609
|
-
if (
|
|
11609
|
+
if (production !== "production" && notifySpy) {
|
|
11610
11610
|
spyReportEnd();
|
|
11611
11611
|
}
|
|
11612
11612
|
}
|
|
@@ -11625,19 +11625,19 @@ var __async = (__this, __arguments, generator) => {
|
|
|
11625
11625
|
}();
|
|
11626
11626
|
function asObservableObject(target, options) {
|
|
11627
11627
|
var _options$name;
|
|
11628
|
-
if (
|
|
11628
|
+
if (production !== "production" && options && isObservableObject(target)) {
|
|
11629
11629
|
die("Options can't be provided for already observable objects.");
|
|
11630
11630
|
}
|
|
11631
11631
|
if (hasProp(target, $mobx)) {
|
|
11632
|
-
if (
|
|
11632
|
+
if (production !== "production" && !(getAdministration(target) instanceof ObservableObjectAdministration)) {
|
|
11633
11633
|
die("Cannot convert '" + getDebugName(target) + "' into observable object:\nThe target is already observable of different type.\nExtending builtins is not supported.");
|
|
11634
11634
|
}
|
|
11635
11635
|
return target;
|
|
11636
11636
|
}
|
|
11637
|
-
if (
|
|
11637
|
+
if (production !== "production" && !Object.isExtensible(target)) {
|
|
11638
11638
|
die("Cannot make the designated object observable; it is not extensible");
|
|
11639
11639
|
}
|
|
11640
|
-
var name2 = (_options$name = options == null ? void 0 : options.name) != null ? _options$name :
|
|
11640
|
+
var name2 = (_options$name = options == null ? void 0 : options.name) != null ? _options$name : production !== "production" ? (isPlainObject$4(target) ? "ObservableObject" : target.constructor.name) + "@" + getNextId() : "ObservableObject";
|
|
11641
11641
|
var adm = new ObservableObjectAdministration(target, /* @__PURE__ */ new Map(), String(name2), getAnnotationFromOptions(options));
|
|
11642
11642
|
addHiddenProp(target, $mobx, adm);
|
|
11643
11643
|
return target;
|
|
@@ -11664,17 +11664,17 @@ var __async = (__this, __arguments, generator) => {
|
|
|
11664
11664
|
__name(isObservableObject, "isObservableObject");
|
|
11665
11665
|
function recordAnnotationApplied(adm, annotation, key2) {
|
|
11666
11666
|
var _adm$target_$storedAn;
|
|
11667
|
-
if (
|
|
11667
|
+
if (production !== "production") {
|
|
11668
11668
|
adm.appliedAnnotations_[key2] = annotation;
|
|
11669
11669
|
}
|
|
11670
11670
|
(_adm$target_$storedAn = adm.target_[storedAnnotationsSymbol]) == null ? true : delete _adm$target_$storedAn[key2];
|
|
11671
11671
|
}
|
|
11672
11672
|
__name(recordAnnotationApplied, "recordAnnotationApplied");
|
|
11673
11673
|
function assertAnnotable(adm, annotation, key2) {
|
|
11674
|
-
if (
|
|
11674
|
+
if (production !== "production" && !isAnnotation(annotation)) {
|
|
11675
11675
|
die("Cannot annotate '" + adm.name_ + "." + key2.toString() + "': Invalid annotation.");
|
|
11676
11676
|
}
|
|
11677
|
-
if (
|
|
11677
|
+
if (production !== "production" && !isOverride(annotation) && hasProp(adm.appliedAnnotations_, key2)) {
|
|
11678
11678
|
var fieldName = adm.name_ + "." + key2.toString();
|
|
11679
11679
|
var currentAnnotationType = adm.appliedAnnotations_[key2].annotationType_;
|
|
11680
11680
|
var requestedAnnotationType = annotation.annotationType_;
|
|
@@ -11702,7 +11702,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
11702
11702
|
function LegacyObservableArray2(initialValues, enhancer, name2, owned) {
|
|
11703
11703
|
var _this;
|
|
11704
11704
|
if (name2 === void 0) {
|
|
11705
|
-
name2 =
|
|
11705
|
+
name2 = production !== "production" ? "ObservableArray@" + getNextId() : "ObservableArray";
|
|
11706
11706
|
}
|
|
11707
11707
|
if (owned === void 0) {
|
|
11708
11708
|
owned = false;
|
|
@@ -12039,7 +12039,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
12039
12039
|
function observerBatching(reactionScheduler2) {
|
|
12040
12040
|
if (!reactionScheduler2) {
|
|
12041
12041
|
reactionScheduler2 = defaultNoopBatch;
|
|
12042
|
-
if ("production" !==
|
|
12042
|
+
if ("production" !== production) {
|
|
12043
12043
|
console.warn("[MobX] Failed to get unstable_batched updates from react-dom / react-native");
|
|
12044
12044
|
}
|
|
12045
12045
|
}
|
|
@@ -12259,7 +12259,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
12259
12259
|
})["$$typeof"];
|
|
12260
12260
|
function observer$1(baseComponent, options) {
|
|
12261
12261
|
var _a2;
|
|
12262
|
-
if (
|
|
12262
|
+
if (production !== "production" && warnObserverOptionsDeprecated && options) {
|
|
12263
12263
|
warnObserverOptionsDeprecated = false;
|
|
12264
12264
|
console.warn("[mobx-react-lite] `observer(fn, { forwardRef: true })` is deprecated, use `observer(React.forwardRef(fn))`");
|
|
12265
12265
|
}
|
|
@@ -12292,7 +12292,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
12292
12292
|
}
|
|
12293
12293
|
observerComponent = React$1.memo(observerComponent);
|
|
12294
12294
|
copyStaticProperties(baseComponent, observerComponent);
|
|
12295
|
-
if ("production" !==
|
|
12295
|
+
if ("production" !== production) {
|
|
12296
12296
|
Object.defineProperty(observerComponent, "contextTypes", {
|
|
12297
12297
|
set: function() {
|
|
12298
12298
|
var _a3;
|
|
@@ -12320,7 +12320,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
12320
12320
|
});
|
|
12321
12321
|
}
|
|
12322
12322
|
__name(copyStaticProperties, "copyStaticProperties");
|
|
12323
|
-
if ("production" !==
|
|
12323
|
+
if ("production" !== production)
|
|
12324
12324
|
;
|
|
12325
12325
|
globalThis && globalThis.__read || function(o2, n2) {
|
|
12326
12326
|
var m2 = typeof Symbol === "function" && o2[Symbol.iterator];
|
|
@@ -12654,7 +12654,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
12654
12654
|
function n(n2) {
|
|
12655
12655
|
for (var r2 = arguments.length, t2 = Array(r2 > 1 ? r2 - 1 : 0), e = 1; e < r2; e++)
|
|
12656
12656
|
t2[e - 1] = arguments[e];
|
|
12657
|
-
if ("production" !==
|
|
12657
|
+
if ("production" !== production) {
|
|
12658
12658
|
var i2 = Y[n2], o2 = i2 ? "function" == typeof i2 ? i2.apply(null, t2) : i2 : "unknown error nr: " + n2;
|
|
12659
12659
|
throw Error("[Immer] " + o2);
|
|
12660
12660
|
}
|
|
@@ -12757,10 +12757,10 @@ var __async = (__this, __arguments, generator) => {
|
|
|
12757
12757
|
tn[n2] || (tn[n2] = r2);
|
|
12758
12758
|
}
|
|
12759
12759
|
__name(m, "m");
|
|
12760
|
-
function _$
|
|
12761
|
-
return "production" ===
|
|
12760
|
+
function _$1() {
|
|
12761
|
+
return "production" === production || U || n(0), U;
|
|
12762
12762
|
}
|
|
12763
|
-
__name(_$
|
|
12763
|
+
__name(_$1, "_$1");
|
|
12764
12764
|
function j$1(n2, r2) {
|
|
12765
12765
|
r2 && (b("Patches"), n2.u = [], n2.s = [], n2.v = r2);
|
|
12766
12766
|
}
|
|
@@ -12811,7 +12811,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
12811
12811
|
}
|
|
12812
12812
|
__name(M, "M");
|
|
12813
12813
|
function A(e, i2, o2, a2, c2, s2, v2) {
|
|
12814
|
-
if ("production" !==
|
|
12814
|
+
if ("production" !== production && c2 === o2 && n(5), r$1(c2)) {
|
|
12815
12815
|
var p2 = M(e, c2, s2 && i2 && 3 !== i2.i && !u(i2.R, a2) ? s2.concat(a2) : void 0);
|
|
12816
12816
|
if (f(o2, a2, p2), !r$1(p2))
|
|
12817
12817
|
return;
|
|
@@ -12854,12 +12854,12 @@ var __async = (__this, __arguments, generator) => {
|
|
|
12854
12854
|
__name(E, "E");
|
|
12855
12855
|
function N(n2, r2, t2) {
|
|
12856
12856
|
var e = s(r2) ? b("MapSet").F(r2, t2) : v(r2) ? b("MapSet").T(r2, t2) : n2.O ? function(n3, r3) {
|
|
12857
|
-
var t3 = Array.isArray(n3), e2 = { i: t3 ? 1 : 0, A: r3 ? r3.A : _$
|
|
12857
|
+
var t3 = Array.isArray(n3), e2 = { i: t3 ? 1 : 0, A: r3 ? r3.A : _$1(), P: false, I: false, R: {}, l: r3, t: n3, k: null, o: null, j: null, C: false }, i2 = e2, o2 = en;
|
|
12858
12858
|
t3 && (i2 = [e2], o2 = on);
|
|
12859
12859
|
var u2 = Proxy.revocable(i2, o2), a2 = u2.revoke, f2 = u2.proxy;
|
|
12860
12860
|
return e2.k = f2, e2.j = a2, f2;
|
|
12861
12861
|
}(r2, t2) : b("ES5").J(r2, t2);
|
|
12862
|
-
return (t2 ? t2.A : _$
|
|
12862
|
+
return (t2 ? t2.A : _$1()).p.push(e), e;
|
|
12863
12863
|
}
|
|
12864
12864
|
__name(N, "N");
|
|
12865
12865
|
function R(e) {
|
|
@@ -13080,9 +13080,9 @@ var __async = (__this, __arguments, generator) => {
|
|
|
13080
13080
|
return arguments[0] = arguments[0][0], r2.apply(this, arguments);
|
|
13081
13081
|
};
|
|
13082
13082
|
}), on.deleteProperty = function(r2, t2) {
|
|
13083
|
-
return "production" !==
|
|
13083
|
+
return "production" !== production && isNaN(parseInt(t2)) && n(13), on.set.call(this, r2, t2, void 0);
|
|
13084
13084
|
}, on.set = function(r2, t2, e) {
|
|
13085
|
-
return "production" !==
|
|
13085
|
+
return "production" !== production && "length" !== t2 && isNaN(parseInt(t2)) && n(14), en.set.call(this, r2[0], t2, e, r2[0]);
|
|
13086
13086
|
};
|
|
13087
13087
|
var un = function() {
|
|
13088
13088
|
function e(r2) {
|
|
@@ -13150,7 +13150,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
13150
13150
|
return o2[Q].C = true, O(i3), o2;
|
|
13151
13151
|
}, i2.finishDraft = function(r2, t2) {
|
|
13152
13152
|
var e2 = r2 && r2[Q];
|
|
13153
|
-
"production" !==
|
|
13153
|
+
"production" !== production && (e2 && e2.C || n(9), e2.I && n(10));
|
|
13154
13154
|
var i3 = e2.A;
|
|
13155
13155
|
return j$1(i3, t2), P(void 0, i3);
|
|
13156
13156
|
}, i2.setAutoFreeze = function(n2) {
|
|
@@ -19376,7 +19376,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
19376
19376
|
var MapProps = /* @__PURE__ */ __name(function MapProps2(props) {
|
|
19377
19377
|
return factory(propsMapper(props));
|
|
19378
19378
|
}, "MapProps");
|
|
19379
|
-
if (
|
|
19379
|
+
if (production !== "production") {
|
|
19380
19380
|
return setDisplayName(wrapDisplayName(BaseComponent, "mapProps"))(MapProps);
|
|
19381
19381
|
}
|
|
19382
19382
|
return MapProps;
|
|
@@ -19386,7 +19386,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
19386
19386
|
var hoc = mapProps(function(props) {
|
|
19387
19387
|
return _extends$n({}, props, typeof input === "function" ? input(props) : input);
|
|
19388
19388
|
});
|
|
19389
|
-
if (
|
|
19389
|
+
if (production !== "production") {
|
|
19390
19390
|
return function(BaseComponent) {
|
|
19391
19391
|
return setDisplayName(wrapDisplayName(BaseComponent, "withProps"))(hoc(BaseComponent));
|
|
19392
19392
|
};
|
|
@@ -19416,7 +19416,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
19416
19416
|
_this.handlers = mapValues(typeof handlers2 === "function" ? handlers2(_this.props) : handlers2, function(createHandler) {
|
|
19417
19417
|
return function() {
|
|
19418
19418
|
var handler = createHandler(_this.props);
|
|
19419
|
-
if (
|
|
19419
|
+
if (production !== "production" && typeof handler !== "function") {
|
|
19420
19420
|
console.error(
|
|
19421
19421
|
// eslint-disable-line no-console
|
|
19422
19422
|
"withHandlers(): Expected a map of higher-order functions. Refer to the docs for more info."
|
|
@@ -19434,7 +19434,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
19434
19434
|
}, "render");
|
|
19435
19435
|
return WithHandlers2;
|
|
19436
19436
|
}(React$1.Component);
|
|
19437
|
-
if (
|
|
19437
|
+
if (production !== "production") {
|
|
19438
19438
|
return setDisplayName(wrapDisplayName(BaseComponent, "withHandlers"))(WithHandlers);
|
|
19439
19439
|
}
|
|
19440
19440
|
return WithHandlers;
|
|
@@ -19472,7 +19472,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
19472
19472
|
}, "render");
|
|
19473
19473
|
return WithState2;
|
|
19474
19474
|
}(React$1.Component);
|
|
19475
|
-
if (
|
|
19475
|
+
if (production !== "production") {
|
|
19476
19476
|
return setDisplayName(wrapDisplayName(BaseComponent, "withState"))(WithState);
|
|
19477
19477
|
}
|
|
19478
19478
|
return WithState;
|
|
@@ -19496,7 +19496,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
19496
19496
|
rightFactory = rightFactory || createFactory(right2(BaseComponent));
|
|
19497
19497
|
return rightFactory(props);
|
|
19498
19498
|
}, "Branch");
|
|
19499
|
-
if (
|
|
19499
|
+
if (production !== "production") {
|
|
19500
19500
|
return setDisplayName(wrapDisplayName(BaseComponent, "branch"))(Branch);
|
|
19501
19501
|
}
|
|
19502
19502
|
return Branch;
|
|
@@ -19520,7 +19520,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
19520
19520
|
}, "render");
|
|
19521
19521
|
return ShouldUpdate2;
|
|
19522
19522
|
}(React$1.Component);
|
|
19523
|
-
if (
|
|
19523
|
+
if (production !== "production") {
|
|
19524
19524
|
return setDisplayName(wrapDisplayName(BaseComponent, "shouldUpdate"))(ShouldUpdate);
|
|
19525
19525
|
}
|
|
19526
19526
|
return ShouldUpdate;
|
|
@@ -19529,7 +19529,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
19529
19529
|
var lifecycle = /* @__PURE__ */ __name(function lifecycle2(spec) {
|
|
19530
19530
|
return function(BaseComponent) {
|
|
19531
19531
|
var factory = createFactory(BaseComponent);
|
|
19532
|
-
if (
|
|
19532
|
+
if (production !== "production" && spec.hasOwnProperty("render")) {
|
|
19533
19533
|
console.error("lifecycle() does not support the render method; its behavior is to pass all props and state to the base component.");
|
|
19534
19534
|
}
|
|
19535
19535
|
var Lifecycle2 = /* @__PURE__ */ function(_Component) {
|
|
@@ -19547,7 +19547,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
19547
19547
|
Object.keys(spec).forEach(function(hook) {
|
|
19548
19548
|
return Lifecycle2.prototype[hook] = spec[hook];
|
|
19549
19549
|
});
|
|
19550
|
-
if (
|
|
19550
|
+
if (production !== "production") {
|
|
19551
19551
|
return setDisplayName(wrapDisplayName(BaseComponent, "lifecycle"))(Lifecycle2);
|
|
19552
19552
|
}
|
|
19553
19553
|
return Lifecycle2;
|
|
@@ -19722,11 +19722,20 @@ var __async = (__this, __arguments, generator) => {
|
|
|
19722
19722
|
return true;
|
|
19723
19723
|
}
|
|
19724
19724
|
}, "_fails");
|
|
19725
|
-
var _descriptors
|
|
19726
|
-
|
|
19727
|
-
|
|
19728
|
-
|
|
19729
|
-
|
|
19725
|
+
var _descriptors;
|
|
19726
|
+
var hasRequired_descriptors;
|
|
19727
|
+
function require_descriptors() {
|
|
19728
|
+
if (hasRequired_descriptors)
|
|
19729
|
+
return _descriptors;
|
|
19730
|
+
hasRequired_descriptors = 1;
|
|
19731
|
+
_descriptors = !_fails(function() {
|
|
19732
|
+
return Object.defineProperty({}, "a", { get: function() {
|
|
19733
|
+
return 7;
|
|
19734
|
+
} }).a != 7;
|
|
19735
|
+
});
|
|
19736
|
+
return _descriptors;
|
|
19737
|
+
}
|
|
19738
|
+
__name(require_descriptors, "require_descriptors");
|
|
19730
19739
|
var _domCreate;
|
|
19731
19740
|
var hasRequired_domCreate;
|
|
19732
19741
|
function require_domCreate() {
|
|
@@ -19742,11 +19751,20 @@ var __async = (__this, __arguments, generator) => {
|
|
|
19742
19751
|
return _domCreate;
|
|
19743
19752
|
}
|
|
19744
19753
|
__name(require_domCreate, "require_domCreate");
|
|
19745
|
-
var _ie8DomDefine
|
|
19746
|
-
|
|
19747
|
-
|
|
19748
|
-
|
|
19749
|
-
|
|
19754
|
+
var _ie8DomDefine;
|
|
19755
|
+
var hasRequired_ie8DomDefine;
|
|
19756
|
+
function require_ie8DomDefine() {
|
|
19757
|
+
if (hasRequired_ie8DomDefine)
|
|
19758
|
+
return _ie8DomDefine;
|
|
19759
|
+
hasRequired_ie8DomDefine = 1;
|
|
19760
|
+
_ie8DomDefine = !require_descriptors() && !_fails(function() {
|
|
19761
|
+
return Object.defineProperty(require_domCreate()("div"), "a", { get: function() {
|
|
19762
|
+
return 7;
|
|
19763
|
+
} }).a != 7;
|
|
19764
|
+
});
|
|
19765
|
+
return _ie8DomDefine;
|
|
19766
|
+
}
|
|
19767
|
+
__name(require_ie8DomDefine, "require_ie8DomDefine");
|
|
19750
19768
|
var isObject$d = _isObject;
|
|
19751
19769
|
var _toPrimitive = /* @__PURE__ */ __name(function(it, S2) {
|
|
19752
19770
|
if (!isObject$d(it))
|
|
@@ -19760,25 +19778,33 @@ var __async = (__this, __arguments, generator) => {
|
|
|
19760
19778
|
return val;
|
|
19761
19779
|
throw TypeError("Can't convert object to primitive value");
|
|
19762
19780
|
}, "_toPrimitive");
|
|
19763
|
-
var
|
|
19764
|
-
|
|
19765
|
-
|
|
19766
|
-
|
|
19767
|
-
|
|
19768
|
-
|
|
19769
|
-
|
|
19770
|
-
|
|
19771
|
-
|
|
19772
|
-
|
|
19773
|
-
|
|
19774
|
-
|
|
19775
|
-
|
|
19776
|
-
|
|
19777
|
-
|
|
19778
|
-
|
|
19779
|
-
|
|
19780
|
-
|
|
19781
|
-
|
|
19781
|
+
var hasRequired_objectDp;
|
|
19782
|
+
function require_objectDp() {
|
|
19783
|
+
if (hasRequired_objectDp)
|
|
19784
|
+
return _objectDp;
|
|
19785
|
+
hasRequired_objectDp = 1;
|
|
19786
|
+
var anObject2 = _anObject;
|
|
19787
|
+
var IE8_DOM_DEFINE2 = require_ie8DomDefine();
|
|
19788
|
+
var toPrimitive2 = _toPrimitive;
|
|
19789
|
+
var dP2 = Object.defineProperty;
|
|
19790
|
+
_objectDp.f = require_descriptors() ? Object.defineProperty : /* @__PURE__ */ __name(function defineProperty2(O2, P2, Attributes) {
|
|
19791
|
+
anObject2(O2);
|
|
19792
|
+
P2 = toPrimitive2(P2, true);
|
|
19793
|
+
anObject2(Attributes);
|
|
19794
|
+
if (IE8_DOM_DEFINE2)
|
|
19795
|
+
try {
|
|
19796
|
+
return dP2(O2, P2, Attributes);
|
|
19797
|
+
} catch (e) {
|
|
19798
|
+
}
|
|
19799
|
+
if ("get" in Attributes || "set" in Attributes)
|
|
19800
|
+
throw TypeError("Accessors not supported!");
|
|
19801
|
+
if ("value" in Attributes)
|
|
19802
|
+
O2[P2] = Attributes.value;
|
|
19803
|
+
return O2;
|
|
19804
|
+
}, "defineProperty");
|
|
19805
|
+
return _objectDp;
|
|
19806
|
+
}
|
|
19807
|
+
__name(require_objectDp, "require_objectDp");
|
|
19782
19808
|
var _propertyDesc = /* @__PURE__ */ __name(function(bitmap, value) {
|
|
19783
19809
|
return {
|
|
19784
19810
|
enumerable: !(bitmap & 1),
|
|
@@ -19787,9 +19813,9 @@ var __async = (__this, __arguments, generator) => {
|
|
|
19787
19813
|
value
|
|
19788
19814
|
};
|
|
19789
19815
|
}, "_propertyDesc");
|
|
19790
|
-
var dP$2 =
|
|
19816
|
+
var dP$2 = require_objectDp();
|
|
19791
19817
|
var createDesc$3 = _propertyDesc;
|
|
19792
|
-
var _hide =
|
|
19818
|
+
var _hide = require_descriptors() ? function(object, key2, value) {
|
|
19793
19819
|
return dP$2.f(object, key2, createDesc$3(1, value));
|
|
19794
19820
|
} : function(object, key2, value) {
|
|
19795
19821
|
object[key2] = value;
|
|
@@ -19861,25 +19887,16 @@ var __async = (__this, __arguments, generator) => {
|
|
|
19861
19887
|
var _cof = /* @__PURE__ */ __name(function(it) {
|
|
19862
19888
|
return toString$6.call(it).slice(8, -1);
|
|
19863
19889
|
}, "_cof");
|
|
19864
|
-
var
|
|
19865
|
-
var
|
|
19866
|
-
|
|
19867
|
-
|
|
19868
|
-
return _iobject;
|
|
19869
|
-
hasRequired_iobject = 1;
|
|
19870
|
-
var cof2 = _cof;
|
|
19871
|
-
_iobject = Object("z").propertyIsEnumerable(0) ? Object : function(it) {
|
|
19872
|
-
return cof2(it) == "String" ? it.split("") : Object(it);
|
|
19873
|
-
};
|
|
19874
|
-
return _iobject;
|
|
19875
|
-
}
|
|
19876
|
-
__name(require_iobject, "require_iobject");
|
|
19890
|
+
var cof$2 = _cof;
|
|
19891
|
+
var _iobject = Object("z").propertyIsEnumerable(0) ? Object : function(it) {
|
|
19892
|
+
return cof$2(it) == "String" ? it.split("") : Object(it);
|
|
19893
|
+
};
|
|
19877
19894
|
var _defined = /* @__PURE__ */ __name(function(it) {
|
|
19878
19895
|
if (it == void 0)
|
|
19879
19896
|
throw TypeError("Can't call method on " + it);
|
|
19880
19897
|
return it;
|
|
19881
19898
|
}, "_defined");
|
|
19882
|
-
var IObject =
|
|
19899
|
+
var IObject = _iobject;
|
|
19883
19900
|
var defined$2 = _defined;
|
|
19884
19901
|
var _toIobject = /* @__PURE__ */ __name(function(it) {
|
|
19885
19902
|
return IObject(defined$2(it));
|
|
@@ -19968,23 +19985,15 @@ var __async = (__this, __arguments, generator) => {
|
|
|
19968
19985
|
return result;
|
|
19969
19986
|
}, "_objectKeysInternal");
|
|
19970
19987
|
var _enumBugKeys = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",");
|
|
19971
|
-
var $keys$
|
|
19988
|
+
var $keys$3 = _objectKeysInternal;
|
|
19972
19989
|
var enumBugKeys$1 = _enumBugKeys;
|
|
19973
19990
|
var _objectKeys = Object.keys || /* @__PURE__ */ __name(function keys2(O2) {
|
|
19974
|
-
return $keys$
|
|
19991
|
+
return $keys$3(O2, enumBugKeys$1);
|
|
19975
19992
|
}, "keys");
|
|
19976
19993
|
var _objectGops = {};
|
|
19977
19994
|
_objectGops.f = Object.getOwnPropertySymbols;
|
|
19978
19995
|
var _objectPie = {};
|
|
19979
|
-
|
|
19980
|
-
function require_objectPie() {
|
|
19981
|
-
if (hasRequired_objectPie)
|
|
19982
|
-
return _objectPie;
|
|
19983
|
-
hasRequired_objectPie = 1;
|
|
19984
|
-
_objectPie.f = {}.propertyIsEnumerable;
|
|
19985
|
-
return _objectPie;
|
|
19986
|
-
}
|
|
19987
|
-
__name(require_objectPie, "require_objectPie");
|
|
19996
|
+
_objectPie.f = {}.propertyIsEnumerable;
|
|
19988
19997
|
var defined$1 = _defined;
|
|
19989
19998
|
var _toObject = /* @__PURE__ */ __name(function(it) {
|
|
19990
19999
|
return Object(defined$1(it));
|
|
@@ -19995,12 +20004,12 @@ var __async = (__this, __arguments, generator) => {
|
|
|
19995
20004
|
if (hasRequired_objectAssign)
|
|
19996
20005
|
return _objectAssign;
|
|
19997
20006
|
hasRequired_objectAssign = 1;
|
|
19998
|
-
var DESCRIPTORS2 =
|
|
20007
|
+
var DESCRIPTORS2 = require_descriptors();
|
|
19999
20008
|
var getKeys2 = _objectKeys;
|
|
20000
20009
|
var gOPS2 = _objectGops;
|
|
20001
|
-
var pIE2 =
|
|
20010
|
+
var pIE2 = _objectPie;
|
|
20002
20011
|
var toObject2 = _toObject;
|
|
20003
|
-
var IObject2 =
|
|
20012
|
+
var IObject2 = _iobject;
|
|
20004
20013
|
var $assign = Object.assign;
|
|
20005
20014
|
_objectAssign = !$assign || _fails(function() {
|
|
20006
20015
|
var A2 = {};
|
|
@@ -20061,10 +20070,10 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20061
20070
|
}, "_iterStep");
|
|
20062
20071
|
var _iterators = {};
|
|
20063
20072
|
var _redefine = _hide;
|
|
20064
|
-
var dP$1 =
|
|
20073
|
+
var dP$1 = require_objectDp();
|
|
20065
20074
|
var anObject$4 = _anObject;
|
|
20066
20075
|
var getKeys$1 = _objectKeys;
|
|
20067
|
-
var _objectDps =
|
|
20076
|
+
var _objectDps = require_descriptors() ? Object.defineProperties : /* @__PURE__ */ __name(function defineProperties(O2, Properties) {
|
|
20068
20077
|
anObject$4(O2);
|
|
20069
20078
|
var keys2 = getKeys$1(Properties);
|
|
20070
20079
|
var length = keys2.length;
|
|
@@ -20131,7 +20140,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20131
20140
|
};
|
|
20132
20141
|
$exports.store = store;
|
|
20133
20142
|
var _wksExports = _wks.exports;
|
|
20134
|
-
var def =
|
|
20143
|
+
var def = require_objectDp().f;
|
|
20135
20144
|
var has$9 = _has;
|
|
20136
20145
|
var TAG$1 = _wksExports("toStringTag");
|
|
20137
20146
|
var _setToStringTag = /* @__PURE__ */ __name(function(it, tag, stat) {
|
|
@@ -20404,7 +20413,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20404
20413
|
var _isArrayIter = /* @__PURE__ */ __name(function(it) {
|
|
20405
20414
|
return it !== void 0 && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
|
|
20406
20415
|
}, "_isArrayIter");
|
|
20407
|
-
var $defineProperty$1 =
|
|
20416
|
+
var $defineProperty$1 = require_objectDp();
|
|
20408
20417
|
var createDesc$2 = _propertyDesc;
|
|
20409
20418
|
var _createProperty = /* @__PURE__ */ __name(function(object, index2, value) {
|
|
20410
20419
|
if (index2 in object)
|
|
@@ -20533,7 +20542,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20533
20542
|
}
|
|
20534
20543
|
}, "_default$8");
|
|
20535
20544
|
var $export$3 = _export;
|
|
20536
|
-
$export$3($export$3.S + $export$3.F * !
|
|
20545
|
+
$export$3($export$3.S + $export$3.F * !require_descriptors(), "Object", { defineProperty: require_objectDp().f });
|
|
20537
20546
|
var $Object$2 = _coreExports.Object;
|
|
20538
20547
|
var defineProperty$9 = /* @__PURE__ */ __name(function defineProperty2(it, key2, desc) {
|
|
20539
20548
|
return $Object$2.defineProperty(it, key2, desc);
|
|
@@ -20574,7 +20583,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20574
20583
|
var META$1 = _uid("meta");
|
|
20575
20584
|
var isObject$c = _isObject;
|
|
20576
20585
|
var has$7 = _has;
|
|
20577
|
-
var setDesc =
|
|
20586
|
+
var setDesc = require_objectDp().f;
|
|
20578
20587
|
var id = 0;
|
|
20579
20588
|
var isExtensible = Object.isExtensible || function() {
|
|
20580
20589
|
return true;
|
|
@@ -20627,7 +20636,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20627
20636
|
var _metaExports = _meta.exports;
|
|
20628
20637
|
var core = _coreExports;
|
|
20629
20638
|
var wksExt$1 = _wksExt;
|
|
20630
|
-
var defineProperty$7 =
|
|
20639
|
+
var defineProperty$7 = require_objectDp().f;
|
|
20631
20640
|
var _wksDefine = /* @__PURE__ */ __name(function(name2) {
|
|
20632
20641
|
var $Symbol2 = core.Symbol || (core.Symbol = {});
|
|
20633
20642
|
if (name2.charAt(0) != "_" && !(name2 in $Symbol2))
|
|
@@ -20635,7 +20644,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20635
20644
|
}, "_wksDefine");
|
|
20636
20645
|
var getKeys = _objectKeys;
|
|
20637
20646
|
var gOPS$1 = _objectGops;
|
|
20638
|
-
var pIE$1 =
|
|
20647
|
+
var pIE$1 = _objectPie;
|
|
20639
20648
|
var _enumKeys = /* @__PURE__ */ __name(function(it) {
|
|
20640
20649
|
var result = getKeys(it);
|
|
20641
20650
|
var getSymbols2 = gOPS$1.f;
|
|
@@ -20656,21 +20665,13 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20656
20665
|
}, "isArray");
|
|
20657
20666
|
var _objectGopnExt = {};
|
|
20658
20667
|
var _objectGopn = {};
|
|
20659
|
-
var
|
|
20660
|
-
|
|
20661
|
-
|
|
20662
|
-
|
|
20663
|
-
|
|
20664
|
-
var $keys2 = _objectKeysInternal;
|
|
20665
|
-
var hiddenKeys = _enumBugKeys.concat("length", "prototype");
|
|
20666
|
-
_objectGopn.f = Object.getOwnPropertyNames || /* @__PURE__ */ __name(function getOwnPropertyNames2(O2) {
|
|
20667
|
-
return $keys2(O2, hiddenKeys);
|
|
20668
|
-
}, "getOwnPropertyNames");
|
|
20669
|
-
return _objectGopn;
|
|
20670
|
-
}
|
|
20671
|
-
__name(require_objectGopn, "require_objectGopn");
|
|
20668
|
+
var $keys$2 = _objectKeysInternal;
|
|
20669
|
+
var hiddenKeys = _enumBugKeys.concat("length", "prototype");
|
|
20670
|
+
_objectGopn.f = Object.getOwnPropertyNames || /* @__PURE__ */ __name(function getOwnPropertyNames2(O2) {
|
|
20671
|
+
return $keys$2(O2, hiddenKeys);
|
|
20672
|
+
}, "getOwnPropertyNames");
|
|
20672
20673
|
var toIObject$2 = _toIobject;
|
|
20673
|
-
var gOPN$1 =
|
|
20674
|
+
var gOPN$1 = _objectGopn.f;
|
|
20674
20675
|
var toString$5 = {}.toString;
|
|
20675
20676
|
var windowNames = typeof window == "object" && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [];
|
|
20676
20677
|
var getWindowNames = /* @__PURE__ */ __name(function(it) {
|
|
@@ -20684,14 +20685,14 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20684
20685
|
return windowNames && toString$5.call(it) == "[object Window]" ? getWindowNames(it) : gOPN$1(toIObject$2(it));
|
|
20685
20686
|
}, "getOwnPropertyNames");
|
|
20686
20687
|
var _objectGopd = {};
|
|
20687
|
-
var pIE =
|
|
20688
|
+
var pIE = _objectPie;
|
|
20688
20689
|
var createDesc$1 = _propertyDesc;
|
|
20689
20690
|
var toIObject$1 = _toIobject;
|
|
20690
20691
|
var toPrimitive$1 = _toPrimitive;
|
|
20691
20692
|
var has$6 = _has;
|
|
20692
|
-
var IE8_DOM_DEFINE =
|
|
20693
|
+
var IE8_DOM_DEFINE = require_ie8DomDefine();
|
|
20693
20694
|
var gOPD$2 = Object.getOwnPropertyDescriptor;
|
|
20694
|
-
_objectGopd.f =
|
|
20695
|
+
_objectGopd.f = require_descriptors() ? gOPD$2 : /* @__PURE__ */ __name(function getOwnPropertyDescriptor2(O2, P2) {
|
|
20695
20696
|
O2 = toIObject$1(O2);
|
|
20696
20697
|
P2 = toPrimitive$1(P2, true);
|
|
20697
20698
|
if (IE8_DOM_DEFINE)
|
|
@@ -20704,7 +20705,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20704
20705
|
}, "getOwnPropertyDescriptor");
|
|
20705
20706
|
var global$1 = _globalExports;
|
|
20706
20707
|
var has$5 = _has;
|
|
20707
|
-
var DESCRIPTORS =
|
|
20708
|
+
var DESCRIPTORS = require_descriptors();
|
|
20708
20709
|
var $export$2 = _export;
|
|
20709
20710
|
var redefine = _redefine;
|
|
20710
20711
|
var META = _metaExports.KEY;
|
|
@@ -20716,7 +20717,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20716
20717
|
var wksExt = _wksExt;
|
|
20717
20718
|
var wksDefine = _wksDefine;
|
|
20718
20719
|
var enumKeys = _enumKeys;
|
|
20719
|
-
var isArray$
|
|
20720
|
+
var isArray$n = _isArray;
|
|
20720
20721
|
var anObject = _anObject;
|
|
20721
20722
|
var isObject$b = _isObject;
|
|
20722
20723
|
var toObject$1 = _toObject;
|
|
@@ -20727,7 +20728,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20727
20728
|
var gOPNExt = _objectGopnExt;
|
|
20728
20729
|
var $GOPD = _objectGopd;
|
|
20729
20730
|
var $GOPS = _objectGops;
|
|
20730
|
-
var $DP =
|
|
20731
|
+
var $DP = require_objectDp();
|
|
20731
20732
|
var $keys$1 = _objectKeys;
|
|
20732
20733
|
var gOPD$1 = $GOPD.f;
|
|
20733
20734
|
var dP = $DP.f;
|
|
@@ -20863,8 +20864,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20863
20864
|
}, "toString"));
|
|
20864
20865
|
$GOPD.f = $getOwnPropertyDescriptor;
|
|
20865
20866
|
$DP.f = $defineProperty;
|
|
20866
|
-
|
|
20867
|
-
|
|
20867
|
+
_objectGopn.f = gOPNExt.f = $getOwnPropertyNames;
|
|
20868
|
+
_objectPie.f = $propertyIsEnumerable;
|
|
20868
20869
|
$GOPS.f = $getOwnPropertySymbols;
|
|
20869
20870
|
if (DESCRIPTORS && !_library) {
|
|
20870
20871
|
redefine(ObjectProto, "propertyIsEnumerable", $propertyIsEnumerable);
|
|
@@ -20936,7 +20937,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20936
20937
|
$replacer = replacer = args[1];
|
|
20937
20938
|
if (!isObject$b(replacer) && it === void 0 || isSymbol$8(it))
|
|
20938
20939
|
return;
|
|
20939
|
-
if (!isArray$
|
|
20940
|
+
if (!isArray$n(replacer))
|
|
20940
20941
|
replacer = /* @__PURE__ */ __name(function(key2, value) {
|
|
20941
20942
|
if (typeof $replacer == "function")
|
|
20942
20943
|
value = $replacer.call(this, key2, value);
|
|
@@ -21062,7 +21063,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
21062
21063
|
_setPrototypeOf2.default ? (0, _setPrototypeOf2.default)(subClass, superClass) : subClass.__proto__ = superClass;
|
|
21063
21064
|
}, "_default$5");
|
|
21064
21065
|
var invariant = /* @__PURE__ */ __name(function(condition, format2, a2, b2, c2, d2, e, f2) {
|
|
21065
|
-
if (
|
|
21066
|
+
if (production !== "production") {
|
|
21066
21067
|
if (format2 === void 0) {
|
|
21067
21068
|
throw new Error("invariant requires an error message argument");
|
|
21068
21069
|
}
|
|
@@ -21664,12 +21665,12 @@ var __async = (__this, __arguments, generator) => {
|
|
|
21664
21665
|
}
|
|
21665
21666
|
__name(arrayPush$4, "arrayPush$4");
|
|
21666
21667
|
var _arrayPush = arrayPush$4;
|
|
21667
|
-
var isArray$
|
|
21668
|
-
var isArray_1 = isArray$
|
|
21669
|
-
var arrayPush$3 = _arrayPush, isArray$
|
|
21668
|
+
var isArray$m = Array.isArray;
|
|
21669
|
+
var isArray_1 = isArray$m;
|
|
21670
|
+
var arrayPush$3 = _arrayPush, isArray$l = isArray_1;
|
|
21670
21671
|
function baseGetAllKeys$3(object, keysFunc, symbolsFunc) {
|
|
21671
21672
|
var result = keysFunc(object);
|
|
21672
|
-
return isArray$
|
|
21673
|
+
return isArray$l(object) ? result : arrayPush$3(result, symbolsFunc(object));
|
|
21673
21674
|
}
|
|
21674
21675
|
__name(baseGetAllKeys$3, "baseGetAllKeys$3");
|
|
21675
21676
|
var _baseGetAllKeys = baseGetAllKeys$3;
|
|
@@ -21811,11 +21812,11 @@ var __async = (__this, __arguments, generator) => {
|
|
|
21811
21812
|
var nodeIsTypedArray$1 = nodeUtil$4 && nodeUtil$4.isTypedArray;
|
|
21812
21813
|
var isTypedArray$4 = nodeIsTypedArray$1 ? baseUnary$4(nodeIsTypedArray$1) : baseIsTypedArray$1;
|
|
21813
21814
|
var isTypedArray_1 = isTypedArray$4;
|
|
21814
|
-
var baseTimes$1 = _baseTimes, isArguments$4 = isArguments_1, isArray$
|
|
21815
|
+
var baseTimes$1 = _baseTimes, isArguments$4 = isArguments_1, isArray$k = isArray_1, isBuffer$7 = isBufferExports, isIndex$3 = _isIndex, isTypedArray$3 = isTypedArray_1;
|
|
21815
21816
|
var objectProto$n = Object.prototype;
|
|
21816
21817
|
var hasOwnProperty$l = objectProto$n.hasOwnProperty;
|
|
21817
21818
|
function arrayLikeKeys$3(value, inherited) {
|
|
21818
|
-
var isArr = isArray$
|
|
21819
|
+
var isArr = isArray$k(value), isArg = !isArr && isArguments$4(value), isBuff = !isArr && !isArg && isBuffer$7(value), isType2 = !isArr && !isArg && !isBuff && isTypedArray$3(value), skipIndexes = isArr || isArg || isBuff || isType2, result = skipIndexes ? baseTimes$1(value.length, String) : [], length = result.length;
|
|
21819
21820
|
for (var key2 in value) {
|
|
21820
21821
|
if ((inherited || hasOwnProperty$l.call(value, key2)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
21821
21822
|
(key2 == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
@@ -21968,13 +21969,13 @@ var __async = (__this, __arguments, generator) => {
|
|
|
21968
21969
|
}, "getTag$7");
|
|
21969
21970
|
}
|
|
21970
21971
|
var _getTag = getTag$7;
|
|
21971
|
-
var Stack$3 = _Stack, equalArrays$1 = _equalArrays, equalByTag$1 = _equalByTag, equalObjects$1 = _equalObjects, getTag$6 = _getTag, isArray$
|
|
21972
|
+
var Stack$3 = _Stack, equalArrays$1 = _equalArrays, equalByTag$1 = _equalByTag, equalObjects$1 = _equalObjects, getTag$6 = _getTag, isArray$j = isArray_1, isBuffer$6 = isBufferExports, isTypedArray$2 = isTypedArray_1;
|
|
21972
21973
|
var COMPARE_PARTIAL_FLAG$8 = 1;
|
|
21973
21974
|
var argsTag$4 = "[object Arguments]", arrayTag$3 = "[object Array]", objectTag$6 = "[object Object]";
|
|
21974
21975
|
var objectProto$j = Object.prototype;
|
|
21975
21976
|
var hasOwnProperty$i = objectProto$j.hasOwnProperty;
|
|
21976
21977
|
function baseIsEqualDeep$2(object, other, bitmask, customizer, equalFunc, stack) {
|
|
21977
|
-
var objIsArr = isArray$
|
|
21978
|
+
var objIsArr = isArray$j(object), othIsArr = isArray$j(other), objTag = objIsArr ? arrayTag$3 : getTag$6(object), othTag = othIsArr ? arrayTag$3 : getTag$6(other);
|
|
21978
21979
|
objTag = objTag == argsTag$4 ? objectTag$6 : objTag;
|
|
21979
21980
|
othTag = othTag == argsTag$4 ? objectTag$6 : othTag;
|
|
21980
21981
|
var objIsObj = objTag == objectTag$6, othIsObj = othTag == objectTag$6, isSameTag = objTag == othTag;
|
|
@@ -22098,10 +22099,10 @@ var __async = (__this, __arguments, generator) => {
|
|
|
22098
22099
|
}
|
|
22099
22100
|
__name(isSymbol$7, "isSymbol$7");
|
|
22100
22101
|
var isSymbol_1 = isSymbol$7;
|
|
22101
|
-
var isArray$
|
|
22102
|
+
var isArray$i = isArray_1, isSymbol$6 = isSymbol_1;
|
|
22102
22103
|
var reIsDeepProp$1 = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp$1 = /^\w*$/;
|
|
22103
22104
|
function isKey$4(value, object) {
|
|
22104
|
-
if (isArray$
|
|
22105
|
+
if (isArray$i(value)) {
|
|
22105
22106
|
return false;
|
|
22106
22107
|
}
|
|
22107
22108
|
var type = typeof value;
|
|
@@ -22170,14 +22171,14 @@ var __async = (__this, __arguments, generator) => {
|
|
|
22170
22171
|
}
|
|
22171
22172
|
__name(arrayMap$4, "arrayMap$4");
|
|
22172
22173
|
var _arrayMap = arrayMap$4;
|
|
22173
|
-
var Symbol$5 = _Symbol, arrayMap$3 = _arrayMap, isArray$
|
|
22174
|
+
var Symbol$5 = _Symbol, arrayMap$3 = _arrayMap, isArray$h = isArray_1, isSymbol$5 = isSymbol_1;
|
|
22174
22175
|
var INFINITY$5 = 1 / 0;
|
|
22175
22176
|
var symbolProto$3 = Symbol$5 ? Symbol$5.prototype : void 0, symbolToString$1 = symbolProto$3 ? symbolProto$3.toString : void 0;
|
|
22176
22177
|
function baseToString$3(value) {
|
|
22177
22178
|
if (typeof value == "string") {
|
|
22178
22179
|
return value;
|
|
22179
22180
|
}
|
|
22180
|
-
if (isArray$
|
|
22181
|
+
if (isArray$h(value)) {
|
|
22181
22182
|
return arrayMap$3(value, baseToString$3) + "";
|
|
22182
22183
|
}
|
|
22183
22184
|
if (isSymbol$5(value)) {
|
|
@@ -22194,9 +22195,9 @@ var __async = (__this, __arguments, generator) => {
|
|
|
22194
22195
|
}
|
|
22195
22196
|
__name(toString$4, "toString$4");
|
|
22196
22197
|
var toString_1 = toString$4;
|
|
22197
|
-
var isArray$
|
|
22198
|
+
var isArray$g = isArray_1, isKey$3 = _isKey, stringToPath$3 = _stringToPath, toString$3 = toString_1;
|
|
22198
22199
|
function castPath$3(value, object) {
|
|
22199
|
-
if (isArray$
|
|
22200
|
+
if (isArray$g(value)) {
|
|
22200
22201
|
return value;
|
|
22201
22202
|
}
|
|
22202
22203
|
return isKey$3(value, object) ? [value] : stringToPath$3(toString$3(value));
|
|
@@ -22237,7 +22238,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
22237
22238
|
}
|
|
22238
22239
|
__name(baseHasIn$2, "baseHasIn$2");
|
|
22239
22240
|
var _baseHasIn = baseHasIn$2;
|
|
22240
|
-
var castPath$1 = _castPath, isArguments$3 = isArguments_1, isArray$
|
|
22241
|
+
var castPath$1 = _castPath, isArguments$3 = isArguments_1, isArray$f = isArray_1, isIndex$2 = _isIndex, isLength$1 = isLength_1, toKey$3 = _toKey;
|
|
22241
22242
|
function hasPath$2(object, path2, hasFunc) {
|
|
22242
22243
|
path2 = castPath$1(path2, object);
|
|
22243
22244
|
var index2 = -1, length = path2.length, result = false;
|
|
@@ -22252,7 +22253,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
22252
22253
|
return result;
|
|
22253
22254
|
}
|
|
22254
22255
|
length = object == null ? 0 : object.length;
|
|
22255
|
-
return !!length && isLength$1(length) && isIndex$2(key2, length) && (isArray$
|
|
22256
|
+
return !!length && isLength$1(length) && isIndex$2(key2, length) && (isArray$f(object) || isArguments$3(object));
|
|
22256
22257
|
}
|
|
22257
22258
|
__name(hasPath$2, "hasPath$2");
|
|
22258
22259
|
var _hasPath = hasPath$2;
|
|
@@ -22301,7 +22302,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
22301
22302
|
}
|
|
22302
22303
|
__name(property$2, "property$2");
|
|
22303
22304
|
var property_1 = property$2;
|
|
22304
|
-
var baseMatches$1 = _baseMatches, baseMatchesProperty$1 = _baseMatchesProperty, identity$5 = identity_1, isArray$
|
|
22305
|
+
var baseMatches$1 = _baseMatches, baseMatchesProperty$1 = _baseMatchesProperty, identity$5 = identity_1, isArray$e = isArray_1, property$1 = property_1;
|
|
22305
22306
|
function baseIteratee$5(value) {
|
|
22306
22307
|
if (typeof value == "function") {
|
|
22307
22308
|
return value;
|
|
@@ -22310,7 +22311,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
22310
22311
|
return identity$5;
|
|
22311
22312
|
}
|
|
22312
22313
|
if (typeof value == "object") {
|
|
22313
|
-
return isArray$
|
|
22314
|
+
return isArray$e(value) ? baseMatchesProperty$1(value[0], value[1]) : baseMatches$1(value);
|
|
22314
22315
|
}
|
|
22315
22316
|
return property$1(value);
|
|
22316
22317
|
}
|
|
@@ -22427,10 +22428,10 @@ var __async = (__this, __arguments, generator) => {
|
|
|
22427
22428
|
var find$2 = createFind(findIndex);
|
|
22428
22429
|
var find_1 = find$2;
|
|
22429
22430
|
const find$3 = /* @__PURE__ */ getDefaultExportFromCjs(find_1);
|
|
22430
|
-
var Symbol$4 = _Symbol, isArguments$2 = isArguments_1, isArray$
|
|
22431
|
+
var Symbol$4 = _Symbol, isArguments$2 = isArguments_1, isArray$d = isArray_1;
|
|
22431
22432
|
var spreadableSymbol = Symbol$4 ? Symbol$4.isConcatSpreadable : void 0;
|
|
22432
22433
|
function isFlattenable$1(value) {
|
|
22433
|
-
return isArray$
|
|
22434
|
+
return isArray$d(value) || isArguments$2(value) || !!(spreadableSymbol && value && value[spreadableSymbol]);
|
|
22434
22435
|
}
|
|
22435
22436
|
__name(isFlattenable$1, "isFlattenable$1");
|
|
22436
22437
|
var _isFlattenable = isFlattenable$1;
|
|
@@ -22554,11 +22555,11 @@ var __async = (__this, __arguments, generator) => {
|
|
|
22554
22555
|
}
|
|
22555
22556
|
__name(compareMultiple$1, "compareMultiple$1");
|
|
22556
22557
|
var _compareMultiple = compareMultiple$1;
|
|
22557
|
-
var arrayMap$2 = _arrayMap, baseGet$1 = _baseGet, baseIteratee$2 = _baseIteratee, baseMap$2 = _baseMap, baseSortBy = _baseSortBy, baseUnary$3 = _baseUnary, compareMultiple = _compareMultiple, identity$4 = identity_1, isArray$
|
|
22558
|
+
var arrayMap$2 = _arrayMap, baseGet$1 = _baseGet, baseIteratee$2 = _baseIteratee, baseMap$2 = _baseMap, baseSortBy = _baseSortBy, baseUnary$3 = _baseUnary, compareMultiple = _compareMultiple, identity$4 = identity_1, isArray$c = isArray_1;
|
|
22558
22559
|
function baseOrderBy$1(collection, iteratees, orders) {
|
|
22559
22560
|
if (iteratees.length) {
|
|
22560
22561
|
iteratees = arrayMap$2(iteratees, function(iteratee) {
|
|
22561
|
-
if (isArray$
|
|
22562
|
+
if (isArray$c(iteratee)) {
|
|
22562
22563
|
return function(value) {
|
|
22563
22564
|
return baseGet$1(value, iteratee.length === 1 ? iteratee[0] : iteratee);
|
|
22564
22565
|
};
|
|
@@ -24920,7 +24921,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
24920
24921
|
return target;
|
|
24921
24922
|
}
|
|
24922
24923
|
__name(_objectWithoutProperties$6, "_objectWithoutProperties$6");
|
|
24923
|
-
const _
|
|
24924
|
+
const _ = {
|
|
24924
24925
|
get: get$3,
|
|
24925
24926
|
set,
|
|
24926
24927
|
takeRight,
|
|
@@ -24933,7 +24934,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
24933
24934
|
sum,
|
|
24934
24935
|
makeTemplateComponent,
|
|
24935
24936
|
groupBy,
|
|
24936
|
-
isArray: isArray$
|
|
24937
|
+
isArray: isArray$b,
|
|
24937
24938
|
splitProps,
|
|
24938
24939
|
compactObject,
|
|
24939
24940
|
isSortingDesc,
|
|
@@ -25060,7 +25061,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
25060
25061
|
function groupBy(xs, key2) {
|
|
25061
25062
|
return xs.reduce(function(rv, x2, i2) {
|
|
25062
25063
|
var resKey = typeof key2 === "function" ? key2(x2, i2) : x2[key2];
|
|
25063
|
-
rv[resKey] = isArray$
|
|
25064
|
+
rv[resKey] = isArray$b(rv[resKey]) ? rv[resKey] : [];
|
|
25064
25065
|
rv[resKey].push(x2);
|
|
25065
25066
|
return rv;
|
|
25066
25067
|
}, {});
|
|
@@ -25071,17 +25072,17 @@ var __async = (__this, __arguments, generator) => {
|
|
|
25071
25072
|
return Number.isNaN(value) ? null : value + "px";
|
|
25072
25073
|
}
|
|
25073
25074
|
__name(asPx, "asPx");
|
|
25074
|
-
function isArray$
|
|
25075
|
+
function isArray$b(a2) {
|
|
25075
25076
|
return Array.isArray(a2);
|
|
25076
25077
|
}
|
|
25077
|
-
__name(isArray$
|
|
25078
|
+
__name(isArray$b, "isArray$b");
|
|
25078
25079
|
function makePathArray(obj) {
|
|
25079
25080
|
return flattenDeep(obj).join(".").replace(/\[/g, ".").replace(/\]/g, "").split(".");
|
|
25080
25081
|
}
|
|
25081
25082
|
__name(makePathArray, "makePathArray");
|
|
25082
25083
|
function flattenDeep(arr) {
|
|
25083
25084
|
var newArr = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
25084
|
-
if (!isArray$
|
|
25085
|
+
if (!isArray$b(arr)) {
|
|
25085
25086
|
newArr.push(arr);
|
|
25086
25087
|
} else {
|
|
25087
25088
|
for (var i2 = 0; i2 < arr.length; i2 += 1) {
|
|
@@ -25372,7 +25373,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
25372
25373
|
_createClass$b(_class, [{
|
|
25373
25374
|
key: "getResolvedState",
|
|
25374
25375
|
value: /* @__PURE__ */ __name(function getResolvedState(props, state) {
|
|
25375
|
-
var resolvedState = _extends$l({}, _
|
|
25376
|
+
var resolvedState = _extends$l({}, _.compactObject(this.state), _.compactObject(this.props), _.compactObject(state), _.compactObject(props));
|
|
25376
25377
|
return resolvedState;
|
|
25377
25378
|
}, "getResolvedState")
|
|
25378
25379
|
}, {
|
|
@@ -25418,7 +25419,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
25418
25419
|
dcol.id = dcol.id || dcol.accessor;
|
|
25419
25420
|
var accessorString = dcol.accessor;
|
|
25420
25421
|
dcol.accessor = function(row) {
|
|
25421
|
-
return _
|
|
25422
|
+
return _.get(row, accessorString);
|
|
25422
25423
|
};
|
|
25423
25424
|
return dcol;
|
|
25424
25425
|
}
|
|
@@ -25454,7 +25455,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
25454
25455
|
visibleColumns = visibleColumns.map(function(column) {
|
|
25455
25456
|
if (column.columns) {
|
|
25456
25457
|
var visibleSubColumns = column.columns.filter(function(d2) {
|
|
25457
|
-
return pivotBy.indexOf(d2.id) > -1 ? false : _
|
|
25458
|
+
return pivotBy.indexOf(d2.id) > -1 ? false : _.getFirstDefined(d2.show, true);
|
|
25458
25459
|
});
|
|
25459
25460
|
return _extends$l({}, column, {
|
|
25460
25461
|
columns: visibleSubColumns
|
|
@@ -25463,7 +25464,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
25463
25464
|
return column;
|
|
25464
25465
|
});
|
|
25465
25466
|
visibleColumns = visibleColumns.filter(function(column) {
|
|
25466
|
-
return column.columns ? column.columns.length : pivotBy.indexOf(column.id) > -1 ? false : _
|
|
25467
|
+
return column.columns ? column.columns.length : pivotBy.indexOf(column.id) > -1 ? false : _.getFirstDefined(column.show, true);
|
|
25467
25468
|
});
|
|
25468
25469
|
var pivotIndex = visibleColumns.findIndex(function(col) {
|
|
25469
25470
|
return col.pivot;
|
|
@@ -25566,7 +25567,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
25566
25567
|
if (i2 === keys2.length) {
|
|
25567
25568
|
return rows;
|
|
25568
25569
|
}
|
|
25569
|
-
var groupedRows = Object.entries(_
|
|
25570
|
+
var groupedRows = Object.entries(_.groupBy(rows, keys2[i2])).map(function(_ref) {
|
|
25570
25571
|
var _ref3;
|
|
25571
25572
|
var _ref2 = _slicedToArray$4(_ref, 2), key2 = _ref2[0], value = _ref2[1];
|
|
25572
25573
|
return _ref3 = {}, _defineProperty$4(_ref3, pivotIDKey, keys2[i2]), _defineProperty$4(_ref3, pivotValKey, key2), _defineProperty$4(_ref3, keys2[i2], key2), _defineProperty$4(_ref3, subRowsKey, value), _defineProperty$4(_ref3, nestingLevelKey, i2), _defineProperty$4(_ref3, groupedByPivotKey, true), _ref3;
|
|
@@ -25610,12 +25611,12 @@ var __async = (__this, __arguments, generator) => {
|
|
|
25610
25611
|
}, {
|
|
25611
25612
|
key: "getPropOrState",
|
|
25612
25613
|
value: /* @__PURE__ */ __name(function getPropOrState(key2) {
|
|
25613
|
-
return _
|
|
25614
|
+
return _.getFirstDefined(this.props[key2], this.state[key2]);
|
|
25614
25615
|
}, "getPropOrState")
|
|
25615
25616
|
}, {
|
|
25616
25617
|
key: "getStateOrProp",
|
|
25617
25618
|
value: /* @__PURE__ */ __name(function getStateOrProp(key2) {
|
|
25618
|
-
return _
|
|
25619
|
+
return _.getFirstDefined(this.state[key2], this.props[key2]);
|
|
25619
25620
|
}, "getStateOrProp")
|
|
25620
25621
|
}, {
|
|
25621
25622
|
key: "filterData",
|
|
@@ -25660,7 +25661,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
25660
25661
|
if (!sorted.length) {
|
|
25661
25662
|
return data;
|
|
25662
25663
|
}
|
|
25663
|
-
var sortedData = (this.props.orderByMethod || _
|
|
25664
|
+
var sortedData = (this.props.orderByMethod || _.orderBy)(data, sorted.map(function(sort) {
|
|
25664
25665
|
if (sortMethodsByColumnID[sort.id]) {
|
|
25665
25666
|
return function(a2, b2) {
|
|
25666
25667
|
return sortMethodsByColumnID[sort.id](a2[sort.id], b2[sort.id], sort.desc);
|
|
@@ -25683,7 +25684,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
25683
25684
|
}, {
|
|
25684
25685
|
key: "getMinRows",
|
|
25685
25686
|
value: /* @__PURE__ */ __name(function getMinRows() {
|
|
25686
|
-
return _
|
|
25687
|
+
return _.getFirstDefined(this.props.minRows, this.getStateOrProp("pageSize"));
|
|
25687
25688
|
}, "getMinRows")
|
|
25688
25689
|
// User actions
|
|
25689
25690
|
}, {
|
|
@@ -25725,11 +25726,11 @@ var __async = (__this, __arguments, generator) => {
|
|
|
25725
25726
|
return;
|
|
25726
25727
|
}
|
|
25727
25728
|
var onSortedChange = this.props.onSortedChange;
|
|
25728
|
-
var newSorted = _
|
|
25729
|
-
d2.desc = _
|
|
25729
|
+
var newSorted = _.clone(sorted || []).map(function(d2) {
|
|
25730
|
+
d2.desc = _.isSortingDesc(d2);
|
|
25730
25731
|
return d2;
|
|
25731
25732
|
});
|
|
25732
|
-
if (!_
|
|
25733
|
+
if (!_.isArray(column)) {
|
|
25733
25734
|
var existingIndex = newSorted.findIndex(function(d2) {
|
|
25734
25735
|
return d2.id === column.id;
|
|
25735
25736
|
});
|
|
@@ -26364,8 +26365,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
26364
26365
|
children
|
|
26365
26366
|
);
|
|
26366
26367
|
}, "TableComponent"),
|
|
26367
|
-
TheadComponent: _
|
|
26368
|
-
TbodyComponent: _
|
|
26368
|
+
TheadComponent: _.makeTemplateComponent("rt-thead", "Thead"),
|
|
26369
|
+
TbodyComponent: _.makeTemplateComponent("rt-tbody", "Tbody"),
|
|
26369
26370
|
TrGroupComponent: /* @__PURE__ */ __name(function TrGroupComponent(_ref2) {
|
|
26370
26371
|
var children = _ref2.children, className = _ref2.className, rest = _objectWithoutProperties$5(_ref2, ["children", "className"]);
|
|
26371
26372
|
return React$1.createElement(
|
|
@@ -26410,7 +26411,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
26410
26411
|
children
|
|
26411
26412
|
);
|
|
26412
26413
|
}, "TdComponent"),
|
|
26413
|
-
TfootComponent: _
|
|
26414
|
+
TfootComponent: _.makeTemplateComponent("rt-tfoot", "Tfoot"),
|
|
26414
26415
|
FilterComponent: /* @__PURE__ */ __name(function FilterComponent(_ref6) {
|
|
26415
26416
|
var filter = _ref6.filter, _onChange = _ref6.onChange, column = _ref6.column;
|
|
26416
26417
|
return React$1.createElement("input", {
|
|
@@ -26482,8 +26483,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
26482
26483
|
)
|
|
26483
26484
|
);
|
|
26484
26485
|
}, "LoadingComponent"),
|
|
26485
|
-
NoDataComponent: _
|
|
26486
|
-
ResizerComponent: _
|
|
26486
|
+
NoDataComponent: _.makeTemplateComponent("rt-noData", "NoData"),
|
|
26487
|
+
ResizerComponent: _.makeTemplateComponent("rt-resizer", "Resizer"),
|
|
26487
26488
|
PadRowComponent: /* @__PURE__ */ __name(function PadRowComponent() {
|
|
26488
26489
|
return React$1.createElement(
|
|
26489
26490
|
"span",
|
|
@@ -26782,7 +26783,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
26782
26783
|
var endRow = startRow + pageSize;
|
|
26783
26784
|
var pageRows = manual ? resolvedData : sortedData.slice(startRow, endRow);
|
|
26784
26785
|
var minRows = this.getMinRows();
|
|
26785
|
-
var padRows = _
|
|
26786
|
+
var padRows = _.range(Math.max(minRows - pageRows.length, 0));
|
|
26786
26787
|
var hasColumnFooter = allVisibleColumns.some(function(d2) {
|
|
26787
26788
|
return d2.Footer;
|
|
26788
26789
|
});
|
|
@@ -26798,7 +26799,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
26798
26799
|
_viewIndex: index2
|
|
26799
26800
|
});
|
|
26800
26801
|
var newPath = path2.concat([i2]);
|
|
26801
|
-
if (rowWithViewIndex[subRowsKey] && _
|
|
26802
|
+
if (rowWithViewIndex[subRowsKey] && _.get(expanded, newPath)) {
|
|
26802
26803
|
var _recurseRowsViewIndex = recurseRowsViewIndex2(rowWithViewIndex[subRowsKey], newPath, index2);
|
|
26803
26804
|
var _recurseRowsViewIndex2 = _slicedToArray$3(_recurseRowsViewIndex, 2);
|
|
26804
26805
|
rowWithViewIndex[subRowsKey] = _recurseRowsViewIndex2[0];
|
|
@@ -26812,11 +26813,11 @@ var __async = (__this, __arguments, generator) => {
|
|
|
26812
26813
|
pageRows = _recurseRowsViewIndex4[0];
|
|
26813
26814
|
var canPrevious = page > 0;
|
|
26814
26815
|
var canNext = page + 1 < pages;
|
|
26815
|
-
var rowMinWidth = _
|
|
26816
|
+
var rowMinWidth = _.sum(allVisibleColumns.map(function(d2) {
|
|
26816
26817
|
var resizedColumn = resized.find(function(x2) {
|
|
26817
26818
|
return x2.id === d2.id;
|
|
26818
26819
|
}) || {};
|
|
26819
|
-
return _
|
|
26820
|
+
return _.getFirstDefined(resizedColumn.value, d2.width, d2.minWidth);
|
|
26820
26821
|
}));
|
|
26821
26822
|
var rowIndex = -1;
|
|
26822
26823
|
var finalState = _extends$i({}, resolvedState, {
|
|
@@ -26830,9 +26831,9 @@ var __async = (__this, __arguments, generator) => {
|
|
|
26830
26831
|
canNext,
|
|
26831
26832
|
rowMinWidth
|
|
26832
26833
|
});
|
|
26833
|
-
var rootProps = _
|
|
26834
|
-
var tableProps = _
|
|
26835
|
-
var tBodyProps = _
|
|
26834
|
+
var rootProps = _.splitProps(getProps(finalState, void 0, void 0, this));
|
|
26835
|
+
var tableProps = _.splitProps(getTableProps(finalState, void 0, void 0, this));
|
|
26836
|
+
var tBodyProps = _.splitProps(getTbodyProps(finalState, void 0, void 0, this));
|
|
26836
26837
|
var loadingProps = getLoadingProps(finalState, void 0, void 0, this);
|
|
26837
26838
|
var noDataProps = getNoDataProps(finalState, void 0, void 0, this);
|
|
26838
26839
|
var makeHeaderGroup = /* @__PURE__ */ __name(function makeHeaderGroup2(column, i2) {
|
|
@@ -26841,24 +26842,24 @@ var __async = (__this, __arguments, generator) => {
|
|
|
26841
26842
|
return x2.id === col.id;
|
|
26842
26843
|
}) || {}).value;
|
|
26843
26844
|
}, "resizedValue");
|
|
26844
|
-
var flex = _
|
|
26845
|
+
var flex = _.sum(column.columns.map(function(col) {
|
|
26845
26846
|
return col.width || resizedValue(col) ? 0 : col.minWidth;
|
|
26846
26847
|
}));
|
|
26847
|
-
var width = _
|
|
26848
|
-
return _
|
|
26848
|
+
var width = _.sum(column.columns.map(function(col) {
|
|
26849
|
+
return _.getFirstDefined(resizedValue(col), col.width, col.minWidth);
|
|
26849
26850
|
}));
|
|
26850
|
-
var maxWidth = _
|
|
26851
|
-
return _
|
|
26851
|
+
var maxWidth = _.sum(column.columns.map(function(col) {
|
|
26852
|
+
return _.getFirstDefined(resizedValue(col), col.width, col.maxWidth);
|
|
26852
26853
|
}));
|
|
26853
|
-
var theadGroupThProps = _
|
|
26854
|
-
var columnHeaderProps = _
|
|
26854
|
+
var theadGroupThProps = _.splitProps(getTheadGroupThProps(finalState, void 0, column, _this2));
|
|
26855
|
+
var columnHeaderProps = _.splitProps(column.getHeaderProps(finalState, void 0, column, _this2));
|
|
26855
26856
|
var classes = [column.headerClassName, theadGroupThProps.className, columnHeaderProps.className];
|
|
26856
26857
|
var styles2 = _extends$i({}, column.headerStyle, theadGroupThProps.style, columnHeaderProps.style);
|
|
26857
26858
|
var rest = _extends$i({}, theadGroupThProps.rest, columnHeaderProps.rest);
|
|
26858
26859
|
var flexStyles = {
|
|
26859
26860
|
flex: flex + " 0 auto",
|
|
26860
|
-
width: _
|
|
26861
|
-
maxWidth: _
|
|
26861
|
+
width: _.asPx(width),
|
|
26862
|
+
maxWidth: _.asPx(maxWidth)
|
|
26862
26863
|
};
|
|
26863
26864
|
return React$1.createElement(
|
|
26864
26865
|
ThComponent,
|
|
@@ -26867,15 +26868,15 @@ var __async = (__this, __arguments, generator) => {
|
|
|
26867
26868
|
className: classNames(classes),
|
|
26868
26869
|
style: _extends$i({}, styles2, flexStyles)
|
|
26869
26870
|
}, rest),
|
|
26870
|
-
_
|
|
26871
|
+
_.normalizeComponent(column.Header, {
|
|
26871
26872
|
data: sortedData,
|
|
26872
26873
|
column
|
|
26873
26874
|
})
|
|
26874
26875
|
);
|
|
26875
26876
|
}, "makeHeaderGroup");
|
|
26876
26877
|
var makeHeaderGroups = /* @__PURE__ */ __name(function makeHeaderGroups2() {
|
|
26877
|
-
var theadGroupProps = _
|
|
26878
|
-
var theadGroupTrProps = _
|
|
26878
|
+
var theadGroupProps = _.splitProps(getTheadGroupProps(finalState, void 0, void 0, _this2));
|
|
26879
|
+
var theadGroupTrProps = _.splitProps(getTheadGroupTrProps(finalState, void 0, void 0, _this2));
|
|
26879
26880
|
return React$1.createElement(
|
|
26880
26881
|
TheadComponent,
|
|
26881
26882
|
_extends$i({
|
|
@@ -26902,14 +26903,14 @@ var __async = (__this, __arguments, generator) => {
|
|
|
26902
26903
|
return d2.id === column.id;
|
|
26903
26904
|
});
|
|
26904
26905
|
var show = typeof column.show === "function" ? column.show() : column.show;
|
|
26905
|
-
var width = _
|
|
26906
|
-
var maxWidth = _
|
|
26907
|
-
var theadThProps = _
|
|
26908
|
-
var columnHeaderProps = _
|
|
26906
|
+
var width = _.getFirstDefined(resizedCol.value, column.width, column.minWidth);
|
|
26907
|
+
var maxWidth = _.getFirstDefined(resizedCol.value, column.width, column.maxWidth);
|
|
26908
|
+
var theadThProps = _.splitProps(getTheadThProps(finalState, void 0, column, _this2));
|
|
26909
|
+
var columnHeaderProps = _.splitProps(column.getHeaderProps(finalState, void 0, column, _this2));
|
|
26909
26910
|
var classes = [column.headerClassName, theadThProps.className, columnHeaderProps.className];
|
|
26910
26911
|
var styles2 = _extends$i({}, column.headerStyle, theadThProps.style, columnHeaderProps.style);
|
|
26911
26912
|
var rest = _extends$i({}, theadThProps.rest, columnHeaderProps.rest);
|
|
26912
|
-
var isResizable = _
|
|
26913
|
+
var isResizable = _.getFirstDefined(column.resizable, resizable, false);
|
|
26913
26914
|
var resizer = isResizable ? React$1.createElement(ResizerComponent, _extends$i({
|
|
26914
26915
|
onMouseDown: /* @__PURE__ */ __name(function onMouseDown(e) {
|
|
26915
26916
|
return _this2.resizeColumnStart(e, column, false);
|
|
@@ -26918,7 +26919,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
26918
26919
|
return _this2.resizeColumnStart(e, column, true);
|
|
26919
26920
|
}, "onTouchStart")
|
|
26920
26921
|
}, getResizerProps("finalState", void 0, column, _this2))) : null;
|
|
26921
|
-
var isSortable = _
|
|
26922
|
+
var isSortable = _.getFirstDefined(column.sortable, sortable, false);
|
|
26922
26923
|
return React$1.createElement(
|
|
26923
26924
|
ThComponent,
|
|
26924
26925
|
_extends$i({
|
|
@@ -26926,8 +26927,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
26926
26927
|
className: classNames(classes, isResizable && "rt-resizable-header", sort ? sort.desc ? "-sort-desc" : "-sort-asc" : "", isSortable && "-cursor-pointer", !show && "-hidden", pivotBy && pivotBy.slice(0, -1).includes(column.id) && "rt-header-pivot"),
|
|
26927
26928
|
style: _extends$i({}, styles2, {
|
|
26928
26929
|
flex: width + " 0 auto",
|
|
26929
|
-
width: _
|
|
26930
|
-
maxWidth: _
|
|
26930
|
+
width: _.asPx(width),
|
|
26931
|
+
maxWidth: _.asPx(maxWidth)
|
|
26931
26932
|
}),
|
|
26932
26933
|
toggleSort: /* @__PURE__ */ __name(function toggleSort(e) {
|
|
26933
26934
|
if (isSortable)
|
|
@@ -26937,7 +26938,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
26937
26938
|
React$1.createElement(
|
|
26938
26939
|
"div",
|
|
26939
26940
|
{ className: classNames(isResizable && "rt-resizable-header-content") },
|
|
26940
|
-
_
|
|
26941
|
+
_.normalizeComponent(column.Header, {
|
|
26941
26942
|
data: sortedData,
|
|
26942
26943
|
column
|
|
26943
26944
|
})
|
|
@@ -26946,8 +26947,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
26946
26947
|
);
|
|
26947
26948
|
}, "makeHeader");
|
|
26948
26949
|
var makeHeaders = /* @__PURE__ */ __name(function makeHeaders2() {
|
|
26949
|
-
var theadProps = _
|
|
26950
|
-
var theadTrProps = _
|
|
26950
|
+
var theadProps = _.splitProps(getTheadProps(finalState, void 0, void 0, _this2));
|
|
26951
|
+
var theadTrProps = _.splitProps(getTheadTrProps(finalState, void 0, void 0, _this2));
|
|
26951
26952
|
return React$1.createElement(
|
|
26952
26953
|
TheadComponent,
|
|
26953
26954
|
_extends$i({
|
|
@@ -26970,10 +26971,10 @@ var __async = (__this, __arguments, generator) => {
|
|
|
26970
26971
|
var resizedCol = resized.find(function(x2) {
|
|
26971
26972
|
return x2.id === column.id;
|
|
26972
26973
|
}) || {};
|
|
26973
|
-
var width = _
|
|
26974
|
-
var maxWidth = _
|
|
26975
|
-
var theadFilterThProps = _
|
|
26976
|
-
var columnHeaderProps = _
|
|
26974
|
+
var width = _.getFirstDefined(resizedCol.value, column.width, column.minWidth);
|
|
26975
|
+
var maxWidth = _.getFirstDefined(resizedCol.value, column.width, column.maxWidth);
|
|
26976
|
+
var theadFilterThProps = _.splitProps(getTheadFilterThProps(finalState, void 0, column, _this2));
|
|
26977
|
+
var columnHeaderProps = _.splitProps(column.getHeaderProps(finalState, void 0, column, _this2));
|
|
26977
26978
|
var classes = [column.headerClassName, theadFilterThProps.className, columnHeaderProps.className];
|
|
26978
26979
|
var styles2 = _extends$i({}, column.headerStyle, theadFilterThProps.style, columnHeaderProps.style);
|
|
26979
26980
|
var rest = _extends$i({}, theadFilterThProps.rest, columnHeaderProps.rest);
|
|
@@ -26981,7 +26982,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
26981
26982
|
return filter2.id === column.id;
|
|
26982
26983
|
});
|
|
26983
26984
|
var ResolvedFilterComponent = column.Filter || FilterComponent;
|
|
26984
|
-
var isFilterable = _
|
|
26985
|
+
var isFilterable = _.getFirstDefined(column.filterable, filterable, false);
|
|
26985
26986
|
return React$1.createElement(
|
|
26986
26987
|
ThComponent,
|
|
26987
26988
|
_extends$i({
|
|
@@ -26989,11 +26990,11 @@ var __async = (__this, __arguments, generator) => {
|
|
|
26989
26990
|
className: classNames(classes),
|
|
26990
26991
|
style: _extends$i({}, styles2, {
|
|
26991
26992
|
flex: width + " 0 auto",
|
|
26992
|
-
width: _
|
|
26993
|
-
maxWidth: _
|
|
26993
|
+
width: _.asPx(width),
|
|
26994
|
+
maxWidth: _.asPx(maxWidth)
|
|
26994
26995
|
})
|
|
26995
26996
|
}, rest),
|
|
26996
|
-
isFilterable ? _
|
|
26997
|
+
isFilterable ? _.normalizeComponent(ResolvedFilterComponent, {
|
|
26997
26998
|
column,
|
|
26998
26999
|
filter,
|
|
26999
27000
|
onChange: /* @__PURE__ */ __name(function onChange(value) {
|
|
@@ -27003,8 +27004,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
27003
27004
|
);
|
|
27004
27005
|
}, "makeFilter");
|
|
27005
27006
|
var makeFilters = /* @__PURE__ */ __name(function makeFilters2() {
|
|
27006
|
-
var theadFilterProps = _
|
|
27007
|
-
var theadFilterTrProps = _
|
|
27007
|
+
var theadFilterProps = _.splitProps(getTheadFilterProps(finalState, void 0, void 0, _this2));
|
|
27008
|
+
var theadFilterTrProps = _.splitProps(getTheadFilterTrProps(finalState, void 0, void 0, _this2));
|
|
27008
27009
|
return React$1.createElement(
|
|
27009
27010
|
TheadComponent,
|
|
27010
27011
|
_extends$i({
|
|
@@ -27038,9 +27039,9 @@ var __async = (__this, __arguments, generator) => {
|
|
|
27038
27039
|
groupedByPivot: row[groupedByPivotKey],
|
|
27039
27040
|
subRows: row[subRowsKey]
|
|
27040
27041
|
};
|
|
27041
|
-
var isExpanded = _
|
|
27042
|
+
var isExpanded = _.get(expanded, rowInfo.nestingPath);
|
|
27042
27043
|
var trGroupProps = getTrGroupProps(finalState, rowInfo, void 0, _this2);
|
|
27043
|
-
var trProps = _
|
|
27044
|
+
var trProps = _.splitProps(getTrProps(finalState, rowInfo, void 0, _this2));
|
|
27044
27045
|
return React$1.createElement(
|
|
27045
27046
|
TrGroupComponent,
|
|
27046
27047
|
_extends$i({ key: rowInfo.nestingPath.join("_") }, trGroupProps),
|
|
@@ -27055,10 +27056,10 @@ var __async = (__this, __arguments, generator) => {
|
|
|
27055
27056
|
return x2.id === column.id;
|
|
27056
27057
|
}) || {};
|
|
27057
27058
|
var show = typeof column.show === "function" ? column.show() : column.show;
|
|
27058
|
-
var width = _
|
|
27059
|
-
var maxWidth = _
|
|
27060
|
-
var tdProps = _
|
|
27061
|
-
var columnProps = _
|
|
27059
|
+
var width = _.getFirstDefined(resizedCol.value, column.width, column.minWidth);
|
|
27060
|
+
var maxWidth = _.getFirstDefined(resizedCol.value, column.width, column.maxWidth);
|
|
27061
|
+
var tdProps = _.splitProps(getTdProps(finalState, rowInfo, column, _this2));
|
|
27062
|
+
var columnProps = _.splitProps(column.getProps(finalState, rowInfo, column, _this2));
|
|
27062
27063
|
var classes = [tdProps.className, column.className, columnProps.className];
|
|
27063
27064
|
var styles2 = _extends$i({}, tdProps.style, column.style, columnProps.style);
|
|
27064
27065
|
var cellInfo = _extends$i({}, rowInfo, {
|
|
@@ -27081,11 +27082,11 @@ var __async = (__this, __arguments, generator) => {
|
|
|
27081
27082
|
var isBranch = void 0;
|
|
27082
27083
|
var isPreview = void 0;
|
|
27083
27084
|
var onExpanderClick = /* @__PURE__ */ __name(function onExpanderClick2(e) {
|
|
27084
|
-
var newExpanded = _
|
|
27085
|
+
var newExpanded = _.clone(expanded);
|
|
27085
27086
|
if (isExpanded) {
|
|
27086
|
-
newExpanded = _
|
|
27087
|
+
newExpanded = _.set(newExpanded, cellInfo.nestingPath, false);
|
|
27087
27088
|
} else {
|
|
27088
|
-
newExpanded = _
|
|
27089
|
+
newExpanded = _.set(newExpanded, cellInfo.nestingPath, {});
|
|
27089
27090
|
}
|
|
27090
27091
|
return _this2.setStateWithData({
|
|
27091
27092
|
expanded: newExpanded
|
|
@@ -27093,7 +27094,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
27093
27094
|
return onExpandedChange && onExpandedChange(newExpanded, cellInfo.nestingPath, e, cellInfo);
|
|
27094
27095
|
});
|
|
27095
27096
|
}, "onExpanderClick");
|
|
27096
|
-
var resolvedCell = _
|
|
27097
|
+
var resolvedCell = _.normalizeComponent(column.Cell, cellInfo, value);
|
|
27097
27098
|
var ResolvedAggregatedComponent = column.Aggregated || (!column.aggregate ? AggregatedComponent : column.Cell);
|
|
27098
27099
|
var ResolvedExpanderComponent = column.Expander || ExpanderComponent;
|
|
27099
27100
|
var ResolvedPivotValueComponent = column.PivotValue || PivotValueComponent;
|
|
@@ -27117,19 +27118,19 @@ var __async = (__this, __arguments, generator) => {
|
|
|
27117
27118
|
isBranch = rowInfo.row[pivotIDKey] === column.id && cellInfo.subRows;
|
|
27118
27119
|
isPreview = pivotBy.indexOf(column.id) > pivotBy.indexOf(rowInfo.row[pivotIDKey]) && cellInfo.subRows;
|
|
27119
27120
|
if (isBranch) {
|
|
27120
|
-
resolvedCell = _
|
|
27121
|
+
resolvedCell = _.normalizeComponent(ResolvedPivotComponent, _extends$i({}, cellInfo, {
|
|
27121
27122
|
value: row[pivotValKey]
|
|
27122
27123
|
}), row[pivotValKey]);
|
|
27123
27124
|
} else if (isPreview) {
|
|
27124
|
-
resolvedCell = _
|
|
27125
|
+
resolvedCell = _.normalizeComponent(ResolvedAggregatedComponent, cellInfo, value);
|
|
27125
27126
|
} else {
|
|
27126
27127
|
resolvedCell = null;
|
|
27127
27128
|
}
|
|
27128
27129
|
} else if (cellInfo.aggregated) {
|
|
27129
|
-
resolvedCell = _
|
|
27130
|
+
resolvedCell = _.normalizeComponent(ResolvedAggregatedComponent, cellInfo, value);
|
|
27130
27131
|
}
|
|
27131
27132
|
if (cellInfo.expander) {
|
|
27132
|
-
resolvedCell = _
|
|
27133
|
+
resolvedCell = _.normalizeComponent(ResolvedExpanderComponent, cellInfo, row[pivotValKey]);
|
|
27133
27134
|
if (pivotBy) {
|
|
27134
27135
|
if (cellInfo.groupedByPivot) {
|
|
27135
27136
|
resolvedCell = null;
|
|
@@ -27165,8 +27166,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
27165
27166
|
className: classNames(classes, !cellInfo.expandable && !show && "hidden", cellInfo.expandable && "rt-expandable", (isBranch || isPreview) && "rt-pivot"),
|
|
27166
27167
|
style: _extends$i({}, styles2, {
|
|
27167
27168
|
flex: width + " 0 auto",
|
|
27168
|
-
width: _
|
|
27169
|
-
maxWidth: _
|
|
27169
|
+
width: _.asPx(width),
|
|
27170
|
+
maxWidth: _.asPx(maxWidth)
|
|
27170
27171
|
})
|
|
27171
27172
|
}, tdProps.rest, columnProps.rest, interactionProps),
|
|
27172
27173
|
resolvedCell
|
|
@@ -27177,8 +27178,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
27177
27178
|
return makePageRow2(d2, i3, rowInfo.nestingPath);
|
|
27178
27179
|
}),
|
|
27179
27180
|
SubComponent && !rowInfo.subRows && isExpanded && SubComponent(rowInfo, function() {
|
|
27180
|
-
var newExpanded = _
|
|
27181
|
-
_
|
|
27181
|
+
var newExpanded = _.clone(expanded);
|
|
27182
|
+
_.set(newExpanded, rowInfo.nestingPath, false);
|
|
27182
27183
|
})
|
|
27183
27184
|
);
|
|
27184
27185
|
}, "makePageRow");
|
|
@@ -27187,11 +27188,11 @@ var __async = (__this, __arguments, generator) => {
|
|
|
27187
27188
|
return x2.id === column.id;
|
|
27188
27189
|
}) || {};
|
|
27189
27190
|
var show = typeof column.show === "function" ? column.show() : column.show;
|
|
27190
|
-
var width = _
|
|
27191
|
+
var width = _.getFirstDefined(resizedCol.value, column.width, column.minWidth);
|
|
27191
27192
|
var flex = width;
|
|
27192
|
-
var maxWidth = _
|
|
27193
|
-
var tdProps = _
|
|
27194
|
-
var columnProps = _
|
|
27193
|
+
var maxWidth = _.getFirstDefined(resizedCol.value, column.width, column.maxWidth);
|
|
27194
|
+
var tdProps = _.splitProps(getTdProps(finalState, void 0, column, _this2));
|
|
27195
|
+
var columnProps = _.splitProps(column.getProps(finalState, void 0, column, _this2));
|
|
27195
27196
|
var classes = [tdProps.className, column.className, columnProps.className];
|
|
27196
27197
|
var styles2 = _extends$i({}, tdProps.style, column.style, columnProps.style);
|
|
27197
27198
|
return React$1.createElement(
|
|
@@ -27201,16 +27202,16 @@ var __async = (__this, __arguments, generator) => {
|
|
|
27201
27202
|
className: classNames(classes, !show && "hidden"),
|
|
27202
27203
|
style: _extends$i({}, styles2, {
|
|
27203
27204
|
flex: flex + " 0 auto",
|
|
27204
|
-
width: _
|
|
27205
|
-
maxWidth: _
|
|
27205
|
+
width: _.asPx(width),
|
|
27206
|
+
maxWidth: _.asPx(maxWidth)
|
|
27206
27207
|
})
|
|
27207
27208
|
}, tdProps.rest),
|
|
27208
|
-
_
|
|
27209
|
+
_.normalizeComponent(PadRowComponent)
|
|
27209
27210
|
);
|
|
27210
27211
|
}, "makePadColumn");
|
|
27211
27212
|
var makePadRow = /* @__PURE__ */ __name(function makePadRow2(row, i2) {
|
|
27212
27213
|
var trGroupProps = getTrGroupProps(finalState, void 0, void 0, _this2);
|
|
27213
|
-
var trProps = _
|
|
27214
|
+
var trProps = _.splitProps(getTrProps(finalState, void 0, void 0, _this2));
|
|
27214
27215
|
return React$1.createElement(
|
|
27215
27216
|
TrGroupComponent,
|
|
27216
27217
|
_extends$i({ key: "pad-" + i2 }, trGroupProps),
|
|
@@ -27229,11 +27230,11 @@ var __async = (__this, __arguments, generator) => {
|
|
|
27229
27230
|
return x2.id === column.id;
|
|
27230
27231
|
}) || {};
|
|
27231
27232
|
var show = typeof column.show === "function" ? column.show() : column.show;
|
|
27232
|
-
var width = _
|
|
27233
|
-
var maxWidth = _
|
|
27234
|
-
var tFootTdProps = _
|
|
27235
|
-
var columnProps = _
|
|
27236
|
-
var columnFooterProps = _
|
|
27233
|
+
var width = _.getFirstDefined(resizedCol.value, column.width, column.minWidth);
|
|
27234
|
+
var maxWidth = _.getFirstDefined(resizedCol.value, column.width, column.maxWidth);
|
|
27235
|
+
var tFootTdProps = _.splitProps(getTfootTdProps(finalState, void 0, column, _this2));
|
|
27236
|
+
var columnProps = _.splitProps(column.getProps(finalState, void 0, column, _this2));
|
|
27237
|
+
var columnFooterProps = _.splitProps(column.getFooterProps(finalState, void 0, column, _this2));
|
|
27237
27238
|
var classes = [tFootTdProps.className, column.className, columnProps.className, columnFooterProps.className];
|
|
27238
27239
|
var styles2 = _extends$i({}, tFootTdProps.style, column.style, columnProps.style, columnFooterProps.style);
|
|
27239
27240
|
return React$1.createElement(
|
|
@@ -27243,19 +27244,19 @@ var __async = (__this, __arguments, generator) => {
|
|
|
27243
27244
|
className: classNames(classes, !show && "hidden"),
|
|
27244
27245
|
style: _extends$i({}, styles2, {
|
|
27245
27246
|
flex: width + " 0 auto",
|
|
27246
|
-
width: _
|
|
27247
|
-
maxWidth: _
|
|
27247
|
+
width: _.asPx(width),
|
|
27248
|
+
maxWidth: _.asPx(maxWidth)
|
|
27248
27249
|
})
|
|
27249
27250
|
}, columnProps.rest, tFootTdProps.rest, columnFooterProps.rest),
|
|
27250
|
-
_
|
|
27251
|
+
_.normalizeComponent(column.Footer, {
|
|
27251
27252
|
data: sortedData,
|
|
27252
27253
|
column
|
|
27253
27254
|
})
|
|
27254
27255
|
);
|
|
27255
27256
|
}, "makeColumnFooter");
|
|
27256
27257
|
var makeColumnFooters = /* @__PURE__ */ __name(function makeColumnFooters2() {
|
|
27257
|
-
var tFootProps = _
|
|
27258
|
-
var tFootTrProps = _
|
|
27258
|
+
var tFootProps = _.splitProps(getTfootProps(finalState, void 0, void 0, _this2));
|
|
27259
|
+
var tFootTrProps = _.splitProps(getTfootTrProps(finalState, void 0, void 0, _this2));
|
|
27259
27260
|
return React$1.createElement(
|
|
27260
27261
|
TfootComponent,
|
|
27261
27262
|
_extends$i({
|
|
@@ -27275,7 +27276,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
27275
27276
|
);
|
|
27276
27277
|
}, "makeColumnFooters");
|
|
27277
27278
|
var makePagination = /* @__PURE__ */ __name(function makePagination2(isTop) {
|
|
27278
|
-
var paginationProps = _
|
|
27279
|
+
var paginationProps = _.splitProps(getPaginationProps(finalState, void 0, void 0, _this2));
|
|
27279
27280
|
return React$1.createElement(PaginationComponent, _extends$i({}, resolvedState, {
|
|
27280
27281
|
pages,
|
|
27281
27282
|
canPrevious,
|
|
@@ -27339,7 +27340,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
27339
27340
|
!pageRows.length && React$1.createElement(
|
|
27340
27341
|
NoDataComponent,
|
|
27341
27342
|
noDataProps,
|
|
27342
|
-
_
|
|
27343
|
+
_.normalizeComponent(noDataText)
|
|
27343
27344
|
),
|
|
27344
27345
|
React$1.createElement(LoadingComponent2, _extends$i({ loading, loadingText }, loadingProps))
|
|
27345
27346
|
);
|
|
@@ -28291,7 +28292,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
28291
28292
|
var toStr$2 = Object.prototype.toString;
|
|
28292
28293
|
var defineProperty$4 = Object.defineProperty;
|
|
28293
28294
|
var gOPD = Object.getOwnPropertyDescriptor;
|
|
28294
|
-
var isArray$
|
|
28295
|
+
var isArray$a = /* @__PURE__ */ __name(function isArray2(arr) {
|
|
28295
28296
|
if (typeof Array.isArray === "function") {
|
|
28296
28297
|
return Array.isArray(arr);
|
|
28297
28298
|
}
|
|
@@ -28354,10 +28355,10 @@ var __async = (__this, __arguments, generator) => {
|
|
|
28354
28355
|
src2 = getProperty(target, name2);
|
|
28355
28356
|
copy2 = getProperty(options, name2);
|
|
28356
28357
|
if (target !== copy2) {
|
|
28357
|
-
if (deep && copy2 && (isPlainObject$3(copy2) || (copyIsArray = isArray$
|
|
28358
|
+
if (deep && copy2 && (isPlainObject$3(copy2) || (copyIsArray = isArray$a(copy2)))) {
|
|
28358
28359
|
if (copyIsArray) {
|
|
28359
28360
|
copyIsArray = false;
|
|
28360
|
-
clone2 = src2 && isArray$
|
|
28361
|
+
clone2 = src2 && isArray$a(src2) ? src2 : [];
|
|
28361
28362
|
} else {
|
|
28362
28363
|
clone2 = src2 && isPlainObject$3(src2) ? src2 : {};
|
|
28363
28364
|
}
|
|
@@ -36370,7 +36371,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
36370
36371
|
if (hasRequiredReactIs_development)
|
|
36371
36372
|
return reactIs_development;
|
|
36372
36373
|
hasRequiredReactIs_development = 1;
|
|
36373
|
-
if (
|
|
36374
|
+
if (production !== "production") {
|
|
36374
36375
|
(function() {
|
|
36375
36376
|
var REACT_ELEMENT_TYPE = Symbol.for("react.element");
|
|
36376
36377
|
var REACT_PORTAL_TYPE = Symbol.for("react.portal");
|
|
@@ -36563,7 +36564,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
36563
36564
|
return reactIs_development;
|
|
36564
36565
|
}
|
|
36565
36566
|
__name(requireReactIs_development, "requireReactIs_development");
|
|
36566
|
-
if (
|
|
36567
|
+
if (production === "production") {
|
|
36567
36568
|
reactIs.exports = requireReactIs_production_min();
|
|
36568
36569
|
} else {
|
|
36569
36570
|
reactIs.exports = requireReactIs_development();
|
|
@@ -42965,7 +42966,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
42965
42966
|
depth = 0;
|
|
42966
42967
|
}
|
|
42967
42968
|
if (depth >= maxDepth && maxDepth > 0 && typeof obj === "object") {
|
|
42968
|
-
return isArray$
|
|
42969
|
+
return isArray$9(obj) ? "[Array]" : "[Object]";
|
|
42969
42970
|
}
|
|
42970
42971
|
var indent2 = getIndent(opts, depth);
|
|
42971
42972
|
if (typeof seen === "undefined") {
|
|
@@ -43012,7 +43013,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
43012
43013
|
s2 += "</" + $toLowerCase.call(String(obj.nodeName)) + ">";
|
|
43013
43014
|
return s2;
|
|
43014
43015
|
}
|
|
43015
|
-
if (isArray$
|
|
43016
|
+
if (isArray$9(obj)) {
|
|
43016
43017
|
if (obj.length === 0) {
|
|
43017
43018
|
return "[]";
|
|
43018
43019
|
}
|
|
@@ -43075,7 +43076,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
43075
43076
|
if (isBoolean$1(obj)) {
|
|
43076
43077
|
return markBoxed(booleanValueOf.call(obj));
|
|
43077
43078
|
}
|
|
43078
|
-
if (isString$
|
|
43079
|
+
if (isString$2(obj)) {
|
|
43079
43080
|
return markBoxed(inspect2(String(obj)));
|
|
43080
43081
|
}
|
|
43081
43082
|
if (!isDate(obj) && !isRegExp$1(obj)) {
|
|
@@ -43104,10 +43105,10 @@ var __async = (__this, __arguments, generator) => {
|
|
|
43104
43105
|
return $replace.call(String(s2), /"/g, """);
|
|
43105
43106
|
}
|
|
43106
43107
|
__name(quote, "quote");
|
|
43107
|
-
function isArray$
|
|
43108
|
+
function isArray$9(obj) {
|
|
43108
43109
|
return toStr(obj) === "[object Array]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
|
|
43109
43110
|
}
|
|
43110
|
-
__name(isArray$
|
|
43111
|
+
__name(isArray$9, "isArray$9");
|
|
43111
43112
|
function isDate(obj) {
|
|
43112
43113
|
return toStr(obj) === "[object Date]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
|
|
43113
43114
|
}
|
|
@@ -43120,10 +43121,10 @@ var __async = (__this, __arguments, generator) => {
|
|
|
43120
43121
|
return toStr(obj) === "[object Error]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
|
|
43121
43122
|
}
|
|
43122
43123
|
__name(isError, "isError");
|
|
43123
|
-
function isString$
|
|
43124
|
+
function isString$2(obj) {
|
|
43124
43125
|
return toStr(obj) === "[object String]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
|
|
43125
43126
|
}
|
|
43126
|
-
__name(isString$
|
|
43127
|
+
__name(isString$2, "isString$2");
|
|
43127
43128
|
function isNumber$1(obj) {
|
|
43128
43129
|
return toStr(obj) === "[object Number]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
|
|
43129
43130
|
}
|
|
@@ -43357,7 +43358,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
43357
43358
|
}
|
|
43358
43359
|
__name(indentedJoin, "indentedJoin");
|
|
43359
43360
|
function arrObjKeys(obj, inspect2) {
|
|
43360
|
-
var isArr = isArray$
|
|
43361
|
+
var isArr = isArray$9(obj);
|
|
43361
43362
|
var xs = [];
|
|
43362
43363
|
if (isArr) {
|
|
43363
43364
|
xs.length = obj.length;
|
|
@@ -43523,7 +43524,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
43523
43524
|
};
|
|
43524
43525
|
var formats$2 = formats$3;
|
|
43525
43526
|
var has$3 = Object.prototype.hasOwnProperty;
|
|
43526
|
-
var isArray$
|
|
43527
|
+
var isArray$8 = Array.isArray;
|
|
43527
43528
|
var hexTable = function() {
|
|
43528
43529
|
var array = [];
|
|
43529
43530
|
for (var i2 = 0; i2 < 256; ++i2) {
|
|
@@ -43535,7 +43536,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
43535
43536
|
while (queue.length > 1) {
|
|
43536
43537
|
var item = queue.pop();
|
|
43537
43538
|
var obj = item.obj[item.prop];
|
|
43538
|
-
if (isArray$
|
|
43539
|
+
if (isArray$8(obj)) {
|
|
43539
43540
|
var compacted = [];
|
|
43540
43541
|
for (var j2 = 0; j2 < obj.length; ++j2) {
|
|
43541
43542
|
if (typeof obj[j2] !== "undefined") {
|
|
@@ -43560,7 +43561,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
43560
43561
|
return target;
|
|
43561
43562
|
}
|
|
43562
43563
|
if (typeof source !== "object") {
|
|
43563
|
-
if (isArray$
|
|
43564
|
+
if (isArray$8(target)) {
|
|
43564
43565
|
target.push(source);
|
|
43565
43566
|
} else if (target && typeof target === "object") {
|
|
43566
43567
|
if (options && (options.plainObjects || options.allowPrototypes) || !has$3.call(Object.prototype, source)) {
|
|
@@ -43575,10 +43576,10 @@ var __async = (__this, __arguments, generator) => {
|
|
|
43575
43576
|
return [target].concat(source);
|
|
43576
43577
|
}
|
|
43577
43578
|
var mergeTarget = target;
|
|
43578
|
-
if (isArray$
|
|
43579
|
+
if (isArray$8(target) && !isArray$8(source)) {
|
|
43579
43580
|
mergeTarget = arrayToObject(target, options);
|
|
43580
43581
|
}
|
|
43581
|
-
if (isArray$
|
|
43582
|
+
if (isArray$8(target) && isArray$8(source)) {
|
|
43582
43583
|
source.forEach(function(item, i2) {
|
|
43583
43584
|
if (has$3.call(target, i2)) {
|
|
43584
43585
|
var targetItem = target[i2];
|
|
@@ -43692,7 +43693,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
43692
43693
|
return [].concat(a2, b2);
|
|
43693
43694
|
}, "combine");
|
|
43694
43695
|
var maybeMap = /* @__PURE__ */ __name(function maybeMap2(val, fn2) {
|
|
43695
|
-
if (isArray$
|
|
43696
|
+
if (isArray$8(val)) {
|
|
43696
43697
|
var mapped = [];
|
|
43697
43698
|
for (var i2 = 0; i2 < val.length; i2 += 1) {
|
|
43698
43699
|
mapped.push(fn2(val[i2]));
|
|
@@ -43729,10 +43730,10 @@ var __async = (__this, __arguments, generator) => {
|
|
|
43729
43730
|
return prefix;
|
|
43730
43731
|
}, "repeat")
|
|
43731
43732
|
};
|
|
43732
|
-
var isArray$
|
|
43733
|
+
var isArray$7 = Array.isArray;
|
|
43733
43734
|
var push = Array.prototype.push;
|
|
43734
43735
|
var pushToArray = /* @__PURE__ */ __name(function(arr, valueOrArray) {
|
|
43735
|
-
push.apply(arr, isArray$
|
|
43736
|
+
push.apply(arr, isArray$7(valueOrArray) ? valueOrArray : [valueOrArray]);
|
|
43736
43737
|
}, "pushToArray");
|
|
43737
43738
|
var toISO = Date.prototype.toISOString;
|
|
43738
43739
|
var defaultFormat = formats$1["default"];
|
|
@@ -43782,7 +43783,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
43782
43783
|
obj = filter(prefix, obj);
|
|
43783
43784
|
} else if (obj instanceof Date) {
|
|
43784
43785
|
obj = serializeDate(obj);
|
|
43785
|
-
} else if (generateArrayPrefix === "comma" && isArray$
|
|
43786
|
+
} else if (generateArrayPrefix === "comma" && isArray$7(obj)) {
|
|
43786
43787
|
obj = utils$1.maybeMap(obj, function(value2) {
|
|
43787
43788
|
if (value2 instanceof Date) {
|
|
43788
43789
|
return serializeDate(value2);
|
|
@@ -43808,25 +43809,25 @@ var __async = (__this, __arguments, generator) => {
|
|
|
43808
43809
|
return values;
|
|
43809
43810
|
}
|
|
43810
43811
|
var objKeys;
|
|
43811
|
-
if (generateArrayPrefix === "comma" && isArray$
|
|
43812
|
+
if (generateArrayPrefix === "comma" && isArray$7(obj)) {
|
|
43812
43813
|
if (encodeValuesOnly && encoder) {
|
|
43813
43814
|
obj = utils$1.maybeMap(obj, encoder);
|
|
43814
43815
|
}
|
|
43815
43816
|
objKeys = [{ value: obj.length > 0 ? obj.join(",") || null : void 0 }];
|
|
43816
|
-
} else if (isArray$
|
|
43817
|
+
} else if (isArray$7(filter)) {
|
|
43817
43818
|
objKeys = filter;
|
|
43818
43819
|
} else {
|
|
43819
43820
|
var keys2 = Object.keys(obj);
|
|
43820
43821
|
objKeys = sort ? keys2.sort(sort) : keys2;
|
|
43821
43822
|
}
|
|
43822
|
-
var adjustedPrefix = commaRoundTrip && isArray$
|
|
43823
|
+
var adjustedPrefix = commaRoundTrip && isArray$7(obj) && obj.length === 1 ? prefix + "[]" : prefix;
|
|
43823
43824
|
for (var j2 = 0; j2 < objKeys.length; ++j2) {
|
|
43824
43825
|
var key2 = objKeys[j2];
|
|
43825
43826
|
var value = typeof key2 === "object" && typeof key2.value !== "undefined" ? key2.value : obj[key2];
|
|
43826
43827
|
if (skipNulls && value === null) {
|
|
43827
43828
|
continue;
|
|
43828
43829
|
}
|
|
43829
|
-
var keyPrefix = isArray$
|
|
43830
|
+
var keyPrefix = isArray$7(obj) ? typeof generateArrayPrefix === "function" ? generateArrayPrefix(adjustedPrefix, key2) : adjustedPrefix : adjustedPrefix + (allowDots ? "." + key2 : "[" + key2 + "]");
|
|
43830
43831
|
sideChannel2.set(object, step2);
|
|
43831
43832
|
var valueSideChannel = getSideChannel();
|
|
43832
43833
|
valueSideChannel.set(sentinel, sideChannel2);
|
|
@@ -43837,7 +43838,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
43837
43838
|
commaRoundTrip,
|
|
43838
43839
|
strictNullHandling,
|
|
43839
43840
|
skipNulls,
|
|
43840
|
-
generateArrayPrefix === "comma" && encodeValuesOnly && isArray$
|
|
43841
|
+
generateArrayPrefix === "comma" && encodeValuesOnly && isArray$7(obj) ? null : encoder,
|
|
43841
43842
|
filter,
|
|
43842
43843
|
sort,
|
|
43843
43844
|
allowDots,
|
|
@@ -43871,7 +43872,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
43871
43872
|
}
|
|
43872
43873
|
var formatter = formats$1.formatters[format2];
|
|
43873
43874
|
var filter = defaults$1.filter;
|
|
43874
|
-
if (typeof opts.filter === "function" || isArray$
|
|
43875
|
+
if (typeof opts.filter === "function" || isArray$7(opts.filter)) {
|
|
43875
43876
|
filter = opts.filter;
|
|
43876
43877
|
}
|
|
43877
43878
|
return {
|
|
@@ -43900,7 +43901,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
43900
43901
|
if (typeof options.filter === "function") {
|
|
43901
43902
|
filter = options.filter;
|
|
43902
43903
|
obj = filter("", obj);
|
|
43903
|
-
} else if (isArray$
|
|
43904
|
+
} else if (isArray$7(options.filter)) {
|
|
43904
43905
|
filter = options.filter;
|
|
43905
43906
|
objKeys = filter;
|
|
43906
43907
|
}
|
|
@@ -43965,7 +43966,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
43965
43966
|
}, "stringify_1");
|
|
43966
43967
|
var utils = utils$2;
|
|
43967
43968
|
var has$1 = Object.prototype.hasOwnProperty;
|
|
43968
|
-
var isArray$
|
|
43969
|
+
var isArray$6 = Array.isArray;
|
|
43969
43970
|
var defaults = {
|
|
43970
43971
|
allowDots: false,
|
|
43971
43972
|
allowPrototypes: false,
|
|
@@ -44042,7 +44043,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
44042
44043
|
val = interpretNumericEntities(val);
|
|
44043
44044
|
}
|
|
44044
44045
|
if (part.indexOf("[]=") > -1) {
|
|
44045
|
-
val = isArray$
|
|
44046
|
+
val = isArray$6(val) ? [val] : val;
|
|
44046
44047
|
}
|
|
44047
44048
|
if (has$1.call(obj, key2)) {
|
|
44048
44049
|
obj[key2] = utils.combine(obj[key2], val);
|
|
@@ -44167,434 +44168,6 @@ var __async = (__this, __arguments, generator) => {
|
|
|
44167
44168
|
stringify
|
|
44168
44169
|
};
|
|
44169
44170
|
const queryString = /* @__PURE__ */ getDefaultExportFromCjs(lib$1);
|
|
44170
|
-
var filterExpression = function() {
|
|
44171
|
-
function FilterExpression2(opName, args) {
|
|
44172
|
-
this.name = opName;
|
|
44173
|
-
this.args = args;
|
|
44174
|
-
}
|
|
44175
|
-
__name(FilterExpression2, "FilterExpression");
|
|
44176
|
-
FilterExpression2.prototype.toFilter = function(filterBuilder, argName) {
|
|
44177
|
-
var filterDef = {
|
|
44178
|
-
type: "expression",
|
|
44179
|
-
operator: this.name,
|
|
44180
|
-
field: argName,
|
|
44181
|
-
args: this.args
|
|
44182
|
-
};
|
|
44183
|
-
return filterDef;
|
|
44184
|
-
};
|
|
44185
|
-
return FilterExpression2;
|
|
44186
|
-
}();
|
|
44187
|
-
var combineQueries$1 = /* @__PURE__ */ __name(function combineQueries2(qry1, qry2, joinOperator, opts) {
|
|
44188
|
-
if (qry1.__objectType !== "query")
|
|
44189
|
-
throw new Error("First query is not a query type.");
|
|
44190
|
-
if (qry2.__objectType !== "query")
|
|
44191
|
-
throw new Error("Second query is not a query type.");
|
|
44192
|
-
if (qry1.entity != qry2.entity)
|
|
44193
|
-
throw new Error(
|
|
44194
|
-
"Queries are for different entities " + qry1.entity + " and " + qry2.entity
|
|
44195
|
-
);
|
|
44196
|
-
if (joinOperator !== "or")
|
|
44197
|
-
joinOperator = "and";
|
|
44198
|
-
var combinedFilters = {
|
|
44199
|
-
type: "group",
|
|
44200
|
-
operator: joinOperator,
|
|
44201
|
-
filters: []
|
|
44202
|
-
};
|
|
44203
|
-
combinedFilters.filters = qry1.filters.concat(qry2.filters);
|
|
44204
|
-
qry1.filters = [combinedFilters];
|
|
44205
|
-
return qry1;
|
|
44206
|
-
}, "combineQueries");
|
|
44207
|
-
const FilterExpression = filterExpression;
|
|
44208
|
-
const _ = lodashExports;
|
|
44209
|
-
const combineQueries = combineQueries$1;
|
|
44210
|
-
function isDateOrNumber(opName) {
|
|
44211
|
-
return () => {
|
|
44212
|
-
var args = [].slice.call(arguments);
|
|
44213
|
-
if (args.some((arg) => {
|
|
44214
|
-
return !(_.isDate(arg) || _.isString(arg) || _.isNumber(arg));
|
|
44215
|
-
})) {
|
|
44216
|
-
throw new Error(
|
|
44217
|
-
`QueryBuilderError: You must pass a date or number as args to ${opName}. You passed: Args ${args.join(
|
|
44218
|
-
","
|
|
44219
|
-
)}`
|
|
44220
|
-
);
|
|
44221
|
-
}
|
|
44222
|
-
};
|
|
44223
|
-
}
|
|
44224
|
-
__name(isDateOrNumber, "isDateOrNumber");
|
|
44225
|
-
function isArray$6(opName) {
|
|
44226
|
-
return (arg) => {
|
|
44227
|
-
if (!_.isArray(arg)) {
|
|
44228
|
-
throw new Error(
|
|
44229
|
-
`QueryBuilderError: You must pass an array for ${opName} filters. You passed: ${arg}`
|
|
44230
|
-
);
|
|
44231
|
-
}
|
|
44232
|
-
};
|
|
44233
|
-
}
|
|
44234
|
-
__name(isArray$6, "isArray$6");
|
|
44235
|
-
function isString$2(opName) {
|
|
44236
|
-
return (arg) => {
|
|
44237
|
-
if (!_.isString(arg)) {
|
|
44238
|
-
throw new Error(
|
|
44239
|
-
`QueryBuilderError: You must pass a string for ${opName} filters. You passed: ${arg}`
|
|
44240
|
-
);
|
|
44241
|
-
}
|
|
44242
|
-
};
|
|
44243
|
-
}
|
|
44244
|
-
__name(isString$2, "isString$2");
|
|
44245
|
-
function numberOfArgs(opName, argLength) {
|
|
44246
|
-
return (...args) => {
|
|
44247
|
-
if (args.length !== argLength) {
|
|
44248
|
-
throw new Error(
|
|
44249
|
-
`QueryBuilderError: Args for ${opName} are of length ${args.length}, but they should be of length ${argLength}`
|
|
44250
|
-
);
|
|
44251
|
-
}
|
|
44252
|
-
};
|
|
44253
|
-
}
|
|
44254
|
-
__name(numberOfArgs, "numberOfArgs");
|
|
44255
|
-
const expressionOperators = [
|
|
44256
|
-
{
|
|
44257
|
-
opName: "greaterThan",
|
|
44258
|
-
sanityChecks: [
|
|
44259
|
-
numberOfArgs("greaterThan", 1),
|
|
44260
|
-
isDateOrNumber("greaterThan")
|
|
44261
|
-
]
|
|
44262
|
-
},
|
|
44263
|
-
{
|
|
44264
|
-
opName: "inList",
|
|
44265
|
-
sanityChecks: [numberOfArgs("inList", 1), isArray$6("inList")]
|
|
44266
|
-
},
|
|
44267
|
-
{
|
|
44268
|
-
opName: "lessThan",
|
|
44269
|
-
sanityChecks: [numberOfArgs("lessThan", 1), isDateOrNumber("lessThan")]
|
|
44270
|
-
},
|
|
44271
|
-
{
|
|
44272
|
-
opName: "lessThanOrEqual",
|
|
44273
|
-
sanityChecks: [
|
|
44274
|
-
numberOfArgs("lessThanOrEqual", 1),
|
|
44275
|
-
isDateOrNumber("lessThanOrEqual")
|
|
44276
|
-
]
|
|
44277
|
-
},
|
|
44278
|
-
{
|
|
44279
|
-
opName: "equals",
|
|
44280
|
-
sanityChecks: [numberOfArgs("equals", 1)]
|
|
44281
|
-
},
|
|
44282
|
-
{
|
|
44283
|
-
opName: "greaterThanOrEqual",
|
|
44284
|
-
sanityChecks: [
|
|
44285
|
-
numberOfArgs("greaterThanOrEqual", 1),
|
|
44286
|
-
isDateOrNumber("greaterThanOrEqual")
|
|
44287
|
-
]
|
|
44288
|
-
},
|
|
44289
|
-
{
|
|
44290
|
-
opName: "notEquals",
|
|
44291
|
-
sanityChecks: [numberOfArgs("notEquals", 1)]
|
|
44292
|
-
},
|
|
44293
|
-
{
|
|
44294
|
-
opName: "notNull",
|
|
44295
|
-
sanityChecks: [numberOfArgs("notNull", 0)]
|
|
44296
|
-
},
|
|
44297
|
-
{
|
|
44298
|
-
opName: "isNull",
|
|
44299
|
-
sanityChecks: [numberOfArgs("isNull", 0)]
|
|
44300
|
-
},
|
|
44301
|
-
{
|
|
44302
|
-
opName: "between",
|
|
44303
|
-
sanityChecks: [numberOfArgs("between", 2), isDateOrNumber("between")]
|
|
44304
|
-
},
|
|
44305
|
-
{
|
|
44306
|
-
opName: "notInList",
|
|
44307
|
-
sanityChecks: [numberOfArgs("notInList", 1), isArray$6("notInList")]
|
|
44308
|
-
},
|
|
44309
|
-
{
|
|
44310
|
-
opName: "startsWithExactly",
|
|
44311
|
-
sanityChecks: [numberOfArgs("startsWith", 1), isString$2("startsWith")]
|
|
44312
|
-
},
|
|
44313
|
-
{
|
|
44314
|
-
opName: "endsWithExactly",
|
|
44315
|
-
sanityChecks: [numberOfArgs("endsWith", 1), isString$2("endsWith")]
|
|
44316
|
-
},
|
|
44317
|
-
{
|
|
44318
|
-
opName: "containsExactly",
|
|
44319
|
-
sanityChecks: [numberOfArgs("contains", 1), isString$2("contains")]
|
|
44320
|
-
},
|
|
44321
|
-
{
|
|
44322
|
-
opName: "startsWith",
|
|
44323
|
-
sanityChecks: [numberOfArgs("startsWith", 1), isString$2("startsWith")]
|
|
44324
|
-
},
|
|
44325
|
-
{
|
|
44326
|
-
opName: "notStartsWith",
|
|
44327
|
-
sanityChecks: [numberOfArgs("notStartsWith", 1), isString$2("notStartsWith")]
|
|
44328
|
-
},
|
|
44329
|
-
{
|
|
44330
|
-
opName: "endsWith",
|
|
44331
|
-
sanityChecks: [numberOfArgs("endsWith", 1), isString$2("endsWith")]
|
|
44332
|
-
},
|
|
44333
|
-
{
|
|
44334
|
-
opName: "notEndsWith",
|
|
44335
|
-
sanityChecks: [numberOfArgs("notEndsWith", 1), isString$2("notEndsWith")]
|
|
44336
|
-
},
|
|
44337
|
-
{
|
|
44338
|
-
opName: "contains",
|
|
44339
|
-
sanityChecks: [numberOfArgs("contains", 1), isString$2("contains")]
|
|
44340
|
-
},
|
|
44341
|
-
{
|
|
44342
|
-
opName: "notContains",
|
|
44343
|
-
sanityChecks: [numberOfArgs("notContains", 1), isString$2("notContains")]
|
|
44344
|
-
},
|
|
44345
|
-
{
|
|
44346
|
-
opName: "upperCase",
|
|
44347
|
-
sanityChecks: [numberOfArgs("upperCase", 1), isString$2("upperCase")]
|
|
44348
|
-
},
|
|
44349
|
-
{
|
|
44350
|
-
opName: "lowerCase",
|
|
44351
|
-
sanityChecks: [numberOfArgs("lowerCase", 1), isString$2("lowerCase")]
|
|
44352
|
-
},
|
|
44353
|
-
{
|
|
44354
|
-
opName: "matchesRegex",
|
|
44355
|
-
sanityChecks: [numberOfArgs("matchesRegex", 1), isString$2("matchesRegex")]
|
|
44356
|
-
},
|
|
44357
|
-
{
|
|
44358
|
-
opName: "matchesSimilar",
|
|
44359
|
-
sanityChecks: [
|
|
44360
|
-
numberOfArgs("matchesSimilar", 1),
|
|
44361
|
-
isString$2("matchesSimilar")
|
|
44362
|
-
]
|
|
44363
|
-
},
|
|
44364
|
-
{
|
|
44365
|
-
opName: "fuzzy",
|
|
44366
|
-
sanityChecks: [numberOfArgs("fuzzy", 1), isString$2("fuzzy")],
|
|
44367
|
-
transform: (arg) => {
|
|
44368
|
-
var matchTerm = "";
|
|
44369
|
-
var terms = arg.replace(/\W/g, "").replace(" ", "").split("");
|
|
44370
|
-
for (var i2 = 0; i2 < terms.length; i2++) {
|
|
44371
|
-
matchTerm += ".*" + terms[i2];
|
|
44372
|
-
}
|
|
44373
|
-
matchTerm += ".*";
|
|
44374
|
-
return {
|
|
44375
|
-
newOpName: "matchesRegex",
|
|
44376
|
-
newArgs: [matchTerm]
|
|
44377
|
-
};
|
|
44378
|
-
}
|
|
44379
|
-
}
|
|
44380
|
-
// 'subString', //tnr: not yet implemented
|
|
44381
|
-
// 'dateOnly', //tnr: not yet implemented
|
|
44382
|
-
];
|
|
44383
|
-
var queryBuilder = function() {
|
|
44384
|
-
function QueryBuilder2(entity) {
|
|
44385
|
-
this.query = {};
|
|
44386
|
-
if (entity == null)
|
|
44387
|
-
throw new Error("You must pass the name of the model being filtered!");
|
|
44388
|
-
if (typeof entity === "string") {
|
|
44389
|
-
this.query = {
|
|
44390
|
-
__objectType: "query",
|
|
44391
|
-
type: "root",
|
|
44392
|
-
entity,
|
|
44393
|
-
filters: []
|
|
44394
|
-
};
|
|
44395
|
-
} else {
|
|
44396
|
-
let subQuery = entity;
|
|
44397
|
-
this.query = {
|
|
44398
|
-
type: "subquery",
|
|
44399
|
-
key: subQuery.key,
|
|
44400
|
-
entity: subQuery.entity,
|
|
44401
|
-
foreignKey: subQuery.foreignKey,
|
|
44402
|
-
modifier: subQuery.modifier,
|
|
44403
|
-
isArrayRelation: subQuery.isArrayRelation,
|
|
44404
|
-
filters: [],
|
|
44405
|
-
countExpression: void 0
|
|
44406
|
-
};
|
|
44407
|
-
this.parentBuilder = subQuery.parentBuilder;
|
|
44408
|
-
this.toFilter = function(filterBuilder, name2) {
|
|
44409
|
-
this.query.foreignKey = name2;
|
|
44410
|
-
return this.toJSON();
|
|
44411
|
-
};
|
|
44412
|
-
}
|
|
44413
|
-
}
|
|
44414
|
-
__name(QueryBuilder2, "QueryBuilder");
|
|
44415
|
-
QueryBuilder2.combineQueries = combineQueries;
|
|
44416
|
-
QueryBuilder2.prototype.field = function(fieldName) {
|
|
44417
|
-
return {
|
|
44418
|
-
__objectType: "field",
|
|
44419
|
-
field: fieldName
|
|
44420
|
-
};
|
|
44421
|
-
};
|
|
44422
|
-
QueryBuilder2.prototype.related = function(relatedEntity, isArrayRelation) {
|
|
44423
|
-
var tokens2 = relatedEntity.split(".");
|
|
44424
|
-
var entity = tokens2[0];
|
|
44425
|
-
var key2 = tokens2[1];
|
|
44426
|
-
return createSubQueryBuilder(this, entity, key2, isArrayRelation);
|
|
44427
|
-
};
|
|
44428
|
-
QueryBuilder2.prototype.notRelated = function(relatedEntity, isArrayRelation) {
|
|
44429
|
-
var tokens2 = relatedEntity.split(".");
|
|
44430
|
-
var entity = tokens2[0];
|
|
44431
|
-
var key2 = tokens2[1];
|
|
44432
|
-
return createSubQueryBuilder(this, entity, key2, isArrayRelation, "not");
|
|
44433
|
-
};
|
|
44434
|
-
QueryBuilder2.prototype.toJSON = function() {
|
|
44435
|
-
let qry = JSON.parse(JSON.stringify(this.query));
|
|
44436
|
-
if (qry.filters.length > 1) {
|
|
44437
|
-
qry.filters = [
|
|
44438
|
-
{
|
|
44439
|
-
type: "group",
|
|
44440
|
-
operator: "and",
|
|
44441
|
-
chainedWith: "and",
|
|
44442
|
-
filters: qry.filters
|
|
44443
|
-
}
|
|
44444
|
-
];
|
|
44445
|
-
}
|
|
44446
|
-
return qry;
|
|
44447
|
-
};
|
|
44448
|
-
QueryBuilder2.prototype.convertToFilter = function(argDef, operator) {
|
|
44449
|
-
var whereArgs = {};
|
|
44450
|
-
var filters = [];
|
|
44451
|
-
_.each(argDef, (arg, name2) => {
|
|
44452
|
-
if (!isFilterExpresionOrSubQuery(name2, arg)) {
|
|
44453
|
-
if (Array.isArray(arg)) {
|
|
44454
|
-
filters.push(this.inList(arg).toFilter(this, name2));
|
|
44455
|
-
} else {
|
|
44456
|
-
whereArgs[name2] = arg;
|
|
44457
|
-
}
|
|
44458
|
-
} else {
|
|
44459
|
-
filters.push(arg.toFilter(this, name2));
|
|
44460
|
-
}
|
|
44461
|
-
});
|
|
44462
|
-
if (_.keys(whereArgs).length > 0) {
|
|
44463
|
-
filters.unshift({
|
|
44464
|
-
type: "where",
|
|
44465
|
-
args: whereArgs
|
|
44466
|
-
});
|
|
44467
|
-
}
|
|
44468
|
-
if (filters.length === 1) {
|
|
44469
|
-
return filters[0];
|
|
44470
|
-
}
|
|
44471
|
-
var filterDef = {
|
|
44472
|
-
type: "group",
|
|
44473
|
-
operator: operator || "and",
|
|
44474
|
-
filters
|
|
44475
|
-
};
|
|
44476
|
-
return filterDef;
|
|
44477
|
-
};
|
|
44478
|
-
QueryBuilder2.prototype.where = function() {
|
|
44479
|
-
var args = [].slice.call(arguments);
|
|
44480
|
-
return this.whereAll(args);
|
|
44481
|
-
};
|
|
44482
|
-
QueryBuilder2.prototype.orWhere = function() {
|
|
44483
|
-
var args = [].slice.call(arguments);
|
|
44484
|
-
return this.orWhereAll(args);
|
|
44485
|
-
};
|
|
44486
|
-
QueryBuilder2.prototype.andWhere = function() {
|
|
44487
|
-
var args = [].slice.call(arguments);
|
|
44488
|
-
return this.andWhereAll(args);
|
|
44489
|
-
};
|
|
44490
|
-
QueryBuilder2.prototype.whereAny = function() {
|
|
44491
|
-
var args = [].slice.call(arguments);
|
|
44492
|
-
return whereAny(this, args);
|
|
44493
|
-
};
|
|
44494
|
-
QueryBuilder2.prototype.whereAll = function() {
|
|
44495
|
-
var args = [].slice.call(arguments);
|
|
44496
|
-
return whereAll(this, args);
|
|
44497
|
-
};
|
|
44498
|
-
QueryBuilder2.prototype.andWhereAny = function() {
|
|
44499
|
-
var args = [].slice.call(arguments);
|
|
44500
|
-
return whereAny(this, args, "and");
|
|
44501
|
-
};
|
|
44502
|
-
QueryBuilder2.prototype.orWhereAny = function() {
|
|
44503
|
-
var args = [].slice.call(arguments);
|
|
44504
|
-
return whereAny(this, args, "or");
|
|
44505
|
-
};
|
|
44506
|
-
QueryBuilder2.prototype.andWhereAll = function() {
|
|
44507
|
-
var args = [].slice.call(arguments);
|
|
44508
|
-
return whereAll(this, args, "and");
|
|
44509
|
-
};
|
|
44510
|
-
QueryBuilder2.prototype.orWhereAll = function() {
|
|
44511
|
-
var args = [].slice.call(arguments);
|
|
44512
|
-
return whereAll(this, args, "or");
|
|
44513
|
-
};
|
|
44514
|
-
QueryBuilder2.prototype.count = function() {
|
|
44515
|
-
var args = [].slice.call(arguments);
|
|
44516
|
-
if (this.query.type === "subquery") {
|
|
44517
|
-
if (this.query.countExpression) {
|
|
44518
|
-
throw new Error(
|
|
44519
|
-
"QueryBuilder subquery can only have one count expression"
|
|
44520
|
-
);
|
|
44521
|
-
}
|
|
44522
|
-
this.query.countExpression = args[0].toFilter(this, "count");
|
|
44523
|
-
} else {
|
|
44524
|
-
throw new Error("QueryBuilder is not subquery type on count expression");
|
|
44525
|
-
}
|
|
44526
|
-
return this;
|
|
44527
|
-
};
|
|
44528
|
-
QueryBuilder2.ExpressionJson = {};
|
|
44529
|
-
attachExpressionFunctions();
|
|
44530
|
-
return QueryBuilder2;
|
|
44531
|
-
function createSubQueryBuilder(qb, entity, key2, isArrayRelation = true, modifier) {
|
|
44532
|
-
return new QueryBuilder2({
|
|
44533
|
-
parentBuilder: qb,
|
|
44534
|
-
entity,
|
|
44535
|
-
key: key2,
|
|
44536
|
-
modifier,
|
|
44537
|
-
isArrayRelation
|
|
44538
|
-
});
|
|
44539
|
-
}
|
|
44540
|
-
__name(createSubQueryBuilder, "createSubQueryBuilder");
|
|
44541
|
-
function attachExpressionFunctions() {
|
|
44542
|
-
expressionOperators.forEach(({ opName, sanityChecks, transform }) => {
|
|
44543
|
-
const filter = /* @__PURE__ */ __name((...args) => {
|
|
44544
|
-
let argsToUse = args;
|
|
44545
|
-
let opNameToUse = opName;
|
|
44546
|
-
if (transform) {
|
|
44547
|
-
let { newOpName, newArgs } = transform(...args);
|
|
44548
|
-
argsToUse = newArgs;
|
|
44549
|
-
opNameToUse = newOpName;
|
|
44550
|
-
}
|
|
44551
|
-
sanityChecks.forEach((sanityCheck) => {
|
|
44552
|
-
sanityCheck(...args);
|
|
44553
|
-
});
|
|
44554
|
-
return new FilterExpression(opNameToUse, argsToUse);
|
|
44555
|
-
}, "filter");
|
|
44556
|
-
QueryBuilder2.prototype[opName] = filter;
|
|
44557
|
-
QueryBuilder2.ExpressionJson[opName] = filter;
|
|
44558
|
-
});
|
|
44559
|
-
}
|
|
44560
|
-
__name(attachExpressionFunctions, "attachExpressionFunctions");
|
|
44561
|
-
function isFilterExpresionOrSubQuery(name2, arg) {
|
|
44562
|
-
if (arg instanceof FilterExpression)
|
|
44563
|
-
return true;
|
|
44564
|
-
if (arg instanceof QueryBuilder2)
|
|
44565
|
-
return true;
|
|
44566
|
-
return false;
|
|
44567
|
-
}
|
|
44568
|
-
__name(isFilterExpresionOrSubQuery, "isFilterExpresionOrSubQuery");
|
|
44569
|
-
function whereAny(filterBuilder, whereArgs, chainedWith) {
|
|
44570
|
-
return where(filterBuilder, "or", whereArgs, chainedWith);
|
|
44571
|
-
}
|
|
44572
|
-
__name(whereAny, "whereAny");
|
|
44573
|
-
function whereAll(filterBuilder, whereArgs, chainedWith) {
|
|
44574
|
-
return where(filterBuilder, "and", whereArgs, chainedWith);
|
|
44575
|
-
}
|
|
44576
|
-
__name(whereAll, "whereAll");
|
|
44577
|
-
function where(filterBuilder, operator, whereArgs, chainedWith) {
|
|
44578
|
-
if (!Array.isArray(whereArgs))
|
|
44579
|
-
return where(filterBuilder, operator, [whereArgs], chainedWith);
|
|
44580
|
-
var filterDef = {
|
|
44581
|
-
type: "group",
|
|
44582
|
-
operator,
|
|
44583
|
-
chainedWith,
|
|
44584
|
-
filters: []
|
|
44585
|
-
};
|
|
44586
|
-
whereArgs.forEach((arg) => {
|
|
44587
|
-
var filter = filterBuilder.convertToFilter(arg, operator);
|
|
44588
|
-
filterDef.filters.push(filter);
|
|
44589
|
-
});
|
|
44590
|
-
filterBuilder.query.filters.push(filterDef);
|
|
44591
|
-
return filterBuilder;
|
|
44592
|
-
}
|
|
44593
|
-
__name(where, "where");
|
|
44594
|
-
}();
|
|
44595
|
-
const QueryBuilder = queryBuilder;
|
|
44596
|
-
var tgClientQueryBuilder = QueryBuilder;
|
|
44597
|
-
const QueryBuilder$1 = /* @__PURE__ */ getDefaultExportFromCjs(tgClientQueryBuilder);
|
|
44598
44171
|
const defaultPageSizes = [5, 10, 15, 25, 50, 100, 200, 400];
|
|
44599
44172
|
function getMergedOpts(topLevel = {}, instanceLevel = {}) {
|
|
44600
44173
|
const merged = __spreadValues(__spreadValues({}, topLevel), instanceLevel);
|
|
@@ -45236,7 +44809,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
45236
44809
|
graphqlQueryParams.pageSize = ownProps.controlled_pageSize || Number(pageSize);
|
|
45237
44810
|
}
|
|
45238
44811
|
const { model: model2 } = schema;
|
|
45239
|
-
const qb = new QueryBuilder
|
|
44812
|
+
const qb = new window.QueryBuilder(model2);
|
|
45240
44813
|
const ccFields = getFieldsMappedByCCDisplayName(schema);
|
|
45241
44814
|
if (tableQueryParams.order && tableQueryParams.order.length) {
|
|
45242
44815
|
tableQueryParams.order.forEach((orderVal) => {
|
|
@@ -54960,7 +54533,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
54960
54533
|
}
|
|
54961
54534
|
__name(useDeepCompareMemoize, "useDeepCompareMemoize");
|
|
54962
54535
|
function useDeepCompareEffect(callback, dependencies2) {
|
|
54963
|
-
if (
|
|
54536
|
+
if (production !== "production") {
|
|
54964
54537
|
checkDeps(dependencies2);
|
|
54965
54538
|
}
|
|
54966
54539
|
return React__namespace.useEffect(callback, useDeepCompareMemoize(dependencies2));
|
|
@@ -56574,7 +56147,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
56574
56147
|
return toReturn || {};
|
|
56575
56148
|
}
|
|
56576
56149
|
__name(computePresets, "computePresets");
|
|
56577
|
-
var __DEV__ =
|
|
56150
|
+
var __DEV__ = production !== "production";
|
|
56578
56151
|
var warning = /* @__PURE__ */ __name(function() {
|
|
56579
56152
|
}, "warning");
|
|
56580
56153
|
if (__DEV__) {
|
|
@@ -79650,13 +79223,13 @@ var __async = (__this, __arguments, generator) => {
|
|
|
79650
79223
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
79651
79224
|
}
|
|
79652
79225
|
__name(_interopRequireDefault$2, "_interopRequireDefault$2");
|
|
79653
|
-
var timeoutsShape =
|
|
79226
|
+
var timeoutsShape = production !== "production" ? _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.shape({
|
|
79654
79227
|
enter: _propTypes.default.number,
|
|
79655
79228
|
exit: _propTypes.default.number,
|
|
79656
79229
|
appear: _propTypes.default.number
|
|
79657
79230
|
}).isRequired]) : null;
|
|
79658
79231
|
PropTypes$1.timeoutsShape = timeoutsShape;
|
|
79659
|
-
var classNamesShape =
|
|
79232
|
+
var classNamesShape = production !== "production" ? _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.shape({
|
|
79660
79233
|
enter: _propTypes.default.string,
|
|
79661
79234
|
exit: _propTypes.default.string,
|
|
79662
79235
|
active: _propTypes.default.string
|
|
@@ -79962,7 +79535,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
79962
79535
|
transitionGroup: /* @__PURE__ */ __name(function transitionGroup() {
|
|
79963
79536
|
}, "transitionGroup")
|
|
79964
79537
|
};
|
|
79965
|
-
Transition.propTypes =
|
|
79538
|
+
Transition.propTypes = production !== "production" ? {
|
|
79966
79539
|
/**
|
|
79967
79540
|
* A `function` child can be used instead of a React element. This function is
|
|
79968
79541
|
* called with the current transition status (`'entering'`, `'entered'`,
|
|
@@ -80292,7 +79865,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
80292
79865
|
CSSTransition2.defaultProps = {
|
|
80293
79866
|
classNames: ""
|
|
80294
79867
|
};
|
|
80295
|
-
CSSTransition2.propTypes =
|
|
79868
|
+
CSSTransition2.propTypes = production !== "production" ? _extends2({}, _Transition2.default.propTypes, {
|
|
80296
79869
|
/**
|
|
80297
79870
|
* The animation classNames applied to the component as it enters, exits or
|
|
80298
79871
|
* has finished the transition. A single name can be provided and it will be
|
|
@@ -80655,7 +80228,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
80655
80228
|
TransitionGroup2.childContextTypes = {
|
|
80656
80229
|
transitionGroup: _propTypes2.default.object.isRequired
|
|
80657
80230
|
};
|
|
80658
|
-
TransitionGroup2.propTypes =
|
|
80231
|
+
TransitionGroup2.propTypes = production !== "production" ? {
|
|
80659
80232
|
/**
|
|
80660
80233
|
* `<TransitionGroup>` renders a `<div>` by default. You can change this
|
|
80661
80234
|
* behavior by providing a `component` prop.
|
|
@@ -80826,7 +80399,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
80826
80399
|
}, "render");
|
|
80827
80400
|
return ReplaceTransition3;
|
|
80828
80401
|
}(_react3.default.Component);
|
|
80829
|
-
ReplaceTransition2.propTypes =
|
|
80402
|
+
ReplaceTransition2.propTypes = production !== "production" ? {
|
|
80830
80403
|
in: _propTypes2.default.bool.isRequired,
|
|
80831
80404
|
children: /* @__PURE__ */ __name(function children(props, propName) {
|
|
80832
80405
|
if (_react3.default.Children.count(props[propName]) !== 2)
|