@1024pix/epreuves-components 2.7.0 → 2.8.1
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-D1_fAhqr.js +18 -0
- package/dist/{ButtonTooltip.ce-DEM9f3-P.js → ButtonTooltip.ce-BjlMn9Ez.js} +15 -15
- package/dist/Cross.ce.vue_vue_type_script_setup_true_lang-D7kq2waU.js +73 -0
- package/dist/{LLMMessage.ce-DwOPdJ8T.js → LLMMessage.ce-B4Tg1zsn.js} +2 -2
- package/dist/{Loading.ce-izx3gVg1.js → Loading.ce-S-dh_E78.js} +1 -1
- package/dist/{NavigationButton.ce-D6OhsRmN.js → NavigationButton.ce-DRBC3gta.js} +2 -2
- package/dist/{Retry-ByvFpG1J.js → Retry-CoaWKuPG.js} +1 -1
- package/dist/{_plugin-vue_export-helper-BcRm04ZH.js → _plugin-vue_export-helper-BPDEgOal.js} +1711 -1618
- package/dist/components/calcul-impact.ce.js.js +42 -42
- package/dist/components/capacity-calculation.ce.js.js +70 -70
- package/dist/components/clickable-image.ce.js.js +14 -14
- package/dist/components/complete-phrase.ce.js.js +34 -34
- package/dist/components/flip-cards.ce.js.js +1 -1
- package/dist/components/image-quiz.ce.js.js +4 -3
- package/dist/components/image-quizzes.ce.js.js +18 -17
- 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 +1 -1
- package/dist/components/mdp-classement.ce.js.js +219 -0
- package/dist/components/message-conversation.ce.js.js +11 -11
- package/dist/components/mobile-shell.ce.js.js +1 -1
- package/dist/components/phishing-message.ce.js.js +61 -61
- package/dist/components/phishing-notification.ce.js.js +85 -85
- package/dist/components/pix-anonymisation.ce.js.js +85 -97
- package/dist/components/pix-article.ce.js.js +18 -18
- package/dist/components/pix-carousel.ce.js.js +86 -86
- package/dist/components/pix-cursor.ce.js.js +50 -50
- package/dist/components/qcm-deepfake.ce.js.js +55 -55
- package/dist/components/quiz-stepper.ce.js.js +105 -113
- package/dist/components/select-conversation.ce.js.js +41 -41
- package/dist/components/template-mail.ce.js.js +165 -0
- package/dist/components/test-top-mdp.ce.js.js +146 -0
- package/dist/components/trouver-mdp-rs.ce.js.js +758 -0
- package/dist/{i18n-DTnP_5xC.js → i18n-BuCPzaih.js} +9 -9
- package/dist/i18n-lite-DBVKHY8J.js +86 -0
- package/dist/image-quiz.ce-CXOFcx1H.js +182 -0
- package/dist/index.js +9 -5
- package/dist/metadata.js +38 -22
- package/dist/schema.js +86 -40
- package/dist/{shadow-dom-C8cgdiLH.js → shadow-dom-By5w43W7.js} +1 -1
- package/dist/shuffled-B8VGTceh.js +19 -0
- package/package.json +1 -1
- package/dist/image-quiz.ce-DWyp9j81.js +0 -242
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as R,
|
|
1
|
+
import { d as R, j as E, r as y, v as O, x as W, y as d, c as p, o as v, a as C, z as _, m as j, F as D, b as L, l as V, A as b, B as T, k as U, n as X, C as Y, t as q, _ as G, f as H } from "../_plugin-vue_export-helper-BPDEgOal.js";
|
|
2
2
|
import { u as z, a as J } from "../normalize-props-DtfVI0Xg.js";
|
|
3
3
|
const K = { class: "container" }, Q = ["onMouseenter", "onFocusin", "onClick", "aria-label"], f = 10, Z = /* @__PURE__ */ R({
|
|
4
4
|
__name: "ClickableImage.ce",
|
|
@@ -7,8 +7,8 @@ const K = { class: "container" }, Q = ["onMouseenter", "onFocusin", "onClick", "
|
|
|
7
7
|
areas: { type: Array }
|
|
8
8
|
},
|
|
9
9
|
setup(a, { expose: i }) {
|
|
10
|
-
const l = E("image"), r = y(1), g = new ResizeObserver(() =>
|
|
11
|
-
function
|
|
10
|
+
const l = E("image"), r = y(1), g = new ResizeObserver(() => $());
|
|
11
|
+
function $() {
|
|
12
12
|
l.value.naturalWidth && (r.value = l.value.offsetWidth / l.value.naturalWidth);
|
|
13
13
|
}
|
|
14
14
|
O(() => {
|
|
@@ -16,7 +16,7 @@ const K = { class: "container" }, Q = ["onMouseenter", "onFocusin", "onClick", "
|
|
|
16
16
|
}), W(() => {
|
|
17
17
|
g.disconnect();
|
|
18
18
|
});
|
|
19
|
-
const A = a.areas.some(({ spot: e }) => !!e),
|
|
19
|
+
const A = a.areas.some(({ spot: e }) => !!e), h = d(() => a.areas.map((e) => ({
|
|
20
20
|
...e,
|
|
21
21
|
coords: I(e.coords),
|
|
22
22
|
spot: M(e.spot)
|
|
@@ -51,7 +51,7 @@ const K = { class: "container" }, Q = ["onMouseenter", "onFocusin", "onClick", "
|
|
|
51
51
|
}
|
|
52
52
|
const x = d(() => u.value ?? m.value), c = d(() => {
|
|
53
53
|
if (x.value !== void 0)
|
|
54
|
-
return
|
|
54
|
+
return h.value[x.value];
|
|
55
55
|
}), B = d(() => {
|
|
56
56
|
if (!c.value) return {};
|
|
57
57
|
const { tooltipPosition: e, coords: { x1: t, y1: o, x2: n, y2: s } } = c.value;
|
|
@@ -86,13 +86,13 @@ const K = { class: "container" }, Q = ["onMouseenter", "onFocusin", "onClick", "
|
|
|
86
86
|
u.value = void 0;
|
|
87
87
|
}
|
|
88
88
|
return i({ reset: N }), (e, t) => (v(), p("div", K, [
|
|
89
|
-
C("img",
|
|
89
|
+
C("img", j(a.image, {
|
|
90
90
|
ref: "image",
|
|
91
|
-
onLoad: t[0] || (t[0] = (o) =>
|
|
91
|
+
onLoad: t[0] || (t[0] = (o) => $()),
|
|
92
92
|
onClick: t[1] || (t[1] = (o) => P()),
|
|
93
93
|
alt: ""
|
|
94
94
|
}), null, 16),
|
|
95
|
-
(v(!0), p(
|
|
95
|
+
(v(!0), p(D, null, L(h.value, (o, n) => (v(), p("button", {
|
|
96
96
|
key: n,
|
|
97
97
|
style: b({
|
|
98
98
|
"--y1": `${o.coords.y1}px`,
|
|
@@ -105,24 +105,24 @@ const K = { class: "container" }, Q = ["onMouseenter", "onFocusin", "onClick", "
|
|
|
105
105
|
onMouseleave: t[2] || (t[2] = (s) => w()),
|
|
106
106
|
onFocusin: (s) => k(n),
|
|
107
107
|
onFocusout: t[3] || (t[3] = (s) => w()),
|
|
108
|
-
onClick:
|
|
108
|
+
onClick: V((s) => F(n), ["stop"]),
|
|
109
109
|
"aria-label": o.info
|
|
110
110
|
}, [
|
|
111
|
-
|
|
111
|
+
U(A) ? (v(), p("span", {
|
|
112
112
|
key: 0,
|
|
113
|
-
class:
|
|
113
|
+
class: X(["spot", { active: x.value === n }]),
|
|
114
114
|
style: b({
|
|
115
115
|
"--s-x": `${o.spot.x}px`,
|
|
116
116
|
"--s-y": `${o.spot.y}px`
|
|
117
117
|
})
|
|
118
|
-
}, null, 6)) :
|
|
118
|
+
}, null, 6)) : T("", !0)
|
|
119
119
|
], 44, Q))), 128)),
|
|
120
120
|
_(C("p", {
|
|
121
121
|
class: "tooltip",
|
|
122
122
|
"aria-hidden": "true",
|
|
123
123
|
style: b(B.value)
|
|
124
|
-
},
|
|
125
|
-
[
|
|
124
|
+
}, q(c.value?.info), 5), [
|
|
125
|
+
[Y, c.value]
|
|
126
126
|
])
|
|
127
127
|
]));
|
|
128
128
|
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { d as h, c as n, o, a, t as c, A as j, _ as f, n as P,
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as
|
|
4
|
-
import { L as B } from "../LLMMessage.ce-
|
|
5
|
-
const
|
|
1
|
+
import { d as h, c as n, o, a, t as c, A as j, _ as f, n as P, g as S, H as N, r as y, y as m, B as z, F as x, b as k, e as v, E as L, f as E } from "../_plugin-vue_export-helper-BPDEgOal.js";
|
|
2
|
+
import { u as M, a as O, i as q, b as T } from "../i18n-BuCPzaih.js";
|
|
3
|
+
import { u as I } from "../normalize-props-DtfVI0Xg.js";
|
|
4
|
+
import { L as B } from "../LLMMessage.ce-B4Tg1zsn.js";
|
|
5
|
+
const R = {}, V = {}, D = {}, F = {}, H = {}, Q = {
|
|
6
6
|
"complete-phrase": { title: "Probabilité du mot suivant", description: "Quand la barre est longue, le mot a une plus forte probabilité de convenir pour continuer cette phrase.", ariaLabelDescription: "Le mot {{name}} a une probabilité de {{percent}}%", clickHereButton: "Révéler le mot", successfullyCompletedSentence: "Cliquez sur le mot choisi par l’IA dans les propositions suivantes :", feedback: { sure: "En effet, c'est le mot le plus probable !", probably: "C’est possible ! L’IA peut aussi choisir le mot « {{word}} », qui est très probable...", notSure: "Pas sûr... L’IA choisira sans doute un mot plus probable : {{words, list(style: 'long'; type: 'disjunction';)}}." } }
|
|
7
|
-
},
|
|
7
|
+
}, W = {}, U = {}, G = { class: "probability-bar" }, J = { "aria-hidden": "true" }, K = { class: "sr-only" }, X = /* @__PURE__ */ h({
|
|
8
8
|
__name: "ProbabilityBar.ce",
|
|
9
9
|
props: {
|
|
10
10
|
name: { type: String },
|
|
11
11
|
percent: { type: Number }
|
|
12
12
|
},
|
|
13
13
|
setup(e) {
|
|
14
|
-
return (d, t) => (o(), n("div",
|
|
15
|
-
a("p",
|
|
16
|
-
a("p",
|
|
14
|
+
return (d, t) => (o(), n("div", G, [
|
|
15
|
+
a("p", J, c(e.name), 1),
|
|
16
|
+
a("p", K, c(d.$t("complete-phrase.ariaLabelDescription", { name: e.name, percent: e.percent })), 1),
|
|
17
17
|
a("div", {
|
|
18
18
|
style: j(`width: ${e.percent}%`),
|
|
19
19
|
class: "probability-bar__percent",
|
|
@@ -25,7 +25,7 @@ const T = {}, V = {}, D = {}, F = {
|
|
|
25
25
|
}, null, -1))
|
|
26
26
|
]));
|
|
27
27
|
}
|
|
28
|
-
}),
|
|
28
|
+
}), Y = ".probability-bar[data-v-19f7d147]{font-family:Roboto,sans-serif;padding-bottom:10px;position:relative}.probability-bar p[data-v-19f7d147]{margin:0}.probability-bar__percent[data-v-19f7d147]{position:absolute;left:0;z-index:2;height:6px;border-radius:5px;background-color:#122647}.probability-bar__background[data-v-19f7d147]{position:absolute;left:0;z-index:1;width:100%;height:6px;border-radius:5px;background-color:#cdd1d9}.sr-only[data-v-19f7d147]{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}", Z = /* @__PURE__ */ f(X, [["styles", [Y]], ["__scopeId", "data-v-19f7d147"]]), ee = /* @__PURE__ */ h({
|
|
29
29
|
__name: "Button.ce",
|
|
30
30
|
props: {
|
|
31
31
|
label: { type: String },
|
|
@@ -39,10 +39,10 @@ const T = {}, V = {}, D = {}, F = {
|
|
|
39
39
|
N(" " + c(e.label), 1)
|
|
40
40
|
], 2));
|
|
41
41
|
}
|
|
42
|
-
}),
|
|
42
|
+
}), te = ".complete-phrase_button.primary{--background-color: #253858;--background-color-hover: #122647;--color: #fff;--color-hover: #fff}.complete-phrase_button.warning{--background-color: #ffcb33;--background-color-hover: #a16206;--color: #122647;--color-hover: #fff}.complete-phrase_button.primary,.complete-phrase_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(.complete-phrase_button.primary,.complete-phrase_button.warning)[aria-disabled=true]{cursor:not-allowed;opacity:.5}:is(.complete-phrase_button.primary,.complete-phrase_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(.complete-phrase_button.primary,.complete-phrase_button.warning):not([aria-disabled=true]):hover svg{color:var(--color-hover);transition:color ease .5s}", oe = /* @__PURE__ */ f(ee, [["styles", [te]]]), ae = { class: "qcu" }, se = { class: "qcu__list" }, ie = ["id", "onClick", "aria-label", "checked", "disabled"], re = { for: "`choice${index}`" }, ne = {
|
|
43
43
|
key: 0,
|
|
44
44
|
class: "feedback"
|
|
45
|
-
},
|
|
45
|
+
}, le = /* @__PURE__ */ h({
|
|
46
46
|
__name: "QCU.ce",
|
|
47
47
|
props: {
|
|
48
48
|
list: { type: Array },
|
|
@@ -50,13 +50,13 @@ const T = {}, V = {}, D = {}, F = {
|
|
|
50
50
|
},
|
|
51
51
|
emits: ["answer"],
|
|
52
52
|
setup(e, { emit: d }) {
|
|
53
|
-
const t = d, s = y(null), { t: p } =
|
|
53
|
+
const t = d, s = y(null), { t: p } = M(), _ = m(() => s.value.percent === 100 ? p("complete-phrase.feedback.sure") : s.value.percent >= 50 ? p("complete-phrase.feedback.probably", { word: e.list.find((i) => i.percent === 100).name }) : p("complete-phrase.feedback.notSure", { words: e.list.filter((i) => i.percent >= 50).map((i) => i.name) }));
|
|
54
54
|
function g(i) {
|
|
55
55
|
s.value = i, t("answer", i.name);
|
|
56
56
|
}
|
|
57
|
-
return (i, w) => (o(), n("div",
|
|
57
|
+
return (i, w) => (o(), n("div", ae, [
|
|
58
58
|
a("p", null, c(e.title), 1),
|
|
59
|
-
a("section",
|
|
59
|
+
a("section", se, [
|
|
60
60
|
(o(!0), n(x, null, k(e.list, (r, l) => (o(), n("div", {
|
|
61
61
|
class: "qcu__list-choice",
|
|
62
62
|
key: l
|
|
@@ -69,14 +69,14 @@ const T = {}, V = {}, D = {}, F = {
|
|
|
69
69
|
"aria-label": r.name,
|
|
70
70
|
checked: s.value === r,
|
|
71
71
|
disabled: !!s.value
|
|
72
|
-
}, null, 8,
|
|
73
|
-
a("label",
|
|
72
|
+
}, null, 8, ie),
|
|
73
|
+
a("label", re, c(r.name), 1)
|
|
74
74
|
]))), 128))
|
|
75
75
|
]),
|
|
76
|
-
s.value ? (o(), n("section",
|
|
76
|
+
s.value ? (o(), n("section", ne, c(_.value), 1)) : z("", !0)
|
|
77
77
|
]));
|
|
78
78
|
}
|
|
79
|
-
}),
|
|
79
|
+
}), ce = "[data-v-74566fe6]{font-family:Roboto,sans-serif;color:#122647}.qcu[data-v-74566fe6]{align-items:center;display:flex;flex-direction:column;gap:16px}.qcu p[data-v-74566fe6]{margin:0}.qcu__list[data-v-74566fe6]{display:flex;gap:16px}.qcu__list-choice[data-v-74566fe6]{position:relative}.qcu__list-choice input[data-v-74566fe6]{appearance:none;height:100%;outline:none;position:absolute;width:100%}.qcu__list-choice input:checked+label[data-v-74566fe6]{background-color:#3b82f6;color:#fff}.qcu__list-choice input[data-v-74566fe6]:hover{cursor:pointer}.qcu__list-choice input:hover+label[data-v-74566fe6]{background-color:#3b82f6;color:#fff;transition:background-color .5s ease,color .5s ease}.qcu__list-choice input:disabled+label[data-v-74566fe6],.qcu__list-choice input[data-v-74566fe6]:disabled:hover{cursor:not-allowed}.qcu__list-choice input:disabled:not(:checked)+label[data-v-74566fe6],.qcu__list-choice input:disabled:hover:not(:checked)+label[data-v-74566fe6]{background:#e6f2fe;color:#122647;cursor:not-allowed;opacity:.5;transition:none}.qcu__list-choice label[data-v-74566fe6]{align-items:center;background:#e6f2fe;border-radius:4px;color:inherit;display:flex;font-weight:700;gap:10px;justify-content:center;padding:4px 8px;transition:background-color .5s ease,color .5s ease}.qcu .feedback[data-v-74566fe6]{display:flex;padding:8px 16px;flex-direction:column;align-items:flex-start;gap:16px;align-self:stretch;border-radius:8px;background:#e6f2fe}", de = /* @__PURE__ */ f(le, [["styles", [ce]], ["__scopeId", "data-v-74566fe6"]]), pe = { class: "complete-phrase" }, ue = ["aria-level"], be = { class: "complete-phrase__description" }, me = { class: "complete-phrase__container" }, he = { class: "complete-phrase-container__conversation" }, fe = { class: "complete-phrase-container__probabilities" }, _e = ["id", "aria-hidden"], ge = /* @__PURE__ */ h({
|
|
80
80
|
__name: "CompletePhrase.ce",
|
|
81
81
|
props: {
|
|
82
82
|
listOfProbabilityBarsLists: { type: Array },
|
|
@@ -102,15 +102,15 @@ const T = {}, V = {}, D = {}, F = {
|
|
|
102
102
|
}
|
|
103
103
|
return d({
|
|
104
104
|
reset: i
|
|
105
|
-
}), (r, l) => (o(), n("div",
|
|
105
|
+
}), (r, l) => (o(), n("div", pe, [
|
|
106
106
|
a("div", {
|
|
107
107
|
class: "complete-phrase__title",
|
|
108
108
|
role: "heading",
|
|
109
109
|
"aria-level": e.titleLevel
|
|
110
|
-
}, c(r.$t("complete-phrase.title")), 9,
|
|
111
|
-
a("p",
|
|
112
|
-
a("section",
|
|
113
|
-
a("div",
|
|
110
|
+
}, c(r.$t("complete-phrase.title")), 9, ue),
|
|
111
|
+
a("p", be, c(r.$t("complete-phrase.description")), 1),
|
|
112
|
+
a("section", me, [
|
|
113
|
+
a("div", he, [
|
|
114
114
|
L(B, {
|
|
115
115
|
class: "container__message",
|
|
116
116
|
message: { content: e.userMessage, direction: "outbound" }
|
|
@@ -120,27 +120,27 @@ const T = {}, V = {}, D = {}, F = {
|
|
|
120
120
|
message: { content: g.value, direction: "inbound" }
|
|
121
121
|
}, null, 8, ["message"])
|
|
122
122
|
]),
|
|
123
|
-
a("div",
|
|
123
|
+
a("div", fe, [
|
|
124
124
|
(o(!0), n(x, null, k(e.listOfProbabilityBarsLists, (u, b) => (o(), n("div", {
|
|
125
125
|
class: P(["probability", { hidden: b !== t.value }]),
|
|
126
126
|
key: b,
|
|
127
127
|
id: `currentProbability${b}`,
|
|
128
128
|
"aria-hidden": b !== t.value
|
|
129
129
|
}, [
|
|
130
|
-
(o(!0), n(x, null, k(u, ($, A) => (o(), v(
|
|
130
|
+
(o(!0), n(x, null, k(u, ($, A) => (o(), v(Z, {
|
|
131
131
|
name: $.name,
|
|
132
132
|
percent: $.percent,
|
|
133
133
|
key: A
|
|
134
134
|
}, null, 8, ["name", "percent"]))), 128))
|
|
135
|
-
], 10,
|
|
135
|
+
], 10, _e))), 128))
|
|
136
136
|
])
|
|
137
137
|
]),
|
|
138
|
-
p.value ? (o(), v(
|
|
138
|
+
p.value ? (o(), v(de, {
|
|
139
139
|
key: 0,
|
|
140
140
|
list: _.value,
|
|
141
141
|
title: r.$t("complete-phrase.successfullyCompletedSentence"),
|
|
142
142
|
onAnswer: l[0] || (l[0] = (u) => s.value = u)
|
|
143
|
-
}, null, 8, ["list", "title"])) : (o(), v(
|
|
143
|
+
}, null, 8, ["list", "title"])) : (o(), v(oe, {
|
|
144
144
|
key: 1,
|
|
145
145
|
onClick: w,
|
|
146
146
|
state: "primary",
|
|
@@ -149,15 +149,15 @@ const T = {}, V = {}, D = {}, F = {
|
|
|
149
149
|
}, null, 8, ["label", "aria-describedby"]))
|
|
150
150
|
]));
|
|
151
151
|
}
|
|
152
|
-
}),
|
|
153
|
-
|
|
154
|
-
const C =
|
|
152
|
+
}), ve = "*{font-family:Roboto,sans-serif;color:#122647}.complete-phrase__title{font-family:Nunito,sans-serif;font-size:1.75rem;font-weight:700;line-height:36px;text-align:center}.complete-phrase__description{text-align:center;font-size:1rem;font-weight:400;line-height:24px}.complete-phrase__container{display:grid;gap:32px;grid-template-columns:3fr 2fr;margin-bottom:24px}.complete-phrase-container__conversation{background:#fff;border:1px solid #cdd1d9;border-radius:16px;display:flex;flex-direction:column;gap:32px;padding:1rem}.complete-phrase-container__conversation .message{align-items:center}.complete-phrase-container__probabilities{display:grid}.complete-phrase-container__probabilities .probability{display:flex;flex-direction:column;gap:16px;grid-row:1;grid-column:1}.complete-phrase-container__probabilities .probability.hidden{visibility:hidden}.complete-message-word:last-child{border:none;filter:blur(4px);font-weight:600;height:auto;width:auto}.complete-message-word--visible:last-child{color:inherit;filter:none;font-weight:700}.complete-message-word--hidden:last-child{background-color:#f4f5f7;border-radius:4px;border:1px dashed #5e6c84;color:transparent;display:inline-block;filter:none;padding:2px 4px}.complete-message-word:nth-last-child(2){font-weight:600}@media(max-width:600px){.complete-phrase__container{grid-template-columns:1fr}.complete-phrase-container__probabilities .probability.hidden{display:none}}", ye = /* @__PURE__ */ f(ge, [["styles", [ve]]]);
|
|
153
|
+
O(/* @__PURE__ */ Object.assign({ "./locales/de-AT.json": R, "./locales/en.json": V, "./locales/es-419.json": D, "./locales/es.json": F, "./locales/fr-BE.json": H, "./locales/fr.json": Q, "./locales/it.json": W, "./locales/nl.json": U })).catch((e) => console.error(e));
|
|
154
|
+
const C = E(ye, {
|
|
155
155
|
configureApp(e) {
|
|
156
|
-
q.changeLanguage(document?.documentElement?.lang || navigator.language), e.use(
|
|
156
|
+
q.changeLanguage(document?.documentElement?.lang || navigator.language), e.use(T, { i18next: q });
|
|
157
157
|
}
|
|
158
158
|
});
|
|
159
159
|
C.prototype.normalizeProps = (e) => ({
|
|
160
160
|
...e,
|
|
161
|
-
titleLevel:
|
|
161
|
+
titleLevel: I(e.titleLevel)
|
|
162
162
|
});
|
|
163
163
|
window.customElements.define("complete-phrase", C);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as g, c as r, o as n, F as m, a as i, n as f, t as l, B as x, _ as u, r as y, b as k, L as v, E as w, f as F } from "../_plugin-vue_export-helper-
|
|
1
|
+
import { d as g, c as r, o as n, F as m, a as i, n as f, t as l, B as x, _ as u, r as y, b as k, L as v, E as w, f as F } from "../_plugin-vue_export-helper-BPDEgOal.js";
|
|
2
2
|
import { u as _ } from "../normalize-props-DtfVI0Xg.js";
|
|
3
3
|
const L = ["aria-hidden"], C = ["src"], z = ["aria-level"], N = ["aria-hidden"], S = ["aria-level"], $ = { class: "description" }, B = { class: "image-container" }, E = ["src"], j = /* @__PURE__ */ g({
|
|
4
4
|
__name: "FlipCard.ce",
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { n as
|
|
2
|
-
import "../_plugin-vue_export-helper-
|
|
1
|
+
import { n as t } from "../image-quiz.ce-CXOFcx1H.js";
|
|
2
|
+
import "../_plugin-vue_export-helper-BPDEgOal.js";
|
|
3
3
|
import "../normalize-props-DtfVI0Xg.js";
|
|
4
|
+
import "../i18n-lite-DBVKHY8J.js";
|
|
4
5
|
export {
|
|
5
|
-
|
|
6
|
+
t as normalizeImageQuizProps
|
|
6
7
|
};
|
|
@@ -1,39 +1,40 @@
|
|
|
1
|
-
import { I as g,
|
|
2
|
-
import { d as
|
|
3
|
-
|
|
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-CXOFcx1H.js";
|
|
2
|
+
import { d as q, r as E, w as h, c as y, o as l, b as I, e as k, m as B, F as Q, f as C } from "../_plugin-vue_export-helper-BPDEgOal.js";
|
|
3
|
+
import { i as n } from "../i18n-lite-DBVKHY8J.js";
|
|
4
|
+
const F = /* @__PURE__ */ q({
|
|
4
5
|
__name: "ImageQuizzes.ce",
|
|
5
6
|
props: {
|
|
6
7
|
quizzes: { type: Array }
|
|
7
8
|
},
|
|
8
9
|
emits: ["answer"],
|
|
9
|
-
setup(e, { emit:
|
|
10
|
-
const o =
|
|
11
|
-
|
|
12
|
-
if (!
|
|
13
|
-
if (
|
|
10
|
+
setup(e, { emit: _ }) {
|
|
11
|
+
const o = _, a = E(new Array(e.quizzes.length).fill(void 0));
|
|
12
|
+
h(() => {
|
|
13
|
+
if (!a.value.some((s) => s == null)) {
|
|
14
|
+
if (a.value.some((s) => s === "")) {
|
|
14
15
|
o("answer", "");
|
|
15
16
|
return;
|
|
16
17
|
}
|
|
17
|
-
o("answer",
|
|
18
|
+
o("answer", a.value.join(","));
|
|
18
19
|
}
|
|
19
20
|
});
|
|
20
|
-
function
|
|
21
|
-
|
|
21
|
+
function u(s, r) {
|
|
22
|
+
a.value[r] = s.answer;
|
|
22
23
|
}
|
|
23
|
-
return (s, r) => (l(!0),
|
|
24
|
+
return (s, r) => (l(!0), y(Q, null, I(e.quizzes, (m, t) => (l(), k(g, B({ key: t }, { ref_for: !0 }, m, {
|
|
24
25
|
"show-name": !0,
|
|
25
|
-
onAnswer: (c) =>
|
|
26
|
+
onAnswer: (c) => u(c, t)
|
|
26
27
|
}), null, 16, ["onAnswer"]))), 128));
|
|
27
28
|
}
|
|
28
29
|
});
|
|
29
|
-
|
|
30
|
-
const i =
|
|
30
|
+
n.addTranslationsFromGlobResults(/* @__PURE__ */ Object.assign({ "./locales/de-AT.json": j, "./locales/en.json": b, "./locales/es-419.json": p, "./locales/es.json": d, "./locales/fr-BE.json": w, "./locales/fr.json": v, "./locales/it.json": z, "./locales/nl.json": f }));
|
|
31
|
+
const i = C(F, {
|
|
31
32
|
configureApp(e) {
|
|
32
|
-
|
|
33
|
+
n.changeLanguage(document?.documentElement?.lang || navigator.language), e.use(n);
|
|
33
34
|
}
|
|
34
35
|
});
|
|
35
36
|
i.prototype.normalizeProps = (e) => ({
|
|
36
37
|
...e,
|
|
37
|
-
quizzes: e.quizzes.map(
|
|
38
|
+
quizzes: e.quizzes.map(A)
|
|
38
39
|
});
|
|
39
40
|
window.customElements.define("image-quizzes", i);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { d as c, c as t, o as s, a as e, t as n, F as r, b as m, E as i, _ as p, f as g } from "../_plugin-vue_export-helper-
|
|
2
|
-
import { L as l } from "../LLMMessage.ce-
|
|
3
|
-
import { p as u } from "../shadow-dom-
|
|
1
|
+
import { d as c, c as t, o as s, a as e, t as n, F as r, b as m, E as i, _ as p, f as g } from "../_plugin-vue_export-helper-BPDEgOal.js";
|
|
2
|
+
import { L as l } from "../LLMMessage.ce-B4Tg1zsn.js";
|
|
3
|
+
import { p as u } from "../shadow-dom-By5w43W7.js";
|
|
4
4
|
const f = {
|
|
5
5
|
class: "header",
|
|
6
6
|
"aria-hidden": "true"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { d as c, I as m, J as i, c as t, o as e, F as p, b as d, e as f, _ as g, f as u } from "../_plugin-vue_export-helper-
|
|
2
|
-
import { L as h } from "../LLMMessage.ce-
|
|
3
|
-
import { p as _ } from "../shadow-dom-
|
|
1
|
+
import { d as c, I as m, J as i, c as t, o as e, F as p, b as d, e as f, _ as g, f as u } from "../_plugin-vue_export-helper-BPDEgOal.js";
|
|
2
|
+
import { L as h } from "../LLMMessage.ce-B4Tg1zsn.js";
|
|
3
|
+
import { p as _ } from "../shadow-dom-By5w43W7.js";
|
|
4
4
|
const x = {
|
|
5
5
|
class: "llm-messages",
|
|
6
6
|
"aria-live": "polite"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as h, r as c, G as y, c as d, o as m, E as w, a, H as k, F as b, b as L, t as S, _ as C, f as P } from "../_plugin-vue_export-helper-
|
|
1
|
+
import { d as h, r as c, G as y, c as d, o as m, E as w, a, H as k, F as b, b as L, t as S, _ as C, f as P } from "../_plugin-vue_export-helper-BPDEgOal.js";
|
|
2
2
|
import { u as N } from "../normalize-props-DtfVI0Xg.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({
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
import { d as I, j as L, c as d, o as n, n as N, a as s, B as _, e as m, l as h, t as v, E as b, K as g, q as V, _ as S, r as D, y as M, G as O, F as T, b as q, H, f as K } from "../_plugin-vue_export-helper-BPDEgOal.js";
|
|
2
|
+
import { a as J, i as U, b as Q } from "../i18n-BuCPzaih.js";
|
|
3
|
+
import { B as W } from "../Button.ce-D1_fAhqr.js";
|
|
4
|
+
import { _ as Z, a as A, F as X } from "../Cross.ce.vue_vue_type_script_setup_true_lang-D7kq2waU.js";
|
|
5
|
+
import { s as F } from "../shuffled-B8VGTceh.js";
|
|
6
|
+
import { B as j } from "../ButtonTooltip.ce-BjlMn9Ez.js";
|
|
7
|
+
const Y = {}, e0 = {}, a0 = {}, t0 = {}, s0 = {}, n0 = {
|
|
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
|
+
}, 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" }, v0 = ["src"], g0 = ["id"], u0 = {
|
|
10
|
+
key: 0,
|
|
11
|
+
class: "card-right"
|
|
12
|
+
}, f0 = ["src"], m0 = ["src"], b0 = /* @__PURE__ */ I({
|
|
13
|
+
__name: "DraggableCard.ce",
|
|
14
|
+
props: {
|
|
15
|
+
password: { type: String },
|
|
16
|
+
isUpDisabled: { type: Boolean },
|
|
17
|
+
isDownDisabled: { type: Boolean },
|
|
18
|
+
state: { type: String }
|
|
19
|
+
},
|
|
20
|
+
emits: ["move-up", "move-down", "dragstart", "drop"],
|
|
21
|
+
setup(t, { emit: x }) {
|
|
22
|
+
const u = L("card"), r = L("button-up"), c = x;
|
|
23
|
+
function p(o) {
|
|
24
|
+
o.dataTransfer.setDragImage(u.value, 30, 30), c("dragstart", o);
|
|
25
|
+
}
|
|
26
|
+
async function f() {
|
|
27
|
+
c("move-up"), await V(), r.value.button.focus();
|
|
28
|
+
}
|
|
29
|
+
return (o, i) => (n(), d("div", {
|
|
30
|
+
class: N(["card", { [t.state]: !0 }]),
|
|
31
|
+
ref: "card"
|
|
32
|
+
}, [
|
|
33
|
+
s("div", C0, [
|
|
34
|
+
t.state === "active" ? (n(), d("img", {
|
|
35
|
+
key: 0,
|
|
36
|
+
src: p0,
|
|
37
|
+
alt: "",
|
|
38
|
+
class: "drag-handle",
|
|
39
|
+
draggable: "",
|
|
40
|
+
onDragstart: p,
|
|
41
|
+
onDrop: i[0] || (i[0] = (w) => c("drop", w)),
|
|
42
|
+
onDragenter: i[1] || (i[1] = h(() => {
|
|
43
|
+
}, ["prevent"])),
|
|
44
|
+
onDragover: i[2] || (i[2] = h(() => {
|
|
45
|
+
}, ["prevent"]))
|
|
46
|
+
}, null, 40, v0)) : t.state === "correct" ? (n(), m(Z, {
|
|
47
|
+
key: 1,
|
|
48
|
+
alt: o.$t("mdp-classement.correct"),
|
|
49
|
+
color: "#007740",
|
|
50
|
+
class: "icon"
|
|
51
|
+
}, null, 8, ["alt"])) : (n(), m(A, {
|
|
52
|
+
key: 2,
|
|
53
|
+
alt: o.$t("mdp-classement.incorrect"),
|
|
54
|
+
color: "#a94b0c",
|
|
55
|
+
class: "icon"
|
|
56
|
+
}, null, 8, ["alt"])),
|
|
57
|
+
s("p", {
|
|
58
|
+
id: `password-${t.password}`
|
|
59
|
+
}, v(t.password), 9, g0)
|
|
60
|
+
]),
|
|
61
|
+
t.state === "active" ? (n(), d("div", u0, [
|
|
62
|
+
b(j, {
|
|
63
|
+
class: "move",
|
|
64
|
+
ref: "button-up",
|
|
65
|
+
onClick: f,
|
|
66
|
+
label: o.$t("mdp-classement.moveUp"),
|
|
67
|
+
disabled: t.isUpDisabled,
|
|
68
|
+
"aria-describedby": `password-${t.password}`
|
|
69
|
+
}, {
|
|
70
|
+
default: g(() => [
|
|
71
|
+
s("img", {
|
|
72
|
+
src: t.isUpDisabled ? c0 : l0,
|
|
73
|
+
alt: ""
|
|
74
|
+
}, null, 8, f0)
|
|
75
|
+
]),
|
|
76
|
+
_: 1
|
|
77
|
+
}, 8, ["label", "disabled", "aria-describedby"]),
|
|
78
|
+
b(j, {
|
|
79
|
+
class: "move",
|
|
80
|
+
onClick: i[3] || (i[3] = (w) => o.$emit("move-down")),
|
|
81
|
+
label: o.$t("mdp-classement.moveDown"),
|
|
82
|
+
disabled: t.isDownDisabled,
|
|
83
|
+
"aria-describedby": `password-${t.password}`
|
|
84
|
+
}, {
|
|
85
|
+
default: g(() => [
|
|
86
|
+
s("img", {
|
|
87
|
+
src: t.isDownDisabled ? d0 : i0,
|
|
88
|
+
alt: ""
|
|
89
|
+
}, null, 8, m0)
|
|
90
|
+
]),
|
|
91
|
+
_: 1
|
|
92
|
+
}, 8, ["label", "disabled", "aria-describedby"])
|
|
93
|
+
])) : _("", !0)
|
|
94
|
+
], 2));
|
|
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"]]), h0 = { class: "wrapper" }, x0 = { class: "sr-only" }, y0 = { class: "ranking-container" }, D0 = { class: "strongness-bar__container" }, k0 = ["onDrop"], $0 = {
|
|
97
|
+
key: 0,
|
|
98
|
+
class: "validate-container"
|
|
99
|
+
}, B0 = {
|
|
100
|
+
class: "feedback",
|
|
101
|
+
"aria-live": "polite"
|
|
102
|
+
}, L0 = /* @__PURE__ */ I({
|
|
103
|
+
__name: "MdpClassement.ce",
|
|
104
|
+
props: {
|
|
105
|
+
passwords: { type: Array }
|
|
106
|
+
},
|
|
107
|
+
setup(t, { expose: x }) {
|
|
108
|
+
const u = t, r = D(F(u.passwords, { ensureIsShuffled: !0 })), c = D(!1), p = D(!0), f = M(() => r.value.map((e, a) => ({
|
|
109
|
+
password: e,
|
|
110
|
+
isFirst: a === 0,
|
|
111
|
+
isLast: a === r.value.length - 1,
|
|
112
|
+
state: i(a, e)
|
|
113
|
+
}))), o = M(() => f.value.every(({ state: e }) => e === "correct"));
|
|
114
|
+
function i(e, a) {
|
|
115
|
+
return p.value ? "active" : a === u.passwords[e] ? "correct" : "incorrect";
|
|
116
|
+
}
|
|
117
|
+
function w() {
|
|
118
|
+
r.value = F(u.passwords, { ensureIsShuffled: !0 }), p.value = !0;
|
|
119
|
+
}
|
|
120
|
+
function k(e, a) {
|
|
121
|
+
[r.value[e], r.value[a]] = [r.value[a], r.value[e]];
|
|
122
|
+
}
|
|
123
|
+
function $(e, a) {
|
|
124
|
+
const y = parseInt(e.dataTransfer.getData("oldIndex"));
|
|
125
|
+
r.value.splice(a, 0, ...r.value.splice(y, 1));
|
|
126
|
+
}
|
|
127
|
+
function z(e, a) {
|
|
128
|
+
c.value = !0, e.dataTransfer.dropEffect = "move", e.dataTransfer.effectAllowed = "move", e.dataTransfer.setData("oldIndex", a.toString());
|
|
129
|
+
}
|
|
130
|
+
function E() {
|
|
131
|
+
p.value = !1;
|
|
132
|
+
}
|
|
133
|
+
return x({
|
|
134
|
+
reset: w
|
|
135
|
+
}), (e, a) => {
|
|
136
|
+
const y = O("i18next");
|
|
137
|
+
return n(), d(T, null, [
|
|
138
|
+
s("div", h0, [
|
|
139
|
+
s("p", x0, v(e.$t("mdp-classement.altInformation")), 1),
|
|
140
|
+
s("div", y0, [
|
|
141
|
+
s("div", D0, [
|
|
142
|
+
s("p", null, v(e.$t("mdp-classement.strong")), 1),
|
|
143
|
+
a[3] || (a[3] = s("div", { class: "strongness-bar" }, null, -1)),
|
|
144
|
+
s("p", null, v(e.$t("mdp-classement.weak")), 1)
|
|
145
|
+
]),
|
|
146
|
+
s("ul", null, [
|
|
147
|
+
(n(!0), d(T, null, q(f.value, ({ password: B, isFirst: G, isLast: P, state: R }, C) => (n(), d("li", { key: B }, [
|
|
148
|
+
b(_0, {
|
|
149
|
+
password: B,
|
|
150
|
+
"is-up-disabled": G,
|
|
151
|
+
"is-down-disabled": P,
|
|
152
|
+
state: R,
|
|
153
|
+
onMoveUp: (l) => k(C, C - 1),
|
|
154
|
+
onMoveDown: (l) => k(C, C + 1),
|
|
155
|
+
onDragstart: (l) => z(l, C),
|
|
156
|
+
onDrop: (l) => $(l, C),
|
|
157
|
+
onDragend: a[0] || (a[0] = (l) => c.value = !1)
|
|
158
|
+
}, null, 8, ["password", "is-up-disabled", "is-down-disabled", "state", "onMoveUp", "onMoveDown", "onDragstart", "onDrop"]),
|
|
159
|
+
c.value ? (n(), d("div", {
|
|
160
|
+
key: 0,
|
|
161
|
+
onDrop: (l) => $(l, C),
|
|
162
|
+
onDragenter: a[1] || (a[1] = h(() => {
|
|
163
|
+
}, ["prevent"])),
|
|
164
|
+
onDragover: a[2] || (a[2] = h(() => {
|
|
165
|
+
}, ["prevent"])),
|
|
166
|
+
class: "drop-down"
|
|
167
|
+
}, null, 40, k0)) : _("", !0)
|
|
168
|
+
]))), 128))
|
|
169
|
+
])
|
|
170
|
+
])
|
|
171
|
+
]),
|
|
172
|
+
p.value ? (n(), d("div", $0, [
|
|
173
|
+
b(W, {
|
|
174
|
+
class: "validate",
|
|
175
|
+
onClick: E
|
|
176
|
+
}, {
|
|
177
|
+
default: g(() => [
|
|
178
|
+
H(v(e.$t("mdp-classement.validate")), 1)
|
|
179
|
+
]),
|
|
180
|
+
_: 1
|
|
181
|
+
})
|
|
182
|
+
])) : _("", !0),
|
|
183
|
+
s("div", B0, [
|
|
184
|
+
p.value ? _("", !0) : (n(), m(X, {
|
|
185
|
+
key: 0,
|
|
186
|
+
title: o.value ? e.$t("mdp-classement.feedback.positiveTitle") : e.$t("mdp-classement.feedback.negativeTitle")
|
|
187
|
+
}, {
|
|
188
|
+
icon: g(() => [
|
|
189
|
+
o.value ? (n(), m(Z, {
|
|
190
|
+
key: 0,
|
|
191
|
+
class: "icon-size"
|
|
192
|
+
})) : (n(), m(A, {
|
|
193
|
+
key: 1,
|
|
194
|
+
class: "icon-size"
|
|
195
|
+
}))
|
|
196
|
+
]),
|
|
197
|
+
content: g(() => [
|
|
198
|
+
b(y, {
|
|
199
|
+
translation: o.value ? e.$t("mdp-classement.feedback.positiveContent") : e.$t("mdp-classement.feedback.negativeContent")
|
|
200
|
+
}, {
|
|
201
|
+
strongestPassword: g(() => [
|
|
202
|
+
s("strong", null, v(f.value[0].password), 1)
|
|
203
|
+
]),
|
|
204
|
+
_: 1
|
|
205
|
+
}, 8, ["translation"])
|
|
206
|
+
]),
|
|
207
|
+
_: 1
|
|
208
|
+
}, 8, ["title"]))
|
|
209
|
+
])
|
|
210
|
+
], 64);
|
|
211
|
+
};
|
|
212
|
+
}
|
|
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
|
+
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", K(T0, {
|
|
216
|
+
configureApp(t) {
|
|
217
|
+
U.changeLanguage(document?.documentElement?.lang || navigator.language), t.use(Q, { i18next: U });
|
|
218
|
+
}
|
|
219
|
+
}));
|