randmarcomps 1.127.0 → 1.128.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/dist/randmarcomps.js +1070 -1059
- package/dist/randmarcomps.umd.cjs +37 -32
- package/package.json +1 -1
package/dist/randmarcomps.js
CHANGED
|
@@ -60,19 +60,19 @@ function Tt({ containerRef: t, inputRef: e, pushPasswordManagerStrategy: n, isFo
|
|
|
60
60
|
}
|
|
61
61
|
var jt = React.createContext({}), Lt = React.forwardRef((t, e) => {
|
|
62
62
|
var n = t, { value: i, onChange: o, maxLength: l, textAlign: u = "left", pattern: d, placeholder: f, inputMode: p = "numeric", onComplete: m, pushPasswordManagerStrategy: g = "increase-width", pasteTransformer: b, containerClassName: _, noScriptCSSFallback: E = Nt, render: C, children: S } = n, T = Pt(n, ["value", "onChange", "maxLength", "textAlign", "pattern", "placeholder", "inputMode", "onComplete", "pushPasswordManagerStrategy", "pasteTransformer", "containerClassName", "noScriptCSSFallback", "render", "children"]), A, I, M, R, N;
|
|
63
|
-
let [O, D] = React.useState(typeof T.defaultValue == "string" ? T.defaultValue : ""), V = i ?? O, L = _t(V), B = React.useCallback((
|
|
64
|
-
o == null || o(
|
|
63
|
+
let [O, D] = React.useState(typeof T.defaultValue == "string" ? T.defaultValue : ""), V = i ?? O, L = _t(V), B = React.useCallback((ee) => {
|
|
64
|
+
o == null || o(ee), D(ee);
|
|
65
65
|
}, [o]), j = React.useMemo(() => d ? typeof d == "string" ? new RegExp(d) : d : null, [d]), q = React.useRef(null), H = React.useRef(null), G = React.useRef({ value: V, onChange: B, isIOS: typeof window < "u" && ((I = (A = window == null ? void 0 : window.CSS) == null ? void 0 : A.supports) == null ? void 0 : I.call(A, "-webkit-touch-callout", "none")) }), U = React.useRef({ prev: [(M = q.current) == null ? void 0 : M.selectionStart, (R = q.current) == null ? void 0 : R.selectionEnd, (N = q.current) == null ? void 0 : N.selectionDirection] });
|
|
66
66
|
React.useImperativeHandle(e, () => q.current, []), React.useEffect(() => {
|
|
67
|
-
let
|
|
68
|
-
if (!
|
|
69
|
-
G.current.value !==
|
|
67
|
+
let ee = q.current, de = H.current;
|
|
68
|
+
if (!ee || !de) return;
|
|
69
|
+
G.current.value !== ee.value && G.current.onChange(ee.value), U.current.prev = [ee.selectionStart, ee.selectionEnd, ee.selectionDirection];
|
|
70
70
|
function he() {
|
|
71
|
-
if (document.activeElement !==
|
|
72
|
-
|
|
71
|
+
if (document.activeElement !== ee) {
|
|
72
|
+
te(null), ae(null);
|
|
73
73
|
return;
|
|
74
74
|
}
|
|
75
|
-
let pe =
|
|
75
|
+
let pe = ee.selectionStart, ge = ee.selectionEnd, Pe = ee.selectionDirection, ve = ee.maxLength, xe = ee.value, Se = U.current.prev, _e = -1, Ce = -1, Ee;
|
|
76
76
|
if (xe.length !== 0 && pe !== null && ge !== null) {
|
|
77
77
|
let Me = pe === ge, $e = pe === xe.length && xe.length < ve;
|
|
78
78
|
if (Me && !$e) {
|
|
@@ -92,9 +92,9 @@ var jt = React.createContext({}), Lt = React.forwardRef((t, e) => {
|
|
|
92
92
|
_e !== -1 && Ce !== -1 && _e !== Ce && q.current.setSelectionRange(_e, Ce, Ee);
|
|
93
93
|
}
|
|
94
94
|
let we = _e !== -1 ? _e : pe, Te = Ce !== -1 ? Ce : ge, Ae = Ee ?? Pe;
|
|
95
|
-
|
|
95
|
+
te(we), ae(Te), U.current.prev = [we, Te, Ae];
|
|
96
96
|
}
|
|
97
|
-
if (document.addEventListener("selectionchange", he, { capture: !0 }), he(), document.activeElement ===
|
|
97
|
+
if (document.addEventListener("selectionchange", he, { capture: !0 }), he(), document.activeElement === ee && W(!0), !document.getElementById("input-otp-style")) {
|
|
98
98
|
let pe = document.createElement("style");
|
|
99
99
|
if (pe.id = "input-otp-style", document.head.appendChild(pe), pe.sheet) {
|
|
100
100
|
let ge = "background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";
|
|
@@ -102,71 +102,71 @@ var jt = React.createContext({}), Lt = React.forwardRef((t, e) => {
|
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
104
|
let me = () => {
|
|
105
|
-
|
|
105
|
+
de && de.style.setProperty("--root-height", `${ee.clientHeight}px`);
|
|
106
106
|
};
|
|
107
107
|
me();
|
|
108
108
|
let ye = new ResizeObserver(me);
|
|
109
|
-
return ye.observe(
|
|
109
|
+
return ye.observe(ee), () => {
|
|
110
110
|
document.removeEventListener("selectionchange", he, { capture: !0 }), ye.disconnect();
|
|
111
111
|
};
|
|
112
112
|
}, []);
|
|
113
|
-
let [
|
|
113
|
+
let [Q, F] = React.useState(!1), [z, W] = React.useState(!1), [Z, te] = React.useState(null), [ne, ae] = React.useState(null);
|
|
114
114
|
React.useEffect(() => {
|
|
115
115
|
ht(() => {
|
|
116
|
-
var
|
|
117
|
-
(
|
|
118
|
-
let ye = (
|
|
119
|
-
ye !== null && pe !== null && (
|
|
116
|
+
var ee, de, he, me;
|
|
117
|
+
(ee = q.current) == null || ee.dispatchEvent(new Event("input"));
|
|
118
|
+
let ye = (de = q.current) == null ? void 0 : de.selectionStart, pe = (he = q.current) == null ? void 0 : he.selectionEnd, ge = (me = q.current) == null ? void 0 : me.selectionDirection;
|
|
119
|
+
ye !== null && pe !== null && (te(ye), ae(pe), U.current.prev = [ye, pe, ge]);
|
|
120
120
|
});
|
|
121
121
|
}, [V, z]), React.useEffect(() => {
|
|
122
122
|
L !== void 0 && V !== L && L.length < l && V.length === l && (m == null || m(V));
|
|
123
123
|
}, [l, m, L, V]);
|
|
124
|
-
let le = Tt({ containerRef: H, inputRef: q, pushPasswordManagerStrategy: g, isFocused: z }), ue = React.useCallback((
|
|
125
|
-
let
|
|
126
|
-
if (
|
|
127
|
-
|
|
124
|
+
let le = Tt({ containerRef: H, inputRef: q, pushPasswordManagerStrategy: g, isFocused: z }), ue = React.useCallback((ee) => {
|
|
125
|
+
let de = ee.currentTarget.value.slice(0, l);
|
|
126
|
+
if (de.length > 0 && j && !j.test(de)) {
|
|
127
|
+
ee.preventDefault();
|
|
128
128
|
return;
|
|
129
129
|
}
|
|
130
|
-
typeof L == "string" &&
|
|
130
|
+
typeof L == "string" && de.length < L.length && document.dispatchEvent(new Event("selectionchange")), B(de);
|
|
131
131
|
}, [l, B, L, j]), se = React.useCallback(() => {
|
|
132
|
-
var
|
|
132
|
+
var ee;
|
|
133
133
|
if (q.current) {
|
|
134
|
-
let
|
|
135
|
-
(
|
|
134
|
+
let de = Math.min(q.current.value.length, l - 1), he = q.current.value.length;
|
|
135
|
+
(ee = q.current) == null || ee.setSelectionRange(de, he), te(de), ae(he);
|
|
136
136
|
}
|
|
137
137
|
W(!0);
|
|
138
|
-
}, [l]),
|
|
139
|
-
var
|
|
138
|
+
}, [l]), ce = React.useCallback((ee) => {
|
|
139
|
+
var de, he;
|
|
140
140
|
let me = q.current;
|
|
141
|
-
if (!b && (!G.current.isIOS || !
|
|
142
|
-
let ye =
|
|
143
|
-
|
|
144
|
-
let ge = (
|
|
141
|
+
if (!b && (!G.current.isIOS || !ee.clipboardData || !me)) return;
|
|
142
|
+
let ye = ee.clipboardData.getData("text/plain"), pe = b ? b(ye) : ye;
|
|
143
|
+
ee.preventDefault();
|
|
144
|
+
let ge = (de = q.current) == null ? void 0 : de.selectionStart, Pe = (he = q.current) == null ? void 0 : he.selectionEnd, ve = (ge !== Pe ? V.slice(0, ge) + pe + V.slice(Pe) : V.slice(0, ge) + pe + V.slice(ge)).slice(0, l);
|
|
145
145
|
if (ve.length > 0 && j && !j.test(ve)) return;
|
|
146
146
|
me.value = ve, B(ve);
|
|
147
147
|
let xe = Math.min(ve.length, l - 1), Se = ve.length;
|
|
148
|
-
me.setSelectionRange(xe, Se),
|
|
149
|
-
}, [l, B, j, V]),
|
|
150
|
-
var
|
|
151
|
-
|
|
152
|
-
}, onChange: ue, onMouseOver: (
|
|
153
|
-
var
|
|
154
|
-
F(!0), (
|
|
155
|
-
}, onMouseLeave: (
|
|
156
|
-
var
|
|
157
|
-
F(!1), (
|
|
158
|
-
}, onFocus: (
|
|
159
|
-
var
|
|
160
|
-
se(), (
|
|
161
|
-
}, onBlur: (
|
|
162
|
-
var
|
|
163
|
-
W(!1), (
|
|
164
|
-
} })), [ue, se,
|
|
148
|
+
me.setSelectionRange(xe, Se), te(xe), ae(Se);
|
|
149
|
+
}, [l, B, j, V]), oe = React.useMemo(() => ({ position: "relative", cursor: T.disabled ? "default" : "text", userSelect: "none", WebkitUserSelect: "none", pointerEvents: "none" }), [T.disabled]), J = React.useMemo(() => ({ position: "absolute", inset: 0, width: le.willPushPWMBadge ? `calc(100% + ${le.PWM_BADGE_SPACE_WIDTH})` : "100%", clipPath: le.willPushPWMBadge ? `inset(0 ${le.PWM_BADGE_SPACE_WIDTH} 0 0)` : void 0, height: "100%", display: "flex", textAlign: u, opacity: "1", color: "transparent", pointerEvents: "all", background: "transparent", caretColor: "transparent", border: "0 solid transparent", outline: "0 solid transparent", boxShadow: "none", lineHeight: "1", letterSpacing: "-.5em", fontSize: "var(--root-height)", fontFamily: "monospace", fontVariantNumeric: "tabular-nums" }), [le.PWM_BADGE_SPACE_WIDTH, le.willPushPWMBadge, u]), ie = React.useMemo(() => React.createElement("input", bt(St({ autoComplete: T.autoComplete || "one-time-code" }, T), { "data-input-otp": !0, "data-input-otp-placeholder-shown": V.length === 0 || void 0, "data-input-otp-mss": Z, "data-input-otp-mse": ne, inputMode: p, pattern: j == null ? void 0 : j.source, "aria-placeholder": f, style: J, maxLength: l, value: V, ref: q, onPaste: (ee) => {
|
|
150
|
+
var de;
|
|
151
|
+
ce(ee), (de = T.onPaste) == null || de.call(T, ee);
|
|
152
|
+
}, onChange: ue, onMouseOver: (ee) => {
|
|
153
|
+
var de;
|
|
154
|
+
F(!0), (de = T.onMouseOver) == null || de.call(T, ee);
|
|
155
|
+
}, onMouseLeave: (ee) => {
|
|
156
|
+
var de;
|
|
157
|
+
F(!1), (de = T.onMouseLeave) == null || de.call(T, ee);
|
|
158
|
+
}, onFocus: (ee) => {
|
|
159
|
+
var de;
|
|
160
|
+
se(), (de = T.onFocus) == null || de.call(T, ee);
|
|
161
|
+
}, onBlur: (ee) => {
|
|
162
|
+
var de;
|
|
163
|
+
W(!1), (de = T.onBlur) == null || de.call(T, ee);
|
|
164
|
+
} })), [ue, se, ce, p, J, l, ne, Z, T, j == null ? void 0 : j.source, V]), K = React.useMemo(() => ({ slots: Array.from({ length: l }).map((ee, de) => {
|
|
165
165
|
var he;
|
|
166
|
-
let me = z &&
|
|
166
|
+
let me = z && Z !== null && ne !== null && (Z === ne && de === Z || de >= Z && de < ne), ye = V[de] !== void 0 ? V[de] : null, pe = V[0] !== void 0 ? null : (he = f == null ? void 0 : f[de]) != null ? he : null;
|
|
167
167
|
return { char: ye, placeholderChar: pe, isActive: me, hasFakeCaret: me && ye === null };
|
|
168
|
-
}), isFocused: z, isHovering: !T.disabled &&
|
|
169
|
-
return React.createElement(React.Fragment, null, E !== null && React.createElement("noscript", null, React.createElement("style", null, E)), React.createElement("div", { ref: H, "data-input-otp-container": !0, style:
|
|
168
|
+
}), isFocused: z, isHovering: !T.disabled && Q }), [z, Q, l, ne, Z, T.disabled, V]), fe = React.useMemo(() => C ? C(K) : React.createElement(jt.Provider, { value: K }, S), [S, K, C]);
|
|
169
|
+
return React.createElement(React.Fragment, null, E !== null && React.createElement("noscript", null, React.createElement("style", null, E)), React.createElement("div", { ref: H, "data-input-otp-container": !0, style: oe, className: _ }, fe, React.createElement("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" } }, ie)));
|
|
170
170
|
});
|
|
171
171
|
Lt.displayName = "Input";
|
|
172
172
|
function $(t, e) {
|
|
@@ -277,40 +277,47 @@ const createLucideIcon = (t, e) => {
|
|
|
277
277
|
* This source code is licensed under the ISC license.
|
|
278
278
|
* See the LICENSE file in the root directory of this source tree.
|
|
279
279
|
*/
|
|
280
|
-
const __iconNode$
|
|
280
|
+
const __iconNode$F = [
|
|
281
281
|
["path", { d: "M12 8V4H8", key: "hb8ula" }],
|
|
282
282
|
["rect", { width: "16", height: "12", x: "4", y: "8", rx: "2", key: "enze0r" }],
|
|
283
283
|
["path", { d: "M2 14h2", key: "vft8re" }],
|
|
284
284
|
["path", { d: "M20 14h2", key: "4cs60a" }],
|
|
285
285
|
["path", { d: "M15 13v2", key: "1xurst" }],
|
|
286
286
|
["path", { d: "M9 13v2", key: "rq6x2g" }]
|
|
287
|
-
], Bot = createLucideIcon("Bot", __iconNode$
|
|
287
|
+
], Bot = createLucideIcon("Bot", __iconNode$F);
|
|
288
288
|
/**
|
|
289
289
|
* @license lucide-react v0.479.0 - ISC
|
|
290
290
|
*
|
|
291
291
|
* This source code is licensed under the ISC license.
|
|
292
292
|
* See the LICENSE file in the root directory of this source tree.
|
|
293
293
|
*/
|
|
294
|
-
const __iconNode$
|
|
294
|
+
const __iconNode$E = [
|
|
295
295
|
["path", { d: "M8 2v4", key: "1cmpym" }],
|
|
296
296
|
["path", { d: "M16 2v4", key: "4m81vk" }],
|
|
297
297
|
["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
|
|
298
298
|
["path", { d: "M3 10h18", key: "8toen8" }]
|
|
299
|
-
], Calendar = createLucideIcon("Calendar", __iconNode$
|
|
299
|
+
], Calendar = createLucideIcon("Calendar", __iconNode$E);
|
|
300
|
+
/**
|
|
301
|
+
* @license lucide-react v0.479.0 - ISC
|
|
302
|
+
*
|
|
303
|
+
* This source code is licensed under the ISC license.
|
|
304
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
305
|
+
*/
|
|
306
|
+
const __iconNode$D = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], Check = createLucideIcon("Check", __iconNode$D);
|
|
300
307
|
/**
|
|
301
308
|
* @license lucide-react v0.479.0 - ISC
|
|
302
309
|
*
|
|
303
310
|
* This source code is licensed under the ISC license.
|
|
304
311
|
* See the LICENSE file in the root directory of this source tree.
|
|
305
312
|
*/
|
|
306
|
-
const __iconNode$C = [["path", { d: "
|
|
313
|
+
const __iconNode$C = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], ChevronDown = createLucideIcon("ChevronDown", __iconNode$C);
|
|
307
314
|
/**
|
|
308
315
|
* @license lucide-react v0.479.0 - ISC
|
|
309
316
|
*
|
|
310
317
|
* This source code is licensed under the ISC license.
|
|
311
318
|
* See the LICENSE file in the root directory of this source tree.
|
|
312
319
|
*/
|
|
313
|
-
const __iconNode$B = [["path", { d: "
|
|
320
|
+
const __iconNode$B = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], ChevronLeft = createLucideIcon("ChevronLeft", __iconNode$B);
|
|
314
321
|
/**
|
|
315
322
|
* @license lucide-react v0.479.0 - ISC
|
|
316
323
|
*
|
|
@@ -1065,13 +1072,13 @@ const fromTheme = (t) => {
|
|
|
1065
1072
|
"left-bottom"
|
|
1066
1073
|
], R = () => [...M(), isArbitraryVariable, isArbitraryValue], N = () => ["auto", "hidden", "clip", "visible", "scroll"], O = () => ["auto", "contain", "none"], D = () => [isArbitraryVariable, isArbitraryValue, f], V = () => [isFraction, "full", "auto", ...D()], L = () => [isInteger, "none", "subgrid", isArbitraryVariable, isArbitraryValue], B = () => ["auto", {
|
|
1067
1074
|
span: ["full", isInteger, isArbitraryVariable, isArbitraryValue]
|
|
1068
|
-
}, isInteger, isArbitraryVariable, isArbitraryValue], j = () => [isInteger, "auto", isArbitraryVariable, isArbitraryValue], q = () => ["auto", "min", "max", "fr", isArbitraryVariable, isArbitraryValue], H = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], G = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], U = () => ["auto", ...D()],
|
|
1075
|
+
}, isInteger, isArbitraryVariable, isArbitraryValue], j = () => [isInteger, "auto", isArbitraryVariable, isArbitraryValue], q = () => ["auto", "min", "max", "fr", isArbitraryVariable, isArbitraryValue], H = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], G = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], U = () => ["auto", ...D()], Q = () => [isFraction, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...D()], F = () => [t, isArbitraryVariable, isArbitraryValue], z = () => [...M(), isArbitraryVariablePosition, isArbitraryPosition, {
|
|
1069
1076
|
position: [isArbitraryVariable, isArbitraryValue]
|
|
1070
1077
|
}], W = () => ["no-repeat", {
|
|
1071
1078
|
repeat: ["", "x", "y", "space", "round"]
|
|
1072
|
-
}],
|
|
1079
|
+
}], Z = () => ["auto", "cover", "contain", isArbitraryVariableSize, isArbitrarySize, {
|
|
1073
1080
|
size: [isArbitraryVariable, isArbitraryValue]
|
|
1074
|
-
}],
|
|
1081
|
+
}], te = () => [isPercent$1, isArbitraryVariableLength, isArbitraryLength], ne = () => [
|
|
1075
1082
|
// Deprecated since Tailwind CSS v4.0.0
|
|
1076
1083
|
"",
|
|
1077
1084
|
"none",
|
|
@@ -1079,14 +1086,14 @@ const fromTheme = (t) => {
|
|
|
1079
1086
|
p,
|
|
1080
1087
|
isArbitraryVariable,
|
|
1081
1088
|
isArbitraryValue
|
|
1082
|
-
],
|
|
1089
|
+
], ae = () => ["", isNumber$2, isArbitraryVariableLength, isArbitraryLength], le = () => ["solid", "dashed", "dotted", "double"], ue = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], se = () => [isNumber$2, isPercent$1, isArbitraryVariablePosition, isArbitraryPosition], ce = () => [
|
|
1083
1090
|
// Deprecated since Tailwind CSS v4.0.0
|
|
1084
1091
|
"",
|
|
1085
1092
|
"none",
|
|
1086
1093
|
E,
|
|
1087
1094
|
isArbitraryVariable,
|
|
1088
1095
|
isArbitraryValue
|
|
1089
|
-
],
|
|
1096
|
+
], oe = () => ["none", isNumber$2, isArbitraryVariable, isArbitraryValue], J = () => ["none", isNumber$2, isArbitraryVariable, isArbitraryValue], ie = () => [isNumber$2, isArbitraryVariable, isArbitraryValue], K = () => [isFraction, "full", ...D()];
|
|
1090
1097
|
return {
|
|
1091
1098
|
cacheSize: 500,
|
|
1092
1099
|
theme: {
|
|
@@ -1710,14 +1717,14 @@ const fromTheme = (t) => {
|
|
|
1710
1717
|
* @see https://tailwindcss.com/docs/width#setting-both-width-and-height
|
|
1711
1718
|
*/
|
|
1712
1719
|
size: [{
|
|
1713
|
-
size:
|
|
1720
|
+
size: Q()
|
|
1714
1721
|
}],
|
|
1715
1722
|
/**
|
|
1716
1723
|
* Width
|
|
1717
1724
|
* @see https://tailwindcss.com/docs/width
|
|
1718
1725
|
*/
|
|
1719
1726
|
w: [{
|
|
1720
|
-
w: [d, "screen", ...
|
|
1727
|
+
w: [d, "screen", ...Q()]
|
|
1721
1728
|
}],
|
|
1722
1729
|
/**
|
|
1723
1730
|
* Min-Width
|
|
@@ -1729,7 +1736,7 @@ const fromTheme = (t) => {
|
|
|
1729
1736
|
"screen",
|
|
1730
1737
|
/** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
1731
1738
|
"none",
|
|
1732
|
-
...
|
|
1739
|
+
...Q()
|
|
1733
1740
|
]
|
|
1734
1741
|
}],
|
|
1735
1742
|
/**
|
|
@@ -1747,7 +1754,7 @@ const fromTheme = (t) => {
|
|
|
1747
1754
|
{
|
|
1748
1755
|
screen: [u]
|
|
1749
1756
|
},
|
|
1750
|
-
...
|
|
1757
|
+
...Q()
|
|
1751
1758
|
]
|
|
1752
1759
|
}],
|
|
1753
1760
|
/**
|
|
@@ -1755,21 +1762,21 @@ const fromTheme = (t) => {
|
|
|
1755
1762
|
* @see https://tailwindcss.com/docs/height
|
|
1756
1763
|
*/
|
|
1757
1764
|
h: [{
|
|
1758
|
-
h: ["screen", ...
|
|
1765
|
+
h: ["screen", ...Q()]
|
|
1759
1766
|
}],
|
|
1760
1767
|
/**
|
|
1761
1768
|
* Min-Height
|
|
1762
1769
|
* @see https://tailwindcss.com/docs/min-height
|
|
1763
1770
|
*/
|
|
1764
1771
|
"min-h": [{
|
|
1765
|
-
"min-h": ["screen", "none", ...
|
|
1772
|
+
"min-h": ["screen", "none", ...Q()]
|
|
1766
1773
|
}],
|
|
1767
1774
|
/**
|
|
1768
1775
|
* Max-Height
|
|
1769
1776
|
* @see https://tailwindcss.com/docs/max-height
|
|
1770
1777
|
*/
|
|
1771
1778
|
"max-h": [{
|
|
1772
|
-
"max-h": ["screen", ...
|
|
1779
|
+
"max-h": ["screen", ...Q()]
|
|
1773
1780
|
}],
|
|
1774
1781
|
// ------------------
|
|
1775
1782
|
// --- Typography ---
|
|
@@ -2052,7 +2059,7 @@ const fromTheme = (t) => {
|
|
|
2052
2059
|
* @see https://tailwindcss.com/docs/background-size
|
|
2053
2060
|
*/
|
|
2054
2061
|
"bg-size": [{
|
|
2055
|
-
bg:
|
|
2062
|
+
bg: Z()
|
|
2056
2063
|
}],
|
|
2057
2064
|
/**
|
|
2058
2065
|
* Background Image
|
|
@@ -2079,21 +2086,21 @@ const fromTheme = (t) => {
|
|
|
2079
2086
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2080
2087
|
*/
|
|
2081
2088
|
"gradient-from-pos": [{
|
|
2082
|
-
from:
|
|
2089
|
+
from: te()
|
|
2083
2090
|
}],
|
|
2084
2091
|
/**
|
|
2085
2092
|
* Gradient Color Stops Via Position
|
|
2086
2093
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2087
2094
|
*/
|
|
2088
2095
|
"gradient-via-pos": [{
|
|
2089
|
-
via:
|
|
2096
|
+
via: te()
|
|
2090
2097
|
}],
|
|
2091
2098
|
/**
|
|
2092
2099
|
* Gradient Color Stops To Position
|
|
2093
2100
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2094
2101
|
*/
|
|
2095
2102
|
"gradient-to-pos": [{
|
|
2096
|
-
to:
|
|
2103
|
+
to: te()
|
|
2097
2104
|
}],
|
|
2098
2105
|
/**
|
|
2099
2106
|
* Gradient Color Stops From
|
|
@@ -2124,175 +2131,175 @@ const fromTheme = (t) => {
|
|
|
2124
2131
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2125
2132
|
*/
|
|
2126
2133
|
rounded: [{
|
|
2127
|
-
rounded:
|
|
2134
|
+
rounded: ne()
|
|
2128
2135
|
}],
|
|
2129
2136
|
/**
|
|
2130
2137
|
* Border Radius Start
|
|
2131
2138
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2132
2139
|
*/
|
|
2133
2140
|
"rounded-s": [{
|
|
2134
|
-
"rounded-s":
|
|
2141
|
+
"rounded-s": ne()
|
|
2135
2142
|
}],
|
|
2136
2143
|
/**
|
|
2137
2144
|
* Border Radius End
|
|
2138
2145
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2139
2146
|
*/
|
|
2140
2147
|
"rounded-e": [{
|
|
2141
|
-
"rounded-e":
|
|
2148
|
+
"rounded-e": ne()
|
|
2142
2149
|
}],
|
|
2143
2150
|
/**
|
|
2144
2151
|
* Border Radius Top
|
|
2145
2152
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2146
2153
|
*/
|
|
2147
2154
|
"rounded-t": [{
|
|
2148
|
-
"rounded-t":
|
|
2155
|
+
"rounded-t": ne()
|
|
2149
2156
|
}],
|
|
2150
2157
|
/**
|
|
2151
2158
|
* Border Radius Right
|
|
2152
2159
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2153
2160
|
*/
|
|
2154
2161
|
"rounded-r": [{
|
|
2155
|
-
"rounded-r":
|
|
2162
|
+
"rounded-r": ne()
|
|
2156
2163
|
}],
|
|
2157
2164
|
/**
|
|
2158
2165
|
* Border Radius Bottom
|
|
2159
2166
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2160
2167
|
*/
|
|
2161
2168
|
"rounded-b": [{
|
|
2162
|
-
"rounded-b":
|
|
2169
|
+
"rounded-b": ne()
|
|
2163
2170
|
}],
|
|
2164
2171
|
/**
|
|
2165
2172
|
* Border Radius Left
|
|
2166
2173
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2167
2174
|
*/
|
|
2168
2175
|
"rounded-l": [{
|
|
2169
|
-
"rounded-l":
|
|
2176
|
+
"rounded-l": ne()
|
|
2170
2177
|
}],
|
|
2171
2178
|
/**
|
|
2172
2179
|
* Border Radius Start Start
|
|
2173
2180
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2174
2181
|
*/
|
|
2175
2182
|
"rounded-ss": [{
|
|
2176
|
-
"rounded-ss":
|
|
2183
|
+
"rounded-ss": ne()
|
|
2177
2184
|
}],
|
|
2178
2185
|
/**
|
|
2179
2186
|
* Border Radius Start End
|
|
2180
2187
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2181
2188
|
*/
|
|
2182
2189
|
"rounded-se": [{
|
|
2183
|
-
"rounded-se":
|
|
2190
|
+
"rounded-se": ne()
|
|
2184
2191
|
}],
|
|
2185
2192
|
/**
|
|
2186
2193
|
* Border Radius End End
|
|
2187
2194
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2188
2195
|
*/
|
|
2189
2196
|
"rounded-ee": [{
|
|
2190
|
-
"rounded-ee":
|
|
2197
|
+
"rounded-ee": ne()
|
|
2191
2198
|
}],
|
|
2192
2199
|
/**
|
|
2193
2200
|
* Border Radius End Start
|
|
2194
2201
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2195
2202
|
*/
|
|
2196
2203
|
"rounded-es": [{
|
|
2197
|
-
"rounded-es":
|
|
2204
|
+
"rounded-es": ne()
|
|
2198
2205
|
}],
|
|
2199
2206
|
/**
|
|
2200
2207
|
* Border Radius Top Left
|
|
2201
2208
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2202
2209
|
*/
|
|
2203
2210
|
"rounded-tl": [{
|
|
2204
|
-
"rounded-tl":
|
|
2211
|
+
"rounded-tl": ne()
|
|
2205
2212
|
}],
|
|
2206
2213
|
/**
|
|
2207
2214
|
* Border Radius Top Right
|
|
2208
2215
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2209
2216
|
*/
|
|
2210
2217
|
"rounded-tr": [{
|
|
2211
|
-
"rounded-tr":
|
|
2218
|
+
"rounded-tr": ne()
|
|
2212
2219
|
}],
|
|
2213
2220
|
/**
|
|
2214
2221
|
* Border Radius Bottom Right
|
|
2215
2222
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2216
2223
|
*/
|
|
2217
2224
|
"rounded-br": [{
|
|
2218
|
-
"rounded-br":
|
|
2225
|
+
"rounded-br": ne()
|
|
2219
2226
|
}],
|
|
2220
2227
|
/**
|
|
2221
2228
|
* Border Radius Bottom Left
|
|
2222
2229
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2223
2230
|
*/
|
|
2224
2231
|
"rounded-bl": [{
|
|
2225
|
-
"rounded-bl":
|
|
2232
|
+
"rounded-bl": ne()
|
|
2226
2233
|
}],
|
|
2227
2234
|
/**
|
|
2228
2235
|
* Border Width
|
|
2229
2236
|
* @see https://tailwindcss.com/docs/border-width
|
|
2230
2237
|
*/
|
|
2231
2238
|
"border-w": [{
|
|
2232
|
-
border:
|
|
2239
|
+
border: ae()
|
|
2233
2240
|
}],
|
|
2234
2241
|
/**
|
|
2235
2242
|
* Border Width X
|
|
2236
2243
|
* @see https://tailwindcss.com/docs/border-width
|
|
2237
2244
|
*/
|
|
2238
2245
|
"border-w-x": [{
|
|
2239
|
-
"border-x":
|
|
2246
|
+
"border-x": ae()
|
|
2240
2247
|
}],
|
|
2241
2248
|
/**
|
|
2242
2249
|
* Border Width Y
|
|
2243
2250
|
* @see https://tailwindcss.com/docs/border-width
|
|
2244
2251
|
*/
|
|
2245
2252
|
"border-w-y": [{
|
|
2246
|
-
"border-y":
|
|
2253
|
+
"border-y": ae()
|
|
2247
2254
|
}],
|
|
2248
2255
|
/**
|
|
2249
2256
|
* Border Width Start
|
|
2250
2257
|
* @see https://tailwindcss.com/docs/border-width
|
|
2251
2258
|
*/
|
|
2252
2259
|
"border-w-s": [{
|
|
2253
|
-
"border-s":
|
|
2260
|
+
"border-s": ae()
|
|
2254
2261
|
}],
|
|
2255
2262
|
/**
|
|
2256
2263
|
* Border Width End
|
|
2257
2264
|
* @see https://tailwindcss.com/docs/border-width
|
|
2258
2265
|
*/
|
|
2259
2266
|
"border-w-e": [{
|
|
2260
|
-
"border-e":
|
|
2267
|
+
"border-e": ae()
|
|
2261
2268
|
}],
|
|
2262
2269
|
/**
|
|
2263
2270
|
* Border Width Top
|
|
2264
2271
|
* @see https://tailwindcss.com/docs/border-width
|
|
2265
2272
|
*/
|
|
2266
2273
|
"border-w-t": [{
|
|
2267
|
-
"border-t":
|
|
2274
|
+
"border-t": ae()
|
|
2268
2275
|
}],
|
|
2269
2276
|
/**
|
|
2270
2277
|
* Border Width Right
|
|
2271
2278
|
* @see https://tailwindcss.com/docs/border-width
|
|
2272
2279
|
*/
|
|
2273
2280
|
"border-w-r": [{
|
|
2274
|
-
"border-r":
|
|
2281
|
+
"border-r": ae()
|
|
2275
2282
|
}],
|
|
2276
2283
|
/**
|
|
2277
2284
|
* Border Width Bottom
|
|
2278
2285
|
* @see https://tailwindcss.com/docs/border-width
|
|
2279
2286
|
*/
|
|
2280
2287
|
"border-w-b": [{
|
|
2281
|
-
"border-b":
|
|
2288
|
+
"border-b": ae()
|
|
2282
2289
|
}],
|
|
2283
2290
|
/**
|
|
2284
2291
|
* Border Width Left
|
|
2285
2292
|
* @see https://tailwindcss.com/docs/border-width
|
|
2286
2293
|
*/
|
|
2287
2294
|
"border-w-l": [{
|
|
2288
|
-
"border-l":
|
|
2295
|
+
"border-l": ae()
|
|
2289
2296
|
}],
|
|
2290
2297
|
/**
|
|
2291
2298
|
* Divide Width X
|
|
2292
2299
|
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
2293
2300
|
*/
|
|
2294
2301
|
"divide-x": [{
|
|
2295
|
-
"divide-x":
|
|
2302
|
+
"divide-x": ae()
|
|
2296
2303
|
}],
|
|
2297
2304
|
/**
|
|
2298
2305
|
* Divide Width X Reverse
|
|
@@ -2304,7 +2311,7 @@ const fromTheme = (t) => {
|
|
|
2304
2311
|
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
2305
2312
|
*/
|
|
2306
2313
|
"divide-y": [{
|
|
2307
|
-
"divide-y":
|
|
2314
|
+
"divide-y": ae()
|
|
2308
2315
|
}],
|
|
2309
2316
|
/**
|
|
2310
2317
|
* Divide Width Y Reverse
|
|
@@ -2466,7 +2473,7 @@ const fromTheme = (t) => {
|
|
|
2466
2473
|
* @see https://tailwindcss.com/docs/box-shadow#adding-a-ring
|
|
2467
2474
|
*/
|
|
2468
2475
|
"ring-w": [{
|
|
2469
|
-
ring:
|
|
2476
|
+
ring: ae()
|
|
2470
2477
|
}],
|
|
2471
2478
|
/**
|
|
2472
2479
|
* Ring Width Inset
|
|
@@ -2505,7 +2512,7 @@ const fromTheme = (t) => {
|
|
|
2505
2512
|
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-ring
|
|
2506
2513
|
*/
|
|
2507
2514
|
"inset-ring-w": [{
|
|
2508
|
-
"inset-ring":
|
|
2515
|
+
"inset-ring": ae()
|
|
2509
2516
|
}],
|
|
2510
2517
|
/**
|
|
2511
2518
|
* Inset Ring Color
|
|
@@ -2729,7 +2736,7 @@ const fromTheme = (t) => {
|
|
|
2729
2736
|
* @see https://tailwindcss.com/docs/mask-size
|
|
2730
2737
|
*/
|
|
2731
2738
|
"mask-size": [{
|
|
2732
|
-
mask:
|
|
2739
|
+
mask: Z()
|
|
2733
2740
|
}],
|
|
2734
2741
|
/**
|
|
2735
2742
|
* Mask Type
|
|
@@ -2766,7 +2773,7 @@ const fromTheme = (t) => {
|
|
|
2766
2773
|
* @see https://tailwindcss.com/docs/blur
|
|
2767
2774
|
*/
|
|
2768
2775
|
blur: [{
|
|
2769
|
-
blur:
|
|
2776
|
+
blur: ce()
|
|
2770
2777
|
}],
|
|
2771
2778
|
/**
|
|
2772
2779
|
* Brightness
|
|
@@ -2856,7 +2863,7 @@ const fromTheme = (t) => {
|
|
|
2856
2863
|
* @see https://tailwindcss.com/docs/backdrop-blur
|
|
2857
2864
|
*/
|
|
2858
2865
|
"backdrop-blur": [{
|
|
2859
|
-
"backdrop-blur":
|
|
2866
|
+
"backdrop-blur": ce()
|
|
2860
2867
|
}],
|
|
2861
2868
|
/**
|
|
2862
2869
|
* Backdrop Brightness
|
|
@@ -3033,56 +3040,56 @@ const fromTheme = (t) => {
|
|
|
3033
3040
|
* @see https://tailwindcss.com/docs/rotate
|
|
3034
3041
|
*/
|
|
3035
3042
|
rotate: [{
|
|
3036
|
-
rotate:
|
|
3043
|
+
rotate: oe()
|
|
3037
3044
|
}],
|
|
3038
3045
|
/**
|
|
3039
3046
|
* Rotate X
|
|
3040
3047
|
* @see https://tailwindcss.com/docs/rotate
|
|
3041
3048
|
*/
|
|
3042
3049
|
"rotate-x": [{
|
|
3043
|
-
"rotate-x":
|
|
3050
|
+
"rotate-x": oe()
|
|
3044
3051
|
}],
|
|
3045
3052
|
/**
|
|
3046
3053
|
* Rotate Y
|
|
3047
3054
|
* @see https://tailwindcss.com/docs/rotate
|
|
3048
3055
|
*/
|
|
3049
3056
|
"rotate-y": [{
|
|
3050
|
-
"rotate-y":
|
|
3057
|
+
"rotate-y": oe()
|
|
3051
3058
|
}],
|
|
3052
3059
|
/**
|
|
3053
3060
|
* Rotate Z
|
|
3054
3061
|
* @see https://tailwindcss.com/docs/rotate
|
|
3055
3062
|
*/
|
|
3056
3063
|
"rotate-z": [{
|
|
3057
|
-
"rotate-z":
|
|
3064
|
+
"rotate-z": oe()
|
|
3058
3065
|
}],
|
|
3059
3066
|
/**
|
|
3060
3067
|
* Scale
|
|
3061
3068
|
* @see https://tailwindcss.com/docs/scale
|
|
3062
3069
|
*/
|
|
3063
3070
|
scale: [{
|
|
3064
|
-
scale:
|
|
3071
|
+
scale: J()
|
|
3065
3072
|
}],
|
|
3066
3073
|
/**
|
|
3067
3074
|
* Scale X
|
|
3068
3075
|
* @see https://tailwindcss.com/docs/scale
|
|
3069
3076
|
*/
|
|
3070
3077
|
"scale-x": [{
|
|
3071
|
-
"scale-x":
|
|
3078
|
+
"scale-x": J()
|
|
3072
3079
|
}],
|
|
3073
3080
|
/**
|
|
3074
3081
|
* Scale Y
|
|
3075
3082
|
* @see https://tailwindcss.com/docs/scale
|
|
3076
3083
|
*/
|
|
3077
3084
|
"scale-y": [{
|
|
3078
|
-
"scale-y":
|
|
3085
|
+
"scale-y": J()
|
|
3079
3086
|
}],
|
|
3080
3087
|
/**
|
|
3081
3088
|
* Scale Z
|
|
3082
3089
|
* @see https://tailwindcss.com/docs/scale
|
|
3083
3090
|
*/
|
|
3084
3091
|
"scale-z": [{
|
|
3085
|
-
"scale-z":
|
|
3092
|
+
"scale-z": J()
|
|
3086
3093
|
}],
|
|
3087
3094
|
/**
|
|
3088
3095
|
* Scale 3D
|
|
@@ -3094,21 +3101,21 @@ const fromTheme = (t) => {
|
|
|
3094
3101
|
* @see https://tailwindcss.com/docs/skew
|
|
3095
3102
|
*/
|
|
3096
3103
|
skew: [{
|
|
3097
|
-
skew:
|
|
3104
|
+
skew: ie()
|
|
3098
3105
|
}],
|
|
3099
3106
|
/**
|
|
3100
3107
|
* Skew X
|
|
3101
3108
|
* @see https://tailwindcss.com/docs/skew
|
|
3102
3109
|
*/
|
|
3103
3110
|
"skew-x": [{
|
|
3104
|
-
"skew-x":
|
|
3111
|
+
"skew-x": ie()
|
|
3105
3112
|
}],
|
|
3106
3113
|
/**
|
|
3107
3114
|
* Skew Y
|
|
3108
3115
|
* @see https://tailwindcss.com/docs/skew
|
|
3109
3116
|
*/
|
|
3110
3117
|
"skew-y": [{
|
|
3111
|
-
"skew-y":
|
|
3118
|
+
"skew-y": ie()
|
|
3112
3119
|
}],
|
|
3113
3120
|
/**
|
|
3114
3121
|
* Transform
|
|
@@ -3136,28 +3143,28 @@ const fromTheme = (t) => {
|
|
|
3136
3143
|
* @see https://tailwindcss.com/docs/translate
|
|
3137
3144
|
*/
|
|
3138
3145
|
translate: [{
|
|
3139
|
-
translate:
|
|
3146
|
+
translate: K()
|
|
3140
3147
|
}],
|
|
3141
3148
|
/**
|
|
3142
3149
|
* Translate X
|
|
3143
3150
|
* @see https://tailwindcss.com/docs/translate
|
|
3144
3151
|
*/
|
|
3145
3152
|
"translate-x": [{
|
|
3146
|
-
"translate-x":
|
|
3153
|
+
"translate-x": K()
|
|
3147
3154
|
}],
|
|
3148
3155
|
/**
|
|
3149
3156
|
* Translate Y
|
|
3150
3157
|
* @see https://tailwindcss.com/docs/translate
|
|
3151
3158
|
*/
|
|
3152
3159
|
"translate-y": [{
|
|
3153
|
-
"translate-y":
|
|
3160
|
+
"translate-y": K()
|
|
3154
3161
|
}],
|
|
3155
3162
|
/**
|
|
3156
3163
|
* Translate Z
|
|
3157
3164
|
* @see https://tailwindcss.com/docs/translate
|
|
3158
3165
|
*/
|
|
3159
3166
|
"translate-z": [{
|
|
3160
|
-
"translate-z":
|
|
3167
|
+
"translate-z": K()
|
|
3161
3168
|
}],
|
|
3162
3169
|
/**
|
|
3163
3170
|
* Translate None
|
|
@@ -5283,14 +5290,14 @@ const arrow$3 = (t) => ({
|
|
|
5283
5290
|
}, _ = getAlignmentAxis(o), E = getAxisLength(_), C = await u.getDimensions(p), S = _ === "y", T = S ? "top" : "left", A = S ? "bottom" : "right", I = S ? "clientHeight" : "clientWidth", M = l.reference[E] + l.reference[_] - b[_] - l.floating[E], R = b[_] - l.reference[_], N = await (u.getOffsetParent == null ? void 0 : u.getOffsetParent(p));
|
|
5284
5291
|
let O = N ? N[I] : 0;
|
|
5285
5292
|
(!O || !await (u.isElement == null ? void 0 : u.isElement(N))) && (O = d.floating[I] || l.floating[E]);
|
|
5286
|
-
const D = M / 2 - R / 2, V = O / 2 - C[E] / 2 - 1, L = min$2(g[T], V), B = min$2(g[A], V), j = L, q = O - C[E] - B, H = O / 2 - C[E] / 2 + D, G = clamp$1(j, H, q), U = !f.arrow && getAlignment(o) != null && H !== G && l.reference[E] / 2 - (H < j ? L : B) - C[E] / 2 < 0,
|
|
5293
|
+
const D = M / 2 - R / 2, V = O / 2 - C[E] / 2 - 1, L = min$2(g[T], V), B = min$2(g[A], V), j = L, q = O - C[E] - B, H = O / 2 - C[E] / 2 + D, G = clamp$1(j, H, q), U = !f.arrow && getAlignment(o) != null && H !== G && l.reference[E] / 2 - (H < j ? L : B) - C[E] / 2 < 0, Q = U ? H < j ? H - j : H - q : 0;
|
|
5287
5294
|
return {
|
|
5288
|
-
[_]: b[_] +
|
|
5295
|
+
[_]: b[_] + Q,
|
|
5289
5296
|
data: {
|
|
5290
5297
|
[_]: G,
|
|
5291
|
-
centerOffset: H - G -
|
|
5298
|
+
centerOffset: H - G - Q,
|
|
5292
5299
|
...U && {
|
|
5293
|
-
alignmentOffset:
|
|
5300
|
+
alignmentOffset: Q
|
|
5294
5301
|
}
|
|
5295
5302
|
},
|
|
5296
5303
|
reset: U
|
|
@@ -5344,12 +5351,12 @@ const arrow$3 = (t) => ({
|
|
|
5344
5351
|
placement: G
|
|
5345
5352
|
}
|
|
5346
5353
|
};
|
|
5347
|
-
let U = (j = L.filter((
|
|
5354
|
+
let U = (j = L.filter((Q) => Q.overflows[0] <= 0).sort((Q, F) => Q.overflows[1] - F.overflows[1])[0]) == null ? void 0 : j.placement;
|
|
5348
5355
|
if (!U)
|
|
5349
5356
|
switch (_) {
|
|
5350
5357
|
case "bestFit": {
|
|
5351
5358
|
var q;
|
|
5352
|
-
const
|
|
5359
|
+
const Q = (q = L.filter((F) => {
|
|
5353
5360
|
if (N) {
|
|
5354
5361
|
const z = getSideAxis(F.placement);
|
|
5355
5362
|
return z === A || // Create a bias to the `y` side axis due to horizontal
|
|
@@ -5358,7 +5365,7 @@ const arrow$3 = (t) => ({
|
|
|
5358
5365
|
}
|
|
5359
5366
|
return !0;
|
|
5360
5367
|
}).map((F) => [F.placement, F.overflows.filter((z) => z > 0).reduce((z, W) => z + W, 0)]).sort((F, z) => F[1] - z[1])[0]) == null ? void 0 : q[0];
|
|
5361
|
-
|
|
5368
|
+
Q && (U = Q);
|
|
5362
5369
|
break;
|
|
5363
5370
|
}
|
|
5364
5371
|
case "initialPlacement":
|
|
@@ -6222,7 +6229,7 @@ function useFloating(t) {
|
|
|
6222
6229
|
}), [A, I]), U = React.useMemo(() => ({
|
|
6223
6230
|
reference: M,
|
|
6224
6231
|
floating: R
|
|
6225
|
-
}), [M, R]),
|
|
6232
|
+
}), [M, R]), Q = React.useMemo(() => {
|
|
6226
6233
|
const F = {
|
|
6227
6234
|
position: n,
|
|
6228
6235
|
left: 0,
|
|
@@ -6248,8 +6255,8 @@ function useFloating(t) {
|
|
|
6248
6255
|
update: q,
|
|
6249
6256
|
refs: G,
|
|
6250
6257
|
elements: U,
|
|
6251
|
-
floatingStyles:
|
|
6252
|
-
}), [m, q, G, U,
|
|
6258
|
+
floatingStyles: Q
|
|
6259
|
+
}), [m, q, G, U, Q]);
|
|
6253
6260
|
}
|
|
6254
6261
|
const arrow$1 = (t) => {
|
|
6255
6262
|
function e(n) {
|
|
@@ -6349,7 +6356,7 @@ var ANCHOR_NAME$1 = "PopperAnchor", PopperAnchor = React.forwardRef(
|
|
|
6349
6356
|
PopperAnchor.displayName = ANCHOR_NAME$1;
|
|
6350
6357
|
var CONTENT_NAME$5 = "PopperContent", [PopperContentProvider, useContentContext] = createPopperContext(CONTENT_NAME$5), PopperContent = React.forwardRef(
|
|
6351
6358
|
(t, e) => {
|
|
6352
|
-
var se,
|
|
6359
|
+
var se, ce, oe, J, ie, K;
|
|
6353
6360
|
const {
|
|
6354
6361
|
__scopePopper: n,
|
|
6355
6362
|
side: i = "bottom",
|
|
@@ -6365,16 +6372,16 @@ var CONTENT_NAME$5 = "PopperContent", [PopperContentProvider, useContentContext]
|
|
|
6365
6372
|
updatePositionStrategy: _ = "optimized",
|
|
6366
6373
|
onPlaced: E,
|
|
6367
6374
|
...C
|
|
6368
|
-
} = t, S = usePopperContext(CONTENT_NAME$5, n), [T, A] = React.useState(null), I = useComposedRefs(e, (
|
|
6375
|
+
} = t, S = usePopperContext(CONTENT_NAME$5, n), [T, A] = React.useState(null), I = useComposedRefs(e, (fe) => A(fe)), [M, R] = React.useState(null), N = useSize(M), O = (N == null ? void 0 : N.width) ?? 0, D = (N == null ? void 0 : N.height) ?? 0, V = i + (l !== "center" ? "-" + l : ""), L = typeof m == "number" ? m : { top: 0, right: 0, bottom: 0, left: 0, ...m }, B = Array.isArray(p) ? p : [p], j = B.length > 0, q = {
|
|
6369
6376
|
padding: L,
|
|
6370
6377
|
boundary: B.filter(isNotNull),
|
|
6371
6378
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
6372
6379
|
altBoundary: j
|
|
6373
|
-
}, { refs: H, floatingStyles: G, placement: U, isPositioned:
|
|
6380
|
+
}, { refs: H, floatingStyles: G, placement: U, isPositioned: Q, middlewareData: F } = useFloating({
|
|
6374
6381
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
6375
6382
|
strategy: "fixed",
|
|
6376
6383
|
placement: V,
|
|
6377
|
-
whileElementsMounted: (...
|
|
6384
|
+
whileElementsMounted: (...fe) => autoUpdate(...fe, {
|
|
6378
6385
|
animationFrame: _ === "always"
|
|
6379
6386
|
}),
|
|
6380
6387
|
elements: {
|
|
@@ -6391,20 +6398,20 @@ var CONTENT_NAME$5 = "PopperContent", [PopperContentProvider, useContentContext]
|
|
|
6391
6398
|
f && flip({ ...q }),
|
|
6392
6399
|
size({
|
|
6393
6400
|
...q,
|
|
6394
|
-
apply: ({ elements:
|
|
6395
|
-
const { width: me, height: ye } =
|
|
6396
|
-
pe.setProperty("--radix-popper-available-width", `${
|
|
6401
|
+
apply: ({ elements: fe, rects: ee, availableWidth: de, availableHeight: he }) => {
|
|
6402
|
+
const { width: me, height: ye } = ee.reference, pe = fe.floating.style;
|
|
6403
|
+
pe.setProperty("--radix-popper-available-width", `${de}px`), pe.setProperty("--radix-popper-available-height", `${he}px`), pe.setProperty("--radix-popper-anchor-width", `${me}px`), pe.setProperty("--radix-popper-anchor-height", `${ye}px`);
|
|
6397
6404
|
}
|
|
6398
6405
|
}),
|
|
6399
6406
|
M && arrow({ element: M, padding: d }),
|
|
6400
6407
|
transformOrigin({ arrowWidth: O, arrowHeight: D }),
|
|
6401
6408
|
b && hide({ strategy: "referenceHidden", ...q })
|
|
6402
6409
|
]
|
|
6403
|
-
}), [z, W] = getSideAndAlignFromPlacement(U),
|
|
6410
|
+
}), [z, W] = getSideAndAlignFromPlacement(U), Z = useCallbackRef$1(E);
|
|
6404
6411
|
useLayoutEffect2(() => {
|
|
6405
|
-
|
|
6406
|
-
}, [
|
|
6407
|
-
const
|
|
6412
|
+
Q && (Z == null || Z());
|
|
6413
|
+
}, [Q, Z]);
|
|
6414
|
+
const te = (se = F.arrow) == null ? void 0 : se.x, ne = (ce = F.arrow) == null ? void 0 : ce.y, ae = ((oe = F.arrow) == null ? void 0 : oe.centerOffset) !== 0, [le, ue] = React.useState();
|
|
6408
6415
|
return useLayoutEffect2(() => {
|
|
6409
6416
|
T && ue(window.getComputedStyle(T).zIndex);
|
|
6410
6417
|
}, [T]), /* @__PURE__ */ jsx(
|
|
@@ -6414,18 +6421,18 @@ var CONTENT_NAME$5 = "PopperContent", [PopperContentProvider, useContentContext]
|
|
|
6414
6421
|
"data-radix-popper-content-wrapper": "",
|
|
6415
6422
|
style: {
|
|
6416
6423
|
...G,
|
|
6417
|
-
transform:
|
|
6424
|
+
transform: Q ? G.transform : "translate(0, -200%)",
|
|
6418
6425
|
// keep off the page when measuring
|
|
6419
6426
|
minWidth: "max-content",
|
|
6420
6427
|
zIndex: le,
|
|
6421
6428
|
"--radix-popper-transform-origin": [
|
|
6422
|
-
(
|
|
6423
|
-
(
|
|
6429
|
+
(J = F.transformOrigin) == null ? void 0 : J.x,
|
|
6430
|
+
(ie = F.transformOrigin) == null ? void 0 : ie.y
|
|
6424
6431
|
].join(" "),
|
|
6425
6432
|
// hide the content if using the hide middleware and should be hidden
|
|
6426
6433
|
// set visibility to hidden and disable pointer events so the UI behaves
|
|
6427
6434
|
// as if the PopperContent isn't there at all
|
|
6428
|
-
...((
|
|
6435
|
+
...((K = F.hide) == null ? void 0 : K.referenceHidden) && {
|
|
6429
6436
|
visibility: "hidden",
|
|
6430
6437
|
pointerEvents: "none"
|
|
6431
6438
|
}
|
|
@@ -6437,9 +6444,9 @@ var CONTENT_NAME$5 = "PopperContent", [PopperContentProvider, useContentContext]
|
|
|
6437
6444
|
scope: n,
|
|
6438
6445
|
placedSide: z,
|
|
6439
6446
|
onArrowChange: R,
|
|
6440
|
-
arrowX:
|
|
6441
|
-
arrowY:
|
|
6442
|
-
shouldHideArrow:
|
|
6447
|
+
arrowX: te,
|
|
6448
|
+
arrowY: ne,
|
|
6449
|
+
shouldHideArrow: ae,
|
|
6443
6450
|
children: /* @__PURE__ */ jsx(
|
|
6444
6451
|
Primitive.div,
|
|
6445
6452
|
{
|
|
@@ -6451,7 +6458,7 @@ var CONTENT_NAME$5 = "PopperContent", [PopperContentProvider, useContentContext]
|
|
|
6451
6458
|
...C.style,
|
|
6452
6459
|
// if the PopperContent hasn't been placed yet (not all measurements done)
|
|
6453
6460
|
// we prevent animations so that users's animation don't kick in too early referring wrong sides
|
|
6454
|
-
animation:
|
|
6461
|
+
animation: Q ? void 0 : "none"
|
|
6455
6462
|
}
|
|
6456
6463
|
}
|
|
6457
6464
|
)
|
|
@@ -6805,17 +6812,17 @@ var CONTENT_NAME$4 = "MenuContent", [MenuContentProvider, useMenuContentContext]
|
|
|
6805
6812
|
onDismiss: _,
|
|
6806
6813
|
disableOutsideScroll: E,
|
|
6807
6814
|
...C
|
|
6808
|
-
} = t, S = useMenuContext(CONTENT_NAME$4, n), T = useMenuRootContext(CONTENT_NAME$4, n), A = usePopperScope$2(n), I = useRovingFocusGroupScope$1(n), M = useCollection$2(n), [R, N] = React.useState(null), O = React.useRef(null), D = useComposedRefs(e, O, S.onContentChange), V = React.useRef(0), L = React.useRef(""), B = React.useRef(0), j = React.useRef(null), q = React.useRef("right"), H = React.useRef(0), G = E ? ReactRemoveScroll : React.Fragment, U = E ? { as: Slot$1, allowPinchZoom: !0 } : void 0,
|
|
6809
|
-
var se,
|
|
6810
|
-
const W = L.current + z,
|
|
6811
|
-
(function
|
|
6812
|
-
L.current =
|
|
6815
|
+
} = t, S = useMenuContext(CONTENT_NAME$4, n), T = useMenuRootContext(CONTENT_NAME$4, n), A = usePopperScope$2(n), I = useRovingFocusGroupScope$1(n), M = useCollection$2(n), [R, N] = React.useState(null), O = React.useRef(null), D = useComposedRefs(e, O, S.onContentChange), V = React.useRef(0), L = React.useRef(""), B = React.useRef(0), j = React.useRef(null), q = React.useRef("right"), H = React.useRef(0), G = E ? ReactRemoveScroll : React.Fragment, U = E ? { as: Slot$1, allowPinchZoom: !0 } : void 0, Q = (z) => {
|
|
6816
|
+
var se, ce;
|
|
6817
|
+
const W = L.current + z, Z = M().filter((oe) => !oe.disabled), te = document.activeElement, ne = (se = Z.find((oe) => oe.ref.current === te)) == null ? void 0 : se.textValue, ae = Z.map((oe) => oe.textValue), le = getNextMatch(ae, W, ne), ue = (ce = Z.find((oe) => oe.textValue === le)) == null ? void 0 : ce.ref.current;
|
|
6818
|
+
(function oe(J) {
|
|
6819
|
+
L.current = J, window.clearTimeout(V.current), J !== "" && (V.current = window.setTimeout(() => oe(""), 1e3));
|
|
6813
6820
|
})(W), ue && setTimeout(() => ue.focus());
|
|
6814
6821
|
};
|
|
6815
6822
|
React.useEffect(() => () => window.clearTimeout(V.current), []), useFocusGuards();
|
|
6816
6823
|
const F = React.useCallback((z) => {
|
|
6817
|
-
var
|
|
6818
|
-
return q.current === ((
|
|
6824
|
+
var Z, te;
|
|
6825
|
+
return q.current === ((Z = j.current) == null ? void 0 : Z.side) && isPointerInGraceArea(z, (te = j.current) == null ? void 0 : te.area);
|
|
6819
6826
|
}, []);
|
|
6820
6827
|
return /* @__PURE__ */ jsx(
|
|
6821
6828
|
MenuContentProvider,
|
|
@@ -6892,10 +6899,10 @@ var CONTENT_NAME$4 = "MenuContent", [MenuContentProvider, useMenuContentContext]
|
|
|
6892
6899
|
ref: D,
|
|
6893
6900
|
style: { outline: "none", ...C.style },
|
|
6894
6901
|
onKeyDown: composeEventHandlers(C.onKeyDown, (z) => {
|
|
6895
|
-
const
|
|
6896
|
-
|
|
6897
|
-
const
|
|
6898
|
-
if (z.target !==
|
|
6902
|
+
const Z = z.target.closest("[data-radix-menu-content]") === z.currentTarget, te = z.ctrlKey || z.altKey || z.metaKey, ne = z.key.length === 1;
|
|
6903
|
+
Z && (z.key === "Tab" && z.preventDefault(), !te && ne && Q(z.key));
|
|
6904
|
+
const ae = O.current;
|
|
6905
|
+
if (z.target !== ae || !FIRST_LAST_KEYS.includes(z.key)) return;
|
|
6899
6906
|
z.preventDefault();
|
|
6900
6907
|
const ue = M().filter((se) => !se.disabled).map((se) => se.ref.current);
|
|
6901
6908
|
LAST_KEYS.includes(z.key) && ue.reverse(), focusFirst$1(ue);
|
|
@@ -6906,10 +6913,10 @@ var CONTENT_NAME$4 = "MenuContent", [MenuContentProvider, useMenuContentContext]
|
|
|
6906
6913
|
onPointerMove: composeEventHandlers(
|
|
6907
6914
|
t.onPointerMove,
|
|
6908
6915
|
whenMouse((z) => {
|
|
6909
|
-
const W = z.target,
|
|
6910
|
-
if (z.currentTarget.contains(W) &&
|
|
6911
|
-
const
|
|
6912
|
-
q.current =
|
|
6916
|
+
const W = z.target, Z = H.current !== z.clientX;
|
|
6917
|
+
if (z.currentTarget.contains(W) && Z) {
|
|
6918
|
+
const te = z.clientX > H.current ? "right" : "left";
|
|
6919
|
+
q.current = te, H.current = z.clientX;
|
|
6913
6920
|
}
|
|
6914
6921
|
})
|
|
6915
6922
|
)
|
|
@@ -9081,8 +9088,8 @@ var [ToastInteractiveProvider, useToastInteractiveContext] = createToastContext(
|
|
|
9081
9088
|
const G = () => {
|
|
9082
9089
|
j(O.current), p == null || p();
|
|
9083
9090
|
}, U = () => {
|
|
9084
|
-
const
|
|
9085
|
-
O.current = O.current -
|
|
9091
|
+
const Q = (/* @__PURE__ */ new Date()).getTime() - N.current;
|
|
9092
|
+
O.current = O.current - Q, window.clearTimeout(D.current), f == null || f();
|
|
9086
9093
|
};
|
|
9087
9094
|
return H.addEventListener(VIEWPORT_PAUSE, U), H.addEventListener(VIEWPORT_RESUME, G), () => {
|
|
9088
9095
|
H.removeEventListener(VIEWPORT_PAUSE, U), H.removeEventListener(VIEWPORT_RESUME, G);
|
|
@@ -9131,17 +9138,17 @@ var [ToastInteractiveProvider, useToastInteractiveContext] = createToastContext(
|
|
|
9131
9138
|
}),
|
|
9132
9139
|
onPointerMove: composeEventHandlers(t.onPointerMove, (H) => {
|
|
9133
9140
|
if (!I.current) return;
|
|
9134
|
-
const G = H.clientX - I.current.x, U = H.clientY - I.current.y,
|
|
9135
|
-
|
|
9141
|
+
const G = H.clientX - I.current.x, U = H.clientY - I.current.y, Q = !!M.current, F = ["left", "right"].includes(C.swipeDirection), z = ["left", "up"].includes(C.swipeDirection) ? Math.min : Math.max, W = F ? z(0, G) : 0, Z = F ? 0 : z(0, U), te = H.pointerType === "touch" ? 10 : 2, ne = { x: W, y: Z }, ae = { originalEvent: H, delta: ne };
|
|
9142
|
+
Q ? (M.current = ne, handleAndDispatchCustomEvent(TOAST_SWIPE_MOVE, g, ae, {
|
|
9136
9143
|
discrete: !1
|
|
9137
|
-
})) : isDeltaInDirection(
|
|
9144
|
+
})) : isDeltaInDirection(ne, C.swipeDirection, te) ? (M.current = ne, handleAndDispatchCustomEvent(TOAST_SWIPE_START, m, ae, {
|
|
9138
9145
|
discrete: !1
|
|
9139
|
-
}), H.target.setPointerCapture(H.pointerId)) : (Math.abs(G) >
|
|
9146
|
+
}), H.target.setPointerCapture(H.pointerId)) : (Math.abs(G) > te || Math.abs(U) > te) && (I.current = null);
|
|
9140
9147
|
}),
|
|
9141
9148
|
onPointerUp: composeEventHandlers(t.onPointerUp, (H) => {
|
|
9142
9149
|
const G = M.current, U = H.target;
|
|
9143
9150
|
if (U.hasPointerCapture(H.pointerId) && U.releasePointerCapture(H.pointerId), M.current = null, I.current = null, G) {
|
|
9144
|
-
const
|
|
9151
|
+
const Q = H.currentTarget, F = { originalEvent: H, delta: G };
|
|
9145
9152
|
isDeltaInDirection(G, C.swipeDirection, C.swipeThreshold) ? handleAndDispatchCustomEvent(TOAST_SWIPE_END, _, F, {
|
|
9146
9153
|
discrete: !0
|
|
9147
9154
|
}) : handleAndDispatchCustomEvent(
|
|
@@ -9151,7 +9158,7 @@ var [ToastInteractiveProvider, useToastInteractiveContext] = createToastContext(
|
|
|
9151
9158
|
{
|
|
9152
9159
|
discrete: !0
|
|
9153
9160
|
}
|
|
9154
|
-
),
|
|
9161
|
+
), Q.addEventListener("click", (z) => z.preventDefault(), {
|
|
9155
9162
|
once: !0
|
|
9156
9163
|
});
|
|
9157
9164
|
}
|
|
@@ -10142,19 +10149,19 @@ function requireReactIs_development$1() {
|
|
|
10142
10149
|
return hasRequiredReactIs_development$1 || (hasRequiredReactIs_development$1 = 1, process.env.NODE_ENV !== "production" && function() {
|
|
10143
10150
|
var t = Symbol.for("react.element"), e = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), u = Symbol.for("react.context"), d = Symbol.for("react.server_context"), f = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), _ = Symbol.for("react.offscreen"), E = !1, C = !1, S = !1, T = !1, A = !1, I;
|
|
10144
10151
|
I = Symbol.for("react.module.reference");
|
|
10145
|
-
function M(
|
|
10146
|
-
return !!(typeof
|
|
10152
|
+
function M(ee) {
|
|
10153
|
+
return !!(typeof ee == "string" || typeof ee == "function" || ee === n || ee === o || A || ee === i || ee === p || ee === m || T || ee === _ || E || C || S || typeof ee == "object" && ee !== null && (ee.$$typeof === b || ee.$$typeof === g || ee.$$typeof === l || ee.$$typeof === u || ee.$$typeof === f || // This needs to include all possible module reference object
|
|
10147
10154
|
// types supported by any Flight configuration anywhere since
|
|
10148
10155
|
// we don't know which Flight build this will end up being used
|
|
10149
10156
|
// with.
|
|
10150
|
-
|
|
10157
|
+
ee.$$typeof === I || ee.getModuleId !== void 0));
|
|
10151
10158
|
}
|
|
10152
|
-
function R(
|
|
10153
|
-
if (typeof
|
|
10154
|
-
var
|
|
10155
|
-
switch (
|
|
10159
|
+
function R(ee) {
|
|
10160
|
+
if (typeof ee == "object" && ee !== null) {
|
|
10161
|
+
var de = ee.$$typeof;
|
|
10162
|
+
switch (de) {
|
|
10156
10163
|
case t:
|
|
10157
|
-
var he =
|
|
10164
|
+
var he = ee.type;
|
|
10158
10165
|
switch (he) {
|
|
10159
10166
|
case n:
|
|
10160
10167
|
case o:
|
|
@@ -10173,58 +10180,58 @@ function requireReactIs_development$1() {
|
|
|
10173
10180
|
case l:
|
|
10174
10181
|
return me;
|
|
10175
10182
|
default:
|
|
10176
|
-
return
|
|
10183
|
+
return de;
|
|
10177
10184
|
}
|
|
10178
10185
|
}
|
|
10179
10186
|
case e:
|
|
10180
|
-
return
|
|
10187
|
+
return de;
|
|
10181
10188
|
}
|
|
10182
10189
|
}
|
|
10183
10190
|
}
|
|
10184
|
-
var N = u, O = l, D = t, V = f, L = n, B = b, j = g, q = e, H = o, G = i, U = p,
|
|
10185
|
-
function W(
|
|
10191
|
+
var N = u, O = l, D = t, V = f, L = n, B = b, j = g, q = e, H = o, G = i, U = p, Q = m, F = !1, z = !1;
|
|
10192
|
+
function W(ee) {
|
|
10186
10193
|
return F || (F = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
10187
10194
|
}
|
|
10188
|
-
function
|
|
10195
|
+
function Z(ee) {
|
|
10189
10196
|
return z || (z = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
10190
10197
|
}
|
|
10191
|
-
function
|
|
10192
|
-
return R(
|
|
10198
|
+
function te(ee) {
|
|
10199
|
+
return R(ee) === u;
|
|
10193
10200
|
}
|
|
10194
|
-
function
|
|
10195
|
-
return R(
|
|
10201
|
+
function ne(ee) {
|
|
10202
|
+
return R(ee) === l;
|
|
10196
10203
|
}
|
|
10197
|
-
function
|
|
10198
|
-
return typeof
|
|
10204
|
+
function ae(ee) {
|
|
10205
|
+
return typeof ee == "object" && ee !== null && ee.$$typeof === t;
|
|
10199
10206
|
}
|
|
10200
|
-
function le(
|
|
10201
|
-
return R(
|
|
10207
|
+
function le(ee) {
|
|
10208
|
+
return R(ee) === f;
|
|
10202
10209
|
}
|
|
10203
|
-
function ue(
|
|
10204
|
-
return R(
|
|
10210
|
+
function ue(ee) {
|
|
10211
|
+
return R(ee) === n;
|
|
10205
10212
|
}
|
|
10206
|
-
function se(
|
|
10207
|
-
return R(
|
|
10213
|
+
function se(ee) {
|
|
10214
|
+
return R(ee) === b;
|
|
10208
10215
|
}
|
|
10209
|
-
function
|
|
10210
|
-
return R(
|
|
10216
|
+
function ce(ee) {
|
|
10217
|
+
return R(ee) === g;
|
|
10211
10218
|
}
|
|
10212
|
-
function ee
|
|
10213
|
-
return R(
|
|
10219
|
+
function oe(ee) {
|
|
10220
|
+
return R(ee) === e;
|
|
10214
10221
|
}
|
|
10215
|
-
function
|
|
10216
|
-
return R(
|
|
10222
|
+
function J(ee) {
|
|
10223
|
+
return R(ee) === o;
|
|
10217
10224
|
}
|
|
10218
|
-
function
|
|
10219
|
-
return R(
|
|
10225
|
+
function ie(ee) {
|
|
10226
|
+
return R(ee) === i;
|
|
10220
10227
|
}
|
|
10221
|
-
function
|
|
10222
|
-
return R(
|
|
10228
|
+
function K(ee) {
|
|
10229
|
+
return R(ee) === p;
|
|
10223
10230
|
}
|
|
10224
|
-
function
|
|
10225
|
-
return R(
|
|
10231
|
+
function fe(ee) {
|
|
10232
|
+
return R(ee) === m;
|
|
10226
10233
|
}
|
|
10227
|
-
reactIs_development$1.ContextConsumer = N, reactIs_development$1.ContextProvider = O, reactIs_development$1.Element = D, reactIs_development$1.ForwardRef = V, reactIs_development$1.Fragment = L, reactIs_development$1.Lazy = B, reactIs_development$1.Memo = j, reactIs_development$1.Portal = q, reactIs_development$1.Profiler = H, reactIs_development$1.StrictMode = G, reactIs_development$1.Suspense = U, reactIs_development$1.SuspenseList =
|
|
10234
|
+
reactIs_development$1.ContextConsumer = N, reactIs_development$1.ContextProvider = O, reactIs_development$1.Element = D, reactIs_development$1.ForwardRef = V, reactIs_development$1.Fragment = L, reactIs_development$1.Lazy = B, reactIs_development$1.Memo = j, reactIs_development$1.Portal = q, reactIs_development$1.Profiler = H, reactIs_development$1.StrictMode = G, reactIs_development$1.Suspense = U, reactIs_development$1.SuspenseList = Q, reactIs_development$1.isAsyncMode = W, reactIs_development$1.isConcurrentMode = Z, reactIs_development$1.isContextConsumer = te, reactIs_development$1.isContextProvider = ne, reactIs_development$1.isElement = ae, reactIs_development$1.isForwardRef = le, reactIs_development$1.isFragment = ue, reactIs_development$1.isLazy = se, reactIs_development$1.isMemo = ce, reactIs_development$1.isPortal = oe, reactIs_development$1.isProfiler = J, reactIs_development$1.isStrictMode = ie, reactIs_development$1.isSuspense = K, reactIs_development$1.isSuspenseList = fe, reactIs_development$1.isValidElementType = M, reactIs_development$1.typeOf = R;
|
|
10228
10235
|
}()), reactIs_development$1;
|
|
10229
10236
|
}
|
|
10230
10237
|
var hasRequiredReactIs$1;
|
|
@@ -13626,14 +13633,14 @@ var DefaultTooltipContent = function(e) {
|
|
|
13626
13633
|
paddingTop: 4,
|
|
13627
13634
|
paddingBottom: 4,
|
|
13628
13635
|
color: H.color || "#000"
|
|
13629
|
-
}, d),
|
|
13630
|
-
if (
|
|
13631
|
-
var
|
|
13632
|
-
if (Array.isArray(
|
|
13633
|
-
var
|
|
13634
|
-
W =
|
|
13636
|
+
}, d), Q = H.formatter || g || defaultFormatter, F = H.value, z = H.name, W = F, Z = z;
|
|
13637
|
+
if (Q && W != null && Z != null) {
|
|
13638
|
+
var te = Q(F, z, H, G, m);
|
|
13639
|
+
if (Array.isArray(te)) {
|
|
13640
|
+
var ne = _slicedToArray$b(te, 2);
|
|
13641
|
+
W = ne[0], Z = ne[1];
|
|
13635
13642
|
} else
|
|
13636
|
-
W =
|
|
13643
|
+
W = te;
|
|
13637
13644
|
}
|
|
13638
13645
|
return (
|
|
13639
13646
|
// eslint-disable-next-line react/no-array-index-key
|
|
@@ -13641,9 +13648,9 @@ var DefaultTooltipContent = function(e) {
|
|
|
13641
13648
|
className: "recharts-tooltip-item",
|
|
13642
13649
|
key: "tooltip-item-".concat(G),
|
|
13643
13650
|
style: U
|
|
13644
|
-
}, isNumOrStr(
|
|
13651
|
+
}, isNumOrStr(Z) ? /* @__PURE__ */ React__default.createElement("span", {
|
|
13645
13652
|
className: "recharts-tooltip-item-name"
|
|
13646
|
-
},
|
|
13653
|
+
}, Z) : null, isNumOrStr(Z) ? /* @__PURE__ */ React__default.createElement("span", {
|
|
13647
13654
|
className: "recharts-tooltip-item-separator"
|
|
13648
13655
|
}, i) : null, /* @__PURE__ */ React__default.createElement("span", {
|
|
13649
13656
|
className: "recharts-tooltip-item-value"
|
|
@@ -14373,24 +14380,24 @@ var ResponsiveContainer = /* @__PURE__ */ forwardRef(function(t, e) {
|
|
|
14373
14380
|
containerHeight: o.height
|
|
14374
14381
|
}), D = _slicedToArray$a(O, 2), V = D[0], L = D[1], B = useCallback(function(q, H) {
|
|
14375
14382
|
L(function(G) {
|
|
14376
|
-
var U = Math.round(q),
|
|
14377
|
-
return G.containerWidth === U && G.containerHeight ===
|
|
14383
|
+
var U = Math.round(q), Q = Math.round(H);
|
|
14384
|
+
return G.containerWidth === U && G.containerHeight === Q ? G : {
|
|
14378
14385
|
containerWidth: U,
|
|
14379
|
-
containerHeight:
|
|
14386
|
+
containerHeight: Q
|
|
14380
14387
|
};
|
|
14381
14388
|
});
|
|
14382
14389
|
}, []);
|
|
14383
14390
|
useEffect(function() {
|
|
14384
14391
|
var q = function(z) {
|
|
14385
|
-
var W,
|
|
14386
|
-
B(
|
|
14392
|
+
var W, Z = z[0].contentRect, te = Z.width, ne = Z.height;
|
|
14393
|
+
B(te, ne), (W = N.current) === null || W === void 0 || W.call(N, te, ne);
|
|
14387
14394
|
};
|
|
14388
14395
|
C > 0 && (q = throttle(q, C, {
|
|
14389
14396
|
trailing: !0,
|
|
14390
14397
|
leading: !1
|
|
14391
14398
|
}));
|
|
14392
|
-
var H = new ResizeObserver(q), G = R.current.getBoundingClientRect(), U = G.width,
|
|
14393
|
-
return B(U,
|
|
14399
|
+
var H = new ResizeObserver(q), G = R.current.getBoundingClientRect(), U = G.width, Q = G.height;
|
|
14400
|
+
return B(U, Q), H.observe(R.current), function() {
|
|
14394
14401
|
H.disconnect();
|
|
14395
14402
|
};
|
|
14396
14403
|
}, [B, C]);
|
|
@@ -14405,12 +14412,12 @@ var ResponsiveContainer = /* @__PURE__ */ forwardRef(function(t, e) {
|
|
|
14405
14412
|
please check the style of container, or the props width(%s) and height(%s),
|
|
14406
14413
|
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
|
|
14407
14414
|
height and width.`, G, U, u, f, m, g, n);
|
|
14408
|
-
var
|
|
14415
|
+
var Q = !Array.isArray(_) && getDisplayName(_.type).endsWith("Chart");
|
|
14409
14416
|
return React__default.Children.map(_, function(F) {
|
|
14410
14417
|
return /* @__PURE__ */ React__default.isValidElement(F) ? /* @__PURE__ */ cloneElement(F, _objectSpread$t({
|
|
14411
14418
|
width: G,
|
|
14412
14419
|
height: U
|
|
14413
|
-
},
|
|
14420
|
+
}, Q ? {
|
|
14414
14421
|
style: _objectSpread$t({
|
|
14415
14422
|
height: "100%",
|
|
14416
14423
|
width: "100%",
|
|
@@ -14804,32 +14811,32 @@ var BREAKING_SPACES = /[ \f\n\r\t\v\u2028\u2029]+/, calculateWordWidths = functi
|
|
|
14804
14811
|
}, calculateWordsByLines = function(e, n, i, o, l) {
|
|
14805
14812
|
var u = e.maxLines, d = e.children, f = e.style, p = e.breakAll, m = isNumber(u), g = d, b = function() {
|
|
14806
14813
|
var G = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
|
|
14807
|
-
return G.reduce(function(U,
|
|
14808
|
-
var F =
|
|
14814
|
+
return G.reduce(function(U, Q) {
|
|
14815
|
+
var F = Q.word, z = Q.width, W = U[U.length - 1];
|
|
14809
14816
|
if (W && (o == null || l || W.width + z + i < Number(o)))
|
|
14810
14817
|
W.words.push(F), W.width += z + i;
|
|
14811
14818
|
else {
|
|
14812
|
-
var
|
|
14819
|
+
var Z = {
|
|
14813
14820
|
words: [F],
|
|
14814
14821
|
width: z
|
|
14815
14822
|
};
|
|
14816
|
-
U.push(
|
|
14823
|
+
U.push(Z);
|
|
14817
14824
|
}
|
|
14818
14825
|
return U;
|
|
14819
14826
|
}, []);
|
|
14820
14827
|
}, _ = b(n), E = function(G) {
|
|
14821
|
-
return G.reduce(function(U,
|
|
14822
|
-
return U.width >
|
|
14828
|
+
return G.reduce(function(U, Q) {
|
|
14829
|
+
return U.width > Q.width ? U : Q;
|
|
14823
14830
|
});
|
|
14824
14831
|
};
|
|
14825
14832
|
if (!m)
|
|
14826
14833
|
return _;
|
|
14827
14834
|
for (var C = "…", S = function(G) {
|
|
14828
|
-
var U = g.slice(0, G),
|
|
14835
|
+
var U = g.slice(0, G), Q = calculateWordWidths({
|
|
14829
14836
|
breakAll: p,
|
|
14830
14837
|
style: f,
|
|
14831
14838
|
children: U + C
|
|
14832
|
-
}).wordsWithComputedWidth, F = b(
|
|
14839
|
+
}).wordsWithComputedWidth, F = b(Q), z = F.length > u || E(F).width > Number(o);
|
|
14833
14840
|
return [z, F];
|
|
14834
14841
|
}, T = 0, A = g.length - 1, I = 0, M; T <= A && I <= g.length - 1; ) {
|
|
14835
14842
|
var R = Math.floor((T + A) / 2), N = R - 1, O = S(N), D = _slicedToArray$8(O, 2), V = D[0], L = D[1], B = S(R), j = _slicedToArray$8(B, 1), q = j[0];
|
|
@@ -14902,15 +14909,15 @@ var BREAKING_SPACES = /[ \f\n\r\t\v\u2028\u2029]+/, calculateWordWidths = functi
|
|
|
14902
14909
|
className: clsx("recharts-text", O),
|
|
14903
14910
|
textAnchor: _,
|
|
14904
14911
|
fill: T.includes("url") ? DEFAULT_FILL : T
|
|
14905
|
-
}), I.map(function(U,
|
|
14912
|
+
}), I.map(function(U, Q) {
|
|
14906
14913
|
var F = U.words.join(D ? "" : " ");
|
|
14907
14914
|
return (
|
|
14908
14915
|
// duplicate words will cause duplicate keys
|
|
14909
14916
|
// eslint-disable-next-line react/no-array-index-key
|
|
14910
14917
|
/* @__PURE__ */ React__default.createElement("tspan", {
|
|
14911
14918
|
x: L,
|
|
14912
|
-
dy:
|
|
14913
|
-
key: "".concat(F, "-").concat(
|
|
14919
|
+
dy: Q === 0 ? j : d,
|
|
14920
|
+
key: "".concat(F, "-").concat(Q)
|
|
14914
14921
|
}, F)
|
|
14915
14922
|
);
|
|
14916
14923
|
}));
|
|
@@ -15778,8 +15785,8 @@ function formatLocale$1(t) {
|
|
|
15778
15785
|
q = D(B) + q, B = "";
|
|
15779
15786
|
else {
|
|
15780
15787
|
B = +B;
|
|
15781
|
-
var
|
|
15782
|
-
if (B = isNaN(B) ? f : D(Math.abs(B), I), M && (B = formatTrim(B)),
|
|
15788
|
+
var Q = B < 0 || 1 / B < 0;
|
|
15789
|
+
if (B = isNaN(B) ? f : D(Math.abs(B), I), M && (B = formatTrim(B)), Q && +B == 0 && E !== "+" && (Q = !1), j = (Q ? E === "(" ? E : d : E === "-" || E === "(" ? "" : E) + j, q = (R === "s" ? prefixes[8 + prefixExponent / 3] : "") + q + (Q && E === "(" ? ")" : ""), V) {
|
|
15783
15790
|
for (H = -1, G = B.length; ++H < G; )
|
|
15784
15791
|
if (U = B.charCodeAt(H), 48 > U || U > 57) {
|
|
15785
15792
|
q = (U === 46 ? o + B.slice(H + 1) : B.slice(H)) + q, B = B.slice(0, H);
|
|
@@ -16348,7 +16355,7 @@ function newDate(t, e, n) {
|
|
|
16348
16355
|
}
|
|
16349
16356
|
function formatLocale(t) {
|
|
16350
16357
|
var e = t.dateTime, n = t.date, i = t.time, o = t.periods, l = t.days, u = t.shortDays, d = t.months, f = t.shortMonths, p = formatRe(o), m = formatLookup(o), g = formatRe(l), b = formatLookup(l), _ = formatRe(u), E = formatLookup(u), C = formatRe(d), S = formatLookup(d), T = formatRe(f), A = formatLookup(f), I = {
|
|
16351
|
-
a:
|
|
16358
|
+
a: Q,
|
|
16352
16359
|
A: F,
|
|
16353
16360
|
b: z,
|
|
16354
16361
|
B: W,
|
|
@@ -16364,8 +16371,8 @@ function formatLocale(t) {
|
|
|
16364
16371
|
L: formatMilliseconds,
|
|
16365
16372
|
m: formatMonthNumber,
|
|
16366
16373
|
M: formatMinutes,
|
|
16367
|
-
p:
|
|
16368
|
-
q:
|
|
16374
|
+
p: Z,
|
|
16375
|
+
q: te,
|
|
16369
16376
|
Q: formatUnixTimestamp,
|
|
16370
16377
|
s: formatUnixTimestampSeconds,
|
|
16371
16378
|
S: formatSeconds,
|
|
@@ -16381,8 +16388,8 @@ function formatLocale(t) {
|
|
|
16381
16388
|
Z: formatZone,
|
|
16382
16389
|
"%": formatLiteralPercent
|
|
16383
16390
|
}, M = {
|
|
16384
|
-
a:
|
|
16385
|
-
A:
|
|
16391
|
+
a: ne,
|
|
16392
|
+
A: ae,
|
|
16386
16393
|
b: le,
|
|
16387
16394
|
B: ue,
|
|
16388
16395
|
c: null,
|
|
@@ -16398,7 +16405,7 @@ function formatLocale(t) {
|
|
|
16398
16405
|
m: formatUTCMonthNumber,
|
|
16399
16406
|
M: formatUTCMinutes,
|
|
16400
16407
|
p: se,
|
|
16401
|
-
q:
|
|
16408
|
+
q: ce,
|
|
16402
16409
|
Q: formatUnixTimestamp,
|
|
16403
16410
|
s: formatUnixTimestampSeconds,
|
|
16404
16411
|
S: formatUTCSeconds,
|
|
@@ -16448,126 +16455,126 @@ function formatLocale(t) {
|
|
|
16448
16455
|
"%": parseLiteralPercent
|
|
16449
16456
|
};
|
|
16450
16457
|
I.x = N(n, I), I.X = N(i, I), I.c = N(e, I), M.x = N(n, M), M.X = N(i, M), M.c = N(e, M);
|
|
16451
|
-
function N(
|
|
16452
|
-
return function(
|
|
16453
|
-
var
|
|
16454
|
-
for (
|
|
16455
|
-
|
|
16456
|
-
return
|
|
16458
|
+
function N(oe, J) {
|
|
16459
|
+
return function(ie) {
|
|
16460
|
+
var K = [], fe = -1, ee = 0, de = oe.length, he, me, ye;
|
|
16461
|
+
for (ie instanceof Date || (ie = /* @__PURE__ */ new Date(+ie)); ++fe < de; )
|
|
16462
|
+
oe.charCodeAt(fe) === 37 && (K.push(oe.slice(ee, fe)), (me = pads[he = oe.charAt(++fe)]) != null ? he = oe.charAt(++fe) : me = he === "e" ? " " : "0", (ye = J[he]) && (he = ye(ie, me)), K.push(he), ee = fe + 1);
|
|
16463
|
+
return K.push(oe.slice(ee, fe)), K.join("");
|
|
16457
16464
|
};
|
|
16458
16465
|
}
|
|
16459
|
-
function O(
|
|
16460
|
-
return function(
|
|
16461
|
-
var
|
|
16462
|
-
if (
|
|
16463
|
-
if ("Q" in
|
|
16464
|
-
if ("s" in
|
|
16465
|
-
if (
|
|
16466
|
-
if (
|
|
16467
|
-
"w" in
|
|
16468
|
-
} else ("W" in
|
|
16469
|
-
return "Z" in
|
|
16466
|
+
function O(oe, J) {
|
|
16467
|
+
return function(ie) {
|
|
16468
|
+
var K = newDate(1900, void 0, 1), fe = D(K, oe, ie += "", 0), ee, de;
|
|
16469
|
+
if (fe != ie.length) return null;
|
|
16470
|
+
if ("Q" in K) return new Date(K.Q);
|
|
16471
|
+
if ("s" in K) return new Date(K.s * 1e3 + ("L" in K ? K.L : 0));
|
|
16472
|
+
if (J && !("Z" in K) && (K.Z = 0), "p" in K && (K.H = K.H % 12 + K.p * 12), K.m === void 0 && (K.m = "q" in K ? K.q : 0), "V" in K) {
|
|
16473
|
+
if (K.V < 1 || K.V > 53) return null;
|
|
16474
|
+
"w" in K || (K.w = 1), "Z" in K ? (ee = utcDate(newDate(K.y, 0, 1)), de = ee.getUTCDay(), ee = de > 4 || de === 0 ? utcMonday.ceil(ee) : utcMonday(ee), ee = utcDay.offset(ee, (K.V - 1) * 7), K.y = ee.getUTCFullYear(), K.m = ee.getUTCMonth(), K.d = ee.getUTCDate() + (K.w + 6) % 7) : (ee = localDate(newDate(K.y, 0, 1)), de = ee.getDay(), ee = de > 4 || de === 0 ? timeMonday.ceil(ee) : timeMonday(ee), ee = timeDay.offset(ee, (K.V - 1) * 7), K.y = ee.getFullYear(), K.m = ee.getMonth(), K.d = ee.getDate() + (K.w + 6) % 7);
|
|
16475
|
+
} else ("W" in K || "U" in K) && ("w" in K || (K.w = "u" in K ? K.u % 7 : "W" in K ? 1 : 0), de = "Z" in K ? utcDate(newDate(K.y, 0, 1)).getUTCDay() : localDate(newDate(K.y, 0, 1)).getDay(), K.m = 0, K.d = "W" in K ? (K.w + 6) % 7 + K.W * 7 - (de + 5) % 7 : K.w + K.U * 7 - (de + 6) % 7);
|
|
16476
|
+
return "Z" in K ? (K.H += K.Z / 100 | 0, K.M += K.Z % 100, utcDate(K)) : localDate(K);
|
|
16470
16477
|
};
|
|
16471
16478
|
}
|
|
16472
|
-
function D(
|
|
16473
|
-
for (var
|
|
16474
|
-
if (
|
|
16475
|
-
if (he =
|
|
16476
|
-
if (he =
|
|
16477
|
-
} else if (he !=
|
|
16479
|
+
function D(oe, J, ie, K) {
|
|
16480
|
+
for (var fe = 0, ee = J.length, de = ie.length, he, me; fe < ee; ) {
|
|
16481
|
+
if (K >= de) return -1;
|
|
16482
|
+
if (he = J.charCodeAt(fe++), he === 37) {
|
|
16483
|
+
if (he = J.charAt(fe++), me = R[he in pads ? J.charAt(fe++) : he], !me || (K = me(oe, ie, K)) < 0) return -1;
|
|
16484
|
+
} else if (he != ie.charCodeAt(K++))
|
|
16478
16485
|
return -1;
|
|
16479
16486
|
}
|
|
16480
|
-
return
|
|
16487
|
+
return K;
|
|
16481
16488
|
}
|
|
16482
|
-
function V(
|
|
16483
|
-
var
|
|
16484
|
-
return
|
|
16489
|
+
function V(oe, J, ie) {
|
|
16490
|
+
var K = p.exec(J.slice(ie));
|
|
16491
|
+
return K ? (oe.p = m.get(K[0].toLowerCase()), ie + K[0].length) : -1;
|
|
16485
16492
|
}
|
|
16486
|
-
function L(
|
|
16487
|
-
var
|
|
16488
|
-
return
|
|
16493
|
+
function L(oe, J, ie) {
|
|
16494
|
+
var K = _.exec(J.slice(ie));
|
|
16495
|
+
return K ? (oe.w = E.get(K[0].toLowerCase()), ie + K[0].length) : -1;
|
|
16489
16496
|
}
|
|
16490
|
-
function B(
|
|
16491
|
-
var
|
|
16492
|
-
return
|
|
16497
|
+
function B(oe, J, ie) {
|
|
16498
|
+
var K = g.exec(J.slice(ie));
|
|
16499
|
+
return K ? (oe.w = b.get(K[0].toLowerCase()), ie + K[0].length) : -1;
|
|
16493
16500
|
}
|
|
16494
|
-
function j(
|
|
16495
|
-
var
|
|
16496
|
-
return
|
|
16501
|
+
function j(oe, J, ie) {
|
|
16502
|
+
var K = T.exec(J.slice(ie));
|
|
16503
|
+
return K ? (oe.m = A.get(K[0].toLowerCase()), ie + K[0].length) : -1;
|
|
16497
16504
|
}
|
|
16498
|
-
function q(
|
|
16499
|
-
var
|
|
16500
|
-
return
|
|
16505
|
+
function q(oe, J, ie) {
|
|
16506
|
+
var K = C.exec(J.slice(ie));
|
|
16507
|
+
return K ? (oe.m = S.get(K[0].toLowerCase()), ie + K[0].length) : -1;
|
|
16501
16508
|
}
|
|
16502
|
-
function H(
|
|
16503
|
-
return D(
|
|
16509
|
+
function H(oe, J, ie) {
|
|
16510
|
+
return D(oe, e, J, ie);
|
|
16504
16511
|
}
|
|
16505
|
-
function G(
|
|
16506
|
-
return D(
|
|
16512
|
+
function G(oe, J, ie) {
|
|
16513
|
+
return D(oe, n, J, ie);
|
|
16507
16514
|
}
|
|
16508
|
-
function U(
|
|
16509
|
-
return D(
|
|
16515
|
+
function U(oe, J, ie) {
|
|
16516
|
+
return D(oe, i, J, ie);
|
|
16510
16517
|
}
|
|
16511
|
-
function
|
|
16512
|
-
return u[
|
|
16518
|
+
function Q(oe) {
|
|
16519
|
+
return u[oe.getDay()];
|
|
16513
16520
|
}
|
|
16514
|
-
function F(
|
|
16515
|
-
return l[
|
|
16521
|
+
function F(oe) {
|
|
16522
|
+
return l[oe.getDay()];
|
|
16516
16523
|
}
|
|
16517
|
-
function z(
|
|
16518
|
-
return f[
|
|
16524
|
+
function z(oe) {
|
|
16525
|
+
return f[oe.getMonth()];
|
|
16519
16526
|
}
|
|
16520
|
-
function W(
|
|
16521
|
-
return d[
|
|
16527
|
+
function W(oe) {
|
|
16528
|
+
return d[oe.getMonth()];
|
|
16522
16529
|
}
|
|
16523
|
-
function
|
|
16524
|
-
return o[+(
|
|
16530
|
+
function Z(oe) {
|
|
16531
|
+
return o[+(oe.getHours() >= 12)];
|
|
16525
16532
|
}
|
|
16526
|
-
function
|
|
16527
|
-
return 1 + ~~(
|
|
16533
|
+
function te(oe) {
|
|
16534
|
+
return 1 + ~~(oe.getMonth() / 3);
|
|
16528
16535
|
}
|
|
16529
|
-
function
|
|
16530
|
-
return u[
|
|
16536
|
+
function ne(oe) {
|
|
16537
|
+
return u[oe.getUTCDay()];
|
|
16531
16538
|
}
|
|
16532
|
-
function oe
|
|
16533
|
-
return l[
|
|
16539
|
+
function ae(oe) {
|
|
16540
|
+
return l[oe.getUTCDay()];
|
|
16534
16541
|
}
|
|
16535
|
-
function le(
|
|
16536
|
-
return f[
|
|
16542
|
+
function le(oe) {
|
|
16543
|
+
return f[oe.getUTCMonth()];
|
|
16537
16544
|
}
|
|
16538
|
-
function ue(
|
|
16539
|
-
return d[
|
|
16545
|
+
function ue(oe) {
|
|
16546
|
+
return d[oe.getUTCMonth()];
|
|
16540
16547
|
}
|
|
16541
|
-
function se(
|
|
16542
|
-
return o[+(
|
|
16548
|
+
function se(oe) {
|
|
16549
|
+
return o[+(oe.getUTCHours() >= 12)];
|
|
16543
16550
|
}
|
|
16544
|
-
function
|
|
16545
|
-
return 1 + ~~(
|
|
16551
|
+
function ce(oe) {
|
|
16552
|
+
return 1 + ~~(oe.getUTCMonth() / 3);
|
|
16546
16553
|
}
|
|
16547
16554
|
return {
|
|
16548
|
-
format: function(
|
|
16549
|
-
var
|
|
16550
|
-
return
|
|
16551
|
-
return
|
|
16552
|
-
},
|
|
16555
|
+
format: function(oe) {
|
|
16556
|
+
var J = N(oe += "", I);
|
|
16557
|
+
return J.toString = function() {
|
|
16558
|
+
return oe;
|
|
16559
|
+
}, J;
|
|
16553
16560
|
},
|
|
16554
|
-
parse: function(
|
|
16555
|
-
var
|
|
16556
|
-
return
|
|
16557
|
-
return
|
|
16558
|
-
},
|
|
16561
|
+
parse: function(oe) {
|
|
16562
|
+
var J = O(oe += "", !1);
|
|
16563
|
+
return J.toString = function() {
|
|
16564
|
+
return oe;
|
|
16565
|
+
}, J;
|
|
16559
16566
|
},
|
|
16560
|
-
utcFormat: function(
|
|
16561
|
-
var
|
|
16562
|
-
return
|
|
16563
|
-
return
|
|
16564
|
-
},
|
|
16567
|
+
utcFormat: function(oe) {
|
|
16568
|
+
var J = N(oe += "", M);
|
|
16569
|
+
return J.toString = function() {
|
|
16570
|
+
return oe;
|
|
16571
|
+
}, J;
|
|
16565
16572
|
},
|
|
16566
|
-
utcParse: function(
|
|
16567
|
-
var
|
|
16568
|
-
return
|
|
16569
|
-
return
|
|
16570
|
-
},
|
|
16573
|
+
utcParse: function(oe) {
|
|
16574
|
+
var J = O(oe += "", !0);
|
|
16575
|
+
return J.toString = function() {
|
|
16576
|
+
return oe;
|
|
16577
|
+
}, J;
|
|
16571
16578
|
}
|
|
16572
16579
|
};
|
|
16573
16580
|
}
|
|
@@ -17986,9 +17993,9 @@ var ErrorBar = /* @__PURE__ */ function(t) {
|
|
|
17986
17993
|
y2: j
|
|
17987
17994
|
});
|
|
17988
17995
|
} else if (l === "horizontal") {
|
|
17989
|
-
var G = g.scale, U = T + o,
|
|
17996
|
+
var G = g.scale, U = T + o, Q = U - u, F = U + u, z = G(I - N), W = G(I + O);
|
|
17990
17997
|
R.push({
|
|
17991
|
-
x1:
|
|
17998
|
+
x1: Q,
|
|
17992
17999
|
y1: W,
|
|
17993
18000
|
x2: F,
|
|
17994
18001
|
y2: W
|
|
@@ -17998,7 +18005,7 @@ var ErrorBar = /* @__PURE__ */ function(t) {
|
|
|
17998
18005
|
x2: U,
|
|
17999
18006
|
y2: W
|
|
18000
18007
|
}), R.push({
|
|
18001
|
-
x1:
|
|
18008
|
+
x1: Q,
|
|
18002
18009
|
y1: z,
|
|
18003
18010
|
x2: F,
|
|
18004
18011
|
y2: z
|
|
@@ -18006,12 +18013,12 @@ var ErrorBar = /* @__PURE__ */ function(t) {
|
|
|
18006
18013
|
}
|
|
18007
18014
|
return /* @__PURE__ */ React__default.createElement(Layer, _extends$k({
|
|
18008
18015
|
className: "recharts-errorBar",
|
|
18009
|
-
key: "bar-".concat(R.map(function(
|
|
18010
|
-
return "".concat(
|
|
18016
|
+
key: "bar-".concat(R.map(function(Z) {
|
|
18017
|
+
return "".concat(Z.x1, "-").concat(Z.x2, "-").concat(Z.y1, "-").concat(Z.y2);
|
|
18011
18018
|
}))
|
|
18012
|
-
}, _), R.map(function(
|
|
18013
|
-
return /* @__PURE__ */ React__default.createElement("line", _extends$k({},
|
|
18014
|
-
key: "line-".concat(
|
|
18019
|
+
}, _), R.map(function(Z) {
|
|
18020
|
+
return /* @__PURE__ */ React__default.createElement("line", _extends$k({}, Z, {
|
|
18021
|
+
key: "line-".concat(Z.x1, "-").concat(Z.x2, "-").concat(Z.y1, "-").concat(Z.y2)
|
|
18015
18022
|
}));
|
|
18016
18023
|
}));
|
|
18017
18024
|
});
|
|
@@ -19732,83 +19739,83 @@ var hasRequiredReactIs_development;
|
|
|
19732
19739
|
function requireReactIs_development() {
|
|
19733
19740
|
return hasRequiredReactIs_development || (hasRequiredReactIs_development = 1, process.env.NODE_ENV !== "production" && function() {
|
|
19734
19741
|
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, i = t ? Symbol.for("react.fragment") : 60107, o = t ? Symbol.for("react.strict_mode") : 60108, l = t ? Symbol.for("react.profiler") : 60114, u = t ? Symbol.for("react.provider") : 60109, d = t ? Symbol.for("react.context") : 60110, f = t ? Symbol.for("react.async_mode") : 60111, p = t ? Symbol.for("react.concurrent_mode") : 60111, m = t ? Symbol.for("react.forward_ref") : 60112, g = t ? Symbol.for("react.suspense") : 60113, b = t ? Symbol.for("react.suspense_list") : 60120, _ = t ? Symbol.for("react.memo") : 60115, E = t ? Symbol.for("react.lazy") : 60116, C = t ? Symbol.for("react.block") : 60121, S = t ? Symbol.for("react.fundamental") : 60117, T = t ? Symbol.for("react.responder") : 60118, A = t ? Symbol.for("react.scope") : 60119;
|
|
19735
|
-
function I(
|
|
19736
|
-
return typeof
|
|
19737
|
-
|
|
19742
|
+
function I(K) {
|
|
19743
|
+
return typeof K == "string" || typeof K == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
19744
|
+
K === i || K === p || K === l || K === o || K === g || K === b || typeof K == "object" && K !== null && (K.$$typeof === E || K.$$typeof === _ || K.$$typeof === u || K.$$typeof === d || K.$$typeof === m || K.$$typeof === S || K.$$typeof === T || K.$$typeof === A || K.$$typeof === C);
|
|
19738
19745
|
}
|
|
19739
|
-
function M(
|
|
19740
|
-
if (typeof
|
|
19741
|
-
var
|
|
19742
|
-
switch (
|
|
19746
|
+
function M(K) {
|
|
19747
|
+
if (typeof K == "object" && K !== null) {
|
|
19748
|
+
var fe = K.$$typeof;
|
|
19749
|
+
switch (fe) {
|
|
19743
19750
|
case e:
|
|
19744
|
-
var
|
|
19745
|
-
switch (
|
|
19751
|
+
var ee = K.type;
|
|
19752
|
+
switch (ee) {
|
|
19746
19753
|
case f:
|
|
19747
19754
|
case p:
|
|
19748
19755
|
case i:
|
|
19749
19756
|
case l:
|
|
19750
19757
|
case o:
|
|
19751
19758
|
case g:
|
|
19752
|
-
return
|
|
19759
|
+
return ee;
|
|
19753
19760
|
default:
|
|
19754
|
-
var
|
|
19755
|
-
switch (
|
|
19761
|
+
var de = ee && ee.$$typeof;
|
|
19762
|
+
switch (de) {
|
|
19756
19763
|
case d:
|
|
19757
19764
|
case m:
|
|
19758
19765
|
case E:
|
|
19759
19766
|
case _:
|
|
19760
19767
|
case u:
|
|
19761
|
-
return fe;
|
|
19762
|
-
default:
|
|
19763
19768
|
return de;
|
|
19769
|
+
default:
|
|
19770
|
+
return fe;
|
|
19764
19771
|
}
|
|
19765
19772
|
}
|
|
19766
19773
|
case n:
|
|
19767
|
-
return
|
|
19774
|
+
return fe;
|
|
19768
19775
|
}
|
|
19769
19776
|
}
|
|
19770
19777
|
}
|
|
19771
|
-
var R = f, N = p, O = d, D = u, V = e, L = m, B = i, j = E, q = _, H = n, G = l, U = o,
|
|
19772
|
-
function z(
|
|
19773
|
-
return F || (F = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), W(
|
|
19778
|
+
var R = f, N = p, O = d, D = u, V = e, L = m, B = i, j = E, q = _, H = n, G = l, U = o, Q = g, F = !1;
|
|
19779
|
+
function z(K) {
|
|
19780
|
+
return F || (F = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), W(K) || M(K) === f;
|
|
19774
19781
|
}
|
|
19775
|
-
function W(
|
|
19776
|
-
return M(
|
|
19782
|
+
function W(K) {
|
|
19783
|
+
return M(K) === p;
|
|
19777
19784
|
}
|
|
19778
|
-
function
|
|
19779
|
-
return M(
|
|
19785
|
+
function Z(K) {
|
|
19786
|
+
return M(K) === d;
|
|
19780
19787
|
}
|
|
19781
|
-
function
|
|
19782
|
-
return M(
|
|
19788
|
+
function te(K) {
|
|
19789
|
+
return M(K) === u;
|
|
19783
19790
|
}
|
|
19784
|
-
function
|
|
19785
|
-
return typeof
|
|
19791
|
+
function ne(K) {
|
|
19792
|
+
return typeof K == "object" && K !== null && K.$$typeof === e;
|
|
19786
19793
|
}
|
|
19787
|
-
function
|
|
19788
|
-
return M(
|
|
19794
|
+
function ae(K) {
|
|
19795
|
+
return M(K) === m;
|
|
19789
19796
|
}
|
|
19790
|
-
function le(
|
|
19791
|
-
return M(
|
|
19797
|
+
function le(K) {
|
|
19798
|
+
return M(K) === i;
|
|
19792
19799
|
}
|
|
19793
|
-
function ue(
|
|
19794
|
-
return M(
|
|
19800
|
+
function ue(K) {
|
|
19801
|
+
return M(K) === E;
|
|
19795
19802
|
}
|
|
19796
|
-
function se(
|
|
19797
|
-
return M(
|
|
19803
|
+
function se(K) {
|
|
19804
|
+
return M(K) === _;
|
|
19798
19805
|
}
|
|
19799
|
-
function
|
|
19800
|
-
return M(
|
|
19806
|
+
function ce(K) {
|
|
19807
|
+
return M(K) === n;
|
|
19801
19808
|
}
|
|
19802
|
-
function
|
|
19803
|
-
return M(
|
|
19809
|
+
function oe(K) {
|
|
19810
|
+
return M(K) === l;
|
|
19804
19811
|
}
|
|
19805
|
-
function
|
|
19806
|
-
return M(
|
|
19812
|
+
function J(K) {
|
|
19813
|
+
return M(K) === o;
|
|
19807
19814
|
}
|
|
19808
|
-
function
|
|
19809
|
-
return M(
|
|
19815
|
+
function ie(K) {
|
|
19816
|
+
return M(K) === g;
|
|
19810
19817
|
}
|
|
19811
|
-
reactIs_development.AsyncMode = R, reactIs_development.ConcurrentMode = N, reactIs_development.ContextConsumer = O, reactIs_development.ContextProvider = D, reactIs_development.Element = V, reactIs_development.ForwardRef = L, reactIs_development.Fragment = B, reactIs_development.Lazy = j, reactIs_development.Memo = q, reactIs_development.Portal = H, reactIs_development.Profiler = G, reactIs_development.StrictMode = U, reactIs_development.Suspense =
|
|
19818
|
+
reactIs_development.AsyncMode = R, reactIs_development.ConcurrentMode = N, reactIs_development.ContextConsumer = O, reactIs_development.ContextProvider = D, reactIs_development.Element = V, reactIs_development.ForwardRef = L, reactIs_development.Fragment = B, reactIs_development.Lazy = j, reactIs_development.Memo = q, reactIs_development.Portal = H, reactIs_development.Profiler = G, reactIs_development.StrictMode = U, reactIs_development.Suspense = Q, reactIs_development.isAsyncMode = z, reactIs_development.isConcurrentMode = W, reactIs_development.isContextConsumer = Z, reactIs_development.isContextProvider = te, reactIs_development.isElement = ne, reactIs_development.isForwardRef = ae, reactIs_development.isFragment = le, reactIs_development.isLazy = ue, reactIs_development.isMemo = se, reactIs_development.isPortal = ce, reactIs_development.isProfiler = oe, reactIs_development.isStrictMode = J, reactIs_development.isSuspense = ie, reactIs_development.isValidElementType = I, reactIs_development.typeOf = M;
|
|
19812
19819
|
}()), reactIs_development;
|
|
19813
19820
|
}
|
|
19814
19821
|
var hasRequiredReactIs;
|
|
@@ -19946,9 +19953,9 @@ function requireFactoryWithTypeCheckers() {
|
|
|
19946
19953
|
return factoryWithTypeCheckers = function(d, f) {
|
|
19947
19954
|
var p = typeof Symbol == "function" && Symbol.iterator, m = "@@iterator";
|
|
19948
19955
|
function g(W) {
|
|
19949
|
-
var
|
|
19950
|
-
if (typeof
|
|
19951
|
-
return
|
|
19956
|
+
var Z = W && (p && W[p] || W[m]);
|
|
19957
|
+
if (typeof Z == "function")
|
|
19958
|
+
return Z;
|
|
19952
19959
|
}
|
|
19953
19960
|
var b = "<<anonymous>>", _ = {
|
|
19954
19961
|
array: T("array"),
|
|
@@ -19971,209 +19978,209 @@ function requireFactoryWithTypeCheckers() {
|
|
|
19971
19978
|
shape: j,
|
|
19972
19979
|
exact: q
|
|
19973
19980
|
};
|
|
19974
|
-
function E(W,
|
|
19975
|
-
return W ===
|
|
19981
|
+
function E(W, Z) {
|
|
19982
|
+
return W === Z ? W !== 0 || 1 / W === 1 / Z : W !== W && Z !== Z;
|
|
19976
19983
|
}
|
|
19977
|
-
function C(W,
|
|
19978
|
-
this.message = W, this.data =
|
|
19984
|
+
function C(W, Z) {
|
|
19985
|
+
this.message = W, this.data = Z && typeof Z == "object" ? Z : {}, this.stack = "";
|
|
19979
19986
|
}
|
|
19980
19987
|
C.prototype = Error.prototype;
|
|
19981
19988
|
function S(W) {
|
|
19982
19989
|
if (process.env.NODE_ENV !== "production")
|
|
19983
|
-
var
|
|
19984
|
-
function
|
|
19985
|
-
if (
|
|
19990
|
+
var Z = {}, te = 0;
|
|
19991
|
+
function ne(le, ue, se, ce, oe, J, ie) {
|
|
19992
|
+
if (ce = ce || b, J = J || se, ie !== n) {
|
|
19986
19993
|
if (f) {
|
|
19987
|
-
var
|
|
19994
|
+
var K = new Error(
|
|
19988
19995
|
"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"
|
|
19989
19996
|
);
|
|
19990
|
-
throw
|
|
19997
|
+
throw K.name = "Invariant Violation", K;
|
|
19991
19998
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
19992
|
-
var
|
|
19993
|
-
!
|
|
19994
|
-
|
|
19995
|
-
"You are manually calling a React.PropTypes validation function for the `" +
|
|
19996
|
-
),
|
|
19999
|
+
var fe = ce + ":" + se;
|
|
20000
|
+
!Z[fe] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
20001
|
+
te < 3 && (l(
|
|
20002
|
+
"You are manually calling a React.PropTypes validation function for the `" + J + "` prop on `" + ce + "`. 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."
|
|
20003
|
+
), Z[fe] = !0, te++);
|
|
19997
20004
|
}
|
|
19998
20005
|
}
|
|
19999
|
-
return ue[se] == null ? le ? ue[se] === null ? new C("The " +
|
|
20006
|
+
return ue[se] == null ? le ? ue[se] === null ? new C("The " + oe + " `" + J + "` is marked as required " + ("in `" + ce + "`, but its value is `null`.")) : new C("The " + oe + " `" + J + "` is marked as required in " + ("`" + ce + "`, but its value is `undefined`.")) : null : W(ue, se, ce, oe, J);
|
|
20000
20007
|
}
|
|
20001
|
-
var
|
|
20002
|
-
return
|
|
20008
|
+
var ae = ne.bind(null, !1);
|
|
20009
|
+
return ae.isRequired = ne.bind(null, !0), ae;
|
|
20003
20010
|
}
|
|
20004
20011
|
function T(W) {
|
|
20005
|
-
function
|
|
20006
|
-
var
|
|
20007
|
-
if (
|
|
20008
|
-
var
|
|
20012
|
+
function Z(te, ne, ae, le, ue, se) {
|
|
20013
|
+
var ce = te[ne], oe = U(ce);
|
|
20014
|
+
if (oe !== W) {
|
|
20015
|
+
var J = Q(ce);
|
|
20009
20016
|
return new C(
|
|
20010
|
-
"Invalid " + le + " `" + ue + "` of type " + ("`" +
|
|
20017
|
+
"Invalid " + le + " `" + ue + "` of type " + ("`" + J + "` supplied to `" + ae + "`, expected ") + ("`" + W + "`."),
|
|
20011
20018
|
{ expectedType: W }
|
|
20012
20019
|
);
|
|
20013
20020
|
}
|
|
20014
20021
|
return null;
|
|
20015
20022
|
}
|
|
20016
|
-
return S(
|
|
20023
|
+
return S(Z);
|
|
20017
20024
|
}
|
|
20018
20025
|
function A() {
|
|
20019
20026
|
return S(u);
|
|
20020
20027
|
}
|
|
20021
20028
|
function I(W) {
|
|
20022
|
-
function
|
|
20029
|
+
function Z(te, ne, ae, le, ue) {
|
|
20023
20030
|
if (typeof W != "function")
|
|
20024
|
-
return new C("Property `" + ue + "` of component `" +
|
|
20025
|
-
var se = ne
|
|
20031
|
+
return new C("Property `" + ue + "` of component `" + ae + "` has invalid PropType notation inside arrayOf.");
|
|
20032
|
+
var se = te[ne];
|
|
20026
20033
|
if (!Array.isArray(se)) {
|
|
20027
|
-
var
|
|
20028
|
-
return new C("Invalid " + le + " `" + ue + "` of type " + ("`" +
|
|
20034
|
+
var ce = U(se);
|
|
20035
|
+
return new C("Invalid " + le + " `" + ue + "` of type " + ("`" + ce + "` supplied to `" + ae + "`, expected an array."));
|
|
20029
20036
|
}
|
|
20030
|
-
for (var
|
|
20031
|
-
var
|
|
20032
|
-
if (
|
|
20033
|
-
return
|
|
20037
|
+
for (var oe = 0; oe < se.length; oe++) {
|
|
20038
|
+
var J = W(se, oe, ae, le, ue + "[" + oe + "]", n);
|
|
20039
|
+
if (J instanceof Error)
|
|
20040
|
+
return J;
|
|
20034
20041
|
}
|
|
20035
20042
|
return null;
|
|
20036
20043
|
}
|
|
20037
|
-
return S(
|
|
20044
|
+
return S(Z);
|
|
20038
20045
|
}
|
|
20039
20046
|
function M() {
|
|
20040
|
-
function W(
|
|
20041
|
-
var ue =
|
|
20047
|
+
function W(Z, te, ne, ae, le) {
|
|
20048
|
+
var ue = Z[te];
|
|
20042
20049
|
if (!d(ue)) {
|
|
20043
20050
|
var se = U(ue);
|
|
20044
|
-
return new C("Invalid " +
|
|
20051
|
+
return new C("Invalid " + ae + " `" + le + "` of type " + ("`" + se + "` supplied to `" + ne + "`, expected a single ReactElement."));
|
|
20045
20052
|
}
|
|
20046
20053
|
return null;
|
|
20047
20054
|
}
|
|
20048
20055
|
return S(W);
|
|
20049
20056
|
}
|
|
20050
20057
|
function R() {
|
|
20051
|
-
function W(
|
|
20052
|
-
var ue =
|
|
20058
|
+
function W(Z, te, ne, ae, le) {
|
|
20059
|
+
var ue = Z[te];
|
|
20053
20060
|
if (!t.isValidElementType(ue)) {
|
|
20054
20061
|
var se = U(ue);
|
|
20055
|
-
return new C("Invalid " +
|
|
20062
|
+
return new C("Invalid " + ae + " `" + le + "` of type " + ("`" + se + "` supplied to `" + ne + "`, expected a single ReactElement type."));
|
|
20056
20063
|
}
|
|
20057
20064
|
return null;
|
|
20058
20065
|
}
|
|
20059
20066
|
return S(W);
|
|
20060
20067
|
}
|
|
20061
20068
|
function N(W) {
|
|
20062
|
-
function
|
|
20063
|
-
if (!(ne
|
|
20064
|
-
var se = W.name || b,
|
|
20065
|
-
return new C("Invalid " + le + " `" + ue + "` of type " + ("`" +
|
|
20069
|
+
function Z(te, ne, ae, le, ue) {
|
|
20070
|
+
if (!(te[ne] instanceof W)) {
|
|
20071
|
+
var se = W.name || b, ce = z(te[ne]);
|
|
20072
|
+
return new C("Invalid " + le + " `" + ue + "` of type " + ("`" + ce + "` supplied to `" + ae + "`, expected ") + ("instance of `" + se + "`."));
|
|
20066
20073
|
}
|
|
20067
20074
|
return null;
|
|
20068
20075
|
}
|
|
20069
|
-
return S(
|
|
20076
|
+
return S(Z);
|
|
20070
20077
|
}
|
|
20071
20078
|
function O(W) {
|
|
20072
20079
|
if (!Array.isArray(W))
|
|
20073
20080
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? l(
|
|
20074
20081
|
"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])."
|
|
20075
20082
|
) : l("Invalid argument supplied to oneOf, expected an array.")), u;
|
|
20076
|
-
function
|
|
20077
|
-
for (var se = ne
|
|
20078
|
-
if (E(se, W[
|
|
20083
|
+
function Z(te, ne, ae, le, ue) {
|
|
20084
|
+
for (var se = te[ne], ce = 0; ce < W.length; ce++)
|
|
20085
|
+
if (E(se, W[ce]))
|
|
20079
20086
|
return null;
|
|
20080
|
-
var
|
|
20081
|
-
var
|
|
20082
|
-
return
|
|
20087
|
+
var oe = JSON.stringify(W, function(ie, K) {
|
|
20088
|
+
var fe = Q(K);
|
|
20089
|
+
return fe === "symbol" ? String(K) : K;
|
|
20083
20090
|
});
|
|
20084
|
-
return new C("Invalid " + le + " `" + ue + "` of value `" + String(se) + "` " + ("supplied to `" +
|
|
20091
|
+
return new C("Invalid " + le + " `" + ue + "` of value `" + String(se) + "` " + ("supplied to `" + ae + "`, expected one of " + oe + "."));
|
|
20085
20092
|
}
|
|
20086
|
-
return S(
|
|
20093
|
+
return S(Z);
|
|
20087
20094
|
}
|
|
20088
20095
|
function D(W) {
|
|
20089
|
-
function
|
|
20096
|
+
function Z(te, ne, ae, le, ue) {
|
|
20090
20097
|
if (typeof W != "function")
|
|
20091
|
-
return new C("Property `" + ue + "` of component `" +
|
|
20092
|
-
var se = ne
|
|
20093
|
-
if (
|
|
20094
|
-
return new C("Invalid " + le + " `" + ue + "` of type " + ("`" +
|
|
20095
|
-
for (var
|
|
20096
|
-
if (i(se,
|
|
20097
|
-
var
|
|
20098
|
-
if (
|
|
20099
|
-
return
|
|
20098
|
+
return new C("Property `" + ue + "` of component `" + ae + "` has invalid PropType notation inside objectOf.");
|
|
20099
|
+
var se = te[ne], ce = U(se);
|
|
20100
|
+
if (ce !== "object")
|
|
20101
|
+
return new C("Invalid " + le + " `" + ue + "` of type " + ("`" + ce + "` supplied to `" + ae + "`, expected an object."));
|
|
20102
|
+
for (var oe in se)
|
|
20103
|
+
if (i(se, oe)) {
|
|
20104
|
+
var J = W(se, oe, ae, le, ue + "." + oe, n);
|
|
20105
|
+
if (J instanceof Error)
|
|
20106
|
+
return J;
|
|
20100
20107
|
}
|
|
20101
20108
|
return null;
|
|
20102
20109
|
}
|
|
20103
|
-
return S(
|
|
20110
|
+
return S(Z);
|
|
20104
20111
|
}
|
|
20105
20112
|
function V(W) {
|
|
20106
20113
|
if (!Array.isArray(W))
|
|
20107
20114
|
return process.env.NODE_ENV !== "production" && l("Invalid argument supplied to oneOfType, expected an instance of array."), u;
|
|
20108
|
-
for (var
|
|
20109
|
-
var
|
|
20110
|
-
if (typeof
|
|
20115
|
+
for (var Z = 0; Z < W.length; Z++) {
|
|
20116
|
+
var te = W[Z];
|
|
20117
|
+
if (typeof te != "function")
|
|
20111
20118
|
return l(
|
|
20112
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + F(
|
|
20119
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + F(te) + " at index " + Z + "."
|
|
20113
20120
|
), u;
|
|
20114
20121
|
}
|
|
20115
|
-
function
|
|
20116
|
-
for (var
|
|
20117
|
-
var
|
|
20118
|
-
if (
|
|
20122
|
+
function ne(ae, le, ue, se, ce) {
|
|
20123
|
+
for (var oe = [], J = 0; J < W.length; J++) {
|
|
20124
|
+
var ie = W[J], K = ie(ae, le, ue, se, ce, n);
|
|
20125
|
+
if (K == null)
|
|
20119
20126
|
return null;
|
|
20120
|
-
|
|
20127
|
+
K.data && i(K.data, "expectedType") && oe.push(K.data.expectedType);
|
|
20121
20128
|
}
|
|
20122
|
-
var
|
|
20123
|
-
return new C("Invalid " + se + " `" +
|
|
20129
|
+
var fe = oe.length > 0 ? ", expected one of type [" + oe.join(", ") + "]" : "";
|
|
20130
|
+
return new C("Invalid " + se + " `" + ce + "` supplied to " + ("`" + ue + "`" + fe + "."));
|
|
20124
20131
|
}
|
|
20125
|
-
return S(
|
|
20132
|
+
return S(ne);
|
|
20126
20133
|
}
|
|
20127
20134
|
function L() {
|
|
20128
|
-
function W(
|
|
20129
|
-
return H(
|
|
20135
|
+
function W(Z, te, ne, ae, le) {
|
|
20136
|
+
return H(Z[te]) ? null : new C("Invalid " + ae + " `" + le + "` supplied to " + ("`" + ne + "`, expected a ReactNode."));
|
|
20130
20137
|
}
|
|
20131
20138
|
return S(W);
|
|
20132
20139
|
}
|
|
20133
|
-
function B(W,
|
|
20140
|
+
function B(W, Z, te, ne, ae) {
|
|
20134
20141
|
return new C(
|
|
20135
|
-
(W || "React class") + ": " +
|
|
20142
|
+
(W || "React class") + ": " + Z + " type `" + te + "." + ne + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + ae + "`."
|
|
20136
20143
|
);
|
|
20137
20144
|
}
|
|
20138
20145
|
function j(W) {
|
|
20139
|
-
function
|
|
20140
|
-
var se = ne
|
|
20141
|
-
if (
|
|
20142
|
-
return new C("Invalid " + le + " `" + ue + "` of type `" +
|
|
20143
|
-
for (var
|
|
20144
|
-
var
|
|
20145
|
-
if (typeof
|
|
20146
|
-
return B(
|
|
20147
|
-
var
|
|
20148
|
-
if (
|
|
20149
|
-
return
|
|
20146
|
+
function Z(te, ne, ae, le, ue) {
|
|
20147
|
+
var se = te[ne], ce = U(se);
|
|
20148
|
+
if (ce !== "object")
|
|
20149
|
+
return new C("Invalid " + le + " `" + ue + "` of type `" + ce + "` " + ("supplied to `" + ae + "`, expected `object`."));
|
|
20150
|
+
for (var oe in W) {
|
|
20151
|
+
var J = W[oe];
|
|
20152
|
+
if (typeof J != "function")
|
|
20153
|
+
return B(ae, le, ue, oe, Q(J));
|
|
20154
|
+
var ie = J(se, oe, ae, le, ue + "." + oe, n);
|
|
20155
|
+
if (ie)
|
|
20156
|
+
return ie;
|
|
20150
20157
|
}
|
|
20151
20158
|
return null;
|
|
20152
20159
|
}
|
|
20153
|
-
return S(
|
|
20160
|
+
return S(Z);
|
|
20154
20161
|
}
|
|
20155
20162
|
function q(W) {
|
|
20156
|
-
function
|
|
20157
|
-
var se = ne
|
|
20158
|
-
if (
|
|
20159
|
-
return new C("Invalid " + le + " `" + ue + "` of type `" +
|
|
20160
|
-
var
|
|
20161
|
-
for (var
|
|
20162
|
-
var
|
|
20163
|
-
if (i(W,
|
|
20164
|
-
return B(
|
|
20165
|
-
if (!
|
|
20163
|
+
function Z(te, ne, ae, le, ue) {
|
|
20164
|
+
var se = te[ne], ce = U(se);
|
|
20165
|
+
if (ce !== "object")
|
|
20166
|
+
return new C("Invalid " + le + " `" + ue + "` of type `" + ce + "` " + ("supplied to `" + ae + "`, expected `object`."));
|
|
20167
|
+
var oe = e({}, te[ne], W);
|
|
20168
|
+
for (var J in oe) {
|
|
20169
|
+
var ie = W[J];
|
|
20170
|
+
if (i(W, J) && typeof ie != "function")
|
|
20171
|
+
return B(ae, le, ue, J, Q(ie));
|
|
20172
|
+
if (!ie)
|
|
20166
20173
|
return new C(
|
|
20167
|
-
"Invalid " + le + " `" + ue + "` key `" +
|
|
20174
|
+
"Invalid " + le + " `" + ue + "` key `" + J + "` supplied to `" + ae + "`.\nBad object: " + JSON.stringify(te[ne], null, " ") + `
|
|
20168
20175
|
Valid keys: ` + JSON.stringify(Object.keys(W), null, " ")
|
|
20169
20176
|
);
|
|
20170
|
-
var
|
|
20171
|
-
if (
|
|
20172
|
-
return
|
|
20177
|
+
var K = ie(se, J, ae, le, ue + "." + J, n);
|
|
20178
|
+
if (K)
|
|
20179
|
+
return K;
|
|
20173
20180
|
}
|
|
20174
20181
|
return null;
|
|
20175
20182
|
}
|
|
20176
|
-
return S(
|
|
20183
|
+
return S(Z);
|
|
20177
20184
|
}
|
|
20178
20185
|
function H(W) {
|
|
20179
20186
|
switch (typeof W) {
|
|
@@ -20188,17 +20195,17 @@ Valid keys: ` + JSON.stringify(Object.keys(W), null, " ")
|
|
|
20188
20195
|
return W.every(H);
|
|
20189
20196
|
if (W === null || d(W))
|
|
20190
20197
|
return !0;
|
|
20191
|
-
var
|
|
20192
|
-
if (
|
|
20193
|
-
var
|
|
20194
|
-
if (
|
|
20195
|
-
for (; !(
|
|
20196
|
-
if (!H(
|
|
20198
|
+
var Z = g(W);
|
|
20199
|
+
if (Z) {
|
|
20200
|
+
var te = Z.call(W), ne;
|
|
20201
|
+
if (Z !== W.entries) {
|
|
20202
|
+
for (; !(ne = te.next()).done; )
|
|
20203
|
+
if (!H(ne.value))
|
|
20197
20204
|
return !1;
|
|
20198
20205
|
} else
|
|
20199
|
-
for (; !(
|
|
20200
|
-
var
|
|
20201
|
-
if (
|
|
20206
|
+
for (; !(ne = te.next()).done; ) {
|
|
20207
|
+
var ae = ne.value;
|
|
20208
|
+
if (ae && !H(ae[1]))
|
|
20202
20209
|
return !1;
|
|
20203
20210
|
}
|
|
20204
20211
|
} else
|
|
@@ -20208,37 +20215,37 @@ Valid keys: ` + JSON.stringify(Object.keys(W), null, " ")
|
|
|
20208
20215
|
return !1;
|
|
20209
20216
|
}
|
|
20210
20217
|
}
|
|
20211
|
-
function G(W,
|
|
20212
|
-
return W === "symbol" ? !0 :
|
|
20218
|
+
function G(W, Z) {
|
|
20219
|
+
return W === "symbol" ? !0 : Z ? Z["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && Z instanceof Symbol : !1;
|
|
20213
20220
|
}
|
|
20214
20221
|
function U(W) {
|
|
20215
|
-
var
|
|
20216
|
-
return Array.isArray(W) ? "array" : W instanceof RegExp ? "object" : G(
|
|
20222
|
+
var Z = typeof W;
|
|
20223
|
+
return Array.isArray(W) ? "array" : W instanceof RegExp ? "object" : G(Z, W) ? "symbol" : Z;
|
|
20217
20224
|
}
|
|
20218
|
-
function
|
|
20225
|
+
function Q(W) {
|
|
20219
20226
|
if (typeof W > "u" || W === null)
|
|
20220
20227
|
return "" + W;
|
|
20221
|
-
var
|
|
20222
|
-
if (
|
|
20228
|
+
var Z = U(W);
|
|
20229
|
+
if (Z === "object") {
|
|
20223
20230
|
if (W instanceof Date)
|
|
20224
20231
|
return "date";
|
|
20225
20232
|
if (W instanceof RegExp)
|
|
20226
20233
|
return "regexp";
|
|
20227
20234
|
}
|
|
20228
|
-
return
|
|
20235
|
+
return Z;
|
|
20229
20236
|
}
|
|
20230
20237
|
function F(W) {
|
|
20231
|
-
var
|
|
20232
|
-
switch (
|
|
20238
|
+
var Z = Q(W);
|
|
20239
|
+
switch (Z) {
|
|
20233
20240
|
case "array":
|
|
20234
20241
|
case "object":
|
|
20235
|
-
return "an " +
|
|
20242
|
+
return "an " + Z;
|
|
20236
20243
|
case "boolean":
|
|
20237
20244
|
case "date":
|
|
20238
20245
|
case "regexp":
|
|
20239
|
-
return "a " +
|
|
20246
|
+
return "a " + Z;
|
|
20240
20247
|
default:
|
|
20241
|
-
return
|
|
20248
|
+
return Z;
|
|
20242
20249
|
}
|
|
20243
20250
|
}
|
|
20244
20251
|
function z(W) {
|
|
@@ -23178,9 +23185,9 @@ _defineProperty$d(Bar, "getComposedData", function(t) {
|
|
|
23178
23185
|
}), O = findAllByType(A, Cell), D = g.map(function(V, L) {
|
|
23179
23186
|
var B, j, q, H, G, U;
|
|
23180
23187
|
p ? B = truncateByDomain(p[m + L], R) : (B = getValueByDataKey(V, T), Array.isArray(B) || (B = [N, B]));
|
|
23181
|
-
var
|
|
23188
|
+
var Q = minPointSizeCallback(I, _Bar.defaultProps.minPointSize)(B[1], L);
|
|
23182
23189
|
if (E === "horizontal") {
|
|
23183
|
-
var F, z = [u.scale(B[0]), u.scale(B[1])], W = z[0],
|
|
23190
|
+
var F, z = [u.scale(B[0]), u.scale(B[1])], W = z[0], Z = z[1];
|
|
23184
23191
|
j = getCateCoordinateOfBar({
|
|
23185
23192
|
axis: l,
|
|
23186
23193
|
ticks: d,
|
|
@@ -23188,19 +23195,19 @@ _defineProperty$d(Bar, "getComposedData", function(t) {
|
|
|
23188
23195
|
offset: _.offset,
|
|
23189
23196
|
entry: V,
|
|
23190
23197
|
index: L
|
|
23191
|
-
}), q = (F =
|
|
23192
|
-
var
|
|
23193
|
-
if (G = Number.isNaN(
|
|
23198
|
+
}), q = (F = Z ?? W) !== null && F !== void 0 ? F : void 0, H = _.size;
|
|
23199
|
+
var te = W - Z;
|
|
23200
|
+
if (G = Number.isNaN(te) ? 0 : te, U = {
|
|
23194
23201
|
x: j,
|
|
23195
23202
|
y: u.y,
|
|
23196
23203
|
width: H,
|
|
23197
23204
|
height: u.height
|
|
23198
|
-
}, Math.abs(
|
|
23199
|
-
var
|
|
23200
|
-
q -=
|
|
23205
|
+
}, Math.abs(Q) > 0 && Math.abs(G) < Math.abs(Q)) {
|
|
23206
|
+
var ne = mathSign(G || Q) * (Math.abs(Q) - Math.abs(G));
|
|
23207
|
+
q -= ne, G += ne;
|
|
23201
23208
|
}
|
|
23202
23209
|
} else {
|
|
23203
|
-
var
|
|
23210
|
+
var ae = [l.scale(B[0]), l.scale(B[1])], le = ae[0], ue = ae[1];
|
|
23204
23211
|
if (j = le, q = getCateCoordinateOfBar({
|
|
23205
23212
|
axis: u,
|
|
23206
23213
|
ticks: f,
|
|
@@ -23213,8 +23220,8 @@ _defineProperty$d(Bar, "getComposedData", function(t) {
|
|
|
23213
23220
|
y: q,
|
|
23214
23221
|
width: l.width,
|
|
23215
23222
|
height: G
|
|
23216
|
-
}, Math.abs(
|
|
23217
|
-
var se = mathSign(H ||
|
|
23223
|
+
}, Math.abs(Q) > 0 && Math.abs(H) < Math.abs(Q)) {
|
|
23224
|
+
var se = mathSign(H || Q) * (Math.abs(Q) - Math.abs(H));
|
|
23218
23225
|
H += se;
|
|
23219
23226
|
}
|
|
23220
23227
|
}
|
|
@@ -23313,32 +23320,32 @@ var formatAxisMap = function(e, n, i, o, l) {
|
|
|
23313
23320
|
var C = n[E], S = C.orientation, T = C.domain, A = C.padding, I = A === void 0 ? {} : A, M = C.mirror, R = C.reversed, N = "".concat(S).concat(M ? "Mirror" : ""), O, D, V, L, B;
|
|
23314
23321
|
if (C.type === "number" && (C.padding === "gap" || C.padding === "no-gap")) {
|
|
23315
23322
|
var j = T[1] - T[0], q = 1 / 0, H = C.categoricalDomain.sort();
|
|
23316
|
-
if (H.forEach(function(
|
|
23317
|
-
le > 0 && (q = Math.min((
|
|
23323
|
+
if (H.forEach(function(ae, le) {
|
|
23324
|
+
le > 0 && (q = Math.min((ae || 0) - (H[le - 1] || 0), q));
|
|
23318
23325
|
}), Number.isFinite(q)) {
|
|
23319
23326
|
var G = q / j, U = C.layout === "vertical" ? i.height : i.width;
|
|
23320
23327
|
if (C.padding === "gap" && (O = G * U / 2), C.padding === "no-gap") {
|
|
23321
|
-
var
|
|
23322
|
-
O = F -
|
|
23328
|
+
var Q = getPercentValue(e.barCategoryGap, G * U), F = G * U / 2;
|
|
23329
|
+
O = F - Q - (F - Q) / U * Q;
|
|
23323
23330
|
}
|
|
23324
23331
|
}
|
|
23325
23332
|
}
|
|
23326
23333
|
o === "xAxis" ? D = [i.left + (I.left || 0) + (O || 0), i.left + i.width - (I.right || 0) - (O || 0)] : o === "yAxis" ? D = f === "horizontal" ? [i.top + i.height - (I.bottom || 0), i.top + (I.top || 0)] : [i.top + (I.top || 0) + (O || 0), i.top + i.height - (I.bottom || 0) - (O || 0)] : D = C.range, R && (D = [D[1], D[0]]);
|
|
23327
|
-
var z = parseScale(C, l, b), W = z.scale,
|
|
23334
|
+
var z = parseScale(C, l, b), W = z.scale, Z = z.realScaleType;
|
|
23328
23335
|
W.domain(T).range(D), checkDomainOfScale(W);
|
|
23329
|
-
var
|
|
23330
|
-
realScaleType:
|
|
23336
|
+
var te = getTicksOfScale(W, _objectSpread$9(_objectSpread$9({}, C), {}, {
|
|
23337
|
+
realScaleType: Z
|
|
23331
23338
|
}));
|
|
23332
23339
|
o === "xAxis" ? (B = S === "top" && !M || S === "bottom" && M, V = i.left, L = g[N] - B * C.height) : o === "yAxis" && (B = S === "left" && !M || S === "right" && M, V = g[N] - B * C.width, L = i.top);
|
|
23333
|
-
var
|
|
23334
|
-
realScaleType:
|
|
23340
|
+
var ne = _objectSpread$9(_objectSpread$9(_objectSpread$9({}, C), te), {}, {
|
|
23341
|
+
realScaleType: Z,
|
|
23335
23342
|
x: V,
|
|
23336
23343
|
y: L,
|
|
23337
23344
|
scale: W,
|
|
23338
23345
|
width: o === "xAxis" ? i.width : C.width,
|
|
23339
23346
|
height: o === "yAxis" ? i.height : C.height
|
|
23340
23347
|
});
|
|
23341
|
-
return
|
|
23348
|
+
return ne.bandSize = getBandSizeOfAxis(ne, te), !C.hide && o === "xAxis" ? g[N] += (B ? -1 : 1) * ne.height : C.hide || (g[N] += (B ? -1 : 1) * ne.width), _objectSpread$9(_objectSpread$9({}, _), {}, _defineProperty$c({}, E, ne));
|
|
23342
23349
|
}, {});
|
|
23343
23350
|
}, rectWithPoints = function(e, n) {
|
|
23344
23351
|
var i = e.x, o = e.y, l = n.x, u = n.y;
|
|
@@ -26379,9 +26386,9 @@ var getTooltipContent = function(e, n, i, o) {
|
|
|
26379
26386
|
if (E[V])
|
|
26380
26387
|
return E;
|
|
26381
26388
|
var L = getDisplayedData(e.data, {
|
|
26382
|
-
graphicalItems: o.filter(function(
|
|
26383
|
-
var
|
|
26384
|
-
return
|
|
26389
|
+
graphicalItems: o.filter(function(te) {
|
|
26390
|
+
var ne, ae = u in te.props ? te.props[u] : (ne = te.type.defaultProps) === null || ne === void 0 ? void 0 : ne[u];
|
|
26391
|
+
return ae === V;
|
|
26385
26392
|
}),
|
|
26386
26393
|
dataStartIndex: f,
|
|
26387
26394
|
dataEndIndex: p
|
|
@@ -26389,38 +26396,38 @@ var getTooltipContent = function(e, n, i, o) {
|
|
|
26389
26396
|
isDomainSpecifiedByUser(T.domain, M, A) && (j = parseSpecifiedDomain(T.domain, null, M), _ && (A === "number" || N !== "auto") && (H = getDomainOfDataByKey(L, I, "category")));
|
|
26390
26397
|
var G = getDefaultDomainByAxisType(A);
|
|
26391
26398
|
if (!j || j.length === 0) {
|
|
26392
|
-
var U,
|
|
26399
|
+
var U, Q = (U = T.domain) !== null && U !== void 0 ? U : G;
|
|
26393
26400
|
if (I) {
|
|
26394
26401
|
if (j = getDomainOfDataByKey(L, I, A), A === "category" && _) {
|
|
26395
26402
|
var F = hasDuplicate(j);
|
|
26396
|
-
R && F ? (q = j, j = range(0, B)) : R || (j = parseDomainOfCategoryAxis(
|
|
26397
|
-
return
|
|
26403
|
+
R && F ? (q = j, j = range(0, B)) : R || (j = parseDomainOfCategoryAxis(Q, j, C).reduce(function(te, ne) {
|
|
26404
|
+
return te.indexOf(ne) >= 0 ? te : [].concat(_toConsumableArray(te), [ne]);
|
|
26398
26405
|
}, []));
|
|
26399
26406
|
} else if (A === "category")
|
|
26400
|
-
R ? j = j.filter(function(
|
|
26401
|
-
return
|
|
26402
|
-
}) : j = parseDomainOfCategoryAxis(
|
|
26403
|
-
return
|
|
26407
|
+
R ? j = j.filter(function(te) {
|
|
26408
|
+
return te !== "" && !isNil(te);
|
|
26409
|
+
}) : j = parseDomainOfCategoryAxis(Q, j, C).reduce(function(te, ne) {
|
|
26410
|
+
return te.indexOf(ne) >= 0 || ne === "" || isNil(ne) ? te : [].concat(_toConsumableArray(te), [ne]);
|
|
26404
26411
|
}, []);
|
|
26405
26412
|
else if (A === "number") {
|
|
26406
|
-
var z = parseErrorBarsOfAxis(L, o.filter(function(
|
|
26407
|
-
var
|
|
26413
|
+
var z = parseErrorBarsOfAxis(L, o.filter(function(te) {
|
|
26414
|
+
var ne, ae, le = u in te.props ? te.props[u] : (ne = te.type.defaultProps) === null || ne === void 0 ? void 0 : ne[u], ue = "hide" in te.props ? te.props.hide : (ae = te.type.defaultProps) === null || ae === void 0 ? void 0 : ae.hide;
|
|
26408
26415
|
return le === V && (D || !ue);
|
|
26409
26416
|
}), I, l, m);
|
|
26410
26417
|
z && (j = z);
|
|
26411
26418
|
}
|
|
26412
26419
|
_ && (A === "number" || N !== "auto") && (H = getDomainOfDataByKey(L, I, "category"));
|
|
26413
|
-
} else _ ? j = range(0, B) : d && d[V] && d[V].hasStack && A === "number" ? j = b === "expand" ? [0, 1] : getDomainOfStackGroups(d[V].stackGroups, f, p) : j = getDomainOfItemsWithSameAxis(L, o.filter(function(
|
|
26414
|
-
var
|
|
26415
|
-
return
|
|
26420
|
+
} else _ ? j = range(0, B) : d && d[V] && d[V].hasStack && A === "number" ? j = b === "expand" ? [0, 1] : getDomainOfStackGroups(d[V].stackGroups, f, p) : j = getDomainOfItemsWithSameAxis(L, o.filter(function(te) {
|
|
26421
|
+
var ne = u in te.props ? te.props[u] : te.type.defaultProps[u], ae = "hide" in te.props ? te.props.hide : te.type.defaultProps.hide;
|
|
26422
|
+
return ne === V && (D || !ae);
|
|
26416
26423
|
}), A, m, !0);
|
|
26417
26424
|
if (A === "number")
|
|
26418
|
-
j = detectReferenceElementsDomain(g, j, V, l, O),
|
|
26419
|
-
else if (A === "category" &&
|
|
26420
|
-
var W =
|
|
26421
|
-
return W.indexOf(
|
|
26425
|
+
j = detectReferenceElementsDomain(g, j, V, l, O), Q && (j = parseSpecifiedDomain(Q, j, M));
|
|
26426
|
+
else if (A === "category" && Q) {
|
|
26427
|
+
var W = Q, Z = j.every(function(te) {
|
|
26428
|
+
return W.indexOf(te) >= 0;
|
|
26422
26429
|
});
|
|
26423
|
-
|
|
26430
|
+
Z && (j = W);
|
|
26424
26431
|
}
|
|
26425
26432
|
}
|
|
26426
26433
|
return _objectSpread(_objectSpread({}, E), {}, _defineProperty({}, V, _objectSpread(_objectSpread({}, T), {}, {
|
|
@@ -26550,34 +26557,34 @@ var getTooltipContent = function(e, n, i, o) {
|
|
|
26550
26557
|
return e[n].height;
|
|
26551
26558
|
}, generateCategoricalChart = function(e) {
|
|
26552
26559
|
var n = e.chartName, i = e.GraphicalChild, o = e.defaultTooltipEventType, l = o === void 0 ? "axis" : o, u = e.validateTooltipEventTypes, d = u === void 0 ? ["axis"] : u, f = e.axisComponents, p = e.legendContent, m = e.formatAxisMap, g = e.defaultProps, b = function(T, A) {
|
|
26553
|
-
var I = A.graphicalItems, M = A.stackGroups, R = A.offset, N = A.updateId, O = A.dataStartIndex, D = A.dataEndIndex, V = T.barSize, L = T.layout, B = T.barGap, j = T.barCategoryGap, q = T.maxBarSize, H = getAxisNameByLayout(L), G = H.numericAxisName, U = H.cateAxisName,
|
|
26560
|
+
var I = A.graphicalItems, M = A.stackGroups, R = A.offset, N = A.updateId, O = A.dataStartIndex, D = A.dataEndIndex, V = T.barSize, L = T.layout, B = T.barGap, j = T.barCategoryGap, q = T.maxBarSize, H = getAxisNameByLayout(L), G = H.numericAxisName, U = H.cateAxisName, Q = hasGraphicalBarItem(I), F = [];
|
|
26554
26561
|
return I.forEach(function(z, W) {
|
|
26555
|
-
var
|
|
26562
|
+
var Z = getDisplayedData(T.data, {
|
|
26556
26563
|
graphicalItems: [z],
|
|
26557
26564
|
dataStartIndex: O,
|
|
26558
26565
|
dataEndIndex: D
|
|
26559
|
-
}),
|
|
26560
|
-
var xe, Se, _e = A["".concat(ve.axisType, "Map")], Ce =
|
|
26566
|
+
}), te = z.type.defaultProps !== void 0 ? _objectSpread(_objectSpread({}, z.type.defaultProps), z.props) : z.props, ne = te.dataKey, ae = te.maxBarSize, le = te["".concat(G, "Id")], ue = te["".concat(U, "Id")], se = {}, ce = f.reduce(function(Pe, ve) {
|
|
26567
|
+
var xe, Se, _e = A["".concat(ve.axisType, "Map")], Ce = te["".concat(ve.axisType, "Id")];
|
|
26561
26568
|
_e && _e[Ce] || ve.axisType === "zAxis" || (process.env.NODE_ENV !== "production" ? invariant(!1, "Specifying a(n) ".concat(ve.axisType, "Id requires a corresponding ").concat(
|
|
26562
26569
|
ve.axisType,
|
|
26563
26570
|
"Id on the targeted graphical component "
|
|
26564
26571
|
).concat((xe = z == null || (Se = z.type) === null || Se === void 0 ? void 0 : Se.displayName) !== null && xe !== void 0 ? xe : "")) : invariant());
|
|
26565
26572
|
var Ee = _e[Ce];
|
|
26566
26573
|
return _objectSpread(_objectSpread({}, Pe), {}, _defineProperty(_defineProperty({}, ve.axisType, Ee), "".concat(ve.axisType, "Ticks"), getTicksOfAxis(Ee)));
|
|
26567
|
-
}, se),
|
|
26574
|
+
}, se), oe = ce[U], J = ce["".concat(U, "Ticks")], ie = M && M[le] && M[le].hasStack && getStackedDataOfItem(z, M[le].stackGroups), K = getDisplayName(z.type).indexOf("Bar") >= 0, fe = getBandSizeOfAxis(oe, J), ee = [], de = Q && getBarSizeList({
|
|
26568
26575
|
barSize: V,
|
|
26569
26576
|
stackGroups: M,
|
|
26570
|
-
totalSize: getCartesianAxisSize(
|
|
26577
|
+
totalSize: getCartesianAxisSize(ce, U)
|
|
26571
26578
|
});
|
|
26572
|
-
if (
|
|
26573
|
-
var he, me, ye = isNil(
|
|
26574
|
-
|
|
26579
|
+
if (K) {
|
|
26580
|
+
var he, me, ye = isNil(ae) ? q : ae, pe = (he = (me = getBandSizeOfAxis(oe, J, !0)) !== null && me !== void 0 ? me : ye) !== null && he !== void 0 ? he : 0;
|
|
26581
|
+
ee = getBarPosition({
|
|
26575
26582
|
barGap: B,
|
|
26576
26583
|
barCategoryGap: j,
|
|
26577
|
-
bandSize: pe !==
|
|
26578
|
-
sizeList:
|
|
26584
|
+
bandSize: pe !== fe ? pe : fe,
|
|
26585
|
+
sizeList: de[ue],
|
|
26579
26586
|
maxBarSize: ye
|
|
26580
|
-
}), pe !==
|
|
26587
|
+
}), pe !== fe && (ee = ee.map(function(Pe) {
|
|
26581
26588
|
return _objectSpread(_objectSpread({}, Pe), {}, {
|
|
26582
26589
|
position: _objectSpread(_objectSpread({}, Pe.position), {}, {
|
|
26583
26590
|
offset: Pe.position.offset - pe / 2
|
|
@@ -26587,21 +26594,21 @@ var getTooltipContent = function(e, n, i, o) {
|
|
|
26587
26594
|
}
|
|
26588
26595
|
var ge = z && z.type && z.type.getComposedData;
|
|
26589
26596
|
ge && F.push({
|
|
26590
|
-
props: _objectSpread(_objectSpread({}, ge(_objectSpread(_objectSpread({},
|
|
26591
|
-
displayedData:
|
|
26597
|
+
props: _objectSpread(_objectSpread({}, ge(_objectSpread(_objectSpread({}, ce), {}, {
|
|
26598
|
+
displayedData: Z,
|
|
26592
26599
|
props: T,
|
|
26593
|
-
dataKey:
|
|
26600
|
+
dataKey: ne,
|
|
26594
26601
|
item: z,
|
|
26595
|
-
bandSize:
|
|
26596
|
-
barPosition:
|
|
26602
|
+
bandSize: fe,
|
|
26603
|
+
barPosition: ee,
|
|
26597
26604
|
offset: R,
|
|
26598
|
-
stackedData:
|
|
26605
|
+
stackedData: ie,
|
|
26599
26606
|
layout: L,
|
|
26600
26607
|
dataStartIndex: O,
|
|
26601
26608
|
dataEndIndex: D
|
|
26602
26609
|
}))), {}, _defineProperty(_defineProperty(_defineProperty({
|
|
26603
26610
|
key: z.key || "item-".concat(W)
|
|
26604
|
-
}, G,
|
|
26611
|
+
}, G, ce[G]), U, ce[U]), "animationId", N)),
|
|
26605
26612
|
childIndex: parseChildIndex(z, T.children),
|
|
26606
26613
|
item: z
|
|
26607
26614
|
});
|
|
@@ -26612,22 +26619,22 @@ var getTooltipContent = function(e, n, i, o) {
|
|
|
26612
26619
|
props: I
|
|
26613
26620
|
}))
|
|
26614
26621
|
return null;
|
|
26615
|
-
var O = I.children, D = I.layout, V = I.stackOffset, L = I.data, B = I.reverseStackOrder, j = getAxisNameByLayout(D), q = j.numericAxisName, H = j.cateAxisName, G = findAllByType(O, i), U = getStackGroupsByAxisId(L, G, "".concat(q, "Id"), "".concat(H, "Id"), V, B),
|
|
26616
|
-
var
|
|
26617
|
-
return _objectSpread(_objectSpread({},
|
|
26622
|
+
var O = I.children, D = I.layout, V = I.stackOffset, L = I.data, B = I.reverseStackOrder, j = getAxisNameByLayout(D), q = j.numericAxisName, H = j.cateAxisName, G = findAllByType(O, i), U = getStackGroupsByAxisId(L, G, "".concat(q, "Id"), "".concat(H, "Id"), V, B), Q = f.reduce(function(te, ne) {
|
|
26623
|
+
var ae = "".concat(ne.axisType, "Map");
|
|
26624
|
+
return _objectSpread(_objectSpread({}, te), {}, _defineProperty({}, ae, getAxisMap(I, _objectSpread(_objectSpread({}, ne), {}, {
|
|
26618
26625
|
graphicalItems: G,
|
|
26619
|
-
stackGroups:
|
|
26626
|
+
stackGroups: ne.axisType === q && U,
|
|
26620
26627
|
dataStartIndex: M,
|
|
26621
26628
|
dataEndIndex: R
|
|
26622
26629
|
}))));
|
|
26623
|
-
}, {}), F = calculateOffset(_objectSpread(_objectSpread({},
|
|
26630
|
+
}, {}), F = calculateOffset(_objectSpread(_objectSpread({}, Q), {}, {
|
|
26624
26631
|
props: I,
|
|
26625
26632
|
graphicalItems: G
|
|
26626
26633
|
}), A == null ? void 0 : A.legendBBox);
|
|
26627
|
-
Object.keys(
|
|
26628
|
-
|
|
26634
|
+
Object.keys(Q).forEach(function(te) {
|
|
26635
|
+
Q[te] = m(I, Q[te], F, te.replace("Map", ""), n);
|
|
26629
26636
|
});
|
|
26630
|
-
var z =
|
|
26637
|
+
var z = Q["".concat(H, "Map")], W = tooltipTicksGenerator(z), Z = b(I, _objectSpread(_objectSpread({}, Q), {}, {
|
|
26631
26638
|
dataStartIndex: M,
|
|
26632
26639
|
dataEndIndex: R,
|
|
26633
26640
|
updateId: N,
|
|
@@ -26636,11 +26643,11 @@ var getTooltipContent = function(e, n, i, o) {
|
|
|
26636
26643
|
offset: F
|
|
26637
26644
|
}));
|
|
26638
26645
|
return _objectSpread(_objectSpread({
|
|
26639
|
-
formattedGraphicalItems:
|
|
26646
|
+
formattedGraphicalItems: Z,
|
|
26640
26647
|
graphicalItems: G,
|
|
26641
26648
|
offset: F,
|
|
26642
26649
|
stackGroups: U
|
|
26643
|
-
}, W),
|
|
26650
|
+
}, W), Q);
|
|
26644
26651
|
}, E = /* @__PURE__ */ function(S) {
|
|
26645
26652
|
function T(A) {
|
|
26646
26653
|
var I, M, R;
|
|
@@ -26791,8 +26798,8 @@ var getTooltipContent = function(e, n, i, o) {
|
|
|
26791
26798
|
updateId: L
|
|
26792
26799
|
}, R.state)));
|
|
26793
26800
|
else if (N.activeTooltipIndex !== void 0) {
|
|
26794
|
-
var q = N.chartX, H = N.chartY, G = N.activeTooltipIndex, U = R.state,
|
|
26795
|
-
if (!
|
|
26801
|
+
var q = N.chartX, H = N.chartY, G = N.activeTooltipIndex, U = R.state, Q = U.offset, F = U.tooltipTicks;
|
|
26802
|
+
if (!Q)
|
|
26796
26803
|
return;
|
|
26797
26804
|
if (typeof V == "function")
|
|
26798
26805
|
G = V(F, N);
|
|
@@ -26804,23 +26811,23 @@ var getTooltipContent = function(e, n, i, o) {
|
|
|
26804
26811
|
break;
|
|
26805
26812
|
}
|
|
26806
26813
|
}
|
|
26807
|
-
var W = _objectSpread(_objectSpread({},
|
|
26808
|
-
x:
|
|
26809
|
-
y:
|
|
26810
|
-
}),
|
|
26811
|
-
x: D === "horizontal" ? F[G].coordinate :
|
|
26812
|
-
y: D === "horizontal" ?
|
|
26814
|
+
var W = _objectSpread(_objectSpread({}, Q), {}, {
|
|
26815
|
+
x: Q.left,
|
|
26816
|
+
y: Q.top
|
|
26817
|
+
}), Z = Math.min(q, W.x + W.width), te = Math.min(H, W.y + W.height), ne = F[G] && F[G].value, ae = getTooltipContent(R.state, R.props.data, G), le = F[G] ? {
|
|
26818
|
+
x: D === "horizontal" ? F[G].coordinate : Z,
|
|
26819
|
+
y: D === "horizontal" ? te : F[G].coordinate
|
|
26813
26820
|
} : originCoordinate;
|
|
26814
26821
|
R.setState(_objectSpread(_objectSpread({}, N), {}, {
|
|
26815
|
-
activeLabel:
|
|
26822
|
+
activeLabel: ne,
|
|
26816
26823
|
activeCoordinate: le,
|
|
26817
|
-
activePayload:
|
|
26824
|
+
activePayload: ae,
|
|
26818
26825
|
activeTooltipIndex: G
|
|
26819
26826
|
}));
|
|
26820
26827
|
} else
|
|
26821
26828
|
R.setState(N);
|
|
26822
26829
|
}), _defineProperty(R, "renderCursor", function(N) {
|
|
26823
|
-
var O, D = R.state, V = D.isTooltipActive, L = D.activeCoordinate, B = D.activePayload, j = D.offset, q = D.activeTooltipIndex, H = D.tooltipAxisBandSize, G = R.getTooltipEventType(), U = (O = N.props.active) !== null && O !== void 0 ? O : V,
|
|
26830
|
+
var O, D = R.state, V = D.isTooltipActive, L = D.activeCoordinate, B = D.activePayload, j = D.offset, q = D.activeTooltipIndex, H = D.tooltipAxisBandSize, G = R.getTooltipEventType(), U = (O = N.props.active) !== null && O !== void 0 ? O : V, Q = R.props.layout, F = N.key || "_recharts-cursor";
|
|
26824
26831
|
return /* @__PURE__ */ React__default.createElement(Cursor, {
|
|
26825
26832
|
key: F,
|
|
26826
26833
|
activeCoordinate: L,
|
|
@@ -26829,7 +26836,7 @@ var getTooltipContent = function(e, n, i, o) {
|
|
|
26829
26836
|
chartName: n,
|
|
26830
26837
|
element: N,
|
|
26831
26838
|
isActive: U,
|
|
26832
|
-
layout:
|
|
26839
|
+
layout: Q,
|
|
26833
26840
|
offset: j,
|
|
26834
26841
|
tooltipAxisBandSize: H,
|
|
26835
26842
|
tooltipEventType: G
|
|
@@ -26842,7 +26849,7 @@ var getTooltipContent = function(e, n, i, o) {
|
|
|
26842
26849
|
ticks: getTicksOfAxis(q, !0)
|
|
26843
26850
|
}));
|
|
26844
26851
|
}), _defineProperty(R, "renderPolarGrid", function(N) {
|
|
26845
|
-
var O = N.props, D = O.radialLines, V = O.polarAngles, L = O.polarRadius, B = R.state, j = B.radiusAxisMap, q = B.angleAxisMap, H = getAnyElementOfObject(j), G = getAnyElementOfObject(q), U = G.cx,
|
|
26852
|
+
var O = N.props, D = O.radialLines, V = O.polarAngles, L = O.polarRadius, B = R.state, j = B.radiusAxisMap, q = B.angleAxisMap, H = getAnyElementOfObject(j), G = getAnyElementOfObject(q), U = G.cx, Q = G.cy, F = G.innerRadius, z = G.outerRadius;
|
|
26846
26853
|
return /* @__PURE__ */ cloneElement(N, {
|
|
26847
26854
|
polarAngles: Array.isArray(V) ? V : getTicksOfAxis(G, !0).map(function(W) {
|
|
26848
26855
|
return W.coordinate;
|
|
@@ -26851,7 +26858,7 @@ var getTooltipContent = function(e, n, i, o) {
|
|
|
26851
26858
|
return W.coordinate;
|
|
26852
26859
|
}),
|
|
26853
26860
|
cx: U,
|
|
26854
|
-
cy:
|
|
26861
|
+
cy: Q,
|
|
26855
26862
|
innerRadius: F,
|
|
26856
26863
|
outerRadius: z,
|
|
26857
26864
|
key: N.key || "polar-grid",
|
|
@@ -26877,15 +26884,15 @@ var getTooltipContent = function(e, n, i, o) {
|
|
|
26877
26884
|
var N, O = R.props, D = O.children, V = O.accessibilityLayer, L = findChildByType(D, Tooltip);
|
|
26878
26885
|
if (!L)
|
|
26879
26886
|
return null;
|
|
26880
|
-
var B = R.state, j = B.isTooltipActive, q = B.activeCoordinate, H = B.activePayload, G = B.activeLabel, U = B.offset,
|
|
26887
|
+
var B = R.state, j = B.isTooltipActive, q = B.activeCoordinate, H = B.activePayload, G = B.activeLabel, U = B.offset, Q = (N = L.props.active) !== null && N !== void 0 ? N : j;
|
|
26881
26888
|
return /* @__PURE__ */ cloneElement(L, {
|
|
26882
26889
|
viewBox: _objectSpread(_objectSpread({}, U), {}, {
|
|
26883
26890
|
x: U.left,
|
|
26884
26891
|
y: U.top
|
|
26885
26892
|
}),
|
|
26886
|
-
active:
|
|
26893
|
+
active: Q,
|
|
26887
26894
|
label: G,
|
|
26888
|
-
payload:
|
|
26895
|
+
payload: Q ? H : [],
|
|
26889
26896
|
coordinate: q,
|
|
26890
26897
|
accessibilityLayer: V
|
|
26891
26898
|
});
|
|
@@ -26905,7 +26912,7 @@ var getTooltipContent = function(e, n, i, o) {
|
|
|
26905
26912
|
}), _defineProperty(R, "renderReferenceElement", function(N, O, D) {
|
|
26906
26913
|
if (!N)
|
|
26907
26914
|
return null;
|
|
26908
|
-
var V = R, L = V.clipPathId, B = R.state, j = B.xAxisMap, q = B.yAxisMap, H = B.offset, G = N.type.defaultProps || {}, U = N.props,
|
|
26915
|
+
var V = R, L = V.clipPathId, B = R.state, j = B.xAxisMap, q = B.yAxisMap, H = B.offset, G = N.type.defaultProps || {}, U = N.props, Q = U.xAxisId, F = Q === void 0 ? G.xAxisId : Q, z = U.yAxisId, W = z === void 0 ? G.yAxisId : z;
|
|
26909
26916
|
return /* @__PURE__ */ cloneElement(N, {
|
|
26910
26917
|
key: N.key || "".concat(O, "-").concat(D),
|
|
26911
26918
|
xAxis: j[F],
|
|
@@ -26919,7 +26926,7 @@ var getTooltipContent = function(e, n, i, o) {
|
|
|
26919
26926
|
clipPathId: L
|
|
26920
26927
|
});
|
|
26921
26928
|
}), _defineProperty(R, "renderActivePoints", function(N) {
|
|
26922
|
-
var O = N.item, D = N.activePoint, V = N.basePoint, L = N.childIndex, B = N.isRange, j = [], q = O.props.key, H = O.item.type.defaultProps !== void 0 ? _objectSpread(_objectSpread({}, O.item.type.defaultProps), O.item.props) : O.item.props, G = H.activeDot, U = H.dataKey,
|
|
26929
|
+
var O = N.item, D = N.activePoint, V = N.basePoint, L = N.childIndex, B = N.isRange, j = [], q = O.props.key, H = O.item.type.defaultProps !== void 0 ? _objectSpread(_objectSpread({}, O.item.type.defaultProps), O.item.props) : O.item.props, G = H.activeDot, U = H.dataKey, Q = _objectSpread(_objectSpread({
|
|
26923
26930
|
index: L,
|
|
26924
26931
|
dataKey: U,
|
|
26925
26932
|
cx: D.x,
|
|
@@ -26931,7 +26938,7 @@ var getTooltipContent = function(e, n, i, o) {
|
|
|
26931
26938
|
payload: D.payload,
|
|
26932
26939
|
value: D.value
|
|
26933
26940
|
}, filterProps(G, !1)), adaptEventHandlers(G));
|
|
26934
|
-
return j.push(T.renderActiveDot(G,
|
|
26941
|
+
return j.push(T.renderActiveDot(G, Q, "".concat(q, "-activePoint-").concat(L))), V ? j.push(T.renderActiveDot(G, _objectSpread(_objectSpread({}, Q), {}, {
|
|
26935
26942
|
cx: V.x,
|
|
26936
26943
|
cy: V.y
|
|
26937
26944
|
}), "".concat(q, "-basePoint-").concat(L))) : B && j.push(null), j;
|
|
@@ -26939,48 +26946,48 @@ var getTooltipContent = function(e, n, i, o) {
|
|
|
26939
26946
|
var V = R.filterFormatItem(N, O, D);
|
|
26940
26947
|
if (!V)
|
|
26941
26948
|
return null;
|
|
26942
|
-
var L = R.getTooltipEventType(), B = R.state, j = B.isTooltipActive, q = B.tooltipAxis, H = B.activeTooltipIndex, G = B.activeLabel, U = R.props.children,
|
|
26943
|
-
L !== "axis" &&
|
|
26949
|
+
var L = R.getTooltipEventType(), B = R.state, j = B.isTooltipActive, q = B.tooltipAxis, H = B.activeTooltipIndex, G = B.activeLabel, U = R.props.children, Q = findChildByType(U, Tooltip), F = V.props, z = F.points, W = F.isRange, Z = F.baseLine, te = V.item.type.defaultProps !== void 0 ? _objectSpread(_objectSpread({}, V.item.type.defaultProps), V.item.props) : V.item.props, ne = te.activeDot, ae = te.hide, le = te.activeBar, ue = te.activeShape, se = !!(!ae && j && Q && (ne || le || ue)), ce = {};
|
|
26950
|
+
L !== "axis" && Q && Q.props.trigger === "click" ? ce = {
|
|
26944
26951
|
onClick: combineEventHandlers(R.handleItemMouseEnter, N.props.onClick)
|
|
26945
|
-
} : L !== "axis" && (
|
|
26952
|
+
} : L !== "axis" && (ce = {
|
|
26946
26953
|
onMouseLeave: combineEventHandlers(R.handleItemMouseLeave, N.props.onMouseLeave),
|
|
26947
26954
|
onMouseEnter: combineEventHandlers(R.handleItemMouseEnter, N.props.onMouseEnter)
|
|
26948
26955
|
});
|
|
26949
|
-
var
|
|
26950
|
-
function
|
|
26956
|
+
var oe = /* @__PURE__ */ cloneElement(N, _objectSpread(_objectSpread({}, V.props), ce));
|
|
26957
|
+
function J(ve) {
|
|
26951
26958
|
return typeof q.dataKey == "function" ? q.dataKey(ve.payload) : null;
|
|
26952
26959
|
}
|
|
26953
26960
|
if (se)
|
|
26954
26961
|
if (H >= 0) {
|
|
26955
|
-
var
|
|
26962
|
+
var ie, K;
|
|
26956
26963
|
if (q.dataKey && !q.allowDuplicatedCategory) {
|
|
26957
|
-
var
|
|
26958
|
-
|
|
26964
|
+
var fe = typeof q.dataKey == "function" ? J : "payload.".concat(q.dataKey.toString());
|
|
26965
|
+
ie = findEntryInArray(z, fe, G), K = W && Z && findEntryInArray(Z, fe, G);
|
|
26959
26966
|
} else
|
|
26960
|
-
|
|
26967
|
+
ie = z == null ? void 0 : z[H], K = W && Z && Z[H];
|
|
26961
26968
|
if (ue || le) {
|
|
26962
|
-
var
|
|
26963
|
-
return [/* @__PURE__ */ cloneElement(N, _objectSpread(_objectSpread(_objectSpread({}, V.props),
|
|
26964
|
-
activeIndex:
|
|
26969
|
+
var ee = N.props.activeIndex !== void 0 ? N.props.activeIndex : H;
|
|
26970
|
+
return [/* @__PURE__ */ cloneElement(N, _objectSpread(_objectSpread(_objectSpread({}, V.props), ce), {}, {
|
|
26971
|
+
activeIndex: ee
|
|
26965
26972
|
})), null, null];
|
|
26966
26973
|
}
|
|
26967
|
-
if (!isNil(
|
|
26968
|
-
return [
|
|
26974
|
+
if (!isNil(ie))
|
|
26975
|
+
return [oe].concat(_toConsumableArray(R.renderActivePoints({
|
|
26969
26976
|
item: V,
|
|
26970
|
-
activePoint:
|
|
26971
|
-
basePoint:
|
|
26977
|
+
activePoint: ie,
|
|
26978
|
+
basePoint: K,
|
|
26972
26979
|
childIndex: H,
|
|
26973
26980
|
isRange: W
|
|
26974
26981
|
})));
|
|
26975
26982
|
} else {
|
|
26976
|
-
var
|
|
26977
|
-
graphicalItem:
|
|
26978
|
-
}, me = he.graphicalItem, ye = me.item, pe = ye === void 0 ? N : ye, ge = me.childIndex, Pe = _objectSpread(_objectSpread(_objectSpread({}, V.props),
|
|
26983
|
+
var de, he = (de = R.getItemByXY(R.state.activeCoordinate)) !== null && de !== void 0 ? de : {
|
|
26984
|
+
graphicalItem: oe
|
|
26985
|
+
}, me = he.graphicalItem, ye = me.item, pe = ye === void 0 ? N : ye, ge = me.childIndex, Pe = _objectSpread(_objectSpread(_objectSpread({}, V.props), ce), {}, {
|
|
26979
26986
|
activeIndex: ge
|
|
26980
26987
|
});
|
|
26981
26988
|
return [/* @__PURE__ */ cloneElement(pe, Pe), null, null];
|
|
26982
26989
|
}
|
|
26983
|
-
return W ? [
|
|
26990
|
+
return W ? [oe, null, null] : [oe, null];
|
|
26984
26991
|
}), _defineProperty(R, "renderCustomized", function(N, O, D) {
|
|
26985
26992
|
return /* @__PURE__ */ cloneElement(N, _objectSpread(_objectSpread({
|
|
26986
26993
|
key: "recharts-customized-".concat(D)
|
|
@@ -27085,14 +27092,14 @@ var getTooltipContent = function(e, n, i, o) {
|
|
|
27085
27092
|
return z.type.name === "Scatter";
|
|
27086
27093
|
});
|
|
27087
27094
|
U && (G = _objectSpread(_objectSpread({}, G), U.props.points[V].tooltipPosition), B = U.props.points[V].tooltipPayload);
|
|
27088
|
-
var
|
|
27095
|
+
var Q = {
|
|
27089
27096
|
activeTooltipIndex: V,
|
|
27090
27097
|
isTooltipActive: !0,
|
|
27091
27098
|
activeLabel: L,
|
|
27092
27099
|
activePayload: B,
|
|
27093
27100
|
activeCoordinate: G
|
|
27094
27101
|
};
|
|
27095
|
-
this.setState(
|
|
27102
|
+
this.setState(Q), this.renderCursor(D), this.accessibilityManager.setIndex(V);
|
|
27096
27103
|
}
|
|
27097
27104
|
}
|
|
27098
27105
|
}
|
|
@@ -27154,9 +27161,9 @@ var getTooltipContent = function(e, n, i, o) {
|
|
|
27154
27161
|
return null;
|
|
27155
27162
|
var L = this.state, B = L.xAxisMap, j = L.yAxisMap, q = this.getTooltipEventType(), H = getTooltipData(this.state, this.props.data, this.props.layout, V);
|
|
27156
27163
|
if (q !== "axis" && B && j) {
|
|
27157
|
-
var G = getAnyElementOfObject(B).scale, U = getAnyElementOfObject(j).scale,
|
|
27164
|
+
var G = getAnyElementOfObject(B).scale, U = getAnyElementOfObject(j).scale, Q = G && G.invert ? G.invert(O.chartX) : null, F = U && U.invert ? U.invert(O.chartY) : null;
|
|
27158
27165
|
return _objectSpread(_objectSpread({}, O), {}, {
|
|
27159
|
-
xValue:
|
|
27166
|
+
xValue: Q,
|
|
27160
27167
|
yValue: F
|
|
27161
27168
|
}, H);
|
|
27162
27169
|
}
|
|
@@ -27295,10 +27302,10 @@ var getTooltipContent = function(e, n, i, o) {
|
|
|
27295
27302
|
graphicalItem: V,
|
|
27296
27303
|
activeTooltipItem: N,
|
|
27297
27304
|
itemData: j.data
|
|
27298
|
-
}),
|
|
27305
|
+
}), Q = j.activeIndex === void 0 ? U : j.activeIndex;
|
|
27299
27306
|
return {
|
|
27300
27307
|
graphicalItem: _objectSpread(_objectSpread({}, V), {}, {
|
|
27301
|
-
childIndex:
|
|
27308
|
+
childIndex: Q
|
|
27302
27309
|
}),
|
|
27303
27310
|
payload: isScatter(V, N) ? j.data[U] : V.props.data[U]
|
|
27304
27311
|
};
|
|
@@ -27333,7 +27340,7 @@ var getTooltipContent = function(e, n, i, o) {
|
|
|
27333
27340
|
I.accessibilityManager.focus();
|
|
27334
27341
|
};
|
|
27335
27342
|
}
|
|
27336
|
-
var
|
|
27343
|
+
var Q = this.parseEventsOfWrapper();
|
|
27337
27344
|
return /* @__PURE__ */ React__default.createElement(ChartLayoutContextProvider, {
|
|
27338
27345
|
state: this.state,
|
|
27339
27346
|
width: this.props.width,
|
|
@@ -27347,7 +27354,7 @@ var getTooltipContent = function(e, n, i, o) {
|
|
|
27347
27354
|
width: O,
|
|
27348
27355
|
height: D
|
|
27349
27356
|
}, V)
|
|
27350
|
-
},
|
|
27357
|
+
}, Q, {
|
|
27351
27358
|
ref: function(z) {
|
|
27352
27359
|
I.container = z;
|
|
27353
27360
|
}
|
|
@@ -27421,19 +27428,19 @@ var getTooltipContent = function(e, n, i, o) {
|
|
|
27421
27428
|
});
|
|
27422
27429
|
}
|
|
27423
27430
|
if (!isChildrenEqual(M, T.prevChildren)) {
|
|
27424
|
-
var
|
|
27431
|
+
var Q, F, z, W, Z = findChildByType(M, Brush), te = Z && (Q = (F = Z.props) === null || F === void 0 ? void 0 : F.startIndex) !== null && Q !== void 0 ? Q : L, ne = Z && (z = (W = Z.props) === null || W === void 0 ? void 0 : W.endIndex) !== null && z !== void 0 ? z : B, ae = te !== L || ne !== B, le = !isNil(I), ue = le && !ae ? T.updateId : T.updateId + 1;
|
|
27425
27432
|
return _objectSpread(_objectSpread({
|
|
27426
27433
|
updateId: ue
|
|
27427
27434
|
}, _(_objectSpread(_objectSpread({
|
|
27428
27435
|
props: S
|
|
27429
27436
|
}, T), {}, {
|
|
27430
27437
|
updateId: ue,
|
|
27431
|
-
dataStartIndex:
|
|
27432
|
-
dataEndIndex:
|
|
27438
|
+
dataStartIndex: te,
|
|
27439
|
+
dataEndIndex: ne
|
|
27433
27440
|
}), T)), {}, {
|
|
27434
27441
|
prevChildren: M,
|
|
27435
|
-
dataStartIndex:
|
|
27436
|
-
dataEndIndex:
|
|
27442
|
+
dataStartIndex: te,
|
|
27443
|
+
dataEndIndex: ne
|
|
27437
27444
|
});
|
|
27438
27445
|
}
|
|
27439
27446
|
return null;
|
|
@@ -28010,8 +28017,8 @@ var lottie = createCommonjsModule(function(module, exports) {
|
|
|
28010
28017
|
else L[B].ty === "gr" && D(L[B].it);
|
|
28011
28018
|
}
|
|
28012
28019
|
function V(L) {
|
|
28013
|
-
var B, j, q, H, G, U,
|
|
28014
|
-
for (j = 0; j <
|
|
28020
|
+
var B, j, q, H, G, U, Q = L.length;
|
|
28021
|
+
for (j = 0; j < Q; j += 1) {
|
|
28015
28022
|
if ((B = L[j]).hasMask) {
|
|
28016
28023
|
var F = B.masksProperties;
|
|
28017
28024
|
for (H = F.length, q = 0; q < H; q += 1) if (F[q].pt.k.i) F[q].pt.k.c = F[q].cl;
|
|
@@ -28667,8 +28674,8 @@ var lottie = createCommonjsModule(function(module, exports) {
|
|
|
28667
28674
|
return b && S && (T[m] = n(_[m], _[0], E[m], C[0]), A += T[m].addedLength), g.totalLength = A, g;
|
|
28668
28675
|
}, getNewSegment: function(p, m, g, b, _, E, C) {
|
|
28669
28676
|
_ < 0 ? _ = 0 : _ > 1 && (_ = 1);
|
|
28670
|
-
var S, T = d(_, C), A = d(E = E > 1 ? 1 : E, C), I = p.length, M = 1 - T, R = 1 - A, N = M * M * M, O = T * M * M * 3, D = T * T * M * 3, V = T * T * T, L = M * M * R, B = T * M * R + M * T * R + M * M * A, j = T * T * R + M * T * A + T * M * A, q = T * T * A, H = M * R * R, G = T * R * R + M * A * R + M * R * A, U = T * A * R + M * A * A + T * R * A,
|
|
28671
|
-
for (S = 0; S < I; S += 1) f[4 * S] = t.round(1e3 * (N * p[S] + O * g[S] + D * b[S] + V * m[S])) / 1e3, f[4 * S + 1] = t.round(1e3 * (L * p[S] + B * g[S] + j * b[S] + q * m[S])) / 1e3, f[4 * S + 2] = t.round(1e3 * (H * p[S] + G * g[S] + U * b[S] +
|
|
28677
|
+
var S, T = d(_, C), A = d(E = E > 1 ? 1 : E, C), I = p.length, M = 1 - T, R = 1 - A, N = M * M * M, O = T * M * M * 3, D = T * T * M * 3, V = T * T * T, L = M * M * R, B = T * M * R + M * T * R + M * M * A, j = T * T * R + M * T * A + T * M * A, q = T * T * A, H = M * R * R, G = T * R * R + M * A * R + M * R * A, U = T * A * R + M * A * A + T * R * A, Q = T * A * A, F = R * R * R, z = A * R * R + R * A * R + R * R * A, W = A * A * R + R * A * A + A * R * A, Z = A * A * A;
|
|
28678
|
+
for (S = 0; S < I; S += 1) f[4 * S] = t.round(1e3 * (N * p[S] + O * g[S] + D * b[S] + V * m[S])) / 1e3, f[4 * S + 1] = t.round(1e3 * (L * p[S] + B * g[S] + j * b[S] + q * m[S])) / 1e3, f[4 * S + 2] = t.round(1e3 * (H * p[S] + G * g[S] + U * b[S] + Q * m[S])) / 1e3, f[4 * S + 3] = t.round(1e3 * (F * p[S] + z * g[S] + W * b[S] + Z * m[S])) / 1e3;
|
|
28672
28679
|
return f;
|
|
28673
28680
|
}, getPointInSegment: function(p, m, g, b, _, E) {
|
|
28674
28681
|
var C = d(_, E), S = 1 - C;
|
|
@@ -29027,23 +29034,23 @@ var lottie = createCommonjsModule(function(module, exports) {
|
|
|
29027
29034
|
return this.shear(n(F), n(z));
|
|
29028
29035
|
}
|
|
29029
29036
|
function g(F, z) {
|
|
29030
|
-
var W = t(z),
|
|
29031
|
-
return this._t(W,
|
|
29037
|
+
var W = t(z), Z = e(z);
|
|
29038
|
+
return this._t(W, Z, 0, 0, -Z, W, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)._t(1, 0, 0, 0, n(F), 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)._t(W, -Z, 0, 0, Z, W, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
|
|
29032
29039
|
}
|
|
29033
29040
|
function b(F, z, W) {
|
|
29034
29041
|
return W || W === 0 || (W = 1), F === 1 && z === 1 && W === 1 ? this : this._t(F, 0, 0, 0, 0, z, 0, 0, 0, 0, W, 0, 0, 0, 0, 1);
|
|
29035
29042
|
}
|
|
29036
|
-
function _(F, z, W,
|
|
29037
|
-
return this.props[0] = F, this.props[1] = z, this.props[2] = W, this.props[3] =
|
|
29043
|
+
function _(F, z, W, Z, te, ne, ae, le, ue, se, ce, oe, J, ie, K, fe) {
|
|
29044
|
+
return this.props[0] = F, this.props[1] = z, this.props[2] = W, this.props[3] = Z, this.props[4] = te, this.props[5] = ne, this.props[6] = ae, this.props[7] = le, this.props[8] = ue, this.props[9] = se, this.props[10] = ce, this.props[11] = oe, this.props[12] = J, this.props[13] = ie, this.props[14] = K, this.props[15] = fe, this;
|
|
29038
29045
|
}
|
|
29039
29046
|
function E(F, z, W) {
|
|
29040
29047
|
return W = W || 0, F !== 0 || z !== 0 || W !== 0 ? this._t(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, F, z, W, 1) : this;
|
|
29041
29048
|
}
|
|
29042
|
-
function C(F, z, W,
|
|
29043
|
-
var
|
|
29044
|
-
if (F === 1 && z === 0 && W === 0 &&
|
|
29045
|
-
var
|
|
29046
|
-
return
|
|
29049
|
+
function C(F, z, W, Z, te, ne, ae, le, ue, se, ce, oe, J, ie, K, fe) {
|
|
29050
|
+
var ee = this.props;
|
|
29051
|
+
if (F === 1 && z === 0 && W === 0 && Z === 0 && te === 0 && ne === 1 && ae === 0 && le === 0 && ue === 0 && se === 0 && ce === 1 && oe === 0) return ee[12] = ee[12] * F + ee[15] * J, ee[13] = ee[13] * ne + ee[15] * ie, ee[14] = ee[14] * ce + ee[15] * K, ee[15] *= fe, this._identityCalculated = !1, this;
|
|
29052
|
+
var de = ee[0], he = ee[1], me = ee[2], ye = ee[3], pe = ee[4], ge = ee[5], Pe = ee[6], ve = ee[7], xe = ee[8], Se = ee[9], _e = ee[10], Ce = ee[11], Ee = ee[12], we = ee[13], Te = ee[14], Ae = ee[15];
|
|
29053
|
+
return ee[0] = de * F + he * te + me * ue + ye * J, ee[1] = de * z + he * ne + me * se + ye * ie, ee[2] = de * W + he * ae + me * ce + ye * K, ee[3] = de * Z + he * le + me * oe + ye * fe, ee[4] = pe * F + ge * te + Pe * ue + ve * J, ee[5] = pe * z + ge * ne + Pe * se + ve * ie, ee[6] = pe * W + ge * ae + Pe * ce + ve * K, ee[7] = pe * Z + ge * le + Pe * oe + ve * fe, ee[8] = xe * F + Se * te + _e * ue + Ce * J, ee[9] = xe * z + Se * ne + _e * se + Ce * ie, ee[10] = xe * W + Se * ae + _e * ce + Ce * K, ee[11] = xe * Z + Se * le + _e * oe + Ce * fe, ee[12] = Ee * F + we * te + Te * ue + Ae * J, ee[13] = Ee * z + we * ne + Te * se + Ae * ie, ee[14] = Ee * W + we * ae + Te * ce + Ae * K, ee[15] = Ee * Z + we * le + Te * oe + Ae * fe, this._identityCalculated = !1, this;
|
|
29047
29054
|
}
|
|
29048
29055
|
function S(F) {
|
|
29049
29056
|
var z = F.props;
|
|
@@ -29081,25 +29088,25 @@ var lottie = createCommonjsModule(function(module, exports) {
|
|
|
29081
29088
|
return F * this.props[2] + z * this.props[6] + W * this.props[10] + this.props[14];
|
|
29082
29089
|
}
|
|
29083
29090
|
function V() {
|
|
29084
|
-
var F = this.props[0] * this.props[5] - this.props[1] * this.props[4], z = this.props[5] / F, W = -this.props[1] / F,
|
|
29085
|
-
return le.props[0] = z, le.props[1] = W, le.props[4] =
|
|
29091
|
+
var F = this.props[0] * this.props[5] - this.props[1] * this.props[4], z = this.props[5] / F, W = -this.props[1] / F, Z = -this.props[4] / F, te = this.props[0] / F, ne = (this.props[4] * this.props[13] - this.props[5] * this.props[12]) / F, ae = -(this.props[0] * this.props[13] - this.props[1] * this.props[12]) / F, le = new Matrix();
|
|
29092
|
+
return le.props[0] = z, le.props[1] = W, le.props[4] = Z, le.props[5] = te, le.props[12] = ne, le.props[13] = ae, le;
|
|
29086
29093
|
}
|
|
29087
29094
|
function L(F) {
|
|
29088
29095
|
return this.getInverseMatrix().applyToPointArray(F[0], F[1], F[2] || 0);
|
|
29089
29096
|
}
|
|
29090
29097
|
function B(F) {
|
|
29091
|
-
var z, W = F.length,
|
|
29092
|
-
for (z = 0; z < W; z += 1)
|
|
29093
|
-
return
|
|
29098
|
+
var z, W = F.length, Z = [];
|
|
29099
|
+
for (z = 0; z < W; z += 1) Z[z] = L(F[z]);
|
|
29100
|
+
return Z;
|
|
29094
29101
|
}
|
|
29095
29102
|
function j(F, z, W) {
|
|
29096
|
-
var
|
|
29097
|
-
if (this.isIdentity())
|
|
29103
|
+
var Z = createTypedArray("float32", 6);
|
|
29104
|
+
if (this.isIdentity()) Z[0] = F[0], Z[1] = F[1], Z[2] = z[0], Z[3] = z[1], Z[4] = W[0], Z[5] = W[1];
|
|
29098
29105
|
else {
|
|
29099
|
-
var
|
|
29100
|
-
|
|
29106
|
+
var te = this.props[0], ne = this.props[1], ae = this.props[4], le = this.props[5], ue = this.props[12], se = this.props[13];
|
|
29107
|
+
Z[0] = F[0] * te + F[1] * ae + ue, Z[1] = F[0] * ne + F[1] * le + se, Z[2] = z[0] * te + z[1] * ae + ue, Z[3] = z[0] * ne + z[1] * le + se, Z[4] = W[0] * te + W[1] * ae + ue, Z[5] = W[0] * ne + W[1] * le + se;
|
|
29101
29108
|
}
|
|
29102
|
-
return
|
|
29109
|
+
return Z;
|
|
29103
29110
|
}
|
|
29104
29111
|
function q(F, z, W) {
|
|
29105
29112
|
return this.isIdentity() ? [F, z, W] : [F * this.props[0] + z * this.props[4] + W * this.props[8] + this.props[12], F * this.props[1] + z * this.props[5] + W * this.props[9] + this.props[13], F * this.props[2] + z * this.props[6] + W * this.props[10] + this.props[14]];
|
|
@@ -29116,12 +29123,12 @@ var lottie = createCommonjsModule(function(module, exports) {
|
|
|
29116
29123
|
function U(F) {
|
|
29117
29124
|
return F < 1e-6 && F > 0 || F > -1e-6 && F < 0 ? i(1e4 * F) / 1e4 : F;
|
|
29118
29125
|
}
|
|
29119
|
-
function
|
|
29126
|
+
function Q() {
|
|
29120
29127
|
var F = this.props;
|
|
29121
29128
|
return "matrix(" + U(F[0]) + "," + U(F[1]) + "," + U(F[4]) + "," + U(F[5]) + "," + U(F[12]) + "," + U(F[13]) + ")";
|
|
29122
29129
|
}
|
|
29123
29130
|
return function() {
|
|
29124
|
-
this.reset = o, this.rotate = l, this.rotateX = u, this.rotateY = d, this.rotateZ = f, this.skew = m, this.skewFromAxis = g, this.shear = p, this.scale = b, this.setTransform = _, this.translate = E, this.transform = C, this.multiply = S, this.applyToPoint = R, this.applyToX = N, this.applyToY = O, this.applyToZ = D, this.applyToPointArray = q, this.applyToTriplePoints = j, this.applyToPointStringified = H, this.toCSS = G, this.to2dCSS =
|
|
29131
|
+
this.reset = o, this.rotate = l, this.rotateX = u, this.rotateY = d, this.rotateZ = f, this.skew = m, this.skewFromAxis = g, this.shear = p, this.scale = b, this.setTransform = _, this.translate = E, this.transform = C, this.multiply = S, this.applyToPoint = R, this.applyToX = N, this.applyToY = O, this.applyToZ = D, this.applyToPointArray = q, this.applyToTriplePoints = j, this.applyToPointStringified = H, this.toCSS = G, this.to2dCSS = Q, this.clone = I, this.cloneFromProps = M, this.equals = A, this.inversePoints = B, this.inversePoint = L, this.getInverseMatrix = V, this._t = this.transform, this.isIdentity = T, this._identity = !0, this._identityCalculated = !1, this.props = createTypedArray("float32", 16), this.reset();
|
|
29125
29132
|
};
|
|
29126
29133
|
}();
|
|
29127
29134
|
function _typeof$3(t) {
|
|
@@ -30682,14 +30689,14 @@ var lottie = createCommonjsModule(function(module, exports) {
|
|
|
30682
30689
|
t.justifyOffset = 0;
|
|
30683
30690
|
}
|
|
30684
30691
|
t.lineWidths = S;
|
|
30685
|
-
var U,
|
|
30692
|
+
var U, Q, F, z, W = p.a;
|
|
30686
30693
|
u = W.length;
|
|
30687
|
-
var
|
|
30694
|
+
var Z = [];
|
|
30688
30695
|
for (l = 0; l < u; l += 1) {
|
|
30689
|
-
for ((U = W[l]).a.sc && (t.strokeColorAnim = !0), U.a.sw && (t.strokeWidthAnim = !0), (U.a.fc || U.a.fh || U.a.fs || U.a.fb) && (t.fillColorAnim = !0), z = 0, F = U.s.b, e = 0; e < n; e += 1) (
|
|
30696
|
+
for ((U = W[l]).a.sc && (t.strokeColorAnim = !0), U.a.sw && (t.strokeWidthAnim = !0), (U.a.fc || U.a.fh || U.a.fs || U.a.fb) && (t.fillColorAnim = !0), z = 0, F = U.s.b, e = 0; e < n; e += 1) (Q = m[e]).anIndexes[l] = z, (F == 1 && Q.val !== "" || F == 2 && Q.val !== "" && Q.val !== " " || F == 3 && (Q.n || Q.val == " " || e == n - 1) || F == 4 && (Q.n || e == n - 1)) && (U.s.rn === 1 && Z.push(z), z += 1);
|
|
30690
30697
|
p.a[l].s.totalChars = z;
|
|
30691
|
-
var
|
|
30692
|
-
if (U.s.rn === 1) for (e = 0; e < n; e += 1)
|
|
30698
|
+
var te, ne = -1;
|
|
30699
|
+
if (U.s.rn === 1) for (e = 0; e < n; e += 1) ne != (Q = m[e]).anIndexes[l] && (ne = Q.anIndexes[l], te = Z.splice(Math.floor(Math.random() * Z.length), 1)[0]), Q.anIndexes[l] = te;
|
|
30693
30700
|
}
|
|
30694
30701
|
t.yOffset = t.finalLineHeight || 1.2 * t.finalSize, t.ls = t.ls || 0, t.ascent = I.ascent * t.finalSize / 100;
|
|
30695
30702
|
}, TextProperty.prototype.updateDocumentData = function(t, e) {
|
|
@@ -30771,9 +30778,9 @@ var lottie = createCommonjsModule(function(module, exports) {
|
|
|
30771
30778
|
_ = (E = C[b].points)[g - 1], S = (f = E[g]).partialLength;
|
|
30772
30779
|
}
|
|
30773
30780
|
l = B.length, n = 0, i = 0;
|
|
30774
|
-
var H, G, U,
|
|
30781
|
+
var H, G, U, Q, F, z = 1.2 * t.finalSize * 0.714, W = !0;
|
|
30775
30782
|
U = N.length;
|
|
30776
|
-
var
|
|
30783
|
+
var Z, te, ne, ae, le, ue, se, ce, oe, J, ie, K, fe = -1, ee = d, de = b, he = g, me = -1, ye = "", pe = this.defaultPropsArray;
|
|
30777
30784
|
if (t.j === 2 || t.j === 1) {
|
|
30778
30785
|
var ge = 0, Pe = 0, ve = t.j === 2 ? -0.5 : -1, xe = 0, Se = !0;
|
|
30779
30786
|
for (o = 0; o < l; o += 1) if (B[o].n) {
|
|
@@ -30786,7 +30793,7 @@ var lottie = createCommonjsModule(function(module, exports) {
|
|
|
30786
30793
|
for (ge && (ge += Pe); xe < o; ) B[xe].animatorJustifyOffset = ge, xe += 1;
|
|
30787
30794
|
}
|
|
30788
30795
|
for (o = 0; o < l; o += 1) {
|
|
30789
|
-
if (D.reset(),
|
|
30796
|
+
if (D.reset(), ae = 1, B[o].n) n = 0, i += t.yOffset, i += W ? 1 : 0, d = ee, W = !1, this._hasMaskedPath && (g = he, _ = (E = C[b = de].points)[g - 1], S = (f = E[g]).partialLength, p = 0), ye = "", ie = "", oe = "", K = "", pe = this.defaultPropsArray;
|
|
30790
30797
|
else {
|
|
30791
30798
|
if (this._hasMaskedPath) {
|
|
30792
30799
|
if (me !== B[o].line) {
|
|
@@ -30799,30 +30806,30 @@ var lottie = createCommonjsModule(function(module, exports) {
|
|
|
30799
30806
|
}
|
|
30800
30807
|
me = B[o].line;
|
|
30801
30808
|
}
|
|
30802
|
-
|
|
30809
|
+
fe !== B[o].ind && (B[fe] && (d += B[fe].extra), d += B[o].an / 2, fe = B[o].ind), d += R[0] * B[o].an * 5e-3;
|
|
30803
30810
|
var _e = 0;
|
|
30804
30811
|
for (G = 0; G < U; G += 1) (H = N[G].a).p.propType && ((F = N[G].s.getMult(B[o].anIndexes[G], O.a[G].s.totalChars)).length ? _e += H.p.v[0] * F[0] : _e += H.p.v[0] * F), H.a.propType && ((F = N[G].s.getMult(B[o].anIndexes[G], O.a[G].s.totalChars)).length ? _e += H.a.v[0] * F[0] : _e += H.a.v[0] * F);
|
|
30805
|
-
for (m = !0, this._pathData.a.v && (d = 0.5 * B[0].an + (T - this._pathData.f.v - 0.5 * B[0].an - 0.5 * B[B.length - 1].an) *
|
|
30806
|
-
|
|
30807
|
-
} else
|
|
30812
|
+
for (m = !0, this._pathData.a.v && (d = 0.5 * B[0].an + (T - this._pathData.f.v - 0.5 * B[0].an - 0.5 * B[B.length - 1].an) * fe / (l - 1), d += this._pathData.f.v); m; ) p + S >= d + _e || !E ? (A = (d + _e - p) / f.partialLength, te = _.point[0] + (f.point[0] - _.point[0]) * A, ne = _.point[1] + (f.point[1] - _.point[1]) * A, D.translate(-R[0] * B[o].an * 5e-3, -R[1] * z * 0.01), m = !1) : E && (p += f.partialLength, (g += 1) >= E.length && (g = 0, C[b += 1] ? E = C[b].points : M.v.c ? (g = 0, E = C[b = 0].points) : (p -= f.partialLength, E = null)), E && (_ = f, S = (f = E[g]).partialLength));
|
|
30813
|
+
Z = B[o].an / 2 - B[o].add, D.translate(-Z, 0, 0);
|
|
30814
|
+
} else Z = B[o].an / 2 - B[o].add, D.translate(-Z, 0, 0), D.translate(-R[0] * B[o].an * 5e-3, -R[1] * z * 0.01, 0);
|
|
30808
30815
|
for (G = 0; G < U; G += 1) (H = N[G].a).t.propType && (F = N[G].s.getMult(B[o].anIndexes[G], O.a[G].s.totalChars), n === 0 && t.j === 0 || (this._hasMaskedPath ? F.length ? d += H.t.v * F[0] : d += H.t.v * F : F.length ? n += H.t.v * F[0] : n += H.t.v * F));
|
|
30809
30816
|
for (t.strokeWidthAnim && (ue = t.sw || 0), t.strokeColorAnim && (le = t.sc ? [t.sc[0], t.sc[1], t.sc[2]] : [0, 0, 0]), t.fillColorAnim && t.fc && (se = [t.fc[0], t.fc[1], t.fc[2]]), G = 0; G < U; G += 1) (H = N[G].a).a.propType && ((F = N[G].s.getMult(B[o].anIndexes[G], O.a[G].s.totalChars)).length ? D.translate(-H.a.v[0] * F[0], -H.a.v[1] * F[1], H.a.v[2] * F[2]) : D.translate(-H.a.v[0] * F, -H.a.v[1] * F, H.a.v[2] * F));
|
|
30810
30817
|
for (G = 0; G < U; G += 1) (H = N[G].a).s.propType && ((F = N[G].s.getMult(B[o].anIndexes[G], O.a[G].s.totalChars)).length ? D.scale(1 + (H.s.v[0] - 1) * F[0], 1 + (H.s.v[1] - 1) * F[1], 1) : D.scale(1 + (H.s.v[0] - 1) * F, 1 + (H.s.v[1] - 1) * F, 1));
|
|
30811
30818
|
for (G = 0; G < U; G += 1) {
|
|
30812
|
-
if (H = N[G].a, F = N[G].s.getMult(B[o].anIndexes[G], O.a[G].s.totalChars), H.sk.propType && (F.length ? D.skewFromAxis(-H.sk.v * F[0], H.sa.v * F[1]) : D.skewFromAxis(-H.sk.v * F, H.sa.v * F)), H.r.propType && (F.length ? D.rotateZ(-H.r.v * F[2]) : D.rotateZ(-H.r.v * F)), H.ry.propType && (F.length ? D.rotateY(H.ry.v * F[1]) : D.rotateY(H.ry.v * F)), H.rx.propType && (F.length ? D.rotateX(H.rx.v * F[0]) : D.rotateX(H.rx.v * F)), H.o.propType && (F.length ?
|
|
30819
|
+
if (H = N[G].a, F = N[G].s.getMult(B[o].anIndexes[G], O.a[G].s.totalChars), H.sk.propType && (F.length ? D.skewFromAxis(-H.sk.v * F[0], H.sa.v * F[1]) : D.skewFromAxis(-H.sk.v * F, H.sa.v * F)), H.r.propType && (F.length ? D.rotateZ(-H.r.v * F[2]) : D.rotateZ(-H.r.v * F)), H.ry.propType && (F.length ? D.rotateY(H.ry.v * F[1]) : D.rotateY(H.ry.v * F)), H.rx.propType && (F.length ? D.rotateX(H.rx.v * F[0]) : D.rotateX(H.rx.v * F)), H.o.propType && (F.length ? ae += (H.o.v * F[0] - ae) * F[0] : ae += (H.o.v * F - ae) * F), t.strokeWidthAnim && H.sw.propType && (F.length ? ue += H.sw.v * F[0] : ue += H.sw.v * F), t.strokeColorAnim && H.sc.propType) for (ce = 0; ce < 3; ce += 1) F.length ? le[ce] += (H.sc.v[ce] - le[ce]) * F[0] : le[ce] += (H.sc.v[ce] - le[ce]) * F;
|
|
30813
30820
|
if (t.fillColorAnim && t.fc) {
|
|
30814
|
-
if (H.fc.propType) for (
|
|
30821
|
+
if (H.fc.propType) for (ce = 0; ce < 3; ce += 1) F.length ? se[ce] += (H.fc.v[ce] - se[ce]) * F[0] : se[ce] += (H.fc.v[ce] - se[ce]) * F;
|
|
30815
30822
|
H.fh.propType && (se = F.length ? addHueToRGB(se, H.fh.v * F[0]) : addHueToRGB(se, H.fh.v * F)), H.fs.propType && (se = F.length ? addSaturationToRGB(se, H.fs.v * F[0]) : addSaturationToRGB(se, H.fs.v * F)), H.fb.propType && (se = F.length ? addBrightnessToRGB(se, H.fb.v * F[0]) : addBrightnessToRGB(se, H.fb.v * F));
|
|
30816
30823
|
}
|
|
30817
30824
|
}
|
|
30818
30825
|
for (G = 0; G < U; G += 1) (H = N[G].a).p.propType && (F = N[G].s.getMult(B[o].anIndexes[G], O.a[G].s.totalChars), this._hasMaskedPath ? F.length ? D.translate(0, H.p.v[1] * F[0], -H.p.v[2] * F[1]) : D.translate(0, H.p.v[1] * F, -H.p.v[2] * F) : F.length ? D.translate(H.p.v[0] * F[0], H.p.v[1] * F[1], -H.p.v[2] * F[2]) : D.translate(H.p.v[0] * F, H.p.v[1] * F, -H.p.v[2] * F));
|
|
30819
|
-
if (t.strokeWidthAnim && (
|
|
30826
|
+
if (t.strokeWidthAnim && (oe = ue < 0 ? 0 : ue), t.strokeColorAnim && (J = "rgb(" + Math.round(255 * le[0]) + "," + Math.round(255 * le[1]) + "," + Math.round(255 * le[2]) + ")"), t.fillColorAnim && t.fc && (ie = "rgb(" + Math.round(255 * se[0]) + "," + Math.round(255 * se[1]) + "," + Math.round(255 * se[2]) + ")"), this._hasMaskedPath) {
|
|
30820
30827
|
if (D.translate(0, -t.ls), D.translate(0, R[1] * z * 0.01 + i, 0), this._pathData.p.v) {
|
|
30821
30828
|
I = (f.point[1] - _.point[1]) / (f.point[0] - _.point[0]);
|
|
30822
30829
|
var Ce = 180 * Math.atan(I) / Math.PI;
|
|
30823
30830
|
f.point[0] < _.point[0] && (Ce += 180), D.rotate(-Ce * Math.PI / 180);
|
|
30824
30831
|
}
|
|
30825
|
-
D.translate(
|
|
30832
|
+
D.translate(te, ne, 0), d -= R[0] * B[o].an * 5e-3, B[o + 1] && fe !== B[o + 1].ind && (d += B[o].an / 2, d += 1e-3 * t.tr * t.finalSize);
|
|
30826
30833
|
} else {
|
|
30827
30834
|
switch (D.translate(n, i, 0), t.ps && D.translate(t.ps[0], t.ps[1] + t.ascent, 0), t.j) {
|
|
30828
30835
|
case 1:
|
|
@@ -30831,11 +30838,11 @@ var lottie = createCommonjsModule(function(module, exports) {
|
|
|
30831
30838
|
case 2:
|
|
30832
30839
|
D.translate(B[o].animatorJustifyOffset + t.justifyOffset + (t.boxWidth - t.lineWidths[B[o].line]) / 2, 0, 0);
|
|
30833
30840
|
}
|
|
30834
|
-
D.translate(0, -t.ls), D.translate(
|
|
30841
|
+
D.translate(0, -t.ls), D.translate(Z, 0, 0), D.translate(R[0] * B[o].an * 5e-3, R[1] * z * 0.01, 0), n += B[o].l + 1e-3 * t.tr * t.finalSize;
|
|
30835
30842
|
}
|
|
30836
|
-
V === "html" ? ye = D.toCSS() : V === "svg" ? ye = D.to2dCSS() : pe = [D.props[0], D.props[1], D.props[2], D.props[3], D.props[4], D.props[5], D.props[6], D.props[7], D.props[8], D.props[9], D.props[10], D.props[11], D.props[12], D.props[13], D.props[14], D.props[15]],
|
|
30843
|
+
V === "html" ? ye = D.toCSS() : V === "svg" ? ye = D.to2dCSS() : pe = [D.props[0], D.props[1], D.props[2], D.props[3], D.props[4], D.props[5], D.props[6], D.props[7], D.props[8], D.props[9], D.props[10], D.props[11], D.props[12], D.props[13], D.props[14], D.props[15]], K = ae;
|
|
30837
30844
|
}
|
|
30838
|
-
L <= o ? (
|
|
30845
|
+
L <= o ? (Q = new LetterProps(K, oe, J, ie, ye, pe), this.renderedLetters.push(Q), L += 1, this.lettersChangedFlag = !0) : (Q = this.renderedLetters[o], this.lettersChangedFlag = Q.update(K, oe, J, ie, ye, pe) || this.lettersChangedFlag);
|
|
30839
30846
|
}
|
|
30840
30847
|
}
|
|
30841
30848
|
}, TextAnimatorProperty.prototype.getValue = function() {
|
|
@@ -40131,10 +40138,10 @@ function fetchBaseQuery({
|
|
|
40131
40138
|
type: I,
|
|
40132
40139
|
extraOptions: E
|
|
40133
40140
|
}) || N;
|
|
40134
|
-
const G = (
|
|
40141
|
+
const G = (ae) => typeof ae == "object" && (isPlainObject$1(ae) || Array.isArray(ae) || typeof ae.toJSON == "function");
|
|
40135
40142
|
if (!H.headers.has("content-type") && G(H.body) && H.headers.set("content-type", l), G(H.body) && o(H.headers) && (H.body = JSON.stringify(H.body, u)), O) {
|
|
40136
|
-
const
|
|
40137
|
-
R +=
|
|
40143
|
+
const ae = ~R.indexOf("?") ? "&" : "?", le = i ? i(O) : new URLSearchParams(stripUndefined(O));
|
|
40144
|
+
R += ae + le;
|
|
40138
40145
|
}
|
|
40139
40146
|
R = joinUrls(t, R);
|
|
40140
40147
|
const U = new Request(R, H);
|
|
@@ -40146,47 +40153,47 @@ function fetchBaseQuery({
|
|
|
40146
40153
|
}, L);
|
|
40147
40154
|
try {
|
|
40148
40155
|
F = await n(U);
|
|
40149
|
-
} catch (
|
|
40156
|
+
} catch (ae) {
|
|
40150
40157
|
return {
|
|
40151
40158
|
error: {
|
|
40152
40159
|
status: z ? "TIMEOUT_ERROR" : "FETCH_ERROR",
|
|
40153
|
-
error: String(
|
|
40160
|
+
error: String(ae)
|
|
40154
40161
|
},
|
|
40155
40162
|
meta: M
|
|
40156
40163
|
};
|
|
40157
40164
|
} finally {
|
|
40158
40165
|
W && clearTimeout(W), j == null || j.signal.removeEventListener("abort", j.abort);
|
|
40159
40166
|
}
|
|
40160
|
-
const
|
|
40161
|
-
M.response =
|
|
40162
|
-
let
|
|
40167
|
+
const Z = F.clone();
|
|
40168
|
+
M.response = Z;
|
|
40169
|
+
let te, ne = "";
|
|
40163
40170
|
try {
|
|
40164
|
-
let
|
|
40171
|
+
let ae;
|
|
40165
40172
|
if (await Promise.all([
|
|
40166
|
-
g(F, D).then((le) =>
|
|
40173
|
+
g(F, D).then((le) => te = le, (le) => ae = le),
|
|
40167
40174
|
// see https://github.com/node-fetch/node-fetch/issues/665#issuecomment-538995182
|
|
40168
40175
|
// we *have* to "use up" both streams at the same time or they will stop running in node-fetch scenarios
|
|
40169
|
-
|
|
40176
|
+
Z.text().then((le) => ne = le, () => {
|
|
40170
40177
|
})
|
|
40171
|
-
]),
|
|
40172
|
-
} catch (
|
|
40178
|
+
]), ae) throw ae;
|
|
40179
|
+
} catch (ae) {
|
|
40173
40180
|
return {
|
|
40174
40181
|
error: {
|
|
40175
40182
|
status: "PARSING_ERROR",
|
|
40176
40183
|
originalStatus: F.status,
|
|
40177
|
-
data:
|
|
40178
|
-
error: String(
|
|
40184
|
+
data: ne,
|
|
40185
|
+
error: String(ae)
|
|
40179
40186
|
},
|
|
40180
40187
|
meta: M
|
|
40181
40188
|
};
|
|
40182
40189
|
}
|
|
40183
|
-
return V(F,
|
|
40184
|
-
data:
|
|
40190
|
+
return V(F, te) ? {
|
|
40191
|
+
data: te,
|
|
40185
40192
|
meta: M
|
|
40186
40193
|
} : {
|
|
40187
40194
|
error: {
|
|
40188
40195
|
status: F.status,
|
|
40189
|
-
data:
|
|
40196
|
+
data: te
|
|
40190
40197
|
},
|
|
40191
40198
|
meta: M
|
|
40192
40199
|
};
|
|
@@ -40299,7 +40306,7 @@ You must add the middleware for RTK-Query to function correctly!`);
|
|
|
40299
40306
|
endpointName: M
|
|
40300
40307
|
});
|
|
40301
40308
|
let U;
|
|
40302
|
-
const
|
|
40309
|
+
const Q = {
|
|
40303
40310
|
...j,
|
|
40304
40311
|
type: "query",
|
|
40305
40312
|
subscribe: D,
|
|
@@ -40311,48 +40318,48 @@ You must add the middleware for RTK-Query to function correctly!`);
|
|
|
40311
40318
|
[forceQueryFnSymbol]: B
|
|
40312
40319
|
};
|
|
40313
40320
|
if (isQueryDefinition$1(R))
|
|
40314
|
-
U = e(
|
|
40321
|
+
U = e(Q);
|
|
40315
40322
|
else {
|
|
40316
40323
|
const {
|
|
40317
|
-
direction:
|
|
40318
|
-
initialPageParam:
|
|
40324
|
+
direction: ce,
|
|
40325
|
+
initialPageParam: oe
|
|
40319
40326
|
} = j;
|
|
40320
40327
|
U = n({
|
|
40321
|
-
...
|
|
40328
|
+
...Q,
|
|
40322
40329
|
// Supply these even if undefined. This helps with a field existence
|
|
40323
40330
|
// check over in `buildSlice.ts`
|
|
40324
|
-
direction:
|
|
40325
|
-
initialPageParam:
|
|
40331
|
+
direction: ce,
|
|
40332
|
+
initialPageParam: oe
|
|
40326
40333
|
});
|
|
40327
40334
|
}
|
|
40328
40335
|
const F = o.endpoints[M].select(O), z = q(U), W = F(H());
|
|
40329
40336
|
C(q);
|
|
40330
40337
|
const {
|
|
40331
|
-
requestId:
|
|
40332
|
-
abort:
|
|
40333
|
-
} = z,
|
|
40338
|
+
requestId: Z,
|
|
40339
|
+
abort: te
|
|
40340
|
+
} = z, ne = W.requestId !== Z, ae = (se = u.get(q)) == null ? void 0 : se[G], le = () => F(H()), ue = Object.assign(B ? (
|
|
40334
40341
|
// a query has been forced (upsertQueryData)
|
|
40335
40342
|
// -> we want to resolve it once data has been written with the data that will be written
|
|
40336
40343
|
z.then(le)
|
|
40337
|
-
) :
|
|
40344
|
+
) : ne && !ae ? (
|
|
40338
40345
|
// a query has been skipped due to a condition and we do not have any currently running query
|
|
40339
40346
|
// -> we want to resolve it immediately with the current data
|
|
40340
40347
|
Promise.resolve(W)
|
|
40341
40348
|
) : (
|
|
40342
40349
|
// query just started or one is already in flight
|
|
40343
40350
|
// -> wait for the running query, then resolve with data from after that
|
|
40344
|
-
Promise.all([
|
|
40351
|
+
Promise.all([ae, z]).then(le)
|
|
40345
40352
|
), {
|
|
40346
40353
|
arg: O,
|
|
40347
|
-
requestId:
|
|
40354
|
+
requestId: Z,
|
|
40348
40355
|
subscriptionOptions: L,
|
|
40349
40356
|
queryCacheKey: G,
|
|
40350
|
-
abort:
|
|
40357
|
+
abort: te,
|
|
40351
40358
|
async unwrap() {
|
|
40352
|
-
const
|
|
40353
|
-
if (
|
|
40354
|
-
throw
|
|
40355
|
-
return
|
|
40359
|
+
const ce = await ue;
|
|
40360
|
+
if (ce.isError)
|
|
40361
|
+
throw ce.error;
|
|
40362
|
+
return ce.data;
|
|
40356
40363
|
},
|
|
40357
40364
|
refetch: () => q(N(O, {
|
|
40358
40365
|
subscribe: !1,
|
|
@@ -40361,22 +40368,22 @@ You must add the middleware for RTK-Query to function correctly!`);
|
|
|
40361
40368
|
unsubscribe() {
|
|
40362
40369
|
D && q(f({
|
|
40363
40370
|
queryCacheKey: G,
|
|
40364
|
-
requestId:
|
|
40371
|
+
requestId: Z
|
|
40365
40372
|
}));
|
|
40366
40373
|
},
|
|
40367
|
-
updateSubscriptionOptions(
|
|
40368
|
-
ue.subscriptionOptions =
|
|
40374
|
+
updateSubscriptionOptions(ce) {
|
|
40375
|
+
ue.subscriptionOptions = ce, q(m({
|
|
40369
40376
|
endpointName: M,
|
|
40370
|
-
requestId:
|
|
40377
|
+
requestId: Z,
|
|
40371
40378
|
queryCacheKey: G,
|
|
40372
|
-
options:
|
|
40379
|
+
options: ce
|
|
40373
40380
|
}));
|
|
40374
40381
|
}
|
|
40375
40382
|
});
|
|
40376
|
-
if (!
|
|
40377
|
-
const
|
|
40378
|
-
|
|
40379
|
-
delete
|
|
40383
|
+
if (!ae && !ne && !B) {
|
|
40384
|
+
const ce = getOrInsert(u, q, {});
|
|
40385
|
+
ce[G] = ue, ue.then(() => {
|
|
40386
|
+
delete ce[G], countObjectKeys$1(ce) || u.delete(q);
|
|
40380
40387
|
});
|
|
40381
40388
|
}
|
|
40382
40389
|
return ue;
|
|
@@ -40415,18 +40422,18 @@ You must add the middleware for RTK-Query to function correctly!`);
|
|
|
40415
40422
|
requestId: j,
|
|
40416
40423
|
fixedCacheKey: O
|
|
40417
40424
|
}));
|
|
40418
|
-
},
|
|
40425
|
+
}, Q = Object.assign(G, {
|
|
40419
40426
|
arg: B.arg,
|
|
40420
40427
|
requestId: j,
|
|
40421
40428
|
abort: q,
|
|
40422
40429
|
unwrap: H,
|
|
40423
40430
|
reset: U
|
|
40424
40431
|
}), F = d.get(D) || {};
|
|
40425
|
-
return d.set(D, F), F[j] =
|
|
40432
|
+
return d.set(D, F), F[j] = Q, Q.then(() => {
|
|
40426
40433
|
delete F[j], countObjectKeys$1(F) || d.delete(D);
|
|
40427
|
-
}), O && (F[O] =
|
|
40428
|
-
F[O] ===
|
|
40429
|
-
})),
|
|
40434
|
+
}), O && (F[O] = Q, Q.then(() => {
|
|
40435
|
+
F[O] === Q && (delete F[O], countObjectKeys$1(F) || d.delete(D));
|
|
40436
|
+
})), Q;
|
|
40430
40437
|
};
|
|
40431
40438
|
}
|
|
40432
40439
|
}
|
|
@@ -40462,10 +40469,10 @@ function buildThunks({
|
|
|
40462
40469
|
const U = o.endpoints[D].select(V)(
|
|
40463
40470
|
// Work around TS 4.1 mismatch
|
|
40464
40471
|
q()
|
|
40465
|
-
),
|
|
40472
|
+
), Q = calculateProvidedBy(H.providesTags, U.data, void 0, V, {}, l);
|
|
40466
40473
|
j(o.internalActions.updateProvidedBy({
|
|
40467
40474
|
queryCacheKey: G,
|
|
40468
|
-
providedTags:
|
|
40475
|
+
providedTags: Q
|
|
40469
40476
|
}));
|
|
40470
40477
|
};
|
|
40471
40478
|
function f(D, V, L = 0) {
|
|
@@ -40487,16 +40494,16 @@ function buildThunks({
|
|
|
40487
40494
|
};
|
|
40488
40495
|
if (G.status === "uninitialized")
|
|
40489
40496
|
return U;
|
|
40490
|
-
let
|
|
40497
|
+
let Q;
|
|
40491
40498
|
if ("data" in G)
|
|
40492
40499
|
if (isDraftable(G.data)) {
|
|
40493
40500
|
const [F, z, W] = produceWithPatches(G.data, L);
|
|
40494
|
-
U.patches.push(...z), U.inversePatches.push(...W),
|
|
40501
|
+
U.patches.push(...z), U.inversePatches.push(...W), Q = F;
|
|
40495
40502
|
} else
|
|
40496
|
-
|
|
40503
|
+
Q = L(G.data), U.patches.push({
|
|
40497
40504
|
op: "replace",
|
|
40498
40505
|
path: [],
|
|
40499
|
-
value:
|
|
40506
|
+
value: Q
|
|
40500
40507
|
}), U.inversePatches.push({
|
|
40501
40508
|
op: "replace",
|
|
40502
40509
|
path: [],
|
|
@@ -40518,7 +40525,7 @@ function buildThunks({
|
|
|
40518
40525
|
getState: H,
|
|
40519
40526
|
extra: G
|
|
40520
40527
|
}) => {
|
|
40521
|
-
var
|
|
40528
|
+
var Q;
|
|
40522
40529
|
const U = n[D.endpointName];
|
|
40523
40530
|
try {
|
|
40524
40531
|
let F = b(U, "transformResponse");
|
|
@@ -40533,52 +40540,52 @@ function buildThunks({
|
|
|
40533
40540
|
forced: D.type === "query" ? E(D, H()) : void 0,
|
|
40534
40541
|
queryCacheKey: D.type === "query" ? D.queryCacheKey : void 0
|
|
40535
40542
|
}, W = D.type === "query" ? D[forceQueryFnSymbol] : void 0;
|
|
40536
|
-
let
|
|
40537
|
-
const
|
|
40538
|
-
if (le == null &&
|
|
40543
|
+
let Z;
|
|
40544
|
+
const te = async (ae, le, ue, se) => {
|
|
40545
|
+
if (le == null && ae.pages.length)
|
|
40539
40546
|
return Promise.resolve({
|
|
40540
|
-
data:
|
|
40547
|
+
data: ae
|
|
40541
40548
|
});
|
|
40542
|
-
const
|
|
40549
|
+
const ce = {
|
|
40543
40550
|
queryArg: D.originalArgs,
|
|
40544
40551
|
pageParam: le
|
|
40545
|
-
},
|
|
40552
|
+
}, oe = await ne(ce), J = se ? f : p;
|
|
40546
40553
|
return {
|
|
40547
40554
|
data: {
|
|
40548
|
-
pages:
|
|
40549
|
-
pageParams:
|
|
40555
|
+
pages: J(ae.pages, oe.data, ue),
|
|
40556
|
+
pageParams: J(ae.pageParams, le, ue)
|
|
40550
40557
|
}
|
|
40551
40558
|
};
|
|
40552
40559
|
};
|
|
40553
|
-
async function
|
|
40560
|
+
async function ne(ae) {
|
|
40554
40561
|
let le;
|
|
40555
40562
|
const {
|
|
40556
40563
|
extraOptions: ue
|
|
40557
40564
|
} = U;
|
|
40558
|
-
if (W ? le = W() : U.query ? le = await e(U.query(
|
|
40559
|
-
const
|
|
40560
|
-
let
|
|
40565
|
+
if (W ? le = W() : U.query ? le = await e(U.query(ae), z, ue) : le = await U.queryFn(ae, z, ue, (ce) => e(ce, z, ue)), typeof process < "u" && process.env.NODE_ENV === "development") {
|
|
40566
|
+
const ce = U.query ? "`baseQuery`" : "`queryFn`";
|
|
40567
|
+
let oe;
|
|
40561
40568
|
if (!le)
|
|
40562
|
-
|
|
40569
|
+
oe = `${ce} did not return anything.`;
|
|
40563
40570
|
else if (typeof le != "object")
|
|
40564
|
-
|
|
40571
|
+
oe = `${ce} did not return an object.`;
|
|
40565
40572
|
else if (le.error && le.data)
|
|
40566
|
-
|
|
40573
|
+
oe = `${ce} returned an object containing both \`error\` and \`result\`.`;
|
|
40567
40574
|
else if (le.error === void 0 && le.data === void 0)
|
|
40568
|
-
|
|
40575
|
+
oe = `${ce} returned an object containing neither a valid \`error\` and \`result\`. At least one of them should not be \`undefined\``;
|
|
40569
40576
|
else
|
|
40570
|
-
for (const
|
|
40571
|
-
if (
|
|
40572
|
-
|
|
40577
|
+
for (const J of Object.keys(le))
|
|
40578
|
+
if (J !== "error" && J !== "data" && J !== "meta") {
|
|
40579
|
+
oe = `The object returned by ${ce} has the unknown property ${J}.`;
|
|
40573
40580
|
break;
|
|
40574
40581
|
}
|
|
40575
|
-
|
|
40576
|
-
${
|
|
40582
|
+
oe && console.error(`Error encountered handling the endpoint ${D.endpointName}.
|
|
40583
|
+
${oe}
|
|
40577
40584
|
It needs to return an object with either the shape \`{ data: <value> }\` or \`{ error: <value> }\` that may contain an optional \`meta\` property.
|
|
40578
40585
|
Object returned was:`, le);
|
|
40579
40586
|
}
|
|
40580
40587
|
if (le.error) throw new HandledError(le.error, le.meta);
|
|
40581
|
-
const se = await F(le.data, le.meta,
|
|
40588
|
+
const se = await F(le.data, le.meta, ae);
|
|
40582
40589
|
return {
|
|
40583
40590
|
...le,
|
|
40584
40591
|
data: se
|
|
@@ -40586,36 +40593,36 @@ function buildThunks({
|
|
|
40586
40593
|
}
|
|
40587
40594
|
if (D.type === "query" && "infiniteQueryOptions" in U) {
|
|
40588
40595
|
const {
|
|
40589
|
-
infiniteQueryOptions:
|
|
40596
|
+
infiniteQueryOptions: ae
|
|
40590
40597
|
} = U, {
|
|
40591
40598
|
maxPages: le = 1 / 0
|
|
40592
|
-
} =
|
|
40599
|
+
} = ae;
|
|
40593
40600
|
let ue;
|
|
40594
40601
|
const se = {
|
|
40595
40602
|
pages: [],
|
|
40596
40603
|
pageParams: []
|
|
40597
|
-
},
|
|
40598
|
-
if ("direction" in D && D.direction &&
|
|
40599
|
-
const
|
|
40600
|
-
ue = await
|
|
40604
|
+
}, ce = (Q = u.selectQueryEntry(H(), D.queryCacheKey)) == null ? void 0 : Q.data, J = /* arg.forceRefetch */ E(D, H()) && !D.direction || !ce ? se : ce;
|
|
40605
|
+
if ("direction" in D && D.direction && J.pages.length) {
|
|
40606
|
+
const ie = D.direction === "backward", fe = (ie ? getPreviousPageParam : getNextPageParam)(ae, J);
|
|
40607
|
+
ue = await te(J, fe, le, ie);
|
|
40601
40608
|
} else {
|
|
40602
40609
|
const {
|
|
40603
|
-
initialPageParam:
|
|
40604
|
-
} = D,
|
|
40605
|
-
ue = await
|
|
40610
|
+
initialPageParam: ie = ae.initialPageParam
|
|
40611
|
+
} = D, K = (ce == null ? void 0 : ce.pageParams) ?? [], fe = K[0] ?? ie, ee = K.length;
|
|
40612
|
+
ue = await te(J, fe, le), W && (ue = {
|
|
40606
40613
|
data: ue.data.pages[0]
|
|
40607
40614
|
});
|
|
40608
|
-
for (let
|
|
40609
|
-
const he = getNextPageParam(
|
|
40610
|
-
ue = await
|
|
40615
|
+
for (let de = 1; de < ee; de++) {
|
|
40616
|
+
const he = getNextPageParam(ae, ue.data);
|
|
40617
|
+
ue = await te(ue.data, he, le);
|
|
40611
40618
|
}
|
|
40612
40619
|
}
|
|
40613
|
-
|
|
40620
|
+
Z = ue;
|
|
40614
40621
|
} else
|
|
40615
|
-
|
|
40616
|
-
return j(
|
|
40622
|
+
Z = await ne(D.originalArgs);
|
|
40623
|
+
return j(Z.data, addShouldAutoBatch({
|
|
40617
40624
|
fulfilledTimeStamp: Date.now(),
|
|
40618
|
-
baseQueryMeta:
|
|
40625
|
+
baseQueryMeta: Z.meta
|
|
40619
40626
|
}));
|
|
40620
40627
|
} catch (F) {
|
|
40621
40628
|
let z = F;
|
|
@@ -40625,8 +40632,8 @@ function buildThunks({
|
|
|
40625
40632
|
return B(await W(z.value, z.meta, D.originalArgs), addShouldAutoBatch({
|
|
40626
40633
|
baseQueryMeta: z.meta
|
|
40627
40634
|
}));
|
|
40628
|
-
} catch (
|
|
40629
|
-
z =
|
|
40635
|
+
} catch (Z) {
|
|
40636
|
+
z = Z;
|
|
40630
40637
|
}
|
|
40631
40638
|
}
|
|
40632
40639
|
throw typeof process < "u" && process.env.NODE_ENV !== "production" ? console.error(`An unhandled error occurred processing a request for the endpoint "${D.endpointName}".
|
|
@@ -40653,13 +40660,13 @@ In the case of an unhandled error, no tags will be "provided" or "invalidated".`
|
|
|
40653
40660
|
getState: L
|
|
40654
40661
|
}) {
|
|
40655
40662
|
var F;
|
|
40656
|
-
const B = L(), j = u.selectQueryEntry(B, V.queryCacheKey), q = j == null ? void 0 : j.fulfilledTimeStamp, H = V.originalArgs, G = j == null ? void 0 : j.originalArgs, U = n[V.endpointName],
|
|
40663
|
+
const B = L(), j = u.selectQueryEntry(B, V.queryCacheKey), q = j == null ? void 0 : j.fulfilledTimeStamp, H = V.originalArgs, G = j == null ? void 0 : j.originalArgs, U = n[V.endpointName], Q = V.direction;
|
|
40657
40664
|
return isUpsertQuery(V) ? !0 : (j == null ? void 0 : j.status) === "pending" ? !1 : E(V, B) || isQueryDefinition$1(U) && ((F = U == null ? void 0 : U.forceRefetch) != null && F.call(U, {
|
|
40658
40665
|
currentArg: H,
|
|
40659
40666
|
previousArg: G,
|
|
40660
40667
|
endpointState: j,
|
|
40661
40668
|
state: B
|
|
40662
|
-
})) ? !0 : !(q && !
|
|
40669
|
+
})) ? !0 : !(q && !Q);
|
|
40663
40670
|
},
|
|
40664
40671
|
dispatchConditionRejection: !0
|
|
40665
40672
|
}), S = C(), T = C(), A = createAsyncThunk(`${t}/executeMutation`, _, {
|
|
@@ -40669,9 +40676,9 @@ In the case of an unhandled error, no tags will be "provided" or "invalidated".`
|
|
|
40669
40676
|
});
|
|
40670
40677
|
}
|
|
40671
40678
|
}), I = (D) => "force" in D, M = (D) => "ifOlderThan" in D, R = (D, V, L) => (B, j) => {
|
|
40672
|
-
const q = I(L) && L.force, H = M(L) && L.ifOlderThan, G = (
|
|
40679
|
+
const q = I(L) && L.force, H = M(L) && L.ifOlderThan, G = (Q = !0) => {
|
|
40673
40680
|
const F = {
|
|
40674
|
-
forceRefetch:
|
|
40681
|
+
forceRefetch: Q,
|
|
40675
40682
|
isPrefetch: !0
|
|
40676
40683
|
};
|
|
40677
40684
|
return o.endpoints[D].initiate(V, F);
|
|
@@ -40679,12 +40686,12 @@ In the case of an unhandled error, no tags will be "provided" or "invalidated".`
|
|
|
40679
40686
|
if (q)
|
|
40680
40687
|
B(G());
|
|
40681
40688
|
else if (H) {
|
|
40682
|
-
const
|
|
40683
|
-
if (!
|
|
40689
|
+
const Q = U == null ? void 0 : U.fulfilledTimeStamp;
|
|
40690
|
+
if (!Q) {
|
|
40684
40691
|
B(G());
|
|
40685
40692
|
return;
|
|
40686
40693
|
}
|
|
40687
|
-
(Number(/* @__PURE__ */ new Date()) - Number(new Date(
|
|
40694
|
+
(Number(/* @__PURE__ */ new Date()) - Number(new Date(Q))) / 1e3 >= H && B(G());
|
|
40688
40695
|
} else
|
|
40689
40696
|
B(G(!1));
|
|
40690
40697
|
};
|
|
@@ -40787,13 +40794,13 @@ function buildSlice({
|
|
|
40787
40794
|
baseQueryMeta: G,
|
|
40788
40795
|
requestId: U
|
|
40789
40796
|
} = D;
|
|
40790
|
-
let
|
|
40797
|
+
let Q = produce(B.data, (F) => j(F, V, {
|
|
40791
40798
|
arg: H.originalArgs,
|
|
40792
40799
|
baseQueryMeta: G,
|
|
40793
40800
|
fulfilledTimeStamp: q,
|
|
40794
40801
|
requestId: U
|
|
40795
40802
|
}));
|
|
40796
|
-
B.data =
|
|
40803
|
+
B.data = Q;
|
|
40797
40804
|
} else
|
|
40798
40805
|
B.data = V;
|
|
40799
40806
|
else
|
|
@@ -41020,9 +41027,9 @@ function buildSlice({
|
|
|
41020
41027
|
} = u(V);
|
|
41021
41028
|
for (const [q, H] of Object.entries(L))
|
|
41022
41029
|
for (const [G, U] of Object.entries(H)) {
|
|
41023
|
-
const
|
|
41030
|
+
const Q = (B = D[q] ?? (D[q] = {}))[j = G || "__internal_without_id"] ?? (B[j] = []);
|
|
41024
41031
|
for (const F of U)
|
|
41025
|
-
|
|
41032
|
+
Q.includes(F) || Q.push(F);
|
|
41026
41033
|
}
|
|
41027
41034
|
}).addMatcher(isAnyOf(isFulfilled(e), isRejectedWithValue(e)), (D, V) => {
|
|
41028
41035
|
S(D, V);
|
|
@@ -41613,7 +41620,7 @@ var THIRTY_TWO_BIT_MAX_TIMER_SECONDS = 2147483647 / 1e3 - 1, buildCacheCollectio
|
|
|
41613
41620
|
})]);
|
|
41614
41621
|
L.catch(() => {
|
|
41615
41622
|
}), g[I] = D;
|
|
41616
|
-
const B = t.endpoints[T].select(N.type === "query" ? A : I), j = M.dispatch((G, U,
|
|
41623
|
+
const B = t.endpoints[T].select(N.type === "query" ? A : I), j = M.dispatch((G, U, Q) => Q), q = {
|
|
41617
41624
|
...M,
|
|
41618
41625
|
getCacheEntry: () => B(M.getState()),
|
|
41619
41626
|
requestId: R,
|
|
@@ -41902,7 +41909,7 @@ var coreModuleName = /* @__PURE__ */ Symbol(), coreModule = ({
|
|
|
41902
41909
|
invalidationBehavior: m
|
|
41903
41910
|
}, g) {
|
|
41904
41911
|
enablePatches();
|
|
41905
|
-
const b = (
|
|
41912
|
+
const b = (te) => (typeof process < "u" && process.env.NODE_ENV === "development" && (i.includes(te.type) || console.error(`Tag type '${te.type}' was used, but not specified in \`tagTypes\`!`)), te);
|
|
41906
41913
|
Object.assign(e, {
|
|
41907
41914
|
reducerPath: o,
|
|
41908
41915
|
endpoints: {},
|
|
@@ -41993,11 +42000,11 @@ var coreModuleName = /* @__PURE__ */ Symbol(), coreModule = ({
|
|
|
41993
42000
|
const {
|
|
41994
42001
|
buildInitiateQuery: G,
|
|
41995
42002
|
buildInitiateInfiniteQuery: U,
|
|
41996
|
-
buildInitiateMutation:
|
|
42003
|
+
buildInitiateMutation: Q,
|
|
41997
42004
|
getRunningMutationThunk: F,
|
|
41998
42005
|
getRunningMutationsThunk: z,
|
|
41999
42006
|
getRunningQueriesThunk: W,
|
|
42000
|
-
getRunningQueryThunk:
|
|
42007
|
+
getRunningQueryThunk: Z
|
|
42001
42008
|
} = buildInitiate({
|
|
42002
42009
|
queryThunk: I,
|
|
42003
42010
|
mutationThunk: R,
|
|
@@ -42009,26 +42016,26 @@ var coreModuleName = /* @__PURE__ */ Symbol(), coreModule = ({
|
|
|
42009
42016
|
return safeAssign$1(e.util, {
|
|
42010
42017
|
getRunningMutationThunk: F,
|
|
42011
42018
|
getRunningMutationsThunk: z,
|
|
42012
|
-
getRunningQueryThunk:
|
|
42019
|
+
getRunningQueryThunk: Z,
|
|
42013
42020
|
getRunningQueriesThunk: W
|
|
42014
42021
|
}), {
|
|
42015
42022
|
name: coreModuleName,
|
|
42016
|
-
injectEndpoint(
|
|
42023
|
+
injectEndpoint(te, ne) {
|
|
42017
42024
|
var ue;
|
|
42018
|
-
const le = (ue = e.endpoints)[
|
|
42019
|
-
isQueryDefinition$1(
|
|
42020
|
-
name:
|
|
42021
|
-
select: S(
|
|
42022
|
-
initiate: G(
|
|
42023
|
-
}, L(I,
|
|
42024
|
-
name:
|
|
42025
|
+
const le = (ue = e.endpoints)[te] ?? (ue[te] = {});
|
|
42026
|
+
isQueryDefinition$1(ne) && safeAssign$1(le, {
|
|
42027
|
+
name: te,
|
|
42028
|
+
select: S(te, ne),
|
|
42029
|
+
initiate: G(te, ne)
|
|
42030
|
+
}, L(I, te)), isMutationDefinition$1(ne) && safeAssign$1(le, {
|
|
42031
|
+
name: te,
|
|
42025
42032
|
select: A(),
|
|
42026
|
-
initiate:
|
|
42027
|
-
}, L(R,
|
|
42028
|
-
name:
|
|
42029
|
-
select: T(
|
|
42030
|
-
initiate: U(
|
|
42031
|
-
}, L(I,
|
|
42033
|
+
initiate: Q(te)
|
|
42034
|
+
}, L(R, te)), isInfiniteQueryDefinition$1(ne) && safeAssign$1(le, {
|
|
42035
|
+
name: te,
|
|
42036
|
+
select: T(te, ne),
|
|
42037
|
+
initiate: U(te, ne)
|
|
42038
|
+
}, L(I, te));
|
|
42032
42039
|
}
|
|
42033
42040
|
};
|
|
42034
42041
|
}
|
|
@@ -42470,42 +42477,42 @@ function buildHooks({
|
|
|
42470
42477
|
defaultSerializeQueryArgs,
|
|
42471
42478
|
f.endpointDefinitions[M],
|
|
42472
42479
|
M
|
|
42473
|
-
),
|
|
42480
|
+
), Q = useShallowStableValue({
|
|
42474
42481
|
refetchOnReconnect: N,
|
|
42475
42482
|
refetchOnFocus: O,
|
|
42476
42483
|
pollingInterval: L,
|
|
42477
42484
|
skipPollingIfUnfocused: B
|
|
42478
|
-
}), F = useRef(!1), z = j.initialPageParam, W = useShallowStableValue(z),
|
|
42485
|
+
}), F = useRef(!1), z = j.initialPageParam, W = useShallowStableValue(z), Z = useRef(void 0);
|
|
42479
42486
|
let {
|
|
42480
|
-
queryCacheKey:
|
|
42481
|
-
requestId:
|
|
42482
|
-
} =
|
|
42483
|
-
|
|
42484
|
-
const le = !
|
|
42487
|
+
queryCacheKey: te,
|
|
42488
|
+
requestId: ne
|
|
42489
|
+
} = Z.current || {}, ae = !1;
|
|
42490
|
+
te && ne && (ae = G.current.isRequestSubscribed(te, ne));
|
|
42491
|
+
const le = !ae && F.current;
|
|
42485
42492
|
return p(() => {
|
|
42486
|
-
F.current =
|
|
42493
|
+
F.current = ae;
|
|
42487
42494
|
}), p(() => {
|
|
42488
|
-
le && (
|
|
42495
|
+
le && (Z.current = void 0);
|
|
42489
42496
|
}, [le]), p(() => {
|
|
42490
|
-
var
|
|
42491
|
-
const ue =
|
|
42497
|
+
var ce;
|
|
42498
|
+
const ue = Z.current;
|
|
42492
42499
|
if (typeof process < "u" && process.env.NODE_ENV === "removeMeOnCompilation" && console.log(le), U === skipToken) {
|
|
42493
|
-
ue == null || ue.unsubscribe(),
|
|
42500
|
+
ue == null || ue.unsubscribe(), Z.current = void 0;
|
|
42494
42501
|
return;
|
|
42495
42502
|
}
|
|
42496
|
-
const se = (
|
|
42503
|
+
const se = (ce = Z.current) == null ? void 0 : ce.subscriptionOptions;
|
|
42497
42504
|
if (!ue || ue.arg !== U) {
|
|
42498
42505
|
ue == null || ue.unsubscribe();
|
|
42499
|
-
const
|
|
42500
|
-
subscriptionOptions:
|
|
42506
|
+
const oe = H(q(U, {
|
|
42507
|
+
subscriptionOptions: Q,
|
|
42501
42508
|
forceRefetch: D,
|
|
42502
42509
|
...isInfiniteQueryDefinition(f.endpointDefinitions[M]) ? {
|
|
42503
42510
|
initialPageParam: W
|
|
42504
42511
|
} : {}
|
|
42505
42512
|
}));
|
|
42506
|
-
|
|
42507
|
-
} else
|
|
42508
|
-
}, [H, q, D, U,
|
|
42513
|
+
Z.current = oe;
|
|
42514
|
+
} else Q !== se && ue.updateSubscriptionOptions(Q);
|
|
42515
|
+
}, [H, q, D, U, Q, le, W, M]), [Z, H, q, Q];
|
|
42509
42516
|
}
|
|
42510
42517
|
function E(M, R) {
|
|
42511
42518
|
return (O, {
|
|
@@ -42533,10 +42540,10 @@ function buildHooks({
|
|
|
42533
42540
|
devModeChecks: {
|
|
42534
42541
|
identityFunctionCheck: "never"
|
|
42535
42542
|
}
|
|
42536
|
-
}) : q, [q, V]), G = i((F) => H(F, j.current), shallowEqual), U = o(),
|
|
42543
|
+
}) : q, [q, V]), G = i((F) => H(F, j.current), shallowEqual), U = o(), Q = q(U.getState(), j.current);
|
|
42537
42544
|
return useIsomorphicLayoutEffect(() => {
|
|
42538
|
-
j.current =
|
|
42539
|
-
}, [
|
|
42545
|
+
j.current = Q;
|
|
42546
|
+
}, [Q]), G;
|
|
42540
42547
|
};
|
|
42541
42548
|
}
|
|
42542
42549
|
function C(M) {
|
|
@@ -42566,39 +42573,39 @@ function buildHooks({
|
|
|
42566
42573
|
} = {}) => {
|
|
42567
42574
|
const {
|
|
42568
42575
|
initiate: j
|
|
42569
|
-
} = t.endpoints[M], q = n(), [H, G] = useState(UNINITIALIZED_VALUE), U = useRef(void 0),
|
|
42576
|
+
} = t.endpoints[M], q = n(), [H, G] = useState(UNINITIALIZED_VALUE), U = useRef(void 0), Q = useShallowStableValue({
|
|
42570
42577
|
refetchOnReconnect: D,
|
|
42571
42578
|
refetchOnFocus: V,
|
|
42572
42579
|
pollingInterval: L,
|
|
42573
42580
|
skipPollingIfUnfocused: B
|
|
42574
42581
|
});
|
|
42575
42582
|
p(() => {
|
|
42576
|
-
var
|
|
42577
|
-
const
|
|
42578
|
-
|
|
42579
|
-
}, [
|
|
42580
|
-
const F = useRef(
|
|
42583
|
+
var te, ne;
|
|
42584
|
+
const Z = (te = U.current) == null ? void 0 : te.subscriptionOptions;
|
|
42585
|
+
Q !== Z && ((ne = U.current) == null || ne.updateSubscriptionOptions(Q));
|
|
42586
|
+
}, [Q]);
|
|
42587
|
+
const F = useRef(Q);
|
|
42581
42588
|
p(() => {
|
|
42582
|
-
F.current =
|
|
42583
|
-
}, [
|
|
42584
|
-
const z = useCallback(function(
|
|
42585
|
-
let
|
|
42589
|
+
F.current = Q;
|
|
42590
|
+
}, [Q]);
|
|
42591
|
+
const z = useCallback(function(Z, te = !1) {
|
|
42592
|
+
let ne;
|
|
42586
42593
|
return e(() => {
|
|
42587
|
-
var
|
|
42588
|
-
(
|
|
42594
|
+
var ae;
|
|
42595
|
+
(ae = U.current) == null || ae.unsubscribe(), U.current = ne = q(j(Z, {
|
|
42589
42596
|
subscriptionOptions: F.current,
|
|
42590
|
-
forceRefetch: !
|
|
42591
|
-
})), G(
|
|
42592
|
-
}),
|
|
42597
|
+
forceRefetch: !te
|
|
42598
|
+
})), G(Z);
|
|
42599
|
+
}), ne;
|
|
42593
42600
|
}, [q, j]), W = useCallback(() => {
|
|
42594
|
-
var
|
|
42595
|
-
(
|
|
42596
|
-
queryCacheKey: (
|
|
42601
|
+
var Z, te;
|
|
42602
|
+
(Z = U.current) != null && Z.queryCacheKey && q(t.internalActions.removeQueryResult({
|
|
42603
|
+
queryCacheKey: (te = U.current) == null ? void 0 : te.queryCacheKey
|
|
42597
42604
|
}));
|
|
42598
42605
|
}, [q]);
|
|
42599
42606
|
return useEffect(() => () => {
|
|
42600
|
-
var
|
|
42601
|
-
(
|
|
42607
|
+
var Z;
|
|
42608
|
+
(Z = U == null ? void 0 : U.current) == null || Z.unsubscribe();
|
|
42602
42609
|
}, []), useEffect(() => {
|
|
42603
42610
|
H !== UNINITIALIZED_VALUE && !U.current && z(H, !0);
|
|
42604
42611
|
}, [H, z]), useMemo(() => [z, H, {
|
|
@@ -42642,14 +42649,14 @@ function buildHooks({
|
|
|
42642
42649
|
q.current = j;
|
|
42643
42650
|
}, [j]);
|
|
42644
42651
|
const H = useCallback(function(G, U) {
|
|
42645
|
-
let
|
|
42652
|
+
let Q;
|
|
42646
42653
|
return e(() => {
|
|
42647
42654
|
var F;
|
|
42648
|
-
(F = V.current) == null || F.unsubscribe(), V.current =
|
|
42655
|
+
(F = V.current) == null || F.unsubscribe(), V.current = Q = L(B(G, {
|
|
42649
42656
|
subscriptionOptions: q.current,
|
|
42650
42657
|
direction: U
|
|
42651
42658
|
}));
|
|
42652
|
-
}),
|
|
42659
|
+
}), Q;
|
|
42653
42660
|
}, [V, L, B]);
|
|
42654
42661
|
return C(V), useMemo(() => ({
|
|
42655
42662
|
trigger: H,
|
|
@@ -42694,17 +42701,17 @@ function buildHooks({
|
|
|
42694
42701
|
useEffect(() => () => {
|
|
42695
42702
|
L != null && L.arg.fixedCacheKey || L == null || L.reset();
|
|
42696
42703
|
}, [L]);
|
|
42697
|
-
const j = useCallback(function(
|
|
42698
|
-
const
|
|
42704
|
+
const j = useCallback(function(Z) {
|
|
42705
|
+
const te = V(D(Z, {
|
|
42699
42706
|
fixedCacheKey: N
|
|
42700
42707
|
}));
|
|
42701
|
-
return B(
|
|
42708
|
+
return B(te), te;
|
|
42702
42709
|
}, [V, D, N]), {
|
|
42703
42710
|
requestId: q
|
|
42704
42711
|
} = L || {}, H = useMemo(() => O({
|
|
42705
42712
|
fixedCacheKey: N,
|
|
42706
42713
|
requestId: L == null ? void 0 : L.requestId
|
|
42707
|
-
}), [N, L, O]), G = useMemo(() => R ? u([H], R) : H, [R, H]), U = i(G, shallowEqual),
|
|
42714
|
+
}), [N, L, O]), G = useMemo(() => R ? u([H], R) : H, [R, H]), U = i(G, shallowEqual), Q = N == null ? L == null ? void 0 : L.arg.originalArgs : void 0, F = useCallback(() => {
|
|
42708
42715
|
e(() => {
|
|
42709
42716
|
L && B(void 0), N && V(t.internalActions.removeMutationResult({
|
|
42710
42717
|
requestId: q,
|
|
@@ -42715,9 +42722,9 @@ function buildHooks({
|
|
|
42715
42722
|
useDebugValue(z);
|
|
42716
42723
|
const W = useMemo(() => ({
|
|
42717
42724
|
...U,
|
|
42718
|
-
originalArgs:
|
|
42725
|
+
originalArgs: Q,
|
|
42719
42726
|
reset: F
|
|
42720
|
-
}), [U,
|
|
42727
|
+
}), [U, Q, F]);
|
|
42721
42728
|
return useMemo(() => [j, W], [j, W]);
|
|
42722
42729
|
};
|
|
42723
42730
|
}
|
|
@@ -50158,11 +50165,11 @@ function useAIAssistant({ userId: t, apiKey: e }) {
|
|
|
50158
50165
|
return;
|
|
50159
50166
|
}
|
|
50160
50167
|
try {
|
|
50161
|
-
p((
|
|
50168
|
+
p((Q) => [...Q, `Calling ${R} with:
|
|
50162
50169
|
${JSON.stringify(O, null, 2)}`]);
|
|
50163
50170
|
const L = await N(O);
|
|
50164
50171
|
let B, j = null, q = !1;
|
|
50165
|
-
if (typeof L == "string" ? B = L : (B = L.summary, j = L.component, q = !0), p((
|
|
50172
|
+
if (typeof L == "string" ? B = L : (B = L.summary, j = L.component, q = !0), p((Q) => [...Q, `${R} returned ${B.length} character(s).`]), console.log(`[Function Response] ${R} returned:`, B), !o) return;
|
|
50166
50173
|
const H = {
|
|
50167
50174
|
functionResponse: {
|
|
50168
50175
|
name: R,
|
|
@@ -50170,20 +50177,20 @@ function useAIAssistant({ userId: t, apiKey: e }) {
|
|
|
50170
50177
|
}
|
|
50171
50178
|
};
|
|
50172
50179
|
if (q && j) {
|
|
50173
|
-
const
|
|
50180
|
+
const Q = {
|
|
50174
50181
|
role: "assistant",
|
|
50175
50182
|
content: j,
|
|
50176
50183
|
timestamp: /* @__PURE__ */ new Date(),
|
|
50177
50184
|
isComponent: !0
|
|
50178
50185
|
};
|
|
50179
|
-
d((F) => [...F,
|
|
50186
|
+
d((F) => [...F, Q]);
|
|
50180
50187
|
}
|
|
50181
50188
|
const U = {
|
|
50182
50189
|
role: "assistant",
|
|
50183
50190
|
content: (await o.sendMessage({ message: [H] })).text,
|
|
50184
50191
|
timestamp: /* @__PURE__ */ new Date()
|
|
50185
50192
|
};
|
|
50186
|
-
d((
|
|
50193
|
+
d((Q) => [...Q, U]);
|
|
50187
50194
|
} catch (L) {
|
|
50188
50195
|
p((j) => [...j, `${R} failed.`]), console.error("Error executing function:", L);
|
|
50189
50196
|
const B = {
|
|
@@ -52009,7 +52016,7 @@ function PartnerCard({ account: t, action: e, loading: n = !1, withVoice: i = !0
|
|
|
52009
52016
|
}
|
|
52010
52017
|
const ASSISTANT_ID = "RandmarAIChatAssistant", ChatLayout = forwardRef(
|
|
52011
52018
|
({ userId: t, userName: e, apiKey: n, inputRef: i }, o) => {
|
|
52012
|
-
var
|
|
52019
|
+
var se, ce, oe;
|
|
52013
52020
|
const { data: l } = useGetV4PartnerByApplicationIdBusinessDevelopmentConversationsQuery({ applicationId: t }), [u] = useLazyGetV4PartnerByApplicationIdAccountQuery(), [d] = usePostV4PartnerByApplicationIdAccountFeedbackMutation(), [f] = useLazyGetV4PartnerByApplicationIdBusinessDevelopmentConversationAndConversationIdMessagesQuery(), {
|
|
52014
52021
|
handleSubmitToBot: p,
|
|
52015
52022
|
botMessages: m,
|
|
@@ -52020,7 +52027,7 @@ const ASSISTANT_ID = "RandmarAIChatAssistant", ChatLayout = forwardRef(
|
|
|
52020
52027
|
} = useAIAssistant({ userId: t, apiKey: n });
|
|
52021
52028
|
useEffect(() => {
|
|
52022
52029
|
if (!l) return;
|
|
52023
|
-
const
|
|
52030
|
+
const J = {
|
|
52024
52031
|
partner1: [t, ASSISTANT_ID].sort()[0],
|
|
52025
52032
|
partner2: [t, ASSISTANT_ID].sort()[1],
|
|
52026
52033
|
name: "Randmar Assistant",
|
|
@@ -52029,136 +52036,136 @@ const ASSISTANT_ID = "RandmarAIChatAssistant", ChatLayout = forwardRef(
|
|
|
52029
52036
|
historyFetched: !0,
|
|
52030
52037
|
messages: [],
|
|
52031
52038
|
conversationID: -1
|
|
52032
|
-
},
|
|
52033
|
-
var
|
|
52039
|
+
}, ie = l.map((K) => {
|
|
52040
|
+
var fe;
|
|
52034
52041
|
return {
|
|
52035
|
-
partner1: [
|
|
52036
|
-
partner2: [
|
|
52037
|
-
name: ((
|
|
52042
|
+
partner1: [K.Participant1, K.Participant2].sort()[0],
|
|
52043
|
+
partner2: [K.Participant1, K.Participant2].sort()[1],
|
|
52044
|
+
name: ((fe = K.Participant) == null ? void 0 : fe.PublicName) ?? "missing public name",
|
|
52038
52045
|
unread: 0,
|
|
52039
|
-
pending:
|
|
52046
|
+
pending: K.Status != "Approved",
|
|
52040
52047
|
historyFetched: !1,
|
|
52041
52048
|
messages: [],
|
|
52042
|
-
conversationID:
|
|
52049
|
+
conversationID: K.ConversationId
|
|
52043
52050
|
};
|
|
52044
52051
|
});
|
|
52045
52052
|
setTimeout(() => {
|
|
52046
|
-
var
|
|
52047
|
-
return (
|
|
52048
|
-
}, 50), D([
|
|
52053
|
+
var K;
|
|
52054
|
+
return (K = z.current) == null ? void 0 : K.focus();
|
|
52055
|
+
}, 50), D([J, ...ie]);
|
|
52049
52056
|
}, [l]);
|
|
52050
|
-
const [C, S] = useState("all"), [T, A] = useState([[t, ASSISTANT_ID].sort()[0], [t, ASSISTANT_ID].sort()[1]]), [I, M] = useState(""), [R, N] = useState(null), [O, D] = useState([]), [V, L] = useState(""), [B, j] = useState(null), [q, H] = useState(
|
|
52051
|
-
const
|
|
52052
|
-
return C === "all" ?
|
|
52057
|
+
const [C, S] = useState("all"), [T, A] = useState([[t, ASSISTANT_ID].sort()[0], [t, ASSISTANT_ID].sort()[1]]), [I, M] = useState(""), [R, N] = useState(null), [O, D] = useState([]), [V, L] = useState(""), [B, j] = useState(null), [q, H] = useState([]), [G, U] = useState(0), Q = useRef(null), F = useRef(null), z = i || F, W = O.filter((J) => {
|
|
52058
|
+
const ie = J.name.toLowerCase().includes(V.toLowerCase());
|
|
52059
|
+
return C === "all" ? ie : C === "approved" ? ie && !J.pending : C === "pending" ? ie && J.pending : ie;
|
|
52053
52060
|
});
|
|
52054
52061
|
useEffect(() => {
|
|
52055
|
-
const
|
|
52056
|
-
if (!
|
|
52057
|
-
if (
|
|
52058
|
-
H(
|
|
52062
|
+
const J = m.at(-1);
|
|
52063
|
+
if (!J || J.role != "assistant") return;
|
|
52064
|
+
if (J.isComponent) {
|
|
52065
|
+
H((K) => [...K, J.content]), U(0);
|
|
52059
52066
|
return;
|
|
52060
52067
|
}
|
|
52061
|
-
const
|
|
52062
|
-
id:
|
|
52068
|
+
const ie = {
|
|
52069
|
+
id: J.timestamp.toString(),
|
|
52063
52070
|
fromPartnerID: ASSISTANT_ID,
|
|
52064
52071
|
toPartnerID: t,
|
|
52065
52072
|
senderName: "Assistant",
|
|
52066
|
-
timestamp:
|
|
52067
|
-
content:
|
|
52073
|
+
timestamp: J.timestamp.getTime(),
|
|
52074
|
+
content: J.content
|
|
52068
52075
|
};
|
|
52069
|
-
|
|
52076
|
+
ie.content = marked(ie.content, { async: !1 }), Z(ie);
|
|
52070
52077
|
}, [m]);
|
|
52071
|
-
function
|
|
52072
|
-
const
|
|
52073
|
-
|
|
52074
|
-
let
|
|
52075
|
-
const
|
|
52076
|
-
return
|
|
52078
|
+
function Z(J) {
|
|
52079
|
+
const ie = [J.fromPartnerID, J.toPartnerID];
|
|
52080
|
+
ie.sort(), D((K) => {
|
|
52081
|
+
let fe = !1;
|
|
52082
|
+
const ee = K.map((de) => de.partner1 !== ie[0] || de.partner2 !== ie[1] || de.messages.findIndex((he) => he.id == J.id) !== -1 ? de : (fe = !0, { ...de, unread: de.unread + 1, messages: [...de.messages, J] }));
|
|
52083
|
+
return fe && N([ie[0], ie[1]]), ee;
|
|
52077
52084
|
});
|
|
52078
52085
|
}
|
|
52079
52086
|
useEffect(() => {
|
|
52080
|
-
const
|
|
52087
|
+
const J = new HubConnectionBuilder().withUrl("https://api.randmar.io/hub", {
|
|
52081
52088
|
accessTokenFactory: () => localStorage.getItem("access_token"),
|
|
52082
52089
|
headers: { "X-Impersonated-Id": t }
|
|
52083
52090
|
}).configureLogging(LogLevel.Information).withAutomaticReconnect().withHubProtocol(new JsonHubProtocol()).build();
|
|
52084
|
-
return
|
|
52085
|
-
|
|
52091
|
+
return J.on("ReceiveMessage", Z), J.start().catch((ie) => console.error("Error connecting to SignalR hub:", ie)), j(J), () => {
|
|
52092
|
+
J && J.stop();
|
|
52086
52093
|
};
|
|
52087
52094
|
}, [t]), useEffect(() => {
|
|
52088
|
-
(R == null ? void 0 : R[0]) !== (T == null ? void 0 : T[0]) || (R == null ? void 0 : R[1]) !== (T == null ? void 0 : T[1]) || (D((
|
|
52089
|
-
var
|
|
52090
|
-
return (
|
|
52095
|
+
(R == null ? void 0 : R[0]) !== (T == null ? void 0 : T[0]) || (R == null ? void 0 : R[1]) !== (T == null ? void 0 : T[1]) || (D((J) => J.map((ie) => ie.partner1 === (T == null ? void 0 : T[0]) && ie.partner2 === (T == null ? void 0 : T[1]) ? { ...ie, unread: 0 } : ie)), setTimeout(() => {
|
|
52096
|
+
var J;
|
|
52097
|
+
return (J = Q.current) == null ? void 0 : J.scrollIntoView({ behavior: "smooth" });
|
|
52091
52098
|
}, 50));
|
|
52092
52099
|
}, [R, T]), useEffect(() => {
|
|
52093
|
-
var
|
|
52100
|
+
var ie;
|
|
52094
52101
|
if (!T)
|
|
52095
52102
|
return;
|
|
52096
|
-
const
|
|
52097
|
-
|
|
52098
|
-
|
|
52099
|
-
}),
|
|
52100
|
-
var
|
|
52101
|
-
return (
|
|
52103
|
+
const J = getActiveChatObject(O, T);
|
|
52104
|
+
J && ((ie = z.current) == null || ie.focus(), U(q.length), u({ applicationId: J.partner1 === t ? J.partner2 : J.partner1 }).then((K) => {
|
|
52105
|
+
K.data && (H((fe) => [...fe, /* @__PURE__ */ jsx("div", { className: "mt-2", children: /* @__PURE__ */ jsx(PartnerCard, { account: K.data, action: /* @__PURE__ */ jsx(Fragment, {}), withVoice: !1 }) })]), U(0));
|
|
52106
|
+
}), J.historyFetched ? (D((K) => K.map((fe) => fe.partner1 === T[0] && fe.partner2 === T[1] ? { ...fe, unread: 0 } : fe)), setTimeout(() => {
|
|
52107
|
+
var K;
|
|
52108
|
+
return (K = Q.current) == null ? void 0 : K.scrollIntoView({ behavior: "smooth" });
|
|
52102
52109
|
}, 50)) : f({
|
|
52103
52110
|
applicationId: t,
|
|
52104
|
-
conversationId:
|
|
52105
|
-
}).unwrap().then((
|
|
52106
|
-
const
|
|
52107
|
-
id: "history" +
|
|
52108
|
-
fromPartnerID:
|
|
52109
|
-
toPartnerID:
|
|
52110
|
-
senderName:
|
|
52111
|
-
timestamp: (/* @__PURE__ */ new Date(
|
|
52112
|
-
content:
|
|
52111
|
+
conversationId: J.conversationID
|
|
52112
|
+
}).unwrap().then((K) => {
|
|
52113
|
+
const fe = K.map((ee) => ({
|
|
52114
|
+
id: "history" + ee.MessageId,
|
|
52115
|
+
fromPartnerID: ee.SenderId,
|
|
52116
|
+
toPartnerID: ee.SenderId == T[0] ? T[1] : T[0],
|
|
52117
|
+
senderName: ee.SenderName ?? "missing name",
|
|
52118
|
+
timestamp: (/* @__PURE__ */ new Date(ee.SentDate + "Z")).getTime(),
|
|
52119
|
+
content: ee.Content ?? "no content"
|
|
52113
52120
|
}));
|
|
52114
|
-
D((
|
|
52121
|
+
D((ee) => ee.map((de) => de.partner1 === T[0] && de.partner2 === T[1] ? {
|
|
52115
52122
|
...de,
|
|
52116
|
-
messages:
|
|
52123
|
+
messages: fe,
|
|
52117
52124
|
historyFetched: !0
|
|
52118
52125
|
} : de)), setTimeout(() => {
|
|
52119
|
-
var
|
|
52120
|
-
return (
|
|
52126
|
+
var ee;
|
|
52127
|
+
return (ee = Q.current) == null ? void 0 : ee.scrollIntoView({ behavior: "smooth" });
|
|
52121
52128
|
}, 100);
|
|
52122
|
-
}).catch((
|
|
52123
|
-
console.error("Error fetching conversation messages:",
|
|
52129
|
+
}).catch((K) => {
|
|
52130
|
+
console.error("Error fetching conversation messages:", K);
|
|
52124
52131
|
}));
|
|
52125
52132
|
}, [T, f, t]);
|
|
52126
|
-
const
|
|
52127
|
-
const
|
|
52133
|
+
const te = (J, ie, K) => {
|
|
52134
|
+
const fe = {
|
|
52128
52135
|
id: crypto.randomUUID(),
|
|
52129
52136
|
senderName: e,
|
|
52130
52137
|
fromPartnerID: t,
|
|
52131
|
-
toPartnerID:
|
|
52132
|
-
content:
|
|
52138
|
+
toPartnerID: ie[0] === t ? ie[1] : ie[0],
|
|
52139
|
+
content: J,
|
|
52133
52140
|
timestamp: Date.now()
|
|
52134
52141
|
};
|
|
52135
|
-
D((
|
|
52136
|
-
},
|
|
52142
|
+
D((ee) => ee.map((de) => de.partner1 === ie[0] && de.partner2 === ie[1] ? { ...de, messages: [...de.messages, fe] } : de)), N([ie[0], ie[1]]), fe.toPartnerID == ASSISTANT_ID ? p(fe.content) : K.invoke("NewMessage", fe).catch((ee) => console.error("Error sending message:", ee)), M("");
|
|
52143
|
+
}, ne = (J, ie) => {
|
|
52137
52144
|
if (!O.length || !B || !g) return !1;
|
|
52138
|
-
const
|
|
52139
|
-
return
|
|
52145
|
+
const K = O.find((fe) => fe.conversationID === J);
|
|
52146
|
+
return K ? (A([K.partner1, K.partner2]), ie && setTimeout(() => te(ie, [K.partner1, K.partner2], B), 100), !0) : !1;
|
|
52140
52147
|
};
|
|
52141
52148
|
if (useImperativeHandle(o, () => ({
|
|
52142
|
-
setActiveChatAndSendMessage:
|
|
52149
|
+
setActiveChatAndSendMessage: ne
|
|
52143
52150
|
})), !g)
|
|
52144
52151
|
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center p-8", children: /* @__PURE__ */ jsxs("div", { className: "text-center", children: [
|
|
52145
52152
|
/* @__PURE__ */ jsx("div", { className: "animate-spin rounded-full h-12 w-12 border-b-2 border-primary mx-auto mb-4" }),
|
|
52146
52153
|
/* @__PURE__ */ jsx("p", { children: "Loading API functions..." })
|
|
52147
52154
|
] }) }) });
|
|
52148
|
-
const
|
|
52149
|
-
!I.trim() || !T || !B || (
|
|
52150
|
-
},
|
|
52151
|
-
var
|
|
52155
|
+
const ae = () => {
|
|
52156
|
+
!I.trim() || !T || !B || (U(q.length), te(I, T, B));
|
|
52157
|
+
}, le = () => {
|
|
52158
|
+
var J = O.find((K) => K.partner1 === ASSISTANT_ID || K.partner2 === ASSISTANT_ID);
|
|
52152
52159
|
d({
|
|
52153
52160
|
applicationId: t,
|
|
52154
52161
|
emailAddress: e,
|
|
52155
52162
|
body: {
|
|
52156
|
-
messages:
|
|
52163
|
+
messages: J,
|
|
52157
52164
|
debug: b
|
|
52158
52165
|
}
|
|
52159
52166
|
});
|
|
52160
|
-
},
|
|
52161
|
-
D((
|
|
52167
|
+
}, ue = () => {
|
|
52168
|
+
D((J) => J.map((K) => K.partner1 !== ASSISTANT_ID && K.partner2 !== ASSISTANT_ID ? K : { ...K, messages: [] })), E();
|
|
52162
52169
|
};
|
|
52163
52170
|
return /* @__PURE__ */ jsxs("div", { className: "flex h-[80vh] overflow-hidden", children: [
|
|
52164
52171
|
/* @__PURE__ */ jsxs("div", { className: "w-[260px] p-4 pt-3 flex flex-col border-r", children: [
|
|
@@ -52172,7 +52179,7 @@ const ASSISTANT_ID = "RandmarAIChatAssistant", ChatLayout = forwardRef(
|
|
|
52172
52179
|
placeholder: "Search chats...",
|
|
52173
52180
|
className: "pl-8 h-9",
|
|
52174
52181
|
value: V,
|
|
52175
|
-
onChange: (
|
|
52182
|
+
onChange: (J) => L(J.target.value)
|
|
52176
52183
|
}
|
|
52177
52184
|
)
|
|
52178
52185
|
] }) }),
|
|
@@ -52182,42 +52189,42 @@ const ASSISTANT_ID = "RandmarAIChatAssistant", ChatLayout = forwardRef(
|
|
|
52182
52189
|
/* @__PURE__ */ jsx(TabsTrigger, { value: "pending", className: "text-xs col-span-3", children: "Pending" })
|
|
52183
52190
|
] }) })
|
|
52184
52191
|
] }),
|
|
52185
|
-
/* @__PURE__ */ jsx(ScrollArea, { className: "flex-1", children: O.length && /* @__PURE__ */ jsx(ChatList, { userId: t, chats:
|
|
52192
|
+
/* @__PURE__ */ jsx(ScrollArea, { className: "flex-1", children: O.length && /* @__PURE__ */ jsx(ChatList, { userId: t, chats: W.filter((J) => J.partner1 != ASSISTANT_ID && J.partner2 != ASSISTANT_ID), activeChat: getActiveChatObject(O, T) ?? null, onSelectChat: A, assistantChat: O.find((J) => J.partner1 == ASSISTANT_ID || J.partner2 == ASSISTANT_ID) }) })
|
|
52186
52193
|
] }),
|
|
52187
52194
|
/* @__PURE__ */ jsx("div", { className: "flex-1 flex flex-col", children: T ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
52188
52195
|
/* @__PURE__ */ jsx("div", { className: "flex items-center p-4 border-b", children: T[0] == ASSISTANT_ID || T[1] == ASSISTANT_ID ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
52189
52196
|
/* @__PURE__ */ jsx(Avatar, { className: "h-8 w-8 flex-shrink-0 rounded-none", children: /* @__PURE__ */ jsx(Bot, { className: "text-primary fill-white min-h-full" }) }),
|
|
52190
52197
|
/* @__PURE__ */ jsx("div", { className: "ml-3 font-medium", children: "Randmar Assistant" }),
|
|
52191
|
-
/* @__PURE__ */ jsx(Button, { variant: "ghost", size: "icon", className: "ml-auto", onClick: () =>
|
|
52192
|
-
/* @__PURE__ */ jsx(Button, { variant: "ghost", size: "icon", className: "ml-1", confirmationDialog: { title: "Report Issue", content: "This action will send a copy of your chat to Randmar. Send it?", onConfirm: () =>
|
|
52198
|
+
/* @__PURE__ */ jsx(Button, { variant: "ghost", size: "icon", className: "ml-auto", onClick: () => ue(), children: /* @__PURE__ */ jsx(MessageCircleX, { className: "h-5 w-5" }) }),
|
|
52199
|
+
/* @__PURE__ */ jsx(Button, { variant: "ghost", size: "icon", className: "ml-1", confirmationDialog: { title: "Report Issue", content: "This action will send a copy of your chat to Randmar. Send it?", onConfirm: () => le() }, children: /* @__PURE__ */ jsx(MessageSquareShare, { className: "h-5 w-5" }) })
|
|
52193
52200
|
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
52194
52201
|
/* @__PURE__ */ jsxs(Avatar, { className: "h-8 w-8 flex-shrink-0 rounded-none", children: [
|
|
52195
52202
|
/* @__PURE__ */ jsx(AvatarImage, { src: `https://api.randmar.io/v4/Partner/${T[0] === t ? T[1] : T[0]}/Account/Logo?height=72&width=72`, className: " object-contain " }),
|
|
52196
52203
|
/* @__PURE__ */ jsx(AvatarFallback, { children: /* @__PURE__ */ jsx(Handshake, { className: "text-primary fill-white min-h-full" }) })
|
|
52197
52204
|
] }),
|
|
52198
|
-
/* @__PURE__ */ jsx("div", { className: "ml-3 font-medium", children: (
|
|
52205
|
+
/* @__PURE__ */ jsx("div", { className: "ml-3 font-medium", children: (se = getActiveChatObject(O, T)) == null ? void 0 : se.name })
|
|
52199
52206
|
] }) }),
|
|
52200
|
-
(
|
|
52207
|
+
(ce = getActiveChatObject(O, T)) != null && ce.pending ? /* @__PURE__ */ jsx("p", { className: "mt-8 p-2 mx-auto", children: "This conversation is still awaiting approval — please check back later." }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
52201
52208
|
/* @__PURE__ */ jsxs(ScrollArea, { className: "flex-1 pl-2 pr-2 bg-slate-50", children: [
|
|
52202
52209
|
/* @__PURE__ */ jsx(
|
|
52203
52210
|
ChatMessages,
|
|
52204
52211
|
{
|
|
52205
|
-
messages: ((
|
|
52212
|
+
messages: ((oe = getActiveChatObject(O, T)) == null ? void 0 : oe.messages) ?? [],
|
|
52206
52213
|
currentUserId: t,
|
|
52207
52214
|
isWaitingForBot: _ && T && (T[0] === ASSISTANT_ID || T[1] === ASSISTANT_ID)
|
|
52208
52215
|
}
|
|
52209
52216
|
),
|
|
52210
|
-
/* @__PURE__ */ jsx("div", { ref:
|
|
52217
|
+
/* @__PURE__ */ jsx("div", { ref: Q })
|
|
52211
52218
|
] }),
|
|
52212
52219
|
/* @__PURE__ */ jsxs("div", { className: "p-4 border-t flex", children: [
|
|
52213
52220
|
/* @__PURE__ */ jsx(
|
|
52214
52221
|
Input,
|
|
52215
52222
|
{
|
|
52216
|
-
ref:
|
|
52223
|
+
ref: z,
|
|
52217
52224
|
placeholder: "Type a message...",
|
|
52218
52225
|
value: I,
|
|
52219
|
-
onChange: (
|
|
52220
|
-
onKeyDown: (
|
|
52226
|
+
onChange: (J) => M(J.target.value),
|
|
52227
|
+
onKeyDown: (J) => J.key === "Enter" && ae(),
|
|
52221
52228
|
className: "flex-1"
|
|
52222
52229
|
}
|
|
52223
52230
|
),
|
|
@@ -52228,7 +52235,7 @@ const ASSISTANT_ID = "RandmarAIChatAssistant", ChatLayout = forwardRef(
|
|
|
52228
52235
|
variant: "default",
|
|
52229
52236
|
className: "ml-1",
|
|
52230
52237
|
disabled: _,
|
|
52231
|
-
onClick:
|
|
52238
|
+
onClick: ae,
|
|
52232
52239
|
children: /* @__PURE__ */ jsx(Send, { className: "h-4 w-4" })
|
|
52233
52240
|
}
|
|
52234
52241
|
)
|
|
@@ -52237,8 +52244,12 @@ const ASSISTANT_ID = "RandmarAIChatAssistant", ChatLayout = forwardRef(
|
|
|
52237
52244
|
] }) : /* @__PURE__ */ jsx("div", { className: "flex-1 flex items-center justify-center text-muted-foreground", children: "Select a chat to start messaging" }) }),
|
|
52238
52245
|
/* @__PURE__ */ jsxs("div", { className: "w-[480px] flex flex-1 flex-col border-l", children: [
|
|
52239
52246
|
/* @__PURE__ */ jsx("div", { className: "flex items-center p-4 border-b", children: /* @__PURE__ */ jsx("p", { className: "h-9 text-base/9", children: "Visuals and System Info" }) }),
|
|
52240
|
-
/* @__PURE__ */ jsx(ScrollArea, { className: "flex-4 pl-2 pr-2 bg-slate-50", children: q }),
|
|
52241
|
-
/* @__PURE__ */
|
|
52247
|
+
/* @__PURE__ */ jsx(ScrollArea, { className: "flex-4 pl-2 pr-2 bg-slate-50", children: G >= 0 && q.length > G && q[q.length - (1 + G)] }),
|
|
52248
|
+
/* @__PURE__ */ jsxs("div", { className: "flex bg-slate-50 border-t pt-1 pb-1 justify-center gap-4", children: [
|
|
52249
|
+
/* @__PURE__ */ jsx(Button, { size: "icon", onClick: () => U((J) => J + 1), children: /* @__PURE__ */ jsx(ChevronLeft, {}) }),
|
|
52250
|
+
/* @__PURE__ */ jsx(Button, { size: "icon", onClick: () => U((J) => J - 1), children: /* @__PURE__ */ jsx(ChevronRight, {}) })
|
|
52251
|
+
] }),
|
|
52252
|
+
/* @__PURE__ */ jsx(ScrollArea, { className: "flex-1 border-t pl-2 pr-2 bg-slate-50", children: /* @__PURE__ */ jsx("div", { className: "space-y-2", children: b.map((J) => /* @__PURE__ */ jsx("p", { className: "text-slate-600", children: J })) }) })
|
|
52242
52253
|
] })
|
|
52243
52254
|
] });
|
|
52244
52255
|
}
|
|
@@ -52587,49 +52598,49 @@ function ProductCard({
|
|
|
52587
52598
|
syncToShopifyAction: f,
|
|
52588
52599
|
isSyncToShopifyActionLoading: p = !1
|
|
52589
52600
|
}) {
|
|
52590
|
-
var z, W,
|
|
52591
|
-
const [m, g] = useState(1), [b, _] = useState(null), [E, C] = useState(0), [S, T] = useState(!1), A = ((z = t == null ? void 0 : t.Distribution) == null ? void 0 : z.Cost) || 0, I = ((W = t == null ? void 0 : t.Distribution) == null ? void 0 : W.RegularPrice) || 0, M = ((
|
|
52601
|
+
var z, W, Z, te, ne, ae, le, ue, se, ce, oe;
|
|
52602
|
+
const [m, g] = useState(1), [b, _] = useState(null), [E, C] = useState(0), [S, T] = useState(!1), A = ((z = t == null ? void 0 : t.Distribution) == null ? void 0 : z.Cost) || 0, I = ((W = t == null ? void 0 : t.Distribution) == null ? void 0 : W.RegularPrice) || 0, M = ((Z = t == null ? void 0 : t.Distribution) == null ? void 0 : Z.Price) || 0;
|
|
52592
52603
|
useEffect(() => {
|
|
52593
52604
|
g(1), _(null), C(0), T(!1);
|
|
52594
52605
|
}, [t == null ? void 0 : t.RandmarSKU]);
|
|
52595
52606
|
const [R, N] = useState(null), [O, D] = useState(!1);
|
|
52596
52607
|
useEffect(() => {
|
|
52597
|
-
const
|
|
52608
|
+
const J = async () => {
|
|
52598
52609
|
if (t != null && t.ManufacturerId) {
|
|
52599
52610
|
D(!0);
|
|
52600
52611
|
try {
|
|
52601
|
-
const
|
|
52612
|
+
const ie = await fetch(
|
|
52602
52613
|
`https://api.randmar.io/V4/Partner/${t.ManufacturerId}/Account/Logo?width=60&height=40`
|
|
52603
52614
|
);
|
|
52604
|
-
if (
|
|
52605
|
-
const
|
|
52606
|
-
N(URL.createObjectURL(
|
|
52615
|
+
if (ie.ok) {
|
|
52616
|
+
const K = await ie.blob();
|
|
52617
|
+
N(URL.createObjectURL(K));
|
|
52607
52618
|
}
|
|
52608
|
-
} catch (
|
|
52609
|
-
console.error("Failed to load logo:",
|
|
52619
|
+
} catch (ie) {
|
|
52620
|
+
console.error("Failed to load logo:", ie);
|
|
52610
52621
|
} finally {
|
|
52611
52622
|
D(!1);
|
|
52612
52623
|
}
|
|
52613
52624
|
}
|
|
52614
52625
|
};
|
|
52615
|
-
t != null && t.ManufacturerId &&
|
|
52626
|
+
t != null && t.ManufacturerId && J();
|
|
52616
52627
|
}, [t == null ? void 0 : t.ManufacturerId]), useEffect(() => {
|
|
52617
|
-
var
|
|
52628
|
+
var J;
|
|
52618
52629
|
if (t && o) {
|
|
52619
|
-
const
|
|
52620
|
-
|
|
52630
|
+
const ie = (J = t.Opportunities) == null ? void 0 : J.find((K) => K.BidNumber == o);
|
|
52631
|
+
ie && _(ie);
|
|
52621
52632
|
}
|
|
52622
52633
|
}, [t, o]), useEffect(() => {
|
|
52623
52634
|
if (!t) return;
|
|
52624
|
-
const
|
|
52625
|
-
C(I > 0 ? Math.round((I -
|
|
52635
|
+
const J = b != null && b.Price ? b.Price : M;
|
|
52636
|
+
C(I > 0 ? Math.round((I - J) / I * 100) : 0);
|
|
52626
52637
|
}, [t, b, M, I]), useEffect(() => {
|
|
52627
52638
|
d || g(1);
|
|
52628
52639
|
}, [d]);
|
|
52629
|
-
const V = (
|
|
52630
|
-
if (
|
|
52631
|
-
const
|
|
52632
|
-
return !(
|
|
52640
|
+
const V = (J) => {
|
|
52641
|
+
if (J.Active !== !0) return !1;
|
|
52642
|
+
const ie = (/* @__PURE__ */ new Date()).toISOString().split("T")[0];
|
|
52643
|
+
return !(J.EndDate && J.EndDate.split("T")[0] < ie || J.StartDate && J.StartDate.split("T")[0] > ie);
|
|
52633
52644
|
};
|
|
52634
52645
|
if (!t)
|
|
52635
52646
|
return /* @__PURE__ */ jsx(Card, { children: /* @__PURE__ */ jsxs(CardContent, { className: "p-6", children: [
|
|
@@ -52696,20 +52707,20 @@ function ProductCard({
|
|
|
52696
52707
|
return;
|
|
52697
52708
|
}
|
|
52698
52709
|
g(m + 1);
|
|
52699
|
-
}, H = (
|
|
52700
|
-
const
|
|
52701
|
-
if (!isNaN(
|
|
52702
|
-
g(
|
|
52710
|
+
}, H = (J) => {
|
|
52711
|
+
const ie = parseInt(J.target.value, 10);
|
|
52712
|
+
if (!isNaN(ie) && ie > 0) {
|
|
52713
|
+
g(ie);
|
|
52703
52714
|
return;
|
|
52704
52715
|
}
|
|
52705
52716
|
g(void 0);
|
|
52706
52717
|
}, G = () => {
|
|
52707
52718
|
(m == null || m < 1) && g(1);
|
|
52708
|
-
}, U = ((
|
|
52719
|
+
}, U = ((ne = (te = t.Distribution) == null ? void 0 : te.Inventory) == null ? void 0 : ne.reduce((J, ie) => J + (ie.AvailableQuantity || 0), 0)) || 0, Q = (J) => {
|
|
52709
52720
|
try {
|
|
52710
|
-
return new Date(
|
|
52711
|
-
} catch (
|
|
52712
|
-
return console.error(
|
|
52721
|
+
return new Date(J).toLocaleDateString("en-US", { year: "numeric", month: "short", day: "numeric" });
|
|
52722
|
+
} catch (ie) {
|
|
52723
|
+
return console.error(ie), J.split("T")[0] || "N/A";
|
|
52713
52724
|
}
|
|
52714
52725
|
}, F = () => {
|
|
52715
52726
|
u && u({ quantity: m ?? 1, bidNumber: (b == null ? void 0 : b.BidNumber) ?? null });
|
|
@@ -52773,7 +52784,7 @@ function ProductCard({
|
|
|
52773
52784
|
Badge,
|
|
52774
52785
|
{
|
|
52775
52786
|
variant: "outline",
|
|
52776
|
-
className: `rounded-full px-3 ${(
|
|
52787
|
+
className: `rounded-full px-3 ${(ae = t.ManufacturerCategory) != null && ae.QualificationRequired ? "bg-blue-50 text-blue-700 hover:bg-blue-50" : "bg-neutral-50 text-neutral-700 hover:bg-neutral-50"}`,
|
|
52777
52788
|
children: [
|
|
52778
52789
|
/* @__PURE__ */ jsx(ShieldCheck, { size: "12", className: "mr-1.5" }),
|
|
52779
52790
|
" ",
|
|
@@ -52843,45 +52854,45 @@ function ProductCard({
|
|
|
52843
52854
|
/* @__PURE__ */ jsxs("div", { className: "flex gap-6 mt-4", children: [
|
|
52844
52855
|
/* @__PURE__ */ jsx("div", { className: "flex flex-1", children: B && t.Distribution && /* @__PURE__ */ jsxs("div", { className: "w-full", children: [
|
|
52845
52856
|
/* @__PURE__ */ jsx("div", { className: "flex items-center", children: "You have " + L.length + (L.length > 1 ? " opportunities" : " opportunity") + " for this product:" }),
|
|
52846
|
-
/* @__PURE__ */ jsx("div", { className: "space-y-2 max-h-[200px] overflow-y-auto p-2 mt-1", children: L.map((
|
|
52847
|
-
var
|
|
52857
|
+
/* @__PURE__ */ jsx("div", { className: "space-y-2 max-h-[200px] overflow-y-auto p-2 mt-1", children: L.map((J, ie) => {
|
|
52858
|
+
var K;
|
|
52848
52859
|
return /* @__PURE__ */ jsxs(
|
|
52849
52860
|
"div",
|
|
52850
52861
|
{
|
|
52851
52862
|
className: `flex justify-between items-center rounded-lg transition-colors py-2 px-4 bg-purple-100 border border-muted
|
|
52852
|
-
${
|
|
52863
|
+
${J.BidNumber == (b == null ? void 0 : b.BidNumber) ? "cursor-pointer border-2 border-purple-900" : V(J) ? "hover:bg-purple-200 cursor-pointer" : "!bg-neutral-50"}
|
|
52853
52864
|
`,
|
|
52854
52865
|
onClick: () => {
|
|
52855
|
-
V(
|
|
52856
|
-
|
|
52866
|
+
V(J) && _(
|
|
52867
|
+
J.BidNumber != (b == null ? void 0 : b.BidNumber) ? J : null
|
|
52857
52868
|
);
|
|
52858
52869
|
},
|
|
52859
52870
|
children: [
|
|
52860
52871
|
/* @__PURE__ */ jsx("div", { className: "flex items-center", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col", children: [
|
|
52861
|
-
/* @__PURE__ */ jsx("span", { className: "font-medium text-sm", children:
|
|
52872
|
+
/* @__PURE__ */ jsx("span", { className: "font-medium text-sm", children: J.Opportunity }),
|
|
52862
52873
|
/* @__PURE__ */ jsxs("span", { className: "text-xs text-neutral-900", children: [
|
|
52863
|
-
|
|
52874
|
+
J.BidNumber,
|
|
52864
52875
|
" ",
|
|
52865
|
-
!V(
|
|
52876
|
+
!V(J) && /* @__PURE__ */ jsx(Badge, { variant: "outline", className: "text-xs mx-1 h-5 bg-gray-100", children: "Currently unavailable" })
|
|
52866
52877
|
] })
|
|
52867
52878
|
] }) }),
|
|
52868
52879
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col items-end", children: [
|
|
52869
52880
|
/* @__PURE__ */ jsxs("span", { className: "font-semibold", children: [
|
|
52870
52881
|
"$",
|
|
52871
|
-
(
|
|
52882
|
+
(K = J.Price) == null ? void 0 : K.toFixed(2)
|
|
52872
52883
|
] }),
|
|
52873
|
-
|
|
52884
|
+
J.Rebate && J.Rebate > 0 && /* @__PURE__ */ jsxs("span", { className: "text-xs text-green-600", children: [
|
|
52874
52885
|
"Rebate: $",
|
|
52875
|
-
|
|
52886
|
+
J.Rebate.toFixed(2)
|
|
52876
52887
|
] }),
|
|
52877
|
-
|
|
52888
|
+
J.EndDate && /* @__PURE__ */ jsxs("span", { className: "text-xs text-neutral-600", children: [
|
|
52878
52889
|
"Ends: ",
|
|
52879
|
-
|
|
52890
|
+
Q(J.EndDate)
|
|
52880
52891
|
] })
|
|
52881
52892
|
] })
|
|
52882
52893
|
]
|
|
52883
52894
|
},
|
|
52884
|
-
|
|
52895
|
+
ie
|
|
52885
52896
|
);
|
|
52886
52897
|
}) })
|
|
52887
52898
|
] }) }),
|
|
@@ -52924,7 +52935,7 @@ function ProductCard({
|
|
|
52924
52935
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center flex-wrap", children: [
|
|
52925
52936
|
/* @__PURE__ */ jsxs("span", { className: "text-2xl font-bold whitespace-nowrap", children: [
|
|
52926
52937
|
/* @__PURE__ */ jsx("span", { children: "$" }),
|
|
52927
|
-
b ? (
|
|
52938
|
+
b ? (ce = (se = t.Opportunities) == null ? void 0 : se.find((J) => J.BidNumber == b.BidNumber)) == null ? void 0 : ce.Price : M.toFixed(2),
|
|
52928
52939
|
/* @__PURE__ */ jsx("span", { children: " CAD" })
|
|
52929
52940
|
] }),
|
|
52930
52941
|
E > 0 && /* @__PURE__ */ jsxs("span", { className: "text-muted-foreground line-through ml-2 whitespace-nowrap", children: [
|
|
@@ -52937,7 +52948,7 @@ function ProductCard({
|
|
|
52937
52948
|
E,
|
|
52938
52949
|
"% OFF"
|
|
52939
52950
|
] }),
|
|
52940
|
-
((
|
|
52951
|
+
((oe = t.InstantRebate) == null ? void 0 : oe.EndDate) && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
52941
52952
|
/* @__PURE__ */ jsx("span", { className: "mx-1.5", children: "●" }),
|
|
52942
52953
|
" Ends ",
|
|
52943
52954
|
t.InstantRebate.EndDate.split("T")[0]
|
|
@@ -52968,7 +52979,7 @@ function ProductCard({
|
|
|
52968
52979
|
value: m,
|
|
52969
52980
|
onChange: H,
|
|
52970
52981
|
onBlur: G,
|
|
52971
|
-
onClick: (
|
|
52982
|
+
onClick: (J) => J.currentTarget.select(),
|
|
52972
52983
|
className: `w-12 text-center border-0 focus:ring-0 focus:outline-none ${!t.AvailableToBuy || d || !u ? "text-gray-400" : ""}`,
|
|
52973
52984
|
disabled: !t.AvailableToBuy || d || !u
|
|
52974
52985
|
}
|
|
@@ -53264,11 +53275,11 @@ var OPEN_KEYS = [" ", "Enter", "ArrowUp", "ArrowDown"], SELECTION_KEYS = [" ", "
|
|
|
53264
53275
|
{
|
|
53265
53276
|
scope: t.__scopeSelect,
|
|
53266
53277
|
onNativeOptionAdd: React.useCallback((U) => {
|
|
53267
|
-
H((
|
|
53278
|
+
H((Q) => new Set(Q).add(U));
|
|
53268
53279
|
}, []),
|
|
53269
53280
|
onNativeOptionRemove: React.useCallback((U) => {
|
|
53270
|
-
H((
|
|
53271
|
-
const F = new Set(
|
|
53281
|
+
H((Q) => {
|
|
53282
|
+
const F = new Set(Q);
|
|
53272
53283
|
return F.delete(U), F;
|
|
53273
53284
|
});
|
|
53274
53285
|
}, []),
|
|
@@ -53415,33 +53426,33 @@ var CONTENT_MARGIN = 10, [SelectContentProvider, useSelectContentContext] = crea
|
|
|
53415
53426
|
}, [I]), useFocusGuards();
|
|
53416
53427
|
const U = React.useCallback(
|
|
53417
53428
|
(se) => {
|
|
53418
|
-
const [
|
|
53419
|
-
for (const
|
|
53420
|
-
if (
|
|
53429
|
+
const [ce, ...oe] = j().map((K) => K.ref.current), [J] = oe.slice(-1), ie = document.activeElement;
|
|
53430
|
+
for (const K of se)
|
|
53431
|
+
if (K === ie || (K == null || K.scrollIntoView({ block: "nearest" }), K === ce && R && (R.scrollTop = 0), K === J && R && (R.scrollTop = R.scrollHeight), K == null || K.focus(), document.activeElement !== ie)) return;
|
|
53421
53432
|
},
|
|
53422
53433
|
[j, R]
|
|
53423
|
-
),
|
|
53434
|
+
), Q = React.useCallback(
|
|
53424
53435
|
() => U([D, I]),
|
|
53425
53436
|
[U, D, I]
|
|
53426
53437
|
);
|
|
53427
53438
|
React.useEffect(() => {
|
|
53428
|
-
q &&
|
|
53429
|
-
}, [q,
|
|
53439
|
+
q && Q();
|
|
53440
|
+
}, [q, Q]);
|
|
53430
53441
|
const { onOpenChange: F, triggerPointerDownPosRef: z } = A;
|
|
53431
53442
|
React.useEffect(() => {
|
|
53432
53443
|
if (I) {
|
|
53433
53444
|
let se = { x: 0, y: 0 };
|
|
53434
|
-
const
|
|
53435
|
-
var
|
|
53445
|
+
const ce = (J) => {
|
|
53446
|
+
var ie, K;
|
|
53436
53447
|
se = {
|
|
53437
|
-
x: Math.abs(Math.round(
|
|
53438
|
-
y: Math.abs(Math.round(
|
|
53448
|
+
x: Math.abs(Math.round(J.pageX) - (((ie = z.current) == null ? void 0 : ie.x) ?? 0)),
|
|
53449
|
+
y: Math.abs(Math.round(J.pageY) - (((K = z.current) == null ? void 0 : K.y) ?? 0))
|
|
53439
53450
|
};
|
|
53440
|
-
},
|
|
53441
|
-
se.x <= 10 && se.y <= 10 ?
|
|
53451
|
+
}, oe = (J) => {
|
|
53452
|
+
se.x <= 10 && se.y <= 10 ? J.preventDefault() : I.contains(J.target) || F(!1), document.removeEventListener("pointermove", ce), z.current = null;
|
|
53442
53453
|
};
|
|
53443
|
-
return z.current !== null && (document.addEventListener("pointermove",
|
|
53444
|
-
document.removeEventListener("pointermove",
|
|
53454
|
+
return z.current !== null && (document.addEventListener("pointermove", ce), document.addEventListener("pointerup", oe, { capture: !0, once: !0 })), () => {
|
|
53455
|
+
document.removeEventListener("pointermove", ce), document.removeEventListener("pointerup", oe, { capture: !0 });
|
|
53445
53456
|
};
|
|
53446
53457
|
}
|
|
53447
53458
|
}, [I, F, z]), React.useEffect(() => {
|
|
@@ -53450,19 +53461,19 @@ var CONTENT_MARGIN = 10, [SelectContentProvider, useSelectContentContext] = crea
|
|
|
53450
53461
|
window.removeEventListener("blur", se), window.removeEventListener("resize", se);
|
|
53451
53462
|
};
|
|
53452
53463
|
}, [F]);
|
|
53453
|
-
const [W,
|
|
53454
|
-
const
|
|
53455
|
-
|
|
53456
|
-
}),
|
|
53457
|
-
(se,
|
|
53458
|
-
const
|
|
53459
|
-
(A.value !== void 0 && A.value ===
|
|
53464
|
+
const [W, Z] = useTypeaheadSearch((se) => {
|
|
53465
|
+
const ce = j().filter((ie) => !ie.disabled), oe = ce.find((ie) => ie.ref.current === document.activeElement), J = findNextItem(ce, se, oe);
|
|
53466
|
+
J && setTimeout(() => J.ref.current.focus());
|
|
53467
|
+
}), te = React.useCallback(
|
|
53468
|
+
(se, ce, oe) => {
|
|
53469
|
+
const J = !G.current && !oe;
|
|
53470
|
+
(A.value !== void 0 && A.value === ce || J) && (V(se), J && (G.current = !0));
|
|
53460
53471
|
},
|
|
53461
53472
|
[A.value]
|
|
53462
|
-
),
|
|
53463
|
-
(se,
|
|
53464
|
-
const
|
|
53465
|
-
(A.value !== void 0 && A.value ===
|
|
53473
|
+
), ne = React.useCallback(() => I == null ? void 0 : I.focus(), [I]), ae = React.useCallback(
|
|
53474
|
+
(se, ce, oe) => {
|
|
53475
|
+
const J = !G.current && !oe;
|
|
53476
|
+
(A.value !== void 0 && A.value === ce || J) && B(se);
|
|
53466
53477
|
},
|
|
53467
53478
|
[A.value]
|
|
53468
53479
|
), le = i === "popper" ? SelectPopperPosition : SelectItemAlignedPosition, ue = le === SelectPopperPosition ? {
|
|
@@ -53484,11 +53495,11 @@ var CONTENT_MARGIN = 10, [SelectContentProvider, useSelectContentContext] = crea
|
|
|
53484
53495
|
content: I,
|
|
53485
53496
|
viewport: R,
|
|
53486
53497
|
onViewportChange: N,
|
|
53487
|
-
itemRefCallback:
|
|
53498
|
+
itemRefCallback: te,
|
|
53488
53499
|
selectedItem: D,
|
|
53489
|
-
onItemLeave:
|
|
53490
|
-
itemTextRefCallback:
|
|
53491
|
-
focusSelectedItem:
|
|
53500
|
+
onItemLeave: ne,
|
|
53501
|
+
itemTextRefCallback: ae,
|
|
53502
|
+
focusSelectedItem: Q,
|
|
53492
53503
|
selectedItemText: L,
|
|
53493
53504
|
position: i,
|
|
53494
53505
|
isPositioned: q,
|
|
@@ -53502,8 +53513,8 @@ var CONTENT_MARGIN = 10, [SelectContentProvider, useSelectContentContext] = crea
|
|
|
53502
53513
|
se.preventDefault();
|
|
53503
53514
|
},
|
|
53504
53515
|
onUnmountAutoFocus: composeEventHandlers(o, (se) => {
|
|
53505
|
-
var
|
|
53506
|
-
(
|
|
53516
|
+
var ce;
|
|
53517
|
+
(ce = A.trigger) == null || ce.focus({ preventScroll: !0 }), se.preventDefault();
|
|
53507
53518
|
}),
|
|
53508
53519
|
children: /* @__PURE__ */ jsx(
|
|
53509
53520
|
DismissableLayer,
|
|
@@ -53535,14 +53546,14 @@ var CONTENT_MARGIN = 10, [SelectContentProvider, useSelectContentContext] = crea
|
|
|
53535
53546
|
...T.style
|
|
53536
53547
|
},
|
|
53537
53548
|
onKeyDown: composeEventHandlers(T.onKeyDown, (se) => {
|
|
53538
|
-
const
|
|
53539
|
-
if (se.key === "Tab" && se.preventDefault(), !
|
|
53540
|
-
let
|
|
53541
|
-
if (["ArrowUp", "End"].includes(se.key) && (
|
|
53542
|
-
const
|
|
53543
|
-
|
|
53549
|
+
const ce = se.ctrlKey || se.altKey || se.metaKey;
|
|
53550
|
+
if (se.key === "Tab" && se.preventDefault(), !ce && se.key.length === 1 && Z(se.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(se.key)) {
|
|
53551
|
+
let J = j().filter((ie) => !ie.disabled).map((ie) => ie.ref.current);
|
|
53552
|
+
if (["ArrowUp", "End"].includes(se.key) && (J = J.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(se.key)) {
|
|
53553
|
+
const ie = se.target, K = J.indexOf(ie);
|
|
53554
|
+
J = J.slice(K + 1);
|
|
53544
53555
|
}
|
|
53545
|
-
setTimeout(() => U(
|
|
53556
|
+
setTimeout(() => U(J)), se.preventDefault();
|
|
53546
53557
|
}
|
|
53547
53558
|
})
|
|
53548
53559
|
}
|
|
@@ -53561,42 +53572,42 @@ var ITEM_ALIGNED_POSITION_NAME = "SelectItemAlignedPosition", SelectItemAlignedP
|
|
|
53561
53572
|
if (l.trigger && l.valueNode && d && p && C && S && T) {
|
|
53562
53573
|
const O = l.trigger.getBoundingClientRect(), D = p.getBoundingClientRect(), V = l.valueNode.getBoundingClientRect(), L = T.getBoundingClientRect();
|
|
53563
53574
|
if (l.dir !== "rtl") {
|
|
53564
|
-
const
|
|
53575
|
+
const ie = L.left - D.left, K = V.left - ie, fe = O.left - K, ee = O.width + fe, de = Math.max(ee, D.width), he = window.innerWidth - CONTENT_MARGIN, me = clamp(K, [
|
|
53565
53576
|
CONTENT_MARGIN,
|
|
53566
53577
|
// Prevents the content from going off the starting edge of the
|
|
53567
53578
|
// viewport. It may still go off the ending edge, but this can be
|
|
53568
53579
|
// controlled by the user since they may want to manage overflow in a
|
|
53569
53580
|
// specific way.
|
|
53570
53581
|
// https://github.com/radix-ui/primitives/issues/2049
|
|
53571
|
-
Math.max(CONTENT_MARGIN, he -
|
|
53582
|
+
Math.max(CONTENT_MARGIN, he - de)
|
|
53572
53583
|
]);
|
|
53573
|
-
d.style.minWidth =
|
|
53584
|
+
d.style.minWidth = ee + "px", d.style.left = me + "px";
|
|
53574
53585
|
} else {
|
|
53575
|
-
const
|
|
53586
|
+
const ie = D.right - L.right, K = window.innerWidth - V.right - ie, fe = window.innerWidth - O.right - K, ee = O.width + fe, de = Math.max(ee, D.width), he = window.innerWidth - CONTENT_MARGIN, me = clamp(K, [
|
|
53576
53587
|
CONTENT_MARGIN,
|
|
53577
|
-
Math.max(CONTENT_MARGIN, he -
|
|
53588
|
+
Math.max(CONTENT_MARGIN, he - de)
|
|
53578
53589
|
]);
|
|
53579
|
-
d.style.minWidth =
|
|
53590
|
+
d.style.minWidth = ee + "px", d.style.right = me + "px";
|
|
53580
53591
|
}
|
|
53581
|
-
const B = b(), j = window.innerHeight - CONTENT_MARGIN * 2, q = C.scrollHeight, H = window.getComputedStyle(p), G = parseInt(H.borderTopWidth, 10), U = parseInt(H.paddingTop, 10),
|
|
53582
|
-
if (
|
|
53583
|
-
const
|
|
53592
|
+
const B = b(), j = window.innerHeight - CONTENT_MARGIN * 2, q = C.scrollHeight, H = window.getComputedStyle(p), G = parseInt(H.borderTopWidth, 10), U = parseInt(H.paddingTop, 10), Q = parseInt(H.borderBottomWidth, 10), F = parseInt(H.paddingBottom, 10), z = G + U + q + F + Q, W = Math.min(S.offsetHeight * 5, z), Z = window.getComputedStyle(C), te = parseInt(Z.paddingTop, 10), ne = parseInt(Z.paddingBottom, 10), ae = O.top + O.height / 2 - CONTENT_MARGIN, le = j - ae, ue = S.offsetHeight / 2, se = S.offsetTop + ue, ce = G + U + se, oe = z - ce;
|
|
53593
|
+
if (ce <= ae) {
|
|
53594
|
+
const ie = B.length > 0 && S === B[B.length - 1].ref.current;
|
|
53584
53595
|
d.style.bottom = "0px";
|
|
53585
|
-
const
|
|
53596
|
+
const K = p.clientHeight - C.offsetTop - C.offsetHeight, fe = Math.max(
|
|
53586
53597
|
le,
|
|
53587
53598
|
ue + // viewport might have padding bottom, include it to avoid a scrollable viewport
|
|
53588
|
-
(
|
|
53589
|
-
),
|
|
53590
|
-
d.style.height =
|
|
53599
|
+
(ie ? ne : 0) + K + Q
|
|
53600
|
+
), ee = ce + fe;
|
|
53601
|
+
d.style.height = ee + "px";
|
|
53591
53602
|
} else {
|
|
53592
|
-
const
|
|
53603
|
+
const ie = B.length > 0 && S === B[0].ref.current;
|
|
53593
53604
|
d.style.top = "0px";
|
|
53594
|
-
const
|
|
53595
|
-
|
|
53605
|
+
const fe = Math.max(
|
|
53606
|
+
ae,
|
|
53596
53607
|
G + C.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
|
|
53597
|
-
(
|
|
53598
|
-
) +
|
|
53599
|
-
d.style.height =
|
|
53608
|
+
(ie ? te : 0) + ue
|
|
53609
|
+
) + oe;
|
|
53610
|
+
d.style.height = fe + "px", C.scrollTop = ce - ae + C.offsetTop;
|
|
53600
53611
|
}
|
|
53601
53612
|
d.style.margin = `${CONTENT_MARGIN}px 0`, d.style.minHeight = W + "px", d.style.maxHeight = j + "px", i == null || i(), requestAnimationFrame(() => _.current = !0);
|
|
53602
53613
|
}
|