@1024pix/epreuves-components 4.5.0 → 4.6.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-DNrjLa1r.js → Button.ce-Ccv3OLk2.js} +1 -1
- package/dist/{ButtonTooltip.ce-DQ8QAvUM.js → ButtonTooltip.ce-Bo42SFAP.js} +1 -1
- package/dist/Cross.ce.vue_vue_type_script_setup_true_lang-CGq82iLD.js +83 -0
- package/dist/{FocusManager.ce-CwF5pnqR.js → FocusManager.ce-BG_n76ZF.js} +2 -2
- package/dist/Icon.ce-Be0LymfA.js +50 -0
- package/dist/{LLMMessage.ce-Duki08xd.js → LLMMessage.ce-y0WmEj7m.js} +24 -22
- package/dist/{Loading.ce-D7CUjrcI.js → Loading.ce-CG-e7tdE.js} +1 -1
- package/dist/Modal.ce-DCTwYJKJ.js +86 -0
- package/dist/{NavigationButton.ce-17UL0Mwu.js → NavigationButton.ce-B-c0m9H8.js} +14 -12
- package/dist/{PixMailMessage.ce-CNULZecQ.js → PixMailMessage.ce-CH6CVQ3H.js} +20 -20
- package/dist/{Popin.ce-VvQiVxjk.js → Popin.ce-CQtpIOkM.js} +3 -3
- package/dist/{Retry-CGkQcck5.js → Retry-DLOo5neI.js} +1 -1
- package/dist/{Stepper.ce-gx2YaVCo.js → Stepper.ce-MmSadTrx.js} +1 -1
- package/dist/{_plugin-vue_export-helper-DROOAHrz.js → _plugin-vue_export-helper-CD1RUA2y.js} +12 -12
- package/dist/components/analyse-mails-phishing.ce.js.js +104 -105
- package/dist/components/autocompletion-mdp.ce.js.js +256 -0
- package/dist/components/button.ce.js.js +2 -2
- package/dist/components/calcul-impact.ce.js.js +13 -13
- package/dist/components/capacity-calculation.ce.js.js +38 -35
- package/dist/components/clickable-image.ce.js.js +10 -10
- package/dist/components/complete-phrase.ce.js.js +12 -12
- package/dist/components/flip-cards.ce.js.js +10 -10
- package/dist/components/generate-mdp.ce.js.js +82 -151
- 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 +7 -7
- package/dist/components/mdp-classement.ce.js.js +100 -108
- package/dist/components/message-conversation.ce.js.js +19 -19
- package/dist/components/mobile-shell.ce.js.js +1 -1
- package/dist/components/notification-antivirus.ce.js.js +139 -149
- package/dist/components/phishing-message.ce.js.js +23 -23
- package/dist/components/phishing-notification.ce.js.js +18 -18
- package/dist/components/pix-anonymisation.ce.js.js +9 -9
- package/dist/components/pix-article.ce.js.js +2 -2
- package/dist/components/pix-carousel.ce.js.js +10 -8
- package/dist/components/pix-combinaisons.ce.js.js +13 -13
- package/dist/components/pix-cursor.ce.js.js +13 -13
- package/dist/components/pix-mail-message.ce.js.js +3 -3
- package/dist/components/proteger-mail-spam.ce.js.js +70 -82
- package/dist/components/qcm-deepfake.ce.js.js +23 -23
- package/dist/components/quiz-stepper.ce.js.js +61 -68
- package/dist/components/select-conversation.ce.js.js +4 -4
- package/dist/components/template-mail.ce.js.js +3 -3
- package/dist/components/test-top-mdp.ce.js.js +4 -4
- package/dist/components/trouver-mdp-rs.ce.js.js +52 -66
- package/dist/components/usages-donnees.ce.js.js +7 -7
- package/dist/{i18n-BVfGnSnP.js → i18n-C-1Ne5JG.js} +1 -1
- package/dist/{i18n-lite-V7Z5qwB2.js → i18n-lite-WQsHAHqG.js} +1 -1
- package/dist/{image-quiz.ce-DLpB-rde.js → image-quiz.ce-DGVVVaQN.js} +8 -8
- package/dist/{index-BgVc_wZ5.js → index-C8-9QxHJ.js} +1 -1
- package/dist/index.js +2 -1
- package/dist/metadata.js +29 -25
- package/dist/props.examples.js +115 -113
- package/dist/schema.js +55 -53
- package/dist/{shadow-dom-4LHwwhYa.js → shadow-dom-DSLDIcsa.js} +1 -1
- package/package.json +1 -1
- package/dist/Cross.ce.vue_vue_type_script_setup_true_lang-CUc-5ZVt.js +0 -53
- package/dist/Feedback.ce-MqHV98f3.js +0 -26
- package/dist/Icon.ce-O_y_jvjK.js +0 -50
- package/dist/components/feedback.ce.js.js +0 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _ as o, a as _, b as a, c as l, d as n, e as i, f as t, g } from "../nl-euPrf5s3.js";
|
|
2
|
-
import { d as m } from "../_plugin-vue_export-helper-
|
|
3
|
-
import { i as e } from "../i18n-lite-
|
|
4
|
-
import { P as c } from "../PixMailMessage.ce-
|
|
2
|
+
import { d as m } from "../_plugin-vue_export-helper-CD1RUA2y.js";
|
|
3
|
+
import { i as e } from "../i18n-lite-WQsHAHqG.js";
|
|
4
|
+
import { P as c } from "../PixMailMessage.ce-CH6CVQ3H.js";
|
|
5
5
|
e.addTranslationsFromGlobResults(/* @__PURE__ */ Object.assign({ "./locales/de-AT.json": g, "./locales/en.json": t, "./locales/es-419.json": i, "./locales/es.json": n, "./locales/fr-BE.json": l, "./locales/fr.json": a, "./locales/it.json": _, "./locales/nl.json": o }));
|
|
6
6
|
const r = m(c, {
|
|
7
7
|
configureApp(s) {
|
|
@@ -1,122 +1,110 @@
|
|
|
1
|
-
import { b as T, h as
|
|
2
|
-
import { u as V, i as
|
|
3
|
-
import { S as D } from "../Stepper.ce-
|
|
4
|
-
import { F as I } from "../
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
const Y = {}, Z = {}, ee = {}, te = {}, ne = {}, ae = {
|
|
1
|
+
import { b as T, h as S, o as c, c as N, a as u, x as r, C as p, D as d, E as g, f as v, v as m, l as M, r as b, g as a, n as k, _ as O, d as $ } from "../_plugin-vue_export-helper-CD1RUA2y.js";
|
|
2
|
+
import { u as V, i as _ } from "../i18n-lite-WQsHAHqG.js";
|
|
3
|
+
import { S as D } from "../Stepper.ce-MmSadTrx.js";
|
|
4
|
+
import { _ as F, a as I, F as K } from "../Cross.ce.vue_vue_type_script_setup_true_lang-CGq82iLD.js";
|
|
5
|
+
import { P as G } from "../Popin.ce-CQtpIOkM.js";
|
|
6
|
+
import { B as H } from "../Button.ce-Ccv3OLk2.js";
|
|
7
|
+
import { P as J } from "../PixMailMessage.ce-CH6CVQ3H.js";
|
|
8
|
+
import { p as Q } from "../shadow-dom-DSLDIcsa.js";
|
|
9
|
+
import { u as w, a as U, b as W } from "../normalize-props-DH0oPBss.js";
|
|
10
|
+
const X = {}, Y = {}, Z = {}, ee = {}, te = {}, oe = {
|
|
12
11
|
"proteger-mail-spam": { step: "Étape {{step}} sur {{totalStep}}", mailRecipent: "À moi", nextStepButton: "Continuer", successPopin: { title: "Se protéger, mais protéger aussi les autres.", content: "Dans le prochain exemple, l’interface dispose d'avantage de possibilités.", buttonLabel: "Suivant" }, feedback: { titleOk: "Bonne décision", titleKo: "Mauvais choix", step1: { reply: "Répondre confirme votre adresse mail et peut encourager l’escroc. Sélectionnez une autre action de l’interface pour vous protéger de cet expéditeur.", forward: "Transférer ce message expose quelqu’un d’autre à l’arnaque, et ne vous empêche pas de recevoir d’autres mails de cet expéditeur. Sélectionnez une autre action de l’interface pour vous protéger de cet expéditeur.", delete: "Supprimer ce message ne vous empêche pas d’en recevoir d’autres de cet expéditeur. Sélectionnez une autre action de l’interface pour vous protéger de cet expéditeur.", blockSender: "En choisissant de bloquer l’expéditeur, vous ne recevrez plus de message de cet expéditeur." }, step2: { reply: "Répondre valide votre adresse mail et ne vous permet ni de vous protéger, ni de protéger les autres de cet escroc. Sélectionnez une autre action de l’interface pour protéger tous les utilisateurs.", forward: "Transférer ce message expose quelqu’un d’autre à l’arnaque. Sélectionnez une autre action de l’interface pour protéger tous les utilisateurs.", delete: "Supprimer ce message ne vous permet ni de vous protéger, ni de protéger les autres de cet escroc. Sélectionnez une autre action de l’interface pour protéger tous les utilisateurs.", blockSender: "En choisissant de bloquer l’expéditeur, vous vous protégez de cet escroc mais vous ne protégez pas les autres. Sélectionnez une autre action de l’interface pour protéger tous les utilisateurs.", reportSpam: " En signalant ce message, vous vous protégez et vous contribuez à la protection des autres, car cela améliore les filtres anti-spam de tous les utilisateurs." } } }
|
|
13
|
-
},
|
|
12
|
+
}, ne = {}, ae = {}, se = {
|
|
14
13
|
class: "main-container",
|
|
15
14
|
ref: "container",
|
|
16
15
|
tabindex: "-1"
|
|
17
|
-
},
|
|
16
|
+
}, ie = ["aria-level"], re = { class: "header__description" }, le = /* @__PURE__ */ T({
|
|
18
17
|
__name: "ProtegerMailSpam.ce",
|
|
19
18
|
props: {
|
|
20
19
|
titleLevel: { default: 2, type: Number },
|
|
21
20
|
steps: { type: Array }
|
|
22
21
|
},
|
|
23
|
-
setup(
|
|
22
|
+
setup(o, { expose: f }) {
|
|
24
23
|
const { t: e } = V();
|
|
25
|
-
|
|
26
|
-
const t =
|
|
24
|
+
Q();
|
|
25
|
+
const t = b(0), n = b(""), l = b(!1), P = S("continue-button"), C = S("container"), s = a(() => o.steps.at(t.value)), i = a(() => s.value.goodAction === n.value), h = a(() => t.value === o.steps.length - 1), j = a(() => n.value ? e(`proteger-mail-spam.feedback.step${t.value + 1}.${n.value}`) : ""), B = a(() => i.value ? e("proteger-mail-spam.feedback.titleOk") : e("proteger-mail-spam.feedback.titleKo")), q = a(() => i.value ? {
|
|
27
26
|
return: "disabled",
|
|
28
27
|
reply: "disabled",
|
|
29
28
|
forward: "disabled",
|
|
30
29
|
menu: "disabled"
|
|
31
|
-
} :
|
|
32
|
-
function
|
|
33
|
-
|
|
30
|
+
} : s.value.actions);
|
|
31
|
+
function A() {
|
|
32
|
+
n.value = "", t.value = 0, l.value = !1;
|
|
34
33
|
}
|
|
35
|
-
async function E(
|
|
36
|
-
|
|
34
|
+
async function E(x) {
|
|
35
|
+
n.value = x, await k(), i.value && !h.value && P.value?.buttonElement.focus();
|
|
37
36
|
}
|
|
38
37
|
async function L() {
|
|
39
|
-
t.value += 1,
|
|
38
|
+
t.value += 1, n.value = "", await k(), C.value.focus();
|
|
40
39
|
}
|
|
41
40
|
async function R() {
|
|
42
|
-
await L(),
|
|
41
|
+
await L(), l.value = !1;
|
|
43
42
|
}
|
|
44
|
-
return
|
|
45
|
-
reset:
|
|
46
|
-
}), (
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
43
|
+
return f({
|
|
44
|
+
reset: A
|
|
45
|
+
}), (x, y) => (c(), N("div", se, [
|
|
46
|
+
u("section", null, [
|
|
47
|
+
u("div", null, [
|
|
48
|
+
u("div", {
|
|
50
49
|
role: "heading",
|
|
51
|
-
"aria-level":
|
|
50
|
+
"aria-level": o.titleLevel,
|
|
52
51
|
class: "header__title"
|
|
53
|
-
},
|
|
54
|
-
|
|
52
|
+
}, r(s.value.title), 9, ie),
|
|
53
|
+
u("p", re, r(s.value.description), 1)
|
|
55
54
|
]),
|
|
56
|
-
|
|
55
|
+
p(D, {
|
|
57
56
|
step: t.value,
|
|
58
|
-
"steps-count":
|
|
57
|
+
"steps-count": o.steps.length
|
|
59
58
|
}, null, 8, ["step", "steps-count"]),
|
|
60
|
-
|
|
61
|
-
actions:
|
|
62
|
-
mail:
|
|
59
|
+
p(J, {
|
|
60
|
+
actions: q.value,
|
|
61
|
+
mail: s.value.mail,
|
|
63
62
|
onAction: E
|
|
64
63
|
}, null, 8, ["actions", "mail"]),
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
class: "feedback__icon",
|
|
81
|
-
"aria-hiden": "true"
|
|
82
|
-
}))
|
|
83
|
-
]),
|
|
84
|
-
content: g(() => [
|
|
85
|
-
o("p", null, u(C.value), 1)
|
|
86
|
-
]),
|
|
87
|
-
_: 1
|
|
88
|
-
}, 8, ["title"])) : y("", !0)
|
|
89
|
-
], 2),
|
|
90
|
-
r.value && !_.value ? (l(), p(J, {
|
|
64
|
+
p(K, {
|
|
65
|
+
"display-feedback": !!n.value
|
|
66
|
+
}, {
|
|
67
|
+
icon: d(() => [
|
|
68
|
+
i.value ? (c(), v(F, { key: 0 })) : (c(), v(I, { key: 1 }))
|
|
69
|
+
]),
|
|
70
|
+
title: d(() => [
|
|
71
|
+
g(r(B.value), 1)
|
|
72
|
+
]),
|
|
73
|
+
content: d(() => [
|
|
74
|
+
g(r(j.value), 1)
|
|
75
|
+
]),
|
|
76
|
+
_: 1
|
|
77
|
+
}, 8, ["display-feedback"]),
|
|
78
|
+
i.value && !h.value ? (c(), v(H, {
|
|
91
79
|
key: 0,
|
|
92
80
|
ref: "continue-button",
|
|
93
|
-
onClick:
|
|
81
|
+
onClick: y[0] || (y[0] = (pe) => l.value = !0),
|
|
94
82
|
class: "next-button"
|
|
95
83
|
}, {
|
|
96
|
-
default:
|
|
97
|
-
|
|
84
|
+
default: d(() => [
|
|
85
|
+
g(r(m(e)("proteger-mail-spam.nextStepButton")), 1)
|
|
98
86
|
]),
|
|
99
87
|
_: 1
|
|
100
|
-
}, 512)) :
|
|
88
|
+
}, 512)) : M("", !0)
|
|
101
89
|
]),
|
|
102
|
-
|
|
103
|
-
content:
|
|
104
|
-
title:
|
|
105
|
-
show:
|
|
106
|
-
"text-button":
|
|
90
|
+
p(G, {
|
|
91
|
+
content: m(e)("proteger-mail-spam.successPopin.content"),
|
|
92
|
+
title: m(e)("proteger-mail-spam.successPopin.title"),
|
|
93
|
+
show: l.value,
|
|
94
|
+
"text-button": m(e)("proteger-mail-spam.successPopin.buttonLabel"),
|
|
107
95
|
onPrimaryAction: R
|
|
108
96
|
}, null, 8, ["content", "title", "show", "text-button"])
|
|
109
97
|
], 512));
|
|
110
98
|
}
|
|
111
|
-
}),
|
|
112
|
-
|
|
113
|
-
const z = $(
|
|
114
|
-
configureApp(
|
|
115
|
-
|
|
99
|
+
}), ce = "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,dialog{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}table{border-collapse:collapse;border-spacing:0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);border:0}*{font-family:Roboto,Nunito,sans-serif}.main-container{position:relative}.main-container section{display:flex;flex-direction:column;align-items:center;color:#122647;padding:.5rem}.main-container section>:not(:first-child){margin-top:1.5rem}.main-container .header{font-style:normal;text-align:center}.main-container .header__title{font-family:Nunito,sans-serif;text-align:center;font-size:1.25rem;font-weight:700;line-height:28px;margin-bottom:.25rem}.main-container .header__description{text-align:center;font-family:Roboto,sans-serif;font-size:.875rem;line-height:20px}.main-container .next-button{font-size:.875rem;font-weight:700;line-height:24px}", ue = /* @__PURE__ */ O(le, [["styles", [ce]]]);
|
|
100
|
+
_.addTranslationsFromGlobResults(/* @__PURE__ */ Object.assign({ "./locales/de-AT.json": X, "./locales/en.json": Y, "./locales/es-419.json": Z, "./locales/es.json": ee, "./locales/fr-BE.json": te, "./locales/fr.json": oe, "./locales/it.json": ne, "./locales/nl.json": ae }));
|
|
101
|
+
const z = $(ue, {
|
|
102
|
+
configureApp(o) {
|
|
103
|
+
_.changeLanguage(document?.documentElement?.lang || navigator.language), o.use(_);
|
|
116
104
|
}
|
|
117
105
|
});
|
|
118
|
-
z.prototype.normalizeProps = (
|
|
119
|
-
const
|
|
106
|
+
z.prototype.normalizeProps = (o) => {
|
|
107
|
+
const f = o.steps.map((e) => {
|
|
120
108
|
const t = {
|
|
121
109
|
...e,
|
|
122
110
|
actions: w({
|
|
@@ -124,11 +112,11 @@ z.prototype.normalizeProps = (n) => {
|
|
|
124
112
|
menuActions: w(e.actions?.menuActions)
|
|
125
113
|
})
|
|
126
114
|
};
|
|
127
|
-
return t.mail.sender.avatarColor =
|
|
115
|
+
return t.mail.sender.avatarColor = U(t.mail.sender.avatarColor), t;
|
|
128
116
|
});
|
|
129
117
|
return {
|
|
130
|
-
titleLevel:
|
|
131
|
-
steps:
|
|
118
|
+
titleLevel: W(o.titleLevel),
|
|
119
|
+
steps: f
|
|
132
120
|
};
|
|
133
121
|
};
|
|
134
122
|
window.customElements.define("proteger-mail-spam", z);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { b as y, o, c as i, a as s, x as c, l as v, t as w, g as b, _,
|
|
2
|
-
import { i as a, a as J, b as K } 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, _, N as R, H as A, S as O, E as V, P, r as x, q as G, h as M, F as $, e as C, f as F, v as Q, C as k, X as U, D as H, y as W, d as X } from "../_plugin-vue_export-helper-CD1RUA2y.js";
|
|
2
|
+
import { i as a, a as J, b as K } from "../i18n-C-1Ne5JG.js";
|
|
3
|
+
import { R as Y } from "../Retry-DLOo5neI.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." } }
|
|
@@ -65,7 +65,7 @@ const ee = {}, te = {}, ae = {}, ne = {}, oe = {}, ie = {
|
|
|
65
65
|
}),
|
|
66
66
|
emits: ["update:modelValue"],
|
|
67
67
|
setup(e, { expose: u }) {
|
|
68
|
-
const n =
|
|
68
|
+
const n = R(e, "modelValue"), l = x(!1), t = b(() => n.value.length === 3 && !l.value || e.readonly);
|
|
69
69
|
function h(f) {
|
|
70
70
|
if (t.value) {
|
|
71
71
|
f.preventDefault();
|
|
@@ -78,7 +78,7 @@ const ee = {}, te = {}, ae = {}, ne = {}, oe = {}, ie = {
|
|
|
78
78
|
}), (f, m) => (o(), i("label", {
|
|
79
79
|
class: w({ selected: l.value, disabled: t.value })
|
|
80
80
|
}, [
|
|
81
|
-
|
|
81
|
+
A(s("input", {
|
|
82
82
|
type: "checkbox",
|
|
83
83
|
name: "options",
|
|
84
84
|
onClick: h,
|
|
@@ -104,7 +104,7 @@ const ee = {}, te = {}, ae = {}, ne = {}, oe = {}, ie = {
|
|
|
104
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]]]),
|
|
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]]]), Se = { class: "container" }, qe = { class: "left-side" }, Ie = ["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
|
+
}, De = /* @__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"), f = a.t("qcm-deepfake.options", { returnObjects: !0 }), m = ["👩🎤", "🎧", "🎶", "👩", "🎙️"], g = f.map((d, r) => `${m[r]} ${d}`),
|
|
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}`), D = g.filter((d, r) => l.includes(r + 1)), T = [
|
|
127
127
|
{
|
|
128
128
|
type: "info",
|
|
129
129
|
image: e.infoImage
|
|
@@ -146,47 +146,47 @@ const ee = {}, te = {}, ae = {}, ne = {}, oe = {}, ie = {
|
|
|
146
146
|
type: "search",
|
|
147
147
|
image: e.searchImage
|
|
148
148
|
}
|
|
149
|
-
],
|
|
149
|
+
], S = b(() => n.value.length !== 3 || t.value === "search"), B = 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
|
-
return
|
|
151
|
+
return S.value ? !1 : t.value === "info" ? L() : q();
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function q() {
|
|
154
154
|
h.value.forEach((d) => {
|
|
155
155
|
d.isChecked = !1;
|
|
156
156
|
}), n.value = [], t.value = "info";
|
|
157
157
|
}
|
|
158
158
|
async function L() {
|
|
159
|
-
const d = n.value.every((r) =>
|
|
159
|
+
const d = n.value.every((r) => D.includes(r.trim()));
|
|
160
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
|
-
reset:
|
|
164
|
-
}), (d, r) => (o(), i("div",
|
|
165
|
-
s("form",
|
|
163
|
+
reset: q
|
|
164
|
+
}), (d, r) => (o(), i("div", Se, [
|
|
165
|
+
s("form", qe, [
|
|
166
166
|
s("div", {
|
|
167
167
|
class: "left-side__subtitle",
|
|
168
168
|
role: "heading",
|
|
169
169
|
"aria-level": e.titleLevel
|
|
170
|
-
}, c(d.$t("qcm-deepfake.in")), 9,
|
|
170
|
+
}, c(d.$t("qcm-deepfake.in")), 9, Ie),
|
|
171
171
|
s("fieldset", null, [
|
|
172
172
|
s("legend", $e, c(d.$t("qcm-deepfake.selectThreeElements")), 1),
|
|
173
|
-
(o(!0), i($, null, C(Q(g), (p,
|
|
173
|
+
(o(!0), i($, null, C(Q(g), (p, I) => (o(), F(_e, {
|
|
174
174
|
ref_for: !0,
|
|
175
175
|
ref_key: "optionsNode",
|
|
176
176
|
ref: h,
|
|
177
177
|
modelValue: n.value,
|
|
178
|
-
"onUpdate:modelValue": r[0] || (r[0] = (
|
|
179
|
-
key:
|
|
178
|
+
"onUpdate:modelValue": r[0] || (r[0] = (E) => n.value = E),
|
|
179
|
+
key: I,
|
|
180
180
|
class: "left-side__options",
|
|
181
181
|
option: p,
|
|
182
|
-
value:
|
|
182
|
+
value: I + 1,
|
|
183
183
|
readonly: t.value !== "info"
|
|
184
184
|
}, null, 8, ["modelValue", "option", "value", "readonly"]))), 128))
|
|
185
185
|
]),
|
|
186
186
|
s("div", Ce, [
|
|
187
187
|
k(we, {
|
|
188
188
|
onClick: W(z, ["prevent"]),
|
|
189
|
-
"aria-disabled":
|
|
189
|
+
"aria-disabled": S.value,
|
|
190
190
|
label: B.value,
|
|
191
191
|
state: t.value === "info" ? "primary" : "warning",
|
|
192
192
|
"aria-describedby": ["success", "search"].includes(t.value) ? void 0 : "optionsSelectedInfo"
|
|
@@ -203,7 +203,7 @@ const ee = {}, te = {}, ae = {}, ne = {}, oe = {}, ie = {
|
|
|
203
203
|
])
|
|
204
204
|
]),
|
|
205
205
|
s("div", Ne, [
|
|
206
|
-
(o(), i($, null, C(
|
|
206
|
+
(o(), i($, null, C(T, (p) => k(ve, {
|
|
207
207
|
key: p.type,
|
|
208
208
|
"title-level": e.titleLevel,
|
|
209
209
|
type: p.type,
|
|
@@ -216,7 +216,7 @@ const ee = {}, te = {}, ae = {}, ne = {}, oe = {}, ie = {
|
|
|
216
216
|
])
|
|
217
217
|
]));
|
|
218
218
|
}
|
|
219
|
-
}),
|
|
219
|
+
}), Te = "legend,label,p,div[role=heading]{font-family:Nunito,Roboto,sans-serif;color:#253858}", Be = ".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__ */ _(De, [["styles", [Te, Be]], ["__scopeId", "data-v-da7e2b08"]]);
|
|
220
220
|
J(/* @__PURE__ */ Object.assign({ "./locales/de-AT.json": ee, "./locales/en.json": te, "./locales/es-419.json": ae, "./locales/es.json": ne, "./locales/fr-BE.json": oe, "./locales/fr.json": ie, "./locales/it.json": re, "./locales/nl.json": se })).catch((e) => console.error(e));
|
|
221
221
|
const N = X(je, {
|
|
222
222
|
configureApp(e) {
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { b as q, o as r, c as
|
|
2
|
-
import { u as D, a as O, i as z, b as P } from "../i18n-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { l as U } from "../index-BgVc_wZ5.js";
|
|
1
|
+
import { b as q, o as r, c as b, t as B, a as l, x as u, l as A, _ as j, h as G, C as p, D as v, E as y, f as k, y as Q, r as h, g as f, d as R } from "../_plugin-vue_export-helper-CD1RUA2y.js";
|
|
2
|
+
import { u as D, a as O, i as z, b as P } from "../i18n-C-1Ne5JG.js";
|
|
3
|
+
import { _ as I, a as M, F as H } from "../Cross.ce.vue_vue_type_script_setup_true_lang-CGq82iLD.js";
|
|
4
|
+
import { S as J } from "../Stepper.ce-MmSadTrx.js";
|
|
5
|
+
import { a as m, b as K } from "../normalize-props-DH0oPBss.js";
|
|
6
|
+
import { l as U } from "../index-C8-9QxHJ.js";
|
|
8
7
|
const W = {}, X = {}, Y = {}, Z = {}, ee = {}, te = {
|
|
9
8
|
"quiz-stepper": { submitButton: "Valider", nextStepButton: "Continuer", feedback: { success: "Bien joué", failed: "Pas tout à fait" } }
|
|
10
|
-
}, ne = {}, se = {}, oe = ["id", "aria-disabled", "checked"],
|
|
9
|
+
}, ne = {}, se = {}, oe = ["id", "aria-disabled", "checked"], ae = ["for"], ie = {
|
|
11
10
|
key: 0,
|
|
12
11
|
class: "answer__subtitle"
|
|
13
12
|
}, le = { class: "answer__content" }, ce = /* @__PURE__ */ q({
|
|
@@ -24,7 +23,7 @@ const W = {}, X = {}, Y = {}, Z = {}, ee = {}, te = {
|
|
|
24
23
|
function t() {
|
|
25
24
|
s("select-answer", e.choice);
|
|
26
25
|
}
|
|
27
|
-
return (n,
|
|
26
|
+
return (n, a) => (r(), b("div", {
|
|
28
27
|
class: B(["answer", { "is-selected": e.isSelected, "is-disabled": e.showFeedback }])
|
|
29
28
|
}, [
|
|
30
29
|
l("input", {
|
|
@@ -37,59 +36,59 @@ const W = {}, X = {}, Y = {}, Z = {}, ee = {}, te = {
|
|
|
37
36
|
class: "sr-only"
|
|
38
37
|
}, null, 40, oe),
|
|
39
38
|
l("label", { for: e.id }, [
|
|
40
|
-
e.choice.title ? (r(),
|
|
39
|
+
e.choice.title ? (r(), b("span", ie, u(e.choice.title), 1)) : A("", !0),
|
|
41
40
|
l("span", le, u(e.choice.content), 1)
|
|
42
|
-
], 8,
|
|
41
|
+
], 8, ae)
|
|
43
42
|
], 2));
|
|
44
43
|
}
|
|
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__ */
|
|
44
|
+
}), re = ".answer{display:flex;flex:1;flex-direction:column;align-items:flex-start;gap:.25em;border-radius:8px;border:1px solid #cdd1d9;background:#fff;color:var(--neutral-900);text-align:left;font-size:.875em}.answer label{cursor:pointer;height:100%;padding:1em}.answer.is-selected{border-radius:8px;border:1px solid #fff;background:var(--neutral-800);color:#fff}.answer__subtitle{font-size:1em;font-weight:700;line-height:24px;display:block}.answer__content{text-wrap-mode:wrap;white-space-collapse:preserve}.answer .is-disabled{cursor:not-allowed}.answer:focus-within{outline:2px solid black}", S = /* @__PURE__ */ j(ce, [["styles", [re]]]), ue = { class: "quiz-stepper-container__layout" }, de = ["aria-level"], pe = { class: "card-wrapper" }, fe = ["aria-disable"], me = /* @__PURE__ */ q({
|
|
46
45
|
__name: "QuizStepper.ce",
|
|
47
46
|
props: {
|
|
48
47
|
steps: { type: Array },
|
|
49
48
|
titleLevel: { default: 2, type: Number }
|
|
50
49
|
},
|
|
51
50
|
setup(e, { expose: c }) {
|
|
52
|
-
const s =
|
|
51
|
+
const s = h(0), t = h(), n = h(!1), a = G("form"), { t: g } = D(), i = f(() => e.steps?.[s.value]), _ = f(() => !n.value), C = f(() => {
|
|
53
52
|
const o = s.value === e.steps.length - 1;
|
|
54
53
|
return o ? o && !n.value : !0;
|
|
55
|
-
}),
|
|
56
|
-
function
|
|
54
|
+
}), F = f(() => _.value ? g("quiz-stepper.submitButton") : g("quiz-stepper.nextStepButton"));
|
|
55
|
+
function w(o) {
|
|
57
56
|
n.value || (t.value = o);
|
|
58
57
|
}
|
|
59
|
-
function
|
|
58
|
+
function N() {
|
|
60
59
|
if (s.value + 1 > e.steps.length) {
|
|
61
60
|
s.value = e.steps.length;
|
|
62
61
|
return;
|
|
63
62
|
}
|
|
64
|
-
s.value++, n.value = !1, t.value = void 0,
|
|
65
|
-
}
|
|
66
|
-
function N() {
|
|
67
|
-
t.value && (n.value = !0, s.value + 1 === e.steps.length && i.value?.focus());
|
|
63
|
+
s.value++, n.value = !1, t.value = void 0, a.value?.focus();
|
|
68
64
|
}
|
|
69
65
|
function T() {
|
|
70
|
-
|
|
71
|
-
|
|
66
|
+
t.value && (n.value = !0, s.value + 1 === e.steps.length && a.value?.focus());
|
|
67
|
+
}
|
|
68
|
+
function E() {
|
|
69
|
+
if (_.value) {
|
|
70
|
+
T();
|
|
72
71
|
return;
|
|
73
72
|
}
|
|
74
|
-
|
|
73
|
+
N();
|
|
75
74
|
}
|
|
76
|
-
function
|
|
75
|
+
function x(o) {
|
|
77
76
|
return o.content ? o.content === t.value?.content : o.title === t.value?.title;
|
|
78
77
|
}
|
|
79
|
-
function
|
|
78
|
+
function L() {
|
|
80
79
|
s.value = 0, t.value = void 0, n.value = !1;
|
|
81
80
|
}
|
|
82
81
|
return c({
|
|
83
|
-
reset:
|
|
84
|
-
}), (o, d) => (r(),
|
|
82
|
+
reset: L
|
|
83
|
+
}), (o, d) => (r(), b("form", {
|
|
85
84
|
class: "quiz-stepper-container",
|
|
86
|
-
onSubmit: Q(
|
|
85
|
+
onSubmit: Q(E, ["prevent"]),
|
|
87
86
|
ref_key: "form",
|
|
88
|
-
ref:
|
|
87
|
+
ref: a,
|
|
89
88
|
tabindex: "-1"
|
|
90
89
|
}, [
|
|
91
90
|
l("div", ue, [
|
|
92
|
-
|
|
91
|
+
p(J, {
|
|
93
92
|
step: s.value,
|
|
94
93
|
"steps-count": e.steps.length
|
|
95
94
|
}, null, 8, ["step", "steps-count"]),
|
|
@@ -99,80 +98,74 @@ const W = {}, X = {}, Y = {}, Z = {}, ee = {}, te = {
|
|
|
99
98
|
role: "heading",
|
|
100
99
|
"aria-level": e.titleLevel,
|
|
101
100
|
class: "question"
|
|
102
|
-
}, u(
|
|
101
|
+
}, u(i.value.question), 9, de)
|
|
103
102
|
]),
|
|
104
103
|
l("div", pe, [
|
|
105
|
-
|
|
104
|
+
p(S, {
|
|
106
105
|
id: "choice1",
|
|
107
|
-
choice:
|
|
106
|
+
choice: i.value.choice1,
|
|
108
107
|
"show-feedback": n.value,
|
|
109
|
-
"is-selected":
|
|
110
|
-
onSelectAnswer: d[0] || (d[0] = (
|
|
108
|
+
"is-selected": x(i.value.choice1),
|
|
109
|
+
onSelectAnswer: d[0] || (d[0] = (V) => w(i.value.choice1))
|
|
111
110
|
}, null, 8, ["choice", "show-feedback", "is-selected"]),
|
|
112
|
-
|
|
111
|
+
p(S, {
|
|
113
112
|
id: "choice2",
|
|
114
|
-
choice:
|
|
113
|
+
choice: i.value.choice2,
|
|
115
114
|
"show-feedback": n.value,
|
|
116
|
-
"is-selected":
|
|
117
|
-
onSelectAnswer: d[1] || (d[1] = (
|
|
115
|
+
"is-selected": x(i.value.choice2),
|
|
116
|
+
onSelectAnswer: d[1] || (d[1] = (V) => w(i.value.choice2))
|
|
118
117
|
}, null, 8, ["choice", "show-feedback", "is-selected"])
|
|
119
118
|
])
|
|
120
119
|
]),
|
|
121
|
-
n.value
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
}, {
|
|
125
|
-
icon: k(() => [
|
|
126
|
-
t.value?.isGoodAnswer ? (r(), h(M, {
|
|
127
|
-
key: 0,
|
|
128
|
-
class: "icon-size"
|
|
129
|
-
})) : (r(), h(H, {
|
|
130
|
-
key: 1,
|
|
131
|
-
class: "icon-size"
|
|
132
|
-
}))
|
|
120
|
+
p(H, { "display-feedback": n.value }, {
|
|
121
|
+
icon: v(() => [
|
|
122
|
+
t.value?.isGoodAnswer ? (r(), k(I, { key: 0 })) : (r(), k(M, { key: 1 }))
|
|
133
123
|
]),
|
|
134
|
-
|
|
135
|
-
|
|
124
|
+
title: v(() => [
|
|
125
|
+
y(u(t.value?.isGoodAnswer ? o.$t("quiz-stepper.feedback.success") : o.$t("quiz-stepper.feedback.failed")), 1)
|
|
126
|
+
]),
|
|
127
|
+
content: v(() => [
|
|
128
|
+
y(u(t.value?.isGoodAnswer ? i.value.feedback.success : i.value.feedback.failed), 1)
|
|
136
129
|
]),
|
|
137
130
|
_: 1
|
|
138
|
-
}, 8, ["
|
|
139
|
-
|
|
140
|
-
key:
|
|
131
|
+
}, 8, ["display-feedback"]),
|
|
132
|
+
C.value ? (r(), b("button", {
|
|
133
|
+
key: 0,
|
|
141
134
|
type: "submit",
|
|
142
135
|
class: B(["submit-button", { "is-disabled": !t.value }]),
|
|
143
136
|
"aria-disable": !t.value
|
|
144
|
-
}, u(
|
|
137
|
+
}, u(F.value), 11, fe)) : A("", !0)
|
|
145
138
|
])
|
|
146
139
|
], 544));
|
|
147
140
|
}
|
|
148
|
-
}), be = "*{--neutral-800: #253858;--neutral-900: #122647;font-family:Roboto,sans-serif}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);border:0}.
|
|
141
|
+
}), be = "*{--neutral-800: #253858;--neutral-900: #122647;font-family:Roboto,sans-serif}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);border:0}.quiz-stepper-container{display:flex;flex-direction:column;align-items:center;color:var(--neutral-800)}.quiz-stepper-container button{cursor:pointer}.quiz-stepper-container fieldset{border:none}.quiz-stepper-container legend{margin-bottom:1.5em}.quiz-stepper-container__layout{width:80%;display:flex;flex-direction:column;gap:1.5em;align-items:center;padding:1.5em 1em}.quiz-stepper-container .question{color:var(--neutral-900);text-align:center;font-family:Nunito;font-size:1.25em;font-style:normal;font-weight:700;line-height:28px}.quiz-stepper-container .card-wrapper{display:flex;padding:1.5em;justify-content:center;gap:1.5em;border-radius:16px;background:#f4f5f7;width:calc(100% - 3em)}.quiz-stepper-container .submit-button{display:flex;padding:.5em 1.5em;justify-content:center;align-items:center;gap:.5em;border-radius:8px;background:#253858;border:none;color:#fff;font-weight:700}.quiz-stepper-container .submit-button.is-disabled{background:#cdd1d9;cursor:not-allowed}@media screen and (max-width:630px){.quiz-stepper-container__layout{width:calc(100% - 1em);padding:1em .5em}.quiz-stepper-container .card-wrapper{padding:1em;flex-direction:column;width:calc(100% - 2em)}}", ve = /* @__PURE__ */ j(me, [["styles", [be]]]);
|
|
149
142
|
O(/* @__PURE__ */ Object.assign({ "./locales/de-AT.json": W, "./locales/en.json": X, "./locales/es-419.json": Y, "./locales/es.json": Z, "./locales/fr-BE.json": ee, "./locales/fr.json": te, "./locales/it.json": ne, "./locales/nl.json": se })).catch((e) => console.error(e));
|
|
150
143
|
U();
|
|
151
|
-
const
|
|
144
|
+
const $ = R(ve, {
|
|
152
145
|
configureApp(e) {
|
|
153
146
|
z.changeLanguage(document?.documentElement?.lang || navigator.language), e.use(P, { i18next: z });
|
|
154
147
|
}
|
|
155
148
|
});
|
|
156
|
-
|
|
149
|
+
$.prototype.normalizeProps = (e) => {
|
|
157
150
|
let { steps: c, titleLevel: s } = e;
|
|
158
151
|
return c = c.map((t) => {
|
|
159
|
-
let { choice1: n, choice2:
|
|
152
|
+
let { choice1: n, choice2: a } = t;
|
|
160
153
|
return n = {
|
|
161
154
|
...t.choice1,
|
|
162
|
-
title:
|
|
163
|
-
content:
|
|
164
|
-
},
|
|
155
|
+
title: m(n.title),
|
|
156
|
+
content: m(n.content)
|
|
157
|
+
}, a = {
|
|
165
158
|
...t.choice2,
|
|
166
|
-
title:
|
|
167
|
-
content:
|
|
159
|
+
title: m(a.title),
|
|
160
|
+
content: m(a.content)
|
|
168
161
|
}, {
|
|
169
162
|
...t,
|
|
170
163
|
choice1: n,
|
|
171
|
-
choice2:
|
|
164
|
+
choice2: a
|
|
172
165
|
};
|
|
173
166
|
}), {
|
|
174
167
|
steps: c,
|
|
175
168
|
titleLevel: K(s)
|
|
176
169
|
};
|
|
177
170
|
};
|
|
178
|
-
window.customElements.define("quiz-stepper",
|
|
171
|
+
window.customElements.define("quiz-stepper", $);
|