@voxket-ai/voxket-live 1.1.46 → 1.1.48
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 +18 -1
- package/dist/components/common/common-popup-trigger.d.ts +2 -1
- package/dist/index.cjs +10 -10
- package/dist/index.css +1 -1
- package/dist/index.js +680 -750
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
var zx = Object.defineProperty;
|
|
2
2
|
var jx = (e, t, n) => t in e ? zx(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var Oe = (e, t, n) => jx(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import * as
|
|
5
|
-
import Be, { createContext as Mi, useRef as
|
|
6
|
-
import { jsx as b, Fragment as
|
|
4
|
+
import * as _ from "react";
|
|
5
|
+
import Be, { createContext as Mi, useRef as Jt, useLayoutEffect as Gx, useEffect as kt, useId as Vd, useContext as Ht, useInsertionEffect as t0, useMemo as wn, useCallback as at, Children as Hx, isValidElement as Kx, useState as Ae, Fragment as n0, createElement as Qx, forwardRef as Wx, Component as qx } from "react";
|
|
6
|
+
import { jsx as b, Fragment as tn, jsxs as D } from "react/jsx-runtime";
|
|
7
7
|
import i0, { clsx as Yx } from "clsx";
|
|
8
8
|
import { X as Jx, Clock as Xx, Paperclip as Zx, SendHorizontal as $x, Mic as eE, MicOff as tE, Camera as nE, CameraOff as r0, Monitor as s0, MessageCircle as iE, PhoneOff as rE, Download as sE, Image as oE, Video as aE, Music as cE, Archive as lE, FileText as uE, LayoutGrid as dE, Users as hE, User as o0 } from "lucide-react";
|
|
9
9
|
import fE from "@emotion/styled";
|
|
@@ -2335,7 +2335,7 @@ const aC = /* @__PURE__ */ z.makeMessageType("livekit.MetricsBatch", () => [{
|
|
|
2335
2335
|
}, {
|
|
2336
2336
|
no: 2,
|
|
2337
2337
|
name: "SE_TRACK_NOTFOUND"
|
|
2338
|
-
}]),
|
|
2338
|
+
}]), qt = /* @__PURE__ */ z.makeEnum("livekit.AudioTrackFeature", [{
|
|
2339
2339
|
no: 0,
|
|
2340
2340
|
name: "TF_STEREO"
|
|
2341
2341
|
}, {
|
|
@@ -2775,7 +2775,7 @@ const aC = /* @__PURE__ */ z.makeMessageType("livekit.MetricsBatch", () => [{
|
|
|
2775
2775
|
no: 19,
|
|
2776
2776
|
name: "audio_features",
|
|
2777
2777
|
kind: "enum",
|
|
2778
|
-
T: z.getEnumType(
|
|
2778
|
+
T: z.getEnumType(qt),
|
|
2779
2779
|
repeated: !0
|
|
2780
2780
|
}, {
|
|
2781
2781
|
no: 20,
|
|
@@ -2815,7 +2815,7 @@ const aC = /* @__PURE__ */ z.makeMessageType("livekit.MetricsBatch", () => [{
|
|
|
2815
2815
|
no: 1,
|
|
2816
2816
|
name: "kind",
|
|
2817
2817
|
kind: "enum",
|
|
2818
|
-
T: z.getEnumType(
|
|
2818
|
+
T: z.getEnumType(ze)
|
|
2819
2819
|
}, {
|
|
2820
2820
|
no: 4,
|
|
2821
2821
|
name: "participant_identity",
|
|
@@ -2912,7 +2912,7 @@ const aC = /* @__PURE__ */ z.makeMessageType("livekit.MetricsBatch", () => [{
|
|
|
2912
2912
|
kind: "scalar",
|
|
2913
2913
|
T: 9
|
|
2914
2914
|
/* ScalarType.STRING */
|
|
2915
|
-
}]),
|
|
2915
|
+
}]), ze = /* @__PURE__ */ z.makeEnum("livekit.DataPacket.Kind", [{
|
|
2916
2916
|
no: 0,
|
|
2917
2917
|
name: "RELIABLE"
|
|
2918
2918
|
}, {
|
|
@@ -3931,7 +3931,7 @@ const aC = /* @__PURE__ */ z.makeMessageType("livekit.MetricsBatch", () => [{
|
|
|
3931
3931
|
no: 17,
|
|
3932
3932
|
name: "audio_features",
|
|
3933
3933
|
kind: "enum",
|
|
3934
|
-
T: z.getEnumType(
|
|
3934
|
+
T: z.getEnumType(qt),
|
|
3935
3935
|
repeated: !0
|
|
3936
3936
|
}]), Hd = /* @__PURE__ */ z.makeMessageType("livekit.TrickleRequest", () => [{
|
|
3937
3937
|
no: 1,
|
|
@@ -4180,7 +4180,7 @@ const aC = /* @__PURE__ */ z.makeMessageType("livekit.MetricsBatch", () => [{
|
|
|
4180
4180
|
no: 2,
|
|
4181
4181
|
name: "features",
|
|
4182
4182
|
kind: "enum",
|
|
4183
|
-
T: z.getEnumType(
|
|
4183
|
+
T: z.getEnumType(qt),
|
|
4184
4184
|
repeated: !0
|
|
4185
4185
|
}]), TC = /* @__PURE__ */ z.makeMessageType("livekit.UpdateLocalVideoTrack", () => [{
|
|
4186
4186
|
no: 1,
|
|
@@ -7955,12 +7955,12 @@ class qT extends ui.EventEmitter {
|
|
|
7955
7955
|
}
|
|
7956
7956
|
}
|
|
7957
7957
|
const al = "default";
|
|
7958
|
-
class
|
|
7958
|
+
class Yt {
|
|
7959
7959
|
constructor() {
|
|
7960
7960
|
this._previousDevices = [];
|
|
7961
7961
|
}
|
|
7962
7962
|
static getInstance() {
|
|
7963
|
-
return this.instance === void 0 && (this.instance = new
|
|
7963
|
+
return this.instance === void 0 && (this.instance = new Yt()), this.instance;
|
|
7964
7964
|
}
|
|
7965
7965
|
get previousDevices() {
|
|
7966
7966
|
return this._previousDevices;
|
|
@@ -7971,10 +7971,10 @@ class Jt {
|
|
|
7971
7971
|
let r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
|
|
7972
7972
|
return function* () {
|
|
7973
7973
|
var s;
|
|
7974
|
-
if (((s =
|
|
7974
|
+
if (((s = Yt.userMediaPromiseMap) === null || s === void 0 ? void 0 : s.size) > 0) {
|
|
7975
7975
|
qe.debug("awaiting getUserMedia promise");
|
|
7976
7976
|
try {
|
|
7977
|
-
n ? yield
|
|
7977
|
+
n ? yield Yt.userMediaPromiseMap.get(n) : yield Promise.all(Yt.userMediaPromiseMap.values());
|
|
7978
7978
|
} catch {
|
|
7979
7979
|
qe.warn("error waiting for media permissons");
|
|
7980
7980
|
}
|
|
@@ -8019,11 +8019,11 @@ class Jt {
|
|
|
8019
8019
|
});
|
|
8020
8020
|
}
|
|
8021
8021
|
hasDeviceInUse(t) {
|
|
8022
|
-
return t ?
|
|
8022
|
+
return t ? Yt.userMediaPromiseMap.has(t) : Yt.userMediaPromiseMap.size > 0;
|
|
8023
8023
|
}
|
|
8024
8024
|
}
|
|
8025
|
-
|
|
8026
|
-
|
|
8025
|
+
Yt.mediaDeviceKinds = ["audioinput", "audiooutput", "videoinput"];
|
|
8026
|
+
Yt.userMediaPromiseMap = /* @__PURE__ */ new Map();
|
|
8027
8027
|
var eo;
|
|
8028
8028
|
(function(e) {
|
|
8029
8029
|
e[e.WAITING = 0] = "WAITING", e[e.RUNNING = 1] = "RUNNING", e[e.COMPLETED = 2] = "COMPLETED";
|
|
@@ -10003,7 +10003,7 @@ class Vy extends V {
|
|
|
10003
10003
|
deviceId: i,
|
|
10004
10004
|
groupId: r
|
|
10005
10005
|
} = t._mediaStreamTrack.getSettings(), s = t.kind === V.Kind.Audio ? "audioinput" : "videoinput";
|
|
10006
|
-
return n ?
|
|
10006
|
+
return n ? Yt.getInstance().normalizeDeviceId(s, i, r) : i;
|
|
10007
10007
|
}();
|
|
10008
10008
|
});
|
|
10009
10009
|
}
|
|
@@ -10254,9 +10254,9 @@ class Va extends Vy {
|
|
|
10254
10254
|
}
|
|
10255
10255
|
o && this.prevStats && (this._currentBitrate = yc(o, this.prevStats)), this.prevStats = o;
|
|
10256
10256
|
}), this.handleKrispNoiseFilterEnable = () => {
|
|
10257
|
-
this.isKrispNoiseFilterEnabled = !0, this.log.debug("Krisp noise filter enabled", this.logContext), this.emit(he.AudioTrackFeatureUpdate, this,
|
|
10257
|
+
this.isKrispNoiseFilterEnabled = !0, this.log.debug("Krisp noise filter enabled", this.logContext), this.emit(he.AudioTrackFeatureUpdate, this, qt.TF_ENHANCED_NOISE_CANCELLATION, !0);
|
|
10258
10258
|
}, this.handleKrispNoiseFilterDisable = () => {
|
|
10259
|
-
this.isKrispNoiseFilterEnabled = !1, this.log.debug("Krisp noise filter disabled", this.logContext), this.emit(he.AudioTrackFeatureUpdate, this,
|
|
10259
|
+
this.isKrispNoiseFilterEnabled = !1, this.log.debug("Krisp noise filter disabled", this.logContext), this.emit(he.AudioTrackFeatureUpdate, this, qt.TF_ENHANCED_NOISE_CANCELLATION, !1);
|
|
10260
10260
|
}, this.audioContext = r, this.checkForSilence();
|
|
10261
10261
|
}
|
|
10262
10262
|
mute() {
|
|
@@ -11061,7 +11061,7 @@ class NA extends ui.EventEmitter {
|
|
|
11061
11061
|
event: i
|
|
11062
11062
|
}));
|
|
11063
11063
|
}, this.handleBufferedAmountLow = (i) => {
|
|
11064
|
-
const s = i.currentTarget.maxRetransmits === 0 ?
|
|
11064
|
+
const s = i.currentTarget.maxRetransmits === 0 ? ze.LOSSY : ze.RELIABLE;
|
|
11065
11065
|
this.updateAndEmitDCBufferStatus(s);
|
|
11066
11066
|
}, this.handleDisconnect = (i, r) => {
|
|
11067
11067
|
if (this._isClosed)
|
|
@@ -11093,13 +11093,13 @@ class NA extends ui.EventEmitter {
|
|
|
11093
11093
|
}, this.isBufferStatusLow = (i) => {
|
|
11094
11094
|
const r = this.dataChannelForKind(i);
|
|
11095
11095
|
if (r)
|
|
11096
|
-
return i ===
|
|
11096
|
+
return i === ze.RELIABLE && this.reliableMessageBuffer.alignBufferedAmount(r.bufferedAmount), r.bufferedAmount <= r.bufferedAmountLowThreshold;
|
|
11097
11097
|
}, this.handleBrowserOnLine = () => {
|
|
11098
11098
|
this.client.currentState === vt.RECONNECTING && (this.clearReconnectTimeout(), this.attemptReconnect(Or.RR_SIGNAL_DISCONNECTED));
|
|
11099
11099
|
}, this.log = Ti((n = t.loggerName) !== null && n !== void 0 ? n : Xn.Engine), this.loggerOptions = {
|
|
11100
11100
|
loggerName: t.loggerName,
|
|
11101
11101
|
loggerContextCb: () => this.logContext
|
|
11102
|
-
}, this.client = new eh(void 0, this.loggerOptions), this.client.signalLatency = this.options.expSignalLatency, this.reconnectPolicy = this.options.reconnectPolicy, this.registerOnLineListener(), this.closingLock = new bn(), this.dataProcessLock = new bn(), this.dcBufferStatus = /* @__PURE__ */ new Map([[
|
|
11102
|
+
}, this.client = new eh(void 0, this.loggerOptions), this.client.signalLatency = this.options.expSignalLatency, this.reconnectPolicy = this.options.reconnectPolicy, this.registerOnLineListener(), this.closingLock = new bn(), this.dataProcessLock = new bn(), this.dcBufferStatus = /* @__PURE__ */ new Map([[ze.LOSSY, !0], [ze.RELIABLE, !0]]), this.client.onParticipantUpdate = (i) => this.emit(fe.ParticipantUpdate, i), this.client.onConnectionQuality = (i) => this.emit(fe.ConnectionQualityUpdate, i), this.client.onRoomUpdate = (i) => this.emit(fe.RoomUpdate, i), this.client.onSubscriptionError = (i) => this.emit(fe.SubscriptionError, i), this.client.onSubscriptionPermissionUpdate = (i) => this.emit(fe.SubscriptionPermissionUpdate, i), this.client.onSpeakersChanged = (i) => this.emit(fe.SpeakersChanged, i), this.client.onStreamStateUpdate = (i) => this.emit(fe.StreamStateChanged, i), this.client.onRequestResponse = (i) => this.emit(fe.SignalRequestResponse, i);
|
|
11103
11103
|
}
|
|
11104
11104
|
/** @internal */
|
|
11105
11105
|
get logContext() {
|
|
@@ -11484,7 +11484,7 @@ class NA extends ui.EventEmitter {
|
|
|
11484
11484
|
return O(this, void 0, void 0, function* () {
|
|
11485
11485
|
const s = new mn({
|
|
11486
11486
|
destinationIdentities: [t],
|
|
11487
|
-
kind:
|
|
11487
|
+
kind: ze.RELIABLE,
|
|
11488
11488
|
value: {
|
|
11489
11489
|
case: "rpcResponse",
|
|
11490
11490
|
value: new M0({
|
|
@@ -11499,7 +11499,7 @@ class NA extends ui.EventEmitter {
|
|
|
11499
11499
|
})
|
|
11500
11500
|
}
|
|
11501
11501
|
});
|
|
11502
|
-
yield this.sendDataPacket(s,
|
|
11502
|
+
yield this.sendDataPacket(s, ze.RELIABLE);
|
|
11503
11503
|
});
|
|
11504
11504
|
}
|
|
11505
11505
|
/** @internal */
|
|
@@ -11507,7 +11507,7 @@ class NA extends ui.EventEmitter {
|
|
|
11507
11507
|
return O(this, void 0, void 0, function* () {
|
|
11508
11508
|
const i = new mn({
|
|
11509
11509
|
destinationIdentities: [t],
|
|
11510
|
-
kind:
|
|
11510
|
+
kind: ze.RELIABLE,
|
|
11511
11511
|
value: {
|
|
11512
11512
|
case: "rpcAck",
|
|
11513
11513
|
value: new P0({
|
|
@@ -11515,16 +11515,16 @@ class NA extends ui.EventEmitter {
|
|
|
11515
11515
|
})
|
|
11516
11516
|
}
|
|
11517
11517
|
});
|
|
11518
|
-
yield this.sendDataPacket(i,
|
|
11518
|
+
yield this.sendDataPacket(i, ze.RELIABLE);
|
|
11519
11519
|
});
|
|
11520
11520
|
}
|
|
11521
11521
|
/* @internal */
|
|
11522
11522
|
sendDataPacket(t, n) {
|
|
11523
11523
|
return O(this, void 0, void 0, function* () {
|
|
11524
|
-
yield this.ensurePublisherConnected(n), n ===
|
|
11524
|
+
yield this.ensurePublisherConnected(n), n === ze.RELIABLE && (t.sequence = this.reliableDataSequence, this.reliableDataSequence += 1);
|
|
11525
11525
|
const i = t.toBinary(), r = this.dataChannelForKind(n);
|
|
11526
11526
|
if (r) {
|
|
11527
|
-
if (n ===
|
|
11527
|
+
if (n === ze.RELIABLE && this.reliableMessageBuffer.push({
|
|
11528
11528
|
data: i,
|
|
11529
11529
|
sequence: t.sequence
|
|
11530
11530
|
}), this.attemptingReconnect)
|
|
@@ -11536,11 +11536,11 @@ class NA extends ui.EventEmitter {
|
|
|
11536
11536
|
}
|
|
11537
11537
|
resendReliableMessagesForResume(t) {
|
|
11538
11538
|
return O(this, void 0, void 0, function* () {
|
|
11539
|
-
yield this.ensurePublisherConnected(
|
|
11540
|
-
const n = this.dataChannelForKind(
|
|
11539
|
+
yield this.ensurePublisherConnected(ze.RELIABLE);
|
|
11540
|
+
const n = this.dataChannelForKind(ze.RELIABLE);
|
|
11541
11541
|
n && (this.reliableMessageBuffer.popToSequence(t), this.reliableMessageBuffer.getAll().forEach((i) => {
|
|
11542
11542
|
n.send(i.data);
|
|
11543
|
-
})), this.updateAndEmitDCBufferStatus(
|
|
11543
|
+
})), this.updateAndEmitDCBufferStatus(ze.RELIABLE);
|
|
11544
11544
|
});
|
|
11545
11545
|
}
|
|
11546
11546
|
waitForBufferStatusLow(t) {
|
|
@@ -11624,14 +11624,14 @@ class NA extends ui.EventEmitter {
|
|
|
11624
11624
|
}
|
|
11625
11625
|
dataChannelForKind(t, n) {
|
|
11626
11626
|
if (n) {
|
|
11627
|
-
if (t ===
|
|
11627
|
+
if (t === ze.LOSSY)
|
|
11628
11628
|
return this.lossyDCSub;
|
|
11629
|
-
if (t ===
|
|
11629
|
+
if (t === ze.RELIABLE)
|
|
11630
11630
|
return this.reliableDCSub;
|
|
11631
11631
|
} else {
|
|
11632
|
-
if (t ===
|
|
11632
|
+
if (t === ze.LOSSY)
|
|
11633
11633
|
return this.lossyDC;
|
|
11634
|
-
if (t ===
|
|
11634
|
+
if (t === ze.RELIABLE)
|
|
11635
11635
|
return this.reliableDC;
|
|
11636
11636
|
}
|
|
11637
11637
|
}
|
|
@@ -11680,7 +11680,7 @@ class NA extends ui.EventEmitter {
|
|
|
11680
11680
|
target: r
|
|
11681
11681
|
}));
|
|
11682
11682
|
};
|
|
11683
|
-
return n(this.dataChannelForKind(
|
|
11683
|
+
return n(this.dataChannelForKind(ze.LOSSY), Wn.PUBLISHER), n(this.dataChannelForKind(ze.RELIABLE), Wn.PUBLISHER), n(this.dataChannelForKind(ze.LOSSY, !0), Wn.SUBSCRIBER), n(this.dataChannelForKind(ze.RELIABLE, !0), Wn.SUBSCRIBER), t;
|
|
11684
11684
|
}
|
|
11685
11685
|
clearReconnectTimeout() {
|
|
11686
11686
|
this.reconnectTimeout && nn.clearTimeout(this.reconnectTimeout);
|
|
@@ -12452,7 +12452,7 @@ class Yu extends yi {
|
|
|
12452
12452
|
var t;
|
|
12453
12453
|
if (oi(this.track)) {
|
|
12454
12454
|
const n = this.track.getSourceTrackSettings(), i = /* @__PURE__ */ new Set();
|
|
12455
|
-
return n.autoGainControl && i.add(
|
|
12455
|
+
return n.autoGainControl && i.add(qt.TF_AUTO_GAIN_CONTROL), n.echoCancellation && i.add(qt.TF_ECHO_CANCELLATION), n.noiseSuppression && i.add(qt.TF_NOISE_SUPPRESSION), n.channelCount && n.channelCount > 1 && i.add(qt.TF_STEREO), !((t = this.options) === null || t === void 0) && t.dtx || i.add(qt.TF_NO_DTX), this.track.enhancedNoiseCancellation && i.add(qt.TF_ENHANCED_NOISE_CANCELLATION), Array.from(i.values());
|
|
12456
12456
|
} else return [];
|
|
12457
12457
|
}
|
|
12458
12458
|
}
|
|
@@ -12492,7 +12492,7 @@ function vc(e, t) {
|
|
|
12492
12492
|
deviceId: "default"
|
|
12493
12493
|
} : typeof s.video == "object" && !s.video.deviceId && (s.video.deviceId = "default");
|
|
12494
12494
|
const c = Oy(s, By, Fy), l = Zd(c), u = navigator.mediaDevices.getUserMedia(l);
|
|
12495
|
-
s.audio && (
|
|
12495
|
+
s.audio && (Yt.userMediaPromiseMap.set("audioinput", u), u.catch(() => Yt.userMediaPromiseMap.delete("audioinput"))), s.video && (Yt.userMediaPromiseMap.set("videoinput", u), u.catch(() => Yt.userMediaPromiseMap.delete("videoinput")));
|
|
12496
12496
|
try {
|
|
12497
12497
|
const d = yield u;
|
|
12498
12498
|
return yield Promise.all(d.getTracks().map((h) => O(this, void 0, void 0, function* () {
|
|
@@ -13251,7 +13251,7 @@ class QA extends Wy {
|
|
|
13251
13251
|
const p = n.videoCodec;
|
|
13252
13252
|
t.on(he.Muted, this.onTrackMuted), t.on(he.Unmuted, this.onTrackUnmuted), t.on(he.Ended, this.handleTrackEnded), t.on(he.UpstreamPaused, this.onTrackUpstreamPaused), t.on(he.UpstreamResumed, this.onTrackUpstreamResumed), t.on(he.AudioTrackFeatureUpdate, this.onTrackFeatureUpdate);
|
|
13253
13253
|
const v = [], g = !(!((r = n.dtx) !== null && r !== void 0) || r), x = t.getSourceTrackSettings();
|
|
13254
|
-
x.autoGainControl && v.push(
|
|
13254
|
+
x.autoGainControl && v.push(qt.TF_AUTO_GAIN_CONTROL), x.echoCancellation && v.push(qt.TF_ECHO_CANCELLATION), x.noiseSuppression && v.push(qt.TF_NOISE_SUPPRESSION), x.channelCount && x.channelCount > 1 && v.push(qt.TF_STEREO), g && v.push(qt.TF_NO_DTX), bi(t) && t.hasPreConnectBuffer && v.push(qt.TF_PRECONNECT_BUFFER);
|
|
13255
13255
|
const S = new Eu({
|
|
13256
13256
|
// get local track id for use during publishing
|
|
13257
13257
|
cid: t.mediaStreamTrack.id,
|
|
@@ -13360,7 +13360,7 @@ class QA extends Wy {
|
|
|
13360
13360
|
if (R.options = n, t.sid = E.sid, this.log.debug("publishing ".concat(t.kind, " with encodings"), Object.assign(Object.assign({}, this.logContext), {
|
|
13361
13361
|
encodings: w,
|
|
13362
13362
|
trackInfo: E
|
|
13363
|
-
})), Fi(t) ? t.startMonitor(this.engine.client) : bi(t) && t.startMonitor(), this.addTrackPublication(R), this.emit($.LocalTrackPublished, R), bi(t) && E.audioFeatures.includes(
|
|
13363
|
+
})), Fi(t) ? t.startMonitor(this.engine.client) : bi(t) && t.startMonitor(), this.addTrackPublication(R), this.emit($.LocalTrackPublished, R), bi(t) && E.audioFeatures.includes(qt.TF_PRECONNECT_BUFFER)) {
|
|
13364
13364
|
const M = t.getPreConnectBuffer();
|
|
13365
13365
|
this.on($.LocalTrackSubscribed, (y) => {
|
|
13366
13366
|
if (y.trackSid === E.sid) {
|
|
@@ -13551,7 +13551,7 @@ class QA extends Wy {
|
|
|
13551
13551
|
var i = this;
|
|
13552
13552
|
let r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
13553
13553
|
return function* () {
|
|
13554
|
-
const s = r.reliable ?
|
|
13554
|
+
const s = r.reliable ? ze.RELIABLE : ze.LOSSY, o = r.destinationIdentities, a = r.topic, c = new mn({
|
|
13555
13555
|
kind: s,
|
|
13556
13556
|
value: {
|
|
13557
13557
|
case: "user",
|
|
@@ -13576,7 +13576,7 @@ class QA extends Wy {
|
|
|
13576
13576
|
publishDtmf(t, n) {
|
|
13577
13577
|
return O(this, void 0, void 0, function* () {
|
|
13578
13578
|
const i = new mn({
|
|
13579
|
-
kind:
|
|
13579
|
+
kind: ze.RELIABLE,
|
|
13580
13580
|
value: {
|
|
13581
13581
|
case: "sipDtmf",
|
|
13582
13582
|
value: new I0({
|
|
@@ -13585,7 +13585,7 @@ class QA extends Wy {
|
|
|
13585
13585
|
})
|
|
13586
13586
|
}
|
|
13587
13587
|
});
|
|
13588
|
-
yield this.engine.sendDataPacket(i,
|
|
13588
|
+
yield this.engine.sendDataPacket(i, ze.RELIABLE);
|
|
13589
13589
|
});
|
|
13590
13590
|
}
|
|
13591
13591
|
sendChatMessage(t, n) {
|
|
@@ -13603,7 +13603,7 @@ class QA extends Wy {
|
|
|
13603
13603
|
}))
|
|
13604
13604
|
}
|
|
13605
13605
|
});
|
|
13606
|
-
return yield this.engine.sendDataPacket(r,
|
|
13606
|
+
return yield this.engine.sendDataPacket(r, ze.RELIABLE), this.emit($.ChatMessage, i), i;
|
|
13607
13607
|
});
|
|
13608
13608
|
}
|
|
13609
13609
|
editChatMessage(t, n) {
|
|
@@ -13620,7 +13620,7 @@ class QA extends Wy {
|
|
|
13620
13620
|
}))
|
|
13621
13621
|
}
|
|
13622
13622
|
});
|
|
13623
|
-
return yield this.engine.sendDataPacket(r,
|
|
13623
|
+
return yield this.engine.sendDataPacket(r, ze.RELIABLE), this.emit($.ChatMessage, i), i;
|
|
13624
13624
|
});
|
|
13625
13625
|
}
|
|
13626
13626
|
sendText(t, n) {
|
|
@@ -13687,14 +13687,14 @@ class QA extends Wy {
|
|
|
13687
13687
|
value: o
|
|
13688
13688
|
}
|
|
13689
13689
|
});
|
|
13690
|
-
yield this.engine.sendDataPacket(c,
|
|
13690
|
+
yield this.engine.sendDataPacket(c, ze.RELIABLE);
|
|
13691
13691
|
let l = 0;
|
|
13692
13692
|
const u = this, d = new WritableStream({
|
|
13693
13693
|
// Implement the sink
|
|
13694
13694
|
write(m) {
|
|
13695
13695
|
return O(this, void 0, void 0, function* () {
|
|
13696
13696
|
for (const p of zT(m, Lp)) {
|
|
13697
|
-
yield u.engine.waitForBufferStatusLow(
|
|
13697
|
+
yield u.engine.waitForBufferStatusLow(ze.RELIABLE);
|
|
13698
13698
|
const v = new ku({
|
|
13699
13699
|
content: p,
|
|
13700
13700
|
streamId: r,
|
|
@@ -13706,7 +13706,7 @@ class QA extends Wy {
|
|
|
13706
13706
|
value: v
|
|
13707
13707
|
}
|
|
13708
13708
|
});
|
|
13709
|
-
yield u.engine.sendDataPacket(g,
|
|
13709
|
+
yield u.engine.sendDataPacket(g, ze.RELIABLE), l += 1;
|
|
13710
13710
|
}
|
|
13711
13711
|
});
|
|
13712
13712
|
},
|
|
@@ -13721,7 +13721,7 @@ class QA extends Wy {
|
|
|
13721
13721
|
value: m
|
|
13722
13722
|
}
|
|
13723
13723
|
});
|
|
13724
|
-
yield u.engine.sendDataPacket(p,
|
|
13724
|
+
yield u.engine.sendDataPacket(p, ze.RELIABLE);
|
|
13725
13725
|
});
|
|
13726
13726
|
},
|
|
13727
13727
|
abort(m) {
|
|
@@ -13798,7 +13798,7 @@ class QA extends Wy {
|
|
|
13798
13798
|
value: u
|
|
13799
13799
|
}
|
|
13800
13800
|
});
|
|
13801
|
-
yield this.engine.sendDataPacket(d,
|
|
13801
|
+
yield this.engine.sendDataPacket(d, ze.RELIABLE);
|
|
13802
13802
|
let h = 0;
|
|
13803
13803
|
const f = new bn(), m = this.engine, p = this.log, v = new WritableStream({
|
|
13804
13804
|
write(x) {
|
|
@@ -13808,7 +13808,7 @@ class QA extends Wy {
|
|
|
13808
13808
|
try {
|
|
13809
13809
|
for (; w < x.byteLength; ) {
|
|
13810
13810
|
const k = x.slice(w, w + Lp);
|
|
13811
|
-
yield m.waitForBufferStatusLow(
|
|
13811
|
+
yield m.waitForBufferStatusLow(ze.RELIABLE);
|
|
13812
13812
|
const E = new mn({
|
|
13813
13813
|
destinationIdentities: c,
|
|
13814
13814
|
value: {
|
|
@@ -13820,7 +13820,7 @@ class QA extends Wy {
|
|
|
13820
13820
|
})
|
|
13821
13821
|
}
|
|
13822
13822
|
});
|
|
13823
|
-
yield m.sendDataPacket(E,
|
|
13823
|
+
yield m.sendDataPacket(E, ze.RELIABLE), h += 1, w += k.byteLength;
|
|
13824
13824
|
}
|
|
13825
13825
|
} finally {
|
|
13826
13826
|
S();
|
|
@@ -13838,7 +13838,7 @@ class QA extends Wy {
|
|
|
13838
13838
|
value: x
|
|
13839
13839
|
}
|
|
13840
13840
|
});
|
|
13841
|
-
yield m.sendDataPacket(S,
|
|
13841
|
+
yield m.sendDataPacket(S, ze.RELIABLE);
|
|
13842
13842
|
});
|
|
13843
13843
|
},
|
|
13844
13844
|
abort(x) {
|
|
@@ -13944,7 +13944,7 @@ class QA extends Wy {
|
|
|
13944
13944
|
return O(this, void 0, void 0, function* () {
|
|
13945
13945
|
const o = new mn({
|
|
13946
13946
|
destinationIdentities: [t],
|
|
13947
|
-
kind:
|
|
13947
|
+
kind: ze.RELIABLE,
|
|
13948
13948
|
value: {
|
|
13949
13949
|
case: "rpcRequest",
|
|
13950
13950
|
value: new R0({
|
|
@@ -13956,7 +13956,7 @@ class QA extends Wy {
|
|
|
13956
13956
|
})
|
|
13957
13957
|
}
|
|
13958
13958
|
});
|
|
13959
|
-
yield this.engine.sendDataPacket(o,
|
|
13959
|
+
yield this.engine.sendDataPacket(o, ze.RELIABLE);
|
|
13960
13960
|
});
|
|
13961
13961
|
}
|
|
13962
13962
|
/** @internal */
|
|
@@ -14864,7 +14864,7 @@ class Ci extends ui.EventEmitter {
|
|
|
14864
14864
|
*/
|
|
14865
14865
|
static getLocalDevices(t) {
|
|
14866
14866
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
|
|
14867
|
-
return
|
|
14867
|
+
return Yt.getInstance().getDevices(t, n);
|
|
14868
14868
|
}
|
|
14869
14869
|
/**
|
|
14870
14870
|
* prepareConnection should be called as soon as the page is loaded, in order
|
|
@@ -15083,7 +15083,7 @@ class Ci extends ui.EventEmitter {
|
|
|
15083
15083
|
} else if (i === "audiooutput") {
|
|
15084
15084
|
if (p = !0, !Fu() && !s.options.webAudioMix || s.options.webAudioMix && s.audioContext && !("setSinkId" in s.audioContext))
|
|
15085
15085
|
throw new Error("cannot switch audio output, setSinkId not supported");
|
|
15086
|
-
s.options.webAudioMix && (r = (l = yield
|
|
15086
|
+
s.options.webAudioMix && (r = (l = yield Yt.getInstance().normalizeDeviceId("audiooutput", r)) !== null && l !== void 0 ? l : ""), (u = (f = s.options).audioOutput) !== null && u !== void 0 || (f.audioOutput = {});
|
|
15087
15087
|
const g = (d = s.getActiveDevice(i)) !== null && d !== void 0 ? d : s.options.audioOutput.deviceId;
|
|
15088
15088
|
s.options.audioOutput.deviceId = r;
|
|
15089
15089
|
try {
|
|
@@ -15239,7 +15239,7 @@ class Ci extends ui.EventEmitter {
|
|
|
15239
15239
|
selectDefaultDevices() {
|
|
15240
15240
|
return O(this, void 0, void 0, function* () {
|
|
15241
15241
|
var t, n, i;
|
|
15242
|
-
const r =
|
|
15242
|
+
const r = Yt.getInstance().previousDevices, s = yield Yt.getInstance().getDevices(void 0, !1), o = In();
|
|
15243
15243
|
if ((o == null ? void 0 : o.name) === "Chrome" && o.os !== "iOS")
|
|
15244
15244
|
for (let c of s) {
|
|
15245
15245
|
const l = r.find((u) => u.deviceId === c.deviceId);
|
|
@@ -15961,7 +15961,7 @@ class kz extends ui.EventEmitter {
|
|
|
15961
15961
|
}
|
|
15962
15962
|
const ah = Mi({});
|
|
15963
15963
|
function ch(e) {
|
|
15964
|
-
const t =
|
|
15964
|
+
const t = Jt(null);
|
|
15965
15965
|
return t.current === null && (t.current = e()), t.current;
|
|
15966
15966
|
}
|
|
15967
15967
|
const lh = typeof window < "u", Yy = lh ? Gx : kt, kc = /* @__PURE__ */ Mi(null);
|
|
@@ -16143,13 +16143,13 @@ function uv(e, t) {
|
|
|
16143
16143
|
o[Go[w]].cancel(S);
|
|
16144
16144
|
}, state: r, steps: o };
|
|
16145
16145
|
}
|
|
16146
|
-
const { schedule: xt, cancel: Ji, state:
|
|
16146
|
+
const { schedule: xt, cancel: Ji, state: en, steps: ml } = /* @__PURE__ */ uv(typeof requestAnimationFrame < "u" ? requestAnimationFrame : Fn, !0);
|
|
16147
16147
|
let Ta;
|
|
16148
16148
|
function f1() {
|
|
16149
16149
|
Ta = void 0;
|
|
16150
16150
|
}
|
|
16151
16151
|
const vn = {
|
|
16152
|
-
now: () => (Ta === void 0 && vn.set(
|
|
16152
|
+
now: () => (Ta === void 0 && vn.set(en.isProcessing || Ri.useManualTiming ? en.timestamp : performance.now()), Ta),
|
|
16153
16153
|
set: (e) => {
|
|
16154
16154
|
Ta = e, queueMicrotask(f1);
|
|
16155
16155
|
}
|
|
@@ -16351,7 +16351,7 @@ const B1 = (e) => {
|
|
|
16351
16351
|
* If we're processing this frame we can use the
|
|
16352
16352
|
* framelocked timestamp to keep things in sync.
|
|
16353
16353
|
*/
|
|
16354
|
-
now: () =>
|
|
16354
|
+
now: () => en.isProcessing ? en.timestamp : vn.now()
|
|
16355
16355
|
};
|
|
16356
16356
|
}, vv = (e, t, n = 10) => {
|
|
16357
16357
|
let i = "";
|
|
@@ -17820,7 +17820,7 @@ const sn = (e) => !!(e && e.getVelocity), XI = [...Mv, Ft, Xi], ZI = (e) => XI.f
|
|
|
17820
17820
|
isStatic: !1,
|
|
17821
17821
|
reducedMotion: "never"
|
|
17822
17822
|
});
|
|
17823
|
-
class $I extends
|
|
17823
|
+
class $I extends _.Component {
|
|
17824
17824
|
getSnapshotBeforeUpdate(t) {
|
|
17825
17825
|
const n = this.props.childRef.current;
|
|
17826
17826
|
if (n && t.isPresent && !this.props.isPresent) {
|
|
@@ -17839,7 +17839,7 @@ class $I extends D.Component {
|
|
|
17839
17839
|
}
|
|
17840
17840
|
}
|
|
17841
17841
|
function eR({ children: e, isPresent: t, anchorX: n, root: i }) {
|
|
17842
|
-
const r = Vd(), s =
|
|
17842
|
+
const r = Vd(), s = Jt(null), o = Jt({
|
|
17843
17843
|
width: 0,
|
|
17844
17844
|
height: 0,
|
|
17845
17845
|
top: 0,
|
|
@@ -17866,7 +17866,7 @@ function eR({ children: e, isPresent: t, anchorX: n, root: i }) {
|
|
|
17866
17866
|
`), () => {
|
|
17867
17867
|
p.contains(m) && p.removeChild(m);
|
|
17868
17868
|
};
|
|
17869
|
-
}, [t]), b($I, { isPresent: t, childRef: s, sizeRef: o, children:
|
|
17869
|
+
}, [t]), b($I, { isPresent: t, childRef: s, sizeRef: o, children: _.cloneElement(e, { ref: s }) });
|
|
17870
17870
|
}
|
|
17871
17871
|
const tR = ({ children: e, initial: t, isPresent: n, onExitComplete: i, custom: r, presenceAffectsLayout: s, mode: o, anchorX: a, root: c }) => {
|
|
17872
17872
|
const l = ch(nR), u = Vd();
|
|
@@ -17886,7 +17886,7 @@ const tR = ({ 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]), _.useEffect(() => {
|
|
17890
17890
|
!n && !l.size && i && i();
|
|
17891
17891
|
}, [n]), o === "popLayout" && (e = b(eR, { isPresent: n, anchorX: a, root: c, children: e })), b(kc.Provider, { value: h, children: e });
|
|
17892
17892
|
};
|
|
@@ -17913,7 +17913,7 @@ function rm(e) {
|
|
|
17913
17913
|
}), t;
|
|
17914
17914
|
}
|
|
17915
17915
|
const gs = ({ children: e, custom: t, initial: n = !0, onExitComplete: i, presenceAffectsLayout: r = !0, mode: s = "sync", propagate: o = !1, anchorX: a = "left", root: c }) => {
|
|
17916
|
-
const [l, u] = Vv(o), d = wn(() => rm(e), [e]), h = o && !l ? [] : d.map(Ko), f =
|
|
17916
|
+
const [l, u] = Vv(o), d = wn(() => rm(e), [e]), h = o && !l ? [] : d.map(Ko), f = Jt(!0), m = Jt(d), p = ch(() => /* @__PURE__ */ new Map()), [v, g] = Ae(d), [x, S] = Ae(d);
|
|
17917
17917
|
Yy(() => {
|
|
17918
17918
|
f.current = !1, m.current = d;
|
|
17919
17919
|
for (let E = 0; E < x.length; E++) {
|
|
@@ -17932,7 +17932,7 @@ const gs = ({ children: e, custom: t, initial: n = !0, onExitComplete: i, presen
|
|
|
17932
17932
|
}
|
|
17933
17933
|
process.env.NODE_ENV !== "production" && s === "wait" && x.length > 1 && console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);
|
|
17934
17934
|
const { forceRender: k } = Ht(ah);
|
|
17935
|
-
return b(
|
|
17935
|
+
return b(tn, { children: x.map((E) => {
|
|
17936
17936
|
const P = Ko(E), R = o && !l ? !1 : d === x || h.includes(P), M = () => {
|
|
17937
17937
|
if (p.has(P))
|
|
17938
17938
|
p.set(P, !0);
|
|
@@ -18351,7 +18351,7 @@ function AR(e, t, n) {
|
|
|
18351
18351
|
const Uh = (e) => e.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), IR = "framerAppearId", Xv = "data-" + Uh(IR), Zv = Mi({});
|
|
18352
18352
|
function RR(e, t, n, i, r) {
|
|
18353
18353
|
var p, v;
|
|
18354
|
-
const { visualElement: s } = Ht(wc), o = Ht(zv), a = Ht(kc), c = Ht(Mh).reducedMotion, l =
|
|
18354
|
+
const { visualElement: s } = Ht(wc), o = Ht(zv), a = Ht(kc), c = Ht(Mh).reducedMotion, l = Jt(null);
|
|
18355
18355
|
i = i || o.renderer, !l.current && i && (l.current = i(e, {
|
|
18356
18356
|
visualState: t,
|
|
18357
18357
|
parent: s,
|
|
@@ -18362,11 +18362,11 @@ function RR(e, t, n, i, r) {
|
|
|
18362
18362
|
}));
|
|
18363
18363
|
const u = l.current, d = Ht(Zv);
|
|
18364
18364
|
u && !u.projection && r && (u.type === "html" || u.type === "svg") && PR(l.current, n, r, d);
|
|
18365
|
-
const h =
|
|
18365
|
+
const h = Jt(!1);
|
|
18366
18366
|
t0(() => {
|
|
18367
18367
|
u && h.current && u.update(n, a);
|
|
18368
18368
|
});
|
|
18369
|
-
const f = n[Xv], m =
|
|
18369
|
+
const f = n[Xv], m = Jt(!!f && !((p = window.MotionHandoffIsComplete) != null && p.call(window, f)) && ((v = window.MotionHasOptimisedAnimation) == null ? void 0 : v.call(window, f)));
|
|
18370
18370
|
return Yy(() => {
|
|
18371
18371
|
u && (h.current = !0, window.MotionIsMounted = !0, u.updateFeatures(), u.scheduleRenderMicrotask(), m.current && u.animationState && u.animationState.animateChanges());
|
|
18372
18372
|
}), kt(() => {
|
|
@@ -18416,7 +18416,7 @@ function wl(e, { forwardMotionProps: t = !1 } = {}, n, i) {
|
|
|
18416
18416
|
const m = OR(u);
|
|
18417
18417
|
l = m.MeasureLayout, h.visualElement = RR(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, wR(e, a, AR(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 = Wx(s);
|
|
@@ -19359,7 +19359,7 @@ class gk {
|
|
|
19359
19359
|
const h = El(this.lastMoveEventInfo, this.history), f = this.startEvent !== null, m = TP(h.offset, { x: 0, y: 0 }) >= this.distanceThreshold;
|
|
19360
19360
|
if (!f && !m)
|
|
19361
19361
|
return;
|
|
19362
|
-
const { point: p } = h, { timestamp: v } =
|
|
19362
|
+
const { point: p } = h, { timestamp: v } = en;
|
|
19363
19363
|
this.history.push({ ...p, timestamp: v });
|
|
19364
19364
|
const { onStart: g, onMove: x } = this.handlers;
|
|
19365
19365
|
f || (g && g(this.lastMoveEvent, h), this.startEvent = this.lastMoveEvent), x && x(this.lastMoveEvent, h);
|
|
@@ -19375,7 +19375,7 @@ class gk {
|
|
|
19375
19375
|
}, !Ph(t))
|
|
19376
19376
|
return;
|
|
19377
19377
|
this.dragSnapToOrigin = s, this.handlers = n, this.transformPagePoint = i, this.distanceThreshold = o, this.contextWindow = r || window;
|
|
19378
|
-
const a = Co(t), c = xl(a, this.transformPagePoint), { point: l } = c, { timestamp: u } =
|
|
19378
|
+
const a = Co(t), c = xl(a, this.transformPagePoint), { point: l } = c, { timestamp: u } = en;
|
|
19379
19379
|
this.history = [{ ...l, timestamp: u }];
|
|
19380
19380
|
const { onSessionStart: d } = n;
|
|
19381
19381
|
d && d(t, El(c, this.history)), this.removeListeners = So(no(this.contextWindow, "pointermove", this.handlePointerMove), no(this.contextWindow, "pointerup", this.handlePointerUp), no(this.contextWindow, "pointercancel", this.handlePointerUp));
|
|
@@ -20155,7 +20155,7 @@ function Ek({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
20155
20155
|
}
|
|
20156
20156
|
this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(uM), this.nodes.forEach(sM), this.nodes.forEach(oM)) : this.nodes.forEach(jm), this.clearAllSnapshots();
|
|
20157
20157
|
const a = vn.now();
|
|
20158
|
-
|
|
20158
|
+
en.delta = Ai(0, 1e3 / 60, a - en.timestamp), en.timestamp = a, en.isProcessing = !0, ml.update.process(en), ml.preRender.process(en), ml.render.process(en), en.isProcessing = !1;
|
|
20159
20159
|
}
|
|
20160
20160
|
didUpdate() {
|
|
20161
20161
|
this.updateScheduled || (this.updateScheduled = !0, Rh.read(this.scheduleUpdate));
|
|
@@ -20280,7 +20280,7 @@ function Ek({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
20280
20280
|
this.scroll = void 0, this.layout = void 0, this.snapshot = void 0, this.prevTransformTemplateValue = void 0, this.targetDelta = void 0, this.target = void 0, this.isLayoutDirty = !1;
|
|
20281
20281
|
}
|
|
20282
20282
|
forceRelativeParentToResolveTarget() {
|
|
20283
|
-
this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !==
|
|
20283
|
+
this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !== en.timestamp && this.relativeParent.resolveTargetDelta(!0);
|
|
20284
20284
|
}
|
|
20285
20285
|
resolveTargetDelta(o = !1) {
|
|
20286
20286
|
var h;
|
|
@@ -20291,7 +20291,7 @@ function Ek({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
20291
20291
|
return;
|
|
20292
20292
|
const { layout: u, layoutId: d } = this.options;
|
|
20293
20293
|
if (!(!this.layout || !(u || d))) {
|
|
20294
|
-
if (this.resolvedRelativeTargetAt =
|
|
20294
|
+
if (this.resolvedRelativeTargetAt = en.timestamp, !this.targetDelta && !this.relativeTarget) {
|
|
20295
20295
|
const f = this.getClosestProjectingParent();
|
|
20296
20296
|
f && f.layout && this.animationProgress !== 1 ? (this.relativeParent = f, this.forceRelativeParentToResolveTarget(), this.relativeTarget = Ot(), this.relativeTargetOrigin = Ot(), ro(this.relativeTargetOrigin, this.layout.layoutBox, f.layout.layoutBox), On(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
|
|
20297
20297
|
}
|
|
@@ -20313,7 +20313,7 @@ function Ek({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
20313
20313
|
var m;
|
|
20314
20314
|
const o = this.getLead(), a = !!this.resumingFrom || this !== o;
|
|
20315
20315
|
let c = !0;
|
|
20316
|
-
if ((this.isProjectionDirty || (m = this.parent) != null && m.isProjectionDirty) && (c = !1), a && (this.isSharedProjectionDirty || this.isTransformDirty) && (c = !1), this.resolvedRelativeTargetAt ===
|
|
20316
|
+
if ((this.isProjectionDirty || (m = this.parent) != null && m.isProjectionDirty) && (c = !1), a && (this.isSharedProjectionDirty || this.isTransformDirty) && (c = !1), this.resolvedRelativeTargetAt === en.timestamp && (c = !1), c)
|
|
20317
20317
|
return;
|
|
20318
20318
|
const { layout: l, layoutId: u } = this.options;
|
|
20319
20319
|
if (this.isTreeAnimating = !!(this.parent && this.parent.isTreeAnimating || this.currentAnimation || this.pendingAnimation), this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), !this.layout || !(l || u))
|
|
@@ -20774,7 +20774,7 @@ const NM = {
|
|
|
20774
20774
|
...NM,
|
|
20775
20775
|
...wM,
|
|
20776
20776
|
...OM
|
|
20777
|
-
},
|
|
20777
|
+
}, je = /* @__PURE__ */ _R(_M, WR);
|
|
20778
20778
|
var Wo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
20779
20779
|
function Ak(e) {
|
|
20780
20780
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
@@ -21124,7 +21124,7 @@ function zM(e) {
|
|
|
21124
21124
|
}, o);
|
|
21125
21125
|
}
|
|
21126
21126
|
}
|
|
21127
|
-
function
|
|
21127
|
+
function Kt(e) {
|
|
21128
21128
|
return typeof e == "function";
|
|
21129
21129
|
}
|
|
21130
21130
|
function zh(e) {
|
|
@@ -21176,7 +21176,7 @@ var To = function() {
|
|
|
21176
21176
|
else
|
|
21177
21177
|
o.remove(this);
|
|
21178
21178
|
var u = this.initialTeardown;
|
|
21179
|
-
if (
|
|
21179
|
+
if (Kt(u))
|
|
21180
21180
|
try {
|
|
21181
21181
|
u();
|
|
21182
21182
|
} catch (p) {
|
|
@@ -21238,10 +21238,10 @@ var To = function() {
|
|
|
21238
21238
|
}(), e;
|
|
21239
21239
|
}(), Rk = To.EMPTY;
|
|
21240
21240
|
function Pk(e) {
|
|
21241
|
-
return e instanceof To || e && "closed" in e &&
|
|
21241
|
+
return e instanceof To || e && "closed" in e && Kt(e.remove) && Kt(e.add) && Kt(e.unsubscribe);
|
|
21242
21242
|
}
|
|
21243
21243
|
function Zm(e) {
|
|
21244
|
-
|
|
21244
|
+
Kt(e) ? e() : e.unsubscribe();
|
|
21245
21245
|
}
|
|
21246
21246
|
var jM = {
|
|
21247
21247
|
Promise: void 0
|
|
@@ -21332,7 +21332,7 @@ var jh = function(e) {
|
|
|
21332
21332
|
Ni(t, e);
|
|
21333
21333
|
function t(n, i, r) {
|
|
21334
21334
|
var s = e.call(this) || this, o;
|
|
21335
|
-
return
|
|
21335
|
+
return Kt(n) || !n ? o = {
|
|
21336
21336
|
next: n ?? void 0,
|
|
21337
21337
|
error: i ?? void 0,
|
|
21338
21338
|
complete: r ?? void 0
|
|
@@ -21429,13 +21429,13 @@ function eg(e) {
|
|
|
21429
21429
|
return (t = e ?? jM.Promise) !== null && t !== void 0 ? t : Promise;
|
|
21430
21430
|
}
|
|
21431
21431
|
function qM(e) {
|
|
21432
|
-
return e &&
|
|
21432
|
+
return e && Kt(e.next) && Kt(e.error) && Kt(e.complete);
|
|
21433
21433
|
}
|
|
21434
21434
|
function YM(e) {
|
|
21435
21435
|
return e && e instanceof jh || qM(e) && Pk(e);
|
|
21436
21436
|
}
|
|
21437
21437
|
function JM(e) {
|
|
21438
|
-
return
|
|
21438
|
+
return Kt(e == null ? void 0 : e.lift);
|
|
21439
21439
|
}
|
|
21440
21440
|
function Ao(e) {
|
|
21441
21441
|
return function(t) {
|
|
@@ -21714,7 +21714,7 @@ var $M = {
|
|
|
21714
21714
|
}(ig);
|
|
21715
21715
|
new nN(tN);
|
|
21716
21716
|
function iN(e) {
|
|
21717
|
-
return e &&
|
|
21717
|
+
return e && Kt(e.schedule);
|
|
21718
21718
|
}
|
|
21719
21719
|
function rN(e) {
|
|
21720
21720
|
return e[e.length - 1];
|
|
@@ -21726,13 +21726,13 @@ var Dk = function(e) {
|
|
|
21726
21726
|
return e && typeof e.length == "number" && typeof e != "function";
|
|
21727
21727
|
};
|
|
21728
21728
|
function Lk(e) {
|
|
21729
|
-
return
|
|
21729
|
+
return Kt(e == null ? void 0 : e.then);
|
|
21730
21730
|
}
|
|
21731
21731
|
function Bk(e) {
|
|
21732
|
-
return
|
|
21732
|
+
return Kt(e[Gh]);
|
|
21733
21733
|
}
|
|
21734
21734
|
function Fk(e) {
|
|
21735
|
-
return Symbol.asyncIterator &&
|
|
21735
|
+
return Symbol.asyncIterator && Kt(e == null ? void 0 : e[Symbol.asyncIterator]);
|
|
21736
21736
|
}
|
|
21737
21737
|
function Uk(e) {
|
|
21738
21738
|
return new TypeError("You provided " + (e !== null && typeof e == "object" ? "an invalid object" : "'" + e + "'") + " where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.");
|
|
@@ -21742,7 +21742,7 @@ function sN() {
|
|
|
21742
21742
|
}
|
|
21743
21743
|
var Vk = sN();
|
|
21744
21744
|
function zk(e) {
|
|
21745
|
-
return
|
|
21745
|
+
return Kt(e == null ? void 0 : e[Vk]);
|
|
21746
21746
|
}
|
|
21747
21747
|
function jk(e) {
|
|
21748
21748
|
return VM(this, arguments, function() {
|
|
@@ -21776,7 +21776,7 @@ function jk(e) {
|
|
|
21776
21776
|
});
|
|
21777
21777
|
}
|
|
21778
21778
|
function Gk(e) {
|
|
21779
|
-
return
|
|
21779
|
+
return Kt(e == null ? void 0 : e.getReader);
|
|
21780
21780
|
}
|
|
21781
21781
|
function Io(e) {
|
|
21782
21782
|
if (e instanceof Mn)
|
|
@@ -21800,7 +21800,7 @@ function Io(e) {
|
|
|
21800
21800
|
function oN(e) {
|
|
21801
21801
|
return new Mn(function(t) {
|
|
21802
21802
|
var n = e[Gh]();
|
|
21803
|
-
if (
|
|
21803
|
+
if (Kt(n.subscribe))
|
|
21804
21804
|
return n.subscribe(t);
|
|
21805
21805
|
throw new TypeError("Provided object does not correctly implement Symbol.observable");
|
|
21806
21806
|
});
|
|
@@ -21951,7 +21951,7 @@ function mN(e, t) {
|
|
|
21951
21951
|
o ? n.complete() : n.next(s);
|
|
21952
21952
|
}, 0, !0);
|
|
21953
21953
|
}), function() {
|
|
21954
|
-
return
|
|
21954
|
+
return Kt(i == null ? void 0 : i.return) && i.return();
|
|
21955
21955
|
};
|
|
21956
21956
|
});
|
|
21957
21957
|
}
|
|
@@ -22038,7 +22038,7 @@ function vN(e, t, n, i, r, s, o, a) {
|
|
|
22038
22038
|
};
|
|
22039
22039
|
}
|
|
22040
22040
|
function qk(e, t, n) {
|
|
22041
|
-
return n === void 0 && (n = 1 / 0),
|
|
22041
|
+
return n === void 0 && (n = 1 / 0), Kt(t) ? qk(function(i, r) {
|
|
22042
22042
|
return Ro(function(s, o) {
|
|
22043
22043
|
return t(i, s, r, o);
|
|
22044
22044
|
})(Io(e(i, r)));
|
|
@@ -22289,12 +22289,12 @@ function LN(e, t, n) {
|
|
|
22289
22289
|
Ec(sg(e, t, o))
|
|
22290
22290
|
);
|
|
22291
22291
|
}
|
|
22292
|
-
|
|
22293
|
-
const BN =
|
|
22292
|
+
_.createContext(void 0);
|
|
22293
|
+
const BN = _.createContext(
|
|
22294
22294
|
void 0
|
|
22295
22295
|
);
|
|
22296
22296
|
function $k() {
|
|
22297
|
-
return
|
|
22297
|
+
return _.useContext(BN);
|
|
22298
22298
|
}
|
|
22299
22299
|
function ew(e) {
|
|
22300
22300
|
const t = $k(), n = e ?? t;
|
|
@@ -22304,16 +22304,16 @@ function ew(e) {
|
|
|
22304
22304
|
);
|
|
22305
22305
|
return n;
|
|
22306
22306
|
}
|
|
22307
|
-
|
|
22308
|
-
const $a =
|
|
22307
|
+
_.createContext(void 0);
|
|
22308
|
+
const $a = _.createContext(void 0);
|
|
22309
22309
|
function tw() {
|
|
22310
|
-
const e =
|
|
22310
|
+
const e = _.useContext($a);
|
|
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 FN() {
|
|
22316
|
-
return
|
|
22316
|
+
return _.useContext($a);
|
|
22317
22317
|
}
|
|
22318
22318
|
function nw(e) {
|
|
22319
22319
|
const t = FN(), n = e ?? t;
|
|
@@ -22323,7 +22323,7 @@ function nw(e) {
|
|
|
22323
22323
|
);
|
|
22324
22324
|
return n;
|
|
22325
22325
|
}
|
|
22326
|
-
|
|
22326
|
+
_.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(VN));
|
|
22370
22370
|
}
|
|
22371
22371
|
function zN(e, t, n) {
|
|
22372
|
-
return
|
|
22372
|
+
return _.Children.map(e, (i) => _.isValidElement(i) && _.Children.only(e) ? (i.props.className && (t ?? (t = {}), t.className = rw(i.props.className, t.className), t.style = { ...i.props.style, ...t.style }), _.cloneElement(i, { ...t, key: n })) : i);
|
|
22373
22373
|
}
|
|
22374
22374
|
function jN(e, t, n = !0) {
|
|
22375
|
-
const [i, r] =
|
|
22376
|
-
return
|
|
22375
|
+
const [i, r] = _.useState(t);
|
|
22376
|
+
return _.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 GN({ 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 } = _.useMemo(
|
|
22384
22384
|
() => DN(),
|
|
22385
22385
|
[]
|
|
22386
|
-
), o =
|
|
22386
|
+
), o = _.useMemo(
|
|
22387
22387
|
() => r(n),
|
|
22388
22388
|
[n, r]
|
|
22389
22389
|
), { canPlayAudio: a } = jN(o, {
|
|
22390
22390
|
canPlayAudio: n.canPlaybackAudio
|
|
22391
22391
|
});
|
|
22392
|
-
return { mergedProps:
|
|
22392
|
+
return { mergedProps: _.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] = _.useState([]), [s, o] = _.useState([]), a = _.useMemo(() => e.map((c) => Yk(c) ? c.source : c), [JSON.stringify(e)]);
|
|
22411
|
+
return _.useEffect(() => {
|
|
22412
22412
|
const c = LN(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
|
+
]), _.useMemo(() => {
|
|
22425
22425
|
if (Jk(e)) {
|
|
22426
22426
|
const c = KN(e, s), l = Array.from(i);
|
|
22427
22427
|
return s.forEach((u) => {
|
|
@@ -22481,10 +22481,10 @@ const QN = (e) => {
|
|
|
22481
22481
|
};
|
|
22482
22482
|
function qN(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 = { ...WN, ...t }, [s, o] =
|
|
22484
|
+
const i = e instanceof V ? e : (n = e == null ? void 0 : e.publication) == null ? void 0 : n.track, r = { ...WN, ...t }, [s, o] = _.useState(
|
|
22485
22485
|
new Array(r.bands).fill(0)
|
|
22486
22486
|
);
|
|
22487
|
-
return
|
|
22487
|
+
return _.useEffect(() => {
|
|
22488
22488
|
if (!i || !(i != null && i.mediaStream))
|
|
22489
22489
|
return;
|
|
22490
22490
|
const { analyser: a, cleanup: c } = _T(i, r.analyserOptions), l = a.frequencyBinCount, u = new Float32Array(l), d = setInterval(() => {
|
|
@@ -22505,29 +22505,29 @@ function qN(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__ */ _.forwardRef(
|
|
22509
22509
|
function({ label: e = "Allow Audio", ...t }, n) {
|
|
22510
22510
|
const i = tw(), { mergedProps: r } = GN({ room: i, props: t });
|
|
22511
|
-
return /* @__PURE__ */
|
|
22511
|
+
return /* @__PURE__ */ _.createElement("button", { ref: n, ...r }, e);
|
|
22512
22512
|
}
|
|
22513
22513
|
);
|
|
22514
22514
|
function cw(e, t = {}) {
|
|
22515
|
-
const [n, i] =
|
|
22515
|
+
const [n, i] = _.useState(wd(e)), [r, s] = _.useState(n == null ? void 0 : n.isMuted), [o, a] = _.useState(n == null ? void 0 : n.isSubscribed), [c, l] = _.useState(n == null ? void 0 : n.track), [u, d] = _.useState("landscape"), h = _.useRef(), { className: f, trackObserver: m } = _.useMemo(() => MN(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 _.useEffect(() => {
|
|
22521
22521
|
const p = m.subscribe((v) => {
|
|
22522
22522
|
Zi.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]), _.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]), _.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";
|
|
@@ -22630,7 +22630,7 @@ function YN() {
|
|
|
22630
22630
|
var JN = YN();
|
|
22631
22631
|
const cg = /* @__PURE__ */ Ak(JN);
|
|
22632
22632
|
function XN(e) {
|
|
22633
|
-
const t =
|
|
22633
|
+
const t = Jt(e);
|
|
22634
22634
|
t.current = e, kt(
|
|
22635
22635
|
() => () => {
|
|
22636
22636
|
t.current();
|
|
@@ -22639,7 +22639,7 @@ function XN(e) {
|
|
|
22639
22639
|
);
|
|
22640
22640
|
}
|
|
22641
22641
|
function ZN(e, t = 500, n) {
|
|
22642
|
-
const i =
|
|
22642
|
+
const i = Jt();
|
|
22643
22643
|
XN(() => {
|
|
22644
22644
|
i.current && i.current.cancel();
|
|
22645
22645
|
});
|
|
@@ -22654,7 +22654,7 @@ function ZN(e, t = 500, n) {
|
|
|
22654
22654
|
}, [e, t, n]), r;
|
|
22655
22655
|
}
|
|
22656
22656
|
function $N(e, t, n) {
|
|
22657
|
-
const i = (l, u) => l === u, r = e instanceof Function ? e() : e, [s, o] = Ae(r), a =
|
|
22657
|
+
const i = (l, u) => l === u, r = e instanceof Function ? e() : e, [s, o] = Ae(r), a = Jt(r), c = ZN(
|
|
22658
22658
|
o,
|
|
22659
22659
|
t,
|
|
22660
22660
|
n
|
|
@@ -22673,7 +22673,7 @@ function eO({
|
|
|
22673
22673
|
const [a, c] = Ae(null), [l, u] = Ae(() => ({
|
|
22674
22674
|
isIntersecting: r,
|
|
22675
22675
|
entry: void 0
|
|
22676
|
-
})), d =
|
|
22676
|
+
})), d = Jt();
|
|
22677
22677
|
d.current = s;
|
|
22678
22678
|
const h = ((o = l.entry) == null ? void 0 : o.isIntersecting) && i;
|
|
22679
22679
|
kt(() => {
|
|
@@ -22701,7 +22701,7 @@ function eO({
|
|
|
22701
22701
|
h,
|
|
22702
22702
|
i
|
|
22703
22703
|
]);
|
|
22704
|
-
const f =
|
|
22704
|
+
const f = Jt(null);
|
|
22705
22705
|
kt(() => {
|
|
22706
22706
|
var p;
|
|
22707
22707
|
!a && (p = l.entry) != null && p.target && !i && !h && f.current !== l.entry.target && (f.current = l.entry.target, u({ isIntersecting: r, entry: void 0 }));
|
|
@@ -22713,7 +22713,7 @@ function eO({
|
|
|
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__ */ _.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 = _.useRef(null);
|
|
22726
|
+
_.useImperativeHandle(o, () => c.current);
|
|
22727
22727
|
const l = eO({ root: c.current }), [u] = $N(l, 3e3);
|
|
22728
|
-
|
|
22728
|
+
_.useEffect(() => {
|
|
22729
22729
|
r && a.publication instanceof ja && (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]), _.useEffect(() => {
|
|
22731
22731
|
r && a.publication instanceof ja && (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
|
+
_.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__ */ _.createElement("video", { ref: c, ...d, muted: !0, onClick: m });
|
|
22748
22748
|
}
|
|
22749
|
-
), lw = /* @__PURE__ */
|
|
22749
|
+
), lw = /* @__PURE__ */ _.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 = _.useRef(null);
|
|
22752
|
+
_.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 _.useEffect(() => {
|
|
22763
22763
|
t == null || t(!!c);
|
|
22764
|
-
}, [c, t]),
|
|
22764
|
+
}, [c, t]), _.useEffect(() => {
|
|
22765
22765
|
l === void 0 || n === void 0 || (l instanceof Qy ? l.setVolume(n) : Zi.warn("Volume can only be set on remote audio tracks."));
|
|
22766
|
-
}, [n, l]),
|
|
22766
|
+
}, [n, l]), _.useEffect(() => {
|
|
22767
22767
|
u === void 0 || i.muted === void 0 || (u instanceof ja ? u.setEnabled(!i.muted) : Zi.warn("Can only call setEnabled on remote track publications."));
|
|
22768
|
-
}, [i.muted, u, l]), /* @__PURE__ */
|
|
22768
|
+
}, [i.muted, u, l]), /* @__PURE__ */ _.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__ */ _.createElement("div", { style: { display: "none" } }, n.map((i) => /* @__PURE__ */ _.createElement(
|
|
22780
22780
|
lw,
|
|
22781
22781
|
{
|
|
22782
22782
|
key: AN(i),
|
|
@@ -22802,7 +22802,7 @@ const tO = (e) => {
|
|
|
22802
22802
|
} else o(e === "listening" ? ug(t) : e === void 0 || e === "speaking" ? [new Array(t).fill(0).map((c, l) => l)] : [[]]);
|
|
22803
22803
|
r(0);
|
|
22804
22804
|
}, [e, t]);
|
|
22805
|
-
const a =
|
|
22805
|
+
const a = Jt(null);
|
|
22806
22806
|
return kt(() => {
|
|
22807
22807
|
let c = performance.now();
|
|
22808
22808
|
const l = (u) => {
|
|
@@ -22828,7 +22828,7 @@ const tO = (e) => {
|
|
|
22828
22828
|
break;
|
|
22829
22829
|
}
|
|
22830
22830
|
return n;
|
|
22831
|
-
}, uw = /* @__PURE__ */
|
|
22831
|
+
}, uw = /* @__PURE__ */ _.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 = $k();
|
|
@@ -22842,13 +22842,13 @@ const tO = (e) => {
|
|
|
22842
22842
|
n,
|
|
22843
22843
|
rO(e, n) ?? 100
|
|
22844
22844
|
);
|
|
22845
|
-
return /* @__PURE__ */
|
|
22845
|
+
return /* @__PURE__ */ _.createElement("div", { ref: o, ...a, "data-lk-va-state": e }, l.map(
|
|
22846
22846
|
(f, m) => r ? zN(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__ */ _.createElement(
|
|
22852
22852
|
"span",
|
|
22853
22853
|
{
|
|
22854
22854
|
key: m,
|
|
@@ -23280,12 +23280,12 @@ function wO(e, ...t) {
|
|
|
23280
23280
|
const jt = (e) => {
|
|
23281
23281
|
const t = (n) => n[e] || [];
|
|
23282
23282
|
return t.isThemeGetter = !0, t;
|
|
23283
|
-
}, fw = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, pw = /^\((?:(\w[\w-]*):)?(.+)\)$/i, SO = /^\d+\/\d+$/, xO = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, EO = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, CO = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, TO = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, AO = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Dr = (e) => SO.test(e),
|
|
23283
|
+
}, fw = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, pw = /^\((?:(\w[\w-]*):)?(.+)\)$/i, SO = /^\d+\/\d+$/, xO = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, EO = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, CO = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, TO = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, AO = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Dr = (e) => SO.test(e), Ve = (e) => !!e && !Number.isNaN(Number(e)), Ui = (e) => !!e && Number.isInteger(Number(e)), Nl = (e) => e.endsWith("%") && Ve(e.slice(0, -1)), pi = (e) => xO.test(e), IO = () => !0, RO = (e) => (
|
|
23284
23284
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
23285
23285
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
23286
23286
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
23287
23287
|
EO.test(e) && !CO.test(e)
|
|
23288
|
-
), mw = () => !1, PO = (e) => TO.test(e), MO = (e) => AO.test(e), NO = (e) => !ve(e) && !ke(e), OO = (e) => Ts(e, yw, mw), ve = (e) => fw.test(e), lr = (e) => Ts(e, vw, RO), Ol = (e) => Ts(e, FO,
|
|
23288
|
+
), mw = () => !1, PO = (e) => TO.test(e), MO = (e) => AO.test(e), NO = (e) => !ve(e) && !ke(e), OO = (e) => Ts(e, yw, mw), ve = (e) => fw.test(e), lr = (e) => Ts(e, vw, RO), Ol = (e) => Ts(e, FO, Ve), fg = (e) => Ts(e, gw, mw), _O = (e) => Ts(e, bw, MO), Yo = (e) => Ts(e, kw, PO), ke = (e) => pw.test(e), Vs = (e) => As(e, vw), DO = (e) => As(e, UO), pg = (e) => As(e, gw), LO = (e) => As(e, yw), BO = (e) => As(e, bw), Jo = (e) => As(e, kw, !0), Ts = (e, t, n) => {
|
|
23289
23289
|
const i = fw.exec(e);
|
|
23290
23290
|
return i ? i[1] ? t(i[1]) : n(i[2]) : !1;
|
|
23291
23291
|
}, As = (e, t, n = !1) => {
|
|
@@ -23326,14 +23326,14 @@ const jt = (e) => {
|
|
|
23326
23326
|
l,
|
|
23327
23327
|
ke,
|
|
23328
23328
|
ve
|
|
23329
|
-
], Z = () => ["",
|
|
23329
|
+
], Z = () => ["", Ve, Vs, lr], ne = () => ["solid", "dashed", "dotted", "double"], ie = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], re = () => [Ve, Nl, pg, fg], X = () => [
|
|
23330
23330
|
// Deprecated since Tailwind CSS v4.0.0
|
|
23331
23331
|
"",
|
|
23332
23332
|
"none",
|
|
23333
23333
|
m,
|
|
23334
23334
|
ke,
|
|
23335
23335
|
ve
|
|
23336
|
-
], le = () => ["none",
|
|
23336
|
+
], le = () => ["none", Ve, ke, ve], J = () => ["none", Ve, ke, ve], Pe = () => [Ve, ke, ve], B = () => [Dr, "full", ...R()];
|
|
23337
23337
|
return {
|
|
23338
23338
|
cacheSize: 500,
|
|
23339
23339
|
theme: {
|
|
@@ -23352,7 +23352,7 @@ const jt = (e) => {
|
|
|
23352
23352
|
perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
|
|
23353
23353
|
radius: [pi],
|
|
23354
23354
|
shadow: [pi],
|
|
23355
|
-
spacing: ["px",
|
|
23355
|
+
spacing: ["px", Ve],
|
|
23356
23356
|
text: [pi],
|
|
23357
23357
|
"text-shadow": [pi],
|
|
23358
23358
|
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
|
|
@@ -23379,7 +23379,7 @@ const jt = (e) => {
|
|
|
23379
23379
|
* @see https://tailwindcss.com/docs/columns
|
|
23380
23380
|
*/
|
|
23381
23381
|
columns: [{
|
|
23382
|
-
columns: [
|
|
23382
|
+
columns: [Ve, ve, ke, a]
|
|
23383
23383
|
}],
|
|
23384
23384
|
/**
|
|
23385
23385
|
* Break After
|
|
@@ -23610,21 +23610,21 @@ const jt = (e) => {
|
|
|
23610
23610
|
* @see https://tailwindcss.com/docs/flex
|
|
23611
23611
|
*/
|
|
23612
23612
|
flex: [{
|
|
23613
|
-
flex: [
|
|
23613
|
+
flex: [Ve, Dr, "auto", "initial", "none", ve]
|
|
23614
23614
|
}],
|
|
23615
23615
|
/**
|
|
23616
23616
|
* Flex Grow
|
|
23617
23617
|
* @see https://tailwindcss.com/docs/flex-grow
|
|
23618
23618
|
*/
|
|
23619
23619
|
grow: [{
|
|
23620
|
-
grow: ["",
|
|
23620
|
+
grow: ["", Ve, ke, ve]
|
|
23621
23621
|
}],
|
|
23622
23622
|
/**
|
|
23623
23623
|
* Flex Shrink
|
|
23624
23624
|
* @see https://tailwindcss.com/docs/flex-shrink
|
|
23625
23625
|
*/
|
|
23626
23626
|
shrink: [{
|
|
23627
|
-
shrink: ["",
|
|
23627
|
+
shrink: ["", Ve, ke, ve]
|
|
23628
23628
|
}],
|
|
23629
23629
|
/**
|
|
23630
23630
|
* Order
|
|
@@ -24101,7 +24101,7 @@ const jt = (e) => {
|
|
|
24101
24101
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
24102
24102
|
*/
|
|
24103
24103
|
"line-clamp": [{
|
|
24104
|
-
"line-clamp": [
|
|
24104
|
+
"line-clamp": [Ve, "none", ke, Ol]
|
|
24105
24105
|
}],
|
|
24106
24106
|
/**
|
|
24107
24107
|
* Line Height
|
|
@@ -24174,7 +24174,7 @@ const jt = (e) => {
|
|
|
24174
24174
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
24175
24175
|
*/
|
|
24176
24176
|
"text-decoration-thickness": [{
|
|
24177
|
-
decoration: [
|
|
24177
|
+
decoration: [Ve, "from-font", "auto", ke, lr]
|
|
24178
24178
|
}],
|
|
24179
24179
|
/**
|
|
24180
24180
|
* Text Decoration Color
|
|
@@ -24188,7 +24188,7 @@ const jt = (e) => {
|
|
|
24188
24188
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
24189
24189
|
*/
|
|
24190
24190
|
"underline-offset": [{
|
|
24191
|
-
"underline-offset": [
|
|
24191
|
+
"underline-offset": [Ve, "auto", ke, ve]
|
|
24192
24192
|
}],
|
|
24193
24193
|
/**
|
|
24194
24194
|
* Text Transform
|
|
@@ -24654,14 +24654,14 @@ const jt = (e) => {
|
|
|
24654
24654
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
24655
24655
|
*/
|
|
24656
24656
|
"outline-offset": [{
|
|
24657
|
-
"outline-offset": [
|
|
24657
|
+
"outline-offset": [Ve, ke, ve]
|
|
24658
24658
|
}],
|
|
24659
24659
|
/**
|
|
24660
24660
|
* Outline Width
|
|
24661
24661
|
* @see https://tailwindcss.com/docs/outline-width
|
|
24662
24662
|
*/
|
|
24663
24663
|
"outline-w": [{
|
|
24664
|
-
outline: ["",
|
|
24664
|
+
outline: ["", Ve, Vs, lr]
|
|
24665
24665
|
}],
|
|
24666
24666
|
/**
|
|
24667
24667
|
* Outline Color
|
|
@@ -24736,7 +24736,7 @@ const jt = (e) => {
|
|
|
24736
24736
|
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
24737
24737
|
*/
|
|
24738
24738
|
"ring-offset-w": [{
|
|
24739
|
-
"ring-offset": [
|
|
24739
|
+
"ring-offset": [Ve, lr]
|
|
24740
24740
|
}],
|
|
24741
24741
|
/**
|
|
24742
24742
|
* Ring Offset Color
|
|
@@ -24780,7 +24780,7 @@ const jt = (e) => {
|
|
|
24780
24780
|
* @see https://tailwindcss.com/docs/opacity
|
|
24781
24781
|
*/
|
|
24782
24782
|
opacity: [{
|
|
24783
|
-
opacity: [
|
|
24783
|
+
opacity: [Ve, ke, ve]
|
|
24784
24784
|
}],
|
|
24785
24785
|
/**
|
|
24786
24786
|
* Mix Blend Mode
|
|
@@ -24815,7 +24815,7 @@ const jt = (e) => {
|
|
|
24815
24815
|
* @see https://tailwindcss.com/docs/mask-image
|
|
24816
24816
|
*/
|
|
24817
24817
|
"mask-image-linear-pos": [{
|
|
24818
|
-
"mask-linear": [
|
|
24818
|
+
"mask-linear": [Ve]
|
|
24819
24819
|
}],
|
|
24820
24820
|
"mask-image-linear-from-pos": [{
|
|
24821
24821
|
"mask-linear-from": re()
|
|
@@ -24929,7 +24929,7 @@ const jt = (e) => {
|
|
|
24929
24929
|
"mask-radial-at": w()
|
|
24930
24930
|
}],
|
|
24931
24931
|
"mask-image-conic-pos": [{
|
|
24932
|
-
"mask-conic": [
|
|
24932
|
+
"mask-conic": [Ve]
|
|
24933
24933
|
}],
|
|
24934
24934
|
"mask-image-conic-from-pos": [{
|
|
24935
24935
|
"mask-conic-from": re()
|
|
@@ -25020,14 +25020,14 @@ const jt = (e) => {
|
|
|
25020
25020
|
* @see https://tailwindcss.com/docs/brightness
|
|
25021
25021
|
*/
|
|
25022
25022
|
brightness: [{
|
|
25023
|
-
brightness: [
|
|
25023
|
+
brightness: [Ve, ke, ve]
|
|
25024
25024
|
}],
|
|
25025
25025
|
/**
|
|
25026
25026
|
* Contrast
|
|
25027
25027
|
* @see https://tailwindcss.com/docs/contrast
|
|
25028
25028
|
*/
|
|
25029
25029
|
contrast: [{
|
|
25030
|
-
contrast: [
|
|
25030
|
+
contrast: [Ve, ke, ve]
|
|
25031
25031
|
}],
|
|
25032
25032
|
/**
|
|
25033
25033
|
* Drop Shadow
|
|
@@ -25055,35 +25055,35 @@ const jt = (e) => {
|
|
|
25055
25055
|
* @see https://tailwindcss.com/docs/grayscale
|
|
25056
25056
|
*/
|
|
25057
25057
|
grayscale: [{
|
|
25058
|
-
grayscale: ["",
|
|
25058
|
+
grayscale: ["", Ve, ke, ve]
|
|
25059
25059
|
}],
|
|
25060
25060
|
/**
|
|
25061
25061
|
* Hue Rotate
|
|
25062
25062
|
* @see https://tailwindcss.com/docs/hue-rotate
|
|
25063
25063
|
*/
|
|
25064
25064
|
"hue-rotate": [{
|
|
25065
|
-
"hue-rotate": [
|
|
25065
|
+
"hue-rotate": [Ve, ke, ve]
|
|
25066
25066
|
}],
|
|
25067
25067
|
/**
|
|
25068
25068
|
* Invert
|
|
25069
25069
|
* @see https://tailwindcss.com/docs/invert
|
|
25070
25070
|
*/
|
|
25071
25071
|
invert: [{
|
|
25072
|
-
invert: ["",
|
|
25072
|
+
invert: ["", Ve, ke, ve]
|
|
25073
25073
|
}],
|
|
25074
25074
|
/**
|
|
25075
25075
|
* Saturate
|
|
25076
25076
|
* @see https://tailwindcss.com/docs/saturate
|
|
25077
25077
|
*/
|
|
25078
25078
|
saturate: [{
|
|
25079
|
-
saturate: [
|
|
25079
|
+
saturate: [Ve, ke, ve]
|
|
25080
25080
|
}],
|
|
25081
25081
|
/**
|
|
25082
25082
|
* Sepia
|
|
25083
25083
|
* @see https://tailwindcss.com/docs/sepia
|
|
25084
25084
|
*/
|
|
25085
25085
|
sepia: [{
|
|
25086
|
-
sepia: ["",
|
|
25086
|
+
sepia: ["", Ve, ke, ve]
|
|
25087
25087
|
}],
|
|
25088
25088
|
/**
|
|
25089
25089
|
* Backdrop Filter
|
|
@@ -25110,56 +25110,56 @@ const jt = (e) => {
|
|
|
25110
25110
|
* @see https://tailwindcss.com/docs/backdrop-brightness
|
|
25111
25111
|
*/
|
|
25112
25112
|
"backdrop-brightness": [{
|
|
25113
|
-
"backdrop-brightness": [
|
|
25113
|
+
"backdrop-brightness": [Ve, ke, ve]
|
|
25114
25114
|
}],
|
|
25115
25115
|
/**
|
|
25116
25116
|
* Backdrop Contrast
|
|
25117
25117
|
* @see https://tailwindcss.com/docs/backdrop-contrast
|
|
25118
25118
|
*/
|
|
25119
25119
|
"backdrop-contrast": [{
|
|
25120
|
-
"backdrop-contrast": [
|
|
25120
|
+
"backdrop-contrast": [Ve, ke, ve]
|
|
25121
25121
|
}],
|
|
25122
25122
|
/**
|
|
25123
25123
|
* Backdrop Grayscale
|
|
25124
25124
|
* @see https://tailwindcss.com/docs/backdrop-grayscale
|
|
25125
25125
|
*/
|
|
25126
25126
|
"backdrop-grayscale": [{
|
|
25127
|
-
"backdrop-grayscale": ["",
|
|
25127
|
+
"backdrop-grayscale": ["", Ve, ke, ve]
|
|
25128
25128
|
}],
|
|
25129
25129
|
/**
|
|
25130
25130
|
* Backdrop Hue Rotate
|
|
25131
25131
|
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
25132
25132
|
*/
|
|
25133
25133
|
"backdrop-hue-rotate": [{
|
|
25134
|
-
"backdrop-hue-rotate": [
|
|
25134
|
+
"backdrop-hue-rotate": [Ve, ke, ve]
|
|
25135
25135
|
}],
|
|
25136
25136
|
/**
|
|
25137
25137
|
* Backdrop Invert
|
|
25138
25138
|
* @see https://tailwindcss.com/docs/backdrop-invert
|
|
25139
25139
|
*/
|
|
25140
25140
|
"backdrop-invert": [{
|
|
25141
|
-
"backdrop-invert": ["",
|
|
25141
|
+
"backdrop-invert": ["", Ve, ke, ve]
|
|
25142
25142
|
}],
|
|
25143
25143
|
/**
|
|
25144
25144
|
* Backdrop Opacity
|
|
25145
25145
|
* @see https://tailwindcss.com/docs/backdrop-opacity
|
|
25146
25146
|
*/
|
|
25147
25147
|
"backdrop-opacity": [{
|
|
25148
|
-
"backdrop-opacity": [
|
|
25148
|
+
"backdrop-opacity": [Ve, ke, ve]
|
|
25149
25149
|
}],
|
|
25150
25150
|
/**
|
|
25151
25151
|
* Backdrop Saturate
|
|
25152
25152
|
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
25153
25153
|
*/
|
|
25154
25154
|
"backdrop-saturate": [{
|
|
25155
|
-
"backdrop-saturate": [
|
|
25155
|
+
"backdrop-saturate": [Ve, ke, ve]
|
|
25156
25156
|
}],
|
|
25157
25157
|
/**
|
|
25158
25158
|
* Backdrop Sepia
|
|
25159
25159
|
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
25160
25160
|
*/
|
|
25161
25161
|
"backdrop-sepia": [{
|
|
25162
|
-
"backdrop-sepia": ["",
|
|
25162
|
+
"backdrop-sepia": ["", Ve, ke, ve]
|
|
25163
25163
|
}],
|
|
25164
25164
|
// --------------
|
|
25165
25165
|
// --- Tables ---
|
|
@@ -25228,7 +25228,7 @@ const jt = (e) => {
|
|
|
25228
25228
|
* @see https://tailwindcss.com/docs/transition-duration
|
|
25229
25229
|
*/
|
|
25230
25230
|
duration: [{
|
|
25231
|
-
duration: [
|
|
25231
|
+
duration: [Ve, "initial", ke, ve]
|
|
25232
25232
|
}],
|
|
25233
25233
|
/**
|
|
25234
25234
|
* Transition Timing Function
|
|
@@ -25242,7 +25242,7 @@ const jt = (e) => {
|
|
|
25242
25242
|
* @see https://tailwindcss.com/docs/transition-delay
|
|
25243
25243
|
*/
|
|
25244
25244
|
delay: [{
|
|
25245
|
-
delay: [
|
|
25245
|
+
delay: [Ve, ke, ve]
|
|
25246
25246
|
}],
|
|
25247
25247
|
/**
|
|
25248
25248
|
* Animation
|
|
@@ -25686,7 +25686,7 @@ const jt = (e) => {
|
|
|
25686
25686
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
25687
25687
|
*/
|
|
25688
25688
|
"stroke-w": [{
|
|
25689
|
-
stroke: [
|
|
25689
|
+
stroke: [Ve, Vs, lr, Ol]
|
|
25690
25690
|
}],
|
|
25691
25691
|
/**
|
|
25692
25692
|
* Stroke
|
|
@@ -25854,8 +25854,8 @@ const ww = Be.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: $e("", n), children: [
|
|
25858
|
+
t && /* @__PURE__ */ D(tn, { children: [
|
|
25859
25859
|
/* @__PURE__ */ b(lw, { ref: s, trackRef: t, volume: 1 }),
|
|
25860
25860
|
/* @__PURE__ */ b(
|
|
25861
25861
|
uw,
|
|
@@ -25910,7 +25910,7 @@ const QO = ({
|
|
|
25910
25910
|
className: "rounded-md"
|
|
25911
25911
|
}
|
|
25912
25912
|
) });
|
|
25913
|
-
}, WO =
|
|
25913
|
+
}, WO = _.forwardRef(function({ trackRef: t, className: n, ...i }, r) {
|
|
25914
25914
|
var s, o;
|
|
25915
25915
|
return /* @__PURE__ */ b("div", { ref: r, className: $e("bg-muted overflow-hidden rounded-md", n), children: /* @__PURE__ */ b(
|
|
25916
25916
|
Cc,
|
|
@@ -25922,7 +25922,7 @@ const QO = ({
|
|
|
25922
25922
|
...i
|
|
25923
25923
|
}
|
|
25924
25924
|
) });
|
|
25925
|
-
}), mg =
|
|
25925
|
+
}), mg = je.create(WO), qO = je.create(ww), YO = je.create(QO), mi = {
|
|
25926
25926
|
initial: {
|
|
25927
25927
|
opacity: 0,
|
|
25928
25928
|
scale: 0
|
|
@@ -26021,7 +26021,7 @@ function XO({ 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: $e(Lr.grid), children: [
|
|
26025
26025
|
f && /* @__PURE__ */ b(
|
|
26026
26026
|
"div",
|
|
26027
26027
|
{
|
|
@@ -26031,7 +26031,7 @@ function XO({ 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
|
qO,
|
|
@@ -26073,7 +26073,7 @@ function XO({ 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
|
{
|
|
@@ -26425,7 +26425,7 @@ function hn(e) {
|
|
|
26425
26425
|
return gg[e] || gg.vox;
|
|
26426
26426
|
}
|
|
26427
26427
|
function bg({ timeout: e }) {
|
|
26428
|
-
const [t, n] = Ae(100), i =
|
|
26428
|
+
const [t, n] = Ae(100), i = Jt(null), r = Jt(null);
|
|
26429
26429
|
return kt(() => {
|
|
26430
26430
|
if (!e || e <= 0) return;
|
|
26431
26431
|
n(100), r.current = Date.now();
|
|
@@ -26438,7 +26438,7 @@ function bg({ timeout: e }) {
|
|
|
26438
26438
|
i.current && cancelAnimationFrame(i.current);
|
|
26439
26439
|
};
|
|
26440
26440
|
}, [e]), !e || e <= 0 ? null : /* @__PURE__ */ b("div", { className: "w-full h-1 relative top-1 rounded-t-4xl bg-gray-700 overflow-hidden", children: /* @__PURE__ */ b(
|
|
26441
|
-
|
|
26441
|
+
je.div,
|
|
26442
26442
|
{
|
|
26443
26443
|
className: "h-1 rounded-t-4xl dark:bg-white bg-blue-200 ",
|
|
26444
26444
|
initial: { width: "100%" },
|
|
@@ -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] = _.useState(() => Date.now()), o = () => e.component ? _.createElement(e.component, {
|
|
26456
26456
|
handler: e.handler || void 0,
|
|
26457
26457
|
timeout: e.timeout,
|
|
26458
26458
|
loadData: async (l) => {
|
|
@@ -26465,17 +26465,17 @@ 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__ */
|
|
26469
|
-
|
|
26468
|
+
return /* @__PURE__ */ b(gs, { children: /* @__PURE__ */ D(
|
|
26469
|
+
je.div,
|
|
26470
26470
|
{
|
|
26471
26471
|
initial: { opacity: 0 },
|
|
26472
26472
|
animate: { opacity: 1 },
|
|
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",
|
|
@@ -26494,13 +26494,13 @@ function ec({ interaction: e, theme: t, onDismiss: n, client: i, addLocalMessage
|
|
|
26494
26494
|
case "embedded":
|
|
26495
26495
|
default:
|
|
26496
26496
|
return /* @__PURE__ */ b(gs, { children: /* @__PURE__ */ b(
|
|
26497
|
-
|
|
26497
|
+
je.div,
|
|
26498
26498
|
{
|
|
26499
26499
|
initial: { opacity: 0, y: 20 },
|
|
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: KO(s) }),
|
|
26536
26536
|
a && /* @__PURE__ */ b("span", { className: "text-xs ml-1 text-red-500", children: "(Expired)" })
|
|
@@ -26595,9 +26595,9 @@ function Tc({
|
|
|
26595
26595
|
n ? "opacity-50 cursor-not-allowed" : "hover:scale-105"
|
|
26596
26596
|
);
|
|
26597
26597
|
}, G = () => /* @__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
|
-
E && 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
|
+
E && k && /* @__PURE__ */ D(tn, { children: [
|
|
26601
26601
|
/* @__PURE__ */ b(
|
|
26602
26602
|
"button",
|
|
26603
26603
|
{
|
|
@@ -26659,7 +26659,7 @@ function Tc({
|
|
|
26659
26659
|
}
|
|
26660
26660
|
)
|
|
26661
26661
|
] }),
|
|
26662
|
-
!x && /* @__PURE__ */
|
|
26662
|
+
!x && /* @__PURE__ */ D(tn, { children: [
|
|
26663
26663
|
i && o && /* @__PURE__ */ b(
|
|
26664
26664
|
"button",
|
|
26665
26665
|
{
|
|
@@ -26716,10 +26716,10 @@ function Tc({
|
|
|
26716
26716
|
Tc.displayName = "UnifiedControlBar";
|
|
26717
26717
|
const i_ = ({ logLevel: e } = {}) => {
|
|
26718
26718
|
const t = tw();
|
|
26719
|
-
|
|
26719
|
+
_.useEffect(() => (WC(e ?? "debug"), window.__lk_room = t, () => {
|
|
26720
26720
|
window.__lk_room = void 0;
|
|
26721
26721
|
}), [t, e]);
|
|
26722
|
-
}, Sw =
|
|
26722
|
+
}, Sw = _.forwardRef((e, t) => {
|
|
26723
26723
|
const {
|
|
26724
26724
|
alt: n,
|
|
26725
26725
|
color: i = "currentColor",
|
|
@@ -26730,7 +26730,7 @@ const i_ = ({ logLevel: e } = {}) => {
|
|
|
26730
26730
|
weights: c,
|
|
26731
26731
|
...l
|
|
26732
26732
|
} = e;
|
|
26733
|
-
return /* @__PURE__ */
|
|
26733
|
+
return /* @__PURE__ */ _.createElement(
|
|
26734
26734
|
"svg",
|
|
26735
26735
|
{
|
|
26736
26736
|
ref: t,
|
|
@@ -26742,7 +26742,7 @@ const i_ = ({ logLevel: e } = {}) => {
|
|
|
26742
26742
|
transform: o ? "scale(-1, 1)" : void 0,
|
|
26743
26743
|
...l
|
|
26744
26744
|
},
|
|
26745
|
-
!!n && /* @__PURE__ */
|
|
26745
|
+
!!n && /* @__PURE__ */ _.createElement("title", null, n),
|
|
26746
26746
|
a,
|
|
26747
26747
|
c.get(s)
|
|
26748
26748
|
);
|
|
@@ -26751,29 +26751,29 @@ Sw.displayName = "SSRBase";
|
|
|
26751
26751
|
const r_ = /* @__PURE__ */ new Map([
|
|
26752
26752
|
[
|
|
26753
26753
|
"bold",
|
|
26754
|
-
/* @__PURE__ */
|
|
26754
|
+
/* @__PURE__ */ _.createElement(_.Fragment, null, /* @__PURE__ */ _.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__ */ _.createElement(_.Fragment, null, /* @__PURE__ */ _.createElement("path", { d: "M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z", opacity: "0.2" }), /* @__PURE__ */ _.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__ */ _.createElement(_.Fragment, null, /* @__PURE__ */ _.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__ */ _.createElement(_.Fragment, null, /* @__PURE__ */ _.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__ */ _.createElement(_.Fragment, null, /* @__PURE__ */ _.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__ */ _.createElement(_.Fragment, null, /* @__PURE__ */ _.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 = _.forwardRef((e, t) => /* @__PURE__ */ _.createElement(Sw, { ref: t, ...e, weights: r_ }));
|
|
26777
26777
|
nc.displayName = "SpinnerIcon";
|
|
26778
26778
|
function s_({
|
|
26779
26779
|
text: e,
|
|
@@ -26781,8 +26781,8 @@ function s_({
|
|
|
26781
26781
|
isRealTimeStream: n = !1,
|
|
26782
26782
|
speed: i = 50
|
|
26783
26783
|
}) {
|
|
26784
|
-
const [r, s] =
|
|
26785
|
-
return
|
|
26784
|
+
const [r, s] = _.useState(""), [o, a] = _.useState(0);
|
|
26785
|
+
return _.useEffect(() => {
|
|
26786
26786
|
if (n) {
|
|
26787
26787
|
s(e);
|
|
26788
26788
|
return;
|
|
@@ -26797,12 +26797,12 @@ function s_({
|
|
|
26797
26797
|
}, i);
|
|
26798
26798
|
return () => clearTimeout(c);
|
|
26799
26799
|
}
|
|
26800
|
-
}, [e, o, t, i, n]),
|
|
26800
|
+
}, [e, o, t, i, n]), _.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
|
+
je.span,
|
|
26806
26806
|
{
|
|
26807
26807
|
className: "w-1.5 h-1.5 bg-current rounded-full mx-0.5",
|
|
26808
26808
|
animate: {
|
|
@@ -26831,8 +26831,8 @@ function a_(e) {
|
|
|
26831
26831
|
return parseFloat((e / Math.pow(t, i)).toFixed(2)) + " " + n[i];
|
|
26832
26832
|
}
|
|
26833
26833
|
function c_({ 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 = o_(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 = o_(a), p = c || l, v = c ? u : d, g = c ? "Downloading..." : l ? "Uploading..." : "Complete", [x, S] = _.useState(null);
|
|
26835
|
+
_.useEffect(() => {
|
|
26836
26836
|
if (h)
|
|
26837
26837
|
S(h);
|
|
26838
26838
|
else if (f && a.startsWith("image/")) {
|
|
@@ -26847,8 +26847,8 @@ function c_({ message: e, theme: t, isOwn: n }) {
|
|
|
26847
26847
|
P.href = h, P.download = s, P.click();
|
|
26848
26848
|
}
|
|
26849
26849
|
}, E = a.startsWith("image/") && x;
|
|
26850
|
-
return /* @__PURE__ */
|
|
26851
|
-
E && /* @__PURE__ */
|
|
26850
|
+
return /* @__PURE__ */ D("div", { className: "flex flex-col gap-2 max-w-full sm:max-w-sm", children: [
|
|
26851
|
+
E && /* @__PURE__ */ D("div", { className: "relative rounded-lg overflow-hidden", children: [
|
|
26852
26852
|
/* @__PURE__ */ b(
|
|
26853
26853
|
"img",
|
|
26854
26854
|
{
|
|
@@ -26860,7 +26860,7 @@ function c_({ 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 c_({ 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 && a_(o),
|
|
26875
|
-
p && /* @__PURE__ */
|
|
26875
|
+
p && /* @__PURE__ */ D(tn, { children: [
|
|
26876
26876
|
o > 0 && " • ",
|
|
26877
26877
|
g,
|
|
26878
26878
|
" ",
|
|
@@ -26884,7 +26884,7 @@ function c_({ message: e, theme: t, isOwn: n }) {
|
|
|
26884
26884
|
w-full h-1 rounded-full mt-1 overflow-hidden
|
|
26885
26885
|
${t === "light" ? "bg-gray-200" : "bg-gray-700"}
|
|
26886
26886
|
`, children: /* @__PURE__ */ b(
|
|
26887
|
-
|
|
26887
|
+
je.div,
|
|
26888
26888
|
{
|
|
26889
26889
|
className: `h-full ${t === "light" ? "bg-blue-500" : "bg-blue-400"}`,
|
|
26890
26890
|
initial: { width: 0 },
|
|
@@ -26894,7 +26894,7 @@ function c_({ message: e, theme: t, isOwn: n }) {
|
|
|
26894
26894
|
) })
|
|
26895
26895
|
] }),
|
|
26896
26896
|
h && !p && /* @__PURE__ */ b(
|
|
26897
|
-
|
|
26897
|
+
je.button,
|
|
26898
26898
|
{
|
|
26899
26899
|
onClick: w,
|
|
26900
26900
|
whileHover: { scale: 1.05 },
|
|
@@ -26945,7 +26945,7 @@ function l_(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",
|
|
@@ -26957,7 +26957,7 @@ function l_(e) {
|
|
|
26957
26957
|
)
|
|
26958
26958
|
] });
|
|
26959
26959
|
},
|
|
26960
|
-
pre: ({ children: t, ...n }) => /* @__PURE__ */ b(
|
|
26960
|
+
pre: ({ children: t, ...n }) => /* @__PURE__ */ b(tn, { children: t }),
|
|
26961
26961
|
ul: (t) => /* @__PURE__ */ b("ul", { className: "list-disc pl-5 my-2 space-y-1", ...t }),
|
|
26962
26962
|
ol: (t) => /* @__PURE__ */ b("ol", { className: "list-decimal pl-5 my-2 space-y-1", ...t }),
|
|
26963
26963
|
li: (t) => /* @__PURE__ */ b("li", { className: "leading-relaxed", ...t }),
|
|
@@ -31086,7 +31086,7 @@ function nL(e) {
|
|
|
31086
31086
|
image: s(Ne),
|
|
31087
31087
|
label: o,
|
|
31088
31088
|
link: s(Ce),
|
|
31089
|
-
listItem: s(
|
|
31089
|
+
listItem: s(Qt),
|
|
31090
31090
|
listItemValue: h,
|
|
31091
31091
|
listOrdered: s(Mt, d),
|
|
31092
31092
|
listUnordered: s(Mt),
|
|
@@ -31206,16 +31206,16 @@ function nL(e) {
|
|
|
31206
31206
|
function r(Q, ae, Re) {
|
|
31207
31207
|
let Ge = ae - 1, Xe = -1, cn = !1, Vn, xn, fn, Nn;
|
|
31208
31208
|
for (; ++Ge <= Re; ) {
|
|
31209
|
-
const
|
|
31210
|
-
switch (
|
|
31209
|
+
const Xt = Q[Ge];
|
|
31210
|
+
switch (Xt[1].type) {
|
|
31211
31211
|
case "listUnordered":
|
|
31212
31212
|
case "listOrdered":
|
|
31213
31213
|
case "blockQuote": {
|
|
31214
|
-
|
|
31214
|
+
Xt[0] === "enter" ? Xe++ : Xe--, Nn = void 0;
|
|
31215
31215
|
break;
|
|
31216
31216
|
}
|
|
31217
31217
|
case "lineEndingBlank": {
|
|
31218
|
-
|
|
31218
|
+
Xt[0] === "enter" && (Vn && !Nn && !Xe && !fn && (fn = Ge), Nn = void 0);
|
|
31219
31219
|
break;
|
|
31220
31220
|
}
|
|
31221
31221
|
case "linePrefix":
|
|
@@ -31227,27 +31227,27 @@ function nL(e) {
|
|
|
31227
31227
|
default:
|
|
31228
31228
|
Nn = void 0;
|
|
31229
31229
|
}
|
|
31230
|
-
if (!Xe &&
|
|
31230
|
+
if (!Xe && Xt[0] === "enter" && Xt[1].type === "listItemPrefix" || Xe === -1 && Xt[0] === "exit" && (Xt[1].type === "listUnordered" || Xt[1].type === "listOrdered")) {
|
|
31231
31231
|
if (Vn) {
|
|
31232
31232
|
let Zn = Ge;
|
|
31233
31233
|
for (xn = void 0; Zn--; ) {
|
|
31234
|
-
const
|
|
31235
|
-
if (
|
|
31236
|
-
if (
|
|
31237
|
-
xn && (Q[xn][1].type = "lineEndingBlank", cn = !0),
|
|
31238
|
-
} else if (!(
|
|
31234
|
+
const Zt = Q[Zn];
|
|
31235
|
+
if (Zt[1].type === "lineEnding" || Zt[1].type === "lineEndingBlank") {
|
|
31236
|
+
if (Zt[0] === "exit") continue;
|
|
31237
|
+
xn && (Q[xn][1].type = "lineEndingBlank", cn = !0), Zt[1].type = "lineEnding", xn = Zn;
|
|
31238
|
+
} else if (!(Zt[1].type === "linePrefix" || Zt[1].type === "blockQuotePrefix" || Zt[1].type === "blockQuotePrefixWhitespace" || Zt[1].type === "blockQuoteMarker" || Zt[1].type === "listItemIndent")) break;
|
|
31239
31239
|
}
|
|
31240
|
-
fn && (!xn || fn < xn) && (Vn._spread = !0), Vn.end = Object.assign({}, xn ? Q[xn][1].start :
|
|
31240
|
+
fn && (!xn || fn < xn) && (Vn._spread = !0), Vn.end = Object.assign({}, xn ? Q[xn][1].start : Xt[1].end), Q.splice(xn || Ge, 0, ["exit", Vn, Xt[2]]), Ge++, Re++;
|
|
31241
31241
|
}
|
|
31242
|
-
if (
|
|
31242
|
+
if (Xt[1].type === "listItemPrefix") {
|
|
31243
31243
|
const Zn = {
|
|
31244
31244
|
type: "listItem",
|
|
31245
31245
|
_spread: !1,
|
|
31246
|
-
start: Object.assign({},
|
|
31246
|
+
start: Object.assign({}, Xt[1].start),
|
|
31247
31247
|
// @ts-expect-error: we’ll add `end` in a second.
|
|
31248
31248
|
end: void 0
|
|
31249
31249
|
};
|
|
31250
|
-
Vn = Zn, Q.splice(Ge, 0, ["enter", Zn,
|
|
31250
|
+
Vn = Zn, Q.splice(Ge, 0, ["enter", Zn, Xt[2]]), Ge++, Re++, fn = void 0, Nn = !0;
|
|
31251
31251
|
}
|
|
31252
31252
|
}
|
|
31253
31253
|
}
|
|
@@ -31536,7 +31536,7 @@ function nL(e) {
|
|
|
31536
31536
|
children: []
|
|
31537
31537
|
};
|
|
31538
31538
|
}
|
|
31539
|
-
function
|
|
31539
|
+
function Qt(Q) {
|
|
31540
31540
|
return {
|
|
31541
31541
|
type: "listItem",
|
|
31542
31542
|
spread: Q._spread,
|
|
@@ -33729,11 +33729,11 @@ function TB(e, t) {
|
|
|
33729
33729
|
for (const u of SB)
|
|
33730
33730
|
Object.hasOwn(t, u.from) && ("" + u.from + (u.to ? "use `" + u.to + "` instead" : "remove it") + kB + u.id, void 0);
|
|
33731
33731
|
return Nc(e, l), z_(e, {
|
|
33732
|
-
Fragment:
|
|
33732
|
+
Fragment: tn,
|
|
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
|
});
|
|
@@ -49072,11 +49072,11 @@ function b4() {
|
|
|
49072
49072
|
function mt(Nt, Se) {
|
|
49073
49073
|
j && (Se = Se.map((ye) => ye.toLowerCase())), Se.forEach(function(ye) {
|
|
49074
49074
|
const De = ye.split("|");
|
|
49075
|
-
ge[De[0]] = [Nt,
|
|
49075
|
+
ge[De[0]] = [Nt, Qt(De[0], De[1])];
|
|
49076
49076
|
});
|
|
49077
49077
|
}
|
|
49078
49078
|
}
|
|
49079
|
-
function
|
|
49079
|
+
function Qt(A, j) {
|
|
49080
49080
|
return j ? Number(j) : lt(A) ? 0 : 1;
|
|
49081
49081
|
}
|
|
49082
49082
|
function lt(A) {
|
|
@@ -49146,8 +49146,8 @@ function b4() {
|
|
|
49146
49146
|
const De = this.matcherRe.exec(ye);
|
|
49147
49147
|
if (!De)
|
|
49148
49148
|
return null;
|
|
49149
|
-
const
|
|
49150
|
-
return De.splice(0,
|
|
49149
|
+
const Wt = De.findIndex((Ns, Kc) => Kc > 0 && Ns !== void 0), Lt = this.matchIndexes[Wt];
|
|
49150
|
+
return De.splice(0, Wt), Object.assign(De, Lt);
|
|
49151
49151
|
}
|
|
49152
49152
|
}
|
|
49153
49153
|
class ge {
|
|
@@ -49158,7 +49158,7 @@ function b4() {
|
|
|
49158
49158
|
getMatcher(ye) {
|
|
49159
49159
|
if (this.multiRegexes[ye]) return this.multiRegexes[ye];
|
|
49160
49160
|
const De = new te();
|
|
49161
|
-
return this.rules.slice(ye).forEach(([
|
|
49161
|
+
return this.rules.slice(ye).forEach(([Wt, Lt]) => De.addRule(Wt, Lt)), De.compile(), this.multiRegexes[ye] = De, De;
|
|
49162
49162
|
}
|
|
49163
49163
|
resumingScanAtSamePosition() {
|
|
49164
49164
|
return this.regexIndex !== 0;
|
|
@@ -49174,12 +49174,12 @@ function b4() {
|
|
|
49174
49174
|
exec(ye) {
|
|
49175
49175
|
const De = this.getMatcher(this.regexIndex);
|
|
49176
49176
|
De.lastIndex = this.lastIndex;
|
|
49177
|
-
let
|
|
49178
|
-
if (this.resumingScanAtSamePosition() && !(
|
|
49177
|
+
let Wt = De.exec(ye);
|
|
49178
|
+
if (this.resumingScanAtSamePosition() && !(Wt && Wt.index === this.lastIndex)) {
|
|
49179
49179
|
const Lt = this.getMatcher(0);
|
|
49180
|
-
Lt.lastIndex = this.lastIndex + 1,
|
|
49180
|
+
Lt.lastIndex = this.lastIndex + 1, Wt = Lt.exec(ye);
|
|
49181
49181
|
}
|
|
49182
|
-
return
|
|
49182
|
+
return Wt && (this.regexIndex += Wt.position + 1, this.regexIndex === this.count && this.considerAll()), Wt;
|
|
49183
49183
|
}
|
|
49184
49184
|
}
|
|
49185
49185
|
function mt(Se) {
|
|
@@ -49207,8 +49207,8 @@ function b4() {
|
|
|
49207
49207
|
// default to 1 relevance if not specified
|
|
49208
49208
|
pe
|
|
49209
49209
|
].forEach((Lt) => Lt(Se, ye)), Se.isCompiled = !0;
|
|
49210
|
-
let
|
|
49211
|
-
return typeof Se.keywords == "object" && Se.keywords.$pattern && (Se.keywords = Object.assign({}, Se.keywords),
|
|
49210
|
+
let Wt = null;
|
|
49211
|
+
return typeof Se.keywords == "object" && Se.keywords.$pattern && (Se.keywords = Object.assign({}, Se.keywords), Wt = Se.keywords.$pattern, delete Se.keywords.$pattern), Wt = Wt || /\w+/, Se.keywords && (Se.keywords = Mt(Se.keywords, A.case_insensitive)), De.keywordPatternRe = j(Wt, !0), ye && (Se.begin || (Se.begin = /\B|\b/), De.beginRe = j(De.begin), !Se.end && !Se.endsWithParent && (Se.end = /\B|\b/), Se.end && (De.endRe = j(De.end)), De.terminatorEnd = d(De.end) || "", Se.endsWithParent && ye.terminatorEnd && (De.terminatorEnd += (Se.end ? "|" : "") + ye.terminatorEnd)), Se.illegal && (De.illegalRe = j(
|
|
49212
49212
|
/** @type {RegExp | string} */
|
|
49213
49213
|
Se.illegal
|
|
49214
49214
|
)), Se.contains || (Se.contains = []), Se.contains = [].concat(...Se.contains.map(function(Lt) {
|
|
@@ -49236,13 +49236,13 @@ function b4() {
|
|
|
49236
49236
|
return i(A, { variants: null }, j);
|
|
49237
49237
|
})), A.cachedVariants ? A.cachedVariants : fn(A) ? i(A, { starts: A.starts ? i(A.starts) : null }) : Object.isFrozen(A) ? i(A) : A;
|
|
49238
49238
|
}
|
|
49239
|
-
var
|
|
49239
|
+
var Xt = "11.11.1";
|
|
49240
49240
|
class Zn extends Error {
|
|
49241
49241
|
constructor(j, te) {
|
|
49242
49242
|
super(j), this.name = "HTMLInjectionError", this.html = te;
|
|
49243
49243
|
}
|
|
49244
49244
|
}
|
|
49245
|
-
const
|
|
49245
|
+
const Zt = n, Pr = i, Mr = Symbol("nomatch"), Ms = 7, or = function(A) {
|
|
49246
49246
|
const j = /* @__PURE__ */ Object.create(null), te = /* @__PURE__ */ Object.create(null), ge = [];
|
|
49247
49247
|
let mt = !0;
|
|
49248
49248
|
const Nt = "Could not find the language '{}', did you forget to load/include a language module?", Se = { disableAutodetect: !0, name: "Plain text", contains: [] };
|
|
@@ -49261,7 +49261,7 @@ function b4() {
|
|
|
49261
49261
|
function De(ce) {
|
|
49262
49262
|
return ye.noHighlightRe.test(ce);
|
|
49263
49263
|
}
|
|
49264
|
-
function
|
|
49264
|
+
function Wt(ce) {
|
|
49265
49265
|
let Te = ce.className + " ";
|
|
49266
49266
|
Te += ce.parentNode ? ce.parentNode.className : "";
|
|
49267
49267
|
const We = ye.languageDetectRe.exec(Te);
|
|
@@ -49290,66 +49290,66 @@ https://github.com/highlightjs/highlight.js/issues/2277`), zt = ce, gt = Te), We
|
|
|
49290
49290
|
}
|
|
49291
49291
|
function Li() {
|
|
49292
49292
|
if (!Le.keywords) {
|
|
49293
|
-
|
|
49293
|
+
$t.addText(bt);
|
|
49294
49294
|
return;
|
|
49295
49295
|
}
|
|
49296
49296
|
let me = 0;
|
|
49297
49297
|
Le.keywordPatternRe.lastIndex = 0;
|
|
49298
|
-
let xe = Le.keywordPatternRe.exec(bt),
|
|
49298
|
+
let xe = Le.keywordPatternRe.exec(bt), Ue = "";
|
|
49299
49299
|
for (; xe; ) {
|
|
49300
|
-
|
|
49300
|
+
Ue += bt.substring(me, xe.index);
|
|
49301
49301
|
const nt = ei.case_insensitive ? xe[0].toLowerCase() : xe[0], rn = zn(Le, nt);
|
|
49302
49302
|
if (rn) {
|
|
49303
49303
|
const [fi, Ux] = rn;
|
|
49304
|
-
if (
|
|
49305
|
-
|
|
49304
|
+
if ($t.addText(Ue), Ue = "", zt[nt] = (zt[nt] || 0) + 1, zt[nt] <= Ms && (Vo += Ux), fi.startsWith("_"))
|
|
49305
|
+
Ue += xe[0];
|
|
49306
49306
|
else {
|
|
49307
49307
|
const Vx = ei.classNameAliases[fi] || fi;
|
|
49308
49308
|
$n(xe[0], Vx);
|
|
49309
49309
|
}
|
|
49310
49310
|
} else
|
|
49311
|
-
|
|
49311
|
+
Ue += xe[0];
|
|
49312
49312
|
me = Le.keywordPatternRe.lastIndex, xe = Le.keywordPatternRe.exec(bt);
|
|
49313
49313
|
}
|
|
49314
|
-
|
|
49314
|
+
Ue += bt.substring(me), $t.addText(Ue);
|
|
49315
49315
|
}
|
|
49316
49316
|
function Fo() {
|
|
49317
49317
|
if (bt === "") return;
|
|
49318
49318
|
let me = null;
|
|
49319
49319
|
if (typeof Le.subLanguage == "string") {
|
|
49320
49320
|
if (!j[Le.subLanguage]) {
|
|
49321
|
-
|
|
49321
|
+
$t.addText(bt);
|
|
49322
49322
|
return;
|
|
49323
49323
|
}
|
|
49324
49324
|
me = Ns(Le.subLanguage, bt, !0, _f[Le.subLanguage]), _f[Le.subLanguage] = /** @type {CompiledMode} */
|
|
49325
49325
|
me._top;
|
|
49326
49326
|
} else
|
|
49327
49327
|
me = Qc(bt, Le.subLanguage.length ? Le.subLanguage : null);
|
|
49328
|
-
Le.relevance > 0 && (Vo += me.relevance),
|
|
49328
|
+
Le.relevance > 0 && (Vo += me.relevance), $t.__addSublanguage(me._emitter, me.language);
|
|
49329
49329
|
}
|
|
49330
49330
|
function En() {
|
|
49331
49331
|
Le.subLanguage != null ? Fo() : Li(), bt = "";
|
|
49332
49332
|
}
|
|
49333
49333
|
function $n(me, xe) {
|
|
49334
|
-
me !== "" && (
|
|
49334
|
+
me !== "" && ($t.startScope(xe), $t.addText(me), $t.endScope());
|
|
49335
49335
|
}
|
|
49336
49336
|
function Pf(me, xe) {
|
|
49337
|
-
let
|
|
49337
|
+
let Ue = 1;
|
|
49338
49338
|
const nt = xe.length - 1;
|
|
49339
|
-
for (;
|
|
49340
|
-
if (!me._emit[
|
|
49341
|
-
|
|
49339
|
+
for (; Ue <= nt; ) {
|
|
49340
|
+
if (!me._emit[Ue]) {
|
|
49341
|
+
Ue++;
|
|
49342
49342
|
continue;
|
|
49343
49343
|
}
|
|
49344
|
-
const rn = ei.classNameAliases[me[
|
|
49345
|
-
rn ? $n(fi, rn) : (bt = fi, Li(), bt = ""),
|
|
49344
|
+
const rn = ei.classNameAliases[me[Ue]] || me[Ue], fi = xe[Ue];
|
|
49345
|
+
rn ? $n(fi, rn) : (bt = fi, Li(), bt = ""), Ue++;
|
|
49346
49346
|
}
|
|
49347
49347
|
}
|
|
49348
49348
|
function Mf(me, xe) {
|
|
49349
|
-
return me.scope && typeof me.scope == "string" &&
|
|
49349
|
+
return me.scope && typeof me.scope == "string" && $t.openNode(ei.classNameAliases[me.scope] || me.scope), me.beginScope && (me.beginScope._wrap ? ($n(bt, ei.classNameAliases[me.beginScope._wrap] || me.beginScope._wrap), bt = "") : me.beginScope._multi && (Pf(me.beginScope, xe), bt = "")), Le = Object.create(me, { parent: { value: Le } }), Le;
|
|
49350
49350
|
}
|
|
49351
|
-
function Nf(me, xe,
|
|
49352
|
-
let nt = S(me.endRe,
|
|
49351
|
+
function Nf(me, xe, Ue) {
|
|
49352
|
+
let nt = S(me.endRe, Ue);
|
|
49353
49353
|
if (nt) {
|
|
49354
49354
|
if (me["on:end"]) {
|
|
49355
49355
|
const rn = new t(me);
|
|
@@ -49362,26 +49362,26 @@ https://github.com/highlightjs/highlight.js/issues/2277`), zt = ce, gt = Te), We
|
|
|
49362
49362
|
}
|
|
49363
49363
|
}
|
|
49364
49364
|
if (me.endsWithParent)
|
|
49365
|
-
return Nf(me.parent, xe,
|
|
49365
|
+
return Nf(me.parent, xe, Ue);
|
|
49366
49366
|
}
|
|
49367
49367
|
function _x(me) {
|
|
49368
49368
|
return Le.matcher.regexIndex === 0 ? (bt += me[0], 1) : (Jc = !0, 0);
|
|
49369
49369
|
}
|
|
49370
49370
|
function Dx(me) {
|
|
49371
|
-
const xe = me[0],
|
|
49371
|
+
const xe = me[0], Ue = me.rule, nt = new t(Ue), rn = [Ue.__beforeBegin, Ue["on:begin"]];
|
|
49372
49372
|
for (const fi of rn)
|
|
49373
49373
|
if (fi && (fi(me, nt), nt.isMatchIgnored))
|
|
49374
49374
|
return _x(xe);
|
|
49375
|
-
return
|
|
49375
|
+
return Ue.skip ? bt += xe : (Ue.excludeBegin && (bt += xe), En(), !Ue.returnBegin && !Ue.excludeBegin && (bt = xe)), Mf(Ue, me), Ue.returnBegin ? 0 : xe.length;
|
|
49376
49376
|
}
|
|
49377
49377
|
function Lx(me) {
|
|
49378
|
-
const xe = me[0],
|
|
49378
|
+
const xe = me[0], Ue = Te.substring(me.index), nt = Nf(Le, me, Ue);
|
|
49379
49379
|
if (!nt)
|
|
49380
49380
|
return Mr;
|
|
49381
49381
|
const rn = Le;
|
|
49382
49382
|
Le.endScope && Le.endScope._wrap ? (En(), $n(xe, Le.endScope._wrap)) : Le.endScope && Le.endScope._multi ? (En(), Pf(Le.endScope, me)) : rn.skip ? bt += xe : (rn.returnEnd || rn.excludeEnd || (bt += xe), En(), rn.excludeEnd && (bt = xe));
|
|
49383
49383
|
do
|
|
49384
|
-
Le.scope &&
|
|
49384
|
+
Le.scope && $t.closeNode(), !Le.skip && !Le.subLanguage && (Vo += Le.relevance), Le = Le.parent;
|
|
49385
49385
|
while (Le !== nt.parent);
|
|
49386
49386
|
return nt.starts && Mf(nt.starts, me), rn.returnEnd ? 0 : xe.length;
|
|
49387
49387
|
}
|
|
@@ -49389,14 +49389,14 @@ https://github.com/highlightjs/highlight.js/issues/2277`), zt = ce, gt = Te), We
|
|
|
49389
49389
|
const me = [];
|
|
49390
49390
|
for (let xe = Le; xe !== ei; xe = xe.parent)
|
|
49391
49391
|
xe.scope && me.unshift(xe.scope);
|
|
49392
|
-
me.forEach((xe) =>
|
|
49392
|
+
me.forEach((xe) => $t.openNode(xe));
|
|
49393
49393
|
}
|
|
49394
49394
|
let Uo = {};
|
|
49395
49395
|
function Of(me, xe) {
|
|
49396
|
-
const
|
|
49397
|
-
if (bt += me,
|
|
49396
|
+
const Ue = xe && xe[0];
|
|
49397
|
+
if (bt += me, Ue == null)
|
|
49398
49398
|
return En(), 0;
|
|
49399
|
-
if (Uo.type === "begin" && xe.type === "end" && Uo.index === xe.index &&
|
|
49399
|
+
if (Uo.type === "begin" && xe.type === "end" && Uo.index === xe.index && Ue === "") {
|
|
49400
49400
|
if (bt += Te.slice(xe.index, xe.index + 1), !mt) {
|
|
49401
49401
|
const nt = new Error(`0 width match regex (${ce})`);
|
|
49402
49402
|
throw nt.languageName = ce, nt.badRule = Uo.rule, nt;
|
|
@@ -49406,54 +49406,54 @@ https://github.com/highlightjs/highlight.js/issues/2277`), zt = ce, gt = Te), We
|
|
|
49406
49406
|
if (Uo = xe, xe.type === "begin")
|
|
49407
49407
|
return Dx(xe);
|
|
49408
49408
|
if (xe.type === "illegal" && !We) {
|
|
49409
|
-
const nt = new Error('Illegal lexeme "' +
|
|
49409
|
+
const nt = new Error('Illegal lexeme "' + Ue + '" for mode "' + (Le.scope || "<unnamed>") + '"');
|
|
49410
49410
|
throw nt.mode = Le, nt;
|
|
49411
49411
|
} else if (xe.type === "end") {
|
|
49412
49412
|
const nt = Lx(xe);
|
|
49413
49413
|
if (nt !== Mr)
|
|
49414
49414
|
return nt;
|
|
49415
49415
|
}
|
|
49416
|
-
if (xe.type === "illegal" &&
|
|
49416
|
+
if (xe.type === "illegal" && Ue === "")
|
|
49417
49417
|
return bt += `
|
|
49418
49418
|
`, 1;
|
|
49419
49419
|
if (Yc > 1e5 && Yc > xe.index * 3)
|
|
49420
49420
|
throw new Error("potential infinite loop, way more iterations than matches");
|
|
49421
|
-
return bt +=
|
|
49421
|
+
return bt += Ue, Ue.length;
|
|
49422
49422
|
}
|
|
49423
49423
|
const ei = Di(ce);
|
|
49424
49424
|
if (!ei)
|
|
49425
49425
|
throw Vt(Nt.replace("{}", ce)), new Error('Unknown language: "' + ce + '"');
|
|
49426
49426
|
const Fx = xn(ei);
|
|
49427
49427
|
let qc = "", Le = gt || Fx;
|
|
49428
|
-
const _f = {},
|
|
49428
|
+
const _f = {}, $t = new ye.__emitter(ye);
|
|
49429
49429
|
Bx();
|
|
49430
49430
|
let bt = "", Vo = 0, ar = 0, Yc = 0, Jc = !1;
|
|
49431
49431
|
try {
|
|
49432
49432
|
if (ei.__emitTokens)
|
|
49433
|
-
ei.__emitTokens(Te,
|
|
49433
|
+
ei.__emitTokens(Te, $t);
|
|
49434
49434
|
else {
|
|
49435
49435
|
for (Le.matcher.considerAll(); ; ) {
|
|
49436
49436
|
Yc++, Jc ? Jc = !1 : Le.matcher.considerAll(), Le.matcher.lastIndex = ar;
|
|
49437
49437
|
const me = Le.matcher.exec(Te);
|
|
49438
49438
|
if (!me) break;
|
|
49439
|
-
const xe = Te.substring(ar, me.index),
|
|
49440
|
-
ar = me.index +
|
|
49439
|
+
const xe = Te.substring(ar, me.index), Ue = Of(xe, me);
|
|
49440
|
+
ar = me.index + Ue;
|
|
49441
49441
|
}
|
|
49442
49442
|
Of(Te.substring(ar));
|
|
49443
49443
|
}
|
|
49444
|
-
return
|
|
49444
|
+
return $t.finalize(), qc = $t.toHTML(), {
|
|
49445
49445
|
language: ce,
|
|
49446
49446
|
value: qc,
|
|
49447
49447
|
relevance: Vo,
|
|
49448
49448
|
illegal: !1,
|
|
49449
|
-
_emitter:
|
|
49449
|
+
_emitter: $t,
|
|
49450
49450
|
_top: Le
|
|
49451
49451
|
};
|
|
49452
49452
|
} catch (me) {
|
|
49453
49453
|
if (me.message && me.message.includes("Illegal"))
|
|
49454
49454
|
return {
|
|
49455
49455
|
language: ce,
|
|
49456
|
-
value:
|
|
49456
|
+
value: Zt(Te),
|
|
49457
49457
|
illegal: !0,
|
|
49458
49458
|
relevance: 0,
|
|
49459
49459
|
_illegalBy: {
|
|
@@ -49463,16 +49463,16 @@ https://github.com/highlightjs/highlight.js/issues/2277`), zt = ce, gt = Te), We
|
|
|
49463
49463
|
mode: me.mode,
|
|
49464
49464
|
resultSoFar: qc
|
|
49465
49465
|
},
|
|
49466
|
-
_emitter:
|
|
49466
|
+
_emitter: $t
|
|
49467
49467
|
};
|
|
49468
49468
|
if (mt)
|
|
49469
49469
|
return {
|
|
49470
49470
|
language: ce,
|
|
49471
|
-
value:
|
|
49471
|
+
value: Zt(Te),
|
|
49472
49472
|
illegal: !1,
|
|
49473
49473
|
relevance: 0,
|
|
49474
49474
|
errorRaised: me,
|
|
49475
|
-
_emitter:
|
|
49475
|
+
_emitter: $t,
|
|
49476
49476
|
_top: Le
|
|
49477
49477
|
};
|
|
49478
49478
|
throw me;
|
|
@@ -49480,7 +49480,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), zt = ce, gt = Te), We
|
|
|
49480
49480
|
}
|
|
49481
49481
|
function Kc(ce) {
|
|
49482
49482
|
const Te = {
|
|
49483
|
-
value:
|
|
49483
|
+
value: Zt(ce),
|
|
49484
49484
|
illegal: !1,
|
|
49485
49485
|
relevance: 0,
|
|
49486
49486
|
_top: Se,
|
|
@@ -49512,7 +49512,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), zt = ce, gt = Te), We
|
|
|
49512
49512
|
}
|
|
49513
49513
|
function Wc(ce) {
|
|
49514
49514
|
let Te = null;
|
|
49515
|
-
const We =
|
|
49515
|
+
const We = Wt(ce);
|
|
49516
49516
|
if (De(We)) return;
|
|
49517
49517
|
if (Bo(
|
|
49518
49518
|
"before:highlightElement",
|
|
@@ -49641,7 +49641,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), zt = ce, gt = Te), We
|
|
|
49641
49641
|
mt = !1;
|
|
49642
49642
|
}, A.safeMode = function() {
|
|
49643
49643
|
mt = !0;
|
|
49644
|
-
}, A.versionString =
|
|
49644
|
+
}, A.versionString = Xt, A.regex = {
|
|
49645
49645
|
concat: p,
|
|
49646
49646
|
lookahead: h,
|
|
49647
49647
|
either: g,
|
|
@@ -49899,11 +49899,11 @@ function C4(e) {
|
|
|
49899
49899
|
}
|
|
49900
49900
|
function T4({ 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 = _.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 || d_(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 = _.useMemo(() => o ? h_(e.content) : e.content, [e.content, o]), c = _.useMemo(() => l_(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 T4({ 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 T4({ message: e, theme: t, isOwn: n, isStreaming: i = !1 }) {
|
|
|
49950
49950
|
}
|
|
49951
49951
|
function A4({ 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,10 +49966,10 @@ function A4({ 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
|
+
je.div,
|
|
49973
49973
|
{
|
|
49974
49974
|
className: `w-1 h-1 rounded-full ${e === "light" ? "bg-gray-400" : "bg-gray-500"}`,
|
|
49975
49975
|
animate: {
|
|
@@ -49993,29 +49993,29 @@ function A4({ theme: e }) {
|
|
|
49993
49993
|
] }) });
|
|
49994
49994
|
}
|
|
49995
49995
|
function I4() {
|
|
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 R4() {
|
|
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 P4({ 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 M4(e) {
|
|
50015
|
-
const [t, n] =
|
|
50015
|
+
const [t, n] = _.useState(() => e && typeof e.getChatMessages == "function" ? e.getChatMessages() : []), [i, r] = _.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] = _.useState(/* @__PURE__ */ new Set()), [a, c] = _.useState([]);
|
|
50019
50019
|
return {
|
|
50020
50020
|
messages: t,
|
|
50021
50021
|
setMessages: n,
|
|
@@ -50028,8 +50028,8 @@ function M4(e) {
|
|
|
50028
50028
|
};
|
|
50029
50029
|
}
|
|
50030
50030
|
function N4(e) {
|
|
50031
|
-
const [t, n] =
|
|
50032
|
-
return
|
|
50031
|
+
const [t, n] = _.useState("idle"), [i, r] = _.useState([]);
|
|
50032
|
+
return _.useEffect(() => {
|
|
50033
50033
|
(() => {
|
|
50034
50034
|
const u = e.getAgentState();
|
|
50035
50035
|
n(u || "idle");
|
|
@@ -50048,8 +50048,8 @@ function N4(e) {
|
|
|
50048
50048
|
};
|
|
50049
50049
|
}
|
|
50050
50050
|
function O4(e) {
|
|
50051
|
-
const [t, n] =
|
|
50052
|
-
return
|
|
50051
|
+
const [t, n] = _.useState(() => e.getCurrentInteraction());
|
|
50052
|
+
return _.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 O4(e) {
|
|
|
50058
50058
|
};
|
|
50059
50059
|
}
|
|
50060
50060
|
function _4() {
|
|
50061
|
-
const e =
|
|
50061
|
+
const e = _.useRef(null), [t, n] = _.useState(!0), i = _.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 _4() {
|
|
|
50066
50066
|
behavior: "smooth"
|
|
50067
50067
|
});
|
|
50068
50068
|
}
|
|
50069
|
-
}, []), r =
|
|
50069
|
+
}, []), r = _.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 = _.useCallback(() => {
|
|
50076
50076
|
const a = r();
|
|
50077
50077
|
n(a);
|
|
50078
|
-
}, [r]), o =
|
|
50078
|
+
}, [r]), o = _.useCallback((a = !1) => {
|
|
50079
50079
|
t && i(a);
|
|
50080
50080
|
}, [t, i]);
|
|
50081
50081
|
return {
|
|
@@ -50088,8 +50088,8 @@ function _4() {
|
|
|
50088
50088
|
};
|
|
50089
50089
|
}
|
|
50090
50090
|
function D4() {
|
|
50091
|
-
const [e, t] =
|
|
50092
|
-
return
|
|
50091
|
+
const [e, t] = _.useState(!1), [n, i] = _.useState(!1);
|
|
50092
|
+
return _.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 = _.useMemo(() => {
|
|
50114
50114
|
const B = e.getCurrentAgentInfo();
|
|
50115
50115
|
return Wh(B);
|
|
50116
|
-
}, [e]), { suggestedReplyEnabled: c, attachmentsEnabled: l } =
|
|
50116
|
+
}, [e]), { suggestedReplyEnabled: c, attachmentsEnabled: l } = _.useMemo(
|
|
50117
50117
|
() => GO(a),
|
|
50118
50118
|
[a]
|
|
50119
|
-
), u =
|
|
50119
|
+
), u = _.useMemo(
|
|
50120
50120
|
() => qh(a),
|
|
50121
50121
|
[a]
|
|
50122
50122
|
), {
|
|
@@ -50134,11 +50134,11 @@ function mf({
|
|
|
50134
50134
|
smartScrollToBottom: M,
|
|
50135
50135
|
handleScroll: y,
|
|
50136
50136
|
scrollToBottom: I
|
|
50137
|
-
} = _4(), { isMobile: N, isFullscreen: L, setIsFullscreen: U } = D4(), [q, ue] =
|
|
50138
|
-
|
|
50137
|
+
} = _4(), { isMobile: N, isFullscreen: L, setIsFullscreen: U } = D4(), [q, ue] = _.useState(/* @__PURE__ */ new Set()), [se, G] = _.useState([]), H = hn(t);
|
|
50138
|
+
_.useEffect(() => (L && N && (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 && N && (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, N]);
|
|
50141
|
-
const C = e.getCurrentAgentInfo(), K = (C == null ? void 0 : C.name) || "AI Assistant", Y = K.split(" ").map((B) => B[0]).join("").toUpperCase().slice(0, 2), T =
|
|
50141
|
+
const C = e.getCurrentAgentInfo(), K = (C == null ? void 0 : C.name) || "AI Assistant", Y = K.split(" ").map((B) => B[0]).join("").toUpperCase().slice(0, 2), T = _.useCallback((B) => {
|
|
50142
50142
|
const de = {
|
|
50143
50143
|
id: `local_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`,
|
|
50144
50144
|
content: B,
|
|
@@ -50155,7 +50155,7 @@ function mf({
|
|
|
50155
50155
|
};
|
|
50156
50156
|
h((Me) => [...Me, de]);
|
|
50157
50157
|
}, [h]);
|
|
50158
|
-
|
|
50158
|
+
_.useEffect(() => {
|
|
50159
50159
|
if (P && d.length > 0) {
|
|
50160
50160
|
M(!0);
|
|
50161
50161
|
const B = setTimeout(() => {
|
|
@@ -50163,7 +50163,7 @@ function mf({
|
|
|
50163
50163
|
}, 10);
|
|
50164
50164
|
return () => clearTimeout(B);
|
|
50165
50165
|
}
|
|
50166
|
-
}, [d.length, M, P]),
|
|
50166
|
+
}, [d.length, M, P]), _.useEffect(() => {
|
|
50167
50167
|
if (w && P) {
|
|
50168
50168
|
M(!0);
|
|
50169
50169
|
const B = setTimeout(() => {
|
|
@@ -50171,7 +50171,7 @@ function mf({
|
|
|
50171
50171
|
}, 50);
|
|
50172
50172
|
return () => clearTimeout(B);
|
|
50173
50173
|
}
|
|
50174
|
-
}, [w, M, P]),
|
|
50174
|
+
}, [w, M, P]), _.useEffect(() => {
|
|
50175
50175
|
S.forEach((B) => {
|
|
50176
50176
|
const de = `${B.created_at}-${B.type}`;
|
|
50177
50177
|
q.has(de) || (console.log("Processing tool execution:", de), ue((Me) => new Set(Me).add(de)), setTimeout(() => {
|
|
@@ -50201,7 +50201,7 @@ function mf({
|
|
|
50201
50201
|
}, 0);
|
|
50202
50202
|
}, 100));
|
|
50203
50203
|
});
|
|
50204
|
-
}, [S, q, h, P, M]),
|
|
50204
|
+
}, [S, q, h, P, M]), _.useEffect(() => {
|
|
50205
50205
|
const B = (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]);
|
|
@@ -50215,8 +50215,8 @@ function mf({
|
|
|
50215
50215
|
const Ce = we.content.length * 35 + 1e3;
|
|
50216
50216
|
setTimeout(() => {
|
|
50217
50217
|
p((Mt) => {
|
|
50218
|
-
const
|
|
50219
|
-
return
|
|
50218
|
+
const Qt = new Set(Mt);
|
|
50219
|
+
return Qt.delete(we.id), Qt;
|
|
50220
50220
|
});
|
|
50221
50221
|
}, Ce);
|
|
50222
50222
|
}
|
|
@@ -50251,7 +50251,7 @@ function mf({
|
|
|
50251
50251
|
return e.on("chat.message.received", B), e.on("chat.message.updated", de), e.on("chat.message.sent", Me), () => {
|
|
50252
50252
|
e.off("chat.message.received", B), e.off("chat.message.updated", de), e.off("chat.message.sent", Me);
|
|
50253
50253
|
};
|
|
50254
|
-
}, [e, w, P, M, f, h, p, g]),
|
|
50254
|
+
}, [e, w, P, M, f, h, p, g]), _.useEffect(() => {
|
|
50255
50255
|
const B = (pe) => {
|
|
50256
50256
|
console.log("ChatView: RPC interaction started:", pe);
|
|
50257
50257
|
const Ee = e.getCurrentInteraction();
|
|
@@ -50262,8 +50262,8 @@ function mf({
|
|
|
50262
50262
|
if (console.log("ChatView: RPC interaction completed:", pe), k(null), v.length > 0 && (console.log("ChatView: Processing", v.length, "queued messages"), h((Ee) => {
|
|
50263
50263
|
const Ne = [...Ee];
|
|
50264
50264
|
return v.forEach((Ce) => {
|
|
50265
|
-
var
|
|
50266
|
-
if (!Ne.some((lt) => lt.id === Ce.id) && (console.log("ChatView: Adding queued message:", Ce.id), Ne.push(Ce), Ce.sender.type === "agent" && (p((lt) => new Set(lt).add(Ce.id)), !((
|
|
50265
|
+
var Qt;
|
|
50266
|
+
if (!Ne.some((lt) => lt.id === Ce.id) && (console.log("ChatView: Adding queued message:", Ce.id), Ne.push(Ce), Ce.sender.type === "agent" && (p((lt) => new Set(lt).add(Ce.id)), !((Qt = Ce.metadata) != null && Qt.streaming)))) {
|
|
50267
50267
|
const lt = Ce.content.length * 35 + 1e3;
|
|
50268
50268
|
setTimeout(() => {
|
|
50269
50269
|
p((be) => {
|
|
@@ -50281,7 +50281,7 @@ function mf({
|
|
|
50281
50281
|
const Ce = [...Ne].reverse().findIndex((be) => be.sender.type === "participant");
|
|
50282
50282
|
let Mt = Ne.length;
|
|
50283
50283
|
Ce !== -1 && (Mt = Ne.length - Ce);
|
|
50284
|
-
const
|
|
50284
|
+
const Qt = {
|
|
50285
50285
|
id: `success_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`,
|
|
50286
50286
|
content: "",
|
|
50287
50287
|
timestamp: /* @__PURE__ */ new Date(),
|
|
@@ -50295,9 +50295,9 @@ function mf({
|
|
|
50295
50295
|
view: Ee || /* @__PURE__ */ b(I4, {})
|
|
50296
50296
|
}
|
|
50297
50297
|
};
|
|
50298
|
-
e && typeof e.addChatMessage == "function" && e.addChatMessage(
|
|
50298
|
+
e && typeof e.addChatMessage == "function" && e.addChatMessage(Qt);
|
|
50299
50299
|
const lt = [...Ne];
|
|
50300
|
-
return lt.splice(Mt, 0,
|
|
50300
|
+
return lt.splice(Mt, 0, Qt), lt;
|
|
50301
50301
|
});
|
|
50302
50302
|
}
|
|
50303
50303
|
}, Me = async (pe) => {
|
|
@@ -50342,8 +50342,8 @@ function mf({
|
|
|
50342
50342
|
console.log("ChatView: RPC interaction dismissed:", pe), console.log("ChatView: Current interaction before dismiss:", w == null ? void 0 : w.methodName), k(null), v.length > 0 && (console.log("ChatView: Processing", v.length, "queued messages after dismissal"), h((Ee) => {
|
|
50343
50343
|
const Ne = [...Ee];
|
|
50344
50344
|
return v.forEach((Ce) => {
|
|
50345
|
-
var
|
|
50346
|
-
if (!Ne.some((lt) => lt.id === Ce.id) && (Ne.push(Ce), Ce.sender.type === "agent" && (p((lt) => new Set(lt).add(Ce.id)), !((
|
|
50345
|
+
var Qt;
|
|
50346
|
+
if (!Ne.some((lt) => lt.id === Ce.id) && (Ne.push(Ce), Ce.sender.type === "agent" && (p((lt) => new Set(lt).add(Ce.id)), !((Qt = Ce.metadata) != null && Qt.streaming)))) {
|
|
50347
50347
|
const lt = Ce.content.length * 35 + 1e3;
|
|
50348
50348
|
setTimeout(() => {
|
|
50349
50349
|
p((be) => {
|
|
@@ -50363,7 +50363,7 @@ function mf({
|
|
|
50363
50363
|
return e.on("rpc.interaction.started", B), e.on("rpc.interaction.completed", de), e.on("rpc.interaction.timeout", Me), e.on("rpc.interaction.dismissed", we), () => {
|
|
50364
50364
|
e.off("rpc.interaction.started", B), e.off("rpc.interaction.completed", de), e.off("rpc.interaction.timeout", Me), e.off("rpc.interaction.dismissed", we);
|
|
50365
50365
|
};
|
|
50366
|
-
}, [e, P, M, K, v, w, k, h, p, g]),
|
|
50366
|
+
}, [e, P, M, K, v, w, k, h, p, g]), _.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 Z = async (B) => {
|
|
@@ -50379,7 +50379,7 @@ function mf({
|
|
|
50379
50379
|
console.error("Failed to send attachments:", de);
|
|
50380
50380
|
}
|
|
50381
50381
|
};
|
|
50382
|
-
|
|
50382
|
+
_.useEffect(() => {
|
|
50383
50383
|
const B = (de) => {
|
|
50384
50384
|
G(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 && N ? "fullscreen" : r, re = ie === "fullscreen" ? L && N ? `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 && N ? `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 && N ? "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", J = "flex-shrink-0 !w-full", Pe = () => {
|
|
50391
50391
|
U(!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
|
{
|
|
@@ -50415,14 +50415,14 @@ function mf({
|
|
|
50415
50415
|
}
|
|
50416
50416
|
) }),
|
|
50417
50417
|
n && /* @__PURE__ */ b(
|
|
50418
|
-
|
|
50418
|
+
je.button,
|
|
50419
50419
|
{
|
|
50420
50420
|
onClick: Pe,
|
|
50421
50421
|
whileHover: { scale: 1.05 },
|
|
50422
50422
|
whileTap: { scale: 0.95 },
|
|
50423
50423
|
className: `p-1.5 rounded-md transition-all duration-200 ${L && N ? "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,9 +50455,9 @@ 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
|
+
je.div,
|
|
50461
50461
|
{
|
|
50462
50462
|
animate: {
|
|
50463
50463
|
scale: [1, 1.05, 1]
|
|
@@ -50471,17 +50471,17 @@ function mf({
|
|
|
50471
50471
|
children: Y
|
|
50472
50472
|
}
|
|
50473
50473
|
),
|
|
50474
|
-
/* @__PURE__ */
|
|
50474
|
+
/* @__PURE__ */ D("p", { className: `text-base mb-2 ${L && N ? "text-white" : H.text.secondary}`, children: [
|
|
50475
50475
|
K,
|
|
50476
50476
|
" is joining..."
|
|
50477
50477
|
] }),
|
|
50478
50478
|
/* @__PURE__ */ b("p", { className: `text-xs ${L && N ? "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((B, de) => {
|
|
50481
50481
|
var Me, we, pe, Ee;
|
|
50482
|
-
return /* @__PURE__ */ b("div", { children: ((Me = B.metadata) == null ? void 0 : Me.type) === "successView" ? /* @__PURE__ */ b("div", { className: "flex w-full justify-end mb-4 px-3", children: /* @__PURE__ */
|
|
50482
|
+
return /* @__PURE__ */ b("div", { children: ((Me = B.metadata) == null ? void 0 : Me.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
|
+
je.div,
|
|
50485
50485
|
{
|
|
50486
50486
|
initial: { scale: 0 },
|
|
50487
50487
|
animate: { scale: 1 },
|
|
@@ -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
|
B.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: B.timestamp.toLocaleTimeString([], {
|
|
50496
50496
|
hour: "2-digit",
|
|
50497
50497
|
minute: "2-digit"
|
|
50498
50498
|
}) })
|
|
50499
50499
|
] })
|
|
50500
|
-
] }) }) : ((we = B.metadata) == null ? void 0 : we.type) === "timeoutView" ? /* @__PURE__ */ b("div", { className: "flex w-full justify-start mb-4 px-3", children: /* @__PURE__ */
|
|
50500
|
+
] }) }) : ((we = B.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
|
B.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: B.timestamp.toLocaleTimeString([], {
|
|
50505
50505
|
hour: "2-digit",
|
|
50506
50506
|
minute: "2-digit"
|
|
50507
50507
|
}) })
|
|
50508
50508
|
] })
|
|
50509
|
-
] }) }) : ((pe = B.metadata) == null ? void 0 : pe.type) === "visualization" ? /* @__PURE__ */ b("div", { className: "flex w-full justify-start mb-4 px-3", children: /* @__PURE__ */
|
|
50509
|
+
] }) }) : ((pe = B.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
|
B.metadata.view,
|
|
50513
50513
|
/* @__PURE__ */ b("div", { className: `text-xs ${H.text.muted} mt-1 opacity-70 transition-opacity duration-200`, children: B.timestamp.toLocaleTimeString([], {
|
|
50514
50514
|
hour: "2-digit",
|
|
50515
50515
|
minute: "2-digit"
|
|
50516
50516
|
}) })
|
|
50517
50517
|
] })
|
|
50518
|
-
] }) }) : ((Ee = B.metadata) == null ? void 0 : Ee.type) === "toolExecution" ? /* @__PURE__ */ b("div", { className: "flex w-full justify-start mb-4 px-3", children: /* @__PURE__ */
|
|
50518
|
+
] }) }) : ((Ee = B.metadata) == null ? void 0 : Ee.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
|
B.metadata.view,
|
|
50522
50522
|
/* @__PURE__ */ b("div", { className: `text-xs ${H.text.muted} mt-1 opacity-70 transition-opacity duration-200`, children: B.timestamp.toLocaleTimeString([], {
|
|
50523
50523
|
hour: "2-digit",
|
|
@@ -50535,7 +50535,7 @@ function mf({
|
|
|
50535
50535
|
) }, B.id);
|
|
50536
50536
|
}),
|
|
50537
50537
|
x === "thinking" && !w && /* @__PURE__ */ b(
|
|
50538
|
-
|
|
50538
|
+
je.div,
|
|
50539
50539
|
{
|
|
50540
50540
|
initial: { opacity: 0, y: 20 },
|
|
50541
50541
|
animate: { opacity: 1, y: 0 },
|
|
@@ -50544,9 +50544,9 @@ function mf({
|
|
|
50544
50544
|
children: /* @__PURE__ */ b(A4, { 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
|
+
je.div,
|
|
50550
50550
|
{
|
|
50551
50551
|
initial: { scale: 0 },
|
|
50552
50552
|
animate: { scale: 1 },
|
|
@@ -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
|
{
|
|
@@ -50568,7 +50568,7 @@ function mf({
|
|
|
50568
50568
|
w.methodName
|
|
50569
50569
|
),
|
|
50570
50570
|
/* @__PURE__ */ b(
|
|
50571
|
-
|
|
50571
|
+
je.div,
|
|
50572
50572
|
{
|
|
50573
50573
|
initial: { opacity: 0 },
|
|
50574
50574
|
animate: { opacity: 1 },
|
|
@@ -50586,7 +50586,7 @@ function mf({
|
|
|
50586
50586
|
}
|
|
50587
50587
|
),
|
|
50588
50588
|
!P && /* @__PURE__ */ b(
|
|
50589
|
-
|
|
50589
|
+
je.button,
|
|
50590
50590
|
{
|
|
50591
50591
|
initial: { opacity: 0, scale: 0.8 },
|
|
50592
50592
|
animate: { opacity: 1, scale: 1 },
|
|
@@ -50631,7 +50631,7 @@ function mf({
|
|
|
50631
50631
|
w.methodName
|
|
50632
50632
|
),
|
|
50633
50633
|
/* @__PURE__ */ b(
|
|
50634
|
-
|
|
50634
|
+
je.div,
|
|
50635
50635
|
{
|
|
50636
50636
|
initial: { opacity: 0, y: 20 },
|
|
50637
50637
|
animate: { opacity: 1, y: 0 },
|
|
@@ -50670,7 +50670,7 @@ const qS = Be.forwardRef(({
|
|
|
50670
50670
|
const [l, u] = Ae(!1), [d, h] = Ae(!1), [f, m] = Ae(!1), [p, v] = Ae(() => {
|
|
50671
50671
|
var X;
|
|
50672
50672
|
return ((X = s == null ? void 0 : s.getCurrentInteraction) == null ? void 0 : X.call(s)) || null;
|
|
50673
|
-
}), [g, x] = Ae(() => t), S =
|
|
50673
|
+
}), [g, x] = Ae(() => t), S = Jt(null), w = Be.useMemo(() => {
|
|
50674
50674
|
var le;
|
|
50675
50675
|
const X = (le = s == null ? void 0 : s.getCurrentAgentInfo) == null ? void 0 : le.call(s);
|
|
50676
50676
|
return Wh(X);
|
|
@@ -50758,8 +50758,8 @@ const qS = Be.forwardRef(({
|
|
|
50758
50758
|
o === "fullscreen" ? "max-w-none" : "",
|
|
50759
50759
|
"overflow-hidden h-full"
|
|
50760
50760
|
), G = a && (o === "popup" || o === "fullscreen"), H = Be.useMemo(() => d ? "Agent is taking longer than expected..." : N ? "Room connected. Waiting for agent..." : i, [d, N, i]), C = Be.useMemo(() => d ? "Please check your connection or try again." : N ? "The agent will join shortly." : "Agent is connecting... This may take a moment.", [d, N]), K = s.getCurrentAgentInfo();
|
|
50761
|
-
return g ? /* @__PURE__ */
|
|
50762
|
-
(G || k) && /* @__PURE__ */
|
|
50761
|
+
return g ? /* @__PURE__ */ D("main", { ref: c, className: $e(se, "relative", e && "pointer-events-none opacity-50"), children: [
|
|
50762
|
+
(G || k) && /* @__PURE__ */ D("div", { className: `flex items-center justify-between w-full p-4 border-b ${((Y = I.chatHeader) == null ? void 0 : Y.container) || "border-gray-200"}`, children: [
|
|
50763
50763
|
/* @__PURE__ */ b("div", { children: /* @__PURE__ */ b("h3", { className: `font-semibold ${I.text.primary}`, children: (K == null ? void 0 : K.agentName) || "Voice Session" }) }),
|
|
50764
50764
|
k && /* @__PURE__ */ b(
|
|
50765
50765
|
tc,
|
|
@@ -50772,14 +50772,14 @@ const qS = Be.forwardRef(({
|
|
|
50772
50772
|
}
|
|
50773
50773
|
)
|
|
50774
50774
|
] }),
|
|
50775
|
-
/* @__PURE__ */ b("div", { className: "flex-1 flex items-center justify-center w-full", children: /* @__PURE__ */
|
|
50776
|
-
/* @__PURE__ */ b(
|
|
50777
|
-
/* @__PURE__ */ b(
|
|
50778
|
-
/* @__PURE__ */ b(
|
|
50779
|
-
d && a && /* @__PURE__ */ b(
|
|
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
|
+
/* @__PURE__ */ b(je.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: I.spinner, weight: "bold" }) }),
|
|
50777
|
+
/* @__PURE__ */ b(je.span, { initial: { opacity: 0, y: 10 }, animate: { opacity: 1, y: 0 }, className: `text-sm opacity-80 ${I.text.muted} text-center max-w-xs`, children: H }),
|
|
50778
|
+
/* @__PURE__ */ b(je.p, { initial: { opacity: 0 }, animate: { opacity: 1 }, transition: { delay: 2 }, className: `text-xs ${I.text.muted} mt-2 text-center opacity-60`, children: C }),
|
|
50779
|
+
d && a && /* @__PURE__ */ b(je.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 ${((T = I.chatHeader) == null ? void 0 : T.backButton) || "bg-gray-100 hover:bg-gray-200"} transition-colors`, children: "Go Back" })
|
|
50780
50780
|
] }) })
|
|
50781
|
-
] }) : /* @__PURE__ */
|
|
50782
|
-
(G || k) && /* @__PURE__ */
|
|
50781
|
+
] }) : /* @__PURE__ */ D("main", { ref: c, className: $e(se, "relative", e && "pointer-events-none opacity-50"), style: { minHeight: 0 }, children: [
|
|
50782
|
+
(G || k) && /* @__PURE__ */ D("div", { className: `flex items-center justify-between w-full p-4 border-b ${((Z = I.chatHeader) == null ? void 0 : Z.container) || "border-gray-200"}`, children: [
|
|
50783
50783
|
/* @__PURE__ */ b("div", { children: /* @__PURE__ */ b("h3", { className: `font-semibold ${I.text.primary}`, children: "Voice Session" }) }),
|
|
50784
50784
|
k && /* @__PURE__ */ b(
|
|
50785
50785
|
tc,
|
|
@@ -50792,14 +50792,14 @@ const qS = Be.forwardRef(({
|
|
|
50792
50792
|
}
|
|
50793
50793
|
)
|
|
50794
50794
|
] }),
|
|
50795
|
-
/* @__PURE__ */
|
|
50796
|
-
!U && /* @__PURE__ */
|
|
50797
|
-
/* @__PURE__ */ b(
|
|
50798
|
-
/* @__PURE__ */ b(
|
|
50799
|
-
/* @__PURE__ */ b(
|
|
50800
|
-
d && a && /* @__PURE__ */ b(
|
|
50795
|
+
/* @__PURE__ */ D("div", { className: "w-full flex-1 flex flex-col items-center px-0 min-h-0 overflow-hidden relative", children: [
|
|
50796
|
+
!U && /* @__PURE__ */ D("div", { className: "flex flex-col items-center justify-center w-full h-full min-h-[180px]", children: [
|
|
50797
|
+
/* @__PURE__ */ b(je.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: I.spinner, weight: "bold" }) }),
|
|
50798
|
+
/* @__PURE__ */ b(je.span, { initial: { opacity: 0, y: 10 }, animate: { opacity: 1, y: 0 }, className: `text-sm opacity-80 ${I.text.muted} text-center max-w-xs`, children: H }),
|
|
50799
|
+
/* @__PURE__ */ b(je.p, { initial: { opacity: 0 }, animate: { opacity: 1 }, transition: { delay: 2 }, className: `text-xs ${I.text.muted} mt-2 text-center opacity-60`, children: C }),
|
|
50800
|
+
d && a && /* @__PURE__ */ b(je.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 = I.chatHeader) == null ? void 0 : ne.backButton) || "bg-gray-100 hover:bg-gray-200"} transition-colors`, children: "Go Back" })
|
|
50801
50801
|
] }),
|
|
50802
|
-
U && /* @__PURE__ */
|
|
50802
|
+
U && /* @__PURE__ */ D(tn, { children: [
|
|
50803
50803
|
l && // Chat overlay - fills the content area above controls
|
|
50804
50804
|
/* @__PURE__ */ b(
|
|
50805
50805
|
"div",
|
|
@@ -50818,16 +50818,16 @@ const qS = Be.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__ */
|
|
50822
|
-
/* @__PURE__ */ b(
|
|
50823
|
-
/* @__PURE__ */ b(gs, { mode: "wait", children: p && p.presentationMode === "embedded" && /* @__PURE__ */ b(
|
|
50821
|
+
!l && /* @__PURE__ */ D("div", { className: $e("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
|
+
/* @__PURE__ */ b(je.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(XO, { 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
|
+
/* @__PURE__ */ b(gs, { mode: "wait", children: p && p.presentationMode === "embedded" && /* @__PURE__ */ b(je.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: $e("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;
|
|
50825
50825
|
return (X = s == null ? void 0 : s.dismissCurrentInteraction) == null ? void 0 : X.call(s);
|
|
50826
50826
|
}, client: s, addLocalMessage: q }) }) }, `embedded-${p.methodName}`) })
|
|
50827
50827
|
] })
|
|
50828
50828
|
] })
|
|
50829
50829
|
] }),
|
|
50830
|
-
/* @__PURE__ */ b(gs, { mode: "wait", children: p && p.presentationMode !== "embedded" && !l && /* @__PURE__ */ b("div", { className: $e("absolute inset-0 z-50 flex items-center justify-center backdrop-blur-sm", o === "fullscreen" ? "bg-black/70" : "bg-black/50"), children: /* @__PURE__ */ b(
|
|
50830
|
+
/* @__PURE__ */ b(gs, { mode: "wait", children: p && p.presentationMode !== "embedded" && !l && /* @__PURE__ */ b("div", { className: $e("absolute inset-0 z-50 flex items-center justify-center backdrop-blur-sm", o === "fullscreen" ? "bg-black/70" : "bg-black/50"), children: /* @__PURE__ */ b(je.div, { initial: { opacity: 0, scale: 0.9 }, animate: { opacity: 1, scale: 1 }, exit: { opacity: 0, scale: 0.9 }, transition: { duration: 0.2, ease: "easeOut" }, className: $e("relative w-full overflow-hidden", o === "fullscreen" ? "max-w-2xl mx-8 max-h-[85vh]" : "max-w-lg mx-4 max-h-[80vh]", "bg-white dark:bg-gray-900 rounded-2xl shadow-2xl", "border border-gray-200 dark:border-gray-700"), children: /* @__PURE__ */ b(ec, { interaction: p, theme: r, onDismiss: () => {
|
|
50831
50831
|
var X;
|
|
50832
50832
|
return (X = s == null ? void 0 : s.dismissCurrentInteraction) == null ? void 0 : X.call(s);
|
|
50833
50833
|
}, client: s, addLocalMessage: q }) }, `modal-${p.methodName}`) }) }),
|
|
@@ -50854,7 +50854,7 @@ qS.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 L4({
|
|
|
50875
50875
|
onEndCall: s
|
|
50876
50876
|
}) {
|
|
50877
50877
|
var Z;
|
|
50878
|
-
const o = hn(t), [a, c] =
|
|
50878
|
+
const o = hn(t), [a, c] = _.useState(!1), [l, u] = _.useState(!1), d = _.useMemo(() => {
|
|
50879
50879
|
const ne = e.getCurrentAgentInfo();
|
|
50880
50880
|
return Wh(ne);
|
|
50881
|
-
}, [e]), { userVideoEnabled: h, agentAvatarEnabled: f, screenshareEnabled: m } =
|
|
50881
|
+
}, [e]), { userVideoEnabled: h, agentAvatarEnabled: f, screenshareEnabled: m } = _.useMemo(
|
|
50882
50882
|
() => jO(d),
|
|
50883
50883
|
[d]
|
|
50884
|
-
), p =
|
|
50884
|
+
), p = _.useMemo(
|
|
50885
50885
|
() => qh(d),
|
|
50886
50886
|
[d]
|
|
50887
|
-
), v =
|
|
50888
|
-
|
|
50887
|
+
), v = _.useRef(null), [g, x] = _.useState(64);
|
|
50888
|
+
_.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 L4({
|
|
|
50895
50895
|
re.disconnect(), window.removeEventListener("resize", ie);
|
|
50896
50896
|
};
|
|
50897
50897
|
}, []);
|
|
50898
|
-
const [S, w] =
|
|
50898
|
+
const [S, w] = _.useState(null), k = oO(e), { videoTrackRefs: E, screenShareTrackRefs: P } = aO(e), {
|
|
50899
50899
|
agent: { isActive: R = !1 } = {},
|
|
50900
50900
|
state: M = "idle",
|
|
50901
50901
|
audioTrack: y
|
|
@@ -50903,16 +50903,16 @@ function L4({
|
|
|
50903
50903
|
agent: { isActive: !1 },
|
|
50904
50904
|
state: "idle",
|
|
50905
50905
|
audioTrack: null
|
|
50906
|
-
}, I =
|
|
50906
|
+
}, I = _.useMemo(() => e.getRemoteParticipants(), [e, k]), N = Ma(e, "microphone"), L = Ma(e, "camera"), U = Ma(e, "screenShare"), q = _.useCallback(async () => {
|
|
50907
50907
|
L.pending || await L.toggle();
|
|
50908
|
-
}, [L]), ue =
|
|
50908
|
+
}, [L]), ue = _.useCallback(async () => {
|
|
50909
50909
|
U.pending || await U.toggle();
|
|
50910
|
-
}, [U]), se =
|
|
50910
|
+
}, [U]), se = _.useCallback(() => {
|
|
50911
50911
|
c((ne) => !ne);
|
|
50912
|
-
}, []), G =
|
|
50912
|
+
}, []), G = _.useCallback(() => {
|
|
50913
50913
|
s ? s() : n && n();
|
|
50914
50914
|
}, [s, n]);
|
|
50915
|
-
|
|
50915
|
+
_.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 L4({
|
|
|
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]), _.useEffect(() => {
|
|
50924
50924
|
if (R)
|
|
50925
50925
|
u(!1);
|
|
50926
50926
|
else {
|
|
@@ -50932,21 +50932,21 @@ function L4({
|
|
|
50932
50932
|
};
|
|
50933
50933
|
}
|
|
50934
50934
|
}, [R]);
|
|
50935
|
-
const H = k == null ? void 0 : k.localParticipant, C =
|
|
50935
|
+
const H = k == null ? void 0 : k.localParticipant, C = _.useMemo(() => (e ? e.getCameraTrackRefs() : []).find((ne) => ne.participant === H), [e, H]), Y = E.filter(
|
|
50936
50936
|
(ne) => ne.participant !== H
|
|
50937
|
-
)[0], T =
|
|
50938
|
-
return /* @__PURE__ */
|
|
50939
|
-
/* @__PURE__ */
|
|
50940
|
-
/* @__PURE__ */
|
|
50937
|
+
)[0], T = _.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
|
I.length + 1,
|
|
50945
50945
|
" participant",
|
|
50946
50946
|
I.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,10 +50960,10 @@ function L4({
|
|
|
50960
50960
|
/* @__PURE__ */ b("button", { className: `p-2 rounded-lg transition-colors ${o.video.headerButton}`, title: "Layout options", children: /* @__PURE__ */ b(dE, { className: "w-4 h-4" }) })
|
|
50961
50961
|
] })
|
|
50962
50962
|
] }),
|
|
50963
|
-
/* @__PURE__ */
|
|
50964
|
-
!R && /* @__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
|
+
!R && /* @__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
|
+
je.div,
|
|
50967
50967
|
{
|
|
50968
50968
|
animate: { rotate: 360, scale: [1, 1.1, 1] },
|
|
50969
50969
|
transition: {
|
|
@@ -50975,7 +50975,7 @@ function L4({
|
|
|
50975
50975
|
}
|
|
50976
50976
|
),
|
|
50977
50977
|
l && n && /* @__PURE__ */ b(
|
|
50978
|
-
|
|
50978
|
+
je.button,
|
|
50979
50979
|
{
|
|
50980
50980
|
initial: { opacity: 0, scale: 0.9 },
|
|
50981
50981
|
animate: { opacity: 1, scale: 1 },
|
|
@@ -50986,7 +50986,7 @@ function L4({
|
|
|
50986
50986
|
}
|
|
50987
50987
|
)
|
|
50988
50988
|
] }) }),
|
|
50989
|
-
R && !a && /* @__PURE__ */ b("div", { className: "p-4 min-h-0 h-full", children: /* @__PURE__ */
|
|
50989
|
+
R && !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 L4({
|
|
|
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(hE, { 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
|
R && (y ? /* @__PURE__ */ b(
|
|
51007
51007
|
uw,
|
|
@@ -51037,7 +51037,7 @@ function L4({
|
|
|
51037
51037
|
)) }))
|
|
51038
51038
|
] }) }) })
|
|
51039
51039
|
),
|
|
51040
|
-
T && /* @__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
|
+
T && /* @__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 L4({
|
|
|
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
|
] }) })
|
|
@@ -51063,7 +51063,7 @@ function L4({
|
|
|
51063
51063
|
] }) })
|
|
51064
51064
|
] }),
|
|
51065
51065
|
/* @__PURE__ */ b(gs, { mode: "wait", children: a && /* @__PURE__ */ b(
|
|
51066
|
-
|
|
51066
|
+
je.div,
|
|
51067
51067
|
{
|
|
51068
51068
|
initial: { opacity: 0, y: 20 },
|
|
51069
51069
|
animate: { opacity: 1, y: 0 },
|
|
@@ -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__ */ _.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__ */ _.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
|
}
|
|
@@ -53445,7 +53445,7 @@ function ua(e, t, n) {
|
|
|
53445
53445
|
return e;
|
|
53446
53446
|
}
|
|
53447
53447
|
}
|
|
53448
|
-
const b6 = /* @__PURE__ */
|
|
53448
|
+
const b6 = /* @__PURE__ */ _.createContext(void 0);
|
|
53449
53449
|
process.env.NODE_ENV !== "production" && (Ze.node, Ze.object);
|
|
53450
53450
|
function y6(e) {
|
|
53451
53451
|
const {
|
|
@@ -53462,7 +53462,7 @@ function v6({
|
|
|
53462
53462
|
props: e,
|
|
53463
53463
|
name: t
|
|
53464
53464
|
}) {
|
|
53465
|
-
const n =
|
|
53465
|
+
const n = _.useContext(b6);
|
|
53466
53466
|
return y6({
|
|
53467
53467
|
props: e,
|
|
53468
53468
|
name: t,
|
|
@@ -54614,7 +54614,7 @@ const fV = (e) => {
|
|
|
54614
54614
|
}
|
|
54615
54615
|
]
|
|
54616
54616
|
};
|
|
54617
|
-
})), hc = /* @__PURE__ */
|
|
54617
|
+
})), hc = /* @__PURE__ */ _.forwardRef(function(t, n) {
|
|
54618
54618
|
const i = dV({
|
|
54619
54619
|
props: t,
|
|
54620
54620
|
name: "MuiSvgIcon"
|
|
@@ -54629,7 +54629,7 @@ const fV = (e) => {
|
|
|
54629
54629
|
titleAccess: d,
|
|
54630
54630
|
viewBox: h = "0 0 24 24",
|
|
54631
54631
|
...f
|
|
54632
|
-
} = i, m = /* @__PURE__ */
|
|
54632
|
+
} = i, m = /* @__PURE__ */ _.isValidElement(r) && r.type === "svg", p = {
|
|
54633
54633
|
...i,
|
|
54634
54634
|
color: o,
|
|
54635
54635
|
component: a,
|
|
@@ -54641,7 +54641,7 @@ const fV = (e) => {
|
|
|
54641
54641
|
}, v = {};
|
|
54642
54642
|
u || (v.viewBox = h);
|
|
54643
54643
|
const g = fV(p);
|
|
54644
|
-
return /* @__PURE__ */
|
|
54644
|
+
return /* @__PURE__ */ D(pV, {
|
|
54645
54645
|
as: a,
|
|
54646
54646
|
className: i0(g.root, s),
|
|
54647
54647
|
focusable: "false",
|
|
@@ -54740,7 +54740,7 @@ function Ef(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__ */ _.memo(/* @__PURE__ */ _.forwardRef(n));
|
|
54744
54744
|
}
|
|
54745
54745
|
const mV = Ef(/* @__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 = Be.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 = Be.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(tn, { 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(tn, { 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(tn, { 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(tn, { 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 = Be.forwardRef(({
|
|
|
54891
54891
|
] });
|
|
54892
54892
|
});
|
|
54893
54893
|
hx.displayName = "Welcome";
|
|
54894
|
-
class fx extends
|
|
54894
|
+
class fx extends _.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 _.createElement(t, { error: this.state.error });
|
|
54909
54909
|
}
|
|
54910
|
-
return
|
|
54910
|
+
return _.createElement("div", {
|
|
54911
54911
|
style: {
|
|
54912
54912
|
padding: "20px",
|
|
54913
54913
|
border: "1px solid #ff4444",
|
|
@@ -54940,151 +54940,81 @@ const vV = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZgAAAJkCAYAAAAsgzeqAA
|
|
|
54940
54940
|
width: n,
|
|
54941
54941
|
height: n,
|
|
54942
54942
|
...r
|
|
54943
|
-
}, d =
|
|
54943
|
+
}, d = _.useMemo(() => {
|
|
54944
54944
|
if (typeof window > "u" || !window.matchMedia) return !1;
|
|
54945
54945
|
try {
|
|
54946
54946
|
return window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
54947
54947
|
} catch {
|
|
54948
54948
|
return !1;
|
|
54949
54949
|
}
|
|
54950
|
-
}, []);
|
|
54951
|
-
return /* @__PURE__ */
|
|
54952
|
-
|
|
54953
|
-
|
|
54954
|
-
|
|
54955
|
-
|
|
54956
|
-
|
|
54957
|
-
|
|
54958
|
-
|
|
54959
|
-
|
|
54960
|
-
|
|
54961
|
-
|
|
54962
|
-
|
|
54963
|
-
|
|
54964
|
-
|
|
54965
|
-
|
|
54966
|
-
|
|
54967
|
-
|
|
54968
|
-
|
|
54969
|
-
|
|
54970
|
-
|
|
54971
|
-
|
|
54972
|
-
|
|
54973
|
-
|
|
54974
|
-
|
|
54975
|
-
|
|
54976
|
-
|
|
54977
|
-
|
|
54978
|
-
|
|
54979
|
-
|
|
54980
|
-
|
|
54981
|
-
|
|
54982
|
-
|
|
54983
|
-
|
|
54984
|
-
|
|
54985
|
-
|
|
54986
|
-
|
|
54987
|
-
|
|
54988
|
-
|
|
54989
|
-
scale: [1, 1.05, 1],
|
|
54990
|
-
opacity: [0.7, 1, 0.7]
|
|
54991
|
-
},
|
|
54992
|
-
transition: d ? void 0 : {
|
|
54993
|
-
duration: 1.5,
|
|
54994
|
-
repeat: 1 / 0,
|
|
54995
|
-
ease: "easeInOut",
|
|
54996
|
-
delay: 0.2
|
|
54997
|
-
}
|
|
54998
|
-
}
|
|
54999
|
-
)
|
|
55000
|
-
] }),
|
|
55001
|
-
/* @__PURE__ */ _(
|
|
55002
|
-
Ue.button,
|
|
55003
|
-
{
|
|
55004
|
-
type: "button",
|
|
55005
|
-
onClick: e,
|
|
55006
|
-
"aria-label": s,
|
|
55007
|
-
className: `fixed z-50 rounded-full bg-black flex items-center justify-center overflow-hidden focus:outline-none focus:ring-2 focus:ring-cyan-400/60 ${l[t]} ${i}`,
|
|
55008
|
-
style: {
|
|
55009
|
-
...u,
|
|
55010
|
-
boxShadow: a ? "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)" : "0 8px 32px rgba(0,0,0,0.3)",
|
|
55011
|
-
border: a ? "2px solid rgba(6,182,212,0.6)" : "none"
|
|
55012
|
-
},
|
|
55013
|
-
initial: { scale: 0.9, opacity: 0 },
|
|
55014
|
-
animate: {
|
|
55015
|
-
scale: 1,
|
|
55016
|
-
opacity: 1,
|
|
55017
|
-
...a && !d ? {
|
|
55018
|
-
boxShadow: [
|
|
55019
|
-
"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
|
-
"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)",
|
|
55021
|
-
"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)"
|
|
55022
|
-
]
|
|
55023
|
-
} : {}
|
|
55024
|
-
},
|
|
55025
|
-
exit: { scale: 0.9, opacity: 0 },
|
|
55026
|
-
whileHover: { scale: 1.05 },
|
|
55027
|
-
whileTap: { scale: 0.95 },
|
|
55028
|
-
"data-position": t,
|
|
55029
|
-
"data-voxket-trigger": "true",
|
|
55030
|
-
transition: {
|
|
55031
|
-
...!d && a ? {
|
|
55032
|
-
boxShadow: {
|
|
55033
|
-
duration: 2,
|
|
54950
|
+
}, []), h = "0 8px 32px rgba(0,0,0,0.3)", f = "0 0 0 3px rgba(34,211,238,0.6), 0 0 20px rgba(6,182,212,0.5), 0 8px 32px rgba(0,0,0,0.3)";
|
|
54951
|
+
return /* @__PURE__ */ D(
|
|
54952
|
+
je.button,
|
|
54953
|
+
{
|
|
54954
|
+
type: "button",
|
|
54955
|
+
onClick: e,
|
|
54956
|
+
"aria-label": s,
|
|
54957
|
+
className: `fixed z-50 rounded-full bg-black flex items-center justify-center overflow-visible focus:outline-none focus:ring-2 focus:ring-cyan-400/60 ${l[t]} ${i}`,
|
|
54958
|
+
style: u,
|
|
54959
|
+
initial: { scale: 0.9, opacity: 0, boxShadow: h },
|
|
54960
|
+
animate: {
|
|
54961
|
+
scale: 1,
|
|
54962
|
+
opacity: 1,
|
|
54963
|
+
boxShadow: a && !d ? [f, "0 0 0 3px rgba(34,211,238,0.9), 0 0 30px rgba(6,182,212,0.7), 0 8px 32px rgba(0,0,0,0.3)", f] : a ? f : h
|
|
54964
|
+
},
|
|
54965
|
+
exit: { scale: 0.9, opacity: 0 },
|
|
54966
|
+
whileHover: { scale: 1.05 },
|
|
54967
|
+
whileTap: { scale: 0.95 },
|
|
54968
|
+
"data-position": t,
|
|
54969
|
+
"data-voxket-trigger": "true",
|
|
54970
|
+
transition: {
|
|
54971
|
+
scale: { type: "spring", stiffness: 400, damping: 25 },
|
|
54972
|
+
opacity: { duration: 0.2 },
|
|
54973
|
+
boxShadow: a && !d ? { duration: 1.5, repeat: 1 / 0, ease: "easeInOut" } : { duration: 0.3 }
|
|
54974
|
+
},
|
|
54975
|
+
children: [
|
|
54976
|
+
a && /* @__PURE__ */ b(
|
|
54977
|
+
je.span,
|
|
54978
|
+
{
|
|
54979
|
+
"aria-hidden": !0,
|
|
54980
|
+
className: "absolute inset-[-3px] rounded-full pointer-events-none",
|
|
54981
|
+
style: {
|
|
54982
|
+
background: "conic-gradient(from 0deg, rgba(6,182,212,0.8) 0deg, rgba(34,211,238,1) 120deg, rgba(6,182,212,0.8) 240deg, rgba(34,211,238,1) 360deg)",
|
|
54983
|
+
WebkitMask: "radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px))",
|
|
54984
|
+
mask: "radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px))"
|
|
54985
|
+
},
|
|
54986
|
+
animate: d ? void 0 : { rotate: 360 },
|
|
54987
|
+
transition: d ? void 0 : {
|
|
54988
|
+
duration: 3,
|
|
55034
54989
|
repeat: 1 / 0,
|
|
55035
|
-
ease: "
|
|
54990
|
+
ease: "linear"
|
|
55036
54991
|
}
|
|
55037
|
-
}
|
|
55038
|
-
|
|
55039
|
-
|
|
55040
|
-
|
|
55041
|
-
|
|
55042
|
-
|
|
55043
|
-
|
|
55044
|
-
|
|
55045
|
-
|
|
55046
|
-
|
|
55047
|
-
|
|
55048
|
-
|
|
55049
|
-
|
|
55050
|
-
|
|
55051
|
-
|
|
55052
|
-
|
|
55053
|
-
|
|
55054
|
-
|
|
55055
|
-
|
|
55056
|
-
|
|
55057
|
-
|
|
55058
|
-
|
|
55059
|
-
|
|
55060
|
-
|
|
55061
|
-
|
|
55062
|
-
|
|
55063
|
-
className: "absolute inset-1 rounded-full pointer-events-none",
|
|
55064
|
-
style: {
|
|
55065
|
-
background: "radial-gradient(circle, rgba(6,182,212,0.1) 0%, transparent 70%)"
|
|
55066
|
-
}
|
|
55067
|
-
}
|
|
55068
|
-
)
|
|
55069
|
-
] }),
|
|
55070
|
-
/* @__PURE__ */ b(
|
|
55071
|
-
"img",
|
|
55072
|
-
{
|
|
55073
|
-
src: c,
|
|
55074
|
-
alt: "Voxket",
|
|
55075
|
-
className: "object-contain select-none pointer-events-none relative z-10",
|
|
55076
|
-
style: {
|
|
55077
|
-
width: `${Math.max(0, Math.min(1, o)) * 100}%`,
|
|
55078
|
-
height: `${Math.max(0, Math.min(1, o)) * 100}%`,
|
|
55079
|
-
filter: a ? "brightness(1.1) contrast(1.1)" : "none"
|
|
55080
|
-
},
|
|
55081
|
-
draggable: !1
|
|
55082
|
-
}
|
|
55083
|
-
)
|
|
55084
|
-
]
|
|
55085
|
-
}
|
|
55086
|
-
)
|
|
55087
|
-
] });
|
|
54992
|
+
}
|
|
54993
|
+
),
|
|
54994
|
+
/* @__PURE__ */ b(
|
|
54995
|
+
"span",
|
|
54996
|
+
{
|
|
54997
|
+
className: "absolute inset-0 rounded-full bg-black",
|
|
54998
|
+
"aria-hidden": !0
|
|
54999
|
+
}
|
|
55000
|
+
),
|
|
55001
|
+
/* @__PURE__ */ b(
|
|
55002
|
+
"img",
|
|
55003
|
+
{
|
|
55004
|
+
src: c,
|
|
55005
|
+
alt: "Voxket",
|
|
55006
|
+
className: "object-contain select-none pointer-events-none relative z-10",
|
|
55007
|
+
style: {
|
|
55008
|
+
width: `${Math.max(0, Math.min(1, o)) * 100}%`,
|
|
55009
|
+
height: `${Math.max(0, Math.min(1, o)) * 100}%`,
|
|
55010
|
+
filter: a ? "brightness(1.1) contrast(1.05)" : "none"
|
|
55011
|
+
},
|
|
55012
|
+
draggable: !1
|
|
55013
|
+
}
|
|
55014
|
+
)
|
|
55015
|
+
]
|
|
55016
|
+
}
|
|
55017
|
+
);
|
|
55088
55018
|
};
|
|
55089
55019
|
function wV({
|
|
55090
55020
|
room: e,
|
|
@@ -55094,7 +55024,7 @@ function wV({
|
|
|
55094
55024
|
enableLocalStorage: r = !0,
|
|
55095
55025
|
voxketSessionId: s
|
|
55096
55026
|
} = {}) {
|
|
55097
|
-
const [o, a] =
|
|
55027
|
+
const [o, a] = _.useState(null), [c, l] = _.useState([]), [u, d] = _.useState(null), [h, f] = _.useState([]), m = _.useCallback((x, S) => {
|
|
55098
55028
|
const w = {
|
|
55099
55029
|
timestamp: /* @__PURE__ */ new Date(),
|
|
55100
55030
|
event: x,
|
|
@@ -55108,7 +55038,7 @@ function wV({
|
|
|
55108
55038
|
}
|
|
55109
55039
|
return w;
|
|
55110
55040
|
}, [o == null ? void 0 : o.sessionId, u == null ? void 0 : u.identity, i, r]);
|
|
55111
|
-
|
|
55041
|
+
_.useEffect(() => {
|
|
55112
55042
|
if (!e) return;
|
|
55113
55043
|
const x = () => {
|
|
55114
55044
|
const y = s || `session-${Date.now()}-${Math.random().toString(36).substring(2, 9)}`, I = /* @__PURE__ */ new Date(), N = {
|
|
@@ -55167,9 +55097,9 @@ function wV({
|
|
|
55167
55097
|
e.off(F.Connected, x), e.off(F.Disconnected, S), e.off(F.ConnectionStateChanged, w), e.off(F.TrackPublished, k), e.off(F.TrackUnpublished, E), e.off(F.DataReceived, P), e.off(F.ParticipantConnected, R), e.off(F.ParticipantDisconnected, M);
|
|
55168
55098
|
};
|
|
55169
55099
|
}, [e, o, c, h.length, m, t, n]);
|
|
55170
|
-
const p =
|
|
55100
|
+
const p = _.useCallback(() => r ? JSON.parse(localStorage.getItem("voxket-session-logs") || "[]") : c, [c, r]), v = _.useCallback(() => {
|
|
55171
55101
|
r && localStorage.removeItem("voxket-session-logs"), l([]);
|
|
55172
|
-
}, [r]), g =
|
|
55102
|
+
}, [r]), g = _.useCallback(() => {
|
|
55173
55103
|
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`, E = document.createElement("a");
|
|
55174
55104
|
E.setAttribute("href", w), E.setAttribute("download", k), E.click();
|
|
55175
55105
|
}, [p]);
|
|
@@ -57726,7 +57656,7 @@ class Cf extends px {
|
|
|
57726
57656
|
}
|
|
57727
57657
|
}
|
|
57728
57658
|
}
|
|
57729
|
-
const PV =
|
|
57659
|
+
const PV = je.create(qS), MV = je.create(mf), NV = je.create(L4), OV = je.create(hx);
|
|
57730
57660
|
function _V({
|
|
57731
57661
|
theme: e,
|
|
57732
57662
|
mode: t,
|
|
@@ -57749,19 +57679,19 @@ function _V({
|
|
|
57749
57679
|
return "Connecting...";
|
|
57750
57680
|
}
|
|
57751
57681
|
};
|
|
57752
|
-
return /* @__PURE__ */
|
|
57753
|
-
/* @__PURE__ */
|
|
57682
|
+
return /* @__PURE__ */ D("div", { className: "flex flex-col items-center justify-center h-full w-full p-8", children: [
|
|
57683
|
+
/* @__PURE__ */ D("div", { className: "text-center", children: [
|
|
57754
57684
|
/* @__PURE__ */ b("h3", { className: `text-lg font-semibold mb-2 ${r.text.accent}`, children: s() }),
|
|
57755
57685
|
/* @__PURE__ */ b("p", { className: `text-sm ${r.text.muted}`, children: "Please wait a moment..." })
|
|
57756
57686
|
] }),
|
|
57757
|
-
/* @__PURE__ */
|
|
57687
|
+
/* @__PURE__ */ D("div", { className: "flex space-x-1 mt-4", children: [
|
|
57758
57688
|
/* @__PURE__ */ b("div", { className: "w-2 h-2 rounded-full animate-bounce bg-blue-500", style: { animationDelay: "0ms" } }),
|
|
57759
57689
|
/* @__PURE__ */ b("div", { className: "w-2 h-2 rounded-full animate-bounce bg-blue-500", style: { animationDelay: "150ms" } }),
|
|
57760
57690
|
/* @__PURE__ */ b("div", { className: "w-2 h-2 rounded-full animate-bounce bg-blue-500", style: { animationDelay: "300ms" } })
|
|
57761
57691
|
] })
|
|
57762
57692
|
] });
|
|
57763
57693
|
}
|
|
57764
|
-
const DV =
|
|
57694
|
+
const DV = je.create(_V);
|
|
57765
57695
|
function Zb({
|
|
57766
57696
|
children: e,
|
|
57767
57697
|
theme: t,
|
|
@@ -57778,7 +57708,7 @@ function Zb({
|
|
|
57778
57708
|
onClick: (a) => {
|
|
57779
57709
|
a.target === a.currentTarget && i && i();
|
|
57780
57710
|
},
|
|
57781
|
-
children: /* @__PURE__ */
|
|
57711
|
+
children: /* @__PURE__ */ D(
|
|
57782
57712
|
"div",
|
|
57783
57713
|
{
|
|
57784
57714
|
className: "w-full h-full max-w-7xl max-h-[95vh] rounded-2xl relative bg-transparent flex flex-col",
|
|
@@ -57792,13 +57722,13 @@ function Zb({
|
|
|
57792
57722
|
onClick: (a) => {
|
|
57793
57723
|
a.preventDefault(), a.stopPropagation(), i();
|
|
57794
57724
|
},
|
|
57795
|
-
className:
|
|
57725
|
+
className: `absolute top-4 cursor-pointer right-4 z-[10000] w-12 h-12 rounded-full flex items-center justify-center transition-all duration-200 shadow-lg border backdrop-blur-sm ${t === "light" ? "bg-white bg-opacity-90 text-gray-900 hover:bg-gray-100 border-gray-300" : "bg-gray-900 bg-opacity-90 text-white hover:bg-gray-800 border-gray-700"}`,
|
|
57796
57726
|
title: "Exit Fullscreen",
|
|
57797
57727
|
type: "button",
|
|
57798
57728
|
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
57729
|
}
|
|
57800
57730
|
),
|
|
57801
|
-
/* @__PURE__ */
|
|
57731
|
+
/* @__PURE__ */ D(
|
|
57802
57732
|
"div",
|
|
57803
57733
|
{
|
|
57804
57734
|
id: "voice-card",
|
|
@@ -57829,7 +57759,7 @@ function Zb({
|
|
|
57829
57759
|
"div",
|
|
57830
57760
|
{
|
|
57831
57761
|
className: "fixed rounded-2xl inset-0 z-[9999] pointer-events-none",
|
|
57832
|
-
children: /* @__PURE__ */
|
|
57762
|
+
children: /* @__PURE__ */ D("div", { className: `fixed rounded-2xl ${{
|
|
57833
57763
|
"top-left": "top-4 left-4",
|
|
57834
57764
|
"top-right": "top-4 right-4",
|
|
57835
57765
|
"bottom-left": "bottom-4 left-4",
|
|
@@ -57839,11 +57769,11 @@ function Zb({
|
|
|
57839
57769
|
"button",
|
|
57840
57770
|
{
|
|
57841
57771
|
onClick: i,
|
|
57842
|
-
className:
|
|
57772
|
+
className: `absolute -top-2 -right-2 z-10 w-8 h-8 rounded-full flex items-center justify-center transition-all duration-200 text-sm shadow-lg border ${t === "light" ? "bg-white bg-opacity-90 text-gray-900 hover:bg-gray-100 border-gray-300" : "bg-gray-900 bg-opacity-90 text-white hover:bg-gray-800 border-gray-700"}`,
|
|
57843
57773
|
children: "×"
|
|
57844
57774
|
}
|
|
57845
57775
|
),
|
|
57846
|
-
/* @__PURE__ */
|
|
57776
|
+
/* @__PURE__ */ D(
|
|
57847
57777
|
"div",
|
|
57848
57778
|
{
|
|
57849
57779
|
id: "voice-card",
|
|
@@ -57868,7 +57798,7 @@ function Zb({
|
|
|
57868
57798
|
)
|
|
57869
57799
|
] })
|
|
57870
57800
|
}
|
|
57871
|
-
) : /* @__PURE__ */
|
|
57801
|
+
) : /* @__PURE__ */ D(
|
|
57872
57802
|
"div",
|
|
57873
57803
|
{
|
|
57874
57804
|
id: "voice-card",
|
|
@@ -57929,7 +57859,7 @@ function LV(e) {
|
|
|
57929
57859
|
participantMetadata: q,
|
|
57930
57860
|
popupModalityMode: ue = "all",
|
|
57931
57861
|
popupTriggerLogoUrl: se
|
|
57932
|
-
} = e, [G, H] =
|
|
57862
|
+
} = e, [G, H] = _.useState(!1), [C, K] = _.useState(null), [Y, T] = _.useState(() => {
|
|
57933
57863
|
try {
|
|
57934
57864
|
if (L)
|
|
57935
57865
|
return !!L.getCurrentSession();
|
|
@@ -57937,9 +57867,9 @@ function LV(e) {
|
|
|
57937
57867
|
console.error("Error checking existing session:", A);
|
|
57938
57868
|
}
|
|
57939
57869
|
return !1;
|
|
57940
|
-
}), [Z, ne] =
|
|
57870
|
+
}), [Z, ne] = _.useState(!1), [ie, re] = _.useState(t || ""), [X, le] = _.useState(
|
|
57941
57871
|
n || "User"
|
|
57942
|
-
), [J, Pe] =
|
|
57872
|
+
), [J, Pe] = _.useState(() => {
|
|
57943
57873
|
try {
|
|
57944
57874
|
if (L)
|
|
57945
57875
|
return L.getCurrentSession();
|
|
@@ -57947,7 +57877,7 @@ function LV(e) {
|
|
|
57947
57877
|
console.error("Error getting current session:", A);
|
|
57948
57878
|
}
|
|
57949
57879
|
return null;
|
|
57950
|
-
}), [B, de] =
|
|
57880
|
+
}), [B, de] = _.useState(() => {
|
|
57951
57881
|
var A, j, te;
|
|
57952
57882
|
try {
|
|
57953
57883
|
if (L) {
|
|
@@ -57963,13 +57893,13 @@ function LV(e) {
|
|
|
57963
57893
|
console.error("Error determining current mode:", ge);
|
|
57964
57894
|
}
|
|
57965
57895
|
return "welcome";
|
|
57966
|
-
}), [Me, we] =
|
|
57967
|
-
|
|
57896
|
+
}), [Me, we] = _.useState(!1), [pe, Ee] = _.useState(!1), [Ne, Ce] = _.useState(() => R.length === 1 ? R[0] : null), [Mt, Qt] = _.useState(!1);
|
|
57897
|
+
_.useEffect(() => {
|
|
57968
57898
|
M === "fullscreen" && console.log("🎯 Widget: Switched to fullscreen mode");
|
|
57969
|
-
}, [M]),
|
|
57899
|
+
}, [M]), _.useEffect(() => {
|
|
57970
57900
|
Y && !Z ? console.log("📊 Session started:", { currentMode: B, sessionId: J == null ? void 0 : J.id }) : !Y && !Z && B === "welcome" && console.log("📊 Returned to welcome screen");
|
|
57971
57901
|
}, [Y, B, Z]);
|
|
57972
|
-
const lt =
|
|
57902
|
+
const lt = _.useRef(null);
|
|
57973
57903
|
if (!lt.current)
|
|
57974
57904
|
try {
|
|
57975
57905
|
if (L)
|
|
@@ -58003,7 +57933,7 @@ function LV(e) {
|
|
|
58003
57933
|
console.error("❌ Failed to create VoxketClient:", A), K(A), H(!0);
|
|
58004
57934
|
}
|
|
58005
57935
|
const be = lt.current;
|
|
58006
|
-
|
|
57936
|
+
_.useEffect(() => {
|
|
58007
57937
|
const A = lt.current;
|
|
58008
57938
|
return () => {
|
|
58009
57939
|
A && !L && (console.log("🧹 Widget unmounting: disconnecting VoxketClient"), A.disconnect().catch((j) => {
|
|
@@ -58011,7 +57941,7 @@ function LV(e) {
|
|
|
58011
57941
|
}));
|
|
58012
57942
|
};
|
|
58013
57943
|
}, [L]);
|
|
58014
|
-
const Vt =
|
|
57944
|
+
const Vt = _.useMemo(() => M === "popup" && Ne ? [Ne] : R, [M, Ne, R]), ut = _.useMemo(() => {
|
|
58015
57945
|
try {
|
|
58016
57946
|
if (!be)
|
|
58017
57947
|
return console.warn("⚠️ No VoxketClient available, creating fallback room"), new Ci();
|
|
@@ -58026,7 +57956,7 @@ function LV(e) {
|
|
|
58026
57956
|
return console.error("❌ Error getting room from client:", A), new Ci();
|
|
58027
57957
|
}
|
|
58028
57958
|
}, [be, Y, B]);
|
|
58029
|
-
|
|
57959
|
+
_.useEffect(() => {
|
|
58030
57960
|
if (ut) {
|
|
58031
57961
|
const A = () => {
|
|
58032
57962
|
console.log("🏠 Widget: Room state changed:", {
|
|
@@ -58048,9 +57978,9 @@ function LV(e) {
|
|
|
58048
57978
|
ut.off(F.Connected, A), ut.off(F.Disconnected, A), ut.off(F.TrackSubscribed, j);
|
|
58049
57979
|
};
|
|
58050
57980
|
}
|
|
58051
|
-
}, [ut, J == null ? void 0 : J.id]),
|
|
57981
|
+
}, [ut, J == null ? void 0 : J.id]), _.useEffect(() => {
|
|
58052
57982
|
!Z && B === "welcome" ? console.log("🎬 Widget: Welcome screen ready") : Y && B !== "welcome" && console.log("🎬 Widget: Session mode active:", B);
|
|
58053
|
-
}, [B, Z, Y]),
|
|
57983
|
+
}, [B, Z, Y]), _.useEffect(() => {
|
|
58054
57984
|
(B === "voice" || B === "video" || B === "chat") && !J && !Y && !Z && be && !be.connected && (console.log("🔄 Auto-correcting: Found orphaned mode without session, returning to welcome"), de("welcome"), ne(!1));
|
|
58055
57985
|
}, [B, J, Y, Z, be]);
|
|
58056
57986
|
const { sessionMetrics: Q, sessionLogs: ae, logEvent: Re } = wV({
|
|
@@ -58061,11 +57991,11 @@ function LV(e) {
|
|
|
58061
57991
|
enableLocalStorage: k,
|
|
58062
57992
|
voxketSessionId: J == null ? void 0 : J.id
|
|
58063
57993
|
});
|
|
58064
|
-
|
|
57994
|
+
_.useEffect(() => {
|
|
58065
57995
|
E && E(ae);
|
|
58066
|
-
}, [ae, E]),
|
|
57996
|
+
}, [ae, E]), _.useEffect(() => {
|
|
58067
57997
|
P && Q && P(Q);
|
|
58068
|
-
}, [Q, P]),
|
|
57998
|
+
}, [Q, P]), _.useEffect(() => {
|
|
58069
57999
|
if (!be) return;
|
|
58070
58000
|
const A = (j, te) => {
|
|
58071
58001
|
console.log("📊 Widget: Session state changed:", {
|
|
@@ -58077,7 +58007,7 @@ function LV(e) {
|
|
|
58077
58007
|
return be.on("session.state.changed", A), () => {
|
|
58078
58008
|
be.off("session.state.changed", A);
|
|
58079
58009
|
};
|
|
58080
|
-
}, [be, Z]),
|
|
58010
|
+
}, [be, Z]), _.useEffect(() => {
|
|
58081
58011
|
if (!be) return;
|
|
58082
58012
|
const A = () => {
|
|
58083
58013
|
const j = be.connected, te = be.getCurrentSession();
|
|
@@ -58097,7 +58027,7 @@ function LV(e) {
|
|
|
58097
58027
|
};
|
|
58098
58028
|
}, [be, B, Z, Y]);
|
|
58099
58029
|
const Xe = !!(!!(be != null && be.connected) && Y && J);
|
|
58100
|
-
|
|
58030
|
+
_.useEffect(() => {
|
|
58101
58031
|
const A = (te) => {
|
|
58102
58032
|
console.log("🔴 Widget: Room disconnected:", te), console.log("🔍 Widget: Current state on disconnect:", {
|
|
58103
58033
|
currentMode: B,
|
|
@@ -58176,7 +58106,7 @@ function LV(e) {
|
|
|
58176
58106
|
}, Nn = () => {
|
|
58177
58107
|
const A = !Me;
|
|
58178
58108
|
we(A), N && N(A), !A && !(J && Y) && (de("welcome"), T(!1), Pe(null));
|
|
58179
|
-
},
|
|
58109
|
+
}, Xt = () => {
|
|
58180
58110
|
console.log("🔄 Closing fullscreen, switching to widget display type"), e.onDisplayTypeChange ? e.onDisplayTypeChange("widget") : console.warn("⚠️ No onDisplayTypeChange callback provided");
|
|
58181
58111
|
}, Zn = () => {
|
|
58182
58112
|
if (console.log("🔄 Expand to fullscreen requested"), e.onDisplayTypeChange)
|
|
@@ -58189,18 +58119,18 @@ function LV(e) {
|
|
|
58189
58119
|
});
|
|
58190
58120
|
}
|
|
58191
58121
|
};
|
|
58192
|
-
|
|
58122
|
+
_.useEffect(() => {
|
|
58193
58123
|
var A, j, te;
|
|
58194
58124
|
if (L && be) {
|
|
58195
58125
|
const ge = be.getCurrentSession();
|
|
58196
58126
|
be.connected, ge && (console.log("✅ Restoring session state:", ge.id), Pe(ge), T(!0), ne(!1), (A = ge.activeModalities) != null && A.includes("chat") ? de("chat") : (j = ge.activeModalities) != null && j.includes("voice") ? de("voice") : (te = ge.activeModalities) != null && te.includes("video") && de("video"));
|
|
58197
58127
|
}
|
|
58198
|
-
}, [L, be]),
|
|
58128
|
+
}, [L, be]), _.useEffect(() => () => {
|
|
58199
58129
|
!L && be && be.disconnect();
|
|
58200
58130
|
}, [be, L]);
|
|
58201
|
-
let
|
|
58202
|
-
if (h && (h.startsWith("w-") ?
|
|
58203
|
-
return console.log("🟡 Showing popup trigger button"), /* @__PURE__ */
|
|
58131
|
+
let Zt = B === "video" ? "w-[32rem]" : "w-96", Pr = B === "video" ? "h-[30rem]" : "h-[25rem]", Mr = {};
|
|
58132
|
+
if (h && (h.startsWith("w-") ? Zt = h : (Mr.width = h, Zt = "")), f && (f.startsWith("h-") ? Pr = f : (Mr.height = f, Pr = "")), M === "popup" && !Me)
|
|
58133
|
+
return console.log("🟡 Showing popup trigger button"), /* @__PURE__ */ D(tn, { children: [
|
|
58204
58134
|
/* @__PURE__ */ b(
|
|
58205
58135
|
kV,
|
|
58206
58136
|
{
|
|
@@ -58217,7 +58147,7 @@ function LV(e) {
|
|
|
58217
58147
|
Ce(R[0]), Ee(!1), we(!0), N && N(!0);
|
|
58218
58148
|
return;
|
|
58219
58149
|
}
|
|
58220
|
-
Ee((A) => !A), Ce(null),
|
|
58150
|
+
Ee((A) => !A), Ce(null), Qt(!1);
|
|
58221
58151
|
},
|
|
58222
58152
|
position: y,
|
|
58223
58153
|
ariaLabel: I,
|
|
@@ -58242,10 +58172,10 @@ function LV(e) {
|
|
|
58242
58172
|
style: { top: -16, right: y.endsWith("right") ? 16 : void 0, left: y.endsWith("left") ? 16 : void 0 }
|
|
58243
58173
|
}
|
|
58244
58174
|
);
|
|
58245
|
-
return /* @__PURE__ */ b("div", { className: "fixed z-[51]", style: te, children: /* @__PURE__ */
|
|
58175
|
+
return /* @__PURE__ */ b("div", { className: "fixed z-[51]", style: te, children: /* @__PURE__ */ D("div", { className: "relative bg-black text-white rounded-xl shadow-2xl p-5", children: [
|
|
58246
58176
|
mt,
|
|
58247
58177
|
/* @__PURE__ */ b("div", { className: "text-xs uppercase tracking-wide mb-2 opacity-70", children: "Choose modality" }),
|
|
58248
|
-
/* @__PURE__ */
|
|
58178
|
+
/* @__PURE__ */ D("div", { className: "flex items-center gap-2", children: [
|
|
58249
58179
|
/* @__PURE__ */ b(
|
|
58250
58180
|
"button",
|
|
58251
58181
|
{
|
|
@@ -58295,7 +58225,7 @@ function LV(e) {
|
|
|
58295
58225
|
borderRadius: "8px",
|
|
58296
58226
|
background: "#fff5f5",
|
|
58297
58227
|
color: "#cc0000"
|
|
58298
|
-
}, children: /* @__PURE__ */
|
|
58228
|
+
}, children: /* @__PURE__ */ D("div", { className: "text-center", children: [
|
|
58299
58229
|
/* @__PURE__ */ b("div", { className: "text-4xl mb-4", children: "⚠️" }),
|
|
58300
58230
|
/* @__PURE__ */ b("h3", { className: "text-lg font-semibold mb-2", children: "Widget Error" }),
|
|
58301
58231
|
/* @__PURE__ */ b("p", { className: "text-sm mb-4", children: A }),
|
|
@@ -58316,8 +58246,8 @@ function LV(e) {
|
|
|
58316
58246
|
scrollPadding: 0,
|
|
58317
58247
|
contain: "layout style paint"
|
|
58318
58248
|
};
|
|
58319
|
-
M === "widget" ? (Ms += ` flex min-h-fit ${
|
|
58320
|
-
const hi = /* @__PURE__ */ b("div", { className: "h-full w-full flex flex-col overflow-hidden relative z-10", children: /* @__PURE__ */
|
|
58249
|
+
M === "widget" ? (Ms += ` flex min-h-fit ${Zt} ${Pr} ${d}`, or = { ...or, ...Mr }) : (Ms = `${d || ""}`, or = {});
|
|
58250
|
+
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
58251
|
B === "welcome" && !Z && /* @__PURE__ */ b(
|
|
58322
58252
|
OV,
|
|
58323
58253
|
{
|
|
@@ -58356,7 +58286,7 @@ function LV(e) {
|
|
|
58356
58286
|
},
|
|
58357
58287
|
`loading-${B}`
|
|
58358
58288
|
),
|
|
58359
|
-
B === "voice" && !Z && Y && be && /* @__PURE__ */
|
|
58289
|
+
B === "voice" && !Z && Y && be && /* @__PURE__ */ D($a.Provider, { value: ut, children: [
|
|
58360
58290
|
/* @__PURE__ */ b(lg, {}, `audio-${(J == null ? void 0 : J.id) || "no-session"}`),
|
|
58361
58291
|
/* @__PURE__ */ b(og, { label: "Start Audio" }, `start-audio-${(J == null ? void 0 : J.id) || "no-session"}`),
|
|
58362
58292
|
/* @__PURE__ */ b(
|
|
@@ -58400,7 +58330,7 @@ function LV(e) {
|
|
|
58400
58330
|
},
|
|
58401
58331
|
"chat-view"
|
|
58402
58332
|
),
|
|
58403
|
-
B === "video" && !Z && Y && be && /* @__PURE__ */
|
|
58333
|
+
B === "video" && !Z && Y && be && /* @__PURE__ */ D($a.Provider, { value: ut, children: [
|
|
58404
58334
|
/* @__PURE__ */ b(lg, {}, `audio-video-${(J == null ? void 0 : J.id) || "no-session"}`),
|
|
58405
58335
|
/* @__PURE__ */ b(og, { label: "Start Audio" }, `start-audio-video-${(J == null ? void 0 : J.id) || "no-session"}`),
|
|
58406
58336
|
/* @__PURE__ */ b(
|
|
@@ -58430,7 +58360,7 @@ function LV(e) {
|
|
|
58430
58360
|
theme: x,
|
|
58431
58361
|
displayType: M,
|
|
58432
58362
|
popupPosition: y,
|
|
58433
|
-
onClose: M === "fullscreen" ?
|
|
58363
|
+
onClose: M === "fullscreen" ? Xt : Nn,
|
|
58434
58364
|
children: hi
|
|
58435
58365
|
}
|
|
58436
58366
|
) : /* @__PURE__ */ b("div", { className: Ms, style: or, children: /* @__PURE__ */ b(
|
|
@@ -58451,14 +58381,14 @@ function Az({ logs: e, onClear: t, onExport: n }) {
|
|
|
58451
58381
|
const [i, r] = Be.useState(!1), [s, o] = Be.useState(""), a = e.filter(
|
|
58452
58382
|
(c) => !s || c.event.toLowerCase().includes(s.toLowerCase())
|
|
58453
58383
|
);
|
|
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__ */
|
|
58384
|
+
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: [
|
|
58385
|
+
/* @__PURE__ */ D("div", { className: "flex items-center justify-between p-4 border-b", children: [
|
|
58386
|
+
/* @__PURE__ */ D("h2", { className: "text-lg font-semibold", children: [
|
|
58457
58387
|
"Session Logs (",
|
|
58458
58388
|
e.length,
|
|
58459
58389
|
")"
|
|
58460
58390
|
] }),
|
|
58461
|
-
/* @__PURE__ */
|
|
58391
|
+
/* @__PURE__ */ D("div", { className: "flex items-center gap-2", children: [
|
|
58462
58392
|
/* @__PURE__ */ b(
|
|
58463
58393
|
"input",
|
|
58464
58394
|
{
|
|
@@ -58495,18 +58425,18 @@ function Az({ logs: e, onClear: t, onExport: n }) {
|
|
|
58495
58425
|
)
|
|
58496
58426
|
] })
|
|
58497
58427
|
] }),
|
|
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__ */
|
|
58428
|
+
/* @__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: [
|
|
58429
|
+
/* @__PURE__ */ D("div", { className: "flex items-center justify-between mb-1", children: [
|
|
58500
58430
|
/* @__PURE__ */ b("span", { className: "font-semibold text-blue-600", children: c.event }),
|
|
58501
58431
|
/* @__PURE__ */ b("span", { className: "text-gray-500 text-xs", children: new Date(c.timestamp).toLocaleTimeString() })
|
|
58502
58432
|
] }),
|
|
58503
|
-
c.sessionId && /* @__PURE__ */
|
|
58433
|
+
c.sessionId && /* @__PURE__ */ D("div", { className: "text-xs text-gray-600 mb-1", children: [
|
|
58504
58434
|
"Session: ",
|
|
58505
58435
|
c.sessionId
|
|
58506
58436
|
] }),
|
|
58507
58437
|
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
58438
|
] }, l)) }) })
|
|
58509
|
-
] }) }) : /* @__PURE__ */
|
|
58439
|
+
] }) }) : /* @__PURE__ */ D(
|
|
58510
58440
|
"button",
|
|
58511
58441
|
{
|
|
58512
58442
|
onClick: () => r(!0),
|
|
@@ -58520,32 +58450,32 @@ function Az({ logs: e, onClear: t, onExport: n }) {
|
|
|
58520
58450
|
);
|
|
58521
58451
|
}
|
|
58522
58452
|
function Iz({ metrics: e }) {
|
|
58523
|
-
return e ? /* @__PURE__ */
|
|
58453
|
+
return e ? /* @__PURE__ */ D("div", { className: "bg-gray-100 p-4 rounded-lg", children: [
|
|
58524
58454
|
/* @__PURE__ */ b("h3", { className: "font-semibold mb-2", children: "Current Session" }),
|
|
58525
|
-
/* @__PURE__ */
|
|
58526
|
-
/* @__PURE__ */
|
|
58455
|
+
/* @__PURE__ */ D("div", { className: "grid grid-cols-2 gap-4 text-sm", children: [
|
|
58456
|
+
/* @__PURE__ */ D("div", { children: [
|
|
58527
58457
|
/* @__PURE__ */ b("span", { className: "text-gray-600", children: "Session ID:" }),
|
|
58528
58458
|
/* @__PURE__ */ b("div", { className: "font-mono text-xs", children: e.sessionId })
|
|
58529
58459
|
] }),
|
|
58530
|
-
/* @__PURE__ */
|
|
58460
|
+
/* @__PURE__ */ D("div", { children: [
|
|
58531
58461
|
/* @__PURE__ */ b("span", { className: "text-gray-600", children: "Start Time:" }),
|
|
58532
58462
|
/* @__PURE__ */ b("div", { children: new Date(e.startTime).toLocaleString() })
|
|
58533
58463
|
] }),
|
|
58534
|
-
/* @__PURE__ */
|
|
58464
|
+
/* @__PURE__ */ D("div", { children: [
|
|
58535
58465
|
/* @__PURE__ */ b("span", { className: "text-gray-600", children: "Messages:" }),
|
|
58536
58466
|
/* @__PURE__ */ b("div", { children: e.totalMessages })
|
|
58537
58467
|
] }),
|
|
58538
|
-
/* @__PURE__ */
|
|
58468
|
+
/* @__PURE__ */ D("div", { children: [
|
|
58539
58469
|
/* @__PURE__ */ b("span", { className: "text-gray-600", children: "Participants:" }),
|
|
58540
58470
|
/* @__PURE__ */ b("div", { children: e.participantCount })
|
|
58541
58471
|
] }),
|
|
58542
|
-
/* @__PURE__ */
|
|
58472
|
+
/* @__PURE__ */ D("div", { children: [
|
|
58543
58473
|
/* @__PURE__ */ b("span", { className: "text-gray-600", children: "Connection Issues:" }),
|
|
58544
58474
|
/* @__PURE__ */ b("div", { children: e.connectionIssues })
|
|
58545
58475
|
] }),
|
|
58546
|
-
/* @__PURE__ */
|
|
58476
|
+
/* @__PURE__ */ D("div", { children: [
|
|
58547
58477
|
/* @__PURE__ */ b("span", { className: "text-gray-600", children: "Duration:" }),
|
|
58548
|
-
/* @__PURE__ */
|
|
58478
|
+
/* @__PURE__ */ D("div", { children: [
|
|
58549
58479
|
Math.round((Date.now() - new Date(e.startTime).getTime()) / 1e3),
|
|
58550
58480
|
"s"
|
|
58551
58481
|
] })
|
|
@@ -58921,7 +58851,7 @@ function HV({
|
|
|
58921
58851
|
o.isActive ? "voxket-session-controls--active" : "voxket-session-controls--inactive",
|
|
58922
58852
|
s
|
|
58923
58853
|
].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__ */
|
|
58854
|
+
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
58855
|
i && /* @__PURE__ */ b("div", { className: "voxket-session-actions", children: o.isActive ? /* @__PURE__ */ b(
|
|
58926
58856
|
"button",
|
|
58927
58857
|
{
|
|
@@ -58930,8 +58860,8 @@ function HV({
|
|
|
58930
58860
|
children: "End Session"
|
|
58931
58861
|
}
|
|
58932
58862
|
) : /* @__PURE__ */ b(KV, {}) }),
|
|
58933
|
-
o.isActive && /* @__PURE__ */
|
|
58934
|
-
e && /* @__PURE__ */
|
|
58863
|
+
o.isActive && /* @__PURE__ */ D("div", { className: "voxket-media-controls", children: [
|
|
58864
|
+
e && /* @__PURE__ */ D(
|
|
58935
58865
|
"button",
|
|
58936
58866
|
{
|
|
58937
58867
|
onClick: a.toggle,
|
|
@@ -58944,7 +58874,7 @@ function HV({
|
|
|
58944
58874
|
]
|
|
58945
58875
|
}
|
|
58946
58876
|
),
|
|
58947
|
-
t && /* @__PURE__ */
|
|
58877
|
+
t && /* @__PURE__ */ D(
|
|
58948
58878
|
"button",
|
|
58949
58879
|
{
|
|
58950
58880
|
onClick: c.toggle,
|
|
@@ -58957,7 +58887,7 @@ function HV({
|
|
|
58957
58887
|
]
|
|
58958
58888
|
}
|
|
58959
58889
|
),
|
|
58960
|
-
n && /* @__PURE__ */
|
|
58890
|
+
n && /* @__PURE__ */ D(
|
|
58961
58891
|
"button",
|
|
58962
58892
|
{
|
|
58963
58893
|
onClick: l.toggle,
|
|
@@ -59008,32 +58938,32 @@ function vx({
|
|
|
59008
58938
|
`voxket-session-header--${o.size || "md"}`,
|
|
59009
58939
|
i
|
|
59010
58940
|
].filter(Boolean).join(" ");
|
|
59011
|
-
return /* @__PURE__ */
|
|
59012
|
-
e && /* @__PURE__ */
|
|
58941
|
+
return /* @__PURE__ */ D("div", { className: a, children: [
|
|
58942
|
+
e && /* @__PURE__ */ D("div", { className: "voxket-connection-status", children: [
|
|
59013
58943
|
/* @__PURE__ */ b("div", { className: `voxket-status-indicator ${s.isConnected ? "connected" : "disconnected"}` }),
|
|
59014
58944
|
/* @__PURE__ */ b("span", { className: "voxket-status-text", children: s.isConnecting ? "Connecting..." : s.isConnected ? "Connected" : "Disconnected" })
|
|
59015
58945
|
] }),
|
|
59016
|
-
t && r.session && /* @__PURE__ */
|
|
59017
|
-
/* @__PURE__ */
|
|
58946
|
+
t && r.session && /* @__PURE__ */ D("div", { className: "voxket-session-info", children: [
|
|
58947
|
+
/* @__PURE__ */ D("div", { className: "voxket-session-id", children: [
|
|
59018
58948
|
"Session: ",
|
|
59019
58949
|
r.session.id.slice(-8)
|
|
59020
58950
|
] }),
|
|
59021
|
-
/* @__PURE__ */
|
|
58951
|
+
/* @__PURE__ */ D("div", { className: "voxket-session-state", children: [
|
|
59022
58952
|
"State: ",
|
|
59023
58953
|
r.state
|
|
59024
58954
|
] })
|
|
59025
58955
|
] }),
|
|
59026
|
-
n && r.session && /* @__PURE__ */
|
|
59027
|
-
/* @__PURE__ */
|
|
58956
|
+
n && r.session && /* @__PURE__ */ D("div", { className: "voxket-agent-info", children: [
|
|
58957
|
+
/* @__PURE__ */ D("div", { className: "voxket-agent-id", children: [
|
|
59028
58958
|
"Agent: ",
|
|
59029
58959
|
r.session.agentId
|
|
59030
58960
|
] }),
|
|
59031
|
-
/* @__PURE__ */
|
|
58961
|
+
/* @__PURE__ */ D("div", { className: "voxket-modalities", children: [
|
|
59032
58962
|
"Modalities: ",
|
|
59033
58963
|
r.session.activeModalities.join(", ")
|
|
59034
58964
|
] })
|
|
59035
58965
|
] }),
|
|
59036
|
-
s.error && /* @__PURE__ */
|
|
58966
|
+
s.error && /* @__PURE__ */ D("div", { className: "voxket-error-message", children: [
|
|
59037
58967
|
"Error: ",
|
|
59038
58968
|
s.error.message
|
|
59039
58969
|
] })
|
|
@@ -59051,15 +58981,15 @@ function kx({
|
|
|
59051
58981
|
`voxket-session-content--${o.size || "md"}`,
|
|
59052
58982
|
i
|
|
59053
58983
|
].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__ */
|
|
58984
|
+
return r.isActive ? /* @__PURE__ */ b("div", { className: a, children: n || /* @__PURE__ */ D(tn, { children: [
|
|
58985
|
+
e && /* @__PURE__ */ D("div", { className: "voxket-chat-container", children: [
|
|
58986
|
+
/* @__PURE__ */ D("div", { className: "voxket-chat-messages", children: [
|
|
58987
|
+
s.messages.map((c) => /* @__PURE__ */ D(
|
|
59058
58988
|
"div",
|
|
59059
58989
|
{
|
|
59060
58990
|
className: `voxket-message voxket-message--${c.sender.type}`,
|
|
59061
58991
|
children: [
|
|
59062
|
-
/* @__PURE__ */
|
|
58992
|
+
/* @__PURE__ */ D("div", { className: "voxket-message-header", children: [
|
|
59063
58993
|
/* @__PURE__ */ b("span", { className: "voxket-message-sender", children: c.sender.name }),
|
|
59064
58994
|
/* @__PURE__ */ b("span", { className: "voxket-message-time", children: c.timestamp.toLocaleTimeString() })
|
|
59065
58995
|
] }),
|
|
@@ -59073,7 +59003,7 @@ function kx({
|
|
|
59073
59003
|
/* @__PURE__ */ b(QV, {})
|
|
59074
59004
|
] }),
|
|
59075
59005
|
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__ */
|
|
59006
|
+
] }) }) : /* @__PURE__ */ b("div", { className: a, children: /* @__PURE__ */ b("div", { className: "voxket-inactive-state", children: /* @__PURE__ */ D("div", { className: "voxket-inactive-message", children: [
|
|
59077
59007
|
/* @__PURE__ */ b("h3", { children: "Start a conversation" }),
|
|
59078
59008
|
/* @__PURE__ */ b("p", { children: "Begin a session to start chatting with the AI agent" })
|
|
59079
59009
|
] }) }) });
|
|
@@ -59087,7 +59017,7 @@ function QV() {
|
|
|
59087
59017
|
console.error("Failed to send message:", s);
|
|
59088
59018
|
}
|
|
59089
59019
|
};
|
|
59090
|
-
return /* @__PURE__ */
|
|
59020
|
+
return /* @__PURE__ */ D("div", { className: "voxket-chat-input", children: [
|
|
59091
59021
|
/* @__PURE__ */ b(
|
|
59092
59022
|
"input",
|
|
59093
59023
|
{
|
|
@@ -59126,23 +59056,23 @@ function wx({
|
|
|
59126
59056
|
`voxket-session-footer--${c.size || "md"}`,
|
|
59127
59057
|
r
|
|
59128
59058
|
].filter(Boolean).join(" ");
|
|
59129
|
-
return s.isActive ? /* @__PURE__ */ b("div", { className: l, children: i || /* @__PURE__ */
|
|
59130
|
-
n && /* @__PURE__ */
|
|
59059
|
+
return s.isActive ? /* @__PURE__ */ b("div", { className: l, children: i || /* @__PURE__ */ D(tn, { children: [
|
|
59060
|
+
n && /* @__PURE__ */ D("div", { className: "voxket-session-status", children: [
|
|
59131
59061
|
/* @__PURE__ */ b("div", { className: "voxket-status-indicator voxket-status-indicator--active" }),
|
|
59132
59062
|
/* @__PURE__ */ b("span", { className: "voxket-status-text", children: "Session Active" })
|
|
59133
59063
|
] }),
|
|
59134
|
-
e && o.metrics && /* @__PURE__ */
|
|
59135
|
-
/* @__PURE__ */
|
|
59064
|
+
e && o.metrics && /* @__PURE__ */ D("div", { className: "voxket-session-metrics", children: [
|
|
59065
|
+
/* @__PURE__ */ D("div", { className: "voxket-metric", children: [
|
|
59136
59066
|
/* @__PURE__ */ b("span", { className: "voxket-metric-label", children: "Duration:" }),
|
|
59137
59067
|
/* @__PURE__ */ b("span", { className: "voxket-metric-value", children: WV(o.duration || 0) })
|
|
59138
59068
|
] }),
|
|
59139
|
-
/* @__PURE__ */
|
|
59069
|
+
/* @__PURE__ */ D("div", { className: "voxket-metric", children: [
|
|
59140
59070
|
/* @__PURE__ */ b("span", { className: "voxket-metric-label", children: "Messages:" }),
|
|
59141
59071
|
/* @__PURE__ */ b("span", { className: "voxket-metric-value", children: o.metrics.messageCount })
|
|
59142
59072
|
] })
|
|
59143
59073
|
] }),
|
|
59144
|
-
t && /* @__PURE__ */
|
|
59145
|
-
/* @__PURE__ */
|
|
59074
|
+
t && /* @__PURE__ */ D("div", { className: "voxket-participants-info", children: [
|
|
59075
|
+
/* @__PURE__ */ D("span", { className: "voxket-participants-count", children: [
|
|
59146
59076
|
a.count,
|
|
59147
59077
|
" participant",
|
|
59148
59078
|
a.count !== 1 ? "s" : ""
|
|
@@ -59184,7 +59114,7 @@ function qV({
|
|
|
59184
59114
|
u.isActive ? "voxket-session--active" : "voxket-session--inactive",
|
|
59185
59115
|
c
|
|
59186
59116
|
].filter(Boolean).join(" ");
|
|
59187
|
-
return /* @__PURE__ */ b(jV, { variant: s, size: o, theme: a, className: c, children: /* @__PURE__ */ b("div", { className: h, children: l || /* @__PURE__ */
|
|
59117
|
+
return /* @__PURE__ */ b(jV, { variant: s, size: o, theme: a, className: c, children: /* @__PURE__ */ b("div", { className: h, children: l || /* @__PURE__ */ D(tn, { children: [
|
|
59188
59118
|
/* @__PURE__ */ b(pu, { name: "header", fallback: /* @__PURE__ */ b(vx, {}) }),
|
|
59189
59119
|
/* @__PURE__ */ b(pu, { name: "content", fallback: /* @__PURE__ */ b(kx, {}) }),
|
|
59190
59120
|
/* @__PURE__ */ b(pu, { name: "footer", fallback: /* @__PURE__ */ b(wx, {}) })
|
|
@@ -59502,7 +59432,7 @@ function mu({
|
|
|
59502
59432
|
onPin: c,
|
|
59503
59433
|
onUnpin: l
|
|
59504
59434
|
}) {
|
|
59505
|
-
const u =
|
|
59435
|
+
const u = Jt(null), [d, h] = Ae(!1);
|
|
59506
59436
|
kt(() => {
|
|
59507
59437
|
if (!u.current || !e.isEnabled) return;
|
|
59508
59438
|
const v = u.current;
|
|
@@ -59523,7 +59453,7 @@ function mu({
|
|
|
59523
59453
|
d ? "voxket-video-tile--hovered" : "",
|
|
59524
59454
|
o
|
|
59525
59455
|
].filter(Boolean).join(" ");
|
|
59526
|
-
return /* @__PURE__ */
|
|
59456
|
+
return /* @__PURE__ */ D(
|
|
59527
59457
|
"div",
|
|
59528
59458
|
{
|
|
59529
59459
|
className: p,
|
|
@@ -59544,17 +59474,17 @@ function mu({
|
|
|
59544
59474
|
muted: e.isLocal
|
|
59545
59475
|
}
|
|
59546
59476
|
),
|
|
59547
|
-
!e.isEnabled && /* @__PURE__ */
|
|
59477
|
+
!e.isEnabled && /* @__PURE__ */ D("div", { className: "voxket-video-placeholder", children: [
|
|
59548
59478
|
/* @__PURE__ */ b("div", { className: "voxket-video-placeholder-icon", children: e.isScreenShare ? "🖥️" : "📹" }),
|
|
59549
59479
|
/* @__PURE__ */ b("p", { className: "voxket-video-placeholder-text", children: e.isScreenShare ? "Screen sharing paused" : "Camera off" })
|
|
59550
59480
|
] }),
|
|
59551
|
-
/* @__PURE__ */
|
|
59552
|
-
i && t && /* @__PURE__ */
|
|
59481
|
+
/* @__PURE__ */ D("div", { className: "voxket-video-overlay", children: [
|
|
59482
|
+
i && t && /* @__PURE__ */ D("div", { className: "voxket-video-name", children: [
|
|
59553
59483
|
t,
|
|
59554
59484
|
e.isLocal && " (You)"
|
|
59555
59485
|
] }),
|
|
59556
59486
|
r && !e.isEnabled && /* @__PURE__ */ b("div", { className: "voxket-video-mute-indicator", children: "🔇" }),
|
|
59557
|
-
n && (d || s) && /* @__PURE__ */
|
|
59487
|
+
n && (d || s) && /* @__PURE__ */ D("div", { className: "voxket-video-controls", children: [
|
|
59558
59488
|
/* @__PURE__ */ b(
|
|
59559
59489
|
"button",
|
|
59560
59490
|
{
|
|
@@ -59634,11 +59564,11 @@ function Bz({
|
|
|
59634
59564
|
`voxket-video-grid--${d.length}-tracks`,
|
|
59635
59565
|
n
|
|
59636
59566
|
].filter(Boolean).join(" ");
|
|
59637
|
-
return e.length === 0 ? /* @__PURE__ */ b("div", { className: "voxket-video-grid-empty", children: /* @__PURE__ */
|
|
59567
|
+
return e.length === 0 ? /* @__PURE__ */ b("div", { className: "voxket-video-grid-empty", children: /* @__PURE__ */ D("div", { className: "voxket-video-grid-empty-content", children: [
|
|
59638
59568
|
/* @__PURE__ */ b("div", { className: "voxket-video-grid-empty-icon", children: "📹" }),
|
|
59639
59569
|
/* @__PURE__ */ b("p", { children: "No video tracks available" })
|
|
59640
|
-
] }) }) : /* @__PURE__ */
|
|
59641
|
-
/* @__PURE__ */
|
|
59570
|
+
] }) }) : /* @__PURE__ */ D("div", { className: g, children: [
|
|
59571
|
+
/* @__PURE__ */ D("div", { className: "voxket-video-grid-controls", children: [
|
|
59642
59572
|
/* @__PURE__ */ b("div", { className: "voxket-video-layout-controls", children: ["grid", "speaker", "sidebar", "gallery"].map((x) => /* @__PURE__ */ b(
|
|
59643
59573
|
"button",
|
|
59644
59574
|
{
|
|
@@ -59649,13 +59579,13 @@ function Bz({
|
|
|
59649
59579
|
},
|
|
59650
59580
|
x
|
|
59651
59581
|
)) }),
|
|
59652
|
-
/* @__PURE__ */
|
|
59582
|
+
/* @__PURE__ */ D("div", { className: "voxket-video-count", children: [
|
|
59653
59583
|
e.length,
|
|
59654
59584
|
" participant",
|
|
59655
59585
|
e.length !== 1 ? "s" : ""
|
|
59656
59586
|
] })
|
|
59657
59587
|
] }),
|
|
59658
|
-
/* @__PURE__ */ b("div", { className: "voxket-video-grid-content", style: f, children: t.type === "speaker" && l ? /* @__PURE__ */
|
|
59588
|
+
/* @__PURE__ */ b("div", { className: "voxket-video-grid-content", style: f, children: t.type === "speaker" && l ? /* @__PURE__ */ D(tn, { children: [
|
|
59659
59589
|
/* @__PURE__ */ b("div", { className: "voxket-video-speaker-main", children: /* @__PURE__ */ b(
|
|
59660
59590
|
mu,
|
|
59661
59591
|
{
|
|
@@ -59692,7 +59622,7 @@ function Bz({
|
|
|
59692
59622
|
x.id
|
|
59693
59623
|
))
|
|
59694
59624
|
) }),
|
|
59695
|
-
o && h > 1 && /* @__PURE__ */
|
|
59625
|
+
o && h > 1 && /* @__PURE__ */ D("div", { className: "voxket-video-pagination", children: [
|
|
59696
59626
|
/* @__PURE__ */ b(
|
|
59697
59627
|
"button",
|
|
59698
59628
|
{
|
|
@@ -59702,7 +59632,7 @@ function Bz({
|
|
|
59702
59632
|
children: "←"
|
|
59703
59633
|
}
|
|
59704
59634
|
),
|
|
59705
|
-
/* @__PURE__ */
|
|
59635
|
+
/* @__PURE__ */ D("span", { className: "voxket-pagination-info", children: [
|
|
59706
59636
|
"Page ",
|
|
59707
59637
|
a + 1,
|
|
59708
59638
|
" of ",
|
|
@@ -59756,10 +59686,10 @@ function Fz({
|
|
|
59756
59686
|
aspectRatio: "16:9"
|
|
59757
59687
|
});
|
|
59758
59688
|
};
|
|
59759
|
-
return /* @__PURE__ */
|
|
59760
|
-
s && /* @__PURE__ */
|
|
59689
|
+
return /* @__PURE__ */ D("div", { className: c, children: [
|
|
59690
|
+
s && /* @__PURE__ */ D("div", { className: "voxket-video-controls-section", children: [
|
|
59761
59691
|
/* @__PURE__ */ b("h4", { className: "voxket-video-controls-title", children: "Camera" }),
|
|
59762
|
-
/* @__PURE__ */
|
|
59692
|
+
/* @__PURE__ */ D(
|
|
59763
59693
|
"button",
|
|
59764
59694
|
{
|
|
59765
59695
|
className: `voxket-control-btn ${e != null && e.isEnabled ? "voxket-control-btn--active" : ""}`,
|
|
@@ -59771,15 +59701,15 @@ function Fz({
|
|
|
59771
59701
|
]
|
|
59772
59702
|
}
|
|
59773
59703
|
),
|
|
59774
|
-
(e == null ? void 0 : e.dimensions) && /* @__PURE__ */
|
|
59704
|
+
(e == null ? void 0 : e.dimensions) && /* @__PURE__ */ D("div", { className: "voxket-video-info", children: [
|
|
59775
59705
|
e.dimensions.width,
|
|
59776
59706
|
" × ",
|
|
59777
59707
|
e.dimensions.height
|
|
59778
59708
|
] })
|
|
59779
59709
|
] }),
|
|
59780
|
-
o && /* @__PURE__ */
|
|
59710
|
+
o && /* @__PURE__ */ D("div", { className: "voxket-video-controls-section", children: [
|
|
59781
59711
|
/* @__PURE__ */ b("h4", { className: "voxket-video-controls-title", children: "Screen Share" }),
|
|
59782
|
-
/* @__PURE__ */
|
|
59712
|
+
/* @__PURE__ */ D(
|
|
59783
59713
|
"button",
|
|
59784
59714
|
{
|
|
59785
59715
|
className: `voxket-control-btn ${e != null && e.isScreenShare ? "voxket-control-btn--active" : ""}`,
|
|
@@ -59792,14 +59722,14 @@ function Fz({
|
|
|
59792
59722
|
}
|
|
59793
59723
|
)
|
|
59794
59724
|
] }),
|
|
59795
|
-
r && /* @__PURE__ */
|
|
59725
|
+
r && /* @__PURE__ */ D("div", { className: "voxket-video-controls-section", children: [
|
|
59796
59726
|
/* @__PURE__ */ b("h4", { className: "voxket-video-controls-title", children: "Layout" }),
|
|
59797
59727
|
/* @__PURE__ */ b("div", { className: "voxket-layout-buttons", children: [
|
|
59798
59728
|
{ type: "grid", icon: "⊞", label: "Grid" },
|
|
59799
59729
|
{ type: "speaker", icon: "🎤", label: "Speaker" },
|
|
59800
59730
|
{ type: "sidebar", icon: "⫸", label: "Sidebar" },
|
|
59801
59731
|
{ type: "gallery", icon: "⊡", label: "Gallery" }
|
|
59802
|
-
].map(({ type: u, icon: d, label: h }) => /* @__PURE__ */
|
|
59732
|
+
].map(({ type: u, icon: d, label: h }) => /* @__PURE__ */ D(
|
|
59803
59733
|
"button",
|
|
59804
59734
|
{
|
|
59805
59735
|
className: "voxket-layout-control-btn",
|
|
@@ -59813,28 +59743,28 @@ function Fz({
|
|
|
59813
59743
|
u
|
|
59814
59744
|
)) })
|
|
59815
59745
|
] }),
|
|
59816
|
-
/* @__PURE__ */
|
|
59746
|
+
/* @__PURE__ */ D("div", { className: "voxket-video-controls-section", children: [
|
|
59817
59747
|
/* @__PURE__ */ b("h4", { className: "voxket-video-controls-title", children: "Video Settings" }),
|
|
59818
|
-
/* @__PURE__ */
|
|
59819
|
-
/* @__PURE__ */
|
|
59748
|
+
/* @__PURE__ */ D("div", { className: "voxket-video-settings", children: [
|
|
59749
|
+
/* @__PURE__ */ D("div", { className: "voxket-setting-group", children: [
|
|
59820
59750
|
/* @__PURE__ */ b("label", { className: "voxket-setting-label", children: "Quality" }),
|
|
59821
|
-
/* @__PURE__ */
|
|
59751
|
+
/* @__PURE__ */ D("select", { className: "voxket-setting-select", children: [
|
|
59822
59752
|
/* @__PURE__ */ b("option", { value: "high", children: "High (720p)" }),
|
|
59823
59753
|
/* @__PURE__ */ b("option", { value: "medium", children: "Medium (480p)" }),
|
|
59824
59754
|
/* @__PURE__ */ b("option", { value: "low", children: "Low (240p)" })
|
|
59825
59755
|
] })
|
|
59826
59756
|
] }),
|
|
59827
|
-
/* @__PURE__ */
|
|
59757
|
+
/* @__PURE__ */ D("div", { className: "voxket-setting-group", children: [
|
|
59828
59758
|
/* @__PURE__ */ b("label", { className: "voxket-setting-label", children: "Frame Rate" }),
|
|
59829
|
-
/* @__PURE__ */
|
|
59759
|
+
/* @__PURE__ */ D("select", { className: "voxket-setting-select", children: [
|
|
59830
59760
|
/* @__PURE__ */ b("option", { value: "30", children: "30 fps" }),
|
|
59831
59761
|
/* @__PURE__ */ b("option", { value: "15", children: "15 fps" }),
|
|
59832
59762
|
/* @__PURE__ */ b("option", { value: "10", children: "10 fps" })
|
|
59833
59763
|
] })
|
|
59834
59764
|
] }),
|
|
59835
|
-
/* @__PURE__ */
|
|
59765
|
+
/* @__PURE__ */ D("div", { className: "voxket-setting-group", children: [
|
|
59836
59766
|
/* @__PURE__ */ b("label", { className: "voxket-setting-label", children: "Bandwidth" }),
|
|
59837
|
-
/* @__PURE__ */
|
|
59767
|
+
/* @__PURE__ */ D("select", { className: "voxket-setting-select", children: [
|
|
59838
59768
|
/* @__PURE__ */ b("option", { value: "unlimited", children: "Unlimited" }),
|
|
59839
59769
|
/* @__PURE__ */ b("option", { value: "1000", children: "1 Mbps" }),
|
|
59840
59770
|
/* @__PURE__ */ b("option", { value: "500", children: "500 Kbps" }),
|
|
@@ -59843,18 +59773,18 @@ function Fz({
|
|
|
59843
59773
|
] })
|
|
59844
59774
|
] })
|
|
59845
59775
|
] }),
|
|
59846
|
-
/* @__PURE__ */
|
|
59776
|
+
/* @__PURE__ */ D("div", { className: "voxket-video-controls-section", children: [
|
|
59847
59777
|
/* @__PURE__ */ b("h4", { className: "voxket-video-controls-title", children: "Statistics" }),
|
|
59848
|
-
/* @__PURE__ */
|
|
59849
|
-
/* @__PURE__ */
|
|
59778
|
+
/* @__PURE__ */ D("div", { className: "voxket-video-stats", children: [
|
|
59779
|
+
/* @__PURE__ */ D("div", { className: "voxket-stat-item", children: [
|
|
59850
59780
|
/* @__PURE__ */ b("span", { className: "voxket-stat-label", children: "Resolution:" }),
|
|
59851
59781
|
/* @__PURE__ */ b("span", { className: "voxket-stat-value", children: e != null && e.dimensions ? `${e.dimensions.width}×${e.dimensions.height}` : "N/A" })
|
|
59852
59782
|
] }),
|
|
59853
|
-
/* @__PURE__ */
|
|
59783
|
+
/* @__PURE__ */ D("div", { className: "voxket-stat-item", children: [
|
|
59854
59784
|
/* @__PURE__ */ b("span", { className: "voxket-stat-label", children: "Source:" }),
|
|
59855
59785
|
/* @__PURE__ */ b("span", { className: "voxket-stat-value", children: (e == null ? void 0 : e.source) || "None" })
|
|
59856
59786
|
] }),
|
|
59857
|
-
/* @__PURE__ */
|
|
59787
|
+
/* @__PURE__ */ D("div", { className: "voxket-stat-item", children: [
|
|
59858
59788
|
/* @__PURE__ */ b("span", { className: "voxket-stat-label", children: "Status:" }),
|
|
59859
59789
|
/* @__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
59790
|
] })
|
|
@@ -59863,8 +59793,8 @@ function Fz({
|
|
|
59863
59793
|
] });
|
|
59864
59794
|
}
|
|
59865
59795
|
const uz = ({ handler: e, loadData: t, data: n, client: i, addLocalMessage: r }) => {
|
|
59866
|
-
const [s, o] =
|
|
59867
|
-
|
|
59796
|
+
const [s, o] = _.useState(null), [a, c] = _.useState(!0), [l, u] = _.useState(!1), [d] = _.useState(Date.now()), [h, f] = _.useState("pending");
|
|
59797
|
+
_.useEffect(() => {
|
|
59868
59798
|
(async () => {
|
|
59869
59799
|
try {
|
|
59870
59800
|
if (c(!0), n && typeof n == "object") {
|
|
@@ -59888,7 +59818,7 @@ const uz = ({ handler: e, loadData: t, data: n, client: i, addLocalMessage: r })
|
|
|
59888
59818
|
}, [n, t]);
|
|
59889
59819
|
const m = ({ message: g, assignment: x }) => {
|
|
59890
59820
|
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", E = S ? "❌" : "🎉";
|
|
59891
|
-
return /* @__PURE__ */
|
|
59821
|
+
return /* @__PURE__ */ D("div", { className: `max-w-sm mx-auto ${w} border rounded-lg shadow p-3 flex flex-col items-center`, children: [
|
|
59892
59822
|
/* @__PURE__ */ b("div", { className: "text-2xl mb-2", children: E }),
|
|
59893
59823
|
/* @__PURE__ */ b("div", { className: `${k} font-semibold text-sm mb-1`, children: g }),
|
|
59894
59824
|
/* @__PURE__ */ b("div", { className: "text-xs text-gray-600 text-center mb-1", children: x.title }),
|
|
@@ -59923,7 +59853,7 @@ const uz = ({ handler: e, loadData: t, data: n, client: i, addLocalMessage: r })
|
|
|
59923
59853
|
}
|
|
59924
59854
|
}
|
|
59925
59855
|
};
|
|
59926
|
-
return a ? /* @__PURE__ */ b("div", { className: "max-w-sm mx-auto bg-white rounded-lg shadow-lg p-3", children: /* @__PURE__ */
|
|
59856
|
+
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
59857
|
/* @__PURE__ */ b("div", { className: "animate-spin rounded-full h-4 w-4 border-b-2 border-blue-600" }),
|
|
59928
59858
|
/* @__PURE__ */ b("span", { className: "ml-2 text-xs text-gray-600", children: "Loading assignment..." })
|
|
59929
59859
|
] }) }) : s ? h === "accepted" || h === "declined" || h === "error" ? /* @__PURE__ */ b(
|
|
@@ -59932,25 +59862,25 @@ const uz = ({ handler: e, loadData: t, data: n, client: i, addLocalMessage: r })
|
|
|
59932
59862
|
message: h === "accepted" ? "Assignment accepted!" : h === "declined" ? "Assignment declined" : "Assignment error occurred",
|
|
59933
59863
|
assignment: s
|
|
59934
59864
|
}
|
|
59935
|
-
) : /* @__PURE__ */
|
|
59865
|
+
) : /* @__PURE__ */ D("div", { className: "max-w-sm mx-auto bg-white rounded-lg shadow-lg overflow-hidden", children: [
|
|
59936
59866
|
/* @__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__ */
|
|
59867
|
+
/* @__PURE__ */ D("div", { className: "p-3 text-black", children: [
|
|
59938
59868
|
/* @__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__ */
|
|
59869
|
+
/* @__PURE__ */ b("div", { className: "mb-3 text-black", children: /* @__PURE__ */ D("div", { className: "flex items-center text-xs text-gray-600", children: [
|
|
59940
59870
|
/* @__PURE__ */ b("span", { className: "text-xs mr-1", children: "📅" }),
|
|
59941
|
-
/* @__PURE__ */
|
|
59871
|
+
/* @__PURE__ */ D("span", { children: [
|
|
59942
59872
|
"Est: ",
|
|
59943
59873
|
s.estimated_time_of_completion
|
|
59944
59874
|
] })
|
|
59945
59875
|
] }) }),
|
|
59946
|
-
/* @__PURE__ */
|
|
59876
|
+
/* @__PURE__ */ D("div", { className: "flex gap-2", children: [
|
|
59947
59877
|
/* @__PURE__ */ b(
|
|
59948
59878
|
"button",
|
|
59949
59879
|
{
|
|
59950
59880
|
onClick: p,
|
|
59951
59881
|
disabled: l,
|
|
59952
59882
|
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__ */
|
|
59883
|
+
children: l ? /* @__PURE__ */ D("span", { className: "flex items-center justify-center", children: [
|
|
59954
59884
|
/* @__PURE__ */ b("div", { className: "animate-spin rounded-full h-2 w-2 border-b-2 border-white mr-1" }),
|
|
59955
59885
|
/* @__PURE__ */ b("span", { className: "text-xs", children: "Processing..." })
|
|
59956
59886
|
] }) : "Accept"
|
|
@@ -59967,14 +59897,14 @@ const uz = ({ handler: e, loadData: t, data: n, client: i, addLocalMessage: r })
|
|
|
59967
59897
|
)
|
|
59968
59898
|
] })
|
|
59969
59899
|
] })
|
|
59970
|
-
] }) : /* @__PURE__ */ b("div", { className: "max-w-sm mx-auto bg-white rounded-lg shadow-lg p-3", children: /* @__PURE__ */
|
|
59900
|
+
] }) : /* @__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
59901
|
/* @__PURE__ */ b("div", { className: "text-red-600 text-sm font-semibold mb-2", children: "⚠️ Assignment Error" }),
|
|
59972
59902
|
/* @__PURE__ */ b("p", { className: "text-xs text-gray-600 mb-3", children: "Failed to load assignment details." })
|
|
59973
59903
|
] }) });
|
|
59974
59904
|
};
|
|
59975
59905
|
function Uz() {
|
|
59976
|
-
const [e, t] =
|
|
59977
|
-
return
|
|
59906
|
+
const [e, t] = _.useState(null), [n, i] = _.useState([]);
|
|
59907
|
+
return _.useEffect(() => {
|
|
59978
59908
|
const a = new Cf({
|
|
59979
59909
|
appId: "your-app-id",
|
|
59980
59910
|
appSecret: "your-app-secret",
|
|
@@ -59990,12 +59920,12 @@ function Uz() {
|
|
|
59990
59920
|
}), () => {
|
|
59991
59921
|
a.disconnect();
|
|
59992
59922
|
};
|
|
59993
|
-
}, []), /* @__PURE__ */
|
|
59923
|
+
}, []), /* @__PURE__ */ D("div", { className: "p-6", children: [
|
|
59994
59924
|
/* @__PURE__ */ b("h2", { className: "text-2xl font-bold mb-6", children: "Frontend RPC Examples" }),
|
|
59995
|
-
/* @__PURE__ */
|
|
59996
|
-
/* @__PURE__ */
|
|
59925
|
+
/* @__PURE__ */ D("div", { className: "space-y-4 mb-6", children: [
|
|
59926
|
+
/* @__PURE__ */ D("div", { children: [
|
|
59997
59927
|
/* @__PURE__ */ b("h3", { className: "text-lg font-semibold mb-2", children: "Register RPC Methods" }),
|
|
59998
|
-
/* @__PURE__ */
|
|
59928
|
+
/* @__PURE__ */ D("div", { className: "space-x-2", children: [
|
|
59999
59929
|
/* @__PURE__ */ b(
|
|
60000
59930
|
"button",
|
|
60001
59931
|
{
|
|
@@ -60024,7 +59954,7 @@ function Uz() {
|
|
|
60024
59954
|
onClick: async () => {
|
|
60025
59955
|
if (!e) return;
|
|
60026
59956
|
const a = ({ handler: c, timeout: l }) => {
|
|
60027
|
-
const [u, d] =
|
|
59957
|
+
const [u, d] = _.useState(""), h = [
|
|
60028
59958
|
{ id: "pro", name: "Pro Plan", price: "$29/month" },
|
|
60029
59959
|
{ id: "enterprise", name: "Enterprise Plan", price: "$99/month" },
|
|
60030
59960
|
{ id: "basic", name: "Basic Plan", price: "$9/month" }
|
|
@@ -60039,7 +59969,7 @@ function Uz() {
|
|
|
60039
59969
|
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
60040
59970
|
});
|
|
60041
59971
|
};
|
|
60042
|
-
return /* @__PURE__ */
|
|
59972
|
+
return /* @__PURE__ */ D("div", { className: "p-6 bg-white rounded-lg", children: [
|
|
60043
59973
|
/* @__PURE__ */ b("h3", { className: "text-xl font-bold mb-4", children: "Choose Your Plan" }),
|
|
60044
59974
|
/* @__PURE__ */ b("p", { className: "text-gray-600 mb-4", children: "Select the plan that best fits your needs:" }),
|
|
60045
59975
|
/* @__PURE__ */ b("div", { className: "space-y-3 mb-6", children: h.map((p) => /* @__PURE__ */ b(
|
|
@@ -60047,8 +59977,8 @@ function Uz() {
|
|
|
60047
59977
|
{
|
|
60048
59978
|
onClick: () => f(p.id),
|
|
60049
59979
|
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__ */
|
|
59980
|
+
children: /* @__PURE__ */ D("div", { className: "flex justify-between items-center", children: [
|
|
59981
|
+
/* @__PURE__ */ D("div", { children: [
|
|
60052
59982
|
/* @__PURE__ */ b("h4", { className: "font-medium", children: p.name }),
|
|
60053
59983
|
/* @__PURE__ */ b("p", { className: "text-gray-600 text-sm", children: p.price })
|
|
60054
59984
|
] }),
|
|
@@ -60057,7 +59987,7 @@ function Uz() {
|
|
|
60057
59987
|
},
|
|
60058
59988
|
p.id
|
|
60059
59989
|
)) }),
|
|
60060
|
-
/* @__PURE__ */
|
|
59990
|
+
/* @__PURE__ */ D("div", { className: "flex justify-end space-x-3", children: [
|
|
60061
59991
|
/* @__PURE__ */ b(
|
|
60062
59992
|
"button",
|
|
60063
59993
|
{
|
|
@@ -60076,7 +60006,7 @@ function Uz() {
|
|
|
60076
60006
|
}
|
|
60077
60007
|
)
|
|
60078
60008
|
] }),
|
|
60079
|
-
l && /* @__PURE__ */
|
|
60009
|
+
l && /* @__PURE__ */ D("p", { className: "text-xs text-gray-500 mt-2", children: [
|
|
60080
60010
|
"Time remaining: ",
|
|
60081
60011
|
l,
|
|
60082
60012
|
" seconds"
|
|
@@ -60105,16 +60035,16 @@ function Uz() {
|
|
|
60105
60035
|
onClick: async () => {
|
|
60106
60036
|
if (!e) return;
|
|
60107
60037
|
const a = ({ handler: c }) => {
|
|
60108
|
-
const [l, u] =
|
|
60038
|
+
const [l, u] = _.useState(0), [d, h] = _.useState(""), f = () => {
|
|
60109
60039
|
c == null || c.didSuccess({
|
|
60110
60040
|
rating: l,
|
|
60111
60041
|
comment: d,
|
|
60112
60042
|
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
60113
60043
|
});
|
|
60114
60044
|
};
|
|
60115
|
-
return /* @__PURE__ */
|
|
60045
|
+
return /* @__PURE__ */ D("div", { className: "p-4 bg-white rounded-lg", children: [
|
|
60116
60046
|
/* @__PURE__ */ b("h3", { className: "text-lg font-semibold mb-3", children: "How was your experience?" }),
|
|
60117
|
-
/* @__PURE__ */
|
|
60047
|
+
/* @__PURE__ */ D("div", { className: "mb-4", children: [
|
|
60118
60048
|
/* @__PURE__ */ b("p", { className: "text-sm text-gray-600 mb-2", children: "Rate your experience:" }),
|
|
60119
60049
|
/* @__PURE__ */ b("div", { className: "flex space-x-1", children: [1, 2, 3, 4, 5].map((m) => /* @__PURE__ */ b(
|
|
60120
60050
|
"button",
|
|
@@ -60126,7 +60056,7 @@ function Uz() {
|
|
|
60126
60056
|
m
|
|
60127
60057
|
)) })
|
|
60128
60058
|
] }),
|
|
60129
|
-
/* @__PURE__ */
|
|
60059
|
+
/* @__PURE__ */ D("div", { className: "mb-4", children: [
|
|
60130
60060
|
/* @__PURE__ */ b("p", { className: "text-sm text-gray-600 mb-2", children: "Additional comments:" }),
|
|
60131
60061
|
/* @__PURE__ */ b(
|
|
60132
60062
|
"textarea",
|
|
@@ -60139,7 +60069,7 @@ function Uz() {
|
|
|
60139
60069
|
}
|
|
60140
60070
|
)
|
|
60141
60071
|
] }),
|
|
60142
|
-
/* @__PURE__ */
|
|
60072
|
+
/* @__PURE__ */ D("div", { className: "flex justify-end space-x-2", children: [
|
|
60143
60073
|
/* @__PURE__ */ b(
|
|
60144
60074
|
"button",
|
|
60145
60075
|
{
|
|
@@ -60178,15 +60108,15 @@ function Uz() {
|
|
|
60178
60108
|
)
|
|
60179
60109
|
] })
|
|
60180
60110
|
] }),
|
|
60181
|
-
/* @__PURE__ */
|
|
60111
|
+
/* @__PURE__ */ D("div", { children: [
|
|
60182
60112
|
/* @__PURE__ */ b("h3", { className: "text-lg font-semibold mb-2", children: "Registered Methods" }),
|
|
60183
60113
|
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
60114
|
] })
|
|
60185
60115
|
] }),
|
|
60186
|
-
/* @__PURE__ */
|
|
60116
|
+
/* @__PURE__ */ D("div", { className: "bg-gray-50 p-4 rounded-lg", children: [
|
|
60187
60117
|
/* @__PURE__ */ b("h3", { className: "text-lg font-semibold mb-2", children: "How it works" }),
|
|
60188
|
-
/* @__PURE__ */
|
|
60189
|
-
/* @__PURE__ */
|
|
60118
|
+
/* @__PURE__ */ D("ol", { className: "list-decimal list-inside space-y-2 text-sm text-gray-700", children: [
|
|
60119
|
+
/* @__PURE__ */ D("li", { children: [
|
|
60190
60120
|
"Register RPC methods with React components using ",
|
|
60191
60121
|
/* @__PURE__ */ b("code", { children: "client.registerFrontendRPC()" })
|
|
60192
60122
|
] }),
|
|
@@ -60196,7 +60126,7 @@ function Uz() {
|
|
|
60196
60126
|
/* @__PURE__ */ b("li", { children: "Each component has a timeout and can handle success/failure scenarios" })
|
|
60197
60127
|
] })
|
|
60198
60128
|
] }),
|
|
60199
|
-
/* @__PURE__ */
|
|
60129
|
+
/* @__PURE__ */ D("div", { className: "mt-6 bg-blue-50 p-4 rounded-lg", children: [
|
|
60200
60130
|
/* @__PURE__ */ b("h3", { className: "text-lg font-semibold mb-2 text-blue-800", children: "Agent Side" }),
|
|
60201
60131
|
/* @__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
60132
|
/* @__PURE__ */ b("pre", { className: "bg-white p-3 rounded text-xs text-gray-800 overflow-x-auto", children: `// Agent calls RPC method
|
|
@@ -60283,8 +60213,8 @@ const Vz = {
|
|
|
60283
60213
|
}
|
|
60284
60214
|
};
|
|
60285
60215
|
}
|
|
60286
|
-
}, zz = (e) => typeof window > "u" ? null :
|
|
60287
|
-
children:
|
|
60216
|
+
}, zz = (e) => typeof window > "u" ? null : _.createElement(fx, {
|
|
60217
|
+
children: _.createElement(_a, e)
|
|
60288
60218
|
});
|
|
60289
60219
|
export {
|
|
60290
60220
|
RV as AgentManager,
|