@_solaris/messenger-widget 0.6.30 → 0.6.32
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 +9 -9
- package/dist/messenger.cjs +1 -1
- package/dist/messenger.js +161 -158
- package/dist/snippet.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/messenger.js
CHANGED
|
@@ -4452,7 +4452,7 @@ function Ke({ audio: e }) {
|
|
|
4452
4452
|
systemAudio: e ? "include" : "exclude"
|
|
4453
4453
|
};
|
|
4454
4454
|
}
|
|
4455
|
-
function
|
|
4455
|
+
function wo(e) {
|
|
4456
4456
|
return e ? e.startsWith("image/") ? "image" : e.startsWith("video/") ? "video" : "file" : "file";
|
|
4457
4457
|
}
|
|
4458
4458
|
async function di() {
|
|
@@ -4553,7 +4553,10 @@ async function hi(e = {}) {
|
|
|
4553
4553
|
}
|
|
4554
4554
|
};
|
|
4555
4555
|
}
|
|
4556
|
-
|
|
4556
|
+
function mi() {
|
|
4557
|
+
return typeof window.matchMedia == "function" && window.matchMedia("(hover: none) and (pointer: coarse)").matches;
|
|
4558
|
+
}
|
|
4559
|
+
const fi = [
|
|
4557
4560
|
{
|
|
4558
4561
|
action: "file",
|
|
4559
4562
|
labelKey: "composer.attachFile",
|
|
@@ -4569,7 +4572,7 @@ const mi = [
|
|
|
4569
4572
|
labelKey: "composer.recordScreen",
|
|
4570
4573
|
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"
|
|
4571
4574
|
}
|
|
4572
|
-
],
|
|
4575
|
+
], _i = {
|
|
4573
4576
|
name: "WmComposer",
|
|
4574
4577
|
inject: {
|
|
4575
4578
|
// Translator shared by the Messenger shell; French fallback when
|
|
@@ -4611,7 +4614,7 @@ const mi = [
|
|
|
4611
4614
|
return this.focused || !!this.local.trim() || this.attachOpen || this.recording;
|
|
4612
4615
|
},
|
|
4613
4616
|
attachItems() {
|
|
4614
|
-
return
|
|
4617
|
+
return fi.map((e) => ({
|
|
4615
4618
|
...e,
|
|
4616
4619
|
label: this.t(e.labelKey),
|
|
4617
4620
|
disabled: e.action === "screenshot" && !ge || e.action === "record" && (!ge || !Le)
|
|
@@ -4631,7 +4634,7 @@ const mi = [
|
|
|
4631
4634
|
}
|
|
4632
4635
|
},
|
|
4633
4636
|
mounted() {
|
|
4634
|
-
this.autosize(), this.displayMode === "sheet" && this.setupKeyboardTracking();
|
|
4637
|
+
this.autosize(), (this.displayMode === "sheet" || mi()) && this.setupKeyboardTracking();
|
|
4635
4638
|
},
|
|
4636
4639
|
beforeUnmount() {
|
|
4637
4640
|
if (this.recorder)
|
|
@@ -4746,30 +4749,30 @@ const mi = [
|
|
|
4746
4749
|
!e || !this._vvHandler || (e.removeEventListener("resize", this._vvHandler), e.removeEventListener("scroll", this._vvHandler), this._vvHandler = null);
|
|
4747
4750
|
}
|
|
4748
4751
|
}
|
|
4749
|
-
},
|
|
4752
|
+
}, gi = {
|
|
4750
4753
|
key: 0,
|
|
4751
4754
|
class: "wm-rec"
|
|
4752
|
-
},
|
|
4755
|
+
}, yi = { class: "wm-rec__lbl" }, vi = {
|
|
4753
4756
|
key: 1,
|
|
4754
4757
|
class: "wm-compose__menu",
|
|
4755
4758
|
role: "menu"
|
|
4756
|
-
},
|
|
4759
|
+
}, pi = ["disabled", "onClick"], wi = { class: "wm-compose__menuIcon" }, bi = {
|
|
4757
4760
|
viewBox: "0 0 24 24",
|
|
4758
4761
|
width: "14",
|
|
4759
4762
|
height: "14",
|
|
4760
4763
|
"aria-hidden": "true"
|
|
4761
|
-
},
|
|
4762
|
-
function
|
|
4764
|
+
}, ki = ["d"], Ci = ["placeholder", "disabled"], Ai = { class: "wm-compose__actions" }, Si = ["title", "aria-label", "disabled"], Ti = ["disabled", "aria-label"];
|
|
4765
|
+
function Mi(e, t, s, r, i, n) {
|
|
4763
4766
|
return c(), d("div", {
|
|
4764
4767
|
class: R(["wm-compose-wrap", { "wm-compose-wrap--sheet": s.displayMode === "sheet" }]),
|
|
4765
4768
|
style: N(i.kbOffset ? { transform: `translateY(-${i.kbOffset}px)` } : null)
|
|
4766
4769
|
}, [
|
|
4767
|
-
i.recording ? (c(), d("div",
|
|
4770
|
+
i.recording ? (c(), d("div", gi, [
|
|
4768
4771
|
t[11] || (t[11] = l("span", {
|
|
4769
4772
|
class: "wm-rec__dot",
|
|
4770
4773
|
"aria-hidden": "true"
|
|
4771
4774
|
}, null, -1)),
|
|
4772
|
-
l("span",
|
|
4775
|
+
l("span", yi, y(n.t("composer.recording", { time: n.recordingElapsedLabel })), 1),
|
|
4773
4776
|
l("button", {
|
|
4774
4777
|
type: "button",
|
|
4775
4778
|
class: "wm-rec__stop",
|
|
@@ -4792,7 +4795,7 @@ function Ti(e, t, s, r, i, n) {
|
|
|
4792
4795
|
class: "wm-compose__overlay",
|
|
4793
4796
|
onClick: t[2] || (t[2] = (a) => i.attachOpen = !1)
|
|
4794
4797
|
})) : b("", !0),
|
|
4795
|
-
i.attachOpen ? (c(), d("div",
|
|
4798
|
+
i.attachOpen ? (c(), d("div", vi, [
|
|
4796
4799
|
(c(!0), d(B, null, D(n.attachItems, (a) => (c(), d("button", {
|
|
4797
4800
|
key: a.action,
|
|
4798
4801
|
type: "button",
|
|
@@ -4800,8 +4803,8 @@ function Ti(e, t, s, r, i, n) {
|
|
|
4800
4803
|
disabled: a.disabled,
|
|
4801
4804
|
onClick: (o) => n.onAttachAction(a.action)
|
|
4802
4805
|
}, [
|
|
4803
|
-
l("span",
|
|
4804
|
-
(c(), d("svg",
|
|
4806
|
+
l("span", wi, [
|
|
4807
|
+
(c(), d("svg", bi, [
|
|
4805
4808
|
l("path", {
|
|
4806
4809
|
d: a.path,
|
|
4807
4810
|
stroke: "currentColor",
|
|
@@ -4809,11 +4812,11 @@ function Ti(e, t, s, r, i, n) {
|
|
|
4809
4812
|
"stroke-linecap": "round",
|
|
4810
4813
|
"stroke-linejoin": "round",
|
|
4811
4814
|
fill: "none"
|
|
4812
|
-
}, null, 8,
|
|
4815
|
+
}, null, 8, ki)
|
|
4813
4816
|
]))
|
|
4814
4817
|
]),
|
|
4815
4818
|
l("span", null, y(a.label), 1)
|
|
4816
|
-
], 8,
|
|
4819
|
+
], 8, pi))), 128))
|
|
4817
4820
|
])) : b("", !0),
|
|
4818
4821
|
G(l("textarea", {
|
|
4819
4822
|
ref: "inputEl",
|
|
@@ -4826,10 +4829,10 @@ function Ti(e, t, s, r, i, n) {
|
|
|
4826
4829
|
onInput: t[5] || (t[5] = (...a) => n.autosize && n.autosize(...a)),
|
|
4827
4830
|
onFocus: t[6] || (t[6] = (...a) => n.onFocus && n.onFocus(...a)),
|
|
4828
4831
|
onBlur: t[7] || (t[7] = (...a) => n.onBlur && n.onBlur(...a))
|
|
4829
|
-
}, null, 40,
|
|
4832
|
+
}, null, 40, Ci), [
|
|
4830
4833
|
[ee, i.local]
|
|
4831
4834
|
]),
|
|
4832
|
-
l("div",
|
|
4835
|
+
l("div", Ai, [
|
|
4833
4836
|
l("button", {
|
|
4834
4837
|
type: "button",
|
|
4835
4838
|
class: R(["wm-compose__icon", { "is-open": i.attachOpen }]),
|
|
@@ -4853,7 +4856,7 @@ function Ti(e, t, s, r, i, n) {
|
|
|
4853
4856
|
}, [
|
|
4854
4857
|
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" })
|
|
4855
4858
|
], -1)
|
|
4856
|
-
])], 42,
|
|
4859
|
+
])], 42, Si),
|
|
4857
4860
|
l("button", {
|
|
4858
4861
|
type: "submit",
|
|
4859
4862
|
class: R(["wm-compose__send", { "is-empty": !n.canSend }]),
|
|
@@ -4873,12 +4876,12 @@ function Ti(e, t, s, r, i, n) {
|
|
|
4873
4876
|
}, [
|
|
4874
4877
|
l("path", { d: "M22 2L11 13M22 2l-7 20-4-9-9-4 20-7z" })
|
|
4875
4878
|
], -1)
|
|
4876
|
-
])], 10,
|
|
4879
|
+
])], 10, Ti)
|
|
4877
4880
|
])
|
|
4878
4881
|
], 34)
|
|
4879
4882
|
], 6);
|
|
4880
4883
|
}
|
|
4881
|
-
const
|
|
4884
|
+
const xi = /* @__PURE__ */ F(_i, [["render", Mi], ["__scopeId", "data-v-f641d642"]]), Oi = {
|
|
4882
4885
|
name: "WmInlineCallbacks",
|
|
4883
4886
|
props: {
|
|
4884
4887
|
// Array d'items `{ id?, label, style?, ... }`. Pour les suggestions,
|
|
@@ -4916,11 +4919,11 @@ const Mi = /* @__PURE__ */ F(fi, [["render", Ti], ["__scopeId", "data-v-a9738520
|
|
|
4916
4919
|
return this.variant === "chips" ? "wm-icb__btn--chip" : ["wm-icb__btn--action", `wm-icb__btn--${(e == null ? void 0 : e.style) || "neutral"}`];
|
|
4917
4920
|
}
|
|
4918
4921
|
}
|
|
4919
|
-
},
|
|
4922
|
+
}, Ri = ["onClick"], Li = {
|
|
4920
4923
|
key: 0,
|
|
4921
4924
|
class: "wm-icb__title"
|
|
4922
|
-
},
|
|
4923
|
-
function
|
|
4925
|
+
}, Ii = { class: "wm-icb__row" }, Bi = ["onClick"];
|
|
4926
|
+
function Ei(e, t, s, r, i, n) {
|
|
4924
4927
|
return s.items.length ? (c(), d("div", {
|
|
4925
4928
|
key: n.batchKey,
|
|
4926
4929
|
class: R(["wm-icb", `wm-icb--${s.variant}`])
|
|
@@ -4931,22 +4934,22 @@ function Bi(e, t, s, r, i, n) {
|
|
|
4931
4934
|
class: "wm-icb__btn wm-icb__btn--chip",
|
|
4932
4935
|
style: N({ animationDelay: s.baseDelay + o * s.stepDelay + "ms" }),
|
|
4933
4936
|
onClick: (f) => e.$emit("select", a)
|
|
4934
|
-
}, y(a.label), 13,
|
|
4935
|
-
n.headerTitle ? (c(), d("div",
|
|
4936
|
-
l("div",
|
|
4937
|
+
}, y(a.label), 13, Ri))), 128)) : (c(), d(B, { key: 1 }, [
|
|
4938
|
+
n.headerTitle ? (c(), d("div", Li, y(n.headerTitle), 1)) : b("", !0),
|
|
4939
|
+
l("div", Ii, [
|
|
4937
4940
|
(c(!0), d(B, null, D(s.items, (a, o) => (c(), d("button", {
|
|
4938
4941
|
key: a.id != null ? a.id : o,
|
|
4939
4942
|
type: "button",
|
|
4940
4943
|
class: R(["wm-icb__btn", n.btnClass(a)]),
|
|
4941
4944
|
onClick: (f) => e.$emit("select", a)
|
|
4942
|
-
}, y(a.label), 11,
|
|
4945
|
+
}, y(a.label), 11, Bi))), 128))
|
|
4943
4946
|
])
|
|
4944
4947
|
], 64))
|
|
4945
4948
|
], 2)) : b("", !0);
|
|
4946
4949
|
}
|
|
4947
|
-
const
|
|
4950
|
+
const Pi = /* @__PURE__ */ F(Oi, [["render", Ei], ["__scopeId", "data-v-c8cc8cbf"]]);
|
|
4948
4951
|
let Ne = 0;
|
|
4949
|
-
const
|
|
4952
|
+
const Fi = /* @__PURE__ */ new Set([
|
|
4950
4953
|
"text",
|
|
4951
4954
|
"textarea",
|
|
4952
4955
|
"number",
|
|
@@ -4954,7 +4957,7 @@ const Pi = /* @__PURE__ */ new Set([
|
|
|
4954
4957
|
"select",
|
|
4955
4958
|
"multiselect",
|
|
4956
4959
|
"date"
|
|
4957
|
-
]),
|
|
4960
|
+
]), Ui = {
|
|
4958
4961
|
name: "WmFormCard",
|
|
4959
4962
|
components: { AIAvatar: me },
|
|
4960
4963
|
inject: {
|
|
@@ -4984,7 +4987,7 @@ const Pi = /* @__PURE__ */ new Set([
|
|
|
4984
4987
|
// douteux.
|
|
4985
4988
|
normalizedFields() {
|
|
4986
4989
|
var t;
|
|
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) || !
|
|
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) || !Fi.has(s == null ? void 0 : s.type) || (s.type === "select" || s.type === "multiselect") && (!Array.isArray(s.options) || s.options.length === 0)));
|
|
4988
4991
|
}
|
|
4989
4992
|
},
|
|
4990
4993
|
created() {
|
|
@@ -5037,47 +5040,47 @@ const Pi = /* @__PURE__ */ new Set([
|
|
|
5037
5040
|
}
|
|
5038
5041
|
}
|
|
5039
5042
|
}
|
|
5040
|
-
},
|
|
5043
|
+
}, Di = { class: "wm-form" }, Ni = { class: "wm-form__head" }, Hi = { class: "wm-form__icon" }, ji = { class: "wm-form__main" }, zi = { class: "wm-form__title" }, qi = {
|
|
5041
5044
|
key: 0,
|
|
5042
5045
|
class: "wm-form__detail"
|
|
5043
|
-
},
|
|
5046
|
+
}, Vi = ["for"], Ki = {
|
|
5044
5047
|
key: 0,
|
|
5045
5048
|
class: "wm-form__req",
|
|
5046
5049
|
"aria-hidden": "true"
|
|
5047
|
-
},
|
|
5050
|
+
}, Wi = ["id", "onUpdate:modelValue", "placeholder", "required", "disabled"], $i = ["id", "onUpdate:modelValue", "placeholder", "required", "disabled"], Gi = ["id", "onUpdate:modelValue", "placeholder", "required", "disabled"], Yi = ["id", "onUpdate:modelValue", "required", "disabled"], Ji = {
|
|
5048
5051
|
key: 4,
|
|
5049
5052
|
class: "wm-form__bool"
|
|
5050
|
-
},
|
|
5053
|
+
}, Xi = ["id", "onUpdate:modelValue", "disabled"], Qi = ["id", "onUpdate:modelValue", "required", "disabled"], Zi = {
|
|
5051
5054
|
value: "",
|
|
5052
5055
|
disabled: ""
|
|
5053
|
-
},
|
|
5056
|
+
}, ea = ["value"], ta = {
|
|
5054
5057
|
key: 6,
|
|
5055
5058
|
class: "wm-form__multi"
|
|
5056
|
-
},
|
|
5059
|
+
}, na = ["value", "checked", "disabled", "onChange"], sa = {
|
|
5057
5060
|
key: 0,
|
|
5058
5061
|
class: "wm-form__err"
|
|
5059
|
-
},
|
|
5062
|
+
}, ra = ["disabled"], ia = {
|
|
5060
5063
|
key: 0,
|
|
5061
5064
|
class: "wm-form__spinner",
|
|
5062
5065
|
"aria-hidden": "true"
|
|
5063
|
-
},
|
|
5066
|
+
}, aa = {
|
|
5064
5067
|
key: 2,
|
|
5065
5068
|
class: "wm-form__doneLbl"
|
|
5066
5069
|
};
|
|
5067
|
-
function
|
|
5070
|
+
function oa(e, t, s, r, i, n) {
|
|
5068
5071
|
const a = P("AIAvatar");
|
|
5069
|
-
return c(), d("div",
|
|
5070
|
-
l("div",
|
|
5071
|
-
l("div",
|
|
5072
|
+
return c(), d("div", Di, [
|
|
5073
|
+
l("div", Ni, [
|
|
5074
|
+
l("div", Hi, [
|
|
5072
5075
|
W(a, {
|
|
5073
5076
|
size: 24,
|
|
5074
5077
|
name: s.agentName,
|
|
5075
5078
|
"image-url": s.agentAvatarUrl
|
|
5076
5079
|
}, null, 8, ["name", "image-url"])
|
|
5077
5080
|
]),
|
|
5078
|
-
l("div",
|
|
5079
|
-
l("div",
|
|
5080
|
-
s.form.description ? (c(), d("div",
|
|
5081
|
+
l("div", ji, [
|
|
5082
|
+
l("div", zi, y(s.form.title || n.t("form.title")), 1),
|
|
5083
|
+
s.form.description ? (c(), d("div", qi, y(s.form.description), 1)) : b("", !0)
|
|
5081
5084
|
])
|
|
5082
5085
|
]),
|
|
5083
5086
|
l("form", {
|
|
@@ -5093,8 +5096,8 @@ function aa(e, t, s, r, i, n) {
|
|
|
5093
5096
|
class: "wm-form__label"
|
|
5094
5097
|
}, [
|
|
5095
5098
|
Me(y(o.label), 1),
|
|
5096
|
-
o.required ? (c(), d("span",
|
|
5097
|
-
], 8,
|
|
5099
|
+
o.required ? (c(), d("span", Ki, "*")) : b("", !0)
|
|
5100
|
+
], 8, Vi),
|
|
5098
5101
|
o.type === "text" ? G((c(), d("input", {
|
|
5099
5102
|
key: 0,
|
|
5100
5103
|
id: `wm-f-${i._uid}-${o.key}`,
|
|
@@ -5104,7 +5107,7 @@ function aa(e, t, s, r, i, n) {
|
|
|
5104
5107
|
placeholder: o.placeholder || "",
|
|
5105
5108
|
required: o.required,
|
|
5106
5109
|
disabled: s.readOnly || i.busy
|
|
5107
|
-
}, null, 8,
|
|
5110
|
+
}, null, 8, Wi)), [
|
|
5108
5111
|
[ee, i.values[o.key]]
|
|
5109
5112
|
]) : o.type === "textarea" ? G((c(), d("textarea", {
|
|
5110
5113
|
key: 1,
|
|
@@ -5115,7 +5118,7 @@ function aa(e, t, s, r, i, n) {
|
|
|
5115
5118
|
placeholder: o.placeholder || "",
|
|
5116
5119
|
required: o.required,
|
|
5117
5120
|
disabled: s.readOnly || i.busy
|
|
5118
|
-
}, null, 8,
|
|
5121
|
+
}, null, 8, $i)), [
|
|
5119
5122
|
[ee, i.values[o.key]]
|
|
5120
5123
|
]) : o.type === "number" ? G((c(), d("input", {
|
|
5121
5124
|
key: 2,
|
|
@@ -5126,7 +5129,7 @@ function aa(e, t, s, r, i, n) {
|
|
|
5126
5129
|
placeholder: o.placeholder || "",
|
|
5127
5130
|
required: o.required,
|
|
5128
5131
|
disabled: s.readOnly || i.busy
|
|
5129
|
-
}, null, 8,
|
|
5132
|
+
}, null, 8, Gi)), [
|
|
5130
5133
|
[
|
|
5131
5134
|
ee,
|
|
5132
5135
|
i.values[o.key],
|
|
@@ -5141,15 +5144,15 @@ function aa(e, t, s, r, i, n) {
|
|
|
5141
5144
|
class: "wm-form__input",
|
|
5142
5145
|
required: o.required,
|
|
5143
5146
|
disabled: s.readOnly || i.busy
|
|
5144
|
-
}, null, 8,
|
|
5147
|
+
}, null, 8, Yi)), [
|
|
5145
5148
|
[ee, i.values[o.key]]
|
|
5146
|
-
]) : o.type === "boolean" ? (c(), d("label",
|
|
5149
|
+
]) : o.type === "boolean" ? (c(), d("label", Ji, [
|
|
5147
5150
|
G(l("input", {
|
|
5148
5151
|
id: `wm-f-${i._uid}-${o.key}`,
|
|
5149
5152
|
"onUpdate:modelValue": (f) => i.values[o.key] = f,
|
|
5150
5153
|
type: "checkbox",
|
|
5151
5154
|
disabled: s.readOnly || i.busy
|
|
5152
|
-
}, null, 8,
|
|
5155
|
+
}, null, 8, Xi), [
|
|
5153
5156
|
[Ge, i.values[o.key]]
|
|
5154
5157
|
]),
|
|
5155
5158
|
l("span", null, y(o.placeholder || n.t("common.yes")), 1)
|
|
@@ -5161,14 +5164,14 @@ function aa(e, t, s, r, i, n) {
|
|
|
5161
5164
|
required: o.required,
|
|
5162
5165
|
disabled: s.readOnly || i.busy
|
|
5163
5166
|
}, [
|
|
5164
|
-
l("option",
|
|
5167
|
+
l("option", Zi, y(o.placeholder || n.t("form.choose")), 1),
|
|
5165
5168
|
(c(!0), d(B, null, D(o.options, (f) => (c(), d("option", {
|
|
5166
5169
|
key: f.value,
|
|
5167
5170
|
value: f.value
|
|
5168
|
-
}, y(f.label), 9,
|
|
5169
|
-
], 8,
|
|
5171
|
+
}, y(f.label), 9, ea))), 128))
|
|
5172
|
+
], 8, Qi)), [
|
|
5170
5173
|
[Ye, i.values[o.key]]
|
|
5171
|
-
]) : o.type === "multiselect" ? (c(), d("div",
|
|
5174
|
+
]) : o.type === "multiselect" ? (c(), d("div", ta, [
|
|
5172
5175
|
(c(!0), d(B, null, D(o.options, (f) => (c(), d("label", {
|
|
5173
5176
|
key: f.value,
|
|
5174
5177
|
class: "wm-form__multiItem"
|
|
@@ -5183,25 +5186,25 @@ function aa(e, t, s, r, i, n) {
|
|
|
5183
5186
|
f.value,
|
|
5184
5187
|
k.target.checked
|
|
5185
5188
|
)
|
|
5186
|
-
}, null, 40,
|
|
5189
|
+
}, null, 40, na),
|
|
5187
5190
|
l("span", null, y(f.label), 1)
|
|
5188
5191
|
]))), 128))
|
|
5189
5192
|
])) : b("", !0)
|
|
5190
5193
|
]))), 128)),
|
|
5191
|
-
i.error ? (c(), d("div",
|
|
5192
|
-
s.readOnly ? (c(), d("div",
|
|
5194
|
+
i.error ? (c(), d("div", sa, y(i.error), 1)) : b("", !0),
|
|
5195
|
+
s.readOnly ? (c(), d("div", aa, y(n.t("form.responseSent")), 1)) : (c(), d("button", {
|
|
5193
5196
|
key: 1,
|
|
5194
5197
|
type: "submit",
|
|
5195
5198
|
class: "wm-form__submit",
|
|
5196
5199
|
disabled: i.busy
|
|
5197
5200
|
}, [
|
|
5198
|
-
i.busy ? (c(), d("span",
|
|
5201
|
+
i.busy ? (c(), d("span", ia)) : b("", !0),
|
|
5199
5202
|
l("span", null, y(i.busy ? n.t("common.sending") : s.form.submit_label || n.t("common.send")), 1)
|
|
5200
|
-
], 8,
|
|
5203
|
+
], 8, ra))
|
|
5201
5204
|
], 32)
|
|
5202
5205
|
]);
|
|
5203
5206
|
}
|
|
5204
|
-
const
|
|
5207
|
+
const la = /* @__PURE__ */ F(Ui, [["render", oa], ["__scopeId", "data-v-fe65cc56"]]), ca = {
|
|
5205
5208
|
name: "WmFeedback",
|
|
5206
5209
|
inject: {
|
|
5207
5210
|
// Translator shared by the Messenger shell; French fallback when
|
|
@@ -5235,13 +5238,13 @@ const oa = /* @__PURE__ */ F(Fi, [["render", aa], ["__scopeId", "data-v-fe65cc56
|
|
|
5235
5238
|
!this.sel || this.busy || this.$emit("submit", { rating: this.sel });
|
|
5236
5239
|
}
|
|
5237
5240
|
}
|
|
5238
|
-
},
|
|
5241
|
+
}, da = { class: "wm-fb" }, ua = { class: "wm-fb__title" }, ha = { class: "wm-fb__sub" }, ma = { class: "wm-fb__row" }, fa = ["onClick"], _a = { class: "wm-fb__emoji" }, ga = { class: "wm-fb__label" }, ya = ["disabled"], va = {
|
|
5239
5242
|
key: 1,
|
|
5240
5243
|
class: "wm-fb__done"
|
|
5241
|
-
},
|
|
5242
|
-
function
|
|
5243
|
-
return c(), d("div",
|
|
5244
|
-
s.done ? (c(), d("div",
|
|
5244
|
+
}, pa = { class: "wm-fb__doneTitle" }, wa = { class: "wm-fb__doneSub" };
|
|
5245
|
+
function ba(e, t, s, r, i, n) {
|
|
5246
|
+
return c(), d("div", da, [
|
|
5247
|
+
s.done ? (c(), d("div", va, [
|
|
5245
5248
|
t[1] || (t[1] = l("div", { class: "wm-fb__check" }, [
|
|
5246
5249
|
l("svg", {
|
|
5247
5250
|
width: "16",
|
|
@@ -5257,32 +5260,32 @@ function wa(e, t, s, r, i, n) {
|
|
|
5257
5260
|
l("path", { d: "M20 6L9 17l-5-5" })
|
|
5258
5261
|
])
|
|
5259
5262
|
], -1)),
|
|
5260
|
-
l("div",
|
|
5261
|
-
l("div",
|
|
5263
|
+
l("div", pa, y(n.t("feedback.doneTitle")), 1),
|
|
5264
|
+
l("div", wa, y(n.t("feedback.doneSubtitle")), 1)
|
|
5262
5265
|
])) : (c(), d(B, { key: 0 }, [
|
|
5263
|
-
l("div",
|
|
5264
|
-
l("div",
|
|
5265
|
-
l("div",
|
|
5266
|
+
l("div", ua, y(n.t("feedback.question")), 1),
|
|
5267
|
+
l("div", ha, y(n.t("feedback.subtitle")), 1),
|
|
5268
|
+
l("div", ma, [
|
|
5266
5269
|
(c(!0), d(B, null, D(n.options, (a) => (c(), d("button", {
|
|
5267
5270
|
key: a.v,
|
|
5268
5271
|
type: "button",
|
|
5269
5272
|
class: R(["wm-fb__opt", { "is-selected": i.sel === a.v }]),
|
|
5270
5273
|
onClick: (o) => i.sel = a.v
|
|
5271
5274
|
}, [
|
|
5272
|
-
l("span",
|
|
5273
|
-
l("span",
|
|
5274
|
-
], 10,
|
|
5275
|
+
l("span", _a, y(a.e), 1),
|
|
5276
|
+
l("span", ga, y(a.l), 1)
|
|
5277
|
+
], 10, fa))), 128))
|
|
5275
5278
|
]),
|
|
5276
5279
|
l("button", {
|
|
5277
5280
|
type: "button",
|
|
5278
5281
|
class: "wm-fb__send",
|
|
5279
5282
|
disabled: !i.sel || s.busy,
|
|
5280
5283
|
onClick: t[0] || (t[0] = (...a) => n.onSend && n.onSend(...a))
|
|
5281
|
-
}, y(s.busy ? n.t("common.sending") : n.t("feedback.submit")), 9,
|
|
5284
|
+
}, y(s.busy ? n.t("common.sending") : n.t("feedback.submit")), 9, ya)
|
|
5282
5285
|
], 64))
|
|
5283
5286
|
]);
|
|
5284
5287
|
}
|
|
5285
|
-
const
|
|
5288
|
+
const ka = /* @__PURE__ */ F(ca, [["render", ba], ["__scopeId", "data-v-9b630564"]]), Ca = {
|
|
5286
5289
|
name: "WmMoreMenu",
|
|
5287
5290
|
inject: {
|
|
5288
5291
|
// Translator shared by the Messenger shell; French fallback when
|
|
@@ -5317,24 +5320,24 @@ const ba = /* @__PURE__ */ F(la, [["render", wa], ["__scopeId", "data-v-9b630564
|
|
|
5317
5320
|
this.soundOn = !this.soundOn, this.$emit("sound-toggle", this.soundOn);
|
|
5318
5321
|
}
|
|
5319
5322
|
}
|
|
5320
|
-
},
|
|
5323
|
+
}, Aa = { class: "wm-mm" }, Sa = {
|
|
5321
5324
|
class: "wm-mm__pop",
|
|
5322
5325
|
role: "menu"
|
|
5323
|
-
},
|
|
5326
|
+
}, Ta = {
|
|
5324
5327
|
key: 0,
|
|
5325
5328
|
class: "wm-mm__section"
|
|
5326
|
-
},
|
|
5329
|
+
}, Ma = { class: "wm-mm__label" }, xa = { class: "wm-mm__label" }, Oa = {
|
|
5327
5330
|
key: 1,
|
|
5328
5331
|
class: "wm-mm__sep"
|
|
5329
|
-
},
|
|
5330
|
-
function
|
|
5331
|
-
return c(), d("div",
|
|
5332
|
+
}, Ra = { class: "wm-mm__section" }, La = { class: "wm-mm__label" }, Ia = { class: "wm-mm__section" }, Ba = { class: "wm-mm__label" }, Ea = { class: "wm-mm__label" };
|
|
5333
|
+
function Pa(e, t, s, r, i, n) {
|
|
5334
|
+
return c(), d("div", Aa, [
|
|
5332
5335
|
l("div", {
|
|
5333
5336
|
class: "wm-mm__scrim",
|
|
5334
5337
|
onClick: t[0] || (t[0] = (a) => e.$emit("close"))
|
|
5335
5338
|
}),
|
|
5336
|
-
l("div",
|
|
5337
|
-
s.canRename || s.canExport ? (c(), d("div",
|
|
5339
|
+
l("div", Sa, [
|
|
5340
|
+
s.canRename || s.canExport ? (c(), d("div", Ta, [
|
|
5338
5341
|
s.canRename ? (c(), d("button", {
|
|
5339
5342
|
key: 0,
|
|
5340
5343
|
type: "button",
|
|
@@ -5357,7 +5360,7 @@ function Ea(e, t, s, r, i, n) {
|
|
|
5357
5360
|
l("path", { d: "M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4 12.5-12.5z" })
|
|
5358
5361
|
])
|
|
5359
5362
|
], -1)),
|
|
5360
|
-
l("span",
|
|
5363
|
+
l("span", Ma, y(n.t("moreMenu.editTitle")), 1)
|
|
5361
5364
|
])) : b("", !0),
|
|
5362
5365
|
s.canExport ? (c(), d("button", {
|
|
5363
5366
|
key: 1,
|
|
@@ -5380,12 +5383,12 @@ function Ea(e, t, s, r, i, n) {
|
|
|
5380
5383
|
l("path", { d: "M4 12v8a2 2 0 002 2h12a2 2 0 002-2v-8M16 6l-4-4-4 4M12 2v13" })
|
|
5381
5384
|
])
|
|
5382
5385
|
], -1)),
|
|
5383
|
-
l("span",
|
|
5386
|
+
l("span", xa, y(n.t("moreMenu.exportTranscript")), 1),
|
|
5384
5387
|
t[8] || (t[8] = l("span", { class: "wm-mm__hint" }, ".txt", -1))
|
|
5385
5388
|
])) : b("", !0)
|
|
5386
5389
|
])) : b("", !0),
|
|
5387
|
-
s.canRename || s.canExport ? (c(), d("div",
|
|
5388
|
-
l("div",
|
|
5390
|
+
s.canRename || s.canExport ? (c(), d("div", Oa)) : b("", !0),
|
|
5391
|
+
l("div", Ra, [
|
|
5389
5392
|
l("button", {
|
|
5390
5393
|
type: "button",
|
|
5391
5394
|
class: "wm-mm__item",
|
|
@@ -5407,7 +5410,7 @@ function Ea(e, t, s, r, i, n) {
|
|
|
5407
5410
|
l("path", { d: "M15.54 8.46a5 5 0 010 7.07M19.07 4.93a10 10 0 010 14.14" })
|
|
5408
5411
|
])
|
|
5409
5412
|
], -1)),
|
|
5410
|
-
l("span",
|
|
5413
|
+
l("span", La, y(n.t("moreMenu.sound")), 1),
|
|
5411
5414
|
l("span", {
|
|
5412
5415
|
class: R(["wm-mm__toggle", { "wm-mm__toggle--on": i.soundOn }])
|
|
5413
5416
|
}, [...t[9] || (t[9] = [
|
|
@@ -5416,7 +5419,7 @@ function Ea(e, t, s, r, i, n) {
|
|
|
5416
5419
|
])
|
|
5417
5420
|
]),
|
|
5418
5421
|
t[13] || (t[13] = l("div", { class: "wm-mm__sep" }, null, -1)),
|
|
5419
|
-
l("div",
|
|
5422
|
+
l("div", Ia, [
|
|
5420
5423
|
s.statusUrl ? (c(), d("button", {
|
|
5421
5424
|
key: 0,
|
|
5422
5425
|
type: "button",
|
|
@@ -5438,7 +5441,7 @@ function Ea(e, t, s, r, i, n) {
|
|
|
5438
5441
|
l("path", { d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zM10 6v4l3 2" })
|
|
5439
5442
|
])
|
|
5440
5443
|
], -1)),
|
|
5441
|
-
l("span",
|
|
5444
|
+
l("span", Ba, y(n.t("moreMenu.serviceStatus")), 1)
|
|
5442
5445
|
])) : b("", !0),
|
|
5443
5446
|
s.helpUrl ? (c(), d("button", {
|
|
5444
5447
|
key: 1,
|
|
@@ -5461,13 +5464,13 @@ function Ea(e, t, s, r, i, n) {
|
|
|
5461
5464
|
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" })
|
|
5462
5465
|
])
|
|
5463
5466
|
], -1)),
|
|
5464
|
-
l("span",
|
|
5467
|
+
l("span", Ea, y(n.t("moreMenu.helpCenter")), 1)
|
|
5465
5468
|
])) : b("", !0)
|
|
5466
5469
|
])
|
|
5467
5470
|
])
|
|
5468
5471
|
]);
|
|
5469
5472
|
}
|
|
5470
|
-
const
|
|
5473
|
+
const Fa = /* @__PURE__ */ F(Ca, [["render", Pa], ["__scopeId", "data-v-4cf6d578"]]), Ua = {
|
|
5471
5474
|
name: "WmRenameDialog",
|
|
5472
5475
|
inject: {
|
|
5473
5476
|
// Translator shared by the Messenger shell; French fallback when
|
|
@@ -5509,20 +5512,20 @@ const Pa = /* @__PURE__ */ F(ka, [["render", Ea], ["__scopeId", "data-v-4cf6d578
|
|
|
5509
5512
|
this.canSubmit && this.$emit("submit", this.value.trim());
|
|
5510
5513
|
}
|
|
5511
5514
|
}
|
|
5512
|
-
},
|
|
5515
|
+
}, Da = { class: "wm-dialog" }, Na = {
|
|
5513
5516
|
class: "wm-dialog__card",
|
|
5514
5517
|
role: "dialog",
|
|
5515
5518
|
"aria-modal": "true"
|
|
5516
|
-
},
|
|
5517
|
-
function
|
|
5518
|
-
return c(), d("div",
|
|
5519
|
+
}, Ha = { class: "wm-dialog__head" }, ja = { class: "wm-dialog__title" }, za = ["aria-label"], qa = { class: "wm-dialog__body" }, Va = ["placeholder"], Ka = { class: "wm-dialog__actions" }, Wa = ["disabled"];
|
|
5520
|
+
function $a(e, t, s, r, i, n) {
|
|
5521
|
+
return c(), d("div", Da, [
|
|
5519
5522
|
l("div", {
|
|
5520
5523
|
class: "wm-dialog__scrim",
|
|
5521
5524
|
onClick: t[0] || (t[0] = (a) => e.$emit("close"))
|
|
5522
5525
|
}),
|
|
5523
|
-
l("div",
|
|
5524
|
-
l("div",
|
|
5525
|
-
l("div",
|
|
5526
|
+
l("div", Na, [
|
|
5527
|
+
l("div", Ha, [
|
|
5528
|
+
l("div", ja, y(s.title || n.t("rename.title")), 1),
|
|
5526
5529
|
l("button", {
|
|
5527
5530
|
type: "button",
|
|
5528
5531
|
class: "wm-dialog__close",
|
|
@@ -5542,9 +5545,9 @@ function Wa(e, t, s, r, i, n) {
|
|
|
5542
5545
|
}, [
|
|
5543
5546
|
l("path", { d: "M18 6L6 18M6 6l12 12" })
|
|
5544
5547
|
], -1)
|
|
5545
|
-
])], 8,
|
|
5548
|
+
])], 8, za)
|
|
5546
5549
|
]),
|
|
5547
|
-
l("div",
|
|
5550
|
+
l("div", qa, [
|
|
5548
5551
|
G(l("input", {
|
|
5549
5552
|
ref: "input",
|
|
5550
5553
|
"onUpdate:modelValue": t[2] || (t[2] = (a) => i.value = a),
|
|
@@ -5556,11 +5559,11 @@ function Wa(e, t, s, r, i, n) {
|
|
|
5556
5559
|
t[3] || (t[3] = _e(K((...a) => n.onSubmit && n.onSubmit(...a), ["prevent"]), ["enter"])),
|
|
5557
5560
|
t[4] || (t[4] = _e(K((a) => e.$emit("close"), ["prevent"]), ["esc"]))
|
|
5558
5561
|
]
|
|
5559
|
-
}, null, 40,
|
|
5562
|
+
}, null, 40, Va), [
|
|
5560
5563
|
[ee, i.value]
|
|
5561
5564
|
])
|
|
5562
5565
|
]),
|
|
5563
|
-
l("div",
|
|
5566
|
+
l("div", Ka, [
|
|
5564
5567
|
l("button", {
|
|
5565
5568
|
type: "button",
|
|
5566
5569
|
class: "wm-dialog__btn",
|
|
@@ -5571,12 +5574,12 @@ function Wa(e, t, s, r, i, n) {
|
|
|
5571
5574
|
class: "wm-dialog__btn wm-dialog__btn--primary",
|
|
5572
5575
|
disabled: !n.canSubmit,
|
|
5573
5576
|
onClick: t[6] || (t[6] = (...a) => n.onSubmit && n.onSubmit(...a))
|
|
5574
|
-
}, y(n.t("common.save")), 9,
|
|
5577
|
+
}, y(n.t("common.save")), 9, Wa)
|
|
5575
5578
|
])
|
|
5576
5579
|
])
|
|
5577
5580
|
]);
|
|
5578
5581
|
}
|
|
5579
|
-
const
|
|
5582
|
+
const Ga = /* @__PURE__ */ F(Ua, [["render", $a], ["__scopeId", "data-v-6d5f94a8"]]), He = "ww-messenger-tokens", Ya = {
|
|
5580
5583
|
name: "Messenger",
|
|
5581
5584
|
components: {
|
|
5582
5585
|
Launcher: qt,
|
|
@@ -5584,12 +5587,12 @@ const $a = /* @__PURE__ */ F(Fa, [["render", Wa], ["__scopeId", "data-v-6d5f94a8
|
|
|
5584
5587
|
Onboarding: es,
|
|
5585
5588
|
History: gs,
|
|
5586
5589
|
MessageList: li,
|
|
5587
|
-
Composer:
|
|
5588
|
-
InlineCallbacks:
|
|
5589
|
-
FormCard:
|
|
5590
|
-
Feedback:
|
|
5591
|
-
MoreMenu:
|
|
5592
|
-
RenameDialog:
|
|
5590
|
+
Composer: xi,
|
|
5591
|
+
InlineCallbacks: Pi,
|
|
5592
|
+
FormCard: la,
|
|
5593
|
+
Feedback: ka,
|
|
5594
|
+
MoreMenu: Fa,
|
|
5595
|
+
RenameDialog: Ga
|
|
5593
5596
|
},
|
|
5594
5597
|
mixins: [
|
|
5595
5598
|
wt,
|
|
@@ -6896,42 +6899,42 @@ const $a = /* @__PURE__ */ F(Fa, [["render", Wa], ["__scopeId", "data-v-6d5f94a8
|
|
|
6896
6899
|
}
|
|
6897
6900
|
}
|
|
6898
6901
|
}
|
|
6899
|
-
},
|
|
6902
|
+
}, Ja = {
|
|
6900
6903
|
key: 0,
|
|
6901
6904
|
class: "wm-loading",
|
|
6902
6905
|
"aria-busy": "true",
|
|
6903
6906
|
"aria-live": "polite"
|
|
6904
|
-
},
|
|
6907
|
+
}, Xa = ["aria-label"], Qa = { class: "wm-screens" }, Za = {
|
|
6905
6908
|
key: "error",
|
|
6906
6909
|
class: "wm-screen wm-state"
|
|
6907
|
-
},
|
|
6910
|
+
}, eo = { class: "wm-state__err" }, to = { class: "wm-state__errTitle" }, no = { class: "wm-state__errSub" }, so = {
|
|
6908
6911
|
key: "chat",
|
|
6909
6912
|
class: "wm-screen wm-screen--chat"
|
|
6910
|
-
},
|
|
6913
|
+
}, ro = { class: "wm-bottom" }, io = {
|
|
6911
6914
|
key: 0,
|
|
6912
6915
|
ref: "floatEl",
|
|
6913
6916
|
class: "wm-float"
|
|
6914
|
-
},
|
|
6917
|
+
}, ao = {
|
|
6915
6918
|
key: 1,
|
|
6916
6919
|
class: "wm-actionWait",
|
|
6917
6920
|
role: "status",
|
|
6918
6921
|
"aria-live": "polite"
|
|
6919
|
-
},
|
|
6922
|
+
}, oo = { class: "wm-actionWait__lbl" }, lo = {
|
|
6920
6923
|
key: 2,
|
|
6921
6924
|
class: "wm-attached"
|
|
6922
|
-
},
|
|
6925
|
+
}, co = ["src", "alt"], uo = {
|
|
6923
6926
|
key: 1,
|
|
6924
6927
|
class: "wm-attached__file"
|
|
6925
|
-
},
|
|
6928
|
+
}, ho = { class: "wm-attached__fileMeta" }, mo = { class: "wm-attached__fileName" }, fo = {
|
|
6926
6929
|
key: 0,
|
|
6927
6930
|
class: "wm-attached__fileSize"
|
|
6928
|
-
},
|
|
6931
|
+
}, _o = ["aria-label", "onClick"], go = {
|
|
6929
6932
|
key: 3,
|
|
6930
6933
|
class: "wm-ended",
|
|
6931
6934
|
role: "status",
|
|
6932
6935
|
"aria-live": "polite"
|
|
6933
|
-
},
|
|
6934
|
-
function
|
|
6936
|
+
}, yo = { class: "wm-ended__lbl" };
|
|
6937
|
+
function vo(e, t, s, r, i, n) {
|
|
6935
6938
|
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");
|
|
6936
6939
|
return c(), d("div", {
|
|
6937
6940
|
class: R(["wm-root", `wm-root--${s.displayMode}`]),
|
|
@@ -6958,7 +6961,7 @@ function yo(e, t, s, r, i, n) {
|
|
|
6958
6961
|
"aria-label": "Messenger",
|
|
6959
6962
|
onClick: t[7] || (t[7] = (...x) => n.onPanelClick && n.onPanelClick(...x))
|
|
6960
6963
|
}, [
|
|
6961
|
-
!n.ready && !n.error ? (c(), d("div",
|
|
6964
|
+
!n.ready && !n.error ? (c(), d("div", Ja, [
|
|
6962
6965
|
n.isEmbedded ? b("", !0) : (c(), d("button", {
|
|
6963
6966
|
key: 0,
|
|
6964
6967
|
type: "button",
|
|
@@ -6979,7 +6982,7 @@ function yo(e, t, s, r, i, n) {
|
|
|
6979
6982
|
}, [
|
|
6980
6983
|
l("path", { d: "M18 6L6 18M6 6l12 12" })
|
|
6981
6984
|
], -1)
|
|
6982
|
-
])], 8,
|
|
6985
|
+
])], 8, Xa)),
|
|
6983
6986
|
t[9] || (t[9] = l("div", {
|
|
6984
6987
|
class: "wm-loading__spinner",
|
|
6985
6988
|
"aria-hidden": "true"
|
|
@@ -6999,11 +7002,11 @@ function yo(e, t, s, r, i, n) {
|
|
|
6999
7002
|
onMore: n.toggleMore,
|
|
7000
7003
|
onClose: n.close
|
|
7001
7004
|
}, null, 8, ["title", "team-members", "response-label", "show-identity", "show-back", "show-close", "more-active", "agent-name", "agent-avatar-url", "onBack", "onMore", "onClose"]),
|
|
7002
|
-
l("div",
|
|
7005
|
+
l("div", Qa, [
|
|
7003
7006
|
W(Ae, { name: "wm-none" }, {
|
|
7004
7007
|
default: Se(() => [
|
|
7005
|
-
n.error ? (c(), d("div",
|
|
7006
|
-
l("div",
|
|
7008
|
+
n.error ? (c(), d("div", Za, [
|
|
7009
|
+
l("div", eo, [
|
|
7007
7010
|
t[10] || (t[10] = l("div", { class: "wm-state__errIcon" }, [
|
|
7008
7011
|
l("svg", {
|
|
7009
7012
|
width: "14",
|
|
@@ -7020,8 +7023,8 @@ function yo(e, t, s, r, i, n) {
|
|
|
7020
7023
|
])
|
|
7021
7024
|
], -1)),
|
|
7022
7025
|
l("div", null, [
|
|
7023
|
-
l("div",
|
|
7024
|
-
l("div",
|
|
7026
|
+
l("div", to, y(n.t("error.connectionFailed")), 1),
|
|
7027
|
+
l("div", no, y(n.error), 1)
|
|
7025
7028
|
])
|
|
7026
7029
|
])
|
|
7027
7030
|
])) : !n.currentConv && i.showHistory ? (c(), E(f, {
|
|
@@ -7029,7 +7032,7 @@ function yo(e, t, s, r, i, n) {
|
|
|
7029
7032
|
class: "wm-screen",
|
|
7030
7033
|
threads: n.openThreads,
|
|
7031
7034
|
onResume: n.onDrawerPick
|
|
7032
|
-
}, null, 8, ["threads", "onResume"])) : n.currentConv ? (c(), d("div",
|
|
7035
|
+
}, null, 8, ["threads", "onResume"])) : n.currentConv ? (c(), d("div", so, [
|
|
7033
7036
|
W(v, {
|
|
7034
7037
|
ref: "messageList",
|
|
7035
7038
|
messages: n.displayedMessages,
|
|
@@ -7044,8 +7047,8 @@ function yo(e, t, s, r, i, n) {
|
|
|
7044
7047
|
"ai-agent-avatar-url": n.agentAvatarUrl,
|
|
7045
7048
|
onLoadMore: n.onLoadMore
|
|
7046
7049
|
}, 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"]),
|
|
7047
|
-
l("div",
|
|
7048
|
-
n.floatVisible ? (c(), d("div",
|
|
7050
|
+
l("div", ro, [
|
|
7051
|
+
n.floatVisible ? (c(), d("div", io, [
|
|
7049
7052
|
n.pendingApproval ? (c(), E(T, {
|
|
7050
7053
|
key: `appr-${n.pendingApproval.id}`,
|
|
7051
7054
|
variant: "buttons",
|
|
@@ -7073,16 +7076,16 @@ function yo(e, t, s, r, i, n) {
|
|
|
7073
7076
|
onSelect: n.onSuggestion
|
|
7074
7077
|
}, null, 8, ["items", "onSelect"]))
|
|
7075
7078
|
], 512)) : b("", !0),
|
|
7076
|
-
n.actionInFlight ? (c(), d("div",
|
|
7079
|
+
n.actionInFlight ? (c(), d("div", ao, [
|
|
7077
7080
|
t[11] || (t[11] = l("span", {
|
|
7078
7081
|
class: "wm-actionWait__spinner",
|
|
7079
7082
|
"aria-hidden": "true"
|
|
7080
7083
|
}, null, -1)),
|
|
7081
|
-
l("span",
|
|
7084
|
+
l("span", oo, y(n.t("action.inProgress", {
|
|
7082
7085
|
name: n.actionInFlightName
|
|
7083
7086
|
})), 1)
|
|
7084
7087
|
])) : b("", !0),
|
|
7085
|
-
i.pendingAttachments.length ? (c(), d("div",
|
|
7088
|
+
i.pendingAttachments.length ? (c(), d("div", lo, [
|
|
7086
7089
|
(c(!0), d(B, null, D(i.pendingAttachments, (x, q) => (c(), d("div", {
|
|
7087
7090
|
key: x.path || q,
|
|
7088
7091
|
class: "wm-attached__item"
|
|
@@ -7092,7 +7095,7 @@ function yo(e, t, s, r, i, n) {
|
|
|
7092
7095
|
class: "wm-attached__thumb",
|
|
7093
7096
|
src: x.previewUrl,
|
|
7094
7097
|
alt: x.name
|
|
7095
|
-
}, null, 8,
|
|
7098
|
+
}, null, 8, co)) : (c(), d("div", uo, [
|
|
7096
7099
|
t[12] || (t[12] = l("span", { class: "wm-attached__fileIcon" }, [
|
|
7097
7100
|
l("svg", {
|
|
7098
7101
|
width: "16",
|
|
@@ -7109,9 +7112,9 @@ function yo(e, t, s, r, i, n) {
|
|
|
7109
7112
|
l("path", { d: "M14 2v6h6" })
|
|
7110
7113
|
])
|
|
7111
7114
|
], -1)),
|
|
7112
|
-
l("span",
|
|
7113
|
-
l("span",
|
|
7114
|
-
n.formatAttachmentSize(x.size_bytes) ? (c(), d("span",
|
|
7115
|
+
l("span", ho, [
|
|
7116
|
+
l("span", mo, y(x.name), 1),
|
|
7117
|
+
n.formatAttachmentSize(x.size_bytes) ? (c(), d("span", fo, y(n.formatAttachmentSize(
|
|
7115
7118
|
x.size_bytes
|
|
7116
7119
|
)), 1)) : b("", !0)
|
|
7117
7120
|
])
|
|
@@ -7135,11 +7138,11 @@ function yo(e, t, s, r, i, n) {
|
|
|
7135
7138
|
}, [
|
|
7136
7139
|
l("path", { d: "M18 6L6 18M6 6l12 12" })
|
|
7137
7140
|
], -1)
|
|
7138
|
-
])], 8,
|
|
7141
|
+
])], 8, _o)
|
|
7139
7142
|
]))), 128))
|
|
7140
7143
|
])) : b("", !0),
|
|
7141
|
-
n.endedBlockVisible ? (c(), d("div",
|
|
7142
|
-
l("span",
|
|
7144
|
+
n.endedBlockVisible ? (c(), d("div", go, [
|
|
7145
|
+
l("span", yo, y(n.isClosed ? n.t("composer.conversationClosed") : n.t("composer.conversationEnded")), 1),
|
|
7143
7146
|
l("button", {
|
|
7144
7147
|
type: "button",
|
|
7145
7148
|
class: "wm-ended__btn",
|
|
@@ -7213,7 +7216,7 @@ function yo(e, t, s, r, i, n) {
|
|
|
7213
7216
|
], 6)) : b("", !0)
|
|
7214
7217
|
], 6);
|
|
7215
7218
|
}
|
|
7216
|
-
const
|
|
7219
|
+
const bo = /* @__PURE__ */ F(Ya, [["render", vo], ["__scopeId", "data-v-801581ca"]]), ko = "0.6.32";
|
|
7217
7220
|
export {
|
|
7218
7221
|
me as AIAvatar,
|
|
7219
7222
|
be as AVATAR_COLORS,
|
|
@@ -7224,25 +7227,25 @@ export {
|
|
|
7224
7227
|
ur as ArtifactTicket,
|
|
7225
7228
|
Mr as AttachmentPreview,
|
|
7226
7229
|
Lr as Bubble,
|
|
7227
|
-
|
|
7230
|
+
xi as Composer,
|
|
7228
7231
|
ot as DEFAULT_BASE_URL,
|
|
7229
7232
|
ue as DEFAULT_LANGUAGE,
|
|
7230
|
-
|
|
7231
|
-
|
|
7233
|
+
ka as Feedback,
|
|
7234
|
+
la as FormCard,
|
|
7232
7235
|
_n as Header,
|
|
7233
7236
|
ye as HumanAvatar,
|
|
7234
|
-
|
|
7237
|
+
Pi as InlineCallbacks,
|
|
7235
7238
|
qt as Launcher,
|
|
7236
7239
|
Le as MEDIA_RECORDER_SUPPORTED,
|
|
7237
7240
|
li as MessageList,
|
|
7238
|
-
|
|
7239
|
-
|
|
7241
|
+
bo as Messenger,
|
|
7242
|
+
Fa as MoreMenu,
|
|
7240
7243
|
es as Onboarding,
|
|
7241
7244
|
ge as SCREEN_CAPTURE_SUPPORTED,
|
|
7242
7245
|
ht as SUPPORTED_LANGUAGES,
|
|
7243
7246
|
tn as TeamAvatars,
|
|
7244
7247
|
Pr as Typing,
|
|
7245
|
-
|
|
7248
|
+
ko as VERSION,
|
|
7246
7249
|
xe as avatarColor,
|
|
7247
7250
|
Oe as avatarInitials,
|
|
7248
7251
|
di as captureScreenshotFile,
|
|
@@ -7251,9 +7254,9 @@ export {
|
|
|
7251
7254
|
H as createTranslator,
|
|
7252
7255
|
tt as createTransport,
|
|
7253
7256
|
re as dateLocale,
|
|
7254
|
-
|
|
7257
|
+
bo as default,
|
|
7255
7258
|
Ce as formatTime,
|
|
7256
|
-
|
|
7259
|
+
wo as guessAttachmentKind,
|
|
7257
7260
|
ci as pickRecorderMime,
|
|
7258
7261
|
Ve as renderInlineMarkdown,
|
|
7259
7262
|
_t as renderMarkdown,
|