@1024pix/epreuves-components 2.2.1 → 2.2.4

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 (27) hide show
  1. package/dist/{LLMMessage.ce-D_SYQOna.js → LLMMessage.ce-qbRxqNxR.js} +10 -10
  2. package/dist/{Loading.ce-CjAv1WaY.js → Loading.ce-CiVWBT3g.js} +1 -1
  3. package/dist/{NavigationButton.ce-DlErTyfv.js → NavigationButton.ce-DF5ScHc4.js} +9 -9
  4. package/dist/{Retry--whpA3a8.js → Retry-CuUMOAZi.js} +1 -1
  5. package/dist/{_plugin-vue_export-helper-CP5OpzZH.js → _plugin-vue_export-helper-D7ghZaw4.js} +1566 -1541
  6. package/dist/components/calcul-impact.ce.js.js +6 -6
  7. package/dist/components/capacity-calculation.ce.js.js +35 -35
  8. package/dist/components/clickable-image.ce.js.js +72 -71
  9. package/dist/components/complete-phrase.ce.js.js +54 -54
  10. package/dist/components/flip-cards.ce.js.js +11 -11
  11. package/dist/components/image-quiz.ce.js.js +2 -2
  12. package/dist/components/image-quizzes.ce.js.js +2 -2
  13. package/dist/components/llm-compare-messages.ce.js.js +3 -3
  14. package/dist/components/llm-messages.ce.js.js +3 -3
  15. package/dist/components/llm-prompt-select.ce.js.js +6 -6
  16. package/dist/components/message-conversation.ce.js.js +22 -22
  17. package/dist/components/mobile-shell.ce.js.js +27 -0
  18. package/dist/components/pix-article.ce.js.js +4 -4
  19. package/dist/components/pix-carousel.ce.js.js +14 -14
  20. package/dist/components/pix-cursor.ce.js.js +17 -17
  21. package/dist/components/qcm-deepfake.ce.js.js +29 -29
  22. package/dist/{i18n-BB4WILwM.js → i18n-DX3ApBSH.js} +53 -53
  23. package/dist/{image-quiz.ce-UlVFo5Sr.js → image-quiz.ce-3HDl6Z67.js} +24 -24
  24. package/dist/index.js +1 -1
  25. package/dist/schema.js +6 -6
  26. package/dist/{shadow-dom-D3DtD_VO.js → shadow-dom-CFAQERh6.js} +1 -1
  27. package/package.json +1 -1
@@ -1,14 +1,14 @@
1
- import { d as S, c as n, o as t, v as M, a as s, E as L, L as R, B as z, y as g, G as l, _ as h, r as $, K as V, k as w, z as m, t as k, J as P, M as _, F as A, b as N, e as B, f as F } from "../_plugin-vue_export-helper-CP5OpzZH.js";
2
- import { a as G, i as T, b as O } from "../i18n-BB4WILwM.js";
3
- import { B as j, N as D } from "../NavigationButton.ce-DlErTyfv.js";
1
+ import { d as S, c as n, o as t, y as M, a as s, v as L, C as R, G as z, A as g, x as l, _ as h, r as $, M as V, k as w, D as m, t as k, L as P, N as _, F as A, b as N, e as T, f as F } from "../_plugin-vue_export-helper-D7ghZaw4.js";
2
+ import { a as G, i as B, b as O } from "../i18n-DX3ApBSH.js";
3
+ import { B as j, N as D } from "../NavigationButton.ce-DF5ScHc4.js";
4
4
  import { u as C, a as W } from "../normalize-props-AlmAfi_u.js";
5
5
  const Z = {
6
6
  "pix-carousel": { license: "Image license", next: "Next", of: "{{ currentSlide }} of {{ slideLength }}", previous: "Previous", slide: "Slide", title: "Carousel" }
7
- }, J = {}, K = {
7
+ }, Y = {}, q = {
8
8
  "pix-carousel": { license: "Licencia de imagen", next: "Siguiente", of: "{{ currentSlide }} de {{ slideLength }}", previous: "Anterior", slide: "Diapositiva", title: "Carrusel" }
9
- }, Y = {
9
+ }, J = {
10
10
  "pix-carousel": { license: "Licence de l’image", of: "{{ currentSlide }} sur {{ slideLength }}", next: "Suivant", previous: "Précédent", slide: "Diapositive", title: "Carrousel" }
11
- }, q = {
11
+ }, K = {
12
12
  "pix-carousel": { license: "Licenza d'immagine", next: "Avanti", of: "{{ currentSlide }} di {{ slideLength }}", previous: "Precedente", slide: "Diapositiva", title: "Galleria" }
13
13
  }, Q = {
14
14
  "pix-carousel": { license: "Afbeeldingslicentie", next: "Volgende", of: "{{ currentSlide }} van {{ slideLength }}", previous: "Vorige", slide: "Dia", title: "Carrousel" }
@@ -161,7 +161,7 @@ function _e(e, i) {
161
161
  }, null, -1)
162
162
  ])]);
163
163
  }
164
- const Ce = /* @__PURE__ */ h(be, [["render", _e]]), Le = ["aria-roledescription"], $e = ["id"], Se = { class: "footer" }, ke = { class: "control" }, Ae = { class: "slide-info-container" }, Ne = { class: "pagination" }, Be = /* @__PURE__ */ S({
164
+ const Ce = /* @__PURE__ */ h(be, [["render", _e]]), Le = ["aria-roledescription"], $e = ["id"], Se = { class: "footer" }, ke = { class: "control" }, Ae = { class: "slide-info-container" }, Ne = { class: "pagination" }, Te = /* @__PURE__ */ S({
165
165
  __name: "Carousel.ce",
166
166
  props: {
167
167
  randomSlides: { type: Boolean },
@@ -169,11 +169,11 @@ const Ce = /* @__PURE__ */ h(be, [["render", _e]]), Le = ["aria-roledescription"
169
169
  slides: { type: Array },
170
170
  titleLevel: { type: Number },
171
171
  disableAnimation: { type: Boolean },
172
- disableLoop: { type: Boolean },
172
+ enableLoop: { type: Boolean },
173
173
  imageTextDisplay: { type: String }
174
174
  },
175
175
  setup(e) {
176
- const i = e, r = i.titleLevel ?? 2, a = w(() => i.randomSlides ? [...i.slides].sort(() => Math.round(Math.random()) === 0 ? -1 : 1) : i.slides), d = $(0), y = $(1), b = w(() => i.disableLoop && d.value === 0), f = w(() => i.disableLoop && d.value === i.slides.length - 1);
176
+ const i = e, r = i.titleLevel ?? 2, a = w(() => i.randomSlides ? [...i.slides].sort(() => Math.round(Math.random()) === 0 ? -1 : 1) : i.slides), d = $(0), y = $(1), b = w(() => i.enableLoop ? !1 : d.value === 0), f = w(() => i.enableLoop ? !1 : d.value === i.slides.length - 1);
177
177
  function v(o) {
178
178
  y.value = o, d.value = (d.value - o + i.slides.length) % i.slides.length;
179
179
  }
@@ -199,7 +199,7 @@ const Ce = /* @__PURE__ */ h(be, [["render", _e]]), Le = ["aria-roledescription"
199
199
  ]),
200
200
  _: 1
201
201
  }, 8, ["disabled", "aria-controls", "label"]),
202
- (t(!0), n(A, null, N(a.value, (u, p) => (t(), B(fe, {
202
+ (t(!0), n(A, null, N(a.value, (u, p) => (t(), T(fe, {
203
203
  key: p,
204
204
  slide: u,
205
205
  direction: y.value,
@@ -242,7 +242,7 @@ const Ce = /* @__PURE__ */ h(be, [["render", _e]]), Le = ["aria-roledescription"
242
242
  }, null, 8, ["label", "aria-controls", "disabled"])
243
243
  ]),
244
244
  s("div", Ae, [
245
- (t(!0), n(A, null, N(a.value, (u, p) => (t(), B(H, {
245
+ (t(!0), n(A, null, N(a.value, (u, p) => (t(), T(H, {
246
246
  key: p,
247
247
  description: u.description,
248
248
  title: u.title,
@@ -259,11 +259,11 @@ const Ce = /* @__PURE__ */ h(be, [["render", _e]]), Le = ["aria-roledescription"
259
259
  ])
260
260
  ], 8, Le));
261
261
  }
262
- }), Te = "*{--pix-neutral-0: white;--pix-neutral-100: #cdd1d9;--pix-neutral-800: #253858;--pix-primary-100: #cec3f4;--pix-primary-300: #957ee8;--pix-primary-700: #452d9d;--pix-primary-900: #291a5d;font-family:Roboto,sans-serif;color:var(--pix-neutral-800)}section{display:flex;flex-direction:column;gap:12px;overflow:hidden;padding-top:12px}section .slides{display:grid;grid-template-columns:32px auto 32px;gap:16px;width:100%}section .slides .slide{align-items:center;display:flex;grid-row:1;grid-column:2}section .slides .carousel__nav{height:80%;margin:auto 0;background:var(--pix-primary-100);fill:var(--pix-neutral-800);border:none;cursor:pointer;z-index:9;padding:0}section .slides .carousel__nav:hover{background:var(--pix-primary-300);fill:var(--pix-neutral-0)}section .slides .carousel__nav:active,section .slides .carousel__nav:focus,section .slides .carousel__nav:focus-visible{background:var(--pix-primary-700);fill:var(--pix-neutral-0)}section .slides .carousel__nav:focus,section .slides .carousel__nav:focus-visible{outline-offset:-4px;outline:1px solid var(--pix-neutral-0)}section .slides .carousel__nav.previous{border-top-right-radius:1rem;border-bottom-right-radius:1rem}section .slides .carousel__nav.next{border-top-left-radius:1rem;border-bottom-left-radius:1rem}section .slides .carousel__nav.disabled,section .slides .carousel__nav.disabled:hover{background:transparent;cursor:not-allowed;fill:var(--pix-neutral-100)}.footer{padding:16px 56px;display:flex;align-items:start;gap:16px}.footer .footer-separator{border-left:1px solid;width:1px}.footer .control{display:flex;gap:8px;align-items:center}.footer .tooltip-container button.disabled{fill:var(--pix-neutral-100)}.footer .slide-info-container{display:grid;grid-template-columns:1fr}.footer .slide-info-container .pagination{display:inline-flex;align-items:center;font-size:.75rem;font-family:Roboto,sans-serif;font-weight:400;color:var(--pix-primary-900);border-radius:50px;padding:3px 12px;background-color:var(--pix-primary-100);height:18px;text-wrap:nowrap;transform:translateY(-.25rem)}.footer .info{display:grid;overflow:hidden}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}@media only screen and (max-width:576px){section .slides{grid-template-columns:0 100% 0;gap:0}section .slides .carousel__nav{display:none}.footer{flex-direction:column;padding:16px}.footer .footer-separator{display:none}}", je = /* @__PURE__ */ h(Be, [["styles", [Te]]]);
263
- G(/* @__PURE__ */ Object.assign({ "./locales/en.json": Z, "./locales/es-419.json": J, "./locales/es.json": K, "./locales/fr.json": Y, "./locales/it.json": q, "./locales/nl.json": Q })).catch((e) => console.error(e));
262
+ }), Be = "*{--pix-neutral-0: white;--pix-neutral-100: #cdd1d9;--pix-neutral-800: #253858;--pix-primary-100: #cec3f4;--pix-primary-300: #957ee8;--pix-primary-700: #452d9d;--pix-primary-900: #291a5d;font-family:Roboto,sans-serif;color:var(--pix-neutral-800)}section{display:flex;flex-direction:column;gap:12px;overflow:hidden;padding-top:12px}section .slides{display:grid;grid-template-columns:32px auto 32px;gap:16px;width:100%}section .slides .slide{align-items:center;display:flex;grid-row:1;grid-column:2}section .slides .carousel__nav{height:80%;margin:auto 0;background:var(--pix-primary-100);fill:var(--pix-neutral-800);border:none;cursor:pointer;z-index:9;padding:0}section .slides .carousel__nav:hover{background:var(--pix-primary-300);fill:var(--pix-neutral-0)}section .slides .carousel__nav:active,section .slides .carousel__nav:focus,section .slides .carousel__nav:focus-visible{background:var(--pix-primary-700);fill:var(--pix-neutral-0)}section .slides .carousel__nav:focus,section .slides .carousel__nav:focus-visible{outline-offset:-4px;outline:1px solid var(--pix-neutral-0)}section .slides .carousel__nav.previous{border-top-right-radius:1rem;border-bottom-right-radius:1rem}section .slides .carousel__nav.next{border-top-left-radius:1rem;border-bottom-left-radius:1rem}section .slides .carousel__nav.disabled,section .slides .carousel__nav.disabled:hover{background:transparent;cursor:not-allowed;fill:var(--pix-neutral-100)}.footer{padding:16px 56px;display:flex;align-items:start;gap:16px}.footer .footer-separator{border-left:1px solid;width:1px}.footer .control{display:flex;gap:8px;align-items:center}.footer .tooltip-container button.disabled{fill:var(--pix-neutral-100)}.footer .slide-info-container{display:grid;grid-template-columns:1fr}.footer .slide-info-container .pagination{display:inline-flex;align-items:center;font-size:.75rem;font-family:Roboto,sans-serif;font-weight:400;color:var(--pix-primary-900);border-radius:50px;padding:3px 12px;background-color:var(--pix-primary-100);height:18px;text-wrap:nowrap;transform:translateY(-.25rem)}.footer .info{display:grid;overflow:hidden}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}@media only screen and (max-width:576px){section .slides{grid-template-columns:0 100% 0;gap:0}section .slides .carousel__nav{display:none}.footer{flex-direction:column;padding:16px}.footer .footer-separator{display:none}}", je = /* @__PURE__ */ h(Te, [["styles", [Be]]]);
263
+ G(/* @__PURE__ */ Object.assign({ "./locales/en.json": Z, "./locales/es-419.json": Y, "./locales/es.json": q, "./locales/fr.json": J, "./locales/it.json": K, "./locales/nl.json": Q })).catch((e) => console.error(e));
264
264
  const I = F(je, {
265
265
  configureApp(e) {
266
- T.changeLanguage(document?.documentElement?.lang || navigator.language), e.use(O, { i18next: T });
266
+ B.changeLanguage(document?.documentElement?.lang || navigator.language), e.use(O, { i18next: B });
267
267
  }
268
268
  });
269
269
  I.prototype.normalizeProps = (e) => ({
@@ -1,7 +1,7 @@
1
- import { d as E, r as k, J as y, k as m, A as S, c as a, o as i, a as s, l as B, G as d, y as u, F as f, b, N as H, z as g, v as C, M as L, E as F, q as P, _ as D, f as G } from "../_plugin-vue_export-helper-CP5OpzZH.js";
2
- import { a as q, i as w, b as J } from "../i18n-BB4WILwM.js";
3
- import { N as j } from "../NavigationButton.ce-DlErTyfv.js";
4
- const R = {}, U = {}, K = {}, Q = {
1
+ import { d as E, r as k, L as y, k as m, E as L, c as a, o as i, a as s, l as S, x as d, A as u, F as f, b, O as B, D as g, y as C, N as H, v as D, q as F, _ as P, f as q } from "../_plugin-vue_export-helper-D7ghZaw4.js";
2
+ import { a as G, i as w, b as R } from "../i18n-DX3ApBSH.js";
3
+ import { N as j } from "../NavigationButton.ce-DF5ScHc4.js";
4
+ const U = {}, J = {}, K = {}, Q = {
5
5
  "pix-cursor": { confirm: "Valider", next: "Suivant", previous: "Précédent", selectAnOption: "Sélectionnez une option", youHaveChosen: "Vous avez choisi : { choice }" }
6
6
  }, W = {}, X = {}, Y = ["for"], Z = {
7
7
  class: "visible-options",
@@ -19,13 +19,13 @@ const R = {}, U = {}, K = {}, Q = {
19
19
  },
20
20
  setup(n, { expose: M }) {
21
21
  const p = n, r = k(Math.floor(p.options.length / 2)), o = k(!1), v = y(), x = y(), N = m(() => r.value === p.options.length - 1), I = m(() => r.value === 0), c = m(() => Number(r.value));
22
- function z() {
22
+ function O() {
23
23
  o.value = !0;
24
24
  }
25
25
  function $() {
26
26
  o.value || (r.value = Math.max(0, c.value - 1));
27
27
  }
28
- function O() {
28
+ function z() {
29
29
  o.value || (r.value = Math.min(p.options.length - 1, c.value + 1));
30
30
  }
31
31
  function _(l) {
@@ -37,10 +37,10 @@ const R = {}, U = {}, K = {}, Q = {
37
37
  return M({
38
38
  reset: T
39
39
  }), (l, h) => {
40
- const V = S("i18next");
40
+ const V = L("i18next");
41
41
  return i(), a("form", {
42
42
  class: "pix-cursor",
43
- onSubmit: P(z, ["prevent"])
43
+ onSubmit: F(O, ["prevent"])
44
44
  }, [
45
45
  s("div", null, [
46
46
  s("label", {
@@ -61,7 +61,7 @@ const R = {}, U = {}, K = {}, Q = {
61
61
  label: t.label
62
62
  }, u(t.label), 9, te))), 128))
63
63
  ], 8, oe),
64
- B(s("input", {
64
+ S(s("input", {
65
65
  "onUpdate:modelValue": h[0] || (h[0] = (t) => r.value = t),
66
66
  id: d(v),
67
67
  type: "range",
@@ -70,7 +70,7 @@ const R = {}, U = {}, K = {}, Q = {
70
70
  max: n.options.length - 1,
71
71
  disabled: o.value
72
72
  }, null, 8, ne), [
73
- [H, r.value]
73
+ [B, r.value]
74
74
  ]),
75
75
  s("div", ae, [
76
76
  g(j, {
@@ -94,7 +94,7 @@ const R = {}, U = {}, K = {}, Q = {
94
94
  g(V, {
95
95
  translation: l.$t("pix-cursor.youHaveChosen")
96
96
  }, {
97
- choice: L(() => [
97
+ choice: H(() => [
98
98
  s("span", se, u(t.label), 1)
99
99
  ]),
100
100
  _: 2
@@ -102,7 +102,7 @@ const R = {}, U = {}, K = {}, Q = {
102
102
  ], 10, re))), 128))
103
103
  ]),
104
104
  g(j, {
105
- onClick: O,
105
+ onClick: z,
106
106
  disabled: o.value || N.value,
107
107
  label: l.$t("pix-cursor.next"),
108
108
  "aria-controls": d(v),
@@ -114,7 +114,7 @@ const R = {}, U = {}, K = {}, Q = {
114
114
  ])
115
115
  ]),
116
116
  s("div", le, [
117
- o.value ? F("", !0) : (i(), a("button", ce, u(l.$t("pix-cursor.confirm")), 1)),
117
+ o.value ? D("", !0) : (i(), a("button", ce, u(l.$t("pix-cursor.confirm")), 1)),
118
118
  (i(!0), a(f, null, b(n.options, (t, e) => (i(), a("p", {
119
119
  innerHTML: t.feedback.text,
120
120
  key: e,
@@ -128,10 +128,10 @@ const R = {}, U = {}, K = {}, Q = {
128
128
  ], 32);
129
129
  };
130
130
  }
131
- }), pe = "[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}", ve = /* @__PURE__ */ D(ue, [["styles", [pe]], ["__scopeId", "data-v-58e704c5"]]);
132
- q(/* @__PURE__ */ Object.assign({ "./locales/en.json": R, "./locales/es-419.json": U, "./locales/es.json": K, "./locales/fr.json": Q, "./locales/it.json": W, "./locales/nl.json": X })).catch((n) => console.error(n));
133
- window.customElements.define("pix-cursor", G(ve, {
131
+ }), pe = "[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}", ve = /* @__PURE__ */ P(ue, [["styles", [pe]], ["__scopeId", "data-v-58e704c5"]]);
132
+ G(/* @__PURE__ */ Object.assign({ "./locales/en.json": U, "./locales/es-419.json": J, "./locales/es.json": K, "./locales/fr.json": Q, "./locales/it.json": W, "./locales/nl.json": X })).catch((n) => console.error(n));
133
+ window.customElements.define("pix-cursor", q(ve, {
134
134
  configureApp(n) {
135
- w.changeLanguage(document?.documentElement?.lang || navigator.language), n.use(J, { i18next: w });
135
+ w.changeLanguage(document?.documentElement?.lang || navigator.language), n.use(R, { i18next: w });
136
136
  }
137
137
  }));
@@ -1,6 +1,6 @@
1
- import { d as y, k as b, c as i, o, a as s, E as v, y as c, v as w, _, O as E, P as A, r as x, l as O, B as V, Q as G, L as M, g as P, F as $, b as C, e as Q, G as F, z as k, R as U, M as W, q as H, f as J } from "../_plugin-vue_export-helper-CP5OpzZH.js";
2
- import { i as a, a as K, b as X } from "../i18n-BB4WILwM.js";
3
- import { R as Y } from "../Retry--whpA3a8.js";
1
+ import { d as y, k as b, c as i, o, a as s, v, A as c, y as w, _, P as A, Q as E, r as x, l as G, G as V, R as O, C as P, g as M, F as $, b as C, e as Q, x as F, D as k, S as U, N as W, q as H, f as J } from "../_plugin-vue_export-helper-D7ghZaw4.js";
2
+ import { i as a, a as K, b as X } from "../i18n-DX3ApBSH.js";
3
+ import { R as Y } from "../Retry-CuUMOAZi.js";
4
4
  import { u as Z } from "../normalize-props-AlmAfi_u.js";
5
5
  const ee = {}, te = {}, ae = {}, ne = {
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 = {
55
55
  }
56
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({
57
57
  __name: "Option.ce",
58
- props: /* @__PURE__ */ E({
58
+ props: /* @__PURE__ */ A({
59
59
  option: { type: String },
60
60
  value: { type: Number },
61
61
  readonly: { type: Boolean }
@@ -65,7 +65,7 @@ const ee = {}, te = {}, ae = {}, ne = {
65
65
  }),
66
66
  emits: ["update:modelValue"],
67
67
  setup(e, { expose: u }) {
68
- const n = A(e, "modelValue"), l = x(!1), t = b(() => n.value.length === 3 && !l.value || e.readonly);
68
+ const n = E(e, "modelValue"), l = x(!1), t = b(() => n.value.length === 3 && !l.value || e.readonly);
69
69
  function h(p) {
70
70
  if (t.value) {
71
71
  p.preventDefault();
@@ -78,14 +78,14 @@ const ee = {}, te = {}, ae = {}, ne = {
78
78
  }), (p, m) => (o(), i("label", {
79
79
  class: w({ selected: l.value, disabled: t.value })
80
80
  }, [
81
- O(s("input", {
81
+ G(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, me), [
88
- [G, l.value]
88
+ [O, l.value]
89
89
  ]),
90
90
  V(c(e.option), 1)
91
91
  ], 2));
@@ -100,11 +100,11 @@ const ee = {}, te = {}, ae = {}, ne = {
100
100
  return (u, n) => (o(), i("button", {
101
101
  class: w(["epreuve-button", e.state])
102
102
  }, [
103
- M(u.$slots, "icon"),
103
+ P(u.$slots, "icon"),
104
104
  V(" " + c(e.label), 1)
105
105
  ], 2));
106
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 = {
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" }, Se = ["aria-level"], qe = { class: "left-side__description" }, Ie = { class: "left-side__action" }, $e = {
108
108
  key: 0,
109
109
  id: "optionsSelectedInfo",
110
110
  class: "left-side__lower-legend",
@@ -123,7 +123,7 @@ const ee = {}, te = {}, ae = {}, ne = {
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 = P("optionsNode"), p = a.t("qcm-deepfake.options", { returnObjects: !0 }), m = ["👩‍🎤", "🎧", "🎶", "👩", "🎙️"], g = p.map((d, r) => `${m[r]} ${d}`), z = g.filter((d, r) => l.includes(r + 1)), B = [
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((d, r) => `${m[r]} ${d}`), D = g.filter((d, r) => l.includes(r + 1)), T = [
127
127
  {
128
128
  type: "info",
129
129
  image: e.infoImage
@@ -146,48 +146,48 @@ const ee = {}, te = {}, ae = {}, ne = {
146
146
  type: "search",
147
147
  image: e.searchImage
148
148
  }
149
- ], q = b(() => n.value.length !== 3 || t.value === "search"), D = 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: l.length - n.value.length }) : t.value === "fail" ? a.t("qcm-deepfake.restartInfo") : "");
150
- function T() {
151
- return q.value ? !1 : t.value === "info" ? R() : I();
149
+ ], S = b(() => n.value.length !== 3 || t.value === "search"), z = b(() => t.value === "search" ? a.t("qcm-deepfake.loading") : t.value === "info" ? a.t("qcm-deepfake.generateVideo") : a.t("qcm-deepfake.restart")), B = 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 L() {
151
+ return S.value ? !1 : t.value === "info" ? R() : q();
152
152
  }
153
- function I() {
153
+ function q() {
154
154
  h.value.forEach((d) => {
155
155
  d.isChecked = !1;
156
156
  }), n.value = [], t.value = "info";
157
157
  }
158
158
  async function R() {
159
- const d = n.value.every((r) => z.includes(r.trim()));
159
+ const d = n.value.every((r) => D.includes(r.trim()));
160
160
  t.value = "search", await new Promise((r) => setTimeout(r, e.searchDelay)), d ? t.value = "success" : t.value = "fail";
161
161
  }
162
162
  return u({
163
- reset: I
163
+ reset: q
164
164
  }), (d, r) => (o(), i("div", xe, [
165
165
  s("form", we, [
166
166
  s("div", {
167
167
  class: "left-side__subtitle",
168
168
  role: "heading",
169
169
  "aria-level": e.titleLevel
170
- }, c(d.$t("qcm-deepfake.in")), 9, qe),
170
+ }, c(d.$t("qcm-deepfake.in")), 9, Se),
171
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, {
172
+ s("legend", qe, c(d.$t("qcm-deepfake.selectThreeElements")), 1),
173
+ (o(!0), i($, null, C(F(g), (f, I) => (o(), Q(he, {
174
174
  ref_for: !0,
175
175
  ref_key: "optionsNode",
176
176
  ref: h,
177
177
  modelValue: n.value,
178
178
  "onUpdate:modelValue": r[0] || (r[0] = (j) => n.value = j),
179
- key: S,
179
+ key: I,
180
180
  class: "left-side__options",
181
181
  option: f,
182
- value: S + 1,
182
+ value: I + 1,
183
183
  readonly: t.value !== "info"
184
184
  }, null, 8, ["modelValue", "option", "value", "readonly"]))), 128))
185
185
  ]),
186
- s("div", Se, [
186
+ s("div", Ie, [
187
187
  k(ke, {
188
- onClick: H(T, ["prevent"]),
189
- "aria-disabled": q.value,
190
- label: D.value,
188
+ onClick: H(L, ["prevent"]),
189
+ "aria-disabled": S.value,
190
+ label: z.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,11 +199,11 @@ const ee = {}, te = {}, ae = {}, ne = {
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", $e, c(L.value), 1))
202
+ ["success", "search"].includes(t.value) ? v("", !0) : (o(), i("p", $e, c(B.value), 1))
203
203
  ])
204
204
  ]),
205
205
  s("div", Ce, [
206
- (o(), i($, null, C(B, (f) => k(pe, {
206
+ (o(), i($, null, C(T, (f) => k(pe, {
207
207
  key: f,
208
208
  "title-level": e.titleLevel,
209
209
  type: f.type,
@@ -216,9 +216,9 @@ const ee = {}, te = {}, ae = {}, ne = {
216
216
  ])
217
217
  ]));
218
218
  }
219
- }), Ne = "legend,label,p,div[role=heading]{font-family:Nunito,Roboto,sans-serif;color:#253858}", ze = ".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%}}", Be = /* @__PURE__ */ _(Ve, [["styles", [Ne, ze]], ["__scopeId", "data-v-66f8d52f"]]);
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%}}", Te = /* @__PURE__ */ _(Ve, [["styles", [Ne, De]], ["__scopeId", "data-v-66f8d52f"]]);
220
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(Be, {
221
+ const N = J(Te, {
222
222
  configureApp(e) {
223
223
  a.changeLanguage(document?.documentElement?.lang || navigator.language), e.use(X, { i18next: a });
224
224
  }