@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,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as K, i as w, b as
|
|
3
|
-
import { N as j } from "../NavigationButton.ce-
|
|
4
|
-
const
|
|
1
|
+
import { b as O, r as k, h as y, g, G as V, c as a, o as i, a as r, A as S, k as d, t as u, F as f, e as b, Q as H, E as m, n as C, K as L, B as F, l as P, _ as D, d as G } from "../_plugin-vue_export-helper-D0N_62VD.js";
|
|
2
|
+
import { a as K, i as w, b as Q } from "../i18n-ekiZvzf6.js";
|
|
3
|
+
import { N as j } from "../NavigationButton.ce-CA1M8sgV.js";
|
|
4
|
+
const R = {}, U = {}, q = {}, J = {}, W = {}, X = {
|
|
5
5
|
"pix-cursor": { confirm: "Valider", next: "Suivant", previous: "Précédent", selectAnOption: "Sélectionnez une option", youHaveChosen: "Vous avez choisi : { choice }" }
|
|
6
6
|
}, Y = {}, Z = {}, ee = ["for"], oe = {
|
|
7
7
|
class: "visible-options",
|
|
@@ -12,35 +12,35 @@ const U = {}, q = {}, J = {}, Q = {}, W = {}, X = {
|
|
|
12
12
|
}, ue = {
|
|
13
13
|
key: 0,
|
|
14
14
|
class: "confirm"
|
|
15
|
-
}, pe = ["innerHTML", "aria-hidden"], ve = /* @__PURE__ */
|
|
15
|
+
}, pe = ["innerHTML", "aria-hidden"], ve = /* @__PURE__ */ O({
|
|
16
16
|
__name: "PixCursor.ce",
|
|
17
17
|
props: {
|
|
18
18
|
options: { type: Array }
|
|
19
19
|
},
|
|
20
20
|
setup(n, { expose: M }) {
|
|
21
|
-
const p = n, s = k(Math.floor(p.options.length / 2)), o = k(!1), v = y(), _ = y(), I =
|
|
22
|
-
function
|
|
21
|
+
const p = n, s = k(Math.floor(p.options.length / 2)), o = k(!1), v = y(), _ = y(), I = g(() => s.value === p.options.length - 1), N = g(() => s.value === 0), c = g(() => Number(s.value));
|
|
22
|
+
function T() {
|
|
23
23
|
o.value = !0;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function $() {
|
|
26
26
|
o.value || (s.value = Math.max(0, c.value - 1));
|
|
27
27
|
}
|
|
28
|
-
function
|
|
28
|
+
function z() {
|
|
29
29
|
o.value || (s.value = Math.min(p.options.length - 1, c.value + 1));
|
|
30
30
|
}
|
|
31
31
|
function h(l) {
|
|
32
32
|
o.value || (s.value = l);
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function A() {
|
|
35
35
|
o.value = !1, s.value = Math.floor(p.options.length / 2);
|
|
36
36
|
}
|
|
37
37
|
return M({
|
|
38
|
-
reset:
|
|
38
|
+
reset: A
|
|
39
39
|
}), (l, x) => {
|
|
40
|
-
const B =
|
|
40
|
+
const B = V("i18next");
|
|
41
41
|
return i(), a("form", {
|
|
42
42
|
class: "pix-cursor",
|
|
43
|
-
onSubmit: P(
|
|
43
|
+
onSubmit: P(T, ["prevent"])
|
|
44
44
|
}, [
|
|
45
45
|
r("div", null, [
|
|
46
46
|
r("label", {
|
|
@@ -73,8 +73,8 @@ const U = {}, q = {}, J = {}, Q = {}, W = {}, X = {
|
|
|
73
73
|
[H, s.value]
|
|
74
74
|
]),
|
|
75
75
|
r("div", se, [
|
|
76
|
-
|
|
77
|
-
onClick:
|
|
76
|
+
m(j, {
|
|
77
|
+
onClick: $,
|
|
78
78
|
disabled: o.value || N.value,
|
|
79
79
|
label: l.$t("pix-cursor.previous"),
|
|
80
80
|
"aria-controls": d(v),
|
|
@@ -91,7 +91,7 @@ const U = {}, q = {}, J = {}, Q = {}, W = {}, X = {
|
|
|
91
91
|
}),
|
|
92
92
|
"aria-hidden": e !== c.value
|
|
93
93
|
}, [
|
|
94
|
-
|
|
94
|
+
m(B, {
|
|
95
95
|
translation: l.$t("pix-cursor.youHaveChosen")
|
|
96
96
|
}, {
|
|
97
97
|
choice: L(() => [
|
|
@@ -101,8 +101,8 @@ const U = {}, q = {}, J = {}, Q = {}, W = {}, X = {
|
|
|
101
101
|
}, 1032, ["translation"])
|
|
102
102
|
], 10, le))), 128))
|
|
103
103
|
]),
|
|
104
|
-
|
|
105
|
-
onClick:
|
|
104
|
+
m(j, {
|
|
105
|
+
onClick: z,
|
|
106
106
|
disabled: o.value || I.value,
|
|
107
107
|
label: l.$t("pix-cursor.next"),
|
|
108
108
|
"aria-controls": d(v),
|
|
@@ -129,9 +129,9 @@ const U = {}, q = {}, J = {}, Q = {}, W = {}, X = {
|
|
|
129
129
|
};
|
|
130
130
|
}
|
|
131
131
|
}), fe = "[data-v-58e704c5]{--pix-neutral-800: #253858;font-family:Nunito,sans-serif;color:var(--pix-neutral-800)}.pix-cursor[data-v-58e704c5]{display:flex;flex-direction:column;justify-content:center;margin:auto;padding:2rem;gap:1rem;overflow:hidden}.pix-cursor p[data-v-58e704c5]{text-align:center;font-size:1.1rem}.pix-cursor .chosen-option[data-v-58e704c5]{font-weight:700}.pix-cursor .visible-options[data-v-58e704c5]{display:flex;justify-content:space-between;margin:0;padding:0}.pix-cursor .visible-options li[data-v-58e704c5]{cursor:pointer;list-style:none}.pix-cursor input[data-v-58e704c5]{width:100%}.pix-cursor .confirm[data-v-58e704c5]{padding:.75rem 1.5rem;border-radius:8px;cursor:pointer;font-weight:600;font-size:1.25rem;letter-spacing:1.1;width:fit-content;margin:auto;border:none;color:#fff;background:#4075ff;grid-row:1;grid-column:1}.pix-cursor .confirm[data-v-58e704c5]:hover{background:#355ac4;transition:background ease .1s}.pix-cursor .navigation-container[data-v-58e704c5]{display:flex;justify-content:center;align-items:center;gap:1rem}.pix-cursor .navigation-container .chosen-text-container[data-v-58e704c5]{display:grid}.pix-cursor .navigation-container .chosen-text-container p[data-v-58e704c5]{grid-row:1;grid-column:1}.pix-cursor .navigation-container .chosen-text-container p.hidden[data-v-58e704c5]{transform:translate(100vw)}.pix-cursor .footer[data-v-58e704c5]{display:grid;grid-template-columns:auto;align-items:center;justify-content:center}.pix-cursor .feedback[data-v-58e704c5]{padding:1rem 1.2rem;border-left:solid 4px;border-radius:8px;grid-column:1;grid-row:1;text-align:start;margin:0}.pix-cursor .feedback.hidden[data-v-58e704c5]{visibility:hidden;transform:translate(100vw)}.pix-cursor .feedback.good[data-v-58e704c5]{background:#e8f5e9;border-left-color:#4caf51}.pix-cursor .feedback.bad[data-v-58e704c5]{background:#ffebee;border-left-color:#f44337}.pix-cursor .feedback.neutral[data-v-58e704c5]{background:#e8f6ff;border-left-color:#464ee0}.pix-cursor .feedback.close[data-v-58e704c5]{background:#fff8e1;border-left-color:#ffc108}", be = /* @__PURE__ */ D(ve, [["styles", [fe]], ["__scopeId", "data-v-58e704c5"]]);
|
|
132
|
-
K(/* @__PURE__ */ Object.assign({ "./locales/de-AT.json":
|
|
132
|
+
K(/* @__PURE__ */ Object.assign({ "./locales/de-AT.json": R, "./locales/en.json": U, "./locales/es-419.json": q, "./locales/es.json": J, "./locales/fr-BE.json": W, "./locales/fr.json": X, "./locales/it.json": Y, "./locales/nl.json": Z })).catch((n) => console.error(n));
|
|
133
133
|
window.customElements.define("pix-cursor", G(be, {
|
|
134
134
|
configureApp(n) {
|
|
135
|
-
w.changeLanguage(document?.documentElement?.lang || navigator.language), n.use(
|
|
135
|
+
w.changeLanguage(document?.documentElement?.lang || navigator.language), n.use(Q, { i18next: w });
|
|
136
136
|
}
|
|
137
137
|
}));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { _ as o, a as _, b as a, c as l, d as n, e as i, f as t, g } from "../nl-Bonww6Q2.js";
|
|
2
|
+
import { d as m } from "../_plugin-vue_export-helper-D0N_62VD.js";
|
|
3
|
+
import { i as e } from "../i18n-lite-t2jNOu0C.js";
|
|
4
|
+
import { P as c } from "../PixMailMessage.ce-XPDbJiyC.js";
|
|
5
|
+
e.addTranslationsFromGlobResults(/* @__PURE__ */ Object.assign({ "./locales/de-AT.json": g, "./locales/en.json": t, "./locales/es-419.json": i, "./locales/es.json": n, "./locales/fr-BE.json": l, "./locales/fr.json": a, "./locales/it.json": _, "./locales/nl.json": o }));
|
|
6
|
+
const r = m(c, {
|
|
7
|
+
configureApp(s) {
|
|
8
|
+
e.changeLanguage(document?.documentElement?.lang || navigator.language), s.use(e);
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
window.customElements.define("pix-mail-message", r);
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { b as M, r as f, j as k, u as j, g as o, c as F, o as r, a as l, E as g, f as p, B as y, t as d, K as v, n as O, H as $, k as u, x as S, _ as V, d as K } from "../_plugin-vue_export-helper-D0N_62VD.js";
|
|
2
|
+
import { u as D, i as b } from "../i18n-lite-t2jNOu0C.js";
|
|
3
|
+
import { S as I } from "../Stepper.ce-B1yDelzC.js";
|
|
4
|
+
import { _ as G, a as H, F as J } from "../Cross.ce.vue_vue_type_script_setup_true_lang-CVBFTfq5.js";
|
|
5
|
+
import { P as Q } from "../Popin.ce-DUQ7-GMT.js";
|
|
6
|
+
import { B as U } from "../Button.ce-CTKrSDrC.js";
|
|
7
|
+
import { P as W } from "../PixMailMessage.ce-XPDbJiyC.js";
|
|
8
|
+
import { u as w, a as X, b as Y } from "../normalize-props-DH0oPBss.js";
|
|
9
|
+
const Z = {
|
|
10
|
+
"proteger-mail-spam": { step: "Étape {{step}} sur {{totalStep}}", mailRecipent: "À moi", nextStepButton: "Continuer", successPopin: { title: "Se protéger, mais protéger aussi les autres.", content: "Dans le prochain exemple, l’interface dispose d'avantage de possibilités.", buttonLabel: "Suivant" }, feedback: { titleOk: "Bonne décision", titleKo: "Mauvais choix", step1: { reply: "Répondre confirme votre adresse mail et peut encourager l’escroc. Sélectionnez une autre action de l’interface pour vous protéger de cet expéditeur.", forward: "Transférer ce message expose quelqu’un d’autre à l’arnaque, et ne vous empêche pas de recevoir d’autres mails de cet expéditeur. Sélectionnez une autre action de l’interface pour vous protéger de cet expéditeur.", delete: "Supprimer ce message ne vous empêche pas d’en recevoir d’autres de cet expéditeur. Sélectionnez une autre action de l’interface pour vous protéger de cet expéditeur.", blockSender: "En choisissant de bloquer l’expéditeur, vous ne recevrez plus de message de cet expéditeur." }, step2: { reply: "Répondre valide votre adresse mail et ne vous permet ni de vous protéger, ni de protéger les autres de cet escroc. Sélectionnez une autre action de l’interface pour protéger tous les utilisateurs.", forward: "Transférer ce message expose quelqu’un d’autre à l’arnaque. Sélectionnez une autre action de l’interface pour protéger tous les utilisateurs.", delete: "Supprimer ce message ne vous permet ni de vous protéger, ni de protéger les autres de cet escroc. Sélectionnez une autre action de l’interface pour protéger tous les utilisateurs.", blockSender: "En choisissant de bloquer l’expéditeur, vous vous protégez de cet escroc mais vous ne protégez pas les autres. Sélectionnez une autre action de l’interface pour protéger tous les utilisateurs.", reportSpam: " En signalant ce message, vous vous protégez et vous contribuez à la protection des autres, car cela améliore les filtres anti-spam de tous les utilisateurs." } } }
|
|
11
|
+
}, ee = {
|
|
12
|
+
class: "main-container",
|
|
13
|
+
ref: "container",
|
|
14
|
+
tabindex: "-1"
|
|
15
|
+
}, te = ["aria-level"], ae = { class: "header__description" }, ne = /* @__PURE__ */ M({
|
|
16
|
+
__name: "ProtegerMailSpam.ce",
|
|
17
|
+
props: {
|
|
18
|
+
titleLevel: { default: 2, type: Number },
|
|
19
|
+
steps: { type: Array }
|
|
20
|
+
},
|
|
21
|
+
setup(e, { expose: m }) {
|
|
22
|
+
const { t: a } = D(), t = f(0), n = f(""), c = f(!1), P = k("continue-button"), B = k("container"), C = j(), s = o(() => e.steps.at(t.value)), i = o(() => s.value.goodAction === n.value), h = o(() => t.value === e.steps.length - 1), q = o(() => n.value ? a(`proteger-mail-spam.feedback.step${t.value + 1}.${n.value}`) : ""), R = o(() => i.value ? a("proteger-mail-spam.feedback.titleOk") : a("proteger-mail-spam.feedback.titleKo")), A = o(() => i.value ? {
|
|
23
|
+
return: "disabled",
|
|
24
|
+
reply: "disabled",
|
|
25
|
+
forward: "disabled",
|
|
26
|
+
menu: "disabled"
|
|
27
|
+
} : s.value.actions);
|
|
28
|
+
function E() {
|
|
29
|
+
n.value = "", t.value = 0, c.value = !1;
|
|
30
|
+
}
|
|
31
|
+
async function L(x) {
|
|
32
|
+
n.value = x, await S(), i.value && !h.value && P.value?.buttonElement.focus();
|
|
33
|
+
}
|
|
34
|
+
async function N() {
|
|
35
|
+
t.value += 1, n.value = "", await S(), B.value.focus();
|
|
36
|
+
}
|
|
37
|
+
async function T() {
|
|
38
|
+
await N(), c.value = !1;
|
|
39
|
+
}
|
|
40
|
+
return m({
|
|
41
|
+
reset: E
|
|
42
|
+
}), (x, _) => (r(), F("div", ee, [
|
|
43
|
+
l("div", null, [
|
|
44
|
+
l("div", {
|
|
45
|
+
role: "heading",
|
|
46
|
+
"aria-level": e.titleLevel,
|
|
47
|
+
class: "header__title"
|
|
48
|
+
}, d(s.value.title), 9, te),
|
|
49
|
+
l("p", ae, d(s.value.description), 1)
|
|
50
|
+
]),
|
|
51
|
+
g(I, {
|
|
52
|
+
step: t.value,
|
|
53
|
+
"steps-count": e.steps.length
|
|
54
|
+
}, null, 8, ["step", "steps-count"]),
|
|
55
|
+
g(W, {
|
|
56
|
+
actions: A.value,
|
|
57
|
+
mail: s.value.mail,
|
|
58
|
+
onAction: L
|
|
59
|
+
}, null, 8, ["actions", "mail"]),
|
|
60
|
+
l("div", {
|
|
61
|
+
class: O(["feedback", { "is-hidden": !n.value }]),
|
|
62
|
+
"aria-live": "polite"
|
|
63
|
+
}, [
|
|
64
|
+
n.value ? (r(), p(J, {
|
|
65
|
+
key: 0,
|
|
66
|
+
title: R.value
|
|
67
|
+
}, {
|
|
68
|
+
icon: v(() => [
|
|
69
|
+
i.value ? (r(), p(G, {
|
|
70
|
+
key: 0,
|
|
71
|
+
class: "feedback__icon",
|
|
72
|
+
"aria-hiden": "true"
|
|
73
|
+
})) : (r(), p(H, {
|
|
74
|
+
key: 1,
|
|
75
|
+
class: "feedback__icon",
|
|
76
|
+
"aria-hiden": "true"
|
|
77
|
+
}))
|
|
78
|
+
]),
|
|
79
|
+
content: v(() => [
|
|
80
|
+
l("p", null, d(q.value), 1)
|
|
81
|
+
]),
|
|
82
|
+
_: 1
|
|
83
|
+
}, 8, ["title"])) : y("", !0)
|
|
84
|
+
], 2),
|
|
85
|
+
i.value && !h.value ? (r(), p(U, {
|
|
86
|
+
key: 0,
|
|
87
|
+
ref: "continue-button",
|
|
88
|
+
onClick: _[0] || (_[0] = (ie) => c.value = !0),
|
|
89
|
+
class: "next-button"
|
|
90
|
+
}, {
|
|
91
|
+
default: v(() => [
|
|
92
|
+
$(d(u(a)("proteger-mail-spam.nextStepButton")), 1)
|
|
93
|
+
]),
|
|
94
|
+
_: 1
|
|
95
|
+
}, 512)) : y("", !0),
|
|
96
|
+
g(Q, {
|
|
97
|
+
content: u(a)("proteger-mail-spam.successPopin.content"),
|
|
98
|
+
title: u(a)("proteger-mail-spam.successPopin.title"),
|
|
99
|
+
show: c.value,
|
|
100
|
+
"text-button": u(a)("proteger-mail-spam.successPopin.buttonLabel"),
|
|
101
|
+
"root-element": u(C),
|
|
102
|
+
onPrimaryAction: T
|
|
103
|
+
}, null, 8, ["content", "title", "show", "text-button", "root-element"])
|
|
104
|
+
], 512));
|
|
105
|
+
}
|
|
106
|
+
}), oe = "html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}table{border-collapse:collapse;border-spacing:0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);border:0}*{font-family:Roboto,Nunito,sans-serif}.main-container{display:flex;flex-direction:column;align-items:center;color:#122647;padding:.5rem}.main-container>:not(:first-child){margin-top:1.5rem}.main-container .header{font-style:normal;text-align:center}.main-container .header__title{font-family:Nunito,sans-serif;text-align:center;font-size:1.25rem;font-weight:700;line-height:28px;margin-bottom:.25rem}.main-container .header__description{text-align:center;font-family:Roboto,sans-serif;font-size:.875rem;line-height:20px}.main-container .feedback{width:100%}.main-container .feedback.is-hidden{margin-top:unset}.main-container .feedback__icon{width:1rem}.main-container .next-button{font-size:.875rem;font-weight:700;line-height:24px}", se = /* @__PURE__ */ V(ne, [["styles", [oe]]]);
|
|
107
|
+
b.addTranslationsFromGlobResults(/* @__PURE__ */ Object.assign({ "./locales/fr.json": Z }));
|
|
108
|
+
const z = K(se, {
|
|
109
|
+
configureApp(e) {
|
|
110
|
+
b.changeLanguage(document?.documentElement?.lang || navigator.language), e.use(b);
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
z.prototype.normalizeProps = (e) => {
|
|
114
|
+
const m = e.steps.map((a) => {
|
|
115
|
+
const t = {
|
|
116
|
+
...a,
|
|
117
|
+
actions: w({
|
|
118
|
+
...e.actions,
|
|
119
|
+
menuActions: w(e.actions?.menuActions)
|
|
120
|
+
})
|
|
121
|
+
};
|
|
122
|
+
return t.mail.sender.avatarColor = X(t.mail.sender.avatarColor), t;
|
|
123
|
+
});
|
|
124
|
+
return {
|
|
125
|
+
titleLevel: Y(e.titleLevel),
|
|
126
|
+
steps: m
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
window.customElements.define("proteger-mail-spam", z);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as a, a as J, b as X } from "../i18n-
|
|
3
|
-
import { R as Y } from "../Retry-
|
|
4
|
-
import {
|
|
1
|
+
import { b as y, g as b, c as i, o, a as s, B as v, t as d, n as w, _, U as E, V as R, r as x, A as O, H as V, P, q as G, j as M, F as $, e as C, f as F, k as Q, E as k, W as U, K as W, l as H, d as K } from "../_plugin-vue_export-helper-D0N_62VD.js";
|
|
2
|
+
import { i as a, a as J, b as X } from "../i18n-ekiZvzf6.js";
|
|
3
|
+
import { R as Y } from "../Retry-BZf7NJz9.js";
|
|
4
|
+
import { b as Z } from "../normalize-props-DH0oPBss.js";
|
|
5
5
|
const ee = {}, te = {}, ae = {}, ne = {}, oe = {}, ie = {
|
|
6
6
|
"qcm-deepfake": { options: ["une photo de sa chanteuse préférée", "une chanson de sa chanteuse préférée", "les partitions de la chanson", "une photo de Caroline", "un enregistrement de Caroline qui dit quelques phrases"], iaResultInfo: "Retrouvez ici les résultats du logiciel d'IA générative :", iaResultGenerated: "Résultat généré par le logiciel d'IA générative", in: "Entrée", out: "Sortie", waiting: "Logiciel d'IA générative", selectThreeElements: "Sélectionnez 3 éléments pour générer la vidéo de Caroline :", generateVideo: "Générer la vidéo !", loading: "Chargement…", restart: "Recommencer", element_one: "élément", element_other: "éléments", generateVideoInfo_one: "Plus que {{count}} élément", generateVideoInfo_other: "Plus que {{count}} éléments", restartInfo: "Essayez avec de nouveaux éléments", success: { title: "Bien joué !", description: "C'est bien la vidéo de Caroline. Vous avez utilisé les bons éléments." }, fail: { title: "Pas exactement…", description: "Le résultat ne convient pas. Recommencez en changeant les éléments en entrée." } }
|
|
7
7
|
}, re = {}, se = {}, le = ["aria-hidden"], ce = ["aria-level"], de = ["src"], ue = {
|
|
@@ -55,7 +55,7 @@ const ee = {}, te = {}, ae = {}, ne = {}, oe = {}, ie = {
|
|
|
55
55
|
}
|
|
56
56
|
}), me = ".right-container[data-v-2a82aa38]{grid-row:1/1;grid-column:1/1}.right-container[aria-hidden=true][data-v-2a82aa38]{visibility:hidden}img[data-v-2a82aa38]{margin-block:.5rem}.subtitle[data-v-2a82aa38]{font-size:1.25rem;font-weight:700;text-align:center}.description[data-v-2a82aa38]{font-weight:700;margin-top:0;margin-bottom:0}img[data-v-2a82aa38]{width:200px;height:auto}.answer-block[data-v-2a82aa38]{background:#e8e8e8;margin-inline:1rem;padding:.5rem;border-radius:10px}.answer-block p[data-v-2a82aa38]{margin-bottom:0}.answer-block.success[data-v-2a82aa38]{background:#e8f3ef}.answer-block.fail[data-v-2a82aa38]{border-radius:16px;background:#fbecec}", ve = /* @__PURE__ */ _(pe, [["styles", [me]], ["__scopeId", "data-v-2a82aa38"]]), be = ["aria-disabled"], he = /* @__PURE__ */ y({
|
|
57
57
|
__name: "Option.ce",
|
|
58
|
-
props: /* @__PURE__ */
|
|
58
|
+
props: /* @__PURE__ */ E({
|
|
59
59
|
option: { type: String },
|
|
60
60
|
value: { type: Number },
|
|
61
61
|
readonly: { type: Boolean }
|
|
@@ -65,7 +65,7 @@ const ee = {}, te = {}, ae = {}, ne = {}, oe = {}, ie = {
|
|
|
65
65
|
}),
|
|
66
66
|
emits: ["update:modelValue"],
|
|
67
67
|
setup(e, { expose: u }) {
|
|
68
|
-
const n =
|
|
68
|
+
const n = R(e, "modelValue"), l = x(!1), t = b(() => n.value.length === 3 && !l.value || e.readonly);
|
|
69
69
|
function h(p) {
|
|
70
70
|
if (t.value) {
|
|
71
71
|
p.preventDefault();
|
|
@@ -85,7 +85,7 @@ const ee = {}, te = {}, ae = {}, ne = {}, oe = {}, ie = {
|
|
|
85
85
|
"aria-disabled": t.value,
|
|
86
86
|
"onUpdate:modelValue": m[0] || (m[0] = (g) => l.value = g)
|
|
87
87
|
}, null, 8, be), [
|
|
88
|
-
[
|
|
88
|
+
[P, l.value]
|
|
89
89
|
]),
|
|
90
90
|
V(d(e.option), 1)
|
|
91
91
|
], 2));
|
|
@@ -100,11 +100,11 @@ const ee = {}, te = {}, ae = {}, ne = {}, oe = {}, ie = {
|
|
|
100
100
|
return (u, n) => (o(), i("button", {
|
|
101
101
|
class: w(["epreuve-button", e.state])
|
|
102
102
|
}, [
|
|
103
|
-
|
|
103
|
+
G(u.$slots, "icon"),
|
|
104
104
|
V(" " + d(e.label), 1)
|
|
105
105
|
], 2));
|
|
106
106
|
}
|
|
107
|
-
}), xe = ".epreuve-button{--pix-neutral-0: #fff;--pix-neutral-800: #253858;--pix-neutral-900: #122647;--pix-secondary-500: #ffcb33;--pix-secondary-700: #a16206}.epreuve-button.primary{--background-color: var(--pix-neutral-800);--background-color-hover: var(--pix-neutral-900);--color: var(--pix-neutral-0);--color-hover: var(--pix-neutral-0)}.epreuve-button.warning{--background-color: var(--pix-secondary-500);--background-color-hover: var(--pix-secondary-700);--color: var(--pix-neutral-900);--color-hover: var(--pix-neutral-0)}.epreuve-button.primary,.epreuve-button.warning{align-items:center;background-color:var(--background-color);border:2px solid transparent;border-radius:8px;color:var(--color);cursor:pointer;display:flex;font-family:Roboto,sans-serif;font-size:1rem;font-weight:700;justify-content:center;gap:8px;line-height:24px;margin:0 auto;outline:none;padding:8px 24px;transition:background-color ease .5s,color ease .5s;width:fit-content;white-space:nowrap}:is(.epreuve-button.primary,.epreuve-button.warning)[aria-disabled=true]{cursor:not-allowed;opacity:.5}:is(.epreuve-button.primary,.epreuve-button.warning):not([aria-disabled=true]):hover{background-color:var(--background-color-hover);color:var(--color-hover);transition:background-color ease .5s,color ease .5s}:is(.epreuve-button.primary,.epreuve-button.warning):not([aria-disabled=true]):hover svg{color:var(--color-hover);transition:color ease .5s}:is(.epreuve-button.primary,.epreuve-button.warning):focus,:is(.epreuve-button.primary,.epreuve-button.warning):focus-visible{background-color:var(--background-color-hover);color:var(--color-hover);outline:1px solid var(--pix-neutral-0);outline-offset:-5px}", we = /* @__PURE__ */ _(ke, [["styles", [xe]]]),
|
|
107
|
+
}), xe = ".epreuve-button{--pix-neutral-0: #fff;--pix-neutral-800: #253858;--pix-neutral-900: #122647;--pix-secondary-500: #ffcb33;--pix-secondary-700: #a16206}.epreuve-button.primary{--background-color: var(--pix-neutral-800);--background-color-hover: var(--pix-neutral-900);--color: var(--pix-neutral-0);--color-hover: var(--pix-neutral-0)}.epreuve-button.warning{--background-color: var(--pix-secondary-500);--background-color-hover: var(--pix-secondary-700);--color: var(--pix-neutral-900);--color-hover: var(--pix-neutral-0)}.epreuve-button.primary,.epreuve-button.warning{align-items:center;background-color:var(--background-color);border:2px solid transparent;border-radius:8px;color:var(--color);cursor:pointer;display:flex;font-family:Roboto,sans-serif;font-size:1rem;font-weight:700;justify-content:center;gap:8px;line-height:24px;margin:0 auto;outline:none;padding:8px 24px;transition:background-color ease .5s,color ease .5s;width:fit-content;white-space:nowrap}:is(.epreuve-button.primary,.epreuve-button.warning)[aria-disabled=true]{cursor:not-allowed;opacity:.5}:is(.epreuve-button.primary,.epreuve-button.warning):not([aria-disabled=true]):hover{background-color:var(--background-color-hover);color:var(--color-hover);transition:background-color ease .5s,color ease .5s}:is(.epreuve-button.primary,.epreuve-button.warning):not([aria-disabled=true]):hover svg{color:var(--color-hover);transition:color ease .5s}:is(.epreuve-button.primary,.epreuve-button.warning):focus,:is(.epreuve-button.primary,.epreuve-button.warning):focus-visible{background-color:var(--background-color-hover);color:var(--color-hover);outline:1px solid var(--pix-neutral-0);outline-offset:-5px}", we = /* @__PURE__ */ _(ke, [["styles", [xe]]]), qe = { class: "container" }, Ie = { class: "left-side" }, Se = ["aria-level"], $e = { class: "left-side__description" }, Ce = { class: "left-side__action" }, Ve = {
|
|
108
108
|
key: 0,
|
|
109
109
|
id: "optionsSelectedInfo",
|
|
110
110
|
class: "left-side__lower-legend",
|
|
@@ -123,7 +123,7 @@ const ee = {}, te = {}, ae = {}, ne = {}, oe = {}, ie = {
|
|
|
123
123
|
searchDelay: { default: 3e3, type: Number }
|
|
124
124
|
},
|
|
125
125
|
setup(e, { expose: u }) {
|
|
126
|
-
const n = x([]), l = [2, 4, 5], t = x("info"), h =
|
|
126
|
+
const n = x([]), l = [2, 4, 5], t = x("info"), h = M("optionsNode"), p = a.t("qcm-deepfake.options", { returnObjects: !0 }), m = ["👩🎤", "🎧", "🎶", "👩", "🎙️"], g = p.map((c, r) => `${m[r]} ${c}`), B = g.filter((c, r) => l.includes(r + 1)), T = [
|
|
127
127
|
{
|
|
128
128
|
type: "info",
|
|
129
129
|
image: e.infoImage
|
|
@@ -146,11 +146,11 @@ const ee = {}, te = {}, ae = {}, ne = {}, oe = {}, ie = {
|
|
|
146
146
|
type: "search",
|
|
147
147
|
image: e.searchImage
|
|
148
148
|
}
|
|
149
|
-
],
|
|
150
|
-
function
|
|
151
|
-
return
|
|
149
|
+
], q = b(() => n.value.length !== 3 || t.value === "search"), j = b(() => t.value === "search" ? a.t("qcm-deepfake.loading") : t.value === "info" ? a.t("qcm-deepfake.generateVideo") : a.t("qcm-deepfake.restart")), D = b(() => t.value === "info" ? a.t("qcm-deepfake.generateVideoInfo", { count: l.length - n.value.length }) : t.value === "fail" ? a.t("qcm-deepfake.restartInfo") : "");
|
|
150
|
+
function z() {
|
|
151
|
+
return q.value ? !1 : t.value === "info" ? L() : I();
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function I() {
|
|
154
154
|
h.value.forEach((c) => {
|
|
155
155
|
c.isChecked = !1;
|
|
156
156
|
}), n.value = [], t.value = "info";
|
|
@@ -160,33 +160,33 @@ const ee = {}, te = {}, ae = {}, ne = {}, oe = {}, ie = {
|
|
|
160
160
|
t.value = "search", await new Promise((r) => setTimeout(r, e.searchDelay)), c ? t.value = "success" : t.value = "fail";
|
|
161
161
|
}
|
|
162
162
|
return u({
|
|
163
|
-
reset:
|
|
164
|
-
}), (c, r) => (o(), i("div",
|
|
165
|
-
s("form",
|
|
163
|
+
reset: I
|
|
164
|
+
}), (c, r) => (o(), i("div", qe, [
|
|
165
|
+
s("form", Ie, [
|
|
166
166
|
s("div", {
|
|
167
167
|
class: "left-side__subtitle",
|
|
168
168
|
role: "heading",
|
|
169
169
|
"aria-level": e.titleLevel
|
|
170
|
-
}, d(c.$t("qcm-deepfake.in")), 9,
|
|
170
|
+
}, d(c.$t("qcm-deepfake.in")), 9, Se),
|
|
171
171
|
s("fieldset", null, [
|
|
172
172
|
s("legend", $e, d(c.$t("qcm-deepfake.selectThreeElements")), 1),
|
|
173
|
-
(o(!0), i($, null, C(Q(g), (f,
|
|
173
|
+
(o(!0), i($, null, C(Q(g), (f, S) => (o(), F(_e, {
|
|
174
174
|
ref_for: !0,
|
|
175
175
|
ref_key: "optionsNode",
|
|
176
176
|
ref: h,
|
|
177
177
|
modelValue: n.value,
|
|
178
|
-
"onUpdate:modelValue": r[0] || (r[0] = (
|
|
179
|
-
key:
|
|
178
|
+
"onUpdate:modelValue": r[0] || (r[0] = (A) => n.value = A),
|
|
179
|
+
key: S,
|
|
180
180
|
class: "left-side__options",
|
|
181
181
|
option: f,
|
|
182
|
-
value:
|
|
182
|
+
value: S + 1,
|
|
183
183
|
readonly: t.value !== "info"
|
|
184
184
|
}, null, 8, ["modelValue", "option", "value", "readonly"]))), 128))
|
|
185
185
|
]),
|
|
186
186
|
s("div", Ce, [
|
|
187
187
|
k(we, {
|
|
188
|
-
onClick: H(
|
|
189
|
-
"aria-disabled":
|
|
188
|
+
onClick: H(z, ["prevent"]),
|
|
189
|
+
"aria-disabled": q.value,
|
|
190
190
|
label: j.value,
|
|
191
191
|
state: t.value === "info" ? "primary" : "warning",
|
|
192
192
|
"aria-describedby": ["success", "search"].includes(t.value) ? void 0 : "optionsSelectedInfo"
|
|
@@ -199,7 +199,7 @@ const ee = {}, te = {}, ae = {}, ne = {}, oe = {}, ie = {
|
|
|
199
199
|
key: "0"
|
|
200
200
|
} : void 0
|
|
201
201
|
]), 1032, ["aria-disabled", "label", "state", "aria-describedby"]),
|
|
202
|
-
["success", "search"].includes(t.value) ? v("", !0) : (o(), i("p", Ve, d(
|
|
202
|
+
["success", "search"].includes(t.value) ? v("", !0) : (o(), i("p", Ve, d(D.value), 1))
|
|
203
203
|
])
|
|
204
204
|
]),
|
|
205
205
|
s("div", Ne, [
|
|
@@ -216,9 +216,9 @@ const ee = {}, te = {}, ae = {}, ne = {}, oe = {}, ie = {
|
|
|
216
216
|
])
|
|
217
217
|
]));
|
|
218
218
|
}
|
|
219
|
-
}), Te = "legend,label,p,div[role=heading]{font-family:Nunito,Roboto,sans-serif;color:#253858}", je = ".container[data-v-66f8d52f]{display:flex;gap:.8rem}.title[data-v-66f8d52f]{font-size:1.75rem;font-weight:700;text-align:center;margin-bottom:16px}.left-side[data-v-66f8d52f]{min-width:60%;border:solid 1px #b0d3f4;background:#fff;padding:.8rem;border-radius:10px}.left-side__lower-legend[data-v-66f8d52f]{font-size:.875rem;color:#5e6c84}.left-side__subtitle[data-v-66f8d52f]{font-size:1.25rem;font-weight:700;text-align:center}.left-side__options[data-v-66f8d52f]{display:flex;border:solid 1px #5e6c84;padding:.6rem;border-radius:5px;gap:.5rem}.left-side__description[data-v-66f8d52f]{font-weight:700}.left-side__button[data-v-66f8d52f]{display:flex;gap:.5rem;align-items:center;border:none;padding:.6rem 1.5rem;background:#ffcb33;color:#000;border-radius:25px;font-weight:700;cursor:pointer}.left-side__button.generate[data-v-66f8d52f]{background:#613fdd;color:#fff}.left-side__button[aria-disabled=true][data-v-66f8d52f]{cursor:not-allowed;background:#d3d3d3}.left-side__action[data-v-66f8d52f]{display:flex;flex-direction:column;align-items:center;text-align:center}.right-side[data-v-66f8d52f]{display:grid;border:solid 1px #b0d3f4;background:#fff;padding:.8rem;text-align:center;border-radius:10px}fieldset[data-v-66f8d52f]{border:none;display:flex;flex-direction:column;gap:.8rem}@media(max-width:770px){.container[data-v-66f8d52f]{flex-wrap:wrap}.left-side[data-v-66f8d52f],.right-side[data-v-66f8d52f]{width:100%}}",
|
|
219
|
+
}), Te = "legend,label,p,div[role=heading]{font-family:Nunito,Roboto,sans-serif;color:#253858}", je = ".container[data-v-66f8d52f]{display:flex;gap:.8rem}.title[data-v-66f8d52f]{font-size:1.75rem;font-weight:700;text-align:center;margin-bottom:16px}.left-side[data-v-66f8d52f]{min-width:60%;border:solid 1px #b0d3f4;background:#fff;padding:.8rem;border-radius:10px}.left-side__lower-legend[data-v-66f8d52f]{font-size:.875rem;color:#5e6c84}.left-side__subtitle[data-v-66f8d52f]{font-size:1.25rem;font-weight:700;text-align:center}.left-side__options[data-v-66f8d52f]{display:flex;border:solid 1px #5e6c84;padding:.6rem;border-radius:5px;gap:.5rem}.left-side__description[data-v-66f8d52f]{font-weight:700}.left-side__button[data-v-66f8d52f]{display:flex;gap:.5rem;align-items:center;border:none;padding:.6rem 1.5rem;background:#ffcb33;color:#000;border-radius:25px;font-weight:700;cursor:pointer}.left-side__button.generate[data-v-66f8d52f]{background:#613fdd;color:#fff}.left-side__button[aria-disabled=true][data-v-66f8d52f]{cursor:not-allowed;background:#d3d3d3}.left-side__action[data-v-66f8d52f]{display:flex;flex-direction:column;align-items:center;text-align:center}.right-side[data-v-66f8d52f]{display:grid;border:solid 1px #b0d3f4;background:#fff;padding:.8rem;text-align:center;border-radius:10px}fieldset[data-v-66f8d52f]{border:none;display:flex;flex-direction:column;gap:.8rem}@media(max-width:770px){.container[data-v-66f8d52f]{flex-wrap:wrap}.left-side[data-v-66f8d52f],.right-side[data-v-66f8d52f]{width:100%}}", De = /* @__PURE__ */ _(Be, [["styles", [Te, je]], ["__scopeId", "data-v-66f8d52f"]]);
|
|
220
220
|
J(/* @__PURE__ */ Object.assign({ "./locales/de-AT.json": ee, "./locales/en.json": te, "./locales/es-419.json": ae, "./locales/es.json": ne, "./locales/fr-BE.json": oe, "./locales/fr.json": ie, "./locales/it.json": re, "./locales/nl.json": se })).catch((e) => console.error(e));
|
|
221
|
-
const N = K(
|
|
221
|
+
const N = K(De, {
|
|
222
222
|
configureApp(e) {
|
|
223
223
|
a.changeLanguage(document?.documentElement?.lang || navigator.language), e.use(X, { i18next: a });
|
|
224
224
|
}
|