@1024pix/epreuves-components 4.0.0 → 4.0.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,4 +1,4 @@
1
- import { _ as a, c as r, o as s, a as b, b as i, g as n, n as d, f as l, B as o, t as c, E as h } from "./_plugin-vue_export-helper-D0N_62VD.js";
1
+ import { _ as a, c as r, o as s, a as b, b as i, g as n, n as d, f as l, B as o, t as u, E as h } from "./_plugin-vue_export-helper-D0N_62VD.js";
2
2
  import { L as p } from "./Loading.ce-Bh7-h48F.js";
3
3
  const f = {}, C = {
4
4
  height: "1rem",
@@ -63,14 +63,14 @@ const $ = /* @__PURE__ */ a(M, [["render", q]]), z = { class: "avatar" }, B = {
63
63
  const e = t, m = n(() => e.message.direction === "outbound"), g = n(() => {
64
64
  if (e.message.content)
65
65
  return e.name ? `<strong>${e.name}</strong> : ${e.message.content}` : e.message.content;
66
- }), u = n(() => e.message.hasError && e.message.errorMessage?.length > 0);
66
+ }), c = n(() => e.message.hasError && e.message.errorMessage?.length > 0);
67
67
  return (A, V) => (s(), r("div", {
68
68
  class: d(["message", t.message.direction])
69
69
  }, [
70
70
  b("span", z, [
71
71
  m.value ? (s(), l(_, { key: 0 })) : (s(), l($, { key: 1 }))
72
72
  ]),
73
- t.message.isLoading ? (s(), l(p, {
73
+ t.message.isLoading && !c.value ? (s(), l(p, {
74
74
  key: 0,
75
75
  class: "loader"
76
76
  })) : o("", !0),
@@ -80,11 +80,11 @@ const $ = /* @__PURE__ */ a(M, [["render", q]]), z = { class: "avatar" }, B = {
80
80
  innerHTML: g.value,
81
81
  class: "content"
82
82
  }, null, 8, Z)) : o("", !0),
83
- u.value ? (s(), r("div", N, [
84
- b("p", null, c(t.message.errorMessage), 1)
83
+ c.value ? (s(), r("div", N, [
84
+ b("p", null, u(t.message.errorMessage), 1)
85
85
  ])) : o("", !0),
86
86
  t.message.attachmentName && m.value ? (s(), r("p", E, [
87
- b("span", null, c(t.message.attachmentName), 1),
87
+ b("span", null, u(t.message.attachmentName), 1),
88
88
  h(y)
89
89
  ])) : o("", !0)
90
90
  ])
@@ -1,7 +1,7 @@
1
1
  import { b as h, c as n, o, a, t as c, s as A, _ as f, n as P, q as S, H as N, r as y, g as m, B as z, F as x, e as k, f as v, E as L, d as E } from "../_plugin-vue_export-helper-D0N_62VD.js";
2
2
  import { u as M, a as O, i as q, b as T } from "../i18n-ekiZvzf6.js";
3
3
  import { b as I } from "../normalize-props-DH0oPBss.js";
4
- import { L as B } from "../LLMMessage.ce-Dv4hVX0C.js";
4
+ import { L as B } from "../LLMMessage.ce-Bdmf0R1g.js";
5
5
  const R = {}, V = {}, D = {}, F = {}, H = {}, Q = {
6
6
  "complete-phrase": { title: "Probabilité du mot suivant", description: "Quand la barre est longue, le mot a une plus forte probabilité de convenir pour continuer cette phrase.", ariaLabelDescription: "Le mot {{name}} a une probabilité de {{percent}}%", clickHereButton: "Révéler le mot", successfullyCompletedSentence: "Cliquez sur le mot choisi par l’IA dans les propositions suivantes :", feedback: { sure: "En effet, c'est le mot le plus probable !", probably: "C’est possible ! L’IA peut aussi choisir le mot « {{word}} », qui est très probable...", notSure: "Pas sûr... L’IA choisira sans doute un mot plus probable : {{words, list(style: 'long'; type: 'disjunction';)}}." } }
7
7
  }, W = {}, U = {}, G = { class: "probability-bar" }, J = { "aria-hidden": "true" }, K = { class: "sr-only" }, X = /* @__PURE__ */ h({
@@ -1,5 +1,5 @@
1
1
  import { b as c, c as t, o as s, a as e, t as n, F as r, e as m, E as i, _ as p, d as g } from "../_plugin-vue_export-helper-D0N_62VD.js";
2
- import { L as l } from "../LLMMessage.ce-Dv4hVX0C.js";
2
+ import { L as l } from "../LLMMessage.ce-Bdmf0R1g.js";
3
3
  import { p as u } from "../shadow-dom-C3AZuSZe.js";
4
4
  const f = {
5
5
  class: "header",
@@ -1,5 +1,5 @@
1
1
  import { b as c, I as m, J as i, c as t, o as e, F as p, e as d, f, _ as g, d as u } from "../_plugin-vue_export-helper-D0N_62VD.js";
2
- import { L as h } from "../LLMMessage.ce-Dv4hVX0C.js";
2
+ import { L as h } from "../LLMMessage.ce-Bdmf0R1g.js";
3
3
  import { p as _ } from "../shadow-dom-C3AZuSZe.js";
4
4
  const x = {
5
5
  class: "llm-messages",
@@ -1,4 +1,4 @@
1
- import { b as S, r as x, g as M, y as B, c as i, o as n, n as w, B as l, a as h, H as k, t as v, E, O as z, m as P, F as b, e as N, _ as D, j as T, f as V, d as j } from "../_plugin-vue_export-helper-D0N_62VD.js";
1
+ import { b as S, r as x, g as M, y as B, c as i, o as n, n as w, B as c, a as h, H as k, t as v, E, O as T, m as z, F as b, e as N, _ as D, j as P, f as V, d as j } from "../_plugin-vue_export-helper-D0N_62VD.js";
2
2
  import { L as F } from "../Loading.ce-Bh7-h48F.js";
3
3
  import { b as L, u as O, a as I } from "../normalize-props-DH0oPBss.js";
4
4
  const H = ["part"], R = {
@@ -14,7 +14,7 @@ const H = ["part"], R = {
14
14
  animationDuration: { type: Number },
15
15
  loadingDuration: { type: Number }
16
16
  },
17
- setup(e, { expose: c }) {
17
+ setup(e, { expose: l }) {
18
18
  const t = x("hidden"), d = x([]), m = M(() => e.message.content?.split(`
19
19
  `));
20
20
  function g(s) {
@@ -30,7 +30,7 @@ const H = ["part"], R = {
30
30
  async function y() {
31
31
  t.value = "hidden", d.value.forEach(clearTimeout), await u();
32
32
  }
33
- return c({
33
+ return l({
34
34
  reset: y
35
35
  }), (s, a) => (n(), i("div", {
36
36
  class: w(["message", [
@@ -45,18 +45,18 @@ const H = ["part"], R = {
45
45
  }, [
46
46
  a[0] || (a[0] = h("span", { class: "sr-only" }, "Message de ", -1)),
47
47
  k(v(e.message.userName), 1)
48
- ], 8, H)) : l("", !0),
48
+ ], 8, H)) : c("", !0),
49
49
  t.value === "loading" ? (n(), i("div", R, [
50
50
  E(F)
51
- ])) : l("", !0),
51
+ ])) : c("", !0),
52
52
  h("p", {
53
53
  class: w(["message__content", { "hidden-state": t.value !== "visible" }]),
54
54
  part: `message ${e.message.direction}`
55
55
  }, [
56
- e.message.image ? (n(), i("img", z(P({ key: 0 }, e.message.image)), null, 16)) : l("", !0),
57
- e.message.image && m.value ? (n(), i("br", G)) : l("", !0),
56
+ e.message.image ? (n(), i("img", T(z({ key: 0 }, e.message.image)), null, 16)) : c("", !0),
57
+ e.message.image && m.value ? (n(), i("br", G)) : c("", !0),
58
58
  (n(!0), i(b, null, N(m.value, (o, r) => (n(), i(b, { key: r }, [
59
- r > 0 ? (n(), i("br", J)) : l("", !0),
59
+ r > 0 ? (n(), i("br", J)) : c("", !0),
60
60
  k(" " + v(o), 1)
61
61
  ], 64))), 128))
62
62
  ], 10, q)
@@ -65,11 +65,11 @@ const H = ["part"], R = {
65
65
  }), Q = ".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}}", U = /* @__PURE__ */ D(K, [["styles", [Q]]]), W = { part: "conversation" }, X = { class: "sr-only" }, Y = /* @__PURE__ */ S({
66
66
  __name: "MessageConversation.ce",
67
67
  props: {
68
- title: { default: "Conversation par messages", type: String },
68
+ conversationTitle: { default: "Conversation par messages", type: String },
69
69
  messages: { type: Array },
70
70
  animationSpeed: { default: 20, type: Number }
71
71
  },
72
- setup(e, { expose: c }) {
72
+ setup(e, { expose: l }) {
73
73
  const t = 50 * e.animationSpeed, d = 50 * e.animationSpeed, m = M(
74
74
  () => e.messages.reduce(
75
75
  (s, a, o) => {
@@ -85,7 +85,7 @@ const H = ["part"], R = {
85
85
  },
86
86
  []
87
87
  )
88
- ), g = T("messages");
88
+ ), g = P("messages");
89
89
  function u(s) {
90
90
  let a = (s.content?.length ?? 0) * e.animationSpeed;
91
91
  return s.image && (a += d), a;
@@ -93,10 +93,10 @@ const H = ["part"], R = {
93
93
  function y() {
94
94
  g.value.forEach((s) => s.reset());
95
95
  }
96
- return c({
96
+ return l({
97
97
  reset: y
98
98
  }), (s, a) => (n(), i("figure", W, [
99
- h("figcaption", X, v(e.title), 1),
99
+ h("figcaption", X, v(e.conversationTitle), 1),
100
100
  (n(!0), i(b, null, N(m.value, ({ message: o, displaySender: r, startAnimation: p, animationDuration: f }, _) => (n(), V(U, {
101
101
  ref_for: !0,
102
102
  ref: "messages",
@@ -113,7 +113,7 @@ const H = ["part"], R = {
113
113
  C.prototype.normalizeProps = (e) => ({
114
114
  ...e,
115
115
  animationSpeed: L(e.animationSpeed),
116
- messages: e.messages.map(({ type: c, content: t, image: d, ...m }) => ({
116
+ messages: e.messages.map(({ type: l, content: t, image: d, ...m }) => ({
117
117
  ...m,
118
118
  content: I(t),
119
119
  image: O(d)
@@ -1,13 +1,13 @@
1
- import { b as u, g as d, c as a, o as l, a as t, t as i, F as o, e as m, _ as f, d as v } from "../_plugin-vue_export-helper-D0N_62VD.js";
1
+ import { b as d, g as u, c as n, o as l, a as t, t as i, F as o, e as m, _ as f, d as v } from "../_plugin-vue_export-helper-D0N_62VD.js";
2
2
  import { a as p, i as r, b } from "../i18n-ekiZvzf6.js";
3
3
  import { a as s, b as y } from "../normalize-props-DH0oPBss.js";
4
- const S = {}, x = {}, L = {}, j = {}, A = {}, H = {
4
+ const S = {}, x = {}, j = {}, A = {}, L = {}, H = {
5
5
  "pix-article": { byAuthor: "Par {{author}}" }
6
- }, E = {}, O = {}, P = ["titleLevel"], B = { class: "article__metadata" }, N = { class: "article__author" }, T = ["innerHTML"], k = /* @__PURE__ */ u({
6
+ }, T = {}, E = {}, O = ["aria-level"], P = { class: "article__metadata" }, B = { class: "article__author" }, N = ["innerHTML"], k = /* @__PURE__ */ d({
7
7
  __name: "PixArticle.ce",
8
8
  props: {
9
9
  titleLevel: { default: 2, type: Number },
10
- title: { type: String },
10
+ articleTitle: { type: String },
11
11
  author: { type: String },
12
12
  date: { type: String },
13
13
  paragraphs: { type: Array },
@@ -15,27 +15,27 @@ const S = {}, x = {}, L = {}, j = {}, A = {}, H = {
15
15
  colorOfHighlightSentence: { type: String }
16
16
  },
17
17
  setup(e) {
18
- const g = d(() => e.highlightedSentence ? e.paragraphs.map(
19
- (n) => n.replace("{{highlightedSentence}}", `<strong style="color: ${e.colorOfHighlightSentence};">${e.highlightedSentence}</strong>`)
18
+ const g = u(() => e.highlightedSentence ? e.paragraphs.map(
19
+ (a) => a.replace("{{highlightedSentence}}", `<strong style="color: ${e.colorOfHighlightSentence};">${e.highlightedSentence}</strong>`)
20
20
  ) : e.paragraphs);
21
- return (n, F) => (l(), a(o, null, [
21
+ return (a, F) => (l(), n(o, null, [
22
22
  t("div", {
23
23
  class: "article__title",
24
24
  role: "heading",
25
- titleLevel: e.titleLevel
26
- }, i(e.title), 9, P),
27
- t("p", B, [
28
- t("span", N, i(n.$t("pix-article.byAuthor", { author: e.author })), 1),
25
+ "aria-level": e.titleLevel
26
+ }, i(e.articleTitle), 9, O),
27
+ t("p", P, [
28
+ t("span", B, i(a.$t("pix-article.byAuthor", { author: e.author })), 1),
29
29
  t("time", null, i(e.date), 1)
30
30
  ]),
31
- (l(!0), a(o, null, m(g.value, (_, h) => (l(), a("p", {
31
+ (l(!0), n(o, null, m(g.value, (_, h) => (l(), n("p", {
32
32
  innerHTML: _,
33
33
  key: h
34
- }, null, 8, T))), 128))
34
+ }, null, 8, N))), 128))
35
35
  ], 64));
36
36
  }
37
- }), w = "[data-v-8f376e91]{--pix-neutral-800: #253858;font-family:Nunito,Roboto,sans-serif;color:var(--pix-neutral-800)}.article__title[data-v-8f376e91]{font-size:1.3rem;font-weight:700}.article__metadata[data-v-8f376e91]{font-style:italic}.article__author[data-v-8f376e91]{border-right:solid 1px var(--pix-neutral-800);padding-right:.7rem;margin-right:.5rem}", C = /* @__PURE__ */ f(k, [["styles", [w]], ["__scopeId", "data-v-8f376e91"]]);
38
- p(/* @__PURE__ */ Object.assign({ "./locales/de-AT.json": S, "./locales/en.json": x, "./locales/es-419.json": L, "./locales/es.json": j, "./locales/fr-BE.json": A, "./locales/fr.json": H, "./locales/it.json": E, "./locales/nl.json": O })).catch((e) => console.error(e));
37
+ }), w = "[data-v-a4da82ef]{--pix-neutral-800: #253858;font-family:Nunito,Roboto,sans-serif;color:var(--pix-neutral-800)}.article__title[data-v-a4da82ef]{font-size:1.3rem;font-weight:700}.article__metadata[data-v-a4da82ef]{font-style:italic}.article__author[data-v-a4da82ef]{border-right:solid 1px var(--pix-neutral-800);padding-right:.7rem;margin-right:.5rem}", C = /* @__PURE__ */ f(k, [["styles", [w]], ["__scopeId", "data-v-a4da82ef"]]);
38
+ p(/* @__PURE__ */ Object.assign({ "./locales/de-AT.json": S, "./locales/en.json": x, "./locales/es-419.json": j, "./locales/es.json": A, "./locales/fr-BE.json": L, "./locales/fr.json": H, "./locales/it.json": T, "./locales/nl.json": E })).catch((e) => console.error(e));
39
39
  const c = v(C, {
40
40
  configureApp(e) {
41
41
  r.changeLanguage(document?.documentElement?.lang || navigator.language), e.use(b, { i18next: r });
@@ -1,4 +1,4 @@
1
- import { b as M, r as f, j as k, u as j, g as o, c as F, o as r, a as l, E as g, f as p, B as y, t as d, K as v, n as O, H as $, k as u, x as S, _ as V, d as K } from "../_plugin-vue_export-helper-D0N_62VD.js";
1
+ import { b as M, r as f, j as k, u as j, g as o, c as F, o as l, a as s, E as g, f as p, B as y, t as d, n as O, K as v, H as $, k as c, x as S, _ as V, d as K } from "../_plugin-vue_export-helper-D0N_62VD.js";
2
2
  import { u as D, i as b } from "../i18n-lite-t2jNOu0C.js";
3
3
  import { S as I } from "../Stepper.ce-B1yDelzC.js";
4
4
  import { _ as G, a as H, F as J } from "../Cross.ce.vue_vue_type_script_setup_true_lang-CVBFTfq5.js";
@@ -18,102 +18,104 @@ const Z = {
18
18
  titleLevel: { default: 2, type: Number },
19
19
  steps: { type: Array }
20
20
  },
21
- setup(e, { expose: m }) {
22
- const { t: a } = D(), t = f(0), n = f(""), c = f(!1), P = k("continue-button"), B = k("container"), C = j(), s = o(() => e.steps.at(t.value)), i = o(() => s.value.goodAction === n.value), h = o(() => t.value === e.steps.length - 1), q = o(() => n.value ? a(`proteger-mail-spam.feedback.step${t.value + 1}.${n.value}`) : ""), R = o(() => i.value ? a("proteger-mail-spam.feedback.titleOk") : a("proteger-mail-spam.feedback.titleKo")), A = o(() => i.value ? {
21
+ setup(a, { expose: m }) {
22
+ const { t: e } = D(), t = f(0), n = f(""), u = f(!1), P = k("continue-button"), B = k("container"), C = j(), i = o(() => a.steps.at(t.value)), r = o(() => i.value.goodAction === n.value), h = o(() => t.value === a.steps.length - 1), q = o(() => n.value ? e(`proteger-mail-spam.feedback.step${t.value + 1}.${n.value}`) : ""), R = o(() => r.value ? e("proteger-mail-spam.feedback.titleOk") : e("proteger-mail-spam.feedback.titleKo")), A = o(() => r.value ? {
23
23
  return: "disabled",
24
24
  reply: "disabled",
25
25
  forward: "disabled",
26
26
  menu: "disabled"
27
- } : s.value.actions);
27
+ } : i.value.actions);
28
28
  function E() {
29
- n.value = "", t.value = 0, c.value = !1;
29
+ n.value = "", t.value = 0, u.value = !1;
30
30
  }
31
31
  async function L(x) {
32
- n.value = x, await S(), i.value && !h.value && P.value?.buttonElement.focus();
32
+ n.value = x, await S(), r.value && !h.value && P.value?.buttonElement.focus();
33
33
  }
34
34
  async function N() {
35
35
  t.value += 1, n.value = "", await S(), B.value.focus();
36
36
  }
37
37
  async function T() {
38
- await N(), c.value = !1;
38
+ await N(), u.value = !1;
39
39
  }
40
40
  return m({
41
41
  reset: E
42
- }), (x, _) => (r(), F("div", ee, [
43
- l("div", null, [
44
- l("div", {
45
- role: "heading",
46
- "aria-level": e.titleLevel,
47
- class: "header__title"
48
- }, d(s.value.title), 9, te),
49
- l("p", ae, d(s.value.description), 1)
50
- ]),
51
- g(I, {
52
- step: t.value,
53
- "steps-count": e.steps.length
54
- }, null, 8, ["step", "steps-count"]),
55
- g(W, {
56
- actions: A.value,
57
- mail: s.value.mail,
58
- onAction: L
59
- }, null, 8, ["actions", "mail"]),
60
- l("div", {
61
- class: O(["feedback", { "is-hidden": !n.value }]),
62
- "aria-live": "polite"
63
- }, [
64
- n.value ? (r(), p(J, {
42
+ }), (x, _) => (l(), F("div", ee, [
43
+ s("section", null, [
44
+ s("div", null, [
45
+ s("div", {
46
+ role: "heading",
47
+ "aria-level": a.titleLevel,
48
+ class: "header__title"
49
+ }, d(i.value.title), 9, te),
50
+ s("p", ae, d(i.value.description), 1)
51
+ ]),
52
+ g(I, {
53
+ step: t.value,
54
+ "steps-count": a.steps.length
55
+ }, null, 8, ["step", "steps-count"]),
56
+ g(W, {
57
+ actions: A.value,
58
+ mail: i.value.mail,
59
+ onAction: L
60
+ }, null, 8, ["actions", "mail"]),
61
+ s("div", {
62
+ class: O(["feedback", { "is-hidden": !n.value }]),
63
+ "aria-live": "polite"
64
+ }, [
65
+ n.value ? (l(), p(J, {
66
+ key: 0,
67
+ title: R.value
68
+ }, {
69
+ icon: v(() => [
70
+ r.value ? (l(), p(G, {
71
+ key: 0,
72
+ class: "feedback__icon",
73
+ "aria-hiden": "true"
74
+ })) : (l(), p(H, {
75
+ key: 1,
76
+ class: "feedback__icon",
77
+ "aria-hiden": "true"
78
+ }))
79
+ ]),
80
+ content: v(() => [
81
+ s("p", null, d(q.value), 1)
82
+ ]),
83
+ _: 1
84
+ }, 8, ["title"])) : y("", !0)
85
+ ], 2),
86
+ r.value && !h.value ? (l(), p(U, {
65
87
  key: 0,
66
- title: R.value
88
+ ref: "continue-button",
89
+ onClick: _[0] || (_[0] = (ie) => u.value = !0),
90
+ class: "next-button"
67
91
  }, {
68
- icon: v(() => [
69
- i.value ? (r(), p(G, {
70
- key: 0,
71
- class: "feedback__icon",
72
- "aria-hiden": "true"
73
- })) : (r(), p(H, {
74
- key: 1,
75
- class: "feedback__icon",
76
- "aria-hiden": "true"
77
- }))
78
- ]),
79
- content: v(() => [
80
- l("p", null, d(q.value), 1)
92
+ default: v(() => [
93
+ $(d(c(e)("proteger-mail-spam.nextStepButton")), 1)
81
94
  ]),
82
95
  _: 1
83
- }, 8, ["title"])) : y("", !0)
84
- ], 2),
85
- i.value && !h.value ? (r(), p(U, {
86
- key: 0,
87
- ref: "continue-button",
88
- onClick: _[0] || (_[0] = (ie) => c.value = !0),
89
- class: "next-button"
90
- }, {
91
- default: v(() => [
92
- $(d(u(a)("proteger-mail-spam.nextStepButton")), 1)
93
- ]),
94
- _: 1
95
- }, 512)) : y("", !0),
96
+ }, 512)) : y("", !0)
97
+ ]),
96
98
  g(Q, {
97
- content: u(a)("proteger-mail-spam.successPopin.content"),
98
- title: u(a)("proteger-mail-spam.successPopin.title"),
99
- show: c.value,
100
- "text-button": u(a)("proteger-mail-spam.successPopin.buttonLabel"),
101
- "root-element": u(C),
99
+ content: c(e)("proteger-mail-spam.successPopin.content"),
100
+ title: c(e)("proteger-mail-spam.successPopin.title"),
101
+ show: u.value,
102
+ "text-button": c(e)("proteger-mail-spam.successPopin.buttonLabel"),
103
+ "root-element": c(C),
102
104
  onPrimaryAction: T
103
105
  }, null, 8, ["content", "title", "show", "text-button", "root-element"])
104
106
  ], 512));
105
107
  }
106
- }), oe = "html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}table{border-collapse:collapse;border-spacing:0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);border:0}*{font-family:Roboto,Nunito,sans-serif}.main-container{display:flex;flex-direction:column;align-items:center;color:#122647;padding:.5rem}.main-container>:not(:first-child){margin-top:1.5rem}.main-container .header{font-style:normal;text-align:center}.main-container .header__title{font-family:Nunito,sans-serif;text-align:center;font-size:1.25rem;font-weight:700;line-height:28px;margin-bottom:.25rem}.main-container .header__description{text-align:center;font-family:Roboto,sans-serif;font-size:.875rem;line-height:20px}.main-container .feedback{width:100%}.main-container .feedback.is-hidden{margin-top:unset}.main-container .feedback__icon{width:1rem}.main-container .next-button{font-size:.875rem;font-weight:700;line-height:24px}", se = /* @__PURE__ */ V(ne, [["styles", [oe]]]);
108
+ }), oe = "html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}table{border-collapse:collapse;border-spacing:0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);border:0}*{font-family:Roboto,Nunito,sans-serif}.main-container{position:relative}.main-container section{display:flex;flex-direction:column;align-items:center;color:#122647;padding:.5rem}.main-container section>:not(:first-child){margin-top:1.5rem}.main-container .header{font-style:normal;text-align:center}.main-container .header__title{font-family:Nunito,sans-serif;text-align:center;font-size:1.25rem;font-weight:700;line-height:28px;margin-bottom:.25rem}.main-container .header__description{text-align:center;font-family:Roboto,sans-serif;font-size:.875rem;line-height:20px}.main-container .feedback{width:100%}.main-container .feedback.is-hidden{margin-top:unset}.main-container .feedback__icon{width:1rem}.main-container .next-button{font-size:.875rem;font-weight:700;line-height:24px}", se = /* @__PURE__ */ V(ne, [["styles", [oe]]]);
107
109
  b.addTranslationsFromGlobResults(/* @__PURE__ */ Object.assign({ "./locales/fr.json": Z }));
108
110
  const z = K(se, {
109
- configureApp(e) {
110
- b.changeLanguage(document?.documentElement?.lang || navigator.language), e.use(b);
111
+ configureApp(a) {
112
+ b.changeLanguage(document?.documentElement?.lang || navigator.language), a.use(b);
111
113
  }
112
114
  });
113
- z.prototype.normalizeProps = (e) => {
114
- const m = e.steps.map((a) => {
115
+ z.prototype.normalizeProps = (a) => {
116
+ const m = a.steps.map((e) => {
115
117
  const t = {
116
- ...a,
118
+ ...e,
117
119
  actions: w({
118
120
  ...e.actions,
119
121
  menuActions: w(e.actions?.menuActions)
@@ -122,7 +124,7 @@ z.prototype.normalizeProps = (e) => {
122
124
  return t.mail.sender.avatarColor = X(t.mail.sender.avatarColor), t;
123
125
  });
124
126
  return {
125
- titleLevel: Y(e.titleLevel),
127
+ titleLevel: Y(a.titleLevel),
126
128
  steps: m
127
129
  };
128
130
  };
@@ -1,5 +1,5 @@
1
- import { r as m, a0 as ve, a1 as P, i as ge, g as u, a2 as N, a3 as be, T as he, b as R, j as ae, c as C, o as v, l as H, a as n, f as T, B as S, H as _e, k as L, n as U, K as j, t as _, _ as F, G as xe, F as W, E as k, e as ye, s as we, D as ke, q as Ce, u as Be, m as Pe, d as Ae } from "../_plugin-vue_export-helper-D0N_62VD.js";
2
- import { u as Y, a as qe, i as X, b as Me } from "../i18n-ekiZvzf6.js";
1
+ import { r as m, a0 as ve, a1 as P, i as ge, g as u, a2 as N, a3 as be, T as he, b as R, j as ae, c as C, o as v, l as Y, a as n, f as T, B as S, H as _e, k as L, n as H, K as j, t as _, _ as F, G as xe, F as U, E as k, e as ye, s as we, D as ke, q as Ce, u as Be, m as Pe, d as Ae } from "../_plugin-vue_export-helper-D0N_62VD.js";
2
+ import { u as O, a as qe, i as X, b as Me } from "../i18n-ekiZvzf6.js";
3
3
  import { b as Te } from "../normalize-props-DH0oPBss.js";
4
4
  import { _ as D, a as G, F as Se } from "../Cross.ce.vue_vue_type_script_setup_true_lang-CVBFTfq5.js";
5
5
  import { P as Le } from "../Popin.ce-DUQ7-GMT.js";
@@ -7,7 +7,7 @@ const je = {}, Ve = {}, ze = {}, Re = {}, Fe = {}, Ie = {
7
7
  "trouver-mdp-rs": { submitButton: "Se connecter", retryButtonLabel: "Réessayer", feedback: { success: "Connexion réussie", failed: "Mauvaise réponse" }, userProfile: { subscriptions: "{count} abonnements", followers: "{count} abonnés" } }
8
8
  }, Ne = {}, Ee = {}, oe = m([]), ne = m(null), re = m(null), ie = m(null), se = m(null), f = ve({
9
9
  current: ""
10
- }), O = [], We = m(!1), B = P(oe), Oe = P(ne), Ye = P(re), He = P(ie), Ue = P(se), b = P(f), Xe = (e) => {
10
+ }), W = [], We = m(!1), B = P(oe), Oe = P(ne), Ye = P(re), He = P(ie), Ue = P(se), b = P(f), Xe = (e) => {
11
11
  oe.value = e;
12
12
  }, De = (e) => {
13
13
  ne.value = e;
@@ -42,8 +42,8 @@ const je = {}, Ve = {}, ze = {}, Re = {}, Fe = {}, Ie = {
42
42
  f.motionPreference = e, f.isMotion = e === "no-preference", f.isInert = e === "reduce";
43
43
  };
44
44
  function Je() {
45
- for (; O.length > 0; ) {
46
- const e = O.shift();
45
+ for (; W.length > 0; ) {
46
+ const e = W.shift();
47
47
  if (e && typeof e == "object") {
48
48
  const { mql: o, cb: t } = e;
49
49
  o.addEventListener && typeof o.addEventListener == "function" ? o.removeEventListener("change", t) : o.removeListener(t);
@@ -72,7 +72,7 @@ function z(e, o) {
72
72
  const t = window.matchMedia(e), a = ({ matches: r }) => {
73
73
  r && o();
74
74
  };
75
- O.push({ mql: t, cb: a }), t.addEventListener && typeof t.addEventListener == "function" ? t.addEventListener("change", a) : t.addListener(a), a(t);
75
+ W.push({ mql: t, cb: a }), t.addEventListener && typeof t.addEventListener == "function" ? t.addEventListener("change", a) : t.addListener(a), a(t);
76
76
  }
77
77
  }
78
78
  const w = (e) => B.value.some(
@@ -434,7 +434,7 @@ const vt = (e, {
434
434
  },
435
435
  emits: ["validate"],
436
436
  setup(e, { expose: o, emit: t }) {
437
- const { i18next: a, t: r } = Y(), i = fe(), s = ae("input-password"), l = m(""), d = m(!1), p = u(() => e.validations.password.localeCompare(l.value, a.language, { sensitivity: "base" }) === 0), c = u(() => d.value && p.value), h = u(() => p.value ? e.feedback.success : e.feedback.failed), x = u(() => p.value ? r("trouver-mdp-rs.feedback.success") : r("trouver-mdp-rs.feedback.failed"));
437
+ const { i18next: a, t: r } = O(), i = fe(), s = ae("input-password"), l = m(""), d = m(!1), p = u(() => e.validations.password.localeCompare(l.value, a.language, { sensitivity: "base" }) === 0), c = u(() => d.value && p.value), h = u(() => p.value ? e.feedback.success : e.feedback.failed), x = u(() => p.value ? r("trouver-mdp-rs.feedback.success") : r("trouver-mdp-rs.feedback.failed"));
438
438
  function A(M) {
439
439
  l.value = M.target.value, d.value = !1;
440
440
  }
@@ -452,7 +452,7 @@ const vt = (e, {
452
452
  const I = t;
453
453
  return (M, y) => (v(), C("form", {
454
454
  class: "login-form",
455
- onSubmit: H(g, ["prevent"])
455
+ onSubmit: Y(g, ["prevent"])
456
456
  }, [
457
457
  n("div", {
458
458
  role: "heading",
@@ -479,7 +479,7 @@ const vt = (e, {
479
479
  n("div", kt, [
480
480
  y[2] || (y[2] = n("label", { for: "password" }, "Mot de passe", -1)),
481
481
  n("div", {
482
- class: U(["login-form__field__input-container", {
482
+ class: H(["login-form__field__input-container", {
483
483
  "is-error": d.value && !p.value,
484
484
  "is-success": c.value,
485
485
  "is-disabled": c.value
@@ -489,7 +489,7 @@ const vt = (e, {
489
489
  ref: "input-password",
490
490
  id: "password",
491
491
  readonly: c.value,
492
- onInput: H(A, ["prevent"]),
492
+ onInput: Y(A, ["prevent"]),
493
493
  value: l.value
494
494
  }, null, 40, Ct),
495
495
  c.value ? (v(), T(D, {
@@ -531,7 +531,7 @@ const vt = (e, {
531
531
  n("button", {
532
532
  type: "submit",
533
533
  "aria-disabled": c.value,
534
- class: U({ "is-disabled": c.value })
534
+ class: H({ "is-disabled": c.value })
535
535
  }, " Se connecter ", 10, Bt)
536
536
  ], 32));
537
537
  }
@@ -546,13 +546,13 @@ const vt = (e, {
546
546
  titleLevel: { type: Number }
547
547
  },
548
548
  setup(e) {
549
- const { i18next: o } = Y();
549
+ const { i18next: o } = O();
550
550
  function t(a) {
551
551
  return Intl.DateTimeFormat(o.language).format(new Date(a));
552
552
  }
553
553
  return (a, r) => {
554
554
  const i = xe("i18next");
555
- return v(), C(W, null, [
555
+ return v(), C(U, null, [
556
556
  n("header", Tt, [
557
557
  n("img", {
558
558
  src: L(te),
@@ -601,7 +601,7 @@ const vt = (e, {
601
601
  "aria-setsize": e.publications.length,
602
602
  class: "feed-container"
603
603
  }, [
604
- (v(!0), C(W, null, ye(e.publications, (s, l) => (v(), C("article", {
604
+ (v(!0), C(U, null, ye(e.publications, (s, l) => (v(), C("article", {
605
605
  key: e.tag + l,
606
606
  "aria-posinset": l,
607
607
  "aria-labeledby": e.userName,
@@ -655,7 +655,7 @@ const vt = (e, {
655
655
  Ce(o.$slots, "content", {}, void 0, !0)
656
656
  ], 4));
657
657
  }
658
- }), Jt = '.mobile-wrapper[data-v-ad55001d]{border-radius:30px 30px 0 0;background:var(--background-color);height:inherit;position:relative;border:10px solid black;border-bottom:var(--border-bottom);display:flex;flex-direction:column;min-width:300px}.mobile-wrapper .cache-top[data-v-ad55001d]{position:absolute;z-index:6;top:0;left:32.5%;width:35%;height:15px;background:#000;border-bottom-left-radius:20px;border-bottom-right-radius:20px}.mobile-wrapper .cache-top .camera[data-v-ad55001d]{position:absolute;top:40%;right:5%;width:9%;max-width:10px;aspect-ratio:1;transform:translate(-50%,-50%);border-radius:50%;background:#ffffff4d}.mobile-wrapper .cache-top .camera[data-v-ad55001d]:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:25%;height:25%;border-radius:50%;background:#fff;filter:blur(1px)}.mobile-wrapper .buttons[data-v-ad55001d]{position:absolute;top:10%;left:-12.5px;height:20%;width:5px}.mobile-wrapper .button[data-v-ad55001d]{width:5px;background:#000;margin-bottom:10px;border-radius:30%}.mobile-wrapper .button.small[data-v-ad55001d]{height:15px;margin-bottom:10px}.mobile-wrapper .button.long[data-v-ad55001d]{height:30px}.mobile-wrapper[data-v-ad55001d]:first-child(){border-radius:16px}', $t = /* @__PURE__ */ F(Kt, [["styles", [Jt]], ["__scopeId", "data-v-ad55001d"]]), ea = { class: "container" }, ta = /* @__PURE__ */ R({
658
+ }), Jt = '.mobile-wrapper[data-v-ad55001d]{border-radius:30px 30px 0 0;background:var(--background-color);height:inherit;position:relative;border:10px solid black;border-bottom:var(--border-bottom);display:flex;flex-direction:column;min-width:300px}.mobile-wrapper .cache-top[data-v-ad55001d]{position:absolute;z-index:6;top:0;left:32.5%;width:35%;height:15px;background:#000;border-bottom-left-radius:20px;border-bottom-right-radius:20px}.mobile-wrapper .cache-top .camera[data-v-ad55001d]{position:absolute;top:40%;right:5%;width:9%;max-width:10px;aspect-ratio:1;transform:translate(-50%,-50%);border-radius:50%;background:#ffffff4d}.mobile-wrapper .cache-top .camera[data-v-ad55001d]:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:25%;height:25%;border-radius:50%;background:#fff;filter:blur(1px)}.mobile-wrapper .buttons[data-v-ad55001d]{position:absolute;top:10%;left:-12.5px;height:20%;width:5px}.mobile-wrapper .button[data-v-ad55001d]{width:5px;background:#000;margin-bottom:10px;border-radius:30%}.mobile-wrapper .button.small[data-v-ad55001d]{height:15px;margin-bottom:10px}.mobile-wrapper .button.long[data-v-ad55001d]{height:30px}.mobile-wrapper[data-v-ad55001d]:first-child(){border-radius:16px}', $t = /* @__PURE__ */ F(Kt, [["styles", [Jt]], ["__scopeId", "data-v-ad55001d"]]), ea = { class: "main-container" }, ta = /* @__PURE__ */ R({
659
659
  __name: "TrouverMdpRs.ce",
660
660
  props: {
661
661
  titleLevel: { default: 2, type: Number },
@@ -664,9 +664,9 @@ const vt = (e, {
664
664
  userProfile: { type: Object }
665
665
  },
666
666
  setup(e, { expose: o }) {
667
- const { t } = Y(), a = fe(), r = Be(), i = ae("login-form"), s = m(!1), l = m(""), d = m(""), p = m("");
667
+ const { t } = O(), a = fe(), r = Be(), i = ae("login-form"), s = m(!1), l = m(""), d = m(""), p = m("");
668
668
  function c() {
669
- i.value.reset();
669
+ i.value.reset(), s.value = !1;
670
670
  }
671
671
  function h(g) {
672
672
  l.value = g.isPasswordOk.value ? t("trouver-mdp-rs.feedback.success") : t("trouver-mdp-rs.feedback.failed"), p.value = g.isPasswordOk.value ? "" : t("trouver-mdp-rs.retryButtonLabel"), d.value = g.isPasswordOk.value ? e.feedback.success : e.feedback.failed, s.value = !0, g.isPasswordOk.value || i.value.inputPasswordRef.focus();
@@ -677,25 +677,23 @@ const vt = (e, {
677
677
  const A = u(() => a.phone);
678
678
  return o({
679
679
  reset: c
680
- }), (g, q) => (v(), C(W, null, [
681
- n("div", ea, [
682
- k(qt, {
683
- ref: "login-form",
684
- feedback: e.feedback,
685
- "title-level": e.titleLevel,
686
- validations: e.validations,
687
- onValidate: h
688
- }, null, 8, ["feedback", "title-level", "validations"]),
689
- k($t, {
690
- class: "mobile-shell",
691
- "background-color": "#fff"
692
- }, {
693
- content: j(() => [
694
- k(Qt, Pe(e.userProfile, { "title-level": e.titleLevel }), null, 16, ["title-level"])
695
- ]),
696
- _: 1
697
- })
698
- ]),
680
+ }), (g, q) => (v(), C("div", ea, [
681
+ k(qt, {
682
+ ref: "login-form",
683
+ feedback: e.feedback,
684
+ "title-level": e.titleLevel,
685
+ validations: e.validations,
686
+ onValidate: h
687
+ }, null, 8, ["feedback", "title-level", "validations"]),
688
+ k($t, {
689
+ class: "mobile-shell",
690
+ "background-color": "#fff"
691
+ }, {
692
+ content: j(() => [
693
+ k(Qt, Pe(e.userProfile, { "title-level": e.titleLevel }), null, 16, ["title-level"])
694
+ ]),
695
+ _: 1
696
+ }),
699
697
  k(Le, {
700
698
  "root-element": L(r),
701
699
  show: A.value && s.value,
@@ -706,9 +704,9 @@ const vt = (e, {
706
704
  class: "popin",
707
705
  onPrimaryAction: x
708
706
  }, null, 8, ["root-element", "show", "text-button", "content", "title"])
709
- ], 64));
707
+ ]));
710
708
  }
711
- }), aa = ".container[data-v-2dcd5996]{font-family:Roboto,Nunito,sans-serif;color:#122647;position:relative;display:flex;gap:32px;padding-inline:.75rem;max-height:550px}.mobile-shell[data-v-2dcd5996]{flex:1}.popin[data-v-2dcd5996]{display:none}@media screen and (max-width:769px){.container[data-v-2dcd5996]{flex-direction:column-reverse}.mobile-shell[data-v-2dcd5996]{display:flex;flex-direction:column;gap:16px;overflow-y:scroll;border:none;border-radius:0}.mobile-shell[data-v-2dcd5996] .buttons,.mobile-shell[data-v-2dcd5996] .cache-top{display:none}.popin[data-v-2dcd5996]{display:inherit}}", oa = /* @__PURE__ */ F(ta, [["styles", [aa]], ["__scopeId", "data-v-2dcd5996"]]);
709
+ }), aa = ".main-container[data-v-35a26f26]{font-family:Roboto,Nunito,sans-serif;color:#122647;position:relative;display:flex;gap:32px;padding-inline:.75rem;max-height:550px}.mobile-shell[data-v-35a26f26]{flex:1}.popin[data-v-35a26f26]{display:none}@media screen and (max-width:769px){.main-container[data-v-35a26f26]{flex-direction:column-reverse}.mobile-shell[data-v-35a26f26]{display:flex;flex-direction:column;gap:16px;overflow-y:scroll;border:none;border-radius:0}.mobile-shell[data-v-35a26f26] .buttons,.mobile-shell[data-v-35a26f26] .cache-top{display:none}.popin[data-v-35a26f26]{display:inherit}}", oa = /* @__PURE__ */ F(ta, [["styles", [aa]], ["__scopeId", "data-v-35a26f26"]]);
712
710
  qe(/* @__PURE__ */ Object.assign({ "./locales/de-AT.json": je, "./locales/en.json": Ve, "./locales/es-419.json": ze, "./locales/es.json": Re, "./locales/fr-BE.json": Fe, "./locales/fr.json": Ie, "./locales/it.json": Ne, "./locales/nl.json": Ee })).catch((e) => console.error(e));
713
711
  const pe = Ae(oa, {
714
712
  configureApp(e) {
@@ -33,7 +33,7 @@ const s = [{ subject: "Votre nouvel avis d’imposition est disponible", from: {
33
33
  passwords: M
34
34
  }, E = "Conversation entre Emma et Gustave à propos d’un prompt", D = 20, V = [{ userName: "Gustave", direction: "incoming", type: "Texte", content: "Je ne comprends pas... Toi, t’arrives à faire plein de choses avec l’IA, avec moi ça ne marche pas !😒" }, { userName: "Emma", direction: "outgoing", type: "Texte", content: "Ah bon ? 🤖" }, { userName: "Emma", direction: "outgoing", type: "Texte + Image", content: "Quel prompt as-tu utilisé ?", image: { src: "https://epreuves.pix.fr/images/onu4.jpg", alt: "Martin pêcheur en fait" } }, { userName: "Gustave", direction: "incoming", type: "Texte", content: 'Je veux informer les joueurs donc mon prompt c’était "Invite tous les joueurs aux tournois".' }, { userName: "Emma", direction: "outgoing", type: "Texte", content: `C’est normal, ton prompt est trop flou ! L’IA ne peut pas deviner ce que tu veux. 😉
35
35
  Il y a des techniques pour améliorer les résultats. 💡` }], B = {
36
- title: E,
36
+ conversationTitle: E,
37
37
  animationSpeed: D,
38
38
  messages: V
39
39
  }, O = 2, R = {
@@ -47,7 +47,7 @@ Il y a des techniques pour améliorer les résultats. 💡` }], B = {
47
47
  steps: J
48
48
  }, H = 2, W = "🔴 Une vidéo de la maire de la capitale crée la polémique", Y = "Rédaction Locale", K = "14 mai 2025", Z = ["Une vidéo diffusée ce matin montre la maire de la capitale, Claire Durand, déclarant : « Il faut faire de la place aux jeunes. À partir de l’an prochain, les personnes âgées n’auront plus accès aux parcs municipaux ».", "Relayée massivement sur les réseaux, la séquence suscite de vives réactions, dénonçant des propos « discriminatoires ». Certains demandent la démission immédiate de la maire. Mais l’après-midi même, la mairie réagit : {{highlightedSentence}}, affirme le service communication. La vidéo a été retirée des réseaux sociaux, à la demande de la mairie. Une plainte a été déposée."], X = "« Il s’agit d’un deepfake »", ee = "#bb0101", te = {
49
49
  titleLevel: H,
50
- title: W,
50
+ articleTitle: W,
51
51
  author: Y,
52
52
  date: K,
53
53
  paragraphs: Z,
package/dist/schema.js CHANGED
@@ -79,7 +79,7 @@ const u = e.object({
79
79
  image: e.string().required()
80
80
  })
81
81
  ).required()
82
- }), o = e.object({
82
+ }), s = e.object({
83
83
  name: e.string().required(),
84
84
  multiple: e.boolean().optional(),
85
85
  context: e.string().optional(),
@@ -97,7 +97,7 @@ const u = e.object({
97
97
  }).required()
98
98
  ).required()
99
99
  }).required(), p = e.object({
100
- quizzes: e.array().items(o).required()
100
+ quizzes: e.array().items(s).required()
101
101
  }).required(), _ = e.object({
102
102
  passwords: e.array().items(e.string()).required()
103
103
  }), i = {
@@ -107,7 +107,7 @@ const u = e.object({
107
107
  src: e.string().required(),
108
108
  alt: e.string().required()
109
109
  }).unknown(!0), j = e.object({
110
- title: e.string().required(),
110
+ conversationTitle: e.string().empty("").optional(),
111
111
  messages: e.array().items(e.alternatives().conditional(".type", {
112
112
  switch: [
113
113
  {
@@ -169,7 +169,7 @@ const u = e.object({
169
169
  steps: e.array().items(x)
170
170
  }), w = e.object({
171
171
  titleLevel: e.number().optional(),
172
- title: e.string().required(),
172
+ articleTitle: e.string().required(),
173
173
  author: e.string().required(),
174
174
  date: e.string().required(),
175
175
  paragraphs: e.array().items(e.string().required()),
@@ -217,7 +217,7 @@ const u = e.object({
217
217
  imageTextDisplay: e.string().empty("").optional()
218
218
  }).meta({ title: "pix-carousel" }).required(), A = e.object({
219
219
  titleLevel: e.number().optional()
220
- }), M = e.object({
220
+ }), T = e.object({
221
221
  options: e.array().items(e.object({
222
222
  label: e.string().required(),
223
223
  feedback: e.object({
@@ -228,10 +228,10 @@ const u = e.object({
228
228
  }), n = e.object({
229
229
  title: e.string().required(),
230
230
  llmName: e.string().required()
231
- }).required(), C = e.object({
231
+ }).required(), M = e.object({
232
232
  direction: e.string().valid("inbound").required(),
233
233
  content: e.string().required()
234
- }).required(), T = e.object({
234
+ }).required(), C = e.object({
235
235
  direction: e.string().valid("outbound").required(),
236
236
  content: e.string().required()
237
237
  }).required(), P = e.object({
@@ -239,7 +239,7 @@ const u = e.object({
239
239
  conversation2: n,
240
240
  userName: e.string().required(),
241
241
  messages: e.array().items(
242
- e.alternatives(T, e.array().items(C).min(2).max(2).required())
242
+ e.alternatives(C, e.array().items(M).min(2).max(2).required())
243
243
  ).required()
244
244
  }).required(), a = e.object({
245
245
  direction: e.string().valid("inbound", "outbound").required(),
@@ -298,15 +298,15 @@ const u = e.object({
298
298
  }), B = e.object({
299
299
  success: e.string().required(),
300
300
  failed: e.string().required()
301
- }), s = e.object({
301
+ }), o = e.object({
302
302
  title: e.string().optional(),
303
303
  content: e.string().optional(),
304
304
  isGoodAnswer: e.boolean().optional()
305
305
  }), E = e.object({
306
306
  question: e.string().required(),
307
307
  feedback: B.required(),
308
- choice1: s.required(),
309
- choice2: s.required()
308
+ choice1: o.required(),
309
+ choice2: o.required()
310
310
  }), G = e.object({
311
311
  titleLevel: e.number().optional(),
312
312
  steps: e.array().items(E)
@@ -369,7 +369,7 @@ const u = e.object({
369
369
  validations: R.required(),
370
370
  feedback: Q.required(),
371
371
  userProfile: K.required()
372
- }), X = /* @__PURE__ */ Object.assign({ "./analyse-mails-phishing/analyse-mails-phishing.schema.js": u, "./calcul-impact/calcul-impact.schema.js": l, "./capacity-calculation/capacity-calculation.schema.js": m, "./clickable-image/clickable-image.schema.js": g, "./complete-phrase/complete-phrase.schema.js": b, "./flip-cards/flip-cards.schema.js": q, "./image-quiz/image-quiz.schema.js": o, "./image-quiz/image-quizzes.schema.js": p, "./mdp-classement/mdp-classement.schema.js": _, "./message-conversation/message-conversation.schema.js": j, "./phishing-message/phishing-message.schema.js": h, "./phishing-notification/phishing-notification.schema.js": v, "./pix-anonymisation/pix-anonymisation.schema.js": f, "./pix-article/pix-article.schema.js": w, "./pix-carousel/pix-carousel.schema.js": z, "./pix-combinaisons/pix-combinaisons.schema.js": A, "./pix-cursor/pix-cursor.schema.js": M, "./pix-llm/llm-compare-messages.schema.js": P, "./pix-llm/llm-messages.schema.js": N, "./pix-llm/llm-prompt-select.schema.js": O, "./proteger-mail-spam/proteger-mail-spam.schema.js": $, "./qcm-deepfake/qcm-deepfake.schema.js": D, "./quiz-stepper/quiz-stepper.schema.js": G, "./select-conversation/select-conversation.schema.js": H, "./template-mail/template-mail.schema.js": J, "./test-top-mdp/test-top-mdp.schema.js": U, "./trouver-mdp-rs/trouver-mdp-rs.schema.js": V }), Z = Object.fromEntries(Object.entries(X).map(([c, d]) => [
372
+ }), X = /* @__PURE__ */ Object.assign({ "./analyse-mails-phishing/analyse-mails-phishing.schema.js": u, "./calcul-impact/calcul-impact.schema.js": l, "./capacity-calculation/capacity-calculation.schema.js": m, "./clickable-image/clickable-image.schema.js": g, "./complete-phrase/complete-phrase.schema.js": b, "./flip-cards/flip-cards.schema.js": q, "./image-quiz/image-quiz.schema.js": s, "./image-quiz/image-quizzes.schema.js": p, "./mdp-classement/mdp-classement.schema.js": _, "./message-conversation/message-conversation.schema.js": j, "./phishing-message/phishing-message.schema.js": h, "./phishing-notification/phishing-notification.schema.js": v, "./pix-anonymisation/pix-anonymisation.schema.js": f, "./pix-article/pix-article.schema.js": w, "./pix-carousel/pix-carousel.schema.js": z, "./pix-combinaisons/pix-combinaisons.schema.js": A, "./pix-cursor/pix-cursor.schema.js": T, "./pix-llm/llm-compare-messages.schema.js": P, "./pix-llm/llm-messages.schema.js": N, "./pix-llm/llm-prompt-select.schema.js": O, "./proteger-mail-spam/proteger-mail-spam.schema.js": $, "./qcm-deepfake/qcm-deepfake.schema.js": D, "./quiz-stepper/quiz-stepper.schema.js": G, "./select-conversation/select-conversation.schema.js": H, "./template-mail/template-mail.schema.js": J, "./test-top-mdp/test-top-mdp.schema.js": U, "./trouver-mdp-rs/trouver-mdp-rs.schema.js": V }), Z = Object.fromEntries(Object.entries(X).map(([c, d]) => [
373
373
  c.replace(/^.*\/([^/]+)\.schema\.js$/, "$1"),
374
374
  d
375
375
  ]));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1024pix/epreuves-components",
3
- "version": "4.0.0",
3
+ "version": "4.0.1",
4
4
  "type": "module",
5
5
  "description": "A collection of interactive components to be used in Pix challenges or modules",
6
6
  "exports": {