@_solaris/messenger-widget 0.5.8 → 0.5.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/iframe/iframe.css +1 -1
- package/dist/iframe/iframe.js +6 -6
- package/dist/messenger.cjs +1 -1
- package/dist/messenger.js +139 -136
- package/dist/snippet.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/messenger.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { reactive as Fe, openBlock as c, createElementBlock as u, normalizeStyle as
|
|
1
|
+
import { reactive as Fe, openBlock as c, createElementBlock as u, normalizeStyle as q, normalizeClass as O, toDisplayString as v, resolveComponent as L, createVNode as V, Transition as Ue, withCtx as Pe, Fragment as E, renderList as U, withKeys as ue, withModifiers as Y, createElementVNode as o, createCommentVNode as w, createBlock as N, withDirectives as K, vModelText as X, createTextVNode as pe, resolveDynamicComponent as je, renderSlot as De, vModelCheckbox as ze, vModelSelect as qe, markRaw as ke } from "vue";
|
|
2
2
|
const He = [
|
|
3
3
|
"connected",
|
|
4
4
|
"message",
|
|
@@ -159,7 +159,7 @@ function We(e) {
|
|
|
159
159
|
f
|
|
160
160
|
)).conversation;
|
|
161
161
|
}
|
|
162
|
-
async function
|
|
162
|
+
async function j(d, f) {
|
|
163
163
|
return a(
|
|
164
164
|
"PATCH",
|
|
165
165
|
`/conversations/${encodeURIComponent(d)}/read`,
|
|
@@ -175,7 +175,7 @@ function We(e) {
|
|
|
175
175
|
`/conversations/${encodeURIComponent(d)}/messages${y}`
|
|
176
176
|
);
|
|
177
177
|
}
|
|
178
|
-
async function
|
|
178
|
+
async function z(d, f) {
|
|
179
179
|
se();
|
|
180
180
|
const g = {
|
|
181
181
|
client_msg_id: f.client_msg_id,
|
|
@@ -307,9 +307,9 @@ function We(e) {
|
|
|
307
307
|
createConversation: A,
|
|
308
308
|
getConversation: H,
|
|
309
309
|
patchConversation: M,
|
|
310
|
-
markConversationRead:
|
|
310
|
+
markConversationRead: j,
|
|
311
311
|
listMessages: F,
|
|
312
|
-
postMessage:
|
|
312
|
+
postMessage: z,
|
|
313
313
|
postCallback: W,
|
|
314
314
|
uploadAttachment: Z,
|
|
315
315
|
signAttachment: ee,
|
|
@@ -596,10 +596,10 @@ function Qe(e) {
|
|
|
596
596
|
console.error("[store] callback failed", d), m != null && delete t.awaitingCallback[m];
|
|
597
597
|
}
|
|
598
598
|
}
|
|
599
|
-
const
|
|
599
|
+
const j = /* @__PURE__ */ new Map();
|
|
600
600
|
async function F(m) {
|
|
601
601
|
if (!m) return null;
|
|
602
|
-
const h =
|
|
602
|
+
const h = j.get(m);
|
|
603
603
|
if (h != null && h.url) {
|
|
604
604
|
const _ = h.expires_at ? Date.parse(h.expires_at) : 0;
|
|
605
605
|
if (!_ || _ - Date.now() > 6e4) return h.url;
|
|
@@ -607,7 +607,7 @@ function Qe(e) {
|
|
|
607
607
|
try {
|
|
608
608
|
const _ = await e.signAttachment(m);
|
|
609
609
|
if (_ != null && _.signed_url)
|
|
610
|
-
return
|
|
610
|
+
return j.set(m, {
|
|
611
611
|
url: _.signed_url,
|
|
612
612
|
expires_at: _.expires_at
|
|
613
613
|
}), _.signed_url;
|
|
@@ -616,7 +616,7 @@ function Qe(e) {
|
|
|
616
616
|
}
|
|
617
617
|
return null;
|
|
618
618
|
}
|
|
619
|
-
async function
|
|
619
|
+
async function z(m, { rating: h, comment: _ } = {}) {
|
|
620
620
|
const d = t.conversations.find((y) => y.id === m), g = {
|
|
621
621
|
...(d == null ? void 0 : d.metadata) || {},
|
|
622
622
|
feedback: {
|
|
@@ -753,7 +753,7 @@ function Qe(e) {
|
|
|
753
753
|
send: H,
|
|
754
754
|
clickCallback: M,
|
|
755
755
|
signAttachment: F,
|
|
756
|
-
submitFeedback:
|
|
756
|
+
submitFeedback: z,
|
|
757
757
|
getPendingApproval: W,
|
|
758
758
|
getActionInFlight: ee,
|
|
759
759
|
getLatestSuggestions: te,
|
|
@@ -762,7 +762,7 @@ function Qe(e) {
|
|
|
762
762
|
setPanelOpen: e.setPanelOpen
|
|
763
763
|
};
|
|
764
764
|
}
|
|
765
|
-
const
|
|
765
|
+
const D = {
|
|
766
766
|
w: "#ffffff",
|
|
767
767
|
g50: "#F9F9F7",
|
|
768
768
|
g100: "#F2F1EE",
|
|
@@ -801,21 +801,21 @@ const Xe = `
|
|
|
801
801
|
.wm-root {
|
|
802
802
|
--wm-f: 'Geist', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
|
803
803
|
--wm-fm: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
804
|
-
--wm-w: ${
|
|
805
|
-
--wm-g50: ${
|
|
806
|
-
--wm-g100: ${
|
|
807
|
-
--wm-g150: ${
|
|
808
|
-
--wm-g200: ${
|
|
809
|
-
--wm-g300: ${
|
|
810
|
-
--wm-g400: ${
|
|
811
|
-
--wm-g500: ${
|
|
812
|
-
--wm-g700: ${
|
|
813
|
-
--wm-g900: ${
|
|
814
|
-
--wm-a: ${
|
|
815
|
-
--wm-al: ${
|
|
816
|
-
--wm-green: ${
|
|
817
|
-
--wm-red: ${
|
|
818
|
-
--wm-redBg: ${
|
|
804
|
+
--wm-w: ${D.w};
|
|
805
|
+
--wm-g50: ${D.g50};
|
|
806
|
+
--wm-g100: ${D.g100};
|
|
807
|
+
--wm-g150: ${D.g150};
|
|
808
|
+
--wm-g200: ${D.g200};
|
|
809
|
+
--wm-g300: ${D.g300};
|
|
810
|
+
--wm-g400: ${D.g400};
|
|
811
|
+
--wm-g500: ${D.g500};
|
|
812
|
+
--wm-g700: ${D.g700};
|
|
813
|
+
--wm-g900: ${D.g900};
|
|
814
|
+
--wm-a: ${D.accent};
|
|
815
|
+
--wm-al: ${D.accentLight};
|
|
816
|
+
--wm-green: ${D.green};
|
|
817
|
+
--wm-red: ${D.red};
|
|
818
|
+
--wm-redBg: ${D.redBg};
|
|
819
819
|
--wm-sh1: 0 1px 3px rgba(0,0,0,.06);
|
|
820
820
|
--wm-sh2: 0 4px 24px rgba(0,0,0,.09), 0 1px 4px rgba(0,0,0,.05);
|
|
821
821
|
--wm-shPanel: 0 12px 40px rgba(0,0,0,.13), 0 2px 8px rgba(0,0,0,.06);
|
|
@@ -1091,7 +1091,7 @@ function we(e) {
|
|
|
1091
1091
|
function oe(e) {
|
|
1092
1092
|
return Ce[we(e)] || Ce[ie];
|
|
1093
1093
|
}
|
|
1094
|
-
function
|
|
1094
|
+
function P(e) {
|
|
1095
1095
|
const t = we(e), n = ge[t] || ge[ie], i = ge[ie];
|
|
1096
1096
|
return function(s, a) {
|
|
1097
1097
|
let l = n[s];
|
|
@@ -1109,7 +1109,7 @@ function Ae(e, t) {
|
|
|
1109
1109
|
function Ee(e, t, n) {
|
|
1110
1110
|
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));
|
|
1111
1111
|
}
|
|
1112
|
-
function tt(e, t, n =
|
|
1112
|
+
function tt(e, t, n = P()) {
|
|
1113
1113
|
if (!e || !t) return "";
|
|
1114
1114
|
const i = Array.isArray(e.fields) ? e.fields : [], r = [];
|
|
1115
1115
|
for (const s of i) {
|
|
@@ -1124,7 +1124,7 @@ ${l}`);
|
|
|
1124
1124
|
|
|
1125
1125
|
`);
|
|
1126
1126
|
}
|
|
1127
|
-
function nt(e, t, n =
|
|
1127
|
+
function nt(e, t, n = P()) {
|
|
1128
1128
|
const i = [], r = Array.isArray(e == null ? void 0 : e.fields) ? e.fields : [];
|
|
1129
1129
|
for (const s of r) {
|
|
1130
1130
|
if (!(s != null && s.key) || !(s != null && s.label)) continue;
|
|
@@ -1194,7 +1194,7 @@ function it(e, t, n, i) {
|
|
|
1194
1194
|
return r.join(`
|
|
1195
1195
|
`);
|
|
1196
1196
|
}
|
|
1197
|
-
function at(e, t, n =
|
|
1197
|
+
function at(e, t, n = P(), i) {
|
|
1198
1198
|
if (!e) return;
|
|
1199
1199
|
const r = it(e, t || [], n, oe(i)), s = new Blob([r], { type: "text/plain;charset=utf-8" });
|
|
1200
1200
|
try {
|
|
@@ -1648,7 +1648,7 @@ const R = (e, t) => {
|
|
|
1648
1648
|
function wt(e, t, n, i, r, s) {
|
|
1649
1649
|
return c(), u("div", {
|
|
1650
1650
|
class: O(["wm-huav", { "wm-huav--tail": n.tail }]),
|
|
1651
|
-
style:
|
|
1651
|
+
style: q({
|
|
1652
1652
|
width: n.size + "px",
|
|
1653
1653
|
height: n.size + "px",
|
|
1654
1654
|
"--wm-avr": Math.round(n.size * 0.32) + "px",
|
|
@@ -1661,7 +1661,7 @@ function wt(e, t, n, i, r, s) {
|
|
|
1661
1661
|
alt: n.name || ""
|
|
1662
1662
|
}, null, 8, yt)) : (c(), u("span", {
|
|
1663
1663
|
key: 1,
|
|
1664
|
-
style:
|
|
1664
|
+
style: q({ fontSize: n.size * 0.36 + "px" })
|
|
1665
1665
|
}, v(s.initials), 5))
|
|
1666
1666
|
], 6);
|
|
1667
1667
|
}
|
|
@@ -1671,7 +1671,7 @@ const Le = /* @__PURE__ */ R(vt, [["render", wt], ["__scopeId", "data-v-14e10c0d
|
|
|
1671
1671
|
inject: {
|
|
1672
1672
|
// Translator shared by the Messenger shell; French fallback when
|
|
1673
1673
|
// the component is used standalone.
|
|
1674
|
-
t: { default: () =>
|
|
1674
|
+
t: { default: () => P() }
|
|
1675
1675
|
},
|
|
1676
1676
|
props: {
|
|
1677
1677
|
// Nombre de conversations non lues — pilote la pastille.
|
|
@@ -1696,7 +1696,7 @@ function Ft(e, t, n, i, r, s) {
|
|
|
1696
1696
|
const a = L("HumanAvatar");
|
|
1697
1697
|
return c(), u("div", Ct, [
|
|
1698
1698
|
V(Ue, { name: "wm-peek" }, {
|
|
1699
|
-
default:
|
|
1699
|
+
default: Pe(() => [
|
|
1700
1700
|
s.visiblePeeks.length ? (c(), u("div", {
|
|
1701
1701
|
key: 0,
|
|
1702
1702
|
class: O(["wm-peekStack", { "wm-peekStack--multi": s.visiblePeeks.length > 1 }])
|
|
@@ -1704,7 +1704,7 @@ function Ft(e, t, n, i, r, s) {
|
|
|
1704
1704
|
(c(!0), u(E, null, U(s.visiblePeeks, (l, p) => (c(), u("div", {
|
|
1705
1705
|
key: l.convId,
|
|
1706
1706
|
class: "wm-peek",
|
|
1707
|
-
style:
|
|
1707
|
+
style: q({
|
|
1708
1708
|
"--depth": s.visiblePeeks.length - 1 - p,
|
|
1709
1709
|
zIndex: p + 1
|
|
1710
1710
|
}),
|
|
@@ -1799,7 +1799,7 @@ function Ft(e, t, n, i, r, s) {
|
|
|
1799
1799
|
], 8, Rt)
|
|
1800
1800
|
]);
|
|
1801
1801
|
}
|
|
1802
|
-
const Ut = /* @__PURE__ */ R(kt, [["render", Ft], ["__scopeId", "data-v-5193a529"]]),
|
|
1802
|
+
const Ut = /* @__PURE__ */ R(kt, [["render", Ft], ["__scopeId", "data-v-5193a529"]]), Pt = {
|
|
1803
1803
|
name: "WmAIAvatar",
|
|
1804
1804
|
props: {
|
|
1805
1805
|
size: { type: Number, default: 26 },
|
|
@@ -1828,27 +1828,27 @@ const Ut = /* @__PURE__ */ R(kt, [["render", Ft], ["__scopeId", "data-v-5193a529
|
|
|
1828
1828
|
return ve(this.name);
|
|
1829
1829
|
}
|
|
1830
1830
|
}
|
|
1831
|
-
},
|
|
1831
|
+
}, jt = {
|
|
1832
1832
|
key: 0,
|
|
1833
1833
|
class: "wm-aiav__pulse"
|
|
1834
|
-
},
|
|
1835
|
-
function
|
|
1834
|
+
}, Dt = ["src", "alt"], zt = ["width", "height"];
|
|
1835
|
+
function qt(e, t, n, i, r, s) {
|
|
1836
1836
|
return c(), u("div", {
|
|
1837
1837
|
class: O(["wm-aiav", { "wm-aiav--tail": n.tail }]),
|
|
1838
|
-
style:
|
|
1838
|
+
style: q({
|
|
1839
1839
|
width: n.size + "px",
|
|
1840
1840
|
height: n.size + "px",
|
|
1841
1841
|
"--wm-avr": n.size * 0.32 + "px"
|
|
1842
1842
|
})
|
|
1843
1843
|
}, [
|
|
1844
|
-
n.pulse ? (c(), u("div",
|
|
1844
|
+
n.pulse ? (c(), u("div", jt)) : w("", !0),
|
|
1845
1845
|
o("div", {
|
|
1846
1846
|
class: O(["wm-aiav__inner", {
|
|
1847
1847
|
"wm-aiav__inner--glow": n.pulse,
|
|
1848
1848
|
"wm-aiav__inner--img": !!n.imageUrl,
|
|
1849
1849
|
"wm-aiav__inner--initials": !n.imageUrl && !!s.initials
|
|
1850
1850
|
}]),
|
|
1851
|
-
style:
|
|
1851
|
+
style: q(
|
|
1852
1852
|
!n.imageUrl && s.initials ? { background: s.bgColor } : null
|
|
1853
1853
|
)
|
|
1854
1854
|
}, [
|
|
@@ -1856,9 +1856,9 @@ function zt(e, t, n, i, r, s) {
|
|
|
1856
1856
|
key: 0,
|
|
1857
1857
|
src: n.imageUrl,
|
|
1858
1858
|
alt: n.name || ""
|
|
1859
|
-
}, null, 8,
|
|
1859
|
+
}, null, 8, Dt)) : s.initials ? (c(), u("span", {
|
|
1860
1860
|
key: 1,
|
|
1861
|
-
style:
|
|
1861
|
+
style: q({ fontSize: n.size * 0.36 + "px" })
|
|
1862
1862
|
}, v(s.initials), 5)) : (c(), u("svg", {
|
|
1863
1863
|
key: 2,
|
|
1864
1864
|
width: n.size * 0.5,
|
|
@@ -1886,11 +1886,11 @@ function zt(e, t, n, i, r, s) {
|
|
|
1886
1886
|
fill: "white",
|
|
1887
1887
|
opacity: "0.38"
|
|
1888
1888
|
}, null, -1)
|
|
1889
|
-
])], 8,
|
|
1889
|
+
])], 8, zt))
|
|
1890
1890
|
], 6)
|
|
1891
1891
|
], 6);
|
|
1892
1892
|
}
|
|
1893
|
-
const le = /* @__PURE__ */ R(
|
|
1893
|
+
const le = /* @__PURE__ */ R(Pt, [["render", qt], ["__scopeId", "data-v-6f7f685d"]]), Ht = {
|
|
1894
1894
|
name: "WmTeamAvatars",
|
|
1895
1895
|
props: {
|
|
1896
1896
|
members: { type: Array, default: () => [] },
|
|
@@ -1923,12 +1923,12 @@ function Gt(e, t, n, i, r, s) {
|
|
|
1923
1923
|
return s.visible ? (c(), u("div", $t, [
|
|
1924
1924
|
o("div", {
|
|
1925
1925
|
class: "wm-team__stack",
|
|
1926
|
-
style:
|
|
1926
|
+
style: q({ width: s.stackWidth + "px" })
|
|
1927
1927
|
}, [
|
|
1928
1928
|
(c(!0), u(E, null, U(n.members.slice(0, 3), (a, l) => (c(), u("div", {
|
|
1929
1929
|
key: l,
|
|
1930
1930
|
class: "wm-team__pill",
|
|
1931
|
-
style:
|
|
1931
|
+
style: q({
|
|
1932
1932
|
left: l * 13 + "px",
|
|
1933
1933
|
zIndex: 3 - l,
|
|
1934
1934
|
background: s.colorFor(a)
|
|
@@ -1950,7 +1950,7 @@ const Yt = /* @__PURE__ */ R(Ht, [["render", Gt], ["__scopeId", "data-v-e49a9063
|
|
|
1950
1950
|
inject: {
|
|
1951
1951
|
// Translator shared by the Messenger shell. Falls back to a French
|
|
1952
1952
|
// translator when the component is used standalone (no provider).
|
|
1953
|
-
t: { default: () =>
|
|
1953
|
+
t: { default: () => P() }
|
|
1954
1954
|
},
|
|
1955
1955
|
props: {
|
|
1956
1956
|
title: { type: String, default: "Nouvelle conversation" },
|
|
@@ -2191,7 +2191,7 @@ const Te = {
|
|
|
2191
2191
|
inject: {
|
|
2192
2192
|
// Translator + resolved-language getter shared by the Messenger
|
|
2193
2193
|
// shell. Fall back to French wording when used standalone.
|
|
2194
|
-
t: { default: () =>
|
|
2194
|
+
t: { default: () => P() },
|
|
2195
2195
|
wmLocale: { default: () => () => "fr" }
|
|
2196
2196
|
},
|
|
2197
2197
|
props: {
|
|
@@ -2273,10 +2273,10 @@ const Te = {
|
|
|
2273
2273
|
}, In = {
|
|
2274
2274
|
key: 1,
|
|
2275
2275
|
class: "wm-onb__section"
|
|
2276
|
-
}, En = { class: "wm-onb__section-title" }, Ln = { class: "wm-onb__search" }, Bn = ["placeholder", "aria-label"], Rn = { class: "wm-onb__list" }, Nn = ["onClick"], Fn = ["aria-label"], Un = { class: "wm-onb__thread-body" },
|
|
2276
|
+
}, En = { class: "wm-onb__section-title" }, Ln = { class: "wm-onb__search" }, Bn = ["placeholder", "aria-label"], Rn = { class: "wm-onb__list" }, Nn = ["onClick"], Fn = ["aria-label"], Un = { class: "wm-onb__thread-body" }, Pn = { class: "wm-onb__thread-title" }, jn = ["innerHTML"], Dn = { class: "wm-onb__thread-meta" }, zn = {
|
|
2277
2277
|
key: 0,
|
|
2278
2278
|
class: "wm-onb__thread-time"
|
|
2279
|
-
},
|
|
2279
|
+
}, qn = {
|
|
2280
2280
|
key: 0,
|
|
2281
2281
|
class: "wm-onb__empty"
|
|
2282
2282
|
};
|
|
@@ -2434,14 +2434,14 @@ function Hn(e, t, n, i, r, s) {
|
|
|
2434
2434
|
}, null, 8, Fn)) : w("", !0)
|
|
2435
2435
|
], 2),
|
|
2436
2436
|
o("span", Un, [
|
|
2437
|
-
o("span",
|
|
2437
|
+
o("span", Pn, v(l.title), 1),
|
|
2438
2438
|
o("span", {
|
|
2439
2439
|
class: "wm-onb__thread-preview",
|
|
2440
2440
|
innerHTML: s.renderPreview(l.preview)
|
|
2441
|
-
}, null, 8,
|
|
2441
|
+
}, null, 8, jn)
|
|
2442
2442
|
]),
|
|
2443
|
-
o("span",
|
|
2444
|
-
s.formatTs(l._ts) ? (c(), u("span",
|
|
2443
|
+
o("span", Dn, [
|
|
2444
|
+
s.formatTs(l._ts) ? (c(), u("span", zn, v(s.formatTs(l._ts)), 1)) : w("", !0),
|
|
2445
2445
|
t[6] || (t[6] = o("svg", {
|
|
2446
2446
|
width: "14",
|
|
2447
2447
|
height: "14",
|
|
@@ -2458,7 +2458,7 @@ function Hn(e, t, n, i, r, s) {
|
|
|
2458
2458
|
], -1))
|
|
2459
2459
|
])
|
|
2460
2460
|
], 8, Nn))), 128)),
|
|
2461
|
-
s.filteredThreads.length ? w("", !0) : (c(), u("div",
|
|
2461
|
+
s.filteredThreads.length ? w("", !0) : (c(), u("div", qn, v(s.t("onboarding.noResults", { query: r.query })), 1))
|
|
2462
2462
|
])
|
|
2463
2463
|
])) : w("", !0)
|
|
2464
2464
|
]);
|
|
@@ -2573,7 +2573,7 @@ const ns = /* @__PURE__ */ R(Kn, [["render", ts], ["__scopeId", "data-v-7284acd0
|
|
|
2573
2573
|
inject: {
|
|
2574
2574
|
// Translator shared by the Messenger shell; French fallback when
|
|
2575
2575
|
// the component is used standalone.
|
|
2576
|
-
t: { default: () =>
|
|
2576
|
+
t: { default: () => P() }
|
|
2577
2577
|
},
|
|
2578
2578
|
props: {
|
|
2579
2579
|
data: { type: Object, required: !0 }
|
|
@@ -2709,7 +2709,7 @@ const Ms = {
|
|
|
2709
2709
|
inject: {
|
|
2710
2710
|
// Translator + resolved-language getter shared by the Messenger
|
|
2711
2711
|
// shell. Fall back to French wording when used standalone.
|
|
2712
|
-
t: { default: () =>
|
|
2712
|
+
t: { default: () => P() },
|
|
2713
2713
|
wmLocale: { default: () => () => "fr" }
|
|
2714
2714
|
},
|
|
2715
2715
|
props: {
|
|
@@ -2772,7 +2772,7 @@ const Ms = {
|
|
|
2772
2772
|
key: 1,
|
|
2773
2773
|
class: "wm-art__footer wm-tk__footer"
|
|
2774
2774
|
};
|
|
2775
|
-
function
|
|
2775
|
+
function Ps(e, t, n, i, r, s) {
|
|
2776
2776
|
return c(), u("div", Ts, [
|
|
2777
2777
|
o("div", xs, [
|
|
2778
2778
|
o("div", Os, v(n.data.title), 1),
|
|
@@ -2891,11 +2891,11 @@ function js(e, t, n, i, r, s) {
|
|
|
2891
2891
|
])) : w("", !0)
|
|
2892
2892
|
]);
|
|
2893
2893
|
}
|
|
2894
|
-
const
|
|
2894
|
+
const js = /* @__PURE__ */ R(Ms, [["render", Ps], ["__scopeId", "data-v-5f30c914"]]), Ds = {
|
|
2895
2895
|
form_response: us,
|
|
2896
2896
|
info_card: As,
|
|
2897
|
-
ticket:
|
|
2898
|
-
},
|
|
2897
|
+
ticket: js
|
|
2898
|
+
}, zs = {
|
|
2899
2899
|
name: "WmArtifactRenderer",
|
|
2900
2900
|
props: {
|
|
2901
2901
|
// Forme : { kind: string, data: any } (le `data` est validé
|
|
@@ -2906,23 +2906,23 @@ const Ds = /* @__PURE__ */ R(Ms, [["render", js], ["__scopeId", "data-v-5f30c914
|
|
|
2906
2906
|
component() {
|
|
2907
2907
|
var t;
|
|
2908
2908
|
const e = (t = this.artifact) == null ? void 0 : t.kind;
|
|
2909
|
-
return e &&
|
|
2909
|
+
return e && Ds[e] || null;
|
|
2910
2910
|
}
|
|
2911
2911
|
}
|
|
2912
2912
|
};
|
|
2913
|
-
function
|
|
2914
|
-
return s.component ? (c(), N(
|
|
2913
|
+
function qs(e, t, n, i, r, s) {
|
|
2914
|
+
return s.component ? (c(), N(je(s.component), {
|
|
2915
2915
|
key: 0,
|
|
2916
2916
|
data: n.artifact.data
|
|
2917
2917
|
}, null, 8, ["data"])) : w("", !0);
|
|
2918
2918
|
}
|
|
2919
|
-
const Hs = /* @__PURE__ */ R(
|
|
2919
|
+
const Hs = /* @__PURE__ */ R(zs, [["render", qs]]), $s = {
|
|
2920
2920
|
name: "WmAttachmentPreview",
|
|
2921
2921
|
inject: {
|
|
2922
2922
|
signAttachmentFn: { default: null },
|
|
2923
2923
|
// Translator shared by the Messenger shell; French fallback when
|
|
2924
2924
|
// the component is used standalone.
|
|
2925
|
-
t: { default: () =>
|
|
2925
|
+
t: { default: () => P() }
|
|
2926
2926
|
},
|
|
2927
2927
|
props: {
|
|
2928
2928
|
attachment: { type: Object, required: !0 }
|
|
@@ -3068,7 +3068,7 @@ function rr(e, t, n, i, r, s) {
|
|
|
3068
3068
|
return c(), u("div", {
|
|
3069
3069
|
class: O(["wm-bubble", "wm-bubble--" + n.role])
|
|
3070
3070
|
}, [
|
|
3071
|
-
|
|
3071
|
+
De(e.$slots, "default", {}, () => [
|
|
3072
3072
|
o("span", { innerHTML: s.rendered }, null, 8, sr)
|
|
3073
3073
|
], !0)
|
|
3074
3074
|
], 2);
|
|
@@ -3106,7 +3106,7 @@ const dr = {
|
|
|
3106
3106
|
inject: {
|
|
3107
3107
|
// Translator + resolved-language getter shared by the Messenger
|
|
3108
3108
|
// shell. Fall back to French wording when used standalone.
|
|
3109
|
-
t: { default: () =>
|
|
3109
|
+
t: { default: () => P() },
|
|
3110
3110
|
wmLocale: { default: () => () => "fr" }
|
|
3111
3111
|
},
|
|
3112
3112
|
props: {
|
|
@@ -3487,8 +3487,8 @@ const dr = {
|
|
|
3487
3487
|
cornersFor(e, t) {
|
|
3488
3488
|
var Z, ee, te;
|
|
3489
3489
|
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, C = r == null ? void 0 : r.bottom, k = s == null ? void 0 : s.top, x = this.widthByKey[this.rowKeyOf(e, t)], B = this.widthByKey[this.rowKeyOf(e, t - 1)], A = this.widthByKey[this.rowKeyOf(e, t + 1)], H = 0.5, M = ($, ne, G) => $ != null && x != null ? $ + H >= x : ne === G || ne === "card" && G === "bubble";
|
|
3490
|
-
let
|
|
3491
|
-
return a ? (C && (F = p), (k || !s) && (
|
|
3490
|
+
let j = l, F = l, z = l, W = l;
|
|
3491
|
+
return a ? (C && (F = p), (k || !s) && (z = p), C && M(B, C, i == null ? void 0 : i.top) && (j = p), k && M(A, k, i == null ? void 0 : i.bottom) && (W = p)) : (C && (j = p), (k || !s) && (W = p), C && M(B, C, i == null ? void 0 : i.top) && (F = p), k && M(A, k, i == null ? void 0 : i.bottom) && (z = p)), { tl: j, tr: F, br: z, bl: W };
|
|
3492
3492
|
},
|
|
3493
3493
|
// Inline style emitting the four corner CSS variables. Set on
|
|
3494
3494
|
// `.wm-list__row` so they cascade to Bubble/ActionResult/
|
|
@@ -3675,7 +3675,7 @@ function Er(e, t, n, i, r, s) {
|
|
|
3675
3675
|
o("span", kr, v(A.systemLabel), 1),
|
|
3676
3676
|
t[7] || (t[7] = o("div", { class: "wm-list__line wm-list__line--strong" }, null, -1))
|
|
3677
3677
|
])) : (c(), u(E, { key: 1 }, [
|
|
3678
|
-
(c(!0), u(E, null, U(A.items, (M,
|
|
3678
|
+
(c(!0), u(E, null, U(A.items, (M, j) => (c(), u("div", {
|
|
3679
3679
|
key: `${s.messageKey(M.message)}-${M.partKey}`,
|
|
3680
3680
|
"data-row-key": `${s.messageKey(M.message)}-${M.partKey}`,
|
|
3681
3681
|
class: O(["wm-list__row fade-up", [
|
|
@@ -3685,10 +3685,10 @@ function Er(e, t, n, i, r, s) {
|
|
|
3685
3685
|
"is-failed": M.message._failed
|
|
3686
3686
|
}
|
|
3687
3687
|
]]),
|
|
3688
|
-
style:
|
|
3688
|
+
style: q(s.cornersStyle(A, j))
|
|
3689
3689
|
}, [
|
|
3690
3690
|
A.role !== "user" ? (c(), u("div", Ar, [
|
|
3691
|
-
|
|
3691
|
+
j === A.items.length - 1 ? (c(), u(E, { key: 0 }, [
|
|
3692
3692
|
A.role === "ai" ? (c(), N(a, {
|
|
3693
3693
|
key: 0,
|
|
3694
3694
|
size: 26,
|
|
@@ -3734,8 +3734,8 @@ function Er(e, t, n, i, r, s) {
|
|
|
3734
3734
|
}, [
|
|
3735
3735
|
(c(!0), u(E, null, U(s.attachmentsOf(
|
|
3736
3736
|
M.message
|
|
3737
|
-
), (F,
|
|
3738
|
-
key: `${s.messageKey(M.message)}-att-${
|
|
3737
|
+
), (F, z) => (c(), N(x, {
|
|
3738
|
+
key: `${s.messageKey(M.message)}-att-${z}`,
|
|
3739
3739
|
attachment: F
|
|
3740
3740
|
}, null, 8, ["attachment"]))), 128))
|
|
3741
3741
|
], 2)) : w("", !0)
|
|
@@ -3786,7 +3786,7 @@ function Re({ audio: e }) {
|
|
|
3786
3786
|
systemAudio: e ? "include" : "exclude"
|
|
3787
3787
|
};
|
|
3788
3788
|
}
|
|
3789
|
-
function
|
|
3789
|
+
function qa(e) {
|
|
3790
3790
|
return e ? e.startsWith("image/") ? "image" : e.startsWith("video/") ? "video" : "file" : "file";
|
|
3791
3791
|
}
|
|
3792
3792
|
async function Rr() {
|
|
@@ -3851,10 +3851,10 @@ async function Fr(e = {}) {
|
|
|
3851
3851
|
if (s && clearInterval(s), t.getTracks().forEach((B) => {
|
|
3852
3852
|
B.stop();
|
|
3853
3853
|
}), r.length) {
|
|
3854
|
-
const B = i.mimeType || n || "video/webm", A = new Blob(r, { type: B }), H = /mp4/.test(B) ? "mp4" : "webm", M = (/* @__PURE__ */ new Date()).toISOString().replace(/[:.]/g, "-").slice(0, 19),
|
|
3854
|
+
const B = i.mimeType || n || "video/webm", A = new Blob(r, { type: B }), H = /mp4/.test(B) ? "mp4" : "webm", M = (/* @__PURE__ */ new Date()).toISOString().replace(/[:.]/g, "-").slice(0, 19), j = new File([A], `ecran-${M}.${H}`, {
|
|
3855
3855
|
type: B
|
|
3856
3856
|
});
|
|
3857
|
-
(k = e.onfinalize) == null || k.call(e,
|
|
3857
|
+
(k = e.onfinalize) == null || k.call(e, j);
|
|
3858
3858
|
} else
|
|
3859
3859
|
(x = e.oncancel) == null || x.call(e);
|
|
3860
3860
|
}), t.getVideoTracks().forEach((k) => {
|
|
@@ -3903,12 +3903,12 @@ const Ur = [
|
|
|
3903
3903
|
labelKey: "composer.recordScreen",
|
|
3904
3904
|
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"
|
|
3905
3905
|
}
|
|
3906
|
-
],
|
|
3906
|
+
], Pr = {
|
|
3907
3907
|
name: "WmComposer",
|
|
3908
3908
|
inject: {
|
|
3909
3909
|
// Translator shared by the Messenger shell; French fallback when
|
|
3910
3910
|
// the component is used standalone.
|
|
3911
|
-
t: { default: () =>
|
|
3911
|
+
t: { default: () => P() }
|
|
3912
3912
|
},
|
|
3913
3913
|
props: {
|
|
3914
3914
|
modelValue: { type: String, default: "" },
|
|
@@ -4035,10 +4035,10 @@ const Ur = [
|
|
|
4035
4035
|
}
|
|
4036
4036
|
}
|
|
4037
4037
|
}
|
|
4038
|
-
},
|
|
4038
|
+
}, jr = { class: "wm-compose-wrap" }, Dr = {
|
|
4039
4039
|
key: 0,
|
|
4040
4040
|
class: "wm-rec"
|
|
4041
|
-
},
|
|
4041
|
+
}, zr = { class: "wm-rec__lbl" }, qr = {
|
|
4042
4042
|
key: 1,
|
|
4043
4043
|
class: "wm-compose__menu",
|
|
4044
4044
|
role: "menu"
|
|
@@ -4049,13 +4049,13 @@ const Ur = [
|
|
|
4049
4049
|
"aria-hidden": "true"
|
|
4050
4050
|
}, Kr = ["d"], Wr = ["placeholder", "disabled"], Gr = { class: "wm-compose__actions" }, Yr = ["title", "aria-label", "disabled"], Jr = ["disabled", "aria-label"];
|
|
4051
4051
|
function Qr(e, t, n, i, r, s) {
|
|
4052
|
-
return c(), u("div",
|
|
4053
|
-
r.recording ? (c(), u("div",
|
|
4052
|
+
return c(), u("div", jr, [
|
|
4053
|
+
r.recording ? (c(), u("div", Dr, [
|
|
4054
4054
|
t[8] || (t[8] = o("span", {
|
|
4055
4055
|
class: "wm-rec__dot",
|
|
4056
4056
|
"aria-hidden": "true"
|
|
4057
4057
|
}, null, -1)),
|
|
4058
|
-
o("span",
|
|
4058
|
+
o("span", zr, v(s.t("composer.recording", { time: s.recordingElapsedLabel })), 1),
|
|
4059
4059
|
o("button", {
|
|
4060
4060
|
type: "button",
|
|
4061
4061
|
class: "wm-rec__stop",
|
|
@@ -4078,7 +4078,7 @@ function Qr(e, t, n, i, r, s) {
|
|
|
4078
4078
|
class: "wm-compose__overlay",
|
|
4079
4079
|
onClick: t[2] || (t[2] = (a) => r.attachOpen = !1)
|
|
4080
4080
|
})) : w("", !0),
|
|
4081
|
-
r.attachOpen ? (c(), u("div",
|
|
4081
|
+
r.attachOpen ? (c(), u("div", qr, [
|
|
4082
4082
|
(c(!0), u(E, null, U(s.attachItems, (a) => (c(), u("button", {
|
|
4083
4083
|
key: a.action,
|
|
4084
4084
|
type: "button",
|
|
@@ -4160,7 +4160,7 @@ function Qr(e, t, n, i, r, s) {
|
|
|
4160
4160
|
], 34)
|
|
4161
4161
|
]);
|
|
4162
4162
|
}
|
|
4163
|
-
const Xr = /* @__PURE__ */ R(
|
|
4163
|
+
const Xr = /* @__PURE__ */ R(Pr, [["render", Qr], ["__scopeId", "data-v-aa81dbb8"]]), Zr = {
|
|
4164
4164
|
name: "WmSuggestionChips",
|
|
4165
4165
|
props: {
|
|
4166
4166
|
items: { type: Array, default: () => [] },
|
|
@@ -4187,7 +4187,7 @@ function ti(e, t, n, i, r, s) {
|
|
|
4187
4187
|
key: l,
|
|
4188
4188
|
type: "button",
|
|
4189
4189
|
class: "wm-chip",
|
|
4190
|
-
style:
|
|
4190
|
+
style: q({ animationDelay: n.baseDelay + l * n.stepDelay + "ms" }),
|
|
4191
4191
|
onClick: (p) => e.$emit("select", a)
|
|
4192
4192
|
}, v(a.label), 13, ei))), 128))
|
|
4193
4193
|
])) : w("", !0);
|
|
@@ -4198,7 +4198,7 @@ const ni = /* @__PURE__ */ R(Zr, [["render", ti], ["__scopeId", "data-v-47ad8085
|
|
|
4198
4198
|
inject: {
|
|
4199
4199
|
// Translator shared by the Messenger shell; French fallback when
|
|
4200
4200
|
// the component is used standalone.
|
|
4201
|
-
t: { default: () =>
|
|
4201
|
+
t: { default: () => P() }
|
|
4202
4202
|
},
|
|
4203
4203
|
props: {
|
|
4204
4204
|
action: { type: String, required: !0 },
|
|
@@ -4288,7 +4288,7 @@ const hi = /* @__PURE__ */ new Set([
|
|
|
4288
4288
|
inject: {
|
|
4289
4289
|
// Translator shared by the Messenger shell; French fallback when
|
|
4290
4290
|
// the component is used standalone.
|
|
4291
|
-
t: { default: () =>
|
|
4291
|
+
t: { default: () => P() }
|
|
4292
4292
|
},
|
|
4293
4293
|
props: {
|
|
4294
4294
|
form: { type: Object, required: !0 },
|
|
@@ -4392,7 +4392,7 @@ const hi = /* @__PURE__ */ new Set([
|
|
|
4392
4392
|
key: 2,
|
|
4393
4393
|
class: "wm-form__doneLbl"
|
|
4394
4394
|
};
|
|
4395
|
-
function
|
|
4395
|
+
function Pi(e, t, n, i, r, s) {
|
|
4396
4396
|
const a = L("AIAvatar");
|
|
4397
4397
|
return c(), u("div", _i, [
|
|
4398
4398
|
o("div", gi, [
|
|
@@ -4478,7 +4478,7 @@ function ji(e, t, n, i, r, s) {
|
|
|
4478
4478
|
type: "checkbox",
|
|
4479
4479
|
disabled: n.readOnly || r.busy
|
|
4480
4480
|
}, null, 8, xi), [
|
|
4481
|
-
[
|
|
4481
|
+
[ze, r.values[l.key]]
|
|
4482
4482
|
]),
|
|
4483
4483
|
o("span", null, v(l.placeholder || s.t("common.yes")), 1)
|
|
4484
4484
|
])) : l.type === "select" ? K((c(), u("select", {
|
|
@@ -4495,7 +4495,7 @@ function ji(e, t, n, i, r, s) {
|
|
|
4495
4495
|
value: p.value
|
|
4496
4496
|
}, v(p.label), 9, Ei))), 128))
|
|
4497
4497
|
], 8, Oi)), [
|
|
4498
|
-
[
|
|
4498
|
+
[qe, r.values[l.key]]
|
|
4499
4499
|
]) : l.type === "multiselect" ? (c(), u("div", Li, [
|
|
4500
4500
|
(c(!0), u(E, null, U(l.options, (p) => (c(), u("label", {
|
|
4501
4501
|
key: p.value,
|
|
@@ -4529,12 +4529,12 @@ function ji(e, t, n, i, r, s) {
|
|
|
4529
4529
|
], 32)
|
|
4530
4530
|
]);
|
|
4531
4531
|
}
|
|
4532
|
-
const
|
|
4532
|
+
const ji = /* @__PURE__ */ R(fi, [["render", Pi], ["__scopeId", "data-v-fe65cc56"]]), Di = {
|
|
4533
4533
|
name: "WmFeedback",
|
|
4534
4534
|
inject: {
|
|
4535
4535
|
// Translator shared by the Messenger shell; French fallback when
|
|
4536
4536
|
// the component is used standalone.
|
|
4537
|
-
t: { default: () =>
|
|
4537
|
+
t: { default: () => P() }
|
|
4538
4538
|
},
|
|
4539
4539
|
props: {
|
|
4540
4540
|
busy: { type: Boolean, default: !1 },
|
|
@@ -4563,12 +4563,12 @@ const Di = /* @__PURE__ */ R(fi, [["render", ji], ["__scopeId", "data-v-fe65cc56
|
|
|
4563
4563
|
!this.sel || this.busy || this.$emit("submit", { rating: this.sel });
|
|
4564
4564
|
}
|
|
4565
4565
|
}
|
|
4566
|
-
},
|
|
4566
|
+
}, zi = { class: "wm-fb" }, qi = { class: "wm-fb__title" }, Hi = { class: "wm-fb__sub" }, $i = { class: "wm-fb__row" }, Vi = ["onClick"], Ki = { class: "wm-fb__emoji" }, Wi = { class: "wm-fb__label" }, Gi = ["disabled"], Yi = {
|
|
4567
4567
|
key: 1,
|
|
4568
4568
|
class: "wm-fb__done"
|
|
4569
4569
|
}, Ji = { class: "wm-fb__doneTitle" }, Qi = { class: "wm-fb__doneSub" };
|
|
4570
4570
|
function Xi(e, t, n, i, r, s) {
|
|
4571
|
-
return c(), u("div",
|
|
4571
|
+
return c(), u("div", zi, [
|
|
4572
4572
|
n.done ? (c(), u("div", Yi, [
|
|
4573
4573
|
t[1] || (t[1] = o("div", { class: "wm-fb__check" }, [
|
|
4574
4574
|
o("svg", {
|
|
@@ -4588,7 +4588,7 @@ function Xi(e, t, n, i, r, s) {
|
|
|
4588
4588
|
o("div", Ji, v(s.t("feedback.doneTitle")), 1),
|
|
4589
4589
|
o("div", Qi, v(s.t("feedback.doneSubtitle")), 1)
|
|
4590
4590
|
])) : (c(), u(E, { key: 0 }, [
|
|
4591
|
-
o("div",
|
|
4591
|
+
o("div", qi, v(s.t("feedback.question")), 1),
|
|
4592
4592
|
o("div", Hi, v(s.t("feedback.subtitle")), 1),
|
|
4593
4593
|
o("div", $i, [
|
|
4594
4594
|
(c(!0), u(E, null, U(s.options, (a) => (c(), u("button", {
|
|
@@ -4610,12 +4610,12 @@ function Xi(e, t, n, i, r, s) {
|
|
|
4610
4610
|
], 64))
|
|
4611
4611
|
]);
|
|
4612
4612
|
}
|
|
4613
|
-
const Zi = /* @__PURE__ */ R(
|
|
4613
|
+
const Zi = /* @__PURE__ */ R(Di, [["render", Xi], ["__scopeId", "data-v-9b630564"]]), ea = {
|
|
4614
4614
|
name: "WmMoreMenu",
|
|
4615
4615
|
inject: {
|
|
4616
4616
|
// Translator shared by the Messenger shell; French fallback when
|
|
4617
4617
|
// the component is used standalone.
|
|
4618
|
-
t: { default: () =>
|
|
4618
|
+
t: { default: () => P() }
|
|
4619
4619
|
},
|
|
4620
4620
|
props: {
|
|
4621
4621
|
canRename: { type: Boolean, default: !0 },
|
|
@@ -4835,7 +4835,7 @@ const fa = /* @__PURE__ */ R(ea, [["render", ha], ["__scopeId", "data-v-76281e95
|
|
|
4835
4835
|
inject: {
|
|
4836
4836
|
// Translator shared by the Messenger shell; French fallback when
|
|
4837
4837
|
// the component is used standalone.
|
|
4838
|
-
t: { default: () =>
|
|
4838
|
+
t: { default: () => P() }
|
|
4839
4839
|
},
|
|
4840
4840
|
props: {
|
|
4841
4841
|
// Empty defaults: the resolved fallback comes from the translator
|
|
@@ -4949,7 +4949,7 @@ const Ma = /* @__PURE__ */ R(_a, [["render", Sa], ["__scopeId", "data-v-6d5f94a8
|
|
|
4949
4949
|
Composer: Xr,
|
|
4950
4950
|
SuggestionChips: ni,
|
|
4951
4951
|
ApprovalCard: mi,
|
|
4952
|
-
FormCard:
|
|
4952
|
+
FormCard: ji,
|
|
4953
4953
|
Feedback: Zi,
|
|
4954
4954
|
MoreMenu: fa,
|
|
4955
4955
|
RenameDialog: Ma
|
|
@@ -5097,7 +5097,7 @@ const Ma = /* @__PURE__ */ R(_a, [["render", Sa], ["__scopeId", "data-v-6d5f94a8
|
|
|
5097
5097
|
// `locale` changes. `t()` below (and the provided closure) delegate
|
|
5098
5098
|
// to it so every string resolves against the current language.
|
|
5099
5099
|
translator() {
|
|
5100
|
-
return
|
|
5100
|
+
return P(this.locale);
|
|
5101
5101
|
},
|
|
5102
5102
|
error() {
|
|
5103
5103
|
var e;
|
|
@@ -5430,18 +5430,6 @@ const Ma = /* @__PURE__ */ R(_a, [["render", Sa], ["__scopeId", "data-v-6d5f94a8
|
|
|
5430
5430
|
}
|
|
5431
5431
|
},
|
|
5432
5432
|
watch: {
|
|
5433
|
-
// Notifie le snippet parent du changement open/close pour qu'il
|
|
5434
|
-
// resize l'iframe (sinon en sheet la hauteur est plafonnée).
|
|
5435
|
-
isOpen(e) {
|
|
5436
|
-
window.parent && window.parent !== window && window.parent.postMessage(
|
|
5437
|
-
{
|
|
5438
|
-
type: "RESIZE",
|
|
5439
|
-
state: e ? "open" : "closed",
|
|
5440
|
-
displayMode: this.displayMode
|
|
5441
|
-
},
|
|
5442
|
-
"*"
|
|
5443
|
-
);
|
|
5444
|
-
},
|
|
5445
5433
|
// Prune `dismissedPeeks` entries for threads that are no longer
|
|
5446
5434
|
// unread (user opened them, or a user reply cleared the unread
|
|
5447
5435
|
// flag). Without this, the map would grow unbounded across a
|
|
@@ -5629,7 +5617,7 @@ const Ma = /* @__PURE__ */ R(_a, [["render", Sa], ["__scopeId", "data-v-6d5f94a8
|
|
|
5629
5617
|
},
|
|
5630
5618
|
// ── Panel open/close + draft conversation ────────────────────────
|
|
5631
5619
|
async open() {
|
|
5632
|
-
this.isOpen = !0, this.store || await this.boot(), this.store && this.store.setPanelOpen(!0);
|
|
5620
|
+
this.isOpen = !0, this.notifyParentResize("open"), this.store || await this.boot(), this.store && this.store.setPanelOpen(!0);
|
|
5633
5621
|
const e = this.currentConv;
|
|
5634
5622
|
if (e && !e._draft) {
|
|
5635
5623
|
this.activeConvId == null && (this.activeConvId = e.id);
|
|
@@ -5642,7 +5630,22 @@ const Ma = /* @__PURE__ */ R(_a, [["render", Sa], ["__scopeId", "data-v-6d5f94a8
|
|
|
5642
5630
|
}
|
|
5643
5631
|
},
|
|
5644
5632
|
close() {
|
|
5645
|
-
this.isOpen = !1, this.store && this.store.setPanelOpen(!1);
|
|
5633
|
+
this.isOpen = !1, this.notifyParentResize("closed"), this.store && this.store.setPanelOpen(!1);
|
|
5634
|
+
},
|
|
5635
|
+
notifyParentResize(e) {
|
|
5636
|
+
if (window.parent && window.parent !== window)
|
|
5637
|
+
try {
|
|
5638
|
+
window.parent.postMessage(
|
|
5639
|
+
{
|
|
5640
|
+
type: "RESIZE",
|
|
5641
|
+
state: e,
|
|
5642
|
+
displayMode: this.displayMode
|
|
5643
|
+
},
|
|
5644
|
+
"*"
|
|
5645
|
+
);
|
|
5646
|
+
} catch (t) {
|
|
5647
|
+
console.warn("[ww-messenger] notifyParentResize failed", t);
|
|
5648
|
+
}
|
|
5646
5649
|
},
|
|
5647
5650
|
// Opening straight from a notification card: land on that card's
|
|
5648
5651
|
// thread rather than whatever was last active.
|
|
@@ -5860,12 +5863,12 @@ const Ma = /* @__PURE__ */ R(_a, [["render", Sa], ["__scopeId", "data-v-6d5f94a8
|
|
|
5860
5863
|
class: "wm-actionWait",
|
|
5861
5864
|
role: "status",
|
|
5862
5865
|
"aria-live": "polite"
|
|
5863
|
-
}, Ua = { class: "wm-actionWait__lbl" },
|
|
5866
|
+
}, Ua = { class: "wm-actionWait__lbl" }, Pa = {
|
|
5864
5867
|
key: 2,
|
|
5865
5868
|
class: "wm-attached"
|
|
5866
|
-
},
|
|
5867
|
-
function
|
|
5868
|
-
const a = L("Launcher"), l = L("Header"), p = L("Onboarding"), C = L("MessageList"), k = L("ApprovalCard"), x = L("FormCard"), B = L("Feedback"), A = L("SuggestionChips"), H = L("Composer"), M = L("MoreMenu"),
|
|
5869
|
+
}, ja = ["aria-label", "onClick"];
|
|
5870
|
+
function Da(e, t, n, i, r, s) {
|
|
5871
|
+
const a = L("Launcher"), l = L("Header"), p = L("Onboarding"), C = L("MessageList"), k = L("ApprovalCard"), x = L("FormCard"), B = L("Feedback"), A = L("SuggestionChips"), H = L("Composer"), M = L("MoreMenu"), j = L("RenameDialog");
|
|
5869
5872
|
return c(), u("div", {
|
|
5870
5873
|
class: O(["wm-root", `wm-root--${n.displayMode}`])
|
|
5871
5874
|
}, [
|
|
@@ -5883,7 +5886,7 @@ function Pa(e, t, n, i, r, s) {
|
|
|
5883
5886
|
`wm-panel--${n.displayMode}`,
|
|
5884
5887
|
{ "wm-panel--welcome": s.ready && !s.error && !s.currentConv }
|
|
5885
5888
|
]),
|
|
5886
|
-
style:
|
|
5889
|
+
style: q(r.floatHeight ? { "--wm-float-h": r.floatHeight + "px" } : null),
|
|
5887
5890
|
role: "dialog",
|
|
5888
5891
|
"aria-label": "Messenger"
|
|
5889
5892
|
}, [
|
|
@@ -6025,16 +6028,16 @@ function Pa(e, t, n, i, r, s) {
|
|
|
6025
6028
|
onBrowserNotifToggle: e.onBrowserNotifToggle,
|
|
6026
6029
|
onAction: s.onMoreAction
|
|
6027
6030
|
}, null, 8, ["can-rename", "can-export", "sound-enabled", "browser-notif-enabled", "status-url", "help-url", "onSoundToggle", "onBrowserNotifToggle", "onAction"])) : w("", !0),
|
|
6028
|
-
r.renameDialogOpen && s.currentConv && !s.currentConv._draft ? (c(), N(
|
|
6031
|
+
r.renameDialogOpen && s.currentConv && !s.currentConv._draft ? (c(), N(j, {
|
|
6029
6032
|
key: 1,
|
|
6030
6033
|
"initial-value": s.currentConv.name || "",
|
|
6031
6034
|
title: s.t("rename.dialogTitle"),
|
|
6032
6035
|
onClose: t[3] || (t[3] = (F) => r.renameDialogOpen = !1),
|
|
6033
6036
|
onSubmit: s.onRenameSubmit
|
|
6034
6037
|
}, null, 8, ["initial-value", "title", "onSubmit"])) : w("", !0),
|
|
6035
|
-
r.pendingAttachments.length ? (c(), u("div",
|
|
6036
|
-
(c(!0), u(E, null, U(r.pendingAttachments, (F,
|
|
6037
|
-
key:
|
|
6038
|
+
r.pendingAttachments.length ? (c(), u("div", Pa, [
|
|
6039
|
+
(c(!0), u(E, null, U(r.pendingAttachments, (F, z) => (c(), u("div", {
|
|
6040
|
+
key: z,
|
|
6038
6041
|
class: "wm-attached__chip"
|
|
6039
6042
|
}, [
|
|
6040
6043
|
t[10] || (t[10] = o("svg", {
|
|
@@ -6054,7 +6057,7 @@ function Pa(e, t, n, i, r, s) {
|
|
|
6054
6057
|
o("button", {
|
|
6055
6058
|
type: "button",
|
|
6056
6059
|
"aria-label": s.t("attachment.remove"),
|
|
6057
|
-
onClick: (W) => r.pendingAttachments.splice(
|
|
6060
|
+
onClick: (W) => r.pendingAttachments.splice(z, 1)
|
|
6058
6061
|
}, [...t[9] || (t[9] = [
|
|
6059
6062
|
o("svg", {
|
|
6060
6063
|
width: "10",
|
|
@@ -6069,7 +6072,7 @@ function Pa(e, t, n, i, r, s) {
|
|
|
6069
6072
|
}, [
|
|
6070
6073
|
o("path", { d: "M18 6L6 18M6 6l12 12" })
|
|
6071
6074
|
], -1)
|
|
6072
|
-
])], 8,
|
|
6075
|
+
])], 8, ja)
|
|
6073
6076
|
]))), 128))
|
|
6074
6077
|
])) : w("", !0)
|
|
6075
6078
|
], 64)) : (c(), N(p, {
|
|
@@ -6102,7 +6105,7 @@ function Pa(e, t, n, i, r, s) {
|
|
|
6102
6105
|
], 6)) : w("", !0)
|
|
6103
6106
|
], 2);
|
|
6104
6107
|
}
|
|
6105
|
-
const Ha = /* @__PURE__ */ R(Ta, [["render",
|
|
6108
|
+
const Ha = /* @__PURE__ */ R(Ta, [["render", Da], ["__scopeId", "data-v-5c404154"]]), $a = "0.5.10";
|
|
6106
6109
|
export {
|
|
6107
6110
|
le as AIAvatar,
|
|
6108
6111
|
_e as AVATAR_COLORS,
|
|
@@ -6111,14 +6114,14 @@ export {
|
|
|
6111
6114
|
us as ArtifactFormResponse,
|
|
6112
6115
|
As as ArtifactInfoCard,
|
|
6113
6116
|
Hs as ArtifactRenderer,
|
|
6114
|
-
|
|
6117
|
+
js as ArtifactTicket,
|
|
6115
6118
|
tr as AttachmentPreview,
|
|
6116
6119
|
ir as Bubble,
|
|
6117
6120
|
Xr as Composer,
|
|
6118
6121
|
Ze as DEFAULT_BASE_URL,
|
|
6119
6122
|
ie as DEFAULT_LANGUAGE,
|
|
6120
6123
|
Zi as Feedback,
|
|
6121
|
-
|
|
6124
|
+
ji as FormCard,
|
|
6122
6125
|
cn as Header,
|
|
6123
6126
|
Le as HumanAvatar,
|
|
6124
6127
|
Ut as Launcher,
|
|
@@ -6136,14 +6139,14 @@ export {
|
|
|
6136
6139
|
ve as avatarColor,
|
|
6137
6140
|
ye as avatarInitials,
|
|
6138
6141
|
Rr as captureScreenshotFile,
|
|
6139
|
-
|
|
6142
|
+
D as colors,
|
|
6140
6143
|
Qe as createStore,
|
|
6141
|
-
|
|
6144
|
+
P as createTranslator,
|
|
6142
6145
|
We as createTransport,
|
|
6143
6146
|
oe as dateLocale,
|
|
6144
6147
|
Ha as default,
|
|
6145
6148
|
Ie as formatTime,
|
|
6146
|
-
|
|
6149
|
+
qa as guessAttachmentKind,
|
|
6147
6150
|
Br as pickRecorderMime,
|
|
6148
6151
|
un as renderInlineMarkdown,
|
|
6149
6152
|
mn as renderMarkdown,
|