@_solaris/messenger-widget 0.4.1 → 0.4.2
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/messenger.cjs +5 -5
- package/dist/messenger.embed.js +5 -5
- package/dist/messenger.js +218 -207
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/messenger.js
CHANGED
|
@@ -3479,69 +3479,80 @@ const lr = {
|
|
|
3479
3479
|
}
|
|
3480
3480
|
}, hr = {
|
|
3481
3481
|
key: 0,
|
|
3482
|
+
class: "wm-list__initialLoad",
|
|
3483
|
+
role: "status",
|
|
3484
|
+
"aria-live": "polite",
|
|
3485
|
+
"aria-busy": "true"
|
|
3486
|
+
}, mr = {
|
|
3487
|
+
key: 1,
|
|
3482
3488
|
class: "wm-list__loadMore",
|
|
3483
3489
|
role: "status",
|
|
3484
3490
|
"aria-live": "polite"
|
|
3485
|
-
},
|
|
3486
|
-
key: 1,
|
|
3487
|
-
class: "wm-list__historyEnd"
|
|
3488
|
-
}, _r = {
|
|
3491
|
+
}, fr = { class: "wm-list__loadMore-lbl" }, _r = {
|
|
3489
3492
|
key: 2,
|
|
3493
|
+
class: "wm-list__historyEnd"
|
|
3494
|
+
}, pr = {
|
|
3495
|
+
key: 3,
|
|
3490
3496
|
class: "wm-list__sep"
|
|
3491
|
-
},
|
|
3497
|
+
}, gr = { class: "wm-list__sep-label" }, vr = {
|
|
3492
3498
|
key: 0,
|
|
3493
3499
|
class: "wm-list__sep wm-list__sep--unread"
|
|
3494
|
-
},
|
|
3500
|
+
}, yr = { class: "wm-list__sep-label wm-list__sep-label--unread" }, br = {
|
|
3495
3501
|
key: 0,
|
|
3496
3502
|
class: "wm-list__sysep"
|
|
3497
|
-
},
|
|
3503
|
+
}, wr = { class: "wm-list__sysep-label" }, kr = ["data-row-key"], Cr = {
|
|
3498
3504
|
key: 0,
|
|
3499
3505
|
class: "wm-list__avatarSlot"
|
|
3500
|
-
},
|
|
3506
|
+
}, Ar = {
|
|
3501
3507
|
key: 5,
|
|
3502
3508
|
class: "wm-list__body"
|
|
3503
|
-
},
|
|
3509
|
+
}, Sr = { key: 0 }, Mr = {
|
|
3504
3510
|
key: 1,
|
|
3505
3511
|
"aria-hidden": "true"
|
|
3506
|
-
},
|
|
3507
|
-
key:
|
|
3512
|
+
}, Tr = { key: 2 }, xr = {
|
|
3513
|
+
key: 4,
|
|
3508
3514
|
class: "wm-list__row wm-list__row--ai fade-up"
|
|
3509
|
-
},
|
|
3510
|
-
function
|
|
3515
|
+
}, Or = { class: "wm-list__avatarSlot" };
|
|
3516
|
+
function Lr(e, t, n, i, r, s) {
|
|
3511
3517
|
const a = I("AIAvatar"), l = I("HumanAvatar"), g = I("ActionResult"), C = I("ArtifactRenderer"), k = I("Bubble"), T = I("AttachmentPreview"), B = I("Typing");
|
|
3512
3518
|
return c(), u("div", {
|
|
3513
3519
|
ref: "scrollEl",
|
|
3514
3520
|
class: x(["wm-list", { "wm-list--silent": r.silentFades }]),
|
|
3515
3521
|
onScrollPassive: t[0] || (t[0] = (...A) => s.onScroll && s.onScroll(...A))
|
|
3516
3522
|
}, [
|
|
3517
|
-
n.loadingMore ? (c(), u("div", hr, [
|
|
3518
|
-
|
|
3523
|
+
n.loadingMore && !n.messages.length ? (c(), u("div", hr, [...t[1] || (t[1] = [
|
|
3524
|
+
o("span", {
|
|
3525
|
+
class: "wm-list__loadMore-spinner",
|
|
3526
|
+
"aria-hidden": "true"
|
|
3527
|
+
}, null, -1)
|
|
3528
|
+
])])) : n.loadingMore ? (c(), u("div", mr, [
|
|
3529
|
+
t[2] || (t[2] = o("span", {
|
|
3519
3530
|
class: "wm-list__loadMore-spinner",
|
|
3520
3531
|
"aria-hidden": "true"
|
|
3521
3532
|
}, null, -1)),
|
|
3522
|
-
o("span",
|
|
3523
|
-
])) : s.historyExhausted ? (c(), u("div",
|
|
3524
|
-
n.dateLabel ? (c(), u("div",
|
|
3525
|
-
t[
|
|
3526
|
-
o("span",
|
|
3527
|
-
t[
|
|
3533
|
+
o("span", fr, v(s.t("messageList.loadingHistory")), 1)
|
|
3534
|
+
])) : s.historyExhausted ? (c(), u("div", _r, v(s.t("messageList.conversationStart")), 1)) : b("", !0),
|
|
3535
|
+
n.dateLabel ? (c(), u("div", pr, [
|
|
3536
|
+
t[3] || (t[3] = o("div", { class: "wm-list__line" }, null, -1)),
|
|
3537
|
+
o("span", gr, v(n.dateLabel), 1),
|
|
3538
|
+
t[4] || (t[4] = o("div", { class: "wm-list__line" }, null, -1))
|
|
3528
3539
|
])) : b("", !0),
|
|
3529
3540
|
(c(!0), u(L, null, j(s.groups, (A, H) => (c(), u(L, {
|
|
3530
3541
|
key: A.key
|
|
3531
3542
|
}, [
|
|
3532
|
-
A.key === s.unreadGroupKey ? (c(), u("div",
|
|
3533
|
-
t[
|
|
3534
|
-
o("span",
|
|
3535
|
-
t[
|
|
3543
|
+
A.key === s.unreadGroupKey ? (c(), u("div", vr, [
|
|
3544
|
+
t[5] || (t[5] = o("div", { class: "wm-list__line wm-list__line--unread" }, null, -1)),
|
|
3545
|
+
o("span", yr, v(s.t("messageList.unread")), 1),
|
|
3546
|
+
t[6] || (t[6] = o("div", { class: "wm-list__line wm-list__line--unread" }, null, -1))
|
|
3536
3547
|
])) : b("", !0),
|
|
3537
3548
|
A.role === "system" || A.items.length ? (c(), u("div", {
|
|
3538
3549
|
key: 1,
|
|
3539
3550
|
class: x(["wm-list__group", "wm-list__group--" + A.role])
|
|
3540
3551
|
}, [
|
|
3541
|
-
A.role === "system" ? (c(), u("div",
|
|
3542
|
-
t[
|
|
3543
|
-
o("span",
|
|
3544
|
-
t[
|
|
3552
|
+
A.role === "system" ? (c(), u("div", br, [
|
|
3553
|
+
t[7] || (t[7] = o("div", { class: "wm-list__line wm-list__line--strong" }, null, -1)),
|
|
3554
|
+
o("span", wr, v(A.systemLabel), 1),
|
|
3555
|
+
t[8] || (t[8] = o("div", { class: "wm-list__line wm-list__line--strong" }, null, -1))
|
|
3545
3556
|
])) : (c(), u(L, { key: 1 }, [
|
|
3546
3557
|
(c(!0), u(L, null, j(A.items, (M, D) => (c(), u("div", {
|
|
3547
3558
|
key: `${s.messageKey(M.message)}-${M.partKey}`,
|
|
@@ -3555,7 +3566,7 @@ function Or(e, t, n, i, r, s) {
|
|
|
3555
3566
|
]]),
|
|
3556
3567
|
style: W(s.cornersStyle(A, D))
|
|
3557
3568
|
}, [
|
|
3558
|
-
A.role !== "user" ? (c(), u("div",
|
|
3569
|
+
A.role !== "user" ? (c(), u("div", Cr, [
|
|
3559
3570
|
D === A.items.length - 1 ? (c(), u(L, { key: 0 }, [
|
|
3560
3571
|
A.role === "ai" ? (c(), R(a, {
|
|
3561
3572
|
key: 0,
|
|
@@ -3586,7 +3597,7 @@ function Or(e, t, n, i, r, s) {
|
|
|
3586
3597
|
}, null, 8, ["artifact"])) : M.renderAs === "artifact" ? (c(), R(C, {
|
|
3587
3598
|
key: 4,
|
|
3588
3599
|
artifact: s.artifactOf(M.message)
|
|
3589
|
-
}, null, 8, ["artifact"])) : (c(), u("div",
|
|
3600
|
+
}, null, 8, ["artifact"])) : (c(), u("div", Ar, [
|
|
3590
3601
|
M.message.text_md ? (c(), R(k, {
|
|
3591
3602
|
key: 0,
|
|
3592
3603
|
role: A.role,
|
|
@@ -3606,20 +3617,20 @@ function Or(e, t, n, i, r, s) {
|
|
|
3606
3617
|
}, null, 8, ["attachment"]))), 128))
|
|
3607
3618
|
], 2)) : b("", !0)
|
|
3608
3619
|
]))
|
|
3609
|
-
], 14,
|
|
3620
|
+
], 14, kr))), 128)),
|
|
3610
3621
|
(A.role !== "user" || s.lastTimeOf(A)) && !s.hasTrailingOverlay(A) ? (c(), u("div", {
|
|
3611
3622
|
key: 0,
|
|
3612
3623
|
class: x(["wm-list__meta", { "wm-list__meta--right": A.role === "user" }])
|
|
3613
3624
|
}, [
|
|
3614
|
-
A.role !== "user" ? (c(), u("span",
|
|
3615
|
-
A.role !== "user" && s.lastTimeOf(A) ? (c(), u("span",
|
|
3616
|
-
s.lastTimeOf(A) ? (c(), u("span",
|
|
3625
|
+
A.role !== "user" ? (c(), u("span", Sr, v(s.roleLabel(A)), 1)) : b("", !0),
|
|
3626
|
+
A.role !== "user" && s.lastTimeOf(A) ? (c(), u("span", Mr, "·")) : b("", !0),
|
|
3627
|
+
s.lastTimeOf(A) ? (c(), u("span", Tr, v(s.lastTimeOf(A)), 1)) : b("", !0)
|
|
3617
3628
|
], 2)) : b("", !0)
|
|
3618
3629
|
], 64))
|
|
3619
3630
|
], 2)) : b("", !0)
|
|
3620
3631
|
], 64))), 128)),
|
|
3621
|
-
n.streamingActive ? (c(), u("div",
|
|
3622
|
-
o("div",
|
|
3632
|
+
n.streamingActive ? (c(), u("div", xr, [
|
|
3633
|
+
o("div", Or, [
|
|
3623
3634
|
z(a, {
|
|
3624
3635
|
size: 26,
|
|
3625
3636
|
tail: !0
|
|
@@ -3629,8 +3640,8 @@ function Or(e, t, n, i, r, s) {
|
|
|
3629
3640
|
])) : b("", !0)
|
|
3630
3641
|
], 34);
|
|
3631
3642
|
}
|
|
3632
|
-
const
|
|
3633
|
-
function
|
|
3643
|
+
const Ir = /* @__PURE__ */ E(ur, [["render", Lr], ["__scopeId", "data-v-9748afc2"]]), he = typeof navigator < "u" && !!navigator.mediaDevices && typeof navigator.mediaDevices.getDisplayMedia == "function", ve = typeof window < "u" && typeof window.MediaRecorder < "u";
|
|
3644
|
+
function Er() {
|
|
3634
3645
|
return ve && [
|
|
3635
3646
|
"video/webm;codecs=vp9,opus",
|
|
3636
3647
|
"video/webm;codecs=vp8,opus",
|
|
@@ -3650,10 +3661,10 @@ function Re({ audio: e }) {
|
|
|
3650
3661
|
systemAudio: e ? "include" : "exclude"
|
|
3651
3662
|
};
|
|
3652
3663
|
}
|
|
3653
|
-
function
|
|
3664
|
+
function $a(e) {
|
|
3654
3665
|
return e ? e.startsWith("image/") ? "image" : e.startsWith("video/") ? "video" : "file" : "file";
|
|
3655
3666
|
}
|
|
3656
|
-
async function
|
|
3667
|
+
async function Br() {
|
|
3657
3668
|
if (!he) return null;
|
|
3658
3669
|
let e;
|
|
3659
3670
|
try {
|
|
@@ -3664,7 +3675,7 @@ async function Er() {
|
|
|
3664
3675
|
return (t == null ? void 0 : t.name) !== "NotAllowedError" && console.error("[media] screenshot picker", t), null;
|
|
3665
3676
|
}
|
|
3666
3677
|
try {
|
|
3667
|
-
return await
|
|
3678
|
+
return await Rr(e);
|
|
3668
3679
|
} catch (t) {
|
|
3669
3680
|
return console.error("[media] screenshot capture", t), null;
|
|
3670
3681
|
} finally {
|
|
@@ -3673,7 +3684,7 @@ async function Er() {
|
|
|
3673
3684
|
});
|
|
3674
3685
|
}
|
|
3675
3686
|
}
|
|
3676
|
-
async function
|
|
3687
|
+
async function Rr(e) {
|
|
3677
3688
|
const t = document.createElement("video");
|
|
3678
3689
|
t.muted = !0, t.playsInline = !0, t.srcObject = e, await t.play(), await new Promise((l) => requestAnimationFrame(l));
|
|
3679
3690
|
const n = t.videoWidth || 1280, i = t.videoHeight || 720, r = document.createElement("canvas");
|
|
@@ -3686,7 +3697,7 @@ async function Br(e) {
|
|
|
3686
3697
|
}), a = (/* @__PURE__ */ new Date()).toISOString().replace(/[:.]/g, "-").slice(0, 19);
|
|
3687
3698
|
return new File([s], `capture-${a}.png`, { type: "image/png" });
|
|
3688
3699
|
}
|
|
3689
|
-
async function
|
|
3700
|
+
async function Nr(e = {}) {
|
|
3690
3701
|
var C;
|
|
3691
3702
|
if (!he || !ve) return null;
|
|
3692
3703
|
let t;
|
|
@@ -3697,7 +3708,7 @@ async function Rr(e = {}) {
|
|
|
3697
3708
|
} catch (k) {
|
|
3698
3709
|
return (k == null ? void 0 : k.name) !== "NotAllowedError" && console.error("[media] record picker", k), null;
|
|
3699
3710
|
}
|
|
3700
|
-
const n =
|
|
3711
|
+
const n = Er();
|
|
3701
3712
|
let i;
|
|
3702
3713
|
try {
|
|
3703
3714
|
i = n ? new window.MediaRecorder(t, { mimeType: n }) : new window.MediaRecorder(t);
|
|
@@ -3751,7 +3762,7 @@ async function Rr(e = {}) {
|
|
|
3751
3762
|
}
|
|
3752
3763
|
};
|
|
3753
3764
|
}
|
|
3754
|
-
const
|
|
3765
|
+
const Fr = [
|
|
3755
3766
|
{
|
|
3756
3767
|
action: "file",
|
|
3757
3768
|
labelKey: "composer.attachFile",
|
|
@@ -3767,7 +3778,7 @@ const Nr = [
|
|
|
3767
3778
|
labelKey: "composer.recordScreen",
|
|
3768
3779
|
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"
|
|
3769
3780
|
}
|
|
3770
|
-
],
|
|
3781
|
+
], jr = {
|
|
3771
3782
|
name: "WmComposer",
|
|
3772
3783
|
inject: {
|
|
3773
3784
|
// Translator shared by the Messenger shell; French fallback when
|
|
@@ -3795,7 +3806,7 @@ const Nr = [
|
|
|
3795
3806
|
return !this.disabled && !!this.local.trim();
|
|
3796
3807
|
},
|
|
3797
3808
|
attachItems() {
|
|
3798
|
-
return
|
|
3809
|
+
return Fr.map((e) => ({
|
|
3799
3810
|
...e,
|
|
3800
3811
|
label: this.t(e.labelKey),
|
|
3801
3812
|
disabled: e.action === "screenshot" && !he || e.action === "record" && (!he || !ve)
|
|
@@ -3868,13 +3879,13 @@ const Nr = [
|
|
|
3868
3879
|
},
|
|
3869
3880
|
async captureScreenshot() {
|
|
3870
3881
|
if (this.disabled) return;
|
|
3871
|
-
const e = await
|
|
3882
|
+
const e = await Br();
|
|
3872
3883
|
e && this.$emit("attach", e);
|
|
3873
3884
|
},
|
|
3874
3885
|
async startRecording() {
|
|
3875
3886
|
if (this.recording || this.disabled) return;
|
|
3876
3887
|
this.recordingElapsed = 0;
|
|
3877
|
-
const e = await
|
|
3888
|
+
const e = await Nr({
|
|
3878
3889
|
onstart: () => {
|
|
3879
3890
|
this.recording = !0;
|
|
3880
3891
|
},
|
|
@@ -3899,27 +3910,27 @@ const Nr = [
|
|
|
3899
3910
|
}
|
|
3900
3911
|
}
|
|
3901
3912
|
}
|
|
3902
|
-
},
|
|
3913
|
+
}, Pr = { class: "wm-compose-wrap" }, Dr = {
|
|
3903
3914
|
key: 0,
|
|
3904
3915
|
class: "wm-rec"
|
|
3905
|
-
},
|
|
3916
|
+
}, Ur = { class: "wm-rec__lbl" }, $r = {
|
|
3906
3917
|
key: 1,
|
|
3907
3918
|
class: "wm-compose__menu",
|
|
3908
3919
|
role: "menu"
|
|
3909
|
-
},
|
|
3920
|
+
}, Hr = ["disabled", "onClick"], zr = { class: "wm-compose__menuIcon" }, qr = {
|
|
3910
3921
|
viewBox: "0 0 24 24",
|
|
3911
3922
|
width: "14",
|
|
3912
3923
|
height: "14",
|
|
3913
3924
|
"aria-hidden": "true"
|
|
3914
|
-
},
|
|
3915
|
-
function
|
|
3916
|
-
return c(), u("div",
|
|
3917
|
-
r.recording ? (c(), u("div",
|
|
3925
|
+
}, Vr = ["d"], Wr = ["placeholder", "disabled"], Kr = { class: "wm-compose__actions" }, Gr = ["title", "aria-label", "disabled"], Yr = ["disabled", "aria-label"];
|
|
3926
|
+
function Qr(e, t, n, i, r, s) {
|
|
3927
|
+
return c(), u("div", Pr, [
|
|
3928
|
+
r.recording ? (c(), u("div", Dr, [
|
|
3918
3929
|
t[8] || (t[8] = o("span", {
|
|
3919
3930
|
class: "wm-rec__dot",
|
|
3920
3931
|
"aria-hidden": "true"
|
|
3921
3932
|
}, null, -1)),
|
|
3922
|
-
o("span",
|
|
3933
|
+
o("span", Ur, v(s.t("composer.recording", { time: s.recordingElapsedLabel })), 1),
|
|
3923
3934
|
o("button", {
|
|
3924
3935
|
type: "button",
|
|
3925
3936
|
class: "wm-rec__stop",
|
|
@@ -3942,7 +3953,7 @@ function Yr(e, t, n, i, r, s) {
|
|
|
3942
3953
|
class: "wm-compose__overlay",
|
|
3943
3954
|
onClick: t[2] || (t[2] = (a) => r.attachOpen = !1)
|
|
3944
3955
|
})) : b("", !0),
|
|
3945
|
-
r.attachOpen ? (c(), u("div",
|
|
3956
|
+
r.attachOpen ? (c(), u("div", $r, [
|
|
3946
3957
|
(c(!0), u(L, null, j(s.attachItems, (a) => (c(), u("button", {
|
|
3947
3958
|
key: a.action,
|
|
3948
3959
|
type: "button",
|
|
@@ -3950,8 +3961,8 @@ function Yr(e, t, n, i, r, s) {
|
|
|
3950
3961
|
disabled: a.disabled,
|
|
3951
3962
|
onClick: (l) => s.onAttachAction(a.action)
|
|
3952
3963
|
}, [
|
|
3953
|
-
o("span",
|
|
3954
|
-
(c(), u("svg",
|
|
3964
|
+
o("span", zr, [
|
|
3965
|
+
(c(), u("svg", qr, [
|
|
3955
3966
|
o("path", {
|
|
3956
3967
|
d: a.path,
|
|
3957
3968
|
stroke: "currentColor",
|
|
@@ -3959,11 +3970,11 @@ function Yr(e, t, n, i, r, s) {
|
|
|
3959
3970
|
"stroke-linecap": "round",
|
|
3960
3971
|
"stroke-linejoin": "round",
|
|
3961
3972
|
fill: "none"
|
|
3962
|
-
}, null, 8,
|
|
3973
|
+
}, null, 8, Vr)
|
|
3963
3974
|
]))
|
|
3964
3975
|
]),
|
|
3965
3976
|
o("span", null, v(a.label), 1)
|
|
3966
|
-
], 8,
|
|
3977
|
+
], 8, Hr))), 128))
|
|
3967
3978
|
])) : b("", !0),
|
|
3968
3979
|
V(o("textarea", {
|
|
3969
3980
|
ref: "inputEl",
|
|
@@ -3974,10 +3985,10 @@ function Yr(e, t, n, i, r, s) {
|
|
|
3974
3985
|
disabled: n.disabled,
|
|
3975
3986
|
onKeydown: t[4] || (t[4] = (...a) => s.onKeydown && s.onKeydown(...a)),
|
|
3976
3987
|
onInput: t[5] || (t[5] = (...a) => s.autosize && s.autosize(...a))
|
|
3977
|
-
}, null, 40,
|
|
3988
|
+
}, null, 40, Wr), [
|
|
3978
3989
|
[Z, r.local]
|
|
3979
3990
|
]),
|
|
3980
|
-
o("div",
|
|
3991
|
+
o("div", Kr, [
|
|
3981
3992
|
o("button", {
|
|
3982
3993
|
type: "button",
|
|
3983
3994
|
class: x(["wm-compose__icon", { "is-open": r.attachOpen }]),
|
|
@@ -3999,7 +4010,7 @@ function Yr(e, t, n, i, r, s) {
|
|
|
3999
4010
|
}, [
|
|
4000
4011
|
o("path", { d: "M21.44 11.05l-9.19 9.19a6 6 0 01-8.49-8.49l9.19-9.19a4 4 0 015.66 5.66l-9.2 9.19a2 2 0 01-2.83-2.83l8.49-8.48" })
|
|
4001
4012
|
], -1)
|
|
4002
|
-
])], 10,
|
|
4013
|
+
])], 10, Gr),
|
|
4003
4014
|
o("button", {
|
|
4004
4015
|
type: "submit",
|
|
4005
4016
|
class: x(["wm-compose__send", { "is-empty": !s.canSend }]),
|
|
@@ -4019,12 +4030,12 @@ function Yr(e, t, n, i, r, s) {
|
|
|
4019
4030
|
}, [
|
|
4020
4031
|
o("path", { d: "M22 2L11 13M22 2l-7 20-4-9-9-4 20-7z" })
|
|
4021
4032
|
], -1)
|
|
4022
|
-
])], 10,
|
|
4033
|
+
])], 10, Yr)
|
|
4023
4034
|
])
|
|
4024
4035
|
], 34)
|
|
4025
4036
|
]);
|
|
4026
4037
|
}
|
|
4027
|
-
const
|
|
4038
|
+
const Xr = /* @__PURE__ */ E(jr, [["render", Qr], ["__scopeId", "data-v-aa81dbb8"]]), Jr = {
|
|
4028
4039
|
name: "WmSuggestionChips",
|
|
4029
4040
|
props: {
|
|
4030
4041
|
items: { type: Array, default: () => [] },
|
|
@@ -4041,8 +4052,8 @@ const Qr = /* @__PURE__ */ E(Fr, [["render", Yr], ["__scopeId", "data-v-aa81dbb8
|
|
|
4041
4052
|
return this.items.map((e) => (e == null ? void 0 : e.label) || (e == null ? void 0 : e.text) || "").join("§");
|
|
4042
4053
|
}
|
|
4043
4054
|
}
|
|
4044
|
-
},
|
|
4045
|
-
function
|
|
4055
|
+
}, Zr = ["onClick"];
|
|
4056
|
+
function ei(e, t, n, i, r, s) {
|
|
4046
4057
|
return n.items.length ? (c(), u("div", {
|
|
4047
4058
|
key: s.batchKey,
|
|
4048
4059
|
class: "wm-chips"
|
|
@@ -4053,10 +4064,10 @@ function Zr(e, t, n, i, r, s) {
|
|
|
4053
4064
|
class: "wm-chip",
|
|
4054
4065
|
style: W({ animationDelay: n.baseDelay + l * n.stepDelay + "ms" }),
|
|
4055
4066
|
onClick: (g) => e.$emit("select", a)
|
|
4056
|
-
}, v(a.label), 13,
|
|
4067
|
+
}, v(a.label), 13, Zr))), 128))
|
|
4057
4068
|
])) : b("", !0);
|
|
4058
4069
|
}
|
|
4059
|
-
const
|
|
4070
|
+
const ti = /* @__PURE__ */ E(Jr, [["render", ei], ["__scopeId", "data-v-47ad8085"]]), ni = {
|
|
4060
4071
|
name: "WmApprovalCard",
|
|
4061
4072
|
components: { AIAvatar: le },
|
|
4062
4073
|
inject: {
|
|
@@ -4098,23 +4109,23 @@ const ei = /* @__PURE__ */ E(Xr, [["render", Zr], ["__scopeId", "data-v-47ad8085
|
|
|
4098
4109
|
return ((e = this.rejectCallback) == null ? void 0 : e.label) || this.t("approval.reject");
|
|
4099
4110
|
}
|
|
4100
4111
|
}
|
|
4101
|
-
},
|
|
4112
|
+
}, si = { class: "wm-approval" }, ri = { class: "wm-approval__head" }, ii = { class: "wm-approval__icon" }, ai = { class: "wm-approval__main" }, oi = { class: "wm-approval__title" }, li = {
|
|
4102
4113
|
key: 0,
|
|
4103
4114
|
class: "wm-approval__detail"
|
|
4104
|
-
},
|
|
4105
|
-
function
|
|
4115
|
+
}, ci = { class: "wm-approval__actions" };
|
|
4116
|
+
function di(e, t, n, i, r, s) {
|
|
4106
4117
|
const a = I("AIAvatar");
|
|
4107
|
-
return c(), u("div",
|
|
4108
|
-
o("div",
|
|
4109
|
-
o("div",
|
|
4118
|
+
return c(), u("div", si, [
|
|
4119
|
+
o("div", ri, [
|
|
4120
|
+
o("div", ii, [
|
|
4110
4121
|
z(a, { size: 24 })
|
|
4111
4122
|
]),
|
|
4112
|
-
o("div",
|
|
4113
|
-
o("div",
|
|
4114
|
-
n.detail ? (c(), u("div",
|
|
4123
|
+
o("div", ai, [
|
|
4124
|
+
o("div", oi, v(n.action), 1),
|
|
4125
|
+
n.detail ? (c(), u("div", li, v(n.detail), 1)) : b("", !0)
|
|
4115
4126
|
])
|
|
4116
4127
|
]),
|
|
4117
|
-
o("div",
|
|
4128
|
+
o("div", ci, [
|
|
4118
4129
|
s.rejectId ? (c(), u("button", {
|
|
4119
4130
|
key: 0,
|
|
4120
4131
|
type: "button",
|
|
@@ -4130,9 +4141,9 @@ function ci(e, t, n, i, r, s) {
|
|
|
4130
4141
|
])
|
|
4131
4142
|
]);
|
|
4132
4143
|
}
|
|
4133
|
-
const
|
|
4144
|
+
const ui = /* @__PURE__ */ E(ni, [["render", di], ["__scopeId", "data-v-53ddf2b2"]]);
|
|
4134
4145
|
let Me = 0;
|
|
4135
|
-
const
|
|
4146
|
+
const hi = /* @__PURE__ */ new Set([
|
|
4136
4147
|
"text",
|
|
4137
4148
|
"textarea",
|
|
4138
4149
|
"number",
|
|
@@ -4140,7 +4151,7 @@ const ui = /* @__PURE__ */ new Set([
|
|
|
4140
4151
|
"select",
|
|
4141
4152
|
"multiselect",
|
|
4142
4153
|
"date"
|
|
4143
|
-
]),
|
|
4154
|
+
]), mi = {
|
|
4144
4155
|
name: "WmFormCard",
|
|
4145
4156
|
components: { AIAvatar: le },
|
|
4146
4157
|
inject: {
|
|
@@ -4168,7 +4179,7 @@ const ui = /* @__PURE__ */ new Set([
|
|
|
4168
4179
|
// douteux.
|
|
4169
4180
|
normalizedFields() {
|
|
4170
4181
|
var t;
|
|
4171
|
-
return (Array.isArray((t = this.form) == null ? void 0 : t.fields) ? this.form.fields : []).filter((n) => !(!(n != null && n.key) || !(n != null && n.label) || !
|
|
4182
|
+
return (Array.isArray((t = this.form) == null ? void 0 : t.fields) ? this.form.fields : []).filter((n) => !(!(n != null && n.key) || !(n != null && n.label) || !hi.has(n == null ? void 0 : n.type) || (n.type === "select" || n.type === "multiselect") && (!Array.isArray(n.options) || n.options.length === 0)));
|
|
4172
4183
|
}
|
|
4173
4184
|
},
|
|
4174
4185
|
created() {
|
|
@@ -4221,43 +4232,43 @@ const ui = /* @__PURE__ */ new Set([
|
|
|
4221
4232
|
}
|
|
4222
4233
|
}
|
|
4223
4234
|
}
|
|
4224
|
-
},
|
|
4235
|
+
}, fi = { class: "wm-form" }, _i = { class: "wm-form__head" }, pi = { class: "wm-form__icon" }, gi = { class: "wm-form__main" }, vi = { class: "wm-form__title" }, yi = {
|
|
4225
4236
|
key: 0,
|
|
4226
4237
|
class: "wm-form__detail"
|
|
4227
|
-
},
|
|
4238
|
+
}, bi = ["for"], wi = {
|
|
4228
4239
|
key: 0,
|
|
4229
4240
|
class: "wm-form__req",
|
|
4230
4241
|
"aria-hidden": "true"
|
|
4231
|
-
},
|
|
4242
|
+
}, ki = ["id", "onUpdate:modelValue", "placeholder", "required", "disabled"], Ci = ["id", "onUpdate:modelValue", "placeholder", "required", "disabled"], Ai = ["id", "onUpdate:modelValue", "placeholder", "required", "disabled"], Si = ["id", "onUpdate:modelValue", "required", "disabled"], Mi = {
|
|
4232
4243
|
key: 4,
|
|
4233
4244
|
class: "wm-form__bool"
|
|
4234
|
-
},
|
|
4245
|
+
}, Ti = ["id", "onUpdate:modelValue", "disabled"], xi = ["id", "onUpdate:modelValue", "required", "disabled"], Oi = {
|
|
4235
4246
|
value: "",
|
|
4236
4247
|
disabled: ""
|
|
4237
|
-
},
|
|
4248
|
+
}, Li = ["value"], Ii = {
|
|
4238
4249
|
key: 6,
|
|
4239
4250
|
class: "wm-form__multi"
|
|
4240
|
-
},
|
|
4251
|
+
}, Ei = ["value", "checked", "disabled", "onChange"], Bi = {
|
|
4241
4252
|
key: 0,
|
|
4242
4253
|
class: "wm-form__err"
|
|
4243
|
-
},
|
|
4254
|
+
}, Ri = ["disabled"], Ni = {
|
|
4244
4255
|
key: 0,
|
|
4245
4256
|
class: "wm-form__spinner",
|
|
4246
4257
|
"aria-hidden": "true"
|
|
4247
|
-
},
|
|
4258
|
+
}, Fi = {
|
|
4248
4259
|
key: 2,
|
|
4249
4260
|
class: "wm-form__doneLbl"
|
|
4250
4261
|
};
|
|
4251
|
-
function
|
|
4262
|
+
function ji(e, t, n, i, r, s) {
|
|
4252
4263
|
const a = I("AIAvatar");
|
|
4253
|
-
return c(), u("div",
|
|
4254
|
-
o("div",
|
|
4255
|
-
o("div",
|
|
4264
|
+
return c(), u("div", fi, [
|
|
4265
|
+
o("div", _i, [
|
|
4266
|
+
o("div", pi, [
|
|
4256
4267
|
z(a, { size: 24 })
|
|
4257
4268
|
]),
|
|
4258
|
-
o("div",
|
|
4259
|
-
o("div",
|
|
4260
|
-
n.form.description ? (c(), u("div",
|
|
4269
|
+
o("div", gi, [
|
|
4270
|
+
o("div", vi, v(n.form.title || s.t("form.title")), 1),
|
|
4271
|
+
n.form.description ? (c(), u("div", yi, v(n.form.description), 1)) : b("", !0)
|
|
4261
4272
|
])
|
|
4262
4273
|
]),
|
|
4263
4274
|
o("form", {
|
|
@@ -4273,8 +4284,8 @@ function Fi(e, t, n, i, r, s) {
|
|
|
4273
4284
|
class: "wm-form__label"
|
|
4274
4285
|
}, [
|
|
4275
4286
|
pe(v(l.label), 1),
|
|
4276
|
-
l.required ? (c(), u("span",
|
|
4277
|
-
], 8,
|
|
4287
|
+
l.required ? (c(), u("span", wi, "*")) : b("", !0)
|
|
4288
|
+
], 8, bi),
|
|
4278
4289
|
l.type === "text" ? V((c(), u("input", {
|
|
4279
4290
|
key: 0,
|
|
4280
4291
|
id: `wm-f-${r._uid}-${l.key}`,
|
|
@@ -4284,7 +4295,7 @@ function Fi(e, t, n, i, r, s) {
|
|
|
4284
4295
|
placeholder: l.placeholder || "",
|
|
4285
4296
|
required: l.required,
|
|
4286
4297
|
disabled: n.readOnly || r.busy
|
|
4287
|
-
}, null, 8,
|
|
4298
|
+
}, null, 8, ki)), [
|
|
4288
4299
|
[Z, r.values[l.key]]
|
|
4289
4300
|
]) : l.type === "textarea" ? V((c(), u("textarea", {
|
|
4290
4301
|
key: 1,
|
|
@@ -4295,7 +4306,7 @@ function Fi(e, t, n, i, r, s) {
|
|
|
4295
4306
|
placeholder: l.placeholder || "",
|
|
4296
4307
|
required: l.required,
|
|
4297
4308
|
disabled: n.readOnly || r.busy
|
|
4298
|
-
}, null, 8,
|
|
4309
|
+
}, null, 8, Ci)), [
|
|
4299
4310
|
[Z, r.values[l.key]]
|
|
4300
4311
|
]) : l.type === "number" ? V((c(), u("input", {
|
|
4301
4312
|
key: 2,
|
|
@@ -4306,7 +4317,7 @@ function Fi(e, t, n, i, r, s) {
|
|
|
4306
4317
|
placeholder: l.placeholder || "",
|
|
4307
4318
|
required: l.required,
|
|
4308
4319
|
disabled: n.readOnly || r.busy
|
|
4309
|
-
}, null, 8,
|
|
4320
|
+
}, null, 8, Ai)), [
|
|
4310
4321
|
[
|
|
4311
4322
|
Z,
|
|
4312
4323
|
r.values[l.key],
|
|
@@ -4321,15 +4332,15 @@ function Fi(e, t, n, i, r, s) {
|
|
|
4321
4332
|
class: "wm-form__input",
|
|
4322
4333
|
required: l.required,
|
|
4323
4334
|
disabled: n.readOnly || r.busy
|
|
4324
|
-
}, null, 8,
|
|
4335
|
+
}, null, 8, Si)), [
|
|
4325
4336
|
[Z, r.values[l.key]]
|
|
4326
|
-
]) : l.type === "boolean" ? (c(), u("label",
|
|
4337
|
+
]) : l.type === "boolean" ? (c(), u("label", Mi, [
|
|
4327
4338
|
V(o("input", {
|
|
4328
4339
|
id: `wm-f-${r._uid}-${l.key}`,
|
|
4329
4340
|
"onUpdate:modelValue": (g) => r.values[l.key] = g,
|
|
4330
4341
|
type: "checkbox",
|
|
4331
4342
|
disabled: n.readOnly || r.busy
|
|
4332
|
-
}, null, 8,
|
|
4343
|
+
}, null, 8, Ti), [
|
|
4333
4344
|
[$e, r.values[l.key]]
|
|
4334
4345
|
]),
|
|
4335
4346
|
o("span", null, v(l.placeholder || s.t("common.yes")), 1)
|
|
@@ -4341,14 +4352,14 @@ function Fi(e, t, n, i, r, s) {
|
|
|
4341
4352
|
required: l.required,
|
|
4342
4353
|
disabled: n.readOnly || r.busy
|
|
4343
4354
|
}, [
|
|
4344
|
-
o("option",
|
|
4355
|
+
o("option", Oi, v(l.placeholder || s.t("form.choose")), 1),
|
|
4345
4356
|
(c(!0), u(L, null, j(l.options, (g) => (c(), u("option", {
|
|
4346
4357
|
key: g.value,
|
|
4347
4358
|
value: g.value
|
|
4348
|
-
}, v(g.label), 9,
|
|
4349
|
-
], 8,
|
|
4359
|
+
}, v(g.label), 9, Li))), 128))
|
|
4360
|
+
], 8, xi)), [
|
|
4350
4361
|
[He, r.values[l.key]]
|
|
4351
|
-
]) : l.type === "multiselect" ? (c(), u("div",
|
|
4362
|
+
]) : l.type === "multiselect" ? (c(), u("div", Ii, [
|
|
4352
4363
|
(c(!0), u(L, null, j(l.options, (g) => (c(), u("label", {
|
|
4353
4364
|
key: g.value,
|
|
4354
4365
|
class: "wm-form__multiItem"
|
|
@@ -4363,25 +4374,25 @@ function Fi(e, t, n, i, r, s) {
|
|
|
4363
4374
|
g.value,
|
|
4364
4375
|
C.target.checked
|
|
4365
4376
|
)
|
|
4366
|
-
}, null, 40,
|
|
4377
|
+
}, null, 40, Ei),
|
|
4367
4378
|
o("span", null, v(g.label), 1)
|
|
4368
4379
|
]))), 128))
|
|
4369
4380
|
])) : b("", !0)
|
|
4370
4381
|
]))), 128)),
|
|
4371
|
-
r.error ? (c(), u("div",
|
|
4372
|
-
n.readOnly ? (c(), u("div",
|
|
4382
|
+
r.error ? (c(), u("div", Bi, v(r.error), 1)) : b("", !0),
|
|
4383
|
+
n.readOnly ? (c(), u("div", Fi, v(s.t("form.responseSent")), 1)) : (c(), u("button", {
|
|
4373
4384
|
key: 1,
|
|
4374
4385
|
type: "submit",
|
|
4375
4386
|
class: "wm-form__submit",
|
|
4376
4387
|
disabled: r.busy
|
|
4377
4388
|
}, [
|
|
4378
|
-
r.busy ? (c(), u("span",
|
|
4389
|
+
r.busy ? (c(), u("span", Ni)) : b("", !0),
|
|
4379
4390
|
o("span", null, v(r.busy ? s.t("common.sending") : n.form.submit_label || s.t("common.send")), 1)
|
|
4380
|
-
], 8,
|
|
4391
|
+
], 8, Ri))
|
|
4381
4392
|
], 32)
|
|
4382
4393
|
]);
|
|
4383
4394
|
}
|
|
4384
|
-
const
|
|
4395
|
+
const Pi = /* @__PURE__ */ E(mi, [["render", ji], ["__scopeId", "data-v-75332dad"]]), Di = {
|
|
4385
4396
|
name: "WmFeedback",
|
|
4386
4397
|
inject: {
|
|
4387
4398
|
// Translator shared by the Messenger shell; French fallback when
|
|
@@ -4415,13 +4426,13 @@ const ji = /* @__PURE__ */ E(hi, [["render", Fi], ["__scopeId", "data-v-75332dad
|
|
|
4415
4426
|
!this.sel || this.busy || this.$emit("submit", { rating: this.sel });
|
|
4416
4427
|
}
|
|
4417
4428
|
}
|
|
4418
|
-
},
|
|
4429
|
+
}, Ui = { class: "wm-fb" }, $i = { class: "wm-fb__title" }, Hi = { class: "wm-fb__sub" }, zi = { class: "wm-fb__row" }, qi = ["onClick"], Vi = { class: "wm-fb__emoji" }, Wi = { class: "wm-fb__label" }, Ki = ["disabled"], Gi = {
|
|
4419
4430
|
key: 1,
|
|
4420
4431
|
class: "wm-fb__done"
|
|
4421
|
-
},
|
|
4422
|
-
function
|
|
4423
|
-
return c(), u("div",
|
|
4424
|
-
n.done ? (c(), u("div",
|
|
4432
|
+
}, Yi = { class: "wm-fb__doneTitle" }, Qi = { class: "wm-fb__doneSub" };
|
|
4433
|
+
function Xi(e, t, n, i, r, s) {
|
|
4434
|
+
return c(), u("div", Ui, [
|
|
4435
|
+
n.done ? (c(), u("div", Gi, [
|
|
4425
4436
|
t[1] || (t[1] = o("div", { class: "wm-fb__check" }, [
|
|
4426
4437
|
o("svg", {
|
|
4427
4438
|
width: "16",
|
|
@@ -4437,32 +4448,32 @@ function Qi(e, t, n, i, r, s) {
|
|
|
4437
4448
|
o("path", { d: "M20 6L9 17l-5-5" })
|
|
4438
4449
|
])
|
|
4439
4450
|
], -1)),
|
|
4440
|
-
o("div",
|
|
4441
|
-
o("div",
|
|
4451
|
+
o("div", Yi, v(s.t("feedback.doneTitle")), 1),
|
|
4452
|
+
o("div", Qi, v(s.t("feedback.doneSubtitle")), 1)
|
|
4442
4453
|
])) : (c(), u(L, { key: 0 }, [
|
|
4443
|
-
o("div",
|
|
4444
|
-
o("div",
|
|
4445
|
-
o("div",
|
|
4454
|
+
o("div", $i, v(s.t("feedback.question")), 1),
|
|
4455
|
+
o("div", Hi, v(s.t("feedback.subtitle")), 1),
|
|
4456
|
+
o("div", zi, [
|
|
4446
4457
|
(c(!0), u(L, null, j(s.options, (a) => (c(), u("button", {
|
|
4447
4458
|
key: a.v,
|
|
4448
4459
|
type: "button",
|
|
4449
4460
|
class: x(["wm-fb__opt", { "is-selected": r.sel === a.v }]),
|
|
4450
4461
|
onClick: (l) => r.sel = a.v
|
|
4451
4462
|
}, [
|
|
4452
|
-
o("span",
|
|
4453
|
-
o("span",
|
|
4454
|
-
], 10,
|
|
4463
|
+
o("span", Vi, v(a.e), 1),
|
|
4464
|
+
o("span", Wi, v(a.l), 1)
|
|
4465
|
+
], 10, qi))), 128))
|
|
4455
4466
|
]),
|
|
4456
4467
|
o("button", {
|
|
4457
4468
|
type: "button",
|
|
4458
4469
|
class: "wm-fb__send",
|
|
4459
4470
|
disabled: !r.sel || n.busy,
|
|
4460
4471
|
onClick: t[0] || (t[0] = (...a) => s.onSend && s.onSend(...a))
|
|
4461
|
-
}, v(n.busy ? s.t("common.sending") : s.t("feedback.submit")), 9,
|
|
4472
|
+
}, v(n.busy ? s.t("common.sending") : s.t("feedback.submit")), 9, Ki)
|
|
4462
4473
|
], 64))
|
|
4463
4474
|
]);
|
|
4464
4475
|
}
|
|
4465
|
-
const
|
|
4476
|
+
const Ji = /* @__PURE__ */ E(Di, [["render", Xi], ["__scopeId", "data-v-9b630564"]]), Zi = {
|
|
4466
4477
|
name: "WmMoreMenu",
|
|
4467
4478
|
inject: {
|
|
4468
4479
|
// Translator shared by the Messenger shell; French fallback when
|
|
@@ -4505,24 +4516,24 @@ const Xi = /* @__PURE__ */ E(Pi, [["render", Qi], ["__scopeId", "data-v-9b630564
|
|
|
4505
4516
|
this.browserNotifOn = !this.browserNotifOn, this.$emit("browser-notif-toggle", this.browserNotifOn);
|
|
4506
4517
|
}
|
|
4507
4518
|
}
|
|
4508
|
-
},
|
|
4519
|
+
}, ea = { class: "wm-mm" }, ta = {
|
|
4509
4520
|
class: "wm-mm__pop",
|
|
4510
4521
|
role: "menu"
|
|
4511
|
-
},
|
|
4522
|
+
}, na = {
|
|
4512
4523
|
key: 0,
|
|
4513
4524
|
class: "wm-mm__section"
|
|
4514
|
-
},
|
|
4525
|
+
}, sa = { class: "wm-mm__label" }, ra = { class: "wm-mm__label" }, ia = {
|
|
4515
4526
|
key: 1,
|
|
4516
4527
|
class: "wm-mm__sep"
|
|
4517
|
-
},
|
|
4518
|
-
function
|
|
4519
|
-
return c(), u("div",
|
|
4528
|
+
}, aa = { class: "wm-mm__section" }, oa = { class: "wm-mm__label" }, la = { class: "wm-mm__label" }, ca = { class: "wm-mm__section" }, da = { class: "wm-mm__label" }, ua = { class: "wm-mm__label" };
|
|
4529
|
+
function ha(e, t, n, i, r, s) {
|
|
4530
|
+
return c(), u("div", ea, [
|
|
4520
4531
|
o("div", {
|
|
4521
4532
|
class: "wm-mm__scrim",
|
|
4522
4533
|
onClick: t[0] || (t[0] = (a) => e.$emit("close"))
|
|
4523
4534
|
}),
|
|
4524
|
-
o("div",
|
|
4525
|
-
n.canRename || n.canExport ? (c(), u("div",
|
|
4535
|
+
o("div", ta, [
|
|
4536
|
+
n.canRename || n.canExport ? (c(), u("div", na, [
|
|
4526
4537
|
n.canRename ? (c(), u("button", {
|
|
4527
4538
|
key: 0,
|
|
4528
4539
|
type: "button",
|
|
@@ -4545,7 +4556,7 @@ function ua(e, t, n, i, r, s) {
|
|
|
4545
4556
|
o("path", { d: "M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4 12.5-12.5z" })
|
|
4546
4557
|
])
|
|
4547
4558
|
], -1)),
|
|
4548
|
-
o("span",
|
|
4559
|
+
o("span", sa, v(s.t("moreMenu.editTitle")), 1)
|
|
4549
4560
|
])) : b("", !0),
|
|
4550
4561
|
n.canExport ? (c(), u("button", {
|
|
4551
4562
|
key: 1,
|
|
@@ -4568,12 +4579,12 @@ function ua(e, t, n, i, r, s) {
|
|
|
4568
4579
|
o("path", { d: "M4 12v8a2 2 0 002 2h12a2 2 0 002-2v-8M16 6l-4-4-4 4M12 2v13" })
|
|
4569
4580
|
])
|
|
4570
4581
|
], -1)),
|
|
4571
|
-
o("span",
|
|
4582
|
+
o("span", ra, v(s.t("moreMenu.exportTranscript")), 1),
|
|
4572
4583
|
t[9] || (t[9] = o("span", { class: "wm-mm__hint" }, ".txt", -1))
|
|
4573
4584
|
])) : b("", !0)
|
|
4574
4585
|
])) : b("", !0),
|
|
4575
|
-
n.canRename || n.canExport ? (c(), u("div",
|
|
4576
|
-
o("div",
|
|
4586
|
+
n.canRename || n.canExport ? (c(), u("div", ia)) : b("", !0),
|
|
4587
|
+
o("div", aa, [
|
|
4577
4588
|
o("button", {
|
|
4578
4589
|
type: "button",
|
|
4579
4590
|
class: "wm-mm__item",
|
|
@@ -4595,7 +4606,7 @@ function ua(e, t, n, i, r, s) {
|
|
|
4595
4606
|
o("path", { d: "M15.54 8.46a5 5 0 010 7.07M19.07 4.93a10 10 0 010 14.14" })
|
|
4596
4607
|
])
|
|
4597
4608
|
], -1)),
|
|
4598
|
-
o("span",
|
|
4609
|
+
o("span", oa, v(s.t("moreMenu.sound")), 1),
|
|
4599
4610
|
o("span", {
|
|
4600
4611
|
class: x(["wm-mm__toggle", { "wm-mm__toggle--on": r.soundOn }])
|
|
4601
4612
|
}, [...t[10] || (t[10] = [
|
|
@@ -4622,7 +4633,7 @@ function ua(e, t, n, i, r, s) {
|
|
|
4622
4633
|
o("path", { d: "M15 17h5l-1.4-1.4A2 2 0 0118 14.2V11a6 6 0 10-12 0v3.2c0 .5-.2 1-.6 1.4L4 17h5m6 0a3 3 0 11-6 0" })
|
|
4623
4634
|
])
|
|
4624
4635
|
], -1)),
|
|
4625
|
-
o("span",
|
|
4636
|
+
o("span", la, v(s.t("moreMenu.browserNotifications")), 1),
|
|
4626
4637
|
o("span", {
|
|
4627
4638
|
class: x(["wm-mm__toggle", { "wm-mm__toggle--on": r.browserNotifOn }])
|
|
4628
4639
|
}, [...t[12] || (t[12] = [
|
|
@@ -4631,7 +4642,7 @@ function ua(e, t, n, i, r, s) {
|
|
|
4631
4642
|
])
|
|
4632
4643
|
]),
|
|
4633
4644
|
t[16] || (t[16] = o("div", { class: "wm-mm__sep" }, null, -1)),
|
|
4634
|
-
o("div",
|
|
4645
|
+
o("div", ca, [
|
|
4635
4646
|
n.statusUrl ? (c(), u("button", {
|
|
4636
4647
|
key: 0,
|
|
4637
4648
|
type: "button",
|
|
@@ -4653,7 +4664,7 @@ function ua(e, t, n, i, r, s) {
|
|
|
4653
4664
|
o("path", { d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zM10 6v4l3 2" })
|
|
4654
4665
|
])
|
|
4655
4666
|
], -1)),
|
|
4656
|
-
o("span",
|
|
4667
|
+
o("span", da, v(s.t("moreMenu.serviceStatus")), 1)
|
|
4657
4668
|
])) : b("", !0),
|
|
4658
4669
|
n.helpUrl ? (c(), u("button", {
|
|
4659
4670
|
key: 1,
|
|
@@ -4676,13 +4687,13 @@ function ua(e, t, n, i, r, s) {
|
|
|
4676
4687
|
o("path", { d: "M9 11a3 3 0 116 0c0 2-3 2-3 5M12 19h.01M12 22a10 10 0 110-20 10 10 0 010 20z" })
|
|
4677
4688
|
])
|
|
4678
4689
|
], -1)),
|
|
4679
|
-
o("span",
|
|
4690
|
+
o("span", ua, v(s.t("moreMenu.helpCenter")), 1)
|
|
4680
4691
|
])) : b("", !0)
|
|
4681
4692
|
])
|
|
4682
4693
|
])
|
|
4683
4694
|
]);
|
|
4684
4695
|
}
|
|
4685
|
-
const
|
|
4696
|
+
const ma = /* @__PURE__ */ E(Zi, [["render", ha], ["__scopeId", "data-v-76281e95"]]), fa = {
|
|
4686
4697
|
name: "WmRenameDialog",
|
|
4687
4698
|
inject: {
|
|
4688
4699
|
// Translator shared by the Messenger shell; French fallback when
|
|
@@ -4724,20 +4735,20 @@ const ha = /* @__PURE__ */ E(Ji, [["render", ua], ["__scopeId", "data-v-76281e95
|
|
|
4724
4735
|
this.canSubmit && this.$emit("submit", this.value.trim());
|
|
4725
4736
|
}
|
|
4726
4737
|
}
|
|
4727
|
-
},
|
|
4738
|
+
}, _a = { class: "wm-dialog" }, pa = {
|
|
4728
4739
|
class: "wm-dialog__card",
|
|
4729
4740
|
role: "dialog",
|
|
4730
4741
|
"aria-modal": "true"
|
|
4731
|
-
},
|
|
4732
|
-
function
|
|
4733
|
-
return c(), u("div",
|
|
4742
|
+
}, ga = { class: "wm-dialog__head" }, va = { class: "wm-dialog__title" }, ya = ["aria-label"], ba = { class: "wm-dialog__body" }, wa = ["placeholder"], ka = { class: "wm-dialog__actions" }, Ca = ["disabled"];
|
|
4743
|
+
function Aa(e, t, n, i, r, s) {
|
|
4744
|
+
return c(), u("div", _a, [
|
|
4734
4745
|
o("div", {
|
|
4735
4746
|
class: "wm-dialog__scrim",
|
|
4736
4747
|
onClick: t[0] || (t[0] = (a) => e.$emit("close"))
|
|
4737
4748
|
}),
|
|
4738
|
-
o("div",
|
|
4739
|
-
o("div",
|
|
4740
|
-
o("div",
|
|
4749
|
+
o("div", pa, [
|
|
4750
|
+
o("div", ga, [
|
|
4751
|
+
o("div", va, v(n.title || s.t("rename.title")), 1),
|
|
4741
4752
|
o("button", {
|
|
4742
4753
|
type: "button",
|
|
4743
4754
|
class: "wm-dialog__close",
|
|
@@ -4757,9 +4768,9 @@ function Ca(e, t, n, i, r, s) {
|
|
|
4757
4768
|
}, [
|
|
4758
4769
|
o("path", { d: "M18 6L6 18M6 6l12 12" })
|
|
4759
4770
|
], -1)
|
|
4760
|
-
])], 8,
|
|
4771
|
+
])], 8, ya)
|
|
4761
4772
|
]),
|
|
4762
|
-
o("div",
|
|
4773
|
+
o("div", ba, [
|
|
4763
4774
|
V(o("input", {
|
|
4764
4775
|
ref: "input",
|
|
4765
4776
|
"onUpdate:modelValue": t[2] || (t[2] = (a) => r.value = a),
|
|
@@ -4771,11 +4782,11 @@ function Ca(e, t, n, i, r, s) {
|
|
|
4771
4782
|
t[3] || (t[3] = ue(X((...a) => s.onSubmit && s.onSubmit(...a), ["prevent"]), ["enter"])),
|
|
4772
4783
|
t[4] || (t[4] = ue(X((a) => e.$emit("close"), ["prevent"]), ["esc"]))
|
|
4773
4784
|
]
|
|
4774
|
-
}, null, 40,
|
|
4785
|
+
}, null, 40, wa), [
|
|
4775
4786
|
[Z, r.value]
|
|
4776
4787
|
])
|
|
4777
4788
|
]),
|
|
4778
|
-
o("div",
|
|
4789
|
+
o("div", ka, [
|
|
4779
4790
|
o("button", {
|
|
4780
4791
|
type: "button",
|
|
4781
4792
|
class: "wm-dialog__btn",
|
|
@@ -4786,25 +4797,25 @@ function Ca(e, t, n, i, r, s) {
|
|
|
4786
4797
|
class: "wm-dialog__btn wm-dialog__btn--primary",
|
|
4787
4798
|
disabled: !s.canSubmit,
|
|
4788
4799
|
onClick: t[6] || (t[6] = (...a) => s.onSubmit && s.onSubmit(...a))
|
|
4789
|
-
}, v(s.t("common.save")), 9,
|
|
4800
|
+
}, v(s.t("common.save")), 9, Ca)
|
|
4790
4801
|
])
|
|
4791
4802
|
])
|
|
4792
4803
|
]);
|
|
4793
4804
|
}
|
|
4794
|
-
const
|
|
4805
|
+
const Sa = /* @__PURE__ */ E(fa, [["render", Aa], ["__scopeId", "data-v-6d5f94a8"]]), Te = "ww-messenger-tokens", Ma = {
|
|
4795
4806
|
name: "Messenger",
|
|
4796
4807
|
components: {
|
|
4797
4808
|
Launcher: jt,
|
|
4798
4809
|
Header: ln,
|
|
4799
4810
|
Onboarding: Hn,
|
|
4800
|
-
MessageList:
|
|
4801
|
-
Composer:
|
|
4802
|
-
SuggestionChips:
|
|
4803
|
-
ApprovalCard:
|
|
4804
|
-
FormCard:
|
|
4805
|
-
Feedback:
|
|
4806
|
-
MoreMenu:
|
|
4807
|
-
RenameDialog:
|
|
4811
|
+
MessageList: Ir,
|
|
4812
|
+
Composer: Xr,
|
|
4813
|
+
SuggestionChips: ti,
|
|
4814
|
+
ApprovalCard: ui,
|
|
4815
|
+
FormCard: Pi,
|
|
4816
|
+
Feedback: Ji,
|
|
4817
|
+
MoreMenu: ma,
|
|
4818
|
+
RenameDialog: Sa
|
|
4808
4819
|
},
|
|
4809
4820
|
mixins: [
|
|
4810
4821
|
ot,
|
|
@@ -5637,28 +5648,28 @@ const Aa = /* @__PURE__ */ E(ma, [["render", Ca], ["__scopeId", "data-v-6d5f94a8
|
|
|
5637
5648
|
}
|
|
5638
5649
|
}
|
|
5639
5650
|
}
|
|
5640
|
-
},
|
|
5651
|
+
}, Ta = {
|
|
5641
5652
|
key: 0,
|
|
5642
5653
|
class: "wm-loading",
|
|
5643
5654
|
"aria-busy": "true",
|
|
5644
5655
|
"aria-live": "polite"
|
|
5645
|
-
},
|
|
5656
|
+
}, xa = ["aria-label"], Oa = {
|
|
5646
5657
|
key: 0,
|
|
5647
5658
|
class: "wm-state"
|
|
5648
|
-
},
|
|
5659
|
+
}, La = { class: "wm-state__err" }, Ia = { class: "wm-state__errTitle" }, Ea = { class: "wm-state__errSub" }, Ba = { class: "wm-bottom" }, Ra = {
|
|
5649
5660
|
key: 0,
|
|
5650
5661
|
ref: "floatEl",
|
|
5651
5662
|
class: "wm-float"
|
|
5652
|
-
},
|
|
5663
|
+
}, Na = {
|
|
5653
5664
|
key: 1,
|
|
5654
5665
|
class: "wm-actionWait",
|
|
5655
5666
|
role: "status",
|
|
5656
5667
|
"aria-live": "polite"
|
|
5657
|
-
},
|
|
5668
|
+
}, Fa = { class: "wm-actionWait__lbl" }, ja = {
|
|
5658
5669
|
key: 2,
|
|
5659
5670
|
class: "wm-attached"
|
|
5660
|
-
},
|
|
5661
|
-
function
|
|
5671
|
+
}, Pa = ["aria-label", "onClick"];
|
|
5672
|
+
function Da(e, t, n, i, r, s) {
|
|
5662
5673
|
const a = I("Launcher"), l = I("Header"), g = I("Onboarding"), C = I("MessageList"), k = I("ApprovalCard"), T = I("FormCard"), B = I("Feedback"), A = I("SuggestionChips"), H = I("Composer"), M = I("MoreMenu"), D = I("RenameDialog");
|
|
5663
5674
|
return c(), u("div", {
|
|
5664
5675
|
class: x(["wm-root", `wm-root--${n.displayMode}`])
|
|
@@ -5677,7 +5688,7 @@ function Pa(e, t, n, i, r, s) {
|
|
|
5677
5688
|
role: "dialog",
|
|
5678
5689
|
"aria-label": "Messenger"
|
|
5679
5690
|
}, [
|
|
5680
|
-
!s.ready && !s.error ? (c(), u("div",
|
|
5691
|
+
!s.ready && !s.error ? (c(), u("div", Ta, [
|
|
5681
5692
|
s.isEmbedded ? b("", !0) : (c(), u("button", {
|
|
5682
5693
|
key: 0,
|
|
5683
5694
|
type: "button",
|
|
@@ -5698,7 +5709,7 @@ function Pa(e, t, n, i, r, s) {
|
|
|
5698
5709
|
}, [
|
|
5699
5710
|
o("path", { d: "M18 6L6 18M6 6l12 12" })
|
|
5700
5711
|
], -1)
|
|
5701
|
-
])], 8,
|
|
5712
|
+
])], 8, xa)),
|
|
5702
5713
|
t[6] || (t[6] = o("div", {
|
|
5703
5714
|
class: "wm-loading__spinner",
|
|
5704
5715
|
"aria-hidden": "true"
|
|
@@ -5716,8 +5727,8 @@ function Pa(e, t, n, i, r, s) {
|
|
|
5716
5727
|
onMore: s.toggleMore,
|
|
5717
5728
|
onClose: s.close
|
|
5718
5729
|
}, null, 8, ["title", "team-members", "response-label", "show-identity", "show-back", "show-close", "more-active", "onBack", "onMore", "onClose"]),
|
|
5719
|
-
s.error ? (c(), u("div",
|
|
5720
|
-
o("div",
|
|
5730
|
+
s.error ? (c(), u("div", Oa, [
|
|
5731
|
+
o("div", La, [
|
|
5721
5732
|
t[7] || (t[7] = o("div", { class: "wm-state__errIcon" }, [
|
|
5722
5733
|
o("svg", {
|
|
5723
5734
|
width: "14",
|
|
@@ -5734,8 +5745,8 @@ function Pa(e, t, n, i, r, s) {
|
|
|
5734
5745
|
])
|
|
5735
5746
|
], -1)),
|
|
5736
5747
|
o("div", null, [
|
|
5737
|
-
o("div",
|
|
5738
|
-
o("div",
|
|
5748
|
+
o("div", Ia, v(s.t("error.connectionFailed")), 1),
|
|
5749
|
+
o("div", Ea, v(s.error), 1)
|
|
5739
5750
|
])
|
|
5740
5751
|
])
|
|
5741
5752
|
])) : s.currentConv ? (c(), u(L, { key: 2 }, [
|
|
@@ -5751,8 +5762,8 @@ function Pa(e, t, n, i, r, s) {
|
|
|
5751
5762
|
"unread-boundary-ts": e.unreadBoundaryTs,
|
|
5752
5763
|
onLoadMore: s.onLoadMore
|
|
5753
5764
|
}, null, 8, ["messages", "streaming-active", "date-label", "conversation-id", "loading-more", "has-more", "unread-anchor-id", "unread-boundary-ts", "onLoadMore"]),
|
|
5754
|
-
o("div",
|
|
5755
|
-
s.floatVisible ? (c(), u("div",
|
|
5765
|
+
o("div", Ba, [
|
|
5766
|
+
s.floatVisible ? (c(), u("div", Ra, [
|
|
5756
5767
|
s.approvalReady ? (c(), R(k, {
|
|
5757
5768
|
key: 0,
|
|
5758
5769
|
action: s.approvalTitle,
|
|
@@ -5774,12 +5785,12 @@ function Pa(e, t, n, i, r, s) {
|
|
|
5774
5785
|
onSelect: s.onSuggestion
|
|
5775
5786
|
}, null, 8, ["items", "onSelect"]))
|
|
5776
5787
|
], 512)) : b("", !0),
|
|
5777
|
-
s.actionInFlight ? (c(), u("div",
|
|
5788
|
+
s.actionInFlight ? (c(), u("div", Na, [
|
|
5778
5789
|
t[8] || (t[8] = o("span", {
|
|
5779
5790
|
class: "wm-actionWait__spinner",
|
|
5780
5791
|
"aria-hidden": "true"
|
|
5781
5792
|
}, null, -1)),
|
|
5782
|
-
o("span",
|
|
5793
|
+
o("span", Fa, v(s.t("action.inProgress", {
|
|
5783
5794
|
name: s.actionInFlightName
|
|
5784
5795
|
})), 1)
|
|
5785
5796
|
])) : (c(), R(H, {
|
|
@@ -5814,7 +5825,7 @@ function Pa(e, t, n, i, r, s) {
|
|
|
5814
5825
|
onClose: t[3] || (t[3] = (N) => r.renameDialogOpen = !1),
|
|
5815
5826
|
onSubmit: s.onRenameSubmit
|
|
5816
5827
|
}, null, 8, ["initial-value", "title", "onSubmit"])) : b("", !0),
|
|
5817
|
-
r.pendingAttachments.length ? (c(), u("div",
|
|
5828
|
+
r.pendingAttachments.length ? (c(), u("div", ja, [
|
|
5818
5829
|
(c(!0), u(L, null, j(r.pendingAttachments, (N, $) => (c(), u("div", {
|
|
5819
5830
|
key: $,
|
|
5820
5831
|
class: "wm-attached__chip"
|
|
@@ -5851,7 +5862,7 @@ function Pa(e, t, n, i, r, s) {
|
|
|
5851
5862
|
}, [
|
|
5852
5863
|
o("path", { d: "M18 6L6 18M6 6l12 12" })
|
|
5853
5864
|
], -1)
|
|
5854
|
-
])], 8,
|
|
5865
|
+
])], 8, Pa)
|
|
5855
5866
|
]))), 128))
|
|
5856
5867
|
])) : b("", !0)
|
|
5857
5868
|
], 64)) : (c(), R(g, {
|
|
@@ -5882,53 +5893,53 @@ function Pa(e, t, n, i, r, s) {
|
|
|
5882
5893
|
], 6)) : b("", !0)
|
|
5883
5894
|
], 2);
|
|
5884
5895
|
}
|
|
5885
|
-
const
|
|
5896
|
+
const Ha = /* @__PURE__ */ E(Ma, [["render", Da], ["__scopeId", "data-v-d9dce1ad"]]), za = "0.4.2";
|
|
5886
5897
|
export {
|
|
5887
5898
|
le as AIAvatar,
|
|
5888
5899
|
fe as AVATAR_COLORS,
|
|
5889
5900
|
es as ActionResult,
|
|
5890
|
-
|
|
5901
|
+
ui as ApprovalCard,
|
|
5891
5902
|
cs as ArtifactFormResponse,
|
|
5892
5903
|
ks as ArtifactInfoCard,
|
|
5893
5904
|
$s as ArtifactRenderer,
|
|
5894
5905
|
js as ArtifactTicket,
|
|
5895
5906
|
Zs as AttachmentPreview,
|
|
5896
5907
|
sr as Bubble,
|
|
5897
|
-
|
|
5908
|
+
Xr as Composer,
|
|
5898
5909
|
Ze as DEFAULT_BASE_URL,
|
|
5899
5910
|
ie as DEFAULT_LANGUAGE,
|
|
5900
|
-
|
|
5901
|
-
|
|
5911
|
+
Ji as Feedback,
|
|
5912
|
+
Pi as FormCard,
|
|
5902
5913
|
ln as Header,
|
|
5903
5914
|
Ee as HumanAvatar,
|
|
5904
5915
|
jt as Launcher,
|
|
5905
5916
|
ve as MEDIA_RECORDER_SUPPORTED,
|
|
5906
|
-
|
|
5907
|
-
|
|
5908
|
-
|
|
5917
|
+
Ir as MessageList,
|
|
5918
|
+
Ha as Messenger,
|
|
5919
|
+
ma as MoreMenu,
|
|
5909
5920
|
Hn as Onboarding,
|
|
5910
5921
|
he as SCREEN_CAPTURE_SUPPORTED,
|
|
5911
5922
|
et as SUPPORTED_LANGUAGES,
|
|
5912
|
-
|
|
5923
|
+
ti as SuggestionChips,
|
|
5913
5924
|
Gt as TeamAvatars,
|
|
5914
5925
|
or as Typing,
|
|
5915
|
-
|
|
5926
|
+
za as VERSION,
|
|
5916
5927
|
xe as avatarColor,
|
|
5917
5928
|
Oe as avatarInitials,
|
|
5918
|
-
|
|
5929
|
+
Br as captureScreenshotFile,
|
|
5919
5930
|
U as colors,
|
|
5920
5931
|
Xe as createStore,
|
|
5921
5932
|
P as createTranslator,
|
|
5922
5933
|
Ke as createTransport,
|
|
5923
5934
|
oe as dateLocale,
|
|
5924
|
-
|
|
5935
|
+
Ha as default,
|
|
5925
5936
|
Le as formatTime,
|
|
5926
|
-
|
|
5927
|
-
|
|
5937
|
+
$a as guessAttachmentKind,
|
|
5938
|
+
Er as pickRecorderMime,
|
|
5928
5939
|
dn as renderInlineMarkdown,
|
|
5929
5940
|
un as renderMarkdown,
|
|
5930
5941
|
ge as resolveLanguage,
|
|
5931
|
-
|
|
5942
|
+
Nr as startScreenRecording,
|
|
5932
5943
|
Je as tokensCss,
|
|
5933
5944
|
Qe as uuid,
|
|
5934
5945
|
Qe as v4
|