@voxket-ai/voxket-live 1.1.44 → 1.1.45
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/README.md +3 -0
- package/dist/index.cjs +14 -8
- package/dist/index.js +542 -531
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
var $x = Object.defineProperty;
|
|
2
2
|
var zx = (e, t, n) => t in e ? $x(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var Me = (e, t, n) => zx(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import * as
|
|
4
|
+
import * as O from "react";
|
|
5
5
|
import Fe, { createContext as Ni, useRef as Xt, useLayoutEffect as jx, useEffect as kt, useId as Vd, useContext as Ht, useInsertionEffect as t0, useMemo as wn, useCallback as at, Children as Hx, isValidElement as Wx, useState as _e, Fragment as n0, createElement as Gx, forwardRef as qx, Component as Kx } from "react";
|
|
6
|
-
import { jsx as b, Fragment as Wt, jsxs as
|
|
6
|
+
import { jsx as b, Fragment as Wt, jsxs as D } from "react/jsx-runtime";
|
|
7
7
|
import i0, { clsx as Yx } from "clsx";
|
|
8
8
|
import { X as Zx, Clock as Xx, Paperclip as Jx, SendHorizontal as Qx, Mic as eT, MicOff as tT, Camera as nT, CameraOff as r0, Monitor as s0, MessageCircle as iT, PhoneOff as rT, Download as sT, Image as oT, Video as aT, Music as cT, Archive as lT, FileText as uT, LayoutGrid as dT, Users as hT, User as o0 } from "lucide-react";
|
|
9
9
|
import fT from "@emotion/styled";
|
|
@@ -17820,7 +17820,7 @@ const sn = (e) => !!(e && e.getVelocity), XR = [...Nv, Ut, Xi], JR = (e) => XR.f
|
|
|
17820
17820
|
isStatic: !1,
|
|
17821
17821
|
reducedMotion: "never"
|
|
17822
17822
|
});
|
|
17823
|
-
class QR extends
|
|
17823
|
+
class QR extends O.Component {
|
|
17824
17824
|
getSnapshotBeforeUpdate(t) {
|
|
17825
17825
|
const n = this.props.childRef.current;
|
|
17826
17826
|
if (n && t.isPresent && !this.props.isPresent) {
|
|
@@ -17866,7 +17866,7 @@ function eA({ children: e, isPresent: t, anchorX: n, root: i }) {
|
|
|
17866
17866
|
`), () => {
|
|
17867
17867
|
p.contains(m) && p.removeChild(m);
|
|
17868
17868
|
};
|
|
17869
|
-
}, [t]), b(QR, { isPresent: t, childRef: s, sizeRef: o, children:
|
|
17869
|
+
}, [t]), b(QR, { isPresent: t, childRef: s, sizeRef: o, children: O.cloneElement(e, { ref: s }) });
|
|
17870
17870
|
}
|
|
17871
17871
|
const tA = ({ children: e, initial: t, isPresent: n, onExitComplete: i, custom: r, presenceAffectsLayout: s, mode: o, anchorX: a, root: c }) => {
|
|
17872
17872
|
const l = ch(nA), u = Vd();
|
|
@@ -17886,7 +17886,7 @@ const tA = ({ children: e, initial: t, isPresent: n, onExitComplete: i, custom:
|
|
|
17886
17886
|
}), [n, l, i]);
|
|
17887
17887
|
return s && d && (h = { ...h }), wn(() => {
|
|
17888
17888
|
l.forEach((f, m) => l.set(m, !1));
|
|
17889
|
-
}, [n]),
|
|
17889
|
+
}, [n]), O.useEffect(() => {
|
|
17890
17890
|
!n && !l.size && i && i();
|
|
17891
17891
|
}, [n]), o === "popLayout" && (e = b(eA, { isPresent: n, anchorX: a, root: c, children: e })), b(kc.Provider, { value: h, children: e });
|
|
17892
17892
|
};
|
|
@@ -18416,7 +18416,7 @@ function wl(e, { forwardMotionProps: t = !1 } = {}, n, i) {
|
|
|
18416
18416
|
const m = MA(u);
|
|
18417
18417
|
l = m.MeasureLayout, h.visualElement = AA(e, f, u, i, m.ProjectionNode);
|
|
18418
18418
|
}
|
|
18419
|
-
return
|
|
18419
|
+
return D(wc.Provider, { value: h, children: [l && h.visualElement ? b(l, { visualElement: h.visualElement, ...u }) : null, wA(e, a, _A(f, h.visualElement, c), f, d, t)] });
|
|
18420
18420
|
}
|
|
18421
18421
|
s.displayName = `motion.${typeof e == "string" ? e : `create(${e.displayName ?? e.name ?? ""})`}`;
|
|
18422
18422
|
const o = qx(s);
|
|
@@ -22289,12 +22289,12 @@ function LI(e, t, n) {
|
|
|
22289
22289
|
Tc(sg(e, t, o))
|
|
22290
22290
|
);
|
|
22291
22291
|
}
|
|
22292
|
-
|
|
22293
|
-
const FI =
|
|
22292
|
+
O.createContext(void 0);
|
|
22293
|
+
const FI = O.createContext(
|
|
22294
22294
|
void 0
|
|
22295
22295
|
);
|
|
22296
22296
|
function Qk() {
|
|
22297
|
-
return
|
|
22297
|
+
return O.useContext(FI);
|
|
22298
22298
|
}
|
|
22299
22299
|
function ew(e) {
|
|
22300
22300
|
const t = Qk(), n = e ?? t;
|
|
@@ -22304,16 +22304,16 @@ function ew(e) {
|
|
|
22304
22304
|
);
|
|
22305
22305
|
return n;
|
|
22306
22306
|
}
|
|
22307
|
-
|
|
22308
|
-
const Qa =
|
|
22307
|
+
O.createContext(void 0);
|
|
22308
|
+
const Qa = O.createContext(void 0);
|
|
22309
22309
|
function tw() {
|
|
22310
|
-
const e =
|
|
22310
|
+
const e = O.useContext(Qa);
|
|
22311
22311
|
if (!e)
|
|
22312
22312
|
throw Error("tried to access room context outside of livekit room component");
|
|
22313
22313
|
return e;
|
|
22314
22314
|
}
|
|
22315
22315
|
function UI() {
|
|
22316
|
-
return
|
|
22316
|
+
return O.useContext(Qa);
|
|
22317
22317
|
}
|
|
22318
22318
|
function nw(e) {
|
|
22319
22319
|
const t = UI(), n = e ?? t;
|
|
@@ -22323,7 +22323,7 @@ function nw(e) {
|
|
|
22323
22323
|
);
|
|
22324
22324
|
return n;
|
|
22325
22325
|
}
|
|
22326
|
-
|
|
22326
|
+
O.createContext(void 0);
|
|
22327
22327
|
function iw(e) {
|
|
22328
22328
|
var t, n, i = "";
|
|
22329
22329
|
if (typeof e == "string" || typeof e == "number") i += e;
|
|
@@ -22369,27 +22369,27 @@ function ow(...e) {
|
|
|
22369
22369
|
return sw(...e.filter(VI));
|
|
22370
22370
|
}
|
|
22371
22371
|
function $I(e, t, n) {
|
|
22372
|
-
return
|
|
22372
|
+
return O.Children.map(e, (i) => O.isValidElement(i) && O.Children.only(e) ? (i.props.className && (t ?? (t = {}), t.className = rw(i.props.className, t.className), t.style = { ...i.props.style, ...t.style }), O.cloneElement(i, { ...t, key: n })) : i);
|
|
22373
22373
|
}
|
|
22374
22374
|
function zI(e, t, n = !0) {
|
|
22375
|
-
const [i, r] =
|
|
22376
|
-
return
|
|
22375
|
+
const [i, r] = O.useState(t);
|
|
22376
|
+
return O.useEffect(() => {
|
|
22377
22377
|
if (n && r(t), typeof window > "u" || !e) return;
|
|
22378
22378
|
const s = e.subscribe(r);
|
|
22379
22379
|
return () => s.unsubscribe();
|
|
22380
22380
|
}, [e, n]), i;
|
|
22381
22381
|
}
|
|
22382
22382
|
function jI({ room: e, props: t }) {
|
|
22383
|
-
const n = nw(e), { className: i, roomAudioPlaybackAllowedObservable: r, handleStartAudioPlayback: s } =
|
|
22383
|
+
const n = nw(e), { className: i, roomAudioPlaybackAllowedObservable: r, handleStartAudioPlayback: s } = O.useMemo(
|
|
22384
22384
|
() => DI(),
|
|
22385
22385
|
[]
|
|
22386
|
-
), o =
|
|
22386
|
+
), o = O.useMemo(
|
|
22387
22387
|
() => r(n),
|
|
22388
22388
|
[n, r]
|
|
22389
22389
|
), { canPlayAudio: a } = zI(o, {
|
|
22390
22390
|
canPlayAudio: n.canPlaybackAudio
|
|
22391
22391
|
});
|
|
22392
|
-
return { mergedProps:
|
|
22392
|
+
return { mergedProps: O.useMemo(
|
|
22393
22393
|
() => sw(t, {
|
|
22394
22394
|
className: i,
|
|
22395
22395
|
onClick: () => {
|
|
@@ -22407,8 +22407,8 @@ function aw(e = [
|
|
|
22407
22407
|
V.Source.ScreenShareAudio,
|
|
22408
22408
|
V.Source.Unknown
|
|
22409
22409
|
], t = {}) {
|
|
22410
|
-
const n = nw(t.room), [i, r] =
|
|
22411
|
-
return
|
|
22410
|
+
const n = nw(t.room), [i, r] = O.useState([]), [s, o] = O.useState([]), a = O.useMemo(() => e.map((c) => Yk(c) ? c.source : c), [JSON.stringify(e)]);
|
|
22411
|
+
return O.useEffect(() => {
|
|
22412
22412
|
const c = LI(n, a, {
|
|
22413
22413
|
additionalRoomEvents: t.updateOnlyOn,
|
|
22414
22414
|
onlySubscribed: t.onlySubscribed
|
|
@@ -22421,7 +22421,7 @@ function aw(e = [
|
|
|
22421
22421
|
JSON.stringify(t.onlySubscribed),
|
|
22422
22422
|
JSON.stringify(t.updateOnlyOn),
|
|
22423
22423
|
JSON.stringify(e)
|
|
22424
|
-
]),
|
|
22424
|
+
]), O.useMemo(() => {
|
|
22425
22425
|
if (Zk(e)) {
|
|
22426
22426
|
const c = WI(e, s), l = Array.from(i);
|
|
22427
22427
|
return s.forEach((u) => {
|
|
@@ -22481,10 +22481,10 @@ const GI = (e) => {
|
|
|
22481
22481
|
};
|
|
22482
22482
|
function KI(e, t = {}) {
|
|
22483
22483
|
var n;
|
|
22484
|
-
const i = e instanceof V ? e : (n = e == null ? void 0 : e.publication) == null ? void 0 : n.track, r = { ...qI, ...t }, [s, o] =
|
|
22484
|
+
const i = e instanceof V ? e : (n = e == null ? void 0 : e.publication) == null ? void 0 : n.track, r = { ...qI, ...t }, [s, o] = O.useState(
|
|
22485
22485
|
new Array(r.bands).fill(0)
|
|
22486
22486
|
);
|
|
22487
|
-
return
|
|
22487
|
+
return O.useEffect(() => {
|
|
22488
22488
|
if (!i || !(i != null && i.mediaStream))
|
|
22489
22489
|
return;
|
|
22490
22490
|
const { analyser: a, cleanup: c } = OE(i, r.analyserOptions), l = a.frequencyBinCount, u = new Float32Array(l), d = setInterval(() => {
|
|
@@ -22505,29 +22505,29 @@ function KI(e, t = {}) {
|
|
|
22505
22505
|
};
|
|
22506
22506
|
}, [i, i == null ? void 0 : i.mediaStream, JSON.stringify(t)]), s;
|
|
22507
22507
|
}
|
|
22508
|
-
const og = /* @__PURE__ */
|
|
22508
|
+
const og = /* @__PURE__ */ O.forwardRef(
|
|
22509
22509
|
function({ label: e = "Allow Audio", ...t }, n) {
|
|
22510
22510
|
const i = tw(), { mergedProps: r } = jI({ room: i, props: t });
|
|
22511
|
-
return /* @__PURE__ */
|
|
22511
|
+
return /* @__PURE__ */ O.createElement("button", { ref: n, ...r }, e);
|
|
22512
22512
|
}
|
|
22513
22513
|
);
|
|
22514
22514
|
function cw(e, t = {}) {
|
|
22515
|
-
const [n, i] =
|
|
22515
|
+
const [n, i] = O.useState(wd(e)), [r, s] = O.useState(n == null ? void 0 : n.isMuted), [o, a] = O.useState(n == null ? void 0 : n.isSubscribed), [c, l] = O.useState(n == null ? void 0 : n.track), [u, d] = O.useState("landscape"), h = O.useRef(), { className: f, trackObserver: m } = O.useMemo(() => NI(e), [
|
|
22516
22516
|
e.participant.sid ?? e.participant.identity,
|
|
22517
22517
|
e.source,
|
|
22518
22518
|
Hh(e) && e.publication.trackSid
|
|
22519
22519
|
]);
|
|
22520
|
-
return
|
|
22520
|
+
return O.useEffect(() => {
|
|
22521
22521
|
const p = m.subscribe((v) => {
|
|
22522
22522
|
Ji.debug("update track", v), i(v), s(v == null ? void 0 : v.isMuted), a(v == null ? void 0 : v.isSubscribed), l(v == null ? void 0 : v.track);
|
|
22523
22523
|
});
|
|
22524
22524
|
return () => p == null ? void 0 : p.unsubscribe();
|
|
22525
|
-
}, [m]),
|
|
22525
|
+
}, [m]), O.useEffect(() => {
|
|
22526
22526
|
var p, v;
|
|
22527
22527
|
return c && (h.current && c.detach(h.current), (p = t.element) != null && p.current && !(e.participant.isLocal && (c == null ? void 0 : c.kind) === "audio") && c.attach(t.element.current)), h.current = (v = t.element) == null ? void 0 : v.current, () => {
|
|
22528
22528
|
h.current && (c == null || c.detach(h.current));
|
|
22529
22529
|
};
|
|
22530
|
-
}, [c, t.element]),
|
|
22530
|
+
}, [c, t.element]), O.useEffect(() => {
|
|
22531
22531
|
var p, v;
|
|
22532
22532
|
if (typeof ((p = n == null ? void 0 : n.dimensions) == null ? void 0 : p.width) == "number" && typeof ((v = n == null ? void 0 : n.dimensions) == null ? void 0 : v.height) == "number") {
|
|
22533
22533
|
const g = n.dimensions.width > n.dimensions.height ? "landscape" : "portrait";
|
|
@@ -22713,7 +22713,7 @@ function eM({
|
|
|
22713
22713
|
];
|
|
22714
22714
|
return m.ref = m[0], m.isIntersecting = m[1], m.entry = m[2], m;
|
|
22715
22715
|
}
|
|
22716
|
-
const Cc = /* @__PURE__ */
|
|
22716
|
+
const Cc = /* @__PURE__ */ O.forwardRef(
|
|
22717
22717
|
function({
|
|
22718
22718
|
onTrackClick: e,
|
|
22719
22719
|
onClick: t,
|
|
@@ -22722,12 +22722,12 @@ const Cc = /* @__PURE__ */ D.forwardRef(
|
|
|
22722
22722
|
manageSubscription: r,
|
|
22723
22723
|
...s
|
|
22724
22724
|
}, o) {
|
|
22725
|
-
const a = ew(i), c =
|
|
22726
|
-
|
|
22725
|
+
const a = ew(i), c = O.useRef(null);
|
|
22726
|
+
O.useImperativeHandle(o, () => c.current);
|
|
22727
22727
|
const l = eM({ root: c.current }), [u] = QI(l, 3e3);
|
|
22728
|
-
|
|
22728
|
+
O.useEffect(() => {
|
|
22729
22729
|
r && a.publication instanceof za && (u == null ? void 0 : u.isIntersecting) === !1 && (l == null ? void 0 : l.isIntersecting) === !1 && a.publication.setSubscribed(!1);
|
|
22730
|
-
}, [u, a, r]),
|
|
22730
|
+
}, [u, a, r]), O.useEffect(() => {
|
|
22731
22731
|
r && a.publication instanceof za && (l == null ? void 0 : l.isIntersecting) === !0 && a.publication.setSubscribed(!0);
|
|
22732
22732
|
}, [l, a, r]);
|
|
22733
22733
|
const {
|
|
@@ -22738,18 +22738,18 @@ const Cc = /* @__PURE__ */ D.forwardRef(
|
|
|
22738
22738
|
element: c,
|
|
22739
22739
|
props: s
|
|
22740
22740
|
});
|
|
22741
|
-
|
|
22741
|
+
O.useEffect(() => {
|
|
22742
22742
|
n == null || n(!!f);
|
|
22743
22743
|
}, [f, n]);
|
|
22744
22744
|
const m = (p) => {
|
|
22745
22745
|
t == null || t(p), e == null || e({ participant: a == null ? void 0 : a.participant, track: h });
|
|
22746
22746
|
};
|
|
22747
|
-
return /* @__PURE__ */
|
|
22747
|
+
return /* @__PURE__ */ O.createElement("video", { ref: c, ...d, muted: !0, onClick: m });
|
|
22748
22748
|
}
|
|
22749
|
-
), lw = /* @__PURE__ */
|
|
22749
|
+
), lw = /* @__PURE__ */ O.forwardRef(
|
|
22750
22750
|
function({ trackRef: e, onSubscriptionStatusChanged: t, volume: n, ...i }, r) {
|
|
22751
|
-
const s = ew(e), o =
|
|
22752
|
-
|
|
22751
|
+
const s = ew(e), o = O.useRef(null);
|
|
22752
|
+
O.useImperativeHandle(r, () => o.current);
|
|
22753
22753
|
const {
|
|
22754
22754
|
elementProps: a,
|
|
22755
22755
|
isSubscribed: c,
|
|
@@ -22759,13 +22759,13 @@ const Cc = /* @__PURE__ */ D.forwardRef(
|
|
|
22759
22759
|
element: o,
|
|
22760
22760
|
props: i
|
|
22761
22761
|
});
|
|
22762
|
-
return
|
|
22762
|
+
return O.useEffect(() => {
|
|
22763
22763
|
t == null || t(!!c);
|
|
22764
|
-
}, [c, t]),
|
|
22764
|
+
}, [c, t]), O.useEffect(() => {
|
|
22765
22765
|
l === void 0 || n === void 0 || (l instanceof Gy ? l.setVolume(n) : Ji.warn("Volume can only be set on remote audio tracks."));
|
|
22766
|
-
}, [n, l]),
|
|
22766
|
+
}, [n, l]), O.useEffect(() => {
|
|
22767
22767
|
u === void 0 || i.muted === void 0 || (u instanceof za ? u.setEnabled(!i.muted) : Ji.warn("Can only call setEnabled on remote track publications."));
|
|
22768
|
-
}, [i.muted, u, l]), /* @__PURE__ */
|
|
22768
|
+
}, [i.muted, u, l]), /* @__PURE__ */ O.createElement("audio", { ref: o, ...a });
|
|
22769
22769
|
}
|
|
22770
22770
|
);
|
|
22771
22771
|
function lg({ volume: e, muted: t }) {
|
|
@@ -22776,7 +22776,7 @@ function lg({ volume: e, muted: t }) {
|
|
|
22776
22776
|
onlySubscribed: !0
|
|
22777
22777
|
}
|
|
22778
22778
|
).filter((i) => !i.participant.isLocal && i.publication.kind === V.Kind.Audio);
|
|
22779
|
-
return /* @__PURE__ */
|
|
22779
|
+
return /* @__PURE__ */ O.createElement("div", { style: { display: "none" } }, n.map((i) => /* @__PURE__ */ O.createElement(
|
|
22780
22780
|
lw,
|
|
22781
22781
|
{
|
|
22782
22782
|
key: _I(i),
|
|
@@ -22828,7 +22828,7 @@ const tM = (e) => {
|
|
|
22828
22828
|
break;
|
|
22829
22829
|
}
|
|
22830
22830
|
return n;
|
|
22831
|
-
}, uw = /* @__PURE__ */
|
|
22831
|
+
}, uw = /* @__PURE__ */ O.forwardRef(
|
|
22832
22832
|
function({ state: e, options: t, barCount: n = 15, trackRef: i, children: r, ...s }, o) {
|
|
22833
22833
|
const a = ow(s, { className: "lk-audio-bar-visualizer" });
|
|
22834
22834
|
let c = Qk();
|
|
@@ -22842,13 +22842,13 @@ const tM = (e) => {
|
|
|
22842
22842
|
n,
|
|
22843
22843
|
rM(e, n) ?? 100
|
|
22844
22844
|
);
|
|
22845
|
-
return /* @__PURE__ */
|
|
22845
|
+
return /* @__PURE__ */ O.createElement("div", { ref: o, ...a, "data-lk-va-state": e }, l.map(
|
|
22846
22846
|
(f, m) => r ? $I(r, {
|
|
22847
22847
|
"data-lk-highlighted": h.includes(m),
|
|
22848
22848
|
"data-lk-bar-index": m,
|
|
22849
22849
|
className: "lk-audio-bar",
|
|
22850
22850
|
style: { height: `${Math.min(d, Math.max(u, f * 100 + 5))}%` }
|
|
22851
|
-
}) : /* @__PURE__ */
|
|
22851
|
+
}) : /* @__PURE__ */ O.createElement(
|
|
22852
22852
|
"span",
|
|
22853
22853
|
{
|
|
22854
22854
|
key: m,
|
|
@@ -25854,8 +25854,8 @@ const ww = Fe.forwardRef(({
|
|
|
25854
25854
|
highlighted: "bg-white",
|
|
25855
25855
|
muted: "bg-white/30"
|
|
25856
25856
|
}, [i]);
|
|
25857
|
-
return /* @__PURE__ */
|
|
25858
|
-
t && /* @__PURE__ */
|
|
25857
|
+
return /* @__PURE__ */ D("div", { ref: r, className: Qe("", n), children: [
|
|
25858
|
+
t && /* @__PURE__ */ D(Wt, { children: [
|
|
25859
25859
|
/* @__PURE__ */ b(lw, { ref: s, trackRef: t, volume: 1 }),
|
|
25860
25860
|
/* @__PURE__ */ b(
|
|
25861
25861
|
uw,
|
|
@@ -25910,7 +25910,7 @@ const GM = ({
|
|
|
25910
25910
|
className: "rounded-md"
|
|
25911
25911
|
}
|
|
25912
25912
|
) });
|
|
25913
|
-
}, qM =
|
|
25913
|
+
}, qM = O.forwardRef(function({ trackRef: t, className: n, ...i }, r) {
|
|
25914
25914
|
var s, o;
|
|
25915
25915
|
return /* @__PURE__ */ b("div", { ref: r, className: Qe("bg-muted overflow-hidden rounded-md", n), children: /* @__PURE__ */ b(
|
|
25916
25916
|
Cc,
|
|
@@ -26021,7 +26021,7 @@ function XM({ chatOpen: e, client: t, theme: n = "vox" }) {
|
|
|
26021
26021
|
...mi.animate,
|
|
26022
26022
|
transition: m
|
|
26023
26023
|
}, g = m, x = m, S = a && a.publication && a.participant;
|
|
26024
|
-
return /* @__PURE__ */ b("div", { className: "relative w-full h-full z-10 flex items-center justify-center", children: /* @__PURE__ */ b("div", { className: "relative w-full h-full max-w-2xl px-4 md:px-0", children: /* @__PURE__ */
|
|
26024
|
+
return /* @__PURE__ */ b("div", { className: "relative w-full h-full z-10 flex items-center justify-center", children: /* @__PURE__ */ b("div", { className: "relative w-full h-full max-w-2xl px-4 md:px-0", children: /* @__PURE__ */ D("div", { className: Qe(Lr.grid), children: [
|
|
26025
26025
|
f && /* @__PURE__ */ b(
|
|
26026
26026
|
"div",
|
|
26027
26027
|
{
|
|
@@ -26031,7 +26031,7 @@ function XM({ chatOpen: e, client: t, theme: n = "vox" }) {
|
|
|
26031
26031
|
e && h && Lr.agentChatOpenWithSecondTile,
|
|
26032
26032
|
e && !h && Lr.agentChatOpenWithoutSecondTile
|
|
26033
26033
|
]),
|
|
26034
|
-
children: /* @__PURE__ */
|
|
26034
|
+
children: /* @__PURE__ */ D("div", { className: "h-full flex items-center justify-center", children: [
|
|
26035
26035
|
!S && // audio-only agent or default avatar when no video
|
|
26036
26036
|
/* @__PURE__ */ b(
|
|
26037
26037
|
KM,
|
|
@@ -26073,7 +26073,7 @@ function XM({ chatOpen: e, client: t, theme: n = "vox" }) {
|
|
|
26073
26073
|
e && Lr.secondTileChatOpen,
|
|
26074
26074
|
!e && Lr.secondTileChatClosed
|
|
26075
26075
|
]),
|
|
26076
|
-
children: /* @__PURE__ */
|
|
26076
|
+
children: /* @__PURE__ */ D("div", { className: "w-full px-10 flex items-center shadow-2xl justify-between", children: [
|
|
26077
26077
|
l && u && /* @__PURE__ */ b(
|
|
26078
26078
|
mg,
|
|
26079
26079
|
{
|
|
@@ -26452,7 +26452,7 @@ function ec({ interaction: e, theme: t, onDismiss: n, client: i, addLocalMessage
|
|
|
26452
26452
|
var a;
|
|
26453
26453
|
if (!e || !e.isVisible || !e.component)
|
|
26454
26454
|
return null;
|
|
26455
|
-
const [s] =
|
|
26455
|
+
const [s] = O.useState(() => Date.now()), o = () => e.component ? O.createElement(e.component, {
|
|
26456
26456
|
handler: e.handler || void 0,
|
|
26457
26457
|
timeout: e.timeout,
|
|
26458
26458
|
loadData: async (l) => {
|
|
@@ -26465,7 +26465,7 @@ function ec({ interaction: e, theme: t, onDismiss: n, client: i, addLocalMessage
|
|
|
26465
26465
|
}) : /* @__PURE__ */ b("div", { className: "p-4 text-red-500", children: "Component not found" });
|
|
26466
26466
|
switch (e.presentationMode) {
|
|
26467
26467
|
case "fullscreen":
|
|
26468
|
-
return /* @__PURE__ */ b(gs, { children: /* @__PURE__ */
|
|
26468
|
+
return /* @__PURE__ */ b(gs, { children: /* @__PURE__ */ D(
|
|
26469
26469
|
Be.div,
|
|
26470
26470
|
{
|
|
26471
26471
|
initial: { opacity: 0 },
|
|
@@ -26473,9 +26473,9 @@ function ec({ interaction: e, theme: t, onDismiss: n, client: i, addLocalMessage
|
|
|
26473
26473
|
exit: { opacity: 0 },
|
|
26474
26474
|
className: "fixed inset-0 z-[9999] bg-black",
|
|
26475
26475
|
children: [
|
|
26476
|
-
/* @__PURE__ */
|
|
26476
|
+
/* @__PURE__ */ D("div", { className: "flex flex-col", children: [
|
|
26477
26477
|
/* @__PURE__ */ b(bg, { timeout: e.timeout }),
|
|
26478
|
-
/* @__PURE__ */
|
|
26478
|
+
/* @__PURE__ */ D("div", { className: "flex items-center justify-between p-4 bg-black/80 text-white border-b border-gray-700", children: [
|
|
26479
26479
|
/* @__PURE__ */ b("h3", { className: "text-lg font-semibold", children: e.methodName.replace(/_/g, " ").replace(/\b\w/g, (c) => c.toUpperCase()) }),
|
|
26480
26480
|
/* @__PURE__ */ b(
|
|
26481
26481
|
"button",
|
|
@@ -26500,7 +26500,7 @@ function ec({ interaction: e, theme: t, onDismiss: n, client: i, addLocalMessage
|
|
|
26500
26500
|
animate: { opacity: 1, y: 0 },
|
|
26501
26501
|
exit: { opacity: 0, y: -20 },
|
|
26502
26502
|
className: "w-fit rounded-lg ",
|
|
26503
|
-
children: /* @__PURE__ */
|
|
26503
|
+
children: /* @__PURE__ */ D("div", { children: [
|
|
26504
26504
|
/* @__PURE__ */ b(bg, { timeout: e.timeout }),
|
|
26505
26505
|
o()
|
|
26506
26506
|
] })
|
|
@@ -26530,7 +26530,7 @@ function tc({
|
|
|
26530
26530
|
return () => clearInterval(u);
|
|
26531
26531
|
}, [s, n]), kt(() => {
|
|
26532
26532
|
o(e), c(!1);
|
|
26533
|
-
}, [e]), /* @__PURE__ */
|
|
26533
|
+
}, [e]), /* @__PURE__ */ D("div", { className: `flex items-center gap-1 text-sm ${a ? "text-red-500" : s <= 60 ? "text-orange-500" : s <= 300 ? "text-yellow-500" : t === "dark" ? "text-gray-300" : "text-gray-600"} ${i}`, children: [
|
|
26534
26534
|
r && /* @__PURE__ */ b(Xx, { className: "w-4 h-4" }),
|
|
26535
26535
|
/* @__PURE__ */ b("span", { className: "font-mono", children: WM(s) }),
|
|
26536
26536
|
a && /* @__PURE__ */ b("span", { className: "text-xs ml-1 text-red-500", children: "(Expired)" })
|
|
@@ -26595,9 +26595,9 @@ function Ec({
|
|
|
26595
26595
|
n ? "opacity-50 cursor-not-allowed" : "hover:scale-105"
|
|
26596
26596
|
);
|
|
26597
26597
|
}, j = () => /* @__PURE__ */ b("div", { className: "w-5 h-5 animate-spin rounded-full border-2 border-current border-t-transparent" });
|
|
26598
|
-
return /* @__PURE__ */
|
|
26599
|
-
x && /* @__PURE__ */
|
|
26600
|
-
T && k && /* @__PURE__ */
|
|
26598
|
+
return /* @__PURE__ */ D("div", { className: ue, children: [
|
|
26599
|
+
x && /* @__PURE__ */ D("div", { className: "flex items-center gap-2 flex-1 min-w-0", children: [
|
|
26600
|
+
T && k && /* @__PURE__ */ D(Wt, { children: [
|
|
26601
26601
|
/* @__PURE__ */ b(
|
|
26602
26602
|
"button",
|
|
26603
26603
|
{
|
|
@@ -26659,7 +26659,7 @@ function Ec({
|
|
|
26659
26659
|
}
|
|
26660
26660
|
)
|
|
26661
26661
|
] }),
|
|
26662
|
-
!x && /* @__PURE__ */
|
|
26662
|
+
!x && /* @__PURE__ */ D(Wt, { children: [
|
|
26663
26663
|
i && o && /* @__PURE__ */ b(
|
|
26664
26664
|
"button",
|
|
26665
26665
|
{
|
|
@@ -26716,10 +26716,10 @@ function Ec({
|
|
|
26716
26716
|
Ec.displayName = "UnifiedControlBar";
|
|
26717
26717
|
const iO = ({ logLevel: e } = {}) => {
|
|
26718
26718
|
const t = tw();
|
|
26719
|
-
|
|
26719
|
+
O.useEffect(() => (qC(e ?? "debug"), window.__lk_room = t, () => {
|
|
26720
26720
|
window.__lk_room = void 0;
|
|
26721
26721
|
}), [t, e]);
|
|
26722
|
-
}, Sw =
|
|
26722
|
+
}, Sw = O.forwardRef((e, t) => {
|
|
26723
26723
|
const {
|
|
26724
26724
|
alt: n,
|
|
26725
26725
|
color: i = "currentColor",
|
|
@@ -26730,7 +26730,7 @@ const iO = ({ logLevel: e } = {}) => {
|
|
|
26730
26730
|
weights: c,
|
|
26731
26731
|
...l
|
|
26732
26732
|
} = e;
|
|
26733
|
-
return /* @__PURE__ */
|
|
26733
|
+
return /* @__PURE__ */ O.createElement(
|
|
26734
26734
|
"svg",
|
|
26735
26735
|
{
|
|
26736
26736
|
ref: t,
|
|
@@ -26742,7 +26742,7 @@ const iO = ({ logLevel: e } = {}) => {
|
|
|
26742
26742
|
transform: o ? "scale(-1, 1)" : void 0,
|
|
26743
26743
|
...l
|
|
26744
26744
|
},
|
|
26745
|
-
!!n && /* @__PURE__ */
|
|
26745
|
+
!!n && /* @__PURE__ */ O.createElement("title", null, n),
|
|
26746
26746
|
a,
|
|
26747
26747
|
c.get(s)
|
|
26748
26748
|
);
|
|
@@ -26751,29 +26751,29 @@ Sw.displayName = "SSRBase";
|
|
|
26751
26751
|
const rO = /* @__PURE__ */ new Map([
|
|
26752
26752
|
[
|
|
26753
26753
|
"bold",
|
|
26754
|
-
/* @__PURE__ */
|
|
26754
|
+
/* @__PURE__ */ O.createElement(O.Fragment, null, /* @__PURE__ */ O.createElement("path", { d: "M140,32V64a12,12,0,0,1-24,0V32a12,12,0,0,1,24,0Zm33.25,62.75a12,12,0,0,0,8.49-3.52L204.37,68.6a12,12,0,0,0-17-17L164.77,74.26a12,12,0,0,0,8.48,20.49ZM224,116H192a12,12,0,0,0,0,24h32a12,12,0,0,0,0-24Zm-42.26,48.77a12,12,0,1,0-17,17l22.63,22.63a12,12,0,0,0,17-17ZM128,180a12,12,0,0,0-12,12v32a12,12,0,0,0,24,0V192A12,12,0,0,0,128,180ZM74.26,164.77,51.63,187.4a12,12,0,0,0,17,17l22.63-22.63a12,12,0,1,0-17-17ZM76,128a12,12,0,0,0-12-12H32a12,12,0,0,0,0,24H64A12,12,0,0,0,76,128ZM68.6,51.63a12,12,0,1,0-17,17L74.26,91.23a12,12,0,0,0,17-17Z" }))
|
|
26755
26755
|
],
|
|
26756
26756
|
[
|
|
26757
26757
|
"duotone",
|
|
26758
|
-
/* @__PURE__ */
|
|
26758
|
+
/* @__PURE__ */ O.createElement(O.Fragment, null, /* @__PURE__ */ O.createElement("path", { d: "M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z", opacity: "0.2" }), /* @__PURE__ */ O.createElement("path", { d: "M136,32V64a8,8,0,0,1-16,0V32a8,8,0,0,1,16,0Zm37.25,58.75a8,8,0,0,0,5.66-2.35l22.63-22.62a8,8,0,0,0-11.32-11.32L167.6,77.09a8,8,0,0,0,5.65,13.66ZM224,120H192a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16Zm-45.09,47.6a8,8,0,0,0-11.31,11.31l22.62,22.63a8,8,0,0,0,11.32-11.32ZM128,184a8,8,0,0,0-8,8v32a8,8,0,0,0,16,0V192A8,8,0,0,0,128,184ZM77.09,167.6,54.46,190.22a8,8,0,0,0,11.32,11.32L88.4,178.91A8,8,0,0,0,77.09,167.6ZM72,128a8,8,0,0,0-8-8H32a8,8,0,0,0,0,16H64A8,8,0,0,0,72,128ZM65.78,54.46A8,8,0,0,0,54.46,65.78L77.09,88.4A8,8,0,0,0,88.4,77.09Z" }))
|
|
26759
26759
|
],
|
|
26760
26760
|
[
|
|
26761
26761
|
"fill",
|
|
26762
|
-
/* @__PURE__ */
|
|
26762
|
+
/* @__PURE__ */ O.createElement(O.Fragment, null, /* @__PURE__ */ O.createElement("path", { d: "M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm33.94,58.75,17-17a8,8,0,0,1,11.32,11.32l-17,17a8,8,0,0,1-11.31-11.31ZM48,136a8,8,0,0,1,0-16H72a8,8,0,0,1,0,16Zm46.06,37.25-17,17a8,8,0,0,1-11.32-11.32l17-17a8,8,0,0,1,11.31,11.31Zm0-79.19a8,8,0,0,1-11.31,0l-17-17A8,8,0,0,1,77.09,65.77l17,17A8,8,0,0,1,94.06,94.06ZM136,208a8,8,0,0,1-16,0V184a8,8,0,0,1,16,0Zm0-136a8,8,0,0,1-16,0V48a8,8,0,0,1,16,0Zm54.23,118.23a8,8,0,0,1-11.32,0l-17-17a8,8,0,0,1,11.31-11.31l17,17A8,8,0,0,1,190.23,190.23ZM208,136H184a8,8,0,0,1,0-16h24a8,8,0,0,1,0,16Z" }))
|
|
26763
26763
|
],
|
|
26764
26764
|
[
|
|
26765
26765
|
"light",
|
|
26766
|
-
/* @__PURE__ */
|
|
26766
|
+
/* @__PURE__ */ O.createElement(O.Fragment, null, /* @__PURE__ */ O.createElement("path", { d: "M134,32V64a6,6,0,0,1-12,0V32a6,6,0,0,1,12,0Zm39.25,56.75A6,6,0,0,0,177.5,87l22.62-22.63a6,6,0,0,0-8.48-8.48L169,78.5a6,6,0,0,0,4.24,10.25ZM224,122H192a6,6,0,0,0,0,12h32a6,6,0,0,0,0-12Zm-46.5,47A6,6,0,0,0,169,177.5l22.63,22.62a6,6,0,0,0,8.48-8.48ZM128,186a6,6,0,0,0-6,6v32a6,6,0,0,0,12,0V192A6,6,0,0,0,128,186ZM78.5,169,55.88,191.64a6,6,0,1,0,8.48,8.48L87,177.5A6,6,0,1,0,78.5,169ZM70,128a6,6,0,0,0-6-6H32a6,6,0,0,0,0,12H64A6,6,0,0,0,70,128ZM64.36,55.88a6,6,0,0,0-8.48,8.48L78.5,87A6,6,0,1,0,87,78.5Z" }))
|
|
26767
26767
|
],
|
|
26768
26768
|
[
|
|
26769
26769
|
"regular",
|
|
26770
|
-
/* @__PURE__ */
|
|
26770
|
+
/* @__PURE__ */ O.createElement(O.Fragment, null, /* @__PURE__ */ O.createElement("path", { d: "M136,32V64a8,8,0,0,1-16,0V32a8,8,0,0,1,16,0Zm37.25,58.75a8,8,0,0,0,5.66-2.35l22.63-22.62a8,8,0,0,0-11.32-11.32L167.6,77.09a8,8,0,0,0,5.65,13.66ZM224,120H192a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16Zm-45.09,47.6a8,8,0,0,0-11.31,11.31l22.62,22.63a8,8,0,0,0,11.32-11.32ZM128,184a8,8,0,0,0-8,8v32a8,8,0,0,0,16,0V192A8,8,0,0,0,128,184ZM77.09,167.6,54.46,190.22a8,8,0,0,0,11.32,11.32L88.4,178.91A8,8,0,0,0,77.09,167.6ZM72,128a8,8,0,0,0-8-8H32a8,8,0,0,0,0,16H64A8,8,0,0,0,72,128ZM65.78,54.46A8,8,0,0,0,54.46,65.78L77.09,88.4A8,8,0,0,0,88.4,77.09Z" }))
|
|
26771
26771
|
],
|
|
26772
26772
|
[
|
|
26773
26773
|
"thin",
|
|
26774
|
-
/* @__PURE__ */
|
|
26774
|
+
/* @__PURE__ */ O.createElement(O.Fragment, null, /* @__PURE__ */ O.createElement("path", { d: "M132,32V64a4,4,0,0,1-8,0V32a4,4,0,0,1,8,0Zm41.25,54.75a4,4,0,0,0,2.83-1.18L198.71,63a4,4,0,0,0-5.66-5.66L170.43,79.92a4,4,0,0,0,2.82,6.83ZM224,124H192a4,4,0,0,0,0,8h32a4,4,0,0,0,0-8Zm-47.92,46.43a4,4,0,1,0-5.65,5.65l22.62,22.63a4,4,0,0,0,5.66-5.66ZM128,188a4,4,0,0,0-4,4v32a4,4,0,0,0,8,0V192A4,4,0,0,0,128,188ZM79.92,170.43,57.29,193.05A4,4,0,0,0,63,198.71l22.62-22.63a4,4,0,1,0-5.65-5.65ZM68,128a4,4,0,0,0-4-4H32a4,4,0,0,0,0,8H64A4,4,0,0,0,68,128ZM63,57.29A4,4,0,0,0,57.29,63L79.92,85.57a4,4,0,1,0,5.65-5.65Z" }))
|
|
26775
26775
|
]
|
|
26776
|
-
]), nc =
|
|
26776
|
+
]), nc = O.forwardRef((e, t) => /* @__PURE__ */ O.createElement(Sw, { ref: t, ...e, weights: rO }));
|
|
26777
26777
|
nc.displayName = "SpinnerIcon";
|
|
26778
26778
|
function sO({
|
|
26779
26779
|
text: e,
|
|
@@ -26781,8 +26781,8 @@ function sO({
|
|
|
26781
26781
|
isRealTimeStream: n = !1,
|
|
26782
26782
|
speed: i = 50
|
|
26783
26783
|
}) {
|
|
26784
|
-
const [r, s] =
|
|
26785
|
-
return
|
|
26784
|
+
const [r, s] = O.useState(""), [o, a] = O.useState(0);
|
|
26785
|
+
return O.useEffect(() => {
|
|
26786
26786
|
if (n) {
|
|
26787
26787
|
s(e);
|
|
26788
26788
|
return;
|
|
@@ -26797,9 +26797,9 @@ function sO({
|
|
|
26797
26797
|
}, i);
|
|
26798
26798
|
return () => clearTimeout(c);
|
|
26799
26799
|
}
|
|
26800
|
-
}, [e, o, t, i, n]),
|
|
26800
|
+
}, [e, o, t, i, n]), O.useEffect(() => {
|
|
26801
26801
|
n || (a(0), s(""));
|
|
26802
|
-
}, [e, n]), /* @__PURE__ */
|
|
26802
|
+
}, [e, n]), /* @__PURE__ */ D("span", { className: "relative", children: [
|
|
26803
26803
|
/* @__PURE__ */ b("span", { className: "inline-block", children: r }),
|
|
26804
26804
|
!t && /* @__PURE__ */ b("span", { className: "inline-flex items-center ml-1", children: [0, 1, 2].map((c) => /* @__PURE__ */ b(
|
|
26805
26805
|
Be.span,
|
|
@@ -26831,8 +26831,8 @@ function aO(e) {
|
|
|
26831
26831
|
return parseFloat((e / Math.pow(t, i)).toFixed(2)) + " " + n[i];
|
|
26832
26832
|
}
|
|
26833
26833
|
function cO({ message: e, theme: t, isOwn: n }) {
|
|
26834
|
-
const i = hn(t), r = e.metadata, s = (r == null ? void 0 : r.fileName) || "Unknown file", o = (r == null ? void 0 : r.fileSize) || 0, a = (r == null ? void 0 : r.mimeType) || "application/octet-stream", c = r == null ? void 0 : r.downloading, l = r == null ? void 0 : r.uploading, u = (r == null ? void 0 : r.downloadProgress) || 0, d = (r == null ? void 0 : r.uploadProgress) || 0, h = r == null ? void 0 : r.downloadUrl, f = r == null ? void 0 : r.file, m = oO(a), p = c || l, v = c ? u : d, g = c ? "Downloading..." : l ? "Uploading..." : "Complete", [x, S] =
|
|
26835
|
-
|
|
26834
|
+
const i = hn(t), r = e.metadata, s = (r == null ? void 0 : r.fileName) || "Unknown file", o = (r == null ? void 0 : r.fileSize) || 0, a = (r == null ? void 0 : r.mimeType) || "application/octet-stream", c = r == null ? void 0 : r.downloading, l = r == null ? void 0 : r.uploading, u = (r == null ? void 0 : r.downloadProgress) || 0, d = (r == null ? void 0 : r.uploadProgress) || 0, h = r == null ? void 0 : r.downloadUrl, f = r == null ? void 0 : r.file, m = oO(a), p = c || l, v = c ? u : d, g = c ? "Downloading..." : l ? "Uploading..." : "Complete", [x, S] = O.useState(null);
|
|
26835
|
+
O.useEffect(() => {
|
|
26836
26836
|
if (h)
|
|
26837
26837
|
S(h);
|
|
26838
26838
|
else if (f && a.startsWith("image/")) {
|
|
@@ -26847,8 +26847,8 @@ function cO({ message: e, theme: t, isOwn: n }) {
|
|
|
26847
26847
|
P.href = h, P.download = s, P.click();
|
|
26848
26848
|
}
|
|
26849
26849
|
}, T = a.startsWith("image/") && x;
|
|
26850
|
-
return /* @__PURE__ */
|
|
26851
|
-
T && /* @__PURE__ */
|
|
26850
|
+
return /* @__PURE__ */ D("div", { className: "flex flex-col gap-2 max-w-full sm:max-w-sm", children: [
|
|
26851
|
+
T && /* @__PURE__ */ D("div", { className: "relative rounded-lg overflow-hidden", children: [
|
|
26852
26852
|
/* @__PURE__ */ b(
|
|
26853
26853
|
"img",
|
|
26854
26854
|
{
|
|
@@ -26860,7 +26860,7 @@ function cO({ message: e, theme: t, isOwn: n }) {
|
|
|
26860
26860
|
),
|
|
26861
26861
|
/* @__PURE__ */ b("div", { className: "absolute inset-0 bg-black/0 hover:bg-black/10 transition-colors duration-200 cursor-pointer" })
|
|
26862
26862
|
] }),
|
|
26863
|
-
/* @__PURE__ */
|
|
26863
|
+
/* @__PURE__ */ D("div", { className: `
|
|
26864
26864
|
flex items-center gap-3 p-3 rounded-lg border transition-all duration-200
|
|
26865
26865
|
${t === "light" ? "bg-gray-50 border-gray-200 hover:bg-gray-100" : "bg-gray-800/50 border-gray-700 hover:bg-gray-700/50"}
|
|
26866
26866
|
`, children: [
|
|
@@ -26868,11 +26868,11 @@ function cO({ message: e, theme: t, isOwn: n }) {
|
|
|
26868
26868
|
p-2 rounded-lg flex-shrink-0
|
|
26869
26869
|
${t === "light" ? "bg-blue-100 text-blue-600" : "bg-blue-900/50 text-blue-400"}
|
|
26870
26870
|
`, children: /* @__PURE__ */ b(m, { className: "w-5 h-5" }) }),
|
|
26871
|
-
/* @__PURE__ */
|
|
26871
|
+
/* @__PURE__ */ D("div", { className: "flex-1 min-w-0", children: [
|
|
26872
26872
|
/* @__PURE__ */ b("div", { className: `font-medium text-sm truncate ${i.text.primary}`, children: s }),
|
|
26873
|
-
/* @__PURE__ */
|
|
26873
|
+
/* @__PURE__ */ D("div", { className: `text-xs ${i.text.muted}`, children: [
|
|
26874
26874
|
o > 0 && aO(o),
|
|
26875
|
-
p && /* @__PURE__ */
|
|
26875
|
+
p && /* @__PURE__ */ D(Wt, { children: [
|
|
26876
26876
|
o > 0 && " • ",
|
|
26877
26877
|
g,
|
|
26878
26878
|
" ",
|
|
@@ -26945,7 +26945,7 @@ function lO(e) {
|
|
|
26945
26945
|
...r,
|
|
26946
26946
|
children: i
|
|
26947
26947
|
}
|
|
26948
|
-
) : /* @__PURE__ */
|
|
26948
|
+
) : /* @__PURE__ */ D("div", { className: "my-3", children: [
|
|
26949
26949
|
o && /* @__PURE__ */ b("div", { className: `px-3 py-1 text-xs font-medium rounded-t-md ${e === "dark" ? "bg-gray-900 text-gray-300 border-b border-gray-700" : "bg-gray-50 text-gray-600 border-b border-gray-200"}`, children: o }),
|
|
26950
26950
|
/* @__PURE__ */ b(
|
|
26951
26951
|
"pre",
|
|
@@ -33733,7 +33733,7 @@ function EF(e, t) {
|
|
|
33733
33733
|
components: r,
|
|
33734
33734
|
ignoreInvalidStyle: !0,
|
|
33735
33735
|
jsx: b,
|
|
33736
|
-
jsxs:
|
|
33736
|
+
jsxs: D,
|
|
33737
33737
|
passKeys: !0,
|
|
33738
33738
|
passNode: !0
|
|
33739
33739
|
});
|
|
@@ -49899,11 +49899,11 @@ function C5(e) {
|
|
|
49899
49899
|
}
|
|
49900
49900
|
function E5({ message: e, theme: t, isOwn: n, isStreaming: i = !1 }) {
|
|
49901
49901
|
var l, u;
|
|
49902
|
-
const r = hn(t), s = e.sender.name ? e.sender.name.split(" ").map((d) => d[0]).join("").toUpperCase().slice(0, 2) : "U", o =
|
|
49902
|
+
const r = hn(t), s = e.sender.name ? e.sender.name.split(" ").map((d) => d[0]).join("").toUpperCase().slice(0, 2) : "U", o = O.useMemo(() => {
|
|
49903
49903
|
var d, h;
|
|
49904
49904
|
return ((d = e == null ? void 0 : e.metadata) == null ? void 0 : d.format) === "markdown" || ((h = e == null ? void 0 : e.metadata) == null ? void 0 : h.markdown) === !0 || dO(e.content);
|
|
49905
|
-
}, [e.content, e.metadata]), a =
|
|
49906
|
-
return /* @__PURE__ */ b("div", { className: `flex w-full ${n ? "justify-end" : "justify-start"} mb-4 px-3`, children: /* @__PURE__ */
|
|
49905
|
+
}, [e.content, e.metadata]), a = O.useMemo(() => o ? hO(e.content) : e.content, [e.content, o]), c = O.useMemo(() => lO(t), [t]);
|
|
49906
|
+
return /* @__PURE__ */ b("div", { className: `flex w-full ${n ? "justify-end" : "justify-start"} mb-4 px-3`, children: /* @__PURE__ */ D("div", { className: `relative group ${n ? "flex-row-reverse" : "flex-row"} flex items-end gap-3 w-full min-w-0`, children: [
|
|
49907
49907
|
/* @__PURE__ */ b(
|
|
49908
49908
|
"div",
|
|
49909
49909
|
{
|
|
@@ -49911,7 +49911,7 @@ function E5({ message: e, theme: t, isOwn: n, isStreaming: i = !1 }) {
|
|
|
49911
49911
|
children: s
|
|
49912
49912
|
}
|
|
49913
49913
|
),
|
|
49914
|
-
/* @__PURE__ */
|
|
49914
|
+
/* @__PURE__ */ D(
|
|
49915
49915
|
"div",
|
|
49916
49916
|
{
|
|
49917
49917
|
className: `
|
|
@@ -49950,7 +49950,7 @@ function E5({ message: e, theme: t, isOwn: n, isStreaming: i = !1 }) {
|
|
|
49950
49950
|
}
|
|
49951
49951
|
function _5({ theme: e }) {
|
|
49952
49952
|
const t = hn(e);
|
|
49953
|
-
return /* @__PURE__ */ b("div", { className: "flex w-full justify-start mb-4 px-1", children: /* @__PURE__ */
|
|
49953
|
+
return /* @__PURE__ */ b("div", { className: "flex w-full justify-start mb-4 px-1", children: /* @__PURE__ */ D("div", { className: "relative group flex-row flex items-end gap-3 max-w-[85%] min-w-0", children: [
|
|
49954
49954
|
/* @__PURE__ */ b(
|
|
49955
49955
|
"div",
|
|
49956
49956
|
{
|
|
@@ -49966,7 +49966,7 @@ function _5({ theme: e }) {
|
|
|
49966
49966
|
${t.chatMessage.other}
|
|
49967
49967
|
transition-all duration-200
|
|
49968
49968
|
`,
|
|
49969
|
-
children: /* @__PURE__ */ b("div", { className: "flex items-center gap-2", children: /* @__PURE__ */
|
|
49969
|
+
children: /* @__PURE__ */ b("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ D("div", { className: "flex items-center space-x-1", children: [
|
|
49970
49970
|
/* @__PURE__ */ b("span", { className: `text-sm ${e === "light" ? "text-gray-600" : "text-gray-400"}`, children: "Thinking" }),
|
|
49971
49971
|
[0, 1, 2].map((n) => /* @__PURE__ */ b(
|
|
49972
49972
|
Be.div,
|
|
@@ -49993,29 +49993,29 @@ function _5({ theme: e }) {
|
|
|
49993
49993
|
] }) });
|
|
49994
49994
|
}
|
|
49995
49995
|
function R5() {
|
|
49996
|
-
return /* @__PURE__ */
|
|
49996
|
+
return /* @__PURE__ */ D("div", { className: "max-w-xs mx-auto bg-green-50 border border-green-200 rounded-lg shadow p-3 flex flex-col items-center", children: [
|
|
49997
49997
|
/* @__PURE__ */ b("div", { className: "text-2xl mb-2", children: "✅" }),
|
|
49998
49998
|
/* @__PURE__ */ b("div", { className: "text-green-700 font-semibold text-sm mb-1", children: "Success!" }),
|
|
49999
49999
|
/* @__PURE__ */ b("div", { className: "text-xs text-gray-600 text-center mb-1", children: "Your action was completed successfully." })
|
|
50000
50000
|
] });
|
|
50001
50001
|
}
|
|
50002
50002
|
function A5() {
|
|
50003
|
-
return /* @__PURE__ */
|
|
50003
|
+
return /* @__PURE__ */ D("div", { className: "flex items-center gap-2 text-orange-600 dark:text-orange-400", children: [
|
|
50004
50004
|
/* @__PURE__ */ b("span", { className: "text-lg", children: "⏰" }),
|
|
50005
50005
|
/* @__PURE__ */ b("span", { className: "text-sm font-medium", children: "Request timed out" })
|
|
50006
50006
|
] });
|
|
50007
50007
|
}
|
|
50008
50008
|
function P5({ toolData: e }) {
|
|
50009
|
-
return /* @__PURE__ */
|
|
50009
|
+
return /* @__PURE__ */ D("div", { className: "flex items-center text-blue-600 dark:text-blue-400", children: [
|
|
50010
50010
|
/* @__PURE__ */ b("span", { className: "text-lg", children: "🛠️" }),
|
|
50011
50011
|
/* @__PURE__ */ b("span", { className: "text-sm font-medium", children: "Tool executed" })
|
|
50012
50012
|
] });
|
|
50013
50013
|
}
|
|
50014
50014
|
function N5(e) {
|
|
50015
|
-
const [t, n] =
|
|
50015
|
+
const [t, n] = O.useState(() => e && typeof e.getChatMessages == "function" ? e.getChatMessages() : []), [i, r] = O.useState(() => {
|
|
50016
50016
|
const l = e && typeof e.getCurrentSession == "function" && !!e.getCurrentSession(), u = e && typeof e.getChatMessages == "function" && e.getChatMessages().length > 0;
|
|
50017
50017
|
return !l && !u;
|
|
50018
|
-
}), [s, o] =
|
|
50018
|
+
}), [s, o] = O.useState(/* @__PURE__ */ new Set()), [a, c] = O.useState([]);
|
|
50019
50019
|
return {
|
|
50020
50020
|
messages: t,
|
|
50021
50021
|
setMessages: n,
|
|
@@ -50028,8 +50028,8 @@ function N5(e) {
|
|
|
50028
50028
|
};
|
|
50029
50029
|
}
|
|
50030
50030
|
function I5(e) {
|
|
50031
|
-
const [t, n] =
|
|
50032
|
-
return
|
|
50031
|
+
const [t, n] = O.useState("idle"), [i, r] = O.useState([]);
|
|
50032
|
+
return O.useEffect(() => {
|
|
50033
50033
|
(() => {
|
|
50034
50034
|
const u = e.getAgentState();
|
|
50035
50035
|
n(u || "idle");
|
|
@@ -50048,8 +50048,8 @@ function I5(e) {
|
|
|
50048
50048
|
};
|
|
50049
50049
|
}
|
|
50050
50050
|
function M5(e) {
|
|
50051
|
-
const [t, n] =
|
|
50052
|
-
return
|
|
50051
|
+
const [t, n] = O.useState(() => e.getCurrentInteraction());
|
|
50052
|
+
return O.useEffect(() => {
|
|
50053
50053
|
const i = e.getCurrentInteraction();
|
|
50054
50054
|
i ? (console.log("ChatView: Restoring interaction state on mount/client change:", i.methodName), n(i)) : n(null);
|
|
50055
50055
|
}, [e]), {
|
|
@@ -50058,7 +50058,7 @@ function M5(e) {
|
|
|
50058
50058
|
};
|
|
50059
50059
|
}
|
|
50060
50060
|
function O5() {
|
|
50061
|
-
const e =
|
|
50061
|
+
const e = O.useRef(null), [t, n] = O.useState(!0), i = O.useCallback((a = !1) => {
|
|
50062
50062
|
if (e.current) {
|
|
50063
50063
|
const c = e.current;
|
|
50064
50064
|
a ? c.scrollTop = c.scrollHeight : c.scrollTo({
|
|
@@ -50066,16 +50066,16 @@ function O5() {
|
|
|
50066
50066
|
behavior: "smooth"
|
|
50067
50067
|
});
|
|
50068
50068
|
}
|
|
50069
|
-
}, []), r =
|
|
50069
|
+
}, []), r = O.useCallback(() => {
|
|
50070
50070
|
if (e.current) {
|
|
50071
50071
|
const { scrollTop: a, scrollHeight: c, clientHeight: l } = e.current;
|
|
50072
50072
|
return c - a - l < 100;
|
|
50073
50073
|
}
|
|
50074
50074
|
return !0;
|
|
50075
|
-
}, []), s =
|
|
50075
|
+
}, []), s = O.useCallback(() => {
|
|
50076
50076
|
const a = r();
|
|
50077
50077
|
n(a);
|
|
50078
|
-
}, [r]), o =
|
|
50078
|
+
}, [r]), o = O.useCallback((a = !1) => {
|
|
50079
50079
|
t && i(a);
|
|
50080
50080
|
}, [t, i]);
|
|
50081
50081
|
return {
|
|
@@ -50088,8 +50088,8 @@ function O5() {
|
|
|
50088
50088
|
};
|
|
50089
50089
|
}
|
|
50090
50090
|
function D5() {
|
|
50091
|
-
const [e, t] =
|
|
50092
|
-
return
|
|
50091
|
+
const [e, t] = O.useState(!1), [n, i] = O.useState(!1);
|
|
50092
|
+
return O.useEffect(() => {
|
|
50093
50093
|
const r = () => {
|
|
50094
50094
|
const s = navigator.userAgent.toLowerCase(), a = ["android", "iphone", "ipad", "mobile", "tablet"].some((d) => s.includes(d)), c = "ontouchstart" in window || navigator.maxTouchPoints > 0, l = window.innerWidth <= 768, u = a || c && l;
|
|
50095
50095
|
t(u), u && i(!0);
|
|
@@ -50110,13 +50110,13 @@ function mf({
|
|
|
50110
50110
|
onEndChat: s,
|
|
50111
50111
|
showTimer: o = !0
|
|
50112
50112
|
}) {
|
|
50113
|
-
const a =
|
|
50113
|
+
const a = O.useMemo(() => {
|
|
50114
50114
|
const F = e.getCurrentAgentInfo();
|
|
50115
50115
|
return qh(F);
|
|
50116
|
-
}, [e]), { suggestedReplyEnabled: c, attachmentsEnabled: l } =
|
|
50116
|
+
}, [e]), { suggestedReplyEnabled: c, attachmentsEnabled: l } = O.useMemo(
|
|
50117
50117
|
() => jM(a),
|
|
50118
50118
|
[a]
|
|
50119
|
-
), u =
|
|
50119
|
+
), u = O.useMemo(
|
|
50120
50120
|
() => Kh(a),
|
|
50121
50121
|
[a]
|
|
50122
50122
|
), {
|
|
@@ -50134,11 +50134,11 @@ function mf({
|
|
|
50134
50134
|
smartScrollToBottom: N,
|
|
50135
50135
|
handleScroll: y,
|
|
50136
50136
|
scrollToBottom: R
|
|
50137
|
-
} = O5(), { isMobile: I, isFullscreen: L, setIsFullscreen: B } = D5(), [K, ue] =
|
|
50138
|
-
|
|
50137
|
+
} = O5(), { isMobile: I, isFullscreen: L, setIsFullscreen: B } = D5(), [K, ue] = O.useState(/* @__PURE__ */ new Set()), [se, j] = O.useState([]), H = hn(t);
|
|
50138
|
+
O.useEffect(() => (L && I && (document.body.style.overflow = "hidden", document.body.style.position = "fixed", document.body.style.width = "100%", document.body.style.height = "100%", document.documentElement.requestFullscreen && document.documentElement.requestFullscreen().catch(console.log)), () => {
|
|
50139
50139
|
L && I && (document.body.style.overflow = "unset", document.body.style.position = "unset", document.body.style.width = "unset", document.body.style.height = "unset", document.fullscreenElement && document.exitFullscreen().catch(console.log));
|
|
50140
50140
|
}), [L, I]);
|
|
50141
|
-
const C = e.getCurrentAgentInfo(), W = (C == null ? void 0 : C.name) || "AI Assistant", Y = W.split(" ").map((F) => F[0]).join("").toUpperCase().slice(0, 2), E =
|
|
50141
|
+
const C = e.getCurrentAgentInfo(), W = (C == null ? void 0 : C.name) || "AI Assistant", Y = W.split(" ").map((F) => F[0]).join("").toUpperCase().slice(0, 2), E = O.useCallback((F) => {
|
|
50142
50142
|
const de = {
|
|
50143
50143
|
id: `local_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`,
|
|
50144
50144
|
content: F,
|
|
@@ -50155,7 +50155,7 @@ function mf({
|
|
|
50155
50155
|
};
|
|
50156
50156
|
h((Ne) => [...Ne, de]);
|
|
50157
50157
|
}, [h]);
|
|
50158
|
-
|
|
50158
|
+
O.useEffect(() => {
|
|
50159
50159
|
if (P && d.length > 0) {
|
|
50160
50160
|
N(!0);
|
|
50161
50161
|
const F = setTimeout(() => {
|
|
@@ -50163,7 +50163,7 @@ function mf({
|
|
|
50163
50163
|
}, 10);
|
|
50164
50164
|
return () => clearTimeout(F);
|
|
50165
50165
|
}
|
|
50166
|
-
}, [d.length, N, P]),
|
|
50166
|
+
}, [d.length, N, P]), O.useEffect(() => {
|
|
50167
50167
|
if (w && P) {
|
|
50168
50168
|
N(!0);
|
|
50169
50169
|
const F = setTimeout(() => {
|
|
@@ -50171,7 +50171,7 @@ function mf({
|
|
|
50171
50171
|
}, 50);
|
|
50172
50172
|
return () => clearTimeout(F);
|
|
50173
50173
|
}
|
|
50174
|
-
}, [w, N, P]),
|
|
50174
|
+
}, [w, N, P]), O.useEffect(() => {
|
|
50175
50175
|
S.forEach((F) => {
|
|
50176
50176
|
const de = `${F.created_at}-${F.type}`;
|
|
50177
50177
|
K.has(de) || (console.log("Processing tool execution:", de), ue((Ne) => new Set(Ne).add(de)), setTimeout(() => {
|
|
@@ -50201,7 +50201,7 @@ function mf({
|
|
|
50201
50201
|
}, 0);
|
|
50202
50202
|
}, 100));
|
|
50203
50203
|
});
|
|
50204
|
-
}, [S, K, h, P, N]),
|
|
50204
|
+
}, [S, K, h, P, N]), O.useEffect(() => {
|
|
50205
50205
|
const F = (we) => {
|
|
50206
50206
|
if (console.log("ChatView: Received message:", we), f(!1), w && we.sender.type === "agent") {
|
|
50207
50207
|
console.log("ChatView: Queuing agent message due to active interaction:", w.methodName), g((pe) => [...pe, we]);
|
|
@@ -50251,7 +50251,7 @@ function mf({
|
|
|
50251
50251
|
return e.on("chat.message.received", F), e.on("chat.message.updated", de), e.on("chat.message.sent", Ne), () => {
|
|
50252
50252
|
e.off("chat.message.received", F), e.off("chat.message.updated", de), e.off("chat.message.sent", Ne);
|
|
50253
50253
|
};
|
|
50254
|
-
}, [e, w, P, N, f, h, p, g]),
|
|
50254
|
+
}, [e, w, P, N, f, h, p, g]), O.useEffect(() => {
|
|
50255
50255
|
const F = (pe) => {
|
|
50256
50256
|
console.log("ChatView: RPC interaction started:", pe);
|
|
50257
50257
|
const Te = e.getCurrentInteraction();
|
|
@@ -50363,7 +50363,7 @@ function mf({
|
|
|
50363
50363
|
return e.on("rpc.interaction.started", F), e.on("rpc.interaction.completed", de), e.on("rpc.interaction.timeout", Ne), e.on("rpc.interaction.dismissed", we), () => {
|
|
50364
50364
|
e.off("rpc.interaction.started", F), e.off("rpc.interaction.completed", de), e.off("rpc.interaction.timeout", Ne), e.off("rpc.interaction.dismissed", we);
|
|
50365
50365
|
};
|
|
50366
|
-
}, [e, P, N, W, v, w, k, h, p, g]),
|
|
50366
|
+
}, [e, P, N, W, v, w, k, h, p, g]), O.useEffect(() => {
|
|
50367
50367
|
console.log("ChatView: Display type changed to:", r, "Current interaction:", (w == null ? void 0 : w.methodName) || "none");
|
|
50368
50368
|
}, [r, w]);
|
|
50369
50369
|
const J = async (F) => {
|
|
@@ -50379,7 +50379,7 @@ function mf({
|
|
|
50379
50379
|
console.error("Failed to send attachments:", de);
|
|
50380
50380
|
}
|
|
50381
50381
|
};
|
|
50382
|
-
|
|
50382
|
+
O.useEffect(() => {
|
|
50383
50383
|
const F = (de) => {
|
|
50384
50384
|
j(Array.isArray(de) ? de : ["tes", "hello how are you", "algebra make me learn that ", "what is the meaning of life"]);
|
|
50385
50385
|
};
|
|
@@ -50390,9 +50390,9 @@ function mf({
|
|
|
50390
50390
|
const ie = L && I ? "fullscreen" : r, re = ie === "fullscreen" ? L && I ? `fixed inset-0 z-[9999] flex flex-col h-[100svh] min-h-0 ${H.main}` : "flex flex-col h-full w-full max-w-none" : "flex flex-col h-full w-full backdrop-blur-sm max-h-full overflow-hidden contain-layout", X = ie === "fullscreen" ? L && I ? `flex items-center w-full justify-between px-3 h-11 ${H.chatHeader.container} border-b` : `flex items-center w-full justify-between px-5 h-12 border-b ${H.chatHeader.container}` : `flex items-center w-full justify-between px-4 h-12 border-b ${H.chatHeader.container}`, le = ie === "fullscreen" ? L && I ? "flex-1 overflow-y-auto overflow-x-hidden scrollbar-hide p-4 w-full max-w-none chat-scrollable min-h-0" : "flex-1 overflow-y-auto overflow-x-hidden scrollbar-hide p-6 w-full max-w-none chat-scrollable min-h-0" : "flex-1 overflow-y-auto overflow-x-hidden scrollbar-hide w-full p-4 chat-scrollable min-h-0", Z = "flex-shrink-0 !w-full", Pe = () => {
|
|
50391
50391
|
B(!1), n && n();
|
|
50392
50392
|
};
|
|
50393
|
-
return /* @__PURE__ */
|
|
50394
|
-
/* @__PURE__ */ b("div", { className: X, children: /* @__PURE__ */
|
|
50395
|
-
/* @__PURE__ */
|
|
50393
|
+
return /* @__PURE__ */ D("div", { className: `${re} relative`, children: [
|
|
50394
|
+
/* @__PURE__ */ b("div", { className: X, children: /* @__PURE__ */ D("div", { className: "flex items-center justify-between w-full", children: [
|
|
50395
|
+
/* @__PURE__ */ D("div", { className: "flex items-center gap-2", children: [
|
|
50396
50396
|
/* @__PURE__ */ b(
|
|
50397
50397
|
"h3",
|
|
50398
50398
|
{
|
|
@@ -50422,7 +50422,7 @@ function mf({
|
|
|
50422
50422
|
whileTap: { scale: 0.95 },
|
|
50423
50423
|
className: `p-1.5 rounded-md transition-all duration-200 ${L && I ? "hover:bg-white/10 text-white/70 hover:text-white" : t === "light" ? "hover:bg-gray-100 text-gray-400 hover:text-gray-600" : "hover:bg-gray-700/40 text-gray-400 hover:text-gray-200"}`,
|
|
50424
50424
|
"aria-label": "Close chat",
|
|
50425
|
-
children: /* @__PURE__ */
|
|
50425
|
+
children: /* @__PURE__ */ D(
|
|
50426
50426
|
"svg",
|
|
50427
50427
|
{
|
|
50428
50428
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -50455,7 +50455,7 @@ function mf({
|
|
|
50455
50455
|
overscrollBehavior: "contain"
|
|
50456
50456
|
},
|
|
50457
50457
|
onScroll: y,
|
|
50458
|
-
children: d.length === 0 ? /* @__PURE__ */
|
|
50458
|
+
children: d.length === 0 ? /* @__PURE__ */ D("div", { className: "flex flex-col items-center justify-center h-full text-center py-12", children: [
|
|
50459
50459
|
/* @__PURE__ */ b(
|
|
50460
50460
|
Be.div,
|
|
50461
50461
|
{
|
|
@@ -50471,15 +50471,15 @@ function mf({
|
|
|
50471
50471
|
children: Y
|
|
50472
50472
|
}
|
|
50473
50473
|
),
|
|
50474
|
-
/* @__PURE__ */
|
|
50474
|
+
/* @__PURE__ */ D("p", { className: `text-base mb-2 ${L && I ? "text-white" : H.text.secondary}`, children: [
|
|
50475
50475
|
W,
|
|
50476
50476
|
" is joining..."
|
|
50477
50477
|
] }),
|
|
50478
50478
|
/* @__PURE__ */ b("p", { className: `text-xs ${L && I ? "text-gray-300" : H.text.muted}`, children: "Your conversation will begin shortly" })
|
|
50479
|
-
] }) : /* @__PURE__ */ b("div", { className: "w-full space-y-3 py-4 px-3", children: /* @__PURE__ */
|
|
50479
|
+
] }) : /* @__PURE__ */ b("div", { className: "w-full space-y-3 py-4 px-3", children: /* @__PURE__ */ D("div", { className: "space-y-3", children: [
|
|
50480
50480
|
d.map((F, de) => {
|
|
50481
50481
|
var Ne, we, pe, Te;
|
|
50482
|
-
return /* @__PURE__ */ b("div", { children: ((Ne = F.metadata) == null ? void 0 : Ne.type) === "successView" ? /* @__PURE__ */ b("div", { className: "flex w-full justify-end mb-4 px-3", children: /* @__PURE__ */
|
|
50482
|
+
return /* @__PURE__ */ b("div", { children: ((Ne = F.metadata) == null ? void 0 : Ne.type) === "successView" ? /* @__PURE__ */ b("div", { className: "flex w-full justify-end mb-4 px-3", children: /* @__PURE__ */ D("div", { className: "relative group flex-row-reverse flex items-end gap-3 w-full min-w-0", children: [
|
|
50483
50483
|
/* @__PURE__ */ b(
|
|
50484
50484
|
Be.div,
|
|
50485
50485
|
{
|
|
@@ -50490,34 +50490,34 @@ function mf({
|
|
|
50490
50490
|
children: Y
|
|
50491
50491
|
}
|
|
50492
50492
|
),
|
|
50493
|
-
/* @__PURE__ */
|
|
50493
|
+
/* @__PURE__ */ D("div", { className: `flex h-full flex-col justify-between border px-3 py-2 rounded-2xl shadow-lg backdrop-bl-sm message-bubble rounded-br-md message-hover border-gray-200 dark:border-gray-700 ${H.chatMessage.own} min-w-0 max-w-[85%] break-words overflow-hidden`, style: { overflowWrap: "anywhere", wordBreak: "break-word", hyphens: "auto" }, children: [
|
|
50494
50494
|
F.metadata.view,
|
|
50495
50495
|
/* @__PURE__ */ b("div", { className: `text-xs ${H.text.muted} mt-1 opacity-0 group-hover:opacity-100 transition-opacity duration-200`, children: F.timestamp.toLocaleTimeString([], {
|
|
50496
50496
|
hour: "2-digit",
|
|
50497
50497
|
minute: "2-digit"
|
|
50498
50498
|
}) })
|
|
50499
50499
|
] })
|
|
50500
|
-
] }) }) : ((we = F.metadata) == null ? void 0 : we.type) === "timeoutView" ? /* @__PURE__ */ b("div", { className: "flex w-full justify-start mb-4 px-3", children: /* @__PURE__ */
|
|
50500
|
+
] }) }) : ((we = F.metadata) == null ? void 0 : we.type) === "timeoutView" ? /* @__PURE__ */ b("div", { className: "flex w-full justify-start mb-4 px-3", children: /* @__PURE__ */ D("div", { className: "relative group flex-row flex items-end gap-3 w-full min-w-0", children: [
|
|
50501
50501
|
/* @__PURE__ */ b("div", { className: `w-6 h-6 rounded-full flex items-center justify-center text-white text-xs font-semibold flex-shrink-0 shadow-lg ${t === "light" ? "bg-gradient-to-br from-blue-500 to-purple-600" : "bg-gradient-to-br from-gray-600 to_gray-700"}`, children: Y }),
|
|
50502
|
-
/* @__PURE__ */
|
|
50502
|
+
/* @__PURE__ */ D("div", { className: `flex h-full flex-col justify-between border px-3 py-2 rounded-2xl shadow-lg backdrop-bl-sm message-bubble rounded-bl-md message-hover border-gray-200 dark:border-gray-700 ${H.chatMessage.other} min-w-0 max-w-[85%] break-words overflow-hidden`, style: { overflowWrap: "anywhere", wordBreak: "break-word", hyphens: "auto" }, children: [
|
|
50503
50503
|
F.metadata.view,
|
|
50504
50504
|
/* @__PURE__ */ b("div", { className: `text-xs ${H.text.muted} mt-1 opacity-0 group-hover:opacity-100 transition-opacity duration-200`, children: F.timestamp.toLocaleTimeString([], {
|
|
50505
50505
|
hour: "2-digit",
|
|
50506
50506
|
minute: "2-digit"
|
|
50507
50507
|
}) })
|
|
50508
50508
|
] })
|
|
50509
|
-
] }) }) : ((pe = F.metadata) == null ? void 0 : pe.type) === "visualization" ? /* @__PURE__ */ b("div", { className: "flex w-full justify-start mb-4 px-3", children: /* @__PURE__ */
|
|
50509
|
+
] }) }) : ((pe = F.metadata) == null ? void 0 : pe.type) === "visualization" ? /* @__PURE__ */ b("div", { className: "flex w-full justify-start mb-4 px-3", children: /* @__PURE__ */ D("div", { className: "relative group flex-row flex items-end gap-3 w-full min-w-0", children: [
|
|
50510
50510
|
/* @__PURE__ */ b("div", { className: `w-6 h-6 rounded-full flex items-center justify-center text-white text-xs font-semibold flex-shrink-0 shadow-lg ${t === "light" ? "bg-gradient-to-br from-blue-500 to-purple-600" : "bg-gradient-to-br from-gray-600 to_gray-700"}`, children: Y }),
|
|
50511
|
-
/* @__PURE__ */
|
|
50511
|
+
/* @__PURE__ */ D("div", { className: `flex h-full flex-col justify-between border px-3 py-2 rounded-2xl shadow-lg backdrop-bl-sm message-bubble rounded-bl-md message-hover border-gray-200 dark:border-gray-700 ${H.chatMessage.other} min-w-0 max-w-[85%] break-words overflow-hidden`, style: { overflowWrap: "anywhere", wordBreak: "break-word", hyphens: "auto" }, children: [
|
|
50512
50512
|
F.metadata.view,
|
|
50513
50513
|
/* @__PURE__ */ b("div", { className: `text-xs ${H.text.muted} mt-1 opacity-70 transition-opacity duration-200`, children: F.timestamp.toLocaleTimeString([], {
|
|
50514
50514
|
hour: "2-digit",
|
|
50515
50515
|
minute: "2-digit"
|
|
50516
50516
|
}) })
|
|
50517
50517
|
] })
|
|
50518
|
-
] }) }) : ((Te = F.metadata) == null ? void 0 : Te.type) === "toolExecution" ? /* @__PURE__ */ b("div", { className: "flex w-full justify-start mb-4 px-3", children: /* @__PURE__ */
|
|
50518
|
+
] }) }) : ((Te = F.metadata) == null ? void 0 : Te.type) === "toolExecution" ? /* @__PURE__ */ b("div", { className: "flex w-full justify-start mb-4 px-3", children: /* @__PURE__ */ D("div", { className: "relative group flex-row flex items-end gap-3 w-full min-w-0", children: [
|
|
50519
50519
|
/* @__PURE__ */ b("div", { className: `w-6 h-6 rounded-full flex items-center justify-center text-white text-xs font-semibold flex-shrink-0 shadow-lg ${t === "light" ? "bg-gradient-to-br from-blue-500 to-purple-600" : "bg-gradient-to-br from-gray-600 to_gray-700"}`, children: Y }),
|
|
50520
|
-
/* @__PURE__ */
|
|
50520
|
+
/* @__PURE__ */ D("div", { className: `flex h-full flex-col justify-between border px-3 py-2 rounded-2xl shadow-lg backdrop-bl-sm message-bubble rounded-bl-md message-hover border-gray-200 dark:border-gray-700 ${H.chatMessage.other} min-w-0 max-w-[85%] break-words overflow-hidden`, style: { overflowWrap: "anywhere", wordBreak: "break-word", hyphens: "auto" }, children: [
|
|
50521
50521
|
F.metadata.view,
|
|
50522
50522
|
/* @__PURE__ */ b("div", { className: `text-xs ${H.text.muted} mt-1 opacity-70 transition-opacity duration-200`, children: F.timestamp.toLocaleTimeString([], {
|
|
50523
50523
|
hour: "2-digit",
|
|
@@ -50544,7 +50544,7 @@ function mf({
|
|
|
50544
50544
|
children: /* @__PURE__ */ b(_5, { theme: t })
|
|
50545
50545
|
}
|
|
50546
50546
|
),
|
|
50547
|
-
w && w.presentationMode === "embedded" && /* @__PURE__ */
|
|
50547
|
+
w && w.presentationMode === "embedded" && /* @__PURE__ */ D("div", { className: "relative group flex-row flex items-end gap-3 max-w-[85%] min-w-0", children: [
|
|
50548
50548
|
/* @__PURE__ */ b(
|
|
50549
50549
|
Be.div,
|
|
50550
50550
|
{
|
|
@@ -50555,7 +50555,7 @@ function mf({
|
|
|
50555
50555
|
children: Y
|
|
50556
50556
|
}
|
|
50557
50557
|
),
|
|
50558
|
-
/* @__PURE__ */
|
|
50558
|
+
/* @__PURE__ */ D("div", { className: `flex h-full flex-col justify-between border px-3 py-2 rounded-2xl shadow-lg backdrop-bl-sm message-bubble rounded-bl-md message-hover border-gray-200 dark:border-gray-700 ${H.chatMessage.other} min-w-0 max-w-full break-words overflow-hidden`, style: { overflowWrap: "anywhere", wordBreak: "break-word", hyphens: "auto" }, children: [
|
|
50559
50559
|
/* @__PURE__ */ b(
|
|
50560
50560
|
ec,
|
|
50561
50561
|
{
|
|
@@ -50758,8 +50758,8 @@ const KS = Fe.forwardRef(({
|
|
|
50758
50758
|
o === "fullscreen" ? "max-w-none" : "",
|
|
50759
50759
|
"overflow-hidden h-full"
|
|
50760
50760
|
), j = a && (o === "popup" || o === "fullscreen"), H = Fe.useMemo(() => d ? "Agent is taking longer than expected..." : I ? "Room connected. Waiting for agent..." : i, [d, I, i]), C = Fe.useMemo(() => d ? "Please check your connection or try again." : I ? "The agent will join shortly." : "Agent is connecting... This may take a moment.", [d, I]), W = s.getCurrentAgentInfo();
|
|
50761
|
-
return g ? /* @__PURE__ */
|
|
50762
|
-
(j || k) && /* @__PURE__ */
|
|
50761
|
+
return g ? /* @__PURE__ */ D("main", { ref: c, className: Qe(se, "relative", e && "pointer-events-none opacity-50"), children: [
|
|
50762
|
+
(j || k) && /* @__PURE__ */ D("div", { className: `flex items-center justify-between w-full p-4 border-b ${((Y = R.chatHeader) == null ? void 0 : Y.container) || "border-gray-200"}`, children: [
|
|
50763
50763
|
/* @__PURE__ */ b("div", { children: /* @__PURE__ */ b("h3", { className: `font-semibold ${R.text.primary}`, children: (W == null ? void 0 : W.agentName) || "Voice Session" }) }),
|
|
50764
50764
|
k && /* @__PURE__ */ b(
|
|
50765
50765
|
tc,
|
|
@@ -50772,14 +50772,14 @@ const KS = Fe.forwardRef(({
|
|
|
50772
50772
|
}
|
|
50773
50773
|
)
|
|
50774
50774
|
] }),
|
|
50775
|
-
/* @__PURE__ */ b("div", { className: "flex-1 flex items-center justify-center w-full", children: /* @__PURE__ */
|
|
50775
|
+
/* @__PURE__ */ b("div", { className: "flex-1 flex items-center justify-center w-full", children: /* @__PURE__ */ D("div", { className: "flex flex-col items-center justify-center w-full h-full min-h-[180px]", children: [
|
|
50776
50776
|
/* @__PURE__ */ b(Be.div, { animate: { rotate: 360, scale: [1, 1.1, 1] }, transition: { rotate: { duration: 2, repeat: 1 / 0, ease: "linear" }, scale: { duration: 1, repeat: 1 / 0, ease: "easeInOut" } }, className: "w-12 h-12 mb-4", children: /* @__PURE__ */ b(nc, { className: R.spinner, weight: "bold" }) }),
|
|
50777
50777
|
/* @__PURE__ */ b(Be.span, { initial: { opacity: 0, y: 10 }, animate: { opacity: 1, y: 0 }, className: `text-sm opacity-80 ${R.text.muted} text-center max-w-xs`, children: H }),
|
|
50778
50778
|
/* @__PURE__ */ b(Be.p, { initial: { opacity: 0 }, animate: { opacity: 1 }, transition: { delay: 2 }, className: `text-xs ${R.text.muted} mt-2 text-center opacity-60`, children: C }),
|
|
50779
50779
|
d && a && /* @__PURE__ */ b(Be.button, { initial: { opacity: 0, scale: 0.9 }, animate: { opacity: 1, scale: 1 }, transition: { delay: 0.5 }, onClick: a, className: `mt-4 px-4 py-2 rounded-lg ${((E = R.chatHeader) == null ? void 0 : E.backButton) || "bg-gray-100 hover:bg-gray-200"} transition-colors`, children: "Go Back" })
|
|
50780
50780
|
] }) })
|
|
50781
|
-
] }) : /* @__PURE__ */
|
|
50782
|
-
(j || k) && /* @__PURE__ */
|
|
50781
|
+
] }) : /* @__PURE__ */ D("main", { ref: c, className: Qe(se, "relative", e && "pointer-events-none opacity-50"), style: { minHeight: 0 }, children: [
|
|
50782
|
+
(j || k) && /* @__PURE__ */ D("div", { className: `flex items-center justify-between w-full p-4 border-b ${((J = R.chatHeader) == null ? void 0 : J.container) || "border-gray-200"}`, children: [
|
|
50783
50783
|
/* @__PURE__ */ b("div", { children: /* @__PURE__ */ b("h3", { className: `font-semibold ${R.text.primary}`, children: "Voice Session" }) }),
|
|
50784
50784
|
k && /* @__PURE__ */ b(
|
|
50785
50785
|
tc,
|
|
@@ -50792,14 +50792,14 @@ const KS = Fe.forwardRef(({
|
|
|
50792
50792
|
}
|
|
50793
50793
|
)
|
|
50794
50794
|
] }),
|
|
50795
|
-
/* @__PURE__ */
|
|
50796
|
-
!B && /* @__PURE__ */
|
|
50795
|
+
/* @__PURE__ */ D("div", { className: "w-full flex-1 flex flex-col items-center px-0 min-h-0 overflow-hidden relative", children: [
|
|
50796
|
+
!B && /* @__PURE__ */ D("div", { className: "flex flex-col items-center justify-center w-full h-full min-h-[180px]", children: [
|
|
50797
50797
|
/* @__PURE__ */ b(Be.div, { animate: { rotate: 360, scale: [1, 1.1, 1] }, transition: { rotate: { duration: 2, repeat: 1 / 0, ease: "linear" }, scale: { duration: 1, repeat: 1 / 0, ease: "easeInOut" } }, className: "w-12 h-12 mb-4", children: /* @__PURE__ */ b(nc, { className: R.spinner, weight: "bold" }) }),
|
|
50798
50798
|
/* @__PURE__ */ b(Be.span, { initial: { opacity: 0, y: 10 }, animate: { opacity: 1, y: 0 }, className: `text-sm opacity-80 ${R.text.muted} text-center max-w-xs`, children: H }),
|
|
50799
50799
|
/* @__PURE__ */ b(Be.p, { initial: { opacity: 0 }, animate: { opacity: 1 }, transition: { delay: 2 }, className: `text-xs ${R.text.muted} mt-2 text-center opacity-60`, children: C }),
|
|
50800
50800
|
d && a && /* @__PURE__ */ b(Be.button, { initial: { opacity: 0, scale: 0.9 }, animate: { opacity: 1, scale: 1 }, transition: { delay: 0.5 }, onClick: a, className: `mt-4 px-4 py-2 rounded-lg ${((ne = R.chatHeader) == null ? void 0 : ne.backButton) || "bg-gray-100 hover:bg-gray-200"} transition-colors`, children: "Go Back" })
|
|
50801
50801
|
] }),
|
|
50802
|
-
B && /* @__PURE__ */
|
|
50802
|
+
B && /* @__PURE__ */ D(Wt, { children: [
|
|
50803
50803
|
l && // Chat overlay - fills the content area above controls
|
|
50804
50804
|
/* @__PURE__ */ b(
|
|
50805
50805
|
"div",
|
|
@@ -50818,7 +50818,7 @@ const KS = Fe.forwardRef(({
|
|
|
50818
50818
|
children: /* @__PURE__ */ b(mf, { client: s, theme: r, displayType: o === "fullscreen" ? "fullscreen" : "widget", disabled: e, onBack: () => u(!1), showTimer: !1 })
|
|
50819
50819
|
}
|
|
50820
50820
|
),
|
|
50821
|
-
!l && /* @__PURE__ */
|
|
50821
|
+
!l && /* @__PURE__ */ D("div", { className: Qe("flex-1 flex flex-col items-center w-full h-full min-h-0", (p == null ? void 0 : p.presentationMode) === "embedded" ? "justify-end" : "justify-center"), children: [
|
|
50822
50822
|
/* @__PURE__ */ b(Be.div, { className: "w-full flex justify-center", animate: { y: (p == null ? void 0 : p.presentationMode) === "embedded" ? -8 : 0 }, transition: { duration: 0.3, ease: "easeOut" }, children: /* @__PURE__ */ b(XM, { chatOpen: l, client: s, theme: r }, `media-tiles-${((re = (ie = s == null ? void 0 : s.getCurrentSession) == null ? void 0 : ie.call(s)) == null ? void 0 : re.id) || "no-session"}`) }),
|
|
50823
50823
|
/* @__PURE__ */ b(gs, { mode: "wait", children: p && p.presentationMode === "embedded" && /* @__PURE__ */ b(Be.div, { initial: { opacity: 0, y: 20, height: 0 }, animate: { opacity: 1, y: 0, height: "auto" }, exit: { opacity: 0, y: 20, height: 0 }, transition: { duration: 0.3, ease: "easeOut" }, className: Qe("w-full relative mt-4 flex justify-center", o === "fullscreen" ? "max-w-4xl" : "max-w-md"), children: /* @__PURE__ */ b("div", { className: "bg-white/10 backdrop-blur-sm rounded-xl border border-white/20 shadow-lg overflow-hidden", children: /* @__PURE__ */ b(ec, { interaction: p, theme: r, onDismiss: () => {
|
|
50824
50824
|
var X;
|
|
@@ -50854,7 +50854,7 @@ KS.displayName = "SessionView";
|
|
|
50854
50854
|
function vb({ trackRef: e, participant: t, isLocal: n = !1, className: i = "", theme: r }) {
|
|
50855
50855
|
var c;
|
|
50856
50856
|
const s = hn(r), o = (t == null ? void 0 : t.name) || (t == null ? void 0 : t.identity) || (n ? "You" : "Participant"), a = (e == null ? void 0 : e.publication) && !e.publication.isMuted;
|
|
50857
|
-
return /* @__PURE__ */
|
|
50857
|
+
return /* @__PURE__ */ D("div", { className: `relative rounded-lg overflow-hidden ${s.video.tile} ${i}`, children: [
|
|
50858
50858
|
a ? /* @__PURE__ */ b(
|
|
50859
50859
|
Cc,
|
|
50860
50860
|
{
|
|
@@ -50875,17 +50875,17 @@ function L5({
|
|
|
50875
50875
|
onEndCall: s
|
|
50876
50876
|
}) {
|
|
50877
50877
|
var J;
|
|
50878
|
-
const o = hn(t), [a, c] =
|
|
50878
|
+
const o = hn(t), [a, c] = O.useState(!1), [l, u] = O.useState(!1), d = O.useMemo(() => {
|
|
50879
50879
|
const ne = e.getCurrentAgentInfo();
|
|
50880
50880
|
return qh(ne);
|
|
50881
|
-
}, [e]), { userVideoEnabled: h, agentAvatarEnabled: f, screenshareEnabled: m } =
|
|
50881
|
+
}, [e]), { userVideoEnabled: h, agentAvatarEnabled: f, screenshareEnabled: m } = O.useMemo(
|
|
50882
50882
|
() => zM(d),
|
|
50883
50883
|
[d]
|
|
50884
|
-
), p =
|
|
50884
|
+
), p = O.useMemo(
|
|
50885
50885
|
() => Kh(d),
|
|
50886
50886
|
[d]
|
|
50887
|
-
), v =
|
|
50888
|
-
|
|
50887
|
+
), v = O.useRef(null), [g, x] = O.useState(64);
|
|
50888
|
+
O.useLayoutEffect(() => {
|
|
50889
50889
|
const ne = v.current;
|
|
50890
50890
|
if (!ne) return;
|
|
50891
50891
|
const ie = () => x(ne.offsetHeight || 64);
|
|
@@ -50895,7 +50895,7 @@ function L5({
|
|
|
50895
50895
|
re.disconnect(), window.removeEventListener("resize", ie);
|
|
50896
50896
|
};
|
|
50897
50897
|
}, []);
|
|
50898
|
-
const [S, w] =
|
|
50898
|
+
const [S, w] = O.useState(null), k = oM(e), { videoTrackRefs: T, screenShareTrackRefs: P } = aM(e), {
|
|
50899
50899
|
agent: { isActive: A = !1 } = {},
|
|
50900
50900
|
state: N = "idle",
|
|
50901
50901
|
audioTrack: y
|
|
@@ -50903,16 +50903,16 @@ function L5({
|
|
|
50903
50903
|
agent: { isActive: !1 },
|
|
50904
50904
|
state: "idle",
|
|
50905
50905
|
audioTrack: null
|
|
50906
|
-
}, R =
|
|
50906
|
+
}, R = O.useMemo(() => e.getRemoteParticipants(), [e, k]), I = Na(e, "microphone"), L = Na(e, "camera"), B = Na(e, "screenShare"), K = O.useCallback(async () => {
|
|
50907
50907
|
L.pending || await L.toggle();
|
|
50908
|
-
}, [L]), ue =
|
|
50908
|
+
}, [L]), ue = O.useCallback(async () => {
|
|
50909
50909
|
B.pending || await B.toggle();
|
|
50910
|
-
}, [B]), se =
|
|
50910
|
+
}, [B]), se = O.useCallback(() => {
|
|
50911
50911
|
c((ne) => !ne);
|
|
50912
|
-
}, []), j =
|
|
50912
|
+
}, []), j = O.useCallback(() => {
|
|
50913
50913
|
s ? s() : n && n();
|
|
50914
50914
|
}, [s, n]);
|
|
50915
|
-
|
|
50915
|
+
O.useEffect(() => {
|
|
50916
50916
|
if (!e) return;
|
|
50917
50917
|
const ne = (ie) => {
|
|
50918
50918
|
console.log("📺 Video: Interactive UI state updated:", ie), w(ie);
|
|
@@ -50920,7 +50920,7 @@ function L5({
|
|
|
50920
50920
|
return e.on("interactive.ui.update", ne), e.on("interactive.ui.show", ne), () => {
|
|
50921
50921
|
e.off("interactive.ui.update", ne), e.off("interactive.ui.show", ne);
|
|
50922
50922
|
};
|
|
50923
|
-
}, [e]),
|
|
50923
|
+
}, [e]), O.useEffect(() => {
|
|
50924
50924
|
if (A)
|
|
50925
50925
|
u(!1);
|
|
50926
50926
|
else {
|
|
@@ -50932,21 +50932,21 @@ function L5({
|
|
|
50932
50932
|
};
|
|
50933
50933
|
}
|
|
50934
50934
|
}, [A]);
|
|
50935
|
-
const H = k == null ? void 0 : k.localParticipant, C =
|
|
50935
|
+
const H = k == null ? void 0 : k.localParticipant, C = O.useMemo(() => (e ? e.getCameraTrackRefs() : []).find((ne) => ne.participant === H), [e, H]), Y = T.filter(
|
|
50936
50936
|
(ne) => ne.participant !== H
|
|
50937
|
-
)[0], E =
|
|
50938
|
-
return /* @__PURE__ */
|
|
50939
|
-
/* @__PURE__ */
|
|
50940
|
-
/* @__PURE__ */
|
|
50937
|
+
)[0], E = O.useMemo(() => (P || []).find((ne) => ne.participant === H), [P, H]);
|
|
50938
|
+
return /* @__PURE__ */ D("div", { className: `flex flex-col h-full ${o.video.container} relative`, children: [
|
|
50939
|
+
/* @__PURE__ */ D("div", { className: `flex items-center justify-between p-4 border-b ${o.video.header}`, children: [
|
|
50940
|
+
/* @__PURE__ */ D("div", { className: "flex items-center gap-3", children: [
|
|
50941
50941
|
/* @__PURE__ */ b("div", { className: `w-3 h-3 rounded-full ${o.video.statusDot}` }),
|
|
50942
50942
|
/* @__PURE__ */ b("span", { className: "font-medium", children: "Video Call" }),
|
|
50943
|
-
/* @__PURE__ */
|
|
50943
|
+
/* @__PURE__ */ D("span", { className: "text-sm opacity-70", children: [
|
|
50944
50944
|
R.length + 1,
|
|
50945
50945
|
" participant",
|
|
50946
50946
|
R.length !== 0 ? "s" : ""
|
|
50947
50947
|
] })
|
|
50948
50948
|
] }),
|
|
50949
|
-
/* @__PURE__ */
|
|
50949
|
+
/* @__PURE__ */ D("div", { className: "flex items-center gap-2", children: [
|
|
50950
50950
|
p && /* @__PURE__ */ b(
|
|
50951
50951
|
tc,
|
|
50952
50952
|
{
|
|
@@ -50960,8 +50960,8 @@ function L5({
|
|
|
50960
50960
|
/* @__PURE__ */ b("button", { className: `p-2 rounded-lg transition-colors ${o.video.headerButton}`, title: "Layout options", children: /* @__PURE__ */ b(dT, { className: "w-4 h-4" }) })
|
|
50961
50961
|
] })
|
|
50962
50962
|
] }),
|
|
50963
|
-
/* @__PURE__ */
|
|
50964
|
-
!A && /* @__PURE__ */ b("div", { className: "flex items-center justify-center h-full", children: /* @__PURE__ */
|
|
50963
|
+
/* @__PURE__ */ D("div", { className: "relative flex-1 min-h-0", children: [
|
|
50964
|
+
!A && /* @__PURE__ */ b("div", { className: "flex items-center justify-center h-full", children: /* @__PURE__ */ D("div", { className: "text-center", children: [
|
|
50965
50965
|
/* @__PURE__ */ b(
|
|
50966
50966
|
Be.div,
|
|
50967
50967
|
{
|
|
@@ -50986,7 +50986,7 @@ function L5({
|
|
|
50986
50986
|
}
|
|
50987
50987
|
)
|
|
50988
50988
|
] }) }),
|
|
50989
|
-
A && !a && /* @__PURE__ */ b("div", { className: "p-4 min-h-0 h-full", children: /* @__PURE__ */
|
|
50989
|
+
A && !a && /* @__PURE__ */ b("div", { className: "p-4 min-h-0 h-full", children: /* @__PURE__ */ D("div", { className: "relative w-full h-full overflow-hidden", children: [
|
|
50990
50990
|
f ? (
|
|
50991
50991
|
// Show video when agent avatar is enabled
|
|
50992
50992
|
Y ? /* @__PURE__ */ b(
|
|
@@ -51001,7 +51001,7 @@ function L5({
|
|
|
51001
51001
|
) : /* @__PURE__ */ b("div", { className: "w-full h-full flex items-center justify-center", children: /* @__PURE__ */ b("div", { className: "text-center", children: /* @__PURE__ */ b(hT, { className: "w-12 h-12 mx-auto mb-4 opacity-50" }) }) })
|
|
51002
51002
|
) : (
|
|
51003
51003
|
// Show bar visualizer when agent avatar is disabled (voice-only mode)
|
|
51004
|
-
/* @__PURE__ */ b("div", { className: "w-full h-full flex items-center justify-center", children: /* @__PURE__ */ b("div", { className: "text-center", children: /* @__PURE__ */
|
|
51004
|
+
/* @__PURE__ */ b("div", { className: "w-full h-full flex items-center justify-center", children: /* @__PURE__ */ b("div", { className: "text-center", children: /* @__PURE__ */ D("div", { className: "mb-4", children: [
|
|
51005
51005
|
/* @__PURE__ */ b("div", { className: "w-16 h-16 mx-auto mb-4 rounded-full bg-gradient-to-br from-[#6721a4] to-[#5c64f6] flex items-center justify-center", children: /* @__PURE__ */ b(o0, { className: "w-8 h-8 text-white" }) }),
|
|
51006
51006
|
A && (y ? /* @__PURE__ */ b(
|
|
51007
51007
|
uw,
|
|
@@ -51037,7 +51037,7 @@ function L5({
|
|
|
51037
51037
|
)) }))
|
|
51038
51038
|
] }) }) })
|
|
51039
51039
|
),
|
|
51040
|
-
E && /* @__PURE__ */ b("div", { className: "absolute bottom-4 left-0 sm:left-0 z-10 w-32 sm:w-36 h-20 sm:h-24 rounded-lg overflow-hidden shadow-xl border border-white/20", children: /* @__PURE__ */
|
|
51040
|
+
E && /* @__PURE__ */ b("div", { className: "absolute bottom-4 left-0 sm:left-0 z-10 w-32 sm:w-36 h-20 sm:h-24 rounded-lg overflow-hidden shadow-xl border border-white/20", children: /* @__PURE__ */ D("div", { className: "relative w-full h-full bg-black/40", children: [
|
|
51041
51041
|
/* @__PURE__ */ b(
|
|
51042
51042
|
Cc,
|
|
51043
51043
|
{
|
|
@@ -51045,7 +51045,7 @@ function L5({
|
|
|
51045
51045
|
className: "w-full h-full object-contain"
|
|
51046
51046
|
}
|
|
51047
51047
|
),
|
|
51048
|
-
/* @__PURE__ */ b("div", { className: `absolute top-1 left-1 px-1.5 py-0.5 rounded text-xs ${o.video.nameOverlay}`, children: /* @__PURE__ */
|
|
51048
|
+
/* @__PURE__ */ b("div", { className: `absolute top-1 left-1 px-1.5 py-0.5 rounded text-xs ${o.video.nameOverlay}`, children: /* @__PURE__ */ D("span", { className: "inline-flex items-center gap-1", children: [
|
|
51049
51049
|
/* @__PURE__ */ b(s0, { className: "w-3 h-3" }),
|
|
51050
51050
|
/* @__PURE__ */ b("span", { className: "text-xs", children: "Sharing" })
|
|
51051
51051
|
] }) })
|
|
@@ -51973,7 +51973,7 @@ function xi(e) {
|
|
|
51973
51973
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
51974
51974
|
}
|
|
51975
51975
|
function XS(e) {
|
|
51976
|
-
if (/* @__PURE__ */
|
|
51976
|
+
if (/* @__PURE__ */ O.isValidElement(e) || lc.isValidElementType(e) || !xi(e))
|
|
51977
51977
|
return e;
|
|
51978
51978
|
const t = {};
|
|
51979
51979
|
return Object.keys(e).forEach((n) => {
|
|
@@ -51987,7 +51987,7 @@ function Pn(e, t, n = {
|
|
|
51987
51987
|
...e
|
|
51988
51988
|
} : e;
|
|
51989
51989
|
return xi(e) && xi(t) && Object.keys(t).forEach((r) => {
|
|
51990
|
-
/* @__PURE__ */
|
|
51990
|
+
/* @__PURE__ */ O.isValidElement(t[r]) || lc.isValidElementType(t[r]) ? i[r] = t[r] : xi(t[r]) && // Avoid prototype pollution
|
|
51991
51991
|
Object.prototype.hasOwnProperty.call(e, r) && xi(e[r]) ? i[r] = Pn(e[r], t[r], n) : n.clone ? i[r] = xi(t[r]) ? XS(t[r]) : t[r] : i[r] = t[r];
|
|
51992
51992
|
}), i;
|
|
51993
51993
|
}
|
|
@@ -52057,7 +52057,7 @@ const Mc = {
|
|
|
52057
52057
|
// It can't be configured as it's used statically for propTypes.
|
|
52058
52058
|
keys: ["xs", "sm", "md", "lg", "xl"],
|
|
52059
52059
|
up: (e) => `@media (min-width:${Mc[e]}px)`
|
|
52060
|
-
},
|
|
52060
|
+
}, e4 = {
|
|
52061
52061
|
containerQueries: (e) => ({
|
|
52062
52062
|
up: (t) => {
|
|
52063
52063
|
let n = typeof t == "number" ? t : Mc[t] || t;
|
|
@@ -52075,7 +52075,7 @@ function Pi(e, t, n) {
|
|
|
52075
52075
|
const s = i.breakpoints || Db;
|
|
52076
52076
|
return Object.keys(t).reduce((o, a) => {
|
|
52077
52077
|
if (X5(s.keys, a)) {
|
|
52078
|
-
const c = J5(i.containerQueries ? i :
|
|
52078
|
+
const c = J5(i.containerQueries ? i : e4, a);
|
|
52079
52079
|
c && (o[c] = n(t[a], a));
|
|
52080
52080
|
} else if (Object.keys(s.values || Mc).includes(a)) {
|
|
52081
52081
|
const c = s.up(a);
|
|
@@ -52089,7 +52089,7 @@ function Pi(e, t, n) {
|
|
|
52089
52089
|
}
|
|
52090
52090
|
return n(t);
|
|
52091
52091
|
}
|
|
52092
|
-
function
|
|
52092
|
+
function t4(e = {}) {
|
|
52093
52093
|
var n;
|
|
52094
52094
|
return ((n = e.keys) == null ? void 0 : n.reduce((i, r) => {
|
|
52095
52095
|
const s = e.up(r);
|
|
@@ -52137,14 +52137,14 @@ function Dt(e) {
|
|
|
52137
52137
|
[t]: sr
|
|
52138
52138
|
} : {}, s.filterProps = [t], s;
|
|
52139
52139
|
}
|
|
52140
|
-
function
|
|
52140
|
+
function n4(e) {
|
|
52141
52141
|
const t = {};
|
|
52142
52142
|
return (n) => (t[n] === void 0 && (t[n] = e(n)), t[n]);
|
|
52143
52143
|
}
|
|
52144
|
-
const
|
|
52144
|
+
const i4 = {
|
|
52145
52145
|
m: "margin",
|
|
52146
52146
|
p: "padding"
|
|
52147
|
-
},
|
|
52147
|
+
}, r4 = {
|
|
52148
52148
|
t: "Top",
|
|
52149
52149
|
r: "Right",
|
|
52150
52150
|
b: "Bottom",
|
|
@@ -52156,15 +52156,15 @@ const iV = {
|
|
|
52156
52156
|
marginY: "my",
|
|
52157
52157
|
paddingX: "px",
|
|
52158
52158
|
paddingY: "py"
|
|
52159
|
-
},
|
|
52159
|
+
}, s4 = n4((e) => {
|
|
52160
52160
|
if (e.length > 2)
|
|
52161
52161
|
if (Fb[e])
|
|
52162
52162
|
e = Fb[e];
|
|
52163
52163
|
else
|
|
52164
52164
|
return [e];
|
|
52165
|
-
const [t, n] = e.split(""), i =
|
|
52165
|
+
const [t, n] = e.split(""), i = i4[t], r = r4[n] || "";
|
|
52166
52166
|
return Array.isArray(r) ? r.map((s) => i + s) : [i + r];
|
|
52167
|
-
}), Dc = ["m", "mt", "mr", "mb", "ml", "mx", "my", "margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginX", "marginY", "marginInline", "marginInlineStart", "marginInlineEnd", "marginBlock", "marginBlockStart", "marginBlockEnd"], Lc = ["p", "pt", "pr", "pb", "pl", "px", "py", "padding", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "paddingX", "paddingY", "paddingInline", "paddingInlineStart", "paddingInlineEnd", "paddingBlock", "paddingBlockStart", "paddingBlockEnd"],
|
|
52167
|
+
}), Dc = ["m", "mt", "mr", "mb", "ml", "mx", "my", "margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginX", "marginY", "marginInline", "marginInlineStart", "marginInlineEnd", "marginBlock", "marginBlockStart", "marginBlockEnd"], Lc = ["p", "pt", "pr", "pb", "pl", "px", "py", "padding", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "paddingX", "paddingY", "paddingInline", "paddingInlineStart", "paddingInlineEnd", "paddingBlock", "paddingBlockStart", "paddingBlockEnd"], o4 = [...Dc, ...Lc];
|
|
52168
52168
|
function Oo(e, t, n, i) {
|
|
52169
52169
|
const r = Oc(e, t, !0) ?? n;
|
|
52170
52170
|
return typeof r == "number" || typeof r == "string" ? (s) => typeof s == "string" ? s : (process.env.NODE_ENV !== "production" && typeof s != "number" && console.error(`MUI: Expected ${i} argument to be a number or a string, got ${s}.`), typeof r == "string" ? r.startsWith("var(") && s === 0 ? 0 : r.startsWith("var(") && s === 1 ? r : `calc(${s} * ${r})` : r * s) : Array.isArray(r) ? (s) => {
|
|
@@ -52186,18 +52186,18 @@ function bf(e) {
|
|
|
52186
52186
|
function Do(e, t) {
|
|
52187
52187
|
return typeof t == "string" || t == null ? t : e(t);
|
|
52188
52188
|
}
|
|
52189
|
-
function
|
|
52189
|
+
function a4(e, t) {
|
|
52190
52190
|
return (n) => e.reduce((i, r) => (i[r] = Do(t, n), i), {});
|
|
52191
52191
|
}
|
|
52192
|
-
function
|
|
52192
|
+
function c4(e, t, n, i) {
|
|
52193
52193
|
if (!t.includes(n))
|
|
52194
52194
|
return null;
|
|
52195
|
-
const r =
|
|
52195
|
+
const r = s4(n), s = a4(r, i), o = e[n];
|
|
52196
52196
|
return Pi(e, o, s);
|
|
52197
52197
|
}
|
|
52198
52198
|
function JS(e, t) {
|
|
52199
52199
|
const n = bf(e.theme);
|
|
52200
|
-
return Object.keys(e).map((i) =>
|
|
52200
|
+
return Object.keys(e).map((i) => c4(e, t, i, n)).reduce(co, {});
|
|
52201
52201
|
}
|
|
52202
52202
|
function Et(e) {
|
|
52203
52203
|
return JS(e, Dc);
|
|
@@ -52209,7 +52209,7 @@ function _t(e) {
|
|
|
52209
52209
|
}
|
|
52210
52210
|
_t.propTypes = process.env.NODE_ENV !== "production" ? Lc.reduce((e, t) => (e[t] = sr, e), {}) : {};
|
|
52211
52211
|
_t.filterProps = Lc;
|
|
52212
|
-
process.env.NODE_ENV !== "production" &&
|
|
52212
|
+
process.env.NODE_ENV !== "production" && o4.reduce((e, t) => (e[t] = sr, e), {});
|
|
52213
52213
|
function Fc(...e) {
|
|
52214
52214
|
const t = e.reduce((i, r) => (r.filterProps.forEach((s) => {
|
|
52215
52215
|
i[s] = r;
|
|
@@ -52226,7 +52226,7 @@ function Bn(e, t) {
|
|
|
52226
52226
|
transform: t
|
|
52227
52227
|
});
|
|
52228
52228
|
}
|
|
52229
|
-
const
|
|
52229
|
+
const l4 = Bn("border", Ln), u4 = Bn("borderTop", Ln), d4 = Bn("borderRight", Ln), h4 = Bn("borderBottom", Ln), f4 = Bn("borderLeft", Ln), p4 = Bn("borderColor"), m4 = Bn("borderTopColor"), g4 = Bn("borderRightColor"), b4 = Bn("borderBottomColor"), y4 = Bn("borderLeftColor"), v4 = Bn("outline", Ln), k4 = Bn("outlineColor"), Uc = (e) => {
|
|
52230
52230
|
if (e.borderRadius !== void 0 && e.borderRadius !== null) {
|
|
52231
52231
|
const t = Oo(e.theme, "shape.borderRadius", 4, "borderRadius"), n = (i) => ({
|
|
52232
52232
|
borderRadius: Do(t, i)
|
|
@@ -52239,7 +52239,7 @@ Uc.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
52239
52239
|
borderRadius: sr
|
|
52240
52240
|
} : {};
|
|
52241
52241
|
Uc.filterProps = ["borderRadius"];
|
|
52242
|
-
Fc(
|
|
52242
|
+
Fc(l4, u4, d4, h4, f4, p4, m4, g4, b4, y4, Uc, v4, k4);
|
|
52243
52243
|
const Bc = (e) => {
|
|
52244
52244
|
if (e.gap !== void 0 && e.gap !== null) {
|
|
52245
52245
|
const t = Oo(e.theme, "spacing", 8, "gap"), n = (i) => ({
|
|
@@ -52279,48 +52279,48 @@ $c.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
52279
52279
|
rowGap: sr
|
|
52280
52280
|
} : {};
|
|
52281
52281
|
$c.filterProps = ["rowGap"];
|
|
52282
|
-
const
|
|
52282
|
+
const w4 = Dt({
|
|
52283
52283
|
prop: "gridColumn"
|
|
52284
|
-
}),
|
|
52284
|
+
}), S4 = Dt({
|
|
52285
52285
|
prop: "gridRow"
|
|
52286
|
-
}),
|
|
52286
|
+
}), x4 = Dt({
|
|
52287
52287
|
prop: "gridAutoFlow"
|
|
52288
|
-
}),
|
|
52288
|
+
}), T4 = Dt({
|
|
52289
52289
|
prop: "gridAutoColumns"
|
|
52290
|
-
}),
|
|
52290
|
+
}), C4 = Dt({
|
|
52291
52291
|
prop: "gridAutoRows"
|
|
52292
|
-
}),
|
|
52292
|
+
}), E4 = Dt({
|
|
52293
52293
|
prop: "gridTemplateColumns"
|
|
52294
|
-
}),
|
|
52294
|
+
}), _4 = Dt({
|
|
52295
52295
|
prop: "gridTemplateRows"
|
|
52296
|
-
}),
|
|
52296
|
+
}), R4 = Dt({
|
|
52297
52297
|
prop: "gridTemplateAreas"
|
|
52298
|
-
}),
|
|
52298
|
+
}), A4 = Dt({
|
|
52299
52299
|
prop: "gridArea"
|
|
52300
52300
|
});
|
|
52301
|
-
Fc(Bc, Vc, $c,
|
|
52301
|
+
Fc(Bc, Vc, $c, w4, S4, x4, T4, C4, E4, _4, R4, A4);
|
|
52302
52302
|
function ds(e, t) {
|
|
52303
52303
|
return t === "grey" ? t : e;
|
|
52304
52304
|
}
|
|
52305
|
-
const
|
|
52305
|
+
const P4 = Dt({
|
|
52306
52306
|
prop: "color",
|
|
52307
52307
|
themeKey: "palette",
|
|
52308
52308
|
transform: ds
|
|
52309
|
-
}),
|
|
52309
|
+
}), N4 = Dt({
|
|
52310
52310
|
prop: "bgcolor",
|
|
52311
52311
|
cssProperty: "backgroundColor",
|
|
52312
52312
|
themeKey: "palette",
|
|
52313
52313
|
transform: ds
|
|
52314
|
-
}),
|
|
52314
|
+
}), I4 = Dt({
|
|
52315
52315
|
prop: "backgroundColor",
|
|
52316
52316
|
themeKey: "palette",
|
|
52317
52317
|
transform: ds
|
|
52318
52318
|
});
|
|
52319
|
-
Fc(
|
|
52319
|
+
Fc(P4, N4, I4);
|
|
52320
52320
|
function _n(e) {
|
|
52321
52321
|
return e <= 1 && e !== 0 ? `${e * 100}%` : e;
|
|
52322
52322
|
}
|
|
52323
|
-
const
|
|
52323
|
+
const M4 = Dt({
|
|
52324
52324
|
prop: "width",
|
|
52325
52325
|
transform: _n
|
|
52326
52326
|
}), yf = (e) => {
|
|
@@ -52341,16 +52341,16 @@ const MV = Dt({
|
|
|
52341
52341
|
return null;
|
|
52342
52342
|
};
|
|
52343
52343
|
yf.filterProps = ["maxWidth"];
|
|
52344
|
-
const
|
|
52344
|
+
const O4 = Dt({
|
|
52345
52345
|
prop: "minWidth",
|
|
52346
52346
|
transform: _n
|
|
52347
|
-
}),
|
|
52347
|
+
}), D4 = Dt({
|
|
52348
52348
|
prop: "height",
|
|
52349
52349
|
transform: _n
|
|
52350
|
-
}),
|
|
52350
|
+
}), L4 = Dt({
|
|
52351
52351
|
prop: "maxHeight",
|
|
52352
52352
|
transform: _n
|
|
52353
|
-
}),
|
|
52353
|
+
}), F4 = Dt({
|
|
52354
52354
|
prop: "minHeight",
|
|
52355
52355
|
transform: _n
|
|
52356
52356
|
});
|
|
@@ -52364,10 +52364,10 @@ Dt({
|
|
|
52364
52364
|
cssProperty: "height",
|
|
52365
52365
|
transform: _n
|
|
52366
52366
|
});
|
|
52367
|
-
const
|
|
52367
|
+
const U4 = Dt({
|
|
52368
52368
|
prop: "boxSizing"
|
|
52369
52369
|
});
|
|
52370
|
-
Fc(
|
|
52370
|
+
Fc(M4, yf, O4, D4, L4, F4, U4);
|
|
52371
52371
|
const zc = {
|
|
52372
52372
|
// borders
|
|
52373
52373
|
border: {
|
|
@@ -52656,14 +52656,14 @@ const zc = {
|
|
|
52656
52656
|
themeKey: "typography"
|
|
52657
52657
|
}
|
|
52658
52658
|
};
|
|
52659
|
-
function
|
|
52659
|
+
function B4(...e) {
|
|
52660
52660
|
const t = e.reduce((i, r) => i.concat(Object.keys(r)), []), n = new Set(t);
|
|
52661
52661
|
return e.every((i) => n.size === Object.keys(i).length);
|
|
52662
52662
|
}
|
|
52663
|
-
function
|
|
52663
|
+
function V4(e, t) {
|
|
52664
52664
|
return typeof e == "function" ? e(t) : e;
|
|
52665
52665
|
}
|
|
52666
|
-
function $
|
|
52666
|
+
function $4() {
|
|
52667
52667
|
function e(n, i, r, s) {
|
|
52668
52668
|
const o = {
|
|
52669
52669
|
[n]: i,
|
|
@@ -52710,10 +52710,10 @@ function $V() {
|
|
|
52710
52710
|
return c;
|
|
52711
52711
|
if (!l)
|
|
52712
52712
|
return null;
|
|
52713
|
-
const u =
|
|
52713
|
+
const u = t4(r.breakpoints), d = Object.keys(u);
|
|
52714
52714
|
let h = u;
|
|
52715
52715
|
return Object.keys(l).forEach((f) => {
|
|
52716
|
-
const m =
|
|
52716
|
+
const m = V4(l[f], r);
|
|
52717
52717
|
if (m != null)
|
|
52718
52718
|
if (typeof m == "object")
|
|
52719
52719
|
if (o[f])
|
|
@@ -52724,7 +52724,7 @@ function $V() {
|
|
|
52724
52724
|
}, m, (v) => ({
|
|
52725
52725
|
[f]: v
|
|
52726
52726
|
}));
|
|
52727
|
-
|
|
52727
|
+
B4(p, m) ? h[f] = t({
|
|
52728
52728
|
sx: m,
|
|
52729
52729
|
theme: r,
|
|
52730
52730
|
nested: !0
|
|
@@ -52740,9 +52740,9 @@ function $V() {
|
|
|
52740
52740
|
}
|
|
52741
52741
|
return t;
|
|
52742
52742
|
}
|
|
52743
|
-
const ks = $
|
|
52743
|
+
const ks = $4();
|
|
52744
52744
|
ks.filterProps = ["sx"];
|
|
52745
|
-
function
|
|
52745
|
+
function z4(e) {
|
|
52746
52746
|
for (var t = 0, n, i = 0, r = e.length; r >= 4; ++i, r -= 4)
|
|
52747
52747
|
n = e.charCodeAt(i) & 255 | (e.charCodeAt(++i) & 255) << 8 | (e.charCodeAt(++i) & 255) << 16 | (e.charCodeAt(++i) & 255) << 24, n = /* Math.imul(k, m): */
|
|
52748
52748
|
(n & 65535) * 1540483477 + ((n >>> 16) * 59797 << 16), n ^= /* k >>> r: */
|
|
@@ -52761,7 +52761,7 @@ function zV(e) {
|
|
|
52761
52761
|
return t ^= t >>> 13, t = /* Math.imul(h, m): */
|
|
52762
52762
|
(t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16), ((t ^ t >>> 15) >>> 0).toString(36);
|
|
52763
52763
|
}
|
|
52764
|
-
var
|
|
52764
|
+
var j4 = {
|
|
52765
52765
|
animationIterationCount: 1,
|
|
52766
52766
|
aspectRatio: 1,
|
|
52767
52767
|
borderImageOutset: 1,
|
|
@@ -52811,24 +52811,24 @@ var jV = {
|
|
|
52811
52811
|
strokeOpacity: 1,
|
|
52812
52812
|
strokeWidth: 1
|
|
52813
52813
|
};
|
|
52814
|
-
function
|
|
52814
|
+
function H4(e) {
|
|
52815
52815
|
var t = /* @__PURE__ */ Object.create(null);
|
|
52816
52816
|
return function(n) {
|
|
52817
52817
|
return t[n] === void 0 && (t[n] = e(n)), t[n];
|
|
52818
52818
|
};
|
|
52819
52819
|
}
|
|
52820
|
-
var
|
|
52820
|
+
var W4 = /[A-Z]|^ms/g, G4 = /_EMO_([^_]+?)_([^]*?)_EMO_/g, QS = function(t) {
|
|
52821
52821
|
return t.charCodeAt(1) === 45;
|
|
52822
52822
|
}, Ub = function(t) {
|
|
52823
52823
|
return t != null && typeof t != "boolean";
|
|
52824
|
-
}, ou = /* @__PURE__ */
|
|
52825
|
-
return QS(e) ? e : e.replace(
|
|
52824
|
+
}, ou = /* @__PURE__ */ H4(function(e) {
|
|
52825
|
+
return QS(e) ? e : e.replace(W4, "-$&").toLowerCase();
|
|
52826
52826
|
}), Bb = function(t, n) {
|
|
52827
52827
|
switch (t) {
|
|
52828
52828
|
case "animation":
|
|
52829
52829
|
case "animationName":
|
|
52830
52830
|
if (typeof n == "string")
|
|
52831
|
-
return n.replace(
|
|
52831
|
+
return n.replace(G4, function(i, r, s) {
|
|
52832
52832
|
return Gi = {
|
|
52833
52833
|
name: r,
|
|
52834
52834
|
styles: s,
|
|
@@ -52836,7 +52836,7 @@ var WV = /[A-Z]|^ms/g, GV = /_EMO_([^_]+?)_([^]*?)_EMO_/g, QS = function(t) {
|
|
|
52836
52836
|
}, r;
|
|
52837
52837
|
});
|
|
52838
52838
|
}
|
|
52839
|
-
return
|
|
52839
|
+
return j4[t] !== 1 && !QS(t) && typeof n == "number" && n !== 0 ? n + "px" : n;
|
|
52840
52840
|
};
|
|
52841
52841
|
function dc(e, t, n) {
|
|
52842
52842
|
if (n == null)
|
|
@@ -52868,13 +52868,13 @@ function dc(e, t, n) {
|
|
|
52868
52868
|
var a = s.styles + ";";
|
|
52869
52869
|
return a;
|
|
52870
52870
|
}
|
|
52871
|
-
return
|
|
52871
|
+
return q4(e, t, n);
|
|
52872
52872
|
}
|
|
52873
52873
|
}
|
|
52874
52874
|
var c = n;
|
|
52875
52875
|
return c;
|
|
52876
52876
|
}
|
|
52877
|
-
function
|
|
52877
|
+
function q4(e, t, n) {
|
|
52878
52878
|
var i = "";
|
|
52879
52879
|
if (Array.isArray(n))
|
|
52880
52880
|
for (var r = 0; r < n.length; r++)
|
|
@@ -52904,7 +52904,7 @@ function qV(e, t, n) {
|
|
|
52904
52904
|
return i;
|
|
52905
52905
|
}
|
|
52906
52906
|
var Vb = /label:\s*([^\s;{]+)\s*(;|$)/g, Gi;
|
|
52907
|
-
function
|
|
52907
|
+
function K4(e, t, n) {
|
|
52908
52908
|
if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0)
|
|
52909
52909
|
return e[0];
|
|
52910
52910
|
var i = !0, r = "";
|
|
@@ -52924,7 +52924,7 @@ function KV(e, t, n) {
|
|
|
52924
52924
|
Vb.lastIndex = 0;
|
|
52925
52925
|
for (var l = "", u; (u = Vb.exec(r)) !== null; )
|
|
52926
52926
|
l += "-" + u[1];
|
|
52927
|
-
var d =
|
|
52927
|
+
var d = z4(r) + l;
|
|
52928
52928
|
return {
|
|
52929
52929
|
name: d,
|
|
52930
52930
|
styles: r,
|
|
@@ -52938,7 +52938,7 @@ function KV(e, t, n) {
|
|
|
52938
52938
|
* This source code is licensed under the MIT license found in the
|
|
52939
52939
|
* LICENSE file in the root directory of this source tree.
|
|
52940
52940
|
*/
|
|
52941
|
-
function
|
|
52941
|
+
function Y4(e, t) {
|
|
52942
52942
|
const n = fT(e, t);
|
|
52943
52943
|
return process.env.NODE_ENV !== "production" ? (...i) => {
|
|
52944
52944
|
const r = typeof e == "string" ? `"${e}"` : "component";
|
|
@@ -52946,14 +52946,14 @@ function YV(e, t) {
|
|
|
52946
52946
|
`)) : i.some((s) => s === void 0) && console.error(`MUI: the styled(${r})(...args) API requires all its args to be defined.`), n(...i);
|
|
52947
52947
|
} : n;
|
|
52948
52948
|
}
|
|
52949
|
-
function
|
|
52949
|
+
function Z4(e, t) {
|
|
52950
52950
|
Array.isArray(e.__emotion_styles) && (e.__emotion_styles = t(e.__emotion_styles));
|
|
52951
52951
|
}
|
|
52952
52952
|
const $b = [];
|
|
52953
52953
|
function kr(e) {
|
|
52954
|
-
return $b[0] = e,
|
|
52954
|
+
return $b[0] = e, K4($b);
|
|
52955
52955
|
}
|
|
52956
|
-
const
|
|
52956
|
+
const X4 = (e) => {
|
|
52957
52957
|
const t = Object.keys(e).map((n) => ({
|
|
52958
52958
|
key: n,
|
|
52959
52959
|
val: e[n]
|
|
@@ -52963,7 +52963,7 @@ const XV = (e) => {
|
|
|
52963
52963
|
[i.key]: i.val
|
|
52964
52964
|
}), {});
|
|
52965
52965
|
};
|
|
52966
|
-
function
|
|
52966
|
+
function J4(e) {
|
|
52967
52967
|
const {
|
|
52968
52968
|
// The breakpoint **start** at this value.
|
|
52969
52969
|
// For instance with the first breakpoint xs: [xs, sm).
|
|
@@ -52982,7 +52982,7 @@ function JV(e) {
|
|
|
52982
52982
|
unit: n = "px",
|
|
52983
52983
|
step: i = 5,
|
|
52984
52984
|
...r
|
|
52985
|
-
} = e, s =
|
|
52985
|
+
} = e, s = X4(t), o = Object.keys(s);
|
|
52986
52986
|
function a(h) {
|
|
52987
52987
|
return `@media (min-width:${typeof t[h] == "number" ? t[h] : h}${n})`;
|
|
52988
52988
|
}
|
|
@@ -53012,7 +53012,7 @@ function JV(e) {
|
|
|
53012
53012
|
...r
|
|
53013
53013
|
};
|
|
53014
53014
|
}
|
|
53015
|
-
const
|
|
53015
|
+
const Q4 = {
|
|
53016
53016
|
borderRadius: 4
|
|
53017
53017
|
};
|
|
53018
53018
|
function ex(e = 8, t = bf({
|
|
@@ -53026,7 +53026,7 @@ function ex(e = 8, t = bf({
|
|
|
53026
53026
|
}).join(" "));
|
|
53027
53027
|
return n.mui = !0, n;
|
|
53028
53028
|
}
|
|
53029
|
-
function
|
|
53029
|
+
function eV(e, t) {
|
|
53030
53030
|
var i;
|
|
53031
53031
|
const n = this;
|
|
53032
53032
|
if (n.vars) {
|
|
@@ -53046,7 +53046,7 @@ function tx(e = {}, ...t) {
|
|
|
53046
53046
|
spacing: r,
|
|
53047
53047
|
shape: s = {},
|
|
53048
53048
|
...o
|
|
53049
|
-
} = e, a =
|
|
53049
|
+
} = e, a = J4(n), c = ex(r);
|
|
53050
53050
|
let l = Pn({
|
|
53051
53051
|
breakpoints: a,
|
|
53052
53052
|
direction: "ltr",
|
|
@@ -53058,11 +53058,11 @@ function tx(e = {}, ...t) {
|
|
|
53058
53058
|
},
|
|
53059
53059
|
spacing: c,
|
|
53060
53060
|
shape: {
|
|
53061
|
-
...
|
|
53061
|
+
...Q4,
|
|
53062
53062
|
...s
|
|
53063
53063
|
}
|
|
53064
53064
|
}, o);
|
|
53065
|
-
return l = Q5(l), l.applyStyles =
|
|
53065
|
+
return l = Q5(l), l.applyStyles = eV, l = t.reduce((u, d) => Pn(u, d), l), l.unstable_sxConfig = {
|
|
53066
53066
|
...zc,
|
|
53067
53067
|
...o == null ? void 0 : o.unstable_sxConfig
|
|
53068
53068
|
}, l.unstable_sx = function(d) {
|
|
@@ -53072,7 +53072,7 @@ function tx(e = {}, ...t) {
|
|
|
53072
53072
|
});
|
|
53073
53073
|
}, l;
|
|
53074
53074
|
}
|
|
53075
|
-
const
|
|
53075
|
+
const tV = {
|
|
53076
53076
|
active: "active",
|
|
53077
53077
|
checked: "checked",
|
|
53078
53078
|
completed: "completed",
|
|
@@ -53087,10 +53087,10 @@ const t4 = {
|
|
|
53087
53087
|
selected: "selected"
|
|
53088
53088
|
};
|
|
53089
53089
|
function vf(e, t, n = "Mui") {
|
|
53090
|
-
const i =
|
|
53090
|
+
const i = tV[t];
|
|
53091
53091
|
return i ? `${n}-${i}` : `${U5.generate(e)}-${t}`;
|
|
53092
53092
|
}
|
|
53093
|
-
function
|
|
53093
|
+
function nV(e, t, n = "Mui") {
|
|
53094
53094
|
const i = {};
|
|
53095
53095
|
return t.forEach((r) => {
|
|
53096
53096
|
i[r] = vf(e, r, n);
|
|
@@ -53103,7 +53103,7 @@ function zb(e, t, n) {
|
|
|
53103
53103
|
const i = nx(t);
|
|
53104
53104
|
return e.displayName || (i !== "" ? `${n}(${i})` : n);
|
|
53105
53105
|
}
|
|
53106
|
-
function
|
|
53106
|
+
function iV(e) {
|
|
53107
53107
|
if (e != null) {
|
|
53108
53108
|
if (typeof e == "string")
|
|
53109
53109
|
return e;
|
|
@@ -53133,18 +53133,18 @@ function ix(e) {
|
|
|
53133
53133
|
typeof r.style != "function" && (r.style = kr(r.style));
|
|
53134
53134
|
}), i;
|
|
53135
53135
|
}
|
|
53136
|
-
const
|
|
53136
|
+
const rV = tx();
|
|
53137
53137
|
function au(e) {
|
|
53138
53138
|
return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
|
|
53139
53139
|
}
|
|
53140
53140
|
function mr(e, t) {
|
|
53141
53141
|
return t && e && typeof e == "object" && e.styles && !e.styles.startsWith("@layer") && (e.styles = `@layer ${t}{${String(e.styles)}}`), e;
|
|
53142
53142
|
}
|
|
53143
|
-
function
|
|
53143
|
+
function sV(e) {
|
|
53144
53144
|
return e ? (t, n) => n[e] : null;
|
|
53145
53145
|
}
|
|
53146
|
-
function
|
|
53147
|
-
e.theme =
|
|
53146
|
+
function oV(e, t, n) {
|
|
53147
|
+
e.theme = uV(e.theme) ? n : e.theme[t] || e.theme;
|
|
53148
53148
|
}
|
|
53149
53149
|
function Ma(e, t, n) {
|
|
53150
53150
|
const i = typeof t == "function" ? t(e) : t;
|
|
@@ -53189,18 +53189,18 @@ function rx(e, t, n = [], i = void 0) {
|
|
|
53189
53189
|
}
|
|
53190
53190
|
return n;
|
|
53191
53191
|
}
|
|
53192
|
-
function
|
|
53192
|
+
function aV(e = {}) {
|
|
53193
53193
|
const {
|
|
53194
53194
|
themeId: t,
|
|
53195
|
-
defaultTheme: n =
|
|
53195
|
+
defaultTheme: n = rV,
|
|
53196
53196
|
rootShouldForwardProp: i = au,
|
|
53197
53197
|
slotShouldForwardProp: r = au
|
|
53198
53198
|
} = e;
|
|
53199
53199
|
function s(a) {
|
|
53200
|
-
|
|
53200
|
+
oV(a, t, n);
|
|
53201
53201
|
}
|
|
53202
53202
|
return (a, c = {}) => {
|
|
53203
|
-
|
|
53203
|
+
Z4(a, (T) => T.filter((P) => P !== ks));
|
|
53204
53204
|
const {
|
|
53205
53205
|
name: l,
|
|
53206
53206
|
slot: u,
|
|
@@ -53208,7 +53208,7 @@ function a4(e = {}) {
|
|
|
53208
53208
|
skipSx: h,
|
|
53209
53209
|
// TODO v6: remove `lowercaseFirstLetter()` in the next major release
|
|
53210
53210
|
// For more details: https://github.com/mui/material-ui/pull/37908
|
|
53211
|
-
overridesResolver: f =
|
|
53211
|
+
overridesResolver: f = sV(sx(u)),
|
|
53212
53212
|
...m
|
|
53213
53213
|
} = c, p = l && l.startsWith("Mui") || u ? "components" : "custom", v = d !== void 0 ? d : (
|
|
53214
53214
|
// TODO v6: remove `Root` in the next major release
|
|
@@ -53216,10 +53216,10 @@ function a4(e = {}) {
|
|
|
53216
53216
|
u && u !== "Root" && u !== "root" || !1
|
|
53217
53217
|
), g = h || !1;
|
|
53218
53218
|
let x = au;
|
|
53219
|
-
u === "Root" || u === "root" ? x = i : u ? x = r :
|
|
53220
|
-
const S =
|
|
53219
|
+
u === "Root" || u === "root" ? x = i : u ? x = r : dV(a) && (x = void 0);
|
|
53220
|
+
const S = Y4(a, {
|
|
53221
53221
|
shouldForwardProp: x,
|
|
53222
|
-
label:
|
|
53222
|
+
label: lV(l, u),
|
|
53223
53223
|
...m
|
|
53224
53224
|
}), w = (T) => {
|
|
53225
53225
|
if (T.__emotion_real === T)
|
|
@@ -53256,24 +53256,24 @@ function a4(e = {}) {
|
|
|
53256
53256
|
K = [...L, ...I, ...B], K.raw = [...L, ...I.raw, ...B], P.unshift(K);
|
|
53257
53257
|
}
|
|
53258
53258
|
const y = [...P, ...A, ...N], R = S(...y);
|
|
53259
|
-
return a.muiName && (R.muiName = a.muiName), process.env.NODE_ENV !== "production" && (R.displayName =
|
|
53259
|
+
return a.muiName && (R.muiName = a.muiName), process.env.NODE_ENV !== "production" && (R.displayName = cV(l, u, a)), R;
|
|
53260
53260
|
};
|
|
53261
53261
|
return S.withConfig && (k.withConfig = S.withConfig), k;
|
|
53262
53262
|
};
|
|
53263
53263
|
}
|
|
53264
|
-
function
|
|
53265
|
-
return e ? `${e}${Er(t || "")}` : `Styled(${
|
|
53264
|
+
function cV(e, t, n) {
|
|
53265
|
+
return e ? `${e}${Er(t || "")}` : `Styled(${iV(n)})`;
|
|
53266
53266
|
}
|
|
53267
|
-
function
|
|
53267
|
+
function lV(e, t) {
|
|
53268
53268
|
let n;
|
|
53269
53269
|
return process.env.NODE_ENV !== "production" && e && (n = `${e}-${sx(t || "Root")}`), n;
|
|
53270
53270
|
}
|
|
53271
|
-
function
|
|
53271
|
+
function uV(e) {
|
|
53272
53272
|
for (const t in e)
|
|
53273
53273
|
return !1;
|
|
53274
53274
|
return !0;
|
|
53275
53275
|
}
|
|
53276
|
-
function
|
|
53276
|
+
function dV(e) {
|
|
53277
53277
|
return typeof e == "string" && // 96 is one less than the char code
|
|
53278
53278
|
// for "a" so this is checking that
|
|
53279
53279
|
// it's a lowercase character
|
|
@@ -53317,13 +53317,13 @@ function Fd(e, t, n = !1) {
|
|
|
53317
53317
|
}
|
|
53318
53318
|
return i;
|
|
53319
53319
|
}
|
|
53320
|
-
function
|
|
53320
|
+
function hV(e, t = Number.MIN_SAFE_INTEGER, n = Number.MAX_SAFE_INTEGER) {
|
|
53321
53321
|
return Math.max(t, Math.min(e, n));
|
|
53322
53322
|
}
|
|
53323
53323
|
function kf(e, t = 0, n = 1) {
|
|
53324
|
-
return process.env.NODE_ENV !== "production" && (e < t || e > n) && console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),
|
|
53324
|
+
return process.env.NODE_ENV !== "production" && (e < t || e > n) && console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`), hV(e, t, n);
|
|
53325
53325
|
}
|
|
53326
|
-
function
|
|
53326
|
+
function fV(e) {
|
|
53327
53327
|
e = e.slice(1);
|
|
53328
53328
|
const t = new RegExp(`.{1,${e.length >= 6 ? 2 : 1}}`, "g");
|
|
53329
53329
|
let n = e.match(t);
|
|
@@ -53333,7 +53333,7 @@ function er(e) {
|
|
|
53333
53333
|
if (e.type)
|
|
53334
53334
|
return e;
|
|
53335
53335
|
if (e.charAt(0) === "#")
|
|
53336
|
-
return er(
|
|
53336
|
+
return er(fV(e));
|
|
53337
53337
|
const t = e.indexOf("("), n = e.substring(0, t);
|
|
53338
53338
|
if (!["rgb", "rgba", "hsl", "hsla", "color"].includes(n))
|
|
53339
53339
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: Unsupported \`${e}\` color.
|
|
@@ -53351,12 +53351,12 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
53351
53351
|
colorSpace: r
|
|
53352
53352
|
};
|
|
53353
53353
|
}
|
|
53354
|
-
const
|
|
53354
|
+
const pV = (e) => {
|
|
53355
53355
|
const t = er(e);
|
|
53356
53356
|
return t.values.slice(0, 3).map((n, i) => t.type.includes("hsl") && i !== 0 ? `${n}%` : n).join(" ");
|
|
53357
53357
|
}, Zs = (e, t) => {
|
|
53358
53358
|
try {
|
|
53359
|
-
return
|
|
53359
|
+
return pV(e);
|
|
53360
53360
|
} catch {
|
|
53361
53361
|
return t && process.env.NODE_ENV !== "production" && console.warn(t), e;
|
|
53362
53362
|
}
|
|
@@ -53392,12 +53392,12 @@ function jb(e, t) {
|
|
|
53392
53392
|
const n = Ud(e), i = Ud(t);
|
|
53393
53393
|
return (Math.max(n, i) + 0.05) / (Math.min(n, i) + 0.05);
|
|
53394
53394
|
}
|
|
53395
|
-
function
|
|
53395
|
+
function mV(e, t) {
|
|
53396
53396
|
return e = er(e), t = kf(t), (e.type === "rgb" || e.type === "hsl") && (e.type += "a"), e.type === "color" ? e.values[3] = `/${t}` : e.values[3] = t, jc(e);
|
|
53397
53397
|
}
|
|
53398
53398
|
function la(e, t, n) {
|
|
53399
53399
|
try {
|
|
53400
|
-
return
|
|
53400
|
+
return mV(e, t);
|
|
53401
53401
|
} catch {
|
|
53402
53402
|
return e;
|
|
53403
53403
|
}
|
|
@@ -53435,19 +53435,19 @@ function ht(e, t, n) {
|
|
|
53435
53435
|
return e;
|
|
53436
53436
|
}
|
|
53437
53437
|
}
|
|
53438
|
-
function
|
|
53438
|
+
function gV(e, t = 0.15) {
|
|
53439
53439
|
return Ud(e) > 0.5 ? wf(e, t) : Sf(e, t);
|
|
53440
53440
|
}
|
|
53441
53441
|
function ua(e, t, n) {
|
|
53442
53442
|
try {
|
|
53443
|
-
return
|
|
53443
|
+
return gV(e, t);
|
|
53444
53444
|
} catch {
|
|
53445
53445
|
return e;
|
|
53446
53446
|
}
|
|
53447
53447
|
}
|
|
53448
|
-
const
|
|
53448
|
+
const bV = /* @__PURE__ */ O.createContext(void 0);
|
|
53449
53449
|
process.env.NODE_ENV !== "production" && (Je.node, Je.object);
|
|
53450
|
-
function
|
|
53450
|
+
function yV(e) {
|
|
53451
53451
|
const {
|
|
53452
53452
|
theme: t,
|
|
53453
53453
|
name: n,
|
|
@@ -53458,12 +53458,12 @@ function y4(e) {
|
|
|
53458
53458
|
const r = t.components[n];
|
|
53459
53459
|
return r.defaultProps ? Fd(r.defaultProps, i, t.components.mergeClassNameAndStyle) : !r.styleOverrides && !r.variants ? Fd(r, i, t.components.mergeClassNameAndStyle) : i;
|
|
53460
53460
|
}
|
|
53461
|
-
function
|
|
53461
|
+
function vV({
|
|
53462
53462
|
props: e,
|
|
53463
53463
|
name: t
|
|
53464
53464
|
}) {
|
|
53465
|
-
const n =
|
|
53466
|
-
return
|
|
53465
|
+
const n = O.useContext(bV);
|
|
53466
|
+
return yV({
|
|
53467
53467
|
props: e,
|
|
53468
53468
|
name: t,
|
|
53469
53469
|
theme: {
|
|
@@ -53474,14 +53474,14 @@ function v4({
|
|
|
53474
53474
|
const Hb = {
|
|
53475
53475
|
theme: void 0
|
|
53476
53476
|
};
|
|
53477
|
-
function
|
|
53477
|
+
function kV(e) {
|
|
53478
53478
|
let t, n;
|
|
53479
53479
|
return function(r) {
|
|
53480
53480
|
let s = t;
|
|
53481
53481
|
return (s === void 0 || r.theme !== n) && (Hb.theme = r.theme, s = ix(e(Hb)), t = s, n = r.theme), s;
|
|
53482
53482
|
};
|
|
53483
53483
|
}
|
|
53484
|
-
function
|
|
53484
|
+
function wV(e = "") {
|
|
53485
53485
|
function t(...i) {
|
|
53486
53486
|
if (!i.length)
|
|
53487
53487
|
return "";
|
|
@@ -53495,24 +53495,24 @@ const Wb = (e, t, n, i = []) => {
|
|
|
53495
53495
|
t.forEach((s, o) => {
|
|
53496
53496
|
o === t.length - 1 ? Array.isArray(r) ? r[Number(s)] = n : r && typeof r == "object" && (r[s] = n) : r && typeof r == "object" && (r[s] || (r[s] = i.includes(s) ? [] : {}), r = r[s]);
|
|
53497
53497
|
});
|
|
53498
|
-
},
|
|
53498
|
+
}, SV = (e, t, n) => {
|
|
53499
53499
|
function i(r, s = [], o = []) {
|
|
53500
53500
|
Object.entries(r).forEach(([a, c]) => {
|
|
53501
53501
|
(!n || n && !n([...s, a])) && c != null && (typeof c == "object" && Object.keys(c).length > 0 ? i(c, [...s, a], Array.isArray(c) ? [...o, a] : o) : t([...s, a], c, o));
|
|
53502
53502
|
});
|
|
53503
53503
|
}
|
|
53504
53504
|
i(e);
|
|
53505
|
-
},
|
|
53505
|
+
}, xV = (e, t) => typeof t == "number" ? ["lineHeight", "fontWeight", "opacity", "zIndex"].some((i) => e.includes(i)) || e[e.length - 1].toLowerCase().includes("opacity") ? t : `${t}px` : t;
|
|
53506
53506
|
function cu(e, t) {
|
|
53507
53507
|
const {
|
|
53508
53508
|
prefix: n,
|
|
53509
53509
|
shouldSkipGeneratingVar: i
|
|
53510
53510
|
} = t || {}, r = {}, s = {}, o = {};
|
|
53511
|
-
return
|
|
53511
|
+
return SV(
|
|
53512
53512
|
e,
|
|
53513
53513
|
(a, c, l) => {
|
|
53514
53514
|
if ((typeof c == "string" || typeof c == "number") && (!i || !i(a, c))) {
|
|
53515
|
-
const u = `--${n ? `${n}-` : ""}${a.join("-")}`, d =
|
|
53515
|
+
const u = `--${n ? `${n}-` : ""}${a.join("-")}`, d = xV(a, c);
|
|
53516
53516
|
Object.assign(r, {
|
|
53517
53517
|
[u]: d
|
|
53518
53518
|
}), Wb(s, a, `var(${u})`, l), Wb(o, a, `var(${u}, ${d})`, l);
|
|
@@ -53526,7 +53526,7 @@ function cu(e, t) {
|
|
|
53526
53526
|
varsWithDefaults: o
|
|
53527
53527
|
};
|
|
53528
53528
|
}
|
|
53529
|
-
function
|
|
53529
|
+
function TV(e, t = {}) {
|
|
53530
53530
|
const {
|
|
53531
53531
|
getSelector: n = v,
|
|
53532
53532
|
disableCssColorScheme: i,
|
|
@@ -53641,7 +53641,7 @@ function T4(e, t = {}) {
|
|
|
53641
53641
|
}
|
|
53642
53642
|
};
|
|
53643
53643
|
}
|
|
53644
|
-
function
|
|
53644
|
+
function CV(e) {
|
|
53645
53645
|
return function(n) {
|
|
53646
53646
|
return e === "media" ? (process.env.NODE_ENV !== "production" && n !== "light" && n !== "dark" && console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${n}'.`), `@media (prefers-color-scheme: ${n})`) : e ? e.startsWith("data-") && !e.includes("%s") ? `[${e}="${n}"] &` : e === "class" ? `.${n} &` : e === "data" ? `[data-${n}] &` : `${e.replace("%s", n)} &` : "&";
|
|
53647
53647
|
};
|
|
@@ -53649,7 +53649,7 @@ function C4(e) {
|
|
|
53649
53649
|
const wo = {
|
|
53650
53650
|
black: "#000",
|
|
53651
53651
|
white: "#fff"
|
|
53652
|
-
},
|
|
53652
|
+
}, EV = {
|
|
53653
53653
|
50: "#fafafa",
|
|
53654
53654
|
100: "#f5f5f5",
|
|
53655
53655
|
200: "#eeeeee",
|
|
@@ -53743,7 +53743,7 @@ function ax() {
|
|
|
53743
53743
|
}
|
|
53744
53744
|
};
|
|
53745
53745
|
}
|
|
53746
|
-
const
|
|
53746
|
+
const _V = ax();
|
|
53747
53747
|
function cx() {
|
|
53748
53748
|
return {
|
|
53749
53749
|
text: {
|
|
@@ -53777,7 +53777,7 @@ function qb(e, t, n, i) {
|
|
|
53777
53777
|
const r = i.light || i, s = i.dark || i * 1.5;
|
|
53778
53778
|
e[t] || (e.hasOwnProperty(n) ? e[t] = e[n] : t === "light" ? e.light = Sf(e.main, r) : t === "dark" && (e.dark = wf(e.main, s)));
|
|
53779
53779
|
}
|
|
53780
|
-
function
|
|
53780
|
+
function RV(e = "light") {
|
|
53781
53781
|
return e === "dark" ? {
|
|
53782
53782
|
main: $r[200],
|
|
53783
53783
|
light: $r[50],
|
|
@@ -53788,7 +53788,7 @@ function R4(e = "light") {
|
|
|
53788
53788
|
dark: $r[800]
|
|
53789
53789
|
};
|
|
53790
53790
|
}
|
|
53791
|
-
function
|
|
53791
|
+
function AV(e = "light") {
|
|
53792
53792
|
return e === "dark" ? {
|
|
53793
53793
|
main: Br[200],
|
|
53794
53794
|
light: Br[50],
|
|
@@ -53799,7 +53799,7 @@ function A4(e = "light") {
|
|
|
53799
53799
|
dark: Br[700]
|
|
53800
53800
|
};
|
|
53801
53801
|
}
|
|
53802
|
-
function
|
|
53802
|
+
function PV(e = "light") {
|
|
53803
53803
|
return e === "dark" ? {
|
|
53804
53804
|
main: Vr[500],
|
|
53805
53805
|
light: Vr[300],
|
|
@@ -53810,7 +53810,7 @@ function P4(e = "light") {
|
|
|
53810
53810
|
dark: Vr[800]
|
|
53811
53811
|
};
|
|
53812
53812
|
}
|
|
53813
|
-
function
|
|
53813
|
+
function NV(e = "light") {
|
|
53814
53814
|
return e === "dark" ? {
|
|
53815
53815
|
main: zr[400],
|
|
53816
53816
|
light: zr[300],
|
|
@@ -53821,7 +53821,7 @@ function N4(e = "light") {
|
|
|
53821
53821
|
dark: zr[900]
|
|
53822
53822
|
};
|
|
53823
53823
|
}
|
|
53824
|
-
function
|
|
53824
|
+
function IV(e = "light") {
|
|
53825
53825
|
return e === "dark" ? {
|
|
53826
53826
|
main: jr[400],
|
|
53827
53827
|
light: jr[300],
|
|
@@ -53832,7 +53832,7 @@ function I4(e = "light") {
|
|
|
53832
53832
|
dark: jr[900]
|
|
53833
53833
|
};
|
|
53834
53834
|
}
|
|
53835
|
-
function
|
|
53835
|
+
function MV(e = "light") {
|
|
53836
53836
|
return e === "dark" ? {
|
|
53837
53837
|
main: Gs[400],
|
|
53838
53838
|
light: Gs[300],
|
|
@@ -53850,9 +53850,9 @@ function xf(e) {
|
|
|
53850
53850
|
contrastThreshold: n = 3,
|
|
53851
53851
|
tonalOffset: i = 0.2,
|
|
53852
53852
|
...r
|
|
53853
|
-
} = e, s = e.primary ||
|
|
53853
|
+
} = e, s = e.primary || RV(t), o = e.secondary || AV(t), a = e.error || PV(t), c = e.info || NV(t), l = e.success || IV(t), u = e.warning || MV(t);
|
|
53854
53854
|
function d(p) {
|
|
53855
|
-
const v = jb(p, Gb.text.primary) >= n ? Gb.text.primary :
|
|
53855
|
+
const v = jb(p, Gb.text.primary) >= n ? Gb.text.primary : _V.text.primary;
|
|
53856
53856
|
if (process.env.NODE_ENV !== "production") {
|
|
53857
53857
|
const g = jb(p, v);
|
|
53858
53858
|
g < 3 && console.error([`MUI: The contrast ratio of ${g}:1 for ${v} on ${p}`, "falls below the WCAG recommended absolute minimum contrast ratio of 3:1.", "https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
|
|
@@ -53932,7 +53932,7 @@ const theme2 = createTheme({ palette: {
|
|
|
53932
53932
|
name: "success"
|
|
53933
53933
|
}),
|
|
53934
53934
|
// The grey colors.
|
|
53935
|
-
grey:
|
|
53935
|
+
grey: EV,
|
|
53936
53936
|
// Used by `getContrastText()` to maximize the contrast between
|
|
53937
53937
|
// the background and the text.
|
|
53938
53938
|
contrastThreshold: n,
|
|
@@ -53948,14 +53948,14 @@ const theme2 = createTheme({ palette: {
|
|
|
53948
53948
|
...f
|
|
53949
53949
|
}, r);
|
|
53950
53950
|
}
|
|
53951
|
-
function
|
|
53951
|
+
function OV(e) {
|
|
53952
53952
|
const t = {};
|
|
53953
53953
|
return Object.entries(e).forEach((i) => {
|
|
53954
53954
|
const [r, s] = i;
|
|
53955
53955
|
typeof s == "object" && (t[r] = `${s.fontStyle ? `${s.fontStyle} ` : ""}${s.fontVariant ? `${s.fontVariant} ` : ""}${s.fontWeight ? `${s.fontWeight} ` : ""}${s.fontStretch ? `${s.fontStretch} ` : ""}${s.fontSize || ""}${s.lineHeight ? `/${s.lineHeight} ` : ""}${s.fontFamily || ""}`);
|
|
53956
53956
|
}), t;
|
|
53957
53957
|
}
|
|
53958
|
-
function
|
|
53958
|
+
function DV(e, t) {
|
|
53959
53959
|
return {
|
|
53960
53960
|
toolbar: {
|
|
53961
53961
|
minHeight: 56,
|
|
@@ -53971,13 +53971,13 @@ function D4(e, t) {
|
|
|
53971
53971
|
...t
|
|
53972
53972
|
};
|
|
53973
53973
|
}
|
|
53974
|
-
function
|
|
53974
|
+
function LV(e) {
|
|
53975
53975
|
return Math.round(e * 1e5) / 1e5;
|
|
53976
53976
|
}
|
|
53977
53977
|
const Kb = {
|
|
53978
53978
|
textTransform: "uppercase"
|
|
53979
53979
|
}, Yb = '"Roboto", "Helvetica", "Arial", sans-serif';
|
|
53980
|
-
function
|
|
53980
|
+
function FV(e, t) {
|
|
53981
53981
|
const {
|
|
53982
53982
|
fontFamily: n = Yb,
|
|
53983
53983
|
// The default font size of the Material Specification.
|
|
@@ -54005,7 +54005,7 @@ function F4(e, t) {
|
|
|
54005
54005
|
// The letter spacing was designed for the Roboto font-family. Using the same letter-spacing
|
|
54006
54006
|
// across font-families can cause issues with the kerning.
|
|
54007
54007
|
...n === Yb ? {
|
|
54008
|
-
letterSpacing: `${
|
|
54008
|
+
letterSpacing: `${LV(S / g)}em`
|
|
54009
54009
|
} : {},
|
|
54010
54010
|
...w,
|
|
54011
54011
|
...l
|
|
@@ -54047,11 +54047,11 @@ function F4(e, t) {
|
|
|
54047
54047
|
// No need to clone deep
|
|
54048
54048
|
});
|
|
54049
54049
|
}
|
|
54050
|
-
const
|
|
54050
|
+
const UV = 0.2, BV = 0.14, VV = 0.12;
|
|
54051
54051
|
function wt(...e) {
|
|
54052
|
-
return [`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${
|
|
54052
|
+
return [`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${UV})`, `${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${BV})`, `${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${VV})`].join(",");
|
|
54053
54053
|
}
|
|
54054
|
-
const $
|
|
54054
|
+
const $V = ["none", wt(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), wt(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), wt(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), wt(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), wt(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), wt(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), wt(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), wt(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), wt(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), wt(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), wt(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), wt(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), wt(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), wt(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), wt(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), wt(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), wt(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), wt(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), wt(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), wt(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), wt(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), wt(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), wt(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), wt(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)], zV = {
|
|
54055
54055
|
// This is the most common easing curve.
|
|
54056
54056
|
easeInOut: "cubic-bezier(0.4, 0, 0.2, 1)",
|
|
54057
54057
|
// Objects enter the screen at full velocity from off-screen and
|
|
@@ -54061,7 +54061,7 @@ const $4 = ["none", wt(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), wt(0, 3, 1, -2, 0,
|
|
|
54061
54061
|
easeIn: "cubic-bezier(0.4, 0, 1, 1)",
|
|
54062
54062
|
// The sharp curve is used by objects that may return to the screen at any time.
|
|
54063
54063
|
sharp: "cubic-bezier(0.4, 0, 0.6, 1)"
|
|
54064
|
-
},
|
|
54064
|
+
}, jV = {
|
|
54065
54065
|
shortest: 150,
|
|
54066
54066
|
shorter: 200,
|
|
54067
54067
|
short: 250,
|
|
@@ -54077,22 +54077,22 @@ const $4 = ["none", wt(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), wt(0, 3, 1, -2, 0,
|
|
|
54077
54077
|
function Zb(e) {
|
|
54078
54078
|
return `${Math.round(e)}ms`;
|
|
54079
54079
|
}
|
|
54080
|
-
function
|
|
54080
|
+
function HV(e) {
|
|
54081
54081
|
if (!e)
|
|
54082
54082
|
return 0;
|
|
54083
54083
|
const t = e / 36;
|
|
54084
54084
|
return Math.min(Math.round((4 + 15 * t ** 0.25 + t / 5) * 10), 3e3);
|
|
54085
54085
|
}
|
|
54086
|
-
function
|
|
54086
|
+
function WV(e) {
|
|
54087
54087
|
const t = {
|
|
54088
|
-
...
|
|
54088
|
+
...zV,
|
|
54089
54089
|
...e.easing
|
|
54090
54090
|
}, n = {
|
|
54091
|
-
...
|
|
54091
|
+
...jV,
|
|
54092
54092
|
...e.duration
|
|
54093
54093
|
};
|
|
54094
54094
|
return {
|
|
54095
|
-
getAutoHeightDuration:
|
|
54095
|
+
getAutoHeightDuration: HV,
|
|
54096
54096
|
create: (r = ["all"], s = {}) => {
|
|
54097
54097
|
const {
|
|
54098
54098
|
duration: o = n.standard,
|
|
@@ -54112,7 +54112,7 @@ function W4(e) {
|
|
|
54112
54112
|
duration: n
|
|
54113
54113
|
};
|
|
54114
54114
|
}
|
|
54115
|
-
const
|
|
54115
|
+
const GV = {
|
|
54116
54116
|
mobileStepper: 1e3,
|
|
54117
54117
|
fab: 1050,
|
|
54118
54118
|
speedDial: 1050,
|
|
@@ -54122,7 +54122,7 @@ const G4 = {
|
|
|
54122
54122
|
snackbar: 1400,
|
|
54123
54123
|
tooltip: 1500
|
|
54124
54124
|
};
|
|
54125
|
-
function
|
|
54125
|
+
function qV(e) {
|
|
54126
54126
|
return xi(e) || typeof e > "u" || typeof e == "string" || typeof e == "boolean" || typeof e == "number" || Array.isArray(e);
|
|
54127
54127
|
}
|
|
54128
54128
|
function lx(e = {}) {
|
|
@@ -54133,7 +54133,7 @@ function lx(e = {}) {
|
|
|
54133
54133
|
const r = Object.entries(i);
|
|
54134
54134
|
for (let s = 0; s < r.length; s++) {
|
|
54135
54135
|
const [o, a] = r[s];
|
|
54136
|
-
!
|
|
54136
|
+
!qV(a) || o.startsWith("unstable_") ? delete i[o] : xi(a) && (i[o] = {
|
|
54137
54137
|
...a
|
|
54138
54138
|
}, n(i[o]));
|
|
54139
54139
|
}
|
|
@@ -54164,14 +54164,14 @@ function Bd(e = {}, ...t) {
|
|
|
54164
54164
|
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature." : Qi(20));
|
|
54165
54165
|
const u = xf(s), d = tx(e);
|
|
54166
54166
|
let h = Pn(d, {
|
|
54167
|
-
mixins:
|
|
54167
|
+
mixins: DV(d.breakpoints, i),
|
|
54168
54168
|
palette: u,
|
|
54169
54169
|
// Don't use [...shadows] until you've verified its transpiled code is not invoking the iterator protocol.
|
|
54170
|
-
shadows: $
|
|
54171
|
-
typography:
|
|
54172
|
-
transitions:
|
|
54170
|
+
shadows: $V.slice(),
|
|
54171
|
+
typography: FV(u, a),
|
|
54172
|
+
transitions: WV(o),
|
|
54173
54173
|
zIndex: {
|
|
54174
|
-
...
|
|
54174
|
+
...GV
|
|
54175
54175
|
}
|
|
54176
54176
|
});
|
|
54177
54177
|
if (h = Pn(h, l), h = t.reduce((f, m) => Pn(f, m), h), process.env.NODE_ENV !== "production") {
|
|
@@ -54208,14 +54208,14 @@ function Bd(e = {}, ...t) {
|
|
|
54208
54208
|
});
|
|
54209
54209
|
}, h.toRuntimeSource = lx, h;
|
|
54210
54210
|
}
|
|
54211
|
-
function
|
|
54211
|
+
function KV(e) {
|
|
54212
54212
|
let t;
|
|
54213
54213
|
return e < 1 ? t = 5.11916 * e ** 2 : t = 4.5 * Math.log(e + 1) + 2, Math.round(t * 10) / 1e3;
|
|
54214
54214
|
}
|
|
54215
|
-
const
|
|
54215
|
+
const YV = [...Array(25)].map((e, t) => {
|
|
54216
54216
|
if (t === 0)
|
|
54217
54217
|
return "none";
|
|
54218
|
-
const n =
|
|
54218
|
+
const n = KV(t);
|
|
54219
54219
|
return `linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`;
|
|
54220
54220
|
});
|
|
54221
54221
|
function ux(e) {
|
|
@@ -54227,9 +54227,9 @@ function ux(e) {
|
|
|
54227
54227
|
};
|
|
54228
54228
|
}
|
|
54229
54229
|
function dx(e) {
|
|
54230
|
-
return e === "dark" ?
|
|
54230
|
+
return e === "dark" ? YV : [];
|
|
54231
54231
|
}
|
|
54232
|
-
function
|
|
54232
|
+
function ZV(e) {
|
|
54233
54233
|
const {
|
|
54234
54234
|
palette: t = {
|
|
54235
54235
|
mode: "light"
|
|
@@ -54249,18 +54249,18 @@ function Z4(e) {
|
|
|
54249
54249
|
...r
|
|
54250
54250
|
};
|
|
54251
54251
|
}
|
|
54252
|
-
function
|
|
54252
|
+
function XV(e) {
|
|
54253
54253
|
var t;
|
|
54254
54254
|
return !!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/) || !!e[0].match(/sxConfig$/) || // ends with sxConfig
|
|
54255
54255
|
e[0] === "palette" && !!((t = e[1]) != null && t.match(/(mode|contrastThreshold|tonalOffset)/));
|
|
54256
54256
|
}
|
|
54257
|
-
const
|
|
54257
|
+
const JV = (e) => [...[...Array(25)].map((t, n) => `--${e ? `${e}-` : ""}overlays-${n}`), `--${e ? `${e}-` : ""}palette-AppBar-darkBg`, `--${e ? `${e}-` : ""}palette-AppBar-darkColor`], QV = (e) => (t, n) => {
|
|
54258
54258
|
const i = e.rootSelector || ":root", r = e.colorSchemeSelector;
|
|
54259
54259
|
let s = r;
|
|
54260
54260
|
if (r === "class" && (s = ".%s"), r === "data" && (s = "[data-%s]"), r != null && r.startsWith("data-") && !r.includes("%s") && (s = `[${r}="%s"]`), e.defaultColorScheme === t) {
|
|
54261
54261
|
if (t === "dark") {
|
|
54262
54262
|
const o = {};
|
|
54263
|
-
return
|
|
54263
|
+
return JV(e.cssVarPrefix).forEach((a) => {
|
|
54264
54264
|
o[a] = n[a], delete n[a];
|
|
54265
54265
|
}), s === "media" ? {
|
|
54266
54266
|
[i]: n,
|
|
@@ -54314,14 +54314,14 @@ const ti = (e) => {
|
|
|
54314
54314
|
return e();
|
|
54315
54315
|
} catch {
|
|
54316
54316
|
}
|
|
54317
|
-
}, n6 = (e = "mui") =>
|
|
54317
|
+
}, n6 = (e = "mui") => wV(e);
|
|
54318
54318
|
function lu(e, t, n, i) {
|
|
54319
54319
|
if (!t)
|
|
54320
54320
|
return;
|
|
54321
54321
|
t = t === !0 ? {} : t;
|
|
54322
54322
|
const r = i === "dark" ? "dark" : "light";
|
|
54323
54323
|
if (!n) {
|
|
54324
|
-
e[i] =
|
|
54324
|
+
e[i] = ZV({
|
|
54325
54325
|
...t,
|
|
54326
54326
|
palette: {
|
|
54327
54327
|
mode: r,
|
|
@@ -54358,7 +54358,7 @@ function i6(e = {}, ...t) {
|
|
|
54358
54358
|
defaultColorScheme: i,
|
|
54359
54359
|
disableCssColorScheme: r = !1,
|
|
54360
54360
|
cssVarPrefix: s = "mui",
|
|
54361
|
-
shouldSkipGeneratingVar: o =
|
|
54361
|
+
shouldSkipGeneratingVar: o = XV,
|
|
54362
54362
|
colorSchemeSelector: a = n.light && n.dark ? "media" : void 0,
|
|
54363
54363
|
rootSelector: c = ":root",
|
|
54364
54364
|
...l
|
|
@@ -54384,7 +54384,7 @@ function i6(e = {}, ...t) {
|
|
|
54384
54384
|
getCssVar: h,
|
|
54385
54385
|
colorSchemes: g,
|
|
54386
54386
|
font: {
|
|
54387
|
-
...
|
|
54387
|
+
...OV(S.typography),
|
|
54388
54388
|
...S.font
|
|
54389
54389
|
},
|
|
54390
54390
|
spacing: t6(l.spacing)
|
|
@@ -54413,17 +54413,17 @@ function i6(e = {}, ...t) {
|
|
|
54413
54413
|
prefix: s,
|
|
54414
54414
|
disableCssColorScheme: r,
|
|
54415
54415
|
shouldSkipGeneratingVar: o,
|
|
54416
|
-
getSelector:
|
|
54416
|
+
getSelector: QV(w)
|
|
54417
54417
|
}, {
|
|
54418
54418
|
vars: T,
|
|
54419
54419
|
generateThemeVars: P,
|
|
54420
54420
|
generateStyleSheets: A
|
|
54421
|
-
} =
|
|
54421
|
+
} = TV(w, k);
|
|
54422
54422
|
return w.vars = T, Object.entries(w.colorSchemes[w.defaultColorScheme]).forEach(([N, y]) => {
|
|
54423
54423
|
w[N] = y;
|
|
54424
54424
|
}), w.generateThemeVars = P, w.generateStyleSheets = A, w.generateSpacing = function() {
|
|
54425
54425
|
return ex(l.spacing, bf(this));
|
|
54426
|
-
}, w.getColorSchemeSelector =
|
|
54426
|
+
}, w.getColorSchemeSelector = CV(a), w.spacing = w.generateSpacing(), w.shouldSkipGeneratingVar = o, w.unstable_sxConfig = {
|
|
54427
54427
|
...zc,
|
|
54428
54428
|
...l == null ? void 0 : l.unstable_sxConfig
|
|
54429
54429
|
}, w.unstable_sx = function(y) {
|
|
@@ -54491,19 +54491,19 @@ const s6 = r6(), o6 = "$$material";
|
|
|
54491
54491
|
function a6(e) {
|
|
54492
54492
|
return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
|
|
54493
54493
|
}
|
|
54494
|
-
const c6 = (e) => a6(e) && e !== "classes", l6 =
|
|
54494
|
+
const c6 = (e) => a6(e) && e !== "classes", l6 = aV({
|
|
54495
54495
|
themeId: o6,
|
|
54496
54496
|
defaultTheme: s6,
|
|
54497
54497
|
rootShouldForwardProp: c6
|
|
54498
|
-
}), u6 =
|
|
54498
|
+
}), u6 = kV;
|
|
54499
54499
|
process.env.NODE_ENV !== "production" && (Je.node, Je.object.isRequired);
|
|
54500
54500
|
function d6(e) {
|
|
54501
|
-
return
|
|
54501
|
+
return vV(e);
|
|
54502
54502
|
}
|
|
54503
54503
|
function h6(e) {
|
|
54504
54504
|
return vf("MuiSvgIcon", e);
|
|
54505
54505
|
}
|
|
54506
|
-
|
|
54506
|
+
nV("MuiSvgIcon", ["root", "colorPrimary", "colorSecondary", "colorAction", "colorError", "colorDisabled", "fontSizeInherit", "fontSizeSmall", "fontSizeMedium", "fontSizeLarge"]);
|
|
54507
54507
|
const f6 = (e) => {
|
|
54508
54508
|
const {
|
|
54509
54509
|
color: t,
|
|
@@ -54614,7 +54614,7 @@ const f6 = (e) => {
|
|
|
54614
54614
|
}
|
|
54615
54615
|
]
|
|
54616
54616
|
};
|
|
54617
|
-
})), hc = /* @__PURE__ */
|
|
54617
|
+
})), hc = /* @__PURE__ */ O.forwardRef(function(t, n) {
|
|
54618
54618
|
const i = d6({
|
|
54619
54619
|
props: t,
|
|
54620
54620
|
name: "MuiSvgIcon"
|
|
@@ -54629,7 +54629,7 @@ const f6 = (e) => {
|
|
|
54629
54629
|
titleAccess: d,
|
|
54630
54630
|
viewBox: h = "0 0 24 24",
|
|
54631
54631
|
...f
|
|
54632
|
-
} = i, m = /* @__PURE__ */
|
|
54632
|
+
} = i, m = /* @__PURE__ */ O.isValidElement(r) && r.type === "svg", p = {
|
|
54633
54633
|
...i,
|
|
54634
54634
|
color: o,
|
|
54635
54635
|
component: a,
|
|
@@ -54641,7 +54641,7 @@ const f6 = (e) => {
|
|
|
54641
54641
|
}, v = {};
|
|
54642
54642
|
u || (v.viewBox = h);
|
|
54643
54643
|
const g = f6(p);
|
|
54644
|
-
return /* @__PURE__ */
|
|
54644
|
+
return /* @__PURE__ */ D(p6, {
|
|
54645
54645
|
as: a,
|
|
54646
54646
|
className: i0(g.root, s),
|
|
54647
54647
|
focusable: "false",
|
|
@@ -54740,7 +54740,7 @@ function Tf(e, t) {
|
|
|
54740
54740
|
children: e
|
|
54741
54741
|
});
|
|
54742
54742
|
}
|
|
54743
|
-
return process.env.NODE_ENV !== "production" && (n.displayName = `${t}Icon`), n.muiName = hc.muiName, /* @__PURE__ */
|
|
54743
|
+
return process.env.NODE_ENV !== "production" && (n.displayName = `${t}Icon`), n.muiName = hc.muiName, /* @__PURE__ */ O.memo(/* @__PURE__ */ O.forwardRef(n));
|
|
54744
54744
|
}
|
|
54745
54745
|
const m6 = Tf(/* @__PURE__ */ b("path", {
|
|
54746
54746
|
d: "M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2M6 9h12v2H6zm8 5H6v-2h8zm4-6H6V6h12z"
|
|
@@ -54833,7 +54833,7 @@ const hx = Fe.forwardRef(({
|
|
|
54833
54833
|
modalities: l = ["voice", "chat", "video"]
|
|
54834
54834
|
}, u) => {
|
|
54835
54835
|
const d = hn(c), h = l.includes("voice"), f = l.includes("chat"), m = l.includes("video"), p = [h, f, m].filter(Boolean).length;
|
|
54836
|
-
return /* @__PURE__ */
|
|
54836
|
+
return /* @__PURE__ */ D("div", { className: "flex flex-col items-center h-full justify-center w-full relative px-8 py-16", "aria-disabled": e, style: { background: "transparent" }, children: [
|
|
54837
54837
|
/* @__PURE__ */ b(
|
|
54838
54838
|
"div",
|
|
54839
54839
|
{
|
|
@@ -54845,44 +54845,44 @@ const hx = Fe.forwardRef(({
|
|
|
54845
54845
|
}
|
|
54846
54846
|
),
|
|
54847
54847
|
/* @__PURE__ */ b("div", { className: "absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[500px] h-[500px] bg-gradient-radial from-white/[0.02] to-transparent blur-3xl pointer-events-none" }),
|
|
54848
|
-
/* @__PURE__ */
|
|
54848
|
+
/* @__PURE__ */ D("div", { className: "flex flex-col items-center justify-center w-full max-w-2xl space-y-12 z-10", children: [
|
|
54849
54849
|
/* @__PURE__ */ b("div", { className: "text-center space-y-2 max-w-md", children: /* @__PURE__ */ b("p", { className: `text-base leading-relaxed tracking-wide ${d.text.secondary}`, children: a }) }),
|
|
54850
|
-
/* @__PURE__ */ b("div", { className: "flex items-center justify-center w-full", children: h && f && m ? /* @__PURE__ */
|
|
54851
|
-
/* @__PURE__ */
|
|
54850
|
+
/* @__PURE__ */ b("div", { className: "flex items-center justify-center w-full", children: h && f && m ? /* @__PURE__ */ D("div", { className: "flex gap-5 items-center justify-center", children: [
|
|
54851
|
+
/* @__PURE__ */ D("div", { className: "flex flex-col items-center gap-3 group cursor-pointer", onClick: t, children: [
|
|
54852
54852
|
/* @__PURE__ */ b(da, { onClick: t, disabled: e, theme: c }),
|
|
54853
54853
|
/* @__PURE__ */ b("span", { className: `text-xs font-medium tracking-wider uppercase ${d.text.muted} group-hover:text-white transition-colors duration-300`, children: "Voice" })
|
|
54854
54854
|
] }),
|
|
54855
|
-
/* @__PURE__ */
|
|
54855
|
+
/* @__PURE__ */ D("div", { className: "flex flex-col items-center gap-3 group cursor-pointer", onClick: n, children: [
|
|
54856
54856
|
/* @__PURE__ */ b(uu, { onClick: n, disabled: e, theme: c }),
|
|
54857
54857
|
/* @__PURE__ */ b("span", { className: `text-xs font-medium tracking-wider uppercase ${d.text.muted} group-hover:text-white transition-colors duration-300`, children: "Chat" })
|
|
54858
54858
|
] }),
|
|
54859
|
-
/* @__PURE__ */
|
|
54859
|
+
/* @__PURE__ */ D("div", { className: "flex flex-col items-center gap-3 group cursor-pointer", onClick: i || t, children: [
|
|
54860
54860
|
/* @__PURE__ */ b(du, { onClick: i || t, disabled: e, theme: c }),
|
|
54861
54861
|
/* @__PURE__ */ b("span", { className: `text-xs font-medium tracking-wider uppercase ${d.text.muted} group-hover:text-white transition-colors duration-300`, children: "Video" })
|
|
54862
54862
|
] })
|
|
54863
|
-
] }) : p > 1 ? /* @__PURE__ */
|
|
54864
|
-
h && /* @__PURE__ */
|
|
54863
|
+
] }) : p > 1 ? /* @__PURE__ */ D("div", { className: "flex gap-6 items-center justify-center", children: [
|
|
54864
|
+
h && /* @__PURE__ */ D("div", { className: "flex flex-col items-center gap-3 group cursor-pointer", onClick: t, children: [
|
|
54865
54865
|
/* @__PURE__ */ b(da, { onClick: t, disabled: e, theme: c }),
|
|
54866
54866
|
/* @__PURE__ */ b("span", { className: `text-xs font-medium tracking-wider uppercase ${d.text.muted} group-hover:text-white transition-colors duration-300`, children: "Voice" })
|
|
54867
54867
|
] }),
|
|
54868
|
-
f && /* @__PURE__ */
|
|
54868
|
+
f && /* @__PURE__ */ D("div", { className: "flex flex-col items-center gap-3 group cursor-pointer", onClick: n, children: [
|
|
54869
54869
|
/* @__PURE__ */ b(uu, { onClick: n, disabled: e, theme: c }),
|
|
54870
54870
|
/* @__PURE__ */ b("span", { className: `text-xs font-medium tracking-wider uppercase ${d.text.muted} group-hover:text-white transition-colors duration-300`, children: "Chat" })
|
|
54871
54871
|
] }),
|
|
54872
|
-
m && i && /* @__PURE__ */
|
|
54872
|
+
m && i && /* @__PURE__ */ D("div", { className: "flex flex-col items-center gap-3 group cursor-pointer", onClick: i, children: [
|
|
54873
54873
|
/* @__PURE__ */ b(du, { onClick: i, disabled: e, theme: c }),
|
|
54874
54874
|
/* @__PURE__ */ b("span", { className: `text-xs font-medium tracking-wider uppercase ${d.text.muted} group-hover:text-white transition-colors duration-300`, children: "Video" })
|
|
54875
54875
|
] })
|
|
54876
|
-
] }) : /* @__PURE__ */ b("div", { className: "flex flex-col items-center gap-3 group cursor-pointer", children: h ? /* @__PURE__ */
|
|
54876
|
+
] }) : /* @__PURE__ */ b("div", { className: "flex flex-col items-center gap-3 group cursor-pointer", children: h ? /* @__PURE__ */ D(Wt, { children: [
|
|
54877
54877
|
/* @__PURE__ */ b(da, { onClick: t, disabled: e, theme: c }),
|
|
54878
54878
|
/* @__PURE__ */ b("span", { className: `text-xs font-medium tracking-wider uppercase ${d.text.muted} group-hover:text-white transition-colors duration-300`, children: "Voice" })
|
|
54879
|
-
] }) : f ? /* @__PURE__ */
|
|
54879
|
+
] }) : f ? /* @__PURE__ */ D(Wt, { children: [
|
|
54880
54880
|
/* @__PURE__ */ b(uu, { onClick: n, disabled: e, theme: c }),
|
|
54881
54881
|
/* @__PURE__ */ b("span", { className: `text-xs font-medium tracking-wider uppercase ${d.text.muted} group-hover:text-white transition-colors duration-300`, children: "Chat" })
|
|
54882
|
-
] }) : m && i ? /* @__PURE__ */
|
|
54882
|
+
] }) : m && i ? /* @__PURE__ */ D(Wt, { children: [
|
|
54883
54883
|
/* @__PURE__ */ b(du, { onClick: i, disabled: e, theme: c }),
|
|
54884
54884
|
/* @__PURE__ */ b("span", { className: `text-xs font-medium tracking-wider uppercase ${d.text.muted} group-hover:text-white transition-colors duration-300`, children: "Video" })
|
|
54885
|
-
] }) : /* @__PURE__ */
|
|
54885
|
+
] }) : /* @__PURE__ */ D(Wt, { children: [
|
|
54886
54886
|
/* @__PURE__ */ b(da, { onClick: t, disabled: e, theme: c }),
|
|
54887
54887
|
/* @__PURE__ */ b("span", { className: `text-xs font-medium tracking-wider uppercase ${d.text.muted} group-hover:text-white transition-colors duration-300`, children: "Voice" })
|
|
54888
54888
|
] }) }) }),
|
|
@@ -54891,7 +54891,7 @@ const hx = Fe.forwardRef(({
|
|
|
54891
54891
|
] });
|
|
54892
54892
|
});
|
|
54893
54893
|
hx.displayName = "Welcome";
|
|
54894
|
-
class fx extends
|
|
54894
|
+
class fx extends O.Component {
|
|
54895
54895
|
constructor(t) {
|
|
54896
54896
|
super(t), this.state = { hasError: !1 };
|
|
54897
54897
|
}
|
|
@@ -54905,9 +54905,9 @@ class fx extends D.Component {
|
|
|
54905
54905
|
if (this.state.hasError) {
|
|
54906
54906
|
if (this.props.fallback) {
|
|
54907
54907
|
const t = this.props.fallback;
|
|
54908
|
-
return
|
|
54908
|
+
return O.createElement(t, { error: this.state.error });
|
|
54909
54909
|
}
|
|
54910
|
-
return
|
|
54910
|
+
return O.createElement("div", {
|
|
54911
54911
|
style: {
|
|
54912
54912
|
padding: "20px",
|
|
54913
54913
|
border: "1px solid #ff4444",
|
|
@@ -54940,7 +54940,17 @@ const v6 = ({
|
|
|
54940
54940
|
width: n,
|
|
54941
54941
|
height: n,
|
|
54942
54942
|
...r
|
|
54943
|
-
}, d =
|
|
54943
|
+
}, d = "data:image/svg+xml;utf8," + encodeURIComponent(`
|
|
54944
|
+
<svg width="64" height="64" viewBox="0 0 64 64" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
54945
|
+
<circle cx="32" cy="32" r="32" fill="#6366F1"/>
|
|
54946
|
+
<path d="M20 28c0-4.418 4.924-8 11-8s11 3.582 11 8-4.924 8-11 8c-1.41 0-2.76-.16-4-.46L16 44l2.54-7.62C21.06 34.1 20 31.17 20 28Z" fill="#fff"/>
|
|
54947
|
+
<text x="32" y="36" text-anchor="middle" font-size="16" fill="#6366F1" font-family="Arial, sans-serif" font-weight="bold">V</text>
|
|
54948
|
+
</svg>
|
|
54949
|
+
`), [h, f] = O.useState(c);
|
|
54950
|
+
O.useEffect(() => {
|
|
54951
|
+
f(c);
|
|
54952
|
+
}, [c]);
|
|
54953
|
+
const m = O.useMemo(() => {
|
|
54944
54954
|
if (typeof window > "u" || !window.matchMedia) return !1;
|
|
54945
54955
|
try {
|
|
54946
54956
|
return window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
@@ -54948,8 +54958,8 @@ const v6 = ({
|
|
|
54948
54958
|
return !1;
|
|
54949
54959
|
}
|
|
54950
54960
|
}, []);
|
|
54951
|
-
return /* @__PURE__ */
|
|
54952
|
-
a && /* @__PURE__ */
|
|
54961
|
+
return /* @__PURE__ */ D("div", { className: "relative pointer-events-auto", children: [
|
|
54962
|
+
a && /* @__PURE__ */ D(Wt, { children: [
|
|
54953
54963
|
/* @__PURE__ */ b(
|
|
54954
54964
|
Be.div,
|
|
54955
54965
|
{
|
|
@@ -54962,11 +54972,11 @@ const v6 = ({
|
|
|
54962
54972
|
background: "linear-gradient(45deg, rgba(6,182,212,0.3), rgba(34,211,238,0.3), rgba(6,182,212,0.3))",
|
|
54963
54973
|
filter: "blur(8px)"
|
|
54964
54974
|
},
|
|
54965
|
-
animate:
|
|
54975
|
+
animate: m ? void 0 : {
|
|
54966
54976
|
scale: [1, 1.1, 1],
|
|
54967
54977
|
opacity: [0.6, 0.9, 0.6]
|
|
54968
54978
|
},
|
|
54969
|
-
transition:
|
|
54979
|
+
transition: m ? void 0 : {
|
|
54970
54980
|
duration: 2,
|
|
54971
54981
|
repeat: 1 / 0,
|
|
54972
54982
|
ease: "easeInOut"
|
|
@@ -54985,11 +54995,11 @@ const v6 = ({
|
|
|
54985
54995
|
background: "linear-gradient(135deg, rgba(6,182,212,0.4), rgba(34,211,238,0.4))",
|
|
54986
54996
|
filter: "blur(4px)"
|
|
54987
54997
|
},
|
|
54988
|
-
animate:
|
|
54998
|
+
animate: m ? void 0 : {
|
|
54989
54999
|
scale: [1, 1.05, 1],
|
|
54990
55000
|
opacity: [0.7, 1, 0.7]
|
|
54991
55001
|
},
|
|
54992
|
-
transition:
|
|
55002
|
+
transition: m ? void 0 : {
|
|
54993
55003
|
duration: 1.5,
|
|
54994
55004
|
repeat: 1 / 0,
|
|
54995
55005
|
ease: "easeInOut",
|
|
@@ -54998,7 +55008,7 @@ const v6 = ({
|
|
|
54998
55008
|
}
|
|
54999
55009
|
)
|
|
55000
55010
|
] }),
|
|
55001
|
-
/* @__PURE__ */
|
|
55011
|
+
/* @__PURE__ */ D(
|
|
55002
55012
|
Be.button,
|
|
55003
55013
|
{
|
|
55004
55014
|
type: "button",
|
|
@@ -55014,7 +55024,7 @@ const v6 = ({
|
|
|
55014
55024
|
animate: {
|
|
55015
55025
|
scale: 1,
|
|
55016
55026
|
opacity: 1,
|
|
55017
|
-
...a && !
|
|
55027
|
+
...a && !m ? {
|
|
55018
55028
|
boxShadow: [
|
|
55019
55029
|
"0 0 0 2px rgba(6,182,212,0.5), 0 0 20px rgba(6,182,212,0.4), 0 8px 32px rgba(0,0,0,0.3)",
|
|
55020
55030
|
"0 0 0 2px rgba(6,182,212,0.8), 0 0 30px rgba(6,182,212,0.6), 0 8px 32px rgba(0,0,0,0.3)",
|
|
@@ -55028,7 +55038,7 @@ const v6 = ({
|
|
|
55028
55038
|
"data-position": t,
|
|
55029
55039
|
"data-voxket-trigger": "true",
|
|
55030
55040
|
transition: {
|
|
55031
|
-
...!
|
|
55041
|
+
...!m && a ? {
|
|
55032
55042
|
boxShadow: {
|
|
55033
55043
|
duration: 2,
|
|
55034
55044
|
repeat: 1 / 0,
|
|
@@ -55037,7 +55047,7 @@ const v6 = ({
|
|
|
55037
55047
|
} : {}
|
|
55038
55048
|
},
|
|
55039
55049
|
children: [
|
|
55040
|
-
a && /* @__PURE__ */
|
|
55050
|
+
a && /* @__PURE__ */ D(Wt, { children: [
|
|
55041
55051
|
/* @__PURE__ */ b(
|
|
55042
55052
|
Be.span,
|
|
55043
55053
|
{
|
|
@@ -55048,8 +55058,8 @@ const v6 = ({
|
|
|
55048
55058
|
WebkitMask: "radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px))",
|
|
55049
55059
|
mask: "radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px))"
|
|
55050
55060
|
},
|
|
55051
|
-
animate:
|
|
55052
|
-
transition:
|
|
55061
|
+
animate: m ? void 0 : { rotate: 360 },
|
|
55062
|
+
transition: m ? void 0 : {
|
|
55053
55063
|
duration: 3,
|
|
55054
55064
|
repeat: 1 / 0,
|
|
55055
55065
|
ease: "linear"
|
|
@@ -55070,7 +55080,7 @@ const v6 = ({
|
|
|
55070
55080
|
/* @__PURE__ */ b(
|
|
55071
55081
|
"img",
|
|
55072
55082
|
{
|
|
55073
|
-
src:
|
|
55083
|
+
src: h,
|
|
55074
55084
|
alt: "Voxket",
|
|
55075
55085
|
className: "object-contain select-none pointer-events-none relative z-10",
|
|
55076
55086
|
style: {
|
|
@@ -55078,7 +55088,8 @@ const v6 = ({
|
|
|
55078
55088
|
height: `${Math.max(0, Math.min(1, o)) * 100}%`,
|
|
55079
55089
|
filter: a ? "brightness(1.1) contrast(1.1)" : "none"
|
|
55080
55090
|
},
|
|
55081
|
-
draggable: !1
|
|
55091
|
+
draggable: !1,
|
|
55092
|
+
onError: () => f(d)
|
|
55082
55093
|
}
|
|
55083
55094
|
)
|
|
55084
55095
|
]
|
|
@@ -55094,7 +55105,7 @@ function k6({
|
|
|
55094
55105
|
enableLocalStorage: r = !0,
|
|
55095
55106
|
voxketSessionId: s
|
|
55096
55107
|
} = {}) {
|
|
55097
|
-
const [o, a] =
|
|
55108
|
+
const [o, a] = O.useState(null), [c, l] = O.useState([]), [u, d] = O.useState(null), [h, f] = O.useState([]), m = O.useCallback((x, S) => {
|
|
55098
55109
|
const w = {
|
|
55099
55110
|
timestamp: /* @__PURE__ */ new Date(),
|
|
55100
55111
|
event: x,
|
|
@@ -55108,7 +55119,7 @@ function k6({
|
|
|
55108
55119
|
}
|
|
55109
55120
|
return w;
|
|
55110
55121
|
}, [o == null ? void 0 : o.sessionId, u == null ? void 0 : u.identity, i, r]);
|
|
55111
|
-
|
|
55122
|
+
O.useEffect(() => {
|
|
55112
55123
|
if (!e) return;
|
|
55113
55124
|
const x = () => {
|
|
55114
55125
|
const y = s || `session-${Date.now()}-${Math.random().toString(36).substring(2, 9)}`, R = /* @__PURE__ */ new Date(), I = {
|
|
@@ -55167,9 +55178,9 @@ function k6({
|
|
|
55167
55178
|
e.off(U.Connected, x), e.off(U.Disconnected, S), e.off(U.ConnectionStateChanged, w), e.off(U.TrackPublished, k), e.off(U.TrackUnpublished, T), e.off(U.DataReceived, P), e.off(U.ParticipantConnected, A), e.off(U.ParticipantDisconnected, N);
|
|
55168
55179
|
};
|
|
55169
55180
|
}, [e, o, c, h.length, m, t, n]);
|
|
55170
|
-
const p =
|
|
55181
|
+
const p = O.useCallback(() => r ? JSON.parse(localStorage.getItem("voxket-session-logs") || "[]") : c, [c, r]), v = O.useCallback(() => {
|
|
55171
55182
|
r && localStorage.removeItem("voxket-session-logs"), l([]);
|
|
55172
|
-
}, [r]), g =
|
|
55183
|
+
}, [r]), g = O.useCallback(() => {
|
|
55173
55184
|
const x = p(), S = JSON.stringify(x, null, 2), w = "data:application/json;charset=utf-8," + encodeURIComponent(S), k = `voxket-session-logs-${(/* @__PURE__ */ new Date()).toISOString().split("T")[0]}.json`, T = document.createElement("a");
|
|
55174
55185
|
T.setAttribute("href", w), T.setAttribute("download", k), T.click();
|
|
55175
55186
|
}, [p]);
|
|
@@ -57749,12 +57760,12 @@ function M6({
|
|
|
57749
57760
|
return "Connecting...";
|
|
57750
57761
|
}
|
|
57751
57762
|
};
|
|
57752
|
-
return /* @__PURE__ */
|
|
57753
|
-
/* @__PURE__ */
|
|
57763
|
+
return /* @__PURE__ */ D("div", { className: "flex flex-col items-center justify-center h-full w-full p-8", children: [
|
|
57764
|
+
/* @__PURE__ */ D("div", { className: "text-center", children: [
|
|
57754
57765
|
/* @__PURE__ */ b("h3", { className: `text-lg font-semibold mb-2 ${r.text.accent}`, children: s() }),
|
|
57755
57766
|
/* @__PURE__ */ b("p", { className: `text-sm ${r.text.muted}`, children: "Please wait a moment..." })
|
|
57756
57767
|
] }),
|
|
57757
|
-
/* @__PURE__ */
|
|
57768
|
+
/* @__PURE__ */ D("div", { className: "flex space-x-1 mt-4", children: [
|
|
57758
57769
|
/* @__PURE__ */ b("div", { className: "w-2 h-2 rounded-full animate-bounce bg-blue-500", style: { animationDelay: "0ms" } }),
|
|
57759
57770
|
/* @__PURE__ */ b("div", { className: "w-2 h-2 rounded-full animate-bounce bg-blue-500", style: { animationDelay: "150ms" } }),
|
|
57760
57771
|
/* @__PURE__ */ b("div", { className: "w-2 h-2 rounded-full animate-bounce bg-blue-500", style: { animationDelay: "300ms" } })
|
|
@@ -57778,7 +57789,7 @@ function Jb({
|
|
|
57778
57789
|
onClick: (a) => {
|
|
57779
57790
|
a.target === a.currentTarget && i && i();
|
|
57780
57791
|
},
|
|
57781
|
-
children: /* @__PURE__ */
|
|
57792
|
+
children: /* @__PURE__ */ D(
|
|
57782
57793
|
"div",
|
|
57783
57794
|
{
|
|
57784
57795
|
className: "w-full h-full max-w-7xl max-h-[95vh] rounded-2xl relative bg-transparent flex flex-col",
|
|
@@ -57798,7 +57809,7 @@ function Jb({
|
|
|
57798
57809
|
children: /* @__PURE__ */ b("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: /* @__PURE__ */ b("path", { d: "M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3" }) })
|
|
57799
57810
|
}
|
|
57800
57811
|
),
|
|
57801
|
-
/* @__PURE__ */
|
|
57812
|
+
/* @__PURE__ */ D(
|
|
57802
57813
|
"div",
|
|
57803
57814
|
{
|
|
57804
57815
|
id: "voice-card",
|
|
@@ -57829,7 +57840,7 @@ function Jb({
|
|
|
57829
57840
|
"div",
|
|
57830
57841
|
{
|
|
57831
57842
|
className: "fixed rounded-2xl inset-0 z-[9999] pointer-events-none",
|
|
57832
|
-
children: /* @__PURE__ */
|
|
57843
|
+
children: /* @__PURE__ */ D("div", { className: `fixed rounded-2xl ${{
|
|
57833
57844
|
"top-left": "top-4 left-4",
|
|
57834
57845
|
"top-right": "top-4 right-4",
|
|
57835
57846
|
"bottom-left": "bottom-4 left-4",
|
|
@@ -57843,7 +57854,7 @@ function Jb({
|
|
|
57843
57854
|
children: "×"
|
|
57844
57855
|
}
|
|
57845
57856
|
),
|
|
57846
|
-
/* @__PURE__ */
|
|
57857
|
+
/* @__PURE__ */ D(
|
|
57847
57858
|
"div",
|
|
57848
57859
|
{
|
|
57849
57860
|
id: "voice-card",
|
|
@@ -57868,7 +57879,7 @@ function Jb({
|
|
|
57868
57879
|
)
|
|
57869
57880
|
] })
|
|
57870
57881
|
}
|
|
57871
|
-
) : /* @__PURE__ */
|
|
57882
|
+
) : /* @__PURE__ */ D(
|
|
57872
57883
|
"div",
|
|
57873
57884
|
{
|
|
57874
57885
|
id: "voice-card",
|
|
@@ -57929,7 +57940,7 @@ function D6(e) {
|
|
|
57929
57940
|
participantMetadata: K,
|
|
57930
57941
|
popupModalityMode: ue = "all",
|
|
57931
57942
|
popupTriggerLogoUrl: se
|
|
57932
|
-
} = e, [j, H] =
|
|
57943
|
+
} = e, [j, H] = O.useState(!1), [C, W] = O.useState(null), [Y, E] = O.useState(() => {
|
|
57933
57944
|
try {
|
|
57934
57945
|
if (L)
|
|
57935
57946
|
return !!L.getCurrentSession();
|
|
@@ -57937,9 +57948,9 @@ function D6(e) {
|
|
|
57937
57948
|
console.error("Error checking existing session:", _);
|
|
57938
57949
|
}
|
|
57939
57950
|
return !1;
|
|
57940
|
-
}), [J, ne] =
|
|
57951
|
+
}), [J, ne] = O.useState(!1), [ie, re] = O.useState(t || ""), [X, le] = O.useState(
|
|
57941
57952
|
n || "User"
|
|
57942
|
-
), [Z, Pe] =
|
|
57953
|
+
), [Z, Pe] = O.useState(() => {
|
|
57943
57954
|
try {
|
|
57944
57955
|
if (L)
|
|
57945
57956
|
return L.getCurrentSession();
|
|
@@ -57947,7 +57958,7 @@ function D6(e) {
|
|
|
57947
57958
|
console.error("Error getting current session:", _);
|
|
57948
57959
|
}
|
|
57949
57960
|
return null;
|
|
57950
|
-
}), [F, de] =
|
|
57961
|
+
}), [F, de] = O.useState(() => {
|
|
57951
57962
|
var _, z, te;
|
|
57952
57963
|
try {
|
|
57953
57964
|
if (L) {
|
|
@@ -57963,13 +57974,13 @@ function D6(e) {
|
|
|
57963
57974
|
console.error("Error determining current mode:", ge);
|
|
57964
57975
|
}
|
|
57965
57976
|
return "welcome";
|
|
57966
|
-
}), [Ne, we] =
|
|
57967
|
-
|
|
57977
|
+
}), [Ne, we] = O.useState(!1), [pe, Te] = O.useState(!1), [Ie, Ce] = O.useState(() => A.length === 1 ? A[0] : null), [Nt, qt] = O.useState(!1);
|
|
57978
|
+
O.useEffect(() => {
|
|
57968
57979
|
N === "fullscreen" && console.log("🎯 Widget: Switched to fullscreen mode");
|
|
57969
|
-
}, [N]),
|
|
57980
|
+
}, [N]), O.useEffect(() => {
|
|
57970
57981
|
Y && !J ? console.log("📊 Session started:", { currentMode: F, sessionId: Z == null ? void 0 : Z.id }) : !Y && !J && F === "welcome" && console.log("📊 Returned to welcome screen");
|
|
57971
57982
|
}, [Y, F, J]);
|
|
57972
|
-
const lt =
|
|
57983
|
+
const lt = O.useRef(null);
|
|
57973
57984
|
if (!lt.current)
|
|
57974
57985
|
try {
|
|
57975
57986
|
if (L)
|
|
@@ -58003,7 +58014,7 @@ function D6(e) {
|
|
|
58003
58014
|
console.error("❌ Failed to create VoxketClient:", _), W(_), H(!0);
|
|
58004
58015
|
}
|
|
58005
58016
|
const be = lt.current;
|
|
58006
|
-
|
|
58017
|
+
O.useEffect(() => {
|
|
58007
58018
|
const _ = lt.current;
|
|
58008
58019
|
return () => {
|
|
58009
58020
|
_ && !L && (console.log("🧹 Widget unmounting: disconnecting VoxketClient"), _.disconnect().catch((z) => {
|
|
@@ -58011,7 +58022,7 @@ function D6(e) {
|
|
|
58011
58022
|
}));
|
|
58012
58023
|
};
|
|
58013
58024
|
}, [L]);
|
|
58014
|
-
const Vt =
|
|
58025
|
+
const Vt = O.useMemo(() => N === "popup" && Ie ? [Ie] : A, [N, Ie, A]), ut = O.useMemo(() => {
|
|
58015
58026
|
try {
|
|
58016
58027
|
if (!be)
|
|
58017
58028
|
return console.warn("⚠️ No VoxketClient available, creating fallback room"), new Ci();
|
|
@@ -58026,7 +58037,7 @@ function D6(e) {
|
|
|
58026
58037
|
return console.error("❌ Error getting room from client:", _), new Ci();
|
|
58027
58038
|
}
|
|
58028
58039
|
}, [be, Y, F]);
|
|
58029
|
-
|
|
58040
|
+
O.useEffect(() => {
|
|
58030
58041
|
if (ut) {
|
|
58031
58042
|
const _ = () => {
|
|
58032
58043
|
console.log("🏠 Widget: Room state changed:", {
|
|
@@ -58048,9 +58059,9 @@ function D6(e) {
|
|
|
58048
58059
|
ut.off(U.Connected, _), ut.off(U.Disconnected, _), ut.off(U.TrackSubscribed, z);
|
|
58049
58060
|
};
|
|
58050
58061
|
}
|
|
58051
|
-
}, [ut, Z == null ? void 0 : Z.id]),
|
|
58062
|
+
}, [ut, Z == null ? void 0 : Z.id]), O.useEffect(() => {
|
|
58052
58063
|
!J && F === "welcome" ? console.log("🎬 Widget: Welcome screen ready") : Y && F !== "welcome" && console.log("🎬 Widget: Session mode active:", F);
|
|
58053
|
-
}, [F, J, Y]),
|
|
58064
|
+
}, [F, J, Y]), O.useEffect(() => {
|
|
58054
58065
|
(F === "voice" || F === "video" || F === "chat") && !Z && !Y && !J && be && !be.connected && (console.log("🔄 Auto-correcting: Found orphaned mode without session, returning to welcome"), de("welcome"), ne(!1));
|
|
58055
58066
|
}, [F, Z, Y, J, be]);
|
|
58056
58067
|
const { sessionMetrics: G, sessionLogs: ae, logEvent: Ae } = k6({
|
|
@@ -58061,11 +58072,11 @@ function D6(e) {
|
|
|
58061
58072
|
enableLocalStorage: k,
|
|
58062
58073
|
voxketSessionId: Z == null ? void 0 : Z.id
|
|
58063
58074
|
});
|
|
58064
|
-
|
|
58075
|
+
O.useEffect(() => {
|
|
58065
58076
|
T && T(ae);
|
|
58066
|
-
}, [ae, T]),
|
|
58077
|
+
}, [ae, T]), O.useEffect(() => {
|
|
58067
58078
|
P && G && P(G);
|
|
58068
|
-
}, [G, P]),
|
|
58079
|
+
}, [G, P]), O.useEffect(() => {
|
|
58069
58080
|
if (!be) return;
|
|
58070
58081
|
const _ = (z, te) => {
|
|
58071
58082
|
console.log("📊 Widget: Session state changed:", {
|
|
@@ -58077,7 +58088,7 @@ function D6(e) {
|
|
|
58077
58088
|
return be.on("session.state.changed", _), () => {
|
|
58078
58089
|
be.off("session.state.changed", _);
|
|
58079
58090
|
};
|
|
58080
|
-
}, [be, J]),
|
|
58091
|
+
}, [be, J]), O.useEffect(() => {
|
|
58081
58092
|
if (!be) return;
|
|
58082
58093
|
const _ = () => {
|
|
58083
58094
|
const z = be.connected, te = be.getCurrentSession();
|
|
@@ -58097,7 +58108,7 @@ function D6(e) {
|
|
|
58097
58108
|
};
|
|
58098
58109
|
}, [be, F, J, Y]);
|
|
58099
58110
|
const Xe = !!(!!(be != null && be.connected) && Y && Z);
|
|
58100
|
-
|
|
58111
|
+
O.useEffect(() => {
|
|
58101
58112
|
const _ = (te) => {
|
|
58102
58113
|
console.log("🔴 Widget: Room disconnected:", te), console.log("🔍 Widget: Current state on disconnect:", {
|
|
58103
58114
|
currentMode: F,
|
|
@@ -58189,18 +58200,18 @@ function D6(e) {
|
|
|
58189
58200
|
});
|
|
58190
58201
|
}
|
|
58191
58202
|
};
|
|
58192
|
-
|
|
58203
|
+
O.useEffect(() => {
|
|
58193
58204
|
var _, z, te;
|
|
58194
58205
|
if (L && be) {
|
|
58195
58206
|
const ge = be.getCurrentSession();
|
|
58196
58207
|
be.connected, ge && (console.log("✅ Restoring session state:", ge.id), Pe(ge), E(!0), ne(!1), (_ = ge.activeModalities) != null && _.includes("chat") ? de("chat") : (z = ge.activeModalities) != null && z.includes("voice") ? de("voice") : (te = ge.activeModalities) != null && te.includes("video") && de("video"));
|
|
58197
58208
|
}
|
|
58198
|
-
}, [L, be]),
|
|
58209
|
+
}, [L, be]), O.useEffect(() => () => {
|
|
58199
58210
|
!L && be && be.disconnect();
|
|
58200
58211
|
}, [be, L]);
|
|
58201
58212
|
let Qt = F === "video" ? "w-[32rem]" : "w-96", Pr = F === "video" ? "h-[30rem]" : "h-[25rem]", Nr = {};
|
|
58202
58213
|
if (h && (h.startsWith("w-") ? Qt = h : (Nr.width = h, Qt = "")), f && (f.startsWith("h-") ? Pr = f : (Nr.height = f, Pr = "")), N === "popup" && !Ne)
|
|
58203
|
-
return console.log("🟡 Showing popup trigger button"), /* @__PURE__ */
|
|
58214
|
+
return console.log("🟡 Showing popup trigger button"), /* @__PURE__ */ D(Wt, { children: [
|
|
58204
58215
|
/* @__PURE__ */ b(
|
|
58205
58216
|
v6,
|
|
58206
58217
|
{
|
|
@@ -58242,10 +58253,10 @@ function D6(e) {
|
|
|
58242
58253
|
style: { top: -16, right: y.endsWith("right") ? 16 : void 0, left: y.endsWith("left") ? 16 : void 0 }
|
|
58243
58254
|
}
|
|
58244
58255
|
);
|
|
58245
|
-
return /* @__PURE__ */ b("div", { className: "fixed z-[51]", style: te, children: /* @__PURE__ */
|
|
58256
|
+
return /* @__PURE__ */ b("div", { className: "fixed z-[51]", style: te, children: /* @__PURE__ */ D("div", { className: "relative bg-black text-white rounded-xl shadow-2xl px-3 py-3", children: [
|
|
58246
58257
|
mt,
|
|
58247
58258
|
/* @__PURE__ */ b("div", { className: "text-xs uppercase tracking-wide mb-2 opacity-70", children: "Choose modality" }),
|
|
58248
|
-
/* @__PURE__ */
|
|
58259
|
+
/* @__PURE__ */ D("div", { className: "flex items-center gap-2", children: [
|
|
58249
58260
|
/* @__PURE__ */ b(
|
|
58250
58261
|
"button",
|
|
58251
58262
|
{
|
|
@@ -58295,7 +58306,7 @@ function D6(e) {
|
|
|
58295
58306
|
borderRadius: "8px",
|
|
58296
58307
|
background: "#fff5f5",
|
|
58297
58308
|
color: "#cc0000"
|
|
58298
|
-
}, children: /* @__PURE__ */
|
|
58309
|
+
}, children: /* @__PURE__ */ D("div", { className: "text-center", children: [
|
|
58299
58310
|
/* @__PURE__ */ b("div", { className: "text-4xl mb-4", children: "⚠️" }),
|
|
58300
58311
|
/* @__PURE__ */ b("h3", { className: "text-lg font-semibold mb-2", children: "Widget Error" }),
|
|
58301
58312
|
/* @__PURE__ */ b("p", { className: "text-sm mb-4", children: _ }),
|
|
@@ -58317,7 +58328,7 @@ function D6(e) {
|
|
|
58317
58328
|
contain: "layout style paint"
|
|
58318
58329
|
};
|
|
58319
58330
|
N === "widget" ? (Ns += ` flex min-h-fit ${Qt} ${Pr} ${d}`, or = { ...or, ...Nr }) : (Ns = `${d || ""}`, or = {});
|
|
58320
|
-
const hi = /* @__PURE__ */ b("div", { className: "h-full w-full flex flex-col overflow-hidden relative z-10", children: /* @__PURE__ */
|
|
58331
|
+
const hi = /* @__PURE__ */ b("div", { className: "h-full w-full flex flex-col overflow-hidden relative z-10", children: /* @__PURE__ */ D(gs, { mode: "wait", children: [
|
|
58321
58332
|
F === "welcome" && !J && /* @__PURE__ */ b(
|
|
58322
58333
|
I6,
|
|
58323
58334
|
{
|
|
@@ -58356,7 +58367,7 @@ function D6(e) {
|
|
|
58356
58367
|
},
|
|
58357
58368
|
`loading-${F}`
|
|
58358
58369
|
),
|
|
58359
|
-
F === "voice" && !J && Y && be && /* @__PURE__ */
|
|
58370
|
+
F === "voice" && !J && Y && be && /* @__PURE__ */ D(Qa.Provider, { value: ut, children: [
|
|
58360
58371
|
/* @__PURE__ */ b(lg, {}, `audio-${(Z == null ? void 0 : Z.id) || "no-session"}`),
|
|
58361
58372
|
/* @__PURE__ */ b(og, { label: "Start Audio" }, `start-audio-${(Z == null ? void 0 : Z.id) || "no-session"}`),
|
|
58362
58373
|
/* @__PURE__ */ b(
|
|
@@ -58400,7 +58411,7 @@ function D6(e) {
|
|
|
58400
58411
|
},
|
|
58401
58412
|
"chat-view"
|
|
58402
58413
|
),
|
|
58403
|
-
F === "video" && !J && Y && be && /* @__PURE__ */
|
|
58414
|
+
F === "video" && !J && Y && be && /* @__PURE__ */ D(Qa.Provider, { value: ut, children: [
|
|
58404
58415
|
/* @__PURE__ */ b(lg, {}, `audio-video-${(Z == null ? void 0 : Z.id) || "no-session"}`),
|
|
58405
58416
|
/* @__PURE__ */ b(og, { label: "Start Audio" }, `start-audio-video-${(Z == null ? void 0 : Z.id) || "no-session"}`),
|
|
58406
58417
|
/* @__PURE__ */ b(
|
|
@@ -58451,14 +58462,14 @@ function E$({ logs: e, onClear: t, onExport: n }) {
|
|
|
58451
58462
|
const [i, r] = Fe.useState(!1), [s, o] = Fe.useState(""), a = e.filter(
|
|
58452
58463
|
(c) => !s || c.event.toLowerCase().includes(s.toLowerCase())
|
|
58453
58464
|
);
|
|
58454
|
-
return i ? /* @__PURE__ */ b("div", { className: "fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50", children: /* @__PURE__ */
|
|
58455
|
-
/* @__PURE__ */
|
|
58456
|
-
/* @__PURE__ */
|
|
58465
|
+
return i ? /* @__PURE__ */ b("div", { className: "fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50", children: /* @__PURE__ */ D("div", { className: "bg-white rounded-lg shadow-xl max-w-4xl w-full max-h-[80vh] flex flex-col m-4", children: [
|
|
58466
|
+
/* @__PURE__ */ D("div", { className: "flex items-center justify-between p-4 border-b", children: [
|
|
58467
|
+
/* @__PURE__ */ D("h2", { className: "text-lg font-semibold", children: [
|
|
58457
58468
|
"Session Logs (",
|
|
58458
58469
|
e.length,
|
|
58459
58470
|
")"
|
|
58460
58471
|
] }),
|
|
58461
|
-
/* @__PURE__ */
|
|
58472
|
+
/* @__PURE__ */ D("div", { className: "flex items-center gap-2", children: [
|
|
58462
58473
|
/* @__PURE__ */ b(
|
|
58463
58474
|
"input",
|
|
58464
58475
|
{
|
|
@@ -58495,18 +58506,18 @@ function E$({ logs: e, onClear: t, onExport: n }) {
|
|
|
58495
58506
|
)
|
|
58496
58507
|
] })
|
|
58497
58508
|
] }),
|
|
58498
|
-
/* @__PURE__ */ b("div", { className: "flex-1 overflow-auto p-4", children: a.length === 0 ? /* @__PURE__ */ b("p", { className: "text-gray-500 text-center py-8", children: "No logs found" }) : /* @__PURE__ */ b("div", { className: "space-y-2", children: a.map((c, l) => /* @__PURE__ */
|
|
58499
|
-
/* @__PURE__ */
|
|
58509
|
+
/* @__PURE__ */ b("div", { className: "flex-1 overflow-auto p-4", children: a.length === 0 ? /* @__PURE__ */ b("p", { className: "text-gray-500 text-center py-8", children: "No logs found" }) : /* @__PURE__ */ b("div", { className: "space-y-2", children: a.map((c, l) => /* @__PURE__ */ D("div", { className: "border rounded p-3 text-sm", children: [
|
|
58510
|
+
/* @__PURE__ */ D("div", { className: "flex items-center justify-between mb-1", children: [
|
|
58500
58511
|
/* @__PURE__ */ b("span", { className: "font-semibold text-blue-600", children: c.event }),
|
|
58501
58512
|
/* @__PURE__ */ b("span", { className: "text-gray-500 text-xs", children: new Date(c.timestamp).toLocaleTimeString() })
|
|
58502
58513
|
] }),
|
|
58503
|
-
c.sessionId && /* @__PURE__ */
|
|
58514
|
+
c.sessionId && /* @__PURE__ */ D("div", { className: "text-xs text-gray-600 mb-1", children: [
|
|
58504
58515
|
"Session: ",
|
|
58505
58516
|
c.sessionId
|
|
58506
58517
|
] }),
|
|
58507
58518
|
c.data && /* @__PURE__ */ b("div", { className: "bg-gray-50 p-2 rounded text-xs", children: /* @__PURE__ */ b("pre", { className: "whitespace-pre-wrap overflow-auto", children: JSON.stringify(c.data, null, 2) }) })
|
|
58508
58519
|
] }, l)) }) })
|
|
58509
|
-
] }) }) : /* @__PURE__ */
|
|
58520
|
+
] }) }) : /* @__PURE__ */ D(
|
|
58510
58521
|
"button",
|
|
58511
58522
|
{
|
|
58512
58523
|
onClick: () => r(!0),
|
|
@@ -58520,32 +58531,32 @@ function E$({ logs: e, onClear: t, onExport: n }) {
|
|
|
58520
58531
|
);
|
|
58521
58532
|
}
|
|
58522
58533
|
function _$({ metrics: e }) {
|
|
58523
|
-
return e ? /* @__PURE__ */
|
|
58534
|
+
return e ? /* @__PURE__ */ D("div", { className: "bg-gray-100 p-4 rounded-lg", children: [
|
|
58524
58535
|
/* @__PURE__ */ b("h3", { className: "font-semibold mb-2", children: "Current Session" }),
|
|
58525
|
-
/* @__PURE__ */
|
|
58526
|
-
/* @__PURE__ */
|
|
58536
|
+
/* @__PURE__ */ D("div", { className: "grid grid-cols-2 gap-4 text-sm", children: [
|
|
58537
|
+
/* @__PURE__ */ D("div", { children: [
|
|
58527
58538
|
/* @__PURE__ */ b("span", { className: "text-gray-600", children: "Session ID:" }),
|
|
58528
58539
|
/* @__PURE__ */ b("div", { className: "font-mono text-xs", children: e.sessionId })
|
|
58529
58540
|
] }),
|
|
58530
|
-
/* @__PURE__ */
|
|
58541
|
+
/* @__PURE__ */ D("div", { children: [
|
|
58531
58542
|
/* @__PURE__ */ b("span", { className: "text-gray-600", children: "Start Time:" }),
|
|
58532
58543
|
/* @__PURE__ */ b("div", { children: new Date(e.startTime).toLocaleString() })
|
|
58533
58544
|
] }),
|
|
58534
|
-
/* @__PURE__ */
|
|
58545
|
+
/* @__PURE__ */ D("div", { children: [
|
|
58535
58546
|
/* @__PURE__ */ b("span", { className: "text-gray-600", children: "Messages:" }),
|
|
58536
58547
|
/* @__PURE__ */ b("div", { children: e.totalMessages })
|
|
58537
58548
|
] }),
|
|
58538
|
-
/* @__PURE__ */
|
|
58549
|
+
/* @__PURE__ */ D("div", { children: [
|
|
58539
58550
|
/* @__PURE__ */ b("span", { className: "text-gray-600", children: "Participants:" }),
|
|
58540
58551
|
/* @__PURE__ */ b("div", { children: e.participantCount })
|
|
58541
58552
|
] }),
|
|
58542
|
-
/* @__PURE__ */
|
|
58553
|
+
/* @__PURE__ */ D("div", { children: [
|
|
58543
58554
|
/* @__PURE__ */ b("span", { className: "text-gray-600", children: "Connection Issues:" }),
|
|
58544
58555
|
/* @__PURE__ */ b("div", { children: e.connectionIssues })
|
|
58545
58556
|
] }),
|
|
58546
|
-
/* @__PURE__ */
|
|
58557
|
+
/* @__PURE__ */ D("div", { children: [
|
|
58547
58558
|
/* @__PURE__ */ b("span", { className: "text-gray-600", children: "Duration:" }),
|
|
58548
|
-
/* @__PURE__ */
|
|
58559
|
+
/* @__PURE__ */ D("div", { children: [
|
|
58549
58560
|
Math.round((Date.now() - new Date(e.startTime).getTime()) / 1e3),
|
|
58550
58561
|
"s"
|
|
58551
58562
|
] })
|
|
@@ -58921,7 +58932,7 @@ function j6({
|
|
|
58921
58932
|
o.isActive ? "voxket-session-controls--active" : "voxket-session-controls--inactive",
|
|
58922
58933
|
s
|
|
58923
58934
|
].filter(Boolean).join(" ");
|
|
58924
|
-
return !o.isActive && !i ? /* @__PURE__ */ b("div", { className: d, children: /* @__PURE__ */ b("div", { className: "voxket-controls-inactive", children: /* @__PURE__ */ b("p", { children: "Controls available during active session" }) }) }) : /* @__PURE__ */
|
|
58935
|
+
return !o.isActive && !i ? /* @__PURE__ */ b("div", { className: d, children: /* @__PURE__ */ b("div", { className: "voxket-controls-inactive", children: /* @__PURE__ */ b("p", { children: "Controls available during active session" }) }) }) : /* @__PURE__ */ D("div", { className: d, children: [
|
|
58925
58936
|
i && /* @__PURE__ */ b("div", { className: "voxket-session-actions", children: o.isActive ? /* @__PURE__ */ b(
|
|
58926
58937
|
"button",
|
|
58927
58938
|
{
|
|
@@ -58930,8 +58941,8 @@ function j6({
|
|
|
58930
58941
|
children: "End Session"
|
|
58931
58942
|
}
|
|
58932
58943
|
) : /* @__PURE__ */ b(H6, {}) }),
|
|
58933
|
-
o.isActive && /* @__PURE__ */
|
|
58934
|
-
e && /* @__PURE__ */
|
|
58944
|
+
o.isActive && /* @__PURE__ */ D("div", { className: "voxket-media-controls", children: [
|
|
58945
|
+
e && /* @__PURE__ */ D(
|
|
58935
58946
|
"button",
|
|
58936
58947
|
{
|
|
58937
58948
|
onClick: a.toggle,
|
|
@@ -58944,7 +58955,7 @@ function j6({
|
|
|
58944
58955
|
]
|
|
58945
58956
|
}
|
|
58946
58957
|
),
|
|
58947
|
-
t && /* @__PURE__ */
|
|
58958
|
+
t && /* @__PURE__ */ D(
|
|
58948
58959
|
"button",
|
|
58949
58960
|
{
|
|
58950
58961
|
onClick: c.toggle,
|
|
@@ -58957,7 +58968,7 @@ function j6({
|
|
|
58957
58968
|
]
|
|
58958
58969
|
}
|
|
58959
58970
|
),
|
|
58960
|
-
n && /* @__PURE__ */
|
|
58971
|
+
n && /* @__PURE__ */ D(
|
|
58961
58972
|
"button",
|
|
58962
58973
|
{
|
|
58963
58974
|
onClick: l.toggle,
|
|
@@ -59008,32 +59019,32 @@ function vx({
|
|
|
59008
59019
|
`voxket-session-header--${o.size || "md"}`,
|
|
59009
59020
|
i
|
|
59010
59021
|
].filter(Boolean).join(" ");
|
|
59011
|
-
return /* @__PURE__ */
|
|
59012
|
-
e && /* @__PURE__ */
|
|
59022
|
+
return /* @__PURE__ */ D("div", { className: a, children: [
|
|
59023
|
+
e && /* @__PURE__ */ D("div", { className: "voxket-connection-status", children: [
|
|
59013
59024
|
/* @__PURE__ */ b("div", { className: `voxket-status-indicator ${s.isConnected ? "connected" : "disconnected"}` }),
|
|
59014
59025
|
/* @__PURE__ */ b("span", { className: "voxket-status-text", children: s.isConnecting ? "Connecting..." : s.isConnected ? "Connected" : "Disconnected" })
|
|
59015
59026
|
] }),
|
|
59016
|
-
t && r.session && /* @__PURE__ */
|
|
59017
|
-
/* @__PURE__ */
|
|
59027
|
+
t && r.session && /* @__PURE__ */ D("div", { className: "voxket-session-info", children: [
|
|
59028
|
+
/* @__PURE__ */ D("div", { className: "voxket-session-id", children: [
|
|
59018
59029
|
"Session: ",
|
|
59019
59030
|
r.session.id.slice(-8)
|
|
59020
59031
|
] }),
|
|
59021
|
-
/* @__PURE__ */
|
|
59032
|
+
/* @__PURE__ */ D("div", { className: "voxket-session-state", children: [
|
|
59022
59033
|
"State: ",
|
|
59023
59034
|
r.state
|
|
59024
59035
|
] })
|
|
59025
59036
|
] }),
|
|
59026
|
-
n && r.session && /* @__PURE__ */
|
|
59027
|
-
/* @__PURE__ */
|
|
59037
|
+
n && r.session && /* @__PURE__ */ D("div", { className: "voxket-agent-info", children: [
|
|
59038
|
+
/* @__PURE__ */ D("div", { className: "voxket-agent-id", children: [
|
|
59028
59039
|
"Agent: ",
|
|
59029
59040
|
r.session.agentId
|
|
59030
59041
|
] }),
|
|
59031
|
-
/* @__PURE__ */
|
|
59042
|
+
/* @__PURE__ */ D("div", { className: "voxket-modalities", children: [
|
|
59032
59043
|
"Modalities: ",
|
|
59033
59044
|
r.session.activeModalities.join(", ")
|
|
59034
59045
|
] })
|
|
59035
59046
|
] }),
|
|
59036
|
-
s.error && /* @__PURE__ */
|
|
59047
|
+
s.error && /* @__PURE__ */ D("div", { className: "voxket-error-message", children: [
|
|
59037
59048
|
"Error: ",
|
|
59038
59049
|
s.error.message
|
|
59039
59050
|
] })
|
|
@@ -59051,15 +59062,15 @@ function kx({
|
|
|
59051
59062
|
`voxket-session-content--${o.size || "md"}`,
|
|
59052
59063
|
i
|
|
59053
59064
|
].filter(Boolean).join(" ");
|
|
59054
|
-
return r.isActive ? /* @__PURE__ */ b("div", { className: a, children: n || /* @__PURE__ */
|
|
59055
|
-
e && /* @__PURE__ */
|
|
59056
|
-
/* @__PURE__ */
|
|
59057
|
-
s.messages.map((c) => /* @__PURE__ */
|
|
59065
|
+
return r.isActive ? /* @__PURE__ */ b("div", { className: a, children: n || /* @__PURE__ */ D(Wt, { children: [
|
|
59066
|
+
e && /* @__PURE__ */ D("div", { className: "voxket-chat-container", children: [
|
|
59067
|
+
/* @__PURE__ */ D("div", { className: "voxket-chat-messages", children: [
|
|
59068
|
+
s.messages.map((c) => /* @__PURE__ */ D(
|
|
59058
59069
|
"div",
|
|
59059
59070
|
{
|
|
59060
59071
|
className: `voxket-message voxket-message--${c.sender.type}`,
|
|
59061
59072
|
children: [
|
|
59062
|
-
/* @__PURE__ */
|
|
59073
|
+
/* @__PURE__ */ D("div", { className: "voxket-message-header", children: [
|
|
59063
59074
|
/* @__PURE__ */ b("span", { className: "voxket-message-sender", children: c.sender.name }),
|
|
59064
59075
|
/* @__PURE__ */ b("span", { className: "voxket-message-time", children: c.timestamp.toLocaleTimeString() })
|
|
59065
59076
|
] }),
|
|
@@ -59073,7 +59084,7 @@ function kx({
|
|
|
59073
59084
|
/* @__PURE__ */ b(W6, {})
|
|
59074
59085
|
] }),
|
|
59075
59086
|
t && /* @__PURE__ */ b("div", { className: "voxket-transcriptions", children: /* @__PURE__ */ b("div", { className: "voxket-transcription-placeholder", children: /* @__PURE__ */ b("p", { children: "Voice transcriptions will appear here" }) }) })
|
|
59076
|
-
] }) }) : /* @__PURE__ */ b("div", { className: a, children: /* @__PURE__ */ b("div", { className: "voxket-inactive-state", children: /* @__PURE__ */
|
|
59087
|
+
] }) }) : /* @__PURE__ */ b("div", { className: a, children: /* @__PURE__ */ b("div", { className: "voxket-inactive-state", children: /* @__PURE__ */ D("div", { className: "voxket-inactive-message", children: [
|
|
59077
59088
|
/* @__PURE__ */ b("h3", { children: "Start a conversation" }),
|
|
59078
59089
|
/* @__PURE__ */ b("p", { children: "Begin a session to start chatting with the AI agent" })
|
|
59079
59090
|
] }) }) });
|
|
@@ -59087,7 +59098,7 @@ function W6() {
|
|
|
59087
59098
|
console.error("Failed to send message:", s);
|
|
59088
59099
|
}
|
|
59089
59100
|
};
|
|
59090
|
-
return /* @__PURE__ */
|
|
59101
|
+
return /* @__PURE__ */ D("div", { className: "voxket-chat-input", children: [
|
|
59091
59102
|
/* @__PURE__ */ b(
|
|
59092
59103
|
"input",
|
|
59093
59104
|
{
|
|
@@ -59126,23 +59137,23 @@ function wx({
|
|
|
59126
59137
|
`voxket-session-footer--${c.size || "md"}`,
|
|
59127
59138
|
r
|
|
59128
59139
|
].filter(Boolean).join(" ");
|
|
59129
|
-
return s.isActive ? /* @__PURE__ */ b("div", { className: l, children: i || /* @__PURE__ */
|
|
59130
|
-
n && /* @__PURE__ */
|
|
59140
|
+
return s.isActive ? /* @__PURE__ */ b("div", { className: l, children: i || /* @__PURE__ */ D(Wt, { children: [
|
|
59141
|
+
n && /* @__PURE__ */ D("div", { className: "voxket-session-status", children: [
|
|
59131
59142
|
/* @__PURE__ */ b("div", { className: "voxket-status-indicator voxket-status-indicator--active" }),
|
|
59132
59143
|
/* @__PURE__ */ b("span", { className: "voxket-status-text", children: "Session Active" })
|
|
59133
59144
|
] }),
|
|
59134
|
-
e && o.metrics && /* @__PURE__ */
|
|
59135
|
-
/* @__PURE__ */
|
|
59145
|
+
e && o.metrics && /* @__PURE__ */ D("div", { className: "voxket-session-metrics", children: [
|
|
59146
|
+
/* @__PURE__ */ D("div", { className: "voxket-metric", children: [
|
|
59136
59147
|
/* @__PURE__ */ b("span", { className: "voxket-metric-label", children: "Duration:" }),
|
|
59137
59148
|
/* @__PURE__ */ b("span", { className: "voxket-metric-value", children: G6(o.duration || 0) })
|
|
59138
59149
|
] }),
|
|
59139
|
-
/* @__PURE__ */
|
|
59150
|
+
/* @__PURE__ */ D("div", { className: "voxket-metric", children: [
|
|
59140
59151
|
/* @__PURE__ */ b("span", { className: "voxket-metric-label", children: "Messages:" }),
|
|
59141
59152
|
/* @__PURE__ */ b("span", { className: "voxket-metric-value", children: o.metrics.messageCount })
|
|
59142
59153
|
] })
|
|
59143
59154
|
] }),
|
|
59144
|
-
t && /* @__PURE__ */
|
|
59145
|
-
/* @__PURE__ */
|
|
59155
|
+
t && /* @__PURE__ */ D("div", { className: "voxket-participants-info", children: [
|
|
59156
|
+
/* @__PURE__ */ D("span", { className: "voxket-participants-count", children: [
|
|
59146
59157
|
a.count,
|
|
59147
59158
|
" participant",
|
|
59148
59159
|
a.count !== 1 ? "s" : ""
|
|
@@ -59184,7 +59195,7 @@ function q6({
|
|
|
59184
59195
|
u.isActive ? "voxket-session--active" : "voxket-session--inactive",
|
|
59185
59196
|
c
|
|
59186
59197
|
].filter(Boolean).join(" ");
|
|
59187
|
-
return /* @__PURE__ */ b($6, { variant: s, size: o, theme: a, className: c, children: /* @__PURE__ */ b("div", { className: h, children: l || /* @__PURE__ */
|
|
59198
|
+
return /* @__PURE__ */ b($6, { variant: s, size: o, theme: a, className: c, children: /* @__PURE__ */ b("div", { className: h, children: l || /* @__PURE__ */ D(Wt, { children: [
|
|
59188
59199
|
/* @__PURE__ */ b(pu, { name: "header", fallback: /* @__PURE__ */ b(vx, {}) }),
|
|
59189
59200
|
/* @__PURE__ */ b(pu, { name: "content", fallback: /* @__PURE__ */ b(kx, {}) }),
|
|
59190
59201
|
/* @__PURE__ */ b(pu, { name: "footer", fallback: /* @__PURE__ */ b(wx, {}) })
|
|
@@ -59523,7 +59534,7 @@ function mu({
|
|
|
59523
59534
|
d ? "voxket-video-tile--hovered" : "",
|
|
59524
59535
|
o
|
|
59525
59536
|
].filter(Boolean).join(" ");
|
|
59526
|
-
return /* @__PURE__ */
|
|
59537
|
+
return /* @__PURE__ */ D(
|
|
59527
59538
|
"div",
|
|
59528
59539
|
{
|
|
59529
59540
|
className: p,
|
|
@@ -59544,17 +59555,17 @@ function mu({
|
|
|
59544
59555
|
muted: e.isLocal
|
|
59545
59556
|
}
|
|
59546
59557
|
),
|
|
59547
|
-
!e.isEnabled && /* @__PURE__ */
|
|
59558
|
+
!e.isEnabled && /* @__PURE__ */ D("div", { className: "voxket-video-placeholder", children: [
|
|
59548
59559
|
/* @__PURE__ */ b("div", { className: "voxket-video-placeholder-icon", children: e.isScreenShare ? "🖥️" : "📹" }),
|
|
59549
59560
|
/* @__PURE__ */ b("p", { className: "voxket-video-placeholder-text", children: e.isScreenShare ? "Screen sharing paused" : "Camera off" })
|
|
59550
59561
|
] }),
|
|
59551
|
-
/* @__PURE__ */
|
|
59552
|
-
i && t && /* @__PURE__ */
|
|
59562
|
+
/* @__PURE__ */ D("div", { className: "voxket-video-overlay", children: [
|
|
59563
|
+
i && t && /* @__PURE__ */ D("div", { className: "voxket-video-name", children: [
|
|
59553
59564
|
t,
|
|
59554
59565
|
e.isLocal && " (You)"
|
|
59555
59566
|
] }),
|
|
59556
59567
|
r && !e.isEnabled && /* @__PURE__ */ b("div", { className: "voxket-video-mute-indicator", children: "🔇" }),
|
|
59557
|
-
n && (d || s) && /* @__PURE__ */
|
|
59568
|
+
n && (d || s) && /* @__PURE__ */ D("div", { className: "voxket-video-controls", children: [
|
|
59558
59569
|
/* @__PURE__ */ b(
|
|
59559
59570
|
"button",
|
|
59560
59571
|
{
|
|
@@ -59634,11 +59645,11 @@ function L$({
|
|
|
59634
59645
|
`voxket-video-grid--${d.length}-tracks`,
|
|
59635
59646
|
n
|
|
59636
59647
|
].filter(Boolean).join(" ");
|
|
59637
|
-
return e.length === 0 ? /* @__PURE__ */ b("div", { className: "voxket-video-grid-empty", children: /* @__PURE__ */
|
|
59648
|
+
return e.length === 0 ? /* @__PURE__ */ b("div", { className: "voxket-video-grid-empty", children: /* @__PURE__ */ D("div", { className: "voxket-video-grid-empty-content", children: [
|
|
59638
59649
|
/* @__PURE__ */ b("div", { className: "voxket-video-grid-empty-icon", children: "📹" }),
|
|
59639
59650
|
/* @__PURE__ */ b("p", { children: "No video tracks available" })
|
|
59640
|
-
] }) }) : /* @__PURE__ */
|
|
59641
|
-
/* @__PURE__ */
|
|
59651
|
+
] }) }) : /* @__PURE__ */ D("div", { className: g, children: [
|
|
59652
|
+
/* @__PURE__ */ D("div", { className: "voxket-video-grid-controls", children: [
|
|
59642
59653
|
/* @__PURE__ */ b("div", { className: "voxket-video-layout-controls", children: ["grid", "speaker", "sidebar", "gallery"].map((x) => /* @__PURE__ */ b(
|
|
59643
59654
|
"button",
|
|
59644
59655
|
{
|
|
@@ -59649,13 +59660,13 @@ function L$({
|
|
|
59649
59660
|
},
|
|
59650
59661
|
x
|
|
59651
59662
|
)) }),
|
|
59652
|
-
/* @__PURE__ */
|
|
59663
|
+
/* @__PURE__ */ D("div", { className: "voxket-video-count", children: [
|
|
59653
59664
|
e.length,
|
|
59654
59665
|
" participant",
|
|
59655
59666
|
e.length !== 1 ? "s" : ""
|
|
59656
59667
|
] })
|
|
59657
59668
|
] }),
|
|
59658
|
-
/* @__PURE__ */ b("div", { className: "voxket-video-grid-content", style: f, children: t.type === "speaker" && l ? /* @__PURE__ */
|
|
59669
|
+
/* @__PURE__ */ b("div", { className: "voxket-video-grid-content", style: f, children: t.type === "speaker" && l ? /* @__PURE__ */ D(Wt, { children: [
|
|
59659
59670
|
/* @__PURE__ */ b("div", { className: "voxket-video-speaker-main", children: /* @__PURE__ */ b(
|
|
59660
59671
|
mu,
|
|
59661
59672
|
{
|
|
@@ -59692,7 +59703,7 @@ function L$({
|
|
|
59692
59703
|
x.id
|
|
59693
59704
|
))
|
|
59694
59705
|
) }),
|
|
59695
|
-
o && h > 1 && /* @__PURE__ */
|
|
59706
|
+
o && h > 1 && /* @__PURE__ */ D("div", { className: "voxket-video-pagination", children: [
|
|
59696
59707
|
/* @__PURE__ */ b(
|
|
59697
59708
|
"button",
|
|
59698
59709
|
{
|
|
@@ -59702,7 +59713,7 @@ function L$({
|
|
|
59702
59713
|
children: "←"
|
|
59703
59714
|
}
|
|
59704
59715
|
),
|
|
59705
|
-
/* @__PURE__ */
|
|
59716
|
+
/* @__PURE__ */ D("span", { className: "voxket-pagination-info", children: [
|
|
59706
59717
|
"Page ",
|
|
59707
59718
|
a + 1,
|
|
59708
59719
|
" of ",
|
|
@@ -59756,10 +59767,10 @@ function F$({
|
|
|
59756
59767
|
aspectRatio: "16:9"
|
|
59757
59768
|
});
|
|
59758
59769
|
};
|
|
59759
|
-
return /* @__PURE__ */
|
|
59760
|
-
s && /* @__PURE__ */
|
|
59770
|
+
return /* @__PURE__ */ D("div", { className: c, children: [
|
|
59771
|
+
s && /* @__PURE__ */ D("div", { className: "voxket-video-controls-section", children: [
|
|
59761
59772
|
/* @__PURE__ */ b("h4", { className: "voxket-video-controls-title", children: "Camera" }),
|
|
59762
|
-
/* @__PURE__ */
|
|
59773
|
+
/* @__PURE__ */ D(
|
|
59763
59774
|
"button",
|
|
59764
59775
|
{
|
|
59765
59776
|
className: `voxket-control-btn ${e != null && e.isEnabled ? "voxket-control-btn--active" : ""}`,
|
|
@@ -59771,15 +59782,15 @@ function F$({
|
|
|
59771
59782
|
]
|
|
59772
59783
|
}
|
|
59773
59784
|
),
|
|
59774
|
-
(e == null ? void 0 : e.dimensions) && /* @__PURE__ */
|
|
59785
|
+
(e == null ? void 0 : e.dimensions) && /* @__PURE__ */ D("div", { className: "voxket-video-info", children: [
|
|
59775
59786
|
e.dimensions.width,
|
|
59776
59787
|
" × ",
|
|
59777
59788
|
e.dimensions.height
|
|
59778
59789
|
] })
|
|
59779
59790
|
] }),
|
|
59780
|
-
o && /* @__PURE__ */
|
|
59791
|
+
o && /* @__PURE__ */ D("div", { className: "voxket-video-controls-section", children: [
|
|
59781
59792
|
/* @__PURE__ */ b("h4", { className: "voxket-video-controls-title", children: "Screen Share" }),
|
|
59782
|
-
/* @__PURE__ */
|
|
59793
|
+
/* @__PURE__ */ D(
|
|
59783
59794
|
"button",
|
|
59784
59795
|
{
|
|
59785
59796
|
className: `voxket-control-btn ${e != null && e.isScreenShare ? "voxket-control-btn--active" : ""}`,
|
|
@@ -59792,14 +59803,14 @@ function F$({
|
|
|
59792
59803
|
}
|
|
59793
59804
|
)
|
|
59794
59805
|
] }),
|
|
59795
|
-
r && /* @__PURE__ */
|
|
59806
|
+
r && /* @__PURE__ */ D("div", { className: "voxket-video-controls-section", children: [
|
|
59796
59807
|
/* @__PURE__ */ b("h4", { className: "voxket-video-controls-title", children: "Layout" }),
|
|
59797
59808
|
/* @__PURE__ */ b("div", { className: "voxket-layout-buttons", children: [
|
|
59798
59809
|
{ type: "grid", icon: "⊞", label: "Grid" },
|
|
59799
59810
|
{ type: "speaker", icon: "🎤", label: "Speaker" },
|
|
59800
59811
|
{ type: "sidebar", icon: "⫸", label: "Sidebar" },
|
|
59801
59812
|
{ type: "gallery", icon: "⊡", label: "Gallery" }
|
|
59802
|
-
].map(({ type: u, icon: d, label: h }) => /* @__PURE__ */
|
|
59813
|
+
].map(({ type: u, icon: d, label: h }) => /* @__PURE__ */ D(
|
|
59803
59814
|
"button",
|
|
59804
59815
|
{
|
|
59805
59816
|
className: "voxket-layout-control-btn",
|
|
@@ -59813,28 +59824,28 @@ function F$({
|
|
|
59813
59824
|
u
|
|
59814
59825
|
)) })
|
|
59815
59826
|
] }),
|
|
59816
|
-
/* @__PURE__ */
|
|
59827
|
+
/* @__PURE__ */ D("div", { className: "voxket-video-controls-section", children: [
|
|
59817
59828
|
/* @__PURE__ */ b("h4", { className: "voxket-video-controls-title", children: "Video Settings" }),
|
|
59818
|
-
/* @__PURE__ */
|
|
59819
|
-
/* @__PURE__ */
|
|
59829
|
+
/* @__PURE__ */ D("div", { className: "voxket-video-settings", children: [
|
|
59830
|
+
/* @__PURE__ */ D("div", { className: "voxket-setting-group", children: [
|
|
59820
59831
|
/* @__PURE__ */ b("label", { className: "voxket-setting-label", children: "Quality" }),
|
|
59821
|
-
/* @__PURE__ */
|
|
59832
|
+
/* @__PURE__ */ D("select", { className: "voxket-setting-select", children: [
|
|
59822
59833
|
/* @__PURE__ */ b("option", { value: "high", children: "High (720p)" }),
|
|
59823
59834
|
/* @__PURE__ */ b("option", { value: "medium", children: "Medium (480p)" }),
|
|
59824
59835
|
/* @__PURE__ */ b("option", { value: "low", children: "Low (240p)" })
|
|
59825
59836
|
] })
|
|
59826
59837
|
] }),
|
|
59827
|
-
/* @__PURE__ */
|
|
59838
|
+
/* @__PURE__ */ D("div", { className: "voxket-setting-group", children: [
|
|
59828
59839
|
/* @__PURE__ */ b("label", { className: "voxket-setting-label", children: "Frame Rate" }),
|
|
59829
|
-
/* @__PURE__ */
|
|
59840
|
+
/* @__PURE__ */ D("select", { className: "voxket-setting-select", children: [
|
|
59830
59841
|
/* @__PURE__ */ b("option", { value: "30", children: "30 fps" }),
|
|
59831
59842
|
/* @__PURE__ */ b("option", { value: "15", children: "15 fps" }),
|
|
59832
59843
|
/* @__PURE__ */ b("option", { value: "10", children: "10 fps" })
|
|
59833
59844
|
] })
|
|
59834
59845
|
] }),
|
|
59835
|
-
/* @__PURE__ */
|
|
59846
|
+
/* @__PURE__ */ D("div", { className: "voxket-setting-group", children: [
|
|
59836
59847
|
/* @__PURE__ */ b("label", { className: "voxket-setting-label", children: "Bandwidth" }),
|
|
59837
|
-
/* @__PURE__ */
|
|
59848
|
+
/* @__PURE__ */ D("select", { className: "voxket-setting-select", children: [
|
|
59838
59849
|
/* @__PURE__ */ b("option", { value: "unlimited", children: "Unlimited" }),
|
|
59839
59850
|
/* @__PURE__ */ b("option", { value: "1000", children: "1 Mbps" }),
|
|
59840
59851
|
/* @__PURE__ */ b("option", { value: "500", children: "500 Kbps" }),
|
|
@@ -59843,18 +59854,18 @@ function F$({
|
|
|
59843
59854
|
] })
|
|
59844
59855
|
] })
|
|
59845
59856
|
] }),
|
|
59846
|
-
/* @__PURE__ */
|
|
59857
|
+
/* @__PURE__ */ D("div", { className: "voxket-video-controls-section", children: [
|
|
59847
59858
|
/* @__PURE__ */ b("h4", { className: "voxket-video-controls-title", children: "Statistics" }),
|
|
59848
|
-
/* @__PURE__ */
|
|
59849
|
-
/* @__PURE__ */
|
|
59859
|
+
/* @__PURE__ */ D("div", { className: "voxket-video-stats", children: [
|
|
59860
|
+
/* @__PURE__ */ D("div", { className: "voxket-stat-item", children: [
|
|
59850
59861
|
/* @__PURE__ */ b("span", { className: "voxket-stat-label", children: "Resolution:" }),
|
|
59851
59862
|
/* @__PURE__ */ b("span", { className: "voxket-stat-value", children: e != null && e.dimensions ? `${e.dimensions.width}×${e.dimensions.height}` : "N/A" })
|
|
59852
59863
|
] }),
|
|
59853
|
-
/* @__PURE__ */
|
|
59864
|
+
/* @__PURE__ */ D("div", { className: "voxket-stat-item", children: [
|
|
59854
59865
|
/* @__PURE__ */ b("span", { className: "voxket-stat-label", children: "Source:" }),
|
|
59855
59866
|
/* @__PURE__ */ b("span", { className: "voxket-stat-value", children: (e == null ? void 0 : e.source) || "None" })
|
|
59856
59867
|
] }),
|
|
59857
|
-
/* @__PURE__ */
|
|
59868
|
+
/* @__PURE__ */ D("div", { className: "voxket-stat-item", children: [
|
|
59858
59869
|
/* @__PURE__ */ b("span", { className: "voxket-stat-label", children: "Status:" }),
|
|
59859
59870
|
/* @__PURE__ */ b("span", { className: `voxket-stat-value ${e != null && e.isEnabled ? "voxket-stat-value--active" : "voxket-stat-value--inactive"}`, children: e != null && e.isEnabled ? "Active" : "Inactive" })
|
|
59860
59871
|
] })
|
|
@@ -59863,8 +59874,8 @@ function F$({
|
|
|
59863
59874
|
] });
|
|
59864
59875
|
}
|
|
59865
59876
|
const l$ = ({ handler: e, loadData: t, data: n, client: i, addLocalMessage: r }) => {
|
|
59866
|
-
const [s, o] =
|
|
59867
|
-
|
|
59877
|
+
const [s, o] = O.useState(null), [a, c] = O.useState(!0), [l, u] = O.useState(!1), [d] = O.useState(Date.now()), [h, f] = O.useState("pending");
|
|
59878
|
+
O.useEffect(() => {
|
|
59868
59879
|
(async () => {
|
|
59869
59880
|
try {
|
|
59870
59881
|
if (c(!0), n && typeof n == "object") {
|
|
@@ -59888,7 +59899,7 @@ const l$ = ({ handler: e, loadData: t, data: n, client: i, addLocalMessage: r })
|
|
|
59888
59899
|
}, [n, t]);
|
|
59889
59900
|
const m = ({ message: g, assignment: x }) => {
|
|
59890
59901
|
const S = g.toLowerCase().includes("declined"), w = S ? "bg-red-50 border-red-200" : "bg-green-50 border-green-200", k = S ? "text-red-700" : "text-green-700", T = S ? "❌" : "🎉";
|
|
59891
|
-
return /* @__PURE__ */
|
|
59902
|
+
return /* @__PURE__ */ D("div", { className: `max-w-sm mx-auto ${w} border rounded-lg shadow p-3 flex flex-col items-center`, children: [
|
|
59892
59903
|
/* @__PURE__ */ b("div", { className: "text-2xl mb-2", children: T }),
|
|
59893
59904
|
/* @__PURE__ */ b("div", { className: `${k} font-semibold text-sm mb-1`, children: g }),
|
|
59894
59905
|
/* @__PURE__ */ b("div", { className: "text-xs text-gray-600 text-center mb-1", children: x.title }),
|
|
@@ -59923,7 +59934,7 @@ const l$ = ({ handler: e, loadData: t, data: n, client: i, addLocalMessage: r })
|
|
|
59923
59934
|
}
|
|
59924
59935
|
}
|
|
59925
59936
|
};
|
|
59926
|
-
return a ? /* @__PURE__ */ b("div", { className: "max-w-sm mx-auto bg-white rounded-lg shadow-lg p-3", children: /* @__PURE__ */
|
|
59937
|
+
return a ? /* @__PURE__ */ b("div", { className: "max-w-sm mx-auto bg-white rounded-lg shadow-lg p-3", children: /* @__PURE__ */ D("div", { className: "flex items-center justify-center py-4", children: [
|
|
59927
59938
|
/* @__PURE__ */ b("div", { className: "animate-spin rounded-full h-4 w-4 border-b-2 border-blue-600" }),
|
|
59928
59939
|
/* @__PURE__ */ b("span", { className: "ml-2 text-xs text-gray-600", children: "Loading assignment..." })
|
|
59929
59940
|
] }) }) : s ? h === "accepted" || h === "declined" || h === "error" ? /* @__PURE__ */ b(
|
|
@@ -59932,25 +59943,25 @@ const l$ = ({ handler: e, loadData: t, data: n, client: i, addLocalMessage: r })
|
|
|
59932
59943
|
message: h === "accepted" ? "Assignment accepted!" : h === "declined" ? "Assignment declined" : "Assignment error occurred",
|
|
59933
59944
|
assignment: s
|
|
59934
59945
|
}
|
|
59935
|
-
) : /* @__PURE__ */
|
|
59946
|
+
) : /* @__PURE__ */ D("div", { className: "max-w-sm mx-auto bg-white rounded-lg shadow-lg overflow-hidden", children: [
|
|
59936
59947
|
/* @__PURE__ */ b("div", { className: "bg-gradient-to-r from-blue-600 to-purple-600 text-white p-3", children: /* @__PURE__ */ b("div", { className: "flex items-center justify-between", children: /* @__PURE__ */ b("h3", { className: "text-xs font-semibold text-white truncate", children: s.title }) }) }),
|
|
59937
|
-
/* @__PURE__ */
|
|
59948
|
+
/* @__PURE__ */ D("div", { className: "p-3 text-black", children: [
|
|
59938
59949
|
/* @__PURE__ */ b("div", { className: "bg-gray-50 rounded p-2 mb-3", children: /* @__PURE__ */ b("p", { className: "text-xs text-black leading-snug", children: s.description }) }),
|
|
59939
|
-
/* @__PURE__ */ b("div", { className: "mb-3 text-black", children: /* @__PURE__ */
|
|
59950
|
+
/* @__PURE__ */ b("div", { className: "mb-3 text-black", children: /* @__PURE__ */ D("div", { className: "flex items-center text-xs text-gray-600", children: [
|
|
59940
59951
|
/* @__PURE__ */ b("span", { className: "text-xs mr-1", children: "📅" }),
|
|
59941
|
-
/* @__PURE__ */
|
|
59952
|
+
/* @__PURE__ */ D("span", { children: [
|
|
59942
59953
|
"Est: ",
|
|
59943
59954
|
s.estimated_time_of_completion
|
|
59944
59955
|
] })
|
|
59945
59956
|
] }) }),
|
|
59946
|
-
/* @__PURE__ */
|
|
59957
|
+
/* @__PURE__ */ D("div", { className: "flex gap-2", children: [
|
|
59947
59958
|
/* @__PURE__ */ b(
|
|
59948
59959
|
"button",
|
|
59949
59960
|
{
|
|
59950
59961
|
onClick: p,
|
|
59951
59962
|
disabled: l,
|
|
59952
59963
|
className: "flex-1 bg-green-600 text-white py-2 px-3 rounded text-xs font-medium hover:bg-green-700 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",
|
|
59953
|
-
children: l ? /* @__PURE__ */
|
|
59964
|
+
children: l ? /* @__PURE__ */ D("span", { className: "flex items-center justify-center", children: [
|
|
59954
59965
|
/* @__PURE__ */ b("div", { className: "animate-spin rounded-full h-2 w-2 border-b-2 border-white mr-1" }),
|
|
59955
59966
|
/* @__PURE__ */ b("span", { className: "text-xs", children: "Processing..." })
|
|
59956
59967
|
] }) : "Accept"
|
|
@@ -59967,14 +59978,14 @@ const l$ = ({ handler: e, loadData: t, data: n, client: i, addLocalMessage: r })
|
|
|
59967
59978
|
)
|
|
59968
59979
|
] })
|
|
59969
59980
|
] })
|
|
59970
|
-
] }) : /* @__PURE__ */ b("div", { className: "max-w-sm mx-auto bg-white rounded-lg shadow-lg p-3", children: /* @__PURE__ */
|
|
59981
|
+
] }) : /* @__PURE__ */ b("div", { className: "max-w-sm mx-auto bg-white rounded-lg shadow-lg p-3", children: /* @__PURE__ */ D("div", { className: "text-center py-4", children: [
|
|
59971
59982
|
/* @__PURE__ */ b("div", { className: "text-red-600 text-sm font-semibold mb-2", children: "⚠️ Assignment Error" }),
|
|
59972
59983
|
/* @__PURE__ */ b("p", { className: "text-xs text-gray-600 mb-3", children: "Failed to load assignment details." })
|
|
59973
59984
|
] }) });
|
|
59974
59985
|
};
|
|
59975
59986
|
function U$() {
|
|
59976
|
-
const [e, t] =
|
|
59977
|
-
return
|
|
59987
|
+
const [e, t] = O.useState(null), [n, i] = O.useState([]);
|
|
59988
|
+
return O.useEffect(() => {
|
|
59978
59989
|
const a = new Cf({
|
|
59979
59990
|
appId: "your-app-id",
|
|
59980
59991
|
appSecret: "your-app-secret",
|
|
@@ -59990,12 +60001,12 @@ function U$() {
|
|
|
59990
60001
|
}), () => {
|
|
59991
60002
|
a.disconnect();
|
|
59992
60003
|
};
|
|
59993
|
-
}, []), /* @__PURE__ */
|
|
60004
|
+
}, []), /* @__PURE__ */ D("div", { className: "p-6", children: [
|
|
59994
60005
|
/* @__PURE__ */ b("h2", { className: "text-2xl font-bold mb-6", children: "Frontend RPC Examples" }),
|
|
59995
|
-
/* @__PURE__ */
|
|
59996
|
-
/* @__PURE__ */
|
|
60006
|
+
/* @__PURE__ */ D("div", { className: "space-y-4 mb-6", children: [
|
|
60007
|
+
/* @__PURE__ */ D("div", { children: [
|
|
59997
60008
|
/* @__PURE__ */ b("h3", { className: "text-lg font-semibold mb-2", children: "Register RPC Methods" }),
|
|
59998
|
-
/* @__PURE__ */
|
|
60009
|
+
/* @__PURE__ */ D("div", { className: "space-x-2", children: [
|
|
59999
60010
|
/* @__PURE__ */ b(
|
|
60000
60011
|
"button",
|
|
60001
60012
|
{
|
|
@@ -60024,7 +60035,7 @@ function U$() {
|
|
|
60024
60035
|
onClick: async () => {
|
|
60025
60036
|
if (!e) return;
|
|
60026
60037
|
const a = ({ handler: c, timeout: l }) => {
|
|
60027
|
-
const [u, d] =
|
|
60038
|
+
const [u, d] = O.useState(""), h = [
|
|
60028
60039
|
{ id: "pro", name: "Pro Plan", price: "$29/month" },
|
|
60029
60040
|
{ id: "enterprise", name: "Enterprise Plan", price: "$99/month" },
|
|
60030
60041
|
{ id: "basic", name: "Basic Plan", price: "$9/month" }
|
|
@@ -60039,7 +60050,7 @@ function U$() {
|
|
|
60039
60050
|
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
60040
60051
|
});
|
|
60041
60052
|
};
|
|
60042
|
-
return /* @__PURE__ */
|
|
60053
|
+
return /* @__PURE__ */ D("div", { className: "p-6 bg-white rounded-lg", children: [
|
|
60043
60054
|
/* @__PURE__ */ b("h3", { className: "text-xl font-bold mb-4", children: "Choose Your Plan" }),
|
|
60044
60055
|
/* @__PURE__ */ b("p", { className: "text-gray-600 mb-4", children: "Select the plan that best fits your needs:" }),
|
|
60045
60056
|
/* @__PURE__ */ b("div", { className: "space-y-3 mb-6", children: h.map((p) => /* @__PURE__ */ b(
|
|
@@ -60047,8 +60058,8 @@ function U$() {
|
|
|
60047
60058
|
{
|
|
60048
60059
|
onClick: () => f(p.id),
|
|
60049
60060
|
className: `p-4 border rounded-lg cursor-pointer transition-all ${u === p.id ? "border-blue-500 bg-blue-50" : "border-gray-200 hover:border-gray-300"}`,
|
|
60050
|
-
children: /* @__PURE__ */
|
|
60051
|
-
/* @__PURE__ */
|
|
60061
|
+
children: /* @__PURE__ */ D("div", { className: "flex justify-between items-center", children: [
|
|
60062
|
+
/* @__PURE__ */ D("div", { children: [
|
|
60052
60063
|
/* @__PURE__ */ b("h4", { className: "font-medium", children: p.name }),
|
|
60053
60064
|
/* @__PURE__ */ b("p", { className: "text-gray-600 text-sm", children: p.price })
|
|
60054
60065
|
] }),
|
|
@@ -60057,7 +60068,7 @@ function U$() {
|
|
|
60057
60068
|
},
|
|
60058
60069
|
p.id
|
|
60059
60070
|
)) }),
|
|
60060
|
-
/* @__PURE__ */
|
|
60071
|
+
/* @__PURE__ */ D("div", { className: "flex justify-end space-x-3", children: [
|
|
60061
60072
|
/* @__PURE__ */ b(
|
|
60062
60073
|
"button",
|
|
60063
60074
|
{
|
|
@@ -60076,7 +60087,7 @@ function U$() {
|
|
|
60076
60087
|
}
|
|
60077
60088
|
)
|
|
60078
60089
|
] }),
|
|
60079
|
-
l && /* @__PURE__ */
|
|
60090
|
+
l && /* @__PURE__ */ D("p", { className: "text-xs text-gray-500 mt-2", children: [
|
|
60080
60091
|
"Time remaining: ",
|
|
60081
60092
|
l,
|
|
60082
60093
|
" seconds"
|
|
@@ -60105,16 +60116,16 @@ function U$() {
|
|
|
60105
60116
|
onClick: async () => {
|
|
60106
60117
|
if (!e) return;
|
|
60107
60118
|
const a = ({ handler: c }) => {
|
|
60108
|
-
const [l, u] =
|
|
60119
|
+
const [l, u] = O.useState(0), [d, h] = O.useState(""), f = () => {
|
|
60109
60120
|
c == null || c.didSuccess({
|
|
60110
60121
|
rating: l,
|
|
60111
60122
|
comment: d,
|
|
60112
60123
|
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
60113
60124
|
});
|
|
60114
60125
|
};
|
|
60115
|
-
return /* @__PURE__ */
|
|
60126
|
+
return /* @__PURE__ */ D("div", { className: "p-4 bg-white rounded-lg", children: [
|
|
60116
60127
|
/* @__PURE__ */ b("h3", { className: "text-lg font-semibold mb-3", children: "How was your experience?" }),
|
|
60117
|
-
/* @__PURE__ */
|
|
60128
|
+
/* @__PURE__ */ D("div", { className: "mb-4", children: [
|
|
60118
60129
|
/* @__PURE__ */ b("p", { className: "text-sm text-gray-600 mb-2", children: "Rate your experience:" }),
|
|
60119
60130
|
/* @__PURE__ */ b("div", { className: "flex space-x-1", children: [1, 2, 3, 4, 5].map((m) => /* @__PURE__ */ b(
|
|
60120
60131
|
"button",
|
|
@@ -60126,7 +60137,7 @@ function U$() {
|
|
|
60126
60137
|
m
|
|
60127
60138
|
)) })
|
|
60128
60139
|
] }),
|
|
60129
|
-
/* @__PURE__ */
|
|
60140
|
+
/* @__PURE__ */ D("div", { className: "mb-4", children: [
|
|
60130
60141
|
/* @__PURE__ */ b("p", { className: "text-sm text-gray-600 mb-2", children: "Additional comments:" }),
|
|
60131
60142
|
/* @__PURE__ */ b(
|
|
60132
60143
|
"textarea",
|
|
@@ -60139,7 +60150,7 @@ function U$() {
|
|
|
60139
60150
|
}
|
|
60140
60151
|
)
|
|
60141
60152
|
] }),
|
|
60142
|
-
/* @__PURE__ */
|
|
60153
|
+
/* @__PURE__ */ D("div", { className: "flex justify-end space-x-2", children: [
|
|
60143
60154
|
/* @__PURE__ */ b(
|
|
60144
60155
|
"button",
|
|
60145
60156
|
{
|
|
@@ -60178,15 +60189,15 @@ function U$() {
|
|
|
60178
60189
|
)
|
|
60179
60190
|
] })
|
|
60180
60191
|
] }),
|
|
60181
|
-
/* @__PURE__ */
|
|
60192
|
+
/* @__PURE__ */ D("div", { children: [
|
|
60182
60193
|
/* @__PURE__ */ b("h3", { className: "text-lg font-semibold mb-2", children: "Registered Methods" }),
|
|
60183
60194
|
n.length > 0 ? /* @__PURE__ */ b("ul", { className: "list-disc list-inside space-y-1", children: n.map((a) => /* @__PURE__ */ b("li", { className: "text-gray-700", children: /* @__PURE__ */ b("code", { className: "bg-gray-100 px-2 py-1 rounded", children: a }) }, a)) }) : /* @__PURE__ */ b("p", { className: "text-gray-500", children: "No methods registered yet" })
|
|
60184
60195
|
] })
|
|
60185
60196
|
] }),
|
|
60186
|
-
/* @__PURE__ */
|
|
60197
|
+
/* @__PURE__ */ D("div", { className: "bg-gray-50 p-4 rounded-lg", children: [
|
|
60187
60198
|
/* @__PURE__ */ b("h3", { className: "text-lg font-semibold mb-2", children: "How it works" }),
|
|
60188
|
-
/* @__PURE__ */
|
|
60189
|
-
/* @__PURE__ */
|
|
60199
|
+
/* @__PURE__ */ D("ol", { className: "list-decimal list-inside space-y-2 text-sm text-gray-700", children: [
|
|
60200
|
+
/* @__PURE__ */ D("li", { children: [
|
|
60190
60201
|
"Register RPC methods with React components using ",
|
|
60191
60202
|
/* @__PURE__ */ b("code", { children: "client.registerFrontendRPC()" })
|
|
60192
60203
|
] }),
|
|
@@ -60196,7 +60207,7 @@ function U$() {
|
|
|
60196
60207
|
/* @__PURE__ */ b("li", { children: "Each component has a timeout and can handle success/failure scenarios" })
|
|
60197
60208
|
] })
|
|
60198
60209
|
] }),
|
|
60199
|
-
/* @__PURE__ */
|
|
60210
|
+
/* @__PURE__ */ D("div", { className: "mt-6 bg-blue-50 p-4 rounded-lg", children: [
|
|
60200
60211
|
/* @__PURE__ */ b("h3", { className: "text-lg font-semibold mb-2 text-blue-800", children: "Agent Side" }),
|
|
60201
60212
|
/* @__PURE__ */ b("p", { className: "text-sm text-blue-700 mb-2", children: "On the agent side, you can call these RPC methods like this:" }),
|
|
60202
60213
|
/* @__PURE__ */ b("pre", { className: "bg-white p-3 rounded text-xs text-gray-800 overflow-x-auto", children: `// Agent calls RPC method
|
|
@@ -60283,8 +60294,8 @@ const B$ = {
|
|
|
60283
60294
|
}
|
|
60284
60295
|
};
|
|
60285
60296
|
}
|
|
60286
|
-
}, V$ = (e) => typeof window > "u" ? null :
|
|
60287
|
-
children:
|
|
60297
|
+
}, V$ = (e) => typeof window > "u" ? null : O.createElement(fx, {
|
|
60298
|
+
children: O.createElement(Oa, e)
|
|
60288
60299
|
});
|
|
60289
60300
|
export {
|
|
60290
60301
|
R6 as AgentManager,
|