randmarcomps 1.609.0 → 1.610.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/randmarcomps.js +799 -791
- package/dist/randmarcomps.umd.cjs +38 -38
- package/package.json +1 -1
package/dist/randmarcomps.js
CHANGED
|
@@ -57,11 +57,11 @@ function Tt({ containerRef: e, inputRef: t, pushPasswordManagerStrategy: n, isFo
|
|
|
57
57
|
}
|
|
58
58
|
var jt = React.createContext({}), Lt = React.forwardRef((e, t) => {
|
|
59
59
|
var n = e, { value: o, onChange: a, maxLength: s, textAlign: l = "left", pattern: c, placeholder: d, inputMode: f = "numeric", onComplete: S, pushPasswordManagerStrategy: R = "increase-width", pasteTransformer: V, containerClassName: I, noScriptCSSFallback: ot = Nt, render: lt, children: at } = n, ct = Pt(n, ["value", "onChange", "maxLength", "textAlign", "pattern", "placeholder", "inputMode", "onComplete", "pushPasswordManagerStrategy", "pasteTransformer", "containerClassName", "noScriptCSSFallback", "render", "children"]), ut, dt, pt, ft, mt;
|
|
60
|
-
let [Ct, Rt] = React.useState(typeof ct.defaultValue == "string" ? ct.defaultValue : ""), Mt = o ?? Ct, It = _t(Mt),
|
|
60
|
+
let [Ct, Rt] = React.useState(typeof ct.defaultValue == "string" ? ct.defaultValue : ""), Mt = o ?? Ct, It = _t(Mt), $t = React.useCallback((lr) => {
|
|
61
61
|
a?.(lr), Rt(lr);
|
|
62
|
-
}, [a]), yt = React.useMemo(() => c ? typeof c == "string" ? new RegExp(c) : c : null, [c]), Dt = React.useRef(null),
|
|
62
|
+
}, [a]), yt = React.useMemo(() => c ? typeof c == "string" ? new RegExp(c) : c : null, [c]), Dt = React.useRef(null), Ft = React.useRef(null), Vt = React.useRef({ value: Mt, onChange: $t, isIOS: typeof window < "u" && ((dt = (ut = window?.CSS) == null ? void 0 : ut.supports) == null ? void 0 : dt.call(ut, "-webkit-touch-callout", "none")) }), Wt = React.useRef({ prev: [(pt = Dt.current) == null ? void 0 : pt.selectionStart, (ft = Dt.current) == null ? void 0 : ft.selectionEnd, (mt = Dt.current) == null ? void 0 : mt.selectionDirection] });
|
|
63
63
|
React.useImperativeHandle(t, () => Dt.current, []), React.useEffect(() => {
|
|
64
|
-
let lr = Dt.current, ur =
|
|
64
|
+
let lr = Dt.current, ur = Ft.current;
|
|
65
65
|
if (!lr || !ur) return;
|
|
66
66
|
Vt.current.value !== lr.value && Vt.current.onChange(lr.value), Wt.current.prev = [lr.selectionStart, lr.selectionEnd, lr.selectionDirection];
|
|
67
67
|
function Sr() {
|
|
@@ -118,14 +118,14 @@ var jt = React.createContext({}), Lt = React.forwardRef((e, t) => {
|
|
|
118
118
|
}, [Mt, Ht]), React.useEffect(() => {
|
|
119
119
|
It !== void 0 && Mt !== It && It.length < s && Mt.length === s && S?.(Mt);
|
|
120
120
|
}, [s, S, It, Mt]);
|
|
121
|
-
let Jt = Tt({ containerRef:
|
|
121
|
+
let Jt = Tt({ containerRef: Ft, inputRef: Dt, pushPasswordManagerStrategy: R, isFocused: Ht }), hr = React.useCallback((lr) => {
|
|
122
122
|
let ur = lr.currentTarget.value.slice(0, s);
|
|
123
123
|
if (ur.length > 0 && yt && !yt.test(ur)) {
|
|
124
124
|
lr.preventDefault();
|
|
125
125
|
return;
|
|
126
126
|
}
|
|
127
|
-
typeof It == "string" && ur.length < It.length && document.dispatchEvent(new Event("selectionchange")),
|
|
128
|
-
}, [s,
|
|
127
|
+
typeof It == "string" && ur.length < It.length && document.dispatchEvent(new Event("selectionchange")), $t(ur);
|
|
128
|
+
}, [s, $t, It, yt]), Yt = React.useCallback(() => {
|
|
129
129
|
var lr;
|
|
130
130
|
if (Dt.current) {
|
|
131
131
|
let ur = Math.min(Dt.current.value.length, s - 1), Sr = Dt.current.value.length;
|
|
@@ -140,10 +140,10 @@ var jt = React.createContext({}), Lt = React.forwardRef((e, t) => {
|
|
|
140
140
|
lr.preventDefault();
|
|
141
141
|
let _r = (ur = Dt.current) == null ? void 0 : ur.selectionStart, Kt = (Sr = Dt.current) == null ? void 0 : Sr.selectionEnd, ar = (_r !== Kt ? Mt.slice(0, _r) + Pr + Mt.slice(Kt) : Mt.slice(0, _r) + Pr + Mt.slice(_r)).slice(0, s);
|
|
142
142
|
if (ar.length > 0 && yt && !yt.test(ar)) return;
|
|
143
|
-
Rr.value = ar,
|
|
143
|
+
Rr.value = ar, $t(ar);
|
|
144
144
|
let rr = Math.min(ar.length, s - 1), gr = ar.length;
|
|
145
145
|
Rr.setSelectionRange(rr, gr), Zt(rr), dr(gr);
|
|
146
|
-
}, [s,
|
|
146
|
+
}, [s, $t, yt, Mt]), Qt = React.useMemo(() => ({ position: "relative", cursor: ct.disabled ? "default" : "text", userSelect: "none", WebkitUserSelect: "none", pointerEvents: "none" }), [ct.disabled]), er = React.useMemo(() => ({ position: "absolute", inset: 0, width: Jt.willPushPWMBadge ? `calc(100% + ${Jt.PWM_BADGE_SPACE_WIDTH})` : "100%", clipPath: Jt.willPushPWMBadge ? `inset(0 ${Jt.PWM_BADGE_SPACE_WIDTH} 0 0)` : void 0, height: "100%", display: "flex", textAlign: l, 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" }), [Jt.PWM_BADGE_SPACE_WIDTH, Jt.willPushPWMBadge, l]), yr = React.useMemo(() => React.createElement("input", bt(St({ autoComplete: ct.autoComplete || "one-time-code" }, ct), { "data-input-otp": !0, "data-input-otp-placeholder-shown": Mt.length === 0 || void 0, "data-input-otp-mss": nr, "data-input-otp-mse": sr, inputMode: f, pattern: yt?.source, "aria-placeholder": d, style: er, maxLength: s, value: Mt, ref: Dt, onPaste: (lr) => {
|
|
147
147
|
var ur;
|
|
148
148
|
or(lr), (ur = ct.onPaste) == null || ur.call(ct, lr);
|
|
149
149
|
}, onChange: hr, onMouseOver: (lr) => {
|
|
@@ -163,7 +163,7 @@ var jt = React.createContext({}), Lt = React.forwardRef((e, t) => {
|
|
|
163
163
|
let Rr = Ht && nr !== null && sr !== null && (nr === sr && ur === nr || ur >= nr && ur < sr), Cr = Mt[ur] !== void 0 ? Mt[ur] : null, Pr = Mt[0] !== void 0 ? null : (Sr = d?.[ur]) != null ? Sr : null;
|
|
164
164
|
return { char: Cr, placeholderChar: Pr, isActive: Rr, hasFakeCaret: Rr && Cr === null };
|
|
165
165
|
}), isFocused: Ht, isHovering: !ct.disabled && qt }), [Ht, qt, s, sr, nr, ct.disabled, Mt]), xr = React.useMemo(() => lt ? lt(Xt) : React.createElement(jt.Provider, { value: Xt }, at), [at, Xt, lt]);
|
|
166
|
-
return React.createElement(React.Fragment, null, ot !== null && React.createElement("noscript", null, React.createElement("style", null, ot)), React.createElement("div", { ref:
|
|
166
|
+
return React.createElement(React.Fragment, null, ot !== null && React.createElement("noscript", null, React.createElement("style", null, ot)), React.createElement("div", { ref: Ft, "data-input-otp-container": !0, style: Qt, className: I }, xr, React.createElement("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" } }, yr)));
|
|
167
167
|
});
|
|
168
168
|
Lt.displayName = "Input";
|
|
169
169
|
function $$2(e, t) {
|
|
@@ -1251,9 +1251,9 @@ const concatArrays = (e, t) => {
|
|
|
1251
1251
|
"bottom-left",
|
|
1252
1252
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
1253
1253
|
"left-bottom"
|
|
1254
|
-
], ft = () => [...pt(), isArbitraryVariable, isArbitraryValue], mt = () => ["auto", "hidden", "clip", "visible", "scroll"], Ct = () => ["auto", "contain", "none"], Rt = () => [isArbitraryVariable, isArbitraryValue, d], Mt = () => [isFraction, "full", "auto", ...Rt()], It = () => [isInteger, "none", "subgrid", isArbitraryVariable, isArbitraryValue],
|
|
1254
|
+
], ft = () => [...pt(), isArbitraryVariable, isArbitraryValue], mt = () => ["auto", "hidden", "clip", "visible", "scroll"], Ct = () => ["auto", "contain", "none"], Rt = () => [isArbitraryVariable, isArbitraryValue, d], Mt = () => [isFraction, "full", "auto", ...Rt()], It = () => [isInteger, "none", "subgrid", isArbitraryVariable, isArbitraryValue], $t = () => ["auto", {
|
|
1255
1255
|
span: ["full", isInteger, isArbitraryVariable, isArbitraryValue]
|
|
1256
|
-
}, isInteger, isArbitraryVariable, isArbitraryValue], yt = () => [isInteger, "auto", isArbitraryVariable, isArbitraryValue], Dt = () => ["auto", "min", "max", "fr", isArbitraryVariable, isArbitraryValue],
|
|
1256
|
+
}, isInteger, isArbitraryVariable, isArbitraryValue], yt = () => [isInteger, "auto", isArbitraryVariable, isArbitraryValue], Dt = () => ["auto", "min", "max", "fr", isArbitraryVariable, isArbitraryValue], Ft = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], Vt = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], Wt = () => ["auto", ...Rt()], qt = () => [isFraction, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...Rt()], zt = () => [isFraction, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...Rt()], Ht = () => [isFraction, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...Rt()], Ut = () => [e, isArbitraryVariable, isArbitraryValue], nr = () => [...pt(), isArbitraryVariablePosition, isArbitraryPosition, {
|
|
1257
1257
|
position: [isArbitraryVariable, isArbitraryValue]
|
|
1258
1258
|
}], Zt = () => ["no-repeat", {
|
|
1259
1259
|
repeat: ["", "x", "y", "space", "round"]
|
|
@@ -1612,7 +1612,7 @@ const concatArrays = (e, t) => {
|
|
|
1612
1612
|
* @see https://tailwindcss.com/docs/grid-column
|
|
1613
1613
|
*/
|
|
1614
1614
|
"col-start-end": [{
|
|
1615
|
-
col:
|
|
1615
|
+
col: $t()
|
|
1616
1616
|
}],
|
|
1617
1617
|
/**
|
|
1618
1618
|
* Grid Column Start
|
|
@@ -1640,7 +1640,7 @@ const concatArrays = (e, t) => {
|
|
|
1640
1640
|
* @see https://tailwindcss.com/docs/grid-row
|
|
1641
1641
|
*/
|
|
1642
1642
|
"row-start-end": [{
|
|
1643
|
-
row:
|
|
1643
|
+
row: $t()
|
|
1644
1644
|
}],
|
|
1645
1645
|
/**
|
|
1646
1646
|
* Grid Row Start
|
|
@@ -1703,7 +1703,7 @@ const concatArrays = (e, t) => {
|
|
|
1703
1703
|
* @see https://tailwindcss.com/docs/justify-content
|
|
1704
1704
|
*/
|
|
1705
1705
|
"justify-content": [{
|
|
1706
|
-
justify: [
|
|
1706
|
+
justify: [...Ft(), "normal"]
|
|
1707
1707
|
}],
|
|
1708
1708
|
/**
|
|
1709
1709
|
* Justify Items
|
|
@@ -1724,7 +1724,7 @@ const concatArrays = (e, t) => {
|
|
|
1724
1724
|
* @see https://tailwindcss.com/docs/align-content
|
|
1725
1725
|
*/
|
|
1726
1726
|
"align-content": [{
|
|
1727
|
-
content: ["normal",
|
|
1727
|
+
content: ["normal", ...Ft()]
|
|
1728
1728
|
}],
|
|
1729
1729
|
/**
|
|
1730
1730
|
* Align Items
|
|
@@ -1749,7 +1749,7 @@ const concatArrays = (e, t) => {
|
|
|
1749
1749
|
* @see https://tailwindcss.com/docs/place-content
|
|
1750
1750
|
*/
|
|
1751
1751
|
"place-content": [{
|
|
1752
|
-
"place-content":
|
|
1752
|
+
"place-content": Ft()
|
|
1753
1753
|
}],
|
|
1754
1754
|
/**
|
|
1755
1755
|
* Place Items
|
|
@@ -4320,7 +4320,7 @@ var RovingFocusGroupImpl = React.forwardRef((e, t) => {
|
|
|
4320
4320
|
if (Rt.target === Rt.currentTarget && Mt && !ct) {
|
|
4321
4321
|
const It = new CustomEvent(ENTRY_FOCUS, EVENT_OPTIONS$1);
|
|
4322
4322
|
if (Rt.currentTarget.dispatchEvent(It), !It.defaultPrevented) {
|
|
4323
|
-
const
|
|
4323
|
+
const $t = pt().filter((Wt) => Wt.focusable), yt = $t.find((Wt) => Wt.active), Dt = $t.find((Wt) => Wt.id === lt), Vt = [yt, Dt, ...$t].filter(
|
|
4324
4324
|
Boolean
|
|
4325
4325
|
).map((Wt) => Wt.ref.current);
|
|
4326
4326
|
focusFirst$3(Vt, S);
|
|
@@ -5428,10 +5428,10 @@ function RemoveScrollSideCar(e) {
|
|
|
5428
5428
|
var Rt = window.getSelection(), Mt = Rt && Rt.anchorNode, It = Mt ? Mt === mt || Mt.contains(mt) : !1;
|
|
5429
5429
|
if (It)
|
|
5430
5430
|
return !1;
|
|
5431
|
-
var
|
|
5432
|
-
if (
|
|
5431
|
+
var $t = locationCouldBeScrolled(Ct, mt);
|
|
5432
|
+
if (!$t)
|
|
5433
5433
|
return !0;
|
|
5434
|
-
if (
|
|
5434
|
+
if ($t ? ft = Ct : (ft = Ct === "v" ? "h" : "v", $t = locationCouldBeScrolled(Ct, mt)), !$t)
|
|
5435
5435
|
return !1;
|
|
5436
5436
|
if (!o.current && "changedTouches" in lt && (dt || pt) && (o.current = ft), !ft)
|
|
5437
5437
|
return !0;
|
|
@@ -6198,12 +6198,12 @@ const MAX_RESET_COUNT = 50, computePosition$1 = async (e, t, n) => {
|
|
|
6198
6198
|
}, I = getAlignmentAxis(a), ot = getAxisLength(I), lt = await l.getDimensions(f), at = I === "y", ct = at ? "top" : "left", ut = at ? "bottom" : "right", dt = at ? "clientHeight" : "clientWidth", pt = s.reference[ot] + s.reference[I] - V[I] - s.floating[ot], ft = V[I] - s.reference[I], mt = await (l.getOffsetParent == null ? void 0 : l.getOffsetParent(f));
|
|
6199
6199
|
let Ct = mt ? mt[dt] : 0;
|
|
6200
6200
|
(!Ct || !await (l.isElement == null ? void 0 : l.isElement(mt))) && (Ct = c.floating[dt] || s.floating[ot]);
|
|
6201
|
-
const Rt = pt / 2 - ft / 2, Mt = Ct / 2 - lt[ot] / 2 - 1, It = min$3(R[ct], Mt),
|
|
6201
|
+
const Rt = pt / 2 - ft / 2, Mt = Ct / 2 - lt[ot] / 2 - 1, It = min$3(R[ct], Mt), $t = min$3(R[ut], Mt), yt = It, Dt = Ct - lt[ot] - $t, Ft = Ct / 2 - lt[ot] / 2 + Rt, Vt = clamp$1(yt, Ft, Dt), Wt = !d.arrow && getAlignment(a) != null && Ft !== Vt && s.reference[ot] / 2 - (Ft < yt ? It : $t) - lt[ot] / 2 < 0, qt = Wt ? Ft < yt ? Ft - yt : Ft - Dt : 0;
|
|
6202
6202
|
return {
|
|
6203
6203
|
[I]: V[I] + qt,
|
|
6204
6204
|
data: {
|
|
6205
6205
|
[I]: Vt,
|
|
6206
|
-
centerOffset:
|
|
6206
|
+
centerOffset: Ft - Vt - qt,
|
|
6207
6207
|
...Wt && {
|
|
6208
6208
|
alignmentOffset: qt
|
|
6209
6209
|
}
|
|
@@ -6240,21 +6240,21 @@ const MAX_RESET_COUNT = 50, computePosition$1 = async (e, t, n) => {
|
|
|
6240
6240
|
const Ct = [c, ...ft], Rt = await d.detectOverflow(t, at), Mt = [];
|
|
6241
6241
|
let It = ((o = s.flip) == null ? void 0 : o.overflows) || [];
|
|
6242
6242
|
if (S && Mt.push(Rt[ct]), R) {
|
|
6243
|
-
const
|
|
6244
|
-
Mt.push(Rt[
|
|
6243
|
+
const Ft = getAlignmentSides(a, l, pt);
|
|
6244
|
+
Mt.push(Rt[Ft[0]], Rt[Ft[1]]);
|
|
6245
6245
|
}
|
|
6246
6246
|
if (It = [...It, {
|
|
6247
6247
|
placement: a,
|
|
6248
6248
|
overflows: Mt
|
|
6249
|
-
}], !Mt.every((
|
|
6250
|
-
var
|
|
6251
|
-
const
|
|
6249
|
+
}], !Mt.every((Ft) => Ft <= 0)) {
|
|
6250
|
+
var $t, yt;
|
|
6251
|
+
const Ft = ((($t = s.flip) == null ? void 0 : $t.index) || 0) + 1, Vt = Ct[Ft];
|
|
6252
6252
|
if (Vt && (!(R === "alignment" ? ut !== getSideAxis(Vt) : !1) || // We leave the current main axis only if every placement on that axis
|
|
6253
6253
|
// overflows the main axis.
|
|
6254
6254
|
It.every((zt) => getSideAxis(zt.placement) === ut ? zt.overflows[0] > 0 : !0)))
|
|
6255
6255
|
return {
|
|
6256
6256
|
data: {
|
|
6257
|
-
index:
|
|
6257
|
+
index: Ft,
|
|
6258
6258
|
overflows: It
|
|
6259
6259
|
},
|
|
6260
6260
|
reset: {
|
|
@@ -6519,8 +6519,8 @@ const offset$2 = function(e) {
|
|
|
6519
6519
|
const ut = lt - S.top - S.bottom, dt = ot - S.left - S.right, pt = min$3(lt - S[at], ut), ft = min$3(ot - S[ct], dt), mt = !t.middlewareData.shift;
|
|
6520
6520
|
let Ct = pt, Rt = ft;
|
|
6521
6521
|
if ((n = t.middlewareData.shift) != null && n.enabled.x && (Rt = dt), (o = t.middlewareData.shift) != null && o.enabled.y && (Ct = ut), mt && !V) {
|
|
6522
|
-
const It = max$3(S.left, 0),
|
|
6523
|
-
I ? Rt = ot - 2 * (It !== 0 ||
|
|
6522
|
+
const It = max$3(S.left, 0), $t = max$3(S.right, 0), yt = max$3(S.top, 0), Dt = max$3(S.bottom, 0);
|
|
6523
|
+
I ? Rt = ot - 2 * (It !== 0 || $t !== 0 ? It + $t : max$3(S.left, S.right)) : Ct = lt - 2 * (yt !== 0 || Dt !== 0 ? yt + Dt : max$3(S.top, S.bottom));
|
|
6524
6524
|
}
|
|
6525
6525
|
await d({
|
|
6526
6526
|
...t,
|
|
@@ -7109,7 +7109,7 @@ function useFloating(e) {
|
|
|
7109
7109
|
zt !== mt.current && (mt.current = zt, lt(zt));
|
|
7110
7110
|
}, []), dt = React.useCallback((zt) => {
|
|
7111
7111
|
zt !== Ct.current && (Ct.current = zt, ct(zt));
|
|
7112
|
-
}, []), pt = s || ot, ft = l || at, mt = React.useRef(null), Ct = React.useRef(null), Rt = React.useRef(S), Mt = d != null, It = useLatestRef(d),
|
|
7112
|
+
}, []), pt = s || ot, ft = l || at, mt = React.useRef(null), Ct = React.useRef(null), Rt = React.useRef(S), Mt = d != null, It = useLatestRef(d), $t = useLatestRef(a), yt = useLatestRef(f), Dt = React.useCallback(() => {
|
|
7113
7113
|
if (!mt.current || !Ct.current)
|
|
7114
7114
|
return;
|
|
7115
7115
|
const zt = {
|
|
@@ -7117,7 +7117,7 @@ function useFloating(e) {
|
|
|
7117
7117
|
strategy: n,
|
|
7118
7118
|
middleware: V
|
|
7119
7119
|
};
|
|
7120
|
-
|
|
7120
|
+
$t.current && (zt.platform = $t.current), computePosition(mt.current, Ct.current, zt).then((Ht) => {
|
|
7121
7121
|
const Ut = {
|
|
7122
7122
|
...Ht,
|
|
7123
7123
|
// The floating element's position may be recomputed while it's closed
|
|
@@ -7126,20 +7126,20 @@ function useFloating(e) {
|
|
|
7126
7126
|
// setting it to `true` when `open === false` (must be specified).
|
|
7127
7127
|
isPositioned: yt.current !== !1
|
|
7128
7128
|
};
|
|
7129
|
-
|
|
7129
|
+
Ft.current && !deepEqual$2(Rt.current, Ut) && (Rt.current = Ut, ReactDOM.flushSync(() => {
|
|
7130
7130
|
R(Ut);
|
|
7131
7131
|
}));
|
|
7132
7132
|
});
|
|
7133
|
-
}, [V, t, n,
|
|
7133
|
+
}, [V, t, n, $t, yt]);
|
|
7134
7134
|
index(() => {
|
|
7135
7135
|
f === !1 && Rt.current.isPositioned && (Rt.current.isPositioned = !1, R((zt) => ({
|
|
7136
7136
|
...zt,
|
|
7137
7137
|
isPositioned: !1
|
|
7138
7138
|
})));
|
|
7139
7139
|
}, [f]);
|
|
7140
|
-
const
|
|
7141
|
-
index(() => (
|
|
7142
|
-
|
|
7140
|
+
const Ft = React.useRef(!1);
|
|
7141
|
+
index(() => (Ft.current = !0, () => {
|
|
7142
|
+
Ft.current = !1;
|
|
7143
7143
|
}), []), index(() => {
|
|
7144
7144
|
if (pt && (mt.current = pt), ft && (Ct.current = ft), pt && ft) {
|
|
7145
7145
|
if (It.current)
|
|
@@ -7299,12 +7299,12 @@ var CONTENT_NAME$9 = "PopperContent", [PopperContentProvider, useContentContext]
|
|
|
7299
7299
|
updatePositionStrategy: I = "optimized",
|
|
7300
7300
|
onPlaced: ot,
|
|
7301
7301
|
...lt
|
|
7302
|
-
} = e, at = usePopperContext(CONTENT_NAME$9, n), [ct, ut] = React.useState(null), dt = useComposedRefs(t, (Yt) => ut(Yt)), [pt, ft] = React.useState(null), mt = useSize(pt), Ct = mt?.width ?? 0, Rt = mt?.height ?? 0, Mt = o + (s !== "center" ? "-" + s : ""), It = typeof S == "number" ? S : { top: 0, right: 0, bottom: 0, left: 0, ...S },
|
|
7302
|
+
} = e, at = usePopperContext(CONTENT_NAME$9, n), [ct, ut] = React.useState(null), dt = useComposedRefs(t, (Yt) => ut(Yt)), [pt, ft] = React.useState(null), mt = useSize(pt), Ct = mt?.width ?? 0, Rt = mt?.height ?? 0, Mt = o + (s !== "center" ? "-" + s : ""), It = typeof S == "number" ? S : { top: 0, right: 0, bottom: 0, left: 0, ...S }, $t = Array.isArray(f) ? f : [f], yt = $t.length > 0, Dt = {
|
|
7303
7303
|
padding: It,
|
|
7304
|
-
boundary:
|
|
7304
|
+
boundary: $t.filter(isNotNull),
|
|
7305
7305
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
7306
7306
|
altBoundary: yt
|
|
7307
|
-
}, { refs:
|
|
7307
|
+
}, { refs: Ft, floatingStyles: Vt, placement: Wt, isPositioned: qt, middlewareData: zt } = useFloating({
|
|
7308
7308
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
7309
7309
|
strategy: "fixed",
|
|
7310
7310
|
placement: Mt,
|
|
@@ -7344,7 +7344,7 @@ var CONTENT_NAME$9 = "PopperContent", [PopperContentProvider, useContentContext]
|
|
|
7344
7344
|
}, [ct]), /* @__PURE__ */ jsx(
|
|
7345
7345
|
"div",
|
|
7346
7346
|
{
|
|
7347
|
-
ref:
|
|
7347
|
+
ref: Ft.setFloating,
|
|
7348
7348
|
"data-radix-popper-content-wrapper": "",
|
|
7349
7349
|
style: {
|
|
7350
7350
|
...Vt,
|
|
@@ -7621,7 +7621,7 @@ var CONTENT_NAME$8 = "MenuContent", [MenuContentProvider, useMenuContentContext]
|
|
|
7621
7621
|
onDismiss: I,
|
|
7622
7622
|
disableOutsideScroll: ot,
|
|
7623
7623
|
...lt
|
|
7624
|
-
} = e, at = useMenuContext(CONTENT_NAME$8, n), ct = useMenuRootContext(CONTENT_NAME$8, n), ut = usePopperScope$3(n), dt = useRovingFocusGroupScope$1(n), pt = useCollection$3(n), [ft, mt] = React.useState(null), Ct = React.useRef(null), Rt = useComposedRefs(t, Ct, at.onContentChange), Mt = React.useRef(0), It = React.useRef(""),
|
|
7624
|
+
} = e, at = useMenuContext(CONTENT_NAME$8, n), ct = useMenuRootContext(CONTENT_NAME$8, n), ut = usePopperScope$3(n), dt = useRovingFocusGroupScope$1(n), pt = useCollection$3(n), [ft, mt] = React.useState(null), Ct = React.useRef(null), Rt = useComposedRefs(t, Ct, at.onContentChange), Mt = React.useRef(0), It = React.useRef(""), $t = React.useRef(0), yt = React.useRef(null), Dt = React.useRef("right"), Ft = React.useRef(0), Vt = ot ? ReactRemoveScroll : React.Fragment, Wt = ot ? { as: Slot$3, allowPinchZoom: !0 } : void 0, qt = (Ht) => {
|
|
7625
7625
|
const Ut = It.current + Ht, nr = pt().filter((Yt) => !Yt.disabled), Zt = document.activeElement, sr = nr.find((Yt) => Yt.ref.current === Zt)?.textValue, dr = nr.map((Yt) => Yt.textValue), Jt = getNextMatch(dr, Ut, sr), hr = nr.find((Yt) => Yt.textValue === Jt)?.ref.current;
|
|
7626
7626
|
(function Yt(or) {
|
|
7627
7627
|
It.current = or, window.clearTimeout(Mt.current), or !== "" && (Mt.current = window.setTimeout(() => Yt(""), 1e3));
|
|
@@ -7652,7 +7652,7 @@ var CONTENT_NAME$8 = "MenuContent", [MenuContentProvider, useMenuContentContext]
|
|
|
7652
7652
|
},
|
|
7653
7653
|
[zt]
|
|
7654
7654
|
),
|
|
7655
|
-
pointerGraceTimerRef:
|
|
7655
|
+
pointerGraceTimerRef: $t,
|
|
7656
7656
|
onPointerGraceIntentChange: React.useCallback((Ht) => {
|
|
7657
7657
|
yt.current = Ht;
|
|
7658
7658
|
}, []),
|
|
@@ -7716,10 +7716,10 @@ var CONTENT_NAME$8 = "MenuContent", [MenuContentProvider, useMenuContentContext]
|
|
|
7716
7716
|
onPointerMove: composeEventHandlers(
|
|
7717
7717
|
e.onPointerMove,
|
|
7718
7718
|
whenMouse((Ht) => {
|
|
7719
|
-
const Ut = Ht.target, nr =
|
|
7719
|
+
const Ut = Ht.target, nr = Ft.current !== Ht.clientX;
|
|
7720
7720
|
if (Ht.currentTarget.contains(Ut) && nr) {
|
|
7721
|
-
const Zt = Ht.clientX >
|
|
7722
|
-
Dt.current = Zt,
|
|
7721
|
+
const Zt = Ht.clientX > Ft.current ? "right" : "left";
|
|
7722
|
+
Dt.current = Zt, Ft.current = Ht.clientX;
|
|
7723
7723
|
}
|
|
7724
7724
|
})
|
|
7725
7725
|
)
|
|
@@ -9441,16 +9441,16 @@ function enablePatches() {
|
|
|
9441
9441
|
const It = Ct?.[DRAFT_STATE$1];
|
|
9442
9442
|
if (It && It.modified_)
|
|
9443
9443
|
continue;
|
|
9444
|
-
const
|
|
9444
|
+
const $t = lt.concat([mt]);
|
|
9445
9445
|
at.push({
|
|
9446
9446
|
op: o,
|
|
9447
|
-
path:
|
|
9447
|
+
path: $t,
|
|
9448
9448
|
// Need to maybe clone it, as it can in fact be the original value
|
|
9449
9449
|
// due to the base/copy inversion at the start of this function
|
|
9450
9450
|
value: I(Ct)
|
|
9451
9451
|
}), ct.push({
|
|
9452
9452
|
op: o,
|
|
9453
|
-
path:
|
|
9453
|
+
path: $t,
|
|
9454
9454
|
value: I(Rt)
|
|
9455
9455
|
});
|
|
9456
9456
|
}
|
|
@@ -10591,8 +10591,8 @@ function buildCreateSlice({
|
|
|
10591
10591
|
const Rt = getOrInsertComputed$1(V, pt, () => /* @__PURE__ */ new WeakMap());
|
|
10592
10592
|
return getOrInsertComputed$1(Rt, Ct, () => {
|
|
10593
10593
|
const Mt = {};
|
|
10594
|
-
for (const [It,
|
|
10595
|
-
Mt[It] = wrapSelector(
|
|
10594
|
+
for (const [It, $t] of Object.entries(o.selectors ?? {}))
|
|
10595
|
+
Mt[It] = wrapSelector($t, Ct, () => getOrInsertComputed$1(I, Ct, at), pt);
|
|
10596
10596
|
return Mt;
|
|
10597
10597
|
});
|
|
10598
10598
|
}
|
|
@@ -11123,13 +11123,13 @@ function fetchBaseQuery({
|
|
|
11123
11123
|
responseHandler: Rt = d ?? "json",
|
|
11124
11124
|
validateStatus: Mt = f ?? defaultValidateStatus,
|
|
11125
11125
|
timeout: It = c,
|
|
11126
|
-
|
|
11126
|
+
...$t
|
|
11127
11127
|
} = typeof V == "string" ? {
|
|
11128
11128
|
url: V
|
|
11129
11129
|
} : V, yt = {
|
|
11130
11130
|
...S,
|
|
11131
11131
|
signal: It ? anySignal(I.signal, timeoutSignal(It)) : I.signal,
|
|
11132
|
-
|
|
11132
|
+
...$t
|
|
11133
11133
|
};
|
|
11134
11134
|
mt = new Headers(stripUndefined(mt)), yt.headers = await t(mt, {
|
|
11135
11135
|
getState: lt,
|
|
@@ -11146,13 +11146,13 @@ function fetchBaseQuery({
|
|
|
11146
11146
|
ft += Ut + nr;
|
|
11147
11147
|
}
|
|
11148
11148
|
ft = joinUrls(e, ft);
|
|
11149
|
-
const
|
|
11149
|
+
const Ft = new Request(ft, yt);
|
|
11150
11150
|
pt = {
|
|
11151
11151
|
request: new Request(ft, yt)
|
|
11152
11152
|
};
|
|
11153
11153
|
let Wt;
|
|
11154
11154
|
try {
|
|
11155
|
-
Wt = await n(
|
|
11155
|
+
Wt = await n(Ft);
|
|
11156
11156
|
} catch (Ut) {
|
|
11157
11157
|
return {
|
|
11158
11158
|
error: {
|
|
@@ -11294,10 +11294,10 @@ You must add the middleware for RTK-Query to function correctly!`);
|
|
|
11294
11294
|
const Ct = (Rt, {
|
|
11295
11295
|
subscribe: Mt = !0,
|
|
11296
11296
|
forceRefetch: It,
|
|
11297
|
-
subscriptionOptions:
|
|
11297
|
+
subscriptionOptions: $t,
|
|
11298
11298
|
[forceQueryFnSymbol]: yt,
|
|
11299
11299
|
...Dt
|
|
11300
|
-
} = {}) => (
|
|
11300
|
+
} = {}) => (Ft, Vt) => {
|
|
11301
11301
|
const Wt = e({
|
|
11302
11302
|
queryArgs: Rt,
|
|
11303
11303
|
endpointDefinition: mt,
|
|
@@ -11309,7 +11309,7 @@ You must add the middleware for RTK-Query to function correctly!`);
|
|
|
11309
11309
|
type: ENDPOINT_QUERY$1,
|
|
11310
11310
|
subscribe: Mt,
|
|
11311
11311
|
forceRefetch: It,
|
|
11312
|
-
subscriptionOptions:
|
|
11312
|
+
subscriptionOptions: $t,
|
|
11313
11313
|
endpointName: ft,
|
|
11314
11314
|
originalArgs: Rt,
|
|
11315
11315
|
queryCacheKey: Wt,
|
|
@@ -11332,12 +11332,12 @@ You must add the middleware for RTK-Query to function correctly!`);
|
|
|
11332
11332
|
refetchCachedPages: er
|
|
11333
11333
|
});
|
|
11334
11334
|
}
|
|
11335
|
-
const Ht = a.endpoints[ft].select(Rt), Ut =
|
|
11336
|
-
at(
|
|
11335
|
+
const Ht = a.endpoints[ft].select(Rt), Ut = Ft(qt), nr = Ht(Vt());
|
|
11336
|
+
at(Ft);
|
|
11337
11337
|
const {
|
|
11338
11338
|
requestId: Zt,
|
|
11339
11339
|
abort: sr
|
|
11340
|
-
} = Ut, dr = nr.requestId !== Zt, Jt = c(
|
|
11340
|
+
} = Ut, dr = nr.requestId !== Zt, Jt = c(Ft)?.get(Wt), hr = () => Ht(Vt()), Yt = Object.assign(yt ? (
|
|
11341
11341
|
// a query has been forced (upsertQueryData)
|
|
11342
11342
|
// -> we want to resolve it once data has been written with the data that will be written
|
|
11343
11343
|
Ut.then(hr)
|
|
@@ -11352,7 +11352,7 @@ You must add the middleware for RTK-Query to function correctly!`);
|
|
|
11352
11352
|
), {
|
|
11353
11353
|
arg: Rt,
|
|
11354
11354
|
requestId: Zt,
|
|
11355
|
-
subscriptionOptions:
|
|
11355
|
+
subscriptionOptions: $t,
|
|
11356
11356
|
queryCacheKey: Wt,
|
|
11357
11357
|
abort: sr,
|
|
11358
11358
|
async unwrap() {
|
|
@@ -11361,19 +11361,19 @@ You must add the middleware for RTK-Query to function correctly!`);
|
|
|
11361
11361
|
throw or.error;
|
|
11362
11362
|
return or.data;
|
|
11363
11363
|
},
|
|
11364
|
-
refetch: (or) =>
|
|
11364
|
+
refetch: (or) => Ft(Ct(Rt, {
|
|
11365
11365
|
subscribe: !1,
|
|
11366
11366
|
forceRefetch: !0,
|
|
11367
11367
|
...or
|
|
11368
11368
|
})),
|
|
11369
11369
|
unsubscribe() {
|
|
11370
|
-
Mt &&
|
|
11370
|
+
Mt && Ft(f({
|
|
11371
11371
|
queryCacheKey: Wt,
|
|
11372
11372
|
requestId: Zt
|
|
11373
11373
|
}));
|
|
11374
11374
|
},
|
|
11375
11375
|
updateSubscriptionOptions(or) {
|
|
11376
|
-
Yt.subscriptionOptions = or,
|
|
11376
|
+
Yt.subscriptionOptions = or, Ft(R({
|
|
11377
11377
|
endpointName: ft,
|
|
11378
11378
|
requestId: Zt,
|
|
11379
11379
|
queryCacheKey: Wt,
|
|
@@ -11382,7 +11382,7 @@ You must add the middleware for RTK-Query to function correctly!`);
|
|
|
11382
11382
|
}
|
|
11383
11383
|
});
|
|
11384
11384
|
if (!Jt && !dr && !yt) {
|
|
11385
|
-
const or = c(
|
|
11385
|
+
const or = c(Ft);
|
|
11386
11386
|
or.set(Wt, Yt), Yt.then(() => {
|
|
11387
11387
|
or.delete(Wt);
|
|
11388
11388
|
});
|
|
@@ -11402,17 +11402,17 @@ You must add the middleware for RTK-Query to function correctly!`);
|
|
|
11402
11402
|
track: Ct = !0,
|
|
11403
11403
|
fixedCacheKey: Rt
|
|
11404
11404
|
} = {}) => (Mt, It) => {
|
|
11405
|
-
const
|
|
11405
|
+
const $t = o({
|
|
11406
11406
|
type: "mutation",
|
|
11407
11407
|
endpointName: ft,
|
|
11408
11408
|
originalArgs: mt,
|
|
11409
11409
|
track: Ct,
|
|
11410
11410
|
fixedCacheKey: Rt
|
|
11411
|
-
}), yt = Mt(
|
|
11411
|
+
}), yt = Mt($t);
|
|
11412
11412
|
at(Mt);
|
|
11413
11413
|
const {
|
|
11414
11414
|
requestId: Dt,
|
|
11415
|
-
abort:
|
|
11415
|
+
abort: Ft,
|
|
11416
11416
|
unwrap: Vt
|
|
11417
11417
|
} = yt, Wt = asSafePromise(yt.unwrap().then((Ut) => ({
|
|
11418
11418
|
data: Ut
|
|
@@ -11426,7 +11426,7 @@ You must add the middleware for RTK-Query to function correctly!`);
|
|
|
11426
11426
|
}, zt = Object.assign(Wt, {
|
|
11427
11427
|
arg: yt.arg,
|
|
11428
11428
|
requestId: Dt,
|
|
11429
|
-
abort:
|
|
11429
|
+
abort: Ft,
|
|
11430
11430
|
unwrap: Vt,
|
|
11431
11431
|
reset: qt
|
|
11432
11432
|
}), Ht = d(Mt);
|
|
@@ -11470,18 +11470,18 @@ function buildThunks({
|
|
|
11470
11470
|
catchSchemaFailure: d,
|
|
11471
11471
|
skipSchemaValidation: f
|
|
11472
11472
|
}) {
|
|
11473
|
-
const S = (
|
|
11474
|
-
const qt = n[
|
|
11473
|
+
const S = ($t, yt, Dt, Ft) => (Vt, Wt) => {
|
|
11474
|
+
const qt = n[$t], zt = o({
|
|
11475
11475
|
queryArgs: yt,
|
|
11476
11476
|
endpointDefinition: qt,
|
|
11477
|
-
endpointName:
|
|
11477
|
+
endpointName: $t
|
|
11478
11478
|
});
|
|
11479
11479
|
if (Vt(a.internalActions.queryResultPatched({
|
|
11480
11480
|
queryCacheKey: zt,
|
|
11481
11481
|
patches: Dt
|
|
11482
|
-
})),
|
|
11482
|
+
})), !Ft)
|
|
11483
11483
|
return;
|
|
11484
|
-
const Ht = a.endpoints[
|
|
11484
|
+
const Ht = a.endpoints[$t].select(yt)(
|
|
11485
11485
|
// Work around TS 4.1 mismatch
|
|
11486
11486
|
Wt()
|
|
11487
11487
|
), Ut = calculateProvidedBy(qt.providesTags, Ht.data, void 0, yt, {}, s);
|
|
@@ -11490,22 +11490,22 @@ function buildThunks({
|
|
|
11490
11490
|
providedTags: Ut
|
|
11491
11491
|
}]));
|
|
11492
11492
|
};
|
|
11493
|
-
function R(
|
|
11494
|
-
const
|
|
11495
|
-
return Dt &&
|
|
11493
|
+
function R($t, yt, Dt = 0) {
|
|
11494
|
+
const Ft = [yt, ...$t];
|
|
11495
|
+
return Dt && Ft.length > Dt ? Ft.slice(0, -1) : Ft;
|
|
11496
11496
|
}
|
|
11497
|
-
function V(
|
|
11498
|
-
const
|
|
11499
|
-
return Dt &&
|
|
11497
|
+
function V($t, yt, Dt = 0) {
|
|
11498
|
+
const Ft = [...$t, yt];
|
|
11499
|
+
return Dt && Ft.length > Dt ? Ft.slice(1) : Ft;
|
|
11500
11500
|
}
|
|
11501
|
-
const I = (
|
|
11502
|
-
const zt = a.endpoints[
|
|
11501
|
+
const I = ($t, yt, Dt, Ft = !0) => (Vt, Wt) => {
|
|
11502
|
+
const zt = a.endpoints[$t].select(yt)(
|
|
11503
11503
|
// Work around TS 4.1 mismatch
|
|
11504
11504
|
Wt()
|
|
11505
11505
|
), Ht = {
|
|
11506
11506
|
patches: [],
|
|
11507
11507
|
inversePatches: [],
|
|
11508
|
-
undo: () => Vt(a.util.patchQueryData(
|
|
11508
|
+
undo: () => Vt(a.util.patchQueryData($t, yt, Ht.inversePatches, Ft))
|
|
11509
11509
|
};
|
|
11510
11510
|
if (zt.status === STATUS_UNINITIALIZED)
|
|
11511
11511
|
return Ht;
|
|
@@ -11524,26 +11524,26 @@ function buildThunks({
|
|
|
11524
11524
|
path: [],
|
|
11525
11525
|
value: zt.data
|
|
11526
11526
|
});
|
|
11527
|
-
return Ht.patches.length === 0 || Vt(a.util.patchQueryData(
|
|
11528
|
-
}, ot = (
|
|
11527
|
+
return Ht.patches.length === 0 || Vt(a.util.patchQueryData($t, yt, Ht.patches, Ft)), Ht;
|
|
11528
|
+
}, ot = ($t, yt, Dt) => (Ft) => Ft(a.endpoints[$t].initiate(yt, {
|
|
11529
11529
|
subscribe: !1,
|
|
11530
11530
|
forceRefetch: !0,
|
|
11531
11531
|
[forceQueryFnSymbol]: () => ({
|
|
11532
11532
|
data: Dt
|
|
11533
11533
|
})
|
|
11534
|
-
})), lt = (
|
|
11534
|
+
})), lt = ($t, yt) => $t.query && $t[yt] ? $t[yt] : defaultTransformResponse, at = async ($t, {
|
|
11535
11535
|
signal: yt,
|
|
11536
11536
|
abort: Dt,
|
|
11537
|
-
rejectWithValue:
|
|
11537
|
+
rejectWithValue: Ft,
|
|
11538
11538
|
fulfillWithValue: Vt,
|
|
11539
11539
|
dispatch: Wt,
|
|
11540
11540
|
getState: qt,
|
|
11541
11541
|
extra: zt
|
|
11542
11542
|
}) => {
|
|
11543
|
-
const Ht = n[
|
|
11543
|
+
const Ht = n[$t.endpointName], {
|
|
11544
11544
|
metaSchema: Ut,
|
|
11545
11545
|
skipSchemaValidation: nr = f
|
|
11546
|
-
} = Ht, Zt =
|
|
11546
|
+
} = Ht, Zt = $t.type === ENDPOINT_QUERY$1;
|
|
11547
11547
|
try {
|
|
11548
11548
|
let sr = defaultTransformResponse;
|
|
11549
11549
|
const dr = {
|
|
@@ -11552,11 +11552,11 @@ function buildThunks({
|
|
|
11552
11552
|
dispatch: Wt,
|
|
11553
11553
|
getState: qt,
|
|
11554
11554
|
extra: zt,
|
|
11555
|
-
endpoint:
|
|
11556
|
-
type:
|
|
11557
|
-
forced: Zt ? ct(
|
|
11558
|
-
queryCacheKey: Zt ?
|
|
11559
|
-
}, Jt = Zt ?
|
|
11555
|
+
endpoint: $t.endpointName,
|
|
11556
|
+
type: $t.type,
|
|
11557
|
+
forced: Zt ? ct($t, qt()) : void 0,
|
|
11558
|
+
queryCacheKey: Zt ? $t.queryCacheKey : void 0
|
|
11559
|
+
}, Jt = Zt ? $t[forceQueryFnSymbol] : void 0;
|
|
11560
11560
|
let hr;
|
|
11561
11561
|
const Yt = async (Qt, er, yr, Xt) => {
|
|
11562
11562
|
if (er == null && Qt.pages.length)
|
|
@@ -11564,7 +11564,7 @@ function buildThunks({
|
|
|
11564
11564
|
data: Qt
|
|
11565
11565
|
});
|
|
11566
11566
|
const xr = {
|
|
11567
|
-
queryArg:
|
|
11567
|
+
queryArg: $t.originalArgs,
|
|
11568
11568
|
pageParam: er
|
|
11569
11569
|
}, lr = await or(xr), ur = Xt ? R : V;
|
|
11570
11570
|
return {
|
|
@@ -11606,7 +11606,7 @@ function buildThunks({
|
|
|
11606
11606
|
Cr = `The object returned by ${Rr} has the unknown property ${Pr}.`;
|
|
11607
11607
|
break;
|
|
11608
11608
|
}
|
|
11609
|
-
Cr && console.error(`Error encountered handling the endpoint ${
|
|
11609
|
+
Cr && console.error(`Error encountered handling the endpoint ${$t.endpointName}.
|
|
11610
11610
|
${Cr}
|
|
11611
11611
|
It needs to return an object with either the shape \`{ data: <value> }\` or \`{ error: <value> }\` that may contain an optional \`meta\` property.
|
|
11612
11612
|
Object returned was:`, er);
|
|
@@ -11627,30 +11627,30 @@ function buildThunks({
|
|
|
11627
11627
|
infiniteQueryOptions: Qt
|
|
11628
11628
|
} = Ht, {
|
|
11629
11629
|
maxPages: er = 1 / 0
|
|
11630
|
-
} = Qt, yr =
|
|
11630
|
+
} = Qt, yr = $t.refetchCachedPages ?? Qt.refetchCachedPages ?? !0;
|
|
11631
11631
|
let Xt;
|
|
11632
11632
|
const xr = {
|
|
11633
11633
|
pages: [],
|
|
11634
11634
|
pageParams: []
|
|
11635
|
-
}, lr = l.selectQueryEntry(qt(),
|
|
11636
|
-
if ("direction" in
|
|
11637
|
-
const Rr =
|
|
11635
|
+
}, lr = l.selectQueryEntry(qt(), $t.queryCacheKey)?.data, Sr = /* arg.forceRefetch */ ct($t, qt()) && !$t.direction || !lr ? xr : lr;
|
|
11636
|
+
if ("direction" in $t && $t.direction && Sr.pages.length) {
|
|
11637
|
+
const Rr = $t.direction === "backward", Pr = (Rr ? getPreviousPageParam : getNextPageParam)(Qt, Sr, $t.originalArgs);
|
|
11638
11638
|
Xt = await Yt(Sr, Pr, er, Rr);
|
|
11639
11639
|
} else {
|
|
11640
11640
|
const {
|
|
11641
11641
|
initialPageParam: Rr = Qt.initialPageParam
|
|
11642
|
-
} =
|
|
11642
|
+
} = $t, Cr = lr?.pageParams ?? [], Pr = Cr[0] ?? Rr, _r = Cr.length;
|
|
11643
11643
|
if (Xt = await Yt(Sr, Pr, er), Jt && (Xt = {
|
|
11644
11644
|
data: Xt.data.pages[0]
|
|
11645
11645
|
}), yr)
|
|
11646
11646
|
for (let Kt = 1; Kt < _r; Kt++) {
|
|
11647
|
-
const ar = getNextPageParam(Qt, Xt.data,
|
|
11647
|
+
const ar = getNextPageParam(Qt, Xt.data, $t.originalArgs);
|
|
11648
11648
|
Xt = await Yt(Xt.data, ar, er);
|
|
11649
11649
|
}
|
|
11650
11650
|
}
|
|
11651
11651
|
hr = Xt;
|
|
11652
11652
|
} else
|
|
11653
|
-
hr = await or(
|
|
11653
|
+
hr = await or($t.originalArgs);
|
|
11654
11654
|
return Ut && !shouldSkip(nr, "meta") && hr.meta && (hr.meta = await parseWithSchema(Ut, hr.meta, "metaSchema", hr.meta)), Vt(hr.data, addShouldAutoBatch({
|
|
11655
11655
|
fulfilledTimeStamp: Date.now(),
|
|
11656
11656
|
baseQueryMeta: hr.meta
|
|
@@ -11669,8 +11669,8 @@ function buildThunks({
|
|
|
11669
11669
|
} = dr;
|
|
11670
11670
|
try {
|
|
11671
11671
|
hr && !shouldSkip(nr, "rawErrorResponse") && (or = await parseWithSchema(hr, or, "rawErrorResponseSchema", Qt)), Ut && !shouldSkip(nr, "meta") && (Qt = await parseWithSchema(Ut, Qt, "metaSchema", Qt));
|
|
11672
|
-
let er = await Jt(or, Qt,
|
|
11673
|
-
return Yt && !shouldSkip(nr, "errorResponse") && (er = await parseWithSchema(Yt, er, "errorResponseSchema", Qt)),
|
|
11672
|
+
let er = await Jt(or, Qt, $t.originalArgs);
|
|
11673
|
+
return Yt && !shouldSkip(nr, "errorResponse") && (er = await parseWithSchema(Yt, er, "errorResponseSchema", Qt)), Ft(er, addShouldAutoBatch({
|
|
11674
11674
|
baseQueryMeta: Qt
|
|
11675
11675
|
}));
|
|
11676
11676
|
} catch (er) {
|
|
@@ -11680,29 +11680,29 @@ function buildThunks({
|
|
|
11680
11680
|
try {
|
|
11681
11681
|
if (dr instanceof NamedSchemaError) {
|
|
11682
11682
|
const Jt = {
|
|
11683
|
-
endpoint:
|
|
11684
|
-
arg:
|
|
11685
|
-
type:
|
|
11686
|
-
queryCacheKey: Zt ?
|
|
11683
|
+
endpoint: $t.endpointName,
|
|
11684
|
+
arg: $t.originalArgs,
|
|
11685
|
+
type: $t.type,
|
|
11686
|
+
queryCacheKey: Zt ? $t.queryCacheKey : void 0
|
|
11687
11687
|
};
|
|
11688
11688
|
Ht.onSchemaFailure?.(dr, Jt), c?.(dr, Jt);
|
|
11689
11689
|
const {
|
|
11690
11690
|
catchSchemaFailure: hr = d
|
|
11691
11691
|
} = Ht;
|
|
11692
11692
|
if (hr)
|
|
11693
|
-
return
|
|
11693
|
+
return Ft(hr(dr, Jt), addShouldAutoBatch({
|
|
11694
11694
|
baseQueryMeta: dr._bqMeta
|
|
11695
11695
|
}));
|
|
11696
11696
|
}
|
|
11697
11697
|
} catch (Jt) {
|
|
11698
11698
|
dr = Jt;
|
|
11699
11699
|
}
|
|
11700
|
-
throw typeof process < "u" && process.env.NODE_ENV !== "production" ? console.error(`An unhandled error occurred processing a request for the endpoint "${
|
|
11700
|
+
throw typeof process < "u" && process.env.NODE_ENV !== "production" ? console.error(`An unhandled error occurred processing a request for the endpoint "${$t.endpointName}".
|
|
11701
11701
|
In the case of an unhandled error, no tags will be "provided" or "invalidated".`, dr) : console.error(dr), dr;
|
|
11702
11702
|
}
|
|
11703
11703
|
};
|
|
11704
|
-
function ct(
|
|
11705
|
-
const Dt = l.selectQueryEntry(yt,
|
|
11704
|
+
function ct($t, yt) {
|
|
11705
|
+
const Dt = l.selectQueryEntry(yt, $t.queryCacheKey), Ft = l.selectConfig(yt).refetchOnMountOrArgChange, Vt = Dt?.fulfilledTimeStamp, Wt = $t.forceRefetch ?? ($t.subscribe && Ft);
|
|
11706
11706
|
return Wt ? Wt === !0 || (Number(/* @__PURE__ */ new Date()) - Number(Vt)) / 1e3 >= Wt : !1;
|
|
11707
11707
|
}
|
|
11708
11708
|
const ut = () => createAsyncThunk(`${e}/executeQuery`, at, {
|
|
@@ -11720,12 +11720,12 @@ In the case of an unhandled error, no tags will be "provided" or "invalidated".`
|
|
|
11720
11720
|
condition(yt, {
|
|
11721
11721
|
getState: Dt
|
|
11722
11722
|
}) {
|
|
11723
|
-
const
|
|
11724
|
-
return isUpsertQuery(yt) ? !0 : Vt?.status === "pending" ? !1 : ct(yt,
|
|
11723
|
+
const Ft = Dt(), Vt = l.selectQueryEntry(Ft, yt.queryCacheKey), Wt = Vt?.fulfilledTimeStamp, qt = yt.originalArgs, zt = Vt?.originalArgs, Ht = n[yt.endpointName], Ut = yt.direction;
|
|
11724
|
+
return isUpsertQuery(yt) ? !0 : Vt?.status === "pending" ? !1 : ct(yt, Ft) || isQueryDefinition$1(Ht) && Ht?.forceRefetch?.({
|
|
11725
11725
|
currentArg: qt,
|
|
11726
11726
|
previousArg: zt,
|
|
11727
11727
|
endpointState: Vt,
|
|
11728
|
-
state:
|
|
11728
|
+
state: Ft
|
|
11729
11729
|
}) ? !0 : !(Wt && !Ut);
|
|
11730
11730
|
},
|
|
11731
11731
|
dispatchConditionRejection: !0
|
|
@@ -11735,34 +11735,34 @@ In the case of an unhandled error, no tags will be "provided" or "invalidated".`
|
|
|
11735
11735
|
startedTimeStamp: Date.now()
|
|
11736
11736
|
});
|
|
11737
11737
|
}
|
|
11738
|
-
}), mt = (
|
|
11738
|
+
}), mt = ($t) => "force" in $t, Ct = ($t) => "ifOlderThan" in $t, Rt = ($t, yt, Dt = {}) => (Ft, Vt) => {
|
|
11739
11739
|
const Wt = mt(Dt) && Dt.force, qt = Ct(Dt) && Dt.ifOlderThan, zt = (Ut = !0) => {
|
|
11740
11740
|
const nr = {
|
|
11741
11741
|
forceRefetch: Ut,
|
|
11742
11742
|
subscribe: !1
|
|
11743
11743
|
};
|
|
11744
|
-
return a.endpoints[
|
|
11745
|
-
}, Ht = a.endpoints[
|
|
11744
|
+
return a.endpoints[$t].initiate(yt, nr);
|
|
11745
|
+
}, Ht = a.endpoints[$t].select(yt)(Vt());
|
|
11746
11746
|
if (Wt)
|
|
11747
|
-
|
|
11747
|
+
Ft(zt());
|
|
11748
11748
|
else if (qt) {
|
|
11749
11749
|
const Ut = Ht?.fulfilledTimeStamp;
|
|
11750
11750
|
if (!Ut) {
|
|
11751
|
-
|
|
11751
|
+
Ft(zt());
|
|
11752
11752
|
return;
|
|
11753
11753
|
}
|
|
11754
|
-
(Number(/* @__PURE__ */ new Date()) - Number(new Date(Ut))) / 1e3 >= qt &&
|
|
11754
|
+
(Number(/* @__PURE__ */ new Date()) - Number(new Date(Ut))) / 1e3 >= qt && Ft(zt());
|
|
11755
11755
|
} else
|
|
11756
|
-
|
|
11756
|
+
Ft(zt(!1));
|
|
11757
11757
|
};
|
|
11758
|
-
function Mt(
|
|
11759
|
-
return (yt) => yt?.meta?.arg?.endpointName ===
|
|
11758
|
+
function Mt($t) {
|
|
11759
|
+
return (yt) => yt?.meta?.arg?.endpointName === $t;
|
|
11760
11760
|
}
|
|
11761
|
-
function It(
|
|
11761
|
+
function It($t, yt) {
|
|
11762
11762
|
return {
|
|
11763
|
-
matchPending: isAllOf(isPending(
|
|
11764
|
-
matchFulfilled: isAllOf(isFulfilled(
|
|
11765
|
-
matchRejected: isAllOf(isRejected(
|
|
11763
|
+
matchPending: isAllOf(isPending($t), Mt(yt)),
|
|
11764
|
+
matchFulfilled: isAllOf(isFulfilled($t), Mt(yt)),
|
|
11765
|
+
matchRejected: isAllOf(isRejected($t), Mt(yt))
|
|
11766
11766
|
};
|
|
11767
11767
|
}
|
|
11768
11768
|
return {
|
|
@@ -11822,29 +11822,29 @@ function buildSlice({
|
|
|
11822
11822
|
config: f
|
|
11823
11823
|
}) {
|
|
11824
11824
|
const S = createAction(`${e}/resetApiState`);
|
|
11825
|
-
function R(Mt, It,
|
|
11825
|
+
function R(Mt, It, $t, yt) {
|
|
11826
11826
|
Mt[It.queryCacheKey] ??= {
|
|
11827
11827
|
status: STATUS_UNINITIALIZED,
|
|
11828
11828
|
endpointName: It.endpointName
|
|
11829
11829
|
}, updateQuerySubstateIfExists(Mt, It.queryCacheKey, (Dt) => {
|
|
11830
|
-
Dt.status = STATUS_PENDING, Dt.requestId =
|
|
11830
|
+
Dt.status = STATUS_PENDING, Dt.requestId = $t && Dt.requestId ? (
|
|
11831
11831
|
// for `upsertQuery` **updates**, keep the current `requestId`
|
|
11832
11832
|
Dt.requestId
|
|
11833
11833
|
) : (
|
|
11834
11834
|
// for normal queries or `upsertQuery` **inserts** always update the `requestId`
|
|
11835
11835
|
yt.requestId
|
|
11836
11836
|
), It.originalArgs !== void 0 && (Dt.originalArgs = It.originalArgs), Dt.startedTimeStamp = yt.startedTimeStamp;
|
|
11837
|
-
const
|
|
11838
|
-
isInfiniteQueryDefinition$1(
|
|
11837
|
+
const Ft = a[yt.arg.endpointName];
|
|
11838
|
+
isInfiniteQueryDefinition$1(Ft) && "direction" in It && (Dt.direction = It.direction);
|
|
11839
11839
|
});
|
|
11840
11840
|
}
|
|
11841
|
-
function V(Mt, It,
|
|
11841
|
+
function V(Mt, It, $t, yt) {
|
|
11842
11842
|
updateQuerySubstateIfExists(Mt, It.arg.queryCacheKey, (Dt) => {
|
|
11843
11843
|
if (Dt.requestId !== It.requestId && !yt) return;
|
|
11844
11844
|
const {
|
|
11845
|
-
merge:
|
|
11845
|
+
merge: Ft
|
|
11846
11846
|
} = a[It.arg.endpointName];
|
|
11847
|
-
if (Dt.status = STATUS_FULFILLED,
|
|
11847
|
+
if (Dt.status = STATUS_FULFILLED, Ft)
|
|
11848
11848
|
if (Dt.data !== void 0) {
|
|
11849
11849
|
const {
|
|
11850
11850
|
fulfilledTimeStamp: Vt,
|
|
@@ -11852,7 +11852,7 @@ function buildSlice({
|
|
|
11852
11852
|
baseQueryMeta: qt,
|
|
11853
11853
|
requestId: zt
|
|
11854
11854
|
} = It;
|
|
11855
|
-
let Ht = produce(Dt.data, (Ut) =>
|
|
11855
|
+
let Ht = produce(Dt.data, (Ut) => Ft(Ut, $t, {
|
|
11856
11856
|
arg: Wt.originalArgs,
|
|
11857
11857
|
baseQueryMeta: qt,
|
|
11858
11858
|
fulfilledTimeStamp: Vt,
|
|
@@ -11860,9 +11860,9 @@ function buildSlice({
|
|
|
11860
11860
|
}));
|
|
11861
11861
|
Dt.data = Ht;
|
|
11862
11862
|
} else
|
|
11863
|
-
Dt.data =
|
|
11863
|
+
Dt.data = $t;
|
|
11864
11864
|
else
|
|
11865
|
-
Dt.data = a[It.arg.endpointName].structuralSharing ?? !0 ? copyWithStructuralSharing(isDraft$1(Dt.data) ? original(Dt.data) : Dt.data,
|
|
11865
|
+
Dt.data = a[It.arg.endpointName].structuralSharing ?? !0 ? copyWithStructuralSharing(isDraft$1(Dt.data) ? original(Dt.data) : Dt.data, $t) : $t;
|
|
11866
11866
|
delete Dt.error, Dt.fulfilledTimeStamp = It.fulfilledTimeStamp;
|
|
11867
11867
|
});
|
|
11868
11868
|
}
|
|
@@ -11882,11 +11882,11 @@ function buildSlice({
|
|
|
11882
11882
|
},
|
|
11883
11883
|
cacheEntriesUpserted: {
|
|
11884
11884
|
reducer(Mt, It) {
|
|
11885
|
-
for (const
|
|
11885
|
+
for (const $t of It.payload) {
|
|
11886
11886
|
const {
|
|
11887
11887
|
queryDescription: yt,
|
|
11888
11888
|
value: Dt
|
|
11889
|
-
} =
|
|
11889
|
+
} = $t;
|
|
11890
11890
|
R(Mt, yt, !0, {
|
|
11891
11891
|
arg: yt,
|
|
11892
11892
|
requestId: It.meta.requestId,
|
|
@@ -11909,7 +11909,7 @@ function buildSlice({
|
|
|
11909
11909
|
payload: Mt.map((yt) => {
|
|
11910
11910
|
const {
|
|
11911
11911
|
endpointName: Dt,
|
|
11912
|
-
arg:
|
|
11912
|
+
arg: Ft,
|
|
11913
11913
|
value: Vt
|
|
11914
11914
|
} = yt, Wt = a[Dt];
|
|
11915
11915
|
return {
|
|
@@ -11918,7 +11918,7 @@ function buildSlice({
|
|
|
11918
11918
|
endpointName: Dt,
|
|
11919
11919
|
originalArgs: yt.arg,
|
|
11920
11920
|
queryCacheKey: o({
|
|
11921
|
-
queryArgs:
|
|
11921
|
+
queryArgs: Ft,
|
|
11922
11922
|
endpointDefinition: Wt,
|
|
11923
11923
|
endpointName: Dt
|
|
11924
11924
|
})
|
|
@@ -11937,11 +11937,11 @@ function buildSlice({
|
|
|
11937
11937
|
reducer(Mt, {
|
|
11938
11938
|
payload: {
|
|
11939
11939
|
queryCacheKey: It,
|
|
11940
|
-
patches:
|
|
11940
|
+
patches: $t
|
|
11941
11941
|
}
|
|
11942
11942
|
}) {
|
|
11943
11943
|
updateQuerySubstateIfExists(Mt, It, (yt) => {
|
|
11944
|
-
yt.data = applyPatches(yt.data,
|
|
11944
|
+
yt.data = applyPatches(yt.data, $t.concat());
|
|
11945
11945
|
});
|
|
11946
11946
|
},
|
|
11947
11947
|
prepare: prepareAutoBatched()
|
|
@@ -11949,41 +11949,41 @@ function buildSlice({
|
|
|
11949
11949
|
},
|
|
11950
11950
|
extraReducers(Mt) {
|
|
11951
11951
|
Mt.addCase(t.pending, (It, {
|
|
11952
|
-
meta:
|
|
11952
|
+
meta: $t,
|
|
11953
11953
|
meta: {
|
|
11954
11954
|
arg: yt
|
|
11955
11955
|
}
|
|
11956
11956
|
}) => {
|
|
11957
11957
|
const Dt = isUpsertQuery(yt);
|
|
11958
|
-
R(It, yt, Dt,
|
|
11958
|
+
R(It, yt, Dt, $t);
|
|
11959
11959
|
}).addCase(t.fulfilled, (It, {
|
|
11960
|
-
meta:
|
|
11960
|
+
meta: $t,
|
|
11961
11961
|
payload: yt
|
|
11962
11962
|
}) => {
|
|
11963
|
-
const Dt = isUpsertQuery(
|
|
11964
|
-
V(It,
|
|
11963
|
+
const Dt = isUpsertQuery($t.arg);
|
|
11964
|
+
V(It, $t, yt, Dt);
|
|
11965
11965
|
}).addCase(t.rejected, (It, {
|
|
11966
11966
|
meta: {
|
|
11967
|
-
condition:
|
|
11967
|
+
condition: $t,
|
|
11968
11968
|
arg: yt,
|
|
11969
11969
|
requestId: Dt
|
|
11970
11970
|
},
|
|
11971
|
-
error:
|
|
11971
|
+
error: Ft,
|
|
11972
11972
|
payload: Vt
|
|
11973
11973
|
}) => {
|
|
11974
11974
|
updateQuerySubstateIfExists(It, yt.queryCacheKey, (Wt) => {
|
|
11975
|
-
if (
|
|
11975
|
+
if (!$t) {
|
|
11976
11976
|
if (Wt.requestId !== Dt) return;
|
|
11977
|
-
Wt.status = STATUS_REJECTED, Wt.error = Vt ??
|
|
11977
|
+
Wt.status = STATUS_REJECTED, Wt.error = Vt ?? Ft;
|
|
11978
11978
|
}
|
|
11979
11979
|
});
|
|
11980
|
-
}).addMatcher(c, (It,
|
|
11980
|
+
}).addMatcher(c, (It, $t) => {
|
|
11981
11981
|
const {
|
|
11982
11982
|
queries: yt
|
|
11983
|
-
} = l(
|
|
11984
|
-
for (const [Dt,
|
|
11983
|
+
} = l($t);
|
|
11984
|
+
for (const [Dt, Ft] of Object.entries(yt))
|
|
11985
11985
|
// do not rehydrate entries that were currently in flight.
|
|
11986
|
-
(
|
|
11986
|
+
(Ft?.status === STATUS_FULFILLED || Ft?.status === STATUS_REJECTED) && (It[Dt] = Ft);
|
|
11987
11987
|
});
|
|
11988
11988
|
}
|
|
11989
11989
|
}), ot = createSlice({
|
|
@@ -11994,50 +11994,50 @@ function buildSlice({
|
|
|
11994
11994
|
reducer(Mt, {
|
|
11995
11995
|
payload: It
|
|
11996
11996
|
}) {
|
|
11997
|
-
const
|
|
11998
|
-
|
|
11997
|
+
const $t = getMutationCacheKey(It);
|
|
11998
|
+
$t in Mt && delete Mt[$t];
|
|
11999
11999
|
},
|
|
12000
12000
|
prepare: prepareAutoBatched()
|
|
12001
12001
|
}
|
|
12002
12002
|
},
|
|
12003
12003
|
extraReducers(Mt) {
|
|
12004
12004
|
Mt.addCase(n.pending, (It, {
|
|
12005
|
-
meta:
|
|
12005
|
+
meta: $t,
|
|
12006
12006
|
meta: {
|
|
12007
12007
|
requestId: yt,
|
|
12008
12008
|
arg: Dt,
|
|
12009
|
-
startedTimeStamp:
|
|
12009
|
+
startedTimeStamp: Ft
|
|
12010
12010
|
}
|
|
12011
12011
|
}) => {
|
|
12012
|
-
Dt.track && (It[getMutationCacheKey(
|
|
12012
|
+
Dt.track && (It[getMutationCacheKey($t)] = {
|
|
12013
12013
|
requestId: yt,
|
|
12014
12014
|
status: STATUS_PENDING,
|
|
12015
12015
|
endpointName: Dt.endpointName,
|
|
12016
|
-
startedTimeStamp:
|
|
12016
|
+
startedTimeStamp: Ft
|
|
12017
12017
|
});
|
|
12018
12018
|
}).addCase(n.fulfilled, (It, {
|
|
12019
|
-
payload:
|
|
12019
|
+
payload: $t,
|
|
12020
12020
|
meta: yt
|
|
12021
12021
|
}) => {
|
|
12022
12022
|
yt.arg.track && updateMutationSubstateIfExists(It, yt, (Dt) => {
|
|
12023
|
-
Dt.requestId === yt.requestId && (Dt.status = STATUS_FULFILLED, Dt.data =
|
|
12023
|
+
Dt.requestId === yt.requestId && (Dt.status = STATUS_FULFILLED, Dt.data = $t, Dt.fulfilledTimeStamp = yt.fulfilledTimeStamp);
|
|
12024
12024
|
});
|
|
12025
12025
|
}).addCase(n.rejected, (It, {
|
|
12026
|
-
payload:
|
|
12026
|
+
payload: $t,
|
|
12027
12027
|
error: yt,
|
|
12028
12028
|
meta: Dt
|
|
12029
12029
|
}) => {
|
|
12030
|
-
Dt.arg.track && updateMutationSubstateIfExists(It, Dt, (
|
|
12031
|
-
|
|
12030
|
+
Dt.arg.track && updateMutationSubstateIfExists(It, Dt, (Ft) => {
|
|
12031
|
+
Ft.requestId === Dt.requestId && (Ft.status = STATUS_REJECTED, Ft.error = $t ?? yt);
|
|
12032
12032
|
});
|
|
12033
|
-
}).addMatcher(c, (It,
|
|
12033
|
+
}).addMatcher(c, (It, $t) => {
|
|
12034
12034
|
const {
|
|
12035
12035
|
mutations: yt
|
|
12036
|
-
} = l(
|
|
12037
|
-
for (const [Dt,
|
|
12036
|
+
} = l($t);
|
|
12037
|
+
for (const [Dt, Ft] of Object.entries(yt))
|
|
12038
12038
|
// do not rehydrate entries that were currently in flight.
|
|
12039
|
-
(
|
|
12040
|
-
Dt !==
|
|
12039
|
+
(Ft?.status === STATUS_FULFILLED || Ft?.status === STATUS_REJECTED) && // only rehydrate endpoints that were persisted using a `fixedCacheKey`
|
|
12040
|
+
Dt !== Ft?.requestId && (It[Dt] = Ft);
|
|
12041
12041
|
});
|
|
12042
12042
|
}
|
|
12043
12043
|
}), lt = {
|
|
@@ -12050,18 +12050,18 @@ function buildSlice({
|
|
|
12050
12050
|
updateProvidedBy: {
|
|
12051
12051
|
reducer(Mt, It) {
|
|
12052
12052
|
for (const {
|
|
12053
|
-
queryCacheKey:
|
|
12053
|
+
queryCacheKey: $t,
|
|
12054
12054
|
providedTags: yt
|
|
12055
12055
|
} of It.payload) {
|
|
12056
|
-
ct(Mt,
|
|
12056
|
+
ct(Mt, $t);
|
|
12057
12057
|
for (const {
|
|
12058
12058
|
type: Dt,
|
|
12059
|
-
id:
|
|
12059
|
+
id: Ft
|
|
12060
12060
|
} of yt) {
|
|
12061
|
-
const Vt = (Mt.tags[Dt] ??= {})[
|
|
12062
|
-
Vt.includes(
|
|
12061
|
+
const Vt = (Mt.tags[Dt] ??= {})[Ft || "__internal_without_id"] ??= [];
|
|
12062
|
+
Vt.includes($t) || Vt.push($t);
|
|
12063
12063
|
}
|
|
12064
|
-
Mt.keys[
|
|
12064
|
+
Mt.keys[$t] = yt;
|
|
12065
12065
|
}
|
|
12066
12066
|
},
|
|
12067
12067
|
prepare: prepareAutoBatched()
|
|
@@ -12070,29 +12070,29 @@ function buildSlice({
|
|
|
12070
12070
|
extraReducers(Mt) {
|
|
12071
12071
|
Mt.addCase(I.actions.removeQueryResult, (It, {
|
|
12072
12072
|
payload: {
|
|
12073
|
-
queryCacheKey:
|
|
12073
|
+
queryCacheKey: $t
|
|
12074
12074
|
}
|
|
12075
12075
|
}) => {
|
|
12076
|
-
ct(It,
|
|
12077
|
-
}).addMatcher(c, (It,
|
|
12076
|
+
ct(It, $t);
|
|
12077
|
+
}).addMatcher(c, (It, $t) => {
|
|
12078
12078
|
const {
|
|
12079
12079
|
provided: yt
|
|
12080
|
-
} = l(
|
|
12081
|
-
for (const [Dt,
|
|
12082
|
-
for (const [Vt, Wt] of Object.entries(
|
|
12080
|
+
} = l($t);
|
|
12081
|
+
for (const [Dt, Ft] of Object.entries(yt.tags ?? {}))
|
|
12082
|
+
for (const [Vt, Wt] of Object.entries(Ft)) {
|
|
12083
12083
|
const qt = (It.tags[Dt] ??= {})[Vt || "__internal_without_id"] ??= [];
|
|
12084
12084
|
for (const zt of Wt)
|
|
12085
12085
|
qt.includes(zt) || qt.push(zt), It.keys[zt] = yt.keys[zt];
|
|
12086
12086
|
}
|
|
12087
|
-
}).addMatcher(isAnyOf(isFulfilled(t), isRejectedWithValue(t)), (It,
|
|
12088
|
-
ut(It, [
|
|
12089
|
-
}).addMatcher(I.actions.cacheEntriesUpserted.match, (It,
|
|
12090
|
-
const yt =
|
|
12087
|
+
}).addMatcher(isAnyOf(isFulfilled(t), isRejectedWithValue(t)), (It, $t) => {
|
|
12088
|
+
ut(It, [$t]);
|
|
12089
|
+
}).addMatcher(I.actions.cacheEntriesUpserted.match, (It, $t) => {
|
|
12090
|
+
const yt = $t.payload.map(({
|
|
12091
12091
|
queryDescription: Dt,
|
|
12092
|
-
value:
|
|
12092
|
+
value: Ft
|
|
12093
12093
|
}) => ({
|
|
12094
12094
|
type: "UNKNOWN",
|
|
12095
|
-
payload:
|
|
12095
|
+
payload: Ft,
|
|
12096
12096
|
meta: {
|
|
12097
12097
|
requestStatus: "fulfilled",
|
|
12098
12098
|
requestId: "UNKNOWN",
|
|
@@ -12104,24 +12104,24 @@ function buildSlice({
|
|
|
12104
12104
|
}
|
|
12105
12105
|
});
|
|
12106
12106
|
function ct(Mt, It) {
|
|
12107
|
-
const
|
|
12108
|
-
for (const yt of
|
|
12109
|
-
const Dt = yt.type,
|
|
12110
|
-
Vt && (Mt.tags[Dt][
|
|
12107
|
+
const $t = getCurrent(Mt.keys[It] ?? []);
|
|
12108
|
+
for (const yt of $t) {
|
|
12109
|
+
const Dt = yt.type, Ft = yt.id ?? "__internal_without_id", Vt = Mt.tags[Dt]?.[Ft];
|
|
12110
|
+
Vt && (Mt.tags[Dt][Ft] = getCurrent(Vt).filter((Wt) => Wt !== It));
|
|
12111
12111
|
}
|
|
12112
12112
|
delete Mt.keys[It];
|
|
12113
12113
|
}
|
|
12114
12114
|
function ut(Mt, It) {
|
|
12115
|
-
const
|
|
12115
|
+
const $t = It.map((yt) => {
|
|
12116
12116
|
const Dt = calculateProvidedByThunk(yt, "providesTags", a, d), {
|
|
12117
|
-
queryCacheKey:
|
|
12117
|
+
queryCacheKey: Ft
|
|
12118
12118
|
} = yt.meta.arg;
|
|
12119
12119
|
return {
|
|
12120
|
-
queryCacheKey:
|
|
12120
|
+
queryCacheKey: Ft,
|
|
12121
12121
|
providedTags: Dt
|
|
12122
12122
|
};
|
|
12123
12123
|
});
|
|
12124
|
-
at.caseReducers.updateProvidedBy(Mt, at.actions.updateProvidedBy(
|
|
12124
|
+
at.caseReducers.updateProvidedBy(Mt, at.actions.updateProvidedBy($t));
|
|
12125
12125
|
}
|
|
12126
12126
|
const dt = createSlice({
|
|
12127
12127
|
name: `${e}/subscriptions`,
|
|
@@ -12268,8 +12268,8 @@ function buildSelectors({
|
|
|
12268
12268
|
}, {
|
|
12269
12269
|
isLoading: Mt,
|
|
12270
12270
|
isError: It,
|
|
12271
|
-
direction:
|
|
12272
|
-
} = Rt, yt =
|
|
12271
|
+
direction: $t
|
|
12272
|
+
} = Rt, yt = $t === "forward", Dt = $t === "backward";
|
|
12273
12273
|
return {
|
|
12274
12274
|
...Rt,
|
|
12275
12275
|
hasNextPage: ct(ft, Rt.data, Rt.originalArgs),
|
|
@@ -12301,8 +12301,8 @@ function buildSelectors({
|
|
|
12301
12301
|
// no id: invalidate all queries that provide this type
|
|
12302
12302
|
Object.values(Mt).flat()
|
|
12303
12303
|
)) ?? [];
|
|
12304
|
-
for (const
|
|
12305
|
-
mt.add(
|
|
12304
|
+
for (const $t of It)
|
|
12305
|
+
mt.add($t);
|
|
12306
12306
|
}
|
|
12307
12307
|
return Array.from(mt.values()).flatMap((Rt) => {
|
|
12308
12308
|
const Mt = ft.queries[Rt];
|
|
@@ -12589,8 +12589,8 @@ var buildBatchedActionsHandler = ({
|
|
|
12589
12589
|
const It = ot[dt];
|
|
12590
12590
|
It && clearTimeout(It), ot[dt] = setTimeout(() => {
|
|
12591
12591
|
if (!I(dt)) {
|
|
12592
|
-
const
|
|
12593
|
-
|
|
12592
|
+
const $t = s(ft.getState(), dt);
|
|
12593
|
+
$t?.endpointName && ft.dispatch(c($t.endpointName, $t.originalArgs))?.abort(), ft.dispatch(f({
|
|
12594
12594
|
queryCacheKey: dt
|
|
12595
12595
|
}));
|
|
12596
12596
|
}
|
|
@@ -12639,29 +12639,29 @@ var buildBatchedActionsHandler = ({
|
|
|
12639
12639
|
}
|
|
12640
12640
|
const ut = (ft, mt, Ct) => {
|
|
12641
12641
|
const Rt = dt(ft);
|
|
12642
|
-
function Mt(It,
|
|
12643
|
-
const
|
|
12644
|
-
|
|
12642
|
+
function Mt(It, $t, yt, Dt) {
|
|
12643
|
+
const Ft = l(Ct, $t), Vt = l(mt.getState(), $t);
|
|
12644
|
+
!Ft && Vt && pt(It, Dt, $t, mt, yt);
|
|
12645
12645
|
}
|
|
12646
12646
|
if (o.pending.match(ft)) {
|
|
12647
|
-
const [It,
|
|
12648
|
-
Mt(It, Rt, yt,
|
|
12647
|
+
const [It, $t, yt] = ct(ft);
|
|
12648
|
+
Mt(It, Rt, yt, $t);
|
|
12649
12649
|
} else if (ot.match(ft))
|
|
12650
12650
|
for (const {
|
|
12651
12651
|
queryDescription: It,
|
|
12652
|
-
value:
|
|
12652
|
+
value: $t
|
|
12653
12653
|
} of ft.payload) {
|
|
12654
12654
|
const {
|
|
12655
12655
|
endpointName: yt,
|
|
12656
12656
|
originalArgs: Dt,
|
|
12657
|
-
queryCacheKey:
|
|
12657
|
+
queryCacheKey: Ft
|
|
12658
12658
|
} = It;
|
|
12659
|
-
Mt(yt,
|
|
12659
|
+
Mt(yt, Ft, ft.meta.requestId, Dt), lt(Ft, $t, {});
|
|
12660
12660
|
}
|
|
12661
12661
|
else if (a.pending.match(ft)) {
|
|
12662
12662
|
if (mt.getState()[t].mutations[Rt]) {
|
|
12663
|
-
const [
|
|
12664
|
-
pt(
|
|
12663
|
+
const [$t, yt, Dt] = ct(ft);
|
|
12664
|
+
pt($t, yt, Rt, mt, Dt);
|
|
12665
12665
|
}
|
|
12666
12666
|
} else if (S(ft))
|
|
12667
12667
|
lt(Rt, ft.payload, ft.meta.baseQueryMeta);
|
|
@@ -12675,16 +12675,16 @@ var buildBatchedActionsHandler = ({
|
|
|
12675
12675
|
return d(ft) ? ft.meta.arg.queryCacheKey : f(ft) ? ft.meta.arg.fixedCacheKey ?? ft.meta.requestId : V.match(ft) ? ft.payload.queryCacheKey : I.match(ft) ? getMutationCacheKey(ft.payload) : "";
|
|
12676
12676
|
}
|
|
12677
12677
|
function pt(ft, mt, Ct, Rt, Mt) {
|
|
12678
|
-
const It = getEndpointDefinition(n, ft),
|
|
12679
|
-
if (
|
|
12678
|
+
const It = getEndpointDefinition(n, ft), $t = It?.onCacheEntryAdded;
|
|
12679
|
+
if (!$t) return;
|
|
12680
12680
|
const yt = {}, Dt = new Promise((Ht) => {
|
|
12681
12681
|
yt.cacheEntryRemoved = Ht;
|
|
12682
|
-
}),
|
|
12682
|
+
}), Ft = Promise.race([new Promise((Ht) => {
|
|
12683
12683
|
yt.valueResolved = Ht;
|
|
12684
12684
|
}), Dt.then(() => {
|
|
12685
12685
|
throw neverResolvedError;
|
|
12686
12686
|
})]);
|
|
12687
|
-
|
|
12687
|
+
Ft.catch(() => {
|
|
12688
12688
|
}), R[Ct] = yt;
|
|
12689
12689
|
const Vt = e.endpoints[ft].select(isAnyQueryDefinition(It) ? mt : Ct), Wt = Rt.dispatch((Ht, Ut, nr) => nr), qt = {
|
|
12690
12690
|
...Rt,
|
|
@@ -12692,9 +12692,9 @@ var buildBatchedActionsHandler = ({
|
|
|
12692
12692
|
requestId: Mt,
|
|
12693
12693
|
extra: Wt,
|
|
12694
12694
|
updateCachedData: isAnyQueryDefinition(It) ? (Ht) => Rt.dispatch(e.util.updateQueryData(ft, mt, Ht)) : void 0,
|
|
12695
|
-
cacheDataLoaded:
|
|
12695
|
+
cacheDataLoaded: Ft,
|
|
12696
12696
|
cacheEntryRemoved: Dt
|
|
12697
|
-
}, zt =
|
|
12697
|
+
}, zt = $t(mt, qt);
|
|
12698
12698
|
Promise.resolve(zt).catch((Ht) => {
|
|
12699
12699
|
if (Ht !== neverResolvedError)
|
|
12700
12700
|
throw Ht;
|
|
@@ -13020,7 +13020,7 @@ var coreModuleName = /* @__PURE__ */ Symbol(), coreModule = ({
|
|
|
13020
13020
|
mutationThunk: Rt,
|
|
13021
13021
|
patchQueryData: Mt,
|
|
13022
13022
|
updateQueryData: It,
|
|
13023
|
-
upsertQueryData:
|
|
13023
|
+
upsertQueryData: $t,
|
|
13024
13024
|
prefetch: yt,
|
|
13025
13025
|
buildMatchThunkActions: Dt
|
|
13026
13026
|
} = buildThunks({
|
|
@@ -13035,7 +13035,7 @@ var coreModuleName = /* @__PURE__ */ Symbol(), coreModule = ({
|
|
|
13035
13035
|
catchSchemaFailure: V,
|
|
13036
13036
|
skipSchemaValidation: I
|
|
13037
13037
|
}), {
|
|
13038
|
-
reducer:
|
|
13038
|
+
reducer: Ft,
|
|
13039
13039
|
actions: Vt
|
|
13040
13040
|
} = buildSlice({
|
|
13041
13041
|
context: ot,
|
|
@@ -13056,7 +13056,7 @@ var coreModuleName = /* @__PURE__ */ Symbol(), coreModule = ({
|
|
|
13056
13056
|
safeAssign$1(t.util, {
|
|
13057
13057
|
patchQueryData: Mt,
|
|
13058
13058
|
updateQueryData: It,
|
|
13059
|
-
upsertQueryData:
|
|
13059
|
+
upsertQueryData: $t,
|
|
13060
13060
|
prefetch: yt,
|
|
13061
13061
|
resetApiState: Vt.resetApiState,
|
|
13062
13062
|
upsertQueryEntries: Vt.cacheEntriesUpserted
|
|
@@ -13105,7 +13105,7 @@ var coreModuleName = /* @__PURE__ */ Symbol(), coreModule = ({
|
|
|
13105
13105
|
getInternalState: qt
|
|
13106
13106
|
});
|
|
13107
13107
|
return safeAssign$1(t.util, hr), safeAssign$1(t, {
|
|
13108
|
-
reducer:
|
|
13108
|
+
reducer: Ft,
|
|
13109
13109
|
middleware: Jt
|
|
13110
13110
|
}), {
|
|
13111
13111
|
name: coreModuleName,
|
|
@@ -13592,26 +13592,26 @@ function buildHooks({
|
|
|
13592
13592
|
function V(mt, Ct, Rt) {
|
|
13593
13593
|
if (Ct?.endpointName && mt.isUninitialized) {
|
|
13594
13594
|
const {
|
|
13595
|
-
endpointName:
|
|
13596
|
-
} = Ct, Vt = R[
|
|
13595
|
+
endpointName: Ft
|
|
13596
|
+
} = Ct, Vt = R[Ft];
|
|
13597
13597
|
Rt !== skipToken && c({
|
|
13598
13598
|
queryArgs: Ct.originalArgs,
|
|
13599
13599
|
endpointDefinition: Vt,
|
|
13600
|
-
endpointName:
|
|
13600
|
+
endpointName: Ft
|
|
13601
13601
|
}) === c({
|
|
13602
13602
|
queryArgs: Rt,
|
|
13603
13603
|
endpointDefinition: Vt,
|
|
13604
|
-
endpointName:
|
|
13604
|
+
endpointName: Ft
|
|
13605
13605
|
}) && (Ct = void 0);
|
|
13606
13606
|
}
|
|
13607
13607
|
let Mt = mt.isSuccess ? mt.data : Ct?.data;
|
|
13608
13608
|
Mt === void 0 && (Mt = mt.data);
|
|
13609
|
-
const It = Mt !== void 0,
|
|
13609
|
+
const It = Mt !== void 0, $t = mt.isLoading, yt = (!Ct || Ct.isLoading || Ct.isUninitialized) && !It && $t, Dt = mt.isSuccess || It && ($t && !Ct?.isError || mt.isUninitialized);
|
|
13610
13610
|
return {
|
|
13611
13611
|
...mt,
|
|
13612
13612
|
data: Mt,
|
|
13613
13613
|
currentData: mt.data,
|
|
13614
|
-
isFetching:
|
|
13614
|
+
isFetching: $t,
|
|
13615
13615
|
isLoading: yt,
|
|
13616
13616
|
isSuccess: Dt
|
|
13617
13617
|
};
|
|
@@ -13619,45 +13619,45 @@ function buildHooks({
|
|
|
13619
13619
|
function I(mt, Ct, Rt) {
|
|
13620
13620
|
if (Ct?.endpointName && mt.isUninitialized) {
|
|
13621
13621
|
const {
|
|
13622
|
-
endpointName:
|
|
13623
|
-
} = Ct, Vt = R[
|
|
13622
|
+
endpointName: Ft
|
|
13623
|
+
} = Ct, Vt = R[Ft];
|
|
13624
13624
|
Rt !== skipToken && c({
|
|
13625
13625
|
queryArgs: Ct.originalArgs,
|
|
13626
13626
|
endpointDefinition: Vt,
|
|
13627
|
-
endpointName:
|
|
13627
|
+
endpointName: Ft
|
|
13628
13628
|
}) === c({
|
|
13629
13629
|
queryArgs: Rt,
|
|
13630
13630
|
endpointDefinition: Vt,
|
|
13631
|
-
endpointName:
|
|
13631
|
+
endpointName: Ft
|
|
13632
13632
|
}) && (Ct = void 0);
|
|
13633
13633
|
}
|
|
13634
13634
|
let Mt = mt.isSuccess ? mt.data : Ct?.data;
|
|
13635
13635
|
Mt === void 0 && (Mt = mt.data);
|
|
13636
|
-
const It = Mt !== void 0,
|
|
13636
|
+
const It = Mt !== void 0, $t = mt.isLoading, yt = (!Ct || Ct.isLoading || Ct.isUninitialized) && !It && $t, Dt = mt.isSuccess || $t && It;
|
|
13637
13637
|
return {
|
|
13638
13638
|
...mt,
|
|
13639
13639
|
data: Mt,
|
|
13640
13640
|
currentData: mt.data,
|
|
13641
|
-
isFetching:
|
|
13641
|
+
isFetching: $t,
|
|
13642
13642
|
isLoading: yt,
|
|
13643
13643
|
isSuccess: Dt
|
|
13644
13644
|
};
|
|
13645
13645
|
}
|
|
13646
13646
|
function ot(mt, Ct) {
|
|
13647
13647
|
const Rt = n(), Mt = useShallowStableValue(Ct);
|
|
13648
|
-
return useCallback((It,
|
|
13648
|
+
return useCallback((It, $t) => Rt(e.util.prefetch(mt, It, {
|
|
13649
13649
|
...Mt,
|
|
13650
|
-
|
|
13650
|
+
...$t
|
|
13651
13651
|
})), [mt, Rt, Mt]);
|
|
13652
13652
|
}
|
|
13653
13653
|
function lt(mt, Ct, {
|
|
13654
13654
|
refetchOnReconnect: Rt,
|
|
13655
13655
|
refetchOnFocus: Mt,
|
|
13656
13656
|
refetchOnMountOrArgChange: It,
|
|
13657
|
-
skip:
|
|
13657
|
+
skip: $t = !1,
|
|
13658
13658
|
pollingInterval: yt = 0,
|
|
13659
13659
|
skipPollingIfUnfocused: Dt = !1,
|
|
13660
|
-
|
|
13660
|
+
...Ft
|
|
13661
13661
|
} = {}) {
|
|
13662
13662
|
const {
|
|
13663
13663
|
initiate: Vt
|
|
@@ -13669,12 +13669,12 @@ function buildHooks({
|
|
|
13669
13669
|
You must add the middleware for RTK-Query to function correctly!`);
|
|
13670
13670
|
qt.current = Qt;
|
|
13671
13671
|
}
|
|
13672
|
-
const zt = useStableQueryArgs(
|
|
13672
|
+
const zt = useStableQueryArgs($t ? skipToken : Ct), Ht = useShallowStableValue({
|
|
13673
13673
|
refetchOnReconnect: Rt,
|
|
13674
13674
|
refetchOnFocus: Mt,
|
|
13675
13675
|
pollingInterval: yt,
|
|
13676
13676
|
skipPollingIfUnfocused: Dt
|
|
13677
|
-
}), Ut =
|
|
13677
|
+
}), Ut = Ft.initialPageParam, nr = useShallowStableValue(Ut), Zt = Ft.refetchCachedPages, sr = useShallowStableValue(Zt), dr = useRef(void 0);
|
|
13678
13678
|
let {
|
|
13679
13679
|
queryCacheKey: Jt,
|
|
13680
13680
|
requestId: hr
|
|
@@ -13707,11 +13707,11 @@ function buildHooks({
|
|
|
13707
13707
|
function at(mt, Ct) {
|
|
13708
13708
|
return (Mt, {
|
|
13709
13709
|
skip: It = !1,
|
|
13710
|
-
selectFromResult:
|
|
13710
|
+
selectFromResult: $t
|
|
13711
13711
|
} = {}) => {
|
|
13712
13712
|
const {
|
|
13713
13713
|
select: yt
|
|
13714
|
-
} = e.endpoints[mt], Dt = useStableQueryArgs(It ? skipToken : Mt),
|
|
13714
|
+
} = e.endpoints[mt], Dt = useStableQueryArgs(It ? skipToken : Mt), Ft = useRef(void 0), Vt = useMemo(() => (
|
|
13715
13715
|
// Normally ts-ignores are bad and should be avoided, but we're
|
|
13716
13716
|
// already casting this selector to be `Selector<any>` anyway,
|
|
13717
13717
|
// so the inconsistencies don't matter here
|
|
@@ -13726,13 +13726,13 @@ function buildHooks({
|
|
|
13726
13726
|
resultEqualityCheck: shallowEqual
|
|
13727
13727
|
}
|
|
13728
13728
|
})
|
|
13729
|
-
), [yt, Dt]), Wt = useMemo(() =>
|
|
13729
|
+
), [yt, Dt]), Wt = useMemo(() => $t ? l([Vt], $t, {
|
|
13730
13730
|
devModeChecks: {
|
|
13731
13731
|
identityFunctionCheck: "never"
|
|
13732
13732
|
}
|
|
13733
|
-
}) : Vt, [Vt,
|
|
13733
|
+
}) : Vt, [Vt, $t]), qt = o((Ut) => Wt(Ut, Ft.current), shallowEqual), zt = a(), Ht = Vt(zt.getState(), Ft.current);
|
|
13734
13734
|
return useIsomorphicLayoutEffect$2(() => {
|
|
13735
|
-
|
|
13735
|
+
Ft.current = Ht;
|
|
13736
13736
|
}, [Ht]), qt;
|
|
13737
13737
|
};
|
|
13738
13738
|
}
|
|
@@ -13746,8 +13746,8 @@ function buildHooks({
|
|
|
13746
13746
|
return mt.current.refetch();
|
|
13747
13747
|
}
|
|
13748
13748
|
function dt(mt) {
|
|
13749
|
-
const Ct = (It,
|
|
13750
|
-
const [yt] = lt(mt, It,
|
|
13749
|
+
const Ct = (It, $t = {}) => {
|
|
13750
|
+
const [yt] = lt(mt, It, $t);
|
|
13751
13751
|
return ct(yt), useMemo(() => ({
|
|
13752
13752
|
/**
|
|
13753
13753
|
* A method to manually refetch data for the query
|
|
@@ -13756,15 +13756,15 @@ function buildHooks({
|
|
|
13756
13756
|
}), [yt]);
|
|
13757
13757
|
}, Rt = ({
|
|
13758
13758
|
refetchOnReconnect: It,
|
|
13759
|
-
refetchOnFocus:
|
|
13759
|
+
refetchOnFocus: $t,
|
|
13760
13760
|
pollingInterval: yt = 0,
|
|
13761
13761
|
skipPollingIfUnfocused: Dt = !1
|
|
13762
13762
|
} = {}) => {
|
|
13763
13763
|
const {
|
|
13764
|
-
initiate:
|
|
13764
|
+
initiate: Ft
|
|
13765
13765
|
} = e.endpoints[mt], Vt = n(), [Wt, qt] = useState(UNINITIALIZED_VALUE), zt = useRef(void 0), Ht = useShallowStableValue({
|
|
13766
13766
|
refetchOnReconnect: It,
|
|
13767
|
-
refetchOnFocus:
|
|
13767
|
+
refetchOnFocus: $t,
|
|
13768
13768
|
pollingInterval: yt,
|
|
13769
13769
|
skipPollingIfUnfocused: Dt
|
|
13770
13770
|
});
|
|
@@ -13779,12 +13779,12 @@ function buildHooks({
|
|
|
13779
13779
|
const nr = useCallback(function(sr, dr = !1) {
|
|
13780
13780
|
let Jt;
|
|
13781
13781
|
return t(() => {
|
|
13782
|
-
S(zt), zt.current = Jt = Vt(
|
|
13782
|
+
S(zt), zt.current = Jt = Vt(Ft(sr, {
|
|
13783
13783
|
subscriptionOptions: Ut.current,
|
|
13784
13784
|
forceRefetch: !dr
|
|
13785
13785
|
})), qt(sr);
|
|
13786
13786
|
}), Jt;
|
|
13787
|
-
}, [Vt,
|
|
13787
|
+
}, [Vt, Ft]), Zt = useCallback(() => {
|
|
13788
13788
|
zt.current?.queryCacheKey && Vt(e.internalActions.removeQueryResult({
|
|
13789
13789
|
queryCacheKey: zt.current?.queryCacheKey
|
|
13790
13790
|
}));
|
|
@@ -13802,25 +13802,25 @@ function buildHooks({
|
|
|
13802
13802
|
useQuerySubscription: Ct,
|
|
13803
13803
|
useLazyQuerySubscription: Rt,
|
|
13804
13804
|
useLazyQuery(It) {
|
|
13805
|
-
const [
|
|
13805
|
+
const [$t, yt, {
|
|
13806
13806
|
reset: Dt
|
|
13807
|
-
}] = Rt(It),
|
|
13807
|
+
}] = Rt(It), Ft = Mt(yt, {
|
|
13808
13808
|
...It,
|
|
13809
13809
|
skip: yt === UNINITIALIZED_VALUE
|
|
13810
13810
|
}), Vt = useMemo(() => ({
|
|
13811
13811
|
lastArg: yt
|
|
13812
13812
|
}), [yt]);
|
|
13813
|
-
return useMemo(() => [
|
|
13814
|
-
|
|
13813
|
+
return useMemo(() => [$t, {
|
|
13814
|
+
...Ft,
|
|
13815
13815
|
reset: Dt
|
|
13816
|
-
}, Vt], [
|
|
13816
|
+
}, Vt], [$t, Ft, Dt, Vt]);
|
|
13817
13817
|
},
|
|
13818
|
-
useQuery(It,
|
|
13819
|
-
const yt = Ct(It,
|
|
13820
|
-
selectFromResult: It === skipToken ||
|
|
13821
|
-
|
|
13822
|
-
}),
|
|
13823
|
-
return useDebugValue(
|
|
13818
|
+
useQuery(It, $t) {
|
|
13819
|
+
const yt = Ct(It, $t), Dt = Mt(It, {
|
|
13820
|
+
selectFromResult: It === skipToken || $t?.skip ? void 0 : noPendingQueryStateSelector,
|
|
13821
|
+
...$t
|
|
13822
|
+
}), Ft = pick(Dt, ...COMMON_HOOK_DEBUG_FIELDS);
|
|
13823
|
+
return useDebugValue(Ft), useMemo(() => ({
|
|
13824
13824
|
...Dt,
|
|
13825
13825
|
...yt
|
|
13826
13826
|
}), [Dt, yt]);
|
|
@@ -13829,27 +13829,27 @@ function buildHooks({
|
|
|
13829
13829
|
}
|
|
13830
13830
|
function pt(mt) {
|
|
13831
13831
|
const Ct = (Mt, It = {}) => {
|
|
13832
|
-
const [
|
|
13832
|
+
const [$t, yt, Dt, Ft] = lt(mt, Mt, It), Vt = useRef(Ft);
|
|
13833
13833
|
f(() => {
|
|
13834
|
-
Vt.current =
|
|
13835
|
-
}, [
|
|
13834
|
+
Vt.current = Ft;
|
|
13835
|
+
}, [Ft]);
|
|
13836
13836
|
const Wt = It.refetchCachedPages, qt = useShallowStableValue(Wt), zt = useCallback(function(nr, Zt) {
|
|
13837
13837
|
let sr;
|
|
13838
13838
|
return t(() => {
|
|
13839
|
-
S(
|
|
13839
|
+
S($t), $t.current = sr = yt(Dt(nr, {
|
|
13840
13840
|
subscriptionOptions: Vt.current,
|
|
13841
13841
|
direction: Zt
|
|
13842
13842
|
}));
|
|
13843
13843
|
}), sr;
|
|
13844
|
-
}, [
|
|
13845
|
-
ct(
|
|
13844
|
+
}, [$t, yt, Dt]);
|
|
13845
|
+
ct($t);
|
|
13846
13846
|
const Ht = useStableQueryArgs(It.skip ? skipToken : Mt), Ut = useCallback((nr) => {
|
|
13847
|
-
if (
|
|
13847
|
+
if (!$t.current) throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage(38) : "Cannot refetch a query that has not been started yet.");
|
|
13848
13848
|
const Zt = {
|
|
13849
13849
|
refetchCachedPages: nr?.refetchCachedPages ?? qt
|
|
13850
13850
|
};
|
|
13851
|
-
return
|
|
13852
|
-
}, [
|
|
13851
|
+
return $t.current.refetch(Zt);
|
|
13852
|
+
}, [$t, qt]);
|
|
13853
13853
|
return useMemo(() => ({
|
|
13854
13854
|
trigger: zt,
|
|
13855
13855
|
/**
|
|
@@ -13865,19 +13865,19 @@ function buildHooks({
|
|
|
13865
13865
|
useInfiniteQuerySubscription: Ct,
|
|
13866
13866
|
useInfiniteQuery(Mt, It) {
|
|
13867
13867
|
const {
|
|
13868
|
-
refetch:
|
|
13868
|
+
refetch: $t,
|
|
13869
13869
|
fetchNextPage: yt,
|
|
13870
13870
|
fetchPreviousPage: Dt
|
|
13871
|
-
} = Ct(Mt, It),
|
|
13871
|
+
} = Ct(Mt, It), Ft = Rt(Mt, {
|
|
13872
13872
|
selectFromResult: Mt === skipToken || It?.skip ? void 0 : noPendingQueryStateSelector,
|
|
13873
13873
|
...It
|
|
13874
|
-
}), Vt = pick(
|
|
13874
|
+
}), Vt = pick(Ft, ...COMMON_HOOK_DEBUG_FIELDS, "hasNextPage", "hasPreviousPage");
|
|
13875
13875
|
return useDebugValue(Vt), useMemo(() => ({
|
|
13876
|
-
|
|
13876
|
+
...Ft,
|
|
13877
13877
|
fetchNextPage: yt,
|
|
13878
13878
|
fetchPreviousPage: Dt,
|
|
13879
|
-
refetch:
|
|
13880
|
-
}), [
|
|
13879
|
+
refetch: $t
|
|
13880
|
+
}), [Ft, yt, Dt, $t]);
|
|
13881
13881
|
}
|
|
13882
13882
|
};
|
|
13883
13883
|
}
|
|
@@ -13889,35 +13889,35 @@ function buildHooks({
|
|
|
13889
13889
|
const {
|
|
13890
13890
|
select: Mt,
|
|
13891
13891
|
initiate: It
|
|
13892
|
-
} = e.endpoints[mt],
|
|
13892
|
+
} = e.endpoints[mt], $t = n(), [yt, Dt] = useState();
|
|
13893
13893
|
useEffect(() => () => {
|
|
13894
13894
|
yt?.arg.fixedCacheKey || yt?.reset();
|
|
13895
13895
|
}, [yt]);
|
|
13896
|
-
const
|
|
13897
|
-
const dr =
|
|
13896
|
+
const Ft = useCallback(function(sr) {
|
|
13897
|
+
const dr = $t(It(sr, {
|
|
13898
13898
|
fixedCacheKey: Rt
|
|
13899
13899
|
}));
|
|
13900
13900
|
return Dt(dr), dr;
|
|
13901
|
-
}, [
|
|
13901
|
+
}, [$t, It, Rt]), {
|
|
13902
13902
|
requestId: Vt
|
|
13903
13903
|
} = yt || {}, Wt = useMemo(() => Mt({
|
|
13904
13904
|
fixedCacheKey: Rt,
|
|
13905
13905
|
requestId: yt?.requestId
|
|
13906
13906
|
}), [Rt, yt, Mt]), qt = useMemo(() => Ct ? l([Wt], Ct) : Wt, [Ct, Wt]), zt = o(qt, shallowEqual), Ht = Rt == null ? yt?.arg.originalArgs : void 0, Ut = useCallback(() => {
|
|
13907
13907
|
t(() => {
|
|
13908
|
-
yt && Dt(void 0), Rt &&
|
|
13908
|
+
yt && Dt(void 0), Rt && $t(e.internalActions.removeMutationResult({
|
|
13909
13909
|
requestId: Vt,
|
|
13910
13910
|
fixedCacheKey: Rt
|
|
13911
13911
|
}));
|
|
13912
13912
|
});
|
|
13913
|
-
}, [
|
|
13913
|
+
}, [$t, Rt, yt, Vt]), nr = pick(zt, ...COMMON_HOOK_DEBUG_FIELDS, "endpointName");
|
|
13914
13914
|
useDebugValue(nr);
|
|
13915
13915
|
const Zt = useMemo(() => ({
|
|
13916
13916
|
...zt,
|
|
13917
13917
|
originalArgs: Ht,
|
|
13918
13918
|
reset: Ut
|
|
13919
13919
|
}), [zt, Ht, Ut]);
|
|
13920
|
-
return useMemo(() => [
|
|
13920
|
+
return useMemo(() => [Ft, Zt], [Ft, Zt]);
|
|
13921
13921
|
};
|
|
13922
13922
|
}
|
|
13923
13923
|
}
|
|
@@ -18027,7 +18027,7 @@ function AddToOpportunityDialog(e) {
|
|
|
18027
18027
|
}
|
|
18028
18028
|
function ProductInventoryGrid({ inventory: e, showBinLocation: t, className: n }) {
|
|
18029
18029
|
const o = (ut, dt, pt = !1, ft = !0) => {
|
|
18030
|
-
const mt = ut.WarehouseType === "Fulfillment Center", Ct = mt ? "bg-background" : "bg-background/70 text-muted-foreground", Rt = ft && dt > 0 ? "border-t" : "", Mt = pt ? "border-r" : "", It = ut.Status ?? "Unknown",
|
|
18030
|
+
const mt = ut.WarehouseType === "Fulfillment Center", Ct = mt ? "bg-background" : "bg-background/70 text-muted-foreground", Rt = ft && dt > 0 ? "border-t" : "", Mt = pt ? "border-r" : "", It = ut.Status ?? "Unknown", $t = It === "Active";
|
|
18031
18031
|
let yt = "bg-secondary text-secondary-foreground ring-1 ring-border";
|
|
18032
18032
|
switch (ut.WarehouseType) {
|
|
18033
18033
|
case "Last Mile":
|
|
@@ -18059,11 +18059,11 @@ function ProductInventoryGrid({ inventory: e, showBinLocation: t, className: n }
|
|
|
18059
18059
|
{
|
|
18060
18060
|
className: `inline-flex items-center gap-2 rounded-full px-2 py-0.5 text-xs font-semibold ${yt}`,
|
|
18061
18061
|
"aria-hidden": "false",
|
|
18062
|
-
title:
|
|
18062
|
+
title: $t ? mt ? "Fulfillment Center" : "Satellite Warehouse" : `Status: ${It}`,
|
|
18063
18063
|
children: [
|
|
18064
|
-
mt ? /* @__PURE__ */ jsx(Warehouse, { className: "h-3 w-3", "aria-hidden": "true" }) : /* @__PURE__ */ jsx(Truck, { className: `h-3 w-3 ${
|
|
18065
|
-
/* @__PURE__ */ jsx("span", { className: "sr-only", children:
|
|
18066
|
-
/* @__PURE__ */ jsx("span", { "aria-hidden": "true", children:
|
|
18064
|
+
mt ? /* @__PURE__ */ jsx(Warehouse, { className: "h-3 w-3", "aria-hidden": "true" }) : /* @__PURE__ */ jsx(Truck, { className: `h-3 w-3 ${$t ? "opacity-80" : "opacity-95"}`, "aria-hidden": "true" }),
|
|
18065
|
+
/* @__PURE__ */ jsx("span", { className: "sr-only", children: $t ? ut.WarehouseType ? `${ut.WarehouseType} warehouse` : "Warehouse" : `Status: ${It}` }),
|
|
18066
|
+
/* @__PURE__ */ jsx("span", { "aria-hidden": "true", children: $t ? ut.WarehouseType || (mt ? "Fulfillment Center" : "Satellite") : It })
|
|
18067
18067
|
]
|
|
18068
18068
|
}
|
|
18069
18069
|
)
|
|
@@ -18968,7 +18968,7 @@ var VIEWPORT_NAME$2 = "ToastViewport", VIEWPORT_DEFAULT_HOTKEY = ["F8"], VIEWPOR
|
|
|
18968
18968
|
f.current?.focus();
|
|
18969
18969
|
return;
|
|
18970
18970
|
}
|
|
18971
|
-
const Mt = lt({ tabbingDirection: mt ? "backwards" : "forwards" }), It = Mt.findIndex((
|
|
18971
|
+
const Mt = lt({ tabbingDirection: mt ? "backwards" : "forwards" }), It = Mt.findIndex(($t) => $t === ft);
|
|
18972
18972
|
focusFirst(Mt.slice(It + 1)) ? ut.preventDefault() : mt ? f.current?.focus() : S.current?.focus();
|
|
18973
18973
|
}
|
|
18974
18974
|
};
|
|
@@ -19088,25 +19088,25 @@ var [ToastInteractiveProvider, useToastInteractiveContext] = createToastContext(
|
|
|
19088
19088
|
onSwipeCancel: V,
|
|
19089
19089
|
onSwipeEnd: I,
|
|
19090
19090
|
...ot
|
|
19091
|
-
} = e, lt = useToastProviderContext(TOAST_NAME, n), [at, ct] = React.useState(null), ut = useComposedRefs(t, (
|
|
19091
|
+
} = e, lt = useToastProviderContext(TOAST_NAME, n), [at, ct] = React.useState(null), ut = useComposedRefs(t, (Ft) => ct(Ft)), dt = React.useRef(null), pt = React.useRef(null), ft = a || lt.duration, mt = React.useRef(0), Ct = React.useRef(ft), Rt = React.useRef(0), { onToastAdd: Mt, onToastRemove: It } = lt, $t = useCallbackRef$1(() => {
|
|
19092
19092
|
at?.contains(document.activeElement) && lt.viewport?.focus(), l();
|
|
19093
19093
|
}), yt = React.useCallback(
|
|
19094
|
-
(
|
|
19095
|
-
|
|
19094
|
+
(Ft) => {
|
|
19095
|
+
!Ft || Ft === 1 / 0 || (window.clearTimeout(Rt.current), mt.current = (/* @__PURE__ */ new Date()).getTime(), Rt.current = window.setTimeout($t, Ft));
|
|
19096
19096
|
},
|
|
19097
|
-
[
|
|
19097
|
+
[$t]
|
|
19098
19098
|
);
|
|
19099
19099
|
React.useEffect(() => {
|
|
19100
|
-
const
|
|
19101
|
-
if (
|
|
19100
|
+
const Ft = lt.viewport;
|
|
19101
|
+
if (Ft) {
|
|
19102
19102
|
const Vt = () => {
|
|
19103
19103
|
yt(Ct.current), f?.();
|
|
19104
19104
|
}, Wt = () => {
|
|
19105
19105
|
const qt = (/* @__PURE__ */ new Date()).getTime() - mt.current;
|
|
19106
19106
|
Ct.current = Ct.current - qt, window.clearTimeout(Rt.current), d?.();
|
|
19107
19107
|
};
|
|
19108
|
-
return
|
|
19109
|
-
|
|
19108
|
+
return Ft.addEventListener(VIEWPORT_PAUSE, Wt), Ft.addEventListener(VIEWPORT_RESUME, Vt), () => {
|
|
19109
|
+
Ft.removeEventListener(VIEWPORT_PAUSE, Wt), Ft.removeEventListener(VIEWPORT_RESUME, Vt);
|
|
19110
19110
|
};
|
|
19111
19111
|
}
|
|
19112
19112
|
}, [lt.viewport, ft, d, f, yt]), React.useEffect(() => {
|
|
@@ -19123,13 +19123,13 @@ var [ToastInteractiveProvider, useToastInteractiveContext] = createToastContext(
|
|
|
19123
19123
|
children: Dt
|
|
19124
19124
|
}
|
|
19125
19125
|
),
|
|
19126
|
-
/* @__PURE__ */ jsx(ToastInteractiveProvider, { scope: n, onClose:
|
|
19126
|
+
/* @__PURE__ */ jsx(ToastInteractiveProvider, { scope: n, onClose: $t, children: ReactDOM.createPortal(
|
|
19127
19127
|
/* @__PURE__ */ jsx(Collection$2.ItemSlot, { scope: n, children: /* @__PURE__ */ jsx(
|
|
19128
19128
|
Root$b,
|
|
19129
19129
|
{
|
|
19130
19130
|
asChild: !0,
|
|
19131
19131
|
onEscapeKeyDown: composeEventHandlers(c, () => {
|
|
19132
|
-
lt.isFocusedToastEscapeKeyDownRef.current ||
|
|
19132
|
+
lt.isFocusedToastEscapeKeyDownRef.current || $t(), lt.isFocusedToastEscapeKeyDownRef.current = !1;
|
|
19133
19133
|
}),
|
|
19134
19134
|
children: /* @__PURE__ */ jsx(
|
|
19135
19135
|
Primitive$4.li,
|
|
@@ -19140,25 +19140,25 @@ var [ToastInteractiveProvider, useToastInteractiveContext] = createToastContext(
|
|
|
19140
19140
|
...ot,
|
|
19141
19141
|
ref: ut,
|
|
19142
19142
|
style: { userSelect: "none", touchAction: "none", ...e.style },
|
|
19143
|
-
onKeyDown: composeEventHandlers(e.onKeyDown, (
|
|
19144
|
-
|
|
19143
|
+
onKeyDown: composeEventHandlers(e.onKeyDown, (Ft) => {
|
|
19144
|
+
Ft.key === "Escape" && (c?.(Ft.nativeEvent), Ft.nativeEvent.defaultPrevented || (lt.isFocusedToastEscapeKeyDownRef.current = !0, $t()));
|
|
19145
19145
|
}),
|
|
19146
|
-
onPointerDown: composeEventHandlers(e.onPointerDown, (
|
|
19147
|
-
|
|
19146
|
+
onPointerDown: composeEventHandlers(e.onPointerDown, (Ft) => {
|
|
19147
|
+
Ft.button === 0 && (dt.current = { x: Ft.clientX, y: Ft.clientY });
|
|
19148
19148
|
}),
|
|
19149
|
-
onPointerMove: composeEventHandlers(e.onPointerMove, (
|
|
19149
|
+
onPointerMove: composeEventHandlers(e.onPointerMove, (Ft) => {
|
|
19150
19150
|
if (!dt.current) return;
|
|
19151
|
-
const Vt =
|
|
19151
|
+
const Vt = Ft.clientX - dt.current.x, Wt = Ft.clientY - dt.current.y, qt = !!pt.current, zt = ["left", "right"].includes(lt.swipeDirection), Ht = ["left", "up"].includes(lt.swipeDirection) ? Math.min : Math.max, Ut = zt ? Ht(0, Vt) : 0, nr = zt ? 0 : Ht(0, Wt), Zt = Ft.pointerType === "touch" ? 10 : 2, sr = { x: Ut, y: nr }, dr = { originalEvent: Ft, delta: sr };
|
|
19152
19152
|
qt ? (pt.current = sr, handleAndDispatchCustomEvent(TOAST_SWIPE_MOVE, R, dr, {
|
|
19153
19153
|
discrete: !1
|
|
19154
19154
|
})) : isDeltaInDirection(sr, lt.swipeDirection, Zt) ? (pt.current = sr, handleAndDispatchCustomEvent(TOAST_SWIPE_START, S, dr, {
|
|
19155
19155
|
discrete: !1
|
|
19156
|
-
}),
|
|
19156
|
+
}), Ft.target.setPointerCapture(Ft.pointerId)) : (Math.abs(Vt) > Zt || Math.abs(Wt) > Zt) && (dt.current = null);
|
|
19157
19157
|
}),
|
|
19158
|
-
onPointerUp: composeEventHandlers(e.onPointerUp, (
|
|
19159
|
-
const Vt = pt.current, Wt =
|
|
19160
|
-
if (Wt.hasPointerCapture(
|
|
19161
|
-
const qt =
|
|
19158
|
+
onPointerUp: composeEventHandlers(e.onPointerUp, (Ft) => {
|
|
19159
|
+
const Vt = pt.current, Wt = Ft.target;
|
|
19160
|
+
if (Wt.hasPointerCapture(Ft.pointerId) && Wt.releasePointerCapture(Ft.pointerId), pt.current = null, dt.current = null, Vt) {
|
|
19161
|
+
const qt = Ft.currentTarget, zt = { originalEvent: Ft, delta: Vt };
|
|
19162
19162
|
isDeltaInDirection(Vt, lt.swipeDirection, lt.swipeThreshold) ? handleAndDispatchCustomEvent(TOAST_SWIPE_END, I, zt, {
|
|
19163
19163
|
discrete: !0
|
|
19164
19164
|
}) : handleAndDispatchCustomEvent(
|
|
@@ -19515,11 +19515,11 @@ function ExploreManufacturers({ appID: e, manufPath: t, withBot: n }) {
|
|
|
19515
19515
|
), d = useMemo(() => (c ?? s)?.slice() ?? [], [s, c]), [f, S] = useState(""), [R, V] = useState([]), [I, ot] = useState("az"), [lt, at] = useState(!1), [ct, ut] = useState(!1), dt = useMemo(() => {
|
|
19516
19516
|
const Mt = /* @__PURE__ */ new Map();
|
|
19517
19517
|
for (const It of d)
|
|
19518
|
-
for (const
|
|
19519
|
-
const yt = canonicalizeCategory(
|
|
19520
|
-
Mt.has(yt) || Mt.set(yt,
|
|
19518
|
+
for (const $t of splitManufacturerTags(It.Tags)) {
|
|
19519
|
+
const yt = canonicalizeCategory($t);
|
|
19520
|
+
Mt.has(yt) || Mt.set(yt, $t);
|
|
19521
19521
|
}
|
|
19522
|
-
return Array.from(Mt.entries()).map(([It,
|
|
19522
|
+
return Array.from(Mt.entries()).map(([It, $t]) => ({ key: It, label: $t })).sort((It, $t) => It.label.localeCompare($t.label, void 0, { sensitivity: "base" }));
|
|
19523
19523
|
}, [d]), pt = f.trim().length > 0 || R.length > 0 || I !== "az" || lt || ct, ft = useCallback(() => {
|
|
19524
19524
|
S(""), V([]), ot("az"), at(!1), ut(!1);
|
|
19525
19525
|
}, []), { sendMessage: mt } = useChat(), Ct = useCallback(
|
|
@@ -19531,15 +19531,15 @@ function ExploreManufacturers({ appID: e, manufPath: t, withBot: n }) {
|
|
|
19531
19531
|
), Rt = useMemo(() => {
|
|
19532
19532
|
const Mt = f.trim().toLocaleLowerCase(), It = new Set(R), yt = d.filter((Dt) => {
|
|
19533
19533
|
if (lt && !Dt.OpenToWork || ct && !hasActiveOpportunities(Dt)) return !1;
|
|
19534
|
-
const
|
|
19535
|
-
if (It.size > 0 &&
|
|
19534
|
+
const Ft = getManufacturerTagKeys(Dt);
|
|
19535
|
+
if (It.size > 0 && !Ft.some((Vt) => It.has(Vt))) return !1;
|
|
19536
19536
|
if (Mt.length > 0) {
|
|
19537
19537
|
const Vt = getManufacturerDisplayName(Dt).toLocaleLowerCase(), Wt = splitManufacturerTags(Dt.Tags).map((zt) => zt.toLocaleLowerCase());
|
|
19538
19538
|
if (!(Vt.includes(Mt) || Wt.some((zt) => zt.includes(Mt)))) return !1;
|
|
19539
19539
|
}
|
|
19540
19540
|
return !0;
|
|
19541
19541
|
}).slice();
|
|
19542
|
-
return yt.sort((Dt,
|
|
19542
|
+
return yt.sort((Dt, Ft) => I === "az" ? getManufacturerDisplayName(Dt).localeCompare(getManufacturerDisplayName(Ft), void 0, { sensitivity: "base" }) : I === "recent" ? (Ft.CreationDate ?? 0) - (Dt.CreationDate ?? 0) : I === "sales30Desc" ? (Ft.SalesData?.SalesLast30Days ?? 0) - (Dt.SalesData?.SalesLast30Days ?? 0) : (Dt.SalesData?.SalesLast30Days ?? 0) - (Ft.SalesData?.SalesLast30Days ?? 0)), yt;
|
|
19543
19543
|
}, [d, ct, lt, f, R, I]);
|
|
19544
19544
|
return /* @__PURE__ */ jsxs("div", { className: "p-4 max-w-7xl m-auto space-y-6", children: [
|
|
19545
19545
|
/* @__PURE__ */ jsx(Card, { children: /* @__PURE__ */ jsxs(CardContent, { className: "p-4 space-y-4", children: [
|
|
@@ -19569,14 +19569,14 @@ function ExploreManufacturers({ appID: e, manufPath: t, withBot: n }) {
|
|
|
19569
19569
|
"aria-describedby": "manufacturer-categories-help",
|
|
19570
19570
|
className: "flex flex-wrap gap-2",
|
|
19571
19571
|
children: dt.length === 0 ? /* @__PURE__ */ jsx("span", { className: "text-sm text-muted-foreground", children: "No categories available." }) : dt.map(({ key: Mt, label: It }) => {
|
|
19572
|
-
const
|
|
19572
|
+
const $t = R.includes(Mt);
|
|
19573
19573
|
return /* @__PURE__ */ jsx(
|
|
19574
19574
|
Button$1,
|
|
19575
19575
|
{
|
|
19576
19576
|
type: "button",
|
|
19577
|
-
variant:
|
|
19577
|
+
variant: $t ? "secondary" : "outline",
|
|
19578
19578
|
className: "rounded-full",
|
|
19579
|
-
"aria-pressed":
|
|
19579
|
+
"aria-pressed": $t,
|
|
19580
19580
|
onClick: () => {
|
|
19581
19581
|
V(
|
|
19582
19582
|
(yt) => yt.includes(Mt) ? yt.filter((Dt) => Dt !== Mt) : [...yt, Mt]
|
|
@@ -19647,7 +19647,7 @@ function ExploreManufacturers({ appID: e, manufPath: t, withBot: n }) {
|
|
|
19647
19647
|
" manufacturers"
|
|
19648
19648
|
] }),
|
|
19649
19649
|
l && d.length === 0 ? /* @__PURE__ */ jsx("div", { className: "grid grid-cols-1 @md:grid-cols-1 @lg:grid-cols-2 @xl:grid-cols-3 gap-4", children: Array.from({ length: 9 }).map((Mt, It) => /* @__PURE__ */ jsx(ManufacturerCard, { loading: !0 }, It)) }) : Rt.length > 0 ? /* @__PURE__ */ jsx("div", { className: "grid grid-cols-1 @md:grid-cols-1 @lg:grid-cols-2 @xl:grid-cols-3 gap-4", children: Rt.map((Mt, It) => {
|
|
19650
|
-
const
|
|
19650
|
+
const $t = getManufacturerDisplayName(Mt);
|
|
19651
19651
|
return /* @__PURE__ */ jsx(
|
|
19652
19652
|
ManufacturerCard,
|
|
19653
19653
|
{
|
|
@@ -19661,14 +19661,14 @@ function ExploreManufacturers({ appID: e, manufPath: t, withBot: n }) {
|
|
|
19661
19661
|
type: "button",
|
|
19662
19662
|
variant: "outline",
|
|
19663
19663
|
size: "icon",
|
|
19664
|
-
"aria-label": `Assistant: ${
|
|
19665
|
-
onClick: () => Ct(
|
|
19664
|
+
"aria-label": `Assistant: ${$t || "manufacturer"}`,
|
|
19665
|
+
onClick: () => Ct($t),
|
|
19666
19666
|
children: /* @__PURE__ */ jsx(Bot, {})
|
|
19667
19667
|
}
|
|
19668
19668
|
) : void 0,
|
|
19669
19669
|
mainAction: /* @__PURE__ */ jsx(ManufacturerGetStartedButton, { applicationId: e, manufacturer: Mt })
|
|
19670
19670
|
},
|
|
19671
|
-
Mt.ManufacturerId ?? `${
|
|
19671
|
+
Mt.ManufacturerId ?? `${$t}-${It}`
|
|
19672
19672
|
);
|
|
19673
19673
|
}) }) : /* @__PURE__ */ jsx(Card, { children: /* @__PURE__ */ jsxs(CardContent, { className: "p-8 text-center space-y-3", children: [
|
|
19674
19674
|
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: "No manufacturers match your current filters." }),
|
|
@@ -22586,9 +22586,9 @@ var useResponsiveContainerContext = () => useContext(ResponsiveContainerContext)
|
|
|
22586
22586
|
containerHeight: o.height
|
|
22587
22587
|
}), dt = useCallback((Rt, Mt) => {
|
|
22588
22588
|
ut((It) => {
|
|
22589
|
-
var
|
|
22590
|
-
return It.containerWidth ===
|
|
22591
|
-
containerWidth:
|
|
22589
|
+
var $t = Math.round(Rt), yt = Math.round(Mt);
|
|
22590
|
+
return It.containerWidth === $t && It.containerHeight === yt ? It : {
|
|
22591
|
+
containerWidth: $t,
|
|
22592
22592
|
containerHeight: yt
|
|
22593
22593
|
};
|
|
22594
22594
|
});
|
|
@@ -22597,12 +22597,12 @@ var useResponsiveContainerContext = () => useContext(ResponsiveContainerContext)
|
|
|
22597
22597
|
if (lt.current == null || typeof ResizeObserver > "u")
|
|
22598
22598
|
return noop$2;
|
|
22599
22599
|
var Rt = (yt) => {
|
|
22600
|
-
var Dt,
|
|
22601
|
-
if (
|
|
22600
|
+
var Dt, Ft = yt[0];
|
|
22601
|
+
if (Ft != null) {
|
|
22602
22602
|
var {
|
|
22603
22603
|
width: Vt,
|
|
22604
22604
|
height: Wt
|
|
22605
|
-
} =
|
|
22605
|
+
} = Ft.contentRect;
|
|
22606
22606
|
dt(Vt, Wt), (Dt = at.current) === null || Dt === void 0 || Dt.call(at, Vt, Wt);
|
|
22607
22607
|
}
|
|
22608
22608
|
};
|
|
@@ -22612,9 +22612,9 @@ var useResponsiveContainerContext = () => useContext(ResponsiveContainerContext)
|
|
|
22612
22612
|
}));
|
|
22613
22613
|
var Mt = new ResizeObserver(Rt), {
|
|
22614
22614
|
width: It,
|
|
22615
|
-
height:
|
|
22615
|
+
height: $t
|
|
22616
22616
|
} = lt.current.getBoundingClientRect();
|
|
22617
|
-
return dt(It,
|
|
22617
|
+
return dt(It, $t), Mt.observe(lt.current), () => {
|
|
22618
22618
|
Mt.disconnect();
|
|
22619
22619
|
};
|
|
22620
22620
|
}, [dt, S]);
|
|
@@ -23421,13 +23421,13 @@ var DefaultTooltipContent = (e) => {
|
|
|
23421
23421
|
if (Rt.type === "none")
|
|
23422
23422
|
return null;
|
|
23423
23423
|
var It = Rt.formatter || l || defaultFormatter, {
|
|
23424
|
-
value:
|
|
23424
|
+
value: $t,
|
|
23425
23425
|
name: yt
|
|
23426
|
-
} = Rt, Dt =
|
|
23426
|
+
} = Rt, Dt = $t, Ft = yt;
|
|
23427
23427
|
if (It) {
|
|
23428
|
-
var Vt = It(
|
|
23428
|
+
var Vt = It($t, yt, Rt, Mt, s);
|
|
23429
23429
|
if (Array.isArray(Vt))
|
|
23430
|
-
[Dt,
|
|
23430
|
+
[Dt, Ft] = Vt;
|
|
23431
23431
|
else if (Vt != null)
|
|
23432
23432
|
Dt = Vt;
|
|
23433
23433
|
else
|
|
@@ -23440,9 +23440,9 @@ var DefaultTooltipContent = (e) => {
|
|
|
23440
23440
|
className: "recharts-tooltip-item",
|
|
23441
23441
|
key: "tooltip-item-".concat(Mt),
|
|
23442
23442
|
style: Wt
|
|
23443
|
-
}, isNumOrStr(
|
|
23443
|
+
}, isNumOrStr(Ft) ? /* @__PURE__ */ React.createElement("span", {
|
|
23444
23444
|
className: "recharts-tooltip-item-name"
|
|
23445
|
-
},
|
|
23445
|
+
}, Ft) : null, isNumOrStr(Ft) ? /* @__PURE__ */ React.createElement("span", {
|
|
23446
23446
|
className: "recharts-tooltip-item-separator"
|
|
23447
23447
|
}, t) : null, /* @__PURE__ */ React.createElement("span", {
|
|
23448
23448
|
className: "recharts-tooltip-item-value"
|
|
@@ -24378,7 +24378,7 @@ var getRectanglePath = (e, t, n, o, a) => {
|
|
|
24378
24378
|
d: getRectanglePath(s, l, c, d, f)
|
|
24379
24379
|
}));
|
|
24380
24380
|
}
|
|
24381
|
-
var It = at.current,
|
|
24381
|
+
var It = at.current, $t = ct.current, yt = ut.current, Dt = dt.current, Ft = "0px ".concat(o === -1 ? 1 : o, "px"), Vt = "".concat(o, "px ").concat(o, "px"), Wt = getTransitionVal(["strokeDasharray"], V, typeof R == "string" ? R : defaultRectangleProps.animationEasing);
|
|
24382
24382
|
return /* @__PURE__ */ React.createElement(JavascriptAnimate, {
|
|
24383
24383
|
animationId: ft,
|
|
24384
24384
|
key: ft,
|
|
@@ -24388,14 +24388,14 @@ var getRectanglePath = (e, t, n, o, a) => {
|
|
|
24388
24388
|
isActive: lt,
|
|
24389
24389
|
begin: I
|
|
24390
24390
|
}, (qt) => {
|
|
24391
|
-
var zt = interpolate$1(It, c, qt), Ht = interpolate$1(
|
|
24391
|
+
var zt = interpolate$1(It, c, qt), Ht = interpolate$1($t, d, qt), Ut = interpolate$1(yt, s, qt), nr = interpolate$1(Dt, l, qt);
|
|
24392
24392
|
n.current && (at.current = zt, ct.current = Ht, ut.current = Ut, dt.current = nr);
|
|
24393
24393
|
var Zt;
|
|
24394
24394
|
ot ? qt > 0 ? Zt = {
|
|
24395
24395
|
transition: Wt,
|
|
24396
24396
|
strokeDasharray: Vt
|
|
24397
24397
|
} : Zt = {
|
|
24398
|
-
strokeDasharray:
|
|
24398
|
+
strokeDasharray: Ft
|
|
24399
24399
|
} : Zt = {
|
|
24400
24400
|
strokeDasharray: Vt
|
|
24401
24401
|
};
|
|
@@ -25192,19 +25192,19 @@ var divide = /* @__PURE__ */ (function() {
|
|
|
25192
25192
|
for (; !o[0] && o.length > 1; ) o.shift();
|
|
25193
25193
|
}
|
|
25194
25194
|
return function(o, a, s, l) {
|
|
25195
|
-
var c, d, f, S, R, V, I, ot, lt, at, ct, ut, dt, pt, ft, mt, Ct, Rt, Mt = o.constructor, It = o.s == a.s ? 1 : -1,
|
|
25195
|
+
var c, d, f, S, R, V, I, ot, lt, at, ct, ut, dt, pt, ft, mt, Ct, Rt, Mt = o.constructor, It = o.s == a.s ? 1 : -1, $t = o.d, yt = a.d;
|
|
25196
25196
|
if (!o.s) return new Mt(o);
|
|
25197
25197
|
if (!a.s) throw Error(decimalError + "Division by zero");
|
|
25198
|
-
for (d = o.e - a.e, Ct = yt.length, ft =
|
|
25199
|
-
if (yt[f] > (
|
|
25198
|
+
for (d = o.e - a.e, Ct = yt.length, ft = $t.length, I = new Mt(It), ot = I.d = [], f = 0; yt[f] == ($t[f] || 0); ) ++f;
|
|
25199
|
+
if (yt[f] > ($t[f] || 0) && --d, s == null ? ut = s = Mt.precision : l ? ut = s + (getBase10Exponent(o) - getBase10Exponent(a)) + 1 : ut = s, ut < 0) return new Mt(0);
|
|
25200
25200
|
if (ut = ut / LOG_BASE + 2 | 0, f = 0, Ct == 1)
|
|
25201
25201
|
for (S = 0, yt = yt[0], ut++; (f < ft || S) && ut--; f++)
|
|
25202
|
-
dt = S * BASE + (
|
|
25202
|
+
dt = S * BASE + ($t[f] || 0), ot[f] = dt / yt | 0, S = dt % yt | 0;
|
|
25203
25203
|
else {
|
|
25204
|
-
for (S = BASE / (yt[0] + 1) | 0, S > 1 && (yt = e(yt, S),
|
|
25204
|
+
for (S = BASE / (yt[0] + 1) | 0, S > 1 && (yt = e(yt, S), $t = e($t, S), Ct = yt.length, ft = $t.length), pt = Ct, lt = $t.slice(0, Ct), at = lt.length; at < Ct; ) lt[at++] = 0;
|
|
25205
25205
|
Rt = yt.slice(), Rt.unshift(0), mt = yt[0], yt[1] >= BASE / 2 && ++mt;
|
|
25206
25206
|
do
|
|
25207
|
-
S = 0, c = t(yt, lt, Ct, at), c < 0 ? (ct = lt[0], Ct != at && (ct = ct * BASE + (lt[1] || 0)), S = ct / mt | 0, S > 1 ? (S >= BASE && (S = BASE - 1), R = e(yt, S), V = R.length, at = lt.length, c = t(R, lt, V, at), c == 1 && (S--, n(R, Ct < V ? Rt : yt, V))) : (S == 0 && (c = S = 1), R = yt.slice()), V = R.length, V < at && R.unshift(0), n(lt, R, at), c == -1 && (at = lt.length, c = t(yt, lt, Ct, at), c < 1 && (S++, n(lt, Ct < at ? Rt : yt, at))), at = lt.length) : c === 0 && (S++, lt = [0]), ot[f++] = S, c && lt[0] ? lt[at++] =
|
|
25207
|
+
S = 0, c = t(yt, lt, Ct, at), c < 0 ? (ct = lt[0], Ct != at && (ct = ct * BASE + (lt[1] || 0)), S = ct / mt | 0, S > 1 ? (S >= BASE && (S = BASE - 1), R = e(yt, S), V = R.length, at = lt.length, c = t(R, lt, V, at), c == 1 && (S--, n(R, Ct < V ? Rt : yt, V))) : (S == 0 && (c = S = 1), R = yt.slice()), V = R.length, V < at && R.unshift(0), n(lt, R, at), c == -1 && (at = lt.length, c = t(yt, lt, Ct, at), c < 1 && (S++, n(lt, Ct < at ? Rt : yt, at))), at = lt.length) : c === 0 && (S++, lt = [0]), ot[f++] = S, c && lt[0] ? lt[at++] = $t[pt] || 0 : (lt = [$t[pt]], at = 1);
|
|
25208
25208
|
while ((pt++ < ft || lt[0] !== void 0) && ut--);
|
|
25209
25209
|
}
|
|
25210
25210
|
return ot[0] || ot.shift(), I.e = d, round(I, l ? s + getBase10Exponent(I) + 1 : s);
|
|
@@ -26658,42 +26658,42 @@ function formatLocale$1(e) {
|
|
|
26658
26658
|
mt === "n" ? (dt = !0, mt = "g") : formatTypes[mt] || (pt === void 0 && (pt = 12), ft = !0, mt = "g"), (ct || I === "0" && ot === "=") && (ct = !0, I = "0", ot = "=");
|
|
26659
26659
|
var Ct = (V && V.prefix !== void 0 ? V.prefix : "") + (at === "$" ? n : at === "#" && /[boxX]/.test(mt) ? "0" + mt.toLowerCase() : ""), Rt = (at === "$" ? o : /[%p]/.test(mt) ? l : "") + (V && V.suffix !== void 0 ? V.suffix : ""), Mt = formatTypes[mt], It = /[defgprs%]/.test(mt);
|
|
26660
26660
|
pt = pt === void 0 ? 6 : /[gprs]/.test(mt) ? Math.max(1, Math.min(21, pt)) : Math.max(0, Math.min(20, pt));
|
|
26661
|
-
function
|
|
26662
|
-
var Dt = Ct,
|
|
26661
|
+
function $t(yt) {
|
|
26662
|
+
var Dt = Ct, Ft = Rt, Vt, Wt, qt;
|
|
26663
26663
|
if (mt === "c")
|
|
26664
|
-
|
|
26664
|
+
Ft = Mt(yt) + Ft, yt = "";
|
|
26665
26665
|
else {
|
|
26666
26666
|
yt = +yt;
|
|
26667
26667
|
var zt = yt < 0 || 1 / yt < 0;
|
|
26668
|
-
if (yt = isNaN(yt) ? d : Mt(Math.abs(yt), pt), ft && (yt = formatTrim(yt)), zt && +yt == 0 && lt !== "+" && (zt = !1), Dt = (zt ? lt === "(" ? lt : c : lt === "-" || lt === "(" ? "" : lt) + Dt,
|
|
26668
|
+
if (yt = isNaN(yt) ? d : Mt(Math.abs(yt), pt), ft && (yt = formatTrim(yt)), zt && +yt == 0 && lt !== "+" && (zt = !1), Dt = (zt ? lt === "(" ? lt : c : lt === "-" || lt === "(" ? "" : lt) + Dt, Ft = (mt === "s" && !isNaN(yt) && prefixExponent !== void 0 ? prefixes[8 + prefixExponent / 3] : "") + Ft + (zt && lt === "(" ? ")" : ""), It) {
|
|
26669
26669
|
for (Vt = -1, Wt = yt.length; ++Vt < Wt; )
|
|
26670
26670
|
if (qt = yt.charCodeAt(Vt), 48 > qt || qt > 57) {
|
|
26671
|
-
|
|
26671
|
+
Ft = (qt === 46 ? a + yt.slice(Vt + 1) : yt.slice(Vt)) + Ft, yt = yt.slice(0, Vt);
|
|
26672
26672
|
break;
|
|
26673
26673
|
}
|
|
26674
26674
|
}
|
|
26675
26675
|
}
|
|
26676
26676
|
dt && !ct && (yt = t(yt, 1 / 0));
|
|
26677
|
-
var Ht = Dt.length + yt.length +
|
|
26678
|
-
switch (dt && ct && (yt = t(Ut + yt, Ut.length ? ut -
|
|
26677
|
+
var Ht = Dt.length + yt.length + Ft.length, Ut = Ht < ut ? new Array(ut - Ht + 1).join(I) : "";
|
|
26678
|
+
switch (dt && ct && (yt = t(Ut + yt, Ut.length ? ut - Ft.length : 1 / 0), Ut = ""), ot) {
|
|
26679
26679
|
case "<":
|
|
26680
|
-
yt = Dt + yt +
|
|
26680
|
+
yt = Dt + yt + Ft + Ut;
|
|
26681
26681
|
break;
|
|
26682
26682
|
case "=":
|
|
26683
|
-
yt = Dt + Ut + yt +
|
|
26683
|
+
yt = Dt + Ut + yt + Ft;
|
|
26684
26684
|
break;
|
|
26685
26685
|
case "^":
|
|
26686
|
-
yt = Ut.slice(0, Ht = Ut.length >> 1) + Dt + yt +
|
|
26686
|
+
yt = Ut.slice(0, Ht = Ut.length >> 1) + Dt + yt + Ft + Ut.slice(Ht);
|
|
26687
26687
|
break;
|
|
26688
26688
|
default:
|
|
26689
|
-
yt = Ut + Dt + yt +
|
|
26689
|
+
yt = Ut + Dt + yt + Ft;
|
|
26690
26690
|
break;
|
|
26691
26691
|
}
|
|
26692
26692
|
return s(yt);
|
|
26693
26693
|
}
|
|
26694
|
-
return
|
|
26694
|
+
return $t.toString = function() {
|
|
26695
26695
|
return R + "";
|
|
26696
|
-
},
|
|
26696
|
+
}, $t;
|
|
26697
26697
|
}
|
|
26698
26698
|
function S(R, V) {
|
|
26699
26699
|
var I = Math.max(-8, Math.min(8, Math.floor(exponent(V) / 3))) * 3, ot = Math.pow(10, -I), lt = f((R = formatSpecifier(R), R.type = "f", R), { suffix: prefixes[8 + I / 3] });
|
|
@@ -27301,10 +27301,10 @@ function formatLocale(e) {
|
|
|
27301
27301
|
"%": formatLiteralPercent
|
|
27302
27302
|
}, ft = {
|
|
27303
27303
|
a: It,
|
|
27304
|
-
A:
|
|
27304
|
+
A: $t,
|
|
27305
27305
|
b: yt,
|
|
27306
27306
|
B: Dt,
|
|
27307
|
-
c:
|
|
27307
|
+
c: Ft,
|
|
27308
27308
|
d: parseDayOfMonth,
|
|
27309
27309
|
e: parseDayOfMonth,
|
|
27310
27310
|
f: parseMicroseconds,
|
|
@@ -27373,7 +27373,7 @@ function formatLocale(e) {
|
|
|
27373
27373
|
var Xt = I.exec(er.slice(yr));
|
|
27374
27374
|
return Xt ? (Qt.w = ot.get(Xt[0].toLowerCase()), yr + Xt[0].length) : -1;
|
|
27375
27375
|
}
|
|
27376
|
-
function
|
|
27376
|
+
function $t(Qt, er, yr) {
|
|
27377
27377
|
var Xt = R.exec(er.slice(yr));
|
|
27378
27378
|
return Xt ? (Qt.w = V.get(Xt[0].toLowerCase()), yr + Xt[0].length) : -1;
|
|
27379
27379
|
}
|
|
@@ -27385,7 +27385,7 @@ function formatLocale(e) {
|
|
|
27385
27385
|
var Xt = lt.exec(er.slice(yr));
|
|
27386
27386
|
return Xt ? (Qt.m = at.get(Xt[0].toLowerCase()), yr + Xt[0].length) : -1;
|
|
27387
27387
|
}
|
|
27388
|
-
function
|
|
27388
|
+
function Ft(Qt, er, yr) {
|
|
27389
27389
|
return Rt(Qt, t, er, yr);
|
|
27390
27390
|
}
|
|
27391
27391
|
function Vt(Qt, er, yr) {
|
|
@@ -29079,19 +29079,19 @@ var combineTooltipPayload = (e, t, n, o, a, s, l) => {
|
|
|
29079
29079
|
*/
|
|
29080
29080
|
l === "axis" ? ft = findEntryInArray(ut, o, a) : ft = s(ut, t, d, pt), Array.isArray(ft))
|
|
29081
29081
|
ft.forEach((Ct) => {
|
|
29082
|
-
var Rt, Mt, It = parseTooltipPayloadItem(Ct),
|
|
29083
|
-
name:
|
|
29082
|
+
var Rt, Mt, It = parseTooltipPayloadItem(Ct), $t = It?.name, yt = It?.dataKey, Dt = It?.payload, Ft = _objectSpread$k(_objectSpread$k({}, at), {}, {
|
|
29083
|
+
name: $t,
|
|
29084
29084
|
unit: It?.unit,
|
|
29085
29085
|
// Preserve item-level color/fill from graphical items.
|
|
29086
29086
|
color: (Rt = It?.color) !== null && Rt !== void 0 ? Rt : at?.color,
|
|
29087
29087
|
fill: (Mt = It?.fill) !== null && Mt !== void 0 ? Mt : at?.fill
|
|
29088
29088
|
});
|
|
29089
29089
|
V.push(getTooltipEntry({
|
|
29090
|
-
tooltipEntrySettings:
|
|
29090
|
+
tooltipEntrySettings: Ft,
|
|
29091
29091
|
dataKey: yt,
|
|
29092
29092
|
payload: Dt,
|
|
29093
29093
|
value: getValueByDataKey(Dt, yt),
|
|
29094
|
-
name:
|
|
29094
|
+
name: $t == null ? void 0 : String($t)
|
|
29095
29095
|
}));
|
|
29096
29096
|
});
|
|
29097
29097
|
else {
|
|
@@ -29343,8 +29343,8 @@ var calculateActiveTickIndex = (e, t, n, o, a) => {
|
|
|
29343
29343
|
for (var Mt = 0; Mt < l; Mt++) {
|
|
29344
29344
|
var It = t[Mt];
|
|
29345
29345
|
if (It != null) {
|
|
29346
|
-
var
|
|
29347
|
-
if (Mt === 0 &&
|
|
29346
|
+
var $t = t[Mt + 1], yt = t[Mt - 1];
|
|
29347
|
+
if (Mt === 0 && $t != null && e <= (It.coordinate + $t.coordinate) / 2 || Mt === l - 1 && yt != null && e > (It.coordinate + yt.coordinate) / 2 || Mt > 0 && Mt < l - 1 && yt != null && $t != null && e > (It.coordinate + yt.coordinate) / 2 && e <= (It.coordinate + $t.coordinate) / 2)
|
|
29348
29348
|
return It.index;
|
|
29349
29349
|
}
|
|
29350
29350
|
}
|
|
@@ -29921,13 +29921,13 @@ function useTooltipSyncEventsListener() {
|
|
|
29921
29921
|
}
|
|
29922
29922
|
var {
|
|
29923
29923
|
x: It,
|
|
29924
|
-
y:
|
|
29925
|
-
} = Mt, yt = Math.min(It, l.x + l.width), Dt = Math.min(
|
|
29924
|
+
y: $t
|
|
29925
|
+
} = Mt, yt = Math.min(It, l.x + l.width), Dt = Math.min($t, l.y + l.height), Ft = {
|
|
29926
29926
|
x: s === "horizontal" ? mt.coordinate : yt,
|
|
29927
29927
|
y: s === "horizontal" ? Dt : mt.coordinate
|
|
29928
29928
|
}, Vt = setSyncInteraction({
|
|
29929
29929
|
active: S.payload.active,
|
|
29930
|
-
coordinate:
|
|
29930
|
+
coordinate: Ft,
|
|
29931
29931
|
dataKey: S.payload.dataKey,
|
|
29932
29932
|
index: String(mt.index),
|
|
29933
29933
|
label: S.payload.label,
|
|
@@ -30080,13 +30080,13 @@ function Tooltip(e) {
|
|
|
30080
30080
|
defaultIndex: Rt
|
|
30081
30081
|
}));
|
|
30082
30082
|
}, [Ct, ut, dt, mt, a, Rt]);
|
|
30083
|
-
var Mt = useViewBox(), It = useAccessibilityLayer(),
|
|
30083
|
+
var Mt = useViewBox(), It = useAccessibilityLayer(), $t = useTooltipEventType(ut), {
|
|
30084
30084
|
activeIndex: yt,
|
|
30085
30085
|
isActive: Dt
|
|
30086
|
-
} = (t = useAppSelector((or) => selectIsTooltipActive(or,
|
|
30087
|
-
useTooltipChartSynchronisation(
|
|
30086
|
+
} = (t = useAppSelector((or) => selectIsTooltipActive(or, $t, dt, Rt))) !== null && t !== void 0 ? t : {}, Ft = useAppSelector((or) => selectTooltipPayload(or, $t, dt, Rt)), Vt = useAppSelector((or) => selectActiveLabel(or, $t, dt, Rt)), Wt = useAppSelector((or) => selectActiveCoordinate(or, $t, dt, Rt)), qt = Ft, zt = useTooltipPortal(), Ht = (n = a ?? Dt) !== null && n !== void 0 ? n : !1, [Ut, nr] = useElementOffset([qt, Ht]), Zt = $t === "axis" ? Vt : void 0;
|
|
30087
|
+
useTooltipChartSynchronisation($t, dt, Wt, Zt, yt, Ht);
|
|
30088
30088
|
var sr = ft ?? zt;
|
|
30089
|
-
if (sr == null || Mt == null ||
|
|
30089
|
+
if (sr == null || Mt == null || $t == null)
|
|
30090
30090
|
return null;
|
|
30091
30091
|
var dr = qt ?? emptyPayload;
|
|
30092
30092
|
Ht || (dr = emptyPayload), f && dr.length && (dr = getUniqPayload(dr.filter((or) => or.value != null && (or.hide !== !0 || o.includeHidden)), V, defaultUniqBy));
|
|
@@ -30117,7 +30117,7 @@ function Tooltip(e) {
|
|
|
30117
30117
|
}, renderContent(d, hr));
|
|
30118
30118
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ createPortal(Yt, sr), Ht && /* @__PURE__ */ React.createElement(Cursor, {
|
|
30119
30119
|
cursor: ct,
|
|
30120
|
-
tooltipEventType:
|
|
30120
|
+
tooltipEventType: $t,
|
|
30121
30121
|
coordinate: Wt,
|
|
30122
30122
|
payload: dr,
|
|
30123
30123
|
index: yt
|
|
@@ -30556,14 +30556,14 @@ var calculate = (e, t, n, o) => e.reduce((a, s) => {
|
|
|
30556
30556
|
className: clsx("recharts-text", at),
|
|
30557
30557
|
textAnchor: f,
|
|
30558
30558
|
fill: c.includes("url") ? DEFAULT_FILL : c
|
|
30559
|
-
}), V.map((It,
|
|
30559
|
+
}), V.map((It, $t) => {
|
|
30560
30560
|
var yt = It.words.join(ct ? "" : " ");
|
|
30561
30561
|
return (
|
|
30562
30562
|
// duplicate words will cause duplicate keys which is why we add the array index here
|
|
30563
30563
|
/* @__PURE__ */ React.createElement("tspan", {
|
|
30564
30564
|
x: dt,
|
|
30565
|
-
dy:
|
|
30566
|
-
key: "".concat(yt, "-").concat(
|
|
30565
|
+
dy: $t === 0 ? ft : s,
|
|
30566
|
+
key: "".concat(yt, "-").concat($t)
|
|
30567
30567
|
}, yt)
|
|
30568
30568
|
);
|
|
30569
30569
|
}));
|
|
@@ -30648,13 +30648,13 @@ var getCartesianPosition = (e) => {
|
|
|
30648
30648
|
return Ct && (It.width = Math.max(It.x - Ct.x, 0), It.height = c), It;
|
|
30649
30649
|
}
|
|
30650
30650
|
if (n === "right") {
|
|
30651
|
-
var
|
|
30651
|
+
var $t = {
|
|
30652
30652
|
x: V + I + pt,
|
|
30653
30653
|
y: l + c / 2,
|
|
30654
30654
|
horizontalAnchor: mt,
|
|
30655
30655
|
verticalAnchor: "middle"
|
|
30656
30656
|
};
|
|
30657
|
-
return Ct && (
|
|
30657
|
+
return Ct && ($t.width = Math.max(Ct.x + Ct.width - $t.x, 0), $t.height = c), $t;
|
|
30658
30658
|
}
|
|
30659
30659
|
var yt = Ct ? {
|
|
30660
30660
|
width: I,
|
|
@@ -32290,9 +32290,9 @@ var Ticks = /* @__PURE__ */ forwardRef((e, t) => {
|
|
|
32290
32290
|
axisId: Ct
|
|
32291
32291
|
} = e, Rt = getTicks(_objectSpread$6(_objectSpread$6({}, pt), {}, {
|
|
32292
32292
|
ticks: n
|
|
32293
|
-
}), ut, dt), Mt = svgPropertiesNoEvents(pt), It = svgPropertiesNoEventsFromUnknown(o),
|
|
32293
|
+
}), ut, dt), Mt = svgPropertiesNoEvents(pt), It = svgPropertiesNoEventsFromUnknown(o), $t = isValidTextAnchor(Mt.textAnchor) ? Mt.textAnchor : getTickTextAnchor(S, R), yt = getTickVerticalAnchor(S, R), Dt = {};
|
|
32294
32294
|
typeof a == "object" && (Dt = a);
|
|
32295
|
-
var
|
|
32295
|
+
var Ft = _objectSpread$6(_objectSpread$6({}, Mt), {}, {
|
|
32296
32296
|
fill: "none"
|
|
32297
32297
|
}, Dt), Vt = Rt.map((zt) => _objectSpread$6({
|
|
32298
32298
|
entry: zt
|
|
@@ -32304,7 +32304,7 @@ var Ticks = /* @__PURE__ */ forwardRef((e, t) => {
|
|
|
32304
32304
|
return /* @__PURE__ */ React.createElement(Layer, {
|
|
32305
32305
|
className: "recharts-cartesian-axis-tick",
|
|
32306
32306
|
key: "tick-".concat(Ht.value, "-").concat(Ht.coordinate, "-").concat(Ht.tickCoord)
|
|
32307
|
-
}, a && /* @__PURE__ */ React.createElement("line", _extends$7({},
|
|
32307
|
+
}, a && /* @__PURE__ */ React.createElement("line", _extends$7({}, Ft, Ut, {
|
|
32308
32308
|
className: clsx("recharts-cartesian-axis-tick-line", get$1(a, "className"))
|
|
32309
32309
|
})));
|
|
32310
32310
|
}), qt = Vt.map((zt, Ht) => {
|
|
@@ -32314,7 +32314,7 @@ var Ticks = /* @__PURE__ */ forwardRef((e, t) => {
|
|
|
32314
32314
|
} = zt, dr = _objectSpread$6(_objectSpread$6(_objectSpread$6(_objectSpread$6({
|
|
32315
32315
|
verticalAnchor: yt
|
|
32316
32316
|
}, Mt), {}, {
|
|
32317
|
-
textAnchor:
|
|
32317
|
+
textAnchor: $t,
|
|
32318
32318
|
stroke: "none",
|
|
32319
32319
|
fill: s
|
|
32320
32320
|
}, sr), {}, {
|
|
@@ -33269,9 +33269,9 @@ function AreaWithAnimation(e) {
|
|
|
33269
33269
|
* then we would break animations.
|
|
33270
33270
|
*/
|
|
33271
33271
|
Rt === 1 ? l : l.map((yt, Dt) => {
|
|
33272
|
-
var
|
|
33273
|
-
if (mt[
|
|
33274
|
-
var Vt = mt[
|
|
33272
|
+
var Ft = Math.floor(Dt * Mt);
|
|
33273
|
+
if (mt[Ft]) {
|
|
33274
|
+
var Vt = mt[Ft];
|
|
33275
33275
|
return _objectSpread$4(_objectSpread$4({}, yt), {}, {
|
|
33276
33276
|
x: interpolate$1(Vt.x, yt.x, Rt),
|
|
33277
33277
|
y: interpolate$1(Vt.y, yt.y, Rt)
|
|
@@ -33279,20 +33279,20 @@ function AreaWithAnimation(e) {
|
|
|
33279
33279
|
}
|
|
33280
33280
|
return yt;
|
|
33281
33281
|
})
|
|
33282
|
-
),
|
|
33283
|
-
return isNumber$2(c) ?
|
|
33284
|
-
var
|
|
33285
|
-
if (Array.isArray(Ct) && Ct[
|
|
33286
|
-
var Vt = Ct[
|
|
33282
|
+
), $t;
|
|
33283
|
+
return isNumber$2(c) ? $t = interpolate$1(Ct, c, Rt) : isNullish(c) || isNan(c) ? $t = interpolate$1(Ct, 0, Rt) : $t = c.map((yt, Dt) => {
|
|
33284
|
+
var Ft = Math.floor(Dt * Mt);
|
|
33285
|
+
if (Array.isArray(Ct) && Ct[Ft]) {
|
|
33286
|
+
var Vt = Ct[Ft];
|
|
33287
33287
|
return _objectSpread$4(_objectSpread$4({}, yt), {}, {
|
|
33288
33288
|
x: interpolate$1(Vt.x, yt.x, Rt),
|
|
33289
33289
|
y: interpolate$1(Vt.y, yt.y, Rt)
|
|
33290
33290
|
});
|
|
33291
33291
|
}
|
|
33292
33292
|
return yt;
|
|
33293
|
-
}), Rt > 0 && (a.current = It, s.current =
|
|
33293
|
+
}), Rt > 0 && (a.current = It, s.current = $t), /* @__PURE__ */ React.createElement(StaticArea, {
|
|
33294
33294
|
points: It,
|
|
33295
|
-
baseLine:
|
|
33295
|
+
baseLine: $t,
|
|
33296
33296
|
needClip: t,
|
|
33297
33297
|
clipPathId: n,
|
|
33298
33298
|
props: o
|
|
@@ -33439,7 +33439,7 @@ function AreaImpl(e) {
|
|
|
33439
33439
|
var {
|
|
33440
33440
|
height: Mt,
|
|
33441
33441
|
width: It,
|
|
33442
|
-
x:
|
|
33442
|
+
x: $t,
|
|
33443
33443
|
y: yt
|
|
33444
33444
|
} = Rt;
|
|
33445
33445
|
return !ft || !ft.length ? null : /* @__PURE__ */ React.createElement(AreaWithState, _extends$5({}, at, {
|
|
@@ -33462,7 +33462,7 @@ function AreaImpl(e) {
|
|
|
33462
33462
|
points: ft,
|
|
33463
33463
|
stroke: I,
|
|
33464
33464
|
width: It,
|
|
33465
|
-
left:
|
|
33465
|
+
left: $t,
|
|
33466
33466
|
top: yt,
|
|
33467
33467
|
xAxisId: ot,
|
|
33468
33468
|
yAxisId: lt
|
|
@@ -33504,7 +33504,7 @@ function computeArea(e) {
|
|
|
33504
33504
|
var It = getValueByDataKey(pt, o);
|
|
33505
33505
|
Array.isArray(It) ? (Mt = It, ct = !0) : Mt = [lt, It];
|
|
33506
33506
|
}
|
|
33507
|
-
var
|
|
33507
|
+
var $t = (mt = (Ct = Mt) === null || Ct === void 0 ? void 0 : Ct[1]) !== null && mt !== void 0 ? mt : null, yt = $t == null || ot && !t && getValueByDataKey(pt, o) == null;
|
|
33508
33508
|
if (at) {
|
|
33509
33509
|
var Dt;
|
|
33510
33510
|
return {
|
|
@@ -33515,13 +33515,13 @@ function computeArea(e) {
|
|
|
33515
33515
|
entry: pt,
|
|
33516
33516
|
index: ft
|
|
33517
33517
|
}),
|
|
33518
|
-
y: yt ? null : (Dt = d.scale.map(
|
|
33518
|
+
y: yt ? null : (Dt = d.scale.map($t)) !== null && Dt !== void 0 ? Dt : null,
|
|
33519
33519
|
value: Mt,
|
|
33520
33520
|
payload: pt
|
|
33521
33521
|
};
|
|
33522
33522
|
}
|
|
33523
33523
|
return {
|
|
33524
|
-
x: yt ? null : (Rt = c.scale.map(
|
|
33524
|
+
x: yt ? null : (Rt = c.scale.map($t)) !== null && Rt !== void 0 ? Rt : null,
|
|
33525
33525
|
y: getCateCoordinateOfLine({
|
|
33526
33526
|
axis: d,
|
|
33527
33527
|
ticks: V,
|
|
@@ -34756,7 +34756,7 @@ var RechartsWrapper = /* @__PURE__ */ forwardRef((e, t) => {
|
|
|
34756
34756
|
width: ct,
|
|
34757
34757
|
responsive: ut,
|
|
34758
34758
|
dispatchTouchEvents: dt = !0
|
|
34759
|
-
} = e, pt = useRef(null), ft = useAppDispatch(), [mt, Ct] = useState(null), [Rt, Mt] = useState(null), It = useReportScale(),
|
|
34759
|
+
} = e, pt = useRef(null), ft = useAppDispatch(), [mt, Ct] = useState(null), [Rt, Mt] = useState(null), It = useReportScale(), $t = useResponsiveContainerContext(), yt = $t?.width > 0 ? $t.width : ct, Dt = $t?.height > 0 ? $t.height : a, Ft = useCallback((er) => {
|
|
34760
34760
|
It(er), typeof t == "function" && t(er), Ct(er), Mt(er), er != null && (pt.current = er);
|
|
34761
34761
|
}, [It, t, Ct, Mt]), Vt = useCallback((er) => {
|
|
34762
34762
|
ft(mouseClickAction(er)), ft(externalEventAction({
|
|
@@ -34848,7 +34848,7 @@ var RechartsWrapper = /* @__PURE__ */ forwardRef((e, t) => {
|
|
|
34848
34848
|
onTouchEnd: or,
|
|
34849
34849
|
onTouchMove: Yt,
|
|
34850
34850
|
onTouchStart: hr,
|
|
34851
|
-
ref:
|
|
34851
|
+
ref: Ft
|
|
34852
34852
|
}, /* @__PURE__ */ React.createElement(EventSynchronizer, null), n)));
|
|
34853
34853
|
}), _excluded = ["width", "height", "responsive", "children", "className", "style", "compact", "title", "desc"];
|
|
34854
34854
|
function _objectWithoutProperties(e, t) {
|
|
@@ -35479,20 +35479,20 @@ var lottie = createCommonjsModule((function(module, exports$1) {
|
|
|
35479
35479
|
})((function(d) {
|
|
35480
35480
|
if (s.dataManager || (s.dataManager = (function() {
|
|
35481
35481
|
function S(Ct, Rt) {
|
|
35482
|
-
var Mt, It,
|
|
35482
|
+
var Mt, It, $t, yt, Dt, Ft, Vt = Ct.length;
|
|
35483
35483
|
for (It = 0; It < Vt; It += 1) if ("ks" in (Mt = Ct[It]) && !Mt.completed) {
|
|
35484
35484
|
if (Mt.completed = !0, Mt.hasMask) {
|
|
35485
35485
|
var Wt = Mt.masksProperties;
|
|
35486
|
-
for (yt = Wt.length,
|
|
35487
|
-
else for (
|
|
35486
|
+
for (yt = Wt.length, $t = 0; $t < yt; $t += 1) if (Wt[$t].pt.k.i) I(Wt[$t].pt.k);
|
|
35487
|
+
else for (Ft = Wt[$t].pt.k.length, Dt = 0; Dt < Ft; Dt += 1) Wt[$t].pt.k[Dt].s && I(Wt[$t].pt.k[Dt].s[0]), Wt[$t].pt.k[Dt].e && I(Wt[$t].pt.k[Dt].e[0]);
|
|
35488
35488
|
}
|
|
35489
35489
|
Mt.ty === 0 ? (Mt.layers = R(Mt.refId, Rt), S(Mt.layers, Rt)) : Mt.ty === 4 ? V(Mt.shapes) : Mt.ty === 5 && ft(Mt);
|
|
35490
35490
|
}
|
|
35491
35491
|
}
|
|
35492
35492
|
function R(Ct, Rt) {
|
|
35493
|
-
var Mt = (function(It,
|
|
35494
|
-
for (var yt = 0, Dt =
|
|
35495
|
-
if (
|
|
35493
|
+
var Mt = (function(It, $t) {
|
|
35494
|
+
for (var yt = 0, Dt = $t.length; yt < Dt; ) {
|
|
35495
|
+
if ($t[yt].id === It) return $t[yt];
|
|
35496
35496
|
yt += 1;
|
|
35497
35497
|
}
|
|
35498
35498
|
return null;
|
|
@@ -35516,13 +35516,13 @@ var lottie = createCommonjsModule((function(module, exports$1) {
|
|
|
35516
35516
|
var lt, at = /* @__PURE__ */ (function() {
|
|
35517
35517
|
var Ct = [4, 4, 14];
|
|
35518
35518
|
function Rt(Mt) {
|
|
35519
|
-
var It,
|
|
35520
|
-
for (It = 0; It < Dt; It += 1) Mt[It].ty === 5 && (
|
|
35519
|
+
var It, $t, yt, Dt = Mt.length;
|
|
35520
|
+
for (It = 0; It < Dt; It += 1) Mt[It].ty === 5 && ($t = Mt[It], yt = void 0, yt = $t.t.d, $t.t.d = { k: [{ s: yt, t: 0 }] });
|
|
35521
35521
|
}
|
|
35522
35522
|
return function(Mt) {
|
|
35523
35523
|
if (ot(Ct, Mt.v) && (Rt(Mt.layers), Mt.assets)) {
|
|
35524
|
-
var It,
|
|
35525
|
-
for (It = 0; It <
|
|
35524
|
+
var It, $t = Mt.assets.length;
|
|
35525
|
+
for (It = 0; It < $t; It += 1) Mt.assets[It].layers && Rt(Mt.assets[It].layers);
|
|
35526
35526
|
}
|
|
35527
35527
|
};
|
|
35528
35528
|
})(), ct = (lt = [4, 7, 99], function(Ct) {
|
|
@@ -35536,56 +35536,56 @@ var lottie = createCommonjsModule((function(module, exports$1) {
|
|
|
35536
35536
|
}), ut = /* @__PURE__ */ (function() {
|
|
35537
35537
|
var Ct = [5, 7, 15];
|
|
35538
35538
|
function Rt(Mt) {
|
|
35539
|
-
var It,
|
|
35540
|
-
for (It = 0; It < Dt; It += 1) Mt[It].ty === 5 && (
|
|
35539
|
+
var It, $t, yt, Dt = Mt.length;
|
|
35540
|
+
for (It = 0; It < Dt; It += 1) Mt[It].ty === 5 && ($t = Mt[It], yt = void 0, typeof (yt = $t.t.p).a == "number" && (yt.a = { a: 0, k: yt.a }), typeof yt.p == "number" && (yt.p = { a: 0, k: yt.p }), typeof yt.r == "number" && (yt.r = { a: 0, k: yt.r }));
|
|
35541
35541
|
}
|
|
35542
35542
|
return function(Mt) {
|
|
35543
35543
|
if (ot(Ct, Mt.v) && (Rt(Mt.layers), Mt.assets)) {
|
|
35544
|
-
var It,
|
|
35545
|
-
for (It = 0; It <
|
|
35544
|
+
var It, $t = Mt.assets.length;
|
|
35545
|
+
for (It = 0; It < $t; It += 1) Mt.assets[It].layers && Rt(Mt.assets[It].layers);
|
|
35546
35546
|
}
|
|
35547
35547
|
};
|
|
35548
35548
|
})(), dt = /* @__PURE__ */ (function() {
|
|
35549
35549
|
var Ct = [4, 1, 9];
|
|
35550
35550
|
function Rt(It) {
|
|
35551
|
-
var
|
|
35552
|
-
for (
|
|
35553
|
-
else if (It[
|
|
35554
|
-
else It[
|
|
35551
|
+
var $t, yt, Dt, Ft = It.length;
|
|
35552
|
+
for ($t = 0; $t < Ft; $t += 1) if (It[$t].ty === "gr") Rt(It[$t].it);
|
|
35553
|
+
else if (It[$t].ty === "fl" || It[$t].ty === "st") if (It[$t].c.k && It[$t].c.k[0].i) for (Dt = It[$t].c.k.length, yt = 0; yt < Dt; yt += 1) It[$t].c.k[yt].s && (It[$t].c.k[yt].s[0] /= 255, It[$t].c.k[yt].s[1] /= 255, It[$t].c.k[yt].s[2] /= 255, It[$t].c.k[yt].s[3] /= 255), It[$t].c.k[yt].e && (It[$t].c.k[yt].e[0] /= 255, It[$t].c.k[yt].e[1] /= 255, It[$t].c.k[yt].e[2] /= 255, It[$t].c.k[yt].e[3] /= 255);
|
|
35554
|
+
else It[$t].c.k[0] /= 255, It[$t].c.k[1] /= 255, It[$t].c.k[2] /= 255, It[$t].c.k[3] /= 255;
|
|
35555
35555
|
}
|
|
35556
35556
|
function Mt(It) {
|
|
35557
|
-
var
|
|
35558
|
-
for (
|
|
35557
|
+
var $t, yt = It.length;
|
|
35558
|
+
for ($t = 0; $t < yt; $t += 1) It[$t].ty === 4 && Rt(It[$t].shapes);
|
|
35559
35559
|
}
|
|
35560
35560
|
return function(It) {
|
|
35561
35561
|
if (ot(Ct, It.v) && (Mt(It.layers), It.assets)) {
|
|
35562
|
-
var
|
|
35563
|
-
for (
|
|
35562
|
+
var $t, yt = It.assets.length;
|
|
35563
|
+
for ($t = 0; $t < yt; $t += 1) It.assets[$t].layers && Mt(It.assets[$t].layers);
|
|
35564
35564
|
}
|
|
35565
35565
|
};
|
|
35566
35566
|
})(), pt = /* @__PURE__ */ (function() {
|
|
35567
35567
|
var Ct = [4, 4, 18];
|
|
35568
35568
|
function Rt(It) {
|
|
35569
|
-
var
|
|
35570
|
-
for (
|
|
35571
|
-
else for (Dt = It[
|
|
35572
|
-
else It[
|
|
35569
|
+
var $t, yt, Dt;
|
|
35570
|
+
for ($t = It.length - 1; $t >= 0; $t -= 1) if (It[$t].ty === "sh") if (It[$t].ks.k.i) It[$t].ks.k.c = It[$t].closed;
|
|
35571
|
+
else for (Dt = It[$t].ks.k.length, yt = 0; yt < Dt; yt += 1) It[$t].ks.k[yt].s && (It[$t].ks.k[yt].s[0].c = It[$t].closed), It[$t].ks.k[yt].e && (It[$t].ks.k[yt].e[0].c = It[$t].closed);
|
|
35572
|
+
else It[$t].ty === "gr" && Rt(It[$t].it);
|
|
35573
35573
|
}
|
|
35574
35574
|
function Mt(It) {
|
|
35575
|
-
var
|
|
35575
|
+
var $t, yt, Dt, Ft, Vt, Wt, qt = It.length;
|
|
35576
35576
|
for (yt = 0; yt < qt; yt += 1) {
|
|
35577
|
-
if ((
|
|
35578
|
-
var zt =
|
|
35579
|
-
for (
|
|
35577
|
+
if (($t = It[yt]).hasMask) {
|
|
35578
|
+
var zt = $t.masksProperties;
|
|
35579
|
+
for (Ft = zt.length, Dt = 0; Dt < Ft; Dt += 1) if (zt[Dt].pt.k.i) zt[Dt].pt.k.c = zt[Dt].cl;
|
|
35580
35580
|
else for (Wt = zt[Dt].pt.k.length, Vt = 0; Vt < Wt; Vt += 1) zt[Dt].pt.k[Vt].s && (zt[Dt].pt.k[Vt].s[0].c = zt[Dt].cl), zt[Dt].pt.k[Vt].e && (zt[Dt].pt.k[Vt].e[0].c = zt[Dt].cl);
|
|
35581
35581
|
}
|
|
35582
|
-
|
|
35582
|
+
$t.ty === 4 && Rt($t.shapes);
|
|
35583
35583
|
}
|
|
35584
35584
|
}
|
|
35585
35585
|
return function(It) {
|
|
35586
35586
|
if (ot(Ct, It.v) && (Mt(It.layers), It.assets)) {
|
|
35587
|
-
var
|
|
35588
|
-
for (
|
|
35587
|
+
var $t, yt = It.assets.length;
|
|
35588
|
+
for ($t = 0; $t < yt; $t += 1) It.assets[$t].layers && Mt(It.assets[$t].layers);
|
|
35589
35589
|
}
|
|
35590
35590
|
};
|
|
35591
35591
|
})();
|
|
@@ -35595,8 +35595,8 @@ var lottie = createCommonjsModule((function(module, exports$1) {
|
|
|
35595
35595
|
var mt = { completeData: function(Ct) {
|
|
35596
35596
|
Ct.__complete || (dt(Ct), at(Ct), ct(Ct), ut(Ct), pt(Ct), S(Ct.layers, Ct.assets), (function(Rt, Mt) {
|
|
35597
35597
|
if (Rt) {
|
|
35598
|
-
var It = 0,
|
|
35599
|
-
for (It = 0; It <
|
|
35598
|
+
var It = 0, $t = Rt.length;
|
|
35599
|
+
for (It = 0; It < $t; It += 1) Rt[It].t === 1 && (Rt[It].data.layers = R(Rt[It].data.refId, Mt), S(Rt[It].data.layers, Mt));
|
|
35600
35600
|
}
|
|
35601
35601
|
})(Ct.chars, Ct.assets), Ct.__complete = !0);
|
|
35602
35602
|
} };
|
|
@@ -36229,8 +36229,8 @@ var lottie = createCommonjsModule((function(module, exports$1) {
|
|
|
36229
36229
|
return V && at && (ct[S] = n(I[S], I[0], ot[S], lt[0]), ut += ct[S].addedLength), R.totalLength = ut, R;
|
|
36230
36230
|
}, getNewSegment: function(f, S, R, V, I, ot, lt) {
|
|
36231
36231
|
I < 0 ? I = 0 : I > 1 && (I = 1);
|
|
36232
|
-
var at, ct = c(I, lt), ut = c(ot = ot > 1 ? 1 : ot, lt), dt = f.length, pt = 1 - ct, ft = 1 - ut, mt = pt * pt * pt, Ct = ct * pt * pt * 3, Rt = ct * ct * pt * 3, Mt = ct * ct * ct, It = pt * pt * ft,
|
|
36233
|
-
for (at = 0; at < dt; at += 1) d[4 * at] = e.round(1e3 * (mt * f[at] + Ct * R[at] + Rt * V[at] + Mt * S[at])) / 1e3, d[4 * at + 1] = e.round(1e3 * (It * f[at] +
|
|
36232
|
+
var at, ct = c(I, lt), ut = c(ot = ot > 1 ? 1 : ot, lt), dt = f.length, pt = 1 - ct, ft = 1 - ut, mt = pt * pt * pt, Ct = ct * pt * pt * 3, Rt = ct * ct * pt * 3, Mt = ct * ct * ct, It = pt * pt * ft, $t = ct * pt * ft + pt * ct * ft + pt * pt * ut, yt = ct * ct * ft + pt * ct * ut + ct * pt * ut, Dt = ct * ct * ut, Ft = pt * ft * ft, Vt = ct * ft * ft + pt * ut * ft + pt * ft * ut, Wt = ct * ut * ft + pt * ut * ut + ct * ft * ut, qt = ct * ut * ut, zt = ft * ft * ft, Ht = ut * ft * ft + ft * ut * ft + ft * ft * ut, Ut = ut * ut * ft + ft * ut * ut + ut * ft * ut, nr = ut * ut * ut;
|
|
36233
|
+
for (at = 0; at < dt; at += 1) d[4 * at] = e.round(1e3 * (mt * f[at] + Ct * R[at] + Rt * V[at] + Mt * S[at])) / 1e3, d[4 * at + 1] = e.round(1e3 * (It * f[at] + $t * R[at] + yt * V[at] + Dt * S[at])) / 1e3, d[4 * at + 2] = e.round(1e3 * (Ft * f[at] + Vt * R[at] + Wt * V[at] + qt * S[at])) / 1e3, d[4 * at + 3] = e.round(1e3 * (zt * f[at] + Ht * R[at] + Ut * V[at] + nr * S[at])) / 1e3;
|
|
36234
36234
|
return d;
|
|
36235
36235
|
}, getPointInSegment: function(f, S, R, V, I, ot) {
|
|
36236
36236
|
var lt = c(I, ot), at = 1 - lt;
|
|
@@ -36281,9 +36281,9 @@ var lottie = createCommonjsModule((function(module, exports$1) {
|
|
|
36281
36281
|
t._lastPoint = R, t._lastAddedLength = Rt - pt.points[R].partialLength, t._lastKeyframeIndex = ot;
|
|
36282
36282
|
}
|
|
36283
36283
|
} else {
|
|
36284
|
-
var Mt, It,
|
|
36284
|
+
var Mt, It, $t, yt, Dt;
|
|
36285
36285
|
if (lt = a.s.length, ct = s.s || a.e, this.sh && a.h !== 1) e >= ut ? (n[0] = ct[0], n[1] = ct[1], n[2] = ct[2]) : e <= dt ? (n[0] = a.s[0], n[1] = a.s[1], n[2] = a.s[2]) : quaternionToEuler(n, slerp(createQuaternion(a.s), createQuaternion(ct), (e - dt) / (ut - dt)));
|
|
36286
|
-
else for (ot = 0; ot < lt; ot += 1) a.h !== 1 && (e >= ut ? f = 1 : e < dt ? f = 0 : (a.o.x.constructor === Array ? (l.__fnct || (l.__fnct = []), l.__fnct[ot] ? V = l.__fnct[ot] : (Mt = a.o.x[ot] === void 0 ? a.o.x[0] : a.o.x[ot], It = a.o.y[ot] === void 0 ? a.o.y[0] : a.o.y[ot],
|
|
36286
|
+
else for (ot = 0; ot < lt; ot += 1) a.h !== 1 && (e >= ut ? f = 1 : e < dt ? f = 0 : (a.o.x.constructor === Array ? (l.__fnct || (l.__fnct = []), l.__fnct[ot] ? V = l.__fnct[ot] : (Mt = a.o.x[ot] === void 0 ? a.o.x[0] : a.o.x[ot], It = a.o.y[ot] === void 0 ? a.o.y[0] : a.o.y[ot], $t = a.i.x[ot] === void 0 ? a.i.x[0] : a.i.x[ot], yt = a.i.y[ot] === void 0 ? a.i.y[0] : a.i.y[ot], V = BezierFactory.getBezierEasing(Mt, It, $t, yt).get, l.__fnct[ot] = V)) : l.__fnct ? V = l.__fnct : (Mt = a.o.x, It = a.o.y, $t = a.i.x, yt = a.i.y, V = BezierFactory.getBezierEasing(Mt, It, $t, yt).get, a.keyframeMetadata = V), f = V((e - dt) / (ut - dt)))), ct = s.s || a.e, Dt = a.h === 1 ? a.s[ot] : a.s[ot] + (ct[ot] - a.s[ot]) * f, this.propType === "multidimensional" ? n[ot] = Dt : n = Dt;
|
|
36287
36287
|
}
|
|
36288
36288
|
return t.lastIndex = I, n;
|
|
36289
36289
|
}
|
|
@@ -36450,15 +36450,15 @@ var lottie = createCommonjsModule((function(module, exports$1) {
|
|
|
36450
36450
|
if (V < Mt[0].t - this.offsetTime) lt = Mt[0].s[0], ct = !0, Rt = 0;
|
|
36451
36451
|
else if (V >= Mt[Mt.length - 1].t - this.offsetTime) lt = Mt[Mt.length - 1].s ? Mt[Mt.length - 1].s[0] : Mt[Mt.length - 2].e[0], ct = !0;
|
|
36452
36452
|
else {
|
|
36453
|
-
for (var It,
|
|
36453
|
+
for (var It, $t, yt, Dt = Rt, Ft = Mt.length - 1, Vt = !0; Vt && (It = Mt[Dt], !(($t = Mt[Dt + 1]).t - this.offsetTime > V)); ) Dt < Ft - 1 ? Dt += 1 : Vt = !1;
|
|
36454
36454
|
if (yt = this.keyframesMetadata[Dt] || {}, Rt = Dt, !(ct = It.h === 1)) {
|
|
36455
|
-
if (V >=
|
|
36455
|
+
if (V >= $t.t - this.offsetTime) mt = 1;
|
|
36456
36456
|
else if (V < It.t - this.offsetTime) mt = 0;
|
|
36457
36457
|
else {
|
|
36458
36458
|
var Wt;
|
|
36459
|
-
yt.__fnct ? Wt = yt.__fnct : (Wt = BezierFactory.getBezierEasing(It.o.x, It.o.y, It.i.x, It.i.y).get, yt.__fnct = Wt), mt = Wt((V - (It.t - this.offsetTime)) / (
|
|
36459
|
+
yt.__fnct ? Wt = yt.__fnct : (Wt = BezierFactory.getBezierEasing(It.o.x, It.o.y, It.i.x, It.i.y).get, yt.__fnct = Wt), mt = Wt((V - (It.t - this.offsetTime)) / ($t.t - this.offsetTime - (It.t - this.offsetTime)));
|
|
36460
36460
|
}
|
|
36461
|
-
at =
|
|
36461
|
+
at = $t.s ? $t.s[0] : It.e[0];
|
|
36462
36462
|
}
|
|
36463
36463
|
lt = It.s[0];
|
|
36464
36464
|
}
|
|
@@ -36524,11 +36524,11 @@ var lottie = createCommonjsModule((function(module, exports$1) {
|
|
|
36524
36524
|
}, convertStarToPath: function() {
|
|
36525
36525
|
var I, ot, lt, at, ct = 2 * Math.floor(this.pt.v), ut = 2 * Math.PI / ct, dt = !0, pt = this.or.v, ft = this.ir.v, mt = this.os.v, Ct = this.is.v, Rt = 2 * Math.PI * pt / (2 * ct), Mt = 2 * Math.PI * ft / (2 * ct), It = -Math.PI / 2;
|
|
36526
36526
|
It += this.r.v;
|
|
36527
|
-
var
|
|
36527
|
+
var $t = this.data.d === 3 ? -1 : 1;
|
|
36528
36528
|
for (this.v._length = 0, I = 0; I < ct; I += 1) {
|
|
36529
36529
|
lt = dt ? mt : Ct, at = dt ? Rt : Mt;
|
|
36530
|
-
var yt = (ot = dt ? pt : ft) * Math.cos(It), Dt = ot * Math.sin(It),
|
|
36531
|
-
yt += +this.p.v[0], Dt += +this.p.v[1], this.v.setTripleAt(yt, Dt, yt -
|
|
36530
|
+
var yt = (ot = dt ? pt : ft) * Math.cos(It), Dt = ot * Math.sin(It), Ft = yt === 0 && Dt === 0 ? 0 : Dt / Math.sqrt(yt * yt + Dt * Dt), Vt = yt === 0 && Dt === 0 ? 0 : -yt / Math.sqrt(yt * yt + Dt * Dt);
|
|
36531
|
+
yt += +this.p.v[0], Dt += +this.p.v[1], this.v.setTripleAt(yt, Dt, yt - Ft * at * lt * $t, Dt - Vt * at * lt * $t, yt + Ft * at * lt * $t, Dt + Vt * at * lt * $t, I, !0), dt = !dt, It += ut * $t;
|
|
36532
36532
|
}
|
|
36533
36533
|
}, convertPolygonToPath: function() {
|
|
36534
36534
|
var I, ot = Math.floor(this.pt.v), lt = 2 * Math.PI / ot, at = this.or.v, ct = this.os.v, ut = 2 * Math.PI * at / (4 * ot), dt = 0.5 * -Math.PI, pt = this.data.d === 3 ? -1 : 1;
|
|
@@ -36649,7 +36649,7 @@ var lottie = createCommonjsModule((function(module, exports$1) {
|
|
|
36649
36649
|
function It(zt) {
|
|
36650
36650
|
return this.getInverseMatrix().applyToPointArray(zt[0], zt[1], zt[2] || 0);
|
|
36651
36651
|
}
|
|
36652
|
-
function
|
|
36652
|
+
function $t(zt) {
|
|
36653
36653
|
var Ht, Ut = zt.length, nr = [];
|
|
36654
36654
|
for (Ht = 0; Ht < Ut; Ht += 1) nr[Ht] = It(zt[Ht]);
|
|
36655
36655
|
return nr;
|
|
@@ -36666,7 +36666,7 @@ var lottie = createCommonjsModule((function(module, exports$1) {
|
|
|
36666
36666
|
function Dt(zt, Ht, Ut) {
|
|
36667
36667
|
return this.isIdentity() ? [zt, Ht, Ut] : [zt * this.props[0] + Ht * this.props[4] + Ut * this.props[8] + this.props[12], zt * this.props[1] + Ht * this.props[5] + Ut * this.props[9] + this.props[13], zt * this.props[2] + Ht * this.props[6] + Ut * this.props[10] + this.props[14]];
|
|
36668
36668
|
}
|
|
36669
|
-
function
|
|
36669
|
+
function Ft(zt, Ht) {
|
|
36670
36670
|
if (this.isIdentity()) return zt + "," + Ht;
|
|
36671
36671
|
var Ut = this.props;
|
|
36672
36672
|
return Math.round(100 * (zt * Ut[0] + Ht * Ut[4] + Ut[12])) / 100 + "," + Math.round(100 * (zt * Ut[1] + Ht * Ut[5] + Ut[13])) / 100;
|
|
@@ -36683,7 +36683,7 @@ var lottie = createCommonjsModule((function(module, exports$1) {
|
|
|
36683
36683
|
return "matrix(" + Wt(zt[0]) + "," + Wt(zt[1]) + "," + Wt(zt[4]) + "," + Wt(zt[5]) + "," + Wt(zt[12]) + "," + Wt(zt[13]) + ")";
|
|
36684
36684
|
}
|
|
36685
36685
|
return function() {
|
|
36686
|
-
this.reset = a, this.rotate = s, this.rotateX = l, this.rotateY = c, this.rotateZ = d, this.skew = S, this.skewFromAxis = R, this.shear = f, this.scale = V, this.setTransform = I, this.translate = ot, this.transform = lt, this.multiply = at, this.applyToPoint = ft, this.applyToX = mt, this.applyToY = Ct, this.applyToZ = Rt, this.applyToPointArray = Dt, this.applyToTriplePoints = yt, this.applyToPointStringified =
|
|
36686
|
+
this.reset = a, this.rotate = s, this.rotateX = l, this.rotateY = c, this.rotateZ = d, this.skew = S, this.skewFromAxis = R, this.shear = f, this.scale = V, this.setTransform = I, this.translate = ot, this.transform = lt, this.multiply = at, this.applyToPoint = ft, this.applyToX = mt, this.applyToY = Ct, this.applyToZ = Rt, this.applyToPointArray = Dt, this.applyToTriplePoints = yt, this.applyToPointStringified = Ft, this.toCSS = Vt, this.to2dCSS = qt, this.clone = dt, this.cloneFromProps = pt, this.equals = ut, this.inversePoints = $t, this.inversePoint = It, this.getInverseMatrix = Mt, this._t = this.transform, this.isIdentity = ct, this._identity = !0, this._identityCalculated = !1, this.props = createTypedArray("float32", 16), this.reset();
|
|
36687
36687
|
};
|
|
36688
36688
|
})();
|
|
36689
36689
|
function _typeof$3(e) {
|
|
@@ -38064,10 +38064,10 @@ var lottie = createCommonjsModule((function(module, exports$1) {
|
|
|
38064
38064
|
if (f.t === 1) (S.e._mdf || R) && (ct.setAttribute("x2", pt[0]), ct.setAttribute("y2", pt[1]), ut && !S.g._collapsable && (S.of.setAttribute("x2", pt[0]), S.of.setAttribute("y2", pt[1])));
|
|
38065
38065
|
else if ((S.s._mdf || S.e._mdf || R) && (at = Math.sqrt(Math.pow(dt[0] - pt[0], 2) + Math.pow(dt[1] - pt[1], 2)), ct.setAttribute("r", at), ut && !S.g._collapsable && S.of.setAttribute("r", at)), S.e._mdf || S.h._mdf || S.a._mdf || R) {
|
|
38066
38066
|
at || (at = Math.sqrt(Math.pow(dt[0] - pt[0], 2) + Math.pow(dt[1] - pt[1], 2)));
|
|
38067
|
-
var It = Math.atan2(pt[1] - dt[1], pt[0] - dt[0]),
|
|
38068
|
-
|
|
38069
|
-
var yt = at *
|
|
38070
|
-
ct.setAttribute("fx", Dt), ct.setAttribute("fy",
|
|
38067
|
+
var It = Math.atan2(pt[1] - dt[1], pt[0] - dt[0]), $t = S.h.v;
|
|
38068
|
+
$t >= 1 ? $t = 0.99 : $t <= -1 && ($t = -0.99);
|
|
38069
|
+
var yt = at * $t, Dt = Math.cos(It + S.a.v) * yt + dt[0], Ft = Math.sin(It + S.a.v) * yt + dt[1];
|
|
38070
|
+
ct.setAttribute("fx", Dt), ct.setAttribute("fy", Ft), ut && !S.g._collapsable && (S.of.setAttribute("fx", Dt), S.of.setAttribute("fy", Ft));
|
|
38071
38071
|
}
|
|
38072
38072
|
}
|
|
38073
38073
|
function d(f, S, R) {
|
|
@@ -38213,15 +38213,15 @@ var lottie = createCommonjsModule((function(module, exports$1) {
|
|
|
38213
38213
|
var t, n, o, a, s, l, c, d = this.elem.globalData.fontManager, f = this.data, S = [], R = 0, V = f.m.g, I = 0, ot = 0, lt = 0, at = [], ct = 0, ut = 0, dt = d.getFontByName(e.f), pt = 0, ft = getFontProperties(dt);
|
|
38214
38214
|
e.fWeight = ft.weight, e.fStyle = ft.style, e.finalSize = e.s, e.finalText = this.buildFinalText(e.t), n = e.finalText.length, e.finalLineHeight = e.lh;
|
|
38215
38215
|
var mt, Ct = e.tr / 1e3 * e.finalSize;
|
|
38216
|
-
if (e.sz) for (var Rt, Mt, It = !0,
|
|
38216
|
+
if (e.sz) for (var Rt, Mt, It = !0, $t = e.sz[0], yt = e.sz[1]; It; ) {
|
|
38217
38217
|
Rt = 0, ct = 0, n = (Mt = this.buildFinalText(e.t)).length, Ct = e.tr / 1e3 * e.finalSize;
|
|
38218
38218
|
var Dt = -1;
|
|
38219
|
-
for (t = 0; t < n; t += 1) mt = Mt[t].charCodeAt(0), o = !1, Mt[t] === " " ? Dt = t : mt !== 13 && mt !== 3 || (ct = 0, o = !0, Rt += e.finalLineHeight || 1.2 * e.finalSize), d.chars ? (c = d.getCharData(Mt[t], dt.fStyle, dt.fFamily), pt = o ? 0 : c.w * e.finalSize / 100) : pt = d.measureText(Mt[t], e.f, e.finalSize), ct + pt >
|
|
38219
|
+
for (t = 0; t < n; t += 1) mt = Mt[t].charCodeAt(0), o = !1, Mt[t] === " " ? Dt = t : mt !== 13 && mt !== 3 || (ct = 0, o = !0, Rt += e.finalLineHeight || 1.2 * e.finalSize), d.chars ? (c = d.getCharData(Mt[t], dt.fStyle, dt.fFamily), pt = o ? 0 : c.w * e.finalSize / 100) : pt = d.measureText(Mt[t], e.f, e.finalSize), ct + pt > $t && Mt[t] !== " " ? (Dt === -1 ? n += 1 : t = Dt, Rt += e.finalLineHeight || 1.2 * e.finalSize, Mt.splice(t, Dt === t ? 1 : 0, "\r"), Dt = -1, ct = 0) : (ct += pt, ct += Ct);
|
|
38220
38220
|
Rt += dt.ascent * e.finalSize / 100, this.canResize && e.finalSize > this.minimumFontSize && yt < Rt ? (e.finalSize -= 1, e.finalLineHeight = e.finalSize * e.lh / e.s) : (e.finalText = Mt, n = e.finalText.length, It = !1);
|
|
38221
38221
|
}
|
|
38222
38222
|
ct = -Ct, pt = 0;
|
|
38223
|
-
var
|
|
38224
|
-
for (t = 0; t < n; t += 1) if (o = !1, (mt = (
|
|
38223
|
+
var Ft, Vt = 0;
|
|
38224
|
+
for (t = 0; t < n; t += 1) if (o = !1, (mt = (Ft = e.finalText[t]).charCodeAt(0)) === 13 || mt === 3 ? (Vt = 0, at.push(ct), ut = ct > ut ? ct : ut, ct = -2 * Ct, a = "", o = !0, lt += 1) : a = Ft, d.chars ? (c = d.getCharData(Ft, dt.fStyle, d.getFontByName(e.f).fFamily), pt = o ? 0 : c.w * e.finalSize / 100) : pt = d.measureText(a, e.f, e.finalSize), Ft === " " ? Vt += pt + Ct : (ct += pt + Ct + Vt, Vt = 0), S.push({ l: pt, an: pt, add: I, n: o, anIndexes: [], val: a, line: lt, animatorJustifyOffset: 0 }), V == 2) {
|
|
38225
38225
|
if (I += pt, a === "" || a === " " || t === n - 1) {
|
|
38226
38226
|
for (a !== "" && a !== " " || (I -= pt); ot <= t; ) S[ot].an = I, S[ot].ind = R, S[ot].extra = pt, ot += 1;
|
|
38227
38227
|
R += 1, I = 0;
|
|
@@ -38322,7 +38322,7 @@ var lottie = createCommonjsModule((function(module, exports$1) {
|
|
|
38322
38322
|
}, TextAnimatorProperty.prototype.getMeasures = function(e, t) {
|
|
38323
38323
|
if (this.lettersChangedFlag = t, this._mdf || this._isFirstFrame || t || this._hasMaskedPath && this._pathData.m._mdf) {
|
|
38324
38324
|
this._isFirstFrame = !1;
|
|
38325
|
-
var n, o, a, s, l, c, d, f, S, R, V, I, ot, lt, at, ct, ut, dt, pt, ft = this._moreOptions.alignment.v, mt = this._animatorsData, Ct = this._textData, Rt = this.mHelper, Mt = this._renderType, It = this.renderedLetters.length,
|
|
38325
|
+
var n, o, a, s, l, c, d, f, S, R, V, I, ot, lt, at, ct, ut, dt, pt, ft = this._moreOptions.alignment.v, mt = this._animatorsData, Ct = this._textData, Rt = this.mHelper, Mt = this._renderType, It = this.renderedLetters.length, $t = e.l;
|
|
38326
38326
|
if (this._hasMaskedPath) {
|
|
38327
38327
|
if (pt = this._pathData.m, !this._pathData.n || this._pathData._mdf) {
|
|
38328
38328
|
var yt, Dt = pt.v;
|
|
@@ -38332,68 +38332,68 @@ var lottie = createCommonjsModule((function(module, exports$1) {
|
|
|
38332
38332
|
if (l = this._pathData.pi, c = this._pathData.f.v, V = 0, R = 1, f = 0, S = !0, lt = l.segments, c < 0 && pt.v.c) for (l.tLength < Math.abs(c) && (c = -Math.abs(c) % l.tLength), R = (ot = lt[V = lt.length - 1].points).length - 1; c < 0; ) c += ot[R].partialLength, (R -= 1) < 0 && (R = (ot = lt[V -= 1].points).length - 1);
|
|
38333
38333
|
I = (ot = lt[V].points)[R - 1], at = (d = ot[R]).partialLength;
|
|
38334
38334
|
}
|
|
38335
|
-
s =
|
|
38336
|
-
var
|
|
38335
|
+
s = $t.length, n = 0, o = 0;
|
|
38336
|
+
var Ft, Vt, Wt, qt, zt, Ht = 1.2 * e.finalSize * 0.714, Ut = !0;
|
|
38337
38337
|
Wt = mt.length;
|
|
38338
38338
|
var nr, Zt, sr, dr, Jt, hr, Yt, or, Qt, er, yr, Xt, xr = -1, lr = c, ur = V, Sr = R, Rr = -1, Cr = "", Pr = this.defaultPropsArray;
|
|
38339
38339
|
if (e.j === 2 || e.j === 1) {
|
|
38340
38340
|
var _r = 0, Kt = 0, ar = e.j === 2 ? -0.5 : -1, rr = 0, gr = !0;
|
|
38341
|
-
for (a = 0; a < s; a += 1) if (
|
|
38342
|
-
for (_r && (_r += Kt); rr < a; )
|
|
38341
|
+
for (a = 0; a < s; a += 1) if ($t[a].n) {
|
|
38342
|
+
for (_r && (_r += Kt); rr < a; ) $t[rr].animatorJustifyOffset = _r, rr += 1;
|
|
38343
38343
|
_r = 0, gr = !0;
|
|
38344
38344
|
} else {
|
|
38345
|
-
for (Vt = 0; Vt < Wt; Vt += 1) (
|
|
38345
|
+
for (Vt = 0; Vt < Wt; Vt += 1) (Ft = mt[Vt].a).t.propType && (gr && e.j === 2 && (Kt += Ft.t.v * ar), (zt = mt[Vt].s.getMult($t[a].anIndexes[Vt], Ct.a[Vt].s.totalChars)).length ? _r += Ft.t.v * zt[0] * ar : _r += Ft.t.v * zt * ar);
|
|
38346
38346
|
gr = !1;
|
|
38347
38347
|
}
|
|
38348
|
-
for (_r && (_r += Kt); rr < a; )
|
|
38348
|
+
for (_r && (_r += Kt); rr < a; ) $t[rr].animatorJustifyOffset = _r, rr += 1;
|
|
38349
38349
|
}
|
|
38350
38350
|
for (a = 0; a < s; a += 1) {
|
|
38351
|
-
if (Rt.reset(), dr = 1,
|
|
38351
|
+
if (Rt.reset(), dr = 1, $t[a].n) n = 0, o += e.yOffset, o += Ut ? 1 : 0, c = lr, Ut = !1, this._hasMaskedPath && (R = Sr, I = (ot = lt[V = ur].points)[R - 1], at = (d = ot[R]).partialLength, f = 0), Cr = "", yr = "", Qt = "", Xt = "", Pr = this.defaultPropsArray;
|
|
38352
38352
|
else {
|
|
38353
38353
|
if (this._hasMaskedPath) {
|
|
38354
|
-
if (Rr !==
|
|
38354
|
+
if (Rr !== $t[a].line) {
|
|
38355
38355
|
switch (e.j) {
|
|
38356
38356
|
case 1:
|
|
38357
|
-
c += ct - e.lineWidths[
|
|
38357
|
+
c += ct - e.lineWidths[$t[a].line];
|
|
38358
38358
|
break;
|
|
38359
38359
|
case 2:
|
|
38360
|
-
c += (ct - e.lineWidths[
|
|
38360
|
+
c += (ct - e.lineWidths[$t[a].line]) / 2;
|
|
38361
38361
|
}
|
|
38362
|
-
Rr =
|
|
38362
|
+
Rr = $t[a].line;
|
|
38363
38363
|
}
|
|
38364
|
-
xr !==
|
|
38364
|
+
xr !== $t[a].ind && ($t[xr] && (c += $t[xr].extra), c += $t[a].an / 2, xr = $t[a].ind), c += ft[0] * $t[a].an * 5e-3;
|
|
38365
38365
|
var pr = 0;
|
|
38366
|
-
for (Vt = 0; Vt < Wt; Vt += 1) (
|
|
38367
|
-
for (S = !0, this._pathData.a.v && (c = 0.5 *
|
|
38368
|
-
nr =
|
|
38369
|
-
} else nr =
|
|
38370
|
-
for (Vt = 0; Vt < Wt; Vt += 1) (
|
|
38371
|
-
for (e.strokeWidthAnim && (hr = e.sw || 0), e.strokeColorAnim && (Jt = e.sc ? [e.sc[0], e.sc[1], e.sc[2]] : [0, 0, 0]), e.fillColorAnim && e.fc && (Yt = [e.fc[0], e.fc[1], e.fc[2]]), Vt = 0; Vt < Wt; Vt += 1) (
|
|
38372
|
-
for (Vt = 0; Vt < Wt; Vt += 1) (
|
|
38366
|
+
for (Vt = 0; Vt < Wt; Vt += 1) (Ft = mt[Vt].a).p.propType && ((zt = mt[Vt].s.getMult($t[a].anIndexes[Vt], Ct.a[Vt].s.totalChars)).length ? pr += Ft.p.v[0] * zt[0] : pr += Ft.p.v[0] * zt), Ft.a.propType && ((zt = mt[Vt].s.getMult($t[a].anIndexes[Vt], Ct.a[Vt].s.totalChars)).length ? pr += Ft.a.v[0] * zt[0] : pr += Ft.a.v[0] * zt);
|
|
38367
|
+
for (S = !0, this._pathData.a.v && (c = 0.5 * $t[0].an + (ct - this._pathData.f.v - 0.5 * $t[0].an - 0.5 * $t[$t.length - 1].an) * xr / (s - 1), c += this._pathData.f.v); S; ) f + at >= c + pr || !ot ? (ut = (c + pr - f) / d.partialLength, Zt = I.point[0] + (d.point[0] - I.point[0]) * ut, sr = I.point[1] + (d.point[1] - I.point[1]) * ut, Rt.translate(-ft[0] * $t[a].an * 5e-3, -ft[1] * Ht * 0.01), S = !1) : ot && (f += d.partialLength, (R += 1) >= ot.length && (R = 0, lt[V += 1] ? ot = lt[V].points : pt.v.c ? (R = 0, ot = lt[V = 0].points) : (f -= d.partialLength, ot = null)), ot && (I = d, at = (d = ot[R]).partialLength));
|
|
38368
|
+
nr = $t[a].an / 2 - $t[a].add, Rt.translate(-nr, 0, 0);
|
|
38369
|
+
} else nr = $t[a].an / 2 - $t[a].add, Rt.translate(-nr, 0, 0), Rt.translate(-ft[0] * $t[a].an * 5e-3, -ft[1] * Ht * 0.01, 0);
|
|
38370
|
+
for (Vt = 0; Vt < Wt; Vt += 1) (Ft = mt[Vt].a).t.propType && (zt = mt[Vt].s.getMult($t[a].anIndexes[Vt], Ct.a[Vt].s.totalChars), n === 0 && e.j === 0 || (this._hasMaskedPath ? zt.length ? c += Ft.t.v * zt[0] : c += Ft.t.v * zt : zt.length ? n += Ft.t.v * zt[0] : n += Ft.t.v * zt));
|
|
38371
|
+
for (e.strokeWidthAnim && (hr = e.sw || 0), e.strokeColorAnim && (Jt = e.sc ? [e.sc[0], e.sc[1], e.sc[2]] : [0, 0, 0]), e.fillColorAnim && e.fc && (Yt = [e.fc[0], e.fc[1], e.fc[2]]), Vt = 0; Vt < Wt; Vt += 1) (Ft = mt[Vt].a).a.propType && ((zt = mt[Vt].s.getMult($t[a].anIndexes[Vt], Ct.a[Vt].s.totalChars)).length ? Rt.translate(-Ft.a.v[0] * zt[0], -Ft.a.v[1] * zt[1], Ft.a.v[2] * zt[2]) : Rt.translate(-Ft.a.v[0] * zt, -Ft.a.v[1] * zt, Ft.a.v[2] * zt));
|
|
38372
|
+
for (Vt = 0; Vt < Wt; Vt += 1) (Ft = mt[Vt].a).s.propType && ((zt = mt[Vt].s.getMult($t[a].anIndexes[Vt], Ct.a[Vt].s.totalChars)).length ? Rt.scale(1 + (Ft.s.v[0] - 1) * zt[0], 1 + (Ft.s.v[1] - 1) * zt[1], 1) : Rt.scale(1 + (Ft.s.v[0] - 1) * zt, 1 + (Ft.s.v[1] - 1) * zt, 1));
|
|
38373
38373
|
for (Vt = 0; Vt < Wt; Vt += 1) {
|
|
38374
|
-
if (
|
|
38374
|
+
if (Ft = mt[Vt].a, zt = mt[Vt].s.getMult($t[a].anIndexes[Vt], Ct.a[Vt].s.totalChars), Ft.sk.propType && (zt.length ? Rt.skewFromAxis(-Ft.sk.v * zt[0], Ft.sa.v * zt[1]) : Rt.skewFromAxis(-Ft.sk.v * zt, Ft.sa.v * zt)), Ft.r.propType && (zt.length ? Rt.rotateZ(-Ft.r.v * zt[2]) : Rt.rotateZ(-Ft.r.v * zt)), Ft.ry.propType && (zt.length ? Rt.rotateY(Ft.ry.v * zt[1]) : Rt.rotateY(Ft.ry.v * zt)), Ft.rx.propType && (zt.length ? Rt.rotateX(Ft.rx.v * zt[0]) : Rt.rotateX(Ft.rx.v * zt)), Ft.o.propType && (zt.length ? dr += (Ft.o.v * zt[0] - dr) * zt[0] : dr += (Ft.o.v * zt - dr) * zt), e.strokeWidthAnim && Ft.sw.propType && (zt.length ? hr += Ft.sw.v * zt[0] : hr += Ft.sw.v * zt), e.strokeColorAnim && Ft.sc.propType) for (or = 0; or < 3; or += 1) zt.length ? Jt[or] += (Ft.sc.v[or] - Jt[or]) * zt[0] : Jt[or] += (Ft.sc.v[or] - Jt[or]) * zt;
|
|
38375
38375
|
if (e.fillColorAnim && e.fc) {
|
|
38376
|
-
if (
|
|
38377
|
-
|
|
38376
|
+
if (Ft.fc.propType) for (or = 0; or < 3; or += 1) zt.length ? Yt[or] += (Ft.fc.v[or] - Yt[or]) * zt[0] : Yt[or] += (Ft.fc.v[or] - Yt[or]) * zt;
|
|
38377
|
+
Ft.fh.propType && (Yt = zt.length ? addHueToRGB(Yt, Ft.fh.v * zt[0]) : addHueToRGB(Yt, Ft.fh.v * zt)), Ft.fs.propType && (Yt = zt.length ? addSaturationToRGB(Yt, Ft.fs.v * zt[0]) : addSaturationToRGB(Yt, Ft.fs.v * zt)), Ft.fb.propType && (Yt = zt.length ? addBrightnessToRGB(Yt, Ft.fb.v * zt[0]) : addBrightnessToRGB(Yt, Ft.fb.v * zt));
|
|
38378
38378
|
}
|
|
38379
38379
|
}
|
|
38380
|
-
for (Vt = 0; Vt < Wt; Vt += 1) (
|
|
38380
|
+
for (Vt = 0; Vt < Wt; Vt += 1) (Ft = mt[Vt].a).p.propType && (zt = mt[Vt].s.getMult($t[a].anIndexes[Vt], Ct.a[Vt].s.totalChars), this._hasMaskedPath ? zt.length ? Rt.translate(0, Ft.p.v[1] * zt[0], -Ft.p.v[2] * zt[1]) : Rt.translate(0, Ft.p.v[1] * zt, -Ft.p.v[2] * zt) : zt.length ? Rt.translate(Ft.p.v[0] * zt[0], Ft.p.v[1] * zt[1], -Ft.p.v[2] * zt[2]) : Rt.translate(Ft.p.v[0] * zt, Ft.p.v[1] * zt, -Ft.p.v[2] * zt));
|
|
38381
38381
|
if (e.strokeWidthAnim && (Qt = hr < 0 ? 0 : hr), e.strokeColorAnim && (er = "rgb(" + Math.round(255 * Jt[0]) + "," + Math.round(255 * Jt[1]) + "," + Math.round(255 * Jt[2]) + ")"), e.fillColorAnim && e.fc && (yr = "rgb(" + Math.round(255 * Yt[0]) + "," + Math.round(255 * Yt[1]) + "," + Math.round(255 * Yt[2]) + ")"), this._hasMaskedPath) {
|
|
38382
38382
|
if (Rt.translate(0, -e.ls), Rt.translate(0, ft[1] * Ht * 0.01 + o, 0), this._pathData.p.v) {
|
|
38383
38383
|
dt = (d.point[1] - I.point[1]) / (d.point[0] - I.point[0]);
|
|
38384
38384
|
var mr = 180 * Math.atan(dt) / Math.PI;
|
|
38385
38385
|
d.point[0] < I.point[0] && (mr += 180), Rt.rotate(-mr * Math.PI / 180);
|
|
38386
38386
|
}
|
|
38387
|
-
Rt.translate(Zt, sr, 0), c -= ft[0] *
|
|
38387
|
+
Rt.translate(Zt, sr, 0), c -= ft[0] * $t[a].an * 5e-3, $t[a + 1] && xr !== $t[a + 1].ind && (c += $t[a].an / 2, c += 1e-3 * e.tr * e.finalSize);
|
|
38388
38388
|
} else {
|
|
38389
38389
|
switch (Rt.translate(n, o, 0), e.ps && Rt.translate(e.ps[0], e.ps[1] + e.ascent, 0), e.j) {
|
|
38390
38390
|
case 1:
|
|
38391
|
-
Rt.translate(
|
|
38391
|
+
Rt.translate($t[a].animatorJustifyOffset + e.justifyOffset + (e.boxWidth - e.lineWidths[$t[a].line]), 0, 0);
|
|
38392
38392
|
break;
|
|
38393
38393
|
case 2:
|
|
38394
|
-
Rt.translate(
|
|
38394
|
+
Rt.translate($t[a].animatorJustifyOffset + e.justifyOffset + (e.boxWidth - e.lineWidths[$t[a].line]) / 2, 0, 0);
|
|
38395
38395
|
}
|
|
38396
|
-
Rt.translate(0, -e.ls), Rt.translate(nr, 0, 0), Rt.translate(ft[0] *
|
|
38396
|
+
Rt.translate(0, -e.ls), Rt.translate(nr, 0, 0), Rt.translate(ft[0] * $t[a].an * 5e-3, ft[1] * Ht * 0.01, 0), n += $t[a].l + 1e-3 * e.tr * e.finalSize;
|
|
38397
38397
|
}
|
|
38398
38398
|
Mt === "html" ? Cr = Rt.toCSS() : Mt === "svg" ? Cr = Rt.to2dCSS() : Pr = [Rt.props[0], Rt.props[1], Rt.props[2], Rt.props[3], Rt.props[4], Rt.props[5], Rt.props[6], Rt.props[7], Rt.props[8], Rt.props[9], Rt.props[10], Rt.props[11], Rt.props[12], Rt.props[13], Rt.props[14], Rt.props[15]], Xt = dr;
|
|
38399
38399
|
}
|
|
@@ -40106,7 +40106,7 @@ var lottie = createCommonjsModule((function(module, exports$1) {
|
|
|
40106
40106
|
at.propertyGroup = propertyGroupFactory(at, lt);
|
|
40107
40107
|
var ct = (function(dt, pt, ft) {
|
|
40108
40108
|
var mt, Ct = function(Mt) {
|
|
40109
|
-
for (var It = 0,
|
|
40109
|
+
for (var It = 0, $t = mt.length; It < $t; ) {
|
|
40110
40110
|
if (mt[It]._name === Mt || mt[It].mn === Mt || mt[It].propertyIndex === Mt || mt[It].ix === Mt || mt[It].ind === Mt) return mt[It];
|
|
40111
40111
|
It += 1;
|
|
40112
40112
|
}
|
|
@@ -40307,12 +40307,12 @@ var lottie = createCommonjsModule((function(module, exports$1) {
|
|
|
40307
40307
|
return (Ct - mt) * Mt + Rt;
|
|
40308
40308
|
}
|
|
40309
40309
|
if (R === "continue") {
|
|
40310
|
-
var It = this.getValueAtTime(ft / this.comp.globalData.frameRate, 0),
|
|
40310
|
+
var It = this.getValueAtTime(ft / this.comp.globalData.frameRate, 0), $t = this.getValueAtTime((ft - 1e-3) / this.comp.globalData.frameRate, 0);
|
|
40311
40311
|
if (this.pv.length) {
|
|
40312
|
-
for (ct = (ut = new Array(It.length)).length, at = 0; at < ct; at += 1) ut[at] = It[at] + (It[at] -
|
|
40312
|
+
for (ct = (ut = new Array(It.length)).length, at = 0; at < ct; at += 1) ut[at] = It[at] + (It[at] - $t[at]) * ((dt - ft) / this.comp.globalData.frameRate) / 5e-4;
|
|
40313
40313
|
return ut;
|
|
40314
40314
|
}
|
|
40315
|
-
return It + (dt - ft) / 1e-3 * (It -
|
|
40315
|
+
return It + (dt - ft) / 1e-3 * (It - $t);
|
|
40316
40316
|
}
|
|
40317
40317
|
}
|
|
40318
40318
|
return this.getValueAtTime(((dt - lt) % ot + lt) / this.comp.globalData.frameRate, 0);
|
|
@@ -40334,12 +40334,12 @@ var lottie = createCommonjsModule((function(module, exports$1) {
|
|
|
40334
40334
|
return Rt - (Ct - mt) * Mt;
|
|
40335
40335
|
}
|
|
40336
40336
|
if (R === "continue") {
|
|
40337
|
-
var It = this.getValueAtTime(ft / this.comp.globalData.frameRate, 0),
|
|
40337
|
+
var It = this.getValueAtTime(ft / this.comp.globalData.frameRate, 0), $t = this.getValueAtTime((ft + 1e-3) / this.comp.globalData.frameRate, 0);
|
|
40338
40338
|
if (this.pv.length) {
|
|
40339
|
-
for (ct = (ut = new Array(It.length)).length, at = 0; at < ct; at += 1) ut[at] = It[at] + (It[at] -
|
|
40339
|
+
for (ct = (ut = new Array(It.length)).length, at = 0; at < ct; at += 1) ut[at] = It[at] + (It[at] - $t[at]) * (ft - dt) / 1e-3;
|
|
40340
40340
|
return ut;
|
|
40341
40341
|
}
|
|
40342
|
-
return It + (It -
|
|
40342
|
+
return It + (It - $t) * (ft - dt) / 1e-3;
|
|
40343
40343
|
}
|
|
40344
40344
|
}
|
|
40345
40345
|
return this.getValueAtTime((ot - ((ft - dt) % ot + ft)) / this.comp.globalData.frameRate, 0);
|
|
@@ -43364,7 +43364,7 @@ var SCROLL_AREA_NAME = "ScrollArea", [createScrollAreaContext] = createContextSc
|
|
|
43364
43364
|
dir: a,
|
|
43365
43365
|
scrollHideDelay: s = 600,
|
|
43366
43366
|
...l
|
|
43367
|
-
} = e, [c, d] = React.useState(null), [f, S] = React.useState(null), [R, V] = React.useState(null), [I, ot] = React.useState(null), [lt, at] = React.useState(null), [ct, ut] = React.useState(0), [dt, pt] = React.useState(0), [ft, mt] = React.useState(!1), [Ct, Rt] = React.useState(!1), Mt = useComposedRefs(t, (
|
|
43367
|
+
} = e, [c, d] = React.useState(null), [f, S] = React.useState(null), [R, V] = React.useState(null), [I, ot] = React.useState(null), [lt, at] = React.useState(null), [ct, ut] = React.useState(0), [dt, pt] = React.useState(0), [ft, mt] = React.useState(!1), [Ct, Rt] = React.useState(!1), Mt = useComposedRefs(t, ($t) => d($t)), It = useDirection(a);
|
|
43368
43368
|
return /* @__PURE__ */ jsx(
|
|
43369
43369
|
ScrollAreaProvider,
|
|
43370
43370
|
{
|
|
@@ -43689,14 +43689,14 @@ var ScrollAreaScrollbarHover = React.forwardRef((e, t) => {
|
|
|
43689
43689
|
} = e, I = useScrollAreaContext(SCROLLBAR_NAME, n), [ot, lt] = React.useState(null), at = useComposedRefs(t, (Mt) => lt(Mt)), ct = React.useRef(null), ut = React.useRef(""), dt = I.viewport, pt = o.content - o.viewport, ft = useCallbackRef$1(S), mt = useCallbackRef$1(d), Ct = useDebounceCallback(R, 10);
|
|
43690
43690
|
function Rt(Mt) {
|
|
43691
43691
|
if (ct.current) {
|
|
43692
|
-
const It = Mt.clientX - ct.current.left,
|
|
43693
|
-
f({ x: It, y:
|
|
43692
|
+
const It = Mt.clientX - ct.current.left, $t = Mt.clientY - ct.current.top;
|
|
43693
|
+
f({ x: It, y: $t });
|
|
43694
43694
|
}
|
|
43695
43695
|
}
|
|
43696
43696
|
return React.useEffect(() => {
|
|
43697
43697
|
const Mt = (It) => {
|
|
43698
|
-
const
|
|
43699
|
-
ot?.contains(
|
|
43698
|
+
const $t = It.target;
|
|
43699
|
+
ot?.contains($t) && ft(It, pt);
|
|
43700
43700
|
};
|
|
43701
43701
|
return document.addEventListener("wheel", Mt, { passive: !1 }), () => document.removeEventListener("wheel", Mt, { passive: !1 });
|
|
43702
43702
|
}, [dt, ot, pt, ft]), React.useEffect(mt, [o, mt]), useResizeObserver(ot, Ct), useResizeObserver(I.content, Ct), /* @__PURE__ */ jsx(
|
|
@@ -44093,8 +44093,8 @@ function ChatLeftSidebar({
|
|
|
44093
44093
|
activeChat: S
|
|
44094
44094
|
}) {
|
|
44095
44095
|
const [R, V] = useState(""), [I, ot] = useState(null), [lt, at] = useState(null), ct = useMemo(() => t.filter((Dt) => {
|
|
44096
|
-
const
|
|
44097
|
-
return Dt.name.toLowerCase().includes(R.toLowerCase()) ||
|
|
44096
|
+
const Ft = e === Dt.partner1 ? Dt.partner2 : Dt.partner1;
|
|
44097
|
+
return Dt.name.toLowerCase().includes(R.toLowerCase()) || Ft.toLocaleLowerCase().includes(R.toLowerCase());
|
|
44098
44098
|
}), [e, t, R]), { toast: ut } = useToast(), { data: dt, isLoading: pt } = useGetV4UserQuery(), ft = dt?.Name || dt?.EmailAddress || "User", mt = dt?.Role || "Partner", [Ct] = usePostV4UserByFieldNameMutation(), [Rt] = usePutV4PartnerByRouteApplicationIdUserAndEmailAddressNotificationNotificationTypeMutation(), [Mt] = useDeleteV4PartnerByRouteApplicationIdUserAndEmailAddressNotificationNotificationTypeMutation(), It = (Dt) => {
|
|
44099
44099
|
if (!dt?.ApplicationId || !dt.EmailAddress) {
|
|
44100
44100
|
ut({
|
|
@@ -44111,7 +44111,7 @@ function ChatLeftSidebar({
|
|
|
44111
44111
|
}, [I, ft]), useEffect(() => {
|
|
44112
44112
|
lt === null && mt && at(mt);
|
|
44113
44113
|
}, [lt, mt]);
|
|
44114
|
-
const
|
|
44114
|
+
const $t = () => {
|
|
44115
44115
|
I && I !== ft && I.trim() !== "" && Ct({ fieldName: "Name", newValue: I }).unwrap().then(() => {
|
|
44116
44116
|
ut({ title: "Success", description: "Name updated successfully" });
|
|
44117
44117
|
});
|
|
@@ -44192,7 +44192,7 @@ function ChatLeftSidebar({
|
|
|
44192
44192
|
{
|
|
44193
44193
|
value: I ?? "",
|
|
44194
44194
|
onChange: (Dt) => ot(Dt.target.value),
|
|
44195
|
-
onBlur:
|
|
44195
|
+
onBlur: $t,
|
|
44196
44196
|
className: "mt-1 h-8 border-0 bg-transparent px-0 text-sm font-medium shadow-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"
|
|
44197
44197
|
}
|
|
44198
44198
|
)
|
|
@@ -46918,12 +46918,12 @@ function createDOMPurify() {
|
|
|
46918
46918
|
} = n, {
|
|
46919
46919
|
importNode: It
|
|
46920
46920
|
} = o;
|
|
46921
|
-
let
|
|
46921
|
+
let $t = _createHooksMap();
|
|
46922
46922
|
t.isSupported = typeof entries == "function" && typeof dt == "function" && mt && mt.createHTMLDocument !== void 0;
|
|
46923
46923
|
const {
|
|
46924
46924
|
MUSTACHE_EXPR: yt,
|
|
46925
46925
|
ERB_EXPR: Dt,
|
|
46926
|
-
TMPLIT_EXPR:
|
|
46926
|
+
TMPLIT_EXPR: Ft,
|
|
46927
46927
|
DATA_ATTR: Vt,
|
|
46928
46928
|
ARIA_ATTR: Wt,
|
|
46929
46929
|
IS_SCRIPT_OR_DATA: qt,
|
|
@@ -47085,10 +47085,10 @@ function createDOMPurify() {
|
|
|
47085
47085
|
}
|
|
47086
47086
|
const kn = function(ir) {
|
|
47087
47087
|
let wr = null;
|
|
47088
|
-
if (tn(
|
|
47088
|
+
if (tn($t.beforeSanitizeElements, ir, null), En(ir))
|
|
47089
47089
|
return en(ir), !0;
|
|
47090
47090
|
const Tr = zr(ir.nodeName);
|
|
47091
|
-
if (tn(
|
|
47091
|
+
if (tn($t.uponSanitizeElement, ir, {
|
|
47092
47092
|
tagName: Tr,
|
|
47093
47093
|
allowedTags: nr
|
|
47094
47094
|
}), lr && ir.hasChildNodes() && !xn(ir.firstElementChild) && regExpTest(/<[/\w!]/g, ir.innerHTML) && regExpTest(/<[/\w!]/g, ir.textContent) || ir.nodeType === NODE_TYPE.progressingInstruction || lr && ir.nodeType === NODE_TYPE.comment && regExpTest(/<[/\w]/g, ir.data))
|
|
@@ -47108,11 +47108,11 @@ function createDOMPurify() {
|
|
|
47108
47108
|
}
|
|
47109
47109
|
return en(ir), !0;
|
|
47110
47110
|
}
|
|
47111
|
-
return ir instanceof d && !jn(ir) || (Tr === "noscript" || Tr === "noembed" || Tr === "noframes") && regExpTest(/<\/no(script|embed|frames)/i, ir.innerHTML) ? (en(ir), !0) : (xr && ir.nodeType === NODE_TYPE.text && (wr = ir.textContent, arrayForEach([yt, Dt,
|
|
47111
|
+
return ir instanceof d && !jn(ir) || (Tr === "noscript" || Tr === "noembed" || Tr === "noframes") && regExpTest(/<\/no(script|embed|frames)/i, ir.innerHTML) ? (en(ir), !0) : (xr && ir.nodeType === NODE_TYPE.text && (wr = ir.textContent, arrayForEach([yt, Dt, Ft], (qr) => {
|
|
47112
47112
|
wr = stringReplace(wr, qr, " ");
|
|
47113
47113
|
}), ir.textContent !== wr && (arrayPush(t.removed, {
|
|
47114
47114
|
element: ir.cloneNode()
|
|
47115
|
-
}), ir.textContent = wr)), tn(
|
|
47115
|
+
}), ir.textContent = wr)), tn($t.afterSanitizeElements, ir, null), !1);
|
|
47116
47116
|
}, bn = function(ir, wr, Tr) {
|
|
47117
47117
|
if (Yt[wr] || Kt && (wr === "id" || wr === "name") && (Tr in n || Tr in Xr))
|
|
47118
47118
|
return !1;
|
|
@@ -47145,7 +47145,7 @@ function createDOMPurify() {
|
|
|
47145
47145
|
}, In = function(ir) {
|
|
47146
47146
|
return ir !== "annotation-xml" && stringMatch(ir, Ht);
|
|
47147
47147
|
}, yn = function(ir) {
|
|
47148
|
-
tn(
|
|
47148
|
+
tn($t.beforeSanitizeAttributes, ir, null);
|
|
47149
47149
|
const {
|
|
47150
47150
|
attributes: wr
|
|
47151
47151
|
} = ir;
|
|
@@ -47166,7 +47166,7 @@ function createDOMPurify() {
|
|
|
47166
47166
|
value: mn
|
|
47167
47167
|
} = rn, Sn = zr(Yr), Pn = mn;
|
|
47168
47168
|
let Zr = Yr === "value" ? Pn : stringTrim(Pn);
|
|
47169
|
-
if (Tr.attrName = Sn, Tr.attrValue = Zr, Tr.keepAttr = !0, Tr.forceKeepAttr = void 0, tn(
|
|
47169
|
+
if (Tr.attrName = Sn, Tr.attrValue = Zr, Tr.keepAttr = !0, Tr.forceKeepAttr = void 0, tn($t.uponSanitizeAttribute, ir, Tr), Zr = Tr.attrValue, ar && (Sn === "id" || Sn === "name") && (an(Yr, ir), Zr = rr + Zr), lr && regExpTest(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, Zr)) {
|
|
47170
47170
|
an(Yr, ir);
|
|
47171
47171
|
continue;
|
|
47172
47172
|
}
|
|
@@ -47184,7 +47184,7 @@ function createDOMPurify() {
|
|
|
47184
47184
|
an(Yr, ir);
|
|
47185
47185
|
continue;
|
|
47186
47186
|
}
|
|
47187
|
-
xr && arrayForEach([yt, Dt,
|
|
47187
|
+
xr && arrayForEach([yt, Dt, Ft], (Mn) => {
|
|
47188
47188
|
Zr = stringReplace(Zr, Mn, " ");
|
|
47189
47189
|
});
|
|
47190
47190
|
const Ln = zr(ir.nodeName);
|
|
@@ -47210,13 +47210,13 @@ function createDOMPurify() {
|
|
|
47210
47210
|
an(Yr, ir);
|
|
47211
47211
|
}
|
|
47212
47212
|
}
|
|
47213
|
-
tn(
|
|
47213
|
+
tn($t.afterSanitizeAttributes, ir, null);
|
|
47214
47214
|
}, _n = function Nr(ir) {
|
|
47215
47215
|
let wr = null;
|
|
47216
47216
|
const Tr = gn(ir);
|
|
47217
|
-
for (tn(
|
|
47218
|
-
tn(
|
|
47219
|
-
tn(
|
|
47217
|
+
for (tn($t.beforeSanitizeShadowDOM, ir, null); wr = Tr.nextNode(); )
|
|
47218
|
+
tn($t.uponSanitizeShadowNode, wr, null), kn(wr), yn(wr), wr.content instanceof s && Nr(wr.content);
|
|
47219
|
+
tn($t.afterSanitizeShadowDOM, ir, null);
|
|
47220
47220
|
};
|
|
47221
47221
|
return t.sanitize = function(Nr) {
|
|
47222
47222
|
let ir = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, wr = null, Tr = null, qr = null, rn = null;
|
|
@@ -47259,7 +47259,7 @@ function createDOMPurify() {
|
|
|
47259
47259
|
}
|
|
47260
47260
|
let nn = ur ? wr.outerHTML : wr.innerHTML;
|
|
47261
47261
|
return ur && nr["!doctype"] && wr.ownerDocument && wr.ownerDocument.doctype && wr.ownerDocument.doctype.name && regExpTest(DOCTYPE_NAME, wr.ownerDocument.doctype.name) && (nn = "<!DOCTYPE " + wr.ownerDocument.doctype.name + `>
|
|
47262
|
-
` + nn), xr && arrayForEach([yt, Dt,
|
|
47262
|
+
` + nn), xr && arrayForEach([yt, Dt, Ft], (mn) => {
|
|
47263
47263
|
nn = stringReplace(nn, mn, " ");
|
|
47264
47264
|
}), pt && _r ? pt.createHTML(nn) : nn;
|
|
47265
47265
|
}, t.setConfig = function() {
|
|
@@ -47272,17 +47272,17 @@ function createDOMPurify() {
|
|
|
47272
47272
|
const Tr = zr(Nr), qr = zr(ir);
|
|
47273
47273
|
return bn(Tr, qr, wr);
|
|
47274
47274
|
}, t.addHook = function(Nr, ir) {
|
|
47275
|
-
typeof ir == "function" && arrayPush(
|
|
47275
|
+
typeof ir == "function" && arrayPush($t[Nr], ir);
|
|
47276
47276
|
}, t.removeHook = function(Nr, ir) {
|
|
47277
47277
|
if (ir !== void 0) {
|
|
47278
|
-
const wr = arrayLastIndexOf(
|
|
47279
|
-
return wr === -1 ? void 0 : arraySplice(
|
|
47278
|
+
const wr = arrayLastIndexOf($t[Nr], ir);
|
|
47279
|
+
return wr === -1 ? void 0 : arraySplice($t[Nr], wr, 1)[0];
|
|
47280
47280
|
}
|
|
47281
|
-
return arrayPop(
|
|
47281
|
+
return arrayPop($t[Nr]);
|
|
47282
47282
|
}, t.removeHooks = function(Nr) {
|
|
47283
|
-
|
|
47283
|
+
$t[Nr] = [];
|
|
47284
47284
|
}, t.removeAllHooks = function() {
|
|
47285
|
-
|
|
47285
|
+
$t = _createHooksMap();
|
|
47286
47286
|
}, t;
|
|
47287
47287
|
}
|
|
47288
47288
|
var purify = createDOMPurify();
|
|
@@ -47687,7 +47687,7 @@ const ChatMessageRowDashboard = memo$1(function e({
|
|
|
47687
47687
|
}, [t]), pt = s ?? (a ? "assistant" : "dashboard"), ft = pt === "assistant" ? ChatMessageRowAssistant : ChatMessageRowDashboard, mt = pt === "assistant" ? SkeletonMessageAssistant : SkeletonMessageDashboard;
|
|
47688
47688
|
return /* @__PURE__ */ jsxs("div", { className: pt === "dashboard" ? "py-3" : "", children: [
|
|
47689
47689
|
t.map((Ct) => {
|
|
47690
|
-
const Rt = Ct.fromPartnerID === n, Mt = !!(c && a && Rt && R && I && V), It = !!(c && a && Rt && ot),
|
|
47690
|
+
const Rt = Ct.fromPartnerID === n, Mt = !!(c && a && Rt && R && I && V), It = !!(c && a && Rt && ot), $t = !!(a && !Rt && (Ct.content ?? "").trim().length > 0), yt = d === Ct.id;
|
|
47691
47691
|
return /* @__PURE__ */ jsx(
|
|
47692
47692
|
ft,
|
|
47693
47693
|
{
|
|
@@ -47696,7 +47696,7 @@ const ChatMessageRowDashboard = memo$1(function e({
|
|
|
47696
47696
|
hideSenderName: l || dt.has(Ct.id),
|
|
47697
47697
|
canEdit: Mt,
|
|
47698
47698
|
canRetry: It,
|
|
47699
|
-
canCopy:
|
|
47699
|
+
canCopy: $t,
|
|
47700
47700
|
isCopied: lt === Ct.id,
|
|
47701
47701
|
isEditing: yt,
|
|
47702
47702
|
editValue: yt ? f : "",
|
|
@@ -47949,7 +47949,7 @@ function ChatLayout({ appID: e, inputRef: t, className: n }) {
|
|
|
47949
47949
|
return gr.sort(sortChats), gr;
|
|
47950
47950
|
}), d(!0), setTimeout(() => dr.current?.focus(), 50));
|
|
47951
47951
|
}, [s, e]);
|
|
47952
|
-
const [It,
|
|
47952
|
+
const [It, $t] = useState(void 0), [yt, Dt] = useState(""), [Ft, Vt] = useState(null), [Wt, qt] = useState([]), [zt, Ht] = useState(null), Ut = useRef(null), nr = useRef(null), [Zt, sr] = useState([]), dr = t || nr, Jt = useRef(null), { toast: hr } = useToast(), Yt = () => Wt.find((rr) => rr.partner1 === It?.[0] && rr.partner2 === It?.[1]), or = useCallback(async () => {
|
|
47953
47953
|
if (f) return;
|
|
47954
47954
|
S(!0);
|
|
47955
47955
|
const rr = It;
|
|
@@ -47983,7 +47983,7 @@ function ChatLayout({ appID: e, inputRef: t, className: n }) {
|
|
|
47983
47983
|
const Ar = Ir.find(
|
|
47984
47984
|
(Dr) => Dr.partner1 === rr[0] && Dr.partner2 === rr[1] || Dr.partner1 === rr[1] && Dr.partner2 === rr[0]
|
|
47985
47985
|
);
|
|
47986
|
-
|
|
47986
|
+
$t(Ar ? [Ar.partner1, Ar.partner2] : void 0);
|
|
47987
47987
|
}
|
|
47988
47988
|
hr({ title: "Refreshed", description: "Chat state reinitialized." });
|
|
47989
47989
|
} catch (gr) {
|
|
@@ -48040,7 +48040,7 @@ function ChatLayout({ appID: e, inputRef: t, className: n }) {
|
|
|
48040
48040
|
return It?.[0] == br.partner1 && It[1] == br.partner2 && Dr && (Dr && (Ar = 0, er()), setTimeout(() => Ut.current?.scrollIntoView({ behavior: "smooth" }), 50)), { ...br, pending: !1, unread: br.unread + Ar, messages: [...Ir, pr] };
|
|
48041
48041
|
}).sort(sortChats));
|
|
48042
48042
|
}), console.log("need refetch:", gr), gr && l(), sr([]);
|
|
48043
|
-
}, [Zt, sr, qt,
|
|
48043
|
+
}, [Zt, sr, qt, $t, It]), useEffect(() => {
|
|
48044
48044
|
const rr = new HubConnectionBuilder().withUrl(buildApiUrl("/hub", a), {
|
|
48045
48045
|
accessTokenFactory: () => localStorage.getItem("access_token"),
|
|
48046
48046
|
headers: { "X-Impersonated-Id": e }
|
|
@@ -48124,12 +48124,12 @@ function ChatLayout({ appID: e, inputRef: t, className: n }) {
|
|
|
48124
48124
|
!ar || !rr || !It || !zt || (ar.unread > 0 && (er(), qt((gr) => gr.map((pr) => pr.partner1 === It[0] && pr.partner2 === It[1] ? { ...pr, unread: 0 } : pr))), ur(ar, rr));
|
|
48125
48125
|
}, Rr = (rr, gr) => Vt([rr, gr]);
|
|
48126
48126
|
useEffect(() => {
|
|
48127
|
-
if (
|
|
48128
|
-
const rr = Wt.find((pr) => pr.conversationID ===
|
|
48129
|
-
if (!rr || (
|
|
48130
|
-
const gr =
|
|
48127
|
+
if (Ft === null) return;
|
|
48128
|
+
const rr = Wt.find((pr) => pr.conversationID === Ft[0]);
|
|
48129
|
+
if (!rr || ($t([rr.partner1, rr.partner2]), !zt)) return;
|
|
48130
|
+
const gr = Ft[1];
|
|
48131
48131
|
Vt(null), gr && ur(rr, gr);
|
|
48132
|
-
}, [
|
|
48132
|
+
}, [Ft, Wt, $t, zt]);
|
|
48133
48133
|
const { data: Cr, isLoading: Pr } = useGetV4UserQuery();
|
|
48134
48134
|
if (!c || Pr)
|
|
48135
48135
|
return /* @__PURE__ */ jsx(LoaderCircle, { className: "h-12 w-12 animate-spin mx-auto mb-4" });
|
|
@@ -48190,7 +48190,7 @@ function ChatLayout({ appID: e, inputRef: t, className: n }) {
|
|
|
48190
48190
|
handleChatWithRandmar: _r,
|
|
48191
48191
|
onFullRefreshChats: or,
|
|
48192
48192
|
onMarkAllRead: Qt,
|
|
48193
|
-
setActiveChat:
|
|
48193
|
+
setActiveChat: $t
|
|
48194
48194
|
}
|
|
48195
48195
|
),
|
|
48196
48196
|
/* @__PURE__ */ jsx(
|
|
@@ -48772,8 +48772,8 @@ var getValueAndMessage = (e) => isObject(e) && !isRegex(e) ? e : {
|
|
|
48772
48772
|
return {};
|
|
48773
48773
|
const dt = c ? c[0] : l, pt = (yt) => {
|
|
48774
48774
|
a && dt.reportValidity && (dt.setCustomValidity(isBoolean(yt) ? "" : yt || ""), dt.reportValidity());
|
|
48775
|
-
}, ft = {}, mt = isRadioInput(l), Ct = isCheckBoxInput(l), Rt = mt || Ct, Mt = (at || isFileInput(l)) && isUndefined(l.value) && isUndefined(ut) || isHTMLElement(l) && l.value === "" || ut === "" || Array.isArray(ut) && !ut.length, It = appendErrors.bind(null, lt, o, ft),
|
|
48776
|
-
const qt = yt ? Dt :
|
|
48775
|
+
}, ft = {}, mt = isRadioInput(l), Ct = isCheckBoxInput(l), Rt = mt || Ct, Mt = (at || isFileInput(l)) && isUndefined(l.value) && isUndefined(ut) || isHTMLElement(l) && l.value === "" || ut === "" || Array.isArray(ut) && !ut.length, It = appendErrors.bind(null, lt, o, ft), $t = (yt, Dt, Ft, Vt = INPUT_VALIDATION_RULES.maxLength, Wt = INPUT_VALIDATION_RULES.minLength) => {
|
|
48776
|
+
const qt = yt ? Dt : Ft;
|
|
48777
48777
|
ft[lt] = {
|
|
48778
48778
|
type: yt ? Vt : Wt,
|
|
48779
48779
|
message: qt,
|
|
@@ -48793,20 +48793,20 @@ var getValueAndMessage = (e) => isObject(e) && !isRegex(e) ? e : {
|
|
|
48793
48793
|
}
|
|
48794
48794
|
if (!Mt && (!isNullOrUndefined(R) || !isNullOrUndefined(V))) {
|
|
48795
48795
|
let yt, Dt;
|
|
48796
|
-
const
|
|
48796
|
+
const Ft = getValueAndMessage(V), Vt = getValueAndMessage(R);
|
|
48797
48797
|
if (!isNullOrUndefined(ut) && !isNaN(ut)) {
|
|
48798
48798
|
const Wt = l.valueAsNumber || ut && +ut;
|
|
48799
|
-
isNullOrUndefined(
|
|
48799
|
+
isNullOrUndefined(Ft.value) || (yt = Wt > Ft.value), isNullOrUndefined(Vt.value) || (Dt = Wt < Vt.value);
|
|
48800
48800
|
} else {
|
|
48801
48801
|
const Wt = l.valueAsDate || new Date(ut), qt = (Ut) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + Ut), zt = l.type == "time", Ht = l.type == "week";
|
|
48802
|
-
isString(
|
|
48802
|
+
isString(Ft.value) && ut && (yt = zt ? qt(ut) > qt(Ft.value) : Ht ? ut > Ft.value : Wt > new Date(Ft.value)), isString(Vt.value) && ut && (Dt = zt ? qt(ut) < qt(Vt.value) : Ht ? ut < Vt.value : Wt < new Date(Vt.value));
|
|
48803
48803
|
}
|
|
48804
|
-
if ((yt || Dt) && (
|
|
48804
|
+
if ((yt || Dt) && ($t(!!yt, Ft.message, Vt.message, INPUT_VALIDATION_RULES.max, INPUT_VALIDATION_RULES.min), !o))
|
|
48805
48805
|
return pt(ft[lt].message), ft;
|
|
48806
48806
|
}
|
|
48807
48807
|
if ((f || S) && !Mt && (isString(ut) || s && Array.isArray(ut))) {
|
|
48808
|
-
const yt = getValueAndMessage(f), Dt = getValueAndMessage(S),
|
|
48809
|
-
if ((
|
|
48808
|
+
const yt = getValueAndMessage(f), Dt = getValueAndMessage(S), Ft = !isNullOrUndefined(yt.value) && ut.length > +yt.value, Vt = !isNullOrUndefined(Dt.value) && ut.length < +Dt.value;
|
|
48809
|
+
if ((Ft || Vt) && ($t(Ft, yt.message, Dt.message), !o))
|
|
48810
48810
|
return pt(ft[lt].message), ft;
|
|
48811
48811
|
}
|
|
48812
48812
|
if (I && !Mt && isString(ut)) {
|
|
@@ -48832,11 +48832,11 @@ var getValueAndMessage = (e) => isObject(e) && !isRegex(e) ? e : {
|
|
|
48832
48832
|
for (const Dt in ot) {
|
|
48833
48833
|
if (!isEmptyObject$1(yt) && !o)
|
|
48834
48834
|
break;
|
|
48835
|
-
const
|
|
48836
|
-
|
|
48837
|
-
|
|
48838
|
-
...It(Dt,
|
|
48839
|
-
}, pt(
|
|
48835
|
+
const Ft = getValidateError(await ot[Dt](ut, n), dt, Dt);
|
|
48836
|
+
Ft && (yt = {
|
|
48837
|
+
...Ft,
|
|
48838
|
+
...It(Dt, Ft.message)
|
|
48839
|
+
}, pt(Ft.message), o && (ft[lt] = yt));
|
|
48840
48840
|
}
|
|
48841
48841
|
if (!isEmptyObject$1(yt) && (ft[lt] = {
|
|
48842
48842
|
ref: dt,
|
|
@@ -49015,7 +49015,7 @@ function createFormControl(e = {}) {
|
|
|
49015
49015
|
}
|
|
49016
49016
|
}
|
|
49017
49017
|
return rr.valid;
|
|
49018
|
-
},
|
|
49018
|
+
}, $t = () => {
|
|
49019
49019
|
for (const Kt of c.unMount) {
|
|
49020
49020
|
const ar = get(o, Kt);
|
|
49021
49021
|
ar && (ar._f.refs ? ar._f.refs.every((rr) => !live(rr)) : !live(ar._f.ref)) && or(Kt);
|
|
@@ -49023,7 +49023,7 @@ function createFormControl(e = {}) {
|
|
|
49023
49023
|
c.unMount = /* @__PURE__ */ new Set();
|
|
49024
49024
|
}, yt = (Kt, ar) => !t.disabled && (Kt && ar && set(s, Kt, ar), !deepEqual$1(nr(), a)), Dt = (Kt, ar, rr) => generateWatchOutput(Kt, c, {
|
|
49025
49025
|
...l.mount ? s : isUndefined(ar) ? a : isString(Kt) ? { [Kt]: ar } : ar
|
|
49026
|
-
}, rr, ar),
|
|
49026
|
+
}, rr, ar), Ft = (Kt) => compact(get(l.mount ? s : a, Kt, t.shouldUnregister ? get(a, Kt, []) : [])), Vt = (Kt, ar, rr = {}) => {
|
|
49027
49027
|
const gr = get(o, Kt);
|
|
49028
49028
|
let pr = ar;
|
|
49029
49029
|
if (gr) {
|
|
@@ -49352,14 +49352,14 @@ function createFormControl(e = {}) {
|
|
|
49352
49352
|
_setFieldArray: ut,
|
|
49353
49353
|
_setDisabledField: Qt,
|
|
49354
49354
|
_setErrors: pt,
|
|
49355
|
-
_getFieldArray:
|
|
49355
|
+
_getFieldArray: Ft,
|
|
49356
49356
|
_reset: ur,
|
|
49357
49357
|
_resetDefaultValues: () => isFunction$3(t.defaultValues) && t.defaultValues().then((Kt) => {
|
|
49358
49358
|
Sr(Kt, t.resetOptions), I.state.next({
|
|
49359
49359
|
isLoading: !1
|
|
49360
49360
|
});
|
|
49361
49361
|
}),
|
|
49362
|
-
_removeUnmounted:
|
|
49362
|
+
_removeUnmounted: $t,
|
|
49363
49363
|
_disableForm: Xt,
|
|
49364
49364
|
_subjects: I,
|
|
49365
49365
|
_proxyFormState: R,
|
|
@@ -49599,7 +49599,7 @@ function requireReactIs_development() {
|
|
|
49599
49599
|
}
|
|
49600
49600
|
}
|
|
49601
49601
|
}
|
|
49602
|
-
var ft = d, mt = f, Ct = c, Rt = l, Mt = t, It = S,
|
|
49602
|
+
var ft = d, mt = f, Ct = c, Rt = l, Mt = t, It = S, $t = o, yt = ot, Dt = I, Ft = n, Vt = s, Wt = a, qt = R, zt = !1;
|
|
49603
49603
|
function Ht(Xt) {
|
|
49604
49604
|
return zt || (zt = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), Ut(Xt) || pt(Xt) === d;
|
|
49605
49605
|
}
|
|
@@ -49639,7 +49639,7 @@ function requireReactIs_development() {
|
|
|
49639
49639
|
function yr(Xt) {
|
|
49640
49640
|
return pt(Xt) === R;
|
|
49641
49641
|
}
|
|
49642
|
-
reactIs_development.AsyncMode = ft, reactIs_development.ConcurrentMode = mt, reactIs_development.ContextConsumer = Ct, reactIs_development.ContextProvider = Rt, reactIs_development.Element = Mt, reactIs_development.ForwardRef = It, reactIs_development.Fragment =
|
|
49642
|
+
reactIs_development.AsyncMode = ft, reactIs_development.ConcurrentMode = mt, reactIs_development.ContextConsumer = Ct, reactIs_development.ContextProvider = Rt, reactIs_development.Element = Mt, reactIs_development.ForwardRef = It, reactIs_development.Fragment = $t, reactIs_development.Lazy = yt, reactIs_development.Memo = Dt, reactIs_development.Portal = Ft, reactIs_development.Profiler = Vt, reactIs_development.StrictMode = Wt, reactIs_development.Suspense = qt, reactIs_development.isAsyncMode = Ht, reactIs_development.isConcurrentMode = Ut, reactIs_development.isContextConsumer = nr, reactIs_development.isContextProvider = Zt, reactIs_development.isElement = sr, reactIs_development.isForwardRef = dr, reactIs_development.isFragment = Jt, reactIs_development.isLazy = hr, reactIs_development.isMemo = Yt, reactIs_development.isPortal = or, reactIs_development.isProfiler = Qt, reactIs_development.isStrictMode = er, reactIs_development.isSuspense = yr, reactIs_development.isValidElementType = dt, reactIs_development.typeOf = pt;
|
|
49643
49643
|
})()), reactIs_development;
|
|
49644
49644
|
}
|
|
49645
49645
|
var hasRequiredReactIs;
|
|
@@ -49987,17 +49987,17 @@ function ManufacturerPublicInfoSection({ manufacturer: e, readonly: t = !1, isLo
|
|
|
49987
49987
|
{ key: "publicResources", apiKey: "PublicResourcesLink", value: mt.publicResources }
|
|
49988
49988
|
];
|
|
49989
49989
|
for (const It of Mt) {
|
|
49990
|
-
const
|
|
49991
|
-
if (
|
|
49990
|
+
const $t = It.value, yt = e?.[It.apiKey], Dt = typeof yt == "boolean" ? String(yt) : yt;
|
|
49991
|
+
if ($t !== Dt && $t !== void 0) {
|
|
49992
49992
|
Rt = !0;
|
|
49993
49993
|
try {
|
|
49994
49994
|
await s({
|
|
49995
49995
|
applicationId: e?.ManufacturerId ?? "",
|
|
49996
49996
|
fieldName: It.apiKey,
|
|
49997
|
-
newValue: String(
|
|
49997
|
+
newValue: String($t)
|
|
49998
49998
|
}).unwrap() || (Ct = !1);
|
|
49999
|
-
} catch (
|
|
50000
|
-
console.error(`Error updating ${It.apiKey}:`,
|
|
49999
|
+
} catch (Ft) {
|
|
50000
|
+
console.error(`Error updating ${It.apiKey}:`, Ft), Ct = !1;
|
|
50001
50001
|
}
|
|
50002
50002
|
}
|
|
50003
50003
|
}
|
|
@@ -50306,11 +50306,11 @@ function ManufacturerReportsSection({ manufacturerId: e, userEmail: t, isLoading
|
|
|
50306
50306
|
}
|
|
50307
50307
|
]
|
|
50308
50308
|
}
|
|
50309
|
-
], [lt, { isLoading: at }] = usePostV4ManufacturerByRouteManufacturerIdReportOpenOrdersEmailMutation(), [ct, { isLoading: ut }] = usePostV4ManufacturerByRouteManufacturerIdReportSalesEmailMutation(), [dt, { isLoading: pt }] = usePostV4ManufacturerByRouteManufacturerIdReportPurchasedOrdersEmailMutation(), [ft, { isLoading: mt }] = usePostV4ManufacturerByRouteManufacturerIdReportReorderEmailMutation(), [Ct, { isLoading: Rt }] = usePostV4ManufacturerByRouteManufacturerIdReportInventoryEmailMutation(), [Mt, { isLoading: It }] = usePostV4ManufacturerByRouteManufacturerIdReportProductsEmailMutation(),
|
|
50309
|
+
], [lt, { isLoading: at }] = usePostV4ManufacturerByRouteManufacturerIdReportOpenOrdersEmailMutation(), [ct, { isLoading: ut }] = usePostV4ManufacturerByRouteManufacturerIdReportSalesEmailMutation(), [dt, { isLoading: pt }] = usePostV4ManufacturerByRouteManufacturerIdReportPurchasedOrdersEmailMutation(), [ft, { isLoading: mt }] = usePostV4ManufacturerByRouteManufacturerIdReportReorderEmailMutation(), [Ct, { isLoading: Rt }] = usePostV4ManufacturerByRouteManufacturerIdReportInventoryEmailMutation(), [Mt, { isLoading: It }] = usePostV4ManufacturerByRouteManufacturerIdReportProductsEmailMutation(), $t = at || ut || pt || mt || Rt || It, yt = (Wt) => {
|
|
50310
50310
|
s(Wt), f(!0);
|
|
50311
50311
|
}, Dt = (Wt) => {
|
|
50312
50312
|
f(Wt), Wt || (R(void 0), I(void 0));
|
|
50313
|
-
},
|
|
50313
|
+
}, Ft = async () => {
|
|
50314
50314
|
if (!(!a || !e))
|
|
50315
50315
|
try {
|
|
50316
50316
|
switch (a.id) {
|
|
@@ -50480,9 +50480,9 @@ function ManufacturerReportsSection({ manufacturerId: e, userEmail: t, isLoading
|
|
|
50480
50480
|
/* @__PURE__ */ jsx(
|
|
50481
50481
|
Button$1,
|
|
50482
50482
|
{
|
|
50483
|
-
onClick:
|
|
50484
|
-
disabled: !l ||
|
|
50485
|
-
children:
|
|
50483
|
+
onClick: Ft,
|
|
50484
|
+
disabled: !l || $t || a?.id === "Sales" && (!S || !V) || a?.id === "Inventory" && !S,
|
|
50485
|
+
children: $t ? /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
50486
50486
|
/* @__PURE__ */ jsx(LoaderCircle, { className: "mr-2 h-4 w-4 animate-spin" }),
|
|
50487
50487
|
"Sending..."
|
|
50488
50488
|
] }) : "Send Report"
|
|
@@ -51491,7 +51491,7 @@ var OPEN_KEYS = [" ", "Enter", "ArrowUp", "ArrowDown"], SELECTION_KEYS = [" ", "
|
|
|
51491
51491
|
defaultProp: c,
|
|
51492
51492
|
onChange: d,
|
|
51493
51493
|
caller: SELECT_NAME
|
|
51494
|
-
}),
|
|
51494
|
+
}), $t = React.useRef(null), yt = at ? ot || !!at.closest("form") : !0, [Dt, Ft] = React.useState(/* @__PURE__ */ new Set()), Vt = Array.from(Dt).map((Wt) => Wt.props.value).join(";");
|
|
51495
51495
|
return /* @__PURE__ */ jsx(Root2$7, { ...lt, children: /* @__PURE__ */ jsxs(
|
|
51496
51496
|
SelectProvider,
|
|
51497
51497
|
{
|
|
@@ -51509,7 +51509,7 @@ var OPEN_KEYS = [" ", "Enter", "ArrowUp", "ArrowDown"], SELECTION_KEYS = [" ", "
|
|
|
51509
51509
|
open: Ct,
|
|
51510
51510
|
onOpenChange: Rt,
|
|
51511
51511
|
dir: mt,
|
|
51512
|
-
triggerPointerDownPosRef:
|
|
51512
|
+
triggerPointerDownPosRef: $t,
|
|
51513
51513
|
disabled: V,
|
|
51514
51514
|
children: [
|
|
51515
51515
|
/* @__PURE__ */ jsx(Collection$1.Provider, { scope: t, children: /* @__PURE__ */ jsx(
|
|
@@ -51517,10 +51517,10 @@ var OPEN_KEYS = [" ", "Enter", "ArrowUp", "ArrowDown"], SELECTION_KEYS = [" ", "
|
|
|
51517
51517
|
{
|
|
51518
51518
|
scope: e.__scopeSelect,
|
|
51519
51519
|
onNativeOptionAdd: React.useCallback((Wt) => {
|
|
51520
|
-
|
|
51520
|
+
Ft((qt) => new Set(qt).add(Wt));
|
|
51521
51521
|
}, []),
|
|
51522
51522
|
onNativeOptionRemove: React.useCallback((Wt) => {
|
|
51523
|
-
|
|
51523
|
+
Ft((qt) => {
|
|
51524
51524
|
const zt = new Set(qt);
|
|
51525
51525
|
return zt.delete(Wt), zt;
|
|
51526
51526
|
});
|
|
@@ -51660,9 +51660,9 @@ var CONTENT_MARGIN = 10, [SelectContentProvider, useSelectContentContext] = crea
|
|
|
51660
51660
|
avoidCollisions: at,
|
|
51661
51661
|
//
|
|
51662
51662
|
...ct
|
|
51663
|
-
} = e, ut = useSelectContext(CONTENT_NAME$4, n), [dt, pt] = React.useState(null), [ft, mt] = React.useState(null), Ct = useComposedRefs(t, (Yt) => pt(Yt)), [Rt, Mt] = React.useState(null), [It,
|
|
51663
|
+
} = e, ut = useSelectContext(CONTENT_NAME$4, n), [dt, pt] = React.useState(null), [ft, mt] = React.useState(null), Ct = useComposedRefs(t, (Yt) => pt(Yt)), [Rt, Mt] = React.useState(null), [It, $t] = React.useState(
|
|
51664
51664
|
null
|
|
51665
|
-
), yt = useCollection$1(n), [Dt,
|
|
51665
|
+
), yt = useCollection$1(n), [Dt, Ft] = React.useState(!1), Vt = React.useRef(!1);
|
|
51666
51666
|
React.useEffect(() => {
|
|
51667
51667
|
if (dt) return hideOthers(dt);
|
|
51668
51668
|
}, [dt]), useFocusGuards();
|
|
@@ -51714,7 +51714,7 @@ var CONTENT_MARGIN = 10, [SelectContentProvider, useSelectContentContext] = crea
|
|
|
51714
51714
|
), sr = React.useCallback(() => dt?.focus(), [dt]), dr = React.useCallback(
|
|
51715
51715
|
(Yt, or, Qt) => {
|
|
51716
51716
|
const er = !Vt.current && !Qt;
|
|
51717
|
-
(ut.value !== void 0 && ut.value === or || er) &&
|
|
51717
|
+
(ut.value !== void 0 && ut.value === or || er) && $t(Yt);
|
|
51718
51718
|
},
|
|
51719
51719
|
[ut.value]
|
|
51720
51720
|
), Jt = o === "popper" ? SelectPopperPosition : SelectItemAlignedPosition, hr = Jt === SelectPopperPosition ? {
|
|
@@ -51775,7 +51775,7 @@ var CONTENT_MARGIN = 10, [SelectContentProvider, useSelectContentContext] = crea
|
|
|
51775
51775
|
onContextMenu: (Yt) => Yt.preventDefault(),
|
|
51776
51776
|
...ct,
|
|
51777
51777
|
...hr,
|
|
51778
|
-
onPlaced: () =>
|
|
51778
|
+
onPlaced: () => Ft(!0),
|
|
51779
51779
|
ref: Ct,
|
|
51780
51780
|
style: {
|
|
51781
51781
|
// flex layout so we can place the scroll buttons properly
|
|
@@ -51829,9 +51829,9 @@ var ITEM_ALIGNED_POSITION_NAME = "SelectItemAlignedPosition", SelectItemAlignedP
|
|
|
51829
51829
|
]);
|
|
51830
51830
|
c.style.minWidth = lr + "px", c.style.right = Rr + "px";
|
|
51831
51831
|
}
|
|
51832
|
-
const
|
|
51832
|
+
const $t = V(), yt = window.innerHeight - CONTENT_MARGIN * 2, Dt = lt.scrollHeight, Ft = window.getComputedStyle(f), Vt = parseInt(Ft.borderTopWidth, 10), Wt = parseInt(Ft.paddingTop, 10), qt = parseInt(Ft.borderBottomWidth, 10), zt = parseInt(Ft.paddingBottom, 10), Ht = Vt + Wt + Dt + zt + qt, Ut = Math.min(at.offsetHeight * 5, Ht), nr = window.getComputedStyle(lt), Zt = parseInt(nr.paddingTop, 10), sr = parseInt(nr.paddingBottom, 10), dr = Ct.top + Ct.height / 2 - CONTENT_MARGIN, Jt = yt - dr, hr = at.offsetHeight / 2, Yt = at.offsetTop + hr, or = Vt + Wt + Yt, Qt = Ht - or;
|
|
51833
51833
|
if (or <= dr) {
|
|
51834
|
-
const yr =
|
|
51834
|
+
const yr = $t.length > 0 && at === $t[$t.length - 1].ref.current;
|
|
51835
51835
|
c.style.bottom = "0px";
|
|
51836
51836
|
const Xt = f.clientHeight - lt.offsetTop - lt.offsetHeight, xr = Math.max(
|
|
51837
51837
|
Jt,
|
|
@@ -51840,7 +51840,7 @@ var ITEM_ALIGNED_POSITION_NAME = "SelectItemAlignedPosition", SelectItemAlignedP
|
|
|
51840
51840
|
), lr = or + xr;
|
|
51841
51841
|
c.style.height = lr + "px";
|
|
51842
51842
|
} else {
|
|
51843
|
-
const yr =
|
|
51843
|
+
const yr = $t.length > 0 && at === $t[0].ref.current;
|
|
51844
51844
|
c.style.top = "0px";
|
|
51845
51845
|
const xr = Math.max(
|
|
51846
51846
|
dr,
|
|
@@ -52752,8 +52752,8 @@ const PublicInfo = ({ reseller: e, appID: t, isLoading: n, readonly: o, onUnsave
|
|
|
52752
52752
|
fieldName: Rt.keyApi,
|
|
52753
52753
|
newValue: String(Mt)
|
|
52754
52754
|
}).unwrap() || (ft = !1);
|
|
52755
|
-
} catch (
|
|
52756
|
-
console.error(`Error updating ${Rt.keyApi}:`,
|
|
52755
|
+
} catch ($t) {
|
|
52756
|
+
console.error(`Error updating ${Rt.keyApi}:`, $t), ft = !1;
|
|
52757
52757
|
}
|
|
52758
52758
|
}
|
|
52759
52759
|
}
|
|
@@ -52917,7 +52917,7 @@ function BillingCard({ appID: e, reseller: t, isLoading: n, withoutReports: o, u
|
|
|
52917
52917
|
] }),
|
|
52918
52918
|
icon: CreditCard
|
|
52919
52919
|
}
|
|
52920
|
-
], [It] = useLazyGetV4ResellerByRouteResellerIdDocumentAndDocumentNumberPdfQuery(),
|
|
52920
|
+
], [It] = useLazyGetV4ResellerByRouteResellerIdDocumentAndDocumentNumberPdfQuery(), $t = async (Vt) => {
|
|
52921
52921
|
Vt ? S(!0) : V(!0);
|
|
52922
52922
|
try {
|
|
52923
52923
|
const qt = (await It({
|
|
@@ -53001,7 +53001,7 @@ function BillingCard({ appID: e, reseller: t, isLoading: n, withoutReports: o, u
|
|
|
53001
53001
|
] })
|
|
53002
53002
|
] })
|
|
53003
53003
|
] });
|
|
53004
|
-
const
|
|
53004
|
+
const Ft = !o;
|
|
53005
53005
|
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
53006
53006
|
/* @__PURE__ */ jsxs(Card, { className: "w-full", children: [
|
|
53007
53007
|
/* @__PURE__ */ jsx(CardHeader, { className: "border-b p-6 md:p-5", children: /* @__PURE__ */ jsx(CardTitle, { className: "text-1xl font-bold", children: "Billing Overview" }) }),
|
|
@@ -53010,14 +53010,14 @@ function BillingCard({ appID: e, reseller: t, isLoading: n, withoutReports: o, u
|
|
|
53010
53010
|
/* @__PURE__ */ jsx("div", { className: "space-y-6 sm:pe-4", children: Mt.slice(0, 3).map((Vt, Wt) => /* @__PURE__ */ jsx(BillingItem, { icon: Vt.icon, label: Vt.label, value: Vt.value }, Wt)) }),
|
|
53011
53011
|
/* @__PURE__ */ jsx("div", { className: "space-y-6 sm:ps-4 pt-6 sm:pt-0 mt-6 sm:mt-0 border-t sm:border-t-0 border-border", children: Mt.slice(3).map((Vt, Wt) => /* @__PURE__ */ jsx("div", { className: Wt === 1 ? "pt-6 mt-6 border-t border-border" : "", children: /* @__PURE__ */ jsx(BillingItem, { icon: Vt.icon, label: Vt.label, value: Vt.value }) }, Wt)) })
|
|
53012
53012
|
] }),
|
|
53013
|
-
|
|
53013
|
+
Ft && /* @__PURE__ */ jsxs("div", { className: "flex justify-end mt-6 gap-2", children: [
|
|
53014
53014
|
/* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsxs(Tooltip$1, { children: [
|
|
53015
53015
|
/* @__PURE__ */ jsx(TooltipTrigger, { asChild: !0, children: /* @__PURE__ */ jsx(
|
|
53016
53016
|
Button$1,
|
|
53017
53017
|
{
|
|
53018
53018
|
variant: "outline",
|
|
53019
53019
|
size: "icon",
|
|
53020
|
-
onClick: () =>
|
|
53020
|
+
onClick: () => $t(!0),
|
|
53021
53021
|
disabled: f,
|
|
53022
53022
|
children: f ? /* @__PURE__ */ jsx(LoaderCircle, { className: "h-4 w-4 animate-spin" }) : /* @__PURE__ */ jsx(Printer, { className: "h-4 w-4" })
|
|
53023
53023
|
}
|
|
@@ -53030,7 +53030,7 @@ function BillingCard({ appID: e, reseller: t, isLoading: n, withoutReports: o, u
|
|
|
53030
53030
|
{
|
|
53031
53031
|
variant: "outline",
|
|
53032
53032
|
size: "icon",
|
|
53033
|
-
onClick: () =>
|
|
53033
|
+
onClick: () => $t(!1),
|
|
53034
53034
|
disabled: R,
|
|
53035
53035
|
children: R ? /* @__PURE__ */ jsx(LoaderCircle, { className: "h-4 w-4 animate-spin" }) : /* @__PURE__ */ jsx(Download, { className: "h-4 w-4" })
|
|
53036
53036
|
}
|
|
@@ -53217,7 +53217,7 @@ $10 with opportunities under $1,000` : e === "D" ? "$15 under $1,500" : e === "E
|
|
|
53217
53217
|
ut(Vt);
|
|
53218
53218
|
const Wt = mt(Vt);
|
|
53219
53219
|
Rt("ShippingProfile", Wt, `Shipping profile updated to ${Wt}`, "Failed to update shipping profile");
|
|
53220
|
-
},
|
|
53220
|
+
}, $t = async (Vt) => {
|
|
53221
53221
|
pt(Vt);
|
|
53222
53222
|
const Wt = Ct(Vt);
|
|
53223
53223
|
Rt("PriceProfile", Wt, `Pricing profile updated to ${Wt}`, "Failed to update pricing profile");
|
|
@@ -53235,7 +53235,7 @@ $10 with opportunities under $1,000` : e === "D" ? "$15 under $1,500" : e === "E
|
|
|
53235
53235
|
{ name: "E-Commerce", enabled: n.Priority === "Commercial" },
|
|
53236
53236
|
{ name: "Commercial", enabled: n.Priority === "E-Commerce" },
|
|
53237
53237
|
{ name: "Exclusive", enabled: e }
|
|
53238
|
-
],
|
|
53238
|
+
], Ft = (Vt) => {
|
|
53239
53239
|
f(Vt), c(!0);
|
|
53240
53240
|
};
|
|
53241
53241
|
return a ? /* @__PURE__ */ jsxs(Card, { className: "w-full", children: [
|
|
@@ -53319,7 +53319,7 @@ $10 with opportunities under $1,000` : e === "D" ? "$15 under $1,500" : e === "E
|
|
|
53319
53319
|
size: "sm",
|
|
53320
53320
|
className: "w-full justify-start h-8",
|
|
53321
53321
|
disabled: !Vt.enabled,
|
|
53322
|
-
onClick: () =>
|
|
53322
|
+
onClick: () => Ft(Vt.name),
|
|
53323
53323
|
children: Vt.name
|
|
53324
53324
|
},
|
|
53325
53325
|
Vt.name
|
|
@@ -53349,7 +53349,7 @@ $10 with opportunities under $1,000` : e === "D" ? "$15 under $1,500" : e === "E
|
|
|
53349
53349
|
] }),
|
|
53350
53350
|
/* @__PURE__ */ jsxs("div", { className: "bg-muted/30 p-2 rounded-lg", children: [
|
|
53351
53351
|
/* @__PURE__ */ jsx(Label$2, { className: "block mb-1 text-xs font-medium", children: "Pricing Profile" }),
|
|
53352
|
-
/* @__PURE__ */ jsx(RadioGroup$1, { value: dt, onValueChange:
|
|
53352
|
+
/* @__PURE__ */ jsx(RadioGroup$1, { value: dt, onValueChange: $t, className: "grid grid-cols-2 @sm:grid-cols-3 gap-1", children: [{ value: "exclusive", label: "Exclusive (1)" }, { value: "ecommerce", label: "E-Commerce (2)" }, { value: "commercial", label: "Commercial (3)" }, { value: "buyinggroup", label: "Buying Group (4)" }, { value: "cost", label: "Cost (5)" }].map((Vt) => /* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-1", children: [
|
|
53353
53353
|
/* @__PURE__ */ jsx(RadioGroupItem, { value: Vt.value, id: `pricing-${Vt.value}`, className: "h-6 w-6 scale-50 antialiased" }),
|
|
53354
53354
|
/* @__PURE__ */ jsx(Label$2, { htmlFor: `pricing-${Vt.value}`, className: "cursor-pointer text-xs", children: Vt.label })
|
|
53355
53355
|
] }, Vt.value)) })
|
|
@@ -53507,18 +53507,18 @@ function ReportsSection({ isLoading: e, userEmail: t, appID: n }) {
|
|
|
53507
53507
|
}
|
|
53508
53508
|
]
|
|
53509
53509
|
}
|
|
53510
|
-
],
|
|
53511
|
-
ct(
|
|
53510
|
+
], $t = async (Ft) => {
|
|
53511
|
+
ct(Ft), Ft.id === "Products" && Ct("all"), ft(!0);
|
|
53512
53512
|
}, yt = async () => {
|
|
53513
53513
|
if (!(!at || !n))
|
|
53514
53514
|
try {
|
|
53515
53515
|
switch (at.id) {
|
|
53516
53516
|
case "Products": {
|
|
53517
|
-
const
|
|
53517
|
+
const Ft = {
|
|
53518
53518
|
routeResellerId: n,
|
|
53519
53519
|
emailAddress: ut
|
|
53520
53520
|
};
|
|
53521
|
-
mt && mt !== "all" && (
|
|
53521
|
+
mt && mt !== "all" && (Ft.manufacturerId = mt), await S(Ft).unwrap();
|
|
53522
53522
|
break;
|
|
53523
53523
|
}
|
|
53524
53524
|
case "AmazonTrackingFile":
|
|
@@ -53559,8 +53559,8 @@ function ReportsSection({ isLoading: e, userEmail: t, appID: n }) {
|
|
|
53559
53559
|
description: `The ${at.title} will be sent to ${ut} shortly.`,
|
|
53560
53560
|
variant: "success"
|
|
53561
53561
|
}), ft(!1);
|
|
53562
|
-
} catch (
|
|
53563
|
-
console.error("Error requesting report:",
|
|
53562
|
+
} catch (Ft) {
|
|
53563
|
+
console.error("Error requesting report:", Ft), o({
|
|
53564
53564
|
title: "Error",
|
|
53565
53565
|
description: "Failed to request report. Please try again.",
|
|
53566
53566
|
variant: "destructive"
|
|
@@ -53572,7 +53572,7 @@ function ReportsSection({ isLoading: e, userEmail: t, appID: n }) {
|
|
|
53572
53572
|
/* @__PURE__ */ jsx(CardTitle, { className: "text-1xl font-bold", children: "Reports" }),
|
|
53573
53573
|
/* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: "Download essential business reports, from your Product List to your Order Details." })
|
|
53574
53574
|
] }),
|
|
53575
|
-
/* @__PURE__ */ jsx(CardContent, { className: "space-y-6", children: e ? /* @__PURE__ */ jsx(Fragment$1, { children: [1, 2, 3].map((
|
|
53575
|
+
/* @__PURE__ */ jsx(CardContent, { className: "space-y-6", children: e ? /* @__PURE__ */ jsx(Fragment$1, { children: [1, 2, 3].map((Ft) => /* @__PURE__ */ jsxs("div", { className: "space-y-4", children: [
|
|
53576
53576
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-6 w-48" }),
|
|
53577
53577
|
[1, 2].map((Vt) => /* @__PURE__ */ jsxs("div", { className: "flex items-start gap-4 p-4 border rounded-lg", children: [
|
|
53578
53578
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-9 w-9 rounded-full" }),
|
|
@@ -53582,9 +53582,9 @@ function ReportsSection({ isLoading: e, userEmail: t, appID: n }) {
|
|
|
53582
53582
|
] }),
|
|
53583
53583
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-9 w-24" })
|
|
53584
53584
|
] }, Vt))
|
|
53585
|
-
] },
|
|
53586
|
-
/* @__PURE__ */ jsx("h3", { className: "text-sm font-semibold", children:
|
|
53587
|
-
|
|
53585
|
+
] }, Ft)) }) : /* @__PURE__ */ jsx(Fragment$1, { children: It.map((Ft) => /* @__PURE__ */ jsxs("div", { className: "space-y-4", children: [
|
|
53586
|
+
/* @__PURE__ */ jsx("h3", { className: "text-sm font-semibold", children: Ft.name }),
|
|
53587
|
+
Ft.reports.map((Vt) => /* @__PURE__ */ jsxs(
|
|
53588
53588
|
"div",
|
|
53589
53589
|
{
|
|
53590
53590
|
className: "flex items-start gap-4 p-4 border rounded-lg hover:bg-muted transition-colors",
|
|
@@ -53600,7 +53600,7 @@ function ReportsSection({ isLoading: e, userEmail: t, appID: n }) {
|
|
|
53600
53600
|
variant: "outline",
|
|
53601
53601
|
size: "sm",
|
|
53602
53602
|
className: "flex items-center gap-1",
|
|
53603
|
-
onClick: () =>
|
|
53603
|
+
onClick: () => $t(Vt),
|
|
53604
53604
|
children: [
|
|
53605
53605
|
/* @__PURE__ */ jsx(Download, { className: "h-4 w-4" }),
|
|
53606
53606
|
"Request"
|
|
@@ -53611,7 +53611,7 @@ function ReportsSection({ isLoading: e, userEmail: t, appID: n }) {
|
|
|
53611
53611
|
},
|
|
53612
53612
|
Vt.id
|
|
53613
53613
|
))
|
|
53614
|
-
] },
|
|
53614
|
+
] }, Ft.name)) }) }),
|
|
53615
53615
|
/* @__PURE__ */ jsx(Dialog, { open: pt, onOpenChange: ft, children: /* @__PURE__ */ jsxs(DialogContent, { children: [
|
|
53616
53616
|
/* @__PURE__ */ jsxs(DialogHeader, { children: [
|
|
53617
53617
|
/* @__PURE__ */ jsxs(DialogTitle, { children: [
|
|
@@ -53627,7 +53627,7 @@ function ReportsSection({ isLoading: e, userEmail: t, appID: n }) {
|
|
|
53627
53627
|
{
|
|
53628
53628
|
id: "email",
|
|
53629
53629
|
value: ut,
|
|
53630
|
-
onChange: (
|
|
53630
|
+
onChange: (Ft) => dt(Ft.target.value),
|
|
53631
53631
|
placeholder: "your@email.com",
|
|
53632
53632
|
className: "mt-2"
|
|
53633
53633
|
}
|
|
@@ -53641,14 +53641,14 @@ function ReportsSection({ isLoading: e, userEmail: t, appID: n }) {
|
|
|
53641
53641
|
id: "manufacturer",
|
|
53642
53642
|
className: "mt-2 block w-full rounded-md border border-input bg-background px-3 py-2 text-sm",
|
|
53643
53643
|
value: mt,
|
|
53644
|
-
onChange: (
|
|
53644
|
+
onChange: (Ft) => Ct(Ft.target.value),
|
|
53645
53645
|
disabled: Mt,
|
|
53646
53646
|
children: [
|
|
53647
53647
|
/* @__PURE__ */ jsx("option", { value: "all", children: "All manufacturers" }),
|
|
53648
53648
|
!Mt && Array.isArray(Rt) && Rt.slice().sort(
|
|
53649
|
-
(
|
|
53649
|
+
(Ft, Vt) => (Ft.PublicName || Ft.Name || "").localeCompare(Vt.PublicName || Vt.Name || "")
|
|
53650
53650
|
).map(
|
|
53651
|
-
(
|
|
53651
|
+
(Ft) => Ft?.ManufacturerId ? /* @__PURE__ */ jsx("option", { value: Ft.ManufacturerId, children: (Ft.PublicName || Ft.Name || Ft.ManufacturerId) + (Ft.OpenToWork ? " (Open to Work)" : "") }, Ft.ManufacturerId) : null
|
|
53652
53652
|
)
|
|
53653
53653
|
]
|
|
53654
53654
|
}
|
|
@@ -54047,8 +54047,8 @@ function ProductInventoryButton({
|
|
|
54047
54047
|
const { inventoryQuantity: mt, totalIncomingQuantity: Ct } = useMemo(() => {
|
|
54048
54048
|
if (!ft || ft.length === 0)
|
|
54049
54049
|
return { inventoryQuantity: 0, totalIncomingQuantity: 0 };
|
|
54050
|
-
const
|
|
54051
|
-
return { inventoryQuantity:
|
|
54050
|
+
const $t = ft.reduce((Dt, Ft) => Dt + (Ft.AvailableQuantity || 0), 0), yt = ft.reduce((Dt, Ft) => Dt + (Ft.PurchaseOrderQuantity || 0), 0);
|
|
54051
|
+
return { inventoryQuantity: $t, totalIncomingQuantity: yt };
|
|
54052
54052
|
}, [ft]);
|
|
54053
54053
|
if (lt || at || ut || dt)
|
|
54054
54054
|
return /* @__PURE__ */ jsx("div", { ref: s, children: /* @__PURE__ */ jsx(Skeleton, { className: cn("h-10 w-36 rounded-md", a) }) });
|
|
@@ -54056,10 +54056,10 @@ function ProductInventoryButton({
|
|
|
54056
54056
|
V || !ot?.IsReseller || (I(!0), pt({
|
|
54057
54057
|
routeResellerId: e ?? "",
|
|
54058
54058
|
randmarSku: t ?? ""
|
|
54059
|
-
}).then((
|
|
54060
|
-
|
|
54061
|
-
}).catch((
|
|
54062
|
-
console.error(
|
|
54059
|
+
}).then(($t) => {
|
|
54060
|
+
$t.error || $t.data === !1 ? c({ title: "Warning", description: "Reorder is pending or requires manual approval. Contact the Randmar team for details.", variant: "warning" }) : c({ title: "Success", description: "Qualification successfully submitted.", variant: "success" }), R(!1);
|
|
54061
|
+
}).catch(($t) => {
|
|
54062
|
+
console.error($t), c({ title: "Error", description: "Error submitting your qualification.", variant: "destructive" });
|
|
54063
54063
|
}).finally(() => {
|
|
54064
54064
|
I(!1);
|
|
54065
54065
|
}));
|
|
@@ -54310,10 +54310,10 @@ function ResellerOverview({
|
|
|
54310
54310
|
// This should ideally make Qualifications include full Manufacturer details
|
|
54311
54311
|
}, { skip: !e || !R }), [lt, at] = useState({
|
|
54312
54312
|
publicInfo: { hasUnsavedChanges: !1 }
|
|
54313
|
-
}), ct = useCallback(() => n ? !1 : lt.publicInfo.hasUnsavedChanges, [n, lt]), ut = useCallback((It,
|
|
54314
|
-
at((yt) => yt[It]?.hasUnsavedChanges !==
|
|
54313
|
+
}), ct = useCallback(() => n ? !1 : lt.publicInfo.hasUnsavedChanges, [n, lt]), ut = useCallback((It, $t) => {
|
|
54314
|
+
at((yt) => yt[It]?.hasUnsavedChanges !== $t.hasUnsavedChanges ? {
|
|
54315
54315
|
...yt,
|
|
54316
|
-
[It]:
|
|
54316
|
+
[It]: $t
|
|
54317
54317
|
} : yt);
|
|
54318
54318
|
}, []), { NavigationGuardDialog: dt } = useRouterNavigationGuard(ct), pt = V ?? t, ft = I && !pt, mt = ot && !pt, Ct = !n || !!pt?.Statement && (pt.Statement.Total ?? 0) > 0, Rt = pt?.QualifiedManufacturers ?? [], Mt = pt?.Qualifications ?? [];
|
|
54319
54319
|
return /* @__PURE__ */ jsxs("div", { className: "@container", children: [
|
|
@@ -54373,7 +54373,7 @@ function ResellerOverview({
|
|
|
54373
54373
|
] }),
|
|
54374
54374
|
ft || Rt.length > 0 ? /* @__PURE__ */ jsxs(Card, { className: "w-full", children: [
|
|
54375
54375
|
/* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsx(CardTitle, { children: "Manufacturers you are qualified for" }) }),
|
|
54376
|
-
/* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsx("div", { className: "grid @lg:grid-cols-2 gap-4", children: ft ? Array.from({ length: 2 }).map((It,
|
|
54376
|
+
/* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsx("div", { className: "grid @lg:grid-cols-2 gap-4", children: ft ? Array.from({ length: 2 }).map((It, $t) => /* @__PURE__ */ jsx(ManufacturerCard, { loading: !0 }, $t)) : Rt.map((It) => /* @__PURE__ */ jsx(
|
|
54377
54377
|
ManufacturerCard,
|
|
54378
54378
|
{
|
|
54379
54379
|
manufacturer: It,
|
|
@@ -55221,8 +55221,8 @@ const defaultColumnSizing = {
|
|
|
55221
55221
|
var pt, ft;
|
|
55222
55222
|
const mt = t.options.columnResizeDirection === "rtl" ? -1 : 1, Ct = (ut - ((pt = dt?.startOffset) != null ? pt : 0)) * mt, Rt = Math.max(Ct / ((ft = dt?.startSize) != null ? ft : 0), -0.999999);
|
|
55223
55223
|
return dt.columnSizingStart.forEach((Mt) => {
|
|
55224
|
-
let [It,
|
|
55225
|
-
f[It] = Math.round(Math.max(
|
|
55224
|
+
let [It, $t] = Mt;
|
|
55225
|
+
f[It] = Math.round(Math.max($t + $t * Rt, 0) * 100) / 100;
|
|
55226
55226
|
}), {
|
|
55227
55227
|
...dt,
|
|
55228
55228
|
deltaOffset: Ct,
|
|
@@ -57321,7 +57321,7 @@ var N = '[cmdk-group=""]', Y = '[cmdk-group-items=""]', be = '[cmdk-group-headin
|
|
|
57321
57321
|
let Ct = React.useMemo(() => ({ subscribe: (Zt) => (l.current.add(Zt), () => l.current.delete(Zt)), snapshot: () => n.current, setState: (Zt, sr, dr) => {
|
|
57322
57322
|
var Jt, hr, Yt, or;
|
|
57323
57323
|
if (!Object.is(n.current[Zt], sr)) {
|
|
57324
|
-
if (n.current[Zt] = sr, Zt === "search") yt(), It(), mt(1,
|
|
57324
|
+
if (n.current[Zt] = sr, Zt === "search") yt(), It(), mt(1, $t);
|
|
57325
57325
|
else if (Zt === "value") {
|
|
57326
57326
|
if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
|
|
57327
57327
|
let Qt = document.getElementById(pt);
|
|
@@ -57329,7 +57329,7 @@ var N = '[cmdk-group=""]', Y = '[cmdk-group-items=""]', be = '[cmdk-group-headin
|
|
|
57329
57329
|
}
|
|
57330
57330
|
if (mt(7, () => {
|
|
57331
57331
|
var Qt;
|
|
57332
|
-
n.current.selectedItemId = (Qt =
|
|
57332
|
+
n.current.selectedItemId = (Qt = Ft()) == null ? void 0 : Qt.id, Ct.emit();
|
|
57333
57333
|
}), dr || mt(5, Dt), ((hr = c.current) == null ? void 0 : hr.value) !== void 0) {
|
|
57334
57334
|
let Qt = sr ?? "";
|
|
57335
57335
|
(or = (Yt = c.current).onValueChange) == null || or.call(Yt, Qt);
|
|
@@ -57346,12 +57346,12 @@ var N = '[cmdk-group=""]', Y = '[cmdk-group-items=""]', be = '[cmdk-group-headin
|
|
|
57346
57346
|
It(), Ct.emit();
|
|
57347
57347
|
}));
|
|
57348
57348
|
}, item: (Zt, sr) => (o.current.add(Zt), sr && (a.current.has(sr) ? a.current.get(sr).add(Zt) : a.current.set(sr, /* @__PURE__ */ new Set([Zt]))), mt(3, () => {
|
|
57349
|
-
yt(), It(), n.current.value ||
|
|
57349
|
+
yt(), It(), n.current.value || $t(), Ct.emit();
|
|
57350
57350
|
}), () => {
|
|
57351
57351
|
s.current.delete(Zt), o.current.delete(Zt), n.current.filtered.items.delete(Zt);
|
|
57352
|
-
let dr =
|
|
57352
|
+
let dr = Ft();
|
|
57353
57353
|
mt(4, () => {
|
|
57354
|
-
yt(), dr?.getAttribute("id") === Zt &&
|
|
57354
|
+
yt(), dr?.getAttribute("id") === Zt && $t(), Ct.emit();
|
|
57355
57355
|
});
|
|
57356
57356
|
}), group: (Zt) => (a.current.has(Zt) || a.current.set(Zt, /* @__PURE__ */ new Set()), () => {
|
|
57357
57357
|
s.current.delete(Zt), a.current.delete(Zt);
|
|
@@ -57385,7 +57385,7 @@ var N = '[cmdk-group=""]', Y = '[cmdk-group-items=""]', be = '[cmdk-group-headin
|
|
|
57385
57385
|
Yt?.parentElement.appendChild(Yt);
|
|
57386
57386
|
});
|
|
57387
57387
|
}
|
|
57388
|
-
function
|
|
57388
|
+
function $t() {
|
|
57389
57389
|
let Zt = Vt().find((dr) => dr.getAttribute("aria-disabled") !== "true"), sr = Zt?.getAttribute(T);
|
|
57390
57390
|
Ct.setState("value", sr || void 0);
|
|
57391
57391
|
}
|
|
@@ -57409,10 +57409,10 @@ var N = '[cmdk-group=""]', Y = '[cmdk-group-items=""]', be = '[cmdk-group-headin
|
|
|
57409
57409
|
}
|
|
57410
57410
|
function Dt() {
|
|
57411
57411
|
var Zt, sr, dr;
|
|
57412
|
-
let Jt =
|
|
57412
|
+
let Jt = Ft();
|
|
57413
57413
|
Jt && (((Zt = Jt.parentElement) == null ? void 0 : Zt.firstChild) === Jt && ((dr = (sr = Jt.closest(N)) == null ? void 0 : sr.querySelector(be)) == null || dr.scrollIntoView({ block: "nearest" })), Jt.scrollIntoView({ block: "nearest" }));
|
|
57414
57414
|
}
|
|
57415
|
-
function
|
|
57415
|
+
function Ft() {
|
|
57416
57416
|
var Zt;
|
|
57417
57417
|
return (Zt = ft.current) == null ? void 0 : Zt.querySelector(`${le}[aria-selected="true"]`);
|
|
57418
57418
|
}
|
|
@@ -57426,11 +57426,11 @@ var N = '[cmdk-group=""]', Y = '[cmdk-group-items=""]', be = '[cmdk-group-headin
|
|
|
57426
57426
|
}
|
|
57427
57427
|
function qt(Zt) {
|
|
57428
57428
|
var sr;
|
|
57429
|
-
let dr =
|
|
57429
|
+
let dr = Ft(), Jt = Vt(), hr = Jt.findIndex((or) => or === dr), Yt = Jt[hr + Zt];
|
|
57430
57430
|
(sr = c.current) != null && sr.loop && (Yt = hr + Zt < 0 ? Jt[Jt.length - 1] : hr + Zt === Jt.length ? Jt[0] : Jt[hr + Zt]), Yt && Ct.setState("value", Yt.getAttribute(T));
|
|
57431
57431
|
}
|
|
57432
57432
|
function zt(Zt) {
|
|
57433
|
-
let sr =
|
|
57433
|
+
let sr = Ft(), dr = sr?.closest(N), Jt;
|
|
57434
57434
|
for (; dr && !Jt; ) dr = Zt > 0 ? we(dr, N) : De(dr, N), Jt = dr?.querySelector(ce);
|
|
57435
57435
|
Jt ? Ct.setState("value", Jt.getAttribute(T)) : qt(Zt);
|
|
57436
57436
|
}
|
|
@@ -57472,7 +57472,7 @@ var N = '[cmdk-group=""]', Y = '[cmdk-group-items=""]', be = '[cmdk-group-headin
|
|
|
57472
57472
|
}
|
|
57473
57473
|
case "Enter": {
|
|
57474
57474
|
Zt.preventDefault();
|
|
57475
|
-
let Jt =
|
|
57475
|
+
let Jt = Ft();
|
|
57476
57476
|
if (Jt) {
|
|
57477
57477
|
let hr = new Event(Z);
|
|
57478
57478
|
Jt.dispatchEvent(hr);
|
|
@@ -57767,26 +57767,26 @@ function requireMd5() {
|
|
|
57767
57767
|
return yt.create().update(Vt);
|
|
57768
57768
|
};
|
|
57769
57769
|
for (var Dt = 0; Dt < V.length; ++Dt) {
|
|
57770
|
-
var
|
|
57771
|
-
yt[
|
|
57770
|
+
var Ft = V[Dt];
|
|
57771
|
+
yt[Ft] = pt(Ft);
|
|
57772
57772
|
}
|
|
57773
57773
|
return yt;
|
|
57774
57774
|
}, mt = function(yt) {
|
|
57775
|
-
var Dt = require$$1,
|
|
57776
|
-
|
|
57777
|
-
return new
|
|
57775
|
+
var Dt = require$$1, Ft = require$$1.Buffer, Vt;
|
|
57776
|
+
Ft.from && !a.JS_MD5_NO_BUFFER_FROM ? Vt = Ft.from : Vt = function(qt) {
|
|
57777
|
+
return new Ft(qt);
|
|
57778
57778
|
};
|
|
57779
57779
|
var Wt = function(qt) {
|
|
57780
57780
|
if (typeof qt == "string")
|
|
57781
57781
|
return Dt.createHash("md5").update(qt, "utf8").digest("hex");
|
|
57782
57782
|
if (qt == null)
|
|
57783
57783
|
throw new Error(t);
|
|
57784
|
-
return qt.constructor === ArrayBuffer && (qt = new Uint8Array(qt)), ct(qt) || ut(qt) || qt.constructor ===
|
|
57784
|
+
return qt.constructor === ArrayBuffer && (qt = new Uint8Array(qt)), ct(qt) || ut(qt) || qt.constructor === Ft ? Dt.createHash("md5").update(Vt(qt)).digest("hex") : yt(qt);
|
|
57785
57785
|
};
|
|
57786
57786
|
return Wt;
|
|
57787
57787
|
}, Ct = function(yt) {
|
|
57788
|
-
return function(Dt,
|
|
57789
|
-
return new It(Dt, !0).update(
|
|
57788
|
+
return function(Dt, Ft) {
|
|
57789
|
+
return new It(Dt, !0).update(Ft)[yt]();
|
|
57790
57790
|
};
|
|
57791
57791
|
}, Rt = function() {
|
|
57792
57792
|
var yt = Ct("hex");
|
|
@@ -57796,8 +57796,8 @@ function requireMd5() {
|
|
|
57796
57796
|
return yt.create(Vt).update(Wt);
|
|
57797
57797
|
};
|
|
57798
57798
|
for (var Dt = 0; Dt < V.length; ++Dt) {
|
|
57799
|
-
var
|
|
57800
|
-
yt[
|
|
57799
|
+
var Ft = V[Dt];
|
|
57800
|
+
yt[Ft] = Ct(Ft);
|
|
57801
57801
|
}
|
|
57802
57802
|
return yt;
|
|
57803
57803
|
};
|
|
@@ -57816,8 +57816,8 @@ function requireMd5() {
|
|
|
57816
57816
|
throw new Error(n);
|
|
57817
57817
|
var Dt = dt(yt);
|
|
57818
57818
|
yt = Dt[0];
|
|
57819
|
-
for (var
|
|
57820
|
-
if (this.hashed && (this.hashed = !1, Ht[0] = Ht[16], Ht[16] = Ht[1] = Ht[2] = Ht[3] = Ht[4] = Ht[5] = Ht[6] = Ht[7] = Ht[8] = Ht[9] = Ht[10] = Ht[11] = Ht[12] = Ht[13] = Ht[14] = Ht[15] = 0),
|
|
57819
|
+
for (var Ft = Dt[1], Vt, Wt = 0, qt, zt = yt.length, Ht = this.blocks, Ut = this.buffer8; Wt < zt; ) {
|
|
57820
|
+
if (this.hashed && (this.hashed = !1, Ht[0] = Ht[16], Ht[16] = Ht[1] = Ht[2] = Ht[3] = Ht[4] = Ht[5] = Ht[6] = Ht[7] = Ht[8] = Ht[9] = Ht[10] = Ht[11] = Ht[12] = Ht[13] = Ht[14] = Ht[15] = 0), Ft)
|
|
57821
57821
|
if (d)
|
|
57822
57822
|
for (qt = this.start; Wt < zt && qt < 64; ++Wt)
|
|
57823
57823
|
Vt = yt.charCodeAt(Wt), Vt < 128 ? Ut[qt++] = Vt : Vt < 2048 ? (Ut[qt++] = 192 | Vt >>> 6, Ut[qt++] = 128 | Vt & 63) : Vt < 55296 || Vt >= 57344 ? (Ut[qt++] = 224 | Vt >>> 12, Ut[qt++] = 128 | Vt >>> 6 & 63, Ut[qt++] = 128 | Vt & 63) : (Vt = 65536 + ((Vt & 1023) << 10 | yt.charCodeAt(++Wt) & 1023), Ut[qt++] = 240 | Vt >>> 18, Ut[qt++] = 128 | Vt >>> 12 & 63, Ut[qt++] = 128 | Vt >>> 6 & 63, Ut[qt++] = 128 | Vt & 63);
|
|
@@ -57840,15 +57840,15 @@ function requireMd5() {
|
|
|
57840
57840
|
yt[Dt >>> 2] |= S[Dt & 3], Dt >= 56 && (this.hashed || this.hash(), yt[0] = yt[16], yt[16] = yt[1] = yt[2] = yt[3] = yt[4] = yt[5] = yt[6] = yt[7] = yt[8] = yt[9] = yt[10] = yt[11] = yt[12] = yt[13] = yt[14] = yt[15] = 0), yt[14] = this.bytes << 3, yt[15] = this.hBytes << 3 | this.bytes >>> 29, this.hash();
|
|
57841
57841
|
}
|
|
57842
57842
|
}, Mt.prototype.hash = function() {
|
|
57843
|
-
var yt, Dt,
|
|
57844
|
-
this.first ? (yt = zt[0] - 680876937, yt = (yt << 7 | yt >>> 25) - 271733879 << 0, Vt = (-1732584194 ^ yt & 2004318071) + zt[1] - 117830708, Vt = (Vt << 12 | Vt >>> 20) + yt << 0,
|
|
57843
|
+
var yt, Dt, Ft, Vt, Wt, qt, zt = this.blocks;
|
|
57844
|
+
this.first ? (yt = zt[0] - 680876937, yt = (yt << 7 | yt >>> 25) - 271733879 << 0, Vt = (-1732584194 ^ yt & 2004318071) + zt[1] - 117830708, Vt = (Vt << 12 | Vt >>> 20) + yt << 0, Ft = (-271733879 ^ Vt & (yt ^ -271733879)) + zt[2] - 1126478375, Ft = (Ft << 17 | Ft >>> 15) + Vt << 0, Dt = (yt ^ Ft & (Vt ^ yt)) + zt[3] - 1316259209, Dt = (Dt << 22 | Dt >>> 10) + Ft << 0) : (yt = this.h0, Dt = this.h1, Ft = this.h2, Vt = this.h3, yt += (Vt ^ Dt & (Ft ^ Vt)) + zt[0] - 680876936, yt = (yt << 7 | yt >>> 25) + Dt << 0, Vt += (Ft ^ yt & (Dt ^ Ft)) + zt[1] - 389564586, Vt = (Vt << 12 | Vt >>> 20) + yt << 0, Ft += (Dt ^ Vt & (yt ^ Dt)) + zt[2] + 606105819, Ft = (Ft << 17 | Ft >>> 15) + Vt << 0, Dt += (yt ^ Ft & (Vt ^ yt)) + zt[3] - 1044525330, Dt = (Dt << 22 | Dt >>> 10) + Ft << 0), yt += (Vt ^ Dt & (Ft ^ Vt)) + zt[4] - 176418897, yt = (yt << 7 | yt >>> 25) + Dt << 0, Vt += (Ft ^ yt & (Dt ^ Ft)) + zt[5] + 1200080426, Vt = (Vt << 12 | Vt >>> 20) + yt << 0, Ft += (Dt ^ Vt & (yt ^ Dt)) + zt[6] - 1473231341, Ft = (Ft << 17 | Ft >>> 15) + Vt << 0, Dt += (yt ^ Ft & (Vt ^ yt)) + zt[7] - 45705983, Dt = (Dt << 22 | Dt >>> 10) + Ft << 0, yt += (Vt ^ Dt & (Ft ^ Vt)) + zt[8] + 1770035416, yt = (yt << 7 | yt >>> 25) + Dt << 0, Vt += (Ft ^ yt & (Dt ^ Ft)) + zt[9] - 1958414417, Vt = (Vt << 12 | Vt >>> 20) + yt << 0, Ft += (Dt ^ Vt & (yt ^ Dt)) + zt[10] - 42063, Ft = (Ft << 17 | Ft >>> 15) + Vt << 0, Dt += (yt ^ Ft & (Vt ^ yt)) + zt[11] - 1990404162, Dt = (Dt << 22 | Dt >>> 10) + Ft << 0, yt += (Vt ^ Dt & (Ft ^ Vt)) + zt[12] + 1804603682, yt = (yt << 7 | yt >>> 25) + Dt << 0, Vt += (Ft ^ yt & (Dt ^ Ft)) + zt[13] - 40341101, Vt = (Vt << 12 | Vt >>> 20) + yt << 0, Ft += (Dt ^ Vt & (yt ^ Dt)) + zt[14] - 1502002290, Ft = (Ft << 17 | Ft >>> 15) + Vt << 0, Dt += (yt ^ Ft & (Vt ^ yt)) + zt[15] + 1236535329, Dt = (Dt << 22 | Dt >>> 10) + Ft << 0, yt += (Ft ^ Vt & (Dt ^ Ft)) + zt[1] - 165796510, yt = (yt << 5 | yt >>> 27) + Dt << 0, Vt += (Dt ^ Ft & (yt ^ Dt)) + zt[6] - 1069501632, Vt = (Vt << 9 | Vt >>> 23) + yt << 0, Ft += (yt ^ Dt & (Vt ^ yt)) + zt[11] + 643717713, Ft = (Ft << 14 | Ft >>> 18) + Vt << 0, Dt += (Vt ^ yt & (Ft ^ Vt)) + zt[0] - 373897302, Dt = (Dt << 20 | Dt >>> 12) + Ft << 0, yt += (Ft ^ Vt & (Dt ^ Ft)) + zt[5] - 701558691, yt = (yt << 5 | yt >>> 27) + Dt << 0, Vt += (Dt ^ Ft & (yt ^ Dt)) + zt[10] + 38016083, Vt = (Vt << 9 | Vt >>> 23) + yt << 0, Ft += (yt ^ Dt & (Vt ^ yt)) + zt[15] - 660478335, Ft = (Ft << 14 | Ft >>> 18) + Vt << 0, Dt += (Vt ^ yt & (Ft ^ Vt)) + zt[4] - 405537848, Dt = (Dt << 20 | Dt >>> 12) + Ft << 0, yt += (Ft ^ Vt & (Dt ^ Ft)) + zt[9] + 568446438, yt = (yt << 5 | yt >>> 27) + Dt << 0, Vt += (Dt ^ Ft & (yt ^ Dt)) + zt[14] - 1019803690, Vt = (Vt << 9 | Vt >>> 23) + yt << 0, Ft += (yt ^ Dt & (Vt ^ yt)) + zt[3] - 187363961, Ft = (Ft << 14 | Ft >>> 18) + Vt << 0, Dt += (Vt ^ yt & (Ft ^ Vt)) + zt[8] + 1163531501, Dt = (Dt << 20 | Dt >>> 12) + Ft << 0, yt += (Ft ^ Vt & (Dt ^ Ft)) + zt[13] - 1444681467, yt = (yt << 5 | yt >>> 27) + Dt << 0, Vt += (Dt ^ Ft & (yt ^ Dt)) + zt[2] - 51403784, Vt = (Vt << 9 | Vt >>> 23) + yt << 0, Ft += (yt ^ Dt & (Vt ^ yt)) + zt[7] + 1735328473, Ft = (Ft << 14 | Ft >>> 18) + Vt << 0, Dt += (Vt ^ yt & (Ft ^ Vt)) + zt[12] - 1926607734, Dt = (Dt << 20 | Dt >>> 12) + Ft << 0, Wt = Dt ^ Ft, yt += (Wt ^ Vt) + zt[5] - 378558, yt = (yt << 4 | yt >>> 28) + Dt << 0, Vt += (Wt ^ yt) + zt[8] - 2022574463, Vt = (Vt << 11 | Vt >>> 21) + yt << 0, qt = Vt ^ yt, Ft += (qt ^ Dt) + zt[11] + 1839030562, Ft = (Ft << 16 | Ft >>> 16) + Vt << 0, Dt += (qt ^ Ft) + zt[14] - 35309556, Dt = (Dt << 23 | Dt >>> 9) + Ft << 0, Wt = Dt ^ Ft, yt += (Wt ^ Vt) + zt[1] - 1530992060, yt = (yt << 4 | yt >>> 28) + Dt << 0, Vt += (Wt ^ yt) + zt[4] + 1272893353, Vt = (Vt << 11 | Vt >>> 21) + yt << 0, qt = Vt ^ yt, Ft += (qt ^ Dt) + zt[7] - 155497632, Ft = (Ft << 16 | Ft >>> 16) + Vt << 0, Dt += (qt ^ Ft) + zt[10] - 1094730640, Dt = (Dt << 23 | Dt >>> 9) + Ft << 0, Wt = Dt ^ Ft, yt += (Wt ^ Vt) + zt[13] + 681279174, yt = (yt << 4 | yt >>> 28) + Dt << 0, Vt += (Wt ^ yt) + zt[0] - 358537222, Vt = (Vt << 11 | Vt >>> 21) + yt << 0, qt = Vt ^ yt, Ft += (qt ^ Dt) + zt[3] - 722521979, Ft = (Ft << 16 | Ft >>> 16) + Vt << 0, Dt += (qt ^ Ft) + zt[6] + 76029189, Dt = (Dt << 23 | Dt >>> 9) + Ft << 0, Wt = Dt ^ Ft, yt += (Wt ^ Vt) + zt[9] - 640364487, yt = (yt << 4 | yt >>> 28) + Dt << 0, Vt += (Wt ^ yt) + zt[12] - 421815835, Vt = (Vt << 11 | Vt >>> 21) + yt << 0, qt = Vt ^ yt, Ft += (qt ^ Dt) + zt[15] + 530742520, Ft = (Ft << 16 | Ft >>> 16) + Vt << 0, Dt += (qt ^ Ft) + zt[2] - 995338651, Dt = (Dt << 23 | Dt >>> 9) + Ft << 0, yt += (Ft ^ (Dt | ~Vt)) + zt[0] - 198630844, yt = (yt << 6 | yt >>> 26) + Dt << 0, Vt += (Dt ^ (yt | ~Ft)) + zt[7] + 1126891415, Vt = (Vt << 10 | Vt >>> 22) + yt << 0, Ft += (yt ^ (Vt | ~Dt)) + zt[14] - 1416354905, Ft = (Ft << 15 | Ft >>> 17) + Vt << 0, Dt += (Vt ^ (Ft | ~yt)) + zt[5] - 57434055, Dt = (Dt << 21 | Dt >>> 11) + Ft << 0, yt += (Ft ^ (Dt | ~Vt)) + zt[12] + 1700485571, yt = (yt << 6 | yt >>> 26) + Dt << 0, Vt += (Dt ^ (yt | ~Ft)) + zt[3] - 1894986606, Vt = (Vt << 10 | Vt >>> 22) + yt << 0, Ft += (yt ^ (Vt | ~Dt)) + zt[10] - 1051523, Ft = (Ft << 15 | Ft >>> 17) + Vt << 0, Dt += (Vt ^ (Ft | ~yt)) + zt[1] - 2054922799, Dt = (Dt << 21 | Dt >>> 11) + Ft << 0, yt += (Ft ^ (Dt | ~Vt)) + zt[8] + 1873313359, yt = (yt << 6 | yt >>> 26) + Dt << 0, Vt += (Dt ^ (yt | ~Ft)) + zt[15] - 30611744, Vt = (Vt << 10 | Vt >>> 22) + yt << 0, Ft += (yt ^ (Vt | ~Dt)) + zt[6] - 1560198380, Ft = (Ft << 15 | Ft >>> 17) + Vt << 0, Dt += (Vt ^ (Ft | ~yt)) + zt[13] + 1309151649, Dt = (Dt << 21 | Dt >>> 11) + Ft << 0, yt += (Ft ^ (Dt | ~Vt)) + zt[4] - 145523070, yt = (yt << 6 | yt >>> 26) + Dt << 0, Vt += (Dt ^ (yt | ~Ft)) + zt[11] - 1120210379, Vt = (Vt << 10 | Vt >>> 22) + yt << 0, Ft += (yt ^ (Vt | ~Dt)) + zt[2] + 718787259, Ft = (Ft << 15 | Ft >>> 17) + Vt << 0, Dt += (Vt ^ (Ft | ~yt)) + zt[9] - 343485551, Dt = (Dt << 21 | Dt >>> 11) + Ft << 0, this.first ? (this.h0 = yt + 1732584193 << 0, this.h1 = Dt - 271733879 << 0, this.h2 = Ft - 1732584194 << 0, this.h3 = Vt + 271733878 << 0, this.first = !1) : (this.h0 = this.h0 + yt << 0, this.h1 = this.h1 + Dt << 0, this.h2 = this.h2 + Ft << 0, this.h3 = this.h3 + Vt << 0);
|
|
57845
57845
|
}, Mt.prototype.hex = function() {
|
|
57846
57846
|
this.finalize();
|
|
57847
|
-
var yt = this.h0, Dt = this.h1,
|
|
57848
|
-
return f[yt >>> 4 & 15] + f[yt & 15] + f[yt >>> 12 & 15] + f[yt >>> 8 & 15] + f[yt >>> 20 & 15] + f[yt >>> 16 & 15] + f[yt >>> 28 & 15] + f[yt >>> 24 & 15] + f[Dt >>> 4 & 15] + f[Dt & 15] + f[Dt >>> 12 & 15] + f[Dt >>> 8 & 15] + f[Dt >>> 20 & 15] + f[Dt >>> 16 & 15] + f[Dt >>> 28 & 15] + f[Dt >>> 24 & 15] + f[
|
|
57847
|
+
var yt = this.h0, Dt = this.h1, Ft = this.h2, Vt = this.h3;
|
|
57848
|
+
return f[yt >>> 4 & 15] + f[yt & 15] + f[yt >>> 12 & 15] + f[yt >>> 8 & 15] + f[yt >>> 20 & 15] + f[yt >>> 16 & 15] + f[yt >>> 28 & 15] + f[yt >>> 24 & 15] + f[Dt >>> 4 & 15] + f[Dt & 15] + f[Dt >>> 12 & 15] + f[Dt >>> 8 & 15] + f[Dt >>> 20 & 15] + f[Dt >>> 16 & 15] + f[Dt >>> 28 & 15] + f[Dt >>> 24 & 15] + f[Ft >>> 4 & 15] + f[Ft & 15] + f[Ft >>> 12 & 15] + f[Ft >>> 8 & 15] + f[Ft >>> 20 & 15] + f[Ft >>> 16 & 15] + f[Ft >>> 28 & 15] + f[Ft >>> 24 & 15] + f[Vt >>> 4 & 15] + f[Vt & 15] + f[Vt >>> 12 & 15] + f[Vt >>> 8 & 15] + f[Vt >>> 20 & 15] + f[Vt >>> 16 & 15] + f[Vt >>> 28 & 15] + f[Vt >>> 24 & 15];
|
|
57849
57849
|
}, Mt.prototype.toString = Mt.prototype.hex, Mt.prototype.digest = function() {
|
|
57850
57850
|
this.finalize();
|
|
57851
|
-
var yt = this.h0, Dt = this.h1,
|
|
57851
|
+
var yt = this.h0, Dt = this.h1, Ft = this.h2, Vt = this.h3;
|
|
57852
57852
|
return [
|
|
57853
57853
|
yt & 255,
|
|
57854
57854
|
yt >>> 8 & 255,
|
|
@@ -57858,10 +57858,10 @@ function requireMd5() {
|
|
|
57858
57858
|
Dt >>> 8 & 255,
|
|
57859
57859
|
Dt >>> 16 & 255,
|
|
57860
57860
|
Dt >>> 24 & 255,
|
|
57861
|
-
|
|
57862
|
-
|
|
57863
|
-
|
|
57864
|
-
|
|
57861
|
+
Ft & 255,
|
|
57862
|
+
Ft >>> 8 & 255,
|
|
57863
|
+
Ft >>> 16 & 255,
|
|
57864
|
+
Ft >>> 24 & 255,
|
|
57865
57865
|
Vt & 255,
|
|
57866
57866
|
Vt >>> 8 & 255,
|
|
57867
57867
|
Vt >>> 16 & 255,
|
|
@@ -57872,23 +57872,23 @@ function requireMd5() {
|
|
|
57872
57872
|
var yt = new ArrayBuffer(16), Dt = new Uint32Array(yt);
|
|
57873
57873
|
return Dt[0] = this.h0, Dt[1] = this.h1, Dt[2] = this.h2, Dt[3] = this.h3, yt;
|
|
57874
57874
|
}, Mt.prototype.buffer = Mt.prototype.arrayBuffer, Mt.prototype.base64 = function() {
|
|
57875
|
-
for (var yt, Dt,
|
|
57876
|
-
yt = Wt[qt++], Dt = Wt[qt++],
|
|
57875
|
+
for (var yt, Dt, Ft, Vt = "", Wt = this.array(), qt = 0; qt < 15; )
|
|
57876
|
+
yt = Wt[qt++], Dt = Wt[qt++], Ft = Wt[qt++], Vt += I[yt >>> 2] + I[(yt << 4 | Dt >>> 4) & 63] + I[(Dt << 2 | Ft >>> 6) & 63] + I[Ft & 63];
|
|
57877
57877
|
return yt = Wt[qt], Vt += I[yt >>> 2] + I[yt << 4 & 63] + "==", Vt;
|
|
57878
57878
|
};
|
|
57879
57879
|
function It(yt, Dt) {
|
|
57880
|
-
var
|
|
57880
|
+
var Ft, Vt = dt(yt);
|
|
57881
57881
|
if (yt = Vt[0], Vt[1]) {
|
|
57882
57882
|
var Wt = [], qt = yt.length, zt = 0, Ht;
|
|
57883
|
-
for (
|
|
57884
|
-
Ht = yt.charCodeAt(
|
|
57883
|
+
for (Ft = 0; Ft < qt; ++Ft)
|
|
57884
|
+
Ht = yt.charCodeAt(Ft), Ht < 128 ? Wt[zt++] = Ht : Ht < 2048 ? (Wt[zt++] = 192 | Ht >>> 6, Wt[zt++] = 128 | Ht & 63) : Ht < 55296 || Ht >= 57344 ? (Wt[zt++] = 224 | Ht >>> 12, Wt[zt++] = 128 | Ht >>> 6 & 63, Wt[zt++] = 128 | Ht & 63) : (Ht = 65536 + ((Ht & 1023) << 10 | yt.charCodeAt(++Ft) & 1023), Wt[zt++] = 240 | Ht >>> 18, Wt[zt++] = 128 | Ht >>> 12 & 63, Wt[zt++] = 128 | Ht >>> 6 & 63, Wt[zt++] = 128 | Ht & 63);
|
|
57885
57885
|
yt = Wt;
|
|
57886
57886
|
}
|
|
57887
57887
|
yt.length > 64 && (yt = new Mt(!0).update(yt).array());
|
|
57888
57888
|
var Ut = [], nr = [];
|
|
57889
|
-
for (
|
|
57890
|
-
var Zt = yt[
|
|
57891
|
-
Ut[
|
|
57889
|
+
for (Ft = 0; Ft < 64; ++Ft) {
|
|
57890
|
+
var Zt = yt[Ft] || 0;
|
|
57891
|
+
Ut[Ft] = 92 ^ Zt, nr[Ft] = 54 ^ Zt;
|
|
57892
57892
|
}
|
|
57893
57893
|
Mt.call(this, Dt), this.update(nr), this.oKeyPad = Ut, this.inner = !0, this.sharedMemory = Dt;
|
|
57894
57894
|
}
|
|
@@ -57899,8 +57899,8 @@ function requireMd5() {
|
|
|
57899
57899
|
Mt.call(this, this.sharedMemory), this.update(this.oKeyPad), this.update(yt), Mt.prototype.finalize.call(this);
|
|
57900
57900
|
}
|
|
57901
57901
|
};
|
|
57902
|
-
var
|
|
57903
|
-
|
|
57902
|
+
var $t = ft();
|
|
57903
|
+
$t.md5 = $t, $t.md5.hmac = Rt(), c ? e.exports = $t : a.md5 = $t;
|
|
57904
57904
|
})();
|
|
57905
57905
|
})(md5)), md5.exports;
|
|
57906
57906
|
}
|
|
@@ -57960,9 +57960,9 @@ async function fetchApiFunctions(e) {
|
|
|
57960
57960
|
V.length > 0 && V[0].toLowerCase() === "v4" ? I = V.length > 1 ? V[1] : "api" : I = V.length > 0 ? V[0] : "api", I = I.replace(/[{}]/g, "");
|
|
57961
57961
|
const ot = getHash(c), lt = `${S}-${I.toLowerCase()}-${ot}`, at = {}, ct = [];
|
|
57962
57962
|
R.parameters?.forEach((Mt) => {
|
|
57963
|
-
const It = Mt.schema?.type,
|
|
57963
|
+
const It = Mt.schema?.type, $t = It === "integer" || It === "number" ? "number" : It === "boolean" ? "boolean" : "string";
|
|
57964
57964
|
at[Mt.name] = {
|
|
57965
|
-
type:
|
|
57965
|
+
type: $t,
|
|
57966
57966
|
description: Mt.description || `The ${Mt.name} parameter`
|
|
57967
57967
|
}, Mt.required && ct.push(Mt.name);
|
|
57968
57968
|
});
|
|
@@ -57970,10 +57970,10 @@ async function fetchApiFunctions(e) {
|
|
|
57970
57970
|
if ((S === "post" || S === "put") && R.requestBody) {
|
|
57971
57971
|
const Mt = getRequestBodySchema(R.requestBody), It = R.requestBody.description || defaultSchemaDescription;
|
|
57972
57972
|
if (Mt && isSchemaReference(Mt) && Mt.$ref.startsWith("#/components/schemas/")) {
|
|
57973
|
-
const
|
|
57973
|
+
const $t = Mt.$ref.substring(21), yt = s.components.schemas[$t], Dt = isSchemaObject(yt) ? yt.properties : void 0, Ft = Dt ? JSON.stringify(Dt) : "Refer to API schema for details.";
|
|
57974
57974
|
at[bodyKey] = {
|
|
57975
57975
|
type: "string",
|
|
57976
|
-
description: `${It}. Must be a JSON string with these properties: ${
|
|
57976
|
+
description: `${It}. Must be a JSON string with these properties: ${Ft}`
|
|
57977
57977
|
};
|
|
57978
57978
|
} else
|
|
57979
57979
|
at[bodyKey] = {
|
|
@@ -57999,18 +57999,18 @@ ${R.description}` : R.summary || `${S.toUpperCase()} ${V[V.length - 1]}`,
|
|
|
57999
57999
|
const nr = `{${Ut}}`, sr = Mt[Ut];
|
|
58000
58000
|
sr != null && (It = It.replace(nr, encodeURIComponent(String(sr))));
|
|
58001
58001
|
});
|
|
58002
|
-
const
|
|
58002
|
+
const $t = buildApiUrl(It, n), yt = localStorage.getItem("access_token"), Dt = {
|
|
58003
58003
|
method: S.toUpperCase(),
|
|
58004
58004
|
headers: {
|
|
58005
58005
|
Authorization: yt ? `Bearer ${yt}` : "",
|
|
58006
58006
|
"Content-Type": "application/json"
|
|
58007
58007
|
}
|
|
58008
|
-
},
|
|
58008
|
+
}, Ft = new URLSearchParams();
|
|
58009
58009
|
(R.parameters?.filter((Ut) => Ut.in === "query") || []).forEach((Ut) => {
|
|
58010
58010
|
const nr = Ut.name, Zt = Mt[nr];
|
|
58011
|
-
Zt != null &&
|
|
58011
|
+
Zt != null && Ft.set(Ut.name, String(Zt));
|
|
58012
58012
|
});
|
|
58013
|
-
const Wt =
|
|
58013
|
+
const Wt = Ft.toString(), qt = Wt ? `${$t}${$t.includes("?") ? "&" : "?"}${Wt}` : $t;
|
|
58014
58014
|
if (S === "post" || S === "put") {
|
|
58015
58015
|
const nr = Mt[bodyKey];
|
|
58016
58016
|
nr && (Dt.body = nr);
|
|
@@ -58022,8 +58022,8 @@ ${R.description}` : R.summary || `${S.toUpperCase()} ${V[V.length - 1]}`,
|
|
|
58022
58022
|
}
|
|
58023
58023
|
const Ht = await zt.text();
|
|
58024
58024
|
return Ht.length > 3e6 ? "response body dropped - it was too big to fix in the context window. Try a different function." : Ht;
|
|
58025
|
-
} catch (
|
|
58026
|
-
return console.error(`Error in ${lt}:`,
|
|
58025
|
+
} catch ($t) {
|
|
58026
|
+
return console.error(`Error in ${lt}:`, $t), `I'm sorry, I couldn't retrieve the requested information. Error: ${$t instanceof Error ? $t.message : "Unknown error"}`;
|
|
58027
58027
|
}
|
|
58028
58028
|
}, ft = R.tags?.[0] ?? "Partner", Ct = `${{
|
|
58029
58029
|
get: "Fetching",
|
|
@@ -58045,7 +58045,7 @@ ${R.description}` : R.summary || `${S.toUpperCase()} ${V[V.length - 1]}`,
|
|
|
58045
58045
|
}
|
|
58046
58046
|
}
|
|
58047
58047
|
function useAIAssistant({ userId: e, apiConfig: t, onGeneratedImageUploaded: n }) {
|
|
58048
|
-
const [o, a] = useState(""), [s, l] = useState([]), [c, d] = useState([]), [f, S] = useState([]), [R, V] = useState(!1), [I, ot] = useState([]), [lt, at] = useState([]), [ct, ut] = useState(0), dt = useRef(!1), pt = useRef(null), ft = useRef(null), mt = useRef([]), Ct = useRef([]), Rt = useRef(/* @__PURE__ */ new Map()), [Mt] = useLazyGetV4PartnerByApplicationIdAccountQuery(), [It] = usePostV4PartnerByApplicationIdGenerationRandmarAssistantMutation(), [
|
|
58048
|
+
const [o, a] = useState(""), [s, l] = useState([]), [c, d] = useState([]), [f, S] = useState([]), [R, V] = useState(!1), [I, ot] = useState([]), [lt, at] = useState([]), [ct, ut] = useState(0), dt = useRef(!1), pt = useRef(null), ft = useRef(null), mt = useRef([]), Ct = useRef([]), Rt = useRef(/* @__PURE__ */ new Map()), [Mt] = useLazyGetV4PartnerByApplicationIdAccountQuery(), [It] = usePostV4PartnerByApplicationIdGenerationRandmarAssistantMutation(), [$t] = usePostV4PartnerByApplicationIdGenerationUploadMutation();
|
|
58049
58049
|
useEffect(() => {
|
|
58050
58050
|
const Yt = async () => {
|
|
58051
58051
|
V(!0);
|
|
@@ -58100,7 +58100,7 @@ function useAIAssistant({ userId: e, apiConfig: t, onGeneratedImageUploaded: n }
|
|
|
58100
58100
|
const er = `${Yt.name} failed.`;
|
|
58101
58101
|
return console.error(er, Qt), JSON.stringify({ error: er, details: Qt instanceof Error ? Qt.message : String(Qt) });
|
|
58102
58102
|
}
|
|
58103
|
-
},
|
|
58103
|
+
}, Ft = (Yt) => {
|
|
58104
58104
|
if (typeof Yt != "string" || Yt.length === 0 || !Yt.includes("Base64Data") && !Yt.includes("base64Data") && !Yt.includes('"Images"') && !Yt.includes('"images"'))
|
|
58105
58105
|
return null;
|
|
58106
58106
|
let or;
|
|
@@ -58134,7 +58134,7 @@ function useAIAssistant({ userId: e, apiConfig: t, onGeneratedImageUploaded: n }
|
|
|
58134
58134
|
if (dt.current || !Yt || Yt.length === 0) return;
|
|
58135
58135
|
const Qt = /* @__PURE__ */ new Date(), er = `${Qt.getFullYear()}${String(Qt.getMonth() + 1).padStart(2, "0")}${String(Qt.getDate()).padStart(2, "0")}_${String(Qt.getHours()).padStart(2, "0")}${String(Qt.getMinutes()).padStart(2, "0")}${String(Qt.getSeconds()).padStart(2, "0")}`, yr = await Promise.allSettled(
|
|
58136
58136
|
Yt.map(async (xr, lr) => {
|
|
58137
|
-
const ur = Vt(xr.mimeType), Sr = `generated_${er}_${lr + 1}.${ur}`, Rr = Wt(xr.base64Data), Cr = new File([Rr], Sr, { type: xr.mimeType }), Pr =
|
|
58137
|
+
const ur = Vt(xr.mimeType), Sr = `generated_${er}_${lr + 1}.${ur}`, Rr = Wt(xr.base64Data), Cr = new File([Rr], Sr, { type: xr.mimeType }), Pr = $t({ applicationId: e, body: { file: Cr } });
|
|
58138
58138
|
mt.current.push(Pr);
|
|
58139
58139
|
try {
|
|
58140
58140
|
const _r = await Pr.unwrap();
|
|
@@ -58190,7 +58190,7 @@ function useAIAssistant({ userId: e, apiConfig: t, onGeneratedImageUploaded: n }
|
|
|
58190
58190
|
a("");
|
|
58191
58191
|
return;
|
|
58192
58192
|
}
|
|
58193
|
-
const Pr =
|
|
58193
|
+
const Pr = Ft(Cr);
|
|
58194
58194
|
if (Pr) {
|
|
58195
58195
|
const Kt = Zt({
|
|
58196
58196
|
content: "",
|
|
@@ -58231,7 +58231,7 @@ function useAIAssistant({ userId: e, apiConfig: t, onGeneratedImageUploaded: n }
|
|
|
58231
58231
|
[await lr.arrayBuffer()],
|
|
58232
58232
|
lr.name,
|
|
58233
58233
|
{ type: lr.type }
|
|
58234
|
-
), Sr =
|
|
58234
|
+
), Sr = $t({ applicationId: e, body: { file: ur } });
|
|
58235
58235
|
ft.current = Sr;
|
|
58236
58236
|
const Rr = await Sr.unwrap();
|
|
58237
58237
|
if (ft.current = null, dt.current) {
|
|
@@ -58355,10 +58355,10 @@ ${Er}`;
|
|
|
58355
58355
|
botReady: Rt,
|
|
58356
58356
|
debugMessages: Mt,
|
|
58357
58357
|
botStatus: It,
|
|
58358
|
-
reset:
|
|
58358
|
+
reset: $t,
|
|
58359
58359
|
stop: yt,
|
|
58360
58360
|
editAndResubmit: Dt,
|
|
58361
|
-
contextUsage:
|
|
58361
|
+
contextUsage: Ft
|
|
58362
58362
|
} = useAIAssistant({ userId: e, apiConfig: at, onGeneratedImageUploaded: pt }), Vt = useRef(null), Wt = useRef(null), qt = "New Chat", zt = useCallback(() => {
|
|
58363
58363
|
if (typeof window > "u") return;
|
|
58364
58364
|
const cr = window.location?.href ?? "", vr = typeof document < "u" ? document.title ?? "" : "";
|
|
@@ -58701,8 +58701,8 @@ ${Lr}`
|
|
|
58701
58701
|
d(!1);
|
|
58702
58702
|
});
|
|
58703
58703
|
}, Fn = useCallback(() => {
|
|
58704
|
-
hn(), ct.current = [], xr.current = !1, lr.current = null, dr((cr) => cr.map((Er) => Er.partner1 !== ASSISTANT_ID && Er.partner2 !== ASSISTANT_ID ? Er : { ...Er, messages: [] })), Dr([]), hr(""), or(!1), er(!1), gr(!1), mr(!1), Ir(null), Xt(!1), Sr(null), Cr(""),
|
|
58705
|
-
}, [
|
|
58704
|
+
hn(), ct.current = [], xr.current = !1, lr.current = null, dr((cr) => cr.map((Er) => Er.partner1 !== ASSISTANT_ID && Er.partner2 !== ASSISTANT_ID ? Er : { ...Er, messages: [] })), Dr([]), hr(""), or(!1), er(!1), gr(!1), mr(!1), Ir(null), Xt(!1), Sr(null), Cr(""), $t();
|
|
58705
|
+
}, [$t, hn]);
|
|
58706
58706
|
useEffect(() => {
|
|
58707
58707
|
if ((a ?? !0) === !1) return;
|
|
58708
58708
|
const cr = (vr) => {
|
|
@@ -59296,11 +59296,11 @@ ${Lr}`
|
|
|
59296
59296
|
/* @__PURE__ */ jsx(GeminiIcon, {})
|
|
59297
59297
|
] }),
|
|
59298
59298
|
/* @__PURE__ */ jsxs("div", { className: "flex-1 max-w-[160px]", children: [
|
|
59299
|
-
/* @__PURE__ */ jsx(Progress, { value: Math.round((
|
|
59299
|
+
/* @__PURE__ */ jsx(Progress, { value: Math.round((Ft || 0) * 100), className: "h-2" }),
|
|
59300
59300
|
/* @__PURE__ */ jsxs("div", { className: "flex justify-between text-[10px] text-muted-foreground mt-1", children: [
|
|
59301
59301
|
/* @__PURE__ */ jsx("span", { children: "Context" }),
|
|
59302
59302
|
/* @__PURE__ */ jsxs("span", { children: [
|
|
59303
|
-
Math.round((
|
|
59303
|
+
Math.round((Ft || 0) * 100),
|
|
59304
59304
|
"%"
|
|
59305
59305
|
] })
|
|
59306
59306
|
] })
|
|
@@ -59342,7 +59342,7 @@ function isRoutePathActive(e, t) {
|
|
|
59342
59342
|
}
|
|
59343
59343
|
const Navbar = forwardRef(
|
|
59344
59344
|
({ routes: e, footer: t, dashboardTitle: n, chatUserName: o, appID: a, chatRoutePath: s }, l) => {
|
|
59345
|
-
const c = e.filter((Ht) => Ht.showInNav), d = useRef(null), f = useRef(null), S = useRef(null), [R, V] = useState(!1), [I, ot] = useState([]), [lt, at] = useState(!1), [ct, ut] = useState(!1), [dt, pt] = useState(""), [ft, mt] = useState(""), [Ct, Rt] = useState({}), { isMobile: Mt, setOpenMobile: It } = useSidebar(),
|
|
59345
|
+
const c = e.filter((Ht) => Ht.showInNav), d = useRef(null), f = useRef(null), S = useRef(null), [R, V] = useState(!1), [I, ot] = useState([]), [lt, at] = useState(!1), [ct, ut] = useState(!1), [dt, pt] = useState(""), [ft, mt] = useState(""), [Ct, Rt] = useState({}), { isMobile: Mt, setOpenMobile: It } = useSidebar(), $t = useLocation(), { data: yt } = useGetV4PartnerByRouteApplicationIdBusinessDevelopmentConversationsHasUnreadsQuery({ routeApplicationId: a }), { hasUnreads: Dt } = useChat();
|
|
59346
59346
|
useEffect(() => {
|
|
59347
59347
|
if (!(typeof window > "u"))
|
|
59348
59348
|
try {
|
|
@@ -59371,7 +59371,7 @@ const Navbar = forwardRef(
|
|
|
59371
59371
|
} catch {
|
|
59372
59372
|
}
|
|
59373
59373
|
}, [I, lt]);
|
|
59374
|
-
const
|
|
59374
|
+
const Ft = useCallback(() => {
|
|
59375
59375
|
pt(""), mt(""), Rt({});
|
|
59376
59376
|
}, []), Vt = useCallback(
|
|
59377
59377
|
(Ht, Ut = null, nr = null, Zt) => {
|
|
@@ -59408,9 +59408,9 @@ const Navbar = forwardRef(
|
|
|
59408
59408
|
ot((dr) => [
|
|
59409
59409
|
...dr,
|
|
59410
59410
|
{ id: sr, title: Ut, prompt: nr, createdAt: Date.now() }
|
|
59411
|
-
]), ut(!1),
|
|
59411
|
+
]), ut(!1), Ft();
|
|
59412
59412
|
}, zt = c.find(
|
|
59413
|
-
(Ht) => isRoutePathActive(
|
|
59413
|
+
(Ht) => isRoutePathActive($t.pathname, resolveRoutePath(Ht.path, a))
|
|
59414
59414
|
)?.label ?? "None";
|
|
59415
59415
|
return /* @__PURE__ */ jsxs(Sidebar, { className: "border-r border-sidebar-border", children: [
|
|
59416
59416
|
/* @__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: [
|
|
@@ -59433,7 +59433,7 @@ const Navbar = forwardRef(
|
|
|
59433
59433
|
] })
|
|
59434
59434
|
] }),
|
|
59435
59435
|
/* @__PURE__ */ jsx("div", { className: "mt-4 grid grid-cols-3 gap-3", children: c.map((Ht) => {
|
|
59436
|
-
const Ut = Ht.icon ?? AppWindow, nr = resolveRoutePath(Ht.path, a), Zt = isRoutePathActive(
|
|
59436
|
+
const Ut = Ht.icon ?? AppWindow, nr = resolveRoutePath(Ht.path, a), Zt = isRoutePathActive($t.pathname, nr);
|
|
59437
59437
|
return /* @__PURE__ */ jsxs(
|
|
59438
59438
|
Link$1,
|
|
59439
59439
|
{
|
|
@@ -59460,7 +59460,7 @@ const Navbar = forwardRef(
|
|
|
59460
59460
|
{
|
|
59461
59461
|
open: ct,
|
|
59462
59462
|
onOpenChange: (Ht) => {
|
|
59463
|
-
ut(Ht), Ht ||
|
|
59463
|
+
ut(Ht), Ht || Ft();
|
|
59464
59464
|
},
|
|
59465
59465
|
children: [
|
|
59466
59466
|
/* @__PURE__ */ jsx(SidebarMenuItem, { children: /* @__PURE__ */ jsx(DialogTrigger, { asChild: !0, children: /* @__PURE__ */ jsxs(SidebarMenuButton, { className: "px-6", children: [
|
|
@@ -59544,7 +59544,7 @@ const Navbar = forwardRef(
|
|
|
59544
59544
|
] }),
|
|
59545
59545
|
/* @__PURE__ */ jsx(SidebarSeparator, { className: "my-2" }),
|
|
59546
59546
|
/* @__PURE__ */ jsx(SidebarMenu, { children: c.map((Ht) => {
|
|
59547
|
-
const Ut = Ht.icon, nr = resolveRoutePath(Ht.path, a), Zt = isRoutePathActive(
|
|
59547
|
+
const Ut = Ht.icon, nr = resolveRoutePath(Ht.path, a), Zt = isRoutePathActive($t.pathname, nr);
|
|
59548
59548
|
return /* @__PURE__ */ jsx(SidebarMenuItem, { children: /* @__PURE__ */ jsx(SidebarMenuButton, { asChild: !0, isActive: Zt, children: /* @__PURE__ */ jsxs(Link$1, { to: nr, className: "transition-colors hover:bg-muted px-6", children: [
|
|
59549
59549
|
Ut && /* @__PURE__ */ jsx(Ut, { className: "h-4 w-4" }),
|
|
59550
59550
|
/* @__PURE__ */ jsx("span", { children: Ht.label })
|
|
@@ -59663,10 +59663,10 @@ const salesChannels = [
|
|
|
59663
59663
|
{ id: "other-market", label: "Other (please specify)" }
|
|
59664
59664
|
];
|
|
59665
59665
|
function ManufacturerGetStartedButton({ applicationId: e, manufacturer: t }) {
|
|
59666
|
-
const { toast: n } = useToast(), [o, a] = useState(!1), [s, l] = useState(!1), [c, d] = useState(!1), [f, S] = useState(""), [R, V] = useState(""), [I, ot] = useState(!1), [lt, at] = useState(""), [ct, ut] = useState(""), [dt, pt] = useState([]), [ft, mt] = useState(""), [Ct, Rt] = useState(""), [Mt, It] = useState([]), [
|
|
59666
|
+
const { toast: n } = useToast(), [o, a] = useState(!1), [s, l] = useState(!1), [c, d] = useState(!1), [f, S] = useState(""), [R, V] = useState(""), [I, ot] = useState(!1), [lt, at] = useState(""), [ct, ut] = useState(""), [dt, pt] = useState([]), [ft, mt] = useState(""), [Ct, Rt] = useState(""), [Mt, It] = useState([]), [$t, yt] = useState(""), [Dt, Ft] = useState(""), [Vt] = usePostV4PartnerByRouteApplicationIdBusinessDevelopmentConversationPartnerAndPartnerIdMutation(), Wt = () => {
|
|
59667
59667
|
S(""), V("");
|
|
59668
59668
|
}, qt = () => {
|
|
59669
|
-
at(""), ut(""), pt([]), mt(""), Rt(""), It([]), yt(""),
|
|
59669
|
+
at(""), ut(""), pt([]), mt(""), Rt(""), It([]), yt(""), Ft("");
|
|
59670
59670
|
}, zt = () => {
|
|
59671
59671
|
t.PartnerRegistrationLink ? a(!0) : t.OpenToWork && l(!0);
|
|
59672
59672
|
}, Ht = (Jt) => {
|
|
@@ -59847,8 +59847,8 @@ function ManufacturerGetStartedButton({ applicationId: e, manufacturer: t }) {
|
|
|
59847
59847
|
),
|
|
59848
59848
|
/* @__PURE__ */ jsx(Label$2, { htmlFor: `market-${Jt.id}`, className: "text-sm font-normal", children: Jt.label })
|
|
59849
59849
|
] }, Jt.id)) }),
|
|
59850
|
-
dr && /* @__PURE__ */ jsx(Input, { placeholder: "Please specify", value: Dt, onChange: (Jt) =>
|
|
59851
|
-
|
|
59850
|
+
dr && /* @__PURE__ */ jsx(Input, { placeholder: "Please specify", value: Dt, onChange: (Jt) => Ft(Jt.target.value) }),
|
|
59851
|
+
$t && /* @__PURE__ */ jsx("p", { className: "text-sm font-medium text-destructive", children: $t })
|
|
59852
59852
|
] }),
|
|
59853
59853
|
/* @__PURE__ */ jsx(DialogFooter, { children: /* @__PURE__ */ jsx(Button$1, { type: "submit", disabled: I, children: I ? /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
59854
59854
|
/* @__PURE__ */ jsx(LoaderCircle, { className: "mr-2 h-4 w-4 animate-spin" }),
|
|
@@ -60538,12 +60538,12 @@ function ProductImageCarousel({
|
|
|
60538
60538
|
ot(Wt);
|
|
60539
60539
|
},
|
|
60540
60540
|
[ft]
|
|
60541
|
-
),
|
|
60541
|
+
), $t = React.useCallback(() => It(I - 1), [I, It]), yt = React.useCallback(() => It(I + 1), [I, It]), Dt = React.useCallback(
|
|
60542
60542
|
(Vt) => {
|
|
60543
60543
|
if (!(ft <= 1))
|
|
60544
60544
|
switch (Vt.key) {
|
|
60545
60545
|
case "ArrowLeft":
|
|
60546
|
-
Vt.preventDefault(),
|
|
60546
|
+
Vt.preventDefault(), $t();
|
|
60547
60547
|
break;
|
|
60548
60548
|
case "ArrowRight":
|
|
60549
60549
|
Vt.preventDefault(), yt();
|
|
@@ -60556,7 +60556,7 @@ function ProductImageCarousel({
|
|
|
60556
60556
|
break;
|
|
60557
60557
|
}
|
|
60558
60558
|
},
|
|
60559
|
-
[yt,
|
|
60559
|
+
[yt, $t, It, ft]
|
|
60560
60560
|
);
|
|
60561
60561
|
if (React.useEffect(() => {
|
|
60562
60562
|
if (!dt?.length || ft <= 1) return;
|
|
@@ -60639,7 +60639,7 @@ function ProductImageCarousel({
|
|
|
60639
60639
|
variant: "secondary",
|
|
60640
60640
|
size: "icon",
|
|
60641
60641
|
className: "absolute left-2 top-1/2 -translate-y-1/2 bg-background/80 text-foreground shadow-sm ring-1 ring-border/50 opacity-0 transition-opacity group-hover:opacity-100 group-focus-within:opacity-100 focus-visible:opacity-100",
|
|
60642
|
-
onClick:
|
|
60642
|
+
onClick: $t,
|
|
60643
60643
|
"aria-label": "Previous image",
|
|
60644
60644
|
children: /* @__PURE__ */ jsx(ChevronLeft, { className: "h-4 w-4" })
|
|
60645
60645
|
}
|
|
@@ -60694,7 +60694,7 @@ function ProductCard({
|
|
|
60694
60694
|
customAction: c = /* @__PURE__ */ jsx(Fragment$1, {}),
|
|
60695
60695
|
showUsdLabelOnCost: d = !1
|
|
60696
60696
|
}) {
|
|
60697
|
-
const f = useNavigate(), { toast: S } = useToast(), [R, V] = useState(1), [I, ot] = useState(null), [lt, at] = useState(0), [ct, ut] = useState(!1), [dt] = usePostV4ResellerByRouteResellerIdProductAndRandmarSkuShopifyMutation(), [pt, ft] = useState(!1), [mt, Ct] = useState(null), [Rt, Mt] = useState("idle"), [It,
|
|
60697
|
+
const f = useNavigate(), { toast: S } = useToast(), [R, V] = useState(1), [I, ot] = useState(null), [lt, at] = useState(0), [ct, ut] = useState(!1), [dt] = usePostV4ResellerByRouteResellerIdProductAndRandmarSkuShopifyMutation(), [pt, ft] = useState(!1), [mt, Ct] = useState(null), [Rt, Mt] = useState("idle"), [It, $t] = useState(null), [yt] = useLazyGetV4PartnerByRouteApplicationIdProductAndRandmarSkuQuery(), Dt = t?.Distribution?.Cost || 0, Ft = t?.Distribution?.RegularPrice || 0, Vt = t?.Distribution?.Price || 0, Wt = !!(e && t?.RandmarSKU);
|
|
60698
60698
|
useEffect(() => {
|
|
60699
60699
|
V(1), ot(null), at(0);
|
|
60700
60700
|
}, [t?.RandmarSKU]), useEffect(() => {
|
|
@@ -60705,22 +60705,22 @@ function ProductCard({
|
|
|
60705
60705
|
}, [t, o]), useEffect(() => {
|
|
60706
60706
|
if (!t) return;
|
|
60707
60707
|
const ur = I?.Price ? I.Price : Vt;
|
|
60708
|
-
at(
|
|
60709
|
-
}, [t, I, Vt,
|
|
60708
|
+
at(Ft > 0 ? Math.round((Ft - ur) / Ft * 100) : 0);
|
|
60709
|
+
}, [t, I, Vt, Ft]), useEffect(() => {
|
|
60710
60710
|
s || V(1);
|
|
60711
60711
|
}, [s]), useEffect(() => {
|
|
60712
60712
|
if (!pt) {
|
|
60713
|
-
Ct(null), Mt("idle"),
|
|
60713
|
+
Ct(null), Mt("idle"), $t(null);
|
|
60714
60714
|
return;
|
|
60715
60715
|
}
|
|
60716
60716
|
if (!e || !t?.RandmarSKU) {
|
|
60717
|
-
Mt("error"),
|
|
60717
|
+
Mt("error"), $t("Missing identifiers to load performance data.");
|
|
60718
60718
|
return;
|
|
60719
60719
|
}
|
|
60720
60720
|
let ur = !1;
|
|
60721
60721
|
const Sr = t.RandmarSKU;
|
|
60722
60722
|
return (async () => {
|
|
60723
|
-
Mt("summary"),
|
|
60723
|
+
Mt("summary"), $t(null);
|
|
60724
60724
|
try {
|
|
60725
60725
|
const Cr = await yt({
|
|
60726
60726
|
routeApplicationId: e,
|
|
@@ -60742,7 +60742,7 @@ function ProductCard({
|
|
|
60742
60742
|
Ct(Pr.data ?? Cr.data ?? null), Mt("complete");
|
|
60743
60743
|
} catch (Cr) {
|
|
60744
60744
|
if (ur) return;
|
|
60745
|
-
console.error("Failed to load performance data for product modal", Cr), Mt("error"),
|
|
60745
|
+
console.error("Failed to load performance data for product modal", Cr), Mt("error"), $t("We couldn't load the performance details. Please try again.");
|
|
60746
60746
|
}
|
|
60747
60747
|
})(), () => {
|
|
60748
60748
|
ur = !0;
|
|
@@ -61169,8 +61169,8 @@ function ProductCard({
|
|
|
61169
61169
|
d ? " USD" : ""
|
|
61170
61170
|
] }) }) : /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
61171
61171
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center flex-wrap", children: [
|
|
61172
|
-
|
|
61173
|
-
lt > 0 && /* @__PURE__ */ jsx("span", { className: "text-muted-foreground line-through ml-2 whitespace-nowrap", children: formatMoney(
|
|
61172
|
+
Ft > 0 && /* @__PURE__ */ jsx(Fragment$1, { children: /* @__PURE__ */ jsx("span", { className: "text-2xl font-bold whitespace-nowrap", children: formatMoney((I ? t.Opportunities?.find((ur) => ur.BidNumber == I.BidNumber)?.Price : Vt) ?? 0) }) }),
|
|
61173
|
+
lt > 0 && /* @__PURE__ */ jsx("span", { className: "text-muted-foreground line-through ml-2 whitespace-nowrap", children: formatMoney(Ft) })
|
|
61174
61174
|
] }),
|
|
61175
61175
|
lt > 0 && /* @__PURE__ */ jsx("div", { className: "flex items-center", children: /* @__PURE__ */ jsxs(Badge, { variant: "info", className: "rounded-full px-3 whitespace-nowrap", children: [
|
|
61176
61176
|
/* @__PURE__ */ jsxs("span", { children: [
|
|
@@ -61383,11 +61383,11 @@ function ProductImage({ randmarSKU: e, sceneName: t, size: n = "md", alt: o, sec
|
|
|
61383
61383
|
}
|
|
61384
61384
|
const Mt = React.useCallback(() => {
|
|
61385
61385
|
if (!at) return;
|
|
61386
|
-
const It = (t ?? "").trim(),
|
|
61386
|
+
const It = (t ?? "").trim(), $t = It ? `Use this concept as a background/stage scene: "${It}".` : "Use a modern and clean office as the background/stage, with no people present.";
|
|
61387
61387
|
f(
|
|
61388
61388
|
`Help me generate product images for (Randmar SKU: ${e}).
|
|
61389
61389
|
|
|
61390
|
-
${
|
|
61390
|
+
${$t}
|
|
61391
61391
|
|
|
61392
61392
|
Repeat and ask me what to change or improve until we are done creating pictures.`
|
|
61393
61393
|
);
|
|
@@ -73271,9 +73271,9 @@ function run2(e) {
|
|
|
73271
73271
|
pasteRuleMatcherHandler(Ct, s.find, l).forEach((Mt) => {
|
|
73272
73272
|
if (Mt.index === void 0)
|
|
73273
73273
|
return;
|
|
73274
|
-
const It = ft + Mt.index + 1,
|
|
73274
|
+
const It = ft + Mt.index + 1, $t = It + Mt[0].length, yt = {
|
|
73275
73275
|
from: n.tr.mapping.map(It),
|
|
73276
|
-
to: n.tr.mapping.map(
|
|
73276
|
+
to: n.tr.mapping.map($t)
|
|
73277
73277
|
}, Dt = s.handler({
|
|
73278
73278
|
state: n,
|
|
73279
73279
|
range: yt,
|
|
@@ -74770,34 +74770,34 @@ function createBlockMarkdownSpec(e) {
|
|
|
74770
74770
|
const Mt = Ct.exec(Rt);
|
|
74771
74771
|
if (Mt === null)
|
|
74772
74772
|
break;
|
|
74773
|
-
const It = Mt.index,
|
|
74773
|
+
const It = Mt.index, $t = Mt[1];
|
|
74774
74774
|
if (!((ot = Mt[2]) != null && ot.endsWith(":::"))) {
|
|
74775
|
-
if (
|
|
74775
|
+
if ($t)
|
|
74776
74776
|
pt += 1;
|
|
74777
74777
|
else if (pt -= 1, pt === 0) {
|
|
74778
74778
|
const yt = Rt.slice(0, It);
|
|
74779
74779
|
mt = yt.trim();
|
|
74780
74780
|
const Dt = R.slice(0, ft + It + Mt[0].length);
|
|
74781
|
-
let
|
|
74781
|
+
let Ft = [];
|
|
74782
74782
|
if (mt)
|
|
74783
74783
|
if (c === "block")
|
|
74784
|
-
for (
|
|
74784
|
+
for (Ft = I.blockTokens(yt), Ft.forEach((Vt) => {
|
|
74785
74785
|
Vt.text && (!Vt.tokens || Vt.tokens.length === 0) && (Vt.tokens = I.inlineTokens(Vt.text));
|
|
74786
|
-
});
|
|
74787
|
-
const Vt =
|
|
74786
|
+
}); Ft.length > 0; ) {
|
|
74787
|
+
const Vt = Ft[Ft.length - 1];
|
|
74788
74788
|
if (Vt.type === "paragraph" && (!Vt.text || Vt.text.trim() === ""))
|
|
74789
|
-
|
|
74789
|
+
Ft.pop();
|
|
74790
74790
|
else
|
|
74791
74791
|
break;
|
|
74792
74792
|
}
|
|
74793
74793
|
else
|
|
74794
|
-
|
|
74794
|
+
Ft = I.inlineTokens(mt);
|
|
74795
74795
|
return {
|
|
74796
74796
|
type: t,
|
|
74797
74797
|
raw: Dt,
|
|
74798
74798
|
attributes: dt,
|
|
74799
74799
|
content: mt,
|
|
74800
|
-
tokens:
|
|
74800
|
+
tokens: Ft
|
|
74801
74801
|
};
|
|
74802
74802
|
}
|
|
74803
74803
|
}
|
|
@@ -76933,7 +76933,7 @@ function init$1({
|
|
|
76933
76933
|
ta(ft, t, ft), ta(ft, n, mt), ta(mt, t, ft), ta(mt, n, mt), tt(ut, SLASH, ft), tt(pt, SLASH, ft);
|
|
76934
76934
|
const Ct = tt(c, COLON), Rt = tt(d, COLON), Mt = tt(Rt, SLASH), It = tt(Mt, SLASH);
|
|
76935
76935
|
ta(c, e.domain, l), tt(c, DOT, ct), tt(c, HYPHEN, at), ta(d, e.domain, l), tt(d, DOT, ct), tt(d, HYPHEN, at), ta(Ct, e.domain, ft), tt(Ct, SLASH, ft), tt(Ct, QUERY, ft), ta(It, e.domain, ft), ta(It, t, ft), tt(It, SLASH, ft);
|
|
76936
|
-
const
|
|
76936
|
+
const $t = [
|
|
76937
76937
|
[OPENBRACE, CLOSEBRACE],
|
|
76938
76938
|
// {}
|
|
76939
76939
|
[OPENBRACKET, CLOSEBRACKET],
|
|
@@ -76951,13 +76951,13 @@ function init$1({
|
|
|
76951
76951
|
[FULLWIDTHLESSTHAN, FULLWIDTHGREATERTHAN]
|
|
76952
76952
|
// <>
|
|
76953
76953
|
];
|
|
76954
|
-
for (let yt = 0; yt <
|
|
76955
|
-
const [Dt,
|
|
76956
|
-
tt(mt, Dt, Vt), tt(Vt,
|
|
76954
|
+
for (let yt = 0; yt < $t.length; yt++) {
|
|
76955
|
+
const [Dt, Ft] = $t[yt], Vt = tt(ft, Dt);
|
|
76956
|
+
tt(mt, Dt, Vt), tt(Vt, Ft, ft);
|
|
76957
76957
|
const Wt = makeState(Url);
|
|
76958
76958
|
ta(Vt, t, Wt);
|
|
76959
76959
|
const qt = makeState();
|
|
76960
|
-
ta(Vt, n), ta(Wt, t, Wt), ta(Wt, n, qt), ta(qt, t, Wt), ta(qt, n, qt), tt(Wt,
|
|
76960
|
+
ta(Vt, n), ta(Wt, t, Wt), ta(Wt, n, qt), ta(qt, t, Wt), ta(qt, n, qt), tt(Wt, Ft, ft), tt(qt, Ft, ft);
|
|
76961
76961
|
}
|
|
76962
76962
|
return tt(a, LOCALHOST, ut), tt(a, NL, Nl), {
|
|
76963
76963
|
start: a,
|
|
@@ -80004,7 +80004,7 @@ function ProductOverviewPage({
|
|
|
80004
80004
|
ut(!1);
|
|
80005
80005
|
return;
|
|
80006
80006
|
}
|
|
80007
|
-
const
|
|
80007
|
+
const Dt = {
|
|
80008
80008
|
"stats-tab": (V?.SalesStatistics?.length ?? 0) <= 0,
|
|
80009
80009
|
"inventory-tab": (V?.Distribution?.Inventory?.length ?? 0) <= 0,
|
|
80010
80010
|
"opportunities-tab": (V?.Opportunities?.length ?? 0) <= 0,
|
|
@@ -80012,47 +80012,48 @@ function ProductOverviewPage({
|
|
|
80012
80012
|
"completed-orders-tab": (V?.CompletedOrderDetails?.length ?? 0) <= 0,
|
|
80013
80013
|
"returns-tab": (V?.Returns?.length ?? 0) <= 0,
|
|
80014
80014
|
"purchase-orders-tab": !I?.IsManufacturer || (V?.PurchaseOrders?.length ?? 0) <= 0 && (V?.Requisitions?.length ?? 0) <= 0,
|
|
80015
|
-
"warehouse-tab":
|
|
80016
|
-
|
|
80017
|
-
|
|
80018
|
-
|
|
80019
|
-
|
|
80015
|
+
"warehouse-tab": (V?.Receipts?.length ?? 0) <= 0,
|
|
80016
|
+
"logs-tab": (V?.Logs?.length ?? 0) <= 0
|
|
80017
|
+
}, Ft = Object.values(Dt).some((Vt) => !Vt);
|
|
80018
|
+
if (ut(Ft), Ft && Dt[lt]) {
|
|
80019
|
+
const Vt = Object.keys(Dt).find(
|
|
80020
|
+
(Wt) => !Dt[Wt]
|
|
80020
80021
|
);
|
|
80021
|
-
|
|
80022
|
+
Vt && at(Vt);
|
|
80022
80023
|
}
|
|
80023
80024
|
}, [R, V, n, lt, I?.IsManufacturer]);
|
|
80024
|
-
const dt =
|
|
80025
|
+
const dt = !n && (f || R), pt = V?.Title || V?.RandmarTitle || V?.RandmarSKU || "Product", ft = V?.VoiceoverCaption || "", mt = typeof V?.MAP == "number" && V.MAP > 0 ? V.MAP : typeof V?.Distribution?.MAP == "number" && V.Distribution.MAP > 0 ? V.Distribution.MAP : null, Ct = typeof V?.MSRP == "number" && V.MSRP > 0 ? V.MSRP : typeof V?.Distribution?.MSRP == "number" && V.Distribution.MSRP > 0 ? V.Distribution.MSRP : null, Rt = o ? V?.Opportunities?.find((Dt) => Dt.BidNumber === o)?.Price : null, Mt = typeof Rt == "number" && Rt > 0 ? Rt : typeof V?.Distribution?.Price == "number" && V.Distribution.Price > 0 ? V.Distribution.Price : null, It = dt || typeof Mt == "number", $t = typeof mt == "number" && typeof Mt == "number" ? mt - Mt : null, yt = typeof $t == "number" && typeof mt == "number" && mt > 0 ? Math.round($t / mt * 100) : null;
|
|
80025
80026
|
return /* @__PURE__ */ jsxs("div", { className: "@container", children: [
|
|
80026
80027
|
/* @__PURE__ */ jsxs("div", { className: "grid gap-4 grid-cols-1 @md:grid-cols-3", children: [
|
|
80027
80028
|
/* @__PURE__ */ jsxs(Card, { className: "@md:col-span-2", children: [
|
|
80028
80029
|
/* @__PURE__ */ jsxs(CardHeader, { className: "space-y-2", children: [
|
|
80029
|
-
/* @__PURE__ */ jsx(CardTitle, { className: "text-2xl font-semibold leading-tight", children:
|
|
80030
|
-
|
|
80030
|
+
/* @__PURE__ */ jsx(CardTitle, { className: "text-2xl font-semibold leading-tight", children: dt && !V ? /* @__PURE__ */ jsx(Skeleton, { className: "h-7 w-2/3" }) : pt }),
|
|
80031
|
+
ft ? /* @__PURE__ */ jsx("div", { className: "text-sm text-muted-foreground", children: ft }) : dt && !V ? /* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-4/5" }) : null
|
|
80031
80032
|
] }),
|
|
80032
80033
|
/* @__PURE__ */ jsxs(CardContent, { className: "space-y-6", children: [
|
|
80033
80034
|
/* @__PURE__ */ jsxs("div", { className: "rounded-lg border bg-card p-4", children: [
|
|
80034
|
-
|
|
80035
|
+
It ? /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-4 @sm:flex-row @sm:items-start @sm:justify-between", children: [
|
|
80035
80036
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
80036
80037
|
/* @__PURE__ */ jsx("div", { className: "text-sm text-muted-foreground", children: "Your Price" }),
|
|
80037
|
-
/* @__PURE__ */ jsx("div", { className: "mt-1 text-3xl font-semibold tracking-tight", children: typeof
|
|
80038
|
+
/* @__PURE__ */ jsx("div", { className: "mt-1 text-3xl font-semibold tracking-tight", children: typeof Mt == "number" ? formatMoney(Mt) : dt ? /* @__PURE__ */ jsx(Skeleton, { className: "h-9 w-40" }) : null })
|
|
80038
80039
|
] }),
|
|
80039
|
-
typeof
|
|
80040
|
+
typeof $t == "number" && typeof yt == "number" ? /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-start @sm:items-end", children: [
|
|
80040
80041
|
/* @__PURE__ */ jsxs(
|
|
80041
80042
|
Badge,
|
|
80042
80043
|
{
|
|
80043
|
-
variant:
|
|
80044
|
+
variant: $t >= 0 ? "success" : "destructive",
|
|
80044
80045
|
className: "rounded-full px-3 py-1.5 text-sm font-semibold",
|
|
80045
80046
|
children: [
|
|
80046
|
-
|
|
80047
|
+
$t >= 0 ? "Potential Profit" : "Below MAP",
|
|
80047
80048
|
": ",
|
|
80048
|
-
formatMoney(Math.abs(
|
|
80049
|
+
formatMoney(Math.abs($t))
|
|
80049
80050
|
]
|
|
80050
80051
|
}
|
|
80051
80052
|
),
|
|
80052
|
-
/* @__PURE__ */ jsx("div", { className: "mt-1 text-xs text-muted-foreground", children:
|
|
80053
|
+
/* @__PURE__ */ jsx("div", { className: "mt-1 text-xs text-muted-foreground", children: $t >= 0 ? `${yt}% margin vs MAP` : `${Math.abs(yt)}% under MAP` })
|
|
80053
80054
|
] }) : null
|
|
80054
80055
|
] }) : null,
|
|
80055
|
-
/* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsxs("div", { className: `${
|
|
80056
|
+
/* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsxs("div", { className: `${It ? "mt-5" : "mt-0"} grid grid-cols-1 gap-4 @sm:grid-cols-2`, children: [
|
|
80056
80057
|
/* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between gap-4 rounded-md border bg-background/50 p-3", children: [
|
|
80057
80058
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
80058
80059
|
/* @__PURE__ */ jsx("div", { className: "text-xs text-muted-foreground", children: /* @__PURE__ */ jsxs(Tooltip$1, { children: [
|
|
@@ -80066,16 +80067,16 @@ function ProductOverviewPage({
|
|
|
80066
80067
|
) }),
|
|
80067
80068
|
/* @__PURE__ */ jsx(TooltipContent, { children: "Minimum Advertised Price — the lowest price you can publicly advertise." })
|
|
80068
80069
|
] }) }),
|
|
80069
|
-
/* @__PURE__ */ jsx("div", { className: "font-medium", children: typeof
|
|
80070
|
+
/* @__PURE__ */ jsx("div", { className: "font-medium", children: typeof mt == "number" ? formatMoney(mt) : "—" })
|
|
80070
80071
|
] }),
|
|
80071
|
-
typeof
|
|
80072
|
+
typeof $t == "number" && typeof Mt == "number" && typeof mt == "number" ? /* @__PURE__ */ jsxs("div", { className: "text-right", children: [
|
|
80072
80073
|
/* @__PURE__ */ jsx("div", { className: "text-[11px] text-muted-foreground", children: "Profit vs MAP" }),
|
|
80073
80074
|
/* @__PURE__ */ jsxs("div", { className: "text-sm font-semibold", children: [
|
|
80074
|
-
formatMoney(
|
|
80075
|
+
formatMoney(mt),
|
|
80075
80076
|
" - ",
|
|
80076
|
-
formatMoney(
|
|
80077
|
+
formatMoney(Mt),
|
|
80077
80078
|
" = ",
|
|
80078
|
-
formatMoney(
|
|
80079
|
+
formatMoney($t)
|
|
80079
80080
|
] })
|
|
80080
80081
|
] }) : null
|
|
80081
80082
|
] }),
|
|
@@ -80091,7 +80092,7 @@ function ProductOverviewPage({
|
|
|
80091
80092
|
) }),
|
|
80092
80093
|
/* @__PURE__ */ jsx(TooltipContent, { children: "Manufacturer's Suggested Retail Price — a reference retail list price." })
|
|
80093
80094
|
] }) }),
|
|
80094
|
-
/* @__PURE__ */ jsx("div", { className: "font-medium", children: typeof
|
|
80095
|
+
/* @__PURE__ */ jsx("div", { className: "font-medium", children: typeof Ct == "number" ? formatMoney(Ct) : "—" })
|
|
80095
80096
|
] }) })
|
|
80096
80097
|
] }) })
|
|
80097
80098
|
] }),
|
|
@@ -80191,9 +80192,18 @@ function ProductOverviewPage({
|
|
|
80191
80192
|
{
|
|
80192
80193
|
value: "warehouse-tab",
|
|
80193
80194
|
className: "relative h-12 rounded-none border-b-2 border-b-transparent bg-transparent px-4 pb-3 pt-2 text-sm font-medium text-muted-foreground shadow-none transition-none hover:text-foreground data-[state=active]:border-b-primary data-[state=active]:text-foreground data-[state=active]:shadow-none cursor-pointer",
|
|
80194
|
-
disabled:
|
|
80195
|
+
disabled: (V?.Receipts?.length ?? 0) <= 0,
|
|
80195
80196
|
children: "Latest Warehouse Receiving"
|
|
80196
80197
|
}
|
|
80198
|
+
),
|
|
80199
|
+
/* @__PURE__ */ jsx(
|
|
80200
|
+
TabsTrigger,
|
|
80201
|
+
{
|
|
80202
|
+
value: "logs-tab",
|
|
80203
|
+
className: "relative h-12 rounded-none border-b-2 border-b-transparent bg-transparent px-4 pb-3 pt-2 text-sm font-medium text-muted-foreground shadow-none transition-none hover:text-foreground data-[state=active]:border-b-primary data-[state=active]:text-foreground data-[state=active]:shadow-none cursor-pointer",
|
|
80204
|
+
disabled: (V?.Logs?.length ?? 0) <= 0,
|
|
80205
|
+
children: "Logs"
|
|
80206
|
+
}
|
|
80197
80207
|
)
|
|
80198
80208
|
] }),
|
|
80199
80209
|
/* @__PURE__ */ jsx(TabsContent, { value: "stats-tab", children: /* @__PURE__ */ jsx("div", { className: "mt-4", children: /* @__PURE__ */ jsx(
|
|
@@ -80268,23 +80278,21 @@ function ProductOverviewPage({
|
|
|
80268
80278
|
) })
|
|
80269
80279
|
] })
|
|
80270
80280
|
] }),
|
|
80271
|
-
/* @__PURE__ */ jsx(TabsContent, { value: "warehouse-tab", children: /* @__PURE__ */
|
|
80272
|
-
|
|
80273
|
-
|
|
80274
|
-
|
|
80275
|
-
|
|
80276
|
-
|
|
80277
|
-
|
|
80278
|
-
|
|
80279
|
-
|
|
80280
|
-
|
|
80281
|
-
|
|
80282
|
-
|
|
80283
|
-
|
|
80284
|
-
|
|
80285
|
-
|
|
80286
|
-
] })
|
|
80287
|
-
] }) })
|
|
80281
|
+
/* @__PURE__ */ jsx(TabsContent, { value: "warehouse-tab", children: (V?.Receipts?.length ?? 0) > 0 && /* @__PURE__ */ jsx("div", { className: "mt-4", children: /* @__PURE__ */ jsxs(Card, { className: "mt-4 w-full", children: [
|
|
80282
|
+
/* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsx(CardTitle, { className: "text-1xl font-bold", children: "Receipts" }) }),
|
|
80283
|
+
/* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsx(
|
|
80284
|
+
ReceiptsTable,
|
|
80285
|
+
{
|
|
80286
|
+
applicationId: e,
|
|
80287
|
+
receipts: V?.Receipts,
|
|
80288
|
+
loading: R
|
|
80289
|
+
}
|
|
80290
|
+
) })
|
|
80291
|
+
] }) }) }),
|
|
80292
|
+
/* @__PURE__ */ jsx(TabsContent, { value: "logs-tab", children: (V?.Logs?.length ?? 0) > 0 && /* @__PURE__ */ jsx("div", { className: "mt-4", children: /* @__PURE__ */ jsxs(Card, { className: "w-full", children: [
|
|
80293
|
+
/* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsx(CardTitle, { className: "text-1xl font-bold", children: "Logs" }) }),
|
|
80294
|
+
/* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsx(LogsTable, { logs: V?.Logs, loading: R }) })
|
|
80295
|
+
] }) }) })
|
|
80288
80296
|
] }) })
|
|
80289
80297
|
] });
|
|
80290
80298
|
}
|
|
@@ -81310,11 +81318,11 @@ function createGetModifiers(e, t, n, o, a) {
|
|
|
81310
81318
|
[DayFlag.today]: []
|
|
81311
81319
|
}, pt = {};
|
|
81312
81320
|
for (const ft of e) {
|
|
81313
|
-
const { date: mt, displayMonth: Ct } = ft, Rt = !!(Ct && !V(mt, Ct)), Mt = !!(ct && ot(mt, ct)), It = !!(ut && at(mt, ut)),
|
|
81321
|
+
const { date: mt, displayMonth: Ct } = ft, Rt = !!(Ct && !V(mt, Ct)), Mt = !!(ct && ot(mt, ct)), It = !!(ut && at(mt, ut)), $t = !!(s && dateMatchModifiers(mt, s, a)), yt = !!(l && dateMatchModifiers(mt, l, a)) || Mt || It || // Broadcast calendar will show outside days as default
|
|
81314
81322
|
!f && !d && Rt || f && d === !1 && Rt, Dt = R(mt, S);
|
|
81315
|
-
Rt && dt.outside.push(ft),
|
|
81316
|
-
const Vt = c?.[
|
|
81317
|
-
Vt && dateMatchModifiers(mt, Vt, a) && (pt[
|
|
81323
|
+
Rt && dt.outside.push(ft), $t && dt.disabled.push(ft), yt && dt.hidden.push(ft), Dt && dt.today.push(ft), c && Object.keys(c).forEach((Ft) => {
|
|
81324
|
+
const Vt = c?.[Ft];
|
|
81325
|
+
Vt && dateMatchModifiers(mt, Vt, a) && (pt[Ft] ? pt[Ft].push(ft) : pt[Ft] = [ft]);
|
|
81318
81326
|
});
|
|
81319
81327
|
}
|
|
81320
81328
|
return (ft) => {
|
|
@@ -81664,8 +81672,8 @@ function useAnimation(e, t, { classNames: n, months: o, focused: a, dateLib: s }
|
|
|
81664
81672
|
Mt && (Mt.style.opacity = "0");
|
|
81665
81673
|
const It = queryCaptionEl(ft);
|
|
81666
81674
|
It && (It.classList.add(R ? n[Animation.caption_before_exit] : n[Animation.caption_after_exit]), It.addEventListener("animationend", Rt));
|
|
81667
|
-
const
|
|
81668
|
-
|
|
81675
|
+
const $t = queryWeeksEl(ft);
|
|
81676
|
+
$t && $t.classList.add(R ? n[Animation.weeks_before_exit] : n[Animation.weeks_after_exit]), dt.insertBefore(ft, dt.firstChild);
|
|
81669
81677
|
});
|
|
81670
81678
|
}
|
|
81671
81679
|
});
|
|
@@ -81673,13 +81681,13 @@ function useAnimation(e, t, { classNames: n, months: o, focused: a, dateLib: s }
|
|
|
81673
81681
|
function getDates(e, t, n, o) {
|
|
81674
81682
|
const a = e[0], s = e[e.length - 1], { ISOWeek: l, fixedWeeks: c, broadcastCalendar: d } = n ?? {}, { addDays: f, differenceInCalendarDays: S, differenceInCalendarMonths: R, endOfBroadcastWeek: V, endOfISOWeek: I, endOfMonth: ot, endOfWeek: lt, isAfter: at, startOfBroadcastWeek: ct, startOfISOWeek: ut, startOfWeek: dt } = o, pt = d ? ct(a, o) : l ? ut(a) : dt(a), ft = d ? V(s) : l ? I(ot(s)) : lt(ot(s)), mt = t && (d ? V(t) : l ? I(t) : lt(t)), Ct = mt && at(ft, mt) ? mt : ft, Rt = S(Ct, pt), Mt = R(s, a) + 1, It = [];
|
|
81675
81683
|
for (let Dt = 0; Dt <= Rt; Dt++) {
|
|
81676
|
-
const
|
|
81677
|
-
It.push(
|
|
81684
|
+
const Ft = f(pt, Dt);
|
|
81685
|
+
It.push(Ft);
|
|
81678
81686
|
}
|
|
81679
81687
|
const yt = (d ? 35 : 42) * Mt;
|
|
81680
81688
|
if (c && It.length < yt) {
|
|
81681
81689
|
const Dt = yt - It.length;
|
|
81682
|
-
for (let
|
|
81690
|
+
for (let Ft = 0; Ft < Dt; Ft++) {
|
|
81683
81691
|
const Vt = f(It[It.length - 1], 1);
|
|
81684
81692
|
It.push(Vt);
|
|
81685
81693
|
}
|
|
@@ -81724,8 +81732,8 @@ function getMonths(e, t, n, o) {
|
|
|
81724
81732
|
dt.push(...Ct);
|
|
81725
81733
|
}
|
|
81726
81734
|
const ft = dt.reduce((Ct, Rt) => {
|
|
81727
|
-
const Mt = n.ISOWeek ? f(Rt) : S(Rt), It = Ct.find((yt) => yt.weekNumber === Mt),
|
|
81728
|
-
return It ? It.days.push(
|
|
81735
|
+
const Mt = n.ISOWeek ? f(Rt) : S(Rt), It = Ct.find((yt) => yt.weekNumber === Mt), $t = new CalendarDay(Rt, at, o);
|
|
81736
|
+
return It ? It.days.push($t) : Ct.push(new CalendarWeek(Mt, [$t])), Ct;
|
|
81729
81737
|
}, []), mt = new CalendarMonth(at, ft);
|
|
81730
81738
|
return lt.push(mt), lt;
|
|
81731
81739
|
}, []);
|
|
@@ -82072,7 +82080,7 @@ function DayPicker(e) {
|
|
|
82072
82080
|
t.classNames
|
|
82073
82081
|
]);
|
|
82074
82082
|
t.today || (t = { ...t, today: l.today() });
|
|
82075
|
-
const { captionLayout: f, mode: S, navLayout: R, numberOfMonths: V = 1, onDayBlur: I, onDayClick: ot, onDayFocus: lt, onDayKeyDown: at, onDayMouseEnter: ct, onDayMouseLeave: ut, onNextClick: dt, onPrevClick: pt, showWeekNumber: ft, styles: mt } = t, { formatCaption: Ct, formatDay: Rt, formatMonthDropdown: Mt, formatWeekNumber: It, formatWeekNumberHeader:
|
|
82083
|
+
const { captionLayout: f, mode: S, navLayout: R, numberOfMonths: V = 1, onDayBlur: I, onDayClick: ot, onDayFocus: lt, onDayKeyDown: at, onDayMouseEnter: ct, onDayMouseLeave: ut, onNextClick: dt, onPrevClick: pt, showWeekNumber: ft, styles: mt } = t, { formatCaption: Ct, formatDay: Rt, formatMonthDropdown: Mt, formatWeekNumber: It, formatWeekNumberHeader: $t, formatWeekdayName: yt, formatYearDropdown: Dt } = a, Ft = useCalendar(t, l), { days: Vt, months: Wt, navStart: qt, navEnd: zt, previousMonth: Ht, nextMonth: Ut, goToMonth: nr } = Ft, Zt = createGetModifiers(Vt, t, qt, zt, l), { isSelected: sr, select: dr, selected: Jt } = useSelection(t, l) ?? {}, { blur: hr, focused: Yt, isFocusTarget: or, moveFocus: Qt, setFocused: er } = useFocus(t, Ft, Zt, sr ?? (() => !1), l), { labelDayButton: yr, labelGridcell: Xt, labelGrid: xr, labelMonthDropdown: lr, labelNav: ur, labelPrevious: Sr, labelNext: Rr, labelWeekday: Cr, labelWeekNumber: Pr, labelWeekNumberHeader: _r, labelYearDropdown: Kt } = s, ar = useMemo(() => getWeekdays(l, t.ISOWeek, t.broadcastCalendar, t.today), [l, t.ISOWeek, t.broadcastCalendar, t.today]), rr = S !== void 0 || ot !== void 0, gr = useCallback(() => {
|
|
82076
82084
|
Ht && (nr(Ht), pt?.(Ht));
|
|
82077
82085
|
}, [Ht, nr, pt]), pr = useCallback(() => {
|
|
82078
82086
|
Ut && (nr(Ut), dt?.(Ut));
|
|
@@ -82199,7 +82207,7 @@ function DayPicker(e) {
|
|
|
82199
82207
|
!t.hideWeekdays && React__default.createElement(
|
|
82200
82208
|
o.Weekdays,
|
|
82201
82209
|
{ "data-animated-weekdays": t.animate ? "true" : void 0, className: d[UI.Weekdays], style: mt?.[UI.Weekdays] },
|
|
82202
|
-
ft && React__default.createElement(o.WeekNumberHeader, { "aria-label": _r(l.options), className: d[UI.WeekNumberHeader], style: mt?.[UI.WeekNumberHeader], scope: "col" },
|
|
82210
|
+
ft && React__default.createElement(o.WeekNumberHeader, { "aria-label": _r(l.options), className: d[UI.WeekNumberHeader], style: mt?.[UI.WeekNumberHeader], scope: "col" }, $t()),
|
|
82203
82211
|
ar.map((kr) => React__default.createElement(o.Weekday, { "aria-label": Cr(kr, l.options, l), className: d[UI.Weekday], key: String(kr), style: mt?.[UI.Weekday], scope: "col" }, yt(kr, l.options, l)))
|
|
82204
82212
|
),
|
|
82205
82213
|
React__default.createElement(o.Weeks, { "data-animated-weeks": t.animate ? "true" : void 0, className: d[UI.Weeks], style: mt?.[UI.Weeks] }, Mr.weeks.map((kr) => React__default.createElement(
|
|
@@ -82714,9 +82722,9 @@ function OpportunitiesTable({
|
|
|
82714
82722
|
id: "statusInfo",
|
|
82715
82723
|
header: "Status",
|
|
82716
82724
|
cell: ({ row: Ct }) => {
|
|
82717
|
-
const Rt = Ct.original, Mt = Rt.Active === !0, It = getEndDateStatus(Rt.EndDate),
|
|
82725
|
+
const Rt = Ct.original, Mt = Rt.Active === !0, It = getEndDateStatus(Rt.EndDate), $t = Mt ? "success" : "secondary", yt = It.variant === "destructive" ? "destructive" : It.variant === "warning" ? "warning" : "secondary";
|
|
82718
82726
|
return /* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2 min-w-[200px]", children: [
|
|
82719
|
-
/* @__PURE__ */ jsx(Badge, { variant:
|
|
82727
|
+
/* @__PURE__ */ jsx(Badge, { variant: $t, className: "font-medium", children: Mt ? "Active" : "Inactive" }),
|
|
82720
82728
|
Rt.EndDate && /* @__PURE__ */ jsx(Badge, { variant: yt, className: "font-medium", children: It.text }),
|
|
82721
82729
|
/* @__PURE__ */ jsx(TooltipProvider, { delayDuration: 100, children: /* @__PURE__ */ jsxs(Tooltip$1, { children: [
|
|
82722
82730
|
/* @__PURE__ */ jsx(TooltipTrigger, { asChild: !0, children: /* @__PURE__ */ jsx(Button$1, { variant: "ghost", size: "icon", className: "h-6 w-6 p-0 data-[state=delayed-open]:bg-accent data-[state=instant-open]:bg-accent", children: /* @__PURE__ */ jsx(Info, { className: "h-4 w-4 text-muted-foreground" }) }) }),
|
|
@@ -82749,9 +82757,9 @@ function OpportunitiesTable({
|
|
|
82749
82757
|
const Rt = Ct.original;
|
|
82750
82758
|
if (!Rt.BidNumber)
|
|
82751
82759
|
return /* @__PURE__ */ jsx("span", { className: "text-xs text-muted-foreground", children: "Actions unavailable" });
|
|
82752
|
-
const Mt = Rt.BidNumber, It = a[Mt]?.isSettingDefault,
|
|
82760
|
+
const Mt = Rt.BidNumber, It = a[Mt]?.isSettingDefault, $t = S?.BidNumber === Mt && a[Mt]?.isSendingReport, yt = It || $t, Dt = Rt.CanBeSetAsDefault === !0, Ft = V?.IsManufacturer ? `/${e}/Opportunity/${Rt.BidNumber}` : `/${e}/Opportunity/${Rt.ManufacturerId}/${Rt.BidNumber}`;
|
|
82753
82761
|
return /* @__PURE__ */ jsxs("div", { className: "flex space-x-2", children: [
|
|
82754
|
-
/* @__PURE__ */ jsx(Link$1, { to:
|
|
82762
|
+
/* @__PURE__ */ jsx(Link$1, { to: Ft, children: /* @__PURE__ */ jsxs(Button$1, { variant: "outline", size: "sm", className: "flex items-center", children: [
|
|
82755
82763
|
/* @__PURE__ */ jsx(Star, { className: "mr-2 h-4 w-4" }),
|
|
82756
82764
|
" View"
|
|
82757
82765
|
] }) }),
|
|
@@ -82761,7 +82769,7 @@ function OpportunitiesTable({
|
|
|
82761
82769
|
" Set Default"
|
|
82762
82770
|
] }),
|
|
82763
82771
|
/* @__PURE__ */ jsxs(Button$1, { variant: "outline", size: "sm", onClick: () => ct(Rt), disabled: yt, title: "Send report by email", className: "flex items-center", children: [
|
|
82764
|
-
|
|
82772
|
+
$t ? /* @__PURE__ */ jsx(LoaderCircle, { className: "mr-2 h-4 w-4 animate-spin" }) : /* @__PURE__ */ jsx(Send, { className: "mr-2 h-4 w-4" }),
|
|
82765
82773
|
" Send Report"
|
|
82766
82774
|
] })
|
|
82767
82775
|
] })
|
|
@@ -83347,7 +83355,7 @@ const useGoogleChartDataTable = (e) => {
|
|
|
83347
83355
|
...pt
|
|
83348
83356
|
}, It = new ut.visualization.ChartWrapper(Mt);
|
|
83349
83357
|
It.setOptions(ct || {}), Ct?.(It, ut);
|
|
83350
|
-
const
|
|
83358
|
+
const $t = new ut.visualization.Dashboard(d.current);
|
|
83351
83359
|
ft && ut.visualization.drawToolbar(f.current, ft);
|
|
83352
83360
|
let yt = null;
|
|
83353
83361
|
mt && (yt = new ut.visualization.ChartEditor(), mt({
|
|
@@ -83356,13 +83364,13 @@ const useGoogleChartDataTable = (e) => {
|
|
|
83356
83364
|
google: ut
|
|
83357
83365
|
})), s({
|
|
83358
83366
|
...e,
|
|
83359
|
-
chartDashboard:
|
|
83367
|
+
chartDashboard: $t,
|
|
83360
83368
|
chartWrapper: It
|
|
83361
|
-
}), n(It), a(
|
|
83369
|
+
}), n(It), a($t), Rt?.(ut, {
|
|
83362
83370
|
google: ut,
|
|
83363
83371
|
chartWrapper: It,
|
|
83364
83372
|
chartEditor: yt,
|
|
83365
|
-
chartDashboard:
|
|
83373
|
+
chartDashboard: $t
|
|
83366
83374
|
});
|
|
83367
83375
|
}, []), useGoogleChartDataTable({
|
|
83368
83376
|
...e,
|