@_solaris/messenger-widget 0.6.9 → 0.6.11

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 We, openBlock as c, createElementBlock as d, normalizeStyle as F, normalizeClass as R, toDisplayString as v, resolveComponent as P, createVNode as K, Transition as Ae, withCtx as Se, Fragment as E, renderList as N, withKeys as _e, withModifiers as G, createElementVNode as l, createCommentVNode as b, createBlock as B, resolveDynamicComponent as Te, mergeProps as je, withDirectives as $, vModelText as ee, createTextVNode as Me, renderSlot as $e, vModelCheckbox as Ge, vModelSelect as Ye, markRaw as Ie } from "vue";
1
+ import { reactive as We, openBlock as c, createElementBlock as d, normalizeStyle as N, normalizeClass as x, toDisplayString as v, resolveComponent as P, createVNode as K, Transition as Ae, withCtx as Se, Fragment as I, renderList as F, withKeys as _e, withModifiers as G, createElementVNode as l, createCommentVNode as b, createBlock as B, resolveDynamicComponent as Te, mergeProps as je, withDirectives as $, vModelText as ee, createTextVNode as Me, renderSlot as $e, vModelCheckbox as Ge, vModelSelect as Ye, markRaw as Ee } from "vue";
2
2
  const Je = [
3
3
  "connected",
4
4
  "message",
@@ -43,8 +43,8 @@ function tt(e) {
43
43
  p && p.forEach((L) => {
44
44
  try {
45
45
  L(g);
46
- } catch (O) {
47
- console.error("[transport] listener", u, O);
46
+ } catch (R) {
47
+ console.error("[transport] listener", u, R);
48
48
  }
49
49
  });
50
50
  }
@@ -72,10 +72,10 @@ function tt(e) {
72
72
  body: p !== void 0 ? JSON.stringify(p) : void 0
73
73
  });
74
74
  if (!L.ok) {
75
- const O = await o(L), V = new Error(
76
- `HTTP ${L.status} ${u} ${g} :: ${(O == null ? void 0 : O.error) || L.statusText}`
75
+ const R = await o(L), V = new Error(
76
+ `HTTP ${L.status} ${u} ${g} :: ${(R == null ? void 0 : R.error) || L.statusText}`
77
77
  );
78
- throw V.status = L.status, V.body = O, V;
78
+ throw V.status = L.status, V.body = R, V;
79
79
  }
80
80
  return L.status === 204 ? null : L.json();
81
81
  }
@@ -119,7 +119,7 @@ function tt(e) {
119
119
  }
120
120
  const p = await g.json();
121
121
  t.userId = p.external_id;
122
- const [L, O] = await Promise.all([
122
+ const [L, R] = await Promise.all([
123
123
  fetch(
124
124
  `${t.baseUrl}/widgets/${encodeURIComponent(t.widgetId)}/config`,
125
125
  { credentials: "include" }
@@ -133,7 +133,7 @@ function tt(e) {
133
133
  return W.json();
134
134
  }),
135
135
  a("GET", "/customers/me")
136
- ]), V = { config: L, customer: (O == null ? void 0 : O.customer) ?? null };
136
+ ]), V = { config: L, customer: (R == null ? void 0 : R.customer) ?? null };
137
137
  return t.lastBootstrap = V, await k(), typeof document < "u" && (t.visibilityHandler = _, document.addEventListener(
138
138
  "visibilitychange",
139
139
  t.visibilityHandler
@@ -141,7 +141,7 @@ function tt(e) {
141
141
  }
142
142
  async function k() {
143
143
  try {
144
- const u = await I();
144
+ const u = await E();
145
145
  t.lastActivityAt = u.reduce((g, p) => {
146
146
  const L = p == null ? void 0 : p.last_message_at;
147
147
  return L && (!g || L > g) ? L : g;
@@ -158,7 +158,7 @@ function tt(e) {
158
158
  const g = await a("PATCH", "/customers/me", u);
159
159
  return (g == null ? void 0 : g.customer) ?? null;
160
160
  }
161
- async function I() {
161
+ async function E() {
162
162
  const u = await a("GET", "/conversations");
163
163
  return (u == null ? void 0 : u.conversations) ?? [];
164
164
  }
@@ -185,7 +185,7 @@ function tt(e) {
185
185
  { message_id: g }
186
186
  );
187
187
  }
188
- async function x(u, g = {}) {
188
+ async function O(u, g = {}) {
189
189
  const p = new URLSearchParams();
190
190
  g.before && p.set("before", g.before), g.since && p.set("since", g.since), g.limit && p.set("limit", String(g.limit));
191
191
  const L = p.toString() ? `?${p.toString()}` : "";
@@ -217,11 +217,11 @@ function tt(e) {
217
217
  );
218
218
  }
219
219
  async function ie(u) {
220
- const g = u.name || "attachment", p = u.type || "application/octet-stream", L = u.size || 0, O = await a("POST", "/attachments", {
220
+ const g = u.name || "attachment", p = u.type || "application/octet-stream", L = u.size || 0, R = await a("POST", "/attachments", {
221
221
  mime_type: p,
222
222
  size_bytes: L,
223
223
  name: g
224
- }), V = await fetch(O.upload_url, {
224
+ }), V = await fetch(R.upload_url, {
225
225
  method: "PUT",
226
226
  headers: { "Content-Type": p },
227
227
  body: u
@@ -230,7 +230,7 @@ function tt(e) {
230
230
  throw new Error(`HTTP ${V.status} PUT signed upload`);
231
231
  return {
232
232
  type: st(p),
233
- path: O.path,
233
+ path: R.path,
234
234
  mime_type: p,
235
235
  size_bytes: L
236
236
  };
@@ -281,8 +281,8 @@ function tt(e) {
281
281
  }
282
282
  async function pe() {
283
283
  try {
284
- const u = await I(), g = u.reduce((L, O) => {
285
- const V = O == null ? void 0 : O.last_message_at;
284
+ const u = await E(), g = u.reduce((L, R) => {
285
+ const V = R == null ? void 0 : R.last_message_at;
286
286
  return V && (!L || V > L) ? V : L;
287
287
  }, null);
288
288
  g && (!t.lastActivityAt || g > t.lastActivityAt) && (t.lastActivityAt = g, r("activity", { conversations: u, latestAt: g }), te());
@@ -340,12 +340,12 @@ function tt(e) {
340
340
  // REST
341
341
  getCustomer: y,
342
342
  patchCustomer: T,
343
- listConversations: I,
343
+ listConversations: E,
344
344
  createConversation: S,
345
345
  getConversation: z,
346
346
  patchConversation: M,
347
347
  markConversationRead: D,
348
- listMessages: x,
348
+ listMessages: O,
349
349
  postMessage: q,
350
350
  postCallback: J,
351
351
  uploadAttachment: ie,
@@ -532,9 +532,9 @@ function it(e) {
532
532
  before: w,
533
533
  limit: o
534
534
  }), u = (C == null ? void 0 : C.messages) ?? [], g = t.messagesByConv[h] || [], p = /* @__PURE__ */ new Set();
535
- for (const O of g)
536
- (O == null ? void 0 : O.id) != null && p.add(`id:${String(O.id)}`), O != null && O.client_msg_id && p.add(`c:${O.client_msg_id}`);
537
- const L = u.filter((O) => !((O == null ? void 0 : O.id) != null && p.has(`id:${String(O.id)}`) || O != null && O.client_msg_id && p.has(`c:${O.client_msg_id}`)));
535
+ for (const R of g)
536
+ (R == null ? void 0 : R.id) != null && p.add(`id:${String(R.id)}`), R != null && R.client_msg_id && p.add(`c:${R.client_msg_id}`);
537
+ const L = u.filter((R) => !((R == null ? void 0 : R.id) != null && p.has(`id:${String(R.id)}`) || R != null && R.client_msg_id && p.has(`c:${R.client_msg_id}`)));
538
538
  t.messagesByConv[h] = [...L, ...g], y(h, {
539
539
  nextCursor: (C == null ? void 0 : C.next_cursor) ?? null,
540
540
  loading: !1,
@@ -552,7 +552,7 @@ function it(e) {
552
552
  const _ = await e.patchConversation(h, m), w = t.conversations.findIndex((A) => A.id === h);
553
553
  w !== -1 && (t.conversations[w] = _);
554
554
  }
555
- async function I(h) {
555
+ async function E(h) {
556
556
  if (!h) return [];
557
557
  const m = t.messagesByConv[h] || [];
558
558
  let _ = "";
@@ -618,8 +618,8 @@ function it(e) {
618
618
  ...C ? { attachments: _ } : {},
619
619
  ...w && typeof w == "object" ? { metadata: w } : {}
620
620
  });
621
- } catch (O) {
622
- console.error("[store] send failed", O), oe(h, u, {
621
+ } catch (R) {
622
+ console.error("[store] send failed", R), oe(h, u, {
623
623
  _failed: !0,
624
624
  _pending: !1
625
625
  });
@@ -634,7 +634,7 @@ function it(e) {
634
634
  }
635
635
  }
636
636
  const D = /* @__PURE__ */ new Map();
637
- async function x(h) {
637
+ async function O(h) {
638
638
  if (!h) return null;
639
639
  const m = D.get(h);
640
640
  if (m != null && m.url) {
@@ -774,12 +774,12 @@ function it(e) {
774
774
  createConversation: a,
775
775
  openConversation: f,
776
776
  loadMore: k,
777
- fetchSinceLast: I,
777
+ fetchSinceLast: E,
778
778
  patchConversation: T,
779
779
  markConversationRead: S,
780
780
  send: z,
781
781
  clickCallback: M,
782
- signAttachment: x,
782
+ signAttachment: O,
783
783
  submitFeedback: q,
784
784
  getActionInFlight: ie,
785
785
  getLatestSuggestions: ae,
@@ -872,7 +872,7 @@ const at = `
872
872
  function ut(e) {
873
873
  return typeof e != "string" || !e || e.length > 64 ? !1 : ct.test(e) || dt.test(e) || lt.test(e);
874
874
  }
875
- function Ee(e) {
875
+ function Ie(e) {
876
876
  if (typeof e != "string" || !e || e.length > 2048 || /["'()\\;\s<>]/.test(e)) return null;
877
877
  let t;
878
878
  try {
@@ -1278,10 +1278,10 @@ function _t(e) {
1278
1278
  if (!S) break;
1279
1279
  y.push(S[1]), r++;
1280
1280
  }
1281
- const T = y.map((S) => `<li>${de(S)}</li>`).join(""), I = k !== 1 ? ` start="${k}"` : "";
1281
+ const T = y.map((S) => `<li>${de(S)}</li>`).join(""), E = k !== 1 ? ` start="${k}"` : "";
1282
1282
  s.push({
1283
1283
  type: "block",
1284
- html: `<ol class="wm-md-ol"${I}>${T}</ol>`
1284
+ html: `<ol class="wm-md-ol"${E}>${T}</ol>`
1285
1285
  });
1286
1286
  continue;
1287
1287
  }
@@ -1840,8 +1840,8 @@ const U = (e, t) => {
1840
1840
  }, Tt = ["src", "alt"];
1841
1841
  function Mt(e, t, s, r, i, n) {
1842
1842
  return c(), d("div", {
1843
- class: R(["wm-huav", { "wm-huav--tail": s.tail }]),
1844
- style: F({
1843
+ class: x(["wm-huav", { "wm-huav--tail": s.tail }]),
1844
+ style: N({
1845
1845
  width: s.size + "px",
1846
1846
  height: s.size + "px",
1847
1847
  "--wm-avr": Math.round(s.size * 0.32) + "px",
@@ -1854,7 +1854,7 @@ function Mt(e, t, s, r, i, n) {
1854
1854
  alt: s.name || ""
1855
1855
  }, null, 8, Tt)) : (c(), d("span", {
1856
1856
  key: 1,
1857
- style: F({ fontSize: s.size * 0.36 + "px" })
1857
+ style: N({ fontSize: s.size * 0.36 + "px" })
1858
1858
  }, v(n.initials), 5))
1859
1859
  ], 6);
1860
1860
  }
@@ -1884,7 +1884,7 @@ const ve = /* @__PURE__ */ U(St, [["render", Mt], ["__scopeId", "data-v-14e10c0d
1884
1884
  return this.peeks.slice(0, xt).reverse();
1885
1885
  }
1886
1886
  }
1887
- }, Rt = ["aria-label", "onClick", "onKeydown"], Lt = ["aria-label", "onClick"], It = { class: "wm-peek__avatar" }, Et = ["aria-label"], Bt = { class: "wm-peek__body" }, Pt = { class: "wm-peek__head" }, Ut = { class: "wm-peek__name" }, Dt = { class: "wm-peek__action" }, Nt = { class: "wm-peek__text" }, Ft = ["onClick"], Ht = ["aria-label"], jt = ["aria-label"];
1887
+ }, Rt = ["aria-label", "onClick", "onKeydown"], Lt = ["aria-label", "onClick"], Et = { class: "wm-peek__avatar" }, It = ["aria-label"], Bt = { class: "wm-peek__body" }, Pt = { class: "wm-peek__head" }, Ut = { class: "wm-peek__name" }, Dt = { class: "wm-peek__action" }, Ft = { class: "wm-peek__text" }, Nt = ["onClick"], Ht = ["aria-label"], jt = ["aria-label"];
1888
1888
  function zt(e, t, s, r, i, n) {
1889
1889
  const a = P("HumanAvatar");
1890
1890
  return c(), d("div", {
@@ -1898,12 +1898,12 @@ function zt(e, t, s, r, i, n) {
1898
1898
  default: Se(() => [
1899
1899
  n.visiblePeeks.length ? (c(), d("div", {
1900
1900
  key: 0,
1901
- class: R(["wm-peekStack", { "wm-peekStack--multi": n.visiblePeeks.length > 1 }])
1901
+ class: x(["wm-peekStack", { "wm-peekStack--multi": n.visiblePeeks.length > 1 }])
1902
1902
  }, [
1903
- (c(!0), d(E, null, N(n.visiblePeeks, (o, f) => (c(), d("div", {
1903
+ (c(!0), d(I, null, F(n.visiblePeeks, (o, f) => (c(), d("div", {
1904
1904
  key: o.convId,
1905
1905
  class: "wm-peek",
1906
- style: F({
1906
+ style: N({
1907
1907
  "--depth": n.visiblePeeks.length - 1 - f,
1908
1908
  zIndex: f + 1
1909
1909
  }),
@@ -1938,7 +1938,7 @@ function zt(e, t, s, r, i, n) {
1938
1938
  l("path", { d: "M18 6L6 18M6 6l12 12" })
1939
1939
  ], -1)
1940
1940
  ])], 8, Lt),
1941
- l("div", It, [
1941
+ l("div", Et, [
1942
1942
  K(a, {
1943
1943
  name: o.senderName,
1944
1944
  "avatar-url": o.senderAvatarUrl,
@@ -1948,20 +1948,20 @@ function zt(e, t, s, r, i, n) {
1948
1948
  key: 0,
1949
1949
  class: "wm-peek__avatarBadge",
1950
1950
  "aria-label": n.t("launcher.unreadMessages", { count: o.count })
1951
- }, v(o.count > 9 ? "9+" : o.count), 9, Et)) : b("", !0)
1951
+ }, v(o.count > 9 ? "9+" : o.count), 9, It)) : b("", !0)
1952
1952
  ]),
1953
1953
  l("div", Bt, [
1954
1954
  l("div", Pt, [
1955
1955
  l("span", Ut, v(o.senderName || n.t("common.agent")), 1),
1956
1956
  l("span", Dt, v(n.t("launcher.repliedToYou")), 1)
1957
1957
  ]),
1958
- l("p", Nt, v(o.preview), 1)
1958
+ l("p", Ft, v(o.preview), 1)
1959
1959
  ]),
1960
1960
  l("button", {
1961
1961
  type: "button",
1962
1962
  class: "wm-peek__open",
1963
1963
  onClick: G((k) => e.$emit("open", o.convId), ["stop"])
1964
- }, v(n.t("common.open")), 9, Ft)
1964
+ }, v(n.t("common.open")), 9, Nt)
1965
1965
  ], 44, Rt))), 128))
1966
1966
  ], 2)) : b("", !0)
1967
1967
  ]),
@@ -2033,8 +2033,8 @@ const qt = /* @__PURE__ */ U(Ot, [["render", zt], ["__scopeId", "data-v-d81459bc
2033
2033
  }, Wt = ["src", "alt"], $t = ["width", "height"];
2034
2034
  function Gt(e, t, s, r, i, n) {
2035
2035
  return c(), d("div", {
2036
- class: R(["wm-aiav", { "wm-aiav--tail": s.tail }]),
2037
- style: F({
2036
+ class: x(["wm-aiav", { "wm-aiav--tail": s.tail }]),
2037
+ style: N({
2038
2038
  width: s.size + "px",
2039
2039
  height: s.size + "px",
2040
2040
  "--wm-avr": s.size * 0.32 + "px"
@@ -2042,12 +2042,12 @@ function Gt(e, t, s, r, i, n) {
2042
2042
  }, [
2043
2043
  s.pulse ? (c(), d("div", Kt)) : b("", !0),
2044
2044
  l("div", {
2045
- class: R(["wm-aiav__inner", {
2045
+ class: x(["wm-aiav__inner", {
2046
2046
  "wm-aiav__inner--glow": s.pulse,
2047
2047
  "wm-aiav__inner--img": !!s.imageUrl,
2048
2048
  "wm-aiav__inner--initials": !s.imageUrl && !!n.initials
2049
2049
  }]),
2050
- style: F(
2050
+ style: N(
2051
2051
  !s.imageUrl && n.initials ? { background: n.bgColor } : null
2052
2052
  )
2053
2053
  }, [
@@ -2057,7 +2057,7 @@ function Gt(e, t, s, r, i, n) {
2057
2057
  alt: s.name || ""
2058
2058
  }, null, 8, Wt)) : n.initials ? (c(), d("span", {
2059
2059
  key: 1,
2060
- style: F({ fontSize: s.size * 0.36 + "px" })
2060
+ style: N({ fontSize: s.size * 0.36 + "px" })
2061
2061
  }, v(n.initials), 5)) : (c(), d("svg", {
2062
2062
  key: 2,
2063
2063
  width: s.size * 0.5,
@@ -2122,12 +2122,12 @@ function en(e, t, s, r, i, n) {
2122
2122
  return n.visible ? (c(), d("div", Jt, [
2123
2123
  l("div", {
2124
2124
  class: "wm-team__stack",
2125
- style: F({ width: n.stackWidth + "px" })
2125
+ style: N({ width: n.stackWidth + "px" })
2126
2126
  }, [
2127
- (c(!0), d(E, null, N(s.members.slice(0, 3), (a, o) => (c(), d("div", {
2127
+ (c(!0), d(I, null, F(s.members.slice(0, 3), (a, o) => (c(), d("div", {
2128
2128
  key: o,
2129
2129
  class: "wm-team__pill",
2130
- style: F({
2130
+ style: N({
2131
2131
  left: o * 13 + "px",
2132
2132
  zIndex: 3 - o,
2133
2133
  background: n.colorFor(a)
@@ -2213,7 +2213,7 @@ function fn(e, t, s, r, i, n) {
2213
2213
  l("path", { d: "M19 12H5M12 5l-7 7 7 7" })
2214
2214
  ], -1)
2215
2215
  ])], 8, rn)) : (c(), d("div", an)),
2216
- s.showIdentity ? (c(), d(E, { key: 2 }, [
2216
+ s.showIdentity ? (c(), d(I, { key: 2 }, [
2217
2217
  l("div", on, [
2218
2218
  K(a, {
2219
2219
  size: 30,
@@ -2234,7 +2234,7 @@ function fn(e, t, s, r, i, n) {
2234
2234
  s.showMore ? (c(), d("button", {
2235
2235
  key: 0,
2236
2236
  type: "button",
2237
- class: R(["wm-header__icon", { "wm-header__icon--active": s.moreActive }]),
2237
+ class: x(["wm-header__icon", { "wm-header__icon--active": s.moreActive }]),
2238
2238
  "aria-label": n.t("header.moreOptions"),
2239
2239
  title: n.t("header.moreOptions"),
2240
2240
  onClick: t[1] || (t[1] = (f) => e.$emit("more"))
@@ -2288,7 +2288,7 @@ function fn(e, t, s, r, i, n) {
2288
2288
  ])
2289
2289
  ]);
2290
2290
  }
2291
- const _n = /* @__PURE__ */ U(nn, [["render", fn], ["__scopeId", "data-v-7af4c118"]]), Ne = {
2291
+ const _n = /* @__PURE__ */ U(nn, [["render", fn], ["__scopeId", "data-v-7af4c118"]]), Fe = {
2292
2292
  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",
2293
2293
  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",
2294
2294
  status: "M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z",
@@ -2358,7 +2358,7 @@ const _n = /* @__PURE__ */ U(nn, [["render", fn], ["__scopeId", "data-v-7af4c118
2358
2358
  // safety check as the quick-link icons (cf. safeIconUrl) so a
2359
2359
  // malformed config can't inject CSS into the background declaration.
2360
2360
  safeCoverUrl() {
2361
- return Ee(this.coverImageUrl);
2361
+ return Ie(this.coverImageUrl);
2362
2362
  },
2363
2363
  hasCover() {
2364
2364
  return !!this.safeCoverUrl;
@@ -2409,7 +2409,7 @@ const _n = /* @__PURE__ */ U(nn, [["render", fn], ["__scopeId", "data-v-7af4c118
2409
2409
  return new Promise((t) => window.setTimeout(t, e));
2410
2410
  },
2411
2411
  iconPath(e) {
2412
- return Ne[e] || Ne.link;
2412
+ return Fe[e] || Fe.link;
2413
2413
  },
2414
2414
  // True when activating the link opens an external destination
2415
2415
  // (full URL or relative path) — anchor links (`#…`, which route
@@ -2423,7 +2423,7 @@ const _n = /* @__PURE__ */ U(nn, [["render", fn], ["__scopeId", "data-v-7af4c118
2423
2423
  // on the masked-glyph span and as the source of `--icon-url`
2424
2424
  // (cf. iconUrlStyle).
2425
2425
  safeIconUrl(e) {
2426
- return Ee(e == null ? void 0 : e.icon_url);
2426
+ return Ie(e == null ? void 0 : e.icon_url);
2427
2427
  },
2428
2428
  // Inline style exposing the link's icon_url as a CSS custom
2429
2429
  // property — only when the URL passes the safety gate, so a
@@ -2508,10 +2508,10 @@ const _n = /* @__PURE__ */ U(nn, [["render", fn], ["__scopeId", "data-v-7af4c118
2508
2508
  }, Sn = ["aria-label"], Tn = { class: "wm-onb__alert-body" }, Mn = { class: "wm-onb__alert-title" }, xn = { class: "wm-onb__alert-preview" }, On = {
2509
2509
  key: 0,
2510
2510
  class: "wm-onb__alert-sender"
2511
- }, Rn = ["innerHTML"], Ln = { class: "wm-onb__alert-meta" }, In = {
2511
+ }, Rn = ["innerHTML"], Ln = { class: "wm-onb__alert-meta" }, En = {
2512
2512
  key: 0,
2513
2513
  class: "wm-onb__alert-time"
2514
- }, En = { class: "wm-onb__alert-resume" }, Bn = { class: "wm-onb__actions" }, Pn = ["placeholder", "disabled", "aria-label"], Un = ["disabled", "aria-label"], Dn = {
2514
+ }, In = { class: "wm-onb__alert-resume" }, Bn = { class: "wm-onb__actions" }, Pn = ["placeholder", "disabled", "aria-label"], Un = ["disabled", "aria-label"], Dn = {
2515
2515
  key: 0,
2516
2516
  width: "16",
2517
2517
  height: "16",
@@ -2522,11 +2522,11 @@ const _n = /* @__PURE__ */ U(nn, [["render", fn], ["__scopeId", "data-v-7af4c118
2522
2522
  "stroke-linecap": "round",
2523
2523
  "stroke-linejoin": "round",
2524
2524
  "aria-hidden": "true"
2525
- }, Nn = {
2525
+ }, Fn = {
2526
2526
  key: 1,
2527
2527
  class: "wm-onb__starter-spinner",
2528
2528
  "aria-hidden": "true"
2529
- }, Fn = ["onClick"], Hn = { class: "wm-onb__btn-icon" }, jn = ["aria-label"], zn = {
2529
+ }, Nn = ["onClick"], Hn = { class: "wm-onb__btn-icon" }, jn = ["aria-label"], zn = {
2530
2530
  key: 1,
2531
2531
  width: "18",
2532
2532
  height: "18",
@@ -2563,18 +2563,18 @@ const _n = /* @__PURE__ */ U(nn, [["render", fn], ["__scopeId", "data-v-7af4c118
2563
2563
  function Xn(e, t, s, r, i, n) {
2564
2564
  const a = P("AIAvatar");
2565
2565
  return c(), d("div", {
2566
- class: R(["wm-onb", {
2566
+ class: x(["wm-onb", {
2567
2567
  "wm-onb--launching": i.launchPhase !== "idle",
2568
2568
  "wm-onb--sliding": i.launchPhase === "slide"
2569
2569
  }])
2570
2570
  }, [
2571
2571
  l("div", {
2572
- class: R(["wm-onb__hero", { "wm-onb__hero--cover": n.hasCover }])
2572
+ class: x(["wm-onb__hero", { "wm-onb__hero--cover": n.hasCover }])
2573
2573
  }, [
2574
2574
  n.hasCover ? (c(), d("div", {
2575
2575
  key: 0,
2576
2576
  class: "wm-onb__cover",
2577
- style: F(n.coverStyle),
2577
+ style: N(n.coverStyle),
2578
2578
  role: "img",
2579
2579
  "aria-label": n.heroTitle
2580
2580
  }, null, 12, vn)) : b("", !0),
@@ -2615,14 +2615,14 @@ function Xn(e, t, s, r, i, n) {
2615
2615
  ])
2616
2616
  ], 2),
2617
2617
  n.unreadThreads.length ? (c(), d("div", kn, [
2618
- (c(!0), d(E, null, N(n.unreadThreads, (o) => (c(), d("button", {
2618
+ (c(!0), d(I, null, F(n.unreadThreads, (o) => (c(), d("button", {
2619
2619
  key: o.id,
2620
2620
  type: "button",
2621
2621
  class: "wm-onb__alert",
2622
2622
  onClick: (f) => e.$emit("resume", o)
2623
2623
  }, [
2624
2624
  l("span", {
2625
- class: R(["wm-onb__alert-avatar", n.avatarWrapperClass(o)])
2625
+ class: x(["wm-onb__alert-avatar", n.avatarWrapperClass(o)])
2626
2626
  }, [
2627
2627
  n.isDefaultAvatar(o) ? (c(), d("span", An, [...t[4] || (t[4] = [
2628
2628
  l("svg", {
@@ -2657,15 +2657,15 @@ function Xn(e, t, s, r, i, n) {
2657
2657
  ])
2658
2658
  ]),
2659
2659
  l("span", Ln, [
2660
- n.formatTs(o._ts) ? (c(), d("span", In, v(n.formatTs(o._ts)), 1)) : b("", !0),
2661
- l("span", En, v(n.t("onboarding.resume")), 1)
2660
+ n.formatTs(o._ts) ? (c(), d("span", En, v(n.formatTs(o._ts)), 1)) : b("", !0),
2661
+ l("span", In, v(n.t("onboarding.resume")), 1)
2662
2662
  ])
2663
2663
  ], 8, Cn))), 128))
2664
2664
  ])) : b("", !0),
2665
2665
  l("div", Bn, [
2666
2666
  l("form", {
2667
2667
  ref: "starterForm",
2668
- class: R(["wm-onb__starter", {
2668
+ class: x(["wm-onb__starter", {
2669
2669
  "is-active": !!i.starterText.trim(),
2670
2670
  "wm-onb__starter--toBottom": i.launchPhase === "slide"
2671
2671
  }]),
@@ -2685,16 +2685,16 @@ function Xn(e, t, s, r, i, n) {
2685
2685
  ]),
2686
2686
  l("button", {
2687
2687
  type: "submit",
2688
- class: R(["wm-onb__starter-send", { "is-empty": !n.canStart }]),
2688
+ class: x(["wm-onb__starter-send", { "is-empty": !n.canStart }]),
2689
2689
  disabled: s.busy || !n.canStart,
2690
2690
  "aria-label": n.t("composer.send")
2691
2691
  }, [
2692
- s.busy ? (c(), d("span", Nn)) : (c(), d("svg", Dn, [...t[5] || (t[5] = [
2692
+ s.busy ? (c(), d("span", Fn)) : (c(), d("svg", Dn, [...t[5] || (t[5] = [
2693
2693
  l("path", { d: "M22 2L11 13M22 2l-7 20-4-9-9-4 20-7z" }, null, -1)
2694
2694
  ])]))
2695
2695
  ], 10, Un)
2696
2696
  ], 34),
2697
- (c(!0), d(E, null, N(s.quickLinks, (o, f) => (c(), d("button", {
2697
+ (c(!0), d(I, null, F(s.quickLinks, (o, f) => (c(), d("button", {
2698
2698
  key: "ql-" + f,
2699
2699
  type: "button",
2700
2700
  class: "wm-onb__btn",
@@ -2704,7 +2704,7 @@ function Xn(e, t, s, r, i, n) {
2704
2704
  n.safeIconUrl(o) ? (c(), d("span", {
2705
2705
  key: 0,
2706
2706
  class: "wm-onb__btn-iconImg",
2707
- style: F(n.iconUrlStyle(o)),
2707
+ style: N(n.iconUrlStyle(o)),
2708
2708
  role: "img",
2709
2709
  "aria-label": o.label || ""
2710
2710
  }, null, 12, jn)) : (c(), d("svg", zn, [
@@ -2717,7 +2717,7 @@ function Xn(e, t, s, r, i, n) {
2717
2717
  n.isExternalLink(o) ? (c(), d("svg", Kn, [...t[6] || (t[6] = [
2718
2718
  l("path", { d: "M7 17L17 7M9 7h8v8" }, null, -1)
2719
2719
  ])])) : b("", !0)
2720
- ], 8, Fn))), 128)),
2720
+ ], 8, Nn))), 128)),
2721
2721
  s.openThreads.length ? (c(), d("button", {
2722
2722
  key: 0,
2723
2723
  type: "button",
@@ -2751,7 +2751,7 @@ function Xn(e, t, s, r, i, n) {
2751
2751
  ])
2752
2752
  ], 2);
2753
2753
  }
2754
- const Qn = /* @__PURE__ */ U(gn, [["render", Xn], ["__scopeId", "data-v-9618b769"]]), Zn = {
2754
+ const Qn = /* @__PURE__ */ U(gn, [["render", Xn], ["__scopeId", "data-v-aafac3f0"]]), Zn = {
2755
2755
  name: "WmHistory",
2756
2756
  components: { AIAvatar: me, HumanAvatar: ve },
2757
2757
  inject: {
@@ -2858,14 +2858,14 @@ function ms(e, t, s, r, i, n) {
2858
2858
  ])
2859
2859
  ]),
2860
2860
  l("div", ss, [
2861
- (c(!0), d(E, null, N(n.filteredThreads, (a) => (c(), d("button", {
2861
+ (c(!0), d(I, null, F(n.filteredThreads, (a) => (c(), d("button", {
2862
2862
  key: a.id,
2863
2863
  type: "button",
2864
- class: R(["wm-hist__thread", { "wm-hist__thread--unread": a.unread }]),
2864
+ class: x(["wm-hist__thread", { "wm-hist__thread--unread": a.unread }]),
2865
2865
  onClick: (o) => e.$emit("resume", a)
2866
2866
  }, [
2867
2867
  l("span", {
2868
- class: R(["wm-hist__thread-avatar", n.avatarWrapperClass(a)])
2868
+ class: x(["wm-hist__thread-avatar", n.avatarWrapperClass(a)])
2869
2869
  }, [
2870
2870
  n.isDefaultAvatar(a) ? (c(), d("span", is, [...t[2] || (t[2] = [
2871
2871
  l("svg", {
@@ -2983,7 +2983,7 @@ const gs = {
2983
2983
  }, ks = { class: "wm-result__body" }, Cs = { class: "wm-result__label" }, As = { class: "wm-result__detail" };
2984
2984
  function Ss(e, t, s, r, i, n) {
2985
2985
  return c(), d("div", {
2986
- class: R(["wm-result", `wm-result--${s.state}`])
2986
+ class: x(["wm-result", `wm-result--${s.state}`])
2987
2987
  }, [
2988
2988
  l("span", vs, [
2989
2989
  s.state === "success" ? (c(), d("svg", ys, [...t[0] || (t[0] = [
@@ -3015,7 +3015,7 @@ function Ss(e, t, s, r, i, n) {
3015
3015
  ]),
3016
3016
  l("span", ks, [
3017
3017
  l("span", Cs, v(s.label), 1),
3018
- n.detailText ? (c(), d(E, { key: 0 }, [
3018
+ n.detailText ? (c(), d(I, { key: 0 }, [
3019
3019
  t[4] || (t[4] = l("span", {
3020
3020
  class: "wm-result__sep",
3021
3021
  "aria-hidden": "true"
@@ -3041,7 +3041,7 @@ const Ts = /* @__PURE__ */ U(gs, [["render", Ss], ["__scopeId", "data-v-7284acd0
3041
3041
  return Array.isArray((e = this.data) == null ? void 0 : e.fields) ? this.data.fields : [];
3042
3042
  }
3043
3043
  }
3044
- }, xs = { class: "wm-art wm-art--formResponse" }, Os = { class: "wm-art__head" }, Rs = { class: "wm-art__title" }, Ls = { class: "wm-art__badge wm-art__badge--success" }, Is = { class: "wm-art__body" }, Es = { class: "wm-art__fieldLabel" };
3044
+ }, xs = { class: "wm-art wm-art--formResponse" }, Os = { class: "wm-art__head" }, Rs = { class: "wm-art__title" }, Ls = { class: "wm-art__badge wm-art__badge--success" }, Es = { class: "wm-art__body" }, Is = { class: "wm-art__fieldLabel" };
3045
3045
  function Bs(e, t, s, r, i, n) {
3046
3046
  return c(), d("div", xs, [
3047
3047
  l("div", Os, [
@@ -3063,14 +3063,14 @@ function Bs(e, t, s, r, i, n) {
3063
3063
  Me(" " + v(n.t("form.sent")), 1)
3064
3064
  ])
3065
3065
  ]),
3066
- l("div", Is, [
3067
- (c(!0), d(E, null, N(n.fields, (a, o) => (c(), d("div", {
3066
+ l("div", Es, [
3067
+ (c(!0), d(I, null, F(n.fields, (a, o) => (c(), d("div", {
3068
3068
  key: o,
3069
3069
  class: "wm-art__field"
3070
3070
  }, [
3071
- l("div", Es, v(a.label), 1),
3071
+ l("div", Is, v(a.label), 1),
3072
3072
  l("div", {
3073
- class: R([
3073
+ class: x([
3074
3074
  "wm-art__fieldValue",
3075
3075
  { "wm-art__fieldValue--multi": a.multiline }
3076
3076
  ])
@@ -3094,10 +3094,10 @@ const Ps = /* @__PURE__ */ U(Ms, [["render", Bs], ["__scopeId", "data-v-713aecf1
3094
3094
  return !!((e = this.data) != null && e.body) || this.fields.length > 0;
3095
3095
  }
3096
3096
  }
3097
- }, Ds = { class: "wm-art wm-art--infoCard" }, Ns = {
3097
+ }, Ds = { class: "wm-art wm-art--infoCard" }, Fs = {
3098
3098
  key: 0,
3099
3099
  class: "wm-art__image"
3100
- }, Fs = ["src", "alt"], Hs = { class: "wm-art__head" }, js = { class: "wm-art__headMain" }, zs = { class: "wm-art__title" }, qs = {
3100
+ }, Ns = ["src", "alt"], Hs = { class: "wm-art__head" }, js = { class: "wm-art__headMain" }, zs = { class: "wm-art__title" }, qs = {
3101
3101
  key: 0,
3102
3102
  class: "wm-art__subtitle"
3103
3103
  }, Vs = {
@@ -3109,12 +3109,12 @@ const Ps = /* @__PURE__ */ U(Ms, [["render", Bs], ["__scopeId", "data-v-713aecf1
3109
3109
  }, Ws = { class: "wm-art__fieldLabel" };
3110
3110
  function $s(e, t, s, r, i, n) {
3111
3111
  return c(), d("div", Ds, [
3112
- s.data.image_url ? (c(), d("figure", Ns, [
3112
+ s.data.image_url ? (c(), d("figure", Fs, [
3113
3113
  l("img", {
3114
3114
  src: s.data.image_url,
3115
3115
  alt: s.data.title || "",
3116
3116
  loading: "lazy"
3117
- }, null, 8, Fs)
3117
+ }, null, 8, Ns)
3118
3118
  ])) : b("", !0),
3119
3119
  l("div", Hs, [
3120
3120
  l("div", js, [
@@ -3123,7 +3123,7 @@ function $s(e, t, s, r, i, n) {
3123
3123
  ]),
3124
3124
  s.data.badge && s.data.badge.label ? (c(), d("span", {
3125
3125
  key: 0,
3126
- class: R([
3126
+ class: x([
3127
3127
  "wm-art__badge",
3128
3128
  `wm-art__badge--${s.data.badge.tone || "neutral"}`
3129
3129
  ])
@@ -3131,13 +3131,13 @@ function $s(e, t, s, r, i, n) {
3131
3131
  ]),
3132
3132
  n.hasBody ? (c(), d("div", Vs, [
3133
3133
  s.data.body ? (c(), d("div", Ks, v(s.data.body), 1)) : b("", !0),
3134
- n.fields.length ? (c(!0), d(E, { key: 1 }, N(n.fields, (a, o) => (c(), d("div", {
3134
+ n.fields.length ? (c(!0), d(I, { key: 1 }, F(n.fields, (a, o) => (c(), d("div", {
3135
3135
  key: o,
3136
3136
  class: "wm-art__field"
3137
3137
  }, [
3138
3138
  l("div", Ws, v(a.label), 1),
3139
3139
  l("div", {
3140
- class: R([
3140
+ class: x([
3141
3141
  "wm-art__fieldValue",
3142
3142
  { "wm-art__fieldValue--multi": a.multiline }
3143
3143
  ])
@@ -3252,7 +3252,7 @@ function lr(e, t, s, r, i, n) {
3252
3252
  l("span", null, v(s.data.reference), 1)
3253
3253
  ]),
3254
3254
  l("span", {
3255
- class: R([
3255
+ class: x([
3256
3256
  "wm-art__badge",
3257
3257
  "wm-tk__badge",
3258
3258
  `wm-art__badge--${s.data.status.tone || "neutral"}`
@@ -3268,13 +3268,13 @@ function lr(e, t, s, r, i, n) {
3268
3268
  s.data.body ? (c(), d("div", nr, v(s.data.body), 1)) : b("", !0)
3269
3269
  ]),
3270
3270
  n.fields.length ? (c(), d("div", sr, [
3271
- (c(!0), d(E, null, N(n.fields, (a, o) => (c(), d("div", {
3271
+ (c(!0), d(I, null, F(n.fields, (a, o) => (c(), d("div", {
3272
3272
  key: o,
3273
3273
  class: "wm-art__field"
3274
3274
  }, [
3275
3275
  l("div", rr, v(a.label), 1),
3276
3276
  l("div", {
3277
- class: R([
3277
+ class: x([
3278
3278
  "wm-art__fieldValue",
3279
3279
  { "wm-art__fieldValue--multi": a.multiline }
3280
3280
  ])
@@ -3451,7 +3451,7 @@ const mr = /* @__PURE__ */ U(ur, [["render", hr]]), fr = {
3451
3451
  };
3452
3452
  function Ar(e, t, s, r, i, n) {
3453
3453
  return c(), d("div", {
3454
- class: R(["wm-att", ["wm-att--" + (n.kind || "file")]])
3454
+ class: x(["wm-att", ["wm-att--" + (n.kind || "file")]])
3455
3455
  }, [
3456
3456
  n.kind === "image" && i.url ? (c(), d("a", {
3457
3457
  key: 0,
@@ -3524,7 +3524,7 @@ const Sr = /* @__PURE__ */ U(fr, [["render", Ar], ["__scopeId", "data-v-b207a8bd
3524
3524
  }, Mr = ["innerHTML"];
3525
3525
  function xr(e, t, s, r, i, n) {
3526
3526
  return c(), d("div", {
3527
- class: R(["wm-bubble", "wm-bubble--" + s.role])
3527
+ class: x(["wm-bubble", "wm-bubble--" + s.role])
3528
3528
  }, [
3529
3529
  $e(e.$slots, "default", {}, () => [
3530
3530
  l("span", { innerHTML: n.rendered }, null, 8, Mr)
@@ -3532,14 +3532,14 @@ function xr(e, t, s, r, i, n) {
3532
3532
  ], 2);
3533
3533
  }
3534
3534
  const Or = /* @__PURE__ */ U(Tr, [["render", xr], ["__scopeId", "data-v-7ab13147"]]), Rr = { name: "WmTyping" }, Lr = { class: "wm-typing" };
3535
- function Ir(e, t, s, r, i, n) {
3535
+ function Er(e, t, s, r, i, n) {
3536
3536
  return c(), d("div", Lr, [...t[0] || (t[0] = [
3537
3537
  l("span", { style: { "animation-delay": "0s" } }, null, -1),
3538
3538
  l("span", { style: { "animation-delay": "0.2s" } }, null, -1),
3539
3539
  l("span", { style: { "animation-delay": "0.4s" } }, null, -1)
3540
3540
  ])]);
3541
3541
  }
3542
- const Er = /* @__PURE__ */ U(Rr, [["render", Ir], ["__scopeId", "data-v-df2447fd"]]);
3542
+ const Ir = /* @__PURE__ */ U(Rr, [["render", Er], ["__scopeId", "data-v-df2447fd"]]);
3543
3543
  function se(e) {
3544
3544
  return e ? e.client_msg_id || e.id : "";
3545
3545
  }
@@ -3557,7 +3557,7 @@ const Br = {
3557
3557
  AIAvatar: me,
3558
3558
  HumanAvatar: ve,
3559
3559
  Bubble: Or,
3560
- Typing: Er,
3560
+ Typing: Ir,
3561
3561
  ActionResult: Ts,
3562
3562
  AttachmentPreview: Sr,
3563
3563
  ArtifactRenderer: mr
@@ -3719,7 +3719,7 @@ const Br = {
3719
3719
  },
3720
3720
  beforeUnmount() {
3721
3721
  var e;
3722
- (e = this._ro) == null || e.disconnect(), this._measureFrame && cancelAnimationFrame(this._measureFrame), this._pressTimer && clearTimeout(this._pressTimer);
3722
+ (e = this._ro) == null || e.disconnect(), this._measureFrame && cancelAnimationFrame(this._measureFrame), this._pinFrame && cancelAnimationFrame(this._pinFrame), this._pressTimer && clearTimeout(this._pressTimer);
3723
3723
  },
3724
3724
  updated() {
3725
3725
  this.scheduleMeasure();
@@ -3956,9 +3956,9 @@ const Br = {
3956
3956
  // doit garder son arrondi.
3957
3957
  cornersFor(e, t) {
3958
3958
  var ie, ae, X;
3959
- const s = e.items, r = (ie = s[t]) == null ? void 0 : ie.kind, i = (ae = s[t - 1]) == null ? void 0 : ae.kind, n = (X = s[t + 1]) == null ? void 0 : X.kind, a = e.role === "user", o = 14, f = 4, k = i == null ? void 0 : i.bottom, y = n == null ? void 0 : n.top, T = this.widthByKey[this.rowKeyOf(e, t)], I = this.widthByKey[this.rowKeyOf(e, t - 1)], S = this.widthByKey[this.rowKeyOf(e, t + 1)], z = 0.5, M = (Q, oe, Z) => Q != null && T != null ? Q + z >= T : oe === Z || oe === "card" && Z === "bubble";
3960
- let D = o, x = o, q = o, J = o;
3961
- return a ? (k && (x = f), (y || !n) && (q = f), k && M(I, k, r == null ? void 0 : r.top) && (D = f), y && M(S, y, r == null ? void 0 : r.bottom) && (J = f)) : (k && (D = f), (y || !n) && (J = f), k && M(I, k, r == null ? void 0 : r.top) && (x = f), y && M(S, y, r == null ? void 0 : r.bottom) && (q = f)), { tl: D, tr: x, br: q, bl: J };
3959
+ const s = e.items, r = (ie = s[t]) == null ? void 0 : ie.kind, i = (ae = s[t - 1]) == null ? void 0 : ae.kind, n = (X = s[t + 1]) == null ? void 0 : X.kind, a = e.role === "user", o = 14, f = 4, k = i == null ? void 0 : i.bottom, y = n == null ? void 0 : n.top, T = this.widthByKey[this.rowKeyOf(e, t)], E = this.widthByKey[this.rowKeyOf(e, t - 1)], S = this.widthByKey[this.rowKeyOf(e, t + 1)], z = 0.5, M = (Q, oe, Z) => Q != null && T != null ? Q + z >= T : oe === Z || oe === "card" && Z === "bubble";
3960
+ let D = o, O = o, q = o, J = o;
3961
+ return a ? (k && (O = f), (y || !n) && (q = f), k && M(E, k, r == null ? void 0 : r.top) && (D = f), y && M(S, y, r == null ? void 0 : r.bottom) && (J = f)) : (k && (D = f), (y || !n) && (J = f), k && M(E, k, r == null ? void 0 : r.top) && (O = f), y && M(S, y, r == null ? void 0 : r.bottom) && (q = f)), { tl: D, tr: O, br: q, bl: J };
3962
3962
  },
3963
3963
  // Inline column-count for the mosaic grid, capped at 4. Single
3964
3964
  // attachment falls back to the vertical-list layout (null). Two
@@ -4132,6 +4132,23 @@ const Br = {
4132
4132
  const e = this.$refs.scrollEl;
4133
4133
  e && (e.scrollTop = e.scrollHeight), this.showScrollDown = !1;
4134
4134
  },
4135
+ // Colle la liste au bas pendant `duration` ms via rAF. Utilisé quand
4136
+ // un overlay flottant (carte de validation, suggestions…) apparaît ou
4137
+ // disparaît : le `padding-bottom` de `.wm-list` grandit/réduit en
4138
+ // douceur (transition CSS sur `--wm-float-h`) et, en repinçant
4139
+ // `scrollTop = scrollHeight` à chaque frame, les messages remontent
4140
+ // exactement au même rythme — un glissement parfaitement synchrone
4141
+ // avec l'entrée de la carte au lieu d'un saut sec.
4142
+ keepPinnedToBottom(e = 320) {
4143
+ const t = this.$refs.scrollEl;
4144
+ if (!t) return;
4145
+ this._pinFrame && cancelAnimationFrame(this._pinFrame);
4146
+ let s = null;
4147
+ const r = (i) => {
4148
+ s === null && (s = i), t.scrollTop = t.scrollHeight, i - s < e ? this._pinFrame = requestAnimationFrame(r) : this._pinFrame = null;
4149
+ };
4150
+ this._pinFrame = requestAnimationFrame(r), this.showScrollDown = !1;
4151
+ },
4135
4152
  // Variante "user-initiated" du bouton flottant : scroll fluide pour
4136
4153
  // que le geste se voit, contrairement aux restores automatiques qui
4137
4154
  // doivent être instantanés.
@@ -4140,7 +4157,7 @@ const Br = {
4140
4157
  e && (typeof e.scrollTo == "function" ? e.scrollTo({ top: e.scrollHeight, behavior: "smooth" }) : e.scrollTop = e.scrollHeight, this.showScrollDown = !1);
4141
4158
  }
4142
4159
  }
4143
- }, Nr = { class: "wm-list__wrap" }, Fr = {
4160
+ }, Fr = { class: "wm-list__wrap" }, Nr = {
4144
4161
  key: 0,
4145
4162
  class: "wm-list__loadMore",
4146
4163
  role: "status",
@@ -4171,14 +4188,14 @@ const Br = {
4171
4188
  class: "wm-list__row wm-list__row--ai fade-up"
4172
4189
  }, si = { class: "wm-list__avatarSlot" }, ri = ["aria-label", "title"];
4173
4190
  function ii(e, t, s, r, i, n) {
4174
- const a = P("AIAvatar"), o = P("HumanAvatar"), f = P("ActionResult"), k = P("ArtifactRenderer"), y = P("Bubble"), T = P("AttachmentPreview"), I = P("Typing");
4175
- return c(), d("div", Nr, [
4191
+ const a = P("AIAvatar"), o = P("HumanAvatar"), f = P("ActionResult"), k = P("ArtifactRenderer"), y = P("Bubble"), T = P("AttachmentPreview"), E = P("Typing");
4192
+ return c(), d("div", Fr, [
4176
4193
  l("div", {
4177
4194
  ref: "scrollEl",
4178
- class: R(["wm-list", { "wm-list--silent": i.silentFades }]),
4195
+ class: x(["wm-list", { "wm-list--silent": i.silentFades }]),
4179
4196
  onScrollPassive: t[4] || (t[4] = (...S) => n.onScroll && n.onScroll(...S))
4180
4197
  }, [
4181
- s.loadingMore ? (c(), d("div", Fr, [
4198
+ s.loadingMore ? (c(), d("div", Nr, [
4182
4199
  t[6] || (t[6] = l("span", {
4183
4200
  class: "wm-list__loadMore-spinner",
4184
4201
  "aria-hidden": "true"
@@ -4190,7 +4207,7 @@ function ii(e, t, s, r, i, n) {
4190
4207
  l("span", qr, v(s.dateLabel), 1),
4191
4208
  t[8] || (t[8] = l("div", { class: "wm-list__line" }, null, -1))
4192
4209
  ])) : b("", !0),
4193
- (c(!0), d(E, null, N(n.groups, (S, z) => (c(), d(E, {
4210
+ (c(!0), d(I, null, F(n.groups, (S, z) => (c(), d(I, {
4194
4211
  key: S.key
4195
4212
  }, [
4196
4213
  S.key === n.unreadGroupKey ? (c(), d("div", Vr, [
@@ -4200,35 +4217,35 @@ function ii(e, t, s, r, i, n) {
4200
4217
  ])) : b("", !0),
4201
4218
  S.role === "system" || S.items.length ? (c(), d("div", {
4202
4219
  key: 1,
4203
- class: R(["wm-list__group", "wm-list__group--" + S.role])
4220
+ class: x(["wm-list__group", "wm-list__group--" + S.role])
4204
4221
  }, [
4205
4222
  S.role === "system" ? (c(), d("div", Wr, [
4206
4223
  t[11] || (t[11] = l("div", { class: "wm-list__line wm-list__line--strong" }, null, -1)),
4207
4224
  l("span", $r, v(S.systemLabel), 1),
4208
4225
  t[12] || (t[12] = l("div", { class: "wm-list__line wm-list__line--strong" }, null, -1))
4209
- ])) : (c(), d(E, { key: 1 }, [
4210
- (c(!0), d(E, null, N(S.items, (M, D) => (c(), d(E, {
4226
+ ])) : (c(), d(I, { key: 1 }, [
4227
+ (c(!0), d(I, null, F(S.items, (M, D) => (c(), d(I, {
4211
4228
  key: `${n.messageKey(M.message)}-${M.partKey}`
4212
4229
  }, [
4213
4230
  l("div", {
4214
4231
  "data-row-key": `${n.messageKey(M.message)}-${M.partKey}`,
4215
- class: R(["wm-list__row fade-up", [
4232
+ class: x(["wm-list__row fade-up", [
4216
4233
  "wm-list__row--" + S.role,
4217
4234
  {
4218
4235
  "is-pending": M.message._pending,
4219
4236
  "is-failed": M.message._failed
4220
4237
  }
4221
4238
  ]]),
4222
- style: F(n.cornersStyle(S, D)),
4223
- onPointerdown: (x) => n.onPressStart(`${n.messageKey(M.message)}-${M.partKey}`),
4224
- onPointerup: t[0] || (t[0] = (x) => n.onPressEnd()),
4225
- onPointercancel: t[1] || (t[1] = (x) => n.onPressEnd()),
4226
- onPointerleave: t[2] || (t[2] = (x) => n.onPressEnd()),
4239
+ style: N(n.cornersStyle(S, D)),
4240
+ onPointerdown: (O) => n.onPressStart(`${n.messageKey(M.message)}-${M.partKey}`),
4241
+ onPointerup: t[0] || (t[0] = (O) => n.onPressEnd()),
4242
+ onPointercancel: t[1] || (t[1] = (O) => n.onPressEnd()),
4243
+ onPointerleave: t[2] || (t[2] = (O) => n.onPressEnd()),
4227
4244
  onContextmenu: t[3] || (t[3] = G(() => {
4228
4245
  }, ["prevent"]))
4229
4246
  }, [
4230
4247
  S.role !== "user" ? (c(), d("div", Yr, [
4231
- D === S.items.length - 1 ? (c(), d(E, { key: 0 }, [
4248
+ D === S.items.length - 1 ? (c(), d(I, { key: 0 }, [
4232
4249
  S.role === "ai" ? (c(), B(a, {
4233
4250
  key: 0,
4234
4251
  size: 26,
@@ -4262,7 +4279,7 @@ function ii(e, t, s, r, i, n) {
4262
4279
  artifact: n.artifactOf(M.message)
4263
4280
  }, null, 8, ["artifact"])) : (c(), d("div", {
4264
4281
  key: 5,
4265
- class: R(["wm-list__body", {
4282
+ class: x(["wm-list__body", {
4266
4283
  "wm-list__body--mixed": !!M.message.text_md && n.attachmentsOf(M.message).length > 0
4267
4284
  }])
4268
4285
  }, [
@@ -4273,22 +4290,22 @@ function ii(e, t, s, r, i, n) {
4273
4290
  }, null, 8, ["role", "text"])) : b("", !0),
4274
4291
  n.attachmentsOf(M.message).length ? (c(), d("div", {
4275
4292
  key: 1,
4276
- class: R(["wm-list__atts", {
4293
+ class: x(["wm-list__atts", {
4277
4294
  "wm-list__atts--align-end": S.role === "user",
4278
4295
  "wm-list__atts--mosaic": n.attachmentsOf(M.message).length >= 2
4279
4296
  }]),
4280
- style: F(
4297
+ style: N(
4281
4298
  n.mosaicGridStyle(
4282
4299
  n.attachmentsOf(M.message).length
4283
4300
  )
4284
4301
  )
4285
4302
  }, [
4286
- (c(!0), d(E, null, N(n.attachmentsOf(
4303
+ (c(!0), d(I, null, F(n.attachmentsOf(
4287
4304
  M.message
4288
- ), (x, q) => (c(), B(T, {
4305
+ ), (O, q) => (c(), B(T, {
4289
4306
  key: `${n.messageKey(M.message)}-att-${q}`,
4290
- attachment: x,
4291
- style: F(
4307
+ attachment: O,
4308
+ style: N(
4292
4309
  n.mosaicCornerStyle(
4293
4310
  q,
4294
4311
  n.attachmentsOf(M.message).length,
@@ -4301,7 +4318,7 @@ function ii(e, t, s, r, i, n) {
4301
4318
  ], 46, Gr),
4302
4319
  D < S.items.length - 1 && i.pressedItemKey === `${n.messageKey(M.message)}-${M.partKey}` && (S.role !== "user" || n.timeOf(M.message)) ? (c(), d("div", {
4303
4320
  key: 0,
4304
- class: R(["wm-list__meta wm-list__meta--press", { "wm-list__meta--right": S.role === "user" }])
4321
+ class: x(["wm-list__meta wm-list__meta--press", { "wm-list__meta--right": S.role === "user" }])
4305
4322
  }, [
4306
4323
  S.role !== "user" ? (c(), d("span", Jr, v(n.roleLabel(S)), 1)) : b("", !0),
4307
4324
  S.role !== "user" && n.timeOf(M.message) ? (c(), d("span", Xr, "•")) : b("", !0),
@@ -4310,7 +4327,7 @@ function ii(e, t, s, r, i, n) {
4310
4327
  ], 64))), 128)),
4311
4328
  (S.role !== "user" || n.lastTimeOf(S)) && !n.hasTrailingOverlay(S) ? (c(), d("div", {
4312
4329
  key: 0,
4313
- class: R(["wm-list__meta", { "wm-list__meta--right": S.role === "user" }])
4330
+ class: x(["wm-list__meta", { "wm-list__meta--right": S.role === "user" }])
4314
4331
  }, [
4315
4332
  S.role !== "user" ? (c(), d("span", Zr, v(n.roleLabel(S)), 1)) : b("", !0),
4316
4333
  S.role !== "user" && n.lastTimeOf(S) ? (c(), d("span", ei, "•")) : b("", !0),
@@ -4328,7 +4345,7 @@ function ii(e, t, s, r, i, n) {
4328
4345
  "image-url": s.aiAgentAvatarUrl
4329
4346
  }, null, 8, ["name", "image-url"])
4330
4347
  ]),
4331
- K(I)
4348
+ K(E)
4332
4349
  ])) : b("", !0)
4333
4350
  ], 34),
4334
4351
  K(Ae, { name: "wm-scrollDown" }, {
@@ -4360,7 +4377,7 @@ function ii(e, t, s, r, i, n) {
4360
4377
  })
4361
4378
  ]);
4362
4379
  }
4363
- const ai = /* @__PURE__ */ U(Dr, [["render", ii], ["__scopeId", "data-v-79b30a8f"]]), ge = typeof navigator < "u" && !!navigator.mediaDevices && typeof navigator.mediaDevices.getDisplayMedia == "function", Le = typeof window < "u" && typeof window.MediaRecorder < "u";
4380
+ const ai = /* @__PURE__ */ U(Dr, [["render", ii], ["__scopeId", "data-v-94a2b136"]]), ge = typeof navigator < "u" && !!navigator.mediaDevices && typeof navigator.mediaDevices.getDisplayMedia == "function", Le = typeof window < "u" && typeof window.MediaRecorder < "u";
4364
4381
  function oi() {
4365
4382
  return Le && [
4366
4383
  "video/webm;codecs=vp9,opus",
@@ -4381,7 +4398,7 @@ function Ke({ audio: e }) {
4381
4398
  systemAudio: e ? "include" : "exclude"
4382
4399
  };
4383
4400
  }
4384
- function vo(e) {
4401
+ function go(e) {
4385
4402
  return e ? e.startsWith("image/") ? "image" : e.startsWith("video/") ? "video" : "file" : "file";
4386
4403
  }
4387
4404
  async function li() {
@@ -4443,11 +4460,11 @@ async function di(e = {}) {
4443
4460
  y.data && y.data.size > 0 && i.push(y.data);
4444
4461
  }), r.addEventListener("stop", () => {
4445
4462
  var y, T;
4446
- if (n && clearInterval(n), t.getTracks().forEach((I) => {
4447
- I.stop();
4463
+ if (n && clearInterval(n), t.getTracks().forEach((E) => {
4464
+ E.stop();
4448
4465
  }), i.length) {
4449
- const I = r.mimeType || s || "video/webm", S = new Blob(i, { type: I }), z = /mp4/.test(I) ? "mp4" : "webm", M = (/* @__PURE__ */ new Date()).toISOString().replace(/[:.]/g, "-").slice(0, 19), D = new File([S], `ecran-${M}.${z}`, {
4450
- type: I
4466
+ const E = r.mimeType || s || "video/webm", S = new Blob(i, { type: E }), z = /mp4/.test(E) ? "mp4" : "webm", M = (/* @__PURE__ */ new Date()).toISOString().replace(/[:.]/g, "-").slice(0, 19), D = new File([S], `ecran-${M}.${z}`, {
4467
+ type: E
4451
4468
  });
4452
4469
  (y = e.onfinalize) == null || y.call(e, D);
4453
4470
  } else
@@ -4669,8 +4686,8 @@ const ui = [
4669
4686
  }, pi = ["d"], wi = ["placeholder", "disabled"], bi = { class: "wm-compose__actions" }, ki = ["title", "aria-label", "disabled"], Ci = ["disabled", "aria-label"];
4670
4687
  function Ai(e, t, s, r, i, n) {
4671
4688
  return c(), d("div", {
4672
- class: R(["wm-compose-wrap", { "wm-compose-wrap--sheet": s.displayMode === "sheet" }]),
4673
- style: F(i.kbOffset ? { transform: `translateY(-${i.kbOffset}px)` } : null)
4689
+ class: x(["wm-compose-wrap", { "wm-compose-wrap--sheet": s.displayMode === "sheet" }]),
4690
+ style: N(i.kbOffset ? { transform: `translateY(-${i.kbOffset}px)` } : null)
4674
4691
  }, [
4675
4692
  i.recording ? (c(), d("div", mi, [
4676
4693
  t[8] || (t[8] = l("span", {
@@ -4685,7 +4702,7 @@ function Ai(e, t, s, r, i, n) {
4685
4702
  }, v(n.t("composer.stop")), 1)
4686
4703
  ])) : b("", !0),
4687
4704
  l("form", {
4688
- class: R(["wm-compose", { "has-attach": i.attachOpen }]),
4705
+ class: x(["wm-compose", { "has-attach": i.attachOpen }]),
4689
4706
  onSubmit: t[7] || (t[7] = G((...a) => n.onSubmit && n.onSubmit(...a), ["prevent"]))
4690
4707
  }, [
4691
4708
  l("input", {
@@ -4701,7 +4718,7 @@ function Ai(e, t, s, r, i, n) {
4701
4718
  onClick: t[2] || (t[2] = (a) => i.attachOpen = !1)
4702
4719
  })) : b("", !0),
4703
4720
  i.attachOpen ? (c(), d("div", _i, [
4704
- (c(!0), d(E, null, N(n.attachItems, (a) => (c(), d("button", {
4721
+ (c(!0), d(I, null, F(n.attachItems, (a) => (c(), d("button", {
4705
4722
  key: a.action,
4706
4723
  type: "button",
4707
4724
  class: "wm-compose__menuItem",
@@ -4727,7 +4744,7 @@ function Ai(e, t, s, r, i, n) {
4727
4744
  ref: "inputEl",
4728
4745
  "onUpdate:modelValue": t[3] || (t[3] = (a) => i.local = a),
4729
4746
  class: "wm-compose__input",
4730
- rows: "3",
4747
+ rows: "1",
4731
4748
  placeholder: s.placeholder,
4732
4749
  disabled: s.disabled,
4733
4750
  onKeydown: t[4] || (t[4] = (...a) => n.onKeydown && n.onKeydown(...a)),
@@ -4738,7 +4755,7 @@ function Ai(e, t, s, r, i, n) {
4738
4755
  l("div", bi, [
4739
4756
  l("button", {
4740
4757
  type: "button",
4741
- class: R(["wm-compose__icon", { "is-open": i.attachOpen }]),
4758
+ class: x(["wm-compose__icon", { "is-open": i.attachOpen }]),
4742
4759
  title: s.attachLabel,
4743
4760
  "aria-label": s.attachLabel,
4744
4761
  disabled: i.recording,
@@ -4760,13 +4777,13 @@ function Ai(e, t, s, r, i, n) {
4760
4777
  ])], 10, ki),
4761
4778
  l("button", {
4762
4779
  type: "submit",
4763
- class: R(["wm-compose__send", { "is-empty": !n.canSend }]),
4780
+ class: x(["wm-compose__send", { "is-empty": !n.canSend }]),
4764
4781
  disabled: !n.canSend,
4765
4782
  "aria-label": n.t("composer.send")
4766
4783
  }, [...t[10] || (t[10] = [
4767
4784
  l("svg", {
4768
- width: "13",
4769
- height: "13",
4785
+ width: "16",
4786
+ height: "16",
4770
4787
  viewBox: "0 0 24 24",
4771
4788
  fill: "none",
4772
4789
  stroke: "currentColor",
@@ -4782,7 +4799,7 @@ function Ai(e, t, s, r, i, n) {
4782
4799
  ], 34)
4783
4800
  ], 6);
4784
4801
  }
4785
- const Si = /* @__PURE__ */ U(hi, [["render", Ai], ["__scopeId", "data-v-bba29b9c"]]), Ti = {
4802
+ const Si = /* @__PURE__ */ U(hi, [["render", Ai], ["__scopeId", "data-v-a7f822e9"]]), Ti = {
4786
4803
  name: "WmInlineCallbacks",
4787
4804
  props: {
4788
4805
  // Array d'items `{ id?, label, style?, ... }`. Pour les suggestions,
@@ -4827,30 +4844,30 @@ const Si = /* @__PURE__ */ U(hi, [["render", Ai], ["__scopeId", "data-v-bba29b9c
4827
4844
  function Li(e, t, s, r, i, n) {
4828
4845
  return s.items.length ? (c(), d("div", {
4829
4846
  key: n.batchKey,
4830
- class: R(["wm-icb", `wm-icb--${s.variant}`])
4847
+ class: x(["wm-icb", `wm-icb--${s.variant}`])
4831
4848
  }, [
4832
- s.variant === "chips" ? (c(!0), d(E, { key: 0 }, N(s.items, (a, o) => (c(), d("button", {
4849
+ s.variant === "chips" ? (c(!0), d(I, { key: 0 }, F(s.items, (a, o) => (c(), d("button", {
4833
4850
  key: a.id != null ? a.id : o,
4834
4851
  type: "button",
4835
4852
  class: "wm-icb__btn wm-icb__btn--chip",
4836
- style: F({ animationDelay: s.baseDelay + o * s.stepDelay + "ms" }),
4853
+ style: N({ animationDelay: s.baseDelay + o * s.stepDelay + "ms" }),
4837
4854
  onClick: (f) => e.$emit("select", a)
4838
- }, v(a.label), 13, Mi))), 128)) : (c(), d(E, { key: 1 }, [
4855
+ }, v(a.label), 13, Mi))), 128)) : (c(), d(I, { key: 1 }, [
4839
4856
  n.headerTitle ? (c(), d("div", xi, v(n.headerTitle), 1)) : b("", !0),
4840
4857
  l("div", Oi, [
4841
- (c(!0), d(E, null, N(s.items, (a, o) => (c(), d("button", {
4858
+ (c(!0), d(I, null, F(s.items, (a, o) => (c(), d("button", {
4842
4859
  key: a.id != null ? a.id : o,
4843
4860
  type: "button",
4844
- class: R(["wm-icb__btn", n.btnClass(a)]),
4861
+ class: x(["wm-icb__btn", n.btnClass(a)]),
4845
4862
  onClick: (f) => e.$emit("select", a)
4846
4863
  }, v(a.label), 11, Ri))), 128))
4847
4864
  ])
4848
4865
  ], 64))
4849
4866
  ], 2)) : b("", !0);
4850
4867
  }
4851
- const Ii = /* @__PURE__ */ U(Ti, [["render", Li], ["__scopeId", "data-v-c8cc8cbf"]]);
4852
- let Fe = 0;
4853
- const Ei = /* @__PURE__ */ new Set([
4868
+ const Ei = /* @__PURE__ */ U(Ti, [["render", Li], ["__scopeId", "data-v-c8cc8cbf"]]);
4869
+ let Ne = 0;
4870
+ const Ii = /* @__PURE__ */ new Set([
4854
4871
  "text",
4855
4872
  "textarea",
4856
4873
  "number",
@@ -4875,8 +4892,8 @@ const Ei = /* @__PURE__ */ new Set([
4875
4892
  },
4876
4893
  emits: ["submit"],
4877
4894
  data() {
4878
- return Fe += 1, {
4879
- _uid: Fe,
4895
+ return Ne += 1, {
4896
+ _uid: Ne,
4880
4897
  values: {},
4881
4898
  busy: !1,
4882
4899
  error: ""
@@ -4888,7 +4905,7 @@ const Ei = /* @__PURE__ */ new Set([
4888
4905
  // douteux.
4889
4906
  normalizedFields() {
4890
4907
  var t;
4891
- return (Array.isArray((t = this.form) == null ? void 0 : t.fields) ? this.form.fields : []).filter((s) => !(!(s != null && s.key) || !(s != null && s.label) || !Ei.has(s == null ? void 0 : s.type) || (s.type === "select" || s.type === "multiselect") && (!Array.isArray(s.options) || s.options.length === 0)));
4908
+ return (Array.isArray((t = this.form) == null ? void 0 : t.fields) ? this.form.fields : []).filter((s) => !(!(s != null && s.key) || !(s != null && s.label) || !Ii.has(s == null ? void 0 : s.type) || (s.type === "select" || s.type === "multiselect") && (!Array.isArray(s.options) || s.options.length === 0)));
4892
4909
  }
4893
4910
  },
4894
4911
  created() {
@@ -4941,7 +4958,7 @@ const Ei = /* @__PURE__ */ new Set([
4941
4958
  }
4942
4959
  }
4943
4960
  }
4944
- }, Pi = { class: "wm-form" }, Ui = { class: "wm-form__head" }, Di = { class: "wm-form__icon" }, Ni = { class: "wm-form__main" }, Fi = { class: "wm-form__title" }, Hi = {
4961
+ }, Pi = { class: "wm-form" }, Ui = { class: "wm-form__head" }, Di = { class: "wm-form__icon" }, Fi = { class: "wm-form__main" }, Ni = { class: "wm-form__title" }, Hi = {
4945
4962
  key: 0,
4946
4963
  class: "wm-form__detail"
4947
4964
  }, ji = ["for"], zi = {
@@ -4979,8 +4996,8 @@ function ra(e, t, s, r, i, n) {
4979
4996
  "image-url": s.agentAvatarUrl
4980
4997
  }, null, 8, ["name", "image-url"])
4981
4998
  ]),
4982
- l("div", Ni, [
4983
- l("div", Fi, v(s.form.title || n.t("form.title")), 1),
4999
+ l("div", Fi, [
5000
+ l("div", Ni, v(s.form.title || n.t("form.title")), 1),
4984
5001
  s.form.description ? (c(), d("div", Hi, v(s.form.description), 1)) : b("", !0)
4985
5002
  ])
4986
5003
  ]),
@@ -4988,7 +5005,7 @@ function ra(e, t, s, r, i, n) {
4988
5005
  class: "wm-form__body",
4989
5006
  onSubmit: t[0] || (t[0] = G((...o) => n.onSubmit && n.onSubmit(...o), ["prevent"]))
4990
5007
  }, [
4991
- (c(!0), d(E, null, N(n.normalizedFields, (o) => (c(), d("div", {
5008
+ (c(!0), d(I, null, F(n.normalizedFields, (o) => (c(), d("div", {
4992
5009
  key: o.key,
4993
5010
  class: "wm-form__field"
4994
5011
  }, [
@@ -5066,14 +5083,14 @@ function ra(e, t, s, r, i, n) {
5066
5083
  disabled: s.readOnly || i.busy
5067
5084
  }, [
5068
5085
  l("option", Ji, v(o.placeholder || n.t("form.choose")), 1),
5069
- (c(!0), d(E, null, N(o.options, (f) => (c(), d("option", {
5086
+ (c(!0), d(I, null, F(o.options, (f) => (c(), d("option", {
5070
5087
  key: f.value,
5071
5088
  value: f.value
5072
5089
  }, v(f.label), 9, Xi))), 128))
5073
5090
  ], 8, Yi)), [
5074
5091
  [Ye, i.values[o.key]]
5075
5092
  ]) : o.type === "multiselect" ? (c(), d("div", Qi, [
5076
- (c(!0), d(E, null, N(o.options, (f) => (c(), d("label", {
5093
+ (c(!0), d(I, null, F(o.options, (f) => (c(), d("label", {
5077
5094
  key: f.value,
5078
5095
  class: "wm-form__multiItem"
5079
5096
  }, [
@@ -5163,14 +5180,14 @@ function ya(e, t, s, r, i, n) {
5163
5180
  ], -1)),
5164
5181
  l("div", ga, v(n.t("feedback.doneTitle")), 1),
5165
5182
  l("div", va, v(n.t("feedback.doneSubtitle")), 1)
5166
- ])) : (c(), d(E, { key: 0 }, [
5183
+ ])) : (c(), d(I, { key: 0 }, [
5167
5184
  l("div", la, v(n.t("feedback.question")), 1),
5168
5185
  l("div", ca, v(n.t("feedback.subtitle")), 1),
5169
5186
  l("div", da, [
5170
- (c(!0), d(E, null, N(n.options, (a) => (c(), d("button", {
5187
+ (c(!0), d(I, null, F(n.options, (a) => (c(), d("button", {
5171
5188
  key: a.v,
5172
5189
  type: "button",
5173
- class: R(["wm-fb__opt", { "is-selected": i.sel === a.v }]),
5190
+ class: x(["wm-fb__opt", { "is-selected": i.sel === a.v }]),
5174
5191
  onClick: (o) => i.sel = a.v
5175
5192
  }, [
5176
5193
  l("span", ha, v(a.e), 1),
@@ -5231,7 +5248,7 @@ const pa = /* @__PURE__ */ U(aa, [["render", ya], ["__scopeId", "data-v-9b630564
5231
5248
  key: 1,
5232
5249
  class: "wm-mm__sep"
5233
5250
  }, Ma = { class: "wm-mm__section" }, xa = { class: "wm-mm__label" }, Oa = { class: "wm-mm__section" }, Ra = { class: "wm-mm__label" }, La = { class: "wm-mm__label" };
5234
- function Ia(e, t, s, r, i, n) {
5251
+ function Ea(e, t, s, r, i, n) {
5235
5252
  return c(), d("div", ba, [
5236
5253
  l("div", {
5237
5254
  class: "wm-mm__scrim",
@@ -5313,7 +5330,7 @@ function Ia(e, t, s, r, i, n) {
5313
5330
  ], -1)),
5314
5331
  l("span", xa, v(n.t("moreMenu.sound")), 1),
5315
5332
  l("span", {
5316
- class: R(["wm-mm__toggle", { "wm-mm__toggle--on": i.soundOn }])
5333
+ class: x(["wm-mm__toggle", { "wm-mm__toggle--on": i.soundOn }])
5317
5334
  }, [...t[9] || (t[9] = [
5318
5335
  l("span", { class: "wm-mm__knob" }, null, -1)
5319
5336
  ])], 2)
@@ -5371,7 +5388,7 @@ function Ia(e, t, s, r, i, n) {
5371
5388
  ])
5372
5389
  ]);
5373
5390
  }
5374
- const Ea = /* @__PURE__ */ U(wa, [["render", Ia], ["__scopeId", "data-v-4cf6d578"]]), Ba = {
5391
+ const Ia = /* @__PURE__ */ U(wa, [["render", Ea], ["__scopeId", "data-v-4cf6d578"]]), Ba = {
5375
5392
  name: "WmRenameDialog",
5376
5393
  inject: {
5377
5394
  // Translator shared by the Messenger shell; French fallback when
@@ -5417,7 +5434,7 @@ const Ea = /* @__PURE__ */ U(wa, [["render", Ia], ["__scopeId", "data-v-4cf6d578
5417
5434
  class: "wm-dialog__card",
5418
5435
  role: "dialog",
5419
5436
  "aria-modal": "true"
5420
- }, Da = { class: "wm-dialog__head" }, Na = { class: "wm-dialog__title" }, Fa = ["aria-label"], Ha = { class: "wm-dialog__body" }, ja = ["placeholder"], za = { class: "wm-dialog__actions" }, qa = ["disabled"];
5437
+ }, Da = { class: "wm-dialog__head" }, Fa = { class: "wm-dialog__title" }, Na = ["aria-label"], Ha = { class: "wm-dialog__body" }, ja = ["placeholder"], za = { class: "wm-dialog__actions" }, qa = ["disabled"];
5421
5438
  function Va(e, t, s, r, i, n) {
5422
5439
  return c(), d("div", Pa, [
5423
5440
  l("div", {
@@ -5426,7 +5443,7 @@ function Va(e, t, s, r, i, n) {
5426
5443
  }),
5427
5444
  l("div", Ua, [
5428
5445
  l("div", Da, [
5429
- l("div", Na, v(s.title || n.t("rename.title")), 1),
5446
+ l("div", Fa, v(s.title || n.t("rename.title")), 1),
5430
5447
  l("button", {
5431
5448
  type: "button",
5432
5449
  class: "wm-dialog__close",
@@ -5446,7 +5463,7 @@ function Va(e, t, s, r, i, n) {
5446
5463
  }, [
5447
5464
  l("path", { d: "M18 6L6 18M6 6l12 12" })
5448
5465
  ], -1)
5449
- ])], 8, Fa)
5466
+ ])], 8, Na)
5450
5467
  ]),
5451
5468
  l("div", Ha, [
5452
5469
  $(l("input", {
@@ -5489,10 +5506,10 @@ const Ka = /* @__PURE__ */ U(Ba, [["render", Va], ["__scopeId", "data-v-6d5f94a8
5489
5506
  History: fs,
5490
5507
  MessageList: ai,
5491
5508
  Composer: Si,
5492
- InlineCallbacks: Ii,
5509
+ InlineCallbacks: Ei,
5493
5510
  FormCard: ia,
5494
5511
  Feedback: pa,
5495
- MoreMenu: Ea,
5512
+ MoreMenu: Ia,
5496
5513
  RenameDialog: Ka
5497
5514
  },
5498
5515
  mixins: [
@@ -5660,12 +5677,6 @@ const Ka = /* @__PURE__ */ U(Ba, [["render", Va], ["__scopeId", "data-v-6d5f94a8
5660
5677
  isEmbedded() {
5661
5678
  return this.displayMode === "embedded";
5662
5679
  },
5663
- // No screen transition on ordinary navigation (opening/closing a
5664
- // thread is instant) — only the dedicated "launch" fade plays, and
5665
- // only when starting a conversation from the home input.
5666
- screenTransition() {
5667
- return this.launching ? "wm-launch" : "wm-none";
5668
- },
5669
5680
  // Language set on the authenticated customer. Checked both as a
5670
5681
  // top-level column and as a named variable (`values.language`).
5671
5682
  // Falls back to the consumer-supplied `context.customer.language`
@@ -5729,9 +5740,9 @@ const Ka = /* @__PURE__ */ U(Ba, [["render", Va], ["__scopeId", "data-v-6d5f94a8
5729
5740
  const T = i[y];
5730
5741
  if (!T) continue;
5731
5742
  if (((k = T.author) == null ? void 0 : k.type) === "user") break;
5732
- const I = Y(T.id);
5733
- if (I != null) {
5734
- if (n != null && I <= n) break;
5743
+ const E = Y(T.id);
5744
+ if (E != null) {
5745
+ if (n != null && E <= n) break;
5735
5746
  t[T.id] !== 0 && (!o && T.author && (o = T.author), a++);
5736
5747
  }
5737
5748
  }
@@ -5967,7 +5978,7 @@ const Ka = /* @__PURE__ */ U(Ba, [["render", Va], ["__scopeId", "data-v-6d5f94a8
5967
5978
  }
5968
5979
  const s = this.revealedAt, r = (this.s.messagesByConv[e.id] || []).filter((a) => {
5969
5980
  var o, f, k, y, T;
5970
- return (a == null ? void 0 : a.type) === "action" && ((o = a == null ? void 0 : a.payload) == null ? void 0 : o.state) === "pending" || he(a) && !(s[a.id] > 0) ? !1 : (a == null ? void 0 : a.type) === "action" || (a == null ? void 0 : a.type) === "system" || ((f = a == null ? void 0 : a.payload) == null ? void 0 : f.type) === "system" || Array.isArray((k = a == null ? void 0 : a.payload) == null ? void 0 : k.attachments) && a.payload.attachments.length || (y = a == null ? void 0 : a.metadata) != null && y.artifact || (T = a == null ? void 0 : a.metadata) != null && T.form || Array.isArray(a == null ? void 0 : a.callbacks) && a.callbacks.some((I) => (I == null ? void 0 : I.intent) === "submit_form") ? !0 : typeof (a == null ? void 0 : a.text_md) == "string" && a.text_md.trim().length > 0;
5981
+ return (a == null ? void 0 : a.type) === "action" && ((o = a == null ? void 0 : a.payload) == null ? void 0 : o.state) === "pending" || he(a) && !(s[a.id] > 0) ? !1 : (a == null ? void 0 : a.type) === "action" || (a == null ? void 0 : a.type) === "system" || ((f = a == null ? void 0 : a.payload) == null ? void 0 : f.type) === "system" || Array.isArray((k = a == null ? void 0 : a.payload) == null ? void 0 : k.attachments) && a.payload.attachments.length || (y = a == null ? void 0 : a.metadata) != null && y.artifact || (T = a == null ? void 0 : a.metadata) != null && T.form || Array.isArray(a == null ? void 0 : a.callbacks) && a.callbacks.some((E) => (E == null ? void 0 : E.intent) === "submit_form") ? !0 : typeof (a == null ? void 0 : a.text_md) == "string" && a.text_md.trim().length > 0;
5971
5982
  });
5972
5983
  return t.length ? [...t, ...r] : r;
5973
5984
  },
@@ -6283,12 +6294,12 @@ const Ka = /* @__PURE__ */ U(Ba, [["render", Va], ["__scopeId", "data-v-6d5f94a8
6283
6294
  return;
6284
6295
  }
6285
6296
  try {
6286
- await this.waitForParentInit(), this.transport = Ie(
6297
+ await this.waitForParentInit(), this.transport = Ee(
6287
6298
  tt({
6288
6299
  baseUrl: this.baseUrl,
6289
6300
  widgetId: this.widgetId
6290
6301
  })
6291
- ), this.store = Ie(it(this.transport)), this.hydrateNotifPref();
6302
+ ), this.store = Ee(it(this.transport)), this.hydrateNotifPref();
6292
6303
  const e = this.parentVariables || this.context || null;
6293
6304
  if (await this.store.start({
6294
6305
  origin: this.parentOrigin,
@@ -6329,7 +6340,7 @@ const Ka = /* @__PURE__ */ U(Ba, [["render", Va], ["__scopeId", "data-v-6d5f94a8
6329
6340
  const i = Math.ceil(r.contentRect.height + 8);
6330
6341
  i !== this.floatHeight && (this.floatHeight = i, this.$nextTick(() => {
6331
6342
  var n, a;
6332
- (a = (n = this.$refs.messageList) == null ? void 0 : n.scrollToBottom) == null || a.call(n);
6343
+ (a = (n = this.$refs.messageList) == null ? void 0 : n.keepPinnedToBottom) == null || a.call(n);
6333
6344
  }));
6334
6345
  }), this.floatRO.observe(t);
6335
6346
  }
@@ -6383,21 +6394,21 @@ const Ka = /* @__PURE__ */ U(Ba, [["render", Va], ["__scopeId", "data-v-6d5f94a8
6383
6394
  this.launcherHovered = e, this.sendCurrentLauncherSize();
6384
6395
  },
6385
6396
  sendCurrentLauncherSize() {
6386
- var y, T, I, S, z, M, D;
6397
+ var y, T, E, S, z, M, D;
6387
6398
  if (this.isOpen) return;
6388
6399
  const e = (T = (y = this.$el) == null ? void 0 : y.querySelector) == null ? void 0 : T.call(y, ".wm-launcherWrap");
6389
6400
  if (!e) return;
6390
6401
  const t = e.getBoundingClientRect();
6391
6402
  if (!t.width || !t.height) return;
6392
- const s = (((I = this.launcherPeeks) == null ? void 0 : I.length) ?? 0) > 0, r = 16, i = Math.ceil(t.width), n = Math.ceil(t.height), a = (z = (S = this.$el) == null ? void 0 : S.querySelector) == null ? void 0 : z.call(S, ".wm-launcher"), o = (D = (M = this.$el) == null ? void 0 : M.querySelectorAll) == null ? void 0 : D.call(M, ".wm-peek"), f = o && o.length ? o[o.length - 1] : null;
6403
+ const s = (((E = this.launcherPeeks) == null ? void 0 : E.length) ?? 0) > 0, r = 16, i = Math.ceil(t.width), n = Math.ceil(t.height), a = (z = (S = this.$el) == null ? void 0 : S.querySelector) == null ? void 0 : z.call(S, ".wm-launcher"), o = (D = (M = this.$el) == null ? void 0 : M.querySelectorAll) == null ? void 0 : D.call(M, ".wm-peek"), f = o && o.length ? o[o.length - 1] : null;
6393
6404
  let k = null;
6394
6405
  if (f) {
6395
- const x = f.getBoundingClientRect();
6406
+ const O = f.getBoundingClientRect();
6396
6407
  k = {
6397
- width: Math.ceil(x.width),
6398
- height: Math.ceil(x.height),
6399
- rightOffset: Math.max(0, Math.ceil(t.right - x.right)),
6400
- bottomOffset: Math.max(0, Math.ceil(t.bottom - x.bottom))
6408
+ width: Math.ceil(O.width),
6409
+ height: Math.ceil(O.height),
6410
+ rightOffset: Math.max(0, Math.ceil(t.right - O.right)),
6411
+ bottomOffset: Math.max(0, Math.ceil(t.bottom - O.bottom))
6401
6412
  };
6402
6413
  }
6403
6414
  this.notifyParentResize("closed", {
@@ -6449,16 +6460,16 @@ const Ka = /* @__PURE__ */ U(Ba, [["render", Va], ["__scopeId", "data-v-6d5f94a8
6449
6460
  this.pendingLaunchText = t, this.launching = !0;
6450
6461
  },
6451
6462
  // Second half of the launch: the home input has reached the
6452
- // composer slot, so materialize the conversation. The chat fades in
6453
- // (via the `wm-launch` transition) over the now-empty home, the
6454
- // composer taking the input's place ; `onSend` posts the stashed
6455
- // text. `launching` is cleared after the fade so the transition
6456
- // reverts to instant for subsequent navigation.
6463
+ // composer slot, so materialize the conversation. The swap is
6464
+ // instant the composer is iso with the home input and lands in
6465
+ // the same spot, so the input simply becomes the composer while
6466
+ // the message area animates in (`wm-screen--launching`). `onSend`
6467
+ // posts the stashed text.
6457
6468
  onHomeLaunched() {
6458
6469
  const e = this.pendingLaunchText;
6459
6470
  this.pendingLaunchText = "", this.startConv(), e && this.$nextTick(() => this.onSend(e)), window.setTimeout(() => {
6460
6471
  this.launching = !1;
6461
- }, 360);
6472
+ }, 650);
6462
6473
  },
6463
6474
  startConv() {
6464
6475
  this.draftConv = {
@@ -6809,38 +6820,35 @@ const Ka = /* @__PURE__ */ U(Ba, [["render", Va], ["__scopeId", "data-v-6d5f94a8
6809
6820
  }, Ga = ["aria-label"], Ya = { class: "wm-screens" }, Ja = {
6810
6821
  key: "error",
6811
6822
  class: "wm-screen wm-state"
6812
- }, Xa = { class: "wm-state__err" }, Qa = { class: "wm-state__errTitle" }, Za = { class: "wm-state__errSub" }, eo = {
6813
- key: "chat",
6814
- class: "wm-screen wm-screen--chat"
6815
- }, to = { class: "wm-bottom" }, no = {
6823
+ }, Xa = { class: "wm-state__err" }, Qa = { class: "wm-state__errTitle" }, Za = { class: "wm-state__errSub" }, eo = { class: "wm-bottom" }, to = {
6816
6824
  key: 0,
6817
6825
  ref: "floatEl",
6818
6826
  class: "wm-float"
6819
- }, so = {
6827
+ }, no = {
6820
6828
  key: 1,
6821
6829
  class: "wm-actionWait",
6822
6830
  role: "status",
6823
6831
  "aria-live": "polite"
6824
- }, ro = { class: "wm-actionWait__lbl" }, io = {
6832
+ }, so = { class: "wm-actionWait__lbl" }, ro = {
6825
6833
  key: 2,
6826
6834
  class: "wm-attached"
6827
- }, ao = ["src", "alt"], oo = {
6835
+ }, io = ["src", "alt"], ao = {
6828
6836
  key: 1,
6829
6837
  class: "wm-attached__file"
6830
- }, lo = { class: "wm-attached__fileMeta" }, co = { class: "wm-attached__fileName" }, uo = {
6838
+ }, oo = { class: "wm-attached__fileMeta" }, lo = { class: "wm-attached__fileName" }, co = {
6831
6839
  key: 0,
6832
6840
  class: "wm-attached__fileSize"
6833
- }, ho = ["aria-label", "onClick"], mo = {
6841
+ }, uo = ["aria-label", "onClick"], ho = {
6834
6842
  key: 3,
6835
6843
  class: "wm-ended",
6836
6844
  role: "status",
6837
6845
  "aria-live": "polite"
6838
- }, fo = { class: "wm-ended__lbl" };
6839
- function _o(e, t, s, r, i, n) {
6840
- const a = P("Launcher"), o = P("Header"), f = P("History"), k = P("Onboarding"), y = P("MessageList"), T = P("InlineCallbacks"), I = P("FormCard"), S = P("Feedback"), z = P("Composer"), M = P("MoreMenu"), D = P("RenameDialog");
6846
+ }, mo = { class: "wm-ended__lbl" };
6847
+ function fo(e, t, s, r, i, n) {
6848
+ const a = P("Launcher"), o = P("Header"), f = P("History"), k = P("Onboarding"), y = P("MessageList"), T = P("InlineCallbacks"), E = P("FormCard"), S = P("Feedback"), z = P("Composer"), M = P("MoreMenu"), D = P("RenameDialog");
6841
6849
  return c(), d("div", {
6842
- class: R(["wm-root", `wm-root--${s.displayMode}`]),
6843
- style: F(n.rootStyle)
6850
+ class: x(["wm-root", `wm-root--${s.displayMode}`]),
6851
+ style: N(n.rootStyle)
6844
6852
  }, [
6845
6853
  !i.isOpen && !n.isEmbedded ? (c(), B(a, {
6846
6854
  key: 0,
@@ -6852,15 +6860,15 @@ function _o(e, t, s, r, i, n) {
6852
6860
  }, null, 8, ["unread-count", "peeks", "onOpen", "onDismiss", "onHover"])) : b("", !0),
6853
6861
  i.isOpen || n.isEmbedded ? (c(), d("section", {
6854
6862
  key: 1,
6855
- class: R([
6863
+ class: x([
6856
6864
  "wm-panel",
6857
6865
  `wm-panel--${s.displayMode}`,
6858
6866
  { "wm-panel--welcome": n.ready && !n.error && !n.currentConv }
6859
6867
  ]),
6860
- style: F(i.floatHeight ? { "--wm-float-h": i.floatHeight + "px" } : null),
6868
+ style: N(i.floatHeight ? { "--wm-float-h": i.floatHeight + "px" } : null),
6861
6869
  role: "dialog",
6862
6870
  "aria-label": "Messenger",
6863
- onClick: t[7] || (t[7] = (...x) => n.onPanelClick && n.onPanelClick(...x))
6871
+ onClick: t[7] || (t[7] = (...O) => n.onPanelClick && n.onPanelClick(...O))
6864
6872
  }, [
6865
6873
  !n.ready && !n.error ? (c(), d("div", $a, [
6866
6874
  n.isEmbedded ? b("", !0) : (c(), d("button", {
@@ -6868,7 +6876,7 @@ function _o(e, t, s, r, i, n) {
6868
6876
  type: "button",
6869
6877
  class: "wm-loading__close",
6870
6878
  "aria-label": n.t("loading.minimize"),
6871
- onClick: t[0] || (t[0] = (...x) => n.close && n.close(...x))
6879
+ onClick: t[0] || (t[0] = (...O) => n.close && n.close(...O))
6872
6880
  }, [...t[8] || (t[8] = [
6873
6881
  l("svg", {
6874
6882
  width: "13",
@@ -6888,7 +6896,7 @@ function _o(e, t, s, r, i, n) {
6888
6896
  class: "wm-loading__spinner",
6889
6897
  "aria-hidden": "true"
6890
6898
  }, null, -1))
6891
- ])) : (c(), d(E, { key: 1 }, [
6899
+ ])) : (c(), d(I, { key: 1 }, [
6892
6900
  K(o, {
6893
6901
  title: n.headerTitle,
6894
6902
  "team-members": n.teamMembers,
@@ -6904,7 +6912,7 @@ function _o(e, t, s, r, i, n) {
6904
6912
  onClose: n.close
6905
6913
  }, null, 8, ["title", "team-members", "response-label", "show-identity", "show-back", "show-close", "more-active", "agent-name", "agent-avatar-url", "onBack", "onMore", "onClose"]),
6906
6914
  l("div", Ya, [
6907
- K(Ae, { name: n.screenTransition }, {
6915
+ K(Ae, { name: "wm-none" }, {
6908
6916
  default: Se(() => [
6909
6917
  n.error ? (c(), d("div", Ja, [
6910
6918
  l("div", Xa, [
@@ -6933,7 +6941,10 @@ function _o(e, t, s, r, i, n) {
6933
6941
  class: "wm-screen",
6934
6942
  threads: n.openThreads,
6935
6943
  onResume: n.onDrawerPick
6936
- }, null, 8, ["threads", "onResume"])) : n.currentConv ? (c(), d("div", eo, [
6944
+ }, null, 8, ["threads", "onResume"])) : n.currentConv ? (c(), d("div", {
6945
+ key: "chat",
6946
+ class: x(["wm-screen wm-screen--chat", { "wm-screen--launching": i.launching }])
6947
+ }, [
6937
6948
  K(y, {
6938
6949
  ref: "messageList",
6939
6950
  messages: n.displayedMessages,
@@ -6948,8 +6959,8 @@ function _o(e, t, s, r, i, n) {
6948
6959
  "ai-agent-avatar-url": n.agentAvatarUrl,
6949
6960
  onLoadMore: n.onLoadMore
6950
6961
  }, null, 8, ["messages", "streaming-active", "date-label", "conversation-id", "loading-more", "has-more", "unread-anchor-id", "unread-boundary-ts", "ai-agent-name", "ai-agent-avatar-url", "onLoadMore"]),
6951
- l("div", to, [
6952
- n.floatVisible ? (c(), d("div", no, [
6962
+ l("div", eo, [
6963
+ n.floatVisible ? (c(), d("div", to, [
6953
6964
  n.pendingApproval ? (c(), B(T, {
6954
6965
  key: `appr-${n.pendingApproval.id}`,
6955
6966
  variant: "buttons",
@@ -6960,7 +6971,7 @@ function _o(e, t, s, r, i, n) {
6960
6971
  variant: "buttons",
6961
6972
  items: n.resolutionCallbacks,
6962
6973
  onSelect: n.onResolutionSelect
6963
- }, null, 8, ["items", "onSelect"])) : n.pendingForm ? (c(), B(I, {
6974
+ }, null, 8, ["items", "onSelect"])) : n.pendingForm ? (c(), B(E, {
6964
6975
  key: n.pendingForm.message && n.pendingForm.message.id,
6965
6976
  form: n.pendingForm.form,
6966
6977
  "agent-name": n.agentName,
@@ -6977,26 +6988,26 @@ function _o(e, t, s, r, i, n) {
6977
6988
  onSelect: n.onSuggestion
6978
6989
  }, null, 8, ["items", "onSelect"]))
6979
6990
  ], 512)) : b("", !0),
6980
- n.actionInFlight ? (c(), d("div", so, [
6991
+ n.actionInFlight ? (c(), d("div", no, [
6981
6992
  t[11] || (t[11] = l("span", {
6982
6993
  class: "wm-actionWait__spinner",
6983
6994
  "aria-hidden": "true"
6984
6995
  }, null, -1)),
6985
- l("span", ro, v(n.t("action.inProgress", {
6996
+ l("span", so, v(n.t("action.inProgress", {
6986
6997
  name: n.actionInFlightName
6987
6998
  })), 1)
6988
6999
  ])) : b("", !0),
6989
- i.pendingAttachments.length ? (c(), d("div", io, [
6990
- (c(!0), d(E, null, N(i.pendingAttachments, (x, q) => (c(), d("div", {
6991
- key: x.path || q,
7000
+ i.pendingAttachments.length ? (c(), d("div", ro, [
7001
+ (c(!0), d(I, null, F(i.pendingAttachments, (O, q) => (c(), d("div", {
7002
+ key: O.path || q,
6992
7003
  class: "wm-attached__item"
6993
7004
  }, [
6994
- x.previewUrl ? (c(), d("img", {
7005
+ O.previewUrl ? (c(), d("img", {
6995
7006
  key: 0,
6996
7007
  class: "wm-attached__thumb",
6997
- src: x.previewUrl,
6998
- alt: x.name
6999
- }, null, 8, ao)) : (c(), d("div", oo, [
7008
+ src: O.previewUrl,
7009
+ alt: O.name
7010
+ }, null, 8, io)) : (c(), d("div", ao, [
7000
7011
  t[12] || (t[12] = l("span", { class: "wm-attached__fileIcon" }, [
7001
7012
  l("svg", {
7002
7013
  width: "16",
@@ -7013,10 +7024,10 @@ function _o(e, t, s, r, i, n) {
7013
7024
  l("path", { d: "M14 2v6h6" })
7014
7025
  ])
7015
7026
  ], -1)),
7016
- l("span", lo, [
7017
- l("span", co, v(x.name), 1),
7018
- n.formatAttachmentSize(x.size_bytes) ? (c(), d("span", uo, v(n.formatAttachmentSize(
7019
- x.size_bytes
7027
+ l("span", oo, [
7028
+ l("span", lo, v(O.name), 1),
7029
+ n.formatAttachmentSize(O.size_bytes) ? (c(), d("span", co, v(n.formatAttachmentSize(
7030
+ O.size_bytes
7020
7031
  )), 1)) : b("", !0)
7021
7032
  ])
7022
7033
  ])),
@@ -7039,21 +7050,21 @@ function _o(e, t, s, r, i, n) {
7039
7050
  }, [
7040
7051
  l("path", { d: "M18 6L6 18M6 6l12 12" })
7041
7052
  ], -1)
7042
- ])], 8, ho)
7053
+ ])], 8, uo)
7043
7054
  ]))), 128))
7044
7055
  ])) : b("", !0),
7045
- n.endedBlockVisible ? (c(), d("div", mo, [
7046
- l("span", fo, v(n.isClosed ? n.t("composer.conversationClosed") : n.t("composer.conversationEnded")), 1),
7056
+ n.endedBlockVisible ? (c(), d("div", ho, [
7057
+ l("span", mo, v(n.isClosed ? n.t("composer.conversationClosed") : n.t("composer.conversationEnded")), 1),
7047
7058
  l("button", {
7048
7059
  type: "button",
7049
7060
  class: "wm-ended__btn",
7050
- onClick: t[2] || (t[2] = (x) => n.isClosed ? n.onReopen() : n.startConv())
7061
+ onClick: t[2] || (t[2] = (O) => n.isClosed ? n.onReopen() : n.startConv())
7051
7062
  }, v(n.isClosed ? n.t("composer.reopen") : n.t("composer.newConversation")), 1)
7052
7063
  ])) : n.actionInFlight ? b("", !0) : (c(), B(z, {
7053
7064
  key: 4,
7054
7065
  ref: "composer",
7055
7066
  modelValue: i.draft,
7056
- "onUpdate:modelValue": t[3] || (t[3] = (x) => i.draft = x),
7067
+ "onUpdate:modelValue": t[3] || (t[3] = (O) => i.draft = O),
7057
7068
  placeholder: n.composerPlaceholder,
7058
7069
  "attach-label": n.t("composer.attachFile"),
7059
7070
  "display-mode": s.displayMode,
@@ -7068,7 +7079,7 @@ function _o(e, t, s, r, i, n) {
7068
7079
  "sound-enabled": e.soundEnabled,
7069
7080
  "status-url": n.statusUrl,
7070
7081
  "help-url": n.helpUrl,
7071
- onClose: t[4] || (t[4] = (x) => i.moreOpen = !1),
7082
+ onClose: t[4] || (t[4] = (O) => i.moreOpen = !1),
7072
7083
  onSoundToggle: e.onSoundToggle,
7073
7084
  onAction: n.onMoreAction
7074
7085
  }, null, 8, ["can-rename", "can-export", "sound-enabled", "status-url", "help-url", "onSoundToggle", "onAction"])) : b("", !0),
@@ -7076,10 +7087,10 @@ function _o(e, t, s, r, i, n) {
7076
7087
  key: 1,
7077
7088
  "initial-value": n.currentConv.name || "",
7078
7089
  title: n.t("rename.dialogTitle"),
7079
- onClose: t[5] || (t[5] = (x) => i.renameDialogOpen = !1),
7090
+ onClose: t[5] || (t[5] = (O) => i.renameDialogOpen = !1),
7080
7091
  onSubmit: n.onRenameSubmit
7081
7092
  }, null, 8, ["initial-value", "title", "onSubmit"])) : b("", !0)
7082
- ])) : (c(), B(k, {
7093
+ ], 2)) : (c(), B(k, {
7083
7094
  key: "home",
7084
7095
  class: "wm-screen",
7085
7096
  title: n.widgetTitle,
@@ -7095,11 +7106,11 @@ function _o(e, t, s, r, i, n) {
7095
7106
  onLaunched: n.onHomeLaunched,
7096
7107
  onSelect: n.onQuickLink,
7097
7108
  onResume: n.onDrawerPick,
7098
- onViewHistory: t[1] || (t[1] = (x) => i.showHistory = !0)
7109
+ onViewHistory: t[1] || (t[1] = (O) => i.showHistory = !0)
7099
7110
  }, null, 8, ["title", "subtitle", "agent-name", "default-icon-url", "cover-image-url", "quick-links", "open-threads", "busy", "launching", "onStart", "onLaunched", "onSelect", "onResume"]))
7100
7111
  ]),
7101
7112
  _: 1
7102
- }, 8, ["name"])
7113
+ })
7103
7114
  ]),
7104
7115
  i.moreOpen && !n.currentConv ? (c(), B(M, {
7105
7116
  key: 0,
@@ -7108,7 +7119,7 @@ function _o(e, t, s, r, i, n) {
7108
7119
  "sound-enabled": e.soundEnabled,
7109
7120
  "status-url": n.statusUrl,
7110
7121
  "help-url": n.helpUrl,
7111
- onClose: t[6] || (t[6] = (x) => i.moreOpen = !1),
7122
+ onClose: t[6] || (t[6] = (O) => i.moreOpen = !1),
7112
7123
  onSoundToggle: e.onSoundToggle,
7113
7124
  onAction: n.onMoreAction
7114
7125
  }, null, 8, ["sound-enabled", "status-url", "help-url", "onSoundToggle", "onAction"])) : b("", !0)
@@ -7116,7 +7127,7 @@ function _o(e, t, s, r, i, n) {
7116
7127
  ], 6)) : b("", !0)
7117
7128
  ], 6);
7118
7129
  }
7119
- const yo = /* @__PURE__ */ U(Wa, [["render", _o], ["__scopeId", "data-v-d27c146a"]]), po = "0.6.9";
7130
+ const vo = /* @__PURE__ */ U(Wa, [["render", fo], ["__scopeId", "data-v-20b36fa2"]]), yo = "0.6.11";
7120
7131
  export {
7121
7132
  me as AIAvatar,
7122
7133
  be as AVATAR_COLORS,
@@ -7134,18 +7145,18 @@ export {
7134
7145
  ia as FormCard,
7135
7146
  _n as Header,
7136
7147
  ve as HumanAvatar,
7137
- Ii as InlineCallbacks,
7148
+ Ei as InlineCallbacks,
7138
7149
  qt as Launcher,
7139
7150
  Le as MEDIA_RECORDER_SUPPORTED,
7140
7151
  ai as MessageList,
7141
- yo as Messenger,
7142
- Ea as MoreMenu,
7152
+ vo as Messenger,
7153
+ Ia as MoreMenu,
7143
7154
  Qn as Onboarding,
7144
7155
  ge as SCREEN_CAPTURE_SUPPORTED,
7145
7156
  ht as SUPPORTED_LANGUAGES,
7146
7157
  tn as TeamAvatars,
7147
- Er as Typing,
7148
- po as VERSION,
7158
+ Ir as Typing,
7159
+ yo as VERSION,
7149
7160
  xe as avatarColor,
7150
7161
  Oe as avatarInitials,
7151
7162
  li as captureScreenshotFile,
@@ -7154,9 +7165,9 @@ export {
7154
7165
  H as createTranslator,
7155
7166
  tt as createTransport,
7156
7167
  re as dateLocale,
7157
- yo as default,
7168
+ vo as default,
7158
7169
  Ce as formatTime,
7159
- vo as guessAttachmentKind,
7170
+ go as guessAttachmentKind,
7160
7171
  oi as pickRecorderMime,
7161
7172
  Ve as renderInlineMarkdown,
7162
7173
  _t as renderMarkdown,