@_solaris/messenger-widget 0.6.9 → 0.6.10
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 +4 -4
- package/dist/messenger.cjs +1 -1
- package/dist/messenger.js +130 -136
- 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 F, normalizeClass as
|
|
1
|
+
import { reactive as We, openBlock as c, createElementBlock as d, normalizeStyle as F, normalizeClass as x, toDisplayString as v, resolveComponent as P, createVNode as K, Transition as Ae, withCtx as Se, Fragment as E, renderList as N, withKeys as _e, withModifiers as G, createElementVNode as l, createCommentVNode as b, createBlock as B, 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",
|
|
@@ -43,8 +43,8 @@ function tt(e) {
|
|
|
43
43
|
p && p.forEach((L) => {
|
|
44
44
|
try {
|
|
45
45
|
L(g);
|
|
46
|
-
} catch (
|
|
47
|
-
console.error("[transport] listener", u,
|
|
46
|
+
} catch (R) {
|
|
47
|
+
console.error("[transport] listener", u, R);
|
|
48
48
|
}
|
|
49
49
|
});
|
|
50
50
|
}
|
|
@@ -72,10 +72,10 @@ function tt(e) {
|
|
|
72
72
|
body: p !== void 0 ? JSON.stringify(p) : void 0
|
|
73
73
|
});
|
|
74
74
|
if (!L.ok) {
|
|
75
|
-
const
|
|
76
|
-
`HTTP ${L.status} ${u} ${g} :: ${(
|
|
75
|
+
const R = await o(L), V = new Error(
|
|
76
|
+
`HTTP ${L.status} ${u} ${g} :: ${(R == null ? void 0 : R.error) || L.statusText}`
|
|
77
77
|
);
|
|
78
|
-
throw V.status = L.status, V.body =
|
|
78
|
+
throw V.status = L.status, V.body = R, V;
|
|
79
79
|
}
|
|
80
80
|
return L.status === 204 ? null : L.json();
|
|
81
81
|
}
|
|
@@ -119,7 +119,7 @@ function tt(e) {
|
|
|
119
119
|
}
|
|
120
120
|
const p = await g.json();
|
|
121
121
|
t.userId = p.external_id;
|
|
122
|
-
const [L,
|
|
122
|
+
const [L, R] = await Promise.all([
|
|
123
123
|
fetch(
|
|
124
124
|
`${t.baseUrl}/widgets/${encodeURIComponent(t.widgetId)}/config`,
|
|
125
125
|
{ credentials: "include" }
|
|
@@ -133,7 +133,7 @@ function tt(e) {
|
|
|
133
133
|
return W.json();
|
|
134
134
|
}),
|
|
135
135
|
a("GET", "/customers/me")
|
|
136
|
-
]), V = { config: L, customer: (
|
|
136
|
+
]), V = { config: L, customer: (R == null ? void 0 : R.customer) ?? null };
|
|
137
137
|
return t.lastBootstrap = V, await k(), typeof document < "u" && (t.visibilityHandler = _, document.addEventListener(
|
|
138
138
|
"visibilitychange",
|
|
139
139
|
t.visibilityHandler
|
|
@@ -185,7 +185,7 @@ function tt(e) {
|
|
|
185
185
|
{ message_id: g }
|
|
186
186
|
);
|
|
187
187
|
}
|
|
188
|
-
async function
|
|
188
|
+
async function O(u, g = {}) {
|
|
189
189
|
const p = new URLSearchParams();
|
|
190
190
|
g.before && p.set("before", g.before), g.since && p.set("since", g.since), g.limit && p.set("limit", String(g.limit));
|
|
191
191
|
const L = p.toString() ? `?${p.toString()}` : "";
|
|
@@ -217,11 +217,11 @@ function tt(e) {
|
|
|
217
217
|
);
|
|
218
218
|
}
|
|
219
219
|
async function ie(u) {
|
|
220
|
-
const g = u.name || "attachment", p = u.type || "application/octet-stream", L = u.size || 0,
|
|
220
|
+
const g = u.name || "attachment", p = u.type || "application/octet-stream", L = u.size || 0, R = await a("POST", "/attachments", {
|
|
221
221
|
mime_type: p,
|
|
222
222
|
size_bytes: L,
|
|
223
223
|
name: g
|
|
224
|
-
}), V = await fetch(
|
|
224
|
+
}), V = await fetch(R.upload_url, {
|
|
225
225
|
method: "PUT",
|
|
226
226
|
headers: { "Content-Type": p },
|
|
227
227
|
body: u
|
|
@@ -230,7 +230,7 @@ function tt(e) {
|
|
|
230
230
|
throw new Error(`HTTP ${V.status} PUT signed upload`);
|
|
231
231
|
return {
|
|
232
232
|
type: st(p),
|
|
233
|
-
path:
|
|
233
|
+
path: R.path,
|
|
234
234
|
mime_type: p,
|
|
235
235
|
size_bytes: L
|
|
236
236
|
};
|
|
@@ -281,8 +281,8 @@ function tt(e) {
|
|
|
281
281
|
}
|
|
282
282
|
async function pe() {
|
|
283
283
|
try {
|
|
284
|
-
const u = await I(), g = u.reduce((L,
|
|
285
|
-
const V =
|
|
284
|
+
const u = await I(), g = u.reduce((L, R) => {
|
|
285
|
+
const V = R == null ? void 0 : R.last_message_at;
|
|
286
286
|
return V && (!L || V > L) ? V : L;
|
|
287
287
|
}, null);
|
|
288
288
|
g && (!t.lastActivityAt || g > t.lastActivityAt) && (t.lastActivityAt = g, r("activity", { conversations: u, latestAt: g }), te());
|
|
@@ -345,7 +345,7 @@ function tt(e) {
|
|
|
345
345
|
getConversation: z,
|
|
346
346
|
patchConversation: M,
|
|
347
347
|
markConversationRead: D,
|
|
348
|
-
listMessages:
|
|
348
|
+
listMessages: O,
|
|
349
349
|
postMessage: q,
|
|
350
350
|
postCallback: J,
|
|
351
351
|
uploadAttachment: ie,
|
|
@@ -532,9 +532,9 @@ function it(e) {
|
|
|
532
532
|
before: w,
|
|
533
533
|
limit: o
|
|
534
534
|
}), u = (C == null ? void 0 : C.messages) ?? [], g = t.messagesByConv[h] || [], p = /* @__PURE__ */ new Set();
|
|
535
|
-
for (const
|
|
536
|
-
(
|
|
537
|
-
const L = u.filter((
|
|
535
|
+
for (const R of g)
|
|
536
|
+
(R == null ? void 0 : R.id) != null && p.add(`id:${String(R.id)}`), R != null && R.client_msg_id && p.add(`c:${R.client_msg_id}`);
|
|
537
|
+
const L = u.filter((R) => !((R == null ? void 0 : R.id) != null && p.has(`id:${String(R.id)}`) || R != null && R.client_msg_id && p.has(`c:${R.client_msg_id}`)));
|
|
538
538
|
t.messagesByConv[h] = [...L, ...g], y(h, {
|
|
539
539
|
nextCursor: (C == null ? void 0 : C.next_cursor) ?? null,
|
|
540
540
|
loading: !1,
|
|
@@ -618,8 +618,8 @@ function it(e) {
|
|
|
618
618
|
...C ? { attachments: _ } : {},
|
|
619
619
|
...w && typeof w == "object" ? { metadata: w } : {}
|
|
620
620
|
});
|
|
621
|
-
} catch (
|
|
622
|
-
console.error("[store] send failed",
|
|
621
|
+
} catch (R) {
|
|
622
|
+
console.error("[store] send failed", R), oe(h, u, {
|
|
623
623
|
_failed: !0,
|
|
624
624
|
_pending: !1
|
|
625
625
|
});
|
|
@@ -634,7 +634,7 @@ function it(e) {
|
|
|
634
634
|
}
|
|
635
635
|
}
|
|
636
636
|
const D = /* @__PURE__ */ new Map();
|
|
637
|
-
async function
|
|
637
|
+
async function O(h) {
|
|
638
638
|
if (!h) return null;
|
|
639
639
|
const m = D.get(h);
|
|
640
640
|
if (m != null && m.url) {
|
|
@@ -779,7 +779,7 @@ function it(e) {
|
|
|
779
779
|
markConversationRead: S,
|
|
780
780
|
send: z,
|
|
781
781
|
clickCallback: M,
|
|
782
|
-
signAttachment:
|
|
782
|
+
signAttachment: O,
|
|
783
783
|
submitFeedback: q,
|
|
784
784
|
getActionInFlight: ie,
|
|
785
785
|
getLatestSuggestions: ae,
|
|
@@ -1840,7 +1840,7 @@ const U = (e, t) => {
|
|
|
1840
1840
|
}, Tt = ["src", "alt"];
|
|
1841
1841
|
function Mt(e, t, s, r, i, n) {
|
|
1842
1842
|
return c(), d("div", {
|
|
1843
|
-
class:
|
|
1843
|
+
class: x(["wm-huav", { "wm-huav--tail": s.tail }]),
|
|
1844
1844
|
style: F({
|
|
1845
1845
|
width: s.size + "px",
|
|
1846
1846
|
height: s.size + "px",
|
|
@@ -1898,7 +1898,7 @@ function zt(e, t, s, r, i, n) {
|
|
|
1898
1898
|
default: Se(() => [
|
|
1899
1899
|
n.visiblePeeks.length ? (c(), d("div", {
|
|
1900
1900
|
key: 0,
|
|
1901
|
-
class:
|
|
1901
|
+
class: x(["wm-peekStack", { "wm-peekStack--multi": n.visiblePeeks.length > 1 }])
|
|
1902
1902
|
}, [
|
|
1903
1903
|
(c(!0), d(E, null, N(n.visiblePeeks, (o, f) => (c(), d("div", {
|
|
1904
1904
|
key: o.convId,
|
|
@@ -2033,7 +2033,7 @@ const qt = /* @__PURE__ */ U(Ot, [["render", zt], ["__scopeId", "data-v-d81459bc
|
|
|
2033
2033
|
}, Wt = ["src", "alt"], $t = ["width", "height"];
|
|
2034
2034
|
function Gt(e, t, s, r, i, n) {
|
|
2035
2035
|
return c(), d("div", {
|
|
2036
|
-
class:
|
|
2036
|
+
class: x(["wm-aiav", { "wm-aiav--tail": s.tail }]),
|
|
2037
2037
|
style: F({
|
|
2038
2038
|
width: s.size + "px",
|
|
2039
2039
|
height: s.size + "px",
|
|
@@ -2042,7 +2042,7 @@ function Gt(e, t, s, r, i, n) {
|
|
|
2042
2042
|
}, [
|
|
2043
2043
|
s.pulse ? (c(), d("div", Kt)) : b("", !0),
|
|
2044
2044
|
l("div", {
|
|
2045
|
-
class:
|
|
2045
|
+
class: x(["wm-aiav__inner", {
|
|
2046
2046
|
"wm-aiav__inner--glow": s.pulse,
|
|
2047
2047
|
"wm-aiav__inner--img": !!s.imageUrl,
|
|
2048
2048
|
"wm-aiav__inner--initials": !s.imageUrl && !!n.initials
|
|
@@ -2234,7 +2234,7 @@ function fn(e, t, s, r, i, n) {
|
|
|
2234
2234
|
s.showMore ? (c(), d("button", {
|
|
2235
2235
|
key: 0,
|
|
2236
2236
|
type: "button",
|
|
2237
|
-
class:
|
|
2237
|
+
class: x(["wm-header__icon", { "wm-header__icon--active": s.moreActive }]),
|
|
2238
2238
|
"aria-label": n.t("header.moreOptions"),
|
|
2239
2239
|
title: n.t("header.moreOptions"),
|
|
2240
2240
|
onClick: t[1] || (t[1] = (f) => e.$emit("more"))
|
|
@@ -2563,13 +2563,13 @@ const _n = /* @__PURE__ */ U(nn, [["render", fn], ["__scopeId", "data-v-7af4c118
|
|
|
2563
2563
|
function Xn(e, t, s, r, i, n) {
|
|
2564
2564
|
const a = P("AIAvatar");
|
|
2565
2565
|
return c(), d("div", {
|
|
2566
|
-
class:
|
|
2566
|
+
class: x(["wm-onb", {
|
|
2567
2567
|
"wm-onb--launching": i.launchPhase !== "idle",
|
|
2568
2568
|
"wm-onb--sliding": i.launchPhase === "slide"
|
|
2569
2569
|
}])
|
|
2570
2570
|
}, [
|
|
2571
2571
|
l("div", {
|
|
2572
|
-
class:
|
|
2572
|
+
class: x(["wm-onb__hero", { "wm-onb__hero--cover": n.hasCover }])
|
|
2573
2573
|
}, [
|
|
2574
2574
|
n.hasCover ? (c(), d("div", {
|
|
2575
2575
|
key: 0,
|
|
@@ -2622,7 +2622,7 @@ function Xn(e, t, s, r, i, n) {
|
|
|
2622
2622
|
onClick: (f) => e.$emit("resume", o)
|
|
2623
2623
|
}, [
|
|
2624
2624
|
l("span", {
|
|
2625
|
-
class:
|
|
2625
|
+
class: x(["wm-onb__alert-avatar", n.avatarWrapperClass(o)])
|
|
2626
2626
|
}, [
|
|
2627
2627
|
n.isDefaultAvatar(o) ? (c(), d("span", An, [...t[4] || (t[4] = [
|
|
2628
2628
|
l("svg", {
|
|
@@ -2665,7 +2665,7 @@ function Xn(e, t, s, r, i, n) {
|
|
|
2665
2665
|
l("div", Bn, [
|
|
2666
2666
|
l("form", {
|
|
2667
2667
|
ref: "starterForm",
|
|
2668
|
-
class:
|
|
2668
|
+
class: x(["wm-onb__starter", {
|
|
2669
2669
|
"is-active": !!i.starterText.trim(),
|
|
2670
2670
|
"wm-onb__starter--toBottom": i.launchPhase === "slide"
|
|
2671
2671
|
}]),
|
|
@@ -2685,7 +2685,7 @@ function Xn(e, t, s, r, i, n) {
|
|
|
2685
2685
|
]),
|
|
2686
2686
|
l("button", {
|
|
2687
2687
|
type: "submit",
|
|
2688
|
-
class:
|
|
2688
|
+
class: x(["wm-onb__starter-send", { "is-empty": !n.canStart }]),
|
|
2689
2689
|
disabled: s.busy || !n.canStart,
|
|
2690
2690
|
"aria-label": n.t("composer.send")
|
|
2691
2691
|
}, [
|
|
@@ -2751,7 +2751,7 @@ function Xn(e, t, s, r, i, n) {
|
|
|
2751
2751
|
])
|
|
2752
2752
|
], 2);
|
|
2753
2753
|
}
|
|
2754
|
-
const Qn = /* @__PURE__ */ U(gn, [["render", Xn], ["__scopeId", "data-v-
|
|
2754
|
+
const Qn = /* @__PURE__ */ U(gn, [["render", Xn], ["__scopeId", "data-v-aafac3f0"]]), Zn = {
|
|
2755
2755
|
name: "WmHistory",
|
|
2756
2756
|
components: { AIAvatar: me, HumanAvatar: ve },
|
|
2757
2757
|
inject: {
|
|
@@ -2861,11 +2861,11 @@ function ms(e, t, s, r, i, n) {
|
|
|
2861
2861
|
(c(!0), d(E, null, N(n.filteredThreads, (a) => (c(), d("button", {
|
|
2862
2862
|
key: a.id,
|
|
2863
2863
|
type: "button",
|
|
2864
|
-
class:
|
|
2864
|
+
class: x(["wm-hist__thread", { "wm-hist__thread--unread": a.unread }]),
|
|
2865
2865
|
onClick: (o) => e.$emit("resume", a)
|
|
2866
2866
|
}, [
|
|
2867
2867
|
l("span", {
|
|
2868
|
-
class:
|
|
2868
|
+
class: x(["wm-hist__thread-avatar", n.avatarWrapperClass(a)])
|
|
2869
2869
|
}, [
|
|
2870
2870
|
n.isDefaultAvatar(a) ? (c(), d("span", is, [...t[2] || (t[2] = [
|
|
2871
2871
|
l("svg", {
|
|
@@ -2983,7 +2983,7 @@ const gs = {
|
|
|
2983
2983
|
}, ks = { class: "wm-result__body" }, Cs = { class: "wm-result__label" }, As = { class: "wm-result__detail" };
|
|
2984
2984
|
function Ss(e, t, s, r, i, n) {
|
|
2985
2985
|
return c(), d("div", {
|
|
2986
|
-
class:
|
|
2986
|
+
class: x(["wm-result", `wm-result--${s.state}`])
|
|
2987
2987
|
}, [
|
|
2988
2988
|
l("span", vs, [
|
|
2989
2989
|
s.state === "success" ? (c(), d("svg", ys, [...t[0] || (t[0] = [
|
|
@@ -3070,7 +3070,7 @@ function Bs(e, t, s, r, i, n) {
|
|
|
3070
3070
|
}, [
|
|
3071
3071
|
l("div", Es, v(a.label), 1),
|
|
3072
3072
|
l("div", {
|
|
3073
|
-
class:
|
|
3073
|
+
class: x([
|
|
3074
3074
|
"wm-art__fieldValue",
|
|
3075
3075
|
{ "wm-art__fieldValue--multi": a.multiline }
|
|
3076
3076
|
])
|
|
@@ -3123,7 +3123,7 @@ function $s(e, t, s, r, i, n) {
|
|
|
3123
3123
|
]),
|
|
3124
3124
|
s.data.badge && s.data.badge.label ? (c(), d("span", {
|
|
3125
3125
|
key: 0,
|
|
3126
|
-
class:
|
|
3126
|
+
class: x([
|
|
3127
3127
|
"wm-art__badge",
|
|
3128
3128
|
`wm-art__badge--${s.data.badge.tone || "neutral"}`
|
|
3129
3129
|
])
|
|
@@ -3137,7 +3137,7 @@ function $s(e, t, s, r, i, n) {
|
|
|
3137
3137
|
}, [
|
|
3138
3138
|
l("div", Ws, v(a.label), 1),
|
|
3139
3139
|
l("div", {
|
|
3140
|
-
class:
|
|
3140
|
+
class: x([
|
|
3141
3141
|
"wm-art__fieldValue",
|
|
3142
3142
|
{ "wm-art__fieldValue--multi": a.multiline }
|
|
3143
3143
|
])
|
|
@@ -3252,7 +3252,7 @@ function lr(e, t, s, r, i, n) {
|
|
|
3252
3252
|
l("span", null, v(s.data.reference), 1)
|
|
3253
3253
|
]),
|
|
3254
3254
|
l("span", {
|
|
3255
|
-
class:
|
|
3255
|
+
class: x([
|
|
3256
3256
|
"wm-art__badge",
|
|
3257
3257
|
"wm-tk__badge",
|
|
3258
3258
|
`wm-art__badge--${s.data.status.tone || "neutral"}`
|
|
@@ -3274,7 +3274,7 @@ function lr(e, t, s, r, i, n) {
|
|
|
3274
3274
|
}, [
|
|
3275
3275
|
l("div", rr, v(a.label), 1),
|
|
3276
3276
|
l("div", {
|
|
3277
|
-
class:
|
|
3277
|
+
class: x([
|
|
3278
3278
|
"wm-art__fieldValue",
|
|
3279
3279
|
{ "wm-art__fieldValue--multi": a.multiline }
|
|
3280
3280
|
])
|
|
@@ -3451,7 +3451,7 @@ const mr = /* @__PURE__ */ U(ur, [["render", hr]]), fr = {
|
|
|
3451
3451
|
};
|
|
3452
3452
|
function Ar(e, t, s, r, i, n) {
|
|
3453
3453
|
return c(), d("div", {
|
|
3454
|
-
class:
|
|
3454
|
+
class: x(["wm-att", ["wm-att--" + (n.kind || "file")]])
|
|
3455
3455
|
}, [
|
|
3456
3456
|
n.kind === "image" && i.url ? (c(), d("a", {
|
|
3457
3457
|
key: 0,
|
|
@@ -3524,7 +3524,7 @@ const Sr = /* @__PURE__ */ U(fr, [["render", Ar], ["__scopeId", "data-v-b207a8bd
|
|
|
3524
3524
|
}, Mr = ["innerHTML"];
|
|
3525
3525
|
function xr(e, t, s, r, i, n) {
|
|
3526
3526
|
return c(), d("div", {
|
|
3527
|
-
class:
|
|
3527
|
+
class: x(["wm-bubble", "wm-bubble--" + s.role])
|
|
3528
3528
|
}, [
|
|
3529
3529
|
$e(e.$slots, "default", {}, () => [
|
|
3530
3530
|
l("span", { innerHTML: n.rendered }, null, 8, Mr)
|
|
@@ -3957,8 +3957,8 @@ const Br = {
|
|
|
3957
3957
|
cornersFor(e, t) {
|
|
3958
3958
|
var ie, ae, X;
|
|
3959
3959
|
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, y = 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";
|
|
3960
|
-
let D = o,
|
|
3961
|
-
return a ? (k && (
|
|
3960
|
+
let D = o, O = o, q = o, J = o;
|
|
3961
|
+
return a ? (k && (O = f), (y || !n) && (q = f), k && M(I, k, r == null ? void 0 : r.top) && (D = f), y && M(S, y, r == null ? void 0 : r.bottom) && (J = f)) : (k && (D = f), (y || !n) && (J = f), k && M(I, k, r == null ? void 0 : r.top) && (O = f), y && M(S, y, r == null ? void 0 : r.bottom) && (q = f)), { tl: D, tr: O, br: q, bl: J };
|
|
3962
3962
|
},
|
|
3963
3963
|
// Inline column-count for the mosaic grid, capped at 4. Single
|
|
3964
3964
|
// attachment falls back to the vertical-list layout (null). Two
|
|
@@ -4175,7 +4175,7 @@ function ii(e, t, s, r, i, n) {
|
|
|
4175
4175
|
return c(), d("div", Nr, [
|
|
4176
4176
|
l("div", {
|
|
4177
4177
|
ref: "scrollEl",
|
|
4178
|
-
class:
|
|
4178
|
+
class: x(["wm-list", { "wm-list--silent": i.silentFades }]),
|
|
4179
4179
|
onScrollPassive: t[4] || (t[4] = (...S) => n.onScroll && n.onScroll(...S))
|
|
4180
4180
|
}, [
|
|
4181
4181
|
s.loadingMore ? (c(), d("div", Fr, [
|
|
@@ -4200,7 +4200,7 @@ function ii(e, t, s, r, i, n) {
|
|
|
4200
4200
|
])) : b("", !0),
|
|
4201
4201
|
S.role === "system" || S.items.length ? (c(), d("div", {
|
|
4202
4202
|
key: 1,
|
|
4203
|
-
class:
|
|
4203
|
+
class: x(["wm-list__group", "wm-list__group--" + S.role])
|
|
4204
4204
|
}, [
|
|
4205
4205
|
S.role === "system" ? (c(), d("div", Wr, [
|
|
4206
4206
|
t[11] || (t[11] = l("div", { class: "wm-list__line wm-list__line--strong" }, null, -1)),
|
|
@@ -4212,7 +4212,7 @@ function ii(e, t, s, r, i, n) {
|
|
|
4212
4212
|
}, [
|
|
4213
4213
|
l("div", {
|
|
4214
4214
|
"data-row-key": `${n.messageKey(M.message)}-${M.partKey}`,
|
|
4215
|
-
class:
|
|
4215
|
+
class: x(["wm-list__row fade-up", [
|
|
4216
4216
|
"wm-list__row--" + S.role,
|
|
4217
4217
|
{
|
|
4218
4218
|
"is-pending": M.message._pending,
|
|
@@ -4220,10 +4220,10 @@ function ii(e, t, s, r, i, n) {
|
|
|
4220
4220
|
}
|
|
4221
4221
|
]]),
|
|
4222
4222
|
style: F(n.cornersStyle(S, D)),
|
|
4223
|
-
onPointerdown: (
|
|
4224
|
-
onPointerup: t[0] || (t[0] = (
|
|
4225
|
-
onPointercancel: t[1] || (t[1] = (
|
|
4226
|
-
onPointerleave: t[2] || (t[2] = (
|
|
4223
|
+
onPointerdown: (O) => n.onPressStart(`${n.messageKey(M.message)}-${M.partKey}`),
|
|
4224
|
+
onPointerup: t[0] || (t[0] = (O) => n.onPressEnd()),
|
|
4225
|
+
onPointercancel: t[1] || (t[1] = (O) => n.onPressEnd()),
|
|
4226
|
+
onPointerleave: t[2] || (t[2] = (O) => n.onPressEnd()),
|
|
4227
4227
|
onContextmenu: t[3] || (t[3] = G(() => {
|
|
4228
4228
|
}, ["prevent"]))
|
|
4229
4229
|
}, [
|
|
@@ -4262,7 +4262,7 @@ function ii(e, t, s, r, i, n) {
|
|
|
4262
4262
|
artifact: n.artifactOf(M.message)
|
|
4263
4263
|
}, null, 8, ["artifact"])) : (c(), d("div", {
|
|
4264
4264
|
key: 5,
|
|
4265
|
-
class:
|
|
4265
|
+
class: x(["wm-list__body", {
|
|
4266
4266
|
"wm-list__body--mixed": !!M.message.text_md && n.attachmentsOf(M.message).length > 0
|
|
4267
4267
|
}])
|
|
4268
4268
|
}, [
|
|
@@ -4273,7 +4273,7 @@ function ii(e, t, s, r, i, n) {
|
|
|
4273
4273
|
}, null, 8, ["role", "text"])) : b("", !0),
|
|
4274
4274
|
n.attachmentsOf(M.message).length ? (c(), d("div", {
|
|
4275
4275
|
key: 1,
|
|
4276
|
-
class:
|
|
4276
|
+
class: x(["wm-list__atts", {
|
|
4277
4277
|
"wm-list__atts--align-end": S.role === "user",
|
|
4278
4278
|
"wm-list__atts--mosaic": n.attachmentsOf(M.message).length >= 2
|
|
4279
4279
|
}]),
|
|
@@ -4285,9 +4285,9 @@ function ii(e, t, s, r, i, n) {
|
|
|
4285
4285
|
}, [
|
|
4286
4286
|
(c(!0), d(E, null, N(n.attachmentsOf(
|
|
4287
4287
|
M.message
|
|
4288
|
-
), (
|
|
4288
|
+
), (O, q) => (c(), B(T, {
|
|
4289
4289
|
key: `${n.messageKey(M.message)}-att-${q}`,
|
|
4290
|
-
attachment:
|
|
4290
|
+
attachment: O,
|
|
4291
4291
|
style: F(
|
|
4292
4292
|
n.mosaicCornerStyle(
|
|
4293
4293
|
q,
|
|
@@ -4301,7 +4301,7 @@ function ii(e, t, s, r, i, n) {
|
|
|
4301
4301
|
], 46, Gr),
|
|
4302
4302
|
D < S.items.length - 1 && i.pressedItemKey === `${n.messageKey(M.message)}-${M.partKey}` && (S.role !== "user" || n.timeOf(M.message)) ? (c(), d("div", {
|
|
4303
4303
|
key: 0,
|
|
4304
|
-
class:
|
|
4304
|
+
class: x(["wm-list__meta wm-list__meta--press", { "wm-list__meta--right": S.role === "user" }])
|
|
4305
4305
|
}, [
|
|
4306
4306
|
S.role !== "user" ? (c(), d("span", Jr, v(n.roleLabel(S)), 1)) : b("", !0),
|
|
4307
4307
|
S.role !== "user" && n.timeOf(M.message) ? (c(), d("span", Xr, "•")) : b("", !0),
|
|
@@ -4310,7 +4310,7 @@ function ii(e, t, s, r, i, n) {
|
|
|
4310
4310
|
], 64))), 128)),
|
|
4311
4311
|
(S.role !== "user" || n.lastTimeOf(S)) && !n.hasTrailingOverlay(S) ? (c(), d("div", {
|
|
4312
4312
|
key: 0,
|
|
4313
|
-
class:
|
|
4313
|
+
class: x(["wm-list__meta", { "wm-list__meta--right": S.role === "user" }])
|
|
4314
4314
|
}, [
|
|
4315
4315
|
S.role !== "user" ? (c(), d("span", Zr, v(n.roleLabel(S)), 1)) : b("", !0),
|
|
4316
4316
|
S.role !== "user" && n.lastTimeOf(S) ? (c(), d("span", ei, "•")) : b("", !0),
|
|
@@ -4381,7 +4381,7 @@ function Ke({ audio: e }) {
|
|
|
4381
4381
|
systemAudio: e ? "include" : "exclude"
|
|
4382
4382
|
};
|
|
4383
4383
|
}
|
|
4384
|
-
function
|
|
4384
|
+
function go(e) {
|
|
4385
4385
|
return e ? e.startsWith("image/") ? "image" : e.startsWith("video/") ? "video" : "file" : "file";
|
|
4386
4386
|
}
|
|
4387
4387
|
async function li() {
|
|
@@ -4669,7 +4669,7 @@ const ui = [
|
|
|
4669
4669
|
}, pi = ["d"], wi = ["placeholder", "disabled"], bi = { class: "wm-compose__actions" }, ki = ["title", "aria-label", "disabled"], Ci = ["disabled", "aria-label"];
|
|
4670
4670
|
function Ai(e, t, s, r, i, n) {
|
|
4671
4671
|
return c(), d("div", {
|
|
4672
|
-
class:
|
|
4672
|
+
class: x(["wm-compose-wrap", { "wm-compose-wrap--sheet": s.displayMode === "sheet" }]),
|
|
4673
4673
|
style: F(i.kbOffset ? { transform: `translateY(-${i.kbOffset}px)` } : null)
|
|
4674
4674
|
}, [
|
|
4675
4675
|
i.recording ? (c(), d("div", mi, [
|
|
@@ -4685,7 +4685,7 @@ function Ai(e, t, s, r, i, n) {
|
|
|
4685
4685
|
}, v(n.t("composer.stop")), 1)
|
|
4686
4686
|
])) : b("", !0),
|
|
4687
4687
|
l("form", {
|
|
4688
|
-
class:
|
|
4688
|
+
class: x(["wm-compose", { "has-attach": i.attachOpen }]),
|
|
4689
4689
|
onSubmit: t[7] || (t[7] = G((...a) => n.onSubmit && n.onSubmit(...a), ["prevent"]))
|
|
4690
4690
|
}, [
|
|
4691
4691
|
l("input", {
|
|
@@ -4727,7 +4727,7 @@ function Ai(e, t, s, r, i, n) {
|
|
|
4727
4727
|
ref: "inputEl",
|
|
4728
4728
|
"onUpdate:modelValue": t[3] || (t[3] = (a) => i.local = a),
|
|
4729
4729
|
class: "wm-compose__input",
|
|
4730
|
-
rows: "
|
|
4730
|
+
rows: "1",
|
|
4731
4731
|
placeholder: s.placeholder,
|
|
4732
4732
|
disabled: s.disabled,
|
|
4733
4733
|
onKeydown: t[4] || (t[4] = (...a) => n.onKeydown && n.onKeydown(...a)),
|
|
@@ -4738,7 +4738,7 @@ function Ai(e, t, s, r, i, n) {
|
|
|
4738
4738
|
l("div", bi, [
|
|
4739
4739
|
l("button", {
|
|
4740
4740
|
type: "button",
|
|
4741
|
-
class:
|
|
4741
|
+
class: x(["wm-compose__icon", { "is-open": i.attachOpen }]),
|
|
4742
4742
|
title: s.attachLabel,
|
|
4743
4743
|
"aria-label": s.attachLabel,
|
|
4744
4744
|
disabled: i.recording,
|
|
@@ -4760,13 +4760,13 @@ function Ai(e, t, s, r, i, n) {
|
|
|
4760
4760
|
])], 10, ki),
|
|
4761
4761
|
l("button", {
|
|
4762
4762
|
type: "submit",
|
|
4763
|
-
class:
|
|
4763
|
+
class: x(["wm-compose__send", { "is-empty": !n.canSend }]),
|
|
4764
4764
|
disabled: !n.canSend,
|
|
4765
4765
|
"aria-label": n.t("composer.send")
|
|
4766
4766
|
}, [...t[10] || (t[10] = [
|
|
4767
4767
|
l("svg", {
|
|
4768
|
-
width: "
|
|
4769
|
-
height: "
|
|
4768
|
+
width: "16",
|
|
4769
|
+
height: "16",
|
|
4770
4770
|
viewBox: "0 0 24 24",
|
|
4771
4771
|
fill: "none",
|
|
4772
4772
|
stroke: "currentColor",
|
|
@@ -4782,7 +4782,7 @@ function Ai(e, t, s, r, i, n) {
|
|
|
4782
4782
|
], 34)
|
|
4783
4783
|
], 6);
|
|
4784
4784
|
}
|
|
4785
|
-
const Si = /* @__PURE__ */ U(hi, [["render", Ai], ["__scopeId", "data-v-
|
|
4785
|
+
const Si = /* @__PURE__ */ U(hi, [["render", Ai], ["__scopeId", "data-v-3c5bccae"]]), Ti = {
|
|
4786
4786
|
name: "WmInlineCallbacks",
|
|
4787
4787
|
props: {
|
|
4788
4788
|
// Array d'items `{ id?, label, style?, ... }`. Pour les suggestions,
|
|
@@ -4827,7 +4827,7 @@ const Si = /* @__PURE__ */ U(hi, [["render", Ai], ["__scopeId", "data-v-bba29b9c
|
|
|
4827
4827
|
function Li(e, t, s, r, i, n) {
|
|
4828
4828
|
return s.items.length ? (c(), d("div", {
|
|
4829
4829
|
key: n.batchKey,
|
|
4830
|
-
class:
|
|
4830
|
+
class: x(["wm-icb", `wm-icb--${s.variant}`])
|
|
4831
4831
|
}, [
|
|
4832
4832
|
s.variant === "chips" ? (c(!0), d(E, { key: 0 }, N(s.items, (a, o) => (c(), d("button", {
|
|
4833
4833
|
key: a.id != null ? a.id : o,
|
|
@@ -4841,7 +4841,7 @@ function Li(e, t, s, r, i, n) {
|
|
|
4841
4841
|
(c(!0), d(E, null, N(s.items, (a, o) => (c(), d("button", {
|
|
4842
4842
|
key: a.id != null ? a.id : o,
|
|
4843
4843
|
type: "button",
|
|
4844
|
-
class:
|
|
4844
|
+
class: x(["wm-icb__btn", n.btnClass(a)]),
|
|
4845
4845
|
onClick: (f) => e.$emit("select", a)
|
|
4846
4846
|
}, v(a.label), 11, Ri))), 128))
|
|
4847
4847
|
])
|
|
@@ -5170,7 +5170,7 @@ function ya(e, t, s, r, i, n) {
|
|
|
5170
5170
|
(c(!0), d(E, null, N(n.options, (a) => (c(), d("button", {
|
|
5171
5171
|
key: a.v,
|
|
5172
5172
|
type: "button",
|
|
5173
|
-
class:
|
|
5173
|
+
class: x(["wm-fb__opt", { "is-selected": i.sel === a.v }]),
|
|
5174
5174
|
onClick: (o) => i.sel = a.v
|
|
5175
5175
|
}, [
|
|
5176
5176
|
l("span", ha, v(a.e), 1),
|
|
@@ -5313,7 +5313,7 @@ function Ia(e, t, s, r, i, n) {
|
|
|
5313
5313
|
], -1)),
|
|
5314
5314
|
l("span", xa, v(n.t("moreMenu.sound")), 1),
|
|
5315
5315
|
l("span", {
|
|
5316
|
-
class:
|
|
5316
|
+
class: x(["wm-mm__toggle", { "wm-mm__toggle--on": i.soundOn }])
|
|
5317
5317
|
}, [...t[9] || (t[9] = [
|
|
5318
5318
|
l("span", { class: "wm-mm__knob" }, null, -1)
|
|
5319
5319
|
])], 2)
|
|
@@ -5660,12 +5660,6 @@ const Ka = /* @__PURE__ */ U(Ba, [["render", Va], ["__scopeId", "data-v-6d5f94a8
|
|
|
5660
5660
|
isEmbedded() {
|
|
5661
5661
|
return this.displayMode === "embedded";
|
|
5662
5662
|
},
|
|
5663
|
-
// No screen transition on ordinary navigation (opening/closing a
|
|
5664
|
-
// thread is instant) — only the dedicated "launch" fade plays, and
|
|
5665
|
-
// only when starting a conversation from the home input.
|
|
5666
|
-
screenTransition() {
|
|
5667
|
-
return this.launching ? "wm-launch" : "wm-none";
|
|
5668
|
-
},
|
|
5669
5663
|
// Language set on the authenticated customer. Checked both as a
|
|
5670
5664
|
// top-level column and as a named variable (`values.language`).
|
|
5671
5665
|
// Falls back to the consumer-supplied `context.customer.language`
|
|
@@ -6392,12 +6386,12 @@ const Ka = /* @__PURE__ */ U(Ba, [["render", Va], ["__scopeId", "data-v-6d5f94a8
|
|
|
6392
6386
|
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 = (D = (M = this.$el) == null ? void 0 : M.querySelectorAll) == null ? void 0 : D.call(M, ".wm-peek"), f = o && o.length ? o[o.length - 1] : null;
|
|
6393
6387
|
let k = null;
|
|
6394
6388
|
if (f) {
|
|
6395
|
-
const
|
|
6389
|
+
const O = f.getBoundingClientRect();
|
|
6396
6390
|
k = {
|
|
6397
|
-
width: Math.ceil(
|
|
6398
|
-
height: Math.ceil(
|
|
6399
|
-
rightOffset: Math.max(0, Math.ceil(t.right -
|
|
6400
|
-
bottomOffset: Math.max(0, Math.ceil(t.bottom -
|
|
6391
|
+
width: Math.ceil(O.width),
|
|
6392
|
+
height: Math.ceil(O.height),
|
|
6393
|
+
rightOffset: Math.max(0, Math.ceil(t.right - O.right)),
|
|
6394
|
+
bottomOffset: Math.max(0, Math.ceil(t.bottom - O.bottom))
|
|
6401
6395
|
};
|
|
6402
6396
|
}
|
|
6403
6397
|
this.notifyParentResize("closed", {
|
|
@@ -6449,16 +6443,16 @@ const Ka = /* @__PURE__ */ U(Ba, [["render", Va], ["__scopeId", "data-v-6d5f94a8
|
|
|
6449
6443
|
this.pendingLaunchText = t, this.launching = !0;
|
|
6450
6444
|
},
|
|
6451
6445
|
// Second half of the launch: the home input has reached the
|
|
6452
|
-
// composer slot, so materialize the conversation. The
|
|
6453
|
-
//
|
|
6454
|
-
//
|
|
6455
|
-
//
|
|
6456
|
-
//
|
|
6446
|
+
// composer slot, so materialize the conversation. The swap is
|
|
6447
|
+
// instant — the composer is iso with the home input and lands in
|
|
6448
|
+
// the same spot, so the input simply becomes the composer — while
|
|
6449
|
+
// the message area animates in (`wm-screen--launching`). `onSend`
|
|
6450
|
+
// posts the stashed text.
|
|
6457
6451
|
onHomeLaunched() {
|
|
6458
6452
|
const e = this.pendingLaunchText;
|
|
6459
6453
|
this.pendingLaunchText = "", this.startConv(), e && this.$nextTick(() => this.onSend(e)), window.setTimeout(() => {
|
|
6460
6454
|
this.launching = !1;
|
|
6461
|
-
},
|
|
6455
|
+
}, 650);
|
|
6462
6456
|
},
|
|
6463
6457
|
startConv() {
|
|
6464
6458
|
this.draftConv = {
|
|
@@ -6809,37 +6803,34 @@ const Ka = /* @__PURE__ */ U(Ba, [["render", Va], ["__scopeId", "data-v-6d5f94a8
|
|
|
6809
6803
|
}, Ga = ["aria-label"], Ya = { class: "wm-screens" }, Ja = {
|
|
6810
6804
|
key: "error",
|
|
6811
6805
|
class: "wm-screen wm-state"
|
|
6812
|
-
}, Xa = { class: "wm-state__err" }, Qa = { class: "wm-state__errTitle" }, Za = { class: "wm-state__errSub" }, eo = {
|
|
6813
|
-
key: "chat",
|
|
6814
|
-
class: "wm-screen wm-screen--chat"
|
|
6815
|
-
}, to = { class: "wm-bottom" }, no = {
|
|
6806
|
+
}, Xa = { class: "wm-state__err" }, Qa = { class: "wm-state__errTitle" }, Za = { class: "wm-state__errSub" }, eo = { class: "wm-bottom" }, to = {
|
|
6816
6807
|
key: 0,
|
|
6817
6808
|
ref: "floatEl",
|
|
6818
6809
|
class: "wm-float"
|
|
6819
|
-
},
|
|
6810
|
+
}, no = {
|
|
6820
6811
|
key: 1,
|
|
6821
6812
|
class: "wm-actionWait",
|
|
6822
6813
|
role: "status",
|
|
6823
6814
|
"aria-live": "polite"
|
|
6824
|
-
},
|
|
6815
|
+
}, so = { class: "wm-actionWait__lbl" }, ro = {
|
|
6825
6816
|
key: 2,
|
|
6826
6817
|
class: "wm-attached"
|
|
6827
|
-
},
|
|
6818
|
+
}, io = ["src", "alt"], ao = {
|
|
6828
6819
|
key: 1,
|
|
6829
6820
|
class: "wm-attached__file"
|
|
6830
|
-
},
|
|
6821
|
+
}, oo = { class: "wm-attached__fileMeta" }, lo = { class: "wm-attached__fileName" }, co = {
|
|
6831
6822
|
key: 0,
|
|
6832
6823
|
class: "wm-attached__fileSize"
|
|
6833
|
-
},
|
|
6824
|
+
}, uo = ["aria-label", "onClick"], ho = {
|
|
6834
6825
|
key: 3,
|
|
6835
6826
|
class: "wm-ended",
|
|
6836
6827
|
role: "status",
|
|
6837
6828
|
"aria-live": "polite"
|
|
6838
|
-
},
|
|
6839
|
-
function
|
|
6829
|
+
}, mo = { class: "wm-ended__lbl" };
|
|
6830
|
+
function fo(e, t, s, r, i, n) {
|
|
6840
6831
|
const a = P("Launcher"), o = P("Header"), f = P("History"), k = P("Onboarding"), y = P("MessageList"), T = P("InlineCallbacks"), I = P("FormCard"), S = P("Feedback"), z = P("Composer"), M = P("MoreMenu"), D = P("RenameDialog");
|
|
6841
6832
|
return c(), d("div", {
|
|
6842
|
-
class:
|
|
6833
|
+
class: x(["wm-root", `wm-root--${s.displayMode}`]),
|
|
6843
6834
|
style: F(n.rootStyle)
|
|
6844
6835
|
}, [
|
|
6845
6836
|
!i.isOpen && !n.isEmbedded ? (c(), B(a, {
|
|
@@ -6852,7 +6843,7 @@ function _o(e, t, s, r, i, n) {
|
|
|
6852
6843
|
}, null, 8, ["unread-count", "peeks", "onOpen", "onDismiss", "onHover"])) : b("", !0),
|
|
6853
6844
|
i.isOpen || n.isEmbedded ? (c(), d("section", {
|
|
6854
6845
|
key: 1,
|
|
6855
|
-
class:
|
|
6846
|
+
class: x([
|
|
6856
6847
|
"wm-panel",
|
|
6857
6848
|
`wm-panel--${s.displayMode}`,
|
|
6858
6849
|
{ "wm-panel--welcome": n.ready && !n.error && !n.currentConv }
|
|
@@ -6860,7 +6851,7 @@ function _o(e, t, s, r, i, n) {
|
|
|
6860
6851
|
style: F(i.floatHeight ? { "--wm-float-h": i.floatHeight + "px" } : null),
|
|
6861
6852
|
role: "dialog",
|
|
6862
6853
|
"aria-label": "Messenger",
|
|
6863
|
-
onClick: t[7] || (t[7] = (...
|
|
6854
|
+
onClick: t[7] || (t[7] = (...O) => n.onPanelClick && n.onPanelClick(...O))
|
|
6864
6855
|
}, [
|
|
6865
6856
|
!n.ready && !n.error ? (c(), d("div", $a, [
|
|
6866
6857
|
n.isEmbedded ? b("", !0) : (c(), d("button", {
|
|
@@ -6868,7 +6859,7 @@ function _o(e, t, s, r, i, n) {
|
|
|
6868
6859
|
type: "button",
|
|
6869
6860
|
class: "wm-loading__close",
|
|
6870
6861
|
"aria-label": n.t("loading.minimize"),
|
|
6871
|
-
onClick: t[0] || (t[0] = (...
|
|
6862
|
+
onClick: t[0] || (t[0] = (...O) => n.close && n.close(...O))
|
|
6872
6863
|
}, [...t[8] || (t[8] = [
|
|
6873
6864
|
l("svg", {
|
|
6874
6865
|
width: "13",
|
|
@@ -6904,7 +6895,7 @@ function _o(e, t, s, r, i, n) {
|
|
|
6904
6895
|
onClose: n.close
|
|
6905
6896
|
}, null, 8, ["title", "team-members", "response-label", "show-identity", "show-back", "show-close", "more-active", "agent-name", "agent-avatar-url", "onBack", "onMore", "onClose"]),
|
|
6906
6897
|
l("div", Ya, [
|
|
6907
|
-
K(Ae, { name:
|
|
6898
|
+
K(Ae, { name: "wm-none" }, {
|
|
6908
6899
|
default: Se(() => [
|
|
6909
6900
|
n.error ? (c(), d("div", Ja, [
|
|
6910
6901
|
l("div", Xa, [
|
|
@@ -6933,7 +6924,10 @@ function _o(e, t, s, r, i, n) {
|
|
|
6933
6924
|
class: "wm-screen",
|
|
6934
6925
|
threads: n.openThreads,
|
|
6935
6926
|
onResume: n.onDrawerPick
|
|
6936
|
-
}, null, 8, ["threads", "onResume"])) : n.currentConv ? (c(), d("div",
|
|
6927
|
+
}, null, 8, ["threads", "onResume"])) : n.currentConv ? (c(), d("div", {
|
|
6928
|
+
key: "chat",
|
|
6929
|
+
class: x(["wm-screen wm-screen--chat", { "wm-screen--launching": i.launching }])
|
|
6930
|
+
}, [
|
|
6937
6931
|
K(y, {
|
|
6938
6932
|
ref: "messageList",
|
|
6939
6933
|
messages: n.displayedMessages,
|
|
@@ -6948,8 +6942,8 @@ function _o(e, t, s, r, i, n) {
|
|
|
6948
6942
|
"ai-agent-avatar-url": n.agentAvatarUrl,
|
|
6949
6943
|
onLoadMore: n.onLoadMore
|
|
6950
6944
|
}, 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"]),
|
|
6951
|
-
l("div",
|
|
6952
|
-
n.floatVisible ? (c(), d("div",
|
|
6945
|
+
l("div", eo, [
|
|
6946
|
+
n.floatVisible ? (c(), d("div", to, [
|
|
6953
6947
|
n.pendingApproval ? (c(), B(T, {
|
|
6954
6948
|
key: `appr-${n.pendingApproval.id}`,
|
|
6955
6949
|
variant: "buttons",
|
|
@@ -6977,26 +6971,26 @@ function _o(e, t, s, r, i, n) {
|
|
|
6977
6971
|
onSelect: n.onSuggestion
|
|
6978
6972
|
}, null, 8, ["items", "onSelect"]))
|
|
6979
6973
|
], 512)) : b("", !0),
|
|
6980
|
-
n.actionInFlight ? (c(), d("div",
|
|
6974
|
+
n.actionInFlight ? (c(), d("div", no, [
|
|
6981
6975
|
t[11] || (t[11] = l("span", {
|
|
6982
6976
|
class: "wm-actionWait__spinner",
|
|
6983
6977
|
"aria-hidden": "true"
|
|
6984
6978
|
}, null, -1)),
|
|
6985
|
-
l("span",
|
|
6979
|
+
l("span", so, v(n.t("action.inProgress", {
|
|
6986
6980
|
name: n.actionInFlightName
|
|
6987
6981
|
})), 1)
|
|
6988
6982
|
])) : b("", !0),
|
|
6989
|
-
i.pendingAttachments.length ? (c(), d("div",
|
|
6990
|
-
(c(!0), d(E, null, N(i.pendingAttachments, (
|
|
6991
|
-
key:
|
|
6983
|
+
i.pendingAttachments.length ? (c(), d("div", ro, [
|
|
6984
|
+
(c(!0), d(E, null, N(i.pendingAttachments, (O, q) => (c(), d("div", {
|
|
6985
|
+
key: O.path || q,
|
|
6992
6986
|
class: "wm-attached__item"
|
|
6993
6987
|
}, [
|
|
6994
|
-
|
|
6988
|
+
O.previewUrl ? (c(), d("img", {
|
|
6995
6989
|
key: 0,
|
|
6996
6990
|
class: "wm-attached__thumb",
|
|
6997
|
-
src:
|
|
6998
|
-
alt:
|
|
6999
|
-
}, null, 8,
|
|
6991
|
+
src: O.previewUrl,
|
|
6992
|
+
alt: O.name
|
|
6993
|
+
}, null, 8, io)) : (c(), d("div", ao, [
|
|
7000
6994
|
t[12] || (t[12] = l("span", { class: "wm-attached__fileIcon" }, [
|
|
7001
6995
|
l("svg", {
|
|
7002
6996
|
width: "16",
|
|
@@ -7013,10 +7007,10 @@ function _o(e, t, s, r, i, n) {
|
|
|
7013
7007
|
l("path", { d: "M14 2v6h6" })
|
|
7014
7008
|
])
|
|
7015
7009
|
], -1)),
|
|
7016
|
-
l("span",
|
|
7017
|
-
l("span",
|
|
7018
|
-
n.formatAttachmentSize(
|
|
7019
|
-
|
|
7010
|
+
l("span", oo, [
|
|
7011
|
+
l("span", lo, v(O.name), 1),
|
|
7012
|
+
n.formatAttachmentSize(O.size_bytes) ? (c(), d("span", co, v(n.formatAttachmentSize(
|
|
7013
|
+
O.size_bytes
|
|
7020
7014
|
)), 1)) : b("", !0)
|
|
7021
7015
|
])
|
|
7022
7016
|
])),
|
|
@@ -7039,21 +7033,21 @@ function _o(e, t, s, r, i, n) {
|
|
|
7039
7033
|
}, [
|
|
7040
7034
|
l("path", { d: "M18 6L6 18M6 6l12 12" })
|
|
7041
7035
|
], -1)
|
|
7042
|
-
])], 8,
|
|
7036
|
+
])], 8, uo)
|
|
7043
7037
|
]))), 128))
|
|
7044
7038
|
])) : b("", !0),
|
|
7045
|
-
n.endedBlockVisible ? (c(), d("div",
|
|
7046
|
-
l("span",
|
|
7039
|
+
n.endedBlockVisible ? (c(), d("div", ho, [
|
|
7040
|
+
l("span", mo, v(n.isClosed ? n.t("composer.conversationClosed") : n.t("composer.conversationEnded")), 1),
|
|
7047
7041
|
l("button", {
|
|
7048
7042
|
type: "button",
|
|
7049
7043
|
class: "wm-ended__btn",
|
|
7050
|
-
onClick: t[2] || (t[2] = (
|
|
7044
|
+
onClick: t[2] || (t[2] = (O) => n.isClosed ? n.onReopen() : n.startConv())
|
|
7051
7045
|
}, v(n.isClosed ? n.t("composer.reopen") : n.t("composer.newConversation")), 1)
|
|
7052
7046
|
])) : n.actionInFlight ? b("", !0) : (c(), B(z, {
|
|
7053
7047
|
key: 4,
|
|
7054
7048
|
ref: "composer",
|
|
7055
7049
|
modelValue: i.draft,
|
|
7056
|
-
"onUpdate:modelValue": t[3] || (t[3] = (
|
|
7050
|
+
"onUpdate:modelValue": t[3] || (t[3] = (O) => i.draft = O),
|
|
7057
7051
|
placeholder: n.composerPlaceholder,
|
|
7058
7052
|
"attach-label": n.t("composer.attachFile"),
|
|
7059
7053
|
"display-mode": s.displayMode,
|
|
@@ -7068,7 +7062,7 @@ function _o(e, t, s, r, i, n) {
|
|
|
7068
7062
|
"sound-enabled": e.soundEnabled,
|
|
7069
7063
|
"status-url": n.statusUrl,
|
|
7070
7064
|
"help-url": n.helpUrl,
|
|
7071
|
-
onClose: t[4] || (t[4] = (
|
|
7065
|
+
onClose: t[4] || (t[4] = (O) => i.moreOpen = !1),
|
|
7072
7066
|
onSoundToggle: e.onSoundToggle,
|
|
7073
7067
|
onAction: n.onMoreAction
|
|
7074
7068
|
}, null, 8, ["can-rename", "can-export", "sound-enabled", "status-url", "help-url", "onSoundToggle", "onAction"])) : b("", !0),
|
|
@@ -7076,10 +7070,10 @@ function _o(e, t, s, r, i, n) {
|
|
|
7076
7070
|
key: 1,
|
|
7077
7071
|
"initial-value": n.currentConv.name || "",
|
|
7078
7072
|
title: n.t("rename.dialogTitle"),
|
|
7079
|
-
onClose: t[5] || (t[5] = (
|
|
7073
|
+
onClose: t[5] || (t[5] = (O) => i.renameDialogOpen = !1),
|
|
7080
7074
|
onSubmit: n.onRenameSubmit
|
|
7081
7075
|
}, null, 8, ["initial-value", "title", "onSubmit"])) : b("", !0)
|
|
7082
|
-
])) : (c(), B(k, {
|
|
7076
|
+
], 2)) : (c(), B(k, {
|
|
7083
7077
|
key: "home",
|
|
7084
7078
|
class: "wm-screen",
|
|
7085
7079
|
title: n.widgetTitle,
|
|
@@ -7095,11 +7089,11 @@ function _o(e, t, s, r, i, n) {
|
|
|
7095
7089
|
onLaunched: n.onHomeLaunched,
|
|
7096
7090
|
onSelect: n.onQuickLink,
|
|
7097
7091
|
onResume: n.onDrawerPick,
|
|
7098
|
-
onViewHistory: t[1] || (t[1] = (
|
|
7092
|
+
onViewHistory: t[1] || (t[1] = (O) => i.showHistory = !0)
|
|
7099
7093
|
}, null, 8, ["title", "subtitle", "agent-name", "default-icon-url", "cover-image-url", "quick-links", "open-threads", "busy", "launching", "onStart", "onLaunched", "onSelect", "onResume"]))
|
|
7100
7094
|
]),
|
|
7101
7095
|
_: 1
|
|
7102
|
-
}
|
|
7096
|
+
})
|
|
7103
7097
|
]),
|
|
7104
7098
|
i.moreOpen && !n.currentConv ? (c(), B(M, {
|
|
7105
7099
|
key: 0,
|
|
@@ -7108,7 +7102,7 @@ function _o(e, t, s, r, i, n) {
|
|
|
7108
7102
|
"sound-enabled": e.soundEnabled,
|
|
7109
7103
|
"status-url": n.statusUrl,
|
|
7110
7104
|
"help-url": n.helpUrl,
|
|
7111
|
-
onClose: t[6] || (t[6] = (
|
|
7105
|
+
onClose: t[6] || (t[6] = (O) => i.moreOpen = !1),
|
|
7112
7106
|
onSoundToggle: e.onSoundToggle,
|
|
7113
7107
|
onAction: n.onMoreAction
|
|
7114
7108
|
}, null, 8, ["sound-enabled", "status-url", "help-url", "onSoundToggle", "onAction"])) : b("", !0)
|
|
@@ -7116,7 +7110,7 @@ function _o(e, t, s, r, i, n) {
|
|
|
7116
7110
|
], 6)) : b("", !0)
|
|
7117
7111
|
], 6);
|
|
7118
7112
|
}
|
|
7119
|
-
const
|
|
7113
|
+
const vo = /* @__PURE__ */ U(Wa, [["render", fo], ["__scopeId", "data-v-ae5eee36"]]), yo = "0.6.10";
|
|
7120
7114
|
export {
|
|
7121
7115
|
me as AIAvatar,
|
|
7122
7116
|
be as AVATAR_COLORS,
|
|
@@ -7138,14 +7132,14 @@ export {
|
|
|
7138
7132
|
qt as Launcher,
|
|
7139
7133
|
Le as MEDIA_RECORDER_SUPPORTED,
|
|
7140
7134
|
ai as MessageList,
|
|
7141
|
-
|
|
7135
|
+
vo as Messenger,
|
|
7142
7136
|
Ea as MoreMenu,
|
|
7143
7137
|
Qn as Onboarding,
|
|
7144
7138
|
ge as SCREEN_CAPTURE_SUPPORTED,
|
|
7145
7139
|
ht as SUPPORTED_LANGUAGES,
|
|
7146
7140
|
tn as TeamAvatars,
|
|
7147
7141
|
Er as Typing,
|
|
7148
|
-
|
|
7142
|
+
yo as VERSION,
|
|
7149
7143
|
xe as avatarColor,
|
|
7150
7144
|
Oe as avatarInitials,
|
|
7151
7145
|
li as captureScreenshotFile,
|
|
@@ -7154,9 +7148,9 @@ export {
|
|
|
7154
7148
|
H as createTranslator,
|
|
7155
7149
|
tt as createTransport,
|
|
7156
7150
|
re as dateLocale,
|
|
7157
|
-
|
|
7151
|
+
vo as default,
|
|
7158
7152
|
Ce as formatTime,
|
|
7159
|
-
|
|
7153
|
+
go as guessAttachmentKind,
|
|
7160
7154
|
oi as pickRecorderMime,
|
|
7161
7155
|
Ve as renderInlineMarkdown,
|
|
7162
7156
|
_t as renderMarkdown,
|