@1024pix/epreuves-components 1.2.1 → 1.4.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/{ImageQuiz.ce-CfYpyofd.js → ImageQuiz.ce-BU1wvQqO.js} +57 -67
- package/dist/{LLMMessage.ce-Bb2k233-.js → LLMMessage.ce-55YTC7a9.js} +8 -8
- package/dist/{Loading.ce-DKXphIYa.js → Loading.ce-BQOiwGj0.js} +1 -1
- package/dist/{NavigationButton.ce-DWJMfoec.js → NavigationButton.ce-CgyZHLpi.js} +6 -6
- package/dist/_plugin-vue_export-helper-BaT1QC5Q.js +4770 -0
- package/dist/components/calcul-impact.ce.js.js +53 -53
- package/dist/components/capacity-calculation.ce.js.js +279 -0
- package/dist/components/clickable-image.ce.js.js +96 -0
- package/dist/components/complete-phrase.ce.js.js +10 -10
- package/dist/components/flip-cards.ce.js.js +108 -0
- package/dist/components/image-quiz.ce.js.js +2 -2
- package/dist/components/image-quizzes.ce.js.js +2 -2
- 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 +7 -7
- package/dist/components/message-conversation.ce.js.js +19 -19
- package/dist/components/pix-article.ce.js.js +7 -7
- package/dist/components/pix-carousel.ce.js.js +14 -14
- package/dist/components/pix-cursor.ce.js.js +28 -28
- package/dist/components/qcm-deepfake.ce.js.js +13 -13
- package/dist/{i18n-C63rdMbm.js → i18n-BOk_ejZ-.js} +1 -1
- package/dist/index.js +10 -7
- package/dist/metadata.js +51 -26
- package/dist/schema.js +78 -23
- package/dist/{shadow-dom-DyOx0CmY.js → shadow-dom-CLVtaG5r.js} +1 -1
- package/dist/shuffled-CzcgAL34.js +14 -0
- package/package.json +1 -1
- package/dist/_plugin-vue_export-helper-CWFVtOvN.js +0 -4717
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as k, c, o as r, f as t,
|
|
2
|
-
import { i as s, a as Q, b as U } from "../i18n-
|
|
1
|
+
import { a as k, c, o as r, f as t, J as b, t as d, H as C, _ as w, O as A, P as B, r as y, k as _, l as E, A as V, R as j, g as O, F as h, b as x, e as G, G as M, q as P, y as F, d as H } from "../_plugin-vue_export-helper-BaT1QC5Q.js";
|
|
2
|
+
import { i as s, a as Q, b as U } from "../i18n-BOk_ejZ-.js";
|
|
3
3
|
const J = {}, W = {}, Z = {
|
|
4
4
|
"qcm-deepfake": { options: ["une photo de sa chanteuse préférée", "une chanson de sa chanteuse préférée", "un enregistrement de Caroline qui chante", "une photo de Caroline", "un enregistrement de Caroline qui dit quelques phrases"], iaResultInfo: "Retrouvez ici les résultats du logiciel d'IA générative :", iaResultGenerated: "Résultat généré par le logiciel d’IA générative :", title: "Recréez la vidéo de Caroline", in: "Entrée", out: "Sortie", selectThreeElements: "Sélectionnez 3 éléments pour générer la vidéo :", generateVideo: "Générer la vidéo !", restart: "Recommencer", element_one: "élément", element_other: "éléments", generateVideoInfo_one: "Plus que {{count}} élément", generateVideoInfo_other: "Plus que {{count}} éléments", restartInfo: "Essayez avec de nouveaux éléments", success: { title: "Super !", description: "C'est bien la vidéo de Caroline? Vous avez utilisé les bons éléments." }, fail: { title: "Pas exactement…", description: "Le résultat ne convient pas. Recommencez en changeant les éléments en entrée." }, searchTitle: "Le logiciel d’IA générative crée la vidéo" }
|
|
5
5
|
}, K = {}, X = {}, Y = ["aria-hidden"], ee = ["aria-level"], te = ["src"], ae = { class: "description" }, ie = ["src"], se = ["aria-level"], ne = /* @__PURE__ */ k({
|
|
@@ -59,7 +59,7 @@ const J = {}, W = {}, Z = {
|
|
|
59
59
|
}),
|
|
60
60
|
emits: ["update:modelValue"],
|
|
61
61
|
setup(a, { expose: e }) {
|
|
62
|
-
const l =
|
|
62
|
+
const l = B(a, "modelValue"), u = y(!1), i = _(() => l.value.length === 3 && !u.value || a.readonly);
|
|
63
63
|
function v(m) {
|
|
64
64
|
if (i.value) {
|
|
65
65
|
m.preventDefault();
|
|
@@ -110,7 +110,7 @@ const J = {}, W = {}, Z = {
|
|
|
110
110
|
searchDelay: { default: 2e3, type: Number }
|
|
111
111
|
},
|
|
112
112
|
setup(a, { expose: e }) {
|
|
113
|
-
const l = y([]), u = [2, 4, 5], i = y("info"), v =
|
|
113
|
+
const l = y([]), u = [2, 4, 5], i = y("info"), v = O("optionsNode"), m = s.t("qcm-deepfake.options", { returnObjects: !0 }), g = ["👩🎤", "🎧", "🎤", "👩", "🎙️"], p = m.map((n, o) => `${g[o]} ${n}`), $ = p.filter((n, o) => u.includes(o + 1)), T = [
|
|
114
114
|
{
|
|
115
115
|
type: "info",
|
|
116
116
|
image: a.infoImage,
|
|
@@ -135,16 +135,16 @@ const J = {}, W = {}, Z = {
|
|
|
135
135
|
image: a.searchImage,
|
|
136
136
|
title: s.t("qcm-deepfake.searchTitle")
|
|
137
137
|
}
|
|
138
|
-
], q = _(() => l.value.length !== 3),
|
|
138
|
+
], q = _(() => l.value.length !== 3), N = _(() => i.value === "info" ? s.t("qcm-deepfake.generateVideo") : s.t("qcm-deepfake.restart")), D = _(() => i.value === "info" ? s.t("qcm-deepfake.generateVideoInfo", { count: u.length - l.value.length }) : s.t("qcm-deepfake.restartInfo"));
|
|
139
139
|
function z() {
|
|
140
|
-
return i.value === "info" ?
|
|
140
|
+
return i.value === "info" ? L() : I();
|
|
141
141
|
}
|
|
142
142
|
function I() {
|
|
143
143
|
v.value.forEach((n) => {
|
|
144
144
|
n.isChecked = !1;
|
|
145
145
|
}), l.value = [], i.value = "info";
|
|
146
146
|
}
|
|
147
|
-
async function
|
|
147
|
+
async function L() {
|
|
148
148
|
if (q.value) return;
|
|
149
149
|
const n = l.value.every((o) => $.includes(o.trim()));
|
|
150
150
|
i.value = "search", await new Promise((o) => setTimeout(o, a.searchDelay)), n ? i.value = "success" : i.value = "fail";
|
|
@@ -166,16 +166,16 @@ const J = {}, W = {}, Z = {
|
|
|
166
166
|
}, d(n.$t("qcm-deepfake.in")), 9, ge),
|
|
167
167
|
t("fieldset", null, [
|
|
168
168
|
t("legend", ve, d(n.$t("qcm-deepfake.selectThreeElements")), 1),
|
|
169
|
-
(r(!0), c(h, null,
|
|
169
|
+
(r(!0), c(h, null, x(M(p), (f, S) => (r(), G(ue, {
|
|
170
170
|
ref_for: !0,
|
|
171
171
|
ref_key: "optionsNode",
|
|
172
172
|
ref: v,
|
|
173
173
|
modelValue: l.value,
|
|
174
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
|
175
|
-
key:
|
|
174
|
+
"onUpdate:modelValue": o[0] || (o[0] = (R) => l.value = R),
|
|
175
|
+
key: S,
|
|
176
176
|
class: "left-side__options",
|
|
177
177
|
option: f,
|
|
178
|
-
value:
|
|
178
|
+
value: S + 1,
|
|
179
179
|
readonly: i.value !== "info"
|
|
180
180
|
}, null, 8, ["modelValue", "option", "value", "readonly"]))), 128))
|
|
181
181
|
]),
|
|
@@ -192,13 +192,13 @@ const J = {}, W = {}, Z = {
|
|
|
192
192
|
fill: "#122647"
|
|
193
193
|
}, null, -1)
|
|
194
194
|
])])) : b("", !0),
|
|
195
|
-
V(" " + d(
|
|
195
|
+
V(" " + d(N.value), 1)
|
|
196
196
|
], 10, _e),
|
|
197
197
|
t("p", ye, d(D.value), 1)
|
|
198
198
|
])
|
|
199
199
|
]),
|
|
200
200
|
t("div", ke, [
|
|
201
|
-
(r(), c(h, null,
|
|
201
|
+
(r(), c(h, null, x(T, (f) => F(oe, {
|
|
202
202
|
key: f,
|
|
203
203
|
"title-level": n.titleLevel,
|
|
204
204
|
type: f.type,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as Le, n as we, a as ve, i as Re } from "./_plugin-vue_export-helper-
|
|
1
|
+
import { s as Le, n as we, a as ve, i as Re } from "./_plugin-vue_export-helper-BaT1QC5Q.js";
|
|
2
2
|
const d = (o) => typeof o == "string", V = () => {
|
|
3
3
|
let o, e;
|
|
4
4
|
const t = new Promise((i, s) => {
|
package/dist/index.js
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
import "./components/
|
|
2
|
-
import "./components/
|
|
3
|
-
import "./components/
|
|
4
|
-
import "./components/
|
|
1
|
+
import "./components/calcul-impact.ce.js.js";
|
|
2
|
+
import "./components/capacity-calculation.ce.js.js";
|
|
3
|
+
import "./components/clickable-image.ce.js.js";
|
|
4
|
+
import "./components/complete-phrase.ce.js.js";
|
|
5
|
+
import "./components/flip-cards.ce.js.js";
|
|
5
6
|
import "./components/image-quiz.ce.js.js";
|
|
6
7
|
import "./components/image-quizzes.ce.js.js";
|
|
8
|
+
import "./components/message-conversation.ce.js.js";
|
|
9
|
+
import "./components/pix-article.ce.js.js";
|
|
7
10
|
import "./components/pix-carousel.ce.js.js";
|
|
8
11
|
import "./components/pix-cursor.ce.js.js";
|
|
9
|
-
import "./components/
|
|
12
|
+
import "./components/llm-messages.ce.js.js";
|
|
13
|
+
import "./components/llm-compare-messages.ce.js.js";
|
|
14
|
+
import "./components/llm-prompt-select.ce.js.js";
|
|
10
15
|
import "./components/qcm-deepfake.ce.js.js";
|
|
11
|
-
import "./components/pix-article.ce.js.js";
|
|
12
|
-
import "./components/calcul-impact.ce.js.js";
|
package/dist/metadata.js
CHANGED
|
@@ -1,31 +1,56 @@
|
|
|
1
|
-
const
|
|
2
|
-
isInteractive: !0
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
isInteractive: c
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
isInteractive:
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
},
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
},
|
|
20
|
-
isInteractive:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
},
|
|
1
|
+
const i = "usable", s = {
|
|
2
|
+
isInteractive: !0,
|
|
3
|
+
mobileUsability: i
|
|
4
|
+
}, a = "accessible", c = !0, o = "not-recommended", l = {
|
|
5
|
+
accessibility: a,
|
|
6
|
+
isInteractive: c,
|
|
7
|
+
mobileUsability: o
|
|
8
|
+
}, n = "not-accessible", b = !0, m = "unusable", _ = {
|
|
9
|
+
accessibility: n,
|
|
10
|
+
isInteractive: b,
|
|
11
|
+
mobileUsability: m
|
|
12
|
+
}, r = !0, v = "not-recommended", y = {
|
|
13
|
+
isInteractive: r,
|
|
14
|
+
mobileUsability: v
|
|
15
|
+
}, u = "accessible", $ = !0, d = "usable", I = {
|
|
16
|
+
accessibility: u,
|
|
17
|
+
isInteractive: $,
|
|
18
|
+
mobileUsability: d
|
|
19
|
+
}, U = !0, p = "usable", g = {
|
|
20
|
+
isInteractive: U,
|
|
21
|
+
mobileUsability: p
|
|
22
|
+
}, j = !0, x = "usable", f = {
|
|
23
|
+
isInteractive: j,
|
|
24
|
+
mobileUsability: x
|
|
25
|
+
}, q = !1, z = "usable", k = {
|
|
26
|
+
isInteractive: q,
|
|
27
|
+
mobileUsability: z
|
|
28
|
+
}, O = !1, h = "usable", E = {
|
|
29
|
+
isInteractive: O,
|
|
30
|
+
mobileUsability: h
|
|
31
|
+
}, w = "accessible", A = !0, B = "usable", C = {
|
|
32
|
+
accessibility: w,
|
|
33
|
+
isInteractive: A,
|
|
34
|
+
mobileUsability: B
|
|
35
|
+
}, D = !0, F = "not-recommended", G = {
|
|
36
|
+
isInteractive: D,
|
|
37
|
+
mobileUsability: F
|
|
38
|
+
}, H = !1, J = "unusable", K = {
|
|
39
|
+
isInteractive: H,
|
|
40
|
+
mobileUsability: J
|
|
41
|
+
}, L = !1, M = "usable", N = {
|
|
42
|
+
isInteractive: L,
|
|
43
|
+
mobileUsability: M
|
|
44
|
+
}, P = !0, Q = "usable", R = {
|
|
45
|
+
isInteractive: P,
|
|
46
|
+
mobileUsability: Q
|
|
47
|
+
}, S = !0, T = "not-recommended", V = {
|
|
48
|
+
isInteractive: S,
|
|
49
|
+
mobileUsability: T
|
|
50
|
+
}, W = /* @__PURE__ */ Object.assign({ "./calcul-impact/calcul-impact.metadata.json": s, "./capacity-calculation/capacity-calculation.metadata.json": l, "./clickable-image/clickable-image.metadata.json": _, "./complete-phrase/complete-phrase.metadata.json": y, "./flip-cards/flip-cards.metadata.json": I, "./image-quiz/image-quiz.metadata.json": g, "./image-quiz/image-quizzes.metadata.json": f, "./message-conversation/message-conversation.metadata.json": k, "./pix-article/pix-article.metadata.json": E, "./pix-carousel/pix-carousel.metadata.json": C, "./pix-cursor/pix-cursor.metadata.json": G, "./pix-llm/llm-compare-messages.metadata.json": K, "./pix-llm/llm-messages.metadata.json": N, "./pix-llm/llm-prompt-select.metadata.json": R, "./qcm-deepfake/qcm-deepfake.metadata.json": V }), X = Object.fromEntries(Object.entries(W).map(([t, e]) => [
|
|
26
51
|
t.replace(/^.*\/([^/]+)\.metadata\.json$/, "$1"),
|
|
27
52
|
e
|
|
28
53
|
]));
|
|
29
54
|
export {
|
|
30
|
-
|
|
55
|
+
X as metadata
|
|
31
56
|
};
|
package/dist/schema.js
CHANGED
|
@@ -1,7 +1,49 @@
|
|
|
1
1
|
import e from "joi";
|
|
2
|
-
const
|
|
2
|
+
const o = e.object({
|
|
3
3
|
titleLevel: e.number().required()
|
|
4
4
|
}), a = e.object({
|
|
5
|
+
titleLevel: e.number().required(),
|
|
6
|
+
images: e.object({
|
|
7
|
+
initial: e.object({
|
|
8
|
+
capacityImg: e.string().required(),
|
|
9
|
+
consumptionImg: e.string().required()
|
|
10
|
+
}).required(),
|
|
11
|
+
normal_weak: e.object({
|
|
12
|
+
capacityImg: e.string().required(),
|
|
13
|
+
consumptionImg: e.string().required()
|
|
14
|
+
}).required(),
|
|
15
|
+
normal_medium: e.object({
|
|
16
|
+
capacityImg: e.string().required(),
|
|
17
|
+
consumptionImg: e.string().required()
|
|
18
|
+
}).required(),
|
|
19
|
+
warning: e.object({
|
|
20
|
+
capacityImg: e.string().required(),
|
|
21
|
+
consumptionImg: e.string().required()
|
|
22
|
+
}).required(),
|
|
23
|
+
error: e.object({
|
|
24
|
+
capacityImg: e.string().required(),
|
|
25
|
+
consumptionImg: e.string().required()
|
|
26
|
+
}).required()
|
|
27
|
+
}).required()
|
|
28
|
+
}), c = e.object({
|
|
29
|
+
image: e.object({
|
|
30
|
+
src: e.string().required(),
|
|
31
|
+
alt: e.string().required(),
|
|
32
|
+
width: e.number().optional(),
|
|
33
|
+
height: e.number().optional()
|
|
34
|
+
}).required().unknown(!0),
|
|
35
|
+
areas: e.array().items(e.object({
|
|
36
|
+
shape: e.string().valid("rect").required(),
|
|
37
|
+
coords: e.object({
|
|
38
|
+
x1: e.number().required(),
|
|
39
|
+
y1: e.number().required(),
|
|
40
|
+
x2: e.number().required(),
|
|
41
|
+
y2: e.number().required()
|
|
42
|
+
}).required(),
|
|
43
|
+
info: e.string().required(),
|
|
44
|
+
tooltipPosition: e.string().valid("bottom").optional()
|
|
45
|
+
}).required()).required().min(1)
|
|
46
|
+
}), u = e.object({
|
|
5
47
|
titleLevel: e.number().required(),
|
|
6
48
|
listOfProbabilityBarsLists: e.array().items(
|
|
7
49
|
e.array().items(
|
|
@@ -14,6 +56,19 @@ const n = e.object({
|
|
|
14
56
|
userMessage: e.string().required(),
|
|
15
57
|
llmMessage: e.string().required(),
|
|
16
58
|
wordsToAdd: e.array().items(e.string()).required()
|
|
59
|
+
}), d = e.object({
|
|
60
|
+
name: e.string().required(),
|
|
61
|
+
cardList: e.array().items(
|
|
62
|
+
e.array().items(
|
|
63
|
+
e.object({
|
|
64
|
+
name: e.string().required(),
|
|
65
|
+
description: e.string().required(),
|
|
66
|
+
icon: e.string().required(),
|
|
67
|
+
image: e.string().required(),
|
|
68
|
+
titleLevel: e.string()
|
|
69
|
+
})
|
|
70
|
+
)
|
|
71
|
+
).required()
|
|
17
72
|
}), i = e.object({
|
|
18
73
|
name: e.string().required(),
|
|
19
74
|
multiple: e.boolean().optional(),
|
|
@@ -30,9 +85,9 @@ const n = e.object({
|
|
|
30
85
|
response: e.string().optional()
|
|
31
86
|
}).required()
|
|
32
87
|
).required()
|
|
33
|
-
}).required(),
|
|
88
|
+
}).required(), m = e.object({
|
|
34
89
|
quizzes: e.array().items(i).required()
|
|
35
|
-
}).required(),
|
|
90
|
+
}).required(), l = e.object({
|
|
36
91
|
title: e.string().required(),
|
|
37
92
|
messages: e.array().items(
|
|
38
93
|
e.object({
|
|
@@ -45,7 +100,7 @@ const n = e.object({
|
|
|
45
100
|
}).unknown(!0).optional()
|
|
46
101
|
})
|
|
47
102
|
).required()
|
|
48
|
-
}).required(),
|
|
103
|
+
}).required(), g = e.object({
|
|
49
104
|
titleLevel: e.number().required(),
|
|
50
105
|
title: e.string().required(),
|
|
51
106
|
author: e.string().required(),
|
|
@@ -53,11 +108,11 @@ const n = e.object({
|
|
|
53
108
|
paragraphs: e.array().items(e.string().required()),
|
|
54
109
|
highlightedSentence: e.string().required(),
|
|
55
110
|
colorOfHighlightSentence: e.string().required()
|
|
56
|
-
}),
|
|
111
|
+
}), q = e.object({
|
|
57
112
|
name: e.string().allow("").required(),
|
|
58
113
|
attribution: e.string().allow("").required(),
|
|
59
114
|
url: e.string().allow("").required()
|
|
60
|
-
}),
|
|
115
|
+
}), b = e.object({
|
|
61
116
|
title: e.string().required(),
|
|
62
117
|
description: e.string().allow("").required(),
|
|
63
118
|
displayWidth: e.number().min(0).optional(),
|
|
@@ -65,12 +120,12 @@ const n = e.object({
|
|
|
65
120
|
src: e.string().required(),
|
|
66
121
|
alt: e.string().required()
|
|
67
122
|
}).required(),
|
|
68
|
-
license:
|
|
69
|
-
}),
|
|
123
|
+
license: q.optional()
|
|
124
|
+
}), p = e.object({
|
|
70
125
|
title: e.string().required(),
|
|
71
126
|
description: e.string().allow("").required(),
|
|
72
127
|
text: e.string().required()
|
|
73
|
-
}),
|
|
128
|
+
}), _ = e.object({
|
|
74
129
|
title: e.string().required(),
|
|
75
130
|
description: e.string().allow("").required(),
|
|
76
131
|
displayHeight: e.number().min(0).optional(),
|
|
@@ -79,13 +134,13 @@ const n = e.object({
|
|
|
79
134
|
src: e.string().required(),
|
|
80
135
|
alt: e.string().required()
|
|
81
136
|
}).required()
|
|
82
|
-
}),
|
|
137
|
+
}), j = e.object({
|
|
83
138
|
type: e.string().valid("image", "image-text", "text").required(),
|
|
84
139
|
slides: e.alternatives().conditional("type", {
|
|
85
140
|
switch: [
|
|
86
|
-
{ is: "image", then: e.array().items(
|
|
87
|
-
{ is: "image-text", then: e.array().items(
|
|
88
|
-
{ is: "text", then: e.array().items(
|
|
141
|
+
{ is: "image", then: e.array().items(b) },
|
|
142
|
+
{ is: "image-text", then: e.array().items(_) },
|
|
143
|
+
{ is: "text", then: e.array().items(p) }
|
|
89
144
|
]
|
|
90
145
|
}).required(),
|
|
91
146
|
aspectRatio: e.number().min(0).required(),
|
|
@@ -93,7 +148,7 @@ const n = e.object({
|
|
|
93
148
|
titleLevel: e.number().integer().min(0).max(6).optional(),
|
|
94
149
|
disableAnimation: e.boolean().required(),
|
|
95
150
|
disableLoop: e.boolean().optional()
|
|
96
|
-
}).meta({ title: "pix-carousel" }).required(),
|
|
151
|
+
}).meta({ title: "pix-carousel" }).required(), h = e.object({
|
|
97
152
|
options: e.array().items(e.object({
|
|
98
153
|
label: e.string().required(),
|
|
99
154
|
feedback: e.object({
|
|
@@ -104,25 +159,25 @@ const n = e.object({
|
|
|
104
159
|
}), r = e.object({
|
|
105
160
|
title: e.string().required(),
|
|
106
161
|
llmName: e.string().required()
|
|
107
|
-
}).required(),
|
|
162
|
+
}).required(), v = e.object({
|
|
108
163
|
direction: e.string().valid("inbound").required(),
|
|
109
164
|
content: e.string().required()
|
|
110
|
-
}).required(),
|
|
165
|
+
}).required(), y = e.object({
|
|
111
166
|
direction: e.string().valid("outbound").required(),
|
|
112
167
|
content: e.string().required()
|
|
113
|
-
}).required(),
|
|
168
|
+
}).required(), x = e.object({
|
|
114
169
|
conversation1: r,
|
|
115
170
|
conversation2: r,
|
|
116
171
|
userName: e.string().required(),
|
|
117
172
|
messages: e.array().items(
|
|
118
|
-
e.alternatives(
|
|
173
|
+
e.alternatives(y, e.array().items(v).min(2).max(2).required())
|
|
119
174
|
).required()
|
|
120
175
|
}).required(), t = e.object({
|
|
121
176
|
direction: e.string().valid("inbound", "outbound").required(),
|
|
122
177
|
content: e.string().required()
|
|
123
|
-
}),
|
|
178
|
+
}), I = e.object({
|
|
124
179
|
messages: e.array().items(t.required()).required()
|
|
125
|
-
}).required(),
|
|
180
|
+
}).required(), w = e.object({
|
|
126
181
|
speed: e.number().default(20).min(0).optional(),
|
|
127
182
|
messages: e.array().items(t).required(),
|
|
128
183
|
prompts: e.array().items(
|
|
@@ -131,15 +186,15 @@ const n = e.object({
|
|
|
131
186
|
response: e.string().required()
|
|
132
187
|
}).required()
|
|
133
188
|
).required()
|
|
134
|
-
}).required(),
|
|
189
|
+
}).required(), f = e.object({
|
|
135
190
|
titleLevel: e.number().optional(),
|
|
136
191
|
successImage: e.string().required(),
|
|
137
192
|
failImage: e.string().required(),
|
|
138
193
|
infoImage: e.string().required(),
|
|
139
194
|
searchImage: e.string().required()
|
|
140
|
-
}),
|
|
195
|
+
}), L = /* @__PURE__ */ Object.assign({ "./calcul-impact/calcul-impact.schema.js": o, "./capacity-calculation/capacity-calculation.schema.js": a, "./clickable-image/clickable-image.schema.js": c, "./complete-phrase/complete-phrase.schema.js": u, "./flip-cards/flip-cards.schema.js": d, "./image-quiz/image-quiz.schema.js": i, "./image-quiz/image-quizzes.schema.js": m, "./message-conversation/message-conversation.schema.js": l, "./pix-article/pix-article.schema.js": g, "./pix-carousel/pix-carousel.schema.js": j, "./pix-cursor/pix-cursor.schema.js": h, "./pix-llm/llm-compare-messages.schema.js": x, "./pix-llm/llm-messages.schema.js": I, "./pix-llm/llm-prompt-select.schema.js": w, "./qcm-deepfake/qcm-deepfake.schema.js": f }), S = Object.fromEntries(Object.entries(L).map(([s, n]) => [
|
|
141
196
|
s.replace(/^.*\/([^/]+)\.schema\.js$/, "$1"),
|
|
142
|
-
|
|
197
|
+
n
|
|
143
198
|
]));
|
|
144
199
|
export {
|
|
145
200
|
S as schema
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
function a(r, e = f) {
|
|
2
|
+
const t = [...r];
|
|
3
|
+
for (let n = t.length - 1; n > 0; n--) {
|
|
4
|
+
const o = e() % (n + 1);
|
|
5
|
+
[t[n], t[o]] = [t[o], t[n]];
|
|
6
|
+
}
|
|
7
|
+
return t;
|
|
8
|
+
}
|
|
9
|
+
function f() {
|
|
10
|
+
return Math.floor(Math.random() * 2 ** 32);
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
a as s
|
|
14
|
+
};
|