teodor-new-chat-ui 4.3.757 → 4.3.759
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/index.esm.js +153 -159
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +13 -12
- package/dist/index.umd.js.map +1 -1
- package/dist/types/core.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -514,8 +514,8 @@ function zh() {
|
|
|
514
514
|
} else
|
|
515
515
|
ot.setExtraStackFrame(null);
|
|
516
516
|
}
|
|
517
|
-
var
|
|
518
|
-
|
|
517
|
+
var nn;
|
|
518
|
+
nn = !1;
|
|
519
519
|
function Wt(E) {
|
|
520
520
|
return typeof E == "object" && E !== null && E.$$typeof === t;
|
|
521
521
|
}
|
|
@@ -596,8 +596,8 @@ Check the top-level render call using <` + Q + ">.");
|
|
|
596
596
|
if (Q) {
|
|
597
597
|
var L = $(q);
|
|
598
598
|
mt(Q, E.props, "prop", L, E);
|
|
599
|
-
} else if (q.PropTypes !== void 0 && !
|
|
600
|
-
|
|
599
|
+
} else if (q.PropTypes !== void 0 && !nn) {
|
|
600
|
+
nn = !0;
|
|
601
601
|
var X = $(q);
|
|
602
602
|
y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", X || "Unknown");
|
|
603
603
|
}
|
|
@@ -649,13 +649,13 @@ Check the top-level render call using <` + Q + ">.");
|
|
|
649
649
|
return Kn !== "key";
|
|
650
650
|
}), xt = Le.length > 0 ? "{key: someKey, " + Le.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
651
651
|
if (!Tt[Pe + xt]) {
|
|
652
|
-
var
|
|
652
|
+
var rn = Le.length > 0 ? "{" + Le.join(": ..., ") + ": ...}" : "{}";
|
|
653
653
|
y(`A props object containing a "key" prop is being spread into JSX:
|
|
654
654
|
let props = %s;
|
|
655
655
|
<%s {...props} />
|
|
656
656
|
React keys must be passed directly to JSX without using spread:
|
|
657
657
|
let props = %s;
|
|
658
|
-
<%s key={someKey} {...props} />`, xt, Pe,
|
|
658
|
+
<%s key={someKey} {...props} />`, xt, Pe, rn, Pe), Tt[Pe + xt] = !0;
|
|
659
659
|
}
|
|
660
660
|
}
|
|
661
661
|
return E === r ? kn(Ae) : Vn(Ae), Ae;
|
|
@@ -753,25 +753,25 @@ async function Uh(e = []) {
|
|
|
753
753
|
}
|
|
754
754
|
return { contentParts: t, filesInfo: n };
|
|
755
755
|
}
|
|
756
|
-
function
|
|
756
|
+
function an(e) {
|
|
757
757
|
if (e == null) return e;
|
|
758
758
|
if (typeof e == "string") {
|
|
759
759
|
const t = e.trim();
|
|
760
760
|
if (t.startsWith("{") || t.startsWith("[")) {
|
|
761
761
|
const n = hs(t);
|
|
762
762
|
if (n !== null)
|
|
763
|
-
return
|
|
763
|
+
return an(n);
|
|
764
764
|
}
|
|
765
765
|
return e;
|
|
766
766
|
}
|
|
767
767
|
if (typeof e == "object" && !Array.isArray(e)) {
|
|
768
768
|
if (e.content !== void 0)
|
|
769
|
-
return Array.isArray(e.content) ? e.content.map((t) =>
|
|
770
|
-
`) :
|
|
769
|
+
return Array.isArray(e.content) ? e.content.map((t) => an(t)).filter(Boolean).join(`
|
|
770
|
+
`) : an(e.content);
|
|
771
771
|
if (e.value !== void 0)
|
|
772
|
-
return
|
|
772
|
+
return an(e.value);
|
|
773
773
|
}
|
|
774
|
-
return typeof e == "object" && !Array.isArray(e) && (e.type === "text" && typeof e.text == "string" || typeof e.text == "string") ? e.text : Array.isArray(e) && e.length > 0 ?
|
|
774
|
+
return typeof e == "object" && !Array.isArray(e) && (e.type === "text" && typeof e.text == "string" || typeof e.text == "string") ? e.text : Array.isArray(e) && e.length > 0 ? an(e[0]) : e;
|
|
775
775
|
}
|
|
776
776
|
function Wh(e) {
|
|
777
777
|
return e.replace(/[_-](\w)/g, (t, n) => n ? n.toUpperCase() : "").replace(/^\w/, (t) => t.toLowerCase());
|
|
@@ -816,24 +816,17 @@ function Vh(e) {
|
|
|
816
816
|
return t;
|
|
817
817
|
}
|
|
818
818
|
function Hi(e) {
|
|
819
|
-
const t = Rn(e), n = t.content ??
|
|
819
|
+
const t = Rn(e), n = t.content ?? t.output ?? void 0;
|
|
820
820
|
return {
|
|
821
821
|
...t,
|
|
822
822
|
type: "tool_call",
|
|
823
823
|
id: t.id ?? t.callId,
|
|
824
824
|
name: t.name ?? t.tool ?? void 0,
|
|
825
825
|
args: t.args ?? t.arguments ?? void 0,
|
|
826
|
-
content:
|
|
826
|
+
content: typeof n == "string" ? n : n ? JSON.stringify(n) : void 0
|
|
827
827
|
};
|
|
828
828
|
}
|
|
829
829
|
function Kh(e, t) {
|
|
830
|
-
if (typeof e == "string")
|
|
831
|
-
return [{ type: "text", text: e }];
|
|
832
|
-
if (e && typeof e == "object" && !Array.isArray(e)) {
|
|
833
|
-
const n = e.text || e.content;
|
|
834
|
-
if (typeof n == "string")
|
|
835
|
-
return [{ type: "text", text: n }];
|
|
836
|
-
}
|
|
837
830
|
return Array.isArray(e) ? e.map((n) => n.type === "tool_call" || n.type === "tool" ? t ? null : Hi(Rn(n)) : n).filter(
|
|
838
831
|
(n) => !!(n && typeof n == "object" && typeof n.type == "string")
|
|
839
832
|
) : [];
|
|
@@ -852,8 +845,8 @@ function Yh(e) {
|
|
|
852
845
|
return e.type === "file";
|
|
853
846
|
}
|
|
854
847
|
function Xh(e) {
|
|
855
|
-
|
|
856
|
-
|
|
848
|
+
return Array.isArray(e.content) ? e.content.filter((t) => t.type === "text").map((t) => t.text).join(`
|
|
849
|
+
`).trim() : "";
|
|
857
850
|
}
|
|
858
851
|
function Jh(e) {
|
|
859
852
|
return e.content.filter(Gh);
|
|
@@ -1018,7 +1011,7 @@ function rm(e, t = []) {
|
|
|
1018
1011
|
var f, p, h;
|
|
1019
1012
|
const a = Vs(i.id, e) || Vs(i.id, t), c = Array.isArray((f = a == null ? void 0 : a.additionalKwargs) == null ? void 0 : f.toolProgress) ? (p = a == null ? void 0 : a.additionalKwargs) == null ? void 0 : p.toolProgress : void 0, l = (a == null ? void 0 : a.artifact) ?? i.artifact, u = Xa(i.status) ?? ((h = a == null ? void 0 : a.additionalKwargs) != null && h.toolStreaming ? "pending" : null) ?? (a ? "completed" : "pending");
|
|
1020
1013
|
if (a && !i.content && u === "completed") {
|
|
1021
|
-
const m =
|
|
1014
|
+
const m = an(a);
|
|
1022
1015
|
typeof m == "string" && (i.content = m);
|
|
1023
1016
|
}
|
|
1024
1017
|
return {
|
|
@@ -1036,7 +1029,7 @@ function rm(e, t = []) {
|
|
|
1036
1029
|
var c, l, u;
|
|
1037
1030
|
const o = Vs(r.id, t) ?? nm(e, r), s = Array.isArray((c = o == null ? void 0 : o.additionalKwargs) == null ? void 0 : c.toolProgress) ? (l = o == null ? void 0 : o.additionalKwargs) == null ? void 0 : l.toolProgress : void 0, i = (o == null ? void 0 : o.artifact) ?? r.artifact, a = Xa(r.status) ?? ((u = o == null ? void 0 : o.additionalKwargs) != null && u.toolStreaming ? "pending" : null) ?? (o ? "completed" : "pending");
|
|
1038
1031
|
if (o && !r.content && a === "completed") {
|
|
1039
|
-
const f =
|
|
1032
|
+
const f = an(o);
|
|
1040
1033
|
typeof f == "string" && (r.content = f);
|
|
1041
1034
|
}
|
|
1042
1035
|
return {
|
|
@@ -1056,11 +1049,11 @@ function Mc(e, t) {
|
|
|
1056
1049
|
const { toString: om } = Object.prototype, { getPrototypeOf: Ui } = Object, { iterator: ms, toStringTag: Dc } = Symbol, gs = /* @__PURE__ */ ((e) => (t) => {
|
|
1057
1050
|
const n = om.call(t);
|
|
1058
1051
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
1059
|
-
})(/* @__PURE__ */ Object.create(null)),
|
|
1052
|
+
})(/* @__PURE__ */ Object.create(null)), en = (e) => (e = e.toLowerCase(), (t) => gs(t) === e), xs = (e) => (t) => typeof t === e, { isArray: Er } = Array, Sr = xs("undefined");
|
|
1060
1053
|
function ro(e) {
|
|
1061
1054
|
return e !== null && !Sr(e) && e.constructor !== null && !Sr(e.constructor) && At(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
1062
1055
|
}
|
|
1063
|
-
const Lc =
|
|
1056
|
+
const Lc = en("ArrayBuffer");
|
|
1064
1057
|
function sm(e) {
|
|
1065
1058
|
let t;
|
|
1066
1059
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Lc(e.buffer), t;
|
|
@@ -1078,11 +1071,11 @@ const im = xs("string"), At = xs("function"), $c = xs("number"), oo = (e) => e !
|
|
|
1078
1071
|
} catch {
|
|
1079
1072
|
return !1;
|
|
1080
1073
|
}
|
|
1081
|
-
}, cm =
|
|
1074
|
+
}, cm = en("Date"), um = en("File"), dm = en("Blob"), fm = en("FileList"), pm = (e) => oo(e) && At(e.pipe), hm = (e) => {
|
|
1082
1075
|
let t;
|
|
1083
1076
|
return e && (typeof FormData == "function" && e instanceof FormData || At(e.append) && ((t = gs(e)) === "formdata" || // detect form-data instance
|
|
1084
1077
|
t === "object" && At(e.toString) && e.toString() === "[object FormData]"));
|
|
1085
|
-
}, mm =
|
|
1078
|
+
}, mm = en("URLSearchParams"), [gm, xm, vm, wm] = ["ReadableStream", "Request", "Response", "Headers"].map(en), ym = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
1086
1079
|
function so(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
1087
1080
|
if (e === null || typeof e > "u")
|
|
1088
1081
|
return;
|
|
@@ -1162,12 +1155,12 @@ const bm = (e, t, n, { allOwnKeys: r } = {}) => (so(t, (o, s) => {
|
|
|
1162
1155
|
for (; (n = e.exec(t)) !== null; )
|
|
1163
1156
|
r.push(n);
|
|
1164
1157
|
return r;
|
|
1165
|
-
}, Nm =
|
|
1158
|
+
}, Nm = en("HTMLFormElement"), jm = (e) => e.toLowerCase().replace(
|
|
1166
1159
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
1167
1160
|
function(n, r, o) {
|
|
1168
1161
|
return r.toUpperCase() + o;
|
|
1169
1162
|
}
|
|
1170
|
-
), Za = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), _m =
|
|
1163
|
+
), Za = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), _m = en("RegExp"), Bc = (e, t) => {
|
|
1171
1164
|
const n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
1172
1165
|
so(n, (o, s) => {
|
|
1173
1166
|
let i;
|
|
@@ -1219,7 +1212,7 @@ const $m = (e) => {
|
|
|
1219
1212
|
return r;
|
|
1220
1213
|
};
|
|
1221
1214
|
return n(e, 0);
|
|
1222
|
-
}, Fm =
|
|
1215
|
+
}, Fm = en("AsyncFunction"), zm = (e) => e && (oo(e) || At(e)) && At(e.then) && At(e.catch), Hc = ((e, t) => e ? setImmediate : t ? ((n, r) => (qn.addEventListener("message", ({ source: o, data: s }) => {
|
|
1223
1216
|
o === qn && s === n && r.length && r.shift()();
|
|
1224
1217
|
}, !1), (o) => {
|
|
1225
1218
|
r.push(o), qn.postMessage(n, "*");
|
|
@@ -1260,7 +1253,7 @@ const $m = (e) => {
|
|
|
1260
1253
|
inherits: Cm,
|
|
1261
1254
|
toFlatObject: Tm,
|
|
1262
1255
|
kindOf: gs,
|
|
1263
|
-
kindOfTest:
|
|
1256
|
+
kindOfTest: en,
|
|
1264
1257
|
endsWith: km,
|
|
1265
1258
|
toArray: Em,
|
|
1266
1259
|
forEachEntry: Rm,
|
|
@@ -2481,7 +2474,7 @@ function Rg(e, t, n) {
|
|
|
2481
2474
|
const Po = {
|
|
2482
2475
|
assertOptions: Rg,
|
|
2483
2476
|
validators: ws
|
|
2484
|
-
},
|
|
2477
|
+
}, on = Po.validators;
|
|
2485
2478
|
let Xn = class {
|
|
2486
2479
|
constructor(t) {
|
|
2487
2480
|
this.defaults = t || {}, this.interceptors = {
|
|
@@ -2518,17 +2511,17 @@ let Xn = class {
|
|
|
2518
2511
|
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = er(this.defaults, n);
|
|
2519
2512
|
const { transitional: r, paramsSerializer: o, headers: s } = n;
|
|
2520
2513
|
r !== void 0 && Po.assertOptions(r, {
|
|
2521
|
-
silentJSONParsing:
|
|
2522
|
-
forcedJSONParsing:
|
|
2523
|
-
clarifyTimeoutError:
|
|
2514
|
+
silentJSONParsing: on.transitional(on.boolean),
|
|
2515
|
+
forcedJSONParsing: on.transitional(on.boolean),
|
|
2516
|
+
clarifyTimeoutError: on.transitional(on.boolean)
|
|
2524
2517
|
}, !1), o != null && (F.isFunction(o) ? n.paramsSerializer = {
|
|
2525
2518
|
serialize: o
|
|
2526
2519
|
} : Po.assertOptions(o, {
|
|
2527
|
-
encode:
|
|
2528
|
-
serialize:
|
|
2520
|
+
encode: on.function,
|
|
2521
|
+
serialize: on.function
|
|
2529
2522
|
}, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), Po.assertOptions(n, {
|
|
2530
|
-
baseUrl:
|
|
2531
|
-
withXsrfToken:
|
|
2523
|
+
baseUrl: on.spelling("baseURL"),
|
|
2524
|
+
withXsrfToken: on.spelling("withXSRFToken")
|
|
2532
2525
|
}, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
2533
2526
|
let i = s && F.merge(
|
|
2534
2527
|
s.common,
|
|
@@ -3658,7 +3651,7 @@ function rx(e, t) {
|
|
|
3658
3651
|
let o = e.messages;
|
|
3659
3652
|
const s = bs(o, n);
|
|
3660
3653
|
if (s !== -1) {
|
|
3661
|
-
const i = o[s], a = r ?? null, c = typeof a == "string" ? a : JSON.stringify(a), l =
|
|
3654
|
+
const i = o[s], a = r ?? null, c = typeof a == "string" ? a : JSON.stringify(a), l = an(a), u = typeof l == "string" ? l : c, f = (i.toolCalls ?? []).map(
|
|
3662
3655
|
(p) => p.id === n ? { ...p, content: u } : p
|
|
3663
3656
|
);
|
|
3664
3657
|
o = lo(o, s, { ...i, toolCalls: f });
|
|
@@ -3668,7 +3661,7 @@ function rx(e, t) {
|
|
|
3668
3661
|
function ox(e, t) {
|
|
3669
3662
|
const n = uu(t);
|
|
3670
3663
|
let r = e.messages;
|
|
3671
|
-
const o = t.content ?? t.error ?? null, s = typeof o == "string" ? o : JSON.stringify(o), i =
|
|
3664
|
+
const o = t.content ?? t.error ?? null, s = typeof o == "string" ? o : JSON.stringify(o), i = an(o), a = typeof i == "string" ? i : s;
|
|
3672
3665
|
n && bs(r, n) !== -1 && (r = tx(r, n, {
|
|
3673
3666
|
status: "completed",
|
|
3674
3667
|
content: a,
|
|
@@ -4414,7 +4407,8 @@ function gu(e = {}) {
|
|
|
4414
4407
|
config: P.options,
|
|
4415
4408
|
checkpointId: (W = P.payload) == null ? void 0 : W.checkpointId,
|
|
4416
4409
|
checkpointNs: ((re = P.payload) == null ? void 0 : re.checkpointNs) || void 0,
|
|
4417
|
-
edit: A == null ? void 0 : A.edit
|
|
4410
|
+
edit: A == null ? void 0 : A.edit,
|
|
4411
|
+
command: P.command
|
|
4418
4412
|
};
|
|
4419
4413
|
u(!0), p(null), m(""), g(null), G.current = null, Y.current = null, te.current = null, b({}), I(null), j({}), z.current = {
|
|
4420
4414
|
messageId: null,
|
|
@@ -4436,14 +4430,14 @@ function gu(e = {}) {
|
|
|
4436
4430
|
if (r)
|
|
4437
4431
|
Ze = { Authorization: `Bearer ${r}` };
|
|
4438
4432
|
else if (typeof window < "u") {
|
|
4439
|
-
const Xe = window.__AUTH_TOKEN__,
|
|
4433
|
+
const Xe = window.__AUTH_TOKEN__, nn = ((ue = window.localStorage) == null ? void 0 : ue.getItem(vr.authToken)) || null;
|
|
4440
4434
|
let Wt = null;
|
|
4441
4435
|
try {
|
|
4442
4436
|
const Sn = (de = window.localStorage) == null ? void 0 : de.getItem(vr.chatSettings);
|
|
4443
4437
|
Sn && (Wt = ((xe = JSON.parse(Sn)) == null ? void 0 : xe.apiKey) || null);
|
|
4444
4438
|
} catch {
|
|
4445
4439
|
}
|
|
4446
|
-
const Vt = Xe ||
|
|
4440
|
+
const Vt = Xe || nn || Wt || null;
|
|
4447
4441
|
Vt && (Ze = { Authorization: `Bearer ${Vt}` });
|
|
4448
4442
|
}
|
|
4449
4443
|
} catch {
|
|
@@ -4500,10 +4494,10 @@ function gu(e = {}) {
|
|
|
4500
4494
|
Date.now() - Bn > 18e5 && (p("Stream idle timeout"), K = "error", U.abort());
|
|
4501
4495
|
}, 5e3), Un = 1024 * 1024;
|
|
4502
4496
|
try {
|
|
4503
|
-
const ot = Ye.headers.get("X-Thread-Id") || Ye.headers.get("x-thread-id"), Xe = Ye.headers.get("X-Thread-Created") || Ye.headers.get("x-thread-created"),
|
|
4497
|
+
const ot = Ye.headers.get("X-Thread-Id") || Ye.headers.get("x-thread-id"), Xe = Ye.headers.get("X-Thread-Created") || Ye.headers.get("x-thread-created"), nn = ot ?? null, Wt = String(Xe ?? "").toLowerCase() === "true";
|
|
4504
4498
|
for (N.current && !N.current.threadId && (N.current = {
|
|
4505
4499
|
...N.current,
|
|
4506
|
-
threadId:
|
|
4500
|
+
threadId: nn
|
|
4507
4501
|
}); ; ) {
|
|
4508
4502
|
const { value: Vt, done: Sn } = await He.read();
|
|
4509
4503
|
if (Sn) break;
|
|
@@ -5078,7 +5072,7 @@ function lt(e) {
|
|
|
5078
5072
|
function fe(e, t) {
|
|
5079
5073
|
return $e(e, Ax(t, Ss));
|
|
5080
5074
|
}
|
|
5081
|
-
function
|
|
5075
|
+
function Xt(e, t) {
|
|
5082
5076
|
const n = e(Dn, (r) => {
|
|
5083
5077
|
n(), t(r);
|
|
5084
5078
|
});
|
|
@@ -5109,7 +5103,7 @@ function ye(e) {
|
|
|
5109
5103
|
function ae(e) {
|
|
5110
5104
|
return (t) => yu(t, e);
|
|
5111
5105
|
}
|
|
5112
|
-
function
|
|
5106
|
+
function sn(e) {
|
|
5113
5107
|
return (t) => () => {
|
|
5114
5108
|
t(e);
|
|
5115
5109
|
};
|
|
@@ -5465,16 +5459,16 @@ function qr(e, t) {
|
|
|
5465
5459
|
if (!Ke(e))
|
|
5466
5460
|
return t === e.k ? e.v : t < e.k ? qr(e.l, t) : qr(e.r, t);
|
|
5467
5461
|
}
|
|
5468
|
-
function
|
|
5462
|
+
function Jt(e, t, n = "k") {
|
|
5469
5463
|
if (Ke(e))
|
|
5470
5464
|
return [-1 / 0, void 0];
|
|
5471
5465
|
if (Number(e[n]) === t)
|
|
5472
5466
|
return [e.k, e.v];
|
|
5473
5467
|
if (Number(e[n]) < t) {
|
|
5474
|
-
const r =
|
|
5468
|
+
const r = Jt(e.r, t, n);
|
|
5475
5469
|
return r[0] === -1 / 0 ? [e.k, e.v] : r;
|
|
5476
5470
|
}
|
|
5477
|
-
return
|
|
5471
|
+
return Jt(e.l, t, n);
|
|
5478
5472
|
}
|
|
5479
5473
|
function Ft(e, t, n) {
|
|
5480
5474
|
return Ke(e) ? Eu(t, n, 1) : t === e.k ? pt(e, { k: t, v: n }) : t < e.k ? El(pt(e, { l: Ft(e.l, t, n) })) : El(pt(e, { r: Ft(e.r, t, n) }));
|
|
@@ -5485,7 +5479,7 @@ function wr() {
|
|
|
5485
5479
|
function Ts(e, t, n) {
|
|
5486
5480
|
if (Ke(e))
|
|
5487
5481
|
return [];
|
|
5488
|
-
const r =
|
|
5482
|
+
const r = Jt(e, t)[0];
|
|
5489
5483
|
return zx(Ei(e, r, n));
|
|
5490
5484
|
}
|
|
5491
5485
|
function ki(e, t) {
|
|
@@ -5725,8 +5719,8 @@ function Ri(e, t, n, r) {
|
|
|
5725
5719
|
let o = e, s = 0, i = 0, a = 0, c = 0;
|
|
5726
5720
|
if (t !== 0) {
|
|
5727
5721
|
c = Qo(o, t - 1, Ji), a = o[c].offset;
|
|
5728
|
-
const l =
|
|
5729
|
-
s = l[0], i = l[1], o.length && o[c].size ===
|
|
5722
|
+
const l = Jt(n, t - 1);
|
|
5723
|
+
s = l[0], i = l[1], o.length && o[c].size === Jt(n, t)[1] && (c -= 1), o = o.slice(0, c + 1);
|
|
5730
5724
|
} else
|
|
5731
5725
|
o = [];
|
|
5732
5726
|
for (const { start: l, value: u } of Ts(n, t, 1 / 0)) {
|
|
@@ -5946,7 +5940,7 @@ const Jx = {
|
|
|
5946
5940
|
if (I = Gn(b.sizeTree).reduce(($, { k: N, v: G }) => Ft($, Math.max(0, N + S), G), I), j !== -S) {
|
|
5947
5941
|
const $ = qr(b.sizeTree, B);
|
|
5948
5942
|
I = Ft(I, 0, $);
|
|
5949
|
-
const N =
|
|
5943
|
+
const N = Jt(b.sizeTree, -S + 1)[1];
|
|
5950
5944
|
I = Ft(I, 1, N);
|
|
5951
5945
|
}
|
|
5952
5946
|
return {
|
|
@@ -6018,7 +6012,7 @@ const _u = Oe(
|
|
|
6018
6012
|
J(
|
|
6019
6013
|
dt(o, t, r),
|
|
6020
6014
|
ye(([c, l]) => ks(l)),
|
|
6021
|
-
ae(([c, l, u]) =>
|
|
6015
|
+
ae(([c, l, u]) => Jt(l.groupOffsetTree, Math.max(c - u, 0), "v")[0]),
|
|
6022
6016
|
tt(),
|
|
6023
6017
|
ae((c) => [c])
|
|
6024
6018
|
),
|
|
@@ -6080,7 +6074,7 @@ const fo = Oe(
|
|
|
6080
6074
|
]) => {
|
|
6081
6075
|
const G = Pu(k), { align: Y, behavior: te, offset: z } = G, H = T - 1, ne = ju(G, S, H);
|
|
6082
6076
|
let V = Yr(ne, S.offsetTree, B) + _;
|
|
6083
|
-
Y === "end" ? (V += $ +
|
|
6077
|
+
Y === "end" ? (V += $ + Jt(S.sizeTree, ne)[1] - b + N, ne === H && (V += j)) : Y === "center" ? V += ($ + Jt(S.sizeTree, ne)[1] - b + N) / 2 : V -= I, z && (V += z);
|
|
6084
6078
|
const R = (P) => {
|
|
6085
6079
|
C(), P ? (D("retrying to scroll to", { location: k }, jt.DEBUG), Ie(h, k)) : (Ie(m, !0), D("list did not change, scroll successful", {}, jt.DEBUG));
|
|
6086
6080
|
};
|
|
@@ -6088,11 +6082,11 @@ const fo = Oe(
|
|
|
6088
6082
|
let P = !1;
|
|
6089
6083
|
y = $e(t, (A) => {
|
|
6090
6084
|
P = P || A;
|
|
6091
|
-
}), g =
|
|
6085
|
+
}), g = Xt(u, () => {
|
|
6092
6086
|
R(P);
|
|
6093
6087
|
});
|
|
6094
6088
|
} else
|
|
6095
|
-
g =
|
|
6089
|
+
g = Xt(J(t, ev(150)), R);
|
|
6096
6090
|
return w = setTimeout(() => {
|
|
6097
6091
|
C();
|
|
6098
6092
|
}, 1200), Ie(c, !0), D("scrolling from index to", { behavior: te, index: ne, top: V }, jt.DEBUG), { behavior: te, top: V };
|
|
@@ -6136,7 +6130,7 @@ const po = Oe(
|
|
|
6136
6130
|
i,
|
|
6137
6131
|
Re(c),
|
|
6138
6132
|
ye(([u, f]) => !!f),
|
|
6139
|
-
|
|
6133
|
+
sn(!1)
|
|
6140
6134
|
),
|
|
6141
6135
|
a
|
|
6142
6136
|
), fe(
|
|
@@ -6144,7 +6138,7 @@ const po = Oe(
|
|
|
6144
6138
|
i,
|
|
6145
6139
|
Re(c),
|
|
6146
6140
|
ye(([u, f]) => !!f),
|
|
6147
|
-
|
|
6141
|
+
sn(!1)
|
|
6148
6142
|
),
|
|
6149
6143
|
l
|
|
6150
6144
|
), $e(
|
|
@@ -6155,10 +6149,10 @@ const po = Oe(
|
|
|
6155
6149
|
Re(c)
|
|
6156
6150
|
),
|
|
6157
6151
|
([, u]) => {
|
|
6158
|
-
|
|
6152
|
+
Xt(o, () => {
|
|
6159
6153
|
Ie(l, !0);
|
|
6160
6154
|
}), Zi(4, () => {
|
|
6161
|
-
|
|
6155
|
+
Xt(r, () => {
|
|
6162
6156
|
Ie(a, !0);
|
|
6163
6157
|
}), Ie(s, u);
|
|
6164
6158
|
});
|
|
@@ -6187,12 +6181,12 @@ const Xr = "up", zr = "down", tv = "none", nv = {
|
|
|
6187
6181
|
}, rv = 0, ho = Oe(([{ footerHeight: e, headerHeight: t, scrollBy: n, scrollContainerState: r, scrollTop: o, viewportHeight: s }]) => {
|
|
6188
6182
|
const i = ee(!1), a = ee(!0), c = _e(), l = _e(), u = ee(4), f = ee(rv), p = St(
|
|
6189
6183
|
J(
|
|
6190
|
-
Ti(J(ve(o), tr(1),
|
|
6184
|
+
Ti(J(ve(o), tr(1), sn(!0)), J(ve(o), tr(1), sn(!1), Tl(100))),
|
|
6191
6185
|
tt()
|
|
6192
6186
|
),
|
|
6193
6187
|
!1
|
|
6194
6188
|
), h = St(
|
|
6195
|
-
J(Ti(J(n,
|
|
6189
|
+
J(Ti(J(n, sn(!0)), J(n, sn(!1), Tl(200))), tt()),
|
|
6196
6190
|
!1
|
|
6197
6191
|
);
|
|
6198
6192
|
fe(
|
|
@@ -6284,13 +6278,13 @@ const Xr = "up", zr = "down", tv = "none", nv = {
|
|
|
6284
6278
|
ae((y) => y.direction)
|
|
6285
6279
|
),
|
|
6286
6280
|
g
|
|
6287
|
-
), fe(J(r, wn(50),
|
|
6281
|
+
), fe(J(r, wn(50), sn(tv)), g);
|
|
6288
6282
|
const w = ee(0);
|
|
6289
6283
|
return fe(
|
|
6290
6284
|
J(
|
|
6291
6285
|
p,
|
|
6292
6286
|
ye((y) => !y),
|
|
6293
|
-
|
|
6287
|
+
sn(0)
|
|
6294
6288
|
),
|
|
6295
6289
|
w
|
|
6296
6290
|
), fe(
|
|
@@ -6382,7 +6376,7 @@ function ov(e, t, n) {
|
|
|
6382
6376
|
if (ks(t)) {
|
|
6383
6377
|
const r = Nu(e, t);
|
|
6384
6378
|
return [
|
|
6385
|
-
{ index:
|
|
6379
|
+
{ index: Jt(t.groupOffsetTree, r)[0], offset: 0, size: 0 },
|
|
6386
6380
|
{ data: n == null ? void 0 : n[0], index: r, offset: 0, size: 0 }
|
|
6387
6381
|
];
|
|
6388
6382
|
}
|
|
@@ -6687,14 +6681,14 @@ const ar = Oe(
|
|
|
6687
6681
|
Re(t, c, n, s, o, r, a),
|
|
6688
6682
|
Re(e),
|
|
6689
6683
|
ae(([[f, p, h, m, v, g, w, y], C]) => {
|
|
6690
|
-
const { align: k, behavior: S, calculateViewLocation: b = iv, done: T, ...I } = f, _ = ju(f, p, m - 1), j = Yr(_, p.offsetTree, C) + v + g, D = j +
|
|
6684
|
+
const { align: k, behavior: S, calculateViewLocation: b = iv, done: T, ...I } = f, _ = ju(f, p, m - 1), j = Yr(_, p.offsetTree, C) + v + g, D = j + Jt(p.sizeTree, _)[1], B = y + g, $ = y + h - w, N = b({
|
|
6691
6685
|
itemBottom: D,
|
|
6692
6686
|
itemTop: j,
|
|
6693
6687
|
locationParams: { align: k, behavior: S, ...I },
|
|
6694
6688
|
viewportBottom: $,
|
|
6695
6689
|
viewportTop: B
|
|
6696
6690
|
});
|
|
6697
|
-
return N ? T &&
|
|
6691
|
+
return N ? T && Xt(
|
|
6698
6692
|
J(
|
|
6699
6693
|
i,
|
|
6700
6694
|
ye((G) => !G),
|
|
@@ -6752,13 +6746,13 @@ const av = (e, t) => typeof e == "function" ? _l(e(t)) : t && _l(e), lv = Oe(
|
|
|
6752
6746
|
({ followOutputBehavior: S, totalCount: b }) => {
|
|
6753
6747
|
g && (g(), g = null), lt(n) ? requestAnimationFrame(() => {
|
|
6754
6748
|
lt(u)("following output to ", { totalCount: b }, jt.DEBUG), w(S);
|
|
6755
|
-
}) : g =
|
|
6749
|
+
}) : g = Xt(e, () => {
|
|
6756
6750
|
lt(u)("following output to ", { totalCount: b }, jt.DEBUG), w(S), g = null;
|
|
6757
6751
|
});
|
|
6758
6752
|
}
|
|
6759
6753
|
);
|
|
6760
6754
|
function y(S) {
|
|
6761
|
-
const b =
|
|
6755
|
+
const b = Xt(o, (T) => {
|
|
6762
6756
|
S && !T.atBottom && T.notAtBottomBecause === "SIZE_INCREASED" && !g && (lt(u)("scrolling to bottom due to increased size", {}, jt.DEBUG), w("auto"));
|
|
6763
6757
|
});
|
|
6764
6758
|
setTimeout(b, 100);
|
|
@@ -6806,7 +6800,7 @@ const av = (e, t) => typeof e == "function" ? _l(e(t)) : t && _l(e), lv = Oe(
|
|
|
6806
6800
|
(S) => {
|
|
6807
6801
|
g && (g(), g = null), lt(n) ? requestAnimationFrame(() => {
|
|
6808
6802
|
lt(u)("scrolling into view", {}), Ie(h, S);
|
|
6809
|
-
}) : g =
|
|
6803
|
+
}) : g = Xt(e, () => {
|
|
6810
6804
|
lt(u)("scrolling into view", {}), Ie(h, S), g = null;
|
|
6811
6805
|
});
|
|
6812
6806
|
}
|
|
@@ -6847,7 +6841,7 @@ const av = (e, t) => typeof e == "function" ? _l(e(t)) : t && _l(e), lv = Oe(
|
|
|
6847
6841
|
ae(([, o]) => ({ top: o }))
|
|
6848
6842
|
),
|
|
6849
6843
|
(o) => {
|
|
6850
|
-
|
|
6844
|
+
Xt(
|
|
6851
6845
|
J(
|
|
6852
6846
|
n,
|
|
6853
6847
|
tr(1),
|
|
@@ -7358,7 +7352,7 @@ const wv = /* @__PURE__ */ Oe(() => {
|
|
|
7358
7352
|
([e, t]) => ({ ...e, ...t }),
|
|
7359
7353
|
nt(Bu, wv)
|
|
7360
7354
|
), bv = ({ height: e }) => /* @__PURE__ */ d.jsx("div", { style: { height: e } }), Sv = { overflowAnchor: "none", position: na(), zIndex: 1 }, qu = { overflowAnchor: "none" }, Cv = { ...qu, display: "inline-block", height: "100%" }, Ol = /* @__PURE__ */ Z.memo(function({ showTopList: e = !1 }) {
|
|
7361
|
-
const t = Te("listState"), n =
|
|
7355
|
+
const t = Te("listState"), n = Kt("sizeRanges"), r = Te("useWindowScroll"), o = Te("customScrollParent"), s = Kt("windowScrollContainerState"), i = Kt("scrollContainerState"), a = o || r ? s : i, c = Te("itemContent"), l = Te("context"), u = Te("groupContent"), f = Te("trackItemSizes"), p = Te("itemSize"), h = Te("log"), m = Kt("gap"), v = Te("horizontalDirection"), { callbackRef: g } = $x(
|
|
7362
7356
|
n,
|
|
7363
7357
|
p,
|
|
7364
7358
|
f,
|
|
@@ -7465,7 +7459,7 @@ function Iv(e, t) {
|
|
|
7465
7459
|
return { item: typeof e == "string" ? void 0 : t };
|
|
7466
7460
|
}
|
|
7467
7461
|
const Rv = /* @__PURE__ */ Z.memo(function() {
|
|
7468
|
-
const e = Te("HeaderComponent"), t =
|
|
7462
|
+
const e = Te("HeaderComponent"), t = Kt("headerHeight"), n = Te("HeaderFooterTag"), r = ir(
|
|
7469
7463
|
Z.useMemo(
|
|
7470
7464
|
() => (s) => {
|
|
7471
7465
|
t(An(s, "height"));
|
|
@@ -7477,7 +7471,7 @@ const Rv = /* @__PURE__ */ Z.memo(function() {
|
|
|
7477
7471
|
), o = Te("context");
|
|
7478
7472
|
return e ? /* @__PURE__ */ d.jsx(n, { ref: r, children: /* @__PURE__ */ d.jsx(e, { ...yt(e, o) }) }) : null;
|
|
7479
7473
|
}), Av = /* @__PURE__ */ Z.memo(function() {
|
|
7480
|
-
const e = Te("FooterComponent"), t =
|
|
7474
|
+
const e = Te("FooterComponent"), t = Kt("footerHeight"), n = Te("HeaderFooterTag"), r = ir(
|
|
7481
7475
|
Z.useMemo(
|
|
7482
7476
|
() => (s) => {
|
|
7483
7477
|
t(An(s, "height"));
|
|
@@ -7542,7 +7536,7 @@ function Yu({ useEmitter: e, useEmitterValue: t, usePublisher: n }) {
|
|
|
7542
7536
|
});
|
|
7543
7537
|
}
|
|
7544
7538
|
const Nv = ({ children: e }) => {
|
|
7545
|
-
const t = Z.useContext(Uu), n =
|
|
7539
|
+
const t = Z.useContext(Uu), n = Kt("viewportHeight"), r = Kt("fixedItemHeight"), o = Te("alignToBottom"), s = Te("horizontalDirection"), i = Z.useMemo(
|
|
7546
7540
|
() => yu(n, (c) => An(c, s ? "width" : "height")),
|
|
7547
7541
|
[n, s]
|
|
7548
7542
|
), a = ir(i, !0, Te("skipAnimationFrameInResizeObserver"));
|
|
@@ -7550,7 +7544,7 @@ const Nv = ({ children: e }) => {
|
|
|
7550
7544
|
t && (n(t.viewportHeight), r(t.itemHeight));
|
|
7551
7545
|
}, [t, n, r]), /* @__PURE__ */ d.jsx("div", { "data-viewport-type": "element", ref: a, style: Es(o), children: e });
|
|
7552
7546
|
}, jv = ({ children: e }) => {
|
|
7553
|
-
const t = Z.useContext(Uu), n =
|
|
7547
|
+
const t = Z.useContext(Uu), n = Kt("windowViewportRect"), r = Kt("fixedItemHeight"), o = Te("customScrollParent"), s = Su(
|
|
7554
7548
|
n,
|
|
7555
7549
|
o,
|
|
7556
7550
|
Te("skipAnimationFrameInResizeObserver")
|
|
@@ -7575,7 +7569,7 @@ const Nv = ({ children: e }) => {
|
|
|
7575
7569
|
Component: Ov,
|
|
7576
7570
|
useEmitter: oa,
|
|
7577
7571
|
useEmitterValue: Te,
|
|
7578
|
-
usePublisher:
|
|
7572
|
+
usePublisher: Kt
|
|
7579
7573
|
} = /* @__PURE__ */ Hu(
|
|
7580
7574
|
yv,
|
|
7581
7575
|
{
|
|
@@ -7635,7 +7629,7 @@ const Nv = ({ children: e }) => {
|
|
|
7635
7629
|
}
|
|
7636
7630
|
},
|
|
7637
7631
|
Pv
|
|
7638
|
-
), Mv = /* @__PURE__ */ Gu({ useEmitter: oa, useEmitterValue: Te, usePublisher:
|
|
7632
|
+
), Mv = /* @__PURE__ */ Gu({ useEmitter: oa, useEmitterValue: Te, usePublisher: Kt }), Dv = /* @__PURE__ */ Yu({ useEmitter: oa, useEmitterValue: Te, usePublisher: Kt }), Lv = Ov, $v = /* @__PURE__ */ Oe(() => {
|
|
7639
7633
|
const e = ee((l) => /* @__PURE__ */ d.jsxs("td", { children: [
|
|
7640
7634
|
"Item $",
|
|
7641
7635
|
l
|
|
@@ -7733,7 +7727,7 @@ const Hv = /* @__PURE__ */ Oe(
|
|
|
7733
7727
|
([, , , , O]) => {
|
|
7734
7728
|
Ie(V, !0), Zi(1, () => {
|
|
7735
7729
|
Ie(D, O);
|
|
7736
|
-
}),
|
|
7730
|
+
}), Xt(J(l), () => {
|
|
7737
7731
|
Ie(t, [0, 0]), Ie(ne, !0);
|
|
7738
7732
|
});
|
|
7739
7733
|
}
|
|
@@ -7741,7 +7735,7 @@ const Hv = /* @__PURE__ */ Oe(
|
|
|
7741
7735
|
J(
|
|
7742
7736
|
te,
|
|
7743
7737
|
ye((O) => O != null && O.scrollTop > 0),
|
|
7744
|
-
|
|
7738
|
+
sn(0)
|
|
7745
7739
|
),
|
|
7746
7740
|
T
|
|
7747
7741
|
), $e(
|
|
@@ -7751,7 +7745,7 @@ const Hv = /* @__PURE__ */ Oe(
|
|
|
7751
7745
|
ye(([, O]) => O != null)
|
|
7752
7746
|
),
|
|
7753
7747
|
([, O]) => {
|
|
7754
|
-
O && (Ie(_, O.viewport), Ie(j, O.item), Ie(G, O.gap), O.scrollTop > 0 && (Ie(z, !0),
|
|
7748
|
+
O && (Ie(_, O.viewport), Ie(j, O.item), Ie(G, O.gap), O.scrollTop > 0 && (Ie(z, !0), Xt(J(l, tr(1)), (W) => {
|
|
7755
7749
|
Ie(z, !1);
|
|
7756
7750
|
}), Ie(c, { top: O.scrollTop })));
|
|
7757
7751
|
}
|
|
@@ -7865,7 +7859,7 @@ const Hv = /* @__PURE__ */ Oe(
|
|
|
7865
7859
|
J(
|
|
7866
7860
|
ve(I),
|
|
7867
7861
|
ye(({ items: O }) => O.length > 0 && O[0].index === 0),
|
|
7868
|
-
|
|
7862
|
+
sn(0),
|
|
7869
7863
|
tt()
|
|
7870
7864
|
)
|
|
7871
7865
|
), U = zt(
|
|
@@ -7997,7 +7991,7 @@ const Uv = /* @__PURE__ */ Oe(() => {
|
|
|
7997
7991
|
([e, t]) => ({ ...e, ...t }),
|
|
7998
7992
|
nt(Hv, Uv)
|
|
7999
7993
|
), Vv = /* @__PURE__ */ Z.memo(function() {
|
|
8000
|
-
const e = st("gridState"), t = st("listClassName"), n = st("itemClassName"), r = st("itemContent"), o = st("computeItemKey"), s = st("isSeeking"), i =
|
|
7994
|
+
const e = st("gridState"), t = st("listClassName"), n = st("itemClassName"), r = st("itemContent"), o = st("computeItemKey"), s = st("isSeeking"), i = qt("scrollHeight"), a = st("ItemComponent"), c = st("ListComponent"), l = st("ScrollSeekPlaceholder"), u = st("context"), f = qt("itemDimensions"), p = qt("gap"), h = st("log"), m = st("stateRestoreInProgress"), v = qt("reportReadyState"), g = ir(
|
|
8001
7995
|
Z.useMemo(
|
|
8002
7996
|
() => (w) => {
|
|
8003
7997
|
const y = w.parentElement.parentElement.scrollHeight;
|
|
@@ -8052,7 +8046,7 @@ const Uv = /* @__PURE__ */ Oe(() => {
|
|
|
8052
8046
|
}
|
|
8053
8047
|
);
|
|
8054
8048
|
}), Kv = Z.memo(function() {
|
|
8055
|
-
const e = st("HeaderComponent"), t =
|
|
8049
|
+
const e = st("HeaderComponent"), t = qt("headerHeight"), n = st("headerFooterTag"), r = ir(
|
|
8056
8050
|
Z.useMemo(
|
|
8057
8051
|
() => (s) => {
|
|
8058
8052
|
t(An(s, "height"));
|
|
@@ -8064,7 +8058,7 @@ const Uv = /* @__PURE__ */ Oe(() => {
|
|
|
8064
8058
|
), o = st("context");
|
|
8065
8059
|
return e ? /* @__PURE__ */ d.jsx(n, { ref: r, children: /* @__PURE__ */ d.jsx(e, { ...yt(e, o) }) }) : null;
|
|
8066
8060
|
}), qv = Z.memo(function() {
|
|
8067
|
-
const e = st("FooterComponent"), t =
|
|
8061
|
+
const e = st("FooterComponent"), t = qt("footerHeight"), n = st("headerFooterTag"), r = ir(
|
|
8068
8062
|
Z.useMemo(
|
|
8069
8063
|
() => (s) => {
|
|
8070
8064
|
t(An(s, "height"));
|
|
@@ -8076,7 +8070,7 @@ const Uv = /* @__PURE__ */ Oe(() => {
|
|
|
8076
8070
|
), o = st("context");
|
|
8077
8071
|
return e ? /* @__PURE__ */ d.jsx(n, { ref: r, children: /* @__PURE__ */ d.jsx(e, { ...yt(e, o) }) }) : null;
|
|
8078
8072
|
}), Gv = ({ children: e }) => {
|
|
8079
|
-
const t = Z.useContext(Wu), n =
|
|
8073
|
+
const t = Z.useContext(Wu), n = qt("itemDimensions"), r = qt("viewportDimensions"), o = ir(
|
|
8080
8074
|
Z.useMemo(
|
|
8081
8075
|
() => (s) => {
|
|
8082
8076
|
r(s.getBoundingClientRect());
|
|
@@ -8090,7 +8084,7 @@ const Uv = /* @__PURE__ */ Oe(() => {
|
|
|
8090
8084
|
t && (r({ height: t.viewportHeight, width: t.viewportWidth }), n({ height: t.itemHeight, width: t.itemWidth }));
|
|
8091
8085
|
}, [t, r, n]), /* @__PURE__ */ d.jsx("div", { ref: o, style: Es(!1), children: e });
|
|
8092
8086
|
}, Yv = ({ children: e }) => {
|
|
8093
|
-
const t = Z.useContext(Wu), n =
|
|
8087
|
+
const t = Z.useContext(Wu), n = qt("windowViewportRect"), r = qt("itemDimensions"), o = st("customScrollParent"), s = Su(n, o, !1);
|
|
8094
8088
|
return Z.useEffect(() => {
|
|
8095
8089
|
t && (r({ height: t.itemHeight, width: t.itemWidth }), n({ offsetTop: 0, visibleHeight: t.viewportHeight, visibleWidth: t.viewportWidth }));
|
|
8096
8090
|
}, [t, n, r]), /* @__PURE__ */ d.jsx("div", { ref: s, style: Es(!1), children: e });
|
|
@@ -8104,7 +8098,7 @@ const Uv = /* @__PURE__ */ Oe(() => {
|
|
|
8104
8098
|
}), {
|
|
8105
8099
|
useEmitter: Ju,
|
|
8106
8100
|
useEmitterValue: st,
|
|
8107
|
-
usePublisher:
|
|
8101
|
+
usePublisher: qt
|
|
8108
8102
|
} = /* @__PURE__ */ Hu(
|
|
8109
8103
|
Wv,
|
|
8110
8104
|
{
|
|
@@ -8146,7 +8140,7 @@ const Uv = /* @__PURE__ */ Oe(() => {
|
|
|
8146
8140
|
}
|
|
8147
8141
|
},
|
|
8148
8142
|
Xv
|
|
8149
|
-
), Jv = /* @__PURE__ */ Gu({ useEmitter: Ju, useEmitterValue: st, usePublisher:
|
|
8143
|
+
), Jv = /* @__PURE__ */ Gu({ useEmitter: Ju, useEmitterValue: st, usePublisher: qt }), Zv = /* @__PURE__ */ Yu({ useEmitter: Ju, useEmitterValue: st, usePublisher: qt });
|
|
8150
8144
|
function zl(e, t, n) {
|
|
8151
8145
|
return t !== "normal" && !(t != null && t.endsWith("px")) && n(`${e} was not resolved to pixel value correctly`, t, jt.WARN), t === "normal" ? 0 : parseInt(t ?? "0", 10);
|
|
8152
8146
|
}
|
|
@@ -8252,7 +8246,7 @@ function ow(e) {
|
|
|
8252
8246
|
const s = rw(r) ?? r[r.length - 1];
|
|
8253
8247
|
if (!s)
|
|
8254
8248
|
return null;
|
|
8255
|
-
const i = s.output ?? s.payload ?? s, a =
|
|
8249
|
+
const i = s.output ?? s.payload ?? s, a = an(i);
|
|
8256
8250
|
return a && typeof a == "object" && !Array.isArray(a) ? {
|
|
8257
8251
|
kind: "dict",
|
|
8258
8252
|
value: a,
|
|
@@ -12106,7 +12100,7 @@ function mn(e) {
|
|
|
12106
12100
|
function Ed(e) {
|
|
12107
12101
|
return Ns() ? e instanceof Node || e instanceof Ht(e).Node : !1;
|
|
12108
12102
|
}
|
|
12109
|
-
function
|
|
12103
|
+
function Zt(e) {
|
|
12110
12104
|
return Ns() ? e instanceof Element || e instanceof Ht(e).Element : !1;
|
|
12111
12105
|
}
|
|
12112
12106
|
function pn(e) {
|
|
@@ -12122,7 +12116,7 @@ function mo(e) {
|
|
|
12122
12116
|
overflowX: n,
|
|
12123
12117
|
overflowY: r,
|
|
12124
12118
|
display: o
|
|
12125
|
-
} =
|
|
12119
|
+
} = Qt(e);
|
|
12126
12120
|
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !wy.has(o);
|
|
12127
12121
|
}
|
|
12128
12122
|
const yy = /* @__PURE__ */ new Set(["table", "td", "th"]);
|
|
@@ -12141,7 +12135,7 @@ function js(e) {
|
|
|
12141
12135
|
}
|
|
12142
12136
|
const Cy = ["transform", "translate", "scale", "rotate", "perspective"], Ty = ["transform", "translate", "scale", "rotate", "perspective", "filter"], ky = ["paint", "layout", "strict", "content"];
|
|
12143
12137
|
function ha(e) {
|
|
12144
|
-
const t = ma(), n =
|
|
12138
|
+
const t = ma(), n = Zt(e) ? Qt(e) : e;
|
|
12145
12139
|
return Cy.some((r) => n[r] ? n[r] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || Ty.some((r) => (n.willChange || "").includes(r)) || ky.some((r) => (n.contain || "").includes(r));
|
|
12146
12140
|
}
|
|
12147
12141
|
function Ey(e) {
|
|
@@ -12162,11 +12156,11 @@ const Iy = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
|
|
12162
12156
|
function Cr(e) {
|
|
12163
12157
|
return Iy.has(jr(e));
|
|
12164
12158
|
}
|
|
12165
|
-
function
|
|
12159
|
+
function Qt(e) {
|
|
12166
12160
|
return Ht(e).getComputedStyle(e);
|
|
12167
12161
|
}
|
|
12168
12162
|
function _s(e) {
|
|
12169
|
-
return
|
|
12163
|
+
return Zt(e) ? {
|
|
12170
12164
|
scrollLeft: e.scrollLeft,
|
|
12171
12165
|
scrollTop: e.scrollTop
|
|
12172
12166
|
} : {
|
|
@@ -12204,7 +12198,7 @@ function Oi(e) {
|
|
|
12204
12198
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
12205
12199
|
}
|
|
12206
12200
|
function Rd(e) {
|
|
12207
|
-
const t =
|
|
12201
|
+
const t = Qt(e);
|
|
12208
12202
|
let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
|
|
12209
12203
|
const o = pn(e), s = o ? e.offsetWidth : n, i = o ? e.offsetHeight : r, a = ss(n) !== s || ss(r) !== i;
|
|
12210
12204
|
return a && (n = s, r = i), {
|
|
@@ -12214,7 +12208,7 @@ function Rd(e) {
|
|
|
12214
12208
|
};
|
|
12215
12209
|
}
|
|
12216
12210
|
function ga(e) {
|
|
12217
|
-
return
|
|
12211
|
+
return Zt(e) ? e : e.contextElement;
|
|
12218
12212
|
}
|
|
12219
12213
|
function yr(e) {
|
|
12220
12214
|
const t = ga(e);
|
|
@@ -12246,14 +12240,14 @@ function nr(e, t, n, r) {
|
|
|
12246
12240
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
12247
12241
|
const o = e.getBoundingClientRect(), s = ga(e);
|
|
12248
12242
|
let i = dn(1);
|
|
12249
|
-
t && (r ?
|
|
12243
|
+
t && (r ? Zt(r) && (i = yr(r)) : i = yr(e));
|
|
12250
12244
|
const a = Ay(s, n, r) ? Ad(s) : dn(0);
|
|
12251
12245
|
let c = (o.left + a.x) / i.x, l = (o.top + a.y) / i.y, u = o.width / i.x, f = o.height / i.y;
|
|
12252
12246
|
if (s) {
|
|
12253
|
-
const p = Ht(s), h = r &&
|
|
12247
|
+
const p = Ht(s), h = r && Zt(r) ? Ht(r) : r;
|
|
12254
12248
|
let m = p, v = Oi(m);
|
|
12255
12249
|
for (; v && r && h !== m; ) {
|
|
12256
|
-
const g = yr(v), w = v.getBoundingClientRect(), y =
|
|
12250
|
+
const g = yr(v), w = v.getBoundingClientRect(), y = Qt(v), C = w.left + (v.clientLeft + parseFloat(y.paddingLeft)) * g.x, k = w.top + (v.clientTop + parseFloat(y.paddingTop)) * g.y;
|
|
12257
12251
|
c *= g.x, l *= g.y, u *= g.x, f *= g.y, c += C, l += k, m = Ht(v), v = Oi(m);
|
|
12258
12252
|
}
|
|
12259
12253
|
}
|
|
@@ -12309,7 +12303,7 @@ function _y(e) {
|
|
|
12309
12303
|
const t = mn(e), n = _s(e), r = e.ownerDocument.body, o = $t(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), s = $t(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
|
|
12310
12304
|
let i = -n.scrollLeft + Ps(e);
|
|
12311
12305
|
const a = -n.scrollTop;
|
|
12312
|
-
return
|
|
12306
|
+
return Qt(r).direction === "rtl" && (i += $t(t.clientWidth, r.clientWidth) - o), {
|
|
12313
12307
|
width: o,
|
|
12314
12308
|
height: s,
|
|
12315
12309
|
x: i,
|
|
@@ -12353,7 +12347,7 @@ function cc(e, t, n) {
|
|
|
12353
12347
|
r = Py(e, n);
|
|
12354
12348
|
else if (t === "document")
|
|
12355
12349
|
r = _y(mn(e));
|
|
12356
|
-
else if (
|
|
12350
|
+
else if (Zt(t))
|
|
12357
12351
|
r = My(t, n);
|
|
12358
12352
|
else {
|
|
12359
12353
|
const o = Ad(e);
|
|
@@ -12368,17 +12362,17 @@ function cc(e, t, n) {
|
|
|
12368
12362
|
}
|
|
12369
12363
|
function jd(e, t) {
|
|
12370
12364
|
const n = On(e);
|
|
12371
|
-
return n === t || !
|
|
12365
|
+
return n === t || !Zt(n) || Cr(n) ? !1 : Qt(n).position === "fixed" || jd(n, t);
|
|
12372
12366
|
}
|
|
12373
12367
|
function Dy(e, t) {
|
|
12374
12368
|
const n = t.get(e);
|
|
12375
12369
|
if (n)
|
|
12376
12370
|
return n;
|
|
12377
|
-
let r = Zr(e, [], !1).filter((a) =>
|
|
12378
|
-
const s =
|
|
12371
|
+
let r = Zr(e, [], !1).filter((a) => Zt(a) && jr(a) !== "body"), o = null;
|
|
12372
|
+
const s = Qt(e).position === "fixed";
|
|
12379
12373
|
let i = s ? On(e) : e;
|
|
12380
|
-
for (;
|
|
12381
|
-
const a =
|
|
12374
|
+
for (; Zt(i) && !Cr(i); ) {
|
|
12375
|
+
const a = Qt(i), c = ha(i);
|
|
12382
12376
|
!c && a.position === "fixed" && (o = null), (s ? !c && !o : !c && a.position === "static" && !!o && Oy.has(o.position) || mo(i) && !c && jd(e, i)) ? r = r.filter((u) => u !== i) : o = a, i = On(i);
|
|
12383
12377
|
}
|
|
12384
12378
|
return t.set(e, r), r;
|
|
@@ -12436,10 +12430,10 @@ function Fy(e, t, n) {
|
|
|
12436
12430
|
};
|
|
12437
12431
|
}
|
|
12438
12432
|
function si(e) {
|
|
12439
|
-
return
|
|
12433
|
+
return Qt(e).position === "static";
|
|
12440
12434
|
}
|
|
12441
12435
|
function uc(e, t) {
|
|
12442
|
-
if (!pn(e) ||
|
|
12436
|
+
if (!pn(e) || Qt(e).position === "fixed")
|
|
12443
12437
|
return null;
|
|
12444
12438
|
if (t)
|
|
12445
12439
|
return t(e);
|
|
@@ -12453,7 +12447,7 @@ function _d(e, t) {
|
|
|
12453
12447
|
if (!pn(e)) {
|
|
12454
12448
|
let o = On(e);
|
|
12455
12449
|
for (; o && !Cr(o); ) {
|
|
12456
|
-
if (
|
|
12450
|
+
if (Zt(o) && !si(o))
|
|
12457
12451
|
return o;
|
|
12458
12452
|
o = On(o);
|
|
12459
12453
|
}
|
|
@@ -12477,7 +12471,7 @@ const zy = async function(e) {
|
|
|
12477
12471
|
};
|
|
12478
12472
|
};
|
|
12479
12473
|
function By(e) {
|
|
12480
|
-
return
|
|
12474
|
+
return Qt(e).direction === "rtl";
|
|
12481
12475
|
}
|
|
12482
12476
|
const Hy = {
|
|
12483
12477
|
convertOffsetParentRelativeRectToViewportRelativeRect: Ny,
|
|
@@ -12488,7 +12482,7 @@ const Hy = {
|
|
|
12488
12482
|
getClientRects: jy,
|
|
12489
12483
|
getDimensions: $y,
|
|
12490
12484
|
getScale: yr,
|
|
12491
|
-
isElement:
|
|
12485
|
+
isElement: Zt,
|
|
12492
12486
|
isRTL: By
|
|
12493
12487
|
};
|
|
12494
12488
|
function Pd(e, t) {
|
|
@@ -13829,14 +13823,14 @@ var Sa = "MenuPortal", [_0, ff] = cr(Sa, {
|
|
|
13829
13823
|
return /* @__PURE__ */ d.jsx(_0, { scope: t, forceMount: n, children: /* @__PURE__ */ d.jsx(Ut, { present: n || s.open, children: /* @__PURE__ */ d.jsx(wa, { asChild: !0, container: o, children: r }) }) });
|
|
13830
13824
|
};
|
|
13831
13825
|
pf.displayName = Sa;
|
|
13832
|
-
var
|
|
13826
|
+
var Gt = "MenuContent", [P0, Ca] = cr(Gt), hf = x.forwardRef(
|
|
13833
13827
|
(e, t) => {
|
|
13834
|
-
const n = ff(
|
|
13828
|
+
const n = ff(Gt, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = ur(Gt, e.__scopeMenu), i = vo(Gt, e.__scopeMenu);
|
|
13835
13829
|
return /* @__PURE__ */ d.jsx(Qr.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ d.jsx(Ut, { present: r || s.open, children: /* @__PURE__ */ d.jsx(Qr.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ d.jsx(O0, { ...o, ref: t }) : /* @__PURE__ */ d.jsx(M0, { ...o, ref: t }) }) }) });
|
|
13836
13830
|
}
|
|
13837
13831
|
), O0 = x.forwardRef(
|
|
13838
13832
|
(e, t) => {
|
|
13839
|
-
const n = ur(
|
|
13833
|
+
const n = ur(Gt, e.__scopeMenu), r = x.useRef(null), o = it(t, r);
|
|
13840
13834
|
return x.useEffect(() => {
|
|
13841
13835
|
const s = r.current;
|
|
13842
13836
|
if (s) return Qd(s);
|
|
@@ -13858,7 +13852,7 @@ var Yt = "MenuContent", [P0, Ca] = cr(Yt), hf = x.forwardRef(
|
|
|
13858
13852
|
);
|
|
13859
13853
|
}
|
|
13860
13854
|
), M0 = x.forwardRef((e, t) => {
|
|
13861
|
-
const n = ur(
|
|
13855
|
+
const n = ur(Gt, e.__scopeMenu);
|
|
13862
13856
|
return /* @__PURE__ */ d.jsx(
|
|
13863
13857
|
Ta,
|
|
13864
13858
|
{
|
|
@@ -13887,7 +13881,7 @@ var Yt = "MenuContent", [P0, Ca] = cr(Yt), hf = x.forwardRef(
|
|
|
13887
13881
|
onDismiss: h,
|
|
13888
13882
|
disableOutsideScroll: m,
|
|
13889
13883
|
...v
|
|
13890
|
-
} = e, g = ur(
|
|
13884
|
+
} = e, g = ur(Gt, n), w = vo(Gt, n), y = Ms(n), C = uf(n), k = I0(n), [S, b] = x.useState(null), T = x.useRef(null), I = it(t, T, g.onContentChange), _ = x.useRef(0), j = x.useRef(""), D = x.useRef(0), B = x.useRef(null), $ = x.useRef("right"), N = x.useRef(0), G = m ? ya : x.Fragment, Y = m ? { as: D0, allowPinchZoom: !0 } : void 0, te = (H) => {
|
|
13891
13885
|
var K, O;
|
|
13892
13886
|
const ne = j.current + H, V = k().filter((W) => !W.disabled), R = document.activeElement, P = (K = V.find((W) => W.ref.current === R)) == null ? void 0 : K.textValue, A = V.map((W) => W.textValue), M = G0(A, ne, P), U = (O = V.find((W) => W.textValue === M)) == null ? void 0 : O.ref.current;
|
|
13893
13887
|
(function W(re) {
|
|
@@ -14007,7 +14001,7 @@ var Yt = "MenuContent", [P0, Ca] = cr(Yt), hf = x.forwardRef(
|
|
|
14007
14001
|
);
|
|
14008
14002
|
}
|
|
14009
14003
|
);
|
|
14010
|
-
hf.displayName =
|
|
14004
|
+
hf.displayName = Gt;
|
|
14011
14005
|
var L0 = "MenuGroup", ka = x.forwardRef(
|
|
14012
14006
|
(e, t) => {
|
|
14013
14007
|
const { __scopeMenu: n, ...r } = e;
|
|
@@ -14267,7 +14261,7 @@ var V0 = "MenuSub", [DT, Ef] = cr(V0), Fr = "MenuSubTrigger", If = x.forwardRef(
|
|
|
14267
14261
|
If.displayName = Fr;
|
|
14268
14262
|
var Rf = "MenuSubContent", Af = x.forwardRef(
|
|
14269
14263
|
(e, t) => {
|
|
14270
|
-
const n = ff(
|
|
14264
|
+
const n = ff(Gt, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = ur(Gt, e.__scopeMenu), i = vo(Gt, e.__scopeMenu), a = Ef(Rf, e.__scopeMenu), c = x.useRef(null), l = it(t, c);
|
|
14271
14265
|
return /* @__PURE__ */ d.jsx(Qr.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ d.jsx(Ut, { present: r || s.open, children: /* @__PURE__ */ d.jsx(Qr.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ d.jsx(
|
|
14272
14266
|
Ta,
|
|
14273
14267
|
{
|
|
@@ -15139,7 +15133,7 @@ function BS({
|
|
|
15139
15133
|
displayMessages: h
|
|
15140
15134
|
};
|
|
15141
15135
|
}
|
|
15142
|
-
var Fs = "Dialog", [rp, $T] = Fn(Fs), [HS,
|
|
15136
|
+
var Fs = "Dialog", [rp, $T] = Fn(Fs), [HS, tn] = rp(Fs), op = (e) => {
|
|
15143
15137
|
const {
|
|
15144
15138
|
__scopeDialog: t,
|
|
15145
15139
|
children: n,
|
|
@@ -15173,7 +15167,7 @@ var Fs = "Dialog", [rp, $T] = Fn(Fs), [HS, nn] = rp(Fs), op = (e) => {
|
|
|
15173
15167
|
op.displayName = Fs;
|
|
15174
15168
|
var sp = "DialogTrigger", US = x.forwardRef(
|
|
15175
15169
|
(e, t) => {
|
|
15176
|
-
const { __scopeDialog: n, ...r } = e, o =
|
|
15170
|
+
const { __scopeDialog: n, ...r } = e, o = tn(sp, n), s = it(t, o.triggerRef);
|
|
15177
15171
|
return /* @__PURE__ */ d.jsx(
|
|
15178
15172
|
je.button,
|
|
15179
15173
|
{
|
|
@@ -15193,20 +15187,20 @@ US.displayName = sp;
|
|
|
15193
15187
|
var Na = "DialogPortal", [WS, ip] = rp(Na, {
|
|
15194
15188
|
forceMount: void 0
|
|
15195
15189
|
}), ap = (e) => {
|
|
15196
|
-
const { __scopeDialog: t, forceMount: n, children: r, container: o } = e, s =
|
|
15190
|
+
const { __scopeDialog: t, forceMount: n, children: r, container: o } = e, s = tn(Na, t);
|
|
15197
15191
|
return /* @__PURE__ */ d.jsx(WS, { scope: t, forceMount: n, children: x.Children.map(r, (i) => /* @__PURE__ */ d.jsx(Ut, { present: n || s.open, children: /* @__PURE__ */ d.jsx(wa, { asChild: !0, container: o, children: i }) })) });
|
|
15198
15192
|
};
|
|
15199
15193
|
ap.displayName = Na;
|
|
15200
15194
|
var ds = "DialogOverlay", lp = x.forwardRef(
|
|
15201
15195
|
(e, t) => {
|
|
15202
|
-
const n = ip(ds, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, s =
|
|
15196
|
+
const n = ip(ds, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, s = tn(ds, e.__scopeDialog);
|
|
15203
15197
|
return s.modal ? /* @__PURE__ */ d.jsx(Ut, { present: r || s.open, children: /* @__PURE__ */ d.jsx(KS, { ...o, ref: t }) }) : null;
|
|
15204
15198
|
}
|
|
15205
15199
|
);
|
|
15206
15200
|
lp.displayName = ds;
|
|
15207
15201
|
var VS = Wr("DialogOverlay.RemoveScroll"), KS = x.forwardRef(
|
|
15208
15202
|
(e, t) => {
|
|
15209
|
-
const { __scopeDialog: n, ...r } = e, o =
|
|
15203
|
+
const { __scopeDialog: n, ...r } = e, o = tn(ds, n);
|
|
15210
15204
|
return (
|
|
15211
15205
|
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
15212
15206
|
// ie. when `Overlay` and `Content` are siblings
|
|
@@ -15223,14 +15217,14 @@ var VS = Wr("DialogOverlay.RemoveScroll"), KS = x.forwardRef(
|
|
|
15223
15217
|
}
|
|
15224
15218
|
), rr = "DialogContent", cp = x.forwardRef(
|
|
15225
15219
|
(e, t) => {
|
|
15226
|
-
const n = ip(rr, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, s =
|
|
15220
|
+
const n = ip(rr, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, s = tn(rr, e.__scopeDialog);
|
|
15227
15221
|
return /* @__PURE__ */ d.jsx(Ut, { present: r || s.open, children: s.modal ? /* @__PURE__ */ d.jsx(qS, { ...o, ref: t }) : /* @__PURE__ */ d.jsx(GS, { ...o, ref: t }) });
|
|
15228
15222
|
}
|
|
15229
15223
|
);
|
|
15230
15224
|
cp.displayName = rr;
|
|
15231
15225
|
var qS = x.forwardRef(
|
|
15232
15226
|
(e, t) => {
|
|
15233
|
-
const n =
|
|
15227
|
+
const n = tn(rr, e.__scopeDialog), r = x.useRef(null), o = it(t, n.contentRef, r);
|
|
15234
15228
|
return x.useEffect(() => {
|
|
15235
15229
|
const s = r.current;
|
|
15236
15230
|
if (s) return Qd(s);
|
|
@@ -15258,7 +15252,7 @@ var qS = x.forwardRef(
|
|
|
15258
15252
|
}
|
|
15259
15253
|
), GS = x.forwardRef(
|
|
15260
15254
|
(e, t) => {
|
|
15261
|
-
const n =
|
|
15255
|
+
const n = tn(rr, e.__scopeDialog), r = x.useRef(!1), o = x.useRef(!1);
|
|
15262
15256
|
return /* @__PURE__ */ d.jsx(
|
|
15263
15257
|
up,
|
|
15264
15258
|
{
|
|
@@ -15281,7 +15275,7 @@ var qS = x.forwardRef(
|
|
|
15281
15275
|
}
|
|
15282
15276
|
), up = x.forwardRef(
|
|
15283
15277
|
(e, t) => {
|
|
15284
|
-
const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: s, ...i } = e, a =
|
|
15278
|
+
const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: s, ...i } = e, a = tn(rr, n), c = x.useRef(null), l = it(t, c);
|
|
15285
15279
|
return Sd(), /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
|
|
15286
15280
|
/* @__PURE__ */ d.jsx(
|
|
15287
15281
|
ua,
|
|
@@ -15314,21 +15308,21 @@ var qS = x.forwardRef(
|
|
|
15314
15308
|
}
|
|
15315
15309
|
), ja = "DialogTitle", dp = x.forwardRef(
|
|
15316
15310
|
(e, t) => {
|
|
15317
|
-
const { __scopeDialog: n, ...r } = e, o =
|
|
15311
|
+
const { __scopeDialog: n, ...r } = e, o = tn(ja, n);
|
|
15318
15312
|
return /* @__PURE__ */ d.jsx(je.h2, { id: o.titleId, ...r, ref: t });
|
|
15319
15313
|
}
|
|
15320
15314
|
);
|
|
15321
15315
|
dp.displayName = ja;
|
|
15322
15316
|
var fp = "DialogDescription", pp = x.forwardRef(
|
|
15323
15317
|
(e, t) => {
|
|
15324
|
-
const { __scopeDialog: n, ...r } = e, o =
|
|
15318
|
+
const { __scopeDialog: n, ...r } = e, o = tn(fp, n);
|
|
15325
15319
|
return /* @__PURE__ */ d.jsx(je.p, { id: o.descriptionId, ...r, ref: t });
|
|
15326
15320
|
}
|
|
15327
15321
|
);
|
|
15328
15322
|
pp.displayName = fp;
|
|
15329
15323
|
var hp = "DialogClose", mp = x.forwardRef(
|
|
15330
15324
|
(e, t) => {
|
|
15331
|
-
const { __scopeDialog: n, ...r } = e, o =
|
|
15325
|
+
const { __scopeDialog: n, ...r } = e, o = tn(hp, n);
|
|
15332
15326
|
return /* @__PURE__ */ d.jsx(
|
|
15333
15327
|
je.button,
|
|
15334
15328
|
{
|
|
@@ -15458,7 +15452,7 @@ function eC(e, [t, n]) {
|
|
|
15458
15452
|
function tC(e, t) {
|
|
15459
15453
|
return x.useReducer((n, r) => t[n][r] ?? n, e);
|
|
15460
15454
|
}
|
|
15461
|
-
var $a = "ScrollArea", [Tp, zT] = Fn($a), [nC,
|
|
15455
|
+
var $a = "ScrollArea", [Tp, zT] = Fn($a), [nC, Yt] = Tp($a), kp = x.forwardRef(
|
|
15462
15456
|
(e, t) => {
|
|
15463
15457
|
const {
|
|
15464
15458
|
__scopeScrollArea: n,
|
|
@@ -15511,7 +15505,7 @@ var $a = "ScrollArea", [Tp, zT] = Fn($a), [nC, Xt] = Tp($a), kp = x.forwardRef(
|
|
|
15511
15505
|
kp.displayName = $a;
|
|
15512
15506
|
var Ep = "ScrollAreaViewport", Ip = x.forwardRef(
|
|
15513
15507
|
(e, t) => {
|
|
15514
|
-
const { __scopeScrollArea: n, children: r, nonce: o, ...s } = e, i =
|
|
15508
|
+
const { __scopeScrollArea: n, children: r, nonce: o, ...s } = e, i = Yt(Ep, n), a = x.useRef(null), c = it(t, a, i.onViewportChange);
|
|
15515
15509
|
return /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
|
|
15516
15510
|
/* @__PURE__ */ d.jsx(
|
|
15517
15511
|
"style",
|
|
@@ -15553,7 +15547,7 @@ var Ep = "ScrollAreaViewport", Ip = x.forwardRef(
|
|
|
15553
15547
|
Ip.displayName = Ep;
|
|
15554
15548
|
var gn = "ScrollAreaScrollbar", Fa = x.forwardRef(
|
|
15555
15549
|
(e, t) => {
|
|
15556
|
-
const { forceMount: n, ...r } = e, o =
|
|
15550
|
+
const { forceMount: n, ...r } = e, o = Yt(gn, e.__scopeScrollArea), { onScrollbarXEnabledChange: s, onScrollbarYEnabledChange: i } = o, a = e.orientation === "horizontal";
|
|
15557
15551
|
return x.useEffect(() => (a ? s(!0) : i(!0), () => {
|
|
15558
15552
|
a ? s(!1) : i(!1);
|
|
15559
15553
|
}), [a, s, i]), o.type === "hover" ? /* @__PURE__ */ d.jsx(rC, { ...r, ref: t, forceMount: n }) : o.type === "scroll" ? /* @__PURE__ */ d.jsx(oC, { ...r, ref: t, forceMount: n }) : o.type === "auto" ? /* @__PURE__ */ d.jsx(Rp, { ...r, ref: t, forceMount: n }) : o.type === "always" ? /* @__PURE__ */ d.jsx(za, { ...r, ref: t }) : null;
|
|
@@ -15561,7 +15555,7 @@ var gn = "ScrollAreaScrollbar", Fa = x.forwardRef(
|
|
|
15561
15555
|
);
|
|
15562
15556
|
Fa.displayName = gn;
|
|
15563
15557
|
var rC = x.forwardRef((e, t) => {
|
|
15564
|
-
const { forceMount: n, ...r } = e, o =
|
|
15558
|
+
const { forceMount: n, ...r } = e, o = Yt(gn, e.__scopeScrollArea), [s, i] = x.useState(!1);
|
|
15565
15559
|
return x.useEffect(() => {
|
|
15566
15560
|
const a = o.scrollArea;
|
|
15567
15561
|
let c = 0;
|
|
@@ -15584,7 +15578,7 @@ var rC = x.forwardRef((e, t) => {
|
|
|
15584
15578
|
}
|
|
15585
15579
|
) });
|
|
15586
15580
|
}), oC = x.forwardRef((e, t) => {
|
|
15587
|
-
const { forceMount: n, ...r } = e, o =
|
|
15581
|
+
const { forceMount: n, ...r } = e, o = Yt(gn, e.__scopeScrollArea), s = e.orientation === "horizontal", i = Bs(() => c("SCROLL_END"), 100), [a, c] = tC("hidden", {
|
|
15588
15582
|
hidden: {
|
|
15589
15583
|
SCROLL: "scrolling"
|
|
15590
15584
|
},
|
|
@@ -15628,7 +15622,7 @@ var rC = x.forwardRef((e, t) => {
|
|
|
15628
15622
|
}
|
|
15629
15623
|
) });
|
|
15630
15624
|
}), Rp = x.forwardRef((e, t) => {
|
|
15631
|
-
const n =
|
|
15625
|
+
const n = Yt(gn, e.__scopeScrollArea), { forceMount: r, ...o } = e, [s, i] = x.useState(!1), a = e.orientation === "horizontal", c = Bs(() => {
|
|
15632
15626
|
if (n.viewport) {
|
|
15633
15627
|
const l = n.viewport.offsetWidth < n.viewport.scrollWidth, u = n.viewport.offsetHeight < n.viewport.scrollHeight;
|
|
15634
15628
|
i(a ? l : u);
|
|
@@ -15643,7 +15637,7 @@ var rC = x.forwardRef((e, t) => {
|
|
|
15643
15637
|
}
|
|
15644
15638
|
) });
|
|
15645
15639
|
}), za = x.forwardRef((e, t) => {
|
|
15646
|
-
const { orientation: n = "vertical", ...r } = e, o =
|
|
15640
|
+
const { orientation: n = "vertical", ...r } = e, o = Yt(gn, e.__scopeScrollArea), s = x.useRef(null), i = x.useRef(0), [a, c] = x.useState({
|
|
15647
15641
|
content: 0,
|
|
15648
15642
|
viewport: 0,
|
|
15649
15643
|
scrollbar: { size: 0, paddingStart: 0, paddingEnd: 0 }
|
|
@@ -15697,7 +15691,7 @@ var rC = x.forwardRef((e, t) => {
|
|
|
15697
15691
|
}
|
|
15698
15692
|
) : null;
|
|
15699
15693
|
}), sC = x.forwardRef((e, t) => {
|
|
15700
|
-
const { sizes: n, onSizesChange: r, ...o } = e, s =
|
|
15694
|
+
const { sizes: n, onSizesChange: r, ...o } = e, s = Yt(gn, e.__scopeScrollArea), [i, a] = x.useState(), c = x.useRef(null), l = it(t, c, s.onScrollbarXChange);
|
|
15701
15695
|
return x.useEffect(() => {
|
|
15702
15696
|
c.current && a(getComputedStyle(c.current));
|
|
15703
15697
|
}, [c]), /* @__PURE__ */ d.jsx(
|
|
@@ -15736,7 +15730,7 @@ var rC = x.forwardRef((e, t) => {
|
|
|
15736
15730
|
}
|
|
15737
15731
|
);
|
|
15738
15732
|
}), iC = x.forwardRef((e, t) => {
|
|
15739
|
-
const { sizes: n, onSizesChange: r, ...o } = e, s =
|
|
15733
|
+
const { sizes: n, onSizesChange: r, ...o } = e, s = Yt(gn, e.__scopeScrollArea), [i, a] = x.useState(), c = x.useRef(null), l = it(t, c, s.onScrollbarYChange);
|
|
15740
15734
|
return x.useEffect(() => {
|
|
15741
15735
|
c.current && a(getComputedStyle(c.current));
|
|
15742
15736
|
}, [c]), /* @__PURE__ */ d.jsx(
|
|
@@ -15788,7 +15782,7 @@ var rC = x.forwardRef((e, t) => {
|
|
|
15788
15782
|
onWheelScroll: u,
|
|
15789
15783
|
onResize: f,
|
|
15790
15784
|
...p
|
|
15791
|
-
} = e, h =
|
|
15785
|
+
} = e, h = Yt(gn, n), [m, v] = x.useState(null), g = it(t, (_) => v(_)), w = x.useRef(null), y = x.useRef(""), C = h.viewport, k = r.content - r.viewport, S = bt(u), b = bt(c), T = Bs(f, 10);
|
|
15792
15786
|
function I(_) {
|
|
15793
15787
|
if (w.current) {
|
|
15794
15788
|
const j = _.clientX - w.current.left, D = _.clientY - w.current.top;
|
|
@@ -15836,7 +15830,7 @@ var rC = x.forwardRef((e, t) => {
|
|
|
15836
15830
|
}
|
|
15837
15831
|
), lC = x.forwardRef(
|
|
15838
15832
|
(e, t) => {
|
|
15839
|
-
const { __scopeScrollArea: n, style: r, ...o } = e, s =
|
|
15833
|
+
const { __scopeScrollArea: n, style: r, ...o } = e, s = Yt(fs, n), i = Ap(fs, n), { onThumbPositionChange: a } = i, c = it(
|
|
15840
15834
|
t,
|
|
15841
15835
|
(f) => i.onThumbChange(f)
|
|
15842
15836
|
), l = x.useRef(void 0), u = Bs(() => {
|
|
@@ -15876,13 +15870,13 @@ var rC = x.forwardRef((e, t) => {
|
|
|
15876
15870
|
jp.displayName = fs;
|
|
15877
15871
|
var Ba = "ScrollAreaCorner", _p = x.forwardRef(
|
|
15878
15872
|
(e, t) => {
|
|
15879
|
-
const n =
|
|
15873
|
+
const n = Yt(Ba, e.__scopeScrollArea), r = !!(n.scrollbarX && n.scrollbarY);
|
|
15880
15874
|
return n.type !== "scroll" && r ? /* @__PURE__ */ d.jsx(cC, { ...e, ref: t }) : null;
|
|
15881
15875
|
}
|
|
15882
15876
|
);
|
|
15883
15877
|
_p.displayName = Ba;
|
|
15884
15878
|
var cC = x.forwardRef((e, t) => {
|
|
15885
|
-
const { __scopeScrollArea: n, ...r } = e, o =
|
|
15879
|
+
const { __scopeScrollArea: n, ...r } = e, o = Yt(Ba, n), [s, i] = x.useState(0), [a, c] = x.useState(0), l = !!(s && a);
|
|
15886
15880
|
return Tr(o.scrollbarX, () => {
|
|
15887
15881
|
var f;
|
|
15888
15882
|
const u = ((f = o.scrollbarX) == null ? void 0 : f.offsetHeight) || 0;
|
|
@@ -16919,14 +16913,14 @@ function zi({
|
|
|
16919
16913
|
), ot = ze(() => {
|
|
16920
16914
|
const L = He, X = ft.trim().toLowerCase();
|
|
16921
16915
|
return X ? S ? L.filter((oe) => S(oe, X)) : L.filter((oe) => `${oe.label} ${oe.secondaryLabel ?? ""}`.toLowerCase().includes(X)) : L;
|
|
16922
|
-
}, [C, ft, S]), Xe = Mt === "shared",
|
|
16916
|
+
}, [C, ft, S]), Xe = Mt === "shared", nn = Xe ? D : U, Wt = T ? nn.filter(T) : nn, Vt = ze(() => {
|
|
16923
16917
|
const L = Array.isArray(b) ? b : [];
|
|
16924
16918
|
if (L.length === 0 || Xe) return null;
|
|
16925
16919
|
const X = "Default", oe = (ge) => {
|
|
16926
16920
|
if (!ge) return "Older";
|
|
16927
16921
|
try {
|
|
16928
|
-
const Fe = ge.endsWith("Z") || ge.includes("+") ? ge : `${ge}Z`, Pe = new Date(Fe), Le = /* @__PURE__ */ new Date(), xt = new Date(Le.getFullYear(), Le.getMonth(), Le.getDate()),
|
|
16929
|
-
(xt.getTime() -
|
|
16922
|
+
const Fe = ge.endsWith("Z") || ge.includes("+") ? ge : `${ge}Z`, Pe = new Date(Fe), Le = /* @__PURE__ */ new Date(), xt = new Date(Le.getFullYear(), Le.getMonth(), Le.getDate()), rn = new Date(Pe.getFullYear(), Pe.getMonth(), Pe.getDate()), Kn = Math.floor(
|
|
16923
|
+
(xt.getTime() - rn.getTime()) / (1e3 * 60 * 60 * 24)
|
|
16930
16924
|
);
|
|
16931
16925
|
return Kn === 0 ? "Today" : Kn === 1 ? "Yesterday" : Kn <= 7 ? "Last 7 Days" : "Older";
|
|
16932
16926
|
} catch {
|
|
@@ -16939,8 +16933,8 @@ function zi({
|
|
|
16939
16933
|
if (Fe === "menuItem")
|
|
16940
16934
|
return ge.menuItem || X;
|
|
16941
16935
|
if (Fe === "updatedAt" || Fe === "createdAt") {
|
|
16942
|
-
const
|
|
16943
|
-
return oe(
|
|
16936
|
+
const rn = Fe === "updatedAt" ? ge.updatedAt : ge.createdAt;
|
|
16937
|
+
return oe(rn);
|
|
16944
16938
|
}
|
|
16945
16939
|
const Pe = ge[Fe];
|
|
16946
16940
|
return typeof Pe == "string" ? Pe || X : typeof Pe == "number" ? String(Pe) : Pe == null ? X : String(Pe);
|
|
@@ -16954,10 +16948,10 @@ function zi({
|
|
|
16954
16948
|
if (Fe.length === 0) return ge;
|
|
16955
16949
|
const [Pe, ...Le] = Fe, xt = we(ge, Pe);
|
|
16956
16950
|
if (Le.length === 0) return xt;
|
|
16957
|
-
const
|
|
16951
|
+
const rn = {};
|
|
16958
16952
|
return Object.entries(xt).forEach(([Kn, rh]) => {
|
|
16959
|
-
|
|
16960
|
-
}),
|
|
16953
|
+
rn[Kn] = et(rh, Le);
|
|
16954
|
+
}), rn;
|
|
16961
16955
|
}, Ue = (ge) => {
|
|
16962
16956
|
if (Array.isArray(ge)) {
|
|
16963
16957
|
ge.sort(
|
|
@@ -17096,8 +17090,8 @@ function zi({
|
|
|
17096
17090
|
if (ge === Fe) return -1;
|
|
17097
17091
|
const Pe = q(Ae), Le = q(ge);
|
|
17098
17092
|
if (Pe !== null || Le !== null) {
|
|
17099
|
-
const xt = Pe ?? Number.MAX_SAFE_INTEGER,
|
|
17100
|
-
return xt -
|
|
17093
|
+
const xt = Pe ?? Number.MAX_SAFE_INTEGER, rn = Le ?? Number.MAX_SAFE_INTEGER;
|
|
17094
|
+
return xt - rn;
|
|
17101
17095
|
}
|
|
17102
17096
|
return Ae.localeCompare(ge);
|
|
17103
17097
|
}).map(([Ae, ge]) => {
|