@1024pix/epreuves-components 4.0.1 → 4.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/dist/{Button.ce-CTKrSDrC.js → Button.ce-DZ8jDtW5.js} +2 -2
  2. package/dist/{ButtonTooltip.ce-CtHo2Dwx.js → ButtonTooltip.ce-BnJlaEqx.js} +8 -8
  3. package/dist/{Cross.ce.vue_vue_type_script_setup_true_lang-CVBFTfq5.js → Cross.ce.vue_vue_type_script_setup_true_lang-l4hAa4eW.js} +16 -14
  4. package/dist/FocusManager.ce-DHXwg6WZ.js +131 -0
  5. package/dist/{LLMMessage.ce-Bdmf0R1g.js → LLMMessage.ce-jLEqjxsl.js} +11 -11
  6. package/dist/{Loading.ce-Bh7-h48F.js → Loading.ce-DDtlSLlu.js} +2 -2
  7. package/dist/{NavigationButton.ce-CA1M8sgV.js → NavigationButton.ce-BnnVUwGr.js} +2 -2
  8. package/dist/PixMailMessage.ce-oCccQFGV.js +261 -0
  9. package/dist/Popin.ce-Co12R3C8.js +75 -0
  10. package/dist/{Retry-BZf7NJz9.js → Retry-C7C78Wpj.js} +2 -2
  11. package/dist/{Stepper.ce-B1yDelzC.js → Stepper.ce-Dttf3Dsf.js} +4 -4
  12. package/dist/{_plugin-vue_export-helper-D0N_62VD.js → _plugin-vue_export-helper-B-lVMTio.js} +1777 -1713
  13. package/dist/components/analyse-mails-phishing.ce.js.js +14 -14
  14. package/dist/components/calcul-impact.ce.js.js +20 -20
  15. package/dist/components/capacity-calculation.ce.js.js +22 -22
  16. package/dist/components/clickable-image.ce.js.js +30 -30
  17. package/dist/components/complete-phrase.ce.js.js +18 -18
  18. package/dist/components/flip-cards.ce.js.js +10 -10
  19. package/dist/components/image-quiz.ce.js.js +3 -3
  20. package/dist/components/image-quizzes.ce.js.js +3 -3
  21. package/dist/components/llm-compare-messages.ce.js.js +7 -7
  22. package/dist/components/llm-messages.ce.js.js +7 -7
  23. package/dist/components/llm-prompt-select.ce.js.js +5 -5
  24. package/dist/components/mdp-classement.ce.js.js +29 -29
  25. package/dist/components/message-conversation.ce.js.js +34 -34
  26. package/dist/components/mobile-shell.ce.js.js +8 -8
  27. package/dist/components/phishing-message.ce.js.js +128 -128
  28. package/dist/components/phishing-notification.ce.js.js +30 -30
  29. package/dist/components/pix-anonymisation.ce.js.js +27 -27
  30. package/dist/components/pix-article.ce.js.js +5 -5
  31. package/dist/components/pix-carousel.ce.js.js +38 -38
  32. package/dist/components/pix-combinaisons.ce.js.js +93 -92
  33. package/dist/components/pix-cursor.ce.js.js +26 -26
  34. package/dist/components/pix-mail-message.ce.js.js +3 -3
  35. package/dist/components/proteger-mail-spam.ce.js.js +66 -64
  36. package/dist/components/qcm-deepfake.ce.js.js +16 -16
  37. package/dist/components/quiz-stepper.ce.js.js +21 -21
  38. package/dist/components/select-conversation.ce.js.js +11 -11
  39. package/dist/components/template-mail.ce.js.js +4 -4
  40. package/dist/components/test-top-mdp.ce.js.js +86 -79
  41. package/dist/components/trouver-mdp-rs.ce.js.js +334 -418
  42. package/dist/{i18n-ekiZvzf6.js → i18n-CsT7k7zW.js} +329 -316
  43. package/dist/{i18n-lite-t2jNOu0C.js → i18n-lite-BIJ2LVs6.js} +19 -12
  44. package/dist/{image-quiz.ce-DqalWHKw.js → image-quiz.ce-BK6-8YF1.js} +9 -9
  45. package/dist/{index-BpqxFmwz.js → index-BaI3Qosp.js} +1 -1
  46. package/dist/index.js +1 -1
  47. package/dist/props.examples.js +13 -13
  48. package/dist/schema.js +77 -67
  49. package/dist/shadow-dom-Bouq869n.js +14 -0
  50. package/dist/{temporal.utils-7Uvm62ss.js → temporal.utils-DgmGPVba.js} +537 -536
  51. package/package.json +1 -1
  52. package/dist/PixMailMessage.ce-XPDbJiyC.js +0 -219
  53. package/dist/Popin.ce-DUQ7-GMT.js +0 -197
  54. package/dist/shadow-dom-C3AZuSZe.js +0 -9
@@ -1,6 +1,6 @@
1
- import { b as O, r as k, h as y, g, G as V, c as a, o as i, a as r, A as S, k as d, t as u, F as f, e as b, Q as H, E as m, n as C, K as L, B as F, l as P, _ as D, d as G } from "../_plugin-vue_export-helper-D0N_62VD.js";
2
- import { a as K, i as w, b as Q } from "../i18n-ekiZvzf6.js";
3
- import { N as j } from "../NavigationButton.ce-CA1M8sgV.js";
1
+ import { b as B, r as y, s as k, K as E, o as a, c as i, a as r, v as d, x as u, F as f, e as b, H, Q as S, C as g, t as C, D as L, l as D, y as F, g as m, _ as P, d as G } from "../_plugin-vue_export-helper-B-lVMTio.js";
2
+ import { a as K, i as w, b as Q } from "../i18n-CsT7k7zW.js";
3
+ import { N as j } from "../NavigationButton.ce-BnnVUwGr.js";
4
4
  const R = {}, U = {}, q = {}, J = {}, W = {}, X = {
5
5
  "pix-cursor": { confirm: "Valider", next: "Suivant", previous: "Précédent", selectAnOption: "Sélectionnez une option", youHaveChosen: "Vous avez choisi : { choice }" }
6
6
  }, Y = {}, Z = {}, ee = ["for"], oe = {
@@ -12,13 +12,13 @@ const R = {}, U = {}, q = {}, J = {}, W = {}, X = {
12
12
  }, ue = {
13
13
  key: 0,
14
14
  class: "confirm"
15
- }, pe = ["innerHTML", "aria-hidden"], ve = /* @__PURE__ */ O({
15
+ }, pe = ["innerHTML", "aria-hidden"], ve = /* @__PURE__ */ B({
16
16
  __name: "PixCursor.ce",
17
17
  props: {
18
18
  options: { type: Array }
19
19
  },
20
20
  setup(n, { expose: M }) {
21
- const p = n, s = k(Math.floor(p.options.length / 2)), o = k(!1), v = y(), _ = y(), I = g(() => s.value === p.options.length - 1), N = g(() => s.value === 0), c = g(() => Number(s.value));
21
+ const p = n, s = y(Math.floor(p.options.length / 2)), o = y(!1), v = k(), _ = k(), I = m(() => s.value === p.options.length - 1), N = m(() => s.value === 0), c = m(() => Number(s.value));
22
22
  function T() {
23
23
  o.value = !0;
24
24
  }
@@ -28,19 +28,19 @@ const R = {}, U = {}, q = {}, J = {}, W = {}, X = {
28
28
  function z() {
29
29
  o.value || (s.value = Math.min(p.options.length - 1, c.value + 1));
30
30
  }
31
- function h(l) {
31
+ function x(l) {
32
32
  o.value || (s.value = l);
33
33
  }
34
- function A() {
34
+ function O() {
35
35
  o.value = !1, s.value = Math.floor(p.options.length / 2);
36
36
  }
37
37
  return M({
38
- reset: A
39
- }), (l, x) => {
40
- const B = V("i18next");
41
- return i(), a("form", {
38
+ reset: O
39
+ }), (l, h) => {
40
+ const V = E("i18next");
41
+ return a(), i("form", {
42
42
  class: "pix-cursor",
43
- onSubmit: P(T, ["prevent"])
43
+ onSubmit: F(T, ["prevent"])
44
44
  }, [
45
45
  r("div", null, [
46
46
  r("label", {
@@ -48,21 +48,21 @@ const R = {}, U = {}, q = {}, J = {}, W = {}, X = {
48
48
  for: d(v)
49
49
  }, u(l.$t("pix-cursor.selectAnOption")), 9, ee),
50
50
  r("ul", oe, [
51
- (i(!0), a(f, null, b(n.options, (t, e) => (i(), a("li", {
52
- onClick: (E) => h(e),
51
+ (a(!0), i(f, null, b(n.options, (t, e) => (a(), i("li", {
52
+ onClick: (A) => x(e),
53
53
  key: e
54
54
  }, u(t.label), 9, te))), 128))
55
55
  ]),
56
56
  r("datalist", { id: d(_) }, [
57
- (i(!0), a(f, null, b(n.options, (t, e) => (i(), a("option", {
58
- onClick: (E) => h(e),
57
+ (a(!0), i(f, null, b(n.options, (t, e) => (a(), i("option", {
58
+ onClick: (A) => x(e),
59
59
  key: e,
60
60
  value: e,
61
61
  label: t.label
62
62
  }, u(t.label), 9, ae))), 128))
63
63
  ], 8, ne),
64
- S(r("input", {
65
- "onUpdate:modelValue": x[0] || (x[0] = (t) => s.value = t),
64
+ H(r("input", {
65
+ "onUpdate:modelValue": h[0] || (h[0] = (t) => s.value = t),
66
66
  id: d(v),
67
67
  type: "range",
68
68
  list: d(_),
@@ -70,10 +70,10 @@ const R = {}, U = {}, q = {}, J = {}, W = {}, X = {
70
70
  max: n.options.length - 1,
71
71
  disabled: o.value
72
72
  }, null, 8, ie), [
73
- [H, s.value]
73
+ [S, s.value]
74
74
  ]),
75
75
  r("div", se, [
76
- m(j, {
76
+ g(j, {
77
77
  onClick: $,
78
78
  disabled: o.value || N.value,
79
79
  label: l.$t("pix-cursor.previous"),
@@ -84,14 +84,14 @@ const R = {}, U = {}, q = {}, J = {}, W = {}, X = {
84
84
  type: "button"
85
85
  }, null, 8, ["disabled", "label", "aria-controls", "aria-disabled"]),
86
86
  r("div", re, [
87
- (i(!0), a(f, null, b(n.options, (t, e) => (i(), a("p", {
87
+ (a(!0), i(f, null, b(n.options, (t, e) => (a(), i("p", {
88
88
  key: e,
89
89
  class: C({
90
90
  hidden: e !== c.value
91
91
  }),
92
92
  "aria-hidden": e !== c.value
93
93
  }, [
94
- m(B, {
94
+ g(V, {
95
95
  translation: l.$t("pix-cursor.youHaveChosen")
96
96
  }, {
97
97
  choice: L(() => [
@@ -101,7 +101,7 @@ const R = {}, U = {}, q = {}, J = {}, W = {}, X = {
101
101
  }, 1032, ["translation"])
102
102
  ], 10, le))), 128))
103
103
  ]),
104
- m(j, {
104
+ g(j, {
105
105
  onClick: z,
106
106
  disabled: o.value || I.value,
107
107
  label: l.$t("pix-cursor.next"),
@@ -114,8 +114,8 @@ const R = {}, U = {}, q = {}, J = {}, W = {}, X = {
114
114
  ])
115
115
  ]),
116
116
  r("div", de, [
117
- o.value ? F("", !0) : (i(), a("button", ue, u(l.$t("pix-cursor.confirm")), 1)),
118
- (i(!0), a(f, null, b(n.options, (t, e) => (i(), a("p", {
117
+ o.value ? D("", !0) : (a(), i("button", ue, u(l.$t("pix-cursor.confirm")), 1)),
118
+ (a(!0), i(f, null, b(n.options, (t, e) => (a(), i("p", {
119
119
  innerHTML: t.feedback.text,
120
120
  key: e,
121
121
  class: C(["feedback", {
@@ -128,7 +128,7 @@ const R = {}, U = {}, q = {}, J = {}, W = {}, X = {
128
128
  ], 32);
129
129
  };
130
130
  }
131
- }), fe = "[data-v-58e704c5]{--pix-neutral-800: #253858;font-family:Nunito,sans-serif;color:var(--pix-neutral-800)}.pix-cursor[data-v-58e704c5]{display:flex;flex-direction:column;justify-content:center;margin:auto;padding:2rem;gap:1rem;overflow:hidden}.pix-cursor p[data-v-58e704c5]{text-align:center;font-size:1.1rem}.pix-cursor .chosen-option[data-v-58e704c5]{font-weight:700}.pix-cursor .visible-options[data-v-58e704c5]{display:flex;justify-content:space-between;margin:0;padding:0}.pix-cursor .visible-options li[data-v-58e704c5]{cursor:pointer;list-style:none}.pix-cursor input[data-v-58e704c5]{width:100%}.pix-cursor .confirm[data-v-58e704c5]{padding:.75rem 1.5rem;border-radius:8px;cursor:pointer;font-weight:600;font-size:1.25rem;letter-spacing:1.1;width:fit-content;margin:auto;border:none;color:#fff;background:#4075ff;grid-row:1;grid-column:1}.pix-cursor .confirm[data-v-58e704c5]:hover{background:#355ac4;transition:background ease .1s}.pix-cursor .navigation-container[data-v-58e704c5]{display:flex;justify-content:center;align-items:center;gap:1rem}.pix-cursor .navigation-container .chosen-text-container[data-v-58e704c5]{display:grid}.pix-cursor .navigation-container .chosen-text-container p[data-v-58e704c5]{grid-row:1;grid-column:1}.pix-cursor .navigation-container .chosen-text-container p.hidden[data-v-58e704c5]{transform:translate(100vw)}.pix-cursor .footer[data-v-58e704c5]{display:grid;grid-template-columns:auto;align-items:center;justify-content:center}.pix-cursor .feedback[data-v-58e704c5]{padding:1rem 1.2rem;border-left:solid 4px;border-radius:8px;grid-column:1;grid-row:1;text-align:start;margin:0}.pix-cursor .feedback.hidden[data-v-58e704c5]{visibility:hidden;transform:translate(100vw)}.pix-cursor .feedback.good[data-v-58e704c5]{background:#e8f5e9;border-left-color:#4caf51}.pix-cursor .feedback.bad[data-v-58e704c5]{background:#ffebee;border-left-color:#f44337}.pix-cursor .feedback.neutral[data-v-58e704c5]{background:#e8f6ff;border-left-color:#464ee0}.pix-cursor .feedback.close[data-v-58e704c5]{background:#fff8e1;border-left-color:#ffc108}", be = /* @__PURE__ */ D(ve, [["styles", [fe]], ["__scopeId", "data-v-58e704c5"]]);
131
+ }), fe = "[data-v-58e704c5]{--pix-neutral-800: #253858;font-family:Nunito,sans-serif;color:var(--pix-neutral-800)}.pix-cursor[data-v-58e704c5]{display:flex;flex-direction:column;justify-content:center;margin:auto;padding:2rem;gap:1rem;overflow:hidden}.pix-cursor p[data-v-58e704c5]{text-align:center;font-size:1.1rem}.pix-cursor .chosen-option[data-v-58e704c5]{font-weight:700}.pix-cursor .visible-options[data-v-58e704c5]{display:flex;justify-content:space-between;margin:0;padding:0}.pix-cursor .visible-options li[data-v-58e704c5]{cursor:pointer;list-style:none}.pix-cursor input[data-v-58e704c5]{width:100%}.pix-cursor .confirm[data-v-58e704c5]{padding:.75rem 1.5rem;border-radius:8px;cursor:pointer;font-weight:600;font-size:1.25rem;letter-spacing:1.1;width:fit-content;margin:auto;border:none;color:#fff;background:#4075ff;grid-row:1;grid-column:1}.pix-cursor .confirm[data-v-58e704c5]:hover{background:#355ac4;transition:background ease .1s}.pix-cursor .navigation-container[data-v-58e704c5]{display:flex;justify-content:center;align-items:center;gap:1rem}.pix-cursor .navigation-container .chosen-text-container[data-v-58e704c5]{display:grid}.pix-cursor .navigation-container .chosen-text-container p[data-v-58e704c5]{grid-row:1;grid-column:1}.pix-cursor .navigation-container .chosen-text-container p.hidden[data-v-58e704c5]{transform:translate(100vw)}.pix-cursor .footer[data-v-58e704c5]{display:grid;grid-template-columns:auto;align-items:center;justify-content:center}.pix-cursor .feedback[data-v-58e704c5]{padding:1rem 1.2rem;border-left:solid 4px;border-radius:8px;grid-column:1;grid-row:1;text-align:start;margin:0}.pix-cursor .feedback.hidden[data-v-58e704c5]{visibility:hidden;transform:translate(100vw)}.pix-cursor .feedback.good[data-v-58e704c5]{background:#e8f5e9;border-left-color:#4caf51}.pix-cursor .feedback.bad[data-v-58e704c5]{background:#ffebee;border-left-color:#f44337}.pix-cursor .feedback.neutral[data-v-58e704c5]{background:#e8f6ff;border-left-color:#464ee0}.pix-cursor .feedback.close[data-v-58e704c5]{background:#fff8e1;border-left-color:#ffc108}", be = /* @__PURE__ */ P(ve, [["styles", [fe]], ["__scopeId", "data-v-58e704c5"]]);
132
132
  K(/* @__PURE__ */ Object.assign({ "./locales/de-AT.json": R, "./locales/en.json": U, "./locales/es-419.json": q, "./locales/es.json": J, "./locales/fr-BE.json": W, "./locales/fr.json": X, "./locales/it.json": Y, "./locales/nl.json": Z })).catch((n) => console.error(n));
133
133
  window.customElements.define("pix-cursor", G(be, {
134
134
  configureApp(n) {
@@ -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-Bonww6Q2.js";
2
- import { d as m } from "../_plugin-vue_export-helper-D0N_62VD.js";
3
- import { i as e } from "../i18n-lite-t2jNOu0C.js";
4
- import { P as c } from "../PixMailMessage.ce-XPDbJiyC.js";
2
+ import { d as m } from "../_plugin-vue_export-helper-B-lVMTio.js";
3
+ import { i as e } from "../i18n-lite-BIJ2LVs6.js";
4
+ import { P as c } from "../PixMailMessage.ce-oCccQFGV.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,119 +1,121 @@
1
- import { b as M, r as f, j as k, u as j, g as o, c as F, o as l, a as s, E as g, f as p, B as y, t as d, n as O, K as v, H as $, k as c, x as S, _ as V, d as K } from "../_plugin-vue_export-helper-D0N_62VD.js";
2
- import { u as D, i as b } from "../i18n-lite-t2jNOu0C.js";
3
- import { S as I } from "../Stepper.ce-B1yDelzC.js";
4
- import { _ as G, a as H, F as J } from "../Cross.ce.vue_vue_type_script_setup_true_lang-CVBFTfq5.js";
5
- import { P as Q } from "../Popin.ce-DUQ7-GMT.js";
6
- import { B as U } from "../Button.ce-CTKrSDrC.js";
7
- import { P as W } from "../PixMailMessage.ce-XPDbJiyC.js";
8
- import { u as w, a as X, b as Y } from "../normalize-props-DH0oPBss.js";
9
- const Z = {
1
+ import { b as T, h as k, o as l, c as N, a as o, x as u, C as f, t as M, f as p, D as g, l as y, E as F, v as d, r as v, g as s, n as S, _ as O, d as $ } from "../_plugin-vue_export-helper-B-lVMTio.js";
2
+ import { u as V, i as b } from "../i18n-lite-BIJ2LVs6.js";
3
+ import { S as D } from "../Stepper.ce-Dttf3Dsf.js";
4
+ import { _ as I, a as K, F as G } from "../Cross.ce.vue_vue_type_script_setup_true_lang-l4hAa4eW.js";
5
+ import { P as H } from "../Popin.ce-Co12R3C8.js";
6
+ import { B as J } from "../Button.ce-DZ8jDtW5.js";
7
+ import { P as Q } from "../PixMailMessage.ce-oCccQFGV.js";
8
+ import { p as U } from "../shadow-dom-Bouq869n.js";
9
+ import { u as w, a as W, b as X } from "../normalize-props-DH0oPBss.js";
10
+ const Y = {}, Z = {}, ee = {}, te = {}, ne = {}, ae = {
10
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." } } }
11
- }, ee = {
12
+ }, oe = {}, se = {}, ie = {
12
13
  class: "main-container",
13
14
  ref: "container",
14
15
  tabindex: "-1"
15
- }, te = ["aria-level"], ae = { class: "header__description" }, ne = /* @__PURE__ */ M({
16
+ }, re = ["aria-level"], le = { class: "header__description" }, ce = /* @__PURE__ */ T({
16
17
  __name: "ProtegerMailSpam.ce",
17
18
  props: {
18
19
  titleLevel: { default: 2, type: Number },
19
20
  steps: { type: Array }
20
21
  },
21
- setup(a, { expose: m }) {
22
- const { t: e } = D(), t = f(0), n = f(""), u = f(!1), P = k("continue-button"), B = k("container"), C = j(), i = o(() => a.steps.at(t.value)), r = o(() => i.value.goodAction === n.value), h = o(() => t.value === a.steps.length - 1), q = o(() => n.value ? e(`proteger-mail-spam.feedback.step${t.value + 1}.${n.value}`) : ""), R = o(() => r.value ? e("proteger-mail-spam.feedback.titleOk") : e("proteger-mail-spam.feedback.titleKo")), A = o(() => r.value ? {
22
+ setup(n, { expose: m }) {
23
+ const { t: e } = V();
24
+ U();
25
+ const t = v(0), a = v(""), c = v(!1), P = k("continue-button"), C = k("container"), i = s(() => n.steps.at(t.value)), r = s(() => i.value.goodAction === a.value), _ = s(() => t.value === n.steps.length - 1), B = 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")), q = s(() => r.value ? {
23
26
  return: "disabled",
24
27
  reply: "disabled",
25
28
  forward: "disabled",
26
29
  menu: "disabled"
27
30
  } : i.value.actions);
28
- function E() {
29
- n.value = "", t.value = 0, u.value = !1;
31
+ function A() {
32
+ a.value = "", t.value = 0, c.value = !1;
30
33
  }
31
- async function L(x) {
32
- n.value = x, await S(), r.value && !h.value && P.value?.buttonElement.focus();
34
+ async function E(h) {
35
+ a.value = h, await S(), r.value && !_.value && P.value?.buttonElement.focus();
33
36
  }
34
- async function N() {
35
- t.value += 1, n.value = "", await S(), B.value.focus();
37
+ async function L() {
38
+ t.value += 1, a.value = "", await S(), C.value.focus();
36
39
  }
37
- async function T() {
38
- await N(), u.value = !1;
40
+ async function R() {
41
+ await L(), c.value = !1;
39
42
  }
40
43
  return m({
41
- reset: E
42
- }), (x, _) => (l(), F("div", ee, [
43
- s("section", null, [
44
- s("div", null, [
45
- s("div", {
44
+ reset: A
45
+ }), (h, x) => (l(), N("div", ie, [
46
+ o("section", null, [
47
+ o("div", null, [
48
+ o("div", {
46
49
  role: "heading",
47
- "aria-level": a.titleLevel,
50
+ "aria-level": n.titleLevel,
48
51
  class: "header__title"
49
- }, d(i.value.title), 9, te),
50
- s("p", ae, d(i.value.description), 1)
52
+ }, u(i.value.title), 9, re),
53
+ o("p", le, u(i.value.description), 1)
51
54
  ]),
52
- g(I, {
55
+ f(D, {
53
56
  step: t.value,
54
- "steps-count": a.steps.length
57
+ "steps-count": n.steps.length
55
58
  }, null, 8, ["step", "steps-count"]),
56
- g(W, {
57
- actions: A.value,
59
+ f(Q, {
60
+ actions: q.value,
58
61
  mail: i.value.mail,
59
- onAction: L
62
+ onAction: E
60
63
  }, null, 8, ["actions", "mail"]),
61
- s("div", {
62
- class: O(["feedback", { "is-hidden": !n.value }]),
64
+ o("div", {
65
+ class: M(["feedback", { "is-hidden": !a.value }]),
63
66
  "aria-live": "polite"
64
67
  }, [
65
- n.value ? (l(), p(J, {
68
+ a.value ? (l(), p(G, {
66
69
  key: 0,
67
- title: R.value
70
+ title: j.value
68
71
  }, {
69
- icon: v(() => [
70
- r.value ? (l(), p(G, {
72
+ icon: g(() => [
73
+ r.value ? (l(), p(I, {
71
74
  key: 0,
72
75
  class: "feedback__icon",
73
76
  "aria-hiden": "true"
74
- })) : (l(), p(H, {
77
+ })) : (l(), p(K, {
75
78
  key: 1,
76
79
  class: "feedback__icon",
77
80
  "aria-hiden": "true"
78
81
  }))
79
82
  ]),
80
- content: v(() => [
81
- s("p", null, d(q.value), 1)
83
+ content: g(() => [
84
+ o("p", null, u(B.value), 1)
82
85
  ]),
83
86
  _: 1
84
87
  }, 8, ["title"])) : y("", !0)
85
88
  ], 2),
86
- r.value && !h.value ? (l(), p(U, {
89
+ r.value && !_.value ? (l(), p(J, {
87
90
  key: 0,
88
91
  ref: "continue-button",
89
- onClick: _[0] || (_[0] = (ie) => u.value = !0),
92
+ onClick: x[0] || (x[0] = (de) => c.value = !0),
90
93
  class: "next-button"
91
94
  }, {
92
- default: v(() => [
93
- $(d(c(e)("proteger-mail-spam.nextStepButton")), 1)
95
+ default: g(() => [
96
+ F(u(d(e)("proteger-mail-spam.nextStepButton")), 1)
94
97
  ]),
95
98
  _: 1
96
99
  }, 512)) : y("", !0)
97
100
  ]),
98
- g(Q, {
99
- content: c(e)("proteger-mail-spam.successPopin.content"),
100
- title: c(e)("proteger-mail-spam.successPopin.title"),
101
- show: u.value,
102
- "text-button": c(e)("proteger-mail-spam.successPopin.buttonLabel"),
103
- "root-element": c(C),
104
- onPrimaryAction: T
105
- }, null, 8, ["content", "title", "show", "text-button", "root-element"])
101
+ f(H, {
102
+ content: d(e)("proteger-mail-spam.successPopin.content"),
103
+ title: d(e)("proteger-mail-spam.successPopin.title"),
104
+ show: c.value,
105
+ "text-button": d(e)("proteger-mail-spam.successPopin.buttonLabel"),
106
+ onPrimaryAction: R
107
+ }, null, 8, ["content", "title", "show", "text-button"])
106
108
  ], 512));
107
109
  }
108
- }), oe = "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}.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}", se = /* @__PURE__ */ V(ne, [["styles", [oe]]]);
109
- b.addTranslationsFromGlobResults(/* @__PURE__ */ Object.assign({ "./locales/fr.json": Z }));
110
- const z = K(se, {
111
- configureApp(a) {
112
- b.changeLanguage(document?.documentElement?.lang || navigator.language), a.use(b);
110
+ }), 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{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]]]);
111
+ 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 }));
112
+ const z = $(pe, {
113
+ configureApp(n) {
114
+ b.changeLanguage(document?.documentElement?.lang || navigator.language), n.use(b);
113
115
  }
114
116
  });
115
- z.prototype.normalizeProps = (a) => {
116
- const m = a.steps.map((e) => {
117
+ z.prototype.normalizeProps = (n) => {
118
+ const m = n.steps.map((e) => {
117
119
  const t = {
118
120
  ...e,
119
121
  actions: w({
@@ -121,10 +123,10 @@ z.prototype.normalizeProps = (a) => {
121
123
  menuActions: w(e.actions?.menuActions)
122
124
  })
123
125
  };
124
- return t.mail.sender.avatarColor = X(t.mail.sender.avatarColor), t;
126
+ return t.mail.sender.avatarColor = W(t.mail.sender.avatarColor), t;
125
127
  });
126
128
  return {
127
- titleLevel: Y(a.titleLevel),
129
+ titleLevel: X(n.titleLevel),
128
130
  steps: m
129
131
  };
130
132
  };
@@ -1,6 +1,6 @@
1
- import { b as y, g as b, c as i, o, a as s, B as v, t as d, n as w, _, U as E, V as R, r as x, A as O, H as V, P, q as G, j as M, F as $, e as C, f as F, k as Q, E as k, W as U, K as W, l as H, d as K } from "../_plugin-vue_export-helper-D0N_62VD.js";
2
- import { i as a, a as J, b as X } from "../i18n-ekiZvzf6.js";
3
- import { R as Y } from "../Retry-BZf7NJz9.js";
1
+ import { b as y, o, c as i, a as s, x as d, l as v, t as w, g as b, _, U as R, H as A, P as O, E 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, C as k, W as U, D as W, y as H, d as J } from "../_plugin-vue_export-helper-B-lVMTio.js";
2
+ import { i as a, a as K, b as X } from "../i18n-CsT7k7zW.js";
3
+ import { R as Y } from "../Retry-C7C78Wpj.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." } }
@@ -55,7 +55,7 @@ const ee = {}, te = {}, ae = {}, ne = {}, oe = {}, ie = {
55
55
  }
56
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__ */ _(pe, [["styles", [me]], ["__scopeId", "data-v-2a82aa38"]]), be = ["aria-disabled"], he = /* @__PURE__ */ y({
57
57
  __name: "Option.ce",
58
- props: /* @__PURE__ */ E({
58
+ props: /* @__PURE__ */ P({
59
59
  option: { type: String },
60
60
  value: { type: Number },
61
61
  readonly: { type: Boolean }
@@ -78,14 +78,14 @@ const ee = {}, te = {}, ae = {}, ne = {}, oe = {}, ie = {
78
78
  }), (p, m) => (o(), i("label", {
79
79
  class: w({ selected: l.value, disabled: t.value })
80
80
  }, [
81
- O(s("input", {
81
+ A(s("input", {
82
82
  type: "checkbox",
83
83
  name: "options",
84
84
  onClick: h,
85
85
  "aria-disabled": t.value,
86
86
  "onUpdate:modelValue": m[0] || (m[0] = (g) => l.value = g)
87
87
  }, null, 8, be), [
88
- [P, l.value]
88
+ [O, l.value]
89
89
  ]),
90
90
  V(d(e.option), 1)
91
91
  ], 2));
@@ -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
- }, Be = /* @__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"), p = a.t("qcm-deepfake.options", { returnObjects: !0 }), m = ["👩‍🎤", "🎧", "🎶", "👩", "🎙️"], g = p.map((c, r) => `${m[r]} ${c}`), B = g.filter((c, r) => l.includes(r + 1)), T = [
126
+ const n = x([]), l = [2, 4, 5], t = x("info"), h = M("optionsNode"), p = a.t("qcm-deepfake.options", { returnObjects: !0 }), m = ["👩‍🎤", "🎧", "🎶", "👩", "🎙️"], g = p.map((c, r) => `${m[r]} ${c}`), D = g.filter((c, r) => l.includes(r + 1)), T = [
127
127
  {
128
128
  type: "info",
129
129
  image: e.infoImage
@@ -146,7 +146,7 @@ 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"), j = b(() => t.value === "search" ? a.t("qcm-deepfake.loading") : t.value === "info" ? a.t("qcm-deepfake.generateVideo") : a.t("qcm-deepfake.restart")), D = b(() => t.value === "info" ? a.t("qcm-deepfake.generateVideoInfo", { count: l.length - n.value.length }) : t.value === "fail" ? a.t("qcm-deepfake.restartInfo") : "");
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") : "");
150
150
  function z() {
151
151
  return q.value ? !1 : t.value === "info" ? L() : I();
152
152
  }
@@ -156,7 +156,7 @@ const ee = {}, te = {}, ae = {}, ne = {}, oe = {}, ie = {
156
156
  }), n.value = [], t.value = "info";
157
157
  }
158
158
  async function L() {
159
- const c = n.value.every((r) => B.includes(r.trim()));
159
+ const c = n.value.every((r) => D.includes(r.trim()));
160
160
  t.value = "search", await new Promise((r) => setTimeout(r, e.searchDelay)), c ? t.value = "success" : t.value = "fail";
161
161
  }
162
162
  return u({
@@ -175,7 +175,7 @@ const ee = {}, te = {}, ae = {}, ne = {}, oe = {}, ie = {
175
175
  ref_key: "optionsNode",
176
176
  ref: h,
177
177
  modelValue: n.value,
178
- "onUpdate:modelValue": r[0] || (r[0] = (A) => n.value = A),
178
+ "onUpdate:modelValue": r[0] || (r[0] = (E) => n.value = E),
179
179
  key: S,
180
180
  class: "left-side__options",
181
181
  option: f,
@@ -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: j.value,
190
+ label: B.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,7 +199,7 @@ 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, d(D.value), 1))
202
+ ["success", "search"].includes(t.value) ? v("", !0) : (o(), i("p", Ve, d(j.value), 1))
203
203
  ])
204
204
  ]),
205
205
  s("div", Ne, [
@@ -216,9 +216,9 @@ const ee = {}, te = {}, ae = {}, ne = {}, oe = {}, ie = {
216
216
  ])
217
217
  ]));
218
218
  }
219
- }), Te = "legend,label,p,div[role=heading]{font-family:Nunito,Roboto,sans-serif;color:#253858}", je = ".container[data-v-66f8d52f]{display:flex;gap:.8rem}.title[data-v-66f8d52f]{font-size:1.75rem;font-weight:700;text-align:center;margin-bottom:16px}.left-side[data-v-66f8d52f]{min-width:60%;border:solid 1px #b0d3f4;background:#fff;padding:.8rem;border-radius:10px}.left-side__lower-legend[data-v-66f8d52f]{font-size:.875rem;color:#5e6c84}.left-side__subtitle[data-v-66f8d52f]{font-size:1.25rem;font-weight:700;text-align:center}.left-side__options[data-v-66f8d52f]{display:flex;border:solid 1px #5e6c84;padding:.6rem;border-radius:5px;gap:.5rem}.left-side__description[data-v-66f8d52f]{font-weight:700}.left-side__button[data-v-66f8d52f]{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-66f8d52f]{background:#613fdd;color:#fff}.left-side__button[aria-disabled=true][data-v-66f8d52f]{cursor:not-allowed;background:#d3d3d3}.left-side__action[data-v-66f8d52f]{display:flex;flex-direction:column;align-items:center;text-align:center}.right-side[data-v-66f8d52f]{display:grid;border:solid 1px #b0d3f4;background:#fff;padding:.8rem;text-align:center;border-radius:10px}fieldset[data-v-66f8d52f]{border:none;display:flex;flex-direction:column;gap:.8rem}@media(max-width:770px){.container[data-v-66f8d52f]{flex-wrap:wrap}.left-side[data-v-66f8d52f],.right-side[data-v-66f8d52f]{width:100%}}", De = /* @__PURE__ */ _(Be, [["styles", [Te, je]], ["__scopeId", "data-v-66f8d52f"]]);
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
- const N = K(De, {
219
+ }), Te = "legend,label,p,div[role=heading]{font-family:Nunito,Roboto,sans-serif;color:#253858}", Be = ".container[data-v-66f8d52f]{display:flex;gap:.8rem}.title[data-v-66f8d52f]{font-size:1.75rem;font-weight:700;text-align:center;margin-bottom:16px}.left-side[data-v-66f8d52f]{min-width:60%;border:solid 1px #b0d3f4;background:#fff;padding:.8rem;border-radius:10px}.left-side__lower-legend[data-v-66f8d52f]{font-size:.875rem;color:#5e6c84}.left-side__subtitle[data-v-66f8d52f]{font-size:1.25rem;font-weight:700;text-align:center}.left-side__options[data-v-66f8d52f]{display:flex;border:solid 1px #5e6c84;padding:.6rem;border-radius:5px;gap:.5rem}.left-side__description[data-v-66f8d52f]{font-weight:700}.left-side__button[data-v-66f8d52f]{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-66f8d52f]{background:#613fdd;color:#fff}.left-side__button[aria-disabled=true][data-v-66f8d52f]{cursor:not-allowed;background:#d3d3d3}.left-side__action[data-v-66f8d52f]{display:flex;flex-direction:column;align-items:center;text-align:center}.right-side[data-v-66f8d52f]{display:grid;border:solid 1px #b0d3f4;background:#fff;padding:.8rem;text-align:center;border-radius:10px}fieldset[data-v-66f8d52f]{border:none;display:flex;flex-direction:column;gap:.8rem}@media(max-width:770px){.container[data-v-66f8d52f]{flex-wrap:wrap}.left-side[data-v-66f8d52f],.right-side[data-v-66f8d52f]{width:100%}}", je = /* @__PURE__ */ _(De, [["styles", [Te, Be]], ["__scopeId", "data-v-66f8d52f"]]);
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
+ const N = J(je, {
222
222
  configureApp(e) {
223
223
  a.changeLanguage(document?.documentElement?.lang || navigator.language), e.use(X, { i18next: a });
224
224
  }
@@ -1,9 +1,9 @@
1
- import { b as q, c as m, o as r, n as B, a as l, B as g, t as u, _ as j, r as b, j as V, g as p, E as h, f as v, K as k, H as G, l as Q, d as R } from "../_plugin-vue_export-helper-D0N_62VD.js";
2
- import { u as O, a as P, i as z, b as D } from "../i18n-ekiZvzf6.js";
3
- import { _ as H, a as I, F as K } from "../Cross.ce.vue_vue_type_script_setup_true_lang-CVBFTfq5.js";
4
- import { S as M } from "../Stepper.ce-B1yDelzC.js";
5
- import { a as f, b as J } from "../normalize-props-DH0oPBss.js";
6
- import { l as U } from "../index-BpqxFmwz.js";
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, C as b, f as h, D as k, E as G, y as Q, r as v, g as p, d as R } from "../_plugin-vue_export-helper-B-lVMTio.js";
2
+ import { u as D, a as O, i as z, b as P } from "../i18n-CsT7k7zW.js";
3
+ import { _ as I, a as M, F as H } from "../Cross.ce.vue_vue_type_script_setup_true_lang-l4hAa4eW.js";
4
+ import { S as J } from "../Stepper.ce-Dttf3Dsf.js";
5
+ import { a as f, b as K } from "../normalize-props-DH0oPBss.js";
6
+ import { l as U } from "../index-BaI3Qosp.js";
7
7
  const W = {}, X = {}, Y = {}, Z = {}, ee = {}, te = {
8
8
  "quiz-stepper": { submitButton: "Valider", nextStepButton: "Continuer", feedback: { success: "Bien joué", failed: "Pas tout à fait" } }
9
9
  }, ne = {}, se = {}, ie = ["id", "aria-disabled", "checked"], oe = ["for"], ae = {
@@ -41,14 +41,14 @@ const W = {}, X = {}, Y = {}, Z = {}, ee = {}, te = {
41
41
  ], 8, oe)
42
42
  ], 2));
43
43
  }
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({
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__ */ A(ce, [["styles", [re]]]), ue = { class: "quiz-stepper-container__layout" }, de = ["aria-level"], pe = { class: "card-wrapper" }, fe = ["aria-disable"], me = /* @__PURE__ */ q({
45
45
  __name: "QuizStepper.ce",
46
46
  props: {
47
47
  steps: { type: Array },
48
48
  titleLevel: { default: 2, type: Number }
49
49
  },
50
50
  setup(e, { expose: c }) {
51
- const s = b(0), t = b(), n = b(!1), o = V("form"), { t: _ } = O(), a = p(() => e.steps?.[s.value]), w = p(() => !n.value), $ = p(() => {
51
+ const s = v(0), t = v(), n = v(!1), o = V("form"), { t: _ } = D(), a = p(() => e.steps?.[s.value]), w = p(() => !n.value), $ = p(() => {
52
52
  const i = s.value === e.steps.length - 1;
53
53
  return i ? i && !n.value : !0;
54
54
  }), C = p(() => w.value ? _("quiz-stepper.submitButton") : _("quiz-stepper.nextStepButton"));
@@ -88,7 +88,7 @@ const W = {}, X = {}, Y = {}, Z = {}, ee = {}, te = {
88
88
  tabindex: "-1"
89
89
  }, [
90
90
  l("div", ue, [
91
- h(M, {
91
+ b(J, {
92
92
  step: s.value,
93
93
  "steps-count": e.steps.length
94
94
  }, null, 8, ["step", "steps-count"]),
@@ -101,14 +101,14 @@ const W = {}, X = {}, Y = {}, Z = {}, ee = {}, te = {
101
101
  }, u(a.value.question), 9, de)
102
102
  ]),
103
103
  l("div", pe, [
104
- h(S, {
104
+ b(S, {
105
105
  id: "choice1",
106
106
  choice: a.value.choice1,
107
107
  "show-feedback": n.value,
108
108
  "is-selected": y(a.value.choice1),
109
109
  onSelectAnswer: d[0] || (d[0] = (L) => x(a.value.choice1))
110
110
  }, null, 8, ["choice", "show-feedback", "is-selected"]),
111
- h(S, {
111
+ b(S, {
112
112
  id: "choice2",
113
113
  choice: a.value.choice2,
114
114
  "show-feedback": n.value,
@@ -117,15 +117,15 @@ const W = {}, X = {}, Y = {}, Z = {}, ee = {}, te = {
117
117
  }, null, 8, ["choice", "show-feedback", "is-selected"])
118
118
  ])
119
119
  ]),
120
- n.value ? (r(), v(K, {
120
+ n.value ? (r(), h(H, {
121
121
  key: 0,
122
122
  title: t.value?.isGoodAnswer ? i.$t("quiz-stepper.feedback.success") : i.$t("quiz-stepper.feedback.failed")
123
123
  }, {
124
124
  icon: k(() => [
125
- t.value?.isGoodAnswer ? (r(), v(H, {
125
+ t.value?.isGoodAnswer ? (r(), h(I, {
126
126
  key: 0,
127
127
  class: "icon-size"
128
- })) : (r(), v(I, {
128
+ })) : (r(), h(M, {
129
129
  key: 1,
130
130
  class: "icon-size"
131
131
  }))
@@ -144,15 +144,15 @@ const W = {}, X = {}, Y = {}, Z = {}, ee = {}, te = {
144
144
  ])
145
145
  ], 544));
146
146
  }
147
- }), 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__ */ j(me, [["styles", [be]]]);
148
- P(/* @__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));
147
+ }), 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]]]);
148
+ 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));
149
149
  U();
150
- const A = R(he, {
150
+ const j = R(he, {
151
151
  configureApp(e) {
152
- z.changeLanguage(document?.documentElement?.lang || navigator.language), e.use(D, { i18next: z });
152
+ z.changeLanguage(document?.documentElement?.lang || navigator.language), e.use(P, { i18next: z });
153
153
  }
154
154
  });
155
- A.prototype.normalizeProps = (e) => {
155
+ j.prototype.normalizeProps = (e) => {
156
156
  let { steps: c, titleLevel: s } = e;
157
157
  return c = c.map((t) => {
158
158
  let { choice1: n, choice2: o } = t;
@@ -171,7 +171,7 @@ A.prototype.normalizeProps = (e) => {
171
171
  };
172
172
  }), {
173
173
  steps: c,
174
- titleLevel: J(s)
174
+ titleLevel: K(s)
175
175
  };
176
176
  };
177
- window.customElements.define("quiz-stepper", A);
177
+ window.customElements.define("quiz-stepper", j);