easy-email-pro-theme 1.4.1 → 1.6.0
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/lib/index.js +569 -564
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -62,7 +62,7 @@ import { NodeUtils, BlockManager, ElementType, EditorCore, t, ElementCategory, c
|
|
|
62
62
|
import { Editor, Transforms, Path, Node as Node$1, createEditor, Text as Text$2, Range, Element as Element$1, Point } from "slate";
|
|
63
63
|
import ReactDOM, { createPortal, unstable_batchedUpdates } from "react-dom";
|
|
64
64
|
import { cloneDeep, isEqual as isEqual$3, get, set, omit as omit$2, merge as merge$1, debounce as debounce$2, isUndefined as isUndefined$1, isString as isString$1, isNumber as isNumber$1, uniqueId, upperFirst, sum, flatMap, camelCase } from "lodash";
|
|
65
|
-
import { Form, Input, Modal, Collapse as Collapse$1, Space, Grid, Empty, Card, Button as Button$1, Radio,
|
|
65
|
+
import { Form, Input, Modal, Collapse as Collapse$1, Space, Grid, Empty, Card, Button as Button$1, Radio, Message, Popover, Spin, Select as Select$1, Drawer, Divider as Divider$1, Switch, Tabs, Slider, Typography as Typography$1, InputNumber, Tooltip, Tag, Link as Link$1, List, Alert, Popconfirm, PageHeader, Skeleton, Layout as Layout$2 } from "@arco-design/web-react";
|
|
66
66
|
import { IconDelete, IconClose, IconPlus, IconCopy, IconDragArrow, IconLock, IconUnlock, IconQuestionCircle, IconLink, IconEdit, IconLeft, IconUndo, IconRedo, IconMinus, IconEye, IconSubscribeAdd, IconCheckCircleFill } from "@arco-design/web-react/icon";
|
|
67
67
|
import mjml from "mjml-browser";
|
|
68
68
|
import { HistoryEditor } from "slate-history";
|
|
@@ -855,10 +855,10 @@ const DraggingProvider = ({
|
|
|
855
855
|
}, [dragHandle2]);
|
|
856
856
|
return /* @__PURE__ */ React__default.createElement(DraggingProviderContext.Provider, { value }, children);
|
|
857
857
|
};
|
|
858
|
-
const getNodePathName = (path2,
|
|
859
|
-
if (!
|
|
858
|
+
const getNodePathName = (path2, name) => {
|
|
859
|
+
if (!name)
|
|
860
860
|
return path2.join(".children.");
|
|
861
|
-
return path2.join(".children.") + "." +
|
|
861
|
+
return path2.join(".children.") + "." + name;
|
|
862
862
|
};
|
|
863
863
|
const EditorContext = createContext({});
|
|
864
864
|
const getInited = (editor) => {
|
|
@@ -919,75 +919,75 @@ const EditorContextProvider = (props) => {
|
|
|
919
919
|
const { lock } = useEditorState();
|
|
920
920
|
const { universalElementSetting } = useEditorProps();
|
|
921
921
|
const valid = !lock;
|
|
922
|
-
const getFieldValue = useEventCallback((path2,
|
|
922
|
+
const getFieldValue = useEventCallback((path2, name) => {
|
|
923
923
|
if (!path2)
|
|
924
|
-
return form.getFieldValue(
|
|
924
|
+
return form.getFieldValue(name);
|
|
925
925
|
try {
|
|
926
926
|
const node = Node$1.get(editor, path2);
|
|
927
|
-
if (
|
|
927
|
+
if (name === "")
|
|
928
928
|
return node;
|
|
929
|
-
return get(node,
|
|
929
|
+
return get(node, name);
|
|
930
930
|
} catch (error2) {
|
|
931
931
|
return void 0;
|
|
932
932
|
}
|
|
933
933
|
});
|
|
934
|
-
const getFieldDirty = useEventCallback((path2,
|
|
934
|
+
const getFieldDirty = useEventCallback((path2, name) => {
|
|
935
935
|
if (!path2) {
|
|
936
|
-
return form.getFieldValue(
|
|
936
|
+
return form.getFieldValue(name);
|
|
937
937
|
}
|
|
938
|
-
const field = getNodePathName(path2,
|
|
938
|
+
const field = getNodePathName(path2, name);
|
|
939
939
|
return !isEqual$3(
|
|
940
940
|
get(initialValuesRef.current.content, field),
|
|
941
|
-
getFieldValue(path2,
|
|
941
|
+
getFieldValue(path2, name)
|
|
942
942
|
);
|
|
943
943
|
});
|
|
944
944
|
const setFieldValue = useEventCallback(
|
|
945
|
-
(path2,
|
|
945
|
+
(path2, name, val) => {
|
|
946
946
|
if (!path2) {
|
|
947
|
-
form.setFieldValue(
|
|
947
|
+
form.setFieldValue(name, val);
|
|
948
948
|
return;
|
|
949
949
|
}
|
|
950
950
|
try {
|
|
951
951
|
const node = Node$1.get(editor, path2);
|
|
952
952
|
if (NodeUtils.isTextNode(node)) {
|
|
953
|
-
Transforms.insertText(editor,
|
|
953
|
+
Transforms.insertText(editor, val, {
|
|
954
954
|
at: path2
|
|
955
955
|
});
|
|
956
956
|
} else {
|
|
957
|
-
if (
|
|
957
|
+
if (name === "children") {
|
|
958
958
|
const cloneNode = cloneDeep(node);
|
|
959
|
-
set(cloneNode,
|
|
959
|
+
set(cloneNode, name, val);
|
|
960
960
|
editor.replaceNode({
|
|
961
961
|
path: path2,
|
|
962
962
|
node: cloneNode
|
|
963
963
|
});
|
|
964
|
-
} else if (
|
|
964
|
+
} else if (name === "") {
|
|
965
965
|
editor.replaceNode({
|
|
966
966
|
path: path2,
|
|
967
|
-
node:
|
|
967
|
+
node: val
|
|
968
968
|
});
|
|
969
969
|
} else {
|
|
970
970
|
const cloneNode = cloneDeep(omit$2(node, "children"));
|
|
971
|
-
if (
|
|
972
|
-
const dotIndex =
|
|
971
|
+
if (val === void 0) {
|
|
972
|
+
const dotIndex = name.lastIndexOf(".");
|
|
973
973
|
if (dotIndex > -1) {
|
|
974
|
-
const parentName =
|
|
974
|
+
const parentName = name.substring(0, dotIndex);
|
|
975
975
|
const parent2 = get(cloneNode, parentName);
|
|
976
976
|
if (parent2) {
|
|
977
|
-
parent2[
|
|
977
|
+
parent2[name.substring(dotIndex + 1)] = void 0;
|
|
978
978
|
}
|
|
979
979
|
} else {
|
|
980
|
-
cloneNode[
|
|
980
|
+
cloneNode[name] = void 0;
|
|
981
981
|
}
|
|
982
982
|
} else {
|
|
983
|
-
set(cloneNode,
|
|
983
|
+
set(cloneNode, name, val);
|
|
984
984
|
}
|
|
985
985
|
Transforms.setNodes(editor, cloneNode, {
|
|
986
986
|
at: path2
|
|
987
987
|
});
|
|
988
988
|
}
|
|
989
989
|
}
|
|
990
|
-
form.setFieldValue(getNodePathName(path2,
|
|
990
|
+
form.setFieldValue(getNodePathName(path2, name), val);
|
|
991
991
|
} catch (error2) {
|
|
992
992
|
console.log(error2);
|
|
993
993
|
}
|
|
@@ -2372,10 +2372,10 @@ function ColorPickerContent(props) {
|
|
|
2372
2372
|
const { list: colors, addCurrentColor } = useColorContext();
|
|
2373
2373
|
const { onChange } = props;
|
|
2374
2374
|
const [color2, setColor] = useState(props.value);
|
|
2375
|
-
const onChangeColor = (
|
|
2376
|
-
addCurrentColor(
|
|
2377
|
-
setColor(
|
|
2378
|
-
onChange(
|
|
2375
|
+
const onChangeColor = (val) => {
|
|
2376
|
+
addCurrentColor(val);
|
|
2377
|
+
setColor(val);
|
|
2378
|
+
onChange(val);
|
|
2379
2379
|
};
|
|
2380
2380
|
useEffect(() => {
|
|
2381
2381
|
setColor(props.value);
|
|
@@ -2626,20 +2626,20 @@ var simpleSwizzle = {
|
|
|
2626
2626
|
simpleSwizzleExports = v;
|
|
2627
2627
|
}
|
|
2628
2628
|
};
|
|
2629
|
-
var isArrayish$1 = function
|
|
2629
|
+
var isArrayish$1 = function isArrayish(obj) {
|
|
2630
2630
|
if (!obj || typeof obj === "string") {
|
|
2631
2631
|
return false;
|
|
2632
2632
|
}
|
|
2633
2633
|
return obj instanceof Array || Array.isArray(obj) || obj.length >= 0 && (obj.splice instanceof Function || Object.getOwnPropertyDescriptor(obj, obj.length - 1) && obj.constructor.name !== "String");
|
|
2634
2634
|
};
|
|
2635
|
-
var
|
|
2635
|
+
var isArrayish2 = isArrayish$1;
|
|
2636
2636
|
var concat = Array.prototype.concat;
|
|
2637
2637
|
var slice = Array.prototype.slice;
|
|
2638
|
-
var swizzle$1 = simpleSwizzle.exports = function
|
|
2638
|
+
var swizzle$1 = simpleSwizzle.exports = function swizzle(args) {
|
|
2639
2639
|
var results = [];
|
|
2640
2640
|
for (var i = 0, len = args.length; i < len; i++) {
|
|
2641
2641
|
var arg = args[i];
|
|
2642
|
-
if (
|
|
2642
|
+
if (isArrayish2(arg)) {
|
|
2643
2643
|
results = concat.call(results, slice.call(arg));
|
|
2644
2644
|
} else {
|
|
2645
2645
|
results.push(arg);
|
|
@@ -2653,7 +2653,7 @@ swizzle$1.wrap = function(fn) {
|
|
|
2653
2653
|
};
|
|
2654
2654
|
};
|
|
2655
2655
|
var colorNames = colorName;
|
|
2656
|
-
var
|
|
2656
|
+
var swizzle2 = simpleSwizzleExports;
|
|
2657
2657
|
var hasOwnProperty$e = Object.hasOwnProperty;
|
|
2658
2658
|
var reverseNames = /* @__PURE__ */ Object.create(null);
|
|
2659
2659
|
for (var name in colorNames) {
|
|
@@ -2667,26 +2667,26 @@ var cs = colorString$1.exports = {
|
|
|
2667
2667
|
};
|
|
2668
2668
|
cs.get = function(string) {
|
|
2669
2669
|
var prefix2 = string.substring(0, 3).toLowerCase();
|
|
2670
|
-
var
|
|
2670
|
+
var val;
|
|
2671
2671
|
var model;
|
|
2672
2672
|
switch (prefix2) {
|
|
2673
2673
|
case "hsl":
|
|
2674
|
-
|
|
2674
|
+
val = cs.get.hsl(string);
|
|
2675
2675
|
model = "hsl";
|
|
2676
2676
|
break;
|
|
2677
2677
|
case "hwb":
|
|
2678
|
-
|
|
2678
|
+
val = cs.get.hwb(string);
|
|
2679
2679
|
model = "hwb";
|
|
2680
2680
|
break;
|
|
2681
2681
|
default:
|
|
2682
|
-
|
|
2682
|
+
val = cs.get.rgb(string);
|
|
2683
2683
|
model = "rgb";
|
|
2684
2684
|
break;
|
|
2685
2685
|
}
|
|
2686
|
-
if (!
|
|
2686
|
+
if (!val) {
|
|
2687
2687
|
return null;
|
|
2688
2688
|
}
|
|
2689
|
-
return { model, value:
|
|
2689
|
+
return { model, value: val };
|
|
2690
2690
|
};
|
|
2691
2691
|
cs.get.rgb = function(string) {
|
|
2692
2692
|
if (!string) {
|
|
@@ -2794,26 +2794,26 @@ cs.get.hwb = function(string) {
|
|
|
2794
2794
|
return null;
|
|
2795
2795
|
};
|
|
2796
2796
|
cs.to.hex = function() {
|
|
2797
|
-
var rgba =
|
|
2797
|
+
var rgba = swizzle2(arguments);
|
|
2798
2798
|
return "#" + hexDouble(rgba[0]) + hexDouble(rgba[1]) + hexDouble(rgba[2]) + (rgba[3] < 1 ? hexDouble(Math.round(rgba[3] * 255)) : "");
|
|
2799
2799
|
};
|
|
2800
2800
|
cs.to.rgb = function() {
|
|
2801
|
-
var rgba =
|
|
2801
|
+
var rgba = swizzle2(arguments);
|
|
2802
2802
|
return rgba.length < 4 || rgba[3] === 1 ? "rgb(" + Math.round(rgba[0]) + ", " + Math.round(rgba[1]) + ", " + Math.round(rgba[2]) + ")" : "rgba(" + Math.round(rgba[0]) + ", " + Math.round(rgba[1]) + ", " + Math.round(rgba[2]) + ", " + rgba[3] + ")";
|
|
2803
2803
|
};
|
|
2804
2804
|
cs.to.rgb.percent = function() {
|
|
2805
|
-
var rgba =
|
|
2805
|
+
var rgba = swizzle2(arguments);
|
|
2806
2806
|
var r = Math.round(rgba[0] / 255 * 100);
|
|
2807
2807
|
var g = Math.round(rgba[1] / 255 * 100);
|
|
2808
2808
|
var b = Math.round(rgba[2] / 255 * 100);
|
|
2809
2809
|
return rgba.length < 4 || rgba[3] === 1 ? "rgb(" + r + "%, " + g + "%, " + b + "%)" : "rgba(" + r + "%, " + g + "%, " + b + "%, " + rgba[3] + ")";
|
|
2810
2810
|
};
|
|
2811
2811
|
cs.to.hsl = function() {
|
|
2812
|
-
var hsla =
|
|
2812
|
+
var hsla = swizzle2(arguments);
|
|
2813
2813
|
return hsla.length < 4 || hsla[3] === 1 ? "hsl(" + hsla[0] + ", " + hsla[1] + "%, " + hsla[2] + "%)" : "hsla(" + hsla[0] + ", " + hsla[1] + "%, " + hsla[2] + "%, " + hsla[3] + ")";
|
|
2814
2814
|
};
|
|
2815
2815
|
cs.to.hwb = function() {
|
|
2816
|
-
var hwba =
|
|
2816
|
+
var hwba = swizzle2(arguments);
|
|
2817
2817
|
var a = "";
|
|
2818
2818
|
if (hwba.length >= 4 && hwba[3] !== 1) {
|
|
2819
2819
|
a = ", " + hwba[3];
|
|
@@ -3018,10 +3018,10 @@ convert$2.hsl.rgb = function(hsl) {
|
|
|
3018
3018
|
const l = hsl[2] / 100;
|
|
3019
3019
|
let t2;
|
|
3020
3020
|
let t3;
|
|
3021
|
-
let
|
|
3021
|
+
let val;
|
|
3022
3022
|
if (s === 0) {
|
|
3023
|
-
|
|
3024
|
-
return [
|
|
3023
|
+
val = l * 255;
|
|
3024
|
+
return [val, val, val];
|
|
3025
3025
|
}
|
|
3026
3026
|
if (l < 0.5) {
|
|
3027
3027
|
t2 = l * (1 + s);
|
|
@@ -3039,15 +3039,15 @@ convert$2.hsl.rgb = function(hsl) {
|
|
|
3039
3039
|
t3--;
|
|
3040
3040
|
}
|
|
3041
3041
|
if (6 * t3 < 1) {
|
|
3042
|
-
|
|
3042
|
+
val = t1 + (t2 - t1) * 6 * t3;
|
|
3043
3043
|
} else if (2 * t3 < 1) {
|
|
3044
|
-
|
|
3044
|
+
val = t2;
|
|
3045
3045
|
} else if (3 * t3 < 2) {
|
|
3046
|
-
|
|
3046
|
+
val = t1 + (t2 - t1) * (2 / 3 - t3) * 6;
|
|
3047
3047
|
} else {
|
|
3048
|
-
|
|
3048
|
+
val = t1;
|
|
3049
3049
|
}
|
|
3050
|
-
rgb[i] =
|
|
3050
|
+
rgb[i] = val * 255;
|
|
3051
3051
|
}
|
|
3052
3052
|
return rgb;
|
|
3053
3053
|
};
|
|
@@ -3069,10 +3069,10 @@ convert$2.hsv.rgb = function(hsv) {
|
|
|
3069
3069
|
const s = hsv[1] / 100;
|
|
3070
3070
|
let v = hsv[2] / 100;
|
|
3071
3071
|
const hi = Math.floor(h) % 6;
|
|
3072
|
-
const
|
|
3072
|
+
const f = h - Math.floor(h);
|
|
3073
3073
|
const p = 255 * v * (1 - s);
|
|
3074
|
-
const q = 255 * v * (1 - s *
|
|
3075
|
-
const t2 = 255 * v * (1 - s * (1 -
|
|
3074
|
+
const q = 255 * v * (1 - s * f);
|
|
3075
|
+
const t2 = 255 * v * (1 - s * (1 - f));
|
|
3076
3076
|
v *= 255;
|
|
3077
3077
|
switch (hi) {
|
|
3078
3078
|
case 0:
|
|
@@ -3109,18 +3109,18 @@ convert$2.hwb.rgb = function(hwb) {
|
|
|
3109
3109
|
let wh = hwb[1] / 100;
|
|
3110
3110
|
let bl = hwb[2] / 100;
|
|
3111
3111
|
const ratio = wh + bl;
|
|
3112
|
-
let
|
|
3112
|
+
let f;
|
|
3113
3113
|
if (ratio > 1) {
|
|
3114
3114
|
wh /= ratio;
|
|
3115
3115
|
bl /= ratio;
|
|
3116
3116
|
}
|
|
3117
3117
|
const i = Math.floor(6 * h);
|
|
3118
3118
|
const v = 1 - bl;
|
|
3119
|
-
|
|
3119
|
+
f = 6 * h - i;
|
|
3120
3120
|
if ((i & 1) !== 0) {
|
|
3121
|
-
|
|
3121
|
+
f = 1 - f;
|
|
3122
3122
|
}
|
|
3123
|
-
const n = wh +
|
|
3123
|
+
const n = wh + f * (v - wh);
|
|
3124
3124
|
let r;
|
|
3125
3125
|
let g;
|
|
3126
3126
|
let b;
|
|
@@ -3358,21 +3358,21 @@ convert$2.hsl.hcg = function(hsl) {
|
|
|
3358
3358
|
const s = hsl[1] / 100;
|
|
3359
3359
|
const l = hsl[2] / 100;
|
|
3360
3360
|
const c = l < 0.5 ? 2 * s * l : 2 * s * (1 - l);
|
|
3361
|
-
let
|
|
3361
|
+
let f = 0;
|
|
3362
3362
|
if (c < 1) {
|
|
3363
|
-
|
|
3363
|
+
f = (l - 0.5 * c) / (1 - c);
|
|
3364
3364
|
}
|
|
3365
|
-
return [hsl[0], c * 100,
|
|
3365
|
+
return [hsl[0], c * 100, f * 100];
|
|
3366
3366
|
};
|
|
3367
3367
|
convert$2.hsv.hcg = function(hsv) {
|
|
3368
3368
|
const s = hsv[1] / 100;
|
|
3369
3369
|
const v = hsv[2] / 100;
|
|
3370
3370
|
const c = s * v;
|
|
3371
|
-
let
|
|
3371
|
+
let f = 0;
|
|
3372
3372
|
if (c < 1) {
|
|
3373
|
-
|
|
3373
|
+
f = (v - c) / (1 - c);
|
|
3374
3374
|
}
|
|
3375
|
-
return [hsv[0], c * 100,
|
|
3375
|
+
return [hsv[0], c * 100, f * 100];
|
|
3376
3376
|
};
|
|
3377
3377
|
convert$2.hcg.rgb = function(hcg) {
|
|
3378
3378
|
const h = hcg[0] / 360;
|
|
@@ -3428,11 +3428,11 @@ convert$2.hcg.hsv = function(hcg) {
|
|
|
3428
3428
|
const c = hcg[1] / 100;
|
|
3429
3429
|
const g = hcg[2] / 100;
|
|
3430
3430
|
const v = c + g * (1 - c);
|
|
3431
|
-
let
|
|
3431
|
+
let f = 0;
|
|
3432
3432
|
if (v > 0) {
|
|
3433
|
-
|
|
3433
|
+
f = c / v;
|
|
3434
3434
|
}
|
|
3435
|
-
return [hcg[0],
|
|
3435
|
+
return [hcg[0], f * 100, v * 100];
|
|
3436
3436
|
};
|
|
3437
3437
|
convert$2.hcg.hsl = function(hcg) {
|
|
3438
3438
|
const c = hcg[1] / 100;
|
|
@@ -3486,14 +3486,14 @@ convert$2.gray.lab = function(gray) {
|
|
|
3486
3486
|
return [gray[0], 0, 0];
|
|
3487
3487
|
};
|
|
3488
3488
|
convert$2.gray.hex = function(gray) {
|
|
3489
|
-
const
|
|
3490
|
-
const integer = (
|
|
3489
|
+
const val = Math.round(gray[0] / 100 * 255) & 255;
|
|
3490
|
+
const integer = (val << 16) + (val << 8) + val;
|
|
3491
3491
|
const string = integer.toString(16).toUpperCase();
|
|
3492
3492
|
return "000000".substring(string.length) + string;
|
|
3493
3493
|
};
|
|
3494
3494
|
convert$2.rgb.gray = function(rgb) {
|
|
3495
|
-
const
|
|
3496
|
-
return [
|
|
3495
|
+
const val = (rgb[0] + rgb[1] + rgb[2]) / 3;
|
|
3496
|
+
return [val / 255 * 100];
|
|
3497
3497
|
};
|
|
3498
3498
|
const conversions$1 = conversions$2;
|
|
3499
3499
|
function buildGraph() {
|
|
@@ -4005,74 +4005,75 @@ const JsonAdapter = {
|
|
|
4005
4005
|
if (!val)
|
|
4006
4006
|
return void 0;
|
|
4007
4007
|
try {
|
|
4008
|
-
return JSON.parse(
|
|
4008
|
+
return JSON.parse(val);
|
|
4009
4009
|
} catch (error2) {
|
|
4010
|
+
Message.error("Invalid JSON");
|
|
4010
4011
|
}
|
|
4011
4012
|
return val;
|
|
4012
4013
|
}
|
|
4013
4014
|
};
|
|
4014
4015
|
const colorAdapter = {
|
|
4015
|
-
formatter(
|
|
4016
|
-
if (!isString$1(
|
|
4016
|
+
formatter(val) {
|
|
4017
|
+
if (!isString$1(val) && !val)
|
|
4017
4018
|
return void 0;
|
|
4018
4019
|
try {
|
|
4019
|
-
|
|
4020
|
-
if (
|
|
4021
|
-
return
|
|
4020
|
+
val = val.toString();
|
|
4021
|
+
if (val.startsWith("#") && Color$1(val).hex()) {
|
|
4022
|
+
return val.replace("#", "");
|
|
4022
4023
|
}
|
|
4023
4024
|
} catch (error2) {
|
|
4024
4025
|
}
|
|
4025
|
-
return
|
|
4026
|
+
return val;
|
|
4026
4027
|
},
|
|
4027
|
-
normalize(
|
|
4028
|
-
if (!isString$1(
|
|
4028
|
+
normalize(val) {
|
|
4029
|
+
if (!isString$1(val))
|
|
4029
4030
|
return void 0;
|
|
4030
|
-
|
|
4031
|
-
if (!
|
|
4031
|
+
val = val.toString().trim();
|
|
4032
|
+
if (!val)
|
|
4032
4033
|
return void 0;
|
|
4033
4034
|
try {
|
|
4034
|
-
if (Color$1(`#${
|
|
4035
|
-
return `#${
|
|
4035
|
+
if (Color$1(`#${val}`).hex())
|
|
4036
|
+
return `#${val}`;
|
|
4036
4037
|
} catch (error2) {
|
|
4037
4038
|
}
|
|
4038
|
-
return
|
|
4039
|
+
return val;
|
|
4039
4040
|
}
|
|
4040
4041
|
};
|
|
4041
4042
|
const pixelNumberAdapter = {
|
|
4042
|
-
formatter(
|
|
4043
|
-
if (!isString$1(
|
|
4043
|
+
formatter(val) {
|
|
4044
|
+
if (!isString$1(val))
|
|
4044
4045
|
return void 0;
|
|
4045
|
-
|
|
4046
|
-
if (/^\d+px$/.test(
|
|
4047
|
-
return +
|
|
4048
|
-
return +
|
|
4046
|
+
val = val.toString();
|
|
4047
|
+
if (/^\d+px$/.test(val.trim()))
|
|
4048
|
+
return +val.replace("px", "");
|
|
4049
|
+
return +val;
|
|
4049
4050
|
},
|
|
4050
|
-
normalize(
|
|
4051
|
-
if (!isNumber$1(
|
|
4051
|
+
normalize(val) {
|
|
4052
|
+
if (!isNumber$1(val))
|
|
4052
4053
|
return void 0;
|
|
4053
|
-
if (/^\d+$/.test(String(
|
|
4054
|
-
return
|
|
4055
|
-
if (!
|
|
4054
|
+
if (/^\d+$/.test(String(val)))
|
|
4055
|
+
return val + "px";
|
|
4056
|
+
if (!val)
|
|
4056
4057
|
return void 0;
|
|
4057
|
-
return
|
|
4058
|
+
return val;
|
|
4058
4059
|
}
|
|
4059
4060
|
};
|
|
4060
4061
|
const fontWeightAdapter = {
|
|
4061
|
-
formatter(
|
|
4062
|
-
if (!
|
|
4062
|
+
formatter(val) {
|
|
4063
|
+
if (!val)
|
|
4063
4064
|
return "normal";
|
|
4064
|
-
return
|
|
4065
|
+
return val;
|
|
4065
4066
|
},
|
|
4066
|
-
normalize(
|
|
4067
|
-
if (
|
|
4067
|
+
normalize(val) {
|
|
4068
|
+
if (val === "normal")
|
|
4068
4069
|
return void 0;
|
|
4069
|
-
return
|
|
4070
|
+
return val;
|
|
4070
4071
|
}
|
|
4071
4072
|
};
|
|
4072
4073
|
const italicAdapter = {
|
|
4073
4074
|
formatter(fontStyle) {
|
|
4074
|
-
const
|
|
4075
|
-
return
|
|
4075
|
+
const val = fontStyle;
|
|
4076
|
+
return val === "italic";
|
|
4076
4077
|
},
|
|
4077
4078
|
normalize(active) {
|
|
4078
4079
|
if (!active)
|
|
@@ -4347,12 +4348,12 @@ function isPlainObject$5(obj) {
|
|
|
4347
4348
|
}
|
|
4348
4349
|
return Object.getPrototypeOf(obj) === proto;
|
|
4349
4350
|
}
|
|
4350
|
-
function miniKindOf(
|
|
4351
|
-
if (
|
|
4351
|
+
function miniKindOf(val) {
|
|
4352
|
+
if (val === void 0)
|
|
4352
4353
|
return "undefined";
|
|
4353
|
-
if (
|
|
4354
|
+
if (val === null)
|
|
4354
4355
|
return "null";
|
|
4355
|
-
var type = typeof
|
|
4356
|
+
var type = typeof val;
|
|
4356
4357
|
switch (type) {
|
|
4357
4358
|
case "boolean":
|
|
4358
4359
|
case "string":
|
|
@@ -4362,13 +4363,13 @@ function miniKindOf(val2) {
|
|
|
4362
4363
|
return type;
|
|
4363
4364
|
}
|
|
4364
4365
|
}
|
|
4365
|
-
if (Array.isArray(
|
|
4366
|
+
if (Array.isArray(val))
|
|
4366
4367
|
return "array";
|
|
4367
|
-
if (isDate$1(
|
|
4368
|
+
if (isDate$1(val))
|
|
4368
4369
|
return "date";
|
|
4369
|
-
if (isError(
|
|
4370
|
+
if (isError(val))
|
|
4370
4371
|
return "error";
|
|
4371
|
-
var constructorName = ctorName(
|
|
4372
|
+
var constructorName = ctorName(val);
|
|
4372
4373
|
switch (constructorName) {
|
|
4373
4374
|
case "Symbol":
|
|
4374
4375
|
case "Promise":
|
|
@@ -4380,21 +4381,21 @@ function miniKindOf(val2) {
|
|
|
4380
4381
|
}
|
|
4381
4382
|
return type.slice(8, -1).toLowerCase().replace(/\s/g, "");
|
|
4382
4383
|
}
|
|
4383
|
-
function ctorName(
|
|
4384
|
-
return typeof
|
|
4384
|
+
function ctorName(val) {
|
|
4385
|
+
return typeof val.constructor === "function" ? val.constructor.name : null;
|
|
4385
4386
|
}
|
|
4386
|
-
function isError(
|
|
4387
|
-
return
|
|
4387
|
+
function isError(val) {
|
|
4388
|
+
return val instanceof Error || typeof val.message === "string" && val.constructor && typeof val.constructor.stackTraceLimit === "number";
|
|
4388
4389
|
}
|
|
4389
|
-
function isDate$1(
|
|
4390
|
-
if (
|
|
4390
|
+
function isDate$1(val) {
|
|
4391
|
+
if (val instanceof Date)
|
|
4391
4392
|
return true;
|
|
4392
|
-
return typeof
|
|
4393
|
+
return typeof val.toDateString === "function" && typeof val.getDate === "function" && typeof val.setDate === "function";
|
|
4393
4394
|
}
|
|
4394
|
-
function kindOf$1(
|
|
4395
|
-
var typeOfVal = typeof
|
|
4395
|
+
function kindOf$1(val) {
|
|
4396
|
+
var typeOfVal = typeof val;
|
|
4396
4397
|
if (process.env.NODE_ENV !== "production") {
|
|
4397
|
-
typeOfVal = miniKindOf(
|
|
4398
|
+
typeOfVal = miniKindOf(val);
|
|
4398
4399
|
}
|
|
4399
4400
|
return typeOfVal;
|
|
4400
4401
|
}
|
|
@@ -4626,7 +4627,7 @@ function requireReactIs_production_min$1() {
|
|
|
4626
4627
|
if (hasRequiredReactIs_production_min$1)
|
|
4627
4628
|
return reactIs_production_min$1;
|
|
4628
4629
|
hasRequiredReactIs_production_min$1 = 1;
|
|
4629
|
-
var b = "function" === typeof Symbol && Symbol.for, c = b ? Symbol.for("react.element") : 60103, d = b ? Symbol.for("react.portal") : 60106, e = b ? Symbol.for("react.fragment") : 60107,
|
|
4630
|
+
var b = "function" === typeof Symbol && Symbol.for, c = b ? Symbol.for("react.element") : 60103, d = b ? Symbol.for("react.portal") : 60106, e = b ? Symbol.for("react.fragment") : 60107, f = b ? Symbol.for("react.strict_mode") : 60108, g = b ? Symbol.for("react.profiler") : 60114, h = b ? Symbol.for("react.provider") : 60109, k = b ? Symbol.for("react.context") : 60110, l = b ? Symbol.for("react.async_mode") : 60111, m = b ? Symbol.for("react.concurrent_mode") : 60111, n = b ? Symbol.for("react.forward_ref") : 60112, p = b ? Symbol.for("react.suspense") : 60113, q = b ? Symbol.for("react.suspense_list") : 60120, r = b ? Symbol.for("react.memo") : 60115, t2 = b ? Symbol.for("react.lazy") : 60116, v = b ? Symbol.for("react.block") : 60121, w = b ? Symbol.for("react.fundamental") : 60117, x = b ? Symbol.for("react.responder") : 60118, y = b ? Symbol.for("react.scope") : 60119;
|
|
4630
4631
|
function z(a) {
|
|
4631
4632
|
if ("object" === typeof a && null !== a) {
|
|
4632
4633
|
var u = a.$$typeof;
|
|
@@ -4637,7 +4638,7 @@ function requireReactIs_production_min$1() {
|
|
|
4637
4638
|
case m:
|
|
4638
4639
|
case e:
|
|
4639
4640
|
case g:
|
|
4640
|
-
case
|
|
4641
|
+
case f:
|
|
4641
4642
|
case p:
|
|
4642
4643
|
return a;
|
|
4643
4644
|
default:
|
|
@@ -4671,7 +4672,7 @@ function requireReactIs_production_min$1() {
|
|
|
4671
4672
|
reactIs_production_min$1.Memo = r;
|
|
4672
4673
|
reactIs_production_min$1.Portal = d;
|
|
4673
4674
|
reactIs_production_min$1.Profiler = g;
|
|
4674
|
-
reactIs_production_min$1.StrictMode =
|
|
4675
|
+
reactIs_production_min$1.StrictMode = f;
|
|
4675
4676
|
reactIs_production_min$1.Suspense = p;
|
|
4676
4677
|
reactIs_production_min$1.isAsyncMode = function(a) {
|
|
4677
4678
|
return A(a) || z(a) === l;
|
|
@@ -4705,13 +4706,13 @@ function requireReactIs_production_min$1() {
|
|
|
4705
4706
|
return z(a) === g;
|
|
4706
4707
|
};
|
|
4707
4708
|
reactIs_production_min$1.isStrictMode = function(a) {
|
|
4708
|
-
return z(a) ===
|
|
4709
|
+
return z(a) === f;
|
|
4709
4710
|
};
|
|
4710
4711
|
reactIs_production_min$1.isSuspense = function(a) {
|
|
4711
4712
|
return z(a) === p;
|
|
4712
4713
|
};
|
|
4713
4714
|
reactIs_production_min$1.isValidElementType = function(a) {
|
|
4714
|
-
return "string" === typeof a || "function" === typeof a || a === e || a === m || a === g || a ===
|
|
4715
|
+
return "string" === typeof a || "function" === typeof a || a === e || a === m || a === g || a === f || a === p || a === q || "object" === typeof a && null !== a && (a.$$typeof === t2 || a.$$typeof === r || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === w || a.$$typeof === x || a.$$typeof === y || a.$$typeof === v);
|
|
4715
4716
|
};
|
|
4716
4717
|
reactIs_production_min$1.typeOf = z;
|
|
4717
4718
|
return reactIs_production_min$1;
|
|
@@ -4901,11 +4902,11 @@ object-assign
|
|
|
4901
4902
|
var getOwnPropertySymbols$1 = Object.getOwnPropertySymbols;
|
|
4902
4903
|
var hasOwnProperty$d = Object.prototype.hasOwnProperty;
|
|
4903
4904
|
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
4904
|
-
function toObject(
|
|
4905
|
-
if (
|
|
4905
|
+
function toObject(val) {
|
|
4906
|
+
if (val === null || val === void 0) {
|
|
4906
4907
|
throw new TypeError("Object.assign cannot be called with null or undefined");
|
|
4907
4908
|
}
|
|
4908
|
-
return Object(
|
|
4909
|
+
return Object(val);
|
|
4909
4910
|
}
|
|
4910
4911
|
function shouldUseNative() {
|
|
4911
4912
|
try {
|
|
@@ -4986,13 +4987,13 @@ function requireCheckPropTypes() {
|
|
|
4986
4987
|
if (hasRequiredCheckPropTypes)
|
|
4987
4988
|
return checkPropTypes_1;
|
|
4988
4989
|
hasRequiredCheckPropTypes = 1;
|
|
4989
|
-
var
|
|
4990
|
+
var printWarning = function() {
|
|
4990
4991
|
};
|
|
4991
4992
|
if (process.env.NODE_ENV !== "production") {
|
|
4992
4993
|
var ReactPropTypesSecret = requireReactPropTypesSecret();
|
|
4993
4994
|
var loggedTypeFailures = {};
|
|
4994
4995
|
var has3 = requireHas();
|
|
4995
|
-
|
|
4996
|
+
printWarning = function(text) {
|
|
4996
4997
|
var message = "Warning: " + text;
|
|
4997
4998
|
if (typeof console !== "undefined") {
|
|
4998
4999
|
console.error(message);
|
|
@@ -5021,14 +5022,14 @@ function requireCheckPropTypes() {
|
|
|
5021
5022
|
error2 = ex;
|
|
5022
5023
|
}
|
|
5023
5024
|
if (error2 && !(error2 instanceof Error)) {
|
|
5024
|
-
|
|
5025
|
+
printWarning(
|
|
5025
5026
|
(componentName || "React class") + ": type specification of " + location + " `" + typeSpecName + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof error2 + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
5026
5027
|
);
|
|
5027
5028
|
}
|
|
5028
5029
|
if (error2 instanceof Error && !(error2.message in loggedTypeFailures)) {
|
|
5029
5030
|
loggedTypeFailures[error2.message] = true;
|
|
5030
5031
|
var stack = getStack ? getStack() : "";
|
|
5031
|
-
|
|
5032
|
+
printWarning(
|
|
5032
5033
|
"Failed " + location + " type: " + error2.message + (stack != null ? stack : "")
|
|
5033
5034
|
);
|
|
5034
5035
|
}
|
|
@@ -5050,15 +5051,15 @@ function requireFactoryWithTypeCheckers() {
|
|
|
5050
5051
|
if (hasRequiredFactoryWithTypeCheckers)
|
|
5051
5052
|
return factoryWithTypeCheckers;
|
|
5052
5053
|
hasRequiredFactoryWithTypeCheckers = 1;
|
|
5053
|
-
var
|
|
5054
|
+
var ReactIs = requireReactIs();
|
|
5054
5055
|
var assign2 = objectAssign;
|
|
5055
5056
|
var ReactPropTypesSecret = requireReactPropTypesSecret();
|
|
5056
5057
|
var has3 = requireHas();
|
|
5057
5058
|
var checkPropTypes = requireCheckPropTypes();
|
|
5058
|
-
var
|
|
5059
|
+
var printWarning = function() {
|
|
5059
5060
|
};
|
|
5060
5061
|
if (process.env.NODE_ENV !== "production") {
|
|
5061
|
-
|
|
5062
|
+
printWarning = function(text) {
|
|
5062
5063
|
var message = "Warning: " + text;
|
|
5063
5064
|
if (typeof console !== "undefined") {
|
|
5064
5065
|
console.error(message);
|
|
@@ -5072,7 +5073,7 @@ function requireFactoryWithTypeCheckers() {
|
|
|
5072
5073
|
function emptyFunctionThatReturnsNull() {
|
|
5073
5074
|
return null;
|
|
5074
5075
|
}
|
|
5075
|
-
factoryWithTypeCheckers = function(isValidElement,
|
|
5076
|
+
factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
5076
5077
|
var ITERATOR_SYMBOL = typeof Symbol === "function" && Symbol.iterator;
|
|
5077
5078
|
var FAUX_ITERATOR_SYMBOL = "@@iterator";
|
|
5078
5079
|
function getIteratorFn(maybeIterable) {
|
|
@@ -5125,7 +5126,7 @@ function requireFactoryWithTypeCheckers() {
|
|
|
5125
5126
|
componentName = componentName || ANONYMOUS;
|
|
5126
5127
|
propFullName = propFullName || propName;
|
|
5127
5128
|
if (secret !== ReactPropTypesSecret) {
|
|
5128
|
-
if (
|
|
5129
|
+
if (throwOnDirectAccess) {
|
|
5129
5130
|
var err = new Error(
|
|
5130
5131
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
5131
5132
|
);
|
|
@@ -5135,7 +5136,7 @@ function requireFactoryWithTypeCheckers() {
|
|
|
5135
5136
|
var cacheKey = componentName + ":" + propName;
|
|
5136
5137
|
if (!manualPropTypeCallCache[cacheKey] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
5137
5138
|
manualPropTypeWarningCount < 3) {
|
|
5138
|
-
|
|
5139
|
+
printWarning(
|
|
5139
5140
|
"You are manually calling a React.PropTypes validation function for the `" + propFullName + "` prop on `" + componentName + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
5140
5141
|
);
|
|
5141
5142
|
manualPropTypeCallCache[cacheKey] = true;
|
|
@@ -5211,7 +5212,7 @@ function requireFactoryWithTypeCheckers() {
|
|
|
5211
5212
|
function createElementTypeTypeChecker() {
|
|
5212
5213
|
function validate(props, propName, componentName, location, propFullName) {
|
|
5213
5214
|
var propValue = props[propName];
|
|
5214
|
-
if (!
|
|
5215
|
+
if (!ReactIs.isValidElementType(propValue)) {
|
|
5215
5216
|
var propType = getPropType(propValue);
|
|
5216
5217
|
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement type."));
|
|
5217
5218
|
}
|
|
@@ -5234,11 +5235,11 @@ function requireFactoryWithTypeCheckers() {
|
|
|
5234
5235
|
if (!Array.isArray(expectedValues)) {
|
|
5235
5236
|
if (process.env.NODE_ENV !== "production") {
|
|
5236
5237
|
if (arguments.length > 1) {
|
|
5237
|
-
|
|
5238
|
+
printWarning(
|
|
5238
5239
|
"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])."
|
|
5239
5240
|
);
|
|
5240
5241
|
} else {
|
|
5241
|
-
|
|
5242
|
+
printWarning("Invalid argument supplied to oneOf, expected an array.");
|
|
5242
5243
|
}
|
|
5243
5244
|
}
|
|
5244
5245
|
return emptyFunctionThatReturnsNull;
|
|
@@ -5285,13 +5286,13 @@ function requireFactoryWithTypeCheckers() {
|
|
|
5285
5286
|
}
|
|
5286
5287
|
function createUnionTypeChecker(arrayOfTypeCheckers) {
|
|
5287
5288
|
if (!Array.isArray(arrayOfTypeCheckers)) {
|
|
5288
|
-
process.env.NODE_ENV !== "production" ?
|
|
5289
|
+
process.env.NODE_ENV !== "production" ? printWarning("Invalid argument supplied to oneOfType, expected an instance of array.") : void 0;
|
|
5289
5290
|
return emptyFunctionThatReturnsNull;
|
|
5290
5291
|
}
|
|
5291
5292
|
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
5292
5293
|
var checker = arrayOfTypeCheckers[i];
|
|
5293
5294
|
if (typeof checker !== "function") {
|
|
5294
|
-
|
|
5295
|
+
printWarning(
|
|
5295
5296
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + getPostfixForTypeWarning(checker) + " at index " + i + "."
|
|
5296
5297
|
);
|
|
5297
5298
|
return emptyFunctionThatReturnsNull;
|
|
@@ -5832,14 +5833,14 @@ function requireReactIs_production_min() {
|
|
|
5832
5833
|
if (hasRequiredReactIs_production_min)
|
|
5833
5834
|
return reactIs_production_min;
|
|
5834
5835
|
hasRequiredReactIs_production_min = 1;
|
|
5835
|
-
var b = 60103, c = 60106, d = 60107, e = 60108,
|
|
5836
|
+
var b = 60103, c = 60106, d = 60107, e = 60108, f = 60114, g = 60109, h = 60110, k = 60112, l = 60113, m = 60120, n = 60115, p = 60116, q = 60121, r = 60122, u = 60117, v = 60129, w = 60131;
|
|
5836
5837
|
if ("function" === typeof Symbol && Symbol.for) {
|
|
5837
5838
|
var x = Symbol.for;
|
|
5838
5839
|
b = x("react.element");
|
|
5839
5840
|
c = x("react.portal");
|
|
5840
5841
|
d = x("react.fragment");
|
|
5841
5842
|
e = x("react.strict_mode");
|
|
5842
|
-
|
|
5843
|
+
f = x("react.profiler");
|
|
5843
5844
|
g = x("react.provider");
|
|
5844
5845
|
h = x("react.context");
|
|
5845
5846
|
k = x("react.forward_ref");
|
|
@@ -5860,7 +5861,7 @@ function requireReactIs_production_min() {
|
|
|
5860
5861
|
case b:
|
|
5861
5862
|
switch (a = a.type, a) {
|
|
5862
5863
|
case d:
|
|
5863
|
-
case
|
|
5864
|
+
case f:
|
|
5864
5865
|
case e:
|
|
5865
5866
|
case l:
|
|
5866
5867
|
case m:
|
|
@@ -5882,7 +5883,7 @@ function requireReactIs_production_min() {
|
|
|
5882
5883
|
}
|
|
5883
5884
|
}
|
|
5884
5885
|
}
|
|
5885
|
-
var z = g, A = b, B = k, C = d, D = p, E = n, F = c, G =
|
|
5886
|
+
var z = g, A = b, B = k, C = d, D = p, E = n, F = c, G = f, H = e, I = l;
|
|
5886
5887
|
reactIs_production_min.ContextConsumer = h;
|
|
5887
5888
|
reactIs_production_min.ContextProvider = z;
|
|
5888
5889
|
reactIs_production_min.Element = A;
|
|
@@ -5925,7 +5926,7 @@ function requireReactIs_production_min() {
|
|
|
5925
5926
|
return y(a) === c;
|
|
5926
5927
|
};
|
|
5927
5928
|
reactIs_production_min.isProfiler = function(a) {
|
|
5928
|
-
return y(a) ===
|
|
5929
|
+
return y(a) === f;
|
|
5929
5930
|
};
|
|
5930
5931
|
reactIs_production_min.isStrictMode = function(a) {
|
|
5931
5932
|
return y(a) === e;
|
|
@@ -5934,7 +5935,7 @@ function requireReactIs_production_min() {
|
|
|
5934
5935
|
return y(a) === l;
|
|
5935
5936
|
};
|
|
5936
5937
|
reactIs_production_min.isValidElementType = function(a) {
|
|
5937
|
-
return "string" === typeof a || "function" === typeof a || a === d || a ===
|
|
5938
|
+
return "string" === typeof a || "function" === typeof a || a === d || a === f || a === v || a === e || a === l || a === m || a === w || "object" === typeof a && null !== a && (a.$$typeof === p || a.$$typeof === n || a.$$typeof === g || a.$$typeof === h || a.$$typeof === k || a.$$typeof === u || a.$$typeof === q || a[0] === r) ? true : false;
|
|
5938
5939
|
};
|
|
5939
5940
|
reactIs_production_min.typeOf = y;
|
|
5940
5941
|
return reactIs_production_min;
|
|
@@ -6227,8 +6228,8 @@ function connectAdvanced(selectorFactory, _ref) {
|
|
|
6227
6228
|
if (_ref === void 0) {
|
|
6228
6229
|
_ref = {};
|
|
6229
6230
|
}
|
|
6230
|
-
var _ref2 = _ref, _ref2$getDisplayName = _ref2.getDisplayName, getDisplayName2 = _ref2$getDisplayName === void 0 ? function(
|
|
6231
|
-
return "ConnectAdvanced(" +
|
|
6231
|
+
var _ref2 = _ref, _ref2$getDisplayName = _ref2.getDisplayName, getDisplayName2 = _ref2$getDisplayName === void 0 ? function(name) {
|
|
6232
|
+
return "ConnectAdvanced(" + name + ")";
|
|
6232
6233
|
} : _ref2$getDisplayName, _ref2$methodName = _ref2.methodName, methodName = _ref2$methodName === void 0 ? "connectAdvanced" : _ref2$methodName, _ref2$renderCountProp = _ref2.renderCountProp, renderCountProp = _ref2$renderCountProp === void 0 ? void 0 : _ref2$renderCountProp, _ref2$shouldHandleSta = _ref2.shouldHandleStateChanges, shouldHandleStateChanges = _ref2$shouldHandleSta === void 0 ? true : _ref2$shouldHandleSta, _ref2$storeKey = _ref2.storeKey, storeKey = _ref2$storeKey === void 0 ? "store" : _ref2$storeKey, _ref2$withRef = _ref2.withRef, withRef = _ref2$withRef === void 0 ? false : _ref2$withRef, _ref2$forwardRef = _ref2.forwardRef, forwardRef2 = _ref2$forwardRef === void 0 ? false : _ref2$forwardRef, _ref2$context = _ref2.context, context = _ref2$context === void 0 ? ReactReduxContext : _ref2$context, connectOptions = _objectWithoutPropertiesLoose(_ref2, _excluded$2);
|
|
6233
6234
|
if (process.env.NODE_ENV !== "production") {
|
|
6234
6235
|
if (renderCountProp !== void 0) {
|
|
@@ -6593,14 +6594,14 @@ function finalPropsSelectorFactory(dispatch, _ref2) {
|
|
|
6593
6594
|
return selectorFactory(mapStateToProps, mapDispatchToProps2, mergeProps, dispatch, options2);
|
|
6594
6595
|
}
|
|
6595
6596
|
var _excluded = ["pure", "areStatesEqual", "areOwnPropsEqual", "areStatePropsEqual", "areMergedPropsEqual"];
|
|
6596
|
-
function match(arg, factories,
|
|
6597
|
+
function match(arg, factories, name) {
|
|
6597
6598
|
for (var i = factories.length - 1; i >= 0; i--) {
|
|
6598
6599
|
var result = factories[i](arg);
|
|
6599
6600
|
if (result)
|
|
6600
6601
|
return result;
|
|
6601
6602
|
}
|
|
6602
6603
|
return function(dispatch, options2) {
|
|
6603
|
-
throw new Error("Invalid value of type " + typeof arg + " for " +
|
|
6604
|
+
throw new Error("Invalid value of type " + typeof arg + " for " + name + " argument when connecting component " + options2.wrappedComponentName + ".");
|
|
6604
6605
|
};
|
|
6605
6606
|
}
|
|
6606
6607
|
function strictEqual(a, b) {
|
|
@@ -6620,8 +6621,8 @@ function createConnect(_temp) {
|
|
|
6620
6621
|
// used in error messages
|
|
6621
6622
|
methodName: "connect",
|
|
6622
6623
|
// used to compute Connect's displayName from the wrapped component's displayName.
|
|
6623
|
-
getDisplayName: function getDisplayName2(
|
|
6624
|
-
return "Connect(" +
|
|
6624
|
+
getDisplayName: function getDisplayName2(name) {
|
|
6625
|
+
return "Connect(" + name + ")";
|
|
6625
6626
|
},
|
|
6626
6627
|
// if mapStateToProps is falsy, the Connect component doesn't subscribe to store state changes
|
|
6627
6628
|
shouldHandleStateChanges: Boolean(mapStateToProps),
|
|
@@ -6764,7 +6765,7 @@ var parse = function parse2(raw) {
|
|
|
6764
6765
|
!!isNaN(result) ? process.env.NODE_ENV !== "production" ? invariant$1(false, "Could not parse value [raw: " + raw + ", without suffix: " + value + "]") : invariant$1(false) : void 0;
|
|
6765
6766
|
return result;
|
|
6766
6767
|
};
|
|
6767
|
-
var getWindowScroll$1 = function
|
|
6768
|
+
var getWindowScroll$1 = function getWindowScroll() {
|
|
6768
6769
|
return {
|
|
6769
6770
|
x: window.pageXOffset,
|
|
6770
6771
|
y: window.pageYOffset
|
|
@@ -6939,7 +6940,7 @@ var prefix = "Invariant failed";
|
|
|
6939
6940
|
function RbdInvariant(message) {
|
|
6940
6941
|
this.message = message;
|
|
6941
6942
|
}
|
|
6942
|
-
RbdInvariant.prototype.toString = function
|
|
6943
|
+
RbdInvariant.prototype.toString = function toString() {
|
|
6943
6944
|
return this.message;
|
|
6944
6945
|
};
|
|
6945
6946
|
function invariant(condition, message) {
|
|
@@ -7073,13 +7074,13 @@ var origin = {
|
|
|
7073
7074
|
x: 0,
|
|
7074
7075
|
y: 0
|
|
7075
7076
|
};
|
|
7076
|
-
var add$1 = function
|
|
7077
|
+
var add$1 = function add(point1, point2) {
|
|
7077
7078
|
return {
|
|
7078
7079
|
x: point1.x + point2.x,
|
|
7079
7080
|
y: point1.y + point2.y
|
|
7080
7081
|
};
|
|
7081
7082
|
};
|
|
7082
|
-
var subtract$1 = function
|
|
7083
|
+
var subtract$1 = function subtract(point1, point2) {
|
|
7083
7084
|
return {
|
|
7084
7085
|
x: point1.x - point2.x,
|
|
7085
7086
|
y: point1.y - point2.y
|
|
@@ -7094,7 +7095,7 @@ var negate = function negate2(point) {
|
|
|
7094
7095
|
y: point.y !== 0 ? -point.y : 0
|
|
7095
7096
|
};
|
|
7096
7097
|
};
|
|
7097
|
-
var patch$1 = function
|
|
7098
|
+
var patch$1 = function patch(line, value, otherValue) {
|
|
7098
7099
|
var _ref;
|
|
7099
7100
|
if (otherValue === void 0) {
|
|
7100
7101
|
otherValue = 0;
|
|
@@ -7109,7 +7110,7 @@ var closest = function closest2(target, points) {
|
|
|
7109
7110
|
return distance(target, point);
|
|
7110
7111
|
}));
|
|
7111
7112
|
};
|
|
7112
|
-
var apply$2 = function
|
|
7113
|
+
var apply$2 = function apply(fn) {
|
|
7113
7114
|
return function(point) {
|
|
7114
7115
|
return {
|
|
7115
7116
|
x: fn(point.x),
|
|
@@ -7158,7 +7159,7 @@ var noSpacing = {
|
|
|
7158
7159
|
bottom: 0,
|
|
7159
7160
|
left: 0
|
|
7160
7161
|
};
|
|
7161
|
-
var scroll$1 = function
|
|
7162
|
+
var scroll$1 = function scroll(target, frame) {
|
|
7162
7163
|
if (!frame) {
|
|
7163
7164
|
return target;
|
|
7164
7165
|
}
|
|
@@ -9536,7 +9537,7 @@ var drop$1 = function(_ref) {
|
|
|
9536
9537
|
};
|
|
9537
9538
|
};
|
|
9538
9539
|
};
|
|
9539
|
-
var
|
|
9540
|
+
var getWindowScroll2 = function() {
|
|
9540
9541
|
return {
|
|
9541
9542
|
x: window.pageXOffset,
|
|
9542
9543
|
y: window.pageYOffset
|
|
@@ -9560,7 +9561,7 @@ function getWindowScrollBinding(update2) {
|
|
|
9560
9561
|
function getScrollListener(_ref) {
|
|
9561
9562
|
var onWindowScroll = _ref.onWindowScroll;
|
|
9562
9563
|
function updateScroll() {
|
|
9563
|
-
onWindowScroll(
|
|
9564
|
+
onWindowScroll(getWindowScroll2());
|
|
9564
9565
|
}
|
|
9565
9566
|
var scheduled = rafSchd$1(updateScroll);
|
|
9566
9567
|
var binding = getWindowScrollBinding(scheduled);
|
|
@@ -10121,7 +10122,7 @@ var getMaxWindowScroll = function() {
|
|
|
10121
10122
|
return maxScroll;
|
|
10122
10123
|
};
|
|
10123
10124
|
var getViewport = function() {
|
|
10124
|
-
var scroll3 =
|
|
10125
|
+
var scroll3 = getWindowScroll2();
|
|
10125
10126
|
var maxScroll = getMaxWindowScroll();
|
|
10126
10127
|
var top = scroll3.y;
|
|
10127
10128
|
var left = scroll3.x;
|
|
@@ -12101,8 +12102,8 @@ var supportedMatchesName = function() {
|
|
|
12101
12102
|
return base;
|
|
12102
12103
|
}
|
|
12103
12104
|
var candidates = [base, "msMatchesSelector", "webkitMatchesSelector"];
|
|
12104
|
-
var value = find(candidates, function(
|
|
12105
|
-
return
|
|
12105
|
+
var value = find(candidates, function(name) {
|
|
12106
|
+
return name in Element.prototype;
|
|
12106
12107
|
});
|
|
12107
12108
|
return value || base;
|
|
12108
12109
|
}();
|
|
@@ -12962,7 +12963,7 @@ var empty = {
|
|
|
12962
12963
|
height: 0,
|
|
12963
12964
|
margin: noSpacing
|
|
12964
12965
|
};
|
|
12965
|
-
var getSize$1 = function
|
|
12966
|
+
var getSize$1 = function getSize(_ref) {
|
|
12966
12967
|
var isAnimatingOpenOnMount = _ref.isAnimatingOpenOnMount, placeholder2 = _ref.placeholder, animate = _ref.animate;
|
|
12967
12968
|
if (isAnimatingOpenOnMount) {
|
|
12968
12969
|
return empty;
|
|
@@ -14286,16 +14287,16 @@ const kindOfTest = (type) => {
|
|
|
14286
14287
|
const typeOfTest = (type) => (thing) => typeof thing === type;
|
|
14287
14288
|
const { isArray: isArray$8 } = Array;
|
|
14288
14289
|
const isUndefined = typeOfTest("undefined");
|
|
14289
|
-
function isBuffer$3(
|
|
14290
|
-
return
|
|
14290
|
+
function isBuffer$3(val) {
|
|
14291
|
+
return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) && isFunction$4(val.constructor.isBuffer) && val.constructor.isBuffer(val);
|
|
14291
14292
|
}
|
|
14292
14293
|
const isArrayBuffer = kindOfTest("ArrayBuffer");
|
|
14293
|
-
function isArrayBufferView(
|
|
14294
|
+
function isArrayBufferView(val) {
|
|
14294
14295
|
let result;
|
|
14295
14296
|
if (typeof ArrayBuffer !== "undefined" && ArrayBuffer.isView) {
|
|
14296
|
-
result = ArrayBuffer.isView(
|
|
14297
|
+
result = ArrayBuffer.isView(val);
|
|
14297
14298
|
} else {
|
|
14298
|
-
result =
|
|
14299
|
+
result = val && val.buffer && isArrayBuffer(val.buffer);
|
|
14299
14300
|
}
|
|
14300
14301
|
return result;
|
|
14301
14302
|
}
|
|
@@ -14304,18 +14305,18 @@ const isFunction$4 = typeOfTest("function");
|
|
|
14304
14305
|
const isNumber = typeOfTest("number");
|
|
14305
14306
|
const isObject$a = (thing) => thing !== null && typeof thing === "object";
|
|
14306
14307
|
const isBoolean = (thing) => thing === true || thing === false;
|
|
14307
|
-
const isPlainObject$3 = (
|
|
14308
|
-
if (kindOf(
|
|
14308
|
+
const isPlainObject$3 = (val) => {
|
|
14309
|
+
if (kindOf(val) !== "object") {
|
|
14309
14310
|
return false;
|
|
14310
14311
|
}
|
|
14311
|
-
const prototype2 = getPrototypeOf(
|
|
14312
|
-
return (prototype2 === null || prototype2 === Object.prototype || Object.getPrototypeOf(prototype2) === null) && !(Symbol.toStringTag in
|
|
14312
|
+
const prototype2 = getPrototypeOf(val);
|
|
14313
|
+
return (prototype2 === null || prototype2 === Object.prototype || Object.getPrototypeOf(prototype2) === null) && !(Symbol.toStringTag in val) && !(Symbol.iterator in val);
|
|
14313
14314
|
};
|
|
14314
14315
|
const isDate = kindOfTest("Date");
|
|
14315
14316
|
const isFile = kindOfTest("File");
|
|
14316
14317
|
const isBlob = kindOfTest("Blob");
|
|
14317
14318
|
const isFileList = kindOfTest("FileList");
|
|
14318
|
-
const isStream = (
|
|
14319
|
+
const isStream = (val) => isObject$a(val) && isFunction$4(val.pipe);
|
|
14319
14320
|
const isFormData = (thing) => {
|
|
14320
14321
|
let kind;
|
|
14321
14322
|
return thing && (typeof FormData === "function" && thing instanceof FormData || isFunction$4(thing.append) && ((kind = kindOf(thing)) === "formdata" || // detect form-data instance
|
|
@@ -14368,16 +14369,16 @@ const isContextDefined = (context) => !isUndefined(context) && context !== _glob
|
|
|
14368
14369
|
function merge() {
|
|
14369
14370
|
const { caseless } = isContextDefined(this) && this || {};
|
|
14370
14371
|
const result = {};
|
|
14371
|
-
const assignValue2 = (
|
|
14372
|
+
const assignValue2 = (val, key2) => {
|
|
14372
14373
|
const targetKey = caseless && findKey(result, key2) || key2;
|
|
14373
|
-
if (isPlainObject$3(result[targetKey]) && isPlainObject$3(
|
|
14374
|
-
result[targetKey] = merge(result[targetKey],
|
|
14375
|
-
} else if (isPlainObject$3(
|
|
14376
|
-
result[targetKey] = merge({},
|
|
14377
|
-
} else if (isArray$8(
|
|
14378
|
-
result[targetKey] =
|
|
14374
|
+
if (isPlainObject$3(result[targetKey]) && isPlainObject$3(val)) {
|
|
14375
|
+
result[targetKey] = merge(result[targetKey], val);
|
|
14376
|
+
} else if (isPlainObject$3(val)) {
|
|
14377
|
+
result[targetKey] = merge({}, val);
|
|
14378
|
+
} else if (isArray$8(val)) {
|
|
14379
|
+
result[targetKey] = val.slice();
|
|
14379
14380
|
} else {
|
|
14380
|
-
result[targetKey] =
|
|
14381
|
+
result[targetKey] = val;
|
|
14381
14382
|
}
|
|
14382
14383
|
};
|
|
14383
14384
|
for (let i = 0, l = arguments.length; i < l; i++) {
|
|
@@ -14386,11 +14387,11 @@ function merge() {
|
|
|
14386
14387
|
return result;
|
|
14387
14388
|
}
|
|
14388
14389
|
const extend = (a, b, thisArg, { allOwnKeys } = {}) => {
|
|
14389
|
-
forEach$2(b, (
|
|
14390
|
-
if (thisArg && isFunction$4(
|
|
14391
|
-
a[key2] = bind(
|
|
14390
|
+
forEach$2(b, (val, key2) => {
|
|
14391
|
+
if (thisArg && isFunction$4(val)) {
|
|
14392
|
+
a[key2] = bind(val, thisArg);
|
|
14392
14393
|
} else {
|
|
14393
|
-
a[key2] =
|
|
14394
|
+
a[key2] = val;
|
|
14394
14395
|
}
|
|
14395
14396
|
}, { allOwnKeys });
|
|
14396
14397
|
return a;
|
|
@@ -14490,19 +14491,19 @@ const isRegExp = kindOfTest("RegExp");
|
|
|
14490
14491
|
const reduceDescriptors = (obj, reducer2) => {
|
|
14491
14492
|
const descriptors2 = Object.getOwnPropertyDescriptors(obj);
|
|
14492
14493
|
const reducedDescriptors = {};
|
|
14493
|
-
forEach$2(descriptors2, (descriptor,
|
|
14494
|
-
if (reducer2(descriptor,
|
|
14495
|
-
reducedDescriptors[
|
|
14494
|
+
forEach$2(descriptors2, (descriptor, name) => {
|
|
14495
|
+
if (reducer2(descriptor, name, obj) !== false) {
|
|
14496
|
+
reducedDescriptors[name] = descriptor;
|
|
14496
14497
|
}
|
|
14497
14498
|
});
|
|
14498
14499
|
Object.defineProperties(obj, reducedDescriptors);
|
|
14499
14500
|
};
|
|
14500
14501
|
const freezeMethods = (obj) => {
|
|
14501
|
-
reduceDescriptors(obj, (descriptor,
|
|
14502
|
-
if (isFunction$4(obj) && ["arguments", "caller", "callee"].indexOf(
|
|
14502
|
+
reduceDescriptors(obj, (descriptor, name) => {
|
|
14503
|
+
if (isFunction$4(obj) && ["arguments", "caller", "callee"].indexOf(name) !== -1) {
|
|
14503
14504
|
return false;
|
|
14504
14505
|
}
|
|
14505
|
-
const value = obj[
|
|
14506
|
+
const value = obj[name];
|
|
14506
14507
|
if (!isFunction$4(value))
|
|
14507
14508
|
return;
|
|
14508
14509
|
descriptor.enumerable = false;
|
|
@@ -14512,7 +14513,7 @@ const freezeMethods = (obj) => {
|
|
|
14512
14513
|
}
|
|
14513
14514
|
if (!descriptor.set) {
|
|
14514
14515
|
descriptor.set = () => {
|
|
14515
|
-
throw Error("Can not rewrite read-only method '" +
|
|
14516
|
+
throw Error("Can not rewrite read-only method '" + name + "'");
|
|
14516
14517
|
};
|
|
14517
14518
|
}
|
|
14518
14519
|
});
|
|
@@ -14830,10 +14831,10 @@ function AxiosURLSearchParams(params, options2) {
|
|
|
14830
14831
|
params && toFormData(params, this, options2);
|
|
14831
14832
|
}
|
|
14832
14833
|
const prototype = AxiosURLSearchParams.prototype;
|
|
14833
|
-
prototype.append = function append(
|
|
14834
|
-
this._pairs.push([
|
|
14834
|
+
prototype.append = function append(name, value) {
|
|
14835
|
+
this._pairs.push([name, value]);
|
|
14835
14836
|
};
|
|
14836
|
-
prototype.toString = function
|
|
14837
|
+
prototype.toString = function toString2(encoder) {
|
|
14837
14838
|
const _encode = encoder ? function(value) {
|
|
14838
14839
|
return encoder.call(this, value, encode$1);
|
|
14839
14840
|
} : encode$1;
|
|
@@ -14841,8 +14842,8 @@ prototype.toString = function toString3(encoder) {
|
|
|
14841
14842
|
return _encode(pair[0]) + "=" + _encode(pair[1]);
|
|
14842
14843
|
}, "").join("&");
|
|
14843
14844
|
};
|
|
14844
|
-
function encode(
|
|
14845
|
-
return encodeURIComponent(
|
|
14845
|
+
function encode(val) {
|
|
14846
|
+
return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
14846
14847
|
}
|
|
14847
14848
|
function buildURL(url, params, options2) {
|
|
14848
14849
|
if (!params) {
|
|
@@ -14968,8 +14969,8 @@ function toURLEncodedForm(data, options2) {
|
|
|
14968
14969
|
}
|
|
14969
14970
|
}, options2));
|
|
14970
14971
|
}
|
|
14971
|
-
function parsePropPath(
|
|
14972
|
-
return utils$5.matchAll(/\w+|\[(\w*)]/g,
|
|
14972
|
+
function parsePropPath(name) {
|
|
14973
|
+
return utils$5.matchAll(/\w+|\[(\w*)]/g, name).map((match2) => {
|
|
14973
14974
|
return match2[0] === "[]" ? "" : match2[1] || match2[0];
|
|
14974
14975
|
});
|
|
14975
14976
|
}
|
|
@@ -14987,31 +14988,31 @@ function arrayToObject(arr) {
|
|
|
14987
14988
|
}
|
|
14988
14989
|
function formDataToJSON(formData) {
|
|
14989
14990
|
function buildPath(path2, value, target, index2) {
|
|
14990
|
-
let
|
|
14991
|
-
const isNumericKey = Number.isFinite(+
|
|
14991
|
+
let name = path2[index2++];
|
|
14992
|
+
const isNumericKey = Number.isFinite(+name);
|
|
14992
14993
|
const isLast = index2 >= path2.length;
|
|
14993
|
-
|
|
14994
|
+
name = !name && utils$5.isArray(target) ? target.length : name;
|
|
14994
14995
|
if (isLast) {
|
|
14995
|
-
if (utils$5.hasOwnProp(target,
|
|
14996
|
-
target[
|
|
14996
|
+
if (utils$5.hasOwnProp(target, name)) {
|
|
14997
|
+
target[name] = [target[name], value];
|
|
14997
14998
|
} else {
|
|
14998
|
-
target[
|
|
14999
|
+
target[name] = value;
|
|
14999
15000
|
}
|
|
15000
15001
|
return !isNumericKey;
|
|
15001
15002
|
}
|
|
15002
|
-
if (!target[
|
|
15003
|
-
target[
|
|
15003
|
+
if (!target[name] || !utils$5.isObject(target[name])) {
|
|
15004
|
+
target[name] = [];
|
|
15004
15005
|
}
|
|
15005
|
-
const result = buildPath(path2, value, target[
|
|
15006
|
-
if (result && utils$5.isArray(target[
|
|
15007
|
-
target[
|
|
15006
|
+
const result = buildPath(path2, value, target[name], index2);
|
|
15007
|
+
if (result && utils$5.isArray(target[name])) {
|
|
15008
|
+
target[name] = arrayToObject(target[name]);
|
|
15008
15009
|
}
|
|
15009
15010
|
return !isNumericKey;
|
|
15010
15011
|
}
|
|
15011
15012
|
if (utils$5.isFormData(formData) && utils$5.isFunction(formData.entries)) {
|
|
15012
15013
|
const obj = {};
|
|
15013
|
-
utils$5.forEachEntry(formData, (
|
|
15014
|
-
buildPath(parsePropPath(
|
|
15014
|
+
utils$5.forEachEntry(formData, (name, value) => {
|
|
15015
|
+
buildPath(parsePropPath(name), value, obj, 0);
|
|
15015
15016
|
});
|
|
15016
15017
|
return obj;
|
|
15017
15018
|
}
|
|
@@ -15151,23 +15152,23 @@ const ignoreDuplicateOf = utils$5.toObjectSet([
|
|
|
15151
15152
|
const parseHeaders = (rawHeaders) => {
|
|
15152
15153
|
const parsed = {};
|
|
15153
15154
|
let key2;
|
|
15154
|
-
let
|
|
15155
|
+
let val;
|
|
15155
15156
|
let i;
|
|
15156
15157
|
rawHeaders && rawHeaders.split("\n").forEach(function parser(line) {
|
|
15157
15158
|
i = line.indexOf(":");
|
|
15158
15159
|
key2 = line.substring(0, i).trim().toLowerCase();
|
|
15159
|
-
|
|
15160
|
+
val = line.substring(i + 1).trim();
|
|
15160
15161
|
if (!key2 || parsed[key2] && ignoreDuplicateOf[key2]) {
|
|
15161
15162
|
return;
|
|
15162
15163
|
}
|
|
15163
15164
|
if (key2 === "set-cookie") {
|
|
15164
15165
|
if (parsed[key2]) {
|
|
15165
|
-
parsed[key2].push(
|
|
15166
|
+
parsed[key2].push(val);
|
|
15166
15167
|
} else {
|
|
15167
|
-
parsed[key2] = [
|
|
15168
|
+
parsed[key2] = [val];
|
|
15168
15169
|
}
|
|
15169
15170
|
} else {
|
|
15170
|
-
parsed[key2] = parsed[key2] ? parsed[key2] + ", " +
|
|
15171
|
+
parsed[key2] = parsed[key2] ? parsed[key2] + ", " + val : val;
|
|
15171
15172
|
}
|
|
15172
15173
|
});
|
|
15173
15174
|
return parsed;
|
|
@@ -15419,9 +15420,9 @@ const cookies = platform.isStandardBrowserEnv ? (
|
|
|
15419
15420
|
// Standard browser envs support document.cookie
|
|
15420
15421
|
function standardBrowserEnv() {
|
|
15421
15422
|
return {
|
|
15422
|
-
write: function write(
|
|
15423
|
+
write: function write(name, value, expires, path2, domain, secure) {
|
|
15423
15424
|
const cookie = [];
|
|
15424
|
-
cookie.push(
|
|
15425
|
+
cookie.push(name + "=" + encodeURIComponent(value));
|
|
15425
15426
|
if (utils$5.isNumber(expires)) {
|
|
15426
15427
|
cookie.push("expires=" + new Date(expires).toGMTString());
|
|
15427
15428
|
}
|
|
@@ -15436,12 +15437,12 @@ const cookies = platform.isStandardBrowserEnv ? (
|
|
|
15436
15437
|
}
|
|
15437
15438
|
document.cookie = cookie.join("; ");
|
|
15438
15439
|
},
|
|
15439
|
-
read: function read(
|
|
15440
|
-
const match2 = document.cookie.match(new RegExp("(^|;\\s*)(" +
|
|
15440
|
+
read: function read(name) {
|
|
15441
|
+
const match2 = document.cookie.match(new RegExp("(^|;\\s*)(" + name + ")=([^;]*)"));
|
|
15441
15442
|
return match2 ? decodeURIComponent(match2[3]) : null;
|
|
15442
15443
|
},
|
|
15443
|
-
remove: function remove2(
|
|
15444
|
-
this.write(
|
|
15444
|
+
remove: function remove2(name) {
|
|
15445
|
+
this.write(name, "", Date.now() - 864e5);
|
|
15445
15446
|
}
|
|
15446
15447
|
};
|
|
15447
15448
|
}()
|
|
@@ -15672,8 +15673,8 @@ const xhrAdapter = isXHRAdapterSupported && function(config2) {
|
|
|
15672
15673
|
}
|
|
15673
15674
|
requestData === void 0 && requestHeaders.setContentType(null);
|
|
15674
15675
|
if ("setRequestHeader" in request) {
|
|
15675
|
-
utils$5.forEach(requestHeaders.toJSON(), function setRequestHeader(
|
|
15676
|
-
request.setRequestHeader(key2,
|
|
15676
|
+
utils$5.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key2) {
|
|
15677
|
+
request.setRequestHeader(key2, val);
|
|
15677
15678
|
});
|
|
15678
15679
|
}
|
|
15679
15680
|
if (!utils$5.isUndefined(config2.withCredentials)) {
|
|
@@ -16268,7 +16269,7 @@ axios.HttpStatusCode = HttpStatusCode$1;
|
|
|
16268
16269
|
axios.default = axios;
|
|
16269
16270
|
const axios$1 = axios;
|
|
16270
16271
|
function ImageUploader(props) {
|
|
16271
|
-
const { mergetagsData, unsplash } = useEditorProps();
|
|
16272
|
+
const { mergetagsData, unsplash, handleUploadClick } = useEditorProps();
|
|
16272
16273
|
const { pageDataVariables } = useEditorContext();
|
|
16273
16274
|
const { setLock } = useEditorState();
|
|
16274
16275
|
const [isUploading, setIsUploading] = useState(false);
|
|
@@ -16327,6 +16328,10 @@ function ImageUploader(props) {
|
|
|
16327
16328
|
}, [props.value]);
|
|
16328
16329
|
const onChange = props.onChange;
|
|
16329
16330
|
const onUpload = useCallback$1(() => {
|
|
16331
|
+
if (handleUploadClick) {
|
|
16332
|
+
handleUploadClick({ onChange });
|
|
16333
|
+
return;
|
|
16334
|
+
}
|
|
16330
16335
|
if (isUploading) {
|
|
16331
16336
|
return Message.warning("Uploading...");
|
|
16332
16337
|
}
|
|
@@ -16356,7 +16361,7 @@ function ImageUploader(props) {
|
|
|
16356
16361
|
}));
|
|
16357
16362
|
});
|
|
16358
16363
|
uploader.chooseFile();
|
|
16359
|
-
}, [isUploading, onCallbackImageDetail, onChange]);
|
|
16364
|
+
}, [handleUploadClick, isUploading, onCallbackImageDetail, onChange]);
|
|
16360
16365
|
const onPaste = useCallback$1(
|
|
16361
16366
|
(e) => __async(this, null, function* () {
|
|
16362
16367
|
if (!uploadHandlerRef.current)
|
|
@@ -16973,7 +16978,7 @@ const borderStyleOptions$1 = [
|
|
|
16973
16978
|
}
|
|
16974
16979
|
];
|
|
16975
16980
|
function Border(props) {
|
|
16976
|
-
const { label = t("Border"), path: path2, name
|
|
16981
|
+
const { label = t("Border"), path: path2, name } = props;
|
|
16977
16982
|
const { getFieldValue } = useEditorContext();
|
|
16978
16983
|
const editor = useSlate();
|
|
16979
16984
|
const source = Node$1.get(editor, props.path);
|
|
@@ -16981,23 +16986,23 @@ function Border(props) {
|
|
|
16981
16986
|
type: source.type,
|
|
16982
16987
|
path: props.path
|
|
16983
16988
|
});
|
|
16984
|
-
let isEnabledBorder = getFieldValue(path2, `${
|
|
16989
|
+
let isEnabledBorder = getFieldValue(path2, `${name}.border-enabled`);
|
|
16985
16990
|
if (isUndefined$1(isEnabledBorder)) {
|
|
16986
|
-
isEnabledBorder = get(defaultElement, `${
|
|
16991
|
+
isEnabledBorder = get(defaultElement, `${name}.border-enabled`);
|
|
16987
16992
|
}
|
|
16988
16993
|
return useMemo$1(() => {
|
|
16989
16994
|
return /* @__PURE__ */ React__default.createElement("div", null, /* @__PURE__ */ React__default.createElement(
|
|
16990
16995
|
AttributeField.SwitchField,
|
|
16991
16996
|
{
|
|
16992
16997
|
label,
|
|
16993
|
-
name: `${
|
|
16998
|
+
name: `${name}.border-enabled`,
|
|
16994
16999
|
path: path2
|
|
16995
17000
|
}
|
|
16996
17001
|
), /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, isEnabledBorder && /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
16997
17002
|
AttributeField.SelectField,
|
|
16998
17003
|
{
|
|
16999
17004
|
label: t("Style"),
|
|
17000
|
-
name: `${
|
|
17005
|
+
name: `${name}.border-style`,
|
|
17001
17006
|
path: path2,
|
|
17002
17007
|
options: borderStyleOptions$1
|
|
17003
17008
|
}
|
|
@@ -17007,7 +17012,7 @@ function Border(props) {
|
|
|
17007
17012
|
label: /* @__PURE__ */ React__default.createElement("div", null),
|
|
17008
17013
|
path: path2,
|
|
17009
17014
|
suffix: t("px"),
|
|
17010
|
-
name: `${
|
|
17015
|
+
name: `${name}.border-width`,
|
|
17011
17016
|
min: 1,
|
|
17012
17017
|
required: true
|
|
17013
17018
|
}
|
|
@@ -17016,10 +17021,10 @@ function Border(props) {
|
|
|
17016
17021
|
{
|
|
17017
17022
|
label: /* @__PURE__ */ React__default.createElement("div", null),
|
|
17018
17023
|
path: path2,
|
|
17019
|
-
name: `${
|
|
17024
|
+
name: `${name}.border-color`
|
|
17020
17025
|
}
|
|
17021
17026
|
))));
|
|
17022
|
-
}, [isEnabledBorder, label,
|
|
17027
|
+
}, [isEnabledBorder, label, name, path2]);
|
|
17023
17028
|
}
|
|
17024
17029
|
function FontFamily$1(props) {
|
|
17025
17030
|
const { fontList } = useFontFamily();
|
|
@@ -17066,8 +17071,8 @@ const renderUnderlineProps$1 = (active) => {
|
|
|
17066
17071
|
};
|
|
17067
17072
|
const underLineAdapter$1 = {
|
|
17068
17073
|
formatter(textDecoration) {
|
|
17069
|
-
const
|
|
17070
|
-
return
|
|
17074
|
+
const val = textDecoration;
|
|
17075
|
+
return val === "underline";
|
|
17071
17076
|
},
|
|
17072
17077
|
normalize(active) {
|
|
17073
17078
|
if (!active)
|
|
@@ -17181,10 +17186,10 @@ function FontWeight(props) {
|
|
|
17181
17186
|
);
|
|
17182
17187
|
}
|
|
17183
17188
|
const getFallbackValue = (params) => {
|
|
17184
|
-
const { mode, name
|
|
17189
|
+
const { mode, name, defaultElement } = params;
|
|
17185
17190
|
if (!defaultElement)
|
|
17186
17191
|
return void 0;
|
|
17187
|
-
return mode === ActiveTabKeys.DESKTOP ? get(defaultElement, "attributes." +
|
|
17192
|
+
return mode === ActiveTabKeys.DESKTOP ? get(defaultElement, "attributes." + name) : get(defaultElement, "mobileAttributes." + name);
|
|
17188
17193
|
};
|
|
17189
17194
|
function Typography(props) {
|
|
17190
17195
|
const { label = t("Font"), path: path2, defaultElement } = props;
|
|
@@ -17368,19 +17373,19 @@ function LineHeight(props) {
|
|
|
17368
17373
|
(unit2) => {
|
|
17369
17374
|
var _a3, _b;
|
|
17370
17375
|
if (unit2 === "px") {
|
|
17371
|
-
const
|
|
17376
|
+
const val = ((_a3 = value.toString()) == null ? void 0 : _a3.replace("%", "")) || "100";
|
|
17372
17377
|
setFieldValue(
|
|
17373
17378
|
props.path,
|
|
17374
17379
|
props.name,
|
|
17375
|
-
`${(+
|
|
17380
|
+
`${(+val / 100 * fontSize).toFixed(0)}px`
|
|
17376
17381
|
);
|
|
17377
17382
|
} else {
|
|
17378
|
-
const
|
|
17379
|
-
if (
|
|
17383
|
+
const val = (_b = value.toString()) == null ? void 0 : _b.replace("px", "");
|
|
17384
|
+
if (val) {
|
|
17380
17385
|
setFieldValue(
|
|
17381
17386
|
props.path,
|
|
17382
17387
|
props.name,
|
|
17383
|
-
(
|
|
17388
|
+
(val / fontSize * 100).toFixed(0) + "%"
|
|
17384
17389
|
);
|
|
17385
17390
|
} else {
|
|
17386
17391
|
setFieldValue(props.path, props.name, "120%");
|
|
@@ -17391,19 +17396,19 @@ function LineHeight(props) {
|
|
|
17391
17396
|
);
|
|
17392
17397
|
return useMemo$1(() => {
|
|
17393
17398
|
const adapter = {
|
|
17394
|
-
formatter(
|
|
17399
|
+
formatter(val) {
|
|
17395
17400
|
var _a3;
|
|
17396
|
-
if (!
|
|
17401
|
+
if (!val)
|
|
17397
17402
|
return void 0;
|
|
17398
|
-
|
|
17399
|
-
return +((_a3 =
|
|
17403
|
+
val = val.toString();
|
|
17404
|
+
return +((_a3 = val.replace("px", "")) == null ? void 0 : _a3.replace("%", ""));
|
|
17400
17405
|
},
|
|
17401
|
-
normalize(
|
|
17402
|
-
if (!isNumber$1(
|
|
17406
|
+
normalize(val) {
|
|
17407
|
+
if (!isNumber$1(val))
|
|
17403
17408
|
return void 0;
|
|
17404
|
-
if (!
|
|
17409
|
+
if (!val)
|
|
17405
17410
|
return void 0;
|
|
17406
|
-
return
|
|
17411
|
+
return val + unit;
|
|
17407
17412
|
}
|
|
17408
17413
|
};
|
|
17409
17414
|
return /* @__PURE__ */ React__default.createElement(Grid.Row, null, /* @__PURE__ */ React__default.createElement(Grid.Col, { span: 16, style: { textAlign: "right" } }, /* @__PURE__ */ React__default.createElement(
|
|
@@ -17698,8 +17703,8 @@ const renderItalicProps = (active) => {
|
|
|
17698
17703
|
};
|
|
17699
17704
|
const underLineAdapter = {
|
|
17700
17705
|
formatter(textDecoration) {
|
|
17701
|
-
const
|
|
17702
|
-
return
|
|
17706
|
+
const val = textDecoration;
|
|
17707
|
+
return val === "underline";
|
|
17703
17708
|
},
|
|
17704
17709
|
normalize(active) {
|
|
17705
17710
|
if (!active)
|
|
@@ -18340,14 +18345,14 @@ function ConditionItem({
|
|
|
18340
18345
|
gIndex,
|
|
18341
18346
|
ggIndex
|
|
18342
18347
|
}) {
|
|
18343
|
-
const
|
|
18344
|
-
const value = Form.useWatch(
|
|
18348
|
+
const name = `${path2}.${gIndex}.groups.${ggIndex}`;
|
|
18349
|
+
const value = Form.useWatch(name);
|
|
18345
18350
|
const hideRight = value.operator === ConditionOperator.TRUTHY || value.operator === ConditionOperator.FALSY;
|
|
18346
18351
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(Grid.Row, { align: "end" }, /* @__PURE__ */ React__default.createElement(Grid.Col, { span: 8 }, /* @__PURE__ */ React__default.createElement(
|
|
18347
18352
|
Form.Item,
|
|
18348
18353
|
{
|
|
18349
18354
|
label: t("Variable"),
|
|
18350
|
-
field: `${
|
|
18355
|
+
field: `${name}.left`,
|
|
18351
18356
|
layout: "vertical"
|
|
18352
18357
|
},
|
|
18353
18358
|
/* @__PURE__ */ React__default.createElement(Input, { placeholder: "customer.country" })
|
|
@@ -18355,7 +18360,7 @@ function ConditionItem({
|
|
|
18355
18360
|
Form.Item,
|
|
18356
18361
|
{
|
|
18357
18362
|
label: t("Operator"),
|
|
18358
|
-
field: `${
|
|
18363
|
+
field: `${name}.operator`,
|
|
18359
18364
|
layout: "vertical"
|
|
18360
18365
|
},
|
|
18361
18366
|
/* @__PURE__ */ React__default.createElement(Select$1, { options: options$4 }, options$4.map((item2) => {
|
|
@@ -18365,7 +18370,7 @@ function ConditionItem({
|
|
|
18365
18370
|
Form.Item,
|
|
18366
18371
|
{
|
|
18367
18372
|
label: t("Value"),
|
|
18368
|
-
field: `${
|
|
18373
|
+
field: `${name}.right`,
|
|
18369
18374
|
layout: "vertical"
|
|
18370
18375
|
},
|
|
18371
18376
|
/* @__PURE__ */ React__default.createElement(Input, { placeholder: "Canda" })
|
|
@@ -18553,7 +18558,7 @@ const borderStyleOptions = [
|
|
|
18553
18558
|
}
|
|
18554
18559
|
];
|
|
18555
18560
|
function DividerLine(props) {
|
|
18556
|
-
const { path: path2, name
|
|
18561
|
+
const { path: path2, name } = props;
|
|
18557
18562
|
return useMemo$1(() => {
|
|
18558
18563
|
return /* @__PURE__ */ React__default.createElement("div", null, /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
18559
18564
|
AttributeField.Width,
|
|
@@ -18561,7 +18566,7 @@ function DividerLine(props) {
|
|
|
18561
18566
|
label: t("Height"),
|
|
18562
18567
|
path: path2,
|
|
18563
18568
|
suffix: t("px"),
|
|
18564
|
-
name: `${
|
|
18569
|
+
name: `${name}.border-width`,
|
|
18565
18570
|
min: 1,
|
|
18566
18571
|
required: true
|
|
18567
18572
|
}
|
|
@@ -18569,7 +18574,7 @@ function DividerLine(props) {
|
|
|
18569
18574
|
AttributeField.SelectField,
|
|
18570
18575
|
{
|
|
18571
18576
|
label: t("Style"),
|
|
18572
|
-
name: `${
|
|
18577
|
+
name: `${name}.border-style`,
|
|
18573
18578
|
path: path2,
|
|
18574
18579
|
options: borderStyleOptions
|
|
18575
18580
|
}
|
|
@@ -18578,10 +18583,10 @@ function DividerLine(props) {
|
|
|
18578
18583
|
{
|
|
18579
18584
|
label: t("Color"),
|
|
18580
18585
|
path: path2,
|
|
18581
|
-
name: `${
|
|
18586
|
+
name: `${name}.border-color`
|
|
18582
18587
|
}
|
|
18583
18588
|
)));
|
|
18584
|
-
}, [
|
|
18589
|
+
}, [name, path2]);
|
|
18585
18590
|
}
|
|
18586
18591
|
function Link(props) {
|
|
18587
18592
|
const { label = t("URL") } = props;
|
|
@@ -18752,19 +18757,19 @@ function PixelAndPercentField(props) {
|
|
|
18752
18757
|
);
|
|
18753
18758
|
return useMemo$1(() => {
|
|
18754
18759
|
const adapter = {
|
|
18755
|
-
formatter(
|
|
18760
|
+
formatter(val) {
|
|
18756
18761
|
var _a3;
|
|
18757
|
-
if (!
|
|
18762
|
+
if (!val)
|
|
18758
18763
|
return void 0;
|
|
18759
|
-
|
|
18760
|
-
return +((_a3 =
|
|
18764
|
+
val = val.toString();
|
|
18765
|
+
return +((_a3 = val.replace("px", "")) == null ? void 0 : _a3.replace("%", ""));
|
|
18761
18766
|
},
|
|
18762
|
-
normalize(
|
|
18763
|
-
if (!isNumber$1(
|
|
18767
|
+
normalize(val) {
|
|
18768
|
+
if (!isNumber$1(val))
|
|
18764
18769
|
return void 0;
|
|
18765
|
-
if (!
|
|
18770
|
+
if (!val)
|
|
18766
18771
|
return void 0;
|
|
18767
|
-
return
|
|
18772
|
+
return val + unit;
|
|
18768
18773
|
}
|
|
18769
18774
|
};
|
|
18770
18775
|
return /* @__PURE__ */ React__default.createElement(Grid.Row, null, /* @__PURE__ */ React__default.createElement(Grid.Col, { span: 16, style: { textAlign: "right" } }, /* @__PURE__ */ React__default.createElement(
|
|
@@ -18812,9 +18817,9 @@ function ImageWidth(props) {
|
|
|
18812
18817
|
value === void 0 ? "Full" : "Fixed"
|
|
18813
18818
|
);
|
|
18814
18819
|
const onChangeWidthType = useCallback$1(
|
|
18815
|
-
(
|
|
18816
|
-
setWidthType(
|
|
18817
|
-
if (
|
|
18820
|
+
(val) => {
|
|
18821
|
+
setWidthType(val);
|
|
18822
|
+
if (val === "Full") {
|
|
18818
18823
|
setFieldValue(props.path, props.name, void 0);
|
|
18819
18824
|
}
|
|
18820
18825
|
},
|
|
@@ -18878,14 +18883,14 @@ const DirectionOptions = [
|
|
|
18878
18883
|
}
|
|
18879
18884
|
];
|
|
18880
18885
|
function Direction$1(props) {
|
|
18881
|
-
const _a2 = props, { path: path2, name
|
|
18886
|
+
const _a2 = props, { path: path2, name } = _a2, rest = __objRest(_a2, ["path", "name"]);
|
|
18882
18887
|
return useMemo$1(() => {
|
|
18883
18888
|
var _a3;
|
|
18884
18889
|
return /* @__PURE__ */ React__default.createElement("div", null, /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
18885
18890
|
AttributeField.ButtonGroupField,
|
|
18886
18891
|
__spreadProps(__spreadValues({
|
|
18887
18892
|
label: t("Direction"),
|
|
18888
|
-
name: `${
|
|
18893
|
+
name: `${name}.direction`,
|
|
18889
18894
|
path: path2,
|
|
18890
18895
|
options: DirectionOptions
|
|
18891
18896
|
}, rest), {
|
|
@@ -18896,7 +18901,7 @@ function Direction$1(props) {
|
|
|
18896
18901
|
})
|
|
18897
18902
|
})
|
|
18898
18903
|
)));
|
|
18899
|
-
}, [
|
|
18904
|
+
}, [name, path2, rest]);
|
|
18900
18905
|
}
|
|
18901
18906
|
var FieldType = /* @__PURE__ */ ((FieldType2) => {
|
|
18902
18907
|
FieldType2["PIXEL"] = "pixel";
|
|
@@ -19402,11 +19407,11 @@ const Page = ({ nodePath }) => {
|
|
|
19402
19407
|
)));
|
|
19403
19408
|
};
|
|
19404
19409
|
const buttonWidthAdapter = {
|
|
19405
|
-
formatter(
|
|
19406
|
-
return
|
|
19410
|
+
formatter(val) {
|
|
19411
|
+
return val === "100%" ? "100%" : "auto";
|
|
19407
19412
|
},
|
|
19408
|
-
normalize(
|
|
19409
|
-
return
|
|
19413
|
+
normalize(val) {
|
|
19414
|
+
return val === "100%" ? "100%" : void 0;
|
|
19410
19415
|
}
|
|
19411
19416
|
};
|
|
19412
19417
|
const Button = ({ nodePath }) => {
|
|
@@ -19531,11 +19536,11 @@ function AttributesContainer$9({
|
|
|
19531
19536
|
)));
|
|
19532
19537
|
}
|
|
19533
19538
|
const imageAdapter = {
|
|
19534
|
-
formatter(
|
|
19535
|
-
return Boolean(
|
|
19539
|
+
formatter(val) {
|
|
19540
|
+
return Boolean(val);
|
|
19536
19541
|
},
|
|
19537
|
-
normalize(
|
|
19538
|
-
return
|
|
19542
|
+
normalize(val) {
|
|
19543
|
+
return val ? "true" : void 0;
|
|
19539
19544
|
}
|
|
19540
19545
|
};
|
|
19541
19546
|
const Image$1 = ({ nodePath }) => {
|
|
@@ -20824,8 +20829,8 @@ function createAdjustmentFn(modifier) {
|
|
|
20824
20829
|
}, __spreadValues({}, object3));
|
|
20825
20830
|
};
|
|
20826
20831
|
}
|
|
20827
|
-
const
|
|
20828
|
-
const
|
|
20832
|
+
const add2 = /* @__PURE__ */ createAdjustmentFn(1);
|
|
20833
|
+
const subtract2 = /* @__PURE__ */ createAdjustmentFn(-1);
|
|
20829
20834
|
function hasViewportRelativeCoordinates(event) {
|
|
20830
20835
|
return "clientX" in event && "clientY" in event;
|
|
20831
20836
|
}
|
|
@@ -21679,7 +21684,7 @@ function getScrollElementRect(element) {
|
|
|
21679
21684
|
}
|
|
21680
21685
|
function getScrollOffsets(scrollableAncestors) {
|
|
21681
21686
|
return scrollableAncestors.reduce((acc, node) => {
|
|
21682
|
-
return
|
|
21687
|
+
return add2(acc, getScrollCoordinates(node));
|
|
21683
21688
|
}, defaultCoordinates);
|
|
21684
21689
|
}
|
|
21685
21690
|
function getScrollXOffset(scrollableAncestors) {
|
|
@@ -21920,7 +21925,7 @@ class KeyboardSensor {
|
|
|
21920
21925
|
currentCoordinates
|
|
21921
21926
|
});
|
|
21922
21927
|
if (newCoordinates) {
|
|
21923
|
-
const coordinatesDelta =
|
|
21928
|
+
const coordinatesDelta = subtract2(newCoordinates, currentCoordinates);
|
|
21924
21929
|
const scrollDelta = {
|
|
21925
21930
|
x: 0,
|
|
21926
21931
|
y: 0
|
|
@@ -21991,7 +21996,7 @@ class KeyboardSensor {
|
|
|
21991
21996
|
break;
|
|
21992
21997
|
}
|
|
21993
21998
|
}
|
|
21994
|
-
this.handleMove(event,
|
|
21999
|
+
this.handleMove(event, add2(subtract2(newCoordinates, this.referenceCoordinates), scrollDelta));
|
|
21995
22000
|
}
|
|
21996
22001
|
}
|
|
21997
22002
|
}
|
|
@@ -22167,7 +22172,7 @@ class AbstractPointerSensor {
|
|
|
22167
22172
|
return;
|
|
22168
22173
|
}
|
|
22169
22174
|
const coordinates = (_getEventCoordinates2 = getEventCoordinates(event)) != null ? _getEventCoordinates2 : defaultCoordinates;
|
|
22170
|
-
const delta =
|
|
22175
|
+
const delta = subtract2(initialCoordinates, coordinates);
|
|
22171
22176
|
if (!activated && activationConstraint) {
|
|
22172
22177
|
if (isDelayConstraint(activationConstraint)) {
|
|
22173
22178
|
if (hasExceededDistance(delta, activationConstraint.tolerance)) {
|
|
@@ -22814,7 +22819,7 @@ function useScrollOffsets(elements2) {
|
|
|
22814
22819
|
}, [handleScroll, elements2]);
|
|
22815
22820
|
return useMemo$1(() => {
|
|
22816
22821
|
if (elements2.length) {
|
|
22817
|
-
return scrollCoordinates ? Array.from(scrollCoordinates.values()).reduce((acc, coordinates) =>
|
|
22822
|
+
return scrollCoordinates ? Array.from(scrollCoordinates.values()).reduce((acc, coordinates) => add2(acc, coordinates), defaultCoordinates) : getScrollOffsets(elements2);
|
|
22818
22823
|
}
|
|
22819
22824
|
return defaultCoordinates;
|
|
22820
22825
|
}, [elements2, scrollCoordinates]);
|
|
@@ -22840,7 +22845,7 @@ function useScrollOffsetsDelta(scrollOffsets, dependencies) {
|
|
|
22840
22845
|
initialScrollOffsets.current = null;
|
|
22841
22846
|
}
|
|
22842
22847
|
}, [scrollOffsets]);
|
|
22843
|
-
return initialScrollOffsets.current ?
|
|
22848
|
+
return initialScrollOffsets.current ? subtract2(scrollOffsets, initialScrollOffsets.current) : defaultCoordinates;
|
|
22844
22849
|
}
|
|
22845
22850
|
function useSensorSetup(sensors) {
|
|
22846
22851
|
useEffect(
|
|
@@ -23414,11 +23419,11 @@ const DndContext = /* @__PURE__ */ memo(function DndContext2(_ref) {
|
|
|
23414
23419
|
scrollableAncestorRects,
|
|
23415
23420
|
windowRect
|
|
23416
23421
|
});
|
|
23417
|
-
const pointerCoordinates = activationCoordinates ?
|
|
23422
|
+
const pointerCoordinates = activationCoordinates ? add2(activationCoordinates, translate) : null;
|
|
23418
23423
|
const scrollOffsets = useScrollOffsets(scrollableAncestors);
|
|
23419
23424
|
const scrollAdjustment = useScrollOffsetsDelta(scrollOffsets);
|
|
23420
23425
|
const activeNodeScrollDelta = useScrollOffsetsDelta(scrollOffsets, [activeNodeRect]);
|
|
23421
|
-
const scrollAdjustedTranslate =
|
|
23426
|
+
const scrollAdjustedTranslate = add2(modifiedTranslate, scrollAdjustment);
|
|
23422
23427
|
const collisionRect = draggingNodeRect ? getAdjustedRect(draggingNodeRect, modifiedTranslate) : null;
|
|
23423
23428
|
const collisions = active && collisionRect ? collisionDetection({
|
|
23424
23429
|
active,
|
|
@@ -23429,7 +23434,7 @@ const DndContext = /* @__PURE__ */ memo(function DndContext2(_ref) {
|
|
|
23429
23434
|
}) : null;
|
|
23430
23435
|
const overId = getFirstCollision(collisions, "id");
|
|
23431
23436
|
const [over, setOver] = useState(null);
|
|
23432
|
-
const appliedTranslate = usesDragOverlay ? modifiedTranslate :
|
|
23437
|
+
const appliedTranslate = usesDragOverlay ? modifiedTranslate : add2(modifiedTranslate, activeNodeScrollDelta);
|
|
23433
23438
|
const transform = adjustScale(appliedTranslate, (_over$rect = over == null ? void 0 : over.rect) != null ? _over$rect : null, activeNodeRect);
|
|
23434
23439
|
const instantiateSensor = useCallback$1(
|
|
23435
23440
|
(event, _ref2) => {
|
|
@@ -26281,14 +26286,14 @@ function parseHotkey(hotkey, options2) {
|
|
|
26281
26286
|
if (optional) {
|
|
26282
26287
|
value = value.slice(0, -1);
|
|
26283
26288
|
}
|
|
26284
|
-
var
|
|
26285
|
-
var modifier = MODIFIERS[
|
|
26286
|
-
if (value.length > 1 && !modifier && !ALIASES[value] && !CODES[
|
|
26289
|
+
var name = toKeyName(value);
|
|
26290
|
+
var modifier = MODIFIERS[name];
|
|
26291
|
+
if (value.length > 1 && !modifier && !ALIASES[value] && !CODES[name]) {
|
|
26287
26292
|
throw new TypeError('Unknown modifier: "' + value + '"');
|
|
26288
26293
|
}
|
|
26289
26294
|
if (length2 === 1 || !modifier) {
|
|
26290
26295
|
if (byKey) {
|
|
26291
|
-
ret.key =
|
|
26296
|
+
ret.key = name;
|
|
26292
26297
|
} else {
|
|
26293
26298
|
ret.which = toKeyCode(value);
|
|
26294
26299
|
}
|
|
@@ -26336,15 +26341,15 @@ function compareHotkey(object3, event) {
|
|
|
26336
26341
|
}
|
|
26337
26342
|
return true;
|
|
26338
26343
|
}
|
|
26339
|
-
function toKeyCode(
|
|
26340
|
-
|
|
26341
|
-
var code = CODES[
|
|
26344
|
+
function toKeyCode(name) {
|
|
26345
|
+
name = toKeyName(name);
|
|
26346
|
+
var code = CODES[name] || name.toUpperCase().charCodeAt(0);
|
|
26342
26347
|
return code;
|
|
26343
26348
|
}
|
|
26344
|
-
function toKeyName(
|
|
26345
|
-
|
|
26346
|
-
|
|
26347
|
-
return
|
|
26349
|
+
function toKeyName(name) {
|
|
26350
|
+
name = name.toLowerCase();
|
|
26351
|
+
name = ALIASES[name] || name;
|
|
26352
|
+
return name;
|
|
26348
26353
|
}
|
|
26349
26354
|
lib$1.default = isHotkey;
|
|
26350
26355
|
lib$1.isHotkey = isHotkey;
|
|
@@ -26970,9 +26975,9 @@ const VariablesEditorField = () => {
|
|
|
26970
26975
|
[mergetagsData]
|
|
26971
26976
|
);
|
|
26972
26977
|
const onChange = useCallback$1(
|
|
26973
|
-
(
|
|
26978
|
+
(val) => {
|
|
26974
26979
|
try {
|
|
26975
|
-
setMergetagsData(JSON.parse(
|
|
26980
|
+
setMergetagsData(JSON.parse(val));
|
|
26976
26981
|
} catch (error2) {
|
|
26977
26982
|
console.error((error2 == null ? void 0 : error2.message) || error2);
|
|
26978
26983
|
}
|
|
@@ -27188,11 +27193,11 @@ var OverlayScrollbars = {
|
|
|
27188
27193
|
return {
|
|
27189
27194
|
_cssPrefixes: cssPrefixes,
|
|
27190
27195
|
_jsPrefixes: jsPrefixes,
|
|
27191
|
-
_cssProperty: function(
|
|
27192
|
-
var result = cssCache[
|
|
27193
|
-
if (cssCache[LEXICON.hOP](
|
|
27196
|
+
_cssProperty: function(name) {
|
|
27197
|
+
var result = cssCache[name];
|
|
27198
|
+
if (cssCache[LEXICON.hOP](name))
|
|
27194
27199
|
return result;
|
|
27195
|
-
var uppercasedName = firstLetterToUpper(
|
|
27200
|
+
var uppercasedName = firstLetterToUpper(name);
|
|
27196
27201
|
var elmStyle = document2.createElement("div")[LEXICON.s];
|
|
27197
27202
|
var resultPossibilities;
|
|
27198
27203
|
var i = 0;
|
|
@@ -27201,9 +27206,9 @@ var OverlayScrollbars = {
|
|
|
27201
27206
|
for (; i < cssPrefixes.length; i++) {
|
|
27202
27207
|
currVendorWithoutDashes = cssPrefixes[i].replace(/-/g, "");
|
|
27203
27208
|
resultPossibilities = [
|
|
27204
|
-
|
|
27209
|
+
name,
|
|
27205
27210
|
//transition
|
|
27206
|
-
cssPrefixes[i] +
|
|
27211
|
+
cssPrefixes[i] + name,
|
|
27207
27212
|
//-webkit-transition
|
|
27208
27213
|
currVendorWithoutDashes + uppercasedName,
|
|
27209
27214
|
//webkitTransition
|
|
@@ -27217,13 +27222,13 @@ var OverlayScrollbars = {
|
|
|
27217
27222
|
}
|
|
27218
27223
|
}
|
|
27219
27224
|
}
|
|
27220
|
-
cssCache[
|
|
27225
|
+
cssCache[name] = result;
|
|
27221
27226
|
return result;
|
|
27222
27227
|
},
|
|
27223
27228
|
_cssPropertyValue: function(property, values2, suffix2) {
|
|
27224
|
-
var
|
|
27225
|
-
var result = cssCache[
|
|
27226
|
-
if (cssCache[LEXICON.hOP](
|
|
27229
|
+
var name = property + " " + values2;
|
|
27230
|
+
var result = cssCache[name];
|
|
27231
|
+
if (cssCache[LEXICON.hOP](name))
|
|
27227
27232
|
return result;
|
|
27228
27233
|
var dummyStyle = document2.createElement("div")[LEXICON.s];
|
|
27229
27234
|
var possbleValues = values2.split(" ");
|
|
@@ -27241,17 +27246,17 @@ var OverlayScrollbars = {
|
|
|
27241
27246
|
}
|
|
27242
27247
|
}
|
|
27243
27248
|
}
|
|
27244
|
-
cssCache[
|
|
27249
|
+
cssCache[name] = result;
|
|
27245
27250
|
return result;
|
|
27246
27251
|
},
|
|
27247
|
-
_jsAPI: function(
|
|
27252
|
+
_jsAPI: function(name, isInterface, fallback) {
|
|
27248
27253
|
var i = 0;
|
|
27249
|
-
var result = jsCache[
|
|
27250
|
-
if (!jsCache[LEXICON.hOP](
|
|
27251
|
-
result = window2[
|
|
27254
|
+
var result = jsCache[name];
|
|
27255
|
+
if (!jsCache[LEXICON.hOP](name)) {
|
|
27256
|
+
result = window2[name];
|
|
27252
27257
|
for (; i < jsPrefixes[LEXICON.l]; i++)
|
|
27253
|
-
result = result || window2[(isInterface ? jsPrefixes[i] : jsPrefixes[i].toLowerCase()) + firstLetterToUpper(
|
|
27254
|
-
jsCache[
|
|
27258
|
+
result = result || window2[(isInterface ? jsPrefixes[i] : jsPrefixes[i].toLowerCase()) + firstLetterToUpper(name)];
|
|
27259
|
+
jsCache[name] = result;
|
|
27255
27260
|
}
|
|
27256
27261
|
return result || fallback;
|
|
27257
27262
|
}
|
|
@@ -27633,7 +27638,7 @@ var OverlayScrollbars = {
|
|
|
27633
27638
|
zoom: true
|
|
27634
27639
|
};
|
|
27635
27640
|
function extend2() {
|
|
27636
|
-
var src, copyIsArray, copy,
|
|
27641
|
+
var src, copyIsArray, copy, name, options2, clone2, target = arguments[0] || {}, i = 1, length2 = arguments[LEXICON.l], deep = false;
|
|
27637
27642
|
if (_type(target) == TYPES.b) {
|
|
27638
27643
|
deep = target;
|
|
27639
27644
|
target = arguments[1] || {};
|
|
@@ -27648,9 +27653,9 @@ var OverlayScrollbars = {
|
|
|
27648
27653
|
}
|
|
27649
27654
|
for (; i < length2; i++) {
|
|
27650
27655
|
if ((options2 = arguments[i]) != null) {
|
|
27651
|
-
for (
|
|
27652
|
-
src = target[
|
|
27653
|
-
copy = options2[
|
|
27656
|
+
for (name in options2) {
|
|
27657
|
+
src = target[name];
|
|
27658
|
+
copy = options2[name];
|
|
27654
27659
|
if (target === copy) {
|
|
27655
27660
|
continue;
|
|
27656
27661
|
}
|
|
@@ -27661,9 +27666,9 @@ var OverlayScrollbars = {
|
|
|
27661
27666
|
} else {
|
|
27662
27667
|
clone2 = src && isPlainObject2(src) ? src : {};
|
|
27663
27668
|
}
|
|
27664
|
-
target[
|
|
27669
|
+
target[name] = extend2(deep, clone2, copy);
|
|
27665
27670
|
} else if (copy !== undefined$1) {
|
|
27666
|
-
target[
|
|
27671
|
+
target[name] = copy;
|
|
27667
27672
|
}
|
|
27668
27673
|
}
|
|
27669
27674
|
}
|
|
@@ -27680,7 +27685,7 @@ var OverlayScrollbars = {
|
|
|
27680
27685
|
return _type(obj) == TYPES.f;
|
|
27681
27686
|
}
|
|
27682
27687
|
function isEmptyObject(obj) {
|
|
27683
|
-
for (var
|
|
27688
|
+
for (var name in obj)
|
|
27684
27689
|
return false;
|
|
27685
27690
|
return true;
|
|
27686
27691
|
}
|
|
@@ -27740,17 +27745,17 @@ var OverlayScrollbars = {
|
|
|
27740
27745
|
else
|
|
27741
27746
|
el.insertAdjacentElement(strategy, child.nodeType ? child : child[0]);
|
|
27742
27747
|
}
|
|
27743
|
-
function setCSSVal(el, prop2,
|
|
27748
|
+
function setCSSVal(el, prop2, val) {
|
|
27744
27749
|
try {
|
|
27745
27750
|
if (el[LEXICON.s][prop2] !== undefined$1)
|
|
27746
|
-
el[LEXICON.s][prop2] = parseCSSVal(prop2,
|
|
27751
|
+
el[LEXICON.s][prop2] = parseCSSVal(prop2, val);
|
|
27747
27752
|
} catch (e) {
|
|
27748
27753
|
}
|
|
27749
27754
|
}
|
|
27750
|
-
function parseCSSVal(prop2,
|
|
27751
|
-
if (!_cssNumber[prop2.toLowerCase()] && _type(
|
|
27752
|
-
|
|
27753
|
-
return
|
|
27755
|
+
function parseCSSVal(prop2, val) {
|
|
27756
|
+
if (!_cssNumber[prop2.toLowerCase()] && _type(val) == TYPES.n)
|
|
27757
|
+
val += "px";
|
|
27758
|
+
return val;
|
|
27754
27759
|
}
|
|
27755
27760
|
function startNextAnimationInQ(animObj, removeFromQ) {
|
|
27756
27761
|
var index2;
|
|
@@ -28095,19 +28100,19 @@ var OverlayScrollbars = {
|
|
|
28095
28100
|
});
|
|
28096
28101
|
},
|
|
28097
28102
|
//DOM NODE MANIPULATION / INFORMATION:
|
|
28098
|
-
css: function(styles2,
|
|
28103
|
+
css: function(styles2, val) {
|
|
28099
28104
|
var el;
|
|
28100
28105
|
var key2;
|
|
28101
28106
|
var cptStyle;
|
|
28102
28107
|
var getCptStyle = window2.getComputedStyle;
|
|
28103
28108
|
if (_type(styles2) == TYPES.s) {
|
|
28104
|
-
if (
|
|
28109
|
+
if (val === undefined$1) {
|
|
28105
28110
|
el = this[0];
|
|
28106
28111
|
cptStyle = getCptStyle ? getCptStyle(el, null) : el.currentStyle[styles2];
|
|
28107
28112
|
return getCptStyle ? cptStyle != null ? cptStyle.getPropertyValue(styles2) : el[LEXICON.s][styles2] : cptStyle;
|
|
28108
28113
|
} else {
|
|
28109
28114
|
return this.each(function() {
|
|
28110
|
-
setCSSVal(this, styles2,
|
|
28115
|
+
setCSSVal(this, styles2, val);
|
|
28111
28116
|
});
|
|
28112
28117
|
}
|
|
28113
28118
|
} else {
|
|
@@ -28516,17 +28521,17 @@ var OverlayScrollbars = {
|
|
|
28516
28521
|
var convert2 = function(template) {
|
|
28517
28522
|
var recursive = function(obj) {
|
|
28518
28523
|
var key2;
|
|
28519
|
-
var
|
|
28524
|
+
var val;
|
|
28520
28525
|
var valType;
|
|
28521
28526
|
for (key2 in obj) {
|
|
28522
28527
|
if (!obj[LEXICON.hOP](key2))
|
|
28523
28528
|
continue;
|
|
28524
|
-
|
|
28525
|
-
valType = type(
|
|
28529
|
+
val = obj[key2];
|
|
28530
|
+
valType = type(val);
|
|
28526
28531
|
if (valType == TYPES.a)
|
|
28527
|
-
obj[key2] =
|
|
28532
|
+
obj[key2] = val[template ? 1 : 0];
|
|
28528
28533
|
else if (valType == TYPES.o)
|
|
28529
|
-
obj[key2] = recursive(
|
|
28534
|
+
obj[key2] = recursive(val);
|
|
28530
28535
|
}
|
|
28531
28536
|
return obj;
|
|
28532
28537
|
};
|
|
@@ -29351,8 +29356,8 @@ var OverlayScrollbars = {
|
|
|
29351
29356
|
if (_domExists && mutationIsClass && !doUpdateForce) {
|
|
29352
29357
|
if (oldMutationVal.indexOf(_classNameHostElementForeign) > -1 && newClassVal.indexOf(_classNameHostElementForeign) < 0) {
|
|
29353
29358
|
hostClassNameRegex = createHostClassNameRegExp(true);
|
|
29354
|
-
_hostElementNative.className = newClassVal.split(_strSpace).concat(oldMutationVal.split(_strSpace).filter(function(
|
|
29355
|
-
return
|
|
29359
|
+
_hostElementNative.className = newClassVal.split(_strSpace).concat(oldMutationVal.split(_strSpace).filter(function(name) {
|
|
29360
|
+
return name.match(hostClassNameRegex);
|
|
29356
29361
|
})).join(_strSpace);
|
|
29357
29362
|
doUpdate = doUpdateForce = true;
|
|
29358
29363
|
}
|
|
@@ -29660,9 +29665,9 @@ var OverlayScrollbars = {
|
|
|
29660
29665
|
var checkX = _overflowBehaviorCache.x === _strS || _overflowBehaviorCache.x === _strVS;
|
|
29661
29666
|
var checkY = _overflowBehaviorCache.y === _strS || _overflowBehaviorCache.y === _strVS;
|
|
29662
29667
|
var sizeIsAffected = false;
|
|
29663
|
-
var checkPropertyName = function(arr,
|
|
29668
|
+
var checkPropertyName = function(arr, name) {
|
|
29664
29669
|
for (var i = 0; i < arr[LEXICON.l]; i++) {
|
|
29665
|
-
if (arr[i] ===
|
|
29670
|
+
if (arr[i] === name)
|
|
29666
29671
|
return true;
|
|
29667
29672
|
}
|
|
29668
29673
|
return false;
|
|
@@ -30733,8 +30738,8 @@ var OverlayScrollbars = {
|
|
|
30733
30738
|
function getPointerPosition(event) {
|
|
30734
30739
|
return _msieVersion && insideIFrame ? event["screen" + XY] : COMPATIBILITY.page(event)[xy];
|
|
30735
30740
|
}
|
|
30736
|
-
function getPreparedScrollbarsOption(
|
|
30737
|
-
return _currentPreparedOptions.scrollbars[
|
|
30741
|
+
function getPreparedScrollbarsOption(name) {
|
|
30742
|
+
return _currentPreparedOptions.scrollbars[name];
|
|
30738
30743
|
}
|
|
30739
30744
|
function increaseTrackScrollAmount() {
|
|
30740
30745
|
scrollDurationFactor = 0.5;
|
|
@@ -31179,12 +31184,12 @@ var OverlayScrollbars = {
|
|
|
31179
31184
|
}
|
|
31180
31185
|
});
|
|
31181
31186
|
}
|
|
31182
|
-
function dispatchCallback(
|
|
31187
|
+
function dispatchCallback(name, args, dependent) {
|
|
31183
31188
|
if (dependent === false)
|
|
31184
31189
|
return;
|
|
31185
31190
|
if (_initialized) {
|
|
31186
|
-
var callback = _currentPreparedOptions.callbacks[
|
|
31187
|
-
var extensionOnName =
|
|
31191
|
+
var callback = _currentPreparedOptions.callbacks[name];
|
|
31192
|
+
var extensionOnName = name;
|
|
31188
31193
|
var ext;
|
|
31189
31194
|
if (extensionOnName.substr(0, 2) === "on")
|
|
31190
31195
|
extensionOnName = extensionOnName.substr(2, 1).toLowerCase() + extensionOnName.substr(3);
|
|
@@ -31196,7 +31201,7 @@ var OverlayScrollbars = {
|
|
|
31196
31201
|
ext.on(extensionOnName, args);
|
|
31197
31202
|
});
|
|
31198
31203
|
} else if (!_destroyed)
|
|
31199
|
-
_callbacksInitQeueue.push({ n:
|
|
31204
|
+
_callbacksInitQeueue.push({ n: name, a: args });
|
|
31200
31205
|
}
|
|
31201
31206
|
function setTopRightBottomLeft(targetCSSObject, prefix2, values2) {
|
|
31202
31207
|
prefix2 = prefix2 || _strEmpty;
|
|
@@ -31366,24 +31371,24 @@ var OverlayScrollbars = {
|
|
|
31366
31371
|
function getObjectPropVal(obj, path2) {
|
|
31367
31372
|
var splits = path2.split(_strDot);
|
|
31368
31373
|
var i = 0;
|
|
31369
|
-
var
|
|
31374
|
+
var val;
|
|
31370
31375
|
for (; i < splits.length; i++) {
|
|
31371
31376
|
if (!obj[LEXICON.hOP](splits[i]))
|
|
31372
31377
|
return;
|
|
31373
|
-
|
|
31374
|
-
if (i < splits.length && type(
|
|
31375
|
-
obj =
|
|
31378
|
+
val = obj[splits[i]];
|
|
31379
|
+
if (i < splits.length && type(val) == TYPES.o)
|
|
31380
|
+
obj = val;
|
|
31376
31381
|
}
|
|
31377
|
-
return
|
|
31382
|
+
return val;
|
|
31378
31383
|
}
|
|
31379
|
-
function setObjectPropVal(obj, path2,
|
|
31384
|
+
function setObjectPropVal(obj, path2, val) {
|
|
31380
31385
|
var splits = path2.split(_strDot);
|
|
31381
31386
|
var splitsLength = splits.length;
|
|
31382
31387
|
var i = 0;
|
|
31383
31388
|
var extendObj = {};
|
|
31384
31389
|
var extendObjRoot = extendObj;
|
|
31385
31390
|
for (; i < splitsLength; i++)
|
|
31386
|
-
extendObj = extendObj[splits[i]] = i + 1 < splitsLength ? {} :
|
|
31391
|
+
extendObj = extendObj[splits[i]] = i + 1 < splitsLength ? {} : val;
|
|
31387
31392
|
FRAMEWORK.extend(obj, extendObjRoot, true);
|
|
31388
31393
|
}
|
|
31389
31394
|
function eachUpdateOnLoad(action2) {
|
|
@@ -32270,7 +32275,7 @@ function mergeHostClassNames(osInstance, className) {
|
|
|
32270
32275
|
if (OverlayScrollbarsExports.valid(osInstance)) {
|
|
32271
32276
|
const { host } = osInstance.getElements();
|
|
32272
32277
|
const regex = new RegExp(`(^os-host([-_].+|)$)|${osInstance.options().className.replace(/\s/g, "$|")}$`, "g");
|
|
32273
|
-
const osClassNames = host.className.split(" ").filter((
|
|
32278
|
+
const osClassNames = host.className.split(" ").filter((name) => name.match(regex)).join(" ");
|
|
32274
32279
|
host.className = `${osClassNames} ${className || ""}`;
|
|
32275
32280
|
}
|
|
32276
32281
|
}
|
|
@@ -32329,11 +32334,11 @@ const BgColor = () => {
|
|
|
32329
32334
|
var _a2;
|
|
32330
32335
|
(_a2 = ref2.current) == null ? void 0 : _a2.click();
|
|
32331
32336
|
};
|
|
32332
|
-
const onChange = (
|
|
32337
|
+
const onChange = (val) => {
|
|
32333
32338
|
Transforms.setNodes(
|
|
32334
32339
|
editor,
|
|
32335
32340
|
{
|
|
32336
|
-
[TextFormat.BACKGROUND_COLOR]:
|
|
32341
|
+
[TextFormat.BACKGROUND_COLOR]: val
|
|
32337
32342
|
},
|
|
32338
32343
|
{ match: Text$2.isText, split: true }
|
|
32339
32344
|
);
|
|
@@ -32401,11 +32406,11 @@ const FontColor = () => {
|
|
|
32401
32406
|
var _a2;
|
|
32402
32407
|
(_a2 = ref2.current) == null ? void 0 : _a2.click();
|
|
32403
32408
|
};
|
|
32404
|
-
const onChange = (
|
|
32409
|
+
const onChange = (val) => {
|
|
32405
32410
|
Transforms.setNodes(
|
|
32406
32411
|
editor,
|
|
32407
32412
|
{
|
|
32408
|
-
[TextFormat.TEXT_COLOR]:
|
|
32413
|
+
[TextFormat.TEXT_COLOR]: val
|
|
32409
32414
|
},
|
|
32410
32415
|
{ match: Text$2.isText, split: true }
|
|
32411
32416
|
);
|
|
@@ -32887,11 +32892,11 @@ const FontSize = () => {
|
|
|
32887
32892
|
}
|
|
32888
32893
|
return [...new Set(list)].sort().map((item2) => ({ label: item2, value: item2 }));
|
|
32889
32894
|
}, [fontSizeList, fontSizeValue]);
|
|
32890
|
-
const onChange = (
|
|
32895
|
+
const onChange = (val) => {
|
|
32891
32896
|
Transforms.setNodes(
|
|
32892
32897
|
editor,
|
|
32893
32898
|
{
|
|
32894
|
-
[TextFormat.FONT_SIZE]:
|
|
32899
|
+
[TextFormat.FONT_SIZE]: val
|
|
32895
32900
|
},
|
|
32896
32901
|
{ match: Text$2.isText, split: true }
|
|
32897
32902
|
);
|
|
@@ -32943,11 +32948,11 @@ const FontFamily = () => {
|
|
|
32943
32948
|
}
|
|
32944
32949
|
return list;
|
|
32945
32950
|
}, [fontFamilyValue, fontList]);
|
|
32946
|
-
const onChange = (
|
|
32951
|
+
const onChange = (val) => {
|
|
32947
32952
|
Transforms.setNodes(
|
|
32948
32953
|
editor,
|
|
32949
32954
|
{
|
|
32950
|
-
[TextFormat.FONT_FAMILY]:
|
|
32955
|
+
[TextFormat.FONT_FAMILY]: val
|
|
32951
32956
|
},
|
|
32952
32957
|
{ match: Text$2.isText, split: true }
|
|
32953
32958
|
);
|
|
@@ -32980,14 +32985,14 @@ const RichTextBar = ({ list }) => {
|
|
|
32980
32985
|
}) : null;
|
|
32981
32986
|
const mergetagNode = mergetagNodeEntry == null ? void 0 : mergetagNodeEntry[0];
|
|
32982
32987
|
const onSave = useCallback$1(
|
|
32983
|
-
(
|
|
32988
|
+
(val) => {
|
|
32984
32989
|
if (!mergetagNode)
|
|
32985
32990
|
return;
|
|
32986
32991
|
Transforms.setNodes(
|
|
32987
32992
|
editor,
|
|
32988
32993
|
{
|
|
32989
32994
|
data: {
|
|
32990
|
-
default:
|
|
32995
|
+
default: val
|
|
32991
32996
|
}
|
|
32992
32997
|
},
|
|
32993
32998
|
{
|
|
@@ -33300,7 +33305,7 @@ function requireEvEmitter() {
|
|
|
33300
33305
|
return evEmitterExports;
|
|
33301
33306
|
}
|
|
33302
33307
|
var getSizeExports = {};
|
|
33303
|
-
var
|
|
33308
|
+
var getSize2 = {
|
|
33304
33309
|
get exports() {
|
|
33305
33310
|
return getSizeExports;
|
|
33306
33311
|
},
|
|
@@ -33440,7 +33445,7 @@ function requireGetSize() {
|
|
|
33440
33445
|
}
|
|
33441
33446
|
return getSize3;
|
|
33442
33447
|
});
|
|
33443
|
-
})(
|
|
33448
|
+
})(getSize2);
|
|
33444
33449
|
return getSizeExports;
|
|
33445
33450
|
}
|
|
33446
33451
|
var utilsExports$1 = {};
|
|
@@ -35166,7 +35171,7 @@ function apply$1(func, thisArg, args) {
|
|
|
35166
35171
|
return func.apply(thisArg, args);
|
|
35167
35172
|
}
|
|
35168
35173
|
var _apply = apply$1;
|
|
35169
|
-
var
|
|
35174
|
+
var apply2 = _apply;
|
|
35170
35175
|
var nativeMax$1 = Math.max;
|
|
35171
35176
|
function overRest$2(func, start3, transform) {
|
|
35172
35177
|
start3 = nativeMax$1(start3 === void 0 ? func.length - 1 : start3, 0);
|
|
@@ -35181,7 +35186,7 @@ function overRest$2(func, start3, transform) {
|
|
|
35181
35186
|
otherArgs[index2] = args[index2];
|
|
35182
35187
|
}
|
|
35183
35188
|
otherArgs[start3] = transform(array2);
|
|
35184
|
-
return
|
|
35189
|
+
return apply2(func, this, otherArgs);
|
|
35185
35190
|
};
|
|
35186
35191
|
}
|
|
35187
35192
|
var _overRest = overRest$2;
|
|
@@ -35566,14 +35571,14 @@ var reporter = function(quiet) {
|
|
|
35566
35571
|
error: noop3
|
|
35567
35572
|
};
|
|
35568
35573
|
if (!quiet && window.console) {
|
|
35569
|
-
var attachFunction = function(reporter3,
|
|
35570
|
-
reporter3[
|
|
35571
|
-
var
|
|
35572
|
-
if (
|
|
35573
|
-
|
|
35574
|
+
var attachFunction = function(reporter3, name) {
|
|
35575
|
+
reporter3[name] = function reporterProxy() {
|
|
35576
|
+
var f = console[name];
|
|
35577
|
+
if (f.apply) {
|
|
35578
|
+
f.apply(console, arguments);
|
|
35574
35579
|
} else {
|
|
35575
35580
|
for (var i = 0; i < arguments.length; i++) {
|
|
35576
|
-
|
|
35581
|
+
f(arguments[i]);
|
|
35577
35582
|
}
|
|
35578
35583
|
}
|
|
35579
35584
|
};
|
|
@@ -35628,15 +35633,15 @@ var utils$2 = {
|
|
|
35628
35633
|
};
|
|
35629
35634
|
var utils$1 = utils$2.exports = {};
|
|
35630
35635
|
utils$1.getOption = getOption$1;
|
|
35631
|
-
function getOption$1(options2,
|
|
35632
|
-
var value = options2[
|
|
35636
|
+
function getOption$1(options2, name, defaultValue2) {
|
|
35637
|
+
var value = options2[name];
|
|
35633
35638
|
if ((value === void 0 || value === null) && defaultValue2 !== void 0) {
|
|
35634
35639
|
return defaultValue2;
|
|
35635
35640
|
}
|
|
35636
35641
|
return value;
|
|
35637
35642
|
}
|
|
35638
35643
|
var utils = utilsExports;
|
|
35639
|
-
var batchProcessor = function
|
|
35644
|
+
var batchProcessor = function batchProcessorMaker(options2) {
|
|
35640
35645
|
options2 = options2 || {};
|
|
35641
35646
|
var reporter2 = options2.reporter;
|
|
35642
35647
|
var asyncProcess = utils.getOption(options2, "async", true);
|
|
@@ -35906,7 +35911,7 @@ var object = function(options2) {
|
|
|
35906
35911
|
};
|
|
35907
35912
|
};
|
|
35908
35913
|
var forEach$1 = collectionUtilsExports.forEach;
|
|
35909
|
-
var
|
|
35914
|
+
var scroll2 = function(options2) {
|
|
35910
35915
|
options2 = options2 || {};
|
|
35911
35916
|
var reporter2 = options2.reporter;
|
|
35912
35917
|
var batchProcessor2 = options2.batchProcessor;
|
|
@@ -35972,20 +35977,20 @@ var scroll = function(options2) {
|
|
|
35972
35977
|
function addAnimationClass(element) {
|
|
35973
35978
|
element.className += " " + detectionContainerClass + "_animation_active";
|
|
35974
35979
|
}
|
|
35975
|
-
function addEvent(el,
|
|
35980
|
+
function addEvent(el, name, cb) {
|
|
35976
35981
|
if (el.addEventListener) {
|
|
35977
|
-
el.addEventListener(
|
|
35982
|
+
el.addEventListener(name, cb);
|
|
35978
35983
|
} else if (el.attachEvent) {
|
|
35979
|
-
el.attachEvent("on" +
|
|
35984
|
+
el.attachEvent("on" + name, cb);
|
|
35980
35985
|
} else {
|
|
35981
35986
|
return reporter2.error("[scroll] Don't know how to add event listeners.");
|
|
35982
35987
|
}
|
|
35983
35988
|
}
|
|
35984
|
-
function removeEvent(el,
|
|
35989
|
+
function removeEvent(el, name, cb) {
|
|
35985
35990
|
if (el.removeEventListener) {
|
|
35986
|
-
el.removeEventListener(
|
|
35991
|
+
el.removeEventListener(name, cb);
|
|
35987
35992
|
} else if (el.detachEvent) {
|
|
35988
|
-
el.detachEvent("on" +
|
|
35993
|
+
el.detachEvent("on" + name, cb);
|
|
35989
35994
|
} else {
|
|
35990
35995
|
return reporter2.error("[scroll] Don't know how to remove event listeners.");
|
|
35991
35996
|
}
|
|
@@ -36392,10 +36397,10 @@ var idGeneratorMaker = idGenerator;
|
|
|
36392
36397
|
var idHandlerMaker = idHandler;
|
|
36393
36398
|
var reporterMaker = reporter;
|
|
36394
36399
|
var browserDetector = browserDetectorExports;
|
|
36395
|
-
var
|
|
36400
|
+
var batchProcessorMaker2 = batchProcessor;
|
|
36396
36401
|
var stateHandler = stateHandler$1;
|
|
36397
36402
|
var objectStrategyMaker = object;
|
|
36398
|
-
var scrollStrategyMaker =
|
|
36403
|
+
var scrollStrategyMaker = scroll2;
|
|
36399
36404
|
function isCollection(obj) {
|
|
36400
36405
|
return Array.isArray(obj) || obj.length !== void 0;
|
|
36401
36406
|
}
|
|
@@ -36436,7 +36441,7 @@ var elementResizeDetector = function(options2) {
|
|
|
36436
36441
|
var quiet = reporter2 === false;
|
|
36437
36442
|
reporter2 = reporterMaker(quiet);
|
|
36438
36443
|
}
|
|
36439
|
-
var batchProcessor2 = getOption(options2, "batchProcessor",
|
|
36444
|
+
var batchProcessor2 = getOption(options2, "batchProcessor", batchProcessorMaker2({ reporter: reporter2 }));
|
|
36440
36445
|
var globalOptions = {};
|
|
36441
36446
|
globalOptions.callOnAdd = !!getOption(options2, "callOnAdd", true);
|
|
36442
36447
|
globalOptions.debug = !!getOption(options2, "debug", false);
|
|
@@ -36596,8 +36601,8 @@ var elementResizeDetector = function(options2) {
|
|
|
36596
36601
|
initDocument
|
|
36597
36602
|
};
|
|
36598
36603
|
};
|
|
36599
|
-
function getOption(options2,
|
|
36600
|
-
var value = options2[
|
|
36604
|
+
function getOption(options2, name, defaultValue2) {
|
|
36605
|
+
var value = options2[name];
|
|
36601
36606
|
if ((value === void 0 || value === null) && defaultValue2 !== void 0) {
|
|
36602
36607
|
return defaultValue2;
|
|
36603
36608
|
}
|
|
@@ -37629,14 +37634,14 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
37629
37634
|
}
|
|
37630
37635
|
};
|
|
37631
37636
|
}
|
|
37632
|
-
function _invariant(condition, format, a, b, c, d, e,
|
|
37637
|
+
function _invariant(condition, format, a, b, c, d, e, f) {
|
|
37633
37638
|
validateFormat(format);
|
|
37634
37639
|
if (!condition) {
|
|
37635
37640
|
var error2;
|
|
37636
37641
|
if (format === void 0) {
|
|
37637
37642
|
error2 = new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");
|
|
37638
37643
|
} else {
|
|
37639
|
-
var args = [a, b, c, d, e,
|
|
37644
|
+
var args = [a, b, c, d, e, f];
|
|
37640
37645
|
var argIndex = 0;
|
|
37641
37646
|
error2 = new Error(format.replace(/%s/g, function() {
|
|
37642
37647
|
return args[argIndex++];
|
|
@@ -38000,20 +38005,20 @@ function factory$1(ReactComponent, isValidElement, ReactNoopUpdateQueue2) {
|
|
|
38000
38005
|
}
|
|
38001
38006
|
}
|
|
38002
38007
|
}
|
|
38003
|
-
function validateMethodOverride(isAlreadyDefined,
|
|
38004
|
-
var specPolicy = ReactClassInterface.hasOwnProperty(
|
|
38005
|
-
if (ReactClassMixin.hasOwnProperty(
|
|
38008
|
+
function validateMethodOverride(isAlreadyDefined, name) {
|
|
38009
|
+
var specPolicy = ReactClassInterface.hasOwnProperty(name) ? ReactClassInterface[name] : null;
|
|
38010
|
+
if (ReactClassMixin.hasOwnProperty(name)) {
|
|
38006
38011
|
_invariant(
|
|
38007
38012
|
specPolicy === "OVERRIDE_BASE",
|
|
38008
38013
|
"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",
|
|
38009
|
-
|
|
38014
|
+
name
|
|
38010
38015
|
);
|
|
38011
38016
|
}
|
|
38012
38017
|
if (isAlreadyDefined) {
|
|
38013
38018
|
_invariant(
|
|
38014
38019
|
specPolicy === "DEFINE_MANY" || specPolicy === "DEFINE_MANY_MERGED",
|
|
38015
38020
|
"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",
|
|
38016
|
-
|
|
38021
|
+
name
|
|
38017
38022
|
);
|
|
38018
38023
|
}
|
|
38019
38024
|
}
|
|
@@ -38046,44 +38051,44 @@ function factory$1(ReactComponent, isValidElement, ReactNoopUpdateQueue2) {
|
|
|
38046
38051
|
if (spec.hasOwnProperty(MIXINS_KEY)) {
|
|
38047
38052
|
RESERVED_SPEC_KEYS.mixins(Constructor, spec.mixins);
|
|
38048
38053
|
}
|
|
38049
|
-
for (var
|
|
38050
|
-
if (!spec.hasOwnProperty(
|
|
38054
|
+
for (var name in spec) {
|
|
38055
|
+
if (!spec.hasOwnProperty(name)) {
|
|
38051
38056
|
continue;
|
|
38052
38057
|
}
|
|
38053
|
-
if (
|
|
38058
|
+
if (name === MIXINS_KEY) {
|
|
38054
38059
|
continue;
|
|
38055
38060
|
}
|
|
38056
|
-
var property = spec[
|
|
38057
|
-
var isAlreadyDefined = proto.hasOwnProperty(
|
|
38058
|
-
validateMethodOverride(isAlreadyDefined,
|
|
38059
|
-
if (RESERVED_SPEC_KEYS.hasOwnProperty(
|
|
38060
|
-
RESERVED_SPEC_KEYS[
|
|
38061
|
+
var property = spec[name];
|
|
38062
|
+
var isAlreadyDefined = proto.hasOwnProperty(name);
|
|
38063
|
+
validateMethodOverride(isAlreadyDefined, name);
|
|
38064
|
+
if (RESERVED_SPEC_KEYS.hasOwnProperty(name)) {
|
|
38065
|
+
RESERVED_SPEC_KEYS[name](Constructor, property);
|
|
38061
38066
|
} else {
|
|
38062
|
-
var isReactClassMethod = ReactClassInterface.hasOwnProperty(
|
|
38067
|
+
var isReactClassMethod = ReactClassInterface.hasOwnProperty(name);
|
|
38063
38068
|
var isFunction2 = typeof property === "function";
|
|
38064
38069
|
var shouldAutoBind = isFunction2 && !isReactClassMethod && !isAlreadyDefined && spec.autobind !== false;
|
|
38065
38070
|
if (shouldAutoBind) {
|
|
38066
|
-
autoBindPairs.push(
|
|
38067
|
-
proto[
|
|
38071
|
+
autoBindPairs.push(name, property);
|
|
38072
|
+
proto[name] = property;
|
|
38068
38073
|
} else {
|
|
38069
38074
|
if (isAlreadyDefined) {
|
|
38070
|
-
var specPolicy = ReactClassInterface[
|
|
38075
|
+
var specPolicy = ReactClassInterface[name];
|
|
38071
38076
|
_invariant(
|
|
38072
38077
|
isReactClassMethod && (specPolicy === "DEFINE_MANY_MERGED" || specPolicy === "DEFINE_MANY"),
|
|
38073
38078
|
"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",
|
|
38074
38079
|
specPolicy,
|
|
38075
|
-
|
|
38080
|
+
name
|
|
38076
38081
|
);
|
|
38077
38082
|
if (specPolicy === "DEFINE_MANY_MERGED") {
|
|
38078
|
-
proto[
|
|
38083
|
+
proto[name] = createMergedResultFunction(proto[name], property);
|
|
38079
38084
|
} else if (specPolicy === "DEFINE_MANY") {
|
|
38080
|
-
proto[
|
|
38085
|
+
proto[name] = createChainedFunction(proto[name], property);
|
|
38081
38086
|
}
|
|
38082
38087
|
} else {
|
|
38083
|
-
proto[
|
|
38088
|
+
proto[name] = property;
|
|
38084
38089
|
if (process.env.NODE_ENV !== "production") {
|
|
38085
38090
|
if (typeof property === "function" && spec.displayName) {
|
|
38086
|
-
proto[
|
|
38091
|
+
proto[name].displayName = spec.displayName + "_" + name;
|
|
38087
38092
|
}
|
|
38088
38093
|
}
|
|
38089
38094
|
}
|
|
@@ -38095,29 +38100,29 @@ function factory$1(ReactComponent, isValidElement, ReactNoopUpdateQueue2) {
|
|
|
38095
38100
|
if (!statics) {
|
|
38096
38101
|
return;
|
|
38097
38102
|
}
|
|
38098
|
-
for (var
|
|
38099
|
-
var property = statics[
|
|
38100
|
-
if (!statics.hasOwnProperty(
|
|
38103
|
+
for (var name in statics) {
|
|
38104
|
+
var property = statics[name];
|
|
38105
|
+
if (!statics.hasOwnProperty(name)) {
|
|
38101
38106
|
continue;
|
|
38102
38107
|
}
|
|
38103
|
-
var isReserved =
|
|
38108
|
+
var isReserved = name in RESERVED_SPEC_KEYS;
|
|
38104
38109
|
_invariant(
|
|
38105
38110
|
!isReserved,
|
|
38106
38111
|
'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',
|
|
38107
|
-
|
|
38112
|
+
name
|
|
38108
38113
|
);
|
|
38109
|
-
var isAlreadyDefined =
|
|
38114
|
+
var isAlreadyDefined = name in Constructor;
|
|
38110
38115
|
if (isAlreadyDefined) {
|
|
38111
|
-
var specPolicy = ReactClassStaticInterface.hasOwnProperty(
|
|
38116
|
+
var specPolicy = ReactClassStaticInterface.hasOwnProperty(name) ? ReactClassStaticInterface[name] : null;
|
|
38112
38117
|
_invariant(
|
|
38113
38118
|
specPolicy === "DEFINE_MANY_MERGED",
|
|
38114
38119
|
"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",
|
|
38115
|
-
|
|
38120
|
+
name
|
|
38116
38121
|
);
|
|
38117
|
-
Constructor[
|
|
38122
|
+
Constructor[name] = createMergedResultFunction(Constructor[name], property);
|
|
38118
38123
|
return;
|
|
38119
38124
|
}
|
|
38120
|
-
Constructor[
|
|
38125
|
+
Constructor[name] = property;
|
|
38121
38126
|
}
|
|
38122
38127
|
}
|
|
38123
38128
|
function mergeIntoWithNoDuplicateKeys(one, two) {
|
|
@@ -39996,12 +40001,12 @@ var niceErrors = {
|
|
|
39996
40001
|
24: function _6(thing) {
|
|
39997
40002
|
return "Cannot obtain administration from " + thing;
|
|
39998
40003
|
},
|
|
39999
|
-
25: function _7(property,
|
|
40000
|
-
return "the entry '" + property + "' does not exist in the observable map '" +
|
|
40004
|
+
25: function _7(property, name) {
|
|
40005
|
+
return "the entry '" + property + "' does not exist in the observable map '" + name + "'";
|
|
40001
40006
|
},
|
|
40002
40007
|
26: "please specify a property",
|
|
40003
|
-
27: function _8(property,
|
|
40004
|
-
return "no observable property '" + property.toString() + "' found on the observable object '" +
|
|
40008
|
+
27: function _8(property, name) {
|
|
40009
|
+
return "no observable property '" + property.toString() + "' found on the observable object '" + name + "'";
|
|
40005
40010
|
},
|
|
40006
40011
|
28: function _9(thing) {
|
|
40007
40012
|
return "Cannot obtain atom from " + thing;
|
|
@@ -40009,14 +40014,14 @@ var niceErrors = {
|
|
|
40009
40014
|
29: "Expecting some object",
|
|
40010
40015
|
30: "invalid action stack. did you forget to finish an action?",
|
|
40011
40016
|
31: "missing option for computed: get",
|
|
40012
|
-
32: function _10(
|
|
40013
|
-
return "Cycle detected in computation " +
|
|
40017
|
+
32: function _10(name, derivation) {
|
|
40018
|
+
return "Cycle detected in computation " + name + ": " + derivation;
|
|
40014
40019
|
},
|
|
40015
|
-
33: function _11(
|
|
40016
|
-
return "The setter of computed value '" +
|
|
40020
|
+
33: function _11(name) {
|
|
40021
|
+
return "The setter of computed value '" + name + "' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?";
|
|
40017
40022
|
},
|
|
40018
|
-
34: function _12(
|
|
40019
|
-
return "[ComputedValue '" +
|
|
40023
|
+
34: function _12(name) {
|
|
40024
|
+
return "[ComputedValue '" + name + "'] It is not possible to assign a new value to a computed value.";
|
|
40020
40025
|
},
|
|
40021
40026
|
35: "There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`",
|
|
40022
40027
|
36: "isolateGlobalState should be called before MobX is running any reactions",
|
|
@@ -40143,8 +40148,8 @@ function addHiddenFinalProp(object3, propName, value) {
|
|
|
40143
40148
|
value
|
|
40144
40149
|
});
|
|
40145
40150
|
}
|
|
40146
|
-
function createInstanceofPredicate(
|
|
40147
|
-
var propName = "isMobX" +
|
|
40151
|
+
function createInstanceofPredicate(name, theClass) {
|
|
40152
|
+
var propName = "isMobX" + name;
|
|
40148
40153
|
theClass.prototype[propName] = true;
|
|
40149
40154
|
return function(x) {
|
|
40150
40155
|
return isObject(x) && x[propName] === true;
|
|
@@ -40374,14 +40379,14 @@ var Atom = /* @__PURE__ */ function() {
|
|
|
40374
40379
|
return Atom2;
|
|
40375
40380
|
}();
|
|
40376
40381
|
var isAtom = /* @__PURE__ */ createInstanceofPredicate("Atom", Atom);
|
|
40377
|
-
function createAtom(
|
|
40382
|
+
function createAtom(name, onBecomeObservedHandler, onBecomeUnobservedHandler) {
|
|
40378
40383
|
if (onBecomeObservedHandler === void 0) {
|
|
40379
40384
|
onBecomeObservedHandler = noop;
|
|
40380
40385
|
}
|
|
40381
40386
|
if (onBecomeUnobservedHandler === void 0) {
|
|
40382
40387
|
onBecomeUnobservedHandler = noop;
|
|
40383
40388
|
}
|
|
40384
|
-
var atom = new Atom(
|
|
40389
|
+
var atom = new Atom(name);
|
|
40385
40390
|
if (onBecomeObservedHandler !== noop) {
|
|
40386
40391
|
onBecomeObserved(atom, onBecomeObservedHandler);
|
|
40387
40392
|
}
|
|
@@ -40411,40 +40416,40 @@ var comparer = {
|
|
|
40411
40416
|
"default": defaultComparer,
|
|
40412
40417
|
shallow: shallowComparer
|
|
40413
40418
|
};
|
|
40414
|
-
function deepEnhancer(v, _14,
|
|
40419
|
+
function deepEnhancer(v, _14, name) {
|
|
40415
40420
|
if (isObservable(v)) {
|
|
40416
40421
|
return v;
|
|
40417
40422
|
}
|
|
40418
40423
|
if (Array.isArray(v)) {
|
|
40419
40424
|
return observable.array(v, {
|
|
40420
|
-
name
|
|
40425
|
+
name
|
|
40421
40426
|
});
|
|
40422
40427
|
}
|
|
40423
40428
|
if (isPlainObject(v)) {
|
|
40424
40429
|
return observable.object(v, void 0, {
|
|
40425
|
-
name
|
|
40430
|
+
name
|
|
40426
40431
|
});
|
|
40427
40432
|
}
|
|
40428
40433
|
if (isES6Map(v)) {
|
|
40429
40434
|
return observable.map(v, {
|
|
40430
|
-
name
|
|
40435
|
+
name
|
|
40431
40436
|
});
|
|
40432
40437
|
}
|
|
40433
40438
|
if (isES6Set(v)) {
|
|
40434
40439
|
return observable.set(v, {
|
|
40435
|
-
name
|
|
40440
|
+
name
|
|
40436
40441
|
});
|
|
40437
40442
|
}
|
|
40438
40443
|
if (typeof v === "function" && !isAction(v) && !isFlow(v)) {
|
|
40439
40444
|
if (isGenerator(v)) {
|
|
40440
40445
|
return flow(v);
|
|
40441
40446
|
} else {
|
|
40442
|
-
return autoAction(
|
|
40447
|
+
return autoAction(name, v);
|
|
40443
40448
|
}
|
|
40444
40449
|
}
|
|
40445
40450
|
return v;
|
|
40446
40451
|
}
|
|
40447
|
-
function shallowEnhancer(v, _14,
|
|
40452
|
+
function shallowEnhancer(v, _14, name) {
|
|
40448
40453
|
if (v === void 0 || v === null) {
|
|
40449
40454
|
return v;
|
|
40450
40455
|
}
|
|
@@ -40453,25 +40458,25 @@ function shallowEnhancer(v, _14, name2) {
|
|
|
40453
40458
|
}
|
|
40454
40459
|
if (Array.isArray(v)) {
|
|
40455
40460
|
return observable.array(v, {
|
|
40456
|
-
name
|
|
40461
|
+
name,
|
|
40457
40462
|
deep: false
|
|
40458
40463
|
});
|
|
40459
40464
|
}
|
|
40460
40465
|
if (isPlainObject(v)) {
|
|
40461
40466
|
return observable.object(v, void 0, {
|
|
40462
|
-
name
|
|
40467
|
+
name,
|
|
40463
40468
|
deep: false
|
|
40464
40469
|
});
|
|
40465
40470
|
}
|
|
40466
40471
|
if (isES6Map(v)) {
|
|
40467
40472
|
return observable.map(v, {
|
|
40468
|
-
name
|
|
40473
|
+
name,
|
|
40469
40474
|
deep: false
|
|
40470
40475
|
});
|
|
40471
40476
|
}
|
|
40472
40477
|
if (isES6Set(v)) {
|
|
40473
40478
|
return observable.set(v, {
|
|
40474
|
-
name
|
|
40479
|
+
name,
|
|
40475
40480
|
deep: false
|
|
40476
40481
|
});
|
|
40477
40482
|
}
|
|
@@ -40495,9 +40500,9 @@ var OVERRIDE = "override";
|
|
|
40495
40500
|
function isOverride(annotation) {
|
|
40496
40501
|
return annotation.annotationType_ === OVERRIDE;
|
|
40497
40502
|
}
|
|
40498
|
-
function createActionAnnotation(
|
|
40503
|
+
function createActionAnnotation(name, options2) {
|
|
40499
40504
|
return {
|
|
40500
|
-
annotationType_:
|
|
40505
|
+
annotationType_: name,
|
|
40501
40506
|
options_: options2,
|
|
40502
40507
|
make_: make_$1,
|
|
40503
40508
|
extend_: extend_$1
|
|
@@ -40558,9 +40563,9 @@ function createActionDescriptor(adm, annotation, key2, descriptor, safeDescripto
|
|
|
40558
40563
|
writable: safeDescriptors ? false : true
|
|
40559
40564
|
};
|
|
40560
40565
|
}
|
|
40561
|
-
function createFlowAnnotation(
|
|
40566
|
+
function createFlowAnnotation(name, options2) {
|
|
40562
40567
|
return {
|
|
40563
|
-
annotationType_:
|
|
40568
|
+
annotationType_: name,
|
|
40564
40569
|
options_: options2,
|
|
40565
40570
|
make_: make_$2,
|
|
40566
40571
|
extend_: extend_$2
|
|
@@ -40621,9 +40626,9 @@ function createFlowDescriptor(adm, annotation, key2, descriptor, bound, safeDesc
|
|
|
40621
40626
|
writable: safeDescriptors ? false : true
|
|
40622
40627
|
};
|
|
40623
40628
|
}
|
|
40624
|
-
function createComputedAnnotation(
|
|
40629
|
+
function createComputedAnnotation(name, options2) {
|
|
40625
40630
|
return {
|
|
40626
|
-
annotationType_:
|
|
40631
|
+
annotationType_: name,
|
|
40627
40632
|
options_: options2,
|
|
40628
40633
|
make_: make_$3,
|
|
40629
40634
|
extend_: extend_$3
|
|
@@ -40646,9 +40651,9 @@ function assertComputedDescriptor(adm, _ref, key2, _ref2) {
|
|
|
40646
40651
|
die("Cannot apply '" + annotationType_ + "' to '" + adm.name_ + "." + key2.toString() + "':" + ("\n'" + annotationType_ + "' can only be used on getter(+setter) properties."));
|
|
40647
40652
|
}
|
|
40648
40653
|
}
|
|
40649
|
-
function createObservableAnnotation(
|
|
40654
|
+
function createObservableAnnotation(name, options2) {
|
|
40650
40655
|
return {
|
|
40651
|
-
annotationType_:
|
|
40656
|
+
annotationType_: name,
|
|
40652
40657
|
options_: options2,
|
|
40653
40658
|
make_: make_$4,
|
|
40654
40659
|
extend_: extend_$4
|
|
@@ -41375,7 +41380,7 @@ function checkIfStateReadsAreAllowed(observable2) {
|
|
|
41375
41380
|
console.warn("[mobx] Observable '" + observable2.name_ + "' being read outside a reactive context.");
|
|
41376
41381
|
}
|
|
41377
41382
|
}
|
|
41378
|
-
function trackDerivedFunction(derivation,
|
|
41383
|
+
function trackDerivedFunction(derivation, f, context) {
|
|
41379
41384
|
var prevAllowStateReads = allowStateReadsStart(true);
|
|
41380
41385
|
changeDependenciesStateTo0(derivation);
|
|
41381
41386
|
derivation.newObserving_ = new Array(derivation.observing_.length + 100);
|
|
@@ -41386,10 +41391,10 @@ function trackDerivedFunction(derivation, f2, context) {
|
|
|
41386
41391
|
globalState.inBatch++;
|
|
41387
41392
|
var result;
|
|
41388
41393
|
if (globalState.disableErrorBoundaries === true) {
|
|
41389
|
-
result =
|
|
41394
|
+
result = f.call(context);
|
|
41390
41395
|
} else {
|
|
41391
41396
|
try {
|
|
41392
|
-
result =
|
|
41397
|
+
result = f.call(context);
|
|
41393
41398
|
} catch (e) {
|
|
41394
41399
|
result = new CaughtException(e);
|
|
41395
41400
|
}
|
|
@@ -41804,8 +41809,8 @@ var Reaction = /* @__PURE__ */ function() {
|
|
|
41804
41809
|
error: "" + error2
|
|
41805
41810
|
});
|
|
41806
41811
|
}
|
|
41807
|
-
globalState.globalReactionErrorHandlers.forEach(function(
|
|
41808
|
-
return
|
|
41812
|
+
globalState.globalReactionErrorHandlers.forEach(function(f) {
|
|
41813
|
+
return f(error2, _this);
|
|
41809
41814
|
});
|
|
41810
41815
|
};
|
|
41811
41816
|
_proto.dispose = function dispose() {
|
|
@@ -41835,8 +41840,8 @@ var Reaction = /* @__PURE__ */ function() {
|
|
|
41835
41840
|
return Reaction2;
|
|
41836
41841
|
}();
|
|
41837
41842
|
var MAX_REACTION_ITERATIONS = 100;
|
|
41838
|
-
var reactionScheduler = function reactionScheduler2(
|
|
41839
|
-
return
|
|
41843
|
+
var reactionScheduler = function reactionScheduler2(f) {
|
|
41844
|
+
return f();
|
|
41840
41845
|
};
|
|
41841
41846
|
function runReactions() {
|
|
41842
41847
|
if (globalState.inBatch > 0 || globalState.isRunningReactions) {
|
|
@@ -41863,9 +41868,9 @@ function runReactionsHelper() {
|
|
|
41863
41868
|
var isReaction = /* @__PURE__ */ createInstanceofPredicate("Reaction", Reaction);
|
|
41864
41869
|
function setReactionScheduler(fn) {
|
|
41865
41870
|
var baseScheduler = reactionScheduler;
|
|
41866
|
-
reactionScheduler = function reactionScheduler3(
|
|
41871
|
+
reactionScheduler = function reactionScheduler3(f) {
|
|
41867
41872
|
return fn(function() {
|
|
41868
|
-
return baseScheduler(
|
|
41873
|
+
return baseScheduler(f);
|
|
41869
41874
|
});
|
|
41870
41875
|
};
|
|
41871
41876
|
}
|
|
@@ -41985,17 +41990,17 @@ function autorun(view, opts) {
|
|
|
41985
41990
|
die("Autorun does not accept actions since actions are untrackable");
|
|
41986
41991
|
}
|
|
41987
41992
|
}
|
|
41988
|
-
var
|
|
41993
|
+
var name = (_opts$name = (_opts = opts) == null ? void 0 : _opts.name) != null ? _opts$name : process.env.NODE_ENV !== "production" ? view.name || "Autorun@" + getNextId() : "Autorun";
|
|
41989
41994
|
var runSync = !opts.scheduler && !opts.delay;
|
|
41990
41995
|
var reaction;
|
|
41991
41996
|
if (runSync) {
|
|
41992
|
-
reaction = new Reaction(
|
|
41997
|
+
reaction = new Reaction(name, function() {
|
|
41993
41998
|
this.track(reactionRunner);
|
|
41994
41999
|
}, opts.onError, opts.requiresObservable);
|
|
41995
42000
|
} else {
|
|
41996
42001
|
var scheduler = createSchedulerFromOptions(opts);
|
|
41997
42002
|
var isScheduled = false;
|
|
41998
|
-
reaction = new Reaction(
|
|
42003
|
+
reaction = new Reaction(name, function() {
|
|
41999
42004
|
if (!isScheduled) {
|
|
42000
42005
|
isScheduled = true;
|
|
42001
42006
|
scheduler(function() {
|
|
@@ -42013,12 +42018,12 @@ function autorun(view, opts) {
|
|
|
42013
42018
|
reaction.schedule_();
|
|
42014
42019
|
return reaction.getDisposer_();
|
|
42015
42020
|
}
|
|
42016
|
-
var run = function run2(
|
|
42017
|
-
return
|
|
42021
|
+
var run = function run2(f) {
|
|
42022
|
+
return f();
|
|
42018
42023
|
};
|
|
42019
42024
|
function createSchedulerFromOptions(opts) {
|
|
42020
|
-
return opts.scheduler ? opts.scheduler : opts.delay ? function(
|
|
42021
|
-
return setTimeout(
|
|
42025
|
+
return opts.scheduler ? opts.scheduler : opts.delay ? function(f) {
|
|
42026
|
+
return setTimeout(f, opts.delay);
|
|
42022
42027
|
} : run;
|
|
42023
42028
|
}
|
|
42024
42029
|
var ON_BECOME_OBSERVED = "onBO";
|
|
@@ -42147,12 +42152,12 @@ var flow = /* @__PURE__ */ Object.assign(function flow2(arg1, arg2) {
|
|
|
42147
42152
|
die("Flow expects single argument with generator function");
|
|
42148
42153
|
}
|
|
42149
42154
|
var generator = arg1;
|
|
42150
|
-
var
|
|
42155
|
+
var name = generator.name || "<unnamed flow>";
|
|
42151
42156
|
var res = function res2() {
|
|
42152
42157
|
var ctx = this;
|
|
42153
42158
|
var args = arguments;
|
|
42154
42159
|
var runId = ++generatorId;
|
|
42155
|
-
var gen = action(
|
|
42160
|
+
var gen = action(name + " - runid: " + runId + " - init", generator).apply(ctx, args);
|
|
42156
42161
|
var rejector;
|
|
42157
42162
|
var pendingPromise = void 0;
|
|
42158
42163
|
var promise = new Promise(function(resolve, reject) {
|
|
@@ -42162,7 +42167,7 @@ var flow = /* @__PURE__ */ Object.assign(function flow2(arg1, arg2) {
|
|
|
42162
42167
|
pendingPromise = void 0;
|
|
42163
42168
|
var ret;
|
|
42164
42169
|
try {
|
|
42165
|
-
ret = action(
|
|
42170
|
+
ret = action(name + " - runid: " + runId + " - yield " + stepId++, gen.next).call(gen, res3);
|
|
42166
42171
|
} catch (e) {
|
|
42167
42172
|
return reject(e);
|
|
42168
42173
|
}
|
|
@@ -42172,7 +42177,7 @@ var flow = /* @__PURE__ */ Object.assign(function flow2(arg1, arg2) {
|
|
|
42172
42177
|
pendingPromise = void 0;
|
|
42173
42178
|
var ret;
|
|
42174
42179
|
try {
|
|
42175
|
-
ret = action(
|
|
42180
|
+
ret = action(name + " - runid: " + runId + " - yield " + stepId++, gen["throw"]).call(gen, err);
|
|
42176
42181
|
} catch (e) {
|
|
42177
42182
|
return reject(e);
|
|
42178
42183
|
}
|
|
@@ -42191,7 +42196,7 @@ var flow = /* @__PURE__ */ Object.assign(function flow2(arg1, arg2) {
|
|
|
42191
42196
|
}
|
|
42192
42197
|
onFulfilled(void 0);
|
|
42193
42198
|
});
|
|
42194
|
-
promise.cancel = action(
|
|
42199
|
+
promise.cancel = action(name + " - runid: " + runId + " - cancel", function() {
|
|
42195
42200
|
try {
|
|
42196
42201
|
if (pendingPromise) {
|
|
42197
42202
|
cancelPromise(pendingPromise);
|
|
@@ -42285,41 +42290,41 @@ function getAdm(target) {
|
|
|
42285
42290
|
return target[$mobx];
|
|
42286
42291
|
}
|
|
42287
42292
|
var objectProxyTraps = {
|
|
42288
|
-
has: function has2(target,
|
|
42293
|
+
has: function has2(target, name) {
|
|
42289
42294
|
if (process.env.NODE_ENV !== "production" && globalState.trackingDerivation) {
|
|
42290
42295
|
warnAboutProxyRequirement("detect new properties using the 'in' operator. Use 'has' from 'mobx' instead.");
|
|
42291
42296
|
}
|
|
42292
|
-
return getAdm(target).has_(
|
|
42297
|
+
return getAdm(target).has_(name);
|
|
42293
42298
|
},
|
|
42294
|
-
get: function get3(target,
|
|
42295
|
-
return getAdm(target).get_(
|
|
42299
|
+
get: function get3(target, name) {
|
|
42300
|
+
return getAdm(target).get_(name);
|
|
42296
42301
|
},
|
|
42297
|
-
set: function set3(target,
|
|
42302
|
+
set: function set3(target, name, value) {
|
|
42298
42303
|
var _getAdm$set_;
|
|
42299
|
-
if (!isStringish(
|
|
42304
|
+
if (!isStringish(name)) {
|
|
42300
42305
|
return false;
|
|
42301
42306
|
}
|
|
42302
|
-
if (process.env.NODE_ENV !== "production" && !getAdm(target).values_.has(
|
|
42307
|
+
if (process.env.NODE_ENV !== "production" && !getAdm(target).values_.has(name)) {
|
|
42303
42308
|
warnAboutProxyRequirement("add a new observable property through direct assignment. Use 'set' from 'mobx' instead.");
|
|
42304
42309
|
}
|
|
42305
|
-
return (_getAdm$set_ = getAdm(target).set_(
|
|
42310
|
+
return (_getAdm$set_ = getAdm(target).set_(name, value, true)) != null ? _getAdm$set_ : true;
|
|
42306
42311
|
},
|
|
42307
|
-
deleteProperty: function deleteProperty(target,
|
|
42312
|
+
deleteProperty: function deleteProperty(target, name) {
|
|
42308
42313
|
var _getAdm$delete_;
|
|
42309
42314
|
if (process.env.NODE_ENV !== "production") {
|
|
42310
42315
|
warnAboutProxyRequirement("delete properties from an observable object. Use 'remove' from 'mobx' instead.");
|
|
42311
42316
|
}
|
|
42312
|
-
if (!isStringish(
|
|
42317
|
+
if (!isStringish(name)) {
|
|
42313
42318
|
return false;
|
|
42314
42319
|
}
|
|
42315
|
-
return (_getAdm$delete_ = getAdm(target).delete_(
|
|
42320
|
+
return (_getAdm$delete_ = getAdm(target).delete_(name, true)) != null ? _getAdm$delete_ : true;
|
|
42316
42321
|
},
|
|
42317
|
-
defineProperty: function defineProperty2(target,
|
|
42322
|
+
defineProperty: function defineProperty2(target, name, descriptor) {
|
|
42318
42323
|
var _getAdm$definePropert;
|
|
42319
42324
|
if (process.env.NODE_ENV !== "production") {
|
|
42320
42325
|
warnAboutProxyRequirement("define property on an observable object. Use 'defineProperty' from 'mobx' instead.");
|
|
42321
42326
|
}
|
|
42322
|
-
return (_getAdm$definePropert = getAdm(target).defineProperty_(
|
|
42327
|
+
return (_getAdm$definePropert = getAdm(target).defineProperty_(name, descriptor)) != null ? _getAdm$definePropert : true;
|
|
42323
42328
|
},
|
|
42324
42329
|
ownKeys: function ownKeys2(target) {
|
|
42325
42330
|
if (process.env.NODE_ENV !== "production" && globalState.trackingDerivation) {
|
|
@@ -42414,31 +42419,31 @@ var SPLICE = "splice";
|
|
|
42414
42419
|
var UPDATE = "update";
|
|
42415
42420
|
var MAX_SPLICE_SIZE = 1e4;
|
|
42416
42421
|
var arrayTraps = {
|
|
42417
|
-
get: function get4(target,
|
|
42422
|
+
get: function get4(target, name) {
|
|
42418
42423
|
var adm = target[$mobx];
|
|
42419
|
-
if (
|
|
42424
|
+
if (name === $mobx) {
|
|
42420
42425
|
return adm;
|
|
42421
42426
|
}
|
|
42422
|
-
if (
|
|
42427
|
+
if (name === "length") {
|
|
42423
42428
|
return adm.getArrayLength_();
|
|
42424
42429
|
}
|
|
42425
|
-
if (typeof
|
|
42426
|
-
return adm.get_(parseInt(
|
|
42430
|
+
if (typeof name === "string" && !isNaN(name)) {
|
|
42431
|
+
return adm.get_(parseInt(name));
|
|
42427
42432
|
}
|
|
42428
|
-
if (hasProp(arrayExtensions,
|
|
42429
|
-
return arrayExtensions[
|
|
42433
|
+
if (hasProp(arrayExtensions, name)) {
|
|
42434
|
+
return arrayExtensions[name];
|
|
42430
42435
|
}
|
|
42431
|
-
return target[
|
|
42436
|
+
return target[name];
|
|
42432
42437
|
},
|
|
42433
|
-
set: function set4(target,
|
|
42438
|
+
set: function set4(target, name, value) {
|
|
42434
42439
|
var adm = target[$mobx];
|
|
42435
|
-
if (
|
|
42440
|
+
if (name === "length") {
|
|
42436
42441
|
adm.setArrayLength_(value);
|
|
42437
42442
|
}
|
|
42438
|
-
if (typeof
|
|
42439
|
-
target[
|
|
42443
|
+
if (typeof name === "symbol" || isNaN(name)) {
|
|
42444
|
+
target[name] = value;
|
|
42440
42445
|
} else {
|
|
42441
|
-
adm.set_(parseInt(
|
|
42446
|
+
adm.set_(parseInt(name), value);
|
|
42442
42447
|
}
|
|
42443
42448
|
return true;
|
|
42444
42449
|
},
|
|
@@ -42447,9 +42452,9 @@ var arrayTraps = {
|
|
|
42447
42452
|
}
|
|
42448
42453
|
};
|
|
42449
42454
|
var ObservableArrayAdministration = /* @__PURE__ */ function() {
|
|
42450
|
-
function ObservableArrayAdministration2(
|
|
42451
|
-
if (
|
|
42452
|
-
|
|
42455
|
+
function ObservableArrayAdministration2(name, enhancer2, owned_, legacyMode_) {
|
|
42456
|
+
if (name === void 0) {
|
|
42457
|
+
name = process.env.NODE_ENV !== "production" ? "ObservableArray@" + getNextId() : "ObservableArray";
|
|
42453
42458
|
}
|
|
42454
42459
|
this.owned_ = void 0;
|
|
42455
42460
|
this.legacyMode_ = void 0;
|
|
@@ -42463,9 +42468,9 @@ var ObservableArrayAdministration = /* @__PURE__ */ function() {
|
|
|
42463
42468
|
this.lastKnownLength_ = 0;
|
|
42464
42469
|
this.owned_ = owned_;
|
|
42465
42470
|
this.legacyMode_ = legacyMode_;
|
|
42466
|
-
this.atom_ = new Atom(
|
|
42471
|
+
this.atom_ = new Atom(name);
|
|
42467
42472
|
this.enhancer_ = function(newV, oldV) {
|
|
42468
|
-
return enhancer2(newV, oldV, process.env.NODE_ENV !== "production" ?
|
|
42473
|
+
return enhancer2(newV, oldV, process.env.NODE_ENV !== "production" ? name + "[..]" : "ObservableArray[..]");
|
|
42469
42474
|
};
|
|
42470
42475
|
}
|
|
42471
42476
|
var _proto = ObservableArrayAdministration2.prototype;
|
|
@@ -42691,15 +42696,15 @@ var ObservableArrayAdministration = /* @__PURE__ */ function() {
|
|
|
42691
42696
|
};
|
|
42692
42697
|
return ObservableArrayAdministration2;
|
|
42693
42698
|
}();
|
|
42694
|
-
function createObservableArray(initialValues, enhancer2,
|
|
42695
|
-
if (
|
|
42696
|
-
|
|
42699
|
+
function createObservableArray(initialValues, enhancer2, name, owned) {
|
|
42700
|
+
if (name === void 0) {
|
|
42701
|
+
name = process.env.NODE_ENV !== "production" ? "ObservableArray@" + getNextId() : "ObservableArray";
|
|
42697
42702
|
}
|
|
42698
42703
|
if (owned === void 0) {
|
|
42699
42704
|
owned = false;
|
|
42700
42705
|
}
|
|
42701
42706
|
assertProxies();
|
|
42702
|
-
var adm = new ObservableArrayAdministration(
|
|
42707
|
+
var adm = new ObservableArrayAdministration(name, enhancer2, owned, false);
|
|
42703
42708
|
addHiddenFinalProp(adm.values_, $mobx, adm);
|
|
42704
42709
|
var proxy = new Proxy(adm.values_, arrayTraps);
|
|
42705
42710
|
adm.proxy_ = proxy;
|
|
@@ -43878,8 +43883,8 @@ function asObservableObject(target, options2) {
|
|
|
43878
43883
|
if (process.env.NODE_ENV !== "production" && !Object.isExtensible(target)) {
|
|
43879
43884
|
die("Cannot make the designated object observable; it is not extensible");
|
|
43880
43885
|
}
|
|
43881
|
-
var
|
|
43882
|
-
var adm = new ObservableObjectAdministration(target, /* @__PURE__ */ new Map(), String(
|
|
43886
|
+
var name = (_options$name = options2 == null ? void 0 : options2.name) != null ? _options$name : process.env.NODE_ENV !== "production" ? (isPlainObject(target) ? "ObservableObject" : target.constructor.name) + "@" + getNextId() : "ObservableObject";
|
|
43887
|
+
var adm = new ObservableObjectAdministration(target, /* @__PURE__ */ new Map(), String(name), getAnnotationFromOptions(options2));
|
|
43883
43888
|
addHiddenProp(target, $mobx, adm);
|
|
43884
43889
|
return target;
|
|
43885
43890
|
}
|
|
@@ -43934,16 +43939,16 @@ function inherit(ctor, proto) {
|
|
|
43934
43939
|
inherit(StubArray, Array.prototype);
|
|
43935
43940
|
var LegacyObservableArray = /* @__PURE__ */ function(_StubArray, _Symbol$toStringTag2, _Symbol$iterator2) {
|
|
43936
43941
|
_inheritsLoose(LegacyObservableArray2, _StubArray);
|
|
43937
|
-
function LegacyObservableArray2(initialValues, enhancer2,
|
|
43942
|
+
function LegacyObservableArray2(initialValues, enhancer2, name, owned) {
|
|
43938
43943
|
var _this;
|
|
43939
|
-
if (
|
|
43940
|
-
|
|
43944
|
+
if (name === void 0) {
|
|
43945
|
+
name = process.env.NODE_ENV !== "production" ? "ObservableArray@" + getNextId() : "ObservableArray";
|
|
43941
43946
|
}
|
|
43942
43947
|
if (owned === void 0) {
|
|
43943
43948
|
owned = false;
|
|
43944
43949
|
}
|
|
43945
43950
|
_this = _StubArray.call(this) || this;
|
|
43946
|
-
var adm = new ObservableArrayAdministration(
|
|
43951
|
+
var adm = new ObservableArrayAdministration(name, enhancer2, owned, true);
|
|
43947
43952
|
adm.proxy_ = _assertThisInitialized(_this);
|
|
43948
43953
|
addHiddenFinalProp(_assertThisInitialized(_this), $mobx, adm);
|
|
43949
43954
|
if (initialValues && initialValues.length) {
|
|
@@ -44031,8 +44036,8 @@ function reserveArrayBuffer(max) {
|
|
|
44031
44036
|
}
|
|
44032
44037
|
}
|
|
44033
44038
|
reserveArrayBuffer(1e3);
|
|
44034
|
-
function createLegacyArray(initialValues, enhancer2,
|
|
44035
|
-
return new LegacyObservableArray(initialValues, enhancer2,
|
|
44039
|
+
function createLegacyArray(initialValues, enhancer2, name) {
|
|
44040
|
+
return new LegacyObservableArray(initialValues, enhancer2, name);
|
|
44036
44041
|
}
|
|
44037
44042
|
function getAtom(thing, property) {
|
|
44038
44043
|
if (typeof thing === "object" && thing !== null) {
|
|
@@ -44106,7 +44111,7 @@ function getDebugName(thing, property) {
|
|
|
44106
44111
|
}
|
|
44107
44112
|
return named.name_;
|
|
44108
44113
|
}
|
|
44109
|
-
var
|
|
44114
|
+
var toString3 = objectPrototype.toString;
|
|
44110
44115
|
function deepEqual(a, b, depth) {
|
|
44111
44116
|
if (depth === void 0) {
|
|
44112
44117
|
depth = -1;
|
|
@@ -44127,8 +44132,8 @@ function eq(a, b, depth, aStack, bStack) {
|
|
|
44127
44132
|
if (type !== "function" && type !== "object" && typeof b != "object") {
|
|
44128
44133
|
return false;
|
|
44129
44134
|
}
|
|
44130
|
-
var className =
|
|
44131
|
-
if (className !==
|
|
44135
|
+
var className = toString3.call(a);
|
|
44136
|
+
if (className !== toString3.call(b)) {
|
|
44132
44137
|
return false;
|
|
44133
44138
|
}
|
|
44134
44139
|
switch (className) {
|
|
@@ -44594,20 +44599,20 @@ globalThis && globalThis.__read || function(o, n) {
|
|
|
44594
44599
|
};
|
|
44595
44600
|
observerBatching(unstable_batchedUpdates);
|
|
44596
44601
|
var symbolId = 0;
|
|
44597
|
-
function createSymbol(
|
|
44602
|
+
function createSymbol(name) {
|
|
44598
44603
|
if (typeof Symbol === "function") {
|
|
44599
|
-
return Symbol(
|
|
44604
|
+
return Symbol(name);
|
|
44600
44605
|
}
|
|
44601
|
-
var symbol = "__$mobx-react " +
|
|
44606
|
+
var symbol = "__$mobx-react " + name + " (" + symbolId + ")";
|
|
44602
44607
|
symbolId++;
|
|
44603
44608
|
return symbol;
|
|
44604
44609
|
}
|
|
44605
44610
|
var createdSymbols = {};
|
|
44606
|
-
function newSymbol(
|
|
44607
|
-
if (!createdSymbols[
|
|
44608
|
-
createdSymbols[
|
|
44611
|
+
function newSymbol(name) {
|
|
44612
|
+
if (!createdSymbols[name]) {
|
|
44613
|
+
createdSymbols[name] = createSymbol(name);
|
|
44609
44614
|
}
|
|
44610
|
-
return createdSymbols[
|
|
44615
|
+
return createdSymbols[name];
|
|
44611
44616
|
}
|
|
44612
44617
|
function shallowEqual(objA, objB) {
|
|
44613
44618
|
if (is(objA, objB)) {
|
|
@@ -44686,7 +44691,7 @@ function wrapFunction(realMethod, mixins) {
|
|
|
44686
44691
|
};
|
|
44687
44692
|
return fn;
|
|
44688
44693
|
}
|
|
44689
|
-
function
|
|
44694
|
+
function patch2(target, methodName, mixinMethod) {
|
|
44690
44695
|
var mixins = getMixins(target, methodName);
|
|
44691
44696
|
if (mixins.methods.indexOf(mixinMethod) < 0) {
|
|
44692
44697
|
mixins.methods.push(mixinMethod);
|
|
@@ -44750,13 +44755,13 @@ function makeClassComponentObserver(componentClass) {
|
|
|
44750
44755
|
this.render = createReactiveRender.call(this, originalRender);
|
|
44751
44756
|
return this.render();
|
|
44752
44757
|
};
|
|
44753
|
-
|
|
44758
|
+
patch2(target, "componentDidMount", function() {
|
|
44754
44759
|
this[mobxIsUnmounted] = false;
|
|
44755
44760
|
if (!this.render[mobxAdminProperty]) {
|
|
44756
44761
|
Component.prototype.forceUpdate.call(this);
|
|
44757
44762
|
}
|
|
44758
44763
|
});
|
|
44759
|
-
|
|
44764
|
+
patch2(target, "componentWillUnmount", function() {
|
|
44760
44765
|
var reaction = this.render[mobxAdminProperty];
|
|
44761
44766
|
if (reaction) {
|
|
44762
44767
|
reaction.dispose();
|
|
@@ -46212,12 +46217,12 @@ const getItemNode = (node) => {
|
|
|
46212
46217
|
};
|
|
46213
46218
|
} else if (node.nodeType === Node.ELEMENT_NODE && node instanceof Element) {
|
|
46214
46219
|
const attrs = {};
|
|
46215
|
-
node.getAttributeNames().forEach((
|
|
46216
|
-
let key2 = camelCase(
|
|
46220
|
+
node.getAttributeNames().forEach((name) => {
|
|
46221
|
+
let key2 = camelCase(name);
|
|
46217
46222
|
if (key2 === "class") {
|
|
46218
46223
|
key2 = "className";
|
|
46219
46224
|
}
|
|
46220
|
-
attrs[key2] = node.getAttribute(
|
|
46225
|
+
attrs[key2] = node.getAttribute(name) || "";
|
|
46221
46226
|
});
|
|
46222
46227
|
const tagName = node.tagName.toLowerCase();
|
|
46223
46228
|
if (tagName === "br") {
|
|
@@ -46338,10 +46343,10 @@ const mjmlToJson = (content) => {
|
|
|
46338
46343
|
throw new Error("Invalid content");
|
|
46339
46344
|
}
|
|
46340
46345
|
const attributes = {};
|
|
46341
|
-
node.getAttributeNames().forEach((
|
|
46342
|
-
const value = node.getAttribute(
|
|
46346
|
+
node.getAttributeNames().forEach((name) => {
|
|
46347
|
+
const value = node.getAttribute(name);
|
|
46343
46348
|
if (isString$1(value)) {
|
|
46344
|
-
attributes[
|
|
46349
|
+
attributes[name] = value;
|
|
46345
46350
|
}
|
|
46346
46351
|
});
|
|
46347
46352
|
const type = node.tagName.replace("mj-", "");
|
|
@@ -46408,10 +46413,10 @@ function mjmlTransform(data) {
|
|
|
46408
46413
|
if (item22.tagName === "mj-all") {
|
|
46409
46414
|
page.data.globalAttributes = __spreadValues(__spreadValues({}, page.data.globalAttributes), item22.attributes);
|
|
46410
46415
|
} else if (item22.tagName === "mj-class") {
|
|
46411
|
-
const
|
|
46416
|
+
const name = item22.attributes.name;
|
|
46412
46417
|
delete item22.attributes.name;
|
|
46413
46418
|
page.data.classAttributes = __spreadProps(__spreadValues({}, page.data.classAttributes), {
|
|
46414
|
-
[
|
|
46419
|
+
[name]: item22.attributes
|
|
46415
46420
|
});
|
|
46416
46421
|
} else {
|
|
46417
46422
|
page.data.categoryAttributes = __spreadProps(__spreadValues({}, page.data.categoryAttributes), {
|