@_solaris/messenger-widget 0.5.29 → 0.5.31
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/README.md +37 -0
- package/dist/iframe/iframe.css +1 -1
- package/dist/iframe/iframe.js +8 -8
- package/dist/messenger.cjs +6 -6
- package/dist/messenger.js +430 -413
- package/dist/snippet.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/core/i18n.d.ts +4 -0
- package/package.json +1 -1
package/dist/messenger.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { reactive as Ue, openBlock as c, createElementBlock as u, normalizeStyle as q, normalizeClass as O, toDisplayString as v, resolveComponent as R, createVNode as $, Transition as
|
|
1
|
+
import { reactive as Ue, openBlock as c, createElementBlock as u, normalizeStyle as q, normalizeClass as O, toDisplayString as v, resolveComponent as R, createVNode as $, Transition as Ie, withCtx as Ee, Fragment as B, renderList as D, withKeys as ue, withModifiers as G, createElementVNode as o, createCommentVNode as y, createBlock as F, withDirectives as V, vModelText as X, createTextVNode as ve, resolveDynamicComponent as De, renderSlot as je, vModelCheckbox as He, vModelSelect as ze, markRaw as Ce } from "vue";
|
|
2
2
|
const qe = [
|
|
3
3
|
"connected",
|
|
4
4
|
"message",
|
|
@@ -182,7 +182,7 @@ function We(e) {
|
|
|
182
182
|
{ message_id: f }
|
|
183
183
|
);
|
|
184
184
|
}
|
|
185
|
-
async function
|
|
185
|
+
async function I(d, f = {}) {
|
|
186
186
|
const _ = new URLSearchParams();
|
|
187
187
|
f.before && _.set("before", f.before), f.since && _.set("since", f.since), f.limit && _.set("limit", String(f.limit));
|
|
188
188
|
const w = _.toString() ? `?${_.toString()}` : "";
|
|
@@ -324,7 +324,7 @@ function We(e) {
|
|
|
324
324
|
getConversation: H,
|
|
325
325
|
patchConversation: S,
|
|
326
326
|
markConversationRead: P,
|
|
327
|
-
listMessages:
|
|
327
|
+
listMessages: I,
|
|
328
328
|
postMessage: U,
|
|
329
329
|
postCallback: Y,
|
|
330
330
|
uploadAttachment: Z,
|
|
@@ -613,7 +613,7 @@ function Qe(e) {
|
|
|
613
613
|
}
|
|
614
614
|
}
|
|
615
615
|
const P = /* @__PURE__ */ new Map();
|
|
616
|
-
async function
|
|
616
|
+
async function I(h) {
|
|
617
617
|
if (!h) return null;
|
|
618
618
|
const m = P.get(h);
|
|
619
619
|
if (m != null && m.url) {
|
|
@@ -768,7 +768,7 @@ function Qe(e) {
|
|
|
768
768
|
markConversationRead: A,
|
|
769
769
|
send: H,
|
|
770
770
|
clickCallback: S,
|
|
771
|
-
signAttachment:
|
|
771
|
+
signAttachment: I,
|
|
772
772
|
submitFeedback: U,
|
|
773
773
|
getPendingApproval: Y,
|
|
774
774
|
getActionInFlight: ee,
|
|
@@ -903,6 +903,8 @@ const Xe = `
|
|
|
903
903
|
"onboarding.heroSub": `Posez-moi n'importe quelle question.
|
|
904
904
|
Je réponds en quelques secondes.`,
|
|
905
905
|
"onboarding.newMessage": "Nouveau message",
|
|
906
|
+
"onboarding.statusInProgress": "En cours",
|
|
907
|
+
"onboarding.resume": "Reprendre",
|
|
906
908
|
// ── Composer ─────────────────────────────────────────────────────
|
|
907
909
|
"composer.placeholder": "Écrivez votre message…",
|
|
908
910
|
"composer.replyTo": "Répondre à {name}…",
|
|
@@ -1024,6 +1026,8 @@ Je réponds en quelques secondes.`,
|
|
|
1024
1026
|
"onboarding.heroSub": `Ask me anything.
|
|
1025
1027
|
I reply within seconds.`,
|
|
1026
1028
|
"onboarding.newMessage": "New message",
|
|
1029
|
+
"onboarding.statusInProgress": "In progress",
|
|
1030
|
+
"onboarding.resume": "Resume",
|
|
1027
1031
|
// ── Composer ─────────────────────────────────────────────────────
|
|
1028
1032
|
"composer.placeholder": "Type your message…",
|
|
1029
1033
|
"composer.replyTo": "Reply to {name}…",
|
|
@@ -1709,7 +1713,7 @@ const Re = /* @__PURE__ */ N(vt, [["render", wt], ["__scopeId", "data-v-14e10c0d
|
|
|
1709
1713
|
return this.peeks.slice(0, bt).reverse();
|
|
1710
1714
|
}
|
|
1711
1715
|
}
|
|
1712
|
-
}, Ct = ["aria-label", "onClick", "onKeydown"], At = ["aria-label", "onClick"], St = { class: "wm-peek__avatar" }, Mt = ["aria-label"], Tt = { class: "wm-peek__body" }, xt = { class: "wm-peek__head" }, Ot = { class: "wm-peek__name" }, Lt = { class: "wm-peek__action" },
|
|
1716
|
+
}, Ct = ["aria-label", "onClick", "onKeydown"], At = ["aria-label", "onClick"], St = { class: "wm-peek__avatar" }, Mt = ["aria-label"], Tt = { class: "wm-peek__body" }, xt = { class: "wm-peek__head" }, Ot = { class: "wm-peek__name" }, Lt = { class: "wm-peek__action" }, It = { class: "wm-peek__text" }, Et = ["onClick"], Bt = ["aria-label"], Rt = ["aria-label"];
|
|
1713
1717
|
function Nt(e, t, n, i, r, s) {
|
|
1714
1718
|
const a = R("HumanAvatar");
|
|
1715
1719
|
return c(), u("div", {
|
|
@@ -1719,13 +1723,13 @@ function Nt(e, t, n, i, r, s) {
|
|
|
1719
1723
|
onFocusin: t[3] || (t[3] = (l) => e.$emit("hover", !0)),
|
|
1720
1724
|
onFocusout: t[4] || (t[4] = (l) => e.$emit("hover", !1))
|
|
1721
1725
|
}, [
|
|
1722
|
-
$(
|
|
1723
|
-
default:
|
|
1726
|
+
$(Ie, { name: "wm-peek" }, {
|
|
1727
|
+
default: Ee(() => [
|
|
1724
1728
|
s.visiblePeeks.length ? (c(), u("div", {
|
|
1725
1729
|
key: 0,
|
|
1726
1730
|
class: O(["wm-peekStack", { "wm-peekStack--multi": s.visiblePeeks.length > 1 }])
|
|
1727
1731
|
}, [
|
|
1728
|
-
(c(!0), u(
|
|
1732
|
+
(c(!0), u(B, null, D(s.visiblePeeks, (l, p) => (c(), u("div", {
|
|
1729
1733
|
key: l.convId,
|
|
1730
1734
|
class: "wm-peek",
|
|
1731
1735
|
style: q({
|
|
@@ -1780,13 +1784,13 @@ function Nt(e, t, n, i, r, s) {
|
|
|
1780
1784
|
o("span", Ot, v(l.senderName || s.t("common.agent")), 1),
|
|
1781
1785
|
o("span", Lt, v(s.t("launcher.repliedToYou")), 1)
|
|
1782
1786
|
]),
|
|
1783
|
-
o("p",
|
|
1787
|
+
o("p", It, v(l.preview), 1)
|
|
1784
1788
|
]),
|
|
1785
1789
|
o("button", {
|
|
1786
1790
|
type: "button",
|
|
1787
1791
|
class: "wm-peek__open",
|
|
1788
1792
|
onClick: G((k) => e.$emit("open", l.convId), ["stop"])
|
|
1789
|
-
}, v(s.t("common.open")), 9,
|
|
1793
|
+
}, v(s.t("common.open")), 9, Et)
|
|
1790
1794
|
], 44, Ct))), 128))
|
|
1791
1795
|
], 2)) : y("", !0)
|
|
1792
1796
|
]),
|
|
@@ -1949,7 +1953,7 @@ function Wt(e, t, n, i, r, s) {
|
|
|
1949
1953
|
class: "wm-team__stack",
|
|
1950
1954
|
style: q({ width: s.stackWidth + "px" })
|
|
1951
1955
|
}, [
|
|
1952
|
-
(c(!0), u(
|
|
1956
|
+
(c(!0), u(B, null, D(n.members.slice(0, 3), (a, l) => (c(), u("div", {
|
|
1953
1957
|
key: l,
|
|
1954
1958
|
class: "wm-team__pill",
|
|
1955
1959
|
style: q({
|
|
@@ -2038,7 +2042,7 @@ function on(e, t, n, i, r, s) {
|
|
|
2038
2042
|
o("path", { d: "M19 12H5M12 5l-7 7 7 7" })
|
|
2039
2043
|
], -1)
|
|
2040
2044
|
])], 8, Qt)) : (c(), u("div", Xt)),
|
|
2041
|
-
n.showIdentity ? (c(), u(
|
|
2045
|
+
n.showIdentity ? (c(), u(B, { key: 2 }, [
|
|
2042
2046
|
o("div", Zt, [
|
|
2043
2047
|
$(a, {
|
|
2044
2048
|
size: 30,
|
|
@@ -2113,7 +2117,7 @@ function on(e, t, n, i, r, s) {
|
|
|
2113
2117
|
])
|
|
2114
2118
|
]);
|
|
2115
2119
|
}
|
|
2116
|
-
const ln = /* @__PURE__ */ N(Yt, [["render", on], ["__scopeId", "data-v-
|
|
2120
|
+
const ln = /* @__PURE__ */ N(Yt, [["render", on], ["__scopeId", "data-v-0da6fbcd"]]);
|
|
2117
2121
|
function Ne(e) {
|
|
2118
2122
|
return String(e).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
2119
2123
|
}
|
|
@@ -2280,7 +2284,7 @@ const xe = {
|
|
|
2280
2284
|
}
|
|
2281
2285
|
}, mn = { class: "wm-onb" }, fn = { class: "wm-onb__hero" }, gn = { class: "wm-onb__hero-text" }, _n = { class: "wm-onb__title" }, pn = { class: "wm-onb__sub" }, vn = { class: "wm-onb__cta" }, yn = ["disabled"], wn = {
|
|
2282
2286
|
key: 0,
|
|
2283
|
-
class: "wm-onb__section"
|
|
2287
|
+
class: "wm-onb__section wm-onb__section--card"
|
|
2284
2288
|
}, bn = { class: "wm-onb__section-title" }, kn = ["onClick"], Cn = { class: "wm-onb__card-icon" }, An = {
|
|
2285
2289
|
width: "16",
|
|
2286
2290
|
height: "16",
|
|
@@ -2296,15 +2300,18 @@ const xe = {
|
|
|
2296
2300
|
class: "wm-onb__card-sub"
|
|
2297
2301
|
}, On = {
|
|
2298
2302
|
key: 1,
|
|
2299
|
-
class: "wm-onb__section"
|
|
2300
|
-
}, Ln = { class: "wm-onb__section-title" },
|
|
2303
|
+
class: "wm-onb__section wm-onb__section--card"
|
|
2304
|
+
}, Ln = { class: "wm-onb__section-title" }, In = { class: "wm-onb__search" }, En = ["placeholder", "aria-label"], Bn = { class: "wm-onb__list" }, Rn = { class: "wm-onb__thread-body" }, Nn = { class: "wm-onb__thread-status" }, Pn = { class: "wm-onb__thread-statusLabel" }, Fn = {
|
|
2301
2305
|
key: 0,
|
|
2306
|
+
class: "wm-onb__thread-statusSep"
|
|
2307
|
+
}, Un = {
|
|
2308
|
+
key: 1,
|
|
2302
2309
|
class: "wm-onb__thread-time"
|
|
2303
|
-
}, Hn = {
|
|
2310
|
+
}, Dn = { class: "wm-onb__thread-title" }, jn = ["innerHTML"], Hn = ["onClick"], zn = {
|
|
2304
2311
|
key: 0,
|
|
2305
2312
|
class: "wm-onb__empty"
|
|
2306
2313
|
};
|
|
2307
|
-
function
|
|
2314
|
+
function qn(e, t, n, i, r, s) {
|
|
2308
2315
|
const a = R("AIAvatar");
|
|
2309
2316
|
return c(), u("div", mn, [
|
|
2310
2317
|
o("div", fn, [
|
|
@@ -2381,7 +2388,7 @@ function zn(e, t, n, i, r, s) {
|
|
|
2381
2388
|
o("div", {
|
|
2382
2389
|
class: O(s.quickLinksLayout)
|
|
2383
2390
|
}, [
|
|
2384
|
-
(c(!0), u(
|
|
2391
|
+
(c(!0), u(B, null, D(n.quickLinks, (l, p) => (c(), u("button", {
|
|
2385
2392
|
key: p,
|
|
2386
2393
|
type: "button",
|
|
2387
2394
|
class: O(["wm-onb__card", { "wm-onb__card--row": s.isOddQuickLinks }]),
|
|
@@ -2403,7 +2410,7 @@ function zn(e, t, n, i, r, s) {
|
|
|
2403
2410
|
])) : y("", !0),
|
|
2404
2411
|
n.openThreads.length ? (c(), u("div", On, [
|
|
2405
2412
|
o("div", Ln, v(s.t("onboarding.recentConversations")), 1),
|
|
2406
|
-
o("div",
|
|
2413
|
+
o("div", In, [
|
|
2407
2414
|
t[4] || (t[4] = o("span", { class: "wm-onb__searchIcon" }, [
|
|
2408
2415
|
o("svg", {
|
|
2409
2416
|
width: "12",
|
|
@@ -2424,21 +2431,17 @@ function zn(e, t, n, i, r, s) {
|
|
|
2424
2431
|
type: "text",
|
|
2425
2432
|
placeholder: s.t("onboarding.search"),
|
|
2426
2433
|
"aria-label": s.t("onboarding.search")
|
|
2427
|
-
}, null, 8,
|
|
2434
|
+
}, null, 8, En), [
|
|
2428
2435
|
[X, r.query]
|
|
2429
2436
|
])
|
|
2430
2437
|
]),
|
|
2431
2438
|
o("div", Bn, [
|
|
2432
|
-
(c(!0), u(
|
|
2439
|
+
(c(!0), u(B, null, D(s.filteredThreads, (l) => (c(), u("div", {
|
|
2433
2440
|
key: l.id,
|
|
2434
|
-
|
|
2435
|
-
class: "wm-onb__thread",
|
|
2436
|
-
onClick: (p) => e.$emit("resume", l)
|
|
2441
|
+
class: "wm-onb__thread"
|
|
2437
2442
|
}, [
|
|
2438
|
-
o("span", {
|
|
2439
|
-
|
|
2440
|
-
}, [
|
|
2441
|
-
t[5] || (t[5] = o("svg", {
|
|
2443
|
+
t[5] || (t[5] = o("span", { class: "wm-onb__thread-icon" }, [
|
|
2444
|
+
o("svg", {
|
|
2442
2445
|
width: "18",
|
|
2443
2446
|
height: "18",
|
|
2444
2447
|
viewBox: "0 0 24 24",
|
|
@@ -2450,48 +2453,36 @@ function zn(e, t, n, i, r, s) {
|
|
|
2450
2453
|
fill: "currentColor",
|
|
2451
2454
|
opacity: "0.92"
|
|
2452
2455
|
})
|
|
2453
|
-
]
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
"
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
o("span",
|
|
2456
|
+
])
|
|
2457
|
+
], -1)),
|
|
2458
|
+
o("span", Rn, [
|
|
2459
|
+
o("span", Nn, [
|
|
2460
|
+
o("span", Pn, v(s.t("onboarding.statusInProgress")), 1),
|
|
2461
|
+
s.formatTs(l._ts) ? (c(), u("span", Fn, "·")) : y("", !0),
|
|
2462
|
+
s.formatTs(l._ts) ? (c(), u("span", Un, v(s.formatTs(l._ts)), 1)) : y("", !0)
|
|
2463
|
+
]),
|
|
2464
|
+
o("span", Dn, v(l.title), 1),
|
|
2462
2465
|
o("span", {
|
|
2463
2466
|
class: "wm-onb__thread-preview",
|
|
2464
2467
|
innerHTML: s.renderPreview(l.preview)
|
|
2465
|
-
}, null, 8,
|
|
2468
|
+
}, null, 8, jn)
|
|
2466
2469
|
]),
|
|
2467
|
-
o("
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
stroke: "currentColor",
|
|
2475
|
-
"stroke-width": "1.8",
|
|
2476
|
-
"stroke-linecap": "round",
|
|
2477
|
-
"stroke-linejoin": "round",
|
|
2478
|
-
class: "wm-onb__thread-chev",
|
|
2479
|
-
"aria-hidden": "true"
|
|
2480
|
-
}, [
|
|
2481
|
-
o("path", { d: "M5 12h14M13 5l7 7-7 7" })
|
|
2482
|
-
], -1))
|
|
2483
|
-
])
|
|
2484
|
-
], 8, Rn))), 128)),
|
|
2485
|
-
s.filteredThreads.length ? y("", !0) : (c(), u("div", Hn, v(s.t("onboarding.noResults", { query: r.query })), 1))
|
|
2470
|
+
o("button", {
|
|
2471
|
+
type: "button",
|
|
2472
|
+
class: "wm-onb__thread-resume",
|
|
2473
|
+
onClick: (p) => e.$emit("resume", l)
|
|
2474
|
+
}, v(s.t("onboarding.resume")), 9, Hn)
|
|
2475
|
+
]))), 128)),
|
|
2476
|
+
s.filteredThreads.length ? y("", !0) : (c(), u("div", zn, v(s.t("onboarding.noResults", { query: r.query })), 1))
|
|
2486
2477
|
])
|
|
2487
2478
|
])) : y("", !0)
|
|
2488
2479
|
]);
|
|
2489
2480
|
}
|
|
2490
|
-
const
|
|
2491
|
-
function
|
|
2481
|
+
const $n = /* @__PURE__ */ N(hn, [["render", qn], ["__scopeId", "data-v-a3b35a29"]]);
|
|
2482
|
+
function Kn(e) {
|
|
2492
2483
|
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();
|
|
2493
2484
|
}
|
|
2494
|
-
const
|
|
2485
|
+
const Vn = {
|
|
2495
2486
|
name: "WmActionResult",
|
|
2496
2487
|
props: {
|
|
2497
2488
|
state: { type: String, default: "success" },
|
|
@@ -2501,13 +2492,13 @@ const Kn = {
|
|
|
2501
2492
|
},
|
|
2502
2493
|
computed: {
|
|
2503
2494
|
detailText() {
|
|
2504
|
-
return
|
|
2495
|
+
return Kn(this.detail);
|
|
2505
2496
|
}
|
|
2506
2497
|
}
|
|
2507
|
-
},
|
|
2498
|
+
}, Wn = {
|
|
2508
2499
|
class: "wm-result__icon",
|
|
2509
2500
|
"aria-hidden": "true"
|
|
2510
|
-
},
|
|
2501
|
+
}, Gn = {
|
|
2511
2502
|
key: 0,
|
|
2512
2503
|
width: "11",
|
|
2513
2504
|
height: "11",
|
|
@@ -2517,7 +2508,7 @@ const Kn = {
|
|
|
2517
2508
|
"stroke-width": "2.8",
|
|
2518
2509
|
"stroke-linecap": "round",
|
|
2519
2510
|
"stroke-linejoin": "round"
|
|
2520
|
-
},
|
|
2511
|
+
}, Yn = {
|
|
2521
2512
|
key: 1,
|
|
2522
2513
|
width: "11",
|
|
2523
2514
|
height: "11",
|
|
@@ -2527,7 +2518,7 @@ const Kn = {
|
|
|
2527
2518
|
"stroke-width": "2.6",
|
|
2528
2519
|
"stroke-linecap": "round",
|
|
2529
2520
|
"stroke-linejoin": "round"
|
|
2530
|
-
},
|
|
2521
|
+
}, Jn = {
|
|
2531
2522
|
key: 2,
|
|
2532
2523
|
width: "11",
|
|
2533
2524
|
height: "11",
|
|
@@ -2537,7 +2528,7 @@ const Kn = {
|
|
|
2537
2528
|
"stroke-width": "2.4",
|
|
2538
2529
|
"stroke-linecap": "round",
|
|
2539
2530
|
"stroke-linejoin": "round"
|
|
2540
|
-
},
|
|
2531
|
+
}, Qn = {
|
|
2541
2532
|
key: 3,
|
|
2542
2533
|
width: "12",
|
|
2543
2534
|
height: "12",
|
|
@@ -2547,24 +2538,24 @@ const Kn = {
|
|
|
2547
2538
|
"stroke-width": "2.2",
|
|
2548
2539
|
"stroke-linecap": "round",
|
|
2549
2540
|
"stroke-linejoin": "round"
|
|
2550
|
-
},
|
|
2551
|
-
function
|
|
2541
|
+
}, Xn = { class: "wm-result__body" }, Zn = { class: "wm-result__label" }, es = { class: "wm-result__detail" };
|
|
2542
|
+
function ts(e, t, n, i, r, s) {
|
|
2552
2543
|
return c(), u("div", {
|
|
2553
2544
|
class: O(["wm-result", `wm-result--${n.state}`])
|
|
2554
2545
|
}, [
|
|
2555
|
-
o("span",
|
|
2556
|
-
n.state === "success" ? (c(), u("svg",
|
|
2546
|
+
o("span", Wn, [
|
|
2547
|
+
n.state === "success" ? (c(), u("svg", Gn, [...t[0] || (t[0] = [
|
|
2557
2548
|
o("path", { d: "M20 6L9 17l-5-5" }, null, -1)
|
|
2558
|
-
])])) : n.state === "rejected" ? (c(), u("svg",
|
|
2549
|
+
])])) : n.state === "rejected" ? (c(), u("svg", Yn, [...t[1] || (t[1] = [
|
|
2559
2550
|
o("path", { d: "M18 6L6 18M6 6l12 12" }, null, -1)
|
|
2560
|
-
])])) : n.state === "awaiting" ? (c(), u("svg",
|
|
2551
|
+
])])) : n.state === "awaiting" ? (c(), u("svg", Jn, [...t[2] || (t[2] = [
|
|
2561
2552
|
o("circle", {
|
|
2562
2553
|
cx: "12",
|
|
2563
2554
|
cy: "12",
|
|
2564
2555
|
r: "10"
|
|
2565
2556
|
}, null, -1),
|
|
2566
2557
|
o("polyline", { points: "12 7 12 12 15 14" }, null, -1)
|
|
2567
|
-
])])) : (c(), u("svg",
|
|
2558
|
+
])])) : (c(), u("svg", Qn, [...t[3] || (t[3] = [
|
|
2568
2559
|
o("path", { d: "M10.29 3.86L1.82 18a2 2 0 001.71 3h16.94a2 2 0 001.71-3L13.71 3.86a2 2 0 00-3.42 0z" }, null, -1),
|
|
2569
2560
|
o("line", {
|
|
2570
2561
|
x1: "12",
|
|
@@ -2580,19 +2571,19 @@ function es(e, t, n, i, r, s) {
|
|
|
2580
2571
|
}, null, -1)
|
|
2581
2572
|
])]))
|
|
2582
2573
|
]),
|
|
2583
|
-
o("span",
|
|
2584
|
-
o("span",
|
|
2585
|
-
s.detailText ? (c(), u(
|
|
2574
|
+
o("span", Xn, [
|
|
2575
|
+
o("span", Zn, v(n.label), 1),
|
|
2576
|
+
s.detailText ? (c(), u(B, { key: 0 }, [
|
|
2586
2577
|
t[4] || (t[4] = o("span", {
|
|
2587
2578
|
class: "wm-result__sep",
|
|
2588
2579
|
"aria-hidden": "true"
|
|
2589
2580
|
}, " · ", -1)),
|
|
2590
|
-
o("span",
|
|
2581
|
+
o("span", es, v(s.detailText), 1)
|
|
2591
2582
|
], 64)) : y("", !0)
|
|
2592
2583
|
])
|
|
2593
2584
|
], 2);
|
|
2594
2585
|
}
|
|
2595
|
-
const
|
|
2586
|
+
const ns = /* @__PURE__ */ N(Vn, [["render", ts], ["__scopeId", "data-v-7284acd0"]]), ss = {
|
|
2596
2587
|
name: "WmArtifactFormResponse",
|
|
2597
2588
|
inject: {
|
|
2598
2589
|
// Translator shared by the Messenger shell; French fallback when
|
|
@@ -2608,12 +2599,12 @@ const ts = /* @__PURE__ */ N(Kn, [["render", es], ["__scopeId", "data-v-7284acd0
|
|
|
2608
2599
|
return Array.isArray((e = this.data) == null ? void 0 : e.fields) ? this.data.fields : [];
|
|
2609
2600
|
}
|
|
2610
2601
|
}
|
|
2611
|
-
},
|
|
2612
|
-
function
|
|
2613
|
-
return c(), u("div",
|
|
2614
|
-
o("div",
|
|
2615
|
-
o("div",
|
|
2616
|
-
o("span",
|
|
2602
|
+
}, rs = { class: "wm-art wm-art--formResponse" }, is = { class: "wm-art__head" }, as = { class: "wm-art__title" }, os = { class: "wm-art__badge wm-art__badge--success" }, ls = { class: "wm-art__body" }, cs = { class: "wm-art__fieldLabel" };
|
|
2603
|
+
function ds(e, t, n, i, r, s) {
|
|
2604
|
+
return c(), u("div", rs, [
|
|
2605
|
+
o("div", is, [
|
|
2606
|
+
o("div", as, v(n.data.title || s.t("form.title")), 1),
|
|
2607
|
+
o("span", os, [
|
|
2617
2608
|
t[0] || (t[0] = o("svg", {
|
|
2618
2609
|
width: "11",
|
|
2619
2610
|
height: "11",
|
|
@@ -2630,12 +2621,12 @@ function cs(e, t, n, i, r, s) {
|
|
|
2630
2621
|
ve(" " + v(s.t("form.sent")), 1)
|
|
2631
2622
|
])
|
|
2632
2623
|
]),
|
|
2633
|
-
o("div",
|
|
2634
|
-
(c(!0), u(
|
|
2624
|
+
o("div", ls, [
|
|
2625
|
+
(c(!0), u(B, null, D(s.fields, (a, l) => (c(), u("div", {
|
|
2635
2626
|
key: l,
|
|
2636
2627
|
class: "wm-art__field"
|
|
2637
2628
|
}, [
|
|
2638
|
-
o("div",
|
|
2629
|
+
o("div", cs, v(a.label), 1),
|
|
2639
2630
|
o("div", {
|
|
2640
2631
|
class: O([
|
|
2641
2632
|
"wm-art__fieldValue",
|
|
@@ -2646,7 +2637,7 @@ function cs(e, t, n, i, r, s) {
|
|
|
2646
2637
|
])
|
|
2647
2638
|
]);
|
|
2648
2639
|
}
|
|
2649
|
-
const
|
|
2640
|
+
const us = /* @__PURE__ */ N(ss, [["render", ds], ["__scopeId", "data-v-713aecf1"]]), hs = {
|
|
2650
2641
|
name: "WmArtifactInfoCard",
|
|
2651
2642
|
props: {
|
|
2652
2643
|
data: { type: Object, required: !0 }
|
|
@@ -2661,32 +2652,32 @@ const ds = /* @__PURE__ */ N(ns, [["render", cs], ["__scopeId", "data-v-713aecf1
|
|
|
2661
2652
|
return !!((e = this.data) != null && e.body) || this.fields.length > 0;
|
|
2662
2653
|
}
|
|
2663
2654
|
}
|
|
2664
|
-
},
|
|
2655
|
+
}, ms = { class: "wm-art wm-art--infoCard" }, fs = {
|
|
2665
2656
|
key: 0,
|
|
2666
2657
|
class: "wm-art__image"
|
|
2667
|
-
},
|
|
2658
|
+
}, gs = ["src", "alt"], _s = { class: "wm-art__head" }, ps = { class: "wm-art__headMain" }, vs = { class: "wm-art__title" }, ys = {
|
|
2668
2659
|
key: 0,
|
|
2669
2660
|
class: "wm-art__subtitle"
|
|
2670
|
-
},
|
|
2661
|
+
}, ws = {
|
|
2671
2662
|
key: 1,
|
|
2672
2663
|
class: "wm-art__body"
|
|
2673
|
-
},
|
|
2664
|
+
}, bs = {
|
|
2674
2665
|
key: 0,
|
|
2675
2666
|
class: "wm-art__text"
|
|
2676
|
-
},
|
|
2677
|
-
function
|
|
2678
|
-
return c(), u("div",
|
|
2679
|
-
n.data.image_url ? (c(), u("figure",
|
|
2667
|
+
}, ks = { class: "wm-art__fieldLabel" };
|
|
2668
|
+
function Cs(e, t, n, i, r, s) {
|
|
2669
|
+
return c(), u("div", ms, [
|
|
2670
|
+
n.data.image_url ? (c(), u("figure", fs, [
|
|
2680
2671
|
o("img", {
|
|
2681
2672
|
src: n.data.image_url,
|
|
2682
2673
|
alt: n.data.title || "",
|
|
2683
2674
|
loading: "lazy"
|
|
2684
|
-
}, null, 8,
|
|
2675
|
+
}, null, 8, gs)
|
|
2685
2676
|
])) : y("", !0),
|
|
2686
|
-
o("div",
|
|
2687
|
-
o("div",
|
|
2688
|
-
o("div",
|
|
2689
|
-
n.data.subtitle ? (c(), u("div",
|
|
2677
|
+
o("div", _s, [
|
|
2678
|
+
o("div", ps, [
|
|
2679
|
+
o("div", vs, v(n.data.title), 1),
|
|
2680
|
+
n.data.subtitle ? (c(), u("div", ys, v(n.data.subtitle), 1)) : y("", !0)
|
|
2690
2681
|
]),
|
|
2691
2682
|
n.data.badge && n.data.badge.label ? (c(), u("span", {
|
|
2692
2683
|
key: 0,
|
|
@@ -2696,13 +2687,13 @@ function ks(e, t, n, i, r, s) {
|
|
|
2696
2687
|
])
|
|
2697
2688
|
}, v(n.data.badge.label), 3)) : y("", !0)
|
|
2698
2689
|
]),
|
|
2699
|
-
s.hasBody ? (c(), u("div",
|
|
2700
|
-
n.data.body ? (c(), u("div",
|
|
2701
|
-
s.fields.length ? (c(!0), u(
|
|
2690
|
+
s.hasBody ? (c(), u("div", ws, [
|
|
2691
|
+
n.data.body ? (c(), u("div", bs, v(n.data.body), 1)) : y("", !0),
|
|
2692
|
+
s.fields.length ? (c(!0), u(B, { key: 1 }, D(s.fields, (a, l) => (c(), u("div", {
|
|
2702
2693
|
key: l,
|
|
2703
2694
|
class: "wm-art__field"
|
|
2704
2695
|
}, [
|
|
2705
|
-
o("div",
|
|
2696
|
+
o("div", ks, v(a.label), 1),
|
|
2706
2697
|
o("div", {
|
|
2707
2698
|
class: O([
|
|
2708
2699
|
"wm-art__fieldValue",
|
|
@@ -2713,8 +2704,8 @@ function ks(e, t, n, i, r, s) {
|
|
|
2713
2704
|
])) : y("", !0)
|
|
2714
2705
|
]);
|
|
2715
2706
|
}
|
|
2716
|
-
const
|
|
2717
|
-
function
|
|
2707
|
+
const As = /* @__PURE__ */ N(hs, [["render", Cs], ["__scopeId", "data-v-7eae0e4a"]]);
|
|
2708
|
+
function Ss(e, t, n) {
|
|
2718
2709
|
if (!e) return "";
|
|
2719
2710
|
const i = new Date(e);
|
|
2720
2711
|
if (Number.isNaN(i.getTime())) return e;
|
|
@@ -2728,7 +2719,7 @@ function As(e, t, n) {
|
|
|
2728
2719
|
});
|
|
2729
2720
|
return `${r}${n}${s}`;
|
|
2730
2721
|
}
|
|
2731
|
-
const
|
|
2722
|
+
const Ms = {
|
|
2732
2723
|
name: "WmArtifactTicket",
|
|
2733
2724
|
inject: {
|
|
2734
2725
|
// Translator + resolved-language getter shared by the Messenger
|
|
@@ -2746,7 +2737,7 @@ const Ss = {
|
|
|
2746
2737
|
},
|
|
2747
2738
|
formattedDate() {
|
|
2748
2739
|
var e;
|
|
2749
|
-
return
|
|
2740
|
+
return Ss(
|
|
2750
2741
|
(e = this.data) == null ? void 0 : e.created_at,
|
|
2751
2742
|
re(this.wmLocale()),
|
|
2752
2743
|
this.t("ticket.dateAt")
|
|
@@ -2774,13 +2765,13 @@ const Ss = {
|
|
|
2774
2765
|
return /high|haute|élev|elev|critic|critiq|urgent/.test(t) ? 3 : /low|basse|faible|minor/.test(t) ? 1 : 2;
|
|
2775
2766
|
}
|
|
2776
2767
|
}
|
|
2777
|
-
},
|
|
2768
|
+
}, Ts = { class: "wm-art wm-art--ticket" }, xs = { class: "wm-art__head wm-tk__head" }, Os = { class: "wm-art__title wm-tk__title" }, Ls = { class: "wm-tk__sub" }, Is = { class: "wm-tk__ref" }, Es = {
|
|
2778
2769
|
key: 0,
|
|
2779
2770
|
class: "wm-tk__text"
|
|
2780
|
-
},
|
|
2771
|
+
}, Bs = {
|
|
2781
2772
|
key: 0,
|
|
2782
2773
|
class: "wm-art__body"
|
|
2783
|
-
},
|
|
2774
|
+
}, Rs = { class: "wm-art__fieldLabel" }, Ns = ["data-level"], Ps = {
|
|
2784
2775
|
key: 1,
|
|
2785
2776
|
class: "wm-tk__date",
|
|
2786
2777
|
width: "12",
|
|
@@ -2792,16 +2783,16 @@ const Ss = {
|
|
|
2792
2783
|
"stroke-linecap": "round",
|
|
2793
2784
|
"stroke-linejoin": "round",
|
|
2794
2785
|
"aria-hidden": "true"
|
|
2795
|
-
},
|
|
2786
|
+
}, Fs = {
|
|
2796
2787
|
key: 1,
|
|
2797
2788
|
class: "wm-art__footer wm-tk__footer"
|
|
2798
2789
|
};
|
|
2799
|
-
function
|
|
2800
|
-
return c(), u("div",
|
|
2801
|
-
o("div",
|
|
2802
|
-
o("div",
|
|
2803
|
-
o("div",
|
|
2804
|
-
o("div",
|
|
2790
|
+
function Us(e, t, n, i, r, s) {
|
|
2791
|
+
return c(), u("div", Ts, [
|
|
2792
|
+
o("div", xs, [
|
|
2793
|
+
o("div", Os, v(n.data.title), 1),
|
|
2794
|
+
o("div", Ls, [
|
|
2795
|
+
o("div", Is, [
|
|
2805
2796
|
t[0] || (t[0] = o("svg", {
|
|
2806
2797
|
width: "11",
|
|
2807
2798
|
height: "11",
|
|
@@ -2834,12 +2825,12 @@ function Fs(e, t, n, i, r, s) {
|
|
|
2834
2825
|
]),
|
|
2835
2826
|
n.data.body ? (c(), u("div", Es, v(n.data.body), 1)) : y("", !0)
|
|
2836
2827
|
]),
|
|
2837
|
-
s.fields.length ? (c(), u("div",
|
|
2838
|
-
(c(!0), u(
|
|
2828
|
+
s.fields.length ? (c(), u("div", Bs, [
|
|
2829
|
+
(c(!0), u(B, null, D(s.fields, (a, l) => (c(), u("div", {
|
|
2839
2830
|
key: l,
|
|
2840
2831
|
class: "wm-art__field"
|
|
2841
2832
|
}, [
|
|
2842
|
-
o("div",
|
|
2833
|
+
o("div", Rs, v(a.label), 1),
|
|
2843
2834
|
o("div", {
|
|
2844
2835
|
class: O([
|
|
2845
2836
|
"wm-art__fieldValue",
|
|
@@ -2876,7 +2867,7 @@ function Fs(e, t, n, i, r, s) {
|
|
|
2876
2867
|
height: "9",
|
|
2877
2868
|
rx: "0.5"
|
|
2878
2869
|
}, null, -1)
|
|
2879
|
-
])], 8,
|
|
2870
|
+
])], 8, Ns)) : s.isDate(a.label) ? (c(), u("svg", Ps, [...t[3] || (t[3] = [
|
|
2880
2871
|
o("rect", {
|
|
2881
2872
|
x: "3",
|
|
2882
2873
|
y: "4",
|
|
@@ -2890,7 +2881,7 @@ function Fs(e, t, n, i, r, s) {
|
|
|
2890
2881
|
], 2)
|
|
2891
2882
|
]))), 128))
|
|
2892
2883
|
])) : y("", !0),
|
|
2893
|
-
n.data.created_at ? (c(), u("div",
|
|
2884
|
+
n.data.created_at ? (c(), u("div", Fs, [
|
|
2894
2885
|
t[4] || (t[4] = o("svg", {
|
|
2895
2886
|
width: "11",
|
|
2896
2887
|
height: "11",
|
|
@@ -2915,11 +2906,11 @@ function Fs(e, t, n, i, r, s) {
|
|
|
2915
2906
|
])) : y("", !0)
|
|
2916
2907
|
]);
|
|
2917
2908
|
}
|
|
2918
|
-
const
|
|
2919
|
-
form_response:
|
|
2920
|
-
info_card:
|
|
2921
|
-
ticket:
|
|
2922
|
-
},
|
|
2909
|
+
const Ds = /* @__PURE__ */ N(Ms, [["render", Us], ["__scopeId", "data-v-5f30c914"]]), js = {
|
|
2910
|
+
form_response: us,
|
|
2911
|
+
info_card: As,
|
|
2912
|
+
ticket: Ds
|
|
2913
|
+
}, Hs = {
|
|
2923
2914
|
name: "WmArtifactRenderer",
|
|
2924
2915
|
props: {
|
|
2925
2916
|
// Forme : { kind: string, data: any } (le `data` est validé
|
|
@@ -2930,17 +2921,17 @@ const Us = /* @__PURE__ */ N(Ss, [["render", Fs], ["__scopeId", "data-v-5f30c914
|
|
|
2930
2921
|
component() {
|
|
2931
2922
|
var t;
|
|
2932
2923
|
const e = (t = this.artifact) == null ? void 0 : t.kind;
|
|
2933
|
-
return e &&
|
|
2924
|
+
return e && js[e] || null;
|
|
2934
2925
|
}
|
|
2935
2926
|
}
|
|
2936
2927
|
};
|
|
2937
|
-
function
|
|
2928
|
+
function zs(e, t, n, i, r, s) {
|
|
2938
2929
|
return s.component ? (c(), F(De(s.component), {
|
|
2939
2930
|
key: 0,
|
|
2940
2931
|
data: n.artifact.data
|
|
2941
2932
|
}, null, 8, ["data"])) : y("", !0);
|
|
2942
2933
|
}
|
|
2943
|
-
const
|
|
2934
|
+
const qs = /* @__PURE__ */ N(Hs, [["render", zs]]), $s = {
|
|
2944
2935
|
name: "WmAttachmentPreview",
|
|
2945
2936
|
inject: {
|
|
2946
2937
|
signAttachmentFn: { default: null },
|
|
@@ -3008,15 +2999,15 @@ const zs = /* @__PURE__ */ N(js, [["render", Hs]]), qs = {
|
|
|
3008
2999
|
this.safeHref === "#" && e.preventDefault();
|
|
3009
3000
|
}
|
|
3010
3001
|
}
|
|
3011
|
-
},
|
|
3002
|
+
}, Ks = ["href"], Vs = ["src", "alt"], Ws = ["src"], Gs = ["src"], Ys = ["href", "download"], Js = { class: "wm-att__main" }, Qs = { class: "wm-att__name" }, Xs = {
|
|
3012
3003
|
key: 0,
|
|
3013
3004
|
class: "wm-att__meta"
|
|
3014
|
-
},
|
|
3005
|
+
}, Zs = {
|
|
3015
3006
|
key: 0,
|
|
3016
3007
|
class: "wm-att__spin",
|
|
3017
3008
|
"aria-hidden": "true"
|
|
3018
3009
|
};
|
|
3019
|
-
function
|
|
3010
|
+
function er(e, t, n, i, r, s) {
|
|
3020
3011
|
return c(), u("div", {
|
|
3021
3012
|
class: O(["wm-att", ["wm-att--" + (s.kind || "file")]])
|
|
3022
3013
|
}, [
|
|
@@ -3031,18 +3022,18 @@ function Zs(e, t, n, i, r, s) {
|
|
|
3031
3022
|
src: r.url,
|
|
3032
3023
|
alt: s.displayName,
|
|
3033
3024
|
loading: "lazy"
|
|
3034
|
-
}, null, 8,
|
|
3035
|
-
], 8,
|
|
3025
|
+
}, null, 8, Vs)
|
|
3026
|
+
], 8, Ks)) : s.kind === "audio" && r.url ? (c(), u("audio", {
|
|
3036
3027
|
key: 1,
|
|
3037
3028
|
src: r.url,
|
|
3038
3029
|
controls: "",
|
|
3039
3030
|
preload: "metadata"
|
|
3040
|
-
}, null, 8,
|
|
3031
|
+
}, null, 8, Ws)) : s.kind === "video" && r.url ? (c(), u("video", {
|
|
3041
3032
|
key: 2,
|
|
3042
3033
|
src: r.url,
|
|
3043
3034
|
controls: "",
|
|
3044
3035
|
preload: "metadata"
|
|
3045
|
-
}, null, 8,
|
|
3036
|
+
}, null, 8, Gs)) : (c(), u("a", {
|
|
3046
3037
|
key: 3,
|
|
3047
3038
|
class: "wm-att__file",
|
|
3048
3039
|
href: s.safeHref,
|
|
@@ -3067,15 +3058,15 @@ function Zs(e, t, n, i, r, s) {
|
|
|
3067
3058
|
o("path", { d: "M14 2v6h6" })
|
|
3068
3059
|
])
|
|
3069
3060
|
], -1)),
|
|
3070
|
-
o("span",
|
|
3071
|
-
o("span",
|
|
3072
|
-
s.sizeLabel ? (c(), u("span",
|
|
3061
|
+
o("span", Js, [
|
|
3062
|
+
o("span", Qs, v(s.displayName), 1),
|
|
3063
|
+
s.sizeLabel ? (c(), u("span", Xs, v(s.sizeLabel), 1)) : y("", !0)
|
|
3073
3064
|
]),
|
|
3074
|
-
r.loading ? (c(), u("span",
|
|
3075
|
-
], 8,
|
|
3065
|
+
r.loading ? (c(), u("span", Zs)) : y("", !0)
|
|
3066
|
+
], 8, Ys))
|
|
3076
3067
|
], 2);
|
|
3077
3068
|
}
|
|
3078
|
-
const
|
|
3069
|
+
const tr = /* @__PURE__ */ N($s, [["render", er], ["__scopeId", "data-v-0c877a62"]]), nr = {
|
|
3079
3070
|
name: "WmBubble",
|
|
3080
3071
|
props: {
|
|
3081
3072
|
role: { type: String, default: "ai" },
|
|
@@ -3087,45 +3078,45 @@ const er = /* @__PURE__ */ N(qs, [["render", Zs], ["__scopeId", "data-v-0c877a62
|
|
|
3087
3078
|
return un(this.text);
|
|
3088
3079
|
}
|
|
3089
3080
|
}
|
|
3090
|
-
},
|
|
3091
|
-
function
|
|
3081
|
+
}, sr = ["innerHTML"];
|
|
3082
|
+
function rr(e, t, n, i, r, s) {
|
|
3092
3083
|
return c(), u("div", {
|
|
3093
3084
|
class: O(["wm-bubble", "wm-bubble--" + n.role])
|
|
3094
3085
|
}, [
|
|
3095
3086
|
je(e.$slots, "default", {}, () => [
|
|
3096
|
-
o("span", { innerHTML: s.rendered }, null, 8,
|
|
3087
|
+
o("span", { innerHTML: s.rendered }, null, 8, sr)
|
|
3097
3088
|
], !0)
|
|
3098
3089
|
], 2);
|
|
3099
3090
|
}
|
|
3100
|
-
const
|
|
3101
|
-
function
|
|
3102
|
-
return c(), u("div",
|
|
3091
|
+
const ir = /* @__PURE__ */ N(nr, [["render", rr], ["__scopeId", "data-v-7ab13147"]]), ar = { name: "WmTyping" }, or = { class: "wm-typing" };
|
|
3092
|
+
function lr(e, t, n, i, r, s) {
|
|
3093
|
+
return c(), u("div", or, [...t[0] || (t[0] = [
|
|
3103
3094
|
o("span", { style: { "animation-delay": "0s" } }, null, -1),
|
|
3104
3095
|
o("span", { style: { "animation-delay": "0.2s" } }, null, -1),
|
|
3105
3096
|
o("span", { style: { "animation-delay": "0.4s" } }, null, -1)
|
|
3106
3097
|
])]);
|
|
3107
3098
|
}
|
|
3108
|
-
const
|
|
3099
|
+
const cr = /* @__PURE__ */ N(ar, [["render", lr], ["__scopeId", "data-v-df2447fd"]]);
|
|
3109
3100
|
function Q(e) {
|
|
3110
3101
|
return e ? e.client_msg_id || e.id : "";
|
|
3111
3102
|
}
|
|
3112
|
-
const
|
|
3103
|
+
const dr = {
|
|
3113
3104
|
transferred_to_human: "system.transferredToHuman",
|
|
3114
3105
|
assigned: "system.assigned",
|
|
3115
3106
|
unassigned: "system.unassigned",
|
|
3116
3107
|
resolved: "system.resolved",
|
|
3117
3108
|
reopened: "system.reopened",
|
|
3118
3109
|
idle: "system.idle"
|
|
3119
|
-
},
|
|
3110
|
+
}, ur = 80, hr = 200, mr = {
|
|
3120
3111
|
name: "WmMessageList",
|
|
3121
3112
|
components: {
|
|
3122
3113
|
AIAvatar: le,
|
|
3123
3114
|
HumanAvatar: Re,
|
|
3124
|
-
Bubble:
|
|
3125
|
-
Typing:
|
|
3126
|
-
ActionResult:
|
|
3127
|
-
AttachmentPreview:
|
|
3128
|
-
ArtifactRenderer:
|
|
3115
|
+
Bubble: ir,
|
|
3116
|
+
Typing: cr,
|
|
3117
|
+
ActionResult: ns,
|
|
3118
|
+
AttachmentPreview: tr,
|
|
3119
|
+
ArtifactRenderer: qs
|
|
3129
3120
|
},
|
|
3130
3121
|
inject: {
|
|
3131
3122
|
// Translator + resolved-language getter shared by the Messenger
|
|
@@ -3315,11 +3306,11 @@ const cr = {
|
|
|
3315
3306
|
return `g-${n}`;
|
|
3316
3307
|
},
|
|
3317
3308
|
isAtBottom(e) {
|
|
3318
|
-
return e.scrollHeight - e.scrollTop - e.clientHeight <=
|
|
3309
|
+
return e.scrollHeight - e.scrollTop - e.clientHeight <= ur;
|
|
3319
3310
|
},
|
|
3320
3311
|
onScroll() {
|
|
3321
3312
|
const e = this.$refs.scrollEl;
|
|
3322
|
-
e && (this.showScrollDown = !this.isAtBottom(e), !(this.loadingMore || !this.hasMore) && (this._pendingLoadMore || e.scrollTop <=
|
|
3313
|
+
e && (this.showScrollDown = !this.isAtBottom(e), !(this.loadingMore || !this.hasMore) && (this._pendingLoadMore || e.scrollTop <= hr && (this._pendingLoadMore = !0, this.$emit("load-more"))));
|
|
3323
3314
|
},
|
|
3324
3315
|
// Capture pre-patch scroll state and restore it on the next tick.
|
|
3325
3316
|
//
|
|
@@ -3521,8 +3512,8 @@ const cr = {
|
|
|
3521
3512
|
cornersFor(e, t) {
|
|
3522
3513
|
var Z, ee, te;
|
|
3523
3514
|
const n = e.items, i = (Z = n[t]) == null ? void 0 : Z.kind, r = (ee = n[t - 1]) == null ? void 0 : ee.kind, s = (te = n[t + 1]) == null ? void 0 : te.kind, a = e.role === "user", l = 14, p = 4, k = r == null ? void 0 : r.bottom, b = 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)], H = 0.5, S = (K, ne, J) => K != null && T != null ? K + H >= T : ne === J || ne === "card" && J === "bubble";
|
|
3524
|
-
let P = l,
|
|
3525
|
-
return a ? (k && (
|
|
3515
|
+
let P = l, I = l, U = l, Y = l;
|
|
3516
|
+
return a ? (k && (I = p), (b || !s) && (U = p), k && S(E, k, i == null ? void 0 : i.top) && (P = p), b && S(A, b, i == null ? void 0 : i.bottom) && (Y = p)) : (k && (P = p), (b || !s) && (Y = p), k && S(E, k, i == null ? void 0 : i.top) && (I = p), b && S(A, b, i == null ? void 0 : i.bottom) && (U = p)), { tl: P, tr: I, br: U, bl: Y };
|
|
3526
3517
|
},
|
|
3527
3518
|
// Inline style emitting the four corner CSS variables. Set on
|
|
3528
3519
|
// `.wm-list__row` so they cascade to Bubble/ActionResult/
|
|
@@ -3657,7 +3648,7 @@ const cr = {
|
|
|
3657
3648
|
},
|
|
3658
3649
|
systemLabel(e) {
|
|
3659
3650
|
var r, s, a;
|
|
3660
|
-
const t = (r = e == null ? void 0 : e.payload) == null ? void 0 : r.event, n =
|
|
3651
|
+
const t = (r = e == null ? void 0 : e.payload) == null ? void 0 : r.event, n = dr[t], i = ((s = e == null ? void 0 : e.metadata) == null ? void 0 : s.agent_name) || ((a = e == null ? void 0 : e.author) == null ? void 0 : a.name) || this.t("messageList.anAgent");
|
|
3661
3652
|
return n ? this.t(n, { name: i }) : (e == null ? void 0 : e.text_md) || this.t("messageList.conversationUpdate");
|
|
3662
3653
|
},
|
|
3663
3654
|
scrollToBottom() {
|
|
@@ -3672,77 +3663,77 @@ const cr = {
|
|
|
3672
3663
|
e && (typeof e.scrollTo == "function" ? e.scrollTo({ top: e.scrollHeight, behavior: "smooth" }) : e.scrollTop = e.scrollHeight, this.showScrollDown = !1);
|
|
3673
3664
|
}
|
|
3674
3665
|
}
|
|
3675
|
-
},
|
|
3666
|
+
}, fr = { class: "wm-list__wrap" }, gr = {
|
|
3676
3667
|
key: 0,
|
|
3677
3668
|
class: "wm-list__loadMore",
|
|
3678
3669
|
role: "status",
|
|
3679
3670
|
"aria-live": "polite"
|
|
3680
|
-
},
|
|
3671
|
+
}, _r = { class: "wm-list__loadMore-lbl" }, pr = {
|
|
3681
3672
|
key: 1,
|
|
3682
3673
|
class: "wm-list__historyEnd"
|
|
3683
|
-
},
|
|
3674
|
+
}, vr = {
|
|
3684
3675
|
key: 2,
|
|
3685
3676
|
class: "wm-list__sep"
|
|
3686
|
-
},
|
|
3677
|
+
}, yr = { class: "wm-list__sep-label" }, wr = {
|
|
3687
3678
|
key: 0,
|
|
3688
3679
|
class: "wm-list__sep wm-list__sep--unread"
|
|
3689
|
-
},
|
|
3680
|
+
}, br = { class: "wm-list__sep-label wm-list__sep-label--unread" }, kr = {
|
|
3690
3681
|
key: 0,
|
|
3691
3682
|
class: "wm-list__sysep"
|
|
3692
|
-
},
|
|
3683
|
+
}, Cr = { class: "wm-list__sysep-label" }, Ar = ["data-row-key", "onPointerdown"], Sr = {
|
|
3693
3684
|
key: 0,
|
|
3694
3685
|
class: "wm-list__avatarSlot"
|
|
3695
|
-
},
|
|
3686
|
+
}, Mr = {
|
|
3696
3687
|
key: 5,
|
|
3697
3688
|
class: "wm-list__body"
|
|
3698
|
-
},
|
|
3689
|
+
}, Tr = { key: 0 }, xr = {
|
|
3699
3690
|
key: 1,
|
|
3700
3691
|
"aria-hidden": "true"
|
|
3701
|
-
},
|
|
3692
|
+
}, Or = { key: 2 }, Lr = { key: 0 }, Ir = {
|
|
3702
3693
|
key: 1,
|
|
3703
3694
|
"aria-hidden": "true"
|
|
3704
|
-
}, Er = { key: 2 },
|
|
3695
|
+
}, Er = { key: 2 }, Br = {
|
|
3705
3696
|
key: 3,
|
|
3706
3697
|
class: "wm-list__row wm-list__row--ai fade-up"
|
|
3707
|
-
},
|
|
3708
|
-
function
|
|
3698
|
+
}, Rr = { class: "wm-list__avatarSlot" }, Nr = ["aria-label", "title"];
|
|
3699
|
+
function Pr(e, t, n, i, r, s) {
|
|
3709
3700
|
const a = R("AIAvatar"), l = R("HumanAvatar"), p = R("ActionResult"), k = R("ArtifactRenderer"), b = R("Bubble"), T = R("AttachmentPreview"), E = R("Typing");
|
|
3710
|
-
return c(), u("div",
|
|
3701
|
+
return c(), u("div", fr, [
|
|
3711
3702
|
o("div", {
|
|
3712
3703
|
ref: "scrollEl",
|
|
3713
3704
|
class: O(["wm-list", { "wm-list--silent": r.silentFades }]),
|
|
3714
3705
|
onScrollPassive: t[4] || (t[4] = (...A) => s.onScroll && s.onScroll(...A))
|
|
3715
3706
|
}, [
|
|
3716
|
-
n.loadingMore ? (c(), u("div",
|
|
3707
|
+
n.loadingMore ? (c(), u("div", gr, [
|
|
3717
3708
|
t[6] || (t[6] = o("span", {
|
|
3718
3709
|
class: "wm-list__loadMore-spinner",
|
|
3719
3710
|
"aria-hidden": "true"
|
|
3720
3711
|
}, null, -1)),
|
|
3721
|
-
o("span",
|
|
3722
|
-
])) : s.historyExhausted ? (c(), u("div",
|
|
3723
|
-
n.dateLabel ? (c(), u("div",
|
|
3712
|
+
o("span", _r, v(s.t("messageList.loadingHistory")), 1)
|
|
3713
|
+
])) : s.historyExhausted ? (c(), u("div", pr, v(s.t("messageList.conversationStart")), 1)) : y("", !0),
|
|
3714
|
+
n.dateLabel ? (c(), u("div", vr, [
|
|
3724
3715
|
t[7] || (t[7] = o("div", { class: "wm-list__line" }, null, -1)),
|
|
3725
|
-
o("span",
|
|
3716
|
+
o("span", yr, v(n.dateLabel), 1),
|
|
3726
3717
|
t[8] || (t[8] = o("div", { class: "wm-list__line" }, null, -1))
|
|
3727
3718
|
])) : y("", !0),
|
|
3728
|
-
(c(!0), u(
|
|
3719
|
+
(c(!0), u(B, null, D(s.groups, (A, H) => (c(), u(B, {
|
|
3729
3720
|
key: A.key
|
|
3730
3721
|
}, [
|
|
3731
|
-
A.key === s.unreadGroupKey ? (c(), u("div",
|
|
3722
|
+
A.key === s.unreadGroupKey ? (c(), u("div", wr, [
|
|
3732
3723
|
t[9] || (t[9] = o("div", { class: "wm-list__line wm-list__line--unread" }, null, -1)),
|
|
3733
|
-
o("span",
|
|
3724
|
+
o("span", br, v(s.t("messageList.unread")), 1),
|
|
3734
3725
|
t[10] || (t[10] = o("div", { class: "wm-list__line wm-list__line--unread" }, null, -1))
|
|
3735
3726
|
])) : y("", !0),
|
|
3736
3727
|
A.role === "system" || A.items.length ? (c(), u("div", {
|
|
3737
3728
|
key: 1,
|
|
3738
3729
|
class: O(["wm-list__group", "wm-list__group--" + A.role])
|
|
3739
3730
|
}, [
|
|
3740
|
-
A.role === "system" ? (c(), u("div",
|
|
3731
|
+
A.role === "system" ? (c(), u("div", kr, [
|
|
3741
3732
|
t[11] || (t[11] = o("div", { class: "wm-list__line wm-list__line--strong" }, null, -1)),
|
|
3742
|
-
o("span",
|
|
3733
|
+
o("span", Cr, v(A.systemLabel), 1),
|
|
3743
3734
|
t[12] || (t[12] = o("div", { class: "wm-list__line wm-list__line--strong" }, null, -1))
|
|
3744
|
-
])) : (c(), u(
|
|
3745
|
-
(c(!0), u(
|
|
3735
|
+
])) : (c(), u(B, { key: 1 }, [
|
|
3736
|
+
(c(!0), u(B, null, D(A.items, (S, P) => (c(), u(B, {
|
|
3746
3737
|
key: `${s.messageKey(S.message)}-${S.partKey}`
|
|
3747
3738
|
}, [
|
|
3748
3739
|
o("div", {
|
|
@@ -3755,15 +3746,15 @@ function Nr(e, t, n, i, r, s) {
|
|
|
3755
3746
|
}
|
|
3756
3747
|
]]),
|
|
3757
3748
|
style: q(s.cornersStyle(A, P)),
|
|
3758
|
-
onPointerdown: (
|
|
3759
|
-
onPointerup: t[0] || (t[0] = (
|
|
3760
|
-
onPointercancel: t[1] || (t[1] = (
|
|
3761
|
-
onPointerleave: t[2] || (t[2] = (
|
|
3749
|
+
onPointerdown: (I) => s.onPressStart(`${s.messageKey(S.message)}-${S.partKey}`),
|
|
3750
|
+
onPointerup: t[0] || (t[0] = (I) => s.onPressEnd()),
|
|
3751
|
+
onPointercancel: t[1] || (t[1] = (I) => s.onPressEnd()),
|
|
3752
|
+
onPointerleave: t[2] || (t[2] = (I) => s.onPressEnd()),
|
|
3762
3753
|
onContextmenu: t[3] || (t[3] = G(() => {
|
|
3763
3754
|
}, ["prevent"]))
|
|
3764
3755
|
}, [
|
|
3765
|
-
A.role !== "user" ? (c(), u("div",
|
|
3766
|
-
P === A.items.length - 1 ? (c(), u(
|
|
3756
|
+
A.role !== "user" ? (c(), u("div", Sr, [
|
|
3757
|
+
P === A.items.length - 1 ? (c(), u(B, { key: 0 }, [
|
|
3767
3758
|
A.role === "ai" ? (c(), F(a, {
|
|
3768
3759
|
key: 0,
|
|
3769
3760
|
size: 26,
|
|
@@ -3795,7 +3786,7 @@ function Nr(e, t, n, i, r, s) {
|
|
|
3795
3786
|
}, null, 8, ["artifact"])) : S.renderAs === "artifact" ? (c(), F(k, {
|
|
3796
3787
|
key: 4,
|
|
3797
3788
|
artifact: s.artifactOf(S.message)
|
|
3798
|
-
}, null, 8, ["artifact"])) : (c(), u("div",
|
|
3789
|
+
}, null, 8, ["artifact"])) : (c(), u("div", Mr, [
|
|
3799
3790
|
S.message.text_md ? (c(), F(b, {
|
|
3800
3791
|
key: 0,
|
|
3801
3792
|
role: A.role,
|
|
@@ -3807,37 +3798,37 @@ function Nr(e, t, n, i, r, s) {
|
|
|
3807
3798
|
"wm-list__atts--align-end": A.role === "user"
|
|
3808
3799
|
}])
|
|
3809
3800
|
}, [
|
|
3810
|
-
(c(!0), u(
|
|
3801
|
+
(c(!0), u(B, null, D(s.attachmentsOf(
|
|
3811
3802
|
S.message
|
|
3812
|
-
), (
|
|
3803
|
+
), (I, U) => (c(), F(T, {
|
|
3813
3804
|
key: `${s.messageKey(S.message)}-att-${U}`,
|
|
3814
|
-
attachment:
|
|
3805
|
+
attachment: I
|
|
3815
3806
|
}, null, 8, ["attachment"]))), 128))
|
|
3816
3807
|
], 2)) : y("", !0)
|
|
3817
3808
|
]))
|
|
3818
|
-
], 46,
|
|
3809
|
+
], 46, Ar),
|
|
3819
3810
|
P < A.items.length - 1 && r.pressedItemKey === `${s.messageKey(S.message)}-${S.partKey}` && (A.role !== "user" || s.timeOf(S.message)) ? (c(), u("div", {
|
|
3820
3811
|
key: 0,
|
|
3821
3812
|
class: O(["wm-list__meta wm-list__meta--press", { "wm-list__meta--right": A.role === "user" }])
|
|
3822
3813
|
}, [
|
|
3823
|
-
A.role !== "user" ? (c(), u("span",
|
|
3824
|
-
A.role !== "user" && s.timeOf(S.message) ? (c(), u("span",
|
|
3825
|
-
s.timeOf(S.message) ? (c(), u("span",
|
|
3814
|
+
A.role !== "user" ? (c(), u("span", Tr, v(s.roleLabel(A)), 1)) : y("", !0),
|
|
3815
|
+
A.role !== "user" && s.timeOf(S.message) ? (c(), u("span", xr, "·")) : y("", !0),
|
|
3816
|
+
s.timeOf(S.message) ? (c(), u("span", Or, v(s.timeOf(S.message)), 1)) : y("", !0)
|
|
3826
3817
|
], 2)) : y("", !0)
|
|
3827
3818
|
], 64))), 128)),
|
|
3828
3819
|
(A.role !== "user" || s.lastTimeOf(A)) && !s.hasTrailingOverlay(A) ? (c(), u("div", {
|
|
3829
3820
|
key: 0,
|
|
3830
3821
|
class: O(["wm-list__meta", { "wm-list__meta--right": A.role === "user" }])
|
|
3831
3822
|
}, [
|
|
3832
|
-
A.role !== "user" ? (c(), u("span",
|
|
3833
|
-
A.role !== "user" && s.lastTimeOf(A) ? (c(), u("span",
|
|
3823
|
+
A.role !== "user" ? (c(), u("span", Lr, v(s.roleLabel(A)), 1)) : y("", !0),
|
|
3824
|
+
A.role !== "user" && s.lastTimeOf(A) ? (c(), u("span", Ir, "·")) : y("", !0),
|
|
3834
3825
|
s.lastTimeOf(A) ? (c(), u("span", Er, v(s.lastTimeOf(A)), 1)) : y("", !0)
|
|
3835
3826
|
], 2)) : y("", !0)
|
|
3836
3827
|
], 64))
|
|
3837
3828
|
], 2)) : y("", !0)
|
|
3838
3829
|
], 64))), 128)),
|
|
3839
|
-
n.streamingActive ? (c(), u("div",
|
|
3840
|
-
o("div",
|
|
3830
|
+
n.streamingActive ? (c(), u("div", Br, [
|
|
3831
|
+
o("div", Rr, [
|
|
3841
3832
|
$(a, {
|
|
3842
3833
|
size: 26,
|
|
3843
3834
|
tail: !0,
|
|
@@ -3848,8 +3839,8 @@ function Nr(e, t, n, i, r, s) {
|
|
|
3848
3839
|
$(E)
|
|
3849
3840
|
])) : y("", !0)
|
|
3850
3841
|
], 34),
|
|
3851
|
-
$(
|
|
3852
|
-
default:
|
|
3842
|
+
$(Ie, { name: "wm-scrollDown" }, {
|
|
3843
|
+
default: Ee(() => [
|
|
3853
3844
|
r.showScrollDown ? (c(), u("button", {
|
|
3854
3845
|
key: 0,
|
|
3855
3846
|
type: "button",
|
|
@@ -3871,14 +3862,14 @@ function Nr(e, t, n, i, r, s) {
|
|
|
3871
3862
|
}, [
|
|
3872
3863
|
o("path", { d: "M6 9l6 6 6-6" })
|
|
3873
3864
|
], -1)
|
|
3874
|
-
])], 8,
|
|
3865
|
+
])], 8, Nr)) : y("", !0)
|
|
3875
3866
|
]),
|
|
3876
3867
|
_: 1
|
|
3877
3868
|
})
|
|
3878
3869
|
]);
|
|
3879
3870
|
}
|
|
3880
|
-
const
|
|
3881
|
-
function
|
|
3871
|
+
const Fr = /* @__PURE__ */ N(mr, [["render", Pr], ["__scopeId", "data-v-9ddbd0e3"]]), he = typeof navigator < "u" && !!navigator.mediaDevices && typeof navigator.mediaDevices.getDisplayMedia == "function", ke = typeof window < "u" && typeof window.MediaRecorder < "u";
|
|
3872
|
+
function Ur() {
|
|
3882
3873
|
return ke && [
|
|
3883
3874
|
"video/webm;codecs=vp9,opus",
|
|
3884
3875
|
"video/webm;codecs=vp8,opus",
|
|
@@ -3898,10 +3889,10 @@ function Pe({ audio: e }) {
|
|
|
3898
3889
|
systemAudio: e ? "include" : "exclude"
|
|
3899
3890
|
};
|
|
3900
3891
|
}
|
|
3901
|
-
function
|
|
3892
|
+
function Va(e) {
|
|
3902
3893
|
return e ? e.startsWith("image/") ? "image" : e.startsWith("video/") ? "video" : "file" : "file";
|
|
3903
3894
|
}
|
|
3904
|
-
async function
|
|
3895
|
+
async function Dr() {
|
|
3905
3896
|
if (!he) return null;
|
|
3906
3897
|
let e;
|
|
3907
3898
|
try {
|
|
@@ -3912,7 +3903,7 @@ async function Ur() {
|
|
|
3912
3903
|
return (t == null ? void 0 : t.name) !== "NotAllowedError" && console.error("[media] screenshot picker", t), null;
|
|
3913
3904
|
}
|
|
3914
3905
|
try {
|
|
3915
|
-
return await
|
|
3906
|
+
return await jr(e);
|
|
3916
3907
|
} catch (t) {
|
|
3917
3908
|
return console.error("[media] screenshot capture", t), null;
|
|
3918
3909
|
} finally {
|
|
@@ -3921,7 +3912,7 @@ async function Ur() {
|
|
|
3921
3912
|
});
|
|
3922
3913
|
}
|
|
3923
3914
|
}
|
|
3924
|
-
async function
|
|
3915
|
+
async function jr(e) {
|
|
3925
3916
|
const t = document.createElement("video");
|
|
3926
3917
|
t.muted = !0, t.playsInline = !0, t.srcObject = e, await t.play(), await new Promise((l) => requestAnimationFrame(l));
|
|
3927
3918
|
const n = t.videoWidth || 1280, i = t.videoHeight || 720, r = document.createElement("canvas");
|
|
@@ -3934,7 +3925,7 @@ async function Dr(e) {
|
|
|
3934
3925
|
}), a = (/* @__PURE__ */ new Date()).toISOString().replace(/[:.]/g, "-").slice(0, 19);
|
|
3935
3926
|
return new File([s], `capture-${a}.png`, { type: "image/png" });
|
|
3936
3927
|
}
|
|
3937
|
-
async function
|
|
3928
|
+
async function Hr(e = {}) {
|
|
3938
3929
|
var k;
|
|
3939
3930
|
if (!he || !ke) return null;
|
|
3940
3931
|
let t;
|
|
@@ -3945,7 +3936,7 @@ async function jr(e = {}) {
|
|
|
3945
3936
|
} catch (b) {
|
|
3946
3937
|
return (b == null ? void 0 : b.name) !== "NotAllowedError" && console.error("[media] record picker", b), null;
|
|
3947
3938
|
}
|
|
3948
|
-
const n =
|
|
3939
|
+
const n = Ur();
|
|
3949
3940
|
let i;
|
|
3950
3941
|
try {
|
|
3951
3942
|
i = n ? new window.MediaRecorder(t, { mimeType: n }) : new window.MediaRecorder(t);
|
|
@@ -3999,7 +3990,7 @@ async function jr(e = {}) {
|
|
|
3999
3990
|
}
|
|
4000
3991
|
};
|
|
4001
3992
|
}
|
|
4002
|
-
const
|
|
3993
|
+
const zr = [
|
|
4003
3994
|
{
|
|
4004
3995
|
action: "file",
|
|
4005
3996
|
labelKey: "composer.attachFile",
|
|
@@ -4015,7 +4006,7 @@ const Hr = [
|
|
|
4015
4006
|
labelKey: "composer.recordScreen",
|
|
4016
4007
|
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"
|
|
4017
4008
|
}
|
|
4018
|
-
],
|
|
4009
|
+
], qr = {
|
|
4019
4010
|
name: "WmComposer",
|
|
4020
4011
|
inject: {
|
|
4021
4012
|
// Translator shared by the Messenger shell; French fallback when
|
|
@@ -4049,7 +4040,7 @@ const Hr = [
|
|
|
4049
4040
|
return !this.disabled && !!this.local.trim();
|
|
4050
4041
|
},
|
|
4051
4042
|
attachItems() {
|
|
4052
|
-
return
|
|
4043
|
+
return zr.map((e) => ({
|
|
4053
4044
|
...e,
|
|
4054
4045
|
label: this.t(e.labelKey),
|
|
4055
4046
|
disabled: e.action === "screenshot" && !he || e.action === "record" && (!he || !ke)
|
|
@@ -4123,13 +4114,13 @@ const Hr = [
|
|
|
4123
4114
|
},
|
|
4124
4115
|
async captureScreenshot() {
|
|
4125
4116
|
if (this.disabled) return;
|
|
4126
|
-
const e = await
|
|
4117
|
+
const e = await Dr();
|
|
4127
4118
|
e && this.$emit("attach", e);
|
|
4128
4119
|
},
|
|
4129
4120
|
async startRecording() {
|
|
4130
4121
|
if (this.recording || this.disabled) return;
|
|
4131
4122
|
this.recordingElapsed = 0;
|
|
4132
|
-
const e = await
|
|
4123
|
+
const e = await Hr({
|
|
4133
4124
|
onstart: () => {
|
|
4134
4125
|
this.recording = !0;
|
|
4135
4126
|
},
|
|
@@ -4171,30 +4162,30 @@ const Hr = [
|
|
|
4171
4162
|
!e || !this._vvHandler || (e.removeEventListener("resize", this._vvHandler), e.removeEventListener("scroll", this._vvHandler), this._vvHandler = null);
|
|
4172
4163
|
}
|
|
4173
4164
|
}
|
|
4174
|
-
},
|
|
4165
|
+
}, $r = {
|
|
4175
4166
|
key: 0,
|
|
4176
4167
|
class: "wm-rec"
|
|
4177
|
-
},
|
|
4168
|
+
}, Kr = { class: "wm-rec__lbl" }, Vr = {
|
|
4178
4169
|
key: 1,
|
|
4179
4170
|
class: "wm-compose__menu",
|
|
4180
4171
|
role: "menu"
|
|
4181
|
-
},
|
|
4172
|
+
}, Wr = ["disabled", "onClick"], Gr = { class: "wm-compose__menuIcon" }, Yr = {
|
|
4182
4173
|
viewBox: "0 0 24 24",
|
|
4183
4174
|
width: "14",
|
|
4184
4175
|
height: "14",
|
|
4185
4176
|
"aria-hidden": "true"
|
|
4186
|
-
},
|
|
4187
|
-
function
|
|
4177
|
+
}, Jr = ["d"], Qr = ["placeholder", "disabled"], Xr = { class: "wm-compose__actions" }, Zr = ["title", "aria-label", "disabled"], ei = ["disabled", "aria-label"];
|
|
4178
|
+
function ti(e, t, n, i, r, s) {
|
|
4188
4179
|
return c(), u("div", {
|
|
4189
4180
|
class: O(["wm-compose-wrap", { "wm-compose-wrap--sheet": n.displayMode === "sheet" }]),
|
|
4190
4181
|
style: q(r.kbOffset ? { transform: `translateY(-${r.kbOffset}px)` } : null)
|
|
4191
4182
|
}, [
|
|
4192
|
-
r.recording ? (c(), u("div",
|
|
4183
|
+
r.recording ? (c(), u("div", $r, [
|
|
4193
4184
|
t[8] || (t[8] = o("span", {
|
|
4194
4185
|
class: "wm-rec__dot",
|
|
4195
4186
|
"aria-hidden": "true"
|
|
4196
4187
|
}, null, -1)),
|
|
4197
|
-
o("span",
|
|
4188
|
+
o("span", Kr, v(s.t("composer.recording", { time: s.recordingElapsedLabel })), 1),
|
|
4198
4189
|
o("button", {
|
|
4199
4190
|
type: "button",
|
|
4200
4191
|
class: "wm-rec__stop",
|
|
@@ -4217,16 +4208,16 @@ function ei(e, t, n, i, r, s) {
|
|
|
4217
4208
|
class: "wm-compose__overlay",
|
|
4218
4209
|
onClick: t[2] || (t[2] = (a) => r.attachOpen = !1)
|
|
4219
4210
|
})) : y("", !0),
|
|
4220
|
-
r.attachOpen ? (c(), u("div",
|
|
4221
|
-
(c(!0), u(
|
|
4211
|
+
r.attachOpen ? (c(), u("div", Vr, [
|
|
4212
|
+
(c(!0), u(B, null, D(s.attachItems, (a) => (c(), u("button", {
|
|
4222
4213
|
key: a.action,
|
|
4223
4214
|
type: "button",
|
|
4224
4215
|
class: "wm-compose__menuItem",
|
|
4225
4216
|
disabled: a.disabled,
|
|
4226
4217
|
onClick: (l) => s.onAttachAction(a.action)
|
|
4227
4218
|
}, [
|
|
4228
|
-
o("span",
|
|
4229
|
-
(c(), u("svg",
|
|
4219
|
+
o("span", Gr, [
|
|
4220
|
+
(c(), u("svg", Yr, [
|
|
4230
4221
|
o("path", {
|
|
4231
4222
|
d: a.path,
|
|
4232
4223
|
stroke: "currentColor",
|
|
@@ -4234,11 +4225,11 @@ function ei(e, t, n, i, r, s) {
|
|
|
4234
4225
|
"stroke-linecap": "round",
|
|
4235
4226
|
"stroke-linejoin": "round",
|
|
4236
4227
|
fill: "none"
|
|
4237
|
-
}, null, 8,
|
|
4228
|
+
}, null, 8, Jr)
|
|
4238
4229
|
]))
|
|
4239
4230
|
]),
|
|
4240
4231
|
o("span", null, v(a.label), 1)
|
|
4241
|
-
], 8,
|
|
4232
|
+
], 8, Wr))), 128))
|
|
4242
4233
|
])) : y("", !0),
|
|
4243
4234
|
V(o("textarea", {
|
|
4244
4235
|
ref: "inputEl",
|
|
@@ -4249,10 +4240,10 @@ function ei(e, t, n, i, r, s) {
|
|
|
4249
4240
|
disabled: n.disabled,
|
|
4250
4241
|
onKeydown: t[4] || (t[4] = (...a) => s.onKeydown && s.onKeydown(...a)),
|
|
4251
4242
|
onInput: t[5] || (t[5] = (...a) => s.autosize && s.autosize(...a))
|
|
4252
|
-
}, null, 40,
|
|
4243
|
+
}, null, 40, Qr), [
|
|
4253
4244
|
[X, r.local]
|
|
4254
4245
|
]),
|
|
4255
|
-
o("div",
|
|
4246
|
+
o("div", Xr, [
|
|
4256
4247
|
o("button", {
|
|
4257
4248
|
type: "button",
|
|
4258
4249
|
class: O(["wm-compose__icon", { "is-open": r.attachOpen }]),
|
|
@@ -4274,7 +4265,7 @@ function ei(e, t, n, i, r, s) {
|
|
|
4274
4265
|
}, [
|
|
4275
4266
|
o("path", { d: "M21.44 11.05l-9.19 9.19a6 6 0 01-8.49-8.49l9.19-9.19a4 4 0 015.66 5.66l-9.2 9.19a2 2 0 01-2.83-2.83l8.49-8.48" })
|
|
4276
4267
|
], -1)
|
|
4277
|
-
])], 10,
|
|
4268
|
+
])], 10, Zr),
|
|
4278
4269
|
o("button", {
|
|
4279
4270
|
type: "submit",
|
|
4280
4271
|
class: O(["wm-compose__send", { "is-empty": !s.canSend }]),
|
|
@@ -4294,12 +4285,12 @@ function ei(e, t, n, i, r, s) {
|
|
|
4294
4285
|
}, [
|
|
4295
4286
|
o("path", { d: "M22 2L11 13M22 2l-7 20-4-9-9-4 20-7z" })
|
|
4296
4287
|
], -1)
|
|
4297
|
-
])], 10,
|
|
4288
|
+
])], 10, ei)
|
|
4298
4289
|
])
|
|
4299
4290
|
], 34)
|
|
4300
4291
|
], 6);
|
|
4301
4292
|
}
|
|
4302
|
-
const
|
|
4293
|
+
const ni = /* @__PURE__ */ N(qr, [["render", ti], ["__scopeId", "data-v-01e81a27"]]), si = {
|
|
4303
4294
|
name: "WmSuggestionChips",
|
|
4304
4295
|
props: {
|
|
4305
4296
|
items: { type: Array, default: () => [] },
|
|
@@ -4316,22 +4307,22 @@ const ti = /* @__PURE__ */ N(zr, [["render", ei], ["__scopeId", "data-v-01e81a27
|
|
|
4316
4307
|
return this.items.map((e) => (e == null ? void 0 : e.label) || (e == null ? void 0 : e.text) || "").join("§");
|
|
4317
4308
|
}
|
|
4318
4309
|
}
|
|
4319
|
-
},
|
|
4320
|
-
function
|
|
4310
|
+
}, ri = ["onClick"];
|
|
4311
|
+
function ii(e, t, n, i, r, s) {
|
|
4321
4312
|
return n.items.length ? (c(), u("div", {
|
|
4322
4313
|
key: s.batchKey,
|
|
4323
4314
|
class: "wm-chips"
|
|
4324
4315
|
}, [
|
|
4325
|
-
(c(!0), u(
|
|
4316
|
+
(c(!0), u(B, null, D(n.items, (a, l) => (c(), u("button", {
|
|
4326
4317
|
key: l,
|
|
4327
4318
|
type: "button",
|
|
4328
4319
|
class: "wm-chip",
|
|
4329
4320
|
style: q({ animationDelay: n.baseDelay + l * n.stepDelay + "ms" }),
|
|
4330
4321
|
onClick: (p) => e.$emit("select", a)
|
|
4331
|
-
}, v(a.label), 13,
|
|
4322
|
+
}, v(a.label), 13, ri))), 128))
|
|
4332
4323
|
])) : y("", !0);
|
|
4333
4324
|
}
|
|
4334
|
-
const
|
|
4325
|
+
const ai = /* @__PURE__ */ N(si, [["render", ii], ["__scopeId", "data-v-47ad8085"]]), oi = {
|
|
4335
4326
|
name: "WmApprovalCard",
|
|
4336
4327
|
components: { AIAvatar: le },
|
|
4337
4328
|
inject: {
|
|
@@ -4375,27 +4366,27 @@ const ii = /* @__PURE__ */ N(ni, [["render", ri], ["__scopeId", "data-v-47ad8085
|
|
|
4375
4366
|
return ((e = this.rejectCallback) == null ? void 0 : e.label) || this.t("approval.reject");
|
|
4376
4367
|
}
|
|
4377
4368
|
}
|
|
4378
|
-
},
|
|
4369
|
+
}, li = { class: "wm-approval" }, ci = { class: "wm-approval__head" }, di = { class: "wm-approval__icon" }, ui = { class: "wm-approval__main" }, hi = { class: "wm-approval__title" }, mi = {
|
|
4379
4370
|
key: 0,
|
|
4380
4371
|
class: "wm-approval__detail"
|
|
4381
|
-
},
|
|
4382
|
-
function
|
|
4372
|
+
}, fi = { class: "wm-approval__actions" };
|
|
4373
|
+
function gi(e, t, n, i, r, s) {
|
|
4383
4374
|
const a = R("AIAvatar");
|
|
4384
|
-
return c(), u("div",
|
|
4385
|
-
o("div",
|
|
4386
|
-
o("div",
|
|
4375
|
+
return c(), u("div", li, [
|
|
4376
|
+
o("div", ci, [
|
|
4377
|
+
o("div", di, [
|
|
4387
4378
|
$(a, {
|
|
4388
4379
|
size: 24,
|
|
4389
4380
|
name: n.agentName,
|
|
4390
4381
|
"image-url": n.agentAvatarUrl
|
|
4391
4382
|
}, null, 8, ["name", "image-url"])
|
|
4392
4383
|
]),
|
|
4393
|
-
o("div",
|
|
4394
|
-
o("div",
|
|
4395
|
-
n.detail ? (c(), u("div",
|
|
4384
|
+
o("div", ui, [
|
|
4385
|
+
o("div", hi, v(n.action), 1),
|
|
4386
|
+
n.detail ? (c(), u("div", mi, v(n.detail), 1)) : y("", !0)
|
|
4396
4387
|
])
|
|
4397
4388
|
]),
|
|
4398
|
-
o("div",
|
|
4389
|
+
o("div", fi, [
|
|
4399
4390
|
s.rejectId ? (c(), u("button", {
|
|
4400
4391
|
key: 0,
|
|
4401
4392
|
type: "button",
|
|
@@ -4411,9 +4402,9 @@ function fi(e, t, n, i, r, s) {
|
|
|
4411
4402
|
])
|
|
4412
4403
|
]);
|
|
4413
4404
|
}
|
|
4414
|
-
const
|
|
4405
|
+
const _i = /* @__PURE__ */ N(oi, [["render", gi], ["__scopeId", "data-v-a2bed37e"]]);
|
|
4415
4406
|
let Oe = 0;
|
|
4416
|
-
const
|
|
4407
|
+
const pi = /* @__PURE__ */ new Set([
|
|
4417
4408
|
"text",
|
|
4418
4409
|
"textarea",
|
|
4419
4410
|
"number",
|
|
@@ -4421,7 +4412,7 @@ const _i = /* @__PURE__ */ new Set([
|
|
|
4421
4412
|
"select",
|
|
4422
4413
|
"multiselect",
|
|
4423
4414
|
"date"
|
|
4424
|
-
]),
|
|
4415
|
+
]), vi = {
|
|
4425
4416
|
name: "WmFormCard",
|
|
4426
4417
|
components: { AIAvatar: le },
|
|
4427
4418
|
inject: {
|
|
@@ -4451,7 +4442,7 @@ const _i = /* @__PURE__ */ new Set([
|
|
|
4451
4442
|
// douteux.
|
|
4452
4443
|
normalizedFields() {
|
|
4453
4444
|
var t;
|
|
4454
|
-
return (Array.isArray((t = this.form) == null ? void 0 : t.fields) ? this.form.fields : []).filter((n) => !(!(n != null && n.key) || !(n != null && n.label) || !
|
|
4445
|
+
return (Array.isArray((t = this.form) == null ? void 0 : t.fields) ? this.form.fields : []).filter((n) => !(!(n != null && n.key) || !(n != null && n.label) || !pi.has(n == null ? void 0 : n.type) || (n.type === "select" || n.type === "multiselect") && (!Array.isArray(n.options) || n.options.length === 0)));
|
|
4455
4446
|
}
|
|
4456
4447
|
},
|
|
4457
4448
|
created() {
|
|
@@ -4504,54 +4495,54 @@ const _i = /* @__PURE__ */ new Set([
|
|
|
4504
4495
|
}
|
|
4505
4496
|
}
|
|
4506
4497
|
}
|
|
4507
|
-
},
|
|
4498
|
+
}, yi = { class: "wm-form" }, wi = { class: "wm-form__head" }, bi = { class: "wm-form__icon" }, ki = { class: "wm-form__main" }, Ci = { class: "wm-form__title" }, Ai = {
|
|
4508
4499
|
key: 0,
|
|
4509
4500
|
class: "wm-form__detail"
|
|
4510
|
-
},
|
|
4501
|
+
}, Si = ["for"], Mi = {
|
|
4511
4502
|
key: 0,
|
|
4512
4503
|
class: "wm-form__req",
|
|
4513
4504
|
"aria-hidden": "true"
|
|
4514
|
-
},
|
|
4505
|
+
}, Ti = ["id", "onUpdate:modelValue", "placeholder", "required", "disabled"], xi = ["id", "onUpdate:modelValue", "placeholder", "required", "disabled"], Oi = ["id", "onUpdate:modelValue", "placeholder", "required", "disabled"], Li = ["id", "onUpdate:modelValue", "required", "disabled"], Ii = {
|
|
4515
4506
|
key: 4,
|
|
4516
4507
|
class: "wm-form__bool"
|
|
4517
|
-
}, Ei = ["id", "onUpdate:modelValue", "disabled"],
|
|
4508
|
+
}, Ei = ["id", "onUpdate:modelValue", "disabled"], Bi = ["id", "onUpdate:modelValue", "required", "disabled"], Ri = {
|
|
4518
4509
|
value: "",
|
|
4519
4510
|
disabled: ""
|
|
4520
|
-
},
|
|
4511
|
+
}, Ni = ["value"], Pi = {
|
|
4521
4512
|
key: 6,
|
|
4522
4513
|
class: "wm-form__multi"
|
|
4523
|
-
},
|
|
4514
|
+
}, Fi = ["value", "checked", "disabled", "onChange"], Ui = {
|
|
4524
4515
|
key: 0,
|
|
4525
4516
|
class: "wm-form__err"
|
|
4526
|
-
},
|
|
4517
|
+
}, Di = ["disabled"], ji = {
|
|
4527
4518
|
key: 0,
|
|
4528
4519
|
class: "wm-form__spinner",
|
|
4529
4520
|
"aria-hidden": "true"
|
|
4530
|
-
},
|
|
4521
|
+
}, Hi = {
|
|
4531
4522
|
key: 2,
|
|
4532
4523
|
class: "wm-form__doneLbl"
|
|
4533
4524
|
};
|
|
4534
|
-
function
|
|
4525
|
+
function zi(e, t, n, i, r, s) {
|
|
4535
4526
|
const a = R("AIAvatar");
|
|
4536
|
-
return c(), u("div",
|
|
4537
|
-
o("div",
|
|
4538
|
-
o("div",
|
|
4527
|
+
return c(), u("div", yi, [
|
|
4528
|
+
o("div", wi, [
|
|
4529
|
+
o("div", bi, [
|
|
4539
4530
|
$(a, {
|
|
4540
4531
|
size: 24,
|
|
4541
4532
|
name: n.agentName,
|
|
4542
4533
|
"image-url": n.agentAvatarUrl
|
|
4543
4534
|
}, null, 8, ["name", "image-url"])
|
|
4544
4535
|
]),
|
|
4545
|
-
o("div",
|
|
4546
|
-
o("div",
|
|
4547
|
-
n.form.description ? (c(), u("div",
|
|
4536
|
+
o("div", ki, [
|
|
4537
|
+
o("div", Ci, v(n.form.title || s.t("form.title")), 1),
|
|
4538
|
+
n.form.description ? (c(), u("div", Ai, v(n.form.description), 1)) : y("", !0)
|
|
4548
4539
|
])
|
|
4549
4540
|
]),
|
|
4550
4541
|
o("form", {
|
|
4551
4542
|
class: "wm-form__body",
|
|
4552
4543
|
onSubmit: t[0] || (t[0] = G((...l) => s.onSubmit && s.onSubmit(...l), ["prevent"]))
|
|
4553
4544
|
}, [
|
|
4554
|
-
(c(!0), u(
|
|
4545
|
+
(c(!0), u(B, null, D(s.normalizedFields, (l) => (c(), u("div", {
|
|
4555
4546
|
key: l.key,
|
|
4556
4547
|
class: "wm-form__field"
|
|
4557
4548
|
}, [
|
|
@@ -4560,8 +4551,8 @@ function Hi(e, t, n, i, r, s) {
|
|
|
4560
4551
|
class: "wm-form__label"
|
|
4561
4552
|
}, [
|
|
4562
4553
|
ve(v(l.label), 1),
|
|
4563
|
-
l.required ? (c(), u("span",
|
|
4564
|
-
], 8,
|
|
4554
|
+
l.required ? (c(), u("span", Mi, "*")) : y("", !0)
|
|
4555
|
+
], 8, Si),
|
|
4565
4556
|
l.type === "text" ? V((c(), u("input", {
|
|
4566
4557
|
key: 0,
|
|
4567
4558
|
id: `wm-f-${r._uid}-${l.key}`,
|
|
@@ -4571,7 +4562,7 @@ function Hi(e, t, n, i, r, s) {
|
|
|
4571
4562
|
placeholder: l.placeholder || "",
|
|
4572
4563
|
required: l.required,
|
|
4573
4564
|
disabled: n.readOnly || r.busy
|
|
4574
|
-
}, null, 8,
|
|
4565
|
+
}, null, 8, Ti)), [
|
|
4575
4566
|
[X, r.values[l.key]]
|
|
4576
4567
|
]) : l.type === "textarea" ? V((c(), u("textarea", {
|
|
4577
4568
|
key: 1,
|
|
@@ -4582,7 +4573,7 @@ function Hi(e, t, n, i, r, s) {
|
|
|
4582
4573
|
placeholder: l.placeholder || "",
|
|
4583
4574
|
required: l.required,
|
|
4584
4575
|
disabled: n.readOnly || r.busy
|
|
4585
|
-
}, null, 8,
|
|
4576
|
+
}, null, 8, xi)), [
|
|
4586
4577
|
[X, r.values[l.key]]
|
|
4587
4578
|
]) : l.type === "number" ? V((c(), u("input", {
|
|
4588
4579
|
key: 2,
|
|
@@ -4593,7 +4584,7 @@ function Hi(e, t, n, i, r, s) {
|
|
|
4593
4584
|
placeholder: l.placeholder || "",
|
|
4594
4585
|
required: l.required,
|
|
4595
4586
|
disabled: n.readOnly || r.busy
|
|
4596
|
-
}, null, 8,
|
|
4587
|
+
}, null, 8, Oi)), [
|
|
4597
4588
|
[
|
|
4598
4589
|
X,
|
|
4599
4590
|
r.values[l.key],
|
|
@@ -4608,9 +4599,9 @@ function Hi(e, t, n, i, r, s) {
|
|
|
4608
4599
|
class: "wm-form__input",
|
|
4609
4600
|
required: l.required,
|
|
4610
4601
|
disabled: n.readOnly || r.busy
|
|
4611
|
-
}, null, 8,
|
|
4602
|
+
}, null, 8, Li)), [
|
|
4612
4603
|
[X, r.values[l.key]]
|
|
4613
|
-
]) : l.type === "boolean" ? (c(), u("label",
|
|
4604
|
+
]) : l.type === "boolean" ? (c(), u("label", Ii, [
|
|
4614
4605
|
V(o("input", {
|
|
4615
4606
|
id: `wm-f-${r._uid}-${l.key}`,
|
|
4616
4607
|
"onUpdate:modelValue": (p) => r.values[l.key] = p,
|
|
@@ -4628,15 +4619,15 @@ function Hi(e, t, n, i, r, s) {
|
|
|
4628
4619
|
required: l.required,
|
|
4629
4620
|
disabled: n.readOnly || r.busy
|
|
4630
4621
|
}, [
|
|
4631
|
-
o("option",
|
|
4632
|
-
(c(!0), u(
|
|
4622
|
+
o("option", Ri, v(l.placeholder || s.t("form.choose")), 1),
|
|
4623
|
+
(c(!0), u(B, null, D(l.options, (p) => (c(), u("option", {
|
|
4633
4624
|
key: p.value,
|
|
4634
4625
|
value: p.value
|
|
4635
|
-
}, v(p.label), 9,
|
|
4636
|
-
], 8,
|
|
4626
|
+
}, v(p.label), 9, Ni))), 128))
|
|
4627
|
+
], 8, Bi)), [
|
|
4637
4628
|
[ze, r.values[l.key]]
|
|
4638
|
-
]) : l.type === "multiselect" ? (c(), u("div",
|
|
4639
|
-
(c(!0), u(
|
|
4629
|
+
]) : l.type === "multiselect" ? (c(), u("div", Pi, [
|
|
4630
|
+
(c(!0), u(B, null, D(l.options, (p) => (c(), u("label", {
|
|
4640
4631
|
key: p.value,
|
|
4641
4632
|
class: "wm-form__multiItem"
|
|
4642
4633
|
}, [
|
|
@@ -4650,25 +4641,25 @@ function Hi(e, t, n, i, r, s) {
|
|
|
4650
4641
|
p.value,
|
|
4651
4642
|
k.target.checked
|
|
4652
4643
|
)
|
|
4653
|
-
}, null, 40,
|
|
4644
|
+
}, null, 40, Fi),
|
|
4654
4645
|
o("span", null, v(p.label), 1)
|
|
4655
4646
|
]))), 128))
|
|
4656
4647
|
])) : y("", !0)
|
|
4657
4648
|
]))), 128)),
|
|
4658
|
-
r.error ? (c(), u("div",
|
|
4659
|
-
n.readOnly ? (c(), u("div",
|
|
4649
|
+
r.error ? (c(), u("div", Ui, v(r.error), 1)) : y("", !0),
|
|
4650
|
+
n.readOnly ? (c(), u("div", Hi, v(s.t("form.responseSent")), 1)) : (c(), u("button", {
|
|
4660
4651
|
key: 1,
|
|
4661
4652
|
type: "submit",
|
|
4662
4653
|
class: "wm-form__submit",
|
|
4663
4654
|
disabled: r.busy
|
|
4664
4655
|
}, [
|
|
4665
|
-
r.busy ? (c(), u("span",
|
|
4656
|
+
r.busy ? (c(), u("span", ji)) : y("", !0),
|
|
4666
4657
|
o("span", null, v(r.busy ? s.t("common.sending") : n.form.submit_label || s.t("common.send")), 1)
|
|
4667
|
-
], 8,
|
|
4658
|
+
], 8, Di))
|
|
4668
4659
|
], 32)
|
|
4669
4660
|
]);
|
|
4670
4661
|
}
|
|
4671
|
-
const
|
|
4662
|
+
const qi = /* @__PURE__ */ N(vi, [["render", zi], ["__scopeId", "data-v-fe65cc56"]]), $i = {
|
|
4672
4663
|
name: "WmFeedback",
|
|
4673
4664
|
inject: {
|
|
4674
4665
|
// Translator shared by the Messenger shell; French fallback when
|
|
@@ -4702,13 +4693,13 @@ const zi = /* @__PURE__ */ N(pi, [["render", Hi], ["__scopeId", "data-v-fe65cc56
|
|
|
4702
4693
|
!this.sel || this.busy || this.$emit("submit", { rating: this.sel });
|
|
4703
4694
|
}
|
|
4704
4695
|
}
|
|
4705
|
-
},
|
|
4696
|
+
}, Ki = { class: "wm-fb" }, Vi = { class: "wm-fb__title" }, Wi = { class: "wm-fb__sub" }, Gi = { class: "wm-fb__row" }, Yi = ["onClick"], Ji = { class: "wm-fb__emoji" }, Qi = { class: "wm-fb__label" }, Xi = ["disabled"], Zi = {
|
|
4706
4697
|
key: 1,
|
|
4707
4698
|
class: "wm-fb__done"
|
|
4708
|
-
},
|
|
4709
|
-
function
|
|
4710
|
-
return c(), u("div",
|
|
4711
|
-
n.done ? (c(), u("div",
|
|
4699
|
+
}, ea = { class: "wm-fb__doneTitle" }, ta = { class: "wm-fb__doneSub" };
|
|
4700
|
+
function na(e, t, n, i, r, s) {
|
|
4701
|
+
return c(), u("div", Ki, [
|
|
4702
|
+
n.done ? (c(), u("div", Zi, [
|
|
4712
4703
|
t[1] || (t[1] = o("div", { class: "wm-fb__check" }, [
|
|
4713
4704
|
o("svg", {
|
|
4714
4705
|
width: "16",
|
|
@@ -4724,32 +4715,32 @@ function ta(e, t, n, i, r, s) {
|
|
|
4724
4715
|
o("path", { d: "M20 6L9 17l-5-5" })
|
|
4725
4716
|
])
|
|
4726
4717
|
], -1)),
|
|
4727
|
-
o("div",
|
|
4728
|
-
o("div",
|
|
4729
|
-
])) : (c(), u(
|
|
4730
|
-
o("div",
|
|
4731
|
-
o("div",
|
|
4732
|
-
o("div",
|
|
4733
|
-
(c(!0), u(
|
|
4718
|
+
o("div", ea, v(s.t("feedback.doneTitle")), 1),
|
|
4719
|
+
o("div", ta, v(s.t("feedback.doneSubtitle")), 1)
|
|
4720
|
+
])) : (c(), u(B, { key: 0 }, [
|
|
4721
|
+
o("div", Vi, v(s.t("feedback.question")), 1),
|
|
4722
|
+
o("div", Wi, v(s.t("feedback.subtitle")), 1),
|
|
4723
|
+
o("div", Gi, [
|
|
4724
|
+
(c(!0), u(B, null, D(s.options, (a) => (c(), u("button", {
|
|
4734
4725
|
key: a.v,
|
|
4735
4726
|
type: "button",
|
|
4736
4727
|
class: O(["wm-fb__opt", { "is-selected": r.sel === a.v }]),
|
|
4737
4728
|
onClick: (l) => r.sel = a.v
|
|
4738
4729
|
}, [
|
|
4739
|
-
o("span",
|
|
4740
|
-
o("span",
|
|
4741
|
-
], 10,
|
|
4730
|
+
o("span", Ji, v(a.e), 1),
|
|
4731
|
+
o("span", Qi, v(a.l), 1)
|
|
4732
|
+
], 10, Yi))), 128))
|
|
4742
4733
|
]),
|
|
4743
4734
|
o("button", {
|
|
4744
4735
|
type: "button",
|
|
4745
4736
|
class: "wm-fb__send",
|
|
4746
4737
|
disabled: !r.sel || n.busy,
|
|
4747
4738
|
onClick: t[0] || (t[0] = (...a) => s.onSend && s.onSend(...a))
|
|
4748
|
-
}, v(n.busy ? s.t("common.sending") : s.t("feedback.submit")), 9,
|
|
4739
|
+
}, v(n.busy ? s.t("common.sending") : s.t("feedback.submit")), 9, Xi)
|
|
4749
4740
|
], 64))
|
|
4750
4741
|
]);
|
|
4751
4742
|
}
|
|
4752
|
-
const
|
|
4743
|
+
const sa = /* @__PURE__ */ N($i, [["render", na], ["__scopeId", "data-v-9b630564"]]), ra = {
|
|
4753
4744
|
name: "WmMoreMenu",
|
|
4754
4745
|
inject: {
|
|
4755
4746
|
// Translator shared by the Messenger shell; French fallback when
|
|
@@ -4792,24 +4783,24 @@ const na = /* @__PURE__ */ N(qi, [["render", ta], ["__scopeId", "data-v-9b630564
|
|
|
4792
4783
|
this.browserNotifOn = !this.browserNotifOn, this.$emit("browser-notif-toggle", this.browserNotifOn);
|
|
4793
4784
|
}
|
|
4794
4785
|
}
|
|
4795
|
-
},
|
|
4786
|
+
}, ia = { class: "wm-mm" }, aa = {
|
|
4796
4787
|
class: "wm-mm__pop",
|
|
4797
4788
|
role: "menu"
|
|
4798
|
-
},
|
|
4789
|
+
}, oa = {
|
|
4799
4790
|
key: 0,
|
|
4800
4791
|
class: "wm-mm__section"
|
|
4801
|
-
},
|
|
4792
|
+
}, la = { class: "wm-mm__label" }, ca = { class: "wm-mm__label" }, da = {
|
|
4802
4793
|
key: 1,
|
|
4803
4794
|
class: "wm-mm__sep"
|
|
4804
|
-
},
|
|
4805
|
-
function
|
|
4806
|
-
return c(), u("div",
|
|
4795
|
+
}, ua = { class: "wm-mm__section" }, ha = { class: "wm-mm__label" }, ma = { class: "wm-mm__label" }, fa = { class: "wm-mm__section" }, ga = { class: "wm-mm__label" }, _a = { class: "wm-mm__label" };
|
|
4796
|
+
function pa(e, t, n, i, r, s) {
|
|
4797
|
+
return c(), u("div", ia, [
|
|
4807
4798
|
o("div", {
|
|
4808
4799
|
class: "wm-mm__scrim",
|
|
4809
4800
|
onClick: t[0] || (t[0] = (a) => e.$emit("close"))
|
|
4810
4801
|
}),
|
|
4811
|
-
o("div",
|
|
4812
|
-
n.canRename || n.canExport ? (c(), u("div",
|
|
4802
|
+
o("div", aa, [
|
|
4803
|
+
n.canRename || n.canExport ? (c(), u("div", oa, [
|
|
4813
4804
|
n.canRename ? (c(), u("button", {
|
|
4814
4805
|
key: 0,
|
|
4815
4806
|
type: "button",
|
|
@@ -4832,7 +4823,7 @@ function _a(e, t, n, i, r, s) {
|
|
|
4832
4823
|
o("path", { d: "M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4 12.5-12.5z" })
|
|
4833
4824
|
])
|
|
4834
4825
|
], -1)),
|
|
4835
|
-
o("span",
|
|
4826
|
+
o("span", la, v(s.t("moreMenu.editTitle")), 1)
|
|
4836
4827
|
])) : y("", !0),
|
|
4837
4828
|
n.canExport ? (c(), u("button", {
|
|
4838
4829
|
key: 1,
|
|
@@ -4855,12 +4846,12 @@ function _a(e, t, n, i, r, s) {
|
|
|
4855
4846
|
o("path", { d: "M4 12v8a2 2 0 002 2h12a2 2 0 002-2v-8M16 6l-4-4-4 4M12 2v13" })
|
|
4856
4847
|
])
|
|
4857
4848
|
], -1)),
|
|
4858
|
-
o("span",
|
|
4849
|
+
o("span", ca, v(s.t("moreMenu.exportTranscript")), 1),
|
|
4859
4850
|
t[9] || (t[9] = o("span", { class: "wm-mm__hint" }, ".txt", -1))
|
|
4860
4851
|
])) : y("", !0)
|
|
4861
4852
|
])) : y("", !0),
|
|
4862
|
-
n.canRename || n.canExport ? (c(), u("div",
|
|
4863
|
-
o("div",
|
|
4853
|
+
n.canRename || n.canExport ? (c(), u("div", da)) : y("", !0),
|
|
4854
|
+
o("div", ua, [
|
|
4864
4855
|
o("button", {
|
|
4865
4856
|
type: "button",
|
|
4866
4857
|
class: "wm-mm__item",
|
|
@@ -4882,7 +4873,7 @@ function _a(e, t, n, i, r, s) {
|
|
|
4882
4873
|
o("path", { d: "M15.54 8.46a5 5 0 010 7.07M19.07 4.93a10 10 0 010 14.14" })
|
|
4883
4874
|
])
|
|
4884
4875
|
], -1)),
|
|
4885
|
-
o("span",
|
|
4876
|
+
o("span", ha, v(s.t("moreMenu.sound")), 1),
|
|
4886
4877
|
o("span", {
|
|
4887
4878
|
class: O(["wm-mm__toggle", { "wm-mm__toggle--on": r.soundOn }])
|
|
4888
4879
|
}, [...t[10] || (t[10] = [
|
|
@@ -4909,7 +4900,7 @@ function _a(e, t, n, i, r, s) {
|
|
|
4909
4900
|
o("path", { d: "M15 17h5l-1.4-1.4A2 2 0 0118 14.2V11a6 6 0 10-12 0v3.2c0 .5-.2 1-.6 1.4L4 17h5m6 0a3 3 0 11-6 0" })
|
|
4910
4901
|
])
|
|
4911
4902
|
], -1)),
|
|
4912
|
-
o("span",
|
|
4903
|
+
o("span", ma, v(s.t("moreMenu.browserNotifications")), 1),
|
|
4913
4904
|
o("span", {
|
|
4914
4905
|
class: O(["wm-mm__toggle", { "wm-mm__toggle--on": r.browserNotifOn }])
|
|
4915
4906
|
}, [...t[12] || (t[12] = [
|
|
@@ -4918,7 +4909,7 @@ function _a(e, t, n, i, r, s) {
|
|
|
4918
4909
|
])
|
|
4919
4910
|
]),
|
|
4920
4911
|
t[16] || (t[16] = o("div", { class: "wm-mm__sep" }, null, -1)),
|
|
4921
|
-
o("div",
|
|
4912
|
+
o("div", fa, [
|
|
4922
4913
|
n.statusUrl ? (c(), u("button", {
|
|
4923
4914
|
key: 0,
|
|
4924
4915
|
type: "button",
|
|
@@ -4940,7 +4931,7 @@ function _a(e, t, n, i, r, s) {
|
|
|
4940
4931
|
o("path", { d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zM10 6v4l3 2" })
|
|
4941
4932
|
])
|
|
4942
4933
|
], -1)),
|
|
4943
|
-
o("span",
|
|
4934
|
+
o("span", ga, v(s.t("moreMenu.serviceStatus")), 1)
|
|
4944
4935
|
])) : y("", !0),
|
|
4945
4936
|
n.helpUrl ? (c(), u("button", {
|
|
4946
4937
|
key: 1,
|
|
@@ -4963,13 +4954,13 @@ function _a(e, t, n, i, r, s) {
|
|
|
4963
4954
|
o("path", { d: "M9 11a3 3 0 116 0c0 2-3 2-3 5M12 19h.01M12 22a10 10 0 110-20 10 10 0 010 20z" })
|
|
4964
4955
|
])
|
|
4965
4956
|
], -1)),
|
|
4966
|
-
o("span",
|
|
4957
|
+
o("span", _a, v(s.t("moreMenu.helpCenter")), 1)
|
|
4967
4958
|
])) : y("", !0)
|
|
4968
4959
|
])
|
|
4969
4960
|
])
|
|
4970
4961
|
]);
|
|
4971
4962
|
}
|
|
4972
|
-
const
|
|
4963
|
+
const va = /* @__PURE__ */ N(ra, [["render", pa], ["__scopeId", "data-v-76281e95"]]), ya = {
|
|
4973
4964
|
name: "WmRenameDialog",
|
|
4974
4965
|
inject: {
|
|
4975
4966
|
// Translator shared by the Messenger shell; French fallback when
|
|
@@ -5011,20 +5002,20 @@ const pa = /* @__PURE__ */ N(sa, [["render", _a], ["__scopeId", "data-v-76281e95
|
|
|
5011
5002
|
this.canSubmit && this.$emit("submit", this.value.trim());
|
|
5012
5003
|
}
|
|
5013
5004
|
}
|
|
5014
|
-
},
|
|
5005
|
+
}, wa = { class: "wm-dialog" }, ba = {
|
|
5015
5006
|
class: "wm-dialog__card",
|
|
5016
5007
|
role: "dialog",
|
|
5017
5008
|
"aria-modal": "true"
|
|
5018
|
-
},
|
|
5019
|
-
function
|
|
5020
|
-
return c(), u("div",
|
|
5009
|
+
}, ka = { class: "wm-dialog__head" }, Ca = { class: "wm-dialog__title" }, Aa = ["aria-label"], Sa = { class: "wm-dialog__body" }, Ma = ["placeholder"], Ta = { class: "wm-dialog__actions" }, xa = ["disabled"];
|
|
5010
|
+
function Oa(e, t, n, i, r, s) {
|
|
5011
|
+
return c(), u("div", wa, [
|
|
5021
5012
|
o("div", {
|
|
5022
5013
|
class: "wm-dialog__scrim",
|
|
5023
5014
|
onClick: t[0] || (t[0] = (a) => e.$emit("close"))
|
|
5024
5015
|
}),
|
|
5025
|
-
o("div",
|
|
5026
|
-
o("div",
|
|
5027
|
-
o("div",
|
|
5016
|
+
o("div", ba, [
|
|
5017
|
+
o("div", ka, [
|
|
5018
|
+
o("div", Ca, v(n.title || s.t("rename.title")), 1),
|
|
5028
5019
|
o("button", {
|
|
5029
5020
|
type: "button",
|
|
5030
5021
|
class: "wm-dialog__close",
|
|
@@ -5044,9 +5035,9 @@ function xa(e, t, n, i, r, s) {
|
|
|
5044
5035
|
}, [
|
|
5045
5036
|
o("path", { d: "M18 6L6 18M6 6l12 12" })
|
|
5046
5037
|
], -1)
|
|
5047
|
-
])], 8,
|
|
5038
|
+
])], 8, Aa)
|
|
5048
5039
|
]),
|
|
5049
|
-
o("div",
|
|
5040
|
+
o("div", Sa, [
|
|
5050
5041
|
V(o("input", {
|
|
5051
5042
|
ref: "input",
|
|
5052
5043
|
"onUpdate:modelValue": t[2] || (t[2] = (a) => r.value = a),
|
|
@@ -5058,11 +5049,11 @@ function xa(e, t, n, i, r, s) {
|
|
|
5058
5049
|
t[3] || (t[3] = ue(G((...a) => s.onSubmit && s.onSubmit(...a), ["prevent"]), ["enter"])),
|
|
5059
5050
|
t[4] || (t[4] = ue(G((a) => e.$emit("close"), ["prevent"]), ["esc"]))
|
|
5060
5051
|
]
|
|
5061
|
-
}, null, 40,
|
|
5052
|
+
}, null, 40, Ma), [
|
|
5062
5053
|
[X, r.value]
|
|
5063
5054
|
])
|
|
5064
5055
|
]),
|
|
5065
|
-
o("div",
|
|
5056
|
+
o("div", Ta, [
|
|
5066
5057
|
o("button", {
|
|
5067
5058
|
type: "button",
|
|
5068
5059
|
class: "wm-dialog__btn",
|
|
@@ -5073,25 +5064,25 @@ function xa(e, t, n, i, r, s) {
|
|
|
5073
5064
|
class: "wm-dialog__btn wm-dialog__btn--primary",
|
|
5074
5065
|
disabled: !s.canSubmit,
|
|
5075
5066
|
onClick: t[6] || (t[6] = (...a) => s.onSubmit && s.onSubmit(...a))
|
|
5076
|
-
}, v(s.t("common.save")), 9,
|
|
5067
|
+
}, v(s.t("common.save")), 9, xa)
|
|
5077
5068
|
])
|
|
5078
5069
|
])
|
|
5079
5070
|
]);
|
|
5080
5071
|
}
|
|
5081
|
-
const
|
|
5072
|
+
const La = /* @__PURE__ */ N(ya, [["render", Oa], ["__scopeId", "data-v-6d5f94a8"]]), Le = "ww-messenger-tokens", Ia = {
|
|
5082
5073
|
name: "Messenger",
|
|
5083
5074
|
components: {
|
|
5084
5075
|
Launcher: Pt,
|
|
5085
5076
|
Header: ln,
|
|
5086
|
-
Onboarding:
|
|
5087
|
-
MessageList:
|
|
5088
|
-
Composer:
|
|
5089
|
-
SuggestionChips:
|
|
5090
|
-
ApprovalCard:
|
|
5091
|
-
FormCard:
|
|
5092
|
-
Feedback:
|
|
5093
|
-
MoreMenu:
|
|
5094
|
-
RenameDialog:
|
|
5077
|
+
Onboarding: $n,
|
|
5078
|
+
MessageList: Fr,
|
|
5079
|
+
Composer: ni,
|
|
5080
|
+
SuggestionChips: ai,
|
|
5081
|
+
ApprovalCard: _i,
|
|
5082
|
+
FormCard: qi,
|
|
5083
|
+
Feedback: sa,
|
|
5084
|
+
MoreMenu: va,
|
|
5085
|
+
RenameDialog: La
|
|
5095
5086
|
},
|
|
5096
5087
|
mixins: [
|
|
5097
5088
|
ot,
|
|
@@ -5818,13 +5809,13 @@ const Oa = /* @__PURE__ */ N(va, [["render", xa], ["__scopeId", "data-v-6d5f94a8
|
|
|
5818
5809
|
this.launcherHovered = e, this.sendCurrentLauncherSize();
|
|
5819
5810
|
},
|
|
5820
5811
|
sendCurrentLauncherSize() {
|
|
5821
|
-
var T, E, A, H, S, P,
|
|
5812
|
+
var T, E, A, H, S, P, I;
|
|
5822
5813
|
if (this.isOpen) return;
|
|
5823
5814
|
const e = (E = (T = this.$el) == null ? void 0 : T.querySelector) == null ? void 0 : E.call(T, ".wm-launcherWrap");
|
|
5824
5815
|
if (!e) return;
|
|
5825
5816
|
const t = e.getBoundingClientRect();
|
|
5826
5817
|
if (!t.width || !t.height) return;
|
|
5827
|
-
const n = (((A = this.launcherPeeks) == null ? void 0 : A.length) ?? 0) > 0, i = this.launcherHovered ? 28 : 16, r = Math.ceil(t.width), s = Math.ceil(t.height), a = (S = (H = this.$el) == null ? void 0 : H.querySelector) == null ? void 0 : S.call(H, ".wm-launcher"), l = a == null ? void 0 : a.getBoundingClientRect(), p = (
|
|
5818
|
+
const n = (((A = this.launcherPeeks) == null ? void 0 : A.length) ?? 0) > 0, i = this.launcherHovered ? 28 : 16, r = Math.ceil(t.width), s = Math.ceil(t.height), a = (S = (H = this.$el) == null ? void 0 : H.querySelector) == null ? void 0 : S.call(H, ".wm-launcher"), l = a == null ? void 0 : a.getBoundingClientRect(), p = (I = (P = this.$el) == null ? void 0 : P.querySelectorAll) == null ? void 0 : I.call(P, ".wm-peek"), k = p && p.length ? p[p.length - 1] : null;
|
|
5828
5819
|
let b = null;
|
|
5829
5820
|
if (k) {
|
|
5830
5821
|
const U = k.getBoundingClientRect();
|
|
@@ -6027,9 +6018,34 @@ const Oa = /* @__PURE__ */ N(va, [["render", xa], ["__scopeId", "data-v-6d5f94a8
|
|
|
6027
6018
|
console.error("[ww-messenger] attachment upload failed", t);
|
|
6028
6019
|
}
|
|
6029
6020
|
},
|
|
6021
|
+
// Délégation des clics sur les liens `<a href="#...">` rendus dans le
|
|
6022
|
+
// panel (typiquement par le markdown des messages agent). On capture
|
|
6023
|
+
// au niveau du panel pour éviter d'ajouter un listener par composant.
|
|
6024
|
+
onPanelClick(e) {
|
|
6025
|
+
const t = e.target && e.target.closest ? e.target.closest('a[href^="#"]') : null;
|
|
6026
|
+
t && (e.preventDefault(), this.openInternalUrl(t.getAttribute("href")));
|
|
6027
|
+
},
|
|
6028
|
+
// Intercepte les URLs `#...` pour naviguer DANS le messenger plutôt
|
|
6029
|
+
// que d'ouvrir une page externe. Format :
|
|
6030
|
+
// - `#conversation/<convId>` : ouvre cette conv dans le panel
|
|
6031
|
+
// - `#new` : démarre un nouveau draft (composer)
|
|
6032
|
+
// Retourne `true` si le deep-link a été dispatché en interne ;
|
|
6033
|
+
// `false` si l'URL est externe et doit passer par `window.open`.
|
|
6034
|
+
async openInternalUrl(e) {
|
|
6035
|
+
if (typeof e != "string" || !e.startsWith("#")) return !1;
|
|
6036
|
+
const t = e.slice(1);
|
|
6037
|
+
if (t === "new" || t === "new-conversation")
|
|
6038
|
+
return this.isOpen || await this.open(), this.startConv(), !0;
|
|
6039
|
+
if (t.startsWith("conversation/")) {
|
|
6040
|
+
const n = t.slice(13);
|
|
6041
|
+
return n && await this.openFromPeek(n), !0;
|
|
6042
|
+
}
|
|
6043
|
+
return console.warn("[messenger] unknown internal url", e), !0;
|
|
6044
|
+
},
|
|
6030
6045
|
async onQuickLink(e) {
|
|
6031
6046
|
if (e) {
|
|
6032
6047
|
if (e.url) {
|
|
6048
|
+
if (await this.openInternalUrl(e.url)) return;
|
|
6033
6049
|
try {
|
|
6034
6050
|
window.open(e.url, "_blank", "noopener");
|
|
6035
6051
|
} catch {
|
|
@@ -6060,23 +6076,23 @@ const Oa = /* @__PURE__ */ N(va, [["render", xa], ["__scopeId", "data-v-6d5f94a8
|
|
|
6060
6076
|
class: "wm-loading",
|
|
6061
6077
|
"aria-busy": "true",
|
|
6062
6078
|
"aria-live": "polite"
|
|
6063
|
-
},
|
|
6079
|
+
}, Ba = ["aria-label"], Ra = {
|
|
6064
6080
|
key: 0,
|
|
6065
6081
|
class: "wm-state"
|
|
6066
|
-
},
|
|
6082
|
+
}, Na = { class: "wm-state__err" }, Pa = { class: "wm-state__errTitle" }, Fa = { class: "wm-state__errSub" }, Ua = { class: "wm-bottom" }, Da = {
|
|
6067
6083
|
key: 0,
|
|
6068
6084
|
ref: "floatEl",
|
|
6069
6085
|
class: "wm-float"
|
|
6070
|
-
},
|
|
6086
|
+
}, ja = {
|
|
6071
6087
|
key: 1,
|
|
6072
6088
|
class: "wm-actionWait",
|
|
6073
6089
|
role: "status",
|
|
6074
6090
|
"aria-live": "polite"
|
|
6075
|
-
},
|
|
6091
|
+
}, Ha = { class: "wm-actionWait__lbl" }, za = {
|
|
6076
6092
|
key: 2,
|
|
6077
6093
|
class: "wm-attached"
|
|
6078
|
-
},
|
|
6079
|
-
function
|
|
6094
|
+
}, qa = ["aria-label", "onClick"];
|
|
6095
|
+
function $a(e, t, n, i, r, s) {
|
|
6080
6096
|
const a = R("Launcher"), l = R("Header"), p = R("Onboarding"), k = R("MessageList"), b = R("ApprovalCard"), T = R("FormCard"), E = R("Feedback"), A = R("SuggestionChips"), H = R("Composer"), S = R("MoreMenu"), P = R("RenameDialog");
|
|
6081
6097
|
return c(), u("div", {
|
|
6082
6098
|
class: O(["wm-root", `wm-root--${n.displayMode}`])
|
|
@@ -6098,7 +6114,8 @@ function qa(e, t, n, i, r, s) {
|
|
|
6098
6114
|
]),
|
|
6099
6115
|
style: q(r.floatHeight ? { "--wm-float-h": r.floatHeight + "px" } : null),
|
|
6100
6116
|
role: "dialog",
|
|
6101
|
-
"aria-label": "Messenger"
|
|
6117
|
+
"aria-label": "Messenger",
|
|
6118
|
+
onClick: t[5] || (t[5] = (...I) => s.onPanelClick && s.onPanelClick(...I))
|
|
6102
6119
|
}, [
|
|
6103
6120
|
!s.ready && !s.error ? (c(), u("div", Ea, [
|
|
6104
6121
|
s.isEmbedded ? y("", !0) : (c(), u("button", {
|
|
@@ -6106,8 +6123,8 @@ function qa(e, t, n, i, r, s) {
|
|
|
6106
6123
|
type: "button",
|
|
6107
6124
|
class: "wm-loading__close",
|
|
6108
6125
|
"aria-label": s.t("loading.minimize"),
|
|
6109
|
-
onClick: t[0] || (t[0] = (...
|
|
6110
|
-
}, [...t[
|
|
6126
|
+
onClick: t[0] || (t[0] = (...I) => s.close && s.close(...I))
|
|
6127
|
+
}, [...t[6] || (t[6] = [
|
|
6111
6128
|
o("svg", {
|
|
6112
6129
|
width: "13",
|
|
6113
6130
|
height: "13",
|
|
@@ -6121,12 +6138,12 @@ function qa(e, t, n, i, r, s) {
|
|
|
6121
6138
|
}, [
|
|
6122
6139
|
o("path", { d: "M18 6L6 18M6 6l12 12" })
|
|
6123
6140
|
], -1)
|
|
6124
|
-
])], 8,
|
|
6125
|
-
t[
|
|
6141
|
+
])], 8, Ba)),
|
|
6142
|
+
t[7] || (t[7] = o("div", {
|
|
6126
6143
|
class: "wm-loading__spinner",
|
|
6127
6144
|
"aria-hidden": "true"
|
|
6128
6145
|
}, null, -1))
|
|
6129
|
-
])) : (c(), u(
|
|
6146
|
+
])) : (c(), u(B, { key: 1 }, [
|
|
6130
6147
|
$(l, {
|
|
6131
6148
|
title: s.headerTitle,
|
|
6132
6149
|
"team-members": s.teamMembers,
|
|
@@ -6141,9 +6158,9 @@ function qa(e, t, n, i, r, s) {
|
|
|
6141
6158
|
onMore: s.toggleMore,
|
|
6142
6159
|
onClose: s.close
|
|
6143
6160
|
}, null, 8, ["title", "team-members", "response-label", "show-identity", "show-back", "show-close", "more-active", "agent-name", "agent-avatar-url", "onBack", "onMore", "onClose"]),
|
|
6144
|
-
s.error ? (c(), u("div",
|
|
6145
|
-
o("div",
|
|
6146
|
-
t[
|
|
6161
|
+
s.error ? (c(), u("div", Ra, [
|
|
6162
|
+
o("div", Na, [
|
|
6163
|
+
t[8] || (t[8] = o("div", { class: "wm-state__errIcon" }, [
|
|
6147
6164
|
o("svg", {
|
|
6148
6165
|
width: "14",
|
|
6149
6166
|
height: "14",
|
|
@@ -6159,11 +6176,11 @@ function qa(e, t, n, i, r, s) {
|
|
|
6159
6176
|
])
|
|
6160
6177
|
], -1)),
|
|
6161
6178
|
o("div", null, [
|
|
6162
|
-
o("div",
|
|
6163
|
-
o("div",
|
|
6179
|
+
o("div", Pa, v(s.t("error.connectionFailed")), 1),
|
|
6180
|
+
o("div", Fa, v(s.error), 1)
|
|
6164
6181
|
])
|
|
6165
6182
|
])
|
|
6166
|
-
])) : s.currentConv ? (c(), u(
|
|
6183
|
+
])) : s.currentConv ? (c(), u(B, { key: 2 }, [
|
|
6167
6184
|
$(k, {
|
|
6168
6185
|
ref: "messageList",
|
|
6169
6186
|
messages: s.displayedMessages,
|
|
@@ -6178,8 +6195,8 @@ function qa(e, t, n, i, r, s) {
|
|
|
6178
6195
|
"ai-agent-avatar-url": s.agentAvatarUrl,
|
|
6179
6196
|
onLoadMore: s.onLoadMore
|
|
6180
6197
|
}, null, 8, ["messages", "streaming-active", "date-label", "conversation-id", "loading-more", "has-more", "unread-anchor-id", "unread-boundary-ts", "ai-agent-name", "ai-agent-avatar-url", "onLoadMore"]),
|
|
6181
|
-
o("div",
|
|
6182
|
-
s.floatVisible ? (c(), u("div",
|
|
6198
|
+
o("div", Ua, [
|
|
6199
|
+
s.floatVisible ? (c(), u("div", Da, [
|
|
6183
6200
|
s.approvalReady ? (c(), F(b, {
|
|
6184
6201
|
key: 0,
|
|
6185
6202
|
action: s.approvalTitle,
|
|
@@ -6205,19 +6222,19 @@ function qa(e, t, n, i, r, s) {
|
|
|
6205
6222
|
onSelect: s.onSuggestion
|
|
6206
6223
|
}, null, 8, ["items", "onSelect"]))
|
|
6207
6224
|
], 512)) : y("", !0),
|
|
6208
|
-
s.actionInFlight ? (c(), u("div",
|
|
6209
|
-
t[
|
|
6225
|
+
s.actionInFlight ? (c(), u("div", ja, [
|
|
6226
|
+
t[9] || (t[9] = o("span", {
|
|
6210
6227
|
class: "wm-actionWait__spinner",
|
|
6211
6228
|
"aria-hidden": "true"
|
|
6212
6229
|
}, null, -1)),
|
|
6213
|
-
o("span",
|
|
6230
|
+
o("span", Ha, v(s.t("action.inProgress", {
|
|
6214
6231
|
name: s.actionInFlightName
|
|
6215
6232
|
})), 1)
|
|
6216
6233
|
])) : (c(), F(H, {
|
|
6217
6234
|
key: 2,
|
|
6218
6235
|
ref: "composer",
|
|
6219
6236
|
modelValue: r.draft,
|
|
6220
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
6237
|
+
"onUpdate:modelValue": t[1] || (t[1] = (I) => r.draft = I),
|
|
6221
6238
|
placeholder: s.composerPlaceholder,
|
|
6222
6239
|
disabled: !!s.pendingApproval,
|
|
6223
6240
|
"attach-label": s.t("composer.attachFile"),
|
|
@@ -6234,7 +6251,7 @@ function qa(e, t, n, i, r, s) {
|
|
|
6234
6251
|
"browser-notif-enabled": e.browserNotifEnabled,
|
|
6235
6252
|
"status-url": s.statusUrl,
|
|
6236
6253
|
"help-url": s.helpUrl,
|
|
6237
|
-
onClose: t[2] || (t[2] = (
|
|
6254
|
+
onClose: t[2] || (t[2] = (I) => r.moreOpen = !1),
|
|
6238
6255
|
onSoundToggle: e.onSoundToggle,
|
|
6239
6256
|
onBrowserNotifToggle: e.onBrowserNotifToggle,
|
|
6240
6257
|
onAction: s.onMoreAction
|
|
@@ -6243,15 +6260,15 @@ function qa(e, t, n, i, r, s) {
|
|
|
6243
6260
|
key: 1,
|
|
6244
6261
|
"initial-value": s.currentConv.name || "",
|
|
6245
6262
|
title: s.t("rename.dialogTitle"),
|
|
6246
|
-
onClose: t[3] || (t[3] = (
|
|
6263
|
+
onClose: t[3] || (t[3] = (I) => r.renameDialogOpen = !1),
|
|
6247
6264
|
onSubmit: s.onRenameSubmit
|
|
6248
6265
|
}, null, 8, ["initial-value", "title", "onSubmit"])) : y("", !0),
|
|
6249
|
-
r.pendingAttachments.length ? (c(), u("div",
|
|
6250
|
-
(c(!0), u(
|
|
6266
|
+
r.pendingAttachments.length ? (c(), u("div", za, [
|
|
6267
|
+
(c(!0), u(B, null, D(r.pendingAttachments, (I, U) => (c(), u("div", {
|
|
6251
6268
|
key: U,
|
|
6252
6269
|
class: "wm-attached__chip"
|
|
6253
6270
|
}, [
|
|
6254
|
-
t[
|
|
6271
|
+
t[11] || (t[11] = o("svg", {
|
|
6255
6272
|
width: "11",
|
|
6256
6273
|
height: "11",
|
|
6257
6274
|
viewBox: "0 0 24 24",
|
|
@@ -6264,12 +6281,12 @@ function qa(e, t, n, i, r, s) {
|
|
|
6264
6281
|
}, [
|
|
6265
6282
|
o("path", { d: "M21.44 11.05l-9.19 9.19a6 6 0 01-8.49-8.49l9.19-9.19a4 4 0 015.66 5.66l-9.2 9.19a2 2 0 01-2.83-2.83l8.49-8.48" })
|
|
6266
6283
|
], -1)),
|
|
6267
|
-
o("span", null, v(
|
|
6284
|
+
o("span", null, v(I.name), 1),
|
|
6268
6285
|
o("button", {
|
|
6269
6286
|
type: "button",
|
|
6270
6287
|
"aria-label": s.t("attachment.remove"),
|
|
6271
6288
|
onClick: (Y) => r.pendingAttachments.splice(U, 1)
|
|
6272
|
-
}, [...t[
|
|
6289
|
+
}, [...t[10] || (t[10] = [
|
|
6273
6290
|
o("svg", {
|
|
6274
6291
|
width: "10",
|
|
6275
6292
|
height: "10",
|
|
@@ -6283,7 +6300,7 @@ function qa(e, t, n, i, r, s) {
|
|
|
6283
6300
|
}, [
|
|
6284
6301
|
o("path", { d: "M18 6L6 18M6 6l12 12" })
|
|
6285
6302
|
], -1)
|
|
6286
|
-
])], 8,
|
|
6303
|
+
])], 8, qa)
|
|
6287
6304
|
]))), 128))
|
|
6288
6305
|
])) : y("", !0)
|
|
6289
6306
|
], 64)) : (c(), F(p, {
|
|
@@ -6307,7 +6324,7 @@ function qa(e, t, n, i, r, s) {
|
|
|
6307
6324
|
"browser-notif-enabled": e.browserNotifEnabled,
|
|
6308
6325
|
"status-url": s.statusUrl,
|
|
6309
6326
|
"help-url": s.helpUrl,
|
|
6310
|
-
onClose: t[4] || (t[4] = (
|
|
6327
|
+
onClose: t[4] || (t[4] = (I) => r.moreOpen = !1),
|
|
6311
6328
|
onSoundToggle: e.onSoundToggle,
|
|
6312
6329
|
onBrowserNotifToggle: e.onBrowserNotifToggle,
|
|
6313
6330
|
onAction: s.onMoreAction
|
|
@@ -6316,53 +6333,53 @@ function qa(e, t, n, i, r, s) {
|
|
|
6316
6333
|
], 6)) : y("", !0)
|
|
6317
6334
|
], 2);
|
|
6318
6335
|
}
|
|
6319
|
-
const
|
|
6336
|
+
const Wa = /* @__PURE__ */ N(Ia, [["render", $a], ["__scopeId", "data-v-7f3d28ad"]]), Ga = "0.5.31";
|
|
6320
6337
|
export {
|
|
6321
6338
|
le as AIAvatar,
|
|
6322
6339
|
ge as AVATAR_COLORS,
|
|
6323
|
-
|
|
6324
|
-
|
|
6325
|
-
|
|
6326
|
-
|
|
6327
|
-
|
|
6328
|
-
|
|
6329
|
-
|
|
6330
|
-
|
|
6331
|
-
|
|
6340
|
+
ns as ActionResult,
|
|
6341
|
+
_i as ApprovalCard,
|
|
6342
|
+
us as ArtifactFormResponse,
|
|
6343
|
+
As as ArtifactInfoCard,
|
|
6344
|
+
qs as ArtifactRenderer,
|
|
6345
|
+
Ds as ArtifactTicket,
|
|
6346
|
+
tr as AttachmentPreview,
|
|
6347
|
+
ir as Bubble,
|
|
6348
|
+
ni as Composer,
|
|
6332
6349
|
Ze as DEFAULT_BASE_URL,
|
|
6333
6350
|
ae as DEFAULT_LANGUAGE,
|
|
6334
|
-
|
|
6335
|
-
|
|
6351
|
+
sa as Feedback,
|
|
6352
|
+
qi as FormCard,
|
|
6336
6353
|
ln as Header,
|
|
6337
6354
|
Re as HumanAvatar,
|
|
6338
6355
|
Pt as Launcher,
|
|
6339
6356
|
ke as MEDIA_RECORDER_SUPPORTED,
|
|
6340
|
-
|
|
6341
|
-
|
|
6342
|
-
|
|
6343
|
-
|
|
6357
|
+
Fr as MessageList,
|
|
6358
|
+
Wa as Messenger,
|
|
6359
|
+
va as MoreMenu,
|
|
6360
|
+
$n as Onboarding,
|
|
6344
6361
|
he as SCREEN_CAPTURE_SUPPORTED,
|
|
6345
6362
|
et as SUPPORTED_LANGUAGES,
|
|
6346
|
-
|
|
6363
|
+
ai as SuggestionChips,
|
|
6347
6364
|
Gt as TeamAvatars,
|
|
6348
|
-
|
|
6349
|
-
|
|
6365
|
+
cr as Typing,
|
|
6366
|
+
Ga as VERSION,
|
|
6350
6367
|
ye as avatarColor,
|
|
6351
6368
|
we as avatarInitials,
|
|
6352
|
-
|
|
6369
|
+
Dr as captureScreenshotFile,
|
|
6353
6370
|
z as colors,
|
|
6354
6371
|
Qe as createStore,
|
|
6355
6372
|
j as createTranslator,
|
|
6356
6373
|
We as createTransport,
|
|
6357
6374
|
re as dateLocale,
|
|
6358
|
-
|
|
6375
|
+
Wa as default,
|
|
6359
6376
|
pe as formatTime,
|
|
6360
|
-
|
|
6361
|
-
|
|
6377
|
+
Va as guessAttachmentKind,
|
|
6378
|
+
Ur as pickRecorderMime,
|
|
6362
6379
|
dn as renderInlineMarkdown,
|
|
6363
6380
|
un as renderMarkdown,
|
|
6364
6381
|
be as resolveLanguage,
|
|
6365
|
-
|
|
6382
|
+
Hr as startScreenRecording,
|
|
6366
6383
|
Xe as tokensCss,
|
|
6367
6384
|
Je as uuid,
|
|
6368
6385
|
Je as v4
|