@_solaris/messenger-widget 0.5.37 → 0.5.39

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/messenger.js CHANGED
@@ -1,4 +1,4 @@
1
- import { reactive as je, openBlock as c, createElementBlock as u, normalizeStyle as z, normalizeClass as O, toDisplayString as v, resolveComponent as R, createVNode as K, Transition as Re, withCtx as Ne, Fragment as E, renderList as F, withKeys as ue, withModifiers as G, createElementVNode as o, createCommentVNode as y, createBlock as P, resolveDynamicComponent as pe, mergeProps as Se, withDirectives as $, vModelText as X, createTextVNode as ye, renderSlot as He, vModelCheckbox as ze, vModelSelect as qe, markRaw as Me } from "vue";
1
+ import { reactive as je, openBlock as c, createElementBlock as u, normalizeStyle as q, normalizeClass as O, toDisplayString as v, resolveComponent as R, createVNode as K, Transition as Re, withCtx as Ne, Fragment as E, renderList as F, withKeys as ue, withModifiers as G, createElementVNode as o, createCommentVNode as y, createBlock as P, resolveDynamicComponent as pe, mergeProps as Se, withDirectives as $, vModelText as X, createTextVNode as ye, renderSlot as He, vModelCheckbox as ze, vModelSelect as qe, markRaw as Me } from "vue";
2
2
  const Ke = [
3
3
  "connected",
4
4
  "message",
@@ -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 = m, document.addEventListener(
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;
@@ -191,7 +191,7 @@ function Ge(e) {
191
191
  `/conversations/${encodeURIComponent(d)}/messages${b}`
192
192
  );
193
193
  }
194
- async function q(d, f) {
194
+ async function z(d, f) {
195
195
  se();
196
196
  const g = {
197
197
  client_msg_id: f.client_msg_id,
@@ -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 me() {
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
- h(), !(typeof document < "u" && document.hidden) && (t.pollTimer = setInterval(me, Ve));
290
+ m(), !(typeof document < "u" && document.hidden) && (t.pollTimer = setInterval(he, Ve));
291
291
  }
292
- function h() {
292
+ function m() {
293
293
  t.pollTimer && (clearInterval(t.pollTimer), t.pollTimer = null);
294
294
  }
295
- function m() {
295
+ function h() {
296
296
  if (document.hidden)
297
297
  clearTimeout(t.hiddenGraceTimer), t.hiddenGraceTimer = setTimeout(() => {
298
- t.hiddenGraceTimer = null, document.hidden && (h(), J(), r("paused"));
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
- h(), clearTimeout(t.burstTimer), clearTimeout(t.hiddenGraceTimer), t.hiddenGraceTimer = null, J(), t.visibilityHandler && (document.removeEventListener(
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;
@@ -325,7 +325,7 @@ function Ge(e) {
325
325
  patchConversation: S,
326
326
  markConversationRead: U,
327
327
  listMessages: I,
328
- postMessage: q,
328
+ postMessage: z,
329
329
  postCallback: Y,
330
330
  uploadAttachment: Z,
331
331
  signAttachment: ee,
@@ -386,48 +386,48 @@ function Xe(e) {
386
386
  connection: "idle"
387
387
  }), n = [];
388
388
  n.push(
389
- e.on("connection", (h) => {
390
- t.connection = h;
389
+ e.on("connection", (m) => {
390
+ t.connection = m;
391
391
  })
392
392
  ), n.push(
393
- e.on("message", (h) => {
394
- const m = h == null ? void 0 : h.conversation_id, _ = h == null ? void 0 : h.message;
395
- !m || !(_ != null && _.id) || (V(m, _), _.client_msg_id && delete t.streamingByMsgId[_.client_msg_id], se(m, _.created_at));
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", (h) => {
399
- const m = h == null ? void 0 : h.message_id, _ = h == null ? void 0 : h.token;
400
- !m || typeof _ != "string" || (t.streamingByMsgId[m] = (t.streamingByMsgId[m] || "") + _);
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", (h) => {
404
- const m = h == null ? void 0 : h.conversation_id, _ = h == null ? void 0 : h.changes;
405
- if (!m || !_) return;
406
- const d = t.conversations.findIndex((f) => f.id === m);
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", (h) => {
414
- h != null && h.config && (t.config = h.config);
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", (h) => {
418
- const m = h == null ? void 0 : h.conversation_id, _ = h == null ? void 0 : h.action_id, d = h == null ? void 0 : h.action_name;
419
- if (!m || !_) return;
420
- const f = t.runningActionsByConv[m] || {};
421
- h.state === "running" ? (f[_] = d || _, t.runningActionsByConv[m] = { ...f }) : h.state === "done" && (delete f[_], t.runningActionsByConv[m] = { ...f });
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", (h) => {
425
- Array.isArray(h == null ? void 0 : h.conversations) && (t.conversations = h.conversations);
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(h) {
428
+ async function i(m) {
429
429
  try {
430
- const m = new Promise(
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(h),
441
- m
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
- m
445
+ h
446
446
  ]), t.ready = !0;
447
- } catch (m) {
448
- console.error("[store] start failed", m), t.error = (m == null ? void 0 : m.message) || String(m);
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 h of n)
452
+ for (const m of n)
453
453
  try {
454
- h();
454
+ m();
455
455
  } catch {
456
456
  }
457
457
  e.stop();
458
458
  }
459
- async function s(h) {
460
- const m = me(h);
461
- if (!m) return t.customer;
459
+ async function s(m) {
460
+ const h = he(m);
461
+ if (!h) return t.customer;
462
462
  try {
463
- const _ = await e.patchCustomer(m);
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(h = {}) {
471
- const m = await e.createConversation(h), _ = t.conversations.findIndex((d) => d.id === m.id);
472
- return _ === -1 ? t.conversations = [m, ...t.conversations] : t.conversations[_] = m, m;
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(h) {
476
- const m = t.paginationByConv[h];
477
- if (!(m != null && m.loaded || m != null && m.loading)) {
478
- w(h, { nextCursor: null, loading: !0, loaded: !1 });
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(h, {
480
+ const _ = await e.listMessages(m, {
481
481
  limit: l
482
- }), d = (_ == null ? void 0 : _.messages) ?? [], f = t.messagesByConv[h] || [], g = /* @__PURE__ */ new Set();
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[h] = [...d, ...b].sort(
486
+ t.messagesByConv[m] = [...d, ...b].sort(
487
487
  ce
488
- ), w(h, {
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(h, {
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(h) {
502
+ async function k(m) {
503
503
  var f;
504
- const m = t.paginationByConv[h];
505
- if (!m || m.loading || !m.nextCursor) return;
506
- const d = (f = (t.messagesByConv[h] || []).find((g) => g == null ? void 0 : g.created_at)) == null ? void 0 : f.created_at;
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(h, { ...m, loading: !0 });
508
+ w(m, { ...h, loading: !0 });
509
509
  try {
510
- const g = await e.listMessages(h, {
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[h] || [], M = /* @__PURE__ */ new Set();
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[h] = [...L, ...C], w(h, {
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(h, { ...m, loading: !1 });
523
+ console.error("[store] loadMore failed", g), w(m, { ...h, loading: !1 });
524
524
  }
525
525
  }
526
526
  }
527
- function w(h, m) {
528
- t.paginationByConv = { ...t.paginationByConv, [h]: m };
527
+ function w(m, h) {
528
+ t.paginationByConv = { ...t.paginationByConv, [m]: h };
529
529
  }
530
- async function T(h, m) {
531
- const _ = await e.patchConversation(h, m), d = t.conversations.findIndex((f) => f.id === h);
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(h) {
535
- if (!h) return [];
536
- const m = t.messagesByConv[h] || [];
534
+ async function B(m) {
535
+ if (!m) return [];
536
+ const h = t.messagesByConv[m] || [];
537
537
  let _ = "";
538
- for (const d of m)
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
- h,
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 m)
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(h, M), L || C.push(M);
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(h, m) {
560
- if (!(!h || m == null))
559
+ async function A(m, h) {
560
+ if (!(!m || h == null))
561
561
  try {
562
- const _ = await e.markConversationRead(h, m), d = (_ == null ? void 0 : _.last_read_message_id) ?? m, f = t.conversations.findIndex((g) => (g == null ? void 0 : g.id) === h);
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(h, m, { attachments: _, metadata: d } = {}) {
571
+ async function H(m, h, { attachments: _, metadata: d } = {}) {
572
572
  var L;
573
- const f = (m || "").trim(), g = Array.isArray(_) && _.length > 0;
574
- if (!h || !f && !g) return;
575
- const b = Qe(), C = de(h), M = {
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: h,
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(h, M);
591
+ V(m, M);
592
592
  try {
593
- await e.postMessage(h, {
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(h, b, {
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(h, m, _) {
608
- h != null && (t.awaitingCallback[h] = !0);
607
+ async function S(m, h, _) {
608
+ m != null && (t.awaitingCallback[m] = !0);
609
609
  try {
610
- await e.postCallback(h, m, _);
610
+ await e.postCallback(m, h, _);
611
611
  } catch (d) {
612
- console.error("[store] callback failed", d), h != null && delete t.awaitingCallback[h];
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(h) {
617
- if (!h) return null;
618
- const m = U.get(h);
619
- if (m != null && m.url) {
620
- const _ = m.expires_at ? Date.parse(m.expires_at) : 0;
621
- if (!_ || _ - Date.now() > 6e4) return m.url;
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(h);
624
+ const _ = await e.signAttachment(m);
625
625
  if (_ != null && _.signed_url)
626
- return U.set(h, {
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(h, { rating: m, comment: _ } = {}) {
636
- const d = t.conversations.find((b) => b.id === h), g = {
635
+ async function z(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: m,
639
+ rating: h,
640
640
  comment: _ || null,
641
641
  submitted_at: (/* @__PURE__ */ new Date()).toISOString()
642
642
  }
643
643
  };
644
- await T(h, { metadata: g });
644
+ await T(m, { metadata: g });
645
645
  }
646
- function Y(h) {
646
+ function Y(m) {
647
647
  var _, d;
648
- const m = t.messagesByConv[h] || [];
649
- for (let f = m.length - 1; f >= 0; f--) {
650
- const g = m[f];
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(h) {
656
+ function Z(m) {
657
657
  var _, d, f;
658
- const m = t.messagesByConv[h] || [];
659
- for (let g = m.length - 1; g >= 0; g--) {
660
- const b = m[g];
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(h) {
670
- const m = t.runningActionsByConv[h];
671
- if (!m) return null;
672
- const _ = Object.keys(m);
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: m[d] } };
675
+ return { id: d, payload: { name: h[d] } };
676
676
  }
677
- function te(h) {
677
+ function te(m) {
678
678
  var _, d, f, g;
679
- const m = t.messagesByConv[h] || [];
680
- for (let b = m.length - 1; b >= 0; b--) {
681
- const C = m[b];
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(h, m) {
703
+ function V(m, h) {
704
704
  var g;
705
- const _ = t.messagesByConv[h] || [];
705
+ const _ = t.messagesByConv[m] || [];
706
706
  let d = -1;
707
- m != null && m.client_msg_id && (d = _.findIndex(
708
- (b) => (b == null ? void 0 : b.client_msg_id) && b.client_msg_id === m.client_msg_id
709
- )), d === -1 && (m == null ? void 0 : m.id) !== void 0 && (m == null ? void 0 : m.id) !== null && (d = _.findIndex((b) => ne(b == null ? void 0 : b.id, m.id)));
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 = [..._, m].sort(ce) : (f = _.slice(), f[d] = {
711
+ d === -1 ? f = [..._, h].sort(ce) : (f = _.slice(), f[d] = {
712
712
  ..._[d],
713
- ...m,
713
+ ...h,
714
714
  _pending: !1,
715
715
  _failed: !1
716
- }), t.messagesByConv[h] = f, (m == null ? void 0 : m.type) === "action" && ((g = m == null ? void 0 : m.payload) != null && g.state) && m.payload.state !== "pending" && (m == null ? void 0 : m.id) != null && t.awaitingCallback[m.id] && delete t.awaitingCallback[m.id];
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(h, m) {
719
- return h === m ? !0 : h == null || m == null ? !1 : String(h) === String(m);
718
+ function ne(m, h) {
719
+ return m === h ? !0 : m == null || h == null ? !1 : String(m) === String(h);
720
720
  }
721
- function J(h, m, _) {
722
- const d = t.messagesByConv[h];
721
+ function J(m, h, _) {
722
+ const d = t.messagesByConv[m];
723
723
  if (!d) return;
724
- const f = d.findIndex((b) => b.id === m);
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[h] = g;
727
+ g[f] = { ...d[f], ..._ }, t.messagesByConv[m] = g;
728
728
  }
729
- function se(h, m) {
730
- const _ = t.conversations.findIndex((f) => f.id === h);
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 (m && (!d.last_message_at || m > d.last_message_at)) {
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: m }, f.sort(
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(h, m) {
741
- return (h.created_at || "").localeCompare(m.created_at || "");
740
+ function ce(m, h) {
741
+ return (m.created_at || "").localeCompare(h.created_at || "");
742
742
  }
743
- function me(h) {
744
- if (!h || typeof h != "object") return null;
745
- const m = {}, _ = {};
746
- for (const [d, f] of Object.entries(h))
747
- f !== void 0 && (d === "name" || d === "email" || d === "language" ? f != null && String(f).trim() !== "" && (m[d] = f) : (d === "values" || d === "metadata") && f && typeof f == "object" ? Object.assign(_, f) : _[d] = f);
748
- return Object.keys(_).length && (m.values = _), Object.keys(m).length ? m : null;
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(h) {
751
- const m = t.messagesByConv[h] || [];
750
+ function de(m) {
751
+ const h = t.messagesByConv[m] || [];
752
752
  let _ = "";
753
- for (const g of m)
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();
@@ -769,7 +769,7 @@ function Xe(e) {
769
769
  send: H,
770
770
  clickCallback: S,
771
771
  signAttachment: I,
772
- submitFeedback: q,
772
+ submitFeedback: z,
773
773
  getPendingApproval: Y,
774
774
  getActionInFlight: ee,
775
775
  getLatestSuggestions: te,
@@ -1386,7 +1386,7 @@ const lt = {
1386
1386
  }
1387
1387
  }
1388
1388
  }
1389
- }, ct = 450, dt = 50, ut = 900, ht = 12e3, mt = 300, ft = {
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
- ht,
1498
+ mt,
1499
1499
  Math.max(ut, i * dt)
1500
1500
  ), a = Math.max(
1501
1501
  n + ct,
1502
- this.nextRevealAt + mt
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(() => {
@@ -1672,7 +1672,7 @@ const N = (e, t) => {
1672
1672
  function bt(e, t, n, i, r, s) {
1673
1673
  return c(), u("div", {
1674
1674
  class: O(["wm-huav", { "wm-huav--tail": n.tail }]),
1675
- style: z({
1675
+ style: q({
1676
1676
  width: n.size + "px",
1677
1677
  height: n.size + "px",
1678
1678
  "--wm-avr": Math.round(n.size * 0.32) + "px",
@@ -1685,7 +1685,7 @@ function bt(e, t, n, i, r, s) {
1685
1685
  alt: n.name || ""
1686
1686
  }, null, 8, wt)) : (c(), u("span", {
1687
1687
  key: 1,
1688
- style: z({ fontSize: n.size * 0.36 + "px" })
1688
+ style: q({ fontSize: n.size * 0.36 + "px" })
1689
1689
  }, v(s.initials), 5))
1690
1690
  ], 6);
1691
1691
  }
@@ -1734,7 +1734,7 @@ function Pt(e, t, n, i, r, s) {
1734
1734
  (c(!0), u(E, null, F(s.visiblePeeks, (l, p) => (c(), u("div", {
1735
1735
  key: l.convId,
1736
1736
  class: "wm-peek",
1737
- style: z({
1737
+ style: q({
1738
1738
  "--depth": s.visiblePeeks.length - 1 - p,
1739
1739
  zIndex: p + 1
1740
1740
  }),
@@ -1865,7 +1865,7 @@ const Ut = /* @__PURE__ */ N(Ct, [["render", Pt], ["__scopeId", "data-v-44ddf1a1
1865
1865
  function zt(e, t, n, i, r, s) {
1866
1866
  return c(), u("div", {
1867
1867
  class: O(["wm-aiav", { "wm-aiav--tail": n.tail }]),
1868
- style: z({
1868
+ style: q({
1869
1869
  width: n.size + "px",
1870
1870
  height: n.size + "px",
1871
1871
  "--wm-avr": n.size * 0.32 + "px"
@@ -1878,7 +1878,7 @@ function zt(e, t, n, i, r, s) {
1878
1878
  "wm-aiav__inner--img": !!n.imageUrl,
1879
1879
  "wm-aiav__inner--initials": !n.imageUrl && !!s.initials
1880
1880
  }]),
1881
- style: z(
1881
+ style: q(
1882
1882
  !n.imageUrl && s.initials ? { background: s.bgColor } : null
1883
1883
  )
1884
1884
  }, [
@@ -1888,7 +1888,7 @@ function zt(e, t, n, i, r, s) {
1888
1888
  alt: n.name || ""
1889
1889
  }, null, 8, jt)) : s.initials ? (c(), u("span", {
1890
1890
  key: 1,
1891
- style: z({ fontSize: n.size * 0.36 + "px" })
1891
+ style: q({ fontSize: n.size * 0.36 + "px" })
1892
1892
  }, v(s.initials), 5)) : (c(), u("svg", {
1893
1893
  key: 2,
1894
1894
  width: n.size * 0.5,
@@ -1953,12 +1953,12 @@ function Gt(e, t, n, i, r, s) {
1953
1953
  return s.visible ? (c(), u("div", Kt, [
1954
1954
  o("div", {
1955
1955
  class: "wm-team__stack",
1956
- style: z({ width: s.stackWidth + "px" })
1956
+ style: q({ width: s.stackWidth + "px" })
1957
1957
  }, [
1958
1958
  (c(!0), u(E, null, F(n.members.slice(0, 3), (a, l) => (c(), u("div", {
1959
1959
  key: l,
1960
1960
  class: "wm-team__pill",
1961
- style: z({
1961
+ style: q({
1962
1962
  left: l * 13 + "px",
1963
1963
  zIndex: 3 - l,
1964
1964
  background: s.colorFor(a)
@@ -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 hn(e) {
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
- }, mn = {
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
- // Pick the avatar component for a thread row based on the last
2271
- // sender's type. Human agents get HumanAvatar (initials on a
2272
- // deterministic colour, or their photo) ; AI agents and unknown /
2273
- // user-authored cases fall back to the widget's own AI avatar.
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: (t == null ? void 0 : t.name) || this.agentName,
2287
- imageUrl: (t == null ? void 0 : t.avatar_url) || this.defaultIconUrl
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 = { class: "wm-onb__alert-avatar" }, Nn = ["aria-label"], Pn = { class: "wm-onb__alert-body" }, Un = { class: "wm-onb__alert-title" }, Fn = ["innerHTML"], Dn = { class: "wm-onb__alert-meta" }, jn = {
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
- }, Hn = { class: "wm-onb__alert-resume" }, zn = {
2350
+ }, jn = { class: "wm-onb__alert-resume" }, Hn = {
2333
2351
  key: 2,
2334
2352
  class: "wm-onb__section wm-onb__section--card"
2335
- }, qn = { class: "wm-onb__section-title" }, Kn = { class: "wm-onb__search" }, Vn = ["placeholder", "aria-label"], $n = { class: "wm-onb__list" }, Wn = ["onClick"], Gn = { class: "wm-onb__thread-avatar" }, Yn = ["aria-label"], Jn = { class: "wm-onb__thread-body" }, Qn = { class: "wm-onb__thread-title" }, Xn = ["innerHTML"], Zn = { class: "wm-onb__thread-meta" }, es = {
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
- }, ts = {
2356
+ }, Zn = {
2339
2357
  key: 0,
2340
2358
  class: "wm-onb__empty"
2341
2359
  };
2342
- function ns(e, t, n, i, r, s) {
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", Rn, [
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, Nn)
2454
- ]),
2455
- o("span", Pn, [
2456
- o("span", Un, v(l.title), 1),
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, Fn)
2480
+ }, null, 8, Un)
2461
2481
  ]),
2462
- o("span", Dn, [
2463
- s.formatTs(l._ts) ? (c(), u("span", jn, v(s.formatTs(l._ts)), 1)) : y("", !0),
2464
- o("span", Hn, v(s.t("onboarding.resume")), 1)
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", zn, [
2470
- o("div", qn, v(s.t("onboarding.recentConversations")), 1),
2471
- o("div", Kn, [
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, Vn), [
2512
+ }, null, 8, Kn), [
2493
2513
  [X, r.query]
2494
2514
  ])
2495
2515
  ]),
2496
- o("div", $n, [
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
- class: "wm-onb__thread",
2520
+ class: O(["wm-onb__thread", { "wm-onb__thread--unread": l.unread }]),
2501
2521
  onClick: (p) => e.$emit("resume", l)
2502
2522
  }, [
2503
- o("span", Gn, [
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, Yn)) : y("", !0)
2510
- ]),
2511
- o("span", Jn, [
2512
- o("span", Qn, v(l.title), 1),
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, Xn)
2538
+ }, null, 8, Jn)
2517
2539
  ]),
2518
- o("span", Zn, [
2519
- s.formatTs(l._ts) ? (c(), u("span", es, v(s.formatTs(l._ts)), 1)) : y("", !0),
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, Wn))), 128)),
2536
- s.filteredThreads.length ? y("", !0) : (c(), u("div", ts, v(s.t("onboarding.noResults", { query: r.query })), 1))
2557
+ ], 10, $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 ss = /* @__PURE__ */ N(mn, [["render", ns], ["__scopeId", "data-v-51460a75"]]);
2542
- function rs(e) {
2563
+ const ts = /* @__PURE__ */ N(hn, [["render", es], ["__scopeId", "data-v-ee89cb1d"]]);
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 is = {
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 rs(this.detail);
2577
+ return ns(this.detail);
2556
2578
  }
2557
2579
  }
2558
- }, as = {
2580
+ }, rs = {
2559
2581
  class: "wm-result__icon",
2560
2582
  "aria-hidden": "true"
2561
- }, os = {
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
- }, ls = {
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
- }, cs = {
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
- }, ds = {
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
- }, us = { class: "wm-result__body" }, hs = { class: "wm-result__label" }, ms = { class: "wm-result__detail" };
2602
- function fs(e, t, n, i, r, s) {
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", as, [
2607
- n.state === "success" ? (c(), u("svg", os, [...t[0] || (t[0] = [
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", ls, [...t[1] || (t[1] = [
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", cs, [...t[2] || (t[2] = [
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", ds, [...t[3] || (t[3] = [
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", us, [
2635
- o("span", hs, v(n.label), 1),
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", ms, v(s.detailText), 1)
2663
+ o("span", us, v(s.detailText), 1)
2642
2664
  ], 64)) : y("", !0)
2643
2665
  ])
2644
2666
  ], 2);
2645
2667
  }
2646
- const _s = /* @__PURE__ */ N(is, [["render", fs], ["__scopeId", "data-v-7284acd0"]]), gs = {
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
- }, ps = { class: "wm-art wm-art--formResponse" }, vs = { class: "wm-art__head" }, ys = { class: "wm-art__title" }, ws = { class: "wm-art__badge wm-art__badge--success" }, bs = { class: "wm-art__body" }, ks = { class: "wm-art__fieldLabel" };
2663
- function Cs(e, t, n, i, r, s) {
2664
- return c(), u("div", ps, [
2665
- o("div", vs, [
2666
- o("div", ys, v(n.data.title || s.t("form.title")), 1),
2667
- o("span", ws, [
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", bs, [
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", ks, v(a.label), 1),
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 As = /* @__PURE__ */ N(gs, [["render", Cs], ["__scopeId", "data-v-713aecf1"]]), Ss = {
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
- }, Ms = { class: "wm-art wm-art--infoCard" }, Ts = {
2737
+ }, As = { class: "wm-art wm-art--infoCard" }, Ss = {
2716
2738
  key: 0,
2717
2739
  class: "wm-art__image"
2718
- }, xs = ["src", "alt"], Os = { class: "wm-art__head" }, Is = { class: "wm-art__headMain" }, Ls = { class: "wm-art__title" }, Es = {
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
- }, Bs = {
2743
+ }, Ls = {
2722
2744
  key: 1,
2723
2745
  class: "wm-art__body"
2724
- }, Rs = {
2746
+ }, Es = {
2725
2747
  key: 0,
2726
2748
  class: "wm-art__text"
2727
- }, Ns = { class: "wm-art__fieldLabel" };
2728
- function Ps(e, t, n, i, r, s) {
2729
- return c(), u("div", Ms, [
2730
- n.data.image_url ? (c(), u("figure", Ts, [
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, xs)
2757
+ }, null, 8, Ms)
2736
2758
  ])) : y("", !0),
2737
- o("div", Os, [
2738
- o("div", Is, [
2739
- o("div", Ls, v(n.data.title), 1),
2740
- n.data.subtitle ? (c(), u("div", Es, v(n.data.subtitle), 1)) : y("", !0)
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", Bs, [
2751
- n.data.body ? (c(), u("div", Rs, v(n.data.body), 1)) : y("", !0),
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", Ns, v(a.label), 1),
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 Us = /* @__PURE__ */ N(Ss, [["render", Ps], ["__scopeId", "data-v-7eae0e4a"]]);
2768
- function Fs(e, t, n) {
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 Ds = {
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 Fs(
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
- }, js = { class: "wm-art wm-art--ticket" }, Hs = { class: "wm-art__head wm-tk__head" }, zs = { class: "wm-art__title wm-tk__title" }, qs = { class: "wm-tk__sub" }, Ks = { class: "wm-tk__ref" }, Vs = {
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
- }, $s = {
2853
+ }, Ks = {
2832
2854
  key: 0,
2833
2855
  class: "wm-art__body"
2834
- }, Ws = { class: "wm-art__fieldLabel" }, Gs = ["data-level"], Ys = {
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
- }, Js = {
2868
+ }, Gs = {
2847
2869
  key: 1,
2848
2870
  class: "wm-art__footer wm-tk__footer"
2849
2871
  };
2850
- function Qs(e, t, n, i, r, s) {
2851
- return c(), u("div", js, [
2852
- o("div", Hs, [
2853
- o("div", zs, v(n.data.title), 1),
2854
- o("div", qs, [
2855
- o("div", Ks, [
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", Vs, v(n.data.body), 1)) : y("", !0)
2908
+ n.data.body ? (c(), u("div", qs, v(n.data.body), 1)) : y("", !0)
2887
2909
  ]),
2888
- s.fields.length ? (c(), u("div", $s, [
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", Ws, v(a.label), 1),
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, Gs)) : s.isDate(a.label) ? (c(), u("svg", Ys, [...t[3] || (t[3] = [
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", Js, [
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 Xs = /* @__PURE__ */ N(Ds, [["render", Qs], ["__scopeId", "data-v-5f30c914"]]), Zs = {
2970
- form_response: As,
2971
- info_card: Us,
2972
- ticket: Xs
2973
- }, er = {
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 && Zs[e] || null;
3006
+ return e && Qs[e] || null;
2985
3007
  }
2986
3008
  }
2987
3009
  };
2988
- function tr(e, t, n, i, r, s) {
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 nr = /* @__PURE__ */ N(er, [["render", tr]]), sr = {
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
- }, rr = ["href"], ir = ["src", "alt"], ar = ["src"], or = ["src"], lr = ["href", "download"], cr = { class: "wm-att__main" }, dr = { class: "wm-att__name" }, ur = {
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
- }, hr = {
3087
+ }, dr = {
3066
3088
  key: 0,
3067
3089
  class: "wm-att__spin",
3068
3090
  "aria-hidden": "true"
3069
3091
  };
3070
- function mr(e, t, n, i, r, s) {
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, ir)
3086
- ], 8, rr)) : s.kind === "audio" && r.url ? (c(), u("audio", {
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, ar)) : s.kind === "video" && r.url ? (c(), u("video", {
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, or)) : (c(), u("a", {
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", cr, [
3122
- o("span", dr, v(s.displayName), 1),
3123
- s.sizeLabel ? (c(), u("span", ur, v(s.sizeLabel), 1)) : y("", !0)
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", hr)) : y("", !0)
3126
- ], 8, lr))
3147
+ r.loading ? (c(), u("span", dr)) : y("", !0)
3148
+ ], 8, ar))
3127
3149
  ], 2);
3128
3150
  }
3129
- const fr = /* @__PURE__ */ N(sr, [["render", mr], ["__scopeId", "data-v-0c877a62"]]), _r = {
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 hn(this.text);
3160
+ return mn(this.text);
3139
3161
  }
3140
3162
  }
3141
- }, gr = ["innerHTML"];
3142
- function pr(e, t, n, i, r, s) {
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, gr)
3169
+ o("span", { innerHTML: s.rendered }, null, 8, fr)
3148
3170
  ], !0)
3149
3171
  ], 2);
3150
3172
  }
3151
- const vr = /* @__PURE__ */ N(_r, [["render", pr], ["__scopeId", "data-v-7ab13147"]]), yr = { name: "WmTyping" }, wr = { class: "wm-typing" };
3152
- function br(e, t, n, i, r, s) {
3153
- return c(), u("div", wr, [...t[0] || (t[0] = [
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 kr = /* @__PURE__ */ N(yr, [["render", br], ["__scopeId", "data-v-df2447fd"]]);
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 Cr = {
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
- }, Ar = 80, Sr = 200, Mr = {
3192
+ }, kr = 80, Cr = 200, Ar = {
3171
3193
  name: "WmMessageList",
3172
3194
  components: {
3173
3195
  AIAvatar: le,
3174
3196
  HumanAvatar: Ce,
3175
- Bubble: vr,
3176
- Typing: kr,
3177
- ActionResult: _s,
3178
- AttachmentPreview: fr,
3179
- ArtifactRenderer: nr
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 <= Ar;
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 <= Sr && (this._pendingLoadMore = !0, this.$emit("load-more"))));
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
  //
@@ -3572,8 +3594,8 @@ const Cr = {
3572
3594
  cornersFor(e, t) {
3573
3595
  var Z, ee, te;
3574
3596
  const n = e.items, i = (Z = n[t]) == null ? void 0 : Z.kind, r = (ee = n[t - 1]) == null ? void 0 : ee.kind, s = (te = n[t + 1]) == null ? void 0 : te.kind, a = e.role === "user", l = 14, p = 4, k = r == null ? void 0 : r.bottom, w = s == null ? void 0 : s.top, T = this.widthByKey[this.rowKeyOf(e, t)], B = this.widthByKey[this.rowKeyOf(e, t - 1)], A = this.widthByKey[this.rowKeyOf(e, t + 1)], H = 0.5, S = (V, ne, J) => V != null && T != null ? V + H >= T : ne === J || ne === "card" && J === "bubble";
3575
- let U = l, I = l, q = l, Y = l;
3576
- return a ? (k && (I = p), (w || !s) && (q = p), k && S(B, k, i == null ? void 0 : i.top) && (U = p), w && S(A, w, i == null ? void 0 : i.bottom) && (Y = p)) : (k && (U = p), (w || !s) && (Y = p), k && S(B, k, i == null ? void 0 : i.top) && (I = p), w && S(A, w, i == null ? void 0 : i.bottom) && (q = p)), { tl: U, tr: I, br: q, bl: Y };
3597
+ let U = l, I = l, z = l, Y = l;
3598
+ return a ? (k && (I = p), (w || !s) && (z = p), k && S(B, k, i == null ? void 0 : i.top) && (U = p), w && S(A, w, i == null ? void 0 : i.bottom) && (Y = p)) : (k && (U = p), (w || !s) && (Y = p), k && S(B, k, i == null ? void 0 : i.top) && (I = p), w && S(A, w, i == null ? void 0 : i.bottom) && (z = p)), { tl: U, tr: I, br: z, bl: Y };
3577
3599
  },
3578
3600
  // Inline style emitting the four corner CSS variables. Set on
3579
3601
  // `.wm-list__row` so they cascade to Bubble/ActionResult/
@@ -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 = Cr[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");
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
- }, Tr = { class: "wm-list__wrap" }, xr = {
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
- }, Or = { class: "wm-list__loadMore-lbl" }, Ir = {
3753
+ }, Tr = { class: "wm-list__loadMore-lbl" }, xr = {
3732
3754
  key: 1,
3733
3755
  class: "wm-list__historyEnd"
3734
- }, Lr = {
3756
+ }, Or = {
3735
3757
  key: 2,
3736
3758
  class: "wm-list__sep"
3737
- }, Er = { class: "wm-list__sep-label" }, Br = {
3759
+ }, Ir = { class: "wm-list__sep-label" }, Lr = {
3738
3760
  key: 0,
3739
3761
  class: "wm-list__sep wm-list__sep--unread"
3740
- }, Rr = { class: "wm-list__sep-label wm-list__sep-label--unread" }, Nr = {
3762
+ }, Er = { class: "wm-list__sep-label wm-list__sep-label--unread" }, Br = {
3741
3763
  key: 0,
3742
3764
  class: "wm-list__sysep"
3743
- }, Pr = { class: "wm-list__sysep-label" }, Ur = ["data-row-key", "onPointerdown"], Fr = {
3765
+ }, Rr = { class: "wm-list__sysep-label" }, Nr = ["data-row-key", "onPointerdown"], Pr = {
3744
3766
  key: 0,
3745
3767
  class: "wm-list__avatarSlot"
3746
- }, Dr = {
3768
+ }, Ur = {
3747
3769
  key: 5,
3748
3770
  class: "wm-list__body"
3749
- }, jr = { key: 0 }, Hr = {
3771
+ }, Fr = { key: 0 }, Dr = {
3750
3772
  key: 1,
3751
3773
  "aria-hidden": "true"
3752
- }, zr = { key: 2 }, qr = { key: 0 }, Kr = {
3774
+ }, jr = { key: 2 }, Hr = { key: 0 }, zr = {
3753
3775
  key: 1,
3754
3776
  "aria-hidden": "true"
3755
- }, Vr = { key: 2 }, $r = {
3777
+ }, qr = { key: 2 }, Kr = {
3756
3778
  key: 3,
3757
3779
  class: "wm-list__row wm-list__row--ai fade-up"
3758
- }, Wr = { class: "wm-list__avatarSlot" }, Gr = ["aria-label", "title"];
3759
- function Yr(e, t, n, i, r, s) {
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", Tr, [
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", xr, [
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", Or, v(s.t("messageList.loadingHistory")), 1)
3773
- ])) : s.historyExhausted ? (c(), u("div", Ir, v(s.t("messageList.conversationStart")), 1)) : y("", !0),
3774
- n.dateLabel ? (c(), u("div", Lr, [
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", Er, v(n.dateLabel), 1),
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", Br, [
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", Rr, v(s.t("messageList.unread")), 1),
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", Nr, [
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", Pr, v(A.systemLabel), 1),
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, {
@@ -3805,7 +3827,7 @@ function Yr(e, t, n, i, r, s) {
3805
3827
  "is-failed": S.message._failed
3806
3828
  }
3807
3829
  ]]),
3808
- style: z(s.cornersStyle(A, U)),
3830
+ style: q(s.cornersStyle(A, U)),
3809
3831
  onPointerdown: (I) => s.onPressStart(`${s.messageKey(S.message)}-${S.partKey}`),
3810
3832
  onPointerup: t[0] || (t[0] = (I) => s.onPressEnd()),
3811
3833
  onPointercancel: t[1] || (t[1] = (I) => s.onPressEnd()),
@@ -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", Fr, [
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", Dr, [
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,
@@ -3860,35 +3882,35 @@ function Yr(e, t, n, i, r, s) {
3860
3882
  }, [
3861
3883
  (c(!0), u(E, null, F(s.attachmentsOf(
3862
3884
  S.message
3863
- ), (I, q) => (c(), P(T, {
3864
- key: `${s.messageKey(S.message)}-att-${q}`,
3885
+ ), (I, z) => (c(), P(T, {
3886
+ key: `${s.messageKey(S.message)}-att-${z}`,
3865
3887
  attachment: I
3866
3888
  }, null, 8, ["attachment"]))), 128))
3867
3889
  ], 2)) : y("", !0)
3868
3890
  ]))
3869
- ], 46, Ur),
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", jr, v(s.roleLabel(A)), 1)) : y("", !0),
3875
- A.role !== "user" && s.timeOf(S.message) ? (c(), u("span", Hr, "·")) : y("", !0),
3876
- s.timeOf(S.message) ? (c(), u("span", zr, v(s.timeOf(S.message)), 1)) : y("", !0)
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", qr, v(s.roleLabel(A)), 1)) : y("", !0),
3884
- A.role !== "user" && s.lastTimeOf(A) ? (c(), u("span", Kr, "·")) : y("", !0),
3885
- s.lastTimeOf(A) ? (c(), u("span", Vr, v(s.lastTimeOf(A)), 1)) : y("", !0)
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", $r, [
3891
- o("div", Wr, [
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, Gr)) : y("", !0)
3947
+ ])], 8, $r)) : y("", !0)
3926
3948
  ]),
3927
3949
  _: 1
3928
3950
  })
3929
3951
  ]);
3930
3952
  }
3931
- const Jr = /* @__PURE__ */ N(Mr, [["render", Yr], ["__scopeId", "data-v-9ddbd0e3"]]), he = typeof navigator < "u" && !!navigator.mediaDevices && typeof navigator.mediaDevices.getDisplayMedia == "function", Ae = typeof window < "u" && typeof window.MediaRecorder < "u";
3932
- function Qr() {
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 io(e) {
3974
+ function so(e) {
3953
3975
  return e ? e.startsWith("image/") ? "image" : e.startsWith("video/") ? "video" : "file" : "file";
3954
3976
  }
3955
- async function Xr() {
3956
- if (!he) return null;
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 Zr(e);
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 Zr(e) {
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 ei(e = {}) {
4010
+ async function Xr(e = {}) {
3989
4011
  var k;
3990
- if (!he || !Ae) return null;
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 = Qr();
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 ti = [
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
- ], ni = {
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 ti.map((e) => ({
4125
+ return Zr.map((e) => ({
4104
4126
  ...e,
4105
4127
  label: this.t(e.labelKey),
4106
- disabled: e.action === "screenshot" && !he || e.action === "record" && (!he || !Ae)
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 Xr();
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 ei({
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
- }, si = {
4247
+ }, ti = {
4226
4248
  key: 0,
4227
4249
  class: "wm-rec"
4228
- }, ri = { class: "wm-rec__lbl" }, ii = {
4250
+ }, ni = { class: "wm-rec__lbl" }, si = {
4229
4251
  key: 1,
4230
4252
  class: "wm-compose__menu",
4231
4253
  role: "menu"
4232
- }, ai = ["disabled", "onClick"], oi = { class: "wm-compose__menuIcon" }, li = {
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
- }, ci = ["d"], di = ["placeholder", "disabled"], ui = { class: "wm-compose__actions" }, hi = ["title", "aria-label", "disabled"], mi = ["disabled", "aria-label"];
4238
- function fi(e, t, n, i, r, s) {
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
- style: z(r.kbOffset ? { transform: `translateY(-${r.kbOffset}px)` } : null)
4263
+ style: q(r.kbOffset ? { transform: `translateY(-${r.kbOffset}px)` } : null)
4242
4264
  }, [
4243
- r.recording ? (c(), u("div", si, [
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", ri, v(s.t("composer.recording", { time: s.recordingElapsedLabel })), 1),
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", ii, [
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", oi, [
4280
- (c(), u("svg", li, [
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, ci)
4310
+ }, null, 8, oi)
4289
4311
  ]))
4290
4312
  ]),
4291
4313
  o("span", null, v(a.label), 1)
4292
- ], 8, ai))), 128))
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, di), [
4325
+ }, null, 40, li), [
4304
4326
  [X, r.local]
4305
4327
  ]),
4306
- o("div", ui, [
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, hi),
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, mi)
4370
+ ])], 10, ui)
4349
4371
  ])
4350
4372
  ], 34)
4351
4373
  ], 6);
4352
4374
  }
4353
- const _i = /* @__PURE__ */ N(ni, [["render", fi], ["__scopeId", "data-v-01e81a27"]]), gi = {
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
- }, pi = ["onClick"];
4371
- function vi(e, t, n, i, r, s) {
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"
@@ -4377,12 +4399,12 @@ function vi(e, t, n, i, r, s) {
4377
4399
  key: l,
4378
4400
  type: "button",
4379
4401
  class: "wm-chip",
4380
- style: z({ animationDelay: n.baseDelay + l * n.stepDelay + "ms" }),
4402
+ style: q({ animationDelay: n.baseDelay + l * n.stepDelay + "ms" }),
4381
4403
  onClick: (p) => e.$emit("select", a)
4382
- }, v(a.label), 13, pi))), 128))
4404
+ }, v(a.label), 13, _i))), 128))
4383
4405
  ])) : y("", !0);
4384
4406
  }
4385
- const yi = /* @__PURE__ */ N(gi, [["render", vi], ["__scopeId", "data-v-47ad8085"]]), wi = {
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
- }, bi = { class: "wm-approval" }, ki = { class: "wm-approval__head" }, Ci = { class: "wm-approval__icon" }, Ai = { class: "wm-approval__main" }, Si = { class: "wm-approval__title" }, Mi = {
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
- }, Ti = { class: "wm-approval__actions" };
4433
- function xi(e, t, n, i, r, s) {
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", bi, [
4436
- o("div", ki, [
4437
- o("div", Ci, [
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", Ai, [
4445
- o("div", Si, v(n.action), 1),
4446
- n.detail ? (c(), u("div", Mi, v(n.detail), 1)) : y("", !0)
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", Ti, [
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 Oi = /* @__PURE__ */ N(wi, [["render", xi], ["__scopeId", "data-v-a2bed37e"]]);
4487
+ const Ti = /* @__PURE__ */ N(vi, [["render", Mi], ["__scopeId", "data-v-a2bed37e"]]);
4466
4488
  let Ee = 0;
4467
- const Ii = /* @__PURE__ */ new Set([
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
- ]), Li = {
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) || !Ii.has(n == null ? void 0 : n.type) || (n.type === "select" || n.type === "multiselect") && (!Array.isArray(n.options) || n.options.length === 0)));
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
- }, Ei = { class: "wm-form" }, Bi = { class: "wm-form__head" }, Ri = { class: "wm-form__icon" }, Ni = { class: "wm-form__main" }, Pi = { class: "wm-form__title" }, Ui = {
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
- }, Fi = ["for"], Di = {
4583
+ }, Pi = ["for"], Ui = {
4562
4584
  key: 0,
4563
4585
  class: "wm-form__req",
4564
4586
  "aria-hidden": "true"
4565
- }, ji = ["id", "onUpdate:modelValue", "placeholder", "required", "disabled"], Hi = ["id", "onUpdate:modelValue", "placeholder", "required", "disabled"], zi = ["id", "onUpdate:modelValue", "placeholder", "required", "disabled"], qi = ["id", "onUpdate:modelValue", "required", "disabled"], Ki = {
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
- }, Vi = ["id", "onUpdate:modelValue", "disabled"], $i = ["id", "onUpdate:modelValue", "required", "disabled"], Wi = {
4590
+ }, qi = ["id", "onUpdate:modelValue", "disabled"], Ki = ["id", "onUpdate:modelValue", "required", "disabled"], Vi = {
4569
4591
  value: "",
4570
4592
  disabled: ""
4571
- }, Gi = ["value"], Yi = {
4593
+ }, $i = ["value"], Wi = {
4572
4594
  key: 6,
4573
4595
  class: "wm-form__multi"
4574
- }, Ji = ["value", "checked", "disabled", "onChange"], Qi = {
4596
+ }, Gi = ["value", "checked", "disabled", "onChange"], Yi = {
4575
4597
  key: 0,
4576
4598
  class: "wm-form__err"
4577
- }, Xi = ["disabled"], Zi = {
4599
+ }, Ji = ["disabled"], Qi = {
4578
4600
  key: 0,
4579
4601
  class: "wm-form__spinner",
4580
4602
  "aria-hidden": "true"
4581
- }, ea = {
4603
+ }, Xi = {
4582
4604
  key: 2,
4583
4605
  class: "wm-form__doneLbl"
4584
4606
  };
4585
- function ta(e, t, n, i, r, s) {
4607
+ function Zi(e, t, n, i, r, s) {
4586
4608
  const a = R("AIAvatar");
4587
- return c(), u("div", Ei, [
4588
- o("div", Bi, [
4589
- o("div", Ri, [
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", Ni, [
4597
- o("div", Pi, v(n.form.title || s.t("form.title")), 1),
4598
- n.form.description ? (c(), u("div", Ui, v(n.form.description), 1)) : y("", !0)
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", Di, "*")) : y("", !0)
4615
- ], 8, Fi),
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, ji)), [
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, Hi)), [
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, zi)), [
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, qi)), [
4684
+ }, null, 8, Hi)), [
4663
4685
  [X, r.values[l.key]]
4664
- ]) : l.type === "boolean" ? (c(), u("label", Ki, [
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, Vi), [
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", Wi, v(l.placeholder || s.t("form.choose")), 1),
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, Gi))), 128))
4687
- ], 8, $i)), [
4708
+ }, v(p.label), 9, $i))), 128))
4709
+ ], 8, Ki)), [
4688
4710
  [qe, r.values[l.key]]
4689
- ]) : l.type === "multiselect" ? (c(), u("div", Yi, [
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, Ji),
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", Qi, v(r.error), 1)) : y("", !0),
4710
- n.readOnly ? (c(), u("div", ea, v(s.t("form.responseSent")), 1)) : (c(), u("button", {
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", Zi)) : y("", !0),
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, Xi))
4740
+ ], 8, Ji))
4719
4741
  ], 32)
4720
4742
  ]);
4721
4743
  }
4722
- const na = /* @__PURE__ */ N(Li, [["render", ta], ["__scopeId", "data-v-fe65cc56"]]), sa = {
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
- }, ra = { class: "wm-fb" }, ia = { class: "wm-fb__title" }, aa = { class: "wm-fb__sub" }, oa = { class: "wm-fb__row" }, la = ["onClick"], ca = { class: "wm-fb__emoji" }, da = { class: "wm-fb__label" }, ua = ["disabled"], ha = {
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
- }, ma = { class: "wm-fb__doneTitle" }, fa = { class: "wm-fb__doneSub" };
4760
- function _a(e, t, n, i, r, s) {
4761
- return c(), u("div", ra, [
4762
- n.done ? (c(), u("div", ha, [
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", ma, v(s.t("feedback.doneTitle")), 1),
4779
- o("div", fa, v(s.t("feedback.doneSubtitle")), 1)
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", ia, v(s.t("feedback.question")), 1),
4782
- o("div", aa, v(s.t("feedback.subtitle")), 1),
4783
- o("div", oa, [
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", ca, v(a.e), 1),
4791
- o("span", da, v(a.l), 1)
4792
- ], 10, la))), 128))
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, ua)
4821
+ }, v(n.busy ? s.t("common.sending") : s.t("feedback.submit")), 9, ca)
4800
4822
  ], 64))
4801
4823
  ]);
4802
4824
  }
4803
- const ga = /* @__PURE__ */ N(sa, [["render", _a], ["__scopeId", "data-v-9b630564"]]), pa = {
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
- }, va = { class: "wm-mm" }, ya = {
4868
+ }, ga = { class: "wm-mm" }, pa = {
4847
4869
  class: "wm-mm__pop",
4848
4870
  role: "menu"
4849
- }, wa = {
4871
+ }, va = {
4850
4872
  key: 0,
4851
4873
  class: "wm-mm__section"
4852
- }, ba = { class: "wm-mm__label" }, ka = { class: "wm-mm__label" }, Ca = {
4874
+ }, ya = { class: "wm-mm__label" }, wa = { class: "wm-mm__label" }, ba = {
4853
4875
  key: 1,
4854
4876
  class: "wm-mm__sep"
4855
- }, Aa = { class: "wm-mm__section" }, Sa = { class: "wm-mm__label" }, Ma = { class: "wm-mm__label" }, Ta = { class: "wm-mm__section" }, xa = { class: "wm-mm__label" }, Oa = { class: "wm-mm__label" };
4856
- function Ia(e, t, n, i, r, s) {
4857
- return c(), u("div", va, [
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", ya, [
4863
- n.canRename || n.canExport ? (c(), u("div", wa, [
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", ba, v(s.t("moreMenu.editTitle")), 1)
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", ka, v(s.t("moreMenu.exportTranscript")), 1),
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", Ca)) : y("", !0),
4914
- o("div", Aa, [
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", Sa, v(s.t("moreMenu.sound")), 1),
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", Ma, v(s.t("moreMenu.browserNotifications")), 1),
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", Ta, [
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", xa, v(s.t("moreMenu.serviceStatus")), 1)
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", Oa, v(s.t("moreMenu.helpCenter")), 1)
5039
+ o("span", Ta, v(s.t("moreMenu.helpCenter")), 1)
5018
5040
  ])) : y("", !0)
5019
5041
  ])
5020
5042
  ])
5021
5043
  ]);
5022
5044
  }
5023
- const La = /* @__PURE__ */ N(pa, [["render", Ia], ["__scopeId", "data-v-76281e95"]]), Ea = {
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
- }, Ba = { class: "wm-dialog" }, Ra = {
5087
+ }, La = { class: "wm-dialog" }, Ea = {
5066
5088
  class: "wm-dialog__card",
5067
5089
  role: "dialog",
5068
5090
  "aria-modal": "true"
5069
- }, Na = { class: "wm-dialog__head" }, Pa = { class: "wm-dialog__title" }, Ua = ["aria-label"], Fa = { class: "wm-dialog__body" }, Da = ["placeholder"], ja = { class: "wm-dialog__actions" }, Ha = ["disabled"];
5070
- function za(e, t, n, i, r, s) {
5071
- return c(), u("div", Ba, [
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", Ra, [
5077
- o("div", Na, [
5078
- o("div", Pa, v(n.title || s.t("rename.title")), 1),
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, Ua)
5120
+ ])], 8, Na)
5099
5121
  ]),
5100
- o("div", Fa, [
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, Da), [
5134
+ }, null, 40, Ua), [
5113
5135
  [X, r.value]
5114
5136
  ])
5115
5137
  ]),
5116
- o("div", ja, [
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, Ha)
5149
+ }, v(s.t("common.save")), 9, Da)
5128
5150
  ])
5129
5151
  ])
5130
5152
  ]);
5131
5153
  }
5132
- const qa = /* @__PURE__ */ N(Ea, [["render", za], ["__scopeId", "data-v-6d5f94a8"]]), Be = "ww-messenger-tokens", Ka = {
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: ss,
5138
- MessageList: Jr,
5139
- Composer: _i,
5140
- SuggestionChips: yi,
5141
- ApprovalCard: Oi,
5142
- FormCard: na,
5143
- Feedback: ga,
5144
- MoreMenu: La,
5145
- RenameDialog: qa
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,
@@ -5444,14 +5466,6 @@ const qa = /* @__PURE__ */ N(Ea, [["render", za], ["__scopeId", "data-v-6d5f94a8
5444
5466
  var e, t;
5445
5467
  return ((t = (e = this.s) == null ? void 0 : e.config) == null ? void 0 : t.widget) || null;
5446
5468
  },
5447
- // Lets the merchant override the brand colour from the widget
5448
- // config. Falls through to the default `--wm-a` from tokens.css
5449
- // when unset, so existing widgets render unchanged.
5450
- rootStyle() {
5451
- var t;
5452
- const e = (t = this.widget) == null ? void 0 : t.primary_color;
5453
- return e ? { "--wm-a": e } : null;
5454
- },
5455
5469
  widgetWelcomeMessage() {
5456
5470
  var e;
5457
5471
  return ((e = this.widget) == null ? void 0 : e.welcome_message) || "";
@@ -6140,32 +6154,31 @@ const qa = /* @__PURE__ */ N(Ea, [["render", za], ["__scopeId", "data-v-6d5f94a8
6140
6154
  }
6141
6155
  }
6142
6156
  }
6143
- }, Va = {
6157
+ }, qa = {
6144
6158
  key: 0,
6145
6159
  class: "wm-loading",
6146
6160
  "aria-busy": "true",
6147
6161
  "aria-live": "polite"
6148
- }, $a = ["aria-label"], Wa = {
6162
+ }, Ka = ["aria-label"], Va = {
6149
6163
  key: 0,
6150
6164
  class: "wm-state"
6151
- }, Ga = { class: "wm-state__err" }, Ya = { class: "wm-state__errTitle" }, Ja = { class: "wm-state__errSub" }, Qa = { class: "wm-bottom" }, Xa = {
6165
+ }, $a = { class: "wm-state__err" }, Wa = { class: "wm-state__errTitle" }, Ga = { class: "wm-state__errSub" }, Ya = { class: "wm-bottom" }, Ja = {
6152
6166
  key: 0,
6153
6167
  ref: "floatEl",
6154
6168
  class: "wm-float"
6155
- }, Za = {
6169
+ }, Qa = {
6156
6170
  key: 1,
6157
6171
  class: "wm-actionWait",
6158
6172
  role: "status",
6159
6173
  "aria-live": "polite"
6160
- }, eo = { class: "wm-actionWait__lbl" }, to = {
6174
+ }, Xa = { class: "wm-actionWait__lbl" }, Za = {
6161
6175
  key: 2,
6162
6176
  class: "wm-attached"
6163
- }, no = ["aria-label", "onClick"];
6164
- function so(e, t, n, i, r, s) {
6177
+ }, eo = ["aria-label", "onClick"];
6178
+ function to(e, t, n, i, r, s) {
6165
6179
  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
6180
  return c(), u("div", {
6167
- class: O(["wm-root", `wm-root--${n.displayMode}`]),
6168
- style: z(s.rootStyle)
6181
+ class: O(["wm-root", `wm-root--${n.displayMode}`])
6169
6182
  }, [
6170
6183
  !r.isOpen && !s.isEmbedded ? (c(), P(a, {
6171
6184
  key: 0,
@@ -6182,12 +6195,12 @@ function so(e, t, n, i, r, s) {
6182
6195
  `wm-panel--${n.displayMode}`,
6183
6196
  { "wm-panel--welcome": s.ready && !s.error && !s.currentConv }
6184
6197
  ]),
6185
- style: z(r.floatHeight ? { "--wm-float-h": r.floatHeight + "px" } : null),
6198
+ style: q(r.floatHeight ? { "--wm-float-h": r.floatHeight + "px" } : null),
6186
6199
  role: "dialog",
6187
6200
  "aria-label": "Messenger",
6188
6201
  onClick: t[5] || (t[5] = (...I) => s.onPanelClick && s.onPanelClick(...I))
6189
6202
  }, [
6190
- !s.ready && !s.error ? (c(), u("div", Va, [
6203
+ !s.ready && !s.error ? (c(), u("div", qa, [
6191
6204
  s.isEmbedded ? y("", !0) : (c(), u("button", {
6192
6205
  key: 0,
6193
6206
  type: "button",
@@ -6208,7 +6221,7 @@ function so(e, t, n, i, r, s) {
6208
6221
  }, [
6209
6222
  o("path", { d: "M18 6L6 18M6 6l12 12" })
6210
6223
  ], -1)
6211
- ])], 8, $a)),
6224
+ ])], 8, Ka)),
6212
6225
  t[7] || (t[7] = o("div", {
6213
6226
  class: "wm-loading__spinner",
6214
6227
  "aria-hidden": "true"
@@ -6228,8 +6241,8 @@ function so(e, t, n, i, r, s) {
6228
6241
  onMore: s.toggleMore,
6229
6242
  onClose: s.close
6230
6243
  }, 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", Wa, [
6232
- o("div", Ga, [
6244
+ s.error ? (c(), u("div", Va, [
6245
+ o("div", $a, [
6233
6246
  t[8] || (t[8] = o("div", { class: "wm-state__errIcon" }, [
6234
6247
  o("svg", {
6235
6248
  width: "14",
@@ -6246,8 +6259,8 @@ function so(e, t, n, i, r, s) {
6246
6259
  ])
6247
6260
  ], -1)),
6248
6261
  o("div", null, [
6249
- o("div", Ya, v(s.t("error.connectionFailed")), 1),
6250
- o("div", Ja, v(s.error), 1)
6262
+ o("div", Wa, v(s.t("error.connectionFailed")), 1),
6263
+ o("div", Ga, v(s.error), 1)
6251
6264
  ])
6252
6265
  ])
6253
6266
  ])) : s.currentConv ? (c(), u(E, { key: 2 }, [
@@ -6265,8 +6278,8 @@ function so(e, t, n, i, r, s) {
6265
6278
  "ai-agent-avatar-url": s.agentAvatarUrl,
6266
6279
  onLoadMore: s.onLoadMore
6267
6280
  }, 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", Qa, [
6269
- s.floatVisible ? (c(), u("div", Xa, [
6281
+ o("div", Ya, [
6282
+ s.floatVisible ? (c(), u("div", Ja, [
6270
6283
  s.approvalReady ? (c(), P(w, {
6271
6284
  key: 0,
6272
6285
  action: s.approvalTitle,
@@ -6292,12 +6305,12 @@ function so(e, t, n, i, r, s) {
6292
6305
  onSelect: s.onSuggestion
6293
6306
  }, null, 8, ["items", "onSelect"]))
6294
6307
  ], 512)) : y("", !0),
6295
- s.actionInFlight ? (c(), u("div", Za, [
6308
+ s.actionInFlight ? (c(), u("div", Qa, [
6296
6309
  t[9] || (t[9] = o("span", {
6297
6310
  class: "wm-actionWait__spinner",
6298
6311
  "aria-hidden": "true"
6299
6312
  }, null, -1)),
6300
- o("span", eo, v(s.t("action.inProgress", {
6313
+ o("span", Xa, v(s.t("action.inProgress", {
6301
6314
  name: s.actionInFlightName
6302
6315
  })), 1)
6303
6316
  ])) : (c(), P(H, {
@@ -6333,9 +6346,9 @@ function so(e, t, n, i, r, s) {
6333
6346
  onClose: t[3] || (t[3] = (I) => r.renameDialogOpen = !1),
6334
6347
  onSubmit: s.onRenameSubmit
6335
6348
  }, null, 8, ["initial-value", "title", "onSubmit"])) : y("", !0),
6336
- r.pendingAttachments.length ? (c(), u("div", to, [
6337
- (c(!0), u(E, null, F(r.pendingAttachments, (I, q) => (c(), u("div", {
6338
- key: q,
6349
+ r.pendingAttachments.length ? (c(), u("div", Za, [
6350
+ (c(!0), u(E, null, F(r.pendingAttachments, (I, z) => (c(), u("div", {
6351
+ key: z,
6339
6352
  class: "wm-attached__chip"
6340
6353
  }, [
6341
6354
  t[11] || (t[11] = o("svg", {
@@ -6355,7 +6368,7 @@ function so(e, t, n, i, r, s) {
6355
6368
  o("button", {
6356
6369
  type: "button",
6357
6370
  "aria-label": s.t("attachment.remove"),
6358
- onClick: (Y) => r.pendingAttachments.splice(q, 1)
6371
+ onClick: (Y) => r.pendingAttachments.splice(z, 1)
6359
6372
  }, [...t[10] || (t[10] = [
6360
6373
  o("svg", {
6361
6374
  width: "10",
@@ -6370,7 +6383,7 @@ function so(e, t, n, i, r, s) {
6370
6383
  }, [
6371
6384
  o("path", { d: "M18 6L6 18M6 6l12 12" })
6372
6385
  ], -1)
6373
- ])], 8, no)
6386
+ ])], 8, eo)
6374
6387
  ]))), 128))
6375
6388
  ])) : y("", !0)
6376
6389
  ], 64)) : (c(), P(p, {
@@ -6401,55 +6414,55 @@ function so(e, t, n, i, r, s) {
6401
6414
  }, null, 8, ["sound-enabled", "browser-notif-enabled", "status-url", "help-url", "onSoundToggle", "onBrowserNotifToggle", "onAction"])) : y("", !0)
6402
6415
  ], 64))
6403
6416
  ], 6)) : y("", !0)
6404
- ], 6);
6417
+ ], 2);
6405
6418
  }
6406
- const ao = /* @__PURE__ */ N(Ka, [["render", so], ["__scopeId", "data-v-f715675c"]]), oo = "0.5.37";
6419
+ const ro = /* @__PURE__ */ N(za, [["render", to], ["__scopeId", "data-v-9e47cfb4"]]), io = "0.5.39";
6407
6420
  export {
6408
6421
  le as AIAvatar,
6409
6422
  _e as AVATAR_COLORS,
6410
- _s as ActionResult,
6411
- Oi as ApprovalCard,
6412
- As as ArtifactFormResponse,
6413
- Us as ArtifactInfoCard,
6414
- nr as ArtifactRenderer,
6415
- Xs as ArtifactTicket,
6416
- fr as AttachmentPreview,
6417
- vr as Bubble,
6418
- _i as Composer,
6423
+ hs as ActionResult,
6424
+ Ti as ApprovalCard,
6425
+ ks as ArtifactFormResponse,
6426
+ Ns as ArtifactInfoCard,
6427
+ er as ArtifactRenderer,
6428
+ Js as ArtifactTicket,
6429
+ mr as AttachmentPreview,
6430
+ gr as Bubble,
6431
+ hi as Composer,
6419
6432
  et as DEFAULT_BASE_URL,
6420
6433
  ae as DEFAULT_LANGUAGE,
6421
- ga as Feedback,
6422
- na as FormCard,
6434
+ fa as Feedback,
6435
+ ea as FormCard,
6423
6436
  cn as Header,
6424
6437
  Ce as HumanAvatar,
6425
6438
  Ut as Launcher,
6426
6439
  Ae as MEDIA_RECORDER_SUPPORTED,
6427
- Jr as MessageList,
6428
- ao as Messenger,
6429
- La as MoreMenu,
6430
- ss as Onboarding,
6431
- he as SCREEN_CAPTURE_SUPPORTED,
6440
+ Gr as MessageList,
6441
+ ro as Messenger,
6442
+ Oa as MoreMenu,
6443
+ ts as Onboarding,
6444
+ me as SCREEN_CAPTURE_SUPPORTED,
6432
6445
  tt as SUPPORTED_LANGUAGES,
6433
- yi as SuggestionChips,
6446
+ pi as SuggestionChips,
6434
6447
  Yt as TeamAvatars,
6435
- kr as Typing,
6436
- oo as VERSION,
6448
+ wr as Typing,
6449
+ io as VERSION,
6437
6450
  we as avatarColor,
6438
6451
  be as avatarInitials,
6439
- Xr as captureScreenshotFile,
6452
+ Jr as captureScreenshotFile,
6440
6453
  j as colors,
6441
6454
  Xe as createStore,
6442
6455
  D as createTranslator,
6443
6456
  Ge as createTransport,
6444
6457
  re as dateLocale,
6445
- ao as default,
6458
+ ro as default,
6446
6459
  ve as formatTime,
6447
- io as guessAttachmentKind,
6448
- Qr as pickRecorderMime,
6460
+ so as guessAttachmentKind,
6461
+ Yr as pickRecorderMime,
6449
6462
  un as renderInlineMarkdown,
6450
- hn as renderMarkdown,
6463
+ mn as renderMarkdown,
6451
6464
  ke as resolveLanguage,
6452
- ei as startScreenRecording,
6465
+ Xr as startScreenRecording,
6453
6466
  Ze as tokensCss,
6454
6467
  Qe as uuid,
6455
6468
  Qe as v4