@_solaris/messenger-widget 0.4.11 → 0.4.13
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/messenger.cjs +2 -2
- package/dist/messenger.embed.js +30 -30
- package/dist/messenger.js +229 -189
- 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 Fe, openBlock as c, createElementBlock as u, normalizeStyle as z, normalizeClass as x, toDisplayString as v, resolveComponent as L, createVNode as $, Transition as Ue, withCtx as je, Fragment as I, renderList as U, withKeys as ue, withModifiers as X, createElementVNode as o, createCommentVNode as w, createBlock as R, withDirectives as K, vModelText as ee, createTextVNode as ge, resolveDynamicComponent as Pe, renderSlot as De, vModelCheckbox as He, vModelSelect as ze, markRaw as be } from "vue";
|
|
2
2
|
const qe = [
|
|
3
3
|
"connected",
|
|
4
4
|
"message",
|
|
@@ -39,8 +39,8 @@ function We(e) {
|
|
|
39
39
|
_ && _.forEach((y) => {
|
|
40
40
|
try {
|
|
41
41
|
y(f);
|
|
42
|
-
} catch (
|
|
43
|
-
console.error("[transport] listener", d,
|
|
42
|
+
} catch (b) {
|
|
43
|
+
console.error("[transport] listener", d, b);
|
|
44
44
|
}
|
|
45
45
|
});
|
|
46
46
|
}
|
|
@@ -61,10 +61,10 @@ function We(e) {
|
|
|
61
61
|
body: _ !== void 0 ? JSON.stringify(_) : void 0
|
|
62
62
|
});
|
|
63
63
|
if (!y.ok) {
|
|
64
|
-
const
|
|
65
|
-
`HTTP ${y.status} ${d} ${f} :: ${(
|
|
64
|
+
const b = await l(y), S = new Error(
|
|
65
|
+
`HTTP ${y.status} ${d} ${f} :: ${(b == null ? void 0 : b.error) || y.statusText}`
|
|
66
66
|
);
|
|
67
|
-
throw S.status = y.status, S.body =
|
|
67
|
+
throw S.status = y.status, S.body = b, S;
|
|
68
68
|
}
|
|
69
69
|
return y.status === 204 ? null : y.json();
|
|
70
70
|
}
|
|
@@ -77,9 +77,12 @@ function We(e) {
|
|
|
77
77
|
}
|
|
78
78
|
async function p() {
|
|
79
79
|
const [d, f] = await Promise.all([
|
|
80
|
-
// Public
|
|
80
|
+
// Public endpoint, but auth-aware: when the HMAC triplet is
|
|
81
|
+
// present the server resolves {{customer.*}} templates against
|
|
82
|
+
// the authenticated customer's stored values.
|
|
81
83
|
fetch(
|
|
82
|
-
`${t.baseUrl}/widgets/${encodeURIComponent(t.widgetId)}/config
|
|
84
|
+
`${t.baseUrl}/widgets/${encodeURIComponent(t.widgetId)}/config`,
|
|
85
|
+
{ headers: s() }
|
|
83
86
|
).then(async (_) => {
|
|
84
87
|
if (!_.ok) {
|
|
85
88
|
const y = await l(_);
|
|
@@ -170,14 +173,14 @@ function We(e) {
|
|
|
170
173
|
const f = (
|
|
171
174
|
/** @type {File} */
|
|
172
175
|
d.name || "attachment"
|
|
173
|
-
), _ = d.type || "application/octet-stream", y = d.size || 0,
|
|
176
|
+
), _ = d.type || "application/octet-stream", y = d.size || 0, b = (
|
|
174
177
|
/** @type {import('./types.js').AttachmentUploadTicket} */
|
|
175
178
|
await a("POST", "/attachments", {
|
|
176
179
|
mime_type: _,
|
|
177
180
|
size_bytes: y,
|
|
178
181
|
name: f
|
|
179
182
|
})
|
|
180
|
-
), S = await fetch(
|
|
183
|
+
), S = await fetch(b.upload_url, {
|
|
181
184
|
method: "PUT",
|
|
182
185
|
headers: { "Content-Type": _ },
|
|
183
186
|
body: d
|
|
@@ -186,7 +189,7 @@ function We(e) {
|
|
|
186
189
|
throw new Error(`HTTP ${S.status} PUT signed upload`);
|
|
187
190
|
return {
|
|
188
191
|
type: Ye(_),
|
|
189
|
-
path:
|
|
192
|
+
path: b.path,
|
|
190
193
|
mime_type: _,
|
|
191
194
|
size_bytes: y
|
|
192
195
|
};
|
|
@@ -240,8 +243,8 @@ function We(e) {
|
|
|
240
243
|
}
|
|
241
244
|
async function ce() {
|
|
242
245
|
try {
|
|
243
|
-
const d = await T(), f = d.reduce((y,
|
|
244
|
-
const S =
|
|
246
|
+
const d = await T(), f = d.reduce((y, b) => {
|
|
247
|
+
const S = b == null ? void 0 : b.last_message_at;
|
|
245
248
|
return S && (!y || S > y) ? S : y;
|
|
246
249
|
}, null);
|
|
247
250
|
f && (!t.lastActivityAt || f > t.lastActivityAt) && (t.lastActivityAt = f, i("activity", { conversations: d, latestAt: f }), V());
|
|
@@ -276,8 +279,8 @@ function We(e) {
|
|
|
276
279
|
try {
|
|
277
280
|
const f = await T();
|
|
278
281
|
t.lastActivityAt = f.reduce((_, y) => {
|
|
279
|
-
const
|
|
280
|
-
return
|
|
282
|
+
const b = y == null ? void 0 : y.last_message_at;
|
|
283
|
+
return b && (!_ || b > _) ? b : _;
|
|
281
284
|
}, null);
|
|
282
285
|
} catch (f) {
|
|
283
286
|
console.error("[transport] initial /conversations failed", f);
|
|
@@ -337,7 +340,7 @@ function Qe() {
|
|
|
337
340
|
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("");
|
|
338
341
|
}
|
|
339
342
|
function Xe(e) {
|
|
340
|
-
const t =
|
|
343
|
+
const t = Fe({
|
|
341
344
|
ready: !1,
|
|
342
345
|
error: null,
|
|
343
346
|
config: null,
|
|
@@ -460,9 +463,9 @@ function Xe(e) {
|
|
|
460
463
|
const g = await e.listMessages(m, {
|
|
461
464
|
limit: l
|
|
462
465
|
}), d = (g == null ? void 0 : g.messages) ?? [], f = t.messagesByConv[m] || [], _ = /* @__PURE__ */ new Set();
|
|
463
|
-
for (const
|
|
464
|
-
(
|
|
465
|
-
const y = f.filter((
|
|
466
|
+
for (const b of d)
|
|
467
|
+
(b == null ? void 0 : b.id) != null && _.add(`id:${String(b.id)}`), b != null && b.client_msg_id && _.add(`c:${b.client_msg_id}`);
|
|
468
|
+
const y = f.filter((b) => !((b == null ? void 0 : b.id) != null && _.has(`id:${String(b.id)}`) || b != null && b.client_msg_id && _.has(`c:${b.client_msg_id}`)));
|
|
466
469
|
t.messagesByConv[m] = [...d, ...y].sort(
|
|
467
470
|
ce
|
|
468
471
|
), k(m, {
|
|
@@ -490,11 +493,11 @@ function Xe(e) {
|
|
|
490
493
|
const _ = await e.listMessages(m, {
|
|
491
494
|
before: d,
|
|
492
495
|
limit: l
|
|
493
|
-
}), y = (_ == null ? void 0 : _.messages) ?? [],
|
|
494
|
-
for (const O of
|
|
496
|
+
}), y = (_ == null ? void 0 : _.messages) ?? [], b = t.messagesByConv[m] || [], S = /* @__PURE__ */ new Set();
|
|
497
|
+
for (const O of b)
|
|
495
498
|
(O == null ? void 0 : O.id) != null && S.add(`id:${String(O.id)}`), O != null && O.client_msg_id && S.add(`c:${O.client_msg_id}`);
|
|
496
|
-
const
|
|
497
|
-
t.messagesByConv[m] = [...
|
|
499
|
+
const F = y.filter((O) => !((O == null ? void 0 : O.id) != null && S.has(`id:${String(O.id)}`) || O != null && O.client_msg_id && S.has(`c:${O.client_msg_id}`)));
|
|
500
|
+
t.messagesByConv[m] = [...F, ...b], k(m, {
|
|
498
501
|
nextCursor: (_ == null ? void 0 : _.next_cursor) ?? null,
|
|
499
502
|
loading: !1,
|
|
500
503
|
loaded: !0
|
|
@@ -526,12 +529,12 @@ function Xe(e) {
|
|
|
526
529
|
const _ = /* @__PURE__ */ new Set(), y = /* @__PURE__ */ new Set();
|
|
527
530
|
for (const S of h)
|
|
528
531
|
(S == null ? void 0 : S.id) != null && _.add(String(S.id)), S != null && S.client_msg_id && y.add(S.client_msg_id);
|
|
529
|
-
const
|
|
532
|
+
const b = [];
|
|
530
533
|
for (const S of f) {
|
|
531
|
-
const
|
|
532
|
-
Y(m, S),
|
|
534
|
+
const F = (S == null ? void 0 : S.id) != null && _.has(String(S.id)) || (S == null ? void 0 : S.client_msg_id) && y.has(S.client_msg_id);
|
|
535
|
+
Y(m, S), F || b.push(S);
|
|
533
536
|
}
|
|
534
|
-
return
|
|
537
|
+
return b;
|
|
535
538
|
} catch (d) {
|
|
536
539
|
return console.error("[store] fetchSinceLast failed", d), [];
|
|
537
540
|
}
|
|
@@ -549,10 +552,10 @@ function Xe(e) {
|
|
|
549
552
|
}
|
|
550
553
|
}
|
|
551
554
|
async function q(m, h, { attachments: g, metadata: d } = {}) {
|
|
552
|
-
var
|
|
555
|
+
var F;
|
|
553
556
|
const f = (h || "").trim(), _ = Array.isArray(g) && g.length > 0;
|
|
554
557
|
if (!m || !f && !_) return;
|
|
555
|
-
const y = Qe(),
|
|
558
|
+
const y = Qe(), b = se(m), S = {
|
|
556
559
|
id: y,
|
|
557
560
|
client_msg_id: y,
|
|
558
561
|
conversation_id: m,
|
|
@@ -560,9 +563,9 @@ function Xe(e) {
|
|
|
560
563
|
text_md: f,
|
|
561
564
|
author: {
|
|
562
565
|
type: "user",
|
|
563
|
-
id: ((
|
|
566
|
+
id: ((F = t.customer) == null ? void 0 : F.external_id) || null
|
|
564
567
|
},
|
|
565
|
-
created_at:
|
|
568
|
+
created_at: b,
|
|
566
569
|
// Local-only flag — UI may render dimmed until the SSE echo lands.
|
|
567
570
|
_pending: !0,
|
|
568
571
|
..._ ? { payload: { type: "content", attachments: g } } : {},
|
|
@@ -573,7 +576,7 @@ function Xe(e) {
|
|
|
573
576
|
await e.postMessage(m, {
|
|
574
577
|
client_msg_id: y,
|
|
575
578
|
text_md: f,
|
|
576
|
-
created_at:
|
|
579
|
+
created_at: b,
|
|
577
580
|
..._ ? { attachments: g } : {},
|
|
578
581
|
...d && typeof d == "object" ? { metadata: d } : {}
|
|
579
582
|
});
|
|
@@ -640,9 +643,9 @@ function Xe(e) {
|
|
|
640
643
|
const y = h[_];
|
|
641
644
|
if (((g = y == null ? void 0 : y.author) == null ? void 0 : g.type) === "user" || (y == null ? void 0 : y.type) === "action" && ((d = y == null ? void 0 : y.payload) == null ? void 0 : d.state) === "pending")
|
|
642
645
|
return null;
|
|
643
|
-
const
|
|
644
|
-
if (
|
|
645
|
-
return { message: y, form:
|
|
646
|
+
const b = (f = y == null ? void 0 : y.metadata) == null ? void 0 : f.form;
|
|
647
|
+
if (b && Array.isArray(b.fields) && b.fields.length > 0)
|
|
648
|
+
return { message: y, form: b };
|
|
646
649
|
}
|
|
647
650
|
return null;
|
|
648
651
|
}
|
|
@@ -658,21 +661,21 @@ function Xe(e) {
|
|
|
658
661
|
var g, d, f, _;
|
|
659
662
|
const h = t.messagesByConv[m] || [];
|
|
660
663
|
for (let y = h.length - 1; y >= 0; y--) {
|
|
661
|
-
const
|
|
662
|
-
if (((g =
|
|
663
|
-
if ((
|
|
664
|
+
const b = h[y];
|
|
665
|
+
if (((g = b == null ? void 0 : b.author) == null ? void 0 : g.type) === "user") return [];
|
|
666
|
+
if ((b == null ? void 0 : b.type) === "action" && ((d = b == null ? void 0 : b.payload) == null ? void 0 : d.state) === "pending")
|
|
664
667
|
return [];
|
|
665
|
-
if (((f =
|
|
666
|
-
const S = (_ =
|
|
667
|
-
return Array.isArray(S) && S.length ? S.map((
|
|
668
|
-
if (typeof
|
|
669
|
-
const O =
|
|
668
|
+
if (((f = b == null ? void 0 : b.author) == null ? void 0 : f.type) !== "agent_ia") continue;
|
|
669
|
+
const S = (_ = b == null ? void 0 : b.metadata) == null ? void 0 : _.suggested_replies;
|
|
670
|
+
return Array.isArray(S) && S.length ? S.map((F) => {
|
|
671
|
+
if (typeof F == "string") {
|
|
672
|
+
const O = F.trim();
|
|
670
673
|
return O ? { label: O, kind: null } : null;
|
|
671
674
|
}
|
|
672
|
-
if (
|
|
673
|
-
const O =
|
|
675
|
+
if (F && typeof F == "object" && typeof F.label == "string") {
|
|
676
|
+
const O = F.label.trim();
|
|
674
677
|
if (!O) return null;
|
|
675
|
-
const Ne =
|
|
678
|
+
const Ne = F.kind === "cta" || F.kind === "choice" || F.kind === "followup" ? F.kind : null;
|
|
676
679
|
return { label: O, kind: Ne };
|
|
677
680
|
}
|
|
678
681
|
return null;
|
|
@@ -1641,7 +1644,7 @@ const B = (e, t) => {
|
|
|
1641
1644
|
}
|
|
1642
1645
|
}
|
|
1643
1646
|
}, yt = ["src", "alt"];
|
|
1644
|
-
function
|
|
1647
|
+
function wt(e, t, n, i, r, s) {
|
|
1645
1648
|
return c(), u("div", {
|
|
1646
1649
|
class: x(["wm-huav", { "wm-huav--tail": n.tail }]),
|
|
1647
1650
|
style: z({
|
|
@@ -1661,7 +1664,7 @@ function bt(e, t, n, i, r, s) {
|
|
|
1661
1664
|
}, v(s.initials), 5))
|
|
1662
1665
|
], 6);
|
|
1663
1666
|
}
|
|
1664
|
-
const Be = /* @__PURE__ */ B(vt, [["render",
|
|
1667
|
+
const Be = /* @__PURE__ */ B(vt, [["render", wt], ["__scopeId", "data-v-14e10c0d"]]), bt = 3, kt = {
|
|
1665
1668
|
name: "WmLauncher",
|
|
1666
1669
|
components: { HumanAvatar: Be },
|
|
1667
1670
|
inject: {
|
|
@@ -1684,20 +1687,20 @@ const Be = /* @__PURE__ */ B(vt, [["render", bt], ["__scopeId", "data-v-14e10c0d
|
|
|
1684
1687
|
// élément en ordre DOM avec un flex column normal). Les plus
|
|
1685
1688
|
// anciens remontent dans la pile.
|
|
1686
1689
|
visiblePeeks() {
|
|
1687
|
-
return this.peeks.slice(0,
|
|
1690
|
+
return this.peeks.slice(0, bt).reverse();
|
|
1688
1691
|
}
|
|
1689
1692
|
}
|
|
1690
1693
|
}, Ct = { class: "wm-launcherWrap" }, At = ["aria-label", "onClick", "onKeydown"], St = ["aria-label", "onClick"], Mt = { class: "wm-peek__avatar" }, Tt = ["aria-label"], xt = { class: "wm-peek__body" }, Ot = { class: "wm-peek__head" }, It = { class: "wm-peek__name" }, Lt = { class: "wm-peek__action" }, Bt = { class: "wm-peek__text" }, Et = ["onClick"], Rt = ["aria-label"], Nt = ["aria-label"];
|
|
1691
|
-
function
|
|
1694
|
+
function Ft(e, t, n, i, r, s) {
|
|
1692
1695
|
const a = L("HumanAvatar");
|
|
1693
1696
|
return c(), u("div", Ct, [
|
|
1694
|
-
$(
|
|
1697
|
+
$(Ue, { name: "wm-peek" }, {
|
|
1695
1698
|
default: je(() => [
|
|
1696
1699
|
s.visiblePeeks.length ? (c(), u("div", {
|
|
1697
1700
|
key: 0,
|
|
1698
1701
|
class: x(["wm-peekStack", { "wm-peekStack--multi": s.visiblePeeks.length > 1 }])
|
|
1699
1702
|
}, [
|
|
1700
|
-
(c(!0), u(I, null,
|
|
1703
|
+
(c(!0), u(I, null, U(s.visiblePeeks, (l, p) => (c(), u("div", {
|
|
1701
1704
|
key: l.convId,
|
|
1702
1705
|
class: "wm-peek",
|
|
1703
1706
|
style: z({
|
|
@@ -1745,7 +1748,7 @@ function Ut(e, t, n, i, r, s) {
|
|
|
1745
1748
|
key: 0,
|
|
1746
1749
|
class: "wm-peek__avatarBadge",
|
|
1747
1750
|
"aria-label": s.t("launcher.unreadMessages", { count: l.count })
|
|
1748
|
-
}, v(l.count > 9 ? "9+" : l.count), 9, Tt)) :
|
|
1751
|
+
}, v(l.count > 9 ? "9+" : l.count), 9, Tt)) : w("", !0)
|
|
1749
1752
|
]),
|
|
1750
1753
|
o("div", xt, [
|
|
1751
1754
|
o("div", Ot, [
|
|
@@ -1760,7 +1763,7 @@ function Ut(e, t, n, i, r, s) {
|
|
|
1760
1763
|
onClick: X((C) => e.$emit("open", l.convId), ["stop"])
|
|
1761
1764
|
}, v(s.t("common.open")), 9, Et)
|
|
1762
1765
|
], 44, At))), 128))
|
|
1763
|
-
], 2)) :
|
|
1766
|
+
], 2)) : w("", !0)
|
|
1764
1767
|
]),
|
|
1765
1768
|
_: 1
|
|
1766
1769
|
}),
|
|
@@ -1791,11 +1794,11 @@ function Ut(e, t, n, i, r, s) {
|
|
|
1791
1794
|
}) : s.t("launcher.unreadConversationsOne", {
|
|
1792
1795
|
count: n.unreadCount
|
|
1793
1796
|
})
|
|
1794
|
-
}, v(n.unreadCount > 9 ? "9+" : n.unreadCount), 9, Nt)) :
|
|
1797
|
+
}, v(n.unreadCount > 9 ? "9+" : n.unreadCount), 9, Nt)) : w("", !0)
|
|
1795
1798
|
], 8, Rt)
|
|
1796
1799
|
]);
|
|
1797
1800
|
}
|
|
1798
|
-
const
|
|
1801
|
+
const Ut = /* @__PURE__ */ B(kt, [["render", Ft], ["__scopeId", "data-v-5193a529"]]), jt = {
|
|
1799
1802
|
name: "WmAIAvatar",
|
|
1800
1803
|
props: {
|
|
1801
1804
|
size: { type: Number, default: 26 },
|
|
@@ -1837,7 +1840,7 @@ function zt(e, t, n, i, r, s) {
|
|
|
1837
1840
|
"--wm-avr": n.size * 0.32 + "px"
|
|
1838
1841
|
})
|
|
1839
1842
|
}, [
|
|
1840
|
-
n.pulse ? (c(), u("div", Pt)) :
|
|
1843
|
+
n.pulse ? (c(), u("div", Pt)) : w("", !0),
|
|
1841
1844
|
o("div", {
|
|
1842
1845
|
class: x(["wm-aiav__inner", {
|
|
1843
1846
|
"wm-aiav__inner--glow": n.pulse,
|
|
@@ -1921,7 +1924,7 @@ function Gt(e, t, n, i, r, s) {
|
|
|
1921
1924
|
class: "wm-team__stack",
|
|
1922
1925
|
style: z({ width: s.stackWidth + "px" })
|
|
1923
1926
|
}, [
|
|
1924
|
-
(c(!0), u(I, null,
|
|
1927
|
+
(c(!0), u(I, null, U(n.members.slice(0, 3), (a, l) => (c(), u("div", {
|
|
1925
1928
|
key: l,
|
|
1926
1929
|
class: "wm-team__pill",
|
|
1927
1930
|
style: z({
|
|
@@ -1937,8 +1940,8 @@ function Gt(e, t, n, i, r, s) {
|
|
|
1937
1940
|
}, null, 8, Vt)) : (c(), u("span", Kt, v(s.initialsFor(a)), 1))
|
|
1938
1941
|
], 4))), 128))
|
|
1939
1942
|
], 4),
|
|
1940
|
-
n.responseLabel ? (c(), u("span", Wt, v(n.responseLabel), 1)) :
|
|
1941
|
-
])) :
|
|
1943
|
+
n.responseLabel ? (c(), u("span", Wt, v(n.responseLabel), 1)) : w("", !0)
|
|
1944
|
+
])) : w("", !0);
|
|
1942
1945
|
}
|
|
1943
1946
|
const Yt = /* @__PURE__ */ B(qt, [["render", Gt], ["__scopeId", "data-v-e49a9063"]]), Qt = {
|
|
1944
1947
|
name: "WmHeader",
|
|
@@ -2025,7 +2028,7 @@ function ln(e, t, n, i, r, s) {
|
|
|
2025
2028
|
key: 0,
|
|
2026
2029
|
members: s.displayedTeamMembers,
|
|
2027
2030
|
"response-label": ""
|
|
2028
|
-
}, null, 8, ["members"])) :
|
|
2031
|
+
}, null, 8, ["members"])) : w("", !0)
|
|
2029
2032
|
], 64)) : (c(), u("div", sn)),
|
|
2030
2033
|
o("div", rn, [
|
|
2031
2034
|
n.showMore ? (c(), u("button", {
|
|
@@ -2059,7 +2062,7 @@ function ln(e, t, n, i, r, s) {
|
|
|
2059
2062
|
r: "1.6"
|
|
2060
2063
|
})
|
|
2061
2064
|
], -1)
|
|
2062
|
-
])], 10, an)) :
|
|
2065
|
+
])], 10, an)) : w("", !0),
|
|
2063
2066
|
n.showClose ? (c(), u("button", {
|
|
2064
2067
|
key: 1,
|
|
2065
2068
|
type: "button",
|
|
@@ -2081,7 +2084,7 @@ function ln(e, t, n, i, r, s) {
|
|
|
2081
2084
|
}, [
|
|
2082
2085
|
o("path", { d: "M18 6L6 18M6 6l12 12" })
|
|
2083
2086
|
], -1)
|
|
2084
|
-
])], 8, on)) :
|
|
2087
|
+
])], 8, on)) : w("", !0)
|
|
2085
2088
|
])
|
|
2086
2089
|
]);
|
|
2087
2090
|
}
|
|
@@ -2250,10 +2253,10 @@ const Te = {
|
|
|
2250
2253
|
});
|
|
2251
2254
|
}
|
|
2252
2255
|
}
|
|
2253
|
-
}, fn = { class: "wm-onb" }, _n = { class: "wm-onb__hero" }, gn = { class: "wm-onb__title" }, pn = { class: "wm-onb__sub" }, vn = { class: "wm-onb__cta" }, yn = ["disabled"],
|
|
2256
|
+
}, fn = { class: "wm-onb" }, _n = { class: "wm-onb__hero" }, gn = { class: "wm-onb__title" }, pn = { class: "wm-onb__sub" }, vn = { class: "wm-onb__cta" }, yn = ["disabled"], wn = {
|
|
2254
2257
|
key: 0,
|
|
2255
2258
|
class: "wm-onb__section"
|
|
2256
|
-
},
|
|
2259
|
+
}, bn = { class: "wm-onb__section-title" }, kn = ["onClick"], Cn = { class: "wm-onb__card-icon" }, An = {
|
|
2257
2260
|
width: "16",
|
|
2258
2261
|
height: "16",
|
|
2259
2262
|
viewBox: "0 0 24 24",
|
|
@@ -2269,7 +2272,7 @@ const Te = {
|
|
|
2269
2272
|
}, On = {
|
|
2270
2273
|
key: 1,
|
|
2271
2274
|
class: "wm-onb__section"
|
|
2272
|
-
}, In = { class: "wm-onb__section-title" }, Ln = { class: "wm-onb__search" }, Bn = ["placeholder", "aria-label"], En = { class: "wm-onb__list" }, Rn = ["onClick"], Nn = ["aria-label"],
|
|
2275
|
+
}, In = { class: "wm-onb__section-title" }, Ln = { class: "wm-onb__search" }, Bn = ["placeholder", "aria-label"], En = { class: "wm-onb__list" }, Rn = ["onClick"], Nn = ["aria-label"], Fn = { class: "wm-onb__thread-body" }, Un = { class: "wm-onb__thread-title" }, jn = ["innerHTML"], Pn = { class: "wm-onb__thread-meta" }, Dn = {
|
|
2273
2276
|
key: 0,
|
|
2274
2277
|
class: "wm-onb__thread-time"
|
|
2275
2278
|
}, Hn = {
|
|
@@ -2280,9 +2283,42 @@ function zn(e, t, n, i, r, s) {
|
|
|
2280
2283
|
const a = L("AIAvatar");
|
|
2281
2284
|
return c(), u("div", fn, [
|
|
2282
2285
|
o("div", _n, [
|
|
2286
|
+
t[2] || (t[2] = o("svg", {
|
|
2287
|
+
class: "wm-onb__hero-deco",
|
|
2288
|
+
width: "180",
|
|
2289
|
+
height: "180",
|
|
2290
|
+
viewBox: "0 0 180 180",
|
|
2291
|
+
fill: "none",
|
|
2292
|
+
"aria-hidden": "true"
|
|
2293
|
+
}, [
|
|
2294
|
+
o("circle", {
|
|
2295
|
+
cx: "170",
|
|
2296
|
+
cy: "10",
|
|
2297
|
+
r: "105",
|
|
2298
|
+
stroke: "#5B5FEF",
|
|
2299
|
+
"stroke-width": "1",
|
|
2300
|
+
"stroke-dasharray": "1 5",
|
|
2301
|
+
opacity: "0.35"
|
|
2302
|
+
}),
|
|
2303
|
+
o("circle", {
|
|
2304
|
+
cx: "170",
|
|
2305
|
+
cy: "10",
|
|
2306
|
+
r: "72",
|
|
2307
|
+
stroke: "#5B5FEF",
|
|
2308
|
+
"stroke-width": "1",
|
|
2309
|
+
"stroke-dasharray": "1 5",
|
|
2310
|
+
opacity: "0.5"
|
|
2311
|
+
}),
|
|
2312
|
+
o("circle", {
|
|
2313
|
+
cx: "152",
|
|
2314
|
+
cy: "34",
|
|
2315
|
+
r: "2.5",
|
|
2316
|
+
fill: "#5B5FEF",
|
|
2317
|
+
opacity: "0.65"
|
|
2318
|
+
})
|
|
2319
|
+
], -1)),
|
|
2283
2320
|
$(a, {
|
|
2284
|
-
size:
|
|
2285
|
-
pulse: !0,
|
|
2321
|
+
size: 48,
|
|
2286
2322
|
"image-url": n.defaultIconUrl
|
|
2287
2323
|
}, null, 8, ["image-url"]),
|
|
2288
2324
|
o("div", gn, v(s.heroTitle), 1),
|
|
@@ -2295,7 +2331,7 @@ function zn(e, t, n, i, r, s) {
|
|
|
2295
2331
|
disabled: n.busy,
|
|
2296
2332
|
onClick: t[0] || (t[0] = (l) => e.$emit("start"))
|
|
2297
2333
|
}, [
|
|
2298
|
-
t[
|
|
2334
|
+
t[3] || (t[3] = o("span", { class: "wm-onb__startIcon" }, [
|
|
2299
2335
|
o("svg", {
|
|
2300
2336
|
width: "12",
|
|
2301
2337
|
height: "12",
|
|
@@ -2313,12 +2349,12 @@ function zn(e, t, n, i, r, s) {
|
|
|
2313
2349
|
o("span", null, v(n.busy ? "…" : s.t("onboarding.start")), 1)
|
|
2314
2350
|
], 8, yn)
|
|
2315
2351
|
]),
|
|
2316
|
-
n.quickLinks.length ? (c(), u("div",
|
|
2317
|
-
o("div",
|
|
2352
|
+
n.quickLinks.length ? (c(), u("div", wn, [
|
|
2353
|
+
o("div", bn, v(s.t("onboarding.quickAccess")), 1),
|
|
2318
2354
|
o("div", {
|
|
2319
2355
|
class: x(s.quickLinksLayout)
|
|
2320
2356
|
}, [
|
|
2321
|
-
(c(!0), u(I, null,
|
|
2357
|
+
(c(!0), u(I, null, U(n.quickLinks, (l, p) => (c(), u("button", {
|
|
2322
2358
|
key: p,
|
|
2323
2359
|
type: "button",
|
|
2324
2360
|
class: x(["wm-onb__card", { "wm-onb__card--row": s.isOddQuickLinks }]),
|
|
@@ -2333,15 +2369,15 @@ function zn(e, t, n, i, r, s) {
|
|
|
2333
2369
|
]),
|
|
2334
2370
|
o("span", Mn, [
|
|
2335
2371
|
o("span", Tn, v(l.label), 1),
|
|
2336
|
-
l.description ? (c(), u("span", xn, v(l.description), 1)) :
|
|
2372
|
+
l.description ? (c(), u("span", xn, v(l.description), 1)) : w("", !0)
|
|
2337
2373
|
])
|
|
2338
2374
|
], 10, kn))), 128))
|
|
2339
2375
|
], 2)
|
|
2340
|
-
])) :
|
|
2376
|
+
])) : w("", !0),
|
|
2341
2377
|
n.openThreads.length ? (c(), u("div", On, [
|
|
2342
2378
|
o("div", In, v(s.t("onboarding.recentConversations")), 1),
|
|
2343
2379
|
o("div", Ln, [
|
|
2344
|
-
t[
|
|
2380
|
+
t[4] || (t[4] = o("span", { class: "wm-onb__searchIcon" }, [
|
|
2345
2381
|
o("svg", {
|
|
2346
2382
|
width: "12",
|
|
2347
2383
|
height: "12",
|
|
@@ -2366,7 +2402,7 @@ function zn(e, t, n, i, r, s) {
|
|
|
2366
2402
|
])
|
|
2367
2403
|
]),
|
|
2368
2404
|
o("div", En, [
|
|
2369
|
-
(c(!0), u(I, null,
|
|
2405
|
+
(c(!0), u(I, null, U(s.filteredThreads, (l) => (c(), u("button", {
|
|
2370
2406
|
key: l.id,
|
|
2371
2407
|
type: "button",
|
|
2372
2408
|
class: "wm-onb__thread",
|
|
@@ -2375,7 +2411,7 @@ function zn(e, t, n, i, r, s) {
|
|
|
2375
2411
|
o("span", {
|
|
2376
2412
|
class: x(["wm-onb__thread-icon", { "wm-onb__thread-icon--inverted": !l.unread }])
|
|
2377
2413
|
}, [
|
|
2378
|
-
t[
|
|
2414
|
+
t[5] || (t[5] = o("svg", {
|
|
2379
2415
|
width: "18",
|
|
2380
2416
|
height: "18",
|
|
2381
2417
|
viewBox: "0 0 24 24",
|
|
@@ -2392,18 +2428,18 @@ function zn(e, t, n, i, r, s) {
|
|
|
2392
2428
|
key: 0,
|
|
2393
2429
|
class: "wm-onb__thread-dot",
|
|
2394
2430
|
"aria-label": s.t("onboarding.unread")
|
|
2395
|
-
}, null, 8, Nn)) :
|
|
2431
|
+
}, null, 8, Nn)) : w("", !0)
|
|
2396
2432
|
], 2),
|
|
2397
|
-
o("span",
|
|
2398
|
-
o("span",
|
|
2433
|
+
o("span", Fn, [
|
|
2434
|
+
o("span", Un, v(l.title), 1),
|
|
2399
2435
|
o("span", {
|
|
2400
2436
|
class: "wm-onb__thread-preview",
|
|
2401
2437
|
innerHTML: s.renderPreview(l.preview)
|
|
2402
2438
|
}, null, 8, jn)
|
|
2403
2439
|
]),
|
|
2404
2440
|
o("span", Pn, [
|
|
2405
|
-
s.formatTs(l._ts) ? (c(), u("span", Dn, v(s.formatTs(l._ts)), 1)) :
|
|
2406
|
-
t[
|
|
2441
|
+
s.formatTs(l._ts) ? (c(), u("span", Dn, v(s.formatTs(l._ts)), 1)) : w("", !0),
|
|
2442
|
+
t[6] || (t[6] = o("svg", {
|
|
2407
2443
|
width: "14",
|
|
2408
2444
|
height: "14",
|
|
2409
2445
|
viewBox: "0 0 24 24",
|
|
@@ -2419,12 +2455,12 @@ function zn(e, t, n, i, r, s) {
|
|
|
2419
2455
|
], -1))
|
|
2420
2456
|
])
|
|
2421
2457
|
], 8, Rn))), 128)),
|
|
2422
|
-
s.filteredThreads.length ?
|
|
2458
|
+
s.filteredThreads.length ? w("", !0) : (c(), u("div", Hn, v(s.t("onboarding.noResults", { query: r.query })), 1))
|
|
2423
2459
|
])
|
|
2424
|
-
])) :
|
|
2460
|
+
])) : w("", !0)
|
|
2425
2461
|
]);
|
|
2426
2462
|
}
|
|
2427
|
-
const qn = /* @__PURE__ */ B(hn, [["render", zn], ["__scopeId", "data-v-
|
|
2463
|
+
const qn = /* @__PURE__ */ B(hn, [["render", zn], ["__scopeId", "data-v-1f4a35c6"]]);
|
|
2428
2464
|
function $n(e) {
|
|
2429
2465
|
return typeof e != "string" ? "" : e.replace(/`([^`]+)`/g, "$1").replace(/\*\*([^*]+)\*\*/g, "$1").replace(new RegExp("(?<!\\*)\\*([^*]+)\\*(?!\\*)", "g"), "$1").replace(/__([^_]+)__/g, "$1").replace(/\[([^\]]+)\]\([^)]+\)/g, "$1").replace(/\s+/g, " ").trim();
|
|
2430
2466
|
}
|
|
@@ -2525,7 +2561,7 @@ function es(e, t, n, i, r, s) {
|
|
|
2525
2561
|
"aria-hidden": "true"
|
|
2526
2562
|
}, " · ", -1)),
|
|
2527
2563
|
o("span", Zn, v(s.detailText), 1)
|
|
2528
|
-
], 64)) :
|
|
2564
|
+
], 64)) : w("", !0)
|
|
2529
2565
|
])
|
|
2530
2566
|
], 2);
|
|
2531
2567
|
}
|
|
@@ -2568,7 +2604,7 @@ function cs(e, t, n, i, r, s) {
|
|
|
2568
2604
|
])
|
|
2569
2605
|
]),
|
|
2570
2606
|
o("div", os, [
|
|
2571
|
-
(c(!0), u(I, null,
|
|
2607
|
+
(c(!0), u(I, null, U(s.fields, (a, l) => (c(), u("div", {
|
|
2572
2608
|
key: l,
|
|
2573
2609
|
class: "wm-art__field"
|
|
2574
2610
|
}, [
|
|
@@ -2607,10 +2643,10 @@ const ds = /* @__PURE__ */ B(ns, [["render", cs], ["__scopeId", "data-v-713aecf1
|
|
|
2607
2643
|
}, ys = {
|
|
2608
2644
|
key: 1,
|
|
2609
2645
|
class: "wm-art__body"
|
|
2610
|
-
},
|
|
2646
|
+
}, ws = {
|
|
2611
2647
|
key: 0,
|
|
2612
2648
|
class: "wm-art__text"
|
|
2613
|
-
},
|
|
2649
|
+
}, bs = { class: "wm-art__fieldLabel" };
|
|
2614
2650
|
function ks(e, t, n, i, r, s) {
|
|
2615
2651
|
return c(), u("div", ms, [
|
|
2616
2652
|
n.data.image_url ? (c(), u("figure", hs, [
|
|
@@ -2619,11 +2655,11 @@ function ks(e, t, n, i, r, s) {
|
|
|
2619
2655
|
alt: n.data.title || "",
|
|
2620
2656
|
loading: "lazy"
|
|
2621
2657
|
}, null, 8, fs)
|
|
2622
|
-
])) :
|
|
2658
|
+
])) : w("", !0),
|
|
2623
2659
|
o("div", _s, [
|
|
2624
2660
|
o("div", gs, [
|
|
2625
2661
|
o("div", ps, v(n.data.title), 1),
|
|
2626
|
-
n.data.subtitle ? (c(), u("div", vs, v(n.data.subtitle), 1)) :
|
|
2662
|
+
n.data.subtitle ? (c(), u("div", vs, v(n.data.subtitle), 1)) : w("", !0)
|
|
2627
2663
|
]),
|
|
2628
2664
|
n.data.badge && n.data.badge.label ? (c(), u("span", {
|
|
2629
2665
|
key: 0,
|
|
@@ -2631,23 +2667,23 @@ function ks(e, t, n, i, r, s) {
|
|
|
2631
2667
|
"wm-art__badge",
|
|
2632
2668
|
`wm-art__badge--${n.data.badge.tone || "neutral"}`
|
|
2633
2669
|
])
|
|
2634
|
-
}, v(n.data.badge.label), 3)) :
|
|
2670
|
+
}, v(n.data.badge.label), 3)) : w("", !0)
|
|
2635
2671
|
]),
|
|
2636
2672
|
s.hasBody ? (c(), u("div", ys, [
|
|
2637
|
-
n.data.body ? (c(), u("div",
|
|
2638
|
-
s.fields.length ? (c(!0), u(I, { key: 1 },
|
|
2673
|
+
n.data.body ? (c(), u("div", ws, v(n.data.body), 1)) : w("", !0),
|
|
2674
|
+
s.fields.length ? (c(!0), u(I, { key: 1 }, U(s.fields, (a, l) => (c(), u("div", {
|
|
2639
2675
|
key: l,
|
|
2640
2676
|
class: "wm-art__field"
|
|
2641
2677
|
}, [
|
|
2642
|
-
o("div",
|
|
2678
|
+
o("div", bs, v(a.label), 1),
|
|
2643
2679
|
o("div", {
|
|
2644
2680
|
class: x([
|
|
2645
2681
|
"wm-art__fieldValue",
|
|
2646
2682
|
{ "wm-art__fieldValue--multi": a.multiline }
|
|
2647
2683
|
])
|
|
2648
2684
|
}, v(a.value), 3)
|
|
2649
|
-
]))), 128)) :
|
|
2650
|
-
])) :
|
|
2685
|
+
]))), 128)) : w("", !0)
|
|
2686
|
+
])) : w("", !0)
|
|
2651
2687
|
]);
|
|
2652
2688
|
}
|
|
2653
2689
|
const Cs = /* @__PURE__ */ B(us, [["render", ks], ["__scopeId", "data-v-7eae0e4a"]]);
|
|
@@ -2729,11 +2765,11 @@ const Ss = {
|
|
|
2729
2765
|
"stroke-linecap": "round",
|
|
2730
2766
|
"stroke-linejoin": "round",
|
|
2731
2767
|
"aria-hidden": "true"
|
|
2732
|
-
},
|
|
2768
|
+
}, Fs = {
|
|
2733
2769
|
key: 1,
|
|
2734
2770
|
class: "wm-art__footer wm-tk__footer"
|
|
2735
2771
|
};
|
|
2736
|
-
function
|
|
2772
|
+
function Us(e, t, n, i, r, s) {
|
|
2737
2773
|
return c(), u("div", Ms, [
|
|
2738
2774
|
o("div", Ts, [
|
|
2739
2775
|
o("div", xs, v(n.data.title), 1),
|
|
@@ -2769,10 +2805,10 @@ function Fs(e, t, n, i, r, s) {
|
|
|
2769
2805
|
ge(" " + v(n.data.status.label), 1)
|
|
2770
2806
|
], 2)
|
|
2771
2807
|
]),
|
|
2772
|
-
n.data.body ? (c(), u("div", Ls, v(n.data.body), 1)) :
|
|
2808
|
+
n.data.body ? (c(), u("div", Ls, v(n.data.body), 1)) : w("", !0)
|
|
2773
2809
|
]),
|
|
2774
2810
|
s.fields.length ? (c(), u("div", Bs, [
|
|
2775
|
-
(c(!0), u(I, null,
|
|
2811
|
+
(c(!0), u(I, null, U(s.fields, (a, l) => (c(), u("div", {
|
|
2776
2812
|
key: l,
|
|
2777
2813
|
class: "wm-art__field"
|
|
2778
2814
|
}, [
|
|
@@ -2822,12 +2858,12 @@ function Fs(e, t, n, i, r, s) {
|
|
|
2822
2858
|
rx: "2"
|
|
2823
2859
|
}, null, -1),
|
|
2824
2860
|
o("path", { d: "M16 2v4M8 2v4M3 10h18" }, null, -1)
|
|
2825
|
-
])])) :
|
|
2861
|
+
])])) : w("", !0),
|
|
2826
2862
|
o("span", null, v(a.value), 1)
|
|
2827
2863
|
], 2)
|
|
2828
2864
|
]))), 128))
|
|
2829
|
-
])) :
|
|
2830
|
-
n.data.created_at ? (c(), u("div",
|
|
2865
|
+
])) : w("", !0),
|
|
2866
|
+
n.data.created_at ? (c(), u("div", Fs, [
|
|
2831
2867
|
t[4] || (t[4] = o("svg", {
|
|
2832
2868
|
width: "11",
|
|
2833
2869
|
height: "11",
|
|
@@ -2849,10 +2885,10 @@ function Fs(e, t, n, i, r, s) {
|
|
|
2849
2885
|
o("path", { d: "M16 2v4M8 2v4M3 10h18" })
|
|
2850
2886
|
], -1)),
|
|
2851
2887
|
o("span", null, v(s.formattedDate), 1)
|
|
2852
|
-
])) :
|
|
2888
|
+
])) : w("", !0)
|
|
2853
2889
|
]);
|
|
2854
2890
|
}
|
|
2855
|
-
const js = /* @__PURE__ */ B(Ss, [["render",
|
|
2891
|
+
const js = /* @__PURE__ */ B(Ss, [["render", Us], ["__scopeId", "data-v-5f30c914"]]), Ps = {
|
|
2856
2892
|
form_response: ds,
|
|
2857
2893
|
info_card: Cs,
|
|
2858
2894
|
ticket: js
|
|
@@ -2875,7 +2911,7 @@ function Hs(e, t, n, i, r, s) {
|
|
|
2875
2911
|
return s.component ? (c(), R(Pe(s.component), {
|
|
2876
2912
|
key: 0,
|
|
2877
2913
|
data: n.artifact.data
|
|
2878
|
-
}, null, 8, ["data"])) :
|
|
2914
|
+
}, null, 8, ["data"])) : w("", !0);
|
|
2879
2915
|
}
|
|
2880
2916
|
const zs = /* @__PURE__ */ B(Ds, [["render", Hs]]), qs = {
|
|
2881
2917
|
name: "WmAttachmentPreview",
|
|
@@ -3002,9 +3038,9 @@ function Zs(e, t, n, i, r, s) {
|
|
|
3002
3038
|
], -1)),
|
|
3003
3039
|
o("span", Ys, [
|
|
3004
3040
|
o("span", Qs, v(s.displayName), 1),
|
|
3005
|
-
s.sizeLabel ? (c(), u("span", Xs, v(s.sizeLabel), 1)) :
|
|
3041
|
+
s.sizeLabel ? (c(), u("span", Xs, v(s.sizeLabel), 1)) : w("", !0)
|
|
3006
3042
|
]),
|
|
3007
|
-
r.loading ? (c(), u("span", Js)) :
|
|
3043
|
+
r.loading ? (c(), u("span", Js)) : w("", !0)
|
|
3008
3044
|
], 8, Gs))
|
|
3009
3045
|
], 2);
|
|
3010
3046
|
}
|
|
@@ -3580,10 +3616,10 @@ const cr = {
|
|
|
3580
3616
|
}, pr = { class: "wm-list__sep-label" }, vr = {
|
|
3581
3617
|
key: 0,
|
|
3582
3618
|
class: "wm-list__sep wm-list__sep--unread"
|
|
3583
|
-
}, yr = { class: "wm-list__sep-label wm-list__sep-label--unread" },
|
|
3619
|
+
}, yr = { class: "wm-list__sep-label wm-list__sep-label--unread" }, wr = {
|
|
3584
3620
|
key: 0,
|
|
3585
3621
|
class: "wm-list__sysep"
|
|
3586
|
-
},
|
|
3622
|
+
}, br = { class: "wm-list__sysep-label" }, kr = ["data-row-key"], Cr = {
|
|
3587
3623
|
key: 0,
|
|
3588
3624
|
class: "wm-list__avatarSlot"
|
|
3589
3625
|
}, Ar = {
|
|
@@ -3609,30 +3645,30 @@ function Ir(e, t, n, i, r, s) {
|
|
|
3609
3645
|
"aria-hidden": "true"
|
|
3610
3646
|
}, null, -1)),
|
|
3611
3647
|
o("span", fr, v(s.t("messageList.loadingHistory")), 1)
|
|
3612
|
-
])) : s.historyExhausted ? (c(), u("div", _r, v(s.t("messageList.conversationStart")), 1)) :
|
|
3648
|
+
])) : s.historyExhausted ? (c(), u("div", _r, v(s.t("messageList.conversationStart")), 1)) : w("", !0),
|
|
3613
3649
|
n.dateLabel ? (c(), u("div", gr, [
|
|
3614
3650
|
t[2] || (t[2] = o("div", { class: "wm-list__line" }, null, -1)),
|
|
3615
3651
|
o("span", pr, v(n.dateLabel), 1),
|
|
3616
3652
|
t[3] || (t[3] = o("div", { class: "wm-list__line" }, null, -1))
|
|
3617
|
-
])) :
|
|
3618
|
-
(c(!0), u(I, null,
|
|
3653
|
+
])) : w("", !0),
|
|
3654
|
+
(c(!0), u(I, null, U(s.groups, (A, q) => (c(), u(I, {
|
|
3619
3655
|
key: A.key
|
|
3620
3656
|
}, [
|
|
3621
3657
|
A.key === s.unreadGroupKey ? (c(), u("div", vr, [
|
|
3622
3658
|
t[4] || (t[4] = o("div", { class: "wm-list__line wm-list__line--unread" }, null, -1)),
|
|
3623
3659
|
o("span", yr, v(s.t("messageList.unread")), 1),
|
|
3624
3660
|
t[5] || (t[5] = o("div", { class: "wm-list__line wm-list__line--unread" }, null, -1))
|
|
3625
|
-
])) :
|
|
3661
|
+
])) : w("", !0),
|
|
3626
3662
|
A.role === "system" || A.items.length ? (c(), u("div", {
|
|
3627
3663
|
key: 1,
|
|
3628
3664
|
class: x(["wm-list__group", "wm-list__group--" + A.role])
|
|
3629
3665
|
}, [
|
|
3630
|
-
A.role === "system" ? (c(), u("div",
|
|
3666
|
+
A.role === "system" ? (c(), u("div", wr, [
|
|
3631
3667
|
t[6] || (t[6] = o("div", { class: "wm-list__line wm-list__line--strong" }, null, -1)),
|
|
3632
|
-
o("span",
|
|
3668
|
+
o("span", br, v(A.systemLabel), 1),
|
|
3633
3669
|
t[7] || (t[7] = o("div", { class: "wm-list__line wm-list__line--strong" }, null, -1))
|
|
3634
3670
|
])) : (c(), u(I, { key: 1 }, [
|
|
3635
|
-
(c(!0), u(I, null,
|
|
3671
|
+
(c(!0), u(I, null, U(A.items, (M, P) => (c(), u("div", {
|
|
3636
3672
|
key: `${s.messageKey(M.message)}-${M.partKey}`,
|
|
3637
3673
|
"data-row-key": `${s.messageKey(M.message)}-${M.partKey}`,
|
|
3638
3674
|
class: x(["wm-list__row fade-up", [
|
|
@@ -3659,8 +3695,8 @@ function Ir(e, t, n, i, r, s) {
|
|
|
3659
3695
|
size: 26,
|
|
3660
3696
|
tail: !0
|
|
3661
3697
|
}, null, 8, ["name", "avatar-url"]))
|
|
3662
|
-
], 64)) :
|
|
3663
|
-
])) :
|
|
3698
|
+
], 64)) : w("", !0)
|
|
3699
|
+
])) : w("", !0),
|
|
3664
3700
|
M.renderAs === "action" ? (c(), R(p, {
|
|
3665
3701
|
key: 1,
|
|
3666
3702
|
state: M.message.payload.state,
|
|
@@ -3682,32 +3718,32 @@ function Ir(e, t, n, i, r, s) {
|
|
|
3682
3718
|
key: 0,
|
|
3683
3719
|
role: A.role,
|
|
3684
3720
|
text: M.message.text_md
|
|
3685
|
-
}, null, 8, ["role", "text"])) :
|
|
3721
|
+
}, null, 8, ["role", "text"])) : w("", !0),
|
|
3686
3722
|
s.attachmentsOf(M.message).length ? (c(), u("div", {
|
|
3687
3723
|
key: 1,
|
|
3688
3724
|
class: x(["wm-list__atts", {
|
|
3689
3725
|
"wm-list__atts--align-end": A.role === "user"
|
|
3690
3726
|
}])
|
|
3691
3727
|
}, [
|
|
3692
|
-
(c(!0), u(I, null,
|
|
3728
|
+
(c(!0), u(I, null, U(s.attachmentsOf(
|
|
3693
3729
|
M.message
|
|
3694
3730
|
), (N, H) => (c(), R(T, {
|
|
3695
3731
|
key: `${s.messageKey(M.message)}-att-${H}`,
|
|
3696
3732
|
attachment: N
|
|
3697
3733
|
}, null, 8, ["attachment"]))), 128))
|
|
3698
|
-
], 2)) :
|
|
3734
|
+
], 2)) : w("", !0)
|
|
3699
3735
|
]))
|
|
3700
3736
|
], 14, kr))), 128)),
|
|
3701
3737
|
(A.role !== "user" || s.lastTimeOf(A)) && !s.hasTrailingOverlay(A) ? (c(), u("div", {
|
|
3702
3738
|
key: 0,
|
|
3703
3739
|
class: x(["wm-list__meta", { "wm-list__meta--right": A.role === "user" }])
|
|
3704
3740
|
}, [
|
|
3705
|
-
A.role !== "user" ? (c(), u("span", Sr, v(s.roleLabel(A)), 1)) :
|
|
3706
|
-
A.role !== "user" && s.lastTimeOf(A) ? (c(), u("span", Mr, "·")) :
|
|
3707
|
-
s.lastTimeOf(A) ? (c(), u("span", Tr, v(s.lastTimeOf(A)), 1)) :
|
|
3708
|
-
], 2)) :
|
|
3741
|
+
A.role !== "user" ? (c(), u("span", Sr, v(s.roleLabel(A)), 1)) : w("", !0),
|
|
3742
|
+
A.role !== "user" && s.lastTimeOf(A) ? (c(), u("span", Mr, "·")) : w("", !0),
|
|
3743
|
+
s.lastTimeOf(A) ? (c(), u("span", Tr, v(s.lastTimeOf(A)), 1)) : w("", !0)
|
|
3744
|
+
], 2)) : w("", !0)
|
|
3709
3745
|
], 64))
|
|
3710
|
-
], 2)) :
|
|
3746
|
+
], 2)) : w("", !0)
|
|
3711
3747
|
], 64))), 128)),
|
|
3712
3748
|
n.streamingActive ? (c(), u("div", xr, [
|
|
3713
3749
|
o("div", Or, [
|
|
@@ -3719,12 +3755,12 @@ function Ir(e, t, n, i, r, s) {
|
|
|
3719
3755
|
}, null, 8, ["name", "image-url"])
|
|
3720
3756
|
]),
|
|
3721
3757
|
$(E)
|
|
3722
|
-
])) :
|
|
3758
|
+
])) : w("", !0)
|
|
3723
3759
|
], 34);
|
|
3724
3760
|
}
|
|
3725
|
-
const Lr = /* @__PURE__ */ B(mr, [["render", Ir], ["__scopeId", "data-v-d769b193"]]), me = typeof navigator < "u" && !!navigator.mediaDevices && typeof navigator.mediaDevices.getDisplayMedia == "function",
|
|
3761
|
+
const Lr = /* @__PURE__ */ B(mr, [["render", Ir], ["__scopeId", "data-v-d769b193"]]), me = typeof navigator < "u" && !!navigator.mediaDevices && typeof navigator.mediaDevices.getDisplayMedia == "function", we = typeof window < "u" && typeof window.MediaRecorder < "u";
|
|
3726
3762
|
function Br() {
|
|
3727
|
-
return
|
|
3763
|
+
return we && [
|
|
3728
3764
|
"video/webm;codecs=vp9,opus",
|
|
3729
3765
|
"video/webm;codecs=vp8,opus",
|
|
3730
3766
|
"video/webm",
|
|
@@ -3781,7 +3817,7 @@ async function Rr(e) {
|
|
|
3781
3817
|
}
|
|
3782
3818
|
async function Nr(e = {}) {
|
|
3783
3819
|
var C;
|
|
3784
|
-
if (!me || !
|
|
3820
|
+
if (!me || !we) return null;
|
|
3785
3821
|
let t;
|
|
3786
3822
|
try {
|
|
3787
3823
|
t = await navigator.mediaDevices.getDisplayMedia(
|
|
@@ -3844,7 +3880,7 @@ async function Nr(e = {}) {
|
|
|
3844
3880
|
}
|
|
3845
3881
|
};
|
|
3846
3882
|
}
|
|
3847
|
-
const
|
|
3883
|
+
const Fr = [
|
|
3848
3884
|
{
|
|
3849
3885
|
action: "file",
|
|
3850
3886
|
labelKey: "composer.attachFile",
|
|
@@ -3860,7 +3896,7 @@ const Ur = [
|
|
|
3860
3896
|
labelKey: "composer.recordScreen",
|
|
3861
3897
|
path: "M23 7l-7 5 7 5V7z M1 5a2 2 0 012-2h12a2 2 0 012 2v14a2 2 0 01-2 2H3a2 2 0 01-2-2V5z"
|
|
3862
3898
|
}
|
|
3863
|
-
],
|
|
3899
|
+
], Ur = {
|
|
3864
3900
|
name: "WmComposer",
|
|
3865
3901
|
inject: {
|
|
3866
3902
|
// Translator shared by the Messenger shell; French fallback when
|
|
@@ -3888,10 +3924,10 @@ const Ur = [
|
|
|
3888
3924
|
return !this.disabled && !!this.local.trim();
|
|
3889
3925
|
},
|
|
3890
3926
|
attachItems() {
|
|
3891
|
-
return
|
|
3927
|
+
return Fr.map((e) => ({
|
|
3892
3928
|
...e,
|
|
3893
3929
|
label: this.t(e.labelKey),
|
|
3894
|
-
disabled: e.action === "screenshot" && !me || e.action === "record" && (!me || !
|
|
3930
|
+
disabled: e.action === "screenshot" && !me || e.action === "record" && (!me || !we)
|
|
3895
3931
|
}));
|
|
3896
3932
|
},
|
|
3897
3933
|
recordingElapsedLabel() {
|
|
@@ -4018,7 +4054,7 @@ function Qr(e, t, n, i, r, s) {
|
|
|
4018
4054
|
class: "wm-rec__stop",
|
|
4019
4055
|
onClick: t[0] || (t[0] = (...a) => s.stopRecording && s.stopRecording(...a))
|
|
4020
4056
|
}, v(s.t("composer.stop")), 1)
|
|
4021
|
-
])) :
|
|
4057
|
+
])) : w("", !0),
|
|
4022
4058
|
o("form", {
|
|
4023
4059
|
class: x(["wm-compose", { "has-attach": r.attachOpen }]),
|
|
4024
4060
|
onSubmit: t[7] || (t[7] = X((...a) => s.onSubmit && s.onSubmit(...a), ["prevent"]))
|
|
@@ -4034,9 +4070,9 @@ function Qr(e, t, n, i, r, s) {
|
|
|
4034
4070
|
key: 0,
|
|
4035
4071
|
class: "wm-compose__overlay",
|
|
4036
4072
|
onClick: t[2] || (t[2] = (a) => r.attachOpen = !1)
|
|
4037
|
-
})) :
|
|
4073
|
+
})) : w("", !0),
|
|
4038
4074
|
r.attachOpen ? (c(), u("div", Hr, [
|
|
4039
|
-
(c(!0), u(I, null,
|
|
4075
|
+
(c(!0), u(I, null, U(s.attachItems, (a) => (c(), u("button", {
|
|
4040
4076
|
key: a.action,
|
|
4041
4077
|
type: "button",
|
|
4042
4078
|
class: "wm-compose__menuItem",
|
|
@@ -4057,7 +4093,7 @@ function Qr(e, t, n, i, r, s) {
|
|
|
4057
4093
|
]),
|
|
4058
4094
|
o("span", null, v(a.label), 1)
|
|
4059
4095
|
], 8, zr))), 128))
|
|
4060
|
-
])) :
|
|
4096
|
+
])) : w("", !0),
|
|
4061
4097
|
K(o("textarea", {
|
|
4062
4098
|
ref: "inputEl",
|
|
4063
4099
|
"onUpdate:modelValue": t[3] || (t[3] = (a) => r.local = a),
|
|
@@ -4117,7 +4153,7 @@ function Qr(e, t, n, i, r, s) {
|
|
|
4117
4153
|
], 34)
|
|
4118
4154
|
]);
|
|
4119
4155
|
}
|
|
4120
|
-
const Xr = /* @__PURE__ */ B(
|
|
4156
|
+
const Xr = /* @__PURE__ */ B(Ur, [["render", Qr], ["__scopeId", "data-v-aa81dbb8"]]), Jr = {
|
|
4121
4157
|
name: "WmSuggestionChips",
|
|
4122
4158
|
props: {
|
|
4123
4159
|
items: { type: Array, default: () => [] },
|
|
@@ -4140,14 +4176,14 @@ function ei(e, t, n, i, r, s) {
|
|
|
4140
4176
|
key: s.batchKey,
|
|
4141
4177
|
class: "wm-chips"
|
|
4142
4178
|
}, [
|
|
4143
|
-
(c(!0), u(I, null,
|
|
4179
|
+
(c(!0), u(I, null, U(n.items, (a, l) => (c(), u("button", {
|
|
4144
4180
|
key: l,
|
|
4145
4181
|
type: "button",
|
|
4146
4182
|
class: "wm-chip",
|
|
4147
4183
|
style: z({ animationDelay: n.baseDelay + l * n.stepDelay + "ms" }),
|
|
4148
4184
|
onClick: (p) => e.$emit("select", a)
|
|
4149
4185
|
}, v(a.label), 13, Zr))), 128))
|
|
4150
|
-
])) :
|
|
4186
|
+
])) : w("", !0);
|
|
4151
4187
|
}
|
|
4152
4188
|
const ti = /* @__PURE__ */ B(Jr, [["render", ei], ["__scopeId", "data-v-47ad8085"]]), ni = {
|
|
4153
4189
|
name: "WmApprovalCard",
|
|
@@ -4210,7 +4246,7 @@ function di(e, t, n, i, r, s) {
|
|
|
4210
4246
|
]),
|
|
4211
4247
|
o("div", ai, [
|
|
4212
4248
|
o("div", oi, v(n.action), 1),
|
|
4213
|
-
n.detail ? (c(), u("div", li, v(n.detail), 1)) :
|
|
4249
|
+
n.detail ? (c(), u("div", li, v(n.detail), 1)) : w("", !0)
|
|
4214
4250
|
])
|
|
4215
4251
|
]),
|
|
4216
4252
|
o("div", ci, [
|
|
@@ -4219,13 +4255,13 @@ function di(e, t, n, i, r, s) {
|
|
|
4219
4255
|
type: "button",
|
|
4220
4256
|
class: "wm-approval__btn wm-approval__btn--neutral",
|
|
4221
4257
|
onClick: t[0] || (t[0] = (l) => e.$emit("callback", s.rejectId))
|
|
4222
|
-
}, v(s.rejectLabel), 1)) :
|
|
4258
|
+
}, v(s.rejectLabel), 1)) : w("", !0),
|
|
4223
4259
|
s.approveId ? (c(), u("button", {
|
|
4224
4260
|
key: 1,
|
|
4225
4261
|
type: "button",
|
|
4226
4262
|
class: "wm-approval__btn wm-approval__btn--primary",
|
|
4227
4263
|
onClick: t[1] || (t[1] = (l) => e.$emit("callback", s.approveId))
|
|
4228
|
-
}, v(s.approveLabel), 1)) :
|
|
4264
|
+
}, v(s.approveLabel), 1)) : w("", !0)
|
|
4229
4265
|
])
|
|
4230
4266
|
]);
|
|
4231
4267
|
}
|
|
@@ -4325,7 +4361,7 @@ const mi = /* @__PURE__ */ new Set([
|
|
|
4325
4361
|
}, fi = { class: "wm-form" }, _i = { class: "wm-form__head" }, gi = { class: "wm-form__icon" }, pi = { class: "wm-form__main" }, vi = { class: "wm-form__title" }, yi = {
|
|
4326
4362
|
key: 0,
|
|
4327
4363
|
class: "wm-form__detail"
|
|
4328
|
-
},
|
|
4364
|
+
}, wi = ["for"], bi = {
|
|
4329
4365
|
key: 0,
|
|
4330
4366
|
class: "wm-form__req",
|
|
4331
4367
|
"aria-hidden": "true"
|
|
@@ -4345,11 +4381,11 @@ const mi = /* @__PURE__ */ new Set([
|
|
|
4345
4381
|
key: 0,
|
|
4346
4382
|
class: "wm-form__spinner",
|
|
4347
4383
|
"aria-hidden": "true"
|
|
4348
|
-
},
|
|
4384
|
+
}, Fi = {
|
|
4349
4385
|
key: 2,
|
|
4350
4386
|
class: "wm-form__doneLbl"
|
|
4351
4387
|
};
|
|
4352
|
-
function
|
|
4388
|
+
function Ui(e, t, n, i, r, s) {
|
|
4353
4389
|
const a = L("AIAvatar");
|
|
4354
4390
|
return c(), u("div", fi, [
|
|
4355
4391
|
o("div", _i, [
|
|
@@ -4362,14 +4398,14 @@ function Fi(e, t, n, i, r, s) {
|
|
|
4362
4398
|
]),
|
|
4363
4399
|
o("div", pi, [
|
|
4364
4400
|
o("div", vi, v(n.form.title || s.t("form.title")), 1),
|
|
4365
|
-
n.form.description ? (c(), u("div", yi, v(n.form.description), 1)) :
|
|
4401
|
+
n.form.description ? (c(), u("div", yi, v(n.form.description), 1)) : w("", !0)
|
|
4366
4402
|
])
|
|
4367
4403
|
]),
|
|
4368
4404
|
o("form", {
|
|
4369
4405
|
class: "wm-form__body",
|
|
4370
4406
|
onSubmit: t[0] || (t[0] = X((...l) => s.onSubmit && s.onSubmit(...l), ["prevent"]))
|
|
4371
4407
|
}, [
|
|
4372
|
-
(c(!0), u(I, null,
|
|
4408
|
+
(c(!0), u(I, null, U(s.normalizedFields, (l) => (c(), u("div", {
|
|
4373
4409
|
key: l.key,
|
|
4374
4410
|
class: "wm-form__field"
|
|
4375
4411
|
}, [
|
|
@@ -4378,8 +4414,8 @@ function Fi(e, t, n, i, r, s) {
|
|
|
4378
4414
|
class: "wm-form__label"
|
|
4379
4415
|
}, [
|
|
4380
4416
|
ge(v(l.label), 1),
|
|
4381
|
-
l.required ? (c(), u("span",
|
|
4382
|
-
], 8,
|
|
4417
|
+
l.required ? (c(), u("span", bi, "*")) : w("", !0)
|
|
4418
|
+
], 8, wi),
|
|
4383
4419
|
l.type === "text" ? K((c(), u("input", {
|
|
4384
4420
|
key: 0,
|
|
4385
4421
|
id: `wm-f-${r._uid}-${l.key}`,
|
|
@@ -4447,14 +4483,14 @@ function Fi(e, t, n, i, r, s) {
|
|
|
4447
4483
|
disabled: n.readOnly || r.busy
|
|
4448
4484
|
}, [
|
|
4449
4485
|
o("option", Oi, v(l.placeholder || s.t("form.choose")), 1),
|
|
4450
|
-
(c(!0), u(I, null,
|
|
4486
|
+
(c(!0), u(I, null, U(l.options, (p) => (c(), u("option", {
|
|
4451
4487
|
key: p.value,
|
|
4452
4488
|
value: p.value
|
|
4453
4489
|
}, v(p.label), 9, Ii))), 128))
|
|
4454
4490
|
], 8, xi)), [
|
|
4455
4491
|
[ze, r.values[l.key]]
|
|
4456
4492
|
]) : l.type === "multiselect" ? (c(), u("div", Li, [
|
|
4457
|
-
(c(!0), u(I, null,
|
|
4493
|
+
(c(!0), u(I, null, U(l.options, (p) => (c(), u("label", {
|
|
4458
4494
|
key: p.value,
|
|
4459
4495
|
class: "wm-form__multiItem"
|
|
4460
4496
|
}, [
|
|
@@ -4471,22 +4507,22 @@ function Fi(e, t, n, i, r, s) {
|
|
|
4471
4507
|
}, null, 40, Bi),
|
|
4472
4508
|
o("span", null, v(p.label), 1)
|
|
4473
4509
|
]))), 128))
|
|
4474
|
-
])) :
|
|
4510
|
+
])) : w("", !0)
|
|
4475
4511
|
]))), 128)),
|
|
4476
|
-
r.error ? (c(), u("div", Ei, v(r.error), 1)) :
|
|
4477
|
-
n.readOnly ? (c(), u("div",
|
|
4512
|
+
r.error ? (c(), u("div", Ei, v(r.error), 1)) : w("", !0),
|
|
4513
|
+
n.readOnly ? (c(), u("div", Fi, v(s.t("form.responseSent")), 1)) : (c(), u("button", {
|
|
4478
4514
|
key: 1,
|
|
4479
4515
|
type: "submit",
|
|
4480
4516
|
class: "wm-form__submit",
|
|
4481
4517
|
disabled: r.busy
|
|
4482
4518
|
}, [
|
|
4483
|
-
r.busy ? (c(), u("span", Ni)) :
|
|
4519
|
+
r.busy ? (c(), u("span", Ni)) : w("", !0),
|
|
4484
4520
|
o("span", null, v(r.busy ? s.t("common.sending") : n.form.submit_label || s.t("common.send")), 1)
|
|
4485
4521
|
], 8, Ri))
|
|
4486
4522
|
], 32)
|
|
4487
4523
|
]);
|
|
4488
4524
|
}
|
|
4489
|
-
const ji = /* @__PURE__ */ B(hi, [["render",
|
|
4525
|
+
const ji = /* @__PURE__ */ B(hi, [["render", Ui], ["__scopeId", "data-v-fe65cc56"]]), Pi = {
|
|
4490
4526
|
name: "WmFeedback",
|
|
4491
4527
|
inject: {
|
|
4492
4528
|
// Translator shared by the Messenger shell; French fallback when
|
|
@@ -4548,7 +4584,7 @@ function Xi(e, t, n, i, r, s) {
|
|
|
4548
4584
|
o("div", Hi, v(s.t("feedback.question")), 1),
|
|
4549
4585
|
o("div", zi, v(s.t("feedback.subtitle")), 1),
|
|
4550
4586
|
o("div", qi, [
|
|
4551
|
-
(c(!0), u(I, null,
|
|
4587
|
+
(c(!0), u(I, null, U(s.options, (a) => (c(), u("button", {
|
|
4552
4588
|
key: a.v,
|
|
4553
4589
|
type: "button",
|
|
4554
4590
|
class: x(["wm-fb__opt", { "is-selected": r.sel === a.v }]),
|
|
@@ -4651,7 +4687,7 @@ function ma(e, t, n, i, r, s) {
|
|
|
4651
4687
|
])
|
|
4652
4688
|
], -1)),
|
|
4653
4689
|
o("span", sa, v(s.t("moreMenu.editTitle")), 1)
|
|
4654
|
-
])) :
|
|
4690
|
+
])) : w("", !0),
|
|
4655
4691
|
n.canExport ? (c(), u("button", {
|
|
4656
4692
|
key: 1,
|
|
4657
4693
|
type: "button",
|
|
@@ -4675,9 +4711,9 @@ function ma(e, t, n, i, r, s) {
|
|
|
4675
4711
|
], -1)),
|
|
4676
4712
|
o("span", ra, v(s.t("moreMenu.exportTranscript")), 1),
|
|
4677
4713
|
t[9] || (t[9] = o("span", { class: "wm-mm__hint" }, ".txt", -1))
|
|
4678
|
-
])) :
|
|
4679
|
-
])) :
|
|
4680
|
-
n.canRename || n.canExport ? (c(), u("div", ia)) :
|
|
4714
|
+
])) : w("", !0)
|
|
4715
|
+
])) : w("", !0),
|
|
4716
|
+
n.canRename || n.canExport ? (c(), u("div", ia)) : w("", !0),
|
|
4681
4717
|
o("div", aa, [
|
|
4682
4718
|
o("button", {
|
|
4683
4719
|
type: "button",
|
|
@@ -4759,7 +4795,7 @@ function ma(e, t, n, i, r, s) {
|
|
|
4759
4795
|
])
|
|
4760
4796
|
], -1)),
|
|
4761
4797
|
o("span", da, v(s.t("moreMenu.serviceStatus")), 1)
|
|
4762
|
-
])) :
|
|
4798
|
+
])) : w("", !0),
|
|
4763
4799
|
n.helpUrl ? (c(), u("button", {
|
|
4764
4800
|
key: 1,
|
|
4765
4801
|
type: "button",
|
|
@@ -4782,7 +4818,7 @@ function ma(e, t, n, i, r, s) {
|
|
|
4782
4818
|
])
|
|
4783
4819
|
], -1)),
|
|
4784
4820
|
o("span", ua, v(s.t("moreMenu.helpCenter")), 1)
|
|
4785
|
-
])) :
|
|
4821
|
+
])) : w("", !0)
|
|
4786
4822
|
])
|
|
4787
4823
|
])
|
|
4788
4824
|
]);
|
|
@@ -4833,7 +4869,7 @@ const ha = /* @__PURE__ */ B(Zi, [["render", ma], ["__scopeId", "data-v-76281e95
|
|
|
4833
4869
|
class: "wm-dialog__card",
|
|
4834
4870
|
role: "dialog",
|
|
4835
4871
|
"aria-modal": "true"
|
|
4836
|
-
}, pa = { class: "wm-dialog__head" }, va = { class: "wm-dialog__title" }, ya = ["aria-label"],
|
|
4872
|
+
}, pa = { class: "wm-dialog__head" }, va = { class: "wm-dialog__title" }, ya = ["aria-label"], wa = { class: "wm-dialog__body" }, ba = ["placeholder"], ka = { class: "wm-dialog__actions" }, Ca = ["disabled"];
|
|
4837
4873
|
function Aa(e, t, n, i, r, s) {
|
|
4838
4874
|
return c(), u("div", _a, [
|
|
4839
4875
|
o("div", {
|
|
@@ -4864,7 +4900,7 @@ function Aa(e, t, n, i, r, s) {
|
|
|
4864
4900
|
], -1)
|
|
4865
4901
|
])], 8, ya)
|
|
4866
4902
|
]),
|
|
4867
|
-
o("div",
|
|
4903
|
+
o("div", wa, [
|
|
4868
4904
|
K(o("input", {
|
|
4869
4905
|
ref: "input",
|
|
4870
4906
|
"onUpdate:modelValue": t[2] || (t[2] = (a) => r.value = a),
|
|
@@ -4876,7 +4912,7 @@ function Aa(e, t, n, i, r, s) {
|
|
|
4876
4912
|
t[3] || (t[3] = ue(X((...a) => s.onSubmit && s.onSubmit(...a), ["prevent"]), ["enter"])),
|
|
4877
4913
|
t[4] || (t[4] = ue(X((a) => e.$emit("close"), ["prevent"]), ["esc"]))
|
|
4878
4914
|
]
|
|
4879
|
-
}, null, 40,
|
|
4915
|
+
}, null, 40, ba), [
|
|
4880
4916
|
[ee, r.value]
|
|
4881
4917
|
])
|
|
4882
4918
|
]),
|
|
@@ -4899,7 +4935,7 @@ function Aa(e, t, n, i, r, s) {
|
|
|
4899
4935
|
const Sa = /* @__PURE__ */ B(fa, [["render", Aa], ["__scopeId", "data-v-6d5f94a8"]]), Oe = "ww-messenger-tokens", Ma = {
|
|
4900
4936
|
name: "Messenger",
|
|
4901
4937
|
components: {
|
|
4902
|
-
Launcher:
|
|
4938
|
+
Launcher: Ut,
|
|
4903
4939
|
Header: cn,
|
|
4904
4940
|
Onboarding: qn,
|
|
4905
4941
|
MessageList: Lr,
|
|
@@ -5483,14 +5519,14 @@ const Sa = /* @__PURE__ */ B(fa, [["render", Aa], ["__scopeId", "data-v-6d5f94a8
|
|
|
5483
5519
|
return;
|
|
5484
5520
|
}
|
|
5485
5521
|
try {
|
|
5486
|
-
this.transport =
|
|
5522
|
+
this.transport = be(
|
|
5487
5523
|
We({
|
|
5488
5524
|
baseUrl: this.baseUrl,
|
|
5489
5525
|
widgetId: this.widgetId,
|
|
5490
5526
|
userId: this.userId,
|
|
5491
5527
|
userHash: this.userHash
|
|
5492
5528
|
})
|
|
5493
|
-
), this.store =
|
|
5529
|
+
), this.store = be(Xe(this.transport)), this.hydrateNotifPref();
|
|
5494
5530
|
const t = (e = this.context) == null ? void 0 : e.customer;
|
|
5495
5531
|
t && typeof t == "object" && await this.store.applyCustomer(t), await this.store.start(), this.setupLiveReveal();
|
|
5496
5532
|
} catch (t) {
|
|
@@ -5767,7 +5803,7 @@ const Sa = /* @__PURE__ */ B(fa, [["render", Aa], ["__scopeId", "data-v-6d5f94a8
|
|
|
5767
5803
|
class: "wm-actionWait",
|
|
5768
5804
|
role: "status",
|
|
5769
5805
|
"aria-live": "polite"
|
|
5770
|
-
},
|
|
5806
|
+
}, Fa = { class: "wm-actionWait__lbl" }, Ua = {
|
|
5771
5807
|
key: 2,
|
|
5772
5808
|
class: "wm-attached"
|
|
5773
5809
|
}, ja = ["aria-label", "onClick"];
|
|
@@ -5782,16 +5818,20 @@ function Pa(e, t, n, i, r, s) {
|
|
|
5782
5818
|
peeks: s.launcherPeeks,
|
|
5783
5819
|
onOpen: s.openFromPeek,
|
|
5784
5820
|
onDismiss: s.dismissPeek
|
|
5785
|
-
}, null, 8, ["unread-count", "peeks", "onOpen", "onDismiss"])) :
|
|
5821
|
+
}, null, 8, ["unread-count", "peeks", "onOpen", "onDismiss"])) : w("", !0),
|
|
5786
5822
|
r.isOpen || s.isEmbedded ? (c(), u("section", {
|
|
5787
5823
|
key: 1,
|
|
5788
|
-
class: x([
|
|
5824
|
+
class: x([
|
|
5825
|
+
"wm-panel",
|
|
5826
|
+
`wm-panel--${n.displayMode}`,
|
|
5827
|
+
{ "wm-panel--welcome": s.ready && !s.error && !s.currentConv }
|
|
5828
|
+
]),
|
|
5789
5829
|
style: z(r.floatHeight ? { "--wm-float-h": r.floatHeight + "px" } : null),
|
|
5790
5830
|
role: "dialog",
|
|
5791
5831
|
"aria-label": "Messenger"
|
|
5792
5832
|
}, [
|
|
5793
5833
|
!s.ready && !s.error ? (c(), u("div", Ta, [
|
|
5794
|
-
s.isEmbedded ?
|
|
5834
|
+
s.isEmbedded ? w("", !0) : (c(), u("button", {
|
|
5795
5835
|
key: 0,
|
|
5796
5836
|
type: "button",
|
|
5797
5837
|
class: "wm-loading__close",
|
|
@@ -5894,13 +5934,13 @@ function Pa(e, t, n, i, r, s) {
|
|
|
5894
5934
|
items: s.suggestions,
|
|
5895
5935
|
onSelect: s.onSuggestion
|
|
5896
5936
|
}, null, 8, ["items", "onSelect"]))
|
|
5897
|
-
], 512)) :
|
|
5937
|
+
], 512)) : w("", !0),
|
|
5898
5938
|
s.actionInFlight ? (c(), u("div", Na, [
|
|
5899
5939
|
t[8] || (t[8] = o("span", {
|
|
5900
5940
|
class: "wm-actionWait__spinner",
|
|
5901
5941
|
"aria-hidden": "true"
|
|
5902
5942
|
}, null, -1)),
|
|
5903
|
-
o("span",
|
|
5943
|
+
o("span", Fa, v(s.t("action.inProgress", {
|
|
5904
5944
|
name: s.actionInFlightName
|
|
5905
5945
|
})), 1)
|
|
5906
5946
|
])) : (c(), R(q, {
|
|
@@ -5927,16 +5967,16 @@ function Pa(e, t, n, i, r, s) {
|
|
|
5927
5967
|
onSoundToggle: e.onSoundToggle,
|
|
5928
5968
|
onBrowserNotifToggle: e.onBrowserNotifToggle,
|
|
5929
5969
|
onAction: s.onMoreAction
|
|
5930
|
-
}, null, 8, ["can-rename", "can-export", "sound-enabled", "browser-notif-enabled", "status-url", "help-url", "onSoundToggle", "onBrowserNotifToggle", "onAction"])) :
|
|
5970
|
+
}, null, 8, ["can-rename", "can-export", "sound-enabled", "browser-notif-enabled", "status-url", "help-url", "onSoundToggle", "onBrowserNotifToggle", "onAction"])) : w("", !0),
|
|
5931
5971
|
r.renameDialogOpen && s.currentConv && !s.currentConv._draft ? (c(), R(P, {
|
|
5932
5972
|
key: 1,
|
|
5933
5973
|
"initial-value": s.currentConv.name || "",
|
|
5934
5974
|
title: s.t("rename.dialogTitle"),
|
|
5935
5975
|
onClose: t[3] || (t[3] = (N) => r.renameDialogOpen = !1),
|
|
5936
5976
|
onSubmit: s.onRenameSubmit
|
|
5937
|
-
}, null, 8, ["initial-value", "title", "onSubmit"])) :
|
|
5938
|
-
r.pendingAttachments.length ? (c(), u("div",
|
|
5939
|
-
(c(!0), u(I, null,
|
|
5977
|
+
}, null, 8, ["initial-value", "title", "onSubmit"])) : w("", !0),
|
|
5978
|
+
r.pendingAttachments.length ? (c(), u("div", Ua, [
|
|
5979
|
+
(c(!0), u(I, null, U(r.pendingAttachments, (N, H) => (c(), u("div", {
|
|
5940
5980
|
key: H,
|
|
5941
5981
|
class: "wm-attached__chip"
|
|
5942
5982
|
}, [
|
|
@@ -5974,7 +6014,7 @@ function Pa(e, t, n, i, r, s) {
|
|
|
5974
6014
|
], -1)
|
|
5975
6015
|
])], 8, ja)
|
|
5976
6016
|
]))), 128))
|
|
5977
|
-
])) :
|
|
6017
|
+
])) : w("", !0)
|
|
5978
6018
|
], 64)) : (c(), R(p, {
|
|
5979
6019
|
key: 1,
|
|
5980
6020
|
"welcome-message": s.widgetWelcomeMessage,
|
|
@@ -6000,12 +6040,12 @@ function Pa(e, t, n, i, r, s) {
|
|
|
6000
6040
|
onSoundToggle: e.onSoundToggle,
|
|
6001
6041
|
onBrowserNotifToggle: e.onBrowserNotifToggle,
|
|
6002
6042
|
onAction: s.onMoreAction
|
|
6003
|
-
}, null, 8, ["sound-enabled", "browser-notif-enabled", "status-url", "help-url", "onSoundToggle", "onBrowserNotifToggle", "onAction"])) :
|
|
6043
|
+
}, null, 8, ["sound-enabled", "browser-notif-enabled", "status-url", "help-url", "onSoundToggle", "onBrowserNotifToggle", "onAction"])) : w("", !0)
|
|
6004
6044
|
], 64))
|
|
6005
|
-
], 6)) :
|
|
6045
|
+
], 6)) : w("", !0)
|
|
6006
6046
|
], 2);
|
|
6007
6047
|
}
|
|
6008
|
-
const za = /* @__PURE__ */ B(Ma, [["render", Pa], ["__scopeId", "data-v-
|
|
6048
|
+
const za = /* @__PURE__ */ B(Ma, [["render", Pa], ["__scopeId", "data-v-69c8f416"]]), qa = "0.4.13";
|
|
6009
6049
|
export {
|
|
6010
6050
|
le as AIAvatar,
|
|
6011
6051
|
fe as AVATAR_COLORS,
|
|
@@ -6024,8 +6064,8 @@ export {
|
|
|
6024
6064
|
ji as FormCard,
|
|
6025
6065
|
cn as Header,
|
|
6026
6066
|
Be as HumanAvatar,
|
|
6027
|
-
|
|
6028
|
-
|
|
6067
|
+
Ut as Launcher,
|
|
6068
|
+
we as MEDIA_RECORDER_SUPPORTED,
|
|
6029
6069
|
Lr as MessageList,
|
|
6030
6070
|
za as Messenger,
|
|
6031
6071
|
ha as MoreMenu,
|