@1024pix/epreuves-components 2.8.0 → 2.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/dist/Button.ce-D1_fAhqr.js +18 -0
  2. package/dist/{ButtonTooltip.ce-B-f0Ebfa.js → ButtonTooltip.ce-BjlMn9Ez.js} +15 -15
  3. package/dist/Cross.ce.vue_vue_type_script_setup_true_lang-D7kq2waU.js +73 -0
  4. package/dist/{LLMMessage.ce-DAA_BQYY.js → LLMMessage.ce-B4Tg1zsn.js} +2 -2
  5. package/dist/{Loading.ce-BPbyGkTl.js → Loading.ce-S-dh_E78.js} +1 -1
  6. package/dist/{NavigationButton.ce-D7sjcUuO.js → NavigationButton.ce-DRBC3gta.js} +2 -2
  7. package/dist/{Retry-CTdYYKx5.js → Retry-CoaWKuPG.js} +1 -1
  8. package/dist/{_plugin-vue_export-helper-CGJjSxi7.js → _plugin-vue_export-helper-BPDEgOal.js} +1711 -1618
  9. package/dist/components/calcul-impact.ce.js.js +42 -42
  10. package/dist/components/capacity-calculation.ce.js.js +70 -70
  11. package/dist/components/clickable-image.ce.js.js +12 -12
  12. package/dist/components/complete-phrase.ce.js.js +36 -36
  13. package/dist/components/flip-cards.ce.js.js +1 -1
  14. package/dist/components/image-quiz.ce.js.js +3 -3
  15. package/dist/components/image-quizzes.ce.js.js +20 -20
  16. package/dist/components/llm-compare-messages.ce.js.js +3 -3
  17. package/dist/components/llm-messages.ce.js.js +3 -3
  18. package/dist/components/llm-prompt-select.ce.js.js +1 -1
  19. package/dist/components/mdp-classement.ce.js.js +219 -0
  20. package/dist/components/message-conversation.ce.js.js +11 -11
  21. package/dist/components/mobile-shell.ce.js.js +1 -1
  22. package/dist/components/phishing-message.ce.js.js +61 -61
  23. package/dist/components/phishing-notification.ce.js.js +85 -85
  24. package/dist/components/pix-anonymisation.ce.js.js +85 -97
  25. package/dist/components/pix-article.ce.js.js +18 -18
  26. package/dist/components/pix-carousel.ce.js.js +86 -86
  27. package/dist/components/pix-cursor.ce.js.js +50 -50
  28. package/dist/components/qcm-deepfake.ce.js.js +55 -55
  29. package/dist/components/quiz-stepper.ce.js.js +103 -111
  30. package/dist/components/select-conversation.ce.js.js +41 -41
  31. package/dist/components/template-mail.ce.js.js +55 -55
  32. package/dist/components/test-top-mdp.ce.js.js +58 -58
  33. package/dist/components/trouver-mdp-rs.ce.js.js +758 -0
  34. package/dist/{i18n-BkraEFZL.js → i18n-BuCPzaih.js} +9 -9
  35. package/dist/{i18n-lite-J-aj5pZd.js → i18n-lite-DBVKHY8J.js} +1 -1
  36. package/dist/{image-quiz.ce-BFISPs8m.js → image-quiz.ce-CXOFcx1H.js} +86 -95
  37. package/dist/index.js +6 -4
  38. package/dist/metadata.js +29 -21
  39. package/dist/schema.js +64 -42
  40. package/dist/{shadow-dom-DN_6ctXp.js → shadow-dom-By5w43W7.js} +1 -1
  41. package/dist/shuffled-B8VGTceh.js +19 -0
  42. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { s as ve, l as Re, d as Ce, i as Pe } from "./_plugin-vue_export-helper-CGJjSxi7.js";
1
+ import { s as ve, q as Re, d as Ce, i as Pe } from "./_plugin-vue_export-helper-BPDEgOal.js";
2
2
  const d = (o) => typeof o == "string", V = () => {
3
3
  let o, e;
4
4
  const t = new Promise((i, s) => {
@@ -271,7 +271,7 @@ function Ae() {
271
271
  let t;
272
272
  return e.get = (i, s) => (t?.revoke?.(), s === Se ? o : (o.push(s), t = Proxy.revocable(i, e), t.proxy)), Proxy.revocable(/* @__PURE__ */ Object.create(null), e).proxy;
273
273
  }
274
- function X(o, e) {
274
+ function q(o, e) {
275
275
  const {
276
276
  [Se]: t
277
277
  } = o(Ae());
@@ -325,7 +325,7 @@ class _ extends W {
325
325
  if (typeof s != "object" && this.options.overloadTranslationOptionHandler && (s = this.options.overloadTranslationOptionHandler(arguments)), typeof s == "object" && (s = {
326
326
  ...s
327
327
  }), s || (s = {}), e == null) return "";
328
- typeof e == "function" && (e = X(e, {
328
+ typeof e == "function" && (e = q(e, {
329
329
  ...this.options,
330
330
  ...s
331
331
  })), Array.isArray(e) || (e = [String(e)]);
@@ -356,7 +356,7 @@ class _ extends W {
356
356
  let h = p?.res;
357
357
  const x = p?.usedKey || a, S = p?.exactUsedKey || a, L = ["[object Number]", "[object Function]", "[object RegExp]"], y = s.joinArrays !== void 0 ? s.joinArrays : this.options.joinArrays, E = !this.i18nFormat || this.i18nFormat.handleAsObject, O = s.count !== void 0 && !d(s.count), N = _.hasDefaultValue(s), j = O ? this.pluralResolver.getSuffix(f, s.count, s) : "", I = s.ordinal && O ? this.pluralResolver.getSuffix(f, s.count, {
358
358
  ordinal: !1
359
- }) : "", q = O && !s.ordinal && s.count === 0, k = q && s[`defaultValue${this.options.pluralSeparator}zero`] || s[`defaultValue${j}`] || s[`defaultValue${I}`] || s.defaultValue;
359
+ }) : "", X = O && !s.ordinal && s.count === 0, k = X && s[`defaultValue${this.options.pluralSeparator}zero`] || s[`defaultValue${j}`] || s[`defaultValue${I}`] || s.defaultValue;
360
360
  let v = h;
361
361
  E && !h && N && (v = k);
362
362
  const Le = Y(v), we = Object.prototype.toString.apply(v);
@@ -413,7 +413,7 @@ class _ extends W {
413
413
  };
414
414
  this.options.saveMissing && (this.options.saveMissingPlurals && O ? D.forEach((b) => {
415
415
  const F = this.pluralResolver.getSuffixes(b, s);
416
- q && s[`defaultValue${this.options.pluralSeparator}zero`] && F.indexOf(`${this.options.pluralSeparator}zero`) < 0 && F.push(`${this.options.pluralSeparator}zero`), F.forEach((K) => {
416
+ X && s[`defaultValue${this.options.pluralSeparator}zero`] && F.indexOf(`${this.options.pluralSeparator}zero`) < 0 && F.push(`${this.options.pluralSeparator}zero`), F.forEach((K) => {
417
417
  te([b], a + K, s[`defaultValue${K}`] || k);
418
418
  });
419
419
  }) : te(D, a, k));
@@ -1206,10 +1206,10 @@ class U extends W {
1206
1206
  }, l.lng = l.lng || s.lng, l.lngs = l.lngs || s.lngs, l.ns = l.ns || s.ns, l.keyPrefix !== "" && (l.keyPrefix = l.keyPrefix || i || s.keyPrefix);
1207
1207
  const u = this.options.keySeparator || ".";
1208
1208
  let c;
1209
- return l.keyPrefix && Array.isArray(n) ? c = n.map((f) => (typeof f == "function" && (f = X(f, {
1209
+ return l.keyPrefix && Array.isArray(n) ? c = n.map((f) => (typeof f == "function" && (f = q(f, {
1210
1210
  ...this.options,
1211
1211
  ...r
1212
- })), `${l.keyPrefix}${u}${f}`)) : (typeof n == "function" && (n = X(n, {
1212
+ })), `${l.keyPrefix}${u}${f}`)) : (typeof n == "function" && (n = q(n, {
1213
1213
  ...this.options,
1214
1214
  ...r
1215
1215
  })), c = l.keyPrefix ? `${l.keyPrefix}${u}${n}` : n), this.t(c, l);
@@ -1432,9 +1432,9 @@ async function st(o) {
1432
1432
  }
1433
1433
  }
1434
1434
  async function Ze(o, e) {
1435
- await Xe(), m.addResourceBundle(o, Ge, e, !0, !0);
1435
+ await qe(), m.addResourceBundle(o, Ge, e, !0, !0);
1436
1436
  }
1437
- async function Xe() {
1437
+ async function qe() {
1438
1438
  m.isInitialized || await m.init();
1439
1439
  }
1440
1440
  export {
@@ -1,4 +1,4 @@
1
- import { d as f, i as g } from "./_plugin-vue_export-helper-CGJjSxi7.js";
1
+ import { d as f, i as g } from "./_plugin-vue_export-helper-BPDEgOal.js";
2
2
  const c = /* @__PURE__ */ Symbol("i18n-lite"), o = /* @__PURE__ */ Symbol("isPluralized"), a = /\{\{\s*(\w+)\s*}}/g;
3
3
  class l {
4
4
  static #i = "fr";
@@ -1,31 +1,20 @@
1
- import { d as q, r as P, g as k, c as g, o as r, L as x, j as y, h as c, n as z, a as b, m as F, t as C, _ as L, y as d, w as M, q as Q, B as D, F as R, b as H, e as K, f as B } from "./_plugin-vue_export-helper-CGJjSxi7.js";
2
- import { u as G, i as h } from "./i18n-lite-J-aj5pZd.js";
3
- import { a as w, u as Z, b as J } from "./normalize-props-DtfVI0Xg.js";
4
- const U = {
1
+ import { d as j, r as k, h as P, c as m, o, L as x, l as v, k as s, n as z, a as b, m as F, t as C, _ as q, y as c, w as Q, j as D, B as M, F as H, b as K, e as R, f as B } from "./_plugin-vue_export-helper-BPDEgOal.js";
2
+ import { s as G } from "./shuffled-B8VGTceh.js";
3
+ import { u as Z, i as g } from "./i18n-lite-DBVKHY8J.js";
4
+ import { a as w, u as J, b as U } from "./normalize-props-DtfVI0Xg.js";
5
+ const W = {}, X = {
5
6
  "image-quiz": { multipleInstruction: "Select several answers.", multipleValidity: "To validate, select at least two answers. Otherwise, skip.", validity: "To validate, select an answer. Otherwise, skip." }
6
- }, W = {
7
+ }, Y = {
7
8
  "image-quiz": { multipleInstruction: "Seleccione varias respuestas.", multipleValidity: "Para validar, seleccione al menos dos respuestas. Si no es así, sáltese.", validity: "Para confirmar, seleccione una respuesta. De lo contrario, salte." }
8
- }, X = {
9
+ }, ee = {
9
10
  "image-quiz": { multipleInstruction: "Seleccione varias respuestas.", multipleValidity: "Para validar, seleccione al menos dos respuestas. Si no es así, sáltese.", validity: "Para confirmar, seleccione una respuesta. De lo contrario, salte." }
10
- }, Y = {
11
+ }, ie = {}, te = {
11
12
  "image-quiz": { multipleInstruction: "Sélectionnez plusieurs réponses.", multipleValidity: "Pour valider, sélectionnez au moins deux réponses. Sinon, passez.", validity: "Pour valider, sélectionnez une réponse. Sinon, passez." }
12
- }, ee = {
13
+ }, ae = {
13
14
  "image-quiz": { multipleInstruction: "Selezionare diverse risposte.", multipleValidity: "Per convalidare, selezionare almeno due risposte. In caso contrario, saltare.", validity: "Per confermare, selezionare una risposta. Altrimenti, saltare." }
14
- }, ie = {
15
+ }, ne = {
15
16
  "image-quiz": { multipleInstruction: "Selecteer meerdere antwoorden.", multipleValidity: "Selecteer ten minste twee antwoorden om te bevestigen. Zo niet, sla dan over.", validity: "Selecteer een antwoord om te bevestigen. Sla anders over." }
16
- };
17
- function te(e, s = ae) {
18
- const n = [...e];
19
- for (let o = n.length - 1; o > 0; o--) {
20
- const l = s() % (o + 1);
21
- [n[o], n[l]] = [n[l], n[o]];
22
- }
23
- return n;
24
- }
25
- function ae() {
26
- return Math.floor(Math.random() * 2 ** 32);
27
- }
28
- const ne = ["aria-labelledby", "aria-selected", "tabindex"], oe = { key: 0 }, se = ["id"], le = ["id"], re = /* @__PURE__ */ q({
17
+ }, oe = ["aria-labelledby", "aria-selected", "tabindex"], se = { key: 0 }, le = ["id"], re = ["id"], ce = /* @__PURE__ */ j({
29
18
  __name: "ImageOption.ce",
30
19
  props: {
31
20
  choice: { type: Object },
@@ -36,44 +25,44 @@ const ne = ["aria-labelledby", "aria-selected", "tabindex"], oe = { key: 0 }, se
36
25
  tabFocusable: { type: Boolean }
37
26
  },
38
27
  emits: ["toggle", "next", "previous"],
39
- setup(e, { expose: s }) {
40
- const n = e, o = P();
41
- function l() {
42
- o.value.focus();
28
+ setup(e, { expose: n }) {
29
+ const y = e, p = k();
30
+ function f() {
31
+ p.value.focus();
43
32
  }
44
- s({ focus: l });
45
- const p = k();
46
- return (a, t) => (r(), g("div", {
33
+ n({ focus: f });
34
+ const u = P();
35
+ return (a, t) => (o(), m("div", {
47
36
  ref_key: "el",
48
- ref: o,
37
+ ref: p,
49
38
  role: "option",
50
- class: z(["image-option", `image-option--max${n.maxChoicesPerLine}`]),
51
- "aria-labelledby": c(p),
39
+ class: z(["image-option", `image-option--max${y.maxChoicesPerLine}`]),
40
+ "aria-labelledby": s(u),
52
41
  "aria-selected": e.selected,
53
42
  tabindex: e.tabFocusable ? 0 : -1,
54
- onClick: t[0] || (t[0] = y((m) => a.$emit("toggle"), ["stop"])),
43
+ onClick: t[0] || (t[0] = v((l) => a.$emit("toggle"), ["stop"])),
55
44
  onKeydown: [
56
- t[1] || (t[1] = x(y((m) => a.$emit("toggle"), ["stop", "prevent"]), ["space"])),
57
- t[2] || (t[2] = x(y((m) => a.$emit("previous"), ["stop", "prevent"]), ["up", "left"])),
58
- t[3] || (t[3] = x(y((m) => a.$emit("next"), ["stop", "prevent"]), ["down", "right"]))
45
+ t[1] || (t[1] = x(v((l) => a.$emit("toggle"), ["stop", "prevent"]), ["space"])),
46
+ t[2] || (t[2] = x(v((l) => a.$emit("previous"), ["stop", "prevent"]), ["up", "left"])),
47
+ t[3] || (t[3] = x(v((l) => a.$emit("next"), ["stop", "prevent"]), ["down", "right"]))
59
48
  ]
60
49
  }, [
61
- e.choice.image ? (r(), g("figure", oe, [
50
+ e.choice.image ? (o(), m("figure", se, [
62
51
  b("img", F(e.choice.image, {
63
52
  class: e.imageClass,
64
53
  alt: ""
65
54
  }), null, 16),
66
55
  b("figcaption", {
67
56
  class: z(e.nameClass),
68
- id: c(p)
69
- }, C(e.choice.name), 11, se)
70
- ])) : (r(), g("span", {
57
+ id: s(u)
58
+ }, C(e.choice.name), 11, le)
59
+ ])) : (o(), m("span", {
71
60
  key: 1,
72
- id: c(p)
73
- }, C(e.choice.name), 9, le))
74
- ], 42, ne));
61
+ id: s(u)
62
+ }, C(e.choice.name), 9, re))
63
+ ], 42, oe));
75
64
  }
76
- }), ce = '.image-option{display:flex;position:relative;flex-direction:column;align-items:center;justify-content:center;margin:.5rem;border:solid 2px #c1c7d0;border-radius:10px;background:#fff;width:calc(20% - 2em);min-width:150px;padding:1rem}.image-option--max4{width:calc(25% - 2em);min-width:175px}.image-option--max3{width:calc(33% - 2em)}.image-option--max2{width:calc(50% - 2em);min-width:300px}.image-option--max1{width:calc(100% - 4em);min-width:300px}.image-option:hover{cursor:pointer;box-shadow:0 3px 10px #0000001a;transform:scale(1.04);transition:transform ease-in .1s}.image-option:focus{outline:none;box-shadow:5px 5px #ffbe00,-5px 5px #ffbe00,5px -5px #ffbe00,-5px -5px #ffbe00}.image-option[aria-selected=true]{border-color:#3d68ff}.image-option[aria-selected=true]:after{content:"";position:absolute;width:calc(100% + 2px);height:calc(100% + 2px);background:#3d68ff4d;border-radius:10px;z-index:3}.image-option figure{align-items:center;display:flex;flex-direction:column;height:100%;justify-content:center;margin:0;text-align:center;width:100%}.image-option figure img{max-width:100%;height:auto}.image-option figure img.icon{max-height:100px;width:auto}.image-option figure img.medium{max-width:50%;height:auto}.image-option figure figcaption{margin:1ex}', me = /* @__PURE__ */ L(re, [["styles", [ce]]]), ue = { class: "image-quiz-container" }, de = ["id", "innerHTML"], ge = ["id"], pe = ["aria-multiselectable", "aria-labelledby", "aria-describedby"], fe = /* @__PURE__ */ q({
65
+ }), me = '.image-option{display:flex;position:relative;flex-direction:column;align-items:center;justify-content:center;margin:.5rem;border:solid 2px #c1c7d0;border-radius:10px;background:#fff;width:calc(20% - 2em);min-width:150px;padding:1rem}.image-option--max4{width:calc(25% - 2em);min-width:175px}.image-option--max3{width:calc(33% - 2em)}.image-option--max2{width:calc(50% - 2em);min-width:300px}.image-option--max1{width:calc(100% - 4em);min-width:300px}.image-option:hover{cursor:pointer;box-shadow:0 3px 10px #0000001a;transform:scale(1.04);transition:transform ease-in .1s}.image-option:focus{outline:none;box-shadow:5px 5px #ffbe00,-5px 5px #ffbe00,5px -5px #ffbe00,-5px -5px #ffbe00}.image-option[aria-selected=true]{border-color:#3d68ff}.image-option[aria-selected=true]:after{content:"";position:absolute;width:calc(100% + 2px);height:calc(100% + 2px);background:#3d68ff4d;border-radius:10px;z-index:3}.image-option figure{align-items:center;display:flex;flex-direction:column;height:100%;justify-content:center;margin:0;text-align:center;width:100%}.image-option figure img{max-width:100%;height:auto}.image-option figure img.icon{max-height:100px;width:auto}.image-option figure img.medium{max-width:50%;height:auto}.image-option figure figcaption{margin:1ex}', ue = /* @__PURE__ */ q(ce, [["styles", [me]]]), de = { class: "image-quiz-container" }, ge = ["id", "innerHTML"], pe = ["id"], fe = ["aria-multiselectable", "aria-labelledby", "aria-describedby"], he = /* @__PURE__ */ j({
77
66
  __name: "ImageQuiz.ce",
78
67
  props: {
79
68
  multiple: { type: Boolean, default: !1 },
@@ -87,105 +76,107 @@ const ne = ["aria-labelledby", "aria-selected", "tabindex"], oe = { key: 0 }, se
87
76
  context: { type: String }
88
77
  },
89
78
  emits: ["answer"],
90
- setup(e, { emit: s }) {
91
- const n = s, o = d(() => e.hideChoicesName ? "sr-only" : ""), l = d(() => e.orderChoices ? e.choices : te(e.choices)), p = d(() => e.multiple && e.context !== "pix-junior"), a = P(new Array(e.choices.length).fill(!1)), t = d(() => l.value.filter((i, f) => a.value[f])), { t: m } = G(), O = d(() => {
79
+ setup(e, { emit: n }) {
80
+ const y = n, p = c(() => e.hideChoicesName ? "sr-only" : ""), f = c(() => e.orderChoices ? e.choices : G(e.choices)), u = c(() => e.multiple && e.context !== "pix-junior"), a = k(new Array(e.choices.length).fill(!1)), t = c(() => f.value.filter((i, d) => a.value[d])), { t: l } = Z(), E = c(() => {
92
81
  if (e.multiple)
93
- return t.value.length < 2 ? { answer: "", validity: m("image-quiz.multipleValidity") } : {
94
- answer: t.value.map((f) => f.response ?? f.name).sort().join(","),
82
+ return t.value.length < 2 ? { answer: "", validity: l("image-quiz.multipleValidity") } : {
83
+ answer: t.value.map((d) => d.response ?? d.name).sort().join(","),
95
84
  validity: ""
96
85
  };
97
86
  const i = t.value[0];
98
87
  return i ? {
99
88
  answer: i?.response ?? i?.name ?? "",
100
89
  validity: ""
101
- } : { answer: "", validity: m("image-quiz.validity") };
102
- }), v = k();
103
- M(() => {
104
- n("answer", O.value);
90
+ } : { answer: "", validity: l("image-quiz.validity") };
91
+ }), h = P();
92
+ Q(() => {
93
+ y("answer", E.value);
105
94
  });
106
- const E = d(() => {
95
+ const O = c(() => {
107
96
  const i = a.value.indexOf(!0);
108
97
  return i === -1 ? 0 : i;
109
- }), S = Q("options");
98
+ }), S = D("options");
110
99
  function $(i) {
111
100
  e.multiple || a.value.fill(!1), a.value[i] = !a.value[i];
112
101
  }
113
102
  function I(i) {
114
103
  i = (i + e.choices.length) % e.choices.length, e.multiple || $(i), S.value[i].focus();
115
104
  }
116
- return (i, f) => (r(), g("div", ue, [
105
+ return (i, d) => (o(), m("div", de, [
117
106
  b("label", {
118
- id: c(v),
107
+ id: s(h),
119
108
  class: z(["image-quiz-label", { "sr-only": !e.showName }]),
120
109
  innerHTML: e.name
121
- }, null, 10, de),
122
- p.value ? (r(), g("p", {
110
+ }, null, 10, ge),
111
+ u.value ? (o(), m("p", {
123
112
  key: 0,
124
113
  class: "image-quiz-multiple-instruction",
125
- id: `${c(v)}-instruction`
126
- }, C(i.$t("image-quiz.multipleInstruction")), 9, ge)) : D("", !0),
114
+ id: `${s(h)}-instruction`
115
+ }, C(i.$t("image-quiz.multipleInstruction")), 9, pe)) : M("", !0),
127
116
  b("div", {
128
117
  role: "listbox",
129
118
  class: "image-quiz",
130
119
  "aria-multiselectable": e.multiple,
131
- "aria-labelledby": c(v),
120
+ "aria-labelledby": s(h),
132
121
  "aria-orientation": "horizontal",
133
- "aria-describedby": `${c(v)}-instruction`
122
+ "aria-describedby": `${s(h)}-instruction`
134
123
  }, [
135
- (r(!0), g(R, null, H(l.value, (A, u) => (r(), K(me, {
124
+ (o(!0), m(H, null, K(f.value, (A, r) => (o(), R(ue, {
136
125
  ref_for: !0,
137
126
  ref_key: "options",
138
127
  ref: S,
139
128
  choice: A,
140
129
  "max-choices-per-line": e.maxChoicesPerLine,
141
- key: u,
142
- "name-class": o.value,
130
+ key: r,
131
+ "name-class": p.value,
143
132
  "image-class": e.imageChoicesSize,
144
- selected: a.value[u],
145
- "tab-focusable": u === E.value,
146
- onToggle: (j) => $(u),
147
- onNext: (j) => I(u + 1),
148
- onPrevious: (j) => I(u - 1)
133
+ selected: a.value[r],
134
+ "tab-focusable": r === O.value,
135
+ onToggle: (_) => $(r),
136
+ onNext: (_) => I(r + 1),
137
+ onPrevious: (_) => I(r - 1)
149
138
  }, null, 8, ["choice", "max-choices-per-line", "name-class", "image-class", "selected", "tab-focusable", "onToggle", "onNext", "onPrevious"]))), 128))
150
- ], 8, pe)
139
+ ], 8, fe)
151
140
  ]));
152
141
  }
153
- }), he = "*{box-sizing:border-box}.image-quiz-label{font-size:1.25rem;margin:1rem 0;display:inline-block}.image-quiz-multiple-instruction{font-size:14px;margin:0 16px 5px}.image-quiz-container{padding:10px 0}.image-quiz{display:flex;flex-wrap:wrap;justify-content:space-around}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);border:0}", N = /* @__PURE__ */ L(fe, [["styles", [he]]]);
154
- h.addTranslationsFromGlobResults(/* @__PURE__ */ Object.assign({ "./locales/en.json": U, "./locales/es-419.json": W, "./locales/es.json": X, "./locales/fr.json": Y, "./locales/it.json": ee, "./locales/nl.json": ie }));
155
- function T(e) {
142
+ }), ve = "*{box-sizing:border-box}.image-quiz-label{font-size:1.25rem;margin:1rem 0;display:inline-block}.image-quiz-multiple-instruction{font-size:14px;margin:0 16px 5px}.image-quiz-container{padding:10px 0}.image-quiz{display:flex;flex-wrap:wrap;justify-content:space-around}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);border:0}", L = /* @__PURE__ */ q(he, [["styles", [ve]]]);
143
+ g.addTranslationsFromGlobResults(/* @__PURE__ */ Object.assign({ "./locales/de-AT.json": W, "./locales/en.json": X, "./locales/es-419.json": Y, "./locales/es.json": ee, "./locales/fr-BE.json": ie, "./locales/fr.json": te, "./locales/it.json": ae, "./locales/nl.json": ne }));
144
+ function N(e) {
156
145
  return {
157
146
  ...e,
158
- maxChoicesPerLine: Z(e.maxChoicesPerLine),
147
+ maxChoicesPerLine: J(e.maxChoicesPerLine),
159
148
  imageChoicesSize: w(e.imageChoicesSize),
160
149
  context: w(e.context),
161
- choices: e.choices.map((s) => ({
162
- ...s,
163
- image: J(s.image),
164
- response: w(s.response)
150
+ choices: e.choices.map((n) => ({
151
+ ...n,
152
+ image: U(n.image),
153
+ response: w(n.response)
165
154
  }))
166
155
  };
167
156
  }
168
- const V = B(N, {
157
+ const T = B(L, {
169
158
  configureApp(e) {
170
- h.changeLanguage(document?.documentElement?.lang || navigator.language), e.use(h);
159
+ g.changeLanguage(document?.documentElement?.lang || navigator.language), e.use(g);
171
160
  }
172
161
  });
173
- V.prototype.normalizeProps = T;
174
- window.customElements.define("image-quiz", V);
175
- const _ = B(N, {
162
+ T.prototype.normalizeProps = N;
163
+ window.customElements.define("image-quiz", T);
164
+ const V = B(L, {
176
165
  configureApp(e) {
177
- h.changeLanguage(document?.documentElement?.lang || navigator.language), e.use(h);
166
+ g.changeLanguage(document?.documentElement?.lang || navigator.language), e.use(g);
178
167
  }
179
168
  });
180
- _.prototype.normalizeProps = T;
181
- window.customElements.define("qcu-image", _);
169
+ V.prototype.normalizeProps = N;
170
+ window.customElements.define("qcu-image", V);
182
171
  export {
183
- N as I,
184
- ie as _,
185
- ee as a,
186
- Y as b,
187
- X as c,
188
- W as d,
189
- U as e,
190
- T as n
172
+ L as I,
173
+ ne as _,
174
+ ae as a,
175
+ te as b,
176
+ ie as c,
177
+ ee as d,
178
+ Y as e,
179
+ X as f,
180
+ W as g,
181
+ N as n
191
182
  };
package/dist/index.js CHANGED
@@ -3,9 +3,13 @@ import "./components/capacity-calculation.ce.js.js";
3
3
  import "./components/clickable-image.ce.js.js";
4
4
  import "./components/complete-phrase.ce.js.js";
5
5
  import "./components/flip-cards.ce.js.js";
6
- import "./image-quiz.ce-BFISPs8m.js";
6
+ import "./image-quiz.ce-CXOFcx1H.js";
7
7
  import "./components/image-quizzes.ce.js.js";
8
8
  import "./components/message-conversation.ce.js.js";
9
+ import "./components/mdp-classement.ce.js.js";
10
+ import "./components/phishing-message.ce.js.js";
11
+ import "./components/phishing-notification.ce.js.js";
12
+ import "./components/pix-anonymisation.ce.js.js";
9
13
  import "./components/pix-article.ce.js.js";
10
14
  import "./components/pix-carousel.ce.js.js";
11
15
  import "./components/pix-cursor.ce.js.js";
@@ -14,9 +18,7 @@ import "./components/llm-compare-messages.ce.js.js";
14
18
  import "./components/llm-prompt-select.ce.js.js";
15
19
  import "./components/qcm-deepfake.ce.js.js";
16
20
  import "./components/quiz-stepper.ce.js.js";
17
- import "./components/pix-anonymisation.ce.js.js";
18
- import "./components/phishing-message.ce.js.js";
19
- import "./components/phishing-notification.ce.js.js";
20
21
  import "./components/select-conversation.ce.js.js";
21
22
  import "./components/template-mail.ce.js.js";
22
23
  import "./components/test-top-mdp.ce.js.js";
24
+ import "./components/trouver-mdp-rs.ce.js.js";
package/dist/metadata.js CHANGED
@@ -15,10 +15,10 @@ const e = "usable", c = {
15
15
  accessibility: y,
16
16
  isInteractive: v,
17
17
  mobileUsability: $
18
- }, I = "accessible", p = !0, U = "usable", d = {
19
- accessibility: I,
20
- isInteractive: p,
21
- mobileUsability: U
18
+ }, d = "accessible", I = !0, p = "usable", U = {
19
+ accessibility: d,
20
+ isInteractive: I,
21
+ mobileUsability: p
22
22
  }, g = "accessible", j = !0, f = "usable", h = {
23
23
  accessibility: g,
24
24
  isInteractive: j,
@@ -27,11 +27,11 @@ const e = "usable", c = {
27
27
  accessibility: x,
28
28
  isInteractive: q,
29
29
  mobileUsability: k
30
- }, O = "accessible", E = !1, w = "usable", A = {
30
+ }, O = "accessible", E = !0, w = "usable", A = {
31
31
  accessibility: O,
32
32
  isInteractive: E,
33
33
  mobileUsability: w
34
- }, B = "accessible", C = !0, D = "usable", F = {
34
+ }, B = "accessible", C = !1, D = "usable", F = {
35
35
  accessibility: B,
36
36
  isInteractive: C,
37
37
  mobileUsability: D
@@ -43,54 +43,62 @@ const e = "usable", c = {
43
43
  accessibility: L,
44
44
  isInteractive: M,
45
45
  mobileUsability: N
46
- }, Q = "accessible", R = !1, S = "usable", T = {
46
+ }, Q = "accessible", R = !0, S = "usable", T = {
47
47
  accessibility: Q,
48
48
  isInteractive: R,
49
49
  mobileUsability: S
50
- }, V = "accessible", W = !0, X = "usable", Y = {
50
+ }, V = "accessible", W = !1, X = "usable", Y = {
51
51
  accessibility: V,
52
52
  isInteractive: W,
53
53
  mobileUsability: X
54
- }, Z = "accessible", ii = !0, si = "not-recommended", ti = {
54
+ }, Z = "accessible", ii = !0, si = "usable", ti = {
55
55
  accessibility: Z,
56
56
  isInteractive: ii,
57
57
  mobileUsability: si
58
- }, ei = "accessible", ci = !1, ai = "unusable", li = {
58
+ }, ei = "accessible", ci = !0, ai = "not-recommended", li = {
59
59
  accessibility: ei,
60
60
  isInteractive: ci,
61
61
  mobileUsability: ai
62
- }, oi = "accessible", bi = !1, ni = "usable", mi = {
62
+ }, oi = "accessible", bi = !1, ni = "unusable", mi = {
63
63
  accessibility: oi,
64
64
  isInteractive: bi,
65
65
  mobileUsability: ni
66
- }, _i = "accessible", ri = !0, yi = "usable", vi = {
66
+ }, _i = "accessible", ri = !1, yi = "usable", vi = {
67
67
  accessibility: _i,
68
68
  isInteractive: ri,
69
69
  mobileUsability: yi
70
- }, $i = "accessible", ui = !0, Ii = "not-recommended", pi = {
70
+ }, $i = "accessible", ui = !0, di = "usable", Ii = {
71
71
  accessibility: $i,
72
72
  isInteractive: ui,
73
- mobileUsability: Ii
74
- }, Ui = "accessible", di = !0, gi = "usable", ji = {
75
- accessibility: Ui,
76
- isInteractive: di,
73
+ mobileUsability: di
74
+ }, pi = "accessible", Ui = !0, gi = "not-recommended", ji = {
75
+ accessibility: pi,
76
+ isInteractive: Ui,
77
77
  mobileUsability: gi
78
78
  }, fi = "accessible", hi = !0, xi = "usable", qi = {
79
79
  accessibility: fi,
80
80
  isInteractive: hi,
81
81
  mobileUsability: xi
82
- }, ki = "accessible", zi = !1, Oi = "usable", Ei = {
82
+ }, ki = "accessible", zi = !0, Oi = "usable", Ei = {
83
83
  accessibility: ki,
84
84
  isInteractive: zi,
85
85
  mobileUsability: Oi
86
- }, wi = "accessible", Ai = !0, Bi = "usable", Ci = {
86
+ }, wi = "accessible", Ai = !1, Bi = "usable", Ci = {
87
87
  accessibility: wi,
88
88
  isInteractive: Ai,
89
89
  mobileUsability: Bi
90
- }, Di = /* @__PURE__ */ Object.assign({ "./calcul-impact/calcul-impact.metadata.json": c, "./capacity-calculation/capacity-calculation.metadata.json": b, "./clickable-image/clickable-image.metadata.json": r, "./complete-phrase/complete-phrase.metadata.json": u, "./flip-cards/flip-cards.metadata.json": d, "./image-quiz/image-quiz.metadata.json": h, "./image-quiz/image-quizzes.metadata.json": z, "./message-conversation/message-conversation.metadata.json": A, "./phishing-message/phishing-message.metadata.json": F, "./phishing-notification/phishing-notification.metadata.json": K, "./pix-anonymisation/pix-anonymisation.metadata.json": P, "./pix-article/pix-article.metadata.json": T, "./pix-carousel/pix-carousel.metadata.json": Y, "./pix-cursor/pix-cursor.metadata.json": ti, "./pix-llm/llm-compare-messages.metadata.json": li, "./pix-llm/llm-messages.metadata.json": mi, "./pix-llm/llm-prompt-select.metadata.json": vi, "./qcm-deepfake/qcm-deepfake.metadata.json": pi, "./quiz-stepper/quiz-stepper.metadata.json": ji, "./select-conversation/select-conversation.metadata.json": qi, "./template-mail/template-mail.metadata.json": Ei, "./test-top-mdp/test-top-mdp.metadata.json": Ci }), Fi = Object.fromEntries(Object.entries(Di).map(([i, s]) => [
90
+ }, Di = "accessible", Fi = !0, Gi = "usable", Hi = {
91
+ accessibility: Di,
92
+ isInteractive: Fi,
93
+ mobileUsability: Gi
94
+ }, Ji = "accessible", Ki = !0, Li = "usable", Mi = {
95
+ accessibility: Ji,
96
+ isInteractive: Ki,
97
+ mobileUsability: Li
98
+ }, Ni = /* @__PURE__ */ Object.assign({ "./calcul-impact/calcul-impact.metadata.json": c, "./capacity-calculation/capacity-calculation.metadata.json": b, "./clickable-image/clickable-image.metadata.json": r, "./complete-phrase/complete-phrase.metadata.json": u, "./flip-cards/flip-cards.metadata.json": U, "./image-quiz/image-quiz.metadata.json": h, "./image-quiz/image-quizzes.metadata.json": z, "./mdp-classement/mdp-classement.metadata.json": A, "./message-conversation/message-conversation.metadata.json": F, "./phishing-message/phishing-message.metadata.json": K, "./phishing-notification/phishing-notification.metadata.json": P, "./pix-anonymisation/pix-anonymisation.metadata.json": T, "./pix-article/pix-article.metadata.json": Y, "./pix-carousel/pix-carousel.metadata.json": ti, "./pix-cursor/pix-cursor.metadata.json": li, "./pix-llm/llm-compare-messages.metadata.json": mi, "./pix-llm/llm-messages.metadata.json": vi, "./pix-llm/llm-prompt-select.metadata.json": Ii, "./qcm-deepfake/qcm-deepfake.metadata.json": ji, "./quiz-stepper/quiz-stepper.metadata.json": qi, "./select-conversation/select-conversation.metadata.json": Ei, "./template-mail/template-mail.metadata.json": Ci, "./test-top-mdp/test-top-mdp.metadata.json": Hi, "./trouver-mdp-rs/trouver-mdp-rs.metadata.json": Mi }), Pi = Object.fromEntries(Object.entries(Ni).map(([i, s]) => [
91
99
  i.replace(/^.*\/([^/]+)\.metadata\.json$/, "$1"),
92
100
  s
93
101
  ]));
94
102
  export {
95
- Fi as metadata
103
+ Pi as metadata
96
104
  };