@1024pix/epreuves-components 2.1.0 → 2.2.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 (27) hide show
  1. package/dist/{LLMMessage.ce-CcaSmq0J.js → LLMMessage.ce-D_SYQOna.js} +22 -22
  2. package/dist/{Loading.ce-kO02LfAR.js → Loading.ce-CjAv1WaY.js} +1 -1
  3. package/dist/{NavigationButton.ce-BUeEdL4x.js → NavigationButton.ce-DlErTyfv.js} +5 -5
  4. package/dist/Retry--whpA3a8.js +18 -0
  5. package/dist/{_plugin-vue_export-helper-BGEtPlxS.js → _plugin-vue_export-helper-CP5OpzZH.js} +976 -966
  6. package/dist/components/calcul-impact.ce.js.js +2 -2
  7. package/dist/components/capacity-calculation.ce.js.js +116 -129
  8. package/dist/components/clickable-image.ce.js.js +86 -69
  9. package/dist/components/complete-phrase.ce.js.js +129 -66
  10. package/dist/components/flip-cards.ce.js.js +4 -4
  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 +6 -6
  15. package/dist/components/llm-prompt-select.ce.js.js +10 -10
  16. package/dist/components/message-conversation.ce.js.js +14 -14
  17. package/dist/components/pix-article.ce.js.js +2 -2
  18. package/dist/components/pix-carousel.ce.js.js +11 -12
  19. package/dist/components/pix-cursor.ce.js.js +10 -10
  20. package/dist/components/qcm-deepfake.ce.js.js +107 -100
  21. package/dist/{i18n-D3E2CT0o.js → i18n-BB4WILwM.js} +12 -12
  22. package/dist/{image-quiz.ce-Qe3SbGDF.js → image-quiz.ce-UlVFo5Sr.js} +11 -11
  23. package/dist/index.js +1 -1
  24. package/dist/metadata.js +1 -1
  25. package/dist/schema.js +7 -4
  26. package/dist/{shadow-dom-Bqt3ZRMI.js → shadow-dom-D3DtD_VO.js} +1 -1
  27. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
- import { d as S, r as x, k as D, h as E, c as n, o as s, D as k, E as g, f as _, A as w, t as v, y as B, I as z, m as P, F as b, a as M, _ as N, g as T, b as V, e as F } from "../_plugin-vue_export-helper-BGEtPlxS.js";
2
- import { L as I } from "../Loading.ce-kO02LfAR.js";
1
+ import { d as S, r as x, k as M, h as B, c as n, o as s, v as k, E as g, a as _, B as w, y as v, z as E, I as z, m as P, F as b, b as N, _ as D, g as T, e as V, f as F } from "../_plugin-vue_export-helper-CP5OpzZH.js";
2
+ import { L as I } from "../Loading.ce-CjAv1WaY.js";
3
3
  import { u as L, a as j } from "../normalize-props-AlmAfi_u.js";
4
4
  const O = ["part"], R = {
5
5
  key: 1,
@@ -15,7 +15,7 @@ const O = ["part"], R = {
15
15
  loadingDuration: { type: Number }
16
16
  },
17
17
  setup(e, { expose: d }) {
18
- const i = x("hidden"), l = x([]), p = D(() => e.message.content.split(`
18
+ const i = x("hidden"), l = x([]), p = M(() => e.message.content.split(`
19
19
  `));
20
20
  function m(t) {
21
21
  return new Promise((a) => {
@@ -26,7 +26,7 @@ const O = ["part"], R = {
26
26
  async function c() {
27
27
  await m(e.startAnimation), i.value = "loading", await m(e.loadingDuration), i.value = "visible", await m(e.animationDuration);
28
28
  }
29
- E(c);
29
+ B(c);
30
30
  async function f() {
31
31
  i.value = "hidden", l.value.forEach(clearTimeout), await c();
32
32
  }
@@ -47,7 +47,7 @@ const O = ["part"], R = {
47
47
  w(v(e.message.userName), 1)
48
48
  ], 8, O)) : g("", !0),
49
49
  i.value === "loading" ? (s(), n("div", R, [
50
- B(I)
50
+ E(I)
51
51
  ])) : g("", !0),
52
52
  _("p", {
53
53
  class: k(["message__content", { "hidden-state": i.value !== "visible" }]),
@@ -55,14 +55,14 @@ const O = ["part"], R = {
55
55
  }, [
56
56
  e.message.image ? (s(), n("img", z(P({ key: 0 }, e.message.image)), null, 16)) : g("", !0),
57
57
  e.message.image ? (s(), n("br", G)) : g("", !0),
58
- (s(!0), n(b, null, M(p.value, (o, r) => (s(), n(b, { key: r }, [
58
+ (s(!0), n(b, null, N(p.value, (o, r) => (s(), n(b, { key: r }, [
59
59
  r > 0 ? (s(), n("br", H)) : g("", !0),
60
60
  w(" " + v(o), 1)
61
61
  ], 64))), 128))
62
62
  ], 10, q)
63
63
  ], 2));
64
64
  }
65
- }), K = ".message{max-width:80%;position:relative}.message--incoming{align-self:start}.message--incoming .message__sender{padding-left:10px}.message--incoming .message__loader{left:10px}.message--incoming .message__content{background-color:#e8e8e8}.message--outgoing{align-self:end}.message--outgoing .message__sender{padding-right:10px;text-align:right}.message--outgoing .message__loader{right:10px}.message--outgoing .message__content{background-color:#d1eaff}.message__sender{color:#444;font-size:.8rem;font-weight:700;margin:0}.message__loader{position:absolute;width:24px}.message__content{border-radius:16px;margin:0;padding:10px 14px}.message__content:not(.hidden-state){animation:fade .3s ease-in-out both}.message__content>img{max-width:100%}.hidden-state{visibility:hidden}@keyframes fade{0%{opacity:0}to{opacity:1}}@media(prefers-reduced-motion:reduce){.message__content:not(.hidden-state){animation:none}.message__loader{display:none}.hidden-state{visibility:visible}}", Q = /* @__PURE__ */ N(J, [["styles", [K]]]), U = { part: "conversation" }, W = { class: "sr-only" }, X = /* @__PURE__ */ S({
65
+ }), K = ".message{max-width:80%;position:relative}.message--incoming{align-self:start}.message--incoming .message__sender{padding-left:10px}.message--incoming .message__loader{left:10px}.message--incoming .message__content{background-color:#e8e8e8}.message--outgoing{align-self:end}.message--outgoing .message__sender{padding-right:10px;text-align:right}.message--outgoing .message__loader{right:10px}.message--outgoing .message__content{background-color:#d1eaff}.message__sender{color:#444;font-size:.8rem;font-weight:700;margin:0}.message__loader{position:absolute;width:24px}.message__content{border-radius:16px;margin:0;padding:10px 14px}.message__content:not(.hidden-state){animation:fade .3s ease-in-out both}.message__content>img{max-width:100%}.hidden-state{visibility:hidden}@keyframes fade{0%{opacity:0}to{opacity:1}}@media(prefers-reduced-motion:reduce){.message__content:not(.hidden-state){animation:none}.message__loader{display:none}.hidden-state{visibility:visible}}", Q = /* @__PURE__ */ D(J, [["styles", [K]]]), U = { part: "conversation" }, W = { class: "sr-only" }, X = /* @__PURE__ */ S({
66
66
  __name: "MessageConversation.ce",
67
67
  props: {
68
68
  title: { default: "Conversation par messages", type: String },
@@ -70,7 +70,7 @@ const O = ["part"], R = {
70
70
  animationSpeed: { default: 20, type: Number }
71
71
  },
72
72
  setup(e, { expose: d }) {
73
- const i = 50 * e.animationSpeed, l = 50 * e.animationSpeed, p = D(
73
+ const i = 50 * e.animationSpeed, l = 50 * e.animationSpeed, p = M(
74
74
  () => e.messages.reduce(
75
75
  (t, a, o) => {
76
76
  const r = c(a);
@@ -80,8 +80,8 @@ const O = ["part"], R = {
80
80
  message: u,
81
81
  startAnimation: y,
82
82
  animationDuration: h
83
- } = t.at(-1), C = a.direction !== u.direction || a.userName !== u.userName, $ = y + h + i;
84
- return [...t, { message: a, displaySender: C, startAnimation: $, animationDuration: r }];
83
+ } = t.at(-1), A = a.direction !== u.direction || a.userName !== u.userName, $ = y + h + i;
84
+ return [...t, { message: a, displaySender: A, startAnimation: $, animationDuration: r }];
85
85
  },
86
86
  []
87
87
  )
@@ -97,7 +97,7 @@ const O = ["part"], R = {
97
97
  reset: f
98
98
  }), (t, a) => (s(), n("figure", U, [
99
99
  _("figcaption", W, v(e.title), 1),
100
- (s(!0), n(b, null, M(p.value, ({ message: o, displaySender: r, startAnimation: u, animationDuration: y }, h) => (s(), V(Q, {
100
+ (s(!0), n(b, null, N(p.value, ({ message: o, displaySender: r, startAnimation: u, animationDuration: y }, h) => (s(), V(Q, {
101
101
  ref_for: !0,
102
102
  ref: "messages",
103
103
  message: o,
@@ -109,8 +109,8 @@ const O = ["part"], R = {
109
109
  }, null, 8, ["message", "start-animation", "animation-duration", "display-sender"]))), 128))
110
110
  ]));
111
111
  }
112
- }), Y = "figure{background-color:#fff;border-radius:16px;display:flex;flex-direction:column;gap:8px;margin:0;padding:16px}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}", Z = /* @__PURE__ */ N(X, [["styles", [Y]]]), A = F(Z);
113
- A.prototype.normalizeProps = (e) => ({
112
+ }), Y = "figure{background-color:#fff;border-radius:16px;display:flex;flex-direction:column;gap:8px;margin:0;padding:16px}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}", Z = /* @__PURE__ */ D(X, [["styles", [Y]]]), C = F(Z);
113
+ C.prototype.normalizeProps = (e) => ({
114
114
  ...e,
115
115
  animationSpeed: L(e.animationSpeed),
116
116
  messages: e.messages.map((d) => ({
@@ -118,4 +118,4 @@ A.prototype.normalizeProps = (e) => ({
118
118
  image: j(d.image)
119
119
  }))
120
120
  });
121
- window.customElements.define("message-conversation", A);
121
+ window.customElements.define("message-conversation", C);
@@ -1,5 +1,5 @@
1
- import { d as u, c as a, o as n, f as t, t as i, F as l, a as d, G as h, _ as m, e as f } from "../_plugin-vue_export-helper-BGEtPlxS.js";
2
- import { a as p, i as o, b as v } from "../i18n-D3E2CT0o.js";
1
+ import { d as u, c as a, o as n, a as t, y as i, F as l, b as d, G as h, _ as m, f } from "../_plugin-vue_export-helper-CP5OpzZH.js";
2
+ import { a as p, i as o, b as v } from "../i18n-BB4WILwM.js";
3
3
  import { u as y } from "../normalize-props-AlmAfi_u.js";
4
4
  const b = {}, x = {}, S = {}, L = {
5
5
  "pix-article": { byAuthor: "Par {{author}}" }
@@ -1,6 +1,6 @@
1
- import { d as S, c as n, o as t, D as M, f as s, E as L, L as R, A as z, t as g, G as l, _ as h, r as $, K as V, k as w, y as m, x as k, J as P, M as _, F as A, a as N, b as T, e as F } from "../_plugin-vue_export-helper-BGEtPlxS.js";
2
- import { a as G, i as B, b as O } from "../i18n-D3E2CT0o.js";
3
- import { B as j, N as D } from "../NavigationButton.ce-BUeEdL4x.js";
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";
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" }
@@ -56,7 +56,7 @@ const U = ["aria-level"], X = ["innerHTML"], ee = {
56
56
  }, le = ["alt", "src"], se = {
57
57
  key: 0,
58
58
  class: "license"
59
- }, oe = ["href"], re = { class: "img-container" }, de = ["alt", "src", "height"], ce = ["innerHTML"], ue = {
59
+ }, oe = ["href"], re = { class: "img-container" }, de = ["alt", "src"], ce = ["innerHTML"], ue = {
60
60
  key: 1,
61
61
  class: "text-container"
62
62
  }, pe = ["innerHTML"], me = /* @__PURE__ */ S({
@@ -109,8 +109,7 @@ const U = ["aria-level"], X = ["innerHTML"], ee = {
109
109
  s("div", re, [
110
110
  s("img", {
111
111
  alt: e.slide.image.alt,
112
- src: e.slide.image.src,
113
- height: e.slide.displayHeight
112
+ src: e.slide.image.src
114
113
  }, null, 8, de)
115
114
  ]),
116
115
  l(E)(e.slide.text) ? (t(), n("div", {
@@ -132,7 +131,7 @@ const U = ["aria-level"], X = ["innerHTML"], ee = {
132
131
  }, null, 8, ["description", "title", "is-active", "title-level"])
133
132
  ], 10, ne));
134
133
  }
135
- }), ge = ".slide{transition:transform ease-in-out .8s;height:100%}.slide.off,.slide.initStart{transition:none;transform:translate(100vw)}.slide.initStart.is-next,.slide.initEnd{transform:translate(-100vw)}.slide.initEnd.is-next{transform:translate(100vw)}.slide.on{transform:translate(0)}.slide.disable-animation{transition:none}.image-container{position:relative;display:flex;justify-content:center;align-items:center;margin:auto;max-width:890px;border-radius:8px}.image-container--is-not-image{justify-content:left}.image-container img{height:100%;width:100%;object-fit:contain;filter:drop-shadow(0px 8px 12px rgba(0,0,0,.2));border-radius:16px}.license{position:absolute;font-size:.8rem;bottom:0;margin:0;padding:2px 8px;max-width:50%;border-top-left-radius:8px;border-top-right-radius:8px;text-align:center;background:#ffffffe6}.text-container{margin:auto;width:fit-content}.text-image-container{display:flex;gap:12px;padding:16px;filter:drop-shadow(0px 8px 12px rgba(0,0,0,.2));border-radius:16px;background:#fff}.text-image-container .img-container{width:calc(var(--image-display) / (var(--image-display) + var(--text-display)) * 100%);display:flex;justify-content:center;align-items:center}.text-image-container .img-container img{max-width:100%;width:auto;height:auto}.text-image-container .text-container{width:calc(var(--text-display) / (var(--image-display) + var(--text-display)) * 100%)}.text-image-container .text-container>*{margin:0}@media only screen and (max-width:576px){.license{font-size:.5rem}.image-container img{border-radius:8px;width:95%}.text-image-container{flex-direction:column}.text-image-container .img-container,.text-image-container .text-container{width:100%}}@media(prefers-reduced-motion:reduce){.slide{transition:none}}", fe = /* @__PURE__ */ h(me, [["styles", [ge]]]), ve = {}, xe = {
134
+ }), ge = ".slide{transition:transform ease-in-out .8s;height:100%}.slide.off,.slide.initStart{transition:none;transform:translate(100vw)}.slide.initStart.is-next,.slide.initEnd{transform:translate(-100vw)}.slide.initEnd.is-next{transform:translate(100vw)}.slide.on{transform:translate(0)}.slide.disable-animation{transition:none}.image-container{position:relative;display:flex;justify-content:center;align-items:center;margin:auto;max-width:890px;border-radius:8px}.image-container--is-not-image{justify-content:left}.image-container img{height:100%;width:100%;object-fit:contain;filter:drop-shadow(0px 8px 12px rgba(0,0,0,.2));border-radius:16px}.license{position:absolute;font-size:.8rem;bottom:0;margin:0;padding:2px 8px;max-width:50%;border-top-left-radius:8px;border-top-right-radius:8px;text-align:center;background:#ffffffe6}.text-container{margin:auto;width:fit-content}.text-image-container{display:flex;flex:1;gap:12px;padding:16px;filter:drop-shadow(0px 8px 12px rgba(0,0,0,.2));border-radius:16px;background:#fff}.text-image-container .img-container{width:calc(var(--image-display) / (var(--image-display) + var(--text-display)) * 100%);display:flex;justify-content:center;align-items:center}.text-image-container .img-container img{max-width:100%;width:auto;height:auto}.text-image-container .text-container{width:calc(var(--text-display) / (var(--image-display) + var(--text-display)) * 100%)}.text-image-container .text-container>*{margin:0}@media only screen and (max-width:576px){.license{font-size:.5rem}.image-container img{border-radius:8px;width:95%}.text-image-container{flex-direction:column}.text-image-container .img-container,.text-image-container .text-container{width:100%}}@media(prefers-reduced-motion:reduce){.slide{transition:none}}", fe = /* @__PURE__ */ h(me, [["styles", [ge]]]), ve = {}, xe = {
136
135
  width: "25",
137
136
  height: "24",
138
137
  viewBox: "0 0 25 24",
@@ -162,7 +161,7 @@ function _e(e, i) {
162
161
  }, null, -1)
163
162
  ])]);
164
163
  }
165
- 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({
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({
166
165
  __name: "Carousel.ce",
167
166
  props: {
168
167
  randomSlides: { type: Boolean },
@@ -200,7 +199,7 @@ const Ce = /* @__PURE__ */ h(be, [["render", _e]]), Le = ["aria-roledescription"
200
199
  ]),
201
200
  _: 1
202
201
  }, 8, ["disabled", "aria-controls", "label"]),
203
- (t(!0), n(A, null, N(a.value, (u, p) => (t(), T(fe, {
202
+ (t(!0), n(A, null, N(a.value, (u, p) => (t(), B(fe, {
204
203
  key: p,
205
204
  slide: u,
206
205
  direction: y.value,
@@ -243,7 +242,7 @@ const Ce = /* @__PURE__ */ h(be, [["render", _e]]), Le = ["aria-roledescription"
243
242
  }, null, 8, ["label", "aria-controls", "disabled"])
244
243
  ]),
245
244
  s("div", Ae, [
246
- (t(!0), n(A, null, N(a.value, (u, p) => (t(), T(H, {
245
+ (t(!0), n(A, null, N(a.value, (u, p) => (t(), B(H, {
247
246
  key: p,
248
247
  description: u.description,
249
248
  title: u.title,
@@ -260,11 +259,11 @@ const Ce = /* @__PURE__ */ h(be, [["render", _e]]), Le = ["aria-roledescription"
260
259
  ])
261
260
  ], 8, Le));
262
261
  }
263
- }), 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]]]);
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]]]);
264
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));
265
264
  const I = F(je, {
266
265
  configureApp(e) {
267
- B.changeLanguage(document?.documentElement?.lang || navigator.language), e.use(O, { i18next: B });
266
+ T.changeLanguage(document?.documentElement?.lang || navigator.language), e.use(O, { i18next: T });
268
267
  }
269
268
  });
270
269
  I.prototype.normalizeProps = (e) => ({
@@ -1,6 +1,6 @@
1
- import { d as S, r as k, J as y, k as m, z as A, c as a, o as i, f as s, l as B, G as d, t as u, F as f, a as b, N as H, y as g, D as C, M as L, E as D, q as F, _ as P, e as G } from "../_plugin-vue_export-helper-BGEtPlxS.js";
2
- import { a as q, i as w, b as J } from "../i18n-D3E2CT0o.js";
3
- import { N as j } from "../NavigationButton.ce-BUeEdL4x.js";
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
4
  const R = {}, U = {}, 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 = {
@@ -12,7 +12,7 @@ const R = {}, U = {}, K = {}, Q = {
12
12
  }, ce = {
13
13
  key: 0,
14
14
  class: "confirm"
15
- }, de = ["innerHTML", "aria-hidden"], ue = /* @__PURE__ */ S({
15
+ }, de = ["innerHTML", "aria-hidden"], ue = /* @__PURE__ */ E({
16
16
  __name: "PixCursor.ce",
17
17
  props: {
18
18
  options: { type: Array }
@@ -37,10 +37,10 @@ const R = {}, U = {}, K = {}, Q = {
37
37
  return M({
38
38
  reset: T
39
39
  }), (l, h) => {
40
- const V = A("i18next");
40
+ const V = S("i18next");
41
41
  return i(), a("form", {
42
42
  class: "pix-cursor",
43
- onSubmit: F(z, ["prevent"])
43
+ onSubmit: P(z, ["prevent"])
44
44
  }, [
45
45
  s("div", null, [
46
46
  s("label", {
@@ -49,13 +49,13 @@ const R = {}, U = {}, K = {}, Q = {
49
49
  }, u(l.$t("pix-cursor.selectAnOption")), 9, Y),
50
50
  s("ul", Z, [
51
51
  (i(!0), a(f, null, b(n.options, (t, e) => (i(), a("li", {
52
- onClick: (E) => _(e),
52
+ onClick: (A) => _(e),
53
53
  key: e
54
54
  }, u(t.label), 9, ee))), 128))
55
55
  ]),
56
56
  s("datalist", { id: d(x) }, [
57
57
  (i(!0), a(f, null, b(n.options, (t, e) => (i(), a("option", {
58
- onClick: (E) => _(e),
58
+ onClick: (A) => _(e),
59
59
  key: e,
60
60
  value: e,
61
61
  label: t.label
@@ -114,7 +114,7 @@ const R = {}, U = {}, K = {}, Q = {
114
114
  ])
115
115
  ]),
116
116
  s("div", le, [
117
- o.value ? D("", !0) : (i(), a("button", ce, u(l.$t("pix-cursor.confirm")), 1)),
117
+ o.value ? F("", !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,7 +128,7 @@ 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__ */ P(ue, [["styles", [pe]], ["__scopeId", "data-v-58e704c5"]]);
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
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
133
  window.customElements.define("pix-cursor", G(ve, {
134
134
  configureApp(n) {
@@ -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, 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";
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,41 +19,41 @@ 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
58
  props: /* @__PURE__ */ E({
58
59
  option: { type: String },
@@ -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 = A(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}`), z = g.filter((d, r) => l.includes(r + 1)), B = [
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"), 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();
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) => z.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(T, ["prevent"]),
189
+ "aria-disabled": q.value,
190
+ label: D.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(L.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(B, (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}", 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"]]);
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, {
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);