@_solaris/messenger-widget 0.5.37 → 0.5.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/iframe/iframe.css +1 -1
- package/dist/iframe/iframe.js +6 -6
- package/dist/messenger.cjs +7 -7
- package/dist/messenger.js +529 -507
- package/dist/snippet.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/messenger.js
CHANGED
|
@@ -131,7 +131,7 @@ function Ge(e) {
|
|
|
131
131
|
}),
|
|
132
132
|
a("GET", "/customers/me")
|
|
133
133
|
]), M = { config: b, customer: (C == null ? void 0 : C.customer) ?? null };
|
|
134
|
-
return t.lastBootstrap = M, await k(), typeof document < "u" && (t.visibilityHandler =
|
|
134
|
+
return t.lastBootstrap = M, await k(), typeof document < "u" && (t.visibilityHandler = h, document.addEventListener(
|
|
135
135
|
"visibilitychange",
|
|
136
136
|
t.visibilityHandler
|
|
137
137
|
)), de(), M;
|
|
@@ -275,7 +275,7 @@ function Ge(e) {
|
|
|
275
275
|
function ce(d) {
|
|
276
276
|
t.panelOpen = !!d, t.panelOpen ? (clearTimeout(t.burstTimer), V()) : se();
|
|
277
277
|
}
|
|
278
|
-
async function
|
|
278
|
+
async function he() {
|
|
279
279
|
try {
|
|
280
280
|
const d = await B(), f = d.reduce((b, C) => {
|
|
281
281
|
const M = C == null ? void 0 : C.last_message_at;
|
|
@@ -287,15 +287,15 @@ function Ge(e) {
|
|
|
287
287
|
}
|
|
288
288
|
}
|
|
289
289
|
function de() {
|
|
290
|
-
|
|
290
|
+
m(), !(typeof document < "u" && document.hidden) && (t.pollTimer = setInterval(he, Ve));
|
|
291
291
|
}
|
|
292
|
-
function
|
|
292
|
+
function m() {
|
|
293
293
|
t.pollTimer && (clearInterval(t.pollTimer), t.pollTimer = null);
|
|
294
294
|
}
|
|
295
|
-
function
|
|
295
|
+
function h() {
|
|
296
296
|
if (document.hidden)
|
|
297
297
|
clearTimeout(t.hiddenGraceTimer), t.hiddenGraceTimer = setTimeout(() => {
|
|
298
|
-
t.hiddenGraceTimer = null, document.hidden && (
|
|
298
|
+
t.hiddenGraceTimer = null, document.hidden && (m(), J(), r("paused"));
|
|
299
299
|
}, We);
|
|
300
300
|
else {
|
|
301
301
|
if (t.hiddenGraceTimer) {
|
|
@@ -306,7 +306,7 @@ function Ge(e) {
|
|
|
306
306
|
}
|
|
307
307
|
}
|
|
308
308
|
function _() {
|
|
309
|
-
|
|
309
|
+
m(), clearTimeout(t.burstTimer), clearTimeout(t.hiddenGraceTimer), t.hiddenGraceTimer = null, J(), t.visibilityHandler && (document.removeEventListener(
|
|
310
310
|
"visibilitychange",
|
|
311
311
|
t.visibilityHandler
|
|
312
312
|
), t.visibilityHandler = null), t.started = !1;
|
|
@@ -386,48 +386,48 @@ function Xe(e) {
|
|
|
386
386
|
connection: "idle"
|
|
387
387
|
}), n = [];
|
|
388
388
|
n.push(
|
|
389
|
-
e.on("connection", (
|
|
390
|
-
t.connection =
|
|
389
|
+
e.on("connection", (m) => {
|
|
390
|
+
t.connection = m;
|
|
391
391
|
})
|
|
392
392
|
), n.push(
|
|
393
|
-
e.on("message", (
|
|
394
|
-
const
|
|
395
|
-
!
|
|
393
|
+
e.on("message", (m) => {
|
|
394
|
+
const h = m == null ? void 0 : m.conversation_id, _ = m == null ? void 0 : m.message;
|
|
395
|
+
!h || !(_ != null && _.id) || (V(h, _), _.client_msg_id && delete t.streamingByMsgId[_.client_msg_id], se(h, _.created_at));
|
|
396
396
|
})
|
|
397
397
|
), n.push(
|
|
398
|
-
e.on("message_stream", (
|
|
399
|
-
const
|
|
400
|
-
!
|
|
398
|
+
e.on("message_stream", (m) => {
|
|
399
|
+
const h = m == null ? void 0 : m.message_id, _ = m == null ? void 0 : m.token;
|
|
400
|
+
!h || typeof _ != "string" || (t.streamingByMsgId[h] = (t.streamingByMsgId[h] || "") + _);
|
|
401
401
|
})
|
|
402
402
|
), n.push(
|
|
403
|
-
e.on("conversation_updated", (
|
|
404
|
-
const
|
|
405
|
-
if (!
|
|
406
|
-
const d = t.conversations.findIndex((f) => f.id ===
|
|
403
|
+
e.on("conversation_updated", (m) => {
|
|
404
|
+
const h = m == null ? void 0 : m.conversation_id, _ = m == null ? void 0 : m.changes;
|
|
405
|
+
if (!h || !_) return;
|
|
406
|
+
const d = t.conversations.findIndex((f) => f.id === h);
|
|
407
407
|
d !== -1 && (t.conversations[d] = {
|
|
408
408
|
...t.conversations[d],
|
|
409
409
|
..._
|
|
410
410
|
});
|
|
411
411
|
})
|
|
412
412
|
), n.push(
|
|
413
|
-
e.on("config_updated", (
|
|
414
|
-
|
|
413
|
+
e.on("config_updated", (m) => {
|
|
414
|
+
m != null && m.config && (t.config = m.config);
|
|
415
415
|
})
|
|
416
416
|
), n.push(
|
|
417
|
-
e.on("action_status", (
|
|
418
|
-
const
|
|
419
|
-
if (!
|
|
420
|
-
const f = t.runningActionsByConv[
|
|
421
|
-
|
|
417
|
+
e.on("action_status", (m) => {
|
|
418
|
+
const h = m == null ? void 0 : m.conversation_id, _ = m == null ? void 0 : m.action_id, d = m == null ? void 0 : m.action_name;
|
|
419
|
+
if (!h || !_) return;
|
|
420
|
+
const f = t.runningActionsByConv[h] || {};
|
|
421
|
+
m.state === "running" ? (f[_] = d || _, t.runningActionsByConv[h] = { ...f }) : m.state === "done" && (delete f[_], t.runningActionsByConv[h] = { ...f });
|
|
422
422
|
})
|
|
423
423
|
), n.push(
|
|
424
|
-
e.on("activity", (
|
|
425
|
-
Array.isArray(
|
|
424
|
+
e.on("activity", (m) => {
|
|
425
|
+
Array.isArray(m == null ? void 0 : m.conversations) && (t.conversations = m.conversations);
|
|
426
426
|
})
|
|
427
427
|
);
|
|
428
|
-
async function i(
|
|
428
|
+
async function i(m) {
|
|
429
429
|
try {
|
|
430
|
-
const
|
|
430
|
+
const h = new Promise(
|
|
431
431
|
(d, f) => setTimeout(
|
|
432
432
|
() => f(
|
|
433
433
|
new Error(
|
|
@@ -437,61 +437,61 @@ function Xe(e) {
|
|
|
437
437
|
15e3
|
|
438
438
|
)
|
|
439
439
|
), _ = await Promise.race([
|
|
440
|
-
e.start(
|
|
441
|
-
|
|
440
|
+
e.start(m),
|
|
441
|
+
h
|
|
442
442
|
]);
|
|
443
443
|
t.config = _.config, t.customer = _.customer, t.conversations = await Promise.race([
|
|
444
444
|
e.listConversations(),
|
|
445
|
-
|
|
445
|
+
h
|
|
446
446
|
]), t.ready = !0;
|
|
447
|
-
} catch (
|
|
448
|
-
console.error("[store] start failed",
|
|
447
|
+
} catch (h) {
|
|
448
|
+
console.error("[store] start failed", h), t.error = (h == null ? void 0 : h.message) || String(h);
|
|
449
449
|
}
|
|
450
450
|
}
|
|
451
451
|
function r() {
|
|
452
|
-
for (const
|
|
452
|
+
for (const m of n)
|
|
453
453
|
try {
|
|
454
|
-
|
|
454
|
+
m();
|
|
455
455
|
} catch {
|
|
456
456
|
}
|
|
457
457
|
e.stop();
|
|
458
458
|
}
|
|
459
|
-
async function s(
|
|
460
|
-
const
|
|
461
|
-
if (!
|
|
459
|
+
async function s(m) {
|
|
460
|
+
const h = he(m);
|
|
461
|
+
if (!h) return t.customer;
|
|
462
462
|
try {
|
|
463
|
-
const _ = await e.patchCustomer(
|
|
463
|
+
const _ = await e.patchCustomer(h);
|
|
464
464
|
_ && (t.customer = _);
|
|
465
465
|
} catch (_) {
|
|
466
466
|
console.error("[store] applyCustomer failed", _);
|
|
467
467
|
}
|
|
468
468
|
return t.customer;
|
|
469
469
|
}
|
|
470
|
-
async function a(
|
|
471
|
-
const
|
|
472
|
-
return _ === -1 ? t.conversations = [
|
|
470
|
+
async function a(m = {}) {
|
|
471
|
+
const h = await e.createConversation(m), _ = t.conversations.findIndex((d) => d.id === h.id);
|
|
472
|
+
return _ === -1 ? t.conversations = [h, ...t.conversations] : t.conversations[_] = h, h;
|
|
473
473
|
}
|
|
474
474
|
const l = 50;
|
|
475
|
-
async function p(
|
|
476
|
-
const
|
|
477
|
-
if (!(
|
|
478
|
-
w(
|
|
475
|
+
async function p(m) {
|
|
476
|
+
const h = t.paginationByConv[m];
|
|
477
|
+
if (!(h != null && h.loaded || h != null && h.loading)) {
|
|
478
|
+
w(m, { nextCursor: null, loading: !0, loaded: !1 });
|
|
479
479
|
try {
|
|
480
|
-
const _ = await e.listMessages(
|
|
480
|
+
const _ = await e.listMessages(m, {
|
|
481
481
|
limit: l
|
|
482
|
-
}), d = (_ == null ? void 0 : _.messages) ?? [], f = t.messagesByConv[
|
|
482
|
+
}), d = (_ == null ? void 0 : _.messages) ?? [], f = t.messagesByConv[m] || [], g = /* @__PURE__ */ new Set();
|
|
483
483
|
for (const C of d)
|
|
484
484
|
(C == null ? void 0 : C.id) != null && g.add(`id:${String(C.id)}`), C != null && C.client_msg_id && g.add(`c:${C.client_msg_id}`);
|
|
485
485
|
const b = f.filter((C) => !((C == null ? void 0 : C.id) != null && g.has(`id:${String(C.id)}`) || C != null && C.client_msg_id && g.has(`c:${C.client_msg_id}`)));
|
|
486
|
-
t.messagesByConv[
|
|
486
|
+
t.messagesByConv[m] = [...d, ...b].sort(
|
|
487
487
|
ce
|
|
488
|
-
), w(
|
|
488
|
+
), w(m, {
|
|
489
489
|
nextCursor: (_ == null ? void 0 : _.next_cursor) ?? null,
|
|
490
490
|
loading: !1,
|
|
491
491
|
loaded: !0
|
|
492
492
|
});
|
|
493
493
|
} catch (_) {
|
|
494
|
-
console.error("[store] openConversation failed", _), w(
|
|
494
|
+
console.error("[store] openConversation failed", _), w(m, {
|
|
495
495
|
nextCursor: null,
|
|
496
496
|
loading: !1,
|
|
497
497
|
loaded: !1
|
|
@@ -499,67 +499,67 @@ function Xe(e) {
|
|
|
499
499
|
}
|
|
500
500
|
}
|
|
501
501
|
}
|
|
502
|
-
async function k(
|
|
502
|
+
async function k(m) {
|
|
503
503
|
var f;
|
|
504
|
-
const
|
|
505
|
-
if (!
|
|
506
|
-
const d = (f = (t.messagesByConv[
|
|
504
|
+
const h = t.paginationByConv[m];
|
|
505
|
+
if (!h || h.loading || !h.nextCursor) return;
|
|
506
|
+
const d = (f = (t.messagesByConv[m] || []).find((g) => g == null ? void 0 : g.created_at)) == null ? void 0 : f.created_at;
|
|
507
507
|
if (d) {
|
|
508
|
-
w(
|
|
508
|
+
w(m, { ...h, loading: !0 });
|
|
509
509
|
try {
|
|
510
|
-
const g = await e.listMessages(
|
|
510
|
+
const g = await e.listMessages(m, {
|
|
511
511
|
before: d,
|
|
512
512
|
limit: l
|
|
513
|
-
}), b = (g == null ? void 0 : g.messages) ?? [], C = t.messagesByConv[
|
|
513
|
+
}), b = (g == null ? void 0 : g.messages) ?? [], C = t.messagesByConv[m] || [], M = /* @__PURE__ */ new Set();
|
|
514
514
|
for (const x of C)
|
|
515
515
|
(x == null ? void 0 : x.id) != null && M.add(`id:${String(x.id)}`), x != null && x.client_msg_id && M.add(`c:${x.client_msg_id}`);
|
|
516
516
|
const L = b.filter((x) => !((x == null ? void 0 : x.id) != null && M.has(`id:${String(x.id)}`) || x != null && x.client_msg_id && M.has(`c:${x.client_msg_id}`)));
|
|
517
|
-
t.messagesByConv[
|
|
517
|
+
t.messagesByConv[m] = [...L, ...C], w(m, {
|
|
518
518
|
nextCursor: (g == null ? void 0 : g.next_cursor) ?? null,
|
|
519
519
|
loading: !1,
|
|
520
520
|
loaded: !0
|
|
521
521
|
});
|
|
522
522
|
} catch (g) {
|
|
523
|
-
console.error("[store] loadMore failed", g), w(
|
|
523
|
+
console.error("[store] loadMore failed", g), w(m, { ...h, loading: !1 });
|
|
524
524
|
}
|
|
525
525
|
}
|
|
526
526
|
}
|
|
527
|
-
function w(
|
|
528
|
-
t.paginationByConv = { ...t.paginationByConv, [
|
|
527
|
+
function w(m, h) {
|
|
528
|
+
t.paginationByConv = { ...t.paginationByConv, [m]: h };
|
|
529
529
|
}
|
|
530
|
-
async function T(
|
|
531
|
-
const _ = await e.patchConversation(
|
|
530
|
+
async function T(m, h) {
|
|
531
|
+
const _ = await e.patchConversation(m, h), d = t.conversations.findIndex((f) => f.id === m);
|
|
532
532
|
d !== -1 && (t.conversations[d] = _);
|
|
533
533
|
}
|
|
534
|
-
async function B(
|
|
535
|
-
if (!
|
|
536
|
-
const
|
|
534
|
+
async function B(m) {
|
|
535
|
+
if (!m) return [];
|
|
536
|
+
const h = t.messagesByConv[m] || [];
|
|
537
537
|
let _ = "";
|
|
538
|
-
for (const d of
|
|
538
|
+
for (const d of h)
|
|
539
539
|
d != null && d.created_at && d.created_at > _ && (_ = d.created_at);
|
|
540
540
|
try {
|
|
541
541
|
const d = await e.listMessages(
|
|
542
|
-
|
|
542
|
+
m,
|
|
543
543
|
_ ? { since: _ } : {}
|
|
544
544
|
), f = (d == null ? void 0 : d.messages) || [];
|
|
545
545
|
if (!f.length) return [];
|
|
546
546
|
const g = /* @__PURE__ */ new Set(), b = /* @__PURE__ */ new Set();
|
|
547
|
-
for (const M of
|
|
547
|
+
for (const M of h)
|
|
548
548
|
(M == null ? void 0 : M.id) != null && g.add(String(M.id)), M != null && M.client_msg_id && b.add(M.client_msg_id);
|
|
549
549
|
const C = [];
|
|
550
550
|
for (const M of f) {
|
|
551
551
|
const L = (M == null ? void 0 : M.id) != null && g.has(String(M.id)) || (M == null ? void 0 : M.client_msg_id) && b.has(M.client_msg_id);
|
|
552
|
-
V(
|
|
552
|
+
V(m, M), L || C.push(M);
|
|
553
553
|
}
|
|
554
554
|
return C;
|
|
555
555
|
} catch (d) {
|
|
556
556
|
return console.error("[store] fetchSinceLast failed", d), [];
|
|
557
557
|
}
|
|
558
558
|
}
|
|
559
|
-
async function A(
|
|
560
|
-
if (!(!
|
|
559
|
+
async function A(m, h) {
|
|
560
|
+
if (!(!m || h == null))
|
|
561
561
|
try {
|
|
562
|
-
const _ = await e.markConversationRead(
|
|
562
|
+
const _ = await e.markConversationRead(m, h), d = (_ == null ? void 0 : _.last_read_message_id) ?? h, f = t.conversations.findIndex((g) => (g == null ? void 0 : g.id) === m);
|
|
563
563
|
f !== -1 && (t.conversations[f] = {
|
|
564
564
|
...t.conversations[f],
|
|
565
565
|
last_read_message_id: d
|
|
@@ -568,14 +568,14 @@ function Xe(e) {
|
|
|
568
568
|
console.error("[store] markConversationRead failed", _);
|
|
569
569
|
}
|
|
570
570
|
}
|
|
571
|
-
async function H(
|
|
571
|
+
async function H(m, h, { attachments: _, metadata: d } = {}) {
|
|
572
572
|
var L;
|
|
573
|
-
const f = (
|
|
574
|
-
if (!
|
|
575
|
-
const b = Qe(), C = de(
|
|
573
|
+
const f = (h || "").trim(), g = Array.isArray(_) && _.length > 0;
|
|
574
|
+
if (!m || !f && !g) return;
|
|
575
|
+
const b = Qe(), C = de(m), M = {
|
|
576
576
|
id: b,
|
|
577
577
|
client_msg_id: b,
|
|
578
|
-
conversation_id:
|
|
578
|
+
conversation_id: m,
|
|
579
579
|
type: "content",
|
|
580
580
|
text_md: f,
|
|
581
581
|
author: {
|
|
@@ -588,9 +588,9 @@ function Xe(e) {
|
|
|
588
588
|
...g ? { payload: { type: "content", attachments: _ } } : {},
|
|
589
589
|
...d && typeof d == "object" ? { metadata: d } : {}
|
|
590
590
|
};
|
|
591
|
-
V(
|
|
591
|
+
V(m, M);
|
|
592
592
|
try {
|
|
593
|
-
await e.postMessage(
|
|
593
|
+
await e.postMessage(m, {
|
|
594
594
|
client_msg_id: b,
|
|
595
595
|
text_md: f,
|
|
596
596
|
created_at: C,
|
|
@@ -598,32 +598,32 @@ function Xe(e) {
|
|
|
598
598
|
...d && typeof d == "object" ? { metadata: d } : {}
|
|
599
599
|
});
|
|
600
600
|
} catch (x) {
|
|
601
|
-
console.error("[store] send failed", x), J(
|
|
601
|
+
console.error("[store] send failed", x), J(m, b, {
|
|
602
602
|
_failed: !0,
|
|
603
603
|
_pending: !1
|
|
604
604
|
});
|
|
605
605
|
}
|
|
606
606
|
}
|
|
607
|
-
async function S(
|
|
608
|
-
|
|
607
|
+
async function S(m, h, _) {
|
|
608
|
+
m != null && (t.awaitingCallback[m] = !0);
|
|
609
609
|
try {
|
|
610
|
-
await e.postCallback(
|
|
610
|
+
await e.postCallback(m, h, _);
|
|
611
611
|
} catch (d) {
|
|
612
|
-
console.error("[store] callback failed", d),
|
|
612
|
+
console.error("[store] callback failed", d), m != null && delete t.awaitingCallback[m];
|
|
613
613
|
}
|
|
614
614
|
}
|
|
615
615
|
const U = /* @__PURE__ */ new Map();
|
|
616
|
-
async function I(
|
|
617
|
-
if (!
|
|
618
|
-
const
|
|
619
|
-
if (
|
|
620
|
-
const _ =
|
|
621
|
-
if (!_ || _ - Date.now() > 6e4) return
|
|
616
|
+
async function I(m) {
|
|
617
|
+
if (!m) return null;
|
|
618
|
+
const h = U.get(m);
|
|
619
|
+
if (h != null && h.url) {
|
|
620
|
+
const _ = h.expires_at ? Date.parse(h.expires_at) : 0;
|
|
621
|
+
if (!_ || _ - Date.now() > 6e4) return h.url;
|
|
622
622
|
}
|
|
623
623
|
try {
|
|
624
|
-
const _ = await e.signAttachment(
|
|
624
|
+
const _ = await e.signAttachment(m);
|
|
625
625
|
if (_ != null && _.signed_url)
|
|
626
|
-
return U.set(
|
|
626
|
+
return U.set(m, {
|
|
627
627
|
url: _.signed_url,
|
|
628
628
|
expires_at: _.expires_at
|
|
629
629
|
}), _.signed_url;
|
|
@@ -632,32 +632,32 @@ function Xe(e) {
|
|
|
632
632
|
}
|
|
633
633
|
return null;
|
|
634
634
|
}
|
|
635
|
-
async function q(
|
|
636
|
-
const d = t.conversations.find((b) => b.id ===
|
|
635
|
+
async function q(m, { rating: h, comment: _ } = {}) {
|
|
636
|
+
const d = t.conversations.find((b) => b.id === m), g = {
|
|
637
637
|
...(d == null ? void 0 : d.metadata) || {},
|
|
638
638
|
feedback: {
|
|
639
|
-
rating:
|
|
639
|
+
rating: h,
|
|
640
640
|
comment: _ || null,
|
|
641
641
|
submitted_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
642
642
|
}
|
|
643
643
|
};
|
|
644
|
-
await T(
|
|
644
|
+
await T(m, { metadata: g });
|
|
645
645
|
}
|
|
646
|
-
function Y(
|
|
646
|
+
function Y(m) {
|
|
647
647
|
var _, d;
|
|
648
|
-
const
|
|
649
|
-
for (let f =
|
|
650
|
-
const g =
|
|
648
|
+
const h = t.messagesByConv[m] || [];
|
|
649
|
+
for (let f = h.length - 1; f >= 0; f--) {
|
|
650
|
+
const g = h[f];
|
|
651
651
|
if ((g == null ? void 0 : g.type) === "action" && ((_ = g == null ? void 0 : g.payload) == null ? void 0 : _.type) === "action" && ((d = g == null ? void 0 : g.payload) == null ? void 0 : d.state) === "pending" && Array.isArray(g == null ? void 0 : g.callbacks) && g.callbacks.length > 0 && !t.awaitingCallback[g.id])
|
|
652
652
|
return g;
|
|
653
653
|
}
|
|
654
654
|
return null;
|
|
655
655
|
}
|
|
656
|
-
function Z(
|
|
656
|
+
function Z(m) {
|
|
657
657
|
var _, d, f;
|
|
658
|
-
const
|
|
659
|
-
for (let g =
|
|
660
|
-
const b =
|
|
658
|
+
const h = t.messagesByConv[m] || [];
|
|
659
|
+
for (let g = h.length - 1; g >= 0; g--) {
|
|
660
|
+
const b = h[g];
|
|
661
661
|
if (((_ = b == null ? void 0 : b.author) == null ? void 0 : _.type) === "user" || (b == null ? void 0 : b.type) === "action" && ((d = b == null ? void 0 : b.payload) == null ? void 0 : d.state) === "pending")
|
|
662
662
|
return null;
|
|
663
663
|
const C = (f = b == null ? void 0 : b.metadata) == null ? void 0 : f.form;
|
|
@@ -666,19 +666,19 @@ function Xe(e) {
|
|
|
666
666
|
}
|
|
667
667
|
return null;
|
|
668
668
|
}
|
|
669
|
-
function ee(
|
|
670
|
-
const
|
|
671
|
-
if (!
|
|
672
|
-
const _ = Object.keys(
|
|
669
|
+
function ee(m) {
|
|
670
|
+
const h = t.runningActionsByConv[m];
|
|
671
|
+
if (!h) return null;
|
|
672
|
+
const _ = Object.keys(h);
|
|
673
673
|
if (_.length === 0) return null;
|
|
674
674
|
const d = _[0];
|
|
675
|
-
return { id: d, payload: { name:
|
|
675
|
+
return { id: d, payload: { name: h[d] } };
|
|
676
676
|
}
|
|
677
|
-
function te(
|
|
677
|
+
function te(m) {
|
|
678
678
|
var _, d, f, g;
|
|
679
|
-
const
|
|
680
|
-
for (let b =
|
|
681
|
-
const C =
|
|
679
|
+
const h = t.messagesByConv[m] || [];
|
|
680
|
+
for (let b = h.length - 1; b >= 0; b--) {
|
|
681
|
+
const C = h[b];
|
|
682
682
|
if (((_ = C == null ? void 0 : C.author) == null ? void 0 : _.type) === "user") return [];
|
|
683
683
|
if ((C == null ? void 0 : C.type) === "action" && ((d = C == null ? void 0 : C.payload) == null ? void 0 : d.state) === "pending")
|
|
684
684
|
return [];
|
|
@@ -700,57 +700,57 @@ function Xe(e) {
|
|
|
700
700
|
}
|
|
701
701
|
return [];
|
|
702
702
|
}
|
|
703
|
-
function V(
|
|
703
|
+
function V(m, h) {
|
|
704
704
|
var g;
|
|
705
|
-
const _ = t.messagesByConv[
|
|
705
|
+
const _ = t.messagesByConv[m] || [];
|
|
706
706
|
let d = -1;
|
|
707
|
-
|
|
708
|
-
(b) => (b == null ? void 0 : b.client_msg_id) && b.client_msg_id ===
|
|
709
|
-
)), d === -1 && (
|
|
707
|
+
h != null && h.client_msg_id && (d = _.findIndex(
|
|
708
|
+
(b) => (b == null ? void 0 : b.client_msg_id) && b.client_msg_id === h.client_msg_id
|
|
709
|
+
)), d === -1 && (h == null ? void 0 : h.id) !== void 0 && (h == null ? void 0 : h.id) !== null && (d = _.findIndex((b) => ne(b == null ? void 0 : b.id, h.id)));
|
|
710
710
|
let f;
|
|
711
|
-
d === -1 ? f = [..._,
|
|
711
|
+
d === -1 ? f = [..._, h].sort(ce) : (f = _.slice(), f[d] = {
|
|
712
712
|
..._[d],
|
|
713
|
-
...
|
|
713
|
+
...h,
|
|
714
714
|
_pending: !1,
|
|
715
715
|
_failed: !1
|
|
716
|
-
}), t.messagesByConv[
|
|
716
|
+
}), t.messagesByConv[m] = f, (h == null ? void 0 : h.type) === "action" && ((g = h == null ? void 0 : h.payload) != null && g.state) && h.payload.state !== "pending" && (h == null ? void 0 : h.id) != null && t.awaitingCallback[h.id] && delete t.awaitingCallback[h.id];
|
|
717
717
|
}
|
|
718
|
-
function ne(
|
|
719
|
-
return
|
|
718
|
+
function ne(m, h) {
|
|
719
|
+
return m === h ? !0 : m == null || h == null ? !1 : String(m) === String(h);
|
|
720
720
|
}
|
|
721
|
-
function J(
|
|
722
|
-
const d = t.messagesByConv[
|
|
721
|
+
function J(m, h, _) {
|
|
722
|
+
const d = t.messagesByConv[m];
|
|
723
723
|
if (!d) return;
|
|
724
|
-
const f = d.findIndex((b) => b.id ===
|
|
724
|
+
const f = d.findIndex((b) => b.id === h);
|
|
725
725
|
if (f === -1) return;
|
|
726
726
|
const g = d.slice();
|
|
727
|
-
g[f] = { ...d[f], ..._ }, t.messagesByConv[
|
|
727
|
+
g[f] = { ...d[f], ..._ }, t.messagesByConv[m] = g;
|
|
728
728
|
}
|
|
729
|
-
function se(
|
|
730
|
-
const _ = t.conversations.findIndex((f) => f.id ===
|
|
729
|
+
function se(m, h) {
|
|
730
|
+
const _ = t.conversations.findIndex((f) => f.id === m);
|
|
731
731
|
if (_ === -1) return;
|
|
732
732
|
const d = t.conversations[_];
|
|
733
|
-
if (
|
|
733
|
+
if (h && (!d.last_message_at || h > d.last_message_at)) {
|
|
734
734
|
const f = t.conversations.slice();
|
|
735
|
-
f[_] = { ...d, last_message_at:
|
|
735
|
+
f[_] = { ...d, last_message_at: h }, f.sort(
|
|
736
736
|
(g, b) => (b.last_message_at || "").localeCompare(g.last_message_at || "")
|
|
737
737
|
), t.conversations = f;
|
|
738
738
|
}
|
|
739
739
|
}
|
|
740
|
-
function ce(
|
|
741
|
-
return (
|
|
740
|
+
function ce(m, h) {
|
|
741
|
+
return (m.created_at || "").localeCompare(h.created_at || "");
|
|
742
742
|
}
|
|
743
|
-
function
|
|
744
|
-
if (!
|
|
745
|
-
const
|
|
746
|
-
for (const [d, f] of Object.entries(
|
|
747
|
-
f !== void 0 && (d === "name" || d === "email" || d === "language" ? f != null && String(f).trim() !== "" && (
|
|
748
|
-
return Object.keys(_).length && (
|
|
743
|
+
function he(m) {
|
|
744
|
+
if (!m || typeof m != "object") return null;
|
|
745
|
+
const h = {}, _ = {};
|
|
746
|
+
for (const [d, f] of Object.entries(m))
|
|
747
|
+
f !== void 0 && (d === "name" || d === "email" || d === "language" ? f != null && String(f).trim() !== "" && (h[d] = f) : (d === "values" || d === "metadata") && f && typeof f == "object" ? Object.assign(_, f) : _[d] = f);
|
|
748
|
+
return Object.keys(_).length && (h.values = _), Object.keys(h).length ? h : null;
|
|
749
749
|
}
|
|
750
|
-
function de(
|
|
751
|
-
const
|
|
750
|
+
function de(m) {
|
|
751
|
+
const h = t.messagesByConv[m] || [];
|
|
752
752
|
let _ = "";
|
|
753
|
-
for (const g of
|
|
753
|
+
for (const g of h)
|
|
754
754
|
g != null && g.created_at && g.created_at > _ && (_ = g.created_at);
|
|
755
755
|
const d = (/* @__PURE__ */ new Date()).toISOString();
|
|
756
756
|
return !_ || d > _ ? d : new Date(Date.parse(_) + 1).toISOString();
|
|
@@ -1386,7 +1386,7 @@ const lt = {
|
|
|
1386
1386
|
}
|
|
1387
1387
|
}
|
|
1388
1388
|
}
|
|
1389
|
-
}, ct = 450, dt = 50, ut = 900,
|
|
1389
|
+
}, ct = 450, dt = 50, ut = 900, mt = 12e3, ht = 300, ft = {
|
|
1390
1390
|
data() {
|
|
1391
1391
|
return {
|
|
1392
1392
|
// Map: messageId → ms timestamp once shown.
|
|
@@ -1495,11 +1495,11 @@ const lt = {
|
|
|
1495
1495
|
// bounded by MIN/MAX_TYPING_MS.
|
|
1496
1496
|
scheduleReveal(e, t) {
|
|
1497
1497
|
const n = Date.now(), i = ((e == null ? void 0 : e.text_md) || "").length, r = Math.min(
|
|
1498
|
-
|
|
1498
|
+
mt,
|
|
1499
1499
|
Math.max(ut, i * dt)
|
|
1500
1500
|
), a = Math.max(
|
|
1501
1501
|
n + ct,
|
|
1502
|
-
this.nextRevealAt +
|
|
1502
|
+
this.nextRevealAt + ht
|
|
1503
1503
|
) + r;
|
|
1504
1504
|
this.nextRevealAt = a;
|
|
1505
1505
|
const l = Math.max(0, a - n), p = e.id, k = setTimeout(() => {
|
|
@@ -2140,7 +2140,7 @@ function un(e) {
|
|
|
2140
2140
|
const t = String(e).replace(/\[([^\]\n]+)\]\([^)\s]+\)/g, "$1");
|
|
2141
2141
|
return ie(Ue(t));
|
|
2142
2142
|
}
|
|
2143
|
-
function
|
|
2143
|
+
function mn(e) {
|
|
2144
2144
|
if (!e) return "";
|
|
2145
2145
|
const t = Ue(e).split(`
|
|
2146
2146
|
`), n = [];
|
|
@@ -2215,7 +2215,7 @@ const Le = {
|
|
|
2215
2215
|
status: "M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z",
|
|
2216
2216
|
chat: "M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z",
|
|
2217
2217
|
link: "M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"
|
|
2218
|
-
},
|
|
2218
|
+
}, hn = {
|
|
2219
2219
|
name: "WmOnboarding",
|
|
2220
2220
|
components: { AIAvatar: le, HumanAvatar: Ce },
|
|
2221
2221
|
inject: {
|
|
@@ -2267,10 +2267,11 @@ const Le = {
|
|
|
2267
2267
|
renderPreview(e) {
|
|
2268
2268
|
return un(e);
|
|
2269
2269
|
},
|
|
2270
|
-
//
|
|
2271
|
-
// sender's
|
|
2272
|
-
//
|
|
2273
|
-
//
|
|
2270
|
+
// Avatar resolution for a thread row, in priority order :
|
|
2271
|
+
// 1. last sender's `avatar_url` (image)
|
|
2272
|
+
// 2. last sender's `name` (initials on a deterministic colour)
|
|
2273
|
+
// 3. widget's `default_icon_url`, with a muted treatment when the
|
|
2274
|
+
// thread has no unread activity (cf. avatarWrapperClass).
|
|
2274
2275
|
avatarComponent(e) {
|
|
2275
2276
|
var t;
|
|
2276
2277
|
return ((t = e == null ? void 0 : e.author) == null ? void 0 : t.type) === "agent_human" ? "HumanAvatar" : "AIAvatar";
|
|
@@ -2281,12 +2282,29 @@ const Le = {
|
|
|
2281
2282
|
size: 40,
|
|
2282
2283
|
name: t.name || "",
|
|
2283
2284
|
avatarUrl: t.avatar_url || null
|
|
2285
|
+
} : t != null && t.avatar_url || t != null && t.name ? {
|
|
2286
|
+
size: 40,
|
|
2287
|
+
name: t.name || "",
|
|
2288
|
+
imageUrl: t.avatar_url || null
|
|
2284
2289
|
} : {
|
|
2285
2290
|
size: 40,
|
|
2286
|
-
name:
|
|
2287
|
-
imageUrl:
|
|
2291
|
+
name: "",
|
|
2292
|
+
imageUrl: this.defaultIconUrl
|
|
2288
2293
|
};
|
|
2289
2294
|
},
|
|
2295
|
+
// True when neither avatar_url nor name is known for the last
|
|
2296
|
+
// sender — we'll display the widget's default icon. Drives the
|
|
2297
|
+
// muted/inverted wrapper class so read default-icon rows recede.
|
|
2298
|
+
isDefaultAvatar(e) {
|
|
2299
|
+
const t = e == null ? void 0 : e.author;
|
|
2300
|
+
return !(t != null && t.avatar_url || t != null && t.name);
|
|
2301
|
+
},
|
|
2302
|
+
// CSS class applied to the avatar wrapper. The default-icon
|
|
2303
|
+
// fallback gets muted when the thread has no unread message, so
|
|
2304
|
+
// caught-up rows visually recede next to the active ones.
|
|
2305
|
+
avatarWrapperClass(e) {
|
|
2306
|
+
return this.isDefaultAvatar(e) && !(e != null && e.unread) ? "wm-onb__avatar--muted" : null;
|
|
2307
|
+
},
|
|
2290
2308
|
formatTs(e) {
|
|
2291
2309
|
if (!e) return "";
|
|
2292
2310
|
const t = new Date(e);
|
|
@@ -2326,20 +2344,20 @@ const Le = {
|
|
|
2326
2344
|
}, In = {
|
|
2327
2345
|
key: 1,
|
|
2328
2346
|
class: "wm-onb__section wm-onb__section--card"
|
|
2329
|
-
}, Ln = { class: "wm-onb__section-title" }, En = { class: "wm-onb__alertList" }, Bn = ["onClick"], Rn =
|
|
2347
|
+
}, Ln = { class: "wm-onb__section-title" }, En = { class: "wm-onb__alertList" }, Bn = ["onClick"], Rn = ["aria-label"], Nn = { class: "wm-onb__alert-body" }, Pn = { class: "wm-onb__alert-title" }, Un = ["innerHTML"], Fn = { class: "wm-onb__alert-meta" }, Dn = {
|
|
2330
2348
|
key: 0,
|
|
2331
2349
|
class: "wm-onb__alert-time"
|
|
2332
|
-
},
|
|
2350
|
+
}, jn = { class: "wm-onb__alert-resume" }, Hn = {
|
|
2333
2351
|
key: 2,
|
|
2334
2352
|
class: "wm-onb__section wm-onb__section--card"
|
|
2335
|
-
},
|
|
2353
|
+
}, zn = { class: "wm-onb__section-title" }, qn = { class: "wm-onb__search" }, Kn = ["placeholder", "aria-label"], Vn = { class: "wm-onb__list" }, $n = ["onClick"], Wn = ["aria-label"], Gn = { class: "wm-onb__thread-body" }, Yn = { class: "wm-onb__thread-title" }, Jn = ["innerHTML"], Qn = { class: "wm-onb__thread-meta" }, Xn = {
|
|
2336
2354
|
key: 0,
|
|
2337
2355
|
class: "wm-onb__thread-time"
|
|
2338
|
-
},
|
|
2356
|
+
}, Zn = {
|
|
2339
2357
|
key: 0,
|
|
2340
2358
|
class: "wm-onb__empty"
|
|
2341
2359
|
};
|
|
2342
|
-
function
|
|
2360
|
+
function es(e, t, n, i, r, s) {
|
|
2343
2361
|
const a = R("AIAvatar");
|
|
2344
2362
|
return c(), u("div", fn, [
|
|
2345
2363
|
o("div", _n, [
|
|
@@ -2445,30 +2463,32 @@ function ns(e, t, n, i, r, s) {
|
|
|
2445
2463
|
class: "wm-onb__alert",
|
|
2446
2464
|
onClick: (p) => e.$emit("resume", l)
|
|
2447
2465
|
}, [
|
|
2448
|
-
o("span",
|
|
2466
|
+
o("span", {
|
|
2467
|
+
class: O(["wm-onb__alert-avatar", s.avatarWrapperClass(l)])
|
|
2468
|
+
}, [
|
|
2449
2469
|
(c(), P(pe(s.avatarComponent(l)), Se({ ref_for: !0 }, s.avatarProps(l)), null, 16)),
|
|
2450
2470
|
o("span", {
|
|
2451
2471
|
class: "wm-onb__alert-dot",
|
|
2452
2472
|
"aria-label": s.t("onboarding.unread")
|
|
2453
|
-
}, null, 8,
|
|
2454
|
-
]),
|
|
2455
|
-
o("span",
|
|
2456
|
-
o("span",
|
|
2473
|
+
}, null, 8, Rn)
|
|
2474
|
+
], 2),
|
|
2475
|
+
o("span", Nn, [
|
|
2476
|
+
o("span", Pn, v(l.title), 1),
|
|
2457
2477
|
o("span", {
|
|
2458
2478
|
class: "wm-onb__alert-preview",
|
|
2459
2479
|
innerHTML: s.renderPreview(l.preview)
|
|
2460
|
-
}, null, 8,
|
|
2480
|
+
}, null, 8, Un)
|
|
2461
2481
|
]),
|
|
2462
|
-
o("span",
|
|
2463
|
-
s.formatTs(l._ts) ? (c(), u("span",
|
|
2464
|
-
o("span",
|
|
2482
|
+
o("span", Fn, [
|
|
2483
|
+
s.formatTs(l._ts) ? (c(), u("span", Dn, v(s.formatTs(l._ts)), 1)) : y("", !0),
|
|
2484
|
+
o("span", jn, v(s.t("onboarding.resume")), 1)
|
|
2465
2485
|
])
|
|
2466
2486
|
], 8, Bn))), 128))
|
|
2467
2487
|
])
|
|
2468
2488
|
])) : y("", !0),
|
|
2469
|
-
n.openThreads.length ? (c(), u("div",
|
|
2470
|
-
o("div",
|
|
2471
|
-
o("div",
|
|
2489
|
+
n.openThreads.length ? (c(), u("div", Hn, [
|
|
2490
|
+
o("div", zn, v(s.t("onboarding.recentConversations")), 1),
|
|
2491
|
+
o("div", qn, [
|
|
2472
2492
|
t[4] || (t[4] = o("span", { class: "wm-onb__searchIcon" }, [
|
|
2473
2493
|
o("svg", {
|
|
2474
2494
|
width: "12",
|
|
@@ -2489,34 +2509,36 @@ function ns(e, t, n, i, r, s) {
|
|
|
2489
2509
|
type: "text",
|
|
2490
2510
|
placeholder: s.t("onboarding.search"),
|
|
2491
2511
|
"aria-label": s.t("onboarding.search")
|
|
2492
|
-
}, null, 8,
|
|
2512
|
+
}, null, 8, Kn), [
|
|
2493
2513
|
[X, r.query]
|
|
2494
2514
|
])
|
|
2495
2515
|
]),
|
|
2496
|
-
o("div",
|
|
2516
|
+
o("div", Vn, [
|
|
2497
2517
|
(c(!0), u(E, null, F(s.filteredThreads, (l) => (c(), u("button", {
|
|
2498
2518
|
key: l.id,
|
|
2499
2519
|
type: "button",
|
|
2500
2520
|
class: "wm-onb__thread",
|
|
2501
2521
|
onClick: (p) => e.$emit("resume", l)
|
|
2502
2522
|
}, [
|
|
2503
|
-
o("span",
|
|
2523
|
+
o("span", {
|
|
2524
|
+
class: O(["wm-onb__thread-avatar", s.avatarWrapperClass(l)])
|
|
2525
|
+
}, [
|
|
2504
2526
|
(c(), P(pe(s.avatarComponent(l)), Se({ ref_for: !0 }, s.avatarProps(l)), null, 16)),
|
|
2505
2527
|
l.unread ? (c(), u("span", {
|
|
2506
2528
|
key: 0,
|
|
2507
2529
|
class: "wm-onb__thread-dot",
|
|
2508
2530
|
"aria-label": s.t("onboarding.unread")
|
|
2509
|
-
}, null, 8,
|
|
2510
|
-
]),
|
|
2511
|
-
o("span",
|
|
2512
|
-
o("span",
|
|
2531
|
+
}, null, 8, Wn)) : y("", !0)
|
|
2532
|
+
], 2),
|
|
2533
|
+
o("span", Gn, [
|
|
2534
|
+
o("span", Yn, v(l.title), 1),
|
|
2513
2535
|
o("span", {
|
|
2514
2536
|
class: "wm-onb__thread-preview",
|
|
2515
2537
|
innerHTML: s.renderPreview(l.preview)
|
|
2516
|
-
}, null, 8,
|
|
2538
|
+
}, null, 8, Jn)
|
|
2517
2539
|
]),
|
|
2518
|
-
o("span",
|
|
2519
|
-
s.formatTs(l._ts) ? (c(), u("span",
|
|
2540
|
+
o("span", Qn, [
|
|
2541
|
+
s.formatTs(l._ts) ? (c(), u("span", Xn, v(s.formatTs(l._ts)), 1)) : y("", !0),
|
|
2520
2542
|
t[5] || (t[5] = o("svg", {
|
|
2521
2543
|
width: "14",
|
|
2522
2544
|
height: "14",
|
|
@@ -2532,17 +2554,17 @@ function ns(e, t, n, i, r, s) {
|
|
|
2532
2554
|
o("path", { d: "M5 12h14M13 5l7 7-7 7" })
|
|
2533
2555
|
], -1))
|
|
2534
2556
|
])
|
|
2535
|
-
], 8,
|
|
2536
|
-
s.filteredThreads.length ? y("", !0) : (c(), u("div",
|
|
2557
|
+
], 8, $n))), 128)),
|
|
2558
|
+
s.filteredThreads.length ? y("", !0) : (c(), u("div", Zn, v(s.t("onboarding.noResults", { query: r.query })), 1))
|
|
2537
2559
|
])
|
|
2538
2560
|
])) : y("", !0)
|
|
2539
2561
|
]);
|
|
2540
2562
|
}
|
|
2541
|
-
const
|
|
2542
|
-
function
|
|
2563
|
+
const ts = /* @__PURE__ */ N(hn, [["render", es], ["__scopeId", "data-v-198aa077"]]);
|
|
2564
|
+
function ns(e) {
|
|
2543
2565
|
return typeof e != "string" ? "" : e.replace(/`([^`]+)`/g, "$1").replace(/\*\*([^*]+)\*\*/g, "$1").replace(new RegExp("(?<!\\*)\\*([^*]+)\\*(?!\\*)", "g"), "$1").replace(/__([^_]+)__/g, "$1").replace(/\[([^\]]+)\]\([^)]+\)/g, "$1").replace(/\s+/g, " ").trim();
|
|
2544
2566
|
}
|
|
2545
|
-
const
|
|
2567
|
+
const ss = {
|
|
2546
2568
|
name: "WmActionResult",
|
|
2547
2569
|
props: {
|
|
2548
2570
|
state: { type: String, default: "success" },
|
|
@@ -2552,13 +2574,13 @@ const is = {
|
|
|
2552
2574
|
},
|
|
2553
2575
|
computed: {
|
|
2554
2576
|
detailText() {
|
|
2555
|
-
return
|
|
2577
|
+
return ns(this.detail);
|
|
2556
2578
|
}
|
|
2557
2579
|
}
|
|
2558
|
-
},
|
|
2580
|
+
}, rs = {
|
|
2559
2581
|
class: "wm-result__icon",
|
|
2560
2582
|
"aria-hidden": "true"
|
|
2561
|
-
},
|
|
2583
|
+
}, is = {
|
|
2562
2584
|
key: 0,
|
|
2563
2585
|
width: "11",
|
|
2564
2586
|
height: "11",
|
|
@@ -2568,7 +2590,7 @@ const is = {
|
|
|
2568
2590
|
"stroke-width": "2.8",
|
|
2569
2591
|
"stroke-linecap": "round",
|
|
2570
2592
|
"stroke-linejoin": "round"
|
|
2571
|
-
},
|
|
2593
|
+
}, as = {
|
|
2572
2594
|
key: 1,
|
|
2573
2595
|
width: "11",
|
|
2574
2596
|
height: "11",
|
|
@@ -2578,7 +2600,7 @@ const is = {
|
|
|
2578
2600
|
"stroke-width": "2.6",
|
|
2579
2601
|
"stroke-linecap": "round",
|
|
2580
2602
|
"stroke-linejoin": "round"
|
|
2581
|
-
},
|
|
2603
|
+
}, os = {
|
|
2582
2604
|
key: 2,
|
|
2583
2605
|
width: "11",
|
|
2584
2606
|
height: "11",
|
|
@@ -2588,7 +2610,7 @@ const is = {
|
|
|
2588
2610
|
"stroke-width": "2.4",
|
|
2589
2611
|
"stroke-linecap": "round",
|
|
2590
2612
|
"stroke-linejoin": "round"
|
|
2591
|
-
},
|
|
2613
|
+
}, ls = {
|
|
2592
2614
|
key: 3,
|
|
2593
2615
|
width: "12",
|
|
2594
2616
|
height: "12",
|
|
@@ -2598,24 +2620,24 @@ const is = {
|
|
|
2598
2620
|
"stroke-width": "2.2",
|
|
2599
2621
|
"stroke-linecap": "round",
|
|
2600
2622
|
"stroke-linejoin": "round"
|
|
2601
|
-
},
|
|
2602
|
-
function
|
|
2623
|
+
}, cs = { class: "wm-result__body" }, ds = { class: "wm-result__label" }, us = { class: "wm-result__detail" };
|
|
2624
|
+
function ms(e, t, n, i, r, s) {
|
|
2603
2625
|
return c(), u("div", {
|
|
2604
2626
|
class: O(["wm-result", `wm-result--${n.state}`])
|
|
2605
2627
|
}, [
|
|
2606
|
-
o("span",
|
|
2607
|
-
n.state === "success" ? (c(), u("svg",
|
|
2628
|
+
o("span", rs, [
|
|
2629
|
+
n.state === "success" ? (c(), u("svg", is, [...t[0] || (t[0] = [
|
|
2608
2630
|
o("path", { d: "M20 6L9 17l-5-5" }, null, -1)
|
|
2609
|
-
])])) : n.state === "rejected" ? (c(), u("svg",
|
|
2631
|
+
])])) : n.state === "rejected" ? (c(), u("svg", as, [...t[1] || (t[1] = [
|
|
2610
2632
|
o("path", { d: "M18 6L6 18M6 6l12 12" }, null, -1)
|
|
2611
|
-
])])) : n.state === "awaiting" ? (c(), u("svg",
|
|
2633
|
+
])])) : n.state === "awaiting" ? (c(), u("svg", os, [...t[2] || (t[2] = [
|
|
2612
2634
|
o("circle", {
|
|
2613
2635
|
cx: "12",
|
|
2614
2636
|
cy: "12",
|
|
2615
2637
|
r: "10"
|
|
2616
2638
|
}, null, -1),
|
|
2617
2639
|
o("polyline", { points: "12 7 12 12 15 14" }, null, -1)
|
|
2618
|
-
])])) : (c(), u("svg",
|
|
2640
|
+
])])) : (c(), u("svg", ls, [...t[3] || (t[3] = [
|
|
2619
2641
|
o("path", { d: "M10.29 3.86L1.82 18a2 2 0 001.71 3h16.94a2 2 0 001.71-3L13.71 3.86a2 2 0 00-3.42 0z" }, null, -1),
|
|
2620
2642
|
o("line", {
|
|
2621
2643
|
x1: "12",
|
|
@@ -2631,19 +2653,19 @@ function fs(e, t, n, i, r, s) {
|
|
|
2631
2653
|
}, null, -1)
|
|
2632
2654
|
])]))
|
|
2633
2655
|
]),
|
|
2634
|
-
o("span",
|
|
2635
|
-
o("span",
|
|
2656
|
+
o("span", cs, [
|
|
2657
|
+
o("span", ds, v(n.label), 1),
|
|
2636
2658
|
s.detailText ? (c(), u(E, { key: 0 }, [
|
|
2637
2659
|
t[4] || (t[4] = o("span", {
|
|
2638
2660
|
class: "wm-result__sep",
|
|
2639
2661
|
"aria-hidden": "true"
|
|
2640
2662
|
}, " · ", -1)),
|
|
2641
|
-
o("span",
|
|
2663
|
+
o("span", us, v(s.detailText), 1)
|
|
2642
2664
|
], 64)) : y("", !0)
|
|
2643
2665
|
])
|
|
2644
2666
|
], 2);
|
|
2645
2667
|
}
|
|
2646
|
-
const
|
|
2668
|
+
const hs = /* @__PURE__ */ N(ss, [["render", ms], ["__scopeId", "data-v-7284acd0"]]), fs = {
|
|
2647
2669
|
name: "WmArtifactFormResponse",
|
|
2648
2670
|
inject: {
|
|
2649
2671
|
// Translator shared by the Messenger shell; French fallback when
|
|
@@ -2659,12 +2681,12 @@ const _s = /* @__PURE__ */ N(is, [["render", fs], ["__scopeId", "data-v-7284acd0
|
|
|
2659
2681
|
return Array.isArray((e = this.data) == null ? void 0 : e.fields) ? this.data.fields : [];
|
|
2660
2682
|
}
|
|
2661
2683
|
}
|
|
2662
|
-
},
|
|
2663
|
-
function
|
|
2664
|
-
return c(), u("div",
|
|
2665
|
-
o("div",
|
|
2666
|
-
o("div",
|
|
2667
|
-
o("span",
|
|
2684
|
+
}, _s = { class: "wm-art wm-art--formResponse" }, gs = { class: "wm-art__head" }, ps = { class: "wm-art__title" }, vs = { class: "wm-art__badge wm-art__badge--success" }, ys = { class: "wm-art__body" }, ws = { class: "wm-art__fieldLabel" };
|
|
2685
|
+
function bs(e, t, n, i, r, s) {
|
|
2686
|
+
return c(), u("div", _s, [
|
|
2687
|
+
o("div", gs, [
|
|
2688
|
+
o("div", ps, v(n.data.title || s.t("form.title")), 1),
|
|
2689
|
+
o("span", vs, [
|
|
2668
2690
|
t[0] || (t[0] = o("svg", {
|
|
2669
2691
|
width: "11",
|
|
2670
2692
|
height: "11",
|
|
@@ -2681,12 +2703,12 @@ function Cs(e, t, n, i, r, s) {
|
|
|
2681
2703
|
ye(" " + v(s.t("form.sent")), 1)
|
|
2682
2704
|
])
|
|
2683
2705
|
]),
|
|
2684
|
-
o("div",
|
|
2706
|
+
o("div", ys, [
|
|
2685
2707
|
(c(!0), u(E, null, F(s.fields, (a, l) => (c(), u("div", {
|
|
2686
2708
|
key: l,
|
|
2687
2709
|
class: "wm-art__field"
|
|
2688
2710
|
}, [
|
|
2689
|
-
o("div",
|
|
2711
|
+
o("div", ws, v(a.label), 1),
|
|
2690
2712
|
o("div", {
|
|
2691
2713
|
class: O([
|
|
2692
2714
|
"wm-art__fieldValue",
|
|
@@ -2697,7 +2719,7 @@ function Cs(e, t, n, i, r, s) {
|
|
|
2697
2719
|
])
|
|
2698
2720
|
]);
|
|
2699
2721
|
}
|
|
2700
|
-
const
|
|
2722
|
+
const ks = /* @__PURE__ */ N(fs, [["render", bs], ["__scopeId", "data-v-713aecf1"]]), Cs = {
|
|
2701
2723
|
name: "WmArtifactInfoCard",
|
|
2702
2724
|
props: {
|
|
2703
2725
|
data: { type: Object, required: !0 }
|
|
@@ -2712,32 +2734,32 @@ const As = /* @__PURE__ */ N(gs, [["render", Cs], ["__scopeId", "data-v-713aecf1
|
|
|
2712
2734
|
return !!((e = this.data) != null && e.body) || this.fields.length > 0;
|
|
2713
2735
|
}
|
|
2714
2736
|
}
|
|
2715
|
-
},
|
|
2737
|
+
}, As = { class: "wm-art wm-art--infoCard" }, Ss = {
|
|
2716
2738
|
key: 0,
|
|
2717
2739
|
class: "wm-art__image"
|
|
2718
|
-
},
|
|
2740
|
+
}, Ms = ["src", "alt"], Ts = { class: "wm-art__head" }, xs = { class: "wm-art__headMain" }, Os = { class: "wm-art__title" }, Is = {
|
|
2719
2741
|
key: 0,
|
|
2720
2742
|
class: "wm-art__subtitle"
|
|
2721
|
-
},
|
|
2743
|
+
}, Ls = {
|
|
2722
2744
|
key: 1,
|
|
2723
2745
|
class: "wm-art__body"
|
|
2724
|
-
},
|
|
2746
|
+
}, Es = {
|
|
2725
2747
|
key: 0,
|
|
2726
2748
|
class: "wm-art__text"
|
|
2727
|
-
},
|
|
2728
|
-
function
|
|
2729
|
-
return c(), u("div",
|
|
2730
|
-
n.data.image_url ? (c(), u("figure",
|
|
2749
|
+
}, Bs = { class: "wm-art__fieldLabel" };
|
|
2750
|
+
function Rs(e, t, n, i, r, s) {
|
|
2751
|
+
return c(), u("div", As, [
|
|
2752
|
+
n.data.image_url ? (c(), u("figure", Ss, [
|
|
2731
2753
|
o("img", {
|
|
2732
2754
|
src: n.data.image_url,
|
|
2733
2755
|
alt: n.data.title || "",
|
|
2734
2756
|
loading: "lazy"
|
|
2735
|
-
}, null, 8,
|
|
2757
|
+
}, null, 8, Ms)
|
|
2736
2758
|
])) : y("", !0),
|
|
2737
|
-
o("div",
|
|
2738
|
-
o("div",
|
|
2739
|
-
o("div",
|
|
2740
|
-
n.data.subtitle ? (c(), u("div",
|
|
2759
|
+
o("div", Ts, [
|
|
2760
|
+
o("div", xs, [
|
|
2761
|
+
o("div", Os, v(n.data.title), 1),
|
|
2762
|
+
n.data.subtitle ? (c(), u("div", Is, v(n.data.subtitle), 1)) : y("", !0)
|
|
2741
2763
|
]),
|
|
2742
2764
|
n.data.badge && n.data.badge.label ? (c(), u("span", {
|
|
2743
2765
|
key: 0,
|
|
@@ -2747,13 +2769,13 @@ function Ps(e, t, n, i, r, s) {
|
|
|
2747
2769
|
])
|
|
2748
2770
|
}, v(n.data.badge.label), 3)) : y("", !0)
|
|
2749
2771
|
]),
|
|
2750
|
-
s.hasBody ? (c(), u("div",
|
|
2751
|
-
n.data.body ? (c(), u("div",
|
|
2772
|
+
s.hasBody ? (c(), u("div", Ls, [
|
|
2773
|
+
n.data.body ? (c(), u("div", Es, v(n.data.body), 1)) : y("", !0),
|
|
2752
2774
|
s.fields.length ? (c(!0), u(E, { key: 1 }, F(s.fields, (a, l) => (c(), u("div", {
|
|
2753
2775
|
key: l,
|
|
2754
2776
|
class: "wm-art__field"
|
|
2755
2777
|
}, [
|
|
2756
|
-
o("div",
|
|
2778
|
+
o("div", Bs, v(a.label), 1),
|
|
2757
2779
|
o("div", {
|
|
2758
2780
|
class: O([
|
|
2759
2781
|
"wm-art__fieldValue",
|
|
@@ -2764,8 +2786,8 @@ function Ps(e, t, n, i, r, s) {
|
|
|
2764
2786
|
])) : y("", !0)
|
|
2765
2787
|
]);
|
|
2766
2788
|
}
|
|
2767
|
-
const
|
|
2768
|
-
function
|
|
2789
|
+
const Ns = /* @__PURE__ */ N(Cs, [["render", Rs], ["__scopeId", "data-v-7eae0e4a"]]);
|
|
2790
|
+
function Ps(e, t, n) {
|
|
2769
2791
|
if (!e) return "";
|
|
2770
2792
|
const i = new Date(e);
|
|
2771
2793
|
if (Number.isNaN(i.getTime())) return e;
|
|
@@ -2779,7 +2801,7 @@ function Fs(e, t, n) {
|
|
|
2779
2801
|
});
|
|
2780
2802
|
return `${r}${n}${s}`;
|
|
2781
2803
|
}
|
|
2782
|
-
const
|
|
2804
|
+
const Us = {
|
|
2783
2805
|
name: "WmArtifactTicket",
|
|
2784
2806
|
inject: {
|
|
2785
2807
|
// Translator + resolved-language getter shared by the Messenger
|
|
@@ -2797,7 +2819,7 @@ const Ds = {
|
|
|
2797
2819
|
},
|
|
2798
2820
|
formattedDate() {
|
|
2799
2821
|
var e;
|
|
2800
|
-
return
|
|
2822
|
+
return Ps(
|
|
2801
2823
|
(e = this.data) == null ? void 0 : e.created_at,
|
|
2802
2824
|
re(this.wmLocale()),
|
|
2803
2825
|
this.t("ticket.dateAt")
|
|
@@ -2825,13 +2847,13 @@ const Ds = {
|
|
|
2825
2847
|
return /high|haute|élev|elev|critic|critiq|urgent/.test(t) ? 3 : /low|basse|faible|minor/.test(t) ? 1 : 2;
|
|
2826
2848
|
}
|
|
2827
2849
|
}
|
|
2828
|
-
},
|
|
2850
|
+
}, Fs = { class: "wm-art wm-art--ticket" }, Ds = { class: "wm-art__head wm-tk__head" }, js = { class: "wm-art__title wm-tk__title" }, Hs = { class: "wm-tk__sub" }, zs = { class: "wm-tk__ref" }, qs = {
|
|
2829
2851
|
key: 0,
|
|
2830
2852
|
class: "wm-tk__text"
|
|
2831
|
-
},
|
|
2853
|
+
}, Ks = {
|
|
2832
2854
|
key: 0,
|
|
2833
2855
|
class: "wm-art__body"
|
|
2834
|
-
},
|
|
2856
|
+
}, Vs = { class: "wm-art__fieldLabel" }, $s = ["data-level"], Ws = {
|
|
2835
2857
|
key: 1,
|
|
2836
2858
|
class: "wm-tk__date",
|
|
2837
2859
|
width: "12",
|
|
@@ -2843,16 +2865,16 @@ const Ds = {
|
|
|
2843
2865
|
"stroke-linecap": "round",
|
|
2844
2866
|
"stroke-linejoin": "round",
|
|
2845
2867
|
"aria-hidden": "true"
|
|
2846
|
-
},
|
|
2868
|
+
}, Gs = {
|
|
2847
2869
|
key: 1,
|
|
2848
2870
|
class: "wm-art__footer wm-tk__footer"
|
|
2849
2871
|
};
|
|
2850
|
-
function
|
|
2851
|
-
return c(), u("div",
|
|
2852
|
-
o("div",
|
|
2853
|
-
o("div",
|
|
2854
|
-
o("div",
|
|
2855
|
-
o("div",
|
|
2872
|
+
function Ys(e, t, n, i, r, s) {
|
|
2873
|
+
return c(), u("div", Fs, [
|
|
2874
|
+
o("div", Ds, [
|
|
2875
|
+
o("div", js, v(n.data.title), 1),
|
|
2876
|
+
o("div", Hs, [
|
|
2877
|
+
o("div", zs, [
|
|
2856
2878
|
t[0] || (t[0] = o("svg", {
|
|
2857
2879
|
width: "11",
|
|
2858
2880
|
height: "11",
|
|
@@ -2883,14 +2905,14 @@ function Qs(e, t, n, i, r, s) {
|
|
|
2883
2905
|
ye(" " + v(n.data.status.label), 1)
|
|
2884
2906
|
], 2)
|
|
2885
2907
|
]),
|
|
2886
|
-
n.data.body ? (c(), u("div",
|
|
2908
|
+
n.data.body ? (c(), u("div", qs, v(n.data.body), 1)) : y("", !0)
|
|
2887
2909
|
]),
|
|
2888
|
-
s.fields.length ? (c(), u("div",
|
|
2910
|
+
s.fields.length ? (c(), u("div", Ks, [
|
|
2889
2911
|
(c(!0), u(E, null, F(s.fields, (a, l) => (c(), u("div", {
|
|
2890
2912
|
key: l,
|
|
2891
2913
|
class: "wm-art__field"
|
|
2892
2914
|
}, [
|
|
2893
|
-
o("div",
|
|
2915
|
+
o("div", Vs, v(a.label), 1),
|
|
2894
2916
|
o("div", {
|
|
2895
2917
|
class: O([
|
|
2896
2918
|
"wm-art__fieldValue",
|
|
@@ -2927,7 +2949,7 @@ function Qs(e, t, n, i, r, s) {
|
|
|
2927
2949
|
height: "9",
|
|
2928
2950
|
rx: "0.5"
|
|
2929
2951
|
}, null, -1)
|
|
2930
|
-
])], 8,
|
|
2952
|
+
])], 8, $s)) : s.isDate(a.label) ? (c(), u("svg", Ws, [...t[3] || (t[3] = [
|
|
2931
2953
|
o("rect", {
|
|
2932
2954
|
x: "3",
|
|
2933
2955
|
y: "4",
|
|
@@ -2941,7 +2963,7 @@ function Qs(e, t, n, i, r, s) {
|
|
|
2941
2963
|
], 2)
|
|
2942
2964
|
]))), 128))
|
|
2943
2965
|
])) : y("", !0),
|
|
2944
|
-
n.data.created_at ? (c(), u("div",
|
|
2966
|
+
n.data.created_at ? (c(), u("div", Gs, [
|
|
2945
2967
|
t[4] || (t[4] = o("svg", {
|
|
2946
2968
|
width: "11",
|
|
2947
2969
|
height: "11",
|
|
@@ -2966,11 +2988,11 @@ function Qs(e, t, n, i, r, s) {
|
|
|
2966
2988
|
])) : y("", !0)
|
|
2967
2989
|
]);
|
|
2968
2990
|
}
|
|
2969
|
-
const
|
|
2970
|
-
form_response:
|
|
2971
|
-
info_card:
|
|
2972
|
-
ticket:
|
|
2973
|
-
},
|
|
2991
|
+
const Js = /* @__PURE__ */ N(Us, [["render", Ys], ["__scopeId", "data-v-5f30c914"]]), Qs = {
|
|
2992
|
+
form_response: ks,
|
|
2993
|
+
info_card: Ns,
|
|
2994
|
+
ticket: Js
|
|
2995
|
+
}, Xs = {
|
|
2974
2996
|
name: "WmArtifactRenderer",
|
|
2975
2997
|
props: {
|
|
2976
2998
|
// Forme : { kind: string, data: any } (le `data` est validé
|
|
@@ -2981,17 +3003,17 @@ const Xs = /* @__PURE__ */ N(Ds, [["render", Qs], ["__scopeId", "data-v-5f30c914
|
|
|
2981
3003
|
component() {
|
|
2982
3004
|
var t;
|
|
2983
3005
|
const e = (t = this.artifact) == null ? void 0 : t.kind;
|
|
2984
|
-
return e &&
|
|
3006
|
+
return e && Qs[e] || null;
|
|
2985
3007
|
}
|
|
2986
3008
|
}
|
|
2987
3009
|
};
|
|
2988
|
-
function
|
|
3010
|
+
function Zs(e, t, n, i, r, s) {
|
|
2989
3011
|
return s.component ? (c(), P(pe(s.component), {
|
|
2990
3012
|
key: 0,
|
|
2991
3013
|
data: n.artifact.data
|
|
2992
3014
|
}, null, 8, ["data"])) : y("", !0);
|
|
2993
3015
|
}
|
|
2994
|
-
const
|
|
3016
|
+
const er = /* @__PURE__ */ N(Xs, [["render", Zs]]), tr = {
|
|
2995
3017
|
name: "WmAttachmentPreview",
|
|
2996
3018
|
inject: {
|
|
2997
3019
|
signAttachmentFn: { default: null },
|
|
@@ -3059,15 +3081,15 @@ const nr = /* @__PURE__ */ N(er, [["render", tr]]), sr = {
|
|
|
3059
3081
|
this.safeHref === "#" && e.preventDefault();
|
|
3060
3082
|
}
|
|
3061
3083
|
}
|
|
3062
|
-
},
|
|
3084
|
+
}, nr = ["href"], sr = ["src", "alt"], rr = ["src"], ir = ["src"], ar = ["href", "download"], or = { class: "wm-att__main" }, lr = { class: "wm-att__name" }, cr = {
|
|
3063
3085
|
key: 0,
|
|
3064
3086
|
class: "wm-att__meta"
|
|
3065
|
-
},
|
|
3087
|
+
}, dr = {
|
|
3066
3088
|
key: 0,
|
|
3067
3089
|
class: "wm-att__spin",
|
|
3068
3090
|
"aria-hidden": "true"
|
|
3069
3091
|
};
|
|
3070
|
-
function
|
|
3092
|
+
function ur(e, t, n, i, r, s) {
|
|
3071
3093
|
return c(), u("div", {
|
|
3072
3094
|
class: O(["wm-att", ["wm-att--" + (s.kind || "file")]])
|
|
3073
3095
|
}, [
|
|
@@ -3082,18 +3104,18 @@ function mr(e, t, n, i, r, s) {
|
|
|
3082
3104
|
src: r.url,
|
|
3083
3105
|
alt: s.displayName,
|
|
3084
3106
|
loading: "lazy"
|
|
3085
|
-
}, null, 8,
|
|
3086
|
-
], 8,
|
|
3107
|
+
}, null, 8, sr)
|
|
3108
|
+
], 8, nr)) : s.kind === "audio" && r.url ? (c(), u("audio", {
|
|
3087
3109
|
key: 1,
|
|
3088
3110
|
src: r.url,
|
|
3089
3111
|
controls: "",
|
|
3090
3112
|
preload: "metadata"
|
|
3091
|
-
}, null, 8,
|
|
3113
|
+
}, null, 8, rr)) : s.kind === "video" && r.url ? (c(), u("video", {
|
|
3092
3114
|
key: 2,
|
|
3093
3115
|
src: r.url,
|
|
3094
3116
|
controls: "",
|
|
3095
3117
|
preload: "metadata"
|
|
3096
|
-
}, null, 8,
|
|
3118
|
+
}, null, 8, ir)) : (c(), u("a", {
|
|
3097
3119
|
key: 3,
|
|
3098
3120
|
class: "wm-att__file",
|
|
3099
3121
|
href: s.safeHref,
|
|
@@ -3118,15 +3140,15 @@ function mr(e, t, n, i, r, s) {
|
|
|
3118
3140
|
o("path", { d: "M14 2v6h6" })
|
|
3119
3141
|
])
|
|
3120
3142
|
], -1)),
|
|
3121
|
-
o("span",
|
|
3122
|
-
o("span",
|
|
3123
|
-
s.sizeLabel ? (c(), u("span",
|
|
3143
|
+
o("span", or, [
|
|
3144
|
+
o("span", lr, v(s.displayName), 1),
|
|
3145
|
+
s.sizeLabel ? (c(), u("span", cr, v(s.sizeLabel), 1)) : y("", !0)
|
|
3124
3146
|
]),
|
|
3125
|
-
r.loading ? (c(), u("span",
|
|
3126
|
-
], 8,
|
|
3147
|
+
r.loading ? (c(), u("span", dr)) : y("", !0)
|
|
3148
|
+
], 8, ar))
|
|
3127
3149
|
], 2);
|
|
3128
3150
|
}
|
|
3129
|
-
const
|
|
3151
|
+
const mr = /* @__PURE__ */ N(tr, [["render", ur], ["__scopeId", "data-v-0c877a62"]]), hr = {
|
|
3130
3152
|
name: "WmBubble",
|
|
3131
3153
|
props: {
|
|
3132
3154
|
role: { type: String, default: "ai" },
|
|
@@ -3135,48 +3157,48 @@ const fr = /* @__PURE__ */ N(sr, [["render", mr], ["__scopeId", "data-v-0c877a62
|
|
|
3135
3157
|
},
|
|
3136
3158
|
computed: {
|
|
3137
3159
|
rendered() {
|
|
3138
|
-
return
|
|
3160
|
+
return mn(this.text);
|
|
3139
3161
|
}
|
|
3140
3162
|
}
|
|
3141
|
-
},
|
|
3142
|
-
function
|
|
3163
|
+
}, fr = ["innerHTML"];
|
|
3164
|
+
function _r(e, t, n, i, r, s) {
|
|
3143
3165
|
return c(), u("div", {
|
|
3144
3166
|
class: O(["wm-bubble", "wm-bubble--" + n.role])
|
|
3145
3167
|
}, [
|
|
3146
3168
|
He(e.$slots, "default", {}, () => [
|
|
3147
|
-
o("span", { innerHTML: s.rendered }, null, 8,
|
|
3169
|
+
o("span", { innerHTML: s.rendered }, null, 8, fr)
|
|
3148
3170
|
], !0)
|
|
3149
3171
|
], 2);
|
|
3150
3172
|
}
|
|
3151
|
-
const
|
|
3152
|
-
function
|
|
3153
|
-
return c(), u("div",
|
|
3173
|
+
const gr = /* @__PURE__ */ N(hr, [["render", _r], ["__scopeId", "data-v-7ab13147"]]), pr = { name: "WmTyping" }, vr = { class: "wm-typing" };
|
|
3174
|
+
function yr(e, t, n, i, r, s) {
|
|
3175
|
+
return c(), u("div", vr, [...t[0] || (t[0] = [
|
|
3154
3176
|
o("span", { style: { "animation-delay": "0s" } }, null, -1),
|
|
3155
3177
|
o("span", { style: { "animation-delay": "0.2s" } }, null, -1),
|
|
3156
3178
|
o("span", { style: { "animation-delay": "0.4s" } }, null, -1)
|
|
3157
3179
|
])]);
|
|
3158
3180
|
}
|
|
3159
|
-
const
|
|
3181
|
+
const wr = /* @__PURE__ */ N(pr, [["render", yr], ["__scopeId", "data-v-df2447fd"]]);
|
|
3160
3182
|
function Q(e) {
|
|
3161
3183
|
return e ? e.client_msg_id || e.id : "";
|
|
3162
3184
|
}
|
|
3163
|
-
const
|
|
3185
|
+
const br = {
|
|
3164
3186
|
transferred_to_human: "system.transferredToHuman",
|
|
3165
3187
|
assigned: "system.assigned",
|
|
3166
3188
|
unassigned: "system.unassigned",
|
|
3167
3189
|
resolved: "system.resolved",
|
|
3168
3190
|
reopened: "system.reopened",
|
|
3169
3191
|
idle: "system.idle"
|
|
3170
|
-
},
|
|
3192
|
+
}, kr = 80, Cr = 200, Ar = {
|
|
3171
3193
|
name: "WmMessageList",
|
|
3172
3194
|
components: {
|
|
3173
3195
|
AIAvatar: le,
|
|
3174
3196
|
HumanAvatar: Ce,
|
|
3175
|
-
Bubble:
|
|
3176
|
-
Typing:
|
|
3177
|
-
ActionResult:
|
|
3178
|
-
AttachmentPreview:
|
|
3179
|
-
ArtifactRenderer:
|
|
3197
|
+
Bubble: gr,
|
|
3198
|
+
Typing: wr,
|
|
3199
|
+
ActionResult: hs,
|
|
3200
|
+
AttachmentPreview: mr,
|
|
3201
|
+
ArtifactRenderer: er
|
|
3180
3202
|
},
|
|
3181
3203
|
inject: {
|
|
3182
3204
|
// Translator + resolved-language getter shared by the Messenger
|
|
@@ -3366,11 +3388,11 @@ const Cr = {
|
|
|
3366
3388
|
return `g-${n}`;
|
|
3367
3389
|
},
|
|
3368
3390
|
isAtBottom(e) {
|
|
3369
|
-
return e.scrollHeight - e.scrollTop - e.clientHeight <=
|
|
3391
|
+
return e.scrollHeight - e.scrollTop - e.clientHeight <= kr;
|
|
3370
3392
|
},
|
|
3371
3393
|
onScroll() {
|
|
3372
3394
|
const e = this.$refs.scrollEl;
|
|
3373
|
-
e && (this.showScrollDown = !this.isAtBottom(e), !(this.loadingMore || !this.hasMore) && (this._pendingLoadMore || e.scrollTop <=
|
|
3395
|
+
e && (this.showScrollDown = !this.isAtBottom(e), !(this.loadingMore || !this.hasMore) && (this._pendingLoadMore || e.scrollTop <= Cr && (this._pendingLoadMore = !0, this.$emit("load-more"))));
|
|
3374
3396
|
},
|
|
3375
3397
|
// Capture pre-patch scroll state and restore it on the next tick.
|
|
3376
3398
|
//
|
|
@@ -3708,7 +3730,7 @@ const Cr = {
|
|
|
3708
3730
|
},
|
|
3709
3731
|
systemLabel(e) {
|
|
3710
3732
|
var r, s, a;
|
|
3711
|
-
const t = (r = e == null ? void 0 : e.payload) == null ? void 0 : r.event, n =
|
|
3733
|
+
const t = (r = e == null ? void 0 : e.payload) == null ? void 0 : r.event, n = br[t], i = ((s = e == null ? void 0 : e.metadata) == null ? void 0 : s.agent_name) || ((a = e == null ? void 0 : e.author) == null ? void 0 : a.name) || this.t("messageList.anAgent");
|
|
3712
3734
|
return n ? this.t(n, { name: i }) : (e == null ? void 0 : e.text_md) || this.t("messageList.conversationUpdate");
|
|
3713
3735
|
},
|
|
3714
3736
|
scrollToBottom() {
|
|
@@ -3723,74 +3745,74 @@ const Cr = {
|
|
|
3723
3745
|
e && (typeof e.scrollTo == "function" ? e.scrollTo({ top: e.scrollHeight, behavior: "smooth" }) : e.scrollTop = e.scrollHeight, this.showScrollDown = !1);
|
|
3724
3746
|
}
|
|
3725
3747
|
}
|
|
3726
|
-
},
|
|
3748
|
+
}, Sr = { class: "wm-list__wrap" }, Mr = {
|
|
3727
3749
|
key: 0,
|
|
3728
3750
|
class: "wm-list__loadMore",
|
|
3729
3751
|
role: "status",
|
|
3730
3752
|
"aria-live": "polite"
|
|
3731
|
-
},
|
|
3753
|
+
}, Tr = { class: "wm-list__loadMore-lbl" }, xr = {
|
|
3732
3754
|
key: 1,
|
|
3733
3755
|
class: "wm-list__historyEnd"
|
|
3734
|
-
},
|
|
3756
|
+
}, Or = {
|
|
3735
3757
|
key: 2,
|
|
3736
3758
|
class: "wm-list__sep"
|
|
3737
|
-
},
|
|
3759
|
+
}, Ir = { class: "wm-list__sep-label" }, Lr = {
|
|
3738
3760
|
key: 0,
|
|
3739
3761
|
class: "wm-list__sep wm-list__sep--unread"
|
|
3740
|
-
},
|
|
3762
|
+
}, Er = { class: "wm-list__sep-label wm-list__sep-label--unread" }, Br = {
|
|
3741
3763
|
key: 0,
|
|
3742
3764
|
class: "wm-list__sysep"
|
|
3743
|
-
},
|
|
3765
|
+
}, Rr = { class: "wm-list__sysep-label" }, Nr = ["data-row-key", "onPointerdown"], Pr = {
|
|
3744
3766
|
key: 0,
|
|
3745
3767
|
class: "wm-list__avatarSlot"
|
|
3746
|
-
},
|
|
3768
|
+
}, Ur = {
|
|
3747
3769
|
key: 5,
|
|
3748
3770
|
class: "wm-list__body"
|
|
3749
|
-
},
|
|
3771
|
+
}, Fr = { key: 0 }, Dr = {
|
|
3750
3772
|
key: 1,
|
|
3751
3773
|
"aria-hidden": "true"
|
|
3752
|
-
},
|
|
3774
|
+
}, jr = { key: 2 }, Hr = { key: 0 }, zr = {
|
|
3753
3775
|
key: 1,
|
|
3754
3776
|
"aria-hidden": "true"
|
|
3755
|
-
},
|
|
3777
|
+
}, qr = { key: 2 }, Kr = {
|
|
3756
3778
|
key: 3,
|
|
3757
3779
|
class: "wm-list__row wm-list__row--ai fade-up"
|
|
3758
|
-
},
|
|
3759
|
-
function
|
|
3780
|
+
}, Vr = { class: "wm-list__avatarSlot" }, $r = ["aria-label", "title"];
|
|
3781
|
+
function Wr(e, t, n, i, r, s) {
|
|
3760
3782
|
const a = R("AIAvatar"), l = R("HumanAvatar"), p = R("ActionResult"), k = R("ArtifactRenderer"), w = R("Bubble"), T = R("AttachmentPreview"), B = R("Typing");
|
|
3761
|
-
return c(), u("div",
|
|
3783
|
+
return c(), u("div", Sr, [
|
|
3762
3784
|
o("div", {
|
|
3763
3785
|
ref: "scrollEl",
|
|
3764
3786
|
class: O(["wm-list", { "wm-list--silent": r.silentFades }]),
|
|
3765
3787
|
onScrollPassive: t[4] || (t[4] = (...A) => s.onScroll && s.onScroll(...A))
|
|
3766
3788
|
}, [
|
|
3767
|
-
n.loadingMore ? (c(), u("div",
|
|
3789
|
+
n.loadingMore ? (c(), u("div", Mr, [
|
|
3768
3790
|
t[6] || (t[6] = o("span", {
|
|
3769
3791
|
class: "wm-list__loadMore-spinner",
|
|
3770
3792
|
"aria-hidden": "true"
|
|
3771
3793
|
}, null, -1)),
|
|
3772
|
-
o("span",
|
|
3773
|
-
])) : s.historyExhausted ? (c(), u("div",
|
|
3774
|
-
n.dateLabel ? (c(), u("div",
|
|
3794
|
+
o("span", Tr, v(s.t("messageList.loadingHistory")), 1)
|
|
3795
|
+
])) : s.historyExhausted ? (c(), u("div", xr, v(s.t("messageList.conversationStart")), 1)) : y("", !0),
|
|
3796
|
+
n.dateLabel ? (c(), u("div", Or, [
|
|
3775
3797
|
t[7] || (t[7] = o("div", { class: "wm-list__line" }, null, -1)),
|
|
3776
|
-
o("span",
|
|
3798
|
+
o("span", Ir, v(n.dateLabel), 1),
|
|
3777
3799
|
t[8] || (t[8] = o("div", { class: "wm-list__line" }, null, -1))
|
|
3778
3800
|
])) : y("", !0),
|
|
3779
3801
|
(c(!0), u(E, null, F(s.groups, (A, H) => (c(), u(E, {
|
|
3780
3802
|
key: A.key
|
|
3781
3803
|
}, [
|
|
3782
|
-
A.key === s.unreadGroupKey ? (c(), u("div",
|
|
3804
|
+
A.key === s.unreadGroupKey ? (c(), u("div", Lr, [
|
|
3783
3805
|
t[9] || (t[9] = o("div", { class: "wm-list__line wm-list__line--unread" }, null, -1)),
|
|
3784
|
-
o("span",
|
|
3806
|
+
o("span", Er, v(s.t("messageList.unread")), 1),
|
|
3785
3807
|
t[10] || (t[10] = o("div", { class: "wm-list__line wm-list__line--unread" }, null, -1))
|
|
3786
3808
|
])) : y("", !0),
|
|
3787
3809
|
A.role === "system" || A.items.length ? (c(), u("div", {
|
|
3788
3810
|
key: 1,
|
|
3789
3811
|
class: O(["wm-list__group", "wm-list__group--" + A.role])
|
|
3790
3812
|
}, [
|
|
3791
|
-
A.role === "system" ? (c(), u("div",
|
|
3813
|
+
A.role === "system" ? (c(), u("div", Br, [
|
|
3792
3814
|
t[11] || (t[11] = o("div", { class: "wm-list__line wm-list__line--strong" }, null, -1)),
|
|
3793
|
-
o("span",
|
|
3815
|
+
o("span", Rr, v(A.systemLabel), 1),
|
|
3794
3816
|
t[12] || (t[12] = o("div", { class: "wm-list__line wm-list__line--strong" }, null, -1))
|
|
3795
3817
|
])) : (c(), u(E, { key: 1 }, [
|
|
3796
3818
|
(c(!0), u(E, null, F(A.items, (S, U) => (c(), u(E, {
|
|
@@ -3813,7 +3835,7 @@ function Yr(e, t, n, i, r, s) {
|
|
|
3813
3835
|
onContextmenu: t[3] || (t[3] = G(() => {
|
|
3814
3836
|
}, ["prevent"]))
|
|
3815
3837
|
}, [
|
|
3816
|
-
A.role !== "user" ? (c(), u("div",
|
|
3838
|
+
A.role !== "user" ? (c(), u("div", Pr, [
|
|
3817
3839
|
U === A.items.length - 1 ? (c(), u(E, { key: 0 }, [
|
|
3818
3840
|
A.role === "ai" ? (c(), P(a, {
|
|
3819
3841
|
key: 0,
|
|
@@ -3846,7 +3868,7 @@ function Yr(e, t, n, i, r, s) {
|
|
|
3846
3868
|
}, null, 8, ["artifact"])) : S.renderAs === "artifact" ? (c(), P(k, {
|
|
3847
3869
|
key: 4,
|
|
3848
3870
|
artifact: s.artifactOf(S.message)
|
|
3849
|
-
}, null, 8, ["artifact"])) : (c(), u("div",
|
|
3871
|
+
}, null, 8, ["artifact"])) : (c(), u("div", Ur, [
|
|
3850
3872
|
S.message.text_md ? (c(), P(w, {
|
|
3851
3873
|
key: 0,
|
|
3852
3874
|
role: A.role,
|
|
@@ -3866,29 +3888,29 @@ function Yr(e, t, n, i, r, s) {
|
|
|
3866
3888
|
}, null, 8, ["attachment"]))), 128))
|
|
3867
3889
|
], 2)) : y("", !0)
|
|
3868
3890
|
]))
|
|
3869
|
-
], 46,
|
|
3891
|
+
], 46, Nr),
|
|
3870
3892
|
U < A.items.length - 1 && r.pressedItemKey === `${s.messageKey(S.message)}-${S.partKey}` && (A.role !== "user" || s.timeOf(S.message)) ? (c(), u("div", {
|
|
3871
3893
|
key: 0,
|
|
3872
3894
|
class: O(["wm-list__meta wm-list__meta--press", { "wm-list__meta--right": A.role === "user" }])
|
|
3873
3895
|
}, [
|
|
3874
|
-
A.role !== "user" ? (c(), u("span",
|
|
3875
|
-
A.role !== "user" && s.timeOf(S.message) ? (c(), u("span",
|
|
3876
|
-
s.timeOf(S.message) ? (c(), u("span",
|
|
3896
|
+
A.role !== "user" ? (c(), u("span", Fr, v(s.roleLabel(A)), 1)) : y("", !0),
|
|
3897
|
+
A.role !== "user" && s.timeOf(S.message) ? (c(), u("span", Dr, "·")) : y("", !0),
|
|
3898
|
+
s.timeOf(S.message) ? (c(), u("span", jr, v(s.timeOf(S.message)), 1)) : y("", !0)
|
|
3877
3899
|
], 2)) : y("", !0)
|
|
3878
3900
|
], 64))), 128)),
|
|
3879
3901
|
(A.role !== "user" || s.lastTimeOf(A)) && !s.hasTrailingOverlay(A) ? (c(), u("div", {
|
|
3880
3902
|
key: 0,
|
|
3881
3903
|
class: O(["wm-list__meta", { "wm-list__meta--right": A.role === "user" }])
|
|
3882
3904
|
}, [
|
|
3883
|
-
A.role !== "user" ? (c(), u("span",
|
|
3884
|
-
A.role !== "user" && s.lastTimeOf(A) ? (c(), u("span",
|
|
3885
|
-
s.lastTimeOf(A) ? (c(), u("span",
|
|
3905
|
+
A.role !== "user" ? (c(), u("span", Hr, v(s.roleLabel(A)), 1)) : y("", !0),
|
|
3906
|
+
A.role !== "user" && s.lastTimeOf(A) ? (c(), u("span", zr, "·")) : y("", !0),
|
|
3907
|
+
s.lastTimeOf(A) ? (c(), u("span", qr, v(s.lastTimeOf(A)), 1)) : y("", !0)
|
|
3886
3908
|
], 2)) : y("", !0)
|
|
3887
3909
|
], 64))
|
|
3888
3910
|
], 2)) : y("", !0)
|
|
3889
3911
|
], 64))), 128)),
|
|
3890
|
-
n.streamingActive ? (c(), u("div",
|
|
3891
|
-
o("div",
|
|
3912
|
+
n.streamingActive ? (c(), u("div", Kr, [
|
|
3913
|
+
o("div", Vr, [
|
|
3892
3914
|
K(a, {
|
|
3893
3915
|
size: 26,
|
|
3894
3916
|
tail: !0,
|
|
@@ -3922,14 +3944,14 @@ function Yr(e, t, n, i, r, s) {
|
|
|
3922
3944
|
}, [
|
|
3923
3945
|
o("path", { d: "M6 9l6 6 6-6" })
|
|
3924
3946
|
], -1)
|
|
3925
|
-
])], 8,
|
|
3947
|
+
])], 8, $r)) : y("", !0)
|
|
3926
3948
|
]),
|
|
3927
3949
|
_: 1
|
|
3928
3950
|
})
|
|
3929
3951
|
]);
|
|
3930
3952
|
}
|
|
3931
|
-
const
|
|
3932
|
-
function
|
|
3953
|
+
const Gr = /* @__PURE__ */ N(Ar, [["render", Wr], ["__scopeId", "data-v-9ddbd0e3"]]), me = typeof navigator < "u" && !!navigator.mediaDevices && typeof navigator.mediaDevices.getDisplayMedia == "function", Ae = typeof window < "u" && typeof window.MediaRecorder < "u";
|
|
3954
|
+
function Yr() {
|
|
3933
3955
|
return Ae && [
|
|
3934
3956
|
"video/webm;codecs=vp9,opus",
|
|
3935
3957
|
"video/webm;codecs=vp8,opus",
|
|
@@ -3949,11 +3971,11 @@ function Fe({ audio: e }) {
|
|
|
3949
3971
|
systemAudio: e ? "include" : "exclude"
|
|
3950
3972
|
};
|
|
3951
3973
|
}
|
|
3952
|
-
function
|
|
3974
|
+
function so(e) {
|
|
3953
3975
|
return e ? e.startsWith("image/") ? "image" : e.startsWith("video/") ? "video" : "file" : "file";
|
|
3954
3976
|
}
|
|
3955
|
-
async function
|
|
3956
|
-
if (!
|
|
3977
|
+
async function Jr() {
|
|
3978
|
+
if (!me) return null;
|
|
3957
3979
|
let e;
|
|
3958
3980
|
try {
|
|
3959
3981
|
e = await navigator.mediaDevices.getDisplayMedia(
|
|
@@ -3963,7 +3985,7 @@ async function Xr() {
|
|
|
3963
3985
|
return (t == null ? void 0 : t.name) !== "NotAllowedError" && console.error("[media] screenshot picker", t), null;
|
|
3964
3986
|
}
|
|
3965
3987
|
try {
|
|
3966
|
-
return await
|
|
3988
|
+
return await Qr(e);
|
|
3967
3989
|
} catch (t) {
|
|
3968
3990
|
return console.error("[media] screenshot capture", t), null;
|
|
3969
3991
|
} finally {
|
|
@@ -3972,7 +3994,7 @@ async function Xr() {
|
|
|
3972
3994
|
});
|
|
3973
3995
|
}
|
|
3974
3996
|
}
|
|
3975
|
-
async function
|
|
3997
|
+
async function Qr(e) {
|
|
3976
3998
|
const t = document.createElement("video");
|
|
3977
3999
|
t.muted = !0, t.playsInline = !0, t.srcObject = e, await t.play(), await new Promise((l) => requestAnimationFrame(l));
|
|
3978
4000
|
const n = t.videoWidth || 1280, i = t.videoHeight || 720, r = document.createElement("canvas");
|
|
@@ -3985,9 +4007,9 @@ async function Zr(e) {
|
|
|
3985
4007
|
}), a = (/* @__PURE__ */ new Date()).toISOString().replace(/[:.]/g, "-").slice(0, 19);
|
|
3986
4008
|
return new File([s], `capture-${a}.png`, { type: "image/png" });
|
|
3987
4009
|
}
|
|
3988
|
-
async function
|
|
4010
|
+
async function Xr(e = {}) {
|
|
3989
4011
|
var k;
|
|
3990
|
-
if (!
|
|
4012
|
+
if (!me || !Ae) return null;
|
|
3991
4013
|
let t;
|
|
3992
4014
|
try {
|
|
3993
4015
|
t = await navigator.mediaDevices.getDisplayMedia(
|
|
@@ -3996,7 +4018,7 @@ async function ei(e = {}) {
|
|
|
3996
4018
|
} catch (w) {
|
|
3997
4019
|
return (w == null ? void 0 : w.name) !== "NotAllowedError" && console.error("[media] record picker", w), null;
|
|
3998
4020
|
}
|
|
3999
|
-
const n =
|
|
4021
|
+
const n = Yr();
|
|
4000
4022
|
let i;
|
|
4001
4023
|
try {
|
|
4002
4024
|
i = n ? new window.MediaRecorder(t, { mimeType: n }) : new window.MediaRecorder(t);
|
|
@@ -4050,7 +4072,7 @@ async function ei(e = {}) {
|
|
|
4050
4072
|
}
|
|
4051
4073
|
};
|
|
4052
4074
|
}
|
|
4053
|
-
const
|
|
4075
|
+
const Zr = [
|
|
4054
4076
|
{
|
|
4055
4077
|
action: "file",
|
|
4056
4078
|
labelKey: "composer.attachFile",
|
|
@@ -4066,7 +4088,7 @@ const ti = [
|
|
|
4066
4088
|
labelKey: "composer.recordScreen",
|
|
4067
4089
|
path: "M23 7l-7 5 7 5V7z M1 5a2 2 0 012-2h12a2 2 0 012 2v14a2 2 0 01-2 2H3a2 2 0 01-2-2V5z"
|
|
4068
4090
|
}
|
|
4069
|
-
],
|
|
4091
|
+
], ei = {
|
|
4070
4092
|
name: "WmComposer",
|
|
4071
4093
|
inject: {
|
|
4072
4094
|
// Translator shared by the Messenger shell; French fallback when
|
|
@@ -4100,10 +4122,10 @@ const ti = [
|
|
|
4100
4122
|
return !this.disabled && !!this.local.trim();
|
|
4101
4123
|
},
|
|
4102
4124
|
attachItems() {
|
|
4103
|
-
return
|
|
4125
|
+
return Zr.map((e) => ({
|
|
4104
4126
|
...e,
|
|
4105
4127
|
label: this.t(e.labelKey),
|
|
4106
|
-
disabled: e.action === "screenshot" && !
|
|
4128
|
+
disabled: e.action === "screenshot" && !me || e.action === "record" && (!me || !Ae)
|
|
4107
4129
|
}));
|
|
4108
4130
|
},
|
|
4109
4131
|
recordingElapsedLabel() {
|
|
@@ -4174,13 +4196,13 @@ const ti = [
|
|
|
4174
4196
|
},
|
|
4175
4197
|
async captureScreenshot() {
|
|
4176
4198
|
if (this.disabled) return;
|
|
4177
|
-
const e = await
|
|
4199
|
+
const e = await Jr();
|
|
4178
4200
|
e && this.$emit("attach", e);
|
|
4179
4201
|
},
|
|
4180
4202
|
async startRecording() {
|
|
4181
4203
|
if (this.recording || this.disabled) return;
|
|
4182
4204
|
this.recordingElapsed = 0;
|
|
4183
|
-
const e = await
|
|
4205
|
+
const e = await Xr({
|
|
4184
4206
|
onstart: () => {
|
|
4185
4207
|
this.recording = !0;
|
|
4186
4208
|
},
|
|
@@ -4222,30 +4244,30 @@ const ti = [
|
|
|
4222
4244
|
!e || !this._vvHandler || (e.removeEventListener("resize", this._vvHandler), e.removeEventListener("scroll", this._vvHandler), this._vvHandler = null);
|
|
4223
4245
|
}
|
|
4224
4246
|
}
|
|
4225
|
-
},
|
|
4247
|
+
}, ti = {
|
|
4226
4248
|
key: 0,
|
|
4227
4249
|
class: "wm-rec"
|
|
4228
|
-
},
|
|
4250
|
+
}, ni = { class: "wm-rec__lbl" }, si = {
|
|
4229
4251
|
key: 1,
|
|
4230
4252
|
class: "wm-compose__menu",
|
|
4231
4253
|
role: "menu"
|
|
4232
|
-
},
|
|
4254
|
+
}, ri = ["disabled", "onClick"], ii = { class: "wm-compose__menuIcon" }, ai = {
|
|
4233
4255
|
viewBox: "0 0 24 24",
|
|
4234
4256
|
width: "14",
|
|
4235
4257
|
height: "14",
|
|
4236
4258
|
"aria-hidden": "true"
|
|
4237
|
-
},
|
|
4238
|
-
function
|
|
4259
|
+
}, oi = ["d"], li = ["placeholder", "disabled"], ci = { class: "wm-compose__actions" }, di = ["title", "aria-label", "disabled"], ui = ["disabled", "aria-label"];
|
|
4260
|
+
function mi(e, t, n, i, r, s) {
|
|
4239
4261
|
return c(), u("div", {
|
|
4240
4262
|
class: O(["wm-compose-wrap", { "wm-compose-wrap--sheet": n.displayMode === "sheet" }]),
|
|
4241
4263
|
style: z(r.kbOffset ? { transform: `translateY(-${r.kbOffset}px)` } : null)
|
|
4242
4264
|
}, [
|
|
4243
|
-
r.recording ? (c(), u("div",
|
|
4265
|
+
r.recording ? (c(), u("div", ti, [
|
|
4244
4266
|
t[8] || (t[8] = o("span", {
|
|
4245
4267
|
class: "wm-rec__dot",
|
|
4246
4268
|
"aria-hidden": "true"
|
|
4247
4269
|
}, null, -1)),
|
|
4248
|
-
o("span",
|
|
4270
|
+
o("span", ni, v(s.t("composer.recording", { time: s.recordingElapsedLabel })), 1),
|
|
4249
4271
|
o("button", {
|
|
4250
4272
|
type: "button",
|
|
4251
4273
|
class: "wm-rec__stop",
|
|
@@ -4268,7 +4290,7 @@ function fi(e, t, n, i, r, s) {
|
|
|
4268
4290
|
class: "wm-compose__overlay",
|
|
4269
4291
|
onClick: t[2] || (t[2] = (a) => r.attachOpen = !1)
|
|
4270
4292
|
})) : y("", !0),
|
|
4271
|
-
r.attachOpen ? (c(), u("div",
|
|
4293
|
+
r.attachOpen ? (c(), u("div", si, [
|
|
4272
4294
|
(c(!0), u(E, null, F(s.attachItems, (a) => (c(), u("button", {
|
|
4273
4295
|
key: a.action,
|
|
4274
4296
|
type: "button",
|
|
@@ -4276,8 +4298,8 @@ function fi(e, t, n, i, r, s) {
|
|
|
4276
4298
|
disabled: a.disabled,
|
|
4277
4299
|
onClick: (l) => s.onAttachAction(a.action)
|
|
4278
4300
|
}, [
|
|
4279
|
-
o("span",
|
|
4280
|
-
(c(), u("svg",
|
|
4301
|
+
o("span", ii, [
|
|
4302
|
+
(c(), u("svg", ai, [
|
|
4281
4303
|
o("path", {
|
|
4282
4304
|
d: a.path,
|
|
4283
4305
|
stroke: "currentColor",
|
|
@@ -4285,11 +4307,11 @@ function fi(e, t, n, i, r, s) {
|
|
|
4285
4307
|
"stroke-linecap": "round",
|
|
4286
4308
|
"stroke-linejoin": "round",
|
|
4287
4309
|
fill: "none"
|
|
4288
|
-
}, null, 8,
|
|
4310
|
+
}, null, 8, oi)
|
|
4289
4311
|
]))
|
|
4290
4312
|
]),
|
|
4291
4313
|
o("span", null, v(a.label), 1)
|
|
4292
|
-
], 8,
|
|
4314
|
+
], 8, ri))), 128))
|
|
4293
4315
|
])) : y("", !0),
|
|
4294
4316
|
$(o("textarea", {
|
|
4295
4317
|
ref: "inputEl",
|
|
@@ -4300,10 +4322,10 @@ function fi(e, t, n, i, r, s) {
|
|
|
4300
4322
|
disabled: n.disabled,
|
|
4301
4323
|
onKeydown: t[4] || (t[4] = (...a) => s.onKeydown && s.onKeydown(...a)),
|
|
4302
4324
|
onInput: t[5] || (t[5] = (...a) => s.autosize && s.autosize(...a))
|
|
4303
|
-
}, null, 40,
|
|
4325
|
+
}, null, 40, li), [
|
|
4304
4326
|
[X, r.local]
|
|
4305
4327
|
]),
|
|
4306
|
-
o("div",
|
|
4328
|
+
o("div", ci, [
|
|
4307
4329
|
o("button", {
|
|
4308
4330
|
type: "button",
|
|
4309
4331
|
class: O(["wm-compose__icon", { "is-open": r.attachOpen }]),
|
|
@@ -4325,7 +4347,7 @@ function fi(e, t, n, i, r, s) {
|
|
|
4325
4347
|
}, [
|
|
4326
4348
|
o("path", { d: "M21.44 11.05l-9.19 9.19a6 6 0 01-8.49-8.49l9.19-9.19a4 4 0 015.66 5.66l-9.2 9.19a2 2 0 01-2.83-2.83l8.49-8.48" })
|
|
4327
4349
|
], -1)
|
|
4328
|
-
])], 10,
|
|
4350
|
+
])], 10, di),
|
|
4329
4351
|
o("button", {
|
|
4330
4352
|
type: "submit",
|
|
4331
4353
|
class: O(["wm-compose__send", { "is-empty": !s.canSend }]),
|
|
@@ -4345,12 +4367,12 @@ function fi(e, t, n, i, r, s) {
|
|
|
4345
4367
|
}, [
|
|
4346
4368
|
o("path", { d: "M22 2L11 13M22 2l-7 20-4-9-9-4 20-7z" })
|
|
4347
4369
|
], -1)
|
|
4348
|
-
])], 10,
|
|
4370
|
+
])], 10, ui)
|
|
4349
4371
|
])
|
|
4350
4372
|
], 34)
|
|
4351
4373
|
], 6);
|
|
4352
4374
|
}
|
|
4353
|
-
const
|
|
4375
|
+
const hi = /* @__PURE__ */ N(ei, [["render", mi], ["__scopeId", "data-v-01e81a27"]]), fi = {
|
|
4354
4376
|
name: "WmSuggestionChips",
|
|
4355
4377
|
props: {
|
|
4356
4378
|
items: { type: Array, default: () => [] },
|
|
@@ -4367,8 +4389,8 @@ const _i = /* @__PURE__ */ N(ni, [["render", fi], ["__scopeId", "data-v-01e81a27
|
|
|
4367
4389
|
return this.items.map((e) => (e == null ? void 0 : e.label) || (e == null ? void 0 : e.text) || "").join("§");
|
|
4368
4390
|
}
|
|
4369
4391
|
}
|
|
4370
|
-
},
|
|
4371
|
-
function
|
|
4392
|
+
}, _i = ["onClick"];
|
|
4393
|
+
function gi(e, t, n, i, r, s) {
|
|
4372
4394
|
return n.items.length ? (c(), u("div", {
|
|
4373
4395
|
key: s.batchKey,
|
|
4374
4396
|
class: "wm-chips"
|
|
@@ -4379,10 +4401,10 @@ function vi(e, t, n, i, r, s) {
|
|
|
4379
4401
|
class: "wm-chip",
|
|
4380
4402
|
style: z({ animationDelay: n.baseDelay + l * n.stepDelay + "ms" }),
|
|
4381
4403
|
onClick: (p) => e.$emit("select", a)
|
|
4382
|
-
}, v(a.label), 13,
|
|
4404
|
+
}, v(a.label), 13, _i))), 128))
|
|
4383
4405
|
])) : y("", !0);
|
|
4384
4406
|
}
|
|
4385
|
-
const
|
|
4407
|
+
const pi = /* @__PURE__ */ N(fi, [["render", gi], ["__scopeId", "data-v-47ad8085"]]), vi = {
|
|
4386
4408
|
name: "WmApprovalCard",
|
|
4387
4409
|
components: { AIAvatar: le },
|
|
4388
4410
|
inject: {
|
|
@@ -4426,27 +4448,27 @@ const yi = /* @__PURE__ */ N(gi, [["render", vi], ["__scopeId", "data-v-47ad8085
|
|
|
4426
4448
|
return ((e = this.rejectCallback) == null ? void 0 : e.label) || this.t("approval.reject");
|
|
4427
4449
|
}
|
|
4428
4450
|
}
|
|
4429
|
-
},
|
|
4451
|
+
}, yi = { class: "wm-approval" }, wi = { class: "wm-approval__head" }, bi = { class: "wm-approval__icon" }, ki = { class: "wm-approval__main" }, Ci = { class: "wm-approval__title" }, Ai = {
|
|
4430
4452
|
key: 0,
|
|
4431
4453
|
class: "wm-approval__detail"
|
|
4432
|
-
},
|
|
4433
|
-
function
|
|
4454
|
+
}, Si = { class: "wm-approval__actions" };
|
|
4455
|
+
function Mi(e, t, n, i, r, s) {
|
|
4434
4456
|
const a = R("AIAvatar");
|
|
4435
|
-
return c(), u("div",
|
|
4436
|
-
o("div",
|
|
4437
|
-
o("div",
|
|
4457
|
+
return c(), u("div", yi, [
|
|
4458
|
+
o("div", wi, [
|
|
4459
|
+
o("div", bi, [
|
|
4438
4460
|
K(a, {
|
|
4439
4461
|
size: 24,
|
|
4440
4462
|
name: n.agentName,
|
|
4441
4463
|
"image-url": n.agentAvatarUrl
|
|
4442
4464
|
}, null, 8, ["name", "image-url"])
|
|
4443
4465
|
]),
|
|
4444
|
-
o("div",
|
|
4445
|
-
o("div",
|
|
4446
|
-
n.detail ? (c(), u("div",
|
|
4466
|
+
o("div", ki, [
|
|
4467
|
+
o("div", Ci, v(n.action), 1),
|
|
4468
|
+
n.detail ? (c(), u("div", Ai, v(n.detail), 1)) : y("", !0)
|
|
4447
4469
|
])
|
|
4448
4470
|
]),
|
|
4449
|
-
o("div",
|
|
4471
|
+
o("div", Si, [
|
|
4450
4472
|
s.rejectId ? (c(), u("button", {
|
|
4451
4473
|
key: 0,
|
|
4452
4474
|
type: "button",
|
|
@@ -4462,9 +4484,9 @@ function xi(e, t, n, i, r, s) {
|
|
|
4462
4484
|
])
|
|
4463
4485
|
]);
|
|
4464
4486
|
}
|
|
4465
|
-
const
|
|
4487
|
+
const Ti = /* @__PURE__ */ N(vi, [["render", Mi], ["__scopeId", "data-v-a2bed37e"]]);
|
|
4466
4488
|
let Ee = 0;
|
|
4467
|
-
const
|
|
4489
|
+
const xi = /* @__PURE__ */ new Set([
|
|
4468
4490
|
"text",
|
|
4469
4491
|
"textarea",
|
|
4470
4492
|
"number",
|
|
@@ -4472,7 +4494,7 @@ const Ii = /* @__PURE__ */ new Set([
|
|
|
4472
4494
|
"select",
|
|
4473
4495
|
"multiselect",
|
|
4474
4496
|
"date"
|
|
4475
|
-
]),
|
|
4497
|
+
]), Oi = {
|
|
4476
4498
|
name: "WmFormCard",
|
|
4477
4499
|
components: { AIAvatar: le },
|
|
4478
4500
|
inject: {
|
|
@@ -4502,7 +4524,7 @@ const Ii = /* @__PURE__ */ new Set([
|
|
|
4502
4524
|
// douteux.
|
|
4503
4525
|
normalizedFields() {
|
|
4504
4526
|
var t;
|
|
4505
|
-
return (Array.isArray((t = this.form) == null ? void 0 : t.fields) ? this.form.fields : []).filter((n) => !(!(n != null && n.key) || !(n != null && n.label) || !
|
|
4527
|
+
return (Array.isArray((t = this.form) == null ? void 0 : t.fields) ? this.form.fields : []).filter((n) => !(!(n != null && n.key) || !(n != null && n.label) || !xi.has(n == null ? void 0 : n.type) || (n.type === "select" || n.type === "multiselect") && (!Array.isArray(n.options) || n.options.length === 0)));
|
|
4506
4528
|
}
|
|
4507
4529
|
},
|
|
4508
4530
|
created() {
|
|
@@ -4555,47 +4577,47 @@ const Ii = /* @__PURE__ */ new Set([
|
|
|
4555
4577
|
}
|
|
4556
4578
|
}
|
|
4557
4579
|
}
|
|
4558
|
-
},
|
|
4580
|
+
}, Ii = { class: "wm-form" }, Li = { class: "wm-form__head" }, Ei = { class: "wm-form__icon" }, Bi = { class: "wm-form__main" }, Ri = { class: "wm-form__title" }, Ni = {
|
|
4559
4581
|
key: 0,
|
|
4560
4582
|
class: "wm-form__detail"
|
|
4561
|
-
},
|
|
4583
|
+
}, Pi = ["for"], Ui = {
|
|
4562
4584
|
key: 0,
|
|
4563
4585
|
class: "wm-form__req",
|
|
4564
4586
|
"aria-hidden": "true"
|
|
4565
|
-
},
|
|
4587
|
+
}, Fi = ["id", "onUpdate:modelValue", "placeholder", "required", "disabled"], Di = ["id", "onUpdate:modelValue", "placeholder", "required", "disabled"], ji = ["id", "onUpdate:modelValue", "placeholder", "required", "disabled"], Hi = ["id", "onUpdate:modelValue", "required", "disabled"], zi = {
|
|
4566
4588
|
key: 4,
|
|
4567
4589
|
class: "wm-form__bool"
|
|
4568
|
-
},
|
|
4590
|
+
}, qi = ["id", "onUpdate:modelValue", "disabled"], Ki = ["id", "onUpdate:modelValue", "required", "disabled"], Vi = {
|
|
4569
4591
|
value: "",
|
|
4570
4592
|
disabled: ""
|
|
4571
|
-
},
|
|
4593
|
+
}, $i = ["value"], Wi = {
|
|
4572
4594
|
key: 6,
|
|
4573
4595
|
class: "wm-form__multi"
|
|
4574
|
-
},
|
|
4596
|
+
}, Gi = ["value", "checked", "disabled", "onChange"], Yi = {
|
|
4575
4597
|
key: 0,
|
|
4576
4598
|
class: "wm-form__err"
|
|
4577
|
-
},
|
|
4599
|
+
}, Ji = ["disabled"], Qi = {
|
|
4578
4600
|
key: 0,
|
|
4579
4601
|
class: "wm-form__spinner",
|
|
4580
4602
|
"aria-hidden": "true"
|
|
4581
|
-
},
|
|
4603
|
+
}, Xi = {
|
|
4582
4604
|
key: 2,
|
|
4583
4605
|
class: "wm-form__doneLbl"
|
|
4584
4606
|
};
|
|
4585
|
-
function
|
|
4607
|
+
function Zi(e, t, n, i, r, s) {
|
|
4586
4608
|
const a = R("AIAvatar");
|
|
4587
|
-
return c(), u("div",
|
|
4588
|
-
o("div",
|
|
4589
|
-
o("div",
|
|
4609
|
+
return c(), u("div", Ii, [
|
|
4610
|
+
o("div", Li, [
|
|
4611
|
+
o("div", Ei, [
|
|
4590
4612
|
K(a, {
|
|
4591
4613
|
size: 24,
|
|
4592
4614
|
name: n.agentName,
|
|
4593
4615
|
"image-url": n.agentAvatarUrl
|
|
4594
4616
|
}, null, 8, ["name", "image-url"])
|
|
4595
4617
|
]),
|
|
4596
|
-
o("div",
|
|
4597
|
-
o("div",
|
|
4598
|
-
n.form.description ? (c(), u("div",
|
|
4618
|
+
o("div", Bi, [
|
|
4619
|
+
o("div", Ri, v(n.form.title || s.t("form.title")), 1),
|
|
4620
|
+
n.form.description ? (c(), u("div", Ni, v(n.form.description), 1)) : y("", !0)
|
|
4599
4621
|
])
|
|
4600
4622
|
]),
|
|
4601
4623
|
o("form", {
|
|
@@ -4611,8 +4633,8 @@ function ta(e, t, n, i, r, s) {
|
|
|
4611
4633
|
class: "wm-form__label"
|
|
4612
4634
|
}, [
|
|
4613
4635
|
ye(v(l.label), 1),
|
|
4614
|
-
l.required ? (c(), u("span",
|
|
4615
|
-
], 8,
|
|
4636
|
+
l.required ? (c(), u("span", Ui, "*")) : y("", !0)
|
|
4637
|
+
], 8, Pi),
|
|
4616
4638
|
l.type === "text" ? $((c(), u("input", {
|
|
4617
4639
|
key: 0,
|
|
4618
4640
|
id: `wm-f-${r._uid}-${l.key}`,
|
|
@@ -4622,7 +4644,7 @@ function ta(e, t, n, i, r, s) {
|
|
|
4622
4644
|
placeholder: l.placeholder || "",
|
|
4623
4645
|
required: l.required,
|
|
4624
4646
|
disabled: n.readOnly || r.busy
|
|
4625
|
-
}, null, 8,
|
|
4647
|
+
}, null, 8, Fi)), [
|
|
4626
4648
|
[X, r.values[l.key]]
|
|
4627
4649
|
]) : l.type === "textarea" ? $((c(), u("textarea", {
|
|
4628
4650
|
key: 1,
|
|
@@ -4633,7 +4655,7 @@ function ta(e, t, n, i, r, s) {
|
|
|
4633
4655
|
placeholder: l.placeholder || "",
|
|
4634
4656
|
required: l.required,
|
|
4635
4657
|
disabled: n.readOnly || r.busy
|
|
4636
|
-
}, null, 8,
|
|
4658
|
+
}, null, 8, Di)), [
|
|
4637
4659
|
[X, r.values[l.key]]
|
|
4638
4660
|
]) : l.type === "number" ? $((c(), u("input", {
|
|
4639
4661
|
key: 2,
|
|
@@ -4644,7 +4666,7 @@ function ta(e, t, n, i, r, s) {
|
|
|
4644
4666
|
placeholder: l.placeholder || "",
|
|
4645
4667
|
required: l.required,
|
|
4646
4668
|
disabled: n.readOnly || r.busy
|
|
4647
|
-
}, null, 8,
|
|
4669
|
+
}, null, 8, ji)), [
|
|
4648
4670
|
[
|
|
4649
4671
|
X,
|
|
4650
4672
|
r.values[l.key],
|
|
@@ -4659,15 +4681,15 @@ function ta(e, t, n, i, r, s) {
|
|
|
4659
4681
|
class: "wm-form__input",
|
|
4660
4682
|
required: l.required,
|
|
4661
4683
|
disabled: n.readOnly || r.busy
|
|
4662
|
-
}, null, 8,
|
|
4684
|
+
}, null, 8, Hi)), [
|
|
4663
4685
|
[X, r.values[l.key]]
|
|
4664
|
-
]) : l.type === "boolean" ? (c(), u("label",
|
|
4686
|
+
]) : l.type === "boolean" ? (c(), u("label", zi, [
|
|
4665
4687
|
$(o("input", {
|
|
4666
4688
|
id: `wm-f-${r._uid}-${l.key}`,
|
|
4667
4689
|
"onUpdate:modelValue": (p) => r.values[l.key] = p,
|
|
4668
4690
|
type: "checkbox",
|
|
4669
4691
|
disabled: n.readOnly || r.busy
|
|
4670
|
-
}, null, 8,
|
|
4692
|
+
}, null, 8, qi), [
|
|
4671
4693
|
[ze, r.values[l.key]]
|
|
4672
4694
|
]),
|
|
4673
4695
|
o("span", null, v(l.placeholder || s.t("common.yes")), 1)
|
|
@@ -4679,14 +4701,14 @@ function ta(e, t, n, i, r, s) {
|
|
|
4679
4701
|
required: l.required,
|
|
4680
4702
|
disabled: n.readOnly || r.busy
|
|
4681
4703
|
}, [
|
|
4682
|
-
o("option",
|
|
4704
|
+
o("option", Vi, v(l.placeholder || s.t("form.choose")), 1),
|
|
4683
4705
|
(c(!0), u(E, null, F(l.options, (p) => (c(), u("option", {
|
|
4684
4706
|
key: p.value,
|
|
4685
4707
|
value: p.value
|
|
4686
|
-
}, v(p.label), 9,
|
|
4687
|
-
], 8,
|
|
4708
|
+
}, v(p.label), 9, $i))), 128))
|
|
4709
|
+
], 8, Ki)), [
|
|
4688
4710
|
[qe, r.values[l.key]]
|
|
4689
|
-
]) : l.type === "multiselect" ? (c(), u("div",
|
|
4711
|
+
]) : l.type === "multiselect" ? (c(), u("div", Wi, [
|
|
4690
4712
|
(c(!0), u(E, null, F(l.options, (p) => (c(), u("label", {
|
|
4691
4713
|
key: p.value,
|
|
4692
4714
|
class: "wm-form__multiItem"
|
|
@@ -4701,25 +4723,25 @@ function ta(e, t, n, i, r, s) {
|
|
|
4701
4723
|
p.value,
|
|
4702
4724
|
k.target.checked
|
|
4703
4725
|
)
|
|
4704
|
-
}, null, 40,
|
|
4726
|
+
}, null, 40, Gi),
|
|
4705
4727
|
o("span", null, v(p.label), 1)
|
|
4706
4728
|
]))), 128))
|
|
4707
4729
|
])) : y("", !0)
|
|
4708
4730
|
]))), 128)),
|
|
4709
|
-
r.error ? (c(), u("div",
|
|
4710
|
-
n.readOnly ? (c(), u("div",
|
|
4731
|
+
r.error ? (c(), u("div", Yi, v(r.error), 1)) : y("", !0),
|
|
4732
|
+
n.readOnly ? (c(), u("div", Xi, v(s.t("form.responseSent")), 1)) : (c(), u("button", {
|
|
4711
4733
|
key: 1,
|
|
4712
4734
|
type: "submit",
|
|
4713
4735
|
class: "wm-form__submit",
|
|
4714
4736
|
disabled: r.busy
|
|
4715
4737
|
}, [
|
|
4716
|
-
r.busy ? (c(), u("span",
|
|
4738
|
+
r.busy ? (c(), u("span", Qi)) : y("", !0),
|
|
4717
4739
|
o("span", null, v(r.busy ? s.t("common.sending") : n.form.submit_label || s.t("common.send")), 1)
|
|
4718
|
-
], 8,
|
|
4740
|
+
], 8, Ji))
|
|
4719
4741
|
], 32)
|
|
4720
4742
|
]);
|
|
4721
4743
|
}
|
|
4722
|
-
const
|
|
4744
|
+
const ea = /* @__PURE__ */ N(Oi, [["render", Zi], ["__scopeId", "data-v-fe65cc56"]]), ta = {
|
|
4723
4745
|
name: "WmFeedback",
|
|
4724
4746
|
inject: {
|
|
4725
4747
|
// Translator shared by the Messenger shell; French fallback when
|
|
@@ -4753,13 +4775,13 @@ const na = /* @__PURE__ */ N(Li, [["render", ta], ["__scopeId", "data-v-fe65cc56
|
|
|
4753
4775
|
!this.sel || this.busy || this.$emit("submit", { rating: this.sel });
|
|
4754
4776
|
}
|
|
4755
4777
|
}
|
|
4756
|
-
},
|
|
4778
|
+
}, na = { class: "wm-fb" }, sa = { class: "wm-fb__title" }, ra = { class: "wm-fb__sub" }, ia = { class: "wm-fb__row" }, aa = ["onClick"], oa = { class: "wm-fb__emoji" }, la = { class: "wm-fb__label" }, ca = ["disabled"], da = {
|
|
4757
4779
|
key: 1,
|
|
4758
4780
|
class: "wm-fb__done"
|
|
4759
|
-
},
|
|
4760
|
-
function
|
|
4761
|
-
return c(), u("div",
|
|
4762
|
-
n.done ? (c(), u("div",
|
|
4781
|
+
}, ua = { class: "wm-fb__doneTitle" }, ma = { class: "wm-fb__doneSub" };
|
|
4782
|
+
function ha(e, t, n, i, r, s) {
|
|
4783
|
+
return c(), u("div", na, [
|
|
4784
|
+
n.done ? (c(), u("div", da, [
|
|
4763
4785
|
t[1] || (t[1] = o("div", { class: "wm-fb__check" }, [
|
|
4764
4786
|
o("svg", {
|
|
4765
4787
|
width: "16",
|
|
@@ -4775,32 +4797,32 @@ function _a(e, t, n, i, r, s) {
|
|
|
4775
4797
|
o("path", { d: "M20 6L9 17l-5-5" })
|
|
4776
4798
|
])
|
|
4777
4799
|
], -1)),
|
|
4778
|
-
o("div",
|
|
4779
|
-
o("div",
|
|
4800
|
+
o("div", ua, v(s.t("feedback.doneTitle")), 1),
|
|
4801
|
+
o("div", ma, v(s.t("feedback.doneSubtitle")), 1)
|
|
4780
4802
|
])) : (c(), u(E, { key: 0 }, [
|
|
4781
|
-
o("div",
|
|
4782
|
-
o("div",
|
|
4783
|
-
o("div",
|
|
4803
|
+
o("div", sa, v(s.t("feedback.question")), 1),
|
|
4804
|
+
o("div", ra, v(s.t("feedback.subtitle")), 1),
|
|
4805
|
+
o("div", ia, [
|
|
4784
4806
|
(c(!0), u(E, null, F(s.options, (a) => (c(), u("button", {
|
|
4785
4807
|
key: a.v,
|
|
4786
4808
|
type: "button",
|
|
4787
4809
|
class: O(["wm-fb__opt", { "is-selected": r.sel === a.v }]),
|
|
4788
4810
|
onClick: (l) => r.sel = a.v
|
|
4789
4811
|
}, [
|
|
4790
|
-
o("span",
|
|
4791
|
-
o("span",
|
|
4792
|
-
], 10,
|
|
4812
|
+
o("span", oa, v(a.e), 1),
|
|
4813
|
+
o("span", la, v(a.l), 1)
|
|
4814
|
+
], 10, aa))), 128))
|
|
4793
4815
|
]),
|
|
4794
4816
|
o("button", {
|
|
4795
4817
|
type: "button",
|
|
4796
4818
|
class: "wm-fb__send",
|
|
4797
4819
|
disabled: !r.sel || n.busy,
|
|
4798
4820
|
onClick: t[0] || (t[0] = (...a) => s.onSend && s.onSend(...a))
|
|
4799
|
-
}, v(n.busy ? s.t("common.sending") : s.t("feedback.submit")), 9,
|
|
4821
|
+
}, v(n.busy ? s.t("common.sending") : s.t("feedback.submit")), 9, ca)
|
|
4800
4822
|
], 64))
|
|
4801
4823
|
]);
|
|
4802
4824
|
}
|
|
4803
|
-
const
|
|
4825
|
+
const fa = /* @__PURE__ */ N(ta, [["render", ha], ["__scopeId", "data-v-9b630564"]]), _a = {
|
|
4804
4826
|
name: "WmMoreMenu",
|
|
4805
4827
|
inject: {
|
|
4806
4828
|
// Translator shared by the Messenger shell; French fallback when
|
|
@@ -4843,24 +4865,24 @@ const ga = /* @__PURE__ */ N(sa, [["render", _a], ["__scopeId", "data-v-9b630564
|
|
|
4843
4865
|
this.browserNotifOn = !this.browserNotifOn, this.$emit("browser-notif-toggle", this.browserNotifOn);
|
|
4844
4866
|
}
|
|
4845
4867
|
}
|
|
4846
|
-
},
|
|
4868
|
+
}, ga = { class: "wm-mm" }, pa = {
|
|
4847
4869
|
class: "wm-mm__pop",
|
|
4848
4870
|
role: "menu"
|
|
4849
|
-
},
|
|
4871
|
+
}, va = {
|
|
4850
4872
|
key: 0,
|
|
4851
4873
|
class: "wm-mm__section"
|
|
4852
|
-
},
|
|
4874
|
+
}, ya = { class: "wm-mm__label" }, wa = { class: "wm-mm__label" }, ba = {
|
|
4853
4875
|
key: 1,
|
|
4854
4876
|
class: "wm-mm__sep"
|
|
4855
|
-
},
|
|
4856
|
-
function
|
|
4857
|
-
return c(), u("div",
|
|
4877
|
+
}, ka = { class: "wm-mm__section" }, Ca = { class: "wm-mm__label" }, Aa = { class: "wm-mm__label" }, Sa = { class: "wm-mm__section" }, Ma = { class: "wm-mm__label" }, Ta = { class: "wm-mm__label" };
|
|
4878
|
+
function xa(e, t, n, i, r, s) {
|
|
4879
|
+
return c(), u("div", ga, [
|
|
4858
4880
|
o("div", {
|
|
4859
4881
|
class: "wm-mm__scrim",
|
|
4860
4882
|
onClick: t[0] || (t[0] = (a) => e.$emit("close"))
|
|
4861
4883
|
}),
|
|
4862
|
-
o("div",
|
|
4863
|
-
n.canRename || n.canExport ? (c(), u("div",
|
|
4884
|
+
o("div", pa, [
|
|
4885
|
+
n.canRename || n.canExport ? (c(), u("div", va, [
|
|
4864
4886
|
n.canRename ? (c(), u("button", {
|
|
4865
4887
|
key: 0,
|
|
4866
4888
|
type: "button",
|
|
@@ -4883,7 +4905,7 @@ function Ia(e, t, n, i, r, s) {
|
|
|
4883
4905
|
o("path", { d: "M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4 12.5-12.5z" })
|
|
4884
4906
|
])
|
|
4885
4907
|
], -1)),
|
|
4886
|
-
o("span",
|
|
4908
|
+
o("span", ya, v(s.t("moreMenu.editTitle")), 1)
|
|
4887
4909
|
])) : y("", !0),
|
|
4888
4910
|
n.canExport ? (c(), u("button", {
|
|
4889
4911
|
key: 1,
|
|
@@ -4906,12 +4928,12 @@ function Ia(e, t, n, i, r, s) {
|
|
|
4906
4928
|
o("path", { d: "M4 12v8a2 2 0 002 2h12a2 2 0 002-2v-8M16 6l-4-4-4 4M12 2v13" })
|
|
4907
4929
|
])
|
|
4908
4930
|
], -1)),
|
|
4909
|
-
o("span",
|
|
4931
|
+
o("span", wa, v(s.t("moreMenu.exportTranscript")), 1),
|
|
4910
4932
|
t[9] || (t[9] = o("span", { class: "wm-mm__hint" }, ".txt", -1))
|
|
4911
4933
|
])) : y("", !0)
|
|
4912
4934
|
])) : y("", !0),
|
|
4913
|
-
n.canRename || n.canExport ? (c(), u("div",
|
|
4914
|
-
o("div",
|
|
4935
|
+
n.canRename || n.canExport ? (c(), u("div", ba)) : y("", !0),
|
|
4936
|
+
o("div", ka, [
|
|
4915
4937
|
o("button", {
|
|
4916
4938
|
type: "button",
|
|
4917
4939
|
class: "wm-mm__item",
|
|
@@ -4933,7 +4955,7 @@ function Ia(e, t, n, i, r, s) {
|
|
|
4933
4955
|
o("path", { d: "M15.54 8.46a5 5 0 010 7.07M19.07 4.93a10 10 0 010 14.14" })
|
|
4934
4956
|
])
|
|
4935
4957
|
], -1)),
|
|
4936
|
-
o("span",
|
|
4958
|
+
o("span", Ca, v(s.t("moreMenu.sound")), 1),
|
|
4937
4959
|
o("span", {
|
|
4938
4960
|
class: O(["wm-mm__toggle", { "wm-mm__toggle--on": r.soundOn }])
|
|
4939
4961
|
}, [...t[10] || (t[10] = [
|
|
@@ -4960,7 +4982,7 @@ function Ia(e, t, n, i, r, s) {
|
|
|
4960
4982
|
o("path", { d: "M15 17h5l-1.4-1.4A2 2 0 0118 14.2V11a6 6 0 10-12 0v3.2c0 .5-.2 1-.6 1.4L4 17h5m6 0a3 3 0 11-6 0" })
|
|
4961
4983
|
])
|
|
4962
4984
|
], -1)),
|
|
4963
|
-
o("span",
|
|
4985
|
+
o("span", Aa, v(s.t("moreMenu.browserNotifications")), 1),
|
|
4964
4986
|
o("span", {
|
|
4965
4987
|
class: O(["wm-mm__toggle", { "wm-mm__toggle--on": r.browserNotifOn }])
|
|
4966
4988
|
}, [...t[12] || (t[12] = [
|
|
@@ -4969,7 +4991,7 @@ function Ia(e, t, n, i, r, s) {
|
|
|
4969
4991
|
])
|
|
4970
4992
|
]),
|
|
4971
4993
|
t[16] || (t[16] = o("div", { class: "wm-mm__sep" }, null, -1)),
|
|
4972
|
-
o("div",
|
|
4994
|
+
o("div", Sa, [
|
|
4973
4995
|
n.statusUrl ? (c(), u("button", {
|
|
4974
4996
|
key: 0,
|
|
4975
4997
|
type: "button",
|
|
@@ -4991,7 +5013,7 @@ function Ia(e, t, n, i, r, s) {
|
|
|
4991
5013
|
o("path", { d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zM10 6v4l3 2" })
|
|
4992
5014
|
])
|
|
4993
5015
|
], -1)),
|
|
4994
|
-
o("span",
|
|
5016
|
+
o("span", Ma, v(s.t("moreMenu.serviceStatus")), 1)
|
|
4995
5017
|
])) : y("", !0),
|
|
4996
5018
|
n.helpUrl ? (c(), u("button", {
|
|
4997
5019
|
key: 1,
|
|
@@ -5014,13 +5036,13 @@ function Ia(e, t, n, i, r, s) {
|
|
|
5014
5036
|
o("path", { d: "M9 11a3 3 0 116 0c0 2-3 2-3 5M12 19h.01M12 22a10 10 0 110-20 10 10 0 010 20z" })
|
|
5015
5037
|
])
|
|
5016
5038
|
], -1)),
|
|
5017
|
-
o("span",
|
|
5039
|
+
o("span", Ta, v(s.t("moreMenu.helpCenter")), 1)
|
|
5018
5040
|
])) : y("", !0)
|
|
5019
5041
|
])
|
|
5020
5042
|
])
|
|
5021
5043
|
]);
|
|
5022
5044
|
}
|
|
5023
|
-
const
|
|
5045
|
+
const Oa = /* @__PURE__ */ N(_a, [["render", xa], ["__scopeId", "data-v-76281e95"]]), Ia = {
|
|
5024
5046
|
name: "WmRenameDialog",
|
|
5025
5047
|
inject: {
|
|
5026
5048
|
// Translator shared by the Messenger shell; French fallback when
|
|
@@ -5062,20 +5084,20 @@ const La = /* @__PURE__ */ N(pa, [["render", Ia], ["__scopeId", "data-v-76281e95
|
|
|
5062
5084
|
this.canSubmit && this.$emit("submit", this.value.trim());
|
|
5063
5085
|
}
|
|
5064
5086
|
}
|
|
5065
|
-
},
|
|
5087
|
+
}, La = { class: "wm-dialog" }, Ea = {
|
|
5066
5088
|
class: "wm-dialog__card",
|
|
5067
5089
|
role: "dialog",
|
|
5068
5090
|
"aria-modal": "true"
|
|
5069
|
-
},
|
|
5070
|
-
function
|
|
5071
|
-
return c(), u("div",
|
|
5091
|
+
}, Ba = { class: "wm-dialog__head" }, Ra = { class: "wm-dialog__title" }, Na = ["aria-label"], Pa = { class: "wm-dialog__body" }, Ua = ["placeholder"], Fa = { class: "wm-dialog__actions" }, Da = ["disabled"];
|
|
5092
|
+
function ja(e, t, n, i, r, s) {
|
|
5093
|
+
return c(), u("div", La, [
|
|
5072
5094
|
o("div", {
|
|
5073
5095
|
class: "wm-dialog__scrim",
|
|
5074
5096
|
onClick: t[0] || (t[0] = (a) => e.$emit("close"))
|
|
5075
5097
|
}),
|
|
5076
|
-
o("div",
|
|
5077
|
-
o("div",
|
|
5078
|
-
o("div",
|
|
5098
|
+
o("div", Ea, [
|
|
5099
|
+
o("div", Ba, [
|
|
5100
|
+
o("div", Ra, v(n.title || s.t("rename.title")), 1),
|
|
5079
5101
|
o("button", {
|
|
5080
5102
|
type: "button",
|
|
5081
5103
|
class: "wm-dialog__close",
|
|
@@ -5095,9 +5117,9 @@ function za(e, t, n, i, r, s) {
|
|
|
5095
5117
|
}, [
|
|
5096
5118
|
o("path", { d: "M18 6L6 18M6 6l12 12" })
|
|
5097
5119
|
], -1)
|
|
5098
|
-
])], 8,
|
|
5120
|
+
])], 8, Na)
|
|
5099
5121
|
]),
|
|
5100
|
-
o("div",
|
|
5122
|
+
o("div", Pa, [
|
|
5101
5123
|
$(o("input", {
|
|
5102
5124
|
ref: "input",
|
|
5103
5125
|
"onUpdate:modelValue": t[2] || (t[2] = (a) => r.value = a),
|
|
@@ -5109,11 +5131,11 @@ function za(e, t, n, i, r, s) {
|
|
|
5109
5131
|
t[3] || (t[3] = ue(G((...a) => s.onSubmit && s.onSubmit(...a), ["prevent"]), ["enter"])),
|
|
5110
5132
|
t[4] || (t[4] = ue(G((a) => e.$emit("close"), ["prevent"]), ["esc"]))
|
|
5111
5133
|
]
|
|
5112
|
-
}, null, 40,
|
|
5134
|
+
}, null, 40, Ua), [
|
|
5113
5135
|
[X, r.value]
|
|
5114
5136
|
])
|
|
5115
5137
|
]),
|
|
5116
|
-
o("div",
|
|
5138
|
+
o("div", Fa, [
|
|
5117
5139
|
o("button", {
|
|
5118
5140
|
type: "button",
|
|
5119
5141
|
class: "wm-dialog__btn",
|
|
@@ -5124,25 +5146,25 @@ function za(e, t, n, i, r, s) {
|
|
|
5124
5146
|
class: "wm-dialog__btn wm-dialog__btn--primary",
|
|
5125
5147
|
disabled: !s.canSubmit,
|
|
5126
5148
|
onClick: t[6] || (t[6] = (...a) => s.onSubmit && s.onSubmit(...a))
|
|
5127
|
-
}, v(s.t("common.save")), 9,
|
|
5149
|
+
}, v(s.t("common.save")), 9, Da)
|
|
5128
5150
|
])
|
|
5129
5151
|
])
|
|
5130
5152
|
]);
|
|
5131
5153
|
}
|
|
5132
|
-
const
|
|
5154
|
+
const Ha = /* @__PURE__ */ N(Ia, [["render", ja], ["__scopeId", "data-v-6d5f94a8"]]), Be = "ww-messenger-tokens", za = {
|
|
5133
5155
|
name: "Messenger",
|
|
5134
5156
|
components: {
|
|
5135
5157
|
Launcher: Ut,
|
|
5136
5158
|
Header: cn,
|
|
5137
|
-
Onboarding:
|
|
5138
|
-
MessageList:
|
|
5139
|
-
Composer:
|
|
5140
|
-
SuggestionChips:
|
|
5141
|
-
ApprovalCard:
|
|
5142
|
-
FormCard:
|
|
5143
|
-
Feedback:
|
|
5144
|
-
MoreMenu:
|
|
5145
|
-
RenameDialog:
|
|
5159
|
+
Onboarding: ts,
|
|
5160
|
+
MessageList: Gr,
|
|
5161
|
+
Composer: hi,
|
|
5162
|
+
SuggestionChips: pi,
|
|
5163
|
+
ApprovalCard: Ti,
|
|
5164
|
+
FormCard: ea,
|
|
5165
|
+
Feedback: fa,
|
|
5166
|
+
MoreMenu: Oa,
|
|
5167
|
+
RenameDialog: Ha
|
|
5146
5168
|
},
|
|
5147
5169
|
mixins: [
|
|
5148
5170
|
lt,
|
|
@@ -6140,28 +6162,28 @@ const qa = /* @__PURE__ */ N(Ea, [["render", za], ["__scopeId", "data-v-6d5f94a8
|
|
|
6140
6162
|
}
|
|
6141
6163
|
}
|
|
6142
6164
|
}
|
|
6143
|
-
},
|
|
6165
|
+
}, qa = {
|
|
6144
6166
|
key: 0,
|
|
6145
6167
|
class: "wm-loading",
|
|
6146
6168
|
"aria-busy": "true",
|
|
6147
6169
|
"aria-live": "polite"
|
|
6148
|
-
},
|
|
6170
|
+
}, Ka = ["aria-label"], Va = {
|
|
6149
6171
|
key: 0,
|
|
6150
6172
|
class: "wm-state"
|
|
6151
|
-
},
|
|
6173
|
+
}, $a = { class: "wm-state__err" }, Wa = { class: "wm-state__errTitle" }, Ga = { class: "wm-state__errSub" }, Ya = { class: "wm-bottom" }, Ja = {
|
|
6152
6174
|
key: 0,
|
|
6153
6175
|
ref: "floatEl",
|
|
6154
6176
|
class: "wm-float"
|
|
6155
|
-
},
|
|
6177
|
+
}, Qa = {
|
|
6156
6178
|
key: 1,
|
|
6157
6179
|
class: "wm-actionWait",
|
|
6158
6180
|
role: "status",
|
|
6159
6181
|
"aria-live": "polite"
|
|
6160
|
-
},
|
|
6182
|
+
}, Xa = { class: "wm-actionWait__lbl" }, Za = {
|
|
6161
6183
|
key: 2,
|
|
6162
6184
|
class: "wm-attached"
|
|
6163
|
-
},
|
|
6164
|
-
function
|
|
6185
|
+
}, eo = ["aria-label", "onClick"];
|
|
6186
|
+
function to(e, t, n, i, r, s) {
|
|
6165
6187
|
const a = R("Launcher"), l = R("Header"), p = R("Onboarding"), k = R("MessageList"), w = R("ApprovalCard"), T = R("FormCard"), B = R("Feedback"), A = R("SuggestionChips"), H = R("Composer"), S = R("MoreMenu"), U = R("RenameDialog");
|
|
6166
6188
|
return c(), u("div", {
|
|
6167
6189
|
class: O(["wm-root", `wm-root--${n.displayMode}`]),
|
|
@@ -6187,7 +6209,7 @@ function so(e, t, n, i, r, s) {
|
|
|
6187
6209
|
"aria-label": "Messenger",
|
|
6188
6210
|
onClick: t[5] || (t[5] = (...I) => s.onPanelClick && s.onPanelClick(...I))
|
|
6189
6211
|
}, [
|
|
6190
|
-
!s.ready && !s.error ? (c(), u("div",
|
|
6212
|
+
!s.ready && !s.error ? (c(), u("div", qa, [
|
|
6191
6213
|
s.isEmbedded ? y("", !0) : (c(), u("button", {
|
|
6192
6214
|
key: 0,
|
|
6193
6215
|
type: "button",
|
|
@@ -6208,7 +6230,7 @@ function so(e, t, n, i, r, s) {
|
|
|
6208
6230
|
}, [
|
|
6209
6231
|
o("path", { d: "M18 6L6 18M6 6l12 12" })
|
|
6210
6232
|
], -1)
|
|
6211
|
-
])], 8,
|
|
6233
|
+
])], 8, Ka)),
|
|
6212
6234
|
t[7] || (t[7] = o("div", {
|
|
6213
6235
|
class: "wm-loading__spinner",
|
|
6214
6236
|
"aria-hidden": "true"
|
|
@@ -6228,8 +6250,8 @@ function so(e, t, n, i, r, s) {
|
|
|
6228
6250
|
onMore: s.toggleMore,
|
|
6229
6251
|
onClose: s.close
|
|
6230
6252
|
}, null, 8, ["title", "team-members", "response-label", "show-identity", "show-back", "show-close", "more-active", "agent-name", "agent-avatar-url", "onBack", "onMore", "onClose"]),
|
|
6231
|
-
s.error ? (c(), u("div",
|
|
6232
|
-
o("div",
|
|
6253
|
+
s.error ? (c(), u("div", Va, [
|
|
6254
|
+
o("div", $a, [
|
|
6233
6255
|
t[8] || (t[8] = o("div", { class: "wm-state__errIcon" }, [
|
|
6234
6256
|
o("svg", {
|
|
6235
6257
|
width: "14",
|
|
@@ -6246,8 +6268,8 @@ function so(e, t, n, i, r, s) {
|
|
|
6246
6268
|
])
|
|
6247
6269
|
], -1)),
|
|
6248
6270
|
o("div", null, [
|
|
6249
|
-
o("div",
|
|
6250
|
-
o("div",
|
|
6271
|
+
o("div", Wa, v(s.t("error.connectionFailed")), 1),
|
|
6272
|
+
o("div", Ga, v(s.error), 1)
|
|
6251
6273
|
])
|
|
6252
6274
|
])
|
|
6253
6275
|
])) : s.currentConv ? (c(), u(E, { key: 2 }, [
|
|
@@ -6265,8 +6287,8 @@ function so(e, t, n, i, r, s) {
|
|
|
6265
6287
|
"ai-agent-avatar-url": s.agentAvatarUrl,
|
|
6266
6288
|
onLoadMore: s.onLoadMore
|
|
6267
6289
|
}, null, 8, ["messages", "streaming-active", "date-label", "conversation-id", "loading-more", "has-more", "unread-anchor-id", "unread-boundary-ts", "ai-agent-name", "ai-agent-avatar-url", "onLoadMore"]),
|
|
6268
|
-
o("div",
|
|
6269
|
-
s.floatVisible ? (c(), u("div",
|
|
6290
|
+
o("div", Ya, [
|
|
6291
|
+
s.floatVisible ? (c(), u("div", Ja, [
|
|
6270
6292
|
s.approvalReady ? (c(), P(w, {
|
|
6271
6293
|
key: 0,
|
|
6272
6294
|
action: s.approvalTitle,
|
|
@@ -6292,12 +6314,12 @@ function so(e, t, n, i, r, s) {
|
|
|
6292
6314
|
onSelect: s.onSuggestion
|
|
6293
6315
|
}, null, 8, ["items", "onSelect"]))
|
|
6294
6316
|
], 512)) : y("", !0),
|
|
6295
|
-
s.actionInFlight ? (c(), u("div",
|
|
6317
|
+
s.actionInFlight ? (c(), u("div", Qa, [
|
|
6296
6318
|
t[9] || (t[9] = o("span", {
|
|
6297
6319
|
class: "wm-actionWait__spinner",
|
|
6298
6320
|
"aria-hidden": "true"
|
|
6299
6321
|
}, null, -1)),
|
|
6300
|
-
o("span",
|
|
6322
|
+
o("span", Xa, v(s.t("action.inProgress", {
|
|
6301
6323
|
name: s.actionInFlightName
|
|
6302
6324
|
})), 1)
|
|
6303
6325
|
])) : (c(), P(H, {
|
|
@@ -6333,7 +6355,7 @@ function so(e, t, n, i, r, s) {
|
|
|
6333
6355
|
onClose: t[3] || (t[3] = (I) => r.renameDialogOpen = !1),
|
|
6334
6356
|
onSubmit: s.onRenameSubmit
|
|
6335
6357
|
}, null, 8, ["initial-value", "title", "onSubmit"])) : y("", !0),
|
|
6336
|
-
r.pendingAttachments.length ? (c(), u("div",
|
|
6358
|
+
r.pendingAttachments.length ? (c(), u("div", Za, [
|
|
6337
6359
|
(c(!0), u(E, null, F(r.pendingAttachments, (I, q) => (c(), u("div", {
|
|
6338
6360
|
key: q,
|
|
6339
6361
|
class: "wm-attached__chip"
|
|
@@ -6370,7 +6392,7 @@ function so(e, t, n, i, r, s) {
|
|
|
6370
6392
|
}, [
|
|
6371
6393
|
o("path", { d: "M18 6L6 18M6 6l12 12" })
|
|
6372
6394
|
], -1)
|
|
6373
|
-
])], 8,
|
|
6395
|
+
])], 8, eo)
|
|
6374
6396
|
]))), 128))
|
|
6375
6397
|
])) : y("", !0)
|
|
6376
6398
|
], 64)) : (c(), P(p, {
|
|
@@ -6403,53 +6425,53 @@ function so(e, t, n, i, r, s) {
|
|
|
6403
6425
|
], 6)) : y("", !0)
|
|
6404
6426
|
], 6);
|
|
6405
6427
|
}
|
|
6406
|
-
const
|
|
6428
|
+
const ro = /* @__PURE__ */ N(za, [["render", to], ["__scopeId", "data-v-f715675c"]]), io = "0.5.38";
|
|
6407
6429
|
export {
|
|
6408
6430
|
le as AIAvatar,
|
|
6409
6431
|
_e as AVATAR_COLORS,
|
|
6410
|
-
|
|
6411
|
-
|
|
6412
|
-
|
|
6413
|
-
|
|
6414
|
-
|
|
6415
|
-
|
|
6416
|
-
|
|
6417
|
-
|
|
6418
|
-
|
|
6432
|
+
hs as ActionResult,
|
|
6433
|
+
Ti as ApprovalCard,
|
|
6434
|
+
ks as ArtifactFormResponse,
|
|
6435
|
+
Ns as ArtifactInfoCard,
|
|
6436
|
+
er as ArtifactRenderer,
|
|
6437
|
+
Js as ArtifactTicket,
|
|
6438
|
+
mr as AttachmentPreview,
|
|
6439
|
+
gr as Bubble,
|
|
6440
|
+
hi as Composer,
|
|
6419
6441
|
et as DEFAULT_BASE_URL,
|
|
6420
6442
|
ae as DEFAULT_LANGUAGE,
|
|
6421
|
-
|
|
6422
|
-
|
|
6443
|
+
fa as Feedback,
|
|
6444
|
+
ea as FormCard,
|
|
6423
6445
|
cn as Header,
|
|
6424
6446
|
Ce as HumanAvatar,
|
|
6425
6447
|
Ut as Launcher,
|
|
6426
6448
|
Ae as MEDIA_RECORDER_SUPPORTED,
|
|
6427
|
-
|
|
6428
|
-
|
|
6429
|
-
|
|
6430
|
-
|
|
6431
|
-
|
|
6449
|
+
Gr as MessageList,
|
|
6450
|
+
ro as Messenger,
|
|
6451
|
+
Oa as MoreMenu,
|
|
6452
|
+
ts as Onboarding,
|
|
6453
|
+
me as SCREEN_CAPTURE_SUPPORTED,
|
|
6432
6454
|
tt as SUPPORTED_LANGUAGES,
|
|
6433
|
-
|
|
6455
|
+
pi as SuggestionChips,
|
|
6434
6456
|
Yt as TeamAvatars,
|
|
6435
|
-
|
|
6436
|
-
|
|
6457
|
+
wr as Typing,
|
|
6458
|
+
io as VERSION,
|
|
6437
6459
|
we as avatarColor,
|
|
6438
6460
|
be as avatarInitials,
|
|
6439
|
-
|
|
6461
|
+
Jr as captureScreenshotFile,
|
|
6440
6462
|
j as colors,
|
|
6441
6463
|
Xe as createStore,
|
|
6442
6464
|
D as createTranslator,
|
|
6443
6465
|
Ge as createTransport,
|
|
6444
6466
|
re as dateLocale,
|
|
6445
|
-
|
|
6467
|
+
ro as default,
|
|
6446
6468
|
ve as formatTime,
|
|
6447
|
-
|
|
6448
|
-
|
|
6469
|
+
so as guessAttachmentKind,
|
|
6470
|
+
Yr as pickRecorderMime,
|
|
6449
6471
|
un as renderInlineMarkdown,
|
|
6450
|
-
|
|
6472
|
+
mn as renderMarkdown,
|
|
6451
6473
|
ke as resolveLanguage,
|
|
6452
|
-
|
|
6474
|
+
Xr as startScreenRecording,
|
|
6453
6475
|
Ze as tokensCss,
|
|
6454
6476
|
Qe as uuid,
|
|
6455
6477
|
Qe as v4
|