@1024pix/epreuves-components 0.9.3 → 0.9.5

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.
@@ -1,5 +1,5 @@
1
- import { a as B, r as N, k as I, c as d, o as m, z as b, y as f, p as g, q as y, f as h, m as q, t as x, _ as P, l as p, A as L, B as F, F as k, b as O, e as A } from "./_plugin-vue_export-helper-IFwZcQZF.js";
2
- function M(i, u = T) {
1
+ import { a as B, r as N, k as I, c as d, o as m, l as b, n as f, p as g, q as y, f as h, m as q, t as x, _ as P, s as p, v as L, x as F, F as z, b as O, e as M } from "./_plugin-vue_export-helper-CGraGJnO.js";
2
+ function T(i, u = A) {
3
3
  const a = [...i];
4
4
  for (let n = a.length - 1; n > 0; n--) {
5
5
  const l = u() % (n + 1);
@@ -7,7 +7,7 @@ function M(i, u = T) {
7
7
  }
8
8
  return a;
9
9
  }
10
- function T() {
10
+ function A() {
11
11
  return Math.floor(Math.random() * 2 ** 32);
12
12
  }
13
13
  const K = ["aria-labelledby", "aria-selected", "tabindex"], Q = { key: 0 }, R = ["id"], D = ["id"], E = /* @__PURE__ */ B({
@@ -72,7 +72,7 @@ const K = ["aria-labelledby", "aria-selected", "tabindex"], Q = { key: 0 }, R =
72
72
  },
73
73
  emits: ["answer"],
74
74
  setup(i, { emit: u }) {
75
- const a = u, n = p(() => i.hideChoicesName ? "sr-only" : ""), l = p(() => i.orderChoices ? i.choices : M(i.choices)), s = N(new Array(i.choices.length).fill(!1)), o = p(() => l.value.filter((e, $) => s.value[$])), t = p(() => o.value.map((e) => e.response ?? e.name).sort().join(",")), r = I();
75
+ const a = u, n = p(() => i.hideChoicesName ? "sr-only" : ""), l = p(() => i.orderChoices ? i.choices : T(i.choices)), s = N(new Array(i.choices.length).fill(!1)), o = p(() => l.value.filter((e, $) => s.value[$])), t = p(() => o.value.map((e) => e.response ?? e.name).sort().join(",")), r = I();
76
76
  L(t, () => {
77
77
  a("answer", t.value);
78
78
  }, { immediate: !1 });
@@ -86,7 +86,7 @@ const K = ["aria-labelledby", "aria-selected", "tabindex"], Q = { key: 0 }, R =
86
86
  function C(e) {
87
87
  e = (e + i.choices.length) % i.choices.length, i.multiple || w(e), v.value[e].focus();
88
88
  }
89
- return (e, $) => (m(), d(k, null, [
89
+ return (e, $) => (m(), d(z, null, [
90
90
  h("label", {
91
91
  id: g(r),
92
92
  class: y(["image-quiz-label", { "sr-only": !e.showName }])
@@ -98,7 +98,7 @@ const K = ["aria-labelledby", "aria-selected", "tabindex"], Q = { key: 0 }, R =
98
98
  "aria-labelledby": g(r),
99
99
  "aria-orientation": "horizontal"
100
100
  }, [
101
- (m(!0), d(k, null, O(l.value, (j, c) => (m(), A(G, {
101
+ (m(!0), d(z, null, O(l.value, (j, c) => (m(), M(G, {
102
102
  ref_for: !0,
103
103
  ref_key: "options",
104
104
  ref: v,
@@ -109,9 +109,9 @@ const K = ["aria-labelledby", "aria-selected", "tabindex"], Q = { key: 0 }, R =
109
109
  "image-class": i.imageChoicesSize,
110
110
  selected: s.value[c],
111
111
  "tab-focusable": c === S.value,
112
- onToggle: (z) => w(c),
113
- onNext: (z) => C(c + 1),
114
- onPrevious: (z) => C(c - 1)
112
+ onToggle: (k) => w(c),
113
+ onNext: (k) => C(c + 1),
114
+ onPrevious: (k) => C(c - 1)
115
115
  }, null, 8, ["choice", "max-choices-per-line", "name-class", "image-class", "selected", "tab-focusable", "onToggle", "onNext", "onPrevious"]))), 128))
116
116
  ], 8, J)
117
117
  ], 64));