teodor-new-chat-ui 4.3.146 → 4.3.148
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 +193 -193
- 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 Bo, useContext as ei, useReducer as ug, useRef as Ee, useCallback as de, useEffect as St, useMemo as ct, useState as we, startTransition as go, 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: {} }, xo = {};
|
|
14
14
|
/**
|
|
15
15
|
* @license React
|
|
16
16
|
* react-jsx-runtime.production.min.js
|
|
@@ -22,7 +22,7 @@ var va = { exports: {} }, go = {};
|
|
|
22
22
|
*/
|
|
23
23
|
var cc;
|
|
24
24
|
function $g() {
|
|
25
|
-
if (cc) return
|
|
25
|
+
if (cc) return xo;
|
|
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 xo.Fragment = n, xo.jsx = i, xo.jsxs = i, xo;
|
|
36
36
|
}
|
|
37
|
-
var
|
|
37
|
+
var yo = {};
|
|
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
|
+
yo.Fragment = r, yo.jsx = br, yo.jsxs = Sr;
|
|
635
|
+
}()), yo;
|
|
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 Ho(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"), Uo = (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 (!Uo(e) || Ho(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) => Uo(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 Wo(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 Uo(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 (Ho(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 Uo(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
|
688
688
|
}
|
|
689
689
|
}
|
|
690
690
|
function od(e, t) {
|
|
691
|
-
if (
|
|
691
|
+
if (Ho(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] && Wo(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 } = {}) => (Wo(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 } = {}) => (Uo(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
|
+
Wo(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 (Uo(r)) {
|
|
794
794
|
if (t.indexOf(r) >= 0)
|
|
795
795
|
return;
|
|
796
|
-
if (
|
|
796
|
+
if (Ho(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 Wo(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 && (Uo(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: Ho,
|
|
821
821
|
isFormData: Jg,
|
|
822
822
|
isArrayBufferView: Hg,
|
|
823
823
|
isString: Ug,
|
|
824
824
|
isNumber: rd,
|
|
825
825
|
isBoolean: Wg,
|
|
826
|
-
isObject:
|
|
826
|
+
isObject: Uo,
|
|
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: Wo,
|
|
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 Vo = {
|
|
1181
1181
|
transitional: hd,
|
|
1182
1182
|
adapter: ["xhr", "http", "fetch"],
|
|
1183
1183
|
transformRequest: [function(t, n) {
|
|
@@ -1206,7 +1206,7 @@ const Wo = {
|
|
|
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 || Vo.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 Wo = {
|
|
|
1244
1244
|
}
|
|
1245
1245
|
};
|
|
1246
1246
|
O.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
1247
|
-
|
|
1247
|
+
Vo.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 vo(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 = vo(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 = vo(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 = vo(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 = vo(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 = vo(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 || Vo, 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 || Vo.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(Vo);
|
|
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 = Bo(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 = So(
|
|
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 = So(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 So(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 bo(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 = So(e[s], t, n + 1, r);
|
|
2753
2753
|
if (i)
|
|
2754
2754
|
return i;
|
|
2755
2755
|
}
|
|
@@ -2768,14 +2768,14 @@ function bo(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 = So(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 = So(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 = Bo(null), Od = Bo(null), Md = Bo(null), vv = Bo(!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
|
+
go(() => {
|
|
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,16 +4357,14 @@ function wv({
|
|
|
4357
4357
|
R || _(!0);
|
|
4358
4358
|
try {
|
|
4359
4359
|
const I = await c.listThreads();
|
|
4360
|
-
|
|
4360
|
+
go(() => {
|
|
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
|
+
}), R || _(!1);
|
|
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));
|
|
4368
|
-
} finally {
|
|
4369
|
-
R || _(!1);
|
|
4367
|
+
i == null || i(String(I)), console.error("[ChatSessionProvider] Failed to refresh threads:", I), P(String(I)), R || _(!1);
|
|
4370
4368
|
}
|
|
4371
4369
|
}, [c, i]), Me = Ee(!1), Kt = Ee(null), Le = Ee(null), wt = Ee(""), [jn, Lt] = we("idle"), un = Ee({
|
|
4372
4370
|
attempts: 0,
|
|
@@ -4527,7 +4525,7 @@ function wv({
|
|
|
4527
4525
|
updatedAt: R.updatedAt || (/* @__PURE__ */ new Date()).toISOString(),
|
|
4528
4526
|
messageCount: R.messageCount || 0
|
|
4529
4527
|
};
|
|
4530
|
-
Ce.current !== I && (!Ce.current && H.messages.length <= 1 && (Je.current = I), A(I)),
|
|
4528
|
+
Ce.current !== I && (!Ce.current && H.messages.length <= 1 && (Je.current = I), A(I)), go(() => {
|
|
4531
4529
|
C((K) => {
|
|
4532
4530
|
const he = K.byId[I];
|
|
4533
4531
|
return he ? he.title === U.title && he.updatedAt === U.updatedAt && he.messageCount === U.messageCount ? K : {
|
|
@@ -4702,7 +4700,7 @@ function wv({
|
|
|
4702
4700
|
const le = Yi(h, he);
|
|
4703
4701
|
kt.current !== le && (kt.current = le, Mt.current = !1), S(le);
|
|
4704
4702
|
const ht = Xi(le);
|
|
4705
|
-
|
|
4703
|
+
go(() => {
|
|
4706
4704
|
C(os(ht));
|
|
4707
4705
|
}), he && !Mt.current && (Mt.current = !0);
|
|
4708
4706
|
};
|
|
@@ -4766,7 +4764,7 @@ function wv({
|
|
|
4766
4764
|
}
|
|
4767
4765
|
},
|
|
4768
4766
|
[c, _t, Oe, dt, Te]
|
|
4769
|
-
),
|
|
4767
|
+
), Qo = de(
|
|
4770
4768
|
async (R, I) => {
|
|
4771
4769
|
try {
|
|
4772
4770
|
await c.updateThread(R, I), C((U) => {
|
|
@@ -4813,7 +4811,9 @@ function wv({
|
|
|
4813
4811
|
{ threadId: R, checkpointId: I, checkpointNs: U },
|
|
4814
4812
|
{ force: K }
|
|
4815
4813
|
), { latest: tr, checkpoints: Cr, snapshots: Vr } = Os(Ot.payload);
|
|
4816
|
-
|
|
4814
|
+
go(() => {
|
|
4815
|
+
Ge(tr, "replace", R), Yt(R, Cr, "replace"), Xt(R, Vr, "replace"), j(null);
|
|
4816
|
+
}), 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);
|
|
@@ -4851,7 +4851,7 @@ function wv({
|
|
|
4851
4851
|
Yt,
|
|
4852
4852
|
Xt
|
|
4853
4853
|
]
|
|
4854
|
-
),
|
|
4854
|
+
), es = 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();
|
|
@@ -5114,7 +5114,7 @@ function wv({
|
|
|
5114
5114
|
actions: {
|
|
5115
5115
|
createThread: Un,
|
|
5116
5116
|
deleteThread: po,
|
|
5117
|
-
renameThread:
|
|
5117
|
+
renameThread: Qo,
|
|
5118
5118
|
refreshThreads: () => dt()
|
|
5119
5119
|
},
|
|
5120
5120
|
persistThreadsCache: Ye,
|
|
@@ -5127,7 +5127,7 @@ function wv({
|
|
|
5127
5127
|
z,
|
|
5128
5128
|
Un,
|
|
5129
5129
|
po,
|
|
5130
|
-
|
|
5130
|
+
Qo,
|
|
5131
5131
|
dt,
|
|
5132
5132
|
Ye,
|
|
5133
5133
|
L,
|
|
@@ -5159,11 +5159,11 @@ function wv({
|
|
|
5159
5159
|
navigateToCheckpoint: ec,
|
|
5160
5160
|
returnToLatest: tc,
|
|
5161
5161
|
loadThread: Sn,
|
|
5162
|
-
clearThread:
|
|
5162
|
+
clearThread: es,
|
|
5163
5163
|
respondToInterrupt: oc
|
|
5164
5164
|
};
|
|
5165
5165
|
}, [
|
|
5166
|
-
|
|
5166
|
+
es,
|
|
5167
5167
|
_t,
|
|
5168
5168
|
k,
|
|
5169
5169
|
W,
|
|
@@ -6126,7 +6126,7 @@ const iw = async (e, t, n) => {
|
|
|
6126
6126
|
middlewareData: p
|
|
6127
6127
|
};
|
|
6128
6128
|
};
|
|
6129
|
-
async function
|
|
6129
|
+
async function Ao(e, t) {
|
|
6130
6130
|
var n;
|
|
6131
6131
|
t === void 0 && (t = {});
|
|
6132
6132
|
const {
|
|
@@ -6234,7 +6234,7 @@ const aw = (e) => ({
|
|
|
6234
6234
|
return {};
|
|
6235
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";
|
|
6236
6236
|
!h && b && C.push(...ow(a, g, m, T));
|
|
6237
|
-
const k = [a, ...C], A = await
|
|
6237
|
+
const k = [a, ...C], A = await Ao(t, x), N = [];
|
|
6238
6238
|
let _ = ((r = s.flip) == null ? void 0 : r.overflows) || [];
|
|
6239
6239
|
if (d && N.push(A[y]), f) {
|
|
6240
6240
|
const P = Qv(o, i, T);
|
|
@@ -6314,7 +6314,7 @@ const cw = function(e) {
|
|
|
6314
6314
|
} = sr(e, t);
|
|
6315
6315
|
switch (r) {
|
|
6316
6316
|
case "referenceHidden": {
|
|
6317
|
-
const s = await
|
|
6317
|
+
const s = await Ao(t, {
|
|
6318
6318
|
...o,
|
|
6319
6319
|
elementContext: "reference"
|
|
6320
6320
|
}), i = eu(s, n.reference);
|
|
@@ -6326,7 +6326,7 @@ const cw = function(e) {
|
|
|
6326
6326
|
};
|
|
6327
6327
|
}
|
|
6328
6328
|
case "escaped": {
|
|
6329
|
-
const s = await
|
|
6329
|
+
const s = await Ao(t, {
|
|
6330
6330
|
...o,
|
|
6331
6331
|
altBoundary: !0
|
|
6332
6332
|
}), i = eu(s, n.floating);
|
|
@@ -6420,7 +6420,7 @@ const dw = function(e) {
|
|
|
6420
6420
|
} = sr(e, t), c = {
|
|
6421
6421
|
x: n,
|
|
6422
6422
|
y: r
|
|
6423
|
-
}, d = await
|
|
6423
|
+
}, d = await Ao(t, l), f = Gn(ir(o)), h = pl(f);
|
|
6424
6424
|
let p = c[h], m = c[f];
|
|
6425
6425
|
if (s) {
|
|
6426
6426
|
const x = h === "y" ? "top" : "left", y = h === "y" ? "bottom" : "right", w = p + d[x], S = p - d[y];
|
|
@@ -6505,7 +6505,7 @@ const dw = function(e) {
|
|
|
6505
6505
|
apply: l = () => {
|
|
6506
6506
|
},
|
|
6507
6507
|
...c
|
|
6508
|
-
} = sr(e, t), d = await
|
|
6508
|
+
} = sr(e, t), d = await Ao(t, c), f = ir(o), h = lo(o), p = Gn(o) === "y", {
|
|
6509
6509
|
width: m,
|
|
6510
6510
|
height: g
|
|
6511
6511
|
} = s.floating;
|
|
@@ -6558,7 +6558,7 @@ function nu(e) {
|
|
|
6558
6558
|
return !fi() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof wn(e).ShadowRoot;
|
|
6559
6559
|
}
|
|
6560
6560
|
const mw = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
6561
|
-
function
|
|
6561
|
+
function Ko(e) {
|
|
6562
6562
|
const {
|
|
6563
6563
|
overflow: t,
|
|
6564
6564
|
overflowX: n,
|
|
@@ -6630,17 +6630,17 @@ function fr(e) {
|
|
|
6630
6630
|
}
|
|
6631
6631
|
function Wd(e) {
|
|
6632
6632
|
const t = fr(e);
|
|
6633
|
-
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) && Ko(t) ? t : Wd(t);
|
|
6634
6634
|
}
|
|
6635
|
-
function
|
|
6635
|
+
function _o(e, t, n) {
|
|
6636
6636
|
var r;
|
|
6637
6637
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
6638
6638
|
const o = Wd(e), s = o === ((r = e.ownerDocument) == null ? void 0 : r.body), i = wn(o);
|
|
6639
6639
|
if (s) {
|
|
6640
6640
|
const a = Oa(i);
|
|
6641
|
-
return t.concat(i, i.visualViewport || [],
|
|
6641
|
+
return t.concat(i, i.visualViewport || [], Ko(o) ? o : [], a && n ? _o(a) : []);
|
|
6642
6642
|
}
|
|
6643
|
-
return t.concat(o,
|
|
6643
|
+
return t.concat(o, _o(o, [], n));
|
|
6644
6644
|
}
|
|
6645
6645
|
function Oa(e) {
|
|
6646
6646
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
@@ -6732,7 +6732,7 @@ function Rw(e) {
|
|
|
6732
6732
|
scrollTop: 0
|
|
6733
6733
|
}, c = Xn(1);
|
|
6734
6734
|
const d = Xn(0), f = Jn(r);
|
|
6735
|
-
if ((f || !f && !s) && ((co(r) !== "body" ||
|
|
6735
|
+
if ((f || !f && !s) && ((co(r) !== "body" || Ko(i)) && (l = pi(r)), Jn(r))) {
|
|
6736
6736
|
const p = Pr(r);
|
|
6737
6737
|
c = Jr(r), d.x = p.x + r.clientLeft, d.y = p.y + r.clientTop;
|
|
6738
6738
|
}
|
|
@@ -6816,12 +6816,12 @@ function jw(e, t) {
|
|
|
6816
6816
|
const n = t.get(e);
|
|
6817
6817
|
if (n)
|
|
6818
6818
|
return n;
|
|
6819
|
-
let r =
|
|
6819
|
+
let r = _o(e, [], !1).filter((a) => Fn(a) && co(a) !== "body"), o = null;
|
|
6820
6820
|
const s = $n(e).position === "fixed";
|
|
6821
6821
|
let i = s ? fr(e) : e;
|
|
6822
6822
|
for (; Fn(i) && !oo(i); ) {
|
|
6823
6823
|
const a = $n(i), l = xl(i);
|
|
6824
|
-
!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) || Ko(i) && !l && Gd(e, i)) ? r = r.filter((d) => d !== i) : o = a, i = fr(i);
|
|
6825
6825
|
}
|
|
6826
6826
|
return t.set(e, r), r;
|
|
6827
6827
|
}
|
|
@@ -6864,7 +6864,7 @@ function Mw(e, t, n) {
|
|
|
6864
6864
|
l.x = mi(o);
|
|
6865
6865
|
}
|
|
6866
6866
|
if (r || !r && !s)
|
|
6867
|
-
if ((co(t) !== "body" ||
|
|
6867
|
+
if ((co(t) !== "body" || Ko(o)) && (a = pi(t)), r) {
|
|
6868
6868
|
const p = Pr(t, !0, s, t);
|
|
6869
6869
|
l.x = p.x + t.clientLeft, l.y = p.y + t.clientTop;
|
|
6870
6870
|
} else o && c();
|
|
@@ -6990,7 +6990,7 @@ function zw(e, t, n, r) {
|
|
|
6990
6990
|
elementResize: i = typeof ResizeObserver == "function",
|
|
6991
6991
|
layoutShift: a = typeof IntersectionObserver == "function",
|
|
6992
6992
|
animationFrame: l = !1
|
|
6993
|
-
} = r, c = vl(e), d = o || s ? [...c ?
|
|
6993
|
+
} = r, c = vl(e), d = o || s ? [...c ? _o(c) : [], ..._o(t)] : [];
|
|
6994
6994
|
d.forEach((y) => {
|
|
6995
6995
|
o && y.addEventListener("scroll", n, {
|
|
6996
6996
|
passive: !0
|
|
@@ -7531,13 +7531,13 @@ function gb(e) {
|
|
|
7531
7531
|
let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
7532
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);
|
|
7533
7533
|
}
|
|
7534
|
-
var oa = "rovingFocusGroup.onEntryFocus", xb = { bubbles: !1, cancelable: !0 },
|
|
7535
|
-
|
|
7534
|
+
var oa = "rovingFocusGroup.onEntryFocus", xb = { bubbles: !1, cancelable: !0 }, qo = "RovingFocusGroup", [Ma, pf, yb] = fl(qo), [vb, mf] = ar(
|
|
7535
|
+
qo,
|
|
7536
7536
|
[yb]
|
|
7537
|
-
), [wb, bb] = vb(
|
|
7537
|
+
), [wb, bb] = vb(qo), gf = v.forwardRef(
|
|
7538
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 }) }) })
|
|
7539
7539
|
);
|
|
7540
|
-
gf.displayName =
|
|
7540
|
+
gf.displayName = qo;
|
|
7541
7541
|
var Sb = v.forwardRef((e, t) => {
|
|
7542
7542
|
const {
|
|
7543
7543
|
__scopeRovingFocusGroup: n,
|
|
@@ -7554,7 +7554,7 @@ var Sb = v.forwardRef((e, t) => {
|
|
|
7554
7554
|
prop: i,
|
|
7555
7555
|
defaultProp: a ?? null,
|
|
7556
7556
|
onChange: l,
|
|
7557
|
-
caller:
|
|
7557
|
+
caller: qo
|
|
7558
7558
|
}), [y, w] = v.useState(!1), S = en(c), T = pf(n), C = v.useRef(!1), [b, k] = v.useState(0);
|
|
7559
7559
|
return v.useEffect(() => {
|
|
7560
7560
|
const A = h.current;
|
|
@@ -8221,11 +8221,11 @@ var La = ["Enter", " "], p0 = ["ArrowDown", "PageUp", "Home"], If = ["ArrowUp",
|
|
|
8221
8221
|
}, x0 = {
|
|
8222
8222
|
ltr: ["ArrowLeft"],
|
|
8223
8223
|
rtl: ["ArrowRight"]
|
|
8224
|
-
},
|
|
8224
|
+
}, Go = "Menu", [jo, y0, v0] = fl(Go), [Fr, Nf] = ar(Go, [
|
|
8225
8225
|
v0,
|
|
8226
8226
|
gi,
|
|
8227
8227
|
mf
|
|
8228
|
-
]), wi = gi(), Af = mf(), [w0, $r] = Fr(
|
|
8228
|
+
]), wi = gi(), Af = mf(), [w0, $r] = Fr(Go), [b0, Yo] = Fr(Go), _f = (e) => {
|
|
8229
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);
|
|
8230
8230
|
return v.useEffect(() => {
|
|
8231
8231
|
const p = () => {
|
|
@@ -8256,7 +8256,7 @@ var La = ["Enter", " "], p0 = ["ArrowDown", "PageUp", "Home"], If = ["ArrowUp",
|
|
|
8256
8256
|
}
|
|
8257
8257
|
) });
|
|
8258
8258
|
};
|
|
8259
|
-
_f.displayName =
|
|
8259
|
+
_f.displayName = Go;
|
|
8260
8260
|
var S0 = "MenuAnchor", Cl = v.forwardRef(
|
|
8261
8261
|
(e, t) => {
|
|
8262
8262
|
const { __scopeMenu: n, ...r } = e, o = wi(n);
|
|
@@ -8273,8 +8273,8 @@ var Tl = "MenuPortal", [C0, jf] = Fr(Tl, {
|
|
|
8273
8273
|
Pf.displayName = Tl;
|
|
8274
8274
|
var In = "MenuContent", [T0, kl] = Fr(In), Of = v.forwardRef(
|
|
8275
8275
|
(e, t) => {
|
|
8276
|
-
const n = jf(In, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = $r(In, e.__scopeMenu), i =
|
|
8277
|
-
return /* @__PURE__ */ u.jsx(
|
|
8276
|
+
const n = jf(In, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = $r(In, e.__scopeMenu), i = Yo(In, e.__scopeMenu);
|
|
8277
|
+
return /* @__PURE__ */ u.jsx(jo.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ u.jsx(An, { present: r || s.open, children: /* @__PURE__ */ u.jsx(jo.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ u.jsx(k0, { ...o, ref: t }) : /* @__PURE__ */ u.jsx(R0, { ...o, ref: t }) }) }) });
|
|
8278
8278
|
}
|
|
8279
8279
|
), k0 = v.forwardRef(
|
|
8280
8280
|
(e, t) => {
|
|
@@ -8329,7 +8329,7 @@ var In = "MenuContent", [T0, kl] = Fr(In), Of = v.forwardRef(
|
|
|
8329
8329
|
onDismiss: p,
|
|
8330
8330
|
disableOutsideScroll: m,
|
|
8331
8331
|
...g
|
|
8332
|
-
} = e, x = $r(In, n), y =
|
|
8332
|
+
} = e, x = $r(In, n), y = Yo(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) => {
|
|
8333
8333
|
var ee, D;
|
|
8334
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;
|
|
8335
8335
|
(function q(ie) {
|
|
@@ -8429,7 +8429,7 @@ var In = "MenuContent", [T0, kl] = Fr(In), Of = v.forwardRef(
|
|
|
8429
8429
|
}),
|
|
8430
8430
|
onPointerMove: xe(
|
|
8431
8431
|
e.onPointerMove,
|
|
8432
|
-
|
|
8432
|
+
Po((L) => {
|
|
8433
8433
|
const ne = L.target, Q = P.current !== L.clientX;
|
|
8434
8434
|
if (L.currentTarget.contains(ne) && Q) {
|
|
8435
8435
|
const ge = L.clientX > P.current ? "right" : "left";
|
|
@@ -8466,7 +8466,7 @@ var N0 = "MenuLabel", Mf = v.forwardRef(
|
|
|
8466
8466
|
Mf.displayName = N0;
|
|
8467
8467
|
var $s = "MenuItem", hu = "menu.itemSelect", bi = v.forwardRef(
|
|
8468
8468
|
(e, t) => {
|
|
8469
|
-
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 = Yo($s, e.__scopeMenu), a = kl($s, e.__scopeMenu), l = rt(t, s), c = v.useRef(!1), d = () => {
|
|
8470
8470
|
const f = s.current;
|
|
8471
8471
|
if (!n && f) {
|
|
8472
8472
|
const h = new CustomEvent(hu, { bubbles: !0, cancelable: !0 });
|
|
@@ -8504,7 +8504,7 @@ var Df = v.forwardRef(
|
|
|
8504
8504
|
const m = l.current;
|
|
8505
8505
|
m && p((m.textContent ?? "").trim());
|
|
8506
8506
|
}, [s.children]), /* @__PURE__ */ u.jsx(
|
|
8507
|
-
|
|
8507
|
+
jo.ItemSlot,
|
|
8508
8508
|
{
|
|
8509
8509
|
scope: n,
|
|
8510
8510
|
disabled: r,
|
|
@@ -8520,13 +8520,13 @@ var Df = v.forwardRef(
|
|
|
8520
8520
|
ref: c,
|
|
8521
8521
|
onPointerMove: xe(
|
|
8522
8522
|
e.onPointerMove,
|
|
8523
|
-
|
|
8523
|
+
Po((m) => {
|
|
8524
8524
|
r ? i.onItemLeave(m) : (i.onItemEnter(m), m.defaultPrevented || m.currentTarget.focus({ preventScroll: !0 }));
|
|
8525
8525
|
})
|
|
8526
8526
|
),
|
|
8527
8527
|
onPointerLeave: xe(
|
|
8528
8528
|
e.onPointerLeave,
|
|
8529
|
-
|
|
8529
|
+
Po((m) => i.onItemLeave(m))
|
|
8530
8530
|
),
|
|
8531
8531
|
onFocus: xe(e.onFocus, () => f(!0)),
|
|
8532
8532
|
onBlur: xe(e.onBlur, () => f(!1))
|
|
@@ -8636,9 +8636,9 @@ var M0 = "MenuArrow", Vf = v.forwardRef(
|
|
|
8636
8636
|
}
|
|
8637
8637
|
);
|
|
8638
8638
|
Vf.displayName = M0;
|
|
8639
|
-
var D0 = "MenuSub", [zR, Kf] = Fr(D0),
|
|
8639
|
+
var D0 = "MenuSub", [zR, Kf] = Fr(D0), wo = "MenuSubTrigger", qf = v.forwardRef(
|
|
8640
8640
|
(e, t) => {
|
|
8641
|
-
const n = $r(
|
|
8641
|
+
const n = $r(wo, e.__scopeMenu), r = Yo(wo, e.__scopeMenu), o = Kf(wo, e.__scopeMenu), s = kl(wo, e.__scopeMenu), i = v.useRef(null), { pointerGraceTimerRef: a, onPointerGraceIntentChange: l } = s, c = { __scopeMenu: e.__scopeMenu }, d = v.useCallback(() => {
|
|
8642
8642
|
i.current && window.clearTimeout(i.current), i.current = null;
|
|
8643
8643
|
}, []);
|
|
8644
8644
|
return v.useEffect(() => d, [d]), v.useEffect(() => {
|
|
@@ -8662,7 +8662,7 @@ var D0 = "MenuSub", [zR, Kf] = Fr(D0), vo = "MenuSubTrigger", qf = v.forwardRef(
|
|
|
8662
8662
|
},
|
|
8663
8663
|
onPointerMove: xe(
|
|
8664
8664
|
e.onPointerMove,
|
|
8665
|
-
|
|
8665
|
+
Po((f) => {
|
|
8666
8666
|
s.onItemEnter(f), !f.defaultPrevented && !e.disabled && !n.open && !i.current && (s.onPointerGraceIntentChange(null), i.current = window.setTimeout(() => {
|
|
8667
8667
|
n.onOpenChange(!0), d();
|
|
8668
8668
|
}, 100));
|
|
@@ -8670,7 +8670,7 @@ var D0 = "MenuSub", [zR, Kf] = Fr(D0), vo = "MenuSubTrigger", qf = v.forwardRef(
|
|
|
8670
8670
|
),
|
|
8671
8671
|
onPointerLeave: xe(
|
|
8672
8672
|
e.onPointerLeave,
|
|
8673
|
-
|
|
8673
|
+
Po((f) => {
|
|
8674
8674
|
var p, m;
|
|
8675
8675
|
d();
|
|
8676
8676
|
const h = (p = n.content) == null ? void 0 : p.getBoundingClientRect();
|
|
@@ -8706,11 +8706,11 @@ var D0 = "MenuSub", [zR, Kf] = Fr(D0), vo = "MenuSubTrigger", qf = v.forwardRef(
|
|
|
8706
8706
|
) });
|
|
8707
8707
|
}
|
|
8708
8708
|
);
|
|
8709
|
-
qf.displayName =
|
|
8709
|
+
qf.displayName = wo;
|
|
8710
8710
|
var Gf = "MenuSubContent", Yf = v.forwardRef(
|
|
8711
8711
|
(e, t) => {
|
|
8712
|
-
const n = jf(In, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = $r(In, e.__scopeMenu), i =
|
|
8713
|
-
return /* @__PURE__ */ u.jsx(
|
|
8712
|
+
const n = jf(In, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = $r(In, e.__scopeMenu), i = Yo(In, e.__scopeMenu), a = Kf(Gf, e.__scopeMenu), l = v.useRef(null), c = rt(t, l);
|
|
8713
|
+
return /* @__PURE__ */ u.jsx(jo.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ u.jsx(An, { present: r || s.open, children: /* @__PURE__ */ u.jsx(jo.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ u.jsx(
|
|
8714
8714
|
Rl,
|
|
8715
8715
|
{
|
|
8716
8716
|
id: a.contentId,
|
|
@@ -8783,7 +8783,7 @@ function B0(e, t) {
|
|
|
8783
8783
|
const n = { x: e.clientX, y: e.clientY };
|
|
8784
8784
|
return z0(n, t);
|
|
8785
8785
|
}
|
|
8786
|
-
function
|
|
8786
|
+
function Po(e) {
|
|
8787
8787
|
return (t) => t.pointerType === "mouse" ? e(t) : void 0;
|
|
8788
8788
|
}
|
|
8789
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(
|
|
@@ -9529,7 +9529,7 @@ const cn = ut(
|
|
|
9529
9529
|
},
|
|
9530
9530
|
[],
|
|
9531
9531
|
{ singleton: !0 }
|
|
9532
|
-
),
|
|
9532
|
+
), Oo = { lvl: 0 };
|
|
9533
9533
|
function Rh(e, t) {
|
|
9534
9534
|
const n = e.length;
|
|
9535
9535
|
if (n === 0)
|
|
@@ -9543,11 +9543,11 @@ function Rh(e, t) {
|
|
|
9543
9543
|
return s.push({ end: 1 / 0, start: r, value: o }), s;
|
|
9544
9544
|
}
|
|
9545
9545
|
function Ct(e) {
|
|
9546
|
-
return e ===
|
|
9546
|
+
return e === Oo;
|
|
9547
9547
|
}
|
|
9548
|
-
function
|
|
9548
|
+
function Mo(e, t) {
|
|
9549
9549
|
if (!Ct(e))
|
|
9550
|
-
return t === e.k ? e.v : t < e.k ?
|
|
9550
|
+
return t === e.k ? e.v : t < e.k ? Mo(e.l, t) : Mo(e.r, t);
|
|
9551
9551
|
}
|
|
9552
9552
|
function zn(e, t, n = "k") {
|
|
9553
9553
|
if (Ct(e))
|
|
@@ -9564,7 +9564,7 @@ function vn(e, t, n) {
|
|
|
9564
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) }));
|
|
9565
9565
|
}
|
|
9566
9566
|
function Qr() {
|
|
9567
|
-
return
|
|
9567
|
+
return Oo;
|
|
9568
9568
|
}
|
|
9569
9569
|
function ki(e, t, n) {
|
|
9570
9570
|
if (Ct(e))
|
|
@@ -9573,7 +9573,7 @@ function ki(e, t, n) {
|
|
|
9573
9573
|
return KS(Ba(e, r, n));
|
|
9574
9574
|
}
|
|
9575
9575
|
function za(e, t) {
|
|
9576
|
-
if (Ct(e)) return
|
|
9576
|
+
if (Ct(e)) return Oo;
|
|
9577
9577
|
const { k: n, l: r, r: o } = e;
|
|
9578
9578
|
if (t === n) {
|
|
9579
9579
|
if (Ct(r))
|
|
@@ -9648,7 +9648,7 @@ function ca(e) {
|
|
|
9648
9648
|
function Ih(e) {
|
|
9649
9649
|
return Ct(e.r) ? [e.k, e.v] : Ih(e.r);
|
|
9650
9650
|
}
|
|
9651
|
-
function Nh(e, t, n, r =
|
|
9651
|
+
function Nh(e, t, n, r = Oo, o = Oo) {
|
|
9652
9652
|
return { k: e, l: r, lvl: n, r: o, v: t };
|
|
9653
9653
|
}
|
|
9654
9654
|
function yu(e) {
|
|
@@ -9668,7 +9668,7 @@ function KS(e) {
|
|
|
9668
9668
|
function _h(e, t) {
|
|
9669
9669
|
return !!(e && e.startIndex === t.startIndex && e.endIndex === t.endIndex);
|
|
9670
9670
|
}
|
|
9671
|
-
function
|
|
9671
|
+
function Do(e, t) {
|
|
9672
9672
|
return !!(e && e[0] === t[0] && e[1] === t[1]);
|
|
9673
9673
|
}
|
|
9674
9674
|
const Pl = ut(
|
|
@@ -9745,7 +9745,7 @@ function XS(e) {
|
|
|
9745
9745
|
function JS({ offset: e }, t) {
|
|
9746
9746
|
return t === e ? 0 : t < e ? -1 : 1;
|
|
9747
9747
|
}
|
|
9748
|
-
function
|
|
9748
|
+
function Lo(e, t, n) {
|
|
9749
9749
|
if (t.length === 0)
|
|
9750
9750
|
return 0;
|
|
9751
9751
|
const { index: r, offset: o, size: s } = jh(t, e, Ol), i = e - r, a = s * i + (i - 1) * n + o;
|
|
@@ -9785,7 +9785,7 @@ function QS(e, [t, n, r, o]) {
|
|
|
9785
9785
|
const { lastIndex: l, lastOffset: c, lastSize: d, offsetTree: f } = Ua(e.offsetTree, a, i, o);
|
|
9786
9786
|
return {
|
|
9787
9787
|
groupIndices: n,
|
|
9788
|
-
groupOffsetTree: n.reduce((h, p) => vn(h, p,
|
|
9788
|
+
groupOffsetTree: n.reduce((h, p) => vn(h, p, Lo(p, f, o)), Qr()),
|
|
9789
9789
|
lastIndex: l,
|
|
9790
9790
|
lastOffset: c,
|
|
9791
9791
|
lastSize: d,
|
|
@@ -9861,7 +9861,7 @@ const rC = {
|
|
|
9861
9861
|
je((C) => C.length > 0),
|
|
9862
9862
|
Ke(g, p),
|
|
9863
9863
|
pe(([C, b, k]) => {
|
|
9864
|
-
const A = C.reduce((N, _, M) => vn(N, _,
|
|
9864
|
+
const A = C.reduce((N, _, M) => vn(N, _, Lo(_, b.offsetTree, k) || M), Qr());
|
|
9865
9865
|
return {
|
|
9866
9866
|
...b,
|
|
9867
9867
|
groupIndices: C,
|
|
@@ -9947,7 +9947,7 @@ const rC = {
|
|
|
9947
9947
|
pe(([C, b]) => {
|
|
9948
9948
|
const k = b.groupIndices.length > 0, A = [], N = b.lastSize;
|
|
9949
9949
|
if (k) {
|
|
9950
|
-
const _ =
|
|
9950
|
+
const _ = Mo(b.sizeTree, 0);
|
|
9951
9951
|
let M = 0, $ = 0;
|
|
9952
9952
|
for (; M < C; ) {
|
|
9953
9953
|
const P = b.groupIndices[$], B = b.groupIndices.length === $ + 1 ? 1 / 0 : b.groupIndices[$ + 1] - P - 1;
|
|
@@ -10007,7 +10007,7 @@ const rC = {
|
|
|
10007
10007
|
Ke(g, p),
|
|
10008
10008
|
pe(([C, { offsetTree: b }, k]) => {
|
|
10009
10009
|
const A = -C;
|
|
10010
|
-
return
|
|
10010
|
+
return Lo(A, b, k);
|
|
10011
10011
|
})
|
|
10012
10012
|
)
|
|
10013
10013
|
);
|
|
@@ -10028,7 +10028,7 @@ const rC = {
|
|
|
10028
10028
|
M++, _ += z + 1;
|
|
10029
10029
|
}
|
|
10030
10030
|
if (A = Er(b.sizeTree).reduce((z, { k: P, v: B }) => vn(z, Math.max(0, P + C), B), A), _ !== -C) {
|
|
10031
|
-
const z =
|
|
10031
|
+
const z = Mo(b.sizeTree, $);
|
|
10032
10032
|
A = vn(A, 0, z);
|
|
10033
10033
|
const P = zn(b.sizeTree, -C + 1)[1];
|
|
10034
10034
|
A = vn(A, 1, P);
|
|
@@ -10130,7 +10130,7 @@ function Dh(e) {
|
|
|
10130
10130
|
const t = typeof e == "number" ? { index: e } : e;
|
|
10131
10131
|
return t.align || (t.align = "start"), (!t.behavior || !sC) && (t.behavior = "auto"), t.offset || (t.offset = 0), t;
|
|
10132
10132
|
}
|
|
10133
|
-
const
|
|
10133
|
+
const Xo = ut(
|
|
10134
10134
|
([
|
|
10135
10135
|
{ gap: e, listRefresh: t, sizes: n, totalCount: r },
|
|
10136
10136
|
{
|
|
@@ -10163,7 +10163,7 @@ const Yo = ut(
|
|
|
10163
10163
|
P
|
|
10164
10164
|
]) => {
|
|
10165
10165
|
const B = Dh(T), { align: j, behavior: W, offset: F } = B, L = k - 1, ne = Oh(B, C, L);
|
|
10166
|
-
let Q =
|
|
10166
|
+
let Q = Lo(ne, C.offsetTree, $) + N;
|
|
10167
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);
|
|
10168
10168
|
const ge = (_e) => {
|
|
10169
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));
|
|
@@ -10212,7 +10212,7 @@ function Dl(e, t) {
|
|
|
10212
10212
|
const n = t - 1;
|
|
10213
10213
|
return typeof e == "number" ? e : e.index === "LAST" ? n : e.index;
|
|
10214
10214
|
}
|
|
10215
|
-
const
|
|
10215
|
+
const Jo = ut(
|
|
10216
10216
|
([{ defaultItemSize: e, listRefresh: t, sizes: n }, { scrollTop: r }, { scrollTargetReached: o, scrollToIndex: s }, { didMount: i }]) => {
|
|
10217
10217
|
const a = te(!0), l = te(0), c = te(!0);
|
|
10218
10218
|
return be(
|
|
@@ -10253,13 +10253,13 @@ const Xo = ut(
|
|
|
10253
10253
|
scrolledToInitialItem: a
|
|
10254
10254
|
};
|
|
10255
10255
|
},
|
|
10256
|
-
Nt(Qn, cn,
|
|
10256
|
+
Nt(Qn, cn, Xo, yr),
|
|
10257
10257
|
{ singleton: !0 }
|
|
10258
10258
|
);
|
|
10259
10259
|
function Lh(e, t) {
|
|
10260
10260
|
return Math.abs(e - t) < 1.01;
|
|
10261
10261
|
}
|
|
10262
|
-
const
|
|
10262
|
+
const Fo = "up", Co = "down", aC = "none", lC = {
|
|
10263
10263
|
atBottom: !1,
|
|
10264
10264
|
notAtBottomBecause: "NOT_SHOWING_LAST_ITEM",
|
|
10265
10265
|
state: {
|
|
@@ -10268,7 +10268,7 @@ const Lo = "up", So = "down", aC = "none", lC = {
|
|
|
10268
10268
|
scrollTop: 0,
|
|
10269
10269
|
viewportHeight: 0
|
|
10270
10270
|
}
|
|
10271
|
-
}, cC = 0,
|
|
10271
|
+
}, cC = 0, Zo = ut(([{ footerHeight: e, headerHeight: t, scrollBy: n, scrollContainerState: r, scrollTop: o, viewportHeight: s }]) => {
|
|
10272
10272
|
const i = te(!1), a = te(!0), l = nt(), c = nt(), d = te(4), f = te(cC), h = sn(
|
|
10273
10273
|
X(
|
|
10274
10274
|
$a(X(Ae(o), Or(1), Kn(!0)), X(Ae(o), Or(1), Kn(!1), gu(100))),
|
|
@@ -10355,15 +10355,15 @@ const Lo = "up", So = "down", aC = "none", lC = {
|
|
|
10355
10355
|
),
|
|
10356
10356
|
i
|
|
10357
10357
|
), be(X(i, nr(50)), l);
|
|
10358
|
-
const x = te(
|
|
10358
|
+
const x = te(Co);
|
|
10359
10359
|
be(
|
|
10360
10360
|
X(
|
|
10361
10361
|
r,
|
|
10362
10362
|
pe(({ scrollTop: w }) => w),
|
|
10363
10363
|
It(),
|
|
10364
10364
|
Yn(
|
|
10365
|
-
(w, S) => Ft(p) ? { direction: w.direction, prevScrollTop: S } : { direction: S < w.prevScrollTop ?
|
|
10366
|
-
{ direction:
|
|
10365
|
+
(w, S) => Ft(p) ? { direction: w.direction, prevScrollTop: S } : { direction: S < w.prevScrollTop ? Fo : Co, prevScrollTop: S },
|
|
10366
|
+
{ direction: Co, prevScrollTop: 0 }
|
|
10367
10367
|
),
|
|
10368
10368
|
pe((w) => w.direction)
|
|
10369
10369
|
),
|
|
@@ -10402,7 +10402,7 @@ const Lo = "up", So = "down", aC = "none", lC = {
|
|
|
10402
10402
|
};
|
|
10403
10403
|
}, Nt(cn)), Hs = "top", Us = "bottom", wu = "none";
|
|
10404
10404
|
function bu(e, t, n) {
|
|
10405
|
-
return typeof e == "number" ? n ===
|
|
10405
|
+
return typeof e == "number" ? n === Fo && t === Hs || n === Co && t === Us ? e : 0 : n === Fo ? t === Hs ? e.main : e.reverse : t === Us ? e.main : e.reverse;
|
|
10406
10406
|
}
|
|
10407
10407
|
function Su(e, t) {
|
|
10408
10408
|
var n;
|
|
@@ -10416,7 +10416,7 @@ const Ll = ut(
|
|
|
10416
10416
|
Ae(r),
|
|
10417
10417
|
Ae(o),
|
|
10418
10418
|
Ae(n),
|
|
10419
|
-
Ae(s,
|
|
10419
|
+
Ae(s, Do),
|
|
10420
10420
|
Ae(l),
|
|
10421
10421
|
Ae(i),
|
|
10422
10422
|
Ae(t),
|
|
@@ -10438,14 +10438,14 @@ const Ll = ut(
|
|
|
10438
10438
|
const T = d - w, C = x + y, b = Math.max(h - T, 0);
|
|
10439
10439
|
let k = wu;
|
|
10440
10440
|
const A = Su(S, Hs), N = Su(S, Us);
|
|
10441
|
-
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 = Fo), m < d - b + f + N && (k = Co), k !== wu ? [
|
|
10442
10442
|
Math.max(T - h - bu(g, Hs, k) - A, 0),
|
|
10443
10443
|
T - b - y + f + bu(g, Us, k) + N
|
|
10444
10444
|
] : null;
|
|
10445
10445
|
}
|
|
10446
10446
|
),
|
|
10447
10447
|
je((d) => d != null),
|
|
10448
|
-
It(
|
|
10448
|
+
It(Do)
|
|
10449
10449
|
),
|
|
10450
10450
|
[0, 0]
|
|
10451
10451
|
);
|
|
@@ -10564,7 +10564,7 @@ const Br = ut(
|
|
|
10564
10564
|
Bt(
|
|
10565
10565
|
p,
|
|
10566
10566
|
m,
|
|
10567
|
-
Ae(l,
|
|
10567
|
+
Ae(l, Do),
|
|
10568
10568
|
Ae(o),
|
|
10569
10569
|
Ae(r),
|
|
10570
10570
|
Ae(c),
|
|
@@ -10679,7 +10679,7 @@ const Br = ut(
|
|
|
10679
10679
|
Ke(o, e),
|
|
10680
10680
|
je(([{ items: b }, k]) => b[b.length - 1].originalIndex === k - 1),
|
|
10681
10681
|
pe(([, b, k]) => [b - 1, k]),
|
|
10682
|
-
It(
|
|
10682
|
+
It(Do),
|
|
10683
10683
|
pe(([b]) => b)
|
|
10684
10684
|
)
|
|
10685
10685
|
), T = bn(
|
|
@@ -10714,9 +10714,9 @@ const Br = ut(
|
|
|
10714
10714
|
Qn,
|
|
10715
10715
|
Mh,
|
|
10716
10716
|
Ll,
|
|
10717
|
-
Xo,
|
|
10718
|
-
Yo,
|
|
10719
10717
|
Jo,
|
|
10718
|
+
Xo,
|
|
10719
|
+
Zo,
|
|
10720
10720
|
yr,
|
|
10721
10721
|
Pl
|
|
10722
10722
|
),
|
|
@@ -10771,7 +10771,7 @@ const Br = ut(
|
|
|
10771
10771
|
Ke(t, l, n, s, o, r, a),
|
|
10772
10772
|
Ke(e),
|
|
10773
10773
|
pe(([[f, h, p, m, g, x, y, w], S]) => {
|
|
10774
|
-
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), _ = Lo(N, h.offsetTree, S) + g + x, M = _ + zn(h.sizeTree, N)[1], $ = w + x, z = w + p - y, P = b({
|
|
10775
10775
|
itemBottom: M,
|
|
10776
10776
|
itemTop: _,
|
|
10777
10777
|
locationParams: { align: T, behavior: C, ...A },
|
|
@@ -10796,7 +10796,7 @@ const Br = ut(
|
|
|
10796
10796
|
scrollIntoView: d
|
|
10797
10797
|
};
|
|
10798
10798
|
},
|
|
10799
|
-
Nt(Qn, cn,
|
|
10799
|
+
Nt(Qn, cn, Xo, Br, xr),
|
|
10800
10800
|
{ singleton: !0 }
|
|
10801
10801
|
);
|
|
10802
10802
|
function Tu(e) {
|
|
@@ -10898,9 +10898,9 @@ const hC = (e, t) => typeof e == "function" ? Tu(e(t)) : t && Tu(e), pC = ut(
|
|
|
10898
10898
|
},
|
|
10899
10899
|
Nt(
|
|
10900
10900
|
Qn,
|
|
10901
|
-
|
|
10902
|
-
Yo,
|
|
10901
|
+
Zo,
|
|
10903
10902
|
Xo,
|
|
10903
|
+
Jo,
|
|
10904
10904
|
yr,
|
|
10905
10905
|
xr,
|
|
10906
10906
|
cn,
|
|
@@ -10918,7 +10918,7 @@ const hC = (e, t) => typeof e == "function" ? Tu(e(t)) : t && Tu(e), pC = ut(
|
|
|
10918
10918
|
),
|
|
10919
10919
|
i
|
|
10920
10920
|
), {}),
|
|
10921
|
-
Nt(Qn,
|
|
10921
|
+
Nt(Qn, Jo, Br, yr),
|
|
10922
10922
|
{ singleton: !0 }
|
|
10923
10923
|
), gC = ut(
|
|
10924
10924
|
([{ didMount: e }, { scrollTo: t }, { listState: n }]) => {
|
|
@@ -10977,7 +10977,7 @@ const hC = (e, t) => typeof e == "function" ? Tu(e(t)) : t && Tu(e), pC = ut(
|
|
|
10977
10977
|
}
|
|
10978
10978
|
), { isSeeking: t, scrollSeekConfiguration: r, scrollSeekRangeChanged: n, scrollVelocity: e };
|
|
10979
10979
|
},
|
|
10980
|
-
Nt(
|
|
10980
|
+
Nt(Zo),
|
|
10981
10981
|
{ singleton: !0 }
|
|
10982
10982
|
), Fl = ut(([{ scrollContainerState: e, scrollTo: t }]) => {
|
|
10983
10983
|
const n = nt(), r = nt(), o = nt(), s = te(!1), i = te(void 0);
|
|
@@ -11043,7 +11043,7 @@ const hC = (e, t) => typeof e == "function" ? Tu(e(t)) : t && Tu(e), pC = ut(
|
|
|
11043
11043
|
restoreStateFrom: d
|
|
11044
11044
|
};
|
|
11045
11045
|
},
|
|
11046
|
-
Nt(Qn, cn,
|
|
11046
|
+
Nt(Qn, cn, Jo, yr, Fl)
|
|
11047
11047
|
);
|
|
11048
11048
|
function yC(e) {
|
|
11049
11049
|
return { align: "start", index: 0, offset: e.scrollTop };
|
|
@@ -11086,7 +11086,7 @@ const wC = Uh(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
11086
11086
|
),
|
|
11087
11087
|
je(([y]) => y !== 0),
|
|
11088
11088
|
Ke(r, a, n, o, p, m),
|
|
11089
|
-
je(([, y, w, S, , , T]) => !T && !S && y !== 0 && w ===
|
|
11089
|
+
je(([, y, w, S, , , T]) => !T && !S && y !== 0 && w === Fo),
|
|
11090
11090
|
pe(([[y], , , , , w]) => (w("Upward scrolling compensation", { amount: y }, xn.DEBUG), y))
|
|
11091
11091
|
)
|
|
11092
11092
|
);
|
|
@@ -11121,7 +11121,7 @@ const wC = Uh(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
11121
11121
|
return b(y);
|
|
11122
11122
|
{
|
|
11123
11123
|
let k = 0;
|
|
11124
|
-
const A =
|
|
11124
|
+
const A = Mo(T, 0);
|
|
11125
11125
|
let N = 0, _ = 0;
|
|
11126
11126
|
for (; N < y; ) {
|
|
11127
11127
|
N++, k += A;
|
|
@@ -11141,7 +11141,7 @@ const wC = Uh(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
11141
11141
|
}
|
|
11142
11142
|
), { deviation: e };
|
|
11143
11143
|
},
|
|
11144
|
-
Nt(cn,
|
|
11144
|
+
Nt(cn, Zo, Br, Qn, xr, Pl)
|
|
11145
11145
|
), SC = ut(
|
|
11146
11146
|
([
|
|
11147
11147
|
e,
|
|
@@ -11246,12 +11246,12 @@ const wC = Uh(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
11246
11246
|
}),
|
|
11247
11247
|
Nt(
|
|
11248
11248
|
Qn,
|
|
11249
|
-
|
|
11249
|
+
Jo,
|
|
11250
11250
|
cn,
|
|
11251
11251
|
xC,
|
|
11252
11252
|
pC,
|
|
11253
11253
|
Br,
|
|
11254
|
-
|
|
11254
|
+
Xo,
|
|
11255
11255
|
bC,
|
|
11256
11256
|
vC,
|
|
11257
11257
|
Mh,
|
|
@@ -11773,7 +11773,7 @@ const Eu = {
|
|
|
11773
11773
|
offsetBottom: 0,
|
|
11774
11774
|
offsetTop: 0,
|
|
11775
11775
|
top: 0
|
|
11776
|
-
}, { ceil: Iu, floor: Ws, max:
|
|
11776
|
+
}, { ceil: Iu, floor: Ws, max: To, min: ha, round: Nu } = Math;
|
|
11777
11777
|
function Au(e, t, n) {
|
|
11778
11778
|
return Array.from({ length: t - e + 1 }).map((r, o) => ({ data: n === null ? null : n[o + e], index: o + e }));
|
|
11779
11779
|
}
|
|
@@ -11898,7 +11898,7 @@ const GC = /* @__PURE__ */ ut(
|
|
|
11898
11898
|
}
|
|
11899
11899
|
const Je = Qh(Qe, st, ot);
|
|
11900
11900
|
let qe, et;
|
|
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,
|
|
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, To(et, Je - 1)), qe = ha(et, To(0, qe))) : (qe = 0, et = -1);
|
|
11902
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;
|
|
11903
11903
|
return { bottom: kt, itemHeight: Xe, items: Mt, itemWidth: st, offsetBottom: At, offsetTop: tt, top: tt };
|
|
11904
11904
|
}
|
|
@@ -11920,7 +11920,7 @@ const GC = /* @__PURE__ */ ut(
|
|
|
11920
11920
|
const { bottom: H, top: We } = _u(D, ce, q, ie);
|
|
11921
11921
|
return [We, H];
|
|
11922
11922
|
}),
|
|
11923
|
-
It(
|
|
11923
|
+
It(Do)
|
|
11924
11924
|
),
|
|
11925
11925
|
t
|
|
11926
11926
|
);
|
|
@@ -11972,7 +11972,7 @@ const GC = /* @__PURE__ */ ut(
|
|
|
11972
11972
|
pe(([D, q, ie, ce, H]) => {
|
|
11973
11973
|
const We = Dh(D), { align: re, behavior: ye, offset: Pe } = We;
|
|
11974
11974
|
let $e = We.index;
|
|
11975
|
-
$e === "LAST" && ($e = ce - 1), $e =
|
|
11975
|
+
$e === "LAST" && ($e = ce - 1), $e = To(0, $e, ha(ce - 1, $e));
|
|
11976
11976
|
let ot = Wa(q, H, ie, $e);
|
|
11977
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 };
|
|
11978
11978
|
})
|
|
@@ -12034,10 +12034,10 @@ const GC = /* @__PURE__ */ ut(
|
|
|
12034
12034
|
...C
|
|
12035
12035
|
};
|
|
12036
12036
|
},
|
|
12037
|
-
Nt(Ll, cn,
|
|
12037
|
+
Nt(Ll, cn, Zo, Hh, yr, Fl, xr)
|
|
12038
12038
|
);
|
|
12039
12039
|
function Qh(e, t, n) {
|
|
12040
|
-
return
|
|
12040
|
+
return To(1, Ws((e + n) / (Ws(t) + n)));
|
|
12041
12041
|
}
|
|
12042
12042
|
function _u(e, t, n, r) {
|
|
12043
12043
|
const { height: o } = n;
|
|
@@ -12047,7 +12047,7 @@ function _u(e, t, n, r) {
|
|
|
12047
12047
|
return { bottom: Wa(e, t, n, r[r.length - 1].index) + o, top: s };
|
|
12048
12048
|
}
|
|
12049
12049
|
function Wa(e, t, n, r) {
|
|
12050
|
-
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 + To(0, s - 1) * t.row;
|
|
12051
12051
|
return i > 0 ? i + t.row : i;
|
|
12052
12052
|
}
|
|
12053
12053
|
const YC = /* @__PURE__ */ ut(() => {
|
|
@@ -12253,7 +12253,7 @@ const sT = ni(
|
|
|
12253
12253
|
function tp({ className: e, variant: t, ...n }) {
|
|
12254
12254
|
return /* @__PURE__ */ u.jsx("div", { className: oe(sT({ variant: t }), e), ...n });
|
|
12255
12255
|
}
|
|
12256
|
-
const
|
|
12256
|
+
const ko = v.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
|
|
12257
12257
|
"div",
|
|
12258
12258
|
{
|
|
12259
12259
|
ref: n,
|
|
@@ -12264,8 +12264,8 @@ const To = v.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
|
|
|
12264
12264
|
...t
|
|
12265
12265
|
}
|
|
12266
12266
|
));
|
|
12267
|
-
|
|
12268
|
-
const
|
|
12267
|
+
ko.displayName = "Card";
|
|
12268
|
+
const Ro = v.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
|
|
12269
12269
|
"div",
|
|
12270
12270
|
{
|
|
12271
12271
|
ref: n,
|
|
@@ -12273,8 +12273,8 @@ const ko = v.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
|
|
|
12273
12273
|
...t
|
|
12274
12274
|
}
|
|
12275
12275
|
));
|
|
12276
|
-
|
|
12277
|
-
const
|
|
12276
|
+
Ro.displayName = "CardHeader";
|
|
12277
|
+
const Eo = v.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
|
|
12278
12278
|
"h3",
|
|
12279
12279
|
{
|
|
12280
12280
|
ref: n,
|
|
@@ -12285,7 +12285,7 @@ const Ro = v.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
|
|
|
12285
12285
|
...t
|
|
12286
12286
|
}
|
|
12287
12287
|
));
|
|
12288
|
-
|
|
12288
|
+
Eo.displayName = "CardTitle";
|
|
12289
12289
|
const np = v.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
|
|
12290
12290
|
"p",
|
|
12291
12291
|
{
|
|
@@ -12295,8 +12295,8 @@ const np = v.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
|
|
|
12295
12295
|
}
|
|
12296
12296
|
));
|
|
12297
12297
|
np.displayName = "CardDescription";
|
|
12298
|
-
const
|
|
12299
|
-
|
|
12298
|
+
const Io = v.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx("div", { ref: n, className: oe("p-6 pt-0", e), ...t }));
|
|
12299
|
+
Io.displayName = "CardContent";
|
|
12300
12300
|
const rp = v.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
|
|
12301
12301
|
"div",
|
|
12302
12302
|
{
|
|
@@ -12315,7 +12315,7 @@ const ma = /* @__PURE__ */ new Map(), Pu = (e) => {
|
|
|
12315
12315
|
if (ma.has(e))
|
|
12316
12316
|
return;
|
|
12317
12317
|
const t = setTimeout(() => {
|
|
12318
|
-
ma.delete(e),
|
|
12318
|
+
ma.delete(e), No({
|
|
12319
12319
|
type: "REMOVE_TOAST",
|
|
12320
12320
|
toastId: e
|
|
12321
12321
|
});
|
|
@@ -12360,17 +12360,17 @@ const ma = /* @__PURE__ */ new Map(), Pu = (e) => {
|
|
|
12360
12360
|
}
|
|
12361
12361
|
}, Ns = [];
|
|
12362
12362
|
let As = { toasts: [] };
|
|
12363
|
-
function
|
|
12363
|
+
function No(e) {
|
|
12364
12364
|
As = cT(As, e), Ns.forEach((t) => {
|
|
12365
12365
|
t(As);
|
|
12366
12366
|
});
|
|
12367
12367
|
}
|
|
12368
12368
|
function uT({ ...e }) {
|
|
12369
|
-
const t = lT(), n = (o) =>
|
|
12369
|
+
const t = lT(), n = (o) => No({
|
|
12370
12370
|
type: "UPDATE_TOAST",
|
|
12371
12371
|
toast: { ...o, id: t }
|
|
12372
|
-
}), r = () =>
|
|
12373
|
-
return
|
|
12372
|
+
}), r = () => No({ type: "DISMISS_TOAST", toastId: t });
|
|
12373
|
+
return No({
|
|
12374
12374
|
type: "ADD_TOAST",
|
|
12375
12375
|
toast: {
|
|
12376
12376
|
...e,
|
|
@@ -12394,7 +12394,7 @@ function Hl() {
|
|
|
12394
12394
|
}), [e]), {
|
|
12395
12395
|
...e,
|
|
12396
12396
|
toast: uT,
|
|
12397
|
-
dismiss: (n) =>
|
|
12397
|
+
dismiss: (n) => No({ type: "DISMISS_TOAST", toastId: n })
|
|
12398
12398
|
};
|
|
12399
12399
|
}
|
|
12400
12400
|
async function op(e, t) {
|
|
@@ -12440,12 +12440,12 @@ function Ul(e) {
|
|
|
12440
12440
|
function sp(e) {
|
|
12441
12441
|
return !!(e && typeof e == "object" && (e.type === "file" || e.mimeType || e.filename || e.sourceType === "base64"));
|
|
12442
12442
|
}
|
|
12443
|
-
function
|
|
12443
|
+
function $o(e) {
|
|
12444
12444
|
if (typeof e == "string")
|
|
12445
12445
|
return e;
|
|
12446
12446
|
if (e && typeof e == "object") {
|
|
12447
12447
|
if (Array.isArray(e)) {
|
|
12448
|
-
const n = e.map(
|
|
12448
|
+
const n = e.map($o).filter((r) => r !== void 0);
|
|
12449
12449
|
if (!n.length) {
|
|
12450
12450
|
console.debug("[message-utils] sanitizeForDisplay - array emptied -> returning undefined", { originalLength: e.length });
|
|
12451
12451
|
return;
|
|
@@ -12469,7 +12469,7 @@ function Fo(e) {
|
|
|
12469
12469
|
if (n === "data" && typeof r == "string" && r.length > 100)
|
|
12470
12470
|
t[n] = `[base64 ${r.length} chars omitted]`;
|
|
12471
12471
|
else {
|
|
12472
|
-
const o =
|
|
12472
|
+
const o = $o(r);
|
|
12473
12473
|
o !== void 0 && (t[n] = o);
|
|
12474
12474
|
}
|
|
12475
12475
|
}
|
|
@@ -12484,11 +12484,11 @@ function Fo(e) {
|
|
|
12484
12484
|
}
|
|
12485
12485
|
return e;
|
|
12486
12486
|
}
|
|
12487
|
-
function
|
|
12487
|
+
function zo(e) {
|
|
12488
12488
|
if (typeof e == "string") return e;
|
|
12489
12489
|
if (sp(e)) return "";
|
|
12490
12490
|
try {
|
|
12491
|
-
const t =
|
|
12491
|
+
const t = $o(e);
|
|
12492
12492
|
return t === void 0 ? "" : typeof t == "string" ? t : JSON.stringify(t, null, 2);
|
|
12493
12493
|
} catch {
|
|
12494
12494
|
return "";
|
|
@@ -12498,7 +12498,7 @@ function hT(e) {
|
|
|
12498
12498
|
return typeof e != "string" ? !1 : /^[\s\n]*[-*]\s|^[\s\n]*#+\s|```|^\s*\[.*\]\(|^>\s/.test(e);
|
|
12499
12499
|
}
|
|
12500
12500
|
function pT(e) {
|
|
12501
|
-
const t =
|
|
12501
|
+
const t = zo(e);
|
|
12502
12502
|
return typeof e == "string" && hT(e) ? { content: e, isMarkdown: !0 } : { content: t, isMarkdown: !1 };
|
|
12503
12503
|
}
|
|
12504
12504
|
function Vs(e) {
|
|
@@ -14567,7 +14567,7 @@ function ps(e) {
|
|
|
14567
14567
|
function GT(e) {
|
|
14568
14568
|
const t = (o) => {
|
|
14569
14569
|
try {
|
|
14570
|
-
const s =
|
|
14570
|
+
const s = $o(o);
|
|
14571
14571
|
return typeof s == "string" ? s : JSON.stringify(s ?? "");
|
|
14572
14572
|
} catch {
|
|
14573
14573
|
return "";
|
|
@@ -15185,7 +15185,7 @@ const Hu = V.memo(function({
|
|
|
15185
15185
|
return o && s;
|
|
15186
15186
|
});
|
|
15187
15187
|
function Lp({ data: e }) {
|
|
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:
|
|
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: zo(e) }) : /* @__PURE__ */ u.jsx("pre", { className: "font-mono text-xs bg-background/50 rounded border p-2 whitespace-pre-wrap break-words", children: zo(e) });
|
|
15189
15189
|
}
|
|
15190
15190
|
function JT({
|
|
15191
15191
|
interruptPart: e,
|
|
@@ -15201,23 +15201,23 @@ function JT({
|
|
|
15201
15201
|
if (typeof s == "string")
|
|
15202
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 });
|
|
15203
15203
|
else {
|
|
15204
|
-
const c =
|
|
15204
|
+
const c = zo(s);
|
|
15205
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 });
|
|
15206
15206
|
}
|
|
15207
15207
|
const l = o ? "Please approve or reject this action to resume the workflow." : "Waiting for approval from another participant.";
|
|
15208
15208
|
return /* @__PURE__ */ u.jsxs(
|
|
15209
|
-
|
|
15209
|
+
ko,
|
|
15210
15210
|
{
|
|
15211
15211
|
className: oe(
|
|
15212
15212
|
"border-blue-200 dark:border-blue-800 bg-blue-50/50 dark:bg-blue-950/10 transition-shadow",
|
|
15213
15213
|
o ? "shadow-md ring-1 ring-blue-300 dark:ring-blue-500/70" : "opacity-80"
|
|
15214
15214
|
),
|
|
15215
15215
|
children: [
|
|
15216
|
-
/* @__PURE__ */ u.jsxs(
|
|
15217
|
-
/* @__PURE__ */ u.jsx(
|
|
15216
|
+
/* @__PURE__ */ u.jsxs(Ro, { className: "pb-3", children: [
|
|
15217
|
+
/* @__PURE__ */ u.jsx(Eo, { className: "text-blue-900 dark:text-blue-100 text-base", children: i }),
|
|
15218
15218
|
/* @__PURE__ */ u.jsx(np, { className: "text-blue-700 dark:text-blue-300 text-sm", children: l })
|
|
15219
15219
|
] }),
|
|
15220
|
-
a && /* @__PURE__ */ u.jsx(
|
|
15220
|
+
a && /* @__PURE__ */ u.jsx(Io, { className: "pt-0 pb-3", children: a }),
|
|
15221
15221
|
/* @__PURE__ */ u.jsx(rp, { className: "pt-0", children: /* @__PURE__ */ u.jsxs("div", { className: "flex gap-2 ml-auto", children: [
|
|
15222
15222
|
/* @__PURE__ */ u.jsx(
|
|
15223
15223
|
pt,
|
|
@@ -15368,7 +15368,7 @@ function ek({ message: e, viewMode: t }) {
|
|
|
15368
15368
|
return /* @__PURE__ */ u.jsx(Lp, { data: d });
|
|
15369
15369
|
const f = typeof d == "string" ? d : (() => {
|
|
15370
15370
|
try {
|
|
15371
|
-
return
|
|
15371
|
+
return zo(d);
|
|
15372
15372
|
} catch {
|
|
15373
15373
|
return String(d ?? "");
|
|
15374
15374
|
}
|
|
@@ -15398,7 +15398,7 @@ function ek({ message: e, viewMode: t }) {
|
|
|
15398
15398
|
const f = Vs(d);
|
|
15399
15399
|
return s(f);
|
|
15400
15400
|
}
|
|
15401
|
-
const a =
|
|
15401
|
+
const a = $o(i), l = Vs(a);
|
|
15402
15402
|
return s(l);
|
|
15403
15403
|
}
|
|
15404
15404
|
const Uu = (e, t) => (e == null ? void 0 : e.id) ?? `message-${t}`, tk = (e) => {
|
|
@@ -15809,11 +15809,11 @@ function ga({
|
|
|
15809
15809
|
if (!an) return null;
|
|
15810
15810
|
const Un = dt(at.metadata, "source");
|
|
15811
15811
|
dt(at.metadata, "next");
|
|
15812
|
-
const { text: po, messageId:
|
|
15812
|
+
const { text: po, messageId: Qo } = gt(at.messages), Sn = po && po.replace(/\s+/g, " ").trim() || dt(at.metadata, "title") || dt(at.metadata, "label") || Ut || Un || "Checkpoint", es = Sn.length > 60 ? `${Sn.slice(0, 57)}…` : Sn;
|
|
15813
15813
|
return {
|
|
15814
15814
|
id: an,
|
|
15815
|
-
label:
|
|
15816
|
-
messageId:
|
|
15815
|
+
label: es,
|
|
15816
|
+
messageId: Qo ?? null,
|
|
15817
15817
|
createdAt: at.createdAt ?? null,
|
|
15818
15818
|
step: xt(at.metadata, "step"),
|
|
15819
15819
|
source: Un ?? null,
|
|
@@ -17898,9 +17898,9 @@ var Qs = "SelectItem", [Vk, Nm] = ho(Qs), Am = v.forwardRef(
|
|
|
17898
17898
|
}
|
|
17899
17899
|
);
|
|
17900
17900
|
Am.displayName = Qs;
|
|
17901
|
-
var
|
|
17901
|
+
var bo = "SelectItemText", _m = v.forwardRef(
|
|
17902
17902
|
(e, t) => {
|
|
17903
|
-
const { __scopeSelect: n, className: r, style: o, ...s } = e, i = vr(
|
|
17903
|
+
const { __scopeSelect: n, className: r, style: o, ...s } = e, i = vr(bo, n), a = wr(bo, n), l = Nm(bo, n), c = Ok(bo, n), [d, f] = v.useState(null), h = rt(
|
|
17904
17904
|
t,
|
|
17905
17905
|
(y) => f(y),
|
|
17906
17906
|
l.onItemTextChange,
|
|
@@ -17918,7 +17918,7 @@ var wo = "SelectItemText", _m = v.forwardRef(
|
|
|
17918
17918
|
] });
|
|
17919
17919
|
}
|
|
17920
17920
|
);
|
|
17921
|
-
_m.displayName =
|
|
17921
|
+
_m.displayName = bo;
|
|
17922
17922
|
var jm = "SelectItemIndicator", Pm = v.forwardRef(
|
|
17923
17923
|
(e, t) => {
|
|
17924
17924
|
const { __scopeSelect: n, ...r } = e;
|
|
@@ -18353,12 +18353,12 @@ function YR({ settings: e, onSettingsChange: t, className: n = "" }) {
|
|
|
18353
18353
|
/* @__PURE__ */ u.jsx(og, { children: "Configure your chat interface, API connection, and behavior preferences." })
|
|
18354
18354
|
] }),
|
|
18355
18355
|
/* @__PURE__ */ u.jsxs("div", { className: "space-y-6 py-6", children: [
|
|
18356
|
-
/* @__PURE__ */ u.jsxs(
|
|
18357
|
-
/* @__PURE__ */ u.jsx(
|
|
18356
|
+
/* @__PURE__ */ u.jsxs(ko, { children: [
|
|
18357
|
+
/* @__PURE__ */ u.jsx(Ro, { className: "pb-3", children: /* @__PURE__ */ u.jsxs(Eo, { className: "text-lg flex items-center gap-2", children: [
|
|
18358
18358
|
/* @__PURE__ */ u.jsx(Ag, { className: "h-5 w-5" }),
|
|
18359
18359
|
"API Configuration"
|
|
18360
18360
|
] }) }),
|
|
18361
|
-
/* @__PURE__ */ u.jsxs(
|
|
18361
|
+
/* @__PURE__ */ u.jsxs(Io, { className: "space-y-4", children: [
|
|
18362
18362
|
/* @__PURE__ */ u.jsxs("div", { className: "space-y-2", children: [
|
|
18363
18363
|
/* @__PURE__ */ u.jsx(kn, { htmlFor: "api-url", children: "API Base URL" }),
|
|
18364
18364
|
/* @__PURE__ */ u.jsxs("div", { className: "flex gap-2", children: [
|
|
@@ -18420,12 +18420,12 @@ function YR({ settings: e, onSettingsChange: t, className: n = "" }) {
|
|
|
18420
18420
|
] })
|
|
18421
18421
|
] })
|
|
18422
18422
|
] }),
|
|
18423
|
-
/* @__PURE__ */ u.jsxs(
|
|
18424
|
-
/* @__PURE__ */ u.jsx(
|
|
18423
|
+
/* @__PURE__ */ u.jsxs(ko, { children: [
|
|
18424
|
+
/* @__PURE__ */ u.jsx(Ro, { className: "pb-3", children: /* @__PURE__ */ u.jsxs(Eo, { className: "text-lg flex items-center gap-2", children: [
|
|
18425
18425
|
/* @__PURE__ */ u.jsx(Pg, { className: "h-5 w-5" }),
|
|
18426
18426
|
"Interface Settings"
|
|
18427
18427
|
] }) }),
|
|
18428
|
-
/* @__PURE__ */ u.jsxs(
|
|
18428
|
+
/* @__PURE__ */ u.jsxs(Io, { className: "space-y-4", children: [
|
|
18429
18429
|
/* @__PURE__ */ u.jsxs("div", { className: "space-y-2", children: [
|
|
18430
18430
|
/* @__PURE__ */ u.jsx(kn, { htmlFor: "layout", children: "Layout Style" }),
|
|
18431
18431
|
/* @__PURE__ */ u.jsxs(
|
|
@@ -18515,12 +18515,12 @@ function YR({ settings: e, onSettingsChange: t, className: n = "" }) {
|
|
|
18515
18515
|
] })
|
|
18516
18516
|
] })
|
|
18517
18517
|
] }),
|
|
18518
|
-
/* @__PURE__ */ u.jsxs(
|
|
18519
|
-
/* @__PURE__ */ u.jsx(
|
|
18518
|
+
/* @__PURE__ */ u.jsxs(ko, { children: [
|
|
18519
|
+
/* @__PURE__ */ u.jsx(Ro, { className: "pb-3", children: /* @__PURE__ */ u.jsxs(Eo, { className: "text-lg flex items-center gap-2", children: [
|
|
18520
18520
|
/* @__PURE__ */ u.jsx(Og, { className: "h-5 w-5" }),
|
|
18521
18521
|
"Behavior Settings"
|
|
18522
18522
|
] }) }),
|
|
18523
|
-
/* @__PURE__ */ u.jsxs(
|
|
18523
|
+
/* @__PURE__ */ u.jsxs(Io, { className: "space-y-4", children: [
|
|
18524
18524
|
/* @__PURE__ */ u.jsxs("div", { className: "flex items-center justify-between", children: [
|
|
18525
18525
|
/* @__PURE__ */ u.jsxs("div", { children: [
|
|
18526
18526
|
/* @__PURE__ */ u.jsx(kn, { htmlFor: "auto-save", children: "Auto-save Conversations" }),
|