@_solaris/messenger-widget 0.5.51 → 0.5.53

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
@@ -2337,6 +2337,14 @@ const vn = /* @__PURE__ */ B(an, [["render", pn], ["__scopeId", "data-v-7af4c118
2337
2337
  avatarWrapperClass(e) {
2338
2338
  return this.isDefaultAvatar(e) && !(e != null && e.unread) ? "wm-onb__avatar--muted" : null;
2339
2339
  },
2340
+ // Human-readable sender label prepended to the unread preview line
2341
+ // — gives the user a "who is this from" cue alongside the avatar.
2342
+ // Empty when no name is available; the template suppresses the
2343
+ // surrounding wrapper in that case.
2344
+ senderLabel(e) {
2345
+ var t;
2346
+ return ((t = e == null ? void 0 : e.author) == null ? void 0 : t.name) || "";
2347
+ },
2340
2348
  formatTs(e) {
2341
2349
  if (!e) return "";
2342
2350
  const t = new Date(e);
@@ -2357,16 +2365,19 @@ const vn = /* @__PURE__ */ B(an, [["render", pn], ["__scopeId", "data-v-7af4c118
2357
2365
  });
2358
2366
  }
2359
2367
  }
2360
- }, wn = { class: "wm-onb" }, bn = { class: "wm-onb__hero" }, kn = { class: "wm-onb__hero-text" }, Cn = { class: "wm-onb__title" }, An = { class: "wm-onb__sub" }, Sn = { class: "wm-onb__bottom" }, Mn = {
2368
+ }, wn = { class: "wm-onb" }, bn = { class: "wm-onb__hero" }, kn = { class: "wm-onb__hero-text" }, Cn = { class: "wm-onb__title" }, An = { class: "wm-onb__sub" }, Sn = {
2361
2369
  key: 0,
2362
2370
  class: "wm-onb__alertList"
2363
- }, Tn = ["onClick"], xn = {
2371
+ }, Mn = ["onClick"], Tn = {
2364
2372
  key: 0,
2365
2373
  class: "wm-onb__defaultAvatar"
2366
- }, On = ["aria-label"], In = { class: "wm-onb__alert-body" }, Ln = { class: "wm-onb__alert-title" }, En = ["innerHTML"], Rn = { class: "wm-onb__alert-meta" }, Bn = {
2374
+ }, xn = ["aria-label"], On = { class: "wm-onb__alert-body" }, In = { class: "wm-onb__alert-title" }, Ln = { class: "wm-onb__alert-preview" }, En = {
2375
+ key: 0,
2376
+ class: "wm-onb__alert-sender"
2377
+ }, Rn = ["innerHTML"], Bn = { class: "wm-onb__alert-meta" }, Pn = {
2367
2378
  key: 0,
2368
2379
  class: "wm-onb__alert-time"
2369
- }, Pn = { class: "wm-onb__alert-resume" }, Nn = { class: "wm-onb__actions" }, Un = ["disabled"], Dn = { class: "wm-onb__btn-label" }, Fn = ["onClick"], jn = { class: "wm-onb__btn-icon" }, Hn = ["aria-label"], zn = {
2380
+ }, Nn = { class: "wm-onb__alert-resume" }, Un = { class: "wm-onb__actions" }, Dn = ["disabled"], Fn = { class: "wm-onb__btn-label" }, jn = ["onClick"], Hn = { class: "wm-onb__btn-icon" }, zn = ["aria-label"], qn = {
2370
2381
  key: 1,
2371
2382
  width: "18",
2372
2383
  height: "18",
@@ -2377,7 +2388,7 @@ const vn = /* @__PURE__ */ B(an, [["render", pn], ["__scopeId", "data-v-7af4c118
2377
2388
  "stroke-linecap": "round",
2378
2389
  "stroke-linejoin": "round",
2379
2390
  "aria-hidden": "true"
2380
- }, qn = ["d"], $n = { class: "wm-onb__btn-label" }, Vn = {
2391
+ }, $n = ["d"], Vn = { class: "wm-onb__btn-label" }, Kn = {
2381
2392
  key: 0,
2382
2393
  class: "wm-onb__btn-trail",
2383
2394
  width: "13",
@@ -2389,7 +2400,7 @@ const vn = /* @__PURE__ */ B(an, [["render", pn], ["__scopeId", "data-v-7af4c118
2389
2400
  "stroke-linecap": "round",
2390
2401
  "stroke-linejoin": "round",
2391
2402
  "aria-hidden": "true"
2392
- }, Kn = { class: "wm-onb__btn-icon" }, Wn = {
2403
+ }, Wn = { class: "wm-onb__btn-icon" }, Gn = {
2393
2404
  width: "18",
2394
2405
  height: "18",
2395
2406
  viewBox: "0 0 24 24",
@@ -2399,8 +2410,8 @@ const vn = /* @__PURE__ */ B(an, [["render", pn], ["__scopeId", "data-v-7af4c118
2399
2410
  "stroke-linecap": "round",
2400
2411
  "stroke-linejoin": "round",
2401
2412
  "aria-hidden": "true"
2402
- }, Gn = ["d"], Yn = { class: "wm-onb__btn-label" }, Xn = { class: "wm-onb__btn-count" };
2403
- function Jn(e, t, n, r, i, s) {
2413
+ }, Yn = ["d"], Xn = { class: "wm-onb__btn-label" }, Jn = { class: "wm-onb__btn-count" };
2414
+ function Qn(e, t, n, r, i, s) {
2404
2415
  const a = R("AIAvatar");
2405
2416
  return c(), d("div", wn, [
2406
2417
  o("div", bn, [
@@ -2447,120 +2458,65 @@ function Jn(e, t, n, r, i, s) {
2447
2458
  o("div", An, v(s.heroSub), 1)
2448
2459
  ])
2449
2460
  ]),
2450
- o("div", Sn, [
2451
- s.unreadThreads.length ? (c(), d("div", Mn, [
2452
- (c(!0), d(L, null, F(s.unreadThreads, (l) => (c(), d("button", {
2453
- key: l.id,
2454
- type: "button",
2455
- class: "wm-onb__alert",
2456
- onClick: (g) => e.$emit("resume", l)
2457
- }, [
2458
- o("span", {
2459
- class: I(["wm-onb__alert-avatar", s.avatarWrapperClass(l)])
2460
- }, [
2461
- s.isDefaultAvatar(l) ? (c(), d("span", xn, [...t[3] || (t[3] = [
2462
- o("svg", {
2463
- width: "20",
2464
- height: "20",
2465
- viewBox: "0 0 24 24",
2466
- fill: "none",
2467
- stroke: "currentColor",
2468
- "stroke-width": "1.7",
2469
- "stroke-linecap": "round",
2470
- "stroke-linejoin": "round",
2471
- "aria-hidden": "true"
2472
- }, [
2473
- o("path", { d: "M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z" })
2474
- ], -1)
2475
- ])])) : (c(), P(ke(s.avatarComponent(l)), De({
2476
- key: 1,
2477
- ref_for: !0
2478
- }, s.avatarProps(l)), null, 16)),
2479
- o("span", {
2480
- class: "wm-onb__alert-dot",
2481
- "aria-label": s.t("onboarding.unread")
2482
- }, null, 8, On)
2483
- ], 2),
2484
- o("span", In, [
2485
- o("span", Ln, v(l.title), 1),
2486
- o("span", {
2487
- class: "wm-onb__alert-preview",
2488
- innerHTML: s.renderPreview(l.preview)
2489
- }, null, 8, En)
2490
- ]),
2491
- o("span", Rn, [
2492
- s.formatTs(l._ts) ? (c(), d("span", Bn, v(s.formatTs(l._ts)), 1)) : w("", !0),
2493
- o("span", Pn, v(s.t("onboarding.resume")), 1)
2494
- ])
2495
- ], 8, Tn))), 128))
2496
- ])) : w("", !0),
2497
- o("div", Nn, [
2498
- o("button", {
2499
- type: "button",
2500
- class: "wm-onb__btn wm-onb__btn--start",
2501
- disabled: n.busy,
2502
- onClick: t[0] || (t[0] = (l) => e.$emit("start"))
2461
+ s.unreadThreads.length ? (c(), d("div", Sn, [
2462
+ (c(!0), d(L, null, F(s.unreadThreads, (l) => (c(), d("button", {
2463
+ key: l.id,
2464
+ type: "button",
2465
+ class: "wm-onb__alert",
2466
+ onClick: (g) => e.$emit("resume", l)
2467
+ }, [
2468
+ o("span", {
2469
+ class: I(["wm-onb__alert-avatar", s.avatarWrapperClass(l)])
2503
2470
  }, [
2504
- t[4] || (t[4] = o("span", { class: "wm-onb__btn-icon" }, [
2471
+ s.isDefaultAvatar(l) ? (c(), d("span", Tn, [...t[3] || (t[3] = [
2505
2472
  o("svg", {
2506
- width: "18",
2507
- height: "18",
2473
+ width: "20",
2474
+ height: "20",
2508
2475
  viewBox: "0 0 24 24",
2509
2476
  fill: "none",
2510
2477
  stroke: "currentColor",
2511
- "stroke-width": "2",
2478
+ "stroke-width": "1.7",
2512
2479
  "stroke-linecap": "round",
2513
2480
  "stroke-linejoin": "round",
2514
2481
  "aria-hidden": "true"
2515
2482
  }, [
2516
- o("path", { d: "M12 5v14M5 12h14" })
2517
- ])
2518
- ], -1)),
2519
- o("span", Dn, v(n.busy ? "…" : s.t("onboarding.start")), 1)
2520
- ], 8, Un),
2521
- (c(!0), d(L, null, F(n.quickLinks, (l, g) => (c(), d("button", {
2522
- key: "ql-" + g,
2523
- type: "button",
2524
- class: "wm-onb__btn",
2525
- onClick: (k) => e.$emit("select", l)
2526
- }, [
2527
- o("span", jn, [
2528
- s.safeIconUrl(l) ? (c(), d("span", {
2529
- key: 0,
2530
- class: "wm-onb__btn-iconImg",
2531
- style: z(s.iconUrlStyle(l)),
2532
- role: "img",
2533
- "aria-label": l.label || ""
2534
- }, null, 12, Hn)) : (c(), d("svg", zn, [
2535
- o("path", {
2536
- d: s.iconPath(l.icon)
2537
- }, null, 8, qn)
2538
- ]))
2539
- ]),
2540
- o("span", $n, v(l.label), 1),
2541
- s.isExternalLink(l) ? (c(), d("svg", Vn, [...t[5] || (t[5] = [
2542
- o("path", { d: "M7 17L17 7M9 7h8v8" }, null, -1)
2543
- ])])) : w("", !0)
2544
- ], 8, Fn))), 128)),
2545
- n.openThreads.length ? (c(), d("button", {
2546
- key: 0,
2547
- type: "button",
2548
- class: "wm-onb__btn",
2549
- onClick: t[1] || (t[1] = (l) => e.$emit("view-history"))
2550
- }, [
2551
- o("span", Kn, [
2552
- (c(), d("svg", Wn, [
2553
- o("path", {
2554
- d: s.iconPath("chat")
2555
- }, null, 8, Gn)
2556
- ]))
2557
- ]),
2558
- o("span", Yn, v(s.t("onboarding.allConversations")), 1),
2559
- o("span", Xn, v(n.openThreads.length), 1),
2560
- t[6] || (t[6] = o("svg", {
2561
- class: "wm-onb__btn-trail",
2562
- width: "13",
2563
- height: "13",
2483
+ o("path", { d: "M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z" })
2484
+ ], -1)
2485
+ ])])) : (c(), P(ke(s.avatarComponent(l)), De({
2486
+ key: 1,
2487
+ ref_for: !0
2488
+ }, s.avatarProps(l)), null, 16)),
2489
+ o("span", {
2490
+ class: "wm-onb__alert-dot",
2491
+ "aria-label": s.t("onboarding.unread")
2492
+ }, null, 8, xn)
2493
+ ], 2),
2494
+ o("span", On, [
2495
+ o("span", In, v(l.title), 1),
2496
+ o("span", Ln, [
2497
+ s.senderLabel(l) ? (c(), d("span", En, v(s.senderLabel(l)) + " · ", 1)) : w("", !0),
2498
+ o("span", {
2499
+ innerHTML: s.renderPreview(l.preview)
2500
+ }, null, 8, Rn)
2501
+ ])
2502
+ ]),
2503
+ o("span", Bn, [
2504
+ s.formatTs(l._ts) ? (c(), d("span", Pn, v(s.formatTs(l._ts)), 1)) : w("", !0),
2505
+ o("span", Nn, v(s.t("onboarding.resume")), 1)
2506
+ ])
2507
+ ], 8, Mn))), 128))
2508
+ ])) : w("", !0),
2509
+ o("div", Un, [
2510
+ o("button", {
2511
+ type: "button",
2512
+ class: "wm-onb__btn wm-onb__btn--start",
2513
+ disabled: n.busy,
2514
+ onClick: t[0] || (t[0] = (l) => e.$emit("start"))
2515
+ }, [
2516
+ t[4] || (t[4] = o("span", { class: "wm-onb__btn-icon" }, [
2517
+ o("svg", {
2518
+ width: "18",
2519
+ height: "18",
2564
2520
  viewBox: "0 0 24 24",
2565
2521
  fill: "none",
2566
2522
  stroke: "currentColor",
@@ -2569,14 +2525,69 @@ function Jn(e, t, n, r, i, s) {
2569
2525
  "stroke-linejoin": "round",
2570
2526
  "aria-hidden": "true"
2571
2527
  }, [
2572
- o("path", { d: "M9 18l6-6-6-6" })
2573
- ], -1))
2574
- ])) : w("", !0)
2575
- ])
2528
+ o("path", { d: "M12 5v14M5 12h14" })
2529
+ ])
2530
+ ], -1)),
2531
+ o("span", Fn, v(n.busy ? "…" : s.t("onboarding.start")), 1)
2532
+ ], 8, Dn),
2533
+ (c(!0), d(L, null, F(n.quickLinks, (l, g) => (c(), d("button", {
2534
+ key: "ql-" + g,
2535
+ type: "button",
2536
+ class: "wm-onb__btn",
2537
+ onClick: (k) => e.$emit("select", l)
2538
+ }, [
2539
+ o("span", Hn, [
2540
+ s.safeIconUrl(l) ? (c(), d("span", {
2541
+ key: 0,
2542
+ class: "wm-onb__btn-iconImg",
2543
+ style: z(s.iconUrlStyle(l)),
2544
+ role: "img",
2545
+ "aria-label": l.label || ""
2546
+ }, null, 12, zn)) : (c(), d("svg", qn, [
2547
+ o("path", {
2548
+ d: s.iconPath(l.icon)
2549
+ }, null, 8, $n)
2550
+ ]))
2551
+ ]),
2552
+ o("span", Vn, v(l.label), 1),
2553
+ s.isExternalLink(l) ? (c(), d("svg", Kn, [...t[5] || (t[5] = [
2554
+ o("path", { d: "M7 17L17 7M9 7h8v8" }, null, -1)
2555
+ ])])) : w("", !0)
2556
+ ], 8, jn))), 128)),
2557
+ n.openThreads.length ? (c(), d("button", {
2558
+ key: 0,
2559
+ type: "button",
2560
+ class: "wm-onb__btn",
2561
+ onClick: t[1] || (t[1] = (l) => e.$emit("view-history"))
2562
+ }, [
2563
+ o("span", Wn, [
2564
+ (c(), d("svg", Gn, [
2565
+ o("path", {
2566
+ d: s.iconPath("chat")
2567
+ }, null, 8, Yn)
2568
+ ]))
2569
+ ]),
2570
+ o("span", Xn, v(s.t("onboarding.allConversations")), 1),
2571
+ o("span", Jn, v(n.openThreads.length), 1),
2572
+ t[6] || (t[6] = o("svg", {
2573
+ class: "wm-onb__btn-trail",
2574
+ width: "13",
2575
+ height: "13",
2576
+ viewBox: "0 0 24 24",
2577
+ fill: "none",
2578
+ stroke: "currentColor",
2579
+ "stroke-width": "2",
2580
+ "stroke-linecap": "round",
2581
+ "stroke-linejoin": "round",
2582
+ "aria-hidden": "true"
2583
+ }, [
2584
+ o("path", { d: "M9 18l6-6-6-6" })
2585
+ ], -1))
2586
+ ])) : w("", !0)
2576
2587
  ])
2577
2588
  ]);
2578
2589
  }
2579
- const Qn = /* @__PURE__ */ B(yn, [["render", Jn], ["__scopeId", "data-v-22d4189e"]]), Zn = {
2590
+ const Zn = /* @__PURE__ */ B(yn, [["render", Qn], ["__scopeId", "data-v-1a297c38"]]), es = {
2580
2591
  name: "WmHistory",
2581
2592
  components: { AIAvatar: oe, HumanAvatar: ge },
2582
2593
  inject: {
@@ -2645,19 +2656,19 @@ const Qn = /* @__PURE__ */ B(yn, [["render", Jn], ["__scopeId", "data-v-22d4189e
2645
2656
  });
2646
2657
  }
2647
2658
  }
2648
- }, es = { class: "wm-hist" }, ts = { class: "wm-hist__search" }, ns = ["placeholder", "aria-label"], ss = { class: "wm-hist__list" }, rs = ["onClick"], is = {
2659
+ }, ts = { class: "wm-hist" }, ns = { class: "wm-hist__search" }, ss = ["placeholder", "aria-label"], rs = { class: "wm-hist__list" }, is = ["onClick"], as = {
2649
2660
  key: 0,
2650
2661
  class: "wm-hist__defaultAvatar"
2651
- }, as = ["aria-label"], os = { class: "wm-hist__thread-body" }, ls = { class: "wm-hist__thread-title" }, cs = ["innerHTML"], ds = { class: "wm-hist__thread-meta" }, us = {
2662
+ }, os = ["aria-label"], ls = { class: "wm-hist__thread-body" }, cs = { class: "wm-hist__thread-title" }, ds = ["innerHTML"], us = { class: "wm-hist__thread-meta" }, hs = {
2652
2663
  key: 0,
2653
2664
  class: "wm-hist__thread-time"
2654
- }, hs = {
2665
+ }, ms = {
2655
2666
  key: 0,
2656
2667
  class: "wm-hist__empty"
2657
2668
  };
2658
- function ms(e, t, n, r, i, s) {
2659
- return c(), d("div", es, [
2660
- o("div", ts, [
2669
+ function fs(e, t, n, r, i, s) {
2670
+ return c(), d("div", ts, [
2671
+ o("div", ns, [
2661
2672
  t[1] || (t[1] = o("span", { class: "wm-hist__searchIcon" }, [
2662
2673
  o("svg", {
2663
2674
  width: "13",
@@ -2678,11 +2689,11 @@ function ms(e, t, n, r, i, s) {
2678
2689
  type: "text",
2679
2690
  placeholder: s.t("onboarding.search"),
2680
2691
  "aria-label": s.t("onboarding.search")
2681
- }, null, 8, ns), [
2692
+ }, null, 8, ss), [
2682
2693
  [te, i.query]
2683
2694
  ])
2684
2695
  ]),
2685
- o("div", ss, [
2696
+ o("div", rs, [
2686
2697
  (c(!0), d(L, null, F(s.filteredThreads, (a) => (c(), d("button", {
2687
2698
  key: a.id,
2688
2699
  type: "button",
@@ -2692,7 +2703,7 @@ function ms(e, t, n, r, i, s) {
2692
2703
  o("span", {
2693
2704
  class: I(["wm-hist__thread-avatar", s.avatarWrapperClass(a)])
2694
2705
  }, [
2695
- s.isDefaultAvatar(a) ? (c(), d("span", is, [...t[2] || (t[2] = [
2706
+ s.isDefaultAvatar(a) ? (c(), d("span", as, [...t[2] || (t[2] = [
2696
2707
  o("svg", {
2697
2708
  width: "18",
2698
2709
  height: "18",
@@ -2714,17 +2725,17 @@ function ms(e, t, n, r, i, s) {
2714
2725
  key: 2,
2715
2726
  class: "wm-hist__thread-dot",
2716
2727
  "aria-label": s.t("onboarding.unread")
2717
- }, null, 8, as)) : w("", !0)
2728
+ }, null, 8, os)) : w("", !0)
2718
2729
  ], 2),
2719
- o("span", os, [
2720
- o("span", ls, v(a.title), 1),
2730
+ o("span", ls, [
2731
+ o("span", cs, v(a.title), 1),
2721
2732
  o("span", {
2722
2733
  class: "wm-hist__thread-preview",
2723
2734
  innerHTML: s.renderPreview(a.preview)
2724
- }, null, 8, cs)
2735
+ }, null, 8, ds)
2725
2736
  ]),
2726
- o("span", ds, [
2727
- s.formatTs(a._ts) ? (c(), d("span", us, v(s.formatTs(a._ts)), 1)) : w("", !0),
2737
+ o("span", us, [
2738
+ s.formatTs(a._ts) ? (c(), d("span", hs, v(s.formatTs(a._ts)), 1)) : w("", !0),
2728
2739
  t[3] || (t[3] = o("svg", {
2729
2740
  width: "14",
2730
2741
  height: "14",
@@ -2740,16 +2751,16 @@ function ms(e, t, n, r, i, s) {
2740
2751
  o("path", { d: "M5 12h14M13 5l7 7-7 7" })
2741
2752
  ], -1))
2742
2753
  ])
2743
- ], 10, rs))), 128)),
2744
- s.filteredThreads.length ? w("", !0) : (c(), d("div", hs, v(i.query ? s.t("onboarding.noResults", { query: i.query }) : s.t("onboarding.noConversations")), 1))
2754
+ ], 10, is))), 128)),
2755
+ s.filteredThreads.length ? w("", !0) : (c(), d("div", ms, v(i.query ? s.t("onboarding.noResults", { query: i.query }) : s.t("onboarding.noConversations")), 1))
2745
2756
  ])
2746
2757
  ]);
2747
2758
  }
2748
- const fs = /* @__PURE__ */ B(Zn, [["render", ms], ["__scopeId", "data-v-42ca3dc1"]]);
2749
- function _s(e) {
2759
+ const _s = /* @__PURE__ */ B(es, [["render", fs], ["__scopeId", "data-v-42ca3dc1"]]);
2760
+ function gs(e) {
2750
2761
  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();
2751
2762
  }
2752
- const gs = {
2763
+ const ps = {
2753
2764
  name: "WmActionResult",
2754
2765
  props: {
2755
2766
  state: { type: String, default: "success" },
@@ -2759,13 +2770,13 @@ const gs = {
2759
2770
  },
2760
2771
  computed: {
2761
2772
  detailText() {
2762
- return _s(this.detail);
2773
+ return gs(this.detail);
2763
2774
  }
2764
2775
  }
2765
- }, ps = {
2776
+ }, vs = {
2766
2777
  class: "wm-result__icon",
2767
2778
  "aria-hidden": "true"
2768
- }, vs = {
2779
+ }, ys = {
2769
2780
  key: 0,
2770
2781
  width: "11",
2771
2782
  height: "11",
@@ -2775,7 +2786,7 @@ const gs = {
2775
2786
  "stroke-width": "2.8",
2776
2787
  "stroke-linecap": "round",
2777
2788
  "stroke-linejoin": "round"
2778
- }, ys = {
2789
+ }, ws = {
2779
2790
  key: 1,
2780
2791
  width: "11",
2781
2792
  height: "11",
@@ -2785,7 +2796,7 @@ const gs = {
2785
2796
  "stroke-width": "2.6",
2786
2797
  "stroke-linecap": "round",
2787
2798
  "stroke-linejoin": "round"
2788
- }, ws = {
2799
+ }, bs = {
2789
2800
  key: 2,
2790
2801
  width: "11",
2791
2802
  height: "11",
@@ -2795,7 +2806,7 @@ const gs = {
2795
2806
  "stroke-width": "2.4",
2796
2807
  "stroke-linecap": "round",
2797
2808
  "stroke-linejoin": "round"
2798
- }, bs = {
2809
+ }, ks = {
2799
2810
  key: 3,
2800
2811
  width: "12",
2801
2812
  height: "12",
@@ -2805,24 +2816,24 @@ const gs = {
2805
2816
  "stroke-width": "2.2",
2806
2817
  "stroke-linecap": "round",
2807
2818
  "stroke-linejoin": "round"
2808
- }, ks = { class: "wm-result__body" }, Cs = { class: "wm-result__label" }, As = { class: "wm-result__detail" };
2809
- function Ss(e, t, n, r, i, s) {
2819
+ }, Cs = { class: "wm-result__body" }, As = { class: "wm-result__label" }, Ss = { class: "wm-result__detail" };
2820
+ function Ms(e, t, n, r, i, s) {
2810
2821
  return c(), d("div", {
2811
2822
  class: I(["wm-result", `wm-result--${n.state}`])
2812
2823
  }, [
2813
- o("span", ps, [
2814
- n.state === "success" ? (c(), d("svg", vs, [...t[0] || (t[0] = [
2824
+ o("span", vs, [
2825
+ n.state === "success" ? (c(), d("svg", ys, [...t[0] || (t[0] = [
2815
2826
  o("path", { d: "M20 6L9 17l-5-5" }, null, -1)
2816
- ])])) : n.state === "rejected" ? (c(), d("svg", ys, [...t[1] || (t[1] = [
2827
+ ])])) : n.state === "rejected" ? (c(), d("svg", ws, [...t[1] || (t[1] = [
2817
2828
  o("path", { d: "M18 6L6 18M6 6l12 12" }, null, -1)
2818
- ])])) : n.state === "awaiting" ? (c(), d("svg", ws, [...t[2] || (t[2] = [
2829
+ ])])) : n.state === "awaiting" ? (c(), d("svg", bs, [...t[2] || (t[2] = [
2819
2830
  o("circle", {
2820
2831
  cx: "12",
2821
2832
  cy: "12",
2822
2833
  r: "10"
2823
2834
  }, null, -1),
2824
2835
  o("polyline", { points: "12 7 12 12 15 14" }, null, -1)
2825
- ])])) : (c(), d("svg", bs, [...t[3] || (t[3] = [
2836
+ ])])) : (c(), d("svg", ks, [...t[3] || (t[3] = [
2826
2837
  o("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),
2827
2838
  o("line", {
2828
2839
  x1: "12",
@@ -2838,19 +2849,19 @@ function Ss(e, t, n, r, i, s) {
2838
2849
  }, null, -1)
2839
2850
  ])]))
2840
2851
  ]),
2841
- o("span", ks, [
2842
- o("span", Cs, v(n.label), 1),
2852
+ o("span", Cs, [
2853
+ o("span", As, v(n.label), 1),
2843
2854
  s.detailText ? (c(), d(L, { key: 0 }, [
2844
2855
  t[4] || (t[4] = o("span", {
2845
2856
  class: "wm-result__sep",
2846
2857
  "aria-hidden": "true"
2847
2858
  }, " · ", -1)),
2848
- o("span", As, v(s.detailText), 1)
2859
+ o("span", Ss, v(s.detailText), 1)
2849
2860
  ], 64)) : w("", !0)
2850
2861
  ])
2851
2862
  ], 2);
2852
2863
  }
2853
- const Ms = /* @__PURE__ */ B(gs, [["render", Ss], ["__scopeId", "data-v-7284acd0"]]), Ts = {
2864
+ const Ts = /* @__PURE__ */ B(ps, [["render", Ms], ["__scopeId", "data-v-7284acd0"]]), xs = {
2854
2865
  name: "WmArtifactFormResponse",
2855
2866
  inject: {
2856
2867
  // Translator shared by the Messenger shell; French fallback when
@@ -2866,12 +2877,12 @@ const Ms = /* @__PURE__ */ B(gs, [["render", Ss], ["__scopeId", "data-v-7284acd0
2866
2877
  return Array.isArray((e = this.data) == null ? void 0 : e.fields) ? this.data.fields : [];
2867
2878
  }
2868
2879
  }
2869
- }, xs = { class: "wm-art wm-art--formResponse" }, Os = { class: "wm-art__head" }, Is = { class: "wm-art__title" }, Ls = { class: "wm-art__badge wm-art__badge--success" }, Es = { class: "wm-art__body" }, Rs = { class: "wm-art__fieldLabel" };
2870
- function Bs(e, t, n, r, i, s) {
2871
- return c(), d("div", xs, [
2872
- o("div", Os, [
2873
- o("div", Is, v(n.data.title || s.t("form.title")), 1),
2874
- o("span", Ls, [
2880
+ }, Os = { class: "wm-art wm-art--formResponse" }, Is = { class: "wm-art__head" }, Ls = { class: "wm-art__title" }, Es = { class: "wm-art__badge wm-art__badge--success" }, Rs = { class: "wm-art__body" }, Bs = { class: "wm-art__fieldLabel" };
2881
+ function Ps(e, t, n, r, i, s) {
2882
+ return c(), d("div", Os, [
2883
+ o("div", Is, [
2884
+ o("div", Ls, v(n.data.title || s.t("form.title")), 1),
2885
+ o("span", Es, [
2875
2886
  t[0] || (t[0] = o("svg", {
2876
2887
  width: "11",
2877
2888
  height: "11",
@@ -2888,12 +2899,12 @@ function Bs(e, t, n, r, i, s) {
2888
2899
  Ce(" " + v(s.t("form.sent")), 1)
2889
2900
  ])
2890
2901
  ]),
2891
- o("div", Es, [
2902
+ o("div", Rs, [
2892
2903
  (c(!0), d(L, null, F(s.fields, (a, l) => (c(), d("div", {
2893
2904
  key: l,
2894
2905
  class: "wm-art__field"
2895
2906
  }, [
2896
- o("div", Rs, v(a.label), 1),
2907
+ o("div", Bs, v(a.label), 1),
2897
2908
  o("div", {
2898
2909
  class: I([
2899
2910
  "wm-art__fieldValue",
@@ -2904,7 +2915,7 @@ function Bs(e, t, n, r, i, s) {
2904
2915
  ])
2905
2916
  ]);
2906
2917
  }
2907
- const Ps = /* @__PURE__ */ B(Ts, [["render", Bs], ["__scopeId", "data-v-713aecf1"]]), Ns = {
2918
+ const Ns = /* @__PURE__ */ B(xs, [["render", Ps], ["__scopeId", "data-v-713aecf1"]]), Us = {
2908
2919
  name: "WmArtifactInfoCard",
2909
2920
  props: {
2910
2921
  data: { type: Object, required: !0 }
@@ -2919,32 +2930,32 @@ const Ps = /* @__PURE__ */ B(Ts, [["render", Bs], ["__scopeId", "data-v-713aecf1
2919
2930
  return !!((e = this.data) != null && e.body) || this.fields.length > 0;
2920
2931
  }
2921
2932
  }
2922
- }, Us = { class: "wm-art wm-art--infoCard" }, Ds = {
2933
+ }, Ds = { class: "wm-art wm-art--infoCard" }, Fs = {
2923
2934
  key: 0,
2924
2935
  class: "wm-art__image"
2925
- }, Fs = ["src", "alt"], js = { class: "wm-art__head" }, Hs = { class: "wm-art__headMain" }, zs = { class: "wm-art__title" }, qs = {
2936
+ }, js = ["src", "alt"], Hs = { class: "wm-art__head" }, zs = { class: "wm-art__headMain" }, qs = { class: "wm-art__title" }, $s = {
2926
2937
  key: 0,
2927
2938
  class: "wm-art__subtitle"
2928
- }, $s = {
2939
+ }, Vs = {
2929
2940
  key: 1,
2930
2941
  class: "wm-art__body"
2931
- }, Vs = {
2942
+ }, Ks = {
2932
2943
  key: 0,
2933
2944
  class: "wm-art__text"
2934
- }, Ks = { class: "wm-art__fieldLabel" };
2935
- function Ws(e, t, n, r, i, s) {
2936
- return c(), d("div", Us, [
2937
- n.data.image_url ? (c(), d("figure", Ds, [
2945
+ }, Ws = { class: "wm-art__fieldLabel" };
2946
+ function Gs(e, t, n, r, i, s) {
2947
+ return c(), d("div", Ds, [
2948
+ n.data.image_url ? (c(), d("figure", Fs, [
2938
2949
  o("img", {
2939
2950
  src: n.data.image_url,
2940
2951
  alt: n.data.title || "",
2941
2952
  loading: "lazy"
2942
- }, null, 8, Fs)
2953
+ }, null, 8, js)
2943
2954
  ])) : w("", !0),
2944
- o("div", js, [
2945
- o("div", Hs, [
2946
- o("div", zs, v(n.data.title), 1),
2947
- n.data.subtitle ? (c(), d("div", qs, v(n.data.subtitle), 1)) : w("", !0)
2955
+ o("div", Hs, [
2956
+ o("div", zs, [
2957
+ o("div", qs, v(n.data.title), 1),
2958
+ n.data.subtitle ? (c(), d("div", $s, v(n.data.subtitle), 1)) : w("", !0)
2948
2959
  ]),
2949
2960
  n.data.badge && n.data.badge.label ? (c(), d("span", {
2950
2961
  key: 0,
@@ -2954,13 +2965,13 @@ function Ws(e, t, n, r, i, s) {
2954
2965
  ])
2955
2966
  }, v(n.data.badge.label), 3)) : w("", !0)
2956
2967
  ]),
2957
- s.hasBody ? (c(), d("div", $s, [
2958
- n.data.body ? (c(), d("div", Vs, v(n.data.body), 1)) : w("", !0),
2968
+ s.hasBody ? (c(), d("div", Vs, [
2969
+ n.data.body ? (c(), d("div", Ks, v(n.data.body), 1)) : w("", !0),
2959
2970
  s.fields.length ? (c(!0), d(L, { key: 1 }, F(s.fields, (a, l) => (c(), d("div", {
2960
2971
  key: l,
2961
2972
  class: "wm-art__field"
2962
2973
  }, [
2963
- o("div", Ks, v(a.label), 1),
2974
+ o("div", Ws, v(a.label), 1),
2964
2975
  o("div", {
2965
2976
  class: I([
2966
2977
  "wm-art__fieldValue",
@@ -2971,8 +2982,8 @@ function Ws(e, t, n, r, i, s) {
2971
2982
  ])) : w("", !0)
2972
2983
  ]);
2973
2984
  }
2974
- const Gs = /* @__PURE__ */ B(Ns, [["render", Ws], ["__scopeId", "data-v-7eae0e4a"]]);
2975
- function Ys(e, t, n) {
2985
+ const Ys = /* @__PURE__ */ B(Us, [["render", Gs], ["__scopeId", "data-v-7eae0e4a"]]);
2986
+ function Xs(e, t, n) {
2976
2987
  if (!e) return "";
2977
2988
  const r = new Date(e);
2978
2989
  if (Number.isNaN(r.getTime())) return e;
@@ -2986,7 +2997,7 @@ function Ys(e, t, n) {
2986
2997
  });
2987
2998
  return `${i}${n}${s}`;
2988
2999
  }
2989
- const Xs = {
3000
+ const Js = {
2990
3001
  name: "WmArtifactTicket",
2991
3002
  inject: {
2992
3003
  // Translator + resolved-language getter shared by the Messenger
@@ -3004,7 +3015,7 @@ const Xs = {
3004
3015
  },
3005
3016
  formattedDate() {
3006
3017
  var e;
3007
- return Ys(
3018
+ return Xs(
3008
3019
  (e = this.data) == null ? void 0 : e.created_at,
3009
3020
  ne(this.wmLocale()),
3010
3021
  this.t("ticket.dateAt")
@@ -3032,13 +3043,13 @@ const Xs = {
3032
3043
  return /high|haute|élev|elev|critic|critiq|urgent/.test(t) ? 3 : /low|basse|faible|minor/.test(t) ? 1 : 2;
3033
3044
  }
3034
3045
  }
3035
- }, Js = { class: "wm-art wm-art--ticket" }, Qs = { class: "wm-art__head wm-tk__head" }, Zs = { class: "wm-art__title wm-tk__title" }, er = { class: "wm-tk__sub" }, tr = { class: "wm-tk__ref" }, nr = {
3046
+ }, Qs = { class: "wm-art wm-art--ticket" }, Zs = { class: "wm-art__head wm-tk__head" }, er = { class: "wm-art__title wm-tk__title" }, tr = { class: "wm-tk__sub" }, nr = { class: "wm-tk__ref" }, sr = {
3036
3047
  key: 0,
3037
3048
  class: "wm-tk__text"
3038
- }, sr = {
3049
+ }, rr = {
3039
3050
  key: 0,
3040
3051
  class: "wm-art__body"
3041
- }, rr = { class: "wm-art__fieldLabel" }, ir = ["data-level"], ar = {
3052
+ }, ir = { class: "wm-art__fieldLabel" }, ar = ["data-level"], or = {
3042
3053
  key: 1,
3043
3054
  class: "wm-tk__date",
3044
3055
  width: "12",
@@ -3050,16 +3061,16 @@ const Xs = {
3050
3061
  "stroke-linecap": "round",
3051
3062
  "stroke-linejoin": "round",
3052
3063
  "aria-hidden": "true"
3053
- }, or = {
3064
+ }, lr = {
3054
3065
  key: 1,
3055
3066
  class: "wm-art__footer wm-tk__footer"
3056
3067
  };
3057
- function lr(e, t, n, r, i, s) {
3058
- return c(), d("div", Js, [
3059
- o("div", Qs, [
3060
- o("div", Zs, v(n.data.title), 1),
3061
- o("div", er, [
3062
- o("div", tr, [
3068
+ function cr(e, t, n, r, i, s) {
3069
+ return c(), d("div", Qs, [
3070
+ o("div", Zs, [
3071
+ o("div", er, v(n.data.title), 1),
3072
+ o("div", tr, [
3073
+ o("div", nr, [
3063
3074
  t[0] || (t[0] = o("svg", {
3064
3075
  width: "11",
3065
3076
  height: "11",
@@ -3090,14 +3101,14 @@ function lr(e, t, n, r, i, s) {
3090
3101
  Ce(" " + v(n.data.status.label), 1)
3091
3102
  ], 2)
3092
3103
  ]),
3093
- n.data.body ? (c(), d("div", nr, v(n.data.body), 1)) : w("", !0)
3104
+ n.data.body ? (c(), d("div", sr, v(n.data.body), 1)) : w("", !0)
3094
3105
  ]),
3095
- s.fields.length ? (c(), d("div", sr, [
3106
+ s.fields.length ? (c(), d("div", rr, [
3096
3107
  (c(!0), d(L, null, F(s.fields, (a, l) => (c(), d("div", {
3097
3108
  key: l,
3098
3109
  class: "wm-art__field"
3099
3110
  }, [
3100
- o("div", rr, v(a.label), 1),
3111
+ o("div", ir, v(a.label), 1),
3101
3112
  o("div", {
3102
3113
  class: I([
3103
3114
  "wm-art__fieldValue",
@@ -3134,7 +3145,7 @@ function lr(e, t, n, r, i, s) {
3134
3145
  height: "9",
3135
3146
  rx: "0.5"
3136
3147
  }, null, -1)
3137
- ])], 8, ir)) : s.isDate(a.label) ? (c(), d("svg", ar, [...t[3] || (t[3] = [
3148
+ ])], 8, ar)) : s.isDate(a.label) ? (c(), d("svg", or, [...t[3] || (t[3] = [
3138
3149
  o("rect", {
3139
3150
  x: "3",
3140
3151
  y: "4",
@@ -3148,7 +3159,7 @@ function lr(e, t, n, r, i, s) {
3148
3159
  ], 2)
3149
3160
  ]))), 128))
3150
3161
  ])) : w("", !0),
3151
- n.data.created_at ? (c(), d("div", or, [
3162
+ n.data.created_at ? (c(), d("div", lr, [
3152
3163
  t[4] || (t[4] = o("svg", {
3153
3164
  width: "11",
3154
3165
  height: "11",
@@ -3173,11 +3184,11 @@ function lr(e, t, n, r, i, s) {
3173
3184
  ])) : w("", !0)
3174
3185
  ]);
3175
3186
  }
3176
- const cr = /* @__PURE__ */ B(Xs, [["render", lr], ["__scopeId", "data-v-5f30c914"]]), dr = {
3177
- form_response: Ps,
3178
- info_card: Gs,
3179
- ticket: cr
3180
- }, ur = {
3187
+ const dr = /* @__PURE__ */ B(Js, [["render", cr], ["__scopeId", "data-v-5f30c914"]]), ur = {
3188
+ form_response: Ns,
3189
+ info_card: Ys,
3190
+ ticket: dr
3191
+ }, hr = {
3181
3192
  name: "WmArtifactRenderer",
3182
3193
  props: {
3183
3194
  // Forme : { kind: string, data: any } (le `data` est validé
@@ -3188,17 +3199,17 @@ const cr = /* @__PURE__ */ B(Xs, [["render", lr], ["__scopeId", "data-v-5f30c914
3188
3199
  component() {
3189
3200
  var t;
3190
3201
  const e = (t = this.artifact) == null ? void 0 : t.kind;
3191
- return e && dr[e] || null;
3202
+ return e && ur[e] || null;
3192
3203
  }
3193
3204
  }
3194
3205
  };
3195
- function hr(e, t, n, r, i, s) {
3206
+ function mr(e, t, n, r, i, s) {
3196
3207
  return s.component ? (c(), P(ke(s.component), {
3197
3208
  key: 0,
3198
3209
  data: n.artifact.data
3199
3210
  }, null, 8, ["data"])) : w("", !0);
3200
3211
  }
3201
- const mr = /* @__PURE__ */ B(ur, [["render", hr]]), fr = {
3212
+ const fr = /* @__PURE__ */ B(hr, [["render", mr]]), _r = {
3202
3213
  name: "WmAttachmentPreview",
3203
3214
  inject: {
3204
3215
  signAttachmentFn: { default: null },
@@ -3266,15 +3277,15 @@ const mr = /* @__PURE__ */ B(ur, [["render", hr]]), fr = {
3266
3277
  this.safeHref === "#" && e.preventDefault();
3267
3278
  }
3268
3279
  }
3269
- }, _r = ["href"], gr = ["src", "alt"], pr = ["src"], vr = ["src"], yr = ["href", "download"], wr = { class: "wm-att__main" }, br = { class: "wm-att__name" }, kr = {
3280
+ }, gr = ["href"], pr = ["src", "alt"], vr = ["src"], yr = ["src"], wr = ["href", "download"], br = { class: "wm-att__main" }, kr = { class: "wm-att__name" }, Cr = {
3270
3281
  key: 0,
3271
3282
  class: "wm-att__meta"
3272
- }, Cr = {
3283
+ }, Ar = {
3273
3284
  key: 0,
3274
3285
  class: "wm-att__spin",
3275
3286
  "aria-hidden": "true"
3276
3287
  };
3277
- function Ar(e, t, n, r, i, s) {
3288
+ function Sr(e, t, n, r, i, s) {
3278
3289
  return c(), d("div", {
3279
3290
  class: I(["wm-att", ["wm-att--" + (s.kind || "file")]])
3280
3291
  }, [
@@ -3289,18 +3300,18 @@ function Ar(e, t, n, r, i, s) {
3289
3300
  src: i.url,
3290
3301
  alt: s.displayName,
3291
3302
  loading: "lazy"
3292
- }, null, 8, gr)
3293
- ], 8, _r)) : s.kind === "audio" && i.url ? (c(), d("audio", {
3303
+ }, null, 8, pr)
3304
+ ], 8, gr)) : s.kind === "audio" && i.url ? (c(), d("audio", {
3294
3305
  key: 1,
3295
3306
  src: i.url,
3296
3307
  controls: "",
3297
3308
  preload: "metadata"
3298
- }, null, 8, pr)) : s.kind === "video" && i.url ? (c(), d("video", {
3309
+ }, null, 8, vr)) : s.kind === "video" && i.url ? (c(), d("video", {
3299
3310
  key: 2,
3300
3311
  src: i.url,
3301
3312
  controls: "",
3302
3313
  preload: "metadata"
3303
- }, null, 8, vr)) : (c(), d("a", {
3314
+ }, null, 8, yr)) : (c(), d("a", {
3304
3315
  key: 3,
3305
3316
  class: "wm-att__file",
3306
3317
  href: s.safeHref,
@@ -3325,15 +3336,15 @@ function Ar(e, t, n, r, i, s) {
3325
3336
  o("path", { d: "M14 2v6h6" })
3326
3337
  ])
3327
3338
  ], -1)),
3328
- o("span", wr, [
3329
- o("span", br, v(s.displayName), 1),
3330
- s.sizeLabel ? (c(), d("span", kr, v(s.sizeLabel), 1)) : w("", !0)
3339
+ o("span", br, [
3340
+ o("span", kr, v(s.displayName), 1),
3341
+ s.sizeLabel ? (c(), d("span", Cr, v(s.sizeLabel), 1)) : w("", !0)
3331
3342
  ]),
3332
- i.loading ? (c(), d("span", Cr)) : w("", !0)
3333
- ], 8, yr))
3343
+ i.loading ? (c(), d("span", Ar)) : w("", !0)
3344
+ ], 8, wr))
3334
3345
  ], 2);
3335
3346
  }
3336
- const Sr = /* @__PURE__ */ B(fr, [["render", Ar], ["__scopeId", "data-v-0c877a62"]]), Mr = {
3347
+ const Mr = /* @__PURE__ */ B(_r, [["render", Sr], ["__scopeId", "data-v-0c877a62"]]), Tr = {
3337
3348
  name: "WmBubble",
3338
3349
  props: {
3339
3350
  role: { type: String, default: "ai" },
@@ -3345,45 +3356,45 @@ const Sr = /* @__PURE__ */ B(fr, [["render", Ar], ["__scopeId", "data-v-0c877a62
3345
3356
  return ht(this.text);
3346
3357
  }
3347
3358
  }
3348
- }, Tr = ["innerHTML"];
3349
- function xr(e, t, n, r, i, s) {
3359
+ }, xr = ["innerHTML"];
3360
+ function Or(e, t, n, r, i, s) {
3350
3361
  return c(), d("div", {
3351
3362
  class: I(["wm-bubble", "wm-bubble--" + n.role])
3352
3363
  }, [
3353
3364
  $e(e.$slots, "default", {}, () => [
3354
- o("span", { innerHTML: s.rendered }, null, 8, Tr)
3365
+ o("span", { innerHTML: s.rendered }, null, 8, xr)
3355
3366
  ], !0)
3356
3367
  ], 2);
3357
3368
  }
3358
- const Or = /* @__PURE__ */ B(Mr, [["render", xr], ["__scopeId", "data-v-7ab13147"]]), Ir = { name: "WmTyping" }, Lr = { class: "wm-typing" };
3359
- function Er(e, t, n, r, i, s) {
3360
- return c(), d("div", Lr, [...t[0] || (t[0] = [
3369
+ const Ir = /* @__PURE__ */ B(Tr, [["render", Or], ["__scopeId", "data-v-7ab13147"]]), Lr = { name: "WmTyping" }, Er = { class: "wm-typing" };
3370
+ function Rr(e, t, n, r, i, s) {
3371
+ return c(), d("div", Er, [...t[0] || (t[0] = [
3361
3372
  o("span", { style: { "animation-delay": "0s" } }, null, -1),
3362
3373
  o("span", { style: { "animation-delay": "0.2s" } }, null, -1),
3363
3374
  o("span", { style: { "animation-delay": "0.4s" } }, null, -1)
3364
3375
  ])]);
3365
3376
  }
3366
- const Rr = /* @__PURE__ */ B(Ir, [["render", Er], ["__scopeId", "data-v-df2447fd"]]);
3377
+ const Br = /* @__PURE__ */ B(Lr, [["render", Rr], ["__scopeId", "data-v-df2447fd"]]);
3367
3378
  function ee(e) {
3368
3379
  return e ? e.client_msg_id || e.id : "";
3369
3380
  }
3370
- const Br = {
3381
+ const Pr = {
3371
3382
  transferred_to_human: "system.transferredToHuman",
3372
3383
  assigned: "system.assigned",
3373
3384
  unassigned: "system.unassigned",
3374
3385
  resolved: "system.resolved",
3375
3386
  reopened: "system.reopened",
3376
3387
  idle: "system.idle"
3377
- }, Pr = 80, Nr = 200, Ur = {
3388
+ }, Nr = 80, Ur = 200, Dr = {
3378
3389
  name: "WmMessageList",
3379
3390
  components: {
3380
3391
  AIAvatar: oe,
3381
3392
  HumanAvatar: ge,
3382
- Bubble: Or,
3383
- Typing: Rr,
3384
- ActionResult: Ms,
3385
- AttachmentPreview: Sr,
3386
- ArtifactRenderer: mr
3393
+ Bubble: Ir,
3394
+ Typing: Br,
3395
+ ActionResult: Ts,
3396
+ AttachmentPreview: Mr,
3397
+ ArtifactRenderer: fr
3387
3398
  },
3388
3399
  inject: {
3389
3400
  // Translator + resolved-language getter shared by the Messenger
@@ -3573,11 +3584,11 @@ const Br = {
3573
3584
  return `g-${n}`;
3574
3585
  },
3575
3586
  isAtBottom(e) {
3576
- return e.scrollHeight - e.scrollTop - e.clientHeight <= Pr;
3587
+ return e.scrollHeight - e.scrollTop - e.clientHeight <= Nr;
3577
3588
  },
3578
3589
  onScroll() {
3579
3590
  const e = this.$refs.scrollEl;
3580
- e && (this.showScrollDown = !this.isAtBottom(e), !(this.loadingMore || !this.hasMore) && (this._pendingLoadMore || e.scrollTop <= Nr && (this._pendingLoadMore = !0, this.$emit("load-more"))));
3591
+ e && (this.showScrollDown = !this.isAtBottom(e), !(this.loadingMore || !this.hasMore) && (this._pendingLoadMore || e.scrollTop <= Ur && (this._pendingLoadMore = !0, this.$emit("load-more"))));
3581
3592
  },
3582
3593
  // Capture pre-patch scroll state and restore it on the next tick.
3583
3594
  //
@@ -3915,7 +3926,7 @@ const Br = {
3915
3926
  },
3916
3927
  systemLabel(e) {
3917
3928
  var i, s, a;
3918
- const t = (i = e == null ? void 0 : e.payload) == null ? void 0 : i.event, n = Br[t], r = ((s = e == null ? void 0 : e.metadata) == null ? void 0 : s.agent_name) || ((a = e == null ? void 0 : e.author) == null ? void 0 : a.name) || this.t("messageList.anAgent");
3929
+ const t = (i = e == null ? void 0 : e.payload) == null ? void 0 : i.event, n = Pr[t], r = ((s = e == null ? void 0 : e.metadata) == null ? void 0 : s.agent_name) || ((a = e == null ? void 0 : e.author) == null ? void 0 : a.name) || this.t("messageList.anAgent");
3919
3930
  return n ? this.t(n, { name: r }) : (e == null ? void 0 : e.text_md) || this.t("messageList.conversationUpdate");
3920
3931
  },
3921
3932
  scrollToBottom() {
@@ -3930,74 +3941,74 @@ const Br = {
3930
3941
  e && (typeof e.scrollTo == "function" ? e.scrollTo({ top: e.scrollHeight, behavior: "smooth" }) : e.scrollTop = e.scrollHeight, this.showScrollDown = !1);
3931
3942
  }
3932
3943
  }
3933
- }, Dr = { class: "wm-list__wrap" }, Fr = {
3944
+ }, Fr = { class: "wm-list__wrap" }, jr = {
3934
3945
  key: 0,
3935
3946
  class: "wm-list__loadMore",
3936
3947
  role: "status",
3937
3948
  "aria-live": "polite"
3938
- }, jr = { class: "wm-list__loadMore-lbl" }, Hr = {
3949
+ }, Hr = { class: "wm-list__loadMore-lbl" }, zr = {
3939
3950
  key: 1,
3940
3951
  class: "wm-list__historyEnd"
3941
- }, zr = {
3952
+ }, qr = {
3942
3953
  key: 2,
3943
3954
  class: "wm-list__sep"
3944
- }, qr = { class: "wm-list__sep-label" }, $r = {
3955
+ }, $r = { class: "wm-list__sep-label" }, Vr = {
3945
3956
  key: 0,
3946
3957
  class: "wm-list__sep wm-list__sep--unread"
3947
- }, Vr = { class: "wm-list__sep-label wm-list__sep-label--unread" }, Kr = {
3958
+ }, Kr = { class: "wm-list__sep-label wm-list__sep-label--unread" }, Wr = {
3948
3959
  key: 0,
3949
3960
  class: "wm-list__sysep"
3950
- }, Wr = { class: "wm-list__sysep-label" }, Gr = ["data-row-key", "onPointerdown"], Yr = {
3961
+ }, Gr = { class: "wm-list__sysep-label" }, Yr = ["data-row-key", "onPointerdown"], Xr = {
3951
3962
  key: 0,
3952
3963
  class: "wm-list__avatarSlot"
3953
- }, Xr = {
3964
+ }, Jr = {
3954
3965
  key: 5,
3955
3966
  class: "wm-list__body"
3956
- }, Jr = { key: 0 }, Qr = {
3967
+ }, Qr = { key: 0 }, Zr = {
3957
3968
  key: 1,
3958
3969
  "aria-hidden": "true"
3959
- }, Zr = { key: 2 }, ei = { key: 0 }, ti = {
3970
+ }, ei = { key: 2 }, ti = { key: 0 }, ni = {
3960
3971
  key: 1,
3961
3972
  "aria-hidden": "true"
3962
- }, ni = { key: 2 }, si = {
3973
+ }, si = { key: 2 }, ri = {
3963
3974
  key: 3,
3964
3975
  class: "wm-list__row wm-list__row--ai fade-up"
3965
- }, ri = { class: "wm-list__avatarSlot" }, ii = ["aria-label", "title"];
3966
- function ai(e, t, n, r, i, s) {
3976
+ }, ii = { class: "wm-list__avatarSlot" }, ai = ["aria-label", "title"];
3977
+ function oi(e, t, n, r, i, s) {
3967
3978
  const a = R("AIAvatar"), l = R("HumanAvatar"), g = R("ActionResult"), k = R("ArtifactRenderer"), b = R("Bubble"), x = R("AttachmentPreview"), E = R("Typing");
3968
- return c(), d("div", Dr, [
3979
+ return c(), d("div", Fr, [
3969
3980
  o("div", {
3970
3981
  ref: "scrollEl",
3971
3982
  class: I(["wm-list", { "wm-list--silent": i.silentFades }]),
3972
3983
  onScrollPassive: t[4] || (t[4] = (...A) => s.onScroll && s.onScroll(...A))
3973
3984
  }, [
3974
- n.loadingMore ? (c(), d("div", Fr, [
3985
+ n.loadingMore ? (c(), d("div", jr, [
3975
3986
  t[6] || (t[6] = o("span", {
3976
3987
  class: "wm-list__loadMore-spinner",
3977
3988
  "aria-hidden": "true"
3978
3989
  }, null, -1)),
3979
- o("span", jr, v(s.t("messageList.loadingHistory")), 1)
3980
- ])) : s.historyExhausted ? (c(), d("div", Hr, v(s.t("messageList.conversationStart")), 1)) : w("", !0),
3981
- n.dateLabel ? (c(), d("div", zr, [
3990
+ o("span", Hr, v(s.t("messageList.loadingHistory")), 1)
3991
+ ])) : s.historyExhausted ? (c(), d("div", zr, v(s.t("messageList.conversationStart")), 1)) : w("", !0),
3992
+ n.dateLabel ? (c(), d("div", qr, [
3982
3993
  t[7] || (t[7] = o("div", { class: "wm-list__line" }, null, -1)),
3983
- o("span", qr, v(n.dateLabel), 1),
3994
+ o("span", $r, v(n.dateLabel), 1),
3984
3995
  t[8] || (t[8] = o("div", { class: "wm-list__line" }, null, -1))
3985
3996
  ])) : w("", !0),
3986
3997
  (c(!0), d(L, null, F(s.groups, (A, q) => (c(), d(L, {
3987
3998
  key: A.key
3988
3999
  }, [
3989
- A.key === s.unreadGroupKey ? (c(), d("div", $r, [
4000
+ A.key === s.unreadGroupKey ? (c(), d("div", Vr, [
3990
4001
  t[9] || (t[9] = o("div", { class: "wm-list__line wm-list__line--unread" }, null, -1)),
3991
- o("span", Vr, v(s.t("messageList.unread")), 1),
4002
+ o("span", Kr, v(s.t("messageList.unread")), 1),
3992
4003
  t[10] || (t[10] = o("div", { class: "wm-list__line wm-list__line--unread" }, null, -1))
3993
4004
  ])) : w("", !0),
3994
4005
  A.role === "system" || A.items.length ? (c(), d("div", {
3995
4006
  key: 1,
3996
4007
  class: I(["wm-list__group", "wm-list__group--" + A.role])
3997
4008
  }, [
3998
- A.role === "system" ? (c(), d("div", Kr, [
4009
+ A.role === "system" ? (c(), d("div", Wr, [
3999
4010
  t[11] || (t[11] = o("div", { class: "wm-list__line wm-list__line--strong" }, null, -1)),
4000
- o("span", Wr, v(A.systemLabel), 1),
4011
+ o("span", Gr, v(A.systemLabel), 1),
4001
4012
  t[12] || (t[12] = o("div", { class: "wm-list__line wm-list__line--strong" }, null, -1))
4002
4013
  ])) : (c(), d(L, { key: 1 }, [
4003
4014
  (c(!0), d(L, null, F(A.items, (M, U) => (c(), d(L, {
@@ -4020,7 +4031,7 @@ function ai(e, t, n, r, i, s) {
4020
4031
  onContextmenu: t[3] || (t[3] = X(() => {
4021
4032
  }, ["prevent"]))
4022
4033
  }, [
4023
- A.role !== "user" ? (c(), d("div", Yr, [
4034
+ A.role !== "user" ? (c(), d("div", Xr, [
4024
4035
  U === A.items.length - 1 ? (c(), d(L, { key: 0 }, [
4025
4036
  A.role === "ai" ? (c(), P(a, {
4026
4037
  key: 0,
@@ -4053,7 +4064,7 @@ function ai(e, t, n, r, i, s) {
4053
4064
  }, null, 8, ["artifact"])) : M.renderAs === "artifact" ? (c(), P(k, {
4054
4065
  key: 4,
4055
4066
  artifact: s.artifactOf(M.message)
4056
- }, null, 8, ["artifact"])) : (c(), d("div", Xr, [
4067
+ }, null, 8, ["artifact"])) : (c(), d("div", Jr, [
4057
4068
  M.message.text_md ? (c(), P(b, {
4058
4069
  key: 0,
4059
4070
  role: A.role,
@@ -4073,29 +4084,29 @@ function ai(e, t, n, r, i, s) {
4073
4084
  }, null, 8, ["attachment"]))), 128))
4074
4085
  ], 2)) : w("", !0)
4075
4086
  ]))
4076
- ], 46, Gr),
4087
+ ], 46, Yr),
4077
4088
  U < A.items.length - 1 && i.pressedItemKey === `${s.messageKey(M.message)}-${M.partKey}` && (A.role !== "user" || s.timeOf(M.message)) ? (c(), d("div", {
4078
4089
  key: 0,
4079
4090
  class: I(["wm-list__meta wm-list__meta--press", { "wm-list__meta--right": A.role === "user" }])
4080
4091
  }, [
4081
- A.role !== "user" ? (c(), d("span", Jr, v(s.roleLabel(A)), 1)) : w("", !0),
4082
- A.role !== "user" && s.timeOf(M.message) ? (c(), d("span", Qr, "•")) : w("", !0),
4083
- s.timeOf(M.message) ? (c(), d("span", Zr, v(s.timeOf(M.message)), 1)) : w("", !0)
4092
+ A.role !== "user" ? (c(), d("span", Qr, v(s.roleLabel(A)), 1)) : w("", !0),
4093
+ A.role !== "user" && s.timeOf(M.message) ? (c(), d("span", Zr, "•")) : w("", !0),
4094
+ s.timeOf(M.message) ? (c(), d("span", ei, v(s.timeOf(M.message)), 1)) : w("", !0)
4084
4095
  ], 2)) : w("", !0)
4085
4096
  ], 64))), 128)),
4086
4097
  (A.role !== "user" || s.lastTimeOf(A)) && !s.hasTrailingOverlay(A) ? (c(), d("div", {
4087
4098
  key: 0,
4088
4099
  class: I(["wm-list__meta", { "wm-list__meta--right": A.role === "user" }])
4089
4100
  }, [
4090
- A.role !== "user" ? (c(), d("span", ei, v(s.roleLabel(A)), 1)) : w("", !0),
4091
- A.role !== "user" && s.lastTimeOf(A) ? (c(), d("span", ti, "•")) : w("", !0),
4092
- s.lastTimeOf(A) ? (c(), d("span", ni, v(s.lastTimeOf(A)), 1)) : w("", !0)
4101
+ A.role !== "user" ? (c(), d("span", ti, v(s.roleLabel(A)), 1)) : w("", !0),
4102
+ A.role !== "user" && s.lastTimeOf(A) ? (c(), d("span", ni, "•")) : w("", !0),
4103
+ s.lastTimeOf(A) ? (c(), d("span", si, v(s.lastTimeOf(A)), 1)) : w("", !0)
4093
4104
  ], 2)) : w("", !0)
4094
4105
  ], 64))
4095
4106
  ], 2)) : w("", !0)
4096
4107
  ], 64))), 128)),
4097
- n.streamingActive ? (c(), d("div", si, [
4098
- o("div", ri, [
4108
+ n.streamingActive ? (c(), d("div", ri, [
4109
+ o("div", ii, [
4099
4110
  V(a, {
4100
4111
  size: 26,
4101
4112
  tail: !0,
@@ -4129,14 +4140,14 @@ function ai(e, t, n, r, i, s) {
4129
4140
  }, [
4130
4141
  o("path", { d: "M6 9l6 6 6-6" })
4131
4142
  ], -1)
4132
- ])], 8, ii)) : w("", !0)
4143
+ ])], 8, ai)) : w("", !0)
4133
4144
  ]),
4134
4145
  _: 1
4135
4146
  })
4136
4147
  ]);
4137
4148
  }
4138
- const oi = /* @__PURE__ */ B(Ur, [["render", ai], ["__scopeId", "data-v-cf20685c"]]), _e = typeof navigator < "u" && !!navigator.mediaDevices && typeof navigator.mediaDevices.getDisplayMedia == "function", Te = typeof window < "u" && typeof window.MediaRecorder < "u";
4139
- function li() {
4149
+ const li = /* @__PURE__ */ B(Dr, [["render", oi], ["__scopeId", "data-v-cf20685c"]]), _e = typeof navigator < "u" && !!navigator.mediaDevices && typeof navigator.mediaDevices.getDisplayMedia == "function", Te = typeof window < "u" && typeof window.MediaRecorder < "u";
4150
+ function ci() {
4140
4151
  return Te && [
4141
4152
  "video/webm;codecs=vp9,opus",
4142
4153
  "video/webm;codecs=vp8,opus",
@@ -4156,10 +4167,10 @@ function ze({ audio: e }) {
4156
4167
  systemAudio: e ? "include" : "exclude"
4157
4168
  };
4158
4169
  }
4159
- function go(e) {
4170
+ function po(e) {
4160
4171
  return e ? e.startsWith("image/") ? "image" : e.startsWith("video/") ? "video" : "file" : "file";
4161
4172
  }
4162
- async function ci() {
4173
+ async function di() {
4163
4174
  if (!_e) return null;
4164
4175
  let e;
4165
4176
  try {
@@ -4170,7 +4181,7 @@ async function ci() {
4170
4181
  return (t == null ? void 0 : t.name) !== "NotAllowedError" && console.error("[media] screenshot picker", t), null;
4171
4182
  }
4172
4183
  try {
4173
- return await di(e);
4184
+ return await ui(e);
4174
4185
  } catch (t) {
4175
4186
  return console.error("[media] screenshot capture", t), null;
4176
4187
  } finally {
@@ -4179,7 +4190,7 @@ async function ci() {
4179
4190
  });
4180
4191
  }
4181
4192
  }
4182
- async function di(e) {
4193
+ async function ui(e) {
4183
4194
  const t = document.createElement("video");
4184
4195
  t.muted = !0, t.playsInline = !0, t.srcObject = e, await t.play(), await new Promise((l) => requestAnimationFrame(l));
4185
4196
  const n = t.videoWidth || 1280, r = t.videoHeight || 720, i = document.createElement("canvas");
@@ -4192,7 +4203,7 @@ async function di(e) {
4192
4203
  }), a = (/* @__PURE__ */ new Date()).toISOString().replace(/[:.]/g, "-").slice(0, 19);
4193
4204
  return new File([s], `capture-${a}.png`, { type: "image/png" });
4194
4205
  }
4195
- async function ui(e = {}) {
4206
+ async function hi(e = {}) {
4196
4207
  var k;
4197
4208
  if (!_e || !Te) return null;
4198
4209
  let t;
@@ -4203,7 +4214,7 @@ async function ui(e = {}) {
4203
4214
  } catch (b) {
4204
4215
  return (b == null ? void 0 : b.name) !== "NotAllowedError" && console.error("[media] record picker", b), null;
4205
4216
  }
4206
- const n = li();
4217
+ const n = ci();
4207
4218
  let r;
4208
4219
  try {
4209
4220
  r = n ? new window.MediaRecorder(t, { mimeType: n }) : new window.MediaRecorder(t);
@@ -4257,7 +4268,7 @@ async function ui(e = {}) {
4257
4268
  }
4258
4269
  };
4259
4270
  }
4260
- const hi = [
4271
+ const mi = [
4261
4272
  {
4262
4273
  action: "file",
4263
4274
  labelKey: "composer.attachFile",
@@ -4273,7 +4284,7 @@ const hi = [
4273
4284
  labelKey: "composer.recordScreen",
4274
4285
  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"
4275
4286
  }
4276
- ], mi = {
4287
+ ], fi = {
4277
4288
  name: "WmComposer",
4278
4289
  inject: {
4279
4290
  // Translator shared by the Messenger shell; French fallback when
@@ -4307,7 +4318,7 @@ const hi = [
4307
4318
  return !this.disabled && !!this.local.trim();
4308
4319
  },
4309
4320
  attachItems() {
4310
- return hi.map((e) => ({
4321
+ return mi.map((e) => ({
4311
4322
  ...e,
4312
4323
  label: this.t(e.labelKey),
4313
4324
  disabled: e.action === "screenshot" && !_e || e.action === "record" && (!_e || !Te)
@@ -4381,13 +4392,13 @@ const hi = [
4381
4392
  },
4382
4393
  async captureScreenshot() {
4383
4394
  if (this.disabled) return;
4384
- const e = await ci();
4395
+ const e = await di();
4385
4396
  e && this.$emit("attach", e);
4386
4397
  },
4387
4398
  async startRecording() {
4388
4399
  if (this.recording || this.disabled) return;
4389
4400
  this.recordingElapsed = 0;
4390
- const e = await ui({
4401
+ const e = await hi({
4391
4402
  onstart: () => {
4392
4403
  this.recording = !0;
4393
4404
  },
@@ -4429,30 +4440,30 @@ const hi = [
4429
4440
  !e || !this._vvHandler || (e.removeEventListener("resize", this._vvHandler), e.removeEventListener("scroll", this._vvHandler), this._vvHandler = null);
4430
4441
  }
4431
4442
  }
4432
- }, fi = {
4443
+ }, _i = {
4433
4444
  key: 0,
4434
4445
  class: "wm-rec"
4435
- }, _i = { class: "wm-rec__lbl" }, gi = {
4446
+ }, gi = { class: "wm-rec__lbl" }, pi = {
4436
4447
  key: 1,
4437
4448
  class: "wm-compose__menu",
4438
4449
  role: "menu"
4439
- }, pi = ["disabled", "onClick"], vi = { class: "wm-compose__menuIcon" }, yi = {
4450
+ }, vi = ["disabled", "onClick"], yi = { class: "wm-compose__menuIcon" }, wi = {
4440
4451
  viewBox: "0 0 24 24",
4441
4452
  width: "14",
4442
4453
  height: "14",
4443
4454
  "aria-hidden": "true"
4444
- }, wi = ["d"], bi = ["placeholder", "disabled"], ki = { class: "wm-compose__actions" }, Ci = ["title", "aria-label", "disabled"], Ai = ["disabled", "aria-label"];
4445
- function Si(e, t, n, r, i, s) {
4455
+ }, bi = ["d"], ki = ["placeholder", "disabled"], Ci = { class: "wm-compose__actions" }, Ai = ["title", "aria-label", "disabled"], Si = ["disabled", "aria-label"];
4456
+ function Mi(e, t, n, r, i, s) {
4446
4457
  return c(), d("div", {
4447
4458
  class: I(["wm-compose-wrap", { "wm-compose-wrap--sheet": n.displayMode === "sheet" }]),
4448
4459
  style: z(i.kbOffset ? { transform: `translateY(-${i.kbOffset}px)` } : null)
4449
4460
  }, [
4450
- i.recording ? (c(), d("div", fi, [
4461
+ i.recording ? (c(), d("div", _i, [
4451
4462
  t[8] || (t[8] = o("span", {
4452
4463
  class: "wm-rec__dot",
4453
4464
  "aria-hidden": "true"
4454
4465
  }, null, -1)),
4455
- o("span", _i, v(s.t("composer.recording", { time: s.recordingElapsedLabel })), 1),
4466
+ o("span", gi, v(s.t("composer.recording", { time: s.recordingElapsedLabel })), 1),
4456
4467
  o("button", {
4457
4468
  type: "button",
4458
4469
  class: "wm-rec__stop",
@@ -4475,7 +4486,7 @@ function Si(e, t, n, r, i, s) {
4475
4486
  class: "wm-compose__overlay",
4476
4487
  onClick: t[2] || (t[2] = (a) => i.attachOpen = !1)
4477
4488
  })) : w("", !0),
4478
- i.attachOpen ? (c(), d("div", gi, [
4489
+ i.attachOpen ? (c(), d("div", pi, [
4479
4490
  (c(!0), d(L, null, F(s.attachItems, (a) => (c(), d("button", {
4480
4491
  key: a.action,
4481
4492
  type: "button",
@@ -4483,8 +4494,8 @@ function Si(e, t, n, r, i, s) {
4483
4494
  disabled: a.disabled,
4484
4495
  onClick: (l) => s.onAttachAction(a.action)
4485
4496
  }, [
4486
- o("span", vi, [
4487
- (c(), d("svg", yi, [
4497
+ o("span", yi, [
4498
+ (c(), d("svg", wi, [
4488
4499
  o("path", {
4489
4500
  d: a.path,
4490
4501
  stroke: "currentColor",
@@ -4492,11 +4503,11 @@ function Si(e, t, n, r, i, s) {
4492
4503
  "stroke-linecap": "round",
4493
4504
  "stroke-linejoin": "round",
4494
4505
  fill: "none"
4495
- }, null, 8, wi)
4506
+ }, null, 8, bi)
4496
4507
  ]))
4497
4508
  ]),
4498
4509
  o("span", null, v(a.label), 1)
4499
- ], 8, pi))), 128))
4510
+ ], 8, vi))), 128))
4500
4511
  ])) : w("", !0),
4501
4512
  G(o("textarea", {
4502
4513
  ref: "inputEl",
@@ -4507,10 +4518,10 @@ function Si(e, t, n, r, i, s) {
4507
4518
  disabled: n.disabled,
4508
4519
  onKeydown: t[4] || (t[4] = (...a) => s.onKeydown && s.onKeydown(...a)),
4509
4520
  onInput: t[5] || (t[5] = (...a) => s.autosize && s.autosize(...a))
4510
- }, null, 40, bi), [
4521
+ }, null, 40, ki), [
4511
4522
  [te, i.local]
4512
4523
  ]),
4513
- o("div", ki, [
4524
+ o("div", Ci, [
4514
4525
  o("button", {
4515
4526
  type: "button",
4516
4527
  class: I(["wm-compose__icon", { "is-open": i.attachOpen }]),
@@ -4532,7 +4543,7 @@ function Si(e, t, n, r, i, s) {
4532
4543
  }, [
4533
4544
  o("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" })
4534
4545
  ], -1)
4535
- ])], 10, Ci),
4546
+ ])], 10, Ai),
4536
4547
  o("button", {
4537
4548
  type: "submit",
4538
4549
  class: I(["wm-compose__send", { "is-empty": !s.canSend }]),
@@ -4552,12 +4563,12 @@ function Si(e, t, n, r, i, s) {
4552
4563
  }, [
4553
4564
  o("path", { d: "M22 2L11 13M22 2l-7 20-4-9-9-4 20-7z" })
4554
4565
  ], -1)
4555
- ])], 10, Ai)
4566
+ ])], 10, Si)
4556
4567
  ])
4557
4568
  ], 34)
4558
4569
  ], 6);
4559
4570
  }
4560
- const Mi = /* @__PURE__ */ B(mi, [["render", Si], ["__scopeId", "data-v-01e81a27"]]), Ti = {
4571
+ const Ti = /* @__PURE__ */ B(fi, [["render", Mi], ["__scopeId", "data-v-01e81a27"]]), xi = {
4561
4572
  name: "WmSuggestionChips",
4562
4573
  props: {
4563
4574
  items: { type: Array, default: () => [] },
@@ -4574,8 +4585,8 @@ const Mi = /* @__PURE__ */ B(mi, [["render", Si], ["__scopeId", "data-v-01e81a27
4574
4585
  return this.items.map((e) => (e == null ? void 0 : e.label) || (e == null ? void 0 : e.text) || "").join("§");
4575
4586
  }
4576
4587
  }
4577
- }, xi = ["onClick"];
4578
- function Oi(e, t, n, r, i, s) {
4588
+ }, Oi = ["onClick"];
4589
+ function Ii(e, t, n, r, i, s) {
4579
4590
  return n.items.length ? (c(), d("div", {
4580
4591
  key: s.batchKey,
4581
4592
  class: "wm-chips"
@@ -4586,10 +4597,10 @@ function Oi(e, t, n, r, i, s) {
4586
4597
  class: "wm-chip",
4587
4598
  style: z({ animationDelay: n.baseDelay + l * n.stepDelay + "ms" }),
4588
4599
  onClick: (g) => e.$emit("select", a)
4589
- }, v(a.label), 13, xi))), 128))
4600
+ }, v(a.label), 13, Oi))), 128))
4590
4601
  ])) : w("", !0);
4591
4602
  }
4592
- const Ii = /* @__PURE__ */ B(Ti, [["render", Oi], ["__scopeId", "data-v-47ad8085"]]), Li = {
4603
+ const Li = /* @__PURE__ */ B(xi, [["render", Ii], ["__scopeId", "data-v-47ad8085"]]), Ei = {
4593
4604
  name: "WmApprovalCard",
4594
4605
  components: { AIAvatar: oe },
4595
4606
  inject: {
@@ -4633,27 +4644,27 @@ const Ii = /* @__PURE__ */ B(Ti, [["render", Oi], ["__scopeId", "data-v-47ad8085
4633
4644
  return ((e = this.rejectCallback) == null ? void 0 : e.label) || this.t("approval.reject");
4634
4645
  }
4635
4646
  }
4636
- }, Ei = { class: "wm-approval" }, Ri = { class: "wm-approval__head" }, Bi = { class: "wm-approval__icon" }, Pi = { class: "wm-approval__main" }, Ni = { class: "wm-approval__title" }, Ui = {
4647
+ }, Ri = { class: "wm-approval" }, Bi = { class: "wm-approval__head" }, Pi = { class: "wm-approval__icon" }, Ni = { class: "wm-approval__main" }, Ui = { class: "wm-approval__title" }, Di = {
4637
4648
  key: 0,
4638
4649
  class: "wm-approval__detail"
4639
- }, Di = { class: "wm-approval__actions" };
4640
- function Fi(e, t, n, r, i, s) {
4650
+ }, Fi = { class: "wm-approval__actions" };
4651
+ function ji(e, t, n, r, i, s) {
4641
4652
  const a = R("AIAvatar");
4642
- return c(), d("div", Ei, [
4643
- o("div", Ri, [
4644
- o("div", Bi, [
4653
+ return c(), d("div", Ri, [
4654
+ o("div", Bi, [
4655
+ o("div", Pi, [
4645
4656
  V(a, {
4646
4657
  size: 24,
4647
4658
  name: n.agentName,
4648
4659
  "image-url": n.agentAvatarUrl
4649
4660
  }, null, 8, ["name", "image-url"])
4650
4661
  ]),
4651
- o("div", Pi, [
4652
- o("div", Ni, v(n.action), 1),
4653
- n.detail ? (c(), d("div", Ui, v(n.detail), 1)) : w("", !0)
4662
+ o("div", Ni, [
4663
+ o("div", Ui, v(n.action), 1),
4664
+ n.detail ? (c(), d("div", Di, v(n.detail), 1)) : w("", !0)
4654
4665
  ])
4655
4666
  ]),
4656
- o("div", Di, [
4667
+ o("div", Fi, [
4657
4668
  s.rejectId ? (c(), d("button", {
4658
4669
  key: 0,
4659
4670
  type: "button",
@@ -4669,9 +4680,9 @@ function Fi(e, t, n, r, i, s) {
4669
4680
  ])
4670
4681
  ]);
4671
4682
  }
4672
- const ji = /* @__PURE__ */ B(Li, [["render", Fi], ["__scopeId", "data-v-a2bed37e"]]);
4683
+ const Hi = /* @__PURE__ */ B(Ei, [["render", ji], ["__scopeId", "data-v-a2bed37e"]]);
4673
4684
  let Be = 0;
4674
- const Hi = /* @__PURE__ */ new Set([
4685
+ const zi = /* @__PURE__ */ new Set([
4675
4686
  "text",
4676
4687
  "textarea",
4677
4688
  "number",
@@ -4679,7 +4690,7 @@ const Hi = /* @__PURE__ */ new Set([
4679
4690
  "select",
4680
4691
  "multiselect",
4681
4692
  "date"
4682
- ]), zi = {
4693
+ ]), qi = {
4683
4694
  name: "WmFormCard",
4684
4695
  components: { AIAvatar: oe },
4685
4696
  inject: {
@@ -4709,7 +4720,7 @@ const Hi = /* @__PURE__ */ new Set([
4709
4720
  // douteux.
4710
4721
  normalizedFields() {
4711
4722
  var t;
4712
- return (Array.isArray((t = this.form) == null ? void 0 : t.fields) ? this.form.fields : []).filter((n) => !(!(n != null && n.key) || !(n != null && n.label) || !Hi.has(n == null ? void 0 : n.type) || (n.type === "select" || n.type === "multiselect") && (!Array.isArray(n.options) || n.options.length === 0)));
4723
+ return (Array.isArray((t = this.form) == null ? void 0 : t.fields) ? this.form.fields : []).filter((n) => !(!(n != null && n.key) || !(n != null && n.label) || !zi.has(n == null ? void 0 : n.type) || (n.type === "select" || n.type === "multiselect") && (!Array.isArray(n.options) || n.options.length === 0)));
4713
4724
  }
4714
4725
  },
4715
4726
  created() {
@@ -4762,47 +4773,47 @@ const Hi = /* @__PURE__ */ new Set([
4762
4773
  }
4763
4774
  }
4764
4775
  }
4765
- }, qi = { class: "wm-form" }, $i = { class: "wm-form__head" }, Vi = { class: "wm-form__icon" }, Ki = { class: "wm-form__main" }, Wi = { class: "wm-form__title" }, Gi = {
4776
+ }, $i = { class: "wm-form" }, Vi = { class: "wm-form__head" }, Ki = { class: "wm-form__icon" }, Wi = { class: "wm-form__main" }, Gi = { class: "wm-form__title" }, Yi = {
4766
4777
  key: 0,
4767
4778
  class: "wm-form__detail"
4768
- }, Yi = ["for"], Xi = {
4779
+ }, Xi = ["for"], Ji = {
4769
4780
  key: 0,
4770
4781
  class: "wm-form__req",
4771
4782
  "aria-hidden": "true"
4772
- }, Ji = ["id", "onUpdate:modelValue", "placeholder", "required", "disabled"], Qi = ["id", "onUpdate:modelValue", "placeholder", "required", "disabled"], Zi = ["id", "onUpdate:modelValue", "placeholder", "required", "disabled"], ea = ["id", "onUpdate:modelValue", "required", "disabled"], ta = {
4783
+ }, Qi = ["id", "onUpdate:modelValue", "placeholder", "required", "disabled"], Zi = ["id", "onUpdate:modelValue", "placeholder", "required", "disabled"], ea = ["id", "onUpdate:modelValue", "placeholder", "required", "disabled"], ta = ["id", "onUpdate:modelValue", "required", "disabled"], na = {
4773
4784
  key: 4,
4774
4785
  class: "wm-form__bool"
4775
- }, na = ["id", "onUpdate:modelValue", "disabled"], sa = ["id", "onUpdate:modelValue", "required", "disabled"], ra = {
4786
+ }, sa = ["id", "onUpdate:modelValue", "disabled"], ra = ["id", "onUpdate:modelValue", "required", "disabled"], ia = {
4776
4787
  value: "",
4777
4788
  disabled: ""
4778
- }, ia = ["value"], aa = {
4789
+ }, aa = ["value"], oa = {
4779
4790
  key: 6,
4780
4791
  class: "wm-form__multi"
4781
- }, oa = ["value", "checked", "disabled", "onChange"], la = {
4792
+ }, la = ["value", "checked", "disabled", "onChange"], ca = {
4782
4793
  key: 0,
4783
4794
  class: "wm-form__err"
4784
- }, ca = ["disabled"], da = {
4795
+ }, da = ["disabled"], ua = {
4785
4796
  key: 0,
4786
4797
  class: "wm-form__spinner",
4787
4798
  "aria-hidden": "true"
4788
- }, ua = {
4799
+ }, ha = {
4789
4800
  key: 2,
4790
4801
  class: "wm-form__doneLbl"
4791
4802
  };
4792
- function ha(e, t, n, r, i, s) {
4803
+ function ma(e, t, n, r, i, s) {
4793
4804
  const a = R("AIAvatar");
4794
- return c(), d("div", qi, [
4795
- o("div", $i, [
4796
- o("div", Vi, [
4805
+ return c(), d("div", $i, [
4806
+ o("div", Vi, [
4807
+ o("div", Ki, [
4797
4808
  V(a, {
4798
4809
  size: 24,
4799
4810
  name: n.agentName,
4800
4811
  "image-url": n.agentAvatarUrl
4801
4812
  }, null, 8, ["name", "image-url"])
4802
4813
  ]),
4803
- o("div", Ki, [
4804
- o("div", Wi, v(n.form.title || s.t("form.title")), 1),
4805
- n.form.description ? (c(), d("div", Gi, v(n.form.description), 1)) : w("", !0)
4814
+ o("div", Wi, [
4815
+ o("div", Gi, v(n.form.title || s.t("form.title")), 1),
4816
+ n.form.description ? (c(), d("div", Yi, v(n.form.description), 1)) : w("", !0)
4806
4817
  ])
4807
4818
  ]),
4808
4819
  o("form", {
@@ -4818,8 +4829,8 @@ function ha(e, t, n, r, i, s) {
4818
4829
  class: "wm-form__label"
4819
4830
  }, [
4820
4831
  Ce(v(l.label), 1),
4821
- l.required ? (c(), d("span", Xi, "*")) : w("", !0)
4822
- ], 8, Yi),
4832
+ l.required ? (c(), d("span", Ji, "*")) : w("", !0)
4833
+ ], 8, Xi),
4823
4834
  l.type === "text" ? G((c(), d("input", {
4824
4835
  key: 0,
4825
4836
  id: `wm-f-${i._uid}-${l.key}`,
@@ -4829,7 +4840,7 @@ function ha(e, t, n, r, i, s) {
4829
4840
  placeholder: l.placeholder || "",
4830
4841
  required: l.required,
4831
4842
  disabled: n.readOnly || i.busy
4832
- }, null, 8, Ji)), [
4843
+ }, null, 8, Qi)), [
4833
4844
  [te, i.values[l.key]]
4834
4845
  ]) : l.type === "textarea" ? G((c(), d("textarea", {
4835
4846
  key: 1,
@@ -4840,7 +4851,7 @@ function ha(e, t, n, r, i, s) {
4840
4851
  placeholder: l.placeholder || "",
4841
4852
  required: l.required,
4842
4853
  disabled: n.readOnly || i.busy
4843
- }, null, 8, Qi)), [
4854
+ }, null, 8, Zi)), [
4844
4855
  [te, i.values[l.key]]
4845
4856
  ]) : l.type === "number" ? G((c(), d("input", {
4846
4857
  key: 2,
@@ -4851,7 +4862,7 @@ function ha(e, t, n, r, i, s) {
4851
4862
  placeholder: l.placeholder || "",
4852
4863
  required: l.required,
4853
4864
  disabled: n.readOnly || i.busy
4854
- }, null, 8, Zi)), [
4865
+ }, null, 8, ea)), [
4855
4866
  [
4856
4867
  te,
4857
4868
  i.values[l.key],
@@ -4866,15 +4877,15 @@ function ha(e, t, n, r, i, s) {
4866
4877
  class: "wm-form__input",
4867
4878
  required: l.required,
4868
4879
  disabled: n.readOnly || i.busy
4869
- }, null, 8, ea)), [
4880
+ }, null, 8, ta)), [
4870
4881
  [te, i.values[l.key]]
4871
- ]) : l.type === "boolean" ? (c(), d("label", ta, [
4882
+ ]) : l.type === "boolean" ? (c(), d("label", na, [
4872
4883
  G(o("input", {
4873
4884
  id: `wm-f-${i._uid}-${l.key}`,
4874
4885
  "onUpdate:modelValue": (g) => i.values[l.key] = g,
4875
4886
  type: "checkbox",
4876
4887
  disabled: n.readOnly || i.busy
4877
- }, null, 8, na), [
4888
+ }, null, 8, sa), [
4878
4889
  [Ve, i.values[l.key]]
4879
4890
  ]),
4880
4891
  o("span", null, v(l.placeholder || s.t("common.yes")), 1)
@@ -4886,14 +4897,14 @@ function ha(e, t, n, r, i, s) {
4886
4897
  required: l.required,
4887
4898
  disabled: n.readOnly || i.busy
4888
4899
  }, [
4889
- o("option", ra, v(l.placeholder || s.t("form.choose")), 1),
4900
+ o("option", ia, v(l.placeholder || s.t("form.choose")), 1),
4890
4901
  (c(!0), d(L, null, F(l.options, (g) => (c(), d("option", {
4891
4902
  key: g.value,
4892
4903
  value: g.value
4893
- }, v(g.label), 9, ia))), 128))
4894
- ], 8, sa)), [
4904
+ }, v(g.label), 9, aa))), 128))
4905
+ ], 8, ra)), [
4895
4906
  [Ke, i.values[l.key]]
4896
- ]) : l.type === "multiselect" ? (c(), d("div", aa, [
4907
+ ]) : l.type === "multiselect" ? (c(), d("div", oa, [
4897
4908
  (c(!0), d(L, null, F(l.options, (g) => (c(), d("label", {
4898
4909
  key: g.value,
4899
4910
  class: "wm-form__multiItem"
@@ -4908,25 +4919,25 @@ function ha(e, t, n, r, i, s) {
4908
4919
  g.value,
4909
4920
  k.target.checked
4910
4921
  )
4911
- }, null, 40, oa),
4922
+ }, null, 40, la),
4912
4923
  o("span", null, v(g.label), 1)
4913
4924
  ]))), 128))
4914
4925
  ])) : w("", !0)
4915
4926
  ]))), 128)),
4916
- i.error ? (c(), d("div", la, v(i.error), 1)) : w("", !0),
4917
- n.readOnly ? (c(), d("div", ua, v(s.t("form.responseSent")), 1)) : (c(), d("button", {
4927
+ i.error ? (c(), d("div", ca, v(i.error), 1)) : w("", !0),
4928
+ n.readOnly ? (c(), d("div", ha, v(s.t("form.responseSent")), 1)) : (c(), d("button", {
4918
4929
  key: 1,
4919
4930
  type: "submit",
4920
4931
  class: "wm-form__submit",
4921
4932
  disabled: i.busy
4922
4933
  }, [
4923
- i.busy ? (c(), d("span", da)) : w("", !0),
4934
+ i.busy ? (c(), d("span", ua)) : w("", !0),
4924
4935
  o("span", null, v(i.busy ? s.t("common.sending") : n.form.submit_label || s.t("common.send")), 1)
4925
- ], 8, ca))
4936
+ ], 8, da))
4926
4937
  ], 32)
4927
4938
  ]);
4928
4939
  }
4929
- const ma = /* @__PURE__ */ B(zi, [["render", ha], ["__scopeId", "data-v-fe65cc56"]]), fa = {
4940
+ const fa = /* @__PURE__ */ B(qi, [["render", ma], ["__scopeId", "data-v-fe65cc56"]]), _a = {
4930
4941
  name: "WmFeedback",
4931
4942
  inject: {
4932
4943
  // Translator shared by the Messenger shell; French fallback when
@@ -4960,13 +4971,13 @@ const ma = /* @__PURE__ */ B(zi, [["render", ha], ["__scopeId", "data-v-fe65cc56
4960
4971
  !this.sel || this.busy || this.$emit("submit", { rating: this.sel });
4961
4972
  }
4962
4973
  }
4963
- }, _a = { class: "wm-fb" }, ga = { class: "wm-fb__title" }, pa = { class: "wm-fb__sub" }, va = { class: "wm-fb__row" }, ya = ["onClick"], wa = { class: "wm-fb__emoji" }, ba = { class: "wm-fb__label" }, ka = ["disabled"], Ca = {
4974
+ }, ga = { class: "wm-fb" }, pa = { class: "wm-fb__title" }, va = { class: "wm-fb__sub" }, ya = { class: "wm-fb__row" }, wa = ["onClick"], ba = { class: "wm-fb__emoji" }, ka = { class: "wm-fb__label" }, Ca = ["disabled"], Aa = {
4964
4975
  key: 1,
4965
4976
  class: "wm-fb__done"
4966
- }, Aa = { class: "wm-fb__doneTitle" }, Sa = { class: "wm-fb__doneSub" };
4967
- function Ma(e, t, n, r, i, s) {
4968
- return c(), d("div", _a, [
4969
- n.done ? (c(), d("div", Ca, [
4977
+ }, Sa = { class: "wm-fb__doneTitle" }, Ma = { class: "wm-fb__doneSub" };
4978
+ function Ta(e, t, n, r, i, s) {
4979
+ return c(), d("div", ga, [
4980
+ n.done ? (c(), d("div", Aa, [
4970
4981
  t[1] || (t[1] = o("div", { class: "wm-fb__check" }, [
4971
4982
  o("svg", {
4972
4983
  width: "16",
@@ -4982,32 +4993,32 @@ function Ma(e, t, n, r, i, s) {
4982
4993
  o("path", { d: "M20 6L9 17l-5-5" })
4983
4994
  ])
4984
4995
  ], -1)),
4985
- o("div", Aa, v(s.t("feedback.doneTitle")), 1),
4986
- o("div", Sa, v(s.t("feedback.doneSubtitle")), 1)
4996
+ o("div", Sa, v(s.t("feedback.doneTitle")), 1),
4997
+ o("div", Ma, v(s.t("feedback.doneSubtitle")), 1)
4987
4998
  ])) : (c(), d(L, { key: 0 }, [
4988
- o("div", ga, v(s.t("feedback.question")), 1),
4989
- o("div", pa, v(s.t("feedback.subtitle")), 1),
4990
- o("div", va, [
4999
+ o("div", pa, v(s.t("feedback.question")), 1),
5000
+ o("div", va, v(s.t("feedback.subtitle")), 1),
5001
+ o("div", ya, [
4991
5002
  (c(!0), d(L, null, F(s.options, (a) => (c(), d("button", {
4992
5003
  key: a.v,
4993
5004
  type: "button",
4994
5005
  class: I(["wm-fb__opt", { "is-selected": i.sel === a.v }]),
4995
5006
  onClick: (l) => i.sel = a.v
4996
5007
  }, [
4997
- o("span", wa, v(a.e), 1),
4998
- o("span", ba, v(a.l), 1)
4999
- ], 10, ya))), 128))
5008
+ o("span", ba, v(a.e), 1),
5009
+ o("span", ka, v(a.l), 1)
5010
+ ], 10, wa))), 128))
5000
5011
  ]),
5001
5012
  o("button", {
5002
5013
  type: "button",
5003
5014
  class: "wm-fb__send",
5004
5015
  disabled: !i.sel || n.busy,
5005
5016
  onClick: t[0] || (t[0] = (...a) => s.onSend && s.onSend(...a))
5006
- }, v(n.busy ? s.t("common.sending") : s.t("feedback.submit")), 9, ka)
5017
+ }, v(n.busy ? s.t("common.sending") : s.t("feedback.submit")), 9, Ca)
5007
5018
  ], 64))
5008
5019
  ]);
5009
5020
  }
5010
- const Ta = /* @__PURE__ */ B(fa, [["render", Ma], ["__scopeId", "data-v-9b630564"]]), xa = {
5021
+ const xa = /* @__PURE__ */ B(_a, [["render", Ta], ["__scopeId", "data-v-9b630564"]]), Oa = {
5011
5022
  name: "WmMoreMenu",
5012
5023
  inject: {
5013
5024
  // Translator shared by the Messenger shell; French fallback when
@@ -5042,24 +5053,24 @@ const Ta = /* @__PURE__ */ B(fa, [["render", Ma], ["__scopeId", "data-v-9b630564
5042
5053
  this.soundOn = !this.soundOn, this.$emit("sound-toggle", this.soundOn);
5043
5054
  }
5044
5055
  }
5045
- }, Oa = { class: "wm-mm" }, Ia = {
5056
+ }, Ia = { class: "wm-mm" }, La = {
5046
5057
  class: "wm-mm__pop",
5047
5058
  role: "menu"
5048
- }, La = {
5059
+ }, Ea = {
5049
5060
  key: 0,
5050
5061
  class: "wm-mm__section"
5051
- }, Ea = { class: "wm-mm__label" }, Ra = { class: "wm-mm__label" }, Ba = {
5062
+ }, Ra = { class: "wm-mm__label" }, Ba = { class: "wm-mm__label" }, Pa = {
5052
5063
  key: 1,
5053
5064
  class: "wm-mm__sep"
5054
- }, Pa = { class: "wm-mm__section" }, Na = { class: "wm-mm__label" }, Ua = { class: "wm-mm__section" }, Da = { class: "wm-mm__label" }, Fa = { class: "wm-mm__label" };
5055
- function ja(e, t, n, r, i, s) {
5056
- return c(), d("div", Oa, [
5065
+ }, Na = { class: "wm-mm__section" }, Ua = { class: "wm-mm__label" }, Da = { class: "wm-mm__section" }, Fa = { class: "wm-mm__label" }, ja = { class: "wm-mm__label" };
5066
+ function Ha(e, t, n, r, i, s) {
5067
+ return c(), d("div", Ia, [
5057
5068
  o("div", {
5058
5069
  class: "wm-mm__scrim",
5059
5070
  onClick: t[0] || (t[0] = (a) => e.$emit("close"))
5060
5071
  }),
5061
- o("div", Ia, [
5062
- n.canRename || n.canExport ? (c(), d("div", La, [
5072
+ o("div", La, [
5073
+ n.canRename || n.canExport ? (c(), d("div", Ea, [
5063
5074
  n.canRename ? (c(), d("button", {
5064
5075
  key: 0,
5065
5076
  type: "button",
@@ -5082,7 +5093,7 @@ function ja(e, t, n, r, i, s) {
5082
5093
  o("path", { d: "M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4 12.5-12.5z" })
5083
5094
  ])
5084
5095
  ], -1)),
5085
- o("span", Ea, v(s.t("moreMenu.editTitle")), 1)
5096
+ o("span", Ra, v(s.t("moreMenu.editTitle")), 1)
5086
5097
  ])) : w("", !0),
5087
5098
  n.canExport ? (c(), d("button", {
5088
5099
  key: 1,
@@ -5105,12 +5116,12 @@ function ja(e, t, n, r, i, s) {
5105
5116
  o("path", { d: "M4 12v8a2 2 0 002 2h12a2 2 0 002-2v-8M16 6l-4-4-4 4M12 2v13" })
5106
5117
  ])
5107
5118
  ], -1)),
5108
- o("span", Ra, v(s.t("moreMenu.exportTranscript")), 1),
5119
+ o("span", Ba, v(s.t("moreMenu.exportTranscript")), 1),
5109
5120
  t[8] || (t[8] = o("span", { class: "wm-mm__hint" }, ".txt", -1))
5110
5121
  ])) : w("", !0)
5111
5122
  ])) : w("", !0),
5112
- n.canRename || n.canExport ? (c(), d("div", Ba)) : w("", !0),
5113
- o("div", Pa, [
5123
+ n.canRename || n.canExport ? (c(), d("div", Pa)) : w("", !0),
5124
+ o("div", Na, [
5114
5125
  o("button", {
5115
5126
  type: "button",
5116
5127
  class: "wm-mm__item",
@@ -5132,7 +5143,7 @@ function ja(e, t, n, r, i, s) {
5132
5143
  o("path", { d: "M15.54 8.46a5 5 0 010 7.07M19.07 4.93a10 10 0 010 14.14" })
5133
5144
  ])
5134
5145
  ], -1)),
5135
- o("span", Na, v(s.t("moreMenu.sound")), 1),
5146
+ o("span", Ua, v(s.t("moreMenu.sound")), 1),
5136
5147
  o("span", {
5137
5148
  class: I(["wm-mm__toggle", { "wm-mm__toggle--on": i.soundOn }])
5138
5149
  }, [...t[9] || (t[9] = [
@@ -5141,7 +5152,7 @@ function ja(e, t, n, r, i, s) {
5141
5152
  ])
5142
5153
  ]),
5143
5154
  t[13] || (t[13] = o("div", { class: "wm-mm__sep" }, null, -1)),
5144
- o("div", Ua, [
5155
+ o("div", Da, [
5145
5156
  n.statusUrl ? (c(), d("button", {
5146
5157
  key: 0,
5147
5158
  type: "button",
@@ -5163,7 +5174,7 @@ function ja(e, t, n, r, i, s) {
5163
5174
  o("path", { d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zM10 6v4l3 2" })
5164
5175
  ])
5165
5176
  ], -1)),
5166
- o("span", Da, v(s.t("moreMenu.serviceStatus")), 1)
5177
+ o("span", Fa, v(s.t("moreMenu.serviceStatus")), 1)
5167
5178
  ])) : w("", !0),
5168
5179
  n.helpUrl ? (c(), d("button", {
5169
5180
  key: 1,
@@ -5186,13 +5197,13 @@ function ja(e, t, n, r, i, s) {
5186
5197
  o("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" })
5187
5198
  ])
5188
5199
  ], -1)),
5189
- o("span", Fa, v(s.t("moreMenu.helpCenter")), 1)
5200
+ o("span", ja, v(s.t("moreMenu.helpCenter")), 1)
5190
5201
  ])) : w("", !0)
5191
5202
  ])
5192
5203
  ])
5193
5204
  ]);
5194
5205
  }
5195
- const Ha = /* @__PURE__ */ B(xa, [["render", ja], ["__scopeId", "data-v-4cf6d578"]]), za = {
5206
+ const za = /* @__PURE__ */ B(Oa, [["render", Ha], ["__scopeId", "data-v-4cf6d578"]]), qa = {
5196
5207
  name: "WmRenameDialog",
5197
5208
  inject: {
5198
5209
  // Translator shared by the Messenger shell; French fallback when
@@ -5234,20 +5245,20 @@ const Ha = /* @__PURE__ */ B(xa, [["render", ja], ["__scopeId", "data-v-4cf6d578
5234
5245
  this.canSubmit && this.$emit("submit", this.value.trim());
5235
5246
  }
5236
5247
  }
5237
- }, qa = { class: "wm-dialog" }, $a = {
5248
+ }, $a = { class: "wm-dialog" }, Va = {
5238
5249
  class: "wm-dialog__card",
5239
5250
  role: "dialog",
5240
5251
  "aria-modal": "true"
5241
- }, Va = { class: "wm-dialog__head" }, Ka = { class: "wm-dialog__title" }, Wa = ["aria-label"], Ga = { class: "wm-dialog__body" }, Ya = ["placeholder"], Xa = { class: "wm-dialog__actions" }, Ja = ["disabled"];
5242
- function Qa(e, t, n, r, i, s) {
5243
- return c(), d("div", qa, [
5252
+ }, Ka = { class: "wm-dialog__head" }, Wa = { class: "wm-dialog__title" }, Ga = ["aria-label"], Ya = { class: "wm-dialog__body" }, Xa = ["placeholder"], Ja = { class: "wm-dialog__actions" }, Qa = ["disabled"];
5253
+ function Za(e, t, n, r, i, s) {
5254
+ return c(), d("div", $a, [
5244
5255
  o("div", {
5245
5256
  class: "wm-dialog__scrim",
5246
5257
  onClick: t[0] || (t[0] = (a) => e.$emit("close"))
5247
5258
  }),
5248
- o("div", $a, [
5249
- o("div", Va, [
5250
- o("div", Ka, v(n.title || s.t("rename.title")), 1),
5259
+ o("div", Va, [
5260
+ o("div", Ka, [
5261
+ o("div", Wa, v(n.title || s.t("rename.title")), 1),
5251
5262
  o("button", {
5252
5263
  type: "button",
5253
5264
  class: "wm-dialog__close",
@@ -5267,9 +5278,9 @@ function Qa(e, t, n, r, i, s) {
5267
5278
  }, [
5268
5279
  o("path", { d: "M18 6L6 18M6 6l12 12" })
5269
5280
  ], -1)
5270
- ])], 8, Wa)
5281
+ ])], 8, Ga)
5271
5282
  ]),
5272
- o("div", Ga, [
5283
+ o("div", Ya, [
5273
5284
  G(o("input", {
5274
5285
  ref: "input",
5275
5286
  "onUpdate:modelValue": t[2] || (t[2] = (a) => i.value = a),
@@ -5281,11 +5292,11 @@ function Qa(e, t, n, r, i, s) {
5281
5292
  t[3] || (t[3] = fe(X((...a) => s.onSubmit && s.onSubmit(...a), ["prevent"]), ["enter"])),
5282
5293
  t[4] || (t[4] = fe(X((a) => e.$emit("close"), ["prevent"]), ["esc"]))
5283
5294
  ]
5284
- }, null, 40, Ya), [
5295
+ }, null, 40, Xa), [
5285
5296
  [te, i.value]
5286
5297
  ])
5287
5298
  ]),
5288
- o("div", Xa, [
5299
+ o("div", Ja, [
5289
5300
  o("button", {
5290
5301
  type: "button",
5291
5302
  class: "wm-dialog__btn",
@@ -5296,26 +5307,26 @@ function Qa(e, t, n, r, i, s) {
5296
5307
  class: "wm-dialog__btn wm-dialog__btn--primary",
5297
5308
  disabled: !s.canSubmit,
5298
5309
  onClick: t[6] || (t[6] = (...a) => s.onSubmit && s.onSubmit(...a))
5299
- }, v(s.t("common.save")), 9, Ja)
5310
+ }, v(s.t("common.save")), 9, Qa)
5300
5311
  ])
5301
5312
  ])
5302
5313
  ]);
5303
5314
  }
5304
- const Za = /* @__PURE__ */ B(za, [["render", Qa], ["__scopeId", "data-v-6d5f94a8"]]), Pe = "ww-messenger-tokens", eo = {
5315
+ const eo = /* @__PURE__ */ B(qa, [["render", Za], ["__scopeId", "data-v-6d5f94a8"]]), Pe = "ww-messenger-tokens", to = {
5305
5316
  name: "Messenger",
5306
5317
  components: {
5307
5318
  Launcher: Kt,
5308
5319
  Header: vn,
5309
- Onboarding: Qn,
5310
- History: fs,
5311
- MessageList: oi,
5312
- Composer: Mi,
5313
- SuggestionChips: Ii,
5314
- ApprovalCard: ji,
5315
- FormCard: ma,
5316
- Feedback: Ta,
5317
- MoreMenu: Ha,
5318
- RenameDialog: Za
5320
+ Onboarding: Zn,
5321
+ History: _s,
5322
+ MessageList: li,
5323
+ Composer: Ti,
5324
+ SuggestionChips: Li,
5325
+ ApprovalCard: Hi,
5326
+ FormCard: fa,
5327
+ Feedback: xa,
5328
+ MoreMenu: za,
5329
+ RenameDialog: eo
5319
5330
  },
5320
5331
  mixins: [
5321
5332
  pt,
@@ -6355,28 +6366,28 @@ const Za = /* @__PURE__ */ B(za, [["render", Qa], ["__scopeId", "data-v-6d5f94a8
6355
6366
  }
6356
6367
  }
6357
6368
  }
6358
- }, to = {
6369
+ }, no = {
6359
6370
  key: 0,
6360
6371
  class: "wm-loading",
6361
6372
  "aria-busy": "true",
6362
6373
  "aria-live": "polite"
6363
- }, no = ["aria-label"], so = {
6374
+ }, so = ["aria-label"], ro = {
6364
6375
  key: 0,
6365
6376
  class: "wm-state"
6366
- }, ro = { class: "wm-state__err" }, io = { class: "wm-state__errTitle" }, ao = { class: "wm-state__errSub" }, oo = { class: "wm-bottom" }, lo = {
6377
+ }, io = { class: "wm-state__err" }, ao = { class: "wm-state__errTitle" }, oo = { class: "wm-state__errSub" }, lo = { class: "wm-bottom" }, co = {
6367
6378
  key: 0,
6368
6379
  ref: "floatEl",
6369
6380
  class: "wm-float"
6370
- }, co = {
6381
+ }, uo = {
6371
6382
  key: 1,
6372
6383
  class: "wm-actionWait",
6373
6384
  role: "status",
6374
6385
  "aria-live": "polite"
6375
- }, uo = { class: "wm-actionWait__lbl" }, ho = {
6386
+ }, ho = { class: "wm-actionWait__lbl" }, mo = {
6376
6387
  key: 2,
6377
6388
  class: "wm-attached"
6378
- }, mo = ["aria-label", "onClick"];
6379
- function fo(e, t, n, r, i, s) {
6389
+ }, fo = ["aria-label", "onClick"];
6390
+ function _o(e, t, n, r, i, s) {
6380
6391
  const a = R("Launcher"), l = R("Header"), g = R("History"), k = R("Onboarding"), b = R("MessageList"), x = R("ApprovalCard"), E = R("FormCard"), A = R("Feedback"), q = R("SuggestionChips"), M = R("Composer"), U = R("MoreMenu"), D = R("RenameDialog");
6381
6392
  return c(), d("div", {
6382
6393
  class: I(["wm-root", `wm-root--${n.displayMode}`]),
@@ -6402,7 +6413,7 @@ function fo(e, t, n, r, i, s) {
6402
6413
  "aria-label": "Messenger",
6403
6414
  onClick: t[6] || (t[6] = (...N) => s.onPanelClick && s.onPanelClick(...N))
6404
6415
  }, [
6405
- !s.ready && !s.error ? (c(), d("div", to, [
6416
+ !s.ready && !s.error ? (c(), d("div", no, [
6406
6417
  s.isEmbedded ? w("", !0) : (c(), d("button", {
6407
6418
  key: 0,
6408
6419
  type: "button",
@@ -6423,7 +6434,7 @@ function fo(e, t, n, r, i, s) {
6423
6434
  }, [
6424
6435
  o("path", { d: "M18 6L6 18M6 6l12 12" })
6425
6436
  ], -1)
6426
- ])], 8, no)),
6437
+ ])], 8, so)),
6427
6438
  t[8] || (t[8] = o("div", {
6428
6439
  class: "wm-loading__spinner",
6429
6440
  "aria-hidden": "true"
@@ -6443,8 +6454,8 @@ function fo(e, t, n, r, i, s) {
6443
6454
  onMore: s.toggleMore,
6444
6455
  onClose: s.close
6445
6456
  }, null, 8, ["title", "team-members", "response-label", "show-identity", "show-back", "show-close", "more-active", "agent-name", "agent-avatar-url", "onBack", "onMore", "onClose"]),
6446
- s.error ? (c(), d("div", so, [
6447
- o("div", ro, [
6457
+ s.error ? (c(), d("div", ro, [
6458
+ o("div", io, [
6448
6459
  t[9] || (t[9] = o("div", { class: "wm-state__errIcon" }, [
6449
6460
  o("svg", {
6450
6461
  width: "14",
@@ -6461,8 +6472,8 @@ function fo(e, t, n, r, i, s) {
6461
6472
  ])
6462
6473
  ], -1)),
6463
6474
  o("div", null, [
6464
- o("div", io, v(s.t("error.connectionFailed")), 1),
6465
- o("div", ao, v(s.error), 1)
6475
+ o("div", ao, v(s.t("error.connectionFailed")), 1),
6476
+ o("div", oo, v(s.error), 1)
6466
6477
  ])
6467
6478
  ])
6468
6479
  ])) : !s.currentConv && i.showHistory ? (c(), P(g, {
@@ -6484,8 +6495,8 @@ function fo(e, t, n, r, i, s) {
6484
6495
  "ai-agent-avatar-url": s.agentAvatarUrl,
6485
6496
  onLoadMore: s.onLoadMore
6486
6497
  }, 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"]),
6487
- o("div", oo, [
6488
- s.floatVisible ? (c(), d("div", lo, [
6498
+ o("div", lo, [
6499
+ s.floatVisible ? (c(), d("div", co, [
6489
6500
  s.approvalReady ? (c(), P(x, {
6490
6501
  key: 0,
6491
6502
  action: s.approvalTitle,
@@ -6511,12 +6522,12 @@ function fo(e, t, n, r, i, s) {
6511
6522
  onSelect: s.onSuggestion
6512
6523
  }, null, 8, ["items", "onSelect"]))
6513
6524
  ], 512)) : w("", !0),
6514
- s.actionInFlight ? (c(), d("div", co, [
6525
+ s.actionInFlight ? (c(), d("div", uo, [
6515
6526
  t[10] || (t[10] = o("span", {
6516
6527
  class: "wm-actionWait__spinner",
6517
6528
  "aria-hidden": "true"
6518
6529
  }, null, -1)),
6519
- o("span", uo, v(s.t("action.inProgress", {
6530
+ o("span", ho, v(s.t("action.inProgress", {
6520
6531
  name: s.actionInFlightName
6521
6532
  })), 1)
6522
6533
  ])) : (c(), P(M, {
@@ -6550,7 +6561,7 @@ function fo(e, t, n, r, i, s) {
6550
6561
  onClose: t[4] || (t[4] = (N) => i.renameDialogOpen = !1),
6551
6562
  onSubmit: s.onRenameSubmit
6552
6563
  }, null, 8, ["initial-value", "title", "onSubmit"])) : w("", !0),
6553
- i.pendingAttachments.length ? (c(), d("div", ho, [
6564
+ i.pendingAttachments.length ? (c(), d("div", mo, [
6554
6565
  (c(!0), d(L, null, F(i.pendingAttachments, (N, K) => (c(), d("div", {
6555
6566
  key: K,
6556
6567
  class: "wm-attached__chip"
@@ -6587,7 +6598,7 @@ function fo(e, t, n, r, i, s) {
6587
6598
  }, [
6588
6599
  o("path", { d: "M18 6L6 18M6 6l12 12" })
6589
6600
  ], -1)
6590
- ])], 8, mo)
6601
+ ])], 8, fo)
6591
6602
  ]))), 128))
6592
6603
  ])) : w("", !0)
6593
6604
  ], 64)) : (c(), P(k, {
@@ -6619,53 +6630,53 @@ function fo(e, t, n, r, i, s) {
6619
6630
  ], 6)) : w("", !0)
6620
6631
  ], 6);
6621
6632
  }
6622
- const po = /* @__PURE__ */ B(eo, [["render", fo], ["__scopeId", "data-v-77e30aba"]]), vo = "0.5.51";
6633
+ const vo = /* @__PURE__ */ B(to, [["render", _o], ["__scopeId", "data-v-77e30aba"]]), yo = "0.5.53";
6623
6634
  export {
6624
6635
  oe as AIAvatar,
6625
6636
  ye as AVATAR_COLORS,
6626
- Ms as ActionResult,
6627
- ji as ApprovalCard,
6628
- Ps as ArtifactFormResponse,
6629
- Gs as ArtifactInfoCard,
6630
- mr as ArtifactRenderer,
6631
- cr as ArtifactTicket,
6632
- Sr as AttachmentPreview,
6633
- Or as Bubble,
6634
- Mi as Composer,
6637
+ Ts as ActionResult,
6638
+ Hi as ApprovalCard,
6639
+ Ns as ArtifactFormResponse,
6640
+ Ys as ArtifactInfoCard,
6641
+ fr as ArtifactRenderer,
6642
+ dr as ArtifactTicket,
6643
+ Mr as AttachmentPreview,
6644
+ Ir as Bubble,
6645
+ Ti as Composer,
6635
6646
  st as DEFAULT_BASE_URL,
6636
6647
  ce as DEFAULT_LANGUAGE,
6637
- Ta as Feedback,
6638
- ma as FormCard,
6648
+ xa as Feedback,
6649
+ fa as FormCard,
6639
6650
  vn as Header,
6640
6651
  ge as HumanAvatar,
6641
6652
  Kt as Launcher,
6642
6653
  Te as MEDIA_RECORDER_SUPPORTED,
6643
- oi as MessageList,
6644
- po as Messenger,
6645
- Ha as MoreMenu,
6646
- Qn as Onboarding,
6654
+ li as MessageList,
6655
+ vo as Messenger,
6656
+ za as MoreMenu,
6657
+ Zn as Onboarding,
6647
6658
  _e as SCREEN_CAPTURE_SUPPORTED,
6648
6659
  ct as SUPPORTED_LANGUAGES,
6649
- Ii as SuggestionChips,
6660
+ Li as SuggestionChips,
6650
6661
  rn as TeamAvatars,
6651
- Rr as Typing,
6652
- vo as VERSION,
6662
+ Br as Typing,
6663
+ yo as VERSION,
6653
6664
  Ae as avatarColor,
6654
6665
  Se as avatarInitials,
6655
- ci as captureScreenshotFile,
6666
+ di as captureScreenshotFile,
6656
6667
  H as colors,
6657
6668
  tt as createStore,
6658
6669
  j as createTranslator,
6659
6670
  Je as createTransport,
6660
6671
  ne as dateLocale,
6661
- po as default,
6672
+ vo as default,
6662
6673
  be as formatTime,
6663
- go as guessAttachmentKind,
6664
- li as pickRecorderMime,
6674
+ po as guessAttachmentKind,
6675
+ ci as pickRecorderMime,
6665
6676
  He as renderInlineMarkdown,
6666
6677
  ht as renderMarkdown,
6667
6678
  Me as resolveLanguage,
6668
- ui as startScreenRecording,
6679
+ hi as startScreenRecording,
6669
6680
  nt as tokensCss,
6670
6681
  et as uuid,
6671
6682
  et as v4