teodor-new-chat-ui 4.3.144 → 4.3.146
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 +197 -195
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -2,7 +2,7 @@ var lg = Object.defineProperty;
|
|
|
2
2
|
var cg = (e, t, n) => t in e ? lg(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var sc = (e, t, n) => cg(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
4
|
import * as v from "react";
|
|
5
|
-
import V, { createContext as
|
|
5
|
+
import V, { createContext as zo, useContext as ei, useReducer as ug, useRef as Ee, useCallback as de, useEffect as St, useMemo as ct, useState as we, startTransition as es, useLayoutEffect as dg, createElement as ms, useImperativeHandle as fg } from "react";
|
|
6
6
|
import { Square as hg, Send as pg, ChevronRight as Ju, Check as Qa, Circle as mg, X as Yr, ExternalLink as gg, Download as xg, Image as yg, FileText as ic, Loader as el, Bot as zi, Wrench as vg, User as wg, Paperclip as xa, ChevronUp as tl, ChevronDown as ti, ChevronLeft as bg, Copy as ac, Edit as lc, RotateCcw as ya, Info as Sg, Loader2 as gs, Edit3 as Zu, Plus as Cg, FileSpreadsheet as Tg, MessageSquarePlus as kg, MessageSquare as Rg, Calendar as Eg, Trash2 as Ig, Settings as Ng, Server as Ag, EyeOff as _g, Eye as jg, Layout as Pg, MessageCircle as Og, Save as Mg } from "lucide-react";
|
|
7
7
|
import { Slot as Dg, createSlot as to } from "@radix-ui/react-slot";
|
|
8
8
|
import { cva as ni } from "class-variance-authority";
|
|
@@ -10,7 +10,7 @@ import { clsx as Lg } from "clsx";
|
|
|
10
10
|
import { twMerge as Fg } from "tailwind-merge";
|
|
11
11
|
import * as ri from "react-dom";
|
|
12
12
|
import Qu from "react-dom";
|
|
13
|
-
var va = { exports: {} },
|
|
13
|
+
var va = { exports: {} }, go = {};
|
|
14
14
|
/**
|
|
15
15
|
* @license React
|
|
16
16
|
* react-jsx-runtime.production.min.js
|
|
@@ -22,7 +22,7 @@ var va = { exports: {} }, xo = {};
|
|
|
22
22
|
*/
|
|
23
23
|
var cc;
|
|
24
24
|
function $g() {
|
|
25
|
-
if (cc) return
|
|
25
|
+
if (cc) return go;
|
|
26
26
|
cc = 1;
|
|
27
27
|
var e = V, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
28
28
|
function i(a, l, c) {
|
|
@@ -32,9 +32,9 @@ function $g() {
|
|
|
32
32
|
if (a && a.defaultProps) for (d in l = a.defaultProps, l) f[d] === void 0 && (f[d] = l[d]);
|
|
33
33
|
return { $$typeof: t, type: a, key: h, ref: p, props: f, _owner: o.current };
|
|
34
34
|
}
|
|
35
|
-
return
|
|
35
|
+
return go.Fragment = n, go.jsx = i, go.jsxs = i, go;
|
|
36
36
|
}
|
|
37
|
-
var
|
|
37
|
+
var xo = {};
|
|
38
38
|
/**
|
|
39
39
|
* @license React
|
|
40
40
|
* react-jsx-runtime.development.js
|
|
@@ -631,8 +631,8 @@ React keys must be passed directly to JSX without using spread:
|
|
|
631
631
|
return un(E, Y, ae, !1);
|
|
632
632
|
}
|
|
633
633
|
var br = Wr, Sr = Ur;
|
|
634
|
-
|
|
635
|
-
}()),
|
|
634
|
+
xo.Fragment = r, xo.jsx = br, xo.jsxs = Sr;
|
|
635
|
+
}()), xo;
|
|
636
636
|
}
|
|
637
637
|
process.env.NODE_ENV === "production" ? va.exports = $g() : va.exports = zg();
|
|
638
638
|
var u = va.exports;
|
|
@@ -645,7 +645,7 @@ const { toString: Bg } = Object.prototype, { getPrototypeOf: nl } = Object, { it
|
|
|
645
645
|
const n = Bg.call(t);
|
|
646
646
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
647
647
|
})(/* @__PURE__ */ Object.create(null)), Bn = (e) => (e = e.toLowerCase(), (t) => si(t) === e), ii = (e) => (t) => typeof t === e, { isArray: io } = Array, no = ii("undefined");
|
|
648
|
-
function
|
|
648
|
+
function Bo(e) {
|
|
649
649
|
return e !== null && !no(e) && e.constructor !== null && !no(e.constructor) && mn(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
650
650
|
}
|
|
651
651
|
const nd = Bn("ArrayBuffer");
|
|
@@ -653,25 +653,25 @@ function Hg(e) {
|
|
|
653
653
|
let t;
|
|
654
654
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && nd(e.buffer), t;
|
|
655
655
|
}
|
|
656
|
-
const Ug = ii("string"), mn = ii("function"), rd = ii("number"),
|
|
656
|
+
const Ug = ii("string"), mn = ii("function"), rd = ii("number"), Ho = (e) => e !== null && typeof e == "object", Wg = (e) => e === !0 || e === !1, xs = (e) => {
|
|
657
657
|
if (si(e) !== "object")
|
|
658
658
|
return !1;
|
|
659
659
|
const t = nl(e);
|
|
660
660
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(td in e) && !(oi in e);
|
|
661
661
|
}, Vg = (e) => {
|
|
662
|
-
if (!
|
|
662
|
+
if (!Ho(e) || Bo(e))
|
|
663
663
|
return !1;
|
|
664
664
|
try {
|
|
665
665
|
return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
|
|
666
666
|
} catch {
|
|
667
667
|
return !1;
|
|
668
668
|
}
|
|
669
|
-
}, Kg = Bn("Date"), qg = Bn("File"), Gg = Bn("Blob"), Yg = Bn("FileList"), Xg = (e) =>
|
|
669
|
+
}, Kg = Bn("Date"), qg = Bn("File"), Gg = Bn("Blob"), Yg = Bn("FileList"), Xg = (e) => Ho(e) && mn(e.pipe), Jg = (e) => {
|
|
670
670
|
let t;
|
|
671
671
|
return e && (typeof FormData == "function" && e instanceof FormData || mn(e.append) && ((t = si(e)) === "formdata" || // detect form-data instance
|
|
672
672
|
t === "object" && mn(e.toString) && e.toString() === "[object FormData]"));
|
|
673
673
|
}, Zg = Bn("URLSearchParams"), [Qg, ex, tx, nx] = ["ReadableStream", "Request", "Response", "Headers"].map(Bn), rx = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
674
|
-
function
|
|
674
|
+
function Uo(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
675
675
|
if (e === null || typeof e > "u")
|
|
676
676
|
return;
|
|
677
677
|
let r, o;
|
|
@@ -679,7 +679,7 @@ function Wo(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
|
679
679
|
for (r = 0, o = e.length; r < o; r++)
|
|
680
680
|
t.call(null, e[r], r, e);
|
|
681
681
|
else {
|
|
682
|
-
if (
|
|
682
|
+
if (Bo(e))
|
|
683
683
|
return;
|
|
684
684
|
const s = n ? Object.getOwnPropertyNames(e) : Object.keys(e), i = s.length;
|
|
685
685
|
let a;
|
|
@@ -688,7 +688,7 @@ function Wo(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
|
688
688
|
}
|
|
689
689
|
}
|
|
690
690
|
function od(e, t) {
|
|
691
|
-
if (
|
|
691
|
+
if (Bo(e))
|
|
692
692
|
return null;
|
|
693
693
|
t = t.toLowerCase();
|
|
694
694
|
const n = Object.keys(e);
|
|
@@ -705,10 +705,10 @@ function wa() {
|
|
|
705
705
|
xs(n[i]) && xs(o) ? n[i] = wa(n[i], o) : xs(o) ? n[i] = wa({}, o) : io(o) ? n[i] = o.slice() : (!t || !no(o)) && (n[i] = o);
|
|
706
706
|
};
|
|
707
707
|
for (let o = 0, s = arguments.length; o < s; o++)
|
|
708
|
-
arguments[o] &&
|
|
708
|
+
arguments[o] && Uo(arguments[o], r);
|
|
709
709
|
return n;
|
|
710
710
|
}
|
|
711
|
-
const ox = (e, t, n, { allOwnKeys: r } = {}) => (
|
|
711
|
+
const ox = (e, t, n, { allOwnKeys: r } = {}) => (Uo(t, (o, s) => {
|
|
712
712
|
n && mn(o) ? e[s] = ed(o, n) : e[s] = o;
|
|
713
713
|
}, { allOwnKeys: r }), e), sx = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), ix = (e, t, n, r) => {
|
|
714
714
|
e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
@@ -757,7 +757,7 @@ const ox = (e, t, n, { allOwnKeys: r } = {}) => (Wo(t, (o, s) => {
|
|
|
757
757
|
}
|
|
758
758
|
), dc = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), mx = Bn("RegExp"), id = (e, t) => {
|
|
759
759
|
const n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
760
|
-
|
|
760
|
+
Uo(n, (o, s) => {
|
|
761
761
|
let i;
|
|
762
762
|
(i = t(o, s, e)) !== !1 && (r[s] = i || o);
|
|
763
763
|
}), Object.defineProperties(e, r);
|
|
@@ -790,15 +790,15 @@ function wx(e) {
|
|
|
790
790
|
}
|
|
791
791
|
const bx = (e) => {
|
|
792
792
|
const t = new Array(10), n = (r, o) => {
|
|
793
|
-
if (
|
|
793
|
+
if (Ho(r)) {
|
|
794
794
|
if (t.indexOf(r) >= 0)
|
|
795
795
|
return;
|
|
796
|
-
if (
|
|
796
|
+
if (Bo(r))
|
|
797
797
|
return r;
|
|
798
798
|
if (!("toJSON" in r)) {
|
|
799
799
|
t[o] = r;
|
|
800
800
|
const s = io(r) ? [] : {};
|
|
801
|
-
return
|
|
801
|
+
return Uo(r, (i, a) => {
|
|
802
802
|
const l = n(i, o + 1);
|
|
803
803
|
!no(l) && (s[a] = l);
|
|
804
804
|
}), t[o] = void 0, s;
|
|
@@ -807,7 +807,7 @@ const bx = (e) => {
|
|
|
807
807
|
return r;
|
|
808
808
|
};
|
|
809
809
|
return n(e, 0);
|
|
810
|
-
}, Sx = Bn("AsyncFunction"), Cx = (e) => e && (
|
|
810
|
+
}, Sx = Bn("AsyncFunction"), Cx = (e) => e && (Ho(e) || mn(e)) && mn(e.then) && mn(e.catch), ad = ((e, t) => e ? setImmediate : t ? ((n, r) => (Rr.addEventListener("message", ({ source: o, data: s }) => {
|
|
811
811
|
o === Rr && s === n && r.length && r.shift()();
|
|
812
812
|
}, !1), (o) => {
|
|
813
813
|
r.push(o), Rr.postMessage(n, "*");
|
|
@@ -817,13 +817,13 @@ const bx = (e) => {
|
|
|
817
817
|
), Tx = typeof queueMicrotask < "u" ? queueMicrotask.bind(Rr) : typeof process < "u" && process.nextTick || ad, kx = (e) => e != null && mn(e[oi]), O = {
|
|
818
818
|
isArray: io,
|
|
819
819
|
isArrayBuffer: nd,
|
|
820
|
-
isBuffer:
|
|
820
|
+
isBuffer: Bo,
|
|
821
821
|
isFormData: Jg,
|
|
822
822
|
isArrayBufferView: Hg,
|
|
823
823
|
isString: Ug,
|
|
824
824
|
isNumber: rd,
|
|
825
825
|
isBoolean: Wg,
|
|
826
|
-
isObject:
|
|
826
|
+
isObject: Ho,
|
|
827
827
|
isPlainObject: xs,
|
|
828
828
|
isEmptyObject: Vg,
|
|
829
829
|
isReadableStream: Qg,
|
|
@@ -840,7 +840,7 @@ const bx = (e) => {
|
|
|
840
840
|
isURLSearchParams: Zg,
|
|
841
841
|
isTypedArray: ux,
|
|
842
842
|
isFileList: Yg,
|
|
843
|
-
forEach:
|
|
843
|
+
forEach: Uo,
|
|
844
844
|
merge: wa,
|
|
845
845
|
extend: ox,
|
|
846
846
|
trim: rx,
|
|
@@ -1177,7 +1177,7 @@ function Bx(e, t, n) {
|
|
|
1177
1177
|
}
|
|
1178
1178
|
return (n || JSON.stringify)(e);
|
|
1179
1179
|
}
|
|
1180
|
-
const
|
|
1180
|
+
const Wo = {
|
|
1181
1181
|
transitional: hd,
|
|
1182
1182
|
adapter: ["xhr", "http", "fetch"],
|
|
1183
1183
|
transformRequest: [function(t, n) {
|
|
@@ -1206,7 +1206,7 @@ const Vo = {
|
|
|
1206
1206
|
return s || o ? (n.setContentType("application/json", !1), Bx(t)) : t;
|
|
1207
1207
|
}],
|
|
1208
1208
|
transformResponse: [function(t) {
|
|
1209
|
-
const n = this.transitional ||
|
|
1209
|
+
const n = this.transitional || Wo.transitional, r = n && n.forcedJSONParsing, o = this.responseType === "json";
|
|
1210
1210
|
if (O.isResponse(t) || O.isReadableStream(t))
|
|
1211
1211
|
return t;
|
|
1212
1212
|
if (t && O.isString(t) && (r && !this.responseType || o)) {
|
|
@@ -1244,7 +1244,7 @@ const Vo = {
|
|
|
1244
1244
|
}
|
|
1245
1245
|
};
|
|
1246
1246
|
O.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
1247
|
-
|
|
1247
|
+
Wo.headers[e] = {};
|
|
1248
1248
|
});
|
|
1249
1249
|
const Hx = O.toObjectSet([
|
|
1250
1250
|
"age",
|
|
@@ -1272,7 +1272,7 @@ const Hx = O.toObjectSet([
|
|
|
1272
1272
|
o = i.indexOf(":"), n = i.substring(0, o).trim().toLowerCase(), r = i.substring(o + 1).trim(), !(!n || t[n] && Hx[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
|
|
1273
1273
|
}), t;
|
|
1274
1274
|
}, mc = Symbol("internals");
|
|
1275
|
-
function
|
|
1275
|
+
function yo(e) {
|
|
1276
1276
|
return e && String(e).trim().toLowerCase();
|
|
1277
1277
|
}
|
|
1278
1278
|
function ys(e) {
|
|
@@ -1317,7 +1317,7 @@ let gn = class {
|
|
|
1317
1317
|
set(t, n, r) {
|
|
1318
1318
|
const o = this;
|
|
1319
1319
|
function s(a, l, c) {
|
|
1320
|
-
const d =
|
|
1320
|
+
const d = yo(l);
|
|
1321
1321
|
if (!d)
|
|
1322
1322
|
throw new Error("header name must be a non-empty string");
|
|
1323
1323
|
const f = O.findKey(o, d);
|
|
@@ -1341,7 +1341,7 @@ let gn = class {
|
|
|
1341
1341
|
return this;
|
|
1342
1342
|
}
|
|
1343
1343
|
get(t, n) {
|
|
1344
|
-
if (t =
|
|
1344
|
+
if (t = yo(t), t) {
|
|
1345
1345
|
const r = O.findKey(this, t);
|
|
1346
1346
|
if (r) {
|
|
1347
1347
|
const o = this[r];
|
|
@@ -1358,7 +1358,7 @@ let gn = class {
|
|
|
1358
1358
|
}
|
|
1359
1359
|
}
|
|
1360
1360
|
has(t, n) {
|
|
1361
|
-
if (t =
|
|
1361
|
+
if (t = yo(t), t) {
|
|
1362
1362
|
const r = O.findKey(this, t);
|
|
1363
1363
|
return !!(r && this[r] !== void 0 && (!n || Bi(this, this[r], r, n)));
|
|
1364
1364
|
}
|
|
@@ -1368,7 +1368,7 @@ let gn = class {
|
|
|
1368
1368
|
const r = this;
|
|
1369
1369
|
let o = !1;
|
|
1370
1370
|
function s(i) {
|
|
1371
|
-
if (i =
|
|
1371
|
+
if (i = yo(i), i) {
|
|
1372
1372
|
const a = O.findKey(r, i);
|
|
1373
1373
|
a && (!n || Bi(r, r[a], a, n)) && (delete r[a], o = !0);
|
|
1374
1374
|
}
|
|
@@ -1430,7 +1430,7 @@ let gn = class {
|
|
|
1430
1430
|
accessors: {}
|
|
1431
1431
|
}).accessors, o = this.prototype;
|
|
1432
1432
|
function s(i) {
|
|
1433
|
-
const a =
|
|
1433
|
+
const a = yo(i);
|
|
1434
1434
|
r[a] || (qx(o, i), r[a] = !0);
|
|
1435
1435
|
}
|
|
1436
1436
|
return O.isArray(t) ? t.forEach(s) : s(t), this;
|
|
@@ -1448,7 +1448,7 @@ O.reduceDescriptors(gn.prototype, ({ value: e }, t) => {
|
|
|
1448
1448
|
});
|
|
1449
1449
|
O.freezeMethods(gn);
|
|
1450
1450
|
function Hi(e, t) {
|
|
1451
|
-
const n = this ||
|
|
1451
|
+
const n = this || Wo, r = t || n, o = gn.from(r.headers);
|
|
1452
1452
|
let s = r.data;
|
|
1453
1453
|
return O.forEach(e, function(a) {
|
|
1454
1454
|
s = a.call(n, s, o.normalize(), t ? t.status : void 0);
|
|
@@ -2007,7 +2007,7 @@ function kc(e) {
|
|
|
2007
2007
|
return Ui(e), e.headers = gn.from(e.headers), e.data = Hi.call(
|
|
2008
2008
|
e,
|
|
2009
2009
|
e.transformRequest
|
|
2010
|
-
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), wd.getAdapter(e.adapter ||
|
|
2010
|
+
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), wd.getAdapter(e.adapter || Wo.adapter, e)(e).then(function(r) {
|
|
2011
2011
|
return Ui(e), r.data = Hi.call(
|
|
2012
2012
|
e,
|
|
2013
2013
|
e.transformResponse,
|
|
@@ -2349,7 +2349,7 @@ function Cd(e) {
|
|
|
2349
2349
|
return Cd(Ar(e, o));
|
|
2350
2350
|
}, n;
|
|
2351
2351
|
}
|
|
2352
|
-
const $t = Cd(
|
|
2352
|
+
const $t = Cd(Wo);
|
|
2353
2353
|
$t.Axios = Ir;
|
|
2354
2354
|
$t.CanceledError = ao;
|
|
2355
2355
|
$t.CancelToken = fy;
|
|
@@ -2529,7 +2529,7 @@ class by {
|
|
|
2529
2529
|
return (r == null ? void 0 : r.items) ?? [];
|
|
2530
2530
|
}
|
|
2531
2531
|
}
|
|
2532
|
-
const _r = new by(), Td =
|
|
2532
|
+
const _r = new by(), Td = zo(null);
|
|
2533
2533
|
function Sy({ children: e, apiConfig: t }) {
|
|
2534
2534
|
const n = _r;
|
|
2535
2535
|
if (t) {
|
|
@@ -2710,7 +2710,7 @@ function jy(e, t) {
|
|
|
2710
2710
|
const o = r.id || `task-${t}-${n}`;
|
|
2711
2711
|
if (Array.isArray(r.interrupts) && r.interrupts.length)
|
|
2712
2712
|
for (let s = r.interrupts.length - 1; s >= 0; s--) {
|
|
2713
|
-
const i =
|
|
2713
|
+
const i = bo(
|
|
2714
2714
|
r.interrupts[s],
|
|
2715
2715
|
`${o}-interrupt-${s}`
|
|
2716
2716
|
);
|
|
@@ -2718,7 +2718,7 @@ function jy(e, t) {
|
|
|
2718
2718
|
return i;
|
|
2719
2719
|
}
|
|
2720
2720
|
if (r.state !== void 0 && r.state !== null) {
|
|
2721
|
-
const s =
|
|
2721
|
+
const s = bo(r.state, `${o}-state`);
|
|
2722
2722
|
if (s)
|
|
2723
2723
|
return s;
|
|
2724
2724
|
}
|
|
@@ -2736,7 +2736,7 @@ function Py(e, t) {
|
|
|
2736
2736
|
const r = zt(n, ["id", "task_id", "taskId"]) ?? t, o = zt(n, ["name"]) ?? "task", s = Array.isArray(n.interrupts) ? n.interrupts : void 0, i = Object.prototype.hasOwnProperty.call(n, "state") ? n.state : void 0;
|
|
2737
2737
|
return { id: r, name: o, interrupts: s, state: i };
|
|
2738
2738
|
}
|
|
2739
|
-
function
|
|
2739
|
+
function bo(e, t, n = 0, r = /* @__PURE__ */ new Set()) {
|
|
2740
2740
|
if (n > 6 || e == null)
|
|
2741
2741
|
return null;
|
|
2742
2742
|
if (typeof e == "object") {
|
|
@@ -2749,7 +2749,7 @@ function So(e, t, n = 0, r = /* @__PURE__ */ new Set()) {
|
|
|
2749
2749
|
return o;
|
|
2750
2750
|
if (Array.isArray(e)) {
|
|
2751
2751
|
for (let s = e.length - 1; s >= 0; s--) {
|
|
2752
|
-
const i =
|
|
2752
|
+
const i = bo(e[s], t, n + 1, r);
|
|
2753
2753
|
if (i)
|
|
2754
2754
|
return i;
|
|
2755
2755
|
}
|
|
@@ -2768,14 +2768,14 @@ function So(e, t, n = 0, r = /* @__PURE__ */ new Set()) {
|
|
|
2768
2768
|
];
|
|
2769
2769
|
for (const a of i)
|
|
2770
2770
|
if (a in s) {
|
|
2771
|
-
const l =
|
|
2771
|
+
const l = bo(s[a], t, n + 1, r);
|
|
2772
2772
|
if (l)
|
|
2773
2773
|
return l;
|
|
2774
2774
|
}
|
|
2775
2775
|
for (const [a, l] of Object.entries(s)) {
|
|
2776
2776
|
if (i.includes(a) || a === "messages" || a === "results")
|
|
2777
2777
|
continue;
|
|
2778
|
-
const c =
|
|
2778
|
+
const c = bo(l, t, n + 1, r);
|
|
2779
2779
|
if (c)
|
|
2780
2780
|
return c;
|
|
2781
2781
|
}
|
|
@@ -4186,7 +4186,7 @@ function yv({ currentThreadId: e, currentThreadIdRef: t }) {
|
|
|
4186
4186
|
getSnapshotFromCache: p
|
|
4187
4187
|
};
|
|
4188
4188
|
}
|
|
4189
|
-
const Pd =
|
|
4189
|
+
const Pd = zo(null), Od = zo(null), Md = zo(null), vv = zo(!1);
|
|
4190
4190
|
function wv({
|
|
4191
4191
|
children: e,
|
|
4192
4192
|
initialThreadId: t = null,
|
|
@@ -4235,7 +4235,7 @@ function wv({
|
|
|
4235
4235
|
return os(R);
|
|
4236
4236
|
}), b = ct(() => Ji(T), [T]), [k, A] = we(t), [N, _] = we(!1), [M, $] = we(!1), [z, P] = we(null), [B, j] = we(null), [W, F] = we(null), L = de(() => {
|
|
4237
4237
|
const R = Xi(w);
|
|
4238
|
-
|
|
4238
|
+
es(() => {
|
|
4239
4239
|
C(os(R));
|
|
4240
4240
|
});
|
|
4241
4241
|
}, [w]), [ne, Q] = we(!1), [ge, _e] = we(!1), [J, ue] = we(null), [ke, ee] = we(void 0), [D, q] = we(void 0), [ie, ce] = we(void 0), {
|
|
@@ -4357,14 +4357,16 @@ function wv({
|
|
|
4357
4357
|
R || _(!0);
|
|
4358
4358
|
try {
|
|
4359
4359
|
const I = await c.listThreads();
|
|
4360
|
-
|
|
4360
|
+
es(() => {
|
|
4361
4361
|
C((U) => {
|
|
4362
4362
|
const K = (ht) => ht.map((bt) => `${bt.threadId}:${bt.updatedAt ?? ""}:${bt.messageCount ?? ""}`).join("|"), he = Ji(U);
|
|
4363
4363
|
return K(he) === K(I) || I.length === 0 && he.length > 0 && !xt.current ? U : os(I);
|
|
4364
|
-
})
|
|
4364
|
+
});
|
|
4365
4365
|
}), P(null), xt.current || (xt.current = !0);
|
|
4366
4366
|
} catch (I) {
|
|
4367
|
-
i == null || i(String(I)), console.error("[ChatSessionProvider] Failed to refresh threads:", I), P(String(I))
|
|
4367
|
+
i == null || i(String(I)), console.error("[ChatSessionProvider] Failed to refresh threads:", I), P(String(I));
|
|
4368
|
+
} finally {
|
|
4369
|
+
R || _(!1);
|
|
4368
4370
|
}
|
|
4369
4371
|
}, [c, i]), Me = Ee(!1), Kt = Ee(null), Le = Ee(null), wt = Ee(""), [jn, Lt] = we("idle"), un = Ee({
|
|
4370
4372
|
attempts: 0,
|
|
@@ -4525,7 +4527,7 @@ function wv({
|
|
|
4525
4527
|
updatedAt: R.updatedAt || (/* @__PURE__ */ new Date()).toISOString(),
|
|
4526
4528
|
messageCount: R.messageCount || 0
|
|
4527
4529
|
};
|
|
4528
|
-
Ce.current !== I && (!Ce.current && H.messages.length <= 1 && (Je.current = I), A(I)),
|
|
4530
|
+
Ce.current !== I && (!Ce.current && H.messages.length <= 1 && (Je.current = I), A(I)), es(() => {
|
|
4529
4531
|
C((K) => {
|
|
4530
4532
|
const he = K.byId[I];
|
|
4531
4533
|
return he ? he.title === U.title && he.updatedAt === U.updatedAt && he.messageCount === U.messageCount ? K : {
|
|
@@ -4700,7 +4702,7 @@ function wv({
|
|
|
4700
4702
|
const le = Yi(h, he);
|
|
4701
4703
|
kt.current !== le && (kt.current = le, Mt.current = !1), S(le);
|
|
4702
4704
|
const ht = Xi(le);
|
|
4703
|
-
|
|
4705
|
+
es(() => {
|
|
4704
4706
|
C(os(ht));
|
|
4705
4707
|
}), he && !Mt.current && (Mt.current = !0);
|
|
4706
4708
|
};
|
|
@@ -4764,7 +4766,7 @@ function wv({
|
|
|
4764
4766
|
}
|
|
4765
4767
|
},
|
|
4766
4768
|
[c, _t, Oe, dt, Te]
|
|
4767
|
-
),
|
|
4769
|
+
), Zo = de(
|
|
4768
4770
|
async (R, I) => {
|
|
4769
4771
|
try {
|
|
4770
4772
|
await c.updateThread(R, I), C((U) => {
|
|
@@ -4811,9 +4813,7 @@ function wv({
|
|
|
4811
4813
|
{ threadId: R, checkpointId: I, checkpointNs: U },
|
|
4812
4814
|
{ force: K }
|
|
4813
4815
|
), { latest: tr, checkpoints: Cr, snapshots: Vr } = Os(Ot.payload);
|
|
4814
|
-
|
|
4815
|
-
Ge(tr, "replace", R), Yt(R, Cr, "replace"), Xt(R, Vr, "replace"), j(null), qt && $(!1);
|
|
4816
|
-
}), Ot.usedHistoryApi || ae(R).then((Cn) => {
|
|
4816
|
+
Ge(tr, "replace", R), Yt(R, Cr, "replace"), Xt(R, Vr, "replace"), j(null), Ot.usedHistoryApi || ae(R).then((Cn) => {
|
|
4817
4817
|
Jt(R, Cn);
|
|
4818
4818
|
}).catch((Cn) => {
|
|
4819
4819
|
console.warn("[ChatSessionProvider] Failed to refresh checkpoint summaries:", Cn);
|
|
@@ -4831,7 +4831,7 @@ function wv({
|
|
|
4831
4831
|
}
|
|
4832
4832
|
throw (!Wt || K || qt) && (i == null || i(String(Ot))), j(String(Ot)), Ot;
|
|
4833
4833
|
} finally {
|
|
4834
|
-
Qe.current = null;
|
|
4834
|
+
Qe.current = null, qt && $(!1);
|
|
4835
4835
|
}
|
|
4836
4836
|
};
|
|
4837
4837
|
fn ? await Wn(!0) : Et && Wt && !Be && Wn(!1).catch((qt) => {
|
|
@@ -4851,7 +4851,7 @@ function wv({
|
|
|
4851
4851
|
Yt,
|
|
4852
4852
|
Xt
|
|
4853
4853
|
]
|
|
4854
|
-
),
|
|
4854
|
+
), Qo = de(async () => {
|
|
4855
4855
|
await ve(async () => {
|
|
4856
4856
|
const R = Ce.current;
|
|
4857
4857
|
R && Oe(R), Je.current = null, A(null), Ce.current = null, et.current = null, _t(), ee(void 0), q(void 0), ce(void 0), ft();
|
|
@@ -5049,7 +5049,9 @@ function wv({
|
|
|
5049
5049
|
}
|
|
5050
5050
|
}, [k, l]), St(() => ((async () => {
|
|
5051
5051
|
try {
|
|
5052
|
-
if (
|
|
5052
|
+
if (dt().catch((I) => {
|
|
5053
|
+
console.error("[ChatSessionProvider] Failed to refresh threads (background):", I), i == null || i(String(I));
|
|
5054
|
+
}), !r && !t)
|
|
5053
5055
|
try {
|
|
5054
5056
|
const I = localStorage.getItem("lastThreadId");
|
|
5055
5057
|
I && (A(I), n && await Sn(I));
|
|
@@ -5112,7 +5114,7 @@ function wv({
|
|
|
5112
5114
|
actions: {
|
|
5113
5115
|
createThread: Un,
|
|
5114
5116
|
deleteThread: po,
|
|
5115
|
-
renameThread:
|
|
5117
|
+
renameThread: Zo,
|
|
5116
5118
|
refreshThreads: () => dt()
|
|
5117
5119
|
},
|
|
5118
5120
|
persistThreadsCache: Ye,
|
|
@@ -5125,7 +5127,7 @@ function wv({
|
|
|
5125
5127
|
z,
|
|
5126
5128
|
Un,
|
|
5127
5129
|
po,
|
|
5128
|
-
|
|
5130
|
+
Zo,
|
|
5129
5131
|
dt,
|
|
5130
5132
|
Ye,
|
|
5131
5133
|
L,
|
|
@@ -5157,11 +5159,11 @@ function wv({
|
|
|
5157
5159
|
navigateToCheckpoint: ec,
|
|
5158
5160
|
returnToLatest: tc,
|
|
5159
5161
|
loadThread: Sn,
|
|
5160
|
-
clearThread:
|
|
5162
|
+
clearThread: Qo,
|
|
5161
5163
|
respondToInterrupt: oc
|
|
5162
5164
|
};
|
|
5163
5165
|
}, [
|
|
5164
|
-
|
|
5166
|
+
Qo,
|
|
5165
5167
|
_t,
|
|
5166
5168
|
k,
|
|
5167
5169
|
W,
|
|
@@ -6124,7 +6126,7 @@ const iw = async (e, t, n) => {
|
|
|
6124
6126
|
middlewareData: p
|
|
6125
6127
|
};
|
|
6126
6128
|
};
|
|
6127
|
-
async function
|
|
6129
|
+
async function No(e, t) {
|
|
6128
6130
|
var n;
|
|
6129
6131
|
t === void 0 && (t = {});
|
|
6130
6132
|
const {
|
|
@@ -6232,7 +6234,7 @@ const aw = (e) => ({
|
|
|
6232
6234
|
return {};
|
|
6233
6235
|
const y = ir(o), w = Gn(a), S = ir(a) === a, T = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), C = h || (S || !g ? [Ds(a)] : ew(a)), b = m !== "none";
|
|
6234
6236
|
!h && b && C.push(...ow(a, g, m, T));
|
|
6235
|
-
const k = [a, ...C], A = await
|
|
6237
|
+
const k = [a, ...C], A = await No(t, x), N = [];
|
|
6236
6238
|
let _ = ((r = s.flip) == null ? void 0 : r.overflows) || [];
|
|
6237
6239
|
if (d && N.push(A[y]), f) {
|
|
6238
6240
|
const P = Qv(o, i, T);
|
|
@@ -6312,7 +6314,7 @@ const cw = function(e) {
|
|
|
6312
6314
|
} = sr(e, t);
|
|
6313
6315
|
switch (r) {
|
|
6314
6316
|
case "referenceHidden": {
|
|
6315
|
-
const s = await
|
|
6317
|
+
const s = await No(t, {
|
|
6316
6318
|
...o,
|
|
6317
6319
|
elementContext: "reference"
|
|
6318
6320
|
}), i = eu(s, n.reference);
|
|
@@ -6324,7 +6326,7 @@ const cw = function(e) {
|
|
|
6324
6326
|
};
|
|
6325
6327
|
}
|
|
6326
6328
|
case "escaped": {
|
|
6327
|
-
const s = await
|
|
6329
|
+
const s = await No(t, {
|
|
6328
6330
|
...o,
|
|
6329
6331
|
altBoundary: !0
|
|
6330
6332
|
}), i = eu(s, n.floating);
|
|
@@ -6418,7 +6420,7 @@ const dw = function(e) {
|
|
|
6418
6420
|
} = sr(e, t), c = {
|
|
6419
6421
|
x: n,
|
|
6420
6422
|
y: r
|
|
6421
|
-
}, d = await
|
|
6423
|
+
}, d = await No(t, l), f = Gn(ir(o)), h = pl(f);
|
|
6422
6424
|
let p = c[h], m = c[f];
|
|
6423
6425
|
if (s) {
|
|
6424
6426
|
const x = h === "y" ? "top" : "left", y = h === "y" ? "bottom" : "right", w = p + d[x], S = p - d[y];
|
|
@@ -6503,7 +6505,7 @@ const dw = function(e) {
|
|
|
6503
6505
|
apply: l = () => {
|
|
6504
6506
|
},
|
|
6505
6507
|
...c
|
|
6506
|
-
} = sr(e, t), d = await
|
|
6508
|
+
} = sr(e, t), d = await No(t, c), f = ir(o), h = lo(o), p = Gn(o) === "y", {
|
|
6507
6509
|
width: m,
|
|
6508
6510
|
height: g
|
|
6509
6511
|
} = s.floating;
|
|
@@ -6556,7 +6558,7 @@ function nu(e) {
|
|
|
6556
6558
|
return !fi() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof wn(e).ShadowRoot;
|
|
6557
6559
|
}
|
|
6558
6560
|
const mw = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
6559
|
-
function
|
|
6561
|
+
function Vo(e) {
|
|
6560
6562
|
const {
|
|
6561
6563
|
overflow: t,
|
|
6562
6564
|
overflowX: n,
|
|
@@ -6628,17 +6630,17 @@ function fr(e) {
|
|
|
6628
6630
|
}
|
|
6629
6631
|
function Wd(e) {
|
|
6630
6632
|
const t = fr(e);
|
|
6631
|
-
return oo(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Jn(t) &&
|
|
6633
|
+
return oo(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Jn(t) && Vo(t) ? t : Wd(t);
|
|
6632
6634
|
}
|
|
6633
|
-
function
|
|
6635
|
+
function Ao(e, t, n) {
|
|
6634
6636
|
var r;
|
|
6635
6637
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
6636
6638
|
const o = Wd(e), s = o === ((r = e.ownerDocument) == null ? void 0 : r.body), i = wn(o);
|
|
6637
6639
|
if (s) {
|
|
6638
6640
|
const a = Oa(i);
|
|
6639
|
-
return t.concat(i, i.visualViewport || [],
|
|
6641
|
+
return t.concat(i, i.visualViewport || [], Vo(o) ? o : [], a && n ? Ao(a) : []);
|
|
6640
6642
|
}
|
|
6641
|
-
return t.concat(o,
|
|
6643
|
+
return t.concat(o, Ao(o, [], n));
|
|
6642
6644
|
}
|
|
6643
6645
|
function Oa(e) {
|
|
6644
6646
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
@@ -6730,7 +6732,7 @@ function Rw(e) {
|
|
|
6730
6732
|
scrollTop: 0
|
|
6731
6733
|
}, c = Xn(1);
|
|
6732
6734
|
const d = Xn(0), f = Jn(r);
|
|
6733
|
-
if ((f || !f && !s) && ((co(r) !== "body" ||
|
|
6735
|
+
if ((f || !f && !s) && ((co(r) !== "body" || Vo(i)) && (l = pi(r)), Jn(r))) {
|
|
6734
6736
|
const p = Pr(r);
|
|
6735
6737
|
c = Jr(r), d.x = p.x + r.clientLeft, d.y = p.y + r.clientTop;
|
|
6736
6738
|
}
|
|
@@ -6814,12 +6816,12 @@ function jw(e, t) {
|
|
|
6814
6816
|
const n = t.get(e);
|
|
6815
6817
|
if (n)
|
|
6816
6818
|
return n;
|
|
6817
|
-
let r =
|
|
6819
|
+
let r = Ao(e, [], !1).filter((a) => Fn(a) && co(a) !== "body"), o = null;
|
|
6818
6820
|
const s = $n(e).position === "fixed";
|
|
6819
6821
|
let i = s ? fr(e) : e;
|
|
6820
6822
|
for (; Fn(i) && !oo(i); ) {
|
|
6821
6823
|
const a = $n(i), l = xl(i);
|
|
6822
|
-
!l && a.position === "fixed" && (o = null), (s ? !l && !o : !l && a.position === "static" && !!o && Aw.has(o.position) ||
|
|
6824
|
+
!l && a.position === "fixed" && (o = null), (s ? !l && !o : !l && a.position === "static" && !!o && Aw.has(o.position) || Vo(i) && !l && Gd(e, i)) ? r = r.filter((d) => d !== i) : o = a, i = fr(i);
|
|
6823
6825
|
}
|
|
6824
6826
|
return t.set(e, r), r;
|
|
6825
6827
|
}
|
|
@@ -6862,7 +6864,7 @@ function Mw(e, t, n) {
|
|
|
6862
6864
|
l.x = mi(o);
|
|
6863
6865
|
}
|
|
6864
6866
|
if (r || !r && !s)
|
|
6865
|
-
if ((co(t) !== "body" ||
|
|
6867
|
+
if ((co(t) !== "body" || Vo(o)) && (a = pi(t)), r) {
|
|
6866
6868
|
const p = Pr(t, !0, s, t);
|
|
6867
6869
|
l.x = p.x + t.clientLeft, l.y = p.y + t.clientTop;
|
|
6868
6870
|
} else o && c();
|
|
@@ -6988,7 +6990,7 @@ function zw(e, t, n, r) {
|
|
|
6988
6990
|
elementResize: i = typeof ResizeObserver == "function",
|
|
6989
6991
|
layoutShift: a = typeof IntersectionObserver == "function",
|
|
6990
6992
|
animationFrame: l = !1
|
|
6991
|
-
} = r, c = vl(e), d = o || s ? [...c ?
|
|
6993
|
+
} = r, c = vl(e), d = o || s ? [...c ? Ao(c) : [], ...Ao(t)] : [];
|
|
6992
6994
|
d.forEach((y) => {
|
|
6993
6995
|
o && y.addEventListener("scroll", n, {
|
|
6994
6996
|
passive: !0
|
|
@@ -7529,13 +7531,13 @@ function gb(e) {
|
|
|
7529
7531
|
let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
7530
7532
|
return n ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
7531
7533
|
}
|
|
7532
|
-
var oa = "rovingFocusGroup.onEntryFocus", xb = { bubbles: !1, cancelable: !0 },
|
|
7533
|
-
|
|
7534
|
+
var oa = "rovingFocusGroup.onEntryFocus", xb = { bubbles: !1, cancelable: !0 }, Ko = "RovingFocusGroup", [Ma, pf, yb] = fl(Ko), [vb, mf] = ar(
|
|
7535
|
+
Ko,
|
|
7534
7536
|
[yb]
|
|
7535
|
-
), [wb, bb] = vb(
|
|
7537
|
+
), [wb, bb] = vb(Ko), gf = v.forwardRef(
|
|
7536
7538
|
(e, t) => /* @__PURE__ */ u.jsx(Ma.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ u.jsx(Ma.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ u.jsx(Sb, { ...e, ref: t }) }) })
|
|
7537
7539
|
);
|
|
7538
|
-
gf.displayName =
|
|
7540
|
+
gf.displayName = Ko;
|
|
7539
7541
|
var Sb = v.forwardRef((e, t) => {
|
|
7540
7542
|
const {
|
|
7541
7543
|
__scopeRovingFocusGroup: n,
|
|
@@ -7552,7 +7554,7 @@ var Sb = v.forwardRef((e, t) => {
|
|
|
7552
7554
|
prop: i,
|
|
7553
7555
|
defaultProp: a ?? null,
|
|
7554
7556
|
onChange: l,
|
|
7555
|
-
caller:
|
|
7557
|
+
caller: Ko
|
|
7556
7558
|
}), [y, w] = v.useState(!1), S = en(c), T = pf(n), C = v.useRef(!1), [b, k] = v.useState(0);
|
|
7557
7559
|
return v.useEffect(() => {
|
|
7558
7560
|
const A = h.current;
|
|
@@ -8219,11 +8221,11 @@ var La = ["Enter", " "], p0 = ["ArrowDown", "PageUp", "Home"], If = ["ArrowUp",
|
|
|
8219
8221
|
}, x0 = {
|
|
8220
8222
|
ltr: ["ArrowLeft"],
|
|
8221
8223
|
rtl: ["ArrowRight"]
|
|
8222
|
-
},
|
|
8224
|
+
}, qo = "Menu", [_o, y0, v0] = fl(qo), [Fr, Nf] = ar(qo, [
|
|
8223
8225
|
v0,
|
|
8224
8226
|
gi,
|
|
8225
8227
|
mf
|
|
8226
|
-
]), wi = gi(), Af = mf(), [w0, $r] = Fr(
|
|
8228
|
+
]), wi = gi(), Af = mf(), [w0, $r] = Fr(qo), [b0, Go] = Fr(qo), _f = (e) => {
|
|
8227
8229
|
const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: s, modal: i = !0 } = e, a = wi(t), [l, c] = v.useState(null), d = v.useRef(!1), f = en(s), h = ci(o);
|
|
8228
8230
|
return v.useEffect(() => {
|
|
8229
8231
|
const p = () => {
|
|
@@ -8254,7 +8256,7 @@ var La = ["Enter", " "], p0 = ["ArrowDown", "PageUp", "Home"], If = ["ArrowUp",
|
|
|
8254
8256
|
}
|
|
8255
8257
|
) });
|
|
8256
8258
|
};
|
|
8257
|
-
_f.displayName =
|
|
8259
|
+
_f.displayName = qo;
|
|
8258
8260
|
var S0 = "MenuAnchor", Cl = v.forwardRef(
|
|
8259
8261
|
(e, t) => {
|
|
8260
8262
|
const { __scopeMenu: n, ...r } = e, o = wi(n);
|
|
@@ -8271,8 +8273,8 @@ var Tl = "MenuPortal", [C0, jf] = Fr(Tl, {
|
|
|
8271
8273
|
Pf.displayName = Tl;
|
|
8272
8274
|
var In = "MenuContent", [T0, kl] = Fr(In), Of = v.forwardRef(
|
|
8273
8275
|
(e, t) => {
|
|
8274
|
-
const n = jf(In, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = $r(In, e.__scopeMenu), i =
|
|
8275
|
-
return /* @__PURE__ */ u.jsx(
|
|
8276
|
+
const n = jf(In, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = $r(In, e.__scopeMenu), i = Go(In, e.__scopeMenu);
|
|
8277
|
+
return /* @__PURE__ */ u.jsx(_o.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ u.jsx(An, { present: r || s.open, children: /* @__PURE__ */ u.jsx(_o.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ u.jsx(k0, { ...o, ref: t }) : /* @__PURE__ */ u.jsx(R0, { ...o, ref: t }) }) }) });
|
|
8276
8278
|
}
|
|
8277
8279
|
), k0 = v.forwardRef(
|
|
8278
8280
|
(e, t) => {
|
|
@@ -8327,7 +8329,7 @@ var In = "MenuContent", [T0, kl] = Fr(In), Of = v.forwardRef(
|
|
|
8327
8329
|
onDismiss: p,
|
|
8328
8330
|
disableOutsideScroll: m,
|
|
8329
8331
|
...g
|
|
8330
|
-
} = e, x = $r(In, n), y =
|
|
8332
|
+
} = e, x = $r(In, n), y = Go(In, n), w = wi(n), S = Af(n), T = y0(n), [C, b] = v.useState(null), k = v.useRef(null), A = rt(t, k, x.onContentChange), N = v.useRef(0), _ = v.useRef(""), M = v.useRef(0), $ = v.useRef(null), z = v.useRef("right"), P = v.useRef(0), B = m ? vi : v.Fragment, j = m ? { as: E0, allowPinchZoom: !0 } : void 0, W = (L) => {
|
|
8331
8333
|
var ee, D;
|
|
8332
8334
|
const ne = _.current + L, Q = T().filter((q) => !q.disabled), ge = document.activeElement, _e = (ee = Q.find((q) => q.ref.current === ge)) == null ? void 0 : ee.textValue, J = Q.map((q) => q.textValue), ue = $0(J, ne, _e), ke = (D = Q.find((q) => q.textValue === ue)) == null ? void 0 : D.ref.current;
|
|
8333
8335
|
(function q(ie) {
|
|
@@ -8427,7 +8429,7 @@ var In = "MenuContent", [T0, kl] = Fr(In), Of = v.forwardRef(
|
|
|
8427
8429
|
}),
|
|
8428
8430
|
onPointerMove: xe(
|
|
8429
8431
|
e.onPointerMove,
|
|
8430
|
-
|
|
8432
|
+
jo((L) => {
|
|
8431
8433
|
const ne = L.target, Q = P.current !== L.clientX;
|
|
8432
8434
|
if (L.currentTarget.contains(ne) && Q) {
|
|
8433
8435
|
const ge = L.clientX > P.current ? "right" : "left";
|
|
@@ -8464,7 +8466,7 @@ var N0 = "MenuLabel", Mf = v.forwardRef(
|
|
|
8464
8466
|
Mf.displayName = N0;
|
|
8465
8467
|
var $s = "MenuItem", hu = "menu.itemSelect", bi = v.forwardRef(
|
|
8466
8468
|
(e, t) => {
|
|
8467
|
-
const { disabled: n = !1, onSelect: r, ...o } = e, s = v.useRef(null), i =
|
|
8469
|
+
const { disabled: n = !1, onSelect: r, ...o } = e, s = v.useRef(null), i = Go($s, e.__scopeMenu), a = kl($s, e.__scopeMenu), l = rt(t, s), c = v.useRef(!1), d = () => {
|
|
8468
8470
|
const f = s.current;
|
|
8469
8471
|
if (!n && f) {
|
|
8470
8472
|
const h = new CustomEvent(hu, { bubbles: !0, cancelable: !0 });
|
|
@@ -8502,7 +8504,7 @@ var Df = v.forwardRef(
|
|
|
8502
8504
|
const m = l.current;
|
|
8503
8505
|
m && p((m.textContent ?? "").trim());
|
|
8504
8506
|
}, [s.children]), /* @__PURE__ */ u.jsx(
|
|
8505
|
-
|
|
8507
|
+
_o.ItemSlot,
|
|
8506
8508
|
{
|
|
8507
8509
|
scope: n,
|
|
8508
8510
|
disabled: r,
|
|
@@ -8518,13 +8520,13 @@ var Df = v.forwardRef(
|
|
|
8518
8520
|
ref: c,
|
|
8519
8521
|
onPointerMove: xe(
|
|
8520
8522
|
e.onPointerMove,
|
|
8521
|
-
|
|
8523
|
+
jo((m) => {
|
|
8522
8524
|
r ? i.onItemLeave(m) : (i.onItemEnter(m), m.defaultPrevented || m.currentTarget.focus({ preventScroll: !0 }));
|
|
8523
8525
|
})
|
|
8524
8526
|
),
|
|
8525
8527
|
onPointerLeave: xe(
|
|
8526
8528
|
e.onPointerLeave,
|
|
8527
|
-
|
|
8529
|
+
jo((m) => i.onItemLeave(m))
|
|
8528
8530
|
),
|
|
8529
8531
|
onFocus: xe(e.onFocus, () => f(!0)),
|
|
8530
8532
|
onBlur: xe(e.onBlur, () => f(!1))
|
|
@@ -8634,9 +8636,9 @@ var M0 = "MenuArrow", Vf = v.forwardRef(
|
|
|
8634
8636
|
}
|
|
8635
8637
|
);
|
|
8636
8638
|
Vf.displayName = M0;
|
|
8637
|
-
var D0 = "MenuSub", [zR, Kf] = Fr(D0),
|
|
8639
|
+
var D0 = "MenuSub", [zR, Kf] = Fr(D0), vo = "MenuSubTrigger", qf = v.forwardRef(
|
|
8638
8640
|
(e, t) => {
|
|
8639
|
-
const n = $r(
|
|
8641
|
+
const n = $r(vo, e.__scopeMenu), r = Go(vo, e.__scopeMenu), o = Kf(vo, e.__scopeMenu), s = kl(vo, e.__scopeMenu), i = v.useRef(null), { pointerGraceTimerRef: a, onPointerGraceIntentChange: l } = s, c = { __scopeMenu: e.__scopeMenu }, d = v.useCallback(() => {
|
|
8640
8642
|
i.current && window.clearTimeout(i.current), i.current = null;
|
|
8641
8643
|
}, []);
|
|
8642
8644
|
return v.useEffect(() => d, [d]), v.useEffect(() => {
|
|
@@ -8660,7 +8662,7 @@ var D0 = "MenuSub", [zR, Kf] = Fr(D0), wo = "MenuSubTrigger", qf = v.forwardRef(
|
|
|
8660
8662
|
},
|
|
8661
8663
|
onPointerMove: xe(
|
|
8662
8664
|
e.onPointerMove,
|
|
8663
|
-
|
|
8665
|
+
jo((f) => {
|
|
8664
8666
|
s.onItemEnter(f), !f.defaultPrevented && !e.disabled && !n.open && !i.current && (s.onPointerGraceIntentChange(null), i.current = window.setTimeout(() => {
|
|
8665
8667
|
n.onOpenChange(!0), d();
|
|
8666
8668
|
}, 100));
|
|
@@ -8668,7 +8670,7 @@ var D0 = "MenuSub", [zR, Kf] = Fr(D0), wo = "MenuSubTrigger", qf = v.forwardRef(
|
|
|
8668
8670
|
),
|
|
8669
8671
|
onPointerLeave: xe(
|
|
8670
8672
|
e.onPointerLeave,
|
|
8671
|
-
|
|
8673
|
+
jo((f) => {
|
|
8672
8674
|
var p, m;
|
|
8673
8675
|
d();
|
|
8674
8676
|
const h = (p = n.content) == null ? void 0 : p.getBoundingClientRect();
|
|
@@ -8704,11 +8706,11 @@ var D0 = "MenuSub", [zR, Kf] = Fr(D0), wo = "MenuSubTrigger", qf = v.forwardRef(
|
|
|
8704
8706
|
) });
|
|
8705
8707
|
}
|
|
8706
8708
|
);
|
|
8707
|
-
qf.displayName =
|
|
8709
|
+
qf.displayName = vo;
|
|
8708
8710
|
var Gf = "MenuSubContent", Yf = v.forwardRef(
|
|
8709
8711
|
(e, t) => {
|
|
8710
|
-
const n = jf(In, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = $r(In, e.__scopeMenu), i =
|
|
8711
|
-
return /* @__PURE__ */ u.jsx(
|
|
8712
|
+
const n = jf(In, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = $r(In, e.__scopeMenu), i = Go(In, e.__scopeMenu), a = Kf(Gf, e.__scopeMenu), l = v.useRef(null), c = rt(t, l);
|
|
8713
|
+
return /* @__PURE__ */ u.jsx(_o.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ u.jsx(An, { present: r || s.open, children: /* @__PURE__ */ u.jsx(_o.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ u.jsx(
|
|
8712
8714
|
Rl,
|
|
8713
8715
|
{
|
|
8714
8716
|
id: a.contentId,
|
|
@@ -8781,7 +8783,7 @@ function B0(e, t) {
|
|
|
8781
8783
|
const n = { x: e.clientX, y: e.clientY };
|
|
8782
8784
|
return z0(n, t);
|
|
8783
8785
|
}
|
|
8784
|
-
function
|
|
8786
|
+
function jo(e) {
|
|
8785
8787
|
return (t) => t.pointerType === "mouse" ? e(t) : void 0;
|
|
8786
8788
|
}
|
|
8787
8789
|
var H0 = _f, U0 = Cl, W0 = Pf, V0 = Of, K0 = El, q0 = Mf, G0 = bi, Y0 = Lf, X0 = $f, J0 = Bf, Z0 = Uf, Q0 = Wf, eS = Vf, tS = qf, nS = Yf, Si = "DropdownMenu", [rS, BR] = ar(
|
|
@@ -9527,7 +9529,7 @@ const cn = ut(
|
|
|
9527
9529
|
},
|
|
9528
9530
|
[],
|
|
9529
9531
|
{ singleton: !0 }
|
|
9530
|
-
),
|
|
9532
|
+
), Po = { lvl: 0 };
|
|
9531
9533
|
function Rh(e, t) {
|
|
9532
9534
|
const n = e.length;
|
|
9533
9535
|
if (n === 0)
|
|
@@ -9541,11 +9543,11 @@ function Rh(e, t) {
|
|
|
9541
9543
|
return s.push({ end: 1 / 0, start: r, value: o }), s;
|
|
9542
9544
|
}
|
|
9543
9545
|
function Ct(e) {
|
|
9544
|
-
return e ===
|
|
9546
|
+
return e === Po;
|
|
9545
9547
|
}
|
|
9546
|
-
function
|
|
9548
|
+
function Oo(e, t) {
|
|
9547
9549
|
if (!Ct(e))
|
|
9548
|
-
return t === e.k ? e.v : t < e.k ?
|
|
9550
|
+
return t === e.k ? e.v : t < e.k ? Oo(e.l, t) : Oo(e.r, t);
|
|
9549
9551
|
}
|
|
9550
9552
|
function zn(e, t, n = "k") {
|
|
9551
9553
|
if (Ct(e))
|
|
@@ -9562,7 +9564,7 @@ function vn(e, t, n) {
|
|
|
9562
9564
|
return Ct(e) ? Nh(t, n, 1) : t === e.k ? Vt(e, { k: t, v: n }) : t < e.k ? yu(Vt(e, { l: vn(e.l, t, n) })) : yu(Vt(e, { r: vn(e.r, t, n) }));
|
|
9563
9565
|
}
|
|
9564
9566
|
function Qr() {
|
|
9565
|
-
return
|
|
9567
|
+
return Po;
|
|
9566
9568
|
}
|
|
9567
9569
|
function ki(e, t, n) {
|
|
9568
9570
|
if (Ct(e))
|
|
@@ -9571,7 +9573,7 @@ function ki(e, t, n) {
|
|
|
9571
9573
|
return KS(Ba(e, r, n));
|
|
9572
9574
|
}
|
|
9573
9575
|
function za(e, t) {
|
|
9574
|
-
if (Ct(e)) return
|
|
9576
|
+
if (Ct(e)) return Po;
|
|
9575
9577
|
const { k: n, l: r, r: o } = e;
|
|
9576
9578
|
if (t === n) {
|
|
9577
9579
|
if (Ct(r))
|
|
@@ -9646,7 +9648,7 @@ function ca(e) {
|
|
|
9646
9648
|
function Ih(e) {
|
|
9647
9649
|
return Ct(e.r) ? [e.k, e.v] : Ih(e.r);
|
|
9648
9650
|
}
|
|
9649
|
-
function Nh(e, t, n, r =
|
|
9651
|
+
function Nh(e, t, n, r = Po, o = Po) {
|
|
9650
9652
|
return { k: e, l: r, lvl: n, r: o, v: t };
|
|
9651
9653
|
}
|
|
9652
9654
|
function yu(e) {
|
|
@@ -9666,7 +9668,7 @@ function KS(e) {
|
|
|
9666
9668
|
function _h(e, t) {
|
|
9667
9669
|
return !!(e && e.startIndex === t.startIndex && e.endIndex === t.endIndex);
|
|
9668
9670
|
}
|
|
9669
|
-
function
|
|
9671
|
+
function Mo(e, t) {
|
|
9670
9672
|
return !!(e && e[0] === t[0] && e[1] === t[1]);
|
|
9671
9673
|
}
|
|
9672
9674
|
const Pl = ut(
|
|
@@ -9743,7 +9745,7 @@ function XS(e) {
|
|
|
9743
9745
|
function JS({ offset: e }, t) {
|
|
9744
9746
|
return t === e ? 0 : t < e ? -1 : 1;
|
|
9745
9747
|
}
|
|
9746
|
-
function
|
|
9748
|
+
function Do(e, t, n) {
|
|
9747
9749
|
if (t.length === 0)
|
|
9748
9750
|
return 0;
|
|
9749
9751
|
const { index: r, offset: o, size: s } = jh(t, e, Ol), i = e - r, a = s * i + (i - 1) * n + o;
|
|
@@ -9783,7 +9785,7 @@ function QS(e, [t, n, r, o]) {
|
|
|
9783
9785
|
const { lastIndex: l, lastOffset: c, lastSize: d, offsetTree: f } = Ua(e.offsetTree, a, i, o);
|
|
9784
9786
|
return {
|
|
9785
9787
|
groupIndices: n,
|
|
9786
|
-
groupOffsetTree: n.reduce((h, p) => vn(h, p,
|
|
9788
|
+
groupOffsetTree: n.reduce((h, p) => vn(h, p, Do(p, f, o)), Qr()),
|
|
9787
9789
|
lastIndex: l,
|
|
9788
9790
|
lastOffset: c,
|
|
9789
9791
|
lastSize: d,
|
|
@@ -9859,7 +9861,7 @@ const rC = {
|
|
|
9859
9861
|
je((C) => C.length > 0),
|
|
9860
9862
|
Ke(g, p),
|
|
9861
9863
|
pe(([C, b, k]) => {
|
|
9862
|
-
const A = C.reduce((N, _, M) => vn(N, _,
|
|
9864
|
+
const A = C.reduce((N, _, M) => vn(N, _, Do(_, b.offsetTree, k) || M), Qr());
|
|
9863
9865
|
return {
|
|
9864
9866
|
...b,
|
|
9865
9867
|
groupIndices: C,
|
|
@@ -9945,7 +9947,7 @@ const rC = {
|
|
|
9945
9947
|
pe(([C, b]) => {
|
|
9946
9948
|
const k = b.groupIndices.length > 0, A = [], N = b.lastSize;
|
|
9947
9949
|
if (k) {
|
|
9948
|
-
const _ =
|
|
9950
|
+
const _ = Oo(b.sizeTree, 0);
|
|
9949
9951
|
let M = 0, $ = 0;
|
|
9950
9952
|
for (; M < C; ) {
|
|
9951
9953
|
const P = b.groupIndices[$], B = b.groupIndices.length === $ + 1 ? 1 / 0 : b.groupIndices[$ + 1] - P - 1;
|
|
@@ -10005,7 +10007,7 @@ const rC = {
|
|
|
10005
10007
|
Ke(g, p),
|
|
10006
10008
|
pe(([C, { offsetTree: b }, k]) => {
|
|
10007
10009
|
const A = -C;
|
|
10008
|
-
return
|
|
10010
|
+
return Do(A, b, k);
|
|
10009
10011
|
})
|
|
10010
10012
|
)
|
|
10011
10013
|
);
|
|
@@ -10026,7 +10028,7 @@ const rC = {
|
|
|
10026
10028
|
M++, _ += z + 1;
|
|
10027
10029
|
}
|
|
10028
10030
|
if (A = Er(b.sizeTree).reduce((z, { k: P, v: B }) => vn(z, Math.max(0, P + C), B), A), _ !== -C) {
|
|
10029
|
-
const z =
|
|
10031
|
+
const z = Oo(b.sizeTree, $);
|
|
10030
10032
|
A = vn(A, 0, z);
|
|
10031
10033
|
const P = zn(b.sizeTree, -C + 1)[1];
|
|
10032
10034
|
A = vn(A, 1, P);
|
|
@@ -10128,7 +10130,7 @@ function Dh(e) {
|
|
|
10128
10130
|
const t = typeof e == "number" ? { index: e } : e;
|
|
10129
10131
|
return t.align || (t.align = "start"), (!t.behavior || !sC) && (t.behavior = "auto"), t.offset || (t.offset = 0), t;
|
|
10130
10132
|
}
|
|
10131
|
-
const
|
|
10133
|
+
const Yo = ut(
|
|
10132
10134
|
([
|
|
10133
10135
|
{ gap: e, listRefresh: t, sizes: n, totalCount: r },
|
|
10134
10136
|
{
|
|
@@ -10161,7 +10163,7 @@ const Xo = ut(
|
|
|
10161
10163
|
P
|
|
10162
10164
|
]) => {
|
|
10163
10165
|
const B = Dh(T), { align: j, behavior: W, offset: F } = B, L = k - 1, ne = Oh(B, C, L);
|
|
10164
|
-
let Q =
|
|
10166
|
+
let Q = Do(ne, C.offsetTree, $) + N;
|
|
10165
10167
|
j === "end" ? (Q += z + zn(C.sizeTree, ne)[1] - b + P, ne === L && (Q += _)) : j === "center" ? Q += (z + zn(C.sizeTree, ne)[1] - b + P) / 2 : Q -= A, F && (Q += F);
|
|
10166
10168
|
const ge = (_e) => {
|
|
10167
10169
|
S(), _e ? (M("retrying to scroll to", { location: T }, xn.DEBUG), He(p, T)) : (He(m, !0), M("list did not change, scroll successful", {}, xn.DEBUG));
|
|
@@ -10210,7 +10212,7 @@ function Dl(e, t) {
|
|
|
10210
10212
|
const n = t - 1;
|
|
10211
10213
|
return typeof e == "number" ? e : e.index === "LAST" ? n : e.index;
|
|
10212
10214
|
}
|
|
10213
|
-
const
|
|
10215
|
+
const Xo = ut(
|
|
10214
10216
|
([{ defaultItemSize: e, listRefresh: t, sizes: n }, { scrollTop: r }, { scrollTargetReached: o, scrollToIndex: s }, { didMount: i }]) => {
|
|
10215
10217
|
const a = te(!0), l = te(0), c = te(!0);
|
|
10216
10218
|
return be(
|
|
@@ -10251,13 +10253,13 @@ const Jo = ut(
|
|
|
10251
10253
|
scrolledToInitialItem: a
|
|
10252
10254
|
};
|
|
10253
10255
|
},
|
|
10254
|
-
Nt(Qn, cn,
|
|
10256
|
+
Nt(Qn, cn, Yo, yr),
|
|
10255
10257
|
{ singleton: !0 }
|
|
10256
10258
|
);
|
|
10257
10259
|
function Lh(e, t) {
|
|
10258
10260
|
return Math.abs(e - t) < 1.01;
|
|
10259
10261
|
}
|
|
10260
|
-
const
|
|
10262
|
+
const Lo = "up", So = "down", aC = "none", lC = {
|
|
10261
10263
|
atBottom: !1,
|
|
10262
10264
|
notAtBottomBecause: "NOT_SHOWING_LAST_ITEM",
|
|
10263
10265
|
state: {
|
|
@@ -10266,7 +10268,7 @@ const Fo = "up", Co = "down", aC = "none", lC = {
|
|
|
10266
10268
|
scrollTop: 0,
|
|
10267
10269
|
viewportHeight: 0
|
|
10268
10270
|
}
|
|
10269
|
-
}, cC = 0,
|
|
10271
|
+
}, cC = 0, Jo = ut(([{ footerHeight: e, headerHeight: t, scrollBy: n, scrollContainerState: r, scrollTop: o, viewportHeight: s }]) => {
|
|
10270
10272
|
const i = te(!1), a = te(!0), l = nt(), c = nt(), d = te(4), f = te(cC), h = sn(
|
|
10271
10273
|
X(
|
|
10272
10274
|
$a(X(Ae(o), Or(1), Kn(!0)), X(Ae(o), Or(1), Kn(!1), gu(100))),
|
|
@@ -10353,15 +10355,15 @@ const Fo = "up", Co = "down", aC = "none", lC = {
|
|
|
10353
10355
|
),
|
|
10354
10356
|
i
|
|
10355
10357
|
), be(X(i, nr(50)), l);
|
|
10356
|
-
const x = te(
|
|
10358
|
+
const x = te(So);
|
|
10357
10359
|
be(
|
|
10358
10360
|
X(
|
|
10359
10361
|
r,
|
|
10360
10362
|
pe(({ scrollTop: w }) => w),
|
|
10361
10363
|
It(),
|
|
10362
10364
|
Yn(
|
|
10363
|
-
(w, S) => Ft(p) ? { direction: w.direction, prevScrollTop: S } : { direction: S < w.prevScrollTop ?
|
|
10364
|
-
{ direction:
|
|
10365
|
+
(w, S) => Ft(p) ? { direction: w.direction, prevScrollTop: S } : { direction: S < w.prevScrollTop ? Lo : So, prevScrollTop: S },
|
|
10366
|
+
{ direction: So, prevScrollTop: 0 }
|
|
10365
10367
|
),
|
|
10366
10368
|
pe((w) => w.direction)
|
|
10367
10369
|
),
|
|
@@ -10400,7 +10402,7 @@ const Fo = "up", Co = "down", aC = "none", lC = {
|
|
|
10400
10402
|
};
|
|
10401
10403
|
}, Nt(cn)), Hs = "top", Us = "bottom", wu = "none";
|
|
10402
10404
|
function bu(e, t, n) {
|
|
10403
|
-
return typeof e == "number" ? n ===
|
|
10405
|
+
return typeof e == "number" ? n === Lo && t === Hs || n === So && t === Us ? e : 0 : n === Lo ? t === Hs ? e.main : e.reverse : t === Us ? e.main : e.reverse;
|
|
10404
10406
|
}
|
|
10405
10407
|
function Su(e, t) {
|
|
10406
10408
|
var n;
|
|
@@ -10414,7 +10416,7 @@ const Ll = ut(
|
|
|
10414
10416
|
Ae(r),
|
|
10415
10417
|
Ae(o),
|
|
10416
10418
|
Ae(n),
|
|
10417
|
-
Ae(s,
|
|
10419
|
+
Ae(s, Mo),
|
|
10418
10420
|
Ae(l),
|
|
10419
10421
|
Ae(i),
|
|
10420
10422
|
Ae(t),
|
|
@@ -10436,14 +10438,14 @@ const Ll = ut(
|
|
|
10436
10438
|
const T = d - w, C = x + y, b = Math.max(h - T, 0);
|
|
10437
10439
|
let k = wu;
|
|
10438
10440
|
const A = Su(S, Hs), N = Su(S, Us);
|
|
10439
|
-
return p -= w, p += h + y, m += h + y, m -= w, p > d + C - A && (k =
|
|
10441
|
+
return p -= w, p += h + y, m += h + y, m -= w, p > d + C - A && (k = Lo), m < d - b + f + N && (k = So), k !== wu ? [
|
|
10440
10442
|
Math.max(T - h - bu(g, Hs, k) - A, 0),
|
|
10441
10443
|
T - b - y + f + bu(g, Us, k) + N
|
|
10442
10444
|
] : null;
|
|
10443
10445
|
}
|
|
10444
10446
|
),
|
|
10445
10447
|
je((d) => d != null),
|
|
10446
|
-
It(
|
|
10448
|
+
It(Mo)
|
|
10447
10449
|
),
|
|
10448
10450
|
[0, 0]
|
|
10449
10451
|
);
|
|
@@ -10562,7 +10564,7 @@ const Br = ut(
|
|
|
10562
10564
|
Bt(
|
|
10563
10565
|
p,
|
|
10564
10566
|
m,
|
|
10565
|
-
Ae(l,
|
|
10567
|
+
Ae(l, Mo),
|
|
10566
10568
|
Ae(o),
|
|
10567
10569
|
Ae(r),
|
|
10568
10570
|
Ae(c),
|
|
@@ -10677,7 +10679,7 @@ const Br = ut(
|
|
|
10677
10679
|
Ke(o, e),
|
|
10678
10680
|
je(([{ items: b }, k]) => b[b.length - 1].originalIndex === k - 1),
|
|
10679
10681
|
pe(([, b, k]) => [b - 1, k]),
|
|
10680
|
-
It(
|
|
10682
|
+
It(Mo),
|
|
10681
10683
|
pe(([b]) => b)
|
|
10682
10684
|
)
|
|
10683
10685
|
), T = bn(
|
|
@@ -10712,9 +10714,9 @@ const Br = ut(
|
|
|
10712
10714
|
Qn,
|
|
10713
10715
|
Mh,
|
|
10714
10716
|
Ll,
|
|
10715
|
-
Jo,
|
|
10716
10717
|
Xo,
|
|
10717
|
-
|
|
10718
|
+
Yo,
|
|
10719
|
+
Jo,
|
|
10718
10720
|
yr,
|
|
10719
10721
|
Pl
|
|
10720
10722
|
),
|
|
@@ -10769,7 +10771,7 @@ const Br = ut(
|
|
|
10769
10771
|
Ke(t, l, n, s, o, r, a),
|
|
10770
10772
|
Ke(e),
|
|
10771
10773
|
pe(([[f, h, p, m, g, x, y, w], S]) => {
|
|
10772
|
-
const { align: T, behavior: C, calculateViewLocation: b = fC, done: k, ...A } = f, N = Oh(f, h, m - 1), _ =
|
|
10774
|
+
const { align: T, behavior: C, calculateViewLocation: b = fC, done: k, ...A } = f, N = Oh(f, h, m - 1), _ = Do(N, h.offsetTree, S) + g + x, M = _ + zn(h.sizeTree, N)[1], $ = w + x, z = w + p - y, P = b({
|
|
10773
10775
|
itemBottom: M,
|
|
10774
10776
|
itemTop: _,
|
|
10775
10777
|
locationParams: { align: T, behavior: C, ...A },
|
|
@@ -10794,7 +10796,7 @@ const Br = ut(
|
|
|
10794
10796
|
scrollIntoView: d
|
|
10795
10797
|
};
|
|
10796
10798
|
},
|
|
10797
|
-
Nt(Qn, cn,
|
|
10799
|
+
Nt(Qn, cn, Yo, Br, xr),
|
|
10798
10800
|
{ singleton: !0 }
|
|
10799
10801
|
);
|
|
10800
10802
|
function Tu(e) {
|
|
@@ -10896,9 +10898,9 @@ const hC = (e, t) => typeof e == "function" ? Tu(e(t)) : t && Tu(e), pC = ut(
|
|
|
10896
10898
|
},
|
|
10897
10899
|
Nt(
|
|
10898
10900
|
Qn,
|
|
10899
|
-
Zo,
|
|
10900
|
-
Xo,
|
|
10901
10901
|
Jo,
|
|
10902
|
+
Yo,
|
|
10903
|
+
Xo,
|
|
10902
10904
|
yr,
|
|
10903
10905
|
xr,
|
|
10904
10906
|
cn,
|
|
@@ -10916,7 +10918,7 @@ const hC = (e, t) => typeof e == "function" ? Tu(e(t)) : t && Tu(e), pC = ut(
|
|
|
10916
10918
|
),
|
|
10917
10919
|
i
|
|
10918
10920
|
), {}),
|
|
10919
|
-
Nt(Qn,
|
|
10921
|
+
Nt(Qn, Xo, Br, yr),
|
|
10920
10922
|
{ singleton: !0 }
|
|
10921
10923
|
), gC = ut(
|
|
10922
10924
|
([{ didMount: e }, { scrollTo: t }, { listState: n }]) => {
|
|
@@ -10975,7 +10977,7 @@ const hC = (e, t) => typeof e == "function" ? Tu(e(t)) : t && Tu(e), pC = ut(
|
|
|
10975
10977
|
}
|
|
10976
10978
|
), { isSeeking: t, scrollSeekConfiguration: r, scrollSeekRangeChanged: n, scrollVelocity: e };
|
|
10977
10979
|
},
|
|
10978
|
-
Nt(
|
|
10980
|
+
Nt(Jo),
|
|
10979
10981
|
{ singleton: !0 }
|
|
10980
10982
|
), Fl = ut(([{ scrollContainerState: e, scrollTo: t }]) => {
|
|
10981
10983
|
const n = nt(), r = nt(), o = nt(), s = te(!1), i = te(void 0);
|
|
@@ -11041,7 +11043,7 @@ const hC = (e, t) => typeof e == "function" ? Tu(e(t)) : t && Tu(e), pC = ut(
|
|
|
11041
11043
|
restoreStateFrom: d
|
|
11042
11044
|
};
|
|
11043
11045
|
},
|
|
11044
|
-
Nt(Qn, cn,
|
|
11046
|
+
Nt(Qn, cn, Xo, yr, Fl)
|
|
11045
11047
|
);
|
|
11046
11048
|
function yC(e) {
|
|
11047
11049
|
return { align: "start", index: 0, offset: e.scrollTop };
|
|
@@ -11084,7 +11086,7 @@ const wC = Uh(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
11084
11086
|
),
|
|
11085
11087
|
je(([y]) => y !== 0),
|
|
11086
11088
|
Ke(r, a, n, o, p, m),
|
|
11087
|
-
je(([, y, w, S, , , T]) => !T && !S && y !== 0 && w ===
|
|
11089
|
+
je(([, y, w, S, , , T]) => !T && !S && y !== 0 && w === Lo),
|
|
11088
11090
|
pe(([[y], , , , , w]) => (w("Upward scrolling compensation", { amount: y }, xn.DEBUG), y))
|
|
11089
11091
|
)
|
|
11090
11092
|
);
|
|
@@ -11119,7 +11121,7 @@ const wC = Uh(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
11119
11121
|
return b(y);
|
|
11120
11122
|
{
|
|
11121
11123
|
let k = 0;
|
|
11122
|
-
const A =
|
|
11124
|
+
const A = Oo(T, 0);
|
|
11123
11125
|
let N = 0, _ = 0;
|
|
11124
11126
|
for (; N < y; ) {
|
|
11125
11127
|
N++, k += A;
|
|
@@ -11139,7 +11141,7 @@ const wC = Uh(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
11139
11141
|
}
|
|
11140
11142
|
), { deviation: e };
|
|
11141
11143
|
},
|
|
11142
|
-
Nt(cn,
|
|
11144
|
+
Nt(cn, Jo, Br, Qn, xr, Pl)
|
|
11143
11145
|
), SC = ut(
|
|
11144
11146
|
([
|
|
11145
11147
|
e,
|
|
@@ -11244,12 +11246,12 @@ const wC = Uh(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
11244
11246
|
}),
|
|
11245
11247
|
Nt(
|
|
11246
11248
|
Qn,
|
|
11247
|
-
|
|
11249
|
+
Xo,
|
|
11248
11250
|
cn,
|
|
11249
11251
|
xC,
|
|
11250
11252
|
pC,
|
|
11251
11253
|
Br,
|
|
11252
|
-
|
|
11254
|
+
Yo,
|
|
11253
11255
|
bC,
|
|
11254
11256
|
vC,
|
|
11255
11257
|
Mh,
|
|
@@ -11771,7 +11773,7 @@ const Eu = {
|
|
|
11771
11773
|
offsetBottom: 0,
|
|
11772
11774
|
offsetTop: 0,
|
|
11773
11775
|
top: 0
|
|
11774
|
-
}, { ceil: Iu, floor: Ws, max:
|
|
11776
|
+
}, { ceil: Iu, floor: Ws, max: Co, min: ha, round: Nu } = Math;
|
|
11775
11777
|
function Au(e, t, n) {
|
|
11776
11778
|
return Array.from({ length: t - e + 1 }).map((r, o) => ({ data: n === null ? null : n[o + e], index: o + e }));
|
|
11777
11779
|
}
|
|
@@ -11896,7 +11898,7 @@ const GC = /* @__PURE__ */ ut(
|
|
|
11896
11898
|
}
|
|
11897
11899
|
const Je = Qh(Qe, st, ot);
|
|
11898
11900
|
let qe, et;
|
|
11899
|
-
Pe ? q === 0 && ie === 0 && ye > 0 ? (qe = 0, et = ye - 1) : (qe = Je * Ws((q + Ce) / (Xe + Ce)), et = Je * Iu((ie + Ce) / (Xe + Ce)) - 1, et = ha(D - 1,
|
|
11901
|
+
Pe ? q === 0 && ie === 0 && ye > 0 ? (qe = 0, et = ye - 1) : (qe = Je * Ws((q + Ce) / (Xe + Ce)), et = Je * Iu((ie + Ce) / (Xe + Ce)) - 1, et = ha(D - 1, Co(et, Je - 1)), qe = ha(et, Co(0, qe))) : (qe = 0, et = -1);
|
|
11900
11902
|
const Mt = Au(qe, et, re), { bottom: kt, top: tt } = _u(We, ce, H, Mt), vt = Iu(D / Je), At = vt * Xe + (vt - 1) * Ce - kt;
|
|
11901
11903
|
return { bottom: kt, itemHeight: Xe, items: Mt, itemWidth: st, offsetBottom: At, offsetTop: tt, top: tt };
|
|
11902
11904
|
}
|
|
@@ -11918,7 +11920,7 @@ const GC = /* @__PURE__ */ ut(
|
|
|
11918
11920
|
const { bottom: H, top: We } = _u(D, ce, q, ie);
|
|
11919
11921
|
return [We, H];
|
|
11920
11922
|
}),
|
|
11921
|
-
It(
|
|
11923
|
+
It(Mo)
|
|
11922
11924
|
),
|
|
11923
11925
|
t
|
|
11924
11926
|
);
|
|
@@ -11970,7 +11972,7 @@ const GC = /* @__PURE__ */ ut(
|
|
|
11970
11972
|
pe(([D, q, ie, ce, H]) => {
|
|
11971
11973
|
const We = Dh(D), { align: re, behavior: ye, offset: Pe } = We;
|
|
11972
11974
|
let $e = We.index;
|
|
11973
|
-
$e === "LAST" && ($e = ce - 1), $e =
|
|
11975
|
+
$e === "LAST" && ($e = ce - 1), $e = Co(0, $e, ha(ce - 1, $e));
|
|
11974
11976
|
let ot = Wa(q, H, ie, $e);
|
|
11975
11977
|
return re === "end" ? ot = Nu(ot - q.height + ie.height) : re === "center" && (ot = Nu(ot - q.height / 2 + ie.height / 2)), Pe && (ot += Pe), { behavior: ye, top: ot };
|
|
11976
11978
|
})
|
|
@@ -12032,10 +12034,10 @@ const GC = /* @__PURE__ */ ut(
|
|
|
12032
12034
|
...C
|
|
12033
12035
|
};
|
|
12034
12036
|
},
|
|
12035
|
-
Nt(Ll, cn,
|
|
12037
|
+
Nt(Ll, cn, Jo, Hh, yr, Fl, xr)
|
|
12036
12038
|
);
|
|
12037
12039
|
function Qh(e, t, n) {
|
|
12038
|
-
return
|
|
12040
|
+
return Co(1, Ws((e + n) / (Ws(t) + n)));
|
|
12039
12041
|
}
|
|
12040
12042
|
function _u(e, t, n, r) {
|
|
12041
12043
|
const { height: o } = n;
|
|
@@ -12045,7 +12047,7 @@ function _u(e, t, n, r) {
|
|
|
12045
12047
|
return { bottom: Wa(e, t, n, r[r.length - 1].index) + o, top: s };
|
|
12046
12048
|
}
|
|
12047
12049
|
function Wa(e, t, n, r) {
|
|
12048
|
-
const o = Qh(e.width, n.width, t.column), s = Ws(r / o), i = s * n.height +
|
|
12050
|
+
const o = Qh(e.width, n.width, t.column), s = Ws(r / o), i = s * n.height + Co(0, s - 1) * t.row;
|
|
12049
12051
|
return i > 0 ? i + t.row : i;
|
|
12050
12052
|
}
|
|
12051
12053
|
const YC = /* @__PURE__ */ ut(() => {
|
|
@@ -12251,7 +12253,7 @@ const sT = ni(
|
|
|
12251
12253
|
function tp({ className: e, variant: t, ...n }) {
|
|
12252
12254
|
return /* @__PURE__ */ u.jsx("div", { className: oe(sT({ variant: t }), e), ...n });
|
|
12253
12255
|
}
|
|
12254
|
-
const
|
|
12256
|
+
const To = v.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
|
|
12255
12257
|
"div",
|
|
12256
12258
|
{
|
|
12257
12259
|
ref: n,
|
|
@@ -12262,8 +12264,8 @@ const ko = v.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
|
|
|
12262
12264
|
...t
|
|
12263
12265
|
}
|
|
12264
12266
|
));
|
|
12265
|
-
|
|
12266
|
-
const
|
|
12267
|
+
To.displayName = "Card";
|
|
12268
|
+
const ko = v.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
|
|
12267
12269
|
"div",
|
|
12268
12270
|
{
|
|
12269
12271
|
ref: n,
|
|
@@ -12271,8 +12273,8 @@ const Ro = v.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
|
|
|
12271
12273
|
...t
|
|
12272
12274
|
}
|
|
12273
12275
|
));
|
|
12274
|
-
|
|
12275
|
-
const
|
|
12276
|
+
ko.displayName = "CardHeader";
|
|
12277
|
+
const Ro = v.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
|
|
12276
12278
|
"h3",
|
|
12277
12279
|
{
|
|
12278
12280
|
ref: n,
|
|
@@ -12283,7 +12285,7 @@ const Eo = v.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
|
|
|
12283
12285
|
...t
|
|
12284
12286
|
}
|
|
12285
12287
|
));
|
|
12286
|
-
|
|
12288
|
+
Ro.displayName = "CardTitle";
|
|
12287
12289
|
const np = v.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
|
|
12288
12290
|
"p",
|
|
12289
12291
|
{
|
|
@@ -12293,8 +12295,8 @@ const np = v.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
|
|
|
12293
12295
|
}
|
|
12294
12296
|
));
|
|
12295
12297
|
np.displayName = "CardDescription";
|
|
12296
|
-
const
|
|
12297
|
-
|
|
12298
|
+
const Eo = v.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx("div", { ref: n, className: oe("p-6 pt-0", e), ...t }));
|
|
12299
|
+
Eo.displayName = "CardContent";
|
|
12298
12300
|
const rp = v.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
|
|
12299
12301
|
"div",
|
|
12300
12302
|
{
|
|
@@ -12313,7 +12315,7 @@ const ma = /* @__PURE__ */ new Map(), Pu = (e) => {
|
|
|
12313
12315
|
if (ma.has(e))
|
|
12314
12316
|
return;
|
|
12315
12317
|
const t = setTimeout(() => {
|
|
12316
|
-
ma.delete(e),
|
|
12318
|
+
ma.delete(e), Io({
|
|
12317
12319
|
type: "REMOVE_TOAST",
|
|
12318
12320
|
toastId: e
|
|
12319
12321
|
});
|
|
@@ -12358,17 +12360,17 @@ const ma = /* @__PURE__ */ new Map(), Pu = (e) => {
|
|
|
12358
12360
|
}
|
|
12359
12361
|
}, Ns = [];
|
|
12360
12362
|
let As = { toasts: [] };
|
|
12361
|
-
function
|
|
12363
|
+
function Io(e) {
|
|
12362
12364
|
As = cT(As, e), Ns.forEach((t) => {
|
|
12363
12365
|
t(As);
|
|
12364
12366
|
});
|
|
12365
12367
|
}
|
|
12366
12368
|
function uT({ ...e }) {
|
|
12367
|
-
const t = lT(), n = (o) =>
|
|
12369
|
+
const t = lT(), n = (o) => Io({
|
|
12368
12370
|
type: "UPDATE_TOAST",
|
|
12369
12371
|
toast: { ...o, id: t }
|
|
12370
|
-
}), r = () =>
|
|
12371
|
-
return
|
|
12372
|
+
}), r = () => Io({ type: "DISMISS_TOAST", toastId: t });
|
|
12373
|
+
return Io({
|
|
12372
12374
|
type: "ADD_TOAST",
|
|
12373
12375
|
toast: {
|
|
12374
12376
|
...e,
|
|
@@ -12392,7 +12394,7 @@ function Hl() {
|
|
|
12392
12394
|
}), [e]), {
|
|
12393
12395
|
...e,
|
|
12394
12396
|
toast: uT,
|
|
12395
|
-
dismiss: (n) =>
|
|
12397
|
+
dismiss: (n) => Io({ type: "DISMISS_TOAST", toastId: n })
|
|
12396
12398
|
};
|
|
12397
12399
|
}
|
|
12398
12400
|
async function op(e, t) {
|
|
@@ -12438,12 +12440,12 @@ function Ul(e) {
|
|
|
12438
12440
|
function sp(e) {
|
|
12439
12441
|
return !!(e && typeof e == "object" && (e.type === "file" || e.mimeType || e.filename || e.sourceType === "base64"));
|
|
12440
12442
|
}
|
|
12441
|
-
function
|
|
12443
|
+
function Fo(e) {
|
|
12442
12444
|
if (typeof e == "string")
|
|
12443
12445
|
return e;
|
|
12444
12446
|
if (e && typeof e == "object") {
|
|
12445
12447
|
if (Array.isArray(e)) {
|
|
12446
|
-
const n = e.map(
|
|
12448
|
+
const n = e.map(Fo).filter((r) => r !== void 0);
|
|
12447
12449
|
if (!n.length) {
|
|
12448
12450
|
console.debug("[message-utils] sanitizeForDisplay - array emptied -> returning undefined", { originalLength: e.length });
|
|
12449
12451
|
return;
|
|
@@ -12467,7 +12469,7 @@ function $o(e) {
|
|
|
12467
12469
|
if (n === "data" && typeof r == "string" && r.length > 100)
|
|
12468
12470
|
t[n] = `[base64 ${r.length} chars omitted]`;
|
|
12469
12471
|
else {
|
|
12470
|
-
const o =
|
|
12472
|
+
const o = Fo(r);
|
|
12471
12473
|
o !== void 0 && (t[n] = o);
|
|
12472
12474
|
}
|
|
12473
12475
|
}
|
|
@@ -12482,11 +12484,11 @@ function $o(e) {
|
|
|
12482
12484
|
}
|
|
12483
12485
|
return e;
|
|
12484
12486
|
}
|
|
12485
|
-
function
|
|
12487
|
+
function $o(e) {
|
|
12486
12488
|
if (typeof e == "string") return e;
|
|
12487
12489
|
if (sp(e)) return "";
|
|
12488
12490
|
try {
|
|
12489
|
-
const t =
|
|
12491
|
+
const t = Fo(e);
|
|
12490
12492
|
return t === void 0 ? "" : typeof t == "string" ? t : JSON.stringify(t, null, 2);
|
|
12491
12493
|
} catch {
|
|
12492
12494
|
return "";
|
|
@@ -12496,7 +12498,7 @@ function hT(e) {
|
|
|
12496
12498
|
return typeof e != "string" ? !1 : /^[\s\n]*[-*]\s|^[\s\n]*#+\s|```|^\s*\[.*\]\(|^>\s/.test(e);
|
|
12497
12499
|
}
|
|
12498
12500
|
function pT(e) {
|
|
12499
|
-
const t =
|
|
12501
|
+
const t = $o(e);
|
|
12500
12502
|
return typeof e == "string" && hT(e) ? { content: e, isMarkdown: !0 } : { content: t, isMarkdown: !1 };
|
|
12501
12503
|
}
|
|
12502
12504
|
function Vs(e) {
|
|
@@ -14565,7 +14567,7 @@ function ps(e) {
|
|
|
14565
14567
|
function GT(e) {
|
|
14566
14568
|
const t = (o) => {
|
|
14567
14569
|
try {
|
|
14568
|
-
const s =
|
|
14570
|
+
const s = Fo(o);
|
|
14569
14571
|
return typeof s == "string" ? s : JSON.stringify(s ?? "");
|
|
14570
14572
|
} catch {
|
|
14571
14573
|
return "";
|
|
@@ -15183,7 +15185,7 @@ const Hu = V.memo(function({
|
|
|
15183
15185
|
return o && s;
|
|
15184
15186
|
});
|
|
15185
15187
|
function Lp({ data: e }) {
|
|
15186
|
-
return Array.isArray(e) ? e.every((n) => n === null || ["string", "number", "boolean"].includes(typeof n)) ? /* @__PURE__ */ u.jsx("div", { className: KT, children: /* @__PURE__ */ u.jsx("ul", { className: "list-disc pl-5", children: e.map((n, r) => /* @__PURE__ */ u.jsx("li", { children: String(n) }, r)) }) }) : /* @__PURE__ */ u.jsx("pre", { className: "font-mono text-xs bg-background/50 rounded border p-2 whitespace-pre-wrap break-words", children:
|
|
15188
|
+
return Array.isArray(e) ? e.every((n) => n === null || ["string", "number", "boolean"].includes(typeof n)) ? /* @__PURE__ */ u.jsx("div", { className: KT, children: /* @__PURE__ */ u.jsx("ul", { className: "list-disc pl-5", children: e.map((n, r) => /* @__PURE__ */ u.jsx("li", { children: String(n) }, r)) }) }) : /* @__PURE__ */ u.jsx("pre", { className: "font-mono text-xs bg-background/50 rounded border p-2 whitespace-pre-wrap break-words", children: $o(e) }) : /* @__PURE__ */ u.jsx("pre", { className: "font-mono text-xs bg-background/50 rounded border p-2 whitespace-pre-wrap break-words", children: $o(e) });
|
|
15187
15189
|
}
|
|
15188
15190
|
function JT({
|
|
15189
15191
|
interruptPart: e,
|
|
@@ -15199,23 +15201,23 @@ function JT({
|
|
|
15199
15201
|
if (typeof s == "string")
|
|
15200
15202
|
a = /* @__PURE__ */ u.jsx("p", { className: "text-sm leading-relaxed text-blue-800/90 dark:text-blue-200/90 whitespace-pre-wrap", children: s });
|
|
15201
15203
|
else {
|
|
15202
|
-
const c =
|
|
15204
|
+
const c = $o(s);
|
|
15203
15205
|
a = /* @__PURE__ */ u.jsx("pre", { className: "max-h-48 overflow-auto rounded bg-blue-100/60 p-2 text-xs text-blue-900/90 dark:bg-blue-900/40 dark:text-blue-100/80", children: c });
|
|
15204
15206
|
}
|
|
15205
15207
|
const l = o ? "Please approve or reject this action to resume the workflow." : "Waiting for approval from another participant.";
|
|
15206
15208
|
return /* @__PURE__ */ u.jsxs(
|
|
15207
|
-
|
|
15209
|
+
To,
|
|
15208
15210
|
{
|
|
15209
15211
|
className: oe(
|
|
15210
15212
|
"border-blue-200 dark:border-blue-800 bg-blue-50/50 dark:bg-blue-950/10 transition-shadow",
|
|
15211
15213
|
o ? "shadow-md ring-1 ring-blue-300 dark:ring-blue-500/70" : "opacity-80"
|
|
15212
15214
|
),
|
|
15213
15215
|
children: [
|
|
15214
|
-
/* @__PURE__ */ u.jsxs(
|
|
15215
|
-
/* @__PURE__ */ u.jsx(
|
|
15216
|
+
/* @__PURE__ */ u.jsxs(ko, { className: "pb-3", children: [
|
|
15217
|
+
/* @__PURE__ */ u.jsx(Ro, { className: "text-blue-900 dark:text-blue-100 text-base", children: i }),
|
|
15216
15218
|
/* @__PURE__ */ u.jsx(np, { className: "text-blue-700 dark:text-blue-300 text-sm", children: l })
|
|
15217
15219
|
] }),
|
|
15218
|
-
a && /* @__PURE__ */ u.jsx(
|
|
15220
|
+
a && /* @__PURE__ */ u.jsx(Eo, { className: "pt-0 pb-3", children: a }),
|
|
15219
15221
|
/* @__PURE__ */ u.jsx(rp, { className: "pt-0", children: /* @__PURE__ */ u.jsxs("div", { className: "flex gap-2 ml-auto", children: [
|
|
15220
15222
|
/* @__PURE__ */ u.jsx(
|
|
15221
15223
|
pt,
|
|
@@ -15366,7 +15368,7 @@ function ek({ message: e, viewMode: t }) {
|
|
|
15366
15368
|
return /* @__PURE__ */ u.jsx(Lp, { data: d });
|
|
15367
15369
|
const f = typeof d == "string" ? d : (() => {
|
|
15368
15370
|
try {
|
|
15369
|
-
return
|
|
15371
|
+
return $o(d);
|
|
15370
15372
|
} catch {
|
|
15371
15373
|
return String(d ?? "");
|
|
15372
15374
|
}
|
|
@@ -15396,7 +15398,7 @@ function ek({ message: e, viewMode: t }) {
|
|
|
15396
15398
|
const f = Vs(d);
|
|
15397
15399
|
return s(f);
|
|
15398
15400
|
}
|
|
15399
|
-
const a =
|
|
15401
|
+
const a = Fo(i), l = Vs(a);
|
|
15400
15402
|
return s(l);
|
|
15401
15403
|
}
|
|
15402
15404
|
const Uu = (e, t) => (e == null ? void 0 : e.id) ?? `message-${t}`, tk = (e) => {
|
|
@@ -15807,11 +15809,11 @@ function ga({
|
|
|
15807
15809
|
if (!an) return null;
|
|
15808
15810
|
const Un = dt(at.metadata, "source");
|
|
15809
15811
|
dt(at.metadata, "next");
|
|
15810
|
-
const { text: po, messageId:
|
|
15812
|
+
const { text: po, messageId: Zo } = gt(at.messages), Sn = po && po.replace(/\s+/g, " ").trim() || dt(at.metadata, "title") || dt(at.metadata, "label") || Ut || Un || "Checkpoint", Qo = Sn.length > 60 ? `${Sn.slice(0, 57)}…` : Sn;
|
|
15811
15813
|
return {
|
|
15812
15814
|
id: an,
|
|
15813
|
-
label:
|
|
15814
|
-
messageId:
|
|
15815
|
+
label: Qo,
|
|
15816
|
+
messageId: Zo ?? null,
|
|
15815
15817
|
createdAt: at.createdAt ?? null,
|
|
15816
15818
|
step: xt(at.metadata, "step"),
|
|
15817
15819
|
source: Un ?? null,
|
|
@@ -17896,9 +17898,9 @@ var Qs = "SelectItem", [Vk, Nm] = ho(Qs), Am = v.forwardRef(
|
|
|
17896
17898
|
}
|
|
17897
17899
|
);
|
|
17898
17900
|
Am.displayName = Qs;
|
|
17899
|
-
var
|
|
17901
|
+
var wo = "SelectItemText", _m = v.forwardRef(
|
|
17900
17902
|
(e, t) => {
|
|
17901
|
-
const { __scopeSelect: n, className: r, style: o, ...s } = e, i = vr(
|
|
17903
|
+
const { __scopeSelect: n, className: r, style: o, ...s } = e, i = vr(wo, n), a = wr(wo, n), l = Nm(wo, n), c = Ok(wo, n), [d, f] = v.useState(null), h = rt(
|
|
17902
17904
|
t,
|
|
17903
17905
|
(y) => f(y),
|
|
17904
17906
|
l.onItemTextChange,
|
|
@@ -17916,7 +17918,7 @@ var bo = "SelectItemText", _m = v.forwardRef(
|
|
|
17916
17918
|
] });
|
|
17917
17919
|
}
|
|
17918
17920
|
);
|
|
17919
|
-
_m.displayName =
|
|
17921
|
+
_m.displayName = wo;
|
|
17920
17922
|
var jm = "SelectItemIndicator", Pm = v.forwardRef(
|
|
17921
17923
|
(e, t) => {
|
|
17922
17924
|
const { __scopeSelect: n, ...r } = e;
|
|
@@ -18351,12 +18353,12 @@ function YR({ settings: e, onSettingsChange: t, className: n = "" }) {
|
|
|
18351
18353
|
/* @__PURE__ */ u.jsx(og, { children: "Configure your chat interface, API connection, and behavior preferences." })
|
|
18352
18354
|
] }),
|
|
18353
18355
|
/* @__PURE__ */ u.jsxs("div", { className: "space-y-6 py-6", children: [
|
|
18354
|
-
/* @__PURE__ */ u.jsxs(
|
|
18355
|
-
/* @__PURE__ */ u.jsx(
|
|
18356
|
+
/* @__PURE__ */ u.jsxs(To, { children: [
|
|
18357
|
+
/* @__PURE__ */ u.jsx(ko, { className: "pb-3", children: /* @__PURE__ */ u.jsxs(Ro, { className: "text-lg flex items-center gap-2", children: [
|
|
18356
18358
|
/* @__PURE__ */ u.jsx(Ag, { className: "h-5 w-5" }),
|
|
18357
18359
|
"API Configuration"
|
|
18358
18360
|
] }) }),
|
|
18359
|
-
/* @__PURE__ */ u.jsxs(
|
|
18361
|
+
/* @__PURE__ */ u.jsxs(Eo, { className: "space-y-4", children: [
|
|
18360
18362
|
/* @__PURE__ */ u.jsxs("div", { className: "space-y-2", children: [
|
|
18361
18363
|
/* @__PURE__ */ u.jsx(kn, { htmlFor: "api-url", children: "API Base URL" }),
|
|
18362
18364
|
/* @__PURE__ */ u.jsxs("div", { className: "flex gap-2", children: [
|
|
@@ -18418,12 +18420,12 @@ function YR({ settings: e, onSettingsChange: t, className: n = "" }) {
|
|
|
18418
18420
|
] })
|
|
18419
18421
|
] })
|
|
18420
18422
|
] }),
|
|
18421
|
-
/* @__PURE__ */ u.jsxs(
|
|
18422
|
-
/* @__PURE__ */ u.jsx(
|
|
18423
|
+
/* @__PURE__ */ u.jsxs(To, { children: [
|
|
18424
|
+
/* @__PURE__ */ u.jsx(ko, { className: "pb-3", children: /* @__PURE__ */ u.jsxs(Ro, { className: "text-lg flex items-center gap-2", children: [
|
|
18423
18425
|
/* @__PURE__ */ u.jsx(Pg, { className: "h-5 w-5" }),
|
|
18424
18426
|
"Interface Settings"
|
|
18425
18427
|
] }) }),
|
|
18426
|
-
/* @__PURE__ */ u.jsxs(
|
|
18428
|
+
/* @__PURE__ */ u.jsxs(Eo, { className: "space-y-4", children: [
|
|
18427
18429
|
/* @__PURE__ */ u.jsxs("div", { className: "space-y-2", children: [
|
|
18428
18430
|
/* @__PURE__ */ u.jsx(kn, { htmlFor: "layout", children: "Layout Style" }),
|
|
18429
18431
|
/* @__PURE__ */ u.jsxs(
|
|
@@ -18513,12 +18515,12 @@ function YR({ settings: e, onSettingsChange: t, className: n = "" }) {
|
|
|
18513
18515
|
] })
|
|
18514
18516
|
] })
|
|
18515
18517
|
] }),
|
|
18516
|
-
/* @__PURE__ */ u.jsxs(
|
|
18517
|
-
/* @__PURE__ */ u.jsx(
|
|
18518
|
+
/* @__PURE__ */ u.jsxs(To, { children: [
|
|
18519
|
+
/* @__PURE__ */ u.jsx(ko, { className: "pb-3", children: /* @__PURE__ */ u.jsxs(Ro, { className: "text-lg flex items-center gap-2", children: [
|
|
18518
18520
|
/* @__PURE__ */ u.jsx(Og, { className: "h-5 w-5" }),
|
|
18519
18521
|
"Behavior Settings"
|
|
18520
18522
|
] }) }),
|
|
18521
|
-
/* @__PURE__ */ u.jsxs(
|
|
18523
|
+
/* @__PURE__ */ u.jsxs(Eo, { className: "space-y-4", children: [
|
|
18522
18524
|
/* @__PURE__ */ u.jsxs("div", { className: "flex items-center justify-between", children: [
|
|
18523
18525
|
/* @__PURE__ */ u.jsxs("div", { children: [
|
|
18524
18526
|
/* @__PURE__ */ u.jsx(kn, { htmlFor: "auto-save", children: "Auto-save Conversations" }),
|