@_solaris/messenger-widget 0.5.40 → 0.5.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/messenger.js CHANGED
@@ -1,4 +1,4 @@
1
- import { reactive as je, openBlock as c, createElementBlock as d, normalizeStyle as z, normalizeClass as O, toDisplayString as v, resolveComponent as R, createVNode as V, Transition as Re, withCtx as Ne, Fragment as E, renderList as F, withKeys as ue, withModifiers as G, createElementVNode as a, createCommentVNode as y, createBlock as P, resolveDynamicComponent as pe, mergeProps as Se, withDirectives as $, vModelText as X, createTextVNode as ye, renderSlot as He, vModelCheckbox as ze, vModelSelect as qe, markRaw as Me } from "vue";
1
+ import { reactive as je, openBlock as c, createElementBlock as d, normalizeStyle as H, normalizeClass as O, toDisplayString as v, resolveComponent as R, createVNode as V, Transition as Re, withCtx as Ne, Fragment as E, renderList as F, withKeys as ue, withModifiers as G, createElementVNode as a, createCommentVNode as y, createBlock as P, resolveDynamicComponent as pe, mergeProps as Se, withDirectives as $, vModelText as X, createTextVNode as ye, renderSlot as He, vModelCheckbox as ze, vModelSelect as qe, markRaw as Me } from "vue";
2
2
  const Ve = [
3
3
  "connected",
4
4
  "message",
@@ -162,7 +162,7 @@ function Ge(e) {
162
162
  async function A(u = {}) {
163
163
  return (await o("POST", "/conversations", u)).conversation;
164
164
  }
165
- async function H(u) {
165
+ async function z(u) {
166
166
  return (await o(
167
167
  "GET",
168
168
  `/conversations/${encodeURIComponent(u)}`
@@ -321,7 +321,7 @@ function Ge(e) {
321
321
  patchCustomer: T,
322
322
  listConversations: B,
323
323
  createConversation: A,
324
- getConversation: H,
324
+ getConversation: z,
325
325
  patchConversation: S,
326
326
  markConversationRead: U,
327
327
  listMessages: I,
@@ -568,7 +568,7 @@ function Xe(e) {
568
568
  console.error("[store] markConversationRead failed", _);
569
569
  }
570
570
  }
571
- async function H(h, m, { attachments: _, metadata: u } = {}) {
571
+ async function z(h, m, { attachments: _, metadata: u } = {}) {
572
572
  var L;
573
573
  const f = (m || "").trim(), g = Array.isArray(_) && _.length > 0;
574
574
  if (!h || !f && !g) return;
@@ -766,7 +766,7 @@ function Xe(e) {
766
766
  fetchSinceLast: B,
767
767
  patchConversation: T,
768
768
  markConversationRead: A,
769
- send: H,
769
+ send: z,
770
770
  clickCallback: S,
771
771
  signAttachment: I,
772
772
  submitFeedback: q,
@@ -829,6 +829,7 @@ const Ze = `
829
829
  --wm-g900: ${j.g900};
830
830
  --wm-a: ${j.accent};
831
831
  --wm-al: ${j.accentLight};
832
+ --wm-primary: ${j.accent};
832
833
  --wm-green: ${j.green};
833
834
  --wm-red: ${j.red};
834
835
  --wm-redBg: ${j.redBg};
@@ -1672,7 +1673,7 @@ const N = (e, t) => {
1672
1673
  function bt(e, t, n, i, r, s) {
1673
1674
  return c(), d("div", {
1674
1675
  class: O(["wm-huav", { "wm-huav--tail": n.tail }]),
1675
- style: z({
1676
+ style: H({
1676
1677
  width: n.size + "px",
1677
1678
  height: n.size + "px",
1678
1679
  "--wm-avr": Math.round(n.size * 0.32) + "px",
@@ -1685,7 +1686,7 @@ function bt(e, t, n, i, r, s) {
1685
1686
  alt: n.name || ""
1686
1687
  }, null, 8, wt)) : (c(), d("span", {
1687
1688
  key: 1,
1688
- style: z({ fontSize: n.size * 0.36 + "px" })
1689
+ style: H({ fontSize: n.size * 0.36 + "px" })
1689
1690
  }, v(s.initials), 5))
1690
1691
  ], 6);
1691
1692
  }
@@ -1734,7 +1735,7 @@ function Pt(e, t, n, i, r, s) {
1734
1735
  (c(!0), d(E, null, F(s.visiblePeeks, (l, p) => (c(), d("div", {
1735
1736
  key: l.convId,
1736
1737
  class: "wm-peek",
1737
- style: z({
1738
+ style: H({
1738
1739
  "--depth": s.visiblePeeks.length - 1 - p,
1739
1740
  zIndex: p + 1
1740
1741
  }),
@@ -1865,7 +1866,7 @@ const Ut = /* @__PURE__ */ N(Ct, [["render", Pt], ["__scopeId", "data-v-44ddf1a1
1865
1866
  function zt(e, t, n, i, r, s) {
1866
1867
  return c(), d("div", {
1867
1868
  class: O(["wm-aiav", { "wm-aiav--tail": n.tail }]),
1868
- style: z({
1869
+ style: H({
1869
1870
  width: n.size + "px",
1870
1871
  height: n.size + "px",
1871
1872
  "--wm-avr": n.size * 0.32 + "px"
@@ -1878,7 +1879,7 @@ function zt(e, t, n, i, r, s) {
1878
1879
  "wm-aiav__inner--img": !!n.imageUrl,
1879
1880
  "wm-aiav__inner--initials": !n.imageUrl && !!s.initials
1880
1881
  }]),
1881
- style: z(
1882
+ style: H(
1882
1883
  !n.imageUrl && s.initials ? { background: s.bgColor } : null
1883
1884
  )
1884
1885
  }, [
@@ -1888,7 +1889,7 @@ function zt(e, t, n, i, r, s) {
1888
1889
  alt: n.name || ""
1889
1890
  }, null, 8, jt)) : s.initials ? (c(), d("span", {
1890
1891
  key: 1,
1891
- style: z({ fontSize: n.size * 0.36 + "px" })
1892
+ style: H({ fontSize: n.size * 0.36 + "px" })
1892
1893
  }, v(s.initials), 5)) : (c(), d("svg", {
1893
1894
  key: 2,
1894
1895
  width: n.size * 0.5,
@@ -1953,12 +1954,12 @@ function Gt(e, t, n, i, r, s) {
1953
1954
  return s.visible ? (c(), d("div", Vt, [
1954
1955
  a("div", {
1955
1956
  class: "wm-team__stack",
1956
- style: z({ width: s.stackWidth + "px" })
1957
+ style: H({ width: s.stackWidth + "px" })
1957
1958
  }, [
1958
1959
  (c(!0), d(E, null, F(n.members.slice(0, 3), (o, l) => (c(), d("div", {
1959
1960
  key: l,
1960
1961
  class: "wm-team__pill",
1961
- style: z({
1962
+ style: H({
1962
1963
  left: l * 13 + "px",
1963
1964
  zIndex: 3 - l,
1964
1965
  background: s.colorFor(o)
@@ -2264,6 +2265,13 @@ const Le = {
2264
2265
  iconPath(e) {
2265
2266
  return Le[e] || Le.link;
2266
2267
  },
2268
+ // True when activating the link opens an external destination
2269
+ // (full URL or relative path) — anchor links (`#…`, which route
2270
+ // inside the messenger / host page) stay badge-free.
2271
+ isExternalLink(e) {
2272
+ const t = e == null ? void 0 : e.url;
2273
+ return !!t && !t.startsWith("#");
2274
+ },
2267
2275
  renderPreview(e) {
2268
2276
  return un(e);
2269
2277
  },
@@ -2324,14 +2332,14 @@ const Le = {
2324
2332
  }, fn = { class: "wm-onb" }, _n = { class: "wm-onb__hero" }, gn = { class: "wm-onb__hero-text" }, pn = { class: "wm-onb__title" }, vn = { class: "wm-onb__sub" }, yn = { class: "wm-onb__cta" }, wn = ["disabled"], bn = { class: "wm-onb__startLabel" }, kn = {
2325
2333
  key: 0,
2326
2334
  class: "wm-onb__section wm-onb__section--card"
2327
- }, Cn = { class: "wm-onb__section-title" }, An = ["onClick"], Sn = { class: "wm-onb__card-icon" }, Mn = ["src", "alt"], Tn = {
2335
+ }, Cn = { class: "wm-onb__section-title" }, An = ["onClick"], Sn = { class: "wm-onb__card-icon" }, Mn = ["aria-label"], Tn = {
2328
2336
  key: 1,
2329
- width: "16",
2330
- height: "16",
2337
+ width: "18",
2338
+ height: "18",
2331
2339
  viewBox: "0 0 24 24",
2332
2340
  fill: "none",
2333
2341
  stroke: "currentColor",
2334
- "stroke-width": "1.7",
2342
+ "stroke-width": "1.9",
2335
2343
  "stroke-linecap": "round",
2336
2344
  "stroke-linejoin": "round",
2337
2345
  "aria-hidden": "true"
@@ -2339,28 +2347,40 @@ const Le = {
2339
2347
  key: 0,
2340
2348
  class: "wm-onb__card-sub"
2341
2349
  }, En = {
2350
+ key: 0,
2351
+ class: "wm-onb__card-ext",
2352
+ width: "11",
2353
+ height: "11",
2354
+ viewBox: "0 0 24 24",
2355
+ fill: "none",
2356
+ stroke: "currentColor",
2357
+ "stroke-width": "2",
2358
+ "stroke-linecap": "round",
2359
+ "stroke-linejoin": "round",
2360
+ "aria-hidden": "true"
2361
+ }, Bn = {
2342
2362
  key: 1,
2343
2363
  class: "wm-onb__section wm-onb__section--card"
2344
- }, Bn = { class: "wm-onb__section-title" }, Rn = { class: "wm-onb__alertList" }, Nn = ["onClick"], Pn = {
2364
+ }, Rn = { class: "wm-onb__section-title" }, Nn = { class: "wm-onb__alertList" }, Pn = ["onClick"], Un = {
2345
2365
  key: 0,
2346
2366
  class: "wm-onb__defaultAvatar"
2347
- }, Un = ["aria-label"], Fn = { class: "wm-onb__alert-body" }, Dn = { class: "wm-onb__alert-title" }, jn = ["innerHTML"], Hn = { class: "wm-onb__alert-meta" }, zn = {
2367
+ }, Fn = ["aria-label"], Dn = { class: "wm-onb__alert-body" }, jn = { class: "wm-onb__alert-title" }, Hn = ["innerHTML"], zn = { class: "wm-onb__alert-meta" }, qn = {
2348
2368
  key: 0,
2349
2369
  class: "wm-onb__alert-time"
2350
- }, qn = { class: "wm-onb__alert-resume" }, Vn = {
2370
+ }, Vn = { class: "wm-onb__alert-resume" }, Kn = {
2351
2371
  key: 2,
2352
2372
  class: "wm-onb__section wm-onb__section--card"
2353
- }, Kn = { class: "wm-onb__section-title" }, $n = { class: "wm-onb__search" }, Wn = ["placeholder", "aria-label"], Gn = { class: "wm-onb__list" }, Yn = ["onClick"], Jn = {
2373
+ }, $n = { class: "wm-onb__section-title" }, Wn = { class: "wm-onb__search" }, Gn = ["placeholder", "aria-label"], Yn = { class: "wm-onb__list" }, Jn = ["onClick"], Qn = {
2354
2374
  key: 0,
2355
2375
  class: "wm-onb__defaultAvatar"
2356
- }, Qn = ["aria-label"], Xn = { class: "wm-onb__thread-body" }, Zn = { class: "wm-onb__thread-title" }, es = ["innerHTML"], ts = { class: "wm-onb__thread-meta" }, ns = {
2376
+ }, Xn = ["aria-label"], Zn = { class: "wm-onb__thread-body" }, es = { class: "wm-onb__thread-title" }, ts = ["innerHTML"], ns = { class: "wm-onb__thread-meta" }, ss = {
2357
2377
  key: 0,
2358
2378
  class: "wm-onb__thread-time"
2359
- }, ss = {
2379
+ }, rs = {
2360
2380
  key: 0,
2361
2381
  class: "wm-onb__empty"
2362
2382
  };
2363
- function rs(e, t, n, i, r, s) {
2383
+ function is(e, t, n, i, r, s) {
2364
2384
  const o = R("AIAvatar");
2365
2385
  return c(), d("div", fn, [
2366
2386
  a("div", _n, [
@@ -2455,16 +2475,19 @@ function rs(e, t, n, i, r, s) {
2455
2475
  key: p,
2456
2476
  type: "button",
2457
2477
  class: O(["wm-onb__card", { "wm-onb__card--row": s.isOddQuickLinks }]),
2458
- style: z(l.color ? { "--card-color": l.color } : null),
2478
+ style: H(l.color ? { "--card-color": l.color } : null),
2459
2479
  onClick: (k) => e.$emit("select", l)
2460
2480
  }, [
2461
2481
  a("span", Sn, [
2462
- l.icon_url ? (c(), d("img", {
2482
+ l.icon_url ? (c(), d("span", {
2463
2483
  key: 0,
2464
- src: l.icon_url,
2465
- alt: l.label || "",
2466
- class: "wm-onb__card-iconImg"
2467
- }, null, 8, Mn)) : (c(), d("svg", Tn, [
2484
+ class: "wm-onb__card-iconImg",
2485
+ style: H({
2486
+ "--icon-url": `url('${l.icon_url}')`
2487
+ }),
2488
+ role: "img",
2489
+ "aria-label": l.label || ""
2490
+ }, null, 12, Mn)) : (c(), d("svg", Tn, [
2468
2491
  a("path", {
2469
2492
  d: s.iconPath(l.icon)
2470
2493
  }, null, 8, xn)
@@ -2473,13 +2496,16 @@ function rs(e, t, n, i, r, s) {
2473
2496
  a("span", On, [
2474
2497
  a("span", In, v(l.label), 1),
2475
2498
  l.subtitle ? (c(), d("span", Ln, v(l.subtitle), 1)) : y("", !0)
2476
- ])
2499
+ ]),
2500
+ s.isExternalLink(l) ? (c(), d("svg", En, [...t[5] || (t[5] = [
2501
+ a("path", { d: "M7 17L17 7M9 7h8v8" }, null, -1)
2502
+ ])])) : y("", !0)
2477
2503
  ], 14, An))), 128))
2478
2504
  ], 2)
2479
2505
  ])) : y("", !0),
2480
- s.unreadThreads.length ? (c(), d("div", En, [
2481
- a("div", Bn, v(s.t("onboarding.unreadConversations")), 1),
2482
- a("div", Rn, [
2506
+ s.unreadThreads.length ? (c(), d("div", Bn, [
2507
+ a("div", Rn, v(s.t("onboarding.unreadConversations")), 1),
2508
+ a("div", Nn, [
2483
2509
  (c(!0), d(E, null, F(s.unreadThreads, (l) => (c(), d("button", {
2484
2510
  key: l.id,
2485
2511
  type: "button",
@@ -2489,7 +2515,7 @@ function rs(e, t, n, i, r, s) {
2489
2515
  a("span", {
2490
2516
  class: O(["wm-onb__alert-avatar", s.avatarWrapperClass(l)])
2491
2517
  }, [
2492
- s.isDefaultAvatar(l) ? (c(), d("span", Pn, [...t[5] || (t[5] = [
2518
+ s.isDefaultAvatar(l) ? (c(), d("span", Un, [...t[6] || (t[6] = [
2493
2519
  a("svg", {
2494
2520
  width: "20",
2495
2521
  height: "20",
@@ -2510,26 +2536,26 @@ function rs(e, t, n, i, r, s) {
2510
2536
  a("span", {
2511
2537
  class: "wm-onb__alert-dot",
2512
2538
  "aria-label": s.t("onboarding.unread")
2513
- }, null, 8, Un)
2539
+ }, null, 8, Fn)
2514
2540
  ], 2),
2515
- a("span", Fn, [
2516
- a("span", Dn, v(l.title), 1),
2541
+ a("span", Dn, [
2542
+ a("span", jn, v(l.title), 1),
2517
2543
  a("span", {
2518
2544
  class: "wm-onb__alert-preview",
2519
2545
  innerHTML: s.renderPreview(l.preview)
2520
- }, null, 8, jn)
2546
+ }, null, 8, Hn)
2521
2547
  ]),
2522
- a("span", Hn, [
2523
- s.formatTs(l._ts) ? (c(), d("span", zn, v(s.formatTs(l._ts)), 1)) : y("", !0),
2524
- a("span", qn, v(s.t("onboarding.resume")), 1)
2548
+ a("span", zn, [
2549
+ s.formatTs(l._ts) ? (c(), d("span", qn, v(s.formatTs(l._ts)), 1)) : y("", !0),
2550
+ a("span", Vn, v(s.t("onboarding.resume")), 1)
2525
2551
  ])
2526
- ], 8, Nn))), 128))
2552
+ ], 8, Pn))), 128))
2527
2553
  ])
2528
2554
  ])) : y("", !0),
2529
- n.openThreads.length ? (c(), d("div", Vn, [
2530
- a("div", Kn, v(s.t("onboarding.recentConversations")), 1),
2531
- a("div", $n, [
2532
- t[6] || (t[6] = a("span", { class: "wm-onb__searchIcon" }, [
2555
+ n.openThreads.length ? (c(), d("div", Kn, [
2556
+ a("div", $n, v(s.t("onboarding.recentConversations")), 1),
2557
+ a("div", Wn, [
2558
+ t[7] || (t[7] = a("span", { class: "wm-onb__searchIcon" }, [
2533
2559
  a("svg", {
2534
2560
  width: "12",
2535
2561
  height: "12",
@@ -2549,11 +2575,11 @@ function rs(e, t, n, i, r, s) {
2549
2575
  type: "text",
2550
2576
  placeholder: s.t("onboarding.search"),
2551
2577
  "aria-label": s.t("onboarding.search")
2552
- }, null, 8, Wn), [
2578
+ }, null, 8, Gn), [
2553
2579
  [X, r.query]
2554
2580
  ])
2555
2581
  ]),
2556
- a("div", Gn, [
2582
+ a("div", Yn, [
2557
2583
  (c(!0), d(E, null, F(s.filteredThreads, (l) => (c(), d("button", {
2558
2584
  key: l.id,
2559
2585
  type: "button",
@@ -2563,7 +2589,7 @@ function rs(e, t, n, i, r, s) {
2563
2589
  a("span", {
2564
2590
  class: O(["wm-onb__thread-avatar", s.avatarWrapperClass(l)])
2565
2591
  }, [
2566
- s.isDefaultAvatar(l) ? (c(), d("span", Jn, [...t[7] || (t[7] = [
2592
+ s.isDefaultAvatar(l) ? (c(), d("span", Qn, [...t[8] || (t[8] = [
2567
2593
  a("svg", {
2568
2594
  width: "20",
2569
2595
  height: "20",
@@ -2585,18 +2611,18 @@ function rs(e, t, n, i, r, s) {
2585
2611
  key: 2,
2586
2612
  class: "wm-onb__thread-dot",
2587
2613
  "aria-label": s.t("onboarding.unread")
2588
- }, null, 8, Qn)) : y("", !0)
2614
+ }, null, 8, Xn)) : y("", !0)
2589
2615
  ], 2),
2590
- a("span", Xn, [
2591
- a("span", Zn, v(l.title), 1),
2616
+ a("span", Zn, [
2617
+ a("span", es, v(l.title), 1),
2592
2618
  a("span", {
2593
2619
  class: "wm-onb__thread-preview",
2594
2620
  innerHTML: s.renderPreview(l.preview)
2595
- }, null, 8, es)
2621
+ }, null, 8, ts)
2596
2622
  ]),
2597
- a("span", ts, [
2598
- s.formatTs(l._ts) ? (c(), d("span", ns, v(s.formatTs(l._ts)), 1)) : y("", !0),
2599
- t[8] || (t[8] = a("svg", {
2623
+ a("span", ns, [
2624
+ s.formatTs(l._ts) ? (c(), d("span", ss, v(s.formatTs(l._ts)), 1)) : y("", !0),
2625
+ t[9] || (t[9] = a("svg", {
2600
2626
  width: "14",
2601
2627
  height: "14",
2602
2628
  viewBox: "0 0 24 24",
@@ -2611,17 +2637,17 @@ function rs(e, t, n, i, r, s) {
2611
2637
  a("path", { d: "M5 12h14M13 5l7 7-7 7" })
2612
2638
  ], -1))
2613
2639
  ])
2614
- ], 10, Yn))), 128)),
2615
- s.filteredThreads.length ? y("", !0) : (c(), d("div", ss, v(s.t("onboarding.noResults", { query: r.query })), 1))
2640
+ ], 10, Jn))), 128)),
2641
+ s.filteredThreads.length ? y("", !0) : (c(), d("div", rs, v(s.t("onboarding.noResults", { query: r.query })), 1))
2616
2642
  ])
2617
2643
  ])) : y("", !0)
2618
2644
  ]);
2619
2645
  }
2620
- const is = /* @__PURE__ */ N(mn, [["render", rs], ["__scopeId", "data-v-75c21bb3"]]);
2621
- function as(e) {
2646
+ const as = /* @__PURE__ */ N(mn, [["render", is], ["__scopeId", "data-v-369d70df"]]);
2647
+ function os(e) {
2622
2648
  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();
2623
2649
  }
2624
- const os = {
2650
+ const ls = {
2625
2651
  name: "WmActionResult",
2626
2652
  props: {
2627
2653
  state: { type: String, default: "success" },
@@ -2631,13 +2657,13 @@ const os = {
2631
2657
  },
2632
2658
  computed: {
2633
2659
  detailText() {
2634
- return as(this.detail);
2660
+ return os(this.detail);
2635
2661
  }
2636
2662
  }
2637
- }, ls = {
2663
+ }, cs = {
2638
2664
  class: "wm-result__icon",
2639
2665
  "aria-hidden": "true"
2640
- }, cs = {
2666
+ }, ds = {
2641
2667
  key: 0,
2642
2668
  width: "11",
2643
2669
  height: "11",
@@ -2647,7 +2673,7 @@ const os = {
2647
2673
  "stroke-width": "2.8",
2648
2674
  "stroke-linecap": "round",
2649
2675
  "stroke-linejoin": "round"
2650
- }, ds = {
2676
+ }, us = {
2651
2677
  key: 1,
2652
2678
  width: "11",
2653
2679
  height: "11",
@@ -2657,7 +2683,7 @@ const os = {
2657
2683
  "stroke-width": "2.6",
2658
2684
  "stroke-linecap": "round",
2659
2685
  "stroke-linejoin": "round"
2660
- }, us = {
2686
+ }, hs = {
2661
2687
  key: 2,
2662
2688
  width: "11",
2663
2689
  height: "11",
@@ -2667,7 +2693,7 @@ const os = {
2667
2693
  "stroke-width": "2.4",
2668
2694
  "stroke-linecap": "round",
2669
2695
  "stroke-linejoin": "round"
2670
- }, hs = {
2696
+ }, ms = {
2671
2697
  key: 3,
2672
2698
  width: "12",
2673
2699
  height: "12",
@@ -2677,24 +2703,24 @@ const os = {
2677
2703
  "stroke-width": "2.2",
2678
2704
  "stroke-linecap": "round",
2679
2705
  "stroke-linejoin": "round"
2680
- }, ms = { class: "wm-result__body" }, fs = { class: "wm-result__label" }, _s = { class: "wm-result__detail" };
2681
- function gs(e, t, n, i, r, s) {
2706
+ }, fs = { class: "wm-result__body" }, _s = { class: "wm-result__label" }, gs = { class: "wm-result__detail" };
2707
+ function ps(e, t, n, i, r, s) {
2682
2708
  return c(), d("div", {
2683
2709
  class: O(["wm-result", `wm-result--${n.state}`])
2684
2710
  }, [
2685
- a("span", ls, [
2686
- n.state === "success" ? (c(), d("svg", cs, [...t[0] || (t[0] = [
2711
+ a("span", cs, [
2712
+ n.state === "success" ? (c(), d("svg", ds, [...t[0] || (t[0] = [
2687
2713
  a("path", { d: "M20 6L9 17l-5-5" }, null, -1)
2688
- ])])) : n.state === "rejected" ? (c(), d("svg", ds, [...t[1] || (t[1] = [
2714
+ ])])) : n.state === "rejected" ? (c(), d("svg", us, [...t[1] || (t[1] = [
2689
2715
  a("path", { d: "M18 6L6 18M6 6l12 12" }, null, -1)
2690
- ])])) : n.state === "awaiting" ? (c(), d("svg", us, [...t[2] || (t[2] = [
2716
+ ])])) : n.state === "awaiting" ? (c(), d("svg", hs, [...t[2] || (t[2] = [
2691
2717
  a("circle", {
2692
2718
  cx: "12",
2693
2719
  cy: "12",
2694
2720
  r: "10"
2695
2721
  }, null, -1),
2696
2722
  a("polyline", { points: "12 7 12 12 15 14" }, null, -1)
2697
- ])])) : (c(), d("svg", hs, [...t[3] || (t[3] = [
2723
+ ])])) : (c(), d("svg", ms, [...t[3] || (t[3] = [
2698
2724
  a("path", { d: "M10.29 3.86L1.82 18a2 2 0 001.71 3h16.94a2 2 0 001.71-3L13.71 3.86a2 2 0 00-3.42 0z" }, null, -1),
2699
2725
  a("line", {
2700
2726
  x1: "12",
@@ -2710,19 +2736,19 @@ function gs(e, t, n, i, r, s) {
2710
2736
  }, null, -1)
2711
2737
  ])]))
2712
2738
  ]),
2713
- a("span", ms, [
2714
- a("span", fs, v(n.label), 1),
2739
+ a("span", fs, [
2740
+ a("span", _s, v(n.label), 1),
2715
2741
  s.detailText ? (c(), d(E, { key: 0 }, [
2716
2742
  t[4] || (t[4] = a("span", {
2717
2743
  class: "wm-result__sep",
2718
2744
  "aria-hidden": "true"
2719
2745
  }, " · ", -1)),
2720
- a("span", _s, v(s.detailText), 1)
2746
+ a("span", gs, v(s.detailText), 1)
2721
2747
  ], 64)) : y("", !0)
2722
2748
  ])
2723
2749
  ], 2);
2724
2750
  }
2725
- const ps = /* @__PURE__ */ N(os, [["render", gs], ["__scopeId", "data-v-7284acd0"]]), vs = {
2751
+ const vs = /* @__PURE__ */ N(ls, [["render", ps], ["__scopeId", "data-v-7284acd0"]]), ys = {
2726
2752
  name: "WmArtifactFormResponse",
2727
2753
  inject: {
2728
2754
  // Translator shared by the Messenger shell; French fallback when
@@ -2738,12 +2764,12 @@ const ps = /* @__PURE__ */ N(os, [["render", gs], ["__scopeId", "data-v-7284acd0
2738
2764
  return Array.isArray((e = this.data) == null ? void 0 : e.fields) ? this.data.fields : [];
2739
2765
  }
2740
2766
  }
2741
- }, ys = { class: "wm-art wm-art--formResponse" }, ws = { class: "wm-art__head" }, bs = { class: "wm-art__title" }, ks = { class: "wm-art__badge wm-art__badge--success" }, Cs = { class: "wm-art__body" }, As = { class: "wm-art__fieldLabel" };
2742
- function Ss(e, t, n, i, r, s) {
2743
- return c(), d("div", ys, [
2744
- a("div", ws, [
2745
- a("div", bs, v(n.data.title || s.t("form.title")), 1),
2746
- a("span", ks, [
2767
+ }, ws = { class: "wm-art wm-art--formResponse" }, bs = { class: "wm-art__head" }, ks = { class: "wm-art__title" }, Cs = { class: "wm-art__badge wm-art__badge--success" }, As = { class: "wm-art__body" }, Ss = { class: "wm-art__fieldLabel" };
2768
+ function Ms(e, t, n, i, r, s) {
2769
+ return c(), d("div", ws, [
2770
+ a("div", bs, [
2771
+ a("div", ks, v(n.data.title || s.t("form.title")), 1),
2772
+ a("span", Cs, [
2747
2773
  t[0] || (t[0] = a("svg", {
2748
2774
  width: "11",
2749
2775
  height: "11",
@@ -2760,12 +2786,12 @@ function Ss(e, t, n, i, r, s) {
2760
2786
  ye(" " + v(s.t("form.sent")), 1)
2761
2787
  ])
2762
2788
  ]),
2763
- a("div", Cs, [
2789
+ a("div", As, [
2764
2790
  (c(!0), d(E, null, F(s.fields, (o, l) => (c(), d("div", {
2765
2791
  key: l,
2766
2792
  class: "wm-art__field"
2767
2793
  }, [
2768
- a("div", As, v(o.label), 1),
2794
+ a("div", Ss, v(o.label), 1),
2769
2795
  a("div", {
2770
2796
  class: O([
2771
2797
  "wm-art__fieldValue",
@@ -2776,7 +2802,7 @@ function Ss(e, t, n, i, r, s) {
2776
2802
  ])
2777
2803
  ]);
2778
2804
  }
2779
- const Ms = /* @__PURE__ */ N(vs, [["render", Ss], ["__scopeId", "data-v-713aecf1"]]), Ts = {
2805
+ const Ts = /* @__PURE__ */ N(ys, [["render", Ms], ["__scopeId", "data-v-713aecf1"]]), xs = {
2780
2806
  name: "WmArtifactInfoCard",
2781
2807
  props: {
2782
2808
  data: { type: Object, required: !0 }
@@ -2791,32 +2817,32 @@ const Ms = /* @__PURE__ */ N(vs, [["render", Ss], ["__scopeId", "data-v-713aecf1
2791
2817
  return !!((e = this.data) != null && e.body) || this.fields.length > 0;
2792
2818
  }
2793
2819
  }
2794
- }, xs = { class: "wm-art wm-art--infoCard" }, Os = {
2820
+ }, Os = { class: "wm-art wm-art--infoCard" }, Is = {
2795
2821
  key: 0,
2796
2822
  class: "wm-art__image"
2797
- }, Is = ["src", "alt"], Ls = { class: "wm-art__head" }, Es = { class: "wm-art__headMain" }, Bs = { class: "wm-art__title" }, Rs = {
2823
+ }, Ls = ["src", "alt"], Es = { class: "wm-art__head" }, Bs = { class: "wm-art__headMain" }, Rs = { class: "wm-art__title" }, Ns = {
2798
2824
  key: 0,
2799
2825
  class: "wm-art__subtitle"
2800
- }, Ns = {
2826
+ }, Ps = {
2801
2827
  key: 1,
2802
2828
  class: "wm-art__body"
2803
- }, Ps = {
2829
+ }, Us = {
2804
2830
  key: 0,
2805
2831
  class: "wm-art__text"
2806
- }, Us = { class: "wm-art__fieldLabel" };
2807
- function Fs(e, t, n, i, r, s) {
2808
- return c(), d("div", xs, [
2809
- n.data.image_url ? (c(), d("figure", Os, [
2832
+ }, Fs = { class: "wm-art__fieldLabel" };
2833
+ function Ds(e, t, n, i, r, s) {
2834
+ return c(), d("div", Os, [
2835
+ n.data.image_url ? (c(), d("figure", Is, [
2810
2836
  a("img", {
2811
2837
  src: n.data.image_url,
2812
2838
  alt: n.data.title || "",
2813
2839
  loading: "lazy"
2814
- }, null, 8, Is)
2840
+ }, null, 8, Ls)
2815
2841
  ])) : y("", !0),
2816
- a("div", Ls, [
2817
- a("div", Es, [
2818
- a("div", Bs, v(n.data.title), 1),
2819
- n.data.subtitle ? (c(), d("div", Rs, v(n.data.subtitle), 1)) : y("", !0)
2842
+ a("div", Es, [
2843
+ a("div", Bs, [
2844
+ a("div", Rs, v(n.data.title), 1),
2845
+ n.data.subtitle ? (c(), d("div", Ns, v(n.data.subtitle), 1)) : y("", !0)
2820
2846
  ]),
2821
2847
  n.data.badge && n.data.badge.label ? (c(), d("span", {
2822
2848
  key: 0,
@@ -2826,13 +2852,13 @@ function Fs(e, t, n, i, r, s) {
2826
2852
  ])
2827
2853
  }, v(n.data.badge.label), 3)) : y("", !0)
2828
2854
  ]),
2829
- s.hasBody ? (c(), d("div", Ns, [
2830
- n.data.body ? (c(), d("div", Ps, v(n.data.body), 1)) : y("", !0),
2855
+ s.hasBody ? (c(), d("div", Ps, [
2856
+ n.data.body ? (c(), d("div", Us, v(n.data.body), 1)) : y("", !0),
2831
2857
  s.fields.length ? (c(!0), d(E, { key: 1 }, F(s.fields, (o, l) => (c(), d("div", {
2832
2858
  key: l,
2833
2859
  class: "wm-art__field"
2834
2860
  }, [
2835
- a("div", Us, v(o.label), 1),
2861
+ a("div", Fs, v(o.label), 1),
2836
2862
  a("div", {
2837
2863
  class: O([
2838
2864
  "wm-art__fieldValue",
@@ -2843,8 +2869,8 @@ function Fs(e, t, n, i, r, s) {
2843
2869
  ])) : y("", !0)
2844
2870
  ]);
2845
2871
  }
2846
- const Ds = /* @__PURE__ */ N(Ts, [["render", Fs], ["__scopeId", "data-v-7eae0e4a"]]);
2847
- function js(e, t, n) {
2872
+ const js = /* @__PURE__ */ N(xs, [["render", Ds], ["__scopeId", "data-v-7eae0e4a"]]);
2873
+ function Hs(e, t, n) {
2848
2874
  if (!e) return "";
2849
2875
  const i = new Date(e);
2850
2876
  if (Number.isNaN(i.getTime())) return e;
@@ -2858,7 +2884,7 @@ function js(e, t, n) {
2858
2884
  });
2859
2885
  return `${r}${n}${s}`;
2860
2886
  }
2861
- const Hs = {
2887
+ const zs = {
2862
2888
  name: "WmArtifactTicket",
2863
2889
  inject: {
2864
2890
  // Translator + resolved-language getter shared by the Messenger
@@ -2876,7 +2902,7 @@ const Hs = {
2876
2902
  },
2877
2903
  formattedDate() {
2878
2904
  var e;
2879
- return js(
2905
+ return Hs(
2880
2906
  (e = this.data) == null ? void 0 : e.created_at,
2881
2907
  re(this.wmLocale()),
2882
2908
  this.t("ticket.dateAt")
@@ -2904,13 +2930,13 @@ const Hs = {
2904
2930
  return /high|haute|élev|elev|critic|critiq|urgent/.test(t) ? 3 : /low|basse|faible|minor/.test(t) ? 1 : 2;
2905
2931
  }
2906
2932
  }
2907
- }, zs = { class: "wm-art wm-art--ticket" }, qs = { class: "wm-art__head wm-tk__head" }, Vs = { class: "wm-art__title wm-tk__title" }, Ks = { class: "wm-tk__sub" }, $s = { class: "wm-tk__ref" }, Ws = {
2933
+ }, qs = { class: "wm-art wm-art--ticket" }, Vs = { class: "wm-art__head wm-tk__head" }, Ks = { class: "wm-art__title wm-tk__title" }, $s = { class: "wm-tk__sub" }, Ws = { class: "wm-tk__ref" }, Gs = {
2908
2934
  key: 0,
2909
2935
  class: "wm-tk__text"
2910
- }, Gs = {
2936
+ }, Ys = {
2911
2937
  key: 0,
2912
2938
  class: "wm-art__body"
2913
- }, Ys = { class: "wm-art__fieldLabel" }, Js = ["data-level"], Qs = {
2939
+ }, Js = { class: "wm-art__fieldLabel" }, Qs = ["data-level"], Xs = {
2914
2940
  key: 1,
2915
2941
  class: "wm-tk__date",
2916
2942
  width: "12",
@@ -2922,16 +2948,16 @@ const Hs = {
2922
2948
  "stroke-linecap": "round",
2923
2949
  "stroke-linejoin": "round",
2924
2950
  "aria-hidden": "true"
2925
- }, Xs = {
2951
+ }, Zs = {
2926
2952
  key: 1,
2927
2953
  class: "wm-art__footer wm-tk__footer"
2928
2954
  };
2929
- function Zs(e, t, n, i, r, s) {
2930
- return c(), d("div", zs, [
2931
- a("div", qs, [
2932
- a("div", Vs, v(n.data.title), 1),
2933
- a("div", Ks, [
2934
- a("div", $s, [
2955
+ function er(e, t, n, i, r, s) {
2956
+ return c(), d("div", qs, [
2957
+ a("div", Vs, [
2958
+ a("div", Ks, v(n.data.title), 1),
2959
+ a("div", $s, [
2960
+ a("div", Ws, [
2935
2961
  t[0] || (t[0] = a("svg", {
2936
2962
  width: "11",
2937
2963
  height: "11",
@@ -2962,14 +2988,14 @@ function Zs(e, t, n, i, r, s) {
2962
2988
  ye(" " + v(n.data.status.label), 1)
2963
2989
  ], 2)
2964
2990
  ]),
2965
- n.data.body ? (c(), d("div", Ws, v(n.data.body), 1)) : y("", !0)
2991
+ n.data.body ? (c(), d("div", Gs, v(n.data.body), 1)) : y("", !0)
2966
2992
  ]),
2967
- s.fields.length ? (c(), d("div", Gs, [
2993
+ s.fields.length ? (c(), d("div", Ys, [
2968
2994
  (c(!0), d(E, null, F(s.fields, (o, l) => (c(), d("div", {
2969
2995
  key: l,
2970
2996
  class: "wm-art__field"
2971
2997
  }, [
2972
- a("div", Ys, v(o.label), 1),
2998
+ a("div", Js, v(o.label), 1),
2973
2999
  a("div", {
2974
3000
  class: O([
2975
3001
  "wm-art__fieldValue",
@@ -3006,7 +3032,7 @@ function Zs(e, t, n, i, r, s) {
3006
3032
  height: "9",
3007
3033
  rx: "0.5"
3008
3034
  }, null, -1)
3009
- ])], 8, Js)) : s.isDate(o.label) ? (c(), d("svg", Qs, [...t[3] || (t[3] = [
3035
+ ])], 8, Qs)) : s.isDate(o.label) ? (c(), d("svg", Xs, [...t[3] || (t[3] = [
3010
3036
  a("rect", {
3011
3037
  x: "3",
3012
3038
  y: "4",
@@ -3020,7 +3046,7 @@ function Zs(e, t, n, i, r, s) {
3020
3046
  ], 2)
3021
3047
  ]))), 128))
3022
3048
  ])) : y("", !0),
3023
- n.data.created_at ? (c(), d("div", Xs, [
3049
+ n.data.created_at ? (c(), d("div", Zs, [
3024
3050
  t[4] || (t[4] = a("svg", {
3025
3051
  width: "11",
3026
3052
  height: "11",
@@ -3045,11 +3071,11 @@ function Zs(e, t, n, i, r, s) {
3045
3071
  ])) : y("", !0)
3046
3072
  ]);
3047
3073
  }
3048
- const er = /* @__PURE__ */ N(Hs, [["render", Zs], ["__scopeId", "data-v-5f30c914"]]), tr = {
3049
- form_response: Ms,
3050
- info_card: Ds,
3051
- ticket: er
3052
- }, nr = {
3074
+ const tr = /* @__PURE__ */ N(zs, [["render", er], ["__scopeId", "data-v-5f30c914"]]), nr = {
3075
+ form_response: Ts,
3076
+ info_card: js,
3077
+ ticket: tr
3078
+ }, sr = {
3053
3079
  name: "WmArtifactRenderer",
3054
3080
  props: {
3055
3081
  // Forme : { kind: string, data: any } (le `data` est validé
@@ -3060,17 +3086,17 @@ const er = /* @__PURE__ */ N(Hs, [["render", Zs], ["__scopeId", "data-v-5f30c914
3060
3086
  component() {
3061
3087
  var t;
3062
3088
  const e = (t = this.artifact) == null ? void 0 : t.kind;
3063
- return e && tr[e] || null;
3089
+ return e && nr[e] || null;
3064
3090
  }
3065
3091
  }
3066
3092
  };
3067
- function sr(e, t, n, i, r, s) {
3093
+ function rr(e, t, n, i, r, s) {
3068
3094
  return s.component ? (c(), P(pe(s.component), {
3069
3095
  key: 0,
3070
3096
  data: n.artifact.data
3071
3097
  }, null, 8, ["data"])) : y("", !0);
3072
3098
  }
3073
- const rr = /* @__PURE__ */ N(nr, [["render", sr]]), ir = {
3099
+ const ir = /* @__PURE__ */ N(sr, [["render", rr]]), ar = {
3074
3100
  name: "WmAttachmentPreview",
3075
3101
  inject: {
3076
3102
  signAttachmentFn: { default: null },
@@ -3138,15 +3164,15 @@ const rr = /* @__PURE__ */ N(nr, [["render", sr]]), ir = {
3138
3164
  this.safeHref === "#" && e.preventDefault();
3139
3165
  }
3140
3166
  }
3141
- }, ar = ["href"], or = ["src", "alt"], lr = ["src"], cr = ["src"], dr = ["href", "download"], ur = { class: "wm-att__main" }, hr = { class: "wm-att__name" }, mr = {
3167
+ }, or = ["href"], lr = ["src", "alt"], cr = ["src"], dr = ["src"], ur = ["href", "download"], hr = { class: "wm-att__main" }, mr = { class: "wm-att__name" }, fr = {
3142
3168
  key: 0,
3143
3169
  class: "wm-att__meta"
3144
- }, fr = {
3170
+ }, _r = {
3145
3171
  key: 0,
3146
3172
  class: "wm-att__spin",
3147
3173
  "aria-hidden": "true"
3148
3174
  };
3149
- function _r(e, t, n, i, r, s) {
3175
+ function gr(e, t, n, i, r, s) {
3150
3176
  return c(), d("div", {
3151
3177
  class: O(["wm-att", ["wm-att--" + (s.kind || "file")]])
3152
3178
  }, [
@@ -3161,18 +3187,18 @@ function _r(e, t, n, i, r, s) {
3161
3187
  src: r.url,
3162
3188
  alt: s.displayName,
3163
3189
  loading: "lazy"
3164
- }, null, 8, or)
3165
- ], 8, ar)) : s.kind === "audio" && r.url ? (c(), d("audio", {
3190
+ }, null, 8, lr)
3191
+ ], 8, or)) : s.kind === "audio" && r.url ? (c(), d("audio", {
3166
3192
  key: 1,
3167
3193
  src: r.url,
3168
3194
  controls: "",
3169
3195
  preload: "metadata"
3170
- }, null, 8, lr)) : s.kind === "video" && r.url ? (c(), d("video", {
3196
+ }, null, 8, cr)) : s.kind === "video" && r.url ? (c(), d("video", {
3171
3197
  key: 2,
3172
3198
  src: r.url,
3173
3199
  controls: "",
3174
3200
  preload: "metadata"
3175
- }, null, 8, cr)) : (c(), d("a", {
3201
+ }, null, 8, dr)) : (c(), d("a", {
3176
3202
  key: 3,
3177
3203
  class: "wm-att__file",
3178
3204
  href: s.safeHref,
@@ -3197,15 +3223,15 @@ function _r(e, t, n, i, r, s) {
3197
3223
  a("path", { d: "M14 2v6h6" })
3198
3224
  ])
3199
3225
  ], -1)),
3200
- a("span", ur, [
3201
- a("span", hr, v(s.displayName), 1),
3202
- s.sizeLabel ? (c(), d("span", mr, v(s.sizeLabel), 1)) : y("", !0)
3226
+ a("span", hr, [
3227
+ a("span", mr, v(s.displayName), 1),
3228
+ s.sizeLabel ? (c(), d("span", fr, v(s.sizeLabel), 1)) : y("", !0)
3203
3229
  ]),
3204
- r.loading ? (c(), d("span", fr)) : y("", !0)
3205
- ], 8, dr))
3230
+ r.loading ? (c(), d("span", _r)) : y("", !0)
3231
+ ], 8, ur))
3206
3232
  ], 2);
3207
3233
  }
3208
- const gr = /* @__PURE__ */ N(ir, [["render", _r], ["__scopeId", "data-v-0c877a62"]]), pr = {
3234
+ const pr = /* @__PURE__ */ N(ar, [["render", gr], ["__scopeId", "data-v-0c877a62"]]), vr = {
3209
3235
  name: "WmBubble",
3210
3236
  props: {
3211
3237
  role: { type: String, default: "ai" },
@@ -3217,45 +3243,45 @@ const gr = /* @__PURE__ */ N(ir, [["render", _r], ["__scopeId", "data-v-0c877a62
3217
3243
  return hn(this.text);
3218
3244
  }
3219
3245
  }
3220
- }, vr = ["innerHTML"];
3221
- function yr(e, t, n, i, r, s) {
3246
+ }, yr = ["innerHTML"];
3247
+ function wr(e, t, n, i, r, s) {
3222
3248
  return c(), d("div", {
3223
3249
  class: O(["wm-bubble", "wm-bubble--" + n.role])
3224
3250
  }, [
3225
3251
  He(e.$slots, "default", {}, () => [
3226
- a("span", { innerHTML: s.rendered }, null, 8, vr)
3252
+ a("span", { innerHTML: s.rendered }, null, 8, yr)
3227
3253
  ], !0)
3228
3254
  ], 2);
3229
3255
  }
3230
- const wr = /* @__PURE__ */ N(pr, [["render", yr], ["__scopeId", "data-v-7ab13147"]]), br = { name: "WmTyping" }, kr = { class: "wm-typing" };
3231
- function Cr(e, t, n, i, r, s) {
3232
- return c(), d("div", kr, [...t[0] || (t[0] = [
3256
+ const br = /* @__PURE__ */ N(vr, [["render", wr], ["__scopeId", "data-v-7ab13147"]]), kr = { name: "WmTyping" }, Cr = { class: "wm-typing" };
3257
+ function Ar(e, t, n, i, r, s) {
3258
+ return c(), d("div", Cr, [...t[0] || (t[0] = [
3233
3259
  a("span", { style: { "animation-delay": "0s" } }, null, -1),
3234
3260
  a("span", { style: { "animation-delay": "0.2s" } }, null, -1),
3235
3261
  a("span", { style: { "animation-delay": "0.4s" } }, null, -1)
3236
3262
  ])]);
3237
3263
  }
3238
- const Ar = /* @__PURE__ */ N(br, [["render", Cr], ["__scopeId", "data-v-df2447fd"]]);
3264
+ const Sr = /* @__PURE__ */ N(kr, [["render", Ar], ["__scopeId", "data-v-df2447fd"]]);
3239
3265
  function Q(e) {
3240
3266
  return e ? e.client_msg_id || e.id : "";
3241
3267
  }
3242
- const Sr = {
3268
+ const Mr = {
3243
3269
  transferred_to_human: "system.transferredToHuman",
3244
3270
  assigned: "system.assigned",
3245
3271
  unassigned: "system.unassigned",
3246
3272
  resolved: "system.resolved",
3247
3273
  reopened: "system.reopened",
3248
3274
  idle: "system.idle"
3249
- }, Mr = 80, Tr = 200, xr = {
3275
+ }, Tr = 80, xr = 200, Or = {
3250
3276
  name: "WmMessageList",
3251
3277
  components: {
3252
3278
  AIAvatar: le,
3253
3279
  HumanAvatar: Ce,
3254
- Bubble: wr,
3255
- Typing: Ar,
3256
- ActionResult: ps,
3257
- AttachmentPreview: gr,
3258
- ArtifactRenderer: rr
3280
+ Bubble: br,
3281
+ Typing: Sr,
3282
+ ActionResult: vs,
3283
+ AttachmentPreview: pr,
3284
+ ArtifactRenderer: ir
3259
3285
  },
3260
3286
  inject: {
3261
3287
  // Translator + resolved-language getter shared by the Messenger
@@ -3445,11 +3471,11 @@ const Sr = {
3445
3471
  return `g-${n}`;
3446
3472
  },
3447
3473
  isAtBottom(e) {
3448
- return e.scrollHeight - e.scrollTop - e.clientHeight <= Mr;
3474
+ return e.scrollHeight - e.scrollTop - e.clientHeight <= Tr;
3449
3475
  },
3450
3476
  onScroll() {
3451
3477
  const e = this.$refs.scrollEl;
3452
- e && (this.showScrollDown = !this.isAtBottom(e), !(this.loadingMore || !this.hasMore) && (this._pendingLoadMore || e.scrollTop <= Tr && (this._pendingLoadMore = !0, this.$emit("load-more"))));
3478
+ e && (this.showScrollDown = !this.isAtBottom(e), !(this.loadingMore || !this.hasMore) && (this._pendingLoadMore || e.scrollTop <= xr && (this._pendingLoadMore = !0, this.$emit("load-more"))));
3453
3479
  },
3454
3480
  // Capture pre-patch scroll state and restore it on the next tick.
3455
3481
  //
@@ -3650,7 +3676,7 @@ const Sr = {
3650
3676
  // doit garder son arrondi.
3651
3677
  cornersFor(e, t) {
3652
3678
  var Z, ee, te;
3653
- const n = e.items, i = (Z = n[t]) == null ? void 0 : Z.kind, r = (ee = n[t - 1]) == null ? void 0 : ee.kind, s = (te = n[t + 1]) == null ? void 0 : te.kind, o = e.role === "user", l = 14, p = 4, k = r == null ? void 0 : r.bottom, w = s == null ? void 0 : s.top, T = this.widthByKey[this.rowKeyOf(e, t)], B = this.widthByKey[this.rowKeyOf(e, t - 1)], A = this.widthByKey[this.rowKeyOf(e, t + 1)], H = 0.5, S = (K, ne, J) => K != null && T != null ? K + H >= T : ne === J || ne === "card" && J === "bubble";
3679
+ const n = e.items, i = (Z = n[t]) == null ? void 0 : Z.kind, r = (ee = n[t - 1]) == null ? void 0 : ee.kind, s = (te = n[t + 1]) == null ? void 0 : te.kind, o = e.role === "user", l = 14, p = 4, k = r == null ? void 0 : r.bottom, w = s == null ? void 0 : s.top, T = this.widthByKey[this.rowKeyOf(e, t)], B = this.widthByKey[this.rowKeyOf(e, t - 1)], A = this.widthByKey[this.rowKeyOf(e, t + 1)], z = 0.5, S = (K, ne, J) => K != null && T != null ? K + z >= T : ne === J || ne === "card" && J === "bubble";
3654
3680
  let U = l, I = l, q = l, Y = l;
3655
3681
  return o ? (k && (I = p), (w || !s) && (q = p), k && S(B, k, i == null ? void 0 : i.top) && (U = p), w && S(A, w, i == null ? void 0 : i.bottom) && (Y = p)) : (k && (U = p), (w || !s) && (Y = p), k && S(B, k, i == null ? void 0 : i.top) && (I = p), w && S(A, w, i == null ? void 0 : i.bottom) && (q = p)), { tl: U, tr: I, br: q, bl: Y };
3656
3682
  },
@@ -3787,7 +3813,7 @@ const Sr = {
3787
3813
  },
3788
3814
  systemLabel(e) {
3789
3815
  var r, s, o;
3790
- const t = (r = e == null ? void 0 : e.payload) == null ? void 0 : r.event, n = Sr[t], i = ((s = e == null ? void 0 : e.metadata) == null ? void 0 : s.agent_name) || ((o = e == null ? void 0 : e.author) == null ? void 0 : o.name) || this.t("messageList.anAgent");
3816
+ const t = (r = e == null ? void 0 : e.payload) == null ? void 0 : r.event, n = Mr[t], i = ((s = e == null ? void 0 : e.metadata) == null ? void 0 : s.agent_name) || ((o = e == null ? void 0 : e.author) == null ? void 0 : o.name) || this.t("messageList.anAgent");
3791
3817
  return n ? this.t(n, { name: i }) : (e == null ? void 0 : e.text_md) || this.t("messageList.conversationUpdate");
3792
3818
  },
3793
3819
  scrollToBottom() {
@@ -3802,74 +3828,74 @@ const Sr = {
3802
3828
  e && (typeof e.scrollTo == "function" ? e.scrollTo({ top: e.scrollHeight, behavior: "smooth" }) : e.scrollTop = e.scrollHeight, this.showScrollDown = !1);
3803
3829
  }
3804
3830
  }
3805
- }, Or = { class: "wm-list__wrap" }, Ir = {
3831
+ }, Ir = { class: "wm-list__wrap" }, Lr = {
3806
3832
  key: 0,
3807
3833
  class: "wm-list__loadMore",
3808
3834
  role: "status",
3809
3835
  "aria-live": "polite"
3810
- }, Lr = { class: "wm-list__loadMore-lbl" }, Er = {
3836
+ }, Er = { class: "wm-list__loadMore-lbl" }, Br = {
3811
3837
  key: 1,
3812
3838
  class: "wm-list__historyEnd"
3813
- }, Br = {
3839
+ }, Rr = {
3814
3840
  key: 2,
3815
3841
  class: "wm-list__sep"
3816
- }, Rr = { class: "wm-list__sep-label" }, Nr = {
3842
+ }, Nr = { class: "wm-list__sep-label" }, Pr = {
3817
3843
  key: 0,
3818
3844
  class: "wm-list__sep wm-list__sep--unread"
3819
- }, Pr = { class: "wm-list__sep-label wm-list__sep-label--unread" }, Ur = {
3845
+ }, Ur = { class: "wm-list__sep-label wm-list__sep-label--unread" }, Fr = {
3820
3846
  key: 0,
3821
3847
  class: "wm-list__sysep"
3822
- }, Fr = { class: "wm-list__sysep-label" }, Dr = ["data-row-key", "onPointerdown"], jr = {
3848
+ }, Dr = { class: "wm-list__sysep-label" }, jr = ["data-row-key", "onPointerdown"], Hr = {
3823
3849
  key: 0,
3824
3850
  class: "wm-list__avatarSlot"
3825
- }, Hr = {
3851
+ }, zr = {
3826
3852
  key: 5,
3827
3853
  class: "wm-list__body"
3828
- }, zr = { key: 0 }, qr = {
3854
+ }, qr = { key: 0 }, Vr = {
3829
3855
  key: 1,
3830
3856
  "aria-hidden": "true"
3831
- }, Vr = { key: 2 }, Kr = { key: 0 }, $r = {
3857
+ }, Kr = { key: 2 }, $r = { key: 0 }, Wr = {
3832
3858
  key: 1,
3833
3859
  "aria-hidden": "true"
3834
- }, Wr = { key: 2 }, Gr = {
3860
+ }, Gr = { key: 2 }, Yr = {
3835
3861
  key: 3,
3836
3862
  class: "wm-list__row wm-list__row--ai fade-up"
3837
- }, Yr = { class: "wm-list__avatarSlot" }, Jr = ["aria-label", "title"];
3838
- function Qr(e, t, n, i, r, s) {
3863
+ }, Jr = { class: "wm-list__avatarSlot" }, Qr = ["aria-label", "title"];
3864
+ function Xr(e, t, n, i, r, s) {
3839
3865
  const o = R("AIAvatar"), l = R("HumanAvatar"), p = R("ActionResult"), k = R("ArtifactRenderer"), w = R("Bubble"), T = R("AttachmentPreview"), B = R("Typing");
3840
- return c(), d("div", Or, [
3866
+ return c(), d("div", Ir, [
3841
3867
  a("div", {
3842
3868
  ref: "scrollEl",
3843
3869
  class: O(["wm-list", { "wm-list--silent": r.silentFades }]),
3844
3870
  onScrollPassive: t[4] || (t[4] = (...A) => s.onScroll && s.onScroll(...A))
3845
3871
  }, [
3846
- n.loadingMore ? (c(), d("div", Ir, [
3872
+ n.loadingMore ? (c(), d("div", Lr, [
3847
3873
  t[6] || (t[6] = a("span", {
3848
3874
  class: "wm-list__loadMore-spinner",
3849
3875
  "aria-hidden": "true"
3850
3876
  }, null, -1)),
3851
- a("span", Lr, v(s.t("messageList.loadingHistory")), 1)
3852
- ])) : s.historyExhausted ? (c(), d("div", Er, v(s.t("messageList.conversationStart")), 1)) : y("", !0),
3853
- n.dateLabel ? (c(), d("div", Br, [
3877
+ a("span", Er, v(s.t("messageList.loadingHistory")), 1)
3878
+ ])) : s.historyExhausted ? (c(), d("div", Br, v(s.t("messageList.conversationStart")), 1)) : y("", !0),
3879
+ n.dateLabel ? (c(), d("div", Rr, [
3854
3880
  t[7] || (t[7] = a("div", { class: "wm-list__line" }, null, -1)),
3855
- a("span", Rr, v(n.dateLabel), 1),
3881
+ a("span", Nr, v(n.dateLabel), 1),
3856
3882
  t[8] || (t[8] = a("div", { class: "wm-list__line" }, null, -1))
3857
3883
  ])) : y("", !0),
3858
- (c(!0), d(E, null, F(s.groups, (A, H) => (c(), d(E, {
3884
+ (c(!0), d(E, null, F(s.groups, (A, z) => (c(), d(E, {
3859
3885
  key: A.key
3860
3886
  }, [
3861
- A.key === s.unreadGroupKey ? (c(), d("div", Nr, [
3887
+ A.key === s.unreadGroupKey ? (c(), d("div", Pr, [
3862
3888
  t[9] || (t[9] = a("div", { class: "wm-list__line wm-list__line--unread" }, null, -1)),
3863
- a("span", Pr, v(s.t("messageList.unread")), 1),
3889
+ a("span", Ur, v(s.t("messageList.unread")), 1),
3864
3890
  t[10] || (t[10] = a("div", { class: "wm-list__line wm-list__line--unread" }, null, -1))
3865
3891
  ])) : y("", !0),
3866
3892
  A.role === "system" || A.items.length ? (c(), d("div", {
3867
3893
  key: 1,
3868
3894
  class: O(["wm-list__group", "wm-list__group--" + A.role])
3869
3895
  }, [
3870
- A.role === "system" ? (c(), d("div", Ur, [
3896
+ A.role === "system" ? (c(), d("div", Fr, [
3871
3897
  t[11] || (t[11] = a("div", { class: "wm-list__line wm-list__line--strong" }, null, -1)),
3872
- a("span", Fr, v(A.systemLabel), 1),
3898
+ a("span", Dr, v(A.systemLabel), 1),
3873
3899
  t[12] || (t[12] = a("div", { class: "wm-list__line wm-list__line--strong" }, null, -1))
3874
3900
  ])) : (c(), d(E, { key: 1 }, [
3875
3901
  (c(!0), d(E, null, F(A.items, (S, U) => (c(), d(E, {
@@ -3884,7 +3910,7 @@ function Qr(e, t, n, i, r, s) {
3884
3910
  "is-failed": S.message._failed
3885
3911
  }
3886
3912
  ]]),
3887
- style: z(s.cornersStyle(A, U)),
3913
+ style: H(s.cornersStyle(A, U)),
3888
3914
  onPointerdown: (I) => s.onPressStart(`${s.messageKey(S.message)}-${S.partKey}`),
3889
3915
  onPointerup: t[0] || (t[0] = (I) => s.onPressEnd()),
3890
3916
  onPointercancel: t[1] || (t[1] = (I) => s.onPressEnd()),
@@ -3892,7 +3918,7 @@ function Qr(e, t, n, i, r, s) {
3892
3918
  onContextmenu: t[3] || (t[3] = G(() => {
3893
3919
  }, ["prevent"]))
3894
3920
  }, [
3895
- A.role !== "user" ? (c(), d("div", jr, [
3921
+ A.role !== "user" ? (c(), d("div", Hr, [
3896
3922
  U === A.items.length - 1 ? (c(), d(E, { key: 0 }, [
3897
3923
  A.role === "ai" ? (c(), P(o, {
3898
3924
  key: 0,
@@ -3925,7 +3951,7 @@ function Qr(e, t, n, i, r, s) {
3925
3951
  }, null, 8, ["artifact"])) : S.renderAs === "artifact" ? (c(), P(k, {
3926
3952
  key: 4,
3927
3953
  artifact: s.artifactOf(S.message)
3928
- }, null, 8, ["artifact"])) : (c(), d("div", Hr, [
3954
+ }, null, 8, ["artifact"])) : (c(), d("div", zr, [
3929
3955
  S.message.text_md ? (c(), P(w, {
3930
3956
  key: 0,
3931
3957
  role: A.role,
@@ -3945,29 +3971,29 @@ function Qr(e, t, n, i, r, s) {
3945
3971
  }, null, 8, ["attachment"]))), 128))
3946
3972
  ], 2)) : y("", !0)
3947
3973
  ]))
3948
- ], 46, Dr),
3974
+ ], 46, jr),
3949
3975
  U < A.items.length - 1 && r.pressedItemKey === `${s.messageKey(S.message)}-${S.partKey}` && (A.role !== "user" || s.timeOf(S.message)) ? (c(), d("div", {
3950
3976
  key: 0,
3951
3977
  class: O(["wm-list__meta wm-list__meta--press", { "wm-list__meta--right": A.role === "user" }])
3952
3978
  }, [
3953
- A.role !== "user" ? (c(), d("span", zr, v(s.roleLabel(A)), 1)) : y("", !0),
3954
- A.role !== "user" && s.timeOf(S.message) ? (c(), d("span", qr, "·")) : y("", !0),
3955
- s.timeOf(S.message) ? (c(), d("span", Vr, v(s.timeOf(S.message)), 1)) : y("", !0)
3979
+ A.role !== "user" ? (c(), d("span", qr, v(s.roleLabel(A)), 1)) : y("", !0),
3980
+ A.role !== "user" && s.timeOf(S.message) ? (c(), d("span", Vr, "·")) : y("", !0),
3981
+ s.timeOf(S.message) ? (c(), d("span", Kr, v(s.timeOf(S.message)), 1)) : y("", !0)
3956
3982
  ], 2)) : y("", !0)
3957
3983
  ], 64))), 128)),
3958
3984
  (A.role !== "user" || s.lastTimeOf(A)) && !s.hasTrailingOverlay(A) ? (c(), d("div", {
3959
3985
  key: 0,
3960
3986
  class: O(["wm-list__meta", { "wm-list__meta--right": A.role === "user" }])
3961
3987
  }, [
3962
- A.role !== "user" ? (c(), d("span", Kr, v(s.roleLabel(A)), 1)) : y("", !0),
3963
- A.role !== "user" && s.lastTimeOf(A) ? (c(), d("span", $r, "·")) : y("", !0),
3964
- s.lastTimeOf(A) ? (c(), d("span", Wr, v(s.lastTimeOf(A)), 1)) : y("", !0)
3988
+ A.role !== "user" ? (c(), d("span", $r, v(s.roleLabel(A)), 1)) : y("", !0),
3989
+ A.role !== "user" && s.lastTimeOf(A) ? (c(), d("span", Wr, "·")) : y("", !0),
3990
+ s.lastTimeOf(A) ? (c(), d("span", Gr, v(s.lastTimeOf(A)), 1)) : y("", !0)
3965
3991
  ], 2)) : y("", !0)
3966
3992
  ], 64))
3967
3993
  ], 2)) : y("", !0)
3968
3994
  ], 64))), 128)),
3969
- n.streamingActive ? (c(), d("div", Gr, [
3970
- a("div", Yr, [
3995
+ n.streamingActive ? (c(), d("div", Yr, [
3996
+ a("div", Jr, [
3971
3997
  V(o, {
3972
3998
  size: 26,
3973
3999
  tail: !0,
@@ -4001,14 +4027,14 @@ function Qr(e, t, n, i, r, s) {
4001
4027
  }, [
4002
4028
  a("path", { d: "M6 9l6 6 6-6" })
4003
4029
  ], -1)
4004
- ])], 8, Jr)) : y("", !0)
4030
+ ])], 8, Qr)) : y("", !0)
4005
4031
  ]),
4006
4032
  _: 1
4007
4033
  })
4008
4034
  ]);
4009
4035
  }
4010
- const Xr = /* @__PURE__ */ N(xr, [["render", Qr], ["__scopeId", "data-v-9ddbd0e3"]]), he = typeof navigator < "u" && !!navigator.mediaDevices && typeof navigator.mediaDevices.getDisplayMedia == "function", Ae = typeof window < "u" && typeof window.MediaRecorder < "u";
4011
- function Zr() {
4036
+ const Zr = /* @__PURE__ */ N(Or, [["render", Xr], ["__scopeId", "data-v-9ddbd0e3"]]), he = typeof navigator < "u" && !!navigator.mediaDevices && typeof navigator.mediaDevices.getDisplayMedia == "function", Ae = typeof window < "u" && typeof window.MediaRecorder < "u";
4037
+ function ei() {
4012
4038
  return Ae && [
4013
4039
  "video/webm;codecs=vp9,opus",
4014
4040
  "video/webm;codecs=vp8,opus",
@@ -4028,10 +4054,10 @@ function Fe({ audio: e }) {
4028
4054
  systemAudio: e ? "include" : "exclude"
4029
4055
  };
4030
4056
  }
4031
- function oo(e) {
4057
+ function lo(e) {
4032
4058
  return e ? e.startsWith("image/") ? "image" : e.startsWith("video/") ? "video" : "file" : "file";
4033
4059
  }
4034
- async function ei() {
4060
+ async function ti() {
4035
4061
  if (!he) return null;
4036
4062
  let e;
4037
4063
  try {
@@ -4042,7 +4068,7 @@ async function ei() {
4042
4068
  return (t == null ? void 0 : t.name) !== "NotAllowedError" && console.error("[media] screenshot picker", t), null;
4043
4069
  }
4044
4070
  try {
4045
- return await ti(e);
4071
+ return await ni(e);
4046
4072
  } catch (t) {
4047
4073
  return console.error("[media] screenshot capture", t), null;
4048
4074
  } finally {
@@ -4051,7 +4077,7 @@ async function ei() {
4051
4077
  });
4052
4078
  }
4053
4079
  }
4054
- async function ti(e) {
4080
+ async function ni(e) {
4055
4081
  const t = document.createElement("video");
4056
4082
  t.muted = !0, t.playsInline = !0, t.srcObject = e, await t.play(), await new Promise((l) => requestAnimationFrame(l));
4057
4083
  const n = t.videoWidth || 1280, i = t.videoHeight || 720, r = document.createElement("canvas");
@@ -4064,7 +4090,7 @@ async function ti(e) {
4064
4090
  }), o = (/* @__PURE__ */ new Date()).toISOString().replace(/[:.]/g, "-").slice(0, 19);
4065
4091
  return new File([s], `capture-${o}.png`, { type: "image/png" });
4066
4092
  }
4067
- async function ni(e = {}) {
4093
+ async function si(e = {}) {
4068
4094
  var k;
4069
4095
  if (!he || !Ae) return null;
4070
4096
  let t;
@@ -4075,7 +4101,7 @@ async function ni(e = {}) {
4075
4101
  } catch (w) {
4076
4102
  return (w == null ? void 0 : w.name) !== "NotAllowedError" && console.error("[media] record picker", w), null;
4077
4103
  }
4078
- const n = Zr();
4104
+ const n = ei();
4079
4105
  let i;
4080
4106
  try {
4081
4107
  i = n ? new window.MediaRecorder(t, { mimeType: n }) : new window.MediaRecorder(t);
@@ -4093,7 +4119,7 @@ async function ni(e = {}) {
4093
4119
  if (s && clearInterval(s), t.getTracks().forEach((B) => {
4094
4120
  B.stop();
4095
4121
  }), r.length) {
4096
- const B = i.mimeType || n || "video/webm", A = new Blob(r, { type: B }), H = /mp4/.test(B) ? "mp4" : "webm", S = (/* @__PURE__ */ new Date()).toISOString().replace(/[:.]/g, "-").slice(0, 19), U = new File([A], `ecran-${S}.${H}`, {
4122
+ const B = i.mimeType || n || "video/webm", A = new Blob(r, { type: B }), z = /mp4/.test(B) ? "mp4" : "webm", S = (/* @__PURE__ */ new Date()).toISOString().replace(/[:.]/g, "-").slice(0, 19), U = new File([A], `ecran-${S}.${z}`, {
4097
4123
  type: B
4098
4124
  });
4099
4125
  (w = e.onfinalize) == null || w.call(e, U);
@@ -4129,7 +4155,7 @@ async function ni(e = {}) {
4129
4155
  }
4130
4156
  };
4131
4157
  }
4132
- const si = [
4158
+ const ri = [
4133
4159
  {
4134
4160
  action: "file",
4135
4161
  labelKey: "composer.attachFile",
@@ -4145,7 +4171,7 @@ const si = [
4145
4171
  labelKey: "composer.recordScreen",
4146
4172
  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"
4147
4173
  }
4148
- ], ri = {
4174
+ ], ii = {
4149
4175
  name: "WmComposer",
4150
4176
  inject: {
4151
4177
  // Translator shared by the Messenger shell; French fallback when
@@ -4179,7 +4205,7 @@ const si = [
4179
4205
  return !this.disabled && !!this.local.trim();
4180
4206
  },
4181
4207
  attachItems() {
4182
- return si.map((e) => ({
4208
+ return ri.map((e) => ({
4183
4209
  ...e,
4184
4210
  label: this.t(e.labelKey),
4185
4211
  disabled: e.action === "screenshot" && !he || e.action === "record" && (!he || !Ae)
@@ -4253,13 +4279,13 @@ const si = [
4253
4279
  },
4254
4280
  async captureScreenshot() {
4255
4281
  if (this.disabled) return;
4256
- const e = await ei();
4282
+ const e = await ti();
4257
4283
  e && this.$emit("attach", e);
4258
4284
  },
4259
4285
  async startRecording() {
4260
4286
  if (this.recording || this.disabled) return;
4261
4287
  this.recordingElapsed = 0;
4262
- const e = await ni({
4288
+ const e = await si({
4263
4289
  onstart: () => {
4264
4290
  this.recording = !0;
4265
4291
  },
@@ -4301,30 +4327,30 @@ const si = [
4301
4327
  !e || !this._vvHandler || (e.removeEventListener("resize", this._vvHandler), e.removeEventListener("scroll", this._vvHandler), this._vvHandler = null);
4302
4328
  }
4303
4329
  }
4304
- }, ii = {
4330
+ }, ai = {
4305
4331
  key: 0,
4306
4332
  class: "wm-rec"
4307
- }, ai = { class: "wm-rec__lbl" }, oi = {
4333
+ }, oi = { class: "wm-rec__lbl" }, li = {
4308
4334
  key: 1,
4309
4335
  class: "wm-compose__menu",
4310
4336
  role: "menu"
4311
- }, li = ["disabled", "onClick"], ci = { class: "wm-compose__menuIcon" }, di = {
4337
+ }, ci = ["disabled", "onClick"], di = { class: "wm-compose__menuIcon" }, ui = {
4312
4338
  viewBox: "0 0 24 24",
4313
4339
  width: "14",
4314
4340
  height: "14",
4315
4341
  "aria-hidden": "true"
4316
- }, ui = ["d"], hi = ["placeholder", "disabled"], mi = { class: "wm-compose__actions" }, fi = ["title", "aria-label", "disabled"], _i = ["disabled", "aria-label"];
4317
- function gi(e, t, n, i, r, s) {
4342
+ }, hi = ["d"], mi = ["placeholder", "disabled"], fi = { class: "wm-compose__actions" }, _i = ["title", "aria-label", "disabled"], gi = ["disabled", "aria-label"];
4343
+ function pi(e, t, n, i, r, s) {
4318
4344
  return c(), d("div", {
4319
4345
  class: O(["wm-compose-wrap", { "wm-compose-wrap--sheet": n.displayMode === "sheet" }]),
4320
- style: z(r.kbOffset ? { transform: `translateY(-${r.kbOffset}px)` } : null)
4346
+ style: H(r.kbOffset ? { transform: `translateY(-${r.kbOffset}px)` } : null)
4321
4347
  }, [
4322
- r.recording ? (c(), d("div", ii, [
4348
+ r.recording ? (c(), d("div", ai, [
4323
4349
  t[8] || (t[8] = a("span", {
4324
4350
  class: "wm-rec__dot",
4325
4351
  "aria-hidden": "true"
4326
4352
  }, null, -1)),
4327
- a("span", ai, v(s.t("composer.recording", { time: s.recordingElapsedLabel })), 1),
4353
+ a("span", oi, v(s.t("composer.recording", { time: s.recordingElapsedLabel })), 1),
4328
4354
  a("button", {
4329
4355
  type: "button",
4330
4356
  class: "wm-rec__stop",
@@ -4347,7 +4373,7 @@ function gi(e, t, n, i, r, s) {
4347
4373
  class: "wm-compose__overlay",
4348
4374
  onClick: t[2] || (t[2] = (o) => r.attachOpen = !1)
4349
4375
  })) : y("", !0),
4350
- r.attachOpen ? (c(), d("div", oi, [
4376
+ r.attachOpen ? (c(), d("div", li, [
4351
4377
  (c(!0), d(E, null, F(s.attachItems, (o) => (c(), d("button", {
4352
4378
  key: o.action,
4353
4379
  type: "button",
@@ -4355,8 +4381,8 @@ function gi(e, t, n, i, r, s) {
4355
4381
  disabled: o.disabled,
4356
4382
  onClick: (l) => s.onAttachAction(o.action)
4357
4383
  }, [
4358
- a("span", ci, [
4359
- (c(), d("svg", di, [
4384
+ a("span", di, [
4385
+ (c(), d("svg", ui, [
4360
4386
  a("path", {
4361
4387
  d: o.path,
4362
4388
  stroke: "currentColor",
@@ -4364,11 +4390,11 @@ function gi(e, t, n, i, r, s) {
4364
4390
  "stroke-linecap": "round",
4365
4391
  "stroke-linejoin": "round",
4366
4392
  fill: "none"
4367
- }, null, 8, ui)
4393
+ }, null, 8, hi)
4368
4394
  ]))
4369
4395
  ]),
4370
4396
  a("span", null, v(o.label), 1)
4371
- ], 8, li))), 128))
4397
+ ], 8, ci))), 128))
4372
4398
  ])) : y("", !0),
4373
4399
  $(a("textarea", {
4374
4400
  ref: "inputEl",
@@ -4379,10 +4405,10 @@ function gi(e, t, n, i, r, s) {
4379
4405
  disabled: n.disabled,
4380
4406
  onKeydown: t[4] || (t[4] = (...o) => s.onKeydown && s.onKeydown(...o)),
4381
4407
  onInput: t[5] || (t[5] = (...o) => s.autosize && s.autosize(...o))
4382
- }, null, 40, hi), [
4408
+ }, null, 40, mi), [
4383
4409
  [X, r.local]
4384
4410
  ]),
4385
- a("div", mi, [
4411
+ a("div", fi, [
4386
4412
  a("button", {
4387
4413
  type: "button",
4388
4414
  class: O(["wm-compose__icon", { "is-open": r.attachOpen }]),
@@ -4404,7 +4430,7 @@ function gi(e, t, n, i, r, s) {
4404
4430
  }, [
4405
4431
  a("path", { d: "M21.44 11.05l-9.19 9.19a6 6 0 01-8.49-8.49l9.19-9.19a4 4 0 015.66 5.66l-9.2 9.19a2 2 0 01-2.83-2.83l8.49-8.48" })
4406
4432
  ], -1)
4407
- ])], 10, fi),
4433
+ ])], 10, _i),
4408
4434
  a("button", {
4409
4435
  type: "submit",
4410
4436
  class: O(["wm-compose__send", { "is-empty": !s.canSend }]),
@@ -4424,12 +4450,12 @@ function gi(e, t, n, i, r, s) {
4424
4450
  }, [
4425
4451
  a("path", { d: "M22 2L11 13M22 2l-7 20-4-9-9-4 20-7z" })
4426
4452
  ], -1)
4427
- ])], 10, _i)
4453
+ ])], 10, gi)
4428
4454
  ])
4429
4455
  ], 34)
4430
4456
  ], 6);
4431
4457
  }
4432
- const pi = /* @__PURE__ */ N(ri, [["render", gi], ["__scopeId", "data-v-01e81a27"]]), vi = {
4458
+ const vi = /* @__PURE__ */ N(ii, [["render", pi], ["__scopeId", "data-v-01e81a27"]]), yi = {
4433
4459
  name: "WmSuggestionChips",
4434
4460
  props: {
4435
4461
  items: { type: Array, default: () => [] },
@@ -4446,8 +4472,8 @@ const pi = /* @__PURE__ */ N(ri, [["render", gi], ["__scopeId", "data-v-01e81a27
4446
4472
  return this.items.map((e) => (e == null ? void 0 : e.label) || (e == null ? void 0 : e.text) || "").join("§");
4447
4473
  }
4448
4474
  }
4449
- }, yi = ["onClick"];
4450
- function wi(e, t, n, i, r, s) {
4475
+ }, wi = ["onClick"];
4476
+ function bi(e, t, n, i, r, s) {
4451
4477
  return n.items.length ? (c(), d("div", {
4452
4478
  key: s.batchKey,
4453
4479
  class: "wm-chips"
@@ -4456,12 +4482,12 @@ function wi(e, t, n, i, r, s) {
4456
4482
  key: l,
4457
4483
  type: "button",
4458
4484
  class: "wm-chip",
4459
- style: z({ animationDelay: n.baseDelay + l * n.stepDelay + "ms" }),
4485
+ style: H({ animationDelay: n.baseDelay + l * n.stepDelay + "ms" }),
4460
4486
  onClick: (p) => e.$emit("select", o)
4461
- }, v(o.label), 13, yi))), 128))
4487
+ }, v(o.label), 13, wi))), 128))
4462
4488
  ])) : y("", !0);
4463
4489
  }
4464
- const bi = /* @__PURE__ */ N(vi, [["render", wi], ["__scopeId", "data-v-47ad8085"]]), ki = {
4490
+ const ki = /* @__PURE__ */ N(yi, [["render", bi], ["__scopeId", "data-v-47ad8085"]]), Ci = {
4465
4491
  name: "WmApprovalCard",
4466
4492
  components: { AIAvatar: le },
4467
4493
  inject: {
@@ -4505,27 +4531,27 @@ const bi = /* @__PURE__ */ N(vi, [["render", wi], ["__scopeId", "data-v-47ad8085
4505
4531
  return ((e = this.rejectCallback) == null ? void 0 : e.label) || this.t("approval.reject");
4506
4532
  }
4507
4533
  }
4508
- }, Ci = { class: "wm-approval" }, Ai = { class: "wm-approval__head" }, Si = { class: "wm-approval__icon" }, Mi = { class: "wm-approval__main" }, Ti = { class: "wm-approval__title" }, xi = {
4534
+ }, Ai = { class: "wm-approval" }, Si = { class: "wm-approval__head" }, Mi = { class: "wm-approval__icon" }, Ti = { class: "wm-approval__main" }, xi = { class: "wm-approval__title" }, Oi = {
4509
4535
  key: 0,
4510
4536
  class: "wm-approval__detail"
4511
- }, Oi = { class: "wm-approval__actions" };
4512
- function Ii(e, t, n, i, r, s) {
4537
+ }, Ii = { class: "wm-approval__actions" };
4538
+ function Li(e, t, n, i, r, s) {
4513
4539
  const o = R("AIAvatar");
4514
- return c(), d("div", Ci, [
4515
- a("div", Ai, [
4516
- a("div", Si, [
4540
+ return c(), d("div", Ai, [
4541
+ a("div", Si, [
4542
+ a("div", Mi, [
4517
4543
  V(o, {
4518
4544
  size: 24,
4519
4545
  name: n.agentName,
4520
4546
  "image-url": n.agentAvatarUrl
4521
4547
  }, null, 8, ["name", "image-url"])
4522
4548
  ]),
4523
- a("div", Mi, [
4524
- a("div", Ti, v(n.action), 1),
4525
- n.detail ? (c(), d("div", xi, v(n.detail), 1)) : y("", !0)
4549
+ a("div", Ti, [
4550
+ a("div", xi, v(n.action), 1),
4551
+ n.detail ? (c(), d("div", Oi, v(n.detail), 1)) : y("", !0)
4526
4552
  ])
4527
4553
  ]),
4528
- a("div", Oi, [
4554
+ a("div", Ii, [
4529
4555
  s.rejectId ? (c(), d("button", {
4530
4556
  key: 0,
4531
4557
  type: "button",
@@ -4541,9 +4567,9 @@ function Ii(e, t, n, i, r, s) {
4541
4567
  ])
4542
4568
  ]);
4543
4569
  }
4544
- const Li = /* @__PURE__ */ N(ki, [["render", Ii], ["__scopeId", "data-v-a2bed37e"]]);
4570
+ const Ei = /* @__PURE__ */ N(Ci, [["render", Li], ["__scopeId", "data-v-a2bed37e"]]);
4545
4571
  let Ee = 0;
4546
- const Ei = /* @__PURE__ */ new Set([
4572
+ const Bi = /* @__PURE__ */ new Set([
4547
4573
  "text",
4548
4574
  "textarea",
4549
4575
  "number",
@@ -4551,7 +4577,7 @@ const Ei = /* @__PURE__ */ new Set([
4551
4577
  "select",
4552
4578
  "multiselect",
4553
4579
  "date"
4554
- ]), Bi = {
4580
+ ]), Ri = {
4555
4581
  name: "WmFormCard",
4556
4582
  components: { AIAvatar: le },
4557
4583
  inject: {
@@ -4581,7 +4607,7 @@ const Ei = /* @__PURE__ */ new Set([
4581
4607
  // douteux.
4582
4608
  normalizedFields() {
4583
4609
  var t;
4584
- return (Array.isArray((t = this.form) == null ? void 0 : t.fields) ? this.form.fields : []).filter((n) => !(!(n != null && n.key) || !(n != null && n.label) || !Ei.has(n == null ? void 0 : n.type) || (n.type === "select" || n.type === "multiselect") && (!Array.isArray(n.options) || n.options.length === 0)));
4610
+ return (Array.isArray((t = this.form) == null ? void 0 : t.fields) ? this.form.fields : []).filter((n) => !(!(n != null && n.key) || !(n != null && n.label) || !Bi.has(n == null ? void 0 : n.type) || (n.type === "select" || n.type === "multiselect") && (!Array.isArray(n.options) || n.options.length === 0)));
4585
4611
  }
4586
4612
  },
4587
4613
  created() {
@@ -4634,47 +4660,47 @@ const Ei = /* @__PURE__ */ new Set([
4634
4660
  }
4635
4661
  }
4636
4662
  }
4637
- }, Ri = { class: "wm-form" }, Ni = { class: "wm-form__head" }, Pi = { class: "wm-form__icon" }, Ui = { class: "wm-form__main" }, Fi = { class: "wm-form__title" }, Di = {
4663
+ }, Ni = { class: "wm-form" }, Pi = { class: "wm-form__head" }, Ui = { class: "wm-form__icon" }, Fi = { class: "wm-form__main" }, Di = { class: "wm-form__title" }, ji = {
4638
4664
  key: 0,
4639
4665
  class: "wm-form__detail"
4640
- }, ji = ["for"], Hi = {
4666
+ }, Hi = ["for"], zi = {
4641
4667
  key: 0,
4642
4668
  class: "wm-form__req",
4643
4669
  "aria-hidden": "true"
4644
- }, zi = ["id", "onUpdate:modelValue", "placeholder", "required", "disabled"], qi = ["id", "onUpdate:modelValue", "placeholder", "required", "disabled"], Vi = ["id", "onUpdate:modelValue", "placeholder", "required", "disabled"], Ki = ["id", "onUpdate:modelValue", "required", "disabled"], $i = {
4670
+ }, qi = ["id", "onUpdate:modelValue", "placeholder", "required", "disabled"], Vi = ["id", "onUpdate:modelValue", "placeholder", "required", "disabled"], Ki = ["id", "onUpdate:modelValue", "placeholder", "required", "disabled"], $i = ["id", "onUpdate:modelValue", "required", "disabled"], Wi = {
4645
4671
  key: 4,
4646
4672
  class: "wm-form__bool"
4647
- }, Wi = ["id", "onUpdate:modelValue", "disabled"], Gi = ["id", "onUpdate:modelValue", "required", "disabled"], Yi = {
4673
+ }, Gi = ["id", "onUpdate:modelValue", "disabled"], Yi = ["id", "onUpdate:modelValue", "required", "disabled"], Ji = {
4648
4674
  value: "",
4649
4675
  disabled: ""
4650
- }, Ji = ["value"], Qi = {
4676
+ }, Qi = ["value"], Xi = {
4651
4677
  key: 6,
4652
4678
  class: "wm-form__multi"
4653
- }, Xi = ["value", "checked", "disabled", "onChange"], Zi = {
4679
+ }, Zi = ["value", "checked", "disabled", "onChange"], ea = {
4654
4680
  key: 0,
4655
4681
  class: "wm-form__err"
4656
- }, ea = ["disabled"], ta = {
4682
+ }, ta = ["disabled"], na = {
4657
4683
  key: 0,
4658
4684
  class: "wm-form__spinner",
4659
4685
  "aria-hidden": "true"
4660
- }, na = {
4686
+ }, sa = {
4661
4687
  key: 2,
4662
4688
  class: "wm-form__doneLbl"
4663
4689
  };
4664
- function sa(e, t, n, i, r, s) {
4690
+ function ra(e, t, n, i, r, s) {
4665
4691
  const o = R("AIAvatar");
4666
- return c(), d("div", Ri, [
4667
- a("div", Ni, [
4668
- a("div", Pi, [
4692
+ return c(), d("div", Ni, [
4693
+ a("div", Pi, [
4694
+ a("div", Ui, [
4669
4695
  V(o, {
4670
4696
  size: 24,
4671
4697
  name: n.agentName,
4672
4698
  "image-url": n.agentAvatarUrl
4673
4699
  }, null, 8, ["name", "image-url"])
4674
4700
  ]),
4675
- a("div", Ui, [
4676
- a("div", Fi, v(n.form.title || s.t("form.title")), 1),
4677
- n.form.description ? (c(), d("div", Di, v(n.form.description), 1)) : y("", !0)
4701
+ a("div", Fi, [
4702
+ a("div", Di, v(n.form.title || s.t("form.title")), 1),
4703
+ n.form.description ? (c(), d("div", ji, v(n.form.description), 1)) : y("", !0)
4678
4704
  ])
4679
4705
  ]),
4680
4706
  a("form", {
@@ -4690,8 +4716,8 @@ function sa(e, t, n, i, r, s) {
4690
4716
  class: "wm-form__label"
4691
4717
  }, [
4692
4718
  ye(v(l.label), 1),
4693
- l.required ? (c(), d("span", Hi, "*")) : y("", !0)
4694
- ], 8, ji),
4719
+ l.required ? (c(), d("span", zi, "*")) : y("", !0)
4720
+ ], 8, Hi),
4695
4721
  l.type === "text" ? $((c(), d("input", {
4696
4722
  key: 0,
4697
4723
  id: `wm-f-${r._uid}-${l.key}`,
@@ -4701,7 +4727,7 @@ function sa(e, t, n, i, r, s) {
4701
4727
  placeholder: l.placeholder || "",
4702
4728
  required: l.required,
4703
4729
  disabled: n.readOnly || r.busy
4704
- }, null, 8, zi)), [
4730
+ }, null, 8, qi)), [
4705
4731
  [X, r.values[l.key]]
4706
4732
  ]) : l.type === "textarea" ? $((c(), d("textarea", {
4707
4733
  key: 1,
@@ -4712,7 +4738,7 @@ function sa(e, t, n, i, r, s) {
4712
4738
  placeholder: l.placeholder || "",
4713
4739
  required: l.required,
4714
4740
  disabled: n.readOnly || r.busy
4715
- }, null, 8, qi)), [
4741
+ }, null, 8, Vi)), [
4716
4742
  [X, r.values[l.key]]
4717
4743
  ]) : l.type === "number" ? $((c(), d("input", {
4718
4744
  key: 2,
@@ -4723,7 +4749,7 @@ function sa(e, t, n, i, r, s) {
4723
4749
  placeholder: l.placeholder || "",
4724
4750
  required: l.required,
4725
4751
  disabled: n.readOnly || r.busy
4726
- }, null, 8, Vi)), [
4752
+ }, null, 8, Ki)), [
4727
4753
  [
4728
4754
  X,
4729
4755
  r.values[l.key],
@@ -4738,15 +4764,15 @@ function sa(e, t, n, i, r, s) {
4738
4764
  class: "wm-form__input",
4739
4765
  required: l.required,
4740
4766
  disabled: n.readOnly || r.busy
4741
- }, null, 8, Ki)), [
4767
+ }, null, 8, $i)), [
4742
4768
  [X, r.values[l.key]]
4743
- ]) : l.type === "boolean" ? (c(), d("label", $i, [
4769
+ ]) : l.type === "boolean" ? (c(), d("label", Wi, [
4744
4770
  $(a("input", {
4745
4771
  id: `wm-f-${r._uid}-${l.key}`,
4746
4772
  "onUpdate:modelValue": (p) => r.values[l.key] = p,
4747
4773
  type: "checkbox",
4748
4774
  disabled: n.readOnly || r.busy
4749
- }, null, 8, Wi), [
4775
+ }, null, 8, Gi), [
4750
4776
  [ze, r.values[l.key]]
4751
4777
  ]),
4752
4778
  a("span", null, v(l.placeholder || s.t("common.yes")), 1)
@@ -4758,14 +4784,14 @@ function sa(e, t, n, i, r, s) {
4758
4784
  required: l.required,
4759
4785
  disabled: n.readOnly || r.busy
4760
4786
  }, [
4761
- a("option", Yi, v(l.placeholder || s.t("form.choose")), 1),
4787
+ a("option", Ji, v(l.placeholder || s.t("form.choose")), 1),
4762
4788
  (c(!0), d(E, null, F(l.options, (p) => (c(), d("option", {
4763
4789
  key: p.value,
4764
4790
  value: p.value
4765
- }, v(p.label), 9, Ji))), 128))
4766
- ], 8, Gi)), [
4791
+ }, v(p.label), 9, Qi))), 128))
4792
+ ], 8, Yi)), [
4767
4793
  [qe, r.values[l.key]]
4768
- ]) : l.type === "multiselect" ? (c(), d("div", Qi, [
4794
+ ]) : l.type === "multiselect" ? (c(), d("div", Xi, [
4769
4795
  (c(!0), d(E, null, F(l.options, (p) => (c(), d("label", {
4770
4796
  key: p.value,
4771
4797
  class: "wm-form__multiItem"
@@ -4780,25 +4806,25 @@ function sa(e, t, n, i, r, s) {
4780
4806
  p.value,
4781
4807
  k.target.checked
4782
4808
  )
4783
- }, null, 40, Xi),
4809
+ }, null, 40, Zi),
4784
4810
  a("span", null, v(p.label), 1)
4785
4811
  ]))), 128))
4786
4812
  ])) : y("", !0)
4787
4813
  ]))), 128)),
4788
- r.error ? (c(), d("div", Zi, v(r.error), 1)) : y("", !0),
4789
- n.readOnly ? (c(), d("div", na, v(s.t("form.responseSent")), 1)) : (c(), d("button", {
4814
+ r.error ? (c(), d("div", ea, v(r.error), 1)) : y("", !0),
4815
+ n.readOnly ? (c(), d("div", sa, v(s.t("form.responseSent")), 1)) : (c(), d("button", {
4790
4816
  key: 1,
4791
4817
  type: "submit",
4792
4818
  class: "wm-form__submit",
4793
4819
  disabled: r.busy
4794
4820
  }, [
4795
- r.busy ? (c(), d("span", ta)) : y("", !0),
4821
+ r.busy ? (c(), d("span", na)) : y("", !0),
4796
4822
  a("span", null, v(r.busy ? s.t("common.sending") : n.form.submit_label || s.t("common.send")), 1)
4797
- ], 8, ea))
4823
+ ], 8, ta))
4798
4824
  ], 32)
4799
4825
  ]);
4800
4826
  }
4801
- const ra = /* @__PURE__ */ N(Bi, [["render", sa], ["__scopeId", "data-v-fe65cc56"]]), ia = {
4827
+ const ia = /* @__PURE__ */ N(Ri, [["render", ra], ["__scopeId", "data-v-fe65cc56"]]), aa = {
4802
4828
  name: "WmFeedback",
4803
4829
  inject: {
4804
4830
  // Translator shared by the Messenger shell; French fallback when
@@ -4832,13 +4858,13 @@ const ra = /* @__PURE__ */ N(Bi, [["render", sa], ["__scopeId", "data-v-fe65cc56
4832
4858
  !this.sel || this.busy || this.$emit("submit", { rating: this.sel });
4833
4859
  }
4834
4860
  }
4835
- }, aa = { class: "wm-fb" }, oa = { class: "wm-fb__title" }, la = { class: "wm-fb__sub" }, ca = { class: "wm-fb__row" }, da = ["onClick"], ua = { class: "wm-fb__emoji" }, ha = { class: "wm-fb__label" }, ma = ["disabled"], fa = {
4861
+ }, oa = { class: "wm-fb" }, la = { class: "wm-fb__title" }, ca = { class: "wm-fb__sub" }, da = { class: "wm-fb__row" }, ua = ["onClick"], ha = { class: "wm-fb__emoji" }, ma = { class: "wm-fb__label" }, fa = ["disabled"], _a = {
4836
4862
  key: 1,
4837
4863
  class: "wm-fb__done"
4838
- }, _a = { class: "wm-fb__doneTitle" }, ga = { class: "wm-fb__doneSub" };
4839
- function pa(e, t, n, i, r, s) {
4840
- return c(), d("div", aa, [
4841
- n.done ? (c(), d("div", fa, [
4864
+ }, ga = { class: "wm-fb__doneTitle" }, pa = { class: "wm-fb__doneSub" };
4865
+ function va(e, t, n, i, r, s) {
4866
+ return c(), d("div", oa, [
4867
+ n.done ? (c(), d("div", _a, [
4842
4868
  t[1] || (t[1] = a("div", { class: "wm-fb__check" }, [
4843
4869
  a("svg", {
4844
4870
  width: "16",
@@ -4854,32 +4880,32 @@ function pa(e, t, n, i, r, s) {
4854
4880
  a("path", { d: "M20 6L9 17l-5-5" })
4855
4881
  ])
4856
4882
  ], -1)),
4857
- a("div", _a, v(s.t("feedback.doneTitle")), 1),
4858
- a("div", ga, v(s.t("feedback.doneSubtitle")), 1)
4883
+ a("div", ga, v(s.t("feedback.doneTitle")), 1),
4884
+ a("div", pa, v(s.t("feedback.doneSubtitle")), 1)
4859
4885
  ])) : (c(), d(E, { key: 0 }, [
4860
- a("div", oa, v(s.t("feedback.question")), 1),
4861
- a("div", la, v(s.t("feedback.subtitle")), 1),
4862
- a("div", ca, [
4886
+ a("div", la, v(s.t("feedback.question")), 1),
4887
+ a("div", ca, v(s.t("feedback.subtitle")), 1),
4888
+ a("div", da, [
4863
4889
  (c(!0), d(E, null, F(s.options, (o) => (c(), d("button", {
4864
4890
  key: o.v,
4865
4891
  type: "button",
4866
4892
  class: O(["wm-fb__opt", { "is-selected": r.sel === o.v }]),
4867
4893
  onClick: (l) => r.sel = o.v
4868
4894
  }, [
4869
- a("span", ua, v(o.e), 1),
4870
- a("span", ha, v(o.l), 1)
4871
- ], 10, da))), 128))
4895
+ a("span", ha, v(o.e), 1),
4896
+ a("span", ma, v(o.l), 1)
4897
+ ], 10, ua))), 128))
4872
4898
  ]),
4873
4899
  a("button", {
4874
4900
  type: "button",
4875
4901
  class: "wm-fb__send",
4876
4902
  disabled: !r.sel || n.busy,
4877
4903
  onClick: t[0] || (t[0] = (...o) => s.onSend && s.onSend(...o))
4878
- }, v(n.busy ? s.t("common.sending") : s.t("feedback.submit")), 9, ma)
4904
+ }, v(n.busy ? s.t("common.sending") : s.t("feedback.submit")), 9, fa)
4879
4905
  ], 64))
4880
4906
  ]);
4881
4907
  }
4882
- const va = /* @__PURE__ */ N(ia, [["render", pa], ["__scopeId", "data-v-9b630564"]]), ya = {
4908
+ const ya = /* @__PURE__ */ N(aa, [["render", va], ["__scopeId", "data-v-9b630564"]]), wa = {
4883
4909
  name: "WmMoreMenu",
4884
4910
  inject: {
4885
4911
  // Translator shared by the Messenger shell; French fallback when
@@ -4922,24 +4948,24 @@ const va = /* @__PURE__ */ N(ia, [["render", pa], ["__scopeId", "data-v-9b630564
4922
4948
  this.browserNotifOn = !this.browserNotifOn, this.$emit("browser-notif-toggle", this.browserNotifOn);
4923
4949
  }
4924
4950
  }
4925
- }, wa = { class: "wm-mm" }, ba = {
4951
+ }, ba = { class: "wm-mm" }, ka = {
4926
4952
  class: "wm-mm__pop",
4927
4953
  role: "menu"
4928
- }, ka = {
4954
+ }, Ca = {
4929
4955
  key: 0,
4930
4956
  class: "wm-mm__section"
4931
- }, Ca = { class: "wm-mm__label" }, Aa = { class: "wm-mm__label" }, Sa = {
4957
+ }, Aa = { class: "wm-mm__label" }, Sa = { class: "wm-mm__label" }, Ma = {
4932
4958
  key: 1,
4933
4959
  class: "wm-mm__sep"
4934
- }, Ma = { class: "wm-mm__section" }, Ta = { class: "wm-mm__label" }, xa = { class: "wm-mm__label" }, Oa = { class: "wm-mm__section" }, Ia = { class: "wm-mm__label" }, La = { class: "wm-mm__label" };
4935
- function Ea(e, t, n, i, r, s) {
4936
- return c(), d("div", wa, [
4960
+ }, Ta = { class: "wm-mm__section" }, xa = { class: "wm-mm__label" }, Oa = { class: "wm-mm__label" }, Ia = { class: "wm-mm__section" }, La = { class: "wm-mm__label" }, Ea = { class: "wm-mm__label" };
4961
+ function Ba(e, t, n, i, r, s) {
4962
+ return c(), d("div", ba, [
4937
4963
  a("div", {
4938
4964
  class: "wm-mm__scrim",
4939
4965
  onClick: t[0] || (t[0] = (o) => e.$emit("close"))
4940
4966
  }),
4941
- a("div", ba, [
4942
- n.canRename || n.canExport ? (c(), d("div", ka, [
4967
+ a("div", ka, [
4968
+ n.canRename || n.canExport ? (c(), d("div", Ca, [
4943
4969
  n.canRename ? (c(), d("button", {
4944
4970
  key: 0,
4945
4971
  type: "button",
@@ -4962,7 +4988,7 @@ function Ea(e, t, n, i, r, s) {
4962
4988
  a("path", { d: "M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4 12.5-12.5z" })
4963
4989
  ])
4964
4990
  ], -1)),
4965
- a("span", Ca, v(s.t("moreMenu.editTitle")), 1)
4991
+ a("span", Aa, v(s.t("moreMenu.editTitle")), 1)
4966
4992
  ])) : y("", !0),
4967
4993
  n.canExport ? (c(), d("button", {
4968
4994
  key: 1,
@@ -4985,12 +5011,12 @@ function Ea(e, t, n, i, r, s) {
4985
5011
  a("path", { d: "M4 12v8a2 2 0 002 2h12a2 2 0 002-2v-8M16 6l-4-4-4 4M12 2v13" })
4986
5012
  ])
4987
5013
  ], -1)),
4988
- a("span", Aa, v(s.t("moreMenu.exportTranscript")), 1),
5014
+ a("span", Sa, v(s.t("moreMenu.exportTranscript")), 1),
4989
5015
  t[9] || (t[9] = a("span", { class: "wm-mm__hint" }, ".txt", -1))
4990
5016
  ])) : y("", !0)
4991
5017
  ])) : y("", !0),
4992
- n.canRename || n.canExport ? (c(), d("div", Sa)) : y("", !0),
4993
- a("div", Ma, [
5018
+ n.canRename || n.canExport ? (c(), d("div", Ma)) : y("", !0),
5019
+ a("div", Ta, [
4994
5020
  a("button", {
4995
5021
  type: "button",
4996
5022
  class: "wm-mm__item",
@@ -5012,7 +5038,7 @@ function Ea(e, t, n, i, r, s) {
5012
5038
  a("path", { d: "M15.54 8.46a5 5 0 010 7.07M19.07 4.93a10 10 0 010 14.14" })
5013
5039
  ])
5014
5040
  ], -1)),
5015
- a("span", Ta, v(s.t("moreMenu.sound")), 1),
5041
+ a("span", xa, v(s.t("moreMenu.sound")), 1),
5016
5042
  a("span", {
5017
5043
  class: O(["wm-mm__toggle", { "wm-mm__toggle--on": r.soundOn }])
5018
5044
  }, [...t[10] || (t[10] = [
@@ -5039,7 +5065,7 @@ function Ea(e, t, n, i, r, s) {
5039
5065
  a("path", { d: "M15 17h5l-1.4-1.4A2 2 0 0118 14.2V11a6 6 0 10-12 0v3.2c0 .5-.2 1-.6 1.4L4 17h5m6 0a3 3 0 11-6 0" })
5040
5066
  ])
5041
5067
  ], -1)),
5042
- a("span", xa, v(s.t("moreMenu.browserNotifications")), 1),
5068
+ a("span", Oa, v(s.t("moreMenu.browserNotifications")), 1),
5043
5069
  a("span", {
5044
5070
  class: O(["wm-mm__toggle", { "wm-mm__toggle--on": r.browserNotifOn }])
5045
5071
  }, [...t[12] || (t[12] = [
@@ -5048,7 +5074,7 @@ function Ea(e, t, n, i, r, s) {
5048
5074
  ])
5049
5075
  ]),
5050
5076
  t[16] || (t[16] = a("div", { class: "wm-mm__sep" }, null, -1)),
5051
- a("div", Oa, [
5077
+ a("div", Ia, [
5052
5078
  n.statusUrl ? (c(), d("button", {
5053
5079
  key: 0,
5054
5080
  type: "button",
@@ -5070,7 +5096,7 @@ function Ea(e, t, n, i, r, s) {
5070
5096
  a("path", { d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zM10 6v4l3 2" })
5071
5097
  ])
5072
5098
  ], -1)),
5073
- a("span", Ia, v(s.t("moreMenu.serviceStatus")), 1)
5099
+ a("span", La, v(s.t("moreMenu.serviceStatus")), 1)
5074
5100
  ])) : y("", !0),
5075
5101
  n.helpUrl ? (c(), d("button", {
5076
5102
  key: 1,
@@ -5093,13 +5119,13 @@ function Ea(e, t, n, i, r, s) {
5093
5119
  a("path", { d: "M9 11a3 3 0 116 0c0 2-3 2-3 5M12 19h.01M12 22a10 10 0 110-20 10 10 0 010 20z" })
5094
5120
  ])
5095
5121
  ], -1)),
5096
- a("span", La, v(s.t("moreMenu.helpCenter")), 1)
5122
+ a("span", Ea, v(s.t("moreMenu.helpCenter")), 1)
5097
5123
  ])) : y("", !0)
5098
5124
  ])
5099
5125
  ])
5100
5126
  ]);
5101
5127
  }
5102
- const Ba = /* @__PURE__ */ N(ya, [["render", Ea], ["__scopeId", "data-v-76281e95"]]), Ra = {
5128
+ const Ra = /* @__PURE__ */ N(wa, [["render", Ba], ["__scopeId", "data-v-76281e95"]]), Na = {
5103
5129
  name: "WmRenameDialog",
5104
5130
  inject: {
5105
5131
  // Translator shared by the Messenger shell; French fallback when
@@ -5141,20 +5167,20 @@ const Ba = /* @__PURE__ */ N(ya, [["render", Ea], ["__scopeId", "data-v-76281e95
5141
5167
  this.canSubmit && this.$emit("submit", this.value.trim());
5142
5168
  }
5143
5169
  }
5144
- }, Na = { class: "wm-dialog" }, Pa = {
5170
+ }, Pa = { class: "wm-dialog" }, Ua = {
5145
5171
  class: "wm-dialog__card",
5146
5172
  role: "dialog",
5147
5173
  "aria-modal": "true"
5148
- }, Ua = { class: "wm-dialog__head" }, Fa = { class: "wm-dialog__title" }, Da = ["aria-label"], ja = { class: "wm-dialog__body" }, Ha = ["placeholder"], za = { class: "wm-dialog__actions" }, qa = ["disabled"];
5149
- function Va(e, t, n, i, r, s) {
5150
- return c(), d("div", Na, [
5174
+ }, Fa = { class: "wm-dialog__head" }, Da = { class: "wm-dialog__title" }, ja = ["aria-label"], Ha = { class: "wm-dialog__body" }, za = ["placeholder"], qa = { class: "wm-dialog__actions" }, Va = ["disabled"];
5175
+ function Ka(e, t, n, i, r, s) {
5176
+ return c(), d("div", Pa, [
5151
5177
  a("div", {
5152
5178
  class: "wm-dialog__scrim",
5153
5179
  onClick: t[0] || (t[0] = (o) => e.$emit("close"))
5154
5180
  }),
5155
- a("div", Pa, [
5156
- a("div", Ua, [
5157
- a("div", Fa, v(n.title || s.t("rename.title")), 1),
5181
+ a("div", Ua, [
5182
+ a("div", Fa, [
5183
+ a("div", Da, v(n.title || s.t("rename.title")), 1),
5158
5184
  a("button", {
5159
5185
  type: "button",
5160
5186
  class: "wm-dialog__close",
@@ -5174,9 +5200,9 @@ function Va(e, t, n, i, r, s) {
5174
5200
  }, [
5175
5201
  a("path", { d: "M18 6L6 18M6 6l12 12" })
5176
5202
  ], -1)
5177
- ])], 8, Da)
5203
+ ])], 8, ja)
5178
5204
  ]),
5179
- a("div", ja, [
5205
+ a("div", Ha, [
5180
5206
  $(a("input", {
5181
5207
  ref: "input",
5182
5208
  "onUpdate:modelValue": t[2] || (t[2] = (o) => r.value = o),
@@ -5188,11 +5214,11 @@ function Va(e, t, n, i, r, s) {
5188
5214
  t[3] || (t[3] = ue(G((...o) => s.onSubmit && s.onSubmit(...o), ["prevent"]), ["enter"])),
5189
5215
  t[4] || (t[4] = ue(G((o) => e.$emit("close"), ["prevent"]), ["esc"]))
5190
5216
  ]
5191
- }, null, 40, Ha), [
5217
+ }, null, 40, za), [
5192
5218
  [X, r.value]
5193
5219
  ])
5194
5220
  ]),
5195
- a("div", za, [
5221
+ a("div", qa, [
5196
5222
  a("button", {
5197
5223
  type: "button",
5198
5224
  class: "wm-dialog__btn",
@@ -5203,25 +5229,25 @@ function Va(e, t, n, i, r, s) {
5203
5229
  class: "wm-dialog__btn wm-dialog__btn--primary",
5204
5230
  disabled: !s.canSubmit,
5205
5231
  onClick: t[6] || (t[6] = (...o) => s.onSubmit && s.onSubmit(...o))
5206
- }, v(s.t("common.save")), 9, qa)
5232
+ }, v(s.t("common.save")), 9, Va)
5207
5233
  ])
5208
5234
  ])
5209
5235
  ]);
5210
5236
  }
5211
- const Ka = /* @__PURE__ */ N(Ra, [["render", Va], ["__scopeId", "data-v-6d5f94a8"]]), Be = "ww-messenger-tokens", $a = {
5237
+ const $a = /* @__PURE__ */ N(Na, [["render", Ka], ["__scopeId", "data-v-6d5f94a8"]]), Be = "ww-messenger-tokens", Wa = {
5212
5238
  name: "Messenger",
5213
5239
  components: {
5214
5240
  Launcher: Ut,
5215
5241
  Header: cn,
5216
- Onboarding: is,
5217
- MessageList: Xr,
5218
- Composer: pi,
5219
- SuggestionChips: bi,
5220
- ApprovalCard: Li,
5221
- FormCard: ra,
5222
- Feedback: va,
5223
- MoreMenu: Ba,
5224
- RenameDialog: Ka
5242
+ Onboarding: as,
5243
+ MessageList: Zr,
5244
+ Composer: vi,
5245
+ SuggestionChips: ki,
5246
+ ApprovalCard: Ei,
5247
+ FormCard: ia,
5248
+ Feedback: ya,
5249
+ MoreMenu: Ra,
5250
+ RenameDialog: $a
5225
5251
  },
5226
5252
  mixins: [
5227
5253
  lt,
@@ -5523,6 +5549,15 @@ const Ka = /* @__PURE__ */ N(Ra, [["render", Va], ["__scopeId", "data-v-6d5f94a8
5523
5549
  var e, t;
5524
5550
  return ((t = (e = this.s) == null ? void 0 : e.config) == null ? void 0 : t.widget) || null;
5525
5551
  },
5552
+ // Lets the merchant override the brand colour via widget.primary_color.
5553
+ // Only --wm-primary is overridden (used by the CTA swatch + hero
5554
+ // halo) ; --wm-a (unread dot, caret, AI ring) keeps its default
5555
+ // token value, intentionally fixed.
5556
+ rootStyle() {
5557
+ var t;
5558
+ const e = (t = this.widget) == null ? void 0 : t.primary_color;
5559
+ return e ? { "--wm-primary": e } : null;
5560
+ },
5526
5561
  widgetWelcomeMessage() {
5527
5562
  var e;
5528
5563
  return ((e = this.widget) == null ? void 0 : e.welcome_message) || "";
@@ -5949,13 +5984,13 @@ const Ka = /* @__PURE__ */ N(Ra, [["render", Va], ["__scopeId", "data-v-6d5f94a8
5949
5984
  this.launcherHovered = e, this.sendCurrentLauncherSize();
5950
5985
  },
5951
5986
  sendCurrentLauncherSize() {
5952
- var w, T, B, A, H, S, U;
5987
+ var w, T, B, A, z, S, U;
5953
5988
  if (this.isOpen) return;
5954
5989
  const e = (T = (w = this.$el) == null ? void 0 : w.querySelector) == null ? void 0 : T.call(w, ".wm-launcherWrap");
5955
5990
  if (!e) return;
5956
5991
  const t = e.getBoundingClientRect();
5957
5992
  if (!t.width || !t.height) return;
5958
- const n = (((B = this.launcherPeeks) == null ? void 0 : B.length) ?? 0) > 0, i = 16, r = Math.ceil(t.width), s = Math.ceil(t.height), o = (H = (A = this.$el) == null ? void 0 : A.querySelector) == null ? void 0 : H.call(A, ".wm-launcher"), l = (U = (S = this.$el) == null ? void 0 : S.querySelectorAll) == null ? void 0 : U.call(S, ".wm-peek"), p = l && l.length ? l[l.length - 1] : null;
5993
+ const n = (((B = this.launcherPeeks) == null ? void 0 : B.length) ?? 0) > 0, i = 16, r = Math.ceil(t.width), s = Math.ceil(t.height), o = (z = (A = this.$el) == null ? void 0 : A.querySelector) == null ? void 0 : z.call(A, ".wm-launcher"), l = (U = (S = this.$el) == null ? void 0 : S.querySelectorAll) == null ? void 0 : U.call(S, ".wm-peek"), p = l && l.length ? l[l.length - 1] : null;
5959
5994
  let k = null;
5960
5995
  if (p) {
5961
5996
  const I = p.getBoundingClientRect();
@@ -6211,31 +6246,32 @@ const Ka = /* @__PURE__ */ N(Ra, [["render", Va], ["__scopeId", "data-v-6d5f94a8
6211
6246
  }
6212
6247
  }
6213
6248
  }
6214
- }, Wa = {
6249
+ }, Ga = {
6215
6250
  key: 0,
6216
6251
  class: "wm-loading",
6217
6252
  "aria-busy": "true",
6218
6253
  "aria-live": "polite"
6219
- }, Ga = ["aria-label"], Ya = {
6254
+ }, Ya = ["aria-label"], Ja = {
6220
6255
  key: 0,
6221
6256
  class: "wm-state"
6222
- }, Ja = { class: "wm-state__err" }, Qa = { class: "wm-state__errTitle" }, Xa = { class: "wm-state__errSub" }, Za = { class: "wm-bottom" }, eo = {
6257
+ }, Qa = { class: "wm-state__err" }, Xa = { class: "wm-state__errTitle" }, Za = { class: "wm-state__errSub" }, eo = { class: "wm-bottom" }, to = {
6223
6258
  key: 0,
6224
6259
  ref: "floatEl",
6225
6260
  class: "wm-float"
6226
- }, to = {
6261
+ }, no = {
6227
6262
  key: 1,
6228
6263
  class: "wm-actionWait",
6229
6264
  role: "status",
6230
6265
  "aria-live": "polite"
6231
- }, no = { class: "wm-actionWait__lbl" }, so = {
6266
+ }, so = { class: "wm-actionWait__lbl" }, ro = {
6232
6267
  key: 2,
6233
6268
  class: "wm-attached"
6234
- }, ro = ["aria-label", "onClick"];
6235
- function io(e, t, n, i, r, s) {
6236
- const o = R("Launcher"), l = R("Header"), p = R("Onboarding"), k = R("MessageList"), w = R("ApprovalCard"), T = R("FormCard"), B = R("Feedback"), A = R("SuggestionChips"), H = R("Composer"), S = R("MoreMenu"), U = R("RenameDialog");
6269
+ }, io = ["aria-label", "onClick"];
6270
+ function ao(e, t, n, i, r, s) {
6271
+ const o = R("Launcher"), l = R("Header"), p = R("Onboarding"), k = R("MessageList"), w = R("ApprovalCard"), T = R("FormCard"), B = R("Feedback"), A = R("SuggestionChips"), z = R("Composer"), S = R("MoreMenu"), U = R("RenameDialog");
6237
6272
  return c(), d("div", {
6238
- class: O(["wm-root", `wm-root--${n.displayMode}`])
6273
+ class: O(["wm-root", `wm-root--${n.displayMode}`]),
6274
+ style: H(s.rootStyle)
6239
6275
  }, [
6240
6276
  !r.isOpen && !s.isEmbedded ? (c(), P(o, {
6241
6277
  key: 0,
@@ -6252,12 +6288,12 @@ function io(e, t, n, i, r, s) {
6252
6288
  `wm-panel--${n.displayMode}`,
6253
6289
  { "wm-panel--welcome": s.ready && !s.error && !s.currentConv }
6254
6290
  ]),
6255
- style: z(r.floatHeight ? { "--wm-float-h": r.floatHeight + "px" } : null),
6291
+ style: H(r.floatHeight ? { "--wm-float-h": r.floatHeight + "px" } : null),
6256
6292
  role: "dialog",
6257
6293
  "aria-label": "Messenger",
6258
6294
  onClick: t[5] || (t[5] = (...I) => s.onPanelClick && s.onPanelClick(...I))
6259
6295
  }, [
6260
- !s.ready && !s.error ? (c(), d("div", Wa, [
6296
+ !s.ready && !s.error ? (c(), d("div", Ga, [
6261
6297
  s.isEmbedded ? y("", !0) : (c(), d("button", {
6262
6298
  key: 0,
6263
6299
  type: "button",
@@ -6278,7 +6314,7 @@ function io(e, t, n, i, r, s) {
6278
6314
  }, [
6279
6315
  a("path", { d: "M18 6L6 18M6 6l12 12" })
6280
6316
  ], -1)
6281
- ])], 8, Ga)),
6317
+ ])], 8, Ya)),
6282
6318
  t[7] || (t[7] = a("div", {
6283
6319
  class: "wm-loading__spinner",
6284
6320
  "aria-hidden": "true"
@@ -6298,8 +6334,8 @@ function io(e, t, n, i, r, s) {
6298
6334
  onMore: s.toggleMore,
6299
6335
  onClose: s.close
6300
6336
  }, null, 8, ["title", "team-members", "response-label", "show-identity", "show-back", "show-close", "more-active", "agent-name", "agent-avatar-url", "onBack", "onMore", "onClose"]),
6301
- s.error ? (c(), d("div", Ya, [
6302
- a("div", Ja, [
6337
+ s.error ? (c(), d("div", Ja, [
6338
+ a("div", Qa, [
6303
6339
  t[8] || (t[8] = a("div", { class: "wm-state__errIcon" }, [
6304
6340
  a("svg", {
6305
6341
  width: "14",
@@ -6316,8 +6352,8 @@ function io(e, t, n, i, r, s) {
6316
6352
  ])
6317
6353
  ], -1)),
6318
6354
  a("div", null, [
6319
- a("div", Qa, v(s.t("error.connectionFailed")), 1),
6320
- a("div", Xa, v(s.error), 1)
6355
+ a("div", Xa, v(s.t("error.connectionFailed")), 1),
6356
+ a("div", Za, v(s.error), 1)
6321
6357
  ])
6322
6358
  ])
6323
6359
  ])) : s.currentConv ? (c(), d(E, { key: 2 }, [
@@ -6335,8 +6371,8 @@ function io(e, t, n, i, r, s) {
6335
6371
  "ai-agent-avatar-url": s.agentAvatarUrl,
6336
6372
  onLoadMore: s.onLoadMore
6337
6373
  }, 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"]),
6338
- a("div", Za, [
6339
- s.floatVisible ? (c(), d("div", eo, [
6374
+ a("div", eo, [
6375
+ s.floatVisible ? (c(), d("div", to, [
6340
6376
  s.approvalReady ? (c(), P(w, {
6341
6377
  key: 0,
6342
6378
  action: s.approvalTitle,
@@ -6362,15 +6398,15 @@ function io(e, t, n, i, r, s) {
6362
6398
  onSelect: s.onSuggestion
6363
6399
  }, null, 8, ["items", "onSelect"]))
6364
6400
  ], 512)) : y("", !0),
6365
- s.actionInFlight ? (c(), d("div", to, [
6401
+ s.actionInFlight ? (c(), d("div", no, [
6366
6402
  t[9] || (t[9] = a("span", {
6367
6403
  class: "wm-actionWait__spinner",
6368
6404
  "aria-hidden": "true"
6369
6405
  }, null, -1)),
6370
- a("span", no, v(s.t("action.inProgress", {
6406
+ a("span", so, v(s.t("action.inProgress", {
6371
6407
  name: s.actionInFlightName
6372
6408
  })), 1)
6373
- ])) : (c(), P(H, {
6409
+ ])) : (c(), P(z, {
6374
6410
  key: 2,
6375
6411
  ref: "composer",
6376
6412
  modelValue: r.draft,
@@ -6403,7 +6439,7 @@ function io(e, t, n, i, r, s) {
6403
6439
  onClose: t[3] || (t[3] = (I) => r.renameDialogOpen = !1),
6404
6440
  onSubmit: s.onRenameSubmit
6405
6441
  }, null, 8, ["initial-value", "title", "onSubmit"])) : y("", !0),
6406
- r.pendingAttachments.length ? (c(), d("div", so, [
6442
+ r.pendingAttachments.length ? (c(), d("div", ro, [
6407
6443
  (c(!0), d(E, null, F(r.pendingAttachments, (I, q) => (c(), d("div", {
6408
6444
  key: q,
6409
6445
  class: "wm-attached__chip"
@@ -6440,7 +6476,7 @@ function io(e, t, n, i, r, s) {
6440
6476
  }, [
6441
6477
  a("path", { d: "M18 6L6 18M6 6l12 12" })
6442
6478
  ], -1)
6443
- ])], 8, ro)
6479
+ ])], 8, io)
6444
6480
  ]))), 128))
6445
6481
  ])) : y("", !0)
6446
6482
  ], 64)) : (c(), P(p, {
@@ -6471,55 +6507,55 @@ function io(e, t, n, i, r, s) {
6471
6507
  }, null, 8, ["sound-enabled", "browser-notif-enabled", "status-url", "help-url", "onSoundToggle", "onBrowserNotifToggle", "onAction"])) : y("", !0)
6472
6508
  ], 64))
6473
6509
  ], 6)) : y("", !0)
6474
- ], 2);
6510
+ ], 6);
6475
6511
  }
6476
- const lo = /* @__PURE__ */ N($a, [["render", io], ["__scopeId", "data-v-9e47cfb4"]]), co = "0.5.40";
6512
+ const co = /* @__PURE__ */ N(Wa, [["render", ao], ["__scopeId", "data-v-0d59093c"]]), uo = "0.5.41";
6477
6513
  export {
6478
6514
  le as AIAvatar,
6479
6515
  _e as AVATAR_COLORS,
6480
- ps as ActionResult,
6481
- Li as ApprovalCard,
6482
- Ms as ArtifactFormResponse,
6483
- Ds as ArtifactInfoCard,
6484
- rr as ArtifactRenderer,
6485
- er as ArtifactTicket,
6486
- gr as AttachmentPreview,
6487
- wr as Bubble,
6488
- pi as Composer,
6516
+ vs as ActionResult,
6517
+ Ei as ApprovalCard,
6518
+ Ts as ArtifactFormResponse,
6519
+ js as ArtifactInfoCard,
6520
+ ir as ArtifactRenderer,
6521
+ tr as ArtifactTicket,
6522
+ pr as AttachmentPreview,
6523
+ br as Bubble,
6524
+ vi as Composer,
6489
6525
  et as DEFAULT_BASE_URL,
6490
6526
  ae as DEFAULT_LANGUAGE,
6491
- va as Feedback,
6492
- ra as FormCard,
6527
+ ya as Feedback,
6528
+ ia as FormCard,
6493
6529
  cn as Header,
6494
6530
  Ce as HumanAvatar,
6495
6531
  Ut as Launcher,
6496
6532
  Ae as MEDIA_RECORDER_SUPPORTED,
6497
- Xr as MessageList,
6498
- lo as Messenger,
6499
- Ba as MoreMenu,
6500
- is as Onboarding,
6533
+ Zr as MessageList,
6534
+ co as Messenger,
6535
+ Ra as MoreMenu,
6536
+ as as Onboarding,
6501
6537
  he as SCREEN_CAPTURE_SUPPORTED,
6502
6538
  tt as SUPPORTED_LANGUAGES,
6503
- bi as SuggestionChips,
6539
+ ki as SuggestionChips,
6504
6540
  Yt as TeamAvatars,
6505
- Ar as Typing,
6506
- co as VERSION,
6541
+ Sr as Typing,
6542
+ uo as VERSION,
6507
6543
  we as avatarColor,
6508
6544
  be as avatarInitials,
6509
- ei as captureScreenshotFile,
6545
+ ti as captureScreenshotFile,
6510
6546
  j as colors,
6511
6547
  Xe as createStore,
6512
6548
  D as createTranslator,
6513
6549
  Ge as createTransport,
6514
6550
  re as dateLocale,
6515
- lo as default,
6551
+ co as default,
6516
6552
  ve as formatTime,
6517
- oo as guessAttachmentKind,
6518
- Zr as pickRecorderMime,
6553
+ lo as guessAttachmentKind,
6554
+ ei as pickRecorderMime,
6519
6555
  un as renderInlineMarkdown,
6520
6556
  hn as renderMarkdown,
6521
6557
  ke as resolveLanguage,
6522
- ni as startScreenRecording,
6558
+ si as startScreenRecording,
6523
6559
  Ze as tokensCss,
6524
6560
  Qe as uuid,
6525
6561
  Qe as v4