randmarcomps 1.301.0 → 1.303.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.d.ts +1 -1
- package/dist/randmarcomps.js +1050 -1046
- package/dist/randmarcomps.umd.cjs +30 -30
- package/package.json +1 -1
package/dist/randmarcomps.js
CHANGED
|
@@ -4,7 +4,7 @@ var Mn = (t) => {
|
|
|
4
4
|
};
|
|
5
5
|
var Yn = (t, e, n) => e in t ? Kn(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
6
6
|
var Qt = (t, e, n) => Yn(t, typeof e != "symbol" ? e + "" : e, n), Zn = (t, e, n) => e.has(t) || Mn("Cannot " + n);
|
|
7
|
-
var
|
|
7
|
+
var nr = (t, e, n) => (Zn(t, e, "read from private field"), n ? n.call(t) : e.get(t)), qr = (t, e, n) => e.has(t) ? Mn("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n);
|
|
8
8
|
import { jsx, jsxs, Fragment as Fragment$1 } from "react/jsx-runtime";
|
|
9
9
|
import * as React from "react";
|
|
10
10
|
import React__default, { forwardRef, createElement, useState, useLayoutEffect, useCallback, useDebugValue, useMemo, useEffect, useRef, createContext, useContext, isValidElement, Children, PureComponent, useImperativeHandle, cloneElement, Component, Fragment as Fragment$2 } from "react";
|
|
@@ -76,27 +76,27 @@ var jt = React.createContext({}), Lt = React.forwardRef((t, e) => {
|
|
|
76
76
|
He(null), tt(null);
|
|
77
77
|
return;
|
|
78
78
|
}
|
|
79
|
-
let Ft = Je.selectionStart, Ke = Je.selectionEnd,
|
|
79
|
+
let Ft = Je.selectionStart, Ke = Je.selectionEnd, it = Je.selectionDirection, et = Je.maxLength, ut = Je.value, ft = je.current.prev, dt = -1, Ct = -1, zt;
|
|
80
80
|
if (ut.length !== 0 && Ft !== null && Ke !== null) {
|
|
81
|
-
let
|
|
82
|
-
if (
|
|
83
|
-
let
|
|
84
|
-
if (
|
|
85
|
-
else if (
|
|
86
|
-
else if (
|
|
81
|
+
let mt = Ft === Ke, xr = Ft === ut.length && ut.length < et;
|
|
82
|
+
if (mt && !xr) {
|
|
83
|
+
let pt = Ft;
|
|
84
|
+
if (pt === 0) dt = 0, Ct = 1, zt = "forward";
|
|
85
|
+
else if (pt === et) dt = pt - 1, Ct = pt, zt = "backward";
|
|
86
|
+
else if (et > 1 && ut.length > 1) {
|
|
87
87
|
let Zt = 0;
|
|
88
88
|
if (ft[0] !== null && ft[1] !== null) {
|
|
89
|
-
zt =
|
|
90
|
-
let
|
|
91
|
-
zt === "backward" && !
|
|
89
|
+
zt = pt < ft[1] ? "backward" : "forward";
|
|
90
|
+
let Kt = ft[0] === ft[1] && ft[0] < et;
|
|
91
|
+
zt === "backward" && !Kt && (Zt = -1);
|
|
92
92
|
}
|
|
93
|
-
dt = Zt +
|
|
93
|
+
dt = Zt + pt, Ct = Zt + pt + 1;
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
dt !== -1 && Ct !== -1 && dt !== Ct && $e.current.setSelectionRange(dt, Ct, zt);
|
|
97
97
|
}
|
|
98
|
-
let Yt = dt !== -1 ? dt : Ft,
|
|
99
|
-
He(Yt), tt(
|
|
98
|
+
let Yt = dt !== -1 ? dt : Ft, ir = Ct !== -1 ? Ct : Ke, cr = zt ?? it;
|
|
99
|
+
He(Yt), tt(ir), je.current.prev = [Yt, ir, cr];
|
|
100
100
|
}
|
|
101
101
|
if (document.addEventListener("selectionchange", Mt, { capture: !0 }), Mt(), document.activeElement === Je && qe(!0), !document.getElementById("input-otp-style")) {
|
|
102
102
|
let Ft = document.createElement("style");
|
|
@@ -125,7 +125,7 @@ var jt = React.createContext({}), Lt = React.forwardRef((t, e) => {
|
|
|
125
125
|
}, [oe, Le]), React.useEffect(() => {
|
|
126
126
|
ge !== void 0 && oe !== ge && ge.length < d && oe.length === d && (_ == null || _(oe));
|
|
127
127
|
}, [d, _, ge, oe]);
|
|
128
|
-
let Ye = Tt({ containerRef: Ne, inputRef: $e, pushPasswordManagerStrategy: C, isFocused: Le }),
|
|
128
|
+
let Ye = Tt({ containerRef: Ne, inputRef: $e, pushPasswordManagerStrategy: C, isFocused: Le }), Qe = React.useCallback((Je) => {
|
|
129
129
|
let yt = Je.currentTarget.value.slice(0, d);
|
|
130
130
|
if (yt.length > 0 && Ae && !Ae.test(yt)) {
|
|
131
131
|
Je.preventDefault();
|
|
@@ -139,21 +139,21 @@ var jt = React.createContext({}), Lt = React.forwardRef((t, e) => {
|
|
|
139
139
|
(Je = $e.current) == null || Je.setSelectionRange(yt, Mt), He(yt), tt(Mt);
|
|
140
140
|
}
|
|
141
141
|
qe(!0);
|
|
142
|
-
}, [d]),
|
|
142
|
+
}, [d]), ot = React.useCallback((Je) => {
|
|
143
143
|
var yt, Mt;
|
|
144
144
|
let qt = $e.current;
|
|
145
145
|
if (!E && (!Ve.current.isIOS || !Je.clipboardData || !qt)) return;
|
|
146
146
|
let Ht = Je.clipboardData.getData("text/plain"), Ft = E ? E(Ht) : Ht;
|
|
147
147
|
Je.preventDefault();
|
|
148
|
-
let Ke = (yt = $e.current) == null ? void 0 : yt.selectionStart,
|
|
149
|
-
if (
|
|
150
|
-
qt.value =
|
|
151
|
-
let ut = Math.min(
|
|
148
|
+
let Ke = (yt = $e.current) == null ? void 0 : yt.selectionStart, it = (Mt = $e.current) == null ? void 0 : Mt.selectionEnd, et = (Ke !== it ? oe.slice(0, Ke) + Ft + oe.slice(it) : oe.slice(0, Ke) + Ft + oe.slice(Ke)).slice(0, d);
|
|
149
|
+
if (et.length > 0 && Ae && !Ae.test(et)) return;
|
|
150
|
+
qt.value = et, se(et);
|
|
151
|
+
let ut = Math.min(et.length, d - 1), ft = et.length;
|
|
152
152
|
qt.setSelectionRange(ut, ft), He(ut), tt(ft);
|
|
153
|
-
}, [d, se, Ae, oe]),
|
|
153
|
+
}, [d, se, Ae, oe]), rt = React.useMemo(() => ({ position: "relative", cursor: O.disabled ? "default" : "text", userSelect: "none", WebkitUserSelect: "none", pointerEvents: "none" }), [O.disabled]), at = React.useMemo(() => ({ position: "absolute", inset: 0, width: Ye.willPushPWMBadge ? `calc(100% + ${Ye.PWM_BADGE_SPACE_WIDTH})` : "100%", clipPath: Ye.willPushPWMBadge ? `inset(0 ${Ye.PWM_BADGE_SPACE_WIDTH} 0 0)` : void 0, height: "100%", display: "flex", textAlign: f, 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" }), [Ye.PWM_BADGE_SPACE_WIDTH, Ye.willPushPWMBadge, f]), st = React.useMemo(() => React.createElement("input", bt(St({ autoComplete: O.autoComplete || "one-time-code" }, O), { "data-input-otp": !0, "data-input-otp-placeholder-shown": oe.length === 0 || void 0, "data-input-otp-mss": Ge, "data-input-otp-mse": Ze, inputMode: S, pattern: Ae == null ? void 0 : Ae.source, "aria-placeholder": b, style: at, maxLength: d, value: oe, ref: $e, onPaste: (Je) => {
|
|
154
154
|
var yt;
|
|
155
|
-
|
|
156
|
-
}, onChange:
|
|
155
|
+
ot(Je), (yt = O.onPaste) == null || yt.call(O, Je);
|
|
156
|
+
}, onChange: Qe, onMouseOver: (Je) => {
|
|
157
157
|
var yt;
|
|
158
158
|
Oe(!0), (yt = O.onMouseOver) == null || yt.call(O, Je);
|
|
159
159
|
}, onMouseLeave: (Je) => {
|
|
@@ -165,12 +165,12 @@ var jt = React.createContext({}), Lt = React.forwardRef((t, e) => {
|
|
|
165
165
|
}, onBlur: (Je) => {
|
|
166
166
|
var yt;
|
|
167
167
|
qe(!1), (yt = O.onBlur) == null || yt.call(O, Je);
|
|
168
|
-
} })), [
|
|
168
|
+
} })), [Qe, Xe, ot, S, at, d, Ze, Ge, O, Ae == null ? void 0 : Ae.source, oe]), Ue = React.useMemo(() => ({ slots: Array.from({ length: d }).map((Je, yt) => {
|
|
169
169
|
var Mt;
|
|
170
170
|
let qt = Le && Ge !== null && Ze !== null && (Ge === Ze && yt === Ge || yt >= Ge && yt < Ze), Ht = oe[yt] !== void 0 ? oe[yt] : null, Ft = oe[0] !== void 0 ? null : (Mt = b == null ? void 0 : b[yt]) != null ? Mt : null;
|
|
171
171
|
return { char: Ht, placeholderChar: Ft, isActive: qt, hasFakeCaret: qt && Ht === null };
|
|
172
172
|
}), isFocused: Le, isHovering: !O.disabled && ze }), [Le, ze, d, Ze, Ge, O.disabled, oe]), Rt = React.useMemo(() => I ? I(Ue) : React.createElement(jt.Provider, { value: Ue }, M), [M, Ue, I]);
|
|
173
|
-
return React.createElement(React.Fragment, null, A !== null && React.createElement("noscript", null, React.createElement("style", null, A)), React.createElement("div", { ref: Ne, "data-input-otp-container": !0, style:
|
|
173
|
+
return React.createElement(React.Fragment, null, A !== null && React.createElement("noscript", null, React.createElement("style", null, A)), React.createElement("div", { ref: Ne, "data-input-otp-container": !0, style: rt, className: R }, Rt, React.createElement("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" } }, st)));
|
|
174
174
|
});
|
|
175
175
|
Lt.displayName = "Input";
|
|
176
176
|
function $$1(t, e) {
|
|
@@ -1507,14 +1507,14 @@ const fromTheme = (t) => {
|
|
|
1507
1507
|
S,
|
|
1508
1508
|
isArbitraryVariable,
|
|
1509
1509
|
isArbitraryValue
|
|
1510
|
-
], tt = () => ["", isNumber$4, isArbitraryVariableLength, isArbitraryLength], Ye = () => ["solid", "dashed", "dotted", "double"],
|
|
1510
|
+
], tt = () => ["", isNumber$4, isArbitraryVariableLength, isArbitraryLength], Ye = () => ["solid", "dashed", "dotted", "double"], Qe = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], Xe = () => [isNumber$4, isPercent$1, isArbitraryVariablePosition, isArbitraryPosition], ot = () => [
|
|
1511
1511
|
// Deprecated since Tailwind CSS v4.0.0
|
|
1512
1512
|
"",
|
|
1513
1513
|
"none",
|
|
1514
1514
|
A,
|
|
1515
1515
|
isArbitraryVariable,
|
|
1516
1516
|
isArbitraryValue
|
|
1517
|
-
],
|
|
1517
|
+
], rt = () => ["none", isNumber$4, isArbitraryVariable, isArbitraryValue], at = () => ["none", isNumber$4, isArbitraryVariable, isArbitraryValue], st = () => [isNumber$4, isArbitraryVariable, isArbitraryValue], Ue = () => [isFraction, "full", ...ne()];
|
|
1518
1518
|
return {
|
|
1519
1519
|
cacheSize: 500,
|
|
1520
1520
|
theme: {
|
|
@@ -2968,14 +2968,14 @@ const fromTheme = (t) => {
|
|
|
2968
2968
|
* @see https://tailwindcss.com/docs/mix-blend-mode
|
|
2969
2969
|
*/
|
|
2970
2970
|
"mix-blend": [{
|
|
2971
|
-
"mix-blend": [...
|
|
2971
|
+
"mix-blend": [...Qe(), "plus-darker", "plus-lighter"]
|
|
2972
2972
|
}],
|
|
2973
2973
|
/**
|
|
2974
2974
|
* Background Blend Mode
|
|
2975
2975
|
* @see https://tailwindcss.com/docs/background-blend-mode
|
|
2976
2976
|
*/
|
|
2977
2977
|
"bg-blend": [{
|
|
2978
|
-
"bg-blend":
|
|
2978
|
+
"bg-blend": Qe()
|
|
2979
2979
|
}],
|
|
2980
2980
|
/**
|
|
2981
2981
|
* Mask Clip
|
|
@@ -3194,7 +3194,7 @@ const fromTheme = (t) => {
|
|
|
3194
3194
|
* @see https://tailwindcss.com/docs/blur
|
|
3195
3195
|
*/
|
|
3196
3196
|
blur: [{
|
|
3197
|
-
blur:
|
|
3197
|
+
blur: ot()
|
|
3198
3198
|
}],
|
|
3199
3199
|
/**
|
|
3200
3200
|
* Brightness
|
|
@@ -3284,7 +3284,7 @@ const fromTheme = (t) => {
|
|
|
3284
3284
|
* @see https://tailwindcss.com/docs/backdrop-blur
|
|
3285
3285
|
*/
|
|
3286
3286
|
"backdrop-blur": [{
|
|
3287
|
-
"backdrop-blur":
|
|
3287
|
+
"backdrop-blur": ot()
|
|
3288
3288
|
}],
|
|
3289
3289
|
/**
|
|
3290
3290
|
* Backdrop Brightness
|
|
@@ -3461,56 +3461,56 @@ const fromTheme = (t) => {
|
|
|
3461
3461
|
* @see https://tailwindcss.com/docs/rotate
|
|
3462
3462
|
*/
|
|
3463
3463
|
rotate: [{
|
|
3464
|
-
rotate:
|
|
3464
|
+
rotate: rt()
|
|
3465
3465
|
}],
|
|
3466
3466
|
/**
|
|
3467
3467
|
* Rotate X
|
|
3468
3468
|
* @see https://tailwindcss.com/docs/rotate
|
|
3469
3469
|
*/
|
|
3470
3470
|
"rotate-x": [{
|
|
3471
|
-
"rotate-x":
|
|
3471
|
+
"rotate-x": rt()
|
|
3472
3472
|
}],
|
|
3473
3473
|
/**
|
|
3474
3474
|
* Rotate Y
|
|
3475
3475
|
* @see https://tailwindcss.com/docs/rotate
|
|
3476
3476
|
*/
|
|
3477
3477
|
"rotate-y": [{
|
|
3478
|
-
"rotate-y":
|
|
3478
|
+
"rotate-y": rt()
|
|
3479
3479
|
}],
|
|
3480
3480
|
/**
|
|
3481
3481
|
* Rotate Z
|
|
3482
3482
|
* @see https://tailwindcss.com/docs/rotate
|
|
3483
3483
|
*/
|
|
3484
3484
|
"rotate-z": [{
|
|
3485
|
-
"rotate-z":
|
|
3485
|
+
"rotate-z": rt()
|
|
3486
3486
|
}],
|
|
3487
3487
|
/**
|
|
3488
3488
|
* Scale
|
|
3489
3489
|
* @see https://tailwindcss.com/docs/scale
|
|
3490
3490
|
*/
|
|
3491
3491
|
scale: [{
|
|
3492
|
-
scale:
|
|
3492
|
+
scale: at()
|
|
3493
3493
|
}],
|
|
3494
3494
|
/**
|
|
3495
3495
|
* Scale X
|
|
3496
3496
|
* @see https://tailwindcss.com/docs/scale
|
|
3497
3497
|
*/
|
|
3498
3498
|
"scale-x": [{
|
|
3499
|
-
"scale-x":
|
|
3499
|
+
"scale-x": at()
|
|
3500
3500
|
}],
|
|
3501
3501
|
/**
|
|
3502
3502
|
* Scale Y
|
|
3503
3503
|
* @see https://tailwindcss.com/docs/scale
|
|
3504
3504
|
*/
|
|
3505
3505
|
"scale-y": [{
|
|
3506
|
-
"scale-y":
|
|
3506
|
+
"scale-y": at()
|
|
3507
3507
|
}],
|
|
3508
3508
|
/**
|
|
3509
3509
|
* Scale Z
|
|
3510
3510
|
* @see https://tailwindcss.com/docs/scale
|
|
3511
3511
|
*/
|
|
3512
3512
|
"scale-z": [{
|
|
3513
|
-
"scale-z":
|
|
3513
|
+
"scale-z": at()
|
|
3514
3514
|
}],
|
|
3515
3515
|
/**
|
|
3516
3516
|
* Scale 3D
|
|
@@ -7225,7 +7225,7 @@ var ANCHOR_NAME$2 = "PopperAnchor", PopperAnchor = React.forwardRef(
|
|
|
7225
7225
|
PopperAnchor.displayName = ANCHOR_NAME$2;
|
|
7226
7226
|
var CONTENT_NAME$7 = "PopperContent", [PopperContentProvider, useContentContext] = createPopperContext(CONTENT_NAME$7), PopperContent = React.forwardRef(
|
|
7227
7227
|
(t, e) => {
|
|
7228
|
-
var Xe,
|
|
7228
|
+
var Xe, ot, rt, at, st, Ue;
|
|
7229
7229
|
const {
|
|
7230
7230
|
__scopePopper: n,
|
|
7231
7231
|
side: o = "bottom",
|
|
@@ -7280,9 +7280,9 @@ var CONTENT_NAME$7 = "PopperContent", [PopperContentProvider, useContentContext]
|
|
|
7280
7280
|
useLayoutEffect2(() => {
|
|
7281
7281
|
ze && (Ge == null || Ge());
|
|
7282
7282
|
}, [ze, Ge]);
|
|
7283
|
-
const He = (Xe = Oe.arrow) == null ? void 0 : Xe.x, Ze = (
|
|
7283
|
+
const He = (Xe = Oe.arrow) == null ? void 0 : Xe.x, Ze = (ot = Oe.arrow) == null ? void 0 : ot.y, tt = ((rt = Oe.arrow) == null ? void 0 : rt.centerOffset) !== 0, [Ye, Qe] = React.useState();
|
|
7284
7284
|
return useLayoutEffect2(() => {
|
|
7285
|
-
O &&
|
|
7285
|
+
O && Qe(window.getComputedStyle(O).zIndex);
|
|
7286
7286
|
}, [O]), /* @__PURE__ */ jsx(
|
|
7287
7287
|
"div",
|
|
7288
7288
|
{
|
|
@@ -7295,7 +7295,7 @@ var CONTENT_NAME$7 = "PopperContent", [PopperContentProvider, useContentContext]
|
|
|
7295
7295
|
minWidth: "max-content",
|
|
7296
7296
|
zIndex: Ye,
|
|
7297
7297
|
"--radix-popper-transform-origin": [
|
|
7298
|
-
(
|
|
7298
|
+
(at = Oe.transformOrigin) == null ? void 0 : at.x,
|
|
7299
7299
|
(st = Oe.transformOrigin) == null ? void 0 : st.y
|
|
7300
7300
|
].join(" "),
|
|
7301
7301
|
// hide the content if using the hide middleware and should be hidden
|
|
@@ -7521,11 +7521,11 @@ var CONTENT_NAME$6 = "MenuContent", [MenuContentProvider, useMenuContentContext]
|
|
|
7521
7521
|
disableOutsideScroll: A,
|
|
7522
7522
|
...I
|
|
7523
7523
|
} = t, M = useMenuContext(CONTENT_NAME$6, n), O = useMenuRootContext(CONTENT_NAME$6, n), q = usePopperScope$3(n), z = useRovingFocusGroupScope$1(n), Q = useCollection$2(n), [j, F] = React.useState(null), te = React.useRef(null), ne = useComposedRefs(e, te, M.onContentChange), oe = React.useRef(0), ge = React.useRef(""), se = React.useRef(0), Ae = React.useRef(null), $e = React.useRef("right"), Ne = React.useRef(0), Ve = A ? ReactRemoveScroll : React.Fragment, je = A ? { as: Slot$2, allowPinchZoom: !0 } : void 0, ze = (Le) => {
|
|
7524
|
-
var Xe,
|
|
7525
|
-
const qe = ge.current + Le, Ge = Q().filter((
|
|
7526
|
-
(function
|
|
7527
|
-
ge.current =
|
|
7528
|
-
})(qe),
|
|
7524
|
+
var Xe, ot;
|
|
7525
|
+
const qe = ge.current + Le, Ge = Q().filter((rt) => !rt.disabled), He = document.activeElement, Ze = (Xe = Ge.find((rt) => rt.ref.current === He)) == null ? void 0 : Xe.textValue, tt = Ge.map((rt) => rt.textValue), Ye = getNextMatch(tt, qe, Ze), Qe = (ot = Ge.find((rt) => rt.textValue === Ye)) == null ? void 0 : ot.ref.current;
|
|
7526
|
+
(function rt(at) {
|
|
7527
|
+
ge.current = at, window.clearTimeout(oe.current), at !== "" && (oe.current = window.setTimeout(() => rt(""), 1e3));
|
|
7528
|
+
})(qe), Qe && setTimeout(() => Qe.focus());
|
|
7529
7529
|
};
|
|
7530
7530
|
React.useEffect(() => () => window.clearTimeout(oe.current), []), useFocusGuards();
|
|
7531
7531
|
const Oe = React.useCallback((Le) => {
|
|
@@ -7612,8 +7612,8 @@ var CONTENT_NAME$6 = "MenuContent", [MenuContentProvider, useMenuContentContext]
|
|
|
7612
7612
|
const tt = te.current;
|
|
7613
7613
|
if (Le.target !== tt || !FIRST_LAST_KEYS.includes(Le.key)) return;
|
|
7614
7614
|
Le.preventDefault();
|
|
7615
|
-
const
|
|
7616
|
-
LAST_KEYS.includes(Le.key) &&
|
|
7615
|
+
const Qe = Q().filter((Xe) => !Xe.disabled).map((Xe) => Xe.ref.current);
|
|
7616
|
+
LAST_KEYS.includes(Le.key) && Qe.reverse(), focusFirst$1(Qe);
|
|
7617
7617
|
}),
|
|
7618
7618
|
onBlur: composeEventHandlers(t.onBlur, (Le) => {
|
|
7619
7619
|
Le.currentTarget.contains(Le.target) || (window.clearTimeout(oe.current), ge.current = "");
|
|
@@ -12014,15 +12014,15 @@ You must add the middleware for RTK-Query to function correctly!`);
|
|
|
12014
12014
|
je = e(ze);
|
|
12015
12015
|
else {
|
|
12016
12016
|
const {
|
|
12017
|
-
direction:
|
|
12018
|
-
initialPageParam:
|
|
12017
|
+
direction: ot,
|
|
12018
|
+
initialPageParam: rt
|
|
12019
12019
|
} = Ae;
|
|
12020
12020
|
je = n({
|
|
12021
12021
|
...ze,
|
|
12022
12022
|
// Supply these even if undefined. This helps with a field existence
|
|
12023
12023
|
// check over in `buildSlice.ts`
|
|
12024
|
-
direction:
|
|
12025
|
-
initialPageParam:
|
|
12024
|
+
direction: ot,
|
|
12025
|
+
initialPageParam: rt
|
|
12026
12026
|
});
|
|
12027
12027
|
}
|
|
12028
12028
|
const Oe = l.endpoints[Q].select(te), Le = $e(je), qe = Oe(Ne());
|
|
@@ -12030,7 +12030,7 @@ You must add the middleware for RTK-Query to function correctly!`);
|
|
|
12030
12030
|
const {
|
|
12031
12031
|
requestId: Ge,
|
|
12032
12032
|
abort: He
|
|
12033
|
-
} = Le, Ze = qe.requestId !== Ge, tt = (Xe = f.get($e)) == null ? void 0 : Xe[Ve], Ye = () => Oe(Ne()),
|
|
12033
|
+
} = Le, Ze = qe.requestId !== Ge, tt = (Xe = f.get($e)) == null ? void 0 : Xe[Ve], Ye = () => Oe(Ne()), Qe = Object.assign(se ? (
|
|
12034
12034
|
// a query has been forced (upsertQueryData)
|
|
12035
12035
|
// -> we want to resolve it once data has been written with the data that will be written
|
|
12036
12036
|
Le.then(Ye)
|
|
@@ -12049,10 +12049,10 @@ You must add the middleware for RTK-Query to function correctly!`);
|
|
|
12049
12049
|
queryCacheKey: Ve,
|
|
12050
12050
|
abort: He,
|
|
12051
12051
|
async unwrap() {
|
|
12052
|
-
const
|
|
12053
|
-
if (
|
|
12054
|
-
throw
|
|
12055
|
-
return
|
|
12052
|
+
const ot = await Qe;
|
|
12053
|
+
if (ot.isError)
|
|
12054
|
+
throw ot.error;
|
|
12055
|
+
return ot.data;
|
|
12056
12056
|
},
|
|
12057
12057
|
refetch: () => $e(F(te, {
|
|
12058
12058
|
subscribe: !1,
|
|
@@ -12064,22 +12064,22 @@ You must add the middleware for RTK-Query to function correctly!`);
|
|
|
12064
12064
|
requestId: Ge
|
|
12065
12065
|
}));
|
|
12066
12066
|
},
|
|
12067
|
-
updateSubscriptionOptions(
|
|
12068
|
-
|
|
12067
|
+
updateSubscriptionOptions(ot) {
|
|
12068
|
+
Qe.subscriptionOptions = ot, $e(_({
|
|
12069
12069
|
endpointName: Q,
|
|
12070
12070
|
requestId: Ge,
|
|
12071
12071
|
queryCacheKey: Ve,
|
|
12072
|
-
options:
|
|
12072
|
+
options: ot
|
|
12073
12073
|
}));
|
|
12074
12074
|
}
|
|
12075
12075
|
});
|
|
12076
12076
|
if (!tt && !Ze && !se) {
|
|
12077
|
-
const
|
|
12078
|
-
|
|
12079
|
-
delete
|
|
12077
|
+
const ot = getOrInsert(f, $e, {});
|
|
12078
|
+
ot[Ve] = Qe, Qe.then(() => {
|
|
12079
|
+
delete ot[Ve], countObjectKeys$1(ot) || f.delete($e);
|
|
12080
12080
|
});
|
|
12081
12081
|
}
|
|
12082
|
-
return
|
|
12082
|
+
return Qe;
|
|
12083
12083
|
};
|
|
12084
12084
|
return F;
|
|
12085
12085
|
}
|
|
@@ -12249,26 +12249,26 @@ function buildThunks({
|
|
|
12249
12249
|
type: se.type,
|
|
12250
12250
|
forced: se.type === "query" ? O(se, ze()) : void 0,
|
|
12251
12251
|
queryCacheKey: se.type === "query" ? se.queryCacheKey : void 0
|
|
12252
|
-
},
|
|
12252
|
+
}, Qe = se.type === "query" ? se[forceQueryFnSymbol] : void 0;
|
|
12253
12253
|
let Xe;
|
|
12254
|
-
const
|
|
12255
|
-
if (st == null &&
|
|
12254
|
+
const ot = async (at, st, Ue, Rt) => {
|
|
12255
|
+
if (st == null && at.pages.length)
|
|
12256
12256
|
return Promise.resolve({
|
|
12257
|
-
data:
|
|
12257
|
+
data: at
|
|
12258
12258
|
});
|
|
12259
12259
|
const Je = {
|
|
12260
12260
|
queryArg: se.originalArgs,
|
|
12261
12261
|
pageParam: st
|
|
12262
|
-
}, yt = await
|
|
12262
|
+
}, yt = await rt(Je), Mt = Rt ? C : E;
|
|
12263
12263
|
return {
|
|
12264
12264
|
data: {
|
|
12265
|
-
pages: Mt(
|
|
12266
|
-
pageParams: Mt(
|
|
12265
|
+
pages: Mt(at.pages, yt.data, Ue),
|
|
12266
|
+
pageParams: Mt(at.pageParams, st, Ue)
|
|
12267
12267
|
},
|
|
12268
12268
|
meta: yt.meta
|
|
12269
12269
|
};
|
|
12270
12270
|
};
|
|
12271
|
-
async function
|
|
12271
|
+
async function rt(at) {
|
|
12272
12272
|
let st;
|
|
12273
12273
|
const {
|
|
12274
12274
|
extraOptions: Ue,
|
|
@@ -12276,13 +12276,13 @@ function buildThunks({
|
|
|
12276
12276
|
rawResponseSchema: Je,
|
|
12277
12277
|
responseSchema: yt
|
|
12278
12278
|
} = Le;
|
|
12279
|
-
if (Rt && !Ge && (
|
|
12279
|
+
if (Rt && !Ge && (at = await parseWithSchema(
|
|
12280
12280
|
Rt,
|
|
12281
|
-
|
|
12281
|
+
at,
|
|
12282
12282
|
"argSchema",
|
|
12283
12283
|
{}
|
|
12284
12284
|
// we don't have a meta yet, so we can't pass it
|
|
12285
|
-
)),
|
|
12285
|
+
)), Qe ? st = Qe() : Le.query ? st = await e(Le.query(at), Ye, Ue) : st = await Le.queryFn(at, Ye, Ue, (Ht) => e(Ht, Ye, Ue)), typeof process < "u" && process.env.NODE_ENV === "development") {
|
|
12286
12286
|
const Ht = Le.query ? "`baseQuery`" : "`queryFn`";
|
|
12287
12287
|
let Ft;
|
|
12288
12288
|
if (!st)
|
|
@@ -12309,7 +12309,7 @@ function buildThunks({
|
|
|
12309
12309
|
data: Mt
|
|
12310
12310
|
} = st;
|
|
12311
12311
|
Je && !Ge && (Mt = await parseWithSchema(Je, st.data, "rawResponseSchema", st.meta));
|
|
12312
|
-
let qt = await tt(Mt, st.meta,
|
|
12312
|
+
let qt = await tt(Mt, st.meta, at);
|
|
12313
12313
|
return yt && !Ge && (qt = await parseWithSchema(yt, qt, "responseSchema", st.meta)), {
|
|
12314
12314
|
...st,
|
|
12315
12315
|
data: qt
|
|
@@ -12317,33 +12317,33 @@ function buildThunks({
|
|
|
12317
12317
|
}
|
|
12318
12318
|
if (se.type === "query" && "infiniteQueryOptions" in Le) {
|
|
12319
12319
|
const {
|
|
12320
|
-
infiniteQueryOptions:
|
|
12320
|
+
infiniteQueryOptions: at
|
|
12321
12321
|
} = Le, {
|
|
12322
12322
|
maxPages: st = 1 / 0
|
|
12323
|
-
} =
|
|
12323
|
+
} = at;
|
|
12324
12324
|
let Ue;
|
|
12325
12325
|
const Rt = {
|
|
12326
12326
|
pages: [],
|
|
12327
12327
|
pageParams: []
|
|
12328
12328
|
}, Je = (He = f.selectQueryEntry(ze(), se.queryCacheKey)) == null ? void 0 : He.data, Mt = /* arg.forceRefetch */ O(se, ze()) && !se.direction || !Je ? Rt : Je;
|
|
12329
12329
|
if ("direction" in se && se.direction && Mt.pages.length) {
|
|
12330
|
-
const qt = se.direction === "backward", Ft = (qt ? getPreviousPageParam : getNextPageParam)(
|
|
12331
|
-
Ue = await
|
|
12330
|
+
const qt = se.direction === "backward", Ft = (qt ? getPreviousPageParam : getNextPageParam)(at, Mt, se.originalArgs);
|
|
12331
|
+
Ue = await ot(Mt, Ft, st, qt);
|
|
12332
12332
|
} else {
|
|
12333
12333
|
const {
|
|
12334
|
-
initialPageParam: qt =
|
|
12334
|
+
initialPageParam: qt = at.initialPageParam
|
|
12335
12335
|
} = se, Ht = (Je == null ? void 0 : Je.pageParams) ?? [], Ft = Ht[0] ?? qt, Ke = Ht.length;
|
|
12336
|
-
Ue = await
|
|
12336
|
+
Ue = await ot(Mt, Ft, st), Qe && (Ue = {
|
|
12337
12337
|
data: Ue.data.pages[0]
|
|
12338
12338
|
});
|
|
12339
|
-
for (let
|
|
12340
|
-
const
|
|
12341
|
-
Ue = await
|
|
12339
|
+
for (let it = 1; it < Ke; it++) {
|
|
12340
|
+
const et = getNextPageParam(at, Ue.data, se.originalArgs);
|
|
12341
|
+
Ue = await ot(Ue.data, et, st);
|
|
12342
12342
|
}
|
|
12343
12343
|
}
|
|
12344
12344
|
Xe = Ue;
|
|
12345
12345
|
} else
|
|
12346
|
-
Xe = await
|
|
12346
|
+
Xe = await rt(se.originalArgs);
|
|
12347
12347
|
return qe && !Ge && Xe.meta && (Xe.meta = await parseWithSchema(qe, Xe.meta, "metaSchema", Xe.meta)), Ve(Xe.data, addShouldAutoBatch({
|
|
12348
12348
|
fulfilledTimeStamp: Date.now(),
|
|
12349
12349
|
baseQueryMeta: Xe.meta
|
|
@@ -12351,20 +12351,20 @@ function buildThunks({
|
|
|
12351
12351
|
} catch (tt) {
|
|
12352
12352
|
let Ye = tt;
|
|
12353
12353
|
if (Ye instanceof HandledError) {
|
|
12354
|
-
let
|
|
12354
|
+
let Qe = I(Le, "transformErrorResponse");
|
|
12355
12355
|
const {
|
|
12356
12356
|
rawErrorResponseSchema: Xe,
|
|
12357
|
-
errorResponseSchema:
|
|
12357
|
+
errorResponseSchema: ot
|
|
12358
12358
|
} = Le;
|
|
12359
12359
|
let {
|
|
12360
|
-
value:
|
|
12361
|
-
meta:
|
|
12360
|
+
value: rt,
|
|
12361
|
+
meta: at
|
|
12362
12362
|
} = Ye;
|
|
12363
12363
|
try {
|
|
12364
|
-
Xe && !Ge && (
|
|
12365
|
-
let st = await rt
|
|
12366
|
-
return
|
|
12367
|
-
baseQueryMeta:
|
|
12364
|
+
Xe && !Ge && (rt = await parseWithSchema(Xe, rt, "rawErrorResponseSchema", at)), qe && !Ge && (at = await parseWithSchema(qe, at, "metaSchema", at));
|
|
12365
|
+
let st = await Qe(rt, at, se.originalArgs);
|
|
12366
|
+
return ot && !Ge && (st = await parseWithSchema(ot, st, "errorResponseSchema", at)), Ne(st, addShouldAutoBatch({
|
|
12367
|
+
baseQueryMeta: at
|
|
12368
12368
|
}));
|
|
12369
12369
|
} catch (st) {
|
|
12370
12370
|
Ye = st;
|
|
@@ -12372,23 +12372,23 @@ function buildThunks({
|
|
|
12372
12372
|
}
|
|
12373
12373
|
try {
|
|
12374
12374
|
if (Ye instanceof NamedSchemaError) {
|
|
12375
|
-
const
|
|
12375
|
+
const Qe = {
|
|
12376
12376
|
endpoint: se.endpointName,
|
|
12377
12377
|
arg: se.originalArgs,
|
|
12378
12378
|
type: se.type,
|
|
12379
12379
|
queryCacheKey: se.type === "query" ? se.queryCacheKey : void 0
|
|
12380
12380
|
};
|
|
12381
|
-
(Ze = Le.onSchemaFailure) == null || Ze.call(Le, Ye,
|
|
12381
|
+
(Ze = Le.onSchemaFailure) == null || Ze.call(Le, Ye, Qe), g == null || g(Ye, Qe);
|
|
12382
12382
|
const {
|
|
12383
12383
|
catchSchemaFailure: Xe = b
|
|
12384
12384
|
} = Le;
|
|
12385
12385
|
if (Xe)
|
|
12386
|
-
return Ne(Xe(Ye,
|
|
12386
|
+
return Ne(Xe(Ye, Qe), addShouldAutoBatch({
|
|
12387
12387
|
baseQueryMeta: Ye._bqMeta
|
|
12388
12388
|
}));
|
|
12389
12389
|
}
|
|
12390
|
-
} catch (
|
|
12391
|
-
Ye =
|
|
12390
|
+
} catch (Qe) {
|
|
12391
|
+
Ye = Qe;
|
|
12392
12392
|
}
|
|
12393
12393
|
throw typeof process < "u" && process.env.NODE_ENV !== "production" ? console.error(`An unhandled error occurred processing a request for the endpoint "${se.endpointName}".
|
|
12394
12394
|
In the case of an unhandled error, no tags will be "provided" or "invalidated".`, Ye) : console.error(Ye), Ye;
|
|
@@ -13789,21 +13789,21 @@ var coreModuleName = /* @__PURE__ */ Symbol(), coreModule = ({
|
|
|
13789
13789
|
getRunningQueriesThunk: Ze
|
|
13790
13790
|
}), {
|
|
13791
13791
|
name: coreModuleName,
|
|
13792
|
-
injectEndpoint(Ye,
|
|
13793
|
-
var
|
|
13794
|
-
const
|
|
13795
|
-
isQueryDefinition$1(
|
|
13792
|
+
injectEndpoint(Ye, Qe) {
|
|
13793
|
+
var rt;
|
|
13794
|
+
const ot = (rt = e.endpoints)[Ye] ?? (rt[Ye] = {});
|
|
13795
|
+
isQueryDefinition$1(Qe) && safeAssign$1(ot, {
|
|
13796
13796
|
name: Ye,
|
|
13797
|
-
select: z(Ye,
|
|
13798
|
-
initiate: Oe(Ye,
|
|
13799
|
-
}, $e(F, Ye)), isMutationDefinition$1(
|
|
13797
|
+
select: z(Ye, Qe),
|
|
13798
|
+
initiate: Oe(Ye, Qe)
|
|
13799
|
+
}, $e(F, Ye)), isMutationDefinition$1(Qe) && safeAssign$1(ot, {
|
|
13800
13800
|
name: Ye,
|
|
13801
13801
|
select: j(),
|
|
13802
13802
|
initiate: qe(Ye)
|
|
13803
|
-
}, $e(ne, Ye)), isInfiniteQueryDefinition$1(
|
|
13803
|
+
}, $e(ne, Ye)), isInfiniteQueryDefinition$1(Qe) && safeAssign$1(ot, {
|
|
13804
13804
|
name: Ye,
|
|
13805
|
-
select: Q(Ye,
|
|
13806
|
-
initiate: Le(Ye,
|
|
13805
|
+
select: Q(Ye, Qe),
|
|
13806
|
+
initiate: Le(Ye, Qe)
|
|
13807
13807
|
}, $e(F, Ye));
|
|
13808
13808
|
}
|
|
13809
13809
|
};
|
|
@@ -14271,18 +14271,18 @@ function buildHooks({
|
|
|
14271
14271
|
Ye == null || Ye.unsubscribe(), qe.current = void 0;
|
|
14272
14272
|
return;
|
|
14273
14273
|
}
|
|
14274
|
-
const
|
|
14274
|
+
const Qe = (Xe = qe.current) == null ? void 0 : Xe.subscriptionOptions;
|
|
14275
14275
|
if (!Ye || Ye.arg !== je) {
|
|
14276
14276
|
Ye == null || Ye.unsubscribe();
|
|
14277
|
-
const
|
|
14277
|
+
const ot = Ne($e(je, {
|
|
14278
14278
|
subscriptionOptions: ze,
|
|
14279
14279
|
forceRefetch: ne,
|
|
14280
14280
|
...isInfiniteQueryDefinition(b.endpointDefinitions[Q]) ? {
|
|
14281
14281
|
initialPageParam: Le
|
|
14282
14282
|
} : {}
|
|
14283
14283
|
}));
|
|
14284
|
-
qe.current =
|
|
14285
|
-
} else ze !==
|
|
14284
|
+
qe.current = ot;
|
|
14285
|
+
} else ze !== Qe && Ye.updateSubscriptionOptions(ze);
|
|
14286
14286
|
}, [Ne, $e, ne, je, ze, tt, Le, Q]), [qe, Ne, $e, ze];
|
|
14287
14287
|
}
|
|
14288
14288
|
function A(Q, j) {
|
|
@@ -18171,19 +18171,19 @@ function requireReactIs_development$2() {
|
|
|
18171
18171
|
function Ye(Je) {
|
|
18172
18172
|
return j(Je) === b;
|
|
18173
18173
|
}
|
|
18174
|
-
function
|
|
18174
|
+
function Qe(Je) {
|
|
18175
18175
|
return j(Je) === n;
|
|
18176
18176
|
}
|
|
18177
18177
|
function Xe(Je) {
|
|
18178
18178
|
return j(Je) === E;
|
|
18179
18179
|
}
|
|
18180
|
-
function
|
|
18180
|
+
function ot(Je) {
|
|
18181
18181
|
return j(Je) === C;
|
|
18182
18182
|
}
|
|
18183
|
-
function
|
|
18183
|
+
function rt(Je) {
|
|
18184
18184
|
return j(Je) === e;
|
|
18185
18185
|
}
|
|
18186
|
-
function
|
|
18186
|
+
function at(Je) {
|
|
18187
18187
|
return j(Je) === l;
|
|
18188
18188
|
}
|
|
18189
18189
|
function st(Je) {
|
|
@@ -18195,7 +18195,7 @@ function requireReactIs_development$2() {
|
|
|
18195
18195
|
function Rt(Je) {
|
|
18196
18196
|
return j(Je) === _;
|
|
18197
18197
|
}
|
|
18198
|
-
reactIs_development$2.ContextConsumer = F, reactIs_development$2.ContextProvider = te, reactIs_development$2.Element = ne, reactIs_development$2.ForwardRef = oe, reactIs_development$2.Fragment = ge, reactIs_development$2.Lazy = se, reactIs_development$2.Memo = Ae, reactIs_development$2.Portal = $e, reactIs_development$2.Profiler = Ne, reactIs_development$2.StrictMode = Ve, reactIs_development$2.Suspense = je, reactIs_development$2.SuspenseList = ze, reactIs_development$2.isAsyncMode = qe, reactIs_development$2.isConcurrentMode = Ge, reactIs_development$2.isContextConsumer = He, reactIs_development$2.isContextProvider = Ze, reactIs_development$2.isElement = tt, reactIs_development$2.isForwardRef = Ye, reactIs_development$2.isFragment =
|
|
18198
|
+
reactIs_development$2.ContextConsumer = F, reactIs_development$2.ContextProvider = te, reactIs_development$2.Element = ne, reactIs_development$2.ForwardRef = oe, reactIs_development$2.Fragment = ge, reactIs_development$2.Lazy = se, reactIs_development$2.Memo = Ae, reactIs_development$2.Portal = $e, reactIs_development$2.Profiler = Ne, reactIs_development$2.StrictMode = Ve, reactIs_development$2.Suspense = je, reactIs_development$2.SuspenseList = ze, reactIs_development$2.isAsyncMode = qe, reactIs_development$2.isConcurrentMode = Ge, reactIs_development$2.isContextConsumer = He, reactIs_development$2.isContextProvider = Ze, reactIs_development$2.isElement = tt, reactIs_development$2.isForwardRef = Ye, reactIs_development$2.isFragment = Qe, reactIs_development$2.isLazy = Xe, reactIs_development$2.isMemo = ot, reactIs_development$2.isPortal = rt, reactIs_development$2.isProfiler = at, reactIs_development$2.isStrictMode = st, reactIs_development$2.isSuspense = Ue, reactIs_development$2.isSuspenseList = Rt, reactIs_development$2.isValidElementType = Q, reactIs_development$2.typeOf = j;
|
|
18199
18199
|
}()), reactIs_development$2;
|
|
18200
18200
|
}
|
|
18201
18201
|
var hasRequiredReactIs$2;
|
|
@@ -24358,7 +24358,7 @@ function formatLocale(t) {
|
|
|
24358
24358
|
a: Ze,
|
|
24359
24359
|
A: tt,
|
|
24360
24360
|
b: Ye,
|
|
24361
|
-
B:
|
|
24361
|
+
B: Qe,
|
|
24362
24362
|
c: null,
|
|
24363
24363
|
d: formatUTCDayOfMonth,
|
|
24364
24364
|
e: formatUTCDayOfMonth,
|
|
@@ -24372,7 +24372,7 @@ function formatLocale(t) {
|
|
|
24372
24372
|
m: formatUTCMonthNumber,
|
|
24373
24373
|
M: formatUTCMinutes,
|
|
24374
24374
|
p: Xe,
|
|
24375
|
-
q:
|
|
24375
|
+
q: ot,
|
|
24376
24376
|
Q: formatUnixTimestamp,
|
|
24377
24377
|
s: formatUnixTimestampSeconds,
|
|
24378
24378
|
S: formatUTCSeconds,
|
|
@@ -24422,126 +24422,126 @@ function formatLocale(t) {
|
|
|
24422
24422
|
"%": parseLiteralPercent
|
|
24423
24423
|
};
|
|
24424
24424
|
z.x = F(n, z), z.X = F(o, z), z.c = F(e, z), Q.x = F(n, Q), Q.X = F(o, Q), Q.c = F(e, Q);
|
|
24425
|
-
function F(
|
|
24425
|
+
function F(rt, at) {
|
|
24426
24426
|
return function(st) {
|
|
24427
|
-
var Ue = [], Rt = -1, Je = 0, yt =
|
|
24427
|
+
var Ue = [], Rt = -1, Je = 0, yt = rt.length, Mt, qt, Ht;
|
|
24428
24428
|
for (st instanceof Date || (st = /* @__PURE__ */ new Date(+st)); ++Rt < yt; )
|
|
24429
|
-
|
|
24430
|
-
return Ue.push(
|
|
24429
|
+
rt.charCodeAt(Rt) === 37 && (Ue.push(rt.slice(Je, Rt)), (qt = pads[Mt = rt.charAt(++Rt)]) != null ? Mt = rt.charAt(++Rt) : qt = Mt === "e" ? " " : "0", (Ht = at[Mt]) && (Mt = Ht(st, qt)), Ue.push(Mt), Je = Rt + 1);
|
|
24430
|
+
return Ue.push(rt.slice(Je, Rt)), Ue.join("");
|
|
24431
24431
|
};
|
|
24432
24432
|
}
|
|
24433
|
-
function te(
|
|
24433
|
+
function te(rt, at) {
|
|
24434
24434
|
return function(st) {
|
|
24435
|
-
var Ue = newDate(1900, void 0, 1), Rt = ne(Ue,
|
|
24435
|
+
var Ue = newDate(1900, void 0, 1), Rt = ne(Ue, rt, st += "", 0), Je, yt;
|
|
24436
24436
|
if (Rt != st.length) return null;
|
|
24437
24437
|
if ("Q" in Ue) return new Date(Ue.Q);
|
|
24438
24438
|
if ("s" in Ue) return new Date(Ue.s * 1e3 + ("L" in Ue ? Ue.L : 0));
|
|
24439
|
-
if (
|
|
24439
|
+
if (at && !("Z" in Ue) && (Ue.Z = 0), "p" in Ue && (Ue.H = Ue.H % 12 + Ue.p * 12), Ue.m === void 0 && (Ue.m = "q" in Ue ? Ue.q : 0), "V" in Ue) {
|
|
24440
24440
|
if (Ue.V < 1 || Ue.V > 53) return null;
|
|
24441
24441
|
"w" in Ue || (Ue.w = 1), "Z" in Ue ? (Je = utcDate(newDate(Ue.y, 0, 1)), yt = Je.getUTCDay(), Je = yt > 4 || yt === 0 ? utcMonday.ceil(Je) : utcMonday(Je), Je = utcDay.offset(Je, (Ue.V - 1) * 7), Ue.y = Je.getUTCFullYear(), Ue.m = Je.getUTCMonth(), Ue.d = Je.getUTCDate() + (Ue.w + 6) % 7) : (Je = localDate(newDate(Ue.y, 0, 1)), yt = Je.getDay(), Je = yt > 4 || yt === 0 ? timeMonday.ceil(Je) : timeMonday(Je), Je = timeDay.offset(Je, (Ue.V - 1) * 7), Ue.y = Je.getFullYear(), Ue.m = Je.getMonth(), Ue.d = Je.getDate() + (Ue.w + 6) % 7);
|
|
24442
24442
|
} else ("W" in Ue || "U" in Ue) && ("w" in Ue || (Ue.w = "u" in Ue ? Ue.u % 7 : "W" in Ue ? 1 : 0), yt = "Z" in Ue ? utcDate(newDate(Ue.y, 0, 1)).getUTCDay() : localDate(newDate(Ue.y, 0, 1)).getDay(), Ue.m = 0, Ue.d = "W" in Ue ? (Ue.w + 6) % 7 + Ue.W * 7 - (yt + 5) % 7 : Ue.w + Ue.U * 7 - (yt + 6) % 7);
|
|
24443
24443
|
return "Z" in Ue ? (Ue.H += Ue.Z / 100 | 0, Ue.M += Ue.Z % 100, utcDate(Ue)) : localDate(Ue);
|
|
24444
24444
|
};
|
|
24445
24445
|
}
|
|
24446
|
-
function ne(
|
|
24447
|
-
for (var Rt = 0, Je =
|
|
24446
|
+
function ne(rt, at, st, Ue) {
|
|
24447
|
+
for (var Rt = 0, Je = at.length, yt = st.length, Mt, qt; Rt < Je; ) {
|
|
24448
24448
|
if (Ue >= yt) return -1;
|
|
24449
|
-
if (Mt =
|
|
24450
|
-
if (Mt =
|
|
24449
|
+
if (Mt = at.charCodeAt(Rt++), Mt === 37) {
|
|
24450
|
+
if (Mt = at.charAt(Rt++), qt = j[Mt in pads ? at.charAt(Rt++) : Mt], !qt || (Ue = qt(rt, st, Ue)) < 0) return -1;
|
|
24451
24451
|
} else if (Mt != st.charCodeAt(Ue++))
|
|
24452
24452
|
return -1;
|
|
24453
24453
|
}
|
|
24454
24454
|
return Ue;
|
|
24455
24455
|
}
|
|
24456
|
-
function oe(
|
|
24457
|
-
var Ue = S.exec(
|
|
24458
|
-
return Ue ? (
|
|
24456
|
+
function oe(rt, at, st) {
|
|
24457
|
+
var Ue = S.exec(at.slice(st));
|
|
24458
|
+
return Ue ? (rt.p = _.get(Ue[0].toLowerCase()), st + Ue[0].length) : -1;
|
|
24459
24459
|
}
|
|
24460
|
-
function ge(
|
|
24461
|
-
var Ue = R.exec(
|
|
24462
|
-
return Ue ? (
|
|
24460
|
+
function ge(rt, at, st) {
|
|
24461
|
+
var Ue = R.exec(at.slice(st));
|
|
24462
|
+
return Ue ? (rt.w = A.get(Ue[0].toLowerCase()), st + Ue[0].length) : -1;
|
|
24463
24463
|
}
|
|
24464
|
-
function se(
|
|
24465
|
-
var Ue = C.exec(
|
|
24466
|
-
return Ue ? (
|
|
24464
|
+
function se(rt, at, st) {
|
|
24465
|
+
var Ue = C.exec(at.slice(st));
|
|
24466
|
+
return Ue ? (rt.w = E.get(Ue[0].toLowerCase()), st + Ue[0].length) : -1;
|
|
24467
24467
|
}
|
|
24468
|
-
function Ae(
|
|
24469
|
-
var Ue = O.exec(
|
|
24470
|
-
return Ue ? (
|
|
24468
|
+
function Ae(rt, at, st) {
|
|
24469
|
+
var Ue = O.exec(at.slice(st));
|
|
24470
|
+
return Ue ? (rt.m = q.get(Ue[0].toLowerCase()), st + Ue[0].length) : -1;
|
|
24471
24471
|
}
|
|
24472
|
-
function $e(
|
|
24473
|
-
var Ue = I.exec(
|
|
24474
|
-
return Ue ? (
|
|
24472
|
+
function $e(rt, at, st) {
|
|
24473
|
+
var Ue = I.exec(at.slice(st));
|
|
24474
|
+
return Ue ? (rt.m = M.get(Ue[0].toLowerCase()), st + Ue[0].length) : -1;
|
|
24475
24475
|
}
|
|
24476
|
-
function Ne(
|
|
24477
|
-
return ne(
|
|
24476
|
+
function Ne(rt, at, st) {
|
|
24477
|
+
return ne(rt, e, at, st);
|
|
24478
24478
|
}
|
|
24479
|
-
function Ve(
|
|
24480
|
-
return ne(
|
|
24479
|
+
function Ve(rt, at, st) {
|
|
24480
|
+
return ne(rt, n, at, st);
|
|
24481
24481
|
}
|
|
24482
|
-
function je(
|
|
24483
|
-
return ne(
|
|
24482
|
+
function je(rt, at, st) {
|
|
24483
|
+
return ne(rt, o, at, st);
|
|
24484
24484
|
}
|
|
24485
|
-
function ze(
|
|
24486
|
-
return f[
|
|
24485
|
+
function ze(rt) {
|
|
24486
|
+
return f[rt.getDay()];
|
|
24487
24487
|
}
|
|
24488
|
-
function Oe(
|
|
24489
|
-
return d[
|
|
24488
|
+
function Oe(rt) {
|
|
24489
|
+
return d[rt.getDay()];
|
|
24490
24490
|
}
|
|
24491
|
-
function Le(
|
|
24492
|
-
return b[
|
|
24491
|
+
function Le(rt) {
|
|
24492
|
+
return b[rt.getMonth()];
|
|
24493
24493
|
}
|
|
24494
|
-
function qe(
|
|
24495
|
-
return g[
|
|
24494
|
+
function qe(rt) {
|
|
24495
|
+
return g[rt.getMonth()];
|
|
24496
24496
|
}
|
|
24497
|
-
function Ge(
|
|
24498
|
-
return l[+(
|
|
24497
|
+
function Ge(rt) {
|
|
24498
|
+
return l[+(rt.getHours() >= 12)];
|
|
24499
24499
|
}
|
|
24500
|
-
function He(
|
|
24501
|
-
return 1 + ~~(
|
|
24500
|
+
function He(rt) {
|
|
24501
|
+
return 1 + ~~(rt.getMonth() / 3);
|
|
24502
24502
|
}
|
|
24503
|
-
function Ze(
|
|
24504
|
-
return f[
|
|
24503
|
+
function Ze(rt) {
|
|
24504
|
+
return f[rt.getUTCDay()];
|
|
24505
24505
|
}
|
|
24506
|
-
function tt(
|
|
24507
|
-
return d[
|
|
24506
|
+
function tt(rt) {
|
|
24507
|
+
return d[rt.getUTCDay()];
|
|
24508
24508
|
}
|
|
24509
|
-
function Ye(
|
|
24510
|
-
return b[
|
|
24509
|
+
function Ye(rt) {
|
|
24510
|
+
return b[rt.getUTCMonth()];
|
|
24511
24511
|
}
|
|
24512
|
-
function rt
|
|
24513
|
-
return g[
|
|
24512
|
+
function Qe(rt) {
|
|
24513
|
+
return g[rt.getUTCMonth()];
|
|
24514
24514
|
}
|
|
24515
|
-
function Xe(
|
|
24516
|
-
return l[+(
|
|
24515
|
+
function Xe(rt) {
|
|
24516
|
+
return l[+(rt.getUTCHours() >= 12)];
|
|
24517
24517
|
}
|
|
24518
|
-
function
|
|
24519
|
-
return 1 + ~~(
|
|
24518
|
+
function ot(rt) {
|
|
24519
|
+
return 1 + ~~(rt.getUTCMonth() / 3);
|
|
24520
24520
|
}
|
|
24521
24521
|
return {
|
|
24522
|
-
format: function(
|
|
24523
|
-
var
|
|
24524
|
-
return
|
|
24525
|
-
return
|
|
24526
|
-
},
|
|
24522
|
+
format: function(rt) {
|
|
24523
|
+
var at = F(rt += "", z);
|
|
24524
|
+
return at.toString = function() {
|
|
24525
|
+
return rt;
|
|
24526
|
+
}, at;
|
|
24527
24527
|
},
|
|
24528
|
-
parse: function(
|
|
24529
|
-
var
|
|
24530
|
-
return
|
|
24531
|
-
return
|
|
24532
|
-
},
|
|
24528
|
+
parse: function(rt) {
|
|
24529
|
+
var at = te(rt += "", !1);
|
|
24530
|
+
return at.toString = function() {
|
|
24531
|
+
return rt;
|
|
24532
|
+
}, at;
|
|
24533
24533
|
},
|
|
24534
|
-
utcFormat: function(
|
|
24535
|
-
var
|
|
24536
|
-
return
|
|
24537
|
-
return
|
|
24538
|
-
},
|
|
24534
|
+
utcFormat: function(rt) {
|
|
24535
|
+
var at = F(rt += "", Q);
|
|
24536
|
+
return at.toString = function() {
|
|
24537
|
+
return rt;
|
|
24538
|
+
}, at;
|
|
24539
24539
|
},
|
|
24540
|
-
utcParse: function(
|
|
24541
|
-
var
|
|
24542
|
-
return
|
|
24543
|
-
return
|
|
24544
|
-
},
|
|
24540
|
+
utcParse: function(rt) {
|
|
24541
|
+
var at = te(rt += "", !0);
|
|
24542
|
+
return at.toString = function() {
|
|
24543
|
+
return rt;
|
|
24544
|
+
}, at;
|
|
24545
24545
|
}
|
|
24546
24546
|
};
|
|
24547
24547
|
}
|
|
@@ -27764,25 +27764,25 @@ function requireReactIs_development$1() {
|
|
|
27764
27764
|
function Ye(Ue) {
|
|
27765
27765
|
return Q(Ue) === o;
|
|
27766
27766
|
}
|
|
27767
|
-
function
|
|
27767
|
+
function Qe(Ue) {
|
|
27768
27768
|
return Q(Ue) === A;
|
|
27769
27769
|
}
|
|
27770
27770
|
function Xe(Ue) {
|
|
27771
27771
|
return Q(Ue) === R;
|
|
27772
27772
|
}
|
|
27773
|
-
function
|
|
27773
|
+
function ot(Ue) {
|
|
27774
27774
|
return Q(Ue) === n;
|
|
27775
27775
|
}
|
|
27776
|
-
function
|
|
27776
|
+
function rt(Ue) {
|
|
27777
27777
|
return Q(Ue) === d;
|
|
27778
27778
|
}
|
|
27779
|
-
function
|
|
27779
|
+
function at(Ue) {
|
|
27780
27780
|
return Q(Ue) === l;
|
|
27781
27781
|
}
|
|
27782
27782
|
function st(Ue) {
|
|
27783
27783
|
return Q(Ue) === C;
|
|
27784
27784
|
}
|
|
27785
|
-
reactIs_development$1.AsyncMode = j, reactIs_development$1.ConcurrentMode = F, reactIs_development$1.ContextConsumer = te, reactIs_development$1.ContextProvider = ne, reactIs_development$1.Element = oe, reactIs_development$1.ForwardRef = ge, reactIs_development$1.Fragment = se, reactIs_development$1.Lazy = Ae, reactIs_development$1.Memo = $e, reactIs_development$1.Portal = Ne, reactIs_development$1.Profiler = Ve, reactIs_development$1.StrictMode = je, reactIs_development$1.Suspense = ze, reactIs_development$1.isAsyncMode = Le, reactIs_development$1.isConcurrentMode = qe, reactIs_development$1.isContextConsumer = Ge, reactIs_development$1.isContextProvider = He, reactIs_development$1.isElement = Ze, reactIs_development$1.isForwardRef = tt, reactIs_development$1.isFragment = Ye, reactIs_development$1.isLazy =
|
|
27785
|
+
reactIs_development$1.AsyncMode = j, reactIs_development$1.ConcurrentMode = F, reactIs_development$1.ContextConsumer = te, reactIs_development$1.ContextProvider = ne, reactIs_development$1.Element = oe, reactIs_development$1.ForwardRef = ge, reactIs_development$1.Fragment = se, reactIs_development$1.Lazy = Ae, reactIs_development$1.Memo = $e, reactIs_development$1.Portal = Ne, reactIs_development$1.Profiler = Ve, reactIs_development$1.StrictMode = je, reactIs_development$1.Suspense = ze, reactIs_development$1.isAsyncMode = Le, reactIs_development$1.isConcurrentMode = qe, reactIs_development$1.isContextConsumer = Ge, reactIs_development$1.isContextProvider = He, reactIs_development$1.isElement = Ze, reactIs_development$1.isForwardRef = tt, reactIs_development$1.isFragment = Ye, reactIs_development$1.isLazy = Qe, reactIs_development$1.isMemo = Xe, reactIs_development$1.isPortal = ot, reactIs_development$1.isProfiler = rt, reactIs_development$1.isStrictMode = at, reactIs_development$1.isSuspense = st, reactIs_development$1.isValidElementType = z, reactIs_development$1.typeOf = Q;
|
|
27786
27786
|
}()), reactIs_development$1;
|
|
27787
27787
|
}
|
|
27788
27788
|
var hasRequiredReactIs$1;
|
|
@@ -27955,33 +27955,33 @@ function requireFactoryWithTypeCheckers() {
|
|
|
27955
27955
|
function M(qe) {
|
|
27956
27956
|
if (process.env.NODE_ENV !== "production")
|
|
27957
27957
|
var Ge = {}, He = 0;
|
|
27958
|
-
function Ze(Ye,
|
|
27959
|
-
if (
|
|
27958
|
+
function Ze(Ye, Qe, Xe, ot, rt, at, st) {
|
|
27959
|
+
if (ot = ot || E, at = at || Xe, st !== n) {
|
|
27960
27960
|
if (b) {
|
|
27961
27961
|
var Ue = new Error(
|
|
27962
27962
|
"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"
|
|
27963
27963
|
);
|
|
27964
27964
|
throw Ue.name = "Invariant Violation", Ue;
|
|
27965
27965
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
27966
|
-
var Rt =
|
|
27966
|
+
var Rt = ot + ":" + Xe;
|
|
27967
27967
|
!Ge[Rt] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
27968
27968
|
He < 3 && (d(
|
|
27969
|
-
"You are manually calling a React.PropTypes validation function for the `" +
|
|
27969
|
+
"You are manually calling a React.PropTypes validation function for the `" + at + "` prop on `" + ot + "`. 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."
|
|
27970
27970
|
), Ge[Rt] = !0, He++);
|
|
27971
27971
|
}
|
|
27972
27972
|
}
|
|
27973
|
-
return
|
|
27973
|
+
return Qe[Xe] == null ? Ye ? Qe[Xe] === null ? new I("The " + rt + " `" + at + "` is marked as required " + ("in `" + ot + "`, but its value is `null`.")) : new I("The " + rt + " `" + at + "` is marked as required in " + ("`" + ot + "`, but its value is `undefined`.")) : null : qe(Qe, Xe, ot, rt, at);
|
|
27974
27974
|
}
|
|
27975
27975
|
var tt = Ze.bind(null, !1);
|
|
27976
27976
|
return tt.isRequired = Ze.bind(null, !0), tt;
|
|
27977
27977
|
}
|
|
27978
27978
|
function O(qe) {
|
|
27979
|
-
function Ge(He, Ze, tt, Ye,
|
|
27980
|
-
var
|
|
27981
|
-
if (
|
|
27982
|
-
var
|
|
27979
|
+
function Ge(He, Ze, tt, Ye, Qe, Xe) {
|
|
27980
|
+
var ot = He[Ze], rt = je(ot);
|
|
27981
|
+
if (rt !== qe) {
|
|
27982
|
+
var at = ze(ot);
|
|
27983
27983
|
return new I(
|
|
27984
|
-
"Invalid " + Ye + " `" +
|
|
27984
|
+
"Invalid " + Ye + " `" + Qe + "` of type " + ("`" + at + "` supplied to `" + tt + "`, expected ") + ("`" + qe + "`."),
|
|
27985
27985
|
{ expectedType: qe }
|
|
27986
27986
|
);
|
|
27987
27987
|
}
|
|
@@ -27993,18 +27993,18 @@ function requireFactoryWithTypeCheckers() {
|
|
|
27993
27993
|
return M(f);
|
|
27994
27994
|
}
|
|
27995
27995
|
function z(qe) {
|
|
27996
|
-
function Ge(He, Ze, tt, Ye,
|
|
27996
|
+
function Ge(He, Ze, tt, Ye, Qe) {
|
|
27997
27997
|
if (typeof qe != "function")
|
|
27998
|
-
return new I("Property `" +
|
|
27998
|
+
return new I("Property `" + Qe + "` of component `" + tt + "` has invalid PropType notation inside arrayOf.");
|
|
27999
27999
|
var Xe = He[Ze];
|
|
28000
28000
|
if (!Array.isArray(Xe)) {
|
|
28001
|
-
var
|
|
28002
|
-
return new I("Invalid " + Ye + " `" +
|
|
28001
|
+
var ot = je(Xe);
|
|
28002
|
+
return new I("Invalid " + Ye + " `" + Qe + "` of type " + ("`" + ot + "` supplied to `" + tt + "`, expected an array."));
|
|
28003
28003
|
}
|
|
28004
|
-
for (var
|
|
28005
|
-
var
|
|
28006
|
-
if (
|
|
28007
|
-
return
|
|
28004
|
+
for (var rt = 0; rt < Xe.length; rt++) {
|
|
28005
|
+
var at = qe(Xe, rt, tt, Ye, Qe + "[" + rt + "]", n);
|
|
28006
|
+
if (at instanceof Error)
|
|
28007
|
+
return at;
|
|
28008
28008
|
}
|
|
28009
28009
|
return null;
|
|
28010
28010
|
}
|
|
@@ -28012,9 +28012,9 @@ function requireFactoryWithTypeCheckers() {
|
|
|
28012
28012
|
}
|
|
28013
28013
|
function Q() {
|
|
28014
28014
|
function qe(Ge, He, Ze, tt, Ye) {
|
|
28015
|
-
var
|
|
28016
|
-
if (!g(
|
|
28017
|
-
var Xe = je(
|
|
28015
|
+
var Qe = Ge[He];
|
|
28016
|
+
if (!g(Qe)) {
|
|
28017
|
+
var Xe = je(Qe);
|
|
28018
28018
|
return new I("Invalid " + tt + " `" + Ye + "` of type " + ("`" + Xe + "` supplied to `" + Ze + "`, expected a single ReactElement."));
|
|
28019
28019
|
}
|
|
28020
28020
|
return null;
|
|
@@ -28023,9 +28023,9 @@ function requireFactoryWithTypeCheckers() {
|
|
|
28023
28023
|
}
|
|
28024
28024
|
function j() {
|
|
28025
28025
|
function qe(Ge, He, Ze, tt, Ye) {
|
|
28026
|
-
var
|
|
28027
|
-
if (!t.isValidElementType(
|
|
28028
|
-
var Xe = je(
|
|
28026
|
+
var Qe = Ge[He];
|
|
28027
|
+
if (!t.isValidElementType(Qe)) {
|
|
28028
|
+
var Xe = je(Qe);
|
|
28029
28029
|
return new I("Invalid " + tt + " `" + Ye + "` of type " + ("`" + Xe + "` supplied to `" + Ze + "`, expected a single ReactElement type."));
|
|
28030
28030
|
}
|
|
28031
28031
|
return null;
|
|
@@ -28033,10 +28033,10 @@ function requireFactoryWithTypeCheckers() {
|
|
|
28033
28033
|
return M(qe);
|
|
28034
28034
|
}
|
|
28035
28035
|
function F(qe) {
|
|
28036
|
-
function Ge(He, Ze, tt, Ye,
|
|
28036
|
+
function Ge(He, Ze, tt, Ye, Qe) {
|
|
28037
28037
|
if (!(He[Ze] instanceof qe)) {
|
|
28038
|
-
var Xe = qe.name || E,
|
|
28039
|
-
return new I("Invalid " + Ye + " `" +
|
|
28038
|
+
var Xe = qe.name || E, ot = Le(He[Ze]);
|
|
28039
|
+
return new I("Invalid " + Ye + " `" + Qe + "` of type " + ("`" + ot + "` supplied to `" + tt + "`, expected ") + ("instance of `" + Xe + "`."));
|
|
28040
28040
|
}
|
|
28041
28041
|
return null;
|
|
28042
28042
|
}
|
|
@@ -28047,30 +28047,30 @@ function requireFactoryWithTypeCheckers() {
|
|
|
28047
28047
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? d(
|
|
28048
28048
|
"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])."
|
|
28049
28049
|
) : d("Invalid argument supplied to oneOf, expected an array.")), f;
|
|
28050
|
-
function Ge(He, Ze, tt, Ye,
|
|
28051
|
-
for (var Xe = He[Ze],
|
|
28052
|
-
if (A(Xe, qe[
|
|
28050
|
+
function Ge(He, Ze, tt, Ye, Qe) {
|
|
28051
|
+
for (var Xe = He[Ze], ot = 0; ot < qe.length; ot++)
|
|
28052
|
+
if (A(Xe, qe[ot]))
|
|
28053
28053
|
return null;
|
|
28054
|
-
var
|
|
28054
|
+
var rt = JSON.stringify(qe, function(st, Ue) {
|
|
28055
28055
|
var Rt = ze(Ue);
|
|
28056
28056
|
return Rt === "symbol" ? String(Ue) : Ue;
|
|
28057
28057
|
});
|
|
28058
|
-
return new I("Invalid " + Ye + " `" +
|
|
28058
|
+
return new I("Invalid " + Ye + " `" + Qe + "` of value `" + String(Xe) + "` " + ("supplied to `" + tt + "`, expected one of " + rt + "."));
|
|
28059
28059
|
}
|
|
28060
28060
|
return M(Ge);
|
|
28061
28061
|
}
|
|
28062
28062
|
function ne(qe) {
|
|
28063
|
-
function Ge(He, Ze, tt, Ye,
|
|
28063
|
+
function Ge(He, Ze, tt, Ye, Qe) {
|
|
28064
28064
|
if (typeof qe != "function")
|
|
28065
|
-
return new I("Property `" +
|
|
28066
|
-
var Xe = He[Ze],
|
|
28067
|
-
if (
|
|
28068
|
-
return new I("Invalid " + Ye + " `" +
|
|
28069
|
-
for (var
|
|
28070
|
-
if (o(Xe,
|
|
28071
|
-
var
|
|
28072
|
-
if (
|
|
28073
|
-
return
|
|
28065
|
+
return new I("Property `" + Qe + "` of component `" + tt + "` has invalid PropType notation inside objectOf.");
|
|
28066
|
+
var Xe = He[Ze], ot = je(Xe);
|
|
28067
|
+
if (ot !== "object")
|
|
28068
|
+
return new I("Invalid " + Ye + " `" + Qe + "` of type " + ("`" + ot + "` supplied to `" + tt + "`, expected an object."));
|
|
28069
|
+
for (var rt in Xe)
|
|
28070
|
+
if (o(Xe, rt)) {
|
|
28071
|
+
var at = qe(Xe, rt, tt, Ye, Qe + "." + rt, n);
|
|
28072
|
+
if (at instanceof Error)
|
|
28073
|
+
return at;
|
|
28074
28074
|
}
|
|
28075
28075
|
return null;
|
|
28076
28076
|
}
|
|
@@ -28086,15 +28086,15 @@ function requireFactoryWithTypeCheckers() {
|
|
|
28086
28086
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + Oe(He) + " at index " + Ge + "."
|
|
28087
28087
|
), f;
|
|
28088
28088
|
}
|
|
28089
|
-
function Ze(tt, Ye,
|
|
28090
|
-
for (var
|
|
28091
|
-
var st = qe[
|
|
28089
|
+
function Ze(tt, Ye, Qe, Xe, ot) {
|
|
28090
|
+
for (var rt = [], at = 0; at < qe.length; at++) {
|
|
28091
|
+
var st = qe[at], Ue = st(tt, Ye, Qe, Xe, ot, n);
|
|
28092
28092
|
if (Ue == null)
|
|
28093
28093
|
return null;
|
|
28094
|
-
Ue.data && o(Ue.data, "expectedType") &&
|
|
28094
|
+
Ue.data && o(Ue.data, "expectedType") && rt.push(Ue.data.expectedType);
|
|
28095
28095
|
}
|
|
28096
|
-
var Rt =
|
|
28097
|
-
return new I("Invalid " + Xe + " `" +
|
|
28096
|
+
var Rt = rt.length > 0 ? ", expected one of type [" + rt.join(", ") + "]" : "";
|
|
28097
|
+
return new I("Invalid " + Xe + " `" + ot + "` supplied to " + ("`" + Qe + "`" + Rt + "."));
|
|
28098
28098
|
}
|
|
28099
28099
|
return M(Ze);
|
|
28100
28100
|
}
|
|
@@ -28110,15 +28110,15 @@ function requireFactoryWithTypeCheckers() {
|
|
|
28110
28110
|
);
|
|
28111
28111
|
}
|
|
28112
28112
|
function Ae(qe) {
|
|
28113
|
-
function Ge(He, Ze, tt, Ye,
|
|
28114
|
-
var Xe = He[Ze],
|
|
28115
|
-
if (
|
|
28116
|
-
return new I("Invalid " + Ye + " `" +
|
|
28117
|
-
for (var
|
|
28118
|
-
var
|
|
28119
|
-
if (typeof
|
|
28120
|
-
return se(tt, Ye,
|
|
28121
|
-
var st =
|
|
28113
|
+
function Ge(He, Ze, tt, Ye, Qe) {
|
|
28114
|
+
var Xe = He[Ze], ot = je(Xe);
|
|
28115
|
+
if (ot !== "object")
|
|
28116
|
+
return new I("Invalid " + Ye + " `" + Qe + "` of type `" + ot + "` " + ("supplied to `" + tt + "`, expected `object`."));
|
|
28117
|
+
for (var rt in qe) {
|
|
28118
|
+
var at = qe[rt];
|
|
28119
|
+
if (typeof at != "function")
|
|
28120
|
+
return se(tt, Ye, Qe, rt, ze(at));
|
|
28121
|
+
var st = at(Xe, rt, tt, Ye, Qe + "." + rt, n);
|
|
28122
28122
|
if (st)
|
|
28123
28123
|
return st;
|
|
28124
28124
|
}
|
|
@@ -28127,21 +28127,21 @@ function requireFactoryWithTypeCheckers() {
|
|
|
28127
28127
|
return M(Ge);
|
|
28128
28128
|
}
|
|
28129
28129
|
function $e(qe) {
|
|
28130
|
-
function Ge(He, Ze, tt, Ye,
|
|
28131
|
-
var Xe = He[Ze],
|
|
28132
|
-
if (
|
|
28133
|
-
return new I("Invalid " + Ye + " `" +
|
|
28134
|
-
var
|
|
28135
|
-
for (var
|
|
28136
|
-
var st = qe[
|
|
28137
|
-
if (o(qe,
|
|
28138
|
-
return se(tt, Ye,
|
|
28130
|
+
function Ge(He, Ze, tt, Ye, Qe) {
|
|
28131
|
+
var Xe = He[Ze], ot = je(Xe);
|
|
28132
|
+
if (ot !== "object")
|
|
28133
|
+
return new I("Invalid " + Ye + " `" + Qe + "` of type `" + ot + "` " + ("supplied to `" + tt + "`, expected `object`."));
|
|
28134
|
+
var rt = e({}, He[Ze], qe);
|
|
28135
|
+
for (var at in rt) {
|
|
28136
|
+
var st = qe[at];
|
|
28137
|
+
if (o(qe, at) && typeof st != "function")
|
|
28138
|
+
return se(tt, Ye, Qe, at, ze(st));
|
|
28139
28139
|
if (!st)
|
|
28140
28140
|
return new I(
|
|
28141
|
-
"Invalid " + Ye + " `" +
|
|
28141
|
+
"Invalid " + Ye + " `" + Qe + "` key `" + at + "` supplied to `" + tt + "`.\nBad object: " + JSON.stringify(He[Ze], null, " ") + `
|
|
28142
28142
|
Valid keys: ` + JSON.stringify(Object.keys(qe), null, " ")
|
|
28143
28143
|
);
|
|
28144
|
-
var Ue = st(Xe,
|
|
28144
|
+
var Ue = st(Xe, at, tt, Ye, Qe + "." + at, n);
|
|
28145
28145
|
if (Ue)
|
|
28146
28146
|
return Ue;
|
|
28147
28147
|
}
|
|
@@ -31174,7 +31174,7 @@ _defineProperty$d(Bar, "getComposedData", function(t) {
|
|
|
31174
31174
|
$e -= Ze, Ve += Ze;
|
|
31175
31175
|
}
|
|
31176
31176
|
} else {
|
|
31177
|
-
var tt = [d.scale(se[0]), d.scale(se[1])], Ye = tt[0],
|
|
31177
|
+
var tt = [d.scale(se[0]), d.scale(se[1])], Ye = tt[0], Qe = tt[1];
|
|
31178
31178
|
if (Ae = Ye, $e = getCateCoordinateOfBar({
|
|
31179
31179
|
axis: f,
|
|
31180
31180
|
ticks: b,
|
|
@@ -31182,7 +31182,7 @@ _defineProperty$d(Bar, "getComposedData", function(t) {
|
|
|
31182
31182
|
offset: R.offset,
|
|
31183
31183
|
entry: oe,
|
|
31184
31184
|
index: ge
|
|
31185
|
-
}), Ne =
|
|
31185
|
+
}), Ne = Qe - Ye, Ve = R.size, je = {
|
|
31186
31186
|
x: d.x,
|
|
31187
31187
|
y: $e,
|
|
31188
31188
|
width: d.width,
|
|
@@ -34378,8 +34378,8 @@ var getTooltipContent = function(e, n, o, l) {
|
|
|
34378
34378
|
}, []);
|
|
34379
34379
|
else if (q === "number") {
|
|
34380
34380
|
var Le = parseErrorBarsOfAxis(ge, l.filter(function(He) {
|
|
34381
|
-
var Ze, tt, Ye = f in He.props ? He.props[f] : (Ze = He.type.defaultProps) === null || Ze === void 0 ? void 0 : Ze[f],
|
|
34382
|
-
return Ye === oe && (ne || !
|
|
34381
|
+
var Ze, tt, Ye = f in He.props ? He.props[f] : (Ze = He.type.defaultProps) === null || Ze === void 0 ? void 0 : Ze[f], Qe = "hide" in He.props ? He.props.hide : (tt = He.type.defaultProps) === null || tt === void 0 ? void 0 : tt.hide;
|
|
34382
|
+
return Ye === oe && (ne || !Qe);
|
|
34383
34383
|
}), z, d, _);
|
|
34384
34384
|
Le && (Ae = Le);
|
|
34385
34385
|
}
|
|
@@ -34530,38 +34530,38 @@ var getTooltipContent = function(e, n, o, l) {
|
|
|
34530
34530
|
graphicalItems: [Le],
|
|
34531
34531
|
dataStartIndex: te,
|
|
34532
34532
|
dataEndIndex: ne
|
|
34533
|
-
}), He = Le.type.defaultProps !== void 0 ? _objectSpread(_objectSpread({}, Le.type.defaultProps), Le.props) : Le.props, Ze = He.dataKey, tt = He.maxBarSize, Ye = He["".concat(Ve, "Id")],
|
|
34534
|
-
var ut, ft, dt = q["".concat(
|
|
34535
|
-
dt && dt[Ct] ||
|
|
34536
|
-
|
|
34533
|
+
}), He = Le.type.defaultProps !== void 0 ? _objectSpread(_objectSpread({}, Le.type.defaultProps), Le.props) : Le.props, Ze = He.dataKey, tt = He.maxBarSize, Ye = He["".concat(Ve, "Id")], Qe = He["".concat(je, "Id")], Xe = {}, ot = b.reduce(function(it, et) {
|
|
34534
|
+
var ut, ft, dt = q["".concat(et.axisType, "Map")], Ct = He["".concat(et.axisType, "Id")];
|
|
34535
|
+
dt && dt[Ct] || et.axisType === "zAxis" || (process.env.NODE_ENV !== "production" ? invariant$1(!1, "Specifying a(n) ".concat(et.axisType, "Id requires a corresponding ").concat(
|
|
34536
|
+
et.axisType,
|
|
34537
34537
|
"Id on the targeted graphical component "
|
|
34538
34538
|
).concat((ut = Le == null || (ft = Le.type) === null || ft === void 0 ? void 0 : ft.displayName) !== null && ut !== void 0 ? ut : "")) : invariant$1());
|
|
34539
34539
|
var zt = dt[Ct];
|
|
34540
|
-
return _objectSpread(_objectSpread({},
|
|
34541
|
-
}, Xe),
|
|
34540
|
+
return _objectSpread(_objectSpread({}, it), {}, _defineProperty(_defineProperty({}, et.axisType, zt), "".concat(et.axisType, "Ticks"), getTicksOfAxis(zt)));
|
|
34541
|
+
}, Xe), rt = ot[je], at = ot["".concat(je, "Ticks")], st = Q && Q[Ye] && Q[Ye].hasStack && getStackedDataOfItem(Le, Q[Ye].stackGroups), Ue = getDisplayName(Le.type).indexOf("Bar") >= 0, Rt = getBandSizeOfAxis(rt, at), Je = [], yt = ze && getBarSizeList({
|
|
34542
34542
|
barSize: oe,
|
|
34543
34543
|
stackGroups: Q,
|
|
34544
|
-
totalSize: getCartesianAxisSize(
|
|
34544
|
+
totalSize: getCartesianAxisSize(ot, je)
|
|
34545
34545
|
});
|
|
34546
34546
|
if (Ue) {
|
|
34547
|
-
var Mt, qt, Ht = isNil(tt) ? $e : tt, Ft = (Mt = (qt = getBandSizeOfAxis(
|
|
34547
|
+
var Mt, qt, Ht = isNil(tt) ? $e : tt, Ft = (Mt = (qt = getBandSizeOfAxis(rt, at, !0)) !== null && qt !== void 0 ? qt : Ht) !== null && Mt !== void 0 ? Mt : 0;
|
|
34548
34548
|
Je = getBarPosition({
|
|
34549
34549
|
barGap: se,
|
|
34550
34550
|
barCategoryGap: Ae,
|
|
34551
34551
|
bandSize: Ft !== Rt ? Ft : Rt,
|
|
34552
|
-
sizeList: yt[
|
|
34552
|
+
sizeList: yt[Qe],
|
|
34553
34553
|
maxBarSize: Ht
|
|
34554
|
-
}), Ft !== Rt && (Je = Je.map(function(
|
|
34555
|
-
return _objectSpread(_objectSpread({},
|
|
34556
|
-
position: _objectSpread(_objectSpread({},
|
|
34557
|
-
offset:
|
|
34554
|
+
}), Ft !== Rt && (Je = Je.map(function(it) {
|
|
34555
|
+
return _objectSpread(_objectSpread({}, it), {}, {
|
|
34556
|
+
position: _objectSpread(_objectSpread({}, it.position), {}, {
|
|
34557
|
+
offset: it.position.offset - Ft / 2
|
|
34558
34558
|
})
|
|
34559
34559
|
});
|
|
34560
34560
|
}));
|
|
34561
34561
|
}
|
|
34562
34562
|
var Ke = Le && Le.type && Le.type.getComposedData;
|
|
34563
34563
|
Ke && Oe.push({
|
|
34564
|
-
props: _objectSpread(_objectSpread({}, Ke(_objectSpread(_objectSpread({},
|
|
34564
|
+
props: _objectSpread(_objectSpread({}, Ke(_objectSpread(_objectSpread({}, ot), {}, {
|
|
34565
34565
|
displayedData: Ge,
|
|
34566
34566
|
props: O,
|
|
34567
34567
|
dataKey: Ze,
|
|
@@ -34575,7 +34575,7 @@ var getTooltipContent = function(e, n, o, l) {
|
|
|
34575
34575
|
dataEndIndex: ne
|
|
34576
34576
|
}))), {}, _defineProperty(_defineProperty(_defineProperty({
|
|
34577
34577
|
key: Le.key || "item-".concat(qe)
|
|
34578
|
-
}, Ve,
|
|
34578
|
+
}, Ve, ot[Ve]), je, ot[je]), "animationId", F)),
|
|
34579
34579
|
childIndex: parseChildIndex(Le, O.children),
|
|
34580
34580
|
item: Le
|
|
34581
34581
|
});
|
|
@@ -34913,33 +34913,33 @@ var getTooltipContent = function(e, n, o, l) {
|
|
|
34913
34913
|
var oe = j.filterFormatItem(F, te, ne);
|
|
34914
34914
|
if (!oe)
|
|
34915
34915
|
return null;
|
|
34916
|
-
var ge = j.getTooltipEventType(), se = j.state, Ae = se.isTooltipActive, $e = se.tooltipAxis, Ne = se.activeTooltipIndex, Ve = se.activeLabel, je = j.props.children, ze = findChildByType(je, Tooltip), Oe = oe.props, Le = Oe.points, qe = Oe.isRange, Ge = Oe.baseLine, He = oe.item.type.defaultProps !== void 0 ? _objectSpread(_objectSpread({}, oe.item.type.defaultProps), oe.item.props) : oe.item.props, Ze = He.activeDot, tt = He.hide, Ye = He.activeBar,
|
|
34917
|
-
ge !== "axis" && ze && ze.props.trigger === "click" ?
|
|
34916
|
+
var ge = j.getTooltipEventType(), se = j.state, Ae = se.isTooltipActive, $e = se.tooltipAxis, Ne = se.activeTooltipIndex, Ve = se.activeLabel, je = j.props.children, ze = findChildByType(je, Tooltip), Oe = oe.props, Le = Oe.points, qe = Oe.isRange, Ge = Oe.baseLine, He = oe.item.type.defaultProps !== void 0 ? _objectSpread(_objectSpread({}, oe.item.type.defaultProps), oe.item.props) : oe.item.props, Ze = He.activeDot, tt = He.hide, Ye = He.activeBar, Qe = He.activeShape, Xe = !!(!tt && Ae && ze && (Ze || Ye || Qe)), ot = {};
|
|
34917
|
+
ge !== "axis" && ze && ze.props.trigger === "click" ? ot = {
|
|
34918
34918
|
onClick: combineEventHandlers(j.handleItemMouseEnter, F.props.onClick)
|
|
34919
|
-
} : ge !== "axis" && (
|
|
34919
|
+
} : ge !== "axis" && (ot = {
|
|
34920
34920
|
onMouseLeave: combineEventHandlers(j.handleItemMouseLeave, F.props.onMouseLeave),
|
|
34921
34921
|
onMouseEnter: combineEventHandlers(j.handleItemMouseEnter, F.props.onMouseEnter)
|
|
34922
34922
|
});
|
|
34923
|
-
var
|
|
34924
|
-
function
|
|
34925
|
-
return typeof $e.dataKey == "function" ? $e.dataKey(
|
|
34923
|
+
var rt = /* @__PURE__ */ cloneElement(F, _objectSpread(_objectSpread({}, oe.props), ot));
|
|
34924
|
+
function at(et) {
|
|
34925
|
+
return typeof $e.dataKey == "function" ? $e.dataKey(et.payload) : null;
|
|
34926
34926
|
}
|
|
34927
34927
|
if (Xe)
|
|
34928
34928
|
if (Ne >= 0) {
|
|
34929
34929
|
var st, Ue;
|
|
34930
34930
|
if ($e.dataKey && !$e.allowDuplicatedCategory) {
|
|
34931
|
-
var Rt = typeof $e.dataKey == "function" ?
|
|
34931
|
+
var Rt = typeof $e.dataKey == "function" ? at : "payload.".concat($e.dataKey.toString());
|
|
34932
34932
|
st = findEntryInArray(Le, Rt, Ve), Ue = qe && Ge && findEntryInArray(Ge, Rt, Ve);
|
|
34933
34933
|
} else
|
|
34934
34934
|
st = Le == null ? void 0 : Le[Ne], Ue = qe && Ge && Ge[Ne];
|
|
34935
|
-
if (
|
|
34935
|
+
if (Qe || Ye) {
|
|
34936
34936
|
var Je = F.props.activeIndex !== void 0 ? F.props.activeIndex : Ne;
|
|
34937
|
-
return [/* @__PURE__ */ cloneElement(F, _objectSpread(_objectSpread(_objectSpread({}, oe.props),
|
|
34937
|
+
return [/* @__PURE__ */ cloneElement(F, _objectSpread(_objectSpread(_objectSpread({}, oe.props), ot), {}, {
|
|
34938
34938
|
activeIndex: Je
|
|
34939
34939
|
})), null, null];
|
|
34940
34940
|
}
|
|
34941
34941
|
if (!isNil(st))
|
|
34942
|
-
return [
|
|
34942
|
+
return [rt].concat(_toConsumableArray(j.renderActivePoints({
|
|
34943
34943
|
item: oe,
|
|
34944
34944
|
activePoint: st,
|
|
34945
34945
|
basePoint: Ue,
|
|
@@ -34948,13 +34948,13 @@ var getTooltipContent = function(e, n, o, l) {
|
|
|
34948
34948
|
})));
|
|
34949
34949
|
} else {
|
|
34950
34950
|
var yt, Mt = (yt = j.getItemByXY(j.state.activeCoordinate)) !== null && yt !== void 0 ? yt : {
|
|
34951
|
-
graphicalItem:
|
|
34952
|
-
}, qt = Mt.graphicalItem, Ht = qt.item, Ft = Ht === void 0 ? F : Ht, Ke = qt.childIndex,
|
|
34951
|
+
graphicalItem: rt
|
|
34952
|
+
}, qt = Mt.graphicalItem, Ht = qt.item, Ft = Ht === void 0 ? F : Ht, Ke = qt.childIndex, it = _objectSpread(_objectSpread(_objectSpread({}, oe.props), ot), {}, {
|
|
34953
34953
|
activeIndex: Ke
|
|
34954
34954
|
});
|
|
34955
|
-
return [/* @__PURE__ */ cloneElement(Ft,
|
|
34955
|
+
return [/* @__PURE__ */ cloneElement(Ft, it), null, null];
|
|
34956
34956
|
}
|
|
34957
|
-
return qe ? [
|
|
34957
|
+
return qe ? [rt, null, null] : [rt, null];
|
|
34958
34958
|
}), _defineProperty(j, "renderCustomized", function(F, te, ne) {
|
|
34959
34959
|
return /* @__PURE__ */ cloneElement(F, _objectSpread(_objectSpread({
|
|
34960
34960
|
key: "recharts-customized-".concat(ne)
|
|
@@ -35395,13 +35395,13 @@ var getTooltipContent = function(e, n, o, l) {
|
|
|
35395
35395
|
});
|
|
35396
35396
|
}
|
|
35397
35397
|
if (!isChildrenEqual(Q, O.prevChildren)) {
|
|
35398
|
-
var ze, Oe, Le, qe, Ge = findChildByType(Q, Brush), He = Ge && (ze = (Oe = Ge.props) === null || Oe === void 0 ? void 0 : Oe.startIndex) !== null && ze !== void 0 ? ze : ge, Ze = Ge && (Le = (qe = Ge.props) === null || qe === void 0 ? void 0 : qe.endIndex) !== null && Le !== void 0 ? Le : se, tt = He !== ge || Ze !== se, Ye = !isNil(z),
|
|
35398
|
+
var ze, Oe, Le, qe, Ge = findChildByType(Q, Brush), He = Ge && (ze = (Oe = Ge.props) === null || Oe === void 0 ? void 0 : Oe.startIndex) !== null && ze !== void 0 ? ze : ge, Ze = Ge && (Le = (qe = Ge.props) === null || qe === void 0 ? void 0 : qe.endIndex) !== null && Le !== void 0 ? Le : se, tt = He !== ge || Ze !== se, Ye = !isNil(z), Qe = Ye && !tt ? O.updateId : O.updateId + 1;
|
|
35399
35399
|
return _objectSpread(_objectSpread({
|
|
35400
|
-
updateId:
|
|
35400
|
+
updateId: Qe
|
|
35401
35401
|
}, R(_objectSpread(_objectSpread({
|
|
35402
35402
|
props: M
|
|
35403
35403
|
}, O), {}, {
|
|
35404
|
-
updateId:
|
|
35404
|
+
updateId: Qe,
|
|
35405
35405
|
dataStartIndex: He,
|
|
35406
35406
|
dataEndIndex: Ze
|
|
35407
35407
|
}), O)), {}, {
|
|
@@ -37000,17 +37000,17 @@ var lottie = createCommonjsModule(function(module, exports) {
|
|
|
37000
37000
|
function E(Oe, Le, qe) {
|
|
37001
37001
|
return qe || qe === 0 || (qe = 1), Oe === 1 && Le === 1 && qe === 1 ? this : this._t(Oe, 0, 0, 0, 0, Le, 0, 0, 0, 0, qe, 0, 0, 0, 0, 1);
|
|
37002
37002
|
}
|
|
37003
|
-
function R(Oe, Le, qe, Ge, He, Ze, tt, Ye,
|
|
37004
|
-
return this.props[0] = Oe, this.props[1] = Le, this.props[2] = qe, this.props[3] = Ge, this.props[4] = He, this.props[5] = Ze, this.props[6] = tt, this.props[7] = Ye, this.props[8] =
|
|
37003
|
+
function R(Oe, Le, qe, Ge, He, Ze, tt, Ye, Qe, Xe, ot, rt, at, st, Ue, Rt) {
|
|
37004
|
+
return this.props[0] = Oe, this.props[1] = Le, this.props[2] = qe, this.props[3] = Ge, this.props[4] = He, this.props[5] = Ze, this.props[6] = tt, this.props[7] = Ye, this.props[8] = Qe, this.props[9] = Xe, this.props[10] = ot, this.props[11] = rt, this.props[12] = at, this.props[13] = st, this.props[14] = Ue, this.props[15] = Rt, this;
|
|
37005
37005
|
}
|
|
37006
37006
|
function A(Oe, Le, qe) {
|
|
37007
37007
|
return qe = qe || 0, Oe !== 0 || Le !== 0 || qe !== 0 ? this._t(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, Oe, Le, qe, 1) : this;
|
|
37008
37008
|
}
|
|
37009
|
-
function I(Oe, Le, qe, Ge, He, Ze, tt, Ye,
|
|
37009
|
+
function I(Oe, Le, qe, Ge, He, Ze, tt, Ye, Qe, Xe, ot, rt, at, st, Ue, Rt) {
|
|
37010
37010
|
var Je = this.props;
|
|
37011
|
-
if (Oe === 1 && Le === 0 && qe === 0 && Ge === 0 && He === 0 && Ze === 1 && tt === 0 && Ye === 0 &&
|
|
37012
|
-
var yt = Je[0], Mt = Je[1], qt = Je[2], Ht = Je[3], Ft = Je[4], Ke = Je[5],
|
|
37013
|
-
return Je[0] = yt * Oe + Mt * He + qt *
|
|
37011
|
+
if (Oe === 1 && Le === 0 && qe === 0 && Ge === 0 && He === 0 && Ze === 1 && tt === 0 && Ye === 0 && Qe === 0 && Xe === 0 && ot === 1 && rt === 0) return Je[12] = Je[12] * Oe + Je[15] * at, Je[13] = Je[13] * Ze + Je[15] * st, Je[14] = Je[14] * ot + Je[15] * Ue, Je[15] *= Rt, this._identityCalculated = !1, this;
|
|
37012
|
+
var yt = Je[0], Mt = Je[1], qt = Je[2], Ht = Je[3], Ft = Je[4], Ke = Je[5], it = Je[6], et = Je[7], ut = Je[8], ft = Je[9], dt = Je[10], Ct = Je[11], zt = Je[12], Yt = Je[13], ir = Je[14], cr = Je[15];
|
|
37013
|
+
return Je[0] = yt * Oe + Mt * He + qt * Qe + Ht * at, Je[1] = yt * Le + Mt * Ze + qt * Xe + Ht * st, Je[2] = yt * qe + Mt * tt + qt * ot + Ht * Ue, Je[3] = yt * Ge + Mt * Ye + qt * rt + Ht * Rt, Je[4] = Ft * Oe + Ke * He + it * Qe + et * at, Je[5] = Ft * Le + Ke * Ze + it * Xe + et * st, Je[6] = Ft * qe + Ke * tt + it * ot + et * Ue, Je[7] = Ft * Ge + Ke * Ye + it * rt + et * Rt, Je[8] = ut * Oe + ft * He + dt * Qe + Ct * at, Je[9] = ut * Le + ft * Ze + dt * Xe + Ct * st, Je[10] = ut * qe + ft * tt + dt * ot + Ct * Ue, Je[11] = ut * Ge + ft * Ye + dt * rt + Ct * Rt, Je[12] = zt * Oe + Yt * He + ir * Qe + cr * at, Je[13] = zt * Le + Yt * Ze + ir * Xe + cr * st, Je[14] = zt * qe + Yt * tt + ir * ot + cr * Ue, Je[15] = zt * Ge + Yt * Ye + ir * rt + cr * Rt, this._identityCalculated = !1, this;
|
|
37014
37014
|
}
|
|
37015
37015
|
function M(Oe) {
|
|
37016
37016
|
var Le = Oe.props;
|
|
@@ -37063,8 +37063,8 @@ var lottie = createCommonjsModule(function(module, exports) {
|
|
|
37063
37063
|
var Ge = createTypedArray("float32", 6);
|
|
37064
37064
|
if (this.isIdentity()) Ge[0] = Oe[0], Ge[1] = Oe[1], Ge[2] = Le[0], Ge[3] = Le[1], Ge[4] = qe[0], Ge[5] = qe[1];
|
|
37065
37065
|
else {
|
|
37066
|
-
var He = this.props[0], Ze = this.props[1], tt = this.props[4], Ye = this.props[5],
|
|
37067
|
-
Ge[0] = Oe[0] * He + Oe[1] * tt +
|
|
37066
|
+
var He = this.props[0], Ze = this.props[1], tt = this.props[4], Ye = this.props[5], Qe = this.props[12], Xe = this.props[13];
|
|
37067
|
+
Ge[0] = Oe[0] * He + Oe[1] * tt + Qe, Ge[1] = Oe[0] * Ze + Oe[1] * Ye + Xe, Ge[2] = Le[0] * He + Le[1] * tt + Qe, Ge[3] = Le[0] * Ze + Le[1] * Ye + Xe, Ge[4] = qe[0] * He + qe[1] * tt + Qe, Ge[5] = qe[0] * Ze + qe[1] * Ye + Xe;
|
|
37068
37068
|
}
|
|
37069
37069
|
return Ge;
|
|
37070
37070
|
}
|
|
@@ -38740,20 +38740,20 @@ var lottie = createCommonjsModule(function(module, exports) {
|
|
|
38740
38740
|
d = se.length, n = 0, o = 0;
|
|
38741
38741
|
var Ne, Ve, je, ze, Oe, Le = 1.2 * t.finalSize * 0.714, qe = !0;
|
|
38742
38742
|
je = F.length;
|
|
38743
|
-
var Ge, He, Ze, tt, Ye,
|
|
38743
|
+
var Ge, He, Ze, tt, Ye, Qe, Xe, ot, rt, at, st, Ue, Rt = -1, Je = g, yt = E, Mt = C, qt = -1, Ht = "", Ft = this.defaultPropsArray;
|
|
38744
38744
|
if (t.j === 2 || t.j === 1) {
|
|
38745
|
-
var Ke = 0,
|
|
38745
|
+
var Ke = 0, it = 0, et = t.j === 2 ? -0.5 : -1, ut = 0, ft = !0;
|
|
38746
38746
|
for (l = 0; l < d; l += 1) if (se[l].n) {
|
|
38747
|
-
for (Ke && (Ke +=
|
|
38747
|
+
for (Ke && (Ke += it); ut < l; ) se[ut].animatorJustifyOffset = Ke, ut += 1;
|
|
38748
38748
|
Ke = 0, ft = !0;
|
|
38749
38749
|
} else {
|
|
38750
|
-
for (Ve = 0; Ve < je; Ve += 1) (Ne = F[Ve].a).t.propType && (ft && t.j === 2 && (
|
|
38750
|
+
for (Ve = 0; Ve < je; Ve += 1) (Ne = F[Ve].a).t.propType && (ft && t.j === 2 && (it += Ne.t.v * et), (Oe = F[Ve].s.getMult(se[l].anIndexes[Ve], te.a[Ve].s.totalChars)).length ? Ke += Ne.t.v * Oe[0] * et : Ke += Ne.t.v * Oe * et);
|
|
38751
38751
|
ft = !1;
|
|
38752
38752
|
}
|
|
38753
|
-
for (Ke && (Ke +=
|
|
38753
|
+
for (Ke && (Ke += it); ut < l; ) se[ut].animatorJustifyOffset = Ke, ut += 1;
|
|
38754
38754
|
}
|
|
38755
38755
|
for (l = 0; l < d; l += 1) {
|
|
38756
|
-
if (ne.reset(), tt = 1, se[l].n) n = 0, o += t.yOffset, o += qe ? 1 : 0, g = Je, qe = !1, this._hasMaskedPath && (C = Mt, R = (A = I[E = yt].points)[C - 1], M = (b = A[C]).partialLength, S = 0), Ht = "", st = "",
|
|
38756
|
+
if (ne.reset(), tt = 1, se[l].n) n = 0, o += t.yOffset, o += qe ? 1 : 0, g = Je, qe = !1, this._hasMaskedPath && (C = Mt, R = (A = I[E = yt].points)[C - 1], M = (b = A[C]).partialLength, S = 0), Ht = "", st = "", rt = "", Ue = "", Ft = this.defaultPropsArray;
|
|
38757
38757
|
else {
|
|
38758
38758
|
if (this._hasMaskedPath) {
|
|
38759
38759
|
if (qt !== se[l].line) {
|
|
@@ -38773,17 +38773,17 @@ var lottie = createCommonjsModule(function(module, exports) {
|
|
|
38773
38773
|
Ge = se[l].an / 2 - se[l].add, ne.translate(-Ge, 0, 0);
|
|
38774
38774
|
} else Ge = se[l].an / 2 - se[l].add, ne.translate(-Ge, 0, 0), ne.translate(-j[0] * se[l].an * 5e-3, -j[1] * Le * 0.01, 0);
|
|
38775
38775
|
for (Ve = 0; Ve < je; Ve += 1) (Ne = F[Ve].a).t.propType && (Oe = F[Ve].s.getMult(se[l].anIndexes[Ve], te.a[Ve].s.totalChars), n === 0 && t.j === 0 || (this._hasMaskedPath ? Oe.length ? g += Ne.t.v * Oe[0] : g += Ne.t.v * Oe : Oe.length ? n += Ne.t.v * Oe[0] : n += Ne.t.v * Oe));
|
|
38776
|
-
for (t.strokeWidthAnim && (
|
|
38776
|
+
for (t.strokeWidthAnim && (Qe = t.sw || 0), t.strokeColorAnim && (Ye = t.sc ? [t.sc[0], t.sc[1], t.sc[2]] : [0, 0, 0]), t.fillColorAnim && t.fc && (Xe = [t.fc[0], t.fc[1], t.fc[2]]), Ve = 0; Ve < je; Ve += 1) (Ne = F[Ve].a).a.propType && ((Oe = F[Ve].s.getMult(se[l].anIndexes[Ve], te.a[Ve].s.totalChars)).length ? ne.translate(-Ne.a.v[0] * Oe[0], -Ne.a.v[1] * Oe[1], Ne.a.v[2] * Oe[2]) : ne.translate(-Ne.a.v[0] * Oe, -Ne.a.v[1] * Oe, Ne.a.v[2] * Oe));
|
|
38777
38777
|
for (Ve = 0; Ve < je; Ve += 1) (Ne = F[Ve].a).s.propType && ((Oe = F[Ve].s.getMult(se[l].anIndexes[Ve], te.a[Ve].s.totalChars)).length ? ne.scale(1 + (Ne.s.v[0] - 1) * Oe[0], 1 + (Ne.s.v[1] - 1) * Oe[1], 1) : ne.scale(1 + (Ne.s.v[0] - 1) * Oe, 1 + (Ne.s.v[1] - 1) * Oe, 1));
|
|
38778
38778
|
for (Ve = 0; Ve < je; Ve += 1) {
|
|
38779
|
-
if (Ne = F[Ve].a, Oe = F[Ve].s.getMult(se[l].anIndexes[Ve], te.a[Ve].s.totalChars), Ne.sk.propType && (Oe.length ? ne.skewFromAxis(-Ne.sk.v * Oe[0], Ne.sa.v * Oe[1]) : ne.skewFromAxis(-Ne.sk.v * Oe, Ne.sa.v * Oe)), Ne.r.propType && (Oe.length ? ne.rotateZ(-Ne.r.v * Oe[2]) : ne.rotateZ(-Ne.r.v * Oe)), Ne.ry.propType && (Oe.length ? ne.rotateY(Ne.ry.v * Oe[1]) : ne.rotateY(Ne.ry.v * Oe)), Ne.rx.propType && (Oe.length ? ne.rotateX(Ne.rx.v * Oe[0]) : ne.rotateX(Ne.rx.v * Oe)), Ne.o.propType && (Oe.length ? tt += (Ne.o.v * Oe[0] - tt) * Oe[0] : tt += (Ne.o.v * Oe - tt) * Oe), t.strokeWidthAnim && Ne.sw.propType && (Oe.length ?
|
|
38779
|
+
if (Ne = F[Ve].a, Oe = F[Ve].s.getMult(se[l].anIndexes[Ve], te.a[Ve].s.totalChars), Ne.sk.propType && (Oe.length ? ne.skewFromAxis(-Ne.sk.v * Oe[0], Ne.sa.v * Oe[1]) : ne.skewFromAxis(-Ne.sk.v * Oe, Ne.sa.v * Oe)), Ne.r.propType && (Oe.length ? ne.rotateZ(-Ne.r.v * Oe[2]) : ne.rotateZ(-Ne.r.v * Oe)), Ne.ry.propType && (Oe.length ? ne.rotateY(Ne.ry.v * Oe[1]) : ne.rotateY(Ne.ry.v * Oe)), Ne.rx.propType && (Oe.length ? ne.rotateX(Ne.rx.v * Oe[0]) : ne.rotateX(Ne.rx.v * Oe)), Ne.o.propType && (Oe.length ? tt += (Ne.o.v * Oe[0] - tt) * Oe[0] : tt += (Ne.o.v * Oe - tt) * Oe), t.strokeWidthAnim && Ne.sw.propType && (Oe.length ? Qe += Ne.sw.v * Oe[0] : Qe += Ne.sw.v * Oe), t.strokeColorAnim && Ne.sc.propType) for (ot = 0; ot < 3; ot += 1) Oe.length ? Ye[ot] += (Ne.sc.v[ot] - Ye[ot]) * Oe[0] : Ye[ot] += (Ne.sc.v[ot] - Ye[ot]) * Oe;
|
|
38780
38780
|
if (t.fillColorAnim && t.fc) {
|
|
38781
|
-
if (Ne.fc.propType) for (
|
|
38781
|
+
if (Ne.fc.propType) for (ot = 0; ot < 3; ot += 1) Oe.length ? Xe[ot] += (Ne.fc.v[ot] - Xe[ot]) * Oe[0] : Xe[ot] += (Ne.fc.v[ot] - Xe[ot]) * Oe;
|
|
38782
38782
|
Ne.fh.propType && (Xe = Oe.length ? addHueToRGB(Xe, Ne.fh.v * Oe[0]) : addHueToRGB(Xe, Ne.fh.v * Oe)), Ne.fs.propType && (Xe = Oe.length ? addSaturationToRGB(Xe, Ne.fs.v * Oe[0]) : addSaturationToRGB(Xe, Ne.fs.v * Oe)), Ne.fb.propType && (Xe = Oe.length ? addBrightnessToRGB(Xe, Ne.fb.v * Oe[0]) : addBrightnessToRGB(Xe, Ne.fb.v * Oe));
|
|
38783
38783
|
}
|
|
38784
38784
|
}
|
|
38785
38785
|
for (Ve = 0; Ve < je; Ve += 1) (Ne = F[Ve].a).p.propType && (Oe = F[Ve].s.getMult(se[l].anIndexes[Ve], te.a[Ve].s.totalChars), this._hasMaskedPath ? Oe.length ? ne.translate(0, Ne.p.v[1] * Oe[0], -Ne.p.v[2] * Oe[1]) : ne.translate(0, Ne.p.v[1] * Oe, -Ne.p.v[2] * Oe) : Oe.length ? ne.translate(Ne.p.v[0] * Oe[0], Ne.p.v[1] * Oe[1], -Ne.p.v[2] * Oe[2]) : ne.translate(Ne.p.v[0] * Oe, Ne.p.v[1] * Oe, -Ne.p.v[2] * Oe));
|
|
38786
|
-
if (t.strokeWidthAnim && (
|
|
38786
|
+
if (t.strokeWidthAnim && (rt = Qe < 0 ? 0 : Qe), t.strokeColorAnim && (at = "rgb(" + Math.round(255 * Ye[0]) + "," + Math.round(255 * Ye[1]) + "," + Math.round(255 * Ye[2]) + ")"), t.fillColorAnim && t.fc && (st = "rgb(" + Math.round(255 * Xe[0]) + "," + Math.round(255 * Xe[1]) + "," + Math.round(255 * Xe[2]) + ")"), this._hasMaskedPath) {
|
|
38787
38787
|
if (ne.translate(0, -t.ls), ne.translate(0, j[1] * Le * 0.01 + o, 0), this._pathData.p.v) {
|
|
38788
38788
|
z = (b.point[1] - R.point[1]) / (b.point[0] - R.point[0]);
|
|
38789
38789
|
var Ct = 180 * Math.atan(z) / Math.PI;
|
|
@@ -38802,7 +38802,7 @@ var lottie = createCommonjsModule(function(module, exports) {
|
|
|
38802
38802
|
}
|
|
38803
38803
|
oe === "html" ? Ht = ne.toCSS() : oe === "svg" ? Ht = ne.to2dCSS() : Ft = [ne.props[0], ne.props[1], ne.props[2], ne.props[3], ne.props[4], ne.props[5], ne.props[6], ne.props[7], ne.props[8], ne.props[9], ne.props[10], ne.props[11], ne.props[12], ne.props[13], ne.props[14], ne.props[15]], Ue = tt;
|
|
38804
38804
|
}
|
|
38805
|
-
ge <= l ? (ze = new LetterProps(Ue,
|
|
38805
|
+
ge <= l ? (ze = new LetterProps(Ue, rt, at, st, Ht, Ft), this.renderedLetters.push(ze), ge += 1, this.lettersChangedFlag = !0) : (ze = this.renderedLetters[l], this.lettersChangedFlag = ze.update(Ue, rt, at, st, Ht, Ft) || this.lettersChangedFlag);
|
|
38806
38806
|
}
|
|
38807
38807
|
}
|
|
38808
38808
|
}, TextAnimatorProperty.prototype.getValue = function() {
|
|
@@ -59732,7 +59732,7 @@ const NODE_TYPE = {
|
|
|
59732
59732
|
};
|
|
59733
59733
|
function createDOMPurify() {
|
|
59734
59734
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : getGlobal();
|
|
59735
|
-
const e = (
|
|
59735
|
+
const e = (Wt) => createDOMPurify(Wt);
|
|
59736
59736
|
if (e.version = "3.2.6", e.removed = [], !t || !t.document || t.document.nodeType !== NODE_TYPE.document || !t.Element)
|
|
59737
59737
|
return e.isSupported = !1, e;
|
|
59738
59738
|
let {
|
|
@@ -59750,8 +59750,8 @@ function createDOMPurify() {
|
|
|
59750
59750
|
trustedTypes: R
|
|
59751
59751
|
} = t, A = b.prototype, I = lookupGetter(A, "cloneNode"), M = lookupGetter(A, "remove"), O = lookupGetter(A, "nextSibling"), q = lookupGetter(A, "childNodes"), z = lookupGetter(A, "parentNode");
|
|
59752
59752
|
if (typeof f == "function") {
|
|
59753
|
-
const
|
|
59754
|
-
|
|
59753
|
+
const Wt = n.createElement("template");
|
|
59754
|
+
Wt.content && Wt.content.ownerDocument && (n = Wt.content.ownerDocument);
|
|
59755
59755
|
}
|
|
59756
59756
|
let Q, j = "";
|
|
59757
59757
|
const {
|
|
@@ -59799,28 +59799,28 @@ function createDOMPurify() {
|
|
|
59799
59799
|
enumerable: !0,
|
|
59800
59800
|
value: !1
|
|
59801
59801
|
}
|
|
59802
|
-
})),
|
|
59803
|
-
const
|
|
59802
|
+
})), Qe = null, Xe = null, ot = !0, rt = !0, at = !1, st = !0, Ue = !1, Rt = !0, Je = !1, yt = !1, Mt = !1, qt = !1, Ht = !1, Ft = !1, Ke = !0, it = !1;
|
|
59803
|
+
const et = "user-content-";
|
|
59804
59804
|
let ut = !0, ft = !1, dt = {}, Ct = null;
|
|
59805
59805
|
const zt = addToSet({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
|
|
59806
59806
|
let Yt = null;
|
|
59807
|
-
const
|
|
59807
|
+
const ir = addToSet({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
59808
59808
|
let cr = null;
|
|
59809
|
-
const
|
|
59810
|
-
let
|
|
59811
|
-
const
|
|
59812
|
-
let
|
|
59809
|
+
const mt = addToSet({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), xr = "http://www.w3.org/1998/Math/MathML", pt = "http://www.w3.org/2000/svg", Zt = "http://www.w3.org/1999/xhtml";
|
|
59810
|
+
let Kt = Zt, sr = !1, ar = null;
|
|
59811
|
+
const Sr = addToSet({}, [xr, pt, Zt], stringToString);
|
|
59812
|
+
let Tr = addToSet({}, ["mi", "mo", "mn", "ms", "mtext"]), pr = addToSet({}, ["annotation-xml"]);
|
|
59813
59813
|
const yr = addToSet({}, ["title", "style", "font", "a", "script"]);
|
|
59814
59814
|
let tr = null;
|
|
59815
59815
|
const Mr = ["application/xhtml+xml", "text/html"], Xt = "text/html";
|
|
59816
|
-
let dr = null,
|
|
59816
|
+
let dr = null, Ir = null;
|
|
59817
59817
|
const mn = n.createElement("form"), Br = function(nt) {
|
|
59818
59818
|
return nt instanceof RegExp || nt instanceof Function;
|
|
59819
|
-
},
|
|
59819
|
+
}, wr = function() {
|
|
59820
59820
|
let nt = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
59821
|
-
if (!(
|
|
59821
|
+
if (!(Ir && Ir === nt)) {
|
|
59822
59822
|
if ((!nt || typeof nt != "object") && (nt = {}), nt = clone(nt), tr = // eslint-disable-next-line unicorn/prefer-includes
|
|
59823
|
-
Mr.indexOf(nt.PARSER_MEDIA_TYPE) === -1 ? Xt : nt.PARSER_MEDIA_TYPE, dr = tr === "application/xhtml+xml" ? stringToString : stringToLowerCase, Ge = objectHasOwnProperty(nt, "ALLOWED_TAGS") ? addToSet({}, nt.ALLOWED_TAGS, dr) : He, Ze = objectHasOwnProperty(nt, "ALLOWED_ATTR") ? addToSet({}, nt.ALLOWED_ATTR, dr) : tt,
|
|
59823
|
+
Mr.indexOf(nt.PARSER_MEDIA_TYPE) === -1 ? Xt : nt.PARSER_MEDIA_TYPE, dr = tr === "application/xhtml+xml" ? stringToString : stringToLowerCase, Ge = objectHasOwnProperty(nt, "ALLOWED_TAGS") ? addToSet({}, nt.ALLOWED_TAGS, dr) : He, Ze = objectHasOwnProperty(nt, "ALLOWED_ATTR") ? addToSet({}, nt.ALLOWED_ATTR, dr) : tt, ar = objectHasOwnProperty(nt, "ALLOWED_NAMESPACES") ? addToSet({}, nt.ALLOWED_NAMESPACES, stringToString) : Sr, cr = objectHasOwnProperty(nt, "ADD_URI_SAFE_ATTR") ? addToSet(clone(mt), nt.ADD_URI_SAFE_ATTR, dr) : mt, Yt = objectHasOwnProperty(nt, "ADD_DATA_URI_TAGS") ? addToSet(clone(ir), nt.ADD_DATA_URI_TAGS, dr) : ir, Ct = objectHasOwnProperty(nt, "FORBID_CONTENTS") ? addToSet({}, nt.FORBID_CONTENTS, dr) : zt, Qe = objectHasOwnProperty(nt, "FORBID_TAGS") ? addToSet({}, nt.FORBID_TAGS, dr) : clone({}), Xe = objectHasOwnProperty(nt, "FORBID_ATTR") ? addToSet({}, nt.FORBID_ATTR, dr) : clone({}), dt = objectHasOwnProperty(nt, "USE_PROFILES") ? nt.USE_PROFILES : !1, ot = nt.ALLOW_ARIA_ATTR !== !1, rt = nt.ALLOW_DATA_ATTR !== !1, at = nt.ALLOW_UNKNOWN_PROTOCOLS || !1, st = nt.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Ue = nt.SAFE_FOR_TEMPLATES || !1, Rt = nt.SAFE_FOR_XML !== !1, Je = nt.WHOLE_DOCUMENT || !1, qt = nt.RETURN_DOM || !1, Ht = nt.RETURN_DOM_FRAGMENT || !1, Ft = nt.RETURN_TRUSTED_TYPE || !1, Mt = nt.FORCE_BODY || !1, Ke = nt.SANITIZE_DOM !== !1, it = nt.SANITIZE_NAMED_PROPS || !1, ut = nt.KEEP_CONTENT !== !1, ft = nt.IN_PLACE || !1, qe = nt.ALLOWED_URI_REGEXP || IS_ALLOWED_URI, Kt = nt.NAMESPACE || Zt, Tr = nt.MATHML_TEXT_INTEGRATION_POINTS || Tr, pr = nt.HTML_INTEGRATION_POINTS || pr, Ye = nt.CUSTOM_ELEMENT_HANDLING || {}, nt.CUSTOM_ELEMENT_HANDLING && Br(nt.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (Ye.tagNameCheck = nt.CUSTOM_ELEMENT_HANDLING.tagNameCheck), nt.CUSTOM_ELEMENT_HANDLING && Br(nt.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (Ye.attributeNameCheck = nt.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), nt.CUSTOM_ELEMENT_HANDLING && typeof nt.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (Ye.allowCustomizedBuiltInElements = nt.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Ue && (rt = !1), Ht && (qt = !0), dt && (Ge = addToSet({}, text$1), Ze = [], dt.html === !0 && (addToSet(Ge, html$1), addToSet(Ze, html)), dt.svg === !0 && (addToSet(Ge, svg$1), addToSet(Ze, svg), addToSet(Ze, xml)), dt.svgFilters === !0 && (addToSet(Ge, svgFilters), addToSet(Ze, svg), addToSet(Ze, xml)), dt.mathMl === !0 && (addToSet(Ge, mathMl$1), addToSet(Ze, mathMl), addToSet(Ze, xml))), nt.ADD_TAGS && (Ge === He && (Ge = clone(Ge)), addToSet(Ge, nt.ADD_TAGS, dr)), nt.ADD_ATTR && (Ze === tt && (Ze = clone(Ze)), addToSet(Ze, nt.ADD_ATTR, dr)), nt.ADD_URI_SAFE_ATTR && addToSet(cr, nt.ADD_URI_SAFE_ATTR, dr), nt.FORBID_CONTENTS && (Ct === zt && (Ct = clone(Ct)), addToSet(Ct, nt.FORBID_CONTENTS, dr)), ut && (Ge["#text"] = !0), Je && addToSet(Ge, ["html", "head", "body"]), Ge.table && (addToSet(Ge, ["tbody"]), delete Qe.tbody), nt.TRUSTED_TYPES_POLICY) {
|
|
59824
59824
|
if (typeof nt.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
59825
59825
|
throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
59826
59826
|
if (typeof nt.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
@@ -59828,17 +59828,17 @@ function createDOMPurify() {
|
|
|
59828
59828
|
Q = nt.TRUSTED_TYPES_POLICY, j = Q.createHTML("");
|
|
59829
59829
|
} else
|
|
59830
59830
|
Q === void 0 && (Q = _createTrustedTypesPolicy(R, l)), Q !== null && typeof j == "string" && (j = Q.createHTML(""));
|
|
59831
|
-
freeze && freeze(nt),
|
|
59831
|
+
freeze && freeze(nt), Ir = nt;
|
|
59832
59832
|
}
|
|
59833
59833
|
}, tn = addToSet({}, [...svg$1, ...svgFilters, ...svgDisallowed]), Vr = addToSet({}, [...mathMl$1, ...mathMlDisallowed]), Lr = function(nt) {
|
|
59834
59834
|
let It = z(nt);
|
|
59835
59835
|
(!It || !It.tagName) && (It = {
|
|
59836
|
-
namespaceURI:
|
|
59836
|
+
namespaceURI: Kt,
|
|
59837
59837
|
tagName: "template"
|
|
59838
59838
|
});
|
|
59839
59839
|
const Ut = stringToLowerCase(nt.tagName), lr = stringToLowerCase(It.tagName);
|
|
59840
|
-
return
|
|
59841
|
-
},
|
|
59840
|
+
return ar[nt.namespaceURI] ? nt.namespaceURI === pt ? It.namespaceURI === Zt ? Ut === "svg" : It.namespaceURI === xr ? Ut === "svg" && (lr === "annotation-xml" || Tr[lr]) : !!tn[Ut] : nt.namespaceURI === xr ? It.namespaceURI === Zt ? Ut === "math" : It.namespaceURI === pt ? Ut === "math" && pr[lr] : !!Vr[Ut] : nt.namespaceURI === Zt ? It.namespaceURI === pt && !pr[lr] || It.namespaceURI === xr && !Tr[lr] ? !1 : !Vr[Ut] && (yr[Ut] || !tn[Ut]) : !!(tr === "application/xhtml+xml" && ar[nt.namespaceURI]) : !1;
|
|
59841
|
+
}, _r = function(nt) {
|
|
59842
59842
|
arrayPush(e.removed, {
|
|
59843
59843
|
element: nt
|
|
59844
59844
|
});
|
|
@@ -59862,7 +59862,7 @@ function createDOMPurify() {
|
|
|
59862
59862
|
if (It.removeAttribute(nt), nt === "is")
|
|
59863
59863
|
if (qt || Ht)
|
|
59864
59864
|
try {
|
|
59865
|
-
|
|
59865
|
+
_r(It);
|
|
59866
59866
|
} catch {
|
|
59867
59867
|
}
|
|
59868
59868
|
else
|
|
@@ -59878,22 +59878,22 @@ function createDOMPurify() {
|
|
|
59878
59878
|
const ur = stringMatch(nt, /^[\r\n\t ]+/);
|
|
59879
59879
|
Ut = ur && ur[0];
|
|
59880
59880
|
}
|
|
59881
|
-
tr === "application/xhtml+xml" &&
|
|
59881
|
+
tr === "application/xhtml+xml" && Kt === Zt && (nt = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + nt + "</body></html>");
|
|
59882
59882
|
const lr = Q ? Q.createHTML(nt) : nt;
|
|
59883
|
-
if (
|
|
59883
|
+
if (Kt === Zt)
|
|
59884
59884
|
try {
|
|
59885
59885
|
It = new E().parseFromString(lr, tr);
|
|
59886
59886
|
} catch {
|
|
59887
59887
|
}
|
|
59888
59888
|
if (!It || !It.documentElement) {
|
|
59889
|
-
It = F.createDocument(
|
|
59889
|
+
It = F.createDocument(Kt, "template", null);
|
|
59890
59890
|
try {
|
|
59891
|
-
It.documentElement.innerHTML =
|
|
59891
|
+
It.documentElement.innerHTML = sr ? j : lr;
|
|
59892
59892
|
} catch {
|
|
59893
59893
|
}
|
|
59894
59894
|
}
|
|
59895
59895
|
const gr = It.body || It.documentElement;
|
|
59896
|
-
return nt && Ut && gr.insertBefore(n.createTextNode(Ut), gr.childNodes[0] || null),
|
|
59896
|
+
return nt && Ut && gr.insertBefore(n.createTextNode(Ut), gr.childNodes[0] || null), Kt === Zt ? oe.call(It, Je ? "html" : "body")[0] : Je ? It.documentElement : gr;
|
|
59897
59897
|
}, Yr = function(nt) {
|
|
59898
59898
|
return te.call(
|
|
59899
59899
|
nt.ownerDocument || nt,
|
|
@@ -59907,46 +59907,46 @@ function createDOMPurify() {
|
|
|
59907
59907
|
}, Zr = function(nt) {
|
|
59908
59908
|
return typeof g == "function" && nt instanceof g;
|
|
59909
59909
|
};
|
|
59910
|
-
function
|
|
59911
|
-
arrayForEach(
|
|
59912
|
-
Ut.call(e, nt, It,
|
|
59910
|
+
function Ar(Wt, nt, It) {
|
|
59911
|
+
arrayForEach(Wt, (Ut) => {
|
|
59912
|
+
Ut.call(e, nt, It, Ir);
|
|
59913
59913
|
});
|
|
59914
59914
|
}
|
|
59915
59915
|
const rn = function(nt) {
|
|
59916
59916
|
let It = null;
|
|
59917
|
-
if (
|
|
59918
|
-
return
|
|
59917
|
+
if (Ar(se.beforeSanitizeElements, nt, null), Ur(nt))
|
|
59918
|
+
return _r(nt), !0;
|
|
59919
59919
|
const Ut = dr(nt.nodeName);
|
|
59920
|
-
if (
|
|
59920
|
+
if (Ar(se.uponSanitizeElement, nt, {
|
|
59921
59921
|
tagName: Ut,
|
|
59922
59922
|
allowedTags: Ge
|
|
59923
59923
|
}), Rt && nt.hasChildNodes() && !Zr(nt.firstElementChild) && regExpTest(/<[/\w!]/g, nt.innerHTML) && regExpTest(/<[/\w!]/g, nt.textContent) || nt.nodeType === NODE_TYPE.progressingInstruction || Rt && nt.nodeType === NODE_TYPE.comment && regExpTest(/<[/\w]/g, nt.data))
|
|
59924
|
-
return
|
|
59925
|
-
if (!Ge[Ut] ||
|
|
59926
|
-
if (!
|
|
59924
|
+
return _r(nt), !0;
|
|
59925
|
+
if (!Ge[Ut] || Qe[Ut]) {
|
|
59926
|
+
if (!Qe[Ut] && an(Ut) && (Ye.tagNameCheck instanceof RegExp && regExpTest(Ye.tagNameCheck, Ut) || Ye.tagNameCheck instanceof Function && Ye.tagNameCheck(Ut)))
|
|
59927
59927
|
return !1;
|
|
59928
59928
|
if (ut && !Ct[Ut]) {
|
|
59929
59929
|
const lr = z(nt) || nt.parentNode, gr = q(nt) || nt.childNodes;
|
|
59930
59930
|
if (gr && lr) {
|
|
59931
59931
|
const ur = gr.length;
|
|
59932
59932
|
for (let vr = ur - 1; vr >= 0; --vr) {
|
|
59933
|
-
const
|
|
59934
|
-
|
|
59933
|
+
const Pr = I(gr[vr], !0);
|
|
59934
|
+
Pr.__removalCount = (nt.__removalCount || 0) + 1, lr.insertBefore(Pr, O(nt));
|
|
59935
59935
|
}
|
|
59936
59936
|
}
|
|
59937
59937
|
}
|
|
59938
|
-
return
|
|
59938
|
+
return _r(nt), !0;
|
|
59939
59939
|
}
|
|
59940
|
-
return nt instanceof b && !Lr(nt) || (Ut === "noscript" || Ut === "noembed" || Ut === "noframes") && regExpTest(/<\/no(script|embed|frames)/i, nt.innerHTML) ? (
|
|
59940
|
+
return nt instanceof b && !Lr(nt) || (Ut === "noscript" || Ut === "noembed" || Ut === "noframes") && regExpTest(/<\/no(script|embed|frames)/i, nt.innerHTML) ? (_r(nt), !0) : (Ue && nt.nodeType === NODE_TYPE.text && (It = nt.textContent, arrayForEach([Ae, $e, Ne], (lr) => {
|
|
59941
59941
|
It = stringReplace(It, lr, " ");
|
|
59942
59942
|
}), nt.textContent !== It && (arrayPush(e.removed, {
|
|
59943
59943
|
element: nt.cloneNode()
|
|
59944
|
-
}), nt.textContent = It)),
|
|
59944
|
+
}), nt.textContent = It)), Ar(se.afterSanitizeElements, nt, null), !1);
|
|
59945
59945
|
}, nn = function(nt, It, Ut) {
|
|
59946
59946
|
if (Ke && (It === "id" || It === "name") && (Ut in n || Ut in mn))
|
|
59947
59947
|
return !1;
|
|
59948
|
-
if (!(
|
|
59949
|
-
if (!(
|
|
59948
|
+
if (!(rt && !Xe[It] && regExpTest(Ve, It))) {
|
|
59949
|
+
if (!(ot && regExpTest(je, It))) {
|
|
59950
59950
|
if (!Ze[It] || Xe[It]) {
|
|
59951
59951
|
if (
|
|
59952
59952
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
@@ -59959,7 +59959,7 @@ function createDOMPurify() {
|
|
|
59959
59959
|
} else if (!cr[It]) {
|
|
59960
59960
|
if (!regExpTest(qe, stringReplace(Ut, Oe, ""))) {
|
|
59961
59961
|
if (!((It === "src" || It === "xlink:href" || It === "href") && nt !== "script" && stringIndexOf(Ut, "data:") === 0 && Yt[nt])) {
|
|
59962
|
-
if (!(
|
|
59962
|
+
if (!(at && !regExpTest(ze, stringReplace(Ut, Oe, "")))) {
|
|
59963
59963
|
if (Ut)
|
|
59964
59964
|
return !1;
|
|
59965
59965
|
}
|
|
@@ -59972,7 +59972,7 @@ function createDOMPurify() {
|
|
|
59972
59972
|
}, an = function(nt) {
|
|
59973
59973
|
return nt !== "annotation-xml" && stringMatch(nt, Le);
|
|
59974
59974
|
}, Xr = function(nt) {
|
|
59975
|
-
|
|
59975
|
+
Ar(se.beforeSanitizeAttributes, nt, null);
|
|
59976
59976
|
const {
|
|
59977
59977
|
attributes: It
|
|
59978
59978
|
} = nt;
|
|
@@ -59990,10 +59990,10 @@ function createDOMPurify() {
|
|
|
59990
59990
|
const gr = It[lr], {
|
|
59991
59991
|
name: ur,
|
|
59992
59992
|
namespaceURI: vr,
|
|
59993
|
-
value:
|
|
59994
|
-
} = gr, Dr = dr(ur), Jr =
|
|
59993
|
+
value: Pr
|
|
59994
|
+
} = gr, Dr = dr(ur), Jr = Pr;
|
|
59995
59995
|
let Vt = ur === "value" ? Jr : stringTrim(Jr);
|
|
59996
|
-
if (Ut.attrName = Dr, Ut.attrValue = Vt, Ut.keepAttr = !0, Ut.forceKeepAttr = void 0,
|
|
59996
|
+
if (Ut.attrName = Dr, Ut.attrValue = Vt, Ut.keepAttr = !0, Ut.forceKeepAttr = void 0, Ar(se.uponSanitizeAttribute, nt, Ut), Vt = Ut.attrValue, it && (Dr === "id" || Dr === "name") && ($r(ur, nt), Vt = et + Vt), Rt && regExpTest(/((--!?|])>)|<\/(style|title)/i, Vt)) {
|
|
59997
59997
|
$r(ur, nt);
|
|
59998
59998
|
continue;
|
|
59999
59999
|
}
|
|
@@ -60007,8 +60007,8 @@ function createDOMPurify() {
|
|
|
60007
60007
|
$r(ur, nt);
|
|
60008
60008
|
continue;
|
|
60009
60009
|
}
|
|
60010
|
-
Ue && arrayForEach([Ae, $e, Ne], (
|
|
60011
|
-
Vt = stringReplace(Vt,
|
|
60010
|
+
Ue && arrayForEach([Ae, $e, Ne], (Cr) => {
|
|
60011
|
+
Vt = stringReplace(Vt, Cr, " ");
|
|
60012
60012
|
});
|
|
60013
60013
|
const Fr = dr(nt.nodeName);
|
|
60014
60014
|
if (!nn(Fr, Dr, Vt)) {
|
|
@@ -60028,50 +60028,50 @@ function createDOMPurify() {
|
|
|
60028
60028
|
}
|
|
60029
60029
|
if (Vt !== Jr)
|
|
60030
60030
|
try {
|
|
60031
|
-
vr ? nt.setAttributeNS(vr, ur, Vt) : nt.setAttribute(ur, Vt), Ur(nt) ?
|
|
60031
|
+
vr ? nt.setAttributeNS(vr, ur, Vt) : nt.setAttribute(ur, Vt), Ur(nt) ? _r(nt) : arrayPop(e.removed);
|
|
60032
60032
|
} catch {
|
|
60033
60033
|
$r(ur, nt);
|
|
60034
60034
|
}
|
|
60035
60035
|
}
|
|
60036
|
-
|
|
60037
|
-
}, on = function
|
|
60036
|
+
Ar(se.afterSanitizeAttributes, nt, null);
|
|
60037
|
+
}, on = function Wt(nt) {
|
|
60038
60038
|
let It = null;
|
|
60039
60039
|
const Ut = Yr(nt);
|
|
60040
|
-
for (
|
|
60041
|
-
|
|
60042
|
-
|
|
60040
|
+
for (Ar(se.beforeSanitizeShadowDOM, nt, null); It = Ut.nextNode(); )
|
|
60041
|
+
Ar(se.uponSanitizeShadowNode, It, null), rn(It), Xr(It), It.content instanceof d && Wt(It.content);
|
|
60042
|
+
Ar(se.afterSanitizeShadowDOM, nt, null);
|
|
60043
60043
|
};
|
|
60044
|
-
return e.sanitize = function(
|
|
60044
|
+
return e.sanitize = function(Wt) {
|
|
60045
60045
|
let nt = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, It = null, Ut = null, lr = null, gr = null;
|
|
60046
|
-
if (
|
|
60047
|
-
if (typeof
|
|
60048
|
-
if (
|
|
60046
|
+
if (sr = !Wt, sr && (Wt = "<!-->"), typeof Wt != "string" && !Zr(Wt))
|
|
60047
|
+
if (typeof Wt.toString == "function") {
|
|
60048
|
+
if (Wt = Wt.toString(), typeof Wt != "string")
|
|
60049
60049
|
throw typeErrorCreate("dirty is not a string, aborting");
|
|
60050
60050
|
} else
|
|
60051
60051
|
throw typeErrorCreate("toString is not a function");
|
|
60052
60052
|
if (!e.isSupported)
|
|
60053
|
-
return
|
|
60054
|
-
if (yt ||
|
|
60055
|
-
if (
|
|
60056
|
-
const
|
|
60057
|
-
if (!Ge[
|
|
60053
|
+
return Wt;
|
|
60054
|
+
if (yt || wr(nt), e.removed = [], typeof Wt == "string" && (ft = !1), ft) {
|
|
60055
|
+
if (Wt.nodeName) {
|
|
60056
|
+
const Pr = dr(Wt.nodeName);
|
|
60057
|
+
if (!Ge[Pr] || Qe[Pr])
|
|
60058
60058
|
throw typeErrorCreate("root node is forbidden and cannot be sanitized in-place");
|
|
60059
60059
|
}
|
|
60060
|
-
} else if (
|
|
60061
|
-
It = Kr("<!---->"), Ut = It.ownerDocument.importNode(
|
|
60060
|
+
} else if (Wt instanceof g)
|
|
60061
|
+
It = Kr("<!---->"), Ut = It.ownerDocument.importNode(Wt, !0), Ut.nodeType === NODE_TYPE.element && Ut.nodeName === "BODY" || Ut.nodeName === "HTML" ? It = Ut : It.appendChild(Ut);
|
|
60062
60062
|
else {
|
|
60063
60063
|
if (!qt && !Ue && !Je && // eslint-disable-next-line unicorn/prefer-includes
|
|
60064
|
-
|
|
60065
|
-
return Q && Ft ? Q.createHTML(
|
|
60066
|
-
if (It = Kr(
|
|
60064
|
+
Wt.indexOf("<") === -1)
|
|
60065
|
+
return Q && Ft ? Q.createHTML(Wt) : Wt;
|
|
60066
|
+
if (It = Kr(Wt), !It)
|
|
60067
60067
|
return qt ? null : Ft ? j : "";
|
|
60068
60068
|
}
|
|
60069
|
-
It && Mt &&
|
|
60070
|
-
const ur = Yr(ft ?
|
|
60069
|
+
It && Mt && _r(It.firstChild);
|
|
60070
|
+
const ur = Yr(ft ? Wt : It);
|
|
60071
60071
|
for (; lr = ur.nextNode(); )
|
|
60072
60072
|
rn(lr), Xr(lr), lr.content instanceof d && on(lr.content);
|
|
60073
60073
|
if (ft)
|
|
60074
|
-
return
|
|
60074
|
+
return Wt;
|
|
60075
60075
|
if (qt) {
|
|
60076
60076
|
if (Ht)
|
|
60077
60077
|
for (gr = ne.call(It.ownerDocument); It.firstChild; )
|
|
@@ -60082,28 +60082,28 @@ function createDOMPurify() {
|
|
|
60082
60082
|
}
|
|
60083
60083
|
let vr = Je ? It.outerHTML : It.innerHTML;
|
|
60084
60084
|
return Je && Ge["!doctype"] && It.ownerDocument && It.ownerDocument.doctype && It.ownerDocument.doctype.name && regExpTest(DOCTYPE_NAME, It.ownerDocument.doctype.name) && (vr = "<!DOCTYPE " + It.ownerDocument.doctype.name + `>
|
|
60085
|
-
` + vr), Ue && arrayForEach([Ae, $e, Ne], (
|
|
60086
|
-
vr = stringReplace(vr,
|
|
60085
|
+
` + vr), Ue && arrayForEach([Ae, $e, Ne], (Pr) => {
|
|
60086
|
+
vr = stringReplace(vr, Pr, " ");
|
|
60087
60087
|
}), Q && Ft ? Q.createHTML(vr) : vr;
|
|
60088
60088
|
}, e.setConfig = function() {
|
|
60089
|
-
let
|
|
60090
|
-
|
|
60089
|
+
let Wt = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
60090
|
+
wr(Wt), yt = !0;
|
|
60091
60091
|
}, e.clearConfig = function() {
|
|
60092
|
-
|
|
60093
|
-
}, e.isValidAttribute = function(
|
|
60094
|
-
|
|
60095
|
-
const Ut = dr(
|
|
60092
|
+
Ir = null, yt = !1;
|
|
60093
|
+
}, e.isValidAttribute = function(Wt, nt, It) {
|
|
60094
|
+
Ir || wr({});
|
|
60095
|
+
const Ut = dr(Wt), lr = dr(nt);
|
|
60096
60096
|
return nn(Ut, lr, It);
|
|
60097
|
-
}, e.addHook = function(
|
|
60098
|
-
typeof nt == "function" && arrayPush(se[
|
|
60099
|
-
}, e.removeHook = function(
|
|
60097
|
+
}, e.addHook = function(Wt, nt) {
|
|
60098
|
+
typeof nt == "function" && arrayPush(se[Wt], nt);
|
|
60099
|
+
}, e.removeHook = function(Wt, nt) {
|
|
60100
60100
|
if (nt !== void 0) {
|
|
60101
|
-
const It = arrayLastIndexOf(se[
|
|
60102
|
-
return It === -1 ? void 0 : arraySplice(se[
|
|
60101
|
+
const It = arrayLastIndexOf(se[Wt], nt);
|
|
60102
|
+
return It === -1 ? void 0 : arraySplice(se[Wt], It, 1)[0];
|
|
60103
60103
|
}
|
|
60104
|
-
return arrayPop(se[
|
|
60105
|
-
}, e.removeHooks = function(
|
|
60106
|
-
se[
|
|
60104
|
+
return arrayPop(se[Wt]);
|
|
60105
|
+
}, e.removeHooks = function(Wt) {
|
|
60106
|
+
se[Wt] = [];
|
|
60107
60107
|
}, e.removeAllHooks = function() {
|
|
60108
60108
|
se = _createHooksMap();
|
|
60109
60109
|
}, e;
|
|
@@ -60412,7 +60412,7 @@ const DebugMessageDisplay = ({ debugMessages: t }) => {
|
|
|
60412
60412
|
reset: oe
|
|
60413
60413
|
} = useAIAssistant({ userId: t, smartAndSlow: E });
|
|
60414
60414
|
useEffect(() => {
|
|
60415
|
-
const
|
|
60415
|
+
const pt = {
|
|
60416
60416
|
partner1: t,
|
|
60417
60417
|
partner2: ASSISTANT_ID,
|
|
60418
60418
|
name: "Randmar Assistant",
|
|
@@ -60422,152 +60422,156 @@ const DebugMessageDisplay = ({ debugMessages: t }) => {
|
|
|
60422
60422
|
conversationID: -1
|
|
60423
60423
|
};
|
|
60424
60424
|
if (o === !0) {
|
|
60425
|
-
|
|
60425
|
+
Le([pt]);
|
|
60426
60426
|
return;
|
|
60427
60427
|
}
|
|
60428
60428
|
if (!g) return;
|
|
60429
60429
|
(async () => {
|
|
60430
|
-
const
|
|
60431
|
-
var
|
|
60432
|
-
const
|
|
60430
|
+
const Kt = g.map(async (ar) => {
|
|
60431
|
+
var Tr, pr, yr;
|
|
60432
|
+
const Sr = await q({
|
|
60433
60433
|
routeApplicationId: t,
|
|
60434
|
-
conversationId:
|
|
60434
|
+
conversationId: ar.ConversationId
|
|
60435
60435
|
});
|
|
60436
60436
|
return {
|
|
60437
|
-
partner1:
|
|
60438
|
-
partner2:
|
|
60439
|
-
name: ((
|
|
60440
|
-
unread: ((pr =
|
|
60441
|
-
pending:
|
|
60442
|
-
messages: ((yr =
|
|
60437
|
+
partner1: ar.Participant1,
|
|
60438
|
+
partner2: ar.Participant2,
|
|
60439
|
+
name: ((Tr = ar.Participant) == null ? void 0 : Tr.PublicName) ?? "missing public name",
|
|
60440
|
+
unread: ((pr = Sr.data) == null ? void 0 : pr.filter((tr) => !tr.Read && tr.SenderId != t).length) ?? 0,
|
|
60441
|
+
pending: ar.Status !== "Approved",
|
|
60442
|
+
messages: ((yr = Sr.data) == null ? void 0 : yr.map((tr) => ({
|
|
60443
60443
|
id: "history" + tr.MessageId,
|
|
60444
60444
|
fromPartnerID: tr.SenderId,
|
|
60445
|
-
toPartnerID: tr.SenderId ==
|
|
60445
|
+
toPartnerID: tr.SenderId == ar.Participant1 ? ar.Participant2 : ar.Participant1,
|
|
60446
60446
|
senderName: tr.SenderName ?? "missing name",
|
|
60447
60447
|
timestamp: (/* @__PURE__ */ new Date(tr.SentDate + "Z")).getTime(),
|
|
60448
60448
|
content: tr.Content ?? "no content"
|
|
60449
60449
|
}))) ?? [],
|
|
60450
|
-
conversationID:
|
|
60450
|
+
conversationID: ar.ConversationId
|
|
60451
60451
|
};
|
|
60452
|
-
}),
|
|
60453
|
-
|
|
60454
|
-
var
|
|
60455
|
-
return (
|
|
60452
|
+
}), sr = await Promise.all(Kt);
|
|
60453
|
+
sr.sort(sortChats), Le([pt, ...sr]), setTimeout(() => {
|
|
60454
|
+
var ar;
|
|
60455
|
+
return (ar = Ue.current) == null ? void 0 : ar.focus();
|
|
60456
60456
|
}, 50);
|
|
60457
60457
|
})();
|
|
60458
60458
|
}, [g, o, t]);
|
|
60459
|
-
const [ge, se] = useState("approved"), [Ae, $e] = useState([t, ASSISTANT_ID]), [Ne, Ve] = useState(""), [je, ze] = useState(null), [Oe, Le] = useState(
|
|
60459
|
+
const [ge, se] = useState("approved"), [Ae, $e] = useState([t, ASSISTANT_ID]), [Ne, Ve] = useState(""), [je, ze] = useState(null), [Oe, Le] = useState([]), [qe, Ge] = useState(""), [He, Ze] = useState(null), tt = useRef(null), Ye = useRef(null), [Qe, Xe] = useState(null), [ot, rt] = useState([]), [at, st] = useState([]), Ue = n || Ye, Rt = useRef(null), { toast: Je } = useToast(), yt = () => Oe.find((pt) => pt.partner1 === (Ae == null ? void 0 : Ae[0]) && pt.partner2 === (Ae == null ? void 0 : Ae[1])), Mt = () => (Ae == null ? void 0 : Ae[0]) === ASSISTANT_ID || (Ae == null ? void 0 : Ae[1]) === ASSISTANT_ID;
|
|
60460
60460
|
function qt() {
|
|
60461
|
-
const
|
|
60462
|
-
|
|
60461
|
+
const pt = yt();
|
|
60462
|
+
pt && (Mt() || O({ routeApplicationId: t, conversationId: pt.conversationID }));
|
|
60463
60463
|
}
|
|
60464
60464
|
useEffect(() => {
|
|
60465
60465
|
d && F && (I.current || Mt() && (I.current = !0, Ke(d)));
|
|
60466
|
-
}, [d, F, Ae, I])
|
|
60467
|
-
|
|
60468
|
-
|
|
60469
|
-
|
|
60470
|
-
|
|
60471
|
-
|
|
60472
|
-
return ge === "approved" ? Wt && !mt.pending : ge === "pending" ? Wt && mt.pending : Wt;
|
|
60473
|
-
}), [qe, He, ge]);
|
|
60466
|
+
}, [d, F, Ae, I]);
|
|
60467
|
+
const Ht = useMemo(() => Oe.filter((pt) => {
|
|
60468
|
+
if (pt.partner1 === ASSISTANT_ID || pt.partner2 === ASSISTANT_ID) return !0;
|
|
60469
|
+
const Kt = pt.name.toLowerCase().includes(qe.toLowerCase());
|
|
60470
|
+
return ge === "approved" ? Kt && !pt.pending : ge === "pending" ? Kt && pt.pending : Kt;
|
|
60471
|
+
}), [Oe, qe, ge]);
|
|
60474
60472
|
useEffect(() => {
|
|
60475
|
-
var
|
|
60476
|
-
|
|
60477
|
-
}, [
|
|
60478
|
-
Q.length !== 0 && (Q.forEach((
|
|
60479
|
-
if (!
|
|
60473
|
+
var pt;
|
|
60474
|
+
Qe !== null && (Je({ title: "File attached", description: "Add your instruction before sending.", variant: "success" }), (pt = Ue.current) == null || pt.focus());
|
|
60475
|
+
}, [Qe]), useEffect(() => {
|
|
60476
|
+
Q.length !== 0 && (Q.forEach((pt) => {
|
|
60477
|
+
if (!pt || pt.isComponent)
|
|
60480
60478
|
return;
|
|
60481
60479
|
const Zt = {
|
|
60482
|
-
id:
|
|
60480
|
+
id: pt.timestamp.toString(),
|
|
60483
60481
|
fromPartnerID: ASSISTANT_ID,
|
|
60484
60482
|
toPartnerID: t,
|
|
60485
60483
|
senderName: "Assistant",
|
|
60486
|
-
timestamp:
|
|
60487
|
-
content:
|
|
60484
|
+
timestamp: pt.timestamp.getTime(),
|
|
60485
|
+
content: pt.content
|
|
60488
60486
|
};
|
|
60489
60487
|
Ft(Zt);
|
|
60490
60488
|
}), j());
|
|
60491
60489
|
}, [Q]);
|
|
60492
|
-
|
|
60493
|
-
Ge((Zt) => Zt.map((Wt) => {
|
|
60494
|
-
let nr = Wt.partner1 === mt.fromPartnerID && Wt.partner2 === mt.toPartnerID;
|
|
60495
|
-
return nr || (nr = Wt.partner1 === mt.toPartnerID && Wt.partner2 === mt.fromPartnerID), !nr || Wt.messages.some((sr) => sr.id === mt.id) ? Wt : (Le([Wt.partner1, Wt.partner2]), { ...Wt, unread: Wt.unread + 1, messages: [...Wt.messages, mt] });
|
|
60496
|
-
}).sort(sortChats));
|
|
60497
|
-
}
|
|
60490
|
+
const Ft = (pt) => st((Zt) => [...Zt, pt]);
|
|
60498
60491
|
useEffect(() => {
|
|
60492
|
+
at.length != 0 && (at.forEach((pt) => {
|
|
60493
|
+
Le((Zt) => Zt.map((Kt) => {
|
|
60494
|
+
let sr = Kt.partner1 === pt.fromPartnerID && Kt.partner2 === pt.toPartnerID;
|
|
60495
|
+
if (sr || (sr = Kt.partner1 === pt.toPartnerID && Kt.partner2 === pt.fromPartnerID), !sr || Kt.messages.some((Sr) => Sr.id === pt.id))
|
|
60496
|
+
return Kt;
|
|
60497
|
+
let ar = 1;
|
|
60498
|
+
return (Ae == null ? void 0 : Ae[0]) == Kt.partner1 && Ae[1] == Kt.partner2 && (ar = 0, qt(), setTimeout(() => {
|
|
60499
|
+
var Sr;
|
|
60500
|
+
return (Sr = tt.current) == null ? void 0 : Sr.scrollIntoView({ behavior: "smooth" });
|
|
60501
|
+
}, 50), Kt.pending && se("approved")), { ...Kt, pending: !1, unread: Kt.unread + ar, messages: [...Kt.messages, pt] };
|
|
60502
|
+
}).sort(sortChats));
|
|
60503
|
+
}), st([]));
|
|
60504
|
+
}, [at, st, Le, $e, Ae]), useEffect(() => {
|
|
60499
60505
|
if (o === !0) return;
|
|
60500
|
-
const
|
|
60506
|
+
const pt = new HubConnectionBuilder().withUrl("https://api.randmar.io/hub", {
|
|
60501
60507
|
accessTokenFactory: () => localStorage.getItem("access_token"),
|
|
60502
60508
|
headers: { "X-Impersonated-Id": t }
|
|
60503
60509
|
}).configureLogging(LogLevel.Information).withAutomaticReconnect().withHubProtocol(new JsonHubProtocol()).build();
|
|
60504
|
-
return
|
|
60505
|
-
|
|
60510
|
+
return pt.on("ReceiveMessage", Ft), pt.start().catch((Zt) => console.error("Error connecting to SignalR hub:", Zt)), Ze(pt), () => {
|
|
60511
|
+
pt && pt.stop();
|
|
60506
60512
|
};
|
|
60507
60513
|
}, [t, o]), useEffect(() => {
|
|
60508
|
-
(Oe == null ? void 0 : Oe[0]) !== (Ae == null ? void 0 : Ae[0]) || (Oe == null ? void 0 : Oe[1]) !== (Ae == null ? void 0 : Ae[1]) || (qt(), Ge((mt) => mt.map((Zt) => Zt.partner1 === (Ae == null ? void 0 : Ae[0]) && Zt.partner2 === (Ae == null ? void 0 : Ae[1]) ? { ...Zt, unread: 0 } : Zt)), setTimeout(() => {
|
|
60509
|
-
var mt;
|
|
60510
|
-
return (mt = rt.current) == null ? void 0 : mt.scrollIntoView({ behavior: "smooth" });
|
|
60511
|
-
}, 50));
|
|
60512
|
-
}, [Oe, Ae]), useEffect(() => {
|
|
60513
60514
|
var Zt;
|
|
60514
60515
|
if (!Ae) return;
|
|
60515
|
-
const
|
|
60516
|
-
|
|
60517
|
-
var
|
|
60518
|
-
return (
|
|
60516
|
+
const pt = yt();
|
|
60517
|
+
pt && ((Zt = Ue.current) == null || Zt.focus(), pt.unread > 0 && (qt(), Le((Kt) => Kt.map((sr) => sr.partner1 === Ae[0] && sr.partner2 === Ae[1] ? { ...sr, unread: 0 } : sr))), setTimeout(() => {
|
|
60518
|
+
var Kt;
|
|
60519
|
+
return (Kt = tt.current) == null ? void 0 : Kt.scrollIntoView({ behavior: "smooth" });
|
|
60519
60520
|
}, 50));
|
|
60520
|
-
}, [
|
|
60521
|
-
const Ke = (
|
|
60521
|
+
}, [Oe, Ae]);
|
|
60522
|
+
const Ke = (pt) => {
|
|
60522
60523
|
if (!Ae) return;
|
|
60523
60524
|
const Zt = {
|
|
60524
60525
|
id: crypto.randomUUID(),
|
|
60525
60526
|
senderName: e,
|
|
60526
60527
|
fromPartnerID: t,
|
|
60527
60528
|
toPartnerID: Ae[0] === t ? Ae[1] : Ae[0],
|
|
60528
|
-
content:
|
|
60529
|
+
content: pt + (Qe ? ` (${Qe == null ? void 0 : Qe.name} attached)` : ""),
|
|
60529
60530
|
timestamp: Date.now()
|
|
60530
60531
|
};
|
|
60531
|
-
|
|
60532
|
-
},
|
|
60533
|
-
|
|
60534
|
-
|
|
60535
|
-
|
|
60536
|
-
|
|
60537
|
-
|
|
60538
|
-
|
|
60532
|
+
Ft(Zt), Zt.toPartnerID == ASSISTANT_ID ? (z(Zt.content, Qe ?? void 0), Qe && rt((Kt) => [...Kt, Qe.name])) : He.invoke("NewMessage", Zt).catch((Kt) => console.error("Error sending message:", Kt)), Ve(""), Xe(null), Rt.current && (Rt.current.value = "");
|
|
60533
|
+
}, it = (pt, Zt) => ze([pt, Zt]);
|
|
60534
|
+
if (useEffect(() => {
|
|
60535
|
+
if (je === null) return;
|
|
60536
|
+
const pt = Oe.find((Kt) => Kt.conversationID === je[0]);
|
|
60537
|
+
if (pt && (pt.pending && se("pending"), $e([pt.partner1, pt.partner2]), !(je[0] === -1 && !F) && !(je[0] !== -1 && !He))) {
|
|
60538
|
+
var Zt = je[1];
|
|
60539
|
+
ze(null), Zt && Ke(Zt);
|
|
60540
|
+
}
|
|
60541
|
+
}, [je, Oe, se, $e, F, He]), useImperativeHandle(f, () => ({
|
|
60542
|
+
setActiveChatAndSendMessage: it
|
|
60539
60543
|
})), !F)
|
|
60540
60544
|
return /* @__PURE__ */ jsx(Fragment$1, { children: /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center p-8", children: /* @__PURE__ */ jsxs("div", { className: "text-center", children: [
|
|
60541
60545
|
/* @__PURE__ */ jsx("div", { className: "animate-spin rounded-full h-12 w-12 border-b-2 border-primary mx-auto mb-4" }),
|
|
60542
60546
|
/* @__PURE__ */ jsx("p", { children: "Loading API functions..." })
|
|
60543
60547
|
] }) }) });
|
|
60544
|
-
const
|
|
60545
|
-
var
|
|
60548
|
+
const et = (pt) => {
|
|
60549
|
+
var Kt;
|
|
60546
60550
|
if (!Mt()) return;
|
|
60547
|
-
const Zt = (
|
|
60551
|
+
const Zt = (Kt = pt.clipboardData) == null ? void 0 : Kt.items;
|
|
60548
60552
|
if (Zt) {
|
|
60549
|
-
for (let
|
|
60550
|
-
if (Zt[
|
|
60551
|
-
const
|
|
60552
|
-
if (
|
|
60553
|
-
|
|
60553
|
+
for (let sr = 0; sr < Zt.length; sr++)
|
|
60554
|
+
if (Zt[sr].type.indexOf("image") !== -1) {
|
|
60555
|
+
const ar = Zt[sr].getAsFile();
|
|
60556
|
+
if (ar) {
|
|
60557
|
+
Xe(ar);
|
|
60554
60558
|
return;
|
|
60555
60559
|
}
|
|
60556
60560
|
}
|
|
60557
60561
|
}
|
|
60558
60562
|
}, ut = () => {
|
|
60559
|
-
!Ne.trim() || !Ae || o !== !0 && !
|
|
60560
|
-
}, ft = (
|
|
60561
|
-
|
|
60563
|
+
!Ne.trim() || !Ae || o !== !0 && !He || Ke(Ne);
|
|
60564
|
+
}, ft = (pt) => {
|
|
60565
|
+
pt.target.files && pt.target.files[0] ? Xe(pt.target.files[0]) : Xe(null);
|
|
60562
60566
|
}, dt = () => {
|
|
60563
|
-
var
|
|
60564
|
-
(
|
|
60567
|
+
var pt;
|
|
60568
|
+
(pt = Rt.current) == null || pt.click();
|
|
60565
60569
|
}, Ct = () => {
|
|
60566
|
-
var
|
|
60567
|
-
|
|
60570
|
+
var pt;
|
|
60571
|
+
Xe(null), Je({ title: "File removed", description: "No file will be sent to the assistant.", variant: "secondary" }), (pt = Ue.current) == null || pt.focus();
|
|
60568
60572
|
}, zt = () => {
|
|
60569
60573
|
const Zt = {
|
|
60570
|
-
messages:
|
|
60574
|
+
messages: Oe.find((Kt) => Kt.partner1 === ASSISTANT_ID || Kt.partner2 === ASSISTANT_ID),
|
|
60571
60575
|
debug: te
|
|
60572
60576
|
};
|
|
60573
60577
|
S({
|
|
@@ -60577,17 +60581,17 @@ const DebugMessageDisplay = ({ debugMessages: t }) => {
|
|
|
60577
60581
|
});
|
|
60578
60582
|
}, Yt = async () => {
|
|
60579
60583
|
A.current && (A.current.disabled = !0), await M({ routeApplicationId: t, partnerId: "2" }), await b();
|
|
60580
|
-
},
|
|
60581
|
-
|
|
60584
|
+
}, ir = () => {
|
|
60585
|
+
Le((pt) => pt.map((Kt) => Kt.partner1 !== ASSISTANT_ID && Kt.partner2 !== ASSISTANT_ID ? Kt : { ...Kt, messages: [] })), rt([]), oe();
|
|
60582
60586
|
}, cr = () => {
|
|
60583
60587
|
Ae && _({ routeApplicationId: t, partnerId: Ae[0] == t ? Ae[1] : Ae[0] }).then(() => {
|
|
60584
60588
|
se("approved");
|
|
60585
60589
|
});
|
|
60586
|
-
},
|
|
60590
|
+
}, mt = yt(), xr = Oe.filter((pt) => pt.pending).length;
|
|
60587
60591
|
return /* @__PURE__ */ jsxs("div", { className: cn("flex overflow-hidden", l), children: [
|
|
60588
60592
|
o !== !0 && /* @__PURE__ */ jsx(Fragment$1, { children: /* @__PURE__ */ jsxs("div", { className: "w-[260px] p-4 pt-3 flex flex-col border-r", children: [
|
|
60589
60593
|
/* @__PURE__ */ jsx("div", { className: "p-4 font-semibold border-b", children: "Communications" }),
|
|
60590
|
-
|
|
60594
|
+
Oe.length > 1 && /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
60591
60595
|
/* @__PURE__ */ jsx("div", { className: "p-2", children: /* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
60592
60596
|
/* @__PURE__ */ jsx(Search, { className: "absolute left-2 top-1/2 transform -translate-y-1/2 h-4 w-4 text-muted-foreground" }),
|
|
60593
60597
|
/* @__PURE__ */ jsx(
|
|
@@ -60595,8 +60599,8 @@ const DebugMessageDisplay = ({ debugMessages: t }) => {
|
|
|
60595
60599
|
{
|
|
60596
60600
|
placeholder: "Search chats...",
|
|
60597
60601
|
className: "pl-8 h-9",
|
|
60598
|
-
value:
|
|
60599
|
-
onChange: (
|
|
60602
|
+
value: qe,
|
|
60603
|
+
onChange: (pt) => Ge(pt.target.value)
|
|
60600
60604
|
}
|
|
60601
60605
|
)
|
|
60602
60606
|
] }) }),
|
|
@@ -60608,46 +60612,46 @@ const DebugMessageDisplay = ({ debugMessages: t }) => {
|
|
|
60608
60612
|
] })
|
|
60609
60613
|
] }) })
|
|
60610
60614
|
] }),
|
|
60611
|
-
/* @__PURE__ */ jsx("div", { className: "mt-1 mb-1", children:
|
|
60612
|
-
/* @__PURE__ */ jsx(ScrollArea, { className: "flex-1", children:
|
|
60615
|
+
/* @__PURE__ */ jsx("div", { className: "mt-1 mb-1", children: Oe.findIndex((pt) => pt.partner1 === "2" || pt.partner2 === "2") < 0 ? /* @__PURE__ */ jsx(Button, { className: "w-full", ref: A, onClick: () => Yt(), children: "Chat with Randmar" }, "b1") : ge === "approved" && Oe.length >= 5 ? null : /* @__PURE__ */ jsx("a", { target: "_blank", href: `https://dashboard.randmar.io/${t}/ExploreManufacturers`, children: /* @__PURE__ */ jsx(Button, { className: "w-full", children: "Explore manufacturers" }, "b2") }) }),
|
|
60616
|
+
/* @__PURE__ */ jsx(ScrollArea, { className: "flex-1", children: Oe.length > 0 && /* @__PURE__ */ jsx(ChatList, { userId: t, chats: Ht.filter((pt) => pt.partner1 !== ASSISTANT_ID && pt.partner2 !== ASSISTANT_ID), activeChat: mt ?? null, onSelectChat: $e }) }),
|
|
60613
60617
|
/* @__PURE__ */ jsx(Separator$1, { className: "mt-auto" }),
|
|
60614
|
-
/* @__PURE__ */ jsx("div", { className: "pt-1", children:
|
|
60618
|
+
/* @__PURE__ */ jsx("div", { className: "pt-1", children: Oe.find((pt) => pt.partner1 === ASSISTANT_ID || pt.partner2 === ASSISTANT_ID) && /* @__PURE__ */ jsx(ChatList, { userId: t, chats: Ht.filter((pt) => pt.partner1 === ASSISTANT_ID || pt.partner2 === ASSISTANT_ID), activeChat: mt ?? null, onSelectChat: $e, assistantStickyMode: !0 }) })
|
|
60615
60619
|
] }) }),
|
|
60616
60620
|
/* @__PURE__ */ jsx("div", { className: "flex-5 flex flex-col", children: Ae ? /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
60617
60621
|
/* @__PURE__ */ jsx("div", { className: "flex items-center p-4 border-b", children: Ae[0] == ASSISTANT_ID || Ae[1] == ASSISTANT_ID ? /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
60618
60622
|
/* @__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" }) }),
|
|
60619
60623
|
/* @__PURE__ */ jsx("div", { className: "ml-3 font-medium", children: "Randmar Assistant" }),
|
|
60620
60624
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2 ml-auto", children: [
|
|
60621
|
-
/* @__PURE__ */ jsx(Switch, { id: "smartSwitch", disabled: !!ne, checked: E, onCheckedChange: (
|
|
60622
|
-
|
|
60625
|
+
/* @__PURE__ */ jsx(Switch, { id: "smartSwitch", disabled: !!ne, checked: E, onCheckedChange: (pt) => {
|
|
60626
|
+
ir(), setTimeout(() => R(pt), 20);
|
|
60623
60627
|
} }),
|
|
60624
60628
|
/* @__PURE__ */ jsx(Label$2, { htmlFor: "smartSwitch", children: "Think harder" })
|
|
60625
60629
|
] }),
|
|
60626
|
-
/* @__PURE__ */ jsx(Button, { variant: "ghost", size: "icon", className: "ml-1", onClick: () =>
|
|
60630
|
+
/* @__PURE__ */ jsx(Button, { variant: "ghost", size: "icon", className: "ml-1", onClick: () => ir(), children: /* @__PURE__ */ jsx(MessageCircleX, { className: "h-5 w-5" }) }),
|
|
60627
60631
|
/* @__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: () => zt() }, children: /* @__PURE__ */ jsx(MessageSquareShare, { className: "h-5 w-5" }) })
|
|
60628
60632
|
] }) : /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
60629
60633
|
/* @__PURE__ */ jsxs(Avatar, { className: "h-8 w-8 flex-shrink-0 rounded-none", children: [
|
|
60630
60634
|
/* @__PURE__ */ jsx(AvatarImage, { src: `https://api.randmar.io/v4/Partner/${Ae[0] === t ? Ae[1] : Ae[0]}/Account/Logo?height=72&width=72`, className: " object-contain " }),
|
|
60631
60635
|
/* @__PURE__ */ jsx(AvatarFallback, { children: /* @__PURE__ */ jsx(Handshake, { className: "text-primary fill-white min-h-full" }) })
|
|
60632
60636
|
] }),
|
|
60633
|
-
/* @__PURE__ */ jsx("div", { className: "ml-3 font-medium", children:
|
|
60637
|
+
/* @__PURE__ */ jsx("div", { className: "ml-3 font-medium", children: mt == null ? void 0 : mt.name }),
|
|
60634
60638
|
/* @__PURE__ */ jsx("div", { className: "flex items-center space-x-2 ml-auto", children: /* @__PURE__ */ jsx("a", { href: `https://dashboard.randmar.io/${t}/Partner/${Ae[0] === t ? Ae[1] : Ae[0]}`, target: "_blank", children: /* @__PURE__ */ jsx(Button, { children: "View Partner" }) }) })
|
|
60635
60639
|
] }) }),
|
|
60636
|
-
|
|
60640
|
+
mt != null && mt.pending && mt.partner1 == t ? /* @__PURE__ */ jsx("p", { className: "mt-8 p-2 mx-auto", children: "This conversation is awaiting approval by the other party — please check back later." }) : /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
60637
60641
|
/* @__PURE__ */ jsxs(ScrollArea, { className: "flex-1 pl-2 pr-2 bg-slate-50", children: [
|
|
60638
60642
|
/* @__PURE__ */ jsx(
|
|
60639
60643
|
ChatMessages,
|
|
60640
60644
|
{
|
|
60641
|
-
messages: (
|
|
60645
|
+
messages: (mt == null ? void 0 : mt.messages) ?? [],
|
|
60642
60646
|
currentUserId: t,
|
|
60643
60647
|
isAssistantChat: Mt(),
|
|
60644
60648
|
botStatus: Mt() ? ne : ""
|
|
60645
60649
|
}
|
|
60646
60650
|
),
|
|
60647
|
-
/* @__PURE__ */ jsx("div", { ref:
|
|
60651
|
+
/* @__PURE__ */ jsx("div", { ref: tt })
|
|
60648
60652
|
] }),
|
|
60649
60653
|
/* @__PURE__ */ jsxs("div", { className: "p-4 border-t border-r flex", children: [
|
|
60650
|
-
(
|
|
60654
|
+
(mt == null ? void 0 : mt.pending) && /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
60651
60655
|
/* @__PURE__ */ jsxs(Button, { disabled: C, onClick: () => cr(), children: [
|
|
60652
60656
|
/* @__PURE__ */ jsx(Handshake, {}),
|
|
60653
60657
|
"Accept Conversation Request"
|
|
@@ -60663,12 +60667,12 @@ const DebugMessageDisplay = ({ debugMessages: t }) => {
|
|
|
60663
60667
|
ref: Ue,
|
|
60664
60668
|
placeholder: "Type a message...",
|
|
60665
60669
|
value: Ne,
|
|
60666
|
-
onPaste:
|
|
60667
|
-
onChange: (
|
|
60668
|
-
onKeyDown: (
|
|
60669
|
-
|
|
60670
|
+
onPaste: et,
|
|
60671
|
+
onChange: (pt) => Ve(pt.target.value),
|
|
60672
|
+
onKeyDown: (pt) => {
|
|
60673
|
+
pt.key !== "Enter" || pt.shiftKey || (pt.preventDefault(), ut());
|
|
60670
60674
|
},
|
|
60671
|
-
className:
|
|
60675
|
+
className: mt != null && mt.pending ? "collapse" : "flex-1 resize-none"
|
|
60672
60676
|
}
|
|
60673
60677
|
),
|
|
60674
60678
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center", children: [
|
|
@@ -60677,8 +60681,8 @@ const DebugMessageDisplay = ({ debugMessages: t }) => {
|
|
|
60677
60681
|
{
|
|
60678
60682
|
size: "icon",
|
|
60679
60683
|
variant: "default",
|
|
60680
|
-
className:
|
|
60681
|
-
disabled: !!ne || (
|
|
60684
|
+
className: mt != null && mt.pending ? "collapse" : "ml-2 h-8 w-8",
|
|
60685
|
+
disabled: !!ne || (mt == null ? void 0 : mt.pending),
|
|
60682
60686
|
onClick: ut,
|
|
60683
60687
|
children: /* @__PURE__ */ jsx(Send, { className: "h-6 w-6" })
|
|
60684
60688
|
}
|
|
@@ -60699,8 +60703,8 @@ const DebugMessageDisplay = ({ debugMessages: t }) => {
|
|
|
60699
60703
|
size: "icon",
|
|
60700
60704
|
variant: "default",
|
|
60701
60705
|
onClick: dt,
|
|
60702
|
-
className:
|
|
60703
|
-
disabled: ne !== "" || (
|
|
60706
|
+
className: mt != null && mt.pending ? "collapse" : "ml-2 h-8 w-8",
|
|
60707
|
+
disabled: ne !== "" || (mt == null ? void 0 : mt.pending) || !!Qe,
|
|
60704
60708
|
children: /* @__PURE__ */ jsx(Paperclip, { className: "h-5 w-5" })
|
|
60705
60709
|
}
|
|
60706
60710
|
),
|
|
@@ -60710,8 +60714,8 @@ const DebugMessageDisplay = ({ debugMessages: t }) => {
|
|
|
60710
60714
|
size: "icon",
|
|
60711
60715
|
variant: "default",
|
|
60712
60716
|
onClick: Ct,
|
|
60713
|
-
className:
|
|
60714
|
-
disabled: ne !== "" || (
|
|
60717
|
+
className: mt != null && mt.pending ? "collapse" : "ml-2 h-8 w-8",
|
|
60718
|
+
disabled: ne !== "" || (mt == null ? void 0 : mt.pending) || !Qe,
|
|
60715
60719
|
children: /* @__PURE__ */ jsx(Trash, { className: "h-5 w-5" })
|
|
60716
60720
|
}
|
|
60717
60721
|
)
|
|
@@ -60723,16 +60727,16 @@ const DebugMessageDisplay = ({ debugMessages: t }) => {
|
|
|
60723
60727
|
/* @__PURE__ */ jsx("div", { "data-thin": Mt(), className: "w-[480px] flex flex-col border-l flex-4 data-[thin=true]:flex-2", children: Mt() ? /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
60724
60728
|
/* @__PURE__ */ jsx("div", { className: "flex items-center p-4 border-b", children: /* @__PURE__ */ jsx("p", { className: "h-9 text-base/9", children: "Sources and System Info" }) }),
|
|
60725
60729
|
/* @__PURE__ */ jsx(ScrollArea, { className: "flex-1 pl-2 pr-2 bg-slate-50", children: /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
60726
|
-
|
|
60730
|
+
Qe ? /* @__PURE__ */ jsx(Fragment$1, { children: /* @__PURE__ */ jsxs("div", { className: "flex", children: [
|
|
60727
60731
|
/* @__PURE__ */ jsx(File, {}),
|
|
60728
60732
|
" ",
|
|
60729
|
-
|
|
60733
|
+
Qe.name,
|
|
60730
60734
|
" (pending send...)"
|
|
60731
60735
|
] }) }) : ot.length ? /* @__PURE__ */ jsx(Fragment$1, {}) : /* @__PURE__ */ jsx("p", { children: "No files attached to this conversation yet." }),
|
|
60732
|
-
ot.slice().reverse().map((
|
|
60736
|
+
ot.slice().reverse().map((pt) => /* @__PURE__ */ jsx(Fragment$1, { children: /* @__PURE__ */ jsxs("div", { className: "flex", children: [
|
|
60733
60737
|
/* @__PURE__ */ jsx(File, {}),
|
|
60734
60738
|
" ",
|
|
60735
|
-
|
|
60739
|
+
pt
|
|
60736
60740
|
] }) }))
|
|
60737
60741
|
] }) }),
|
|
60738
60742
|
/* @__PURE__ */ jsx(ScrollArea, { className: "flex-4 border-t pl-2 pr-2 bg-slate-50", children: /* @__PURE__ */ jsx("div", { className: "space-y-2", children: /* @__PURE__ */ jsx(DebugMessageDisplay, { debugMessages: te }) }) })
|
|
@@ -61220,47 +61224,47 @@ function createFormControl(t = {}) {
|
|
|
61220
61224
|
const E = {
|
|
61221
61225
|
array: createSubject(),
|
|
61222
61226
|
state: createSubject()
|
|
61223
|
-
}, R = e.criteriaMode === VALIDATION_MODE.all, A = (Ke) => (
|
|
61224
|
-
clearTimeout(S), S = setTimeout(Ke,
|
|
61227
|
+
}, R = e.criteriaMode === VALIDATION_MODE.all, A = (Ke) => (it) => {
|
|
61228
|
+
clearTimeout(S), S = setTimeout(Ke, it);
|
|
61225
61229
|
}, I = async (Ke) => {
|
|
61226
61230
|
if (!e.disabled && (_.isValid || C.isValid || Ke)) {
|
|
61227
|
-
const
|
|
61228
|
-
|
|
61229
|
-
isValid:
|
|
61231
|
+
const it = e.resolver ? isEmptyObject$1((await te()).errors) : await oe(o, !0);
|
|
61232
|
+
it !== n.isValid && E.state.next({
|
|
61233
|
+
isValid: it
|
|
61230
61234
|
});
|
|
61231
61235
|
}
|
|
61232
|
-
}, M = (Ke,
|
|
61233
|
-
!e.disabled && (_.isValidating || _.validatingFields || C.isValidating || C.validatingFields) && ((Ke || Array.from(g.mount)).forEach((
|
|
61234
|
-
|
|
61236
|
+
}, M = (Ke, it) => {
|
|
61237
|
+
!e.disabled && (_.isValidating || _.validatingFields || C.isValidating || C.validatingFields) && ((Ke || Array.from(g.mount)).forEach((et) => {
|
|
61238
|
+
et && (it ? set(n.validatingFields, et, it) : unset(n.validatingFields, et));
|
|
61235
61239
|
}), E.state.next({
|
|
61236
61240
|
validatingFields: n.validatingFields,
|
|
61237
61241
|
isValidating: !isEmptyObject$1(n.validatingFields)
|
|
61238
61242
|
}));
|
|
61239
|
-
}, O = (Ke,
|
|
61240
|
-
if (ut &&
|
|
61243
|
+
}, O = (Ke, it = [], et, ut, ft = !0, dt = !0) => {
|
|
61244
|
+
if (ut && et && !e.disabled) {
|
|
61241
61245
|
if (f.action = !0, dt && Array.isArray(get(o, Ke))) {
|
|
61242
|
-
const Ct =
|
|
61246
|
+
const Ct = et(get(o, Ke), ut.argA, ut.argB);
|
|
61243
61247
|
ft && set(o, Ke, Ct);
|
|
61244
61248
|
}
|
|
61245
61249
|
if (dt && Array.isArray(get(n.errors, Ke))) {
|
|
61246
|
-
const Ct =
|
|
61250
|
+
const Ct = et(get(n.errors, Ke), ut.argA, ut.argB);
|
|
61247
61251
|
ft && set(n.errors, Ke, Ct), unsetEmptyArray(n.errors, Ke);
|
|
61248
61252
|
}
|
|
61249
61253
|
if ((_.touchedFields || C.touchedFields) && dt && Array.isArray(get(n.touchedFields, Ke))) {
|
|
61250
|
-
const Ct =
|
|
61254
|
+
const Ct = et(get(n.touchedFields, Ke), ut.argA, ut.argB);
|
|
61251
61255
|
ft && set(n.touchedFields, Ke, Ct);
|
|
61252
61256
|
}
|
|
61253
61257
|
(_.dirtyFields || C.dirtyFields) && (n.dirtyFields = getDirtyFields(l, d)), E.state.next({
|
|
61254
61258
|
name: Ke,
|
|
61255
|
-
isDirty: se(Ke,
|
|
61259
|
+
isDirty: se(Ke, it),
|
|
61256
61260
|
dirtyFields: n.dirtyFields,
|
|
61257
61261
|
errors: n.errors,
|
|
61258
61262
|
isValid: n.isValid
|
|
61259
61263
|
});
|
|
61260
61264
|
} else
|
|
61261
|
-
set(d, Ke,
|
|
61262
|
-
}, q = (Ke,
|
|
61263
|
-
set(n.errors, Ke,
|
|
61265
|
+
set(d, Ke, it);
|
|
61266
|
+
}, q = (Ke, it) => {
|
|
61267
|
+
set(n.errors, Ke, it), E.state.next({
|
|
61264
61268
|
errors: n.errors
|
|
61265
61269
|
});
|
|
61266
61270
|
}, z = (Ke) => {
|
|
@@ -61268,36 +61272,36 @@ function createFormControl(t = {}) {
|
|
|
61268
61272
|
errors: n.errors,
|
|
61269
61273
|
isValid: !1
|
|
61270
61274
|
});
|
|
61271
|
-
}, Q = (Ke,
|
|
61275
|
+
}, Q = (Ke, it, et, ut) => {
|
|
61272
61276
|
const ft = get(o, Ke);
|
|
61273
61277
|
if (ft) {
|
|
61274
|
-
const dt = get(d, Ke, isUndefined(
|
|
61275
|
-
isUndefined(dt) || ut && ut.defaultChecked ||
|
|
61278
|
+
const dt = get(d, Ke, isUndefined(et) ? get(l, Ke) : et);
|
|
61279
|
+
isUndefined(dt) || ut && ut.defaultChecked || it ? set(d, Ke, it ? dt : getFieldValue(ft._f)) : Ne(Ke, dt), f.mount && I();
|
|
61276
61280
|
}
|
|
61277
|
-
}, j = (Ke,
|
|
61281
|
+
}, j = (Ke, it, et, ut, ft) => {
|
|
61278
61282
|
let dt = !1, Ct = !1;
|
|
61279
61283
|
const zt = {
|
|
61280
61284
|
name: Ke
|
|
61281
61285
|
};
|
|
61282
61286
|
if (!e.disabled) {
|
|
61283
|
-
if (!
|
|
61287
|
+
if (!et || ut) {
|
|
61284
61288
|
(_.isDirty || C.isDirty) && (Ct = n.isDirty, n.isDirty = zt.isDirty = se(), dt = Ct !== zt.isDirty);
|
|
61285
|
-
const Yt = deepEqual$1(get(l, Ke),
|
|
61289
|
+
const Yt = deepEqual$1(get(l, Ke), it);
|
|
61286
61290
|
Ct = !!get(n.dirtyFields, Ke), Yt ? unset(n.dirtyFields, Ke) : set(n.dirtyFields, Ke, !0), zt.dirtyFields = n.dirtyFields, dt = dt || (_.dirtyFields || C.dirtyFields) && Ct !== !Yt;
|
|
61287
61291
|
}
|
|
61288
|
-
if (
|
|
61292
|
+
if (et) {
|
|
61289
61293
|
const Yt = get(n.touchedFields, Ke);
|
|
61290
|
-
Yt || (set(n.touchedFields, Ke,
|
|
61294
|
+
Yt || (set(n.touchedFields, Ke, et), zt.touchedFields = n.touchedFields, dt = dt || (_.touchedFields || C.touchedFields) && Yt !== et);
|
|
61291
61295
|
}
|
|
61292
61296
|
dt && ft && E.state.next(zt);
|
|
61293
61297
|
}
|
|
61294
61298
|
return dt ? zt : {};
|
|
61295
|
-
}, F = (Ke,
|
|
61296
|
-
const ft = get(n.errors, Ke), dt = (_.isValid || C.isValid) && isBoolean(
|
|
61297
|
-
if (e.delayError &&
|
|
61299
|
+
}, F = (Ke, it, et, ut) => {
|
|
61300
|
+
const ft = get(n.errors, Ke), dt = (_.isValid || C.isValid) && isBoolean(it) && n.isValid !== it;
|
|
61301
|
+
if (e.delayError && et ? (b = A(() => q(Ke, et)), b(e.delayError)) : (clearTimeout(S), b = null, et ? set(n.errors, Ke, et) : unset(n.errors, Ke)), (et ? !deepEqual$1(ft, et) : ft) || !isEmptyObject$1(ut) || dt) {
|
|
61298
61302
|
const Ct = {
|
|
61299
61303
|
...ut,
|
|
61300
|
-
...dt && isBoolean(
|
|
61304
|
+
...dt && isBoolean(it) ? { isValid: it } : {},
|
|
61301
61305
|
errors: n.errors,
|
|
61302
61306
|
name: Ke
|
|
61303
61307
|
};
|
|
@@ -61308,19 +61312,19 @@ function createFormControl(t = {}) {
|
|
|
61308
61312
|
}
|
|
61309
61313
|
}, te = async (Ke) => {
|
|
61310
61314
|
M(Ke, !0);
|
|
61311
|
-
const
|
|
61312
|
-
return M(Ke),
|
|
61315
|
+
const it = await e.resolver(d, e.context, getResolverOptions(Ke || g.mount, o, e.criteriaMode, e.shouldUseNativeValidation));
|
|
61316
|
+
return M(Ke), it;
|
|
61313
61317
|
}, ne = async (Ke) => {
|
|
61314
|
-
const { errors:
|
|
61318
|
+
const { errors: it } = await te(Ke);
|
|
61315
61319
|
if (Ke)
|
|
61316
|
-
for (const
|
|
61317
|
-
const ut = get(
|
|
61318
|
-
ut ? set(n.errors,
|
|
61320
|
+
for (const et of Ke) {
|
|
61321
|
+
const ut = get(it, et);
|
|
61322
|
+
ut ? set(n.errors, et, ut) : unset(n.errors, et);
|
|
61319
61323
|
}
|
|
61320
61324
|
else
|
|
61321
|
-
n.errors =
|
|
61322
|
-
return
|
|
61323
|
-
}, oe = async (Ke,
|
|
61325
|
+
n.errors = it;
|
|
61326
|
+
return it;
|
|
61327
|
+
}, oe = async (Ke, it, et = {
|
|
61324
61328
|
valid: !0
|
|
61325
61329
|
}) => {
|
|
61326
61330
|
for (const ut in Ke) {
|
|
@@ -61330,191 +61334,191 @@ function createFormControl(t = {}) {
|
|
|
61330
61334
|
if (dt) {
|
|
61331
61335
|
const zt = g.array.has(dt.name), Yt = ft._f && hasPromiseValidation(ft._f);
|
|
61332
61336
|
Yt && _.validatingFields && M([ut], !0);
|
|
61333
|
-
const
|
|
61334
|
-
if (Yt && _.validatingFields && M([ut]),
|
|
61337
|
+
const ir = await validateField(ft, g.disabled, d, R, e.shouldUseNativeValidation && !it, zt);
|
|
61338
|
+
if (Yt && _.validatingFields && M([ut]), ir[dt.name] && (et.valid = !1, it))
|
|
61335
61339
|
break;
|
|
61336
|
-
!
|
|
61340
|
+
!it && (get(ir, dt.name) ? zt ? updateFieldArrayRootError(n.errors, ir, dt.name) : set(n.errors, dt.name, ir[dt.name]) : unset(n.errors, dt.name));
|
|
61337
61341
|
}
|
|
61338
|
-
!isEmptyObject$1(Ct) && await oe(Ct,
|
|
61342
|
+
!isEmptyObject$1(Ct) && await oe(Ct, it, et);
|
|
61339
61343
|
}
|
|
61340
61344
|
}
|
|
61341
|
-
return
|
|
61345
|
+
return et.valid;
|
|
61342
61346
|
}, ge = () => {
|
|
61343
61347
|
for (const Ke of g.unMount) {
|
|
61344
|
-
const
|
|
61345
|
-
|
|
61348
|
+
const it = get(o, Ke);
|
|
61349
|
+
it && (it._f.refs ? it._f.refs.every((et) => !live(et)) : !live(it._f.ref)) && Xe(Ke);
|
|
61346
61350
|
}
|
|
61347
61351
|
g.unMount = /* @__PURE__ */ new Set();
|
|
61348
|
-
}, se = (Ke,
|
|
61349
|
-
...f.mount ? d : isUndefined(
|
|
61350
|
-
},
|
|
61352
|
+
}, se = (Ke, it) => !e.disabled && (Ke && it && set(d, Ke, it), !deepEqual$1(qe(), l)), Ae = (Ke, it, et) => generateWatchOutput(Ke, g, {
|
|
61353
|
+
...f.mount ? d : isUndefined(it) ? l : isString(Ke) ? { [Ke]: it } : it
|
|
61354
|
+
}, et, it), $e = (Ke) => compact(get(f.mount ? d : l, Ke, e.shouldUnregister ? get(l, Ke, []) : [])), Ne = (Ke, it, et = {}) => {
|
|
61351
61355
|
const ut = get(o, Ke);
|
|
61352
|
-
let ft =
|
|
61356
|
+
let ft = it;
|
|
61353
61357
|
if (ut) {
|
|
61354
61358
|
const dt = ut._f;
|
|
61355
|
-
dt && (!dt.disabled && set(d, Ke, getFieldValueAs(
|
|
61359
|
+
dt && (!dt.disabled && set(d, Ke, getFieldValueAs(it, dt)), ft = isHTMLElement(dt.ref) && isNullOrUndefined(it) ? "" : it, isMultipleSelect(dt.ref) ? [...dt.ref.options].forEach((Ct) => Ct.selected = ft.includes(Ct.value)) : dt.refs ? isCheckBoxInput(dt.ref) ? dt.refs.forEach((Ct) => {
|
|
61356
61360
|
(!Ct.defaultChecked || !Ct.disabled) && (Array.isArray(ft) ? Ct.checked = !!ft.find((zt) => zt === Ct.value) : Ct.checked = ft === Ct.value || !!ft);
|
|
61357
61361
|
}) : dt.refs.forEach((Ct) => Ct.checked = Ct.value === ft) : isFileInput(dt.ref) ? dt.ref.value = "" : (dt.ref.value = ft, dt.ref.type || E.state.next({
|
|
61358
61362
|
name: Ke,
|
|
61359
61363
|
values: cloneObject(d)
|
|
61360
61364
|
})));
|
|
61361
61365
|
}
|
|
61362
|
-
(
|
|
61363
|
-
}, Ve = (Ke,
|
|
61364
|
-
for (const ut in
|
|
61365
|
-
if (!
|
|
61366
|
+
(et.shouldDirty || et.shouldTouch) && j(Ke, ft, et.shouldTouch, et.shouldDirty, !0), et.shouldValidate && Le(Ke);
|
|
61367
|
+
}, Ve = (Ke, it, et) => {
|
|
61368
|
+
for (const ut in it) {
|
|
61369
|
+
if (!it.hasOwnProperty(ut))
|
|
61366
61370
|
return;
|
|
61367
|
-
const ft =
|
|
61368
|
-
(g.array.has(Ke) || isObject(ft) || Ct && !Ct._f) && !isDateObject(ft) ? Ve(dt, ft,
|
|
61371
|
+
const ft = it[ut], dt = Ke + "." + ut, Ct = get(o, dt);
|
|
61372
|
+
(g.array.has(Ke) || isObject(ft) || Ct && !Ct._f) && !isDateObject(ft) ? Ve(dt, ft, et) : Ne(dt, ft, et);
|
|
61369
61373
|
}
|
|
61370
|
-
}, je = (Ke,
|
|
61371
|
-
const ut = get(o, Ke), ft = g.array.has(Ke), dt = cloneObject(
|
|
61374
|
+
}, je = (Ke, it, et = {}) => {
|
|
61375
|
+
const ut = get(o, Ke), ft = g.array.has(Ke), dt = cloneObject(it);
|
|
61372
61376
|
set(d, Ke, dt), ft ? (E.array.next({
|
|
61373
61377
|
name: Ke,
|
|
61374
61378
|
values: cloneObject(d)
|
|
61375
|
-
}), (_.isDirty || _.dirtyFields || C.isDirty || C.dirtyFields) &&
|
|
61379
|
+
}), (_.isDirty || _.dirtyFields || C.isDirty || C.dirtyFields) && et.shouldDirty && E.state.next({
|
|
61376
61380
|
name: Ke,
|
|
61377
61381
|
dirtyFields: getDirtyFields(l, d),
|
|
61378
61382
|
isDirty: se(Ke, dt)
|
|
61379
|
-
})) : ut && !ut._f && !isNullOrUndefined(dt) ? Ve(Ke, dt,
|
|
61383
|
+
})) : ut && !ut._f && !isNullOrUndefined(dt) ? Ve(Ke, dt, et) : Ne(Ke, dt, et), isWatched(Ke, g) && E.state.next({ ...n }), E.state.next({
|
|
61380
61384
|
name: f.mount ? Ke : void 0,
|
|
61381
61385
|
values: cloneObject(d)
|
|
61382
61386
|
});
|
|
61383
61387
|
}, ze = async (Ke) => {
|
|
61384
61388
|
f.mount = !0;
|
|
61385
|
-
const
|
|
61386
|
-
let
|
|
61387
|
-
const ft = get(o,
|
|
61388
|
-
ut = Number.isNaN(Yt) || isDateObject(Yt) && isNaN(Yt.getTime()) || deepEqual$1(Yt, get(d,
|
|
61389
|
+
const it = Ke.target;
|
|
61390
|
+
let et = it.name, ut = !0;
|
|
61391
|
+
const ft = get(o, et), dt = (Yt) => {
|
|
61392
|
+
ut = Number.isNaN(Yt) || isDateObject(Yt) && isNaN(Yt.getTime()) || deepEqual$1(Yt, get(d, et, Yt));
|
|
61389
61393
|
}, Ct = getValidationModes(e.mode), zt = getValidationModes(e.reValidateMode);
|
|
61390
61394
|
if (ft) {
|
|
61391
|
-
let Yt,
|
|
61392
|
-
const cr =
|
|
61393
|
-
set(d,
|
|
61394
|
-
const Zt = j(
|
|
61395
|
-
if (!
|
|
61396
|
-
name:
|
|
61395
|
+
let Yt, ir;
|
|
61396
|
+
const cr = it.type ? getFieldValue(ft._f) : getEventValue(Ke), mt = Ke.type === EVENTS.BLUR || Ke.type === EVENTS.FOCUS_OUT, xr = !hasValidation(ft._f) && !e.resolver && !get(n.errors, et) && !ft._f.deps || skipValidation(mt, get(n.touchedFields, et), n.isSubmitted, zt, Ct), pt = isWatched(et, g, mt);
|
|
61397
|
+
set(d, et, cr), mt ? (ft._f.onBlur && ft._f.onBlur(Ke), b && b(0)) : ft._f.onChange && ft._f.onChange(Ke);
|
|
61398
|
+
const Zt = j(et, cr, mt), Kt = !isEmptyObject$1(Zt) || pt;
|
|
61399
|
+
if (!mt && E.state.next({
|
|
61400
|
+
name: et,
|
|
61397
61401
|
type: Ke.type,
|
|
61398
61402
|
values: cloneObject(d)
|
|
61399
61403
|
}), xr)
|
|
61400
|
-
return (_.isValid || C.isValid) && (e.mode === "onBlur" ?
|
|
61401
|
-
if (!
|
|
61402
|
-
const { errors:
|
|
61404
|
+
return (_.isValid || C.isValid) && (e.mode === "onBlur" ? mt && I() : mt || I()), Kt && E.state.next({ name: et, ...pt ? {} : Zt });
|
|
61405
|
+
if (!mt && pt && E.state.next({ ...n }), e.resolver) {
|
|
61406
|
+
const { errors: sr } = await te([et]);
|
|
61403
61407
|
if (dt(cr), ut) {
|
|
61404
|
-
const
|
|
61405
|
-
Yt =
|
|
61408
|
+
const ar = schemaErrorLookup(n.errors, o, et), Sr = schemaErrorLookup(sr, o, ar.name || et);
|
|
61409
|
+
Yt = Sr.error, et = Sr.name, ir = isEmptyObject$1(sr);
|
|
61406
61410
|
}
|
|
61407
61411
|
} else
|
|
61408
|
-
M([
|
|
61409
|
-
ut && (ft._f.deps && Le(ft._f.deps), F(
|
|
61412
|
+
M([et], !0), Yt = (await validateField(ft, g.disabled, d, R, e.shouldUseNativeValidation))[et], M([et]), dt(cr), ut && (Yt ? ir = !1 : (_.isValid || C.isValid) && (ir = await oe(o, !0)));
|
|
61413
|
+
ut && (ft._f.deps && Le(ft._f.deps), F(et, ir, Yt, Zt));
|
|
61410
61414
|
}
|
|
61411
|
-
}, Oe = (Ke,
|
|
61412
|
-
if (get(n.errors,
|
|
61415
|
+
}, Oe = (Ke, it) => {
|
|
61416
|
+
if (get(n.errors, it) && Ke.focus)
|
|
61413
61417
|
return Ke.focus(), 1;
|
|
61414
|
-
}, Le = async (Ke,
|
|
61415
|
-
let
|
|
61418
|
+
}, Le = async (Ke, it = {}) => {
|
|
61419
|
+
let et, ut;
|
|
61416
61420
|
const ft = convertToArrayPayload(Ke);
|
|
61417
61421
|
if (e.resolver) {
|
|
61418
61422
|
const dt = await ne(isUndefined(Ke) ? Ke : ft);
|
|
61419
|
-
|
|
61423
|
+
et = isEmptyObject$1(dt), ut = Ke ? !ft.some((Ct) => get(dt, Ct)) : et;
|
|
61420
61424
|
} else Ke ? (ut = (await Promise.all(ft.map(async (dt) => {
|
|
61421
61425
|
const Ct = get(o, dt);
|
|
61422
61426
|
return await oe(Ct && Ct._f ? { [dt]: Ct } : Ct);
|
|
61423
|
-
}))).every(Boolean), !(!ut && !n.isValid) && I()) : ut =
|
|
61427
|
+
}))).every(Boolean), !(!ut && !n.isValid) && I()) : ut = et = await oe(o);
|
|
61424
61428
|
return E.state.next({
|
|
61425
|
-
...!isString(Ke) || (_.isValid || C.isValid) &&
|
|
61426
|
-
...e.resolver || !Ke ? { isValid:
|
|
61429
|
+
...!isString(Ke) || (_.isValid || C.isValid) && et !== n.isValid ? {} : { name: Ke },
|
|
61430
|
+
...e.resolver || !Ke ? { isValid: et } : {},
|
|
61427
61431
|
errors: n.errors
|
|
61428
|
-
}),
|
|
61432
|
+
}), it.shouldFocus && !ut && iterateFieldsByAction(o, Oe, Ke ? ft : g.mount), ut;
|
|
61429
61433
|
}, qe = (Ke) => {
|
|
61430
|
-
const
|
|
61434
|
+
const it = {
|
|
61431
61435
|
...f.mount ? d : l
|
|
61432
61436
|
};
|
|
61433
|
-
return isUndefined(Ke) ?
|
|
61434
|
-
}, Ge = (Ke,
|
|
61435
|
-
invalid: !!get((
|
|
61436
|
-
isDirty: !!get((
|
|
61437
|
-
error: get((
|
|
61437
|
+
return isUndefined(Ke) ? it : isString(Ke) ? get(it, Ke) : Ke.map((et) => get(it, et));
|
|
61438
|
+
}, Ge = (Ke, it) => ({
|
|
61439
|
+
invalid: !!get((it || n).errors, Ke),
|
|
61440
|
+
isDirty: !!get((it || n).dirtyFields, Ke),
|
|
61441
|
+
error: get((it || n).errors, Ke),
|
|
61438
61442
|
isValidating: !!get(n.validatingFields, Ke),
|
|
61439
|
-
isTouched: !!get((
|
|
61443
|
+
isTouched: !!get((it || n).touchedFields, Ke)
|
|
61440
61444
|
}), He = (Ke) => {
|
|
61441
|
-
Ke && convertToArrayPayload(Ke).forEach((
|
|
61445
|
+
Ke && convertToArrayPayload(Ke).forEach((it) => unset(n.errors, it)), E.state.next({
|
|
61442
61446
|
errors: Ke ? n.errors : {}
|
|
61443
61447
|
});
|
|
61444
|
-
}, Ze = (Ke,
|
|
61448
|
+
}, Ze = (Ke, it, et) => {
|
|
61445
61449
|
const ut = (get(o, Ke, { _f: {} })._f || {}).ref, ft = get(n.errors, Ke) || {}, { ref: dt, message: Ct, type: zt, ...Yt } = ft;
|
|
61446
61450
|
set(n.errors, Ke, {
|
|
61447
61451
|
...Yt,
|
|
61448
|
-
...
|
|
61452
|
+
...it,
|
|
61449
61453
|
ref: ut
|
|
61450
61454
|
}), E.state.next({
|
|
61451
61455
|
name: Ke,
|
|
61452
61456
|
errors: n.errors,
|
|
61453
61457
|
isValid: !1
|
|
61454
|
-
}),
|
|
61455
|
-
}, tt = (Ke,
|
|
61456
|
-
next: (
|
|
61457
|
-
}) : Ae(Ke,
|
|
61458
|
-
next: (
|
|
61459
|
-
shouldSubscribeByName(Ke.name,
|
|
61458
|
+
}), et && et.shouldFocus && ut && ut.focus && ut.focus();
|
|
61459
|
+
}, tt = (Ke, it) => isFunction$3(Ke) ? E.state.subscribe({
|
|
61460
|
+
next: (et) => Ke(Ae(void 0, it), et)
|
|
61461
|
+
}) : Ae(Ke, it, !0), Ye = (Ke) => E.state.subscribe({
|
|
61462
|
+
next: (it) => {
|
|
61463
|
+
shouldSubscribeByName(Ke.name, it.name, Ke.exact) && shouldRenderFormState(it, Ke.formState || _, qt, Ke.reRenderRoot) && Ke.callback({
|
|
61460
61464
|
values: { ...d },
|
|
61461
61465
|
...n,
|
|
61462
|
-
...
|
|
61466
|
+
...it
|
|
61463
61467
|
});
|
|
61464
61468
|
}
|
|
61465
|
-
}).unsubscribe,
|
|
61469
|
+
}).unsubscribe, Qe = (Ke) => (f.mount = !0, C = {
|
|
61466
61470
|
...C,
|
|
61467
61471
|
...Ke.formState
|
|
61468
61472
|
}, Ye({
|
|
61469
61473
|
...Ke,
|
|
61470
61474
|
formState: C
|
|
61471
|
-
})), Xe = (Ke,
|
|
61472
|
-
for (const
|
|
61473
|
-
g.mount.delete(
|
|
61475
|
+
})), Xe = (Ke, it = {}) => {
|
|
61476
|
+
for (const et of Ke ? convertToArrayPayload(Ke) : g.mount)
|
|
61477
|
+
g.mount.delete(et), g.array.delete(et), it.keepValue || (unset(o, et), unset(d, et)), !it.keepError && unset(n.errors, et), !it.keepDirty && unset(n.dirtyFields, et), !it.keepTouched && unset(n.touchedFields, et), !it.keepIsValidating && unset(n.validatingFields, et), !e.shouldUnregister && !it.keepDefaultValue && unset(l, et);
|
|
61474
61478
|
E.state.next({
|
|
61475
61479
|
values: cloneObject(d)
|
|
61476
61480
|
}), E.state.next({
|
|
61477
61481
|
...n,
|
|
61478
|
-
...
|
|
61479
|
-
}), !
|
|
61480
|
-
},
|
|
61481
|
-
(isBoolean(Ke) && f.mount || Ke || g.disabled.has(
|
|
61482
|
-
},
|
|
61483
|
-
let
|
|
61484
|
-
const ut = isBoolean(
|
|
61482
|
+
...it.keepDirty ? { isDirty: se() } : {}
|
|
61483
|
+
}), !it.keepIsValid && I();
|
|
61484
|
+
}, ot = ({ disabled: Ke, name: it }) => {
|
|
61485
|
+
(isBoolean(Ke) && f.mount || Ke || g.disabled.has(it)) && (Ke ? g.disabled.add(it) : g.disabled.delete(it));
|
|
61486
|
+
}, rt = (Ke, it = {}) => {
|
|
61487
|
+
let et = get(o, Ke);
|
|
61488
|
+
const ut = isBoolean(it.disabled) || isBoolean(e.disabled);
|
|
61485
61489
|
return set(o, Ke, {
|
|
61486
|
-
...
|
|
61490
|
+
...et || {},
|
|
61487
61491
|
_f: {
|
|
61488
|
-
...
|
|
61492
|
+
...et && et._f ? et._f : { ref: { name: Ke } },
|
|
61489
61493
|
name: Ke,
|
|
61490
61494
|
mount: !0,
|
|
61491
|
-
...
|
|
61495
|
+
...it
|
|
61492
61496
|
}
|
|
61493
|
-
}), g.mount.add(Ke),
|
|
61494
|
-
disabled: isBoolean(
|
|
61497
|
+
}), g.mount.add(Ke), et ? ot({
|
|
61498
|
+
disabled: isBoolean(it.disabled) ? it.disabled : e.disabled,
|
|
61495
61499
|
name: Ke
|
|
61496
|
-
}) : Q(Ke, !0,
|
|
61497
|
-
...ut ? { disabled:
|
|
61500
|
+
}) : Q(Ke, !0, it.value), {
|
|
61501
|
+
...ut ? { disabled: it.disabled || e.disabled } : {},
|
|
61498
61502
|
...e.progressive ? {
|
|
61499
|
-
required: !!
|
|
61500
|
-
min: getRuleValue(
|
|
61501
|
-
max: getRuleValue(
|
|
61502
|
-
minLength: getRuleValue(
|
|
61503
|
-
maxLength: getRuleValue(
|
|
61504
|
-
pattern: getRuleValue(
|
|
61503
|
+
required: !!it.required,
|
|
61504
|
+
min: getRuleValue(it.min),
|
|
61505
|
+
max: getRuleValue(it.max),
|
|
61506
|
+
minLength: getRuleValue(it.minLength),
|
|
61507
|
+
maxLength: getRuleValue(it.maxLength),
|
|
61508
|
+
pattern: getRuleValue(it.pattern)
|
|
61505
61509
|
} : {},
|
|
61506
61510
|
name: Ke,
|
|
61507
61511
|
onChange: ze,
|
|
61508
61512
|
onBlur: ze,
|
|
61509
61513
|
ref: (ft) => {
|
|
61510
61514
|
if (ft) {
|
|
61511
|
-
|
|
61512
|
-
const dt = isUndefined(ft.value) && ft.querySelectorAll && ft.querySelectorAll("input,select,textarea")[0] || ft, Ct = isRadioOrCheckbox(dt), zt =
|
|
61513
|
-
if (Ct ? zt.find((Yt) => Yt === dt) : dt ===
|
|
61515
|
+
rt(Ke, it), et = get(o, Ke);
|
|
61516
|
+
const dt = isUndefined(ft.value) && ft.querySelectorAll && ft.querySelectorAll("input,select,textarea")[0] || ft, Ct = isRadioOrCheckbox(dt), zt = et._f.refs || [];
|
|
61517
|
+
if (Ct ? zt.find((Yt) => Yt === dt) : dt === et._f.ref)
|
|
61514
61518
|
return;
|
|
61515
61519
|
set(o, Ke, {
|
|
61516
61520
|
_f: {
|
|
61517
|
-
...
|
|
61521
|
+
...et._f,
|
|
61518
61522
|
...Ct ? {
|
|
61519
61523
|
refs: [
|
|
61520
61524
|
...zt.filter(live),
|
|
@@ -61526,19 +61530,19 @@ function createFormControl(t = {}) {
|
|
|
61526
61530
|
}
|
|
61527
61531
|
}), Q(Ke, !1, void 0, dt);
|
|
61528
61532
|
} else
|
|
61529
|
-
|
|
61533
|
+
et = get(o, Ke, {}), et._f && (et._f.mount = !1), (e.shouldUnregister || it.shouldUnregister) && !(isNameInFieldArray(g.array, Ke) && f.action) && g.unMount.add(Ke);
|
|
61530
61534
|
}
|
|
61531
61535
|
};
|
|
61532
|
-
},
|
|
61533
|
-
isBoolean(Ke) && (E.state.next({ disabled: Ke }), iterateFieldsByAction(o, (
|
|
61534
|
-
const ut = get(o,
|
|
61535
|
-
ut && (
|
|
61536
|
+
}, at = () => e.shouldFocusError && iterateFieldsByAction(o, Oe, g.mount), st = (Ke) => {
|
|
61537
|
+
isBoolean(Ke) && (E.state.next({ disabled: Ke }), iterateFieldsByAction(o, (it, et) => {
|
|
61538
|
+
const ut = get(o, et);
|
|
61539
|
+
ut && (it.disabled = ut._f.disabled || Ke, Array.isArray(ut._f.refs) && ut._f.refs.forEach((ft) => {
|
|
61536
61540
|
ft.disabled = ut._f.disabled || Ke;
|
|
61537
61541
|
}));
|
|
61538
61542
|
}, 0, !1));
|
|
61539
|
-
}, Ue = (Ke,
|
|
61543
|
+
}, Ue = (Ke, it) => async (et) => {
|
|
61540
61544
|
let ut;
|
|
61541
|
-
|
|
61545
|
+
et && (et.preventDefault && et.preventDefault(), et.persist && et.persist());
|
|
61542
61546
|
let ft = cloneObject(d);
|
|
61543
61547
|
if (E.state.next({
|
|
61544
61548
|
isSubmitting: !0
|
|
@@ -61555,12 +61559,12 @@ function createFormControl(t = {}) {
|
|
|
61555
61559
|
errors: {}
|
|
61556
61560
|
});
|
|
61557
61561
|
try {
|
|
61558
|
-
await Ke(ft,
|
|
61562
|
+
await Ke(ft, et);
|
|
61559
61563
|
} catch (dt) {
|
|
61560
61564
|
ut = dt;
|
|
61561
61565
|
}
|
|
61562
61566
|
} else
|
|
61563
|
-
|
|
61567
|
+
it && await it({ ...n.errors }, et), at(), setTimeout(at);
|
|
61564
61568
|
if (E.state.next({
|
|
61565
61569
|
isSubmitted: !0,
|
|
61566
61570
|
isSubmitting: !1,
|
|
@@ -61569,12 +61573,12 @@ function createFormControl(t = {}) {
|
|
|
61569
61573
|
errors: n.errors
|
|
61570
61574
|
}), ut)
|
|
61571
61575
|
throw ut;
|
|
61572
|
-
}, Rt = (Ke,
|
|
61573
|
-
get(o, Ke) && (isUndefined(
|
|
61574
|
-
}, Je = (Ke,
|
|
61575
|
-
const
|
|
61576
|
-
if (
|
|
61577
|
-
if (
|
|
61576
|
+
}, Rt = (Ke, it = {}) => {
|
|
61577
|
+
get(o, Ke) && (isUndefined(it.defaultValue) ? je(Ke, cloneObject(get(l, Ke))) : (je(Ke, it.defaultValue), set(l, Ke, cloneObject(it.defaultValue))), it.keepTouched || unset(n.touchedFields, Ke), it.keepDirty || (unset(n.dirtyFields, Ke), n.isDirty = it.defaultValue ? se(Ke, cloneObject(get(l, Ke))) : se()), it.keepError || (unset(n.errors, Ke), _.isValid && I()), E.state.next({ ...n }));
|
|
61578
|
+
}, Je = (Ke, it = {}) => {
|
|
61579
|
+
const et = Ke ? cloneObject(Ke) : l, ut = cloneObject(et), ft = isEmptyObject$1(Ke), dt = ft ? l : ut;
|
|
61580
|
+
if (it.keepDefaultValues || (l = et), !it.keepValues) {
|
|
61581
|
+
if (it.keepDirtyValues) {
|
|
61578
61582
|
const Ct = /* @__PURE__ */ new Set([
|
|
61579
61583
|
...g.mount,
|
|
61580
61584
|
...Object.keys(getDirtyFields(l, d))
|
|
@@ -61588,9 +61592,9 @@ function createFormControl(t = {}) {
|
|
|
61588
61592
|
if (zt && zt._f) {
|
|
61589
61593
|
const Yt = Array.isArray(zt._f.refs) ? zt._f.refs[0] : zt._f.ref;
|
|
61590
61594
|
if (isHTMLElement(Yt)) {
|
|
61591
|
-
const
|
|
61592
|
-
if (
|
|
61593
|
-
|
|
61595
|
+
const ir = Yt.closest("form");
|
|
61596
|
+
if (ir) {
|
|
61597
|
+
ir.reset();
|
|
61594
61598
|
break;
|
|
61595
61599
|
}
|
|
61596
61600
|
}
|
|
@@ -61606,28 +61610,28 @@ function createFormControl(t = {}) {
|
|
|
61606
61610
|
});
|
|
61607
61611
|
}
|
|
61608
61612
|
g = {
|
|
61609
|
-
mount:
|
|
61613
|
+
mount: it.keepDirtyValues ? g.mount : /* @__PURE__ */ new Set(),
|
|
61610
61614
|
unMount: /* @__PURE__ */ new Set(),
|
|
61611
61615
|
array: /* @__PURE__ */ new Set(),
|
|
61612
61616
|
disabled: /* @__PURE__ */ new Set(),
|
|
61613
61617
|
watch: /* @__PURE__ */ new Set(),
|
|
61614
61618
|
watchAll: !1,
|
|
61615
61619
|
focus: ""
|
|
61616
|
-
}, f.mount = !_.isValid || !!
|
|
61617
|
-
submitCount:
|
|
61618
|
-
isDirty: ft ? !1 :
|
|
61619
|
-
isSubmitted:
|
|
61620
|
-
dirtyFields: ft ? {} :
|
|
61621
|
-
touchedFields:
|
|
61622
|
-
errors:
|
|
61623
|
-
isSubmitSuccessful:
|
|
61620
|
+
}, f.mount = !_.isValid || !!it.keepIsValid || !!it.keepDirtyValues, f.watch = !!e.shouldUnregister, E.state.next({
|
|
61621
|
+
submitCount: it.keepSubmitCount ? n.submitCount : 0,
|
|
61622
|
+
isDirty: ft ? !1 : it.keepDirty ? n.isDirty : !!(it.keepDefaultValues && !deepEqual$1(Ke, l)),
|
|
61623
|
+
isSubmitted: it.keepIsSubmitted ? n.isSubmitted : !1,
|
|
61624
|
+
dirtyFields: ft ? {} : it.keepDirtyValues ? it.keepDefaultValues && d ? getDirtyFields(l, d) : n.dirtyFields : it.keepDefaultValues && Ke ? getDirtyFields(l, Ke) : it.keepDirty ? n.dirtyFields : {},
|
|
61625
|
+
touchedFields: it.keepTouched ? n.touchedFields : {},
|
|
61626
|
+
errors: it.keepErrors ? n.errors : {},
|
|
61627
|
+
isSubmitSuccessful: it.keepIsSubmitSuccessful ? n.isSubmitSuccessful : !1,
|
|
61624
61628
|
isSubmitting: !1
|
|
61625
61629
|
});
|
|
61626
|
-
}, yt = (Ke,
|
|
61627
|
-
const
|
|
61630
|
+
}, yt = (Ke, it) => Je(isFunction$3(Ke) ? Ke(d) : Ke, it), Mt = (Ke, it = {}) => {
|
|
61631
|
+
const et = get(o, Ke), ut = et && et._f;
|
|
61628
61632
|
if (ut) {
|
|
61629
61633
|
const ft = ut.refs ? ut.refs[0] : ut.ref;
|
|
61630
|
-
ft.focus && (ft.focus(),
|
|
61634
|
+
ft.focus && (ft.focus(), it.shouldSelect && isFunction$3(ft.select) && ft.select());
|
|
61631
61635
|
}
|
|
61632
61636
|
}, qt = (Ke) => {
|
|
61633
61637
|
n = {
|
|
@@ -61636,19 +61640,19 @@ function createFormControl(t = {}) {
|
|
|
61636
61640
|
};
|
|
61637
61641
|
}, Ft = {
|
|
61638
61642
|
control: {
|
|
61639
|
-
register:
|
|
61643
|
+
register: rt,
|
|
61640
61644
|
unregister: Xe,
|
|
61641
61645
|
getFieldState: Ge,
|
|
61642
61646
|
handleSubmit: Ue,
|
|
61643
61647
|
setError: Ze,
|
|
61644
61648
|
_subscribe: Ye,
|
|
61645
61649
|
_runSchema: te,
|
|
61646
|
-
_focusError:
|
|
61650
|
+
_focusError: at,
|
|
61647
61651
|
_getWatch: Ae,
|
|
61648
61652
|
_getDirty: se,
|
|
61649
61653
|
_setValid: I,
|
|
61650
61654
|
_setFieldArray: O,
|
|
61651
|
-
_setDisabledField:
|
|
61655
|
+
_setDisabledField: ot,
|
|
61652
61656
|
_setErrors: z,
|
|
61653
61657
|
_getFieldArray: $e,
|
|
61654
61658
|
_reset: Je,
|
|
@@ -61695,9 +61699,9 @@ function createFormControl(t = {}) {
|
|
|
61695
61699
|
};
|
|
61696
61700
|
}
|
|
61697
61701
|
},
|
|
61698
|
-
subscribe:
|
|
61702
|
+
subscribe: Qe,
|
|
61699
61703
|
trigger: Le,
|
|
61700
|
-
register:
|
|
61704
|
+
register: rt,
|
|
61701
61705
|
handleSubmit: Ue,
|
|
61702
61706
|
watch: tt,
|
|
61703
61707
|
setValue: je,
|
|
@@ -61937,25 +61941,25 @@ function requireReactIs_development() {
|
|
|
61937
61941
|
function Ye(Ue) {
|
|
61938
61942
|
return Q(Ue) === o;
|
|
61939
61943
|
}
|
|
61940
|
-
function
|
|
61944
|
+
function Qe(Ue) {
|
|
61941
61945
|
return Q(Ue) === A;
|
|
61942
61946
|
}
|
|
61943
61947
|
function Xe(Ue) {
|
|
61944
61948
|
return Q(Ue) === R;
|
|
61945
61949
|
}
|
|
61946
|
-
function
|
|
61950
|
+
function ot(Ue) {
|
|
61947
61951
|
return Q(Ue) === n;
|
|
61948
61952
|
}
|
|
61949
|
-
function
|
|
61953
|
+
function rt(Ue) {
|
|
61950
61954
|
return Q(Ue) === d;
|
|
61951
61955
|
}
|
|
61952
|
-
function
|
|
61956
|
+
function at(Ue) {
|
|
61953
61957
|
return Q(Ue) === l;
|
|
61954
61958
|
}
|
|
61955
61959
|
function st(Ue) {
|
|
61956
61960
|
return Q(Ue) === C;
|
|
61957
61961
|
}
|
|
61958
|
-
reactIs_development.AsyncMode = j, reactIs_development.ConcurrentMode = F, reactIs_development.ContextConsumer = te, reactIs_development.ContextProvider = ne, reactIs_development.Element = oe, reactIs_development.ForwardRef = ge, reactIs_development.Fragment = se, reactIs_development.Lazy = Ae, reactIs_development.Memo = $e, reactIs_development.Portal = Ne, reactIs_development.Profiler = Ve, reactIs_development.StrictMode = je, reactIs_development.Suspense = ze, reactIs_development.isAsyncMode = Le, reactIs_development.isConcurrentMode = qe, reactIs_development.isContextConsumer = Ge, reactIs_development.isContextProvider = He, reactIs_development.isElement = Ze, reactIs_development.isForwardRef = tt, reactIs_development.isFragment = Ye, reactIs_development.isLazy =
|
|
61962
|
+
reactIs_development.AsyncMode = j, reactIs_development.ConcurrentMode = F, reactIs_development.ContextConsumer = te, reactIs_development.ContextProvider = ne, reactIs_development.Element = oe, reactIs_development.ForwardRef = ge, reactIs_development.Fragment = se, reactIs_development.Lazy = Ae, reactIs_development.Memo = $e, reactIs_development.Portal = Ne, reactIs_development.Profiler = Ve, reactIs_development.StrictMode = je, reactIs_development.Suspense = ze, reactIs_development.isAsyncMode = Le, reactIs_development.isConcurrentMode = qe, reactIs_development.isContextConsumer = Ge, reactIs_development.isContextProvider = He, reactIs_development.isElement = Ze, reactIs_development.isForwardRef = tt, reactIs_development.isFragment = Ye, reactIs_development.isLazy = Qe, reactIs_development.isMemo = Xe, reactIs_development.isPortal = ot, reactIs_development.isProfiler = rt, reactIs_development.isStrictMode = at, reactIs_development.isSuspense = st, reactIs_development.isValidElementType = z, reactIs_development.typeOf = Q;
|
|
61959
61963
|
}()), reactIs_development;
|
|
61960
61964
|
}
|
|
61961
61965
|
var hasRequiredReactIs;
|
|
@@ -63975,7 +63979,7 @@ $10 with opportunities under $1,000` : t === "D" ? "$15 under $1,500" : t === "E
|
|
|
63975
63979
|
], Ne = (Ve) => {
|
|
63976
63980
|
S(Ve), g(!0);
|
|
63977
63981
|
};
|
|
63978
|
-
return l ? /* @__PURE__ */ jsxs(Card, { className: "
|
|
63982
|
+
return l ? /* @__PURE__ */ jsxs(Card, { className: "w-full", children: [
|
|
63979
63983
|
/* @__PURE__ */ jsx(CardHeader, { className: "pb-2", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
63980
63984
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-6 w-28" }),
|
|
63981
63985
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-6 w-16 rounded-full" })
|
|
@@ -63998,7 +64002,7 @@ $10 with opportunities under $1,000` : t === "D" ? "$15 under $1,500" : t === "E
|
|
|
63998
64002
|
] })
|
|
63999
64003
|
] })
|
|
64000
64004
|
] }) : /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
64001
|
-
/* @__PURE__ */ jsxs(Card, { className: "
|
|
64005
|
+
/* @__PURE__ */ jsxs(Card, { className: "w-full", children: [
|
|
64002
64006
|
/* @__PURE__ */ jsxs(CardHeader, { className: "pb-2 pt-4 px-4 flex flex-row items-center justify-between", children: [
|
|
64003
64007
|
/* @__PURE__ */ jsx(CardTitle, { className: "text-1xl font-bold", children: "Account Tier" }),
|
|
64004
64008
|
/* @__PURE__ */ jsx(Badge, { variant: "secondary", className: "bg-green-100 text-green-700 hover:bg-green-200 text-xs", children: "Active" })
|
|
@@ -67991,21 +67995,21 @@ var __create = Object.create, __getProtoOf = Object.getPrototypeOf, __defProp =
|
|
|
67991
67995
|
sourceFile: null,
|
|
67992
67996
|
directSourceFile: null,
|
|
67993
67997
|
preserveParens: !1
|
|
67994
|
-
},
|
|
67998
|
+
}, Qe = !1;
|
|
67995
67999
|
function Xe(V) {
|
|
67996
68000
|
var ae = {};
|
|
67997
68001
|
for (var Be in Ye)
|
|
67998
68002
|
ae[Be] = V && je(V, Be) ? V[Be] : Ye[Be];
|
|
67999
|
-
if (ae.ecmaVersion === "latest" ? ae.ecmaVersion = 1e8 : ae.ecmaVersion == null ? (!
|
|
68003
|
+
if (ae.ecmaVersion === "latest" ? ae.ecmaVersion = 1e8 : ae.ecmaVersion == null ? (!Qe && typeof console == "object" && console.warn && (Qe = !0, console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
68000
68004
|
Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion = 11) : ae.ecmaVersion >= 2015 && (ae.ecmaVersion -= 2009), ae.allowReserved == null && (ae.allowReserved = ae.ecmaVersion < 5), (!V || V.allowHashBang == null) && (ae.allowHashBang = ae.ecmaVersion >= 14), ze(ae.onToken)) {
|
|
68001
68005
|
var Fe = ae.onToken;
|
|
68002
68006
|
ae.onToken = function(We) {
|
|
68003
68007
|
return Fe.push(We);
|
|
68004
68008
|
};
|
|
68005
68009
|
}
|
|
68006
|
-
return ze(ae.onComment) && (ae.onComment =
|
|
68010
|
+
return ze(ae.onComment) && (ae.onComment = ot(ae, ae.onComment)), ae;
|
|
68007
68011
|
}
|
|
68008
|
-
function
|
|
68012
|
+
function ot(V, ae) {
|
|
68009
68013
|
return function(Be, Fe, We, lt, ct, $t) {
|
|
68010
68014
|
var Dt = {
|
|
68011
68015
|
type: Be ? "Block" : "Line",
|
|
@@ -68016,23 +68020,23 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68016
68020
|
V.locations && (Dt.loc = new Ze(this, ct, $t)), V.ranges && (Dt.range = [We, lt]), ae.push(Dt);
|
|
68017
68021
|
};
|
|
68018
68022
|
}
|
|
68019
|
-
var
|
|
68023
|
+
var rt = 1, at = 2, st = 4, Ue = 8, Rt = 16, Je = 32, yt = 64, Mt = 128, qt = 256, Ht = rt | at | qt;
|
|
68020
68024
|
function Ft(V, ae) {
|
|
68021
|
-
return
|
|
68025
|
+
return at | (V ? st : 0) | (ae ? Ue : 0);
|
|
68022
68026
|
}
|
|
68023
|
-
var Ke = 0,
|
|
68027
|
+
var Ke = 0, it = 1, et = 2, ut = 3, ft = 4, dt = 5, Ct = function(ae, Be, Fe) {
|
|
68024
68028
|
this.options = ae = Xe(ae), this.sourceFile = ae.sourceFile, this.keywords = Le(S[ae.ecmaVersion >= 6 ? 6 : ae.sourceType === "module" ? "5module" : 5]);
|
|
68025
68029
|
var We = "";
|
|
68026
68030
|
ae.allowReserved !== !0 && (We = g[ae.ecmaVersion >= 6 ? 6 : ae.ecmaVersion === 5 ? 5 : 3], ae.sourceType === "module" && (We += " await")), this.reservedWords = Le(We);
|
|
68027
68031
|
var lt = (We ? We + " " : "") + g.strict;
|
|
68028
68032
|
this.reservedWordsStrict = Le(lt), this.reservedWordsStrictBind = Le(lt + " " + g.strictBind), this.input = String(Be), this.containsEsc = !1, Fe ? (this.pos = Fe, this.lineStart = this.input.lastIndexOf(`
|
|
68029
|
-
`, Fe - 1) + 1, this.curLine = this.input.slice(0, this.lineStart).split(te).length) : (this.pos = this.lineStart = 0, this.curLine = 1), this.type = F.eof, this.value = null, this.start = this.end = this.pos, this.startLoc = this.endLoc = this.curPosition(), this.lastTokEndLoc = this.lastTokStartLoc = null, this.lastTokStart = this.lastTokEnd = this.pos, this.context = this.initialContext(), this.exprAllowed = !0, this.inModule = ae.sourceType === "module", this.strict = this.inModule || this.strictDirective(this.pos), this.potentialArrowAt = -1, this.potentialArrowInForAwait = !1, this.yieldPos = this.awaitPos = this.awaitIdentPos = 0, this.labels = [], this.undefinedExports = /* @__PURE__ */ Object.create(null), this.pos === 0 && ae.allowHashBang && this.input.slice(0, 2) === "#!" && this.skipLineComment(2), this.scopeStack = [], this.enterScope(
|
|
68033
|
+
`, Fe - 1) + 1, this.curLine = this.input.slice(0, this.lineStart).split(te).length) : (this.pos = this.lineStart = 0, this.curLine = 1), this.type = F.eof, this.value = null, this.start = this.end = this.pos, this.startLoc = this.endLoc = this.curPosition(), this.lastTokEndLoc = this.lastTokStartLoc = null, this.lastTokStart = this.lastTokEnd = this.pos, this.context = this.initialContext(), this.exprAllowed = !0, this.inModule = ae.sourceType === "module", this.strict = this.inModule || this.strictDirective(this.pos), this.potentialArrowAt = -1, this.potentialArrowInForAwait = !1, this.yieldPos = this.awaitPos = this.awaitIdentPos = 0, this.labels = [], this.undefinedExports = /* @__PURE__ */ Object.create(null), this.pos === 0 && ae.allowHashBang && this.input.slice(0, 2) === "#!" && this.skipLineComment(2), this.scopeStack = [], this.enterScope(rt), this.regexpState = null, this.privateNameStack = [];
|
|
68030
68034
|
}, zt = { inFunction: { configurable: !0 }, inGenerator: { configurable: !0 }, inAsync: { configurable: !0 }, canAwait: { configurable: !0 }, allowSuper: { configurable: !0 }, allowDirectSuper: { configurable: !0 }, treatFunctionsAsVar: { configurable: !0 }, allowNewDotTarget: { configurable: !0 }, inClassStaticBlock: { configurable: !0 } };
|
|
68031
68035
|
Ct.prototype.parse = function() {
|
|
68032
68036
|
var ae = this.options.program || this.startNode();
|
|
68033
68037
|
return this.nextToken(), this.parseTopLevel(ae);
|
|
68034
68038
|
}, zt.inFunction.get = function() {
|
|
68035
|
-
return (this.currentVarScope().flags &
|
|
68039
|
+
return (this.currentVarScope().flags & at) > 0;
|
|
68036
68040
|
}, zt.inGenerator.get = function() {
|
|
68037
68041
|
return (this.currentVarScope().flags & Ue) > 0 && !this.currentVarScope().inClassFieldInit;
|
|
68038
68042
|
}, zt.inAsync.get = function() {
|
|
@@ -68042,7 +68046,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68042
68046
|
var ae = this.scopeStack[V];
|
|
68043
68047
|
if (ae.inClassFieldInit || ae.flags & qt)
|
|
68044
68048
|
return !1;
|
|
68045
|
-
if (ae.flags &
|
|
68049
|
+
if (ae.flags & at)
|
|
68046
68050
|
return (ae.flags & st) > 0;
|
|
68047
68051
|
}
|
|
68048
68052
|
return this.inModule && this.options.ecmaVersion >= 13 || this.options.allowAwaitOutsideFunction;
|
|
@@ -68055,7 +68059,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68055
68059
|
return this.treatFunctionsAsVarInScope(this.currentScope());
|
|
68056
68060
|
}, zt.allowNewDotTarget.get = function() {
|
|
68057
68061
|
var V = this.currentThisScope(), ae = V.flags, Be = V.inClassFieldInit;
|
|
68058
|
-
return (ae & (
|
|
68062
|
+
return (ae & (at | qt)) > 0 || Be;
|
|
68059
68063
|
}, zt.inClassStaticBlock.get = function() {
|
|
68060
68064
|
return (this.currentVarScope().flags & qt) > 0;
|
|
68061
68065
|
}, Ct.extend = function() {
|
|
@@ -68072,13 +68076,13 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68072
68076
|
}, Ct.tokenizer = function(ae, Be) {
|
|
68073
68077
|
return new this(Be, ae);
|
|
68074
68078
|
}, Object.defineProperties(Ct.prototype, zt);
|
|
68075
|
-
var Yt = Ct.prototype,
|
|
68079
|
+
var Yt = Ct.prototype, ir = /^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;
|
|
68076
68080
|
Yt.strictDirective = function(V) {
|
|
68077
68081
|
if (this.options.ecmaVersion < 5)
|
|
68078
68082
|
return !1;
|
|
68079
68083
|
for (; ; ) {
|
|
68080
68084
|
Ae.lastIndex = V, V += Ae.exec(this.input)[0].length;
|
|
68081
|
-
var ae =
|
|
68085
|
+
var ae = ir.exec(this.input.slice(V));
|
|
68082
68086
|
if (!ae)
|
|
68083
68087
|
return !1;
|
|
68084
68088
|
if ((ae[1] || ae[2]) === "use strict") {
|
|
@@ -68132,8 +68136,8 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68132
68136
|
}, Yt.isSimpleAssignTarget = function(V) {
|
|
68133
68137
|
return V.type === "ParenthesizedExpression" ? this.isSimpleAssignTarget(V.expression) : V.type === "Identifier" || V.type === "MemberExpression";
|
|
68134
68138
|
};
|
|
68135
|
-
var
|
|
68136
|
-
|
|
68139
|
+
var mt = Ct.prototype;
|
|
68140
|
+
mt.parseTopLevel = function(V) {
|
|
68137
68141
|
var ae = /* @__PURE__ */ Object.create(null);
|
|
68138
68142
|
for (V.body || (V.body = []); this.type !== F.eof; ) {
|
|
68139
68143
|
var Be = this.parseStatement(null, !0, ae);
|
|
@@ -68146,8 +68150,8 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68146
68150
|
}
|
|
68147
68151
|
return this.adaptDirectivePrologue(V.body), this.next(), V.sourceType = this.options.sourceType, this.finishNode(V, "Program");
|
|
68148
68152
|
};
|
|
68149
|
-
var xr = { kind: "loop" },
|
|
68150
|
-
|
|
68153
|
+
var xr = { kind: "loop" }, pt = { kind: "switch" };
|
|
68154
|
+
mt.isLet = function(V) {
|
|
68151
68155
|
if (this.options.ecmaVersion < 6 || !this.isContextual("let"))
|
|
68152
68156
|
return !1;
|
|
68153
68157
|
Ae.lastIndex = this.pos;
|
|
@@ -68168,13 +68172,13 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68168
68172
|
return !0;
|
|
68169
68173
|
}
|
|
68170
68174
|
return !1;
|
|
68171
|
-
},
|
|
68175
|
+
}, mt.isAsyncFunction = function() {
|
|
68172
68176
|
if (this.options.ecmaVersion < 8 || !this.isContextual("async"))
|
|
68173
68177
|
return !1;
|
|
68174
68178
|
Ae.lastIndex = this.pos;
|
|
68175
68179
|
var V = Ae.exec(this.input), ae = this.pos + V[0].length, Be;
|
|
68176
68180
|
return !te.test(this.input.slice(this.pos, ae)) && this.input.slice(ae, ae + 8) === "function" && (ae + 8 === this.input.length || !(I(Be = this.input.charCodeAt(ae + 8)) || Be > 55295 && Be < 56320));
|
|
68177
|
-
},
|
|
68181
|
+
}, mt.parseStatement = function(V, ae, Be) {
|
|
68178
68182
|
var Fe = this.type, We = this.startNode(), lt;
|
|
68179
68183
|
switch (this.isLet(V) && (Fe = F._var, lt = "let"), Fe) {
|
|
68180
68184
|
case F._break:
|
|
@@ -68226,7 +68230,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68226
68230
|
var er = this.value, Jt = this.parseExpression();
|
|
68227
68231
|
return Fe === F.name && Jt.type === "Identifier" && this.eat(F.colon) ? this.parseLabeledStatement(We, er, Jt, V) : this.parseExpressionStatement(We, Jt);
|
|
68228
68232
|
}
|
|
68229
|
-
},
|
|
68233
|
+
}, mt.parseBreakContinueStatement = function(V, ae) {
|
|
68230
68234
|
var Be = ae === "break";
|
|
68231
68235
|
this.next(), this.eat(F.semi) || this.insertSemicolon() ? V.label = null : this.type !== F.name ? this.unexpected() : (V.label = this.parseIdent(), this.semicolon());
|
|
68232
68236
|
for (var Fe = 0; Fe < this.labels.length; ++Fe) {
|
|
@@ -68235,11 +68239,11 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68235
68239
|
break;
|
|
68236
68240
|
}
|
|
68237
68241
|
return Fe === this.labels.length && this.raise(V.start, "Unsyntactic " + ae), this.finishNode(V, Be ? "BreakStatement" : "ContinueStatement");
|
|
68238
|
-
},
|
|
68242
|
+
}, mt.parseDebuggerStatement = function(V) {
|
|
68239
68243
|
return this.next(), this.semicolon(), this.finishNode(V, "DebuggerStatement");
|
|
68240
|
-
},
|
|
68244
|
+
}, mt.parseDoStatement = function(V) {
|
|
68241
68245
|
return this.next(), this.labels.push(xr), V.body = this.parseStatement("do"), this.labels.pop(), this.expect(F._while), V.test = this.parseParenExpression(), this.options.ecmaVersion >= 6 ? this.eat(F.semi) : this.semicolon(), this.finishNode(V, "DoWhileStatement");
|
|
68242
|
-
},
|
|
68246
|
+
}, mt.parseForStatement = function(V) {
|
|
68243
68247
|
this.next();
|
|
68244
68248
|
var ae = this.options.ecmaVersion >= 9 && this.canAwait && this.eatContextual("await") ? this.lastTokStart : -1;
|
|
68245
68249
|
if (this.labels.push(xr), this.enterScope(0), this.expect(F.parenL), this.type === F.semi)
|
|
@@ -68251,14 +68255,14 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68251
68255
|
}
|
|
68252
68256
|
var lt = this.isContextual("let"), ct = !1, $t = this.containsEsc, Dt = new cr(), er = this.start, Jt = ae > -1 ? this.parseExprSubscripts(Dt, "await") : this.parseExpression(!0, Dt);
|
|
68253
68257
|
return this.type === F._in || (ct = this.options.ecmaVersion >= 6 && this.isContextual("of")) ? (ae > -1 ? (this.type === F._in && this.unexpected(ae), V.await = !0) : ct && this.options.ecmaVersion >= 8 && (Jt.start === er && !$t && Jt.type === "Identifier" && Jt.name === "async" ? this.unexpected() : this.options.ecmaVersion >= 9 && (V.await = !1)), lt && ct && this.raise(Jt.start, "The left-hand side of a for-of loop may not start with 'let'."), this.toAssignable(Jt, !1, Dt), this.checkLValPattern(Jt), this.parseForIn(V, Jt)) : (this.checkExpressionErrors(Dt, !0), ae > -1 && this.unexpected(ae), this.parseFor(V, Jt));
|
|
68254
|
-
},
|
|
68255
|
-
return this.next(), this.parseFunction(V,
|
|
68256
|
-
},
|
|
68258
|
+
}, mt.parseFunctionStatement = function(V, ae, Be) {
|
|
68259
|
+
return this.next(), this.parseFunction(V, Kt | (Be ? 0 : sr), !1, ae);
|
|
68260
|
+
}, mt.parseIfStatement = function(V) {
|
|
68257
68261
|
return this.next(), V.test = this.parseParenExpression(), V.consequent = this.parseStatement("if"), V.alternate = this.eat(F._else) ? this.parseStatement("if") : null, this.finishNode(V, "IfStatement");
|
|
68258
|
-
},
|
|
68262
|
+
}, mt.parseReturnStatement = function(V) {
|
|
68259
68263
|
return !this.inFunction && !this.options.allowReturnOutsideFunction && this.raise(this.start, "'return' outside of function"), this.next(), this.eat(F.semi) || this.insertSemicolon() ? V.argument = null : (V.argument = this.parseExpression(), this.semicolon()), this.finishNode(V, "ReturnStatement");
|
|
68260
|
-
},
|
|
68261
|
-
this.next(), V.discriminant = this.parseParenExpression(), V.cases = [], this.expect(F.braceL), this.labels.push(
|
|
68264
|
+
}, mt.parseSwitchStatement = function(V) {
|
|
68265
|
+
this.next(), V.discriminant = this.parseParenExpression(), V.cases = [], this.expect(F.braceL), this.labels.push(pt), this.enterScope(0);
|
|
68262
68266
|
for (var ae, Be = !1; this.type !== F.braceR; )
|
|
68263
68267
|
if (this.type === F._case || this.type === F._default) {
|
|
68264
68268
|
var Fe = this.type === F._case;
|
|
@@ -68266,28 +68270,28 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68266
68270
|
} else
|
|
68267
68271
|
ae || this.unexpected(), ae.consequent.push(this.parseStatement(null));
|
|
68268
68272
|
return this.exitScope(), ae && this.finishNode(ae, "SwitchCase"), this.next(), this.labels.pop(), this.finishNode(V, "SwitchStatement");
|
|
68269
|
-
},
|
|
68273
|
+
}, mt.parseThrowStatement = function(V) {
|
|
68270
68274
|
return this.next(), te.test(this.input.slice(this.lastTokEnd, this.start)) && this.raise(this.lastTokEnd, "Illegal newline after throw"), V.argument = this.parseExpression(), this.semicolon(), this.finishNode(V, "ThrowStatement");
|
|
68271
68275
|
};
|
|
68272
68276
|
var Zt = [];
|
|
68273
|
-
|
|
68277
|
+
mt.parseCatchClauseParam = function() {
|
|
68274
68278
|
var V = this.parseBindingAtom(), ae = V.type === "Identifier";
|
|
68275
|
-
return this.enterScope(ae ? Je : 0), this.checkLValPattern(V, ae ? ft :
|
|
68276
|
-
},
|
|
68279
|
+
return this.enterScope(ae ? Je : 0), this.checkLValPattern(V, ae ? ft : et), this.expect(F.parenR), V;
|
|
68280
|
+
}, mt.parseTryStatement = function(V) {
|
|
68277
68281
|
if (this.next(), V.block = this.parseBlock(), V.handler = null, this.type === F._catch) {
|
|
68278
68282
|
var ae = this.startNode();
|
|
68279
68283
|
this.next(), this.eat(F.parenL) ? ae.param = this.parseCatchClauseParam() : (this.options.ecmaVersion < 10 && this.unexpected(), ae.param = null, this.enterScope(0)), ae.body = this.parseBlock(!1), this.exitScope(), V.handler = this.finishNode(ae, "CatchClause");
|
|
68280
68284
|
}
|
|
68281
68285
|
return V.finalizer = this.eat(F._finally) ? this.parseBlock() : null, !V.handler && !V.finalizer && this.raise(V.start, "Missing catch or finally clause"), this.finishNode(V, "TryStatement");
|
|
68282
|
-
},
|
|
68286
|
+
}, mt.parseVarStatement = function(V, ae, Be) {
|
|
68283
68287
|
return this.next(), this.parseVar(V, !1, ae, Be), this.semicolon(), this.finishNode(V, "VariableDeclaration");
|
|
68284
|
-
},
|
|
68288
|
+
}, mt.parseWhileStatement = function(V) {
|
|
68285
68289
|
return this.next(), V.test = this.parseParenExpression(), this.labels.push(xr), V.body = this.parseStatement("while"), this.labels.pop(), this.finishNode(V, "WhileStatement");
|
|
68286
|
-
},
|
|
68290
|
+
}, mt.parseWithStatement = function(V) {
|
|
68287
68291
|
return this.strict && this.raise(this.start, "'with' in strict mode"), this.next(), V.object = this.parseParenExpression(), V.body = this.parseStatement("with"), this.finishNode(V, "WithStatement");
|
|
68288
|
-
},
|
|
68292
|
+
}, mt.parseEmptyStatement = function(V) {
|
|
68289
68293
|
return this.next(), this.finishNode(V, "EmptyStatement");
|
|
68290
|
-
},
|
|
68294
|
+
}, mt.parseLabeledStatement = function(V, ae, Be, Fe) {
|
|
68291
68295
|
for (var We = 0, lt = this.labels; We < lt.length; We += 1) {
|
|
68292
68296
|
var ct = lt[We];
|
|
68293
68297
|
ct.name === ae && this.raise(Be.start, "Label '" + ae + "' is already declared");
|
|
@@ -68300,47 +68304,47 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68300
68304
|
break;
|
|
68301
68305
|
}
|
|
68302
68306
|
return this.labels.push({ name: ae, kind: $t, statementStart: this.start }), V.body = this.parseStatement(Fe ? Fe.indexOf("label") === -1 ? Fe + "label" : Fe : "label"), this.labels.pop(), V.label = Be, this.finishNode(V, "LabeledStatement");
|
|
68303
|
-
},
|
|
68307
|
+
}, mt.parseExpressionStatement = function(V, ae) {
|
|
68304
68308
|
return V.expression = ae, this.semicolon(), this.finishNode(V, "ExpressionStatement");
|
|
68305
|
-
},
|
|
68309
|
+
}, mt.parseBlock = function(V, ae, Be) {
|
|
68306
68310
|
for (V === void 0 && (V = !0), ae === void 0 && (ae = this.startNode()), ae.body = [], this.expect(F.braceL), V && this.enterScope(0); this.type !== F.braceR; ) {
|
|
68307
68311
|
var Fe = this.parseStatement(null);
|
|
68308
68312
|
ae.body.push(Fe);
|
|
68309
68313
|
}
|
|
68310
68314
|
return Be && (this.strict = !1), this.next(), V && this.exitScope(), this.finishNode(ae, "BlockStatement");
|
|
68311
|
-
},
|
|
68315
|
+
}, mt.parseFor = function(V, ae) {
|
|
68312
68316
|
return V.init = ae, this.expect(F.semi), V.test = this.type === F.semi ? null : this.parseExpression(), this.expect(F.semi), V.update = this.type === F.parenR ? null : this.parseExpression(), this.expect(F.parenR), V.body = this.parseStatement("for"), this.exitScope(), this.labels.pop(), this.finishNode(V, "ForStatement");
|
|
68313
|
-
},
|
|
68317
|
+
}, mt.parseForIn = function(V, ae) {
|
|
68314
68318
|
var Be = this.type === F._in;
|
|
68315
68319
|
return this.next(), ae.type === "VariableDeclaration" && ae.declarations[0].init != null && (!Be || this.options.ecmaVersion < 8 || this.strict || ae.kind !== "var" || ae.declarations[0].id.type !== "Identifier") && this.raise(ae.start, (Be ? "for-in" : "for-of") + " loop variable declaration may not have an initializer"), V.left = ae, V.right = Be ? this.parseExpression() : this.parseMaybeAssign(), this.expect(F.parenR), V.body = this.parseStatement("for"), this.exitScope(), this.labels.pop(), this.finishNode(V, Be ? "ForInStatement" : "ForOfStatement");
|
|
68316
|
-
},
|
|
68320
|
+
}, mt.parseVar = function(V, ae, Be, Fe) {
|
|
68317
68321
|
for (V.declarations = [], V.kind = Be; ; ) {
|
|
68318
68322
|
var We = this.startNode();
|
|
68319
68323
|
if (this.parseVarId(We, Be), this.eat(F.eq) ? We.init = this.parseMaybeAssign(ae) : !Fe && Be === "const" && !(this.type === F._in || this.options.ecmaVersion >= 6 && this.isContextual("of")) ? this.unexpected() : !Fe && We.id.type !== "Identifier" && !(ae && (this.type === F._in || this.isContextual("of"))) ? this.raise(this.lastTokEnd, "Complex binding patterns require an initialization value") : We.init = null, V.declarations.push(this.finishNode(We, "VariableDeclarator")), !this.eat(F.comma))
|
|
68320
68324
|
break;
|
|
68321
68325
|
}
|
|
68322
68326
|
return V;
|
|
68323
|
-
},
|
|
68324
|
-
V.id = this.parseBindingAtom(), this.checkLValPattern(V.id, ae === "var" ?
|
|
68327
|
+
}, mt.parseVarId = function(V, ae) {
|
|
68328
|
+
V.id = this.parseBindingAtom(), this.checkLValPattern(V.id, ae === "var" ? it : et, !1);
|
|
68325
68329
|
};
|
|
68326
|
-
var
|
|
68327
|
-
|
|
68328
|
-
this.initFunction(V), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !Fe) && (this.type === F.star && ae &
|
|
68330
|
+
var Kt = 1, sr = 2, ar = 4;
|
|
68331
|
+
mt.parseFunction = function(V, ae, Be, Fe, We) {
|
|
68332
|
+
this.initFunction(V), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !Fe) && (this.type === F.star && ae & sr && this.unexpected(), V.generator = this.eat(F.star)), this.options.ecmaVersion >= 8 && (V.async = !!Fe), ae & Kt && (V.id = ae & ar && this.type !== F.name ? null : this.parseIdent(), V.id && !(ae & sr) && this.checkLValSimple(V.id, this.strict || V.generator || V.async ? this.treatFunctionsAsVar ? it : et : ut));
|
|
68329
68333
|
var lt = this.yieldPos, ct = this.awaitPos, $t = this.awaitIdentPos;
|
|
68330
|
-
return this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(Ft(V.async, V.generator)), ae &
|
|
68331
|
-
},
|
|
68334
|
+
return this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(Ft(V.async, V.generator)), ae & Kt || (V.id = this.type === F.name ? this.parseIdent() : null), this.parseFunctionParams(V), this.parseFunctionBody(V, Be, !1, We), this.yieldPos = lt, this.awaitPos = ct, this.awaitIdentPos = $t, this.finishNode(V, ae & Kt ? "FunctionDeclaration" : "FunctionExpression");
|
|
68335
|
+
}, mt.parseFunctionParams = function(V) {
|
|
68332
68336
|
this.expect(F.parenL), V.params = this.parseBindingList(F.parenR, !1, this.options.ecmaVersion >= 8), this.checkYieldAwaitInDefaultParams();
|
|
68333
|
-
},
|
|
68337
|
+
}, mt.parseClass = function(V, ae) {
|
|
68334
68338
|
this.next();
|
|
68335
68339
|
var Be = this.strict;
|
|
68336
68340
|
this.strict = !0, this.parseClassId(V, ae), this.parseClassSuper(V);
|
|
68337
68341
|
var Fe = this.enterClassBody(), We = this.startNode(), lt = !1;
|
|
68338
68342
|
for (We.body = [], this.expect(F.braceL); this.type !== F.braceR; ) {
|
|
68339
68343
|
var ct = this.parseClassElement(V.superClass !== null);
|
|
68340
|
-
ct && (We.body.push(ct), ct.type === "MethodDefinition" && ct.kind === "constructor" ? (lt && this.raiseRecoverable(ct.start, "Duplicate constructor in the same class"), lt = !0) : ct.key && ct.key.type === "PrivateIdentifier" &&
|
|
68344
|
+
ct && (We.body.push(ct), ct.type === "MethodDefinition" && ct.kind === "constructor" ? (lt && this.raiseRecoverable(ct.start, "Duplicate constructor in the same class"), lt = !0) : ct.key && ct.key.type === "PrivateIdentifier" && Sr(Fe, ct) && this.raiseRecoverable(ct.key.start, "Identifier '#" + ct.key.name + "' has already been declared"));
|
|
68341
68345
|
}
|
|
68342
68346
|
return this.strict = Be, this.next(), V.body = this.finishNode(We, "ClassBody"), this.exitClassBody(), this.finishNode(V, ae ? "ClassDeclaration" : "ClassExpression");
|
|
68343
|
-
},
|
|
68347
|
+
}, mt.parseClassElement = function(V) {
|
|
68344
68348
|
if (this.eat(F.semi))
|
|
68345
68349
|
return null;
|
|
68346
68350
|
var ae = this.options.ecmaVersion, Be = this.startNode(), Fe = "", We = !1, lt = !1, ct = "method", $t = !1;
|
|
@@ -68354,28 +68358,28 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68354
68358
|
(this.eatContextual("get") || this.eatContextual("set")) && (this.isClassElementNameStart() ? ct = Dt : Fe = Dt);
|
|
68355
68359
|
}
|
|
68356
68360
|
if (Fe ? (Be.computed = !1, Be.key = this.startNodeAt(this.lastTokStart, this.lastTokStartLoc), Be.key.name = Fe, this.finishNode(Be.key, "Identifier")) : this.parseClassElementName(Be), ae < 13 || this.type === F.parenL || ct !== "method" || We || lt) {
|
|
68357
|
-
var er = !Be.static &&
|
|
68361
|
+
var er = !Be.static && Tr(Be, "constructor"), Jt = er && V;
|
|
68358
68362
|
er && ct !== "method" && this.raise(Be.key.start, "Constructor can't have get/set modifier"), Be.kind = er ? "constructor" : ct, this.parseClassMethod(Be, We, lt, Jt);
|
|
68359
68363
|
} else
|
|
68360
68364
|
this.parseClassField(Be);
|
|
68361
68365
|
return Be;
|
|
68362
|
-
},
|
|
68366
|
+
}, mt.isClassElementNameStart = function() {
|
|
68363
68367
|
return this.type === F.name || this.type === F.privateId || this.type === F.num || this.type === F.string || this.type === F.bracketL || this.type.keyword;
|
|
68364
|
-
},
|
|
68368
|
+
}, mt.parseClassElementName = function(V) {
|
|
68365
68369
|
this.type === F.privateId ? (this.value === "constructor" && this.raise(this.start, "Classes can't have an element named '#constructor'"), V.computed = !1, V.key = this.parsePrivateIdent()) : this.parsePropertyName(V);
|
|
68366
|
-
},
|
|
68370
|
+
}, mt.parseClassMethod = function(V, ae, Be, Fe) {
|
|
68367
68371
|
var We = V.key;
|
|
68368
|
-
V.kind === "constructor" ? (ae && this.raise(We.start, "Constructor can't be a generator"), Be && this.raise(We.start, "Constructor can't be an async method")) : V.static &&
|
|
68372
|
+
V.kind === "constructor" ? (ae && this.raise(We.start, "Constructor can't be a generator"), Be && this.raise(We.start, "Constructor can't be an async method")) : V.static && Tr(V, "prototype") && this.raise(We.start, "Classes may not have a static property named prototype");
|
|
68369
68373
|
var lt = V.value = this.parseMethod(ae, Be, Fe);
|
|
68370
68374
|
return V.kind === "get" && lt.params.length !== 0 && this.raiseRecoverable(lt.start, "getter should have no params"), V.kind === "set" && lt.params.length !== 1 && this.raiseRecoverable(lt.start, "setter should have exactly one param"), V.kind === "set" && lt.params[0].type === "RestElement" && this.raiseRecoverable(lt.params[0].start, "Setter cannot use rest params"), this.finishNode(V, "MethodDefinition");
|
|
68371
|
-
},
|
|
68372
|
-
if (
|
|
68375
|
+
}, mt.parseClassField = function(V) {
|
|
68376
|
+
if (Tr(V, "constructor") ? this.raise(V.key.start, "Classes can't have a field named 'constructor'") : V.static && Tr(V, "prototype") && this.raise(V.key.start, "Classes can't have a static field named 'prototype'"), this.eat(F.eq)) {
|
|
68373
68377
|
var ae = this.currentThisScope(), Be = ae.inClassFieldInit;
|
|
68374
68378
|
ae.inClassFieldInit = !0, V.value = this.parseMaybeAssign(), ae.inClassFieldInit = Be;
|
|
68375
68379
|
} else
|
|
68376
68380
|
V.value = null;
|
|
68377
68381
|
return this.semicolon(), this.finishNode(V, "PropertyDefinition");
|
|
68378
|
-
},
|
|
68382
|
+
}, mt.parseClassStaticBlock = function(V) {
|
|
68379
68383
|
V.body = [];
|
|
68380
68384
|
var ae = this.labels;
|
|
68381
68385
|
for (this.labels = [], this.enterScope(qt | yt); this.type !== F.braceR; ) {
|
|
@@ -68383,14 +68387,14 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68383
68387
|
V.body.push(Be);
|
|
68384
68388
|
}
|
|
68385
68389
|
return this.next(), this.exitScope(), this.labels = ae, this.finishNode(V, "StaticBlock");
|
|
68386
|
-
},
|
|
68387
|
-
this.type === F.name ? (V.id = this.parseIdent(), ae && this.checkLValSimple(V.id,
|
|
68388
|
-
},
|
|
68390
|
+
}, mt.parseClassId = function(V, ae) {
|
|
68391
|
+
this.type === F.name ? (V.id = this.parseIdent(), ae && this.checkLValSimple(V.id, et, !1)) : (ae === !0 && this.unexpected(), V.id = null);
|
|
68392
|
+
}, mt.parseClassSuper = function(V) {
|
|
68389
68393
|
V.superClass = this.eat(F._extends) ? this.parseExprSubscripts(null, !1) : null;
|
|
68390
|
-
},
|
|
68394
|
+
}, mt.enterClassBody = function() {
|
|
68391
68395
|
var V = { declared: /* @__PURE__ */ Object.create(null), used: [] };
|
|
68392
68396
|
return this.privateNameStack.push(V), V.declared;
|
|
68393
|
-
},
|
|
68397
|
+
}, mt.exitClassBody = function() {
|
|
68394
68398
|
var V = this.privateNameStack.pop(), ae = V.declared, Be = V.used;
|
|
68395
68399
|
if (this.options.checkPrivateFields)
|
|
68396
68400
|
for (var Fe = this.privateNameStack.length, We = Fe === 0 ? null : this.privateNameStack[Fe - 1], lt = 0; lt < Be.length; ++lt) {
|
|
@@ -68398,17 +68402,17 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68398
68402
|
je(ae, ct.name) || (We ? We.used.push(ct) : this.raiseRecoverable(ct.start, "Private field '#" + ct.name + "' must be declared in an enclosing class"));
|
|
68399
68403
|
}
|
|
68400
68404
|
};
|
|
68401
|
-
function
|
|
68405
|
+
function Sr(V, ae) {
|
|
68402
68406
|
var Be = ae.key.name, Fe = V[Be], We = "true";
|
|
68403
68407
|
return ae.type === "MethodDefinition" && (ae.kind === "get" || ae.kind === "set") && (We = (ae.static ? "s" : "i") + ae.kind), Fe === "iget" && We === "iset" || Fe === "iset" && We === "iget" || Fe === "sget" && We === "sset" || Fe === "sset" && We === "sget" ? (V[Be] = "true", !1) : Fe ? !0 : (V[Be] = We, !1);
|
|
68404
68408
|
}
|
|
68405
|
-
function
|
|
68409
|
+
function Tr(V, ae) {
|
|
68406
68410
|
var Be = V.computed, Fe = V.key;
|
|
68407
68411
|
return !Be && (Fe.type === "Identifier" && Fe.name === ae || Fe.type === "Literal" && Fe.value === ae);
|
|
68408
68412
|
}
|
|
68409
|
-
|
|
68413
|
+
mt.parseExportAllDeclaration = function(V, ae) {
|
|
68410
68414
|
return this.options.ecmaVersion >= 11 && (this.eatContextual("as") ? (V.exported = this.parseModuleExportName(), this.checkExport(ae, V.exported, this.lastTokStart)) : V.exported = null), this.expectContextual("from"), this.type !== F.string && this.unexpected(), V.source = this.parseExprAtom(), this.semicolon(), this.finishNode(V, "ExportAllDeclaration");
|
|
68411
|
-
},
|
|
68415
|
+
}, mt.parseExport = function(V, ae) {
|
|
68412
68416
|
if (this.next(), this.eat(F.star))
|
|
68413
68417
|
return this.parseExportAllDeclaration(V, ae);
|
|
68414
68418
|
if (this.eat(F._default))
|
|
@@ -68428,13 +68432,13 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68428
68432
|
this.semicolon();
|
|
68429
68433
|
}
|
|
68430
68434
|
return this.finishNode(V, "ExportNamedDeclaration");
|
|
68431
|
-
},
|
|
68435
|
+
}, mt.parseExportDeclaration = function(V) {
|
|
68432
68436
|
return this.parseStatement(null);
|
|
68433
|
-
},
|
|
68437
|
+
}, mt.parseExportDefaultDeclaration = function() {
|
|
68434
68438
|
var V;
|
|
68435
68439
|
if (this.type === F._function || (V = this.isAsyncFunction())) {
|
|
68436
68440
|
var ae = this.startNode();
|
|
68437
|
-
return this.next(), V && this.next(), this.parseFunction(ae,
|
|
68441
|
+
return this.next(), V && this.next(), this.parseFunction(ae, Kt | ar, !1, V);
|
|
68438
68442
|
} else if (this.type === F._class) {
|
|
68439
68443
|
var Be = this.startNode();
|
|
68440
68444
|
return this.parseClass(Be, "nullableID");
|
|
@@ -68442,9 +68446,9 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68442
68446
|
var Fe = this.parseMaybeAssign();
|
|
68443
68447
|
return this.semicolon(), Fe;
|
|
68444
68448
|
}
|
|
68445
|
-
},
|
|
68449
|
+
}, mt.checkExport = function(V, ae, Be) {
|
|
68446
68450
|
V && (typeof ae != "string" && (ae = ae.type === "Identifier" ? ae.name : ae.value), je(V, ae) && this.raiseRecoverable(Be, "Duplicate export '" + ae + "'"), V[ae] = !0);
|
|
68447
|
-
},
|
|
68451
|
+
}, mt.checkPatternExport = function(V, ae) {
|
|
68448
68452
|
var Be = ae.type;
|
|
68449
68453
|
if (Be === "Identifier")
|
|
68450
68454
|
this.checkExport(V, ae, ae.start);
|
|
@@ -68459,18 +68463,18 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68459
68463
|
Dt && this.checkPatternExport(V, Dt);
|
|
68460
68464
|
}
|
|
68461
68465
|
else Be === "Property" ? this.checkPatternExport(V, ae.value) : Be === "AssignmentPattern" ? this.checkPatternExport(V, ae.left) : Be === "RestElement" && this.checkPatternExport(V, ae.argument);
|
|
68462
|
-
},
|
|
68466
|
+
}, mt.checkVariableExport = function(V, ae) {
|
|
68463
68467
|
if (V)
|
|
68464
68468
|
for (var Be = 0, Fe = ae; Be < Fe.length; Be += 1) {
|
|
68465
68469
|
var We = Fe[Be];
|
|
68466
68470
|
this.checkPatternExport(V, We.id);
|
|
68467
68471
|
}
|
|
68468
|
-
},
|
|
68472
|
+
}, mt.shouldParseExportStatement = function() {
|
|
68469
68473
|
return this.type.keyword === "var" || this.type.keyword === "const" || this.type.keyword === "class" || this.type.keyword === "function" || this.isLet() || this.isAsyncFunction();
|
|
68470
|
-
},
|
|
68474
|
+
}, mt.parseExportSpecifier = function(V) {
|
|
68471
68475
|
var ae = this.startNode();
|
|
68472
68476
|
return ae.local = this.parseModuleExportName(), ae.exported = this.eatContextual("as") ? this.parseModuleExportName() : ae.local, this.checkExport(V, ae.exported, ae.exported.start), this.finishNode(ae, "ExportSpecifier");
|
|
68473
|
-
},
|
|
68477
|
+
}, mt.parseExportSpecifiers = function(V) {
|
|
68474
68478
|
var ae = [], Be = !0;
|
|
68475
68479
|
for (this.expect(F.braceL); !this.eat(F.braceR); ) {
|
|
68476
68480
|
if (Be)
|
|
@@ -68480,18 +68484,18 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68480
68484
|
ae.push(this.parseExportSpecifier(V));
|
|
68481
68485
|
}
|
|
68482
68486
|
return ae;
|
|
68483
|
-
},
|
|
68487
|
+
}, mt.parseImport = function(V) {
|
|
68484
68488
|
return this.next(), this.type === F.string ? (V.specifiers = Zt, V.source = this.parseExprAtom()) : (V.specifiers = this.parseImportSpecifiers(), this.expectContextual("from"), V.source = this.type === F.string ? this.parseExprAtom() : this.unexpected()), this.semicolon(), this.finishNode(V, "ImportDeclaration");
|
|
68485
|
-
},
|
|
68489
|
+
}, mt.parseImportSpecifier = function() {
|
|
68486
68490
|
var V = this.startNode();
|
|
68487
|
-
return V.imported = this.parseModuleExportName(), this.eatContextual("as") ? V.local = this.parseIdent() : (this.checkUnreserved(V.imported), V.local = V.imported), this.checkLValSimple(V.local,
|
|
68488
|
-
},
|
|
68491
|
+
return V.imported = this.parseModuleExportName(), this.eatContextual("as") ? V.local = this.parseIdent() : (this.checkUnreserved(V.imported), V.local = V.imported), this.checkLValSimple(V.local, et), this.finishNode(V, "ImportSpecifier");
|
|
68492
|
+
}, mt.parseImportDefaultSpecifier = function() {
|
|
68489
68493
|
var V = this.startNode();
|
|
68490
|
-
return V.local = this.parseIdent(), this.checkLValSimple(V.local,
|
|
68491
|
-
},
|
|
68494
|
+
return V.local = this.parseIdent(), this.checkLValSimple(V.local, et), this.finishNode(V, "ImportDefaultSpecifier");
|
|
68495
|
+
}, mt.parseImportNamespaceSpecifier = function() {
|
|
68492
68496
|
var V = this.startNode();
|
|
68493
|
-
return this.next(), this.expectContextual("as"), V.local = this.parseIdent(), this.checkLValSimple(V.local,
|
|
68494
|
-
},
|
|
68497
|
+
return this.next(), this.expectContextual("as"), V.local = this.parseIdent(), this.checkLValSimple(V.local, et), this.finishNode(V, "ImportNamespaceSpecifier");
|
|
68498
|
+
}, mt.parseImportSpecifiers = function() {
|
|
68495
68499
|
var V = [], ae = !0;
|
|
68496
68500
|
if (this.type === F.name && (V.push(this.parseImportDefaultSpecifier()), !this.eat(F.comma)))
|
|
68497
68501
|
return V;
|
|
@@ -68505,16 +68509,16 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68505
68509
|
V.push(this.parseImportSpecifier());
|
|
68506
68510
|
}
|
|
68507
68511
|
return V;
|
|
68508
|
-
},
|
|
68512
|
+
}, mt.parseModuleExportName = function() {
|
|
68509
68513
|
if (this.options.ecmaVersion >= 13 && this.type === F.string) {
|
|
68510
68514
|
var V = this.parseLiteral(this.value);
|
|
68511
68515
|
return Ge.test(V.value) && this.raise(V.start, "An export name cannot include a lone surrogate."), V;
|
|
68512
68516
|
}
|
|
68513
68517
|
return this.parseIdent(!0);
|
|
68514
|
-
},
|
|
68518
|
+
}, mt.adaptDirectivePrologue = function(V) {
|
|
68515
68519
|
for (var ae = 0; ae < V.length && this.isDirectiveCandidate(V[ae]); ++ae)
|
|
68516
68520
|
V[ae].directive = V[ae].expression.raw.slice(1, -1);
|
|
68517
|
-
},
|
|
68521
|
+
}, mt.isDirectiveCandidate = function(V) {
|
|
68518
68522
|
return this.options.ecmaVersion >= 5 && V.type === "ExpressionStatement" && V.expression.type === "Literal" && typeof V.expression.value == "string" && (this.input[V.start] === '"' || this.input[V.start] === "'");
|
|
68519
68523
|
};
|
|
68520
68524
|
var pr = Ct.prototype;
|
|
@@ -68618,7 +68622,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68618
68622
|
var Fe = ae !== Ke;
|
|
68619
68623
|
switch (V.type) {
|
|
68620
68624
|
case "Identifier":
|
|
68621
|
-
this.strict && this.reservedWordsStrictBind.test(V.name) && this.raiseRecoverable(V.start, (Fe ? "Binding " : "Assigning to ") + V.name + " in strict mode"), Fe && (ae ===
|
|
68625
|
+
this.strict && this.reservedWordsStrictBind.test(V.name) && this.raiseRecoverable(V.start, (Fe ? "Binding " : "Assigning to ") + V.name + " in strict mode"), Fe && (ae === et && V.name === "let" && this.raiseRecoverable(V.start, "let is disallowed as a lexically bound name"), Be && (je(Be, V.name) && this.raiseRecoverable(V.start, "Argument name clash"), Be[V.name] = !0), ae !== dt && this.declareName(V.name, ae, V.start));
|
|
68622
68626
|
break;
|
|
68623
68627
|
case "ChainExpression":
|
|
68624
68628
|
this.raiseRecoverable(V.start, "Optional chaining cannot appear in left-hand side");
|
|
@@ -68820,7 +68824,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68820
68824
|
ct = this.parseAwait(Fe), ae = !0;
|
|
68821
68825
|
else if (this.type.prefix) {
|
|
68822
68826
|
var $t = this.startNode(), Dt = this.type === F.incDec;
|
|
68823
|
-
$t.operator = this.value, $t.prefix = !0, this.next(), $t.argument = this.parseMaybeUnary(null, !0, Dt, Fe), this.checkExpressionErrors(V, !0), Dt ? this.checkLValSimple($t.argument) : this.strict && $t.operator === "delete" && dr($t.argument) ? this.raiseRecoverable($t.start, "Deleting local variable in strict mode") : $t.operator === "delete" &&
|
|
68827
|
+
$t.operator = this.value, $t.prefix = !0, this.next(), $t.argument = this.parseMaybeUnary(null, !0, Dt, Fe), this.checkExpressionErrors(V, !0), Dt ? this.checkLValSimple($t.argument) : this.strict && $t.operator === "delete" && dr($t.argument) ? this.raiseRecoverable($t.start, "Deleting local variable in strict mode") : $t.operator === "delete" && Ir($t.argument) ? this.raiseRecoverable($t.start, "Private fields can not be deleted") : ae = !0, ct = this.finishNode($t, Dt ? "UpdateExpression" : "UnaryExpression");
|
|
68824
68828
|
} else if (!ae && this.type === F.privateId)
|
|
68825
68829
|
(Fe || this.privateNameStack.length === 0) && this.options.checkPrivateFields && this.unexpected(), ct = this.parsePrivateIdent(), this.type !== F._in && this.unexpected();
|
|
68826
68830
|
else {
|
|
@@ -68842,8 +68846,8 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68842
68846
|
function dr(V) {
|
|
68843
68847
|
return V.type === "Identifier" || V.type === "ParenthesizedExpression" && dr(V.expression);
|
|
68844
68848
|
}
|
|
68845
|
-
function
|
|
68846
|
-
return V.type === "MemberExpression" && V.property.type === "PrivateIdentifier" || V.type === "ChainExpression" &&
|
|
68849
|
+
function Ir(V) {
|
|
68850
|
+
return V.type === "MemberExpression" && V.property.type === "PrivateIdentifier" || V.type === "ChainExpression" && Ir(V.expression) || V.type === "ParenthesizedExpression" && Ir(V.expression);
|
|
68847
68851
|
}
|
|
68848
68852
|
Xt.parseExprSubscripts = function(V, ae) {
|
|
68849
68853
|
var Be = this.start, Fe = this.startLoc, We = this.parseExprAtom(V, ae);
|
|
@@ -69097,7 +69101,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69097
69101
|
}, Xt.checkParams = function(V, ae) {
|
|
69098
69102
|
for (var Be = /* @__PURE__ */ Object.create(null), Fe = 0, We = V.params; Fe < We.length; Fe += 1) {
|
|
69099
69103
|
var lt = We[Fe];
|
|
69100
|
-
this.checkLValInnerPattern(lt,
|
|
69104
|
+
this.checkLValInnerPattern(lt, it, ae ? null : Be);
|
|
69101
69105
|
}
|
|
69102
69106
|
}, Xt.parseExprList = function(V, ae, Be, Fe) {
|
|
69103
69107
|
for (var We = [], lt = !0; !this.eat(V); ) {
|
|
@@ -69143,20 +69147,20 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69143
69147
|
if (this.options.locations)
|
|
69144
69148
|
return new He(this.curLine, this.pos - this.lineStart);
|
|
69145
69149
|
};
|
|
69146
|
-
var
|
|
69150
|
+
var wr = Ct.prototype, tn = function(ae) {
|
|
69147
69151
|
this.flags = ae, this.var = [], this.lexical = [], this.functions = [], this.inClassFieldInit = !1;
|
|
69148
69152
|
};
|
|
69149
|
-
|
|
69153
|
+
wr.enterScope = function(V) {
|
|
69150
69154
|
this.scopeStack.push(new tn(V));
|
|
69151
|
-
},
|
|
69155
|
+
}, wr.exitScope = function() {
|
|
69152
69156
|
this.scopeStack.pop();
|
|
69153
|
-
},
|
|
69154
|
-
return V.flags &
|
|
69155
|
-
},
|
|
69157
|
+
}, wr.treatFunctionsAsVarInScope = function(V) {
|
|
69158
|
+
return V.flags & at || !this.inModule && V.flags & rt;
|
|
69159
|
+
}, wr.declareName = function(V, ae, Be) {
|
|
69156
69160
|
var Fe = !1;
|
|
69157
|
-
if (ae ===
|
|
69161
|
+
if (ae === et) {
|
|
69158
69162
|
var We = this.currentScope();
|
|
69159
|
-
Fe = We.lexical.indexOf(V) > -1 || We.functions.indexOf(V) > -1 || We.var.indexOf(V) > -1, We.lexical.push(V), this.inModule && We.flags &
|
|
69163
|
+
Fe = We.lexical.indexOf(V) > -1 || We.functions.indexOf(V) > -1 || We.var.indexOf(V) > -1, We.lexical.push(V), this.inModule && We.flags & rt && delete this.undefinedExports[V];
|
|
69160
69164
|
} else if (ae === ft) {
|
|
69161
69165
|
var lt = this.currentScope();
|
|
69162
69166
|
lt.lexical.push(V);
|
|
@@ -69170,21 +69174,21 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69170
69174
|
Fe = !0;
|
|
69171
69175
|
break;
|
|
69172
69176
|
}
|
|
69173
|
-
if (Dt.var.push(V), this.inModule && Dt.flags &
|
|
69177
|
+
if (Dt.var.push(V), this.inModule && Dt.flags & rt && delete this.undefinedExports[V], Dt.flags & Ht)
|
|
69174
69178
|
break;
|
|
69175
69179
|
}
|
|
69176
69180
|
Fe && this.raiseRecoverable(Be, "Identifier '" + V + "' has already been declared");
|
|
69177
|
-
},
|
|
69181
|
+
}, wr.checkLocalExport = function(V) {
|
|
69178
69182
|
this.scopeStack[0].lexical.indexOf(V.name) === -1 && this.scopeStack[0].var.indexOf(V.name) === -1 && (this.undefinedExports[V.name] = V);
|
|
69179
|
-
},
|
|
69183
|
+
}, wr.currentScope = function() {
|
|
69180
69184
|
return this.scopeStack[this.scopeStack.length - 1];
|
|
69181
|
-
},
|
|
69185
|
+
}, wr.currentVarScope = function() {
|
|
69182
69186
|
for (var V = this.scopeStack.length - 1; ; V--) {
|
|
69183
69187
|
var ae = this.scopeStack[V];
|
|
69184
69188
|
if (ae.flags & Ht)
|
|
69185
69189
|
return ae;
|
|
69186
69190
|
}
|
|
69187
|
-
},
|
|
69191
|
+
}, wr.currentThisScope = function() {
|
|
69188
69192
|
for (var V = this.scopeStack.length - 1; ; V--) {
|
|
69189
69193
|
var ae = this.scopeStack[V];
|
|
69190
69194
|
if (ae.flags & Ht && !(ae.flags & Rt))
|
|
@@ -69199,26 +69203,26 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69199
69203
|
}, Lr.startNodeAt = function(V, ae) {
|
|
69200
69204
|
return new Vr(this, V, ae);
|
|
69201
69205
|
};
|
|
69202
|
-
function
|
|
69206
|
+
function _r(V, ae, Be, Fe) {
|
|
69203
69207
|
return V.type = ae, V.end = Be, this.options.locations && (V.loc.end = Fe), this.options.ranges && (V.range[1] = Be), V;
|
|
69204
69208
|
}
|
|
69205
69209
|
Lr.finishNode = function(V, ae) {
|
|
69206
|
-
return
|
|
69210
|
+
return _r.call(this, V, ae, this.lastTokEnd, this.lastTokEndLoc);
|
|
69207
69211
|
}, Lr.finishNodeAt = function(V, ae, Be, Fe) {
|
|
69208
|
-
return
|
|
69212
|
+
return _r.call(this, V, ae, Be, Fe);
|
|
69209
69213
|
}, Lr.copyNode = function(V) {
|
|
69210
69214
|
var ae = new Vr(this, V.start, this.startLoc);
|
|
69211
69215
|
for (var Be in V)
|
|
69212
69216
|
ae[Be] = V[Be];
|
|
69213
69217
|
return ae;
|
|
69214
69218
|
};
|
|
69215
|
-
var $r = "ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS", Kr = $r + " Extended_Pictographic", Yr = Kr, Ur = Yr + " EBase EComp EMod EPres ExtPict", Zr = Ur,
|
|
69219
|
+
var $r = "ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS", Kr = $r + " Extended_Pictographic", Yr = Kr, Ur = Yr + " EBase EComp EMod EPres ExtPict", Zr = Ur, Ar = Zr, rn = {
|
|
69216
69220
|
9: $r,
|
|
69217
69221
|
10: Kr,
|
|
69218
69222
|
11: Yr,
|
|
69219
69223
|
12: Ur,
|
|
69220
69224
|
13: Zr,
|
|
69221
|
-
14:
|
|
69225
|
+
14: Ar
|
|
69222
69226
|
}, nn = "Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji", an = {
|
|
69223
69227
|
9: "",
|
|
69224
69228
|
10: "",
|
|
@@ -69226,9 +69230,9 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69226
69230
|
12: "",
|
|
69227
69231
|
13: "",
|
|
69228
69232
|
14: nn
|
|
69229
|
-
}, Xr = "Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu", on = "Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",
|
|
69233
|
+
}, Xr = "Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu", on = "Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb", Wt = on + " Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd", nt = Wt + " Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho", It = nt + " Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi", Ut = It + " Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith", lr = Ut + " Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz", gr = {
|
|
69230
69234
|
9: on,
|
|
69231
|
-
10:
|
|
69235
|
+
10: Wt,
|
|
69232
69236
|
11: nt,
|
|
69233
69237
|
12: It,
|
|
69234
69238
|
13: Ut,
|
|
@@ -69245,8 +69249,8 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69245
69249
|
};
|
|
69246
69250
|
ae.nonBinary.Script_Extensions = ae.nonBinary.Script, ae.nonBinary.gc = ae.nonBinary.General_Category, ae.nonBinary.sc = ae.nonBinary.Script, ae.nonBinary.scx = ae.nonBinary.Script_Extensions;
|
|
69247
69251
|
}
|
|
69248
|
-
for (var
|
|
69249
|
-
var Jr = Dr[
|
|
69252
|
+
for (var Pr = 0, Dr = [9, 10, 11, 12, 13, 14]; Pr < Dr.length; Pr += 1) {
|
|
69253
|
+
var Jr = Dr[Pr];
|
|
69250
69254
|
vr(Jr);
|
|
69251
69255
|
}
|
|
69252
69256
|
var Vt = Ct.prototype, Fr = function(ae, Be) {
|
|
@@ -69261,15 +69265,15 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69261
69265
|
}, Fr.prototype.sibling = function() {
|
|
69262
69266
|
return new Fr(this.parent, this.base);
|
|
69263
69267
|
};
|
|
69264
|
-
var
|
|
69268
|
+
var Cr = function(ae) {
|
|
69265
69269
|
this.parser = ae, this.validFlags = "gim" + (ae.options.ecmaVersion >= 6 ? "uy" : "") + (ae.options.ecmaVersion >= 9 ? "s" : "") + (ae.options.ecmaVersion >= 13 ? "d" : "") + (ae.options.ecmaVersion >= 15 ? "v" : ""), this.unicodeProperties = ur[ae.options.ecmaVersion >= 14 ? 14 : ae.options.ecmaVersion], this.source = "", this.flags = "", this.start = 0, this.switchU = !1, this.switchV = !1, this.switchN = !1, this.pos = 0, this.lastIntValue = 0, this.lastStringValue = "", this.lastAssertionIsQuantifiable = !1, this.numCapturingParens = 0, this.maxBackReference = 0, this.groupNames = /* @__PURE__ */ Object.create(null), this.backReferenceNames = [], this.branchID = null;
|
|
69266
69270
|
};
|
|
69267
|
-
|
|
69271
|
+
Cr.prototype.reset = function(ae, Be, Fe) {
|
|
69268
69272
|
var We = Fe.indexOf("v") !== -1, lt = Fe.indexOf("u") !== -1;
|
|
69269
69273
|
this.start = ae | 0, this.source = Be + "", this.flags = Fe, We && this.parser.options.ecmaVersion >= 15 ? (this.switchU = !0, this.switchV = !0, this.switchN = !0) : (this.switchU = lt && this.parser.options.ecmaVersion >= 6, this.switchV = !1, this.switchN = lt && this.parser.options.ecmaVersion >= 9);
|
|
69270
|
-
},
|
|
69274
|
+
}, Cr.prototype.raise = function(ae) {
|
|
69271
69275
|
this.parser.raiseRecoverable(this.start, "Invalid regular expression: /" + this.source + "/: " + ae);
|
|
69272
|
-
},
|
|
69276
|
+
}, Cr.prototype.at = function(ae, Be) {
|
|
69273
69277
|
Be === void 0 && (Be = !1);
|
|
69274
69278
|
var Fe = this.source, We = Fe.length;
|
|
69275
69279
|
if (ae >= We)
|
|
@@ -69279,22 +69283,22 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69279
69283
|
return lt;
|
|
69280
69284
|
var ct = Fe.charCodeAt(ae + 1);
|
|
69281
69285
|
return ct >= 56320 && ct <= 57343 ? (lt << 10) + ct - 56613888 : lt;
|
|
69282
|
-
},
|
|
69286
|
+
}, Cr.prototype.nextIndex = function(ae, Be) {
|
|
69283
69287
|
Be === void 0 && (Be = !1);
|
|
69284
69288
|
var Fe = this.source, We = Fe.length;
|
|
69285
69289
|
if (ae >= We)
|
|
69286
69290
|
return We;
|
|
69287
69291
|
var lt = Fe.charCodeAt(ae), ct;
|
|
69288
69292
|
return !(Be || this.switchU) || lt <= 55295 || lt >= 57344 || ae + 1 >= We || (ct = Fe.charCodeAt(ae + 1)) < 56320 || ct > 57343 ? ae + 1 : ae + 2;
|
|
69289
|
-
},
|
|
69293
|
+
}, Cr.prototype.current = function(ae) {
|
|
69290
69294
|
return ae === void 0 && (ae = !1), this.at(this.pos, ae);
|
|
69291
|
-
},
|
|
69295
|
+
}, Cr.prototype.lookahead = function(ae) {
|
|
69292
69296
|
return ae === void 0 && (ae = !1), this.at(this.nextIndex(this.pos, ae), ae);
|
|
69293
|
-
},
|
|
69297
|
+
}, Cr.prototype.advance = function(ae) {
|
|
69294
69298
|
ae === void 0 && (ae = !1), this.pos = this.nextIndex(this.pos, ae);
|
|
69295
|
-
},
|
|
69299
|
+
}, Cr.prototype.eat = function(ae, Be) {
|
|
69296
69300
|
return Be === void 0 && (Be = !1), this.current(Be) === ae ? (this.advance(Be), !0) : !1;
|
|
69297
|
-
},
|
|
69301
|
+
}, Cr.prototype.eatChars = function(ae, Be) {
|
|
69298
69302
|
Be === void 0 && (Be = !1);
|
|
69299
69303
|
for (var Fe = this.pos, We = 0, lt = ae; We < lt.length; We += 1) {
|
|
69300
69304
|
var ct = lt[We], $t = this.at(Fe, Be);
|
|
@@ -69533,7 +69537,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69533
69537
|
}
|
|
69534
69538
|
return !1;
|
|
69535
69539
|
};
|
|
69536
|
-
var Tn = 0, Or = 1,
|
|
69540
|
+
var Tn = 0, Or = 1, Er = 2;
|
|
69537
69541
|
Vt.regexp_eatCharacterClassEscape = function(V) {
|
|
69538
69542
|
var ae = V.current();
|
|
69539
69543
|
if (Ln(ae))
|
|
@@ -69543,7 +69547,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69543
69547
|
V.lastIntValue = -1, V.advance();
|
|
69544
69548
|
var Fe;
|
|
69545
69549
|
if (V.eat(123) && (Fe = this.regexp_eatUnicodePropertyValueExpression(V)) && V.eat(125))
|
|
69546
|
-
return Be && Fe ===
|
|
69550
|
+
return Be && Fe === Er && V.raise("Invalid property name"), Fe;
|
|
69547
69551
|
V.raise("Invalid property name");
|
|
69548
69552
|
}
|
|
69549
69553
|
return Tn;
|
|
@@ -69571,7 +69575,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69571
69575
|
if (V.unicodeProperties.binary.test(ae))
|
|
69572
69576
|
return Or;
|
|
69573
69577
|
if (V.switchV && V.unicodeProperties.binaryOfStrings.test(ae))
|
|
69574
|
-
return
|
|
69578
|
+
return Er;
|
|
69575
69579
|
V.raise("Invalid property name");
|
|
69576
69580
|
}, Vt.regexp_eatUnicodePropertyName = function(V) {
|
|
69577
69581
|
var ae = 0;
|
|
@@ -69596,7 +69600,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69596
69600
|
}, Vt.regexp_eatCharacterClass = function(V) {
|
|
69597
69601
|
if (V.eat(91)) {
|
|
69598
69602
|
var ae = V.eat(94), Be = this.regexp_classContents(V);
|
|
69599
|
-
return V.eat(93) || V.raise("Unterminated character class"), ae && Be ===
|
|
69603
|
+
return V.eat(93) || V.raise("Unterminated character class"), ae && Be === Er && V.raise("Negated character class may contain strings"), !0;
|
|
69600
69604
|
}
|
|
69601
69605
|
return !1;
|
|
69602
69606
|
}, Vt.regexp_classContents = function(V) {
|
|
@@ -69638,10 +69642,10 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69638
69642
|
var ae = Or, Be;
|
|
69639
69643
|
if (!this.regexp_eatClassSetRange(V))
|
|
69640
69644
|
if (Be = this.regexp_eatClassSetOperand(V)) {
|
|
69641
|
-
Be ===
|
|
69645
|
+
Be === Er && (ae = Er);
|
|
69642
69646
|
for (var Fe = V.pos; V.eatChars([38, 38]); ) {
|
|
69643
69647
|
if (V.current() !== 38 && (Be = this.regexp_eatClassSetOperand(V))) {
|
|
69644
|
-
Be !==
|
|
69648
|
+
Be !== Er && (ae = Or);
|
|
69645
69649
|
continue;
|
|
69646
69650
|
}
|
|
69647
69651
|
V.raise("Invalid character in character class");
|
|
@@ -69658,7 +69662,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69658
69662
|
if (!this.regexp_eatClassSetRange(V)) {
|
|
69659
69663
|
if (Be = this.regexp_eatClassSetOperand(V), !Be)
|
|
69660
69664
|
return ae;
|
|
69661
|
-
Be ===
|
|
69665
|
+
Be === Er && (ae = Er);
|
|
69662
69666
|
}
|
|
69663
69667
|
}, Vt.regexp_eatClassSetRange = function(V) {
|
|
69664
69668
|
var ae = V.pos;
|
|
@@ -69678,7 +69682,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69678
69682
|
if (V.eat(91)) {
|
|
69679
69683
|
var Be = V.eat(94), Fe = this.regexp_classContents(V);
|
|
69680
69684
|
if (V.eat(93))
|
|
69681
|
-
return Be && Fe ===
|
|
69685
|
+
return Be && Fe === Er && V.raise("Negated character class may contain strings"), Fe;
|
|
69682
69686
|
V.pos = ae;
|
|
69683
69687
|
}
|
|
69684
69688
|
if (V.eat(92)) {
|
|
@@ -69702,12 +69706,12 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69702
69706
|
return null;
|
|
69703
69707
|
}, Vt.regexp_classStringDisjunctionContents = function(V) {
|
|
69704
69708
|
for (var ae = this.regexp_classString(V); V.eat(124); )
|
|
69705
|
-
this.regexp_classString(V) ===
|
|
69709
|
+
this.regexp_classString(V) === Er && (ae = Er);
|
|
69706
69710
|
return ae;
|
|
69707
69711
|
}, Vt.regexp_classString = function(V) {
|
|
69708
69712
|
for (var ae = 0; this.regexp_eatClassSetCharacter(V); )
|
|
69709
69713
|
ae++;
|
|
69710
|
-
return ae === 1 ? Or :
|
|
69714
|
+
return ae === 1 ? Or : Er;
|
|
69711
69715
|
}, Vt.regexp_eatClassSetCharacter = function(V) {
|
|
69712
69716
|
var ae = V.pos;
|
|
69713
69717
|
if (V.eat(92))
|
|
@@ -70030,7 +70034,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
70030
70034
|
++this.pos;
|
|
70031
70035
|
var lt = this.pos, ct = this.readWord1();
|
|
70032
70036
|
this.containsEsc && this.unexpected(lt);
|
|
70033
|
-
var $t = this.regexpState || (this.regexpState = new
|
|
70037
|
+
var $t = this.regexpState || (this.regexpState = new Cr(this));
|
|
70034
70038
|
$t.reset(Be, We, ct), this.validateRegExpFlags($t), this.validateRegExpPattern($t);
|
|
70035
70039
|
var Dt = null;
|
|
70036
70040
|
try {
|
|
@@ -73297,27 +73301,27 @@ class JsxParser extends React__default.Component {
|
|
|
73297
73301
|
} catch (f) {
|
|
73298
73302
|
return this.props.showWarnings && console.warn(f), this.props.onError && this.props.onError(f), this.props.renderError ? this.props.renderError({ error: String(f) }) : null;
|
|
73299
73303
|
}
|
|
73300
|
-
return d.map((f) =>
|
|
73304
|
+
return d.map((f) => nr(this, or).call(this, f)).filter(Boolean);
|
|
73301
73305
|
});
|
|
73302
73306
|
qr(this, or, (n, o) => {
|
|
73303
73307
|
var l, d;
|
|
73304
73308
|
switch (n.type) {
|
|
73305
73309
|
case "JSXAttribute":
|
|
73306
|
-
return n.value === null ? !0 :
|
|
73310
|
+
return n.value === null ? !0 : nr(this, or).call(this, n.value, o);
|
|
73307
73311
|
case "JSXElement":
|
|
73308
73312
|
case "JSXFragment":
|
|
73309
|
-
return
|
|
73313
|
+
return nr(this, en).call(this, n, o);
|
|
73310
73314
|
case "JSXExpressionContainer":
|
|
73311
|
-
return
|
|
73315
|
+
return nr(this, or).call(this, n.expression, o);
|
|
73312
73316
|
case "JSXText":
|
|
73313
73317
|
const f = this.props.disableKeyGeneration ? void 0 : randomHash();
|
|
73314
73318
|
return this.props.disableFragments ? n.value : /* @__PURE__ */ React__default.createElement(Fragment$2, {
|
|
73315
73319
|
key: f
|
|
73316
73320
|
}, n.value);
|
|
73317
73321
|
case "ArrayExpression":
|
|
73318
|
-
return n.elements.map((A) =>
|
|
73322
|
+
return n.elements.map((A) => nr(this, or).call(this, A, o));
|
|
73319
73323
|
case "BinaryExpression":
|
|
73320
|
-
const g =
|
|
73324
|
+
const g = nr(this, or).call(this, n.left, o), b = nr(this, or).call(this, n.right, o);
|
|
73321
73325
|
let S;
|
|
73322
73326
|
switch (n.operator) {
|
|
73323
73327
|
case "-":
|
|
@@ -73368,40 +73372,40 @@ class JsxParser extends React__default.Component {
|
|
|
73368
73372
|
}
|
|
73369
73373
|
return handleNaN(S);
|
|
73370
73374
|
case "CallExpression":
|
|
73371
|
-
const _ =
|
|
73375
|
+
const _ = nr(this, or).call(this, n.callee, o);
|
|
73372
73376
|
if (_ === void 0) {
|
|
73373
73377
|
if (n.optional)
|
|
73374
73378
|
throw new NullishShortCircuit();
|
|
73375
73379
|
this.props.onError(new Error(`The expression '${n.callee}' could not be resolved, resulting in an undefined return value.`));
|
|
73376
73380
|
return;
|
|
73377
73381
|
}
|
|
73378
|
-
return _(...n.arguments.map((A) =>
|
|
73382
|
+
return _(...n.arguments.map((A) => nr(this, or).call(this, A, o)));
|
|
73379
73383
|
case "ConditionalExpression":
|
|
73380
|
-
return
|
|
73384
|
+
return nr(this, or).call(this, n.test, o) ? nr(this, or).call(this, n.consequent, o) : nr(this, or).call(this, n.alternate, o);
|
|
73381
73385
|
case "ExpressionStatement":
|
|
73382
|
-
return
|
|
73386
|
+
return nr(this, or).call(this, n.expression, o);
|
|
73383
73387
|
case "Identifier":
|
|
73384
73388
|
return n.name === "Infinity" ? 1 / 0 : n.name === "-Infinity" ? -1 / 0 : n.name === "NaN" ? NaN : o && n.name in o ? handleNaN(o[n.name]) : handleNaN((this.props.bindings || {})[n.name]);
|
|
73385
73389
|
case "Literal":
|
|
73386
73390
|
return n.value;
|
|
73387
73391
|
case "LogicalExpression":
|
|
73388
|
-
const C =
|
|
73389
|
-
return n.operator === "||" && C ? C : n.operator === "&&" && C || n.operator === "||" && !C ?
|
|
73392
|
+
const C = nr(this, or).call(this, n.left, o);
|
|
73393
|
+
return n.operator === "||" && C ? C : n.operator === "&&" && C || n.operator === "||" && !C ? nr(this, or).call(this, n.right, o) : !1;
|
|
73390
73394
|
case "MemberExpression":
|
|
73391
|
-
return
|
|
73395
|
+
return nr(this, pn).call(this, n, o);
|
|
73392
73396
|
case "ChainExpression":
|
|
73393
|
-
return
|
|
73397
|
+
return nr(this, hn).call(this, n, o);
|
|
73394
73398
|
case "ObjectExpression":
|
|
73395
73399
|
const E = {};
|
|
73396
73400
|
return n.properties.forEach((A) => {
|
|
73397
|
-
E[A.key.name || A.key.value] =
|
|
73401
|
+
E[A.key.name || A.key.value] = nr(this, or).call(this, A.value, o);
|
|
73398
73402
|
}), E;
|
|
73399
73403
|
case "TemplateElement":
|
|
73400
73404
|
return n.value.cooked;
|
|
73401
73405
|
case "TemplateLiteral":
|
|
73402
|
-
return [...n.expressions, ...n.quasis].sort((A, I) => A.start < I.start ? -1 : 1).map((A) =>
|
|
73406
|
+
return [...n.expressions, ...n.quasis].sort((A, I) => A.start < I.start ? -1 : 1).map((A) => nr(this, or).call(this, A, o)).join("");
|
|
73403
73407
|
case "UnaryExpression":
|
|
73404
|
-
const R =
|
|
73408
|
+
const R = nr(this, or).call(this, n.argument, o);
|
|
73405
73409
|
switch (n.operator) {
|
|
73406
73410
|
case "+":
|
|
73407
73411
|
return +R;
|
|
@@ -73416,7 +73420,7 @@ class JsxParser extends React__default.Component {
|
|
|
73416
73420
|
const I = { ...o };
|
|
73417
73421
|
return n.params.forEach((M, O) => {
|
|
73418
73422
|
I[M.name] = A[O];
|
|
73419
|
-
}),
|
|
73423
|
+
}), nr(this, or).call(this, n.body, I);
|
|
73420
73424
|
};
|
|
73421
73425
|
default:
|
|
73422
73426
|
this.props.onError(new Error(`The expression type '${n.type}' is not supported.`));
|
|
@@ -73425,7 +73429,7 @@ class JsxParser extends React__default.Component {
|
|
|
73425
73429
|
});
|
|
73426
73430
|
qr(this, hn, (n, o) => {
|
|
73427
73431
|
try {
|
|
73428
|
-
return
|
|
73432
|
+
return nr(this, or).call(this, n.expression, o);
|
|
73429
73433
|
} catch (l) {
|
|
73430
73434
|
if (l instanceof NullishShortCircuit)
|
|
73431
73435
|
return;
|
|
@@ -73433,10 +73437,10 @@ class JsxParser extends React__default.Component {
|
|
|
73433
73437
|
}
|
|
73434
73438
|
});
|
|
73435
73439
|
qr(this, pn, (n, o) => {
|
|
73436
|
-
const l =
|
|
73440
|
+
const l = nr(this, or).call(this, n.object, o);
|
|
73437
73441
|
let d;
|
|
73438
73442
|
if (n.computed)
|
|
73439
|
-
d =
|
|
73443
|
+
d = nr(this, or).call(this, n.property, o);
|
|
73440
73444
|
else if (n.property.type === "Identifier")
|
|
73441
73445
|
d = n.property.name;
|
|
73442
73446
|
else {
|
|
@@ -73454,11 +73458,11 @@ class JsxParser extends React__default.Component {
|
|
|
73454
73458
|
}
|
|
73455
73459
|
return typeof f == "function" ? f.bind(l) : f;
|
|
73456
73460
|
});
|
|
73457
|
-
qr(this, Wr, (n) => n.type === "JSXIdentifier" ? n.name : `${
|
|
73461
|
+
qr(this, Wr, (n) => n.type === "JSXIdentifier" ? n.name : `${nr(this, Wr).call(this, n.object)}.${nr(this, Wr).call(this, n.property)}`);
|
|
73458
73462
|
qr(this, en, (n, o) => {
|
|
73459
|
-
const { allowUnknownElements: l, components: d, componentsOnly: f, onError: g } = this.props, { children: b = [] } = n, S = n.type === "JSXElement" ? n.openingElement : n.openingFragment, { attributes: _ = [] } = S, C = n.type === "JSXElement" ?
|
|
73463
|
+
const { allowUnknownElements: l, components: d, componentsOnly: f, onError: g } = this.props, { children: b = [] } = n, S = n.type === "JSXElement" ? n.openingElement : n.openingFragment, { attributes: _ = [] } = S, C = n.type === "JSXElement" ? nr(this, Wr).call(this, S.name) : "", E = (this.props.blacklistedAttrs || []).map((z) => z instanceof RegExp ? z : new RegExp(z, "i")), R = (this.props.blacklistedTags || []).map((z) => z.trim().toLowerCase()).filter(Boolean);
|
|
73460
73464
|
if (/^(html|head|body)$/i.test(C))
|
|
73461
|
-
return b.map((z) =>
|
|
73465
|
+
return b.map((z) => nr(this, en).call(this, z, o));
|
|
73462
73466
|
const A = C.trim().toLowerCase();
|
|
73463
73467
|
if (R.indexOf(A) !== -1)
|
|
73464
73468
|
return g(new Error(`The tag <${C}> is blacklisted, and will not be rendered.`)), null;
|
|
@@ -73470,7 +73474,7 @@ class JsxParser extends React__default.Component {
|
|
|
73470
73474
|
}
|
|
73471
73475
|
let I, M = n.type === "JSXElement" ? resolvePath(d, C) : Fragment$2;
|
|
73472
73476
|
if (M || canHaveChildren(C)) {
|
|
73473
|
-
if (I = b.map((Q) =>
|
|
73477
|
+
if (I = b.map((Q) => nr(this, or).call(this, Q, o)), C.includes(".")) {
|
|
73474
73478
|
const j = C.split(".").reduce((F, te) => F ? F[te] : d == null ? void 0 : d[te], null);
|
|
73475
73479
|
j && (M = j);
|
|
73476
73480
|
}
|
|
@@ -73483,10 +73487,10 @@ class JsxParser extends React__default.Component {
|
|
|
73483
73487
|
};
|
|
73484
73488
|
_.forEach((z) => {
|
|
73485
73489
|
if (z.type === "JSXAttribute") {
|
|
73486
|
-
const Q = z.name.name, j = attributeNames_default[Q] || Q, F =
|
|
73490
|
+
const Q = z.name.name, j = attributeNames_default[Q] || Q, F = nr(this, or).call(this, z, o);
|
|
73487
73491
|
E.filter((ne) => ne.test(j)).length === 0 && (O[j] = F);
|
|
73488
73492
|
} else if (z.type === "JSXSpreadAttribute" && z.argument.type === "Identifier" || z.argument.type === "MemberExpression") {
|
|
73489
|
-
const Q =
|
|
73493
|
+
const Q = nr(this, or).call(this, z.argument, o);
|
|
73490
73494
|
typeof Q == "object" && Object.keys(Q).forEach((j) => {
|
|
73491
73495
|
const F = attributeNames_default[j] || j;
|
|
73492
73496
|
E.filter((ne) => ne.test(F)).length === 0 && (O[F] = Q[j]);
|
|
@@ -73499,7 +73503,7 @@ class JsxParser extends React__default.Component {
|
|
|
73499
73503
|
}
|
|
73500
73504
|
render() {
|
|
73501
73505
|
const n = (this.props.jsx || "").trim().replace(/<!DOCTYPE([^>]*)>/g, "");
|
|
73502
|
-
this.ParsedChildren =
|
|
73506
|
+
this.ParsedChildren = nr(this, fn).call(this, n);
|
|
73503
73507
|
const o = [.../* @__PURE__ */ new Set(["jsx-parser", ...String(this.props.className).split(" ")])].filter(Boolean).join(" ");
|
|
73504
73508
|
return this.props.renderInWrapper ? /* @__PURE__ */ React__default.createElement("div", {
|
|
73505
73509
|
className: o
|
|
@@ -73556,7 +73560,7 @@ function ProductCard({
|
|
|
73556
73560
|
shopifyHostname: f,
|
|
73557
73561
|
customAction: g = /* @__PURE__ */ jsx(Fragment$1, {})
|
|
73558
73562
|
}) {
|
|
73559
|
-
var
|
|
73563
|
+
var at, st, Ue, Rt, Je, yt, Mt, qt, Ht, Ft, Ke, it;
|
|
73560
73564
|
const b = useRef(null), S = useIntersectionObserver({
|
|
73561
73565
|
elementRef: b,
|
|
73562
73566
|
threshold: 0.1,
|
|
@@ -73570,29 +73574,29 @@ function ProductCard({
|
|
|
73570
73574
|
applicationId: t
|
|
73571
73575
|
}, {
|
|
73572
73576
|
skip: !t || !S
|
|
73573
|
-
}), Ne = ((
|
|
73574
|
-
var
|
|
73575
|
-
return !((
|
|
73577
|
+
}), Ne = ((at = e == null ? void 0 : e.Distribution) == null ? void 0 : at.Cost) || 0, Ve = ((st = e == null ? void 0 : e.Distribution) == null ? void 0 : st.RegularPrice) || 0, je = ((Ue = e == null ? void 0 : e.Distribution) == null ? void 0 : Ue.Price) || 0, ze = useMemo(() => {
|
|
73578
|
+
var et;
|
|
73579
|
+
return !((et = e == null ? void 0 : e.Distribution) != null && et.Inventory) || e.Distribution.Inventory.length === 0 ? 0 : e.Distribution.Inventory.reduce((ut, ft) => ut + (ft.PurchaseOrderQuantity || 0), 0);
|
|
73576
73580
|
}, [(Rt = e == null ? void 0 : e.Distribution) == null ? void 0 : Rt.Inventory]);
|
|
73577
73581
|
useEffect(() => {
|
|
73578
73582
|
E(1), A(null), M(0), q(!1);
|
|
73579
73583
|
}, [e == null ? void 0 : e.RandmarSKU]), useEffect(() => {
|
|
73580
|
-
var
|
|
73584
|
+
var et;
|
|
73581
73585
|
if (e && o) {
|
|
73582
|
-
const ut = (
|
|
73586
|
+
const ut = (et = e.Opportunities) == null ? void 0 : et.find((ft) => ft.BidNumber == o);
|
|
73583
73587
|
ut && A(ut);
|
|
73584
73588
|
}
|
|
73585
73589
|
}, [e, o]), useEffect(() => {
|
|
73586
73590
|
if (!e) return;
|
|
73587
|
-
const
|
|
73588
|
-
M(Ve > 0 ? Math.round((Ve -
|
|
73591
|
+
const et = R != null && R.Price ? R.Price : je;
|
|
73592
|
+
M(Ve > 0 ? Math.round((Ve - et) / Ve * 100) : 0);
|
|
73589
73593
|
}, [e, R, je, Ve]), useEffect(() => {
|
|
73590
73594
|
d || E(1);
|
|
73591
73595
|
}, [d]);
|
|
73592
|
-
const Oe = (
|
|
73593
|
-
if (
|
|
73596
|
+
const Oe = (et) => {
|
|
73597
|
+
if (et.Active !== !0) return !1;
|
|
73594
73598
|
const ut = (/* @__PURE__ */ new Date()).toISOString().split("T")[0];
|
|
73595
|
-
return !(
|
|
73599
|
+
return !(et.EndDate && et.EndDate.split("T")[0] < ut || et.StartDate && et.StartDate.split("T")[0] > ut);
|
|
73596
73600
|
};
|
|
73597
73601
|
if (useEffect(() => {
|
|
73598
73602
|
d || E(1);
|
|
@@ -73661,8 +73665,8 @@ function ProductCard({
|
|
|
73661
73665
|
return;
|
|
73662
73666
|
}
|
|
73663
73667
|
E(C + 1);
|
|
73664
|
-
}, Ze = (
|
|
73665
|
-
const ut = Number.parseInt(
|
|
73668
|
+
}, Ze = (et) => {
|
|
73669
|
+
const ut = Number.parseInt(et.target.value, 10);
|
|
73666
73670
|
if (!isNaN(ut) && ut > 0) {
|
|
73667
73671
|
E(ut);
|
|
73668
73672
|
return;
|
|
@@ -73674,33 +73678,33 @@ function ProductCard({
|
|
|
73674
73678
|
z || !(se != null && se.IsReseller) || (Q(!0), te({
|
|
73675
73679
|
routeResellerId: se.ApplicationId ?? "",
|
|
73676
73680
|
randmarSku: e.RandmarSKU ?? ""
|
|
73677
|
-
}).then((
|
|
73678
|
-
if (
|
|
73679
|
-
console.error(
|
|
73681
|
+
}).then((et) => {
|
|
73682
|
+
if (et.error) {
|
|
73683
|
+
console.error(et.error), _({ title: "Error", description: "Error submitting your qualification.", variant: "destructive" });
|
|
73680
73684
|
return;
|
|
73681
73685
|
}
|
|
73682
73686
|
_({ title: "Success", description: "Qualification successfully submitted.", variant: "success" }), F(!1);
|
|
73683
|
-
}).catch((
|
|
73684
|
-
console.error(
|
|
73687
|
+
}).catch((et) => {
|
|
73688
|
+
console.error(et), _({ title: "Error", description: "Error submitting your qualification.", variant: "destructive" });
|
|
73685
73689
|
}).finally(() => {
|
|
73686
73690
|
Q(!1);
|
|
73687
73691
|
}));
|
|
73688
|
-
},
|
|
73692
|
+
}, Qe = ((yt = (Je = e.Distribution) == null ? void 0 : Je.Inventory) == null ? void 0 : yt.reduce((et, ut) => et + (ut.AvailableQuantity || 0), 0)) || 0, Xe = (et) => {
|
|
73689
73693
|
try {
|
|
73690
|
-
return new Date(
|
|
73694
|
+
return new Date(et).toLocaleDateString("en-US", { year: "numeric", month: "short", day: "numeric" });
|
|
73691
73695
|
} catch (ut) {
|
|
73692
|
-
return console.error(ut),
|
|
73696
|
+
return console.error(ut), et.split("T")[0] || "N/A";
|
|
73693
73697
|
}
|
|
73694
|
-
},
|
|
73698
|
+
}, ot = () => {
|
|
73695
73699
|
typeof l < "u" && l({ quantity: C ?? 1, bidNumber: (R == null ? void 0 : R.BidNumber) ?? null });
|
|
73696
|
-
},
|
|
73700
|
+
}, rt = () => {
|
|
73697
73701
|
ne || !f || (oe(!0), ge({
|
|
73698
73702
|
routeResellerId: t ?? "",
|
|
73699
73703
|
randmarSku: e.RandmarSKU ?? "",
|
|
73700
73704
|
shopifyHostName: f
|
|
73701
|
-
}).then((
|
|
73702
|
-
if (
|
|
73703
|
-
console.error("Error syncing to Shopify:",
|
|
73705
|
+
}).then((et) => {
|
|
73706
|
+
if (et.error) {
|
|
73707
|
+
console.error("Error syncing to Shopify:", et.error), _({
|
|
73704
73708
|
title: "Product synced failed.",
|
|
73705
73709
|
description: "Error syncing to Shopify:",
|
|
73706
73710
|
variant: "destructive"
|
|
@@ -73712,8 +73716,8 @@ function ProductCard({
|
|
|
73712
73716
|
description: "Product synced to Shopify successfully",
|
|
73713
73717
|
variant: "success"
|
|
73714
73718
|
});
|
|
73715
|
-
}).catch((
|
|
73716
|
-
console.error("Error syncing to Shopify:",
|
|
73719
|
+
}).catch((et) => {
|
|
73720
|
+
console.error("Error syncing to Shopify:", et), _({
|
|
73717
73721
|
title: "Product synced failed.",
|
|
73718
73722
|
description: "Error syncing to Shopify:",
|
|
73719
73723
|
variant: "destructive"
|
|
@@ -73865,33 +73869,33 @@ function ProductCard({
|
|
|
73865
73869
|
/* @__PURE__ */ jsxs("div", { className: "flex gap-6 mt-4", children: [
|
|
73866
73870
|
/* @__PURE__ */ jsx("div", { className: "flex flex-1", children: qe && e.Distribution && /* @__PURE__ */ jsxs("div", { className: "w-full", children: [
|
|
73867
73871
|
/* @__PURE__ */ jsx("div", { className: "flex products-center", children: "You have " + Le.length + (Le.length > 1 ? " opportunities" : " opportunity") + " for this product:" }),
|
|
73868
|
-
/* @__PURE__ */ jsx("div", { className: "space-y-2 max-h-[200px] overflow-y-auto p-2 mt-1", children: Le.map((
|
|
73872
|
+
/* @__PURE__ */ jsx("div", { className: "space-y-2 max-h-[200px] overflow-y-auto p-2 mt-1", children: Le.map((et, ut) => /* @__PURE__ */ jsxs(
|
|
73869
73873
|
"div",
|
|
73870
73874
|
{
|
|
73871
73875
|
className: `flex justify-between products-center rounded-lg transition-colors py-2 px-4 bg-purple-100 border border-muted
|
|
73872
|
-
${
|
|
73876
|
+
${et.BidNumber == (R == null ? void 0 : R.BidNumber) ? "cursor-pointer border-2 border-purple-900" : Oe(et) ? "hover:bg-purple-200 cursor-pointer" : "!bg-neutral-50"}
|
|
73873
73877
|
`,
|
|
73874
73878
|
onClick: () => {
|
|
73875
|
-
Oe(
|
|
73879
|
+
Oe(et) && A(et.BidNumber != (R == null ? void 0 : R.BidNumber) ? et : null);
|
|
73876
73880
|
},
|
|
73877
73881
|
children: [
|
|
73878
73882
|
/* @__PURE__ */ jsx("div", { className: "flex products-center", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col", children: [
|
|
73879
|
-
/* @__PURE__ */ jsx("span", { className: "font-medium text-sm", children:
|
|
73883
|
+
/* @__PURE__ */ jsx("span", { className: "font-medium text-sm", children: et.Opportunity }),
|
|
73880
73884
|
/* @__PURE__ */ jsxs("span", { className: "text-xs text-neutral-900", children: [
|
|
73881
|
-
|
|
73885
|
+
et.BidNumber,
|
|
73882
73886
|
" ",
|
|
73883
|
-
!Oe(
|
|
73887
|
+
!Oe(et) && /* @__PURE__ */ jsx(Badge, { variant: "outline", className: "text-xs mx-1 h-5 bg-gray-100", children: "Currently unavailable" })
|
|
73884
73888
|
] })
|
|
73885
73889
|
] }) }),
|
|
73886
73890
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col products-end", children: [
|
|
73887
|
-
/* @__PURE__ */ jsx("span", { className: "font-semibold", children: formatMoney(
|
|
73888
|
-
|
|
73891
|
+
/* @__PURE__ */ jsx("span", { className: "font-semibold", children: formatMoney(et.Price ?? 0) }),
|
|
73892
|
+
et.Rebate && et.Rebate > 0 && /* @__PURE__ */ jsxs("span", { className: "text-xs text-green-600", children: [
|
|
73889
73893
|
"Rebate: ",
|
|
73890
|
-
formatMoney(
|
|
73894
|
+
formatMoney(et.Rebate)
|
|
73891
73895
|
] }),
|
|
73892
|
-
|
|
73896
|
+
et.EndDate && /* @__PURE__ */ jsxs("span", { className: "text-xs text-neutral-600", children: [
|
|
73893
73897
|
"Ends: ",
|
|
73894
|
-
Xe(
|
|
73898
|
+
Xe(et.EndDate)
|
|
73895
73899
|
] })
|
|
73896
73900
|
] })
|
|
73897
73901
|
]
|
|
@@ -73904,7 +73908,7 @@ function ProductCard({
|
|
|
73904
73908
|
/* @__PURE__ */ jsx(Eye, { className: "mr-2" }),
|
|
73905
73909
|
"View Product"
|
|
73906
73910
|
] }) }),
|
|
73907
|
-
((Ht = e.Distribution) == null ? void 0 : Ht.Inventory) && /* @__PURE__ */ jsx("div", { className: "mt-4", children: se != null && se.IsReseller &&
|
|
73911
|
+
((Ht = e.Distribution) == null ? void 0 : Ht.Inventory) && /* @__PURE__ */ jsx("div", { className: "mt-4", children: se != null && se.IsReseller && Qe <= 0 && ze <= 0 ? /* @__PURE__ */ jsxs(Dialog, { open: j, onOpenChange: F, children: [
|
|
73908
73912
|
/* @__PURE__ */ jsx(DialogTrigger, { asChild: !0, children: /* @__PURE__ */ jsxs(Button, { variant: "ghost", className: "flex products-center text-sm reseller-theme text-primary", children: [
|
|
73909
73913
|
/* @__PURE__ */ jsx(Warehouse, { size: "16", className: "mr-2" }),
|
|
73910
73914
|
"Request to stock"
|
|
@@ -73928,7 +73932,7 @@ function ProductCard({
|
|
|
73928
73932
|
] }) : "Confirm" })
|
|
73929
73933
|
] })
|
|
73930
73934
|
] })
|
|
73931
|
-
] }) :
|
|
73935
|
+
] }) : Qe <= 0 && ze > 0 ? /* @__PURE__ */ jsxs(Dialog, { open: O, onOpenChange: q, children: [
|
|
73932
73936
|
/* @__PURE__ */ jsx(DialogTrigger, { asChild: !0, children: /* @__PURE__ */ jsxs(Button, { variant: "ghost", className: "flex products-center text-sm manufacturer-theme text-primary", children: [
|
|
73933
73937
|
/* @__PURE__ */ jsx(Warehouse, { size: "16", className: "mr-2" }),
|
|
73934
73938
|
formatNumber(ze),
|
|
@@ -73946,11 +73950,11 @@ function ProductCard({
|
|
|
73946
73950
|
Button,
|
|
73947
73951
|
{
|
|
73948
73952
|
variant: "ghost",
|
|
73949
|
-
className: `flex products-center text-sm ${
|
|
73953
|
+
className: `flex products-center text-sm ${Qe > 0 ? "text-green-700" : "text-red-700"}`,
|
|
73950
73954
|
children: [
|
|
73951
73955
|
/* @__PURE__ */ jsx(Warehouse, { size: "16", className: "mr-2" }),
|
|
73952
|
-
|
|
73953
|
-
formatNumber(
|
|
73956
|
+
Qe > 0 ? /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
73957
|
+
formatNumber(Qe),
|
|
73954
73958
|
" in stock"
|
|
73955
73959
|
] }) : /* @__PURE__ */ jsx(Fragment$1, { children: "Out of stock" })
|
|
73956
73960
|
]
|
|
@@ -73972,7 +73976,7 @@ function ProductCard({
|
|
|
73972
73976
|
formatMoney(Ne)
|
|
73973
73977
|
] }) }) : /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
73974
73978
|
/* @__PURE__ */ jsxs("div", { className: "flex products-center flex-wrap", children: [
|
|
73975
|
-
/* @__PURE__ */ jsx("span", { className: "text-2xl font-bold whitespace-nowrap", children: formatMoney((R ? (Ke = (Ft = e.Opportunities) == null ? void 0 : Ft.find((
|
|
73979
|
+
/* @__PURE__ */ jsx("span", { className: "text-2xl font-bold whitespace-nowrap", children: formatMoney((R ? (Ke = (Ft = e.Opportunities) == null ? void 0 : Ft.find((et) => et.BidNumber == R.BidNumber)) == null ? void 0 : Ke.Price : je) ?? 0) }),
|
|
73976
73980
|
I > 0 && /* @__PURE__ */ jsx("span", { className: "text-muted-foreground line-through ml-2 whitespace-nowrap", children: formatMoney(Ve) })
|
|
73977
73981
|
] }),
|
|
73978
73982
|
I > 0 && /* @__PURE__ */ jsx("div", { className: "flex products-center", children: /* @__PURE__ */ jsxs(Badge, { variant: "outline", className: "bg-red-50 text-red-700 rounded-full px-3 whitespace-nowrap", children: [
|
|
@@ -73980,7 +73984,7 @@ function ProductCard({
|
|
|
73980
73984
|
I,
|
|
73981
73985
|
"% OFF"
|
|
73982
73986
|
] }),
|
|
73983
|
-
((
|
|
73987
|
+
((it = e.InstantRebate) == null ? void 0 : it.EndDate) && /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
73984
73988
|
/* @__PURE__ */ jsx("span", { className: "mx-1.5", children: "●" }),
|
|
73985
73989
|
" Ends ",
|
|
73986
73990
|
e.InstantRebate.EndDate.split("T")[0]
|
|
@@ -74011,7 +74015,7 @@ function ProductCard({
|
|
|
74011
74015
|
value: C,
|
|
74012
74016
|
onChange: Ze,
|
|
74013
74017
|
onBlur: tt,
|
|
74014
|
-
onClick: (
|
|
74018
|
+
onClick: (et) => et.currentTarget.select(),
|
|
74015
74019
|
className: `w-12 text-center border-0 focus:ring-0 focus:outline-none ${!e.AvailableToBuy || d ? "text-gray-400" : ""}`,
|
|
74016
74020
|
disabled: !e.AvailableToBuy || d
|
|
74017
74021
|
}
|
|
@@ -74032,7 +74036,7 @@ function ProductCard({
|
|
|
74032
74036
|
Button,
|
|
74033
74037
|
{
|
|
74034
74038
|
className: "gap-2 whitespace-nowrap",
|
|
74035
|
-
onClick:
|
|
74039
|
+
onClick: ot,
|
|
74036
74040
|
disabled: !e.AvailableToBuy || d,
|
|
74037
74041
|
children: d ? /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
74038
74042
|
/* @__PURE__ */ jsx(LoaderCircle, { className: "h-4 w-4 animate-spin" }),
|
|
@@ -74047,7 +74051,7 @@ function ProductCard({
|
|
|
74047
74051
|
Button,
|
|
74048
74052
|
{
|
|
74049
74053
|
className: "gap-2 whitespace-nowrap bg-green-600 hover:bg-green-700",
|
|
74050
|
-
onClick:
|
|
74054
|
+
onClick: rt,
|
|
74051
74055
|
disabled: ne,
|
|
74052
74056
|
children: ne ? /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
74053
74057
|
/* @__PURE__ */ jsx(LoaderCircle, { className: "h-4 w-4 animate-spin" }),
|
|
@@ -74418,20 +74422,20 @@ var N = '[cmdk-group=""]', Y = '[cmdk-group-items=""]', be = '[cmdk-group-headin
|
|
|
74418
74422
|
F(6, $e);
|
|
74419
74423
|
}, []);
|
|
74420
74424
|
let te = React.useMemo(() => ({ subscribe: (He) => (f.current.add(He), () => f.current.delete(He)), snapshot: () => n.current, setState: (He, Ze, tt) => {
|
|
74421
|
-
var Ye,
|
|
74425
|
+
var Ye, Qe, Xe, ot;
|
|
74422
74426
|
if (!Object.is(n.current[He], Ze)) {
|
|
74423
74427
|
if (n.current[He] = Ze, He === "search") Ae(), ge(), F(1, se);
|
|
74424
74428
|
else if (He === "value") {
|
|
74425
74429
|
if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
|
|
74426
|
-
let
|
|
74427
|
-
|
|
74430
|
+
let rt = document.getElementById(Q);
|
|
74431
|
+
rt ? rt.focus() : (Ye = document.getElementById(q)) == null || Ye.focus();
|
|
74428
74432
|
}
|
|
74429
74433
|
if (F(7, () => {
|
|
74430
|
-
var
|
|
74431
|
-
n.current.selectedItemId = (
|
|
74432
|
-
}), tt || F(5, $e), ((
|
|
74433
|
-
let
|
|
74434
|
-
(
|
|
74434
|
+
var rt;
|
|
74435
|
+
n.current.selectedItemId = (rt = Ne()) == null ? void 0 : rt.id, te.emit();
|
|
74436
|
+
}), tt || F(5, $e), ((Qe = g.current) == null ? void 0 : Qe.value) !== void 0) {
|
|
74437
|
+
let rt = Ze ?? "";
|
|
74438
|
+
(ot = (Xe = g.current).onValueChange) == null || ot.call(Xe, rt);
|
|
74435
74439
|
return;
|
|
74436
74440
|
}
|
|
74437
74441
|
}
|
|
@@ -74457,30 +74461,30 @@ var N = '[cmdk-group=""]', Y = '[cmdk-group-items=""]', be = '[cmdk-group-headin
|
|
|
74457
74461
|
}), filter: () => g.current.shouldFilter, label: b || t["aria-label"], getDisablePointerSelection: () => g.current.disablePointerSelection, listId: q, inputId: Q, labelId: z, listInnerRef: j }), []);
|
|
74458
74462
|
function oe(He, Ze) {
|
|
74459
74463
|
var tt, Ye;
|
|
74460
|
-
let
|
|
74461
|
-
return He ?
|
|
74464
|
+
let Qe = (Ye = (tt = g.current) == null ? void 0 : tt.filter) != null ? Ye : Re;
|
|
74465
|
+
return He ? Qe(He, n.current.search, Ze) : 0;
|
|
74462
74466
|
}
|
|
74463
74467
|
function ge() {
|
|
74464
74468
|
if (!n.current.search || g.current.shouldFilter === !1) return;
|
|
74465
74469
|
let He = n.current.filtered.items, Ze = [];
|
|
74466
74470
|
n.current.filtered.groups.forEach((Ye) => {
|
|
74467
|
-
let
|
|
74468
|
-
|
|
74469
|
-
let
|
|
74470
|
-
Xe = Math.max(
|
|
74471
|
+
let Qe = l.current.get(Ye), Xe = 0;
|
|
74472
|
+
Qe.forEach((ot) => {
|
|
74473
|
+
let rt = He.get(ot);
|
|
74474
|
+
Xe = Math.max(rt, Xe);
|
|
74471
74475
|
}), Ze.push([Ye, Xe]);
|
|
74472
74476
|
});
|
|
74473
74477
|
let tt = j.current;
|
|
74474
|
-
Ve().sort((Ye,
|
|
74475
|
-
var Xe,
|
|
74476
|
-
let
|
|
74477
|
-
return ((Xe = He.get(
|
|
74478
|
+
Ve().sort((Ye, Qe) => {
|
|
74479
|
+
var Xe, ot;
|
|
74480
|
+
let rt = Ye.getAttribute("id"), at = Qe.getAttribute("id");
|
|
74481
|
+
return ((Xe = He.get(at)) != null ? Xe : 0) - ((ot = He.get(rt)) != null ? ot : 0);
|
|
74478
74482
|
}).forEach((Ye) => {
|
|
74479
|
-
let
|
|
74480
|
-
|
|
74481
|
-
}), Ze.sort((Ye,
|
|
74482
|
-
var
|
|
74483
|
-
let Xe = (
|
|
74483
|
+
let Qe = Ye.closest(Y);
|
|
74484
|
+
Qe ? Qe.appendChild(Ye.parentElement === Qe ? Ye : Ye.closest(`${Y} > *`)) : tt.appendChild(Ye.parentElement === tt ? Ye : Ye.closest(`${Y} > *`));
|
|
74485
|
+
}), Ze.sort((Ye, Qe) => Qe[1] - Ye[1]).forEach((Ye) => {
|
|
74486
|
+
var Qe;
|
|
74487
|
+
let Xe = (Qe = j.current) == null ? void 0 : Qe.querySelector(`${N}[${T}="${encodeURIComponent(Ye[0])}"]`);
|
|
74484
74488
|
Xe == null || Xe.parentElement.appendChild(Xe);
|
|
74485
74489
|
});
|
|
74486
74490
|
}
|
|
@@ -74495,16 +74499,16 @@ var N = '[cmdk-group=""]', Y = '[cmdk-group-items=""]', be = '[cmdk-group-headin
|
|
|
74495
74499
|
return;
|
|
74496
74500
|
}
|
|
74497
74501
|
n.current.filtered.groups = /* @__PURE__ */ new Set();
|
|
74498
|
-
let
|
|
74502
|
+
let Qe = 0;
|
|
74499
74503
|
for (let Xe of o.current) {
|
|
74500
|
-
let
|
|
74501
|
-
n.current.filtered.items.set(Xe,
|
|
74504
|
+
let ot = (Ze = (He = d.current.get(Xe)) == null ? void 0 : He.value) != null ? Ze : "", rt = (Ye = (tt = d.current.get(Xe)) == null ? void 0 : tt.keywords) != null ? Ye : [], at = oe(ot, rt);
|
|
74505
|
+
n.current.filtered.items.set(Xe, at), at > 0 && Qe++;
|
|
74502
74506
|
}
|
|
74503
|
-
for (let [Xe,
|
|
74507
|
+
for (let [Xe, ot] of l.current) for (let rt of ot) if (n.current.filtered.items.get(rt) > 0) {
|
|
74504
74508
|
n.current.filtered.groups.add(Xe);
|
|
74505
74509
|
break;
|
|
74506
74510
|
}
|
|
74507
|
-
n.current.filtered.count =
|
|
74511
|
+
n.current.filtered.count = Qe;
|
|
74508
74512
|
}
|
|
74509
74513
|
function $e() {
|
|
74510
74514
|
var He, Ze, tt;
|
|
@@ -74525,8 +74529,8 @@ var N = '[cmdk-group=""]', Y = '[cmdk-group-items=""]', be = '[cmdk-group-headin
|
|
|
74525
74529
|
}
|
|
74526
74530
|
function ze(He) {
|
|
74527
74531
|
var Ze;
|
|
74528
|
-
let tt = Ne(), Ye = Ve(),
|
|
74529
|
-
(Ze = g.current) != null && Ze.loop && (Xe =
|
|
74532
|
+
let tt = Ne(), Ye = Ve(), Qe = Ye.findIndex((ot) => ot === tt), Xe = Ye[Qe + He];
|
|
74533
|
+
(Ze = g.current) != null && Ze.loop && (Xe = Qe + He < 0 ? Ye[Ye.length - 1] : Qe + He === Ye.length ? Ye[0] : Ye[Qe + He]), Xe && te.setState("value", Xe.getAttribute(T));
|
|
74530
74534
|
}
|
|
74531
74535
|
function Oe(He) {
|
|
74532
74536
|
let Ze = Ne(), tt = Ze == null ? void 0 : Ze.closest(N), Ye;
|
|
@@ -74573,8 +74577,8 @@ var N = '[cmdk-group=""]', Y = '[cmdk-group-items=""]', be = '[cmdk-group-headin
|
|
|
74573
74577
|
He.preventDefault();
|
|
74574
74578
|
let Ye = Ne();
|
|
74575
74579
|
if (Ye) {
|
|
74576
|
-
let
|
|
74577
|
-
Ye.dispatchEvent(
|
|
74580
|
+
let Qe = new Event(Z);
|
|
74581
|
+
Ye.dispatchEvent(Qe);
|
|
74578
74582
|
}
|
|
74579
74583
|
}
|
|
74580
74584
|
}
|
|
@@ -74802,10 +74806,10 @@ const Navbar = forwardRef(
|
|
|
74802
74806
|
return useImperativeHandle(f, () => ({
|
|
74803
74807
|
setActiveChatAndSendMessage: (E, R) => {
|
|
74804
74808
|
var A;
|
|
74805
|
-
|
|
74809
|
+
(A = _.current) == null || A.click(), setTimeout(() => {
|
|
74806
74810
|
var I;
|
|
74807
74811
|
(I = b.current) == null || I.focus(), S.current && S.current.setActiveChatAndSendMessage(E, R);
|
|
74808
|
-
}, 100)
|
|
74812
|
+
}, 100);
|
|
74809
74813
|
}
|
|
74810
74814
|
})), /* @__PURE__ */ jsxs(Sidebar, { className: "border-r border-sidebar-border", children: [
|
|
74811
74815
|
/* @__PURE__ */ jsx(SidebarHeader, { className: "border-b border-sidebar-border px-6 h-16 justify-center bg-sidebar text-sidebar-foreground", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
@@ -74928,8 +74932,8 @@ function ManufacturerGetStartedButton({ applicationId: t, manufacturer: e }) {
|
|
|
74928
74932
|
M(""), q(""), Q([]), F(""), ne(""), ge([]), Ae(""), Ne("");
|
|
74929
74933
|
}, Le = () => {
|
|
74930
74934
|
e.PartnerRegistrationLink ? l(!0) : e.OpenToWork && f(!0);
|
|
74931
|
-
}, qe = (
|
|
74932
|
-
if (
|
|
74935
|
+
}, qe = (Qe) => {
|
|
74936
|
+
if (Qe.preventDefault(), !g) {
|
|
74933
74937
|
if (!S.trim()) {
|
|
74934
74938
|
E("Qualification ID is required");
|
|
74935
74939
|
return;
|
|
@@ -74939,40 +74943,40 @@ function ManufacturerGetStartedButton({ applicationId: t, manufacturer: e }) {
|
|
|
74939
74943
|
partnerId: e.ManufacturerId ?? "",
|
|
74940
74944
|
message: `Hello! I'd like to get started with you. Here's my Qualification ID: ${S}`
|
|
74941
74945
|
}).then((Xe) => {
|
|
74942
|
-
var
|
|
74946
|
+
var rt;
|
|
74943
74947
|
if (Xe.error) {
|
|
74944
74948
|
console.error(Xe.error), n({ title: "Could not initiate chat", description: "Try again later.", variant: "destructive" });
|
|
74945
74949
|
return;
|
|
74946
74950
|
}
|
|
74947
|
-
const
|
|
74948
|
-
|
|
74951
|
+
const ot = (rt = Xe.data) == null ? void 0 : rt.ConversationId;
|
|
74952
|
+
ot && je(ot) ? (l(!1), ze()) : n({ title: "Could not send message", description: "Try again later.", variant: "destructive" });
|
|
74949
74953
|
}).catch((Xe) => {
|
|
74950
74954
|
console.error(Xe), n({ title: "Could not initiate chat", description: "Try again later.", variant: "destructive" });
|
|
74951
74955
|
}).finally(() => {
|
|
74952
74956
|
b(!1);
|
|
74953
74957
|
});
|
|
74954
74958
|
}
|
|
74955
|
-
}, Ge = (
|
|
74956
|
-
if (
|
|
74959
|
+
}, Ge = (Qe) => {
|
|
74960
|
+
if (Qe.preventDefault(), R) return;
|
|
74957
74961
|
q(""), F(""), Ae("");
|
|
74958
74962
|
let Xe = !1;
|
|
74959
74963
|
if (I.trim().length < 10 && (q("Please provide a brief description of your business (minimum 10 characters)"), Xe = !0), z.length === 0 && (F("Please select at least one sales channel"), Xe = !0), oe.length === 0 && (Ae("Please select at least one market"), Xe = !0), Xe) return;
|
|
74960
|
-
const
|
|
74961
|
-
te &&
|
|
74962
|
-
const
|
|
74963
|
-
$e &&
|
|
74964
|
-
const
|
|
74964
|
+
const ot = salesChannels.filter((st) => z.includes(st.id)).map((st) => st.label);
|
|
74965
|
+
te && ot.push(`Other: ${te}`);
|
|
74966
|
+
const rt = markets.filter((st) => oe.includes(st.id)).map((st) => st.label);
|
|
74967
|
+
$e && rt.push(`Other: ${$e}`);
|
|
74968
|
+
const at = [
|
|
74965
74969
|
"Hello! I'd like to introduce my business:",
|
|
74966
74970
|
`**Business Description:** ${I}`,
|
|
74967
|
-
`**Sales Channels:** ${
|
|
74968
|
-
`**Markets:** ${
|
|
74971
|
+
`**Sales Channels:** ${ot.join(", ")}`,
|
|
74972
|
+
`**Markets:** ${rt.join(", ")}`
|
|
74969
74973
|
].join(`
|
|
74970
74974
|
|
|
74971
74975
|
`);
|
|
74972
74976
|
A(!0), Ve({
|
|
74973
74977
|
routeApplicationId: t,
|
|
74974
74978
|
partnerId: e.ManufacturerId ?? "",
|
|
74975
|
-
message:
|
|
74979
|
+
message: at
|
|
74976
74980
|
}).then((st) => {
|
|
74977
74981
|
var Rt;
|
|
74978
74982
|
if (st.error) {
|
|
@@ -74986,10 +74990,10 @@ function ManufacturerGetStartedButton({ applicationId: t, manufacturer: e }) {
|
|
|
74986
74990
|
}).finally(() => {
|
|
74987
74991
|
A(!1);
|
|
74988
74992
|
});
|
|
74989
|
-
}, He = (
|
|
74990
|
-
Q((
|
|
74991
|
-
}, Ze = (
|
|
74992
|
-
ge((
|
|
74993
|
+
}, He = (Qe, Xe) => {
|
|
74994
|
+
Q((ot) => Xe ? [...ot, Qe] : ot.filter((rt) => rt !== Qe)), F("");
|
|
74995
|
+
}, Ze = (Qe, Xe) => {
|
|
74996
|
+
ge((ot) => Xe ? [...ot, Qe] : ot.filter((rt) => rt !== Qe)), Ae("");
|
|
74993
74997
|
}, tt = z.includes("other-channel"), Ye = oe.includes("other-market");
|
|
74994
74998
|
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
74995
74999
|
!e.Qualification && /* @__PURE__ */ jsxs(Button, { onClick: Le, disabled: !e.PartnerRegistrationLink && !e.OpenToWork, children: [
|
|
@@ -75000,8 +75004,8 @@ function ManufacturerGetStartedButton({ applicationId: t, manufacturer: e }) {
|
|
|
75000
75004
|
Dialog,
|
|
75001
75005
|
{
|
|
75002
75006
|
open: o,
|
|
75003
|
-
onOpenChange: (
|
|
75004
|
-
l(
|
|
75007
|
+
onOpenChange: (Qe) => {
|
|
75008
|
+
l(Qe);
|
|
75005
75009
|
},
|
|
75006
75010
|
children: /* @__PURE__ */ jsxs(DialogContent, { className: "sm:max-w-[400px]", children: [
|
|
75007
75011
|
/* @__PURE__ */ jsxs(DialogHeader, { children: [
|
|
@@ -75020,8 +75024,8 @@ function ManufacturerGetStartedButton({ applicationId: t, manufacturer: e }) {
|
|
|
75020
75024
|
id: "qualificationId",
|
|
75021
75025
|
placeholder: "Enter your qualification ID",
|
|
75022
75026
|
value: S,
|
|
75023
|
-
onChange: (
|
|
75024
|
-
_(
|
|
75027
|
+
onChange: (Qe) => {
|
|
75028
|
+
_(Qe.target.value), E("");
|
|
75025
75029
|
}
|
|
75026
75030
|
}
|
|
75027
75031
|
),
|
|
@@ -75050,8 +75054,8 @@ function ManufacturerGetStartedButton({ applicationId: t, manufacturer: e }) {
|
|
|
75050
75054
|
Dialog,
|
|
75051
75055
|
{
|
|
75052
75056
|
open: d,
|
|
75053
|
-
onOpenChange: (
|
|
75054
|
-
f(
|
|
75057
|
+
onOpenChange: (Qe) => {
|
|
75058
|
+
f(Qe);
|
|
75055
75059
|
},
|
|
75056
75060
|
children: /* @__PURE__ */ jsxs(DialogContent, { className: "sm:max-w-[768px]", children: [
|
|
75057
75061
|
/* @__PURE__ */ jsx(DialogHeader, { children: /* @__PURE__ */ jsx(DialogTitle, { children: "Introduce Yourself" }) }),
|
|
@@ -75068,8 +75072,8 @@ function ManufacturerGetStartedButton({ applicationId: t, manufacturer: e }) {
|
|
|
75068
75072
|
placeholder: "We are an online retailer specializing in office supplies, serving businesses since 2018...",
|
|
75069
75073
|
className: "min-h-[100px]",
|
|
75070
75074
|
value: I,
|
|
75071
|
-
onChange: (
|
|
75072
|
-
M(
|
|
75075
|
+
onChange: (Qe) => {
|
|
75076
|
+
M(Qe.target.value), q("");
|
|
75073
75077
|
}
|
|
75074
75078
|
}
|
|
75075
75079
|
),
|
|
@@ -75080,18 +75084,18 @@ function ManufacturerGetStartedButton({ applicationId: t, manufacturer: e }) {
|
|
|
75080
75084
|
"Sales Channel(s) ",
|
|
75081
75085
|
/* @__PURE__ */ jsx("span", { className: "text-sm text-muted-foreground", children: "(Multi-Select where you currently sell your products)" })
|
|
75082
75086
|
] }),
|
|
75083
|
-
/* @__PURE__ */ jsx("div", { className: "grid grid-cols-2 gap-2", children: salesChannels.map((
|
|
75087
|
+
/* @__PURE__ */ jsx("div", { className: "grid grid-cols-2 gap-2", children: salesChannels.map((Qe) => /* @__PURE__ */ jsxs("div", { className: "flex items-start space-x-2", children: [
|
|
75084
75088
|
/* @__PURE__ */ jsx(
|
|
75085
75089
|
Checkbox,
|
|
75086
75090
|
{
|
|
75087
|
-
id: `channel-${
|
|
75088
|
-
checked: z.includes(
|
|
75089
|
-
onCheckedChange: (Xe) => He(
|
|
75091
|
+
id: `channel-${Qe.id}`,
|
|
75092
|
+
checked: z.includes(Qe.id),
|
|
75093
|
+
onCheckedChange: (Xe) => He(Qe.id, Xe === !0)
|
|
75090
75094
|
}
|
|
75091
75095
|
),
|
|
75092
|
-
/* @__PURE__ */ jsx(Label$2, { htmlFor: `channel-${
|
|
75093
|
-
] },
|
|
75094
|
-
tt && /* @__PURE__ */ jsx(Input, { placeholder: "Please specify", value: te, onChange: (
|
|
75096
|
+
/* @__PURE__ */ jsx(Label$2, { htmlFor: `channel-${Qe.id}`, className: "text-sm font-normal", children: Qe.label })
|
|
75097
|
+
] }, Qe.id)) }),
|
|
75098
|
+
tt && /* @__PURE__ */ jsx(Input, { placeholder: "Please specify", value: te, onChange: (Qe) => ne(Qe.target.value) }),
|
|
75095
75099
|
j && /* @__PURE__ */ jsx("p", { className: "text-sm font-medium text-destructive", children: j })
|
|
75096
75100
|
] }),
|
|
75097
75101
|
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
@@ -75099,18 +75103,18 @@ function ManufacturerGetStartedButton({ applicationId: t, manufacturer: e }) {
|
|
|
75099
75103
|
"Your Primary Market(s) ",
|
|
75100
75104
|
/* @__PURE__ */ jsx("span", { className: "text-sm text-muted-foreground", children: "(Multi-Select which regions you sell to)" })
|
|
75101
75105
|
] }),
|
|
75102
|
-
/* @__PURE__ */ jsx("div", { className: "grid grid-cols-2 gap-2", children: markets.map((
|
|
75106
|
+
/* @__PURE__ */ jsx("div", { className: "grid grid-cols-2 gap-2", children: markets.map((Qe) => /* @__PURE__ */ jsxs("div", { className: "flex items-start space-x-2", children: [
|
|
75103
75107
|
/* @__PURE__ */ jsx(
|
|
75104
75108
|
Checkbox,
|
|
75105
75109
|
{
|
|
75106
|
-
id: `market-${
|
|
75107
|
-
checked: oe.includes(
|
|
75108
|
-
onCheckedChange: (Xe) => Ze(
|
|
75110
|
+
id: `market-${Qe.id}`,
|
|
75111
|
+
checked: oe.includes(Qe.id),
|
|
75112
|
+
onCheckedChange: (Xe) => Ze(Qe.id, Xe === !0)
|
|
75109
75113
|
}
|
|
75110
75114
|
),
|
|
75111
|
-
/* @__PURE__ */ jsx(Label$2, { htmlFor: `market-${
|
|
75112
|
-
] },
|
|
75113
|
-
Ye && /* @__PURE__ */ jsx(Input, { placeholder: "Please specify", value: $e, onChange: (
|
|
75115
|
+
/* @__PURE__ */ jsx(Label$2, { htmlFor: `market-${Qe.id}`, className: "text-sm font-normal", children: Qe.label })
|
|
75116
|
+
] }, Qe.id)) }),
|
|
75117
|
+
Ye && /* @__PURE__ */ jsx(Input, { placeholder: "Please specify", value: $e, onChange: (Qe) => Ne(Qe.target.value) }),
|
|
75114
75118
|
se && /* @__PURE__ */ jsx("p", { className: "text-sm font-medium text-destructive", children: se })
|
|
75115
75119
|
] }),
|
|
75116
75120
|
/* @__PURE__ */ jsx(DialogFooter, { children: /* @__PURE__ */ jsx(Button, { type: "submit", disabled: R, children: R ? /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
@@ -75329,9 +75333,9 @@ var CONTENT_MARGIN = 10, [SelectContentProvider, useSelectContentContext] = crea
|
|
|
75329
75333
|
}, [z]), useFocusGuards();
|
|
75330
75334
|
const je = React.useCallback(
|
|
75331
75335
|
(Xe) => {
|
|
75332
|
-
const [
|
|
75336
|
+
const [ot, ...rt] = Ae().map((Ue) => Ue.ref.current), [at] = rt.slice(-1), st = document.activeElement;
|
|
75333
75337
|
for (const Ue of Xe)
|
|
75334
|
-
if (Ue === st || (Ue == null || Ue.scrollIntoView({ block: "nearest" }), Ue ===
|
|
75338
|
+
if (Ue === st || (Ue == null || Ue.scrollIntoView({ block: "nearest" }), Ue === ot && j && (j.scrollTop = 0), Ue === at && j && (j.scrollTop = j.scrollHeight), Ue == null || Ue.focus(), document.activeElement !== st)) return;
|
|
75335
75339
|
},
|
|
75336
75340
|
[Ae, j]
|
|
75337
75341
|
), ze = React.useCallback(
|
|
@@ -75345,17 +75349,17 @@ var CONTENT_MARGIN = 10, [SelectContentProvider, useSelectContentContext] = crea
|
|
|
75345
75349
|
React.useEffect(() => {
|
|
75346
75350
|
if (z) {
|
|
75347
75351
|
let Xe = { x: 0, y: 0 };
|
|
75348
|
-
const
|
|
75352
|
+
const ot = (at) => {
|
|
75349
75353
|
var st, Ue;
|
|
75350
75354
|
Xe = {
|
|
75351
|
-
x: Math.abs(Math.round(
|
|
75352
|
-
y: Math.abs(Math.round(
|
|
75355
|
+
x: Math.abs(Math.round(at.pageX) - (((st = Le.current) == null ? void 0 : st.x) ?? 0)),
|
|
75356
|
+
y: Math.abs(Math.round(at.pageY) - (((Ue = Le.current) == null ? void 0 : Ue.y) ?? 0))
|
|
75353
75357
|
};
|
|
75354
|
-
},
|
|
75355
|
-
Xe.x <= 10 && Xe.y <= 10 ?
|
|
75358
|
+
}, rt = (at) => {
|
|
75359
|
+
Xe.x <= 10 && Xe.y <= 10 ? at.preventDefault() : z.contains(at.target) || Oe(!1), document.removeEventListener("pointermove", ot), Le.current = null;
|
|
75356
75360
|
};
|
|
75357
|
-
return Le.current !== null && (document.addEventListener("pointermove",
|
|
75358
|
-
document.removeEventListener("pointermove",
|
|
75361
|
+
return Le.current !== null && (document.addEventListener("pointermove", ot), document.addEventListener("pointerup", rt, { capture: !0, once: !0 })), () => {
|
|
75362
|
+
document.removeEventListener("pointermove", ot), document.removeEventListener("pointerup", rt, { capture: !0 });
|
|
75359
75363
|
};
|
|
75360
75364
|
}
|
|
75361
75365
|
}, [z, Oe, Le]), React.useEffect(() => {
|
|
@@ -75365,21 +75369,21 @@ var CONTENT_MARGIN = 10, [SelectContentProvider, useSelectContentContext] = crea
|
|
|
75365
75369
|
};
|
|
75366
75370
|
}, [Oe]);
|
|
75367
75371
|
const [qe, Ge] = useTypeaheadSearch((Xe) => {
|
|
75368
|
-
const
|
|
75369
|
-
|
|
75372
|
+
const ot = Ae().filter((st) => !st.disabled), rt = ot.find((st) => st.ref.current === document.activeElement), at = findNextItem(ot, Xe, rt);
|
|
75373
|
+
at && setTimeout(() => at.ref.current.focus());
|
|
75370
75374
|
}), He = React.useCallback(
|
|
75371
|
-
(Xe,
|
|
75372
|
-
const
|
|
75373
|
-
(q.value !== void 0 && q.value ===
|
|
75375
|
+
(Xe, ot, rt) => {
|
|
75376
|
+
const at = !Ve.current && !rt;
|
|
75377
|
+
(q.value !== void 0 && q.value === ot || at) && (oe(Xe), at && (Ve.current = !0));
|
|
75374
75378
|
},
|
|
75375
75379
|
[q.value]
|
|
75376
75380
|
), Ze = React.useCallback(() => z == null ? void 0 : z.focus(), [z]), tt = React.useCallback(
|
|
75377
|
-
(Xe,
|
|
75378
|
-
const
|
|
75379
|
-
(q.value !== void 0 && q.value ===
|
|
75381
|
+
(Xe, ot, rt) => {
|
|
75382
|
+
const at = !Ve.current && !rt;
|
|
75383
|
+
(q.value !== void 0 && q.value === ot || at) && se(Xe);
|
|
75380
75384
|
},
|
|
75381
75385
|
[q.value]
|
|
75382
|
-
), Ye = o === "popper" ? SelectPopperPosition : SelectItemAlignedPosition,
|
|
75386
|
+
), Ye = o === "popper" ? SelectPopperPosition : SelectItemAlignedPosition, Qe = Ye === SelectPopperPosition ? {
|
|
75383
75387
|
side: g,
|
|
75384
75388
|
sideOffset: b,
|
|
75385
75389
|
align: S,
|
|
@@ -75416,8 +75420,8 @@ var CONTENT_MARGIN = 10, [SelectContentProvider, useSelectContentContext] = crea
|
|
|
75416
75420
|
Xe.preventDefault();
|
|
75417
75421
|
},
|
|
75418
75422
|
onUnmountAutoFocus: composeEventHandlers(l, (Xe) => {
|
|
75419
|
-
var
|
|
75420
|
-
(
|
|
75423
|
+
var ot;
|
|
75424
|
+
(ot = q.trigger) == null || ot.focus({ preventScroll: !0 }), Xe.preventDefault();
|
|
75421
75425
|
}),
|
|
75422
75426
|
children: /* @__PURE__ */ jsx(
|
|
75423
75427
|
DismissableLayer,
|
|
@@ -75437,7 +75441,7 @@ var CONTENT_MARGIN = 10, [SelectContentProvider, useSelectContentContext] = crea
|
|
|
75437
75441
|
dir: q.dir,
|
|
75438
75442
|
onContextMenu: (Xe) => Xe.preventDefault(),
|
|
75439
75443
|
...O,
|
|
75440
|
-
...
|
|
75444
|
+
...Qe,
|
|
75441
75445
|
onPlaced: () => Ne(!0),
|
|
75442
75446
|
ref: te,
|
|
75443
75447
|
style: {
|
|
@@ -75449,14 +75453,14 @@ var CONTENT_MARGIN = 10, [SelectContentProvider, useSelectContentContext] = crea
|
|
|
75449
75453
|
...O.style
|
|
75450
75454
|
},
|
|
75451
75455
|
onKeyDown: composeEventHandlers(O.onKeyDown, (Xe) => {
|
|
75452
|
-
const
|
|
75453
|
-
if (Xe.key === "Tab" && Xe.preventDefault(), !
|
|
75454
|
-
let
|
|
75455
|
-
if (["ArrowUp", "End"].includes(Xe.key) && (
|
|
75456
|
-
const st = Xe.target, Ue =
|
|
75457
|
-
|
|
75456
|
+
const ot = Xe.ctrlKey || Xe.altKey || Xe.metaKey;
|
|
75457
|
+
if (Xe.key === "Tab" && Xe.preventDefault(), !ot && Xe.key.length === 1 && Ge(Xe.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(Xe.key)) {
|
|
75458
|
+
let at = Ae().filter((st) => !st.disabled).map((st) => st.ref.current);
|
|
75459
|
+
if (["ArrowUp", "End"].includes(Xe.key) && (at = at.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(Xe.key)) {
|
|
75460
|
+
const st = Xe.target, Ue = at.indexOf(st);
|
|
75461
|
+
at = at.slice(Ue + 1);
|
|
75458
75462
|
}
|
|
75459
|
-
setTimeout(() => je(
|
|
75463
|
+
setTimeout(() => je(at)), Xe.preventDefault();
|
|
75460
75464
|
}
|
|
75461
75465
|
})
|
|
75462
75466
|
}
|
|
@@ -75492,15 +75496,15 @@ var ITEM_ALIGNED_POSITION_NAME = "SelectItemAlignedPosition", SelectItemAlignedP
|
|
|
75492
75496
|
]);
|
|
75493
75497
|
g.style.minWidth = Je + "px", g.style.right = qt + "px";
|
|
75494
75498
|
}
|
|
75495
|
-
const se = E(), Ae = window.innerHeight - CONTENT_MARGIN * 2, $e = I.scrollHeight, Ne = window.getComputedStyle(S), Ve = parseInt(Ne.borderTopWidth, 10), je = parseInt(Ne.paddingTop, 10), ze = parseInt(Ne.borderBottomWidth, 10), Oe = parseInt(Ne.paddingBottom, 10), Le = Ve + je + $e + Oe + ze, qe = Math.min(M.offsetHeight * 5, Le), Ge = window.getComputedStyle(I), He = parseInt(Ge.paddingTop, 10), Ze = parseInt(Ge.paddingBottom, 10), tt = te.top + te.height / 2 - CONTENT_MARGIN, Ye = Ae - tt,
|
|
75496
|
-
if (
|
|
75499
|
+
const se = E(), Ae = window.innerHeight - CONTENT_MARGIN * 2, $e = I.scrollHeight, Ne = window.getComputedStyle(S), Ve = parseInt(Ne.borderTopWidth, 10), je = parseInt(Ne.paddingTop, 10), ze = parseInt(Ne.borderBottomWidth, 10), Oe = parseInt(Ne.paddingBottom, 10), Le = Ve + je + $e + Oe + ze, qe = Math.min(M.offsetHeight * 5, Le), Ge = window.getComputedStyle(I), He = parseInt(Ge.paddingTop, 10), Ze = parseInt(Ge.paddingBottom, 10), tt = te.top + te.height / 2 - CONTENT_MARGIN, Ye = Ae - tt, Qe = M.offsetHeight / 2, Xe = M.offsetTop + Qe, ot = Ve + je + Xe, rt = Le - ot;
|
|
75500
|
+
if (ot <= tt) {
|
|
75497
75501
|
const st = se.length > 0 && M === se[se.length - 1].ref.current;
|
|
75498
75502
|
g.style.bottom = "0px";
|
|
75499
75503
|
const Ue = S.clientHeight - I.offsetTop - I.offsetHeight, Rt = Math.max(
|
|
75500
75504
|
Ye,
|
|
75501
|
-
|
|
75505
|
+
Qe + // viewport might have padding bottom, include it to avoid a scrollable viewport
|
|
75502
75506
|
(st ? Ze : 0) + Ue + ze
|
|
75503
|
-
), Je =
|
|
75507
|
+
), Je = ot + Rt;
|
|
75504
75508
|
g.style.height = Je + "px";
|
|
75505
75509
|
} else {
|
|
75506
75510
|
const st = se.length > 0 && M === se[0].ref.current;
|
|
@@ -75508,9 +75512,9 @@ var ITEM_ALIGNED_POSITION_NAME = "SelectItemAlignedPosition", SelectItemAlignedP
|
|
|
75508
75512
|
const Rt = Math.max(
|
|
75509
75513
|
tt,
|
|
75510
75514
|
Ve + I.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
|
|
75511
|
-
(st ? He : 0) +
|
|
75512
|
-
) +
|
|
75513
|
-
g.style.height = Rt + "px", I.scrollTop =
|
|
75515
|
+
(st ? He : 0) + Qe
|
|
75516
|
+
) + rt;
|
|
75517
|
+
g.style.height = Rt + "px", I.scrollTop = ot - tt + I.offsetTop;
|
|
75514
75518
|
}
|
|
75515
75519
|
g.style.margin = `${CONTENT_MARGIN}px 0`, g.style.minHeight = qe + "px", g.style.maxHeight = Ae + "px", o == null || o(), requestAnimationFrame(() => R.current = !0);
|
|
75516
75520
|
}
|
|
@@ -92335,12 +92339,12 @@ const chartDefaultProps = {
|
|
|
92335
92339
|
}));
|
|
92336
92340
|
};
|
|
92337
92341
|
let uniqueID = 0;
|
|
92338
|
-
const generateUniqueID = () => (uniqueID += 1, `reactgooglegraph-${uniqueID}`),
|
|
92342
|
+
const generateUniqueID = () => (uniqueID += 1, `reactgooglegraph-${uniqueID}`), Nr = class Nr {
|
|
92339
92343
|
};
|
|
92340
92344
|
/**
|
|
92341
92345
|
* Initialize the controls once chart is ready
|
|
92342
92346
|
*/
|
|
92343
|
-
Qt(
|
|
92347
|
+
Qt(Nr, "initializeControls", (e) => {
|
|
92344
92348
|
for (let n = 0; n < e.length; n += 1) {
|
|
92345
92349
|
const { controlType: o, options: l, controlWrapperParams: d } = e[n].controlProp;
|
|
92346
92350
|
d && "state" in d && e[n].control.setState(d.state), e[n].control.setOptions(l), e[n].control.setControlType(o);
|
|
@@ -92348,7 +92352,7 @@ Qt(Ir, "initializeControls", (e) => {
|
|
|
92348
92352
|
}), /**
|
|
92349
92353
|
* listen to the control events (ready, statechange, error) specified in the controlEvents prop
|
|
92350
92354
|
*/
|
|
92351
|
-
Qt(
|
|
92355
|
+
Qt(Nr, "listenToControlEvents", (e, n) => {
|
|
92352
92356
|
const { google: o } = n;
|
|
92353
92357
|
return e.flatMap((l) => {
|
|
92354
92358
|
const { control: d, controlProp: f } = l, { controlEvents: g = [] } = f;
|
|
@@ -92370,16 +92374,16 @@ Qt(Ir, "listenToControlEvents", (e, n) => {
|
|
|
92370
92374
|
}), /**
|
|
92371
92375
|
* If controlID is not provided, generate a unique controlID
|
|
92372
92376
|
*/
|
|
92373
|
-
Qt(
|
|
92377
|
+
Qt(Nr, "createControlId", (e) => {
|
|
92374
92378
|
let n;
|
|
92375
92379
|
return typeof e > "u" ? n = `googlechart-control-${generateUniqueID()}` : n = e, n;
|
|
92376
92380
|
}), /**
|
|
92377
92381
|
* Map the control props to Google Chart Controls
|
|
92378
92382
|
*/
|
|
92379
|
-
Qt(
|
|
92383
|
+
Qt(Nr, "createChartControls", (e) => {
|
|
92380
92384
|
const { controls: n, google: o } = e;
|
|
92381
92385
|
return n ? n.map((l, d) => {
|
|
92382
|
-
const { controlID: f, controlType: g, options: b, controlWrapperParams: S } = l, _ =
|
|
92386
|
+
const { controlID: f, controlType: g, options: b, controlWrapperParams: S } = l, _ = Nr.createControlId(f);
|
|
92383
92387
|
return {
|
|
92384
92388
|
controlProp: l,
|
|
92385
92389
|
control: new o.visualization.ControlWrapper({
|
|
@@ -92390,14 +92394,14 @@ Qt(Ir, "createChartControls", (e) => {
|
|
|
92390
92394
|
})
|
|
92391
92395
|
};
|
|
92392
92396
|
}) : null;
|
|
92393
|
-
}), Qt(
|
|
92394
|
-
const { chartWrapper: n, chartDashboard: o } = e, l =
|
|
92397
|
+
}), Qt(Nr, "addControls", (e) => {
|
|
92398
|
+
const { chartWrapper: n, chartDashboard: o } = e, l = Nr.createChartControls(e);
|
|
92395
92399
|
return !l || !o || !n ? null : (o.bind(l.map((d) => {
|
|
92396
92400
|
let { control: f } = d;
|
|
92397
92401
|
return f;
|
|
92398
|
-
}), n),
|
|
92402
|
+
}), n), Nr.initializeControls(l), l);
|
|
92399
92403
|
});
|
|
92400
|
-
let GoogleChartControlsInternal =
|
|
92404
|
+
let GoogleChartControlsInternal = Nr;
|
|
92401
92405
|
const useCreateChartControls = (t) => {
|
|
92402
92406
|
const [e, n] = React.useState(null);
|
|
92403
92407
|
return [
|
|
@@ -92482,9 +92486,9 @@ const useCreateChartControls = (t) => {
|
|
|
92482
92486
|
R.isError() ? l(`Error in query: ${R.getMessage()} ${R.getDetailedMessage()}`) : o(R.getDataTable());
|
|
92483
92487
|
});
|
|
92484
92488
|
});
|
|
92485
|
-
}, GRAY_COLOR = "#CCCCCC",
|
|
92489
|
+
}, GRAY_COLOR = "#CCCCCC", Rr = class Rr {
|
|
92486
92490
|
};
|
|
92487
|
-
Qt(
|
|
92491
|
+
Qt(Rr, "grayOutHiddenColumnsLabel", (e, n) => {
|
|
92488
92492
|
const { googleChartWrapper: o, options: l } = e;
|
|
92489
92493
|
if (!o) {
|
|
92490
92494
|
console.error("googleChartWrapper is not defined");
|
|
@@ -92497,7 +92501,7 @@ Qt(Er, "grayOutHiddenColumnsLabel", (e, n) => {
|
|
|
92497
92501
|
const b = Array.from({
|
|
92498
92502
|
length: f - 1
|
|
92499
92503
|
}).map((S, _) => {
|
|
92500
|
-
const C =
|
|
92504
|
+
const C = Rr.getColumnId(d, _ + 1);
|
|
92501
92505
|
return n.includes(C) ? GRAY_COLOR : l && l.colors ? l.colors[_] : DEFAULT_CHART_COLORS[_];
|
|
92502
92506
|
});
|
|
92503
92507
|
o.setOptions({
|
|
@@ -92508,7 +92512,7 @@ Qt(Er, "grayOutHiddenColumnsLabel", (e, n) => {
|
|
|
92508
92512
|
* Listens to user clicking on the legend to toggle the visibility of a column.
|
|
92509
92513
|
* When a user clicks on a legend item, the column id is added to / removed from the hiddenColumns state.
|
|
92510
92514
|
*/
|
|
92511
|
-
Qt(
|
|
92515
|
+
Qt(Rr, "listenToLegendToggle", (e, n) => {
|
|
92512
92516
|
const [o, l] = n, { google: d, googleChartWrapper: f } = e;
|
|
92513
92517
|
if (!f) {
|
|
92514
92518
|
console.error("googleChartWrapper is not defined");
|
|
@@ -92519,7 +92523,7 @@ Qt(Er, "listenToLegendToggle", (e, n) => {
|
|
|
92519
92523
|
if (b.length === 0 || // We want to listen to when a whole row is selected. This is the case only when row === null
|
|
92520
92524
|
b[0].row !== null || !S)
|
|
92521
92525
|
return;
|
|
92522
|
-
const _ = b[0].column, C =
|
|
92526
|
+
const _ = b[0].column, C = Rr.getColumnId(S, _);
|
|
92523
92527
|
o != null && o.includes(C) ? l((E) => [
|
|
92524
92528
|
...E.filter((R) => R !== C)
|
|
92525
92529
|
]) : l((E) => [
|
|
@@ -92530,7 +92534,7 @@ Qt(Er, "listenToLegendToggle", (e, n) => {
|
|
|
92530
92534
|
}), /**
|
|
92531
92535
|
* (Re-)Draw a Google Chart with the given data, options, and chart type.
|
|
92532
92536
|
*/
|
|
92533
|
-
Qt(
|
|
92537
|
+
Qt(Rr, "draw", async (e) => {
|
|
92534
92538
|
const { data: n, diffdata: o, rows: l, columns: d, options: f, chartType: g, formatters: b, spreadSheetUrl: S, spreadSheetQueryParameters: _, googleChartDashboard: C, googleChartWrapper: E, google: R, hiddenColumns: A, legendToggle: I, legend_toggle: M } = e;
|
|
92535
92539
|
if (!E) {
|
|
92536
92540
|
console.error("draw was called with googleChartWrapper = null");
|
|
@@ -92546,7 +92550,7 @@ Qt(Er, "draw", async (e) => {
|
|
|
92546
92550
|
...l
|
|
92547
92551
|
]) : S ? O = await loadDataTableFromSpreadSheet(R, S, _) : O = R.visualization.arrayToDataTable([]);
|
|
92548
92552
|
const z = O.getNumberOfColumns(), Q = Array(z).fill(0).map((te, ne) => {
|
|
92549
|
-
const oe =
|
|
92553
|
+
const oe = Rr.getColumnId(O, ne);
|
|
92550
92554
|
return A.includes(oe) ? {
|
|
92551
92555
|
label: O.getColumnLabel(ne),
|
|
92552
92556
|
type: O.getColumnType(ne),
|
|
@@ -92555,19 +92559,19 @@ Qt(Er, "draw", async (e) => {
|
|
|
92555
92559
|
}), j = E.getChart();
|
|
92556
92560
|
E.getChartType() === "Timeline" && j && j.clearChart(), E.setChartType(g), E.setOptions(f || {});
|
|
92557
92561
|
const F = new R.visualization.DataView(O);
|
|
92558
|
-
F.setColumns(Q), E.setDataTable(F), E.draw(), C && C.draw(O), q && (E.setDataTable(q), E.draw()), b && (
|
|
92562
|
+
F.setColumns(Q), E.setDataTable(F), E.draw(), C && C.draw(O), q && (E.setDataTable(q), E.draw()), b && (Rr.applyFormatters({
|
|
92559
92563
|
dataTable: O,
|
|
92560
92564
|
formatters: b,
|
|
92561
92565
|
google: R
|
|
92562
|
-
}), E.setDataTable(O), E.draw()), (I === !0 || M === !0) &&
|
|
92566
|
+
}), E.setDataTable(O), E.draw()), (I === !0 || M === !0) && Rr.grayOutHiddenColumnsLabel(e, A);
|
|
92563
92567
|
}), /**
|
|
92564
92568
|
* Get the column ID of a column in a GoogleDataTable.
|
|
92565
92569
|
* If the column has an ID, return the ID, otherwise return the label.
|
|
92566
92570
|
*/
|
|
92567
|
-
Qt(
|
|
92571
|
+
Qt(Rr, "getColumnId", (e, n) => e.getColumnId(n) || e.getColumnLabel(n)), /**
|
|
92568
92572
|
* Apply Chart Formatters passed under the formatters prop to the GoogleDataTable
|
|
92569
92573
|
*/
|
|
92570
|
-
Qt(
|
|
92574
|
+
Qt(Rr, "applyFormatters", (e) => {
|
|
92571
92575
|
let { dataTable: n, formatters: o, google: l } = e;
|
|
92572
92576
|
for (let d of o)
|
|
92573
92577
|
switch (d.type) {
|
|
@@ -92605,7 +92609,7 @@ Qt(Er, "applyFormatters", (e) => {
|
|
|
92605
92609
|
}
|
|
92606
92610
|
}
|
|
92607
92611
|
});
|
|
92608
|
-
let GoogleChartInternal =
|
|
92612
|
+
let GoogleChartInternal = Rr;
|
|
92609
92613
|
const useGoogleChartDataTable = (t) => {
|
|
92610
92614
|
const { google: e, googleChartWrapper: n, googleChartDashboard: o } = t, [l, d] = React.useState([]);
|
|
92611
92615
|
React.useEffect(() => {
|