@_solaris/messenger-widget 0.1.2 → 0.1.4

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 xe, openBlock as l, createElementBlock as c, createVNode as H, Transition as Me, withCtx as Te, withKeys as me, withModifiers as Y, createElementVNode as i, toDisplayString as b, createCommentVNode as y, normalizeStyle as P, normalizeClass as E, Fragment as O, renderList as F, resolveComponent as I, createBlock as $, createTextVNode as se, resolveDynamicComponent as Ie, renderSlot as Oe, withDirectives as V, vModelText as G, vModelCheckbox as Ee, vModelSelect as Be, createStaticVNode as ue, markRaw as fe } from "vue";
1
+ import { reactive as xe, openBlock as l, createElementBlock as c, createVNode as H, Transition as Me, withCtx as Te, withKeys as me, withModifiers as Y, createElementVNode as i, toDisplayString as b, createCommentVNode as g, normalizeStyle as P, normalizeClass as E, Fragment as O, renderList as F, resolveComponent as I, createBlock as $, createTextVNode as se, resolveDynamicComponent as Ie, renderSlot as Oe, withDirectives as V, vModelText as G, vModelCheckbox as Ee, vModelSelect as Be, createStaticVNode as ue, markRaw as fe } from "vue";
2
2
  const Le = [
3
3
  "connected",
4
4
  "message",
@@ -263,13 +263,13 @@ function je(t) {
263
263
  }
264
264
  return typeof document < "u" && (e.visibilityHandler = m, document.addEventListener("visibilitychange", e.visibilityHandler)), Q(), h;
265
265
  }
266
- function g() {
266
+ function y() {
267
267
  u(), clearTimeout(e.burstTimer), clearTimeout(e.hiddenGraceTimer), e.hiddenGraceTimer = null, K(), e.visibilityHandler && (document.removeEventListener("visibilitychange", e.visibilityHandler), e.visibilityHandler = null), e.started = !1;
268
268
  }
269
269
  return {
270
270
  on: n,
271
271
  start: _,
272
- stop: g,
272
+ stop: y,
273
273
  setPanelOpen: ae,
274
274
  // REST
275
275
  bootstrap: v,
@@ -351,22 +351,22 @@ function Pe(t) {
351
351
  })), n.push(t.on("conversation_updated", (u) => {
352
352
  const m = u == null ? void 0 : u.conversation_id, _ = u == null ? void 0 : u.changes;
353
353
  if (!m || !_) return;
354
- const g = e.conversations.findIndex((h) => h.id === m);
355
- g !== -1 && (e.conversations[g] = { ...e.conversations[g], ..._ });
354
+ const y = e.conversations.findIndex((h) => h.id === m);
355
+ y !== -1 && (e.conversations[y] = { ...e.conversations[y], ..._ });
356
356
  })), n.push(t.on("config_updated", (u) => {
357
357
  u != null && u.config && (e.config = u.config);
358
358
  })), n.push(t.on("action_status", (u) => {
359
- const m = u == null ? void 0 : u.conversation_id, _ = u == null ? void 0 : u.action_id, g = u == null ? void 0 : u.action_name;
359
+ const m = u == null ? void 0 : u.conversation_id, _ = u == null ? void 0 : u.action_id, y = u == null ? void 0 : u.action_name;
360
360
  if (!m || !_) return;
361
361
  const h = e.runningActionsByConv[m] || {};
362
- u.state === "running" ? (h[_] = g || _, e.runningActionsByConv[m] = { ...h }) : u.state === "done" && (delete h[_], e.runningActionsByConv[m] = { ...h });
362
+ u.state === "running" ? (h[_] = y || _, e.runningActionsByConv[m] = { ...h }) : u.state === "done" && (delete h[_], e.runningActionsByConv[m] = { ...h });
363
363
  })), n.push(t.on("activity", (u) => {
364
364
  Array.isArray(u == null ? void 0 : u.conversations) && (e.conversations = u.conversations);
365
365
  }));
366
366
  async function a() {
367
367
  try {
368
368
  const u = new Promise(
369
- (_, g) => setTimeout(() => g(new Error("bootstrap timeout (15s) — check baseUrl, CORS, and network")), 15e3)
369
+ (_, y) => setTimeout(() => y(new Error("bootstrap timeout (15s) — check baseUrl, CORS, and network")), 15e3)
370
370
  ), m = await Promise.race([t.start(), u]);
371
371
  e.config = m.config, e.customer = m.customer, e.conversations = await Promise.race([t.listConversations(), u]), e.ready = !0;
372
372
  } catch (u) {
@@ -393,7 +393,7 @@ function Pe(t) {
393
393
  return e.customer;
394
394
  }
395
395
  async function o(u = {}) {
396
- const m = await t.createConversation(u), _ = e.conversations.findIndex((g) => g.id === m.id);
396
+ const m = await t.createConversation(u), _ = e.conversations.findIndex((y) => y.id === m.id);
397
397
  return _ === -1 ? e.conversations = [m, ...e.conversations] : e.conversations[_] = m, m;
398
398
  }
399
399
  const d = 50;
@@ -434,10 +434,10 @@ function Pe(t) {
434
434
  e.paginationByConv = { ...e.paginationByConv, [u]: m };
435
435
  }
436
436
  async function S(u, m) {
437
- const _ = await t.patchConversation(u, m), g = e.conversations.findIndex((h) => h.id === u);
438
- g !== -1 && (e.conversations[g] = _);
437
+ const _ = await t.patchConversation(u, m), y = e.conversations.findIndex((h) => h.id === u);
438
+ y !== -1 && (e.conversations[y] = _);
439
439
  }
440
- async function L(u, m, { attachments: _, metadata: g } = {}) {
440
+ async function L(u, m, { attachments: _, metadata: y } = {}) {
441
441
  var M;
442
442
  const h = (m || "").trim(), f = Array.isArray(_) && _.length > 0;
443
443
  if (!u || !h && !f) return;
@@ -455,7 +455,7 @@ function Pe(t) {
455
455
  // Local-only flag — UI may render dimmed until the SSE echo lands.
456
456
  _pending: !0,
457
457
  ...f ? { payload: { type: "content", attachments: _ } } : {},
458
- ...g && typeof g == "object" ? { metadata: g } : {}
458
+ ...y && typeof y == "object" ? { metadata: y } : {}
459
459
  };
460
460
  q(u, T);
461
461
  try {
@@ -464,7 +464,7 @@ function Pe(t) {
464
464
  text_md: h,
465
465
  created_at: k,
466
466
  ...f ? { attachments: _ } : {},
467
- ...g && typeof g == "object" ? { metadata: g } : {}
467
+ ...y && typeof y == "object" ? { metadata: y } : {}
468
468
  });
469
469
  } catch (R) {
470
470
  console.error("[store] send failed", R), K(u, p, { _failed: !0, _pending: !1 });
@@ -474,8 +474,8 @@ function Pe(t) {
474
474
  u != null && (e.awaitingCallback[u] = !0);
475
475
  try {
476
476
  await t.postCallback(u, m, _);
477
- } catch (g) {
478
- console.error("[store] callback failed", g), u != null && delete e.awaitingCallback[u];
477
+ } catch (y) {
478
+ console.error("[store] callback failed", y), u != null && delete e.awaitingCallback[u];
479
479
  }
480
480
  }
481
481
  const D = /* @__PURE__ */ new Map();
@@ -496,8 +496,8 @@ function Pe(t) {
496
496
  return null;
497
497
  }
498
498
  async function N(u, { rating: m, comment: _ } = {}) {
499
- const g = e.conversations.find((p) => p.id === u), f = {
500
- ...(g == null ? void 0 : g.metadata) || {},
499
+ const y = e.conversations.find((p) => p.id === u), f = {
500
+ ...(y == null ? void 0 : y.metadata) || {},
501
501
  feedback: {
502
502
  rating: m,
503
503
  comment: _ || null,
@@ -507,21 +507,21 @@ function Pe(t) {
507
507
  await S(u, { metadata: f });
508
508
  }
509
509
  function j(u) {
510
- var _, g;
510
+ var _, y;
511
511
  const m = e.messagesByConv[u] || [];
512
512
  for (let h = m.length - 1; h >= 0; h--) {
513
513
  const f = m[h];
514
- if ((f == null ? void 0 : f.type) === "action" && ((_ = f == null ? void 0 : f.payload) == null ? void 0 : _.type) === "action" && ((g = f == null ? void 0 : f.payload) == null ? void 0 : g.state) === "pending" && Array.isArray(f == null ? void 0 : f.callbacks) && f.callbacks.length > 0 && !e.awaitingCallback[f.id])
514
+ if ((f == null ? void 0 : f.type) === "action" && ((_ = f == null ? void 0 : f.payload) == null ? void 0 : _.type) === "action" && ((y = f == null ? void 0 : f.payload) == null ? void 0 : y.state) === "pending" && Array.isArray(f == null ? void 0 : f.callbacks) && f.callbacks.length > 0 && !e.awaitingCallback[f.id])
515
515
  return f;
516
516
  }
517
517
  return null;
518
518
  }
519
519
  function z(u) {
520
- var _, g, h;
520
+ var _, y, h;
521
521
  const m = e.messagesByConv[u] || [];
522
522
  for (let f = m.length - 1; f >= 0; f--) {
523
523
  const p = m[f];
524
- if (((_ = p == null ? void 0 : p.author) == null ? void 0 : _.type) === "user" || (p == null ? void 0 : p.type) === "action" && ((g = p == null ? void 0 : p.payload) == null ? void 0 : g.state) === "pending") return null;
524
+ if (((_ = p == null ? void 0 : p.author) == null ? void 0 : _.type) === "user" || (p == null ? void 0 : p.type) === "action" && ((y = p == null ? void 0 : p.payload) == null ? void 0 : y.state) === "pending") return null;
525
525
  const k = (h = p == null ? void 0 : p.metadata) == null ? void 0 : h.form;
526
526
  if (k && Array.isArray(k.fields) && k.fields.length > 0)
527
527
  return { message: p, form: k };
@@ -533,16 +533,16 @@ function Pe(t) {
533
533
  if (!m) return null;
534
534
  const _ = Object.keys(m);
535
535
  if (_.length === 0) return null;
536
- const g = _[0];
537
- return { id: g, payload: { name: m[g] } };
536
+ const y = _[0];
537
+ return { id: y, payload: { name: m[y] } };
538
538
  }
539
539
  function re(u) {
540
- var _, g, h, f;
540
+ var _, y, h, f;
541
541
  const m = e.messagesByConv[u] || [];
542
542
  for (let p = m.length - 1; p >= 0; p--) {
543
543
  const k = m[p];
544
544
  if (((_ = k == null ? void 0 : k.author) == null ? void 0 : _.type) === "user") return [];
545
- if ((k == null ? void 0 : k.type) === "action" && ((g = k == null ? void 0 : k.payload) == null ? void 0 : g.state) === "pending") return [];
545
+ if ((k == null ? void 0 : k.type) === "action" && ((y = k == null ? void 0 : k.payload) == null ? void 0 : y.state) === "pending") return [];
546
546
  if (((h = k == null ? void 0 : k.author) == null ? void 0 : h.type) !== "agent_ia") continue;
547
547
  const T = (f = k == null ? void 0 : k.metadata) == null ? void 0 : f.suggested_replies;
548
548
  return Array.isArray(T) && T.length ? T.map((M) => {
@@ -564,31 +564,31 @@ function Pe(t) {
564
564
  function q(u, m) {
565
565
  var f;
566
566
  const _ = e.messagesByConv[u] || [];
567
- let g = -1;
568
- m != null && m.client_msg_id && (g = _.findIndex(
567
+ let y = -1;
568
+ m != null && m.client_msg_id && (y = _.findIndex(
569
569
  (p) => (p == null ? void 0 : p.client_msg_id) && p.client_msg_id === m.client_msg_id
570
- )), g === -1 && (m == null ? void 0 : m.id) !== void 0 && (m == null ? void 0 : m.id) !== null && (g = _.findIndex((p) => ie(p == null ? void 0 : p.id, m.id)));
570
+ )), y === -1 && (m == null ? void 0 : m.id) !== void 0 && (m == null ? void 0 : m.id) !== null && (y = _.findIndex((p) => ie(p == null ? void 0 : p.id, m.id)));
571
571
  let h;
572
- g === -1 ? h = [..._, m].sort(ae) : (h = _.slice(), h[g] = { ..._[g], ...m, _pending: !1, _failed: !1 }), e.messagesByConv[u] = h, (m == null ? void 0 : m.type) === "action" && ((f = m == null ? void 0 : m.payload) != null && f.state) && m.payload.state !== "pending" && (m == null ? void 0 : m.id) != null && e.awaitingCallback[m.id] && delete e.awaitingCallback[m.id];
572
+ y === -1 ? h = [..._, m].sort(ae) : (h = _.slice(), h[y] = { ..._[y], ...m, _pending: !1, _failed: !1 }), e.messagesByConv[u] = h, (m == null ? void 0 : m.type) === "action" && ((f = m == null ? void 0 : m.payload) != null && f.state) && m.payload.state !== "pending" && (m == null ? void 0 : m.id) != null && e.awaitingCallback[m.id] && delete e.awaitingCallback[m.id];
573
573
  }
574
574
  function ie(u, m) {
575
575
  return u === m ? !0 : u == null || m == null ? !1 : String(u) === String(m);
576
576
  }
577
577
  function K(u, m, _) {
578
- const g = e.messagesByConv[u];
579
- if (!g) return;
580
- const h = g.findIndex((p) => p.id === m);
578
+ const y = e.messagesByConv[u];
579
+ if (!y) return;
580
+ const h = y.findIndex((p) => p.id === m);
581
581
  if (h === -1) return;
582
- const f = g.slice();
583
- f[h] = { ...g[h], ..._ }, e.messagesByConv[u] = f;
582
+ const f = y.slice();
583
+ f[h] = { ...y[h], ..._ }, e.messagesByConv[u] = f;
584
584
  }
585
585
  function W(u, m) {
586
586
  const _ = e.conversations.findIndex((h) => h.id === u);
587
587
  if (_ === -1) return;
588
- const g = e.conversations[_];
589
- if (m && (!g.last_message_at || m > g.last_message_at)) {
588
+ const y = e.conversations[_];
589
+ if (m && (!y.last_message_at || m > y.last_message_at)) {
590
590
  const h = e.conversations.slice();
591
- h[_] = { ...g, last_message_at: m }, h.sort(
591
+ h[_] = { ...y, last_message_at: m }, h.sort(
592
592
  (f, p) => (p.last_message_at || "").localeCompare(f.last_message_at || "")
593
593
  ), e.conversations = h;
594
594
  }
@@ -599,8 +599,8 @@ function Pe(t) {
599
599
  function oe(u) {
600
600
  if (!u || typeof u != "object") return null;
601
601
  const m = {}, _ = {};
602
- for (const [g, h] of Object.entries(u))
603
- h !== void 0 && (g === "name" || g === "email" ? h != null && String(h).trim() !== "" && (m[g] = h) : (g === "values" || g === "metadata") && h && typeof h == "object" ? Object.assign(_, h) : _[g] = h);
602
+ for (const [y, h] of Object.entries(u))
603
+ h !== void 0 && (y === "name" || y === "email" ? h != null && String(h).trim() !== "" && (m[y] = h) : (y === "values" || y === "metadata") && h && typeof h == "object" ? Object.assign(_, h) : _[y] = h);
604
604
  return Object.keys(_).length && (m.values = _), Object.keys(m).length ? m : null;
605
605
  }
606
606
  function Q(u) {
@@ -608,8 +608,8 @@ function Pe(t) {
608
608
  let _ = "";
609
609
  for (const f of m)
610
610
  f != null && f.created_at && f.created_at > _ && (_ = f.created_at);
611
- const g = (/* @__PURE__ */ new Date()).toISOString();
612
- return !_ || g > _ ? g : new Date(Date.parse(_) + 1).toISOString();
611
+ const y = (/* @__PURE__ */ new Date()).toISOString();
612
+ return !_ || y > _ ? y : new Date(Date.parse(_) + 1).toISOString();
613
613
  }
614
614
  return {
615
615
  state: e,
@@ -649,7 +649,7 @@ const U = {
649
649
  red: "#B91C1C",
650
650
  redBg: "#FDECEC"
651
651
  }, le = ["#5B5FEF", "#7C3AED", "#DB2777", "#0891B2", "#D97706", "#059669"];
652
- function ye(t = "") {
652
+ function ge(t = "") {
653
653
  return t ? le[t.charCodeAt(0) % le.length] : le[0];
654
654
  }
655
655
  function we(t = "") {
@@ -757,7 +757,7 @@ function Ke(t, e, n, a, r, s) {
757
757
  i("path", { d: "M18 6L6 18M6 6l12 12" })
758
758
  ], -1)
759
759
  ])])
760
- ], 32)) : y("", !0)
760
+ ], 32)) : g("", !0)
761
761
  ]),
762
762
  _: 1
763
763
  }),
@@ -784,7 +784,7 @@ function Ke(t, e, n, a, r, s) {
784
784
  key: 0,
785
785
  class: "wm-launcher__badge",
786
786
  "aria-label": `${n.unreadCount} conversation${n.unreadCount > 1 ? "s" : ""} non lue${n.unreadCount > 1 ? "s" : ""}`
787
- }, b(n.unreadCount > 9 ? "9+" : n.unreadCount), 9, Ge)) : y("", !0)
787
+ }, b(n.unreadCount > 9 ? "9+" : n.unreadCount), 9, Ge)) : g("", !0)
788
788
  ])
789
789
  ]);
790
790
  }
@@ -804,7 +804,7 @@ function Qe(t, e, n, a, r, s) {
804
804
  key: 0,
805
805
  class: "wm-aiav__pulse",
806
806
  style: P({ borderRadius: n.size * 0.32 + 3 + "px" })
807
- }, null, 4)) : y("", !0),
807
+ }, null, 4)) : g("", !0),
808
808
  i("div", {
809
809
  class: E(["wm-aiav__inner", { "wm-aiav__inner--glow": n.pulse }]),
810
810
  style: P({ borderRadius: n.size * 0.32 + "px" })
@@ -848,7 +848,7 @@ const J = /* @__PURE__ */ B(Je, [["render", Qe], ["__scopeId", "data-v-fe042be7"
848
848
  },
849
849
  computed: {
850
850
  bg() {
851
- return this.avatarUrl ? "transparent" : ye(this.name);
851
+ return this.avatarUrl ? "transparent" : ge(this.name);
852
852
  },
853
853
  initials() {
854
854
  return we(this.name);
@@ -891,7 +891,7 @@ const ke = /* @__PURE__ */ B(Ze, [["render", tt], ["__scopeId", "data-v-79449443
891
891
  },
892
892
  methods: {
893
893
  colorFor(t) {
894
- return t.avatar_url ? "transparent" : ye(t.name || "");
894
+ return t.avatar_url ? "transparent" : ge(t.name || "");
895
895
  },
896
896
  initialsFor(t) {
897
897
  return we(t.name || "");
@@ -922,8 +922,8 @@ function ot(t, e, n, a, r, s) {
922
922
  }, null, 8, rt)) : (l(), c("span", it, b(s.initialsFor(o)), 1))
923
923
  ], 4))), 128))
924
924
  ], 4),
925
- n.responseLabel ? (l(), c("span", at, b(n.responseLabel), 1)) : y("", !0)
926
- ])) : y("", !0);
925
+ n.responseLabel ? (l(), c("span", at, b(n.responseLabel), 1)) : g("", !0)
926
+ ])) : g("", !0);
927
927
  }
928
928
  const lt = /* @__PURE__ */ B(nt, [["render", ot], ["__scopeId", "data-v-3659b9c1"]]), ct = {
929
929
  name: "WmHeader",
@@ -967,8 +967,8 @@ const lt = /* @__PURE__ */ B(nt, [["render", ot], ["__scopeId", "data-v-3659b9c1
967
967
  }, pt = { class: "wm-header__status" }, vt = {
968
968
  key: 3,
969
969
  class: "wm-header__fill"
970
- }, gt = { class: "wm-header__actions" };
971
- function yt(t, e, n, a, r, s) {
970
+ }, yt = { class: "wm-header__actions" };
971
+ function gt(t, e, n, a, r, s) {
972
972
  const o = I("HumanAvatar"), d = I("AIAvatar"), v = I("TeamAvatars");
973
973
  return l(), c("div", dt, [
974
974
  n.showBack ? (l(), c("button", {
@@ -1011,15 +1011,15 @@ function yt(t, e, n, a, r, s) {
1011
1011
  key: 0,
1012
1012
  members: n.teamMembers,
1013
1013
  "response-label": n.responseLabel
1014
- }, null, 8, ["members", "response-label"])) : y("", !0),
1014
+ }, null, 8, ["members", "response-label"])) : g("", !0),
1015
1015
  i("span", pt, [
1016
1016
  e[4] || (e[4] = i("span", { class: "wm-header__dot" }, null, -1)),
1017
1017
  se(" " + b(s.statusText), 1)
1018
1018
  ])
1019
- ])) : y("", !0)
1019
+ ])) : g("", !0)
1020
1020
  ])
1021
1021
  ], 64)) : (l(), c("div", vt)),
1022
- i("div", gt, [
1022
+ i("div", yt, [
1023
1023
  n.showMore ? (l(), c("button", {
1024
1024
  key: 0,
1025
1025
  type: "button",
@@ -1051,7 +1051,7 @@ function yt(t, e, n, a, r, s) {
1051
1051
  r: "1.6"
1052
1052
  })
1053
1053
  ], -1)
1054
- ])], 2)) : y("", !0),
1054
+ ])], 2)) : g("", !0),
1055
1055
  n.showClose ? (l(), c("button", {
1056
1056
  key: 1,
1057
1057
  type: "button",
@@ -1073,11 +1073,11 @@ function yt(t, e, n, a, r, s) {
1073
1073
  }, [
1074
1074
  i("path", { d: "M18 6L6 18M6 6l12 12" })
1075
1075
  ], -1)
1076
- ])])) : y("", !0)
1076
+ ])])) : g("", !0)
1077
1077
  ])
1078
1078
  ]);
1079
1079
  }
1080
- const wt = /* @__PURE__ */ B(ct, [["render", yt], ["__scopeId", "data-v-b5f5f6a9"]]), _e = {
1080
+ const wt = /* @__PURE__ */ B(ct, [["render", gt], ["__scopeId", "data-v-b5f5f6a9"]]), _e = {
1081
1081
  book: "M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253m0-13C13.168 5.477 14.754 5 16.5 5c1.747 0 3.332.477 4.5 1.253v13C19.832 18.477 18.247 18 16.5 18c-1.746 0-3.332.477-4.5 1.253",
1082
1082
  changelog: "M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2",
1083
1083
  status: "M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z",
@@ -1184,7 +1184,7 @@ function Pt(t, e, n, a, r, s) {
1184
1184
  ], -1))
1185
1185
  ], 8, Tt))), 128))
1186
1186
  ])
1187
- ])) : y("", !0),
1187
+ ])) : g("", !0),
1188
1188
  n.quickLinks.length ? (l(), c("div", Bt, [
1189
1189
  e[5] || (e[5] = i("div", { class: "wm-onb__section-title" }, "Accès rapide", -1)),
1190
1190
  i("div", Lt, [
@@ -1218,7 +1218,7 @@ function Pt(t, e, n, a, r, s) {
1218
1218
  ], -1))
1219
1219
  ], 8, Rt))), 128))
1220
1220
  ])
1221
- ])) : y("", !0),
1221
+ ])) : g("", !0),
1222
1222
  i("div", Dt, [
1223
1223
  i("button", {
1224
1224
  type: "button",
@@ -1390,19 +1390,19 @@ function un(t, e, n, a, r, s) {
1390
1390
  alt: n.data.title || "",
1391
1391
  loading: "lazy"
1392
1392
  }, null, 8, nn)
1393
- ])) : y("", !0),
1393
+ ])) : g("", !0),
1394
1394
  i("div", sn, [
1395
1395
  i("div", rn, [
1396
1396
  i("div", an, b(n.data.title), 1),
1397
- n.data.subtitle ? (l(), c("div", on, b(n.data.subtitle), 1)) : y("", !0)
1397
+ n.data.subtitle ? (l(), c("div", on, b(n.data.subtitle), 1)) : g("", !0)
1398
1398
  ]),
1399
1399
  n.data.badge && n.data.badge.label ? (l(), c("span", {
1400
1400
  key: 0,
1401
1401
  class: E(["wm-art__badge", `wm-art__badge--${n.data.badge.tone || "neutral"}`])
1402
- }, b(n.data.badge.label), 3)) : y("", !0)
1402
+ }, b(n.data.badge.label), 3)) : g("", !0)
1403
1403
  ]),
1404
1404
  s.hasBody ? (l(), c("div", ln, [
1405
- n.data.body ? (l(), c("div", cn, b(n.data.body), 1)) : y("", !0),
1405
+ n.data.body ? (l(), c("div", cn, b(n.data.body), 1)) : g("", !0),
1406
1406
  s.fields.length ? (l(!0), c(O, { key: 1 }, F(s.fields, (o, d) => (l(), c("div", {
1407
1407
  key: d,
1408
1408
  class: "wm-art__field"
@@ -1411,8 +1411,8 @@ function un(t, e, n, a, r, s) {
1411
1411
  i("div", {
1412
1412
  class: E(["wm-art__fieldValue", { "wm-art__fieldValue--multi": o.multiline }])
1413
1413
  }, b(o.value), 3)
1414
- ]))), 128)) : y("", !0)
1415
- ])) : y("", !0)
1414
+ ]))), 128)) : g("", !0)
1415
+ ])) : g("", !0)
1416
1416
  ]);
1417
1417
  }
1418
1418
  const hn = /* @__PURE__ */ B(Zt, [["render", un], ["__scopeId", "data-v-d7369333"]]);
@@ -1456,7 +1456,7 @@ const fn = {
1456
1456
  return /high|haute|élev|elev|critic|critiq|urgent/.test(e) ? 3 : /low|basse|faible|minor/.test(e) ? 1 : 2;
1457
1457
  }
1458
1458
  }
1459
- }, _n = { class: "wm-art wm-art--ticket" }, pn = { class: "wm-art__head wm-tk__head" }, vn = { class: "wm-art__title wm-tk__title" }, gn = { class: "wm-tk__sub" }, yn = { class: "wm-tk__ref" }, wn = {
1459
+ }, _n = { class: "wm-art wm-art--ticket" }, pn = { class: "wm-art__head wm-tk__head" }, vn = { class: "wm-art__title wm-tk__title" }, yn = { class: "wm-tk__sub" }, gn = { class: "wm-tk__ref" }, wn = {
1460
1460
  key: 0,
1461
1461
  class: "wm-art__body"
1462
1462
  }, bn = {
@@ -1470,8 +1470,8 @@ function Sn(t, e, n, a, r, s) {
1470
1470
  return l(), c("div", _n, [
1471
1471
  i("div", pn, [
1472
1472
  i("div", vn, b(n.data.title), 1),
1473
- i("div", gn, [
1474
- i("div", yn, [
1473
+ i("div", yn, [
1474
+ i("div", gn, [
1475
1475
  e[0] || (e[0] = i("svg", {
1476
1476
  width: "11",
1477
1477
  height: "11",
@@ -1500,7 +1500,7 @@ function Sn(t, e, n, a, r, s) {
1500
1500
  ])
1501
1501
  ]),
1502
1502
  s.hasBody ? (l(), c("div", wn, [
1503
- n.data.body ? (l(), c("div", bn, b(n.data.body), 1)) : y("", !0),
1503
+ n.data.body ? (l(), c("div", bn, b(n.data.body), 1)) : g("", !0),
1504
1504
  s.fields.length ? (l(!0), c(O, { key: 1 }, F(s.fields, (o, d) => (l(), c("div", {
1505
1505
  key: d,
1506
1506
  class: "wm-art__field"
@@ -1539,11 +1539,11 @@ function Sn(t, e, n, a, r, s) {
1539
1539
  height: "9",
1540
1540
  rx: "0.5"
1541
1541
  }, null, -1)
1542
- ])], 8, Cn)) : y("", !0),
1542
+ ])], 8, Cn)) : g("", !0),
1543
1543
  i("span", null, b(o.value), 1)
1544
1544
  ], 2)
1545
- ]))), 128)) : y("", !0)
1546
- ])) : y("", !0),
1545
+ ]))), 128)) : g("", !0)
1546
+ ])) : g("", !0),
1547
1547
  n.data.created_at ? (l(), c("div", An, [
1548
1548
  e[3] || (e[3] = i("svg", {
1549
1549
  width: "11",
@@ -1566,7 +1566,7 @@ function Sn(t, e, n, a, r, s) {
1566
1566
  i("path", { d: "M16 2v4M8 2v4M3 10h18" })
1567
1567
  ], -1)),
1568
1568
  i("span", null, b(s.formattedDate), 1)
1569
- ])) : y("", !0)
1569
+ ])) : g("", !0)
1570
1570
  ]);
1571
1571
  }
1572
1572
  const xn = /* @__PURE__ */ B(fn, [["render", Sn], ["__scopeId", "data-v-f0495924"]]), Mn = {
@@ -1592,7 +1592,7 @@ function In(t, e, n, a, r, s) {
1592
1592
  return s.component ? (l(), $(Ie(s.component), {
1593
1593
  key: 0,
1594
1594
  data: n.artifact.data
1595
- }, null, 8, ["data"])) : y("", !0);
1595
+ }, null, 8, ["data"])) : g("", !0);
1596
1596
  }
1597
1597
  const Ae = /* @__PURE__ */ B(Tn, [["render", In]]), On = {
1598
1598
  name: "WmActionResult",
@@ -1664,12 +1664,12 @@ function Un(t, e, n, a, r, s) {
1664
1664
  key: 0,
1665
1665
  class: "wm-result__detail",
1666
1666
  innerHTML: s.detailHtml
1667
- }, null, 8, Fn)) : y("", !0)
1667
+ }, null, 8, Fn)) : g("", !0)
1668
1668
  ])
1669
1669
  ]),
1670
1670
  n.artifact ? (l(), c("div", jn, [
1671
1671
  H(o, { artifact: n.artifact }, null, 8, ["artifact"])
1672
- ])) : y("", !0)
1672
+ ])) : g("", !0)
1673
1673
  ]);
1674
1674
  }
1675
1675
  const Dn = /* @__PURE__ */ B(On, [["render", Un], ["__scopeId", "data-v-037fd69e"]]), Nn = {
@@ -1787,9 +1787,9 @@ function Jn(t, e, n, a, r, s) {
1787
1787
  ], -1)),
1788
1788
  i("span", Wn, [
1789
1789
  i("span", Gn, b(s.displayName), 1),
1790
- s.sizeLabel ? (l(), c("span", Kn, b(s.sizeLabel), 1)) : y("", !0)
1790
+ s.sizeLabel ? (l(), c("span", Kn, b(s.sizeLabel), 1)) : g("", !0)
1791
1791
  ]),
1792
- r.loading ? (l(), c("span", Yn)) : y("", !0)
1792
+ r.loading ? (l(), c("span", Yn)) : g("", !0)
1793
1793
  ], 8, qn))
1794
1794
  ], 2);
1795
1795
  }
@@ -1815,7 +1815,7 @@ function es(t, e, n, a, r, s) {
1815
1815
  ], !0)
1816
1816
  ], 2);
1817
1817
  }
1818
- const ts = /* @__PURE__ */ B(Qn, [["render", es], ["__scopeId", "data-v-bcbe5969"]]), ns = { name: "WmTyping" }, ss = { class: "wm-typing" };
1818
+ const ts = /* @__PURE__ */ B(Qn, [["render", es], ["__scopeId", "data-v-c52bb028"]]), ns = { name: "WmTyping" }, ss = { class: "wm-typing" };
1819
1819
  function rs(t, e, n, a, r, s) {
1820
1820
  return l(), c("div", ss, [...e[0] || (e[0] = [
1821
1821
  i("span", { style: { "animation-delay": "0s" } }, null, -1),
@@ -2016,12 +2016,13 @@ const as = {
2016
2016
  // - The two corners on the *opposite* edge stay rounded
2017
2017
  // unless the neighbour is a strictly-wider item (card vs
2018
2018
  // bubble) that physically covers them.
2019
- // Standalone bubbles (no neighbours) keep the tail design: a
2020
- // small TL for ai/human, small BR for user.
2019
+ // Bubbles also get a small "tail" on their bottom lateral
2020
+ // corner whenever they're the last item of the cluster
2021
+ // (standalone counts as last) — BL for ai/human, BR for user.
2021
2022
  cornersFor(t, e) {
2022
2023
  const n = t.messages, a = this.itemKindOf(n[e]), r = this.itemKindOf(n[e - 1]), s = this.itemKindOf(n[e + 1]), o = t.role === "user", d = 14, v = 4, C = (D, x) => D === "card" && x === "bubble";
2023
2024
  let w = d, S = d, L = d, A = d;
2024
- return o ? (r && (S = v, C(r, a) && (w = v)), s && (L = v, C(s, a) && (A = v)), !r && !s && a === "bubble" && (L = v)) : (r && (w = v, C(r, a) && (S = v)), s && (A = v, C(s, a) && (L = v)), !r && !s && a === "bubble" && (w = v)), { tl: w, tr: S, br: L, bl: A };
2025
+ return o ? (r && (S = v, C(r, a) && (w = v)), s && (L = v, C(s, a) && (A = v)), !s && a === "bubble" && (L = v)) : (r && (w = v, C(r, a) && (S = v)), s && (A = v, C(s, a) && (L = v)), !s && a === "bubble" && (A = v)), { tl: w, tr: S, br: L, bl: A };
2025
2026
  },
2026
2027
  // Inline style emitting the four corner CSS variables. Set on
2027
2028
  // `.wm-list__row` so they cascade to Bubble/ActionResult/
@@ -2102,19 +2103,19 @@ const as = {
2102
2103
  key: 0,
2103
2104
  class: "wm-list__sysep"
2104
2105
  }, _s = { class: "wm-list__sysep-label" }, ps = {
2105
- key: 0,
2106
- class: "wm-list__role"
2107
- }, vs = {
2108
2106
  key: 0,
2109
2107
  class: "wm-list__avatarSlot"
2110
- }, gs = {
2108
+ }, vs = {
2111
2109
  key: 3,
2112
2110
  class: "wm-list__body"
2113
- }, ys = {
2111
+ }, ys = { key: 0 }, gs = {
2112
+ key: 1,
2113
+ "aria-hidden": "true"
2114
+ }, ws = { key: 2 }, bs = {
2114
2115
  key: 3,
2115
2116
  class: "wm-list__row wm-list__row--ai fade-up"
2116
- }, ws = { class: "wm-list__avatarSlot" };
2117
- function bs(t, e, n, a, r, s) {
2117
+ }, ks = { class: "wm-list__avatarSlot" };
2118
+ function Cs(t, e, n, a, r, s) {
2118
2119
  const o = I("AIAvatar"), d = I("HumanAvatar"), v = I("ActionResult"), C = I("ArtifactRenderer"), w = I("Bubble"), S = I("AttachmentPreview"), L = I("Typing");
2119
2120
  return l(), c("div", {
2120
2121
  ref: "scrollEl",
@@ -2127,12 +2128,12 @@ function bs(t, e, n, a, r, s) {
2127
2128
  "aria-hidden": "true"
2128
2129
  }, null, -1),
2129
2130
  i("span", { class: "wm-list__loadMore-lbl" }, "Chargement de l'historique…", -1)
2130
- ])])) : s.historyExhausted ? (l(), c("div", us, "Début de la conversation")) : y("", !0),
2131
+ ])])) : s.historyExhausted ? (l(), c("div", us, "Début de la conversation")) : g("", !0),
2131
2132
  n.dateLabel ? (l(), c("div", hs, [
2132
2133
  e[2] || (e[2] = i("div", { class: "wm-list__line" }, null, -1)),
2133
2134
  i("span", ms, b(n.dateLabel), 1),
2134
2135
  e[3] || (e[3] = i("div", { class: "wm-list__line" }, null, -1))
2135
- ])) : y("", !0),
2136
+ ])) : g("", !0),
2136
2137
  (l(!0), c(O, null, F(s.groups, (A, D) => (l(), c("div", {
2137
2138
  key: A.key,
2138
2139
  class: E(["wm-list__group", "wm-list__group--" + A.role])
@@ -2142,13 +2143,12 @@ function bs(t, e, n, a, r, s) {
2142
2143
  i("span", _s, b(A.systemLabel), 1),
2143
2144
  e[5] || (e[5] = i("div", { class: "wm-list__line wm-list__line--strong" }, null, -1))
2144
2145
  ])) : (l(), c(O, { key: 1 }, [
2145
- A.role !== "user" ? (l(), c("div", ps, b(s.roleLabel(A)), 1)) : y("", !0),
2146
2146
  (l(!0), c(O, null, F(A.messages, (x, N) => (l(), c("div", {
2147
2147
  key: s.messageKey(x),
2148
2148
  class: E(["wm-list__row fade-up", ["wm-list__row--" + A.role, { "is-pending": x._pending, "is-failed": x._failed }]]),
2149
2149
  style: P(s.cornersStyle(A, N))
2150
2150
  }, [
2151
- A.role !== "user" ? (l(), c("div", vs, [
2151
+ A.role !== "user" ? (l(), c("div", ps, [
2152
2152
  N === A.messages.length - 1 ? (l(), c(O, { key: 0 }, [
2153
2153
  A.role === "ai" ? (l(), $(o, {
2154
2154
  key: 0,
@@ -2159,8 +2159,8 @@ function bs(t, e, n, a, r, s) {
2159
2159
  "avatar-url": A.agentAvatarUrl,
2160
2160
  size: 26
2161
2161
  }, null, 8, ["name", "avatar-url"]))
2162
- ], 64)) : y("", !0)
2163
- ])) : y("", !0),
2162
+ ], 64)) : g("", !0)
2163
+ ])) : g("", !0),
2164
2164
  x.type === "action" && x.payload && x.payload.state !== "pending" ? (l(), $(v, {
2165
2165
  key: 1,
2166
2166
  state: x.payload.state,
@@ -2170,12 +2170,12 @@ function bs(t, e, n, a, r, s) {
2170
2170
  }, null, 8, ["state", "label", "detail", "artifact"])) : s.artifactOf(x) ? (l(), $(C, {
2171
2171
  key: 2,
2172
2172
  artifact: s.artifactOf(x)
2173
- }, null, 8, ["artifact"])) : (l(), c("div", gs, [
2173
+ }, null, 8, ["artifact"])) : (l(), c("div", vs, [
2174
2174
  x.text_md ? (l(), $(w, {
2175
2175
  key: 0,
2176
2176
  role: A.role,
2177
2177
  text: x.text_md
2178
- }, null, 8, ["role", "text"])) : y("", !0),
2178
+ }, null, 8, ["role", "text"])) : g("", !0),
2179
2179
  s.attachmentsOf(x).length ? (l(), c("div", {
2180
2180
  key: 1,
2181
2181
  class: E(["wm-list__atts", { "wm-list__atts--align-end": A.role === "user" }])
@@ -2184,25 +2184,29 @@ function bs(t, e, n, a, r, s) {
2184
2184
  key: `${s.messageKey(x)}-att-${z}`,
2185
2185
  attachment: j
2186
2186
  }, null, 8, ["attachment"]))), 128))
2187
- ], 2)) : y("", !0)
2187
+ ], 2)) : g("", !0)
2188
2188
  ]))
2189
2189
  ], 6))), 128)),
2190
- s.lastTimeOf(A) ? (l(), c("div", {
2191
- key: 1,
2192
- class: E(["wm-list__time", { "wm-list__time--right": A.role === "user" }])
2193
- }, b(s.lastTimeOf(A)), 3)) : y("", !0)
2190
+ A.role !== "user" || s.lastTimeOf(A) ? (l(), c("div", {
2191
+ key: 0,
2192
+ class: E(["wm-list__meta", { "wm-list__meta--right": A.role === "user" }])
2193
+ }, [
2194
+ A.role !== "user" ? (l(), c("span", ys, b(s.roleLabel(A)), 1)) : g("", !0),
2195
+ A.role !== "user" && s.lastTimeOf(A) ? (l(), c("span", gs, "·")) : g("", !0),
2196
+ s.lastTimeOf(A) ? (l(), c("span", ws, b(s.lastTimeOf(A)), 1)) : g("", !0)
2197
+ ], 2)) : g("", !0)
2194
2198
  ], 64))
2195
2199
  ], 2))), 128)),
2196
- n.streamingActive ? (l(), c("div", ys, [
2197
- i("div", ws, [
2200
+ n.streamingActive ? (l(), c("div", bs, [
2201
+ i("div", ks, [
2198
2202
  H(o, { size: 26 })
2199
2203
  ]),
2200
2204
  H(L)
2201
- ])) : y("", !0)
2205
+ ])) : g("", !0)
2202
2206
  ], 34);
2203
2207
  }
2204
- const ks = /* @__PURE__ */ B(cs, [["render", bs], ["__scopeId", "data-v-f23f2f8c"]]), te = typeof navigator < "u" && !!navigator.mediaDevices && typeof navigator.mediaDevices.getDisplayMedia == "function", he = typeof window < "u" && typeof window.MediaRecorder < "u";
2205
- function Cs() {
2208
+ const As = /* @__PURE__ */ B(cs, [["render", Cs], ["__scopeId", "data-v-02fa95cc"]]), te = typeof navigator < "u" && !!navigator.mediaDevices && typeof navigator.mediaDevices.getDisplayMedia == "function", he = typeof window < "u" && typeof window.MediaRecorder < "u";
2209
+ function Ss() {
2206
2210
  return he && [
2207
2211
  "video/webm;codecs=vp9,opus",
2208
2212
  "video/webm;codecs=vp8,opus",
@@ -2222,10 +2226,10 @@ function Se({ audio: t }) {
2222
2226
  systemAudio: t ? "include" : "exclude"
2223
2227
  };
2224
2228
  }
2225
- function $i(t) {
2229
+ function ji(t) {
2226
2230
  return t ? t.startsWith("image/") ? "image" : t.startsWith("video/") ? "video" : "file" : "file";
2227
2231
  }
2228
- async function As() {
2232
+ async function xs() {
2229
2233
  if (!te) return null;
2230
2234
  let t;
2231
2235
  try {
@@ -2234,7 +2238,7 @@ async function As() {
2234
2238
  return (e == null ? void 0 : e.name) !== "NotAllowedError" && console.error("[media] screenshot picker", e), null;
2235
2239
  }
2236
2240
  try {
2237
- return await Ss(t);
2241
+ return await Ms(t);
2238
2242
  } catch (e) {
2239
2243
  return console.error("[media] screenshot capture", e), null;
2240
2244
  } finally {
@@ -2243,7 +2247,7 @@ async function As() {
2243
2247
  });
2244
2248
  }
2245
2249
  }
2246
- async function Ss(t) {
2250
+ async function Ms(t) {
2247
2251
  const e = document.createElement("video");
2248
2252
  e.muted = !0, e.playsInline = !0, e.srcObject = t, await e.play(), await new Promise((d) => requestAnimationFrame(d));
2249
2253
  const n = e.videoWidth || 1280, a = e.videoHeight || 720, r = document.createElement("canvas");
@@ -2253,7 +2257,7 @@ async function Ss(t) {
2253
2257
  }), o = (/* @__PURE__ */ new Date()).toISOString().replace(/[:.]/g, "-").slice(0, 19);
2254
2258
  return new File([s], `capture-${o}.png`, { type: "image/png" });
2255
2259
  }
2256
- async function xs(t = {}) {
2260
+ async function Ts(t = {}) {
2257
2261
  var C;
2258
2262
  if (!te || !he) return null;
2259
2263
  let e;
@@ -2262,7 +2266,7 @@ async function xs(t = {}) {
2262
2266
  } catch (w) {
2263
2267
  return (w == null ? void 0 : w.name) !== "NotAllowedError" && console.error("[media] record picker", w), null;
2264
2268
  }
2265
- const n = Cs();
2269
+ const n = Ss();
2266
2270
  let a;
2267
2271
  try {
2268
2272
  a = n ? new window.MediaRecorder(e, { mimeType: n }) : new window.MediaRecorder(e);
@@ -2314,7 +2318,7 @@ async function xs(t = {}) {
2314
2318
  }
2315
2319
  };
2316
2320
  }
2317
- const Ms = [
2321
+ const Is = [
2318
2322
  {
2319
2323
  action: "file",
2320
2324
  label: "Joindre un fichier",
@@ -2330,7 +2334,7 @@ const Ms = [
2330
2334
  label: "Enregistrer l'écran",
2331
2335
  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"
2332
2336
  }
2333
- ], Ts = {
2337
+ ], Os = {
2334
2338
  name: "WmComposer",
2335
2339
  props: {
2336
2340
  modelValue: { type: String, default: "" },
@@ -2353,7 +2357,7 @@ const Ms = [
2353
2357
  return !this.disabled && !!this.local.trim();
2354
2358
  },
2355
2359
  attachItems() {
2356
- return Ms.map((t) => ({
2360
+ return Is.map((t) => ({
2357
2361
  ...t,
2358
2362
  disabled: t.action === "screenshot" && !te || t.action === "record" && (!te || !he)
2359
2363
  }));
@@ -2425,13 +2429,13 @@ const Ms = [
2425
2429
  },
2426
2430
  async captureScreenshot() {
2427
2431
  if (this.disabled) return;
2428
- const t = await As();
2432
+ const t = await xs();
2429
2433
  t && this.$emit("attach", t);
2430
2434
  },
2431
2435
  async startRecording() {
2432
2436
  if (this.recording || this.disabled) return;
2433
2437
  this.recordingElapsed = 0;
2434
- const t = await xs({
2438
+ const t = await Ts({
2435
2439
  onstart: () => {
2436
2440
  this.recording = !0;
2437
2441
  },
@@ -2456,33 +2460,33 @@ const Ms = [
2456
2460
  }
2457
2461
  }
2458
2462
  }
2459
- }, Is = { class: "wm-compose-wrap" }, Os = {
2463
+ }, Es = { class: "wm-compose-wrap" }, Bs = {
2460
2464
  key: 0,
2461
2465
  class: "wm-rec"
2462
- }, Es = { class: "wm-rec__lbl" }, Bs = {
2466
+ }, Ls = { class: "wm-rec__lbl" }, Rs = {
2463
2467
  key: 1,
2464
2468
  class: "wm-compose__menu",
2465
2469
  role: "menu"
2466
- }, Ls = ["disabled", "onClick"], Rs = { class: "wm-compose__menuIcon" }, $s = {
2470
+ }, $s = ["disabled", "onClick"], Fs = { class: "wm-compose__menuIcon" }, js = {
2467
2471
  viewBox: "0 0 24 24",
2468
2472
  width: "14",
2469
2473
  height: "14",
2470
2474
  "aria-hidden": "true"
2471
- }, Fs = ["d"], js = ["placeholder", "disabled"], Us = { class: "wm-compose__actions" }, Ds = ["title", "aria-label", "disabled"], Ns = ["disabled"];
2472
- function Ps(t, e, n, a, r, s) {
2473
- return l(), c("div", Is, [
2474
- r.recording ? (l(), c("div", Os, [
2475
+ }, Us = ["d"], Ds = ["placeholder", "disabled"], Ns = { class: "wm-compose__actions" }, Ps = ["title", "aria-label", "disabled"], Hs = ["disabled"];
2476
+ function zs(t, e, n, a, r, s) {
2477
+ return l(), c("div", Es, [
2478
+ r.recording ? (l(), c("div", Bs, [
2475
2479
  e[8] || (e[8] = i("span", {
2476
2480
  class: "wm-rec__dot",
2477
2481
  "aria-hidden": "true"
2478
2482
  }, null, -1)),
2479
- i("span", Es, "Enregistrement · " + b(s.recordingElapsedLabel), 1),
2483
+ i("span", Ls, "Enregistrement · " + b(s.recordingElapsedLabel), 1),
2480
2484
  i("button", {
2481
2485
  type: "button",
2482
2486
  class: "wm-rec__stop",
2483
2487
  onClick: e[0] || (e[0] = (...o) => s.stopRecording && s.stopRecording(...o))
2484
2488
  }, "Arrêter")
2485
- ])) : y("", !0),
2489
+ ])) : g("", !0),
2486
2490
  i("form", {
2487
2491
  class: E(["wm-compose", { "has-attach": r.attachOpen }]),
2488
2492
  onSubmit: e[7] || (e[7] = Y((...o) => s.onSubmit && s.onSubmit(...o), ["prevent"]))
@@ -2498,8 +2502,8 @@ function Ps(t, e, n, a, r, s) {
2498
2502
  key: 0,
2499
2503
  class: "wm-compose__overlay",
2500
2504
  onClick: e[2] || (e[2] = (o) => r.attachOpen = !1)
2501
- })) : y("", !0),
2502
- r.attachOpen ? (l(), c("div", Bs, [
2505
+ })) : g("", !0),
2506
+ r.attachOpen ? (l(), c("div", Rs, [
2503
2507
  (l(!0), c(O, null, F(s.attachItems, (o) => (l(), c("button", {
2504
2508
  key: o.action,
2505
2509
  type: "button",
@@ -2507,8 +2511,8 @@ function Ps(t, e, n, a, r, s) {
2507
2511
  disabled: o.disabled,
2508
2512
  onClick: (d) => s.onAttachAction(o.action)
2509
2513
  }, [
2510
- i("span", Rs, [
2511
- (l(), c("svg", $s, [
2514
+ i("span", Fs, [
2515
+ (l(), c("svg", js, [
2512
2516
  i("path", {
2513
2517
  d: o.path,
2514
2518
  stroke: "currentColor",
@@ -2516,12 +2520,12 @@ function Ps(t, e, n, a, r, s) {
2516
2520
  "stroke-linecap": "round",
2517
2521
  "stroke-linejoin": "round",
2518
2522
  fill: "none"
2519
- }, null, 8, Fs)
2523
+ }, null, 8, Us)
2520
2524
  ]))
2521
2525
  ]),
2522
2526
  i("span", null, b(o.label), 1)
2523
- ], 8, Ls))), 128))
2524
- ])) : y("", !0),
2527
+ ], 8, $s))), 128))
2528
+ ])) : g("", !0),
2525
2529
  V(i("textarea", {
2526
2530
  ref: "inputEl",
2527
2531
  "onUpdate:modelValue": e[3] || (e[3] = (o) => r.local = o),
@@ -2531,10 +2535,10 @@ function Ps(t, e, n, a, r, s) {
2531
2535
  disabled: n.disabled,
2532
2536
  onKeydown: e[4] || (e[4] = (...o) => s.onKeydown && s.onKeydown(...o)),
2533
2537
  onInput: e[5] || (e[5] = (...o) => s.autosize && s.autosize(...o))
2534
- }, null, 40, js), [
2538
+ }, null, 40, Ds), [
2535
2539
  [G, r.local]
2536
2540
  ]),
2537
- i("div", Us, [
2541
+ i("div", Ns, [
2538
2542
  i("button", {
2539
2543
  type: "button",
2540
2544
  class: E(["wm-compose__icon", { "is-open": r.attachOpen }]),
@@ -2556,7 +2560,7 @@ function Ps(t, e, n, a, r, s) {
2556
2560
  }, [
2557
2561
  i("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" })
2558
2562
  ], -1)
2559
- ])], 10, Ds),
2563
+ ])], 10, Ps),
2560
2564
  i("button", {
2561
2565
  type: "submit",
2562
2566
  class: E(["wm-compose__send", { "is-empty": !s.canSend }]),
@@ -2576,12 +2580,12 @@ function Ps(t, e, n, a, r, s) {
2576
2580
  }, [
2577
2581
  i("path", { d: "M22 2L11 13M22 2l-7 20-4-9-9-4 20-7z" })
2578
2582
  ], -1)
2579
- ])], 10, Ns)
2583
+ ])], 10, Hs)
2580
2584
  ])
2581
2585
  ], 34)
2582
2586
  ]);
2583
2587
  }
2584
- const Hs = /* @__PURE__ */ B(Ts, [["render", Ps], ["__scopeId", "data-v-14fa9ec0"]]), zs = {
2588
+ const Vs = /* @__PURE__ */ B(Os, [["render", zs], ["__scopeId", "data-v-14fa9ec0"]]), qs = {
2585
2589
  name: "WmSuggestionChips",
2586
2590
  props: {
2587
2591
  items: { type: Array, default: () => [] },
@@ -2598,8 +2602,8 @@ const Hs = /* @__PURE__ */ B(Ts, [["render", Ps], ["__scopeId", "data-v-14fa9ec0
2598
2602
  return this.items.map((t) => (t == null ? void 0 : t.label) || (t == null ? void 0 : t.text) || "").join("§");
2599
2603
  }
2600
2604
  }
2601
- }, Vs = ["onClick"];
2602
- function qs(t, e, n, a, r, s) {
2605
+ }, Ws = ["onClick"];
2606
+ function Gs(t, e, n, a, r, s) {
2603
2607
  return n.items.length ? (l(), c("div", {
2604
2608
  key: s.batchKey,
2605
2609
  class: "wm-chips"
@@ -2610,10 +2614,10 @@ function qs(t, e, n, a, r, s) {
2610
2614
  class: "wm-chip",
2611
2615
  style: P({ animationDelay: n.baseDelay + d * n.stepDelay + "ms" }),
2612
2616
  onClick: (v) => t.$emit("select", o)
2613
- }, b(o.label), 13, Vs))), 128))
2614
- ])) : y("", !0);
2617
+ }, b(o.label), 13, Ws))), 128))
2618
+ ])) : g("", !0);
2615
2619
  }
2616
- const Ws = /* @__PURE__ */ B(zs, [["render", qs], ["__scopeId", "data-v-55aa529d"]]), Gs = {
2620
+ const Ks = /* @__PURE__ */ B(qs, [["render", Gs], ["__scopeId", "data-v-55aa529d"]]), Ys = {
2617
2621
  name: "WmApprovalCard",
2618
2622
  components: { AIAvatar: J },
2619
2623
  props: {
@@ -2646,41 +2650,41 @@ const Ws = /* @__PURE__ */ B(zs, [["render", qs], ["__scopeId", "data-v-55aa529d
2646
2650
  return ((t = this.rejectCallback) == null ? void 0 : t.label) || "Refuser";
2647
2651
  }
2648
2652
  }
2649
- }, Ks = { class: "wm-approval" }, Ys = { class: "wm-approval__head" }, Js = { class: "wm-approval__icon" }, Xs = { class: "wm-approval__main" }, Qs = { class: "wm-approval__title" }, Zs = {
2653
+ }, Js = { class: "wm-approval" }, Xs = { class: "wm-approval__head" }, Qs = { class: "wm-approval__icon" }, Zs = { class: "wm-approval__main" }, er = { class: "wm-approval__title" }, tr = {
2650
2654
  key: 0,
2651
2655
  class: "wm-approval__detail"
2652
- }, er = { class: "wm-approval__actions" };
2653
- function tr(t, e, n, a, r, s) {
2656
+ }, nr = { class: "wm-approval__actions" };
2657
+ function sr(t, e, n, a, r, s) {
2654
2658
  const o = I("AIAvatar");
2655
- return l(), c("div", Ks, [
2656
- i("div", Ys, [
2657
- i("div", Js, [
2659
+ return l(), c("div", Js, [
2660
+ i("div", Xs, [
2661
+ i("div", Qs, [
2658
2662
  H(o, { size: 24 })
2659
2663
  ]),
2660
- i("div", Xs, [
2661
- i("div", Qs, b(n.action), 1),
2662
- n.detail ? (l(), c("div", Zs, b(n.detail), 1)) : y("", !0)
2664
+ i("div", Zs, [
2665
+ i("div", er, b(n.action), 1),
2666
+ n.detail ? (l(), c("div", tr, b(n.detail), 1)) : g("", !0)
2663
2667
  ])
2664
2668
  ]),
2665
- i("div", er, [
2669
+ i("div", nr, [
2666
2670
  s.rejectId ? (l(), c("button", {
2667
2671
  key: 0,
2668
2672
  type: "button",
2669
2673
  class: "wm-approval__btn wm-approval__btn--neutral",
2670
2674
  onClick: e[0] || (e[0] = (d) => t.$emit("callback", s.rejectId))
2671
- }, b(s.rejectLabel), 1)) : y("", !0),
2675
+ }, b(s.rejectLabel), 1)) : g("", !0),
2672
2676
  s.approveId ? (l(), c("button", {
2673
2677
  key: 1,
2674
2678
  type: "button",
2675
2679
  class: "wm-approval__btn wm-approval__btn--primary",
2676
2680
  onClick: e[1] || (e[1] = (d) => t.$emit("callback", s.approveId))
2677
- }, b(s.approveLabel), 1)) : y("", !0)
2681
+ }, b(s.approveLabel), 1)) : g("", !0)
2678
2682
  ])
2679
2683
  ]);
2680
2684
  }
2681
- const nr = /* @__PURE__ */ B(Gs, [["render", tr], ["__scopeId", "data-v-b1be139c"]]);
2685
+ const rr = /* @__PURE__ */ B(Ys, [["render", sr], ["__scopeId", "data-v-b1be139c"]]);
2682
2686
  let ve = 0;
2683
- const sr = /* @__PURE__ */ new Set([
2687
+ const ir = /* @__PURE__ */ new Set([
2684
2688
  "text",
2685
2689
  "textarea",
2686
2690
  "number",
@@ -2688,7 +2692,7 @@ const sr = /* @__PURE__ */ new Set([
2688
2692
  "select",
2689
2693
  "multiselect",
2690
2694
  "date"
2691
- ]), rr = {
2695
+ ]), ar = {
2692
2696
  name: "WmFormCard",
2693
2697
  components: { AIAvatar: J },
2694
2698
  props: {
@@ -2711,7 +2715,7 @@ const sr = /* @__PURE__ */ new Set([
2711
2715
  // douteux.
2712
2716
  normalizedFields() {
2713
2717
  var e;
2714
- return (Array.isArray((e = this.form) == null ? void 0 : e.fields) ? this.form.fields : []).filter((n) => !(!(n != null && n.key) || !(n != null && n.label) || !sr.has(n == null ? void 0 : n.type) || (n.type === "select" || n.type === "multiselect") && (!Array.isArray(n.options) || n.options.length === 0)));
2718
+ return (Array.isArray((e = this.form) == null ? void 0 : e.fields) ? this.form.fields : []).filter((n) => !(!(n != null && n.key) || !(n != null && n.label) || !ir.has(n == null ? void 0 : n.type) || (n.type === "select" || n.type === "multiselect") && (!Array.isArray(n.options) || n.options.length === 0)));
2715
2719
  }
2716
2720
  },
2717
2721
  created() {
@@ -2762,43 +2766,43 @@ const sr = /* @__PURE__ */ new Set([
2762
2766
  }
2763
2767
  }
2764
2768
  }
2765
- }, ir = { class: "wm-form" }, ar = { class: "wm-form__head" }, or = { class: "wm-form__icon" }, lr = { class: "wm-form__main" }, cr = { class: "wm-form__title" }, dr = {
2769
+ }, or = { class: "wm-form" }, lr = { class: "wm-form__head" }, cr = { class: "wm-form__icon" }, dr = { class: "wm-form__main" }, ur = { class: "wm-form__title" }, hr = {
2766
2770
  key: 0,
2767
2771
  class: "wm-form__detail"
2768
- }, ur = ["for"], hr = {
2772
+ }, mr = ["for"], fr = {
2769
2773
  key: 0,
2770
2774
  class: "wm-form__req",
2771
2775
  "aria-hidden": "true"
2772
- }, mr = ["id", "onUpdate:modelValue", "placeholder", "required", "disabled"], fr = ["id", "onUpdate:modelValue", "placeholder", "required", "disabled"], _r = ["id", "onUpdate:modelValue", "placeholder", "required", "disabled"], pr = ["id", "onUpdate:modelValue", "required", "disabled"], vr = {
2776
+ }, _r = ["id", "onUpdate:modelValue", "placeholder", "required", "disabled"], pr = ["id", "onUpdate:modelValue", "placeholder", "required", "disabled"], vr = ["id", "onUpdate:modelValue", "placeholder", "required", "disabled"], yr = ["id", "onUpdate:modelValue", "required", "disabled"], gr = {
2773
2777
  key: 4,
2774
2778
  class: "wm-form__bool"
2775
- }, gr = ["id", "onUpdate:modelValue", "disabled"], yr = ["id", "onUpdate:modelValue", "required", "disabled"], wr = {
2779
+ }, wr = ["id", "onUpdate:modelValue", "disabled"], br = ["id", "onUpdate:modelValue", "required", "disabled"], kr = {
2776
2780
  value: "",
2777
2781
  disabled: ""
2778
- }, br = ["value"], kr = {
2782
+ }, Cr = ["value"], Ar = {
2779
2783
  key: 6,
2780
2784
  class: "wm-form__multi"
2781
- }, Cr = ["value", "checked", "disabled", "onChange"], Ar = {
2785
+ }, Sr = ["value", "checked", "disabled", "onChange"], xr = {
2782
2786
  key: 0,
2783
2787
  class: "wm-form__err"
2784
- }, Sr = ["disabled"], xr = {
2788
+ }, Mr = ["disabled"], Tr = {
2785
2789
  key: 0,
2786
2790
  class: "wm-form__spinner",
2787
2791
  "aria-hidden": "true"
2788
- }, Mr = {
2792
+ }, Ir = {
2789
2793
  key: 2,
2790
2794
  class: "wm-form__doneLbl"
2791
2795
  };
2792
- function Tr(t, e, n, a, r, s) {
2796
+ function Or(t, e, n, a, r, s) {
2793
2797
  const o = I("AIAvatar");
2794
- return l(), c("div", ir, [
2795
- i("div", ar, [
2796
- i("div", or, [
2798
+ return l(), c("div", or, [
2799
+ i("div", lr, [
2800
+ i("div", cr, [
2797
2801
  H(o, { size: 24 })
2798
2802
  ]),
2799
- i("div", lr, [
2800
- i("div", cr, b(n.form.title || "Formulaire"), 1),
2801
- n.form.description ? (l(), c("div", dr, b(n.form.description), 1)) : y("", !0)
2803
+ i("div", dr, [
2804
+ i("div", ur, b(n.form.title || "Formulaire"), 1),
2805
+ n.form.description ? (l(), c("div", hr, b(n.form.description), 1)) : g("", !0)
2802
2806
  ])
2803
2807
  ]),
2804
2808
  i("form", {
@@ -2814,8 +2818,8 @@ function Tr(t, e, n, a, r, s) {
2814
2818
  class: "wm-form__label"
2815
2819
  }, [
2816
2820
  se(b(d.label), 1),
2817
- d.required ? (l(), c("span", hr, "*")) : y("", !0)
2818
- ], 8, ur),
2821
+ d.required ? (l(), c("span", fr, "*")) : g("", !0)
2822
+ ], 8, mr),
2819
2823
  d.type === "text" ? V((l(), c("input", {
2820
2824
  key: 0,
2821
2825
  id: `wm-f-${r._uid}-${d.key}`,
@@ -2825,7 +2829,7 @@ function Tr(t, e, n, a, r, s) {
2825
2829
  placeholder: d.placeholder || "",
2826
2830
  required: d.required,
2827
2831
  disabled: n.readOnly || r.busy
2828
- }, null, 8, mr)), [
2832
+ }, null, 8, _r)), [
2829
2833
  [G, r.values[d.key]]
2830
2834
  ]) : d.type === "textarea" ? V((l(), c("textarea", {
2831
2835
  key: 1,
@@ -2836,7 +2840,7 @@ function Tr(t, e, n, a, r, s) {
2836
2840
  placeholder: d.placeholder || "",
2837
2841
  required: d.required,
2838
2842
  disabled: n.readOnly || r.busy
2839
- }, null, 8, fr)), [
2843
+ }, null, 8, pr)), [
2840
2844
  [G, r.values[d.key]]
2841
2845
  ]) : d.type === "number" ? V((l(), c("input", {
2842
2846
  key: 2,
@@ -2847,7 +2851,7 @@ function Tr(t, e, n, a, r, s) {
2847
2851
  placeholder: d.placeholder || "",
2848
2852
  required: d.required,
2849
2853
  disabled: n.readOnly || r.busy
2850
- }, null, 8, _r)), [
2854
+ }, null, 8, vr)), [
2851
2855
  [
2852
2856
  G,
2853
2857
  r.values[d.key],
@@ -2862,15 +2866,15 @@ function Tr(t, e, n, a, r, s) {
2862
2866
  class: "wm-form__input",
2863
2867
  required: d.required,
2864
2868
  disabled: n.readOnly || r.busy
2865
- }, null, 8, pr)), [
2869
+ }, null, 8, yr)), [
2866
2870
  [G, r.values[d.key]]
2867
- ]) : d.type === "boolean" ? (l(), c("label", vr, [
2871
+ ]) : d.type === "boolean" ? (l(), c("label", gr, [
2868
2872
  V(i("input", {
2869
2873
  id: `wm-f-${r._uid}-${d.key}`,
2870
2874
  "onUpdate:modelValue": (v) => r.values[d.key] = v,
2871
2875
  type: "checkbox",
2872
2876
  disabled: n.readOnly || r.busy
2873
- }, null, 8, gr), [
2877
+ }, null, 8, wr), [
2874
2878
  [Ee, r.values[d.key]]
2875
2879
  ]),
2876
2880
  i("span", null, b(d.placeholder || "Oui"), 1)
@@ -2882,14 +2886,14 @@ function Tr(t, e, n, a, r, s) {
2882
2886
  required: d.required,
2883
2887
  disabled: n.readOnly || r.busy
2884
2888
  }, [
2885
- i("option", wr, b(d.placeholder || "Choisir…"), 1),
2889
+ i("option", kr, b(d.placeholder || "Choisir…"), 1),
2886
2890
  (l(!0), c(O, null, F(d.options, (v) => (l(), c("option", {
2887
2891
  key: v.value,
2888
2892
  value: v.value
2889
- }, b(v.label), 9, br))), 128))
2890
- ], 8, yr)), [
2893
+ }, b(v.label), 9, Cr))), 128))
2894
+ ], 8, br)), [
2891
2895
  [Be, r.values[d.key]]
2892
- ]) : d.type === "multiselect" ? (l(), c("div", kr, [
2896
+ ]) : d.type === "multiselect" ? (l(), c("div", Ar, [
2893
2897
  (l(!0), c(O, null, F(d.options, (v) => (l(), c("label", {
2894
2898
  key: v.value,
2895
2899
  class: "wm-form__multiItem"
@@ -2900,25 +2904,25 @@ function Tr(t, e, n, a, r, s) {
2900
2904
  checked: Array.isArray(r.values[d.key]) && r.values[d.key].includes(v.value),
2901
2905
  disabled: n.readOnly || r.busy,
2902
2906
  onChange: (C) => s.toggleMulti(d.key, v.value, C.target.checked)
2903
- }, null, 40, Cr),
2907
+ }, null, 40, Sr),
2904
2908
  i("span", null, b(v.label), 1)
2905
2909
  ]))), 128))
2906
- ])) : y("", !0)
2910
+ ])) : g("", !0)
2907
2911
  ]))), 128)),
2908
- r.error ? (l(), c("div", Ar, b(r.error), 1)) : y("", !0),
2909
- n.readOnly ? (l(), c("div", Mr, "Réponse envoyée")) : (l(), c("button", {
2912
+ r.error ? (l(), c("div", xr, b(r.error), 1)) : g("", !0),
2913
+ n.readOnly ? (l(), c("div", Ir, "Réponse envoyée")) : (l(), c("button", {
2910
2914
  key: 1,
2911
2915
  type: "submit",
2912
2916
  class: "wm-form__submit",
2913
2917
  disabled: r.busy
2914
2918
  }, [
2915
- r.busy ? (l(), c("span", xr)) : y("", !0),
2919
+ r.busy ? (l(), c("span", Tr)) : g("", !0),
2916
2920
  i("span", null, b(r.busy ? "Envoi…" : n.form.submit_label || "Envoyer"), 1)
2917
- ], 8, Sr))
2921
+ ], 8, Mr))
2918
2922
  ], 32)
2919
2923
  ]);
2920
2924
  }
2921
- const Ir = /* @__PURE__ */ B(rr, [["render", Tr], ["__scopeId", "data-v-64b40f76"]]), Or = {
2925
+ const Er = /* @__PURE__ */ B(ar, [["render", Or], ["__scopeId", "data-v-64b40f76"]]), Br = {
2922
2926
  name: "WmFeedback",
2923
2927
  props: {
2924
2928
  busy: { type: Boolean, default: !1 },
@@ -2942,43 +2946,43 @@ const Ir = /* @__PURE__ */ B(rr, [["render", Tr], ["__scopeId", "data-v-64b40f76
2942
2946
  !this.sel || this.busy || this.$emit("submit", { rating: this.sel });
2943
2947
  }
2944
2948
  }
2945
- }, Er = { class: "wm-fb" }, Br = { class: "wm-fb__row" }, Lr = ["onClick"], Rr = { class: "wm-fb__emoji" }, $r = { class: "wm-fb__label" }, Fr = ["disabled"], jr = {
2949
+ }, Lr = { class: "wm-fb" }, Rr = { class: "wm-fb__row" }, $r = ["onClick"], Fr = { class: "wm-fb__emoji" }, jr = { class: "wm-fb__label" }, Ur = ["disabled"], Dr = {
2946
2950
  key: 1,
2947
2951
  class: "wm-fb__done"
2948
2952
  };
2949
- function Ur(t, e, n, a, r, s) {
2950
- return l(), c("div", Er, [
2951
- n.done ? (l(), c("div", jr, [...e[3] || (e[3] = [
2953
+ function Nr(t, e, n, a, r, s) {
2954
+ return l(), c("div", Lr, [
2955
+ n.done ? (l(), c("div", Dr, [...e[3] || (e[3] = [
2952
2956
  ue('<div class="wm-fb__check" data-v-6f45ff3b><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="#fff" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" data-v-6f45ff3b><path d="M20 6L9 17l-5-5" data-v-6f45ff3b></path></svg></div><div class="wm-fb__doneTitle" data-v-6f45ff3b>Merci pour votre retour !</div><div class="wm-fb__doneSub" data-v-6f45ff3b>Votre avis a bien été pris en compte.</div>', 3)
2953
2957
  ])])) : (l(), c(O, { key: 0 }, [
2954
2958
  e[1] || (e[1] = i("div", { class: "wm-fb__title" }, "Comment s'est passée cette conversation ?", -1)),
2955
2959
  e[2] || (e[2] = i("div", { class: "wm-fb__sub" }, "Votre avis nous aide à améliorer l'assistant.", -1)),
2956
- i("div", Br, [
2960
+ i("div", Rr, [
2957
2961
  (l(!0), c(O, null, F(r.options, (o) => (l(), c("button", {
2958
2962
  key: o.v,
2959
2963
  type: "button",
2960
2964
  class: E(["wm-fb__opt", { "is-selected": r.sel === o.v }]),
2961
2965
  onClick: (d) => r.sel = o.v
2962
2966
  }, [
2963
- i("span", Rr, b(o.e), 1),
2964
- i("span", $r, b(o.l), 1)
2965
- ], 10, Lr))), 128))
2967
+ i("span", Fr, b(o.e), 1),
2968
+ i("span", jr, b(o.l), 1)
2969
+ ], 10, $r))), 128))
2966
2970
  ]),
2967
2971
  i("button", {
2968
2972
  type: "button",
2969
2973
  class: "wm-fb__send",
2970
2974
  disabled: !r.sel || n.busy,
2971
2975
  onClick: e[0] || (e[0] = (...o) => s.onSend && s.onSend(...o))
2972
- }, b(n.busy ? "Envoi…" : "Envoyer mon avis"), 9, Fr)
2976
+ }, b(n.busy ? "Envoi…" : "Envoyer mon avis"), 9, Ur)
2973
2977
  ], 64))
2974
2978
  ]);
2975
2979
  }
2976
- const Dr = /* @__PURE__ */ B(Or, [["render", Ur], ["__scopeId", "data-v-6f45ff3b"]]);
2977
- function Nr(t) {
2980
+ const Pr = /* @__PURE__ */ B(Br, [["render", Nr], ["__scopeId", "data-v-6f45ff3b"]]);
2981
+ function Hr(t) {
2978
2982
  const e = new Date(t);
2979
2983
  return e.setHours(0, 0, 0, 0), e;
2980
2984
  }
2981
- const Pr = {
2985
+ const zr = {
2982
2986
  name: "WmHistoryDrawer",
2983
2987
  props: {
2984
2988
  conversations: { type: Array, default: () => [] },
@@ -3012,7 +3016,7 @@ const Pr = {
3012
3016
  ) : this.normalized;
3013
3017
  },
3014
3018
  groups() {
3015
- const e = Nr(/* @__PURE__ */ new Date()).getTime(), n = e - 6 * 864e5, a = [], r = [], s = [];
3019
+ const e = Hr(/* @__PURE__ */ new Date()).getTime(), n = e - 6 * 864e5, a = [], r = [], s = [];
3016
3020
  for (const o of this.filtered) {
3017
3021
  if (!o.stamp) {
3018
3022
  s.push(o);
@@ -3030,29 +3034,29 @@ const Pr = {
3030
3034
  return this.filtered.length > 0;
3031
3035
  }
3032
3036
  }
3033
- }, Hr = { class: "wm-hd" }, zr = {
3037
+ }, Vr = { class: "wm-hd" }, qr = {
3034
3038
  class: "wm-hd__panel",
3035
3039
  role: "dialog",
3036
3040
  "aria-label": "Vos discussions"
3037
- }, Vr = { class: "wm-hd__head" }, qr = { class: "wm-hd__top" }, Wr = { class: "wm-hd__search" }, Gr = { class: "wm-hd__list" }, Kr = {
3041
+ }, Wr = { class: "wm-hd__head" }, Gr = { class: "wm-hd__top" }, Kr = { class: "wm-hd__search" }, Yr = { class: "wm-hd__list" }, Jr = {
3038
3042
  key: 0,
3039
3043
  class: "wm-hd__group"
3040
- }, Yr = { class: "wm-hd__groupLabel" }, Jr = { class: "wm-hd__rows" }, Xr = ["onClick"], Qr = { class: "wm-hd__rowIcon" }, Zr = {
3044
+ }, Xr = { class: "wm-hd__groupLabel" }, Qr = { class: "wm-hd__rows" }, Zr = ["onClick"], ei = { class: "wm-hd__rowIcon" }, ti = {
3041
3045
  key: 0,
3042
3046
  class: "wm-hd__rowDot",
3043
3047
  "aria-label": "Message non lu"
3044
- }, ei = { class: "wm-hd__rowBody" }, ti = { class: "wm-hd__rowTop" }, ni = { class: "wm-hd__rowTitle" }, si = { class: "wm-hd__rowPreview" }, ri = {
3048
+ }, ni = { class: "wm-hd__rowBody" }, si = { class: "wm-hd__rowTop" }, ri = { class: "wm-hd__rowTitle" }, ii = { class: "wm-hd__rowPreview" }, ai = {
3045
3049
  key: 0,
3046
3050
  class: "wm-hd__empty"
3047
3051
  };
3048
- function ii(t, e, n, a, r, s) {
3049
- return l(), c("div", Hr, [
3052
+ function oi(t, e, n, a, r, s) {
3053
+ return l(), c("div", Vr, [
3050
3054
  i("div", {
3051
3055
  class: "wm-hd__scrim",
3052
3056
  onClick: e[0] || (e[0] = (o) => t.$emit("close"))
3053
3057
  }),
3054
- i("aside", zr, [
3055
- i("div", Vr, [
3058
+ i("aside", qr, [
3059
+ i("div", Wr, [
3056
3060
  e[5] || (e[5] = i("div", { class: "wm-hd__heading" }, [
3057
3061
  i("div", { class: "wm-hd__title" }, "Vos discussions"),
3058
3062
  i("div", { class: "wm-hd__sub" }, "Reprenez là où vous en étiez.")
@@ -3078,7 +3082,7 @@ function ii(t, e, n, a, r, s) {
3078
3082
  ], -1)
3079
3083
  ])])
3080
3084
  ]),
3081
- i("div", qr, [
3085
+ i("div", Gr, [
3082
3086
  i("button", {
3083
3087
  type: "button",
3084
3088
  class: "wm-hd__new",
@@ -3101,7 +3105,7 @@ function ii(t, e, n, a, r, s) {
3101
3105
  ], -1),
3102
3106
  i("span", null, "Démarrer un nouveau fil", -1)
3103
3107
  ])]),
3104
- i("div", Wr, [
3108
+ i("div", Kr, [
3105
3109
  e[7] || (e[7] = i("span", { class: "wm-hd__searchIcon" }, [
3106
3110
  i("svg", {
3107
3111
  width: "12",
@@ -3127,13 +3131,13 @@ function ii(t, e, n, a, r, s) {
3127
3131
  ])
3128
3132
  ])
3129
3133
  ]),
3130
- i("div", Gr, [
3134
+ i("div", Yr, [
3131
3135
  (l(!0), c(O, null, F(s.groups, (o) => (l(), c(O, {
3132
3136
  key: o.key
3133
3137
  }, [
3134
- o.items.length ? (l(), c("div", Kr, [
3135
- i("div", Yr, b(o.label), 1),
3136
- i("div", Jr, [
3138
+ o.items.length ? (l(), c("div", Jr, [
3139
+ i("div", Xr, b(o.label), 1),
3140
+ i("div", Qr, [
3137
3141
  (l(!0), c(O, null, F(o.items, (d) => (l(), c("button", {
3138
3142
  key: d.id,
3139
3143
  type: "button",
@@ -3143,7 +3147,7 @@ function ii(t, e, n, a, r, s) {
3143
3147
  }]),
3144
3148
  onClick: (v) => t.$emit("pick", d)
3145
3149
  }, [
3146
- i("div", Qr, [
3150
+ i("div", ei, [
3147
3151
  e[8] || (e[8] = i("svg", {
3148
3152
  width: "11",
3149
3153
  height: "11",
@@ -3157,24 +3161,24 @@ function ii(t, e, n, a, r, s) {
3157
3161
  opacity: "0.92"
3158
3162
  })
3159
3163
  ], -1)),
3160
- d.unread ? (l(), c("span", Zr)) : y("", !0)
3164
+ d.unread ? (l(), c("span", ti)) : g("", !0)
3161
3165
  ]),
3162
- i("div", ei, [
3163
- i("div", ti, [
3164
- i("span", ni, b(d.title), 1)
3166
+ i("div", ni, [
3167
+ i("div", si, [
3168
+ i("span", ri, b(d.title), 1)
3165
3169
  ]),
3166
- i("div", si, b(d.preview || "Aucun message"), 1)
3170
+ i("div", ii, b(d.preview || "Aucun message"), 1)
3167
3171
  ])
3168
- ], 10, Xr))), 128))
3172
+ ], 10, Zr))), 128))
3169
3173
  ])
3170
- ])) : y("", !0)
3174
+ ])) : g("", !0)
3171
3175
  ], 64))), 128)),
3172
- s.hasAny ? y("", !0) : (l(), c("div", ri, " Aucun fil pour le moment. "))
3176
+ s.hasAny ? g("", !0) : (l(), c("div", ai, " Aucun fil pour le moment. "))
3173
3177
  ])
3174
3178
  ])
3175
3179
  ]);
3176
3180
  }
3177
- const ai = /* @__PURE__ */ B(Pr, [["render", ii], ["__scopeId", "data-v-1259e822"]]), oi = {
3181
+ const li = /* @__PURE__ */ B(zr, [["render", oi], ["__scopeId", "data-v-1259e822"]]), ci = {
3178
3182
  name: "WmMoreMenu",
3179
3183
  props: {
3180
3184
  canRename: { type: Boolean, default: !0 },
@@ -3201,18 +3205,18 @@ const ai = /* @__PURE__ */ B(Pr, [["render", ii], ["__scopeId", "data-v-1259e822
3201
3205
  this.notifOn = !this.notifOn, this.$emit("notif-toggle", this.notifOn);
3202
3206
  }
3203
3207
  }
3204
- }, li = { class: "wm-mm" }, ci = {
3208
+ }, di = { class: "wm-mm" }, ui = {
3205
3209
  class: "wm-mm__pop",
3206
3210
  role: "menu"
3207
- }, di = { class: "wm-mm__section" }, ui = { class: "wm-mm__section" }, hi = { class: "wm-mm__section" };
3208
- function mi(t, e, n, a, r, s) {
3209
- return l(), c("div", li, [
3211
+ }, hi = { class: "wm-mm__section" }, mi = { class: "wm-mm__section" }, fi = { class: "wm-mm__section" };
3212
+ function _i(t, e, n, a, r, s) {
3213
+ return l(), c("div", di, [
3210
3214
  i("div", {
3211
3215
  class: "wm-mm__scrim",
3212
3216
  onClick: e[0] || (e[0] = (o) => t.$emit("close"))
3213
3217
  }),
3214
- i("div", ci, [
3215
- i("div", di, [
3218
+ i("div", ui, [
3219
+ i("div", hi, [
3216
3220
  i("button", {
3217
3221
  type: "button",
3218
3222
  class: "wm-mm__item",
@@ -3242,7 +3246,7 @@ function mi(t, e, n, a, r, s) {
3242
3246
  onClick: e[2] || (e[2] = (o) => s.emit("rename"))
3243
3247
  }, [...e[9] || (e[9] = [
3244
3248
  ue('<span class="wm-mm__icon" data-v-c1bb81d2><svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" data-v-c1bb81d2><path d="M12 20h9" data-v-c1bb81d2></path><path d="M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4 12.5-12.5z" data-v-c1bb81d2></path></svg></span><span class="wm-mm__label" data-v-c1bb81d2>Renommer le fil</span>', 2)
3245
- ])])) : y("", !0),
3249
+ ])])) : g("", !0),
3246
3250
  n.canClear ? (l(), c("button", {
3247
3251
  key: 1,
3248
3252
  type: "button",
@@ -3265,7 +3269,7 @@ function mi(t, e, n, a, r, s) {
3265
3269
  ])
3266
3270
  ], -1),
3267
3271
  i("span", { class: "wm-mm__label" }, "Effacer ce fil", -1)
3268
- ])])) : y("", !0),
3272
+ ])])) : g("", !0),
3269
3273
  n.canExport ? (l(), c("button", {
3270
3274
  key: 2,
3271
3275
  type: "button",
@@ -3273,10 +3277,10 @@ function mi(t, e, n, a, r, s) {
3273
3277
  onClick: e[4] || (e[4] = (o) => s.emit("export"))
3274
3278
  }, [...e[11] || (e[11] = [
3275
3279
  ue('<span class="wm-mm__icon" data-v-c1bb81d2><svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" data-v-c1bb81d2><path d="M4 12v8a2 2 0 002 2h12a2 2 0 002-2v-8M16 6l-4-4-4 4M12 2v13" data-v-c1bb81d2></path></svg></span><span class="wm-mm__label" data-v-c1bb81d2>Exporter la transcription</span><span class="wm-mm__hint" data-v-c1bb81d2>.txt</span>', 3)
3276
- ])])) : y("", !0)
3280
+ ])])) : g("", !0)
3277
3281
  ]),
3278
3282
  e[17] || (e[17] = i("div", { class: "wm-mm__sep" }, null, -1)),
3279
- i("div", ui, [
3283
+ i("div", mi, [
3280
3284
  i("button", {
3281
3285
  type: "button",
3282
3286
  class: "wm-mm__item",
@@ -3306,7 +3310,7 @@ function mi(t, e, n, a, r, s) {
3306
3310
  ])
3307
3311
  ]),
3308
3312
  e[18] || (e[18] = i("div", { class: "wm-mm__sep" }, null, -1)),
3309
- i("div", hi, [
3313
+ i("div", fi, [
3310
3314
  n.statusUrl ? (l(), c("button", {
3311
3315
  key: 0,
3312
3316
  type: "button",
@@ -3329,7 +3333,7 @@ function mi(t, e, n, a, r, s) {
3329
3333
  ])
3330
3334
  ], -1),
3331
3335
  i("span", { class: "wm-mm__label" }, "Statut des services", -1)
3332
- ])])) : y("", !0),
3336
+ ])])) : g("", !0),
3333
3337
  n.helpUrl ? (l(), c("button", {
3334
3338
  key: 1,
3335
3339
  type: "button",
@@ -3352,18 +3356,18 @@ function mi(t, e, n, a, r, s) {
3352
3356
  ])
3353
3357
  ], -1),
3354
3358
  i("span", { class: "wm-mm__label" }, "Centre d'aide", -1)
3355
- ])])) : y("", !0)
3359
+ ])])) : g("", !0)
3356
3360
  ])
3357
3361
  ])
3358
3362
  ]);
3359
3363
  }
3360
- const fi = /* @__PURE__ */ B(oi, [["render", mi], ["__scopeId", "data-v-c1bb81d2"]]), ge = "ww-messenger-tokens";
3364
+ const pi = /* @__PURE__ */ B(ci, [["render", _i], ["__scopeId", "data-v-c1bb81d2"]]), ye = "ww-messenger-tokens";
3361
3365
  function de(t) {
3362
3366
  var n;
3363
3367
  const e = (n = t == null ? void 0 : t.author) == null ? void 0 : n.type;
3364
3368
  return e === "agent_ia" || e === "agent_human";
3365
3369
  }
3366
- function _i(t, e) {
3370
+ function vi(t, e) {
3367
3371
  if (!t || !e) return "";
3368
3372
  const n = Array.isArray(t.fields) ? t.fields : [], a = [];
3369
3373
  for (const r of n) {
@@ -3386,7 +3390,7 @@ function ne(t, e) {
3386
3390
  const n = t.options.find((a) => (a == null ? void 0 : a.value) === e);
3387
3391
  return (n == null ? void 0 : n.label) || e;
3388
3392
  }
3389
- function pi(t, e) {
3393
+ function yi(t, e) {
3390
3394
  const n = [], a = Array.isArray(t == null ? void 0 : t.fields) ? t.fields : [];
3391
3395
  for (const r of a) {
3392
3396
  if (!(r != null && r.key) || !(r != null && r.label)) continue;
@@ -3408,20 +3412,20 @@ function pi(t, e) {
3408
3412
  }
3409
3413
  };
3410
3414
  }
3411
- const vi = 450, gi = 50, yi = 900, wi = 12e3, bi = 300, ki = {
3415
+ const gi = 450, wi = 50, bi = 900, ki = 12e3, Ci = 300, Ai = {
3412
3416
  name: "Messenger",
3413
3417
  components: {
3414
3418
  Launcher: Ye,
3415
3419
  Header: wt,
3416
3420
  Onboarding: Ht,
3417
- MessageList: ks,
3418
- Composer: Hs,
3419
- SuggestionChips: Ws,
3420
- ApprovalCard: nr,
3421
- FormCard: Ir,
3422
- Feedback: Dr,
3423
- HistoryDrawer: ai,
3424
- MoreMenu: fi
3421
+ MessageList: As,
3422
+ Composer: Vs,
3423
+ SuggestionChips: Ks,
3424
+ ApprovalCard: rr,
3425
+ FormCard: Er,
3426
+ Feedback: Pr,
3427
+ HistoryDrawer: li,
3428
+ MoreMenu: pi
3425
3429
  },
3426
3430
  // Make signAttachment available to deep children (AttachmentPreview)
3427
3431
  // without prop drilling. The store may not exist yet at provide-time
@@ -3918,9 +3922,9 @@ const vi = 450, gi = 50, yi = 900, wi = 12e3, bi = 300, ki = {
3918
3922
  hasWidgetId: !!this.widgetId,
3919
3923
  hasUserId: !!this.userId,
3920
3924
  hasUserHash: !!this.userHash
3921
- }), typeof document < "u" && !document.getElementById(ge)) {
3925
+ }), typeof document < "u" && !document.getElementById(ye)) {
3922
3926
  const t = document.createElement("style");
3923
- t.id = ge, t.textContent = He, document.head.appendChild(t);
3927
+ t.id = ye, t.textContent = He, document.head.appendChild(t);
3924
3928
  }
3925
3929
  this.hydrateReadState(), await this.boot(), this.isEmbedded && this.store && await this.open();
3926
3930
  },
@@ -4071,11 +4075,11 @@ const vi = 450, gi = 50, yi = 900, wi = 12e3, bi = 300, ki = {
4071
4075
  // bounded by MIN/MAX_BETWEEN_MS.
4072
4076
  scheduleReveal(t) {
4073
4077
  const e = Date.now(), n = ((t == null ? void 0 : t.text_md) || "").length, a = Math.min(
4074
- wi,
4075
- Math.max(yi, n * gi)
4078
+ ki,
4079
+ Math.max(bi, n * wi)
4076
4080
  ), s = Math.max(
4077
- e + vi,
4078
- this.nextRevealAt + bi
4081
+ e + gi,
4082
+ this.nextRevealAt + Ci
4079
4083
  ) + a;
4080
4084
  this.nextRevealAt = s;
4081
4085
  const o = Math.max(0, s - e), d = t.id, v = setTimeout(() => {
@@ -4283,12 +4287,12 @@ const vi = 450, gi = 50, yi = 900, wi = 12e3, bi = 300, ki = {
4283
4287
  async onFormSubmit({ values: t }) {
4284
4288
  const e = this.pendingForm;
4285
4289
  if (!(e != null && e.form)) return;
4286
- const n = _i(e.form, t);
4290
+ const n = vi(e.form, t);
4287
4291
  if (!n) return;
4288
4292
  const a = this.currentConv;
4289
4293
  a && await this.store.send(a.id, n, {
4290
4294
  metadata: {
4291
- artifact: pi(e.form, t)
4295
+ artifact: yi(e.form, t)
4292
4296
  }
4293
4297
  });
4294
4298
  },
@@ -4332,28 +4336,28 @@ const vi = 450, gi = 50, yi = 900, wi = 12e3, bi = 300, ki = {
4332
4336
  }
4333
4337
  }
4334
4338
  }
4335
- }, Ci = {
4339
+ }, Si = {
4336
4340
  key: 0,
4337
4341
  class: "wm-loading",
4338
4342
  "aria-busy": "true",
4339
4343
  "aria-live": "polite"
4340
- }, Ai = {
4344
+ }, xi = {
4341
4345
  key: 0,
4342
4346
  class: "wm-state"
4343
- }, Si = { class: "wm-state__err" }, xi = { class: "wm-state__errSub" }, Mi = { class: "wm-bottom" }, Ti = {
4347
+ }, Mi = { class: "wm-state__err" }, Ti = { class: "wm-state__errSub" }, Ii = { class: "wm-bottom" }, Oi = {
4344
4348
  key: 0,
4345
4349
  ref: "floatEl",
4346
4350
  class: "wm-float"
4347
- }, Ii = {
4351
+ }, Ei = {
4348
4352
  key: 1,
4349
4353
  class: "wm-actionWait",
4350
4354
  role: "status",
4351
4355
  "aria-live": "polite"
4352
- }, Oi = { class: "wm-actionWait__lbl" }, Ei = {
4356
+ }, Bi = { class: "wm-actionWait__lbl" }, Li = {
4353
4357
  key: 1,
4354
4358
  class: "wm-attached"
4355
- }, Bi = ["onClick"];
4356
- function Li(t, e, n, a, r, s) {
4359
+ }, Ri = ["onClick"];
4360
+ function $i(t, e, n, a, r, s) {
4357
4361
  const o = I("Launcher"), d = I("Header"), v = I("Onboarding"), C = I("MessageList"), w = I("ApprovalCard"), S = I("FormCard"), L = I("Feedback"), A = I("SuggestionChips"), D = I("Composer"), x = I("MoreMenu"), N = I("HistoryDrawer");
4358
4362
  return l(), c("div", {
4359
4363
  class: E(["wm-root", `wm-root--${n.displayMode}`])
@@ -4364,7 +4368,7 @@ function Li(t, e, n, a, r, s) {
4364
4368
  peek: s.launcherPeek,
4365
4369
  onOpen: s.openFromPeek,
4366
4370
  onDismiss: e[0] || (e[0] = (j) => r.labelDismissed = !0)
4367
- }, null, 8, ["unread-count", "peek", "onOpen"])) : y("", !0),
4371
+ }, null, 8, ["unread-count", "peek", "onOpen"])) : g("", !0),
4368
4372
  r.isOpen || s.isEmbedded ? (l(), c("section", {
4369
4373
  key: 1,
4370
4374
  class: E(["wm-panel", `wm-panel--${n.displayMode}`]),
@@ -4372,8 +4376,8 @@ function Li(t, e, n, a, r, s) {
4372
4376
  role: "dialog",
4373
4377
  "aria-label": "Messenger"
4374
4378
  }, [
4375
- !s.ready && !s.error ? (l(), c("div", Ci, [
4376
- s.isEmbedded ? y("", !0) : (l(), c("button", {
4379
+ !s.ready && !s.error ? (l(), c("div", Si, [
4380
+ s.isEmbedded ? g("", !0) : (l(), c("button", {
4377
4381
  key: 0,
4378
4382
  type: "button",
4379
4383
  class: "wm-loading__close",
@@ -4414,8 +4418,8 @@ function Li(t, e, n, a, r, s) {
4414
4418
  onMore: s.toggleMore,
4415
4419
  onClose: s.close
4416
4420
  }, null, 8, ["title", "escalated", "agent-name", "agent-avatar-url", "team-members", "response-label", "show-identity", "show-back", "show-close", "more-active", "onBack", "onMore", "onClose"]),
4417
- s.error ? (l(), c("div", Ai, [
4418
- i("div", Si, [
4421
+ s.error ? (l(), c("div", xi, [
4422
+ i("div", Mi, [
4419
4423
  e[9] || (e[9] = i("div", { class: "wm-state__errIcon" }, [
4420
4424
  i("svg", {
4421
4425
  width: "14",
@@ -4433,7 +4437,7 @@ function Li(t, e, n, a, r, s) {
4433
4437
  ], -1)),
4434
4438
  i("div", null, [
4435
4439
  e[8] || (e[8] = i("div", { class: "wm-state__errTitle" }, "Connexion impossible", -1)),
4436
- i("div", xi, b(s.error), 1)
4440
+ i("div", Ti, b(s.error), 1)
4437
4441
  ])
4438
4442
  ])
4439
4443
  ])) : s.currentConv ? (l(), c(O, { key: 2 }, [
@@ -4447,8 +4451,8 @@ function Li(t, e, n, a, r, s) {
4447
4451
  "has-more": s.paginationState.hasMore,
4448
4452
  onLoadMore: s.onLoadMore
4449
4453
  }, null, 8, ["messages", "streaming-active", "date-label", "conversation-id", "loading-more", "has-more", "onLoadMore"]),
4450
- i("div", Mi, [
4451
- s.floatVisible ? (l(), c("div", Ti, [
4454
+ i("div", Ii, [
4455
+ s.floatVisible ? (l(), c("div", Oi, [
4452
4456
  s.approvalReady ? (l(), $(w, {
4453
4457
  key: 0,
4454
4458
  action: s.approvalTitle,
@@ -4469,13 +4473,13 @@ function Li(t, e, n, a, r, s) {
4469
4473
  items: s.suggestions,
4470
4474
  onSelect: s.onSuggestion
4471
4475
  }, null, 8, ["items", "onSelect"]))
4472
- ], 512)) : y("", !0),
4473
- s.actionInFlight ? (l(), c("div", Ii, [
4476
+ ], 512)) : g("", !0),
4477
+ s.actionInFlight ? (l(), c("div", Ei, [
4474
4478
  e[10] || (e[10] = i("span", {
4475
4479
  class: "wm-actionWait__spinner",
4476
4480
  "aria-hidden": "true"
4477
4481
  }, null, -1)),
4478
- i("span", Oi, b(s.actionInFlightName) + " en cours, veuillez patienter…", 1)
4482
+ i("span", Bi, b(s.actionInFlightName) + " en cours, veuillez patienter…", 1)
4479
4483
  ])) : (l(), $(D, {
4480
4484
  key: 2,
4481
4485
  ref: "composer",
@@ -4499,8 +4503,8 @@ function Li(t, e, n, a, r, s) {
4499
4503
  onClose: e[3] || (e[3] = (j) => r.moreOpen = !1),
4500
4504
  onNotifToggle: s.onNotifToggle,
4501
4505
  onAction: s.onMoreAction
4502
- }, null, 8, ["can-rename", "can-clear", "can-export", "notif-enabled", "status-url", "help-url", "onNotifToggle", "onAction"])) : y("", !0),
4503
- r.pendingAttachments.length ? (l(), c("div", Ei, [
4506
+ }, null, 8, ["can-rename", "can-clear", "can-export", "notif-enabled", "status-url", "help-url", "onNotifToggle", "onAction"])) : g("", !0),
4507
+ r.pendingAttachments.length ? (l(), c("div", Li, [
4504
4508
  (l(!0), c(O, null, F(r.pendingAttachments, (j, z) => (l(), c("div", {
4505
4509
  key: z,
4506
4510
  class: "wm-attached__chip"
@@ -4537,9 +4541,9 @@ function Li(t, e, n, a, r, s) {
4537
4541
  }, [
4538
4542
  i("path", { d: "M18 6L6 18M6 6l12 12" })
4539
4543
  ], -1)
4540
- ])], 8, Bi)
4544
+ ])], 8, Ri)
4541
4545
  ]))), 128))
4542
- ])) : y("", !0)
4546
+ ])) : g("", !0)
4543
4547
  ], 64)) : (l(), $(v, {
4544
4548
  key: 1,
4545
4549
  "welcome-message": s.widgetWelcomeMessage,
@@ -4558,7 +4562,7 @@ function Li(t, e, n, a, r, s) {
4558
4562
  onClose: e[4] || (e[4] = (j) => r.historyOpen = !1),
4559
4563
  onNew: s.onDrawerNew,
4560
4564
  onPick: s.onDrawerPick
4561
- }, null, 8, ["conversations", "active-id", "onNew", "onPick"])) : y("", !0),
4565
+ }, null, 8, ["conversations", "active-id", "onNew", "onPick"])) : g("", !0),
4562
4566
  r.moreOpen && !s.currentConv ? (l(), $(x, {
4563
4567
  key: 4,
4564
4568
  "can-rename": !1,
@@ -4570,52 +4574,52 @@ function Li(t, e, n, a, r, s) {
4570
4574
  onClose: e[5] || (e[5] = (j) => r.moreOpen = !1),
4571
4575
  onNotifToggle: s.onNotifToggle,
4572
4576
  onAction: s.onMoreAction
4573
- }, null, 8, ["notif-enabled", "status-url", "help-url", "onNotifToggle", "onAction"])) : y("", !0)
4577
+ }, null, 8, ["notif-enabled", "status-url", "help-url", "onNotifToggle", "onAction"])) : g("", !0)
4574
4578
  ], 64))
4575
- ], 6)) : y("", !0)
4579
+ ], 6)) : g("", !0)
4576
4580
  ], 2);
4577
4581
  }
4578
- const Fi = /* @__PURE__ */ B(ki, [["render", Li], ["__scopeId", "data-v-bee7b290"]]);
4582
+ const Ui = /* @__PURE__ */ B(Ai, [["render", $i], ["__scopeId", "data-v-bee7b290"]]);
4579
4583
  export {
4580
4584
  J as AIAvatar,
4581
4585
  le as AVATAR_COLORS,
4582
4586
  Dn as ActionResult,
4583
- nr as ApprovalCard,
4587
+ rr as ApprovalCard,
4584
4588
  Qt as ArtifactFormResponse,
4585
4589
  hn as ArtifactInfoCard,
4586
4590
  Ae as ArtifactRenderer,
4587
4591
  xn as ArtifactTicket,
4588
4592
  Xn as AttachmentPreview,
4589
4593
  ts as Bubble,
4590
- Hs as Composer,
4594
+ Vs as Composer,
4591
4595
  ze as DEFAULT_BASE_URL,
4592
- Dr as Feedback,
4593
- Ir as FormCard,
4596
+ Pr as Feedback,
4597
+ Er as FormCard,
4594
4598
  wt as Header,
4595
- ai as HistoryDrawer,
4599
+ li as HistoryDrawer,
4596
4600
  ke as HumanAvatar,
4597
4601
  Ye as Launcher,
4598
4602
  he as MEDIA_RECORDER_SUPPORTED,
4599
- ks as MessageList,
4600
- Fi as Messenger,
4601
- fi as MoreMenu,
4603
+ As as MessageList,
4604
+ Ui as Messenger,
4605
+ pi as MoreMenu,
4602
4606
  Ht as Onboarding,
4603
4607
  te as SCREEN_CAPTURE_SUPPORTED,
4604
- Ws as SuggestionChips,
4608
+ Ks as SuggestionChips,
4605
4609
  lt as TeamAvatars,
4606
4610
  is as Typing,
4607
- ye as avatarColor,
4611
+ ge as avatarColor,
4608
4612
  we as avatarInitials,
4609
- As as captureScreenshotFile,
4613
+ xs as captureScreenshotFile,
4610
4614
  U as colors,
4611
4615
  Pe as createStore,
4612
4616
  je as createTransport,
4613
- Fi as default,
4617
+ Ui as default,
4614
4618
  be as formatTime,
4615
- $i as guessAttachmentKind,
4616
- Cs as pickRecorderMime,
4619
+ ji as guessAttachmentKind,
4620
+ Ss as pickRecorderMime,
4617
4621
  Ce as renderMarkdown,
4618
- xs as startScreenRecording,
4622
+ Ts as startScreenRecording,
4619
4623
  He as tokensCss,
4620
4624
  Ne as uuid,
4621
4625
  Ne as v4