@_solaris/messenger-widget 0.5.24 → 0.5.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/iframe/iframe.css +1 -1
- package/dist/iframe/iframe.js +6 -6
- package/dist/messenger.cjs +2 -2
- package/dist/messenger.js +306 -278
- package/dist/snippet.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/messenger.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { reactive as Fe, openBlock as c, createElementBlock as u, normalizeStyle as q, normalizeClass as O, toDisplayString as v, resolveComponent as
|
|
1
|
+
import { reactive as Fe, openBlock as c, createElementBlock as u, normalizeStyle as q, normalizeClass as O, toDisplayString as v, resolveComponent as R, createVNode as V, Transition as Ue, withCtx as Pe, Fragment as I, renderList as j, withKeys as ue, withModifiers as J, createElementVNode as o, createCommentVNode as b, createBlock as U, withDirectives as K, vModelText as X, createTextVNode as pe, resolveDynamicComponent as je, renderSlot as De, vModelCheckbox as He, vModelSelect as ze, markRaw as ke } from "vue";
|
|
2
2
|
const qe = [
|
|
3
3
|
"connected",
|
|
4
4
|
"message",
|
|
@@ -132,7 +132,7 @@ function We(e) {
|
|
|
132
132
|
}
|
|
133
133
|
async function k() {
|
|
134
134
|
try {
|
|
135
|
-
const d = await
|
|
135
|
+
const d = await E();
|
|
136
136
|
t.lastActivityAt = d.reduce((f, _) => {
|
|
137
137
|
const y = _ == null ? void 0 : _.last_message_at;
|
|
138
138
|
return y && (!f || y > f) ? y : f;
|
|
@@ -149,14 +149,14 @@ function We(e) {
|
|
|
149
149
|
const f = await a("PATCH", "/customers/me", d);
|
|
150
150
|
return (f == null ? void 0 : f.customer) ?? null;
|
|
151
151
|
}
|
|
152
|
-
async function
|
|
152
|
+
async function E() {
|
|
153
153
|
const d = await a("GET", "/conversations");
|
|
154
154
|
return (d == null ? void 0 : d.conversations) ?? [];
|
|
155
155
|
}
|
|
156
156
|
async function A(d = {}) {
|
|
157
157
|
return (await a("POST", "/conversations", d)).conversation;
|
|
158
158
|
}
|
|
159
|
-
async function
|
|
159
|
+
async function H(d) {
|
|
160
160
|
return (await a(
|
|
161
161
|
"GET",
|
|
162
162
|
`/conversations/${encodeURIComponent(d)}`
|
|
@@ -271,7 +271,7 @@ function We(e) {
|
|
|
271
271
|
}
|
|
272
272
|
async function me() {
|
|
273
273
|
try {
|
|
274
|
-
const d = await
|
|
274
|
+
const d = await E(), f = d.reduce((y, C) => {
|
|
275
275
|
const S = C == null ? void 0 : C.last_message_at;
|
|
276
276
|
return S && (!y || S > y) ? S : y;
|
|
277
277
|
}, null);
|
|
@@ -313,9 +313,9 @@ function We(e) {
|
|
|
313
313
|
// REST
|
|
314
314
|
getCustomer: w,
|
|
315
315
|
patchCustomer: T,
|
|
316
|
-
listConversations:
|
|
316
|
+
listConversations: E,
|
|
317
317
|
createConversation: A,
|
|
318
|
-
getConversation:
|
|
318
|
+
getConversation: H,
|
|
319
319
|
patchConversation: M,
|
|
320
320
|
markConversationRead: F,
|
|
321
321
|
listMessages: N,
|
|
@@ -525,7 +525,7 @@ function Qe(e) {
|
|
|
525
525
|
const g = await e.patchConversation(h, m), d = t.conversations.findIndex((f) => f.id === h);
|
|
526
526
|
d !== -1 && (t.conversations[d] = g);
|
|
527
527
|
}
|
|
528
|
-
async function
|
|
528
|
+
async function E(h) {
|
|
529
529
|
if (!h) return [];
|
|
530
530
|
const m = t.messagesByConv[h] || [];
|
|
531
531
|
let g = "";
|
|
@@ -562,7 +562,7 @@ function Qe(e) {
|
|
|
562
562
|
console.error("[store] markConversationRead failed", g);
|
|
563
563
|
}
|
|
564
564
|
}
|
|
565
|
-
async function
|
|
565
|
+
async function H(h, m, { attachments: g, metadata: d } = {}) {
|
|
566
566
|
var L;
|
|
567
567
|
const f = (m || "").trim(), _ = Array.isArray(g) && g.length > 0;
|
|
568
568
|
if (!h || !f && !_) return;
|
|
@@ -738,7 +738,7 @@ function Qe(e) {
|
|
|
738
738
|
if (!h || typeof h != "object") return null;
|
|
739
739
|
const m = {}, g = {};
|
|
740
740
|
for (const [d, f] of Object.entries(h))
|
|
741
|
-
f !== void 0 && (d === "name" || d === "email" ? f != null && String(f).trim() !== "" && (m[d] = f) : (d === "values" || d === "metadata") && f && typeof f == "object" ? Object.assign(g, f) : g[d] = f);
|
|
741
|
+
f !== void 0 && (d === "name" || d === "email" || d === "language" ? f != null && String(f).trim() !== "" && (m[d] = f) : (d === "values" || d === "metadata") && f && typeof f == "object" ? Object.assign(g, f) : g[d] = f);
|
|
742
742
|
return Object.keys(g).length && (m.values = g), Object.keys(m).length ? m : null;
|
|
743
743
|
}
|
|
744
744
|
function de(h) {
|
|
@@ -757,10 +757,10 @@ function Qe(e) {
|
|
|
757
757
|
createConversation: a,
|
|
758
758
|
openConversation: p,
|
|
759
759
|
loadMore: k,
|
|
760
|
-
fetchSinceLast:
|
|
760
|
+
fetchSinceLast: E,
|
|
761
761
|
patchConversation: T,
|
|
762
762
|
markConversationRead: A,
|
|
763
|
-
send:
|
|
763
|
+
send: H,
|
|
764
764
|
clickCallback: M,
|
|
765
765
|
signAttachment: N,
|
|
766
766
|
submitFeedback: P,
|
|
@@ -772,7 +772,7 @@ function Qe(e) {
|
|
|
772
772
|
setPanelOpen: e.setPanelOpen
|
|
773
773
|
};
|
|
774
774
|
}
|
|
775
|
-
const
|
|
775
|
+
const z = {
|
|
776
776
|
w: "#ffffff",
|
|
777
777
|
g50: "#F9F9F7",
|
|
778
778
|
g100: "#F2F1EE",
|
|
@@ -811,21 +811,21 @@ const Xe = `
|
|
|
811
811
|
.wm-root {
|
|
812
812
|
--wm-f: 'Geist', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
|
813
813
|
--wm-fm: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
814
|
-
--wm-w: ${
|
|
815
|
-
--wm-g50: ${
|
|
816
|
-
--wm-g100: ${
|
|
817
|
-
--wm-g150: ${
|
|
818
|
-
--wm-g200: ${
|
|
819
|
-
--wm-g300: ${
|
|
820
|
-
--wm-g400: ${
|
|
821
|
-
--wm-g500: ${
|
|
822
|
-
--wm-g700: ${
|
|
823
|
-
--wm-g900: ${
|
|
824
|
-
--wm-a: ${
|
|
825
|
-
--wm-al: ${
|
|
826
|
-
--wm-green: ${
|
|
827
|
-
--wm-red: ${
|
|
828
|
-
--wm-redBg: ${
|
|
814
|
+
--wm-w: ${z.w};
|
|
815
|
+
--wm-g50: ${z.g50};
|
|
816
|
+
--wm-g100: ${z.g100};
|
|
817
|
+
--wm-g150: ${z.g150};
|
|
818
|
+
--wm-g200: ${z.g200};
|
|
819
|
+
--wm-g300: ${z.g300};
|
|
820
|
+
--wm-g400: ${z.g400};
|
|
821
|
+
--wm-g500: ${z.g500};
|
|
822
|
+
--wm-g700: ${z.g700};
|
|
823
|
+
--wm-g900: ${z.g900};
|
|
824
|
+
--wm-a: ${z.accent};
|
|
825
|
+
--wm-al: ${z.accentLight};
|
|
826
|
+
--wm-green: ${z.green};
|
|
827
|
+
--wm-red: ${z.red};
|
|
828
|
+
--wm-redBg: ${z.redBg};
|
|
829
829
|
--wm-sh1: 0 1px 3px rgba(0,0,0,.06);
|
|
830
830
|
--wm-sh2: 0 4px 24px rgba(0,0,0,.09), 0 1px 4px rgba(0,0,0,.05);
|
|
831
831
|
--wm-shPanel: 0 12px 40px rgba(0,0,0,.13), 0 2px 8px rgba(0,0,0,.06);
|
|
@@ -1116,7 +1116,7 @@ function Ae(e, t) {
|
|
|
1116
1116
|
const n = e.options.find((i) => (i == null ? void 0 : i.value) === t);
|
|
1117
1117
|
return (n == null ? void 0 : n.label) || t;
|
|
1118
1118
|
}
|
|
1119
|
-
function
|
|
1119
|
+
function Ee(e, t, n) {
|
|
1120
1120
|
return Array.isArray(t) ? t.map((i) => Ae(e, String(i))).join(", ") : typeof t == "boolean" ? n(t ? "common.yes" : "common.no") : Ae(e, String(t));
|
|
1121
1121
|
}
|
|
1122
1122
|
function tt(e, t, n = D()) {
|
|
@@ -1126,7 +1126,7 @@ function tt(e, t, n = D()) {
|
|
|
1126
1126
|
if (!(s != null && s.key) || !(s != null && s.label)) continue;
|
|
1127
1127
|
const a = t[s.key];
|
|
1128
1128
|
if (a == null || a === "") continue;
|
|
1129
|
-
const l =
|
|
1129
|
+
const l = Ee(s, a, n);
|
|
1130
1130
|
l && r.push(`${s.label} :
|
|
1131
1131
|
${l}`);
|
|
1132
1132
|
}
|
|
@@ -1140,7 +1140,7 @@ function nt(e, t, n = D()) {
|
|
|
1140
1140
|
if (!(s != null && s.key) || !(s != null && s.label)) continue;
|
|
1141
1141
|
const a = t == null ? void 0 : t[s.key];
|
|
1142
1142
|
if (a == null || a === "") continue;
|
|
1143
|
-
const l =
|
|
1143
|
+
const l = Ee(s, a, n);
|
|
1144
1144
|
if (!l) continue;
|
|
1145
1145
|
const p = s.type === "textarea" || typeof l == "string" && (l.length > 60 || l.includes(`
|
|
1146
1146
|
`));
|
|
@@ -1675,9 +1675,9 @@ function wt(e, t, n, i, r, s) {
|
|
|
1675
1675
|
}, v(s.initials), 5))
|
|
1676
1676
|
], 6);
|
|
1677
1677
|
}
|
|
1678
|
-
const
|
|
1678
|
+
const Ie = /* @__PURE__ */ B(vt, [["render", wt], ["__scopeId", "data-v-14e10c0d"]]), bt = 3, kt = {
|
|
1679
1679
|
name: "WmLauncher",
|
|
1680
|
-
components: { HumanAvatar:
|
|
1680
|
+
components: { HumanAvatar: Ie },
|
|
1681
1681
|
inject: {
|
|
1682
1682
|
// Translator shared by the Messenger shell; French fallback when
|
|
1683
1683
|
// the component is used standalone.
|
|
@@ -1701,9 +1701,9 @@ const Re = /* @__PURE__ */ B(vt, [["render", wt], ["__scopeId", "data-v-14e10c0d
|
|
|
1701
1701
|
return this.peeks.slice(0, bt).reverse();
|
|
1702
1702
|
}
|
|
1703
1703
|
}
|
|
1704
|
-
}, 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" },
|
|
1704
|
+
}, 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" }, Et = { class: "wm-peek__text" }, It = ["onClick"], Rt = ["aria-label"], Bt = ["aria-label"];
|
|
1705
1705
|
function Nt(e, t, n, i, r, s) {
|
|
1706
|
-
const a =
|
|
1706
|
+
const a = R("HumanAvatar");
|
|
1707
1707
|
return c(), u("div", {
|
|
1708
1708
|
class: "wm-launcherWrap",
|
|
1709
1709
|
onMouseenter: t[1] || (t[1] = (l) => e.$emit("hover", !0)),
|
|
@@ -1717,7 +1717,7 @@ function Nt(e, t, n, i, r, s) {
|
|
|
1717
1717
|
key: 0,
|
|
1718
1718
|
class: O(["wm-peekStack", { "wm-peekStack--multi": s.visiblePeeks.length > 1 }])
|
|
1719
1719
|
}, [
|
|
1720
|
-
(c(!0), u(
|
|
1720
|
+
(c(!0), u(I, null, j(s.visiblePeeks, (l, p) => (c(), u("div", {
|
|
1721
1721
|
key: l.convId,
|
|
1722
1722
|
class: "wm-peek",
|
|
1723
1723
|
style: q({
|
|
@@ -1772,13 +1772,13 @@ function Nt(e, t, n, i, r, s) {
|
|
|
1772
1772
|
o("span", Ot, v(l.senderName || s.t("common.agent")), 1),
|
|
1773
1773
|
o("span", Lt, v(s.t("launcher.repliedToYou")), 1)
|
|
1774
1774
|
]),
|
|
1775
|
-
o("p",
|
|
1775
|
+
o("p", Et, v(l.preview), 1)
|
|
1776
1776
|
]),
|
|
1777
1777
|
o("button", {
|
|
1778
1778
|
type: "button",
|
|
1779
1779
|
class: "wm-peek__open",
|
|
1780
1780
|
onClick: J((k) => e.$emit("open", l.convId), ["stop"])
|
|
1781
|
-
}, v(s.t("common.open")), 9,
|
|
1781
|
+
}, v(s.t("common.open")), 9, It)
|
|
1782
1782
|
], 44, Ct))), 128))
|
|
1783
1783
|
], 2)) : b("", !0)
|
|
1784
1784
|
]),
|
|
@@ -1812,7 +1812,7 @@ function Nt(e, t, n, i, r, s) {
|
|
|
1812
1812
|
count: n.unreadCount
|
|
1813
1813
|
})
|
|
1814
1814
|
}, v(n.unreadCount > 9 ? "9+" : n.unreadCount), 9, Bt)) : b("", !0)
|
|
1815
|
-
], 8,
|
|
1815
|
+
], 8, Rt)
|
|
1816
1816
|
], 32);
|
|
1817
1817
|
}
|
|
1818
1818
|
const Ft = /* @__PURE__ */ B(kt, [["render", Nt], ["__scopeId", "data-v-44ddf1a1"]]), Ut = {
|
|
@@ -1848,7 +1848,7 @@ const Ft = /* @__PURE__ */ B(kt, [["render", Nt], ["__scopeId", "data-v-44ddf1a1
|
|
|
1848
1848
|
key: 0,
|
|
1849
1849
|
class: "wm-aiav__pulse"
|
|
1850
1850
|
}, jt = ["src", "alt"], Dt = ["width", "height"];
|
|
1851
|
-
function
|
|
1851
|
+
function Ht(e, t, n, i, r, s) {
|
|
1852
1852
|
return c(), u("div", {
|
|
1853
1853
|
class: O(["wm-aiav", { "wm-aiav--tail": n.tail }]),
|
|
1854
1854
|
style: q({
|
|
@@ -1906,7 +1906,7 @@ function zt(e, t, n, i, r, s) {
|
|
|
1906
1906
|
], 6)
|
|
1907
1907
|
], 6);
|
|
1908
1908
|
}
|
|
1909
|
-
const le = /* @__PURE__ */ B(Ut, [["render",
|
|
1909
|
+
const le = /* @__PURE__ */ B(Ut, [["render", Ht], ["__scopeId", "data-v-6f7f685d"]]), zt = {
|
|
1910
1910
|
name: "WmTeamAvatars",
|
|
1911
1911
|
props: {
|
|
1912
1912
|
members: { type: Array, default: () => [] },
|
|
@@ -1941,7 +1941,7 @@ function Wt(e, t, n, i, r, s) {
|
|
|
1941
1941
|
class: "wm-team__stack",
|
|
1942
1942
|
style: q({ width: s.stackWidth + "px" })
|
|
1943
1943
|
}, [
|
|
1944
|
-
(c(!0), u(
|
|
1944
|
+
(c(!0), u(I, null, j(n.members.slice(0, 3), (a, l) => (c(), u("div", {
|
|
1945
1945
|
key: l,
|
|
1946
1946
|
class: "wm-team__pill",
|
|
1947
1947
|
style: q({
|
|
@@ -1960,7 +1960,7 @@ function Wt(e, t, n, i, r, s) {
|
|
|
1960
1960
|
n.responseLabel ? (c(), u("span", Kt, v(n.responseLabel), 1)) : b("", !0)
|
|
1961
1961
|
])) : b("", !0);
|
|
1962
1962
|
}
|
|
1963
|
-
const Gt = /* @__PURE__ */ B(
|
|
1963
|
+
const Gt = /* @__PURE__ */ B(zt, [["render", Wt], ["__scopeId", "data-v-e49a9063"]]), Yt = {
|
|
1964
1964
|
name: "WmHeader",
|
|
1965
1965
|
components: { AIAvatar: le, TeamAvatars: Gt },
|
|
1966
1966
|
inject: {
|
|
@@ -2007,7 +2007,7 @@ const Gt = /* @__PURE__ */ B(Ht, [["render", Wt], ["__scopeId", "data-v-e49a9063
|
|
|
2007
2007
|
class: "wm-header__fill"
|
|
2008
2008
|
}, sn = { class: "wm-header__actions" }, rn = ["aria-label", "title"], an = ["aria-label", "title"];
|
|
2009
2009
|
function on(e, t, n, i, r, s) {
|
|
2010
|
-
const a =
|
|
2010
|
+
const a = R("AIAvatar"), l = R("TeamAvatars");
|
|
2011
2011
|
return c(), u("div", Jt, [
|
|
2012
2012
|
n.showBack ? (c(), u("button", {
|
|
2013
2013
|
key: 0,
|
|
@@ -2030,7 +2030,7 @@ function on(e, t, n, i, r, s) {
|
|
|
2030
2030
|
o("path", { d: "M19 12H5M12 5l-7 7 7 7" })
|
|
2031
2031
|
], -1)
|
|
2032
2032
|
])], 8, Qt)) : (c(), u("div", Xt)),
|
|
2033
|
-
n.showIdentity ? (c(), u(
|
|
2033
|
+
n.showIdentity ? (c(), u(I, { key: 2 }, [
|
|
2034
2034
|
o("div", Zt, [
|
|
2035
2035
|
V(a, {
|
|
2036
2036
|
size: 30,
|
|
@@ -2106,7 +2106,7 @@ function on(e, t, n, i, r, s) {
|
|
|
2106
2106
|
]);
|
|
2107
2107
|
}
|
|
2108
2108
|
const ln = /* @__PURE__ */ B(Yt, [["render", on], ["__scopeId", "data-v-925c9e94"]]);
|
|
2109
|
-
function
|
|
2109
|
+
function Re(e) {
|
|
2110
2110
|
return String(e).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
2111
2111
|
}
|
|
2112
2112
|
function cn(e) {
|
|
@@ -2124,11 +2124,11 @@ function re(e) {
|
|
|
2124
2124
|
function dn(e) {
|
|
2125
2125
|
if (!e) return "";
|
|
2126
2126
|
const t = String(e).replace(/\[([^\]\n]+)\]\([^)\s]+\)/g, "$1");
|
|
2127
|
-
return re(
|
|
2127
|
+
return re(Re(t));
|
|
2128
2128
|
}
|
|
2129
2129
|
function un(e) {
|
|
2130
2130
|
if (!e) return "";
|
|
2131
|
-
const t =
|
|
2131
|
+
const t = Re(e).split(`
|
|
2132
2132
|
`), n = [];
|
|
2133
2133
|
let i = 0;
|
|
2134
2134
|
for (; i < t.length; ) {
|
|
@@ -2167,10 +2167,10 @@ function un(e) {
|
|
|
2167
2167
|
if (!A) break;
|
|
2168
2168
|
w.push(A[1]), i++;
|
|
2169
2169
|
}
|
|
2170
|
-
const T = w.map((A) => `<li>${re(A)}</li>`).join(""),
|
|
2170
|
+
const T = w.map((A) => `<li>${re(A)}</li>`).join(""), E = k !== 1 ? ` start="${k}"` : "";
|
|
2171
2171
|
n.push({
|
|
2172
2172
|
type: "block",
|
|
2173
|
-
html: `<ol class="wm-md-ol"${
|
|
2173
|
+
html: `<ol class="wm-md-ol"${E}>${T}</ol>`
|
|
2174
2174
|
});
|
|
2175
2175
|
continue;
|
|
2176
2176
|
}
|
|
@@ -2289,15 +2289,15 @@ const Te = {
|
|
|
2289
2289
|
}, On = {
|
|
2290
2290
|
key: 1,
|
|
2291
2291
|
class: "wm-onb__section"
|
|
2292
|
-
}, Ln = { class: "wm-onb__section-title" },
|
|
2292
|
+
}, Ln = { class: "wm-onb__section-title" }, En = { class: "wm-onb__search" }, In = ["placeholder", "aria-label"], Rn = { class: "wm-onb__list" }, Bn = ["onClick"], Nn = ["aria-label"], Fn = { class: "wm-onb__thread-body" }, Un = { class: "wm-onb__thread-title" }, Pn = ["innerHTML"], jn = { class: "wm-onb__thread-meta" }, Dn = {
|
|
2293
2293
|
key: 0,
|
|
2294
2294
|
class: "wm-onb__thread-time"
|
|
2295
|
-
},
|
|
2295
|
+
}, Hn = {
|
|
2296
2296
|
key: 0,
|
|
2297
2297
|
class: "wm-onb__empty"
|
|
2298
2298
|
};
|
|
2299
|
-
function
|
|
2300
|
-
const a =
|
|
2299
|
+
function zn(e, t, n, i, r, s) {
|
|
2300
|
+
const a = R("AIAvatar");
|
|
2301
2301
|
return c(), u("div", mn, [
|
|
2302
2302
|
o("div", fn, [
|
|
2303
2303
|
t[2] || (t[2] = o("svg", {
|
|
@@ -2373,7 +2373,7 @@ function Hn(e, t, n, i, r, s) {
|
|
|
2373
2373
|
o("div", {
|
|
2374
2374
|
class: O(s.quickLinksLayout)
|
|
2375
2375
|
}, [
|
|
2376
|
-
(c(!0), u(
|
|
2376
|
+
(c(!0), u(I, null, j(n.quickLinks, (l, p) => (c(), u("button", {
|
|
2377
2377
|
key: p,
|
|
2378
2378
|
type: "button",
|
|
2379
2379
|
class: O(["wm-onb__card", { "wm-onb__card--row": s.isOddQuickLinks }]),
|
|
@@ -2395,7 +2395,7 @@ function Hn(e, t, n, i, r, s) {
|
|
|
2395
2395
|
])) : b("", !0),
|
|
2396
2396
|
n.openThreads.length ? (c(), u("div", On, [
|
|
2397
2397
|
o("div", Ln, v(s.t("onboarding.recentConversations")), 1),
|
|
2398
|
-
o("div",
|
|
2398
|
+
o("div", En, [
|
|
2399
2399
|
t[4] || (t[4] = o("span", { class: "wm-onb__searchIcon" }, [
|
|
2400
2400
|
o("svg", {
|
|
2401
2401
|
width: "12",
|
|
@@ -2416,12 +2416,12 @@ function Hn(e, t, n, i, r, s) {
|
|
|
2416
2416
|
type: "text",
|
|
2417
2417
|
placeholder: s.t("onboarding.search"),
|
|
2418
2418
|
"aria-label": s.t("onboarding.search")
|
|
2419
|
-
}, null, 8,
|
|
2419
|
+
}, null, 8, In), [
|
|
2420
2420
|
[X, r.query]
|
|
2421
2421
|
])
|
|
2422
2422
|
]),
|
|
2423
|
-
o("div",
|
|
2424
|
-
(c(!0), u(
|
|
2423
|
+
o("div", Rn, [
|
|
2424
|
+
(c(!0), u(I, null, j(s.filteredThreads, (l) => (c(), u("button", {
|
|
2425
2425
|
key: l.id,
|
|
2426
2426
|
type: "button",
|
|
2427
2427
|
class: "wm-onb__thread",
|
|
@@ -2474,12 +2474,12 @@ function Hn(e, t, n, i, r, s) {
|
|
|
2474
2474
|
], -1))
|
|
2475
2475
|
])
|
|
2476
2476
|
], 8, Bn))), 128)),
|
|
2477
|
-
s.filteredThreads.length ? b("", !0) : (c(), u("div",
|
|
2477
|
+
s.filteredThreads.length ? b("", !0) : (c(), u("div", Hn, v(s.t("onboarding.noResults", { query: r.query })), 1))
|
|
2478
2478
|
])
|
|
2479
2479
|
])) : b("", !0)
|
|
2480
2480
|
]);
|
|
2481
2481
|
}
|
|
2482
|
-
const qn = /* @__PURE__ */ B(hn, [["render",
|
|
2482
|
+
const qn = /* @__PURE__ */ B(hn, [["render", zn], ["__scopeId", "data-v-28c0780b"]]);
|
|
2483
2483
|
function $n(e) {
|
|
2484
2484
|
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();
|
|
2485
2485
|
}
|
|
@@ -2574,7 +2574,7 @@ function es(e, t, n, i, r, s) {
|
|
|
2574
2574
|
]),
|
|
2575
2575
|
o("span", Qn, [
|
|
2576
2576
|
o("span", Xn, v(n.label), 1),
|
|
2577
|
-
s.detailText ? (c(), u(
|
|
2577
|
+
s.detailText ? (c(), u(I, { key: 0 }, [
|
|
2578
2578
|
t[4] || (t[4] = o("span", {
|
|
2579
2579
|
class: "wm-result__sep",
|
|
2580
2580
|
"aria-hidden": "true"
|
|
@@ -2623,7 +2623,7 @@ function cs(e, t, n, i, r, s) {
|
|
|
2623
2623
|
])
|
|
2624
2624
|
]),
|
|
2625
2625
|
o("div", os, [
|
|
2626
|
-
(c(!0), u(
|
|
2626
|
+
(c(!0), u(I, null, j(s.fields, (a, l) => (c(), u("div", {
|
|
2627
2627
|
key: l,
|
|
2628
2628
|
class: "wm-art__field"
|
|
2629
2629
|
}, [
|
|
@@ -2690,7 +2690,7 @@ function ks(e, t, n, i, r, s) {
|
|
|
2690
2690
|
]),
|
|
2691
2691
|
s.hasBody ? (c(), u("div", ys, [
|
|
2692
2692
|
n.data.body ? (c(), u("div", ws, v(n.data.body), 1)) : b("", !0),
|
|
2693
|
-
s.fields.length ? (c(!0), u(
|
|
2693
|
+
s.fields.length ? (c(!0), u(I, { key: 1 }, j(s.fields, (a, l) => (c(), u("div", {
|
|
2694
2694
|
key: l,
|
|
2695
2695
|
class: "wm-art__field"
|
|
2696
2696
|
}, [
|
|
@@ -2766,13 +2766,13 @@ const Ss = {
|
|
|
2766
2766
|
return /high|haute|élev|elev|critic|critiq|urgent/.test(t) ? 3 : /low|basse|faible|minor/.test(t) ? 1 : 2;
|
|
2767
2767
|
}
|
|
2768
2768
|
}
|
|
2769
|
-
}, Ms = { class: "wm-art wm-art--ticket" }, Ts = { class: "wm-art__head wm-tk__head" }, xs = { class: "wm-art__title wm-tk__title" }, Os = { class: "wm-tk__sub" }, Ls = { class: "wm-tk__ref" },
|
|
2769
|
+
}, Ms = { class: "wm-art wm-art--ticket" }, Ts = { class: "wm-art__head wm-tk__head" }, xs = { class: "wm-art__title wm-tk__title" }, Os = { class: "wm-tk__sub" }, Ls = { class: "wm-tk__ref" }, Es = {
|
|
2770
2770
|
key: 0,
|
|
2771
2771
|
class: "wm-tk__text"
|
|
2772
|
-
},
|
|
2772
|
+
}, Is = {
|
|
2773
2773
|
key: 0,
|
|
2774
2774
|
class: "wm-art__body"
|
|
2775
|
-
},
|
|
2775
|
+
}, Rs = { class: "wm-art__fieldLabel" }, Bs = ["data-level"], Ns = {
|
|
2776
2776
|
key: 1,
|
|
2777
2777
|
class: "wm-tk__date",
|
|
2778
2778
|
width: "12",
|
|
@@ -2824,14 +2824,14 @@ function Us(e, t, n, i, r, s) {
|
|
|
2824
2824
|
pe(" " + v(n.data.status.label), 1)
|
|
2825
2825
|
], 2)
|
|
2826
2826
|
]),
|
|
2827
|
-
n.data.body ? (c(), u("div",
|
|
2827
|
+
n.data.body ? (c(), u("div", Es, v(n.data.body), 1)) : b("", !0)
|
|
2828
2828
|
]),
|
|
2829
|
-
s.fields.length ? (c(), u("div",
|
|
2830
|
-
(c(!0), u(
|
|
2829
|
+
s.fields.length ? (c(), u("div", Is, [
|
|
2830
|
+
(c(!0), u(I, null, j(s.fields, (a, l) => (c(), u("div", {
|
|
2831
2831
|
key: l,
|
|
2832
2832
|
class: "wm-art__field"
|
|
2833
2833
|
}, [
|
|
2834
|
-
o("div",
|
|
2834
|
+
o("div", Rs, v(a.label), 1),
|
|
2835
2835
|
o("div", {
|
|
2836
2836
|
class: O([
|
|
2837
2837
|
"wm-art__fieldValue",
|
|
@@ -2926,13 +2926,13 @@ const Ps = /* @__PURE__ */ B(Ss, [["render", Us], ["__scopeId", "data-v-5f30c914
|
|
|
2926
2926
|
}
|
|
2927
2927
|
}
|
|
2928
2928
|
};
|
|
2929
|
-
function
|
|
2929
|
+
function Hs(e, t, n, i, r, s) {
|
|
2930
2930
|
return s.component ? (c(), U(je(s.component), {
|
|
2931
2931
|
key: 0,
|
|
2932
2932
|
data: n.artifact.data
|
|
2933
2933
|
}, null, 8, ["data"])) : b("", !0);
|
|
2934
2934
|
}
|
|
2935
|
-
const
|
|
2935
|
+
const zs = /* @__PURE__ */ B(Ds, [["render", Hs]]), qs = {
|
|
2936
2936
|
name: "WmAttachmentPreview",
|
|
2937
2937
|
inject: {
|
|
2938
2938
|
signAttachmentFn: { default: null },
|
|
@@ -3112,12 +3112,12 @@ const cr = {
|
|
|
3112
3112
|
name: "WmMessageList",
|
|
3113
3113
|
components: {
|
|
3114
3114
|
AIAvatar: le,
|
|
3115
|
-
HumanAvatar:
|
|
3115
|
+
HumanAvatar: Ie,
|
|
3116
3116
|
Bubble: rr,
|
|
3117
3117
|
Typing: lr,
|
|
3118
3118
|
ActionResult: ts,
|
|
3119
3119
|
AttachmentPreview: er,
|
|
3120
|
-
ArtifactRenderer:
|
|
3120
|
+
ArtifactRenderer: zs
|
|
3121
3121
|
},
|
|
3122
3122
|
inject: {
|
|
3123
3123
|
// Translator + resolved-language getter shared by the Messenger
|
|
@@ -3502,9 +3502,9 @@ const cr = {
|
|
|
3502
3502
|
// doit garder son arrondi.
|
|
3503
3503
|
cornersFor(e, t) {
|
|
3504
3504
|
var Z, ee, te;
|
|
3505
|
-
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, w = s == null ? void 0 : s.top, T = this.widthByKey[this.rowKeyOf(e, t)],
|
|
3505
|
+
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, w = s == null ? void 0 : s.top, T = this.widthByKey[this.rowKeyOf(e, t)], E = this.widthByKey[this.rowKeyOf(e, t - 1)], A = this.widthByKey[this.rowKeyOf(e, t + 1)], H = 0.5, M = ($, ne, Y) => $ != null && T != null ? $ + H >= T : ne === Y || ne === "card" && Y === "bubble";
|
|
3506
3506
|
let F = l, N = l, P = l, G = l;
|
|
3507
|
-
return a ? (k && (N = p), (w || !s) && (P = p), k && M(
|
|
3507
|
+
return a ? (k && (N = p), (w || !s) && (P = p), k && M(E, k, i == null ? void 0 : i.top) && (F = p), w && M(A, w, i == null ? void 0 : i.bottom) && (G = p)) : (k && (F = p), (w || !s) && (G = p), k && M(E, k, i == null ? void 0 : i.top) && (N = p), w && M(A, w, i == null ? void 0 : i.bottom) && (P = p)), { tl: F, tr: N, br: P, bl: G };
|
|
3508
3508
|
},
|
|
3509
3509
|
// Inline style emitting the four corner CSS variables. Set on
|
|
3510
3510
|
// `.wm-list__row` so they cascade to Bubble/ActionResult/
|
|
@@ -3656,7 +3656,7 @@ const cr = {
|
|
|
3656
3656
|
class: "wm-list__row wm-list__row--ai fade-up"
|
|
3657
3657
|
}, Or = { class: "wm-list__avatarSlot" };
|
|
3658
3658
|
function Lr(e, t, n, i, r, s) {
|
|
3659
|
-
const a =
|
|
3659
|
+
const a = R("AIAvatar"), l = R("HumanAvatar"), p = R("ActionResult"), k = R("ArtifactRenderer"), w = R("Bubble"), T = R("AttachmentPreview"), E = R("Typing");
|
|
3660
3660
|
return c(), u("div", {
|
|
3661
3661
|
ref: "scrollEl",
|
|
3662
3662
|
class: O(["wm-list", { "wm-list--silent": r.silentFades }]),
|
|
@@ -3674,7 +3674,7 @@ function Lr(e, t, n, i, r, s) {
|
|
|
3674
3674
|
o("span", pr, v(n.dateLabel), 1),
|
|
3675
3675
|
t[3] || (t[3] = o("div", { class: "wm-list__line" }, null, -1))
|
|
3676
3676
|
])) : b("", !0),
|
|
3677
|
-
(c(!0), u(
|
|
3677
|
+
(c(!0), u(I, null, j(s.groups, (A, H) => (c(), u(I, {
|
|
3678
3678
|
key: A.key
|
|
3679
3679
|
}, [
|
|
3680
3680
|
A.key === s.unreadGroupKey ? (c(), u("div", vr, [
|
|
@@ -3690,8 +3690,8 @@ function Lr(e, t, n, i, r, s) {
|
|
|
3690
3690
|
t[6] || (t[6] = o("div", { class: "wm-list__line wm-list__line--strong" }, null, -1)),
|
|
3691
3691
|
o("span", br, v(A.systemLabel), 1),
|
|
3692
3692
|
t[7] || (t[7] = o("div", { class: "wm-list__line wm-list__line--strong" }, null, -1))
|
|
3693
|
-
])) : (c(), u(
|
|
3694
|
-
(c(!0), u(
|
|
3693
|
+
])) : (c(), u(I, { key: 1 }, [
|
|
3694
|
+
(c(!0), u(I, null, j(A.items, (M, F) => (c(), u("div", {
|
|
3695
3695
|
key: `${s.messageKey(M.message)}-${M.partKey}`,
|
|
3696
3696
|
"data-row-key": `${s.messageKey(M.message)}-${M.partKey}`,
|
|
3697
3697
|
class: O(["wm-list__row fade-up", [
|
|
@@ -3704,7 +3704,7 @@ function Lr(e, t, n, i, r, s) {
|
|
|
3704
3704
|
style: q(s.cornersStyle(A, F))
|
|
3705
3705
|
}, [
|
|
3706
3706
|
A.role !== "user" ? (c(), u("div", Cr, [
|
|
3707
|
-
F === A.items.length - 1 ? (c(), u(
|
|
3707
|
+
F === A.items.length - 1 ? (c(), u(I, { key: 0 }, [
|
|
3708
3708
|
A.role === "ai" ? (c(), U(a, {
|
|
3709
3709
|
key: 0,
|
|
3710
3710
|
size: 26,
|
|
@@ -3748,7 +3748,7 @@ function Lr(e, t, n, i, r, s) {
|
|
|
3748
3748
|
"wm-list__atts--align-end": A.role === "user"
|
|
3749
3749
|
}])
|
|
3750
3750
|
}, [
|
|
3751
|
-
(c(!0), u(
|
|
3751
|
+
(c(!0), u(I, null, j(s.attachmentsOf(
|
|
3752
3752
|
M.message
|
|
3753
3753
|
), (N, P) => (c(), U(T, {
|
|
3754
3754
|
key: `${s.messageKey(M.message)}-att-${P}`,
|
|
@@ -3762,7 +3762,7 @@ function Lr(e, t, n, i, r, s) {
|
|
|
3762
3762
|
class: O(["wm-list__meta", { "wm-list__meta--right": A.role === "user" }])
|
|
3763
3763
|
}, [
|
|
3764
3764
|
A.role !== "user" ? (c(), u("span", Sr, v(s.roleLabel(A)), 1)) : b("", !0),
|
|
3765
|
-
A.role !== "user" && s.lastTimeOf(A) ? (c(), u("span", Mr, "
|
|
3765
|
+
A.role !== "user" && s.lastTimeOf(A) ? (c(), u("span", Mr, "•")) : b("", !0),
|
|
3766
3766
|
s.lastTimeOf(A) ? (c(), u("span", Tr, v(s.lastTimeOf(A)), 1)) : b("", !0)
|
|
3767
3767
|
], 2)) : b("", !0)
|
|
3768
3768
|
], 64))
|
|
@@ -3777,12 +3777,12 @@ function Lr(e, t, n, i, r, s) {
|
|
|
3777
3777
|
"image-url": n.aiAgentAvatarUrl
|
|
3778
3778
|
}, null, 8, ["name", "image-url"])
|
|
3779
3779
|
]),
|
|
3780
|
-
V(
|
|
3780
|
+
V(E)
|
|
3781
3781
|
])) : b("", !0)
|
|
3782
3782
|
], 34);
|
|
3783
3783
|
}
|
|
3784
|
-
const
|
|
3785
|
-
function
|
|
3784
|
+
const Er = /* @__PURE__ */ B(hr, [["render", Lr], ["__scopeId", "data-v-6d5eab41"]]), he = typeof navigator < "u" && !!navigator.mediaDevices && typeof navigator.mediaDevices.getDisplayMedia == "function", be = typeof window < "u" && typeof window.MediaRecorder < "u";
|
|
3785
|
+
function Ir() {
|
|
3786
3786
|
return be && [
|
|
3787
3787
|
"video/webm;codecs=vp9,opus",
|
|
3788
3788
|
"video/webm;codecs=vp8,opus",
|
|
@@ -3802,10 +3802,10 @@ function Be({ audio: e }) {
|
|
|
3802
3802
|
systemAudio: e ? "include" : "exclude"
|
|
3803
3803
|
};
|
|
3804
3804
|
}
|
|
3805
|
-
function
|
|
3805
|
+
function Da(e) {
|
|
3806
3806
|
return e ? e.startsWith("image/") ? "image" : e.startsWith("video/") ? "video" : "file" : "file";
|
|
3807
3807
|
}
|
|
3808
|
-
async function
|
|
3808
|
+
async function Rr() {
|
|
3809
3809
|
if (!he) return null;
|
|
3810
3810
|
let e;
|
|
3811
3811
|
try {
|
|
@@ -3849,7 +3849,7 @@ async function Nr(e = {}) {
|
|
|
3849
3849
|
} catch (w) {
|
|
3850
3850
|
return (w == null ? void 0 : w.name) !== "NotAllowedError" && console.error("[media] record picker", w), null;
|
|
3851
3851
|
}
|
|
3852
|
-
const n =
|
|
3852
|
+
const n = Ir();
|
|
3853
3853
|
let i;
|
|
3854
3854
|
try {
|
|
3855
3855
|
i = n ? new window.MediaRecorder(t, { mimeType: n }) : new window.MediaRecorder(t);
|
|
@@ -3864,11 +3864,11 @@ async function Nr(e = {}) {
|
|
|
3864
3864
|
w.data && w.data.size > 0 && r.push(w.data);
|
|
3865
3865
|
}), i.addEventListener("stop", () => {
|
|
3866
3866
|
var w, T;
|
|
3867
|
-
if (s && clearInterval(s), t.getTracks().forEach((
|
|
3868
|
-
|
|
3867
|
+
if (s && clearInterval(s), t.getTracks().forEach((E) => {
|
|
3868
|
+
E.stop();
|
|
3869
3869
|
}), r.length) {
|
|
3870
|
-
const
|
|
3871
|
-
type:
|
|
3870
|
+
const E = i.mimeType || n || "video/webm", A = new Blob(r, { type: E }), H = /mp4/.test(E) ? "mp4" : "webm", M = (/* @__PURE__ */ new Date()).toISOString().replace(/[:.]/g, "-").slice(0, 19), F = new File([A], `ecran-${M}.${H}`, {
|
|
3871
|
+
type: E
|
|
3872
3872
|
});
|
|
3873
3873
|
(w = e.onfinalize) == null || w.call(e, F);
|
|
3874
3874
|
} else
|
|
@@ -3930,7 +3930,10 @@ const Fr = [
|
|
|
3930
3930
|
modelValue: { type: String, default: "" },
|
|
3931
3931
|
placeholder: { type: String, default: "Écrivez votre message…" },
|
|
3932
3932
|
disabled: { type: Boolean, default: !1 },
|
|
3933
|
-
attachLabel: { type: String, default: "Joindre" }
|
|
3933
|
+
attachLabel: { type: String, default: "Joindre" },
|
|
3934
|
+
// 'floating' | 'sheet' | 'embedded' — only 'sheet' enables the
|
|
3935
|
+
// visualViewport-based keyboard tracking (mobile fullscreen mode).
|
|
3936
|
+
displayMode: { type: String, default: "floating" }
|
|
3934
3937
|
},
|
|
3935
3938
|
emits: ["update:modelValue", "send", "attach"],
|
|
3936
3939
|
data() {
|
|
@@ -3939,7 +3942,10 @@ const Fr = [
|
|
|
3939
3942
|
attachOpen: !1,
|
|
3940
3943
|
recording: !1,
|
|
3941
3944
|
recordingElapsed: 0,
|
|
3942
|
-
recorder: null
|
|
3945
|
+
recorder: null,
|
|
3946
|
+
// Pixels the composer is lifted to stay above the soft keyboard.
|
|
3947
|
+
// Driven by visualViewport — 0 when no keyboard.
|
|
3948
|
+
kbOffset: 0
|
|
3943
3949
|
};
|
|
3944
3950
|
},
|
|
3945
3951
|
computed: {
|
|
@@ -3967,7 +3973,7 @@ const Fr = [
|
|
|
3967
3973
|
}
|
|
3968
3974
|
},
|
|
3969
3975
|
mounted() {
|
|
3970
|
-
this.autosize();
|
|
3976
|
+
this.autosize(), this.displayMode === "sheet" && this.setupKeyboardTracking();
|
|
3971
3977
|
},
|
|
3972
3978
|
beforeUnmount() {
|
|
3973
3979
|
if (this.recorder)
|
|
@@ -3975,6 +3981,7 @@ const Fr = [
|
|
|
3975
3981
|
this.recorder.stop();
|
|
3976
3982
|
} catch {
|
|
3977
3983
|
}
|
|
3984
|
+
this.teardownKeyboardTracking();
|
|
3978
3985
|
},
|
|
3979
3986
|
methods: {
|
|
3980
3987
|
// Imperatively move the caret into the textarea — called by the
|
|
@@ -4020,7 +4027,7 @@ const Fr = [
|
|
|
4020
4027
|
},
|
|
4021
4028
|
async captureScreenshot() {
|
|
4022
4029
|
if (this.disabled) return;
|
|
4023
|
-
const e = await
|
|
4030
|
+
const e = await Rr();
|
|
4024
4031
|
e && this.$emit("attach", e);
|
|
4025
4032
|
},
|
|
4026
4033
|
async startRecording() {
|
|
@@ -4049,29 +4056,49 @@ const Fr = [
|
|
|
4049
4056
|
} catch (e) {
|
|
4050
4057
|
console.error("[composer] stop recording", e);
|
|
4051
4058
|
}
|
|
4059
|
+
},
|
|
4060
|
+
// Track the soft keyboard via visualViewport so we can lift only the
|
|
4061
|
+
// composer above it — the message list stays put behind. Works inside
|
|
4062
|
+
// the iframe because each frame has its own visualViewport.
|
|
4063
|
+
setupKeyboardTracking() {
|
|
4064
|
+
const e = window.visualViewport;
|
|
4065
|
+
e && (this._vvHandler = () => {
|
|
4066
|
+
const t = Math.max(
|
|
4067
|
+
0,
|
|
4068
|
+
window.innerHeight - e.height - e.offsetTop
|
|
4069
|
+
);
|
|
4070
|
+
this.kbOffset = t;
|
|
4071
|
+
}, e.addEventListener("resize", this._vvHandler), e.addEventListener("scroll", this._vvHandler));
|
|
4072
|
+
},
|
|
4073
|
+
teardownKeyboardTracking() {
|
|
4074
|
+
const e = window.visualViewport;
|
|
4075
|
+
!e || !this._vvHandler || (e.removeEventListener("resize", this._vvHandler), e.removeEventListener("scroll", this._vvHandler), this._vvHandler = null);
|
|
4052
4076
|
}
|
|
4053
4077
|
}
|
|
4054
|
-
}, Pr = {
|
|
4078
|
+
}, Pr = {
|
|
4055
4079
|
key: 0,
|
|
4056
4080
|
class: "wm-rec"
|
|
4057
|
-
},
|
|
4081
|
+
}, jr = { class: "wm-rec__lbl" }, Dr = {
|
|
4058
4082
|
key: 1,
|
|
4059
4083
|
class: "wm-compose__menu",
|
|
4060
4084
|
role: "menu"
|
|
4061
|
-
}, Hr = ["disabled", "onClick"],
|
|
4085
|
+
}, Hr = ["disabled", "onClick"], zr = { class: "wm-compose__menuIcon" }, qr = {
|
|
4062
4086
|
viewBox: "0 0 24 24",
|
|
4063
4087
|
width: "14",
|
|
4064
4088
|
height: "14",
|
|
4065
4089
|
"aria-hidden": "true"
|
|
4066
|
-
},
|
|
4067
|
-
function
|
|
4068
|
-
return c(), u("div",
|
|
4069
|
-
|
|
4090
|
+
}, $r = ["d"], Vr = ["placeholder", "disabled"], Kr = { class: "wm-compose__actions" }, Wr = ["title", "aria-label", "disabled"], Gr = ["disabled", "aria-label"];
|
|
4091
|
+
function Yr(e, t, n, i, r, s) {
|
|
4092
|
+
return c(), u("div", {
|
|
4093
|
+
class: O(["wm-compose-wrap", { "wm-compose-wrap--sheet": n.displayMode === "sheet" }]),
|
|
4094
|
+
style: q(r.kbOffset ? { transform: `translateY(-${r.kbOffset}px)` } : null)
|
|
4095
|
+
}, [
|
|
4096
|
+
r.recording ? (c(), u("div", Pr, [
|
|
4070
4097
|
t[8] || (t[8] = o("span", {
|
|
4071
4098
|
class: "wm-rec__dot",
|
|
4072
4099
|
"aria-hidden": "true"
|
|
4073
4100
|
}, null, -1)),
|
|
4074
|
-
o("span",
|
|
4101
|
+
o("span", jr, v(s.t("composer.recording", { time: s.recordingElapsedLabel })), 1),
|
|
4075
4102
|
o("button", {
|
|
4076
4103
|
type: "button",
|
|
4077
4104
|
class: "wm-rec__stop",
|
|
@@ -4094,16 +4121,16 @@ function Jr(e, t, n, i, r, s) {
|
|
|
4094
4121
|
class: "wm-compose__overlay",
|
|
4095
4122
|
onClick: t[2] || (t[2] = (a) => r.attachOpen = !1)
|
|
4096
4123
|
})) : b("", !0),
|
|
4097
|
-
r.attachOpen ? (c(), u("div",
|
|
4098
|
-
(c(!0), u(
|
|
4124
|
+
r.attachOpen ? (c(), u("div", Dr, [
|
|
4125
|
+
(c(!0), u(I, null, j(s.attachItems, (a) => (c(), u("button", {
|
|
4099
4126
|
key: a.action,
|
|
4100
4127
|
type: "button",
|
|
4101
4128
|
class: "wm-compose__menuItem",
|
|
4102
4129
|
disabled: a.disabled,
|
|
4103
4130
|
onClick: (l) => s.onAttachAction(a.action)
|
|
4104
4131
|
}, [
|
|
4105
|
-
o("span",
|
|
4106
|
-
(c(), u("svg",
|
|
4132
|
+
o("span", zr, [
|
|
4133
|
+
(c(), u("svg", qr, [
|
|
4107
4134
|
o("path", {
|
|
4108
4135
|
d: a.path,
|
|
4109
4136
|
stroke: "currentColor",
|
|
@@ -4111,7 +4138,7 @@ function Jr(e, t, n, i, r, s) {
|
|
|
4111
4138
|
"stroke-linecap": "round",
|
|
4112
4139
|
"stroke-linejoin": "round",
|
|
4113
4140
|
fill: "none"
|
|
4114
|
-
}, null, 8,
|
|
4141
|
+
}, null, 8, $r)
|
|
4115
4142
|
]))
|
|
4116
4143
|
]),
|
|
4117
4144
|
o("span", null, v(a.label), 1)
|
|
@@ -4126,10 +4153,10 @@ function Jr(e, t, n, i, r, s) {
|
|
|
4126
4153
|
disabled: n.disabled,
|
|
4127
4154
|
onKeydown: t[4] || (t[4] = (...a) => s.onKeydown && s.onKeydown(...a)),
|
|
4128
4155
|
onInput: t[5] || (t[5] = (...a) => s.autosize && s.autosize(...a))
|
|
4129
|
-
}, null, 40,
|
|
4156
|
+
}, null, 40, Vr), [
|
|
4130
4157
|
[X, r.local]
|
|
4131
4158
|
]),
|
|
4132
|
-
o("div",
|
|
4159
|
+
o("div", Kr, [
|
|
4133
4160
|
o("button", {
|
|
4134
4161
|
type: "button",
|
|
4135
4162
|
class: O(["wm-compose__icon", { "is-open": r.attachOpen }]),
|
|
@@ -4151,7 +4178,7 @@ function Jr(e, t, n, i, r, s) {
|
|
|
4151
4178
|
}, [
|
|
4152
4179
|
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" })
|
|
4153
4180
|
], -1)
|
|
4154
|
-
])], 10,
|
|
4181
|
+
])], 10, Wr),
|
|
4155
4182
|
o("button", {
|
|
4156
4183
|
type: "submit",
|
|
4157
4184
|
class: O(["wm-compose__send", { "is-empty": !s.canSend }]),
|
|
@@ -4171,12 +4198,12 @@ function Jr(e, t, n, i, r, s) {
|
|
|
4171
4198
|
}, [
|
|
4172
4199
|
o("path", { d: "M22 2L11 13M22 2l-7 20-4-9-9-4 20-7z" })
|
|
4173
4200
|
], -1)
|
|
4174
|
-
])], 10,
|
|
4201
|
+
])], 10, Gr)
|
|
4175
4202
|
])
|
|
4176
4203
|
], 34)
|
|
4177
|
-
]);
|
|
4204
|
+
], 6);
|
|
4178
4205
|
}
|
|
4179
|
-
const
|
|
4206
|
+
const Jr = /* @__PURE__ */ B(Ur, [["render", Yr], ["__scopeId", "data-v-d6c1e5e7"]]), Qr = {
|
|
4180
4207
|
name: "WmSuggestionChips",
|
|
4181
4208
|
props: {
|
|
4182
4209
|
items: { type: Array, default: () => [] },
|
|
@@ -4193,22 +4220,22 @@ const Qr = /* @__PURE__ */ B(Ur, [["render", Jr], ["__scopeId", "data-v-b88b1cbb
|
|
|
4193
4220
|
return this.items.map((e) => (e == null ? void 0 : e.label) || (e == null ? void 0 : e.text) || "").join("§");
|
|
4194
4221
|
}
|
|
4195
4222
|
}
|
|
4196
|
-
},
|
|
4197
|
-
function
|
|
4223
|
+
}, Xr = ["onClick"];
|
|
4224
|
+
function Zr(e, t, n, i, r, s) {
|
|
4198
4225
|
return n.items.length ? (c(), u("div", {
|
|
4199
4226
|
key: s.batchKey,
|
|
4200
4227
|
class: "wm-chips"
|
|
4201
4228
|
}, [
|
|
4202
|
-
(c(!0), u(
|
|
4229
|
+
(c(!0), u(I, null, j(n.items, (a, l) => (c(), u("button", {
|
|
4203
4230
|
key: l,
|
|
4204
4231
|
type: "button",
|
|
4205
4232
|
class: "wm-chip",
|
|
4206
4233
|
style: q({ animationDelay: n.baseDelay + l * n.stepDelay + "ms" }),
|
|
4207
4234
|
onClick: (p) => e.$emit("select", a)
|
|
4208
|
-
}, v(a.label), 13,
|
|
4235
|
+
}, v(a.label), 13, Xr))), 128))
|
|
4209
4236
|
])) : b("", !0);
|
|
4210
4237
|
}
|
|
4211
|
-
const
|
|
4238
|
+
const ei = /* @__PURE__ */ B(Qr, [["render", Zr], ["__scopeId", "data-v-47ad8085"]]), ti = {
|
|
4212
4239
|
name: "WmApprovalCard",
|
|
4213
4240
|
components: { AIAvatar: le },
|
|
4214
4241
|
inject: {
|
|
@@ -4252,27 +4279,27 @@ const ti = /* @__PURE__ */ B(Xr, [["render", ei], ["__scopeId", "data-v-47ad8085
|
|
|
4252
4279
|
return ((e = this.rejectCallback) == null ? void 0 : e.label) || this.t("approval.reject");
|
|
4253
4280
|
}
|
|
4254
4281
|
}
|
|
4255
|
-
},
|
|
4282
|
+
}, ni = { class: "wm-approval" }, si = { class: "wm-approval__head" }, ri = { class: "wm-approval__icon" }, ii = { class: "wm-approval__main" }, ai = { class: "wm-approval__title" }, oi = {
|
|
4256
4283
|
key: 0,
|
|
4257
4284
|
class: "wm-approval__detail"
|
|
4258
|
-
},
|
|
4259
|
-
function
|
|
4260
|
-
const a =
|
|
4261
|
-
return c(), u("div",
|
|
4262
|
-
o("div",
|
|
4263
|
-
o("div",
|
|
4285
|
+
}, li = { class: "wm-approval__actions" };
|
|
4286
|
+
function ci(e, t, n, i, r, s) {
|
|
4287
|
+
const a = R("AIAvatar");
|
|
4288
|
+
return c(), u("div", ni, [
|
|
4289
|
+
o("div", si, [
|
|
4290
|
+
o("div", ri, [
|
|
4264
4291
|
V(a, {
|
|
4265
4292
|
size: 24,
|
|
4266
4293
|
name: n.agentName,
|
|
4267
4294
|
"image-url": n.agentAvatarUrl
|
|
4268
4295
|
}, null, 8, ["name", "image-url"])
|
|
4269
4296
|
]),
|
|
4270
|
-
o("div",
|
|
4271
|
-
o("div",
|
|
4272
|
-
n.detail ? (c(), u("div",
|
|
4297
|
+
o("div", ii, [
|
|
4298
|
+
o("div", ai, v(n.action), 1),
|
|
4299
|
+
n.detail ? (c(), u("div", oi, v(n.detail), 1)) : b("", !0)
|
|
4273
4300
|
])
|
|
4274
4301
|
]),
|
|
4275
|
-
o("div",
|
|
4302
|
+
o("div", li, [
|
|
4276
4303
|
s.rejectId ? (c(), u("button", {
|
|
4277
4304
|
key: 0,
|
|
4278
4305
|
type: "button",
|
|
@@ -4288,9 +4315,9 @@ function di(e, t, n, i, r, s) {
|
|
|
4288
4315
|
])
|
|
4289
4316
|
]);
|
|
4290
4317
|
}
|
|
4291
|
-
const
|
|
4318
|
+
const di = /* @__PURE__ */ B(ti, [["render", ci], ["__scopeId", "data-v-a2bed37e"]]);
|
|
4292
4319
|
let xe = 0;
|
|
4293
|
-
const
|
|
4320
|
+
const ui = /* @__PURE__ */ new Set([
|
|
4294
4321
|
"text",
|
|
4295
4322
|
"textarea",
|
|
4296
4323
|
"number",
|
|
@@ -4298,7 +4325,7 @@ const hi = /* @__PURE__ */ new Set([
|
|
|
4298
4325
|
"select",
|
|
4299
4326
|
"multiselect",
|
|
4300
4327
|
"date"
|
|
4301
|
-
]),
|
|
4328
|
+
]), hi = {
|
|
4302
4329
|
name: "WmFormCard",
|
|
4303
4330
|
components: { AIAvatar: le },
|
|
4304
4331
|
inject: {
|
|
@@ -4328,7 +4355,7 @@ const hi = /* @__PURE__ */ new Set([
|
|
|
4328
4355
|
// douteux.
|
|
4329
4356
|
normalizedFields() {
|
|
4330
4357
|
var t;
|
|
4331
|
-
return (Array.isArray((t = this.form) == null ? void 0 : t.fields) ? this.form.fields : []).filter((n) => !(!(n != null && n.key) || !(n != null && n.label) || !
|
|
4358
|
+
return (Array.isArray((t = this.form) == null ? void 0 : t.fields) ? this.form.fields : []).filter((n) => !(!(n != null && n.key) || !(n != null && n.label) || !ui.has(n == null ? void 0 : n.type) || (n.type === "select" || n.type === "multiselect") && (!Array.isArray(n.options) || n.options.length === 0)));
|
|
4332
4359
|
}
|
|
4333
4360
|
},
|
|
4334
4361
|
created() {
|
|
@@ -4381,54 +4408,54 @@ const hi = /* @__PURE__ */ new Set([
|
|
|
4381
4408
|
}
|
|
4382
4409
|
}
|
|
4383
4410
|
}
|
|
4384
|
-
},
|
|
4411
|
+
}, mi = { class: "wm-form" }, fi = { class: "wm-form__head" }, gi = { class: "wm-form__icon" }, _i = { class: "wm-form__main" }, pi = { class: "wm-form__title" }, vi = {
|
|
4385
4412
|
key: 0,
|
|
4386
4413
|
class: "wm-form__detail"
|
|
4387
|
-
},
|
|
4414
|
+
}, yi = ["for"], wi = {
|
|
4388
4415
|
key: 0,
|
|
4389
4416
|
class: "wm-form__req",
|
|
4390
4417
|
"aria-hidden": "true"
|
|
4391
|
-
},
|
|
4418
|
+
}, bi = ["id", "onUpdate:modelValue", "placeholder", "required", "disabled"], ki = ["id", "onUpdate:modelValue", "placeholder", "required", "disabled"], Ci = ["id", "onUpdate:modelValue", "placeholder", "required", "disabled"], Ai = ["id", "onUpdate:modelValue", "required", "disabled"], Si = {
|
|
4392
4419
|
key: 4,
|
|
4393
4420
|
class: "wm-form__bool"
|
|
4394
|
-
},
|
|
4421
|
+
}, Mi = ["id", "onUpdate:modelValue", "disabled"], Ti = ["id", "onUpdate:modelValue", "required", "disabled"], xi = {
|
|
4395
4422
|
value: "",
|
|
4396
4423
|
disabled: ""
|
|
4397
|
-
},
|
|
4424
|
+
}, Oi = ["value"], Li = {
|
|
4398
4425
|
key: 6,
|
|
4399
4426
|
class: "wm-form__multi"
|
|
4400
|
-
},
|
|
4427
|
+
}, Ei = ["value", "checked", "disabled", "onChange"], Ii = {
|
|
4401
4428
|
key: 0,
|
|
4402
4429
|
class: "wm-form__err"
|
|
4403
|
-
},
|
|
4430
|
+
}, Ri = ["disabled"], Bi = {
|
|
4404
4431
|
key: 0,
|
|
4405
4432
|
class: "wm-form__spinner",
|
|
4406
4433
|
"aria-hidden": "true"
|
|
4407
|
-
},
|
|
4434
|
+
}, Ni = {
|
|
4408
4435
|
key: 2,
|
|
4409
4436
|
class: "wm-form__doneLbl"
|
|
4410
4437
|
};
|
|
4411
|
-
function
|
|
4412
|
-
const a =
|
|
4413
|
-
return c(), u("div",
|
|
4414
|
-
o("div",
|
|
4415
|
-
o("div",
|
|
4438
|
+
function Fi(e, t, n, i, r, s) {
|
|
4439
|
+
const a = R("AIAvatar");
|
|
4440
|
+
return c(), u("div", mi, [
|
|
4441
|
+
o("div", fi, [
|
|
4442
|
+
o("div", gi, [
|
|
4416
4443
|
V(a, {
|
|
4417
4444
|
size: 24,
|
|
4418
4445
|
name: n.agentName,
|
|
4419
4446
|
"image-url": n.agentAvatarUrl
|
|
4420
4447
|
}, null, 8, ["name", "image-url"])
|
|
4421
4448
|
]),
|
|
4422
|
-
o("div",
|
|
4423
|
-
o("div",
|
|
4424
|
-
n.form.description ? (c(), u("div",
|
|
4449
|
+
o("div", _i, [
|
|
4450
|
+
o("div", pi, v(n.form.title || s.t("form.title")), 1),
|
|
4451
|
+
n.form.description ? (c(), u("div", vi, v(n.form.description), 1)) : b("", !0)
|
|
4425
4452
|
])
|
|
4426
4453
|
]),
|
|
4427
4454
|
o("form", {
|
|
4428
4455
|
class: "wm-form__body",
|
|
4429
4456
|
onSubmit: t[0] || (t[0] = J((...l) => s.onSubmit && s.onSubmit(...l), ["prevent"]))
|
|
4430
4457
|
}, [
|
|
4431
|
-
(c(!0), u(
|
|
4458
|
+
(c(!0), u(I, null, j(s.normalizedFields, (l) => (c(), u("div", {
|
|
4432
4459
|
key: l.key,
|
|
4433
4460
|
class: "wm-form__field"
|
|
4434
4461
|
}, [
|
|
@@ -4437,8 +4464,8 @@ function Ui(e, t, n, i, r, s) {
|
|
|
4437
4464
|
class: "wm-form__label"
|
|
4438
4465
|
}, [
|
|
4439
4466
|
pe(v(l.label), 1),
|
|
4440
|
-
l.required ? (c(), u("span",
|
|
4441
|
-
], 8,
|
|
4467
|
+
l.required ? (c(), u("span", wi, "*")) : b("", !0)
|
|
4468
|
+
], 8, yi),
|
|
4442
4469
|
l.type === "text" ? K((c(), u("input", {
|
|
4443
4470
|
key: 0,
|
|
4444
4471
|
id: `wm-f-${r._uid}-${l.key}`,
|
|
@@ -4448,7 +4475,7 @@ function Ui(e, t, n, i, r, s) {
|
|
|
4448
4475
|
placeholder: l.placeholder || "",
|
|
4449
4476
|
required: l.required,
|
|
4450
4477
|
disabled: n.readOnly || r.busy
|
|
4451
|
-
}, null, 8,
|
|
4478
|
+
}, null, 8, bi)), [
|
|
4452
4479
|
[X, r.values[l.key]]
|
|
4453
4480
|
]) : l.type === "textarea" ? K((c(), u("textarea", {
|
|
4454
4481
|
key: 1,
|
|
@@ -4459,7 +4486,7 @@ function Ui(e, t, n, i, r, s) {
|
|
|
4459
4486
|
placeholder: l.placeholder || "",
|
|
4460
4487
|
required: l.required,
|
|
4461
4488
|
disabled: n.readOnly || r.busy
|
|
4462
|
-
}, null, 8,
|
|
4489
|
+
}, null, 8, ki)), [
|
|
4463
4490
|
[X, r.values[l.key]]
|
|
4464
4491
|
]) : l.type === "number" ? K((c(), u("input", {
|
|
4465
4492
|
key: 2,
|
|
@@ -4470,7 +4497,7 @@ function Ui(e, t, n, i, r, s) {
|
|
|
4470
4497
|
placeholder: l.placeholder || "",
|
|
4471
4498
|
required: l.required,
|
|
4472
4499
|
disabled: n.readOnly || r.busy
|
|
4473
|
-
}, null, 8,
|
|
4500
|
+
}, null, 8, Ci)), [
|
|
4474
4501
|
[
|
|
4475
4502
|
X,
|
|
4476
4503
|
r.values[l.key],
|
|
@@ -4485,16 +4512,16 @@ function Ui(e, t, n, i, r, s) {
|
|
|
4485
4512
|
class: "wm-form__input",
|
|
4486
4513
|
required: l.required,
|
|
4487
4514
|
disabled: n.readOnly || r.busy
|
|
4488
|
-
}, null, 8,
|
|
4515
|
+
}, null, 8, Ai)), [
|
|
4489
4516
|
[X, r.values[l.key]]
|
|
4490
|
-
]) : l.type === "boolean" ? (c(), u("label",
|
|
4517
|
+
]) : l.type === "boolean" ? (c(), u("label", Si, [
|
|
4491
4518
|
K(o("input", {
|
|
4492
4519
|
id: `wm-f-${r._uid}-${l.key}`,
|
|
4493
4520
|
"onUpdate:modelValue": (p) => r.values[l.key] = p,
|
|
4494
4521
|
type: "checkbox",
|
|
4495
4522
|
disabled: n.readOnly || r.busy
|
|
4496
|
-
}, null, 8,
|
|
4497
|
-
[
|
|
4523
|
+
}, null, 8, Mi), [
|
|
4524
|
+
[He, r.values[l.key]]
|
|
4498
4525
|
]),
|
|
4499
4526
|
o("span", null, v(l.placeholder || s.t("common.yes")), 1)
|
|
4500
4527
|
])) : l.type === "select" ? K((c(), u("select", {
|
|
@@ -4505,15 +4532,15 @@ function Ui(e, t, n, i, r, s) {
|
|
|
4505
4532
|
required: l.required,
|
|
4506
4533
|
disabled: n.readOnly || r.busy
|
|
4507
4534
|
}, [
|
|
4508
|
-
o("option",
|
|
4509
|
-
(c(!0), u(
|
|
4535
|
+
o("option", xi, v(l.placeholder || s.t("form.choose")), 1),
|
|
4536
|
+
(c(!0), u(I, null, j(l.options, (p) => (c(), u("option", {
|
|
4510
4537
|
key: p.value,
|
|
4511
4538
|
value: p.value
|
|
4512
|
-
}, v(p.label), 9,
|
|
4513
|
-
], 8,
|
|
4514
|
-
[
|
|
4515
|
-
]) : l.type === "multiselect" ? (c(), u("div",
|
|
4516
|
-
(c(!0), u(
|
|
4539
|
+
}, v(p.label), 9, Oi))), 128))
|
|
4540
|
+
], 8, Ti)), [
|
|
4541
|
+
[ze, r.values[l.key]]
|
|
4542
|
+
]) : l.type === "multiselect" ? (c(), u("div", Li, [
|
|
4543
|
+
(c(!0), u(I, null, j(l.options, (p) => (c(), u("label", {
|
|
4517
4544
|
key: p.value,
|
|
4518
4545
|
class: "wm-form__multiItem"
|
|
4519
4546
|
}, [
|
|
@@ -4527,25 +4554,25 @@ function Ui(e, t, n, i, r, s) {
|
|
|
4527
4554
|
p.value,
|
|
4528
4555
|
k.target.checked
|
|
4529
4556
|
)
|
|
4530
|
-
}, null, 40,
|
|
4557
|
+
}, null, 40, Ei),
|
|
4531
4558
|
o("span", null, v(p.label), 1)
|
|
4532
4559
|
]))), 128))
|
|
4533
4560
|
])) : b("", !0)
|
|
4534
4561
|
]))), 128)),
|
|
4535
|
-
r.error ? (c(), u("div",
|
|
4536
|
-
n.readOnly ? (c(), u("div",
|
|
4562
|
+
r.error ? (c(), u("div", Ii, v(r.error), 1)) : b("", !0),
|
|
4563
|
+
n.readOnly ? (c(), u("div", Ni, v(s.t("form.responseSent")), 1)) : (c(), u("button", {
|
|
4537
4564
|
key: 1,
|
|
4538
4565
|
type: "submit",
|
|
4539
4566
|
class: "wm-form__submit",
|
|
4540
4567
|
disabled: r.busy
|
|
4541
4568
|
}, [
|
|
4542
|
-
r.busy ? (c(), u("span",
|
|
4569
|
+
r.busy ? (c(), u("span", Bi)) : b("", !0),
|
|
4543
4570
|
o("span", null, v(r.busy ? s.t("common.sending") : n.form.submit_label || s.t("common.send")), 1)
|
|
4544
|
-
], 8,
|
|
4571
|
+
], 8, Ri))
|
|
4545
4572
|
], 32)
|
|
4546
4573
|
]);
|
|
4547
4574
|
}
|
|
4548
|
-
const
|
|
4575
|
+
const Ui = /* @__PURE__ */ B(hi, [["render", Fi], ["__scopeId", "data-v-fe65cc56"]]), Pi = {
|
|
4549
4576
|
name: "WmFeedback",
|
|
4550
4577
|
inject: {
|
|
4551
4578
|
// Translator shared by the Messenger shell; French fallback when
|
|
@@ -4579,13 +4606,13 @@ const Pi = /* @__PURE__ */ B(mi, [["render", Ui], ["__scopeId", "data-v-fe65cc56
|
|
|
4579
4606
|
!this.sel || this.busy || this.$emit("submit", { rating: this.sel });
|
|
4580
4607
|
}
|
|
4581
4608
|
}
|
|
4582
|
-
},
|
|
4609
|
+
}, ji = { class: "wm-fb" }, Di = { class: "wm-fb__title" }, Hi = { class: "wm-fb__sub" }, zi = { class: "wm-fb__row" }, qi = ["onClick"], $i = { class: "wm-fb__emoji" }, Vi = { class: "wm-fb__label" }, Ki = ["disabled"], Wi = {
|
|
4583
4610
|
key: 1,
|
|
4584
4611
|
class: "wm-fb__done"
|
|
4585
|
-
},
|
|
4586
|
-
function
|
|
4587
|
-
return c(), u("div",
|
|
4588
|
-
n.done ? (c(), u("div",
|
|
4612
|
+
}, Gi = { class: "wm-fb__doneTitle" }, Yi = { class: "wm-fb__doneSub" };
|
|
4613
|
+
function Ji(e, t, n, i, r, s) {
|
|
4614
|
+
return c(), u("div", ji, [
|
|
4615
|
+
n.done ? (c(), u("div", Wi, [
|
|
4589
4616
|
t[1] || (t[1] = o("div", { class: "wm-fb__check" }, [
|
|
4590
4617
|
o("svg", {
|
|
4591
4618
|
width: "16",
|
|
@@ -4601,32 +4628,32 @@ function Qi(e, t, n, i, r, s) {
|
|
|
4601
4628
|
o("path", { d: "M20 6L9 17l-5-5" })
|
|
4602
4629
|
])
|
|
4603
4630
|
], -1)),
|
|
4604
|
-
o("div",
|
|
4605
|
-
o("div",
|
|
4606
|
-
])) : (c(), u(
|
|
4607
|
-
o("div",
|
|
4631
|
+
o("div", Gi, v(s.t("feedback.doneTitle")), 1),
|
|
4632
|
+
o("div", Yi, v(s.t("feedback.doneSubtitle")), 1)
|
|
4633
|
+
])) : (c(), u(I, { key: 0 }, [
|
|
4634
|
+
o("div", Di, v(s.t("feedback.question")), 1),
|
|
4608
4635
|
o("div", Hi, v(s.t("feedback.subtitle")), 1),
|
|
4609
|
-
o("div",
|
|
4610
|
-
(c(!0), u(
|
|
4636
|
+
o("div", zi, [
|
|
4637
|
+
(c(!0), u(I, null, j(s.options, (a) => (c(), u("button", {
|
|
4611
4638
|
key: a.v,
|
|
4612
4639
|
type: "button",
|
|
4613
4640
|
class: O(["wm-fb__opt", { "is-selected": r.sel === a.v }]),
|
|
4614
4641
|
onClick: (l) => r.sel = a.v
|
|
4615
4642
|
}, [
|
|
4616
|
-
o("span",
|
|
4617
|
-
o("span",
|
|
4618
|
-
], 10,
|
|
4643
|
+
o("span", $i, v(a.e), 1),
|
|
4644
|
+
o("span", Vi, v(a.l), 1)
|
|
4645
|
+
], 10, qi))), 128))
|
|
4619
4646
|
]),
|
|
4620
4647
|
o("button", {
|
|
4621
4648
|
type: "button",
|
|
4622
4649
|
class: "wm-fb__send",
|
|
4623
4650
|
disabled: !r.sel || n.busy,
|
|
4624
4651
|
onClick: t[0] || (t[0] = (...a) => s.onSend && s.onSend(...a))
|
|
4625
|
-
}, v(n.busy ? s.t("common.sending") : s.t("feedback.submit")), 9,
|
|
4652
|
+
}, v(n.busy ? s.t("common.sending") : s.t("feedback.submit")), 9, Ki)
|
|
4626
4653
|
], 64))
|
|
4627
4654
|
]);
|
|
4628
4655
|
}
|
|
4629
|
-
const
|
|
4656
|
+
const Qi = /* @__PURE__ */ B(Pi, [["render", Ji], ["__scopeId", "data-v-9b630564"]]), Xi = {
|
|
4630
4657
|
name: "WmMoreMenu",
|
|
4631
4658
|
inject: {
|
|
4632
4659
|
// Translator shared by the Messenger shell; French fallback when
|
|
@@ -4669,24 +4696,24 @@ const Xi = /* @__PURE__ */ B(ji, [["render", Qi], ["__scopeId", "data-v-9b630564
|
|
|
4669
4696
|
this.browserNotifOn = !this.browserNotifOn, this.$emit("browser-notif-toggle", this.browserNotifOn);
|
|
4670
4697
|
}
|
|
4671
4698
|
}
|
|
4672
|
-
},
|
|
4699
|
+
}, Zi = { class: "wm-mm" }, ea = {
|
|
4673
4700
|
class: "wm-mm__pop",
|
|
4674
4701
|
role: "menu"
|
|
4675
|
-
},
|
|
4702
|
+
}, ta = {
|
|
4676
4703
|
key: 0,
|
|
4677
4704
|
class: "wm-mm__section"
|
|
4678
|
-
},
|
|
4705
|
+
}, na = { class: "wm-mm__label" }, sa = { class: "wm-mm__label" }, ra = {
|
|
4679
4706
|
key: 1,
|
|
4680
4707
|
class: "wm-mm__sep"
|
|
4681
|
-
},
|
|
4682
|
-
function
|
|
4683
|
-
return c(), u("div",
|
|
4708
|
+
}, ia = { class: "wm-mm__section" }, aa = { class: "wm-mm__label" }, oa = { class: "wm-mm__label" }, la = { class: "wm-mm__section" }, ca = { class: "wm-mm__label" }, da = { class: "wm-mm__label" };
|
|
4709
|
+
function ua(e, t, n, i, r, s) {
|
|
4710
|
+
return c(), u("div", Zi, [
|
|
4684
4711
|
o("div", {
|
|
4685
4712
|
class: "wm-mm__scrim",
|
|
4686
4713
|
onClick: t[0] || (t[0] = (a) => e.$emit("close"))
|
|
4687
4714
|
}),
|
|
4688
|
-
o("div",
|
|
4689
|
-
n.canRename || n.canExport ? (c(), u("div",
|
|
4715
|
+
o("div", ea, [
|
|
4716
|
+
n.canRename || n.canExport ? (c(), u("div", ta, [
|
|
4690
4717
|
n.canRename ? (c(), u("button", {
|
|
4691
4718
|
key: 0,
|
|
4692
4719
|
type: "button",
|
|
@@ -4709,7 +4736,7 @@ function ha(e, t, n, i, r, s) {
|
|
|
4709
4736
|
o("path", { d: "M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4 12.5-12.5z" })
|
|
4710
4737
|
])
|
|
4711
4738
|
], -1)),
|
|
4712
|
-
o("span",
|
|
4739
|
+
o("span", na, v(s.t("moreMenu.editTitle")), 1)
|
|
4713
4740
|
])) : b("", !0),
|
|
4714
4741
|
n.canExport ? (c(), u("button", {
|
|
4715
4742
|
key: 1,
|
|
@@ -4732,12 +4759,12 @@ function ha(e, t, n, i, r, s) {
|
|
|
4732
4759
|
o("path", { d: "M4 12v8a2 2 0 002 2h12a2 2 0 002-2v-8M16 6l-4-4-4 4M12 2v13" })
|
|
4733
4760
|
])
|
|
4734
4761
|
], -1)),
|
|
4735
|
-
o("span",
|
|
4762
|
+
o("span", sa, v(s.t("moreMenu.exportTranscript")), 1),
|
|
4736
4763
|
t[9] || (t[9] = o("span", { class: "wm-mm__hint" }, ".txt", -1))
|
|
4737
4764
|
])) : b("", !0)
|
|
4738
4765
|
])) : b("", !0),
|
|
4739
|
-
n.canRename || n.canExport ? (c(), u("div",
|
|
4740
|
-
o("div",
|
|
4766
|
+
n.canRename || n.canExport ? (c(), u("div", ra)) : b("", !0),
|
|
4767
|
+
o("div", ia, [
|
|
4741
4768
|
o("button", {
|
|
4742
4769
|
type: "button",
|
|
4743
4770
|
class: "wm-mm__item",
|
|
@@ -4759,7 +4786,7 @@ function ha(e, t, n, i, r, s) {
|
|
|
4759
4786
|
o("path", { d: "M15.54 8.46a5 5 0 010 7.07M19.07 4.93a10 10 0 010 14.14" })
|
|
4760
4787
|
])
|
|
4761
4788
|
], -1)),
|
|
4762
|
-
o("span",
|
|
4789
|
+
o("span", aa, v(s.t("moreMenu.sound")), 1),
|
|
4763
4790
|
o("span", {
|
|
4764
4791
|
class: O(["wm-mm__toggle", { "wm-mm__toggle--on": r.soundOn }])
|
|
4765
4792
|
}, [...t[10] || (t[10] = [
|
|
@@ -4786,7 +4813,7 @@ function ha(e, t, n, i, r, s) {
|
|
|
4786
4813
|
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" })
|
|
4787
4814
|
])
|
|
4788
4815
|
], -1)),
|
|
4789
|
-
o("span",
|
|
4816
|
+
o("span", oa, v(s.t("moreMenu.browserNotifications")), 1),
|
|
4790
4817
|
o("span", {
|
|
4791
4818
|
class: O(["wm-mm__toggle", { "wm-mm__toggle--on": r.browserNotifOn }])
|
|
4792
4819
|
}, [...t[12] || (t[12] = [
|
|
@@ -4795,7 +4822,7 @@ function ha(e, t, n, i, r, s) {
|
|
|
4795
4822
|
])
|
|
4796
4823
|
]),
|
|
4797
4824
|
t[16] || (t[16] = o("div", { class: "wm-mm__sep" }, null, -1)),
|
|
4798
|
-
o("div",
|
|
4825
|
+
o("div", la, [
|
|
4799
4826
|
n.statusUrl ? (c(), u("button", {
|
|
4800
4827
|
key: 0,
|
|
4801
4828
|
type: "button",
|
|
@@ -4817,7 +4844,7 @@ function ha(e, t, n, i, r, s) {
|
|
|
4817
4844
|
o("path", { d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zM10 6v4l3 2" })
|
|
4818
4845
|
])
|
|
4819
4846
|
], -1)),
|
|
4820
|
-
o("span",
|
|
4847
|
+
o("span", ca, v(s.t("moreMenu.serviceStatus")), 1)
|
|
4821
4848
|
])) : b("", !0),
|
|
4822
4849
|
n.helpUrl ? (c(), u("button", {
|
|
4823
4850
|
key: 1,
|
|
@@ -4840,13 +4867,13 @@ function ha(e, t, n, i, r, s) {
|
|
|
4840
4867
|
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" })
|
|
4841
4868
|
])
|
|
4842
4869
|
], -1)),
|
|
4843
|
-
o("span",
|
|
4870
|
+
o("span", da, v(s.t("moreMenu.helpCenter")), 1)
|
|
4844
4871
|
])) : b("", !0)
|
|
4845
4872
|
])
|
|
4846
4873
|
])
|
|
4847
4874
|
]);
|
|
4848
4875
|
}
|
|
4849
|
-
const
|
|
4876
|
+
const ha = /* @__PURE__ */ B(Xi, [["render", ua], ["__scopeId", "data-v-76281e95"]]), ma = {
|
|
4850
4877
|
name: "WmRenameDialog",
|
|
4851
4878
|
inject: {
|
|
4852
4879
|
// Translator shared by the Messenger shell; French fallback when
|
|
@@ -4888,20 +4915,20 @@ const ma = /* @__PURE__ */ B(Zi, [["render", ha], ["__scopeId", "data-v-76281e95
|
|
|
4888
4915
|
this.canSubmit && this.$emit("submit", this.value.trim());
|
|
4889
4916
|
}
|
|
4890
4917
|
}
|
|
4891
|
-
},
|
|
4918
|
+
}, fa = { class: "wm-dialog" }, ga = {
|
|
4892
4919
|
class: "wm-dialog__card",
|
|
4893
4920
|
role: "dialog",
|
|
4894
4921
|
"aria-modal": "true"
|
|
4895
|
-
},
|
|
4896
|
-
function
|
|
4897
|
-
return c(), u("div",
|
|
4922
|
+
}, _a = { class: "wm-dialog__head" }, pa = { class: "wm-dialog__title" }, va = ["aria-label"], ya = { class: "wm-dialog__body" }, wa = ["placeholder"], ba = { class: "wm-dialog__actions" }, ka = ["disabled"];
|
|
4923
|
+
function Ca(e, t, n, i, r, s) {
|
|
4924
|
+
return c(), u("div", fa, [
|
|
4898
4925
|
o("div", {
|
|
4899
4926
|
class: "wm-dialog__scrim",
|
|
4900
4927
|
onClick: t[0] || (t[0] = (a) => e.$emit("close"))
|
|
4901
4928
|
}),
|
|
4902
|
-
o("div",
|
|
4903
|
-
o("div",
|
|
4904
|
-
o("div",
|
|
4929
|
+
o("div", ga, [
|
|
4930
|
+
o("div", _a, [
|
|
4931
|
+
o("div", pa, v(n.title || s.t("rename.title")), 1),
|
|
4905
4932
|
o("button", {
|
|
4906
4933
|
type: "button",
|
|
4907
4934
|
class: "wm-dialog__close",
|
|
@@ -4921,9 +4948,9 @@ function Aa(e, t, n, i, r, s) {
|
|
|
4921
4948
|
}, [
|
|
4922
4949
|
o("path", { d: "M18 6L6 18M6 6l12 12" })
|
|
4923
4950
|
], -1)
|
|
4924
|
-
])], 8,
|
|
4951
|
+
])], 8, va)
|
|
4925
4952
|
]),
|
|
4926
|
-
o("div",
|
|
4953
|
+
o("div", ya, [
|
|
4927
4954
|
K(o("input", {
|
|
4928
4955
|
ref: "input",
|
|
4929
4956
|
"onUpdate:modelValue": t[2] || (t[2] = (a) => r.value = a),
|
|
@@ -4935,11 +4962,11 @@ function Aa(e, t, n, i, r, s) {
|
|
|
4935
4962
|
t[3] || (t[3] = ue(J((...a) => s.onSubmit && s.onSubmit(...a), ["prevent"]), ["enter"])),
|
|
4936
4963
|
t[4] || (t[4] = ue(J((a) => e.$emit("close"), ["prevent"]), ["esc"]))
|
|
4937
4964
|
]
|
|
4938
|
-
}, null, 40,
|
|
4965
|
+
}, null, 40, wa), [
|
|
4939
4966
|
[X, r.value]
|
|
4940
4967
|
])
|
|
4941
4968
|
]),
|
|
4942
|
-
o("div",
|
|
4969
|
+
o("div", ba, [
|
|
4943
4970
|
o("button", {
|
|
4944
4971
|
type: "button",
|
|
4945
4972
|
class: "wm-dialog__btn",
|
|
@@ -4950,25 +4977,25 @@ function Aa(e, t, n, i, r, s) {
|
|
|
4950
4977
|
class: "wm-dialog__btn wm-dialog__btn--primary",
|
|
4951
4978
|
disabled: !s.canSubmit,
|
|
4952
4979
|
onClick: t[6] || (t[6] = (...a) => s.onSubmit && s.onSubmit(...a))
|
|
4953
|
-
}, v(s.t("common.save")), 9,
|
|
4980
|
+
}, v(s.t("common.save")), 9, ka)
|
|
4954
4981
|
])
|
|
4955
4982
|
])
|
|
4956
4983
|
]);
|
|
4957
4984
|
}
|
|
4958
|
-
const
|
|
4985
|
+
const Aa = /* @__PURE__ */ B(ma, [["render", Ca], ["__scopeId", "data-v-6d5f94a8"]]), Oe = "ww-messenger-tokens", Sa = {
|
|
4959
4986
|
name: "Messenger",
|
|
4960
4987
|
components: {
|
|
4961
4988
|
Launcher: Ft,
|
|
4962
4989
|
Header: ln,
|
|
4963
4990
|
Onboarding: qn,
|
|
4964
|
-
MessageList:
|
|
4965
|
-
Composer:
|
|
4966
|
-
SuggestionChips:
|
|
4967
|
-
ApprovalCard:
|
|
4968
|
-
FormCard:
|
|
4969
|
-
Feedback:
|
|
4970
|
-
MoreMenu:
|
|
4971
|
-
RenameDialog:
|
|
4991
|
+
MessageList: Er,
|
|
4992
|
+
Composer: Jr,
|
|
4993
|
+
SuggestionChips: ei,
|
|
4994
|
+
ApprovalCard: di,
|
|
4995
|
+
FormCard: Ui,
|
|
4996
|
+
Feedback: Qi,
|
|
4997
|
+
MoreMenu: ha,
|
|
4998
|
+
RenameDialog: Aa
|
|
4972
4999
|
},
|
|
4973
5000
|
mixins: [
|
|
4974
5001
|
ot,
|
|
@@ -5157,9 +5184,9 @@ const Sa = /* @__PURE__ */ B(fa, [["render", Aa], ["__scopeId", "data-v-6d5f94a8
|
|
|
5157
5184
|
const T = r[w];
|
|
5158
5185
|
if (!T) continue;
|
|
5159
5186
|
if (((k = T.author) == null ? void 0 : k.type) === "user") break;
|
|
5160
|
-
const
|
|
5161
|
-
if (
|
|
5162
|
-
if (s != null &&
|
|
5187
|
+
const E = W(T.id);
|
|
5188
|
+
if (E != null) {
|
|
5189
|
+
if (s != null && E <= s) break;
|
|
5163
5190
|
t[T.id] !== 0 && (!l && T.author && (l = T.author), a++);
|
|
5164
5191
|
}
|
|
5165
5192
|
}
|
|
@@ -5694,13 +5721,13 @@ const Sa = /* @__PURE__ */ B(fa, [["render", Aa], ["__scopeId", "data-v-6d5f94a8
|
|
|
5694
5721
|
this.launcherHovered = e, this.sendCurrentLauncherSize();
|
|
5695
5722
|
},
|
|
5696
5723
|
sendCurrentLauncherSize() {
|
|
5697
|
-
var T,
|
|
5724
|
+
var T, E, A, H, M, F, N;
|
|
5698
5725
|
if (this.isOpen) return;
|
|
5699
|
-
const e = (
|
|
5726
|
+
const e = (E = (T = this.$el) == null ? void 0 : T.querySelector) == null ? void 0 : E.call(T, ".wm-launcherWrap");
|
|
5700
5727
|
if (!e) return;
|
|
5701
5728
|
const t = e.getBoundingClientRect();
|
|
5702
5729
|
if (!t.width || !t.height) return;
|
|
5703
|
-
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 = (M = (
|
|
5730
|
+
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 = (M = (H = this.$el) == null ? void 0 : H.querySelector) == null ? void 0 : M.call(H, ".wm-launcher"), l = a == null ? void 0 : a.getBoundingClientRect(), p = (N = (F = this.$el) == null ? void 0 : F.querySelectorAll) == null ? void 0 : N.call(F, ".wm-peek"), k = p && p.length ? p[p.length - 1] : null;
|
|
5704
5731
|
let w = null;
|
|
5705
5732
|
if (k) {
|
|
5706
5733
|
const P = k.getBoundingClientRect();
|
|
@@ -5931,29 +5958,29 @@ const Sa = /* @__PURE__ */ B(fa, [["render", Aa], ["__scopeId", "data-v-6d5f94a8
|
|
|
5931
5958
|
}
|
|
5932
5959
|
}
|
|
5933
5960
|
}
|
|
5934
|
-
},
|
|
5961
|
+
}, Ma = {
|
|
5935
5962
|
key: 0,
|
|
5936
5963
|
class: "wm-loading",
|
|
5937
5964
|
"aria-busy": "true",
|
|
5938
5965
|
"aria-live": "polite"
|
|
5939
|
-
},
|
|
5966
|
+
}, Ta = ["aria-label"], xa = {
|
|
5940
5967
|
key: 0,
|
|
5941
5968
|
class: "wm-state"
|
|
5942
|
-
},
|
|
5969
|
+
}, Oa = { class: "wm-state__err" }, La = { class: "wm-state__errTitle" }, Ea = { class: "wm-state__errSub" }, Ia = { class: "wm-bottom" }, Ra = {
|
|
5943
5970
|
key: 0,
|
|
5944
5971
|
ref: "floatEl",
|
|
5945
5972
|
class: "wm-float"
|
|
5946
|
-
},
|
|
5973
|
+
}, Ba = {
|
|
5947
5974
|
key: 1,
|
|
5948
5975
|
class: "wm-actionWait",
|
|
5949
5976
|
role: "status",
|
|
5950
5977
|
"aria-live": "polite"
|
|
5951
|
-
},
|
|
5978
|
+
}, Na = { class: "wm-actionWait__lbl" }, Fa = {
|
|
5952
5979
|
key: 2,
|
|
5953
5980
|
class: "wm-attached"
|
|
5954
|
-
},
|
|
5955
|
-
function
|
|
5956
|
-
const a =
|
|
5981
|
+
}, Ua = ["aria-label", "onClick"];
|
|
5982
|
+
function Pa(e, t, n, i, r, s) {
|
|
5983
|
+
const a = R("Launcher"), l = R("Header"), p = R("Onboarding"), k = R("MessageList"), w = R("ApprovalCard"), T = R("FormCard"), E = R("Feedback"), A = R("SuggestionChips"), H = R("Composer"), M = R("MoreMenu"), F = R("RenameDialog");
|
|
5957
5984
|
return c(), u("div", {
|
|
5958
5985
|
class: O(["wm-root", `wm-root--${n.displayMode}`])
|
|
5959
5986
|
}, [
|
|
@@ -5976,7 +6003,7 @@ function ja(e, t, n, i, r, s) {
|
|
|
5976
6003
|
role: "dialog",
|
|
5977
6004
|
"aria-label": "Messenger"
|
|
5978
6005
|
}, [
|
|
5979
|
-
!s.ready && !s.error ? (c(), u("div",
|
|
6006
|
+
!s.ready && !s.error ? (c(), u("div", Ma, [
|
|
5980
6007
|
s.isEmbedded ? b("", !0) : (c(), u("button", {
|
|
5981
6008
|
key: 0,
|
|
5982
6009
|
type: "button",
|
|
@@ -5997,12 +6024,12 @@ function ja(e, t, n, i, r, s) {
|
|
|
5997
6024
|
}, [
|
|
5998
6025
|
o("path", { d: "M18 6L6 18M6 6l12 12" })
|
|
5999
6026
|
], -1)
|
|
6000
|
-
])], 8,
|
|
6027
|
+
])], 8, Ta)),
|
|
6001
6028
|
t[6] || (t[6] = o("div", {
|
|
6002
6029
|
class: "wm-loading__spinner",
|
|
6003
6030
|
"aria-hidden": "true"
|
|
6004
6031
|
}, null, -1))
|
|
6005
|
-
])) : (c(), u(
|
|
6032
|
+
])) : (c(), u(I, { key: 1 }, [
|
|
6006
6033
|
V(l, {
|
|
6007
6034
|
title: s.headerTitle,
|
|
6008
6035
|
"team-members": s.teamMembers,
|
|
@@ -6017,8 +6044,8 @@ function ja(e, t, n, i, r, s) {
|
|
|
6017
6044
|
onMore: s.toggleMore,
|
|
6018
6045
|
onClose: s.close
|
|
6019
6046
|
}, null, 8, ["title", "team-members", "response-label", "show-identity", "show-back", "show-close", "more-active", "agent-name", "agent-avatar-url", "onBack", "onMore", "onClose"]),
|
|
6020
|
-
s.error ? (c(), u("div",
|
|
6021
|
-
o("div",
|
|
6047
|
+
s.error ? (c(), u("div", xa, [
|
|
6048
|
+
o("div", Oa, [
|
|
6022
6049
|
t[7] || (t[7] = o("div", { class: "wm-state__errIcon" }, [
|
|
6023
6050
|
o("svg", {
|
|
6024
6051
|
width: "14",
|
|
@@ -6035,11 +6062,11 @@ function ja(e, t, n, i, r, s) {
|
|
|
6035
6062
|
])
|
|
6036
6063
|
], -1)),
|
|
6037
6064
|
o("div", null, [
|
|
6038
|
-
o("div",
|
|
6039
|
-
o("div",
|
|
6065
|
+
o("div", La, v(s.t("error.connectionFailed")), 1),
|
|
6066
|
+
o("div", Ea, v(s.error), 1)
|
|
6040
6067
|
])
|
|
6041
6068
|
])
|
|
6042
|
-
])) : s.currentConv ? (c(), u(
|
|
6069
|
+
])) : s.currentConv ? (c(), u(I, { key: 2 }, [
|
|
6043
6070
|
V(k, {
|
|
6044
6071
|
ref: "messageList",
|
|
6045
6072
|
messages: s.displayedMessages,
|
|
@@ -6054,8 +6081,8 @@ function ja(e, t, n, i, r, s) {
|
|
|
6054
6081
|
"ai-agent-avatar-url": s.agentAvatarUrl,
|
|
6055
6082
|
onLoadMore: s.onLoadMore
|
|
6056
6083
|
}, 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"]),
|
|
6057
|
-
o("div",
|
|
6058
|
-
s.floatVisible ? (c(), u("div",
|
|
6084
|
+
o("div", Ia, [
|
|
6085
|
+
s.floatVisible ? (c(), u("div", Ra, [
|
|
6059
6086
|
s.approvalReady ? (c(), U(w, {
|
|
6060
6087
|
key: 0,
|
|
6061
6088
|
action: s.approvalTitle,
|
|
@@ -6070,7 +6097,7 @@ function ja(e, t, n, i, r, s) {
|
|
|
6070
6097
|
"agent-name": s.agentName,
|
|
6071
6098
|
"agent-avatar-url": s.agentAvatarUrl,
|
|
6072
6099
|
onSubmit: s.onFormSubmit
|
|
6073
|
-
}, null, 8, ["form", "agent-name", "agent-avatar-url", "onSubmit"])) : s.showFeedback ? (c(), U(
|
|
6100
|
+
}, null, 8, ["form", "agent-name", "agent-avatar-url", "onSubmit"])) : s.showFeedback ? (c(), U(E, {
|
|
6074
6101
|
key: 2,
|
|
6075
6102
|
busy: r.feedbackBusy,
|
|
6076
6103
|
done: r.feedbackDone,
|
|
@@ -6081,15 +6108,15 @@ function ja(e, t, n, i, r, s) {
|
|
|
6081
6108
|
onSelect: s.onSuggestion
|
|
6082
6109
|
}, null, 8, ["items", "onSelect"]))
|
|
6083
6110
|
], 512)) : b("", !0),
|
|
6084
|
-
s.actionInFlight ? (c(), u("div",
|
|
6111
|
+
s.actionInFlight ? (c(), u("div", Ba, [
|
|
6085
6112
|
t[8] || (t[8] = o("span", {
|
|
6086
6113
|
class: "wm-actionWait__spinner",
|
|
6087
6114
|
"aria-hidden": "true"
|
|
6088
6115
|
}, null, -1)),
|
|
6089
|
-
o("span",
|
|
6116
|
+
o("span", Na, v(s.t("action.inProgress", {
|
|
6090
6117
|
name: s.actionInFlightName
|
|
6091
6118
|
})), 1)
|
|
6092
|
-
])) : (c(), U(
|
|
6119
|
+
])) : (c(), U(H, {
|
|
6093
6120
|
key: 2,
|
|
6094
6121
|
ref: "composer",
|
|
6095
6122
|
modelValue: r.draft,
|
|
@@ -6097,9 +6124,10 @@ function ja(e, t, n, i, r, s) {
|
|
|
6097
6124
|
placeholder: s.composerPlaceholder,
|
|
6098
6125
|
disabled: !!s.pendingApproval,
|
|
6099
6126
|
"attach-label": s.t("composer.attachFile"),
|
|
6127
|
+
"display-mode": n.displayMode,
|
|
6100
6128
|
onSend: s.onSend,
|
|
6101
6129
|
onAttach: s.onAttach
|
|
6102
|
-
}, null, 8, ["modelValue", "placeholder", "disabled", "attach-label", "onSend", "onAttach"]))
|
|
6130
|
+
}, null, 8, ["modelValue", "placeholder", "disabled", "attach-label", "display-mode", "onSend", "onAttach"]))
|
|
6103
6131
|
]),
|
|
6104
6132
|
r.moreOpen ? (c(), U(M, {
|
|
6105
6133
|
key: 0,
|
|
@@ -6121,8 +6149,8 @@ function ja(e, t, n, i, r, s) {
|
|
|
6121
6149
|
onClose: t[3] || (t[3] = (N) => r.renameDialogOpen = !1),
|
|
6122
6150
|
onSubmit: s.onRenameSubmit
|
|
6123
6151
|
}, null, 8, ["initial-value", "title", "onSubmit"])) : b("", !0),
|
|
6124
|
-
r.pendingAttachments.length ? (c(), u("div",
|
|
6125
|
-
(c(!0), u(
|
|
6152
|
+
r.pendingAttachments.length ? (c(), u("div", Fa, [
|
|
6153
|
+
(c(!0), u(I, null, j(r.pendingAttachments, (N, P) => (c(), u("div", {
|
|
6126
6154
|
key: P,
|
|
6127
6155
|
class: "wm-attached__chip"
|
|
6128
6156
|
}, [
|
|
@@ -6158,7 +6186,7 @@ function ja(e, t, n, i, r, s) {
|
|
|
6158
6186
|
}, [
|
|
6159
6187
|
o("path", { d: "M18 6L6 18M6 6l12 12" })
|
|
6160
6188
|
], -1)
|
|
6161
|
-
])], 8,
|
|
6189
|
+
])], 8, Ua)
|
|
6162
6190
|
]))), 128))
|
|
6163
6191
|
])) : b("", !0)
|
|
6164
6192
|
], 64)) : (c(), U(p, {
|
|
@@ -6191,49 +6219,49 @@ function ja(e, t, n, i, r, s) {
|
|
|
6191
6219
|
], 6)) : b("", !0)
|
|
6192
6220
|
], 2);
|
|
6193
6221
|
}
|
|
6194
|
-
const Ha = /* @__PURE__ */ B(
|
|
6222
|
+
const Ha = /* @__PURE__ */ B(Sa, [["render", Pa], ["__scopeId", "data-v-f55cad6a"]]), za = "0.5.26";
|
|
6195
6223
|
export {
|
|
6196
6224
|
le as AIAvatar,
|
|
6197
6225
|
ge as AVATAR_COLORS,
|
|
6198
6226
|
ts as ActionResult,
|
|
6199
|
-
|
|
6227
|
+
di as ApprovalCard,
|
|
6200
6228
|
ds as ArtifactFormResponse,
|
|
6201
6229
|
Cs as ArtifactInfoCard,
|
|
6202
|
-
|
|
6230
|
+
zs as ArtifactRenderer,
|
|
6203
6231
|
Ps as ArtifactTicket,
|
|
6204
6232
|
er as AttachmentPreview,
|
|
6205
6233
|
rr as Bubble,
|
|
6206
|
-
|
|
6234
|
+
Jr as Composer,
|
|
6207
6235
|
Ze as DEFAULT_BASE_URL,
|
|
6208
6236
|
ie as DEFAULT_LANGUAGE,
|
|
6209
|
-
|
|
6210
|
-
|
|
6237
|
+
Qi as Feedback,
|
|
6238
|
+
Ui as FormCard,
|
|
6211
6239
|
ln as Header,
|
|
6212
|
-
|
|
6240
|
+
Ie as HumanAvatar,
|
|
6213
6241
|
Ft as Launcher,
|
|
6214
6242
|
be as MEDIA_RECORDER_SUPPORTED,
|
|
6215
|
-
|
|
6243
|
+
Er as MessageList,
|
|
6216
6244
|
Ha as Messenger,
|
|
6217
|
-
|
|
6245
|
+
ha as MoreMenu,
|
|
6218
6246
|
qn as Onboarding,
|
|
6219
6247
|
he as SCREEN_CAPTURE_SUPPORTED,
|
|
6220
6248
|
et as SUPPORTED_LANGUAGES,
|
|
6221
|
-
|
|
6249
|
+
ei as SuggestionChips,
|
|
6222
6250
|
Gt as TeamAvatars,
|
|
6223
6251
|
lr as Typing,
|
|
6224
|
-
|
|
6252
|
+
za as VERSION,
|
|
6225
6253
|
ve as avatarColor,
|
|
6226
6254
|
ye as avatarInitials,
|
|
6227
|
-
|
|
6228
|
-
|
|
6255
|
+
Rr as captureScreenshotFile,
|
|
6256
|
+
z as colors,
|
|
6229
6257
|
Qe as createStore,
|
|
6230
6258
|
D as createTranslator,
|
|
6231
6259
|
We as createTransport,
|
|
6232
6260
|
oe as dateLocale,
|
|
6233
6261
|
Ha as default,
|
|
6234
6262
|
Le as formatTime,
|
|
6235
|
-
|
|
6236
|
-
|
|
6263
|
+
Da as guessAttachmentKind,
|
|
6264
|
+
Ir as pickRecorderMime,
|
|
6237
6265
|
dn as renderInlineMarkdown,
|
|
6238
6266
|
un as renderMarkdown,
|
|
6239
6267
|
we as resolveLanguage,
|