@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.
Files changed (62) hide show
  1. package/dist/{Button.ce-DNrjLa1r.js → Button.ce-Ccv3OLk2.js} +1 -1
  2. package/dist/{ButtonTooltip.ce-DQ8QAvUM.js → ButtonTooltip.ce-Bo42SFAP.js} +1 -1
  3. package/dist/Cross.ce.vue_vue_type_script_setup_true_lang-CGq82iLD.js +83 -0
  4. package/dist/{FocusManager.ce-CwF5pnqR.js → FocusManager.ce-BG_n76ZF.js} +2 -2
  5. package/dist/Icon.ce-Be0LymfA.js +50 -0
  6. package/dist/{LLMMessage.ce-Duki08xd.js → LLMMessage.ce-y0WmEj7m.js} +24 -22
  7. package/dist/{Loading.ce-D7CUjrcI.js → Loading.ce-CG-e7tdE.js} +1 -1
  8. package/dist/Modal.ce-DCTwYJKJ.js +86 -0
  9. package/dist/{NavigationButton.ce-17UL0Mwu.js → NavigationButton.ce-B-c0m9H8.js} +14 -12
  10. package/dist/{PixMailMessage.ce-CNULZecQ.js → PixMailMessage.ce-CH6CVQ3H.js} +20 -20
  11. package/dist/{Popin.ce-VvQiVxjk.js → Popin.ce-CQtpIOkM.js} +3 -3
  12. package/dist/{Retry-CGkQcck5.js → Retry-DLOo5neI.js} +1 -1
  13. package/dist/{Stepper.ce-gx2YaVCo.js → Stepper.ce-MmSadTrx.js} +1 -1
  14. package/dist/{_plugin-vue_export-helper-DROOAHrz.js → _plugin-vue_export-helper-CD1RUA2y.js} +12 -12
  15. package/dist/components/analyse-mails-phishing.ce.js.js +104 -105
  16. package/dist/components/autocompletion-mdp.ce.js.js +256 -0
  17. package/dist/components/button.ce.js.js +2 -2
  18. package/dist/components/calcul-impact.ce.js.js +13 -13
  19. package/dist/components/capacity-calculation.ce.js.js +38 -35
  20. package/dist/components/clickable-image.ce.js.js +10 -10
  21. package/dist/components/complete-phrase.ce.js.js +12 -12
  22. package/dist/components/flip-cards.ce.js.js +10 -10
  23. package/dist/components/generate-mdp.ce.js.js +82 -151
  24. package/dist/components/image-quiz.ce.js.js +3 -3
  25. package/dist/components/image-quizzes.ce.js.js +3 -3
  26. package/dist/components/llm-compare-messages.ce.js.js +3 -3
  27. package/dist/components/llm-messages.ce.js.js +3 -3
  28. package/dist/components/llm-prompt-select.ce.js.js +7 -7
  29. package/dist/components/mdp-classement.ce.js.js +100 -108
  30. package/dist/components/message-conversation.ce.js.js +19 -19
  31. package/dist/components/mobile-shell.ce.js.js +1 -1
  32. package/dist/components/notification-antivirus.ce.js.js +139 -149
  33. package/dist/components/phishing-message.ce.js.js +23 -23
  34. package/dist/components/phishing-notification.ce.js.js +18 -18
  35. package/dist/components/pix-anonymisation.ce.js.js +9 -9
  36. package/dist/components/pix-article.ce.js.js +2 -2
  37. package/dist/components/pix-carousel.ce.js.js +10 -8
  38. package/dist/components/pix-combinaisons.ce.js.js +13 -13
  39. package/dist/components/pix-cursor.ce.js.js +13 -13
  40. package/dist/components/pix-mail-message.ce.js.js +3 -3
  41. package/dist/components/proteger-mail-spam.ce.js.js +70 -82
  42. package/dist/components/qcm-deepfake.ce.js.js +23 -23
  43. package/dist/components/quiz-stepper.ce.js.js +61 -68
  44. package/dist/components/select-conversation.ce.js.js +4 -4
  45. package/dist/components/template-mail.ce.js.js +3 -3
  46. package/dist/components/test-top-mdp.ce.js.js +4 -4
  47. package/dist/components/trouver-mdp-rs.ce.js.js +52 -66
  48. package/dist/components/usages-donnees.ce.js.js +7 -7
  49. package/dist/{i18n-BVfGnSnP.js → i18n-C-1Ne5JG.js} +1 -1
  50. package/dist/{i18n-lite-V7Z5qwB2.js → i18n-lite-WQsHAHqG.js} +1 -1
  51. package/dist/{image-quiz.ce-DLpB-rde.js → image-quiz.ce-DGVVVaQN.js} +8 -8
  52. package/dist/{index-BgVc_wZ5.js → index-C8-9QxHJ.js} +1 -1
  53. package/dist/index.js +2 -1
  54. package/dist/metadata.js +29 -25
  55. package/dist/props.examples.js +115 -113
  56. package/dist/schema.js +55 -53
  57. package/dist/{shadow-dom-4LHwwhYa.js → shadow-dom-DSLDIcsa.js} +1 -1
  58. package/package.json +1 -1
  59. package/dist/Cross.ce.vue_vue_type_script_setup_true_lang-CUc-5ZVt.js +0 -53
  60. package/dist/Feedback.ce-MqHV98f3.js +0 -26
  61. package/dist/Icon.ce-O_y_jvjK.js +0 -50
  62. 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-DROOAHrz.js";
3
- import { i as e } from "../i18n-lite-V7Z5qwB2.js";
4
- import { P as c } from "../PixMailMessage.ce-CNULZecQ.js";
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 k, o as l, c as N, a as o, x as u, D as f, t as M, f as p, E as g, l as y, A as F, v as d, r as v, g as s, n as S, _ as O, d as $ } from "../_plugin-vue_export-helper-DROOAHrz.js";
2
- import { u as V, i as b } from "../i18n-lite-V7Z5qwB2.js";
3
- import { S as D } from "../Stepper.ce-gx2YaVCo.js";
4
- import { F as I } from "../Feedback.ce-MqHV98f3.js";
5
- import { _ as K, a as G } from "../Cross.ce.vue_vue_type_script_setup_true_lang-CUc-5ZVt.js";
6
- import { P as H } from "../Popin.ce-VvQiVxjk.js";
7
- import { B as J } from "../Button.ce-DNrjLa1r.js";
8
- import { P as Q } from "../PixMailMessage.ce-CNULZecQ.js";
9
- import { p as U } from "../shadow-dom-4LHwwhYa.js";
10
- import { u as w, a as W, b as X } from "../normalize-props-DH0oPBss.js";
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
- }, oe = {}, se = {}, ie = {
12
+ }, ne = {}, ae = {}, se = {
14
13
  class: "main-container",
15
14
  ref: "container",
16
15
  tabindex: "-1"
17
- }, re = ["aria-level"], le = { class: "header__description" }, ce = /* @__PURE__ */ T({
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(n, { expose: m }) {
22
+ setup(o, { expose: f }) {
24
23
  const { t: e } = V();
25
- U();
26
- const t = v(0), a = v(""), c = v(!1), P = k("continue-button"), B = k("container"), i = s(() => n.steps.at(t.value)), r = s(() => i.value.goodAction === a.value), _ = s(() => t.value === n.steps.length - 1), C = s(() => a.value ? e(`proteger-mail-spam.feedback.step${t.value + 1}.${a.value}`) : ""), j = s(() => r.value ? e("proteger-mail-spam.feedback.titleOk") : e("proteger-mail-spam.feedback.titleKo")), A = s(() => r.value ? {
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
- } : i.value.actions);
32
- function q() {
33
- a.value = "", t.value = 0, c.value = !1;
30
+ } : s.value.actions);
31
+ function A() {
32
+ n.value = "", t.value = 0, l.value = !1;
34
33
  }
35
- async function E(h) {
36
- a.value = h, await S(), r.value && !_.value && P.value?.buttonElement.focus();
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, a.value = "", await S(), B.value.focus();
38
+ t.value += 1, n.value = "", await k(), C.value.focus();
40
39
  }
41
40
  async function R() {
42
- await L(), c.value = !1;
41
+ await L(), l.value = !1;
43
42
  }
44
- return m({
45
- reset: q
46
- }), (h, x) => (l(), N("div", ie, [
47
- o("section", null, [
48
- o("div", null, [
49
- o("div", {
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": n.titleLevel,
50
+ "aria-level": o.titleLevel,
52
51
  class: "header__title"
53
- }, u(i.value.title), 9, re),
54
- o("p", le, u(i.value.description), 1)
52
+ }, r(s.value.title), 9, ie),
53
+ u("p", re, r(s.value.description), 1)
55
54
  ]),
56
- f(D, {
55
+ p(D, {
57
56
  step: t.value,
58
- "steps-count": n.steps.length
57
+ "steps-count": o.steps.length
59
58
  }, null, 8, ["step", "steps-count"]),
60
- f(Q, {
61
- actions: A.value,
62
- mail: i.value.mail,
59
+ p(J, {
60
+ actions: q.value,
61
+ mail: s.value.mail,
63
62
  onAction: E
64
63
  }, null, 8, ["actions", "mail"]),
65
- o("div", {
66
- class: M(["feedback", { "is-hidden": !a.value }]),
67
- "aria-live": "polite"
68
- }, [
69
- a.value ? (l(), p(I, {
70
- key: 0,
71
- title: j.value
72
- }, {
73
- icon: g(() => [
74
- r.value ? (l(), p(K, {
75
- key: 0,
76
- class: "feedback__icon",
77
- "aria-hiden": "true"
78
- })) : (l(), p(G, {
79
- key: 1,
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: x[0] || (x[0] = (de) => c.value = !0),
81
+ onClick: y[0] || (y[0] = (pe) => l.value = !0),
94
82
  class: "next-button"
95
83
  }, {
96
- default: g(() => [
97
- F(u(d(e)("proteger-mail-spam.nextStepButton")), 1)
84
+ default: d(() => [
85
+ g(r(m(e)("proteger-mail-spam.nextStepButton")), 1)
98
86
  ]),
99
87
  _: 1
100
- }, 512)) : y("", !0)
88
+ }, 512)) : M("", !0)
101
89
  ]),
102
- f(H, {
103
- content: d(e)("proteger-mail-spam.successPopin.content"),
104
- title: d(e)("proteger-mail-spam.successPopin.title"),
105
- show: c.value,
106
- "text-button": d(e)("proteger-mail-spam.successPopin.buttonLabel"),
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
- }), ue = "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 .feedback{width:100%}.main-container .feedback.is-hidden{margin-top:unset}.main-container .feedback__icon{width:1rem}.main-container .next-button{font-size:.875rem;font-weight:700;line-height:24px}", pe = /* @__PURE__ */ O(ce, [["styles", [ue]]]);
112
- b.addTranslationsFromGlobResults(/* @__PURE__ */ Object.assign({ "./locales/de-AT.json": Y, "./locales/en.json": Z, "./locales/es-419.json": ee, "./locales/es.json": te, "./locales/fr-BE.json": ne, "./locales/fr.json": ae, "./locales/it.json": oe, "./locales/nl.json": se }));
113
- const z = $(pe, {
114
- configureApp(n) {
115
- b.changeLanguage(document?.documentElement?.lang || navigator.language), n.use(b);
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 = (n) => {
119
- const m = n.steps.map((e) => {
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 = W(t.mail.sender.avatarColor), t;
115
+ return t.mail.sender.avatarColor = U(t.mail.sender.avatarColor), t;
128
116
  });
129
117
  return {
130
- titleLevel: X(n.titleLevel),
131
- steps: m
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, _, R as A, H as E, P as O, A as V, T 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, X as U, E as H, y as W, d as X } from "../_plugin-vue_export-helper-DROOAHrz.js";
2
- import { i as a, a as J, b as K } from "../i18n-BVfGnSnP.js";
3
- import { R as Y } from "../Retry-CGkQcck5.js";
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 = A(e, "modelValue"), l = x(!1), t = b(() => n.value.length === 3 && !l.value || e.readonly);
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
- E(s("input", {
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]]]), qe = { class: "container" }, Ie = { class: "left-side" }, Se = ["aria-level"], $e = { class: "sr-only" }, Ce = { class: "left-side__action" }, Ve = {
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
- }, Te = /* @__PURE__ */ y({
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}`), T = g.filter((d, r) => l.includes(r + 1)), 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
- ], q = 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") : "");
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 q.value ? !1 : t.value === "info" ? L() : I();
151
+ return S.value ? !1 : t.value === "info" ? L() : q();
152
152
  }
153
- function I() {
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) => T.includes(r.trim()));
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: I
164
- }), (d, r) => (o(), i("div", qe, [
165
- s("form", Ie, [
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, Se),
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, S) => (o(), F(_e, {
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] = (R) => n.value = R),
179
- key: S,
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: S + 1,
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": q.value,
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(D, (p) => k(ve, {
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
- }), De = "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__ */ _(Te, [["styles", [De, Be]], ["__scopeId", "data-v-da7e2b08"]]);
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 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, A as G, y as Q, r as v, g as p, d as R } from "../_plugin-vue_export-helper-DROOAHrz.js";
2
- import { u as D, a as O, i as z, b as P } from "../i18n-BVfGnSnP.js";
3
- import { F as I } from "../Feedback.ce-MqHV98f3.js";
4
- import { _ as M, a as H } from "../Cross.ce.vue_vue_type_script_setup_true_lang-CUc-5ZVt.js";
5
- import { S as J } from "../Stepper.ce-gx2YaVCo.js";
6
- import { a as f, b as K } from "../normalize-props-DH0oPBss.js";
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"], ie = ["for"], ae = {
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, i) => (r(), m("div", {
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(), m("span", ae, u(e.choice.title), 1)) : g("", !0),
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, ie)
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__ */ A(ce, [["styles", [re]]]), ue = { class: "quiz-stepper-container__layout" }, de = ["aria-level"], pe = { class: "card-wrapper" }, fe = ["aria-disable"], me = /* @__PURE__ */ q({
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 = v(0), t = v(), n = v(!1), i = V("form"), { t: _ } = D(), a = p(() => e.steps?.[s.value]), w = p(() => !n.value), $ = p(() => {
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
- }), C = p(() => w.value ? _("quiz-stepper.submitButton") : _("quiz-stepper.nextStepButton"));
56
- function x(o) {
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 F() {
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, i.value?.focus();
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
- if (w.value) {
71
- N();
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
- F();
73
+ N();
75
74
  }
76
- function y(o) {
75
+ function x(o) {
77
76
  return o.content ? o.content === t.value?.content : o.title === t.value?.title;
78
77
  }
79
- function E() {
78
+ function L() {
80
79
  s.value = 0, t.value = void 0, n.value = !1;
81
80
  }
82
81
  return c({
83
- reset: E
84
- }), (o, d) => (r(), m("form", {
82
+ reset: L
83
+ }), (o, d) => (r(), b("form", {
85
84
  class: "quiz-stepper-container",
86
- onSubmit: Q(T, ["prevent"]),
85
+ onSubmit: Q(E, ["prevent"]),
87
86
  ref_key: "form",
88
- ref: i,
87
+ ref: a,
89
88
  tabindex: "-1"
90
89
  }, [
91
90
  l("div", ue, [
92
- b(J, {
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(a.value.question), 9, de)
101
+ }, u(i.value.question), 9, de)
103
102
  ]),
104
103
  l("div", pe, [
105
- b(S, {
104
+ p(S, {
106
105
  id: "choice1",
107
- choice: a.value.choice1,
106
+ choice: i.value.choice1,
108
107
  "show-feedback": n.value,
109
- "is-selected": y(a.value.choice1),
110
- onSelectAnswer: d[0] || (d[0] = (L) => x(a.value.choice1))
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
- b(S, {
111
+ p(S, {
113
112
  id: "choice2",
114
- choice: a.value.choice2,
113
+ choice: i.value.choice2,
115
114
  "show-feedback": n.value,
116
- "is-selected": y(a.value.choice2),
117
- onSelectAnswer: d[1] || (d[1] = (L) => x(a.value.choice2))
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 ? (r(), h(I, {
122
- key: 0,
123
- title: t.value?.isGoodAnswer ? o.$t("quiz-stepper.feedback.success") : o.$t("quiz-stepper.feedback.failed")
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
- content: k(() => [
135
- G(u(t.value?.isGoodAnswer ? a.value.feedback.success : a.value.feedback.failed), 1)
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, ["title"])) : g("", !0),
139
- $.value ? (r(), m("button", {
140
- key: 1,
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(C.value), 11, fe)) : g("", !0)
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}.icon-size{width:16px;height:16px}.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)}}", he = /* @__PURE__ */ A(me, [["styles", [be]]]);
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 j = R(he, {
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
- j.prototype.normalizeProps = (e) => {
149
+ $.prototype.normalizeProps = (e) => {
157
150
  let { steps: c, titleLevel: s } = e;
158
151
  return c = c.map((t) => {
159
- let { choice1: n, choice2: i } = t;
152
+ let { choice1: n, choice2: a } = t;
160
153
  return n = {
161
154
  ...t.choice1,
162
- title: f(n.title),
163
- content: f(n.content)
164
- }, i = {
155
+ title: m(n.title),
156
+ content: m(n.content)
157
+ }, a = {
165
158
  ...t.choice2,
166
- title: f(i.title),
167
- content: f(i.content)
159
+ title: m(a.title),
160
+ content: m(a.content)
168
161
  }, {
169
162
  ...t,
170
163
  choice1: n,
171
- choice2: i
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", j);
171
+ window.customElements.define("quiz-stepper", $);