@_solaris/messenger-widget 0.4.12 → 0.4.13

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 Ue, openBlock as c, createElementBlock as u, normalizeStyle as z, normalizeClass as x, toDisplayString as v, resolveComponent as L, createVNode as $, Transition as Fe, withCtx as je, Fragment as I, renderList as F, withKeys as ue, withModifiers as X, createElementVNode as o, createCommentVNode as b, createBlock as R, withDirectives as K, vModelText as ee, createTextVNode as ge, resolveDynamicComponent as Pe, renderSlot as De, vModelCheckbox as He, vModelSelect as ze, markRaw as we } from "vue";
1
+ import { reactive as Fe, openBlock as c, createElementBlock as u, normalizeStyle as z, normalizeClass as x, toDisplayString as v, resolveComponent as L, createVNode as $, Transition as Ue, withCtx as je, Fragment as I, renderList as U, withKeys as ue, withModifiers as X, createElementVNode as o, createCommentVNode as w, createBlock as R, withDirectives as K, vModelText as ee, createTextVNode as ge, resolveDynamicComponent as Pe, renderSlot as De, vModelCheckbox as He, vModelSelect as ze, markRaw as be } from "vue";
2
2
  const qe = [
3
3
  "connected",
4
4
  "message",
@@ -39,8 +39,8 @@ function We(e) {
39
39
  _ && _.forEach((y) => {
40
40
  try {
41
41
  y(f);
42
- } catch (w) {
43
- console.error("[transport] listener", d, w);
42
+ } catch (b) {
43
+ console.error("[transport] listener", d, b);
44
44
  }
45
45
  });
46
46
  }
@@ -61,10 +61,10 @@ function We(e) {
61
61
  body: _ !== void 0 ? JSON.stringify(_) : void 0
62
62
  });
63
63
  if (!y.ok) {
64
- const w = await l(y), S = new Error(
65
- `HTTP ${y.status} ${d} ${f} :: ${(w == null ? void 0 : w.error) || y.statusText}`
64
+ const b = await l(y), S = new Error(
65
+ `HTTP ${y.status} ${d} ${f} :: ${(b == null ? void 0 : b.error) || y.statusText}`
66
66
  );
67
- throw S.status = y.status, S.body = w, S;
67
+ throw S.status = y.status, S.body = b, S;
68
68
  }
69
69
  return y.status === 204 ? null : y.json();
70
70
  }
@@ -173,14 +173,14 @@ function We(e) {
173
173
  const f = (
174
174
  /** @type {File} */
175
175
  d.name || "attachment"
176
- ), _ = d.type || "application/octet-stream", y = d.size || 0, w = (
176
+ ), _ = d.type || "application/octet-stream", y = d.size || 0, b = (
177
177
  /** @type {import('./types.js').AttachmentUploadTicket} */
178
178
  await a("POST", "/attachments", {
179
179
  mime_type: _,
180
180
  size_bytes: y,
181
181
  name: f
182
182
  })
183
- ), S = await fetch(w.upload_url, {
183
+ ), S = await fetch(b.upload_url, {
184
184
  method: "PUT",
185
185
  headers: { "Content-Type": _ },
186
186
  body: d
@@ -189,7 +189,7 @@ function We(e) {
189
189
  throw new Error(`HTTP ${S.status} PUT signed upload`);
190
190
  return {
191
191
  type: Ye(_),
192
- path: w.path,
192
+ path: b.path,
193
193
  mime_type: _,
194
194
  size_bytes: y
195
195
  };
@@ -243,8 +243,8 @@ function We(e) {
243
243
  }
244
244
  async function ce() {
245
245
  try {
246
- const d = await T(), f = d.reduce((y, w) => {
247
- const S = w == null ? void 0 : w.last_message_at;
246
+ const d = await T(), f = d.reduce((y, b) => {
247
+ const S = b == null ? void 0 : b.last_message_at;
248
248
  return S && (!y || S > y) ? S : y;
249
249
  }, null);
250
250
  f && (!t.lastActivityAt || f > t.lastActivityAt) && (t.lastActivityAt = f, i("activity", { conversations: d, latestAt: f }), V());
@@ -279,8 +279,8 @@ function We(e) {
279
279
  try {
280
280
  const f = await T();
281
281
  t.lastActivityAt = f.reduce((_, y) => {
282
- const w = y == null ? void 0 : y.last_message_at;
283
- return w && (!_ || w > _) ? w : _;
282
+ const b = y == null ? void 0 : y.last_message_at;
283
+ return b && (!_ || b > _) ? b : _;
284
284
  }, null);
285
285
  } catch (f) {
286
286
  console.error("[transport] initial /conversations failed", f);
@@ -340,7 +340,7 @@ function Qe() {
340
340
  return t.slice(0, 4).join("") + "-" + t.slice(4, 6).join("") + "-" + t.slice(6, 8).join("") + "-" + t.slice(8, 10).join("") + "-" + t.slice(10, 16).join("");
341
341
  }
342
342
  function Xe(e) {
343
- const t = Ue({
343
+ const t = Fe({
344
344
  ready: !1,
345
345
  error: null,
346
346
  config: null,
@@ -463,9 +463,9 @@ function Xe(e) {
463
463
  const g = await e.listMessages(m, {
464
464
  limit: l
465
465
  }), d = (g == null ? void 0 : g.messages) ?? [], f = t.messagesByConv[m] || [], _ = /* @__PURE__ */ new Set();
466
- for (const w of d)
467
- (w == null ? void 0 : w.id) != null && _.add(`id:${String(w.id)}`), w != null && w.client_msg_id && _.add(`c:${w.client_msg_id}`);
468
- const y = f.filter((w) => !((w == null ? void 0 : w.id) != null && _.has(`id:${String(w.id)}`) || w != null && w.client_msg_id && _.has(`c:${w.client_msg_id}`)));
466
+ for (const b of d)
467
+ (b == null ? void 0 : b.id) != null && _.add(`id:${String(b.id)}`), b != null && b.client_msg_id && _.add(`c:${b.client_msg_id}`);
468
+ const y = f.filter((b) => !((b == null ? void 0 : b.id) != null && _.has(`id:${String(b.id)}`) || b != null && b.client_msg_id && _.has(`c:${b.client_msg_id}`)));
469
469
  t.messagesByConv[m] = [...d, ...y].sort(
470
470
  ce
471
471
  ), k(m, {
@@ -493,11 +493,11 @@ function Xe(e) {
493
493
  const _ = await e.listMessages(m, {
494
494
  before: d,
495
495
  limit: l
496
- }), y = (_ == null ? void 0 : _.messages) ?? [], w = t.messagesByConv[m] || [], S = /* @__PURE__ */ new Set();
497
- for (const O of w)
496
+ }), y = (_ == null ? void 0 : _.messages) ?? [], b = t.messagesByConv[m] || [], S = /* @__PURE__ */ new Set();
497
+ for (const O of b)
498
498
  (O == null ? void 0 : O.id) != null && S.add(`id:${String(O.id)}`), O != null && O.client_msg_id && S.add(`c:${O.client_msg_id}`);
499
- const U = y.filter((O) => !((O == null ? void 0 : O.id) != null && S.has(`id:${String(O.id)}`) || O != null && O.client_msg_id && S.has(`c:${O.client_msg_id}`)));
500
- t.messagesByConv[m] = [...U, ...w], k(m, {
499
+ const F = y.filter((O) => !((O == null ? void 0 : O.id) != null && S.has(`id:${String(O.id)}`) || O != null && O.client_msg_id && S.has(`c:${O.client_msg_id}`)));
500
+ t.messagesByConv[m] = [...F, ...b], k(m, {
501
501
  nextCursor: (_ == null ? void 0 : _.next_cursor) ?? null,
502
502
  loading: !1,
503
503
  loaded: !0
@@ -529,12 +529,12 @@ function Xe(e) {
529
529
  const _ = /* @__PURE__ */ new Set(), y = /* @__PURE__ */ new Set();
530
530
  for (const S of h)
531
531
  (S == null ? void 0 : S.id) != null && _.add(String(S.id)), S != null && S.client_msg_id && y.add(S.client_msg_id);
532
- const w = [];
532
+ const b = [];
533
533
  for (const S of f) {
534
- const U = (S == null ? void 0 : S.id) != null && _.has(String(S.id)) || (S == null ? void 0 : S.client_msg_id) && y.has(S.client_msg_id);
535
- Y(m, S), U || w.push(S);
534
+ const F = (S == null ? void 0 : S.id) != null && _.has(String(S.id)) || (S == null ? void 0 : S.client_msg_id) && y.has(S.client_msg_id);
535
+ Y(m, S), F || b.push(S);
536
536
  }
537
- return w;
537
+ return b;
538
538
  } catch (d) {
539
539
  return console.error("[store] fetchSinceLast failed", d), [];
540
540
  }
@@ -552,10 +552,10 @@ function Xe(e) {
552
552
  }
553
553
  }
554
554
  async function q(m, h, { attachments: g, metadata: d } = {}) {
555
- var U;
555
+ var F;
556
556
  const f = (h || "").trim(), _ = Array.isArray(g) && g.length > 0;
557
557
  if (!m || !f && !_) return;
558
- const y = Qe(), w = se(m), S = {
558
+ const y = Qe(), b = se(m), S = {
559
559
  id: y,
560
560
  client_msg_id: y,
561
561
  conversation_id: m,
@@ -563,9 +563,9 @@ function Xe(e) {
563
563
  text_md: f,
564
564
  author: {
565
565
  type: "user",
566
- id: ((U = t.customer) == null ? void 0 : U.external_id) || null
566
+ id: ((F = t.customer) == null ? void 0 : F.external_id) || null
567
567
  },
568
- created_at: w,
568
+ created_at: b,
569
569
  // Local-only flag — UI may render dimmed until the SSE echo lands.
570
570
  _pending: !0,
571
571
  ..._ ? { payload: { type: "content", attachments: g } } : {},
@@ -576,7 +576,7 @@ function Xe(e) {
576
576
  await e.postMessage(m, {
577
577
  client_msg_id: y,
578
578
  text_md: f,
579
- created_at: w,
579
+ created_at: b,
580
580
  ..._ ? { attachments: g } : {},
581
581
  ...d && typeof d == "object" ? { metadata: d } : {}
582
582
  });
@@ -643,9 +643,9 @@ function Xe(e) {
643
643
  const y = h[_];
644
644
  if (((g = y == null ? void 0 : y.author) == null ? void 0 : g.type) === "user" || (y == null ? void 0 : y.type) === "action" && ((d = y == null ? void 0 : y.payload) == null ? void 0 : d.state) === "pending")
645
645
  return null;
646
- const w = (f = y == null ? void 0 : y.metadata) == null ? void 0 : f.form;
647
- if (w && Array.isArray(w.fields) && w.fields.length > 0)
648
- return { message: y, form: w };
646
+ const b = (f = y == null ? void 0 : y.metadata) == null ? void 0 : f.form;
647
+ if (b && Array.isArray(b.fields) && b.fields.length > 0)
648
+ return { message: y, form: b };
649
649
  }
650
650
  return null;
651
651
  }
@@ -661,21 +661,21 @@ function Xe(e) {
661
661
  var g, d, f, _;
662
662
  const h = t.messagesByConv[m] || [];
663
663
  for (let y = h.length - 1; y >= 0; y--) {
664
- const w = h[y];
665
- if (((g = w == null ? void 0 : w.author) == null ? void 0 : g.type) === "user") return [];
666
- if ((w == null ? void 0 : w.type) === "action" && ((d = w == null ? void 0 : w.payload) == null ? void 0 : d.state) === "pending")
664
+ const b = h[y];
665
+ if (((g = b == null ? void 0 : b.author) == null ? void 0 : g.type) === "user") return [];
666
+ if ((b == null ? void 0 : b.type) === "action" && ((d = b == null ? void 0 : b.payload) == null ? void 0 : d.state) === "pending")
667
667
  return [];
668
- if (((f = w == null ? void 0 : w.author) == null ? void 0 : f.type) !== "agent_ia") continue;
669
- const S = (_ = w == null ? void 0 : w.metadata) == null ? void 0 : _.suggested_replies;
670
- return Array.isArray(S) && S.length ? S.map((U) => {
671
- if (typeof U == "string") {
672
- const O = U.trim();
668
+ if (((f = b == null ? void 0 : b.author) == null ? void 0 : f.type) !== "agent_ia") continue;
669
+ const S = (_ = b == null ? void 0 : b.metadata) == null ? void 0 : _.suggested_replies;
670
+ return Array.isArray(S) && S.length ? S.map((F) => {
671
+ if (typeof F == "string") {
672
+ const O = F.trim();
673
673
  return O ? { label: O, kind: null } : null;
674
674
  }
675
- if (U && typeof U == "object" && typeof U.label == "string") {
676
- const O = U.label.trim();
675
+ if (F && typeof F == "object" && typeof F.label == "string") {
676
+ const O = F.label.trim();
677
677
  if (!O) return null;
678
- const Ne = U.kind === "cta" || U.kind === "choice" || U.kind === "followup" ? U.kind : null;
678
+ const Ne = F.kind === "cta" || F.kind === "choice" || F.kind === "followup" ? F.kind : null;
679
679
  return { label: O, kind: Ne };
680
680
  }
681
681
  return null;
@@ -1644,7 +1644,7 @@ const B = (e, t) => {
1644
1644
  }
1645
1645
  }
1646
1646
  }, yt = ["src", "alt"];
1647
- function bt(e, t, n, i, r, s) {
1647
+ function wt(e, t, n, i, r, s) {
1648
1648
  return c(), u("div", {
1649
1649
  class: x(["wm-huav", { "wm-huav--tail": n.tail }]),
1650
1650
  style: z({
@@ -1664,7 +1664,7 @@ function bt(e, t, n, i, r, s) {
1664
1664
  }, v(s.initials), 5))
1665
1665
  ], 6);
1666
1666
  }
1667
- const Be = /* @__PURE__ */ B(vt, [["render", bt], ["__scopeId", "data-v-14e10c0d"]]), wt = 3, kt = {
1667
+ const Be = /* @__PURE__ */ B(vt, [["render", wt], ["__scopeId", "data-v-14e10c0d"]]), bt = 3, kt = {
1668
1668
  name: "WmLauncher",
1669
1669
  components: { HumanAvatar: Be },
1670
1670
  inject: {
@@ -1687,20 +1687,20 @@ const Be = /* @__PURE__ */ B(vt, [["render", bt], ["__scopeId", "data-v-14e10c0d
1687
1687
  // élément en ordre DOM avec un flex column normal). Les plus
1688
1688
  // anciens remontent dans la pile.
1689
1689
  visiblePeeks() {
1690
- return this.peeks.slice(0, wt).reverse();
1690
+ return this.peeks.slice(0, bt).reverse();
1691
1691
  }
1692
1692
  }
1693
1693
  }, Ct = { class: "wm-launcherWrap" }, At = ["aria-label", "onClick", "onKeydown"], St = ["aria-label", "onClick"], Mt = { class: "wm-peek__avatar" }, Tt = ["aria-label"], xt = { class: "wm-peek__body" }, Ot = { class: "wm-peek__head" }, It = { class: "wm-peek__name" }, Lt = { class: "wm-peek__action" }, Bt = { class: "wm-peek__text" }, Et = ["onClick"], Rt = ["aria-label"], Nt = ["aria-label"];
1694
- function Ut(e, t, n, i, r, s) {
1694
+ function Ft(e, t, n, i, r, s) {
1695
1695
  const a = L("HumanAvatar");
1696
1696
  return c(), u("div", Ct, [
1697
- $(Fe, { name: "wm-peek" }, {
1697
+ $(Ue, { name: "wm-peek" }, {
1698
1698
  default: je(() => [
1699
1699
  s.visiblePeeks.length ? (c(), u("div", {
1700
1700
  key: 0,
1701
1701
  class: x(["wm-peekStack", { "wm-peekStack--multi": s.visiblePeeks.length > 1 }])
1702
1702
  }, [
1703
- (c(!0), u(I, null, F(s.visiblePeeks, (l, p) => (c(), u("div", {
1703
+ (c(!0), u(I, null, U(s.visiblePeeks, (l, p) => (c(), u("div", {
1704
1704
  key: l.convId,
1705
1705
  class: "wm-peek",
1706
1706
  style: z({
@@ -1748,7 +1748,7 @@ function Ut(e, t, n, i, r, s) {
1748
1748
  key: 0,
1749
1749
  class: "wm-peek__avatarBadge",
1750
1750
  "aria-label": s.t("launcher.unreadMessages", { count: l.count })
1751
- }, v(l.count > 9 ? "9+" : l.count), 9, Tt)) : b("", !0)
1751
+ }, v(l.count > 9 ? "9+" : l.count), 9, Tt)) : w("", !0)
1752
1752
  ]),
1753
1753
  o("div", xt, [
1754
1754
  o("div", Ot, [
@@ -1763,7 +1763,7 @@ function Ut(e, t, n, i, r, s) {
1763
1763
  onClick: X((C) => e.$emit("open", l.convId), ["stop"])
1764
1764
  }, v(s.t("common.open")), 9, Et)
1765
1765
  ], 44, At))), 128))
1766
- ], 2)) : b("", !0)
1766
+ ], 2)) : w("", !0)
1767
1767
  ]),
1768
1768
  _: 1
1769
1769
  }),
@@ -1794,11 +1794,11 @@ function Ut(e, t, n, i, r, s) {
1794
1794
  }) : s.t("launcher.unreadConversationsOne", {
1795
1795
  count: n.unreadCount
1796
1796
  })
1797
- }, v(n.unreadCount > 9 ? "9+" : n.unreadCount), 9, Nt)) : b("", !0)
1797
+ }, v(n.unreadCount > 9 ? "9+" : n.unreadCount), 9, Nt)) : w("", !0)
1798
1798
  ], 8, Rt)
1799
1799
  ]);
1800
1800
  }
1801
- const Ft = /* @__PURE__ */ B(kt, [["render", Ut], ["__scopeId", "data-v-5193a529"]]), jt = {
1801
+ const Ut = /* @__PURE__ */ B(kt, [["render", Ft], ["__scopeId", "data-v-5193a529"]]), jt = {
1802
1802
  name: "WmAIAvatar",
1803
1803
  props: {
1804
1804
  size: { type: Number, default: 26 },
@@ -1840,7 +1840,7 @@ function zt(e, t, n, i, r, s) {
1840
1840
  "--wm-avr": n.size * 0.32 + "px"
1841
1841
  })
1842
1842
  }, [
1843
- n.pulse ? (c(), u("div", Pt)) : b("", !0),
1843
+ n.pulse ? (c(), u("div", Pt)) : w("", !0),
1844
1844
  o("div", {
1845
1845
  class: x(["wm-aiav__inner", {
1846
1846
  "wm-aiav__inner--glow": n.pulse,
@@ -1924,7 +1924,7 @@ function Gt(e, t, n, i, r, s) {
1924
1924
  class: "wm-team__stack",
1925
1925
  style: z({ width: s.stackWidth + "px" })
1926
1926
  }, [
1927
- (c(!0), u(I, null, F(n.members.slice(0, 3), (a, l) => (c(), u("div", {
1927
+ (c(!0), u(I, null, U(n.members.slice(0, 3), (a, l) => (c(), u("div", {
1928
1928
  key: l,
1929
1929
  class: "wm-team__pill",
1930
1930
  style: z({
@@ -1940,8 +1940,8 @@ function Gt(e, t, n, i, r, s) {
1940
1940
  }, null, 8, Vt)) : (c(), u("span", Kt, v(s.initialsFor(a)), 1))
1941
1941
  ], 4))), 128))
1942
1942
  ], 4),
1943
- n.responseLabel ? (c(), u("span", Wt, v(n.responseLabel), 1)) : b("", !0)
1944
- ])) : b("", !0);
1943
+ n.responseLabel ? (c(), u("span", Wt, v(n.responseLabel), 1)) : w("", !0)
1944
+ ])) : w("", !0);
1945
1945
  }
1946
1946
  const Yt = /* @__PURE__ */ B(qt, [["render", Gt], ["__scopeId", "data-v-e49a9063"]]), Qt = {
1947
1947
  name: "WmHeader",
@@ -2028,7 +2028,7 @@ function ln(e, t, n, i, r, s) {
2028
2028
  key: 0,
2029
2029
  members: s.displayedTeamMembers,
2030
2030
  "response-label": ""
2031
- }, null, 8, ["members"])) : b("", !0)
2031
+ }, null, 8, ["members"])) : w("", !0)
2032
2032
  ], 64)) : (c(), u("div", sn)),
2033
2033
  o("div", rn, [
2034
2034
  n.showMore ? (c(), u("button", {
@@ -2062,7 +2062,7 @@ function ln(e, t, n, i, r, s) {
2062
2062
  r: "1.6"
2063
2063
  })
2064
2064
  ], -1)
2065
- ])], 10, an)) : b("", !0),
2065
+ ])], 10, an)) : w("", !0),
2066
2066
  n.showClose ? (c(), u("button", {
2067
2067
  key: 1,
2068
2068
  type: "button",
@@ -2084,7 +2084,7 @@ function ln(e, t, n, i, r, s) {
2084
2084
  }, [
2085
2085
  o("path", { d: "M18 6L6 18M6 6l12 12" })
2086
2086
  ], -1)
2087
- ])], 8, on)) : b("", !0)
2087
+ ])], 8, on)) : w("", !0)
2088
2088
  ])
2089
2089
  ]);
2090
2090
  }
@@ -2253,10 +2253,10 @@ const Te = {
2253
2253
  });
2254
2254
  }
2255
2255
  }
2256
- }, fn = { class: "wm-onb" }, _n = { class: "wm-onb__hero" }, gn = { class: "wm-onb__title" }, pn = { class: "wm-onb__sub" }, vn = { class: "wm-onb__cta" }, yn = ["disabled"], bn = {
2256
+ }, fn = { class: "wm-onb" }, _n = { class: "wm-onb__hero" }, gn = { class: "wm-onb__title" }, pn = { class: "wm-onb__sub" }, vn = { class: "wm-onb__cta" }, yn = ["disabled"], wn = {
2257
2257
  key: 0,
2258
2258
  class: "wm-onb__section"
2259
- }, wn = { class: "wm-onb__section-title" }, kn = ["onClick"], Cn = { class: "wm-onb__card-icon" }, An = {
2259
+ }, bn = { class: "wm-onb__section-title" }, kn = ["onClick"], Cn = { class: "wm-onb__card-icon" }, An = {
2260
2260
  width: "16",
2261
2261
  height: "16",
2262
2262
  viewBox: "0 0 24 24",
@@ -2272,7 +2272,7 @@ const Te = {
2272
2272
  }, On = {
2273
2273
  key: 1,
2274
2274
  class: "wm-onb__section"
2275
- }, In = { class: "wm-onb__section-title" }, Ln = { class: "wm-onb__search" }, Bn = ["placeholder", "aria-label"], En = { class: "wm-onb__list" }, Rn = ["onClick"], Nn = ["aria-label"], Un = { class: "wm-onb__thread-body" }, Fn = { class: "wm-onb__thread-title" }, jn = ["innerHTML"], Pn = { class: "wm-onb__thread-meta" }, Dn = {
2275
+ }, In = { class: "wm-onb__section-title" }, Ln = { class: "wm-onb__search" }, Bn = ["placeholder", "aria-label"], En = { class: "wm-onb__list" }, Rn = ["onClick"], Nn = ["aria-label"], Fn = { class: "wm-onb__thread-body" }, Un = { class: "wm-onb__thread-title" }, jn = ["innerHTML"], Pn = { class: "wm-onb__thread-meta" }, Dn = {
2276
2276
  key: 0,
2277
2277
  class: "wm-onb__thread-time"
2278
2278
  }, Hn = {
@@ -2283,9 +2283,42 @@ function zn(e, t, n, i, r, s) {
2283
2283
  const a = L("AIAvatar");
2284
2284
  return c(), u("div", fn, [
2285
2285
  o("div", _n, [
2286
+ t[2] || (t[2] = o("svg", {
2287
+ class: "wm-onb__hero-deco",
2288
+ width: "180",
2289
+ height: "180",
2290
+ viewBox: "0 0 180 180",
2291
+ fill: "none",
2292
+ "aria-hidden": "true"
2293
+ }, [
2294
+ o("circle", {
2295
+ cx: "170",
2296
+ cy: "10",
2297
+ r: "105",
2298
+ stroke: "#5B5FEF",
2299
+ "stroke-width": "1",
2300
+ "stroke-dasharray": "1 5",
2301
+ opacity: "0.35"
2302
+ }),
2303
+ o("circle", {
2304
+ cx: "170",
2305
+ cy: "10",
2306
+ r: "72",
2307
+ stroke: "#5B5FEF",
2308
+ "stroke-width": "1",
2309
+ "stroke-dasharray": "1 5",
2310
+ opacity: "0.5"
2311
+ }),
2312
+ o("circle", {
2313
+ cx: "152",
2314
+ cy: "34",
2315
+ r: "2.5",
2316
+ fill: "#5B5FEF",
2317
+ opacity: "0.65"
2318
+ })
2319
+ ], -1)),
2286
2320
  $(a, {
2287
- size: 56,
2288
- pulse: !0,
2321
+ size: 48,
2289
2322
  "image-url": n.defaultIconUrl
2290
2323
  }, null, 8, ["image-url"]),
2291
2324
  o("div", gn, v(s.heroTitle), 1),
@@ -2298,7 +2331,7 @@ function zn(e, t, n, i, r, s) {
2298
2331
  disabled: n.busy,
2299
2332
  onClick: t[0] || (t[0] = (l) => e.$emit("start"))
2300
2333
  }, [
2301
- t[2] || (t[2] = o("span", { class: "wm-onb__startIcon" }, [
2334
+ t[3] || (t[3] = o("span", { class: "wm-onb__startIcon" }, [
2302
2335
  o("svg", {
2303
2336
  width: "12",
2304
2337
  height: "12",
@@ -2316,12 +2349,12 @@ function zn(e, t, n, i, r, s) {
2316
2349
  o("span", null, v(n.busy ? "…" : s.t("onboarding.start")), 1)
2317
2350
  ], 8, yn)
2318
2351
  ]),
2319
- n.quickLinks.length ? (c(), u("div", bn, [
2320
- o("div", wn, v(s.t("onboarding.quickAccess")), 1),
2352
+ n.quickLinks.length ? (c(), u("div", wn, [
2353
+ o("div", bn, v(s.t("onboarding.quickAccess")), 1),
2321
2354
  o("div", {
2322
2355
  class: x(s.quickLinksLayout)
2323
2356
  }, [
2324
- (c(!0), u(I, null, F(n.quickLinks, (l, p) => (c(), u("button", {
2357
+ (c(!0), u(I, null, U(n.quickLinks, (l, p) => (c(), u("button", {
2325
2358
  key: p,
2326
2359
  type: "button",
2327
2360
  class: x(["wm-onb__card", { "wm-onb__card--row": s.isOddQuickLinks }]),
@@ -2336,15 +2369,15 @@ function zn(e, t, n, i, r, s) {
2336
2369
  ]),
2337
2370
  o("span", Mn, [
2338
2371
  o("span", Tn, v(l.label), 1),
2339
- l.description ? (c(), u("span", xn, v(l.description), 1)) : b("", !0)
2372
+ l.description ? (c(), u("span", xn, v(l.description), 1)) : w("", !0)
2340
2373
  ])
2341
2374
  ], 10, kn))), 128))
2342
2375
  ], 2)
2343
- ])) : b("", !0),
2376
+ ])) : w("", !0),
2344
2377
  n.openThreads.length ? (c(), u("div", On, [
2345
2378
  o("div", In, v(s.t("onboarding.recentConversations")), 1),
2346
2379
  o("div", Ln, [
2347
- t[3] || (t[3] = o("span", { class: "wm-onb__searchIcon" }, [
2380
+ t[4] || (t[4] = o("span", { class: "wm-onb__searchIcon" }, [
2348
2381
  o("svg", {
2349
2382
  width: "12",
2350
2383
  height: "12",
@@ -2369,7 +2402,7 @@ function zn(e, t, n, i, r, s) {
2369
2402
  ])
2370
2403
  ]),
2371
2404
  o("div", En, [
2372
- (c(!0), u(I, null, F(s.filteredThreads, (l) => (c(), u("button", {
2405
+ (c(!0), u(I, null, U(s.filteredThreads, (l) => (c(), u("button", {
2373
2406
  key: l.id,
2374
2407
  type: "button",
2375
2408
  class: "wm-onb__thread",
@@ -2378,7 +2411,7 @@ function zn(e, t, n, i, r, s) {
2378
2411
  o("span", {
2379
2412
  class: x(["wm-onb__thread-icon", { "wm-onb__thread-icon--inverted": !l.unread }])
2380
2413
  }, [
2381
- t[4] || (t[4] = o("svg", {
2414
+ t[5] || (t[5] = o("svg", {
2382
2415
  width: "18",
2383
2416
  height: "18",
2384
2417
  viewBox: "0 0 24 24",
@@ -2395,18 +2428,18 @@ function zn(e, t, n, i, r, s) {
2395
2428
  key: 0,
2396
2429
  class: "wm-onb__thread-dot",
2397
2430
  "aria-label": s.t("onboarding.unread")
2398
- }, null, 8, Nn)) : b("", !0)
2431
+ }, null, 8, Nn)) : w("", !0)
2399
2432
  ], 2),
2400
- o("span", Un, [
2401
- o("span", Fn, v(l.title), 1),
2433
+ o("span", Fn, [
2434
+ o("span", Un, v(l.title), 1),
2402
2435
  o("span", {
2403
2436
  class: "wm-onb__thread-preview",
2404
2437
  innerHTML: s.renderPreview(l.preview)
2405
2438
  }, null, 8, jn)
2406
2439
  ]),
2407
2440
  o("span", Pn, [
2408
- s.formatTs(l._ts) ? (c(), u("span", Dn, v(s.formatTs(l._ts)), 1)) : b("", !0),
2409
- t[5] || (t[5] = o("svg", {
2441
+ s.formatTs(l._ts) ? (c(), u("span", Dn, v(s.formatTs(l._ts)), 1)) : w("", !0),
2442
+ t[6] || (t[6] = o("svg", {
2410
2443
  width: "14",
2411
2444
  height: "14",
2412
2445
  viewBox: "0 0 24 24",
@@ -2422,12 +2455,12 @@ function zn(e, t, n, i, r, s) {
2422
2455
  ], -1))
2423
2456
  ])
2424
2457
  ], 8, Rn))), 128)),
2425
- s.filteredThreads.length ? b("", !0) : (c(), u("div", Hn, v(s.t("onboarding.noResults", { query: r.query })), 1))
2458
+ s.filteredThreads.length ? w("", !0) : (c(), u("div", Hn, v(s.t("onboarding.noResults", { query: r.query })), 1))
2426
2459
  ])
2427
- ])) : b("", !0)
2460
+ ])) : w("", !0)
2428
2461
  ]);
2429
2462
  }
2430
- const qn = /* @__PURE__ */ B(hn, [["render", zn], ["__scopeId", "data-v-900e5f91"]]);
2463
+ const qn = /* @__PURE__ */ B(hn, [["render", zn], ["__scopeId", "data-v-1f4a35c6"]]);
2431
2464
  function $n(e) {
2432
2465
  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();
2433
2466
  }
@@ -2528,7 +2561,7 @@ function es(e, t, n, i, r, s) {
2528
2561
  "aria-hidden": "true"
2529
2562
  }, " · ", -1)),
2530
2563
  o("span", Zn, v(s.detailText), 1)
2531
- ], 64)) : b("", !0)
2564
+ ], 64)) : w("", !0)
2532
2565
  ])
2533
2566
  ], 2);
2534
2567
  }
@@ -2571,7 +2604,7 @@ function cs(e, t, n, i, r, s) {
2571
2604
  ])
2572
2605
  ]),
2573
2606
  o("div", os, [
2574
- (c(!0), u(I, null, F(s.fields, (a, l) => (c(), u("div", {
2607
+ (c(!0), u(I, null, U(s.fields, (a, l) => (c(), u("div", {
2575
2608
  key: l,
2576
2609
  class: "wm-art__field"
2577
2610
  }, [
@@ -2610,10 +2643,10 @@ const ds = /* @__PURE__ */ B(ns, [["render", cs], ["__scopeId", "data-v-713aecf1
2610
2643
  }, ys = {
2611
2644
  key: 1,
2612
2645
  class: "wm-art__body"
2613
- }, bs = {
2646
+ }, ws = {
2614
2647
  key: 0,
2615
2648
  class: "wm-art__text"
2616
- }, ws = { class: "wm-art__fieldLabel" };
2649
+ }, bs = { class: "wm-art__fieldLabel" };
2617
2650
  function ks(e, t, n, i, r, s) {
2618
2651
  return c(), u("div", ms, [
2619
2652
  n.data.image_url ? (c(), u("figure", hs, [
@@ -2622,11 +2655,11 @@ function ks(e, t, n, i, r, s) {
2622
2655
  alt: n.data.title || "",
2623
2656
  loading: "lazy"
2624
2657
  }, null, 8, fs)
2625
- ])) : b("", !0),
2658
+ ])) : w("", !0),
2626
2659
  o("div", _s, [
2627
2660
  o("div", gs, [
2628
2661
  o("div", ps, v(n.data.title), 1),
2629
- n.data.subtitle ? (c(), u("div", vs, v(n.data.subtitle), 1)) : b("", !0)
2662
+ n.data.subtitle ? (c(), u("div", vs, v(n.data.subtitle), 1)) : w("", !0)
2630
2663
  ]),
2631
2664
  n.data.badge && n.data.badge.label ? (c(), u("span", {
2632
2665
  key: 0,
@@ -2634,23 +2667,23 @@ function ks(e, t, n, i, r, s) {
2634
2667
  "wm-art__badge",
2635
2668
  `wm-art__badge--${n.data.badge.tone || "neutral"}`
2636
2669
  ])
2637
- }, v(n.data.badge.label), 3)) : b("", !0)
2670
+ }, v(n.data.badge.label), 3)) : w("", !0)
2638
2671
  ]),
2639
2672
  s.hasBody ? (c(), u("div", ys, [
2640
- n.data.body ? (c(), u("div", bs, v(n.data.body), 1)) : b("", !0),
2641
- s.fields.length ? (c(!0), u(I, { key: 1 }, F(s.fields, (a, l) => (c(), u("div", {
2673
+ n.data.body ? (c(), u("div", ws, v(n.data.body), 1)) : w("", !0),
2674
+ s.fields.length ? (c(!0), u(I, { key: 1 }, U(s.fields, (a, l) => (c(), u("div", {
2642
2675
  key: l,
2643
2676
  class: "wm-art__field"
2644
2677
  }, [
2645
- o("div", ws, v(a.label), 1),
2678
+ o("div", bs, v(a.label), 1),
2646
2679
  o("div", {
2647
2680
  class: x([
2648
2681
  "wm-art__fieldValue",
2649
2682
  { "wm-art__fieldValue--multi": a.multiline }
2650
2683
  ])
2651
2684
  }, v(a.value), 3)
2652
- ]))), 128)) : b("", !0)
2653
- ])) : b("", !0)
2685
+ ]))), 128)) : w("", !0)
2686
+ ])) : w("", !0)
2654
2687
  ]);
2655
2688
  }
2656
2689
  const Cs = /* @__PURE__ */ B(us, [["render", ks], ["__scopeId", "data-v-7eae0e4a"]]);
@@ -2732,11 +2765,11 @@ const Ss = {
2732
2765
  "stroke-linecap": "round",
2733
2766
  "stroke-linejoin": "round",
2734
2767
  "aria-hidden": "true"
2735
- }, Us = {
2768
+ }, Fs = {
2736
2769
  key: 1,
2737
2770
  class: "wm-art__footer wm-tk__footer"
2738
2771
  };
2739
- function Fs(e, t, n, i, r, s) {
2772
+ function Us(e, t, n, i, r, s) {
2740
2773
  return c(), u("div", Ms, [
2741
2774
  o("div", Ts, [
2742
2775
  o("div", xs, v(n.data.title), 1),
@@ -2772,10 +2805,10 @@ function Fs(e, t, n, i, r, s) {
2772
2805
  ge(" " + v(n.data.status.label), 1)
2773
2806
  ], 2)
2774
2807
  ]),
2775
- n.data.body ? (c(), u("div", Ls, v(n.data.body), 1)) : b("", !0)
2808
+ n.data.body ? (c(), u("div", Ls, v(n.data.body), 1)) : w("", !0)
2776
2809
  ]),
2777
2810
  s.fields.length ? (c(), u("div", Bs, [
2778
- (c(!0), u(I, null, F(s.fields, (a, l) => (c(), u("div", {
2811
+ (c(!0), u(I, null, U(s.fields, (a, l) => (c(), u("div", {
2779
2812
  key: l,
2780
2813
  class: "wm-art__field"
2781
2814
  }, [
@@ -2825,12 +2858,12 @@ function Fs(e, t, n, i, r, s) {
2825
2858
  rx: "2"
2826
2859
  }, null, -1),
2827
2860
  o("path", { d: "M16 2v4M8 2v4M3 10h18" }, null, -1)
2828
- ])])) : b("", !0),
2861
+ ])])) : w("", !0),
2829
2862
  o("span", null, v(a.value), 1)
2830
2863
  ], 2)
2831
2864
  ]))), 128))
2832
- ])) : b("", !0),
2833
- n.data.created_at ? (c(), u("div", Us, [
2865
+ ])) : w("", !0),
2866
+ n.data.created_at ? (c(), u("div", Fs, [
2834
2867
  t[4] || (t[4] = o("svg", {
2835
2868
  width: "11",
2836
2869
  height: "11",
@@ -2852,10 +2885,10 @@ function Fs(e, t, n, i, r, s) {
2852
2885
  o("path", { d: "M16 2v4M8 2v4M3 10h18" })
2853
2886
  ], -1)),
2854
2887
  o("span", null, v(s.formattedDate), 1)
2855
- ])) : b("", !0)
2888
+ ])) : w("", !0)
2856
2889
  ]);
2857
2890
  }
2858
- const js = /* @__PURE__ */ B(Ss, [["render", Fs], ["__scopeId", "data-v-5f30c914"]]), Ps = {
2891
+ const js = /* @__PURE__ */ B(Ss, [["render", Us], ["__scopeId", "data-v-5f30c914"]]), Ps = {
2859
2892
  form_response: ds,
2860
2893
  info_card: Cs,
2861
2894
  ticket: js
@@ -2878,7 +2911,7 @@ function Hs(e, t, n, i, r, s) {
2878
2911
  return s.component ? (c(), R(Pe(s.component), {
2879
2912
  key: 0,
2880
2913
  data: n.artifact.data
2881
- }, null, 8, ["data"])) : b("", !0);
2914
+ }, null, 8, ["data"])) : w("", !0);
2882
2915
  }
2883
2916
  const zs = /* @__PURE__ */ B(Ds, [["render", Hs]]), qs = {
2884
2917
  name: "WmAttachmentPreview",
@@ -3005,9 +3038,9 @@ function Zs(e, t, n, i, r, s) {
3005
3038
  ], -1)),
3006
3039
  o("span", Ys, [
3007
3040
  o("span", Qs, v(s.displayName), 1),
3008
- s.sizeLabel ? (c(), u("span", Xs, v(s.sizeLabel), 1)) : b("", !0)
3041
+ s.sizeLabel ? (c(), u("span", Xs, v(s.sizeLabel), 1)) : w("", !0)
3009
3042
  ]),
3010
- r.loading ? (c(), u("span", Js)) : b("", !0)
3043
+ r.loading ? (c(), u("span", Js)) : w("", !0)
3011
3044
  ], 8, Gs))
3012
3045
  ], 2);
3013
3046
  }
@@ -3583,10 +3616,10 @@ const cr = {
3583
3616
  }, pr = { class: "wm-list__sep-label" }, vr = {
3584
3617
  key: 0,
3585
3618
  class: "wm-list__sep wm-list__sep--unread"
3586
- }, yr = { class: "wm-list__sep-label wm-list__sep-label--unread" }, br = {
3619
+ }, yr = { class: "wm-list__sep-label wm-list__sep-label--unread" }, wr = {
3587
3620
  key: 0,
3588
3621
  class: "wm-list__sysep"
3589
- }, wr = { class: "wm-list__sysep-label" }, kr = ["data-row-key"], Cr = {
3622
+ }, br = { class: "wm-list__sysep-label" }, kr = ["data-row-key"], Cr = {
3590
3623
  key: 0,
3591
3624
  class: "wm-list__avatarSlot"
3592
3625
  }, Ar = {
@@ -3612,30 +3645,30 @@ function Ir(e, t, n, i, r, s) {
3612
3645
  "aria-hidden": "true"
3613
3646
  }, null, -1)),
3614
3647
  o("span", fr, v(s.t("messageList.loadingHistory")), 1)
3615
- ])) : s.historyExhausted ? (c(), u("div", _r, v(s.t("messageList.conversationStart")), 1)) : b("", !0),
3648
+ ])) : s.historyExhausted ? (c(), u("div", _r, v(s.t("messageList.conversationStart")), 1)) : w("", !0),
3616
3649
  n.dateLabel ? (c(), u("div", gr, [
3617
3650
  t[2] || (t[2] = o("div", { class: "wm-list__line" }, null, -1)),
3618
3651
  o("span", pr, v(n.dateLabel), 1),
3619
3652
  t[3] || (t[3] = o("div", { class: "wm-list__line" }, null, -1))
3620
- ])) : b("", !0),
3621
- (c(!0), u(I, null, F(s.groups, (A, q) => (c(), u(I, {
3653
+ ])) : w("", !0),
3654
+ (c(!0), u(I, null, U(s.groups, (A, q) => (c(), u(I, {
3622
3655
  key: A.key
3623
3656
  }, [
3624
3657
  A.key === s.unreadGroupKey ? (c(), u("div", vr, [
3625
3658
  t[4] || (t[4] = o("div", { class: "wm-list__line wm-list__line--unread" }, null, -1)),
3626
3659
  o("span", yr, v(s.t("messageList.unread")), 1),
3627
3660
  t[5] || (t[5] = o("div", { class: "wm-list__line wm-list__line--unread" }, null, -1))
3628
- ])) : b("", !0),
3661
+ ])) : w("", !0),
3629
3662
  A.role === "system" || A.items.length ? (c(), u("div", {
3630
3663
  key: 1,
3631
3664
  class: x(["wm-list__group", "wm-list__group--" + A.role])
3632
3665
  }, [
3633
- A.role === "system" ? (c(), u("div", br, [
3666
+ A.role === "system" ? (c(), u("div", wr, [
3634
3667
  t[6] || (t[6] = o("div", { class: "wm-list__line wm-list__line--strong" }, null, -1)),
3635
- o("span", wr, v(A.systemLabel), 1),
3668
+ o("span", br, v(A.systemLabel), 1),
3636
3669
  t[7] || (t[7] = o("div", { class: "wm-list__line wm-list__line--strong" }, null, -1))
3637
3670
  ])) : (c(), u(I, { key: 1 }, [
3638
- (c(!0), u(I, null, F(A.items, (M, P) => (c(), u("div", {
3671
+ (c(!0), u(I, null, U(A.items, (M, P) => (c(), u("div", {
3639
3672
  key: `${s.messageKey(M.message)}-${M.partKey}`,
3640
3673
  "data-row-key": `${s.messageKey(M.message)}-${M.partKey}`,
3641
3674
  class: x(["wm-list__row fade-up", [
@@ -3662,8 +3695,8 @@ function Ir(e, t, n, i, r, s) {
3662
3695
  size: 26,
3663
3696
  tail: !0
3664
3697
  }, null, 8, ["name", "avatar-url"]))
3665
- ], 64)) : b("", !0)
3666
- ])) : b("", !0),
3698
+ ], 64)) : w("", !0)
3699
+ ])) : w("", !0),
3667
3700
  M.renderAs === "action" ? (c(), R(p, {
3668
3701
  key: 1,
3669
3702
  state: M.message.payload.state,
@@ -3685,32 +3718,32 @@ function Ir(e, t, n, i, r, s) {
3685
3718
  key: 0,
3686
3719
  role: A.role,
3687
3720
  text: M.message.text_md
3688
- }, null, 8, ["role", "text"])) : b("", !0),
3721
+ }, null, 8, ["role", "text"])) : w("", !0),
3689
3722
  s.attachmentsOf(M.message).length ? (c(), u("div", {
3690
3723
  key: 1,
3691
3724
  class: x(["wm-list__atts", {
3692
3725
  "wm-list__atts--align-end": A.role === "user"
3693
3726
  }])
3694
3727
  }, [
3695
- (c(!0), u(I, null, F(s.attachmentsOf(
3728
+ (c(!0), u(I, null, U(s.attachmentsOf(
3696
3729
  M.message
3697
3730
  ), (N, H) => (c(), R(T, {
3698
3731
  key: `${s.messageKey(M.message)}-att-${H}`,
3699
3732
  attachment: N
3700
3733
  }, null, 8, ["attachment"]))), 128))
3701
- ], 2)) : b("", !0)
3734
+ ], 2)) : w("", !0)
3702
3735
  ]))
3703
3736
  ], 14, kr))), 128)),
3704
3737
  (A.role !== "user" || s.lastTimeOf(A)) && !s.hasTrailingOverlay(A) ? (c(), u("div", {
3705
3738
  key: 0,
3706
3739
  class: x(["wm-list__meta", { "wm-list__meta--right": A.role === "user" }])
3707
3740
  }, [
3708
- A.role !== "user" ? (c(), u("span", Sr, v(s.roleLabel(A)), 1)) : b("", !0),
3709
- A.role !== "user" && s.lastTimeOf(A) ? (c(), u("span", Mr, "·")) : b("", !0),
3710
- s.lastTimeOf(A) ? (c(), u("span", Tr, v(s.lastTimeOf(A)), 1)) : b("", !0)
3711
- ], 2)) : b("", !0)
3741
+ A.role !== "user" ? (c(), u("span", Sr, v(s.roleLabel(A)), 1)) : w("", !0),
3742
+ A.role !== "user" && s.lastTimeOf(A) ? (c(), u("span", Mr, "·")) : w("", !0),
3743
+ s.lastTimeOf(A) ? (c(), u("span", Tr, v(s.lastTimeOf(A)), 1)) : w("", !0)
3744
+ ], 2)) : w("", !0)
3712
3745
  ], 64))
3713
- ], 2)) : b("", !0)
3746
+ ], 2)) : w("", !0)
3714
3747
  ], 64))), 128)),
3715
3748
  n.streamingActive ? (c(), u("div", xr, [
3716
3749
  o("div", Or, [
@@ -3722,12 +3755,12 @@ function Ir(e, t, n, i, r, s) {
3722
3755
  }, null, 8, ["name", "image-url"])
3723
3756
  ]),
3724
3757
  $(E)
3725
- ])) : b("", !0)
3758
+ ])) : w("", !0)
3726
3759
  ], 34);
3727
3760
  }
3728
- const Lr = /* @__PURE__ */ B(mr, [["render", Ir], ["__scopeId", "data-v-d769b193"]]), me = typeof navigator < "u" && !!navigator.mediaDevices && typeof navigator.mediaDevices.getDisplayMedia == "function", be = typeof window < "u" && typeof window.MediaRecorder < "u";
3761
+ const Lr = /* @__PURE__ */ B(mr, [["render", Ir], ["__scopeId", "data-v-d769b193"]]), me = typeof navigator < "u" && !!navigator.mediaDevices && typeof navigator.mediaDevices.getDisplayMedia == "function", we = typeof window < "u" && typeof window.MediaRecorder < "u";
3729
3762
  function Br() {
3730
- return be && [
3763
+ return we && [
3731
3764
  "video/webm;codecs=vp9,opus",
3732
3765
  "video/webm;codecs=vp8,opus",
3733
3766
  "video/webm",
@@ -3784,7 +3817,7 @@ async function Rr(e) {
3784
3817
  }
3785
3818
  async function Nr(e = {}) {
3786
3819
  var C;
3787
- if (!me || !be) return null;
3820
+ if (!me || !we) return null;
3788
3821
  let t;
3789
3822
  try {
3790
3823
  t = await navigator.mediaDevices.getDisplayMedia(
@@ -3847,7 +3880,7 @@ async function Nr(e = {}) {
3847
3880
  }
3848
3881
  };
3849
3882
  }
3850
- const Ur = [
3883
+ const Fr = [
3851
3884
  {
3852
3885
  action: "file",
3853
3886
  labelKey: "composer.attachFile",
@@ -3863,7 +3896,7 @@ const Ur = [
3863
3896
  labelKey: "composer.recordScreen",
3864
3897
  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"
3865
3898
  }
3866
- ], Fr = {
3899
+ ], Ur = {
3867
3900
  name: "WmComposer",
3868
3901
  inject: {
3869
3902
  // Translator shared by the Messenger shell; French fallback when
@@ -3891,10 +3924,10 @@ const Ur = [
3891
3924
  return !this.disabled && !!this.local.trim();
3892
3925
  },
3893
3926
  attachItems() {
3894
- return Ur.map((e) => ({
3927
+ return Fr.map((e) => ({
3895
3928
  ...e,
3896
3929
  label: this.t(e.labelKey),
3897
- disabled: e.action === "screenshot" && !me || e.action === "record" && (!me || !be)
3930
+ disabled: e.action === "screenshot" && !me || e.action === "record" && (!me || !we)
3898
3931
  }));
3899
3932
  },
3900
3933
  recordingElapsedLabel() {
@@ -4021,7 +4054,7 @@ function Qr(e, t, n, i, r, s) {
4021
4054
  class: "wm-rec__stop",
4022
4055
  onClick: t[0] || (t[0] = (...a) => s.stopRecording && s.stopRecording(...a))
4023
4056
  }, v(s.t("composer.stop")), 1)
4024
- ])) : b("", !0),
4057
+ ])) : w("", !0),
4025
4058
  o("form", {
4026
4059
  class: x(["wm-compose", { "has-attach": r.attachOpen }]),
4027
4060
  onSubmit: t[7] || (t[7] = X((...a) => s.onSubmit && s.onSubmit(...a), ["prevent"]))
@@ -4037,9 +4070,9 @@ function Qr(e, t, n, i, r, s) {
4037
4070
  key: 0,
4038
4071
  class: "wm-compose__overlay",
4039
4072
  onClick: t[2] || (t[2] = (a) => r.attachOpen = !1)
4040
- })) : b("", !0),
4073
+ })) : w("", !0),
4041
4074
  r.attachOpen ? (c(), u("div", Hr, [
4042
- (c(!0), u(I, null, F(s.attachItems, (a) => (c(), u("button", {
4075
+ (c(!0), u(I, null, U(s.attachItems, (a) => (c(), u("button", {
4043
4076
  key: a.action,
4044
4077
  type: "button",
4045
4078
  class: "wm-compose__menuItem",
@@ -4060,7 +4093,7 @@ function Qr(e, t, n, i, r, s) {
4060
4093
  ]),
4061
4094
  o("span", null, v(a.label), 1)
4062
4095
  ], 8, zr))), 128))
4063
- ])) : b("", !0),
4096
+ ])) : w("", !0),
4064
4097
  K(o("textarea", {
4065
4098
  ref: "inputEl",
4066
4099
  "onUpdate:modelValue": t[3] || (t[3] = (a) => r.local = a),
@@ -4120,7 +4153,7 @@ function Qr(e, t, n, i, r, s) {
4120
4153
  ], 34)
4121
4154
  ]);
4122
4155
  }
4123
- const Xr = /* @__PURE__ */ B(Fr, [["render", Qr], ["__scopeId", "data-v-aa81dbb8"]]), Jr = {
4156
+ const Xr = /* @__PURE__ */ B(Ur, [["render", Qr], ["__scopeId", "data-v-aa81dbb8"]]), Jr = {
4124
4157
  name: "WmSuggestionChips",
4125
4158
  props: {
4126
4159
  items: { type: Array, default: () => [] },
@@ -4143,14 +4176,14 @@ function ei(e, t, n, i, r, s) {
4143
4176
  key: s.batchKey,
4144
4177
  class: "wm-chips"
4145
4178
  }, [
4146
- (c(!0), u(I, null, F(n.items, (a, l) => (c(), u("button", {
4179
+ (c(!0), u(I, null, U(n.items, (a, l) => (c(), u("button", {
4147
4180
  key: l,
4148
4181
  type: "button",
4149
4182
  class: "wm-chip",
4150
4183
  style: z({ animationDelay: n.baseDelay + l * n.stepDelay + "ms" }),
4151
4184
  onClick: (p) => e.$emit("select", a)
4152
4185
  }, v(a.label), 13, Zr))), 128))
4153
- ])) : b("", !0);
4186
+ ])) : w("", !0);
4154
4187
  }
4155
4188
  const ti = /* @__PURE__ */ B(Jr, [["render", ei], ["__scopeId", "data-v-47ad8085"]]), ni = {
4156
4189
  name: "WmApprovalCard",
@@ -4213,7 +4246,7 @@ function di(e, t, n, i, r, s) {
4213
4246
  ]),
4214
4247
  o("div", ai, [
4215
4248
  o("div", oi, v(n.action), 1),
4216
- n.detail ? (c(), u("div", li, v(n.detail), 1)) : b("", !0)
4249
+ n.detail ? (c(), u("div", li, v(n.detail), 1)) : w("", !0)
4217
4250
  ])
4218
4251
  ]),
4219
4252
  o("div", ci, [
@@ -4222,13 +4255,13 @@ function di(e, t, n, i, r, s) {
4222
4255
  type: "button",
4223
4256
  class: "wm-approval__btn wm-approval__btn--neutral",
4224
4257
  onClick: t[0] || (t[0] = (l) => e.$emit("callback", s.rejectId))
4225
- }, v(s.rejectLabel), 1)) : b("", !0),
4258
+ }, v(s.rejectLabel), 1)) : w("", !0),
4226
4259
  s.approveId ? (c(), u("button", {
4227
4260
  key: 1,
4228
4261
  type: "button",
4229
4262
  class: "wm-approval__btn wm-approval__btn--primary",
4230
4263
  onClick: t[1] || (t[1] = (l) => e.$emit("callback", s.approveId))
4231
- }, v(s.approveLabel), 1)) : b("", !0)
4264
+ }, v(s.approveLabel), 1)) : w("", !0)
4232
4265
  ])
4233
4266
  ]);
4234
4267
  }
@@ -4328,7 +4361,7 @@ const mi = /* @__PURE__ */ new Set([
4328
4361
  }, fi = { class: "wm-form" }, _i = { class: "wm-form__head" }, gi = { class: "wm-form__icon" }, pi = { class: "wm-form__main" }, vi = { class: "wm-form__title" }, yi = {
4329
4362
  key: 0,
4330
4363
  class: "wm-form__detail"
4331
- }, bi = ["for"], wi = {
4364
+ }, wi = ["for"], bi = {
4332
4365
  key: 0,
4333
4366
  class: "wm-form__req",
4334
4367
  "aria-hidden": "true"
@@ -4348,11 +4381,11 @@ const mi = /* @__PURE__ */ new Set([
4348
4381
  key: 0,
4349
4382
  class: "wm-form__spinner",
4350
4383
  "aria-hidden": "true"
4351
- }, Ui = {
4384
+ }, Fi = {
4352
4385
  key: 2,
4353
4386
  class: "wm-form__doneLbl"
4354
4387
  };
4355
- function Fi(e, t, n, i, r, s) {
4388
+ function Ui(e, t, n, i, r, s) {
4356
4389
  const a = L("AIAvatar");
4357
4390
  return c(), u("div", fi, [
4358
4391
  o("div", _i, [
@@ -4365,14 +4398,14 @@ function Fi(e, t, n, i, r, s) {
4365
4398
  ]),
4366
4399
  o("div", pi, [
4367
4400
  o("div", vi, v(n.form.title || s.t("form.title")), 1),
4368
- n.form.description ? (c(), u("div", yi, v(n.form.description), 1)) : b("", !0)
4401
+ n.form.description ? (c(), u("div", yi, v(n.form.description), 1)) : w("", !0)
4369
4402
  ])
4370
4403
  ]),
4371
4404
  o("form", {
4372
4405
  class: "wm-form__body",
4373
4406
  onSubmit: t[0] || (t[0] = X((...l) => s.onSubmit && s.onSubmit(...l), ["prevent"]))
4374
4407
  }, [
4375
- (c(!0), u(I, null, F(s.normalizedFields, (l) => (c(), u("div", {
4408
+ (c(!0), u(I, null, U(s.normalizedFields, (l) => (c(), u("div", {
4376
4409
  key: l.key,
4377
4410
  class: "wm-form__field"
4378
4411
  }, [
@@ -4381,8 +4414,8 @@ function Fi(e, t, n, i, r, s) {
4381
4414
  class: "wm-form__label"
4382
4415
  }, [
4383
4416
  ge(v(l.label), 1),
4384
- l.required ? (c(), u("span", wi, "*")) : b("", !0)
4385
- ], 8, bi),
4417
+ l.required ? (c(), u("span", bi, "*")) : w("", !0)
4418
+ ], 8, wi),
4386
4419
  l.type === "text" ? K((c(), u("input", {
4387
4420
  key: 0,
4388
4421
  id: `wm-f-${r._uid}-${l.key}`,
@@ -4450,14 +4483,14 @@ function Fi(e, t, n, i, r, s) {
4450
4483
  disabled: n.readOnly || r.busy
4451
4484
  }, [
4452
4485
  o("option", Oi, v(l.placeholder || s.t("form.choose")), 1),
4453
- (c(!0), u(I, null, F(l.options, (p) => (c(), u("option", {
4486
+ (c(!0), u(I, null, U(l.options, (p) => (c(), u("option", {
4454
4487
  key: p.value,
4455
4488
  value: p.value
4456
4489
  }, v(p.label), 9, Ii))), 128))
4457
4490
  ], 8, xi)), [
4458
4491
  [ze, r.values[l.key]]
4459
4492
  ]) : l.type === "multiselect" ? (c(), u("div", Li, [
4460
- (c(!0), u(I, null, F(l.options, (p) => (c(), u("label", {
4493
+ (c(!0), u(I, null, U(l.options, (p) => (c(), u("label", {
4461
4494
  key: p.value,
4462
4495
  class: "wm-form__multiItem"
4463
4496
  }, [
@@ -4474,22 +4507,22 @@ function Fi(e, t, n, i, r, s) {
4474
4507
  }, null, 40, Bi),
4475
4508
  o("span", null, v(p.label), 1)
4476
4509
  ]))), 128))
4477
- ])) : b("", !0)
4510
+ ])) : w("", !0)
4478
4511
  ]))), 128)),
4479
- r.error ? (c(), u("div", Ei, v(r.error), 1)) : b("", !0),
4480
- n.readOnly ? (c(), u("div", Ui, v(s.t("form.responseSent")), 1)) : (c(), u("button", {
4512
+ r.error ? (c(), u("div", Ei, v(r.error), 1)) : w("", !0),
4513
+ n.readOnly ? (c(), u("div", Fi, v(s.t("form.responseSent")), 1)) : (c(), u("button", {
4481
4514
  key: 1,
4482
4515
  type: "submit",
4483
4516
  class: "wm-form__submit",
4484
4517
  disabled: r.busy
4485
4518
  }, [
4486
- r.busy ? (c(), u("span", Ni)) : b("", !0),
4519
+ r.busy ? (c(), u("span", Ni)) : w("", !0),
4487
4520
  o("span", null, v(r.busy ? s.t("common.sending") : n.form.submit_label || s.t("common.send")), 1)
4488
4521
  ], 8, Ri))
4489
4522
  ], 32)
4490
4523
  ]);
4491
4524
  }
4492
- const ji = /* @__PURE__ */ B(hi, [["render", Fi], ["__scopeId", "data-v-fe65cc56"]]), Pi = {
4525
+ const ji = /* @__PURE__ */ B(hi, [["render", Ui], ["__scopeId", "data-v-fe65cc56"]]), Pi = {
4493
4526
  name: "WmFeedback",
4494
4527
  inject: {
4495
4528
  // Translator shared by the Messenger shell; French fallback when
@@ -4551,7 +4584,7 @@ function Xi(e, t, n, i, r, s) {
4551
4584
  o("div", Hi, v(s.t("feedback.question")), 1),
4552
4585
  o("div", zi, v(s.t("feedback.subtitle")), 1),
4553
4586
  o("div", qi, [
4554
- (c(!0), u(I, null, F(s.options, (a) => (c(), u("button", {
4587
+ (c(!0), u(I, null, U(s.options, (a) => (c(), u("button", {
4555
4588
  key: a.v,
4556
4589
  type: "button",
4557
4590
  class: x(["wm-fb__opt", { "is-selected": r.sel === a.v }]),
@@ -4654,7 +4687,7 @@ function ma(e, t, n, i, r, s) {
4654
4687
  ])
4655
4688
  ], -1)),
4656
4689
  o("span", sa, v(s.t("moreMenu.editTitle")), 1)
4657
- ])) : b("", !0),
4690
+ ])) : w("", !0),
4658
4691
  n.canExport ? (c(), u("button", {
4659
4692
  key: 1,
4660
4693
  type: "button",
@@ -4678,9 +4711,9 @@ function ma(e, t, n, i, r, s) {
4678
4711
  ], -1)),
4679
4712
  o("span", ra, v(s.t("moreMenu.exportTranscript")), 1),
4680
4713
  t[9] || (t[9] = o("span", { class: "wm-mm__hint" }, ".txt", -1))
4681
- ])) : b("", !0)
4682
- ])) : b("", !0),
4683
- n.canRename || n.canExport ? (c(), u("div", ia)) : b("", !0),
4714
+ ])) : w("", !0)
4715
+ ])) : w("", !0),
4716
+ n.canRename || n.canExport ? (c(), u("div", ia)) : w("", !0),
4684
4717
  o("div", aa, [
4685
4718
  o("button", {
4686
4719
  type: "button",
@@ -4762,7 +4795,7 @@ function ma(e, t, n, i, r, s) {
4762
4795
  ])
4763
4796
  ], -1)),
4764
4797
  o("span", da, v(s.t("moreMenu.serviceStatus")), 1)
4765
- ])) : b("", !0),
4798
+ ])) : w("", !0),
4766
4799
  n.helpUrl ? (c(), u("button", {
4767
4800
  key: 1,
4768
4801
  type: "button",
@@ -4785,7 +4818,7 @@ function ma(e, t, n, i, r, s) {
4785
4818
  ])
4786
4819
  ], -1)),
4787
4820
  o("span", ua, v(s.t("moreMenu.helpCenter")), 1)
4788
- ])) : b("", !0)
4821
+ ])) : w("", !0)
4789
4822
  ])
4790
4823
  ])
4791
4824
  ]);
@@ -4836,7 +4869,7 @@ const ha = /* @__PURE__ */ B(Zi, [["render", ma], ["__scopeId", "data-v-76281e95
4836
4869
  class: "wm-dialog__card",
4837
4870
  role: "dialog",
4838
4871
  "aria-modal": "true"
4839
- }, pa = { class: "wm-dialog__head" }, va = { class: "wm-dialog__title" }, ya = ["aria-label"], ba = { class: "wm-dialog__body" }, wa = ["placeholder"], ka = { class: "wm-dialog__actions" }, Ca = ["disabled"];
4872
+ }, pa = { class: "wm-dialog__head" }, va = { class: "wm-dialog__title" }, ya = ["aria-label"], wa = { class: "wm-dialog__body" }, ba = ["placeholder"], ka = { class: "wm-dialog__actions" }, Ca = ["disabled"];
4840
4873
  function Aa(e, t, n, i, r, s) {
4841
4874
  return c(), u("div", _a, [
4842
4875
  o("div", {
@@ -4867,7 +4900,7 @@ function Aa(e, t, n, i, r, s) {
4867
4900
  ], -1)
4868
4901
  ])], 8, ya)
4869
4902
  ]),
4870
- o("div", ba, [
4903
+ o("div", wa, [
4871
4904
  K(o("input", {
4872
4905
  ref: "input",
4873
4906
  "onUpdate:modelValue": t[2] || (t[2] = (a) => r.value = a),
@@ -4879,7 +4912,7 @@ function Aa(e, t, n, i, r, s) {
4879
4912
  t[3] || (t[3] = ue(X((...a) => s.onSubmit && s.onSubmit(...a), ["prevent"]), ["enter"])),
4880
4913
  t[4] || (t[4] = ue(X((a) => e.$emit("close"), ["prevent"]), ["esc"]))
4881
4914
  ]
4882
- }, null, 40, wa), [
4915
+ }, null, 40, ba), [
4883
4916
  [ee, r.value]
4884
4917
  ])
4885
4918
  ]),
@@ -4902,7 +4935,7 @@ function Aa(e, t, n, i, r, s) {
4902
4935
  const Sa = /* @__PURE__ */ B(fa, [["render", Aa], ["__scopeId", "data-v-6d5f94a8"]]), Oe = "ww-messenger-tokens", Ma = {
4903
4936
  name: "Messenger",
4904
4937
  components: {
4905
- Launcher: Ft,
4938
+ Launcher: Ut,
4906
4939
  Header: cn,
4907
4940
  Onboarding: qn,
4908
4941
  MessageList: Lr,
@@ -5486,14 +5519,14 @@ const Sa = /* @__PURE__ */ B(fa, [["render", Aa], ["__scopeId", "data-v-6d5f94a8
5486
5519
  return;
5487
5520
  }
5488
5521
  try {
5489
- this.transport = we(
5522
+ this.transport = be(
5490
5523
  We({
5491
5524
  baseUrl: this.baseUrl,
5492
5525
  widgetId: this.widgetId,
5493
5526
  userId: this.userId,
5494
5527
  userHash: this.userHash
5495
5528
  })
5496
- ), this.store = we(Xe(this.transport)), this.hydrateNotifPref();
5529
+ ), this.store = be(Xe(this.transport)), this.hydrateNotifPref();
5497
5530
  const t = (e = this.context) == null ? void 0 : e.customer;
5498
5531
  t && typeof t == "object" && await this.store.applyCustomer(t), await this.store.start(), this.setupLiveReveal();
5499
5532
  } catch (t) {
@@ -5770,7 +5803,7 @@ const Sa = /* @__PURE__ */ B(fa, [["render", Aa], ["__scopeId", "data-v-6d5f94a8
5770
5803
  class: "wm-actionWait",
5771
5804
  role: "status",
5772
5805
  "aria-live": "polite"
5773
- }, Ua = { class: "wm-actionWait__lbl" }, Fa = {
5806
+ }, Fa = { class: "wm-actionWait__lbl" }, Ua = {
5774
5807
  key: 2,
5775
5808
  class: "wm-attached"
5776
5809
  }, ja = ["aria-label", "onClick"];
@@ -5785,16 +5818,20 @@ function Pa(e, t, n, i, r, s) {
5785
5818
  peeks: s.launcherPeeks,
5786
5819
  onOpen: s.openFromPeek,
5787
5820
  onDismiss: s.dismissPeek
5788
- }, null, 8, ["unread-count", "peeks", "onOpen", "onDismiss"])) : b("", !0),
5821
+ }, null, 8, ["unread-count", "peeks", "onOpen", "onDismiss"])) : w("", !0),
5789
5822
  r.isOpen || s.isEmbedded ? (c(), u("section", {
5790
5823
  key: 1,
5791
- class: x(["wm-panel", `wm-panel--${n.displayMode}`]),
5824
+ class: x([
5825
+ "wm-panel",
5826
+ `wm-panel--${n.displayMode}`,
5827
+ { "wm-panel--welcome": s.ready && !s.error && !s.currentConv }
5828
+ ]),
5792
5829
  style: z(r.floatHeight ? { "--wm-float-h": r.floatHeight + "px" } : null),
5793
5830
  role: "dialog",
5794
5831
  "aria-label": "Messenger"
5795
5832
  }, [
5796
5833
  !s.ready && !s.error ? (c(), u("div", Ta, [
5797
- s.isEmbedded ? b("", !0) : (c(), u("button", {
5834
+ s.isEmbedded ? w("", !0) : (c(), u("button", {
5798
5835
  key: 0,
5799
5836
  type: "button",
5800
5837
  class: "wm-loading__close",
@@ -5897,13 +5934,13 @@ function Pa(e, t, n, i, r, s) {
5897
5934
  items: s.suggestions,
5898
5935
  onSelect: s.onSuggestion
5899
5936
  }, null, 8, ["items", "onSelect"]))
5900
- ], 512)) : b("", !0),
5937
+ ], 512)) : w("", !0),
5901
5938
  s.actionInFlight ? (c(), u("div", Na, [
5902
5939
  t[8] || (t[8] = o("span", {
5903
5940
  class: "wm-actionWait__spinner",
5904
5941
  "aria-hidden": "true"
5905
5942
  }, null, -1)),
5906
- o("span", Ua, v(s.t("action.inProgress", {
5943
+ o("span", Fa, v(s.t("action.inProgress", {
5907
5944
  name: s.actionInFlightName
5908
5945
  })), 1)
5909
5946
  ])) : (c(), R(q, {
@@ -5930,16 +5967,16 @@ function Pa(e, t, n, i, r, s) {
5930
5967
  onSoundToggle: e.onSoundToggle,
5931
5968
  onBrowserNotifToggle: e.onBrowserNotifToggle,
5932
5969
  onAction: s.onMoreAction
5933
- }, null, 8, ["can-rename", "can-export", "sound-enabled", "browser-notif-enabled", "status-url", "help-url", "onSoundToggle", "onBrowserNotifToggle", "onAction"])) : b("", !0),
5970
+ }, null, 8, ["can-rename", "can-export", "sound-enabled", "browser-notif-enabled", "status-url", "help-url", "onSoundToggle", "onBrowserNotifToggle", "onAction"])) : w("", !0),
5934
5971
  r.renameDialogOpen && s.currentConv && !s.currentConv._draft ? (c(), R(P, {
5935
5972
  key: 1,
5936
5973
  "initial-value": s.currentConv.name || "",
5937
5974
  title: s.t("rename.dialogTitle"),
5938
5975
  onClose: t[3] || (t[3] = (N) => r.renameDialogOpen = !1),
5939
5976
  onSubmit: s.onRenameSubmit
5940
- }, null, 8, ["initial-value", "title", "onSubmit"])) : b("", !0),
5941
- r.pendingAttachments.length ? (c(), u("div", Fa, [
5942
- (c(!0), u(I, null, F(r.pendingAttachments, (N, H) => (c(), u("div", {
5977
+ }, null, 8, ["initial-value", "title", "onSubmit"])) : w("", !0),
5978
+ r.pendingAttachments.length ? (c(), u("div", Ua, [
5979
+ (c(!0), u(I, null, U(r.pendingAttachments, (N, H) => (c(), u("div", {
5943
5980
  key: H,
5944
5981
  class: "wm-attached__chip"
5945
5982
  }, [
@@ -5977,7 +6014,7 @@ function Pa(e, t, n, i, r, s) {
5977
6014
  ], -1)
5978
6015
  ])], 8, ja)
5979
6016
  ]))), 128))
5980
- ])) : b("", !0)
6017
+ ])) : w("", !0)
5981
6018
  ], 64)) : (c(), R(p, {
5982
6019
  key: 1,
5983
6020
  "welcome-message": s.widgetWelcomeMessage,
@@ -6003,12 +6040,12 @@ function Pa(e, t, n, i, r, s) {
6003
6040
  onSoundToggle: e.onSoundToggle,
6004
6041
  onBrowserNotifToggle: e.onBrowserNotifToggle,
6005
6042
  onAction: s.onMoreAction
6006
- }, null, 8, ["sound-enabled", "browser-notif-enabled", "status-url", "help-url", "onSoundToggle", "onBrowserNotifToggle", "onAction"])) : b("", !0)
6043
+ }, null, 8, ["sound-enabled", "browser-notif-enabled", "status-url", "help-url", "onSoundToggle", "onBrowserNotifToggle", "onAction"])) : w("", !0)
6007
6044
  ], 64))
6008
- ], 6)) : b("", !0)
6045
+ ], 6)) : w("", !0)
6009
6046
  ], 2);
6010
6047
  }
6011
- const za = /* @__PURE__ */ B(Ma, [["render", Pa], ["__scopeId", "data-v-ab81ed67"]]), qa = "0.4.12";
6048
+ const za = /* @__PURE__ */ B(Ma, [["render", Pa], ["__scopeId", "data-v-69c8f416"]]), qa = "0.4.13";
6012
6049
  export {
6013
6050
  le as AIAvatar,
6014
6051
  fe as AVATAR_COLORS,
@@ -6027,8 +6064,8 @@ export {
6027
6064
  ji as FormCard,
6028
6065
  cn as Header,
6029
6066
  Be as HumanAvatar,
6030
- Ft as Launcher,
6031
- be as MEDIA_RECORDER_SUPPORTED,
6067
+ Ut as Launcher,
6068
+ we as MEDIA_RECORDER_SUPPORTED,
6032
6069
  Lr as MessageList,
6033
6070
  za as Messenger,
6034
6071
  ha as MoreMenu,