teodor-new-chat-ui 4.3.360 → 4.3.361
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 +180 -180
- package/dist/index.umd.js +7 -7
- package/dist/types/models.d.ts +14 -0
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -397,7 +397,7 @@ function vg() {
|
|
|
397
397
|
}
|
|
398
398
|
return I.key !== void 0;
|
|
399
399
|
}
|
|
400
|
-
function
|
|
400
|
+
function Qt(I, X) {
|
|
401
401
|
typeof I.ref == "string" && dt.current;
|
|
402
402
|
}
|
|
403
403
|
function Ve(I, X) {
|
|
@@ -454,7 +454,7 @@ function vg() {
|
|
|
454
454
|
function Xe(I, X, ue, Te, Ye) {
|
|
455
455
|
{
|
|
456
456
|
var Qe, ze = {}, He = null, It = null;
|
|
457
|
-
ue !== void 0 && (kt(ue), He = "" + ue), Ut(X) && (kt(X.key), He = "" + X.key), At(X) && (It = X.ref,
|
|
457
|
+
ue !== void 0 && (kt(ue), He = "" + ue), Ut(X) && (kt(X.key), He = "" + X.key), At(X) && (It = X.ref, Qt(X, Ye));
|
|
458
458
|
for (Qe in X)
|
|
459
459
|
ye.call(X, Qe) && !vt.hasOwnProperty(Qe) && (ze[Qe] = X[Qe]);
|
|
460
460
|
if (I && I.defaultProps) {
|
|
@@ -612,13 +612,13 @@ Check the top-level render call using <` + ue + ">.");
|
|
|
612
612
|
return Lm !== "key";
|
|
613
613
|
}), Pn = Je.length > 0 ? "{key: someKey, " + Je.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
614
614
|
if (!Rn[Pe + Pn]) {
|
|
615
|
-
var
|
|
615
|
+
var en = Je.length > 0 ? "{" + Je.join(": ..., ") + ": ...}" : "{}";
|
|
616
616
|
w(`A props object containing a "key" prop is being spread into JSX:
|
|
617
617
|
let props = %s;
|
|
618
618
|
<%s {...props} />
|
|
619
619
|
React keys must be passed directly to JSX without using spread:
|
|
620
620
|
let props = %s;
|
|
621
|
-
<%s key={someKey} {...props} />`, Pn, Pe,
|
|
621
|
+
<%s key={someKey} {...props} />`, Pn, Pe, en, Pe), Rn[Pe + Pn] = !0;
|
|
622
622
|
}
|
|
623
623
|
}
|
|
624
624
|
return I === r ? gn(yt) : xt(yt), yt;
|
|
@@ -646,14 +646,14 @@ const { toString: wg } = Object.prototype, { getPrototypeOf: va } = Object, { it
|
|
|
646
646
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
647
647
|
})(/* @__PURE__ */ Object.create(null)), pn = (e) => (e = e.toLowerCase(), (t) => As(t) === e), js = (e) => (t) => typeof t === e, { isArray: Dr } = Array, _r = js("undefined");
|
|
648
648
|
function go(e) {
|
|
649
|
-
return e !== null && !_r(e) && e.constructor !== null && !_r(e.constructor) &&
|
|
649
|
+
return e !== null && !_r(e) && e.constructor !== null && !_r(e.constructor) && Wt(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
650
650
|
}
|
|
651
651
|
const wu = pn("ArrayBuffer");
|
|
652
652
|
function bg(e) {
|
|
653
653
|
let t;
|
|
654
654
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && wu(e.buffer), t;
|
|
655
655
|
}
|
|
656
|
-
const Sg = js("string"),
|
|
656
|
+
const Sg = js("string"), Wt = js("function"), bu = js("number"), xo = (e) => e !== null && typeof e == "object", Cg = (e) => e === !0 || e === !1, Wo = (e) => {
|
|
657
657
|
if (As(e) !== "object")
|
|
658
658
|
return !1;
|
|
659
659
|
const t = va(e);
|
|
@@ -666,10 +666,10 @@ const Sg = js("string"), Ht = js("function"), bu = js("number"), xo = (e) => e !
|
|
|
666
666
|
} catch {
|
|
667
667
|
return !1;
|
|
668
668
|
}
|
|
669
|
-
}, kg = pn("Date"), Ig = pn("File"), Rg = pn("Blob"), Eg = pn("FileList"), Ng = (e) => xo(e) &&
|
|
669
|
+
}, kg = pn("Date"), Ig = pn("File"), Rg = pn("Blob"), Eg = pn("FileList"), Ng = (e) => xo(e) && Wt(e.pipe), Ag = (e) => {
|
|
670
670
|
let t;
|
|
671
|
-
return e && (typeof FormData == "function" && e instanceof FormData ||
|
|
672
|
-
t === "object" &&
|
|
671
|
+
return e && (typeof FormData == "function" && e instanceof FormData || Wt(e.append) && ((t = As(e)) === "formdata" || // detect form-data instance
|
|
672
|
+
t === "object" && Wt(e.toString) && e.toString() === "[object FormData]"));
|
|
673
673
|
}, jg = pn("URLSearchParams"), [_g, Pg, Mg, Og] = ["ReadableStream", "Request", "Response", "Headers"].map(pn), Dg = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
674
674
|
function yo(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
675
675
|
if (e === null || typeof e > "u")
|
|
@@ -709,7 +709,7 @@ function Bi() {
|
|
|
709
709
|
return n;
|
|
710
710
|
}
|
|
711
711
|
const Lg = (e, t, n, { allOwnKeys: r } = {}) => (yo(t, (o, s) => {
|
|
712
|
-
n &&
|
|
712
|
+
n && Wt(o) ? e[s] = yu(o, n) : e[s] = o;
|
|
713
713
|
}, { allOwnKeys: r }), e), $g = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Fg = (e, t, n, r) => {
|
|
714
714
|
e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
715
715
|
value: t.prototype
|
|
@@ -763,10 +763,10 @@ const Lg = (e, t, n, { allOwnKeys: r } = {}) => (yo(t, (o, s) => {
|
|
|
763
763
|
}), Object.defineProperties(e, r);
|
|
764
764
|
}, Yg = (e) => {
|
|
765
765
|
Tu(e, (t, n) => {
|
|
766
|
-
if (
|
|
766
|
+
if (Wt(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
767
767
|
return !1;
|
|
768
768
|
const r = e[n];
|
|
769
|
-
if (
|
|
769
|
+
if (Wt(r)) {
|
|
770
770
|
if (t.enumerable = !1, "writable" in t) {
|
|
771
771
|
t.writable = !1;
|
|
772
772
|
return;
|
|
@@ -786,7 +786,7 @@ const Lg = (e, t, n, { allOwnKeys: r } = {}) => (yo(t, (o, s) => {
|
|
|
786
786
|
}, Jg = () => {
|
|
787
787
|
}, Zg = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
788
788
|
function Qg(e) {
|
|
789
|
-
return !!(e &&
|
|
789
|
+
return !!(e && Wt(e.append) && e[vu] === "FormData" && e[Ns]);
|
|
790
790
|
}
|
|
791
791
|
const ex = (e) => {
|
|
792
792
|
const t = new Array(10), n = (r, o) => {
|
|
@@ -807,14 +807,14 @@ const ex = (e) => {
|
|
|
807
807
|
return r;
|
|
808
808
|
};
|
|
809
809
|
return n(e, 0);
|
|
810
|
-
}, tx = pn("AsyncFunction"), nx = (e) => e && (xo(e) ||
|
|
810
|
+
}, tx = pn("AsyncFunction"), nx = (e) => e && (xo(e) || Wt(e)) && Wt(e.then) && Wt(e.catch), ku = ((e, t) => e ? setImmediate : t ? ((n, r) => (Zn.addEventListener("message", ({ source: o, data: s }) => {
|
|
811
811
|
o === Zn && s === n && r.length && r.shift()();
|
|
812
812
|
}, !1), (o) => {
|
|
813
813
|
r.push(o), Zn.postMessage(n, "*");
|
|
814
814
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
815
815
|
typeof setImmediate == "function",
|
|
816
|
-
|
|
817
|
-
), rx = typeof queueMicrotask < "u" ? queueMicrotask.bind(Zn) : typeof process < "u" && process.nextTick || ku, ox = (e) => e != null &&
|
|
816
|
+
Wt(Zn.postMessage)
|
|
817
|
+
), rx = typeof queueMicrotask < "u" ? queueMicrotask.bind(Zn) : typeof process < "u" && process.nextTick || ku, ox = (e) => e != null && Wt(e[Ns]), L = {
|
|
818
818
|
isArray: Dr,
|
|
819
819
|
isArrayBuffer: wu,
|
|
820
820
|
isBuffer: go,
|
|
@@ -835,7 +835,7 @@ const ex = (e) => {
|
|
|
835
835
|
isFile: Ig,
|
|
836
836
|
isBlob: Rg,
|
|
837
837
|
isRegExp: Gg,
|
|
838
|
-
isFunction:
|
|
838
|
+
isFunction: Wt,
|
|
839
839
|
isStream: Ng,
|
|
840
840
|
isURLSearchParams: jg,
|
|
841
841
|
isTypedArray: Hg,
|
|
@@ -1310,7 +1310,7 @@ function Ix(e, t) {
|
|
|
1310
1310
|
});
|
|
1311
1311
|
});
|
|
1312
1312
|
}
|
|
1313
|
-
let
|
|
1313
|
+
let Vt = class {
|
|
1314
1314
|
constructor(t) {
|
|
1315
1315
|
t && this.set(t);
|
|
1316
1316
|
}
|
|
@@ -1436,8 +1436,8 @@ let Wt = class {
|
|
|
1436
1436
|
return L.isArray(t) ? t.forEach(s) : s(t), this;
|
|
1437
1437
|
}
|
|
1438
1438
|
};
|
|
1439
|
-
|
|
1440
|
-
L.reduceDescriptors(
|
|
1439
|
+
Vt.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
1440
|
+
L.reduceDescriptors(Vt.prototype, ({ value: e }, t) => {
|
|
1441
1441
|
let n = t[0].toUpperCase() + t.slice(1);
|
|
1442
1442
|
return {
|
|
1443
1443
|
get: () => e,
|
|
@@ -1446,9 +1446,9 @@ L.reduceDescriptors(Wt.prototype, ({ value: e }, t) => {
|
|
|
1446
1446
|
}
|
|
1447
1447
|
};
|
|
1448
1448
|
});
|
|
1449
|
-
L.freezeMethods(
|
|
1449
|
+
L.freezeMethods(Vt);
|
|
1450
1450
|
function ui(e, t) {
|
|
1451
|
-
const n = this || vo, r = t || n, o =
|
|
1451
|
+
const n = this || vo, r = t || n, o = Vt.from(r.headers);
|
|
1452
1452
|
let s = r.data;
|
|
1453
1453
|
return L.forEach(e, function(a) {
|
|
1454
1454
|
s = a.call(n, s, o.normalize(), t ? t.status : void 0);
|
|
@@ -1571,7 +1571,7 @@ function Ou(e, t, n) {
|
|
|
1571
1571
|
let r = !_x(t);
|
|
1572
1572
|
return e && (r || n == !1) ? Px(e, t) : t;
|
|
1573
1573
|
}
|
|
1574
|
-
const Ol = (e) => e instanceof
|
|
1574
|
+
const Ol = (e) => e instanceof Vt ? { ...e } : e;
|
|
1575
1575
|
function nr(e, t) {
|
|
1576
1576
|
t = t || {};
|
|
1577
1577
|
const n = {};
|
|
@@ -1639,7 +1639,7 @@ function nr(e, t) {
|
|
|
1639
1639
|
const Du = (e) => {
|
|
1640
1640
|
const t = nr({}, e);
|
|
1641
1641
|
let { data: n, withXSRFToken: r, xsrfHeaderName: o, xsrfCookieName: s, headers: i, auth: a } = t;
|
|
1642
|
-
if (t.headers = i =
|
|
1642
|
+
if (t.headers = i = Vt.from(i), t.url = Au(Ou(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), a && i.set(
|
|
1643
1643
|
"Authorization",
|
|
1644
1644
|
"Basic " + btoa((a.username || "") + ":" + (a.password ? unescape(encodeURIComponent(a.password)) : ""))
|
|
1645
1645
|
), L.isFormData(n)) {
|
|
@@ -1661,7 +1661,7 @@ const Du = (e) => {
|
|
|
1661
1661
|
return new Promise(function(n, r) {
|
|
1662
1662
|
const o = Du(e);
|
|
1663
1663
|
let s = o.data;
|
|
1664
|
-
const i =
|
|
1664
|
+
const i = Vt.from(o.headers).normalize();
|
|
1665
1665
|
let { responseType: a, onUploadProgress: l, onDownloadProgress: c } = o, d, f, p, h, v;
|
|
1666
1666
|
function g() {
|
|
1667
1667
|
h && h(), v && v(), o.cancelToken && o.cancelToken.unsubscribe(d), o.signal && o.signal.removeEventListener("abort", d);
|
|
@@ -1671,7 +1671,7 @@ const Du = (e) => {
|
|
|
1671
1671
|
function x() {
|
|
1672
1672
|
if (!y)
|
|
1673
1673
|
return;
|
|
1674
|
-
const S =
|
|
1674
|
+
const S = Vt.from(
|
|
1675
1675
|
"getAllResponseHeaders" in y && y.getAllResponseHeaders()
|
|
1676
1676
|
), C = {
|
|
1677
1677
|
data: !a || a === "text" || a === "json" ? y.responseText : y.response,
|
|
@@ -1923,7 +1923,7 @@ const Du = (e) => {
|
|
|
1923
1923
|
return !P && A && A(), await new Promise((te, j) => {
|
|
1924
1924
|
Mu(te, j, {
|
|
1925
1925
|
data: W,
|
|
1926
|
-
headers:
|
|
1926
|
+
headers: Vt.from(D.headers),
|
|
1927
1927
|
status: D.status,
|
|
1928
1928
|
statusText: D.statusText,
|
|
1929
1929
|
config: v,
|
|
@@ -2004,7 +2004,7 @@ function di(e) {
|
|
|
2004
2004
|
throw new Lr(null, e);
|
|
2005
2005
|
}
|
|
2006
2006
|
function Ul(e) {
|
|
2007
|
-
return di(e), e.headers =
|
|
2007
|
+
return di(e), e.headers = Vt.from(e.headers), e.data = ui.call(
|
|
2008
2008
|
e,
|
|
2009
2009
|
e.transformRequest
|
|
2010
2010
|
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), $u.getAdapter(e.adapter || vo.adapter, e)(e).then(function(r) {
|
|
@@ -2012,13 +2012,13 @@ function Ul(e) {
|
|
|
2012
2012
|
e,
|
|
2013
2013
|
e.transformResponse,
|
|
2014
2014
|
r
|
|
2015
|
-
), r.headers =
|
|
2015
|
+
), r.headers = Vt.from(r.headers), r;
|
|
2016
2016
|
}, function(r) {
|
|
2017
2017
|
return Pu(r) || (di(e), r && r.response && (r.response.data = ui.call(
|
|
2018
2018
|
e,
|
|
2019
2019
|
e.transformResponse,
|
|
2020
2020
|
r.response
|
|
2021
|
-
), r.response.headers =
|
|
2021
|
+
), r.response.headers = Vt.from(r.response.headers))), Promise.reject(r);
|
|
2022
2022
|
});
|
|
2023
2023
|
}
|
|
2024
2024
|
const Fu = "1.12.2", Ps = {};
|
|
@@ -2127,7 +2127,7 @@ let er = class {
|
|
|
2127
2127
|
(v) => {
|
|
2128
2128
|
delete s[v];
|
|
2129
2129
|
}
|
|
2130
|
-
), n.headers =
|
|
2130
|
+
), n.headers = Vt.concat(i, s);
|
|
2131
2131
|
const a = [];
|
|
2132
2132
|
let l = !0;
|
|
2133
2133
|
this.interceptors.request.forEach(function(g) {
|
|
@@ -2364,7 +2364,7 @@ bt.all = function(t) {
|
|
|
2364
2364
|
bt.spread = Kx;
|
|
2365
2365
|
bt.isAxiosError = qx;
|
|
2366
2366
|
bt.mergeConfig = nr;
|
|
2367
|
-
bt.AxiosHeaders =
|
|
2367
|
+
bt.AxiosHeaders = Vt;
|
|
2368
2368
|
bt.formToJSON = (e) => _u(L.isHTMLForm(e) ? new FormData(e) : e);
|
|
2369
2369
|
bt.getAdapter = $u.getAdapter;
|
|
2370
2370
|
bt.HttpStatusCode = Wi;
|
|
@@ -2402,15 +2402,15 @@ function Ki(e) {
|
|
|
2402
2402
|
function Yx(e) {
|
|
2403
2403
|
return Vi.add(e), () => Vi.delete(e);
|
|
2404
2404
|
}
|
|
2405
|
-
const Xx = 3e4, Jx = 9e4,
|
|
2405
|
+
const Xx = 3e4, Jx = 9e4, Ht = bt.create({
|
|
2406
2406
|
// Only set baseURL when configured — do NOT fall back to localhost. Falling back causes
|
|
2407
2407
|
// noisy network requests to the frontend Dev server when the backend isn't configured.
|
|
2408
2408
|
...Vl ? { baseURL: Vl } : {},
|
|
2409
2409
|
timeout: Xx,
|
|
2410
2410
|
withCredentials: !0
|
|
2411
2411
|
});
|
|
2412
|
-
|
|
2413
|
-
|
|
2412
|
+
Ht.interceptors.request.use((e) => (ss && (e.headers.Authorization = `Bearer ${ss}`), e));
|
|
2413
|
+
Ht.interceptors.response.use(
|
|
2414
2414
|
(e) => {
|
|
2415
2415
|
if (typeof window < "u" && (e != null && e.data))
|
|
2416
2416
|
try {
|
|
@@ -2427,17 +2427,17 @@ on.interceptors.response.use(
|
|
|
2427
2427
|
},
|
|
2428
2428
|
(e) => Promise.reject(e)
|
|
2429
2429
|
);
|
|
2430
|
-
async function
|
|
2431
|
-
return
|
|
2430
|
+
async function Gt(e, t) {
|
|
2431
|
+
return Ht.defaults.baseURL ? (await Ht.get(e, t)).data : Promise.reject(new Error("API base URL is not configured"));
|
|
2432
2432
|
}
|
|
2433
2433
|
async function fi(e, t, n) {
|
|
2434
|
-
return
|
|
2434
|
+
return Ht.defaults.baseURL ? (await Ht.post(e, t, n)).data : Promise.reject(new Error("API base URL is not configured"));
|
|
2435
2435
|
}
|
|
2436
2436
|
async function Zx(e, t, n) {
|
|
2437
|
-
return
|
|
2437
|
+
return Ht.defaults.baseURL ? (await Ht.put(e, t, n)).data : Promise.reject(new Error("API base URL is not configured"));
|
|
2438
2438
|
}
|
|
2439
2439
|
async function Kl(e, t) {
|
|
2440
|
-
return
|
|
2440
|
+
return Ht.defaults.baseURL ? (await Ht.delete(e, t)).data : Promise.reject(new Error("API base URL is not configured"));
|
|
2441
2441
|
}
|
|
2442
2442
|
function Pt(e) {
|
|
2443
2443
|
return e && typeof e == "object" && "data" in e ? e.data : e;
|
|
@@ -2445,11 +2445,11 @@ function Pt(e) {
|
|
|
2445
2445
|
class Qx {
|
|
2446
2446
|
// ---- Configuration ----
|
|
2447
2447
|
get baseUrl() {
|
|
2448
|
-
const t =
|
|
2448
|
+
const t = Ht.defaults.baseURL;
|
|
2449
2449
|
return t ? Nn(String(t)) : "";
|
|
2450
2450
|
}
|
|
2451
2451
|
updateConfig(t) {
|
|
2452
|
-
t.baseUrl && (
|
|
2452
|
+
t.baseUrl && (Ht.defaults.baseURL = Nn(String(t.baseUrl))), t.authToken !== void 0 && Ki(t.authToken);
|
|
2453
2453
|
}
|
|
2454
2454
|
// ---- Token Management ----
|
|
2455
2455
|
getAuthToken() {
|
|
@@ -2463,16 +2463,16 @@ class Qx {
|
|
|
2463
2463
|
}
|
|
2464
2464
|
// ---- Thread Management ----
|
|
2465
2465
|
async listThreads() {
|
|
2466
|
-
const t = await
|
|
2466
|
+
const t = await Gt("/threads"), n = Pt(t);
|
|
2467
2467
|
return (n == null ? void 0 : n.items) ?? (t == null ? void 0 : t.items) ?? [];
|
|
2468
2468
|
}
|
|
2469
2469
|
async listSharedThreads() {
|
|
2470
|
-
const t = await
|
|
2470
|
+
const t = await Gt("/threads/shared"), n = Pt(t);
|
|
2471
2471
|
return (n == null ? void 0 : n.items) ?? (t == null ? void 0 : t.items) ?? [];
|
|
2472
2472
|
}
|
|
2473
2473
|
async listSmartOrgUsers() {
|
|
2474
|
-
const t = await
|
|
2475
|
-
return (
|
|
2474
|
+
const t = Ht.defaults.baseURL ? Ht.defaults.baseURL.replace(/\/chat\/?$/, "") : "/api", n = await Gt("/auth/users", { baseURL: t }), r = Pt(n);
|
|
2475
|
+
return (r == null ? void 0 : r.users) ?? [];
|
|
2476
2476
|
}
|
|
2477
2477
|
async createThread(t) {
|
|
2478
2478
|
const r = await fi("/threads", t ? { title: t } : void 0);
|
|
@@ -2493,24 +2493,24 @@ class Qx {
|
|
|
2493
2493
|
return Pt(r);
|
|
2494
2494
|
}
|
|
2495
2495
|
async threadInfo(t) {
|
|
2496
|
-
const n = await
|
|
2496
|
+
const n = await Gt(`/threads/${t}/info`);
|
|
2497
2497
|
return Pt(n);
|
|
2498
2498
|
}
|
|
2499
2499
|
// ---- Agents ----
|
|
2500
2500
|
async listAgents() {
|
|
2501
|
-
const t = await
|
|
2501
|
+
const t = await Gt("/agents"), n = Pt(t);
|
|
2502
2502
|
return (n == null ? void 0 : n.items) ?? [];
|
|
2503
2503
|
}
|
|
2504
2504
|
async getAgent(t) {
|
|
2505
|
-
const n = await
|
|
2505
|
+
const n = await Gt(`/agents/${t}`);
|
|
2506
2506
|
return Pt(n);
|
|
2507
2507
|
}
|
|
2508
2508
|
async getAgentSchema(t) {
|
|
2509
|
-
const n = await
|
|
2509
|
+
const n = await Gt(`/agents/${t}/schema`);
|
|
2510
2510
|
return Pt(n);
|
|
2511
2511
|
}
|
|
2512
2512
|
async getState(t) {
|
|
2513
|
-
const n = await
|
|
2513
|
+
const n = await Gt(`/threads/${t.threadId}/state`, {
|
|
2514
2514
|
params: {
|
|
2515
2515
|
thread_id: t.threadId,
|
|
2516
2516
|
checkpoint_id: t.checkpointId,
|
|
@@ -2520,7 +2520,7 @@ class Qx {
|
|
|
2520
2520
|
return Pt(n);
|
|
2521
2521
|
}
|
|
2522
2522
|
async getStateHistory(t) {
|
|
2523
|
-
const n = await
|
|
2523
|
+
const n = await Gt(`/threads/${t.threadId}/state/history`, {
|
|
2524
2524
|
params: {
|
|
2525
2525
|
thread_id: t.threadId,
|
|
2526
2526
|
checkpoint_id: t.checkpointId,
|
|
@@ -2536,7 +2536,7 @@ class Qx {
|
|
|
2536
2536
|
return Pt(n);
|
|
2537
2537
|
}
|
|
2538
2538
|
async listCheckpointSummaries(t) {
|
|
2539
|
-
const n = await
|
|
2539
|
+
const n = await Gt(`/threads/${t}/state/checkpoints`, {
|
|
2540
2540
|
params: {
|
|
2541
2541
|
thread_id: t
|
|
2542
2542
|
}
|
|
@@ -3713,10 +3713,10 @@ function qy(e = {}) {
|
|
|
3713
3713
|
}, Ut = () => {
|
|
3714
3714
|
typeof window < "u" && Ct == null && (Ct = requestAnimationFrame(At));
|
|
3715
3715
|
};
|
|
3716
|
-
let
|
|
3716
|
+
let Qt = Date.now();
|
|
3717
3717
|
const Ve = setInterval(() => {
|
|
3718
3718
|
var rt;
|
|
3719
|
-
if (Date.now() -
|
|
3719
|
+
if (Date.now() - Qt > 18e5) {
|
|
3720
3720
|
const Xe = "Stream idle timeout";
|
|
3721
3721
|
d(Xe), D = "error", P = Xe, B.abort(), (rt = R == null ? void 0 : R.onError) == null || rt.call(R, Xe);
|
|
3722
3722
|
}
|
|
@@ -3746,7 +3746,7 @@ function qy(e = {}) {
|
|
|
3746
3746
|
continue;
|
|
3747
3747
|
}
|
|
3748
3748
|
const be = Gy(Re) ? Re.data : Re;
|
|
3749
|
-
|
|
3749
|
+
Qt = Date.now();
|
|
3750
3750
|
const tt = be.seq;
|
|
3751
3751
|
if (tt !== void 0) {
|
|
3752
3752
|
if (tt <= gt) {
|
|
@@ -4470,7 +4470,7 @@ function sv({
|
|
|
4470
4470
|
}
|
|
4471
4471
|
},
|
|
4472
4472
|
[p, c, N, s]
|
|
4473
|
-
),
|
|
4473
|
+
), Qt = pe(
|
|
4474
4474
|
async (U, ne) => {
|
|
4475
4475
|
try {
|
|
4476
4476
|
await c.updateThread(U, ne), await z();
|
|
@@ -4591,7 +4591,7 @@ function sv({
|
|
|
4591
4591
|
actions: {
|
|
4592
4592
|
createThread: At,
|
|
4593
4593
|
deleteThread: Ut,
|
|
4594
|
-
renameThread:
|
|
4594
|
+
renameThread: Qt,
|
|
4595
4595
|
refreshThreads: z,
|
|
4596
4596
|
refreshSharedThreads: le,
|
|
4597
4597
|
refreshSmartOrgUsers: ke,
|
|
@@ -4610,7 +4610,7 @@ function sv({
|
|
|
4610
4610
|
$,
|
|
4611
4611
|
At,
|
|
4612
4612
|
Ut,
|
|
4613
|
-
|
|
4613
|
+
Qt,
|
|
4614
4614
|
z,
|
|
4615
4615
|
le,
|
|
4616
4616
|
ke,
|
|
@@ -5392,7 +5392,7 @@ function Ft(e) {
|
|
|
5392
5392
|
n((r) => r ?? String(Pv++));
|
|
5393
5393
|
}, [e]), t ? `radix-${t}` : "";
|
|
5394
5394
|
}
|
|
5395
|
-
const Mv = ["top", "right", "bottom", "left"], Ln = Math.min,
|
|
5395
|
+
const Mv = ["top", "right", "bottom", "left"], Ln = Math.min, Yt = Math.max, is = Math.round, Po = Math.floor, Sn = (e) => ({
|
|
5396
5396
|
x: e,
|
|
5397
5397
|
y: e
|
|
5398
5398
|
}), Ov = {
|
|
@@ -5405,7 +5405,7 @@ const Mv = ["top", "right", "bottom", "left"], Ln = Math.min, Gt = Math.max, is
|
|
|
5405
5405
|
end: "start"
|
|
5406
5406
|
};
|
|
5407
5407
|
function Gi(e, t, n) {
|
|
5408
|
-
return
|
|
5408
|
+
return Yt(e, Ln(t, n));
|
|
5409
5409
|
}
|
|
5410
5410
|
function An(e, t) {
|
|
5411
5411
|
return typeof e == "function" ? e(t) : e;
|
|
@@ -5995,8 +5995,8 @@ const Xv = function(e) {
|
|
|
5995
5995
|
const w = g - d.top - d.bottom, S = v - d.left - d.right, T = Ln(g - d[y], w), C = Ln(v - d[x], S), b = !t.middlewareData.shift;
|
|
5996
5996
|
let k = T, E = C;
|
|
5997
5997
|
if ((n = t.middlewareData.shift) != null && n.enabled.x && (E = S), (r = t.middlewareData.shift) != null && r.enabled.y && (k = w), b && !p) {
|
|
5998
|
-
const O =
|
|
5999
|
-
h ? E = v - 2 * (O !== 0 || $ !== 0 ? O + $ :
|
|
5998
|
+
const O = Yt(d.left, 0), $ = Yt(d.right, 0), K = Yt(d.top, 0), H = Yt(d.bottom, 0);
|
|
5999
|
+
h ? E = v - 2 * (O !== 0 || $ !== 0 ? O + $ : Yt(d.left, d.right)) : k = g - 2 * (K !== 0 || H !== 0 ? K + H : Yt(d.top, d.bottom));
|
|
6000
6000
|
}
|
|
6001
6001
|
await l({
|
|
6002
6002
|
...t,
|
|
@@ -6018,7 +6018,7 @@ function Ls() {
|
|
|
6018
6018
|
function Fr(e) {
|
|
6019
6019
|
return ld(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
6020
6020
|
}
|
|
6021
|
-
function
|
|
6021
|
+
function Jt(e) {
|
|
6022
6022
|
var t;
|
|
6023
6023
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
6024
6024
|
}
|
|
@@ -6027,16 +6027,16 @@ function Tn(e) {
|
|
|
6027
6027
|
return (t = (ld(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
6028
6028
|
}
|
|
6029
6029
|
function ld(e) {
|
|
6030
|
-
return Ls() ? e instanceof Node || e instanceof
|
|
6030
|
+
return Ls() ? e instanceof Node || e instanceof Jt(e).Node : !1;
|
|
6031
6031
|
}
|
|
6032
6032
|
function un(e) {
|
|
6033
|
-
return Ls() ? e instanceof Element || e instanceof
|
|
6033
|
+
return Ls() ? e instanceof Element || e instanceof Jt(e).Element : !1;
|
|
6034
6034
|
}
|
|
6035
6035
|
function Cn(e) {
|
|
6036
|
-
return Ls() ? e instanceof HTMLElement || e instanceof
|
|
6036
|
+
return Ls() ? e instanceof HTMLElement || e instanceof Jt(e).HTMLElement : !1;
|
|
6037
6037
|
}
|
|
6038
6038
|
function yc(e) {
|
|
6039
|
-
return !Ls() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof
|
|
6039
|
+
return !Ls() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Jt(e).ShadowRoot;
|
|
6040
6040
|
}
|
|
6041
6041
|
const ew = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
6042
6042
|
function wo(e) {
|
|
@@ -6086,7 +6086,7 @@ function Mr(e) {
|
|
|
6086
6086
|
return lw.has(Fr(e));
|
|
6087
6087
|
}
|
|
6088
6088
|
function dn(e) {
|
|
6089
|
-
return
|
|
6089
|
+
return Jt(e).getComputedStyle(e);
|
|
6090
6090
|
}
|
|
6091
6091
|
function Fs(e) {
|
|
6092
6092
|
return un(e) ? {
|
|
@@ -6116,7 +6116,7 @@ function cd(e) {
|
|
|
6116
6116
|
function oo(e, t, n) {
|
|
6117
6117
|
var r;
|
|
6118
6118
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
6119
|
-
const o = cd(e), s = o === ((r = e.ownerDocument) == null ? void 0 : r.body), i =
|
|
6119
|
+
const o = cd(e), s = o === ((r = e.ownerDocument) == null ? void 0 : r.body), i = Jt(o);
|
|
6120
6120
|
if (s) {
|
|
6121
6121
|
const a = Xi(i);
|
|
6122
6122
|
return t.concat(i, i.visualViewport || [], wo(o) ? o : [], a && n ? oo(a) : []);
|
|
@@ -6156,14 +6156,14 @@ function Ir(e) {
|
|
|
6156
6156
|
}
|
|
6157
6157
|
const cw = /* @__PURE__ */ Sn(0);
|
|
6158
6158
|
function dd(e) {
|
|
6159
|
-
const t =
|
|
6159
|
+
const t = Jt(e);
|
|
6160
6160
|
return !_a() || !t.visualViewport ? cw : {
|
|
6161
6161
|
x: t.visualViewport.offsetLeft,
|
|
6162
6162
|
y: t.visualViewport.offsetTop
|
|
6163
6163
|
};
|
|
6164
6164
|
}
|
|
6165
6165
|
function uw(e, t, n) {
|
|
6166
|
-
return t === void 0 && (t = !1), !n || t && n !==
|
|
6166
|
+
return t === void 0 && (t = !1), !n || t && n !== Jt(e) ? !1 : t;
|
|
6167
6167
|
}
|
|
6168
6168
|
function or(e, t, n, r) {
|
|
6169
6169
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
@@ -6173,11 +6173,11 @@ function or(e, t, n, r) {
|
|
|
6173
6173
|
const a = uw(s, n, r) ? dd(s) : Sn(0);
|
|
6174
6174
|
let l = (o.left + a.x) / i.x, c = (o.top + a.y) / i.y, d = o.width / i.x, f = o.height / i.y;
|
|
6175
6175
|
if (s) {
|
|
6176
|
-
const p =
|
|
6176
|
+
const p = Jt(s), h = r && un(r) ? Jt(r) : r;
|
|
6177
6177
|
let v = p, g = Xi(v);
|
|
6178
6178
|
for (; g && r && h !== v; ) {
|
|
6179
6179
|
const y = Ir(g), x = g.getBoundingClientRect(), w = dn(g), S = x.left + (g.clientLeft + parseFloat(w.paddingLeft)) * y.x, T = x.top + (g.clientTop + parseFloat(w.paddingTop)) * y.y;
|
|
6180
|
-
l *= y.x, c *= y.y, d *= y.x, f *= y.y, l += S, c += T, v =
|
|
6180
|
+
l *= y.x, c *= y.y, d *= y.x, f *= y.y, l += S, c += T, v = Jt(g), g = Xi(v);
|
|
6181
6181
|
}
|
|
6182
6182
|
}
|
|
6183
6183
|
return ls({
|
|
@@ -6229,10 +6229,10 @@ function fw(e) {
|
|
|
6229
6229
|
return Array.from(e.getClientRects());
|
|
6230
6230
|
}
|
|
6231
6231
|
function pw(e) {
|
|
6232
|
-
const t = Tn(e), n = Fs(e), r = e.ownerDocument.body, o =
|
|
6232
|
+
const t = Tn(e), n = Fs(e), r = e.ownerDocument.body, o = Yt(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), s = Yt(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
|
|
6233
6233
|
let i = -n.scrollLeft + Bs(e);
|
|
6234
6234
|
const a = -n.scrollTop;
|
|
6235
|
-
return dn(r).direction === "rtl" && (i +=
|
|
6235
|
+
return dn(r).direction === "rtl" && (i += Yt(t.clientWidth, r.clientWidth) - o), {
|
|
6236
6236
|
width: o,
|
|
6237
6237
|
height: s,
|
|
6238
6238
|
x: i,
|
|
@@ -6241,7 +6241,7 @@ function pw(e) {
|
|
|
6241
6241
|
}
|
|
6242
6242
|
const vc = 25;
|
|
6243
6243
|
function hw(e, t) {
|
|
6244
|
-
const n =
|
|
6244
|
+
const n = Jt(e), r = Tn(e), o = n.visualViewport;
|
|
6245
6245
|
let s = r.clientWidth, i = r.clientHeight, a = 0, l = 0;
|
|
6246
6246
|
if (o) {
|
|
6247
6247
|
s = o.width, i = o.height;
|
|
@@ -6315,7 +6315,7 @@ function yw(e) {
|
|
|
6315
6315
|
} = e;
|
|
6316
6316
|
const i = [...n === "clippingAncestors" ? $s(t) ? [] : xw(t, this._c) : [].concat(n), r], a = i[0], l = i.reduce((c, d) => {
|
|
6317
6317
|
const f = wc(t, d, o);
|
|
6318
|
-
return c.top =
|
|
6318
|
+
return c.top = Yt(f.top, c.top), c.right = Ln(f.right, c.right), c.bottom = Ln(f.bottom, c.bottom), c.left = Yt(f.left, c.left), c;
|
|
6319
6319
|
}, wc(t, a, o));
|
|
6320
6320
|
return {
|
|
6321
6321
|
width: l.right - l.left,
|
|
@@ -6370,7 +6370,7 @@ function bc(e, t) {
|
|
|
6370
6370
|
return Tn(e) === n && (n = n.ownerDocument.body), n;
|
|
6371
6371
|
}
|
|
6372
6372
|
function hd(e, t) {
|
|
6373
|
-
const n =
|
|
6373
|
+
const n = Jt(e);
|
|
6374
6374
|
if ($s(e))
|
|
6375
6375
|
return n;
|
|
6376
6376
|
if (!Cn(e)) {
|
|
@@ -6436,7 +6436,7 @@ function Tw(e, t) {
|
|
|
6436
6436
|
return;
|
|
6437
6437
|
const v = Po(f), g = Po(o.clientWidth - (d + p)), y = Po(o.clientHeight - (f + h)), x = Po(d), S = {
|
|
6438
6438
|
rootMargin: -v + "px " + -g + "px " + -y + "px " + -x + "px",
|
|
6439
|
-
threshold:
|
|
6439
|
+
threshold: Yt(0, Ln(1, l)) || 1
|
|
6440
6440
|
};
|
|
6441
6441
|
let T = !0;
|
|
6442
6442
|
function C(b) {
|
|
@@ -7752,14 +7752,14 @@ var $a = "MenuPortal", [l0, Xd] = ur($a, {
|
|
|
7752
7752
|
return /* @__PURE__ */ u.jsx(l0, { scope: t, forceMount: n, children: /* @__PURE__ */ u.jsx(sn, { present: n || s.open, children: /* @__PURE__ */ u.jsx(Us, { asChild: !0, container: o, children: r }) }) });
|
|
7753
7753
|
};
|
|
7754
7754
|
Jd.displayName = $a;
|
|
7755
|
-
var
|
|
7755
|
+
var on = "MenuContent", [c0, Fa] = ur(on), Zd = m.forwardRef(
|
|
7756
7756
|
(e, t) => {
|
|
7757
|
-
const n = Xd(
|
|
7757
|
+
const n = Xd(on, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = dr(on, e.__scopeMenu), i = Co(on, e.__scopeMenu);
|
|
7758
7758
|
return /* @__PURE__ */ u.jsx(so.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ u.jsx(sn, { present: r || s.open, children: /* @__PURE__ */ u.jsx(so.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ u.jsx(u0, { ...o, ref: t }) : /* @__PURE__ */ u.jsx(d0, { ...o, ref: t }) }) }) });
|
|
7759
7759
|
}
|
|
7760
7760
|
), u0 = m.forwardRef(
|
|
7761
7761
|
(e, t) => {
|
|
7762
|
-
const n = dr(
|
|
7762
|
+
const n = dr(on, e.__scopeMenu), r = m.useRef(null), o = qe(t, r);
|
|
7763
7763
|
return m.useEffect(() => {
|
|
7764
7764
|
const s = r.current;
|
|
7765
7765
|
if (s) return Da(s);
|
|
@@ -7781,7 +7781,7 @@ var rn = "MenuContent", [c0, Fa] = ur(rn), Zd = m.forwardRef(
|
|
|
7781
7781
|
);
|
|
7782
7782
|
}
|
|
7783
7783
|
), d0 = m.forwardRef((e, t) => {
|
|
7784
|
-
const n = dr(
|
|
7784
|
+
const n = dr(on, e.__scopeMenu);
|
|
7785
7785
|
return /* @__PURE__ */ u.jsx(
|
|
7786
7786
|
Ba,
|
|
7787
7787
|
{
|
|
@@ -7810,7 +7810,7 @@ var rn = "MenuContent", [c0, Fa] = ur(rn), Zd = m.forwardRef(
|
|
|
7810
7810
|
onDismiss: h,
|
|
7811
7811
|
disableOutsideScroll: v,
|
|
7812
7812
|
...g
|
|
7813
|
-
} = e, y = dr(
|
|
7813
|
+
} = e, y = dr(on, n), x = Co(on, n), w = Vs(n), S = Gd(n), T = r0(n), [C, b] = m.useState(null), k = m.useRef(null), E = qe(t, k, y.onContentChange), _ = m.useRef(0), O = m.useRef(""), $ = m.useRef(0), K = m.useRef(null), H = m.useRef("right"), A = m.useRef(0), N = v ? Ws : m.Fragment, R = v ? { as: f0, allowPinchZoom: !0 } : void 0, B = (P) => {
|
|
7814
7814
|
var q, M;
|
|
7815
7815
|
const W = O.current + P, te = T().filter((V) => !V.disabled), j = document.activeElement, G = (q = te.find((V) => V.ref.current === j)) == null ? void 0 : q.textValue, ae = te.map((V) => V.textValue), Z = T0(ae, W, G), ce = (M = te.find((V) => V.textValue === Z)) == null ? void 0 : M.ref.current;
|
|
7816
7816
|
(function V(F) {
|
|
@@ -7930,7 +7930,7 @@ var rn = "MenuContent", [c0, Fa] = ur(rn), Zd = m.forwardRef(
|
|
|
7930
7930
|
);
|
|
7931
7931
|
}
|
|
7932
7932
|
);
|
|
7933
|
-
Zd.displayName =
|
|
7933
|
+
Zd.displayName = on;
|
|
7934
7934
|
var p0 = "MenuGroup", za = m.forwardRef(
|
|
7935
7935
|
(e, t) => {
|
|
7936
7936
|
const { __scopeMenu: n, ...r } = e;
|
|
@@ -8190,7 +8190,7 @@ var b0 = "MenuSub", [dR, df] = ur(b0), qr = "MenuSubTrigger", ff = m.forwardRef(
|
|
|
8190
8190
|
ff.displayName = qr;
|
|
8191
8191
|
var pf = "MenuSubContent", hf = m.forwardRef(
|
|
8192
8192
|
(e, t) => {
|
|
8193
|
-
const n = Xd(
|
|
8193
|
+
const n = Xd(on, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = dr(on, e.__scopeMenu), i = Co(on, e.__scopeMenu), a = df(pf, e.__scopeMenu), l = m.useRef(null), c = qe(t, l);
|
|
8194
8194
|
return /* @__PURE__ */ u.jsx(so.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ u.jsx(sn, { present: r || s.open, children: /* @__PURE__ */ u.jsx(so.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ u.jsx(
|
|
8195
8195
|
Ba,
|
|
8196
8196
|
{
|
|
@@ -8930,7 +8930,7 @@ function Ke() {
|
|
|
8930
8930
|
}
|
|
8931
8931
|
};
|
|
8932
8932
|
}
|
|
8933
|
-
function
|
|
8933
|
+
function Zt(e) {
|
|
8934
8934
|
return Ys(Ke(), (t) => we(e, t));
|
|
8935
8935
|
}
|
|
8936
8936
|
function et(e, t = [], { singleton: n } = { singleton: !0 }) {
|
|
@@ -8984,7 +8984,7 @@ function ea(...e) {
|
|
|
8984
8984
|
}
|
|
8985
8985
|
};
|
|
8986
8986
|
}
|
|
8987
|
-
var
|
|
8987
|
+
var Kt = /* @__PURE__ */ ((e) => (e[e.DEBUG = 0] = "DEBUG", e[e.INFO = 1] = "INFO", e[e.WARN = 2] = "WARN", e[e.ERROR = 3] = "ERROR", e))(Kt || {});
|
|
8988
8988
|
const _S = {
|
|
8989
8989
|
0: "debug",
|
|
8990
8990
|
3: "error",
|
|
@@ -9065,7 +9065,7 @@ function OS(e, t, n, r) {
|
|
|
9065
9065
|
if (a.dataset.index === void 0)
|
|
9066
9066
|
continue;
|
|
9067
9067
|
const l = parseInt(a.dataset.index), c = parseFloat(a.dataset.knownSize), d = t(a, n);
|
|
9068
|
-
if (d === 0 && r("Zero-sized element, this should not happen", { child: a },
|
|
9068
|
+
if (d === 0 && r("Zero-sized element, this should not happen", { child: a }, Kt.ERROR), d === c)
|
|
9069
9069
|
continue;
|
|
9070
9070
|
const f = s[s.length - 1];
|
|
9071
9071
|
s.length === 0 || f.size !== d || f.endIndex !== l - 1 ? s.push({ endIndex: l, size: d, startIndex: l }) : s[s.length - 1].endIndex++;
|
|
@@ -9073,7 +9073,7 @@ function OS(e, t, n, r) {
|
|
|
9073
9073
|
return s;
|
|
9074
9074
|
}
|
|
9075
9075
|
function Pc(e, t, n) {
|
|
9076
|
-
return t !== "normal" && !(t != null && t.endsWith("px")) && n(`${e} was not resolved to pixel value correctly`, t,
|
|
9076
|
+
return t !== "normal" && !(t != null && t.endsWith("px")) && n(`${e} was not resolved to pixel value correctly`, t, Kt.WARN), t === "normal" ? 0 : parseInt(t ?? "0", 10);
|
|
9077
9077
|
}
|
|
9078
9078
|
function Vf(e, t, n) {
|
|
9079
9079
|
const r = se.useRef(null), o = se.useCallback(
|
|
@@ -9188,8 +9188,8 @@ function fn(e, t, n = "k") {
|
|
|
9188
9188
|
}
|
|
9189
9189
|
return fn(e.l, t, n);
|
|
9190
9190
|
}
|
|
9191
|
-
function
|
|
9192
|
-
return it(e) ? Yf(t, n, 1) : t === e.k ? Tt(e, { k: t, v: n }) : t < e.k ? Mc(Tt(e, { l:
|
|
9191
|
+
function Xt(e, t, n) {
|
|
9192
|
+
return it(e) ? Yf(t, n, 1) : t === e.k ? Tt(e, { k: t, v: n }) : t < e.k ? Mc(Tt(e, { l: Xt(e.l, t, n) })) : Mc(Tt(e, { r: Xt(e.r, t, n) }));
|
|
9193
9193
|
}
|
|
9194
9194
|
function Nr() {
|
|
9195
9195
|
return ao;
|
|
@@ -9354,7 +9354,7 @@ function FS(e, t) {
|
|
|
9354
9354
|
for (const r of t) {
|
|
9355
9355
|
const { endIndex: o, size: s, startIndex: i } = r;
|
|
9356
9356
|
if (n = Math.min(n, i), it(e)) {
|
|
9357
|
-
e =
|
|
9357
|
+
e = Xt(e, 0, s);
|
|
9358
9358
|
continue;
|
|
9359
9359
|
}
|
|
9360
9360
|
const a = Xs(e, i - 1, o + 1);
|
|
@@ -9362,8 +9362,8 @@ function FS(e, t) {
|
|
|
9362
9362
|
continue;
|
|
9363
9363
|
let l = !1, c = !1;
|
|
9364
9364
|
for (const { end: d, start: f, value: p } of a)
|
|
9365
|
-
l ? (o >= f || s === p) && (e = ta(e, f)) : (c = p !== s, l = !0), d > o && o >= f && p !== s && (e =
|
|
9366
|
-
c && (e =
|
|
9365
|
+
l ? (o >= f || s === p) && (e = ta(e, f)) : (c = p !== s, l = !0), d > o && o >= f && p !== s && (e = Xt(e, o + 1, p));
|
|
9366
|
+
c && (e = Xt(e, i, s));
|
|
9367
9367
|
}
|
|
9368
9368
|
return [e, n];
|
|
9369
9369
|
}
|
|
@@ -9400,12 +9400,12 @@ function US(e, t, n, r = 0) {
|
|
|
9400
9400
|
return r > 0 && (t = Math.max(t, Zf(e, r, Ya).offset)), Kf(LS(e, t, n, zS), VS);
|
|
9401
9401
|
}
|
|
9402
9402
|
function HS(e, [t, n, r, o]) {
|
|
9403
|
-
t.length > 0 && r("received item sizes", t,
|
|
9403
|
+
t.length > 0 && r("received item sizes", t, Kt.DEBUG);
|
|
9404
9404
|
const s = e.sizeTree;
|
|
9405
9405
|
let i = s, a = 0;
|
|
9406
9406
|
if (n.length > 0 && it(s) && t.length === 2) {
|
|
9407
9407
|
const p = t[0].size, h = t[1].size;
|
|
9408
|
-
i = n.reduce((v, g) =>
|
|
9408
|
+
i = n.reduce((v, g) => Xt(Xt(v, g, p), g + 1, h), i);
|
|
9409
9409
|
} else
|
|
9410
9410
|
[i, a] = FS(i, t);
|
|
9411
9411
|
if (i === s)
|
|
@@ -9413,7 +9413,7 @@ function HS(e, [t, n, r, o]) {
|
|
|
9413
9413
|
const { lastIndex: l, lastOffset: c, lastSize: d, offsetTree: f } = oa(e.offsetTree, a, i, o);
|
|
9414
9414
|
return {
|
|
9415
9415
|
groupIndices: n,
|
|
9416
|
-
groupOffsetTree: n.reduce((p, h) =>
|
|
9416
|
+
groupOffsetTree: n.reduce((p, h) => Xt(p, h, uo(h, f, o)), Nr()),
|
|
9417
9417
|
lastIndex: l,
|
|
9418
9418
|
lastOffset: c,
|
|
9419
9419
|
lastSize: d,
|
|
@@ -9489,7 +9489,7 @@ const qS = {
|
|
|
9489
9489
|
_e((C) => C.length > 0),
|
|
9490
9490
|
Ue(g, h),
|
|
9491
9491
|
fe(([C, b, k]) => {
|
|
9492
|
-
const E = C.reduce((_, O, $) =>
|
|
9492
|
+
const E = C.reduce((_, O, $) => Xt(_, O, uo(O, b.offsetTree, k) || $), Nr());
|
|
9493
9493
|
return {
|
|
9494
9494
|
...b,
|
|
9495
9495
|
groupIndices: C,
|
|
@@ -9528,7 +9528,7 @@ const qS = {
|
|
|
9528
9528
|
),
|
|
9529
9529
|
n
|
|
9530
9530
|
);
|
|
9531
|
-
const w =
|
|
9531
|
+
const w = Zt(
|
|
9532
9532
|
ee(
|
|
9533
9533
|
n,
|
|
9534
9534
|
Ue(g),
|
|
@@ -9564,10 +9564,10 @@ const qS = {
|
|
|
9564
9564
|
C < 0 && b(
|
|
9565
9565
|
"`firstItemIndex` prop should not be set to less than zero. If you don't know the total count, just use a very high value",
|
|
9566
9566
|
{ firstItemIndex: a },
|
|
9567
|
-
|
|
9567
|
+
Kt.ERROR
|
|
9568
9568
|
);
|
|
9569
9569
|
});
|
|
9570
|
-
const S =
|
|
9570
|
+
const S = Zt(s);
|
|
9571
9571
|
we(
|
|
9572
9572
|
ee(
|
|
9573
9573
|
s,
|
|
@@ -9629,7 +9629,7 @@ const qS = {
|
|
|
9629
9629
|
),
|
|
9630
9630
|
n
|
|
9631
9631
|
);
|
|
9632
|
-
const T =
|
|
9632
|
+
const T = Zt(
|
|
9633
9633
|
ee(
|
|
9634
9634
|
i,
|
|
9635
9635
|
Ue(g, h),
|
|
@@ -9655,11 +9655,11 @@ const qS = {
|
|
|
9655
9655
|
const H = _[$ + 1] - K - 1;
|
|
9656
9656
|
$++, O += H + 1;
|
|
9657
9657
|
}
|
|
9658
|
-
if (E = Qn(b.sizeTree).reduce((H, { k: A, v: N }) =>
|
|
9658
|
+
if (E = Qn(b.sizeTree).reduce((H, { k: A, v: N }) => Xt(H, Math.max(0, A + C), N), E), O !== -C) {
|
|
9659
9659
|
const H = lo(b.sizeTree, K);
|
|
9660
|
-
E =
|
|
9660
|
+
E = Xt(E, 0, H);
|
|
9661
9661
|
const A = fn(b.sizeTree, -C + 1)[1];
|
|
9662
|
-
E =
|
|
9662
|
+
E = Xt(E, 1, A);
|
|
9663
9663
|
}
|
|
9664
9664
|
return {
|
|
9665
9665
|
...b,
|
|
@@ -9667,7 +9667,7 @@ const qS = {
|
|
|
9667
9667
|
...oa(b.offsetTree, 0, E, k)
|
|
9668
9668
|
};
|
|
9669
9669
|
} else {
|
|
9670
|
-
const E = Qn(b.sizeTree).reduce((_, { k: O, v: $ }) =>
|
|
9670
|
+
const E = Qn(b.sizeTree).reduce((_, { k: O, v: $ }) => Xt(_, Math.max(0, O + C), $), Nr());
|
|
9671
9671
|
return {
|
|
9672
9672
|
...b,
|
|
9673
9673
|
sizeTree: E,
|
|
@@ -9713,7 +9713,7 @@ function GS(e) {
|
|
|
9713
9713
|
}
|
|
9714
9714
|
const tp = et(
|
|
9715
9715
|
([{ groupIndices: e, sizes: t, totalCount: n }, { headerHeight: r, scrollTop: o }]) => {
|
|
9716
|
-
const s = Ke(), i = Ke(), a =
|
|
9716
|
+
const s = Ke(), i = Ke(), a = Zt(ee(s, fe(GS)));
|
|
9717
9717
|
return we(
|
|
9718
9718
|
ee(
|
|
9719
9719
|
a,
|
|
@@ -9740,7 +9740,7 @@ const tp = et(
|
|
|
9740
9740
|
ut(kn, zt)
|
|
9741
9741
|
), Vn = et(
|
|
9742
9742
|
([{ log: e }]) => {
|
|
9743
|
-
const t = ie(!1), n =
|
|
9743
|
+
const t = ie(!1), n = Zt(
|
|
9744
9744
|
ee(
|
|
9745
9745
|
t,
|
|
9746
9746
|
_e((r) => r),
|
|
@@ -9748,7 +9748,7 @@ const tp = et(
|
|
|
9748
9748
|
)
|
|
9749
9749
|
);
|
|
9750
9750
|
return ot(t, (r) => {
|
|
9751
|
-
r && wt(e)("props updated", {},
|
|
9751
|
+
r && wt(e)("props updated", {}, Kt.DEBUG);
|
|
9752
9752
|
}), { didMount: n, propsReady: t };
|
|
9753
9753
|
},
|
|
9754
9754
|
ut(Wn),
|
|
@@ -9794,7 +9794,7 @@ const To = et(
|
|
|
9794
9794
|
let te = uo(W, C.offsetTree, K) + _;
|
|
9795
9795
|
R === "end" ? (te += H + fn(C.sizeTree, W)[1] - b + A, W === P && (te += O)) : R === "center" ? te += (H + fn(C.sizeTree, W)[1] - b + A) / 2 : te -= E, D && (te += D);
|
|
9796
9796
|
const j = (G) => {
|
|
9797
|
-
S(), G ? ($("retrying to scroll to", { location: T },
|
|
9797
|
+
S(), G ? ($("retrying to scroll to", { location: T }, Kt.DEBUG), $e(h, T)) : ($e(v, !0), $("list did not change, scroll successful", {}, Kt.DEBUG));
|
|
9798
9798
|
};
|
|
9799
9799
|
if (S(), B === "smooth") {
|
|
9800
9800
|
let G = !1;
|
|
@@ -9807,7 +9807,7 @@ const To = et(
|
|
|
9807
9807
|
y = cn(ee(t, XS(150)), j);
|
|
9808
9808
|
return x = setTimeout(() => {
|
|
9809
9809
|
S();
|
|
9810
|
-
}, 1200), $e(l, !0), $("scrolling from index to", { behavior: B, index: W, top: te },
|
|
9810
|
+
}, 1200), $e(l, !0), $("scrolling from index to", { behavior: B, index: W, top: te }, Kt.DEBUG), { behavior: B, top: te };
|
|
9811
9811
|
}
|
|
9812
9812
|
)
|
|
9813
9813
|
),
|
|
@@ -9915,7 +9915,7 @@ const fo = "up", Xr = "down", JS = "none", ZS = {
|
|
|
9915
9915
|
),
|
|
9916
9916
|
a
|
|
9917
9917
|
), we(ee(a, En(50)), c);
|
|
9918
|
-
const v =
|
|
9918
|
+
const v = Zt(
|
|
9919
9919
|
ee(
|
|
9920
9920
|
St(r, je(s), je(t), je(e), je(d)),
|
|
9921
9921
|
bn((w, [{ scrollHeight: S, scrollTop: T }, C, b, k, E]) => {
|
|
@@ -10300,7 +10300,7 @@ const pr = et(
|
|
|
10300
10300
|
),
|
|
10301
10301
|
x
|
|
10302
10302
|
);
|
|
10303
|
-
const S =
|
|
10303
|
+
const S = Zt(
|
|
10304
10304
|
ee(
|
|
10305
10305
|
w,
|
|
10306
10306
|
_e(({ items: b }) => b.length > 0),
|
|
@@ -10310,7 +10310,7 @@ const pr = et(
|
|
|
10310
10310
|
ct(co),
|
|
10311
10311
|
fe(([b]) => b)
|
|
10312
10312
|
)
|
|
10313
|
-
), T =
|
|
10313
|
+
), T = Zt(
|
|
10314
10314
|
ee(
|
|
10315
10315
|
w,
|
|
10316
10316
|
En(200),
|
|
@@ -10318,7 +10318,7 @@ const pr = et(
|
|
|
10318
10318
|
fe(({ items: b }) => b[0].index),
|
|
10319
10319
|
ct()
|
|
10320
10320
|
)
|
|
10321
|
-
), C =
|
|
10321
|
+
), C = Zt(
|
|
10322
10322
|
ee(
|
|
10323
10323
|
w,
|
|
10324
10324
|
_e(({ items: b }) => b.length > 0),
|
|
@@ -10463,15 +10463,15 @@ const rC = (e, t) => typeof e == "function" ? Bc(e(t)) : t && Bc(e), oC = et(
|
|
|
10463
10463
|
),
|
|
10464
10464
|
({ followOutputBehavior: C, totalCount: b }) => {
|
|
10465
10465
|
y && (y(), y = null), wt(n) ? requestAnimationFrame(() => {
|
|
10466
|
-
wt(d)("following output to ", { totalCount: b },
|
|
10466
|
+
wt(d)("following output to ", { totalCount: b }, Kt.DEBUG), x(C);
|
|
10467
10467
|
}) : y = cn(e, () => {
|
|
10468
|
-
wt(d)("following output to ", { totalCount: b },
|
|
10468
|
+
wt(d)("following output to ", { totalCount: b }, Kt.DEBUG), x(C), y = null;
|
|
10469
10469
|
});
|
|
10470
10470
|
}
|
|
10471
10471
|
);
|
|
10472
10472
|
function w(C) {
|
|
10473
10473
|
const b = cn(o, (k) => {
|
|
10474
|
-
C && !k.atBottom && k.notAtBottomBecause === "SIZE_INCREASED" && !y && (wt(d)("scrolling to bottom due to increased size", {},
|
|
10474
|
+
C && !k.atBottom && k.notAtBottomBecause === "SIZE_INCREASED" && !y && (wt(d)("scrolling to bottom due to increased size", {}, Kt.DEBUG), x("auto"));
|
|
10475
10475
|
});
|
|
10476
10476
|
setTimeout(b, 100);
|
|
10477
10477
|
}
|
|
@@ -10700,7 +10700,7 @@ const uC = cp(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
10700
10700
|
{ log: h },
|
|
10701
10701
|
{ recalcInProgress: v }
|
|
10702
10702
|
]) => {
|
|
10703
|
-
const g =
|
|
10703
|
+
const g = Zt(
|
|
10704
10704
|
ee(
|
|
10705
10705
|
l,
|
|
10706
10706
|
Ue(i),
|
|
@@ -10715,7 +10715,7 @@ const uC = cp(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
10715
10715
|
_e(([x]) => x !== 0),
|
|
10716
10716
|
Ue(r, a, n, o, h, v),
|
|
10717
10717
|
_e(([, x, w, S, , , T]) => !T && !S && x !== 0 && w === fo),
|
|
10718
|
-
fe(([[x], , , , , w]) => (w("Upward scrolling compensation", { amount: x },
|
|
10718
|
+
fe(([[x], , , , , w]) => (w("Upward scrolling compensation", { amount: x }, Kt.DEBUG), x))
|
|
10719
10719
|
)
|
|
10720
10720
|
);
|
|
10721
10721
|
function y(x) {
|
|
@@ -11070,7 +11070,7 @@ const mC = /* @__PURE__ */ et(() => {
|
|
|
11070
11070
|
([e, t]) => ({ ...e, ...t }),
|
|
11071
11071
|
ut(up, mC)
|
|
11072
11072
|
), xC = ({ height: e }) => /* @__PURE__ */ u.jsx("div", { style: { height: e } }), yC = { overflowAnchor: "none", position: el(), zIndex: 1 }, gp = { overflowAnchor: "none" }, vC = { ...gp, display: "inline-block", height: "100%" }, Uc = /* @__PURE__ */ se.memo(function({ showTopList: e = !1 }) {
|
|
11073
|
-
const t = Oe("listState"), n =
|
|
11073
|
+
const t = Oe("listState"), n = nn("sizeRanges"), r = Oe("useWindowScroll"), o = Oe("customScrollParent"), s = nn("windowScrollContainerState"), i = nn("scrollContainerState"), a = o || r ? s : i, l = Oe("itemContent"), c = Oe("context"), d = Oe("groupContent"), f = Oe("trackItemSizes"), p = Oe("itemSize"), h = Oe("log"), v = nn("gap"), g = Oe("horizontalDirection"), { callbackRef: y } = MS(
|
|
11074
11074
|
n,
|
|
11075
11075
|
p,
|
|
11076
11076
|
f,
|
|
@@ -11177,7 +11177,7 @@ function CC(e, t) {
|
|
|
11177
11177
|
return { item: typeof e == "string" ? void 0 : t };
|
|
11178
11178
|
}
|
|
11179
11179
|
const TC = /* @__PURE__ */ se.memo(function() {
|
|
11180
|
-
const e = Oe("HeaderComponent"), t =
|
|
11180
|
+
const e = Oe("HeaderComponent"), t = nn("headerHeight"), n = Oe("HeaderFooterTag"), r = fr(
|
|
11181
11181
|
se.useMemo(
|
|
11182
11182
|
() => (s) => {
|
|
11183
11183
|
t(Fn(s, "height"));
|
|
@@ -11189,7 +11189,7 @@ const TC = /* @__PURE__ */ se.memo(function() {
|
|
|
11189
11189
|
), o = Oe("context");
|
|
11190
11190
|
return e ? /* @__PURE__ */ u.jsx(n, { ref: r, children: /* @__PURE__ */ u.jsx(e, { ...Dt(e, o) }) }) : null;
|
|
11191
11191
|
}), kC = /* @__PURE__ */ se.memo(function() {
|
|
11192
|
-
const e = Oe("FooterComponent"), t =
|
|
11192
|
+
const e = Oe("FooterComponent"), t = nn("footerHeight"), n = Oe("HeaderFooterTag"), r = fr(
|
|
11193
11193
|
se.useMemo(
|
|
11194
11194
|
() => (s) => {
|
|
11195
11195
|
t(Fn(s, "height"));
|
|
@@ -11254,7 +11254,7 @@ function yp({ useEmitter: e, useEmitterValue: t, usePublisher: n }) {
|
|
|
11254
11254
|
});
|
|
11255
11255
|
}
|
|
11256
11256
|
const IC = ({ children: e }) => {
|
|
11257
|
-
const t = se.useContext(fp), n =
|
|
11257
|
+
const t = se.useContext(fp), n = nn("viewportHeight"), r = nn("fixedItemHeight"), o = Oe("alignToBottom"), s = Oe("horizontalDirection"), i = se.useMemo(
|
|
11258
11258
|
() => Hf(n, (l) => Fn(l, s ? "width" : "height")),
|
|
11259
11259
|
[n, s]
|
|
11260
11260
|
), a = fr(i, !0, Oe("skipAnimationFrameInResizeObserver"));
|
|
@@ -11262,7 +11262,7 @@ const IC = ({ children: e }) => {
|
|
|
11262
11262
|
t && (n(t.viewportHeight), r(t.itemHeight));
|
|
11263
11263
|
}, [t, n, r]), /* @__PURE__ */ u.jsx("div", { "data-viewport-type": "element", ref: a, style: Zs(o), children: e });
|
|
11264
11264
|
}, RC = ({ children: e }) => {
|
|
11265
|
-
const t = se.useContext(fp), n =
|
|
11265
|
+
const t = se.useContext(fp), n = nn("windowViewportRect"), r = nn("fixedItemHeight"), o = Oe("customScrollParent"), s = Vf(
|
|
11266
11266
|
n,
|
|
11267
11267
|
o,
|
|
11268
11268
|
Oe("skipAnimationFrameInResizeObserver")
|
|
@@ -11287,7 +11287,7 @@ const IC = ({ children: e }) => {
|
|
|
11287
11287
|
Component: AC,
|
|
11288
11288
|
useEmitter: nl,
|
|
11289
11289
|
useEmitterValue: Oe,
|
|
11290
|
-
usePublisher:
|
|
11290
|
+
usePublisher: nn
|
|
11291
11291
|
} = /* @__PURE__ */ dp(
|
|
11292
11292
|
gC,
|
|
11293
11293
|
{
|
|
@@ -11347,7 +11347,7 @@ const IC = ({ children: e }) => {
|
|
|
11347
11347
|
}
|
|
11348
11348
|
},
|
|
11349
11349
|
NC
|
|
11350
|
-
), jC = /* @__PURE__ */ xp({ useEmitter: nl, useEmitterValue: Oe, usePublisher:
|
|
11350
|
+
), jC = /* @__PURE__ */ xp({ useEmitter: nl, useEmitterValue: Oe, usePublisher: nn }), _C = /* @__PURE__ */ yp({ useEmitter: nl, useEmitterValue: Oe, usePublisher: nn }), PC = AC, MC = /* @__PURE__ */ et(() => {
|
|
11351
11351
|
const e = ie((c) => /* @__PURE__ */ u.jsxs("td", { children: [
|
|
11352
11352
|
"Item $",
|
|
11353
11353
|
c
|
|
@@ -11561,7 +11561,7 @@ const $C = /* @__PURE__ */ et(
|
|
|
11561
11561
|
),
|
|
11562
11562
|
G
|
|
11563
11563
|
);
|
|
11564
|
-
const ae =
|
|
11564
|
+
const ae = Zt(
|
|
11565
11565
|
ee(
|
|
11566
11566
|
St(E, b),
|
|
11567
11567
|
_e(([{ items: M }]) => M.length > 0),
|
|
@@ -11573,14 +11573,14 @@ const $C = /* @__PURE__ */ et(
|
|
|
11573
11573
|
fe(([[, M]]) => M - 1),
|
|
11574
11574
|
ct()
|
|
11575
11575
|
)
|
|
11576
|
-
), Z =
|
|
11576
|
+
), Z = Zt(
|
|
11577
11577
|
ee(
|
|
11578
11578
|
je(E),
|
|
11579
11579
|
_e(({ items: M }) => M.length > 0 && M[0].index === 0),
|
|
11580
11580
|
yn(0),
|
|
11581
11581
|
ct()
|
|
11582
11582
|
)
|
|
11583
|
-
), ce =
|
|
11583
|
+
), ce = Zt(
|
|
11584
11584
|
ee(
|
|
11585
11585
|
je(E),
|
|
11586
11586
|
Ue(D),
|
|
@@ -11709,7 +11709,7 @@ const FC = /* @__PURE__ */ et(() => {
|
|
|
11709
11709
|
([e, t]) => ({ ...e, ...t }),
|
|
11710
11710
|
ut($C, FC)
|
|
11711
11711
|
), zC = /* @__PURE__ */ se.memo(function() {
|
|
11712
|
-
const e = pt("gridState"), t = pt("listClassName"), n = pt("itemClassName"), r = pt("itemContent"), o = pt("computeItemKey"), s = pt("isSeeking"), i =
|
|
11712
|
+
const e = pt("gridState"), t = pt("listClassName"), n = pt("itemClassName"), r = pt("itemContent"), o = pt("computeItemKey"), s = pt("isSeeking"), i = rn("scrollHeight"), a = pt("ItemComponent"), l = pt("ListComponent"), c = pt("ScrollSeekPlaceholder"), d = pt("context"), f = rn("itemDimensions"), p = rn("gap"), h = pt("log"), v = pt("stateRestoreInProgress"), g = rn("reportReadyState"), y = fr(
|
|
11713
11713
|
se.useMemo(
|
|
11714
11714
|
() => (x) => {
|
|
11715
11715
|
const w = x.parentElement.parentElement.scrollHeight;
|
|
@@ -11764,7 +11764,7 @@ const FC = /* @__PURE__ */ et(() => {
|
|
|
11764
11764
|
}
|
|
11765
11765
|
);
|
|
11766
11766
|
}), UC = se.memo(function() {
|
|
11767
|
-
const e = pt("HeaderComponent"), t =
|
|
11767
|
+
const e = pt("HeaderComponent"), t = rn("headerHeight"), n = pt("headerFooterTag"), r = fr(
|
|
11768
11768
|
se.useMemo(
|
|
11769
11769
|
() => (s) => {
|
|
11770
11770
|
t(Fn(s, "height"));
|
|
@@ -11776,7 +11776,7 @@ const FC = /* @__PURE__ */ et(() => {
|
|
|
11776
11776
|
), o = pt("context");
|
|
11777
11777
|
return e ? /* @__PURE__ */ u.jsx(n, { ref: r, children: /* @__PURE__ */ u.jsx(e, { ...Dt(e, o) }) }) : null;
|
|
11778
11778
|
}), HC = se.memo(function() {
|
|
11779
|
-
const e = pt("FooterComponent"), t =
|
|
11779
|
+
const e = pt("FooterComponent"), t = rn("footerHeight"), n = pt("headerFooterTag"), r = fr(
|
|
11780
11780
|
se.useMemo(
|
|
11781
11781
|
() => (s) => {
|
|
11782
11782
|
t(Fn(s, "height"));
|
|
@@ -11788,7 +11788,7 @@ const FC = /* @__PURE__ */ et(() => {
|
|
|
11788
11788
|
), o = pt("context");
|
|
11789
11789
|
return e ? /* @__PURE__ */ u.jsx(n, { ref: r, children: /* @__PURE__ */ u.jsx(e, { ...Dt(e, o) }) }) : null;
|
|
11790
11790
|
}), WC = ({ children: e }) => {
|
|
11791
|
-
const t = se.useContext(pp), n =
|
|
11791
|
+
const t = se.useContext(pp), n = rn("itemDimensions"), r = rn("viewportDimensions"), o = fr(
|
|
11792
11792
|
se.useMemo(
|
|
11793
11793
|
() => (s) => {
|
|
11794
11794
|
r(s.getBoundingClientRect());
|
|
@@ -11802,7 +11802,7 @@ const FC = /* @__PURE__ */ et(() => {
|
|
|
11802
11802
|
t && (r({ height: t.viewportHeight, width: t.viewportWidth }), n({ height: t.itemHeight, width: t.itemWidth }));
|
|
11803
11803
|
}, [t, r, n]), /* @__PURE__ */ u.jsx("div", { ref: o, style: Zs(!1), children: e });
|
|
11804
11804
|
}, VC = ({ children: e }) => {
|
|
11805
|
-
const t = se.useContext(pp), n =
|
|
11805
|
+
const t = se.useContext(pp), n = rn("windowViewportRect"), r = rn("itemDimensions"), o = pt("customScrollParent"), s = Vf(n, o, !1);
|
|
11806
11806
|
return se.useEffect(() => {
|
|
11807
11807
|
t && (r({ height: t.itemHeight, width: t.itemWidth }), n({ offsetTop: 0, visibleHeight: t.viewportHeight, visibleWidth: t.viewportWidth }));
|
|
11808
11808
|
}, [t, n, r]), /* @__PURE__ */ u.jsx("div", { ref: s, style: Zs(!1), children: e });
|
|
@@ -11816,7 +11816,7 @@ const FC = /* @__PURE__ */ et(() => {
|
|
|
11816
11816
|
}), {
|
|
11817
11817
|
useEmitter: wp,
|
|
11818
11818
|
useEmitterValue: pt,
|
|
11819
|
-
usePublisher:
|
|
11819
|
+
usePublisher: rn
|
|
11820
11820
|
} = /* @__PURE__ */ dp(
|
|
11821
11821
|
BC,
|
|
11822
11822
|
{
|
|
@@ -11858,9 +11858,9 @@ const FC = /* @__PURE__ */ et(() => {
|
|
|
11858
11858
|
}
|
|
11859
11859
|
},
|
|
11860
11860
|
KC
|
|
11861
|
-
), qC = /* @__PURE__ */ xp({ useEmitter: wp, useEmitterValue: pt, usePublisher:
|
|
11861
|
+
), qC = /* @__PURE__ */ xp({ useEmitter: wp, useEmitterValue: pt, usePublisher: rn }), GC = /* @__PURE__ */ yp({ useEmitter: wp, useEmitterValue: pt, usePublisher: rn });
|
|
11862
11862
|
function Gc(e, t, n) {
|
|
11863
|
-
return t !== "normal" && !(t != null && t.endsWith("px")) && n(`${e} was not resolved to pixel value correctly`, t,
|
|
11863
|
+
return t !== "normal" && !(t != null && t.endsWith("px")) && n(`${e} was not resolved to pixel value correctly`, t, Kt.WARN), t === "normal" ? 0 : parseInt(t ?? "0", 10);
|
|
11864
11864
|
}
|
|
11865
11865
|
const YC = Rs(
|
|
11866
11866
|
"inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
|
|
@@ -12053,7 +12053,7 @@ function oT(e) {
|
|
|
12053
12053
|
});
|
|
12054
12054
|
}
|
|
12055
12055
|
async function Tp(e, t) {
|
|
12056
|
-
return await
|
|
12056
|
+
return await Gt(e, {
|
|
12057
12057
|
responseType: "blob",
|
|
12058
12058
|
onDownloadProgress: (r) => {
|
|
12059
12059
|
try {
|
|
@@ -12072,7 +12072,7 @@ async function sT(e, t) {
|
|
|
12072
12072
|
const n = await Tp(`/files/${e}/download`, t), r = URL.createObjectURL(n);
|
|
12073
12073
|
let o = `file_${e}`;
|
|
12074
12074
|
try {
|
|
12075
|
-
const i = await
|
|
12075
|
+
const i = await Gt(`/files/${e}`);
|
|
12076
12076
|
o = (i == null ? void 0 : i.filename) ?? o;
|
|
12077
12077
|
} catch {
|
|
12078
12078
|
}
|
|
@@ -12081,7 +12081,7 @@ async function sT(e, t) {
|
|
|
12081
12081
|
}
|
|
12082
12082
|
async function iT(e, t = 50, n = 0) {
|
|
12083
12083
|
const r = { limit: t, offset: n };
|
|
12084
|
-
return e && (r.thread_id = e), await
|
|
12084
|
+
return e && (r.thread_id = e), await Gt("/files", { params: r });
|
|
12085
12085
|
}
|
|
12086
12086
|
var Qs = "Dialog", [kp, pR] = _n(Qs), [aT, hn] = kp(Qs), Ip = (e) => {
|
|
12087
12087
|
const {
|
|
@@ -14938,7 +14938,7 @@ const ml = Um(function({
|
|
|
14938
14938
|
z.length,
|
|
14939
14939
|
At,
|
|
14940
14940
|
F
|
|
14941
|
-
]),
|
|
14941
|
+
]), Qt = De(() => j ? "Assistant" : eT(t), [j, t]), Ve = De(() => j ? [] : Array.isArray(b) ? b : [], [b, j]), mn = De(() => {
|
|
14942
14942
|
var Y;
|
|
14943
14943
|
return Ve.length ? _ && Ve.some((U) => U.id === _) ? _ : ((Y = Ve[0]) == null ? void 0 : Y.id) ?? null : null;
|
|
14944
14944
|
}, [_, Ve]), Xe = De(() => !Ve.length || !k ? null : Ve.some((Y) => Y.id === k) ? k : null, [k, Ve]) ?? mn, ft = W === "user" && Ve.length > 0 && typeof E == "function", jt = pe(
|
|
@@ -14975,7 +14975,7 @@ const ml = Um(function({
|
|
|
14975
14975
|
children: [
|
|
14976
14976
|
/* @__PURE__ */ u.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
14977
14977
|
nt(),
|
|
14978
|
-
a &&
|
|
14978
|
+
a && Qt && /* @__PURE__ */ u.jsx("span", { className: oe("font-medium", P ? "text-xs" : "text-sm"), children: Qt }),
|
|
14979
14979
|
te && /* @__PURE__ */ u.jsxs(
|
|
14980
14980
|
bp,
|
|
14981
14981
|
{
|
|
@@ -15580,7 +15580,7 @@ function Pi({
|
|
|
15580
15580
|
Z(!0);
|
|
15581
15581
|
}, []), q = pe(() => {
|
|
15582
15582
|
Z(!1);
|
|
15583
|
-
}, []), M = !!G || ae, [V, F] = me(null), [Q, J] = me(""), [ve, de] = me(null), [re, ye] = me(null), [Ce, Fe] = me([]), [Ae, We] = me(0), [z, le] = me(0), [ke, Ge] = me(!1), [nt, kt] = me(null), [dt, vt] = me(null), [gt, Ct] = me(!1), [At, Ut] = me(null),
|
|
15583
|
+
}, []), M = !!G || ae, [V, F] = me(null), [Q, J] = me(""), [ve, de] = me(null), [re, ye] = me(null), [Ce, Fe] = me([]), [Ae, We] = me(0), [z, le] = me(0), [ke, Ge] = me(!1), [nt, kt] = me(null), [dt, vt] = me(null), [gt, Ct] = me(!1), [At, Ut] = me(null), Qt = Be(!1), [Ve, mn] = me(() => su.value), rt = Be(Ve), Xe = Be(null), ft = pe((xe) => {
|
|
15584
15584
|
su.value = xe, mn(xe);
|
|
15585
15585
|
}, []), [jt, Ze] = me(!1), _t = Be(null), { checkpointMetaById: Y, checkpointIndexByKey: U, attemptMetaById: ne, userMessageIdToAttempts: Re } = wS(_), be = K ?? [], tt = Be(null), Me = Be(null), xt = pe(() => {
|
|
15586
15586
|
tt.current && (tt.current.value = ""), Me.current && (Me.current.value = ""), We((xe) => xe + 1), le((xe) => xe + 1);
|
|
@@ -15601,7 +15601,7 @@ function Pi({
|
|
|
15601
15601
|
};
|
|
15602
15602
|
return xe(), window.addEventListener("resize", xe), () => window.removeEventListener("resize", xe);
|
|
15603
15603
|
}, []), lt(() => {
|
|
15604
|
-
|
|
15604
|
+
Qt.current = !1;
|
|
15605
15605
|
}, [P]), lt(() => {
|
|
15606
15606
|
rt.current = Ve;
|
|
15607
15607
|
}, [Ve]), lt(() => {
|
|
@@ -15680,13 +15680,13 @@ function Pi({
|
|
|
15680
15680
|
[Yn]
|
|
15681
15681
|
), ue = pe((xe) => {
|
|
15682
15682
|
let Ne = null;
|
|
15683
|
-
for (let
|
|
15684
|
-
if (S[
|
|
15685
|
-
Ne = S[
|
|
15683
|
+
for (let en = xe - 1; en >= 0; en--)
|
|
15684
|
+
if (S[en].role === "user") {
|
|
15685
|
+
Ne = S[en];
|
|
15686
15686
|
break;
|
|
15687
15687
|
}
|
|
15688
15688
|
if (!Ne) return;
|
|
15689
|
-
const Pe = Array.isArray(Ne.content) ? Ne.content : [], Pn = Pe.filter((
|
|
15689
|
+
const Pe = Array.isArray(Ne.content) ? Ne.content : [], Pn = Pe.filter((en) => (en == null ? void 0 : en.type) === "text").map((en) => en.text).join("") || (() => {
|
|
15690
15690
|
try {
|
|
15691
15691
|
return JSON.stringify(Pe, null, 2);
|
|
15692
15692
|
} catch {
|
|
@@ -16761,7 +16761,7 @@ var Kr = '[cmdk-group=""]', Di = '[cmdk-group-items=""]', Tk = '[cmdk-group-head
|
|
|
16761
16761
|
}), _k = m.forwardRef((e, t) => Un((n) => n.filtered.count === 0) ? m.createElement(Ee.div, { ref: t, ...e, "cmdk-empty": "", role: "presentation" }) : null), Pk = m.forwardRef((e, t) => {
|
|
16762
16762
|
let { progress: n, children: r, label: o = "Loading...", ...s } = e;
|
|
16763
16763
|
return m.createElement(Ee.div, { ref: t, ...s, "cmdk-loading": "", role: "progressbar", "aria-valuenow": n, "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": o }, ri(e, (i) => m.createElement("div", { "aria-hidden": !0 }, i)));
|
|
16764
|
-
}),
|
|
16764
|
+
}), qt = Object.assign(Ch, { List: Ak, Item: Ik, Input: Nk, Group: Rk, Separator: Ek, Dialog: jk, Empty: _k, Loading: Pk });
|
|
16765
16765
|
function Mk(e, t) {
|
|
16766
16766
|
let n = e.nextElementSibling;
|
|
16767
16767
|
for (; n; ) {
|
|
@@ -16822,7 +16822,7 @@ function ri({ asChild: e, children: t }, n) {
|
|
|
16822
16822
|
}
|
|
16823
16823
|
var $k = { position: "absolute", width: "1px", height: "1px", padding: "0", margin: "-1px", overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0" };
|
|
16824
16824
|
const Ih = m.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
|
|
16825
|
-
|
|
16825
|
+
qt,
|
|
16826
16826
|
{
|
|
16827
16827
|
ref: n,
|
|
16828
16828
|
className: oe(
|
|
@@ -16832,11 +16832,11 @@ const Ih = m.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
|
|
|
16832
16832
|
...t
|
|
16833
16833
|
}
|
|
16834
16834
|
));
|
|
16835
|
-
Ih.displayName =
|
|
16835
|
+
Ih.displayName = qt.displayName;
|
|
16836
16836
|
const Rh = m.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsxs("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
|
|
16837
16837
|
/* @__PURE__ */ u.jsx(tg, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
|
|
16838
16838
|
/* @__PURE__ */ u.jsx(
|
|
16839
|
-
|
|
16839
|
+
qt.Input,
|
|
16840
16840
|
{
|
|
16841
16841
|
ref: n,
|
|
16842
16842
|
className: oe(
|
|
@@ -16847,27 +16847,27 @@ const Rh = m.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsxs("d
|
|
|
16847
16847
|
}
|
|
16848
16848
|
)
|
|
16849
16849
|
] }));
|
|
16850
|
-
Rh.displayName =
|
|
16850
|
+
Rh.displayName = qt.Input.displayName;
|
|
16851
16851
|
const Eh = m.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
|
|
16852
|
-
|
|
16852
|
+
qt.List,
|
|
16853
16853
|
{
|
|
16854
16854
|
ref: n,
|
|
16855
16855
|
className: oe("max-h-[300px] overflow-y-auto overflow-x-hidden", e),
|
|
16856
16856
|
...t
|
|
16857
16857
|
}
|
|
16858
16858
|
));
|
|
16859
|
-
Eh.displayName =
|
|
16859
|
+
Eh.displayName = qt.List.displayName;
|
|
16860
16860
|
const Nh = m.forwardRef((e, t) => /* @__PURE__ */ u.jsx(
|
|
16861
|
-
|
|
16861
|
+
qt.Empty,
|
|
16862
16862
|
{
|
|
16863
16863
|
ref: t,
|
|
16864
16864
|
className: "py-6 text-center text-sm",
|
|
16865
16865
|
...e
|
|
16866
16866
|
}
|
|
16867
16867
|
));
|
|
16868
|
-
Nh.displayName =
|
|
16868
|
+
Nh.displayName = qt.Empty.displayName;
|
|
16869
16869
|
const Ah = m.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
|
|
16870
|
-
|
|
16870
|
+
qt.Group,
|
|
16871
16871
|
{
|
|
16872
16872
|
ref: n,
|
|
16873
16873
|
className: oe(
|
|
@@ -16877,18 +16877,18 @@ const Ah = m.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
|
|
|
16877
16877
|
...t
|
|
16878
16878
|
}
|
|
16879
16879
|
));
|
|
16880
|
-
Ah.displayName =
|
|
16880
|
+
Ah.displayName = qt.Group.displayName;
|
|
16881
16881
|
const Fk = m.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
|
|
16882
|
-
|
|
16882
|
+
qt.Separator,
|
|
16883
16883
|
{
|
|
16884
16884
|
ref: n,
|
|
16885
16885
|
className: oe("-mx-1 h-px bg-border", e),
|
|
16886
16886
|
...t
|
|
16887
16887
|
}
|
|
16888
16888
|
));
|
|
16889
|
-
Fk.displayName =
|
|
16889
|
+
Fk.displayName = qt.Separator.displayName;
|
|
16890
16890
|
const jh = m.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
|
|
16891
|
-
|
|
16891
|
+
qt.Item,
|
|
16892
16892
|
{
|
|
16893
16893
|
ref: n,
|
|
16894
16894
|
className: oe(
|
|
@@ -16898,7 +16898,7 @@ const jh = m.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
|
|
|
16898
16898
|
...t
|
|
16899
16899
|
}
|
|
16900
16900
|
));
|
|
16901
|
-
jh.displayName =
|
|
16901
|
+
jh.displayName = qt.Item.displayName;
|
|
16902
16902
|
const uu = 25;
|
|
16903
16903
|
function du({
|
|
16904
16904
|
className: e = "",
|
|
@@ -17354,7 +17354,7 @@ Dh.displayName = Vk;
|
|
|
17354
17354
|
var Lh = Dh;
|
|
17355
17355
|
const Kk = Rs(
|
|
17356
17356
|
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
17357
|
-
),
|
|
17357
|
+
), tn = m.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
|
|
17358
17358
|
Lh,
|
|
17359
17359
|
{
|
|
17360
17360
|
ref: n,
|
|
@@ -17362,7 +17362,7 @@ const Kk = Rs(
|
|
|
17362
17362
|
...t
|
|
17363
17363
|
}
|
|
17364
17364
|
));
|
|
17365
|
-
|
|
17365
|
+
tn.displayName = Lh.displayName;
|
|
17366
17366
|
function $h(e) {
|
|
17367
17367
|
const t = m.useRef({ value: e, previous: e });
|
|
17368
17368
|
return m.useMemo(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [e]);
|
|
@@ -18621,7 +18621,7 @@ function bR({ settings: e, onSettingsChange: t, className: n = "" }) {
|
|
|
18621
18621
|
] }) }),
|
|
18622
18622
|
/* @__PURE__ */ u.jsxs(no, { className: "space-y-4", children: [
|
|
18623
18623
|
/* @__PURE__ */ u.jsxs("div", { className: "space-y-2", children: [
|
|
18624
|
-
/* @__PURE__ */ u.jsx(
|
|
18624
|
+
/* @__PURE__ */ u.jsx(tn, { htmlFor: "api-url", children: "API Base URL" }),
|
|
18625
18625
|
/* @__PURE__ */ u.jsxs("div", { className: "flex gap-2", children: [
|
|
18626
18626
|
/* @__PURE__ */ u.jsx(
|
|
18627
18627
|
bs,
|
|
@@ -18639,7 +18639,7 @@ function bR({ settings: e, onSettingsChange: t, className: n = "" }) {
|
|
|
18639
18639
|
] })
|
|
18640
18640
|
] }),
|
|
18641
18641
|
/* @__PURE__ */ u.jsxs("div", { className: "flex items-center justify-between", children: [
|
|
18642
|
-
/* @__PURE__ */ u.jsx(
|
|
18642
|
+
/* @__PURE__ */ u.jsx(tn, { htmlFor: "enable-auth", children: "Enable Authentication" }),
|
|
18643
18643
|
/* @__PURE__ */ u.jsx(
|
|
18644
18644
|
On,
|
|
18645
18645
|
{
|
|
@@ -18653,7 +18653,7 @@ function bR({ settings: e, onSettingsChange: t, className: n = "" }) {
|
|
|
18653
18653
|
)
|
|
18654
18654
|
] }),
|
|
18655
18655
|
a.api.enableAuth && /* @__PURE__ */ u.jsxs("div", { className: "space-y-2", children: [
|
|
18656
|
-
/* @__PURE__ */ u.jsx(
|
|
18656
|
+
/* @__PURE__ */ u.jsx(tn, { htmlFor: "auth-token", children: "Authentication Token" }),
|
|
18657
18657
|
/* @__PURE__ */ u.jsxs("div", { className: "flex gap-2", children: [
|
|
18658
18658
|
/* @__PURE__ */ u.jsx(
|
|
18659
18659
|
bs,
|
|
@@ -18688,7 +18688,7 @@ function bR({ settings: e, onSettingsChange: t, className: n = "" }) {
|
|
|
18688
18688
|
] }) }),
|
|
18689
18689
|
/* @__PURE__ */ u.jsxs(no, { className: "space-y-4", children: [
|
|
18690
18690
|
/* @__PURE__ */ u.jsxs("div", { className: "space-y-2", children: [
|
|
18691
|
-
/* @__PURE__ */ u.jsx(
|
|
18691
|
+
/* @__PURE__ */ u.jsx(tn, { htmlFor: "layout", children: "Layout Style" }),
|
|
18692
18692
|
/* @__PURE__ */ u.jsxs(
|
|
18693
18693
|
fu,
|
|
18694
18694
|
{
|
|
@@ -18709,7 +18709,7 @@ function bR({ settings: e, onSettingsChange: t, className: n = "" }) {
|
|
|
18709
18709
|
)
|
|
18710
18710
|
] }),
|
|
18711
18711
|
/* @__PURE__ */ u.jsxs("div", { className: "space-y-2", children: [
|
|
18712
|
-
/* @__PURE__ */ u.jsx(
|
|
18712
|
+
/* @__PURE__ */ u.jsx(tn, { htmlFor: "theme", children: "Theme" }),
|
|
18713
18713
|
/* @__PURE__ */ u.jsxs(
|
|
18714
18714
|
fu,
|
|
18715
18715
|
{
|
|
@@ -18732,7 +18732,7 @@ function bR({ settings: e, onSettingsChange: t, className: n = "" }) {
|
|
|
18732
18732
|
/* @__PURE__ */ u.jsx(km, {}),
|
|
18733
18733
|
/* @__PURE__ */ u.jsxs("div", { className: "space-y-3", children: [
|
|
18734
18734
|
/* @__PURE__ */ u.jsxs("div", { className: "flex items-center justify-between", children: [
|
|
18735
|
-
/* @__PURE__ */ u.jsx(
|
|
18735
|
+
/* @__PURE__ */ u.jsx(tn, { htmlFor: "show-timestamps", children: "Show Timestamps" }),
|
|
18736
18736
|
/* @__PURE__ */ u.jsx(
|
|
18737
18737
|
On,
|
|
18738
18738
|
{
|
|
@@ -18746,7 +18746,7 @@ function bR({ settings: e, onSettingsChange: t, className: n = "" }) {
|
|
|
18746
18746
|
)
|
|
18747
18747
|
] }),
|
|
18748
18748
|
/* @__PURE__ */ u.jsxs("div", { className: "flex items-center justify-between", children: [
|
|
18749
|
-
/* @__PURE__ */ u.jsx(
|
|
18749
|
+
/* @__PURE__ */ u.jsx(tn, { htmlFor: "show-agent-names", children: "Show Agent Names" }),
|
|
18750
18750
|
/* @__PURE__ */ u.jsx(
|
|
18751
18751
|
On,
|
|
18752
18752
|
{
|
|
@@ -18760,7 +18760,7 @@ function bR({ settings: e, onSettingsChange: t, className: n = "" }) {
|
|
|
18760
18760
|
)
|
|
18761
18761
|
] }),
|
|
18762
18762
|
/* @__PURE__ */ u.jsxs("div", { className: "flex items-center justify-between", children: [
|
|
18763
|
-
/* @__PURE__ */ u.jsx(
|
|
18763
|
+
/* @__PURE__ */ u.jsx(tn, { htmlFor: "compact-messages", children: "Compact Messages" }),
|
|
18764
18764
|
/* @__PURE__ */ u.jsx(
|
|
18765
18765
|
On,
|
|
18766
18766
|
{
|
|
@@ -18784,7 +18784,7 @@ function bR({ settings: e, onSettingsChange: t, className: n = "" }) {
|
|
|
18784
18784
|
/* @__PURE__ */ u.jsxs(no, { className: "space-y-4", children: [
|
|
18785
18785
|
/* @__PURE__ */ u.jsxs("div", { className: "flex items-center justify-between", children: [
|
|
18786
18786
|
/* @__PURE__ */ u.jsxs("div", { children: [
|
|
18787
|
-
/* @__PURE__ */ u.jsx(
|
|
18787
|
+
/* @__PURE__ */ u.jsx(tn, { htmlFor: "auto-save", children: "Auto-save Conversations" }),
|
|
18788
18788
|
/* @__PURE__ */ u.jsx("p", { className: "text-sm text-muted-foreground", children: "Automatically save messages to threads" })
|
|
18789
18789
|
] }),
|
|
18790
18790
|
/* @__PURE__ */ u.jsx(
|
|
@@ -18801,7 +18801,7 @@ function bR({ settings: e, onSettingsChange: t, className: n = "" }) {
|
|
|
18801
18801
|
] }),
|
|
18802
18802
|
/* @__PURE__ */ u.jsxs("div", { className: "flex items-center justify-between", children: [
|
|
18803
18803
|
/* @__PURE__ */ u.jsxs("div", { children: [
|
|
18804
|
-
/* @__PURE__ */ u.jsx(
|
|
18804
|
+
/* @__PURE__ */ u.jsx(tn, { htmlFor: "enable-streaming", children: "Enable Streaming" }),
|
|
18805
18805
|
/* @__PURE__ */ u.jsx("p", { className: "text-sm text-muted-foreground", children: "Stream responses in real-time" })
|
|
18806
18806
|
] }),
|
|
18807
18807
|
/* @__PURE__ */ u.jsx(
|
|
@@ -18818,7 +18818,7 @@ function bR({ settings: e, onSettingsChange: t, className: n = "" }) {
|
|
|
18818
18818
|
] }),
|
|
18819
18819
|
/* @__PURE__ */ u.jsxs("div", { className: "flex items-center justify-between", children: [
|
|
18820
18820
|
/* @__PURE__ */ u.jsxs("div", { children: [
|
|
18821
|
-
/* @__PURE__ */ u.jsx(
|
|
18821
|
+
/* @__PURE__ */ u.jsx(tn, { htmlFor: "typing-indicator", children: "Typing Indicator" }),
|
|
18822
18822
|
/* @__PURE__ */ u.jsx("p", { className: "text-sm text-muted-foreground", children: "Show typing indicator during responses" })
|
|
18823
18823
|
] }),
|
|
18824
18824
|
/* @__PURE__ */ u.jsx(
|
|
@@ -18942,7 +18942,7 @@ export {
|
|
|
18942
18942
|
rr as chatApiClient,
|
|
18943
18943
|
SR as default,
|
|
18944
18944
|
Kl as del,
|
|
18945
|
-
|
|
18945
|
+
Gt as get,
|
|
18946
18946
|
Gx as getChatToken,
|
|
18947
18947
|
xR as getCurrentSettings,
|
|
18948
18948
|
zk as getDefaultApiConfig,
|