@1024pix/epreuves-components 2.0.0 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. package/dist/{LLMMessage.ce-CcaSmq0J.js → LLMMessage.ce-DsVQstKz.js} +18 -18
  2. package/dist/{Loading.ce-kO02LfAR.js → Loading.ce-DoJ4rCWj.js} +1 -1
  3. package/dist/{NavigationButton.ce-BUeEdL4x.js → NavigationButton.ce-CtLZqKRv.js} +1 -1
  4. package/dist/Retry-CNZNkXbY.js +18 -0
  5. package/dist/{_plugin-vue_export-helper-BGEtPlxS.js → _plugin-vue_export-helper-DRMLIazq.js} +973 -963
  6. package/dist/components/calcul-impact.ce.js.js +2 -2
  7. package/dist/components/capacity-calculation.ce.js.js +113 -126
  8. package/dist/components/clickable-image.ce.js.js +9 -9
  9. package/dist/components/complete-phrase.ce.js.js +129 -66
  10. package/dist/components/flip-cards.ce.js.js +1 -1
  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 +6 -6
  16. package/dist/components/message-conversation.ce.js.js +2 -2
  17. package/dist/components/pix-article.ce.js.js +2 -2
  18. package/dist/components/pix-carousel.ce.js.js +140 -130
  19. package/dist/components/pix-cursor.ce.js.js +3 -3
  20. package/dist/components/qcm-deepfake.ce.js.js +108 -101
  21. package/dist/{i18n-D3E2CT0o.js → i18n-_lDmquwK.js} +12 -12
  22. package/dist/{image-quiz.ce-Qe3SbGDF.js → image-quiz.ce-By2A_llO.js} +1 -1
  23. package/dist/index.js +1 -1
  24. package/dist/schema.js +5 -5
  25. package/dist/{shadow-dom-Bqt3ZRMI.js → shadow-dom-CAG14nqa.js} +1 -1
  26. package/package.json +1 -1
@@ -1,34 +1,83 @@
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 = {
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" }
7
- }, R = {}, q = {}, F = { class: "probability-bar" }, O = { "aria-hidden": "true" }, H = { class: "sr-only" }, V = /* @__PURE__ */ x({
1
+ import { d as g, c as s, o as t, a, t as c, x as z, _ as y, D as S, L as M, A as R, r as b, k as w, E, F as $, b as q, e as k, y as L, f as T } from "../_plugin-vue_export-helper-DRMLIazq.js";
2
+ import { a as V, i as P, b as I } from "../i18n-_lDmquwK.js";
3
+ import { u as D } from "../normalize-props-AlmAfi_u.js";
4
+ import { L as B } from "../LLMMessage.ce-DsVQstKz.js";
5
+ const O = {}, F = {}, W = {}, H = {
6
+ "complete-phrase": { title: "Probabilité du mot suivant", description: "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: "Révéler le mot", successfullyCompletedSentence: "Cliquez sur le mot choisit par lIA dans les propositions suivantes :", feedback: "En effet, c'est le mot le plus probable !" }
7
+ }, Q = {}, U = {}, G = { class: "probability-bar" }, J = { "aria-hidden": "true" }, K = { class: "sr-only" }, X = /* @__PURE__ */ g({
8
8
  __name: "ProbabilityBar.ce",
9
9
  props: {
10
10
  name: { type: String },
11
11
  percent: { type: Number }
12
12
  },
13
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}%`),
14
+ return (d, o) => (t(), s("div", G, [
15
+ a("p", J, c(e.name), 1),
16
+ a("p", K, c(d.$t("complete-phrase.ariaLabelDescription", { name: e.name, percent: e.percent })), 1),
17
+ a("div", {
18
+ style: z(`width: ${e.percent}%`),
19
19
  class: "probability-bar__percent",
20
20
  "aria-hidden": "true"
21
21
  }, null, 4),
22
- o[0] || (o[0] = t("div", {
22
+ o[0] || (o[0] = a("div", {
23
23
  class: "probability-bar__background",
24
24
  "aria-hidden": "true"
25
25
  }, null, -1))
26
26
  ]));
27
27
  }
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 = {
29
- key: 1,
30
- class: "container__successSentence"
31
- }, Y = { class: "container__right-side" }, Z = ["aria-level"], ee = { "aria-hidden": "true" }, te = { class: "probabilities" }, ae = ["id", "aria-hidden"], oe = /* @__PURE__ */ x({
28
+ }), Y = ".probability-bar[data-v-195ffe53]{font-family:Roboto,sans-serif;padding-bottom:10px;position:relative}.probability-bar p[data-v-195ffe53]{margin:0}.probability-bar__percent[data-v-195ffe53]{position:absolute;left:0;z-index:2;height:6px;border-radius:5px;background-color:var(--pix-neutral-900)}.probability-bar__background[data-v-195ffe53]{position:absolute;left:0;z-index:1;width:100%;height:6px;border-radius:5px;background-color:var(--pix-neutral-100)}.sr-only[data-v-195ffe53]{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}", Z = /* @__PURE__ */ y(X, [["styles", [Y]], ["__scopeId", "data-v-195ffe53"]]), ee = /* @__PURE__ */ g({
29
+ __name: "Button.ce",
30
+ props: {
31
+ label: { type: String },
32
+ state: { type: String }
33
+ },
34
+ setup(e) {
35
+ return (d, o) => (t(), s("button", {
36
+ class: S(["complete-phrase_button", e.state])
37
+ }, [
38
+ M(d.$slots, "icon"),
39
+ R(" " + c(e.label), 1)
40
+ ], 2));
41
+ }
42
+ }), te = ".complete-phrase_button{--pix-neutral-0: #fff;--pix-neutral-800: #253858;--pix-neutral-900: #122647;--pix-secondary-500: #ffcb33;--pix-secondary-700: #a16206}.complete-phrase_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)}.complete-phrase_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)}.complete-phrase_button.primary,.complete-phrase_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(.complete-phrase_button.primary,.complete-phrase_button.warning)[aria-disabled=true]{cursor:not-allowed;opacity:.5}:is(.complete-phrase_button.primary,.complete-phrase_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(.complete-phrase_button.primary,.complete-phrase_button.warning):not([aria-disabled=true]):hover svg{color:var(--color-hover);transition:color ease .5s}", ae = /* @__PURE__ */ y(ee, [["styles", [te]]]), oe = { class: "qcu" }, re = { class: "qcu__list" }, ie = ["id", "aria-label", "value", "checked", "disabled"], se = { for: "`choice${index}`" }, ne = {
43
+ key: 0,
44
+ class: "feedback"
45
+ }, le = /* @__PURE__ */ g({
46
+ __name: "QCU.ce",
47
+ props: {
48
+ list: { type: Array },
49
+ title: { type: String }
50
+ },
51
+ emits: ["visible"],
52
+ setup(e, { emit: d }) {
53
+ const o = d, r = b(null), m = w(() => e.list.find((n) => n.percent === 100).name), p = b(!1);
54
+ function u(n) {
55
+ r.value = n.target.value, m.value === r.value && (o("visible"), p.value = !0);
56
+ }
57
+ return (n, x) => (t(), s("div", oe, [
58
+ a("p", null, c(e.title), 1),
59
+ a("section", re, [
60
+ (t(!0), s($, null, q(e.list, (_, h) => (t(), s("div", {
61
+ class: "qcu__list-choice",
62
+ key: h
63
+ }, [
64
+ a("input", {
65
+ id: `choice${h}`,
66
+ type: "radio",
67
+ name: "qcu-choice",
68
+ onClick: u,
69
+ "aria-label": _.name,
70
+ value: _.name,
71
+ checked: r.value === _.name,
72
+ disabled: p.value
73
+ }, null, 8, ie),
74
+ a("label", se, c(_.name), 1)
75
+ ]))), 128))
76
+ ]),
77
+ m.value === r.value ? (t(), s("section", ne, c(n.$t("complete-phrase.feedback")), 1)) : E("", !0)
78
+ ]));
79
+ }
80
+ }), ce = "[data-v-ddadee99]{--pix-neutral-100: #cdd1d9;--pix-neutral-900: #122647;font-family:Roboto,sans-serif;color:var(--pix-neutral-900)}.qcu[data-v-ddadee99]{align-items:center;display:flex;flex-direction:column;gap:16px}.qcu p[data-v-ddadee99]{margin:0}.qcu__list[data-v-ddadee99]{display:flex;gap:16px}.qcu__list-choice[data-v-ddadee99]{position:relative}.qcu__list-choice input[data-v-ddadee99]{appearance:none;height:100%;outline:none;position:absolute;width:100%}.qcu__list-choice input:checked+label[data-v-ddadee99]{background-color:var(--pix-info-500);color:var(--pix-neutral-0)}.qcu__list-choice input[data-v-ddadee99]:hover{cursor:pointer}.qcu__list-choice input:hover+label[data-v-ddadee99]{background-color:var(--pix-info-500);color:var(--pix-neutral-0);transition:background-color .5s ease,color .5s ease}.qcu__list-choice input:disabled+label[data-v-ddadee99],.qcu__list-choice input[data-v-ddadee99]:disabled:hover{cursor:not-allowed}.qcu__list-choice input:disabled:not(:checked)+label[data-v-ddadee99],.qcu__list-choice input:disabled:hover:not(:checked)+label[data-v-ddadee99]{background:var(--pix-info-50);color:var(--pix-neutral-900);cursor:not-allowed;opacity:.5;transition:none}.qcu__list-choice label[data-v-ddadee99]{align-items:center;background:var(--pix-info-50);border-radius:4px;color:inherit;display:flex;font-weight:700;gap:10px;justify-content:center;padding:4px 8px;transition:background-color .5s ease,color .5s ease}.qcu .feedback[data-v-ddadee99]{display:flex;padding:8px 16px;flex-direction:column;align-items:flex-start;gap:16px;align-self:stretch;border-radius:8px;background:var(--pix-info-50)}", de = /* @__PURE__ */ y(le, [["styles", [ce]], ["__scopeId", "data-v-ddadee99"]]), pe = { class: "complete-phrase" }, ue = ["aria-level"], be = { class: "complete-phrase__description" }, me = { class: "complete-phrase__container" }, _e = { class: "complete-phrase-container__conversation" }, ve = { class: "complete-phrase-container__probabilities" }, he = ["id", "aria-hidden"], fe = /* @__PURE__ */ g({
32
81
  __name: "CompletePhrase.ce",
33
82
  props: {
34
83
  listOfProbabilityBarsLists: { type: Array },
@@ -37,70 +86,84 @@ const T = {}, D = {}, E = {}, I = {
37
86
  wordsToAdd: { type: Array },
38
87
  titleLevel: { type: Number }
39
88
  },
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;
89
+ setup(e, { expose: d }) {
90
+ const o = e, r = b(0), m = b(o.llmMessage), p = b(!1), u = b(o.wordsToAdd), n = b(!1), x = w(() => {
91
+ const [i] = o.listOfProbabilityBarsLists.filter((l, v) => v === r.value);
92
+ return i;
93
+ }), _ = w(() => {
94
+ let [i] = u.value, l = "complete-message-word";
95
+ if (p.value) {
96
+ const [v] = x.value;
97
+ i = v.name, l += ` complete-message-word--${n.value ? "visible" : "hidden"}`;
98
+ }
99
+ return `<p>${m.value} <span class="${l}">${i}</span></p>`;
100
+ });
101
+ function h() {
102
+ p.value = !1, m.value = o.llmMessage, u.value = o.wordsToAdd, r.value = 0;
44
103
  }
45
- function $() {
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>`;
104
+ function N() {
105
+ u.value.length === 1 && (p.value = !0), r.value += 1;
106
+ const [i, ...l] = u.value;
107
+ u.value = l, m.value += `<span class="complete-message-word">${i} </span>`;
49
108
  }
50
- return b({
51
- reset: L
52
- }), (i, _) => (a(), n("div", J, [
53
- t("div", K, [
54
- t("div", Q, [
55
- g(f, {
109
+ return d({
110
+ reset: h
111
+ }), (i, l) => (t(), s("div", pe, [
112
+ a("div", {
113
+ class: "complete-phrase__title",
114
+ role: "heading",
115
+ "aria-level": e.titleLevel
116
+ }, c(i.$t("complete-phrase.title")), 9, ue),
117
+ a("p", be, c(i.$t("complete-phrase.description")), 1),
118
+ a("section", me, [
119
+ a("div", _e, [
120
+ L(B, {
56
121
  class: "container__message",
57
122
  message: { content: e.userMessage, direction: "outbound" }
58
123
  }, null, 8, ["message"]),
59
- g(f, {
124
+ L(B, {
60
125
  class: "container__message",
61
- message: { content: p.value, direction: "inbound" }
126
+ message: { content: _.value, direction: "inbound" }
62
127
  }, null, 8, ["message"])
63
128
  ]),
64
- u.value ? (a(), n("p", X, s(i.$t("complete-phrase.successfullyCompletedSentence")), 1)) : (a(), n("button", {
65
- key: 0,
66
- onClick: $,
67
- class: "container__button",
68
- "aria-describedby": `currentProbability${r.value}`
69
- }, s(i.$t("complete-phrase.clickHereButton")), 9, U))
70
- ]),
71
- t("div", Y, [
72
- t("div", {
73
- class: "container__title",
74
- role: "heading",
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
129
+ a("div", ve, [
130
+ (t(!0), s($, null, q(e.listOfProbabilityBarsLists, (v, f) => (t(), s("div", {
131
+ class: S(["probability", { hidden: f !== r.value }]),
132
+ key: f,
133
+ id: `currentProbability${f}`,
134
+ "aria-hidden": f !== r.value
84
135
  }, [
85
- (a(!0), n(v, null, h(P, (m, S) => (a(), z(G, {
86
- name: m.name,
87
- percent: m.percent,
88
- key: S
136
+ (t(!0), s($, null, q(v, (C, j) => (t(), k(Z, {
137
+ name: C.name,
138
+ percent: C.percent,
139
+ key: j
89
140
  }, null, 8, ["name", "percent"]))), 128))
90
- ], 10, ae))), 128))
141
+ ], 10, he))), 128))
91
142
  ])
92
- ])
143
+ ]),
144
+ p.value ? (t(), k(de, {
145
+ key: 1,
146
+ list: x.value,
147
+ title: i.$t("complete-phrase.successfullyCompletedSentence"),
148
+ onVisible: l[0] || (l[0] = (v) => n.value = !0)
149
+ }, null, 8, ["list", "title"])) : (t(), k(ae, {
150
+ key: 0,
151
+ onClick: N,
152
+ state: "primary",
153
+ label: i.$t("complete-phrase.clickHereButton"),
154
+ "aria-describedby": `currentProbability${r.value}`
155
+ }, null, 8, ["label", "aria-describedby"]))
93
156
  ]));
94
157
  }
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, {
158
+ }), ge = "[data-v-be9b10f3]{--pix-info-50: #e6f2fe;--pix-info-500: #3b82f6;--pix-neutral-0: #fff;--pix-neutral-100: #cdd1d9;--pix-neutral-900: #122647;font-family:Roboto,sans-serif;color:var(--pix-neutral-900)}.complete-phrase__title[data-v-be9b10f3]{font-family:Nunito,sans-serif;font-size:1.75rem;font-weight:700;line-height:36px;text-align:center}.complete-phrase__description[data-v-be9b10f3]{text-align:center;font-size:1rem;font-weight:400;line-height:24px}.complete-phrase__container[data-v-be9b10f3]{display:grid;gap:32px;grid-template-columns:3fr 2fr;margin-bottom:24px}.complete-phrase-container__conversation[data-v-be9b10f3]{background:#fff;border:1px solid var(--pix-neutral-100);border-radius:16px;display:flex;flex-direction:column;gap:32px;padding:1rem}.complete-phrase-container__conversation .message[data-v-be9b10f3]{align-items:center}.complete-phrase-container__probabilities[data-v-be9b10f3]{display:grid}.complete-phrase-container__probabilities .probability[data-v-be9b10f3]{display:flex;flex-direction:column;gap:16px;grid-row:1;grid-column:1}.complete-phrase-container__probabilities .probability.hidden[data-v-be9b10f3]{visibility:hidden}@media(max-width:600px){.complete-phrase__container[data-v-be9b10f3]{grid-template-columns:1fr}.complete-phrase-container__probabilities .probability.hidden[data-v-be9b10f3]{display:none}}", ye = /* @__PURE__ */ y(fe, [["styles", [ge]], ["__scopeId", "data-v-be9b10f3"]]);
159
+ V(/* @__PURE__ */ Object.assign({ "./locales/en.json": O, "./locales/es-419.json": F, "./locales/es.json": W, "./locales/fr.json": H, "./locales/it.json": Q, "./locales/nl.json": U })).catch((e) => console.error(e));
160
+ const A = T(ye, {
98
161
  configureApp(e) {
99
- y.changeLanguage(document?.documentElement?.lang || navigator.language), e.use(j, { i18next: y });
162
+ P.changeLanguage(document?.documentElement?.lang || navigator.language), e.use(I, { i18next: P });
100
163
  }
101
164
  });
102
- k.prototype.normalizeProps = (e) => ({
165
+ A.prototype.normalizeProps = (e) => ({
103
166
  ...e,
104
- titleLevel: N(e.titleLevel)
167
+ titleLevel: D(e.titleLevel)
105
168
  });
106
- window.customElements.define("complete-phrase", k);
169
+ window.customElements.define("complete-phrase", A);
@@ -1,4 +1,4 @@
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";
1
+ import { d as m, c as n, o as d, F as u, a as t, D as v, G as p, t as f, E as y, _ as h, r as w, b as k, H as g, y as F, f as _ } from "../_plugin-vue_export-helper-DRMLIazq.js";
2
2
  import { u as L } from "../normalize-props-AlmAfi_u.js";
3
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({
4
4
  __name: "FlipCard.ce",
@@ -1,5 +1,5 @@
1
- import "../_plugin-vue_export-helper-BGEtPlxS.js";
2
- import { n as p } from "../image-quiz.ce-Qe3SbGDF.js";
1
+ import "../_plugin-vue_export-helper-DRMLIazq.js";
2
+ import { n as p } from "../image-quiz.ce-By2A_llO.js";
3
3
  import "../normalize-props-AlmAfi_u.js";
4
4
  export {
5
5
  p as normalizeImageQuizProps
@@ -1,5 +1,5 @@
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";
1
+ import { d as l, r as f, w, c as p, o, b as g, e as d, m as q, F as v, f as y } from "../_plugin-vue_export-helper-DRMLIazq.js";
2
+ import { I as A, n as I } from "../image-quiz.ce-By2A_llO.js";
3
3
  const _ = /* @__PURE__ */ l({
4
4
  __name: "ImageQuizzes.ce",
5
5
  props: {
@@ -1,6 +1,6 @@
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";
1
+ import { d as c, c as t, o as s, a as e, t as n, F as r, b as m, y as i, _ as p, f as g } from "../_plugin-vue_export-helper-DRMLIazq.js";
2
+ import { L as l } from "../LLMMessage.ce-DsVQstKz.js";
3
+ import { p as u } from "../shadow-dom-CAG14nqa.js";
4
4
  const f = {
5
5
  class: "header",
6
6
  "aria-hidden": "true"
@@ -1,6 +1,6 @@
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";
1
+ import { d as c, B as m, C as i, c as t, o as e, F as p, b as d, e as f, _ as g, f as u } from "../_plugin-vue_export-helper-DRMLIazq.js";
2
+ import { L as h } from "../LLMMessage.ce-DsVQstKz.js";
3
+ import { p as _ } from "../shadow-dom-CAG14nqa.js";
4
4
  const x = {
5
5
  class: "llm-messages",
6
6
  "aria-live": "polite"
@@ -19,11 +19,11 @@ const x = {
19
19
  return i(async () => {
20
20
  a.messages, r();
21
21
  }), (L, w) => (e(), t("div", x, [
22
- (e(!0), t(p, null, d(s.messages, (l, n) => (e(), g(h, {
22
+ (e(!0), t(p, null, d(s.messages, (l, n) => (e(), f(h, {
23
23
  key: n,
24
24
  message: l
25
25
  }, null, 8, ["message"]))), 128))
26
26
  ]));
27
27
  }
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));
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__ */ g(b, [["styles", [v]]]);
29
+ window.customElements.define("llm-messages", u(y));
@@ -1,4 +1,4 @@
1
- import { d as y, r as c, z as h, c as d, o as m, y as w, f as a, A as k, F as _, a as L, t as S, _ as C, e as P } from "../_plugin-vue_export-helper-BGEtPlxS.js";
1
+ import { d as y, r as c, z as h, c as d, o as m, y as w, a, A as k, F as b, b as L, t as S, _ as C, f as P } from "../_plugin-vue_export-helper-DRMLIazq.js";
2
2
  import { u as N } from "../normalize-props-AlmAfi_u.js";
3
3
  import "./llm-messages.ce.js.js";
4
4
  const M = { class: "prompt-select" }, z = { class: "prompt-select__options" }, A = ["disabled", "onClick"], B = /* @__PURE__ */ y({
@@ -46,7 +46,7 @@ const M = { class: "prompt-select" }, z = { class: "prompt-select__options" }, A
46
46
  }
47
47
  return (e, t) => {
48
48
  const p = h("llm-messages");
49
- return m(), d(_, null, [
49
+ return m(), d(b, null, [
50
50
  w(p, { messages: s.value }, null, 8, ["messages"]),
51
51
  a("div", M, [
52
52
  t[0] || (t[0] = a("p", { class: "prompt-select__label" }, [
@@ -54,7 +54,7 @@ const M = { class: "prompt-select" }, z = { class: "prompt-select__options" }, A
54
54
  a("span", { class: "sr-only" }, "  une fois sélectionnés, les prompts ne sont plus disponibles. ")
55
55
  ], -1)),
56
56
  a("div", z, [
57
- (m(!0), d(_, null, L(u.value, (n, i) => (m(), d("button", {
57
+ (m(!0), d(b, null, L(u.value, (n, i) => (m(), d("button", {
58
58
  key: i,
59
59
  disabled: n.disabled || l.value,
60
60
  onClick: (f) => v(n)
@@ -64,9 +64,9 @@ const M = { class: "prompt-select" }, z = { class: "prompt-select__options" }, A
64
64
  ], 64);
65
65
  };
66
66
  }
67
- }), E = ".sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);border:0}llm-messages{display:block;height:400px}.prompt-select{font-family:Roboto,sans-serif;border-top:solid 1px #253858;padding:16px 24px 24px}.prompt-select__label{margin-top:0;font-weight:700;color:#253858}.prompt-select__options{display:flex;gap:1rem;justify-content:left;flex-wrap:wrap}.prompt-select__options>button{padding:1rem 1.5rem;border:none;background:#cec3f4;border-radius:16px;border:1px solid #ffffff;color:#130261;font-size:.875rem;box-shadow:0 4px 12px -4px #957ee833}.prompt-select__options>button:hover:not(:disabled){background:#9a8dc7;color:#fff;cursor:pointer}.prompt-select__options>button:disabled{cursor:not-allowed;color:#1010104d}", V = /* @__PURE__ */ C(B, [["styles", [E]]]), b = P(V);
68
- b.prototype.normalizeProps = (r) => ({
67
+ }), E = ".sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);border:0}llm-messages{display:block;height:400px}.prompt-select{font-family:Roboto,sans-serif;border-top:solid 1px #253858;padding:16px 24px 24px}.prompt-select__label{margin-top:0;font-weight:700;color:#253858}.prompt-select__options{display:flex;gap:1rem;justify-content:left;flex-wrap:wrap}.prompt-select__options>button{padding:1rem 1.5rem;border:none;background:#cec3f4;border-radius:16px;border:1px solid #ffffff;color:#130261;font-size:.875rem;box-shadow:0 4px 12px -4px #957ee833}.prompt-select__options>button:hover:not(:disabled){background:#9a8dc7;color:#fff;cursor:pointer}.prompt-select__options>button:disabled{cursor:not-allowed;color:#1010104d}", V = /* @__PURE__ */ C(B, [["styles", [E]]]), _ = P(V);
68
+ _.prototype.normalizeProps = (r) => ({
69
69
  ...r,
70
70
  speed: N(r.speed)
71
71
  });
72
- window.customElements.define("llm-prompt-select", b);
72
+ window.customElements.define("llm-prompt-select", _);
@@ -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 D, h as E, c as n, o as s, D as k, E as g, a as _, A as w, t as v, y as B, I as z, m as P, F as b, b as M, _ as N, g as T, e as V, f as F } from "../_plugin-vue_export-helper-DRMLIazq.js";
2
+ import { L as I } from "../Loading.ce-DoJ4rCWj.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,
@@ -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, t as i, F as l, b as d, G as h, _ as m, f } from "../_plugin-vue_export-helper-DRMLIazq.js";
2
+ import { a as p, i as o, b as v } from "../i18n-_lDmquwK.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}}" }