@_solaris/messenger-widget 0.6.17 → 0.6.18
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 +1 -1
- package/dist/messenger.cjs +3 -3
- package/dist/messenger.js +100 -92
- package/dist/snippet.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/messenger.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { reactive as We, openBlock as c, createElementBlock as d, normalizeStyle as N, normalizeClass as R, toDisplayString as y, resolveComponent as P, createVNode as K, Transition as Ae, withCtx as Se, Fragment as
|
|
1
|
+
import { reactive as We, openBlock as c, createElementBlock as d, normalizeStyle as N, normalizeClass as R, toDisplayString as y, resolveComponent as P, createVNode as K, Transition as Ae, withCtx as Se, Fragment as B, renderList as D, withKeys as _e, withModifiers as G, createElementVNode as l, createCommentVNode as b, createBlock as E, resolveDynamicComponent as Te, mergeProps as je, withDirectives as $, vModelText as ee, createTextVNode as Me, renderSlot as $e, vModelCheckbox as Ge, vModelSelect as Ye, markRaw as Ie } from "vue";
|
|
2
2
|
const Je = [
|
|
3
3
|
"connected",
|
|
4
4
|
"message",
|
|
@@ -141,7 +141,7 @@ function tt(e) {
|
|
|
141
141
|
}
|
|
142
142
|
async function k() {
|
|
143
143
|
try {
|
|
144
|
-
const u = await
|
|
144
|
+
const u = await I();
|
|
145
145
|
t.lastActivityAt = u.reduce((g, p) => {
|
|
146
146
|
const L = p == null ? void 0 : p.last_message_at;
|
|
147
147
|
return L && (!g || L > g) ? L : g;
|
|
@@ -158,7 +158,7 @@ function tt(e) {
|
|
|
158
158
|
const g = await a("PATCH", "/customers/me", u);
|
|
159
159
|
return (g == null ? void 0 : g.customer) ?? null;
|
|
160
160
|
}
|
|
161
|
-
async function
|
|
161
|
+
async function I() {
|
|
162
162
|
const u = await a("GET", "/conversations");
|
|
163
163
|
return (u == null ? void 0 : u.conversations) ?? [];
|
|
164
164
|
}
|
|
@@ -281,7 +281,7 @@ function tt(e) {
|
|
|
281
281
|
}
|
|
282
282
|
async function pe() {
|
|
283
283
|
try {
|
|
284
|
-
const u = await
|
|
284
|
+
const u = await I(), g = u.reduce((L, O) => {
|
|
285
285
|
const V = O == null ? void 0 : O.last_message_at;
|
|
286
286
|
return V && (!L || V > L) ? V : L;
|
|
287
287
|
}, null);
|
|
@@ -340,7 +340,7 @@ function tt(e) {
|
|
|
340
340
|
// REST
|
|
341
341
|
getCustomer: v,
|
|
342
342
|
patchCustomer: T,
|
|
343
|
-
listConversations:
|
|
343
|
+
listConversations: I,
|
|
344
344
|
createConversation: S,
|
|
345
345
|
getConversation: z,
|
|
346
346
|
patchConversation: M,
|
|
@@ -552,7 +552,7 @@ function it(e) {
|
|
|
552
552
|
const _ = await e.patchConversation(h, m), w = t.conversations.findIndex((A) => A.id === h);
|
|
553
553
|
w !== -1 && (t.conversations[w] = _);
|
|
554
554
|
}
|
|
555
|
-
async function
|
|
555
|
+
async function I(h) {
|
|
556
556
|
if (!h) return [];
|
|
557
557
|
const m = t.messagesByConv[h] || [];
|
|
558
558
|
let _ = "";
|
|
@@ -774,7 +774,7 @@ function it(e) {
|
|
|
774
774
|
createConversation: a,
|
|
775
775
|
openConversation: f,
|
|
776
776
|
loadMore: k,
|
|
777
|
-
fetchSinceLast:
|
|
777
|
+
fetchSinceLast: I,
|
|
778
778
|
patchConversation: T,
|
|
779
779
|
markConversationRead: S,
|
|
780
780
|
send: z,
|
|
@@ -872,7 +872,7 @@ const at = `
|
|
|
872
872
|
function ut(e) {
|
|
873
873
|
return typeof e != "string" || !e || e.length > 64 ? !1 : ct.test(e) || dt.test(e) || lt.test(e);
|
|
874
874
|
}
|
|
875
|
-
function
|
|
875
|
+
function Be(e) {
|
|
876
876
|
if (typeof e != "string" || !e || e.length > 2048 || /["'()\\;\s<>]/.test(e)) return null;
|
|
877
877
|
let t;
|
|
878
878
|
try {
|
|
@@ -1278,10 +1278,10 @@ function _t(e) {
|
|
|
1278
1278
|
if (!S) break;
|
|
1279
1279
|
v.push(S[1]), r++;
|
|
1280
1280
|
}
|
|
1281
|
-
const T = v.map((S) => `<li>${de(S)}</li>`).join(""),
|
|
1281
|
+
const T = v.map((S) => `<li>${de(S)}</li>`).join(""), I = k !== 1 ? ` start="${k}"` : "";
|
|
1282
1282
|
s.push({
|
|
1283
1283
|
type: "block",
|
|
1284
|
-
html: `<ol class="wm-md-ol"${
|
|
1284
|
+
html: `<ol class="wm-md-ol"${I}>${T}</ol>`
|
|
1285
1285
|
});
|
|
1286
1286
|
continue;
|
|
1287
1287
|
}
|
|
@@ -1884,7 +1884,7 @@ const ye = /* @__PURE__ */ F(St, [["render", Mt], ["__scopeId", "data-v-14e10c0d
|
|
|
1884
1884
|
return this.peeks.slice(0, xt).reverse();
|
|
1885
1885
|
}
|
|
1886
1886
|
}
|
|
1887
|
-
}, Rt = ["aria-label", "onClick", "onKeydown"], Lt = ["aria-label", "onClick"],
|
|
1887
|
+
}, Rt = ["aria-label", "onClick", "onKeydown"], Lt = ["aria-label", "onClick"], It = { class: "wm-peek__avatar" }, Bt = ["aria-label"], Et = { class: "wm-peek__body" }, Pt = { class: "wm-peek__head" }, Ft = { class: "wm-peek__name" }, Ut = { class: "wm-peek__action" }, Dt = { class: "wm-peek__text" }, Nt = ["onClick"], Ht = ["aria-label"], jt = ["aria-label"];
|
|
1888
1888
|
function zt(e, t, s, r, i, n) {
|
|
1889
1889
|
const a = P("HumanAvatar");
|
|
1890
1890
|
return c(), d("div", {
|
|
@@ -1900,7 +1900,7 @@ function zt(e, t, s, r, i, n) {
|
|
|
1900
1900
|
key: 0,
|
|
1901
1901
|
class: R(["wm-peekStack", { "wm-peekStack--multi": n.visiblePeeks.length > 1 }])
|
|
1902
1902
|
}, [
|
|
1903
|
-
(c(!0), d(
|
|
1903
|
+
(c(!0), d(B, null, D(n.visiblePeeks, (o, f) => (c(), d("div", {
|
|
1904
1904
|
key: o.convId,
|
|
1905
1905
|
class: "wm-peek",
|
|
1906
1906
|
style: N({
|
|
@@ -1938,7 +1938,7 @@ function zt(e, t, s, r, i, n) {
|
|
|
1938
1938
|
l("path", { d: "M18 6L6 18M6 6l12 12" })
|
|
1939
1939
|
], -1)
|
|
1940
1940
|
])], 8, Lt),
|
|
1941
|
-
l("div",
|
|
1941
|
+
l("div", It, [
|
|
1942
1942
|
K(a, {
|
|
1943
1943
|
name: o.senderName,
|
|
1944
1944
|
"avatar-url": o.senderAvatarUrl,
|
|
@@ -1948,7 +1948,7 @@ function zt(e, t, s, r, i, n) {
|
|
|
1948
1948
|
key: 0,
|
|
1949
1949
|
class: "wm-peek__avatarBadge",
|
|
1950
1950
|
"aria-label": n.t("launcher.unreadMessages", { count: o.count })
|
|
1951
|
-
}, y(o.count > 9 ? "9+" : o.count), 9,
|
|
1951
|
+
}, y(o.count > 9 ? "9+" : o.count), 9, Bt)) : b("", !0)
|
|
1952
1952
|
]),
|
|
1953
1953
|
l("div", Et, [
|
|
1954
1954
|
l("div", Pt, [
|
|
@@ -2124,7 +2124,7 @@ function en(e, t, s, r, i, n) {
|
|
|
2124
2124
|
class: "wm-team__stack",
|
|
2125
2125
|
style: N({ width: n.stackWidth + "px" })
|
|
2126
2126
|
}, [
|
|
2127
|
-
(c(!0), d(
|
|
2127
|
+
(c(!0), d(B, null, D(s.members.slice(0, 3), (a, o) => (c(), d("div", {
|
|
2128
2128
|
key: o,
|
|
2129
2129
|
class: "wm-team__pill",
|
|
2130
2130
|
style: N({
|
|
@@ -2213,7 +2213,7 @@ function fn(e, t, s, r, i, n) {
|
|
|
2213
2213
|
l("path", { d: "M19 12H5M12 5l-7 7 7 7" })
|
|
2214
2214
|
], -1)
|
|
2215
2215
|
])], 8, rn)) : (c(), d("div", an)),
|
|
2216
|
-
s.showIdentity ? (c(), d(
|
|
2216
|
+
s.showIdentity ? (c(), d(B, { key: 2 }, [
|
|
2217
2217
|
l("div", on, [
|
|
2218
2218
|
K(a, {
|
|
2219
2219
|
size: 30,
|
|
@@ -2362,7 +2362,7 @@ const _n = /* @__PURE__ */ F(nn, [["render", fn], ["__scopeId", "data-v-27232009
|
|
|
2362
2362
|
// safety check as the quick-link icons (cf. safeIconUrl) so a
|
|
2363
2363
|
// malformed config can't inject CSS into the background declaration.
|
|
2364
2364
|
safeCoverUrl() {
|
|
2365
|
-
return
|
|
2365
|
+
return Be(this.coverImageUrl);
|
|
2366
2366
|
},
|
|
2367
2367
|
hasCover() {
|
|
2368
2368
|
return !!this.safeCoverUrl;
|
|
@@ -2390,10 +2390,17 @@ const _n = /* @__PURE__ */ F(nn, [["render", fn], ["__scopeId", "data-v-27232009
|
|
|
2390
2390
|
// freeze the state during a launch so the commit sequence isn't
|
|
2391
2391
|
// disturbed by the input losing focus.
|
|
2392
2392
|
onInputFocus() {
|
|
2393
|
-
this.launchPhase === "idle" && (this.inputFocused = !0);
|
|
2393
|
+
this.launchPhase === "idle" && (this.inputFocused = !0, this.$nextTick(() => this.autosize()));
|
|
2394
2394
|
},
|
|
2395
2395
|
onInputBlur() {
|
|
2396
|
-
this.launchPhase === "idle" && (this.inputFocused = !1);
|
|
2396
|
+
this.launchPhase === "idle" && (this.inputFocused = !1, this.$nextTick(() => this.autosize()));
|
|
2397
|
+
},
|
|
2398
|
+
// Grow the input with its content (mirrors the chat composer). The
|
|
2399
|
+
// `min-height` from the rest/expanded state acts as the floor; this
|
|
2400
|
+
// lets a multi-line draft push the pill taller up to the CSS cap.
|
|
2401
|
+
autosize() {
|
|
2402
|
+
const e = this.$refs.starterInput;
|
|
2403
|
+
!e || e.clientWidth < 40 || (e.style.height = "auto", e.style.height = `${e.scrollHeight}px`);
|
|
2397
2404
|
},
|
|
2398
2405
|
// Launch choreography, in two beats:
|
|
2399
2406
|
// 1. 'fade' — hero, alerts and quick-link buttons fade out,
|
|
@@ -2443,7 +2450,7 @@ const _n = /* @__PURE__ */ F(nn, [["render", fn], ["__scopeId", "data-v-27232009
|
|
|
2443
2450
|
// on the masked-glyph span and as the source of `--icon-url`
|
|
2444
2451
|
// (cf. iconUrlStyle).
|
|
2445
2452
|
safeIconUrl(e) {
|
|
2446
|
-
return
|
|
2453
|
+
return Be(e == null ? void 0 : e.icon_url);
|
|
2447
2454
|
},
|
|
2448
2455
|
// Inline style exposing the link's icon_url as a CSS custom
|
|
2449
2456
|
// property — only when the URL passes the safety gate, so a
|
|
@@ -2528,10 +2535,10 @@ const _n = /* @__PURE__ */ F(nn, [["render", fn], ["__scopeId", "data-v-27232009
|
|
|
2528
2535
|
}, Sn = ["aria-label"], Tn = { class: "wm-onb__alert-body" }, Mn = { class: "wm-onb__alert-title" }, xn = { class: "wm-onb__alert-preview" }, On = {
|
|
2529
2536
|
key: 0,
|
|
2530
2537
|
class: "wm-onb__alert-sender"
|
|
2531
|
-
}, Rn = ["innerHTML"], Ln = { class: "wm-onb__alert-meta" },
|
|
2538
|
+
}, Rn = ["innerHTML"], Ln = { class: "wm-onb__alert-meta" }, In = {
|
|
2532
2539
|
key: 0,
|
|
2533
2540
|
class: "wm-onb__alert-time"
|
|
2534
|
-
},
|
|
2541
|
+
}, Bn = { class: "wm-onb__alert-resume" }, En = { class: "wm-onb__actions" }, Pn = ["onClick"], Fn = { class: "wm-onb__btn-icon" }, Un = ["aria-label"], Dn = {
|
|
2535
2542
|
key: 1,
|
|
2536
2543
|
width: "18",
|
|
2537
2544
|
height: "18",
|
|
@@ -2599,7 +2606,7 @@ function Xn(e, t, s, r, i, n) {
|
|
|
2599
2606
|
role: "img",
|
|
2600
2607
|
"aria-label": n.heroTitle
|
|
2601
2608
|
}, null, 12, yn)) : b("", !0),
|
|
2602
|
-
n.hasCover ? b("", !0) : (c(), d("svg", vn, [...t[
|
|
2609
|
+
n.hasCover ? b("", !0) : (c(), d("svg", vn, [...t[7] || (t[7] = [
|
|
2603
2610
|
l("circle", {
|
|
2604
2611
|
cx: "170",
|
|
2605
2612
|
cy: "10",
|
|
@@ -2636,7 +2643,7 @@ function Xn(e, t, s, r, i, n) {
|
|
|
2636
2643
|
])
|
|
2637
2644
|
], 2),
|
|
2638
2645
|
n.unreadThreads.length ? (c(), d("div", kn, [
|
|
2639
|
-
(c(!0), d(
|
|
2646
|
+
(c(!0), d(B, null, D(n.unreadThreads, (o) => (c(), d("button", {
|
|
2640
2647
|
key: o.id,
|
|
2641
2648
|
type: "button",
|
|
2642
2649
|
class: "wm-onb__alert",
|
|
@@ -2645,7 +2652,7 @@ function Xn(e, t, s, r, i, n) {
|
|
|
2645
2652
|
l("span", {
|
|
2646
2653
|
class: R(["wm-onb__alert-avatar", n.avatarWrapperClass(o)])
|
|
2647
2654
|
}, [
|
|
2648
|
-
n.isDefaultAvatar(o) ? (c(), d("span", An, [...t[
|
|
2655
|
+
n.isDefaultAvatar(o) ? (c(), d("span", An, [...t[8] || (t[8] = [
|
|
2649
2656
|
l("svg", {
|
|
2650
2657
|
width: "20",
|
|
2651
2658
|
height: "20",
|
|
@@ -2678,13 +2685,13 @@ function Xn(e, t, s, r, i, n) {
|
|
|
2678
2685
|
])
|
|
2679
2686
|
]),
|
|
2680
2687
|
l("span", Ln, [
|
|
2681
|
-
n.formatTs(o._ts) ? (c(), d("span",
|
|
2682
|
-
l("span",
|
|
2688
|
+
n.formatTs(o._ts) ? (c(), d("span", In, y(n.formatTs(o._ts)), 1)) : b("", !0),
|
|
2689
|
+
l("span", Bn, y(n.t("onboarding.resume")), 1)
|
|
2683
2690
|
])
|
|
2684
2691
|
], 8, Cn))), 128))
|
|
2685
2692
|
])) : b("", !0),
|
|
2686
2693
|
l("div", En, [
|
|
2687
|
-
(c(!0), d(
|
|
2694
|
+
(c(!0), d(B, null, D(s.quickLinks, (o, f) => (c(), d("button", {
|
|
2688
2695
|
key: "ql-" + f,
|
|
2689
2696
|
type: "button",
|
|
2690
2697
|
class: "wm-onb__btn",
|
|
@@ -2704,7 +2711,7 @@ function Xn(e, t, s, r, i, n) {
|
|
|
2704
2711
|
]))
|
|
2705
2712
|
]),
|
|
2706
2713
|
l("span", Hn, y(o.label), 1),
|
|
2707
|
-
n.isExternalLink(o) ? (c(), d("svg", jn, [...t[
|
|
2714
|
+
n.isExternalLink(o) ? (c(), d("svg", jn, [...t[9] || (t[9] = [
|
|
2708
2715
|
l("path", { d: "M7 17L17 7M9 7h8v8" }, null, -1)
|
|
2709
2716
|
])])) : b("", !0)
|
|
2710
2717
|
], 8, Pn))), 128)),
|
|
@@ -2723,7 +2730,7 @@ function Xn(e, t, s, r, i, n) {
|
|
|
2723
2730
|
]),
|
|
2724
2731
|
l("span", Kn, y(n.t("onboarding.allConversations")), 1),
|
|
2725
2732
|
l("span", Wn, y(s.openThreads.length), 1),
|
|
2726
|
-
t[
|
|
2733
|
+
t[10] || (t[10] = l("svg", {
|
|
2727
2734
|
class: "wm-onb__btn-trail",
|
|
2728
2735
|
width: "13",
|
|
2729
2736
|
height: "13",
|
|
@@ -2745,7 +2752,7 @@ function Xn(e, t, s, r, i, n) {
|
|
|
2745
2752
|
"is-expanded": i.inputFocused,
|
|
2746
2753
|
"wm-onb__starter--toBottom": i.launchPhase === "slide"
|
|
2747
2754
|
}]),
|
|
2748
|
-
onSubmit: t[
|
|
2755
|
+
onSubmit: t[6] || (t[6] = G((...o) => n.submitStarter && n.submitStarter(...o), ["prevent"]))
|
|
2749
2756
|
}, [
|
|
2750
2757
|
$(l("textarea", {
|
|
2751
2758
|
ref: "starterInput",
|
|
@@ -2757,8 +2764,9 @@ function Xn(e, t, s, r, i, n) {
|
|
|
2757
2764
|
"aria-label": n.t("onboarding.start"),
|
|
2758
2765
|
enterkeyhint: "send",
|
|
2759
2766
|
onKeydown: t[2] || (t[2] = (...o) => n.onStarterKeydown && n.onStarterKeydown(...o)),
|
|
2760
|
-
|
|
2761
|
-
|
|
2767
|
+
onInput: t[3] || (t[3] = (...o) => n.autosize && n.autosize(...o)),
|
|
2768
|
+
onFocus: t[4] || (t[4] = (...o) => n.onInputFocus && n.onInputFocus(...o)),
|
|
2769
|
+
onBlur: t[5] || (t[5] = (...o) => n.onInputBlur && n.onInputBlur(...o))
|
|
2762
2770
|
}, null, 40, $n), [
|
|
2763
2771
|
[ee, i.starterText]
|
|
2764
2772
|
]),
|
|
@@ -2768,7 +2776,7 @@ function Xn(e, t, s, r, i, n) {
|
|
|
2768
2776
|
disabled: s.busy || !n.canStart,
|
|
2769
2777
|
"aria-label": n.t("composer.send")
|
|
2770
2778
|
}, [
|
|
2771
|
-
s.busy ? (c(), d("span", Jn)) : (c(), d("svg", Yn, [...t[
|
|
2779
|
+
s.busy ? (c(), d("span", Jn)) : (c(), d("svg", Yn, [...t[11] || (t[11] = [
|
|
2772
2780
|
l("path", { d: "M22 2L11 13M22 2l-7 20-4-9-9-4 20-7z" }, null, -1)
|
|
2773
2781
|
])]))
|
|
2774
2782
|
], 10, Gn)
|
|
@@ -2776,7 +2784,7 @@ function Xn(e, t, s, r, i, n) {
|
|
|
2776
2784
|
])
|
|
2777
2785
|
], 2);
|
|
2778
2786
|
}
|
|
2779
|
-
const Qn = /* @__PURE__ */ F(gn, [["render", Xn], ["__scopeId", "data-v-
|
|
2787
|
+
const Qn = /* @__PURE__ */ F(gn, [["render", Xn], ["__scopeId", "data-v-f402d5fe"]]), Zn = {
|
|
2780
2788
|
name: "WmHistory",
|
|
2781
2789
|
components: { AIAvatar: me, HumanAvatar: ye },
|
|
2782
2790
|
inject: {
|
|
@@ -2883,7 +2891,7 @@ function ms(e, t, s, r, i, n) {
|
|
|
2883
2891
|
])
|
|
2884
2892
|
]),
|
|
2885
2893
|
l("div", ss, [
|
|
2886
|
-
(c(!0), d(
|
|
2894
|
+
(c(!0), d(B, null, D(n.filteredThreads, (a) => (c(), d("button", {
|
|
2887
2895
|
key: a.id,
|
|
2888
2896
|
type: "button",
|
|
2889
2897
|
class: R(["wm-hist__thread", { "wm-hist__thread--unread": a.unread }]),
|
|
@@ -3040,7 +3048,7 @@ function Ss(e, t, s, r, i, n) {
|
|
|
3040
3048
|
]),
|
|
3041
3049
|
l("span", ks, [
|
|
3042
3050
|
l("span", Cs, y(s.label), 1),
|
|
3043
|
-
n.detailText ? (c(), d(
|
|
3051
|
+
n.detailText ? (c(), d(B, { key: 0 }, [
|
|
3044
3052
|
t[4] || (t[4] = l("span", {
|
|
3045
3053
|
class: "wm-result__sep",
|
|
3046
3054
|
"aria-hidden": "true"
|
|
@@ -3066,7 +3074,7 @@ const Ts = /* @__PURE__ */ F(gs, [["render", Ss], ["__scopeId", "data-v-7284acd0
|
|
|
3066
3074
|
return Array.isArray((e = this.data) == null ? void 0 : e.fields) ? this.data.fields : [];
|
|
3067
3075
|
}
|
|
3068
3076
|
}
|
|
3069
|
-
}, xs = { class: "wm-art wm-art--formResponse" }, Os = { class: "wm-art__head" }, Rs = { class: "wm-art__title" }, Ls = { class: "wm-art__badge wm-art__badge--success" },
|
|
3077
|
+
}, xs = { class: "wm-art wm-art--formResponse" }, Os = { class: "wm-art__head" }, Rs = { class: "wm-art__title" }, Ls = { class: "wm-art__badge wm-art__badge--success" }, Is = { class: "wm-art__body" }, Bs = { class: "wm-art__fieldLabel" };
|
|
3070
3078
|
function Es(e, t, s, r, i, n) {
|
|
3071
3079
|
return c(), d("div", xs, [
|
|
3072
3080
|
l("div", Os, [
|
|
@@ -3088,12 +3096,12 @@ function Es(e, t, s, r, i, n) {
|
|
|
3088
3096
|
Me(" " + y(n.t("form.sent")), 1)
|
|
3089
3097
|
])
|
|
3090
3098
|
]),
|
|
3091
|
-
l("div",
|
|
3092
|
-
(c(!0), d(
|
|
3099
|
+
l("div", Is, [
|
|
3100
|
+
(c(!0), d(B, null, D(n.fields, (a, o) => (c(), d("div", {
|
|
3093
3101
|
key: o,
|
|
3094
3102
|
class: "wm-art__field"
|
|
3095
3103
|
}, [
|
|
3096
|
-
l("div",
|
|
3104
|
+
l("div", Bs, y(a.label), 1),
|
|
3097
3105
|
l("div", {
|
|
3098
3106
|
class: R([
|
|
3099
3107
|
"wm-art__fieldValue",
|
|
@@ -3156,7 +3164,7 @@ function $s(e, t, s, r, i, n) {
|
|
|
3156
3164
|
]),
|
|
3157
3165
|
n.hasBody ? (c(), d("div", Vs, [
|
|
3158
3166
|
s.data.body ? (c(), d("div", Ks, y(s.data.body), 1)) : b("", !0),
|
|
3159
|
-
n.fields.length ? (c(!0), d(
|
|
3167
|
+
n.fields.length ? (c(!0), d(B, { key: 1 }, D(n.fields, (a, o) => (c(), d("div", {
|
|
3160
3168
|
key: o,
|
|
3161
3169
|
class: "wm-art__field"
|
|
3162
3170
|
}, [
|
|
@@ -3293,7 +3301,7 @@ function lr(e, t, s, r, i, n) {
|
|
|
3293
3301
|
s.data.body ? (c(), d("div", nr, y(s.data.body), 1)) : b("", !0)
|
|
3294
3302
|
]),
|
|
3295
3303
|
n.fields.length ? (c(), d("div", sr, [
|
|
3296
|
-
(c(!0), d(
|
|
3304
|
+
(c(!0), d(B, null, D(n.fields, (a, o) => (c(), d("div", {
|
|
3297
3305
|
key: o,
|
|
3298
3306
|
class: "wm-art__field"
|
|
3299
3307
|
}, [
|
|
@@ -3557,14 +3565,14 @@ function xr(e, t, s, r, i, n) {
|
|
|
3557
3565
|
], 2);
|
|
3558
3566
|
}
|
|
3559
3567
|
const Or = /* @__PURE__ */ F(Tr, [["render", xr], ["__scopeId", "data-v-7ab13147"]]), Rr = { name: "WmTyping" }, Lr = { class: "wm-typing" };
|
|
3560
|
-
function
|
|
3568
|
+
function Ir(e, t, s, r, i, n) {
|
|
3561
3569
|
return c(), d("div", Lr, [...t[0] || (t[0] = [
|
|
3562
3570
|
l("span", { style: { "animation-delay": "0s" } }, null, -1),
|
|
3563
3571
|
l("span", { style: { "animation-delay": "0.2s" } }, null, -1),
|
|
3564
3572
|
l("span", { style: { "animation-delay": "0.4s" } }, null, -1)
|
|
3565
3573
|
])]);
|
|
3566
3574
|
}
|
|
3567
|
-
const
|
|
3575
|
+
const Br = /* @__PURE__ */ F(Rr, [["render", Ir], ["__scopeId", "data-v-df2447fd"]]);
|
|
3568
3576
|
function se(e) {
|
|
3569
3577
|
return e ? e.client_msg_id || e.id : "";
|
|
3570
3578
|
}
|
|
@@ -3582,7 +3590,7 @@ const Er = {
|
|
|
3582
3590
|
AIAvatar: me,
|
|
3583
3591
|
HumanAvatar: ye,
|
|
3584
3592
|
Bubble: Or,
|
|
3585
|
-
Typing:
|
|
3593
|
+
Typing: Br,
|
|
3586
3594
|
ActionResult: Ts,
|
|
3587
3595
|
AttachmentPreview: Sr,
|
|
3588
3596
|
ArtifactRenderer: mr
|
|
@@ -3981,9 +3989,9 @@ const Er = {
|
|
|
3981
3989
|
// doit garder son arrondi.
|
|
3982
3990
|
cornersFor(e, t) {
|
|
3983
3991
|
var ie, ae, X;
|
|
3984
|
-
const s = e.items, r = (ie = s[t]) == null ? void 0 : ie.kind, i = (ae = s[t - 1]) == null ? void 0 : ae.kind, n = (X = s[t + 1]) == null ? void 0 : X.kind, a = e.role === "user", o = 14, f = 4, k = i == null ? void 0 : i.bottom, v = n == null ? void 0 : n.top, T = this.widthByKey[this.rowKeyOf(e, t)],
|
|
3992
|
+
const s = e.items, r = (ie = s[t]) == null ? void 0 : ie.kind, i = (ae = s[t - 1]) == null ? void 0 : ae.kind, n = (X = s[t + 1]) == null ? void 0 : X.kind, a = e.role === "user", o = 14, f = 4, k = i == null ? void 0 : i.bottom, v = n == null ? void 0 : n.top, T = this.widthByKey[this.rowKeyOf(e, t)], I = this.widthByKey[this.rowKeyOf(e, t - 1)], S = this.widthByKey[this.rowKeyOf(e, t + 1)], z = 0.5, M = (Q, oe, Z) => Q != null && T != null ? Q + z >= T : oe === Z || oe === "card" && Z === "bubble";
|
|
3985
3993
|
let U = o, x = o, q = o, J = o;
|
|
3986
|
-
return a ? (k && (x = f), (v || !n) && (q = f), k && M(
|
|
3994
|
+
return a ? (k && (x = f), (v || !n) && (q = f), k && M(I, k, r == null ? void 0 : r.top) && (U = f), v && M(S, v, r == null ? void 0 : r.bottom) && (J = f)) : (k && (U = f), (v || !n) && (J = f), k && M(I, k, r == null ? void 0 : r.top) && (x = f), v && M(S, v, r == null ? void 0 : r.bottom) && (q = f)), { tl: U, tr: x, br: q, bl: J };
|
|
3987
3995
|
},
|
|
3988
3996
|
// Inline column-count for the mosaic grid, capped at 4. Single
|
|
3989
3997
|
// attachment falls back to the vertical-list layout (null). Two
|
|
@@ -4213,7 +4221,7 @@ const Er = {
|
|
|
4213
4221
|
class: "wm-list__row wm-list__row--ai fade-up"
|
|
4214
4222
|
}, si = { class: "wm-list__avatarSlot" }, ri = ["aria-label", "title"];
|
|
4215
4223
|
function ii(e, t, s, r, i, n) {
|
|
4216
|
-
const a = P("AIAvatar"), o = P("HumanAvatar"), f = P("ActionResult"), k = P("ArtifactRenderer"), v = P("Bubble"), T = P("AttachmentPreview"),
|
|
4224
|
+
const a = P("AIAvatar"), o = P("HumanAvatar"), f = P("ActionResult"), k = P("ArtifactRenderer"), v = P("Bubble"), T = P("AttachmentPreview"), I = P("Typing");
|
|
4217
4225
|
return c(), d("div", Dr, [
|
|
4218
4226
|
l("div", {
|
|
4219
4227
|
ref: "scrollEl",
|
|
@@ -4232,7 +4240,7 @@ function ii(e, t, s, r, i, n) {
|
|
|
4232
4240
|
l("span", qr, y(s.dateLabel), 1),
|
|
4233
4241
|
t[8] || (t[8] = l("div", { class: "wm-list__line" }, null, -1))
|
|
4234
4242
|
])) : b("", !0),
|
|
4235
|
-
(c(!0), d(
|
|
4243
|
+
(c(!0), d(B, null, D(n.groups, (S, z) => (c(), d(B, {
|
|
4236
4244
|
key: S.key
|
|
4237
4245
|
}, [
|
|
4238
4246
|
S.key === n.unreadGroupKey ? (c(), d("div", Vr, [
|
|
@@ -4248,8 +4256,8 @@ function ii(e, t, s, r, i, n) {
|
|
|
4248
4256
|
t[11] || (t[11] = l("div", { class: "wm-list__line wm-list__line--strong" }, null, -1)),
|
|
4249
4257
|
l("span", $r, y(S.systemLabel), 1),
|
|
4250
4258
|
t[12] || (t[12] = l("div", { class: "wm-list__line wm-list__line--strong" }, null, -1))
|
|
4251
|
-
])) : (c(), d(
|
|
4252
|
-
(c(!0), d(
|
|
4259
|
+
])) : (c(), d(B, { key: 1 }, [
|
|
4260
|
+
(c(!0), d(B, null, D(S.items, (M, U) => (c(), d(B, {
|
|
4253
4261
|
key: `${n.messageKey(M.message)}-${M.partKey}`
|
|
4254
4262
|
}, [
|
|
4255
4263
|
l("div", {
|
|
@@ -4270,7 +4278,7 @@ function ii(e, t, s, r, i, n) {
|
|
|
4270
4278
|
}, ["prevent"]))
|
|
4271
4279
|
}, [
|
|
4272
4280
|
S.role !== "user" ? (c(), d("div", Yr, [
|
|
4273
|
-
U === S.items.length - 1 ? (c(), d(
|
|
4281
|
+
U === S.items.length - 1 ? (c(), d(B, { key: 0 }, [
|
|
4274
4282
|
S.role === "ai" ? (c(), E(a, {
|
|
4275
4283
|
key: 0,
|
|
4276
4284
|
size: 26,
|
|
@@ -4325,7 +4333,7 @@ function ii(e, t, s, r, i, n) {
|
|
|
4325
4333
|
)
|
|
4326
4334
|
)
|
|
4327
4335
|
}, [
|
|
4328
|
-
(c(!0), d(
|
|
4336
|
+
(c(!0), d(B, null, D(n.attachmentsOf(
|
|
4329
4337
|
M.message
|
|
4330
4338
|
), (x, q) => (c(), E(T, {
|
|
4331
4339
|
key: `${n.messageKey(M.message)}-att-${q}`,
|
|
@@ -4370,7 +4378,7 @@ function ii(e, t, s, r, i, n) {
|
|
|
4370
4378
|
"image-url": s.aiAgentAvatarUrl
|
|
4371
4379
|
}, null, 8, ["name", "image-url"])
|
|
4372
4380
|
]),
|
|
4373
|
-
K(
|
|
4381
|
+
K(I)
|
|
4374
4382
|
])) : b("", !0)
|
|
4375
4383
|
], 34),
|
|
4376
4384
|
K(Ae, { name: "wm-scrollDown" }, {
|
|
@@ -4485,11 +4493,11 @@ async function di(e = {}) {
|
|
|
4485
4493
|
v.data && v.data.size > 0 && i.push(v.data);
|
|
4486
4494
|
}), r.addEventListener("stop", () => {
|
|
4487
4495
|
var v, T;
|
|
4488
|
-
if (n && clearInterval(n), t.getTracks().forEach((
|
|
4489
|
-
|
|
4496
|
+
if (n && clearInterval(n), t.getTracks().forEach((I) => {
|
|
4497
|
+
I.stop();
|
|
4490
4498
|
}), i.length) {
|
|
4491
|
-
const
|
|
4492
|
-
type:
|
|
4499
|
+
const I = r.mimeType || s || "video/webm", S = new Blob(i, { type: I }), z = /mp4/.test(I) ? "mp4" : "webm", M = (/* @__PURE__ */ new Date()).toISOString().replace(/[:.]/g, "-").slice(0, 19), U = new File([S], `ecran-${M}.${z}`, {
|
|
4500
|
+
type: I
|
|
4493
4501
|
});
|
|
4494
4502
|
(v = e.onfinalize) == null || v.call(e, U);
|
|
4495
4503
|
} else
|
|
@@ -4761,7 +4769,7 @@ function Ai(e, t, s, r, i, n) {
|
|
|
4761
4769
|
onClick: t[2] || (t[2] = (a) => i.attachOpen = !1)
|
|
4762
4770
|
})) : b("", !0),
|
|
4763
4771
|
i.attachOpen ? (c(), d("div", _i, [
|
|
4764
|
-
(c(!0), d(
|
|
4772
|
+
(c(!0), d(B, null, D(n.attachItems, (a) => (c(), d("button", {
|
|
4765
4773
|
key: a.action,
|
|
4766
4774
|
type: "button",
|
|
4767
4775
|
class: "wm-compose__menuItem",
|
|
@@ -4844,7 +4852,7 @@ function Ai(e, t, s, r, i, n) {
|
|
|
4844
4852
|
], 34)
|
|
4845
4853
|
], 6);
|
|
4846
4854
|
}
|
|
4847
|
-
const Si = /* @__PURE__ */ F(hi, [["render", Ai], ["__scopeId", "data-v-
|
|
4855
|
+
const Si = /* @__PURE__ */ F(hi, [["render", Ai], ["__scopeId", "data-v-51c4452f"]]), Ti = {
|
|
4848
4856
|
name: "WmInlineCallbacks",
|
|
4849
4857
|
props: {
|
|
4850
4858
|
// Array d'items `{ id?, label, style?, ... }`. Pour les suggestions,
|
|
@@ -4891,16 +4899,16 @@ function Li(e, t, s, r, i, n) {
|
|
|
4891
4899
|
key: n.batchKey,
|
|
4892
4900
|
class: R(["wm-icb", `wm-icb--${s.variant}`])
|
|
4893
4901
|
}, [
|
|
4894
|
-
s.variant === "chips" ? (c(!0), d(
|
|
4902
|
+
s.variant === "chips" ? (c(!0), d(B, { key: 0 }, D(s.items, (a, o) => (c(), d("button", {
|
|
4895
4903
|
key: a.id != null ? a.id : o,
|
|
4896
4904
|
type: "button",
|
|
4897
4905
|
class: "wm-icb__btn wm-icb__btn--chip",
|
|
4898
4906
|
style: N({ animationDelay: s.baseDelay + o * s.stepDelay + "ms" }),
|
|
4899
4907
|
onClick: (f) => e.$emit("select", a)
|
|
4900
|
-
}, y(a.label), 13, Mi))), 128)) : (c(), d(
|
|
4908
|
+
}, y(a.label), 13, Mi))), 128)) : (c(), d(B, { key: 1 }, [
|
|
4901
4909
|
n.headerTitle ? (c(), d("div", xi, y(n.headerTitle), 1)) : b("", !0),
|
|
4902
4910
|
l("div", Oi, [
|
|
4903
|
-
(c(!0), d(
|
|
4911
|
+
(c(!0), d(B, null, D(s.items, (a, o) => (c(), d("button", {
|
|
4904
4912
|
key: a.id != null ? a.id : o,
|
|
4905
4913
|
type: "button",
|
|
4906
4914
|
class: R(["wm-icb__btn", n.btnClass(a)]),
|
|
@@ -4910,9 +4918,9 @@ function Li(e, t, s, r, i, n) {
|
|
|
4910
4918
|
], 64))
|
|
4911
4919
|
], 2)) : b("", !0);
|
|
4912
4920
|
}
|
|
4913
|
-
const
|
|
4921
|
+
const Ii = /* @__PURE__ */ F(Ti, [["render", Li], ["__scopeId", "data-v-c8cc8cbf"]]);
|
|
4914
4922
|
let Ne = 0;
|
|
4915
|
-
const
|
|
4923
|
+
const Bi = /* @__PURE__ */ new Set([
|
|
4916
4924
|
"text",
|
|
4917
4925
|
"textarea",
|
|
4918
4926
|
"number",
|
|
@@ -4950,7 +4958,7 @@ const Ii = /* @__PURE__ */ new Set([
|
|
|
4950
4958
|
// douteux.
|
|
4951
4959
|
normalizedFields() {
|
|
4952
4960
|
var t;
|
|
4953
|
-
return (Array.isArray((t = this.form) == null ? void 0 : t.fields) ? this.form.fields : []).filter((s) => !(!(s != null && s.key) || !(s != null && s.label) || !
|
|
4961
|
+
return (Array.isArray((t = this.form) == null ? void 0 : t.fields) ? this.form.fields : []).filter((s) => !(!(s != null && s.key) || !(s != null && s.label) || !Bi.has(s == null ? void 0 : s.type) || (s.type === "select" || s.type === "multiselect") && (!Array.isArray(s.options) || s.options.length === 0)));
|
|
4954
4962
|
}
|
|
4955
4963
|
},
|
|
4956
4964
|
created() {
|
|
@@ -5050,7 +5058,7 @@ function ra(e, t, s, r, i, n) {
|
|
|
5050
5058
|
class: "wm-form__body",
|
|
5051
5059
|
onSubmit: t[0] || (t[0] = G((...o) => n.onSubmit && n.onSubmit(...o), ["prevent"]))
|
|
5052
5060
|
}, [
|
|
5053
|
-
(c(!0), d(
|
|
5061
|
+
(c(!0), d(B, null, D(n.normalizedFields, (o) => (c(), d("div", {
|
|
5054
5062
|
key: o.key,
|
|
5055
5063
|
class: "wm-form__field"
|
|
5056
5064
|
}, [
|
|
@@ -5128,14 +5136,14 @@ function ra(e, t, s, r, i, n) {
|
|
|
5128
5136
|
disabled: s.readOnly || i.busy
|
|
5129
5137
|
}, [
|
|
5130
5138
|
l("option", Ji, y(o.placeholder || n.t("form.choose")), 1),
|
|
5131
|
-
(c(!0), d(
|
|
5139
|
+
(c(!0), d(B, null, D(o.options, (f) => (c(), d("option", {
|
|
5132
5140
|
key: f.value,
|
|
5133
5141
|
value: f.value
|
|
5134
5142
|
}, y(f.label), 9, Xi))), 128))
|
|
5135
5143
|
], 8, Yi)), [
|
|
5136
5144
|
[Ye, i.values[o.key]]
|
|
5137
5145
|
]) : o.type === "multiselect" ? (c(), d("div", Qi, [
|
|
5138
|
-
(c(!0), d(
|
|
5146
|
+
(c(!0), d(B, null, D(o.options, (f) => (c(), d("label", {
|
|
5139
5147
|
key: f.value,
|
|
5140
5148
|
class: "wm-form__multiItem"
|
|
5141
5149
|
}, [
|
|
@@ -5225,11 +5233,11 @@ function va(e, t, s, r, i, n) {
|
|
|
5225
5233
|
], -1)),
|
|
5226
5234
|
l("div", ga, y(n.t("feedback.doneTitle")), 1),
|
|
5227
5235
|
l("div", ya, y(n.t("feedback.doneSubtitle")), 1)
|
|
5228
|
-
])) : (c(), d(
|
|
5236
|
+
])) : (c(), d(B, { key: 0 }, [
|
|
5229
5237
|
l("div", la, y(n.t("feedback.question")), 1),
|
|
5230
5238
|
l("div", ca, y(n.t("feedback.subtitle")), 1),
|
|
5231
5239
|
l("div", da, [
|
|
5232
|
-
(c(!0), d(
|
|
5240
|
+
(c(!0), d(B, null, D(n.options, (a) => (c(), d("button", {
|
|
5233
5241
|
key: a.v,
|
|
5234
5242
|
type: "button",
|
|
5235
5243
|
class: R(["wm-fb__opt", { "is-selected": i.sel === a.v }]),
|
|
@@ -5293,7 +5301,7 @@ const pa = /* @__PURE__ */ F(aa, [["render", va], ["__scopeId", "data-v-9b630564
|
|
|
5293
5301
|
key: 1,
|
|
5294
5302
|
class: "wm-mm__sep"
|
|
5295
5303
|
}, Ma = { class: "wm-mm__section" }, xa = { class: "wm-mm__label" }, Oa = { class: "wm-mm__section" }, Ra = { class: "wm-mm__label" }, La = { class: "wm-mm__label" };
|
|
5296
|
-
function
|
|
5304
|
+
function Ia(e, t, s, r, i, n) {
|
|
5297
5305
|
return c(), d("div", ba, [
|
|
5298
5306
|
l("div", {
|
|
5299
5307
|
class: "wm-mm__scrim",
|
|
@@ -5433,7 +5441,7 @@ function Ba(e, t, s, r, i, n) {
|
|
|
5433
5441
|
])
|
|
5434
5442
|
]);
|
|
5435
5443
|
}
|
|
5436
|
-
const
|
|
5444
|
+
const Ba = /* @__PURE__ */ F(wa, [["render", Ia], ["__scopeId", "data-v-4cf6d578"]]), Ea = {
|
|
5437
5445
|
name: "WmRenameDialog",
|
|
5438
5446
|
inject: {
|
|
5439
5447
|
// Translator shared by the Messenger shell; French fallback when
|
|
@@ -5551,10 +5559,10 @@ const Ka = /* @__PURE__ */ F(Ea, [["render", Va], ["__scopeId", "data-v-6d5f94a8
|
|
|
5551
5559
|
History: fs,
|
|
5552
5560
|
MessageList: ai,
|
|
5553
5561
|
Composer: Si,
|
|
5554
|
-
InlineCallbacks:
|
|
5562
|
+
InlineCallbacks: Ii,
|
|
5555
5563
|
FormCard: ia,
|
|
5556
5564
|
Feedback: pa,
|
|
5557
|
-
MoreMenu:
|
|
5565
|
+
MoreMenu: Ba,
|
|
5558
5566
|
RenameDialog: Ka
|
|
5559
5567
|
},
|
|
5560
5568
|
mixins: [
|
|
@@ -5790,9 +5798,9 @@ const Ka = /* @__PURE__ */ F(Ea, [["render", Va], ["__scopeId", "data-v-6d5f94a8
|
|
|
5790
5798
|
const T = i[v];
|
|
5791
5799
|
if (!T) continue;
|
|
5792
5800
|
if (((k = T.author) == null ? void 0 : k.type) === "user") break;
|
|
5793
|
-
const
|
|
5794
|
-
if (
|
|
5795
|
-
if (n != null &&
|
|
5801
|
+
const I = Y(T.id);
|
|
5802
|
+
if (I != null) {
|
|
5803
|
+
if (n != null && I <= n) break;
|
|
5796
5804
|
t[T.id] !== 0 && (!o && T.author && (o = T.author), a++);
|
|
5797
5805
|
}
|
|
5798
5806
|
}
|
|
@@ -6028,7 +6036,7 @@ const Ka = /* @__PURE__ */ F(Ea, [["render", Va], ["__scopeId", "data-v-6d5f94a8
|
|
|
6028
6036
|
}
|
|
6029
6037
|
const s = this.revealedAt, r = (this.s.messagesByConv[e.id] || []).filter((a) => {
|
|
6030
6038
|
var o, f, k, v, T;
|
|
6031
|
-
return (a == null ? void 0 : a.type) === "action" && ((o = a == null ? void 0 : a.payload) == null ? void 0 : o.state) === "pending" || he(a) && !(s[a.id] > 0) ? !1 : (a == null ? void 0 : a.type) === "action" || (a == null ? void 0 : a.type) === "system" || ((f = a == null ? void 0 : a.payload) == null ? void 0 : f.type) === "system" || Array.isArray((k = a == null ? void 0 : a.payload) == null ? void 0 : k.attachments) && a.payload.attachments.length || (v = a == null ? void 0 : a.metadata) != null && v.artifact || (T = a == null ? void 0 : a.metadata) != null && T.form || Array.isArray(a == null ? void 0 : a.callbacks) && a.callbacks.some((
|
|
6039
|
+
return (a == null ? void 0 : a.type) === "action" && ((o = a == null ? void 0 : a.payload) == null ? void 0 : o.state) === "pending" || he(a) && !(s[a.id] > 0) ? !1 : (a == null ? void 0 : a.type) === "action" || (a == null ? void 0 : a.type) === "system" || ((f = a == null ? void 0 : a.payload) == null ? void 0 : f.type) === "system" || Array.isArray((k = a == null ? void 0 : a.payload) == null ? void 0 : k.attachments) && a.payload.attachments.length || (v = a == null ? void 0 : a.metadata) != null && v.artifact || (T = a == null ? void 0 : a.metadata) != null && T.form || Array.isArray(a == null ? void 0 : a.callbacks) && a.callbacks.some((I) => (I == null ? void 0 : I.intent) === "submit_form") ? !0 : typeof (a == null ? void 0 : a.text_md) == "string" && a.text_md.trim().length > 0;
|
|
6032
6040
|
});
|
|
6033
6041
|
return t.length ? [...t, ...r] : r;
|
|
6034
6042
|
},
|
|
@@ -6344,12 +6352,12 @@ const Ka = /* @__PURE__ */ F(Ea, [["render", Va], ["__scopeId", "data-v-6d5f94a8
|
|
|
6344
6352
|
return;
|
|
6345
6353
|
}
|
|
6346
6354
|
try {
|
|
6347
|
-
await this.waitForParentInit(), this.transport =
|
|
6355
|
+
await this.waitForParentInit(), this.transport = Ie(
|
|
6348
6356
|
tt({
|
|
6349
6357
|
baseUrl: this.baseUrl,
|
|
6350
6358
|
widgetId: this.widgetId
|
|
6351
6359
|
})
|
|
6352
|
-
), this.store =
|
|
6360
|
+
), this.store = Ie(it(this.transport)), this.hydrateNotifPref();
|
|
6353
6361
|
const e = this.parentVariables || this.context || null;
|
|
6354
6362
|
if (await this.store.start({
|
|
6355
6363
|
origin: this.parentOrigin,
|
|
@@ -6444,13 +6452,13 @@ const Ka = /* @__PURE__ */ F(Ea, [["render", Va], ["__scopeId", "data-v-6d5f94a8
|
|
|
6444
6452
|
this.launcherHovered = e, this.sendCurrentLauncherSize();
|
|
6445
6453
|
},
|
|
6446
6454
|
sendCurrentLauncherSize() {
|
|
6447
|
-
var v, T,
|
|
6455
|
+
var v, T, I, S, z, M, U;
|
|
6448
6456
|
if (this.isOpen) return;
|
|
6449
6457
|
const e = (T = (v = this.$el) == null ? void 0 : v.querySelector) == null ? void 0 : T.call(v, ".wm-launcherWrap");
|
|
6450
6458
|
if (!e) return;
|
|
6451
6459
|
const t = e.getBoundingClientRect();
|
|
6452
6460
|
if (!t.width || !t.height) return;
|
|
6453
|
-
const s = (((
|
|
6461
|
+
const s = (((I = this.launcherPeeks) == null ? void 0 : I.length) ?? 0) > 0, r = 16, i = Math.ceil(t.width), n = Math.ceil(t.height), a = (z = (S = this.$el) == null ? void 0 : S.querySelector) == null ? void 0 : z.call(S, ".wm-launcher"), o = (U = (M = this.$el) == null ? void 0 : M.querySelectorAll) == null ? void 0 : U.call(M, ".wm-peek"), f = o && o.length ? o[o.length - 1] : null;
|
|
6454
6462
|
let k = null;
|
|
6455
6463
|
if (f) {
|
|
6456
6464
|
const x = f.getBoundingClientRect();
|
|
@@ -6898,7 +6906,7 @@ const Ka = /* @__PURE__ */ F(Ea, [["render", Va], ["__scopeId", "data-v-6d5f94a8
|
|
|
6898
6906
|
"aria-live": "polite"
|
|
6899
6907
|
}, fo = { class: "wm-ended__lbl" };
|
|
6900
6908
|
function _o(e, t, s, r, i, n) {
|
|
6901
|
-
const a = P("Launcher"), o = P("Header"), f = P("History"), k = P("Onboarding"), v = P("MessageList"), T = P("InlineCallbacks"),
|
|
6909
|
+
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");
|
|
6902
6910
|
return c(), d("div", {
|
|
6903
6911
|
class: R(["wm-root", `wm-root--${s.displayMode}`]),
|
|
6904
6912
|
style: N(n.rootStyle)
|
|
@@ -6950,7 +6958,7 @@ function _o(e, t, s, r, i, n) {
|
|
|
6950
6958
|
class: "wm-loading__spinner",
|
|
6951
6959
|
"aria-hidden": "true"
|
|
6952
6960
|
}, null, -1))
|
|
6953
|
-
])) : (c(), d(
|
|
6961
|
+
])) : (c(), d(B, { key: 1 }, [
|
|
6954
6962
|
K(o, {
|
|
6955
6963
|
title: n.headerTitle,
|
|
6956
6964
|
"team-members": n.teamMembers,
|
|
@@ -7022,7 +7030,7 @@ function _o(e, t, s, r, i, n) {
|
|
|
7022
7030
|
variant: "buttons",
|
|
7023
7031
|
items: n.resolutionCallbacks,
|
|
7024
7032
|
onSelect: n.onResolutionSelect
|
|
7025
|
-
}, null, 8, ["items", "onSelect"])) : n.pendingForm ? (c(), E(
|
|
7033
|
+
}, null, 8, ["items", "onSelect"])) : n.pendingForm ? (c(), E(I, {
|
|
7026
7034
|
key: n.pendingForm.message && n.pendingForm.message.id,
|
|
7027
7035
|
form: n.pendingForm.form,
|
|
7028
7036
|
"agent-name": n.agentName,
|
|
@@ -7049,7 +7057,7 @@ function _o(e, t, s, r, i, n) {
|
|
|
7049
7057
|
})), 1)
|
|
7050
7058
|
])) : b("", !0),
|
|
7051
7059
|
i.pendingAttachments.length ? (c(), d("div", io, [
|
|
7052
|
-
(c(!0), d(
|
|
7060
|
+
(c(!0), d(B, null, D(i.pendingAttachments, (x, q) => (c(), d("div", {
|
|
7053
7061
|
key: x.path || q,
|
|
7054
7062
|
class: "wm-attached__item"
|
|
7055
7063
|
}, [
|
|
@@ -7178,7 +7186,7 @@ function _o(e, t, s, r, i, n) {
|
|
|
7178
7186
|
], 6)) : b("", !0)
|
|
7179
7187
|
], 6);
|
|
7180
7188
|
}
|
|
7181
|
-
const vo = /* @__PURE__ */ F(Wa, [["render", _o], ["__scopeId", "data-v-9601fbb5"]]), po = "0.6.
|
|
7189
|
+
const vo = /* @__PURE__ */ F(Wa, [["render", _o], ["__scopeId", "data-v-9601fbb5"]]), po = "0.6.18";
|
|
7182
7190
|
export {
|
|
7183
7191
|
me as AIAvatar,
|
|
7184
7192
|
be as AVATAR_COLORS,
|
|
@@ -7196,17 +7204,17 @@ export {
|
|
|
7196
7204
|
ia as FormCard,
|
|
7197
7205
|
_n as Header,
|
|
7198
7206
|
ye as HumanAvatar,
|
|
7199
|
-
|
|
7207
|
+
Ii as InlineCallbacks,
|
|
7200
7208
|
qt as Launcher,
|
|
7201
7209
|
Le as MEDIA_RECORDER_SUPPORTED,
|
|
7202
7210
|
ai as MessageList,
|
|
7203
7211
|
vo as Messenger,
|
|
7204
|
-
|
|
7212
|
+
Ba as MoreMenu,
|
|
7205
7213
|
Qn as Onboarding,
|
|
7206
7214
|
ge as SCREEN_CAPTURE_SUPPORTED,
|
|
7207
7215
|
ht as SUPPORTED_LANGUAGES,
|
|
7208
7216
|
tn as TeamAvatars,
|
|
7209
|
-
|
|
7217
|
+
Br as Typing,
|
|
7210
7218
|
po as VERSION,
|
|
7211
7219
|
xe as avatarColor,
|
|
7212
7220
|
Oe as avatarInitials,
|