@_solaris/messenger-widget 0.6.21 → 0.6.23
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 +5 -5
- package/dist/messenger.cjs +1 -1
- package/dist/messenger.js +392 -376
- package/dist/snippet.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/messenger.js
CHANGED
|
@@ -2316,7 +2316,10 @@ const _n = /* @__PURE__ */ F(nn, [["render", fn], ["__scopeId", "data-v-27232009
|
|
|
2316
2316
|
busy: { type: Boolean, default: !1 },
|
|
2317
2317
|
// Flipped on by the shell when the user starts a conversation from
|
|
2318
2318
|
// the input. Triggers the launch choreography (cf. `runLaunch`).
|
|
2319
|
-
launching: { type: Boolean, default: !1 }
|
|
2319
|
+
launching: { type: Boolean, default: !1 },
|
|
2320
|
+
// Bot's opening line (widget.welcome_message). Previewed as the first
|
|
2321
|
+
// message while the user types (cf. `typing`).
|
|
2322
|
+
welcomeMessage: { type: String, default: "" }
|
|
2320
2323
|
},
|
|
2321
2324
|
emits: ["start", "launched", "select", "resume", "view-history"],
|
|
2322
2325
|
data() {
|
|
@@ -2348,6 +2351,11 @@ const _n = /* @__PURE__ */ F(nn, [["render", fn], ["__scopeId", "data-v-27232009
|
|
|
2348
2351
|
canStart() {
|
|
2349
2352
|
return !this.busy && !!this.starterText.trim();
|
|
2350
2353
|
},
|
|
2354
|
+
// The user is actively composing on the home screen (focused + has
|
|
2355
|
+
// text). Drives the title→welcome-message crossfade.
|
|
2356
|
+
typing() {
|
|
2357
|
+
return this.inputFocused && !!this.starterText.trim();
|
|
2358
|
+
},
|
|
2351
2359
|
heroTitle() {
|
|
2352
2360
|
return this.title ? this.title : this.agentName ? this.t("onboarding.greetingNamed", { name: this.agentName }) : this.t("onboarding.greeting");
|
|
2353
2361
|
},
|
|
@@ -2532,19 +2540,22 @@ const _n = /* @__PURE__ */ F(nn, [["render", fn], ["__scopeId", "data-v-27232009
|
|
|
2532
2540
|
viewBox: "0 0 180 180",
|
|
2533
2541
|
fill: "none",
|
|
2534
2542
|
"aria-hidden": "true"
|
|
2535
|
-
}, pn = { class: "wm-onb__hero-text" }, wn = { class: "wm-
|
|
2543
|
+
}, pn = { class: "wm-onb__hero-text" }, wn = { class: "wm-onb__hero-default" }, bn = { class: "wm-onb__title" }, kn = { class: "wm-onb__sub" }, Cn = {
|
|
2544
|
+
key: 0,
|
|
2545
|
+
class: "wm-onb__welcome"
|
|
2546
|
+
}, An = {
|
|
2536
2547
|
key: 0,
|
|
2537
2548
|
class: "wm-onb__alertList"
|
|
2538
|
-
},
|
|
2549
|
+
}, Sn = ["onClick"], Tn = {
|
|
2539
2550
|
key: 0,
|
|
2540
2551
|
class: "wm-onb__defaultAvatar"
|
|
2541
|
-
},
|
|
2552
|
+
}, Mn = ["aria-label"], xn = { class: "wm-onb__alert-body" }, On = { class: "wm-onb__alert-title" }, Rn = { class: "wm-onb__alert-preview" }, Ln = {
|
|
2542
2553
|
key: 0,
|
|
2543
2554
|
class: "wm-onb__alert-sender"
|
|
2544
|
-
},
|
|
2555
|
+
}, In = ["innerHTML"], Bn = { class: "wm-onb__alert-meta" }, En = {
|
|
2545
2556
|
key: 0,
|
|
2546
2557
|
class: "wm-onb__alert-time"
|
|
2547
|
-
},
|
|
2558
|
+
}, Pn = { class: "wm-onb__alert-resume" }, Fn = { class: "wm-onb__actions" }, Un = ["onClick"], Dn = { class: "wm-onb__btn-icon" }, Nn = ["aria-label"], Hn = {
|
|
2548
2559
|
key: 1,
|
|
2549
2560
|
width: "18",
|
|
2550
2561
|
height: "18",
|
|
@@ -2555,7 +2566,7 @@ const _n = /* @__PURE__ */ F(nn, [["render", fn], ["__scopeId", "data-v-27232009
|
|
|
2555
2566
|
"stroke-linecap": "round",
|
|
2556
2567
|
"stroke-linejoin": "round",
|
|
2557
2568
|
"aria-hidden": "true"
|
|
2558
|
-
},
|
|
2569
|
+
}, jn = ["d"], zn = { class: "wm-onb__btn-label" }, qn = {
|
|
2559
2570
|
key: 0,
|
|
2560
2571
|
class: "wm-onb__btn-trail",
|
|
2561
2572
|
width: "13",
|
|
@@ -2567,7 +2578,7 @@ const _n = /* @__PURE__ */ F(nn, [["render", fn], ["__scopeId", "data-v-27232009
|
|
|
2567
2578
|
"stroke-linecap": "round",
|
|
2568
2579
|
"stroke-linejoin": "round",
|
|
2569
2580
|
"aria-hidden": "true"
|
|
2570
|
-
},
|
|
2581
|
+
}, Vn = { class: "wm-onb__btn-icon" }, Kn = {
|
|
2571
2582
|
width: "18",
|
|
2572
2583
|
height: "18",
|
|
2573
2584
|
viewBox: "0 0 24 24",
|
|
@@ -2577,7 +2588,7 @@ const _n = /* @__PURE__ */ F(nn, [["render", fn], ["__scopeId", "data-v-27232009
|
|
|
2577
2588
|
"stroke-linecap": "round",
|
|
2578
2589
|
"stroke-linejoin": "round",
|
|
2579
2590
|
"aria-hidden": "true"
|
|
2580
|
-
},
|
|
2591
|
+
}, Wn = ["d"], $n = { class: "wm-onb__btn-label" }, Gn = { class: "wm-onb__btn-count" }, Yn = ["placeholder", "disabled", "aria-label"], Jn = ["disabled", "aria-label"], Xn = {
|
|
2581
2592
|
key: 0,
|
|
2582
2593
|
width: "16",
|
|
2583
2594
|
height: "16",
|
|
@@ -2588,18 +2599,19 @@ const _n = /* @__PURE__ */ F(nn, [["render", fn], ["__scopeId", "data-v-27232009
|
|
|
2588
2599
|
"stroke-linecap": "round",
|
|
2589
2600
|
"stroke-linejoin": "round",
|
|
2590
2601
|
"aria-hidden": "true"
|
|
2591
|
-
},
|
|
2602
|
+
}, Qn = {
|
|
2592
2603
|
key: 1,
|
|
2593
2604
|
class: "wm-onb__starter-spinner",
|
|
2594
2605
|
"aria-hidden": "true"
|
|
2595
2606
|
};
|
|
2596
|
-
function
|
|
2607
|
+
function Zn(e, t, s, r, i, n) {
|
|
2597
2608
|
const a = P("AIAvatar");
|
|
2598
2609
|
return c(), d("div", {
|
|
2599
2610
|
class: R(["wm-onb", {
|
|
2600
2611
|
"wm-onb--launching": i.launchPhase !== "idle",
|
|
2601
2612
|
"wm-onb--sliding": i.launchPhase === "slide",
|
|
2602
|
-
"wm-onb--focused": i.inputFocused
|
|
2613
|
+
"wm-onb--focused": i.inputFocused,
|
|
2614
|
+
"wm-onb--typing": n.typing
|
|
2603
2615
|
}])
|
|
2604
2616
|
}, [
|
|
2605
2617
|
l("div", {
|
|
@@ -2644,11 +2656,14 @@ function Xn(e, t, s, r, i, n) {
|
|
|
2644
2656
|
"image-url": s.defaultIconUrl
|
|
2645
2657
|
}, null, 8, ["image-url"]),
|
|
2646
2658
|
l("div", pn, [
|
|
2647
|
-
l("div", wn,
|
|
2648
|
-
|
|
2659
|
+
l("div", wn, [
|
|
2660
|
+
l("div", bn, y(n.heroTitle), 1),
|
|
2661
|
+
l("div", kn, y(n.heroSub), 1)
|
|
2662
|
+
]),
|
|
2663
|
+
s.welcomeMessage ? (c(), d("div", Cn, y(s.welcomeMessage), 1)) : b("", !0)
|
|
2649
2664
|
])
|
|
2650
2665
|
], 2),
|
|
2651
|
-
n.unreadThreads.length ? (c(), d("div",
|
|
2666
|
+
n.unreadThreads.length ? (c(), d("div", An, [
|
|
2652
2667
|
(c(!0), d(B, null, D(n.unreadThreads, (o) => (c(), d("button", {
|
|
2653
2668
|
key: o.id,
|
|
2654
2669
|
type: "button",
|
|
@@ -2658,7 +2673,7 @@ function Xn(e, t, s, r, i, n) {
|
|
|
2658
2673
|
l("span", {
|
|
2659
2674
|
class: R(["wm-onb__alert-avatar", n.avatarWrapperClass(o)])
|
|
2660
2675
|
}, [
|
|
2661
|
-
n.isDefaultAvatar(o) ? (c(), d("span",
|
|
2676
|
+
n.isDefaultAvatar(o) ? (c(), d("span", Tn, [...t[8] || (t[8] = [
|
|
2662
2677
|
l("svg", {
|
|
2663
2678
|
width: "20",
|
|
2664
2679
|
height: "20",
|
|
@@ -2679,63 +2694,63 @@ function Xn(e, t, s, r, i, n) {
|
|
|
2679
2694
|
l("span", {
|
|
2680
2695
|
class: "wm-onb__alert-dot",
|
|
2681
2696
|
"aria-label": n.t("onboarding.unread")
|
|
2682
|
-
}, null, 8,
|
|
2697
|
+
}, null, 8, Mn)
|
|
2683
2698
|
], 2),
|
|
2684
|
-
l("span",
|
|
2685
|
-
l("span",
|
|
2686
|
-
l("span",
|
|
2687
|
-
n.senderLabel(o) ? (c(), d("span",
|
|
2699
|
+
l("span", xn, [
|
|
2700
|
+
l("span", On, y(o.title), 1),
|
|
2701
|
+
l("span", Rn, [
|
|
2702
|
+
n.senderLabel(o) ? (c(), d("span", Ln, y(n.senderLabel(o)) + " · ", 1)) : b("", !0),
|
|
2688
2703
|
l("span", {
|
|
2689
2704
|
innerHTML: n.renderPreview(o.preview)
|
|
2690
|
-
}, null, 8,
|
|
2705
|
+
}, null, 8, In)
|
|
2691
2706
|
])
|
|
2692
2707
|
]),
|
|
2693
|
-
l("span",
|
|
2694
|
-
n.formatTs(o._ts) ? (c(), d("span",
|
|
2695
|
-
l("span",
|
|
2708
|
+
l("span", Bn, [
|
|
2709
|
+
n.formatTs(o._ts) ? (c(), d("span", En, y(n.formatTs(o._ts)), 1)) : b("", !0),
|
|
2710
|
+
l("span", Pn, y(n.t("onboarding.resume")), 1)
|
|
2696
2711
|
])
|
|
2697
|
-
], 8,
|
|
2712
|
+
], 8, Sn))), 128))
|
|
2698
2713
|
])) : b("", !0),
|
|
2699
|
-
l("div",
|
|
2714
|
+
l("div", Fn, [
|
|
2700
2715
|
(c(!0), d(B, null, D(s.quickLinks, (o, f) => (c(), d("button", {
|
|
2701
2716
|
key: "ql-" + f,
|
|
2702
2717
|
type: "button",
|
|
2703
2718
|
class: "wm-onb__btn",
|
|
2704
2719
|
onClick: (k) => e.$emit("select", o)
|
|
2705
2720
|
}, [
|
|
2706
|
-
l("span",
|
|
2721
|
+
l("span", Dn, [
|
|
2707
2722
|
n.safeIconUrl(o) ? (c(), d("span", {
|
|
2708
2723
|
key: 0,
|
|
2709
2724
|
class: "wm-onb__btn-iconImg",
|
|
2710
2725
|
style: N(n.iconUrlStyle(o)),
|
|
2711
2726
|
role: "img",
|
|
2712
2727
|
"aria-label": o.label || ""
|
|
2713
|
-
}, null, 12,
|
|
2728
|
+
}, null, 12, Nn)) : (c(), d("svg", Hn, [
|
|
2714
2729
|
l("path", {
|
|
2715
2730
|
d: n.iconPath(o.icon)
|
|
2716
|
-
}, null, 8,
|
|
2731
|
+
}, null, 8, jn)
|
|
2717
2732
|
]))
|
|
2718
2733
|
]),
|
|
2719
|
-
l("span",
|
|
2720
|
-
n.isExternalLink(o) ? (c(), d("svg",
|
|
2734
|
+
l("span", zn, y(o.label), 1),
|
|
2735
|
+
n.isExternalLink(o) ? (c(), d("svg", qn, [...t[9] || (t[9] = [
|
|
2721
2736
|
l("path", { d: "M7 17L17 7M9 7h8v8" }, null, -1)
|
|
2722
2737
|
])])) : b("", !0)
|
|
2723
|
-
], 8,
|
|
2738
|
+
], 8, Un))), 128)),
|
|
2724
2739
|
s.openThreads.length ? (c(), d("button", {
|
|
2725
2740
|
key: 0,
|
|
2726
2741
|
type: "button",
|
|
2727
2742
|
class: "wm-onb__btn",
|
|
2728
2743
|
onClick: t[0] || (t[0] = (o) => e.$emit("view-history"))
|
|
2729
2744
|
}, [
|
|
2730
|
-
l("span",
|
|
2731
|
-
(c(), d("svg",
|
|
2745
|
+
l("span", Vn, [
|
|
2746
|
+
(c(), d("svg", Kn, [
|
|
2732
2747
|
l("path", {
|
|
2733
2748
|
d: n.iconPath("chat")
|
|
2734
|
-
}, null, 8,
|
|
2749
|
+
}, null, 8, Wn)
|
|
2735
2750
|
]))
|
|
2736
2751
|
]),
|
|
2737
|
-
l("span",
|
|
2738
|
-
l("span",
|
|
2752
|
+
l("span", $n, y(n.t("onboarding.allConversations")), 1),
|
|
2753
|
+
l("span", Gn, y(s.openThreads.length), 1),
|
|
2739
2754
|
t[10] || (t[10] = l("svg", {
|
|
2740
2755
|
class: "wm-onb__btn-trail",
|
|
2741
2756
|
width: "13",
|
|
@@ -2773,7 +2788,7 @@ function Xn(e, t, s, r, i, n) {
|
|
|
2773
2788
|
onInput: t[3] || (t[3] = (...o) => n.autosize && n.autosize(...o)),
|
|
2774
2789
|
onFocus: t[4] || (t[4] = (...o) => n.onInputFocus && n.onInputFocus(...o)),
|
|
2775
2790
|
onBlur: t[5] || (t[5] = (...o) => n.onInputBlur && n.onInputBlur(...o))
|
|
2776
|
-
}, null, 40,
|
|
2791
|
+
}, null, 40, Yn), [
|
|
2777
2792
|
[ee, i.starterText]
|
|
2778
2793
|
]),
|
|
2779
2794
|
l("button", {
|
|
@@ -2782,15 +2797,15 @@ function Xn(e, t, s, r, i, n) {
|
|
|
2782
2797
|
disabled: s.busy || !n.canStart,
|
|
2783
2798
|
"aria-label": n.t("composer.send")
|
|
2784
2799
|
}, [
|
|
2785
|
-
s.busy ? (c(), d("span",
|
|
2800
|
+
s.busy ? (c(), d("span", Qn)) : (c(), d("svg", Xn, [...t[11] || (t[11] = [
|
|
2786
2801
|
l("path", { d: "M22 2L11 13M22 2l-7 20-4-9-9-4 20-7z" }, null, -1)
|
|
2787
2802
|
])]))
|
|
2788
|
-
], 10,
|
|
2803
|
+
], 10, Jn)
|
|
2789
2804
|
], 34)
|
|
2790
2805
|
])
|
|
2791
2806
|
], 2);
|
|
2792
2807
|
}
|
|
2793
|
-
const
|
|
2808
|
+
const es = /* @__PURE__ */ F(gn, [["render", Zn], ["__scopeId", "data-v-98d031ee"]]), ts = {
|
|
2794
2809
|
name: "WmHistory",
|
|
2795
2810
|
components: { AIAvatar: me, HumanAvatar: ye },
|
|
2796
2811
|
inject: {
|
|
@@ -2859,19 +2874,19 @@ const Qn = /* @__PURE__ */ F(gn, [["render", Xn], ["__scopeId", "data-v-96c935c7
|
|
|
2859
2874
|
});
|
|
2860
2875
|
}
|
|
2861
2876
|
}
|
|
2862
|
-
},
|
|
2877
|
+
}, ns = { class: "wm-hist" }, ss = { class: "wm-hist__search" }, rs = ["placeholder", "aria-label"], is = { class: "wm-hist__list" }, as = ["onClick"], os = {
|
|
2863
2878
|
key: 0,
|
|
2864
2879
|
class: "wm-hist__defaultAvatar"
|
|
2865
|
-
},
|
|
2880
|
+
}, ls = ["aria-label"], cs = { class: "wm-hist__thread-body" }, ds = { class: "wm-hist__thread-title" }, us = ["innerHTML"], hs = { class: "wm-hist__thread-meta" }, ms = {
|
|
2866
2881
|
key: 0,
|
|
2867
2882
|
class: "wm-hist__thread-time"
|
|
2868
|
-
},
|
|
2883
|
+
}, fs = {
|
|
2869
2884
|
key: 0,
|
|
2870
2885
|
class: "wm-hist__empty"
|
|
2871
2886
|
};
|
|
2872
|
-
function
|
|
2873
|
-
return c(), d("div",
|
|
2874
|
-
l("div",
|
|
2887
|
+
function _s(e, t, s, r, i, n) {
|
|
2888
|
+
return c(), d("div", ns, [
|
|
2889
|
+
l("div", ss, [
|
|
2875
2890
|
t[1] || (t[1] = l("span", { class: "wm-hist__searchIcon" }, [
|
|
2876
2891
|
l("svg", {
|
|
2877
2892
|
width: "13",
|
|
@@ -2892,11 +2907,11 @@ function ms(e, t, s, r, i, n) {
|
|
|
2892
2907
|
type: "text",
|
|
2893
2908
|
placeholder: n.t("onboarding.search"),
|
|
2894
2909
|
"aria-label": n.t("onboarding.search")
|
|
2895
|
-
}, null, 8,
|
|
2910
|
+
}, null, 8, rs), [
|
|
2896
2911
|
[ee, i.query]
|
|
2897
2912
|
])
|
|
2898
2913
|
]),
|
|
2899
|
-
l("div",
|
|
2914
|
+
l("div", is, [
|
|
2900
2915
|
(c(!0), d(B, null, D(n.filteredThreads, (a) => (c(), d("button", {
|
|
2901
2916
|
key: a.id,
|
|
2902
2917
|
type: "button",
|
|
@@ -2906,7 +2921,7 @@ function ms(e, t, s, r, i, n) {
|
|
|
2906
2921
|
l("span", {
|
|
2907
2922
|
class: R(["wm-hist__thread-avatar", n.avatarWrapperClass(a)])
|
|
2908
2923
|
}, [
|
|
2909
|
-
n.isDefaultAvatar(a) ? (c(), d("span",
|
|
2924
|
+
n.isDefaultAvatar(a) ? (c(), d("span", os, [...t[2] || (t[2] = [
|
|
2910
2925
|
l("svg", {
|
|
2911
2926
|
width: "18",
|
|
2912
2927
|
height: "18",
|
|
@@ -2928,17 +2943,17 @@ function ms(e, t, s, r, i, n) {
|
|
|
2928
2943
|
key: 2,
|
|
2929
2944
|
class: "wm-hist__thread-dot",
|
|
2930
2945
|
"aria-label": n.t("onboarding.unread")
|
|
2931
|
-
}, null, 8,
|
|
2946
|
+
}, null, 8, ls)) : b("", !0)
|
|
2932
2947
|
], 2),
|
|
2933
|
-
l("span",
|
|
2934
|
-
l("span",
|
|
2948
|
+
l("span", cs, [
|
|
2949
|
+
l("span", ds, y(a.title), 1),
|
|
2935
2950
|
l("span", {
|
|
2936
2951
|
class: "wm-hist__thread-preview",
|
|
2937
2952
|
innerHTML: n.renderPreview(a.preview)
|
|
2938
|
-
}, null, 8,
|
|
2953
|
+
}, null, 8, us)
|
|
2939
2954
|
]),
|
|
2940
|
-
l("span",
|
|
2941
|
-
n.formatTs(a._ts) ? (c(), d("span",
|
|
2955
|
+
l("span", hs, [
|
|
2956
|
+
n.formatTs(a._ts) ? (c(), d("span", ms, y(n.formatTs(a._ts)), 1)) : b("", !0),
|
|
2942
2957
|
t[3] || (t[3] = l("svg", {
|
|
2943
2958
|
width: "14",
|
|
2944
2959
|
height: "14",
|
|
@@ -2954,16 +2969,16 @@ function ms(e, t, s, r, i, n) {
|
|
|
2954
2969
|
l("path", { d: "M5 12h14M13 5l7 7-7 7" })
|
|
2955
2970
|
], -1))
|
|
2956
2971
|
])
|
|
2957
|
-
], 10,
|
|
2958
|
-
n.filteredThreads.length ? b("", !0) : (c(), d("div",
|
|
2972
|
+
], 10, as))), 128)),
|
|
2973
|
+
n.filteredThreads.length ? b("", !0) : (c(), d("div", fs, y(i.query ? n.t("onboarding.noResults", { query: i.query }) : n.t("onboarding.noConversations")), 1))
|
|
2959
2974
|
])
|
|
2960
2975
|
]);
|
|
2961
2976
|
}
|
|
2962
|
-
const
|
|
2963
|
-
function
|
|
2977
|
+
const gs = /* @__PURE__ */ F(ts, [["render", _s], ["__scopeId", "data-v-6bf35ef1"]]);
|
|
2978
|
+
function ys(e) {
|
|
2964
2979
|
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();
|
|
2965
2980
|
}
|
|
2966
|
-
const
|
|
2981
|
+
const vs = {
|
|
2967
2982
|
name: "WmActionResult",
|
|
2968
2983
|
props: {
|
|
2969
2984
|
state: { type: String, default: "success" },
|
|
@@ -2973,13 +2988,13 @@ const gs = {
|
|
|
2973
2988
|
},
|
|
2974
2989
|
computed: {
|
|
2975
2990
|
detailText() {
|
|
2976
|
-
return
|
|
2991
|
+
return ys(this.detail);
|
|
2977
2992
|
}
|
|
2978
2993
|
}
|
|
2979
|
-
},
|
|
2994
|
+
}, ps = {
|
|
2980
2995
|
class: "wm-result__icon",
|
|
2981
2996
|
"aria-hidden": "true"
|
|
2982
|
-
},
|
|
2997
|
+
}, ws = {
|
|
2983
2998
|
key: 0,
|
|
2984
2999
|
width: "11",
|
|
2985
3000
|
height: "11",
|
|
@@ -2989,7 +3004,7 @@ const gs = {
|
|
|
2989
3004
|
"stroke-width": "2.8",
|
|
2990
3005
|
"stroke-linecap": "round",
|
|
2991
3006
|
"stroke-linejoin": "round"
|
|
2992
|
-
},
|
|
3007
|
+
}, bs = {
|
|
2993
3008
|
key: 1,
|
|
2994
3009
|
width: "11",
|
|
2995
3010
|
height: "11",
|
|
@@ -2999,7 +3014,7 @@ const gs = {
|
|
|
2999
3014
|
"stroke-width": "2.6",
|
|
3000
3015
|
"stroke-linecap": "round",
|
|
3001
3016
|
"stroke-linejoin": "round"
|
|
3002
|
-
},
|
|
3017
|
+
}, ks = {
|
|
3003
3018
|
key: 2,
|
|
3004
3019
|
width: "11",
|
|
3005
3020
|
height: "11",
|
|
@@ -3009,7 +3024,7 @@ const gs = {
|
|
|
3009
3024
|
"stroke-width": "2.4",
|
|
3010
3025
|
"stroke-linecap": "round",
|
|
3011
3026
|
"stroke-linejoin": "round"
|
|
3012
|
-
},
|
|
3027
|
+
}, Cs = {
|
|
3013
3028
|
key: 3,
|
|
3014
3029
|
width: "12",
|
|
3015
3030
|
height: "12",
|
|
@@ -3019,24 +3034,24 @@ const gs = {
|
|
|
3019
3034
|
"stroke-width": "2.2",
|
|
3020
3035
|
"stroke-linecap": "round",
|
|
3021
3036
|
"stroke-linejoin": "round"
|
|
3022
|
-
},
|
|
3023
|
-
function
|
|
3037
|
+
}, As = { class: "wm-result__body" }, Ss = { class: "wm-result__label" }, Ts = { class: "wm-result__detail" };
|
|
3038
|
+
function Ms(e, t, s, r, i, n) {
|
|
3024
3039
|
return c(), d("div", {
|
|
3025
3040
|
class: R(["wm-result", `wm-result--${s.state}`])
|
|
3026
3041
|
}, [
|
|
3027
|
-
l("span",
|
|
3028
|
-
s.state === "success" ? (c(), d("svg",
|
|
3042
|
+
l("span", ps, [
|
|
3043
|
+
s.state === "success" ? (c(), d("svg", ws, [...t[0] || (t[0] = [
|
|
3029
3044
|
l("path", { d: "M20 6L9 17l-5-5" }, null, -1)
|
|
3030
|
-
])])) : s.state === "rejected" ? (c(), d("svg",
|
|
3045
|
+
])])) : s.state === "rejected" ? (c(), d("svg", bs, [...t[1] || (t[1] = [
|
|
3031
3046
|
l("path", { d: "M18 6L6 18M6 6l12 12" }, null, -1)
|
|
3032
|
-
])])) : s.state === "awaiting" ? (c(), d("svg",
|
|
3047
|
+
])])) : s.state === "awaiting" ? (c(), d("svg", ks, [...t[2] || (t[2] = [
|
|
3033
3048
|
l("circle", {
|
|
3034
3049
|
cx: "12",
|
|
3035
3050
|
cy: "12",
|
|
3036
3051
|
r: "10"
|
|
3037
3052
|
}, null, -1),
|
|
3038
3053
|
l("polyline", { points: "12 7 12 12 15 14" }, null, -1)
|
|
3039
|
-
])])) : (c(), d("svg",
|
|
3054
|
+
])])) : (c(), d("svg", Cs, [...t[3] || (t[3] = [
|
|
3040
3055
|
l("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),
|
|
3041
3056
|
l("line", {
|
|
3042
3057
|
x1: "12",
|
|
@@ -3052,19 +3067,19 @@ function Ss(e, t, s, r, i, n) {
|
|
|
3052
3067
|
}, null, -1)
|
|
3053
3068
|
])]))
|
|
3054
3069
|
]),
|
|
3055
|
-
l("span",
|
|
3056
|
-
l("span",
|
|
3070
|
+
l("span", As, [
|
|
3071
|
+
l("span", Ss, y(s.label), 1),
|
|
3057
3072
|
n.detailText ? (c(), d(B, { key: 0 }, [
|
|
3058
3073
|
t[4] || (t[4] = l("span", {
|
|
3059
3074
|
class: "wm-result__sep",
|
|
3060
3075
|
"aria-hidden": "true"
|
|
3061
3076
|
}, " · ", -1)),
|
|
3062
|
-
l("span",
|
|
3077
|
+
l("span", Ts, y(n.detailText), 1)
|
|
3063
3078
|
], 64)) : b("", !0)
|
|
3064
3079
|
])
|
|
3065
3080
|
], 2);
|
|
3066
3081
|
}
|
|
3067
|
-
const
|
|
3082
|
+
const xs = /* @__PURE__ */ F(vs, [["render", Ms], ["__scopeId", "data-v-7284acd0"]]), Os = {
|
|
3068
3083
|
name: "WmArtifactFormResponse",
|
|
3069
3084
|
inject: {
|
|
3070
3085
|
// Translator shared by the Messenger shell; French fallback when
|
|
@@ -3080,12 +3095,12 @@ const Ts = /* @__PURE__ */ F(gs, [["render", Ss], ["__scopeId", "data-v-7284acd0
|
|
|
3080
3095
|
return Array.isArray((e = this.data) == null ? void 0 : e.fields) ? this.data.fields : [];
|
|
3081
3096
|
}
|
|
3082
3097
|
}
|
|
3083
|
-
},
|
|
3084
|
-
function
|
|
3085
|
-
return c(), d("div",
|
|
3086
|
-
l("div",
|
|
3087
|
-
l("div",
|
|
3088
|
-
l("span",
|
|
3098
|
+
}, Rs = { class: "wm-art wm-art--formResponse" }, Ls = { class: "wm-art__head" }, Is = { class: "wm-art__title" }, Bs = { class: "wm-art__badge wm-art__badge--success" }, Es = { class: "wm-art__body" }, Ps = { class: "wm-art__fieldLabel" };
|
|
3099
|
+
function Fs(e, t, s, r, i, n) {
|
|
3100
|
+
return c(), d("div", Rs, [
|
|
3101
|
+
l("div", Ls, [
|
|
3102
|
+
l("div", Is, y(s.data.title || n.t("form.title")), 1),
|
|
3103
|
+
l("span", Bs, [
|
|
3089
3104
|
t[0] || (t[0] = l("svg", {
|
|
3090
3105
|
width: "11",
|
|
3091
3106
|
height: "11",
|
|
@@ -3102,12 +3117,12 @@ function Es(e, t, s, r, i, n) {
|
|
|
3102
3117
|
Me(" " + y(n.t("form.sent")), 1)
|
|
3103
3118
|
])
|
|
3104
3119
|
]),
|
|
3105
|
-
l("div",
|
|
3120
|
+
l("div", Es, [
|
|
3106
3121
|
(c(!0), d(B, null, D(n.fields, (a, o) => (c(), d("div", {
|
|
3107
3122
|
key: o,
|
|
3108
3123
|
class: "wm-art__field"
|
|
3109
3124
|
}, [
|
|
3110
|
-
l("div",
|
|
3125
|
+
l("div", Ps, y(a.label), 1),
|
|
3111
3126
|
l("div", {
|
|
3112
3127
|
class: R([
|
|
3113
3128
|
"wm-art__fieldValue",
|
|
@@ -3118,7 +3133,7 @@ function Es(e, t, s, r, i, n) {
|
|
|
3118
3133
|
])
|
|
3119
3134
|
]);
|
|
3120
3135
|
}
|
|
3121
|
-
const
|
|
3136
|
+
const Us = /* @__PURE__ */ F(Os, [["render", Fs], ["__scopeId", "data-v-713aecf1"]]), Ds = {
|
|
3122
3137
|
name: "WmArtifactInfoCard",
|
|
3123
3138
|
props: {
|
|
3124
3139
|
data: { type: Object, required: !0 }
|
|
@@ -3133,32 +3148,32 @@ const Ps = /* @__PURE__ */ F(Ms, [["render", Es], ["__scopeId", "data-v-713aecf1
|
|
|
3133
3148
|
return !!((e = this.data) != null && e.body) || this.fields.length > 0;
|
|
3134
3149
|
}
|
|
3135
3150
|
}
|
|
3136
|
-
},
|
|
3151
|
+
}, Ns = { class: "wm-art wm-art--infoCard" }, Hs = {
|
|
3137
3152
|
key: 0,
|
|
3138
3153
|
class: "wm-art__image"
|
|
3139
|
-
},
|
|
3154
|
+
}, js = ["src", "alt"], zs = { class: "wm-art__head" }, qs = { class: "wm-art__headMain" }, Vs = { class: "wm-art__title" }, Ks = {
|
|
3140
3155
|
key: 0,
|
|
3141
3156
|
class: "wm-art__subtitle"
|
|
3142
|
-
},
|
|
3157
|
+
}, Ws = {
|
|
3143
3158
|
key: 1,
|
|
3144
3159
|
class: "wm-art__body"
|
|
3145
|
-
},
|
|
3160
|
+
}, $s = {
|
|
3146
3161
|
key: 0,
|
|
3147
3162
|
class: "wm-art__text"
|
|
3148
|
-
},
|
|
3149
|
-
function
|
|
3150
|
-
return c(), d("div",
|
|
3151
|
-
s.data.image_url ? (c(), d("figure",
|
|
3163
|
+
}, Gs = { class: "wm-art__fieldLabel" };
|
|
3164
|
+
function Ys(e, t, s, r, i, n) {
|
|
3165
|
+
return c(), d("div", Ns, [
|
|
3166
|
+
s.data.image_url ? (c(), d("figure", Hs, [
|
|
3152
3167
|
l("img", {
|
|
3153
3168
|
src: s.data.image_url,
|
|
3154
3169
|
alt: s.data.title || "",
|
|
3155
3170
|
loading: "lazy"
|
|
3156
|
-
}, null, 8,
|
|
3171
|
+
}, null, 8, js)
|
|
3157
3172
|
])) : b("", !0),
|
|
3158
|
-
l("div",
|
|
3159
|
-
l("div",
|
|
3160
|
-
l("div",
|
|
3161
|
-
s.data.subtitle ? (c(), d("div",
|
|
3173
|
+
l("div", zs, [
|
|
3174
|
+
l("div", qs, [
|
|
3175
|
+
l("div", Vs, y(s.data.title), 1),
|
|
3176
|
+
s.data.subtitle ? (c(), d("div", Ks, y(s.data.subtitle), 1)) : b("", !0)
|
|
3162
3177
|
]),
|
|
3163
3178
|
s.data.badge && s.data.badge.label ? (c(), d("span", {
|
|
3164
3179
|
key: 0,
|
|
@@ -3168,13 +3183,13 @@ function $s(e, t, s, r, i, n) {
|
|
|
3168
3183
|
])
|
|
3169
3184
|
}, y(s.data.badge.label), 3)) : b("", !0)
|
|
3170
3185
|
]),
|
|
3171
|
-
n.hasBody ? (c(), d("div",
|
|
3172
|
-
s.data.body ? (c(), d("div",
|
|
3186
|
+
n.hasBody ? (c(), d("div", Ws, [
|
|
3187
|
+
s.data.body ? (c(), d("div", $s, y(s.data.body), 1)) : b("", !0),
|
|
3173
3188
|
n.fields.length ? (c(!0), d(B, { key: 1 }, D(n.fields, (a, o) => (c(), d("div", {
|
|
3174
3189
|
key: o,
|
|
3175
3190
|
class: "wm-art__field"
|
|
3176
3191
|
}, [
|
|
3177
|
-
l("div",
|
|
3192
|
+
l("div", Gs, y(a.label), 1),
|
|
3178
3193
|
l("div", {
|
|
3179
3194
|
class: R([
|
|
3180
3195
|
"wm-art__fieldValue",
|
|
@@ -3185,8 +3200,8 @@ function $s(e, t, s, r, i, n) {
|
|
|
3185
3200
|
])) : b("", !0)
|
|
3186
3201
|
]);
|
|
3187
3202
|
}
|
|
3188
|
-
const
|
|
3189
|
-
function
|
|
3203
|
+
const Js = /* @__PURE__ */ F(Ds, [["render", Ys], ["__scopeId", "data-v-7eae0e4a"]]);
|
|
3204
|
+
function Xs(e, t, s) {
|
|
3190
3205
|
if (!e) return "";
|
|
3191
3206
|
const r = new Date(e);
|
|
3192
3207
|
if (Number.isNaN(r.getTime())) return e;
|
|
@@ -3200,7 +3215,7 @@ function Ys(e, t, s) {
|
|
|
3200
3215
|
});
|
|
3201
3216
|
return `${i}${s}${n}`;
|
|
3202
3217
|
}
|
|
3203
|
-
const
|
|
3218
|
+
const Qs = {
|
|
3204
3219
|
name: "WmArtifactTicket",
|
|
3205
3220
|
inject: {
|
|
3206
3221
|
// Translator + resolved-language getter shared by the Messenger
|
|
@@ -3218,7 +3233,7 @@ const Js = {
|
|
|
3218
3233
|
},
|
|
3219
3234
|
formattedDate() {
|
|
3220
3235
|
var e;
|
|
3221
|
-
return
|
|
3236
|
+
return Xs(
|
|
3222
3237
|
(e = this.data) == null ? void 0 : e.created_at,
|
|
3223
3238
|
re(this.wmLocale()),
|
|
3224
3239
|
this.t("ticket.dateAt")
|
|
@@ -3246,13 +3261,13 @@ const Js = {
|
|
|
3246
3261
|
return /high|haute|élev|elev|critic|critiq|urgent/.test(t) ? 3 : /low|basse|faible|minor/.test(t) ? 1 : 2;
|
|
3247
3262
|
}
|
|
3248
3263
|
}
|
|
3249
|
-
},
|
|
3264
|
+
}, Zs = { class: "wm-art wm-art--ticket" }, er = { class: "wm-art__head wm-tk__head" }, tr = { class: "wm-art__title wm-tk__title" }, nr = { class: "wm-tk__sub" }, sr = { class: "wm-tk__ref" }, rr = {
|
|
3250
3265
|
key: 0,
|
|
3251
3266
|
class: "wm-tk__text"
|
|
3252
|
-
},
|
|
3267
|
+
}, ir = {
|
|
3253
3268
|
key: 0,
|
|
3254
3269
|
class: "wm-art__body"
|
|
3255
|
-
},
|
|
3270
|
+
}, ar = { class: "wm-art__fieldLabel" }, or = ["data-level"], lr = {
|
|
3256
3271
|
key: 1,
|
|
3257
3272
|
class: "wm-tk__date",
|
|
3258
3273
|
width: "12",
|
|
@@ -3264,16 +3279,16 @@ const Js = {
|
|
|
3264
3279
|
"stroke-linecap": "round",
|
|
3265
3280
|
"stroke-linejoin": "round",
|
|
3266
3281
|
"aria-hidden": "true"
|
|
3267
|
-
},
|
|
3282
|
+
}, cr = {
|
|
3268
3283
|
key: 1,
|
|
3269
3284
|
class: "wm-art__footer wm-tk__footer"
|
|
3270
3285
|
};
|
|
3271
|
-
function
|
|
3272
|
-
return c(), d("div",
|
|
3273
|
-
l("div",
|
|
3274
|
-
l("div",
|
|
3275
|
-
l("div",
|
|
3276
|
-
l("div",
|
|
3286
|
+
function dr(e, t, s, r, i, n) {
|
|
3287
|
+
return c(), d("div", Zs, [
|
|
3288
|
+
l("div", er, [
|
|
3289
|
+
l("div", tr, y(s.data.title), 1),
|
|
3290
|
+
l("div", nr, [
|
|
3291
|
+
l("div", sr, [
|
|
3277
3292
|
t[0] || (t[0] = l("svg", {
|
|
3278
3293
|
width: "11",
|
|
3279
3294
|
height: "11",
|
|
@@ -3304,14 +3319,14 @@ function lr(e, t, s, r, i, n) {
|
|
|
3304
3319
|
Me(" " + y(s.data.status.label), 1)
|
|
3305
3320
|
], 2)
|
|
3306
3321
|
]),
|
|
3307
|
-
s.data.body ? (c(), d("div",
|
|
3322
|
+
s.data.body ? (c(), d("div", rr, y(s.data.body), 1)) : b("", !0)
|
|
3308
3323
|
]),
|
|
3309
|
-
n.fields.length ? (c(), d("div",
|
|
3324
|
+
n.fields.length ? (c(), d("div", ir, [
|
|
3310
3325
|
(c(!0), d(B, null, D(n.fields, (a, o) => (c(), d("div", {
|
|
3311
3326
|
key: o,
|
|
3312
3327
|
class: "wm-art__field"
|
|
3313
3328
|
}, [
|
|
3314
|
-
l("div",
|
|
3329
|
+
l("div", ar, y(a.label), 1),
|
|
3315
3330
|
l("div", {
|
|
3316
3331
|
class: R([
|
|
3317
3332
|
"wm-art__fieldValue",
|
|
@@ -3348,7 +3363,7 @@ function lr(e, t, s, r, i, n) {
|
|
|
3348
3363
|
height: "9",
|
|
3349
3364
|
rx: "0.5"
|
|
3350
3365
|
}, null, -1)
|
|
3351
|
-
])], 8,
|
|
3366
|
+
])], 8, or)) : n.isDate(a.label) ? (c(), d("svg", lr, [...t[3] || (t[3] = [
|
|
3352
3367
|
l("rect", {
|
|
3353
3368
|
x: "3",
|
|
3354
3369
|
y: "4",
|
|
@@ -3362,7 +3377,7 @@ function lr(e, t, s, r, i, n) {
|
|
|
3362
3377
|
], 2)
|
|
3363
3378
|
]))), 128))
|
|
3364
3379
|
])) : b("", !0),
|
|
3365
|
-
s.data.created_at ? (c(), d("div",
|
|
3380
|
+
s.data.created_at ? (c(), d("div", cr, [
|
|
3366
3381
|
t[4] || (t[4] = l("svg", {
|
|
3367
3382
|
width: "11",
|
|
3368
3383
|
height: "11",
|
|
@@ -3387,11 +3402,11 @@ function lr(e, t, s, r, i, n) {
|
|
|
3387
3402
|
])) : b("", !0)
|
|
3388
3403
|
]);
|
|
3389
3404
|
}
|
|
3390
|
-
const
|
|
3391
|
-
form_response:
|
|
3392
|
-
info_card:
|
|
3393
|
-
ticket:
|
|
3394
|
-
},
|
|
3405
|
+
const ur = /* @__PURE__ */ F(Qs, [["render", dr], ["__scopeId", "data-v-5f30c914"]]), hr = {
|
|
3406
|
+
form_response: Us,
|
|
3407
|
+
info_card: Js,
|
|
3408
|
+
ticket: ur
|
|
3409
|
+
}, mr = {
|
|
3395
3410
|
name: "WmArtifactRenderer",
|
|
3396
3411
|
props: {
|
|
3397
3412
|
// Forme : { kind: string, data: any } (le `data` est validé
|
|
@@ -3402,17 +3417,17 @@ const cr = /* @__PURE__ */ F(Js, [["render", lr], ["__scopeId", "data-v-5f30c914
|
|
|
3402
3417
|
component() {
|
|
3403
3418
|
var t;
|
|
3404
3419
|
const e = (t = this.artifact) == null ? void 0 : t.kind;
|
|
3405
|
-
return e &&
|
|
3420
|
+
return e && hr[e] || null;
|
|
3406
3421
|
}
|
|
3407
3422
|
}
|
|
3408
3423
|
};
|
|
3409
|
-
function
|
|
3424
|
+
function fr(e, t, s, r, i, n) {
|
|
3410
3425
|
return n.component ? (c(), E(Te(n.component), {
|
|
3411
3426
|
key: 0,
|
|
3412
3427
|
data: s.artifact.data
|
|
3413
3428
|
}, null, 8, ["data"])) : b("", !0);
|
|
3414
3429
|
}
|
|
3415
|
-
const
|
|
3430
|
+
const _r = /* @__PURE__ */ F(mr, [["render", fr]]), gr = {
|
|
3416
3431
|
name: "WmAttachmentPreview",
|
|
3417
3432
|
inject: {
|
|
3418
3433
|
signAttachmentFn: { default: null },
|
|
@@ -3480,15 +3495,15 @@ const mr = /* @__PURE__ */ F(ur, [["render", hr]]), fr = {
|
|
|
3480
3495
|
this.safeHref === "#" && e.preventDefault();
|
|
3481
3496
|
}
|
|
3482
3497
|
}
|
|
3483
|
-
},
|
|
3498
|
+
}, yr = ["href"], vr = ["src", "alt"], pr = ["src"], wr = ["src"], br = ["href", "download"], kr = { class: "wm-att__main" }, Cr = { class: "wm-att__name" }, Ar = {
|
|
3484
3499
|
key: 0,
|
|
3485
3500
|
class: "wm-att__meta"
|
|
3486
|
-
},
|
|
3501
|
+
}, Sr = {
|
|
3487
3502
|
key: 0,
|
|
3488
3503
|
class: "wm-att__spin",
|
|
3489
3504
|
"aria-hidden": "true"
|
|
3490
3505
|
};
|
|
3491
|
-
function
|
|
3506
|
+
function Tr(e, t, s, r, i, n) {
|
|
3492
3507
|
return c(), d("div", {
|
|
3493
3508
|
class: R(["wm-att", ["wm-att--" + (n.kind || "file")]])
|
|
3494
3509
|
}, [
|
|
@@ -3503,19 +3518,19 @@ function Ar(e, t, s, r, i, n) {
|
|
|
3503
3518
|
src: i.url,
|
|
3504
3519
|
alt: n.displayName,
|
|
3505
3520
|
loading: "lazy"
|
|
3506
|
-
}, null, 8,
|
|
3507
|
-
], 8,
|
|
3521
|
+
}, null, 8, vr)
|
|
3522
|
+
], 8, yr)) : n.kind === "audio" && i.url ? (c(), d("audio", {
|
|
3508
3523
|
key: 1,
|
|
3509
3524
|
src: i.url,
|
|
3510
3525
|
controls: "",
|
|
3511
3526
|
preload: "metadata"
|
|
3512
|
-
}, null, 8,
|
|
3527
|
+
}, null, 8, pr)) : n.kind === "video" && i.url ? (c(), d("video", {
|
|
3513
3528
|
key: 2,
|
|
3514
3529
|
src: i.url,
|
|
3515
3530
|
controls: "",
|
|
3516
3531
|
playsinline: "",
|
|
3517
3532
|
preload: "auto"
|
|
3518
|
-
}, null, 8,
|
|
3533
|
+
}, null, 8, wr)) : (c(), d("a", {
|
|
3519
3534
|
key: 3,
|
|
3520
3535
|
class: "wm-att__file",
|
|
3521
3536
|
href: n.safeHref,
|
|
@@ -3540,15 +3555,15 @@ function Ar(e, t, s, r, i, n) {
|
|
|
3540
3555
|
l("path", { d: "M14 2v6h6" })
|
|
3541
3556
|
])
|
|
3542
3557
|
], -1)),
|
|
3543
|
-
l("span",
|
|
3544
|
-
l("span",
|
|
3545
|
-
n.sizeLabel ? (c(), d("span",
|
|
3558
|
+
l("span", kr, [
|
|
3559
|
+
l("span", Cr, y(n.displayName), 1),
|
|
3560
|
+
n.sizeLabel ? (c(), d("span", Ar, y(n.sizeLabel), 1)) : b("", !0)
|
|
3546
3561
|
]),
|
|
3547
|
-
i.loading ? (c(), d("span",
|
|
3548
|
-
], 8,
|
|
3562
|
+
i.loading ? (c(), d("span", Sr)) : b("", !0)
|
|
3563
|
+
], 8, br))
|
|
3549
3564
|
], 2);
|
|
3550
3565
|
}
|
|
3551
|
-
const
|
|
3566
|
+
const Mr = /* @__PURE__ */ F(gr, [["render", Tr], ["__scopeId", "data-v-b207a8bd"]]), xr = {
|
|
3552
3567
|
name: "WmBubble",
|
|
3553
3568
|
props: {
|
|
3554
3569
|
role: { type: String, default: "ai" },
|
|
@@ -3560,29 +3575,29 @@ const Sr = /* @__PURE__ */ F(fr, [["render", Ar], ["__scopeId", "data-v-b207a8bd
|
|
|
3560
3575
|
return _t(this.text);
|
|
3561
3576
|
}
|
|
3562
3577
|
}
|
|
3563
|
-
},
|
|
3564
|
-
function
|
|
3578
|
+
}, Or = ["innerHTML"];
|
|
3579
|
+
function Rr(e, t, s, r, i, n) {
|
|
3565
3580
|
return c(), d("div", {
|
|
3566
3581
|
class: R(["wm-bubble", "wm-bubble--" + s.role])
|
|
3567
3582
|
}, [
|
|
3568
3583
|
$e(e.$slots, "default", {}, () => [
|
|
3569
|
-
l("span", { innerHTML: n.rendered }, null, 8,
|
|
3584
|
+
l("span", { innerHTML: n.rendered }, null, 8, Or)
|
|
3570
3585
|
], !0)
|
|
3571
3586
|
], 2);
|
|
3572
3587
|
}
|
|
3573
|
-
const
|
|
3574
|
-
function
|
|
3575
|
-
return c(), d("div",
|
|
3588
|
+
const Lr = /* @__PURE__ */ F(xr, [["render", Rr], ["__scopeId", "data-v-7ab13147"]]), Ir = { name: "WmTyping" }, Br = { class: "wm-typing" };
|
|
3589
|
+
function Er(e, t, s, r, i, n) {
|
|
3590
|
+
return c(), d("div", Br, [...t[0] || (t[0] = [
|
|
3576
3591
|
l("span", { style: { "animation-delay": "0s" } }, null, -1),
|
|
3577
3592
|
l("span", { style: { "animation-delay": "0.2s" } }, null, -1),
|
|
3578
3593
|
l("span", { style: { "animation-delay": "0.4s" } }, null, -1)
|
|
3579
3594
|
])]);
|
|
3580
3595
|
}
|
|
3581
|
-
const
|
|
3596
|
+
const Pr = /* @__PURE__ */ F(Ir, [["render", Er], ["__scopeId", "data-v-df2447fd"]]);
|
|
3582
3597
|
function se(e) {
|
|
3583
3598
|
return e ? e.client_msg_id || e.id : "";
|
|
3584
3599
|
}
|
|
3585
|
-
const
|
|
3600
|
+
const Fr = {
|
|
3586
3601
|
transferred_to_human: "system.transferredToHuman",
|
|
3587
3602
|
assigned: "system.assigned",
|
|
3588
3603
|
unassigned: "system.unassigned",
|
|
@@ -3590,16 +3605,16 @@ const Er = {
|
|
|
3590
3605
|
closed: "system.closed",
|
|
3591
3606
|
reopened: "system.reopened",
|
|
3592
3607
|
idle: "system.idle"
|
|
3593
|
-
},
|
|
3608
|
+
}, Ur = 80, Dr = 200, Nr = {
|
|
3594
3609
|
name: "WmMessageList",
|
|
3595
3610
|
components: {
|
|
3596
3611
|
AIAvatar: me,
|
|
3597
3612
|
HumanAvatar: ye,
|
|
3598
|
-
Bubble:
|
|
3599
|
-
Typing:
|
|
3600
|
-
ActionResult:
|
|
3601
|
-
AttachmentPreview:
|
|
3602
|
-
ArtifactRenderer:
|
|
3613
|
+
Bubble: Lr,
|
|
3614
|
+
Typing: Pr,
|
|
3615
|
+
ActionResult: xs,
|
|
3616
|
+
AttachmentPreview: Mr,
|
|
3617
|
+
ArtifactRenderer: _r
|
|
3603
3618
|
},
|
|
3604
3619
|
inject: {
|
|
3605
3620
|
// Translator + resolved-language getter shared by the Messenger
|
|
@@ -3790,11 +3805,11 @@ const Er = {
|
|
|
3790
3805
|
return `g-${s}`;
|
|
3791
3806
|
},
|
|
3792
3807
|
isAtBottom(e) {
|
|
3793
|
-
return e.scrollHeight - e.scrollTop - e.clientHeight <=
|
|
3808
|
+
return e.scrollHeight - e.scrollTop - e.clientHeight <= Ur;
|
|
3794
3809
|
},
|
|
3795
3810
|
onScroll() {
|
|
3796
3811
|
const e = this.$refs.scrollEl;
|
|
3797
|
-
e && (this.showScrollDown = !this.isAtBottom(e), !(this.loadingMore || !this.hasMore) && (this._pendingLoadMore || e.scrollTop <=
|
|
3812
|
+
e && (this.showScrollDown = !this.isAtBottom(e), !(this.loadingMore || !this.hasMore) && (this._pendingLoadMore || e.scrollTop <= Dr && (this._pendingLoadMore = !0, this.$emit("load-more"))));
|
|
3798
3813
|
},
|
|
3799
3814
|
// Capture pre-patch scroll state and restore it on the next tick.
|
|
3800
3815
|
//
|
|
@@ -4164,7 +4179,7 @@ const Er = {
|
|
|
4164
4179
|
},
|
|
4165
4180
|
systemLabel(e) {
|
|
4166
4181
|
var i, n, a;
|
|
4167
|
-
const t = (i = e == null ? void 0 : e.payload) == null ? void 0 : i.event, s =
|
|
4182
|
+
const t = (i = e == null ? void 0 : e.payload) == null ? void 0 : i.event, s = Fr[t], r = ((n = e == null ? void 0 : e.metadata) == null ? void 0 : n.agent_name) || ((a = e == null ? void 0 : e.author) == null ? void 0 : a.name) || this.t("messageList.anAgent");
|
|
4168
4183
|
return s ? this.t(s, { name: r }) : (e == null ? void 0 : e.text_md) || this.t("messageList.conversationUpdate");
|
|
4169
4184
|
},
|
|
4170
4185
|
scrollToBottom() {
|
|
@@ -4196,71 +4211,71 @@ const Er = {
|
|
|
4196
4211
|
e && (typeof e.scrollTo == "function" ? e.scrollTo({ top: e.scrollHeight, behavior: "smooth" }) : e.scrollTop = e.scrollHeight, this.showScrollDown = !1);
|
|
4197
4212
|
}
|
|
4198
4213
|
}
|
|
4199
|
-
},
|
|
4214
|
+
}, Hr = { class: "wm-list__wrap" }, jr = {
|
|
4200
4215
|
key: 0,
|
|
4201
4216
|
class: "wm-list__loadMore",
|
|
4202
4217
|
role: "status",
|
|
4203
4218
|
"aria-live": "polite"
|
|
4204
|
-
},
|
|
4219
|
+
}, zr = { class: "wm-list__loadMore-lbl" }, qr = {
|
|
4205
4220
|
key: 1,
|
|
4206
4221
|
class: "wm-list__historyEnd"
|
|
4207
|
-
},
|
|
4222
|
+
}, Vr = {
|
|
4208
4223
|
key: 2,
|
|
4209
4224
|
class: "wm-list__sep"
|
|
4210
|
-
},
|
|
4225
|
+
}, Kr = { class: "wm-list__sep-label" }, Wr = {
|
|
4211
4226
|
key: 0,
|
|
4212
4227
|
class: "wm-list__sep wm-list__sep--unread"
|
|
4213
|
-
},
|
|
4228
|
+
}, $r = { class: "wm-list__sep-label wm-list__sep-label--unread" }, Gr = {
|
|
4214
4229
|
key: 0,
|
|
4215
4230
|
class: "wm-list__sysep"
|
|
4216
|
-
},
|
|
4231
|
+
}, Yr = { class: "wm-list__sysep-label" }, Jr = ["data-row-key", "onPointerdown"], Xr = {
|
|
4217
4232
|
key: 0,
|
|
4218
4233
|
class: "wm-list__avatarSlot"
|
|
4219
|
-
},
|
|
4234
|
+
}, Qr = { key: 0 }, Zr = {
|
|
4220
4235
|
key: 1,
|
|
4221
4236
|
"aria-hidden": "true"
|
|
4222
|
-
},
|
|
4237
|
+
}, ei = { key: 2 }, ti = { key: 0 }, ni = {
|
|
4223
4238
|
key: 1,
|
|
4224
4239
|
"aria-hidden": "true"
|
|
4225
|
-
},
|
|
4240
|
+
}, si = { key: 2 }, ri = {
|
|
4226
4241
|
key: 3,
|
|
4227
4242
|
class: "wm-list__row wm-list__row--ai fade-up"
|
|
4228
|
-
},
|
|
4229
|
-
function
|
|
4243
|
+
}, ii = { class: "wm-list__avatarSlot" }, ai = ["aria-label", "title"];
|
|
4244
|
+
function oi(e, t, s, r, i, n) {
|
|
4230
4245
|
const a = P("AIAvatar"), o = P("HumanAvatar"), f = P("ActionResult"), k = P("ArtifactRenderer"), v = P("Bubble"), T = P("AttachmentPreview"), I = P("Typing");
|
|
4231
|
-
return c(), d("div",
|
|
4246
|
+
return c(), d("div", Hr, [
|
|
4232
4247
|
l("div", {
|
|
4233
4248
|
ref: "scrollEl",
|
|
4234
4249
|
class: R(["wm-list", { "wm-list--silent": i.silentFades }]),
|
|
4235
4250
|
onScrollPassive: t[4] || (t[4] = (...S) => n.onScroll && n.onScroll(...S))
|
|
4236
4251
|
}, [
|
|
4237
|
-
s.loadingMore ? (c(), d("div",
|
|
4252
|
+
s.loadingMore ? (c(), d("div", jr, [
|
|
4238
4253
|
t[6] || (t[6] = l("span", {
|
|
4239
4254
|
class: "wm-list__loadMore-spinner",
|
|
4240
4255
|
"aria-hidden": "true"
|
|
4241
4256
|
}, null, -1)),
|
|
4242
|
-
l("span",
|
|
4243
|
-
])) : n.historyExhausted ? (c(), d("div",
|
|
4244
|
-
s.dateLabel ? (c(), d("div",
|
|
4257
|
+
l("span", zr, y(n.t("messageList.loadingHistory")), 1)
|
|
4258
|
+
])) : n.historyExhausted ? (c(), d("div", qr, y(n.t("messageList.conversationStart")), 1)) : b("", !0),
|
|
4259
|
+
s.dateLabel ? (c(), d("div", Vr, [
|
|
4245
4260
|
t[7] || (t[7] = l("div", { class: "wm-list__line" }, null, -1)),
|
|
4246
|
-
l("span",
|
|
4261
|
+
l("span", Kr, y(s.dateLabel), 1),
|
|
4247
4262
|
t[8] || (t[8] = l("div", { class: "wm-list__line" }, null, -1))
|
|
4248
4263
|
])) : b("", !0),
|
|
4249
4264
|
(c(!0), d(B, null, D(n.groups, (S, z) => (c(), d(B, {
|
|
4250
4265
|
key: S.key
|
|
4251
4266
|
}, [
|
|
4252
|
-
S.key === n.unreadGroupKey ? (c(), d("div",
|
|
4267
|
+
S.key === n.unreadGroupKey ? (c(), d("div", Wr, [
|
|
4253
4268
|
t[9] || (t[9] = l("div", { class: "wm-list__line wm-list__line--unread" }, null, -1)),
|
|
4254
|
-
l("span",
|
|
4269
|
+
l("span", $r, y(n.t("messageList.unread")), 1),
|
|
4255
4270
|
t[10] || (t[10] = l("div", { class: "wm-list__line wm-list__line--unread" }, null, -1))
|
|
4256
4271
|
])) : b("", !0),
|
|
4257
4272
|
S.role === "system" || S.items.length ? (c(), d("div", {
|
|
4258
4273
|
key: 1,
|
|
4259
4274
|
class: R(["wm-list__group", "wm-list__group--" + S.role])
|
|
4260
4275
|
}, [
|
|
4261
|
-
S.role === "system" ? (c(), d("div",
|
|
4276
|
+
S.role === "system" ? (c(), d("div", Gr, [
|
|
4262
4277
|
t[11] || (t[11] = l("div", { class: "wm-list__line wm-list__line--strong" }, null, -1)),
|
|
4263
|
-
l("span",
|
|
4278
|
+
l("span", Yr, y(S.systemLabel), 1),
|
|
4264
4279
|
t[12] || (t[12] = l("div", { class: "wm-list__line wm-list__line--strong" }, null, -1))
|
|
4265
4280
|
])) : (c(), d(B, { key: 1 }, [
|
|
4266
4281
|
(c(!0), d(B, null, D(S.items, (M, U) => (c(), d(B, {
|
|
@@ -4283,7 +4298,7 @@ function ii(e, t, s, r, i, n) {
|
|
|
4283
4298
|
onContextmenu: t[3] || (t[3] = G(() => {
|
|
4284
4299
|
}, ["prevent"]))
|
|
4285
4300
|
}, [
|
|
4286
|
-
S.role !== "user" ? (c(), d("div",
|
|
4301
|
+
S.role !== "user" ? (c(), d("div", Xr, [
|
|
4287
4302
|
U === S.items.length - 1 ? (c(), d(B, { key: 0 }, [
|
|
4288
4303
|
S.role === "ai" ? (c(), E(a, {
|
|
4289
4304
|
key: 0,
|
|
@@ -4354,29 +4369,29 @@ function ii(e, t, s, r, i, n) {
|
|
|
4354
4369
|
}, null, 8, ["attachment", "style"]))), 128))
|
|
4355
4370
|
], 6)) : b("", !0)
|
|
4356
4371
|
], 2))
|
|
4357
|
-
], 46,
|
|
4372
|
+
], 46, Jr),
|
|
4358
4373
|
U < S.items.length - 1 && i.pressedItemKey === `${n.messageKey(M.message)}-${M.partKey}` && (S.role !== "user" || n.timeOf(M.message)) ? (c(), d("div", {
|
|
4359
4374
|
key: 0,
|
|
4360
4375
|
class: R(["wm-list__meta wm-list__meta--press", { "wm-list__meta--right": S.role === "user" }])
|
|
4361
4376
|
}, [
|
|
4362
|
-
S.role !== "user" ? (c(), d("span",
|
|
4363
|
-
S.role !== "user" && n.timeOf(M.message) ? (c(), d("span",
|
|
4364
|
-
n.timeOf(M.message) ? (c(), d("span",
|
|
4377
|
+
S.role !== "user" ? (c(), d("span", Qr, y(n.roleLabel(S)), 1)) : b("", !0),
|
|
4378
|
+
S.role !== "user" && n.timeOf(M.message) ? (c(), d("span", Zr, "•")) : b("", !0),
|
|
4379
|
+
n.timeOf(M.message) ? (c(), d("span", ei, y(n.timeOf(M.message)), 1)) : b("", !0)
|
|
4365
4380
|
], 2)) : b("", !0)
|
|
4366
4381
|
], 64))), 128)),
|
|
4367
4382
|
(S.role !== "user" || n.lastTimeOf(S)) && !n.hasTrailingOverlay(S) ? (c(), d("div", {
|
|
4368
4383
|
key: 0,
|
|
4369
4384
|
class: R(["wm-list__meta", { "wm-list__meta--right": S.role === "user" }])
|
|
4370
4385
|
}, [
|
|
4371
|
-
S.role !== "user" ? (c(), d("span",
|
|
4372
|
-
S.role !== "user" && n.lastTimeOf(S) ? (c(), d("span",
|
|
4373
|
-
n.lastTimeOf(S) ? (c(), d("span",
|
|
4386
|
+
S.role !== "user" ? (c(), d("span", ti, y(n.roleLabel(S)), 1)) : b("", !0),
|
|
4387
|
+
S.role !== "user" && n.lastTimeOf(S) ? (c(), d("span", ni, "•")) : b("", !0),
|
|
4388
|
+
n.lastTimeOf(S) ? (c(), d("span", si, y(n.lastTimeOf(S)), 1)) : b("", !0)
|
|
4374
4389
|
], 2)) : b("", !0)
|
|
4375
4390
|
], 64))
|
|
4376
4391
|
], 2)) : b("", !0)
|
|
4377
4392
|
], 64))), 128)),
|
|
4378
|
-
s.streamingActive ? (c(), d("div",
|
|
4379
|
-
l("div",
|
|
4393
|
+
s.streamingActive ? (c(), d("div", ri, [
|
|
4394
|
+
l("div", ii, [
|
|
4380
4395
|
K(a, {
|
|
4381
4396
|
size: 26,
|
|
4382
4397
|
tail: !0,
|
|
@@ -4410,14 +4425,14 @@ function ii(e, t, s, r, i, n) {
|
|
|
4410
4425
|
}, [
|
|
4411
4426
|
l("path", { d: "M6 9l6 6 6-6" })
|
|
4412
4427
|
], -1)
|
|
4413
|
-
])], 8,
|
|
4428
|
+
])], 8, ai)) : b("", !0)
|
|
4414
4429
|
]),
|
|
4415
4430
|
_: 1
|
|
4416
4431
|
})
|
|
4417
4432
|
]);
|
|
4418
4433
|
}
|
|
4419
|
-
const
|
|
4420
|
-
function
|
|
4434
|
+
const li = /* @__PURE__ */ F(Nr, [["render", oi], ["__scopeId", "data-v-94a2b136"]]), ge = typeof navigator < "u" && !!navigator.mediaDevices && typeof navigator.mediaDevices.getDisplayMedia == "function", Le = typeof window < "u" && typeof window.MediaRecorder < "u";
|
|
4435
|
+
function ci() {
|
|
4421
4436
|
return Le && [
|
|
4422
4437
|
"video/webm;codecs=vp9,opus",
|
|
4423
4438
|
"video/webm;codecs=vp8,opus",
|
|
@@ -4437,10 +4452,10 @@ function Ke({ audio: e }) {
|
|
|
4437
4452
|
systemAudio: e ? "include" : "exclude"
|
|
4438
4453
|
};
|
|
4439
4454
|
}
|
|
4440
|
-
function
|
|
4455
|
+
function po(e) {
|
|
4441
4456
|
return e ? e.startsWith("image/") ? "image" : e.startsWith("video/") ? "video" : "file" : "file";
|
|
4442
4457
|
}
|
|
4443
|
-
async function
|
|
4458
|
+
async function di() {
|
|
4444
4459
|
if (!ge) return null;
|
|
4445
4460
|
let e;
|
|
4446
4461
|
try {
|
|
@@ -4451,7 +4466,7 @@ async function li() {
|
|
|
4451
4466
|
return (t == null ? void 0 : t.name) !== "NotAllowedError" && console.error("[media] screenshot picker", t), null;
|
|
4452
4467
|
}
|
|
4453
4468
|
try {
|
|
4454
|
-
return await
|
|
4469
|
+
return await ui(e);
|
|
4455
4470
|
} catch (t) {
|
|
4456
4471
|
return console.error("[media] screenshot capture", t), null;
|
|
4457
4472
|
} finally {
|
|
@@ -4460,7 +4475,7 @@ async function li() {
|
|
|
4460
4475
|
});
|
|
4461
4476
|
}
|
|
4462
4477
|
}
|
|
4463
|
-
async function
|
|
4478
|
+
async function ui(e) {
|
|
4464
4479
|
const t = document.createElement("video");
|
|
4465
4480
|
t.muted = !0, t.playsInline = !0, t.srcObject = e, await t.play(), await new Promise((o) => requestAnimationFrame(o));
|
|
4466
4481
|
const s = t.videoWidth || 1280, r = t.videoHeight || 720, i = document.createElement("canvas");
|
|
@@ -4473,7 +4488,7 @@ async function ci(e) {
|
|
|
4473
4488
|
}), a = (/* @__PURE__ */ new Date()).toISOString().replace(/[:.]/g, "-").slice(0, 19);
|
|
4474
4489
|
return new File([n], `capture-${a}.png`, { type: "image/png" });
|
|
4475
4490
|
}
|
|
4476
|
-
async function
|
|
4491
|
+
async function hi(e = {}) {
|
|
4477
4492
|
var k;
|
|
4478
4493
|
if (!ge || !Le) return null;
|
|
4479
4494
|
let t;
|
|
@@ -4484,7 +4499,7 @@ async function di(e = {}) {
|
|
|
4484
4499
|
} catch (v) {
|
|
4485
4500
|
return (v == null ? void 0 : v.name) !== "NotAllowedError" && console.error("[media] record picker", v), null;
|
|
4486
4501
|
}
|
|
4487
|
-
const s =
|
|
4502
|
+
const s = ci();
|
|
4488
4503
|
let r;
|
|
4489
4504
|
try {
|
|
4490
4505
|
r = s ? new window.MediaRecorder(t, { mimeType: s }) : new window.MediaRecorder(t);
|
|
@@ -4538,7 +4553,7 @@ async function di(e = {}) {
|
|
|
4538
4553
|
}
|
|
4539
4554
|
};
|
|
4540
4555
|
}
|
|
4541
|
-
const
|
|
4556
|
+
const mi = [
|
|
4542
4557
|
{
|
|
4543
4558
|
action: "file",
|
|
4544
4559
|
labelKey: "composer.attachFile",
|
|
@@ -4554,7 +4569,7 @@ const ui = [
|
|
|
4554
4569
|
labelKey: "composer.recordScreen",
|
|
4555
4570
|
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"
|
|
4556
4571
|
}
|
|
4557
|
-
],
|
|
4572
|
+
], fi = {
|
|
4558
4573
|
name: "WmComposer",
|
|
4559
4574
|
inject: {
|
|
4560
4575
|
// Translator shared by the Messenger shell; French fallback when
|
|
@@ -4596,7 +4611,7 @@ const ui = [
|
|
|
4596
4611
|
return this.focused || !!this.local.trim() || this.attachOpen || this.recording;
|
|
4597
4612
|
},
|
|
4598
4613
|
attachItems() {
|
|
4599
|
-
return
|
|
4614
|
+
return mi.map((e) => ({
|
|
4600
4615
|
...e,
|
|
4601
4616
|
label: this.t(e.labelKey),
|
|
4602
4617
|
disabled: e.action === "screenshot" && !ge || e.action === "record" && (!ge || !Le)
|
|
@@ -4683,13 +4698,13 @@ const ui = [
|
|
|
4683
4698
|
},
|
|
4684
4699
|
async captureScreenshot() {
|
|
4685
4700
|
if (this.disabled) return;
|
|
4686
|
-
const e = await
|
|
4701
|
+
const e = await di();
|
|
4687
4702
|
e && this.$emit("attach", e);
|
|
4688
4703
|
},
|
|
4689
4704
|
async startRecording() {
|
|
4690
4705
|
if (this.recording || this.disabled) return;
|
|
4691
4706
|
this.recordingElapsed = 0;
|
|
4692
|
-
const e = await
|
|
4707
|
+
const e = await hi({
|
|
4693
4708
|
onstart: () => {
|
|
4694
4709
|
this.recording = !0;
|
|
4695
4710
|
},
|
|
@@ -4731,30 +4746,30 @@ const ui = [
|
|
|
4731
4746
|
!e || !this._vvHandler || (e.removeEventListener("resize", this._vvHandler), e.removeEventListener("scroll", this._vvHandler), this._vvHandler = null);
|
|
4732
4747
|
}
|
|
4733
4748
|
}
|
|
4734
|
-
},
|
|
4749
|
+
}, _i = {
|
|
4735
4750
|
key: 0,
|
|
4736
4751
|
class: "wm-rec"
|
|
4737
|
-
},
|
|
4752
|
+
}, gi = { class: "wm-rec__lbl" }, yi = {
|
|
4738
4753
|
key: 1,
|
|
4739
4754
|
class: "wm-compose__menu",
|
|
4740
4755
|
role: "menu"
|
|
4741
|
-
},
|
|
4756
|
+
}, vi = ["disabled", "onClick"], pi = { class: "wm-compose__menuIcon" }, wi = {
|
|
4742
4757
|
viewBox: "0 0 24 24",
|
|
4743
4758
|
width: "14",
|
|
4744
4759
|
height: "14",
|
|
4745
4760
|
"aria-hidden": "true"
|
|
4746
|
-
},
|
|
4747
|
-
function
|
|
4761
|
+
}, bi = ["d"], ki = ["placeholder", "disabled"], Ci = { class: "wm-compose__actions" }, Ai = ["title", "aria-label", "disabled"], Si = ["disabled", "aria-label"];
|
|
4762
|
+
function Ti(e, t, s, r, i, n) {
|
|
4748
4763
|
return c(), d("div", {
|
|
4749
4764
|
class: R(["wm-compose-wrap", { "wm-compose-wrap--sheet": s.displayMode === "sheet" }]),
|
|
4750
4765
|
style: N(i.kbOffset ? { transform: `translateY(-${i.kbOffset}px)` } : null)
|
|
4751
4766
|
}, [
|
|
4752
|
-
i.recording ? (c(), d("div",
|
|
4767
|
+
i.recording ? (c(), d("div", _i, [
|
|
4753
4768
|
t[10] || (t[10] = l("span", {
|
|
4754
4769
|
class: "wm-rec__dot",
|
|
4755
4770
|
"aria-hidden": "true"
|
|
4756
4771
|
}, null, -1)),
|
|
4757
|
-
l("span",
|
|
4772
|
+
l("span", gi, y(n.t("composer.recording", { time: n.recordingElapsedLabel })), 1),
|
|
4758
4773
|
l("button", {
|
|
4759
4774
|
type: "button",
|
|
4760
4775
|
class: "wm-rec__stop",
|
|
@@ -4777,7 +4792,7 @@ function Ai(e, t, s, r, i, n) {
|
|
|
4777
4792
|
class: "wm-compose__overlay",
|
|
4778
4793
|
onClick: t[2] || (t[2] = (a) => i.attachOpen = !1)
|
|
4779
4794
|
})) : b("", !0),
|
|
4780
|
-
i.attachOpen ? (c(), d("div",
|
|
4795
|
+
i.attachOpen ? (c(), d("div", yi, [
|
|
4781
4796
|
(c(!0), d(B, null, D(n.attachItems, (a) => (c(), d("button", {
|
|
4782
4797
|
key: a.action,
|
|
4783
4798
|
type: "button",
|
|
@@ -4785,8 +4800,8 @@ function Ai(e, t, s, r, i, n) {
|
|
|
4785
4800
|
disabled: a.disabled,
|
|
4786
4801
|
onClick: (o) => n.onAttachAction(a.action)
|
|
4787
4802
|
}, [
|
|
4788
|
-
l("span",
|
|
4789
|
-
(c(), d("svg",
|
|
4803
|
+
l("span", pi, [
|
|
4804
|
+
(c(), d("svg", wi, [
|
|
4790
4805
|
l("path", {
|
|
4791
4806
|
d: a.path,
|
|
4792
4807
|
stroke: "currentColor",
|
|
@@ -4794,11 +4809,11 @@ function Ai(e, t, s, r, i, n) {
|
|
|
4794
4809
|
"stroke-linecap": "round",
|
|
4795
4810
|
"stroke-linejoin": "round",
|
|
4796
4811
|
fill: "none"
|
|
4797
|
-
}, null, 8,
|
|
4812
|
+
}, null, 8, bi)
|
|
4798
4813
|
]))
|
|
4799
4814
|
]),
|
|
4800
4815
|
l("span", null, y(a.label), 1)
|
|
4801
|
-
], 8,
|
|
4816
|
+
], 8, vi))), 128))
|
|
4802
4817
|
])) : b("", !0),
|
|
4803
4818
|
$(l("textarea", {
|
|
4804
4819
|
ref: "inputEl",
|
|
@@ -4811,10 +4826,10 @@ function Ai(e, t, s, r, i, n) {
|
|
|
4811
4826
|
onInput: t[5] || (t[5] = (...a) => n.autosize && n.autosize(...a)),
|
|
4812
4827
|
onFocus: t[6] || (t[6] = (...a) => n.onFocus && n.onFocus(...a)),
|
|
4813
4828
|
onBlur: t[7] || (t[7] = (...a) => n.onBlur && n.onBlur(...a))
|
|
4814
|
-
}, null, 40,
|
|
4829
|
+
}, null, 40, ki), [
|
|
4815
4830
|
[ee, i.local]
|
|
4816
4831
|
]),
|
|
4817
|
-
l("div",
|
|
4832
|
+
l("div", Ci, [
|
|
4818
4833
|
l("button", {
|
|
4819
4834
|
type: "button",
|
|
4820
4835
|
class: R(["wm-compose__icon", { "is-open": i.attachOpen }]),
|
|
@@ -4836,7 +4851,7 @@ function Ai(e, t, s, r, i, n) {
|
|
|
4836
4851
|
}, [
|
|
4837
4852
|
l("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" })
|
|
4838
4853
|
], -1)
|
|
4839
|
-
])], 10,
|
|
4854
|
+
])], 10, Ai),
|
|
4840
4855
|
l("button", {
|
|
4841
4856
|
type: "submit",
|
|
4842
4857
|
class: R(["wm-compose__send", { "is-empty": !n.canSend }]),
|
|
@@ -4856,12 +4871,12 @@ function Ai(e, t, s, r, i, n) {
|
|
|
4856
4871
|
}, [
|
|
4857
4872
|
l("path", { d: "M22 2L11 13M22 2l-7 20-4-9-9-4 20-7z" })
|
|
4858
4873
|
], -1)
|
|
4859
|
-
])], 10,
|
|
4874
|
+
])], 10, Si)
|
|
4860
4875
|
])
|
|
4861
4876
|
], 34)
|
|
4862
4877
|
], 6);
|
|
4863
4878
|
}
|
|
4864
|
-
const
|
|
4879
|
+
const Mi = /* @__PURE__ */ F(fi, [["render", Ti], ["__scopeId", "data-v-65fc47d7"]]), xi = {
|
|
4865
4880
|
name: "WmInlineCallbacks",
|
|
4866
4881
|
props: {
|
|
4867
4882
|
// Array d'items `{ id?, label, style?, ... }`. Pour les suggestions,
|
|
@@ -4899,11 +4914,11 @@ const Si = /* @__PURE__ */ F(hi, [["render", Ai], ["__scopeId", "data-v-79099412
|
|
|
4899
4914
|
return this.variant === "chips" ? "wm-icb__btn--chip" : ["wm-icb__btn--action", `wm-icb__btn--${(e == null ? void 0 : e.style) || "neutral"}`];
|
|
4900
4915
|
}
|
|
4901
4916
|
}
|
|
4902
|
-
},
|
|
4917
|
+
}, Oi = ["onClick"], Ri = {
|
|
4903
4918
|
key: 0,
|
|
4904
4919
|
class: "wm-icb__title"
|
|
4905
|
-
},
|
|
4906
|
-
function
|
|
4920
|
+
}, Li = { class: "wm-icb__row" }, Ii = ["onClick"];
|
|
4921
|
+
function Bi(e, t, s, r, i, n) {
|
|
4907
4922
|
return s.items.length ? (c(), d("div", {
|
|
4908
4923
|
key: n.batchKey,
|
|
4909
4924
|
class: R(["wm-icb", `wm-icb--${s.variant}`])
|
|
@@ -4914,22 +4929,22 @@ function Li(e, t, s, r, i, n) {
|
|
|
4914
4929
|
class: "wm-icb__btn wm-icb__btn--chip",
|
|
4915
4930
|
style: N({ animationDelay: s.baseDelay + o * s.stepDelay + "ms" }),
|
|
4916
4931
|
onClick: (f) => e.$emit("select", a)
|
|
4917
|
-
}, y(a.label), 13,
|
|
4918
|
-
n.headerTitle ? (c(), d("div",
|
|
4919
|
-
l("div",
|
|
4932
|
+
}, y(a.label), 13, Oi))), 128)) : (c(), d(B, { key: 1 }, [
|
|
4933
|
+
n.headerTitle ? (c(), d("div", Ri, y(n.headerTitle), 1)) : b("", !0),
|
|
4934
|
+
l("div", Li, [
|
|
4920
4935
|
(c(!0), d(B, null, D(s.items, (a, o) => (c(), d("button", {
|
|
4921
4936
|
key: a.id != null ? a.id : o,
|
|
4922
4937
|
type: "button",
|
|
4923
4938
|
class: R(["wm-icb__btn", n.btnClass(a)]),
|
|
4924
4939
|
onClick: (f) => e.$emit("select", a)
|
|
4925
|
-
}, y(a.label), 11,
|
|
4940
|
+
}, y(a.label), 11, Ii))), 128))
|
|
4926
4941
|
])
|
|
4927
4942
|
], 64))
|
|
4928
4943
|
], 2)) : b("", !0);
|
|
4929
4944
|
}
|
|
4930
|
-
const
|
|
4945
|
+
const Ei = /* @__PURE__ */ F(xi, [["render", Bi], ["__scopeId", "data-v-c8cc8cbf"]]);
|
|
4931
4946
|
let Ne = 0;
|
|
4932
|
-
const
|
|
4947
|
+
const Pi = /* @__PURE__ */ new Set([
|
|
4933
4948
|
"text",
|
|
4934
4949
|
"textarea",
|
|
4935
4950
|
"number",
|
|
@@ -4937,7 +4952,7 @@ const Bi = /* @__PURE__ */ new Set([
|
|
|
4937
4952
|
"select",
|
|
4938
4953
|
"multiselect",
|
|
4939
4954
|
"date"
|
|
4940
|
-
]),
|
|
4955
|
+
]), Fi = {
|
|
4941
4956
|
name: "WmFormCard",
|
|
4942
4957
|
components: { AIAvatar: me },
|
|
4943
4958
|
inject: {
|
|
@@ -4967,7 +4982,7 @@ const Bi = /* @__PURE__ */ new Set([
|
|
|
4967
4982
|
// douteux.
|
|
4968
4983
|
normalizedFields() {
|
|
4969
4984
|
var t;
|
|
4970
|
-
return (Array.isArray((t = this.form) == null ? void 0 : t.fields) ? this.form.fields : []).filter((s) => !(!(s != null && s.key) || !(s != null && s.label) || !
|
|
4985
|
+
return (Array.isArray((t = this.form) == null ? void 0 : t.fields) ? this.form.fields : []).filter((s) => !(!(s != null && s.key) || !(s != null && s.label) || !Pi.has(s == null ? void 0 : s.type) || (s.type === "select" || s.type === "multiselect") && (!Array.isArray(s.options) || s.options.length === 0)));
|
|
4971
4986
|
}
|
|
4972
4987
|
},
|
|
4973
4988
|
created() {
|
|
@@ -5020,47 +5035,47 @@ const Bi = /* @__PURE__ */ new Set([
|
|
|
5020
5035
|
}
|
|
5021
5036
|
}
|
|
5022
5037
|
}
|
|
5023
|
-
},
|
|
5038
|
+
}, Ui = { class: "wm-form" }, Di = { class: "wm-form__head" }, Ni = { class: "wm-form__icon" }, Hi = { class: "wm-form__main" }, ji = { class: "wm-form__title" }, zi = {
|
|
5024
5039
|
key: 0,
|
|
5025
5040
|
class: "wm-form__detail"
|
|
5026
|
-
},
|
|
5041
|
+
}, qi = ["for"], Vi = {
|
|
5027
5042
|
key: 0,
|
|
5028
5043
|
class: "wm-form__req",
|
|
5029
5044
|
"aria-hidden": "true"
|
|
5030
|
-
},
|
|
5045
|
+
}, Ki = ["id", "onUpdate:modelValue", "placeholder", "required", "disabled"], Wi = ["id", "onUpdate:modelValue", "placeholder", "required", "disabled"], $i = ["id", "onUpdate:modelValue", "placeholder", "required", "disabled"], Gi = ["id", "onUpdate:modelValue", "required", "disabled"], Yi = {
|
|
5031
5046
|
key: 4,
|
|
5032
5047
|
class: "wm-form__bool"
|
|
5033
|
-
},
|
|
5048
|
+
}, Ji = ["id", "onUpdate:modelValue", "disabled"], Xi = ["id", "onUpdate:modelValue", "required", "disabled"], Qi = {
|
|
5034
5049
|
value: "",
|
|
5035
5050
|
disabled: ""
|
|
5036
|
-
},
|
|
5051
|
+
}, Zi = ["value"], ea = {
|
|
5037
5052
|
key: 6,
|
|
5038
5053
|
class: "wm-form__multi"
|
|
5039
|
-
},
|
|
5054
|
+
}, ta = ["value", "checked", "disabled", "onChange"], na = {
|
|
5040
5055
|
key: 0,
|
|
5041
5056
|
class: "wm-form__err"
|
|
5042
|
-
},
|
|
5057
|
+
}, sa = ["disabled"], ra = {
|
|
5043
5058
|
key: 0,
|
|
5044
5059
|
class: "wm-form__spinner",
|
|
5045
5060
|
"aria-hidden": "true"
|
|
5046
|
-
},
|
|
5061
|
+
}, ia = {
|
|
5047
5062
|
key: 2,
|
|
5048
5063
|
class: "wm-form__doneLbl"
|
|
5049
5064
|
};
|
|
5050
|
-
function
|
|
5065
|
+
function aa(e, t, s, r, i, n) {
|
|
5051
5066
|
const a = P("AIAvatar");
|
|
5052
|
-
return c(), d("div",
|
|
5053
|
-
l("div",
|
|
5054
|
-
l("div",
|
|
5067
|
+
return c(), d("div", Ui, [
|
|
5068
|
+
l("div", Di, [
|
|
5069
|
+
l("div", Ni, [
|
|
5055
5070
|
K(a, {
|
|
5056
5071
|
size: 24,
|
|
5057
5072
|
name: s.agentName,
|
|
5058
5073
|
"image-url": s.agentAvatarUrl
|
|
5059
5074
|
}, null, 8, ["name", "image-url"])
|
|
5060
5075
|
]),
|
|
5061
|
-
l("div",
|
|
5062
|
-
l("div",
|
|
5063
|
-
s.form.description ? (c(), d("div",
|
|
5076
|
+
l("div", Hi, [
|
|
5077
|
+
l("div", ji, y(s.form.title || n.t("form.title")), 1),
|
|
5078
|
+
s.form.description ? (c(), d("div", zi, y(s.form.description), 1)) : b("", !0)
|
|
5064
5079
|
])
|
|
5065
5080
|
]),
|
|
5066
5081
|
l("form", {
|
|
@@ -5076,8 +5091,8 @@ function ra(e, t, s, r, i, n) {
|
|
|
5076
5091
|
class: "wm-form__label"
|
|
5077
5092
|
}, [
|
|
5078
5093
|
Me(y(o.label), 1),
|
|
5079
|
-
o.required ? (c(), d("span",
|
|
5080
|
-
], 8,
|
|
5094
|
+
o.required ? (c(), d("span", Vi, "*")) : b("", !0)
|
|
5095
|
+
], 8, qi),
|
|
5081
5096
|
o.type === "text" ? $((c(), d("input", {
|
|
5082
5097
|
key: 0,
|
|
5083
5098
|
id: `wm-f-${i._uid}-${o.key}`,
|
|
@@ -5087,7 +5102,7 @@ function ra(e, t, s, r, i, n) {
|
|
|
5087
5102
|
placeholder: o.placeholder || "",
|
|
5088
5103
|
required: o.required,
|
|
5089
5104
|
disabled: s.readOnly || i.busy
|
|
5090
|
-
}, null, 8,
|
|
5105
|
+
}, null, 8, Ki)), [
|
|
5091
5106
|
[ee, i.values[o.key]]
|
|
5092
5107
|
]) : o.type === "textarea" ? $((c(), d("textarea", {
|
|
5093
5108
|
key: 1,
|
|
@@ -5098,7 +5113,7 @@ function ra(e, t, s, r, i, n) {
|
|
|
5098
5113
|
placeholder: o.placeholder || "",
|
|
5099
5114
|
required: o.required,
|
|
5100
5115
|
disabled: s.readOnly || i.busy
|
|
5101
|
-
}, null, 8,
|
|
5116
|
+
}, null, 8, Wi)), [
|
|
5102
5117
|
[ee, i.values[o.key]]
|
|
5103
5118
|
]) : o.type === "number" ? $((c(), d("input", {
|
|
5104
5119
|
key: 2,
|
|
@@ -5109,7 +5124,7 @@ function ra(e, t, s, r, i, n) {
|
|
|
5109
5124
|
placeholder: o.placeholder || "",
|
|
5110
5125
|
required: o.required,
|
|
5111
5126
|
disabled: s.readOnly || i.busy
|
|
5112
|
-
}, null, 8,
|
|
5127
|
+
}, null, 8, $i)), [
|
|
5113
5128
|
[
|
|
5114
5129
|
ee,
|
|
5115
5130
|
i.values[o.key],
|
|
@@ -5124,15 +5139,15 @@ function ra(e, t, s, r, i, n) {
|
|
|
5124
5139
|
class: "wm-form__input",
|
|
5125
5140
|
required: o.required,
|
|
5126
5141
|
disabled: s.readOnly || i.busy
|
|
5127
|
-
}, null, 8,
|
|
5142
|
+
}, null, 8, Gi)), [
|
|
5128
5143
|
[ee, i.values[o.key]]
|
|
5129
|
-
]) : o.type === "boolean" ? (c(), d("label",
|
|
5144
|
+
]) : o.type === "boolean" ? (c(), d("label", Yi, [
|
|
5130
5145
|
$(l("input", {
|
|
5131
5146
|
id: `wm-f-${i._uid}-${o.key}`,
|
|
5132
5147
|
"onUpdate:modelValue": (f) => i.values[o.key] = f,
|
|
5133
5148
|
type: "checkbox",
|
|
5134
5149
|
disabled: s.readOnly || i.busy
|
|
5135
|
-
}, null, 8,
|
|
5150
|
+
}, null, 8, Ji), [
|
|
5136
5151
|
[Ge, i.values[o.key]]
|
|
5137
5152
|
]),
|
|
5138
5153
|
l("span", null, y(o.placeholder || n.t("common.yes")), 1)
|
|
@@ -5144,14 +5159,14 @@ function ra(e, t, s, r, i, n) {
|
|
|
5144
5159
|
required: o.required,
|
|
5145
5160
|
disabled: s.readOnly || i.busy
|
|
5146
5161
|
}, [
|
|
5147
|
-
l("option",
|
|
5162
|
+
l("option", Qi, y(o.placeholder || n.t("form.choose")), 1),
|
|
5148
5163
|
(c(!0), d(B, null, D(o.options, (f) => (c(), d("option", {
|
|
5149
5164
|
key: f.value,
|
|
5150
5165
|
value: f.value
|
|
5151
|
-
}, y(f.label), 9,
|
|
5152
|
-
], 8,
|
|
5166
|
+
}, y(f.label), 9, Zi))), 128))
|
|
5167
|
+
], 8, Xi)), [
|
|
5153
5168
|
[Ye, i.values[o.key]]
|
|
5154
|
-
]) : o.type === "multiselect" ? (c(), d("div",
|
|
5169
|
+
]) : o.type === "multiselect" ? (c(), d("div", ea, [
|
|
5155
5170
|
(c(!0), d(B, null, D(o.options, (f) => (c(), d("label", {
|
|
5156
5171
|
key: f.value,
|
|
5157
5172
|
class: "wm-form__multiItem"
|
|
@@ -5166,25 +5181,25 @@ function ra(e, t, s, r, i, n) {
|
|
|
5166
5181
|
f.value,
|
|
5167
5182
|
k.target.checked
|
|
5168
5183
|
)
|
|
5169
|
-
}, null, 40,
|
|
5184
|
+
}, null, 40, ta),
|
|
5170
5185
|
l("span", null, y(f.label), 1)
|
|
5171
5186
|
]))), 128))
|
|
5172
5187
|
])) : b("", !0)
|
|
5173
5188
|
]))), 128)),
|
|
5174
|
-
i.error ? (c(), d("div",
|
|
5175
|
-
s.readOnly ? (c(), d("div",
|
|
5189
|
+
i.error ? (c(), d("div", na, y(i.error), 1)) : b("", !0),
|
|
5190
|
+
s.readOnly ? (c(), d("div", ia, y(n.t("form.responseSent")), 1)) : (c(), d("button", {
|
|
5176
5191
|
key: 1,
|
|
5177
5192
|
type: "submit",
|
|
5178
5193
|
class: "wm-form__submit",
|
|
5179
5194
|
disabled: i.busy
|
|
5180
5195
|
}, [
|
|
5181
|
-
i.busy ? (c(), d("span",
|
|
5196
|
+
i.busy ? (c(), d("span", ra)) : b("", !0),
|
|
5182
5197
|
l("span", null, y(i.busy ? n.t("common.sending") : s.form.submit_label || n.t("common.send")), 1)
|
|
5183
|
-
], 8,
|
|
5198
|
+
], 8, sa))
|
|
5184
5199
|
], 32)
|
|
5185
5200
|
]);
|
|
5186
5201
|
}
|
|
5187
|
-
const
|
|
5202
|
+
const oa = /* @__PURE__ */ F(Fi, [["render", aa], ["__scopeId", "data-v-fe65cc56"]]), la = {
|
|
5188
5203
|
name: "WmFeedback",
|
|
5189
5204
|
inject: {
|
|
5190
5205
|
// Translator shared by the Messenger shell; French fallback when
|
|
@@ -5218,13 +5233,13 @@ const ia = /* @__PURE__ */ F(Ei, [["render", ra], ["__scopeId", "data-v-fe65cc56
|
|
|
5218
5233
|
!this.sel || this.busy || this.$emit("submit", { rating: this.sel });
|
|
5219
5234
|
}
|
|
5220
5235
|
}
|
|
5221
|
-
},
|
|
5236
|
+
}, ca = { class: "wm-fb" }, da = { class: "wm-fb__title" }, ua = { class: "wm-fb__sub" }, ha = { class: "wm-fb__row" }, ma = ["onClick"], fa = { class: "wm-fb__emoji" }, _a = { class: "wm-fb__label" }, ga = ["disabled"], ya = {
|
|
5222
5237
|
key: 1,
|
|
5223
5238
|
class: "wm-fb__done"
|
|
5224
|
-
},
|
|
5225
|
-
function
|
|
5226
|
-
return c(), d("div",
|
|
5227
|
-
s.done ? (c(), d("div",
|
|
5239
|
+
}, va = { class: "wm-fb__doneTitle" }, pa = { class: "wm-fb__doneSub" };
|
|
5240
|
+
function wa(e, t, s, r, i, n) {
|
|
5241
|
+
return c(), d("div", ca, [
|
|
5242
|
+
s.done ? (c(), d("div", ya, [
|
|
5228
5243
|
t[1] || (t[1] = l("div", { class: "wm-fb__check" }, [
|
|
5229
5244
|
l("svg", {
|
|
5230
5245
|
width: "16",
|
|
@@ -5240,32 +5255,32 @@ function va(e, t, s, r, i, n) {
|
|
|
5240
5255
|
l("path", { d: "M20 6L9 17l-5-5" })
|
|
5241
5256
|
])
|
|
5242
5257
|
], -1)),
|
|
5243
|
-
l("div",
|
|
5244
|
-
l("div",
|
|
5258
|
+
l("div", va, y(n.t("feedback.doneTitle")), 1),
|
|
5259
|
+
l("div", pa, y(n.t("feedback.doneSubtitle")), 1)
|
|
5245
5260
|
])) : (c(), d(B, { key: 0 }, [
|
|
5246
|
-
l("div",
|
|
5247
|
-
l("div",
|
|
5248
|
-
l("div",
|
|
5261
|
+
l("div", da, y(n.t("feedback.question")), 1),
|
|
5262
|
+
l("div", ua, y(n.t("feedback.subtitle")), 1),
|
|
5263
|
+
l("div", ha, [
|
|
5249
5264
|
(c(!0), d(B, null, D(n.options, (a) => (c(), d("button", {
|
|
5250
5265
|
key: a.v,
|
|
5251
5266
|
type: "button",
|
|
5252
5267
|
class: R(["wm-fb__opt", { "is-selected": i.sel === a.v }]),
|
|
5253
5268
|
onClick: (o) => i.sel = a.v
|
|
5254
5269
|
}, [
|
|
5255
|
-
l("span",
|
|
5256
|
-
l("span",
|
|
5257
|
-
], 10,
|
|
5270
|
+
l("span", fa, y(a.e), 1),
|
|
5271
|
+
l("span", _a, y(a.l), 1)
|
|
5272
|
+
], 10, ma))), 128))
|
|
5258
5273
|
]),
|
|
5259
5274
|
l("button", {
|
|
5260
5275
|
type: "button",
|
|
5261
5276
|
class: "wm-fb__send",
|
|
5262
5277
|
disabled: !i.sel || s.busy,
|
|
5263
5278
|
onClick: t[0] || (t[0] = (...a) => n.onSend && n.onSend(...a))
|
|
5264
|
-
}, y(s.busy ? n.t("common.sending") : n.t("feedback.submit")), 9,
|
|
5279
|
+
}, y(s.busy ? n.t("common.sending") : n.t("feedback.submit")), 9, ga)
|
|
5265
5280
|
], 64))
|
|
5266
5281
|
]);
|
|
5267
5282
|
}
|
|
5268
|
-
const
|
|
5283
|
+
const ba = /* @__PURE__ */ F(la, [["render", wa], ["__scopeId", "data-v-9b630564"]]), ka = {
|
|
5269
5284
|
name: "WmMoreMenu",
|
|
5270
5285
|
inject: {
|
|
5271
5286
|
// Translator shared by the Messenger shell; French fallback when
|
|
@@ -5300,24 +5315,24 @@ const pa = /* @__PURE__ */ F(aa, [["render", va], ["__scopeId", "data-v-9b630564
|
|
|
5300
5315
|
this.soundOn = !this.soundOn, this.$emit("sound-toggle", this.soundOn);
|
|
5301
5316
|
}
|
|
5302
5317
|
}
|
|
5303
|
-
},
|
|
5318
|
+
}, Ca = { class: "wm-mm" }, Aa = {
|
|
5304
5319
|
class: "wm-mm__pop",
|
|
5305
5320
|
role: "menu"
|
|
5306
|
-
},
|
|
5321
|
+
}, Sa = {
|
|
5307
5322
|
key: 0,
|
|
5308
5323
|
class: "wm-mm__section"
|
|
5309
|
-
},
|
|
5324
|
+
}, Ta = { class: "wm-mm__label" }, Ma = { class: "wm-mm__label" }, xa = {
|
|
5310
5325
|
key: 1,
|
|
5311
5326
|
class: "wm-mm__sep"
|
|
5312
|
-
},
|
|
5313
|
-
function
|
|
5314
|
-
return c(), d("div",
|
|
5327
|
+
}, Oa = { class: "wm-mm__section" }, Ra = { class: "wm-mm__label" }, La = { class: "wm-mm__section" }, Ia = { class: "wm-mm__label" }, Ba = { class: "wm-mm__label" };
|
|
5328
|
+
function Ea(e, t, s, r, i, n) {
|
|
5329
|
+
return c(), d("div", Ca, [
|
|
5315
5330
|
l("div", {
|
|
5316
5331
|
class: "wm-mm__scrim",
|
|
5317
5332
|
onClick: t[0] || (t[0] = (a) => e.$emit("close"))
|
|
5318
5333
|
}),
|
|
5319
|
-
l("div",
|
|
5320
|
-
s.canRename || s.canExport ? (c(), d("div",
|
|
5334
|
+
l("div", Aa, [
|
|
5335
|
+
s.canRename || s.canExport ? (c(), d("div", Sa, [
|
|
5321
5336
|
s.canRename ? (c(), d("button", {
|
|
5322
5337
|
key: 0,
|
|
5323
5338
|
type: "button",
|
|
@@ -5340,7 +5355,7 @@ function Ia(e, t, s, r, i, n) {
|
|
|
5340
5355
|
l("path", { d: "M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4 12.5-12.5z" })
|
|
5341
5356
|
])
|
|
5342
5357
|
], -1)),
|
|
5343
|
-
l("span",
|
|
5358
|
+
l("span", Ta, y(n.t("moreMenu.editTitle")), 1)
|
|
5344
5359
|
])) : b("", !0),
|
|
5345
5360
|
s.canExport ? (c(), d("button", {
|
|
5346
5361
|
key: 1,
|
|
@@ -5363,12 +5378,12 @@ function Ia(e, t, s, r, i, n) {
|
|
|
5363
5378
|
l("path", { d: "M4 12v8a2 2 0 002 2h12a2 2 0 002-2v-8M16 6l-4-4-4 4M12 2v13" })
|
|
5364
5379
|
])
|
|
5365
5380
|
], -1)),
|
|
5366
|
-
l("span",
|
|
5381
|
+
l("span", Ma, y(n.t("moreMenu.exportTranscript")), 1),
|
|
5367
5382
|
t[8] || (t[8] = l("span", { class: "wm-mm__hint" }, ".txt", -1))
|
|
5368
5383
|
])) : b("", !0)
|
|
5369
5384
|
])) : b("", !0),
|
|
5370
|
-
s.canRename || s.canExport ? (c(), d("div",
|
|
5371
|
-
l("div",
|
|
5385
|
+
s.canRename || s.canExport ? (c(), d("div", xa)) : b("", !0),
|
|
5386
|
+
l("div", Oa, [
|
|
5372
5387
|
l("button", {
|
|
5373
5388
|
type: "button",
|
|
5374
5389
|
class: "wm-mm__item",
|
|
@@ -5390,7 +5405,7 @@ function Ia(e, t, s, r, i, n) {
|
|
|
5390
5405
|
l("path", { d: "M15.54 8.46a5 5 0 010 7.07M19.07 4.93a10 10 0 010 14.14" })
|
|
5391
5406
|
])
|
|
5392
5407
|
], -1)),
|
|
5393
|
-
l("span",
|
|
5408
|
+
l("span", Ra, y(n.t("moreMenu.sound")), 1),
|
|
5394
5409
|
l("span", {
|
|
5395
5410
|
class: R(["wm-mm__toggle", { "wm-mm__toggle--on": i.soundOn }])
|
|
5396
5411
|
}, [...t[9] || (t[9] = [
|
|
@@ -5399,7 +5414,7 @@ function Ia(e, t, s, r, i, n) {
|
|
|
5399
5414
|
])
|
|
5400
5415
|
]),
|
|
5401
5416
|
t[13] || (t[13] = l("div", { class: "wm-mm__sep" }, null, -1)),
|
|
5402
|
-
l("div",
|
|
5417
|
+
l("div", La, [
|
|
5403
5418
|
s.statusUrl ? (c(), d("button", {
|
|
5404
5419
|
key: 0,
|
|
5405
5420
|
type: "button",
|
|
@@ -5421,7 +5436,7 @@ function Ia(e, t, s, r, i, n) {
|
|
|
5421
5436
|
l("path", { d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zM10 6v4l3 2" })
|
|
5422
5437
|
])
|
|
5423
5438
|
], -1)),
|
|
5424
|
-
l("span",
|
|
5439
|
+
l("span", Ia, y(n.t("moreMenu.serviceStatus")), 1)
|
|
5425
5440
|
])) : b("", !0),
|
|
5426
5441
|
s.helpUrl ? (c(), d("button", {
|
|
5427
5442
|
key: 1,
|
|
@@ -5444,13 +5459,13 @@ function Ia(e, t, s, r, i, n) {
|
|
|
5444
5459
|
l("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" })
|
|
5445
5460
|
])
|
|
5446
5461
|
], -1)),
|
|
5447
|
-
l("span",
|
|
5462
|
+
l("span", Ba, y(n.t("moreMenu.helpCenter")), 1)
|
|
5448
5463
|
])) : b("", !0)
|
|
5449
5464
|
])
|
|
5450
5465
|
])
|
|
5451
5466
|
]);
|
|
5452
5467
|
}
|
|
5453
|
-
const
|
|
5468
|
+
const Pa = /* @__PURE__ */ F(ka, [["render", Ea], ["__scopeId", "data-v-4cf6d578"]]), Fa = {
|
|
5454
5469
|
name: "WmRenameDialog",
|
|
5455
5470
|
inject: {
|
|
5456
5471
|
// Translator shared by the Messenger shell; French fallback when
|
|
@@ -5492,20 +5507,20 @@ const Ba = /* @__PURE__ */ F(wa, [["render", Ia], ["__scopeId", "data-v-4cf6d578
|
|
|
5492
5507
|
this.canSubmit && this.$emit("submit", this.value.trim());
|
|
5493
5508
|
}
|
|
5494
5509
|
}
|
|
5495
|
-
},
|
|
5510
|
+
}, Ua = { class: "wm-dialog" }, Da = {
|
|
5496
5511
|
class: "wm-dialog__card",
|
|
5497
5512
|
role: "dialog",
|
|
5498
5513
|
"aria-modal": "true"
|
|
5499
|
-
},
|
|
5500
|
-
function
|
|
5501
|
-
return c(), d("div",
|
|
5514
|
+
}, Na = { class: "wm-dialog__head" }, Ha = { class: "wm-dialog__title" }, ja = ["aria-label"], za = { class: "wm-dialog__body" }, qa = ["placeholder"], Va = { class: "wm-dialog__actions" }, Ka = ["disabled"];
|
|
5515
|
+
function Wa(e, t, s, r, i, n) {
|
|
5516
|
+
return c(), d("div", Ua, [
|
|
5502
5517
|
l("div", {
|
|
5503
5518
|
class: "wm-dialog__scrim",
|
|
5504
5519
|
onClick: t[0] || (t[0] = (a) => e.$emit("close"))
|
|
5505
5520
|
}),
|
|
5506
|
-
l("div",
|
|
5507
|
-
l("div",
|
|
5508
|
-
l("div",
|
|
5521
|
+
l("div", Da, [
|
|
5522
|
+
l("div", Na, [
|
|
5523
|
+
l("div", Ha, y(s.title || n.t("rename.title")), 1),
|
|
5509
5524
|
l("button", {
|
|
5510
5525
|
type: "button",
|
|
5511
5526
|
class: "wm-dialog__close",
|
|
@@ -5525,9 +5540,9 @@ function Va(e, t, s, r, i, n) {
|
|
|
5525
5540
|
}, [
|
|
5526
5541
|
l("path", { d: "M18 6L6 18M6 6l12 12" })
|
|
5527
5542
|
], -1)
|
|
5528
|
-
])], 8,
|
|
5543
|
+
])], 8, ja)
|
|
5529
5544
|
]),
|
|
5530
|
-
l("div",
|
|
5545
|
+
l("div", za, [
|
|
5531
5546
|
$(l("input", {
|
|
5532
5547
|
ref: "input",
|
|
5533
5548
|
"onUpdate:modelValue": t[2] || (t[2] = (a) => i.value = a),
|
|
@@ -5539,11 +5554,11 @@ function Va(e, t, s, r, i, n) {
|
|
|
5539
5554
|
t[3] || (t[3] = _e(G((...a) => n.onSubmit && n.onSubmit(...a), ["prevent"]), ["enter"])),
|
|
5540
5555
|
t[4] || (t[4] = _e(G((a) => e.$emit("close"), ["prevent"]), ["esc"]))
|
|
5541
5556
|
]
|
|
5542
|
-
}, null, 40,
|
|
5557
|
+
}, null, 40, qa), [
|
|
5543
5558
|
[ee, i.value]
|
|
5544
5559
|
])
|
|
5545
5560
|
]),
|
|
5546
|
-
l("div",
|
|
5561
|
+
l("div", Va, [
|
|
5547
5562
|
l("button", {
|
|
5548
5563
|
type: "button",
|
|
5549
5564
|
class: "wm-dialog__btn",
|
|
@@ -5554,25 +5569,25 @@ function Va(e, t, s, r, i, n) {
|
|
|
5554
5569
|
class: "wm-dialog__btn wm-dialog__btn--primary",
|
|
5555
5570
|
disabled: !n.canSubmit,
|
|
5556
5571
|
onClick: t[6] || (t[6] = (...a) => n.onSubmit && n.onSubmit(...a))
|
|
5557
|
-
}, y(n.t("common.save")), 9,
|
|
5572
|
+
}, y(n.t("common.save")), 9, Ka)
|
|
5558
5573
|
])
|
|
5559
5574
|
])
|
|
5560
5575
|
]);
|
|
5561
5576
|
}
|
|
5562
|
-
const
|
|
5577
|
+
const $a = /* @__PURE__ */ F(Fa, [["render", Wa], ["__scopeId", "data-v-6d5f94a8"]]), He = "ww-messenger-tokens", Ga = {
|
|
5563
5578
|
name: "Messenger",
|
|
5564
5579
|
components: {
|
|
5565
5580
|
Launcher: qt,
|
|
5566
5581
|
Header: _n,
|
|
5567
|
-
Onboarding:
|
|
5568
|
-
History:
|
|
5569
|
-
MessageList:
|
|
5570
|
-
Composer:
|
|
5571
|
-
InlineCallbacks:
|
|
5572
|
-
FormCard:
|
|
5573
|
-
Feedback:
|
|
5574
|
-
MoreMenu:
|
|
5575
|
-
RenameDialog:
|
|
5582
|
+
Onboarding: es,
|
|
5583
|
+
History: gs,
|
|
5584
|
+
MessageList: li,
|
|
5585
|
+
Composer: Mi,
|
|
5586
|
+
InlineCallbacks: Ei,
|
|
5587
|
+
FormCard: oa,
|
|
5588
|
+
Feedback: ba,
|
|
5589
|
+
MoreMenu: Pa,
|
|
5590
|
+
RenameDialog: $a
|
|
5576
5591
|
},
|
|
5577
5592
|
mixins: [
|
|
5578
5593
|
wt,
|
|
@@ -6879,42 +6894,42 @@ const Ka = /* @__PURE__ */ F(Ea, [["render", Va], ["__scopeId", "data-v-6d5f94a8
|
|
|
6879
6894
|
}
|
|
6880
6895
|
}
|
|
6881
6896
|
}
|
|
6882
|
-
},
|
|
6897
|
+
}, Ya = {
|
|
6883
6898
|
key: 0,
|
|
6884
6899
|
class: "wm-loading",
|
|
6885
6900
|
"aria-busy": "true",
|
|
6886
6901
|
"aria-live": "polite"
|
|
6887
|
-
},
|
|
6902
|
+
}, Ja = ["aria-label"], Xa = { class: "wm-screens" }, Qa = {
|
|
6888
6903
|
key: "error",
|
|
6889
6904
|
class: "wm-screen wm-state"
|
|
6890
|
-
},
|
|
6905
|
+
}, Za = { class: "wm-state__err" }, eo = { class: "wm-state__errTitle" }, to = { class: "wm-state__errSub" }, no = {
|
|
6891
6906
|
key: "chat",
|
|
6892
6907
|
class: "wm-screen wm-screen--chat"
|
|
6893
|
-
},
|
|
6908
|
+
}, so = { class: "wm-bottom" }, ro = {
|
|
6894
6909
|
key: 0,
|
|
6895
6910
|
ref: "floatEl",
|
|
6896
6911
|
class: "wm-float"
|
|
6897
|
-
},
|
|
6912
|
+
}, io = {
|
|
6898
6913
|
key: 1,
|
|
6899
6914
|
class: "wm-actionWait",
|
|
6900
6915
|
role: "status",
|
|
6901
6916
|
"aria-live": "polite"
|
|
6902
|
-
},
|
|
6917
|
+
}, ao = { class: "wm-actionWait__lbl" }, oo = {
|
|
6903
6918
|
key: 2,
|
|
6904
6919
|
class: "wm-attached"
|
|
6905
|
-
},
|
|
6920
|
+
}, lo = ["src", "alt"], co = {
|
|
6906
6921
|
key: 1,
|
|
6907
6922
|
class: "wm-attached__file"
|
|
6908
|
-
},
|
|
6923
|
+
}, uo = { class: "wm-attached__fileMeta" }, ho = { class: "wm-attached__fileName" }, mo = {
|
|
6909
6924
|
key: 0,
|
|
6910
6925
|
class: "wm-attached__fileSize"
|
|
6911
|
-
},
|
|
6926
|
+
}, fo = ["aria-label", "onClick"], _o = {
|
|
6912
6927
|
key: 3,
|
|
6913
6928
|
class: "wm-ended",
|
|
6914
6929
|
role: "status",
|
|
6915
6930
|
"aria-live": "polite"
|
|
6916
|
-
},
|
|
6917
|
-
function
|
|
6931
|
+
}, go = { class: "wm-ended__lbl" };
|
|
6932
|
+
function yo(e, t, s, r, i, n) {
|
|
6918
6933
|
const a = P("Launcher"), o = P("Header"), f = P("History"), k = P("Onboarding"), v = P("MessageList"), T = P("InlineCallbacks"), I = P("FormCard"), S = P("Feedback"), z = P("Composer"), M = P("MoreMenu"), U = P("RenameDialog");
|
|
6919
6934
|
return c(), d("div", {
|
|
6920
6935
|
class: R(["wm-root", `wm-root--${s.displayMode}`]),
|
|
@@ -6941,7 +6956,7 @@ function _o(e, t, s, r, i, n) {
|
|
|
6941
6956
|
"aria-label": "Messenger",
|
|
6942
6957
|
onClick: t[7] || (t[7] = (...x) => n.onPanelClick && n.onPanelClick(...x))
|
|
6943
6958
|
}, [
|
|
6944
|
-
!n.ready && !n.error ? (c(), d("div",
|
|
6959
|
+
!n.ready && !n.error ? (c(), d("div", Ya, [
|
|
6945
6960
|
n.isEmbedded ? b("", !0) : (c(), d("button", {
|
|
6946
6961
|
key: 0,
|
|
6947
6962
|
type: "button",
|
|
@@ -6962,7 +6977,7 @@ function _o(e, t, s, r, i, n) {
|
|
|
6962
6977
|
}, [
|
|
6963
6978
|
l("path", { d: "M18 6L6 18M6 6l12 12" })
|
|
6964
6979
|
], -1)
|
|
6965
|
-
])], 8,
|
|
6980
|
+
])], 8, Ja)),
|
|
6966
6981
|
t[9] || (t[9] = l("div", {
|
|
6967
6982
|
class: "wm-loading__spinner",
|
|
6968
6983
|
"aria-hidden": "true"
|
|
@@ -6982,11 +6997,11 @@ function _o(e, t, s, r, i, n) {
|
|
|
6982
6997
|
onMore: n.toggleMore,
|
|
6983
6998
|
onClose: n.close
|
|
6984
6999
|
}, null, 8, ["title", "team-members", "response-label", "show-identity", "show-back", "show-close", "more-active", "agent-name", "agent-avatar-url", "onBack", "onMore", "onClose"]),
|
|
6985
|
-
l("div",
|
|
7000
|
+
l("div", Xa, [
|
|
6986
7001
|
K(Ae, { name: "wm-none" }, {
|
|
6987
7002
|
default: Se(() => [
|
|
6988
|
-
n.error ? (c(), d("div",
|
|
6989
|
-
l("div",
|
|
7003
|
+
n.error ? (c(), d("div", Qa, [
|
|
7004
|
+
l("div", Za, [
|
|
6990
7005
|
t[10] || (t[10] = l("div", { class: "wm-state__errIcon" }, [
|
|
6991
7006
|
l("svg", {
|
|
6992
7007
|
width: "14",
|
|
@@ -7003,8 +7018,8 @@ function _o(e, t, s, r, i, n) {
|
|
|
7003
7018
|
])
|
|
7004
7019
|
], -1)),
|
|
7005
7020
|
l("div", null, [
|
|
7006
|
-
l("div",
|
|
7007
|
-
l("div",
|
|
7021
|
+
l("div", eo, y(n.t("error.connectionFailed")), 1),
|
|
7022
|
+
l("div", to, y(n.error), 1)
|
|
7008
7023
|
])
|
|
7009
7024
|
])
|
|
7010
7025
|
])) : !n.currentConv && i.showHistory ? (c(), E(f, {
|
|
@@ -7012,7 +7027,7 @@ function _o(e, t, s, r, i, n) {
|
|
|
7012
7027
|
class: "wm-screen",
|
|
7013
7028
|
threads: n.openThreads,
|
|
7014
7029
|
onResume: n.onDrawerPick
|
|
7015
|
-
}, null, 8, ["threads", "onResume"])) : n.currentConv ? (c(), d("div",
|
|
7030
|
+
}, null, 8, ["threads", "onResume"])) : n.currentConv ? (c(), d("div", no, [
|
|
7016
7031
|
K(v, {
|
|
7017
7032
|
ref: "messageList",
|
|
7018
7033
|
messages: n.displayedMessages,
|
|
@@ -7027,8 +7042,8 @@ function _o(e, t, s, r, i, n) {
|
|
|
7027
7042
|
"ai-agent-avatar-url": n.agentAvatarUrl,
|
|
7028
7043
|
onLoadMore: n.onLoadMore
|
|
7029
7044
|
}, 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"]),
|
|
7030
|
-
l("div",
|
|
7031
|
-
n.floatVisible ? (c(), d("div",
|
|
7045
|
+
l("div", so, [
|
|
7046
|
+
n.floatVisible ? (c(), d("div", ro, [
|
|
7032
7047
|
n.pendingApproval ? (c(), E(T, {
|
|
7033
7048
|
key: `appr-${n.pendingApproval.id}`,
|
|
7034
7049
|
variant: "buttons",
|
|
@@ -7056,16 +7071,16 @@ function _o(e, t, s, r, i, n) {
|
|
|
7056
7071
|
onSelect: n.onSuggestion
|
|
7057
7072
|
}, null, 8, ["items", "onSelect"]))
|
|
7058
7073
|
], 512)) : b("", !0),
|
|
7059
|
-
n.actionInFlight ? (c(), d("div",
|
|
7074
|
+
n.actionInFlight ? (c(), d("div", io, [
|
|
7060
7075
|
t[11] || (t[11] = l("span", {
|
|
7061
7076
|
class: "wm-actionWait__spinner",
|
|
7062
7077
|
"aria-hidden": "true"
|
|
7063
7078
|
}, null, -1)),
|
|
7064
|
-
l("span",
|
|
7079
|
+
l("span", ao, y(n.t("action.inProgress", {
|
|
7065
7080
|
name: n.actionInFlightName
|
|
7066
7081
|
})), 1)
|
|
7067
7082
|
])) : b("", !0),
|
|
7068
|
-
i.pendingAttachments.length ? (c(), d("div",
|
|
7083
|
+
i.pendingAttachments.length ? (c(), d("div", oo, [
|
|
7069
7084
|
(c(!0), d(B, null, D(i.pendingAttachments, (x, q) => (c(), d("div", {
|
|
7070
7085
|
key: x.path || q,
|
|
7071
7086
|
class: "wm-attached__item"
|
|
@@ -7075,7 +7090,7 @@ function _o(e, t, s, r, i, n) {
|
|
|
7075
7090
|
class: "wm-attached__thumb",
|
|
7076
7091
|
src: x.previewUrl,
|
|
7077
7092
|
alt: x.name
|
|
7078
|
-
}, null, 8,
|
|
7093
|
+
}, null, 8, lo)) : (c(), d("div", co, [
|
|
7079
7094
|
t[12] || (t[12] = l("span", { class: "wm-attached__fileIcon" }, [
|
|
7080
7095
|
l("svg", {
|
|
7081
7096
|
width: "16",
|
|
@@ -7092,9 +7107,9 @@ function _o(e, t, s, r, i, n) {
|
|
|
7092
7107
|
l("path", { d: "M14 2v6h6" })
|
|
7093
7108
|
])
|
|
7094
7109
|
], -1)),
|
|
7095
|
-
l("span",
|
|
7096
|
-
l("span",
|
|
7097
|
-
n.formatAttachmentSize(x.size_bytes) ? (c(), d("span",
|
|
7110
|
+
l("span", uo, [
|
|
7111
|
+
l("span", ho, y(x.name), 1),
|
|
7112
|
+
n.formatAttachmentSize(x.size_bytes) ? (c(), d("span", mo, y(n.formatAttachmentSize(
|
|
7098
7113
|
x.size_bytes
|
|
7099
7114
|
)), 1)) : b("", !0)
|
|
7100
7115
|
])
|
|
@@ -7118,11 +7133,11 @@ function _o(e, t, s, r, i, n) {
|
|
|
7118
7133
|
}, [
|
|
7119
7134
|
l("path", { d: "M18 6L6 18M6 6l12 12" })
|
|
7120
7135
|
], -1)
|
|
7121
|
-
])], 8,
|
|
7136
|
+
])], 8, fo)
|
|
7122
7137
|
]))), 128))
|
|
7123
7138
|
])) : b("", !0),
|
|
7124
|
-
n.endedBlockVisible ? (c(), d("div",
|
|
7125
|
-
l("span",
|
|
7139
|
+
n.endedBlockVisible ? (c(), d("div", _o, [
|
|
7140
|
+
l("span", go, y(n.isClosed ? n.t("composer.conversationClosed") : n.t("composer.conversationEnded")), 1),
|
|
7126
7141
|
l("button", {
|
|
7127
7142
|
type: "button",
|
|
7128
7143
|
class: "wm-ended__btn",
|
|
@@ -7170,12 +7185,13 @@ function _o(e, t, s, r, i, n) {
|
|
|
7170
7185
|
"open-threads": n.openThreads,
|
|
7171
7186
|
busy: i.busy,
|
|
7172
7187
|
launching: i.launching,
|
|
7188
|
+
"welcome-message": n.widgetWelcomeMessage,
|
|
7173
7189
|
onStart: n.onOnboardingStart,
|
|
7174
7190
|
onLaunched: n.onHomeLaunched,
|
|
7175
7191
|
onSelect: n.onQuickLink,
|
|
7176
7192
|
onResume: n.onDrawerPick,
|
|
7177
7193
|
onViewHistory: t[1] || (t[1] = (x) => i.showHistory = !0)
|
|
7178
|
-
}, null, 8, ["title", "subtitle", "agent-name", "default-icon-url", "cover-image-url", "quick-links", "open-threads", "busy", "launching", "onStart", "onLaunched", "onSelect", "onResume"]))
|
|
7194
|
+
}, null, 8, ["title", "subtitle", "agent-name", "default-icon-url", "cover-image-url", "quick-links", "open-threads", "busy", "launching", "welcome-message", "onStart", "onLaunched", "onSelect", "onResume"]))
|
|
7179
7195
|
]),
|
|
7180
7196
|
_: 1
|
|
7181
7197
|
})
|
|
@@ -7195,52 +7211,52 @@ function _o(e, t, s, r, i, n) {
|
|
|
7195
7211
|
], 6)) : b("", !0)
|
|
7196
7212
|
], 6);
|
|
7197
7213
|
}
|
|
7198
|
-
const
|
|
7214
|
+
const wo = /* @__PURE__ */ F(Ga, [["render", yo], ["__scopeId", "data-v-801581ca"]]), bo = "0.6.23";
|
|
7199
7215
|
export {
|
|
7200
7216
|
me as AIAvatar,
|
|
7201
7217
|
be as AVATAR_COLORS,
|
|
7202
|
-
|
|
7203
|
-
|
|
7204
|
-
|
|
7205
|
-
|
|
7206
|
-
|
|
7207
|
-
|
|
7208
|
-
|
|
7209
|
-
|
|
7218
|
+
xs as ActionResult,
|
|
7219
|
+
Us as ArtifactFormResponse,
|
|
7220
|
+
Js as ArtifactInfoCard,
|
|
7221
|
+
_r as ArtifactRenderer,
|
|
7222
|
+
ur as ArtifactTicket,
|
|
7223
|
+
Mr as AttachmentPreview,
|
|
7224
|
+
Lr as Bubble,
|
|
7225
|
+
Mi as Composer,
|
|
7210
7226
|
ot as DEFAULT_BASE_URL,
|
|
7211
7227
|
ue as DEFAULT_LANGUAGE,
|
|
7212
|
-
|
|
7213
|
-
|
|
7228
|
+
ba as Feedback,
|
|
7229
|
+
oa as FormCard,
|
|
7214
7230
|
_n as Header,
|
|
7215
7231
|
ye as HumanAvatar,
|
|
7216
|
-
|
|
7232
|
+
Ei as InlineCallbacks,
|
|
7217
7233
|
qt as Launcher,
|
|
7218
7234
|
Le as MEDIA_RECORDER_SUPPORTED,
|
|
7219
|
-
|
|
7220
|
-
|
|
7221
|
-
|
|
7222
|
-
|
|
7235
|
+
li as MessageList,
|
|
7236
|
+
wo as Messenger,
|
|
7237
|
+
Pa as MoreMenu,
|
|
7238
|
+
es as Onboarding,
|
|
7223
7239
|
ge as SCREEN_CAPTURE_SUPPORTED,
|
|
7224
7240
|
ht as SUPPORTED_LANGUAGES,
|
|
7225
7241
|
tn as TeamAvatars,
|
|
7226
|
-
|
|
7227
|
-
|
|
7242
|
+
Pr as Typing,
|
|
7243
|
+
bo as VERSION,
|
|
7228
7244
|
xe as avatarColor,
|
|
7229
7245
|
Oe as avatarInitials,
|
|
7230
|
-
|
|
7246
|
+
di as captureScreenshotFile,
|
|
7231
7247
|
j as colors,
|
|
7232
7248
|
it as createStore,
|
|
7233
7249
|
H as createTranslator,
|
|
7234
7250
|
tt as createTransport,
|
|
7235
7251
|
re as dateLocale,
|
|
7236
|
-
|
|
7252
|
+
wo as default,
|
|
7237
7253
|
Ce as formatTime,
|
|
7238
|
-
|
|
7239
|
-
|
|
7254
|
+
po as guessAttachmentKind,
|
|
7255
|
+
ci as pickRecorderMime,
|
|
7240
7256
|
Ve as renderInlineMarkdown,
|
|
7241
7257
|
_t as renderMarkdown,
|
|
7242
7258
|
Re as resolveLanguage,
|
|
7243
|
-
|
|
7259
|
+
hi as startScreenRecording,
|
|
7244
7260
|
at as tokensCss,
|
|
7245
7261
|
rt as uuid,
|
|
7246
7262
|
rt as v4
|