@_solaris/messenger-widget 0.5.40 → 0.5.42

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
  },
@@ -2321,46 +2329,55 @@ const Le = {
2321
2329
  });
2322
2330
  }
2323
2331
  }
2324
- }, 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
- key: 0,
2326
- 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 = {
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 = ["onClick"], Cn = { class: "wm-onb__card-icon" }, An = ["aria-label"], Sn = {
2328
2333
  key: 1,
2329
- width: "16",
2330
- height: "16",
2334
+ width: "18",
2335
+ height: "18",
2331
2336
  viewBox: "0 0 24 24",
2332
2337
  fill: "none",
2333
2338
  stroke: "currentColor",
2334
- "stroke-width": "1.7",
2339
+ "stroke-width": "1.9",
2335
2340
  "stroke-linecap": "round",
2336
2341
  "stroke-linejoin": "round",
2337
2342
  "aria-hidden": "true"
2338
- }, xn = ["d"], On = { class: "wm-onb__card-body" }, In = { class: "wm-onb__card-title" }, Ln = {
2343
+ }, Mn = ["d"], Tn = { class: "wm-onb__card-body" }, xn = { class: "wm-onb__card-title" }, On = {
2339
2344
  key: 0,
2340
2345
  class: "wm-onb__card-sub"
2341
- }, En = {
2346
+ }, In = {
2347
+ key: 0,
2348
+ class: "wm-onb__card-ext",
2349
+ width: "11",
2350
+ height: "11",
2351
+ viewBox: "0 0 24 24",
2352
+ fill: "none",
2353
+ stroke: "currentColor",
2354
+ "stroke-width": "2",
2355
+ "stroke-linecap": "round",
2356
+ "stroke-linejoin": "round",
2357
+ "aria-hidden": "true"
2358
+ }, Ln = {
2342
2359
  key: 1,
2343
2360
  class: "wm-onb__section wm-onb__section--card"
2344
- }, Bn = { class: "wm-onb__section-title" }, Rn = { class: "wm-onb__alertList" }, Nn = ["onClick"], Pn = {
2361
+ }, En = { class: "wm-onb__section-title" }, Bn = { class: "wm-onb__alertList" }, Rn = ["onClick"], Nn = {
2345
2362
  key: 0,
2346
2363
  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 = {
2364
+ }, Pn = ["aria-label"], Un = { class: "wm-onb__alert-body" }, Fn = { class: "wm-onb__alert-title" }, Dn = ["innerHTML"], jn = { class: "wm-onb__alert-meta" }, Hn = {
2348
2365
  key: 0,
2349
2366
  class: "wm-onb__alert-time"
2350
- }, qn = { class: "wm-onb__alert-resume" }, Vn = {
2367
+ }, zn = { class: "wm-onb__alert-resume" }, qn = {
2351
2368
  key: 2,
2352
2369
  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 = {
2370
+ }, Vn = { class: "wm-onb__section-title" }, Kn = { class: "wm-onb__search" }, $n = ["placeholder", "aria-label"], Wn = { class: "wm-onb__list" }, Gn = ["onClick"], Yn = {
2354
2371
  key: 0,
2355
2372
  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 = {
2373
+ }, Jn = ["aria-label"], Qn = { class: "wm-onb__thread-body" }, Xn = { class: "wm-onb__thread-title" }, Zn = ["innerHTML"], es = { class: "wm-onb__thread-meta" }, ts = {
2357
2374
  key: 0,
2358
2375
  class: "wm-onb__thread-time"
2359
- }, ss = {
2376
+ }, ns = {
2360
2377
  key: 0,
2361
2378
  class: "wm-onb__empty"
2362
2379
  };
2363
- function rs(e, t, n, i, r, s) {
2380
+ function ss(e, t, n, i, r, s) {
2364
2381
  const o = R("AIAvatar");
2365
2382
  return c(), d("div", fn, [
2366
2383
  a("div", _n, [
@@ -2446,40 +2463,44 @@ function rs(e, t, n, i, r, s) {
2446
2463
  ], -1))
2447
2464
  ], 8, wn)
2448
2465
  ]),
2449
- n.quickLinks.length ? (c(), d("div", kn, [
2450
- a("div", Cn, v(s.t("onboarding.quickAccess")), 1),
2451
- a("div", {
2452
- class: O(s.quickLinksLayout)
2466
+ n.quickLinks.length ? (c(), d("div", {
2467
+ key: 0,
2468
+ class: O(s.quickLinksLayout)
2469
+ }, [
2470
+ (c(!0), d(E, null, F(n.quickLinks, (l, p) => (c(), d("button", {
2471
+ key: p,
2472
+ type: "button",
2473
+ class: O(["wm-onb__card", { "wm-onb__card--row": s.isOddQuickLinks }]),
2474
+ style: H(l.color ? { "--card-color": l.color } : null),
2475
+ onClick: (k) => e.$emit("select", l)
2453
2476
  }, [
2454
- (c(!0), d(E, null, F(n.quickLinks, (l, p) => (c(), d("button", {
2455
- key: p,
2456
- type: "button",
2457
- class: O(["wm-onb__card", { "wm-onb__card--row": s.isOddQuickLinks }]),
2458
- style: z(l.color ? { "--card-color": l.color } : null),
2459
- onClick: (k) => e.$emit("select", l)
2460
- }, [
2461
- a("span", Sn, [
2462
- l.icon_url ? (c(), d("img", {
2463
- 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, [
2468
- a("path", {
2469
- d: s.iconPath(l.icon)
2470
- }, null, 8, xn)
2471
- ]))
2472
- ]),
2473
- a("span", On, [
2474
- a("span", In, v(l.label), 1),
2475
- l.subtitle ? (c(), d("span", Ln, v(l.subtitle), 1)) : y("", !0)
2476
- ])
2477
- ], 14, An))), 128))
2478
- ], 2)
2479
- ])) : y("", !0),
2480
- s.unreadThreads.length ? (c(), d("div", En, [
2481
- a("div", Bn, v(s.t("onboarding.unreadConversations")), 1),
2482
- a("div", Rn, [
2477
+ a("span", Cn, [
2478
+ l.icon_url ? (c(), d("span", {
2479
+ key: 0,
2480
+ class: "wm-onb__card-iconImg",
2481
+ style: H({
2482
+ "--icon-url": `url('${l.icon_url}')`
2483
+ }),
2484
+ role: "img",
2485
+ "aria-label": l.label || ""
2486
+ }, null, 12, An)) : (c(), d("svg", Sn, [
2487
+ a("path", {
2488
+ d: s.iconPath(l.icon)
2489
+ }, null, 8, Mn)
2490
+ ]))
2491
+ ]),
2492
+ a("span", Tn, [
2493
+ a("span", xn, v(l.label), 1),
2494
+ l.subtitle ? (c(), d("span", On, v(l.subtitle), 1)) : y("", !0)
2495
+ ]),
2496
+ s.isExternalLink(l) ? (c(), d("svg", In, [...t[5] || (t[5] = [
2497
+ a("path", { d: "M7 17L17 7M9 7h8v8" }, null, -1)
2498
+ ])])) : y("", !0)
2499
+ ], 14, kn))), 128))
2500
+ ], 2)) : y("", !0),
2501
+ s.unreadThreads.length ? (c(), d("div", Ln, [
2502
+ a("div", En, v(s.t("onboarding.unreadConversations")), 1),
2503
+ a("div", Bn, [
2483
2504
  (c(!0), d(E, null, F(s.unreadThreads, (l) => (c(), d("button", {
2484
2505
  key: l.id,
2485
2506
  type: "button",
@@ -2489,7 +2510,7 @@ function rs(e, t, n, i, r, s) {
2489
2510
  a("span", {
2490
2511
  class: O(["wm-onb__alert-avatar", s.avatarWrapperClass(l)])
2491
2512
  }, [
2492
- s.isDefaultAvatar(l) ? (c(), d("span", Pn, [...t[5] || (t[5] = [
2513
+ s.isDefaultAvatar(l) ? (c(), d("span", Nn, [...t[6] || (t[6] = [
2493
2514
  a("svg", {
2494
2515
  width: "20",
2495
2516
  height: "20",
@@ -2510,26 +2531,26 @@ function rs(e, t, n, i, r, s) {
2510
2531
  a("span", {
2511
2532
  class: "wm-onb__alert-dot",
2512
2533
  "aria-label": s.t("onboarding.unread")
2513
- }, null, 8, Un)
2534
+ }, null, 8, Pn)
2514
2535
  ], 2),
2515
- a("span", Fn, [
2516
- a("span", Dn, v(l.title), 1),
2536
+ a("span", Un, [
2537
+ a("span", Fn, v(l.title), 1),
2517
2538
  a("span", {
2518
2539
  class: "wm-onb__alert-preview",
2519
2540
  innerHTML: s.renderPreview(l.preview)
2520
- }, null, 8, jn)
2541
+ }, null, 8, Dn)
2521
2542
  ]),
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)
2543
+ a("span", jn, [
2544
+ s.formatTs(l._ts) ? (c(), d("span", Hn, v(s.formatTs(l._ts)), 1)) : y("", !0),
2545
+ a("span", zn, v(s.t("onboarding.resume")), 1)
2525
2546
  ])
2526
- ], 8, Nn))), 128))
2547
+ ], 8, Rn))), 128))
2527
2548
  ])
2528
2549
  ])) : 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" }, [
2550
+ n.openThreads.length ? (c(), d("div", qn, [
2551
+ a("div", Vn, v(s.t("onboarding.recentConversations")), 1),
2552
+ a("div", Kn, [
2553
+ t[7] || (t[7] = a("span", { class: "wm-onb__searchIcon" }, [
2533
2554
  a("svg", {
2534
2555
  width: "12",
2535
2556
  height: "12",
@@ -2549,11 +2570,11 @@ function rs(e, t, n, i, r, s) {
2549
2570
  type: "text",
2550
2571
  placeholder: s.t("onboarding.search"),
2551
2572
  "aria-label": s.t("onboarding.search")
2552
- }, null, 8, Wn), [
2573
+ }, null, 8, $n), [
2553
2574
  [X, r.query]
2554
2575
  ])
2555
2576
  ]),
2556
- a("div", Gn, [
2577
+ a("div", Wn, [
2557
2578
  (c(!0), d(E, null, F(s.filteredThreads, (l) => (c(), d("button", {
2558
2579
  key: l.id,
2559
2580
  type: "button",
@@ -2563,7 +2584,7 @@ function rs(e, t, n, i, r, s) {
2563
2584
  a("span", {
2564
2585
  class: O(["wm-onb__thread-avatar", s.avatarWrapperClass(l)])
2565
2586
  }, [
2566
- s.isDefaultAvatar(l) ? (c(), d("span", Jn, [...t[7] || (t[7] = [
2587
+ s.isDefaultAvatar(l) ? (c(), d("span", Yn, [...t[8] || (t[8] = [
2567
2588
  a("svg", {
2568
2589
  width: "20",
2569
2590
  height: "20",
@@ -2585,18 +2606,18 @@ function rs(e, t, n, i, r, s) {
2585
2606
  key: 2,
2586
2607
  class: "wm-onb__thread-dot",
2587
2608
  "aria-label": s.t("onboarding.unread")
2588
- }, null, 8, Qn)) : y("", !0)
2609
+ }, null, 8, Jn)) : y("", !0)
2589
2610
  ], 2),
2590
- a("span", Xn, [
2591
- a("span", Zn, v(l.title), 1),
2611
+ a("span", Qn, [
2612
+ a("span", Xn, v(l.title), 1),
2592
2613
  a("span", {
2593
2614
  class: "wm-onb__thread-preview",
2594
2615
  innerHTML: s.renderPreview(l.preview)
2595
- }, null, 8, es)
2616
+ }, null, 8, Zn)
2596
2617
  ]),
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", {
2618
+ a("span", es, [
2619
+ s.formatTs(l._ts) ? (c(), d("span", ts, v(s.formatTs(l._ts)), 1)) : y("", !0),
2620
+ t[9] || (t[9] = a("svg", {
2600
2621
  width: "14",
2601
2622
  height: "14",
2602
2623
  viewBox: "0 0 24 24",
@@ -2611,17 +2632,17 @@ function rs(e, t, n, i, r, s) {
2611
2632
  a("path", { d: "M5 12h14M13 5l7 7-7 7" })
2612
2633
  ], -1))
2613
2634
  ])
2614
- ], 10, Yn))), 128)),
2615
- s.filteredThreads.length ? y("", !0) : (c(), d("div", ss, v(s.t("onboarding.noResults", { query: r.query })), 1))
2635
+ ], 10, Gn))), 128)),
2636
+ s.filteredThreads.length ? y("", !0) : (c(), d("div", ns, v(s.t("onboarding.noResults", { query: r.query })), 1))
2616
2637
  ])
2617
2638
  ])) : y("", !0)
2618
2639
  ]);
2619
2640
  }
2620
- const is = /* @__PURE__ */ N(mn, [["render", rs], ["__scopeId", "data-v-75c21bb3"]]);
2621
- function as(e) {
2641
+ const rs = /* @__PURE__ */ N(mn, [["render", ss], ["__scopeId", "data-v-37fd5506"]]);
2642
+ function is(e) {
2622
2643
  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
2644
  }
2624
- const os = {
2645
+ const as = {
2625
2646
  name: "WmActionResult",
2626
2647
  props: {
2627
2648
  state: { type: String, default: "success" },
@@ -2631,13 +2652,13 @@ const os = {
2631
2652
  },
2632
2653
  computed: {
2633
2654
  detailText() {
2634
- return as(this.detail);
2655
+ return is(this.detail);
2635
2656
  }
2636
2657
  }
2637
- }, ls = {
2658
+ }, os = {
2638
2659
  class: "wm-result__icon",
2639
2660
  "aria-hidden": "true"
2640
- }, cs = {
2661
+ }, ls = {
2641
2662
  key: 0,
2642
2663
  width: "11",
2643
2664
  height: "11",
@@ -2647,7 +2668,7 @@ const os = {
2647
2668
  "stroke-width": "2.8",
2648
2669
  "stroke-linecap": "round",
2649
2670
  "stroke-linejoin": "round"
2650
- }, ds = {
2671
+ }, cs = {
2651
2672
  key: 1,
2652
2673
  width: "11",
2653
2674
  height: "11",
@@ -2657,7 +2678,7 @@ const os = {
2657
2678
  "stroke-width": "2.6",
2658
2679
  "stroke-linecap": "round",
2659
2680
  "stroke-linejoin": "round"
2660
- }, us = {
2681
+ }, ds = {
2661
2682
  key: 2,
2662
2683
  width: "11",
2663
2684
  height: "11",
@@ -2667,7 +2688,7 @@ const os = {
2667
2688
  "stroke-width": "2.4",
2668
2689
  "stroke-linecap": "round",
2669
2690
  "stroke-linejoin": "round"
2670
- }, hs = {
2691
+ }, us = {
2671
2692
  key: 3,
2672
2693
  width: "12",
2673
2694
  height: "12",
@@ -2677,24 +2698,24 @@ const os = {
2677
2698
  "stroke-width": "2.2",
2678
2699
  "stroke-linecap": "round",
2679
2700
  "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) {
2701
+ }, hs = { class: "wm-result__body" }, ms = { class: "wm-result__label" }, fs = { class: "wm-result__detail" };
2702
+ function _s(e, t, n, i, r, s) {
2682
2703
  return c(), d("div", {
2683
2704
  class: O(["wm-result", `wm-result--${n.state}`])
2684
2705
  }, [
2685
- a("span", ls, [
2686
- n.state === "success" ? (c(), d("svg", cs, [...t[0] || (t[0] = [
2706
+ a("span", os, [
2707
+ n.state === "success" ? (c(), d("svg", ls, [...t[0] || (t[0] = [
2687
2708
  a("path", { d: "M20 6L9 17l-5-5" }, null, -1)
2688
- ])])) : n.state === "rejected" ? (c(), d("svg", ds, [...t[1] || (t[1] = [
2709
+ ])])) : n.state === "rejected" ? (c(), d("svg", cs, [...t[1] || (t[1] = [
2689
2710
  a("path", { d: "M18 6L6 18M6 6l12 12" }, null, -1)
2690
- ])])) : n.state === "awaiting" ? (c(), d("svg", us, [...t[2] || (t[2] = [
2711
+ ])])) : n.state === "awaiting" ? (c(), d("svg", ds, [...t[2] || (t[2] = [
2691
2712
  a("circle", {
2692
2713
  cx: "12",
2693
2714
  cy: "12",
2694
2715
  r: "10"
2695
2716
  }, null, -1),
2696
2717
  a("polyline", { points: "12 7 12 12 15 14" }, null, -1)
2697
- ])])) : (c(), d("svg", hs, [...t[3] || (t[3] = [
2718
+ ])])) : (c(), d("svg", us, [...t[3] || (t[3] = [
2698
2719
  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
2720
  a("line", {
2700
2721
  x1: "12",
@@ -2710,19 +2731,19 @@ function gs(e, t, n, i, r, s) {
2710
2731
  }, null, -1)
2711
2732
  ])]))
2712
2733
  ]),
2713
- a("span", ms, [
2714
- a("span", fs, v(n.label), 1),
2734
+ a("span", hs, [
2735
+ a("span", ms, v(n.label), 1),
2715
2736
  s.detailText ? (c(), d(E, { key: 0 }, [
2716
2737
  t[4] || (t[4] = a("span", {
2717
2738
  class: "wm-result__sep",
2718
2739
  "aria-hidden": "true"
2719
2740
  }, " · ", -1)),
2720
- a("span", _s, v(s.detailText), 1)
2741
+ a("span", fs, v(s.detailText), 1)
2721
2742
  ], 64)) : y("", !0)
2722
2743
  ])
2723
2744
  ], 2);
2724
2745
  }
2725
- const ps = /* @__PURE__ */ N(os, [["render", gs], ["__scopeId", "data-v-7284acd0"]]), vs = {
2746
+ const gs = /* @__PURE__ */ N(as, [["render", _s], ["__scopeId", "data-v-7284acd0"]]), ps = {
2726
2747
  name: "WmArtifactFormResponse",
2727
2748
  inject: {
2728
2749
  // Translator shared by the Messenger shell; French fallback when
@@ -2738,12 +2759,12 @@ const ps = /* @__PURE__ */ N(os, [["render", gs], ["__scopeId", "data-v-7284acd0
2738
2759
  return Array.isArray((e = this.data) == null ? void 0 : e.fields) ? this.data.fields : [];
2739
2760
  }
2740
2761
  }
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, [
2762
+ }, vs = { class: "wm-art wm-art--formResponse" }, ys = { class: "wm-art__head" }, ws = { class: "wm-art__title" }, bs = { class: "wm-art__badge wm-art__badge--success" }, ks = { class: "wm-art__body" }, Cs = { class: "wm-art__fieldLabel" };
2763
+ function As(e, t, n, i, r, s) {
2764
+ return c(), d("div", vs, [
2765
+ a("div", ys, [
2766
+ a("div", ws, v(n.data.title || s.t("form.title")), 1),
2767
+ a("span", bs, [
2747
2768
  t[0] || (t[0] = a("svg", {
2748
2769
  width: "11",
2749
2770
  height: "11",
@@ -2760,12 +2781,12 @@ function Ss(e, t, n, i, r, s) {
2760
2781
  ye(" " + v(s.t("form.sent")), 1)
2761
2782
  ])
2762
2783
  ]),
2763
- a("div", Cs, [
2784
+ a("div", ks, [
2764
2785
  (c(!0), d(E, null, F(s.fields, (o, l) => (c(), d("div", {
2765
2786
  key: l,
2766
2787
  class: "wm-art__field"
2767
2788
  }, [
2768
- a("div", As, v(o.label), 1),
2789
+ a("div", Cs, v(o.label), 1),
2769
2790
  a("div", {
2770
2791
  class: O([
2771
2792
  "wm-art__fieldValue",
@@ -2776,7 +2797,7 @@ function Ss(e, t, n, i, r, s) {
2776
2797
  ])
2777
2798
  ]);
2778
2799
  }
2779
- const Ms = /* @__PURE__ */ N(vs, [["render", Ss], ["__scopeId", "data-v-713aecf1"]]), Ts = {
2800
+ const Ss = /* @__PURE__ */ N(ps, [["render", As], ["__scopeId", "data-v-713aecf1"]]), Ms = {
2780
2801
  name: "WmArtifactInfoCard",
2781
2802
  props: {
2782
2803
  data: { type: Object, required: !0 }
@@ -2791,32 +2812,32 @@ const Ms = /* @__PURE__ */ N(vs, [["render", Ss], ["__scopeId", "data-v-713aecf1
2791
2812
  return !!((e = this.data) != null && e.body) || this.fields.length > 0;
2792
2813
  }
2793
2814
  }
2794
- }, xs = { class: "wm-art wm-art--infoCard" }, Os = {
2815
+ }, Ts = { class: "wm-art wm-art--infoCard" }, xs = {
2795
2816
  key: 0,
2796
2817
  class: "wm-art__image"
2797
- }, Is = ["src", "alt"], Ls = { class: "wm-art__head" }, Es = { class: "wm-art__headMain" }, Bs = { class: "wm-art__title" }, Rs = {
2818
+ }, Os = ["src", "alt"], Is = { class: "wm-art__head" }, Ls = { class: "wm-art__headMain" }, Es = { class: "wm-art__title" }, Bs = {
2798
2819
  key: 0,
2799
2820
  class: "wm-art__subtitle"
2800
- }, Ns = {
2821
+ }, Rs = {
2801
2822
  key: 1,
2802
2823
  class: "wm-art__body"
2803
- }, Ps = {
2824
+ }, Ns = {
2804
2825
  key: 0,
2805
2826
  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, [
2827
+ }, Ps = { class: "wm-art__fieldLabel" };
2828
+ function Us(e, t, n, i, r, s) {
2829
+ return c(), d("div", Ts, [
2830
+ n.data.image_url ? (c(), d("figure", xs, [
2810
2831
  a("img", {
2811
2832
  src: n.data.image_url,
2812
2833
  alt: n.data.title || "",
2813
2834
  loading: "lazy"
2814
- }, null, 8, Is)
2835
+ }, null, 8, Os)
2815
2836
  ])) : 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)
2837
+ a("div", Is, [
2838
+ a("div", Ls, [
2839
+ a("div", Es, v(n.data.title), 1),
2840
+ n.data.subtitle ? (c(), d("div", Bs, v(n.data.subtitle), 1)) : y("", !0)
2820
2841
  ]),
2821
2842
  n.data.badge && n.data.badge.label ? (c(), d("span", {
2822
2843
  key: 0,
@@ -2826,13 +2847,13 @@ function Fs(e, t, n, i, r, s) {
2826
2847
  ])
2827
2848
  }, v(n.data.badge.label), 3)) : y("", !0)
2828
2849
  ]),
2829
- s.hasBody ? (c(), d("div", Ns, [
2830
- n.data.body ? (c(), d("div", Ps, v(n.data.body), 1)) : y("", !0),
2850
+ s.hasBody ? (c(), d("div", Rs, [
2851
+ n.data.body ? (c(), d("div", Ns, v(n.data.body), 1)) : y("", !0),
2831
2852
  s.fields.length ? (c(!0), d(E, { key: 1 }, F(s.fields, (o, l) => (c(), d("div", {
2832
2853
  key: l,
2833
2854
  class: "wm-art__field"
2834
2855
  }, [
2835
- a("div", Us, v(o.label), 1),
2856
+ a("div", Ps, v(o.label), 1),
2836
2857
  a("div", {
2837
2858
  class: O([
2838
2859
  "wm-art__fieldValue",
@@ -2843,8 +2864,8 @@ function Fs(e, t, n, i, r, s) {
2843
2864
  ])) : y("", !0)
2844
2865
  ]);
2845
2866
  }
2846
- const Ds = /* @__PURE__ */ N(Ts, [["render", Fs], ["__scopeId", "data-v-7eae0e4a"]]);
2847
- function js(e, t, n) {
2867
+ const Fs = /* @__PURE__ */ N(Ms, [["render", Us], ["__scopeId", "data-v-7eae0e4a"]]);
2868
+ function Ds(e, t, n) {
2848
2869
  if (!e) return "";
2849
2870
  const i = new Date(e);
2850
2871
  if (Number.isNaN(i.getTime())) return e;
@@ -2858,7 +2879,7 @@ function js(e, t, n) {
2858
2879
  });
2859
2880
  return `${r}${n}${s}`;
2860
2881
  }
2861
- const Hs = {
2882
+ const js = {
2862
2883
  name: "WmArtifactTicket",
2863
2884
  inject: {
2864
2885
  // Translator + resolved-language getter shared by the Messenger
@@ -2876,7 +2897,7 @@ const Hs = {
2876
2897
  },
2877
2898
  formattedDate() {
2878
2899
  var e;
2879
- return js(
2900
+ return Ds(
2880
2901
  (e = this.data) == null ? void 0 : e.created_at,
2881
2902
  re(this.wmLocale()),
2882
2903
  this.t("ticket.dateAt")
@@ -2904,13 +2925,13 @@ const Hs = {
2904
2925
  return /high|haute|élev|elev|critic|critiq|urgent/.test(t) ? 3 : /low|basse|faible|minor/.test(t) ? 1 : 2;
2905
2926
  }
2906
2927
  }
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 = {
2928
+ }, Hs = { class: "wm-art wm-art--ticket" }, zs = { class: "wm-art__head wm-tk__head" }, qs = { class: "wm-art__title wm-tk__title" }, Vs = { class: "wm-tk__sub" }, Ks = { class: "wm-tk__ref" }, $s = {
2908
2929
  key: 0,
2909
2930
  class: "wm-tk__text"
2910
- }, Gs = {
2931
+ }, Ws = {
2911
2932
  key: 0,
2912
2933
  class: "wm-art__body"
2913
- }, Ys = { class: "wm-art__fieldLabel" }, Js = ["data-level"], Qs = {
2934
+ }, Gs = { class: "wm-art__fieldLabel" }, Ys = ["data-level"], Js = {
2914
2935
  key: 1,
2915
2936
  class: "wm-tk__date",
2916
2937
  width: "12",
@@ -2922,16 +2943,16 @@ const Hs = {
2922
2943
  "stroke-linecap": "round",
2923
2944
  "stroke-linejoin": "round",
2924
2945
  "aria-hidden": "true"
2925
- }, Xs = {
2946
+ }, Qs = {
2926
2947
  key: 1,
2927
2948
  class: "wm-art__footer wm-tk__footer"
2928
2949
  };
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, [
2950
+ function Xs(e, t, n, i, r, s) {
2951
+ return c(), d("div", Hs, [
2952
+ a("div", zs, [
2953
+ a("div", qs, v(n.data.title), 1),
2954
+ a("div", Vs, [
2955
+ a("div", Ks, [
2935
2956
  t[0] || (t[0] = a("svg", {
2936
2957
  width: "11",
2937
2958
  height: "11",
@@ -2962,14 +2983,14 @@ function Zs(e, t, n, i, r, s) {
2962
2983
  ye(" " + v(n.data.status.label), 1)
2963
2984
  ], 2)
2964
2985
  ]),
2965
- n.data.body ? (c(), d("div", Ws, v(n.data.body), 1)) : y("", !0)
2986
+ n.data.body ? (c(), d("div", $s, v(n.data.body), 1)) : y("", !0)
2966
2987
  ]),
2967
- s.fields.length ? (c(), d("div", Gs, [
2988
+ s.fields.length ? (c(), d("div", Ws, [
2968
2989
  (c(!0), d(E, null, F(s.fields, (o, l) => (c(), d("div", {
2969
2990
  key: l,
2970
2991
  class: "wm-art__field"
2971
2992
  }, [
2972
- a("div", Ys, v(o.label), 1),
2993
+ a("div", Gs, v(o.label), 1),
2973
2994
  a("div", {
2974
2995
  class: O([
2975
2996
  "wm-art__fieldValue",
@@ -3006,7 +3027,7 @@ function Zs(e, t, n, i, r, s) {
3006
3027
  height: "9",
3007
3028
  rx: "0.5"
3008
3029
  }, null, -1)
3009
- ])], 8, Js)) : s.isDate(o.label) ? (c(), d("svg", Qs, [...t[3] || (t[3] = [
3030
+ ])], 8, Ys)) : s.isDate(o.label) ? (c(), d("svg", Js, [...t[3] || (t[3] = [
3010
3031
  a("rect", {
3011
3032
  x: "3",
3012
3033
  y: "4",
@@ -3020,7 +3041,7 @@ function Zs(e, t, n, i, r, s) {
3020
3041
  ], 2)
3021
3042
  ]))), 128))
3022
3043
  ])) : y("", !0),
3023
- n.data.created_at ? (c(), d("div", Xs, [
3044
+ n.data.created_at ? (c(), d("div", Qs, [
3024
3045
  t[4] || (t[4] = a("svg", {
3025
3046
  width: "11",
3026
3047
  height: "11",
@@ -3045,11 +3066,11 @@ function Zs(e, t, n, i, r, s) {
3045
3066
  ])) : y("", !0)
3046
3067
  ]);
3047
3068
  }
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 = {
3069
+ const Zs = /* @__PURE__ */ N(js, [["render", Xs], ["__scopeId", "data-v-5f30c914"]]), er = {
3070
+ form_response: Ss,
3071
+ info_card: Fs,
3072
+ ticket: Zs
3073
+ }, tr = {
3053
3074
  name: "WmArtifactRenderer",
3054
3075
  props: {
3055
3076
  // Forme : { kind: string, data: any } (le `data` est validé
@@ -3060,17 +3081,17 @@ const er = /* @__PURE__ */ N(Hs, [["render", Zs], ["__scopeId", "data-v-5f30c914
3060
3081
  component() {
3061
3082
  var t;
3062
3083
  const e = (t = this.artifact) == null ? void 0 : t.kind;
3063
- return e && tr[e] || null;
3084
+ return e && er[e] || null;
3064
3085
  }
3065
3086
  }
3066
3087
  };
3067
- function sr(e, t, n, i, r, s) {
3088
+ function nr(e, t, n, i, r, s) {
3068
3089
  return s.component ? (c(), P(pe(s.component), {
3069
3090
  key: 0,
3070
3091
  data: n.artifact.data
3071
3092
  }, null, 8, ["data"])) : y("", !0);
3072
3093
  }
3073
- const rr = /* @__PURE__ */ N(nr, [["render", sr]]), ir = {
3094
+ const sr = /* @__PURE__ */ N(tr, [["render", nr]]), rr = {
3074
3095
  name: "WmAttachmentPreview",
3075
3096
  inject: {
3076
3097
  signAttachmentFn: { default: null },
@@ -3138,15 +3159,15 @@ const rr = /* @__PURE__ */ N(nr, [["render", sr]]), ir = {
3138
3159
  this.safeHref === "#" && e.preventDefault();
3139
3160
  }
3140
3161
  }
3141
- }, ar = ["href"], or = ["src", "alt"], lr = ["src"], cr = ["src"], dr = ["href", "download"], ur = { class: "wm-att__main" }, hr = { class: "wm-att__name" }, mr = {
3162
+ }, ir = ["href"], ar = ["src", "alt"], or = ["src"], lr = ["src"], cr = ["href", "download"], dr = { class: "wm-att__main" }, ur = { class: "wm-att__name" }, hr = {
3142
3163
  key: 0,
3143
3164
  class: "wm-att__meta"
3144
- }, fr = {
3165
+ }, mr = {
3145
3166
  key: 0,
3146
3167
  class: "wm-att__spin",
3147
3168
  "aria-hidden": "true"
3148
3169
  };
3149
- function _r(e, t, n, i, r, s) {
3170
+ function fr(e, t, n, i, r, s) {
3150
3171
  return c(), d("div", {
3151
3172
  class: O(["wm-att", ["wm-att--" + (s.kind || "file")]])
3152
3173
  }, [
@@ -3161,18 +3182,18 @@ function _r(e, t, n, i, r, s) {
3161
3182
  src: r.url,
3162
3183
  alt: s.displayName,
3163
3184
  loading: "lazy"
3164
- }, null, 8, or)
3165
- ], 8, ar)) : s.kind === "audio" && r.url ? (c(), d("audio", {
3185
+ }, null, 8, ar)
3186
+ ], 8, ir)) : s.kind === "audio" && r.url ? (c(), d("audio", {
3166
3187
  key: 1,
3167
3188
  src: r.url,
3168
3189
  controls: "",
3169
3190
  preload: "metadata"
3170
- }, null, 8, lr)) : s.kind === "video" && r.url ? (c(), d("video", {
3191
+ }, null, 8, or)) : s.kind === "video" && r.url ? (c(), d("video", {
3171
3192
  key: 2,
3172
3193
  src: r.url,
3173
3194
  controls: "",
3174
3195
  preload: "metadata"
3175
- }, null, 8, cr)) : (c(), d("a", {
3196
+ }, null, 8, lr)) : (c(), d("a", {
3176
3197
  key: 3,
3177
3198
  class: "wm-att__file",
3178
3199
  href: s.safeHref,
@@ -3197,15 +3218,15 @@ function _r(e, t, n, i, r, s) {
3197
3218
  a("path", { d: "M14 2v6h6" })
3198
3219
  ])
3199
3220
  ], -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)
3221
+ a("span", dr, [
3222
+ a("span", ur, v(s.displayName), 1),
3223
+ s.sizeLabel ? (c(), d("span", hr, v(s.sizeLabel), 1)) : y("", !0)
3203
3224
  ]),
3204
- r.loading ? (c(), d("span", fr)) : y("", !0)
3205
- ], 8, dr))
3225
+ r.loading ? (c(), d("span", mr)) : y("", !0)
3226
+ ], 8, cr))
3206
3227
  ], 2);
3207
3228
  }
3208
- const gr = /* @__PURE__ */ N(ir, [["render", _r], ["__scopeId", "data-v-0c877a62"]]), pr = {
3229
+ const _r = /* @__PURE__ */ N(rr, [["render", fr], ["__scopeId", "data-v-0c877a62"]]), gr = {
3209
3230
  name: "WmBubble",
3210
3231
  props: {
3211
3232
  role: { type: String, default: "ai" },
@@ -3217,45 +3238,45 @@ const gr = /* @__PURE__ */ N(ir, [["render", _r], ["__scopeId", "data-v-0c877a62
3217
3238
  return hn(this.text);
3218
3239
  }
3219
3240
  }
3220
- }, vr = ["innerHTML"];
3221
- function yr(e, t, n, i, r, s) {
3241
+ }, pr = ["innerHTML"];
3242
+ function vr(e, t, n, i, r, s) {
3222
3243
  return c(), d("div", {
3223
3244
  class: O(["wm-bubble", "wm-bubble--" + n.role])
3224
3245
  }, [
3225
3246
  He(e.$slots, "default", {}, () => [
3226
- a("span", { innerHTML: s.rendered }, null, 8, vr)
3247
+ a("span", { innerHTML: s.rendered }, null, 8, pr)
3227
3248
  ], !0)
3228
3249
  ], 2);
3229
3250
  }
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] = [
3251
+ const yr = /* @__PURE__ */ N(gr, [["render", vr], ["__scopeId", "data-v-7ab13147"]]), wr = { name: "WmTyping" }, br = { class: "wm-typing" };
3252
+ function kr(e, t, n, i, r, s) {
3253
+ return c(), d("div", br, [...t[0] || (t[0] = [
3233
3254
  a("span", { style: { "animation-delay": "0s" } }, null, -1),
3234
3255
  a("span", { style: { "animation-delay": "0.2s" } }, null, -1),
3235
3256
  a("span", { style: { "animation-delay": "0.4s" } }, null, -1)
3236
3257
  ])]);
3237
3258
  }
3238
- const Ar = /* @__PURE__ */ N(br, [["render", Cr], ["__scopeId", "data-v-df2447fd"]]);
3259
+ const Cr = /* @__PURE__ */ N(wr, [["render", kr], ["__scopeId", "data-v-df2447fd"]]);
3239
3260
  function Q(e) {
3240
3261
  return e ? e.client_msg_id || e.id : "";
3241
3262
  }
3242
- const Sr = {
3263
+ const Ar = {
3243
3264
  transferred_to_human: "system.transferredToHuman",
3244
3265
  assigned: "system.assigned",
3245
3266
  unassigned: "system.unassigned",
3246
3267
  resolved: "system.resolved",
3247
3268
  reopened: "system.reopened",
3248
3269
  idle: "system.idle"
3249
- }, Mr = 80, Tr = 200, xr = {
3270
+ }, Sr = 80, Mr = 200, Tr = {
3250
3271
  name: "WmMessageList",
3251
3272
  components: {
3252
3273
  AIAvatar: le,
3253
3274
  HumanAvatar: Ce,
3254
- Bubble: wr,
3255
- Typing: Ar,
3256
- ActionResult: ps,
3257
- AttachmentPreview: gr,
3258
- ArtifactRenderer: rr
3275
+ Bubble: yr,
3276
+ Typing: Cr,
3277
+ ActionResult: gs,
3278
+ AttachmentPreview: _r,
3279
+ ArtifactRenderer: sr
3259
3280
  },
3260
3281
  inject: {
3261
3282
  // Translator + resolved-language getter shared by the Messenger
@@ -3445,11 +3466,11 @@ const Sr = {
3445
3466
  return `g-${n}`;
3446
3467
  },
3447
3468
  isAtBottom(e) {
3448
- return e.scrollHeight - e.scrollTop - e.clientHeight <= Mr;
3469
+ return e.scrollHeight - e.scrollTop - e.clientHeight <= Sr;
3449
3470
  },
3450
3471
  onScroll() {
3451
3472
  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"))));
3473
+ e && (this.showScrollDown = !this.isAtBottom(e), !(this.loadingMore || !this.hasMore) && (this._pendingLoadMore || e.scrollTop <= Mr && (this._pendingLoadMore = !0, this.$emit("load-more"))));
3453
3474
  },
3454
3475
  // Capture pre-patch scroll state and restore it on the next tick.
3455
3476
  //
@@ -3650,7 +3671,7 @@ const Sr = {
3650
3671
  // doit garder son arrondi.
3651
3672
  cornersFor(e, t) {
3652
3673
  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";
3674
+ 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
3675
  let U = l, I = l, q = l, Y = l;
3655
3676
  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
3677
  },
@@ -3787,7 +3808,7 @@ const Sr = {
3787
3808
  },
3788
3809
  systemLabel(e) {
3789
3810
  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");
3811
+ const t = (r = e == null ? void 0 : e.payload) == null ? void 0 : r.event, n = Ar[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
3812
  return n ? this.t(n, { name: i }) : (e == null ? void 0 : e.text_md) || this.t("messageList.conversationUpdate");
3792
3813
  },
3793
3814
  scrollToBottom() {
@@ -3802,74 +3823,74 @@ const Sr = {
3802
3823
  e && (typeof e.scrollTo == "function" ? e.scrollTo({ top: e.scrollHeight, behavior: "smooth" }) : e.scrollTop = e.scrollHeight, this.showScrollDown = !1);
3803
3824
  }
3804
3825
  }
3805
- }, Or = { class: "wm-list__wrap" }, Ir = {
3826
+ }, xr = { class: "wm-list__wrap" }, Or = {
3806
3827
  key: 0,
3807
3828
  class: "wm-list__loadMore",
3808
3829
  role: "status",
3809
3830
  "aria-live": "polite"
3810
- }, Lr = { class: "wm-list__loadMore-lbl" }, Er = {
3831
+ }, Ir = { class: "wm-list__loadMore-lbl" }, Lr = {
3811
3832
  key: 1,
3812
3833
  class: "wm-list__historyEnd"
3813
- }, Br = {
3834
+ }, Er = {
3814
3835
  key: 2,
3815
3836
  class: "wm-list__sep"
3816
- }, Rr = { class: "wm-list__sep-label" }, Nr = {
3837
+ }, Br = { class: "wm-list__sep-label" }, Rr = {
3817
3838
  key: 0,
3818
3839
  class: "wm-list__sep wm-list__sep--unread"
3819
- }, Pr = { class: "wm-list__sep-label wm-list__sep-label--unread" }, Ur = {
3840
+ }, Nr = { class: "wm-list__sep-label wm-list__sep-label--unread" }, Pr = {
3820
3841
  key: 0,
3821
3842
  class: "wm-list__sysep"
3822
- }, Fr = { class: "wm-list__sysep-label" }, Dr = ["data-row-key", "onPointerdown"], jr = {
3843
+ }, Ur = { class: "wm-list__sysep-label" }, Fr = ["data-row-key", "onPointerdown"], Dr = {
3823
3844
  key: 0,
3824
3845
  class: "wm-list__avatarSlot"
3825
- }, Hr = {
3846
+ }, jr = {
3826
3847
  key: 5,
3827
3848
  class: "wm-list__body"
3828
- }, zr = { key: 0 }, qr = {
3849
+ }, Hr = { key: 0 }, zr = {
3829
3850
  key: 1,
3830
3851
  "aria-hidden": "true"
3831
- }, Vr = { key: 2 }, Kr = { key: 0 }, $r = {
3852
+ }, qr = { key: 2 }, Vr = { key: 0 }, Kr = {
3832
3853
  key: 1,
3833
3854
  "aria-hidden": "true"
3834
- }, Wr = { key: 2 }, Gr = {
3855
+ }, $r = { key: 2 }, Wr = {
3835
3856
  key: 3,
3836
3857
  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) {
3858
+ }, Gr = { class: "wm-list__avatarSlot" }, Yr = ["aria-label", "title"];
3859
+ function Jr(e, t, n, i, r, s) {
3839
3860
  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, [
3861
+ return c(), d("div", xr, [
3841
3862
  a("div", {
3842
3863
  ref: "scrollEl",
3843
3864
  class: O(["wm-list", { "wm-list--silent": r.silentFades }]),
3844
3865
  onScrollPassive: t[4] || (t[4] = (...A) => s.onScroll && s.onScroll(...A))
3845
3866
  }, [
3846
- n.loadingMore ? (c(), d("div", Ir, [
3867
+ n.loadingMore ? (c(), d("div", Or, [
3847
3868
  t[6] || (t[6] = a("span", {
3848
3869
  class: "wm-list__loadMore-spinner",
3849
3870
  "aria-hidden": "true"
3850
3871
  }, 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, [
3872
+ a("span", Ir, v(s.t("messageList.loadingHistory")), 1)
3873
+ ])) : s.historyExhausted ? (c(), d("div", Lr, v(s.t("messageList.conversationStart")), 1)) : y("", !0),
3874
+ n.dateLabel ? (c(), d("div", Er, [
3854
3875
  t[7] || (t[7] = a("div", { class: "wm-list__line" }, null, -1)),
3855
- a("span", Rr, v(n.dateLabel), 1),
3876
+ a("span", Br, v(n.dateLabel), 1),
3856
3877
  t[8] || (t[8] = a("div", { class: "wm-list__line" }, null, -1))
3857
3878
  ])) : y("", !0),
3858
- (c(!0), d(E, null, F(s.groups, (A, H) => (c(), d(E, {
3879
+ (c(!0), d(E, null, F(s.groups, (A, z) => (c(), d(E, {
3859
3880
  key: A.key
3860
3881
  }, [
3861
- A.key === s.unreadGroupKey ? (c(), d("div", Nr, [
3882
+ A.key === s.unreadGroupKey ? (c(), d("div", Rr, [
3862
3883
  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),
3884
+ a("span", Nr, v(s.t("messageList.unread")), 1),
3864
3885
  t[10] || (t[10] = a("div", { class: "wm-list__line wm-list__line--unread" }, null, -1))
3865
3886
  ])) : y("", !0),
3866
3887
  A.role === "system" || A.items.length ? (c(), d("div", {
3867
3888
  key: 1,
3868
3889
  class: O(["wm-list__group", "wm-list__group--" + A.role])
3869
3890
  }, [
3870
- A.role === "system" ? (c(), d("div", Ur, [
3891
+ A.role === "system" ? (c(), d("div", Pr, [
3871
3892
  t[11] || (t[11] = a("div", { class: "wm-list__line wm-list__line--strong" }, null, -1)),
3872
- a("span", Fr, v(A.systemLabel), 1),
3893
+ a("span", Ur, v(A.systemLabel), 1),
3873
3894
  t[12] || (t[12] = a("div", { class: "wm-list__line wm-list__line--strong" }, null, -1))
3874
3895
  ])) : (c(), d(E, { key: 1 }, [
3875
3896
  (c(!0), d(E, null, F(A.items, (S, U) => (c(), d(E, {
@@ -3884,7 +3905,7 @@ function Qr(e, t, n, i, r, s) {
3884
3905
  "is-failed": S.message._failed
3885
3906
  }
3886
3907
  ]]),
3887
- style: z(s.cornersStyle(A, U)),
3908
+ style: H(s.cornersStyle(A, U)),
3888
3909
  onPointerdown: (I) => s.onPressStart(`${s.messageKey(S.message)}-${S.partKey}`),
3889
3910
  onPointerup: t[0] || (t[0] = (I) => s.onPressEnd()),
3890
3911
  onPointercancel: t[1] || (t[1] = (I) => s.onPressEnd()),
@@ -3892,7 +3913,7 @@ function Qr(e, t, n, i, r, s) {
3892
3913
  onContextmenu: t[3] || (t[3] = G(() => {
3893
3914
  }, ["prevent"]))
3894
3915
  }, [
3895
- A.role !== "user" ? (c(), d("div", jr, [
3916
+ A.role !== "user" ? (c(), d("div", Dr, [
3896
3917
  U === A.items.length - 1 ? (c(), d(E, { key: 0 }, [
3897
3918
  A.role === "ai" ? (c(), P(o, {
3898
3919
  key: 0,
@@ -3925,7 +3946,7 @@ function Qr(e, t, n, i, r, s) {
3925
3946
  }, null, 8, ["artifact"])) : S.renderAs === "artifact" ? (c(), P(k, {
3926
3947
  key: 4,
3927
3948
  artifact: s.artifactOf(S.message)
3928
- }, null, 8, ["artifact"])) : (c(), d("div", Hr, [
3949
+ }, null, 8, ["artifact"])) : (c(), d("div", jr, [
3929
3950
  S.message.text_md ? (c(), P(w, {
3930
3951
  key: 0,
3931
3952
  role: A.role,
@@ -3945,29 +3966,29 @@ function Qr(e, t, n, i, r, s) {
3945
3966
  }, null, 8, ["attachment"]))), 128))
3946
3967
  ], 2)) : y("", !0)
3947
3968
  ]))
3948
- ], 46, Dr),
3969
+ ], 46, Fr),
3949
3970
  U < A.items.length - 1 && r.pressedItemKey === `${s.messageKey(S.message)}-${S.partKey}` && (A.role !== "user" || s.timeOf(S.message)) ? (c(), d("div", {
3950
3971
  key: 0,
3951
3972
  class: O(["wm-list__meta wm-list__meta--press", { "wm-list__meta--right": A.role === "user" }])
3952
3973
  }, [
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)
3974
+ A.role !== "user" ? (c(), d("span", Hr, v(s.roleLabel(A)), 1)) : y("", !0),
3975
+ A.role !== "user" && s.timeOf(S.message) ? (c(), d("span", zr, "·")) : y("", !0),
3976
+ s.timeOf(S.message) ? (c(), d("span", qr, v(s.timeOf(S.message)), 1)) : y("", !0)
3956
3977
  ], 2)) : y("", !0)
3957
3978
  ], 64))), 128)),
3958
3979
  (A.role !== "user" || s.lastTimeOf(A)) && !s.hasTrailingOverlay(A) ? (c(), d("div", {
3959
3980
  key: 0,
3960
3981
  class: O(["wm-list__meta", { "wm-list__meta--right": A.role === "user" }])
3961
3982
  }, [
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)
3983
+ A.role !== "user" ? (c(), d("span", Vr, v(s.roleLabel(A)), 1)) : y("", !0),
3984
+ A.role !== "user" && s.lastTimeOf(A) ? (c(), d("span", Kr, "·")) : y("", !0),
3985
+ s.lastTimeOf(A) ? (c(), d("span", $r, v(s.lastTimeOf(A)), 1)) : y("", !0)
3965
3986
  ], 2)) : y("", !0)
3966
3987
  ], 64))
3967
3988
  ], 2)) : y("", !0)
3968
3989
  ], 64))), 128)),
3969
- n.streamingActive ? (c(), d("div", Gr, [
3970
- a("div", Yr, [
3990
+ n.streamingActive ? (c(), d("div", Wr, [
3991
+ a("div", Gr, [
3971
3992
  V(o, {
3972
3993
  size: 26,
3973
3994
  tail: !0,
@@ -4001,14 +4022,14 @@ function Qr(e, t, n, i, r, s) {
4001
4022
  }, [
4002
4023
  a("path", { d: "M6 9l6 6 6-6" })
4003
4024
  ], -1)
4004
- ])], 8, Jr)) : y("", !0)
4025
+ ])], 8, Yr)) : y("", !0)
4005
4026
  ]),
4006
4027
  _: 1
4007
4028
  })
4008
4029
  ]);
4009
4030
  }
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() {
4031
+ const Qr = /* @__PURE__ */ N(Tr, [["render", Jr], ["__scopeId", "data-v-9ddbd0e3"]]), he = typeof navigator < "u" && !!navigator.mediaDevices && typeof navigator.mediaDevices.getDisplayMedia == "function", Ae = typeof window < "u" && typeof window.MediaRecorder < "u";
4032
+ function Xr() {
4012
4033
  return Ae && [
4013
4034
  "video/webm;codecs=vp9,opus",
4014
4035
  "video/webm;codecs=vp8,opus",
@@ -4028,10 +4049,10 @@ function Fe({ audio: e }) {
4028
4049
  systemAudio: e ? "include" : "exclude"
4029
4050
  };
4030
4051
  }
4031
- function oo(e) {
4052
+ function ao(e) {
4032
4053
  return e ? e.startsWith("image/") ? "image" : e.startsWith("video/") ? "video" : "file" : "file";
4033
4054
  }
4034
- async function ei() {
4055
+ async function Zr() {
4035
4056
  if (!he) return null;
4036
4057
  let e;
4037
4058
  try {
@@ -4042,7 +4063,7 @@ async function ei() {
4042
4063
  return (t == null ? void 0 : t.name) !== "NotAllowedError" && console.error("[media] screenshot picker", t), null;
4043
4064
  }
4044
4065
  try {
4045
- return await ti(e);
4066
+ return await ei(e);
4046
4067
  } catch (t) {
4047
4068
  return console.error("[media] screenshot capture", t), null;
4048
4069
  } finally {
@@ -4051,7 +4072,7 @@ async function ei() {
4051
4072
  });
4052
4073
  }
4053
4074
  }
4054
- async function ti(e) {
4075
+ async function ei(e) {
4055
4076
  const t = document.createElement("video");
4056
4077
  t.muted = !0, t.playsInline = !0, t.srcObject = e, await t.play(), await new Promise((l) => requestAnimationFrame(l));
4057
4078
  const n = t.videoWidth || 1280, i = t.videoHeight || 720, r = document.createElement("canvas");
@@ -4064,7 +4085,7 @@ async function ti(e) {
4064
4085
  }), o = (/* @__PURE__ */ new Date()).toISOString().replace(/[:.]/g, "-").slice(0, 19);
4065
4086
  return new File([s], `capture-${o}.png`, { type: "image/png" });
4066
4087
  }
4067
- async function ni(e = {}) {
4088
+ async function ti(e = {}) {
4068
4089
  var k;
4069
4090
  if (!he || !Ae) return null;
4070
4091
  let t;
@@ -4075,7 +4096,7 @@ async function ni(e = {}) {
4075
4096
  } catch (w) {
4076
4097
  return (w == null ? void 0 : w.name) !== "NotAllowedError" && console.error("[media] record picker", w), null;
4077
4098
  }
4078
- const n = Zr();
4099
+ const n = Xr();
4079
4100
  let i;
4080
4101
  try {
4081
4102
  i = n ? new window.MediaRecorder(t, { mimeType: n }) : new window.MediaRecorder(t);
@@ -4093,7 +4114,7 @@ async function ni(e = {}) {
4093
4114
  if (s && clearInterval(s), t.getTracks().forEach((B) => {
4094
4115
  B.stop();
4095
4116
  }), 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}`, {
4117
+ 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
4118
  type: B
4098
4119
  });
4099
4120
  (w = e.onfinalize) == null || w.call(e, U);
@@ -4129,7 +4150,7 @@ async function ni(e = {}) {
4129
4150
  }
4130
4151
  };
4131
4152
  }
4132
- const si = [
4153
+ const ni = [
4133
4154
  {
4134
4155
  action: "file",
4135
4156
  labelKey: "composer.attachFile",
@@ -4145,7 +4166,7 @@ const si = [
4145
4166
  labelKey: "composer.recordScreen",
4146
4167
  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
4168
  }
4148
- ], ri = {
4169
+ ], si = {
4149
4170
  name: "WmComposer",
4150
4171
  inject: {
4151
4172
  // Translator shared by the Messenger shell; French fallback when
@@ -4179,7 +4200,7 @@ const si = [
4179
4200
  return !this.disabled && !!this.local.trim();
4180
4201
  },
4181
4202
  attachItems() {
4182
- return si.map((e) => ({
4203
+ return ni.map((e) => ({
4183
4204
  ...e,
4184
4205
  label: this.t(e.labelKey),
4185
4206
  disabled: e.action === "screenshot" && !he || e.action === "record" && (!he || !Ae)
@@ -4253,13 +4274,13 @@ const si = [
4253
4274
  },
4254
4275
  async captureScreenshot() {
4255
4276
  if (this.disabled) return;
4256
- const e = await ei();
4277
+ const e = await Zr();
4257
4278
  e && this.$emit("attach", e);
4258
4279
  },
4259
4280
  async startRecording() {
4260
4281
  if (this.recording || this.disabled) return;
4261
4282
  this.recordingElapsed = 0;
4262
- const e = await ni({
4283
+ const e = await ti({
4263
4284
  onstart: () => {
4264
4285
  this.recording = !0;
4265
4286
  },
@@ -4301,30 +4322,30 @@ const si = [
4301
4322
  !e || !this._vvHandler || (e.removeEventListener("resize", this._vvHandler), e.removeEventListener("scroll", this._vvHandler), this._vvHandler = null);
4302
4323
  }
4303
4324
  }
4304
- }, ii = {
4325
+ }, ri = {
4305
4326
  key: 0,
4306
4327
  class: "wm-rec"
4307
- }, ai = { class: "wm-rec__lbl" }, oi = {
4328
+ }, ii = { class: "wm-rec__lbl" }, ai = {
4308
4329
  key: 1,
4309
4330
  class: "wm-compose__menu",
4310
4331
  role: "menu"
4311
- }, li = ["disabled", "onClick"], ci = { class: "wm-compose__menuIcon" }, di = {
4332
+ }, oi = ["disabled", "onClick"], li = { class: "wm-compose__menuIcon" }, ci = {
4312
4333
  viewBox: "0 0 24 24",
4313
4334
  width: "14",
4314
4335
  height: "14",
4315
4336
  "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) {
4337
+ }, di = ["d"], ui = ["placeholder", "disabled"], hi = { class: "wm-compose__actions" }, mi = ["title", "aria-label", "disabled"], fi = ["disabled", "aria-label"];
4338
+ function _i(e, t, n, i, r, s) {
4318
4339
  return c(), d("div", {
4319
4340
  class: O(["wm-compose-wrap", { "wm-compose-wrap--sheet": n.displayMode === "sheet" }]),
4320
- style: z(r.kbOffset ? { transform: `translateY(-${r.kbOffset}px)` } : null)
4341
+ style: H(r.kbOffset ? { transform: `translateY(-${r.kbOffset}px)` } : null)
4321
4342
  }, [
4322
- r.recording ? (c(), d("div", ii, [
4343
+ r.recording ? (c(), d("div", ri, [
4323
4344
  t[8] || (t[8] = a("span", {
4324
4345
  class: "wm-rec__dot",
4325
4346
  "aria-hidden": "true"
4326
4347
  }, null, -1)),
4327
- a("span", ai, v(s.t("composer.recording", { time: s.recordingElapsedLabel })), 1),
4348
+ a("span", ii, v(s.t("composer.recording", { time: s.recordingElapsedLabel })), 1),
4328
4349
  a("button", {
4329
4350
  type: "button",
4330
4351
  class: "wm-rec__stop",
@@ -4347,7 +4368,7 @@ function gi(e, t, n, i, r, s) {
4347
4368
  class: "wm-compose__overlay",
4348
4369
  onClick: t[2] || (t[2] = (o) => r.attachOpen = !1)
4349
4370
  })) : y("", !0),
4350
- r.attachOpen ? (c(), d("div", oi, [
4371
+ r.attachOpen ? (c(), d("div", ai, [
4351
4372
  (c(!0), d(E, null, F(s.attachItems, (o) => (c(), d("button", {
4352
4373
  key: o.action,
4353
4374
  type: "button",
@@ -4355,8 +4376,8 @@ function gi(e, t, n, i, r, s) {
4355
4376
  disabled: o.disabled,
4356
4377
  onClick: (l) => s.onAttachAction(o.action)
4357
4378
  }, [
4358
- a("span", ci, [
4359
- (c(), d("svg", di, [
4379
+ a("span", li, [
4380
+ (c(), d("svg", ci, [
4360
4381
  a("path", {
4361
4382
  d: o.path,
4362
4383
  stroke: "currentColor",
@@ -4364,11 +4385,11 @@ function gi(e, t, n, i, r, s) {
4364
4385
  "stroke-linecap": "round",
4365
4386
  "stroke-linejoin": "round",
4366
4387
  fill: "none"
4367
- }, null, 8, ui)
4388
+ }, null, 8, di)
4368
4389
  ]))
4369
4390
  ]),
4370
4391
  a("span", null, v(o.label), 1)
4371
- ], 8, li))), 128))
4392
+ ], 8, oi))), 128))
4372
4393
  ])) : y("", !0),
4373
4394
  $(a("textarea", {
4374
4395
  ref: "inputEl",
@@ -4379,10 +4400,10 @@ function gi(e, t, n, i, r, s) {
4379
4400
  disabled: n.disabled,
4380
4401
  onKeydown: t[4] || (t[4] = (...o) => s.onKeydown && s.onKeydown(...o)),
4381
4402
  onInput: t[5] || (t[5] = (...o) => s.autosize && s.autosize(...o))
4382
- }, null, 40, hi), [
4403
+ }, null, 40, ui), [
4383
4404
  [X, r.local]
4384
4405
  ]),
4385
- a("div", mi, [
4406
+ a("div", hi, [
4386
4407
  a("button", {
4387
4408
  type: "button",
4388
4409
  class: O(["wm-compose__icon", { "is-open": r.attachOpen }]),
@@ -4404,7 +4425,7 @@ function gi(e, t, n, i, r, s) {
4404
4425
  }, [
4405
4426
  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
4427
  ], -1)
4407
- ])], 10, fi),
4428
+ ])], 10, mi),
4408
4429
  a("button", {
4409
4430
  type: "submit",
4410
4431
  class: O(["wm-compose__send", { "is-empty": !s.canSend }]),
@@ -4424,12 +4445,12 @@ function gi(e, t, n, i, r, s) {
4424
4445
  }, [
4425
4446
  a("path", { d: "M22 2L11 13M22 2l-7 20-4-9-9-4 20-7z" })
4426
4447
  ], -1)
4427
- ])], 10, _i)
4448
+ ])], 10, fi)
4428
4449
  ])
4429
4450
  ], 34)
4430
4451
  ], 6);
4431
4452
  }
4432
- const pi = /* @__PURE__ */ N(ri, [["render", gi], ["__scopeId", "data-v-01e81a27"]]), vi = {
4453
+ const gi = /* @__PURE__ */ N(si, [["render", _i], ["__scopeId", "data-v-01e81a27"]]), pi = {
4433
4454
  name: "WmSuggestionChips",
4434
4455
  props: {
4435
4456
  items: { type: Array, default: () => [] },
@@ -4446,8 +4467,8 @@ const pi = /* @__PURE__ */ N(ri, [["render", gi], ["__scopeId", "data-v-01e81a27
4446
4467
  return this.items.map((e) => (e == null ? void 0 : e.label) || (e == null ? void 0 : e.text) || "").join("§");
4447
4468
  }
4448
4469
  }
4449
- }, yi = ["onClick"];
4450
- function wi(e, t, n, i, r, s) {
4470
+ }, vi = ["onClick"];
4471
+ function yi(e, t, n, i, r, s) {
4451
4472
  return n.items.length ? (c(), d("div", {
4452
4473
  key: s.batchKey,
4453
4474
  class: "wm-chips"
@@ -4456,12 +4477,12 @@ function wi(e, t, n, i, r, s) {
4456
4477
  key: l,
4457
4478
  type: "button",
4458
4479
  class: "wm-chip",
4459
- style: z({ animationDelay: n.baseDelay + l * n.stepDelay + "ms" }),
4480
+ style: H({ animationDelay: n.baseDelay + l * n.stepDelay + "ms" }),
4460
4481
  onClick: (p) => e.$emit("select", o)
4461
- }, v(o.label), 13, yi))), 128))
4482
+ }, v(o.label), 13, vi))), 128))
4462
4483
  ])) : y("", !0);
4463
4484
  }
4464
- const bi = /* @__PURE__ */ N(vi, [["render", wi], ["__scopeId", "data-v-47ad8085"]]), ki = {
4485
+ const wi = /* @__PURE__ */ N(pi, [["render", yi], ["__scopeId", "data-v-47ad8085"]]), bi = {
4465
4486
  name: "WmApprovalCard",
4466
4487
  components: { AIAvatar: le },
4467
4488
  inject: {
@@ -4505,27 +4526,27 @@ const bi = /* @__PURE__ */ N(vi, [["render", wi], ["__scopeId", "data-v-47ad8085
4505
4526
  return ((e = this.rejectCallback) == null ? void 0 : e.label) || this.t("approval.reject");
4506
4527
  }
4507
4528
  }
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 = {
4529
+ }, ki = { class: "wm-approval" }, Ci = { class: "wm-approval__head" }, Ai = { class: "wm-approval__icon" }, Si = { class: "wm-approval__main" }, Mi = { class: "wm-approval__title" }, Ti = {
4509
4530
  key: 0,
4510
4531
  class: "wm-approval__detail"
4511
- }, Oi = { class: "wm-approval__actions" };
4512
- function Ii(e, t, n, i, r, s) {
4532
+ }, xi = { class: "wm-approval__actions" };
4533
+ function Oi(e, t, n, i, r, s) {
4513
4534
  const o = R("AIAvatar");
4514
- return c(), d("div", Ci, [
4515
- a("div", Ai, [
4516
- a("div", Si, [
4535
+ return c(), d("div", ki, [
4536
+ a("div", Ci, [
4537
+ a("div", Ai, [
4517
4538
  V(o, {
4518
4539
  size: 24,
4519
4540
  name: n.agentName,
4520
4541
  "image-url": n.agentAvatarUrl
4521
4542
  }, null, 8, ["name", "image-url"])
4522
4543
  ]),
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)
4544
+ a("div", Si, [
4545
+ a("div", Mi, v(n.action), 1),
4546
+ n.detail ? (c(), d("div", Ti, v(n.detail), 1)) : y("", !0)
4526
4547
  ])
4527
4548
  ]),
4528
- a("div", Oi, [
4549
+ a("div", xi, [
4529
4550
  s.rejectId ? (c(), d("button", {
4530
4551
  key: 0,
4531
4552
  type: "button",
@@ -4541,9 +4562,9 @@ function Ii(e, t, n, i, r, s) {
4541
4562
  ])
4542
4563
  ]);
4543
4564
  }
4544
- const Li = /* @__PURE__ */ N(ki, [["render", Ii], ["__scopeId", "data-v-a2bed37e"]]);
4565
+ const Ii = /* @__PURE__ */ N(bi, [["render", Oi], ["__scopeId", "data-v-a2bed37e"]]);
4545
4566
  let Ee = 0;
4546
- const Ei = /* @__PURE__ */ new Set([
4567
+ const Li = /* @__PURE__ */ new Set([
4547
4568
  "text",
4548
4569
  "textarea",
4549
4570
  "number",
@@ -4551,7 +4572,7 @@ const Ei = /* @__PURE__ */ new Set([
4551
4572
  "select",
4552
4573
  "multiselect",
4553
4574
  "date"
4554
- ]), Bi = {
4575
+ ]), Ei = {
4555
4576
  name: "WmFormCard",
4556
4577
  components: { AIAvatar: le },
4557
4578
  inject: {
@@ -4581,7 +4602,7 @@ const Ei = /* @__PURE__ */ new Set([
4581
4602
  // douteux.
4582
4603
  normalizedFields() {
4583
4604
  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)));
4605
+ return (Array.isArray((t = this.form) == null ? void 0 : t.fields) ? this.form.fields : []).filter((n) => !(!(n != null && n.key) || !(n != null && n.label) || !Li.has(n == null ? void 0 : n.type) || (n.type === "select" || n.type === "multiselect") && (!Array.isArray(n.options) || n.options.length === 0)));
4585
4606
  }
4586
4607
  },
4587
4608
  created() {
@@ -4634,47 +4655,47 @@ const Ei = /* @__PURE__ */ new Set([
4634
4655
  }
4635
4656
  }
4636
4657
  }
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 = {
4658
+ }, Bi = { class: "wm-form" }, Ri = { class: "wm-form__head" }, Ni = { class: "wm-form__icon" }, Pi = { class: "wm-form__main" }, Ui = { class: "wm-form__title" }, Fi = {
4638
4659
  key: 0,
4639
4660
  class: "wm-form__detail"
4640
- }, ji = ["for"], Hi = {
4661
+ }, Di = ["for"], ji = {
4641
4662
  key: 0,
4642
4663
  class: "wm-form__req",
4643
4664
  "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 = {
4665
+ }, Hi = ["id", "onUpdate:modelValue", "placeholder", "required", "disabled"], zi = ["id", "onUpdate:modelValue", "placeholder", "required", "disabled"], qi = ["id", "onUpdate:modelValue", "placeholder", "required", "disabled"], Vi = ["id", "onUpdate:modelValue", "required", "disabled"], Ki = {
4645
4666
  key: 4,
4646
4667
  class: "wm-form__bool"
4647
- }, Wi = ["id", "onUpdate:modelValue", "disabled"], Gi = ["id", "onUpdate:modelValue", "required", "disabled"], Yi = {
4668
+ }, $i = ["id", "onUpdate:modelValue", "disabled"], Wi = ["id", "onUpdate:modelValue", "required", "disabled"], Gi = {
4648
4669
  value: "",
4649
4670
  disabled: ""
4650
- }, Ji = ["value"], Qi = {
4671
+ }, Yi = ["value"], Ji = {
4651
4672
  key: 6,
4652
4673
  class: "wm-form__multi"
4653
- }, Xi = ["value", "checked", "disabled", "onChange"], Zi = {
4674
+ }, Qi = ["value", "checked", "disabled", "onChange"], Xi = {
4654
4675
  key: 0,
4655
4676
  class: "wm-form__err"
4656
- }, ea = ["disabled"], ta = {
4677
+ }, Zi = ["disabled"], ea = {
4657
4678
  key: 0,
4658
4679
  class: "wm-form__spinner",
4659
4680
  "aria-hidden": "true"
4660
- }, na = {
4681
+ }, ta = {
4661
4682
  key: 2,
4662
4683
  class: "wm-form__doneLbl"
4663
4684
  };
4664
- function sa(e, t, n, i, r, s) {
4685
+ function na(e, t, n, i, r, s) {
4665
4686
  const o = R("AIAvatar");
4666
- return c(), d("div", Ri, [
4667
- a("div", Ni, [
4668
- a("div", Pi, [
4687
+ return c(), d("div", Bi, [
4688
+ a("div", Ri, [
4689
+ a("div", Ni, [
4669
4690
  V(o, {
4670
4691
  size: 24,
4671
4692
  name: n.agentName,
4672
4693
  "image-url": n.agentAvatarUrl
4673
4694
  }, null, 8, ["name", "image-url"])
4674
4695
  ]),
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)
4696
+ a("div", Pi, [
4697
+ a("div", Ui, v(n.form.title || s.t("form.title")), 1),
4698
+ n.form.description ? (c(), d("div", Fi, v(n.form.description), 1)) : y("", !0)
4678
4699
  ])
4679
4700
  ]),
4680
4701
  a("form", {
@@ -4690,8 +4711,8 @@ function sa(e, t, n, i, r, s) {
4690
4711
  class: "wm-form__label"
4691
4712
  }, [
4692
4713
  ye(v(l.label), 1),
4693
- l.required ? (c(), d("span", Hi, "*")) : y("", !0)
4694
- ], 8, ji),
4714
+ l.required ? (c(), d("span", ji, "*")) : y("", !0)
4715
+ ], 8, Di),
4695
4716
  l.type === "text" ? $((c(), d("input", {
4696
4717
  key: 0,
4697
4718
  id: `wm-f-${r._uid}-${l.key}`,
@@ -4701,7 +4722,7 @@ function sa(e, t, n, i, r, s) {
4701
4722
  placeholder: l.placeholder || "",
4702
4723
  required: l.required,
4703
4724
  disabled: n.readOnly || r.busy
4704
- }, null, 8, zi)), [
4725
+ }, null, 8, Hi)), [
4705
4726
  [X, r.values[l.key]]
4706
4727
  ]) : l.type === "textarea" ? $((c(), d("textarea", {
4707
4728
  key: 1,
@@ -4712,7 +4733,7 @@ function sa(e, t, n, i, r, s) {
4712
4733
  placeholder: l.placeholder || "",
4713
4734
  required: l.required,
4714
4735
  disabled: n.readOnly || r.busy
4715
- }, null, 8, qi)), [
4736
+ }, null, 8, zi)), [
4716
4737
  [X, r.values[l.key]]
4717
4738
  ]) : l.type === "number" ? $((c(), d("input", {
4718
4739
  key: 2,
@@ -4723,7 +4744,7 @@ function sa(e, t, n, i, r, s) {
4723
4744
  placeholder: l.placeholder || "",
4724
4745
  required: l.required,
4725
4746
  disabled: n.readOnly || r.busy
4726
- }, null, 8, Vi)), [
4747
+ }, null, 8, qi)), [
4727
4748
  [
4728
4749
  X,
4729
4750
  r.values[l.key],
@@ -4738,15 +4759,15 @@ function sa(e, t, n, i, r, s) {
4738
4759
  class: "wm-form__input",
4739
4760
  required: l.required,
4740
4761
  disabled: n.readOnly || r.busy
4741
- }, null, 8, Ki)), [
4762
+ }, null, 8, Vi)), [
4742
4763
  [X, r.values[l.key]]
4743
- ]) : l.type === "boolean" ? (c(), d("label", $i, [
4764
+ ]) : l.type === "boolean" ? (c(), d("label", Ki, [
4744
4765
  $(a("input", {
4745
4766
  id: `wm-f-${r._uid}-${l.key}`,
4746
4767
  "onUpdate:modelValue": (p) => r.values[l.key] = p,
4747
4768
  type: "checkbox",
4748
4769
  disabled: n.readOnly || r.busy
4749
- }, null, 8, Wi), [
4770
+ }, null, 8, $i), [
4750
4771
  [ze, r.values[l.key]]
4751
4772
  ]),
4752
4773
  a("span", null, v(l.placeholder || s.t("common.yes")), 1)
@@ -4758,14 +4779,14 @@ function sa(e, t, n, i, r, s) {
4758
4779
  required: l.required,
4759
4780
  disabled: n.readOnly || r.busy
4760
4781
  }, [
4761
- a("option", Yi, v(l.placeholder || s.t("form.choose")), 1),
4782
+ a("option", Gi, v(l.placeholder || s.t("form.choose")), 1),
4762
4783
  (c(!0), d(E, null, F(l.options, (p) => (c(), d("option", {
4763
4784
  key: p.value,
4764
4785
  value: p.value
4765
- }, v(p.label), 9, Ji))), 128))
4766
- ], 8, Gi)), [
4786
+ }, v(p.label), 9, Yi))), 128))
4787
+ ], 8, Wi)), [
4767
4788
  [qe, r.values[l.key]]
4768
- ]) : l.type === "multiselect" ? (c(), d("div", Qi, [
4789
+ ]) : l.type === "multiselect" ? (c(), d("div", Ji, [
4769
4790
  (c(!0), d(E, null, F(l.options, (p) => (c(), d("label", {
4770
4791
  key: p.value,
4771
4792
  class: "wm-form__multiItem"
@@ -4780,25 +4801,25 @@ function sa(e, t, n, i, r, s) {
4780
4801
  p.value,
4781
4802
  k.target.checked
4782
4803
  )
4783
- }, null, 40, Xi),
4804
+ }, null, 40, Qi),
4784
4805
  a("span", null, v(p.label), 1)
4785
4806
  ]))), 128))
4786
4807
  ])) : y("", !0)
4787
4808
  ]))), 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", {
4809
+ r.error ? (c(), d("div", Xi, v(r.error), 1)) : y("", !0),
4810
+ n.readOnly ? (c(), d("div", ta, v(s.t("form.responseSent")), 1)) : (c(), d("button", {
4790
4811
  key: 1,
4791
4812
  type: "submit",
4792
4813
  class: "wm-form__submit",
4793
4814
  disabled: r.busy
4794
4815
  }, [
4795
- r.busy ? (c(), d("span", ta)) : y("", !0),
4816
+ r.busy ? (c(), d("span", ea)) : y("", !0),
4796
4817
  a("span", null, v(r.busy ? s.t("common.sending") : n.form.submit_label || s.t("common.send")), 1)
4797
- ], 8, ea))
4818
+ ], 8, Zi))
4798
4819
  ], 32)
4799
4820
  ]);
4800
4821
  }
4801
- const ra = /* @__PURE__ */ N(Bi, [["render", sa], ["__scopeId", "data-v-fe65cc56"]]), ia = {
4822
+ const sa = /* @__PURE__ */ N(Ei, [["render", na], ["__scopeId", "data-v-fe65cc56"]]), ra = {
4802
4823
  name: "WmFeedback",
4803
4824
  inject: {
4804
4825
  // Translator shared by the Messenger shell; French fallback when
@@ -4832,13 +4853,13 @@ const ra = /* @__PURE__ */ N(Bi, [["render", sa], ["__scopeId", "data-v-fe65cc56
4832
4853
  !this.sel || this.busy || this.$emit("submit", { rating: this.sel });
4833
4854
  }
4834
4855
  }
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 = {
4856
+ }, ia = { class: "wm-fb" }, aa = { class: "wm-fb__title" }, oa = { class: "wm-fb__sub" }, la = { class: "wm-fb__row" }, ca = ["onClick"], da = { class: "wm-fb__emoji" }, ua = { class: "wm-fb__label" }, ha = ["disabled"], ma = {
4836
4857
  key: 1,
4837
4858
  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, [
4859
+ }, fa = { class: "wm-fb__doneTitle" }, _a = { class: "wm-fb__doneSub" };
4860
+ function ga(e, t, n, i, r, s) {
4861
+ return c(), d("div", ia, [
4862
+ n.done ? (c(), d("div", ma, [
4842
4863
  t[1] || (t[1] = a("div", { class: "wm-fb__check" }, [
4843
4864
  a("svg", {
4844
4865
  width: "16",
@@ -4854,32 +4875,32 @@ function pa(e, t, n, i, r, s) {
4854
4875
  a("path", { d: "M20 6L9 17l-5-5" })
4855
4876
  ])
4856
4877
  ], -1)),
4857
- a("div", _a, v(s.t("feedback.doneTitle")), 1),
4858
- a("div", ga, v(s.t("feedback.doneSubtitle")), 1)
4878
+ a("div", fa, v(s.t("feedback.doneTitle")), 1),
4879
+ a("div", _a, v(s.t("feedback.doneSubtitle")), 1)
4859
4880
  ])) : (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, [
4881
+ a("div", aa, v(s.t("feedback.question")), 1),
4882
+ a("div", oa, v(s.t("feedback.subtitle")), 1),
4883
+ a("div", la, [
4863
4884
  (c(!0), d(E, null, F(s.options, (o) => (c(), d("button", {
4864
4885
  key: o.v,
4865
4886
  type: "button",
4866
4887
  class: O(["wm-fb__opt", { "is-selected": r.sel === o.v }]),
4867
4888
  onClick: (l) => r.sel = o.v
4868
4889
  }, [
4869
- a("span", ua, v(o.e), 1),
4870
- a("span", ha, v(o.l), 1)
4871
- ], 10, da))), 128))
4890
+ a("span", da, v(o.e), 1),
4891
+ a("span", ua, v(o.l), 1)
4892
+ ], 10, ca))), 128))
4872
4893
  ]),
4873
4894
  a("button", {
4874
4895
  type: "button",
4875
4896
  class: "wm-fb__send",
4876
4897
  disabled: !r.sel || n.busy,
4877
4898
  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)
4899
+ }, v(n.busy ? s.t("common.sending") : s.t("feedback.submit")), 9, ha)
4879
4900
  ], 64))
4880
4901
  ]);
4881
4902
  }
4882
- const va = /* @__PURE__ */ N(ia, [["render", pa], ["__scopeId", "data-v-9b630564"]]), ya = {
4903
+ const pa = /* @__PURE__ */ N(ra, [["render", ga], ["__scopeId", "data-v-9b630564"]]), va = {
4883
4904
  name: "WmMoreMenu",
4884
4905
  inject: {
4885
4906
  // Translator shared by the Messenger shell; French fallback when
@@ -4922,24 +4943,24 @@ const va = /* @__PURE__ */ N(ia, [["render", pa], ["__scopeId", "data-v-9b630564
4922
4943
  this.browserNotifOn = !this.browserNotifOn, this.$emit("browser-notif-toggle", this.browserNotifOn);
4923
4944
  }
4924
4945
  }
4925
- }, wa = { class: "wm-mm" }, ba = {
4946
+ }, ya = { class: "wm-mm" }, wa = {
4926
4947
  class: "wm-mm__pop",
4927
4948
  role: "menu"
4928
- }, ka = {
4949
+ }, ba = {
4929
4950
  key: 0,
4930
4951
  class: "wm-mm__section"
4931
- }, Ca = { class: "wm-mm__label" }, Aa = { class: "wm-mm__label" }, Sa = {
4952
+ }, ka = { class: "wm-mm__label" }, Ca = { class: "wm-mm__label" }, Aa = {
4932
4953
  key: 1,
4933
4954
  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, [
4955
+ }, Sa = { class: "wm-mm__section" }, Ma = { class: "wm-mm__label" }, Ta = { class: "wm-mm__label" }, xa = { class: "wm-mm__section" }, Oa = { class: "wm-mm__label" }, Ia = { class: "wm-mm__label" };
4956
+ function La(e, t, n, i, r, s) {
4957
+ return c(), d("div", ya, [
4937
4958
  a("div", {
4938
4959
  class: "wm-mm__scrim",
4939
4960
  onClick: t[0] || (t[0] = (o) => e.$emit("close"))
4940
4961
  }),
4941
- a("div", ba, [
4942
- n.canRename || n.canExport ? (c(), d("div", ka, [
4962
+ a("div", wa, [
4963
+ n.canRename || n.canExport ? (c(), d("div", ba, [
4943
4964
  n.canRename ? (c(), d("button", {
4944
4965
  key: 0,
4945
4966
  type: "button",
@@ -4962,7 +4983,7 @@ function Ea(e, t, n, i, r, s) {
4962
4983
  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
4984
  ])
4964
4985
  ], -1)),
4965
- a("span", Ca, v(s.t("moreMenu.editTitle")), 1)
4986
+ a("span", ka, v(s.t("moreMenu.editTitle")), 1)
4966
4987
  ])) : y("", !0),
4967
4988
  n.canExport ? (c(), d("button", {
4968
4989
  key: 1,
@@ -4985,12 +5006,12 @@ function Ea(e, t, n, i, r, s) {
4985
5006
  a("path", { d: "M4 12v8a2 2 0 002 2h12a2 2 0 002-2v-8M16 6l-4-4-4 4M12 2v13" })
4986
5007
  ])
4987
5008
  ], -1)),
4988
- a("span", Aa, v(s.t("moreMenu.exportTranscript")), 1),
5009
+ a("span", Ca, v(s.t("moreMenu.exportTranscript")), 1),
4989
5010
  t[9] || (t[9] = a("span", { class: "wm-mm__hint" }, ".txt", -1))
4990
5011
  ])) : y("", !0)
4991
5012
  ])) : y("", !0),
4992
- n.canRename || n.canExport ? (c(), d("div", Sa)) : y("", !0),
4993
- a("div", Ma, [
5013
+ n.canRename || n.canExport ? (c(), d("div", Aa)) : y("", !0),
5014
+ a("div", Sa, [
4994
5015
  a("button", {
4995
5016
  type: "button",
4996
5017
  class: "wm-mm__item",
@@ -5012,7 +5033,7 @@ function Ea(e, t, n, i, r, s) {
5012
5033
  a("path", { d: "M15.54 8.46a5 5 0 010 7.07M19.07 4.93a10 10 0 010 14.14" })
5013
5034
  ])
5014
5035
  ], -1)),
5015
- a("span", Ta, v(s.t("moreMenu.sound")), 1),
5036
+ a("span", Ma, v(s.t("moreMenu.sound")), 1),
5016
5037
  a("span", {
5017
5038
  class: O(["wm-mm__toggle", { "wm-mm__toggle--on": r.soundOn }])
5018
5039
  }, [...t[10] || (t[10] = [
@@ -5039,7 +5060,7 @@ function Ea(e, t, n, i, r, s) {
5039
5060
  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
5061
  ])
5041
5062
  ], -1)),
5042
- a("span", xa, v(s.t("moreMenu.browserNotifications")), 1),
5063
+ a("span", Ta, v(s.t("moreMenu.browserNotifications")), 1),
5043
5064
  a("span", {
5044
5065
  class: O(["wm-mm__toggle", { "wm-mm__toggle--on": r.browserNotifOn }])
5045
5066
  }, [...t[12] || (t[12] = [
@@ -5048,7 +5069,7 @@ function Ea(e, t, n, i, r, s) {
5048
5069
  ])
5049
5070
  ]),
5050
5071
  t[16] || (t[16] = a("div", { class: "wm-mm__sep" }, null, -1)),
5051
- a("div", Oa, [
5072
+ a("div", xa, [
5052
5073
  n.statusUrl ? (c(), d("button", {
5053
5074
  key: 0,
5054
5075
  type: "button",
@@ -5070,7 +5091,7 @@ function Ea(e, t, n, i, r, s) {
5070
5091
  a("path", { d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zM10 6v4l3 2" })
5071
5092
  ])
5072
5093
  ], -1)),
5073
- a("span", Ia, v(s.t("moreMenu.serviceStatus")), 1)
5094
+ a("span", Oa, v(s.t("moreMenu.serviceStatus")), 1)
5074
5095
  ])) : y("", !0),
5075
5096
  n.helpUrl ? (c(), d("button", {
5076
5097
  key: 1,
@@ -5093,13 +5114,13 @@ function Ea(e, t, n, i, r, s) {
5093
5114
  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
5115
  ])
5095
5116
  ], -1)),
5096
- a("span", La, v(s.t("moreMenu.helpCenter")), 1)
5117
+ a("span", Ia, v(s.t("moreMenu.helpCenter")), 1)
5097
5118
  ])) : y("", !0)
5098
5119
  ])
5099
5120
  ])
5100
5121
  ]);
5101
5122
  }
5102
- const Ba = /* @__PURE__ */ N(ya, [["render", Ea], ["__scopeId", "data-v-76281e95"]]), Ra = {
5123
+ const Ea = /* @__PURE__ */ N(va, [["render", La], ["__scopeId", "data-v-76281e95"]]), Ba = {
5103
5124
  name: "WmRenameDialog",
5104
5125
  inject: {
5105
5126
  // Translator shared by the Messenger shell; French fallback when
@@ -5141,20 +5162,20 @@ const Ba = /* @__PURE__ */ N(ya, [["render", Ea], ["__scopeId", "data-v-76281e95
5141
5162
  this.canSubmit && this.$emit("submit", this.value.trim());
5142
5163
  }
5143
5164
  }
5144
- }, Na = { class: "wm-dialog" }, Pa = {
5165
+ }, Ra = { class: "wm-dialog" }, Na = {
5145
5166
  class: "wm-dialog__card",
5146
5167
  role: "dialog",
5147
5168
  "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, [
5169
+ }, Pa = { class: "wm-dialog__head" }, Ua = { class: "wm-dialog__title" }, Fa = ["aria-label"], Da = { class: "wm-dialog__body" }, ja = ["placeholder"], Ha = { class: "wm-dialog__actions" }, za = ["disabled"];
5170
+ function qa(e, t, n, i, r, s) {
5171
+ return c(), d("div", Ra, [
5151
5172
  a("div", {
5152
5173
  class: "wm-dialog__scrim",
5153
5174
  onClick: t[0] || (t[0] = (o) => e.$emit("close"))
5154
5175
  }),
5155
- a("div", Pa, [
5156
- a("div", Ua, [
5157
- a("div", Fa, v(n.title || s.t("rename.title")), 1),
5176
+ a("div", Na, [
5177
+ a("div", Pa, [
5178
+ a("div", Ua, v(n.title || s.t("rename.title")), 1),
5158
5179
  a("button", {
5159
5180
  type: "button",
5160
5181
  class: "wm-dialog__close",
@@ -5174,9 +5195,9 @@ function Va(e, t, n, i, r, s) {
5174
5195
  }, [
5175
5196
  a("path", { d: "M18 6L6 18M6 6l12 12" })
5176
5197
  ], -1)
5177
- ])], 8, Da)
5198
+ ])], 8, Fa)
5178
5199
  ]),
5179
- a("div", ja, [
5200
+ a("div", Da, [
5180
5201
  $(a("input", {
5181
5202
  ref: "input",
5182
5203
  "onUpdate:modelValue": t[2] || (t[2] = (o) => r.value = o),
@@ -5188,11 +5209,11 @@ function Va(e, t, n, i, r, s) {
5188
5209
  t[3] || (t[3] = ue(G((...o) => s.onSubmit && s.onSubmit(...o), ["prevent"]), ["enter"])),
5189
5210
  t[4] || (t[4] = ue(G((o) => e.$emit("close"), ["prevent"]), ["esc"]))
5190
5211
  ]
5191
- }, null, 40, Ha), [
5212
+ }, null, 40, ja), [
5192
5213
  [X, r.value]
5193
5214
  ])
5194
5215
  ]),
5195
- a("div", za, [
5216
+ a("div", Ha, [
5196
5217
  a("button", {
5197
5218
  type: "button",
5198
5219
  class: "wm-dialog__btn",
@@ -5203,25 +5224,25 @@ function Va(e, t, n, i, r, s) {
5203
5224
  class: "wm-dialog__btn wm-dialog__btn--primary",
5204
5225
  disabled: !s.canSubmit,
5205
5226
  onClick: t[6] || (t[6] = (...o) => s.onSubmit && s.onSubmit(...o))
5206
- }, v(s.t("common.save")), 9, qa)
5227
+ }, v(s.t("common.save")), 9, za)
5207
5228
  ])
5208
5229
  ])
5209
5230
  ]);
5210
5231
  }
5211
- const Ka = /* @__PURE__ */ N(Ra, [["render", Va], ["__scopeId", "data-v-6d5f94a8"]]), Be = "ww-messenger-tokens", $a = {
5232
+ const Va = /* @__PURE__ */ N(Ba, [["render", qa], ["__scopeId", "data-v-6d5f94a8"]]), Be = "ww-messenger-tokens", Ka = {
5212
5233
  name: "Messenger",
5213
5234
  components: {
5214
5235
  Launcher: Ut,
5215
5236
  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
5237
+ Onboarding: rs,
5238
+ MessageList: Qr,
5239
+ Composer: gi,
5240
+ SuggestionChips: wi,
5241
+ ApprovalCard: Ii,
5242
+ FormCard: sa,
5243
+ Feedback: pa,
5244
+ MoreMenu: Ea,
5245
+ RenameDialog: Va
5225
5246
  },
5226
5247
  mixins: [
5227
5248
  lt,
@@ -5523,6 +5544,15 @@ const Ka = /* @__PURE__ */ N(Ra, [["render", Va], ["__scopeId", "data-v-6d5f94a8
5523
5544
  var e, t;
5524
5545
  return ((t = (e = this.s) == null ? void 0 : e.config) == null ? void 0 : t.widget) || null;
5525
5546
  },
5547
+ // Lets the merchant override the brand colour via widget.primary_color.
5548
+ // Only --wm-primary is overridden (used by the CTA swatch + hero
5549
+ // halo) ; --wm-a (unread dot, caret, AI ring) keeps its default
5550
+ // token value, intentionally fixed.
5551
+ rootStyle() {
5552
+ var t;
5553
+ const e = (t = this.widget) == null ? void 0 : t.primary_color;
5554
+ return e ? { "--wm-primary": e } : null;
5555
+ },
5526
5556
  widgetWelcomeMessage() {
5527
5557
  var e;
5528
5558
  return ((e = this.widget) == null ? void 0 : e.welcome_message) || "";
@@ -5949,13 +5979,13 @@ const Ka = /* @__PURE__ */ N(Ra, [["render", Va], ["__scopeId", "data-v-6d5f94a8
5949
5979
  this.launcherHovered = e, this.sendCurrentLauncherSize();
5950
5980
  },
5951
5981
  sendCurrentLauncherSize() {
5952
- var w, T, B, A, H, S, U;
5982
+ var w, T, B, A, z, S, U;
5953
5983
  if (this.isOpen) return;
5954
5984
  const e = (T = (w = this.$el) == null ? void 0 : w.querySelector) == null ? void 0 : T.call(w, ".wm-launcherWrap");
5955
5985
  if (!e) return;
5956
5986
  const t = e.getBoundingClientRect();
5957
5987
  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;
5988
+ 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
5989
  let k = null;
5960
5990
  if (p) {
5961
5991
  const I = p.getBoundingClientRect();
@@ -6211,31 +6241,32 @@ const Ka = /* @__PURE__ */ N(Ra, [["render", Va], ["__scopeId", "data-v-6d5f94a8
6211
6241
  }
6212
6242
  }
6213
6243
  }
6214
- }, Wa = {
6244
+ }, $a = {
6215
6245
  key: 0,
6216
6246
  class: "wm-loading",
6217
6247
  "aria-busy": "true",
6218
6248
  "aria-live": "polite"
6219
- }, Ga = ["aria-label"], Ya = {
6249
+ }, Wa = ["aria-label"], Ga = {
6220
6250
  key: 0,
6221
6251
  class: "wm-state"
6222
- }, Ja = { class: "wm-state__err" }, Qa = { class: "wm-state__errTitle" }, Xa = { class: "wm-state__errSub" }, Za = { class: "wm-bottom" }, eo = {
6252
+ }, Ya = { class: "wm-state__err" }, Ja = { class: "wm-state__errTitle" }, Qa = { class: "wm-state__errSub" }, Xa = { class: "wm-bottom" }, Za = {
6223
6253
  key: 0,
6224
6254
  ref: "floatEl",
6225
6255
  class: "wm-float"
6226
- }, to = {
6256
+ }, eo = {
6227
6257
  key: 1,
6228
6258
  class: "wm-actionWait",
6229
6259
  role: "status",
6230
6260
  "aria-live": "polite"
6231
- }, no = { class: "wm-actionWait__lbl" }, so = {
6261
+ }, to = { class: "wm-actionWait__lbl" }, no = {
6232
6262
  key: 2,
6233
6263
  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");
6264
+ }, so = ["aria-label", "onClick"];
6265
+ function ro(e, t, n, i, r, s) {
6266
+ 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
6267
  return c(), d("div", {
6238
- class: O(["wm-root", `wm-root--${n.displayMode}`])
6268
+ class: O(["wm-root", `wm-root--${n.displayMode}`]),
6269
+ style: H(s.rootStyle)
6239
6270
  }, [
6240
6271
  !r.isOpen && !s.isEmbedded ? (c(), P(o, {
6241
6272
  key: 0,
@@ -6252,12 +6283,12 @@ function io(e, t, n, i, r, s) {
6252
6283
  `wm-panel--${n.displayMode}`,
6253
6284
  { "wm-panel--welcome": s.ready && !s.error && !s.currentConv }
6254
6285
  ]),
6255
- style: z(r.floatHeight ? { "--wm-float-h": r.floatHeight + "px" } : null),
6286
+ style: H(r.floatHeight ? { "--wm-float-h": r.floatHeight + "px" } : null),
6256
6287
  role: "dialog",
6257
6288
  "aria-label": "Messenger",
6258
6289
  onClick: t[5] || (t[5] = (...I) => s.onPanelClick && s.onPanelClick(...I))
6259
6290
  }, [
6260
- !s.ready && !s.error ? (c(), d("div", Wa, [
6291
+ !s.ready && !s.error ? (c(), d("div", $a, [
6261
6292
  s.isEmbedded ? y("", !0) : (c(), d("button", {
6262
6293
  key: 0,
6263
6294
  type: "button",
@@ -6278,7 +6309,7 @@ function io(e, t, n, i, r, s) {
6278
6309
  }, [
6279
6310
  a("path", { d: "M18 6L6 18M6 6l12 12" })
6280
6311
  ], -1)
6281
- ])], 8, Ga)),
6312
+ ])], 8, Wa)),
6282
6313
  t[7] || (t[7] = a("div", {
6283
6314
  class: "wm-loading__spinner",
6284
6315
  "aria-hidden": "true"
@@ -6298,8 +6329,8 @@ function io(e, t, n, i, r, s) {
6298
6329
  onMore: s.toggleMore,
6299
6330
  onClose: s.close
6300
6331
  }, 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, [
6332
+ s.error ? (c(), d("div", Ga, [
6333
+ a("div", Ya, [
6303
6334
  t[8] || (t[8] = a("div", { class: "wm-state__errIcon" }, [
6304
6335
  a("svg", {
6305
6336
  width: "14",
@@ -6316,8 +6347,8 @@ function io(e, t, n, i, r, s) {
6316
6347
  ])
6317
6348
  ], -1)),
6318
6349
  a("div", null, [
6319
- a("div", Qa, v(s.t("error.connectionFailed")), 1),
6320
- a("div", Xa, v(s.error), 1)
6350
+ a("div", Ja, v(s.t("error.connectionFailed")), 1),
6351
+ a("div", Qa, v(s.error), 1)
6321
6352
  ])
6322
6353
  ])
6323
6354
  ])) : s.currentConv ? (c(), d(E, { key: 2 }, [
@@ -6335,8 +6366,8 @@ function io(e, t, n, i, r, s) {
6335
6366
  "ai-agent-avatar-url": s.agentAvatarUrl,
6336
6367
  onLoadMore: s.onLoadMore
6337
6368
  }, 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, [
6369
+ a("div", Xa, [
6370
+ s.floatVisible ? (c(), d("div", Za, [
6340
6371
  s.approvalReady ? (c(), P(w, {
6341
6372
  key: 0,
6342
6373
  action: s.approvalTitle,
@@ -6362,15 +6393,15 @@ function io(e, t, n, i, r, s) {
6362
6393
  onSelect: s.onSuggestion
6363
6394
  }, null, 8, ["items", "onSelect"]))
6364
6395
  ], 512)) : y("", !0),
6365
- s.actionInFlight ? (c(), d("div", to, [
6396
+ s.actionInFlight ? (c(), d("div", eo, [
6366
6397
  t[9] || (t[9] = a("span", {
6367
6398
  class: "wm-actionWait__spinner",
6368
6399
  "aria-hidden": "true"
6369
6400
  }, null, -1)),
6370
- a("span", no, v(s.t("action.inProgress", {
6401
+ a("span", to, v(s.t("action.inProgress", {
6371
6402
  name: s.actionInFlightName
6372
6403
  })), 1)
6373
- ])) : (c(), P(H, {
6404
+ ])) : (c(), P(z, {
6374
6405
  key: 2,
6375
6406
  ref: "composer",
6376
6407
  modelValue: r.draft,
@@ -6403,7 +6434,7 @@ function io(e, t, n, i, r, s) {
6403
6434
  onClose: t[3] || (t[3] = (I) => r.renameDialogOpen = !1),
6404
6435
  onSubmit: s.onRenameSubmit
6405
6436
  }, null, 8, ["initial-value", "title", "onSubmit"])) : y("", !0),
6406
- r.pendingAttachments.length ? (c(), d("div", so, [
6437
+ r.pendingAttachments.length ? (c(), d("div", no, [
6407
6438
  (c(!0), d(E, null, F(r.pendingAttachments, (I, q) => (c(), d("div", {
6408
6439
  key: q,
6409
6440
  class: "wm-attached__chip"
@@ -6440,7 +6471,7 @@ function io(e, t, n, i, r, s) {
6440
6471
  }, [
6441
6472
  a("path", { d: "M18 6L6 18M6 6l12 12" })
6442
6473
  ], -1)
6443
- ])], 8, ro)
6474
+ ])], 8, so)
6444
6475
  ]))), 128))
6445
6476
  ])) : y("", !0)
6446
6477
  ], 64)) : (c(), P(p, {
@@ -6471,55 +6502,55 @@ function io(e, t, n, i, r, s) {
6471
6502
  }, null, 8, ["sound-enabled", "browser-notif-enabled", "status-url", "help-url", "onSoundToggle", "onBrowserNotifToggle", "onAction"])) : y("", !0)
6472
6503
  ], 64))
6473
6504
  ], 6)) : y("", !0)
6474
- ], 2);
6505
+ ], 6);
6475
6506
  }
6476
- const lo = /* @__PURE__ */ N($a, [["render", io], ["__scopeId", "data-v-9e47cfb4"]]), co = "0.5.40";
6507
+ const oo = /* @__PURE__ */ N(Ka, [["render", ro], ["__scopeId", "data-v-0d59093c"]]), lo = "0.5.42";
6477
6508
  export {
6478
6509
  le as AIAvatar,
6479
6510
  _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,
6511
+ gs as ActionResult,
6512
+ Ii as ApprovalCard,
6513
+ Ss as ArtifactFormResponse,
6514
+ Fs as ArtifactInfoCard,
6515
+ sr as ArtifactRenderer,
6516
+ Zs as ArtifactTicket,
6517
+ _r as AttachmentPreview,
6518
+ yr as Bubble,
6519
+ gi as Composer,
6489
6520
  et as DEFAULT_BASE_URL,
6490
6521
  ae as DEFAULT_LANGUAGE,
6491
- va as Feedback,
6492
- ra as FormCard,
6522
+ pa as Feedback,
6523
+ sa as FormCard,
6493
6524
  cn as Header,
6494
6525
  Ce as HumanAvatar,
6495
6526
  Ut as Launcher,
6496
6527
  Ae as MEDIA_RECORDER_SUPPORTED,
6497
- Xr as MessageList,
6498
- lo as Messenger,
6499
- Ba as MoreMenu,
6500
- is as Onboarding,
6528
+ Qr as MessageList,
6529
+ oo as Messenger,
6530
+ Ea as MoreMenu,
6531
+ rs as Onboarding,
6501
6532
  he as SCREEN_CAPTURE_SUPPORTED,
6502
6533
  tt as SUPPORTED_LANGUAGES,
6503
- bi as SuggestionChips,
6534
+ wi as SuggestionChips,
6504
6535
  Yt as TeamAvatars,
6505
- Ar as Typing,
6506
- co as VERSION,
6536
+ Cr as Typing,
6537
+ lo as VERSION,
6507
6538
  we as avatarColor,
6508
6539
  be as avatarInitials,
6509
- ei as captureScreenshotFile,
6540
+ Zr as captureScreenshotFile,
6510
6541
  j as colors,
6511
6542
  Xe as createStore,
6512
6543
  D as createTranslator,
6513
6544
  Ge as createTransport,
6514
6545
  re as dateLocale,
6515
- lo as default,
6546
+ oo as default,
6516
6547
  ve as formatTime,
6517
- oo as guessAttachmentKind,
6518
- Zr as pickRecorderMime,
6548
+ ao as guessAttachmentKind,
6549
+ Xr as pickRecorderMime,
6519
6550
  un as renderInlineMarkdown,
6520
6551
  hn as renderMarkdown,
6521
6552
  ke as resolveLanguage,
6522
- ni as startScreenRecording,
6553
+ ti as startScreenRecording,
6523
6554
  Ze as tokensCss,
6524
6555
  Qe as uuid,
6525
6556
  Qe as v4