@1024pix/epreuves-components 4.0.1 → 4.1.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 → Button.ce-DZ8jDtW5.js} +2 -2
- package/dist/{ButtonTooltip.ce-CtHo2Dwx.js → ButtonTooltip.ce-BnJlaEqx.js} +8 -8
- package/dist/{Cross.ce.vue_vue_type_script_setup_true_lang-CVBFTfq5.js → Cross.ce.vue_vue_type_script_setup_true_lang-l4hAa4eW.js} +16 -14
- package/dist/FocusManager.ce-DHXwg6WZ.js +131 -0
- package/dist/{LLMMessage.ce-Bdmf0R1g.js → LLMMessage.ce-jLEqjxsl.js} +11 -11
- package/dist/{Loading.ce-Bh7-h48F.js → Loading.ce-DDtlSLlu.js} +2 -2
- package/dist/{NavigationButton.ce-CA1M8sgV.js → NavigationButton.ce-BnnVUwGr.js} +2 -2
- package/dist/PixMailMessage.ce-oCccQFGV.js +261 -0
- package/dist/Popin.ce-Co12R3C8.js +75 -0
- package/dist/{Retry-BZf7NJz9.js → Retry-C7C78Wpj.js} +2 -2
- package/dist/{Stepper.ce-B1yDelzC.js → Stepper.ce-Dttf3Dsf.js} +4 -4
- package/dist/{_plugin-vue_export-helper-D0N_62VD.js → _plugin-vue_export-helper-B-lVMTio.js} +1777 -1713
- package/dist/components/analyse-mails-phishing.ce.js.js +14 -14
- package/dist/components/calcul-impact.ce.js.js +20 -20
- package/dist/components/capacity-calculation.ce.js.js +22 -22
- package/dist/components/clickable-image.ce.js.js +30 -30
- package/dist/components/complete-phrase.ce.js.js +18 -18
- package/dist/components/flip-cards.ce.js.js +10 -10
- package/dist/components/image-quiz.ce.js.js +3 -3
- package/dist/components/image-quizzes.ce.js.js +3 -3
- package/dist/components/llm-compare-messages.ce.js.js +7 -7
- package/dist/components/llm-messages.ce.js.js +7 -7
- package/dist/components/llm-prompt-select.ce.js.js +5 -5
- package/dist/components/mdp-classement.ce.js.js +29 -29
- package/dist/components/message-conversation.ce.js.js +34 -34
- package/dist/components/mobile-shell.ce.js.js +8 -8
- package/dist/components/phishing-message.ce.js.js +128 -128
- package/dist/components/phishing-notification.ce.js.js +30 -30
- package/dist/components/pix-anonymisation.ce.js.js +27 -27
- package/dist/components/pix-article.ce.js.js +5 -5
- package/dist/components/pix-carousel.ce.js.js +38 -38
- package/dist/components/pix-combinaisons.ce.js.js +93 -92
- package/dist/components/pix-cursor.ce.js.js +26 -26
- package/dist/components/pix-mail-message.ce.js.js +3 -3
- package/dist/components/proteger-mail-spam.ce.js.js +66 -64
- package/dist/components/qcm-deepfake.ce.js.js +16 -16
- package/dist/components/quiz-stepper.ce.js.js +21 -21
- package/dist/components/select-conversation.ce.js.js +11 -11
- package/dist/components/template-mail.ce.js.js +4 -4
- package/dist/components/test-top-mdp.ce.js.js +86 -79
- package/dist/components/trouver-mdp-rs.ce.js.js +334 -418
- package/dist/{i18n-ekiZvzf6.js → i18n-CsT7k7zW.js} +329 -316
- package/dist/{i18n-lite-t2jNOu0C.js → i18n-lite-BIJ2LVs6.js} +19 -12
- package/dist/{image-quiz.ce-DqalWHKw.js → image-quiz.ce-BK6-8YF1.js} +9 -9
- package/dist/{index-BpqxFmwz.js → index-BaI3Qosp.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/props.examples.js +13 -13
- package/dist/schema.js +77 -67
- package/dist/shadow-dom-Bouq869n.js +14 -0
- package/dist/{temporal.utils-7Uvm62ss.js → temporal.utils-DgmGPVba.js} +537 -536
- package/package.json +1 -1
- package/dist/PixMailMessage.ce-XPDbJiyC.js +0 -219
- package/dist/Popin.ce-DUQ7-GMT.js +0 -197
- package/dist/shadow-dom-C3AZuSZe.js +0 -9
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { b as g,
|
|
1
|
+
import { b as g, o as r, c as n, F as m, a as i, t as f, x as l, l as x, _ as u, r as y, e as k, N as v, C as w, d as F } from "../_plugin-vue_export-helper-B-lVMTio.js";
|
|
2
2
|
import { b as _ } from "../normalize-props-DH0oPBss.js";
|
|
3
|
-
const
|
|
3
|
+
const C = ["aria-hidden"], L = ["src"], N = ["aria-level"], z = ["aria-hidden"], S = ["aria-level"], $ = { class: "description" }, B = { class: "image-container" }, j = ["src"], E = /* @__PURE__ */ g({
|
|
4
4
|
__name: "FlipCard.ce",
|
|
5
5
|
props: {
|
|
6
6
|
titleLevel: { type: Number },
|
|
@@ -12,7 +12,7 @@ const L = ["aria-hidden"], C = ["src"], N = ["aria-level"], z = ["aria-hidden"],
|
|
|
12
12
|
name: { type: String }
|
|
13
13
|
},
|
|
14
14
|
setup(e) {
|
|
15
|
-
return (s, p) => (
|
|
15
|
+
return (s, p) => (r(), n(m, null, [
|
|
16
16
|
i("div", {
|
|
17
17
|
class: f(["card recto", `${e.color}`]),
|
|
18
18
|
"aria-hidden": e.isFlipped ? "true" : "false"
|
|
@@ -21,13 +21,13 @@ const L = ["aria-hidden"], C = ["src"], N = ["aria-level"], z = ["aria-hidden"],
|
|
|
21
21
|
class: "icon",
|
|
22
22
|
src: e.icon,
|
|
23
23
|
alt: ""
|
|
24
|
-
}, null, 8,
|
|
24
|
+
}, null, 8, L),
|
|
25
25
|
i("div", {
|
|
26
26
|
role: "heading",
|
|
27
27
|
"aria-level": e.titleLevel,
|
|
28
28
|
class: "title"
|
|
29
29
|
}, l(e.name), 9, N)
|
|
30
|
-
], 10,
|
|
30
|
+
], 10, C),
|
|
31
31
|
i("div", {
|
|
32
32
|
class: f(["card verso", { flipped: e.isFlipped, [e.color]: e.color }]),
|
|
33
33
|
"aria-hidden": e.isFlipped ? "false" : "true"
|
|
@@ -39,16 +39,16 @@ const L = ["aria-hidden"], C = ["src"], N = ["aria-level"], z = ["aria-hidden"],
|
|
|
39
39
|
}, l(e.name), 9, S),
|
|
40
40
|
i("p", $, l(e.description), 1),
|
|
41
41
|
i("div", B, [
|
|
42
|
-
e.image ? (
|
|
42
|
+
e.image ? (r(), n("img", {
|
|
43
43
|
key: 0,
|
|
44
44
|
src: e.image,
|
|
45
45
|
alt: ""
|
|
46
|
-
}, null, 8,
|
|
46
|
+
}, null, 8, j)) : x("", !0)
|
|
47
47
|
])
|
|
48
48
|
], 10, z)
|
|
49
49
|
], 64));
|
|
50
50
|
}
|
|
51
|
-
}), K = "[data-v-c0da3f12]{box-sizing:border-box}.card[data-v-c0da3f12]{align-items:center;backface-visibility:hidden;-webkit-backface-visibility:hidden;background:#fff;border-radius:12px;color:#253858;display:flex;flex-direction:column;gap:1.2rem;inset:0;justify-content:center;padding:18px;position:absolute;transform:translateZ(0);transition:transform ease .5s}.card .title[data-v-c0da3f12]{font-family:Nunito,sans-serif;font-size:1rem;font-weight:700;line-height:29px}.card.recto.red[data-v-c0da3f12]{background:linear-gradient(150deg,#fff,#ff7373)}.card.recto.yellow[data-v-c0da3f12]{background:linear-gradient(150deg,#fff,#ffec73)}.card.recto.blue[data-v-c0da3f12]{background:linear-gradient(150deg,#fff,#2491ff)}.card.recto.purple[data-v-c0da3f12]{background:linear-gradient(150deg,#fff,#9177f2)}.card.recto.green[data-v-c0da3f12]{background:linear-gradient(150deg,#fff,#52d987)}.card.recto.pink[data-v-c0da3f12]{background:linear-gradient(150deg,#fff,#f041bf)}.card.recto .icon[data-v-c0da3f12]{display:block;height:auto;width:40px}.card.verso[data-v-c0da3f12]{line-height:1.2rem;padding:8px;text-align:center;transform:rotateY(180deg) translateZ(0)}.card.verso.flipped.red[data-v-c0da3f12]{border:2px solid #ff7373}.card.verso.flipped.yellow[data-v-c0da3f12]{border:2px solid #ffec73}.card.verso.flipped.blue[data-v-c0da3f12]{border:2px solid #2491ff}.card.verso.flipped.purple[data-v-c0da3f12]{border:2px solid #9177f2}.card.verso.flipped.green[data-v-c0da3f12]{border:2px solid #52d987}.card.verso.flipped.pink[data-v-c0da3f12]{border:2px solid #f041bf}.card.verso .description[data-v-c0da3f12]{font-size:.9rem;margin:0 0 8px}.card.verso .image-container[data-v-c0da3f12]{margin:8px 8px 16px;overflow:hidden;width:160px}.card.verso img[data-v-c0da3f12]{display:block;height:100%;object-fit:contain;width:100%}", V = /* @__PURE__ */ u(
|
|
51
|
+
}), K = "[data-v-c0da3f12]{box-sizing:border-box}.card[data-v-c0da3f12]{align-items:center;backface-visibility:hidden;-webkit-backface-visibility:hidden;background:#fff;border-radius:12px;color:#253858;display:flex;flex-direction:column;gap:1.2rem;inset:0;justify-content:center;padding:18px;position:absolute;transform:translateZ(0);transition:transform ease .5s}.card .title[data-v-c0da3f12]{font-family:Nunito,sans-serif;font-size:1rem;font-weight:700;line-height:29px}.card.recto.red[data-v-c0da3f12]{background:linear-gradient(150deg,#fff,#ff7373)}.card.recto.yellow[data-v-c0da3f12]{background:linear-gradient(150deg,#fff,#ffec73)}.card.recto.blue[data-v-c0da3f12]{background:linear-gradient(150deg,#fff,#2491ff)}.card.recto.purple[data-v-c0da3f12]{background:linear-gradient(150deg,#fff,#9177f2)}.card.recto.green[data-v-c0da3f12]{background:linear-gradient(150deg,#fff,#52d987)}.card.recto.pink[data-v-c0da3f12]{background:linear-gradient(150deg,#fff,#f041bf)}.card.recto .icon[data-v-c0da3f12]{display:block;height:auto;width:40px}.card.verso[data-v-c0da3f12]{line-height:1.2rem;padding:8px;text-align:center;transform:rotateY(180deg) translateZ(0)}.card.verso.flipped.red[data-v-c0da3f12]{border:2px solid #ff7373}.card.verso.flipped.yellow[data-v-c0da3f12]{border:2px solid #ffec73}.card.verso.flipped.blue[data-v-c0da3f12]{border:2px solid #2491ff}.card.verso.flipped.purple[data-v-c0da3f12]{border:2px solid #9177f2}.card.verso.flipped.green[data-v-c0da3f12]{border:2px solid #52d987}.card.verso.flipped.pink[data-v-c0da3f12]{border:2px solid #f041bf}.card.verso .description[data-v-c0da3f12]{font-size:.9rem;margin:0 0 8px}.card.verso .image-container[data-v-c0da3f12]{margin:8px 8px 16px;overflow:hidden;width:160px}.card.verso img[data-v-c0da3f12]{display:block;height:100%;object-fit:contain;width:100%}", V = /* @__PURE__ */ u(E, [["styles", [K]], ["__scopeId", "data-v-c0da3f12"]]), D = { class: "flip-cards" }, I = ["aria-level"], Y = ["aria-expanded", "onClick", "onKeydown"], Z = { class: "flip-container" }, A = /* @__PURE__ */ g({
|
|
52
52
|
__name: "FlipCards.ce",
|
|
53
53
|
props: {
|
|
54
54
|
titleLevel: { default: 2, type: Number },
|
|
@@ -65,13 +65,13 @@ const L = ["aria-hidden"], C = ["src"], N = ["aria-level"], z = ["aria-hidden"],
|
|
|
65
65
|
), c = (t, o) => {
|
|
66
66
|
o.preventDefault(), t.isFlipped = !t.isFlipped;
|
|
67
67
|
};
|
|
68
|
-
return (t, o) => (
|
|
68
|
+
return (t, o) => (r(), n("div", D, [
|
|
69
69
|
i("div", {
|
|
70
70
|
role: "heading",
|
|
71
71
|
"aria-level": e.titleLevel,
|
|
72
72
|
class: "sr-only"
|
|
73
73
|
}, l(e.name), 9, I),
|
|
74
|
-
(
|
|
74
|
+
(r(!0), n(m, null, k(p.value, (a, b) => (r(), n("div", {
|
|
75
75
|
key: b,
|
|
76
76
|
class: f(["card-container", { flipped: a.isFlipped, [a.color]: a.color }]),
|
|
77
77
|
role: "button",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as t } from "../image-quiz.ce-
|
|
2
|
-
import "../_plugin-vue_export-helper-
|
|
1
|
+
import { n as t } from "../image-quiz.ce-BK6-8YF1.js";
|
|
2
|
+
import "../_plugin-vue_export-helper-B-lVMTio.js";
|
|
3
3
|
import "../normalize-props-DH0oPBss.js";
|
|
4
|
-
import "../i18n-lite-
|
|
4
|
+
import "../i18n-lite-BIJ2LVs6.js";
|
|
5
5
|
export {
|
|
6
6
|
t as normalizeImageQuizProps
|
|
7
7
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { I as g, _ as f, a as z, b as v, c as w, d, e as p, f as b, g as j, n as A } from "../image-quiz.ce-
|
|
2
|
-
import { b as q, r as E, w as h,
|
|
3
|
-
import { i as n } from "../i18n-lite-
|
|
1
|
+
import { I as g, _ as f, a as z, b as v, c as w, d, e as p, f as b, g as j, n as A } from "../image-quiz.ce-BK6-8YF1.js";
|
|
2
|
+
import { b as q, r as E, w as h, o as l, c as y, e as I, f as k, m as B, F as Q, d as C } from "../_plugin-vue_export-helper-B-lVMTio.js";
|
|
3
|
+
import { i as n } from "../i18n-lite-BIJ2LVs6.js";
|
|
4
4
|
const F = /* @__PURE__ */ q({
|
|
5
5
|
__name: "ImageQuizzes.ce",
|
|
6
6
|
props: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { b as c,
|
|
2
|
-
import { L as l } from "../LLMMessage.ce-
|
|
3
|
-
import { p as u } from "../shadow-dom-
|
|
1
|
+
import { b as c, o as t, c as s, a as e, x as n, F as r, e as m, C as i, _ as p, d as g } from "../_plugin-vue_export-helper-B-lVMTio.js";
|
|
2
|
+
import { L as l } from "../LLMMessage.ce-jLEqjxsl.js";
|
|
3
|
+
import { p as u } from "../shadow-dom-Bouq869n.js";
|
|
4
4
|
const f = {
|
|
5
5
|
class: "header",
|
|
6
6
|
"aria-hidden": "true"
|
|
@@ -13,7 +13,7 @@ const f = {
|
|
|
13
13
|
messages: { type: Array }
|
|
14
14
|
},
|
|
15
15
|
setup(o) {
|
|
16
|
-
return u(), (L, N) => (
|
|
16
|
+
return u(), (L, N) => (t(), s(r, null, [
|
|
17
17
|
e("div", f, [
|
|
18
18
|
e("div", null, [
|
|
19
19
|
e("p", h, n(o.conversation1.title), 1)
|
|
@@ -24,11 +24,11 @@ const f = {
|
|
|
24
24
|
]),
|
|
25
25
|
e("p", v, " Comparaison entre la conversation " + n(o.conversation1.title) + " et la conversation " + n(o.conversation2.title), 1),
|
|
26
26
|
e("div", y, [
|
|
27
|
-
(
|
|
27
|
+
(t(!0), s(r, null, m(o.messages, (a, d) => (t(), s("div", {
|
|
28
28
|
key: d,
|
|
29
29
|
class: "llm-compare-messages__row"
|
|
30
30
|
}, [
|
|
31
|
-
Array.isArray(a) ? (
|
|
31
|
+
Array.isArray(a) ? (t(), s(r, { key: 0 }, [
|
|
32
32
|
e("div", null, [
|
|
33
33
|
i(l, {
|
|
34
34
|
message: a[0],
|
|
@@ -41,7 +41,7 @@ const f = {
|
|
|
41
41
|
name: o.conversation2.llmName
|
|
42
42
|
}, null, 8, ["message", "name"])
|
|
43
43
|
])
|
|
44
|
-
], 64)) : (
|
|
44
|
+
], 64)) : (t(), s(r, { key: 1 }, [
|
|
45
45
|
e("div", null, [
|
|
46
46
|
i(l, {
|
|
47
47
|
message: a,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { b as c,
|
|
2
|
-
import { L as h } from "../LLMMessage.ce-
|
|
3
|
-
import { p as _ } from "../shadow-dom-
|
|
1
|
+
import { b as c, L as m, M as i, o as e, c as t, F as p, e as d, f, _ as g, d as u } from "../_plugin-vue_export-helper-B-lVMTio.js";
|
|
2
|
+
import { L as h } from "../LLMMessage.ce-jLEqjxsl.js";
|
|
3
|
+
import { p as _ } from "../shadow-dom-Bouq869n.js";
|
|
4
4
|
const x = {
|
|
5
5
|
class: "llm-messages",
|
|
6
6
|
"aria-live": "polite"
|
|
7
|
-
},
|
|
7
|
+
}, L = /* @__PURE__ */ c({
|
|
8
8
|
__name: "LLMMessages.ce",
|
|
9
9
|
props: {
|
|
10
10
|
messages: { type: Array }
|
|
@@ -18,12 +18,12 @@ const x = {
|
|
|
18
18
|
}
|
|
19
19
|
return i(async () => {
|
|
20
20
|
a.messages, r();
|
|
21
|
-
}), (
|
|
21
|
+
}), (y, w) => (e(), t("div", x, [
|
|
22
22
|
(e(!0), t(p, null, d(s.messages, (l, n) => (e(), f(h, {
|
|
23
23
|
key: n,
|
|
24
24
|
message: l
|
|
25
25
|
}, null, 8, ["message"]))), 128))
|
|
26
26
|
]));
|
|
27
27
|
}
|
|
28
|
-
}),
|
|
29
|
-
window.customElements.define("llm-messages", u(
|
|
28
|
+
}), b = "*{box-sizing:border-box}:host{height:100%;overflow:auto;scroll-behavior:smooth}@media(prefers-reduced-motion:reduce){:host{scroll-behavior:auto}}.llm-messages{display:flex;flex-direction:column;gap:29px;padding:24px}", v = /* @__PURE__ */ g(L, [["styles", [b]]]);
|
|
29
|
+
window.customElements.define("llm-messages", u(v));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as h, r as c,
|
|
1
|
+
import { b as h, r as c, K as y, o as d, c as m, C as w, a, E as k, F as b, e as C, x as L, _ as S, d as P } from "../_plugin-vue_export-helper-B-lVMTio.js";
|
|
2
2
|
import { b as N } from "../normalize-props-DH0oPBss.js";
|
|
3
3
|
import "./llm-messages.ce.js.js";
|
|
4
4
|
const E = { class: "prompt-select" }, M = { class: "prompt-select__options" }, B = ["disabled", "onClick"], V = /* @__PURE__ */ h({
|
|
@@ -46,7 +46,7 @@ const E = { class: "prompt-select" }, M = { class: "prompt-select__options" }, B
|
|
|
46
46
|
}
|
|
47
47
|
return (e, t) => {
|
|
48
48
|
const p = y("llm-messages");
|
|
49
|
-
return
|
|
49
|
+
return d(), m(b, null, [
|
|
50
50
|
w(p, { messages: s.value }, null, 8, ["messages"]),
|
|
51
51
|
a("div", E, [
|
|
52
52
|
t[0] || (t[0] = a("p", { class: "prompt-select__label" }, [
|
|
@@ -54,17 +54,17 @@ const E = { class: "prompt-select" }, M = { class: "prompt-select__options" }, B
|
|
|
54
54
|
a("span", { class: "sr-only" }, " une fois sélectionnés, les prompts ne sont plus disponibles. ")
|
|
55
55
|
], -1)),
|
|
56
56
|
a("div", M, [
|
|
57
|
-
(
|
|
57
|
+
(d(!0), m(b, null, C(u.value, (n, i) => (d(), m("button", {
|
|
58
58
|
key: i,
|
|
59
59
|
disabled: n.disabled || l.value,
|
|
60
60
|
onClick: (f) => v(n)
|
|
61
|
-
},
|
|
61
|
+
}, L(n.prompt), 9, B))), 128))
|
|
62
62
|
])
|
|
63
63
|
])
|
|
64
64
|
], 64);
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
|
-
}), z = ".sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);border:0}llm-messages{display:block;height:400px}.prompt-select{font-family:Roboto,sans-serif;border-top:solid 1px #253858;padding:16px 24px 24px}.prompt-select__label{margin-top:0;font-weight:700;color:#253858}.prompt-select__options{display:flex;gap:1rem;justify-content:left;flex-wrap:wrap}.prompt-select__options>button{padding:1rem 1.5rem;border:none;background:#cec3f4;border-radius:16px;border:1px solid #ffffff;color:#130261;font-size:.875rem;box-shadow:0 4px 12px -4px #957ee833}.prompt-select__options>button:hover:not(:disabled){background:#9a8dc7;color:#fff;cursor:pointer}.prompt-select__options>button:disabled{cursor:not-allowed;color:#1010104d}", A = /* @__PURE__ */
|
|
67
|
+
}), z = ".sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);border:0}llm-messages{display:block;height:400px}.prompt-select{font-family:Roboto,sans-serif;border-top:solid 1px #253858;padding:16px 24px 24px}.prompt-select__label{margin-top:0;font-weight:700;color:#253858}.prompt-select__options{display:flex;gap:1rem;justify-content:left;flex-wrap:wrap}.prompt-select__options>button{padding:1rem 1.5rem;border:none;background:#cec3f4;border-radius:16px;border:1px solid #ffffff;color:#130261;font-size:.875rem;box-shadow:0 4px 12px -4px #957ee833}.prompt-select__options>button:hover:not(:disabled){background:#9a8dc7;color:#fff;cursor:pointer}.prompt-select__options>button:disabled{cursor:not-allowed;color:#1010104d}", A = /* @__PURE__ */ S(V, [["styles", [z]]]), _ = P(A);
|
|
68
68
|
_.prototype.normalizeProps = (r) => ({
|
|
69
69
|
...r,
|
|
70
70
|
speed: N(r.speed)
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { b as
|
|
2
|
-
import { a as J, i as U, b as Q } from "../i18n-
|
|
3
|
-
import { B as W } from "../Button.ce-
|
|
4
|
-
import { _ as Z, a as A, F as X } from "../Cross.ce.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { b as j, h as L, o as n, c as d, t as N, a as s, y as h, f as m, x as g, C as b, D as v, l as _, n as V, _ as S, r as D, K as O, F as M, e as q, E as K, g as T, d as H } from "../_plugin-vue_export-helper-B-lVMTio.js";
|
|
2
|
+
import { a as J, i as U, b as Q } from "../i18n-CsT7k7zW.js";
|
|
3
|
+
import { B as W } from "../Button.ce-DZ8jDtW5.js";
|
|
4
|
+
import { _ as Z, a as A, F as X } from "../Cross.ce.vue_vue_type_script_setup_true_lang-l4hAa4eW.js";
|
|
5
5
|
import { s as F } from "../shuffled-B8VGTceh.js";
|
|
6
|
-
import { B as
|
|
6
|
+
import { B as I } from "../ButtonTooltip.ce-BnJlaEqx.js";
|
|
7
7
|
const Y = {}, e0 = {}, a0 = {}, t0 = {}, s0 = {}, n0 = {
|
|
8
8
|
"mdp-classement": { correct: "Correct", incorrect: "Incorrect", strong: "Fort", weak: "Faible", moveUp: "Classer l'élément comme étant plus fort", moveDown: "Classer l'élément comme étant plus faible", altInformation: "Une liste de mots de passe à ordonner du plus fort au plus faible", validate: "Valider", feedback: { positiveTitle: "Bien joué !", positiveContent: "Ton classement est correct ! Dans cette liste, seul le mot de passe {strongestPassword} est un mot de passe fort.", negativeTitle: "Pas tout à fait", negativeContent: "Plus un mot de passe est long, varié et imprévisible, plus il est fort. Il n'y a qu'un seul mot de passe fort dans cette liste." } }
|
|
9
9
|
}, o0 = {}, r0 = {}, i0 = "data:image/svg+xml,%3csvg%20width='16'%20height='10'%20viewBox='0%200%2016%2010'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7.61667%209.1C7.41756%209.1%207.227%209.06556%207.045%208.99667C6.86278%208.92778%206.697%208.81878%206.54767%208.66967L0.422334%202.54433C0.140778%202.26256%200%201.90889%200%201.48333C0%201.05778%200.140778%200.704111%200.422334%200.422333C0.704112%200.140777%201.05778%200%201.48333%200C1.90889%200%202.26256%200.140777%202.54433%200.422333L7.61667%205.495L12.689%200.422333C12.9708%200.140777%2013.3244%200%2013.75%200C14.1756%200%2014.5292%200.140777%2014.811%200.422333C15.0926%200.704111%2015.2333%201.05778%2015.2333%201.48333C15.2333%201.90889%2015.0926%202.26256%2014.811%202.54433L8.68567%208.66967C8.53633%208.81878%208.37056%208.92778%208.18833%208.99667C8.00633%209.06556%207.81578%209.1%207.61667%209.1Z'%20fill='url(%23paint0_linear_3023_127)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_3023_127'%20x1='0'%20y1='4.55'%20x2='15.2333'%20y2='4.55'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%232B7FFF'/%3e%3cstop%20offset='1'%20stop-color='%2300b8db'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e", l0 = "data:image/svg+xml,%3csvg%20width='16'%20height='10'%20viewBox='0%200%2016%2010'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7.61667%203.63033L2.54433%208.703C2.26256%208.98456%201.90889%209.12533%201.48333%209.12533C1.05778%209.12533%200.704112%208.98456%200.422334%208.703C0.140778%208.42122%200%208.06756%200%207.642C0%207.21645%200.140778%206.86278%200.422334%206.581L6.54767%200.455666C6.85167%200.151888%207.208%200%207.61667%200C8.02533%200%208.38167%200.151888%208.68567%200.455666L14.811%206.581C15.0926%206.86278%2015.2333%207.21645%2015.2333%207.642C15.2333%208.06756%2015.0926%208.42122%2014.811%208.703C14.5292%208.98456%2014.1756%209.12533%2013.75%209.12533C13.3244%209.12533%2012.9708%208.98456%2012.689%208.703L7.61667%203.63033Z'%20fill='url(%23paint0_linear_3023_130)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_3023_130'%20x1='0'%20y1='4.56267'%20x2='15.2333'%20y2='4.56267'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%232B7FFF'/%3e%3cstop%20offset='1'%20stop-color='%2300b8db'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e", d0 = "data:image/svg+xml,%3csvg%20width='16'%20height='10'%20viewBox='0%200%2016%2010'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7.61667%209.1C7.41756%209.1%207.227%209.06556%207.045%208.99667C6.86278%208.92778%206.697%208.81878%206.54767%208.66967L0.422334%202.54433C0.140778%202.26256%200%201.90889%200%201.48333C0%201.05778%200.140778%200.704111%200.422334%200.422333C0.704112%200.140777%201.05778%200%201.48333%200C1.90889%200%202.26256%200.140777%202.54433%200.422333L7.61667%205.495L12.689%200.422333C12.9708%200.140777%2013.3244%200%2013.75%200C14.1756%200%2014.5292%200.140777%2014.811%200.422333C15.0926%200.704111%2015.2333%201.05778%2015.2333%201.48333C15.2333%201.90889%2015.0926%202.26256%2014.811%202.54433L8.68567%208.66967C8.53633%208.81878%208.37056%208.92778%208.18833%208.99667C8.00633%209.06556%207.81578%209.1%207.61667%209.1Z'%20fill='%23CDD1D9'/%3e%3c/svg%3e", c0 = "data:image/svg+xml,%3csvg%20width='16'%20height='10'%20viewBox='0%200%2016%2010'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7.61667%203.63033L2.54433%208.703C2.26256%208.98456%201.90889%209.12533%201.48333%209.12533C1.05778%209.12533%200.704112%208.98456%200.422334%208.703C0.140778%208.42122%200%208.06756%200%207.642C0%207.21645%200.140778%206.86278%200.422334%206.581L6.54767%200.455666C6.85167%200.151888%207.208%200%207.61667%200C8.02533%200%208.38167%200.151888%208.68567%200.455666L14.811%206.581C15.0926%206.86278%2015.2333%207.21645%2015.2333%207.642C15.2333%208.06756%2015.0926%208.42122%2014.811%208.703C14.5292%208.98456%2014.1756%209.12533%2013.75%209.12533C13.3244%209.12533%2012.9708%208.98456%2012.689%208.703L7.61667%203.63033Z'%20fill='%23cdd1d9'/%3e%3c/svg%3e", p0 = "data:image/svg+xml,%3csvg%20width='9'%20height='15'%20viewBox='0%200%209%2015'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0%201.5C0%201.29%20-1.55065e-07%201.1865%200.0119998%201.0995C0.0501813%200.824562%200.177043%200.569595%200.373319%200.373319C0.569595%200.177043%200.824562%200.0501813%201.0995%200.0119998C1.185%20-1.55065e-07%201.29%200%201.5%200C1.71%200%201.8135%20-1.55065e-07%201.9005%200.0119998C2.17544%200.0501813%202.4304%200.177043%202.62668%200.373319C2.82296%200.569595%202.94982%200.824562%202.988%201.0995C3%201.185%203%201.29%203%201.5C3%201.71%203%201.8135%202.988%201.9005C2.94982%202.17544%202.82296%202.4304%202.62668%202.62668C2.4304%202.82296%202.17544%202.94982%201.9005%202.988C1.815%203%201.71%203%201.5%203C1.29%203%201.1865%203%201.0995%202.988C0.824562%202.94982%200.569595%202.82296%200.373319%202.62668C0.177043%202.4304%200.0501813%202.17544%200.0119998%201.9005C-1.55065e-07%201.815%200%201.71%200%201.5ZM0%207.5C0%207.29%20-1.55065e-07%207.1865%200.0119998%207.0995C0.0501813%206.82456%200.177043%206.5696%200.373319%206.37332C0.569595%206.17704%200.824562%206.05018%201.0995%206.012C1.185%206%201.29%206%201.5%206C1.71%206%201.8135%206%201.9005%206.012C2.17544%206.05018%202.4304%206.17704%202.62668%206.37332C2.82296%206.5696%202.94982%206.82456%202.988%207.0995C3%207.185%203%207.29%203%207.5C3%207.71%203%207.8135%202.988%207.9005C2.94982%208.17544%202.82296%208.4304%202.62668%208.62668C2.4304%208.82296%202.17544%208.94982%201.9005%208.988C1.815%209%201.71%209%201.5%209C1.29%209%201.1865%209%201.0995%208.988C0.824562%208.94982%200.569595%208.82296%200.373319%208.62668C0.177043%208.4304%200.0501813%208.17544%200.0119998%207.9005C-1.55065e-07%207.815%200%207.71%200%207.5ZM0%2013.5C0%2013.2915%20-1.55065e-07%2013.1865%200.0119998%2013.0995C0.0504049%2012.8251%200.177181%2012.5706%200.373135%2012.3746C0.56909%2012.1787%200.823553%2012.0519%201.098%2012.0135C1.1865%2012.0015%201.29%2012.0015%201.4985%2012.0015C1.707%2012.0015%201.8135%2012.0015%201.899%2012.0135C2.17345%2012.0519%202.42791%2012.1787%202.62386%2012.3746C2.81982%2012.5706%202.94659%2012.8251%202.985%2013.0995C2.997%2013.1865%202.997%2013.2915%202.997%2013.5C2.997%2013.7085%202.997%2013.8135%202.985%2013.9005C2.94659%2014.1749%202.81982%2014.4294%202.62386%2014.6254C2.42791%2014.8213%202.17345%2014.9481%201.899%2014.9865C1.812%2014.9985%201.707%2014.9985%201.4985%2014.9985C1.29%2014.9985%201.185%2014.9985%201.098%2014.9865C0.823553%2014.9481%200.56909%2014.8213%200.373135%2014.6254C0.177181%2014.4294%200.0504049%2014.1749%200.0119998%2013.9005C-1.55065e-07%2013.8135%200%2013.7085%200%2013.5ZM6%201.5C6%201.29%206%201.1865%206.012%201.0995C6.05018%200.824562%206.17704%200.569595%206.37332%200.373319C6.5696%200.177043%206.82456%200.0501813%207.0995%200.0119998C7.185%20-1.55065e-07%207.29%200%207.5%200C7.71%200%207.8135%20-1.55065e-07%207.9005%200.0119998C8.17544%200.0501813%208.4304%200.177043%208.62668%200.373319C8.82296%200.569595%208.94982%200.824562%208.988%201.0995C9%201.185%209%201.29%209%201.5C9%201.71%209%201.8135%208.988%201.9005C8.94982%202.17544%208.82296%202.4304%208.62668%202.62668C8.4304%202.82296%208.17544%202.94982%207.9005%202.988C7.815%203%207.71%203%207.5%203C7.29%203%207.1865%203%207.0995%202.988C6.82456%202.94982%206.5696%202.82296%206.37332%202.62668C6.17704%202.4304%206.05018%202.17544%206.012%201.9005C6%201.815%206%201.71%206%201.5ZM6%207.5C6%207.29%206%207.1865%206.012%207.0995C6.05018%206.82456%206.17704%206.5696%206.37332%206.37332C6.5696%206.17704%206.82456%206.05018%207.0995%206.012C7.185%206%207.29%206%207.5%206C7.71%206%207.8135%206%207.9005%206.012C8.17544%206.05018%208.4304%206.17704%208.62668%206.37332C8.82296%206.5696%208.94982%206.82456%208.988%207.0995C9%207.185%209%207.29%209%207.5C9%207.71%209%207.8135%208.988%207.9005C8.94982%208.17544%208.82296%208.4304%208.62668%208.62668C8.4304%208.82296%208.17544%208.94982%207.9005%208.988C7.815%209%207.71%209%207.5%209C7.29%209%207.1865%209%207.0995%208.988C6.82456%208.94982%206.5696%208.82296%206.37332%208.62668C6.17704%208.4304%206.05018%208.17544%206.012%207.9005C6%207.815%206%207.71%206%207.5ZM6%2013.5C6%2013.2915%206%2013.1865%206.012%2013.0995C6.05041%2012.8251%206.17718%2012.5706%206.37314%2012.3746C6.56909%2012.1787%206.82355%2012.0519%207.098%2012.0135C7.1865%2012.0015%207.29%2012.0015%207.4985%2012.0015C7.7085%2012.0015%207.8135%2012.0015%207.899%2012.0135C8.17345%2012.0519%208.42791%2012.1787%208.62386%2012.3746C8.81982%2012.5706%208.94659%2012.8251%208.985%2013.0995C8.997%2013.1865%208.997%2013.2915%208.997%2013.5C8.997%2013.7085%208.997%2013.8135%208.985%2013.9005C8.94659%2014.1749%208.81982%2014.4294%208.62386%2014.6254C8.42791%2014.8213%208.17345%2014.9481%207.899%2014.9865C7.812%2014.9985%207.707%2014.9985%207.4985%2014.9985C7.29%2014.9985%207.185%2014.9985%207.098%2014.9865C6.82355%2014.9481%206.56909%2014.8213%206.37314%2014.6254C6.17718%2014.4294%206.05041%2014.1749%206.012%2013.9005C6%2013.8135%206%2013.7085%206%2013.5Z'%20fill='%23CDD1D9'/%3e%3c/svg%3e", C0 = { class: "card-left" }, g0 = ["src"], v0 = ["id"], u0 = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "card-right"
|
|
12
|
-
}, f0 = ["src"], m0 = ["src"], b0 = /* @__PURE__ */
|
|
12
|
+
}, f0 = ["src"], m0 = ["src"], b0 = /* @__PURE__ */ j({
|
|
13
13
|
__name: "DraggableCard.ce",
|
|
14
14
|
props: {
|
|
15
15
|
password: { type: String },
|
|
@@ -18,8 +18,8 @@ const Y = {}, e0 = {}, a0 = {}, t0 = {}, s0 = {}, n0 = {
|
|
|
18
18
|
state: { type: String }
|
|
19
19
|
},
|
|
20
20
|
emits: ["move-up", "move-down", "dragstart", "drop"],
|
|
21
|
-
setup(t, { emit:
|
|
22
|
-
const u = L("card"), r = L("button-up"), c =
|
|
21
|
+
setup(t, { emit: x }) {
|
|
22
|
+
const u = L("card"), r = L("button-up"), c = x;
|
|
23
23
|
function p(o) {
|
|
24
24
|
o.dataTransfer.setDragImage(u.value, 30, 30), c("dragstart", o);
|
|
25
25
|
}
|
|
@@ -39,9 +39,9 @@ const Y = {}, e0 = {}, a0 = {}, t0 = {}, s0 = {}, n0 = {
|
|
|
39
39
|
draggable: "",
|
|
40
40
|
onDragstart: p,
|
|
41
41
|
onDrop: i[0] || (i[0] = (w) => c("drop", w)),
|
|
42
|
-
onDragenter: i[1] || (i[1] =
|
|
42
|
+
onDragenter: i[1] || (i[1] = h(() => {
|
|
43
43
|
}, ["prevent"])),
|
|
44
|
-
onDragover: i[2] || (i[2] =
|
|
44
|
+
onDragover: i[2] || (i[2] = h(() => {
|
|
45
45
|
}, ["prevent"]))
|
|
46
46
|
}, null, 40, g0)) : t.state === "correct" ? (n(), m(Z, {
|
|
47
47
|
key: 1,
|
|
@@ -59,7 +59,7 @@ const Y = {}, e0 = {}, a0 = {}, t0 = {}, s0 = {}, n0 = {
|
|
|
59
59
|
}, g(t.password), 9, v0)
|
|
60
60
|
]),
|
|
61
61
|
t.state === "active" ? (n(), d("div", u0, [
|
|
62
|
-
b(
|
|
62
|
+
b(I, {
|
|
63
63
|
class: "move",
|
|
64
64
|
ref: "button-up",
|
|
65
65
|
onClick: f,
|
|
@@ -75,7 +75,7 @@ const Y = {}, e0 = {}, a0 = {}, t0 = {}, s0 = {}, n0 = {
|
|
|
75
75
|
]),
|
|
76
76
|
_: 1
|
|
77
77
|
}, 8, ["label", "disabled", "aria-describedby"]),
|
|
78
|
-
b(
|
|
78
|
+
b(I, {
|
|
79
79
|
class: "move",
|
|
80
80
|
onClick: i[3] || (i[3] = (w) => o.$emit("move-down")),
|
|
81
81
|
label: o.$t("mdp-classement.moveDown"),
|
|
@@ -93,24 +93,24 @@ const Y = {}, e0 = {}, a0 = {}, t0 = {}, s0 = {}, n0 = {
|
|
|
93
93
|
])) : _("", !0)
|
|
94
94
|
], 2));
|
|
95
95
|
}
|
|
96
|
-
}), w0 = "p[data-v-b5698134]{margin:5px}.drag-handle[data-v-b5698134]{cursor:grabbing;z-index:217;-webkit-user-select:none;user-select:none;padding:0 4px}svg.icon[data-v-b5698134]{width:24px;height:24px}.card[data-v-b5698134]{display:flex;align-items:center;justify-content:space-between;background:#fff;border-radius:100px;box-shadow:0 4px 8px #07142e14;padding:8px;border:solid 1px transparent}.card .card-left[data-v-b5698134]{display:flex;align-items:center;gap:12px;padding-left:8px}.card .card-right[data-v-b5698134]{display:flex;gap:16px;padding-right:8px}.correct[data-v-b5698134]{border:solid 1px #00a85a}.incorrect[data-v-b5698134]{border:solid 1px #ee6911}[data-v-b5698134] .move{background:none;border:none}@media screen and (max-width:768px){.card .card-left[data-v-b5698134]{gap:8px}.card .card-right[data-v-b5698134]{gap:4px}.drag-handle[data-v-b5698134]{display:none}}", _0 = /* @__PURE__ */ S(b0, [["styles", [w0]], ["__scopeId", "data-v-b5698134"]]),
|
|
96
|
+
}), w0 = "p[data-v-b5698134]{margin:5px}.drag-handle[data-v-b5698134]{cursor:grabbing;z-index:217;-webkit-user-select:none;user-select:none;padding:0 4px}svg.icon[data-v-b5698134]{width:24px;height:24px}.card[data-v-b5698134]{display:flex;align-items:center;justify-content:space-between;background:#fff;border-radius:100px;box-shadow:0 4px 8px #07142e14;padding:8px;border:solid 1px transparent}.card .card-left[data-v-b5698134]{display:flex;align-items:center;gap:12px;padding-left:8px}.card .card-right[data-v-b5698134]{display:flex;gap:16px;padding-right:8px}.correct[data-v-b5698134]{border:solid 1px #00a85a}.incorrect[data-v-b5698134]{border:solid 1px #ee6911}[data-v-b5698134] .move{background:none;border:none}@media screen and (max-width:768px){.card .card-left[data-v-b5698134]{gap:8px}.card .card-right[data-v-b5698134]{gap:4px}.drag-handle[data-v-b5698134]{display:none}}", _0 = /* @__PURE__ */ S(b0, [["styles", [w0]], ["__scopeId", "data-v-b5698134"]]), h0 = { class: "wrapper" }, x0 = { class: "sr-only" }, y0 = { class: "ranking-container" }, D0 = { class: "strongness-bar__container" }, k0 = ["onDrop"], $0 = {
|
|
97
97
|
key: 0,
|
|
98
98
|
class: "validate-container"
|
|
99
99
|
}, B0 = {
|
|
100
100
|
class: "feedback",
|
|
101
101
|
"aria-live": "polite"
|
|
102
|
-
}, L0 = /* @__PURE__ */
|
|
102
|
+
}, L0 = /* @__PURE__ */ j({
|
|
103
103
|
__name: "MdpClassement.ce",
|
|
104
104
|
props: {
|
|
105
105
|
passwords: { type: Array }
|
|
106
106
|
},
|
|
107
|
-
setup(t, { expose:
|
|
108
|
-
const u = t, r = D(F(u.passwords, { ensureIsShuffled: !0 })), c = D(!1), p = D(!0), f =
|
|
107
|
+
setup(t, { expose: x }) {
|
|
108
|
+
const u = t, r = D(F(u.passwords, { ensureIsShuffled: !0 })), c = D(!1), p = D(!0), f = T(() => r.value.map((e, a) => ({
|
|
109
109
|
password: e,
|
|
110
110
|
isFirst: a === 0,
|
|
111
111
|
isLast: a === r.value.length - 1,
|
|
112
112
|
state: i(a, e)
|
|
113
|
-
}))), o =
|
|
113
|
+
}))), o = T(() => f.value.every(({ state: e }) => e === "correct"));
|
|
114
114
|
function i(e, a) {
|
|
115
115
|
return p.value ? "active" : a === u.passwords[e] ? "correct" : "incorrect";
|
|
116
116
|
}
|
|
@@ -130,13 +130,13 @@ const Y = {}, e0 = {}, a0 = {}, t0 = {}, s0 = {}, n0 = {
|
|
|
130
130
|
function E() {
|
|
131
131
|
p.value = !1;
|
|
132
132
|
}
|
|
133
|
-
return
|
|
133
|
+
return x({
|
|
134
134
|
reset: w
|
|
135
135
|
}), (e, a) => {
|
|
136
136
|
const y = O("i18next");
|
|
137
|
-
return n(), d(
|
|
138
|
-
s("div",
|
|
139
|
-
s("p",
|
|
137
|
+
return n(), d(M, null, [
|
|
138
|
+
s("div", h0, [
|
|
139
|
+
s("p", x0, g(e.$t("mdp-classement.altInformation")), 1),
|
|
140
140
|
s("div", y0, [
|
|
141
141
|
s("div", D0, [
|
|
142
142
|
s("p", null, g(e.$t("mdp-classement.strong")), 1),
|
|
@@ -144,12 +144,12 @@ const Y = {}, e0 = {}, a0 = {}, t0 = {}, s0 = {}, n0 = {
|
|
|
144
144
|
s("p", null, g(e.$t("mdp-classement.weak")), 1)
|
|
145
145
|
]),
|
|
146
146
|
s("ul", null, [
|
|
147
|
-
(n(!0), d(
|
|
147
|
+
(n(!0), d(M, null, q(f.value, ({ password: B, isFirst: P, isLast: R, state: G }, C) => (n(), d("li", { key: B }, [
|
|
148
148
|
b(_0, {
|
|
149
149
|
password: B,
|
|
150
|
-
"is-up-disabled":
|
|
151
|
-
"is-down-disabled":
|
|
152
|
-
state:
|
|
150
|
+
"is-up-disabled": P,
|
|
151
|
+
"is-down-disabled": R,
|
|
152
|
+
state: G,
|
|
153
153
|
onMoveUp: (l) => k(C, C - 1),
|
|
154
154
|
onMoveDown: (l) => k(C, C + 1),
|
|
155
155
|
onDragstart: (l) => z(l, C),
|
|
@@ -159,9 +159,9 @@ const Y = {}, e0 = {}, a0 = {}, t0 = {}, s0 = {}, n0 = {
|
|
|
159
159
|
c.value ? (n(), d("div", {
|
|
160
160
|
key: 0,
|
|
161
161
|
onDrop: (l) => $(l, C),
|
|
162
|
-
onDragenter: a[1] || (a[1] =
|
|
162
|
+
onDragenter: a[1] || (a[1] = h(() => {
|
|
163
163
|
}, ["prevent"])),
|
|
164
|
-
onDragover: a[2] || (a[2] =
|
|
164
|
+
onDragover: a[2] || (a[2] = h(() => {
|
|
165
165
|
}, ["prevent"])),
|
|
166
166
|
class: "drop-down"
|
|
167
167
|
}, null, 40, k0)) : _("", !0)
|
|
@@ -175,7 +175,7 @@ const Y = {}, e0 = {}, a0 = {}, t0 = {}, s0 = {}, n0 = {
|
|
|
175
175
|
onClick: E
|
|
176
176
|
}, {
|
|
177
177
|
default: v(() => [
|
|
178
|
-
|
|
178
|
+
K(g(e.$t("mdp-classement.validate")), 1)
|
|
179
179
|
]),
|
|
180
180
|
_: 1
|
|
181
181
|
})
|
|
@@ -212,7 +212,7 @@ const Y = {}, e0 = {}, a0 = {}, t0 = {}, s0 = {}, n0 = {
|
|
|
212
212
|
}
|
|
213
213
|
}), M0 = "[data-v-65c2c799]{--pix-neutral-800: #253858;font-family:Nunito,Roboto,sans-serif;color:var(--pix-neutral-800)}.sr-only[data-v-65c2c799]{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.strongness-bar__container[data-v-65c2c799]{display:flex;flex-direction:column;align-items:center;gap:8px}.strongness-bar__container p[data-v-65c2c799]{font-family:Roboto,sans-serif;font-size:14px;font-weight:700}.strongness-bar__container .strongness-bar[data-v-65c2c799]{width:10px;height:calc(100% - 48px);border-radius:16px;background:linear-gradient(180deg,#2b7fff,#00b8db)}.wrapper[data-v-65c2c799]{background:#eaf1ff;border-radius:8px;padding:24px}.wrapper .draggable-card[data-v-65c2c799]{border:solid 2px #f0f}.icon-size[data-v-65c2c799]{width:16px;height:16px}.ranking-container[data-v-65c2c799]{display:flex}.ranking-container ul[data-v-65c2c799]{width:100%;display:flex;flex-direction:column;gap:12px}.ranking-container li[data-v-65c2c799]{position:relative;list-style-type:none}.ranking-container .drop-down[data-v-65c2c799]{border:dashed 1px #2b7fff;top:0;height:calc(100% + 10px);position:absolute;width:100%;opacity:.5;z-index:90}.validate-container[data-v-65c2c799]{width:100%;display:flex;justify-content:center;margin:24px 0 8px}.validate-container .validate[data-v-65c2c799]{font-size:14px;font-weight:700}.feedback div[data-v-65c2c799]{margin:24px 0 8px}@media screen and (max-width:768px){.wrapper[data-v-65c2c799]{padding:12px}ul[data-v-65c2c799]{padding-left:8px}}", T0 = /* @__PURE__ */ S(L0, [["styles", [M0]], ["__scopeId", "data-v-65c2c799"]]);
|
|
214
214
|
J(/* @__PURE__ */ Object.assign({ "./locales/de-AT.json": Y, "./locales/en.json": e0, "./locales/es-419.json": a0, "./locales/es.json": t0, "./locales/fr-BE.json": s0, "./locales/fr.json": n0, "./locales/it.json": o0, "./locales/nl.json": r0 })).catch((t) => console.error(t));
|
|
215
|
-
window.customElements.define("mdp-classement",
|
|
215
|
+
window.customElements.define("mdp-classement", H(T0, {
|
|
216
216
|
configureApp(t) {
|
|
217
217
|
U.changeLanguage(document?.documentElement?.lang || navigator.language), t.use(Q, { i18next: U });
|
|
218
218
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { b as S,
|
|
2
|
-
import { L
|
|
3
|
-
import {
|
|
4
|
-
const
|
|
1
|
+
import { b as S, k as E, o as n, c as i, t as x, a as _, E as k, x as v, l, C as T, O as B, m as z, F as b, e as M, r as w, g as N, _ as D, h as P, f as V, d as F } from "../_plugin-vue_export-helper-B-lVMTio.js";
|
|
2
|
+
import { L } from "../Loading.ce-DDtlSLlu.js";
|
|
3
|
+
import { u as O, a as j, b as I } from "../normalize-props-DH0oPBss.js";
|
|
4
|
+
const R = ["part"], q = {
|
|
5
5
|
key: 1,
|
|
6
6
|
class: "message__loader message__content",
|
|
7
7
|
"aria-hidden": "true"
|
|
8
|
-
},
|
|
8
|
+
}, G = ["part"], H = { key: 1 }, J = { key: 0 }, K = /* @__PURE__ */ S({
|
|
9
9
|
__name: "Message.ce",
|
|
10
10
|
props: {
|
|
11
11
|
displaySender: { type: Boolean, default: !0 },
|
|
@@ -14,8 +14,8 @@ const H = ["part"], R = {
|
|
|
14
14
|
animationDuration: { type: Number },
|
|
15
15
|
loadingDuration: { type: Number }
|
|
16
16
|
},
|
|
17
|
-
setup(e, { expose:
|
|
18
|
-
const t =
|
|
17
|
+
setup(e, { expose: c }) {
|
|
18
|
+
const t = w("hidden"), d = w([]), m = N(() => e.message.content?.split(`
|
|
19
19
|
`));
|
|
20
20
|
function g(s) {
|
|
21
21
|
return new Promise((a) => {
|
|
@@ -26,14 +26,14 @@ const H = ["part"], R = {
|
|
|
26
26
|
async function u() {
|
|
27
27
|
await g(e.startAnimation), t.value = "loading", await g(e.loadingDuration), t.value = "visible", await g(e.animationDuration);
|
|
28
28
|
}
|
|
29
|
-
|
|
29
|
+
E(u);
|
|
30
30
|
async function y() {
|
|
31
31
|
t.value = "hidden", d.value.forEach(clearTimeout), await u();
|
|
32
32
|
}
|
|
33
|
-
return
|
|
33
|
+
return c({
|
|
34
34
|
reset: y
|
|
35
35
|
}), (s, a) => (n(), i("div", {
|
|
36
|
-
class:
|
|
36
|
+
class: x(["message", [
|
|
37
37
|
`message--${e.message.direction}`,
|
|
38
38
|
{ "hidden-state": t.value === "hidden" }
|
|
39
39
|
]])
|
|
@@ -43,23 +43,23 @@ const H = ["part"], R = {
|
|
|
43
43
|
class: "message__sender",
|
|
44
44
|
part: `sender ${e.message.direction}`
|
|
45
45
|
}, [
|
|
46
|
-
a[0] || (a[0] =
|
|
46
|
+
a[0] || (a[0] = _("span", { class: "sr-only" }, "Message de ", -1)),
|
|
47
47
|
k(v(e.message.userName), 1)
|
|
48
|
-
], 8,
|
|
49
|
-
t.value === "loading" ? (n(), i("div",
|
|
50
|
-
|
|
51
|
-
])) :
|
|
52
|
-
|
|
53
|
-
class:
|
|
48
|
+
], 8, R)) : l("", !0),
|
|
49
|
+
t.value === "loading" ? (n(), i("div", q, [
|
|
50
|
+
T(L)
|
|
51
|
+
])) : l("", !0),
|
|
52
|
+
_("p", {
|
|
53
|
+
class: x(["message__content", { "hidden-state": t.value !== "visible" }]),
|
|
54
54
|
part: `message ${e.message.direction}`
|
|
55
55
|
}, [
|
|
56
|
-
e.message.image ? (n(), i("img",
|
|
57
|
-
e.message.image && m.value ? (n(), i("br",
|
|
58
|
-
(n(!0), i(b, null,
|
|
59
|
-
r > 0 ? (n(), i("br", J)) :
|
|
56
|
+
e.message.image ? (n(), i("img", B(z({ key: 0 }, e.message.image)), null, 16)) : l("", !0),
|
|
57
|
+
e.message.image && m.value ? (n(), i("br", H)) : l("", !0),
|
|
58
|
+
(n(!0), i(b, null, M(m.value, (o, r) => (n(), i(b, { key: r }, [
|
|
59
|
+
r > 0 ? (n(), i("br", J)) : l("", !0),
|
|
60
60
|
k(" " + v(o), 1)
|
|
61
61
|
], 64))), 128))
|
|
62
|
-
], 10,
|
|
62
|
+
], 10, G)
|
|
63
63
|
], 2));
|
|
64
64
|
}
|
|
65
65
|
}), Q = ".message{max-width:80%;position:relative}.message--incoming{align-self:start}.message--incoming .message__sender{padding-left:10px}.message--incoming .message__loader{left:10px}.message--incoming .message__content{background-color:#e8e8e8}.message--outgoing{align-self:end}.message--outgoing .message__sender{padding-right:10px;text-align:right}.message--outgoing .message__loader{right:10px}.message--outgoing .message__content{background-color:#d1eaff}.message__sender{color:#444;font-size:.8rem;font-weight:700;margin:0}.message__loader{position:absolute;width:24px}.message__content{border-radius:16px;margin:0;padding:10px 14px}.message__content:not(.hidden-state){animation:fade .3s ease-in-out both}.message__content>img{max-width:100%}.hidden-state{visibility:hidden}@keyframes fade{0%{opacity:0}to{opacity:1}}@media(prefers-reduced-motion:reduce){.message__content:not(.hidden-state){animation:none}.message__loader{display:none}.hidden-state{visibility:visible}}", U = /* @__PURE__ */ D(K, [["styles", [Q]]]), W = { part: "conversation" }, X = { class: "sr-only" }, Y = /* @__PURE__ */ S({
|
|
@@ -69,8 +69,8 @@ const H = ["part"], R = {
|
|
|
69
69
|
messages: { type: Array },
|
|
70
70
|
animationSpeed: { default: 20, type: Number }
|
|
71
71
|
},
|
|
72
|
-
setup(e, { expose:
|
|
73
|
-
const t = 50 * e.animationSpeed, d = 50 * e.animationSpeed, m =
|
|
72
|
+
setup(e, { expose: c }) {
|
|
73
|
+
const t = 50 * e.animationSpeed, d = 50 * e.animationSpeed, m = N(
|
|
74
74
|
() => e.messages.reduce(
|
|
75
75
|
(s, a, o) => {
|
|
76
76
|
const r = u(a);
|
|
@@ -79,8 +79,8 @@ const H = ["part"], R = {
|
|
|
79
79
|
const {
|
|
80
80
|
message: p,
|
|
81
81
|
startAnimation: f,
|
|
82
|
-
animationDuration:
|
|
83
|
-
} = s.at(-1), A = a.direction !== p.direction || a.userName !== p.userName, $ = f +
|
|
82
|
+
animationDuration: h
|
|
83
|
+
} = s.at(-1), A = a.direction !== p.direction || a.userName !== p.userName, $ = f + h + t;
|
|
84
84
|
return [...s, { message: a, displaySender: A, startAnimation: $, animationDuration: r }];
|
|
85
85
|
},
|
|
86
86
|
[]
|
|
@@ -93,11 +93,11 @@ const H = ["part"], R = {
|
|
|
93
93
|
function y() {
|
|
94
94
|
g.value.forEach((s) => s.reset());
|
|
95
95
|
}
|
|
96
|
-
return
|
|
96
|
+
return c({
|
|
97
97
|
reset: y
|
|
98
98
|
}), (s, a) => (n(), i("figure", W, [
|
|
99
|
-
|
|
100
|
-
(n(!0), i(b, null,
|
|
99
|
+
_("figcaption", X, v(e.conversationTitle), 1),
|
|
100
|
+
(n(!0), i(b, null, M(m.value, ({ message: o, displaySender: r, startAnimation: p, animationDuration: f }, h) => (n(), V(U, {
|
|
101
101
|
ref_for: !0,
|
|
102
102
|
ref: "messages",
|
|
103
103
|
message: o,
|
|
@@ -105,17 +105,17 @@ const H = ["part"], R = {
|
|
|
105
105
|
"animation-duration": f,
|
|
106
106
|
"loading-duration": t,
|
|
107
107
|
"display-sender": r,
|
|
108
|
-
key:
|
|
108
|
+
key: h
|
|
109
109
|
}, null, 8, ["message", "start-animation", "animation-duration", "display-sender"]))), 128))
|
|
110
110
|
]));
|
|
111
111
|
}
|
|
112
|
-
}), Z = "figure{background-color:#fff;border-radius:16px;display:flex;flex-direction:column;gap:8px;margin:0;padding:16px}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}", ee = /* @__PURE__ */ D(Y, [["styles", [Z]]]), C =
|
|
112
|
+
}), Z = "figure{background-color:#fff;border-radius:16px;display:flex;flex-direction:column;gap:8px;margin:0;padding:16px}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}", ee = /* @__PURE__ */ D(Y, [["styles", [Z]]]), C = F(ee);
|
|
113
113
|
C.prototype.normalizeProps = (e) => ({
|
|
114
114
|
...e,
|
|
115
|
-
animationSpeed:
|
|
116
|
-
messages: e.messages.map(({ type:
|
|
115
|
+
animationSpeed: I(e.animationSpeed),
|
|
116
|
+
messages: e.messages.map(({ type: c, content: t, image: d, ...m }) => ({
|
|
117
117
|
...m,
|
|
118
|
-
content:
|
|
118
|
+
content: j(t),
|
|
119
119
|
image: O(d)
|
|
120
120
|
}))
|
|
121
121
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as i,
|
|
1
|
+
import { b as i, o as a, c as l, J as s, a as r, q as n, z as d, t as b, _ as p, d as h } from "../_plugin-vue_export-helper-B-lVMTio.js";
|
|
2
2
|
const m = {
|
|
3
3
|
class: "content",
|
|
4
4
|
part: "content"
|
|
@@ -10,17 +10,17 @@ const m = {
|
|
|
10
10
|
persistMobileShell: { type: Boolean, default: !1 },
|
|
11
11
|
marginTop: { default: 25, type: Number }
|
|
12
12
|
},
|
|
13
|
-
setup(
|
|
14
|
-
return (o,
|
|
15
|
-
class: b(["mobile", { "hide-mobile-shell": !
|
|
13
|
+
setup(t) {
|
|
14
|
+
return (o, e) => (a(), l("div", {
|
|
15
|
+
class: b(["mobile", { "hide-mobile-shell": !t.persistMobileShell }]),
|
|
16
16
|
part: "screen",
|
|
17
17
|
style: d({
|
|
18
|
-
"--aspect-ratio":
|
|
19
|
-
"--max-width": `${
|
|
20
|
-
"--margin-top": `${
|
|
18
|
+
"--aspect-ratio": t.aspectRatio,
|
|
19
|
+
"--max-width": `${t.maxWidth}px`,
|
|
20
|
+
"--margin-top": `${t.marginTop}px`
|
|
21
21
|
})
|
|
22
22
|
}, [
|
|
23
|
-
|
|
23
|
+
e[0] || (e[0] = s('<div class="cache-top"><div class="camera"></div></div><div class="buttons"><div class="button small"></div><div class="button long"></div><div class="button long"></div></div>', 2)),
|
|
24
24
|
r("div", m, [
|
|
25
25
|
n(o.$slots, "default")
|
|
26
26
|
])
|