@1024pix/epreuves-components 2.5.0 → 2.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ButtonTooltip.ce-BbP5LLan.js → ButtonTooltip.ce-liyx_p36.js} +1 -1
- package/dist/{LLMMessage.ce-CpaRhrdt.js → LLMMessage.ce-8BLMV48B.js} +2 -2
- package/dist/{Loading.ce-BlmwKTZV.js → Loading.ce-DEcKxJ7b.js} +1 -1
- package/dist/{NavigationButton.ce-BojZ7wJ8.js → NavigationButton.ce-1FV5jV5y.js} +2 -2
- package/dist/{Retry-P63weTYS.js → Retry-DCI8GqKm.js} +1 -1
- package/dist/{_plugin-vue_export-helper-otfINH_J.js → _plugin-vue_export-helper-5HW1ARMK.js} +2 -2
- package/dist/components/calcul-impact.ce.js.js +11 -11
- package/dist/components/capacity-calculation.ce.js.js +18 -18
- package/dist/components/clickable-image.ce.js.js +1 -1
- package/dist/components/complete-phrase.ce.js.js +3 -3
- package/dist/components/flip-cards.ce.js.js +1 -1
- package/dist/components/image-quiz.ce.js.js +2 -2
- package/dist/components/image-quizzes.ce.js.js +24 -18
- package/dist/components/llm-compare-messages.ce.js.js +3 -3
- package/dist/components/llm-messages.ce.js.js +3 -3
- package/dist/components/llm-prompt-select.ce.js.js +1 -1
- package/dist/components/message-conversation.ce.js.js +2 -2
- package/dist/components/mobile-shell.ce.js.js +1 -1
- package/dist/components/phishing-message.ce.js.js +198 -134
- package/dist/components/phishing-notification.ce.js.js +19 -19
- package/dist/components/pix-anonymisation.ce.js.js +64 -64
- package/dist/components/pix-article.ce.js.js +2 -2
- package/dist/components/pix-carousel.ce.js.js +4 -4
- package/dist/components/pix-cursor.ce.js.js +8 -8
- package/dist/components/qcm-deepfake.ce.js.js +3 -3
- package/dist/components/select-conversation.ce.js.js +19 -19
- package/dist/{i18n-D_NuHMtu.js → i18n-D_muRDKJ.js} +145 -137
- package/dist/image-quiz.ce-CPBqOczV.js +219 -0
- package/dist/index.js +1 -1
- package/dist/schema.js +35 -42
- package/dist/{shadow-dom-Dv9_7elf.js → shadow-dom-HBgAu8O2.js} +1 -1
- package/dist/temporal.utils-CotrC6ao.js +14456 -0
- package/package.json +1 -1
- package/dist/image-quiz.ce-BzaGLrSu.js +0 -143
- package/dist/temporal.utils-DBcWSjWy.js +0 -16840
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as h, r as b, g as f, c as v, o as u, a as n, n as w, h as s, t as g, m, i as x, j as y, _ as k } from "./_plugin-vue_export-helper-
|
|
1
|
+
import { d as h, r as b, g as f, c as v, o as u, a as n, n as w, h as s, t as g, m, i as x, j as y, _ as k } from "./_plugin-vue_export-helper-5HW1ARMK.js";
|
|
2
2
|
const z = { class: "tooltip-container" }, B = ["id"], $ = ["aria-labelledby", "aria-disabled"], C = /* @__PURE__ */ h({
|
|
3
3
|
inheritAttrs: !1,
|
|
4
4
|
__name: "ButtonTooltip.ce",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as a, c as r, o as s, a as b, d as i, y as n, n as d, e as l, B as o, t as c, E as h } from "./_plugin-vue_export-helper-
|
|
2
|
-
import { L as p } from "./Loading.ce-
|
|
1
|
+
import { _ as a, c as r, o as s, a as b, d as i, y as n, n as d, e as l, B as o, t as c, E as h } from "./_plugin-vue_export-helper-5HW1ARMK.js";
|
|
2
|
+
import { L as p } from "./Loading.ce-DEcKxJ7b.js";
|
|
3
3
|
const f = {}, C = {
|
|
4
4
|
height: "1rem",
|
|
5
5
|
width: "auto",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as o, c as a, o as r, a as s } from "./_plugin-vue_export-helper-
|
|
1
|
+
import { _ as o, c as a, o as r, a as s } from "./_plugin-vue_export-helper-5HW1ARMK.js";
|
|
2
2
|
const n = ".loader{width:8px;aspect-ratio:1;border-radius:50%;animation:l5 1s infinite linear alternate;transform:translate(100%)}.sr-only{border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}@keyframes l5{0%{box-shadow:13px 0 #000,-13px 0 #0002;background:#000}33%{box-shadow:13px 0 #000,-13px 0 #0002;background:#0002}66%{box-shadow:13px 0 #0002,-13px 0 #000;background:#0002}to{box-shadow:13px 0 #0002,-13px 0 #000;background:#000}}@media(prefers-reduced-motion:reduce){.loader{display:none}}", t = {}, d = {
|
|
3
3
|
class: "loader",
|
|
4
4
|
role: "alert"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as a } from "./ButtonTooltip.ce-
|
|
2
|
-
import { _ as o, c as l, o as i, a as s, d as c, e as n, K as d } from "./_plugin-vue_export-helper-
|
|
1
|
+
import { B as a } from "./ButtonTooltip.ce-liyx_p36.js";
|
|
2
|
+
import { _ as o, c as l, o as i, a as s, d as c, e as n, K as d } from "./_plugin-vue_export-helper-5HW1ARMK.js";
|
|
3
3
|
const C = {}, p = {
|
|
4
4
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5
5
|
width: "16",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as j, G as T, c as p, o as d, F as K, E as v, K as r, B as C, a as e, t as a, H as _, T as D, _ as z, r as l, z as
|
|
2
|
-
import { a as H, i as V, b as Q } from "../i18n-
|
|
1
|
+
import { d as j, G as T, c as p, o as d, F as K, E as v, K as r, B as C, a as e, t as a, H as _, T as D, _ as z, r as l, z as N, e as U, h as E, N as x, f as G } from "../_plugin-vue_export-helper-5HW1ARMK.js";
|
|
2
|
+
import { a as H, i as V, b as Q } from "../i18n-D_muRDKJ.js";
|
|
3
3
|
import { u as J } from "../normalize-props-DtfVI0Xg.js";
|
|
4
4
|
const X = {}, Z = {}, ee = {}, te = {
|
|
5
5
|
"calcul-impact": { title: "Calculez votre impact IA", subtitle: "Quels ont été vos usages de l'IA la semaine dernière ?", numberOfConversationLabel: "Nombre de conversations courtes :", numberOfImagesLabel: "Nombre de créations d’images :", seePersonalImpact: "Voir votre impact personnel sur une semaine", seeCollectiveImpact: "Si 1 million de personnes faisaient comme vous toutes les semaines pendant un an", legals: "Estimations basées sur l'étude Hugging Face, Carnegie Mellon University, Allen Institute for AI, Oct 2024", yourPersonalImpact: "Votre impact personnel", consumptionForAWeek: "Votre consommation sur une semaine", consumptionForAYear: "1 million de personnes toutes les semaines pendant un an", personalConsumption: "Vous avez consommé environ {{energy}} Wh", personalDuration: "Cela équivaut à {{number}} minutes de micro-ondes", collectiveConsumption: "Cela représenterait {{energy}} kWh, soit l'équivalent de la consommation en électricité de {{homes}} foyers français", collectiveDuration: "Équivalent à {{number}} minutes de micro-ondes", planeKilometers: "Et {{kilometers}} km parcourus en avion", yourCollectiveImpact: "Impact collectif simulé" }
|
|
@@ -123,20 +123,20 @@ const X = {}, Z = {}, ee = {}, te = {
|
|
|
123
123
|
text: { energy: 2.9, co2: 1.5 },
|
|
124
124
|
image: { energy: 32, co2: 20 }
|
|
125
125
|
}, u = l({}), m = l({}), k = l(0), F = l(0), g = l(0), A = l(0), L = l(0);
|
|
126
|
-
function
|
|
126
|
+
function P() {
|
|
127
127
|
k.value = b.value * h.text.energy + f.value * h.image.energy, F.value = b.value * h.text.co2 + f.value * h.image.co2, w.value = Number((k.value / 0.8).toFixed(1)), u.value.energyByWeek = k.value.toFixed(1), u.value.personalMicrowavesDuration = w.value, u.value.co2ByWeek = F.value.toFixed(1);
|
|
128
128
|
}
|
|
129
129
|
function M() {
|
|
130
130
|
g.value = u.value.energyByWeek * 52 * 1e6 / 1e3, A.value = u.value.co2ByWeek * 52 * 1e6 / 1e6, L.value = Math.round(g.value / 2300), $.value = g.value / 0.8, B.value = A.value * 2410, m.value.collectiveMicrowavesDuration = $.value.toLocaleString(), m.value.kilometerByPlane = B.value.toLocaleString(), m.value.equivalentPopulationByCity = L.value.toLocaleString(), m.value.collectiveAnnualEnergy = g.value.toLocaleString();
|
|
131
131
|
}
|
|
132
132
|
function S() {
|
|
133
|
-
|
|
133
|
+
P(), c.value = !0;
|
|
134
134
|
}
|
|
135
135
|
function R() {
|
|
136
136
|
M(), y.value = !0;
|
|
137
137
|
}
|
|
138
138
|
function W() {
|
|
139
|
-
c.value && y.value && (
|
|
139
|
+
c.value && y.value && (P(), M());
|
|
140
140
|
}
|
|
141
141
|
return o({
|
|
142
142
|
reset: q
|
|
@@ -144,24 +144,24 @@ const X = {}, Z = {}, ee = {}, te = {
|
|
|
144
144
|
e("div", {
|
|
145
145
|
class: "title",
|
|
146
146
|
role: "heading",
|
|
147
|
-
"arial-level":
|
|
147
|
+
"arial-level": E(i)
|
|
148
148
|
}, "📊 " + a(s.$t("calcul-impact.title")), 9, Ce),
|
|
149
149
|
e("p", null, a(s.$t("calcul-impact.subtitle")), 1),
|
|
150
150
|
e("label", he, "🤖 " + a(s.$t("calcul-impact.numberOfConversationLabel")), 1),
|
|
151
|
-
|
|
151
|
+
N(e("input", {
|
|
152
152
|
onChange: W,
|
|
153
153
|
type: "number",
|
|
154
154
|
id: "numberOfConversation",
|
|
155
|
-
"onUpdate:modelValue": I[0] || (I[0] = (
|
|
155
|
+
"onUpdate:modelValue": I[0] || (I[0] = (O) => b.value = O)
|
|
156
156
|
}, null, 544), [
|
|
157
157
|
[x, b.value]
|
|
158
158
|
]),
|
|
159
159
|
e("label", ke, "🖼️ " + a(s.$t("calcul-impact.numberOfImagesLabel")), 1),
|
|
160
|
-
|
|
160
|
+
N(e("input", {
|
|
161
161
|
onChange: W,
|
|
162
162
|
type: "number",
|
|
163
163
|
id: "numberOfImage",
|
|
164
|
-
"onUpdate:modelValue": I[1] || (I[1] = (
|
|
164
|
+
"onUpdate:modelValue": I[1] || (I[1] = (O) => f.value = O)
|
|
165
165
|
}, null, 544), [
|
|
166
166
|
[x, f.value]
|
|
167
167
|
]),
|
|
@@ -169,7 +169,7 @@ const X = {}, Z = {}, ee = {}, te = {
|
|
|
169
169
|
key: 0,
|
|
170
170
|
"is-collective": y.value,
|
|
171
171
|
"is-personal": c.value,
|
|
172
|
-
"title-level":
|
|
172
|
+
"title-level": E(i),
|
|
173
173
|
"by-week-for-one": u.value,
|
|
174
174
|
"by-year-for-a-million": m.value
|
|
175
175
|
}, null, 8, ["is-collective", "is-personal", "title-level", "by-week-for-one", "by-year-for-a-million"])) : C("", !0),
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { d as C, c as d, o, n as m, j as
|
|
2
|
-
import { i as k, a as H, b as K } from "../i18n-
|
|
1
|
+
import { d as C, c as d, o, n as m, j as R, H as $, t as r, _ as v, Q as D, R as h, r as g, y as x, a as t, E as L, F as O, b as V, h as Z, i as z, S as F, K as T, e as f, B as N, f as P } from "../_plugin-vue_export-helper-5HW1ARMK.js";
|
|
2
|
+
import { i as k, a as H, b as K } from "../i18n-D_muRDKJ.js";
|
|
3
3
|
import { u as W } from "../normalize-props-DtfVI0Xg.js";
|
|
4
|
-
import { R as G } from "../Retry-
|
|
4
|
+
import { R as G } from "../Retry-DCI8GqKm.js";
|
|
5
5
|
const J = {}, X = {}, Y = {}, aa = {
|
|
6
|
-
"capacity-calculation": { title: "Observer l'impact des demandes", in: { title: "Demandes à l'IA", aiQuestion: "Quelle est la demande à l'IA ?", aiOptions: ["Fais une vidéo d’une durée d'une minute.", "Écris un texte de 10 lignes.", "Fais un dessin de haute qualité."], userQuestion: "Combien d’utilisateurs font la demande en même temps ?", buttonLabel: { primary: "Observer l'effet", warning: "Recommencer" } }, out: { title: "Impact des demandes", consumption: { label: "Consommation d’électricité :", normal_weak: "
|
|
6
|
+
"capacity-calculation": { title: "Observer l'impact des demandes", in: { title: "Demandes à l'IA", aiQuestion: "Quelle est la demande à l'IA ?", aiOptions: ["Fais une vidéo d’une durée d'une minute.", "Écris un texte de 10 lignes.", "Fais un dessin de haute qualité."], userQuestion: "Combien d’utilisateurs font la demande en même temps ?", buttonLabel: { primary: "Observer l'effet", warning: "Recommencer" } }, out: { title: "Impact des demandes", consumption: { label: "Consommation d’électricité :", normal_weak: "Moyenne", normal_medium: "Moyenne", warning: "Très forte", error: "Très forte", initial: "À l'arrêt" }, capacity: { label: "État du centre de données :", normal_weak: "Normal", normal_medium: "Normal", warning: "Sollicitation maximale", error: "Ne peut pas répondre à la demande", initial: "À l'arrêt" } } }
|
|
7
7
|
}, ea = {}, ta = {}, ca = /* @__PURE__ */ C({
|
|
8
8
|
__name: "Button.ce",
|
|
9
9
|
props: {
|
|
@@ -14,7 +14,7 @@ const J = {}, X = {}, Y = {}, aa = {
|
|
|
14
14
|
return (c, _) => (o(), d("button", {
|
|
15
15
|
class: m(["epreuve-button", a.state])
|
|
16
16
|
}, [
|
|
17
|
-
|
|
17
|
+
R(c.$slots, "icon"),
|
|
18
18
|
$(" " + r(a.label), 1)
|
|
19
19
|
], 2));
|
|
20
20
|
}
|
|
@@ -23,7 +23,7 @@ const J = {}, X = {}, Y = {}, aa = {
|
|
|
23
23
|
class: "capacity-calculation__range-label"
|
|
24
24
|
}, ma = /* @__PURE__ */ C({
|
|
25
25
|
__name: "Questions.ce",
|
|
26
|
-
props: /* @__PURE__ */
|
|
26
|
+
props: /* @__PURE__ */ D({
|
|
27
27
|
titleLevel: { type: Number }
|
|
28
28
|
}, {
|
|
29
29
|
selectedAiQuestion: {
|
|
@@ -47,7 +47,7 @@ const J = {}, X = {}, Y = {}, aa = {
|
|
|
47
47
|
const _ = a.titleLevel + 1, n = h(a, "selectedAiQuestion"), e = h(a, "selectedNbUser"), l = h(a, "currentLevel"), s = g(!1), u = x(() => ({
|
|
48
48
|
state: l.value === "initial" ? "primary" : "warning",
|
|
49
49
|
label: k.t(`capacity-calculation.in.buttonLabel.${l.value === "initial" ? "primary" : "warning"}`)
|
|
50
|
-
})), p = x(() => Number.isInteger(n.value)),
|
|
50
|
+
})), p = x(() => Number.isInteger(n.value)), M = [800, 8e3, 14e3, 25e3, 9e4, 15e4], Q = /* @__PURE__ */ new Set([
|
|
51
51
|
// Valeurs de base
|
|
52
52
|
10,
|
|
53
53
|
20,
|
|
@@ -72,7 +72,7 @@ const J = {}, X = {}, Y = {}, aa = {
|
|
|
72
72
|
4e3,
|
|
73
73
|
5e3,
|
|
74
74
|
1e4,
|
|
75
|
-
...
|
|
75
|
+
...M,
|
|
76
76
|
2e4,
|
|
77
77
|
3e4,
|
|
78
78
|
4e4,
|
|
@@ -80,7 +80,7 @@ const J = {}, X = {}, Y = {}, aa = {
|
|
|
80
80
|
75e3,
|
|
81
81
|
1e5,
|
|
82
82
|
125e3
|
|
83
|
-
]), w = Array.from(
|
|
83
|
+
]), w = Array.from(Q).sort((i, y) => i - y), S = x(() => {
|
|
84
84
|
const i = w.indexOf(e.value);
|
|
85
85
|
return Math.max(0, i);
|
|
86
86
|
}), U = (i) => {
|
|
@@ -143,7 +143,7 @@ const J = {}, X = {}, Y = {}, aa = {
|
|
|
143
143
|
name: "nbUser",
|
|
144
144
|
min: 0,
|
|
145
145
|
max: Z(w).length - 1,
|
|
146
|
-
value:
|
|
146
|
+
value: S.value,
|
|
147
147
|
onChange: U,
|
|
148
148
|
onKeydown: A,
|
|
149
149
|
"aria-disabled": s.value,
|
|
@@ -194,7 +194,7 @@ function La(a, c) {
|
|
|
194
194
|
return o(), d("svg", xa, [...c[0] || (c[0] = [
|
|
195
195
|
t("path", {
|
|
196
196
|
d: "M18.9595 24.3502L15.386 20.7767C15.0148 20.4052 14.5468 20.2195 13.9818 20.2195C13.4171 20.2195 12.949 20.4052 12.5776 20.7767C12.2064 21.1479 12.0226 21.6159 12.0262 22.1809C12.0298 22.7456 12.2171 23.2135 12.5883 23.5847L17.5235 28.5198C17.9343 28.928 18.4138 29.1321 18.9617 29.1321C19.5094 29.1321 19.9874 28.928 20.3959 28.5198L30.3581 18.5572C30.7295 18.1861 30.9153 17.7199 30.9153 17.1589C30.9153 16.5975 30.7295 16.1312 30.3581 15.76C29.9869 15.3885 29.5188 15.2028 28.9538 15.2028C28.3892 15.2028 27.9212 15.3885 27.5501 15.76L18.9595 24.3502ZM21.5001 39.7809C18.9646 39.7809 16.5855 39.3013 14.363 38.3422C12.1401 37.383 10.2066 36.0815 8.56244 34.4377C6.91858 32.7935 5.61709 30.86 4.65795 28.6372C3.69881 26.4146 3.21924 24.0356 3.21924 21.5001C3.21924 18.9646 3.69881 16.5855 4.65795 14.363C5.61709 12.1401 6.91858 10.2066 8.56244 8.56244C10.2066 6.91858 12.1401 5.61709 14.363 4.65795C16.5855 3.69881 18.9646 3.21924 21.5001 3.21924C24.0356 3.21924 26.4146 3.69881 28.6372 4.65795C30.86 5.61709 32.7935 6.91858 34.4377 8.56244C36.0815 10.2066 37.383 12.1401 38.3422 14.363C39.3013 16.5855 39.7809 18.9646 39.7809 21.5001C39.7809 24.0356 39.3013 26.4146 38.3422 28.6372C37.383 30.86 36.0815 32.7935 34.4377 34.4377C32.7935 36.0815 30.86 37.383 28.6372 38.3422C26.4146 39.3013 24.0356 39.7809 21.5001 39.7809Z",
|
|
197
|
-
fill: "#
|
|
197
|
+
fill: "#1f53b5"
|
|
198
198
|
}, null, -1)
|
|
199
199
|
])]);
|
|
200
200
|
}
|
|
@@ -213,7 +213,7 @@ function qa(a, c) {
|
|
|
213
213
|
}, null, -1)
|
|
214
214
|
])]);
|
|
215
215
|
}
|
|
216
|
-
const
|
|
216
|
+
const Ma = /* @__PURE__ */ v($a, [["render", qa]]), Qa = ["aria-level"], Sa = { class: "capacity-calculation__card" }, Ua = { class: "capacity-calculation__text capacity-calculation__text--strong" }, Aa = { class: "capacity-calculation__img" }, Ia = ["src"], ja = { class: "capacity-calculation__text" }, Ba = { class: "capacity-calculation__answers" }, Ea = { class: "capacity-calculation__card" }, Ra = { class: "capacity-calculation__text capacity-calculation__text--strong" }, Da = { class: "capacity-calculation__text" }, Oa = /* @__PURE__ */ C({
|
|
217
217
|
__name: "Answers.ce",
|
|
218
218
|
props: {
|
|
219
219
|
currentLevel: { type: String },
|
|
@@ -229,8 +229,8 @@ const Qa = /* @__PURE__ */ v($a, [["render", qa]]), Sa = ["aria-level"], Ma = {
|
|
|
229
229
|
role: "heading",
|
|
230
230
|
"aria-level": a.titleLevel + 1,
|
|
231
231
|
class: "capacity-calculation__subtitle"
|
|
232
|
-
}, r(c.$t("capacity-calculation.out.title")), 9,
|
|
233
|
-
t("div",
|
|
232
|
+
}, r(c.$t("capacity-calculation.out.title")), 9, Qa),
|
|
233
|
+
t("div", Sa, [
|
|
234
234
|
t("p", Ua, r(c.$t("capacity-calculation.out.capacity.label")), 1),
|
|
235
235
|
t("div", Aa, [
|
|
236
236
|
t("img", {
|
|
@@ -240,7 +240,7 @@ const Qa = /* @__PURE__ */ v($a, [["render", qa]]), Sa = ["aria-level"], Ma = {
|
|
|
240
240
|
a.currentLevel.startsWith("normal_") ? (o(), f(ka, {
|
|
241
241
|
key: 0,
|
|
242
242
|
class: "capacity-calculation__img--status"
|
|
243
|
-
})) : a.currentLevel === "warning" ? (o(), f(
|
|
243
|
+
})) : a.currentLevel === "warning" ? (o(), f(Ma, {
|
|
244
244
|
key: 1,
|
|
245
245
|
class: "capacity-calculation__img--status"
|
|
246
246
|
})) : a.currentLevel === "error" ? (o(), f(wa, {
|
|
@@ -252,16 +252,16 @@ const Qa = /* @__PURE__ */ v($a, [["render", qa]]), Sa = ["aria-level"], Ma = {
|
|
|
252
252
|
]),
|
|
253
253
|
t("div", Ba, [
|
|
254
254
|
t("div", Ea, [
|
|
255
|
-
t("p",
|
|
255
|
+
t("p", Ra, r(c.$t("capacity-calculation.out.consumption.label")), 1),
|
|
256
256
|
t("div", {
|
|
257
257
|
class: m(["capacity-calculation__progress-bar", a.currentLevel])
|
|
258
258
|
}, null, 2),
|
|
259
|
-
t("p",
|
|
259
|
+
t("p", Da, r(c.$t(`capacity-calculation.out.consumption.${a.currentLevel}`)), 1)
|
|
260
260
|
])
|
|
261
261
|
])
|
|
262
262
|
], 2));
|
|
263
263
|
}
|
|
264
|
-
}), Va = ".capacity-calculation__column--answers[data-v-
|
|
264
|
+
}), Va = ".capacity-calculation__column--answers[data-v-ea19b1c6]{display:flex;gap:.3rem;border:0px}.capacity-calculation__column--answers--normal_weak[data-v-ea19b1c6],.capacity-calculation__column--answers--normal_medium[data-v-ea19b1c6]{background:#eaf1ff}.capacity-calculation__column--answers--warning[data-v-ea19b1c6]{background:#fffaeb}.capacity-calculation__column--answers--error[data-v-ea19b1c6]{background:#fbebea}.capacity-calculation__column--answers .capacity-calculation__answers[data-v-ea19b1c6]{display:flex;flex-direction:column;align-items:stretch;gap:8px;justify-content:center;margin-bottom:1rem}.capacity-calculation__column--answers .capacity-calculation__card[data-v-ea19b1c6]{border-radius:4px;display:flex;flex-direction:column;align-items:center;gap:16px;padding:8px}.capacity-calculation__column--answers .capacity-calculation__text[data-v-ea19b1c6]{font-size:.875rem;font-weight:400;line-height:1.5rem;text-align:center;margin:0}.capacity-calculation__column--answers .capacity-calculation__text--strong[data-v-ea19b1c6]{font-weight:700;margin:0}.capacity-calculation__column--answers img[data-v-ea19b1c6]{max-width:100%}.capacity-calculation__column--answers .capacity-calculation__img[data-v-ea19b1c6]{position:relative}.capacity-calculation__column--answers .capacity-calculation__img img[data-v-ea19b1c6]{width:100px;height:100px;border-radius:24px}.capacity-calculation__column--answers .capacity-calculation__img--status[data-v-ea19b1c6]{position:absolute;top:0;right:0;transform:translate(30%,-30%)}.capacity-calculation__column--answers .capacity-calculation__progress-bar[data-v-ea19b1c6]{width:100%;height:32px;border-radius:24px;border:solid 2px #253858}.capacity-calculation__column--answers .capacity-calculation__progress-bar.normal_weak[data-v-ea19b1c6],.capacity-calculation__column--answers .capacity-calculation__progress-bar.normal_medium[data-v-ea19b1c6]{background:linear-gradient(90deg,#1f53b5 10%,#fff 36%)}.capacity-calculation__column--answers .capacity-calculation__progress-bar.warning[data-v-ea19b1c6]{background:linear-gradient(90deg,#ee6911 30%,#fff 66%)}.capacity-calculation__column--answers .capacity-calculation__progress-bar.error[data-v-ea19b1c6]{background:linear-gradient(90deg,#d24140 51%,#fff 88%)}@media(max-width:720px){.capacity-calculation__column--answers .capacity-calculation__answers[data-v-ea19b1c6]{flex-direction:row;justify-content:center;gap:16px}}", Za = /* @__PURE__ */ v(Oa, [["styles", [Va]], ["__scopeId", "data-v-ea19b1c6"]]), za = { class: "capacity-calculation" }, Fa = ["aria-level"], Ta = {
|
|
265
265
|
class: "capacity-calculation__grid",
|
|
266
266
|
"aria-live": "polite"
|
|
267
267
|
}, Pa = /* @__PURE__ */ C({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as R, q as E, r as y, v as O, x as W, y as d, c as p, o as v, a as C, z as _, m as D, F as L, b as V, i as j, A as b, B as q, h as T, n as U, C as X, t as Y, _ as G, f as H } from "../_plugin-vue_export-helper-
|
|
1
|
+
import { d as R, q as E, r as y, v as O, x as W, y as d, c as p, o as v, a as C, z as _, m as D, F as L, b as V, i as j, A as b, B as q, h as T, n as U, C as X, t as Y, _ as G, f as H } from "../_plugin-vue_export-helper-5HW1ARMK.js";
|
|
2
2
|
import { u as z, a as J } from "../normalize-props-DtfVI0Xg.js";
|
|
3
3
|
const K = { class: "container" }, Q = ["onMouseenter", "onFocusin", "onClick", "aria-label"], f = 10, Z = /* @__PURE__ */ R({
|
|
4
4
|
__name: "ClickableImage.ce",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { d as h, c as n, o, a, t as c, A as S, _ as f, n as P, j as A, H as N, r as y, y as m, B as z, F as x, b as k, e as v, E as q, f as M } from "../_plugin-vue_export-helper-
|
|
2
|
-
import { u as O, a as E, i as L, b as I } from "../i18n-
|
|
1
|
+
import { d as h, c as n, o, a, t as c, A as S, _ as f, n as P, j as A, H as N, r as y, y as m, B as z, F as x, b as k, e as v, E as q, f as M } from "../_plugin-vue_export-helper-5HW1ARMK.js";
|
|
2
|
+
import { u as O, a as E, i as L, b as I } from "../i18n-D_muRDKJ.js";
|
|
3
3
|
import { u as R } from "../normalize-props-DtfVI0Xg.js";
|
|
4
|
-
import { L as B } from "../LLMMessage.ce-
|
|
4
|
+
import { L as B } from "../LLMMessage.ce-8BLMV48B.js";
|
|
5
5
|
const T = {}, V = {}, D = {}, F = {
|
|
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 choisit par l’IA dans les propositions suivantes :", feedback: { sure: "En effet, c'est le mot le plus probable !", probably: "C’est possible ! Il peut aussi choisir le mot « {{word}} », qui est très probable...", notSure: "Pas sûr... Il choisira sans doute un mot plus probable : {{words, list(style: 'long'; type: 'disjunction';)}}." } }
|
|
7
7
|
}, H = {}, Q = {}, W = { class: "probability-bar" }, U = { "aria-hidden": "true" }, G = { class: "sr-only" }, J = /* @__PURE__ */ h({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as g, c as n, o as d, F as m, a as i, n as p, t as l, B as x, _ as u, r as y, b as k, L as v, E as w, f as F } from "../_plugin-vue_export-helper-
|
|
1
|
+
import { d as g, c as n, o as d, F as m, a as i, n as p, t as l, B as x, _ as u, r as y, b as k, L as v, E as w, f as F } from "../_plugin-vue_export-helper-5HW1ARMK.js";
|
|
2
2
|
import { u as _ } from "../normalize-props-DtfVI0Xg.js";
|
|
3
3
|
const L = ["aria-hidden"], C = ["src"], z = ["title-level"], N = ["aria-hidden"], S = ["aria-level"], $ = { class: "description" }, B = { class: "image-container" }, E = ["src"], j = /* @__PURE__ */ g({
|
|
4
4
|
__name: "FlipCard.ce",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../
|
|
2
|
-
import
|
|
1
|
+
import { n as p } from "../image-quiz.ce-CPBqOczV.js";
|
|
2
|
+
import "../_plugin-vue_export-helper-5HW1ARMK.js";
|
|
3
3
|
import "../normalize-props-DtfVI0Xg.js";
|
|
4
4
|
export {
|
|
5
5
|
p as normalizeImageQuizProps
|
|
@@ -1,33 +1,39 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
const
|
|
1
|
+
import { I as g, i as a, _ as z, a as f, b as v, c as w, d, e as p, n as b } from "../image-quiz.ce-CPBqOczV.js";
|
|
2
|
+
import { d as j, r as q, w as A, c as h, o as l, b as y, e as E, m as I, F as k, f as Q } from "../_plugin-vue_export-helper-5HW1ARMK.js";
|
|
3
|
+
const B = /* @__PURE__ */ j({
|
|
4
4
|
__name: "ImageQuizzes.ce",
|
|
5
5
|
props: {
|
|
6
6
|
quizzes: { type: Array }
|
|
7
7
|
},
|
|
8
8
|
emits: ["answer"],
|
|
9
|
-
setup(
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
if (!n.value.some((
|
|
13
|
-
if (n.value.some((
|
|
14
|
-
|
|
9
|
+
setup(e, { emit: u }) {
|
|
10
|
+
const o = u, n = q(new Array(e.quizzes.length).fill(void 0));
|
|
11
|
+
A(() => {
|
|
12
|
+
if (!n.value.some((s) => s == null)) {
|
|
13
|
+
if (n.value.some((s) => s === "")) {
|
|
14
|
+
o("answer", "");
|
|
15
15
|
return;
|
|
16
16
|
}
|
|
17
|
-
|
|
17
|
+
o("answer", n.value.join(","));
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
|
-
function
|
|
21
|
-
n.value[
|
|
20
|
+
function _(s, t) {
|
|
21
|
+
n.value[t] = s;
|
|
22
22
|
}
|
|
23
|
-
return (
|
|
23
|
+
return (s, t) => (l(!0), h(k, null, y(e.quizzes, (m, r) => (l(), E(g, I({ key: r }, { ref_for: !0 }, m, {
|
|
24
24
|
"show-name": !0,
|
|
25
|
-
onAnswer: (c) =>
|
|
25
|
+
onAnswer: (c) => _(c, r)
|
|
26
26
|
}), null, 16, ["onAnswer"]))), 128));
|
|
27
27
|
}
|
|
28
|
-
})
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
});
|
|
29
|
+
a.addTranslationsFromGlobResults(/* @__PURE__ */ Object.assign({ "./locales/en.json": p, "./locales/es-419.json": d, "./locales/es.json": w, "./locales/fr.json": v, "./locales/it.json": f, "./locales/nl.json": z }));
|
|
30
|
+
const i = Q(B, {
|
|
31
|
+
configureApp(e) {
|
|
32
|
+
a.changeLanguage(document?.documentElement?.lang || navigator.language), e.use(a);
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
i.prototype.normalizeProps = (e) => ({
|
|
36
|
+
...e,
|
|
37
|
+
quizzes: e.quizzes.map(b)
|
|
32
38
|
});
|
|
33
39
|
window.customElements.define("image-quizzes", i);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { d as c, c as t, o as s, a as e, t as n, F as r, b as m, E as i, _ as p, f as g } from "../_plugin-vue_export-helper-
|
|
2
|
-
import { L as l } from "../LLMMessage.ce-
|
|
3
|
-
import { p as u } from "../shadow-dom-
|
|
1
|
+
import { d as c, c as t, o as s, a as e, t as n, F as r, b as m, E as i, _ as p, f as g } from "../_plugin-vue_export-helper-5HW1ARMK.js";
|
|
2
|
+
import { L as l } from "../LLMMessage.ce-8BLMV48B.js";
|
|
3
|
+
import { p as u } from "../shadow-dom-HBgAu8O2.js";
|
|
4
4
|
const f = {
|
|
5
5
|
class: "header",
|
|
6
6
|
"aria-hidden": "true"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { d as c, I as m, J 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-
|
|
2
|
-
import { L as h } from "../LLMMessage.ce-
|
|
3
|
-
import { p as _ } from "../shadow-dom-
|
|
1
|
+
import { d as c, I as m, J 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-5HW1ARMK.js";
|
|
2
|
+
import { L as h } from "../LLMMessage.ce-8BLMV48B.js";
|
|
3
|
+
import { p as _ } from "../shadow-dom-HBgAu8O2.js";
|
|
4
4
|
const x = {
|
|
5
5
|
class: "llm-messages",
|
|
6
6
|
"aria-live": "polite"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as h, r as c, G as y, c as d, o as m, E as w, a, H as k, F as b, b as L, t as S, _ as C, f as P } from "../_plugin-vue_export-helper-
|
|
1
|
+
import { d as h, r as c, G as y, c as d, o as m, E as w, a, H as k, F as b, b as L, t as S, _ as C, f as P } from "../_plugin-vue_export-helper-5HW1ARMK.js";
|
|
2
2
|
import { u as N } from "../normalize-props-DtfVI0Xg.js";
|
|
3
3
|
import "./llm-messages.ce.js.js";
|
|
4
4
|
const E = { class: "prompt-select" }, M = { class: "prompt-select__options" }, B = ["disabled", "onClick"], V = /* @__PURE__ */ h({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as S, r as x, y as M, v as B, c as i, o as n, n as w, B as l, a as h, H as k, t as v, E, M as z, m as P, F as b, b as N, _ as D, q as T, e as V, f as F } from "../_plugin-vue_export-helper-
|
|
2
|
-
import { L } from "../Loading.ce-
|
|
1
|
+
import { d as S, r as x, y as M, v as B, c as i, o as n, n as w, B as l, a as h, H as k, t as v, E, M as z, m as P, F as b, b as N, _ as D, q as T, e as V, f as F } from "../_plugin-vue_export-helper-5HW1ARMK.js";
|
|
2
|
+
import { L } from "../Loading.ce-DEcKxJ7b.js";
|
|
3
3
|
import { u as j, b as I, a as O } from "../normalize-props-DtfVI0Xg.js";
|
|
4
4
|
const q = ["part"], H = {
|
|
5
5
|
key: 1,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as i, c as a, o as l, D as s, a as r, j as n, A as d, n as b, _ as p, f as h } from "../_plugin-vue_export-helper-
|
|
1
|
+
import { d as i, c as a, o as l, D as s, a as r, j as n, A as d, n as b, _ as p, f as h } from "../_plugin-vue_export-helper-5HW1ARMK.js";
|
|
2
2
|
const m = {
|
|
3
3
|
class: "content",
|
|
4
4
|
part: "content"
|