@1024pix/epreuves-components 2.8.1 → 4.0.0
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/Button.ce-CTKrSDrC.js +27 -0
- package/dist/{ButtonTooltip.ce-BjlMn9Ez.js → ButtonTooltip.ce-CtHo2Dwx.js} +1 -1
- package/dist/{Cross.ce.vue_vue_type_script_setup_true_lang-D7kq2waU.js → Cross.ce.vue_vue_type_script_setup_true_lang-CVBFTfq5.js} +5 -5
- package/dist/{LLMMessage.ce-B4Tg1zsn.js → LLMMessage.ce-Dv4hVX0C.js} +2 -2
- package/dist/{Loading.ce-S-dh_E78.js → Loading.ce-Bh7-h48F.js} +1 -1
- package/dist/{NavigationButton.ce-DRBC3gta.js → NavigationButton.ce-CA1M8sgV.js} +2 -2
- package/dist/PixMailMessage.ce-XPDbJiyC.js +219 -0
- package/dist/Popin.ce-DUQ7-GMT.js +197 -0
- package/dist/{Retry-CoaWKuPG.js → Retry-BZf7NJz9.js} +1 -1
- package/dist/Stepper.ce-B1yDelzC.js +27 -0
- package/dist/{_plugin-vue_export-helper-BPDEgOal.js → _plugin-vue_export-helper-D0N_62VD.js} +273 -258
- package/dist/components/analyse-mails-phishing.ce.js.js +259 -0
- package/dist/components/calcul-impact.ce.js.js +9 -9
- package/dist/components/capacity-calculation.ce.js.js +4 -4
- package/dist/components/clickable-image.ce.js.js +11 -11
- package/dist/components/complete-phrase.ce.js.js +7 -7
- package/dist/components/flip-cards.ce.js.js +5 -5
- package/dist/components/image-quiz.ce.js.js +4 -4
- package/dist/components/image-quizzes.ce.js.js +3 -3
- package/dist/components/llm-compare-messages.ce.js.js +3 -3
- package/dist/components/llm-messages.ce.js.js +3 -3
- package/dist/components/llm-prompt-select.ce.js.js +2 -2
- package/dist/components/mdp-classement.ce.js.js +29 -29
- package/dist/components/message-conversation.ce.js.js +5 -5
- package/dist/components/mobile-shell.ce.js.js +1 -1
- package/dist/components/phishing-message.ce.js.js +17 -17
- package/dist/components/phishing-notification.ce.js.js +15 -15
- package/dist/components/pix-anonymisation.ce.js.js +83 -87
- package/dist/components/pix-article.ce.js.js +5 -5
- package/dist/components/pix-carousel.ce.js.js +13 -13
- package/dist/components/pix-combinaisons.ce.js.js +238 -0
- package/dist/components/pix-cursor.ce.js.js +20 -20
- package/dist/components/pix-mail-message.ce.js.js +11 -0
- package/dist/components/proteger-mail-spam.ce.js.js +129 -0
- package/dist/components/qcm-deepfake.ce.js.js +27 -27
- package/dist/components/quiz-stepper.ce.js.js +83 -89
- package/dist/components/select-conversation.ce.js.js +15 -15
- package/dist/components/template-mail.ce.js.js +49 -151
- package/dist/components/test-top-mdp.ce.js.js +14 -14
- package/dist/components/trouver-mdp-rs.ce.js.js +307 -343
- package/dist/{i18n-BuCPzaih.js → i18n-ekiZvzf6.js} +9 -9
- package/dist/{i18n-lite-DBVKHY8J.js → i18n-lite-t2jNOu0C.js} +8 -8
- package/dist/{image-quiz.ce-CXOFcx1H.js → image-quiz.ce-DqalWHKw.js} +11 -11
- package/dist/index-BpqxFmwz.js +10 -0
- package/dist/index.js +5 -1
- package/dist/metadata.js +45 -29
- package/dist/nl-Bonww6Q2.js +13 -0
- package/dist/{normalize-props-DtfVI0Xg.js → normalize-props-DH0oPBss.js} +2 -2
- package/dist/props.examples.js +130 -0
- package/dist/schema.js +134 -68
- package/dist/{shadow-dom-By5w43W7.js → shadow-dom-C3AZuSZe.js} +1 -1
- package/dist/temporal.utils-7Uvm62ss.js +10926 -0
- package/package.json +4 -2
- package/dist/Button.ce-D1_fAhqr.js +0 -18
- package/dist/temporal.utils-CotrC6ao.js +0 -14456
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { u as
|
|
3
|
-
import { _ as H, a as
|
|
4
|
-
import {
|
|
1
|
+
import { b as q, c as m, o as r, n as B, a as l, B as g, t as u, _ as j, r as b, j as V, g as p, E as h, f as v, K as k, H as G, l as Q, d as R } from "../_plugin-vue_export-helper-D0N_62VD.js";
|
|
2
|
+
import { u as O, a as P, i as z, b as D } from "../i18n-ekiZvzf6.js";
|
|
3
|
+
import { _ as H, a as I, F as K } from "../Cross.ce.vue_vue_type_script_setup_true_lang-CVBFTfq5.js";
|
|
4
|
+
import { S as M } from "../Stepper.ce-B1yDelzC.js";
|
|
5
|
+
import { a as f, b as J } from "../normalize-props-DH0oPBss.js";
|
|
6
|
+
import { l as U } from "../index-BpqxFmwz.js";
|
|
5
7
|
const W = {}, X = {}, Y = {}, Z = {}, ee = {}, te = {
|
|
6
|
-
"quiz-stepper": { submitButton: "Valider", nextStepButton: "Continuer",
|
|
7
|
-
},
|
|
8
|
+
"quiz-stepper": { submitButton: "Valider", nextStepButton: "Continuer", feedback: { success: "Bien joué", failed: "Pas tout à fait" } }
|
|
9
|
+
}, ne = {}, se = {}, ie = ["id", "aria-disabled", "checked"], oe = ["for"], ae = {
|
|
8
10
|
key: 0,
|
|
9
11
|
class: "answer__subtitle"
|
|
10
|
-
},
|
|
12
|
+
}, le = { class: "answer__content" }, ce = /* @__PURE__ */ q({
|
|
11
13
|
__name: "Answer.ce",
|
|
12
14
|
props: {
|
|
13
15
|
choice: { type: Object },
|
|
@@ -17,14 +19,14 @@ const W = {}, X = {}, Y = {}, Z = {}, ee = {}, te = {
|
|
|
17
19
|
},
|
|
18
20
|
emits: ["select-answer"],
|
|
19
21
|
setup(e, { emit: c }) {
|
|
20
|
-
const
|
|
22
|
+
const s = c;
|
|
21
23
|
function t() {
|
|
22
|
-
|
|
24
|
+
s("select-answer", e.choice);
|
|
23
25
|
}
|
|
24
|
-
return (
|
|
26
|
+
return (n, o) => (r(), m("div", {
|
|
25
27
|
class: B(["answer", { "is-selected": e.isSelected, "is-disabled": e.showFeedback }])
|
|
26
28
|
}, [
|
|
27
|
-
|
|
29
|
+
l("input", {
|
|
28
30
|
type: "radio",
|
|
29
31
|
id: e.id,
|
|
30
32
|
name: "choice",
|
|
@@ -33,151 +35,143 @@ const W = {}, X = {}, Y = {}, Z = {}, ee = {}, te = {
|
|
|
33
35
|
onChange: t,
|
|
34
36
|
class: "sr-only"
|
|
35
37
|
}, null, 40, ie),
|
|
36
|
-
|
|
37
|
-
e.choice.title ? (
|
|
38
|
-
|
|
39
|
-
], 8,
|
|
38
|
+
l("label", { for: e.id }, [
|
|
39
|
+
e.choice.title ? (r(), m("span", ae, u(e.choice.title), 1)) : g("", !0),
|
|
40
|
+
l("span", le, u(e.choice.content), 1)
|
|
41
|
+
], 8, oe)
|
|
40
42
|
], 2));
|
|
41
43
|
}
|
|
42
|
-
}),
|
|
43
|
-
class: "sr-only",
|
|
44
|
-
"aria-live": "polite"
|
|
45
|
-
}, me = ["aria-level"], ve = { class: "card-wrapper" }, be = ["aria-disable"], ge = /* @__PURE__ */ S({
|
|
44
|
+
}), re = ".answer{display:flex;flex:1;flex-direction:column;align-items:flex-start;gap:.25em;border-radius:8px;border:1px solid #cdd1d9;background:#fff;color:var(--neutral-900);text-align:left;font-size:.875em}.answer label{cursor:pointer;height:100%;padding:1em}.answer.is-selected{border-radius:8px;border:1px solid #fff;background:var(--neutral-800);color:#fff}.answer__subtitle{font-size:1em;font-weight:700;line-height:24px;display:block}.answer__content{text-wrap-mode:wrap;white-space-collapse:preserve}.answer .is-disabled{cursor:not-allowed}.answer:focus-within{outline:2px solid black}", S = /* @__PURE__ */ j(ce, [["styles", [re]]]), ue = { class: "quiz-stepper-container__layout" }, de = ["aria-level"], pe = { class: "card-wrapper" }, fe = ["aria-disable"], me = /* @__PURE__ */ q({
|
|
46
45
|
__name: "QuizStepper.ce",
|
|
47
46
|
props: {
|
|
48
47
|
steps: { type: Array },
|
|
49
48
|
titleLevel: { default: 2, type: Number }
|
|
50
49
|
},
|
|
51
50
|
setup(e, { expose: c }) {
|
|
52
|
-
const
|
|
53
|
-
const
|
|
54
|
-
return
|
|
55
|
-
}), C =
|
|
56
|
-
function
|
|
57
|
-
|
|
51
|
+
const s = b(0), t = b(), n = b(!1), o = V("form"), { t: _ } = O(), a = p(() => e.steps?.[s.value]), w = p(() => !n.value), $ = p(() => {
|
|
52
|
+
const i = s.value === e.steps.length - 1;
|
|
53
|
+
return i ? i && !n.value : !0;
|
|
54
|
+
}), C = p(() => w.value ? _("quiz-stepper.submitButton") : _("quiz-stepper.nextStepButton"));
|
|
55
|
+
function x(i) {
|
|
56
|
+
n.value || (t.value = i);
|
|
58
57
|
}
|
|
59
|
-
function
|
|
60
|
-
if (
|
|
61
|
-
|
|
58
|
+
function F() {
|
|
59
|
+
if (s.value + 1 > e.steps.length) {
|
|
60
|
+
s.value = e.steps.length;
|
|
62
61
|
return;
|
|
63
62
|
}
|
|
64
|
-
|
|
63
|
+
s.value++, n.value = !1, t.value = void 0, o.value?.focus();
|
|
65
64
|
}
|
|
66
|
-
function
|
|
67
|
-
t.value && (
|
|
65
|
+
function N() {
|
|
66
|
+
t.value && (n.value = !0, s.value + 1 === e.steps.length && o.value?.focus());
|
|
68
67
|
}
|
|
69
|
-
function
|
|
70
|
-
if (
|
|
71
|
-
|
|
68
|
+
function T() {
|
|
69
|
+
if (w.value) {
|
|
70
|
+
N();
|
|
72
71
|
return;
|
|
73
72
|
}
|
|
74
|
-
|
|
73
|
+
F();
|
|
75
74
|
}
|
|
76
|
-
function
|
|
77
|
-
return
|
|
75
|
+
function y(i) {
|
|
76
|
+
return i.content ? i.content === t.value?.content : i.title === t.value?.title;
|
|
78
77
|
}
|
|
79
|
-
function
|
|
80
|
-
|
|
78
|
+
function E() {
|
|
79
|
+
s.value = 0, t.value = void 0, n.value = !1;
|
|
81
80
|
}
|
|
82
81
|
return c({
|
|
83
|
-
reset:
|
|
84
|
-
}), (
|
|
82
|
+
reset: E
|
|
83
|
+
}), (i, d) => (r(), m("form", {
|
|
85
84
|
class: "quiz-stepper-container",
|
|
86
|
-
onSubmit: Q(
|
|
85
|
+
onSubmit: Q(T, ["prevent"]),
|
|
87
86
|
ref_key: "form",
|
|
88
87
|
ref: o,
|
|
89
88
|
tabindex: "-1"
|
|
90
89
|
}, [
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
i("p", fe, l(n.value + 1) + "/" + l(e.steps.length), 1),
|
|
100
|
-
i("p", he, l(a.$t("quiz-stepper.step", { step: n.value + 1, totalStep: e.steps.length })), 1)
|
|
101
|
-
]),
|
|
102
|
-
i("fieldset", null, [
|
|
103
|
-
i("legend", null, [
|
|
104
|
-
i("div", {
|
|
90
|
+
l("div", ue, [
|
|
91
|
+
h(M, {
|
|
92
|
+
step: s.value,
|
|
93
|
+
"steps-count": e.steps.length
|
|
94
|
+
}, null, 8, ["step", "steps-count"]),
|
|
95
|
+
l("fieldset", null, [
|
|
96
|
+
l("legend", null, [
|
|
97
|
+
l("div", {
|
|
105
98
|
role: "heading",
|
|
106
99
|
"aria-level": e.titleLevel,
|
|
107
100
|
class: "question"
|
|
108
|
-
},
|
|
101
|
+
}, u(a.value.question), 9, de)
|
|
109
102
|
]),
|
|
110
|
-
|
|
111
|
-
|
|
103
|
+
l("div", pe, [
|
|
104
|
+
h(S, {
|
|
112
105
|
id: "choice1",
|
|
113
|
-
choice:
|
|
114
|
-
"show-feedback":
|
|
115
|
-
"is-selected":
|
|
116
|
-
onSelectAnswer:
|
|
106
|
+
choice: a.value.choice1,
|
|
107
|
+
"show-feedback": n.value,
|
|
108
|
+
"is-selected": y(a.value.choice1),
|
|
109
|
+
onSelectAnswer: d[0] || (d[0] = (L) => x(a.value.choice1))
|
|
117
110
|
}, null, 8, ["choice", "show-feedback", "is-selected"]),
|
|
118
|
-
|
|
111
|
+
h(S, {
|
|
119
112
|
id: "choice2",
|
|
120
|
-
choice:
|
|
121
|
-
"show-feedback":
|
|
122
|
-
"is-selected":
|
|
123
|
-
onSelectAnswer:
|
|
113
|
+
choice: a.value.choice2,
|
|
114
|
+
"show-feedback": n.value,
|
|
115
|
+
"is-selected": y(a.value.choice2),
|
|
116
|
+
onSelectAnswer: d[1] || (d[1] = (L) => x(a.value.choice2))
|
|
124
117
|
}, null, 8, ["choice", "show-feedback", "is-selected"])
|
|
125
118
|
])
|
|
126
119
|
]),
|
|
127
|
-
|
|
120
|
+
n.value ? (r(), v(K, {
|
|
128
121
|
key: 0,
|
|
129
|
-
title: t.value?.isGoodAnswer ?
|
|
122
|
+
title: t.value?.isGoodAnswer ? i.$t("quiz-stepper.feedback.success") : i.$t("quiz-stepper.feedback.failed")
|
|
130
123
|
}, {
|
|
131
|
-
icon:
|
|
132
|
-
t.value?.isGoodAnswer ? (
|
|
124
|
+
icon: k(() => [
|
|
125
|
+
t.value?.isGoodAnswer ? (r(), v(H, {
|
|
133
126
|
key: 0,
|
|
134
127
|
class: "icon-size"
|
|
135
|
-
})) : (
|
|
128
|
+
})) : (r(), v(I, {
|
|
136
129
|
key: 1,
|
|
137
130
|
class: "icon-size"
|
|
138
131
|
}))
|
|
139
132
|
]),
|
|
140
|
-
content:
|
|
141
|
-
|
|
133
|
+
content: k(() => [
|
|
134
|
+
G(u(t.value?.isGoodAnswer ? a.value.feedback.success : a.value.feedback.failed), 1)
|
|
142
135
|
]),
|
|
143
136
|
_: 1
|
|
144
|
-
}, 8, ["title"])) :
|
|
145
|
-
$.value ? (
|
|
137
|
+
}, 8, ["title"])) : g("", !0),
|
|
138
|
+
$.value ? (r(), m("button", {
|
|
146
139
|
key: 1,
|
|
147
140
|
type: "submit",
|
|
148
141
|
class: B(["submit-button", { "is-disabled": !t.value }]),
|
|
149
142
|
"aria-disable": !t.value
|
|
150
|
-
},
|
|
143
|
+
}, u(C.value), 11, fe)) : g("", !0)
|
|
151
144
|
])
|
|
152
145
|
], 544));
|
|
153
146
|
}
|
|
154
|
-
}),
|
|
155
|
-
|
|
156
|
-
|
|
147
|
+
}), be = "*{--neutral-800: #253858;--neutral-900: #122647;font-family:Roboto,sans-serif}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);border:0}.icon-size{width:16px;height:16px}.quiz-stepper-container{display:flex;flex-direction:column;align-items:center;color:var(--neutral-800)}.quiz-stepper-container button{cursor:pointer}.quiz-stepper-container fieldset{border:none}.quiz-stepper-container legend{margin-bottom:1.5em}.quiz-stepper-container__layout{width:80%;display:flex;flex-direction:column;gap:1.5em;align-items:center;padding:1.5em 1em}.quiz-stepper-container .question{color:var(--neutral-900);text-align:center;font-family:Nunito;font-size:1.25em;font-style:normal;font-weight:700;line-height:28px}.quiz-stepper-container .card-wrapper{display:flex;padding:1.5em;justify-content:center;gap:1.5em;border-radius:16px;background:#f4f5f7;width:calc(100% - 3em)}.quiz-stepper-container .submit-button{display:flex;padding:.5em 1.5em;justify-content:center;align-items:center;gap:.5em;border-radius:8px;background:#253858;border:none;color:#fff;font-weight:700}.quiz-stepper-container .submit-button.is-disabled{background:#cdd1d9;cursor:not-allowed}@media screen and (max-width:630px){.quiz-stepper-container__layout{width:calc(100% - 1em);padding:1em .5em}.quiz-stepper-container .card-wrapper{padding:1em;flex-direction:column;width:calc(100% - 2em)}}", he = /* @__PURE__ */ j(me, [["styles", [be]]]);
|
|
148
|
+
P(/* @__PURE__ */ Object.assign({ "./locales/de-AT.json": W, "./locales/en.json": X, "./locales/es-419.json": Y, "./locales/es.json": Z, "./locales/fr-BE.json": ee, "./locales/fr.json": te, "./locales/it.json": ne, "./locales/nl.json": se })).catch((e) => console.error(e));
|
|
149
|
+
U();
|
|
150
|
+
const A = R(he, {
|
|
157
151
|
configureApp(e) {
|
|
158
|
-
|
|
152
|
+
z.changeLanguage(document?.documentElement?.lang || navigator.language), e.use(D, { i18next: z });
|
|
159
153
|
}
|
|
160
154
|
});
|
|
161
155
|
A.prototype.normalizeProps = (e) => {
|
|
162
|
-
let { steps: c, titleLevel:
|
|
156
|
+
let { steps: c, titleLevel: s } = e;
|
|
163
157
|
return c = c.map((t) => {
|
|
164
|
-
let { choice1:
|
|
165
|
-
return
|
|
158
|
+
let { choice1: n, choice2: o } = t;
|
|
159
|
+
return n = {
|
|
166
160
|
...t.choice1,
|
|
167
|
-
title: f(
|
|
168
|
-
content: f(
|
|
161
|
+
title: f(n.title),
|
|
162
|
+
content: f(n.content)
|
|
169
163
|
}, o = {
|
|
170
164
|
...t.choice2,
|
|
171
165
|
title: f(o.title),
|
|
172
166
|
content: f(o.content)
|
|
173
167
|
}, {
|
|
174
168
|
...t,
|
|
175
|
-
choice1:
|
|
169
|
+
choice1: n,
|
|
176
170
|
choice2: o
|
|
177
171
|
};
|
|
178
172
|
}), {
|
|
179
173
|
steps: c,
|
|
180
|
-
titleLevel:
|
|
174
|
+
titleLevel: J(s)
|
|
181
175
|
};
|
|
182
176
|
};
|
|
183
177
|
window.customElements.define("quiz-stepper", A);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as j, i as _, b as L } from "../i18n-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { b as w, r as g, g as p, c as n, o as i, a as e, t as a, k as l, n as z, H as k, F as u, e as M, B as T, _ as D, d as C } from "../_plugin-vue_export-helper-D0N_62VD.js";
|
|
2
|
+
import { a as j, i as _, b as L } from "../i18n-ekiZvzf6.js";
|
|
3
|
+
import { b as S } from "../normalize-props-DH0oPBss.js";
|
|
4
|
+
import { a as F, q as B, t as f } from "../temporal.utils-7Uvm62ss.js";
|
|
5
5
|
const $ = {}, I = {}, N = {}, E = {}, q = {}, A = {
|
|
6
6
|
"select-conversation": { "select-response-title": "Sélectionnez le message que {{username}} devrait envoyer :", "message-date": "{{messageDay, relativetime(numeric: auto)}} · {{messageTime, datetime(timeStyle: short)}}", "incoming-message-sr": "Message de {{username}} reçu {{messageDay, relativetime(numeric: auto)}} à {{messageTime, datetime(timeStyle: short)}}", "outgoing-message-sr": "Message envoyé par {{username}} {{messageDay, relativetime(numeric: auto)}} à {{messageTime, datetime(timeStyle: short)}}", "good-idea": "Bonne idée", "bad-idea": "Mauvaise idée" }
|
|
7
7
|
}, R = {}, H = {}, O = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20448%20512'%3e%3c!--!Font%20Awesome%20Free%20v7.1.0%20by%20@fontawesome%20-%20https://fontawesome.com%20License%20-%20https://fontawesome.com/license/free%20Copyright%202025%20Fonticons,%20Inc.--%3e%3cpath%20d='M434.8%2070.1c14.3%2010.4%2017.5%2030.4%207.1%2044.7l-256%20352c-5.5%207.6-14%2012.3-23.4%2013.1s-18.5-2.7-25.1-9.3l-128-128c-12.5-12.5-12.5-32.8%200-45.3s32.8-12.5%2045.3%200l101.5%20101.5%20234-321.7c10.4-14.3%2030.4-17.5%2044.7-7.1z'/%3e%3c/svg%3e", V = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20512%20512'%3e%3c!--!Font%20Awesome%20Free%20v7.1.0%20by%20@fontawesome%20-%20https://fontawesome.com%20License%20-%20https://fontawesome.com/license/free%20Copyright%202025%20Fonticons,%20Inc.--%3e%3cpath%20d='M256%2048a208%20208%200%201%201%200%20416%20208%20208%200%201%201%200-416zm0%20464a256%20256%200%201%200%200-512%20256%20256%200%201%200%200%20512zM167%20167c-9.4%209.4-9.4%2024.6%200%2033.9l55%2055-55%2055c-9.4%209.4-9.4%2024.6%200%2033.9s24.6%209.4%2033.9%200l55-55%2055%2055c9.4%209.4%2024.6%209.4%2033.9%200s9.4-24.6%200-33.9l-55-55%2055-55c9.4-9.4%209.4-24.6%200-33.9s-24.6-9.4-33.9%200l-55%2055-55-55c-9.4-9.4-24.6-9.4-33.9%200z'/%3e%3c/svg%3e", G = { class: "messages" }, P = { class: "message" }, X = {
|
|
@@ -16,7 +16,7 @@ const $ = {}, I = {}, N = {}, E = {}, q = {}, A = {
|
|
|
16
16
|
}, Y = { class: "sr-only" }, Z = { class: "message__content-container" }, ee = { class: "message__content-title" }, se = ["src"], te = { class: "message__content" }, ae = {
|
|
17
17
|
class: "message__date",
|
|
18
18
|
"aria-hidden": "true"
|
|
19
|
-
}, oe = { class: "response-select" }, ne = ["aria-level"], ie = { class: "response-select__choices" }, le = ["aria-disabled", "onClick"],
|
|
19
|
+
}, oe = { class: "response-select" }, ne = ["aria-level"], ie = { class: "response-select__choices" }, le = ["aria-disabled", "onClick"], ce = { "aria-live": "polite" }, re = ["innerHTML"], de = /* @__PURE__ */ w({
|
|
20
20
|
__name: "SelectConversation.ce",
|
|
21
21
|
props: {
|
|
22
22
|
titleLevel: { default: 2, type: Number },
|
|
@@ -25,7 +25,7 @@ const $ = {}, I = {}, N = {}, E = {}, q = {}, A = {
|
|
|
25
25
|
responseChoices: { type: Array }
|
|
26
26
|
},
|
|
27
27
|
setup(s, { expose: v }) {
|
|
28
|
-
const d = g(s.responseChoices.map((t) => ({ ...t, selected: !1 }))), o = g(),
|
|
28
|
+
const d = g(s.responseChoices.map((t) => ({ ...t, selected: !1 }))), o = g(), c = p(() => F(s.incomingMessage.time)), m = p(() => c.value.day - B.Now.plainDateTimeISO().day);
|
|
29
29
|
function b(t) {
|
|
30
30
|
t.selected || (t.selected = !0, o.value = t);
|
|
31
31
|
}
|
|
@@ -36,13 +36,13 @@ const $ = {}, I = {}, N = {}, E = {}, q = {}, A = {
|
|
|
36
36
|
}
|
|
37
37
|
return v({
|
|
38
38
|
reset: y
|
|
39
|
-
}), (t,
|
|
39
|
+
}), (t, pe) => (i(), n(u, null, [
|
|
40
40
|
e("div", G, [
|
|
41
41
|
e("div", P, [
|
|
42
42
|
e("p", X, a(s.incomingMessage.username), 1),
|
|
43
|
-
e("p", J, a(t.$t("select-conversation.incoming-message-sr", { username: s.incomingMessage.username, messageDay: m.value, messageTime: l(f)(
|
|
43
|
+
e("p", J, a(t.$t("select-conversation.incoming-message-sr", { username: s.incomingMessage.username, messageDay: m.value, messageTime: l(f)(c.value) })), 1),
|
|
44
44
|
e("p", K, a(s.incomingMessage.content), 1),
|
|
45
|
-
e("p", Q, a(t.$t("select-conversation.message-date", { messageDay: m.value, messageTime: l(f)(
|
|
45
|
+
e("p", Q, a(t.$t("select-conversation.message-date", { messageDay: m.value, messageTime: l(f)(c.value) })), 1)
|
|
46
46
|
]),
|
|
47
47
|
e("div", {
|
|
48
48
|
class: z(["message message--outgoing", { "message--hidden": !o.value }]),
|
|
@@ -72,20 +72,20 @@ const $ = {}, I = {}, N = {}, E = {}, q = {}, A = {
|
|
|
72
72
|
class: "title"
|
|
73
73
|
}, a(t.$t("select-conversation.select-response-title", { username: s.username })), 9, ne),
|
|
74
74
|
e("div", ie, [
|
|
75
|
-
(i(!0), n(
|
|
75
|
+
(i(!0), n(u, null, M(d.value, (r, x) => (i(), n("button", {
|
|
76
76
|
key: x,
|
|
77
77
|
type: "button",
|
|
78
78
|
class: "response-select__choice",
|
|
79
|
-
"aria-disabled":
|
|
80
|
-
onClick: (
|
|
81
|
-
}, a(
|
|
79
|
+
"aria-disabled": r.selected,
|
|
80
|
+
onClick: (ue) => b(r)
|
|
81
|
+
}, a(r.content), 9, le))), 128))
|
|
82
82
|
]),
|
|
83
|
-
e("div",
|
|
83
|
+
e("div", ce, [
|
|
84
84
|
o.value ? (i(), n("p", {
|
|
85
85
|
key: 0,
|
|
86
86
|
class: "response-select__feedback",
|
|
87
87
|
innerHTML: o.value.feedback
|
|
88
|
-
}, null, 8,
|
|
88
|
+
}, null, 8, re)) : T("", !0)
|
|
89
89
|
])
|
|
90
90
|
])
|
|
91
91
|
], 64));
|
|
@@ -1,41 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}, Z = {}, q = {}, F = "data:image/svg+xml,%3csvg%20width='17'%20height='17'%20viewBox='0%200%2017%2017'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.125%204.25H14.875M2.125%208.5H14.875M2.125%2012.75H14.875'%20stroke='black'%20stroke-width='1.77083'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", O = "data:image/svg+xml,%3csvg%20width='18'%20height='16'%20viewBox='0%200%2018%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0.75%206.28086H11.95C18.35%206.28086%2018.35%2014.9722%2011.95%2014.9722M0.75%206.28086L6.35%200.75M0.75%206.28086L6.35%2011.8117'%20stroke='%23122647'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", P = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_2744_7877)'%3e%3cpath%20d='M8.57141%202.85714L5.14284%206.28571L8.57141%209.71429'%20stroke='%23122647'%20stroke-width='1.14286'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M15.4286%2013.1429V10.8571C15.4286%209.64472%2014.9469%208.48196%2014.0896%207.62465C13.2323%206.76735%2012.0696%206.28571%2010.8571%206.28571H5.14285M4%202.85714L0.571426%206.28571L4%209.71429'%20stroke='%23122647'%20stroke-width='1.14286'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_2744_7877'%3e%3crect%20width='16'%20height='16'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", R = "data:image/svg+xml,%3csvg%20width='8'%20height='4'%20viewBox='0%200%208%204'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0%200L3.53%203.38803L7.06%200H0Z'%20fill='black'/%3e%3c/svg%3e", $ = {
|
|
8
|
-
width: "41",
|
|
9
|
-
height: "41",
|
|
10
|
-
viewBox: "0 0 41 41",
|
|
11
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
12
|
-
}, G = ["fill"], I = {
|
|
13
|
-
__name: "UserSVG.ce",
|
|
14
|
-
props: {
|
|
15
|
-
color: {
|
|
16
|
-
type: String,
|
|
17
|
-
default: "#2F80ED"
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
setup(t) {
|
|
21
|
-
return (a, l) => (m(), p("svg", $, [
|
|
22
|
-
l[0] || (l[0] = e("path", {
|
|
23
|
-
d: "M9 33.5484C9.02496 31.6445 9.79268 29.8271 11.1371 28.4893C12.4815 27.1515 14.2944 26.4009 16.1837 26.3999H24.8163C26.7056 26.4009 28.5185 27.1515 29.8629 28.4893C31.2073 29.8271 31.975 31.6445 32 33.5484C28.8446 36.4141 24.7476 38 20.5 38C16.2524 38 12.1554 36.4141 9 33.5484ZM26.9744 15.525C26.9744 16.8155 26.5947 18.077 25.8833 19.1501C25.1719 20.2231 24.1607 21.0594 22.9776 21.5533C21.7946 22.0471 20.4928 22.1763 19.2369 21.9246C17.981 21.6728 16.8274 21.0514 15.9219 20.1388C15.0164 19.2263 14.3998 18.0637 14.15 16.7979C13.9002 15.5322 14.0284 14.2203 14.5184 13.028C15.0085 11.8357 15.8383 10.8166 16.903 10.0997C17.9677 9.38268 19.2195 9 20.5 9C22.2171 9 23.8639 9.68745 25.0781 10.9111C26.2923 12.1348 26.9744 13.7944 26.9744 15.525Z",
|
|
24
|
-
fill: "white"
|
|
25
|
-
}, null, -1)),
|
|
26
|
-
e("path", {
|
|
27
|
-
d: "M36.2655 33.5758C38.3699 31.0459 39.8335 28.0469 40.5326 24.8323C41.2316 21.6177 41.1455 18.2822 40.2815 15.1079C39.4175 11.9336 37.8011 9.0139 35.569 6.59581C33.3368 4.17772 30.5547 2.33238 27.4578 1.21587C24.3609 0.0993725 21.0405 -0.255438 17.7774 0.181459C14.5142 0.618355 11.4044 1.83411 8.71099 3.72586C6.01756 5.61762 3.81975 8.12973 2.30349 11.0497C0.787232 13.9696 -0.00287585 17.2115 7.86538e-06 20.5011C0.00111445 25.2832 1.6877 29.9122 4.7638 33.5758L4.7345 33.6007C4.83707 33.7237 4.9543 33.8291 5.0598 33.9506C5.19168 34.1014 5.33382 34.2435 5.47009 34.3899C5.88039 34.835 6.3024 35.2625 6.74493 35.6637C6.87974 35.7866 7.01895 35.9008 7.15522 36.018C7.62413 36.4221 8.10623 36.8057 8.6059 37.1629C8.67038 37.2068 8.72899 37.264 8.79347 37.3093V37.2918C12.2254 39.7049 16.3196 41 20.5161 41C24.7127 41 28.8068 39.7049 32.2388 37.2918V37.3093C32.3033 37.264 32.3604 37.2068 32.4263 37.1629C32.9246 36.8042 33.4081 36.4221 33.877 36.018C34.0133 35.9008 34.1525 35.7852 34.2873 35.6637C34.7298 35.261 35.1519 34.835 35.5622 34.3899C35.6984 34.2435 35.8391 34.1014 35.9725 33.9506C36.0765 33.8291 36.1952 33.7237 36.2978 33.5992L36.2655 33.5758ZM20.5147 8.78808C21.8188 8.78808 23.0937 9.1745 24.1781 9.89846C25.2625 10.6224 26.1076 11.6514 26.6067 12.8553C27.1058 14.0592 27.2364 15.384 26.982 16.662C26.7275 17.9401 26.0995 19.1141 25.1773 20.0355C24.2551 20.9569 23.0802 21.5844 21.8011 21.8387C20.522 22.0929 19.1961 21.9624 17.9912 21.4637C16.7864 20.9651 15.7565 20.1206 15.032 19.0371C14.3074 17.9536 13.9207 16.6798 13.9207 15.3767C13.9207 13.6293 14.6154 11.9534 15.852 10.7178C17.0886 9.48224 18.7658 8.78808 20.5147 8.78808ZM8.80226 33.5758C8.82768 31.6534 9.60958 29.8182 10.9788 28.4674C12.348 27.1165 14.1945 26.3586 16.1187 26.3576H24.9107C26.8349 26.3586 28.6813 27.1165 30.0505 28.4674C31.4197 29.8182 32.2016 31.6534 32.2271 33.5758C29.0134 36.4694 24.8407 38.0708 20.5147 38.0708C16.1886 38.0708 12.016 36.4694 8.80226 33.5758Z",
|
|
28
|
-
fill: t.color
|
|
29
|
-
}, null, 8, G)
|
|
30
|
-
]));
|
|
31
|
-
}
|
|
32
|
-
}, U = { class: "nav" }, X = { "aria-disabled": "true" }, J = ["src"], K = { class: "sr-only-mobile" }, Q = { "aria-disabled": "true" }, W = ["src"], Y = { class: "sr-only-mobile" }, ee = { "aria-disabled": "true" }, te = ["src"], oe = { class: "sr-only" }, ie = { class: "main" }, ae = { class: "header" }, se = ["aria-level"], ne = { class: "date" }, le = { class: "expeditor" }, re = ["aria-level"], de = { class: "expeditor-mail" }, ce = { class: "recipient" }, pe = ["aria-label"], me = ["src"], ue = ["innerHTML"], ge = {
|
|
33
|
-
key: 0,
|
|
34
|
-
class: "previous-message"
|
|
35
|
-
}, he = { class: "previous-message__header" }, fe = ["innerHTML"], ve = /* @__PURE__ */ x({
|
|
1
|
+
import { _ as r, a as m, b as _, c as p, d as c, e as u, f as d, g } from "../nl-Bonww6Q2.js";
|
|
2
|
+
import { u as v, a as b, b as f } from "../normalize-props-DH0oPBss.js";
|
|
3
|
+
import { b as j, g as s, f as M, o as x, d as y } from "../_plugin-vue_export-helper-D0N_62VD.js";
|
|
4
|
+
import { i as t } from "../i18n-lite-t2jNOu0C.js";
|
|
5
|
+
import { P as C } from "../PixMailMessage.ce-XPDbJiyC.js";
|
|
6
|
+
const S = /* @__PURE__ */ j({
|
|
36
7
|
__name: "TemplateMail.ce",
|
|
37
8
|
props: {
|
|
38
|
-
titleLevel: {
|
|
9
|
+
titleLevel: { type: Number },
|
|
39
10
|
subject: { type: String },
|
|
40
11
|
mailAddress: { type: String },
|
|
41
12
|
avatarColor: { type: String },
|
|
@@ -44,122 +15,49 @@ const S = {}, z = {}, E = {}, V = {}, N = {}, A = {
|
|
|
44
15
|
content: { type: String },
|
|
45
16
|
previousMail: { type: Object }
|
|
46
17
|
},
|
|
47
|
-
setup(
|
|
48
|
-
const
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
})
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
return a("template-mail.previousHeader", { name: t.previousMail.name, time: s, date: n, interpolation: { escapeValue: !1 } });
|
|
79
|
-
}
|
|
80
|
-
return (n, s) => (m(), p(L, null, [
|
|
81
|
-
e("div", U, [
|
|
82
|
-
e("button", X, [
|
|
83
|
-
e("img", {
|
|
84
|
-
src: o(O),
|
|
85
|
-
alt: ""
|
|
86
|
-
}, null, 8, J),
|
|
87
|
-
e("span", K, i(o(a)("template-mail.send")), 1)
|
|
88
|
-
]),
|
|
89
|
-
e("button", Q, [
|
|
90
|
-
e("img", {
|
|
91
|
-
class: "forward",
|
|
92
|
-
src: o(P),
|
|
93
|
-
alt: ""
|
|
94
|
-
}, null, 8, W),
|
|
95
|
-
e("span", Y, i(o(a)("template-mail.forward")), 1)
|
|
96
|
-
]),
|
|
97
|
-
e("button", ee, [
|
|
98
|
-
e("img", {
|
|
99
|
-
src: o(F),
|
|
100
|
-
alt: ""
|
|
101
|
-
}, null, 8, te),
|
|
102
|
-
e("span", oe, i(o(a)("template-mail.menu")), 1)
|
|
103
|
-
])
|
|
104
|
-
]),
|
|
105
|
-
e("div", ie, [
|
|
106
|
-
e("div", ae, [
|
|
107
|
-
e("div", {
|
|
108
|
-
role: "heading",
|
|
109
|
-
"aria-level": t.titleLevel
|
|
110
|
-
}, i(t.subject), 9, se),
|
|
111
|
-
e("p", ne, i(o(g)), 1)
|
|
112
|
-
]),
|
|
113
|
-
e("div", le, [
|
|
114
|
-
k(I, {
|
|
115
|
-
class: "avatar",
|
|
116
|
-
color: t.avatarColor
|
|
117
|
-
}, null, 8, ["color"]),
|
|
118
|
-
e("div", {
|
|
119
|
-
role: "heading",
|
|
120
|
-
"aria-level": t.titleLevel + 1
|
|
121
|
-
}, [
|
|
122
|
-
M(i(t.expeditor) + " ", 1),
|
|
123
|
-
e("span", de, " <" + i(t.mailAddress) + ">", 1)
|
|
124
|
-
], 8, re),
|
|
125
|
-
e("div", ce, [
|
|
126
|
-
e("p", null, i(o(a)("template-mail.toMe")), 1),
|
|
127
|
-
e("button", {
|
|
128
|
-
"aria-disabled": "true",
|
|
129
|
-
"aria-label": o(a)("template-mail.details")
|
|
130
|
-
}, [
|
|
131
|
-
e("img", {
|
|
132
|
-
src: o(R),
|
|
133
|
-
alt: ""
|
|
134
|
-
}, null, 8, me)
|
|
135
|
-
], 8, pe)
|
|
136
|
-
])
|
|
137
|
-
]),
|
|
138
|
-
e("p", {
|
|
139
|
-
ref: "content",
|
|
140
|
-
class: "content",
|
|
141
|
-
innerHTML: t.content
|
|
142
|
-
}, null, 8, ue),
|
|
143
|
-
t.previousMail ? (m(), p("div", ge, [
|
|
144
|
-
e("p", he, i(h()), 1),
|
|
145
|
-
e("blockquote", {
|
|
146
|
-
innerHTML: t.previousMail.content
|
|
147
|
-
}, null, 8, fe)
|
|
148
|
-
])) : y("", !0)
|
|
149
|
-
])
|
|
150
|
-
], 64));
|
|
18
|
+
setup(a) {
|
|
19
|
+
const e = a, l = s(() => {
|
|
20
|
+
if (e.previousMail)
|
|
21
|
+
return {
|
|
22
|
+
sender: {
|
|
23
|
+
name: e.previousMail.name
|
|
24
|
+
},
|
|
25
|
+
time: e.previousMail.time,
|
|
26
|
+
body: e.previousMail.content
|
|
27
|
+
};
|
|
28
|
+
}), o = s(() => ({
|
|
29
|
+
subject: e.subject,
|
|
30
|
+
sender: {
|
|
31
|
+
name: e.expeditor,
|
|
32
|
+
address: e.mailAddress,
|
|
33
|
+
avatarColor: e.avatarColor
|
|
34
|
+
},
|
|
35
|
+
time: e.time,
|
|
36
|
+
body: e.content,
|
|
37
|
+
previousMail: l.value
|
|
38
|
+
})), n = {
|
|
39
|
+
reply: "disabled",
|
|
40
|
+
forward: "disabled",
|
|
41
|
+
menu: "disabled",
|
|
42
|
+
return: "hidden"
|
|
43
|
+
};
|
|
44
|
+
return (L, A) => (x(), M(C, {
|
|
45
|
+
"title-level": a.titleLevel,
|
|
46
|
+
mail: o.value,
|
|
47
|
+
actions: n
|
|
48
|
+
}, null, 8, ["title-level", "mail"]));
|
|
151
49
|
}
|
|
152
|
-
})
|
|
153
|
-
|
|
154
|
-
const
|
|
155
|
-
configureApp(
|
|
156
|
-
|
|
50
|
+
});
|
|
51
|
+
t.addTranslationsFromGlobResults(/* @__PURE__ */ Object.assign({ "../pix-mail-message/locales/de-AT.json": g, "../pix-mail-message/locales/en.json": d, "../pix-mail-message/locales/es-419.json": u, "../pix-mail-message/locales/es.json": c, "../pix-mail-message/locales/fr-BE.json": p, "../pix-mail-message/locales/fr.json": _, "../pix-mail-message/locales/it.json": m, "../pix-mail-message/locales/nl.json": r }));
|
|
52
|
+
const i = y(S, {
|
|
53
|
+
configureApp(a) {
|
|
54
|
+
t.changeLanguage(document?.documentElement?.lang || navigator.language), a.use(t);
|
|
157
55
|
}
|
|
158
56
|
});
|
|
159
|
-
|
|
160
|
-
...
|
|
161
|
-
titleLevel:
|
|
162
|
-
avatarColor:
|
|
163
|
-
previousMail: v(
|
|
57
|
+
i.prototype.normalizeProps = (a) => ({
|
|
58
|
+
...a,
|
|
59
|
+
titleLevel: f(a.titleLevel),
|
|
60
|
+
avatarColor: b(a.avatarColor),
|
|
61
|
+
previousMail: v(a.previousMail)
|
|
164
62
|
});
|
|
165
|
-
window.customElements.define("template-mail",
|
|
63
|
+
window.customElements.define("template-mail", i);
|