@1024pix/epreuves-components 2.1.0 → 2.1.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.
@@ -1,12 +1,13 @@
1
- import { d as y, k as b, c as o, o as l, f as n, E as g, t as c, D as k, _ as C, O as E, P as j, r as _, l as R, A as V, Q as O, g as G, F as I, a as S, b as M, G as P, q as Q, y as F, e as H } from "../_plugin-vue_export-helper-BGEtPlxS.js";
2
- import { i as a, a as U, b as W } from "../i18n-D3E2CT0o.js";
1
+ import { d as y, k as b, c as i, o, a as s, E as v, t as c, D as w, _, O as A, P as E, r as x, l as O, A as V, Q as G, L as M, g as P, F as $, b as C, e as Q, G as F, y as k, R as U, M as W, q as H, f as J } from "../_plugin-vue_export-helper-DRMLIazq.js";
2
+ import { i as a, a as K, b as X } from "../i18n-_lDmquwK.js";
3
+ import { R as Y } from "../Retry-CNZNkXbY.js";
3
4
  import { u as Z } from "../normalize-props-AlmAfi_u.js";
4
- const J = {}, K = {}, X = {}, Y = {
5
+ const ee = {}, te = {}, ae = {}, ne = {
5
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." } }
6
- }, ee = {}, te = {}, ae = ["aria-hidden"], ie = ["aria-level"], se = ["src"], ne = {
7
+ }, oe = {}, ie = {}, re = ["aria-hidden"], se = ["aria-level"], le = ["src"], de = {
7
8
  key: 1,
8
9
  class: "description"
9
- }, le = ["src"], oe = ["aria-level"], re = /* @__PURE__ */ y({
10
+ }, ce = ["src"], ue = ["aria-level"], fe = /* @__PURE__ */ y({
10
11
  __name: "NarrativeAnswer.ce",
11
12
  props: {
12
13
  messageTitle: { type: String },
@@ -18,43 +19,43 @@ const J = {}, K = {}, X = {}, Y = {
18
19
  type: { type: String }
19
20
  },
20
21
  setup(e) {
21
- const f = e, i = b(() => f.type === "success" || f.type === "fail" ? a.t("qcm-deepfake.out") : a.t("qcm-deepfake.waiting"));
22
- return (r, t) => (l(), o("div", {
22
+ const u = e, n = b(() => u.type === "success" || u.type === "fail" ? a.t("qcm-deepfake.out") : a.t("qcm-deepfake.waiting"));
23
+ return (l, t) => (o(), i("div", {
23
24
  class: "right-container",
24
25
  "aria-hidden": e.type !== e.stateAnswer
25
26
  }, [
26
- n("div", {
27
+ s("div", {
27
28
  class: "subtitle",
28
29
  role: "heading",
29
30
  "aria-level": e.titleLevel
30
- }, c(i.value), 9, ie),
31
- e.type === "search" ? (l(), o("img", {
31
+ }, c(n.value), 9, se),
32
+ e.type === "search" ? (o(), i("img", {
32
33
  key: 0,
33
34
  src: e.image,
34
35
  alt: ""
35
- }, null, 8, se)) : g("", !0),
36
- e.type === "success" || e.type === "fail" ? (l(), o("p", ne, c(e.title), 1)) : g("", !0),
37
- e.type !== "search" ? (l(), o("img", {
36
+ }, null, 8, le)) : v("", !0),
37
+ e.type === "success" || e.type === "fail" ? (o(), i("p", de, c(e.title), 1)) : v("", !0),
38
+ e.type !== "search" ? (o(), i("img", {
38
39
  key: 2,
39
40
  src: e.image,
40
41
  alt: ""
41
- }, null, 8, le)) : g("", !0),
42
- e.messageTitle ? (l(), o("div", {
42
+ }, null, 8, ce)) : v("", !0),
43
+ e.messageTitle ? (o(), i("div", {
43
44
  key: 3,
44
- class: k(["answer-block", e.stateAnswer])
45
+ class: w(["answer-block", e.stateAnswer])
45
46
  }, [
46
- n("div", {
47
+ s("div", {
47
48
  class: "answer-block__title",
48
49
  role: "heading",
49
50
  "aria-level": e.titleLevel + 1
50
- }, c(e.messageTitle), 9, oe),
51
- n("p", null, c(e.messageDescription), 1)
52
- ], 2)) : g("", !0)
53
- ], 8, ae));
51
+ }, c(e.messageTitle), 9, ue),
52
+ s("p", null, c(e.messageDescription), 1)
53
+ ], 2)) : v("", !0)
54
+ ], 8, re));
54
55
  }
55
- }), de = ".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}", ce = /* @__PURE__ */ C(re, [["styles", [de]], ["__scopeId", "data-v-2a82aa38"]]), ue = ["aria-disabled"], fe = /* @__PURE__ */ y({
56
+ }), ge = ".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}", pe = /* @__PURE__ */ _(fe, [["styles", [ge]], ["__scopeId", "data-v-2a82aa38"]]), me = ["aria-disabled"], ve = /* @__PURE__ */ y({
56
57
  __name: "Option.ce",
57
- props: /* @__PURE__ */ E({
58
+ props: /* @__PURE__ */ A({
58
59
  option: { type: String },
59
60
  value: { type: Number },
60
61
  readonly: { type: Boolean }
@@ -63,49 +64,55 @@ const J = {}, K = {}, X = {}, Y = {
63
64
  modelModifiers: {}
64
65
  }),
65
66
  emits: ["update:modelValue"],
66
- setup(e, { expose: f }) {
67
- const i = j(e, "modelValue"), r = _(!1), t = b(() => i.value.length === 3 && !r.value || e.readonly);
68
- function h(v) {
67
+ setup(e, { expose: u }) {
68
+ const n = E(e, "modelValue"), l = x(!1), t = b(() => n.value.length === 3 && !l.value || e.readonly);
69
+ function h(p) {
69
70
  if (t.value) {
70
- v.preventDefault();
71
+ p.preventDefault();
71
72
  return;
72
73
  }
73
- v.target.checked ? i.value.push(e.option) : i.value = i.value.filter((m) => m !== e.option);
74
+ p.target.checked ? n.value.push(e.option) : n.value = n.value.filter((g) => g !== e.option);
74
75
  }
75
- return f({
76
- isChecked: r
77
- }), (v, p) => (l(), o("label", {
78
- class: k({ selected: r.value, disabled: t.value })
76
+ return u({
77
+ isChecked: l
78
+ }), (p, m) => (o(), i("label", {
79
+ class: w({ selected: l.value, disabled: t.value })
79
80
  }, [
80
- R(n("input", {
81
+ O(s("input", {
81
82
  type: "checkbox",
82
83
  name: "options",
83
84
  onClick: h,
84
85
  "aria-disabled": t.value,
85
- "onUpdate:modelValue": p[0] || (p[0] = (m) => r.value = m)
86
- }, null, 8, ue), [
87
- [O, r.value]
86
+ "onUpdate:modelValue": m[0] || (m[0] = (g) => l.value = g)
87
+ }, null, 8, me), [
88
+ [G, l.value]
88
89
  ]),
89
90
  V(c(e.option), 1)
90
91
  ], 2));
91
92
  }
92
- }), me = ".selected[data-v-a067b43a]{background:#f7f5ff}.disabled[data-v-a067b43a]{cursor:not-allowed;background:#efefef}.disabled.selected[data-v-a067b43a]{background:#d6d5dd}", ge = /* @__PURE__ */ C(fe, [["styles", [me]], ["__scopeId", "data-v-a067b43a"]]), ve = { class: "container" }, pe = { class: "left-side" }, be = ["aria-level"], he = { class: "left-side__description" }, _e = { class: "left-side__action" }, ye = ["aria-disabled", "aria-describedby"], ke = {
93
- key: 0,
94
- "aria-hidden": "true",
95
- width: "20",
96
- height: "20",
97
- viewBox: "0 0 20 20",
98
- fill: "none",
99
- xmlns: "http://www.w3.org/2000/svg"
100
- }, Ce = {
93
+ }), be = ".selected[data-v-a067b43a]{background:#f7f5ff}.disabled[data-v-a067b43a]{cursor:not-allowed;background:#efefef}.disabled.selected[data-v-a067b43a]{background:#d6d5dd}", he = /* @__PURE__ */ _(ve, [["styles", [be]], ["__scopeId", "data-v-a067b43a"]]), ye = /* @__PURE__ */ y({
94
+ __name: "Button.ce",
95
+ props: {
96
+ label: { type: String },
97
+ state: { type: String }
98
+ },
99
+ setup(e) {
100
+ return (u, n) => (o(), i("button", {
101
+ class: w(["epreuve-button", e.state])
102
+ }, [
103
+ M(u.$slots, "icon"),
104
+ V(" " + c(e.label), 1)
105
+ ], 2));
106
+ }
107
+ }), _e = ".epreuve-button{--pix-neutral-0: #fff;--pix-neutral-800: #253858;--pix-neutral-900: #122647;--pix-secondary-500: #ffcb33;--pix-secondary-700: #a16206}.epreuve-button.primary{--background-color: var(--pix-neutral-800);--background-color-hover: var(--pix-neutral-900);--color: var(--pix-neutral-0);--color-hover: var(--pix-neutral-0)}.epreuve-button.warning{--background-color: var(--pix-secondary-500);--background-color-hover: var(--pix-secondary-700);--color: var(--pix-neutral-900);--color-hover: var(--pix-neutral-0)}.epreuve-button.primary,.epreuve-button.warning{align-items:center;background-color:var(--background-color);border:2px solid transparent;border-radius:8px;color:var(--color);cursor:pointer;display:flex;font-family:Roboto,sans-serif;font-size:1rem;font-weight:700;justify-content:center;gap:8px;line-height:24px;margin:0 auto;outline:none;padding:8px 24px;transition:background-color ease .5s,color ease .5s;width:fit-content;white-space:nowrap}:is(.epreuve-button.primary,.epreuve-button.warning)[aria-disabled=true]{cursor:not-allowed;opacity:.5}:is(.epreuve-button.primary,.epreuve-button.warning):not([aria-disabled=true]):hover{background-color:var(--background-color-hover);color:var(--color-hover);transition:background-color ease .5s,color ease .5s}:is(.epreuve-button.primary,.epreuve-button.warning):not([aria-disabled=true]):hover svg{color:var(--color-hover);transition:color ease .5s}:is(.epreuve-button.primary,.epreuve-button.warning):focus,:is(.epreuve-button.primary,.epreuve-button.warning):focus-visible{background-color:var(--background-color-hover);color:var(--color-hover);outline:1px solid var(--pix-neutral-0);outline-offset:-5px}", ke = /* @__PURE__ */ _(ye, [["styles", [_e]]]), xe = { class: "container" }, we = { class: "left-side" }, qe = ["aria-level"], Ie = { class: "left-side__description" }, Se = { class: "left-side__action" }, $e = {
101
108
  key: 0,
102
109
  id: "optionsSelectedInfo",
103
110
  class: "left-side__lower-legend",
104
111
  "aria-hidden": "true"
105
- }, we = {
112
+ }, Ce = {
106
113
  class: "right-side",
107
114
  "aria-live": "polite"
108
- }, xe = /* @__PURE__ */ y({
115
+ }, Ve = /* @__PURE__ */ y({
109
116
  __name: "QcmDeepfake.ce",
110
117
  props: {
111
118
  titleLevel: { default: 2, type: Number },
@@ -115,8 +122,8 @@ const J = {}, K = {}, X = {}, Y = {
115
122
  searchImage: { type: String },
116
123
  searchDelay: { default: 3e3, type: Number }
117
124
  },
118
- setup(e, { expose: f }) {
119
- const i = _([]), r = [2, 4, 5], t = _("info"), h = G("optionsNode"), v = a.t("qcm-deepfake.options", { returnObjects: !0 }), p = ["👩‍🎤", "🎧", "🎶", "👩", "🎙️"], m = v.map((d, s) => `${p[s]} ${d}`), N = m.filter((d, s) => r.includes(s + 1)), D = [
125
+ setup(e, { expose: u }) {
126
+ const n = x([]), l = [2, 4, 5], t = x("info"), h = P("optionsNode"), p = a.t("qcm-deepfake.options", { returnObjects: !0 }), m = ["👩‍🎤", "🎧", "🎶", "👩", "🎙️"], g = p.map((d, r) => `${m[r]} ${d}`), D = g.filter((d, r) => l.includes(r + 1)), L = [
120
127
  {
121
128
  type: "info",
122
129
  image: e.infoImage
@@ -139,85 +146,85 @@ const J = {}, K = {}, X = {}, Y = {
139
146
  type: "search",
140
147
  image: e.searchImage
141
148
  }
142
- ], w = b(() => i.value.length !== 3 || t.value === "search"), T = b(() => t.value === "search" ? a.t("qcm-deepfake.loading") : t.value === "info" ? a.t("qcm-deepfake.generateVideo") : a.t("qcm-deepfake.restart")), L = b(() => t.value === "info" ? a.t("qcm-deepfake.generateVideoInfo", { count: r.length - i.value.length }) : t.value === "fail" ? a.t("qcm-deepfake.restartInfo") : "");
143
- function z() {
144
- if (!w.value)
145
- return t.value === "info" ? B() : x();
149
+ ], q = b(() => n.value.length !== 3 || t.value === "search"), T = b(() => t.value === "search" ? a.t("qcm-deepfake.loading") : t.value === "info" ? a.t("qcm-deepfake.generateVideo") : a.t("qcm-deepfake.restart")), z = b(() => t.value === "info" ? a.t("qcm-deepfake.generateVideoInfo", { count: l.length - n.value.length }) : t.value === "fail" ? a.t("qcm-deepfake.restartInfo") : "");
150
+ function B() {
151
+ return q.value ? !1 : t.value === "info" ? R() : I();
146
152
  }
147
- function x() {
153
+ function I() {
148
154
  h.value.forEach((d) => {
149
155
  d.isChecked = !1;
150
- }), i.value = [], t.value = "info";
156
+ }), n.value = [], t.value = "info";
151
157
  }
152
- async function B() {
153
- const d = i.value.every((s) => N.includes(s.trim()));
154
- t.value = "search", await new Promise((s) => setTimeout(s, e.searchDelay)), d ? t.value = "success" : t.value = "fail";
158
+ async function R() {
159
+ const d = n.value.every((r) => D.includes(r.trim()));
160
+ t.value = "search", await new Promise((r) => setTimeout(r, e.searchDelay)), d ? t.value = "success" : t.value = "fail";
155
161
  }
156
- return f({
157
- reset: x
158
- }), (d, s) => (l(), o("div", ve, [
159
- n("form", pe, [
160
- n("div", {
162
+ return u({
163
+ reset: I
164
+ }), (d, r) => (o(), i("div", xe, [
165
+ s("form", we, [
166
+ s("div", {
161
167
  class: "left-side__subtitle",
162
168
  role: "heading",
163
169
  "aria-level": e.titleLevel
164
- }, c(d.$t("qcm-deepfake.in")), 9, be),
165
- n("fieldset", null, [
166
- n("legend", he, c(d.$t("qcm-deepfake.selectThreeElements")), 1),
167
- (l(!0), o(I, null, S(P(m), (u, q) => (l(), M(ge, {
170
+ }, c(d.$t("qcm-deepfake.in")), 9, qe),
171
+ s("fieldset", null, [
172
+ s("legend", Ie, c(d.$t("qcm-deepfake.selectThreeElements")), 1),
173
+ (o(!0), i($, null, C(F(g), (f, S) => (o(), Q(he, {
168
174
  ref_for: !0,
169
175
  ref_key: "optionsNode",
170
176
  ref: h,
171
- modelValue: i.value,
172
- "onUpdate:modelValue": s[0] || (s[0] = (A) => i.value = A),
173
- key: q,
177
+ modelValue: n.value,
178
+ "onUpdate:modelValue": r[0] || (r[0] = (j) => n.value = j),
179
+ key: S,
174
180
  class: "left-side__options",
175
- option: u,
176
- value: q + 1,
181
+ option: f,
182
+ value: S + 1,
177
183
  readonly: t.value !== "info"
178
184
  }, null, 8, ["modelValue", "option", "value", "readonly"]))), 128))
179
185
  ]),
180
- n("div", _e, [
181
- n("button", {
182
- onClick: Q(z, ["prevent"]),
183
- class: k(["left-side__button", { generate: t.value === "info" }]),
184
- "aria-disabled": w.value,
186
+ s("div", Se, [
187
+ k(ke, {
188
+ onClick: H(B, ["prevent"]),
189
+ "aria-disabled": q.value,
190
+ label: T.value,
191
+ state: t.value === "info" ? "primary" : "warning",
185
192
  "aria-describedby": ["success", "search"].includes(t.value) ? void 0 : "optionsSelectedInfo"
186
- }, [
187
- t.value === "success" || t.value === "fail" ? (l(), o("svg", ke, [...s[1] || (s[1] = [
188
- n("path", {
189
- d: "M9.98002 16.836C8.07572 16.836 6.4603 16.1728 5.13377 14.8462C3.80725 13.5197 3.14398 11.9043 3.14398 9.99998C3.14398 8.09568 3.80725 6.48026 5.13377 5.15373C6.4603 3.8272 8.07572 3.16394 9.98002 3.16394C10.9684 3.16394 11.9108 3.36686 12.8073 3.77269C13.7038 4.17839 14.4713 4.76095 15.1096 5.5204V4.03707C15.1096 3.7897 15.1933 3.58234 15.3606 3.41498C15.528 3.24762 15.7354 3.16394 15.9827 3.16394C16.2302 3.16394 16.4377 3.24762 16.605 3.41498C16.7724 3.58234 16.8561 3.7897 16.8561 4.03707V8.29352C16.8561 8.5595 16.7645 8.78394 16.5815 8.96686C16.3986 9.14991 16.1741 9.24144 15.9081 9.24144H11.6417C11.3957 9.24144 11.1895 9.15776 11.0231 8.9904C10.8568 8.82304 10.7736 8.61561 10.7736 8.36811C10.7736 8.12213 10.8572 7.91595 11.0246 7.74956C11.192 7.58318 11.3993 7.49998 11.6467 7.49998H14.2438C13.7993 6.74207 13.199 6.14589 12.4427 5.71144C11.6866 5.277 10.8657 5.05977 9.98002 5.05977C8.6078 5.05977 7.44141 5.54005 6.48086 6.50061C5.52016 7.4613 5.03982 8.62776 5.03982 9.99998C5.03982 11.3722 5.52016 12.5387 6.48086 13.4994C7.44141 14.4599 8.6078 14.9402 9.98002 14.9402C10.8879 14.9402 11.7218 14.713 12.4817 14.2587C13.2416 13.8046 13.8384 13.1963 14.2723 12.4339C14.402 12.2189 14.5845 12.0692 14.8198 11.9848C15.055 11.9005 15.2895 11.8996 15.5236 11.9823C15.7733 12.0651 15.9534 12.2275 16.064 12.4696C16.1744 12.7118 16.1675 12.9401 16.0431 13.1544C15.4537 14.2688 14.6221 15.161 13.5484 15.831C12.4745 16.501 11.285 16.836 9.98002 16.836Z",
190
- fill: "#122647"
191
- }, null, -1)
192
- ])])) : g("", !0),
193
- V(" " + c(T.value), 1)
194
- ], 10, ye),
195
- ["success", "search"].includes(t.value) ? g("", !0) : (l(), o("p", Ce, c(L.value), 1))
193
+ }, U({ _: 2 }, [
194
+ t.value === "success" || t.value === "fail" ? {
195
+ name: "icon",
196
+ fn: W(() => [
197
+ k(Y)
198
+ ]),
199
+ key: "0"
200
+ } : void 0
201
+ ]), 1032, ["aria-disabled", "label", "state", "aria-describedby"]),
202
+ ["success", "search"].includes(t.value) ? v("", !0) : (o(), i("p", $e, c(z.value), 1))
196
203
  ])
197
204
  ]),
198
- n("div", we, [
199
- (l(), o(I, null, S(D, (u) => F(ce, {
200
- key: u,
205
+ s("div", Ce, [
206
+ (o(), i($, null, C(L, (f) => k(pe, {
207
+ key: f,
201
208
  "title-level": e.titleLevel,
202
- type: u.type,
203
- image: u.image,
204
- title: u.title,
205
- "message-title": u.messageTitle,
206
- "message-description": u.messageDescription,
209
+ type: f.type,
210
+ image: f.image,
211
+ title: f.title,
212
+ "message-title": f.messageTitle,
213
+ "message-description": f.messageDescription,
207
214
  "state-answer": t.value
208
215
  }, null, 8, ["title-level", "type", "image", "title", "message-title", "message-description", "state-answer"])), 64))
209
216
  ])
210
217
  ]));
211
218
  }
212
- }), qe = "legend,label,p,div[role=heading]{font-family:Nunito,Roboto,sans-serif;color:#253858}", Ie = ".container[data-v-70eee258]{display:flex;gap:.8rem}.title[data-v-70eee258]{font-size:1.75rem;font-weight:700;text-align:center;margin-bottom:16px}.left-side[data-v-70eee258]{min-width:60%;border:solid 1px #b0d3f4;background:#fff;padding:.8rem;border-radius:10px}.left-side__lower-legend[data-v-70eee258]{font-size:.875rem;color:#5e6c84}.left-side__subtitle[data-v-70eee258]{font-size:1.25rem;font-weight:700;text-align:center}.left-side__options[data-v-70eee258]{display:flex;border:solid 1px #5e6c84;padding:.6rem;border-radius:5px;gap:.5rem}.left-side__description[data-v-70eee258]{font-weight:700}.left-side__button[data-v-70eee258]{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-70eee258]{background:#613fdd;color:#fff}.left-side__button[aria-disabled=true][data-v-70eee258]{cursor:not-allowed;background:#d3d3d3}.left-side__action[data-v-70eee258]{display:flex;flex-direction:column;align-items:center;text-align:center}.right-side[data-v-70eee258]{display:grid;border:solid 1px #b0d3f4;background:#fff;padding:.8rem;text-align:center;border-radius:10px}fieldset[data-v-70eee258]{border:none;display:flex;flex-direction:column;gap:.8rem}@media(max-width:770px){.container[data-v-70eee258]{flex-wrap:wrap}.left-side[data-v-70eee258],.right-side[data-v-70eee258]{width:100%}}", Se = /* @__PURE__ */ C(xe, [["styles", [qe, Ie]], ["__scopeId", "data-v-70eee258"]]);
213
- U(/* @__PURE__ */ Object.assign({ "./locales/en.json": J, "./locales/es-419.json": K, "./locales/es.json": X, "./locales/fr.json": Y, "./locales/it.json": ee, "./locales/nl.json": te })).catch((e) => console.error(e));
214
- const $ = H(Se, {
219
+ }), Ne = "legend,label,p,div[role=heading]{font-family:Nunito,Roboto,sans-serif;color:#253858}", De = ".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%}}", Le = /* @__PURE__ */ _(Ve, [["styles", [Ne, De]], ["__scopeId", "data-v-66f8d52f"]]);
220
+ K(/* @__PURE__ */ Object.assign({ "./locales/en.json": ee, "./locales/es-419.json": te, "./locales/es.json": ae, "./locales/fr.json": ne, "./locales/it.json": oe, "./locales/nl.json": ie })).catch((e) => console.error(e));
221
+ const N = J(Le, {
215
222
  configureApp(e) {
216
- a.changeLanguage(document?.documentElement?.lang || navigator.language), e.use(W, { i18next: a });
223
+ a.changeLanguage(document?.documentElement?.lang || navigator.language), e.use(X, { i18next: a });
217
224
  }
218
225
  });
219
- $.prototype.normalizeProps = (e) => ({
226
+ N.prototype.normalizeProps = (e) => ({
220
227
  ...e,
221
228
  titleLevel: Z(e.titleLevel)
222
229
  });
223
- window.customElements.define("qcm-deepfake", $);
230
+ window.customElements.define("qcm-deepfake", N);
@@ -1,4 +1,4 @@
1
- import { s as Le, n as we, d as ve, i as Re } from "./_plugin-vue_export-helper-BGEtPlxS.js";
1
+ import { s as Le, n as we, d as ve, i as Re } from "./_plugin-vue_export-helper-DRMLIazq.js";
2
2
  const d = (o) => typeof o == "string", V = () => {
3
3
  let o, e;
4
4
  const t = new Promise((i, s) => {
@@ -107,7 +107,7 @@ const je = [" ", ",", "?", "!", ";"], Ie = new Fe(20), Te = (o, e, t) => {
107
107
  s = r;
108
108
  }
109
109
  return s;
110
- }, U = (o) => o?.replace("_", "-"), De = {
110
+ }, M = (o) => o?.replace("_", "-"), De = {
111
111
  type: "logger",
112
112
  log(o) {
113
113
  this.output("log", o);
@@ -535,12 +535,12 @@ class le {
535
535
  this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = P.create("languageUtils");
536
536
  }
537
537
  getScriptPartFromCode(e) {
538
- if (e = U(e), !e || e.indexOf("-") < 0) return null;
538
+ if (e = M(e), !e || e.indexOf("-") < 0) return null;
539
539
  const t = e.split("-");
540
540
  return t.length === 2 || (t.pop(), t[t.length - 1].toLowerCase() === "x") ? null : this.formatLanguageCode(t.join("-"));
541
541
  }
542
542
  getLanguagePartFromCode(e) {
543
- if (e = U(e), !e || e.indexOf("-") < 0) return e;
543
+ if (e = M(e), !e || e.indexOf("-") < 0) return e;
544
544
  const t = e.split("-");
545
545
  return this.formatLanguageCode(t[0]);
546
546
  }
@@ -618,7 +618,7 @@ class Ve {
618
618
  this.pluralRulesCache = {};
619
619
  }
620
620
  getRule(e, t = {}) {
621
- const i = U(e === "dev" ? "en" : e), s = t.ordinal ? "ordinal" : "cardinal", n = JSON.stringify({
621
+ const i = M(e === "dev" ? "en" : e), s = t.ordinal ? "ordinal" : "cardinal", n = JSON.stringify({
622
622
  cleanedCode: i,
623
623
  type: s
624
624
  });
@@ -804,9 +804,9 @@ const Ue = (o) => {
804
804
  });
805
805
  const r = i + JSON.stringify(n);
806
806
  let a = e[r];
807
- return a || (a = o(U(i), s), e[r] = a), a(t);
807
+ return a || (a = o(M(i), s), e[r] = a), a(t);
808
808
  };
809
- }, Me = (o) => (e, t, i) => o(U(t), i)(e);
809
+ }, Me = (o) => (e, t, i) => o(M(t), i)(e);
810
810
  class He {
811
811
  constructor(e = {}) {
812
812
  this.logger = P.create("formatter"), this.options = e, this.init(e);
@@ -1082,7 +1082,7 @@ const de = () => ({
1082
1082
  typeof o[t] == "function" && (o[t] = o[t].bind(o));
1083
1083
  });
1084
1084
  };
1085
- class M extends W {
1085
+ class U extends W {
1086
1086
  constructor(e = {}, t) {
1087
1087
  if (super(), this.options = ge(e), this.services = {}, this.logger = P, this.modules = {
1088
1088
  external: []
@@ -1275,7 +1275,8 @@ class M extends W {
1275
1275
  return e.toLowerCase().indexOf("-latn") > 1 ? "ltr" : t.indexOf(i.getLanguagePartFromCode(e)) > -1 || e.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
1276
1276
  }
1277
1277
  static createInstance(e = {}, t) {
1278
- return new M(e, t);
1278
+ const i = new U(e, t);
1279
+ return i.createInstance = U.createInstance, i;
1279
1280
  }
1280
1281
  cloneInstance(e = {}, t = z) {
1281
1282
  const i = e.forkResourceStore;
@@ -1284,7 +1285,7 @@ class M extends W {
1284
1285
  ...this.options,
1285
1286
  ...e,
1286
1287
  isClone: !0
1287
- }, n = new M(s);
1288
+ }, n = new U(s);
1288
1289
  if ((e.debug !== void 0 || e.prefix !== void 0) && (n.logger = n.logger.clone(e)), ["store", "services", "language"].forEach((a) => {
1289
1290
  n[a] = this[a];
1290
1291
  }), n.services = {
@@ -1315,8 +1316,7 @@ class M extends W {
1315
1316
  };
1316
1317
  }
1317
1318
  }
1318
- const m = M.createInstance();
1319
- m.createInstance = M.createInstance;
1319
+ const m = U.createInstance();
1320
1320
  m.createInstance;
1321
1321
  m.dir;
1322
1322
  m.init;
@@ -1,4 +1,4 @@
1
- import { d as B, r as I, J as N, c as g, o as u, H as x, q as p, G as f, D as b, f as h, m as T, t as $, _ as P, k as d, K as E, g as F, F as k, a as H, b as K, e as L } from "./_plugin-vue_export-helper-BGEtPlxS.js";
1
+ import { d as B, r as I, J as N, c as g, o as u, H as x, q as p, G as f, D as b, a as h, m as T, t as $, _ as P, k as d, K as E, g as F, F as k, b as H, e as K, f as L } from "./_plugin-vue_export-helper-DRMLIazq.js";
2
2
  import { u as A, a as D } from "./normalize-props-AlmAfi_u.js";
3
3
  function R(e, s = G) {
4
4
  const a = [...e];
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@ 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-Qe3SbGDF.js";
6
+ import "./image-quiz.ce-By2A_llO.js";
7
7
  import "./components/image-quizzes.ce.js.js";
8
8
  import "./components/message-conversation.ce.js.js";
9
9
  import "./components/pix-article.ce.js.js";
@@ -1,4 +1,4 @@
1
- import { u as t, p as s } from "./_plugin-vue_export-helper-BGEtPlxS.js";
1
+ import { u as t, p as s } from "./_plugin-vue_export-helper-DRMLIazq.js";
2
2
  const a = Symbol("shadowRoot");
3
3
  function r() {
4
4
  const o = t();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1024pix/epreuves-components",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "description": "A collection of interactive components to be used in Pix challenges or modules",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",