@_solaris/messenger-widget 0.6.32 → 0.6.34
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 +1 -1
- package/dist/messenger.cjs +1 -1
- package/dist/messenger.js +234 -216
- 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 We, openBlock as c, createElementBlock as d, normalizeStyle as
|
|
1
|
+
import { reactive as We, openBlock as c, createElementBlock as d, normalizeStyle as H, normalizeClass as R, toDisplayString as y, resolveComponent as P, createVNode as W, Transition as Ae, withCtx as Se, Fragment as B, renderList as D, withKeys as _e, withModifiers as K, createElementVNode as l, createCommentVNode as b, createBlock as E, resolveDynamicComponent as Te, mergeProps as je, withDirectives as G, vModelText as ee, createTextVNode as Me, renderSlot as $e, vModelCheckbox as Ge, vModelSelect as Ye, markRaw as Ie } from "vue";
|
|
2
2
|
const Je = [
|
|
3
3
|
"connected",
|
|
4
4
|
"message",
|
|
@@ -1164,7 +1164,7 @@ function Re(e) {
|
|
|
1164
1164
|
function re(e) {
|
|
1165
1165
|
return Ee[Re(e)] || Ee[ue];
|
|
1166
1166
|
}
|
|
1167
|
-
function
|
|
1167
|
+
function N(e) {
|
|
1168
1168
|
const t = Re(e), s = ke[t] || ke[ue], r = ke[ue];
|
|
1169
1169
|
return function(n, a) {
|
|
1170
1170
|
let o = s[n];
|
|
@@ -1182,7 +1182,7 @@ function Pe(e, t) {
|
|
|
1182
1182
|
function ze(e, t, s) {
|
|
1183
1183
|
return Array.isArray(t) ? t.map((r) => Pe(e, String(r))).join(", ") : typeof t == "boolean" ? s(t ? "common.yes" : "common.no") : Pe(e, String(t));
|
|
1184
1184
|
}
|
|
1185
|
-
function mt(e, t, s =
|
|
1185
|
+
function mt(e, t, s = N()) {
|
|
1186
1186
|
if (!e || !t) return "";
|
|
1187
1187
|
const r = Array.isArray(e.fields) ? e.fields : [], i = [];
|
|
1188
1188
|
for (const n of r) {
|
|
@@ -1197,7 +1197,7 @@ ${o}`);
|
|
|
1197
1197
|
|
|
1198
1198
|
`);
|
|
1199
1199
|
}
|
|
1200
|
-
function ft(e, t, s =
|
|
1200
|
+
function ft(e, t, s = N()) {
|
|
1201
1201
|
const r = [], i = Array.isArray(e == null ? void 0 : e.fields) ? e.fields : [];
|
|
1202
1202
|
for (const n of i) {
|
|
1203
1203
|
if (!(n != null && n.key) || !(n != null && n.label)) continue;
|
|
@@ -1356,7 +1356,7 @@ function vt(e, t, s, r) {
|
|
|
1356
1356
|
return i.join(`
|
|
1357
1357
|
`);
|
|
1358
1358
|
}
|
|
1359
|
-
function pt(e, t, s =
|
|
1359
|
+
function pt(e, t, s = N(), r) {
|
|
1360
1360
|
if (!e) return;
|
|
1361
1361
|
const i = vt(e, t || [], s, re(r)), n = new Blob([i], { type: "text/plain;charset=utf-8" });
|
|
1362
1362
|
try {
|
|
@@ -1841,7 +1841,7 @@ const F = (e, t) => {
|
|
|
1841
1841
|
function Mt(e, t, s, r, i, n) {
|
|
1842
1842
|
return c(), d("div", {
|
|
1843
1843
|
class: R(["wm-huav", { "wm-huav--tail": s.tail }]),
|
|
1844
|
-
style:
|
|
1844
|
+
style: H({
|
|
1845
1845
|
width: s.size + "px",
|
|
1846
1846
|
height: s.size + "px",
|
|
1847
1847
|
"--wm-avr": Math.round(s.size * 0.32) + "px",
|
|
@@ -1854,7 +1854,7 @@ function Mt(e, t, s, r, i, n) {
|
|
|
1854
1854
|
alt: s.name || ""
|
|
1855
1855
|
}, null, 8, Tt)) : (c(), d("span", {
|
|
1856
1856
|
key: 1,
|
|
1857
|
-
style:
|
|
1857
|
+
style: H({ fontSize: s.size * 0.36 + "px" })
|
|
1858
1858
|
}, y(n.initials), 5))
|
|
1859
1859
|
], 6);
|
|
1860
1860
|
}
|
|
@@ -1864,7 +1864,7 @@ const ye = /* @__PURE__ */ F(St, [["render", Mt], ["__scopeId", "data-v-14e10c0d
|
|
|
1864
1864
|
inject: {
|
|
1865
1865
|
// Translator shared by the Messenger shell; French fallback when
|
|
1866
1866
|
// the component is used standalone.
|
|
1867
|
-
t: { default: () =>
|
|
1867
|
+
t: { default: () => N() }
|
|
1868
1868
|
},
|
|
1869
1869
|
props: {
|
|
1870
1870
|
// Nombre de conversations non lues — pilote la pastille.
|
|
@@ -1884,7 +1884,7 @@ const ye = /* @__PURE__ */ F(St, [["render", Mt], ["__scopeId", "data-v-14e10c0d
|
|
|
1884
1884
|
return this.peeks.slice(0, xt).reverse();
|
|
1885
1885
|
}
|
|
1886
1886
|
}
|
|
1887
|
-
}, Rt = ["aria-label", "onClick", "onKeydown"], Lt = ["aria-label", "onClick"], It = { class: "wm-peek__avatar" }, Bt = ["aria-label"], Et = { class: "wm-peek__body" }, Pt = { class: "wm-peek__head" }, Ft = { class: "wm-peek__name" }, Ut = { class: "wm-peek__action" }, Dt = { class: "wm-peek__text" },
|
|
1887
|
+
}, Rt = ["aria-label", "onClick", "onKeydown"], Lt = ["aria-label", "onClick"], It = { class: "wm-peek__avatar" }, Bt = ["aria-label"], Et = { class: "wm-peek__body" }, Pt = { class: "wm-peek__head" }, Ft = { class: "wm-peek__name" }, Ut = { class: "wm-peek__action" }, Dt = { class: "wm-peek__text" }, Ht = ["onClick"], Nt = ["aria-label"], jt = ["aria-label"];
|
|
1888
1888
|
function zt(e, t, s, r, i, n) {
|
|
1889
1889
|
const a = P("HumanAvatar");
|
|
1890
1890
|
return c(), d("div", {
|
|
@@ -1903,7 +1903,7 @@ function zt(e, t, s, r, i, n) {
|
|
|
1903
1903
|
(c(!0), d(B, null, D(n.visiblePeeks, (o, f) => (c(), d("div", {
|
|
1904
1904
|
key: o.convId,
|
|
1905
1905
|
class: "wm-peek",
|
|
1906
|
-
style:
|
|
1906
|
+
style: H({
|
|
1907
1907
|
"--depth": n.visiblePeeks.length - 1 - f,
|
|
1908
1908
|
zIndex: f + 1
|
|
1909
1909
|
}),
|
|
@@ -1961,7 +1961,7 @@ function zt(e, t, s, r, i, n) {
|
|
|
1961
1961
|
type: "button",
|
|
1962
1962
|
class: "wm-peek__open",
|
|
1963
1963
|
onClick: K((k) => e.$emit("open", o.convId), ["stop"])
|
|
1964
|
-
}, y(n.t("common.open")), 9,
|
|
1964
|
+
}, y(n.t("common.open")), 9, Ht)
|
|
1965
1965
|
], 44, Rt))), 128))
|
|
1966
1966
|
], 2)) : b("", !0)
|
|
1967
1967
|
]),
|
|
@@ -1995,7 +1995,7 @@ function zt(e, t, s, r, i, n) {
|
|
|
1995
1995
|
count: s.unreadCount
|
|
1996
1996
|
})
|
|
1997
1997
|
}, y(s.unreadCount > 9 ? "9+" : s.unreadCount), 9, jt)) : b("", !0)
|
|
1998
|
-
], 8,
|
|
1998
|
+
], 8, Nt)
|
|
1999
1999
|
], 32);
|
|
2000
2000
|
}
|
|
2001
2001
|
const qt = /* @__PURE__ */ F(Ot, [["render", zt], ["__scopeId", "data-v-d81459bc"]]), Vt = {
|
|
@@ -2034,7 +2034,7 @@ const qt = /* @__PURE__ */ F(Ot, [["render", zt], ["__scopeId", "data-v-d81459bc
|
|
|
2034
2034
|
function Gt(e, t, s, r, i, n) {
|
|
2035
2035
|
return c(), d("div", {
|
|
2036
2036
|
class: R(["wm-aiav", { "wm-aiav--tail": s.tail }]),
|
|
2037
|
-
style:
|
|
2037
|
+
style: H({
|
|
2038
2038
|
width: s.size + "px",
|
|
2039
2039
|
height: s.size + "px",
|
|
2040
2040
|
"--wm-avr": s.size * 0.32 + "px"
|
|
@@ -2047,7 +2047,7 @@ function Gt(e, t, s, r, i, n) {
|
|
|
2047
2047
|
"wm-aiav__inner--img": !!s.imageUrl,
|
|
2048
2048
|
"wm-aiav__inner--initials": !s.imageUrl && !!n.initials
|
|
2049
2049
|
}]),
|
|
2050
|
-
style:
|
|
2050
|
+
style: H(
|
|
2051
2051
|
!s.imageUrl && n.initials ? { background: n.bgColor } : null
|
|
2052
2052
|
)
|
|
2053
2053
|
}, [
|
|
@@ -2057,7 +2057,7 @@ function Gt(e, t, s, r, i, n) {
|
|
|
2057
2057
|
alt: s.name || ""
|
|
2058
2058
|
}, null, 8, Wt)) : n.initials ? (c(), d("span", {
|
|
2059
2059
|
key: 1,
|
|
2060
|
-
style:
|
|
2060
|
+
style: H({ fontSize: s.size * 0.36 + "px" })
|
|
2061
2061
|
}, y(n.initials), 5)) : (c(), d("svg", {
|
|
2062
2062
|
key: 2,
|
|
2063
2063
|
width: s.size * 0.5,
|
|
@@ -2122,12 +2122,12 @@ function en(e, t, s, r, i, n) {
|
|
|
2122
2122
|
return n.visible ? (c(), d("div", Jt, [
|
|
2123
2123
|
l("div", {
|
|
2124
2124
|
class: "wm-team__stack",
|
|
2125
|
-
style:
|
|
2125
|
+
style: H({ width: n.stackWidth + "px" })
|
|
2126
2126
|
}, [
|
|
2127
2127
|
(c(!0), d(B, null, D(s.members.slice(0, 3), (a, o) => (c(), d("div", {
|
|
2128
2128
|
key: o,
|
|
2129
2129
|
class: "wm-team__pill",
|
|
2130
|
-
style:
|
|
2130
|
+
style: H({
|
|
2131
2131
|
left: o * 13 + "px",
|
|
2132
2132
|
zIndex: 3 - o,
|
|
2133
2133
|
background: n.colorFor(a)
|
|
@@ -2149,7 +2149,7 @@ const tn = /* @__PURE__ */ F(Yt, [["render", en], ["__scopeId", "data-v-e49a9063
|
|
|
2149
2149
|
inject: {
|
|
2150
2150
|
// Translator shared by the Messenger shell. Falls back to a French
|
|
2151
2151
|
// translator when the component is used standalone (no provider).
|
|
2152
|
-
t: { default: () =>
|
|
2152
|
+
t: { default: () => N() }
|
|
2153
2153
|
},
|
|
2154
2154
|
props: {
|
|
2155
2155
|
title: { type: String, default: "Nouvelle conversation" },
|
|
@@ -2302,7 +2302,7 @@ const _n = /* @__PURE__ */ F(nn, [["render", fn], ["__scopeId", "data-v-27232009
|
|
|
2302
2302
|
// shell. The language getter feeds `formatTs` (relative date
|
|
2303
2303
|
// labels on unread alerts) ; falls back to French when the
|
|
2304
2304
|
// component is used standalone.
|
|
2305
|
-
t: { default: () =>
|
|
2305
|
+
t: { default: () => N() },
|
|
2306
2306
|
wmLocale: { default: () => () => "fr" }
|
|
2307
2307
|
},
|
|
2308
2308
|
props: {
|
|
@@ -2555,7 +2555,7 @@ const _n = /* @__PURE__ */ F(nn, [["render", fn], ["__scopeId", "data-v-27232009
|
|
|
2555
2555
|
}, In = ["innerHTML"], Bn = { class: "wm-onb__alert-meta" }, En = {
|
|
2556
2556
|
key: 0,
|
|
2557
2557
|
class: "wm-onb__alert-time"
|
|
2558
|
-
}, Pn = { class: "wm-onb__alert-resume" }, Fn = { class: "wm-onb__actions" }, Un = ["onClick"], Dn = { class: "wm-onb__btn-icon" },
|
|
2558
|
+
}, Pn = { class: "wm-onb__alert-resume" }, Fn = { class: "wm-onb__actions" }, Un = ["onClick"], Dn = { class: "wm-onb__btn-icon" }, Hn = ["aria-label"], Nn = {
|
|
2559
2559
|
key: 1,
|
|
2560
2560
|
width: "18",
|
|
2561
2561
|
height: "18",
|
|
@@ -2620,7 +2620,7 @@ function Zn(e, t, s, r, i, n) {
|
|
|
2620
2620
|
n.hasCover ? (c(), d("div", {
|
|
2621
2621
|
key: 0,
|
|
2622
2622
|
class: "wm-onb__cover",
|
|
2623
|
-
style:
|
|
2623
|
+
style: H(n.coverStyle),
|
|
2624
2624
|
role: "img",
|
|
2625
2625
|
"aria-label": n.heroTitle
|
|
2626
2626
|
}, null, 12, yn)) : b("", !0),
|
|
@@ -2722,10 +2722,10 @@ function Zn(e, t, s, r, i, n) {
|
|
|
2722
2722
|
n.safeIconUrl(o) ? (c(), d("span", {
|
|
2723
2723
|
key: 0,
|
|
2724
2724
|
class: "wm-onb__btn-iconImg",
|
|
2725
|
-
style:
|
|
2725
|
+
style: H(n.iconUrlStyle(o)),
|
|
2726
2726
|
role: "img",
|
|
2727
2727
|
"aria-label": o.label || ""
|
|
2728
|
-
}, null, 12,
|
|
2728
|
+
}, null, 12, Hn)) : (c(), d("svg", Nn, [
|
|
2729
2729
|
l("path", {
|
|
2730
2730
|
d: n.iconPath(o.icon)
|
|
2731
2731
|
}, null, 8, jn)
|
|
@@ -2809,7 +2809,7 @@ const es = /* @__PURE__ */ F(gn, [["render", Zn], ["__scopeId", "data-v-cfaffcfa
|
|
|
2809
2809
|
name: "WmHistory",
|
|
2810
2810
|
components: { AIAvatar: me, HumanAvatar: ye },
|
|
2811
2811
|
inject: {
|
|
2812
|
-
t: { default: () =>
|
|
2812
|
+
t: { default: () => N() },
|
|
2813
2813
|
wmLocale: { default: () => () => "fr" }
|
|
2814
2814
|
},
|
|
2815
2815
|
props: {
|
|
@@ -2974,7 +2974,7 @@ function _s(e, t, s, r, i, n) {
|
|
|
2974
2974
|
])
|
|
2975
2975
|
]);
|
|
2976
2976
|
}
|
|
2977
|
-
const gs = /* @__PURE__ */ F(ts, [["render", _s], ["__scopeId", "data-v-
|
|
2977
|
+
const gs = /* @__PURE__ */ F(ts, [["render", _s], ["__scopeId", "data-v-82e61354"]]);
|
|
2978
2978
|
function ys(e) {
|
|
2979
2979
|
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();
|
|
2980
2980
|
}
|
|
@@ -3084,7 +3084,7 @@ const xs = /* @__PURE__ */ F(vs, [["render", Ms], ["__scopeId", "data-v-7284acd0
|
|
|
3084
3084
|
inject: {
|
|
3085
3085
|
// Translator shared by the Messenger shell; French fallback when
|
|
3086
3086
|
// the component is used standalone.
|
|
3087
|
-
t: { default: () =>
|
|
3087
|
+
t: { default: () => N() }
|
|
3088
3088
|
},
|
|
3089
3089
|
props: {
|
|
3090
3090
|
data: { type: Object, required: !0 }
|
|
@@ -3148,7 +3148,7 @@ const Us = /* @__PURE__ */ F(Os, [["render", Fs], ["__scopeId", "data-v-713aecf1
|
|
|
3148
3148
|
return !!((e = this.data) != null && e.body) || this.fields.length > 0;
|
|
3149
3149
|
}
|
|
3150
3150
|
}
|
|
3151
|
-
},
|
|
3151
|
+
}, Hs = { class: "wm-art wm-art--infoCard" }, Ns = {
|
|
3152
3152
|
key: 0,
|
|
3153
3153
|
class: "wm-art__image"
|
|
3154
3154
|
}, js = ["src", "alt"], zs = { class: "wm-art__head" }, qs = { class: "wm-art__headMain" }, Vs = { class: "wm-art__title" }, Ks = {
|
|
@@ -3162,8 +3162,8 @@ const Us = /* @__PURE__ */ F(Os, [["render", Fs], ["__scopeId", "data-v-713aecf1
|
|
|
3162
3162
|
class: "wm-art__text"
|
|
3163
3163
|
}, Gs = { class: "wm-art__fieldLabel" };
|
|
3164
3164
|
function Ys(e, t, s, r, i, n) {
|
|
3165
|
-
return c(), d("div",
|
|
3166
|
-
s.data.image_url ? (c(), d("figure",
|
|
3165
|
+
return c(), d("div", Hs, [
|
|
3166
|
+
s.data.image_url ? (c(), d("figure", Ns, [
|
|
3167
3167
|
l("img", {
|
|
3168
3168
|
src: s.data.image_url,
|
|
3169
3169
|
alt: s.data.title || "",
|
|
@@ -3220,7 +3220,7 @@ const Qs = {
|
|
|
3220
3220
|
inject: {
|
|
3221
3221
|
// Translator + resolved-language getter shared by the Messenger
|
|
3222
3222
|
// shell. Fall back to French wording when used standalone.
|
|
3223
|
-
t: { default: () =>
|
|
3223
|
+
t: { default: () => N() },
|
|
3224
3224
|
wmLocale: { default: () => () => "fr" }
|
|
3225
3225
|
},
|
|
3226
3226
|
props: {
|
|
@@ -3433,7 +3433,7 @@ const _r = /* @__PURE__ */ F(mr, [["render", fr]]), gr = {
|
|
|
3433
3433
|
signAttachmentFn: { default: null },
|
|
3434
3434
|
// Translator shared by the Messenger shell; French fallback when
|
|
3435
3435
|
// the component is used standalone.
|
|
3436
|
-
t: { default: () =>
|
|
3436
|
+
t: { default: () => N() }
|
|
3437
3437
|
},
|
|
3438
3438
|
props: {
|
|
3439
3439
|
attachment: { type: Object, required: !0 }
|
|
@@ -3605,7 +3605,7 @@ const Fr = {
|
|
|
3605
3605
|
closed: "system.closed",
|
|
3606
3606
|
reopened: "system.reopened",
|
|
3607
3607
|
idle: "system.idle"
|
|
3608
|
-
}, Ur = 80, Dr = 200,
|
|
3608
|
+
}, Ur = 80, Dr = 200, Hr = {
|
|
3609
3609
|
name: "WmMessageList",
|
|
3610
3610
|
components: {
|
|
3611
3611
|
AIAvatar: me,
|
|
@@ -3619,7 +3619,7 @@ const Fr = {
|
|
|
3619
3619
|
inject: {
|
|
3620
3620
|
// Translator + resolved-language getter shared by the Messenger
|
|
3621
3621
|
// shell. Fall back to French wording when used standalone.
|
|
3622
|
-
t: { default: () =>
|
|
3622
|
+
t: { default: () => N() },
|
|
3623
3623
|
wmLocale: { default: () => () => "fr" }
|
|
3624
3624
|
},
|
|
3625
3625
|
props: {
|
|
@@ -4211,7 +4211,7 @@ const Fr = {
|
|
|
4211
4211
|
e && (typeof e.scrollTo == "function" ? e.scrollTo({ top: e.scrollHeight, behavior: "smooth" }) : e.scrollTop = e.scrollHeight, this.showScrollDown = !1);
|
|
4212
4212
|
}
|
|
4213
4213
|
}
|
|
4214
|
-
},
|
|
4214
|
+
}, Nr = { class: "wm-list__wrap" }, jr = {
|
|
4215
4215
|
key: 0,
|
|
4216
4216
|
class: "wm-list__loadMore",
|
|
4217
4217
|
role: "status",
|
|
@@ -4243,7 +4243,7 @@ const Fr = {
|
|
|
4243
4243
|
}, ii = { class: "wm-list__avatarSlot" }, ai = ["aria-label", "title"];
|
|
4244
4244
|
function oi(e, t, s, r, i, n) {
|
|
4245
4245
|
const a = P("AIAvatar"), o = P("HumanAvatar"), f = P("ActionResult"), k = P("ArtifactRenderer"), v = P("Bubble"), T = P("AttachmentPreview"), I = P("Typing");
|
|
4246
|
-
return c(), d("div",
|
|
4246
|
+
return c(), d("div", Nr, [
|
|
4247
4247
|
l("div", {
|
|
4248
4248
|
ref: "scrollEl",
|
|
4249
4249
|
class: R(["wm-list", { "wm-list--silent": i.silentFades }]),
|
|
@@ -4290,7 +4290,7 @@ function oi(e, t, s, r, i, n) {
|
|
|
4290
4290
|
"is-failed": M.message._failed
|
|
4291
4291
|
}
|
|
4292
4292
|
]]),
|
|
4293
|
-
style:
|
|
4293
|
+
style: H(n.cornersStyle(S, U)),
|
|
4294
4294
|
onPointerdown: (x) => n.onPressStart(`${n.messageKey(M.message)}-${M.partKey}`),
|
|
4295
4295
|
onPointerup: t[0] || (t[0] = (x) => n.onPressEnd()),
|
|
4296
4296
|
onPointercancel: t[1] || (t[1] = (x) => n.onPressEnd()),
|
|
@@ -4348,7 +4348,7 @@ function oi(e, t, s, r, i, n) {
|
|
|
4348
4348
|
"wm-list__atts--align-end": S.role === "user",
|
|
4349
4349
|
"wm-list__atts--mosaic": n.attachmentsOf(M.message).length >= 2
|
|
4350
4350
|
}]),
|
|
4351
|
-
style:
|
|
4351
|
+
style: H(
|
|
4352
4352
|
n.mosaicGridStyle(
|
|
4353
4353
|
n.attachmentsOf(M.message).length
|
|
4354
4354
|
)
|
|
@@ -4359,7 +4359,7 @@ function oi(e, t, s, r, i, n) {
|
|
|
4359
4359
|
), (x, q) => (c(), E(T, {
|
|
4360
4360
|
key: `${n.messageKey(M.message)}-att-${q}`,
|
|
4361
4361
|
attachment: x,
|
|
4362
|
-
style:
|
|
4362
|
+
style: H(
|
|
4363
4363
|
n.mosaicCornerStyle(
|
|
4364
4364
|
q,
|
|
4365
4365
|
n.attachmentsOf(M.message).length,
|
|
@@ -4431,7 +4431,7 @@ function oi(e, t, s, r, i, n) {
|
|
|
4431
4431
|
})
|
|
4432
4432
|
]);
|
|
4433
4433
|
}
|
|
4434
|
-
const li = /* @__PURE__ */ F(
|
|
4434
|
+
const li = /* @__PURE__ */ F(Hr, [["render", oi], ["__scopeId", "data-v-5a563f2b"]]), ge = typeof navigator < "u" && !!navigator.mediaDevices && typeof navigator.mediaDevices.getDisplayMedia == "function", Le = typeof window < "u" && typeof window.MediaRecorder < "u";
|
|
4435
4435
|
function ci() {
|
|
4436
4436
|
return Le && [
|
|
4437
4437
|
"video/webm;codecs=vp9,opus",
|
|
@@ -4452,7 +4452,7 @@ function Ke({ audio: e }) {
|
|
|
4452
4452
|
systemAudio: e ? "include" : "exclude"
|
|
4453
4453
|
};
|
|
4454
4454
|
}
|
|
4455
|
-
function
|
|
4455
|
+
function po(e) {
|
|
4456
4456
|
return e ? e.startsWith("image/") ? "image" : e.startsWith("video/") ? "video" : "file" : "file";
|
|
4457
4457
|
}
|
|
4458
4458
|
async function di() {
|
|
@@ -4553,10 +4553,7 @@ async function hi(e = {}) {
|
|
|
4553
4553
|
}
|
|
4554
4554
|
};
|
|
4555
4555
|
}
|
|
4556
|
-
|
|
4557
|
-
return typeof window.matchMedia == "function" && window.matchMedia("(hover: none) and (pointer: coarse)").matches;
|
|
4558
|
-
}
|
|
4559
|
-
const fi = [
|
|
4556
|
+
const mi = [
|
|
4560
4557
|
{
|
|
4561
4558
|
action: "file",
|
|
4562
4559
|
labelKey: "composer.attachFile",
|
|
@@ -4572,12 +4569,12 @@ const fi = [
|
|
|
4572
4569
|
labelKey: "composer.recordScreen",
|
|
4573
4570
|
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"
|
|
4574
4571
|
}
|
|
4575
|
-
],
|
|
4572
|
+
], fi = {
|
|
4576
4573
|
name: "WmComposer",
|
|
4577
4574
|
inject: {
|
|
4578
4575
|
// Translator shared by the Messenger shell; French fallback when
|
|
4579
4576
|
// the component is used standalone.
|
|
4580
|
-
t: { default: () =>
|
|
4577
|
+
t: { default: () => N() }
|
|
4581
4578
|
},
|
|
4582
4579
|
props: {
|
|
4583
4580
|
modelValue: { type: String, default: "" },
|
|
@@ -4614,7 +4611,7 @@ const fi = [
|
|
|
4614
4611
|
return this.focused || !!this.local.trim() || this.attachOpen || this.recording;
|
|
4615
4612
|
},
|
|
4616
4613
|
attachItems() {
|
|
4617
|
-
return
|
|
4614
|
+
return mi.map((e) => ({
|
|
4618
4615
|
...e,
|
|
4619
4616
|
label: this.t(e.labelKey),
|
|
4620
4617
|
disabled: e.action === "screenshot" && !ge || e.action === "record" && (!ge || !Le)
|
|
@@ -4634,7 +4631,7 @@ const fi = [
|
|
|
4634
4631
|
}
|
|
4635
4632
|
},
|
|
4636
4633
|
mounted() {
|
|
4637
|
-
this.autosize(),
|
|
4634
|
+
this.autosize(), this.displayMode === "sheet" && this.setupKeyboardTracking();
|
|
4638
4635
|
},
|
|
4639
4636
|
beforeUnmount() {
|
|
4640
4637
|
if (this.recorder)
|
|
@@ -4749,30 +4746,30 @@ const fi = [
|
|
|
4749
4746
|
!e || !this._vvHandler || (e.removeEventListener("resize", this._vvHandler), e.removeEventListener("scroll", this._vvHandler), this._vvHandler = null);
|
|
4750
4747
|
}
|
|
4751
4748
|
}
|
|
4752
|
-
},
|
|
4749
|
+
}, _i = {
|
|
4753
4750
|
key: 0,
|
|
4754
4751
|
class: "wm-rec"
|
|
4755
|
-
},
|
|
4752
|
+
}, gi = { class: "wm-rec__lbl" }, yi = {
|
|
4756
4753
|
key: 1,
|
|
4757
4754
|
class: "wm-compose__menu",
|
|
4758
4755
|
role: "menu"
|
|
4759
|
-
},
|
|
4756
|
+
}, vi = ["disabled", "onClick"], pi = { class: "wm-compose__menuIcon" }, wi = {
|
|
4760
4757
|
viewBox: "0 0 24 24",
|
|
4761
4758
|
width: "14",
|
|
4762
4759
|
height: "14",
|
|
4763
4760
|
"aria-hidden": "true"
|
|
4764
|
-
},
|
|
4765
|
-
function
|
|
4761
|
+
}, bi = ["d"], ki = ["placeholder", "disabled"], Ci = { class: "wm-compose__actions" }, Ai = ["title", "aria-label", "disabled"], Si = ["disabled", "aria-label"];
|
|
4762
|
+
function Ti(e, t, s, r, i, n) {
|
|
4766
4763
|
return c(), d("div", {
|
|
4767
4764
|
class: R(["wm-compose-wrap", { "wm-compose-wrap--sheet": s.displayMode === "sheet" }]),
|
|
4768
|
-
style:
|
|
4765
|
+
style: H(i.kbOffset ? { transform: `translateY(-${i.kbOffset}px)` } : null)
|
|
4769
4766
|
}, [
|
|
4770
|
-
i.recording ? (c(), d("div",
|
|
4767
|
+
i.recording ? (c(), d("div", _i, [
|
|
4771
4768
|
t[11] || (t[11] = l("span", {
|
|
4772
4769
|
class: "wm-rec__dot",
|
|
4773
4770
|
"aria-hidden": "true"
|
|
4774
4771
|
}, null, -1)),
|
|
4775
|
-
l("span",
|
|
4772
|
+
l("span", gi, y(n.t("composer.recording", { time: n.recordingElapsedLabel })), 1),
|
|
4776
4773
|
l("button", {
|
|
4777
4774
|
type: "button",
|
|
4778
4775
|
class: "wm-rec__stop",
|
|
@@ -4795,7 +4792,7 @@ function Mi(e, t, s, r, i, n) {
|
|
|
4795
4792
|
class: "wm-compose__overlay",
|
|
4796
4793
|
onClick: t[2] || (t[2] = (a) => i.attachOpen = !1)
|
|
4797
4794
|
})) : b("", !0),
|
|
4798
|
-
i.attachOpen ? (c(), d("div",
|
|
4795
|
+
i.attachOpen ? (c(), d("div", yi, [
|
|
4799
4796
|
(c(!0), d(B, null, D(n.attachItems, (a) => (c(), d("button", {
|
|
4800
4797
|
key: a.action,
|
|
4801
4798
|
type: "button",
|
|
@@ -4803,8 +4800,8 @@ function Mi(e, t, s, r, i, n) {
|
|
|
4803
4800
|
disabled: a.disabled,
|
|
4804
4801
|
onClick: (o) => n.onAttachAction(a.action)
|
|
4805
4802
|
}, [
|
|
4806
|
-
l("span",
|
|
4807
|
-
(c(), d("svg",
|
|
4803
|
+
l("span", pi, [
|
|
4804
|
+
(c(), d("svg", wi, [
|
|
4808
4805
|
l("path", {
|
|
4809
4806
|
d: a.path,
|
|
4810
4807
|
stroke: "currentColor",
|
|
@@ -4812,11 +4809,11 @@ function Mi(e, t, s, r, i, n) {
|
|
|
4812
4809
|
"stroke-linecap": "round",
|
|
4813
4810
|
"stroke-linejoin": "round",
|
|
4814
4811
|
fill: "none"
|
|
4815
|
-
}, null, 8,
|
|
4812
|
+
}, null, 8, bi)
|
|
4816
4813
|
]))
|
|
4817
4814
|
]),
|
|
4818
4815
|
l("span", null, y(a.label), 1)
|
|
4819
|
-
], 8,
|
|
4816
|
+
], 8, vi))), 128))
|
|
4820
4817
|
])) : b("", !0),
|
|
4821
4818
|
G(l("textarea", {
|
|
4822
4819
|
ref: "inputEl",
|
|
@@ -4829,10 +4826,10 @@ function Mi(e, t, s, r, i, n) {
|
|
|
4829
4826
|
onInput: t[5] || (t[5] = (...a) => n.autosize && n.autosize(...a)),
|
|
4830
4827
|
onFocus: t[6] || (t[6] = (...a) => n.onFocus && n.onFocus(...a)),
|
|
4831
4828
|
onBlur: t[7] || (t[7] = (...a) => n.onBlur && n.onBlur(...a))
|
|
4832
|
-
}, null, 40,
|
|
4829
|
+
}, null, 40, ki), [
|
|
4833
4830
|
[ee, i.local]
|
|
4834
4831
|
]),
|
|
4835
|
-
l("div",
|
|
4832
|
+
l("div", Ci, [
|
|
4836
4833
|
l("button", {
|
|
4837
4834
|
type: "button",
|
|
4838
4835
|
class: R(["wm-compose__icon", { "is-open": i.attachOpen }]),
|
|
@@ -4856,7 +4853,7 @@ function Mi(e, t, s, r, i, n) {
|
|
|
4856
4853
|
}, [
|
|
4857
4854
|
l("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" })
|
|
4858
4855
|
], -1)
|
|
4859
|
-
])], 42,
|
|
4856
|
+
])], 42, Ai),
|
|
4860
4857
|
l("button", {
|
|
4861
4858
|
type: "submit",
|
|
4862
4859
|
class: R(["wm-compose__send", { "is-empty": !n.canSend }]),
|
|
@@ -4876,12 +4873,12 @@ function Mi(e, t, s, r, i, n) {
|
|
|
4876
4873
|
}, [
|
|
4877
4874
|
l("path", { d: "M22 2L11 13M22 2l-7 20-4-9-9-4 20-7z" })
|
|
4878
4875
|
], -1)
|
|
4879
|
-
])], 10,
|
|
4876
|
+
])], 10, Si)
|
|
4880
4877
|
])
|
|
4881
4878
|
], 34)
|
|
4882
4879
|
], 6);
|
|
4883
4880
|
}
|
|
4884
|
-
const
|
|
4881
|
+
const Mi = /* @__PURE__ */ F(fi, [["render", Ti], ["__scopeId", "data-v-a9738520"]]), xi = {
|
|
4885
4882
|
name: "WmInlineCallbacks",
|
|
4886
4883
|
props: {
|
|
4887
4884
|
// Array d'items `{ id?, label, style?, ... }`. Pour les suggestions,
|
|
@@ -4919,11 +4916,11 @@ const xi = /* @__PURE__ */ F(_i, [["render", Mi], ["__scopeId", "data-v-f641d642
|
|
|
4919
4916
|
return this.variant === "chips" ? "wm-icb__btn--chip" : ["wm-icb__btn--action", `wm-icb__btn--${(e == null ? void 0 : e.style) || "neutral"}`];
|
|
4920
4917
|
}
|
|
4921
4918
|
}
|
|
4922
|
-
},
|
|
4919
|
+
}, Oi = ["onClick"], Ri = {
|
|
4923
4920
|
key: 0,
|
|
4924
4921
|
class: "wm-icb__title"
|
|
4925
|
-
},
|
|
4926
|
-
function
|
|
4922
|
+
}, Li = { class: "wm-icb__row" }, Ii = ["onClick"];
|
|
4923
|
+
function Bi(e, t, s, r, i, n) {
|
|
4927
4924
|
return s.items.length ? (c(), d("div", {
|
|
4928
4925
|
key: n.batchKey,
|
|
4929
4926
|
class: R(["wm-icb", `wm-icb--${s.variant}`])
|
|
@@ -4932,24 +4929,24 @@ function Ei(e, t, s, r, i, n) {
|
|
|
4932
4929
|
key: a.id != null ? a.id : o,
|
|
4933
4930
|
type: "button",
|
|
4934
4931
|
class: "wm-icb__btn wm-icb__btn--chip",
|
|
4935
|
-
style:
|
|
4932
|
+
style: H({ animationDelay: s.baseDelay + o * s.stepDelay + "ms" }),
|
|
4936
4933
|
onClick: (f) => e.$emit("select", a)
|
|
4937
|
-
}, y(a.label), 13,
|
|
4938
|
-
n.headerTitle ? (c(), d("div",
|
|
4939
|
-
l("div",
|
|
4934
|
+
}, y(a.label), 13, Oi))), 128)) : (c(), d(B, { key: 1 }, [
|
|
4935
|
+
n.headerTitle ? (c(), d("div", Ri, y(n.headerTitle), 1)) : b("", !0),
|
|
4936
|
+
l("div", Li, [
|
|
4940
4937
|
(c(!0), d(B, null, D(s.items, (a, o) => (c(), d("button", {
|
|
4941
4938
|
key: a.id != null ? a.id : o,
|
|
4942
4939
|
type: "button",
|
|
4943
4940
|
class: R(["wm-icb__btn", n.btnClass(a)]),
|
|
4944
4941
|
onClick: (f) => e.$emit("select", a)
|
|
4945
|
-
}, y(a.label), 11,
|
|
4942
|
+
}, y(a.label), 11, Ii))), 128))
|
|
4946
4943
|
])
|
|
4947
4944
|
], 64))
|
|
4948
4945
|
], 2)) : b("", !0);
|
|
4949
4946
|
}
|
|
4950
|
-
const
|
|
4951
|
-
let
|
|
4952
|
-
const
|
|
4947
|
+
const Ei = /* @__PURE__ */ F(xi, [["render", Bi], ["__scopeId", "data-v-c8cc8cbf"]]);
|
|
4948
|
+
let He = 0;
|
|
4949
|
+
const Pi = /* @__PURE__ */ new Set([
|
|
4953
4950
|
"text",
|
|
4954
4951
|
"textarea",
|
|
4955
4952
|
"number",
|
|
@@ -4957,13 +4954,13 @@ const Fi = /* @__PURE__ */ new Set([
|
|
|
4957
4954
|
"select",
|
|
4958
4955
|
"multiselect",
|
|
4959
4956
|
"date"
|
|
4960
|
-
]),
|
|
4957
|
+
]), Fi = {
|
|
4961
4958
|
name: "WmFormCard",
|
|
4962
4959
|
components: { AIAvatar: me },
|
|
4963
4960
|
inject: {
|
|
4964
4961
|
// Translator shared by the Messenger shell; French fallback when
|
|
4965
4962
|
// the component is used standalone.
|
|
4966
|
-
t: { default: () =>
|
|
4963
|
+
t: { default: () => N() }
|
|
4967
4964
|
},
|
|
4968
4965
|
props: {
|
|
4969
4966
|
form: { type: Object, required: !0 },
|
|
@@ -4974,8 +4971,8 @@ const Fi = /* @__PURE__ */ new Set([
|
|
|
4974
4971
|
},
|
|
4975
4972
|
emits: ["submit"],
|
|
4976
4973
|
data() {
|
|
4977
|
-
return
|
|
4978
|
-
_uid:
|
|
4974
|
+
return He += 1, {
|
|
4975
|
+
_uid: He,
|
|
4979
4976
|
values: {},
|
|
4980
4977
|
busy: !1,
|
|
4981
4978
|
error: ""
|
|
@@ -4987,7 +4984,7 @@ const Fi = /* @__PURE__ */ new Set([
|
|
|
4987
4984
|
// douteux.
|
|
4988
4985
|
normalizedFields() {
|
|
4989
4986
|
var t;
|
|
4990
|
-
return (Array.isArray((t = this.form) == null ? void 0 : t.fields) ? this.form.fields : []).filter((s) => !(!(s != null && s.key) || !(s != null && s.label) || !
|
|
4987
|
+
return (Array.isArray((t = this.form) == null ? void 0 : t.fields) ? this.form.fields : []).filter((s) => !(!(s != null && s.key) || !(s != null && s.label) || !Pi.has(s == null ? void 0 : s.type) || (s.type === "select" || s.type === "multiselect") && (!Array.isArray(s.options) || s.options.length === 0)));
|
|
4991
4988
|
}
|
|
4992
4989
|
},
|
|
4993
4990
|
created() {
|
|
@@ -5040,37 +5037,37 @@ const Fi = /* @__PURE__ */ new Set([
|
|
|
5040
5037
|
}
|
|
5041
5038
|
}
|
|
5042
5039
|
}
|
|
5043
|
-
},
|
|
5040
|
+
}, Ui = { class: "wm-form" }, Di = { class: "wm-form__head" }, Hi = { class: "wm-form__icon" }, Ni = { class: "wm-form__main" }, ji = { class: "wm-form__title" }, zi = {
|
|
5044
5041
|
key: 0,
|
|
5045
5042
|
class: "wm-form__detail"
|
|
5046
|
-
},
|
|
5043
|
+
}, qi = ["for"], Vi = {
|
|
5047
5044
|
key: 0,
|
|
5048
5045
|
class: "wm-form__req",
|
|
5049
5046
|
"aria-hidden": "true"
|
|
5050
|
-
},
|
|
5047
|
+
}, Ki = ["id", "onUpdate:modelValue", "placeholder", "required", "disabled"], Wi = ["id", "onUpdate:modelValue", "placeholder", "required", "disabled"], $i = ["id", "onUpdate:modelValue", "placeholder", "required", "disabled"], Gi = ["id", "onUpdate:modelValue", "required", "disabled"], Yi = {
|
|
5051
5048
|
key: 4,
|
|
5052
5049
|
class: "wm-form__bool"
|
|
5053
|
-
},
|
|
5050
|
+
}, Ji = ["id", "onUpdate:modelValue", "disabled"], Xi = ["id", "onUpdate:modelValue", "required", "disabled"], Qi = {
|
|
5054
5051
|
value: "",
|
|
5055
5052
|
disabled: ""
|
|
5056
|
-
},
|
|
5053
|
+
}, Zi = ["value"], ea = {
|
|
5057
5054
|
key: 6,
|
|
5058
5055
|
class: "wm-form__multi"
|
|
5059
|
-
},
|
|
5056
|
+
}, ta = ["value", "checked", "disabled", "onChange"], na = {
|
|
5060
5057
|
key: 0,
|
|
5061
5058
|
class: "wm-form__err"
|
|
5062
|
-
},
|
|
5059
|
+
}, sa = ["disabled"], ra = {
|
|
5063
5060
|
key: 0,
|
|
5064
5061
|
class: "wm-form__spinner",
|
|
5065
5062
|
"aria-hidden": "true"
|
|
5066
|
-
},
|
|
5063
|
+
}, ia = {
|
|
5067
5064
|
key: 2,
|
|
5068
5065
|
class: "wm-form__doneLbl"
|
|
5069
5066
|
};
|
|
5070
|
-
function
|
|
5067
|
+
function aa(e, t, s, r, i, n) {
|
|
5071
5068
|
const a = P("AIAvatar");
|
|
5072
|
-
return c(), d("div",
|
|
5073
|
-
l("div",
|
|
5069
|
+
return c(), d("div", Ui, [
|
|
5070
|
+
l("div", Di, [
|
|
5074
5071
|
l("div", Hi, [
|
|
5075
5072
|
W(a, {
|
|
5076
5073
|
size: 24,
|
|
@@ -5078,9 +5075,9 @@ function oa(e, t, s, r, i, n) {
|
|
|
5078
5075
|
"image-url": s.agentAvatarUrl
|
|
5079
5076
|
}, null, 8, ["name", "image-url"])
|
|
5080
5077
|
]),
|
|
5081
|
-
l("div",
|
|
5082
|
-
l("div",
|
|
5083
|
-
s.form.description ? (c(), d("div",
|
|
5078
|
+
l("div", Ni, [
|
|
5079
|
+
l("div", ji, y(s.form.title || n.t("form.title")), 1),
|
|
5080
|
+
s.form.description ? (c(), d("div", zi, y(s.form.description), 1)) : b("", !0)
|
|
5084
5081
|
])
|
|
5085
5082
|
]),
|
|
5086
5083
|
l("form", {
|
|
@@ -5096,8 +5093,8 @@ function oa(e, t, s, r, i, n) {
|
|
|
5096
5093
|
class: "wm-form__label"
|
|
5097
5094
|
}, [
|
|
5098
5095
|
Me(y(o.label), 1),
|
|
5099
|
-
o.required ? (c(), d("span",
|
|
5100
|
-
], 8,
|
|
5096
|
+
o.required ? (c(), d("span", Vi, "*")) : b("", !0)
|
|
5097
|
+
], 8, qi),
|
|
5101
5098
|
o.type === "text" ? G((c(), d("input", {
|
|
5102
5099
|
key: 0,
|
|
5103
5100
|
id: `wm-f-${i._uid}-${o.key}`,
|
|
@@ -5107,7 +5104,7 @@ function oa(e, t, s, r, i, n) {
|
|
|
5107
5104
|
placeholder: o.placeholder || "",
|
|
5108
5105
|
required: o.required,
|
|
5109
5106
|
disabled: s.readOnly || i.busy
|
|
5110
|
-
}, null, 8,
|
|
5107
|
+
}, null, 8, Ki)), [
|
|
5111
5108
|
[ee, i.values[o.key]]
|
|
5112
5109
|
]) : o.type === "textarea" ? G((c(), d("textarea", {
|
|
5113
5110
|
key: 1,
|
|
@@ -5118,7 +5115,7 @@ function oa(e, t, s, r, i, n) {
|
|
|
5118
5115
|
placeholder: o.placeholder || "",
|
|
5119
5116
|
required: o.required,
|
|
5120
5117
|
disabled: s.readOnly || i.busy
|
|
5121
|
-
}, null, 8,
|
|
5118
|
+
}, null, 8, Wi)), [
|
|
5122
5119
|
[ee, i.values[o.key]]
|
|
5123
5120
|
]) : o.type === "number" ? G((c(), d("input", {
|
|
5124
5121
|
key: 2,
|
|
@@ -5129,7 +5126,7 @@ function oa(e, t, s, r, i, n) {
|
|
|
5129
5126
|
placeholder: o.placeholder || "",
|
|
5130
5127
|
required: o.required,
|
|
5131
5128
|
disabled: s.readOnly || i.busy
|
|
5132
|
-
}, null, 8,
|
|
5129
|
+
}, null, 8, $i)), [
|
|
5133
5130
|
[
|
|
5134
5131
|
ee,
|
|
5135
5132
|
i.values[o.key],
|
|
@@ -5144,15 +5141,15 @@ function oa(e, t, s, r, i, n) {
|
|
|
5144
5141
|
class: "wm-form__input",
|
|
5145
5142
|
required: o.required,
|
|
5146
5143
|
disabled: s.readOnly || i.busy
|
|
5147
|
-
}, null, 8,
|
|
5144
|
+
}, null, 8, Gi)), [
|
|
5148
5145
|
[ee, i.values[o.key]]
|
|
5149
|
-
]) : o.type === "boolean" ? (c(), d("label",
|
|
5146
|
+
]) : o.type === "boolean" ? (c(), d("label", Yi, [
|
|
5150
5147
|
G(l("input", {
|
|
5151
5148
|
id: `wm-f-${i._uid}-${o.key}`,
|
|
5152
5149
|
"onUpdate:modelValue": (f) => i.values[o.key] = f,
|
|
5153
5150
|
type: "checkbox",
|
|
5154
5151
|
disabled: s.readOnly || i.busy
|
|
5155
|
-
}, null, 8,
|
|
5152
|
+
}, null, 8, Ji), [
|
|
5156
5153
|
[Ge, i.values[o.key]]
|
|
5157
5154
|
]),
|
|
5158
5155
|
l("span", null, y(o.placeholder || n.t("common.yes")), 1)
|
|
@@ -5164,14 +5161,14 @@ function oa(e, t, s, r, i, n) {
|
|
|
5164
5161
|
required: o.required,
|
|
5165
5162
|
disabled: s.readOnly || i.busy
|
|
5166
5163
|
}, [
|
|
5167
|
-
l("option",
|
|
5164
|
+
l("option", Qi, y(o.placeholder || n.t("form.choose")), 1),
|
|
5168
5165
|
(c(!0), d(B, null, D(o.options, (f) => (c(), d("option", {
|
|
5169
5166
|
key: f.value,
|
|
5170
5167
|
value: f.value
|
|
5171
|
-
}, y(f.label), 9,
|
|
5172
|
-
], 8,
|
|
5168
|
+
}, y(f.label), 9, Zi))), 128))
|
|
5169
|
+
], 8, Xi)), [
|
|
5173
5170
|
[Ye, i.values[o.key]]
|
|
5174
|
-
]) : o.type === "multiselect" ? (c(), d("div",
|
|
5171
|
+
]) : o.type === "multiselect" ? (c(), d("div", ea, [
|
|
5175
5172
|
(c(!0), d(B, null, D(o.options, (f) => (c(), d("label", {
|
|
5176
5173
|
key: f.value,
|
|
5177
5174
|
class: "wm-form__multiItem"
|
|
@@ -5186,30 +5183,30 @@ function oa(e, t, s, r, i, n) {
|
|
|
5186
5183
|
f.value,
|
|
5187
5184
|
k.target.checked
|
|
5188
5185
|
)
|
|
5189
|
-
}, null, 40,
|
|
5186
|
+
}, null, 40, ta),
|
|
5190
5187
|
l("span", null, y(f.label), 1)
|
|
5191
5188
|
]))), 128))
|
|
5192
5189
|
])) : b("", !0)
|
|
5193
5190
|
]))), 128)),
|
|
5194
|
-
i.error ? (c(), d("div",
|
|
5195
|
-
s.readOnly ? (c(), d("div",
|
|
5191
|
+
i.error ? (c(), d("div", na, y(i.error), 1)) : b("", !0),
|
|
5192
|
+
s.readOnly ? (c(), d("div", ia, y(n.t("form.responseSent")), 1)) : (c(), d("button", {
|
|
5196
5193
|
key: 1,
|
|
5197
5194
|
type: "submit",
|
|
5198
5195
|
class: "wm-form__submit",
|
|
5199
5196
|
disabled: i.busy
|
|
5200
5197
|
}, [
|
|
5201
|
-
i.busy ? (c(), d("span",
|
|
5198
|
+
i.busy ? (c(), d("span", ra)) : b("", !0),
|
|
5202
5199
|
l("span", null, y(i.busy ? n.t("common.sending") : s.form.submit_label || n.t("common.send")), 1)
|
|
5203
|
-
], 8,
|
|
5200
|
+
], 8, sa))
|
|
5204
5201
|
], 32)
|
|
5205
5202
|
]);
|
|
5206
5203
|
}
|
|
5207
|
-
const
|
|
5204
|
+
const oa = /* @__PURE__ */ F(Fi, [["render", aa], ["__scopeId", "data-v-fe65cc56"]]), la = {
|
|
5208
5205
|
name: "WmFeedback",
|
|
5209
5206
|
inject: {
|
|
5210
5207
|
// Translator shared by the Messenger shell; French fallback when
|
|
5211
5208
|
// the component is used standalone.
|
|
5212
|
-
t: { default: () =>
|
|
5209
|
+
t: { default: () => N() }
|
|
5213
5210
|
},
|
|
5214
5211
|
props: {
|
|
5215
5212
|
busy: { type: Boolean, default: !1 },
|
|
@@ -5238,13 +5235,13 @@ const la = /* @__PURE__ */ F(Ui, [["render", oa], ["__scopeId", "data-v-fe65cc56
|
|
|
5238
5235
|
!this.sel || this.busy || this.$emit("submit", { rating: this.sel });
|
|
5239
5236
|
}
|
|
5240
5237
|
}
|
|
5241
|
-
},
|
|
5238
|
+
}, ca = { class: "wm-fb" }, da = { class: "wm-fb__title" }, ua = { class: "wm-fb__sub" }, ha = { class: "wm-fb__row" }, ma = ["onClick"], fa = { class: "wm-fb__emoji" }, _a = { class: "wm-fb__label" }, ga = ["disabled"], ya = {
|
|
5242
5239
|
key: 1,
|
|
5243
5240
|
class: "wm-fb__done"
|
|
5244
|
-
},
|
|
5245
|
-
function
|
|
5246
|
-
return c(), d("div",
|
|
5247
|
-
s.done ? (c(), d("div",
|
|
5241
|
+
}, va = { class: "wm-fb__doneTitle" }, pa = { class: "wm-fb__doneSub" };
|
|
5242
|
+
function wa(e, t, s, r, i, n) {
|
|
5243
|
+
return c(), d("div", ca, [
|
|
5244
|
+
s.done ? (c(), d("div", ya, [
|
|
5248
5245
|
t[1] || (t[1] = l("div", { class: "wm-fb__check" }, [
|
|
5249
5246
|
l("svg", {
|
|
5250
5247
|
width: "16",
|
|
@@ -5260,37 +5257,37 @@ function ba(e, t, s, r, i, n) {
|
|
|
5260
5257
|
l("path", { d: "M20 6L9 17l-5-5" })
|
|
5261
5258
|
])
|
|
5262
5259
|
], -1)),
|
|
5263
|
-
l("div",
|
|
5264
|
-
l("div",
|
|
5260
|
+
l("div", va, y(n.t("feedback.doneTitle")), 1),
|
|
5261
|
+
l("div", pa, y(n.t("feedback.doneSubtitle")), 1)
|
|
5265
5262
|
])) : (c(), d(B, { key: 0 }, [
|
|
5266
|
-
l("div",
|
|
5267
|
-
l("div",
|
|
5268
|
-
l("div",
|
|
5263
|
+
l("div", da, y(n.t("feedback.question")), 1),
|
|
5264
|
+
l("div", ua, y(n.t("feedback.subtitle")), 1),
|
|
5265
|
+
l("div", ha, [
|
|
5269
5266
|
(c(!0), d(B, null, D(n.options, (a) => (c(), d("button", {
|
|
5270
5267
|
key: a.v,
|
|
5271
5268
|
type: "button",
|
|
5272
5269
|
class: R(["wm-fb__opt", { "is-selected": i.sel === a.v }]),
|
|
5273
5270
|
onClick: (o) => i.sel = a.v
|
|
5274
5271
|
}, [
|
|
5275
|
-
l("span",
|
|
5276
|
-
l("span",
|
|
5277
|
-
], 10,
|
|
5272
|
+
l("span", fa, y(a.e), 1),
|
|
5273
|
+
l("span", _a, y(a.l), 1)
|
|
5274
|
+
], 10, ma))), 128))
|
|
5278
5275
|
]),
|
|
5279
5276
|
l("button", {
|
|
5280
5277
|
type: "button",
|
|
5281
5278
|
class: "wm-fb__send",
|
|
5282
5279
|
disabled: !i.sel || s.busy,
|
|
5283
5280
|
onClick: t[0] || (t[0] = (...a) => n.onSend && n.onSend(...a))
|
|
5284
|
-
}, y(s.busy ? n.t("common.sending") : n.t("feedback.submit")), 9,
|
|
5281
|
+
}, y(s.busy ? n.t("common.sending") : n.t("feedback.submit")), 9, ga)
|
|
5285
5282
|
], 64))
|
|
5286
5283
|
]);
|
|
5287
5284
|
}
|
|
5288
|
-
const
|
|
5285
|
+
const ba = /* @__PURE__ */ F(la, [["render", wa], ["__scopeId", "data-v-9b630564"]]), ka = {
|
|
5289
5286
|
name: "WmMoreMenu",
|
|
5290
5287
|
inject: {
|
|
5291
5288
|
// Translator shared by the Messenger shell; French fallback when
|
|
5292
5289
|
// the component is used standalone.
|
|
5293
|
-
t: { default: () =>
|
|
5290
|
+
t: { default: () => N() }
|
|
5294
5291
|
},
|
|
5295
5292
|
props: {
|
|
5296
5293
|
canRename: { type: Boolean, default: !0 },
|
|
@@ -5320,24 +5317,24 @@ const ka = /* @__PURE__ */ F(ca, [["render", ba], ["__scopeId", "data-v-9b630564
|
|
|
5320
5317
|
this.soundOn = !this.soundOn, this.$emit("sound-toggle", this.soundOn);
|
|
5321
5318
|
}
|
|
5322
5319
|
}
|
|
5323
|
-
},
|
|
5320
|
+
}, Ca = { class: "wm-mm" }, Aa = {
|
|
5324
5321
|
class: "wm-mm__pop",
|
|
5325
5322
|
role: "menu"
|
|
5326
|
-
},
|
|
5323
|
+
}, Sa = {
|
|
5327
5324
|
key: 0,
|
|
5328
5325
|
class: "wm-mm__section"
|
|
5329
|
-
},
|
|
5326
|
+
}, Ta = { class: "wm-mm__label" }, Ma = { class: "wm-mm__label" }, xa = {
|
|
5330
5327
|
key: 1,
|
|
5331
5328
|
class: "wm-mm__sep"
|
|
5332
|
-
},
|
|
5333
|
-
function
|
|
5334
|
-
return c(), d("div",
|
|
5329
|
+
}, Oa = { class: "wm-mm__section" }, Ra = { class: "wm-mm__label" }, La = { class: "wm-mm__section" }, Ia = { class: "wm-mm__label" }, Ba = { class: "wm-mm__label" };
|
|
5330
|
+
function Ea(e, t, s, r, i, n) {
|
|
5331
|
+
return c(), d("div", Ca, [
|
|
5335
5332
|
l("div", {
|
|
5336
5333
|
class: "wm-mm__scrim",
|
|
5337
5334
|
onClick: t[0] || (t[0] = (a) => e.$emit("close"))
|
|
5338
5335
|
}),
|
|
5339
|
-
l("div",
|
|
5340
|
-
s.canRename || s.canExport ? (c(), d("div",
|
|
5336
|
+
l("div", Aa, [
|
|
5337
|
+
s.canRename || s.canExport ? (c(), d("div", Sa, [
|
|
5341
5338
|
s.canRename ? (c(), d("button", {
|
|
5342
5339
|
key: 0,
|
|
5343
5340
|
type: "button",
|
|
@@ -5360,7 +5357,7 @@ function Pa(e, t, s, r, i, n) {
|
|
|
5360
5357
|
l("path", { d: "M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4 12.5-12.5z" })
|
|
5361
5358
|
])
|
|
5362
5359
|
], -1)),
|
|
5363
|
-
l("span",
|
|
5360
|
+
l("span", Ta, y(n.t("moreMenu.editTitle")), 1)
|
|
5364
5361
|
])) : b("", !0),
|
|
5365
5362
|
s.canExport ? (c(), d("button", {
|
|
5366
5363
|
key: 1,
|
|
@@ -5383,12 +5380,12 @@ function Pa(e, t, s, r, i, n) {
|
|
|
5383
5380
|
l("path", { d: "M4 12v8a2 2 0 002 2h12a2 2 0 002-2v-8M16 6l-4-4-4 4M12 2v13" })
|
|
5384
5381
|
])
|
|
5385
5382
|
], -1)),
|
|
5386
|
-
l("span",
|
|
5383
|
+
l("span", Ma, y(n.t("moreMenu.exportTranscript")), 1),
|
|
5387
5384
|
t[8] || (t[8] = l("span", { class: "wm-mm__hint" }, ".txt", -1))
|
|
5388
5385
|
])) : b("", !0)
|
|
5389
5386
|
])) : b("", !0),
|
|
5390
|
-
s.canRename || s.canExport ? (c(), d("div",
|
|
5391
|
-
l("div",
|
|
5387
|
+
s.canRename || s.canExport ? (c(), d("div", xa)) : b("", !0),
|
|
5388
|
+
l("div", Oa, [
|
|
5392
5389
|
l("button", {
|
|
5393
5390
|
type: "button",
|
|
5394
5391
|
class: "wm-mm__item",
|
|
@@ -5410,7 +5407,7 @@ function Pa(e, t, s, r, i, n) {
|
|
|
5410
5407
|
l("path", { d: "M15.54 8.46a5 5 0 010 7.07M19.07 4.93a10 10 0 010 14.14" })
|
|
5411
5408
|
])
|
|
5412
5409
|
], -1)),
|
|
5413
|
-
l("span",
|
|
5410
|
+
l("span", Ra, y(n.t("moreMenu.sound")), 1),
|
|
5414
5411
|
l("span", {
|
|
5415
5412
|
class: R(["wm-mm__toggle", { "wm-mm__toggle--on": i.soundOn }])
|
|
5416
5413
|
}, [...t[9] || (t[9] = [
|
|
@@ -5419,7 +5416,7 @@ function Pa(e, t, s, r, i, n) {
|
|
|
5419
5416
|
])
|
|
5420
5417
|
]),
|
|
5421
5418
|
t[13] || (t[13] = l("div", { class: "wm-mm__sep" }, null, -1)),
|
|
5422
|
-
l("div",
|
|
5419
|
+
l("div", La, [
|
|
5423
5420
|
s.statusUrl ? (c(), d("button", {
|
|
5424
5421
|
key: 0,
|
|
5425
5422
|
type: "button",
|
|
@@ -5441,7 +5438,7 @@ function Pa(e, t, s, r, i, n) {
|
|
|
5441
5438
|
l("path", { d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zM10 6v4l3 2" })
|
|
5442
5439
|
])
|
|
5443
5440
|
], -1)),
|
|
5444
|
-
l("span",
|
|
5441
|
+
l("span", Ia, y(n.t("moreMenu.serviceStatus")), 1)
|
|
5445
5442
|
])) : b("", !0),
|
|
5446
5443
|
s.helpUrl ? (c(), d("button", {
|
|
5447
5444
|
key: 1,
|
|
@@ -5464,18 +5461,18 @@ function Pa(e, t, s, r, i, n) {
|
|
|
5464
5461
|
l("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" })
|
|
5465
5462
|
])
|
|
5466
5463
|
], -1)),
|
|
5467
|
-
l("span",
|
|
5464
|
+
l("span", Ba, y(n.t("moreMenu.helpCenter")), 1)
|
|
5468
5465
|
])) : b("", !0)
|
|
5469
5466
|
])
|
|
5470
5467
|
])
|
|
5471
5468
|
]);
|
|
5472
5469
|
}
|
|
5473
|
-
const
|
|
5470
|
+
const Pa = /* @__PURE__ */ F(ka, [["render", Ea], ["__scopeId", "data-v-4cf6d578"]]), Fa = {
|
|
5474
5471
|
name: "WmRenameDialog",
|
|
5475
5472
|
inject: {
|
|
5476
5473
|
// Translator shared by the Messenger shell; French fallback when
|
|
5477
5474
|
// the component is used standalone.
|
|
5478
|
-
t: { default: () =>
|
|
5475
|
+
t: { default: () => N() }
|
|
5479
5476
|
},
|
|
5480
5477
|
props: {
|
|
5481
5478
|
// Empty defaults: the resolved fallback comes from the translator
|
|
@@ -5512,20 +5509,20 @@ const Fa = /* @__PURE__ */ F(Ca, [["render", Pa], ["__scopeId", "data-v-4cf6d578
|
|
|
5512
5509
|
this.canSubmit && this.$emit("submit", this.value.trim());
|
|
5513
5510
|
}
|
|
5514
5511
|
}
|
|
5515
|
-
},
|
|
5512
|
+
}, Ua = { class: "wm-dialog" }, Da = {
|
|
5516
5513
|
class: "wm-dialog__card",
|
|
5517
5514
|
role: "dialog",
|
|
5518
5515
|
"aria-modal": "true"
|
|
5519
|
-
}, Ha = { class: "wm-dialog__head" },
|
|
5520
|
-
function
|
|
5521
|
-
return c(), d("div",
|
|
5516
|
+
}, Ha = { class: "wm-dialog__head" }, Na = { class: "wm-dialog__title" }, ja = ["aria-label"], za = { class: "wm-dialog__body" }, qa = ["placeholder"], Va = { class: "wm-dialog__actions" }, Ka = ["disabled"];
|
|
5517
|
+
function Wa(e, t, s, r, i, n) {
|
|
5518
|
+
return c(), d("div", Ua, [
|
|
5522
5519
|
l("div", {
|
|
5523
5520
|
class: "wm-dialog__scrim",
|
|
5524
5521
|
onClick: t[0] || (t[0] = (a) => e.$emit("close"))
|
|
5525
5522
|
}),
|
|
5526
|
-
l("div",
|
|
5523
|
+
l("div", Da, [
|
|
5527
5524
|
l("div", Ha, [
|
|
5528
|
-
l("div",
|
|
5525
|
+
l("div", Na, y(s.title || n.t("rename.title")), 1),
|
|
5529
5526
|
l("button", {
|
|
5530
5527
|
type: "button",
|
|
5531
5528
|
class: "wm-dialog__close",
|
|
@@ -5545,9 +5542,9 @@ function $a(e, t, s, r, i, n) {
|
|
|
5545
5542
|
}, [
|
|
5546
5543
|
l("path", { d: "M18 6L6 18M6 6l12 12" })
|
|
5547
5544
|
], -1)
|
|
5548
|
-
])], 8,
|
|
5545
|
+
])], 8, ja)
|
|
5549
5546
|
]),
|
|
5550
|
-
l("div",
|
|
5547
|
+
l("div", za, [
|
|
5551
5548
|
G(l("input", {
|
|
5552
5549
|
ref: "input",
|
|
5553
5550
|
"onUpdate:modelValue": t[2] || (t[2] = (a) => i.value = a),
|
|
@@ -5559,11 +5556,11 @@ function $a(e, t, s, r, i, n) {
|
|
|
5559
5556
|
t[3] || (t[3] = _e(K((...a) => n.onSubmit && n.onSubmit(...a), ["prevent"]), ["enter"])),
|
|
5560
5557
|
t[4] || (t[4] = _e(K((a) => e.$emit("close"), ["prevent"]), ["esc"]))
|
|
5561
5558
|
]
|
|
5562
|
-
}, null, 40,
|
|
5559
|
+
}, null, 40, qa), [
|
|
5563
5560
|
[ee, i.value]
|
|
5564
5561
|
])
|
|
5565
5562
|
]),
|
|
5566
|
-
l("div",
|
|
5563
|
+
l("div", Va, [
|
|
5567
5564
|
l("button", {
|
|
5568
5565
|
type: "button",
|
|
5569
5566
|
class: "wm-dialog__btn",
|
|
@@ -5574,12 +5571,12 @@ function $a(e, t, s, r, i, n) {
|
|
|
5574
5571
|
class: "wm-dialog__btn wm-dialog__btn--primary",
|
|
5575
5572
|
disabled: !n.canSubmit,
|
|
5576
5573
|
onClick: t[6] || (t[6] = (...a) => n.onSubmit && n.onSubmit(...a))
|
|
5577
|
-
}, y(n.t("common.save")), 9,
|
|
5574
|
+
}, y(n.t("common.save")), 9, Ka)
|
|
5578
5575
|
])
|
|
5579
5576
|
])
|
|
5580
5577
|
]);
|
|
5581
5578
|
}
|
|
5582
|
-
const
|
|
5579
|
+
const $a = /* @__PURE__ */ F(Fa, [["render", Wa], ["__scopeId", "data-v-6d5f94a8"]]), Ne = "ww-messenger-tokens", Ga = {
|
|
5583
5580
|
name: "Messenger",
|
|
5584
5581
|
components: {
|
|
5585
5582
|
Launcher: qt,
|
|
@@ -5587,12 +5584,12 @@ const Ga = /* @__PURE__ */ F(Ua, [["render", $a], ["__scopeId", "data-v-6d5f94a8
|
|
|
5587
5584
|
Onboarding: es,
|
|
5588
5585
|
History: gs,
|
|
5589
5586
|
MessageList: li,
|
|
5590
|
-
Composer:
|
|
5591
|
-
InlineCallbacks:
|
|
5592
|
-
FormCard:
|
|
5593
|
-
Feedback:
|
|
5594
|
-
MoreMenu:
|
|
5595
|
-
RenameDialog:
|
|
5587
|
+
Composer: Mi,
|
|
5588
|
+
InlineCallbacks: Ei,
|
|
5589
|
+
FormCard: oa,
|
|
5590
|
+
Feedback: ba,
|
|
5591
|
+
MoreMenu: Pa,
|
|
5592
|
+
RenameDialog: $a
|
|
5596
5593
|
},
|
|
5597
5594
|
mixins: [
|
|
5598
5595
|
wt,
|
|
@@ -5733,6 +5730,11 @@ const Ga = /* @__PURE__ */ F(Ua, [["render", $a], ["__scopeId", "data-v-6d5f94a8
|
|
|
5733
5730
|
// landing behind it.
|
|
5734
5731
|
floatHeight: 0,
|
|
5735
5732
|
floatRO: null,
|
|
5733
|
+
// Mobile : décalage vertical du visual viewport quand le clavier
|
|
5734
|
+
// pousse la zone visible vers le bas. Sert à ré-épingler le header
|
|
5735
|
+
// au haut de la zone réellement visible (cf. Messenger.css). 0 = pas
|
|
5736
|
+
// de clavier / desktop.
|
|
5737
|
+
kbTop: 0,
|
|
5736
5738
|
// Credentials reçues du parent via postMessage `INIT`. `origin`
|
|
5737
5739
|
// est l'origine top-level du site marchand ; `token` est le JWT
|
|
5738
5740
|
// linked one-shot optionnel. Tant que ces deux ne sont pas
|
|
@@ -5789,7 +5791,7 @@ const Ga = /* @__PURE__ */ F(Ua, [["render", $a], ["__scopeId", "data-v-6d5f94a8
|
|
|
5789
5791
|
// `locale` changes. `t()` below (and the provided closure) delegate
|
|
5790
5792
|
// to it so every string resolves against the current language.
|
|
5791
5793
|
translator() {
|
|
5792
|
-
return
|
|
5794
|
+
return N(this.locale);
|
|
5793
5795
|
},
|
|
5794
5796
|
error() {
|
|
5795
5797
|
var e;
|
|
@@ -6299,14 +6301,14 @@ const Ga = /* @__PURE__ */ F(Ua, [["render", $a], ["__scopeId", "data-v-6d5f94a8
|
|
|
6299
6301
|
}
|
|
6300
6302
|
},
|
|
6301
6303
|
async mounted() {
|
|
6302
|
-
if (typeof document < "u" && !document.getElementById(
|
|
6304
|
+
if (typeof document < "u" && !document.getElementById(Ne)) {
|
|
6303
6305
|
const e = document.createElement("style");
|
|
6304
|
-
e.id =
|
|
6306
|
+
e.id = Ne, e.textContent = at, document.head.appendChild(e);
|
|
6305
6307
|
}
|
|
6306
|
-
this._parentMessageHandler = this.onParentMessage.bind(this), window.addEventListener("message", this._parentMessageHandler), window.parent && window.parent !== window && window.parent.postMessage({ type: "READY" }, "*"), this.isEmbedded ? (await this.boot(), this.store && await this.open()) : (await this.$nextTick(), this.sendCurrentLauncherSize(), this.observeLauncherSize());
|
|
6308
|
+
this._parentMessageHandler = this.onParentMessage.bind(this), window.addEventListener("message", this._parentMessageHandler), window.parent && window.parent !== window && window.parent.postMessage({ type: "READY" }, "*"), this.setupHeaderPin(), this.isEmbedded ? (await this.boot(), this.store && await this.open()) : (await this.$nextTick(), this.sendCurrentLauncherSize(), this.observeLauncherSize());
|
|
6307
6309
|
},
|
|
6308
6310
|
beforeUnmount() {
|
|
6309
|
-
this._parentMessageHandler && (window.removeEventListener("message", this._parentMessageHandler), this._parentMessageHandler = null), this._launcherRo && (this._launcherRo.disconnect(), this._launcherRo = null), this.cancelReveals(), this.cancelWelcomeTimers(), this.teardownLiveReveal(), this.disconnectFloatRO(), this.teardownNotifications(), this.store && this.store.destroy();
|
|
6311
|
+
this._parentMessageHandler && (window.removeEventListener("message", this._parentMessageHandler), this._parentMessageHandler = null), this._launcherRo && (this._launcherRo.disconnect(), this._launcherRo = null), this.teardownHeaderPin(), this.cancelReveals(), this.cancelWelcomeTimers(), this.teardownLiveReveal(), this.disconnectFloatRO(), this.teardownNotifications(), this.store && this.store.destroy();
|
|
6310
6312
|
},
|
|
6311
6313
|
methods: {
|
|
6312
6314
|
// Statut effectif d'une conversation : le `conversation_status`
|
|
@@ -6458,6 +6460,19 @@ const Ga = /* @__PURE__ */ F(Ua, [["render", $a], ["__scopeId", "data-v-6d5f94a8
|
|
|
6458
6460
|
async close() {
|
|
6459
6461
|
this.isOpen = !1, await this.$nextTick(), this.sendCurrentLauncherSize(), this.observeLauncherSize(), this.store && this.store.setPanelOpen(!1);
|
|
6460
6462
|
},
|
|
6463
|
+
// Suit visualViewport.offsetTop (clavier mobile) → kbTop, consommé par
|
|
6464
|
+
// `.wm-header` (translateY) pour rester épinglé en haut de la zone
|
|
6465
|
+
// visible. Gated mobile : sur desktop offsetTop reste 0, inutile.
|
|
6466
|
+
setupHeaderPin() {
|
|
6467
|
+
const e = window.visualViewport;
|
|
6468
|
+
!e || !(typeof window.matchMedia == "function" && window.matchMedia("(hover: none) and (pointer: coarse)").matches) || (this._headerPinHandler = () => {
|
|
6469
|
+
this.kbTop = Math.max(0, Math.round(e.offsetTop));
|
|
6470
|
+
}, e.addEventListener("resize", this._headerPinHandler), e.addEventListener("scroll", this._headerPinHandler));
|
|
6471
|
+
},
|
|
6472
|
+
teardownHeaderPin() {
|
|
6473
|
+
const e = window.visualViewport;
|
|
6474
|
+
!e || !this._headerPinHandler || (e.removeEventListener("resize", this._headerPinHandler), e.removeEventListener("scroll", this._headerPinHandler), this._headerPinHandler = null);
|
|
6475
|
+
},
|
|
6461
6476
|
notifyParentResize(e, t) {
|
|
6462
6477
|
if (window.parent && window.parent !== window)
|
|
6463
6478
|
try {
|
|
@@ -6899,46 +6914,46 @@ const Ga = /* @__PURE__ */ F(Ua, [["render", $a], ["__scopeId", "data-v-6d5f94a8
|
|
|
6899
6914
|
}
|
|
6900
6915
|
}
|
|
6901
6916
|
}
|
|
6902
|
-
},
|
|
6917
|
+
}, Ya = {
|
|
6903
6918
|
key: 0,
|
|
6904
6919
|
class: "wm-loading",
|
|
6905
6920
|
"aria-busy": "true",
|
|
6906
6921
|
"aria-live": "polite"
|
|
6907
|
-
},
|
|
6922
|
+
}, Ja = ["aria-label"], Xa = { class: "wm-screens" }, Qa = {
|
|
6908
6923
|
key: "error",
|
|
6909
6924
|
class: "wm-screen wm-state"
|
|
6910
|
-
},
|
|
6925
|
+
}, Za = { class: "wm-state__err" }, eo = { class: "wm-state__errTitle" }, to = { class: "wm-state__errSub" }, no = {
|
|
6911
6926
|
key: "chat",
|
|
6912
6927
|
class: "wm-screen wm-screen--chat"
|
|
6913
|
-
},
|
|
6928
|
+
}, so = { class: "wm-bottom" }, ro = {
|
|
6914
6929
|
key: 0,
|
|
6915
6930
|
ref: "floatEl",
|
|
6916
6931
|
class: "wm-float"
|
|
6917
|
-
},
|
|
6932
|
+
}, io = {
|
|
6918
6933
|
key: 1,
|
|
6919
6934
|
class: "wm-actionWait",
|
|
6920
6935
|
role: "status",
|
|
6921
6936
|
"aria-live": "polite"
|
|
6922
|
-
},
|
|
6937
|
+
}, ao = { class: "wm-actionWait__lbl" }, oo = {
|
|
6923
6938
|
key: 2,
|
|
6924
6939
|
class: "wm-attached"
|
|
6925
|
-
},
|
|
6940
|
+
}, lo = ["src", "alt"], co = {
|
|
6926
6941
|
key: 1,
|
|
6927
6942
|
class: "wm-attached__file"
|
|
6928
|
-
},
|
|
6943
|
+
}, uo = { class: "wm-attached__fileMeta" }, ho = { class: "wm-attached__fileName" }, mo = {
|
|
6929
6944
|
key: 0,
|
|
6930
6945
|
class: "wm-attached__fileSize"
|
|
6931
|
-
},
|
|
6946
|
+
}, fo = ["aria-label", "onClick"], _o = {
|
|
6932
6947
|
key: 3,
|
|
6933
6948
|
class: "wm-ended",
|
|
6934
6949
|
role: "status",
|
|
6935
6950
|
"aria-live": "polite"
|
|
6936
|
-
},
|
|
6937
|
-
function
|
|
6951
|
+
}, go = { class: "wm-ended__lbl" };
|
|
6952
|
+
function yo(e, t, s, r, i, n) {
|
|
6938
6953
|
const a = P("Launcher"), o = P("Header"), f = P("History"), k = P("Onboarding"), v = P("MessageList"), T = P("InlineCallbacks"), I = P("FormCard"), S = P("Feedback"), z = P("Composer"), M = P("MoreMenu"), U = P("RenameDialog");
|
|
6939
6954
|
return c(), d("div", {
|
|
6940
6955
|
class: R(["wm-root", `wm-root--${s.displayMode}`]),
|
|
6941
|
-
style:
|
|
6956
|
+
style: H(n.rootStyle)
|
|
6942
6957
|
}, [
|
|
6943
6958
|
!i.isOpen && !n.isEmbedded ? (c(), E(a, {
|
|
6944
6959
|
key: 0,
|
|
@@ -6956,12 +6971,15 @@ function vo(e, t, s, r, i, n) {
|
|
|
6956
6971
|
{ "wm-panel--welcome": n.ready && !n.error && !n.currentConv },
|
|
6957
6972
|
i.launching ? `wm-launch-${i.launchStage}` : ""
|
|
6958
6973
|
]),
|
|
6959
|
-
style:
|
|
6974
|
+
style: H({
|
|
6975
|
+
...i.floatHeight ? { "--wm-float-h": i.floatHeight + "px" } : null,
|
|
6976
|
+
"--wm-kb-top": i.kbTop + "px"
|
|
6977
|
+
}),
|
|
6960
6978
|
role: "dialog",
|
|
6961
6979
|
"aria-label": "Messenger",
|
|
6962
6980
|
onClick: t[7] || (t[7] = (...x) => n.onPanelClick && n.onPanelClick(...x))
|
|
6963
6981
|
}, [
|
|
6964
|
-
!n.ready && !n.error ? (c(), d("div",
|
|
6982
|
+
!n.ready && !n.error ? (c(), d("div", Ya, [
|
|
6965
6983
|
n.isEmbedded ? b("", !0) : (c(), d("button", {
|
|
6966
6984
|
key: 0,
|
|
6967
6985
|
type: "button",
|
|
@@ -6982,7 +7000,7 @@ function vo(e, t, s, r, i, n) {
|
|
|
6982
7000
|
}, [
|
|
6983
7001
|
l("path", { d: "M18 6L6 18M6 6l12 12" })
|
|
6984
7002
|
], -1)
|
|
6985
|
-
])], 8,
|
|
7003
|
+
])], 8, Ja)),
|
|
6986
7004
|
t[9] || (t[9] = l("div", {
|
|
6987
7005
|
class: "wm-loading__spinner",
|
|
6988
7006
|
"aria-hidden": "true"
|
|
@@ -7002,11 +7020,11 @@ function vo(e, t, s, r, i, n) {
|
|
|
7002
7020
|
onMore: n.toggleMore,
|
|
7003
7021
|
onClose: n.close
|
|
7004
7022
|
}, null, 8, ["title", "team-members", "response-label", "show-identity", "show-back", "show-close", "more-active", "agent-name", "agent-avatar-url", "onBack", "onMore", "onClose"]),
|
|
7005
|
-
l("div",
|
|
7023
|
+
l("div", Xa, [
|
|
7006
7024
|
W(Ae, { name: "wm-none" }, {
|
|
7007
7025
|
default: Se(() => [
|
|
7008
|
-
n.error ? (c(), d("div",
|
|
7009
|
-
l("div",
|
|
7026
|
+
n.error ? (c(), d("div", Qa, [
|
|
7027
|
+
l("div", Za, [
|
|
7010
7028
|
t[10] || (t[10] = l("div", { class: "wm-state__errIcon" }, [
|
|
7011
7029
|
l("svg", {
|
|
7012
7030
|
width: "14",
|
|
@@ -7023,8 +7041,8 @@ function vo(e, t, s, r, i, n) {
|
|
|
7023
7041
|
])
|
|
7024
7042
|
], -1)),
|
|
7025
7043
|
l("div", null, [
|
|
7026
|
-
l("div",
|
|
7027
|
-
l("div",
|
|
7044
|
+
l("div", eo, y(n.t("error.connectionFailed")), 1),
|
|
7045
|
+
l("div", to, y(n.error), 1)
|
|
7028
7046
|
])
|
|
7029
7047
|
])
|
|
7030
7048
|
])) : !n.currentConv && i.showHistory ? (c(), E(f, {
|
|
@@ -7032,7 +7050,7 @@ function vo(e, t, s, r, i, n) {
|
|
|
7032
7050
|
class: "wm-screen",
|
|
7033
7051
|
threads: n.openThreads,
|
|
7034
7052
|
onResume: n.onDrawerPick
|
|
7035
|
-
}, null, 8, ["threads", "onResume"])) : n.currentConv ? (c(), d("div",
|
|
7053
|
+
}, null, 8, ["threads", "onResume"])) : n.currentConv ? (c(), d("div", no, [
|
|
7036
7054
|
W(v, {
|
|
7037
7055
|
ref: "messageList",
|
|
7038
7056
|
messages: n.displayedMessages,
|
|
@@ -7047,8 +7065,8 @@ function vo(e, t, s, r, i, n) {
|
|
|
7047
7065
|
"ai-agent-avatar-url": n.agentAvatarUrl,
|
|
7048
7066
|
onLoadMore: n.onLoadMore
|
|
7049
7067
|
}, 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"]),
|
|
7050
|
-
l("div",
|
|
7051
|
-
n.floatVisible ? (c(), d("div",
|
|
7068
|
+
l("div", so, [
|
|
7069
|
+
n.floatVisible ? (c(), d("div", ro, [
|
|
7052
7070
|
n.pendingApproval ? (c(), E(T, {
|
|
7053
7071
|
key: `appr-${n.pendingApproval.id}`,
|
|
7054
7072
|
variant: "buttons",
|
|
@@ -7076,16 +7094,16 @@ function vo(e, t, s, r, i, n) {
|
|
|
7076
7094
|
onSelect: n.onSuggestion
|
|
7077
7095
|
}, null, 8, ["items", "onSelect"]))
|
|
7078
7096
|
], 512)) : b("", !0),
|
|
7079
|
-
n.actionInFlight ? (c(), d("div",
|
|
7097
|
+
n.actionInFlight ? (c(), d("div", io, [
|
|
7080
7098
|
t[11] || (t[11] = l("span", {
|
|
7081
7099
|
class: "wm-actionWait__spinner",
|
|
7082
7100
|
"aria-hidden": "true"
|
|
7083
7101
|
}, null, -1)),
|
|
7084
|
-
l("span",
|
|
7102
|
+
l("span", ao, y(n.t("action.inProgress", {
|
|
7085
7103
|
name: n.actionInFlightName
|
|
7086
7104
|
})), 1)
|
|
7087
7105
|
])) : b("", !0),
|
|
7088
|
-
i.pendingAttachments.length ? (c(), d("div",
|
|
7106
|
+
i.pendingAttachments.length ? (c(), d("div", oo, [
|
|
7089
7107
|
(c(!0), d(B, null, D(i.pendingAttachments, (x, q) => (c(), d("div", {
|
|
7090
7108
|
key: x.path || q,
|
|
7091
7109
|
class: "wm-attached__item"
|
|
@@ -7095,7 +7113,7 @@ function vo(e, t, s, r, i, n) {
|
|
|
7095
7113
|
class: "wm-attached__thumb",
|
|
7096
7114
|
src: x.previewUrl,
|
|
7097
7115
|
alt: x.name
|
|
7098
|
-
}, null, 8,
|
|
7116
|
+
}, null, 8, lo)) : (c(), d("div", co, [
|
|
7099
7117
|
t[12] || (t[12] = l("span", { class: "wm-attached__fileIcon" }, [
|
|
7100
7118
|
l("svg", {
|
|
7101
7119
|
width: "16",
|
|
@@ -7112,9 +7130,9 @@ function vo(e, t, s, r, i, n) {
|
|
|
7112
7130
|
l("path", { d: "M14 2v6h6" })
|
|
7113
7131
|
])
|
|
7114
7132
|
], -1)),
|
|
7115
|
-
l("span",
|
|
7116
|
-
l("span",
|
|
7117
|
-
n.formatAttachmentSize(x.size_bytes) ? (c(), d("span",
|
|
7133
|
+
l("span", uo, [
|
|
7134
|
+
l("span", ho, y(x.name), 1),
|
|
7135
|
+
n.formatAttachmentSize(x.size_bytes) ? (c(), d("span", mo, y(n.formatAttachmentSize(
|
|
7118
7136
|
x.size_bytes
|
|
7119
7137
|
)), 1)) : b("", !0)
|
|
7120
7138
|
])
|
|
@@ -7138,11 +7156,11 @@ function vo(e, t, s, r, i, n) {
|
|
|
7138
7156
|
}, [
|
|
7139
7157
|
l("path", { d: "M18 6L6 18M6 6l12 12" })
|
|
7140
7158
|
], -1)
|
|
7141
|
-
])], 8,
|
|
7159
|
+
])], 8, fo)
|
|
7142
7160
|
]))), 128))
|
|
7143
7161
|
])) : b("", !0),
|
|
7144
|
-
n.endedBlockVisible ? (c(), d("div",
|
|
7145
|
-
l("span",
|
|
7162
|
+
n.endedBlockVisible ? (c(), d("div", _o, [
|
|
7163
|
+
l("span", go, y(n.isClosed ? n.t("composer.conversationClosed") : n.t("composer.conversationEnded")), 1),
|
|
7146
7164
|
l("button", {
|
|
7147
7165
|
type: "button",
|
|
7148
7166
|
class: "wm-ended__btn",
|
|
@@ -7216,7 +7234,7 @@ function vo(e, t, s, r, i, n) {
|
|
|
7216
7234
|
], 6)) : b("", !0)
|
|
7217
7235
|
], 6);
|
|
7218
7236
|
}
|
|
7219
|
-
const
|
|
7237
|
+
const wo = /* @__PURE__ */ F(Ga, [["render", yo], ["__scopeId", "data-v-a82ce23b"]]), bo = "0.6.34";
|
|
7220
7238
|
export {
|
|
7221
7239
|
me as AIAvatar,
|
|
7222
7240
|
be as AVATAR_COLORS,
|
|
@@ -7227,36 +7245,36 @@ export {
|
|
|
7227
7245
|
ur as ArtifactTicket,
|
|
7228
7246
|
Mr as AttachmentPreview,
|
|
7229
7247
|
Lr as Bubble,
|
|
7230
|
-
|
|
7248
|
+
Mi as Composer,
|
|
7231
7249
|
ot as DEFAULT_BASE_URL,
|
|
7232
7250
|
ue as DEFAULT_LANGUAGE,
|
|
7233
|
-
|
|
7234
|
-
|
|
7251
|
+
ba as Feedback,
|
|
7252
|
+
oa as FormCard,
|
|
7235
7253
|
_n as Header,
|
|
7236
7254
|
ye as HumanAvatar,
|
|
7237
|
-
|
|
7255
|
+
Ei as InlineCallbacks,
|
|
7238
7256
|
qt as Launcher,
|
|
7239
7257
|
Le as MEDIA_RECORDER_SUPPORTED,
|
|
7240
7258
|
li as MessageList,
|
|
7241
|
-
|
|
7242
|
-
|
|
7259
|
+
wo as Messenger,
|
|
7260
|
+
Pa as MoreMenu,
|
|
7243
7261
|
es as Onboarding,
|
|
7244
7262
|
ge as SCREEN_CAPTURE_SUPPORTED,
|
|
7245
7263
|
ht as SUPPORTED_LANGUAGES,
|
|
7246
7264
|
tn as TeamAvatars,
|
|
7247
7265
|
Pr as Typing,
|
|
7248
|
-
|
|
7266
|
+
bo as VERSION,
|
|
7249
7267
|
xe as avatarColor,
|
|
7250
7268
|
Oe as avatarInitials,
|
|
7251
7269
|
di as captureScreenshotFile,
|
|
7252
7270
|
j as colors,
|
|
7253
7271
|
it as createStore,
|
|
7254
|
-
|
|
7272
|
+
N as createTranslator,
|
|
7255
7273
|
tt as createTransport,
|
|
7256
7274
|
re as dateLocale,
|
|
7257
|
-
|
|
7275
|
+
wo as default,
|
|
7258
7276
|
Ce as formatTime,
|
|
7259
|
-
|
|
7277
|
+
po as guessAttachmentKind,
|
|
7260
7278
|
ci as pickRecorderMime,
|
|
7261
7279
|
Ve as renderInlineMarkdown,
|
|
7262
7280
|
_t as renderMarkdown,
|