@_solaris/messenger-widget 0.5.68 → 0.5.70
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 +3 -3
- package/dist/messenger.js +132 -138
- 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
|
|
1
|
+
import { reactive as $e, openBlock as c, createElementBlock as d, normalizeStyle as z, normalizeClass as R, toDisplayString as v, resolveComponent as B, createVNode as $, Transition as Ne, withCtx as Fe, Fragment as I, renderList as F, withKeys as ge, withModifiers as J, createElementVNode as o, createCommentVNode as b, createBlock as U, resolveDynamicComponent as Ae, mergeProps as je, withDirectives as G, vModelText as te, createTextVNode as Se, renderSlot as Ke, vModelCheckbox as We, vModelSelect as Ge, markRaw as Re } from "vue";
|
|
2
2
|
const Ye = [
|
|
3
3
|
"connected",
|
|
4
4
|
"message",
|
|
@@ -112,10 +112,10 @@ function Ze(e) {
|
|
|
112
112
|
}
|
|
113
113
|
);
|
|
114
114
|
if (!g.ok) {
|
|
115
|
-
const
|
|
116
|
-
`Session bootstrap failed: HTTP ${g.status} :: ${(
|
|
115
|
+
const V = await l(g), Z = new Error(
|
|
116
|
+
`Session bootstrap failed: HTTP ${g.status} :: ${(V == null ? void 0 : V.error) || g.statusText}`
|
|
117
117
|
);
|
|
118
|
-
throw Z.status = g.status, Z.body =
|
|
118
|
+
throw Z.status = g.status, Z.body = V, Z;
|
|
119
119
|
}
|
|
120
120
|
const p = await g.json();
|
|
121
121
|
t.userId = p.external_id;
|
|
@@ -123,14 +123,14 @@ function Ze(e) {
|
|
|
123
123
|
fetch(
|
|
124
124
|
`${t.baseUrl}/widgets/${encodeURIComponent(t.widgetId)}/config`,
|
|
125
125
|
{ credentials: "include" }
|
|
126
|
-
).then(async (
|
|
127
|
-
if (
|
|
128
|
-
const Z = await l(
|
|
126
|
+
).then(async (V) => {
|
|
127
|
+
if (!V.ok) {
|
|
128
|
+
const Z = await l(V);
|
|
129
129
|
throw new Error(
|
|
130
|
-
`HTTP ${
|
|
130
|
+
`HTTP ${V.status} GET /widgets/:id/config :: ${(Z == null ? void 0 : Z.error) || V.statusText}`
|
|
131
131
|
);
|
|
132
132
|
}
|
|
133
|
-
return
|
|
133
|
+
return V.json();
|
|
134
134
|
}),
|
|
135
135
|
i("GET", "/customers/me")
|
|
136
136
|
]), x = { config: S, customer: (O == null ? void 0 : O.customer) ?? null };
|
|
@@ -141,7 +141,7 @@ function Ze(e) {
|
|
|
141
141
|
}
|
|
142
142
|
async function k() {
|
|
143
143
|
try {
|
|
144
|
-
const u = await
|
|
144
|
+
const u = await E();
|
|
145
145
|
t.lastActivityAt = u.reduce((g, p) => {
|
|
146
146
|
const S = p == null ? void 0 : p.last_message_at;
|
|
147
147
|
return S && (!g || S > g) ? S : g;
|
|
@@ -158,7 +158,7 @@ function Ze(e) {
|
|
|
158
158
|
const g = await i("PATCH", "/customers/me", u);
|
|
159
159
|
return (g == null ? void 0 : g.customer) ?? null;
|
|
160
160
|
}
|
|
161
|
-
async function
|
|
161
|
+
async function E() {
|
|
162
162
|
const u = await i("GET", "/conversations");
|
|
163
163
|
return (u == null ? void 0 : u.conversations) ?? [];
|
|
164
164
|
}
|
|
@@ -194,7 +194,7 @@ function Ze(e) {
|
|
|
194
194
|
`/conversations/${encodeURIComponent(u)}/messages${S}`
|
|
195
195
|
);
|
|
196
196
|
}
|
|
197
|
-
async function
|
|
197
|
+
async function L(u, g) {
|
|
198
198
|
ae();
|
|
199
199
|
const p = {
|
|
200
200
|
client_msg_id: g.client_msg_id,
|
|
@@ -280,7 +280,7 @@ function Ze(e) {
|
|
|
280
280
|
}
|
|
281
281
|
async function ye() {
|
|
282
282
|
try {
|
|
283
|
-
const u = await
|
|
283
|
+
const u = await E(), g = u.reduce((S, O) => {
|
|
284
284
|
const x = O == null ? void 0 : O.last_message_at;
|
|
285
285
|
return x && (!S || x > S) ? x : S;
|
|
286
286
|
}, null);
|
|
@@ -337,13 +337,13 @@ function Ze(e) {
|
|
|
337
337
|
// REST
|
|
338
338
|
getCustomer: w,
|
|
339
339
|
patchCustomer: T,
|
|
340
|
-
listConversations:
|
|
340
|
+
listConversations: E,
|
|
341
341
|
createConversation: A,
|
|
342
342
|
getConversation: q,
|
|
343
343
|
patchConversation: M,
|
|
344
344
|
markConversationRead: D,
|
|
345
345
|
listMessages: N,
|
|
346
|
-
postMessage:
|
|
346
|
+
postMessage: L,
|
|
347
347
|
postCallback: K,
|
|
348
348
|
uploadAttachment: Q,
|
|
349
349
|
signAttachment: se,
|
|
@@ -372,7 +372,7 @@ function nt() {
|
|
|
372
372
|
return t.slice(0, 4).join("") + "-" + t.slice(4, 6).join("") + "-" + t.slice(6, 8).join("") + "-" + t.slice(8, 10).join("") + "-" + t.slice(10, 16).join("");
|
|
373
373
|
}
|
|
374
374
|
function st(e) {
|
|
375
|
-
const t =
|
|
375
|
+
const t = $e({
|
|
376
376
|
ready: !1,
|
|
377
377
|
error: null,
|
|
378
378
|
config: null,
|
|
@@ -549,7 +549,7 @@ function st(e) {
|
|
|
549
549
|
const f = await e.patchConversation(h, m), y = t.conversations.findIndex((C) => C.id === h);
|
|
550
550
|
y !== -1 && (t.conversations[y] = f);
|
|
551
551
|
}
|
|
552
|
-
async function
|
|
552
|
+
async function E(h) {
|
|
553
553
|
if (!h) return [];
|
|
554
554
|
const m = t.messagesByConv[h] || [];
|
|
555
555
|
let f = "";
|
|
@@ -650,7 +650,7 @@ function st(e) {
|
|
|
650
650
|
}
|
|
651
651
|
return null;
|
|
652
652
|
}
|
|
653
|
-
async function
|
|
653
|
+
async function L(h, { rating: m, comment: f } = {}) {
|
|
654
654
|
const y = t.conversations.find((g) => g.id === h), u = {
|
|
655
655
|
...(y == null ? void 0 : y.metadata) || {},
|
|
656
656
|
feedback: {
|
|
@@ -710,8 +710,8 @@ function st(e) {
|
|
|
710
710
|
if (O && typeof O == "object" && typeof O.label == "string") {
|
|
711
711
|
const x = O.label.trim();
|
|
712
712
|
if (!x) return null;
|
|
713
|
-
const
|
|
714
|
-
return { label: x, kind:
|
|
713
|
+
const V = O.kind === "cta" || O.kind === "choice" || O.kind === "followup" ? O.kind : null;
|
|
714
|
+
return { label: x, kind: V };
|
|
715
715
|
}
|
|
716
716
|
return null;
|
|
717
717
|
}).filter(Boolean).slice(0, 4) : [];
|
|
@@ -781,13 +781,13 @@ function st(e) {
|
|
|
781
781
|
createConversation: i,
|
|
782
782
|
openConversation: _,
|
|
783
783
|
loadMore: k,
|
|
784
|
-
fetchSinceLast:
|
|
784
|
+
fetchSinceLast: E,
|
|
785
785
|
patchConversation: T,
|
|
786
786
|
markConversationRead: A,
|
|
787
787
|
send: q,
|
|
788
788
|
clickCallback: M,
|
|
789
789
|
signAttachment: N,
|
|
790
|
-
submitFeedback:
|
|
790
|
+
submitFeedback: L,
|
|
791
791
|
getPendingApproval: K,
|
|
792
792
|
getActionInFlight: se,
|
|
793
793
|
getLatestSuggestions: re,
|
|
@@ -1264,10 +1264,10 @@ function ft(e) {
|
|
|
1264
1264
|
if (!A) break;
|
|
1265
1265
|
w.push(A[1]), r++;
|
|
1266
1266
|
}
|
|
1267
|
-
const T = w.map((A) => `<li>${de(A)}</li>`).join(""),
|
|
1267
|
+
const T = w.map((A) => `<li>${de(A)}</li>`).join(""), E = k !== 1 ? ` start="${k}"` : "";
|
|
1268
1268
|
n.push({
|
|
1269
1269
|
type: "block",
|
|
1270
|
-
html: `<ol class="wm-md-ol"${
|
|
1270
|
+
html: `<ol class="wm-md-ol"${E}>${T}</ol>`
|
|
1271
1271
|
});
|
|
1272
1272
|
continue;
|
|
1273
1273
|
}
|
|
@@ -1887,13 +1887,13 @@ function zt(e, t, n, r, a, s) {
|
|
|
1887
1887
|
onFocusin: t[3] || (t[3] = (l) => e.$emit("hover", !0)),
|
|
1888
1888
|
onFocusout: t[4] || (t[4] = (l) => e.$emit("hover", !1))
|
|
1889
1889
|
}, [
|
|
1890
|
-
|
|
1890
|
+
$(Ne, { name: "wm-peek" }, {
|
|
1891
1891
|
default: Fe(() => [
|
|
1892
1892
|
s.visiblePeeks.length ? (c(), d("div", {
|
|
1893
1893
|
key: 0,
|
|
1894
1894
|
class: R(["wm-peekStack", { "wm-peekStack--multi": s.visiblePeeks.length > 1 }])
|
|
1895
1895
|
}, [
|
|
1896
|
-
(c(!0), d(
|
|
1896
|
+
(c(!0), d(I, null, F(s.visiblePeeks, (l, _) => (c(), d("div", {
|
|
1897
1897
|
key: l.convId,
|
|
1898
1898
|
class: "wm-peek",
|
|
1899
1899
|
style: z({
|
|
@@ -1932,7 +1932,7 @@ function zt(e, t, n, r, a, s) {
|
|
|
1932
1932
|
], -1)
|
|
1933
1933
|
])], 8, Lt),
|
|
1934
1934
|
o("div", It, [
|
|
1935
|
-
|
|
1935
|
+
$(i, {
|
|
1936
1936
|
name: l.senderName,
|
|
1937
1937
|
"avatar-url": l.senderAvatarUrl,
|
|
1938
1938
|
size: 34
|
|
@@ -1991,7 +1991,7 @@ function zt(e, t, n, r, a, s) {
|
|
|
1991
1991
|
], 8, jt)
|
|
1992
1992
|
], 32);
|
|
1993
1993
|
}
|
|
1994
|
-
const qt = /* @__PURE__ */ P(Ot, [["render", zt], ["__scopeId", "data-v-44ddf1a1"]]),
|
|
1994
|
+
const qt = /* @__PURE__ */ P(Ot, [["render", zt], ["__scopeId", "data-v-44ddf1a1"]]), Vt = {
|
|
1995
1995
|
name: "WmAIAvatar",
|
|
1996
1996
|
props: {
|
|
1997
1997
|
size: { type: Number, default: 26 },
|
|
@@ -2020,7 +2020,7 @@ const qt = /* @__PURE__ */ P(Ot, [["render", zt], ["__scopeId", "data-v-44ddf1a1
|
|
|
2020
2020
|
return Me(this.name);
|
|
2021
2021
|
}
|
|
2022
2022
|
}
|
|
2023
|
-
},
|
|
2023
|
+
}, $t = {
|
|
2024
2024
|
key: 0,
|
|
2025
2025
|
class: "wm-aiav__pulse"
|
|
2026
2026
|
}, Kt = ["src", "alt"], Wt = ["width", "height"];
|
|
@@ -2033,7 +2033,7 @@ function Gt(e, t, n, r, a, s) {
|
|
|
2033
2033
|
"--wm-avr": n.size * 0.32 + "px"
|
|
2034
2034
|
})
|
|
2035
2035
|
}, [
|
|
2036
|
-
n.pulse ? (c(), d("div",
|
|
2036
|
+
n.pulse ? (c(), d("div", $t)) : b("", !0),
|
|
2037
2037
|
o("div", {
|
|
2038
2038
|
class: R(["wm-aiav__inner", {
|
|
2039
2039
|
"wm-aiav__inner--glow": n.pulse,
|
|
@@ -2082,7 +2082,7 @@ function Gt(e, t, n, r, a, s) {
|
|
|
2082
2082
|
], 6)
|
|
2083
2083
|
], 6);
|
|
2084
2084
|
}
|
|
2085
|
-
const oe = /* @__PURE__ */ P(
|
|
2085
|
+
const oe = /* @__PURE__ */ P(Vt, [["render", Gt], ["__scopeId", "data-v-6f7f685d"]]), Yt = {
|
|
2086
2086
|
name: "WmTeamAvatars",
|
|
2087
2087
|
props: {
|
|
2088
2088
|
members: { type: Array, default: () => [] },
|
|
@@ -2117,7 +2117,7 @@ function en(e, t, n, r, a, s) {
|
|
|
2117
2117
|
class: "wm-team__stack",
|
|
2118
2118
|
style: z({ width: s.stackWidth + "px" })
|
|
2119
2119
|
}, [
|
|
2120
|
-
(c(!0), d(
|
|
2120
|
+
(c(!0), d(I, null, F(n.members.slice(0, 3), (i, l) => (c(), d("div", {
|
|
2121
2121
|
key: l,
|
|
2122
2122
|
class: "wm-team__pill",
|
|
2123
2123
|
style: z({
|
|
@@ -2206,9 +2206,9 @@ function fn(e, t, n, r, a, s) {
|
|
|
2206
2206
|
o("path", { d: "M19 12H5M12 5l-7 7 7 7" })
|
|
2207
2207
|
], -1)
|
|
2208
2208
|
])], 8, rn)) : (c(), d("div", an)),
|
|
2209
|
-
n.showIdentity ? (c(), d(
|
|
2209
|
+
n.showIdentity ? (c(), d(I, { key: 2 }, [
|
|
2210
2210
|
o("div", on, [
|
|
2211
|
-
|
|
2211
|
+
$(i, {
|
|
2212
2212
|
size: 30,
|
|
2213
2213
|
name: n.agentName,
|
|
2214
2214
|
"image-url": n.agentAvatarUrl
|
|
@@ -2438,7 +2438,7 @@ const _n = /* @__PURE__ */ P(nn, [["render", fn], ["__scopeId", "data-v-7af4c118
|
|
|
2438
2438
|
"stroke-linecap": "round",
|
|
2439
2439
|
"stroke-linejoin": "round",
|
|
2440
2440
|
"aria-hidden": "true"
|
|
2441
|
-
},
|
|
2441
|
+
}, Vn = { class: "wm-onb__btn-icon" }, $n = {
|
|
2442
2442
|
width: "18",
|
|
2443
2443
|
height: "18",
|
|
2444
2444
|
viewBox: "0 0 24 24",
|
|
@@ -2487,7 +2487,7 @@ function Yn(e, t, n, r, a, s) {
|
|
|
2487
2487
|
opacity: "0.65"
|
|
2488
2488
|
})
|
|
2489
2489
|
], -1)),
|
|
2490
|
-
|
|
2490
|
+
$(i, {
|
|
2491
2491
|
size: 52,
|
|
2492
2492
|
"image-url": n.defaultIconUrl
|
|
2493
2493
|
}, null, 8, ["image-url"]),
|
|
@@ -2497,7 +2497,7 @@ function Yn(e, t, n, r, a, s) {
|
|
|
2497
2497
|
])
|
|
2498
2498
|
]),
|
|
2499
2499
|
s.unreadThreads.length ? (c(), d("div", kn, [
|
|
2500
|
-
(c(!0), d(
|
|
2500
|
+
(c(!0), d(I, null, F(s.unreadThreads, (l) => (c(), d("button", {
|
|
2501
2501
|
key: l.id,
|
|
2502
2502
|
type: "button",
|
|
2503
2503
|
class: "wm-onb__alert",
|
|
@@ -2568,7 +2568,7 @@ function Yn(e, t, n, r, a, s) {
|
|
|
2568
2568
|
], -1)),
|
|
2569
2569
|
o("span", Un, v(n.busy ? "…" : s.t("onboarding.start")), 1)
|
|
2570
2570
|
], 8, Pn),
|
|
2571
|
-
(c(!0), d(
|
|
2571
|
+
(c(!0), d(I, null, F(n.quickLinks, (l, _) => (c(), d("button", {
|
|
2572
2572
|
key: "ql-" + _,
|
|
2573
2573
|
type: "button",
|
|
2574
2574
|
class: "wm-onb__btn",
|
|
@@ -2598,8 +2598,8 @@ function Yn(e, t, n, r, a, s) {
|
|
|
2598
2598
|
class: "wm-onb__btn",
|
|
2599
2599
|
onClick: t[1] || (t[1] = (l) => e.$emit("view-history"))
|
|
2600
2600
|
}, [
|
|
2601
|
-
o("span",
|
|
2602
|
-
(c(), d("svg",
|
|
2601
|
+
o("span", Vn, [
|
|
2602
|
+
(c(), d("svg", $n, [
|
|
2603
2603
|
o("path", {
|
|
2604
2604
|
d: s.iconPath("chat")
|
|
2605
2605
|
}, null, 8, Kn)
|
|
@@ -2732,7 +2732,7 @@ function us(e, t, n, r, a, s) {
|
|
|
2732
2732
|
])
|
|
2733
2733
|
]),
|
|
2734
2734
|
o("div", ts, [
|
|
2735
|
-
(c(!0), d(
|
|
2735
|
+
(c(!0), d(I, null, F(s.filteredThreads, (i) => (c(), d("button", {
|
|
2736
2736
|
key: i.id,
|
|
2737
2737
|
type: "button",
|
|
2738
2738
|
class: R(["wm-hist__thread", { "wm-hist__thread--unread": i.unread }]),
|
|
@@ -2889,7 +2889,7 @@ function Cs(e, t, n, r, a, s) {
|
|
|
2889
2889
|
]),
|
|
2890
2890
|
o("span", ws, [
|
|
2891
2891
|
o("span", bs, v(n.label), 1),
|
|
2892
|
-
s.detailText ? (c(), d(
|
|
2892
|
+
s.detailText ? (c(), d(I, { key: 0 }, [
|
|
2893
2893
|
t[4] || (t[4] = o("span", {
|
|
2894
2894
|
class: "wm-result__sep",
|
|
2895
2895
|
"aria-hidden": "true"
|
|
@@ -2938,7 +2938,7 @@ function Is(e, t, n, r, a, s) {
|
|
|
2938
2938
|
])
|
|
2939
2939
|
]),
|
|
2940
2940
|
o("div", Rs, [
|
|
2941
|
-
(c(!0), d(
|
|
2941
|
+
(c(!0), d(I, null, F(s.fields, (i, l) => (c(), d("div", {
|
|
2942
2942
|
key: l,
|
|
2943
2943
|
class: "wm-art__field"
|
|
2944
2944
|
}, [
|
|
@@ -2980,8 +2980,8 @@ const Es = /* @__PURE__ */ P(Ss, [["render", Is], ["__scopeId", "data-v-713aecf1
|
|
|
2980
2980
|
}, qs = {
|
|
2981
2981
|
key: 0,
|
|
2982
2982
|
class: "wm-art__text"
|
|
2983
|
-
},
|
|
2984
|
-
function
|
|
2983
|
+
}, Vs = { class: "wm-art__fieldLabel" };
|
|
2984
|
+
function $s(e, t, n, r, a, s) {
|
|
2985
2985
|
return c(), d("div", Ps, [
|
|
2986
2986
|
n.data.image_url ? (c(), d("figure", Us, [
|
|
2987
2987
|
o("img", {
|
|
@@ -3005,11 +3005,11 @@ function Vs(e, t, n, r, a, s) {
|
|
|
3005
3005
|
]),
|
|
3006
3006
|
s.hasBody ? (c(), d("div", zs, [
|
|
3007
3007
|
n.data.body ? (c(), d("div", qs, v(n.data.body), 1)) : b("", !0),
|
|
3008
|
-
s.fields.length ? (c(!0), d(
|
|
3008
|
+
s.fields.length ? (c(!0), d(I, { key: 1 }, F(s.fields, (i, l) => (c(), d("div", {
|
|
3009
3009
|
key: l,
|
|
3010
3010
|
class: "wm-art__field"
|
|
3011
3011
|
}, [
|
|
3012
|
-
o("div",
|
|
3012
|
+
o("div", Vs, v(i.label), 1),
|
|
3013
3013
|
o("div", {
|
|
3014
3014
|
class: R([
|
|
3015
3015
|
"wm-art__fieldValue",
|
|
@@ -3020,7 +3020,7 @@ function Vs(e, t, n, r, a, s) {
|
|
|
3020
3020
|
])) : b("", !0)
|
|
3021
3021
|
]);
|
|
3022
3022
|
}
|
|
3023
|
-
const Ks = /* @__PURE__ */ P(Bs, [["render",
|
|
3023
|
+
const Ks = /* @__PURE__ */ P(Bs, [["render", $s], ["__scopeId", "data-v-7eae0e4a"]]);
|
|
3024
3024
|
function Ws(e, t, n) {
|
|
3025
3025
|
if (!e) return "";
|
|
3026
3026
|
const r = new Date(e);
|
|
@@ -3142,7 +3142,7 @@ function ar(e, t, n, r, a, s) {
|
|
|
3142
3142
|
n.data.body ? (c(), d("div", er, v(n.data.body), 1)) : b("", !0)
|
|
3143
3143
|
]),
|
|
3144
3144
|
s.fields.length ? (c(), d("div", tr, [
|
|
3145
|
-
(c(!0), d(
|
|
3145
|
+
(c(!0), d(I, null, F(s.fields, (i, l) => (c(), d("div", {
|
|
3146
3146
|
key: l,
|
|
3147
3147
|
class: "wm-art__field"
|
|
3148
3148
|
}, [
|
|
@@ -3383,7 +3383,7 @@ function kr(e, t, n, r, a, s) {
|
|
|
3383
3383
|
], 8, pr))
|
|
3384
3384
|
], 2);
|
|
3385
3385
|
}
|
|
3386
|
-
const Cr = /* @__PURE__ */ P(hr, [["render", kr], ["__scopeId", "data-v-
|
|
3386
|
+
const Cr = /* @__PURE__ */ P(hr, [["render", kr], ["__scopeId", "data-v-b207a8bd"]]), Ar = {
|
|
3387
3387
|
name: "WmBubble",
|
|
3388
3388
|
props: {
|
|
3389
3389
|
role: { type: String, default: "ai" },
|
|
@@ -3828,9 +3828,9 @@ const Ir = {
|
|
|
3828
3828
|
// doit garder son arrondi.
|
|
3829
3829
|
cornersFor(e, t) {
|
|
3830
3830
|
var Q, se, re;
|
|
3831
|
-
const n = e.items, r = (Q = n[t]) == null ? void 0 : Q.kind, a = (se = n[t - 1]) == null ? void 0 : se.kind, s = (re = n[t + 1]) == null ? void 0 : re.kind, i = e.role === "user", l = 14, _ = 4, k = a == null ? void 0 : a.bottom, w = s == null ? void 0 : s.top, T = this.widthByKey[this.rowKeyOf(e, t)],
|
|
3832
|
-
let D = l, N = l,
|
|
3833
|
-
return i ? (k && (N = _), (w || !s) && (
|
|
3831
|
+
const n = e.items, r = (Q = n[t]) == null ? void 0 : Q.kind, a = (se = n[t - 1]) == null ? void 0 : se.kind, s = (re = n[t + 1]) == null ? void 0 : re.kind, i = e.role === "user", l = 14, _ = 4, k = a == null ? void 0 : a.bottom, w = s == null ? void 0 : s.top, T = this.widthByKey[this.rowKeyOf(e, t)], E = this.widthByKey[this.rowKeyOf(e, t - 1)], A = this.widthByKey[this.rowKeyOf(e, t + 1)], q = 0.5, M = (W, ie, X) => W != null && T != null ? W + q >= T : ie === X || ie === "card" && X === "bubble";
|
|
3832
|
+
let D = l, N = l, L = l, K = l;
|
|
3833
|
+
return i ? (k && (N = _), (w || !s) && (L = _), k && M(E, k, r == null ? void 0 : r.top) && (D = _), w && M(A, w, r == null ? void 0 : r.bottom) && (K = _)) : (k && (D = _), (w || !s) && (K = _), k && M(E, k, r == null ? void 0 : r.top) && (N = _), w && M(A, w, r == null ? void 0 : r.bottom) && (L = _)), { tl: D, tr: N, br: L, bl: K };
|
|
3834
3834
|
},
|
|
3835
3835
|
// Inline column-count for the mosaic grid, capped at 4. Single
|
|
3836
3836
|
// attachment falls back to the vertical-list layout (null). Two
|
|
@@ -3840,27 +3840,21 @@ const Ir = {
|
|
|
3840
3840
|
mosaicGridStyle(e) {
|
|
3841
3841
|
return !e || e < 2 ? null : { "grid-template-columns": `repeat(${Math.min(e, 4)}, 1fr)` };
|
|
3842
3842
|
},
|
|
3843
|
-
// Per-cell corner radius for a mosaic tile.
|
|
3844
|
-
//
|
|
3845
|
-
//
|
|
3846
|
-
//
|
|
3847
|
-
//
|
|
3848
|
-
//
|
|
3849
|
-
//
|
|
3850
|
-
//
|
|
3851
|
-
//
|
|
3852
|
-
//
|
|
3843
|
+
// Per-cell corner radius for a mosaic tile. Only the INNER
|
|
3844
|
+
// corners (where two tiles meet) are emitted — they flatten
|
|
3845
|
+
// to 0. The OUTER corners (cell sitting on the grid edge)
|
|
3846
|
+
// are left unset, so the cell falls through to the
|
|
3847
|
+
// cluster-level `--wm-r-*` vars set on `.wm-list__row` by
|
|
3848
|
+
// `cornersStyle`. That way a corner image on the bubble
|
|
3849
|
+
// boundary follows the exact same smart-corner calculation
|
|
3850
|
+
// as a text bubble would. `mixed` flags that a text bubble
|
|
3851
|
+
// sits above the mosaic — in that case the top edge of the
|
|
3852
|
+
// grid is connected to the bubble's flat bottom, so the top
|
|
3853
|
+
// corners of every top-row cell flatten too.
|
|
3853
3854
|
mosaicCornerStyle(e, t, n) {
|
|
3854
3855
|
if (!t || t < 2) return null;
|
|
3855
|
-
const r = Math.min(t, 4), a = Math.floor(e / r), s = e % r, i = s > 0, l = s < r - 1 && e + 1 < t, _ = a > 0, k = e + r < t, w =
|
|
3856
|
-
|
|
3857
|
-
const q = !i && !k ? T : w, M = !l && !k ? T : w;
|
|
3858
|
-
return n && !_ && (L = w, A = w), {
|
|
3859
|
-
"--wm-r-tl": `${L}px`,
|
|
3860
|
-
"--wm-r-tr": `${A}px`,
|
|
3861
|
-
"--wm-r-br": `${M}px`,
|
|
3862
|
-
"--wm-r-bl": `${q}px`
|
|
3863
|
-
};
|
|
3856
|
+
const r = Math.min(t, 4), a = Math.floor(e / r), s = e % r, i = s > 0, l = s < r - 1 && e + 1 < t, _ = a > 0, k = e + r < t, w = "4px", T = {};
|
|
3857
|
+
return (i || _) && (T["--wm-r-tl"] = w), (l || _) && (T["--wm-r-tr"] = w), (i || k) && (T["--wm-r-bl"] = w), (l || k) && (T["--wm-r-br"] = w), n && (T["--wm-r-tl"] = w, T["--wm-r-tr"] = w), Object.keys(T).length ? T : null;
|
|
3864
3858
|
},
|
|
3865
3859
|
// Inline style emitting the four corner CSS variables. Set on
|
|
3866
3860
|
// `.wm-list__row` so they cascade to Bubble/ActionResult/
|
|
@@ -4024,10 +4018,10 @@ const Ir = {
|
|
|
4024
4018
|
}, Hr = { class: "wm-list__sep-label" }, zr = {
|
|
4025
4019
|
key: 0,
|
|
4026
4020
|
class: "wm-list__sep wm-list__sep--unread"
|
|
4027
|
-
}, qr = { class: "wm-list__sep-label wm-list__sep-label--unread" },
|
|
4021
|
+
}, qr = { class: "wm-list__sep-label wm-list__sep-label--unread" }, Vr = {
|
|
4028
4022
|
key: 0,
|
|
4029
4023
|
class: "wm-list__sysep"
|
|
4030
|
-
},
|
|
4024
|
+
}, $r = { class: "wm-list__sysep-label" }, Kr = ["data-row-key", "onPointerdown"], Wr = {
|
|
4031
4025
|
key: 0,
|
|
4032
4026
|
class: "wm-list__avatarSlot"
|
|
4033
4027
|
}, Gr = { key: 0 }, Yr = {
|
|
@@ -4041,7 +4035,7 @@ const Ir = {
|
|
|
4041
4035
|
class: "wm-list__row wm-list__row--ai fade-up"
|
|
4042
4036
|
}, ti = { class: "wm-list__avatarSlot" }, ni = ["aria-label", "title"];
|
|
4043
4037
|
function si(e, t, n, r, a, s) {
|
|
4044
|
-
const i = B("AIAvatar"), l = B("HumanAvatar"), _ = B("ActionResult"), k = B("ArtifactRenderer"), w = B("Bubble"), T = B("AttachmentPreview"),
|
|
4038
|
+
const i = B("AIAvatar"), l = B("HumanAvatar"), _ = B("ActionResult"), k = B("ArtifactRenderer"), w = B("Bubble"), T = B("AttachmentPreview"), E = B("Typing");
|
|
4045
4039
|
return c(), d("div", Ur, [
|
|
4046
4040
|
o("div", {
|
|
4047
4041
|
ref: "scrollEl",
|
|
@@ -4060,7 +4054,7 @@ function si(e, t, n, r, a, s) {
|
|
|
4060
4054
|
o("span", Hr, v(n.dateLabel), 1),
|
|
4061
4055
|
t[8] || (t[8] = o("div", { class: "wm-list__line" }, null, -1))
|
|
4062
4056
|
])) : b("", !0),
|
|
4063
|
-
(c(!0), d(
|
|
4057
|
+
(c(!0), d(I, null, F(s.groups, (A, q) => (c(), d(I, {
|
|
4064
4058
|
key: A.key
|
|
4065
4059
|
}, [
|
|
4066
4060
|
A.key === s.unreadGroupKey ? (c(), d("div", zr, [
|
|
@@ -4072,12 +4066,12 @@ function si(e, t, n, r, a, s) {
|
|
|
4072
4066
|
key: 1,
|
|
4073
4067
|
class: R(["wm-list__group", "wm-list__group--" + A.role])
|
|
4074
4068
|
}, [
|
|
4075
|
-
A.role === "system" ? (c(), d("div",
|
|
4069
|
+
A.role === "system" ? (c(), d("div", Vr, [
|
|
4076
4070
|
t[11] || (t[11] = o("div", { class: "wm-list__line wm-list__line--strong" }, null, -1)),
|
|
4077
|
-
o("span",
|
|
4071
|
+
o("span", $r, v(A.systemLabel), 1),
|
|
4078
4072
|
t[12] || (t[12] = o("div", { class: "wm-list__line wm-list__line--strong" }, null, -1))
|
|
4079
|
-
])) : (c(), d(
|
|
4080
|
-
(c(!0), d(
|
|
4073
|
+
])) : (c(), d(I, { key: 1 }, [
|
|
4074
|
+
(c(!0), d(I, null, F(A.items, (M, D) => (c(), d(I, {
|
|
4081
4075
|
key: `${s.messageKey(M.message)}-${M.partKey}`
|
|
4082
4076
|
}, [
|
|
4083
4077
|
o("div", {
|
|
@@ -4098,7 +4092,7 @@ function si(e, t, n, r, a, s) {
|
|
|
4098
4092
|
}, ["prevent"]))
|
|
4099
4093
|
}, [
|
|
4100
4094
|
A.role !== "user" ? (c(), d("div", Wr, [
|
|
4101
|
-
D === A.items.length - 1 ? (c(), d(
|
|
4095
|
+
D === A.items.length - 1 ? (c(), d(I, { key: 0 }, [
|
|
4102
4096
|
A.role === "ai" ? (c(), U(i, {
|
|
4103
4097
|
key: 0,
|
|
4104
4098
|
size: 26,
|
|
@@ -4153,14 +4147,14 @@ function si(e, t, n, r, a, s) {
|
|
|
4153
4147
|
)
|
|
4154
4148
|
)
|
|
4155
4149
|
}, [
|
|
4156
|
-
(c(!0), d(
|
|
4150
|
+
(c(!0), d(I, null, F(s.attachmentsOf(
|
|
4157
4151
|
M.message
|
|
4158
|
-
), (N,
|
|
4159
|
-
key: `${s.messageKey(M.message)}-att-${
|
|
4152
|
+
), (N, L) => (c(), U(T, {
|
|
4153
|
+
key: `${s.messageKey(M.message)}-att-${L}`,
|
|
4160
4154
|
attachment: N,
|
|
4161
4155
|
style: z(
|
|
4162
4156
|
s.mosaicCornerStyle(
|
|
4163
|
-
|
|
4157
|
+
L,
|
|
4164
4158
|
s.attachmentsOf(M.message).length,
|
|
4165
4159
|
!!M.message.text_md
|
|
4166
4160
|
)
|
|
@@ -4191,17 +4185,17 @@ function si(e, t, n, r, a, s) {
|
|
|
4191
4185
|
], 64))), 128)),
|
|
4192
4186
|
n.streamingActive ? (c(), d("div", ei, [
|
|
4193
4187
|
o("div", ti, [
|
|
4194
|
-
|
|
4188
|
+
$(i, {
|
|
4195
4189
|
size: 26,
|
|
4196
4190
|
tail: !0,
|
|
4197
4191
|
name: n.aiAgentName,
|
|
4198
4192
|
"image-url": n.aiAgentAvatarUrl
|
|
4199
4193
|
}, null, 8, ["name", "image-url"])
|
|
4200
4194
|
]),
|
|
4201
|
-
|
|
4195
|
+
$(E)
|
|
4202
4196
|
])) : b("", !0)
|
|
4203
4197
|
], 34),
|
|
4204
|
-
|
|
4198
|
+
$(Ne, { name: "wm-scrollDown" }, {
|
|
4205
4199
|
default: Fe(() => [
|
|
4206
4200
|
a.showScrollDown ? (c(), d("button", {
|
|
4207
4201
|
key: 0,
|
|
@@ -4230,7 +4224,7 @@ function si(e, t, n, r, a, s) {
|
|
|
4230
4224
|
})
|
|
4231
4225
|
]);
|
|
4232
4226
|
}
|
|
4233
|
-
const ri = /* @__PURE__ */ P(Pr, [["render", si], ["__scopeId", "data-v-
|
|
4227
|
+
const ri = /* @__PURE__ */ P(Pr, [["render", si], ["__scopeId", "data-v-b3803a01"]]), pe = typeof navigator < "u" && !!navigator.mediaDevices && typeof navigator.mediaDevices.getDisplayMedia == "function", Oe = typeof window < "u" && typeof window.MediaRecorder < "u";
|
|
4234
4228
|
function ii() {
|
|
4235
4229
|
return Oe && [
|
|
4236
4230
|
"video/webm;codecs=vp9,opus",
|
|
@@ -4242,7 +4236,7 @@ function ii() {
|
|
|
4242
4236
|
return (r = (n = window.MediaRecorder).isTypeSupported) == null ? void 0 : r.call(n, t);
|
|
4243
4237
|
}) || "";
|
|
4244
4238
|
}
|
|
4245
|
-
function
|
|
4239
|
+
function Ve({ audio: e }) {
|
|
4246
4240
|
return {
|
|
4247
4241
|
video: !0,
|
|
4248
4242
|
audio: !!e,
|
|
@@ -4259,7 +4253,7 @@ async function ai() {
|
|
|
4259
4253
|
let e;
|
|
4260
4254
|
try {
|
|
4261
4255
|
e = await navigator.mediaDevices.getDisplayMedia(
|
|
4262
|
-
|
|
4256
|
+
Ve({ audio: !1 })
|
|
4263
4257
|
);
|
|
4264
4258
|
} catch (t) {
|
|
4265
4259
|
return (t == null ? void 0 : t.name) !== "NotAllowedError" && console.error("[media] screenshot picker", t), null;
|
|
@@ -4293,7 +4287,7 @@ async function li(e = {}) {
|
|
|
4293
4287
|
let t;
|
|
4294
4288
|
try {
|
|
4295
4289
|
t = await navigator.mediaDevices.getDisplayMedia(
|
|
4296
|
-
|
|
4290
|
+
Ve({ audio: !0 })
|
|
4297
4291
|
);
|
|
4298
4292
|
} catch (w) {
|
|
4299
4293
|
return (w == null ? void 0 : w.name) !== "NotAllowedError" && console.error("[media] record picker", w), null;
|
|
@@ -4313,11 +4307,11 @@ async function li(e = {}) {
|
|
|
4313
4307
|
w.data && w.data.size > 0 && a.push(w.data);
|
|
4314
4308
|
}), r.addEventListener("stop", () => {
|
|
4315
4309
|
var w, T;
|
|
4316
|
-
if (s && clearInterval(s), t.getTracks().forEach((
|
|
4317
|
-
|
|
4310
|
+
if (s && clearInterval(s), t.getTracks().forEach((E) => {
|
|
4311
|
+
E.stop();
|
|
4318
4312
|
}), a.length) {
|
|
4319
|
-
const
|
|
4320
|
-
type:
|
|
4313
|
+
const E = r.mimeType || n || "video/webm", A = new Blob(a, { type: E }), q = /mp4/.test(E) ? "mp4" : "webm", M = (/* @__PURE__ */ new Date()).toISOString().replace(/[:.]/g, "-").slice(0, 19), D = new File([A], `ecran-${M}.${q}`, {
|
|
4314
|
+
type: E
|
|
4321
4315
|
});
|
|
4322
4316
|
(w = e.onfinalize) == null || w.call(e, D);
|
|
4323
4317
|
} else
|
|
@@ -4571,7 +4565,7 @@ function ki(e, t, n, r, a, s) {
|
|
|
4571
4565
|
onClick: t[2] || (t[2] = (i) => a.attachOpen = !1)
|
|
4572
4566
|
})) : b("", !0),
|
|
4573
4567
|
a.attachOpen ? (c(), d("div", mi, [
|
|
4574
|
-
(c(!0), d(
|
|
4568
|
+
(c(!0), d(I, null, F(s.attachItems, (i) => (c(), d("button", {
|
|
4575
4569
|
key: i.action,
|
|
4576
4570
|
type: "button",
|
|
4577
4571
|
class: "wm-compose__menuItem",
|
|
@@ -4675,7 +4669,7 @@ function Mi(e, t, n, r, a, s) {
|
|
|
4675
4669
|
key: s.batchKey,
|
|
4676
4670
|
class: "wm-chips"
|
|
4677
4671
|
}, [
|
|
4678
|
-
(c(!0), d(
|
|
4672
|
+
(c(!0), d(I, null, F(n.items, (i, l) => (c(), d("button", {
|
|
4679
4673
|
key: l,
|
|
4680
4674
|
type: "button",
|
|
4681
4675
|
class: "wm-chip",
|
|
@@ -4737,7 +4731,7 @@ function Ui(e, t, n, r, a, s) {
|
|
|
4737
4731
|
return c(), d("div", Oi, [
|
|
4738
4732
|
o("div", Ri, [
|
|
4739
4733
|
o("div", Li, [
|
|
4740
|
-
|
|
4734
|
+
$(i, {
|
|
4741
4735
|
size: 24,
|
|
4742
4736
|
name: n.agentName,
|
|
4743
4737
|
"image-url": n.agentAvatarUrl
|
|
@@ -4857,7 +4851,7 @@ const Ni = /* @__PURE__ */ new Set([
|
|
|
4857
4851
|
}
|
|
4858
4852
|
}
|
|
4859
4853
|
}
|
|
4860
|
-
}, ji = { class: "wm-form" }, Hi = { class: "wm-form__head" }, zi = { class: "wm-form__icon" }, qi = { class: "wm-form__main" },
|
|
4854
|
+
}, ji = { class: "wm-form" }, Hi = { class: "wm-form__head" }, zi = { class: "wm-form__icon" }, qi = { class: "wm-form__main" }, Vi = { class: "wm-form__title" }, $i = {
|
|
4861
4855
|
key: 0,
|
|
4862
4856
|
class: "wm-form__detail"
|
|
4863
4857
|
}, Ki = ["for"], Wi = {
|
|
@@ -4889,22 +4883,22 @@ function ca(e, t, n, r, a, s) {
|
|
|
4889
4883
|
return c(), d("div", ji, [
|
|
4890
4884
|
o("div", Hi, [
|
|
4891
4885
|
o("div", zi, [
|
|
4892
|
-
|
|
4886
|
+
$(i, {
|
|
4893
4887
|
size: 24,
|
|
4894
4888
|
name: n.agentName,
|
|
4895
4889
|
"image-url": n.agentAvatarUrl
|
|
4896
4890
|
}, null, 8, ["name", "image-url"])
|
|
4897
4891
|
]),
|
|
4898
4892
|
o("div", qi, [
|
|
4899
|
-
o("div",
|
|
4900
|
-
n.form.description ? (c(), d("div",
|
|
4893
|
+
o("div", Vi, v(n.form.title || s.t("form.title")), 1),
|
|
4894
|
+
n.form.description ? (c(), d("div", $i, v(n.form.description), 1)) : b("", !0)
|
|
4901
4895
|
])
|
|
4902
4896
|
]),
|
|
4903
4897
|
o("form", {
|
|
4904
4898
|
class: "wm-form__body",
|
|
4905
4899
|
onSubmit: t[0] || (t[0] = J((...l) => s.onSubmit && s.onSubmit(...l), ["prevent"]))
|
|
4906
4900
|
}, [
|
|
4907
|
-
(c(!0), d(
|
|
4901
|
+
(c(!0), d(I, null, F(s.normalizedFields, (l) => (c(), d("div", {
|
|
4908
4902
|
key: l.key,
|
|
4909
4903
|
class: "wm-form__field"
|
|
4910
4904
|
}, [
|
|
@@ -4982,14 +4976,14 @@ function ca(e, t, n, r, a, s) {
|
|
|
4982
4976
|
disabled: n.readOnly || a.busy
|
|
4983
4977
|
}, [
|
|
4984
4978
|
o("option", ta, v(l.placeholder || s.t("form.choose")), 1),
|
|
4985
|
-
(c(!0), d(
|
|
4979
|
+
(c(!0), d(I, null, F(l.options, (_) => (c(), d("option", {
|
|
4986
4980
|
key: _.value,
|
|
4987
4981
|
value: _.value
|
|
4988
4982
|
}, v(_.label), 9, na))), 128))
|
|
4989
4983
|
], 8, ea)), [
|
|
4990
4984
|
[Ge, a.values[l.key]]
|
|
4991
4985
|
]) : l.type === "multiselect" ? (c(), d("div", sa, [
|
|
4992
|
-
(c(!0), d(
|
|
4986
|
+
(c(!0), d(I, null, F(l.options, (_) => (c(), d("label", {
|
|
4993
4987
|
key: _.value,
|
|
4994
4988
|
class: "wm-form__multiItem"
|
|
4995
4989
|
}, [
|
|
@@ -5079,11 +5073,11 @@ function Ca(e, t, n, r, a, s) {
|
|
|
5079
5073
|
], -1)),
|
|
5080
5074
|
o("div", ba, v(s.t("feedback.doneTitle")), 1),
|
|
5081
5075
|
o("div", ka, v(s.t("feedback.doneSubtitle")), 1)
|
|
5082
|
-
])) : (c(), d(
|
|
5076
|
+
])) : (c(), d(I, { key: 0 }, [
|
|
5083
5077
|
o("div", ma, v(s.t("feedback.question")), 1),
|
|
5084
5078
|
o("div", fa, v(s.t("feedback.subtitle")), 1),
|
|
5085
5079
|
o("div", _a, [
|
|
5086
|
-
(c(!0), d(
|
|
5080
|
+
(c(!0), d(I, null, F(s.options, (i) => (c(), d("button", {
|
|
5087
5081
|
key: i.v,
|
|
5088
5082
|
type: "button",
|
|
5089
5083
|
class: R(["wm-fb__opt", { "is-selected": a.sel === i.v }]),
|
|
@@ -5333,7 +5327,7 @@ const Na = /* @__PURE__ */ P(Sa, [["render", Da], ["__scopeId", "data-v-4cf6d578
|
|
|
5333
5327
|
class: "wm-dialog__card",
|
|
5334
5328
|
role: "dialog",
|
|
5335
5329
|
"aria-modal": "true"
|
|
5336
|
-
}, za = { class: "wm-dialog__head" }, qa = { class: "wm-dialog__title" },
|
|
5330
|
+
}, za = { class: "wm-dialog__head" }, qa = { class: "wm-dialog__title" }, Va = ["aria-label"], $a = { class: "wm-dialog__body" }, Ka = ["placeholder"], Wa = { class: "wm-dialog__actions" }, Ga = ["disabled"];
|
|
5337
5331
|
function Ya(e, t, n, r, a, s) {
|
|
5338
5332
|
return c(), d("div", ja, [
|
|
5339
5333
|
o("div", {
|
|
@@ -5362,9 +5356,9 @@ function Ya(e, t, n, r, a, s) {
|
|
|
5362
5356
|
}, [
|
|
5363
5357
|
o("path", { d: "M18 6L6 18M6 6l12 12" })
|
|
5364
5358
|
], -1)
|
|
5365
|
-
])], 8,
|
|
5359
|
+
])], 8, Va)
|
|
5366
5360
|
]),
|
|
5367
|
-
o("div",
|
|
5361
|
+
o("div", $a, [
|
|
5368
5362
|
G(o("input", {
|
|
5369
5363
|
ref: "input",
|
|
5370
5364
|
"onUpdate:modelValue": t[2] || (t[2] = (i) => a.value = i),
|
|
@@ -5625,9 +5619,9 @@ const Ja = /* @__PURE__ */ P(Fa, [["render", Ya], ["__scopeId", "data-v-6d5f94a8
|
|
|
5625
5619
|
const T = a[w];
|
|
5626
5620
|
if (!T) continue;
|
|
5627
5621
|
if (((k = T.author) == null ? void 0 : k.type) === "user") break;
|
|
5628
|
-
const
|
|
5629
|
-
if (
|
|
5630
|
-
if (s != null &&
|
|
5622
|
+
const E = Y(T.id);
|
|
5623
|
+
if (E != null) {
|
|
5624
|
+
if (s != null && E <= s) break;
|
|
5631
5625
|
t[T.id] !== 0 && (!l && T.author && (l = T.author), i++);
|
|
5632
5626
|
}
|
|
5633
5627
|
}
|
|
@@ -6238,13 +6232,13 @@ const Ja = /* @__PURE__ */ P(Fa, [["render", Ya], ["__scopeId", "data-v-6d5f94a8
|
|
|
6238
6232
|
this.launcherHovered = e, this.sendCurrentLauncherSize();
|
|
6239
6233
|
},
|
|
6240
6234
|
sendCurrentLauncherSize() {
|
|
6241
|
-
var w, T,
|
|
6235
|
+
var w, T, E, A, q, M, D;
|
|
6242
6236
|
if (this.isOpen) return;
|
|
6243
6237
|
const e = (T = (w = this.$el) == null ? void 0 : w.querySelector) == null ? void 0 : T.call(w, ".wm-launcherWrap");
|
|
6244
6238
|
if (!e) return;
|
|
6245
6239
|
const t = e.getBoundingClientRect();
|
|
6246
6240
|
if (!t.width || !t.height) return;
|
|
6247
|
-
const n = (((
|
|
6241
|
+
const n = (((E = this.launcherPeeks) == null ? void 0 : E.length) ?? 0) > 0, r = 16, a = Math.ceil(t.width), s = Math.ceil(t.height), i = (q = (A = this.$el) == null ? void 0 : A.querySelector) == null ? void 0 : q.call(A, ".wm-launcher"), l = (D = (M = this.$el) == null ? void 0 : M.querySelectorAll) == null ? void 0 : D.call(M, ".wm-peek"), _ = l && l.length ? l[l.length - 1] : null;
|
|
6248
6242
|
let k = null;
|
|
6249
6243
|
if (_) {
|
|
6250
6244
|
const N = _.getBoundingClientRect();
|
|
@@ -6641,7 +6635,7 @@ const Ja = /* @__PURE__ */ P(Fa, [["render", Ya], ["__scopeId", "data-v-6d5f94a8
|
|
|
6641
6635
|
class: "wm-attached__fileSize"
|
|
6642
6636
|
}, _o = ["aria-label", "onClick"];
|
|
6643
6637
|
function go(e, t, n, r, a, s) {
|
|
6644
|
-
const i = B("Launcher"), l = B("Header"), _ = B("History"), k = B("Onboarding"), w = B("MessageList"), T = B("ApprovalCard"),
|
|
6638
|
+
const i = B("Launcher"), l = B("Header"), _ = B("History"), k = B("Onboarding"), w = B("MessageList"), T = B("ApprovalCard"), E = B("FormCard"), A = B("Feedback"), q = B("SuggestionChips"), M = B("Composer"), D = B("MoreMenu"), N = B("RenameDialog");
|
|
6645
6639
|
return c(), d("div", {
|
|
6646
6640
|
class: R(["wm-root", `wm-root--${n.displayMode}`]),
|
|
6647
6641
|
style: z(s.rootStyle)
|
|
@@ -6664,7 +6658,7 @@ function go(e, t, n, r, a, s) {
|
|
|
6664
6658
|
style: z(a.floatHeight ? { "--wm-float-h": a.floatHeight + "px" } : null),
|
|
6665
6659
|
role: "dialog",
|
|
6666
6660
|
"aria-label": "Messenger",
|
|
6667
|
-
onClick: t[6] || (t[6] = (...
|
|
6661
|
+
onClick: t[6] || (t[6] = (...L) => s.onPanelClick && s.onPanelClick(...L))
|
|
6668
6662
|
}, [
|
|
6669
6663
|
!s.ready && !s.error ? (c(), d("div", Qa, [
|
|
6670
6664
|
s.isEmbedded ? b("", !0) : (c(), d("button", {
|
|
@@ -6672,7 +6666,7 @@ function go(e, t, n, r, a, s) {
|
|
|
6672
6666
|
type: "button",
|
|
6673
6667
|
class: "wm-loading__close",
|
|
6674
6668
|
"aria-label": s.t("loading.minimize"),
|
|
6675
|
-
onClick: t[0] || (t[0] = (...
|
|
6669
|
+
onClick: t[0] || (t[0] = (...L) => s.close && s.close(...L))
|
|
6676
6670
|
}, [...t[7] || (t[7] = [
|
|
6677
6671
|
o("svg", {
|
|
6678
6672
|
width: "13",
|
|
@@ -6692,8 +6686,8 @@ function go(e, t, n, r, a, s) {
|
|
|
6692
6686
|
class: "wm-loading__spinner",
|
|
6693
6687
|
"aria-hidden": "true"
|
|
6694
6688
|
}, null, -1))
|
|
6695
|
-
])) : (c(), d(
|
|
6696
|
-
|
|
6689
|
+
])) : (c(), d(I, { key: 1 }, [
|
|
6690
|
+
$(l, {
|
|
6697
6691
|
title: s.headerTitle,
|
|
6698
6692
|
"team-members": s.teamMembers,
|
|
6699
6693
|
"response-label": s.responseLabel,
|
|
@@ -6733,8 +6727,8 @@ function go(e, t, n, r, a, s) {
|
|
|
6733
6727
|
key: 1,
|
|
6734
6728
|
threads: s.openThreads,
|
|
6735
6729
|
onResume: s.onDrawerPick
|
|
6736
|
-
}, null, 8, ["threads", "onResume"])) : s.currentConv ? (c(), d(
|
|
6737
|
-
|
|
6730
|
+
}, null, 8, ["threads", "onResume"])) : s.currentConv ? (c(), d(I, { key: 3 }, [
|
|
6731
|
+
$(w, {
|
|
6738
6732
|
ref: "messageList",
|
|
6739
6733
|
messages: s.displayedMessages,
|
|
6740
6734
|
"streaming-active": s.streamingActive,
|
|
@@ -6758,7 +6752,7 @@ function go(e, t, n, r, a, s) {
|
|
|
6758
6752
|
"agent-name": s.agentName,
|
|
6759
6753
|
"agent-avatar-url": s.agentAvatarUrl,
|
|
6760
6754
|
onCallback: s.onApprovalCallback
|
|
6761
|
-
}, null, 8, ["action", "detail", "callbacks", "agent-name", "agent-avatar-url", "onCallback"])) : s.pendingForm ? (c(), U(
|
|
6755
|
+
}, null, 8, ["action", "detail", "callbacks", "agent-name", "agent-avatar-url", "onCallback"])) : s.pendingForm ? (c(), U(E, {
|
|
6762
6756
|
key: s.pendingForm.message && s.pendingForm.message.id,
|
|
6763
6757
|
form: s.pendingForm.form,
|
|
6764
6758
|
"agent-name": s.agentName,
|
|
@@ -6785,15 +6779,15 @@ function go(e, t, n, r, a, s) {
|
|
|
6785
6779
|
})), 1)
|
|
6786
6780
|
])) : b("", !0),
|
|
6787
6781
|
a.pendingAttachments.length ? (c(), d("div", lo, [
|
|
6788
|
-
(c(!0), d(
|
|
6789
|
-
key:
|
|
6782
|
+
(c(!0), d(I, null, F(a.pendingAttachments, (L, K) => (c(), d("div", {
|
|
6783
|
+
key: L.path || K,
|
|
6790
6784
|
class: "wm-attached__item"
|
|
6791
6785
|
}, [
|
|
6792
|
-
|
|
6786
|
+
L.previewUrl ? (c(), d("img", {
|
|
6793
6787
|
key: 0,
|
|
6794
6788
|
class: "wm-attached__thumb",
|
|
6795
|
-
src:
|
|
6796
|
-
alt:
|
|
6789
|
+
src: L.previewUrl,
|
|
6790
|
+
alt: L.name
|
|
6797
6791
|
}, null, 8, co)) : (c(), d("div", uo, [
|
|
6798
6792
|
t[11] || (t[11] = o("span", { class: "wm-attached__fileIcon" }, [
|
|
6799
6793
|
o("svg", {
|
|
@@ -6812,9 +6806,9 @@ function go(e, t, n, r, a, s) {
|
|
|
6812
6806
|
])
|
|
6813
6807
|
], -1)),
|
|
6814
6808
|
o("span", ho, [
|
|
6815
|
-
o("span", mo, v(
|
|
6816
|
-
s.formatAttachmentSize(
|
|
6817
|
-
|
|
6809
|
+
o("span", mo, v(L.name), 1),
|
|
6810
|
+
s.formatAttachmentSize(L.size_bytes) ? (c(), d("span", fo, v(s.formatAttachmentSize(
|
|
6811
|
+
L.size_bytes
|
|
6818
6812
|
)), 1)) : b("", !0)
|
|
6819
6813
|
])
|
|
6820
6814
|
])),
|
|
@@ -6844,7 +6838,7 @@ function go(e, t, n, r, a, s) {
|
|
|
6844
6838
|
key: 3,
|
|
6845
6839
|
ref: "composer",
|
|
6846
6840
|
modelValue: a.draft,
|
|
6847
|
-
"onUpdate:modelValue": t[2] || (t[2] = (
|
|
6841
|
+
"onUpdate:modelValue": t[2] || (t[2] = (L) => a.draft = L),
|
|
6848
6842
|
placeholder: s.composerPlaceholder,
|
|
6849
6843
|
disabled: !!s.pendingApproval,
|
|
6850
6844
|
"attach-label": s.t("composer.attachFile"),
|
|
@@ -6860,7 +6854,7 @@ function go(e, t, n, r, a, s) {
|
|
|
6860
6854
|
"sound-enabled": e.soundEnabled,
|
|
6861
6855
|
"status-url": s.statusUrl,
|
|
6862
6856
|
"help-url": s.helpUrl,
|
|
6863
|
-
onClose: t[3] || (t[3] = (
|
|
6857
|
+
onClose: t[3] || (t[3] = (L) => a.moreOpen = !1),
|
|
6864
6858
|
onSoundToggle: e.onSoundToggle,
|
|
6865
6859
|
onAction: s.onMoreAction
|
|
6866
6860
|
}, null, 8, ["can-rename", "can-export", "sound-enabled", "status-url", "help-url", "onSoundToggle", "onAction"])) : b("", !0),
|
|
@@ -6868,7 +6862,7 @@ function go(e, t, n, r, a, s) {
|
|
|
6868
6862
|
key: 1,
|
|
6869
6863
|
"initial-value": s.currentConv.name || "",
|
|
6870
6864
|
title: s.t("rename.dialogTitle"),
|
|
6871
|
-
onClose: t[4] || (t[4] = (
|
|
6865
|
+
onClose: t[4] || (t[4] = (L) => a.renameDialogOpen = !1),
|
|
6872
6866
|
onSubmit: s.onRenameSubmit
|
|
6873
6867
|
}, null, 8, ["initial-value", "title", "onSubmit"])) : b("", !0)
|
|
6874
6868
|
], 64)) : (c(), U(k, {
|
|
@@ -6883,7 +6877,7 @@ function go(e, t, n, r, a, s) {
|
|
|
6883
6877
|
onStart: s.startConv,
|
|
6884
6878
|
onSelect: s.onQuickLink,
|
|
6885
6879
|
onResume: s.onDrawerPick,
|
|
6886
|
-
onViewHistory: t[1] || (t[1] = (
|
|
6880
|
+
onViewHistory: t[1] || (t[1] = (L) => a.showHistory = !0)
|
|
6887
6881
|
}, null, 8, ["title", "subtitle", "agent-name", "default-icon-url", "quick-links", "open-threads", "busy", "onStart", "onSelect", "onResume"])),
|
|
6888
6882
|
a.moreOpen && !s.currentConv ? (c(), U(D, {
|
|
6889
6883
|
key: 4,
|
|
@@ -6892,7 +6886,7 @@ function go(e, t, n, r, a, s) {
|
|
|
6892
6886
|
"sound-enabled": e.soundEnabled,
|
|
6893
6887
|
"status-url": s.statusUrl,
|
|
6894
6888
|
"help-url": s.helpUrl,
|
|
6895
|
-
onClose: t[5] || (t[5] = (
|
|
6889
|
+
onClose: t[5] || (t[5] = (L) => a.moreOpen = !1),
|
|
6896
6890
|
onSoundToggle: e.onSoundToggle,
|
|
6897
6891
|
onAction: s.onMoreAction
|
|
6898
6892
|
}, null, 8, ["sound-enabled", "status-url", "help-url", "onSoundToggle", "onAction"])) : b("", !0)
|
|
@@ -6900,7 +6894,7 @@ function go(e, t, n, r, a, s) {
|
|
|
6900
6894
|
], 6)) : b("", !0)
|
|
6901
6895
|
], 6);
|
|
6902
6896
|
}
|
|
6903
|
-
const yo = /* @__PURE__ */ P(Xa, [["render", go], ["__scopeId", "data-v-a54649f6"]]), wo = "0.5.
|
|
6897
|
+
const yo = /* @__PURE__ */ P(Xa, [["render", go], ["__scopeId", "data-v-a54649f6"]]), wo = "0.5.70";
|
|
6904
6898
|
export {
|
|
6905
6899
|
oe as AIAvatar,
|
|
6906
6900
|
be as AVATAR_COLORS,
|