@1024pix/epreuves-components 1.4.5 → 1.5.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.
Files changed (30) hide show
  1. package/dist/LLMMessage.ce-CcaSmq0J.js +96 -0
  2. package/dist/Loading.ce-kO02LfAR.js +14 -0
  3. package/dist/NavigationButton.ce-BUeEdL4x.js +98 -0
  4. package/dist/{_plugin-vue_export-helper-CwwQJ1m6.js → _plugin-vue_export-helper-BGEtPlxS.js} +1373 -1355
  5. package/dist/components/calcul-impact.ce.js.js +91 -85
  6. package/dist/components/capacity-calculation.ce.js.js +117 -111
  7. package/dist/components/clickable-image.ce.js.js +83 -59
  8. package/dist/components/complete-phrase.ce.js.js +57 -51
  9. package/dist/components/flip-cards.ce.js.js +43 -46
  10. package/dist/components/image-quiz.ce.js.js +6 -4
  11. package/dist/components/image-quizzes.ce.js.js +18 -14
  12. package/dist/components/llm-compare-messages.ce.js.js +17 -17
  13. package/dist/components/llm-messages.ce.js.js +17 -17
  14. package/dist/components/llm-prompt-select.ce.js.js +37 -32
  15. package/dist/components/message-conversation.ce.js.js +61 -52
  16. package/dist/components/pix-article.ce.js.js +26 -20
  17. package/dist/components/pix-carousel.ce.js.js +142 -134
  18. package/dist/components/pix-cursor.ce.js.js +62 -62
  19. package/dist/components/qcm-deepfake.ce.js.js +97 -91
  20. package/dist/{i18n-gncqQJ0G.js → i18n-D3E2CT0o.js} +44 -40
  21. package/dist/image-quiz.ce-Qe3SbGDF.js +141 -0
  22. package/dist/index.js +1 -1
  23. package/dist/normalize-props-AlmAfi_u.js +13 -0
  24. package/dist/schema.js +8 -9
  25. package/dist/{shadow-dom-MxYtPVXS.js → shadow-dom-Bqt3ZRMI.js} +1 -1
  26. package/package.json +1 -1
  27. package/dist/ImageQuiz.ce-BLOWdEiw.js +0 -123
  28. package/dist/LLMMessage.ce-DnZ8kE2i.js +0 -89
  29. package/dist/Loading.ce-FI776zdC.js +0 -14
  30. package/dist/NavigationButton.ce-gp04deGY.js +0 -98
@@ -1,33 +1,34 @@
1
- import { a as w, c as i, o as t, f as e, t as r, x as P, _ as x, r as b, y as g, F as v, b as h, D as B, e as C, d as A } from "../_plugin-vue_export-helper-CwwQJ1m6.js";
2
- import { a as M, i as f, b as z } from "../i18n-gncqQJ0G.js";
3
- import { L as y } from "../LLMMessage.ce-DnZ8kE2i.js";
4
- const j = {}, N = {}, T = {
1
+ import { d as x, c as n, o as a, f as t, t as s, x as C, _ as w, r as c, y as g, F as v, a as h, D as B, b as z, e as A } from "../_plugin-vue_export-helper-BGEtPlxS.js";
2
+ import { a as M, i as y, b as j } from "../i18n-D3E2CT0o.js";
3
+ import { u as N } from "../normalize-props-AlmAfi_u.js";
4
+ import { L as f } from "../LLMMessage.ce-CcaSmq0J.js";
5
+ const T = {}, D = {}, E = {}, I = {
5
6
  "complete-phrase": { iaSuggestions: "🧠 Probabilité du mot suivant", explanation: "La barre indique la probabilité de chaque mot. Plus elle est longue, plus le mot est probable dans ce contexte.", ariaLabelDescription: "Le mot {{name}} a une probabilité de {{percent}}%", clickHereButton: "Afficher le mot suivant choisi par l'IA", successfullyCompletedSentence: "👇 Répondez à la question ci-dessous" }
6
- }, D = {}, E = {}, I = { class: "probability-bar" }, R = { "aria-hidden": "true" }, q = { class: "sr-only" }, F = /* @__PURE__ */ w({
7
+ }, R = {}, q = {}, F = { class: "probability-bar" }, O = { "aria-hidden": "true" }, H = { class: "sr-only" }, V = /* @__PURE__ */ x({
7
8
  __name: "ProbabilityBar.ce",
8
9
  props: {
9
10
  name: { type: String },
10
11
  percent: { type: Number }
11
12
  },
12
- setup(n) {
13
- return (o, s) => (t(), i("div", I, [
14
- e("p", R, r(o.name), 1),
15
- e("p", q, r(o.$t("complete-phrase.ariaLabelDescription", { name: o.name, percent: o.percent })), 1),
16
- e("div", {
17
- style: P(`width: ${o.percent}%`),
13
+ setup(e) {
14
+ return (b, o) => (a(), n("div", F, [
15
+ t("p", O, s(e.name), 1),
16
+ t("p", H, s(b.$t("complete-phrase.ariaLabelDescription", { name: e.name, percent: e.percent })), 1),
17
+ t("div", {
18
+ style: C(`width: ${e.percent}%`),
18
19
  class: "probability-bar__percent",
19
20
  "aria-hidden": "true"
20
21
  }, null, 4),
21
- s[0] || (s[0] = e("div", {
22
+ o[0] || (o[0] = t("div", {
22
23
  class: "probability-bar__background",
23
24
  "aria-hidden": "true"
24
25
  }, null, -1))
25
26
  ]));
26
27
  }
27
- }), O = ".probability-bar[data-v-d89fc563]{position:relative;padding-bottom:10px;border-bottom:1px solid #cbcbcb}.probability-bar__percent[data-v-d89fc563]{position:absolute;left:0;z-index:2;height:5px;border-radius:5px;background-color:#235386}.probability-bar__background[data-v-d89fc563]{position:absolute;left:0;z-index:1;width:100%;height:5px;border-radius:5px;background-color:#92a1b2}.probability-bar p[data-v-d89fc563]{margin-bottom:0}.sr-only[data-v-d89fc563]{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}", H = /* @__PURE__ */ x(F, [["styles", [O]], ["__scopeId", "data-v-d89fc563"]]), V = { class: "container" }, W = { class: "container__left-side" }, G = { class: "container__conversation" }, J = ["aria-describedby"], K = {
28
+ }), W = ".probability-bar[data-v-3be3d88e]{position:relative;padding-bottom:10px;border-bottom:1px solid #cbcbcb}.probability-bar__percent[data-v-3be3d88e]{position:absolute;left:0;z-index:2;height:5px;border-radius:5px;background-color:#235386}.probability-bar__background[data-v-3be3d88e]{position:absolute;left:0;z-index:1;width:100%;height:5px;border-radius:5px;background-color:#92a1b2}.probability-bar p[data-v-3be3d88e]{margin-bottom:0}.sr-only[data-v-3be3d88e]{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}", G = /* @__PURE__ */ w(V, [["styles", [W]], ["__scopeId", "data-v-3be3d88e"]]), J = { class: "container" }, K = { class: "container__left-side" }, Q = { class: "container__conversation" }, U = ["aria-describedby"], X = {
28
29
  key: 1,
29
30
  class: "container__successSentence"
30
- }, Q = { class: "container__right-side" }, U = ["aria-level"], X = { "aria-hidden": "true" }, Y = { class: "probabilities" }, Z = ["id", "aria-hidden"], ee = /* @__PURE__ */ w({
31
+ }, Y = { class: "container__right-side" }, Z = ["aria-level"], ee = { "aria-hidden": "true" }, te = { class: "probabilities" }, ae = ["id", "aria-hidden"], oe = /* @__PURE__ */ x({
31
32
  __name: "CompletePhrase.ce",
32
33
  props: {
33
34
  listOfProbabilityBarsLists: { type: Array },
@@ -36,65 +37,70 @@ const j = {}, N = {}, T = {
36
37
  wordsToAdd: { type: Array },
37
38
  titleLevel: { type: Number }
38
39
  },
39
- setup(n, { expose: o }) {
40
- const s = n, d = b(0), p = b(s.llmMessage), u = b(!1), l = b(s.wordsToAdd);
41
- function k() {
42
- u.value = !1, p.value = s.llmMessage, l.value = s.wordsToAdd, d.value = 0;
40
+ setup(e, { expose: b }) {
41
+ const o = e, r = c(0), p = c(o.llmMessage), u = c(!1), d = c(o.wordsToAdd);
42
+ function L() {
43
+ u.value = !1, p.value = o.llmMessage, d.value = o.wordsToAdd, r.value = 0;
43
44
  }
44
45
  function $() {
45
- l.value.length === 1 && (u.value = !0), d.value += 1;
46
- const [a, ..._] = l.value;
47
- l.value = _, p.value += `<span style="font-weight: bold;">${a} </span>`;
46
+ d.value.length === 1 && (u.value = !0), r.value += 1;
47
+ const [i, ..._] = d.value;
48
+ d.value = _, p.value += `<span style="font-weight: bold;">${i} </span>`;
48
49
  }
49
- return o({
50
- reset: k
51
- }), (a, _) => (t(), i("div", V, [
52
- e("div", W, [
53
- e("div", G, [
54
- g(y, {
50
+ return b({
51
+ reset: L
52
+ }), (i, _) => (a(), n("div", J, [
53
+ t("div", K, [
54
+ t("div", Q, [
55
+ g(f, {
55
56
  class: "container__message",
56
- message: { content: a.userMessage, direction: "outbound" }
57
+ message: { content: e.userMessage, direction: "outbound" }
57
58
  }, null, 8, ["message"]),
58
- g(y, {
59
+ g(f, {
59
60
  class: "container__message",
60
61
  message: { content: p.value, direction: "inbound" }
61
62
  }, null, 8, ["message"])
62
63
  ]),
63
- u.value ? (t(), i("p", K, r(a.$t("complete-phrase.successfullyCompletedSentence")), 1)) : (t(), i("button", {
64
+ u.value ? (a(), n("p", X, s(i.$t("complete-phrase.successfullyCompletedSentence")), 1)) : (a(), n("button", {
64
65
  key: 0,
65
66
  onClick: $,
66
67
  class: "container__button",
67
- "aria-describedby": `currentProbability${d.value}`
68
- }, r(a.$t("complete-phrase.clickHereButton")), 9, J))
68
+ "aria-describedby": `currentProbability${r.value}`
69
+ }, s(i.$t("complete-phrase.clickHereButton")), 9, U))
69
70
  ]),
70
- e("div", Q, [
71
- e("div", {
71
+ t("div", Y, [
72
+ t("div", {
72
73
  class: "container__title",
73
74
  role: "heading",
74
- "aria-level": a.titleLevel
75
- }, r(a.$t("complete-phrase.iaSuggestions")), 9, U),
76
- e("p", X, r(a.$t("complete-phrase.explanation")), 1),
77
- e("div", Y, [
78
- (t(!0), i(v, null, h(a.listOfProbabilityBarsLists, (L, c) => (t(), i("div", {
79
- class: B(["probability", { hidden: c !== d.value }]),
80
- key: c,
81
- id: `currentProbability${c}`,
82
- "aria-hidden": c !== d.value
75
+ "aria-level": e.titleLevel
76
+ }, s(i.$t("complete-phrase.iaSuggestions")), 9, Z),
77
+ t("p", ee, s(i.$t("complete-phrase.explanation")), 1),
78
+ t("div", te, [
79
+ (a(!0), n(v, null, h(e.listOfProbabilityBarsLists, (P, l) => (a(), n("div", {
80
+ class: B(["probability", { hidden: l !== r.value }]),
81
+ key: l,
82
+ id: `currentProbability${l}`,
83
+ "aria-hidden": l !== r.value
83
84
  }, [
84
- (t(!0), i(v, null, h(L, (m, S) => (t(), C(H, {
85
+ (a(!0), n(v, null, h(P, (m, S) => (a(), z(G, {
85
86
  name: m.name,
86
87
  percent: m.percent,
87
88
  key: S
88
89
  }, null, 8, ["name", "percent"]))), 128))
89
- ], 10, Z))), 128))
90
+ ], 10, ae))), 128))
90
91
  ])
91
92
  ])
92
93
  ]));
93
94
  }
94
- }), ae = "[data-v-db6bda33]{--pix-neutral-800: #253858;font-family:Nunito,Roboto,sans-serif;color:var(--pix-neutral-800)}.container[data-v-db6bda33]{display:grid;grid-row:auto;gap:10px}.container__conversation[data-v-db6bda33]{display:flex;flex-direction:column;background:#fff;padding:1rem;border-radius:10px;margin-bottom:1rem;border:solid 1px lightgrey}.container__title[data-v-db6bda33]{font-size:1.2rem;font-weight:700}.container .probabilities[data-v-db6bda33]{display:grid}.container .probability[data-v-db6bda33]{grid-row:1;grid-column:1}.container__right-side[data-v-db6bda33]{grid-column:2;grid-row:1}.container__right-side h2[data-v-db6bda33]{margin-top:0}.container__right-side .hidden[data-v-db6bda33]{visibility:hidden;grid-row:1;grid-column:1}.container__left-side[data-v-db6bda33]{grid-column:1;grid-row:1}.container__message[data-v-db6bda33]{margin-bottom:20px}.container__successSentence[data-v-db6bda33]{width:90%;padding:.8rem .5rem;border-radius:10px}.container__button[data-v-db6bda33]{width:90%;border:none;padding:1.2rem 1rem;background:#355ac4;color:#fff;border-radius:10px;font-weight:700;font-size:1rem}.container__button[data-v-db6bda33]:hover{background:#2b3c77;cursor:pointer}@media (max-width: 600px){.container[data-v-db6bda33]{display:flex;flex-wrap:wrap}}", te = /* @__PURE__ */ x(ee, [["styles", [ae]], ["__scopeId", "data-v-db6bda33"]]);
95
- M(/* @__PURE__ */ Object.assign({ "./locales/en.json": j, "./locales/es.json": N, "./locales/fr.json": T, "./locales/it.json": D, "./locales/nl.json": E })).catch((n) => console.error(n));
96
- window.customElements.define("complete-phrase", A(te, {
97
- configureApp(n) {
98
- f.changeLanguage(document?.documentElement?.lang || navigator.language), n.use(z, { i18next: f });
95
+ }), ne = "[data-v-db6bda33]{--pix-neutral-800: #253858;font-family:Nunito,Roboto,sans-serif;color:var(--pix-neutral-800)}.container[data-v-db6bda33]{display:grid;grid-row:auto;gap:10px}.container__conversation[data-v-db6bda33]{display:flex;flex-direction:column;background:#fff;padding:1rem;border-radius:10px;margin-bottom:1rem;border:solid 1px lightgrey}.container__title[data-v-db6bda33]{font-size:1.2rem;font-weight:700}.container .probabilities[data-v-db6bda33]{display:grid}.container .probability[data-v-db6bda33]{grid-row:1;grid-column:1}.container__right-side[data-v-db6bda33]{grid-column:2;grid-row:1}.container__right-side h2[data-v-db6bda33]{margin-top:0}.container__right-side .hidden[data-v-db6bda33]{visibility:hidden;grid-row:1;grid-column:1}.container__left-side[data-v-db6bda33]{grid-column:1;grid-row:1}.container__message[data-v-db6bda33]{margin-bottom:20px}.container__successSentence[data-v-db6bda33]{width:90%;padding:.8rem .5rem;border-radius:10px}.container__button[data-v-db6bda33]{width:90%;border:none;padding:1.2rem 1rem;background:#355ac4;color:#fff;border-radius:10px;font-weight:700;font-size:1rem}.container__button[data-v-db6bda33]:hover{background:#2b3c77;cursor:pointer}@media(max-width:600px){.container[data-v-db6bda33]{display:flex;flex-wrap:wrap}}", ie = /* @__PURE__ */ w(oe, [["styles", [ne]], ["__scopeId", "data-v-db6bda33"]]);
96
+ M(/* @__PURE__ */ Object.assign({ "./locales/en.json": T, "./locales/es-419.json": D, "./locales/es.json": E, "./locales/fr.json": I, "./locales/it.json": R, "./locales/nl.json": q })).catch((e) => console.error(e));
97
+ const k = A(ie, {
98
+ configureApp(e) {
99
+ y.changeLanguage(document?.documentElement?.lang || navigator.language), e.use(j, { i18next: y });
99
100
  }
100
- }));
101
+ });
102
+ k.prototype.normalizeProps = (e) => ({
103
+ ...e,
104
+ titleLevel: N(e.titleLevel)
105
+ });
106
+ window.customElements.define("complete-phrase", k);
@@ -1,8 +1,6 @@
1
- import { a as b, c as o, o as s, F as u, f as t, D as g, I as f, t as p, E as _, _ as h, r as x, b as w, H as v, y as k, d as F } from "../_plugin-vue_export-helper-CwwQJ1m6.js";
2
- import { a as L, i as m, b as C } from "../i18n-gncqQJ0G.js";
3
- const S = {
4
- "flip-cards": {}
5
- }, $ = ["aria-hidden"], z = ["src"], N = ["title-level"], j = ["aria-hidden"], E = ["aria-level"], B = { class: "description" }, U = { class: "image-container" }, D = ["src"], I = /* @__PURE__ */ b({
1
+ import { d as m, c as n, o as d, F as u, f as t, D as v, G as p, t as f, E as y, _ as h, r as w, a as k, H as g, y as F, e as _ } from "../_plugin-vue_export-helper-BGEtPlxS.js";
2
+ import { u as L } from "../normalize-props-AlmAfi_u.js";
3
+ const C = ["aria-hidden"], z = ["src"], N = ["title-level"], S = ["aria-hidden"], $ = ["aria-level"], B = { class: "description" }, E = { class: "image-container" }, U = ["src"], j = /* @__PURE__ */ m({
6
4
  __name: "FlipCard.ce",
7
5
  props: {
8
6
  titleLevel: { type: Number },
@@ -13,97 +11,96 @@ const S = {
13
11
  isFlipped: { type: Boolean },
14
12
  name: { type: String }
15
13
  },
16
- setup(r) {
17
- const d = new URL(r.icon, import.meta.url).href, l = new URL(r.image, import.meta.url).href;
18
- return (e, i) => (s(), o(u, null, [
14
+ setup(e) {
15
+ const o = new URL(e.icon, import.meta.url).href, l = new URL(e.image, import.meta.url).href;
16
+ return (s, i) => (d(), n(u, null, [
19
17
  t("div", {
20
- class: g(["card recto", `${e.color}`]),
18
+ class: v(["card recto", `${e.color}`]),
21
19
  "aria-hidden": e.isFlipped ? "true" : "false"
22
20
  }, [
23
21
  t("img", {
24
22
  class: "icon",
25
- src: f(d),
23
+ src: p(o),
26
24
  alt: ""
27
25
  }, null, 8, z),
28
26
  t("div", {
29
27
  role: "heading",
30
28
  "title-level": e.titleLevel,
31
29
  class: "title"
32
- }, p(e.name), 9, N)
33
- ], 10, $),
30
+ }, f(e.name), 9, N)
31
+ ], 10, C),
34
32
  t("div", {
35
- class: g(["card verso", { flipped: e.isFlipped, [e.color]: e.color }]),
33
+ class: v(["card verso", { flipped: e.isFlipped, [e.color]: e.color }]),
36
34
  "aria-hidden": e.isFlipped ? "false" : "true"
37
35
  }, [
38
36
  t("div", {
39
37
  role: "heading",
40
38
  "aria-level": e.titleLevel,
41
39
  class: "title"
42
- }, p(e.name), 9, E),
43
- t("p", B, p(e.description), 1),
44
- t("div", U, [
45
- f(l) ? (s(), o("img", {
40
+ }, f(e.name), 9, $),
41
+ t("p", B, f(e.description), 1),
42
+ t("div", E, [
43
+ p(l) ? (d(), n("img", {
46
44
  key: 0,
47
- src: f(l),
45
+ src: p(l),
48
46
  alt: ""
49
- }, null, 8, D)) : _("", !0)
47
+ }, null, 8, U)) : y("", !0)
50
48
  ])
51
- ], 10, j)
49
+ ], 10, S)
52
50
  ], 64));
53
51
  }
54
- }), K = "[data-v-897a493f]{box-sizing:border-box}.card[data-v-897a493f]{align-items:center;backface-visibility:hidden;-webkit-backface-visibility:hidden;background:#fff;border-radius:12px;color:#253858;display:flex;flex-direction:column;gap:1.2rem;inset:0;justify-content:center;padding:18px;position:absolute;transform:translateZ(0);transition:transform ease .5s}.card .title[data-v-897a493f]{font-family:Nunito,sans-serif;font-size:1rem;font-weight:700;line-height:29px}.card.recto.red[data-v-897a493f]{background:linear-gradient(150deg,#fff,#ff7373)}.card.recto.yellow[data-v-897a493f]{background:linear-gradient(150deg,#fff,#ffec73)}.card.recto.blue[data-v-897a493f]{background:linear-gradient(150deg,#fff,#2491ff)}.card.recto.purple[data-v-897a493f]{background:linear-gradient(150deg,#fff,#9177f2)}.card.recto.green[data-v-897a493f]{background:linear-gradient(150deg,#fff,#52d987)}.card.recto.pink[data-v-897a493f]{background:linear-gradient(150deg,#fff,#f041bf)}.card.recto .icon[data-v-897a493f]{display:block;height:auto;width:40px}.card.verso[data-v-897a493f]{line-height:1.2rem;padding:8px;text-align:center;transform:rotateY(180deg) translateZ(0)}.card.verso.flipped.red[data-v-897a493f]{border:2px solid #ff7373}.card.verso.flipped.yellow[data-v-897a493f]{border:2px solid #ffec73}.card.verso.flipped.blue[data-v-897a493f]{border:2px solid #2491ff}.card.verso.flipped.purple[data-v-897a493f]{border:2px solid #9177f2}.card.verso.flipped.green[data-v-897a493f]{border:2px solid #52d987}.card.verso.flipped.pink[data-v-897a493f]{border:2px solid #f041bf}.card.verso .description[data-v-897a493f]{font-size:.9rem;margin:0 0 8px}.card.verso .image-container[data-v-897a493f]{margin:8px 8px 16px;overflow:hidden;width:160px}.card.verso img[data-v-897a493f]{display:block;height:100%;object-fit:contain;width:100%}", R = /* @__PURE__ */ h(I, [["styles", [K]], ["__scopeId", "data-v-897a493f"]]), V = { class: "flip-cards" }, A = ["title-level"], Y = ["aria-expanded", "onClick", "onKeydown"], Z = { class: "flip-container" }, G = /* @__PURE__ */ b({
52
+ }), D = "[data-v-897a493f]{box-sizing:border-box}.card[data-v-897a493f]{align-items:center;backface-visibility:hidden;-webkit-backface-visibility:hidden;background:#fff;border-radius:12px;color:#253858;display:flex;flex-direction:column;gap:1.2rem;inset:0;justify-content:center;padding:18px;position:absolute;transform:translateZ(0);transition:transform ease .5s}.card .title[data-v-897a493f]{font-family:Nunito,sans-serif;font-size:1rem;font-weight:700;line-height:29px}.card.recto.red[data-v-897a493f]{background:linear-gradient(150deg,#fff,#ff7373)}.card.recto.yellow[data-v-897a493f]{background:linear-gradient(150deg,#fff,#ffec73)}.card.recto.blue[data-v-897a493f]{background:linear-gradient(150deg,#fff,#2491ff)}.card.recto.purple[data-v-897a493f]{background:linear-gradient(150deg,#fff,#9177f2)}.card.recto.green[data-v-897a493f]{background:linear-gradient(150deg,#fff,#52d987)}.card.recto.pink[data-v-897a493f]{background:linear-gradient(150deg,#fff,#f041bf)}.card.recto .icon[data-v-897a493f]{display:block;height:auto;width:40px}.card.verso[data-v-897a493f]{line-height:1.2rem;padding:8px;text-align:center;transform:rotateY(180deg) translateZ(0)}.card.verso.flipped.red[data-v-897a493f]{border:2px solid #ff7373}.card.verso.flipped.yellow[data-v-897a493f]{border:2px solid #ffec73}.card.verso.flipped.blue[data-v-897a493f]{border:2px solid #2491ff}.card.verso.flipped.purple[data-v-897a493f]{border:2px solid #9177f2}.card.verso.flipped.green[data-v-897a493f]{border:2px solid #52d987}.card.verso.flipped.pink[data-v-897a493f]{border:2px solid #f041bf}.card.verso .description[data-v-897a493f]{font-size:.9rem;margin:0 0 8px}.card.verso .image-container[data-v-897a493f]{margin:8px 8px 16px;overflow:hidden;width:160px}.card.verso img[data-v-897a493f]{display:block;height:100%;object-fit:contain;width:100%}", K = /* @__PURE__ */ h(j, [["styles", [D]], ["__scopeId", "data-v-897a493f"]]), V = { class: "flip-cards" }, I = ["aria-level"], R = ["aria-expanded", "onClick", "onKeydown"], Y = { class: "flip-container" }, Z = /* @__PURE__ */ m({
55
53
  __name: "FlipCards.ce",
56
54
  props: {
57
55
  titleLevel: { default: 2, type: Number },
58
56
  name: { type: String },
59
57
  cardList: { type: Array }
60
58
  },
61
- setup(r) {
62
- const d = ["red", "yellow", "blue", "purple", "green", "pink"], l = x(
63
- r.cardList.map((i, c) => ({
59
+ setup(e) {
60
+ const o = ["red", "yellow", "blue", "purple", "green", "pink"], l = w(
61
+ e.cardList.map((i, c) => ({
64
62
  ...i,
65
- color: d[c % d.length],
63
+ color: o[c % o.length],
66
64
  isFlipped: !1
67
65
  }))
68
- ), e = (i, c) => {
66
+ ), s = (i, c) => {
69
67
  c.preventDefault(), i.isFlipped = !i.isFlipped;
70
68
  };
71
- return (i, c) => (s(), o("div", V, [
69
+ return (i, c) => (d(), n("div", V, [
72
70
  t("div", {
73
71
  role: "heading",
74
- "title-level": i.titleLevel,
72
+ "aria-level": e.titleLevel,
75
73
  class: "sr-only"
76
- }, p(i.name), 9, A),
77
- (s(!0), o(u, null, w(l.value, (a, y) => (s(), o("div", {
78
- key: y,
79
- class: g(["card-container", { flipped: a.isFlipped, [a.color]: a.color }]),
74
+ }, f(e.name), 9, I),
75
+ (d(!0), n(u, null, k(l.value, (a, x) => (d(), n("div", {
76
+ key: x,
77
+ class: v(["card-container", { flipped: a.isFlipped, [a.color]: a.color }]),
80
78
  role: "button",
81
79
  tabindex: "0",
82
80
  "aria-expanded": a.isFlipped,
83
- onClick: (n) => e(a, n),
81
+ onClick: (r) => s(a, r),
84
82
  onKeydown: [
85
- v((n) => e(a, n), ["enter"]),
86
- v((n) => e(a, n), ["space"])
83
+ g((r) => s(a, r), ["enter"]),
84
+ g((r) => s(a, r), ["space"])
87
85
  ]
88
86
  }, [
89
- t("div", Z, [
90
- k(R, {
87
+ t("div", Y, [
88
+ F(K, {
91
89
  color: a.color,
92
90
  description: a.description,
93
91
  icon: a.icon,
94
92
  image: a.image,
95
93
  "is-flipped": a.isFlipped,
96
94
  name: a.name,
97
- "title-level": i.titleLevel + 1
95
+ "title-level": e.titleLevel + 1
98
96
  }, null, 8, ["color", "description", "icon", "image", "is-flipped", "name", "title-level"])
99
97
  ])
100
- ], 42, Y))), 128))
98
+ ], 42, R))), 128))
101
99
  ]));
102
100
  }
103
- }), H = "[data-v-b2effb01]{box-sizing:border-box}.sr-only[data-v-b2effb01]{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.flip-cards[data-v-b2effb01]{display:flex;flex-wrap:wrap;gap:1.5rem;justify-content:center;max-width:100%;padding:0}.flip-cards .card-container[data-v-b2effb01]{cursor:pointer;flex:0 0 180px;height:250px;margin:0;perspective:1200px;outline:none;transform:scale(1);transition:transform ease .5s}.flip-cards .card-container[data-v-b2effb01]:hover,.flip-cards .card-container[data-v-b2effb01]:focus{transform:scale(1.05);transition:transform ease .5s;outline:none}.flip-cards .card-container .flip-container[data-v-b2effb01]{display:block;position:relative;width:100%;height:100%;padding:18px;transform-style:preserve-3d;transition:transform .6s cubic-bezier(.2,.8,.2,1);will-change:transform}.flip-cards .card-container.flipped .flip-container[data-v-b2effb01]{transform:rotateY(180deg)}", O = /* @__PURE__ */ h(G, [["styles", [H]], ["__scopeId", "data-v-b2effb01"]]);
104
- L(/* @__PURE__ */ Object.assign({ "./locales/fr.json": S })).catch((r) => console.error(r));
105
- window.customElements.define("flip-cards", F(O, {
106
- configureApp(r) {
107
- m.changeLanguage(document?.documentElement?.lang || navigator.language), r.use(C, { i18next: m });
108
- }
109
- }));
101
+ }), A = "[data-v-394f37d2]{box-sizing:border-box}.sr-only[data-v-394f37d2]{border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.flip-cards[data-v-394f37d2]{display:flex;flex-wrap:wrap;gap:1.5rem;justify-content:center;max-width:100%;padding:0}.flip-cards .card-container[data-v-394f37d2]{cursor:pointer;flex:0 0 180px;height:250px;margin:0;perspective:1200px;outline:none;transform:scale(1);transition:transform ease .5s}.flip-cards .card-container[data-v-394f37d2]:hover,.flip-cards .card-container[data-v-394f37d2]:focus{transform:scale(1.05);transition:transform ease .5s;outline:none}.flip-cards .card-container .flip-container[data-v-394f37d2]{display:block;position:relative;width:100%;height:100%;padding:18px;transform-style:preserve-3d;transition:transform .6s cubic-bezier(.2,.8,.2,1);will-change:transform}.flip-cards .card-container.flipped .flip-container[data-v-394f37d2]{transform:rotateY(180deg)}", G = /* @__PURE__ */ h(Z, [["styles", [A]], ["__scopeId", "data-v-394f37d2"]]), b = _(G);
102
+ b.prototype.normalizeProps = (e) => ({
103
+ ...e,
104
+ titleLevel: L(e.titleLevel)
105
+ });
106
+ window.customElements.define("flip-cards", b);
@@ -1,4 +1,6 @@
1
- import { d as e } from "../_plugin-vue_export-helper-CwwQJ1m6.js";
2
- import { I as m } from "../ImageQuiz.ce-BLOWdEiw.js";
3
- window.customElements.define("image-quiz", e(m));
4
- window.customElements.define("qcu-image", e(m));
1
+ import "../_plugin-vue_export-helper-BGEtPlxS.js";
2
+ import { n as p } from "../image-quiz.ce-Qe3SbGDF.js";
3
+ import "../normalize-props-AlmAfi_u.js";
4
+ export {
5
+ p as normalizeImageQuizProps
6
+ };
@@ -1,29 +1,33 @@
1
- import { a as l, r as f, w, c as z, o as t, b as p, e as d, m as g, F as v, d as _ } from "../_plugin-vue_export-helper-CwwQJ1m6.js";
2
- import { I as A } from "../ImageQuiz.ce-BLOWdEiw.js";
3
- const h = /* @__PURE__ */ l({
1
+ import { d as l, r as f, w, c as p, o, a as g, b as d, m as q, F as v, e as y } from "../_plugin-vue_export-helper-BGEtPlxS.js";
2
+ import { I as A, n as I } from "../image-quiz.ce-Qe3SbGDF.js";
3
+ const _ = /* @__PURE__ */ l({
4
4
  __name: "ImageQuizzes.ce",
5
5
  props: {
6
6
  quizzes: { type: Array }
7
7
  },
8
8
  emits: ["answer"],
9
- setup(o, { emit: i }) {
10
- const n = i, r = f(new Array(o.quizzes.length).fill(void 0));
9
+ setup(r, { emit: m }) {
10
+ const s = m, n = f(new Array(r.quizzes.length).fill(void 0));
11
11
  w(() => {
12
- if (!r.value.some((e) => e == null)) {
13
- if (r.value.some((e) => e === "")) {
14
- n("answer", "");
12
+ if (!n.value.some((e) => e == null)) {
13
+ if (n.value.some((e) => e === "")) {
14
+ s("answer", "");
15
15
  return;
16
16
  }
17
- n("answer", r.value.join(","));
17
+ s("answer", n.value.join(","));
18
18
  }
19
19
  });
20
- function m(e, s) {
21
- r.value[s] = e;
20
+ function u(e, a) {
21
+ n.value[a] = e;
22
22
  }
23
- return (e, s) => (t(!0), z(v, null, p(e.quizzes, (u, a) => (t(), d(A, g({ key: a }, { ref_for: !0 }, u, {
23
+ return (e, a) => (o(!0), p(v, null, g(r.quizzes, (z, t) => (o(), d(A, q({ key: t }, { ref_for: !0 }, z, {
24
24
  "show-name": !0,
25
- onAnswer: (c) => m(c, a)
25
+ onAnswer: (c) => u(c, t)
26
26
  }), null, 16, ["onAnswer"]))), 128));
27
27
  }
28
+ }), i = y(_);
29
+ i.prototype.normalizeProps = (r) => ({
30
+ ...r,
31
+ quizzes: r.quizzes.map(I)
28
32
  });
29
- window.customElements.define("image-quizzes", _(h));
33
+ window.customElements.define("image-quizzes", i);
@@ -1,10 +1,10 @@
1
- import { a as m, c as r, o as a, f as e, t as n, F as t, b as p, y as i, _ as c, d as g } from "../_plugin-vue_export-helper-CwwQJ1m6.js";
2
- import { L as l } from "../LLMMessage.ce-DnZ8kE2i.js";
3
- import { p as u } from "../shadow-dom-MxYtPVXS.js";
1
+ import { d as c, c as t, o as s, f as e, t as n, F as r, a as m, y as i, _ as p, e as g } from "../_plugin-vue_export-helper-BGEtPlxS.js";
2
+ import { L as l } from "../LLMMessage.ce-CcaSmq0J.js";
3
+ import { p as u } from "../shadow-dom-Bqt3ZRMI.js";
4
4
  const f = {
5
5
  class: "header",
6
6
  "aria-hidden": "true"
7
- }, h = { class: "title-1" }, v = { class: "title-2" }, y = { class: "sr-only" }, _ = { class: "llm-compare-messages" }, w = { "aria-hidden": "true" }, b = /* @__PURE__ */ m({
7
+ }, h = { class: "title-1" }, x = { class: "title-2" }, v = { class: "sr-only" }, y = { class: "llm-compare-messages" }, w = { "aria-hidden": "true" }, b = /* @__PURE__ */ c({
8
8
  __name: "LLMCompareMessages.ce",
9
9
  props: {
10
10
  conversation1: { type: Object },
@@ -12,45 +12,45 @@ const f = {
12
12
  userName: { type: String },
13
13
  messages: { type: Array }
14
14
  },
15
- setup(L) {
16
- return u(), (o, N) => (a(), r(t, null, [
15
+ setup(o) {
16
+ return u(), (L, N) => (s(), t(r, null, [
17
17
  e("div", f, [
18
18
  e("div", null, [
19
19
  e("p", h, n(o.conversation1.title), 1)
20
20
  ]),
21
21
  e("div", null, [
22
- e("p", v, n(o.conversation2.title), 1)
22
+ e("p", x, n(o.conversation2.title), 1)
23
23
  ])
24
24
  ]),
25
- e("p", y, " Comparaison entre la conversation " + n(o.conversation1.title) + " et la conversation " + n(o.conversation2.title), 1),
26
- e("div", _, [
27
- (a(!0), r(t, null, p(o.messages, (s, d) => (a(), r("div", {
25
+ e("p", v, " Comparaison entre la conversation " + n(o.conversation1.title) + " et la conversation " + n(o.conversation2.title), 1),
26
+ e("div", y, [
27
+ (s(!0), t(r, null, m(o.messages, (a, d) => (s(), t("div", {
28
28
  key: d,
29
29
  class: "llm-compare-messages__row"
30
30
  }, [
31
- Array.isArray(s) ? (a(), r(t, { key: 0 }, [
31
+ Array.isArray(a) ? (s(), t(r, { key: 0 }, [
32
32
  e("div", null, [
33
33
  i(l, {
34
- message: s[0],
34
+ message: a[0],
35
35
  name: o.conversation1.llmName
36
36
  }, null, 8, ["message", "name"])
37
37
  ]),
38
38
  e("div", null, [
39
39
  i(l, {
40
- message: s[1],
40
+ message: a[1],
41
41
  name: o.conversation2.llmName
42
42
  }, null, 8, ["message", "name"])
43
43
  ])
44
- ], 64)) : (a(), r(t, { key: 1 }, [
44
+ ], 64)) : (s(), t(r, { key: 1 }, [
45
45
  e("div", null, [
46
46
  i(l, {
47
- message: s,
47
+ message: a,
48
48
  name: o.userName
49
49
  }, null, 8, ["message", "name"])
50
50
  ]),
51
51
  e("div", w, [
52
52
  i(l, {
53
- message: s,
53
+ message: a,
54
54
  name: o.userName
55
55
  }, null, 8, ["message", "name"])
56
56
  ])
@@ -59,5 +59,5 @@ const f = {
59
59
  ])
60
60
  ], 64));
61
61
  }
62
- }), x = '*{box-sizing:border-box}:host{display:grid;gap:8px;grid-template-columns:1fr 1fr;grid-template-rows:auto auto}:host:after{content:"";grid-row:2;grid-column:1;border-radius:8px;border:1px solid #452D9D;background:#fff}:host:before{content:"";grid-row:2;grid-column:2;border-radius:8px;border:solid 1px #a16207;background:#fff}.llm-compare-messages{grid-row:2;grid-column:1/span 2;display:flex;flex-direction:column;gap:24px;position:relative;overflow-y:scroll;padding:6px;max-height:460px}.llm-compare-messages__row{display:flex;flex-direction:row;gap:32px}.llm-compare-messages__row>div{display:flex;flex-direction:column;width:50%}.header{display:flex;grid-row:1;grid-column:1/span 2}.header div{display:flex;width:50%;justify-content:center;align-items:center;padding:0 1rem}.header p{font-family:Nunito,sans-serif;font-size:1.25rem;font-style:normal;font-weight:700;line-height:1.75rem;margin:0;padding:8px 32px;background:#cec3f4;width:fit-content;border:1px solid #452D9D;border-radius:8px;text-align:center}.header p.title-2{border-color:#a16207;background:#fffec0}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}', k = /* @__PURE__ */ c(b, [["styles", [x]]]);
62
+ }), _ = '*{box-sizing:border-box}:host{display:grid;gap:8px;grid-template-columns:1fr 1fr;grid-template-rows:auto auto}:host:after{content:"";grid-row:2;grid-column:1;border-radius:8px;border:1px solid #452D9D;background:#fff}:host:before{content:"";grid-row:2;grid-column:2;border-radius:8px;border:solid 1px #a16207;background:#fff}.llm-compare-messages{grid-row:2;grid-column:1/span 2;display:flex;flex-direction:column;gap:24px;position:relative;overflow-y:scroll;padding:6px;max-height:460px}.llm-compare-messages__row{display:flex;flex-direction:row;gap:32px}.llm-compare-messages__row>div{display:flex;flex-direction:column;width:50%}.header{display:flex;grid-row:1;grid-column:1/span 2}.header div{display:flex;width:50%;justify-content:center;align-items:center;padding:0 1rem}.header p{font-family:Nunito,sans-serif;font-size:1.25rem;font-style:normal;font-weight:700;line-height:1.75rem;margin:0;padding:8px 32px;background:#cec3f4;width:fit-content;border:1px solid #452D9D;border-radius:8px;text-align:center}.header p.title-2{border-color:#a16207;background:#fffec0}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}', k = /* @__PURE__ */ p(b, [["styles", [_]]]);
63
63
  window.customElements.define("llm-compare-messages", g(k));
@@ -1,29 +1,29 @@
1
- import { a as m, B as i, C as p, c as o, o as e, F as d, b as g, e as u, _ as f, d as h } from "../_plugin-vue_export-helper-CwwQJ1m6.js";
2
- import { L as _ } from "../LLMMessage.ce-DnZ8kE2i.js";
3
- import { p as x } from "../shadow-dom-MxYtPVXS.js";
4
- const b = {
1
+ import { d as c, B as m, C as i, c as t, o as e, F as p, a as d, b as g, _ as u, e as f } from "../_plugin-vue_export-helper-BGEtPlxS.js";
2
+ import { L as h } from "../LLMMessage.ce-CcaSmq0J.js";
3
+ import { p as _ } from "../shadow-dom-Bqt3ZRMI.js";
4
+ const x = {
5
5
  class: "llm-messages",
6
6
  "aria-live": "polite"
7
- }, v = /* @__PURE__ */ m({
7
+ }, b = /* @__PURE__ */ c({
8
8
  __name: "LLMMessages.ce",
9
9
  props: {
10
10
  messages: { type: Array }
11
11
  },
12
- setup(t) {
13
- const a = t;
14
- x();
15
- const s = i();
12
+ setup(s) {
13
+ const a = s;
14
+ _();
15
+ const o = m();
16
16
  function r() {
17
- s.scrollTop = s.scrollHeight;
17
+ o.scrollTop = o.scrollHeight;
18
18
  }
19
- return p(async () => {
19
+ return i(async () => {
20
20
  a.messages, r();
21
- }), (l, w) => (e(), o("div", b, [
22
- (e(!0), o(d, null, g(l.messages, (n, c) => (e(), u(_, {
23
- key: c,
24
- message: n
21
+ }), (L, w) => (e(), t("div", x, [
22
+ (e(!0), t(p, null, d(s.messages, (l, n) => (e(), g(h, {
23
+ key: n,
24
+ message: l
25
25
  }, null, 8, ["message"]))), 128))
26
26
  ]));
27
27
  }
28
- }), y = "*{box-sizing:border-box}:host{height:100%;overflow:auto;scroll-behavior:smooth}@media (prefers-reduced-motion: reduce){:host{scroll-behavior:auto}}.llm-messages{display:flex;flex-direction:column;gap:29px;padding:24px}", L = /* @__PURE__ */ f(v, [["styles", [y]]]);
29
- window.customElements.define("llm-messages", h(L));
28
+ }), v = "*{box-sizing:border-box}:host{height:100%;overflow:auto;scroll-behavior:smooth}@media(prefers-reduced-motion:reduce){:host{scroll-behavior:auto}}.llm-messages{display:flex;flex-direction:column;gap:29px;padding:24px}", y = /* @__PURE__ */ u(b, [["styles", [v]]]);
29
+ window.customElements.define("llm-messages", f(y));