@_solaris/messenger-widget 0.5.41 → 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/iframe/iframe.css +1 -1
- package/dist/iframe/iframe.js +6 -6
- package/dist/messenger.cjs +1 -1
- package/dist/messenger.js +386 -391
- package/dist/snippet.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/messenger.js
CHANGED
|
@@ -2329,10 +2329,7 @@ const Le = {
|
|
|
2329
2329
|
});
|
|
2330
2330
|
}
|
|
2331
2331
|
}
|
|
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 = {
|
|
2333
|
-
key: 0,
|
|
2334
|
-
class: "wm-onb__section wm-onb__section--card"
|
|
2335
|
-
}, Cn = { class: "wm-onb__section-title" }, An = ["onClick"], Sn = { class: "wm-onb__card-icon" }, Mn = ["aria-label"], 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 = {
|
|
2336
2333
|
key: 1,
|
|
2337
2334
|
width: "18",
|
|
2338
2335
|
height: "18",
|
|
@@ -2343,10 +2340,10 @@ const Le = {
|
|
|
2343
2340
|
"stroke-linecap": "round",
|
|
2344
2341
|
"stroke-linejoin": "round",
|
|
2345
2342
|
"aria-hidden": "true"
|
|
2346
|
-
},
|
|
2343
|
+
}, Mn = ["d"], Tn = { class: "wm-onb__card-body" }, xn = { class: "wm-onb__card-title" }, On = {
|
|
2347
2344
|
key: 0,
|
|
2348
2345
|
class: "wm-onb__card-sub"
|
|
2349
|
-
},
|
|
2346
|
+
}, In = {
|
|
2350
2347
|
key: 0,
|
|
2351
2348
|
class: "wm-onb__card-ext",
|
|
2352
2349
|
width: "11",
|
|
@@ -2358,29 +2355,29 @@ const Le = {
|
|
|
2358
2355
|
"stroke-linecap": "round",
|
|
2359
2356
|
"stroke-linejoin": "round",
|
|
2360
2357
|
"aria-hidden": "true"
|
|
2361
|
-
},
|
|
2358
|
+
}, Ln = {
|
|
2362
2359
|
key: 1,
|
|
2363
2360
|
class: "wm-onb__section wm-onb__section--card"
|
|
2364
|
-
},
|
|
2361
|
+
}, En = { class: "wm-onb__section-title" }, Bn = { class: "wm-onb__alertList" }, Rn = ["onClick"], Nn = {
|
|
2365
2362
|
key: 0,
|
|
2366
2363
|
class: "wm-onb__defaultAvatar"
|
|
2367
|
-
},
|
|
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 = {
|
|
2368
2365
|
key: 0,
|
|
2369
2366
|
class: "wm-onb__alert-time"
|
|
2370
|
-
},
|
|
2367
|
+
}, zn = { class: "wm-onb__alert-resume" }, qn = {
|
|
2371
2368
|
key: 2,
|
|
2372
2369
|
class: "wm-onb__section wm-onb__section--card"
|
|
2373
|
-
},
|
|
2370
|
+
}, Vn = { class: "wm-onb__section-title" }, Kn = { class: "wm-onb__search" }, $n = ["placeholder", "aria-label"], Wn = { class: "wm-onb__list" }, Gn = ["onClick"], Yn = {
|
|
2374
2371
|
key: 0,
|
|
2375
2372
|
class: "wm-onb__defaultAvatar"
|
|
2376
|
-
},
|
|
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 = {
|
|
2377
2374
|
key: 0,
|
|
2378
2375
|
class: "wm-onb__thread-time"
|
|
2379
|
-
},
|
|
2376
|
+
}, ns = {
|
|
2380
2377
|
key: 0,
|
|
2381
2378
|
class: "wm-onb__empty"
|
|
2382
2379
|
};
|
|
2383
|
-
function
|
|
2380
|
+
function ss(e, t, n, i, r, s) {
|
|
2384
2381
|
const o = R("AIAvatar");
|
|
2385
2382
|
return c(), d("div", fn, [
|
|
2386
2383
|
a("div", _n, [
|
|
@@ -2466,46 +2463,44 @@ function is(e, t, n, i, r, s) {
|
|
|
2466
2463
|
], -1))
|
|
2467
2464
|
], 8, wn)
|
|
2468
2465
|
]),
|
|
2469
|
-
n.quickLinks.length ? (c(), d("div",
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
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)
|
|
2473
2476
|
}, [
|
|
2474
|
-
(
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
l.
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
a("path", { d: "M7 17L17 7M9 7h8v8" }, null, -1)
|
|
2502
|
-
])])) : y("", !0)
|
|
2503
|
-
], 14, An))), 128))
|
|
2504
|
-
], 2)
|
|
2505
|
-
])) : y("", !0),
|
|
2506
|
-
s.unreadThreads.length ? (c(), d("div", Bn, [
|
|
2507
|
-
a("div", Rn, v(s.t("onboarding.unreadConversations")), 1),
|
|
2508
|
-
a("div", Nn, [
|
|
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, [
|
|
2509
2504
|
(c(!0), d(E, null, F(s.unreadThreads, (l) => (c(), d("button", {
|
|
2510
2505
|
key: l.id,
|
|
2511
2506
|
type: "button",
|
|
@@ -2515,7 +2510,7 @@ function is(e, t, n, i, r, s) {
|
|
|
2515
2510
|
a("span", {
|
|
2516
2511
|
class: O(["wm-onb__alert-avatar", s.avatarWrapperClass(l)])
|
|
2517
2512
|
}, [
|
|
2518
|
-
s.isDefaultAvatar(l) ? (c(), d("span",
|
|
2513
|
+
s.isDefaultAvatar(l) ? (c(), d("span", Nn, [...t[6] || (t[6] = [
|
|
2519
2514
|
a("svg", {
|
|
2520
2515
|
width: "20",
|
|
2521
2516
|
height: "20",
|
|
@@ -2536,25 +2531,25 @@ function is(e, t, n, i, r, s) {
|
|
|
2536
2531
|
a("span", {
|
|
2537
2532
|
class: "wm-onb__alert-dot",
|
|
2538
2533
|
"aria-label": s.t("onboarding.unread")
|
|
2539
|
-
}, null, 8,
|
|
2534
|
+
}, null, 8, Pn)
|
|
2540
2535
|
], 2),
|
|
2541
|
-
a("span",
|
|
2542
|
-
a("span",
|
|
2536
|
+
a("span", Un, [
|
|
2537
|
+
a("span", Fn, v(l.title), 1),
|
|
2543
2538
|
a("span", {
|
|
2544
2539
|
class: "wm-onb__alert-preview",
|
|
2545
2540
|
innerHTML: s.renderPreview(l.preview)
|
|
2546
|
-
}, null, 8,
|
|
2541
|
+
}, null, 8, Dn)
|
|
2547
2542
|
]),
|
|
2548
|
-
a("span",
|
|
2549
|
-
s.formatTs(l._ts) ? (c(), d("span",
|
|
2550
|
-
a("span",
|
|
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)
|
|
2551
2546
|
])
|
|
2552
|
-
], 8,
|
|
2547
|
+
], 8, Rn))), 128))
|
|
2553
2548
|
])
|
|
2554
2549
|
])) : y("", !0),
|
|
2555
|
-
n.openThreads.length ? (c(), d("div",
|
|
2556
|
-
a("div",
|
|
2557
|
-
a("div",
|
|
2550
|
+
n.openThreads.length ? (c(), d("div", qn, [
|
|
2551
|
+
a("div", Vn, v(s.t("onboarding.recentConversations")), 1),
|
|
2552
|
+
a("div", Kn, [
|
|
2558
2553
|
t[7] || (t[7] = a("span", { class: "wm-onb__searchIcon" }, [
|
|
2559
2554
|
a("svg", {
|
|
2560
2555
|
width: "12",
|
|
@@ -2575,11 +2570,11 @@ function is(e, t, n, i, r, s) {
|
|
|
2575
2570
|
type: "text",
|
|
2576
2571
|
placeholder: s.t("onboarding.search"),
|
|
2577
2572
|
"aria-label": s.t("onboarding.search")
|
|
2578
|
-
}, null, 8,
|
|
2573
|
+
}, null, 8, $n), [
|
|
2579
2574
|
[X, r.query]
|
|
2580
2575
|
])
|
|
2581
2576
|
]),
|
|
2582
|
-
a("div",
|
|
2577
|
+
a("div", Wn, [
|
|
2583
2578
|
(c(!0), d(E, null, F(s.filteredThreads, (l) => (c(), d("button", {
|
|
2584
2579
|
key: l.id,
|
|
2585
2580
|
type: "button",
|
|
@@ -2589,7 +2584,7 @@ function is(e, t, n, i, r, s) {
|
|
|
2589
2584
|
a("span", {
|
|
2590
2585
|
class: O(["wm-onb__thread-avatar", s.avatarWrapperClass(l)])
|
|
2591
2586
|
}, [
|
|
2592
|
-
s.isDefaultAvatar(l) ? (c(), d("span",
|
|
2587
|
+
s.isDefaultAvatar(l) ? (c(), d("span", Yn, [...t[8] || (t[8] = [
|
|
2593
2588
|
a("svg", {
|
|
2594
2589
|
width: "20",
|
|
2595
2590
|
height: "20",
|
|
@@ -2611,17 +2606,17 @@ function is(e, t, n, i, r, s) {
|
|
|
2611
2606
|
key: 2,
|
|
2612
2607
|
class: "wm-onb__thread-dot",
|
|
2613
2608
|
"aria-label": s.t("onboarding.unread")
|
|
2614
|
-
}, null, 8,
|
|
2609
|
+
}, null, 8, Jn)) : y("", !0)
|
|
2615
2610
|
], 2),
|
|
2616
|
-
a("span",
|
|
2617
|
-
a("span",
|
|
2611
|
+
a("span", Qn, [
|
|
2612
|
+
a("span", Xn, v(l.title), 1),
|
|
2618
2613
|
a("span", {
|
|
2619
2614
|
class: "wm-onb__thread-preview",
|
|
2620
2615
|
innerHTML: s.renderPreview(l.preview)
|
|
2621
|
-
}, null, 8,
|
|
2616
|
+
}, null, 8, Zn)
|
|
2622
2617
|
]),
|
|
2623
|
-
a("span",
|
|
2624
|
-
s.formatTs(l._ts) ? (c(), d("span",
|
|
2618
|
+
a("span", es, [
|
|
2619
|
+
s.formatTs(l._ts) ? (c(), d("span", ts, v(s.formatTs(l._ts)), 1)) : y("", !0),
|
|
2625
2620
|
t[9] || (t[9] = a("svg", {
|
|
2626
2621
|
width: "14",
|
|
2627
2622
|
height: "14",
|
|
@@ -2637,17 +2632,17 @@ function is(e, t, n, i, r, s) {
|
|
|
2637
2632
|
a("path", { d: "M5 12h14M13 5l7 7-7 7" })
|
|
2638
2633
|
], -1))
|
|
2639
2634
|
])
|
|
2640
|
-
], 10,
|
|
2641
|
-
s.filteredThreads.length ? y("", !0) : (c(), d("div",
|
|
2635
|
+
], 10, Gn))), 128)),
|
|
2636
|
+
s.filteredThreads.length ? y("", !0) : (c(), d("div", ns, v(s.t("onboarding.noResults", { query: r.query })), 1))
|
|
2642
2637
|
])
|
|
2643
2638
|
])) : y("", !0)
|
|
2644
2639
|
]);
|
|
2645
2640
|
}
|
|
2646
|
-
const
|
|
2647
|
-
function
|
|
2641
|
+
const rs = /* @__PURE__ */ N(mn, [["render", ss], ["__scopeId", "data-v-37fd5506"]]);
|
|
2642
|
+
function is(e) {
|
|
2648
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();
|
|
2649
2644
|
}
|
|
2650
|
-
const
|
|
2645
|
+
const as = {
|
|
2651
2646
|
name: "WmActionResult",
|
|
2652
2647
|
props: {
|
|
2653
2648
|
state: { type: String, default: "success" },
|
|
@@ -2657,13 +2652,13 @@ const ls = {
|
|
|
2657
2652
|
},
|
|
2658
2653
|
computed: {
|
|
2659
2654
|
detailText() {
|
|
2660
|
-
return
|
|
2655
|
+
return is(this.detail);
|
|
2661
2656
|
}
|
|
2662
2657
|
}
|
|
2663
|
-
},
|
|
2658
|
+
}, os = {
|
|
2664
2659
|
class: "wm-result__icon",
|
|
2665
2660
|
"aria-hidden": "true"
|
|
2666
|
-
},
|
|
2661
|
+
}, ls = {
|
|
2667
2662
|
key: 0,
|
|
2668
2663
|
width: "11",
|
|
2669
2664
|
height: "11",
|
|
@@ -2673,7 +2668,7 @@ const ls = {
|
|
|
2673
2668
|
"stroke-width": "2.8",
|
|
2674
2669
|
"stroke-linecap": "round",
|
|
2675
2670
|
"stroke-linejoin": "round"
|
|
2676
|
-
},
|
|
2671
|
+
}, cs = {
|
|
2677
2672
|
key: 1,
|
|
2678
2673
|
width: "11",
|
|
2679
2674
|
height: "11",
|
|
@@ -2683,7 +2678,7 @@ const ls = {
|
|
|
2683
2678
|
"stroke-width": "2.6",
|
|
2684
2679
|
"stroke-linecap": "round",
|
|
2685
2680
|
"stroke-linejoin": "round"
|
|
2686
|
-
},
|
|
2681
|
+
}, ds = {
|
|
2687
2682
|
key: 2,
|
|
2688
2683
|
width: "11",
|
|
2689
2684
|
height: "11",
|
|
@@ -2693,7 +2688,7 @@ const ls = {
|
|
|
2693
2688
|
"stroke-width": "2.4",
|
|
2694
2689
|
"stroke-linecap": "round",
|
|
2695
2690
|
"stroke-linejoin": "round"
|
|
2696
|
-
},
|
|
2691
|
+
}, us = {
|
|
2697
2692
|
key: 3,
|
|
2698
2693
|
width: "12",
|
|
2699
2694
|
height: "12",
|
|
@@ -2703,24 +2698,24 @@ const ls = {
|
|
|
2703
2698
|
"stroke-width": "2.2",
|
|
2704
2699
|
"stroke-linecap": "round",
|
|
2705
2700
|
"stroke-linejoin": "round"
|
|
2706
|
-
},
|
|
2707
|
-
function
|
|
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) {
|
|
2708
2703
|
return c(), d("div", {
|
|
2709
2704
|
class: O(["wm-result", `wm-result--${n.state}`])
|
|
2710
2705
|
}, [
|
|
2711
|
-
a("span",
|
|
2712
|
-
n.state === "success" ? (c(), d("svg",
|
|
2706
|
+
a("span", os, [
|
|
2707
|
+
n.state === "success" ? (c(), d("svg", ls, [...t[0] || (t[0] = [
|
|
2713
2708
|
a("path", { d: "M20 6L9 17l-5-5" }, null, -1)
|
|
2714
|
-
])])) : n.state === "rejected" ? (c(), d("svg",
|
|
2709
|
+
])])) : n.state === "rejected" ? (c(), d("svg", cs, [...t[1] || (t[1] = [
|
|
2715
2710
|
a("path", { d: "M18 6L6 18M6 6l12 12" }, null, -1)
|
|
2716
|
-
])])) : n.state === "awaiting" ? (c(), d("svg",
|
|
2711
|
+
])])) : n.state === "awaiting" ? (c(), d("svg", ds, [...t[2] || (t[2] = [
|
|
2717
2712
|
a("circle", {
|
|
2718
2713
|
cx: "12",
|
|
2719
2714
|
cy: "12",
|
|
2720
2715
|
r: "10"
|
|
2721
2716
|
}, null, -1),
|
|
2722
2717
|
a("polyline", { points: "12 7 12 12 15 14" }, null, -1)
|
|
2723
|
-
])])) : (c(), d("svg",
|
|
2718
|
+
])])) : (c(), d("svg", us, [...t[3] || (t[3] = [
|
|
2724
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),
|
|
2725
2720
|
a("line", {
|
|
2726
2721
|
x1: "12",
|
|
@@ -2736,19 +2731,19 @@ function ps(e, t, n, i, r, s) {
|
|
|
2736
2731
|
}, null, -1)
|
|
2737
2732
|
])]))
|
|
2738
2733
|
]),
|
|
2739
|
-
a("span",
|
|
2740
|
-
a("span",
|
|
2734
|
+
a("span", hs, [
|
|
2735
|
+
a("span", ms, v(n.label), 1),
|
|
2741
2736
|
s.detailText ? (c(), d(E, { key: 0 }, [
|
|
2742
2737
|
t[4] || (t[4] = a("span", {
|
|
2743
2738
|
class: "wm-result__sep",
|
|
2744
2739
|
"aria-hidden": "true"
|
|
2745
2740
|
}, " · ", -1)),
|
|
2746
|
-
a("span",
|
|
2741
|
+
a("span", fs, v(s.detailText), 1)
|
|
2747
2742
|
], 64)) : y("", !0)
|
|
2748
2743
|
])
|
|
2749
2744
|
], 2);
|
|
2750
2745
|
}
|
|
2751
|
-
const
|
|
2746
|
+
const gs = /* @__PURE__ */ N(as, [["render", _s], ["__scopeId", "data-v-7284acd0"]]), ps = {
|
|
2752
2747
|
name: "WmArtifactFormResponse",
|
|
2753
2748
|
inject: {
|
|
2754
2749
|
// Translator shared by the Messenger shell; French fallback when
|
|
@@ -2764,12 +2759,12 @@ const vs = /* @__PURE__ */ N(ls, [["render", ps], ["__scopeId", "data-v-7284acd0
|
|
|
2764
2759
|
return Array.isArray((e = this.data) == null ? void 0 : e.fields) ? this.data.fields : [];
|
|
2765
2760
|
}
|
|
2766
2761
|
}
|
|
2767
|
-
},
|
|
2768
|
-
function
|
|
2769
|
-
return c(), d("div",
|
|
2770
|
-
a("div",
|
|
2771
|
-
a("div",
|
|
2772
|
-
a("span",
|
|
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, [
|
|
2773
2768
|
t[0] || (t[0] = a("svg", {
|
|
2774
2769
|
width: "11",
|
|
2775
2770
|
height: "11",
|
|
@@ -2786,12 +2781,12 @@ function Ms(e, t, n, i, r, s) {
|
|
|
2786
2781
|
ye(" " + v(s.t("form.sent")), 1)
|
|
2787
2782
|
])
|
|
2788
2783
|
]),
|
|
2789
|
-
a("div",
|
|
2784
|
+
a("div", ks, [
|
|
2790
2785
|
(c(!0), d(E, null, F(s.fields, (o, l) => (c(), d("div", {
|
|
2791
2786
|
key: l,
|
|
2792
2787
|
class: "wm-art__field"
|
|
2793
2788
|
}, [
|
|
2794
|
-
a("div",
|
|
2789
|
+
a("div", Cs, v(o.label), 1),
|
|
2795
2790
|
a("div", {
|
|
2796
2791
|
class: O([
|
|
2797
2792
|
"wm-art__fieldValue",
|
|
@@ -2802,7 +2797,7 @@ function Ms(e, t, n, i, r, s) {
|
|
|
2802
2797
|
])
|
|
2803
2798
|
]);
|
|
2804
2799
|
}
|
|
2805
|
-
const
|
|
2800
|
+
const Ss = /* @__PURE__ */ N(ps, [["render", As], ["__scopeId", "data-v-713aecf1"]]), Ms = {
|
|
2806
2801
|
name: "WmArtifactInfoCard",
|
|
2807
2802
|
props: {
|
|
2808
2803
|
data: { type: Object, required: !0 }
|
|
@@ -2817,32 +2812,32 @@ const Ts = /* @__PURE__ */ N(ys, [["render", Ms], ["__scopeId", "data-v-713aecf1
|
|
|
2817
2812
|
return !!((e = this.data) != null && e.body) || this.fields.length > 0;
|
|
2818
2813
|
}
|
|
2819
2814
|
}
|
|
2820
|
-
},
|
|
2815
|
+
}, Ts = { class: "wm-art wm-art--infoCard" }, xs = {
|
|
2821
2816
|
key: 0,
|
|
2822
2817
|
class: "wm-art__image"
|
|
2823
|
-
},
|
|
2818
|
+
}, Os = ["src", "alt"], Is = { class: "wm-art__head" }, Ls = { class: "wm-art__headMain" }, Es = { class: "wm-art__title" }, Bs = {
|
|
2824
2819
|
key: 0,
|
|
2825
2820
|
class: "wm-art__subtitle"
|
|
2826
|
-
},
|
|
2821
|
+
}, Rs = {
|
|
2827
2822
|
key: 1,
|
|
2828
2823
|
class: "wm-art__body"
|
|
2829
|
-
},
|
|
2824
|
+
}, Ns = {
|
|
2830
2825
|
key: 0,
|
|
2831
2826
|
class: "wm-art__text"
|
|
2832
|
-
},
|
|
2833
|
-
function
|
|
2834
|
-
return c(), d("div",
|
|
2835
|
-
n.data.image_url ? (c(), d("figure",
|
|
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, [
|
|
2836
2831
|
a("img", {
|
|
2837
2832
|
src: n.data.image_url,
|
|
2838
2833
|
alt: n.data.title || "",
|
|
2839
2834
|
loading: "lazy"
|
|
2840
|
-
}, null, 8,
|
|
2835
|
+
}, null, 8, Os)
|
|
2841
2836
|
])) : y("", !0),
|
|
2842
|
-
a("div",
|
|
2843
|
-
a("div",
|
|
2844
|
-
a("div",
|
|
2845
|
-
n.data.subtitle ? (c(), d("div",
|
|
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)
|
|
2846
2841
|
]),
|
|
2847
2842
|
n.data.badge && n.data.badge.label ? (c(), d("span", {
|
|
2848
2843
|
key: 0,
|
|
@@ -2852,13 +2847,13 @@ function Ds(e, t, n, i, r, s) {
|
|
|
2852
2847
|
])
|
|
2853
2848
|
}, v(n.data.badge.label), 3)) : y("", !0)
|
|
2854
2849
|
]),
|
|
2855
|
-
s.hasBody ? (c(), d("div",
|
|
2856
|
-
n.data.body ? (c(), d("div",
|
|
2850
|
+
s.hasBody ? (c(), d("div", Rs, [
|
|
2851
|
+
n.data.body ? (c(), d("div", Ns, v(n.data.body), 1)) : y("", !0),
|
|
2857
2852
|
s.fields.length ? (c(!0), d(E, { key: 1 }, F(s.fields, (o, l) => (c(), d("div", {
|
|
2858
2853
|
key: l,
|
|
2859
2854
|
class: "wm-art__field"
|
|
2860
2855
|
}, [
|
|
2861
|
-
a("div",
|
|
2856
|
+
a("div", Ps, v(o.label), 1),
|
|
2862
2857
|
a("div", {
|
|
2863
2858
|
class: O([
|
|
2864
2859
|
"wm-art__fieldValue",
|
|
@@ -2869,8 +2864,8 @@ function Ds(e, t, n, i, r, s) {
|
|
|
2869
2864
|
])) : y("", !0)
|
|
2870
2865
|
]);
|
|
2871
2866
|
}
|
|
2872
|
-
const
|
|
2873
|
-
function
|
|
2867
|
+
const Fs = /* @__PURE__ */ N(Ms, [["render", Us], ["__scopeId", "data-v-7eae0e4a"]]);
|
|
2868
|
+
function Ds(e, t, n) {
|
|
2874
2869
|
if (!e) return "";
|
|
2875
2870
|
const i = new Date(e);
|
|
2876
2871
|
if (Number.isNaN(i.getTime())) return e;
|
|
@@ -2884,7 +2879,7 @@ function Hs(e, t, n) {
|
|
|
2884
2879
|
});
|
|
2885
2880
|
return `${r}${n}${s}`;
|
|
2886
2881
|
}
|
|
2887
|
-
const
|
|
2882
|
+
const js = {
|
|
2888
2883
|
name: "WmArtifactTicket",
|
|
2889
2884
|
inject: {
|
|
2890
2885
|
// Translator + resolved-language getter shared by the Messenger
|
|
@@ -2902,7 +2897,7 @@ const zs = {
|
|
|
2902
2897
|
},
|
|
2903
2898
|
formattedDate() {
|
|
2904
2899
|
var e;
|
|
2905
|
-
return
|
|
2900
|
+
return Ds(
|
|
2906
2901
|
(e = this.data) == null ? void 0 : e.created_at,
|
|
2907
2902
|
re(this.wmLocale()),
|
|
2908
2903
|
this.t("ticket.dateAt")
|
|
@@ -2930,13 +2925,13 @@ const zs = {
|
|
|
2930
2925
|
return /high|haute|élev|elev|critic|critiq|urgent/.test(t) ? 3 : /low|basse|faible|minor/.test(t) ? 1 : 2;
|
|
2931
2926
|
}
|
|
2932
2927
|
}
|
|
2933
|
-
},
|
|
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 = {
|
|
2934
2929
|
key: 0,
|
|
2935
2930
|
class: "wm-tk__text"
|
|
2936
|
-
},
|
|
2931
|
+
}, Ws = {
|
|
2937
2932
|
key: 0,
|
|
2938
2933
|
class: "wm-art__body"
|
|
2939
|
-
},
|
|
2934
|
+
}, Gs = { class: "wm-art__fieldLabel" }, Ys = ["data-level"], Js = {
|
|
2940
2935
|
key: 1,
|
|
2941
2936
|
class: "wm-tk__date",
|
|
2942
2937
|
width: "12",
|
|
@@ -2948,16 +2943,16 @@ const zs = {
|
|
|
2948
2943
|
"stroke-linecap": "round",
|
|
2949
2944
|
"stroke-linejoin": "round",
|
|
2950
2945
|
"aria-hidden": "true"
|
|
2951
|
-
},
|
|
2946
|
+
}, Qs = {
|
|
2952
2947
|
key: 1,
|
|
2953
2948
|
class: "wm-art__footer wm-tk__footer"
|
|
2954
2949
|
};
|
|
2955
|
-
function
|
|
2956
|
-
return c(), d("div",
|
|
2957
|
-
a("div",
|
|
2958
|
-
a("div",
|
|
2959
|
-
a("div",
|
|
2960
|
-
a("div",
|
|
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, [
|
|
2961
2956
|
t[0] || (t[0] = a("svg", {
|
|
2962
2957
|
width: "11",
|
|
2963
2958
|
height: "11",
|
|
@@ -2988,14 +2983,14 @@ function er(e, t, n, i, r, s) {
|
|
|
2988
2983
|
ye(" " + v(n.data.status.label), 1)
|
|
2989
2984
|
], 2)
|
|
2990
2985
|
]),
|
|
2991
|
-
n.data.body ? (c(), d("div",
|
|
2986
|
+
n.data.body ? (c(), d("div", $s, v(n.data.body), 1)) : y("", !0)
|
|
2992
2987
|
]),
|
|
2993
|
-
s.fields.length ? (c(), d("div",
|
|
2988
|
+
s.fields.length ? (c(), d("div", Ws, [
|
|
2994
2989
|
(c(!0), d(E, null, F(s.fields, (o, l) => (c(), d("div", {
|
|
2995
2990
|
key: l,
|
|
2996
2991
|
class: "wm-art__field"
|
|
2997
2992
|
}, [
|
|
2998
|
-
a("div",
|
|
2993
|
+
a("div", Gs, v(o.label), 1),
|
|
2999
2994
|
a("div", {
|
|
3000
2995
|
class: O([
|
|
3001
2996
|
"wm-art__fieldValue",
|
|
@@ -3032,7 +3027,7 @@ function er(e, t, n, i, r, s) {
|
|
|
3032
3027
|
height: "9",
|
|
3033
3028
|
rx: "0.5"
|
|
3034
3029
|
}, null, -1)
|
|
3035
|
-
])], 8,
|
|
3030
|
+
])], 8, Ys)) : s.isDate(o.label) ? (c(), d("svg", Js, [...t[3] || (t[3] = [
|
|
3036
3031
|
a("rect", {
|
|
3037
3032
|
x: "3",
|
|
3038
3033
|
y: "4",
|
|
@@ -3046,7 +3041,7 @@ function er(e, t, n, i, r, s) {
|
|
|
3046
3041
|
], 2)
|
|
3047
3042
|
]))), 128))
|
|
3048
3043
|
])) : y("", !0),
|
|
3049
|
-
n.data.created_at ? (c(), d("div",
|
|
3044
|
+
n.data.created_at ? (c(), d("div", Qs, [
|
|
3050
3045
|
t[4] || (t[4] = a("svg", {
|
|
3051
3046
|
width: "11",
|
|
3052
3047
|
height: "11",
|
|
@@ -3071,11 +3066,11 @@ function er(e, t, n, i, r, s) {
|
|
|
3071
3066
|
])) : y("", !0)
|
|
3072
3067
|
]);
|
|
3073
3068
|
}
|
|
3074
|
-
const
|
|
3075
|
-
form_response:
|
|
3076
|
-
info_card:
|
|
3077
|
-
ticket:
|
|
3078
|
-
},
|
|
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 = {
|
|
3079
3074
|
name: "WmArtifactRenderer",
|
|
3080
3075
|
props: {
|
|
3081
3076
|
// Forme : { kind: string, data: any } (le `data` est validé
|
|
@@ -3086,17 +3081,17 @@ const tr = /* @__PURE__ */ N(zs, [["render", er], ["__scopeId", "data-v-5f30c914
|
|
|
3086
3081
|
component() {
|
|
3087
3082
|
var t;
|
|
3088
3083
|
const e = (t = this.artifact) == null ? void 0 : t.kind;
|
|
3089
|
-
return e &&
|
|
3084
|
+
return e && er[e] || null;
|
|
3090
3085
|
}
|
|
3091
3086
|
}
|
|
3092
3087
|
};
|
|
3093
|
-
function
|
|
3088
|
+
function nr(e, t, n, i, r, s) {
|
|
3094
3089
|
return s.component ? (c(), P(pe(s.component), {
|
|
3095
3090
|
key: 0,
|
|
3096
3091
|
data: n.artifact.data
|
|
3097
3092
|
}, null, 8, ["data"])) : y("", !0);
|
|
3098
3093
|
}
|
|
3099
|
-
const
|
|
3094
|
+
const sr = /* @__PURE__ */ N(tr, [["render", nr]]), rr = {
|
|
3100
3095
|
name: "WmAttachmentPreview",
|
|
3101
3096
|
inject: {
|
|
3102
3097
|
signAttachmentFn: { default: null },
|
|
@@ -3164,15 +3159,15 @@ const ir = /* @__PURE__ */ N(sr, [["render", rr]]), ar = {
|
|
|
3164
3159
|
this.safeHref === "#" && e.preventDefault();
|
|
3165
3160
|
}
|
|
3166
3161
|
}
|
|
3167
|
-
},
|
|
3162
|
+
}, ir = ["href"], ar = ["src", "alt"], or = ["src"], lr = ["src"], cr = ["href", "download"], dr = { class: "wm-att__main" }, ur = { class: "wm-att__name" }, hr = {
|
|
3168
3163
|
key: 0,
|
|
3169
3164
|
class: "wm-att__meta"
|
|
3170
|
-
},
|
|
3165
|
+
}, mr = {
|
|
3171
3166
|
key: 0,
|
|
3172
3167
|
class: "wm-att__spin",
|
|
3173
3168
|
"aria-hidden": "true"
|
|
3174
3169
|
};
|
|
3175
|
-
function
|
|
3170
|
+
function fr(e, t, n, i, r, s) {
|
|
3176
3171
|
return c(), d("div", {
|
|
3177
3172
|
class: O(["wm-att", ["wm-att--" + (s.kind || "file")]])
|
|
3178
3173
|
}, [
|
|
@@ -3187,18 +3182,18 @@ function gr(e, t, n, i, r, s) {
|
|
|
3187
3182
|
src: r.url,
|
|
3188
3183
|
alt: s.displayName,
|
|
3189
3184
|
loading: "lazy"
|
|
3190
|
-
}, null, 8,
|
|
3191
|
-
], 8,
|
|
3185
|
+
}, null, 8, ar)
|
|
3186
|
+
], 8, ir)) : s.kind === "audio" && r.url ? (c(), d("audio", {
|
|
3192
3187
|
key: 1,
|
|
3193
3188
|
src: r.url,
|
|
3194
3189
|
controls: "",
|
|
3195
3190
|
preload: "metadata"
|
|
3196
|
-
}, null, 8,
|
|
3191
|
+
}, null, 8, or)) : s.kind === "video" && r.url ? (c(), d("video", {
|
|
3197
3192
|
key: 2,
|
|
3198
3193
|
src: r.url,
|
|
3199
3194
|
controls: "",
|
|
3200
3195
|
preload: "metadata"
|
|
3201
|
-
}, null, 8,
|
|
3196
|
+
}, null, 8, lr)) : (c(), d("a", {
|
|
3202
3197
|
key: 3,
|
|
3203
3198
|
class: "wm-att__file",
|
|
3204
3199
|
href: s.safeHref,
|
|
@@ -3223,15 +3218,15 @@ function gr(e, t, n, i, r, s) {
|
|
|
3223
3218
|
a("path", { d: "M14 2v6h6" })
|
|
3224
3219
|
])
|
|
3225
3220
|
], -1)),
|
|
3226
|
-
a("span",
|
|
3227
|
-
a("span",
|
|
3228
|
-
s.sizeLabel ? (c(), d("span",
|
|
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)
|
|
3229
3224
|
]),
|
|
3230
|
-
r.loading ? (c(), d("span",
|
|
3231
|
-
], 8,
|
|
3225
|
+
r.loading ? (c(), d("span", mr)) : y("", !0)
|
|
3226
|
+
], 8, cr))
|
|
3232
3227
|
], 2);
|
|
3233
3228
|
}
|
|
3234
|
-
const
|
|
3229
|
+
const _r = /* @__PURE__ */ N(rr, [["render", fr], ["__scopeId", "data-v-0c877a62"]]), gr = {
|
|
3235
3230
|
name: "WmBubble",
|
|
3236
3231
|
props: {
|
|
3237
3232
|
role: { type: String, default: "ai" },
|
|
@@ -3243,45 +3238,45 @@ const pr = /* @__PURE__ */ N(ar, [["render", gr], ["__scopeId", "data-v-0c877a62
|
|
|
3243
3238
|
return hn(this.text);
|
|
3244
3239
|
}
|
|
3245
3240
|
}
|
|
3246
|
-
},
|
|
3247
|
-
function
|
|
3241
|
+
}, pr = ["innerHTML"];
|
|
3242
|
+
function vr(e, t, n, i, r, s) {
|
|
3248
3243
|
return c(), d("div", {
|
|
3249
3244
|
class: O(["wm-bubble", "wm-bubble--" + n.role])
|
|
3250
3245
|
}, [
|
|
3251
3246
|
He(e.$slots, "default", {}, () => [
|
|
3252
|
-
a("span", { innerHTML: s.rendered }, null, 8,
|
|
3247
|
+
a("span", { innerHTML: s.rendered }, null, 8, pr)
|
|
3253
3248
|
], !0)
|
|
3254
3249
|
], 2);
|
|
3255
3250
|
}
|
|
3256
|
-
const
|
|
3257
|
-
function
|
|
3258
|
-
return c(), d("div",
|
|
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] = [
|
|
3259
3254
|
a("span", { style: { "animation-delay": "0s" } }, null, -1),
|
|
3260
3255
|
a("span", { style: { "animation-delay": "0.2s" } }, null, -1),
|
|
3261
3256
|
a("span", { style: { "animation-delay": "0.4s" } }, null, -1)
|
|
3262
3257
|
])]);
|
|
3263
3258
|
}
|
|
3264
|
-
const
|
|
3259
|
+
const Cr = /* @__PURE__ */ N(wr, [["render", kr], ["__scopeId", "data-v-df2447fd"]]);
|
|
3265
3260
|
function Q(e) {
|
|
3266
3261
|
return e ? e.client_msg_id || e.id : "";
|
|
3267
3262
|
}
|
|
3268
|
-
const
|
|
3263
|
+
const Ar = {
|
|
3269
3264
|
transferred_to_human: "system.transferredToHuman",
|
|
3270
3265
|
assigned: "system.assigned",
|
|
3271
3266
|
unassigned: "system.unassigned",
|
|
3272
3267
|
resolved: "system.resolved",
|
|
3273
3268
|
reopened: "system.reopened",
|
|
3274
3269
|
idle: "system.idle"
|
|
3275
|
-
},
|
|
3270
|
+
}, Sr = 80, Mr = 200, Tr = {
|
|
3276
3271
|
name: "WmMessageList",
|
|
3277
3272
|
components: {
|
|
3278
3273
|
AIAvatar: le,
|
|
3279
3274
|
HumanAvatar: Ce,
|
|
3280
|
-
Bubble:
|
|
3281
|
-
Typing:
|
|
3282
|
-
ActionResult:
|
|
3283
|
-
AttachmentPreview:
|
|
3284
|
-
ArtifactRenderer:
|
|
3275
|
+
Bubble: yr,
|
|
3276
|
+
Typing: Cr,
|
|
3277
|
+
ActionResult: gs,
|
|
3278
|
+
AttachmentPreview: _r,
|
|
3279
|
+
ArtifactRenderer: sr
|
|
3285
3280
|
},
|
|
3286
3281
|
inject: {
|
|
3287
3282
|
// Translator + resolved-language getter shared by the Messenger
|
|
@@ -3471,11 +3466,11 @@ const Mr = {
|
|
|
3471
3466
|
return `g-${n}`;
|
|
3472
3467
|
},
|
|
3473
3468
|
isAtBottom(e) {
|
|
3474
|
-
return e.scrollHeight - e.scrollTop - e.clientHeight <=
|
|
3469
|
+
return e.scrollHeight - e.scrollTop - e.clientHeight <= Sr;
|
|
3475
3470
|
},
|
|
3476
3471
|
onScroll() {
|
|
3477
3472
|
const e = this.$refs.scrollEl;
|
|
3478
|
-
e && (this.showScrollDown = !this.isAtBottom(e), !(this.loadingMore || !this.hasMore) && (this._pendingLoadMore || e.scrollTop <=
|
|
3473
|
+
e && (this.showScrollDown = !this.isAtBottom(e), !(this.loadingMore || !this.hasMore) && (this._pendingLoadMore || e.scrollTop <= Mr && (this._pendingLoadMore = !0, this.$emit("load-more"))));
|
|
3479
3474
|
},
|
|
3480
3475
|
// Capture pre-patch scroll state and restore it on the next tick.
|
|
3481
3476
|
//
|
|
@@ -3813,7 +3808,7 @@ const Mr = {
|
|
|
3813
3808
|
},
|
|
3814
3809
|
systemLabel(e) {
|
|
3815
3810
|
var r, s, o;
|
|
3816
|
-
const t = (r = e == null ? void 0 : e.payload) == null ? void 0 : r.event, n =
|
|
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");
|
|
3817
3812
|
return n ? this.t(n, { name: i }) : (e == null ? void 0 : e.text_md) || this.t("messageList.conversationUpdate");
|
|
3818
3813
|
},
|
|
3819
3814
|
scrollToBottom() {
|
|
@@ -3828,74 +3823,74 @@ const Mr = {
|
|
|
3828
3823
|
e && (typeof e.scrollTo == "function" ? e.scrollTo({ top: e.scrollHeight, behavior: "smooth" }) : e.scrollTop = e.scrollHeight, this.showScrollDown = !1);
|
|
3829
3824
|
}
|
|
3830
3825
|
}
|
|
3831
|
-
},
|
|
3826
|
+
}, xr = { class: "wm-list__wrap" }, Or = {
|
|
3832
3827
|
key: 0,
|
|
3833
3828
|
class: "wm-list__loadMore",
|
|
3834
3829
|
role: "status",
|
|
3835
3830
|
"aria-live": "polite"
|
|
3836
|
-
},
|
|
3831
|
+
}, Ir = { class: "wm-list__loadMore-lbl" }, Lr = {
|
|
3837
3832
|
key: 1,
|
|
3838
3833
|
class: "wm-list__historyEnd"
|
|
3839
|
-
},
|
|
3834
|
+
}, Er = {
|
|
3840
3835
|
key: 2,
|
|
3841
3836
|
class: "wm-list__sep"
|
|
3842
|
-
},
|
|
3837
|
+
}, Br = { class: "wm-list__sep-label" }, Rr = {
|
|
3843
3838
|
key: 0,
|
|
3844
3839
|
class: "wm-list__sep wm-list__sep--unread"
|
|
3845
|
-
},
|
|
3840
|
+
}, Nr = { class: "wm-list__sep-label wm-list__sep-label--unread" }, Pr = {
|
|
3846
3841
|
key: 0,
|
|
3847
3842
|
class: "wm-list__sysep"
|
|
3848
|
-
},
|
|
3843
|
+
}, Ur = { class: "wm-list__sysep-label" }, Fr = ["data-row-key", "onPointerdown"], Dr = {
|
|
3849
3844
|
key: 0,
|
|
3850
3845
|
class: "wm-list__avatarSlot"
|
|
3851
|
-
},
|
|
3846
|
+
}, jr = {
|
|
3852
3847
|
key: 5,
|
|
3853
3848
|
class: "wm-list__body"
|
|
3854
|
-
},
|
|
3849
|
+
}, Hr = { key: 0 }, zr = {
|
|
3855
3850
|
key: 1,
|
|
3856
3851
|
"aria-hidden": "true"
|
|
3857
|
-
},
|
|
3852
|
+
}, qr = { key: 2 }, Vr = { key: 0 }, Kr = {
|
|
3858
3853
|
key: 1,
|
|
3859
3854
|
"aria-hidden": "true"
|
|
3860
|
-
},
|
|
3855
|
+
}, $r = { key: 2 }, Wr = {
|
|
3861
3856
|
key: 3,
|
|
3862
3857
|
class: "wm-list__row wm-list__row--ai fade-up"
|
|
3863
|
-
},
|
|
3864
|
-
function
|
|
3858
|
+
}, Gr = { class: "wm-list__avatarSlot" }, Yr = ["aria-label", "title"];
|
|
3859
|
+
function Jr(e, t, n, i, r, s) {
|
|
3865
3860
|
const o = R("AIAvatar"), l = R("HumanAvatar"), p = R("ActionResult"), k = R("ArtifactRenderer"), w = R("Bubble"), T = R("AttachmentPreview"), B = R("Typing");
|
|
3866
|
-
return c(), d("div",
|
|
3861
|
+
return c(), d("div", xr, [
|
|
3867
3862
|
a("div", {
|
|
3868
3863
|
ref: "scrollEl",
|
|
3869
3864
|
class: O(["wm-list", { "wm-list--silent": r.silentFades }]),
|
|
3870
3865
|
onScrollPassive: t[4] || (t[4] = (...A) => s.onScroll && s.onScroll(...A))
|
|
3871
3866
|
}, [
|
|
3872
|
-
n.loadingMore ? (c(), d("div",
|
|
3867
|
+
n.loadingMore ? (c(), d("div", Or, [
|
|
3873
3868
|
t[6] || (t[6] = a("span", {
|
|
3874
3869
|
class: "wm-list__loadMore-spinner",
|
|
3875
3870
|
"aria-hidden": "true"
|
|
3876
3871
|
}, null, -1)),
|
|
3877
|
-
a("span",
|
|
3878
|
-
])) : s.historyExhausted ? (c(), d("div",
|
|
3879
|
-
n.dateLabel ? (c(), d("div",
|
|
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, [
|
|
3880
3875
|
t[7] || (t[7] = a("div", { class: "wm-list__line" }, null, -1)),
|
|
3881
|
-
a("span",
|
|
3876
|
+
a("span", Br, v(n.dateLabel), 1),
|
|
3882
3877
|
t[8] || (t[8] = a("div", { class: "wm-list__line" }, null, -1))
|
|
3883
3878
|
])) : y("", !0),
|
|
3884
3879
|
(c(!0), d(E, null, F(s.groups, (A, z) => (c(), d(E, {
|
|
3885
3880
|
key: A.key
|
|
3886
3881
|
}, [
|
|
3887
|
-
A.key === s.unreadGroupKey ? (c(), d("div",
|
|
3882
|
+
A.key === s.unreadGroupKey ? (c(), d("div", Rr, [
|
|
3888
3883
|
t[9] || (t[9] = a("div", { class: "wm-list__line wm-list__line--unread" }, null, -1)),
|
|
3889
|
-
a("span",
|
|
3884
|
+
a("span", Nr, v(s.t("messageList.unread")), 1),
|
|
3890
3885
|
t[10] || (t[10] = a("div", { class: "wm-list__line wm-list__line--unread" }, null, -1))
|
|
3891
3886
|
])) : y("", !0),
|
|
3892
3887
|
A.role === "system" || A.items.length ? (c(), d("div", {
|
|
3893
3888
|
key: 1,
|
|
3894
3889
|
class: O(["wm-list__group", "wm-list__group--" + A.role])
|
|
3895
3890
|
}, [
|
|
3896
|
-
A.role === "system" ? (c(), d("div",
|
|
3891
|
+
A.role === "system" ? (c(), d("div", Pr, [
|
|
3897
3892
|
t[11] || (t[11] = a("div", { class: "wm-list__line wm-list__line--strong" }, null, -1)),
|
|
3898
|
-
a("span",
|
|
3893
|
+
a("span", Ur, v(A.systemLabel), 1),
|
|
3899
3894
|
t[12] || (t[12] = a("div", { class: "wm-list__line wm-list__line--strong" }, null, -1))
|
|
3900
3895
|
])) : (c(), d(E, { key: 1 }, [
|
|
3901
3896
|
(c(!0), d(E, null, F(A.items, (S, U) => (c(), d(E, {
|
|
@@ -3918,7 +3913,7 @@ function Xr(e, t, n, i, r, s) {
|
|
|
3918
3913
|
onContextmenu: t[3] || (t[3] = G(() => {
|
|
3919
3914
|
}, ["prevent"]))
|
|
3920
3915
|
}, [
|
|
3921
|
-
A.role !== "user" ? (c(), d("div",
|
|
3916
|
+
A.role !== "user" ? (c(), d("div", Dr, [
|
|
3922
3917
|
U === A.items.length - 1 ? (c(), d(E, { key: 0 }, [
|
|
3923
3918
|
A.role === "ai" ? (c(), P(o, {
|
|
3924
3919
|
key: 0,
|
|
@@ -3951,7 +3946,7 @@ function Xr(e, t, n, i, r, s) {
|
|
|
3951
3946
|
}, null, 8, ["artifact"])) : S.renderAs === "artifact" ? (c(), P(k, {
|
|
3952
3947
|
key: 4,
|
|
3953
3948
|
artifact: s.artifactOf(S.message)
|
|
3954
|
-
}, null, 8, ["artifact"])) : (c(), d("div",
|
|
3949
|
+
}, null, 8, ["artifact"])) : (c(), d("div", jr, [
|
|
3955
3950
|
S.message.text_md ? (c(), P(w, {
|
|
3956
3951
|
key: 0,
|
|
3957
3952
|
role: A.role,
|
|
@@ -3971,29 +3966,29 @@ function Xr(e, t, n, i, r, s) {
|
|
|
3971
3966
|
}, null, 8, ["attachment"]))), 128))
|
|
3972
3967
|
], 2)) : y("", !0)
|
|
3973
3968
|
]))
|
|
3974
|
-
], 46,
|
|
3969
|
+
], 46, Fr),
|
|
3975
3970
|
U < A.items.length - 1 && r.pressedItemKey === `${s.messageKey(S.message)}-${S.partKey}` && (A.role !== "user" || s.timeOf(S.message)) ? (c(), d("div", {
|
|
3976
3971
|
key: 0,
|
|
3977
3972
|
class: O(["wm-list__meta wm-list__meta--press", { "wm-list__meta--right": A.role === "user" }])
|
|
3978
3973
|
}, [
|
|
3979
|
-
A.role !== "user" ? (c(), d("span",
|
|
3980
|
-
A.role !== "user" && s.timeOf(S.message) ? (c(), d("span",
|
|
3981
|
-
s.timeOf(S.message) ? (c(), d("span",
|
|
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)
|
|
3982
3977
|
], 2)) : y("", !0)
|
|
3983
3978
|
], 64))), 128)),
|
|
3984
3979
|
(A.role !== "user" || s.lastTimeOf(A)) && !s.hasTrailingOverlay(A) ? (c(), d("div", {
|
|
3985
3980
|
key: 0,
|
|
3986
3981
|
class: O(["wm-list__meta", { "wm-list__meta--right": A.role === "user" }])
|
|
3987
3982
|
}, [
|
|
3988
|
-
A.role !== "user" ? (c(), d("span",
|
|
3989
|
-
A.role !== "user" && s.lastTimeOf(A) ? (c(), d("span",
|
|
3990
|
-
s.lastTimeOf(A) ? (c(), d("span",
|
|
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)
|
|
3991
3986
|
], 2)) : y("", !0)
|
|
3992
3987
|
], 64))
|
|
3993
3988
|
], 2)) : y("", !0)
|
|
3994
3989
|
], 64))), 128)),
|
|
3995
|
-
n.streamingActive ? (c(), d("div",
|
|
3996
|
-
a("div",
|
|
3990
|
+
n.streamingActive ? (c(), d("div", Wr, [
|
|
3991
|
+
a("div", Gr, [
|
|
3997
3992
|
V(o, {
|
|
3998
3993
|
size: 26,
|
|
3999
3994
|
tail: !0,
|
|
@@ -4027,14 +4022,14 @@ function Xr(e, t, n, i, r, s) {
|
|
|
4027
4022
|
}, [
|
|
4028
4023
|
a("path", { d: "M6 9l6 6 6-6" })
|
|
4029
4024
|
], -1)
|
|
4030
|
-
])], 8,
|
|
4025
|
+
])], 8, Yr)) : y("", !0)
|
|
4031
4026
|
]),
|
|
4032
4027
|
_: 1
|
|
4033
4028
|
})
|
|
4034
4029
|
]);
|
|
4035
4030
|
}
|
|
4036
|
-
const
|
|
4037
|
-
function
|
|
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() {
|
|
4038
4033
|
return Ae && [
|
|
4039
4034
|
"video/webm;codecs=vp9,opus",
|
|
4040
4035
|
"video/webm;codecs=vp8,opus",
|
|
@@ -4054,10 +4049,10 @@ function Fe({ audio: e }) {
|
|
|
4054
4049
|
systemAudio: e ? "include" : "exclude"
|
|
4055
4050
|
};
|
|
4056
4051
|
}
|
|
4057
|
-
function
|
|
4052
|
+
function ao(e) {
|
|
4058
4053
|
return e ? e.startsWith("image/") ? "image" : e.startsWith("video/") ? "video" : "file" : "file";
|
|
4059
4054
|
}
|
|
4060
|
-
async function
|
|
4055
|
+
async function Zr() {
|
|
4061
4056
|
if (!he) return null;
|
|
4062
4057
|
let e;
|
|
4063
4058
|
try {
|
|
@@ -4068,7 +4063,7 @@ async function ti() {
|
|
|
4068
4063
|
return (t == null ? void 0 : t.name) !== "NotAllowedError" && console.error("[media] screenshot picker", t), null;
|
|
4069
4064
|
}
|
|
4070
4065
|
try {
|
|
4071
|
-
return await
|
|
4066
|
+
return await ei(e);
|
|
4072
4067
|
} catch (t) {
|
|
4073
4068
|
return console.error("[media] screenshot capture", t), null;
|
|
4074
4069
|
} finally {
|
|
@@ -4077,7 +4072,7 @@ async function ti() {
|
|
|
4077
4072
|
});
|
|
4078
4073
|
}
|
|
4079
4074
|
}
|
|
4080
|
-
async function
|
|
4075
|
+
async function ei(e) {
|
|
4081
4076
|
const t = document.createElement("video");
|
|
4082
4077
|
t.muted = !0, t.playsInline = !0, t.srcObject = e, await t.play(), await new Promise((l) => requestAnimationFrame(l));
|
|
4083
4078
|
const n = t.videoWidth || 1280, i = t.videoHeight || 720, r = document.createElement("canvas");
|
|
@@ -4090,7 +4085,7 @@ async function ni(e) {
|
|
|
4090
4085
|
}), o = (/* @__PURE__ */ new Date()).toISOString().replace(/[:.]/g, "-").slice(0, 19);
|
|
4091
4086
|
return new File([s], `capture-${o}.png`, { type: "image/png" });
|
|
4092
4087
|
}
|
|
4093
|
-
async function
|
|
4088
|
+
async function ti(e = {}) {
|
|
4094
4089
|
var k;
|
|
4095
4090
|
if (!he || !Ae) return null;
|
|
4096
4091
|
let t;
|
|
@@ -4101,7 +4096,7 @@ async function si(e = {}) {
|
|
|
4101
4096
|
} catch (w) {
|
|
4102
4097
|
return (w == null ? void 0 : w.name) !== "NotAllowedError" && console.error("[media] record picker", w), null;
|
|
4103
4098
|
}
|
|
4104
|
-
const n =
|
|
4099
|
+
const n = Xr();
|
|
4105
4100
|
let i;
|
|
4106
4101
|
try {
|
|
4107
4102
|
i = n ? new window.MediaRecorder(t, { mimeType: n }) : new window.MediaRecorder(t);
|
|
@@ -4155,7 +4150,7 @@ async function si(e = {}) {
|
|
|
4155
4150
|
}
|
|
4156
4151
|
};
|
|
4157
4152
|
}
|
|
4158
|
-
const
|
|
4153
|
+
const ni = [
|
|
4159
4154
|
{
|
|
4160
4155
|
action: "file",
|
|
4161
4156
|
labelKey: "composer.attachFile",
|
|
@@ -4171,7 +4166,7 @@ const ri = [
|
|
|
4171
4166
|
labelKey: "composer.recordScreen",
|
|
4172
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"
|
|
4173
4168
|
}
|
|
4174
|
-
],
|
|
4169
|
+
], si = {
|
|
4175
4170
|
name: "WmComposer",
|
|
4176
4171
|
inject: {
|
|
4177
4172
|
// Translator shared by the Messenger shell; French fallback when
|
|
@@ -4205,7 +4200,7 @@ const ri = [
|
|
|
4205
4200
|
return !this.disabled && !!this.local.trim();
|
|
4206
4201
|
},
|
|
4207
4202
|
attachItems() {
|
|
4208
|
-
return
|
|
4203
|
+
return ni.map((e) => ({
|
|
4209
4204
|
...e,
|
|
4210
4205
|
label: this.t(e.labelKey),
|
|
4211
4206
|
disabled: e.action === "screenshot" && !he || e.action === "record" && (!he || !Ae)
|
|
@@ -4279,13 +4274,13 @@ const ri = [
|
|
|
4279
4274
|
},
|
|
4280
4275
|
async captureScreenshot() {
|
|
4281
4276
|
if (this.disabled) return;
|
|
4282
|
-
const e = await
|
|
4277
|
+
const e = await Zr();
|
|
4283
4278
|
e && this.$emit("attach", e);
|
|
4284
4279
|
},
|
|
4285
4280
|
async startRecording() {
|
|
4286
4281
|
if (this.recording || this.disabled) return;
|
|
4287
4282
|
this.recordingElapsed = 0;
|
|
4288
|
-
const e = await
|
|
4283
|
+
const e = await ti({
|
|
4289
4284
|
onstart: () => {
|
|
4290
4285
|
this.recording = !0;
|
|
4291
4286
|
},
|
|
@@ -4327,30 +4322,30 @@ const ri = [
|
|
|
4327
4322
|
!e || !this._vvHandler || (e.removeEventListener("resize", this._vvHandler), e.removeEventListener("scroll", this._vvHandler), this._vvHandler = null);
|
|
4328
4323
|
}
|
|
4329
4324
|
}
|
|
4330
|
-
},
|
|
4325
|
+
}, ri = {
|
|
4331
4326
|
key: 0,
|
|
4332
4327
|
class: "wm-rec"
|
|
4333
|
-
},
|
|
4328
|
+
}, ii = { class: "wm-rec__lbl" }, ai = {
|
|
4334
4329
|
key: 1,
|
|
4335
4330
|
class: "wm-compose__menu",
|
|
4336
4331
|
role: "menu"
|
|
4337
|
-
},
|
|
4332
|
+
}, oi = ["disabled", "onClick"], li = { class: "wm-compose__menuIcon" }, ci = {
|
|
4338
4333
|
viewBox: "0 0 24 24",
|
|
4339
4334
|
width: "14",
|
|
4340
4335
|
height: "14",
|
|
4341
4336
|
"aria-hidden": "true"
|
|
4342
|
-
},
|
|
4343
|
-
function
|
|
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) {
|
|
4344
4339
|
return c(), d("div", {
|
|
4345
4340
|
class: O(["wm-compose-wrap", { "wm-compose-wrap--sheet": n.displayMode === "sheet" }]),
|
|
4346
4341
|
style: H(r.kbOffset ? { transform: `translateY(-${r.kbOffset}px)` } : null)
|
|
4347
4342
|
}, [
|
|
4348
|
-
r.recording ? (c(), d("div",
|
|
4343
|
+
r.recording ? (c(), d("div", ri, [
|
|
4349
4344
|
t[8] || (t[8] = a("span", {
|
|
4350
4345
|
class: "wm-rec__dot",
|
|
4351
4346
|
"aria-hidden": "true"
|
|
4352
4347
|
}, null, -1)),
|
|
4353
|
-
a("span",
|
|
4348
|
+
a("span", ii, v(s.t("composer.recording", { time: s.recordingElapsedLabel })), 1),
|
|
4354
4349
|
a("button", {
|
|
4355
4350
|
type: "button",
|
|
4356
4351
|
class: "wm-rec__stop",
|
|
@@ -4373,7 +4368,7 @@ function pi(e, t, n, i, r, s) {
|
|
|
4373
4368
|
class: "wm-compose__overlay",
|
|
4374
4369
|
onClick: t[2] || (t[2] = (o) => r.attachOpen = !1)
|
|
4375
4370
|
})) : y("", !0),
|
|
4376
|
-
r.attachOpen ? (c(), d("div",
|
|
4371
|
+
r.attachOpen ? (c(), d("div", ai, [
|
|
4377
4372
|
(c(!0), d(E, null, F(s.attachItems, (o) => (c(), d("button", {
|
|
4378
4373
|
key: o.action,
|
|
4379
4374
|
type: "button",
|
|
@@ -4381,8 +4376,8 @@ function pi(e, t, n, i, r, s) {
|
|
|
4381
4376
|
disabled: o.disabled,
|
|
4382
4377
|
onClick: (l) => s.onAttachAction(o.action)
|
|
4383
4378
|
}, [
|
|
4384
|
-
a("span",
|
|
4385
|
-
(c(), d("svg",
|
|
4379
|
+
a("span", li, [
|
|
4380
|
+
(c(), d("svg", ci, [
|
|
4386
4381
|
a("path", {
|
|
4387
4382
|
d: o.path,
|
|
4388
4383
|
stroke: "currentColor",
|
|
@@ -4390,11 +4385,11 @@ function pi(e, t, n, i, r, s) {
|
|
|
4390
4385
|
"stroke-linecap": "round",
|
|
4391
4386
|
"stroke-linejoin": "round",
|
|
4392
4387
|
fill: "none"
|
|
4393
|
-
}, null, 8,
|
|
4388
|
+
}, null, 8, di)
|
|
4394
4389
|
]))
|
|
4395
4390
|
]),
|
|
4396
4391
|
a("span", null, v(o.label), 1)
|
|
4397
|
-
], 8,
|
|
4392
|
+
], 8, oi))), 128))
|
|
4398
4393
|
])) : y("", !0),
|
|
4399
4394
|
$(a("textarea", {
|
|
4400
4395
|
ref: "inputEl",
|
|
@@ -4405,10 +4400,10 @@ function pi(e, t, n, i, r, s) {
|
|
|
4405
4400
|
disabled: n.disabled,
|
|
4406
4401
|
onKeydown: t[4] || (t[4] = (...o) => s.onKeydown && s.onKeydown(...o)),
|
|
4407
4402
|
onInput: t[5] || (t[5] = (...o) => s.autosize && s.autosize(...o))
|
|
4408
|
-
}, null, 40,
|
|
4403
|
+
}, null, 40, ui), [
|
|
4409
4404
|
[X, r.local]
|
|
4410
4405
|
]),
|
|
4411
|
-
a("div",
|
|
4406
|
+
a("div", hi, [
|
|
4412
4407
|
a("button", {
|
|
4413
4408
|
type: "button",
|
|
4414
4409
|
class: O(["wm-compose__icon", { "is-open": r.attachOpen }]),
|
|
@@ -4430,7 +4425,7 @@ function pi(e, t, n, i, r, s) {
|
|
|
4430
4425
|
}, [
|
|
4431
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" })
|
|
4432
4427
|
], -1)
|
|
4433
|
-
])], 10,
|
|
4428
|
+
])], 10, mi),
|
|
4434
4429
|
a("button", {
|
|
4435
4430
|
type: "submit",
|
|
4436
4431
|
class: O(["wm-compose__send", { "is-empty": !s.canSend }]),
|
|
@@ -4450,12 +4445,12 @@ function pi(e, t, n, i, r, s) {
|
|
|
4450
4445
|
}, [
|
|
4451
4446
|
a("path", { d: "M22 2L11 13M22 2l-7 20-4-9-9-4 20-7z" })
|
|
4452
4447
|
], -1)
|
|
4453
|
-
])], 10,
|
|
4448
|
+
])], 10, fi)
|
|
4454
4449
|
])
|
|
4455
4450
|
], 34)
|
|
4456
4451
|
], 6);
|
|
4457
4452
|
}
|
|
4458
|
-
const
|
|
4453
|
+
const gi = /* @__PURE__ */ N(si, [["render", _i], ["__scopeId", "data-v-01e81a27"]]), pi = {
|
|
4459
4454
|
name: "WmSuggestionChips",
|
|
4460
4455
|
props: {
|
|
4461
4456
|
items: { type: Array, default: () => [] },
|
|
@@ -4472,8 +4467,8 @@ const vi = /* @__PURE__ */ N(ii, [["render", pi], ["__scopeId", "data-v-01e81a27
|
|
|
4472
4467
|
return this.items.map((e) => (e == null ? void 0 : e.label) || (e == null ? void 0 : e.text) || "").join("§");
|
|
4473
4468
|
}
|
|
4474
4469
|
}
|
|
4475
|
-
},
|
|
4476
|
-
function
|
|
4470
|
+
}, vi = ["onClick"];
|
|
4471
|
+
function yi(e, t, n, i, r, s) {
|
|
4477
4472
|
return n.items.length ? (c(), d("div", {
|
|
4478
4473
|
key: s.batchKey,
|
|
4479
4474
|
class: "wm-chips"
|
|
@@ -4484,10 +4479,10 @@ function bi(e, t, n, i, r, s) {
|
|
|
4484
4479
|
class: "wm-chip",
|
|
4485
4480
|
style: H({ animationDelay: n.baseDelay + l * n.stepDelay + "ms" }),
|
|
4486
4481
|
onClick: (p) => e.$emit("select", o)
|
|
4487
|
-
}, v(o.label), 13,
|
|
4482
|
+
}, v(o.label), 13, vi))), 128))
|
|
4488
4483
|
])) : y("", !0);
|
|
4489
4484
|
}
|
|
4490
|
-
const
|
|
4485
|
+
const wi = /* @__PURE__ */ N(pi, [["render", yi], ["__scopeId", "data-v-47ad8085"]]), bi = {
|
|
4491
4486
|
name: "WmApprovalCard",
|
|
4492
4487
|
components: { AIAvatar: le },
|
|
4493
4488
|
inject: {
|
|
@@ -4531,27 +4526,27 @@ const ki = /* @__PURE__ */ N(yi, [["render", bi], ["__scopeId", "data-v-47ad8085
|
|
|
4531
4526
|
return ((e = this.rejectCallback) == null ? void 0 : e.label) || this.t("approval.reject");
|
|
4532
4527
|
}
|
|
4533
4528
|
}
|
|
4534
|
-
},
|
|
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 = {
|
|
4535
4530
|
key: 0,
|
|
4536
4531
|
class: "wm-approval__detail"
|
|
4537
|
-
},
|
|
4538
|
-
function
|
|
4532
|
+
}, xi = { class: "wm-approval__actions" };
|
|
4533
|
+
function Oi(e, t, n, i, r, s) {
|
|
4539
4534
|
const o = R("AIAvatar");
|
|
4540
|
-
return c(), d("div",
|
|
4541
|
-
a("div",
|
|
4542
|
-
a("div",
|
|
4535
|
+
return c(), d("div", ki, [
|
|
4536
|
+
a("div", Ci, [
|
|
4537
|
+
a("div", Ai, [
|
|
4543
4538
|
V(o, {
|
|
4544
4539
|
size: 24,
|
|
4545
4540
|
name: n.agentName,
|
|
4546
4541
|
"image-url": n.agentAvatarUrl
|
|
4547
4542
|
}, null, 8, ["name", "image-url"])
|
|
4548
4543
|
]),
|
|
4549
|
-
a("div",
|
|
4550
|
-
a("div",
|
|
4551
|
-
n.detail ? (c(), d("div",
|
|
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)
|
|
4552
4547
|
])
|
|
4553
4548
|
]),
|
|
4554
|
-
a("div",
|
|
4549
|
+
a("div", xi, [
|
|
4555
4550
|
s.rejectId ? (c(), d("button", {
|
|
4556
4551
|
key: 0,
|
|
4557
4552
|
type: "button",
|
|
@@ -4567,9 +4562,9 @@ function Li(e, t, n, i, r, s) {
|
|
|
4567
4562
|
])
|
|
4568
4563
|
]);
|
|
4569
4564
|
}
|
|
4570
|
-
const
|
|
4565
|
+
const Ii = /* @__PURE__ */ N(bi, [["render", Oi], ["__scopeId", "data-v-a2bed37e"]]);
|
|
4571
4566
|
let Ee = 0;
|
|
4572
|
-
const
|
|
4567
|
+
const Li = /* @__PURE__ */ new Set([
|
|
4573
4568
|
"text",
|
|
4574
4569
|
"textarea",
|
|
4575
4570
|
"number",
|
|
@@ -4577,7 +4572,7 @@ const Bi = /* @__PURE__ */ new Set([
|
|
|
4577
4572
|
"select",
|
|
4578
4573
|
"multiselect",
|
|
4579
4574
|
"date"
|
|
4580
|
-
]),
|
|
4575
|
+
]), Ei = {
|
|
4581
4576
|
name: "WmFormCard",
|
|
4582
4577
|
components: { AIAvatar: le },
|
|
4583
4578
|
inject: {
|
|
@@ -4607,7 +4602,7 @@ const Bi = /* @__PURE__ */ new Set([
|
|
|
4607
4602
|
// douteux.
|
|
4608
4603
|
normalizedFields() {
|
|
4609
4604
|
var t;
|
|
4610
|
-
return (Array.isArray((t = this.form) == null ? void 0 : t.fields) ? this.form.fields : []).filter((n) => !(!(n != null && n.key) || !(n != null && n.label) || !
|
|
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)));
|
|
4611
4606
|
}
|
|
4612
4607
|
},
|
|
4613
4608
|
created() {
|
|
@@ -4660,47 +4655,47 @@ const Bi = /* @__PURE__ */ new Set([
|
|
|
4660
4655
|
}
|
|
4661
4656
|
}
|
|
4662
4657
|
}
|
|
4663
|
-
},
|
|
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 = {
|
|
4664
4659
|
key: 0,
|
|
4665
4660
|
class: "wm-form__detail"
|
|
4666
|
-
},
|
|
4661
|
+
}, Di = ["for"], ji = {
|
|
4667
4662
|
key: 0,
|
|
4668
4663
|
class: "wm-form__req",
|
|
4669
4664
|
"aria-hidden": "true"
|
|
4670
|
-
},
|
|
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 = {
|
|
4671
4666
|
key: 4,
|
|
4672
4667
|
class: "wm-form__bool"
|
|
4673
|
-
},
|
|
4668
|
+
}, $i = ["id", "onUpdate:modelValue", "disabled"], Wi = ["id", "onUpdate:modelValue", "required", "disabled"], Gi = {
|
|
4674
4669
|
value: "",
|
|
4675
4670
|
disabled: ""
|
|
4676
|
-
},
|
|
4671
|
+
}, Yi = ["value"], Ji = {
|
|
4677
4672
|
key: 6,
|
|
4678
4673
|
class: "wm-form__multi"
|
|
4679
|
-
},
|
|
4674
|
+
}, Qi = ["value", "checked", "disabled", "onChange"], Xi = {
|
|
4680
4675
|
key: 0,
|
|
4681
4676
|
class: "wm-form__err"
|
|
4682
|
-
},
|
|
4677
|
+
}, Zi = ["disabled"], ea = {
|
|
4683
4678
|
key: 0,
|
|
4684
4679
|
class: "wm-form__spinner",
|
|
4685
4680
|
"aria-hidden": "true"
|
|
4686
|
-
},
|
|
4681
|
+
}, ta = {
|
|
4687
4682
|
key: 2,
|
|
4688
4683
|
class: "wm-form__doneLbl"
|
|
4689
4684
|
};
|
|
4690
|
-
function
|
|
4685
|
+
function na(e, t, n, i, r, s) {
|
|
4691
4686
|
const o = R("AIAvatar");
|
|
4692
|
-
return c(), d("div",
|
|
4693
|
-
a("div",
|
|
4694
|
-
a("div",
|
|
4687
|
+
return c(), d("div", Bi, [
|
|
4688
|
+
a("div", Ri, [
|
|
4689
|
+
a("div", Ni, [
|
|
4695
4690
|
V(o, {
|
|
4696
4691
|
size: 24,
|
|
4697
4692
|
name: n.agentName,
|
|
4698
4693
|
"image-url": n.agentAvatarUrl
|
|
4699
4694
|
}, null, 8, ["name", "image-url"])
|
|
4700
4695
|
]),
|
|
4701
|
-
a("div",
|
|
4702
|
-
a("div",
|
|
4703
|
-
n.form.description ? (c(), d("div",
|
|
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)
|
|
4704
4699
|
])
|
|
4705
4700
|
]),
|
|
4706
4701
|
a("form", {
|
|
@@ -4716,8 +4711,8 @@ function ra(e, t, n, i, r, s) {
|
|
|
4716
4711
|
class: "wm-form__label"
|
|
4717
4712
|
}, [
|
|
4718
4713
|
ye(v(l.label), 1),
|
|
4719
|
-
l.required ? (c(), d("span",
|
|
4720
|
-
], 8,
|
|
4714
|
+
l.required ? (c(), d("span", ji, "*")) : y("", !0)
|
|
4715
|
+
], 8, Di),
|
|
4721
4716
|
l.type === "text" ? $((c(), d("input", {
|
|
4722
4717
|
key: 0,
|
|
4723
4718
|
id: `wm-f-${r._uid}-${l.key}`,
|
|
@@ -4727,7 +4722,7 @@ function ra(e, t, n, i, r, s) {
|
|
|
4727
4722
|
placeholder: l.placeholder || "",
|
|
4728
4723
|
required: l.required,
|
|
4729
4724
|
disabled: n.readOnly || r.busy
|
|
4730
|
-
}, null, 8,
|
|
4725
|
+
}, null, 8, Hi)), [
|
|
4731
4726
|
[X, r.values[l.key]]
|
|
4732
4727
|
]) : l.type === "textarea" ? $((c(), d("textarea", {
|
|
4733
4728
|
key: 1,
|
|
@@ -4738,7 +4733,7 @@ function ra(e, t, n, i, r, s) {
|
|
|
4738
4733
|
placeholder: l.placeholder || "",
|
|
4739
4734
|
required: l.required,
|
|
4740
4735
|
disabled: n.readOnly || r.busy
|
|
4741
|
-
}, null, 8,
|
|
4736
|
+
}, null, 8, zi)), [
|
|
4742
4737
|
[X, r.values[l.key]]
|
|
4743
4738
|
]) : l.type === "number" ? $((c(), d("input", {
|
|
4744
4739
|
key: 2,
|
|
@@ -4749,7 +4744,7 @@ function ra(e, t, n, i, r, s) {
|
|
|
4749
4744
|
placeholder: l.placeholder || "",
|
|
4750
4745
|
required: l.required,
|
|
4751
4746
|
disabled: n.readOnly || r.busy
|
|
4752
|
-
}, null, 8,
|
|
4747
|
+
}, null, 8, qi)), [
|
|
4753
4748
|
[
|
|
4754
4749
|
X,
|
|
4755
4750
|
r.values[l.key],
|
|
@@ -4764,15 +4759,15 @@ function ra(e, t, n, i, r, s) {
|
|
|
4764
4759
|
class: "wm-form__input",
|
|
4765
4760
|
required: l.required,
|
|
4766
4761
|
disabled: n.readOnly || r.busy
|
|
4767
|
-
}, null, 8,
|
|
4762
|
+
}, null, 8, Vi)), [
|
|
4768
4763
|
[X, r.values[l.key]]
|
|
4769
|
-
]) : l.type === "boolean" ? (c(), d("label",
|
|
4764
|
+
]) : l.type === "boolean" ? (c(), d("label", Ki, [
|
|
4770
4765
|
$(a("input", {
|
|
4771
4766
|
id: `wm-f-${r._uid}-${l.key}`,
|
|
4772
4767
|
"onUpdate:modelValue": (p) => r.values[l.key] = p,
|
|
4773
4768
|
type: "checkbox",
|
|
4774
4769
|
disabled: n.readOnly || r.busy
|
|
4775
|
-
}, null, 8,
|
|
4770
|
+
}, null, 8, $i), [
|
|
4776
4771
|
[ze, r.values[l.key]]
|
|
4777
4772
|
]),
|
|
4778
4773
|
a("span", null, v(l.placeholder || s.t("common.yes")), 1)
|
|
@@ -4784,14 +4779,14 @@ function ra(e, t, n, i, r, s) {
|
|
|
4784
4779
|
required: l.required,
|
|
4785
4780
|
disabled: n.readOnly || r.busy
|
|
4786
4781
|
}, [
|
|
4787
|
-
a("option",
|
|
4782
|
+
a("option", Gi, v(l.placeholder || s.t("form.choose")), 1),
|
|
4788
4783
|
(c(!0), d(E, null, F(l.options, (p) => (c(), d("option", {
|
|
4789
4784
|
key: p.value,
|
|
4790
4785
|
value: p.value
|
|
4791
|
-
}, v(p.label), 9,
|
|
4792
|
-
], 8,
|
|
4786
|
+
}, v(p.label), 9, Yi))), 128))
|
|
4787
|
+
], 8, Wi)), [
|
|
4793
4788
|
[qe, r.values[l.key]]
|
|
4794
|
-
]) : l.type === "multiselect" ? (c(), d("div",
|
|
4789
|
+
]) : l.type === "multiselect" ? (c(), d("div", Ji, [
|
|
4795
4790
|
(c(!0), d(E, null, F(l.options, (p) => (c(), d("label", {
|
|
4796
4791
|
key: p.value,
|
|
4797
4792
|
class: "wm-form__multiItem"
|
|
@@ -4806,25 +4801,25 @@ function ra(e, t, n, i, r, s) {
|
|
|
4806
4801
|
p.value,
|
|
4807
4802
|
k.target.checked
|
|
4808
4803
|
)
|
|
4809
|
-
}, null, 40,
|
|
4804
|
+
}, null, 40, Qi),
|
|
4810
4805
|
a("span", null, v(p.label), 1)
|
|
4811
4806
|
]))), 128))
|
|
4812
4807
|
])) : y("", !0)
|
|
4813
4808
|
]))), 128)),
|
|
4814
|
-
r.error ? (c(), d("div",
|
|
4815
|
-
n.readOnly ? (c(), d("div",
|
|
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", {
|
|
4816
4811
|
key: 1,
|
|
4817
4812
|
type: "submit",
|
|
4818
4813
|
class: "wm-form__submit",
|
|
4819
4814
|
disabled: r.busy
|
|
4820
4815
|
}, [
|
|
4821
|
-
r.busy ? (c(), d("span",
|
|
4816
|
+
r.busy ? (c(), d("span", ea)) : y("", !0),
|
|
4822
4817
|
a("span", null, v(r.busy ? s.t("common.sending") : n.form.submit_label || s.t("common.send")), 1)
|
|
4823
|
-
], 8,
|
|
4818
|
+
], 8, Zi))
|
|
4824
4819
|
], 32)
|
|
4825
4820
|
]);
|
|
4826
4821
|
}
|
|
4827
|
-
const
|
|
4822
|
+
const sa = /* @__PURE__ */ N(Ei, [["render", na], ["__scopeId", "data-v-fe65cc56"]]), ra = {
|
|
4828
4823
|
name: "WmFeedback",
|
|
4829
4824
|
inject: {
|
|
4830
4825
|
// Translator shared by the Messenger shell; French fallback when
|
|
@@ -4858,13 +4853,13 @@ const ia = /* @__PURE__ */ N(Ri, [["render", ra], ["__scopeId", "data-v-fe65cc56
|
|
|
4858
4853
|
!this.sel || this.busy || this.$emit("submit", { rating: this.sel });
|
|
4859
4854
|
}
|
|
4860
4855
|
}
|
|
4861
|
-
},
|
|
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 = {
|
|
4862
4857
|
key: 1,
|
|
4863
4858
|
class: "wm-fb__done"
|
|
4864
|
-
},
|
|
4865
|
-
function
|
|
4866
|
-
return c(), d("div",
|
|
4867
|
-
n.done ? (c(), d("div",
|
|
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, [
|
|
4868
4863
|
t[1] || (t[1] = a("div", { class: "wm-fb__check" }, [
|
|
4869
4864
|
a("svg", {
|
|
4870
4865
|
width: "16",
|
|
@@ -4880,32 +4875,32 @@ function va(e, t, n, i, r, s) {
|
|
|
4880
4875
|
a("path", { d: "M20 6L9 17l-5-5" })
|
|
4881
4876
|
])
|
|
4882
4877
|
], -1)),
|
|
4883
|
-
a("div",
|
|
4884
|
-
a("div",
|
|
4878
|
+
a("div", fa, v(s.t("feedback.doneTitle")), 1),
|
|
4879
|
+
a("div", _a, v(s.t("feedback.doneSubtitle")), 1)
|
|
4885
4880
|
])) : (c(), d(E, { key: 0 }, [
|
|
4886
|
-
a("div",
|
|
4887
|
-
a("div",
|
|
4888
|
-
a("div",
|
|
4881
|
+
a("div", aa, v(s.t("feedback.question")), 1),
|
|
4882
|
+
a("div", oa, v(s.t("feedback.subtitle")), 1),
|
|
4883
|
+
a("div", la, [
|
|
4889
4884
|
(c(!0), d(E, null, F(s.options, (o) => (c(), d("button", {
|
|
4890
4885
|
key: o.v,
|
|
4891
4886
|
type: "button",
|
|
4892
4887
|
class: O(["wm-fb__opt", { "is-selected": r.sel === o.v }]),
|
|
4893
4888
|
onClick: (l) => r.sel = o.v
|
|
4894
4889
|
}, [
|
|
4895
|
-
a("span",
|
|
4896
|
-
a("span",
|
|
4897
|
-
], 10,
|
|
4890
|
+
a("span", da, v(o.e), 1),
|
|
4891
|
+
a("span", ua, v(o.l), 1)
|
|
4892
|
+
], 10, ca))), 128))
|
|
4898
4893
|
]),
|
|
4899
4894
|
a("button", {
|
|
4900
4895
|
type: "button",
|
|
4901
4896
|
class: "wm-fb__send",
|
|
4902
4897
|
disabled: !r.sel || n.busy,
|
|
4903
4898
|
onClick: t[0] || (t[0] = (...o) => s.onSend && s.onSend(...o))
|
|
4904
|
-
}, v(n.busy ? s.t("common.sending") : s.t("feedback.submit")), 9,
|
|
4899
|
+
}, v(n.busy ? s.t("common.sending") : s.t("feedback.submit")), 9, ha)
|
|
4905
4900
|
], 64))
|
|
4906
4901
|
]);
|
|
4907
4902
|
}
|
|
4908
|
-
const
|
|
4903
|
+
const pa = /* @__PURE__ */ N(ra, [["render", ga], ["__scopeId", "data-v-9b630564"]]), va = {
|
|
4909
4904
|
name: "WmMoreMenu",
|
|
4910
4905
|
inject: {
|
|
4911
4906
|
// Translator shared by the Messenger shell; French fallback when
|
|
@@ -4948,24 +4943,24 @@ const ya = /* @__PURE__ */ N(aa, [["render", va], ["__scopeId", "data-v-9b630564
|
|
|
4948
4943
|
this.browserNotifOn = !this.browserNotifOn, this.$emit("browser-notif-toggle", this.browserNotifOn);
|
|
4949
4944
|
}
|
|
4950
4945
|
}
|
|
4951
|
-
},
|
|
4946
|
+
}, ya = { class: "wm-mm" }, wa = {
|
|
4952
4947
|
class: "wm-mm__pop",
|
|
4953
4948
|
role: "menu"
|
|
4954
|
-
},
|
|
4949
|
+
}, ba = {
|
|
4955
4950
|
key: 0,
|
|
4956
4951
|
class: "wm-mm__section"
|
|
4957
|
-
},
|
|
4952
|
+
}, ka = { class: "wm-mm__label" }, Ca = { class: "wm-mm__label" }, Aa = {
|
|
4958
4953
|
key: 1,
|
|
4959
4954
|
class: "wm-mm__sep"
|
|
4960
|
-
},
|
|
4961
|
-
function
|
|
4962
|
-
return c(), d("div",
|
|
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, [
|
|
4963
4958
|
a("div", {
|
|
4964
4959
|
class: "wm-mm__scrim",
|
|
4965
4960
|
onClick: t[0] || (t[0] = (o) => e.$emit("close"))
|
|
4966
4961
|
}),
|
|
4967
|
-
a("div",
|
|
4968
|
-
n.canRename || n.canExport ? (c(), d("div",
|
|
4962
|
+
a("div", wa, [
|
|
4963
|
+
n.canRename || n.canExport ? (c(), d("div", ba, [
|
|
4969
4964
|
n.canRename ? (c(), d("button", {
|
|
4970
4965
|
key: 0,
|
|
4971
4966
|
type: "button",
|
|
@@ -4988,7 +4983,7 @@ function Ba(e, t, n, i, r, s) {
|
|
|
4988
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" })
|
|
4989
4984
|
])
|
|
4990
4985
|
], -1)),
|
|
4991
|
-
a("span",
|
|
4986
|
+
a("span", ka, v(s.t("moreMenu.editTitle")), 1)
|
|
4992
4987
|
])) : y("", !0),
|
|
4993
4988
|
n.canExport ? (c(), d("button", {
|
|
4994
4989
|
key: 1,
|
|
@@ -5011,12 +5006,12 @@ function Ba(e, t, n, i, r, s) {
|
|
|
5011
5006
|
a("path", { d: "M4 12v8a2 2 0 002 2h12a2 2 0 002-2v-8M16 6l-4-4-4 4M12 2v13" })
|
|
5012
5007
|
])
|
|
5013
5008
|
], -1)),
|
|
5014
|
-
a("span",
|
|
5009
|
+
a("span", Ca, v(s.t("moreMenu.exportTranscript")), 1),
|
|
5015
5010
|
t[9] || (t[9] = a("span", { class: "wm-mm__hint" }, ".txt", -1))
|
|
5016
5011
|
])) : y("", !0)
|
|
5017
5012
|
])) : y("", !0),
|
|
5018
|
-
n.canRename || n.canExport ? (c(), d("div",
|
|
5019
|
-
a("div",
|
|
5013
|
+
n.canRename || n.canExport ? (c(), d("div", Aa)) : y("", !0),
|
|
5014
|
+
a("div", Sa, [
|
|
5020
5015
|
a("button", {
|
|
5021
5016
|
type: "button",
|
|
5022
5017
|
class: "wm-mm__item",
|
|
@@ -5038,7 +5033,7 @@ function Ba(e, t, n, i, r, s) {
|
|
|
5038
5033
|
a("path", { d: "M15.54 8.46a5 5 0 010 7.07M19.07 4.93a10 10 0 010 14.14" })
|
|
5039
5034
|
])
|
|
5040
5035
|
], -1)),
|
|
5041
|
-
a("span",
|
|
5036
|
+
a("span", Ma, v(s.t("moreMenu.sound")), 1),
|
|
5042
5037
|
a("span", {
|
|
5043
5038
|
class: O(["wm-mm__toggle", { "wm-mm__toggle--on": r.soundOn }])
|
|
5044
5039
|
}, [...t[10] || (t[10] = [
|
|
@@ -5065,7 +5060,7 @@ function Ba(e, t, n, i, r, s) {
|
|
|
5065
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" })
|
|
5066
5061
|
])
|
|
5067
5062
|
], -1)),
|
|
5068
|
-
a("span",
|
|
5063
|
+
a("span", Ta, v(s.t("moreMenu.browserNotifications")), 1),
|
|
5069
5064
|
a("span", {
|
|
5070
5065
|
class: O(["wm-mm__toggle", { "wm-mm__toggle--on": r.browserNotifOn }])
|
|
5071
5066
|
}, [...t[12] || (t[12] = [
|
|
@@ -5074,7 +5069,7 @@ function Ba(e, t, n, i, r, s) {
|
|
|
5074
5069
|
])
|
|
5075
5070
|
]),
|
|
5076
5071
|
t[16] || (t[16] = a("div", { class: "wm-mm__sep" }, null, -1)),
|
|
5077
|
-
a("div",
|
|
5072
|
+
a("div", xa, [
|
|
5078
5073
|
n.statusUrl ? (c(), d("button", {
|
|
5079
5074
|
key: 0,
|
|
5080
5075
|
type: "button",
|
|
@@ -5096,7 +5091,7 @@ function Ba(e, t, n, i, r, s) {
|
|
|
5096
5091
|
a("path", { d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zM10 6v4l3 2" })
|
|
5097
5092
|
])
|
|
5098
5093
|
], -1)),
|
|
5099
|
-
a("span",
|
|
5094
|
+
a("span", Oa, v(s.t("moreMenu.serviceStatus")), 1)
|
|
5100
5095
|
])) : y("", !0),
|
|
5101
5096
|
n.helpUrl ? (c(), d("button", {
|
|
5102
5097
|
key: 1,
|
|
@@ -5119,13 +5114,13 @@ function Ba(e, t, n, i, r, s) {
|
|
|
5119
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" })
|
|
5120
5115
|
])
|
|
5121
5116
|
], -1)),
|
|
5122
|
-
a("span",
|
|
5117
|
+
a("span", Ia, v(s.t("moreMenu.helpCenter")), 1)
|
|
5123
5118
|
])) : y("", !0)
|
|
5124
5119
|
])
|
|
5125
5120
|
])
|
|
5126
5121
|
]);
|
|
5127
5122
|
}
|
|
5128
|
-
const
|
|
5123
|
+
const Ea = /* @__PURE__ */ N(va, [["render", La], ["__scopeId", "data-v-76281e95"]]), Ba = {
|
|
5129
5124
|
name: "WmRenameDialog",
|
|
5130
5125
|
inject: {
|
|
5131
5126
|
// Translator shared by the Messenger shell; French fallback when
|
|
@@ -5167,20 +5162,20 @@ const Ra = /* @__PURE__ */ N(wa, [["render", Ba], ["__scopeId", "data-v-76281e95
|
|
|
5167
5162
|
this.canSubmit && this.$emit("submit", this.value.trim());
|
|
5168
5163
|
}
|
|
5169
5164
|
}
|
|
5170
|
-
},
|
|
5165
|
+
}, Ra = { class: "wm-dialog" }, Na = {
|
|
5171
5166
|
class: "wm-dialog__card",
|
|
5172
5167
|
role: "dialog",
|
|
5173
5168
|
"aria-modal": "true"
|
|
5174
|
-
},
|
|
5175
|
-
function
|
|
5176
|
-
return c(), d("div",
|
|
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, [
|
|
5177
5172
|
a("div", {
|
|
5178
5173
|
class: "wm-dialog__scrim",
|
|
5179
5174
|
onClick: t[0] || (t[0] = (o) => e.$emit("close"))
|
|
5180
5175
|
}),
|
|
5181
|
-
a("div",
|
|
5182
|
-
a("div",
|
|
5183
|
-
a("div",
|
|
5176
|
+
a("div", Na, [
|
|
5177
|
+
a("div", Pa, [
|
|
5178
|
+
a("div", Ua, v(n.title || s.t("rename.title")), 1),
|
|
5184
5179
|
a("button", {
|
|
5185
5180
|
type: "button",
|
|
5186
5181
|
class: "wm-dialog__close",
|
|
@@ -5200,9 +5195,9 @@ function Ka(e, t, n, i, r, s) {
|
|
|
5200
5195
|
}, [
|
|
5201
5196
|
a("path", { d: "M18 6L6 18M6 6l12 12" })
|
|
5202
5197
|
], -1)
|
|
5203
|
-
])], 8,
|
|
5198
|
+
])], 8, Fa)
|
|
5204
5199
|
]),
|
|
5205
|
-
a("div",
|
|
5200
|
+
a("div", Da, [
|
|
5206
5201
|
$(a("input", {
|
|
5207
5202
|
ref: "input",
|
|
5208
5203
|
"onUpdate:modelValue": t[2] || (t[2] = (o) => r.value = o),
|
|
@@ -5214,11 +5209,11 @@ function Ka(e, t, n, i, r, s) {
|
|
|
5214
5209
|
t[3] || (t[3] = ue(G((...o) => s.onSubmit && s.onSubmit(...o), ["prevent"]), ["enter"])),
|
|
5215
5210
|
t[4] || (t[4] = ue(G((o) => e.$emit("close"), ["prevent"]), ["esc"]))
|
|
5216
5211
|
]
|
|
5217
|
-
}, null, 40,
|
|
5212
|
+
}, null, 40, ja), [
|
|
5218
5213
|
[X, r.value]
|
|
5219
5214
|
])
|
|
5220
5215
|
]),
|
|
5221
|
-
a("div",
|
|
5216
|
+
a("div", Ha, [
|
|
5222
5217
|
a("button", {
|
|
5223
5218
|
type: "button",
|
|
5224
5219
|
class: "wm-dialog__btn",
|
|
@@ -5229,25 +5224,25 @@ function Ka(e, t, n, i, r, s) {
|
|
|
5229
5224
|
class: "wm-dialog__btn wm-dialog__btn--primary",
|
|
5230
5225
|
disabled: !s.canSubmit,
|
|
5231
5226
|
onClick: t[6] || (t[6] = (...o) => s.onSubmit && s.onSubmit(...o))
|
|
5232
|
-
}, v(s.t("common.save")), 9,
|
|
5227
|
+
}, v(s.t("common.save")), 9, za)
|
|
5233
5228
|
])
|
|
5234
5229
|
])
|
|
5235
5230
|
]);
|
|
5236
5231
|
}
|
|
5237
|
-
const
|
|
5232
|
+
const Va = /* @__PURE__ */ N(Ba, [["render", qa], ["__scopeId", "data-v-6d5f94a8"]]), Be = "ww-messenger-tokens", Ka = {
|
|
5238
5233
|
name: "Messenger",
|
|
5239
5234
|
components: {
|
|
5240
5235
|
Launcher: Ut,
|
|
5241
5236
|
Header: cn,
|
|
5242
|
-
Onboarding:
|
|
5243
|
-
MessageList:
|
|
5244
|
-
Composer:
|
|
5245
|
-
SuggestionChips:
|
|
5246
|
-
ApprovalCard:
|
|
5247
|
-
FormCard:
|
|
5248
|
-
Feedback:
|
|
5249
|
-
MoreMenu:
|
|
5250
|
-
RenameDialog:
|
|
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
|
|
5251
5246
|
},
|
|
5252
5247
|
mixins: [
|
|
5253
5248
|
lt,
|
|
@@ -6246,28 +6241,28 @@ const $a = /* @__PURE__ */ N(Na, [["render", Ka], ["__scopeId", "data-v-6d5f94a8
|
|
|
6246
6241
|
}
|
|
6247
6242
|
}
|
|
6248
6243
|
}
|
|
6249
|
-
},
|
|
6244
|
+
}, $a = {
|
|
6250
6245
|
key: 0,
|
|
6251
6246
|
class: "wm-loading",
|
|
6252
6247
|
"aria-busy": "true",
|
|
6253
6248
|
"aria-live": "polite"
|
|
6254
|
-
},
|
|
6249
|
+
}, Wa = ["aria-label"], Ga = {
|
|
6255
6250
|
key: 0,
|
|
6256
6251
|
class: "wm-state"
|
|
6257
|
-
},
|
|
6252
|
+
}, Ya = { class: "wm-state__err" }, Ja = { class: "wm-state__errTitle" }, Qa = { class: "wm-state__errSub" }, Xa = { class: "wm-bottom" }, Za = {
|
|
6258
6253
|
key: 0,
|
|
6259
6254
|
ref: "floatEl",
|
|
6260
6255
|
class: "wm-float"
|
|
6261
|
-
},
|
|
6256
|
+
}, eo = {
|
|
6262
6257
|
key: 1,
|
|
6263
6258
|
class: "wm-actionWait",
|
|
6264
6259
|
role: "status",
|
|
6265
6260
|
"aria-live": "polite"
|
|
6266
|
-
},
|
|
6261
|
+
}, to = { class: "wm-actionWait__lbl" }, no = {
|
|
6267
6262
|
key: 2,
|
|
6268
6263
|
class: "wm-attached"
|
|
6269
|
-
},
|
|
6270
|
-
function
|
|
6264
|
+
}, so = ["aria-label", "onClick"];
|
|
6265
|
+
function ro(e, t, n, i, r, s) {
|
|
6271
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");
|
|
6272
6267
|
return c(), d("div", {
|
|
6273
6268
|
class: O(["wm-root", `wm-root--${n.displayMode}`]),
|
|
@@ -6293,7 +6288,7 @@ function ao(e, t, n, i, r, s) {
|
|
|
6293
6288
|
"aria-label": "Messenger",
|
|
6294
6289
|
onClick: t[5] || (t[5] = (...I) => s.onPanelClick && s.onPanelClick(...I))
|
|
6295
6290
|
}, [
|
|
6296
|
-
!s.ready && !s.error ? (c(), d("div",
|
|
6291
|
+
!s.ready && !s.error ? (c(), d("div", $a, [
|
|
6297
6292
|
s.isEmbedded ? y("", !0) : (c(), d("button", {
|
|
6298
6293
|
key: 0,
|
|
6299
6294
|
type: "button",
|
|
@@ -6314,7 +6309,7 @@ function ao(e, t, n, i, r, s) {
|
|
|
6314
6309
|
}, [
|
|
6315
6310
|
a("path", { d: "M18 6L6 18M6 6l12 12" })
|
|
6316
6311
|
], -1)
|
|
6317
|
-
])], 8,
|
|
6312
|
+
])], 8, Wa)),
|
|
6318
6313
|
t[7] || (t[7] = a("div", {
|
|
6319
6314
|
class: "wm-loading__spinner",
|
|
6320
6315
|
"aria-hidden": "true"
|
|
@@ -6334,8 +6329,8 @@ function ao(e, t, n, i, r, s) {
|
|
|
6334
6329
|
onMore: s.toggleMore,
|
|
6335
6330
|
onClose: s.close
|
|
6336
6331
|
}, null, 8, ["title", "team-members", "response-label", "show-identity", "show-back", "show-close", "more-active", "agent-name", "agent-avatar-url", "onBack", "onMore", "onClose"]),
|
|
6337
|
-
s.error ? (c(), d("div",
|
|
6338
|
-
a("div",
|
|
6332
|
+
s.error ? (c(), d("div", Ga, [
|
|
6333
|
+
a("div", Ya, [
|
|
6339
6334
|
t[8] || (t[8] = a("div", { class: "wm-state__errIcon" }, [
|
|
6340
6335
|
a("svg", {
|
|
6341
6336
|
width: "14",
|
|
@@ -6352,8 +6347,8 @@ function ao(e, t, n, i, r, s) {
|
|
|
6352
6347
|
])
|
|
6353
6348
|
], -1)),
|
|
6354
6349
|
a("div", null, [
|
|
6355
|
-
a("div",
|
|
6356
|
-
a("div",
|
|
6350
|
+
a("div", Ja, v(s.t("error.connectionFailed")), 1),
|
|
6351
|
+
a("div", Qa, v(s.error), 1)
|
|
6357
6352
|
])
|
|
6358
6353
|
])
|
|
6359
6354
|
])) : s.currentConv ? (c(), d(E, { key: 2 }, [
|
|
@@ -6371,8 +6366,8 @@ function ao(e, t, n, i, r, s) {
|
|
|
6371
6366
|
"ai-agent-avatar-url": s.agentAvatarUrl,
|
|
6372
6367
|
onLoadMore: s.onLoadMore
|
|
6373
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"]),
|
|
6374
|
-
a("div",
|
|
6375
|
-
s.floatVisible ? (c(), d("div",
|
|
6369
|
+
a("div", Xa, [
|
|
6370
|
+
s.floatVisible ? (c(), d("div", Za, [
|
|
6376
6371
|
s.approvalReady ? (c(), P(w, {
|
|
6377
6372
|
key: 0,
|
|
6378
6373
|
action: s.approvalTitle,
|
|
@@ -6398,12 +6393,12 @@ function ao(e, t, n, i, r, s) {
|
|
|
6398
6393
|
onSelect: s.onSuggestion
|
|
6399
6394
|
}, null, 8, ["items", "onSelect"]))
|
|
6400
6395
|
], 512)) : y("", !0),
|
|
6401
|
-
s.actionInFlight ? (c(), d("div",
|
|
6396
|
+
s.actionInFlight ? (c(), d("div", eo, [
|
|
6402
6397
|
t[9] || (t[9] = a("span", {
|
|
6403
6398
|
class: "wm-actionWait__spinner",
|
|
6404
6399
|
"aria-hidden": "true"
|
|
6405
6400
|
}, null, -1)),
|
|
6406
|
-
a("span",
|
|
6401
|
+
a("span", to, v(s.t("action.inProgress", {
|
|
6407
6402
|
name: s.actionInFlightName
|
|
6408
6403
|
})), 1)
|
|
6409
6404
|
])) : (c(), P(z, {
|
|
@@ -6439,7 +6434,7 @@ function ao(e, t, n, i, r, s) {
|
|
|
6439
6434
|
onClose: t[3] || (t[3] = (I) => r.renameDialogOpen = !1),
|
|
6440
6435
|
onSubmit: s.onRenameSubmit
|
|
6441
6436
|
}, null, 8, ["initial-value", "title", "onSubmit"])) : y("", !0),
|
|
6442
|
-
r.pendingAttachments.length ? (c(), d("div",
|
|
6437
|
+
r.pendingAttachments.length ? (c(), d("div", no, [
|
|
6443
6438
|
(c(!0), d(E, null, F(r.pendingAttachments, (I, q) => (c(), d("div", {
|
|
6444
6439
|
key: q,
|
|
6445
6440
|
class: "wm-attached__chip"
|
|
@@ -6476,7 +6471,7 @@ function ao(e, t, n, i, r, s) {
|
|
|
6476
6471
|
}, [
|
|
6477
6472
|
a("path", { d: "M18 6L6 18M6 6l12 12" })
|
|
6478
6473
|
], -1)
|
|
6479
|
-
])], 8,
|
|
6474
|
+
])], 8, so)
|
|
6480
6475
|
]))), 128))
|
|
6481
6476
|
])) : y("", !0)
|
|
6482
6477
|
], 64)) : (c(), P(p, {
|
|
@@ -6509,53 +6504,53 @@ function ao(e, t, n, i, r, s) {
|
|
|
6509
6504
|
], 6)) : y("", !0)
|
|
6510
6505
|
], 6);
|
|
6511
6506
|
}
|
|
6512
|
-
const
|
|
6507
|
+
const oo = /* @__PURE__ */ N(Ka, [["render", ro], ["__scopeId", "data-v-0d59093c"]]), lo = "0.5.42";
|
|
6513
6508
|
export {
|
|
6514
6509
|
le as AIAvatar,
|
|
6515
6510
|
_e as AVATAR_COLORS,
|
|
6516
|
-
|
|
6517
|
-
|
|
6518
|
-
|
|
6519
|
-
|
|
6520
|
-
|
|
6521
|
-
|
|
6522
|
-
|
|
6523
|
-
|
|
6524
|
-
|
|
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,
|
|
6525
6520
|
et as DEFAULT_BASE_URL,
|
|
6526
6521
|
ae as DEFAULT_LANGUAGE,
|
|
6527
|
-
|
|
6528
|
-
|
|
6522
|
+
pa as Feedback,
|
|
6523
|
+
sa as FormCard,
|
|
6529
6524
|
cn as Header,
|
|
6530
6525
|
Ce as HumanAvatar,
|
|
6531
6526
|
Ut as Launcher,
|
|
6532
6527
|
Ae as MEDIA_RECORDER_SUPPORTED,
|
|
6533
|
-
|
|
6534
|
-
|
|
6535
|
-
|
|
6536
|
-
|
|
6528
|
+
Qr as MessageList,
|
|
6529
|
+
oo as Messenger,
|
|
6530
|
+
Ea as MoreMenu,
|
|
6531
|
+
rs as Onboarding,
|
|
6537
6532
|
he as SCREEN_CAPTURE_SUPPORTED,
|
|
6538
6533
|
tt as SUPPORTED_LANGUAGES,
|
|
6539
|
-
|
|
6534
|
+
wi as SuggestionChips,
|
|
6540
6535
|
Yt as TeamAvatars,
|
|
6541
|
-
|
|
6542
|
-
|
|
6536
|
+
Cr as Typing,
|
|
6537
|
+
lo as VERSION,
|
|
6543
6538
|
we as avatarColor,
|
|
6544
6539
|
be as avatarInitials,
|
|
6545
|
-
|
|
6540
|
+
Zr as captureScreenshotFile,
|
|
6546
6541
|
j as colors,
|
|
6547
6542
|
Xe as createStore,
|
|
6548
6543
|
D as createTranslator,
|
|
6549
6544
|
Ge as createTransport,
|
|
6550
6545
|
re as dateLocale,
|
|
6551
|
-
|
|
6546
|
+
oo as default,
|
|
6552
6547
|
ve as formatTime,
|
|
6553
|
-
|
|
6554
|
-
|
|
6548
|
+
ao as guessAttachmentKind,
|
|
6549
|
+
Xr as pickRecorderMime,
|
|
6555
6550
|
un as renderInlineMarkdown,
|
|
6556
6551
|
hn as renderMarkdown,
|
|
6557
6552
|
ke as resolveLanguage,
|
|
6558
|
-
|
|
6553
|
+
ti as startScreenRecording,
|
|
6559
6554
|
Ze as tokensCss,
|
|
6560
6555
|
Qe as uuid,
|
|
6561
6556
|
Qe as v4
|