@1024pix/epreuves-components 2.2.6 → 2.4.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 (35) hide show
  1. package/dist/ButtonTooltip.ce-CjtFa5aM.js +44 -0
  2. package/dist/{LLMMessage.ce-qbRxqNxR.js → LLMMessage.ce-Cjpb0CiE.js} +22 -22
  3. package/dist/{Loading.ce-CiVWBT3g.js → Loading.ce-1tk4uU9c.js} +1 -1
  4. package/dist/NavigationButton.ce-CxI2QW8z.js +59 -0
  5. package/dist/{Retry-CuUMOAZi.js → Retry-CY90VQJl.js} +1 -1
  6. package/dist/{_plugin-vue_export-helper-D7ghZaw4.js → _plugin-vue_export-helper-DOoVeFcJ.js} +26 -26
  7. package/dist/components/calcul-impact.ce.js.js +11 -11
  8. package/dist/components/capacity-calculation.ce.js.js +31 -31
  9. package/dist/components/clickable-image.ce.js.js +10 -10
  10. package/dist/components/complete-phrase.ce.js.js +85 -91
  11. package/dist/components/flip-cards.ce.js.js +11 -11
  12. package/dist/components/image-quiz.ce.js.js +2 -2
  13. package/dist/components/image-quizzes.ce.js.js +2 -2
  14. package/dist/components/llm-compare-messages.ce.js.js +3 -3
  15. package/dist/components/llm-messages.ce.js.js +3 -3
  16. package/dist/components/llm-prompt-select.ce.js.js +4 -4
  17. package/dist/components/message-conversation.ce.js.js +21 -21
  18. package/dist/components/mobile-shell.ce.js.js +8 -5
  19. package/dist/components/phishing-message.ce.js.js +261 -0
  20. package/dist/components/phishing-notification.ce.js.js +355 -0
  21. package/dist/components/pix-article.ce.js.js +5 -5
  22. package/dist/components/pix-carousel.ce.js.js +19 -18
  23. package/dist/components/pix-cursor.ce.js.js +28 -28
  24. package/dist/components/qcm-deepfake.ce.js.js +19 -19
  25. package/dist/components/select-conversation.ce.js.js +104 -0
  26. package/dist/{i18n-DX3ApBSH.js → i18n-ecSMtuba.js} +74 -53
  27. package/dist/{image-quiz.ce-3HDl6Z67.js → image-quiz.ce-CpI6lZ9m.js} +15 -15
  28. package/dist/index-4XnHmtKv.js +11905 -0
  29. package/dist/index.js +4 -1
  30. package/dist/metadata.js +44 -32
  31. package/dist/schema.js +63 -24
  32. package/dist/{shadow-dom-CFAQERh6.js → shadow-dom-DZbyKUWP.js} +1 -1
  33. package/dist/temporal.utils-B23shw3k.js +4958 -0
  34. package/package.json +1 -1
  35. package/dist/NavigationButton.ce-DF5ScHc4.js +0 -98
@@ -1,15 +1,15 @@
1
- import { s as we, n as ve, d as Re, i as Ce } from "./_plugin-vue_export-helper-D7ghZaw4.js";
1
+ import { s as ve, k as Re, d as Ce, l as Pe } from "./_plugin-vue_export-helper-DOoVeFcJ.js";
2
2
  const d = (o) => typeof o == "string", V = () => {
3
3
  let o, e;
4
4
  const t = new Promise((i, s) => {
5
5
  o = i, e = s;
6
6
  });
7
7
  return t.resolve = o, t.reject = e, t;
8
- }, se = (o) => o == null ? "" : "" + o, Pe = (o, e, t) => {
8
+ }, se = (o) => o == null ? "" : "" + o, $e = (o, e, t) => {
9
9
  o.forEach((i) => {
10
10
  e[i] && (t[i] = e[i]);
11
11
  });
12
- }, $e = /###/g, ie = (o) => o && o.indexOf("###") > -1 ? o.replace($e, ".") : o, ne = (o) => !o || d(o), A = (o, e, t) => {
12
+ }, Ne = /###/g, ie = (o) => o && o.indexOf("###") > -1 ? o.replace(Ne, ".") : o, ne = (o) => !o || d(o), A = (o, e, t) => {
13
13
  const i = d(e) ? e.split(".") : e;
14
14
  let s = 0;
15
15
  for (; s < i.length - 1; ) {
@@ -34,7 +34,7 @@ const d = (o) => typeof o == "string", V = () => {
34
34
  for (; a.obj === void 0 && r.length; )
35
35
  n = `${r[r.length - 1]}.${n}`, r = r.slice(0, r.length - 1), a = A(o, r, Object), a?.obj && typeof a.obj[`${a.k}.${n}`] < "u" && (a.obj = void 0);
36
36
  a.obj[`${a.k}.${n}`] = t;
37
- }, Ne = (o, e, t, i) => {
37
+ }, ke = (o, e, t, i) => {
38
38
  const {
39
39
  obj: s,
40
40
  k: n
@@ -47,7 +47,7 @@ const d = (o) => typeof o == "string", V = () => {
47
47
  } = A(o, e);
48
48
  if (t && Object.prototype.hasOwnProperty.call(t, i))
49
49
  return t[i];
50
- }, ke = (o, e, t) => {
50
+ }, Ee = (o, e, t) => {
51
51
  const i = B(o, t);
52
52
  return i !== void 0 ? i : B(e, t);
53
53
  }, xe = (o, e, t) => {
@@ -55,7 +55,7 @@ const d = (o) => typeof o == "string", V = () => {
55
55
  i !== "__proto__" && i !== "constructor" && (i in o ? d(o[i]) || o[i] instanceof String || d(e[i]) || e[i] instanceof String ? t && (o[i] = e[i]) : xe(o[i], e[i], t) : o[i] = e[i]);
56
56
  return o;
57
57
  }, T = (o) => o.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
58
- var Ee = {
58
+ var Fe = {
59
59
  "&": "&amp;",
60
60
  "<": "&lt;",
61
61
  ">": "&gt;",
@@ -63,8 +63,8 @@ var Ee = {
63
63
  "'": "&#39;",
64
64
  "/": "&#x2F;"
65
65
  };
66
- const Fe = (o) => d(o) ? o.replace(/[&<>"'\/]/g, (e) => Ee[e]) : o;
67
- class je {
66
+ const je = (o) => d(o) ? o.replace(/[&<>"'\/]/g, (e) => Fe[e]) : o;
67
+ class Ie {
68
68
  constructor(e) {
69
69
  this.capacity = e, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
70
70
  }
@@ -76,11 +76,11 @@ class je {
76
76
  return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e, i), this.regExpQueue.push(e), i;
77
77
  }
78
78
  }
79
- const Ie = [" ", ",", "?", "!", ";"], Te = new je(20), De = (o, e, t) => {
79
+ const Te = [" ", ",", "?", "!", ";"], De = new Ie(20), Ke = (o, e, t) => {
80
80
  e = e || "", t = t || "";
81
- const i = Ie.filter((r) => e.indexOf(r) < 0 && t.indexOf(r) < 0);
81
+ const i = Te.filter((r) => e.indexOf(r) < 0 && t.indexOf(r) < 0);
82
82
  if (i.length === 0) return !0;
83
- const s = Te.getRegExp(`(${i.map((r) => r === "?" ? "\\?" : r).join("|")})`);
83
+ const s = De.getRegExp(`(${i.map((r) => r === "?" ? "\\?" : r).join("|")})`);
84
84
  let n = !s.test(o);
85
85
  if (!n) {
86
86
  const r = o.indexOf(t);
@@ -107,7 +107,7 @@ const Ie = [" ", ",", "?", "!", ";"], Te = new je(20), De = (o, e, t) => {
107
107
  s = r;
108
108
  }
109
109
  return s;
110
- }, M = (o) => o?.replace("_", "-"), Ke = {
110
+ }, M = (o) => o?.replace("_", "-"), Ve = {
111
111
  type: "logger",
112
112
  log(o) {
113
113
  this.output("log", o);
@@ -127,7 +127,7 @@ class J {
127
127
  this.init(e, t);
128
128
  }
129
129
  init(e, t = {}) {
130
- this.prefix = t.prefix || "i18next:", this.logger = e || Ke, this.options = t, this.debug = t.debug;
130
+ this.prefix = t.prefix || "i18next:", this.logger = e || Ve, this.options = t, this.debug = t.debug;
131
131
  }
132
132
  log(...e) {
133
133
  return this.forward(e, "log", "", !0);
@@ -266,7 +266,7 @@ var ye = {
266
266
  }
267
267
  };
268
268
  const Se = Symbol("i18next/PATH_KEY");
269
- function Ve() {
269
+ function Ae() {
270
270
  const o = [], e = /* @__PURE__ */ Object.create(null);
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;
@@ -274,13 +274,13 @@ function Ve() {
274
274
  function Z(o, e) {
275
275
  const {
276
276
  [Se]: t
277
- } = o(Ve());
277
+ } = o(Ae());
278
278
  return t.join(e?.keySeparator ?? ".");
279
279
  }
280
280
  const oe = {}, Y = (o) => !d(o) && typeof o != "boolean" && typeof o != "number";
281
281
  class _ extends W {
282
282
  constructor(e, t = {}) {
283
- super(), Pe(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = P.create("translator");
283
+ super(), $e(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = P.create("translator");
284
284
  }
285
285
  changeLanguage(e) {
286
286
  e && (this.language = e);
@@ -302,7 +302,7 @@ class _ extends W {
302
302
  i === void 0 && (i = ":");
303
303
  const s = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator;
304
304
  let n = t.ns || this.options.defaultNS || [];
305
- const r = i && e.indexOf(i) > -1, a = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !De(e, i, s);
305
+ const r = i && e.indexOf(i) > -1, a = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !Ke(e, i, s);
306
306
  if (r && !a) {
307
307
  const l = e.match(this.interpolator.nestingRegexp);
308
308
  if (l && l.length > 0)
@@ -359,8 +359,8 @@ class _ extends W {
359
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 = c;
361
361
  E && !c && N && (v = k);
362
- const Oe = Y(v), Le = Object.prototype.toString.apply(v);
363
- if (E && v && Oe && L.indexOf(Le) < 0 && !(d(y) && Array.isArray(v))) {
362
+ const Le = Y(v), we = Object.prototype.toString.apply(v);
363
+ if (E && v && Le && L.indexOf(we) < 0 && !(d(y) && Array.isArray(v))) {
364
364
  if (!s.returnObjects && !this.options.returnObjects) {
365
365
  this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
366
366
  const R = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(x, v, {
@@ -607,7 +607,7 @@ const ue = {
607
607
  pluralCategories: ["one", "other"]
608
608
  })
609
609
  };
610
- class Ae {
610
+ class Ue {
611
611
  constructor(e, t = {}) {
612
612
  this.languageUtils = e, this.options = t, this.logger = P.create("pluralResolver"), this.pluralRulesCache = {};
613
613
  }
@@ -655,7 +655,7 @@ class Ae {
655
655
  }
656
656
  }
657
657
  const he = (o, e, t, i = ".", s = !0) => {
658
- let n = ke(o, e, t);
658
+ let n = Ee(o, e, t);
659
659
  return !n && s && d(t) && (n = G(o, t, i), n === void 0 && (n = G(e, t, i))), n;
660
660
  }, Q = (o) => o.replace(/\$/g, "$$$$");
661
661
  class ce {
@@ -685,7 +685,7 @@ class ce {
685
685
  maxReplaces: L,
686
686
  alwaysFormat: y
687
687
  } = e.interpolation;
688
- this.escape = t !== void 0 ? t : Fe, this.escapeValue = i !== void 0 ? i : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = n ? T(n) : r || "{{", this.suffix = a ? T(a) : l || "}}", this.formatSeparator = u || ",", this.unescapePrefix = h ? "" : f || "-", this.unescapeSuffix = this.unescapePrefix ? "" : h || "", this.nestingPrefix = p ? T(p) : g || T("$t("), this.nestingSuffix = c ? T(c) : x || T(")"), this.nestingOptionsSeparator = S || ",", this.maxReplaces = L || 1e3, this.alwaysFormat = y !== void 0 ? y : !1, this.resetRegExp();
688
+ this.escape = t !== void 0 ? t : je, this.escapeValue = i !== void 0 ? i : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = n ? T(n) : r || "{{", this.suffix = a ? T(a) : l || "}}", this.formatSeparator = u || ",", this.unescapePrefix = h ? "" : f || "-", this.unescapeSuffix = this.unescapePrefix ? "" : h || "", this.nestingPrefix = p ? T(p) : g || T("$t("), this.nestingSuffix = c ? T(c) : x || T(")"), this.nestingOptionsSeparator = S || ",", this.maxReplaces = L || 1e3, this.alwaysFormat = y !== void 0 ? y : !1, this.resetRegExp();
689
689
  }
690
690
  reset() {
691
691
  this.options && this.init(this.options);
@@ -776,7 +776,7 @@ class ce {
776
776
  return e;
777
777
  }
778
778
  }
779
- const Ue = (o) => {
779
+ const Me = (o) => {
780
780
  let e = o.toLowerCase().trim();
781
781
  const t = {};
782
782
  if (o.indexOf("(") > -1) {
@@ -806,8 +806,8 @@ const Ue = (o) => {
806
806
  let a = e[r];
807
807
  return a || (a = o(M(i), s), e[r] = a), a(t);
808
808
  };
809
- }, Me = (o) => (e, t, i) => o(M(t), i)(e);
810
- class He {
809
+ }, He = (o) => (e, t, i) => o(M(t), i)(e);
810
+ class ze {
811
811
  constructor(e = {}) {
812
812
  this.logger = P.create("formatter"), this.options = e, this.init(e);
813
813
  }
@@ -815,7 +815,7 @@ class He {
815
815
  interpolation: {}
816
816
  }) {
817
817
  this.formatSeparator = t.interpolation.formatSeparator || ",";
818
- const i = t.cacheInBuiltFormats ? de : Me;
818
+ const i = t.cacheInBuiltFormats ? de : He;
819
819
  this.formats = {
820
820
  number: i((s, n) => {
821
821
  const r = new Intl.NumberFormat(s, {
@@ -866,7 +866,7 @@ class He {
866
866
  const {
867
867
  formatName: u,
868
868
  formatOptions: h
869
- } = Ue(l);
869
+ } = Me(l);
870
870
  if (this.formats[u]) {
871
871
  let f = a;
872
872
  try {
@@ -886,10 +886,10 @@ class He {
886
886
  }, e);
887
887
  }
888
888
  }
889
- const ze = (o, e) => {
889
+ const Be = (o, e) => {
890
890
  o.pending[e] !== void 0 && (delete o.pending[e], o.pendingCount--);
891
891
  };
892
- class Be extends W {
892
+ class Je extends W {
893
893
  constructor(e, t, i, s = {}) {
894
894
  super(), this.backend = e, this.store = t, this.services = i, this.languageUtils = i.languageUtils, this.options = s, this.logger = P.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = s.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = s.maxRetries >= 0 ? s.maxRetries : 5, this.retryTimeout = s.retryTimeout >= 1 ? s.retryTimeout : 350, this.state = {}, this.queue = [], this.backend?.init?.(i, s.backend, s);
895
895
  }
@@ -921,7 +921,7 @@ class Be extends W {
921
921
  }), this.state[e] = t ? -1 : 2, t && i && (this.state[e] = 0);
922
922
  const a = {};
923
923
  this.queue.forEach((l) => {
924
- Ne(l.loaded, [n], r), ze(l, e), t && l.errors.push(t), l.pendingCount === 0 && !l.done && (Object.keys(l.loaded).forEach((u) => {
924
+ ke(l.loaded, [n], r), Be(l, e), t && l.errors.push(t), l.pendingCount === 0 && !l.done && (Object.keys(l.loaded).forEach((u) => {
925
925
  a[u] || (a[u] = {});
926
926
  const h = l.loaded[u];
927
927
  h.length && h.forEach((f) => {
@@ -1077,7 +1077,7 @@ const ge = () => ({
1077
1077
  },
1078
1078
  cacheInBuiltFormats: !0
1079
1079
  }), pe = (o) => (d(o.ns) && (o.ns = [o.ns]), d(o.fallbackLng) && (o.fallbackLng = [o.fallbackLng]), d(o.fallbackNS) && (o.fallbackNS = [o.fallbackNS]), o.supportedLngs?.indexOf?.("cimode") < 0 && (o.supportedLngs = o.supportedLngs.concat(["cimode"])), typeof o.initImmediate == "boolean" && (o.initAsync = o.initImmediate), o), z = () => {
1080
- }, Je = (o) => {
1080
+ }, _e = (o) => {
1081
1081
  Object.getOwnPropertyNames(Object.getPrototypeOf(o)).forEach((t) => {
1082
1082
  typeof o[t] == "function" && (o[t] = o[t].bind(o));
1083
1083
  });
@@ -1086,7 +1086,7 @@ class U extends W {
1086
1086
  constructor(e = {}, t) {
1087
1087
  if (super(), this.options = pe(e), this.services = {}, this.logger = P, this.modules = {
1088
1088
  external: []
1089
- }, Je(this), t && !this.isInitialized && !e.isClone) {
1089
+ }, _e(this), t && !this.isInitialized && !e.isClone) {
1090
1090
  if (!this.options.initAsync)
1091
1091
  return this.init(e, t), this;
1092
1092
  setTimeout(() => {
@@ -1109,16 +1109,16 @@ class U extends W {
1109
1109
  if (!this.options.isClone) {
1110
1110
  this.modules.logger ? P.init(s(this.modules.logger), this.options) : P.init(null, this.options);
1111
1111
  let u;
1112
- this.modules.formatter ? u = this.modules.formatter : u = He;
1112
+ this.modules.formatter ? u = this.modules.formatter : u = ze;
1113
1113
  const h = new le(this.options);
1114
1114
  this.store = new ae(this.options.resources, this.options);
1115
1115
  const f = this.services;
1116
- f.logger = P, f.resourceStore = this.store, f.languageUtils = h, f.pluralResolver = new Ae(h, {
1116
+ f.logger = P, f.resourceStore = this.store, f.languageUtils = h, f.pluralResolver = new Ue(h, {
1117
1117
  prepend: this.options.pluralSeparator,
1118
1118
  simplifyPluralSuffix: this.options.simplifyPluralSuffix
1119
1119
  }), this.options.interpolation.format && this.options.interpolation.format !== i.interpolation.format && this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"), u && (!this.options.interpolation.format || this.options.interpolation.format === i.interpolation.format) && (f.formatter = s(u), f.formatter.init && f.formatter.init(f, this.options), this.options.interpolation.format = f.formatter.format.bind(f.formatter)), f.interpolator = new ce(this.options), f.utils = {
1120
1120
  hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
1121
- }, f.backendConnector = new Be(s(this.modules.backend), f.resourceStore, f, this.options), f.backendConnector.on("*", (g, ...c) => {
1121
+ }, f.backendConnector = new Je(s(this.modules.backend), f.resourceStore, f, this.options), f.backendConnector.on("*", (g, ...c) => {
1122
1122
  this.emit(g, ...c);
1123
1123
  }), this.modules.languageDetector && (f.languageDetector = s(this.modules.languageDetector), f.languageDetector.init && f.languageDetector.init(f, this.options.detection, this.options)), this.modules.i18nFormat && (f.i18nFormat = s(this.modules.i18nFormat), f.i18nFormat.init && f.i18nFormat.init(this)), this.translator = new _(this.services, this.options), this.translator.on("*", (g, ...c) => {
1124
1124
  this.emit(g, ...c);
@@ -1332,13 +1332,13 @@ m.hasLoadedNamespace;
1332
1332
  m.loadNamespaces;
1333
1333
  m.loadLanguages;
1334
1334
  var be = Symbol();
1335
- function qe(o, {
1335
+ function et(o, {
1336
1336
  i18next: e,
1337
1337
  rerenderOn: t = ["languageChanged", "loaded", "added", "removed"],
1338
1338
  slotStart: i = "{",
1339
1339
  slotEnd: s = "}"
1340
1340
  }) {
1341
- const n = we(/* @__PURE__ */ new Date()), r = () => ve(() => {
1341
+ const n = ve(/* @__PURE__ */ new Date()), r = () => Re(() => {
1342
1342
  n.value = /* @__PURE__ */ new Date();
1343
1343
  }), a = () => n.value;
1344
1344
  t.forEach((h) => {
@@ -1352,7 +1352,7 @@ function qe(o, {
1352
1352
  e.on(h, r);
1353
1353
  break;
1354
1354
  }
1355
- }), o.component("i18next", Ye);
1355
+ }), o.component("i18next", Qe);
1356
1356
  const l = () => e.isInitialized;
1357
1357
  o.config.globalProperties.$t = me(
1358
1358
  e.t.bind(e),
@@ -1366,12 +1366,32 @@ function qe(o, {
1366
1366
  });
1367
1367
  o.config.globalProperties.$i18next = u, o.provide(be, {
1368
1368
  i18next: u,
1369
- slotPattern: We(i, s),
1369
+ slotPattern: Ye(i, s),
1370
1370
  withAccessRecording(h, f) {
1371
1371
  return me(h, a, f);
1372
1372
  }
1373
1373
  });
1374
1374
  }
1375
+ function tt(o, e) {
1376
+ const { i18next: t, withAccessRecording: i } = Oe();
1377
+ let s;
1378
+ return s = t.getFixedT(null, null, void 0), {
1379
+ i18next: t,
1380
+ t: i(s, We(t, o))
1381
+ };
1382
+ }
1383
+ function We(o, e = []) {
1384
+ let t;
1385
+ return () => {
1386
+ if (t === void 0)
1387
+ if (o.isInitialized) {
1388
+ const s = (typeof e == "string" ? [e] : e).filter((n) => !o.hasLoadedNamespace(n));
1389
+ s.length ? (t = !1, o.loadNamespaces(s).then(() => t = !0)) : t = !0;
1390
+ } else
1391
+ return !1;
1392
+ return t;
1393
+ };
1394
+ }
1375
1395
  function me(o, e, t) {
1376
1396
  return new Proxy(o, {
1377
1397
  apply: function(i, s, n) {
@@ -1379,19 +1399,19 @@ function me(o, e, t) {
1379
1399
  }
1380
1400
  });
1381
1401
  }
1382
- function _e() {
1383
- const o = Ce(be);
1402
+ function Oe() {
1403
+ const o = Pe(be);
1384
1404
  if (!o)
1385
1405
  throw new Error(
1386
1406
  "i18next-vue: Make sure to register the i18next-vue plugin using app.use(...)."
1387
1407
  );
1388
1408
  return o;
1389
1409
  }
1390
- function We(o, e) {
1410
+ function Ye(o, e) {
1391
1411
  const t = `${o}\\s*([a-z0-9\\-]+)\\s*${e}`;
1392
1412
  return new RegExp(t, "gi");
1393
1413
  }
1394
- var Ye = Re({
1414
+ var Qe = Ce({
1395
1415
  props: {
1396
1416
  translation: {
1397
1417
  type: String,
@@ -1399,7 +1419,7 @@ var Ye = Re({
1399
1419
  }
1400
1420
  },
1401
1421
  setup(o, { slots: e }) {
1402
- const { slotPattern: t } = _e();
1422
+ const { slotPattern: t } = Oe();
1403
1423
  return () => {
1404
1424
  const i = o.translation, s = [];
1405
1425
  let n, r = 0;
@@ -1412,21 +1432,22 @@ var Ye = Re({
1412
1432
  };
1413
1433
  }
1414
1434
  });
1415
- const Qe = "translation";
1416
- async function et(o) {
1435
+ const Ge = "translation";
1436
+ async function st(o) {
1417
1437
  for (const [e, t] of Object.entries(o)) {
1418
1438
  const i = e.match(/\/([^/]+)\.json$/)[1];
1419
- await Ge(i, t);
1439
+ await Ze(i, t);
1420
1440
  }
1421
1441
  }
1422
- async function Ge(o, e) {
1423
- await Ze(), m.addResourceBundle(o, Qe, e, !0, !0);
1442
+ async function Ze(o, e) {
1443
+ await Xe(), m.addResourceBundle(o, Ge, e, !0, !0);
1424
1444
  }
1425
- async function Ze() {
1445
+ async function Xe() {
1426
1446
  m.isInitialized || await m.init();
1427
1447
  }
1428
1448
  export {
1429
- et as a,
1430
- qe as b,
1431
- m as i
1449
+ st as a,
1450
+ et as b,
1451
+ m as i,
1452
+ tt as u
1432
1453
  };
@@ -1,6 +1,6 @@
1
- import { d as B, r as I, L, c as g, o as u, J as x, q as p, x as f, y as b, a as h, m as T, A as $, _ as N, k as d, M as E, g as F, F as k, b as A, e as H, f as P } from "./_plugin-vue_export-helper-D7ghZaw4.js";
1
+ import { d as N, r as B, g as I, c as g, o as u, L as x, i as p, h as f, n as b, a as h, m as T, t as $, _ as L, y as d, N as E, q as F, F as k, b as A, e as H, f as P } from "./_plugin-vue_export-helper-DOoVeFcJ.js";
2
2
  import { u as K, a as R } from "./normalize-props-AlmAfi_u.js";
3
- function D(e, s = J) {
3
+ function D(e, s = V) {
4
4
  const a = [...e];
5
5
  for (let o = a.length - 1; o > 0; o--) {
6
6
  const l = s() % (o + 1);
@@ -8,10 +8,10 @@ function D(e, s = J) {
8
8
  }
9
9
  return a;
10
10
  }
11
- function J() {
11
+ function V() {
12
12
  return Math.floor(Math.random() * 2 ** 32);
13
13
  }
14
- const V = ["aria-labelledby", "aria-selected", "tabindex"], G = { key: 0 }, U = ["id"], W = ["id"], X = /* @__PURE__ */ B({
14
+ const G = ["aria-labelledby", "aria-selected", "tabindex"], J = { key: 0 }, U = ["id"], W = ["id"], X = /* @__PURE__ */ N({
15
15
  __name: "ImageOption.ce",
16
16
  props: {
17
17
  choice: { type: Object },
@@ -23,12 +23,12 @@ const V = ["aria-labelledby", "aria-selected", "tabindex"], G = { key: 0 }, U =
23
23
  },
24
24
  emits: ["toggle", "next", "previous"],
25
25
  setup(e, { expose: s }) {
26
- const a = e, o = I();
26
+ const a = e, o = B();
27
27
  function l() {
28
28
  o.value.focus();
29
29
  }
30
30
  s({ focus: l });
31
- const n = L();
31
+ const n = I();
32
32
  return (c, t) => (u(), g("div", {
33
33
  ref_key: "el",
34
34
  ref: o,
@@ -44,7 +44,7 @@ const V = ["aria-labelledby", "aria-selected", "tabindex"], G = { key: 0 }, U =
44
44
  t[3] || (t[3] = x(p((r) => c.$emit("next"), ["stop", "prevent"]), ["down", "right"]))
45
45
  ]
46
46
  }, [
47
- e.choice.image ? (u(), g("figure", G, [
47
+ e.choice.image ? (u(), g("figure", J, [
48
48
  h("img", T(e.choice.image, {
49
49
  class: e.imageClass,
50
50
  alt: ""
@@ -57,9 +57,9 @@ const V = ["aria-labelledby", "aria-selected", "tabindex"], G = { key: 0 }, U =
57
57
  key: 1,
58
58
  id: f(n)
59
59
  }, $(e.choice.name), 9, W))
60
- ], 42, V));
60
+ ], 42, G));
61
61
  }
62
- }), Y = '.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}', Z = /* @__PURE__ */ N(X, [["styles", [Y]]]), _ = ["id", "innerHTML"], ee = ["aria-multiselectable", "aria-labelledby"], ie = /* @__PURE__ */ B({
62
+ }), Y = '.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}', Z = /* @__PURE__ */ L(X, [["styles", [Y]]]), _ = ["id", "innerHTML"], ee = ["aria-multiselectable", "aria-labelledby"], ie = /* @__PURE__ */ N({
63
63
  __name: "ImageQuiz.ce",
64
64
  props: {
65
65
  multiple: { type: Boolean, default: !1 },
@@ -73,7 +73,7 @@ const V = ["aria-labelledby", "aria-selected", "tabindex"], G = { key: 0 }, U =
73
73
  },
74
74
  emits: ["answer"],
75
75
  setup(e, { emit: s }) {
76
- const a = s, o = d(() => e.hideChoicesName ? "sr-only" : ""), l = d(() => e.orderChoices ? e.choices : D(e.choices)), n = I(new Array(e.choices.length).fill(!1)), c = d(() => l.value.filter((i, C) => n.value[C])), t = d(() => c.value.map((i) => i.response ?? i.name).sort().join(",")), r = L();
76
+ const a = s, o = d(() => e.hideChoicesName ? "sr-only" : ""), l = d(() => e.orderChoices ? e.choices : D(e.choices)), n = B(new Array(e.choices.length).fill(!1)), c = d(() => l.value.filter((i, C) => n.value[C])), t = d(() => c.value.map((i) => i.response ?? i.name).sort().join(",")), r = I();
77
77
  E(t, () => {
78
78
  a("answer", t.value);
79
79
  }, { immediate: !1 });
@@ -118,7 +118,7 @@ const V = ["aria-labelledby", "aria-selected", "tabindex"], G = { key: 0 }, U =
118
118
  ], 8, ee)
119
119
  ], 64));
120
120
  }
121
- }), te = "*{box-sizing:border-box}.image-quiz-label{font-size:1.25rem;margin:1rem 0;display:inline-block}.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}", j = /* @__PURE__ */ N(ie, [["styles", [te]]]);
121
+ }), te = "*{box-sizing:border-box}.image-quiz-label{font-size:1.25rem;margin:1rem 0;display:inline-block}.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}", j = /* @__PURE__ */ L(ie, [["styles", [te]]]);
122
122
  function S(e) {
123
123
  return {
124
124
  ...e,
@@ -129,12 +129,12 @@ function S(e) {
129
129
  }))
130
130
  };
131
131
  }
132
- const M = P(j);
133
- M.prototype.normalizeProps = S;
134
- window.customElements.define("image-quiz", M);
135
132
  const q = P(j);
136
133
  q.prototype.normalizeProps = S;
137
- window.customElements.define("qcu-image", q);
134
+ window.customElements.define("image-quiz", q);
135
+ const M = P(j);
136
+ M.prototype.normalizeProps = S;
137
+ window.customElements.define("qcu-image", M);
138
138
  export {
139
139
  j as I,
140
140
  S as n