@1024pix/epreuves-components 4.2.0 → 4.3.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-Dvxeebpx.js +31 -0
- package/dist/{ButtonTooltip.ce-BnJlaEqx.js → ButtonTooltip.ce-WwOarMJq.js} +1 -1
- package/dist/Cross.ce.vue_vue_type_script_setup_true_lang-DVLRq2sO.js +53 -0
- package/dist/Feedback.ce-CnZRBGWf.js +26 -0
- package/dist/{FocusManager.ce-DHXwg6WZ.js → FocusManager.ce-Cv3wYF9s.js} +2 -2
- package/dist/{LLMMessage.ce-jLEqjxsl.js → LLMMessage.ce-B7EwoHy2.js} +4 -4
- package/dist/{Loading.ce-DDtlSLlu.js → Loading.ce-Dv2gEjXm.js} +1 -1
- package/dist/{NavigationButton.ce-BnnVUwGr.js → NavigationButton.ce-D8_YC96l.js} +2 -2
- package/dist/{PixMailMessage.ce-oCccQFGV.js → PixMailMessage.ce-TnjyOfiH.js} +141 -137
- package/dist/{Popin.ce-Co12R3C8.js → Popin.ce-BPnBZykQ.js} +3 -3
- package/dist/{Retry-C7C78Wpj.js → Retry-C3g7zhz8.js} +1 -1
- package/dist/{Stepper.ce-Dttf3Dsf.js → Stepper.ce-DEMN02yr.js} +1 -1
- package/dist/{_plugin-vue_export-helper-B-lVMTio.js → _plugin-vue_export-helper-Dz58mCLm.js} +4 -4
- package/dist/components/analyse-mails-phishing.ce.js.js +9 -8
- package/dist/components/button.ce.js.js +4 -0
- package/dist/components/calcul-impact.ce.js.js +8 -8
- package/dist/components/capacity-calculation.ce.js.js +124 -137
- package/dist/components/clickable-image.ce.js.js +1 -1
- package/dist/components/complete-phrase.ce.js.js +12 -12
- package/dist/components/feedback.ce.js.js +4 -0
- package/dist/components/flip-cards.ce.js.js +7 -7
- 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 +3 -3
- package/dist/components/llm-messages.ce.js.js +3 -3
- package/dist/components/llm-prompt-select.ce.js.js +6 -6
- package/dist/components/mdp-classement.ce.js.js +20 -19
- package/dist/components/message-conversation.ce.js.js +10 -10
- package/dist/components/mobile-shell.ce.js.js +1 -1
- package/dist/components/phishing-message.ce.js.js +60 -61
- package/dist/components/phishing-notification.ce.js.js +4 -4
- package/dist/components/pix-anonymisation.ce.js.js +63 -64
- package/dist/components/pix-article.ce.js.js +2 -2
- package/dist/components/pix-carousel.ce.js.js +4 -4
- package/dist/components/pix-combinaisons.ce.js.js +96 -96
- package/dist/components/pix-cursor.ce.js.js +10 -10
- package/dist/components/pix-mail-message.ce.js.js +3 -3
- package/dist/components/proteger-mail-spam.ce.js.js +15 -14
- package/dist/components/qcm-deepfake.ce.js.js +41 -41
- package/dist/components/quiz-stepper.ce.js.js +30 -29
- package/dist/components/select-conversation.ce.js.js +6 -6
- package/dist/components/template-mail.ce.js.js +3 -3
- package/dist/components/test-top-mdp.ce.js.js +11 -12
- package/dist/components/trouver-mdp-rs.ce.js.js +97 -96
- package/dist/components/usages-donnees.ce.js.js +183 -0
- package/dist/{i18n-CsT7k7zW.js → i18n-H4HokXDX.js} +1 -1
- package/dist/{i18n-lite-BIJ2LVs6.js → i18n-lite-CzqISEWm.js} +1 -1
- package/dist/{image-quiz.ce-B4NDetit.js → image-quiz.ce-C-iI27gD.js} +2 -2
- package/dist/{index-BaI3Qosp.js → index-BUPiE5WR.js} +1 -1
- package/dist/index.js +2 -1
- package/dist/metadata.js +11 -7
- package/dist/props.examples.js +36 -33
- package/dist/schema.js +38 -29
- package/dist/{shadow-dom-Bouq869n.js → shadow-dom-D54WF-WZ.js} +1 -1
- package/package.json +1 -1
- package/dist/Button.ce-DZ8jDtW5.js +0 -27
- package/dist/Cross.ce.vue_vue_type_script_setup_true_lang-l4hAa4eW.js +0 -75
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { b as y, o, c as i, a as s, x as
|
|
2
|
-
import { i as a, a as K, b as X } from "../i18n-
|
|
3
|
-
import { R as Y } from "../Retry-
|
|
1
|
+
import { b as y, o, c as i, a as s, x as c, l as v, t as w, g as b, _, U as R, H as A, P as O, B as V, V as P, r as x, q as G, h as M, F as $, e as C, f as F, v as Q, D as k, W as U, E as W, y as H, d as J } from "../_plugin-vue_export-helper-Dz58mCLm.js";
|
|
2
|
+
import { i as a, a as K, b as X } from "../i18n-H4HokXDX.js";
|
|
3
|
+
import { R as Y } from "../Retry-C3g7zhz8.js";
|
|
4
4
|
import { b as Z } from "../normalize-props-DH0oPBss.js";
|
|
5
5
|
const ee = {}, te = {}, ae = {}, ne = {}, oe = {}, ie = {
|
|
6
6
|
"qcm-deepfake": { options: ["une photo de sa chanteuse préférée", "une chanson de sa chanteuse préférée", "les partitions de la chanson", "une photo de Caroline", "un enregistrement de Caroline qui dit quelques phrases"], iaResultInfo: "Retrouvez ici les résultats du logiciel d'IA générative :", iaResultGenerated: "Résultat généré par le logiciel d'IA générative", in: "Entrée", out: "Sortie", waiting: "Logiciel d'IA générative", selectThreeElements: "Sélectionnez 3 éléments pour générer la vidéo de Caroline :", generateVideo: "Générer la vidéo !", loading: "Chargement…", restart: "Recommencer", element_one: "élément", element_other: "éléments", generateVideoInfo_one: "Plus que {{count}} élément", generateVideoInfo_other: "Plus que {{count}} éléments", restartInfo: "Essayez avec de nouveaux éléments", success: { title: "Bien joué !", description: "C'est bien la vidéo de Caroline. Vous avez utilisé les bons éléments." }, fail: { title: "Pas exactement…", description: "Le résultat ne convient pas. Recommencez en changeant les éléments en entrée." } }
|
|
7
|
-
}, re = {}, se = {}, le = ["aria-hidden"],
|
|
7
|
+
}, re = {}, se = {}, le = ["aria-hidden"], de = ["aria-level"], ce = ["src"], ue = {
|
|
8
8
|
key: 1,
|
|
9
9
|
class: "description"
|
|
10
|
-
},
|
|
10
|
+
}, pe = ["src"], ge = ["aria-level"], fe = /* @__PURE__ */ y({
|
|
11
11
|
__name: "NarrativeAnswer.ce",
|
|
12
12
|
props: {
|
|
13
13
|
messageTitle: { type: String },
|
|
@@ -28,18 +28,18 @@ const ee = {}, te = {}, ae = {}, ne = {}, oe = {}, ie = {
|
|
|
28
28
|
class: "subtitle",
|
|
29
29
|
role: "heading",
|
|
30
30
|
"aria-level": e.titleLevel
|
|
31
|
-
},
|
|
31
|
+
}, c(n.value), 9, de),
|
|
32
32
|
e.type === "search" ? (o(), i("img", {
|
|
33
33
|
key: 0,
|
|
34
34
|
src: e.image,
|
|
35
35
|
alt: ""
|
|
36
|
-
}, null, 8,
|
|
37
|
-
e.type === "success" || e.type === "fail" ? (o(), i("p", ue,
|
|
36
|
+
}, null, 8, ce)) : v("", !0),
|
|
37
|
+
e.type === "success" || e.type === "fail" ? (o(), i("p", ue, c(e.title), 1)) : v("", !0),
|
|
38
38
|
e.type !== "search" ? (o(), i("img", {
|
|
39
39
|
key: 2,
|
|
40
40
|
src: e.image,
|
|
41
41
|
alt: ""
|
|
42
|
-
}, null, 8,
|
|
42
|
+
}, null, 8, pe)) : v("", !0),
|
|
43
43
|
e.messageTitle ? (o(), i("div", {
|
|
44
44
|
key: 3,
|
|
45
45
|
class: w(["answer-block", e.stateAnswer])
|
|
@@ -48,12 +48,12 @@ const ee = {}, te = {}, ae = {}, ne = {}, oe = {}, ie = {
|
|
|
48
48
|
class: "answer-block__title",
|
|
49
49
|
role: "heading",
|
|
50
50
|
"aria-level": e.titleLevel + 1
|
|
51
|
-
},
|
|
52
|
-
s("p", null,
|
|
51
|
+
}, c(e.messageTitle), 9, ge),
|
|
52
|
+
s("p", null, c(e.messageDescription), 1)
|
|
53
53
|
], 2)) : v("", !0)
|
|
54
54
|
], 8, le));
|
|
55
55
|
}
|
|
56
|
-
}), me = ".right-container[data-v-2a82aa38]{grid-row:1/1;grid-column:1/1}.right-container[aria-hidden=true][data-v-2a82aa38]{visibility:hidden}img[data-v-2a82aa38]{margin-block:.5rem}.subtitle[data-v-2a82aa38]{font-size:1.25rem;font-weight:700;text-align:center}.description[data-v-2a82aa38]{font-weight:700;margin-top:0;margin-bottom:0}img[data-v-2a82aa38]{width:200px;height:auto}.answer-block[data-v-2a82aa38]{background:#e8e8e8;margin-inline:1rem;padding:.5rem;border-radius:10px}.answer-block p[data-v-2a82aa38]{margin-bottom:0}.answer-block.success[data-v-2a82aa38]{background:#e8f3ef}.answer-block.fail[data-v-2a82aa38]{border-radius:16px;background:#fbecec}", ve = /* @__PURE__ */ _(
|
|
56
|
+
}), me = ".right-container[data-v-2a82aa38]{grid-row:1/1;grid-column:1/1}.right-container[aria-hidden=true][data-v-2a82aa38]{visibility:hidden}img[data-v-2a82aa38]{margin-block:.5rem}.subtitle[data-v-2a82aa38]{font-size:1.25rem;font-weight:700;text-align:center}.description[data-v-2a82aa38]{font-weight:700;margin-top:0;margin-bottom:0}img[data-v-2a82aa38]{width:200px;height:auto}.answer-block[data-v-2a82aa38]{background:#e8e8e8;margin-inline:1rem;padding:.5rem;border-radius:10px}.answer-block p[data-v-2a82aa38]{margin-bottom:0}.answer-block.success[data-v-2a82aa38]{background:#e8f3ef}.answer-block.fail[data-v-2a82aa38]{border-radius:16px;background:#fbecec}", ve = /* @__PURE__ */ _(fe, [["styles", [me]], ["__scopeId", "data-v-2a82aa38"]]), be = ["aria-disabled"], he = /* @__PURE__ */ y({
|
|
57
57
|
__name: "Option.ce",
|
|
58
58
|
props: /* @__PURE__ */ P({
|
|
59
59
|
option: { type: String },
|
|
@@ -66,16 +66,16 @@ const ee = {}, te = {}, ae = {}, ne = {}, oe = {}, ie = {
|
|
|
66
66
|
emits: ["update:modelValue"],
|
|
67
67
|
setup(e, { expose: u }) {
|
|
68
68
|
const n = R(e, "modelValue"), l = x(!1), t = b(() => n.value.length === 3 && !l.value || e.readonly);
|
|
69
|
-
function h(
|
|
69
|
+
function h(f) {
|
|
70
70
|
if (t.value) {
|
|
71
|
-
|
|
71
|
+
f.preventDefault();
|
|
72
72
|
return;
|
|
73
73
|
}
|
|
74
|
-
|
|
74
|
+
f.target.checked ? n.value.push(e.option) : n.value = n.value.filter((g) => g !== e.option);
|
|
75
75
|
}
|
|
76
76
|
return u({
|
|
77
77
|
isChecked: l
|
|
78
|
-
}), (
|
|
78
|
+
}), (f, m) => (o(), i("label", {
|
|
79
79
|
class: w({ selected: l.value, disabled: t.value })
|
|
80
80
|
}, [
|
|
81
81
|
A(s("input", {
|
|
@@ -87,7 +87,7 @@ const ee = {}, te = {}, ae = {}, ne = {}, oe = {}, ie = {
|
|
|
87
87
|
}, null, 8, be), [
|
|
88
88
|
[O, l.value]
|
|
89
89
|
]),
|
|
90
|
-
V(
|
|
90
|
+
V(c(e.option), 1)
|
|
91
91
|
], 2));
|
|
92
92
|
}
|
|
93
93
|
}), ye = ".selected[data-v-a067b43a]{background:#f7f5ff}.disabled[data-v-a067b43a]{cursor:not-allowed;background:#efefef}.disabled.selected[data-v-a067b43a]{background:#d6d5dd}", _e = /* @__PURE__ */ _(he, [["styles", [ye]], ["__scopeId", "data-v-a067b43a"]]), ke = /* @__PURE__ */ y({
|
|
@@ -101,10 +101,10 @@ const ee = {}, te = {}, ae = {}, ne = {}, oe = {}, ie = {
|
|
|
101
101
|
class: w(["epreuve-button", e.state])
|
|
102
102
|
}, [
|
|
103
103
|
G(u.$slots, "icon"),
|
|
104
|
-
V(" " +
|
|
104
|
+
V(" " + c(e.label), 1)
|
|
105
105
|
], 2));
|
|
106
106
|
}
|
|
107
|
-
}), xe = ".epreuve-button{--pix-neutral-0: #fff;--pix-neutral-800: #253858;--pix-neutral-900: #122647;--pix-secondary-500: #ffcb33;--pix-secondary-700: #a16206}.epreuve-button.primary{--background-color: var(--pix-neutral-800);--background-color-hover: var(--pix-neutral-900);--color: var(--pix-neutral-0);--color-hover: var(--pix-neutral-0)}.epreuve-button.warning{--background-color: var(--pix-secondary-500);--background-color-hover: var(--pix-secondary-700);--color: var(--pix-neutral-900);--color-hover: var(--pix-neutral-0)}.epreuve-button.primary,.epreuve-button.warning{align-items:center;background-color:var(--background-color);border:2px solid transparent;border-radius:8px;color:var(--color);cursor:pointer;display:flex;font-family:Roboto,sans-serif;font-size:1rem;font-weight:700;justify-content:center;gap:8px;line-height:24px;margin:0 auto;outline:none;padding:8px 24px;transition:background-color ease .5s,color ease .5s;width:fit-content;white-space:nowrap}:is(.epreuve-button.primary,.epreuve-button.warning)[aria-disabled=true]{cursor:not-allowed;opacity:.5}:is(.epreuve-button.primary,.epreuve-button.warning):not([aria-disabled=true]):hover{background-color:var(--background-color-hover);color:var(--color-hover);transition:background-color ease .5s,color ease .5s}:is(.epreuve-button.primary,.epreuve-button.warning):not([aria-disabled=true]):hover svg{color:var(--color-hover);transition:color ease .5s}:is(.epreuve-button.primary,.epreuve-button.warning):focus,:is(.epreuve-button.primary,.epreuve-button.warning):focus-visible{background-color:var(--background-color-hover);color:var(--color-hover);outline:1px solid var(--pix-neutral-0);outline-offset:-5px}", we = /* @__PURE__ */ _(ke, [["styles", [xe]]]), qe = { class: "container" }, Ie = { class: "left-side" }, Se = ["aria-level"], $e = { class: "
|
|
107
|
+
}), xe = ".epreuve-button{--pix-neutral-0: #fff;--pix-neutral-800: #253858;--pix-neutral-900: #122647;--pix-secondary-500: #ffcb33;--pix-secondary-700: #a16206}.epreuve-button.primary{--background-color: var(--pix-neutral-800);--background-color-hover: var(--pix-neutral-900);--color: var(--pix-neutral-0);--color-hover: var(--pix-neutral-0)}.epreuve-button.warning{--background-color: var(--pix-secondary-500);--background-color-hover: var(--pix-secondary-700);--color: var(--pix-neutral-900);--color-hover: var(--pix-neutral-0)}.epreuve-button.primary,.epreuve-button.warning{align-items:center;background-color:var(--background-color);border:2px solid transparent;border-radius:8px;color:var(--color);cursor:pointer;display:flex;font-family:Roboto,sans-serif;font-size:1rem;font-weight:700;justify-content:center;gap:8px;line-height:24px;margin:0 auto;outline:none;padding:8px 24px;transition:background-color ease .5s,color ease .5s;width:fit-content;white-space:nowrap}:is(.epreuve-button.primary,.epreuve-button.warning)[aria-disabled=true]{cursor:not-allowed;opacity:.5}:is(.epreuve-button.primary,.epreuve-button.warning):not([aria-disabled=true]):hover{background-color:var(--background-color-hover);color:var(--color-hover);transition:background-color ease .5s,color ease .5s}:is(.epreuve-button.primary,.epreuve-button.warning):not([aria-disabled=true]):hover svg{color:var(--color-hover);transition:color ease .5s}:is(.epreuve-button.primary,.epreuve-button.warning):focus,:is(.epreuve-button.primary,.epreuve-button.warning):focus-visible{background-color:var(--background-color-hover);color:var(--color-hover);outline:1px solid var(--pix-neutral-0);outline-offset:-5px}", we = /* @__PURE__ */ _(ke, [["styles", [xe]]]), qe = { class: "container" }, Ie = { class: "left-side" }, Se = ["aria-level"], $e = { class: "sr-only" }, Ce = { class: "left-side__action" }, Ve = {
|
|
108
108
|
key: 0,
|
|
109
109
|
id: "optionsSelectedInfo",
|
|
110
110
|
class: "left-side__lower-legend",
|
|
@@ -112,7 +112,7 @@ const ee = {}, te = {}, ae = {}, ne = {}, oe = {}, ie = {
|
|
|
112
112
|
}, Ne = {
|
|
113
113
|
class: "right-side",
|
|
114
114
|
"aria-live": "polite"
|
|
115
|
-
},
|
|
115
|
+
}, Be = /* @__PURE__ */ y({
|
|
116
116
|
__name: "QcmDeepfake.ce",
|
|
117
117
|
props: {
|
|
118
118
|
titleLevel: { default: 2, type: Number },
|
|
@@ -123,7 +123,7 @@ const ee = {}, te = {}, ae = {}, ne = {}, oe = {}, ie = {
|
|
|
123
123
|
searchDelay: { default: 3e3, type: Number }
|
|
124
124
|
},
|
|
125
125
|
setup(e, { expose: u }) {
|
|
126
|
-
const n = x([]), l = [2, 4, 5], t = x("info"), h = M("optionsNode"),
|
|
126
|
+
const n = x([]), l = [2, 4, 5], t = x("info"), h = M("optionsNode"), f = a.t("qcm-deepfake.options", { returnObjects: !0 }), m = ["👩🎤", "🎧", "🎶", "👩", "🎙️"], g = f.map((d, r) => `${m[r]} ${d}`), B = g.filter((d, r) => l.includes(r + 1)), D = [
|
|
127
127
|
{
|
|
128
128
|
type: "info",
|
|
129
129
|
image: e.infoImage
|
|
@@ -146,31 +146,31 @@ const ee = {}, te = {}, ae = {}, ne = {}, oe = {}, ie = {
|
|
|
146
146
|
type: "search",
|
|
147
147
|
image: e.searchImage
|
|
148
148
|
}
|
|
149
|
-
], q = b(() => n.value.length !== 3 || t.value === "search"),
|
|
149
|
+
], q = b(() => n.value.length !== 3 || t.value === "search"), T = b(() => t.value === "search" ? a.t("qcm-deepfake.loading") : t.value === "info" ? a.t("qcm-deepfake.generateVideo") : a.t("qcm-deepfake.restart")), j = b(() => t.value === "info" ? a.t("qcm-deepfake.generateVideoInfo", { count: l.length - n.value.length }) : t.value === "fail" ? a.t("qcm-deepfake.restartInfo") : "");
|
|
150
150
|
function z() {
|
|
151
151
|
return q.value ? !1 : t.value === "info" ? L() : I();
|
|
152
152
|
}
|
|
153
153
|
function I() {
|
|
154
|
-
h.value.forEach((
|
|
155
|
-
|
|
154
|
+
h.value.forEach((d) => {
|
|
155
|
+
d.isChecked = !1;
|
|
156
156
|
}), n.value = [], t.value = "info";
|
|
157
157
|
}
|
|
158
158
|
async function L() {
|
|
159
|
-
const
|
|
160
|
-
t.value = "search", await new Promise((r) => setTimeout(r, e.searchDelay)),
|
|
159
|
+
const d = n.value.every((r) => B.includes(r.trim()));
|
|
160
|
+
t.value = "search", await new Promise((r) => setTimeout(r, e.searchDelay)), d ? t.value = "success" : t.value = "fail";
|
|
161
161
|
}
|
|
162
162
|
return u({
|
|
163
163
|
reset: I
|
|
164
|
-
}), (
|
|
164
|
+
}), (d, r) => (o(), i("div", qe, [
|
|
165
165
|
s("form", Ie, [
|
|
166
166
|
s("div", {
|
|
167
167
|
class: "left-side__subtitle",
|
|
168
168
|
role: "heading",
|
|
169
169
|
"aria-level": e.titleLevel
|
|
170
|
-
}, d
|
|
170
|
+
}, c(d.$t("qcm-deepfake.in")), 9, Se),
|
|
171
171
|
s("fieldset", null, [
|
|
172
|
-
s("legend", $e, d
|
|
173
|
-
(o(!0), i($, null, C(Q(g), (
|
|
172
|
+
s("legend", $e, c(d.$t("qcm-deepfake.selectThreeElements")), 1),
|
|
173
|
+
(o(!0), i($, null, C(Q(g), (p, S) => (o(), F(_e, {
|
|
174
174
|
ref_for: !0,
|
|
175
175
|
ref_key: "optionsNode",
|
|
176
176
|
ref: h,
|
|
@@ -178,7 +178,7 @@ const ee = {}, te = {}, ae = {}, ne = {}, oe = {}, ie = {
|
|
|
178
178
|
"onUpdate:modelValue": r[0] || (r[0] = (E) => n.value = E),
|
|
179
179
|
key: S,
|
|
180
180
|
class: "left-side__options",
|
|
181
|
-
option:
|
|
181
|
+
option: p,
|
|
182
182
|
value: S + 1,
|
|
183
183
|
readonly: t.value !== "info"
|
|
184
184
|
}, null, 8, ["modelValue", "option", "value", "readonly"]))), 128))
|
|
@@ -187,7 +187,7 @@ const ee = {}, te = {}, ae = {}, ne = {}, oe = {}, ie = {
|
|
|
187
187
|
k(we, {
|
|
188
188
|
onClick: H(z, ["prevent"]),
|
|
189
189
|
"aria-disabled": q.value,
|
|
190
|
-
label:
|
|
190
|
+
label: T.value,
|
|
191
191
|
state: t.value === "info" ? "primary" : "warning",
|
|
192
192
|
"aria-describedby": ["success", "search"].includes(t.value) ? void 0 : "optionsSelectedInfo"
|
|
193
193
|
}, U({ _: 2 }, [
|
|
@@ -199,24 +199,24 @@ const ee = {}, te = {}, ae = {}, ne = {}, oe = {}, ie = {
|
|
|
199
199
|
key: "0"
|
|
200
200
|
} : void 0
|
|
201
201
|
]), 1032, ["aria-disabled", "label", "state", "aria-describedby"]),
|
|
202
|
-
["success", "search"].includes(t.value) ? v("", !0) : (o(), i("p", Ve,
|
|
202
|
+
["success", "search"].includes(t.value) ? v("", !0) : (o(), i("p", Ve, c(j.value), 1))
|
|
203
203
|
])
|
|
204
204
|
]),
|
|
205
205
|
s("div", Ne, [
|
|
206
|
-
(o(), i($, null, C(
|
|
207
|
-
key:
|
|
206
|
+
(o(), i($, null, C(D, (p) => k(ve, {
|
|
207
|
+
key: p.type,
|
|
208
208
|
"title-level": e.titleLevel,
|
|
209
|
-
type:
|
|
210
|
-
image:
|
|
211
|
-
title:
|
|
212
|
-
"message-title":
|
|
213
|
-
"message-description":
|
|
209
|
+
type: p.type,
|
|
210
|
+
image: p.image,
|
|
211
|
+
title: p.title,
|
|
212
|
+
"message-title": p.messageTitle,
|
|
213
|
+
"message-description": p.messageDescription,
|
|
214
214
|
"state-answer": t.value
|
|
215
215
|
}, null, 8, ["title-level", "type", "image", "title", "message-title", "message-description", "state-answer"])), 64))
|
|
216
216
|
])
|
|
217
217
|
]));
|
|
218
218
|
}
|
|
219
|
-
}),
|
|
219
|
+
}), De = "legend,label,p,div[role=heading]{font-family:Nunito,Roboto,sans-serif;color:#253858}", Te = ".container[data-v-da7e2b08]{display:flex;gap:.8rem}.title[data-v-da7e2b08]{font-size:1.75rem;font-weight:700;text-align:center;margin-bottom:16px}.left-side[data-v-da7e2b08]{min-width:60%;border:solid 1px #b0d3f4;background:#fff;padding:.8rem;border-radius:10px}.left-side__lower-legend[data-v-da7e2b08]{font-size:.875rem;color:#5e6c84}.left-side__subtitle[data-v-da7e2b08]{font-size:1.25rem;font-weight:700;text-align:center}.left-side__options[data-v-da7e2b08]{display:flex;border:solid 1px #5e6c84;padding:.6rem;border-radius:5px;gap:.5rem}.left-side__button[data-v-da7e2b08]{display:flex;gap:.5rem;align-items:center;border:none;padding:.6rem 1.5rem;background:#ffcb33;color:#000;border-radius:25px;font-weight:700;cursor:pointer}.left-side__button.generate[data-v-da7e2b08]{background:#613fdd;color:#fff}.left-side__button[aria-disabled=true][data-v-da7e2b08]{cursor:not-allowed;background:#d3d3d3}.left-side__action[data-v-da7e2b08]{display:flex;flex-direction:column;align-items:center;text-align:center}.right-side[data-v-da7e2b08]{display:grid;border:solid 1px #b0d3f4;background:#fff;padding:.8rem;text-align:center;border-radius:10px}fieldset[data-v-da7e2b08]{border:none;display:flex;flex-direction:column;gap:.8rem}.sr-only[data-v-da7e2b08]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);border:0}@media(max-width:770px){.container[data-v-da7e2b08]{flex-wrap:wrap}.left-side[data-v-da7e2b08],.right-side[data-v-da7e2b08]{width:100%}}", je = /* @__PURE__ */ _(Be, [["styles", [De, Te]], ["__scopeId", "data-v-da7e2b08"]]);
|
|
220
220
|
K(/* @__PURE__ */ Object.assign({ "./locales/de-AT.json": ee, "./locales/en.json": te, "./locales/es-419.json": ae, "./locales/es.json": ne, "./locales/fr-BE.json": oe, "./locales/fr.json": ie, "./locales/it.json": re, "./locales/nl.json": se })).catch((e) => console.error(e));
|
|
221
221
|
const N = J(je, {
|
|
222
222
|
configureApp(e) {
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { b as q, o as r, c as m, t as B, a as l, x as u, l as g, _ as A, h as V,
|
|
2
|
-
import { u as D, a as O, i as z, b as P } from "../i18n-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { b as q, o as r, c as m, t as B, a as l, x as u, l as g, _ as A, h as V, D as b, f as h, E as k, B as G, y as Q, r as v, g as p, d as R } from "../_plugin-vue_export-helper-Dz58mCLm.js";
|
|
2
|
+
import { u as D, a as O, i as z, b as P } from "../i18n-H4HokXDX.js";
|
|
3
|
+
import { F as I } from "../Feedback.ce-CnZRBGWf.js";
|
|
4
|
+
import { _ as M, a as H } from "../Cross.ce.vue_vue_type_script_setup_true_lang-DVLRq2sO.js";
|
|
5
|
+
import { S as J } from "../Stepper.ce-DEMN02yr.js";
|
|
5
6
|
import { a as f, b as K } from "../normalize-props-DH0oPBss.js";
|
|
6
|
-
import { l as U } from "../index-
|
|
7
|
+
import { l as U } from "../index-BUPiE5WR.js";
|
|
7
8
|
const W = {}, X = {}, Y = {}, Z = {}, ee = {}, te = {
|
|
8
9
|
"quiz-stepper": { submitButton: "Valider", nextStepButton: "Continuer", feedback: { success: "Bien joué", failed: "Pas tout à fait" } }
|
|
9
|
-
}, ne = {}, se = {},
|
|
10
|
+
}, ne = {}, se = {}, oe = ["id", "aria-disabled", "checked"], ie = ["for"], ae = {
|
|
10
11
|
key: 0,
|
|
11
12
|
class: "answer__subtitle"
|
|
12
13
|
}, le = { class: "answer__content" }, ce = /* @__PURE__ */ q({
|
|
@@ -23,7 +24,7 @@ const W = {}, X = {}, Y = {}, Z = {}, ee = {}, te = {
|
|
|
23
24
|
function t() {
|
|
24
25
|
s("select-answer", e.choice);
|
|
25
26
|
}
|
|
26
|
-
return (n,
|
|
27
|
+
return (n, i) => (r(), m("div", {
|
|
27
28
|
class: B(["answer", { "is-selected": e.isSelected, "is-disabled": e.showFeedback }])
|
|
28
29
|
}, [
|
|
29
30
|
l("input", {
|
|
@@ -34,11 +35,11 @@ const W = {}, X = {}, Y = {}, Z = {}, ee = {}, te = {
|
|
|
34
35
|
checked: e.isSelected,
|
|
35
36
|
onChange: t,
|
|
36
37
|
class: "sr-only"
|
|
37
|
-
}, null, 40,
|
|
38
|
+
}, null, 40, oe),
|
|
38
39
|
l("label", { for: e.id }, [
|
|
39
40
|
e.choice.title ? (r(), m("span", ae, u(e.choice.title), 1)) : g("", !0),
|
|
40
41
|
l("span", le, u(e.choice.content), 1)
|
|
41
|
-
], 8,
|
|
42
|
+
], 8, ie)
|
|
42
43
|
], 2));
|
|
43
44
|
}
|
|
44
45
|
}), re = ".answer{display:flex;flex:1;flex-direction:column;align-items:flex-start;gap:.25em;border-radius:8px;border:1px solid #cdd1d9;background:#fff;color:var(--neutral-900);text-align:left;font-size:.875em}.answer label{cursor:pointer;height:100%;padding:1em}.answer.is-selected{border-radius:8px;border:1px solid #fff;background:var(--neutral-800);color:#fff}.answer__subtitle{font-size:1em;font-weight:700;line-height:24px;display:block}.answer__content{text-wrap-mode:wrap;white-space-collapse:preserve}.answer .is-disabled{cursor:not-allowed}.answer:focus-within{outline:2px solid black}", S = /* @__PURE__ */ A(ce, [["styles", [re]]]), ue = { class: "quiz-stepper-container__layout" }, de = ["aria-level"], pe = { class: "card-wrapper" }, fe = ["aria-disable"], me = /* @__PURE__ */ q({
|
|
@@ -48,22 +49,22 @@ const W = {}, X = {}, Y = {}, Z = {}, ee = {}, te = {
|
|
|
48
49
|
titleLevel: { default: 2, type: Number }
|
|
49
50
|
},
|
|
50
51
|
setup(e, { expose: c }) {
|
|
51
|
-
const s = v(0), t = v(), n = v(!1),
|
|
52
|
-
const
|
|
53
|
-
return
|
|
52
|
+
const s = v(0), t = v(), n = v(!1), i = V("form"), { t: _ } = D(), a = p(() => e.steps?.[s.value]), w = p(() => !n.value), $ = p(() => {
|
|
53
|
+
const o = s.value === e.steps.length - 1;
|
|
54
|
+
return o ? o && !n.value : !0;
|
|
54
55
|
}), C = p(() => w.value ? _("quiz-stepper.submitButton") : _("quiz-stepper.nextStepButton"));
|
|
55
|
-
function x(
|
|
56
|
-
n.value || (t.value =
|
|
56
|
+
function x(o) {
|
|
57
|
+
n.value || (t.value = o);
|
|
57
58
|
}
|
|
58
59
|
function F() {
|
|
59
60
|
if (s.value + 1 > e.steps.length) {
|
|
60
61
|
s.value = e.steps.length;
|
|
61
62
|
return;
|
|
62
63
|
}
|
|
63
|
-
s.value++, n.value = !1, t.value = void 0,
|
|
64
|
+
s.value++, n.value = !1, t.value = void 0, i.value?.focus();
|
|
64
65
|
}
|
|
65
66
|
function N() {
|
|
66
|
-
t.value && (n.value = !0, s.value + 1 === e.steps.length &&
|
|
67
|
+
t.value && (n.value = !0, s.value + 1 === e.steps.length && i.value?.focus());
|
|
67
68
|
}
|
|
68
69
|
function T() {
|
|
69
70
|
if (w.value) {
|
|
@@ -72,19 +73,19 @@ const W = {}, X = {}, Y = {}, Z = {}, ee = {}, te = {
|
|
|
72
73
|
}
|
|
73
74
|
F();
|
|
74
75
|
}
|
|
75
|
-
function y(
|
|
76
|
-
return
|
|
76
|
+
function y(o) {
|
|
77
|
+
return o.content ? o.content === t.value?.content : o.title === t.value?.title;
|
|
77
78
|
}
|
|
78
79
|
function E() {
|
|
79
80
|
s.value = 0, t.value = void 0, n.value = !1;
|
|
80
81
|
}
|
|
81
82
|
return c({
|
|
82
83
|
reset: E
|
|
83
|
-
}), (
|
|
84
|
+
}), (o, d) => (r(), m("form", {
|
|
84
85
|
class: "quiz-stepper-container",
|
|
85
86
|
onSubmit: Q(T, ["prevent"]),
|
|
86
87
|
ref_key: "form",
|
|
87
|
-
ref:
|
|
88
|
+
ref: i,
|
|
88
89
|
tabindex: "-1"
|
|
89
90
|
}, [
|
|
90
91
|
l("div", ue, [
|
|
@@ -117,15 +118,15 @@ const W = {}, X = {}, Y = {}, Z = {}, ee = {}, te = {
|
|
|
117
118
|
}, null, 8, ["choice", "show-feedback", "is-selected"])
|
|
118
119
|
])
|
|
119
120
|
]),
|
|
120
|
-
n.value ? (r(), h(
|
|
121
|
+
n.value ? (r(), h(I, {
|
|
121
122
|
key: 0,
|
|
122
|
-
title: t.value?.isGoodAnswer ?
|
|
123
|
+
title: t.value?.isGoodAnswer ? o.$t("quiz-stepper.feedback.success") : o.$t("quiz-stepper.feedback.failed")
|
|
123
124
|
}, {
|
|
124
125
|
icon: k(() => [
|
|
125
|
-
t.value?.isGoodAnswer ? (r(), h(
|
|
126
|
+
t.value?.isGoodAnswer ? (r(), h(M, {
|
|
126
127
|
key: 0,
|
|
127
128
|
class: "icon-size"
|
|
128
|
-
})) : (r(), h(
|
|
129
|
+
})) : (r(), h(H, {
|
|
129
130
|
key: 1,
|
|
130
131
|
class: "icon-size"
|
|
131
132
|
}))
|
|
@@ -155,19 +156,19 @@ const j = R(he, {
|
|
|
155
156
|
j.prototype.normalizeProps = (e) => {
|
|
156
157
|
let { steps: c, titleLevel: s } = e;
|
|
157
158
|
return c = c.map((t) => {
|
|
158
|
-
let { choice1: n, choice2:
|
|
159
|
+
let { choice1: n, choice2: i } = t;
|
|
159
160
|
return n = {
|
|
160
161
|
...t.choice1,
|
|
161
162
|
title: f(n.title),
|
|
162
163
|
content: f(n.content)
|
|
163
|
-
},
|
|
164
|
+
}, i = {
|
|
164
165
|
...t.choice2,
|
|
165
|
-
title: f(
|
|
166
|
-
content: f(
|
|
166
|
+
title: f(i.title),
|
|
167
|
+
content: f(i.content)
|
|
167
168
|
}, {
|
|
168
169
|
...t,
|
|
169
170
|
choice1: n,
|
|
170
|
-
choice2:
|
|
171
|
+
choice2: i
|
|
171
172
|
};
|
|
172
173
|
}), {
|
|
173
174
|
steps: c,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { b as w, r as g, o as n, c as i, a as e, x as a, v as l, t as z,
|
|
2
|
-
import { a as j, i as _, b as L } from "../i18n-
|
|
1
|
+
import { b as w, r as g, o as n, c as i, a as e, x as a, v as l, t as z, B as k, F as p, e as M, l as T, g as u, _ as D, d as C } from "../_plugin-vue_export-helper-Dz58mCLm.js";
|
|
2
|
+
import { a as j, i as _, b as L } from "../i18n-H4HokXDX.js";
|
|
3
3
|
import { b as S } from "../normalize-props-DH0oPBss.js";
|
|
4
|
-
import { t as f, a as F, q as
|
|
5
|
-
const
|
|
4
|
+
import { t as f, a as F, q as B } from "../temporal.utils-DgmGPVba.js";
|
|
5
|
+
const $ = {}, I = {}, N = {}, E = {}, q = {}, A = {
|
|
6
6
|
"select-conversation": { "select-response-title": "Sélectionnez le message que {{username}} devrait envoyer :", "message-date": "{{messageDay, relativetime(numeric: auto)}} · {{messageTime, datetime(timeStyle: short)}}", "incoming-message-sr": "Message de {{username}} reçu {{messageDay, relativetime(numeric: auto)}} à {{messageTime, datetime(timeStyle: short)}}", "outgoing-message-sr": "Message envoyé par {{username}} {{messageDay, relativetime(numeric: auto)}} à {{messageTime, datetime(timeStyle: short)}}", "good-idea": "Bonne idée", "bad-idea": "Mauvaise idée" }
|
|
7
7
|
}, R = {}, O = {}, V = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20448%20512'%3e%3c!--!Font%20Awesome%20Free%20v7.1.0%20by%20@fontawesome%20-%20https://fontawesome.com%20License%20-%20https://fontawesome.com/license/free%20Copyright%202025%20Fonticons,%20Inc.--%3e%3cpath%20d='M434.8%2070.1c14.3%2010.4%2017.5%2030.4%207.1%2044.7l-256%20352c-5.5%207.6-14%2012.3-23.4%2013.1s-18.5-2.7-25.1-9.3l-128-128c-12.5-12.5-12.5-32.8%200-45.3s32.8-12.5%2045.3%200l101.5%20101.5%20234-321.7c10.4-14.3%2030.4-17.5%2044.7-7.1z'/%3e%3c/svg%3e", H = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20512%20512'%3e%3c!--!Font%20Awesome%20Free%20v7.1.0%20by%20@fontawesome%20-%20https://fontawesome.com%20License%20-%20https://fontawesome.com/license/free%20Copyright%202025%20Fonticons,%20Inc.--%3e%3cpath%20d='M256%2048a208%20208%200%201%201%200%20416%20208%20208%200%201%201%200-416zm0%20464a256%20256%200%201%200%200-512%20256%20256%200%201%200%200%20512zM167%20167c-9.4%209.4-9.4%2024.6%200%2033.9l55%2055-55%2055c-9.4%209.4-9.4%2024.6%200%2033.9s24.6%209.4%2033.9%200l55-55%2055%2055c9.4%209.4%2024.6%209.4%2033.9%200s9.4-24.6%200-33.9l-55-55%2055-55c9.4-9.4%209.4-24.6%200-33.9s-24.6-9.4-33.9%200l-55%2055-55-55c-9.4-9.4-24.6-9.4-33.9%200z'/%3e%3c/svg%3e", G = { class: "messages" }, P = { class: "message" }, X = {
|
|
8
8
|
class: "message__username",
|
|
@@ -25,7 +25,7 @@ const B = {}, E = {}, I = {}, N = {}, q = {}, A = {
|
|
|
25
25
|
responseChoices: { type: Array }
|
|
26
26
|
},
|
|
27
27
|
setup(s, { expose: v }) {
|
|
28
|
-
const d = g(s.responseChoices.map((t) => ({ ...t, selected: !1 }))), o = g(), c = u(() => F(s.incomingMessage.time)), m = u(() => c.value.day -
|
|
28
|
+
const d = g(s.responseChoices.map((t) => ({ ...t, selected: !1 }))), o = g(), c = u(() => F(s.incomingMessage.time)), m = u(() => c.value.day - B.Now.plainDateTimeISO().day);
|
|
29
29
|
function b(t) {
|
|
30
30
|
t.selected || (t.selected = !0, o.value = t);
|
|
31
31
|
}
|
|
@@ -91,7 +91,7 @@ const B = {}, E = {}, I = {}, N = {}, q = {}, A = {
|
|
|
91
91
|
], 64));
|
|
92
92
|
}
|
|
93
93
|
}), me = "html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}table{border-collapse:collapse;border-spacing:0}.messages,.response-select{--primary-font-size: .875rem;--secondary-font-size: .75rem}*{font-family:Roboto,sans-serif;color:#122647;line-height:normal}.messages{display:flex;flex-direction:column;gap:8px;padding:16px}.message{display:flex;flex-direction:column;align-items:start;gap:8px;margin-left:0;margin-right:16px}.message__username,.message__date{color:#5e6c84;font-size:var(--secondary-font-size);font-weight:400}.message__content{padding:16px 8px;border-radius:8px;background:#e8e8e8;font-size:var(--primary-font-size);font-weight:400}.message--hidden{visibility:hidden}.message--outgoing{align-self:end;align-items:end;margin-left:16px;margin-right:0}.message--outgoing .message__content-container{display:flex;flex-direction:column}.message--outgoing .message__content-title{color:#fff;font-size:var(--secondary-font-size);font-weight:700;border-radius:8px 8px 0 0;background:#452d9d;padding:4px 8px;align-self:start;display:flex;gap:4px;align-items:center}.message--outgoing .message__content-title>img{filter:invert(100%);max-height:16px;max-width:16px}.message--outgoing .message__content{border-top-left-radius:0;background:#cec3f4}.response-select{border-radius:16px;border:1px solid #cdd1d9;background-color:#fff;display:flex;padding:24px 16px;flex-direction:column;gap:16px;margin-top:25px}.response-select__choices{display:flex;gap:8px}.response-select__choice{border-style:none;border-radius:8px;background-color:#253858;padding:8px 16px;color:#fff;text-align:center;font-size:var(--primary-font-size);font-weight:400;line-height:18px;flex:1;cursor:pointer}.response-select__choice[aria-disabled=true]{background-color:#f4f5f7;color:#5e6c84;cursor:not-allowed}.response-select__feedback{border-radius:8px;background:#eaf1ff;padding:8px;color:#122647;font-size:var(--secondary-font-size);font-weight:400;line-height:20px}.title{font-family:Nunito,Roboto,sans-serif;font-size:var(--primary-font-size);font-weight:700}@media(max-width:640px){.messages,.response-select{--primary-font-size: .75rem;--secondary-font-size: .688rem}.response-select__choices{flex-direction:column}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);border:0}", ge = /* @__PURE__ */ D(de, [["styles", [me]]]);
|
|
94
|
-
j(/* @__PURE__ */ Object.assign({ "./locales/de-AT.json":
|
|
94
|
+
j(/* @__PURE__ */ Object.assign({ "./locales/de-AT.json": $, "./locales/en.json": I, "./locales/es-419.json": N, "./locales/es.json": E, "./locales/fr-BE.json": q, "./locales/fr.json": A, "./locales/it.json": R, "./locales/nl.json": O })).catch((s) => console.error(s));
|
|
95
95
|
const h = C(ge, {
|
|
96
96
|
configureApp(s) {
|
|
97
97
|
_.changeLanguage(document?.documentElement?.lang || navigator.language), s.use(L, { i18next: _ });
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { _ as r, a as m, b as _, c as p, d as c, e as u, f as d, g } from "../nl-euPrf5s3.js";
|
|
2
2
|
import { u as v, a as b, b as f } from "../normalize-props-DH0oPBss.js";
|
|
3
|
-
import { b as j, o as M, f as x, g as s, d as y } from "../_plugin-vue_export-helper-
|
|
4
|
-
import { i as t } from "../i18n-lite-
|
|
5
|
-
import { P as C } from "../PixMailMessage.ce-
|
|
3
|
+
import { b as j, o as M, f as x, g as s, d as y } from "../_plugin-vue_export-helper-Dz58mCLm.js";
|
|
4
|
+
import { i as t } from "../i18n-lite-CzqISEWm.js";
|
|
5
|
+
import { P as C } from "../PixMailMessage.ce-TnjyOfiH.js";
|
|
6
6
|
const S = /* @__PURE__ */ j({
|
|
7
7
|
__name: "TemplateMail.ce",
|
|
8
8
|
props: {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { b as
|
|
2
|
-
import { u as S, i as v } from "../i18n-lite-
|
|
3
|
-
const R = {}, D = {}, O = {}, Z = {},
|
|
4
|
-
"test-top-mdp": { passwords: { title: "Top {{count}} des mots de passe en France"
|
|
5
|
-
},
|
|
1
|
+
import { b as B, K as $, o as c, c as p, a as e, x as n, z as H, F as h, e as N, t as w, B as k, v as m, l as y, D as P, E, g as r, r as C, _ as I, d as A } from "../_plugin-vue_export-helper-Dz58mCLm.js";
|
|
2
|
+
import { u as S, i as v } from "../i18n-lite-CzqISEWm.js";
|
|
3
|
+
const R = {}, D = {}, O = {}, Z = {}, G = {}, K = {
|
|
4
|
+
"test-top-mdp": { passwords: { title: "Top {{count}} des mots de passe en France" }, loginForm: { title: "Connexion", login: "Identifiant", loginValue: "Ulysse", password: "Mot de passe", passwordPlaceholder: "Séléctionnez un mot de passe...", submit: "Tester", attemptsCount: "Nombre d’essais : {{count}}" }, feedback: { positive: { title_one: "{{feedback}} en un essai.", title_other: "{{feedback}} en {{count}} essais." } } }
|
|
5
|
+
}, U = {}, q = {}, J = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9%2011.25V12.75M4.5%2015.75H13.5C13.8978%2015.75%2014.2794%2015.592%2014.5607%2015.3107C14.842%2015.0294%2015%2014.6478%2015%2014.25V9.75C15%209.35218%2014.842%208.97064%2014.5607%208.68934C14.2794%208.40804%2013.8978%208.25%2013.5%208.25H4.5C4.10218%208.25%203.72064%208.40804%203.43934%208.68934C3.15804%208.97064%203%209.35218%203%209.75V14.25C3%2014.6478%203.15804%2015.0294%203.43934%2015.3107C3.72064%2015.592%204.10218%2015.75%204.5%2015.75ZM12%208.25V5.25C12%204.45435%2011.6839%203.69129%2011.1213%203.12868C10.5587%202.56607%209.79565%202.25%209%202.25C8.20435%202.25%207.44129%202.56607%206.87868%203.12868C6.31607%203.69129%206%204.45435%206%205.25V8.25H12Z'%20stroke='white'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", Q = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M19.5%207L9.5%2017L4.5%2012'%20stroke='%23007740'%20stroke-width='1.6'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", W = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M16.875%207.125L7.125%2016.875M7.125%207.125L16.875%2016.875'%20stroke='%23A94B0C'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", X = { class: "container" }, Y = { class: "card" }, ee = ["arial-level"], te = ["onClick", "aria-disabled", "aria-selected"], oe = { class: "password" }, se = { class: "card" }, ne = ["arial-level"], le = { class: "lock-icon" }, ae = ["src"], ie = { class: "form" }, re = { class: "form__field" }, de = { for: "login" }, ce = ["value"], pe = { class: "form__field" }, ue = { for: "password" }, fe = ["value", "placeholder"], ge = ["src"], _e = ["aria-disabled"], me = { class: "attempts-count" }, ve = { class: "attempts-count__count" }, be = {
|
|
6
6
|
key: 0,
|
|
7
7
|
class: "feedback",
|
|
8
8
|
"aria-live": "polite"
|
|
9
|
-
}, xe = ["arial-level", "innerHTML"], he = ["innerHTML"], we = /* @__PURE__ */
|
|
9
|
+
}, xe = ["arial-level", "innerHTML"], he = ["innerHTML"], we = /* @__PURE__ */ B({
|
|
10
10
|
__name: "TestTopMdp.ce",
|
|
11
11
|
props: {
|
|
12
12
|
titleLevel: { type: Number },
|
|
@@ -42,7 +42,7 @@ const R = {}, D = {}, O = {}, Z = {}, q = {}, G = {
|
|
|
42
42
|
return j({
|
|
43
43
|
reset: F
|
|
44
44
|
}), (t, x) => {
|
|
45
|
-
const
|
|
45
|
+
const V = $("i18n");
|
|
46
46
|
return c(), p(h, null, [
|
|
47
47
|
e("div", X, [
|
|
48
48
|
e("div", Y, [
|
|
@@ -51,12 +51,11 @@ const R = {}, D = {}, O = {}, Z = {}, q = {}, G = {
|
|
|
51
51
|
role: "heading",
|
|
52
52
|
"arial-level": f.value
|
|
53
53
|
}, n(t.$t("test-top-mdp.passwords.title", { count: _.value.length })), 9, ee),
|
|
54
|
-
e("p", null, n(t.$t("test-top-mdp.passwords.cta")), 1),
|
|
55
54
|
e("div", {
|
|
56
55
|
class: "passwords",
|
|
57
56
|
style: H({ "--count-per-column": Math.round(_.value.length / 2) })
|
|
58
57
|
}, [
|
|
59
|
-
(c(!0), p(h, null, N(_.value, (o,
|
|
58
|
+
(c(!0), p(h, null, N(_.value, (o, z) => (c(), p("button", {
|
|
60
59
|
key: o.password,
|
|
61
60
|
onClick: (Ce) => T(o),
|
|
62
61
|
class: w({
|
|
@@ -66,7 +65,7 @@ const R = {}, D = {}, O = {}, Z = {}, q = {}, G = {
|
|
|
66
65
|
"aria-disabled": a.value || o.attempted,
|
|
67
66
|
"aria-selected": o.selected
|
|
68
67
|
}, [
|
|
69
|
-
k(" #" + n(
|
|
68
|
+
k(" #" + n(z + 1) + " ", 1),
|
|
70
69
|
e("span", oe, n(o.password), 1)
|
|
71
70
|
], 10, te))), 128))
|
|
72
71
|
], 4)
|
|
@@ -119,7 +118,7 @@ const R = {}, D = {}, O = {}, Z = {}, q = {}, G = {
|
|
|
119
118
|
onClick: x[0] || (x[0] = (o) => L())
|
|
120
119
|
}, n(t.$t("test-top-mdp.loginForm.submit")), 9, _e),
|
|
121
120
|
e("p", me, [
|
|
122
|
-
P(
|
|
121
|
+
P(V, { t: "test-top-mdp.loginForm.attemptsCount" }, {
|
|
123
122
|
count: E(() => [
|
|
124
123
|
e("span", ve, n(b.value), 1)
|
|
125
124
|
]),
|
|
@@ -145,7 +144,7 @@ const R = {}, D = {}, O = {}, Z = {}, q = {}, G = {
|
|
|
145
144
|
};
|
|
146
145
|
}
|
|
147
146
|
}), ke = "*{font-family:Roboto,sans-serif;color:#5e6c84;box-sizing:border-box;font-size:14px}p{margin:0}.container{display:flex;flex-direction:row;gap:16px}.card{background:#fff;border-radius:16px;box-shadow:0 2px 5px #4a3aff40,0 -2px 5px #4a3aff26 inset,0 1px 1px #ffffff1a inset,0 3px 4px #dfeeff1a inset;padding:24px;width:50%}.title{color:#122647;font-family:Nunito,Roboto,sans-serif;font-size:20px;font-weight:700;display:flex;align-items:center;gap:8px}.passwords{margin-top:16px;display:grid;grid-template-rows:repeat(var(--count-per-column, 5),1fr);grid-auto-flow:column;gap:8px}.passwords>button{display:flex;padding:8px 16px;gap:4px;border-radius:8px;background-color:#eaf1ff;border-style:none;cursor:pointer;height:44px;align-items:center;color:#122647}.passwords>button.selected{background-color:#3b82f6;color:#fff}.passwords>button.disabled{background-color:#f4f5f7;color:#5e6c84}.passwords>button[aria-disabled=true]{cursor:not-allowed}.lock-icon{border-radius:50%;background-color:#2c75ff;aspect-ratio:1;width:34px;display:flex;align-items:center;justify-content:center}.password{font-weight:700;line-height:20px;color:inherit}.form{margin-top:24px;display:flex;gap:16px;flex-direction:column}.form__field{display:flex;gap:8px;flex-direction:column;position:relative}.form__field-icon{aspect-ratio:1;width:24px;position:absolute;left:12px;bottom:12px}.form input{display:flex;height:50px;padding:12px 16px;align-items:center;border-radius:10px;border:1px solid #cdd1d9;background-color:#f4f5f7;font-size:16px;pointer-events:none;color:#122647}.form input.right{padding-left:40px;border-color:#00a85a;background-color:#e6f6ef;color:#007740}.form input.wrong{padding-left:40px;border-color:#d73328;background-color:#fbebea;color:#99241c}.form label{pointer-events:none}.form button{display:flex;height:50px;padding:12px 16px;align-items:center;border-radius:10px;background-color:#122647;font-size:16px;font-weight:700;color:#fff;justify-content:center;cursor:pointer;border-style:none}.form button[aria-disabled=true]{background-color:#cdd1d9;color:#5e6c84;cursor:not-allowed}.attempts-count{text-align:center}.attempts-count__count{color:#122647;font-weight:700}.feedback{margin-top:24px;display:flex;flex-direction:column}.feedback__title{color:#fff;padding:4px 8px;border-radius:8px 8px 0 0;background-color:#1f53b5;font-weight:700;align-self:start;font-size:12px}.feedback__title *{color:inherit}.feedback__content{border-radius:0 8px 8px;background-color:#eaf1ff;color:#122647;padding:8px}.feedback__content *{color:inherit}@media only screen and (max-width:680px){.container{flex-direction:column}.card{width:100%}}", ye = /* @__PURE__ */ I(we, [["styles", [ke]]]);
|
|
148
|
-
v.addTranslationsFromGlobResults(/* @__PURE__ */ Object.assign({ "./locales/de-AT.json": R, "./locales/en.json": D, "./locales/es-419.json": O, "./locales/es.json": Z, "./locales/fr-BE.json":
|
|
147
|
+
v.addTranslationsFromGlobResults(/* @__PURE__ */ Object.assign({ "./locales/de-AT.json": R, "./locales/en.json": D, "./locales/es-419.json": O, "./locales/es.json": Z, "./locales/fr-BE.json": G, "./locales/fr.json": K, "./locales/it.json": U, "./locales/nl.json": q }));
|
|
149
148
|
window.customElements.define("test-top-mdp", A(ye, {
|
|
150
149
|
configureApp(u) {
|
|
151
150
|
v.changeLanguage(document?.documentElement?.lang || navigator.language), u.use(v);
|