@1024pix/epreuves-components 1.2.1 → 1.3.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-DtarwFF1.js} +13 -13
- package/dist/{LLMMessage.ce-Bb2k233-.js → LLMMessage.ce-CnMf3mGa.js} +7 -7
- package/dist/{Loading.ce-DKXphIYa.js → Loading.ce-BLJllV22.js} +1 -1
- package/dist/{NavigationButton.ce-DWJMfoec.js → NavigationButton.ce-Cz9511sV.js} +11 -11
- package/dist/_plugin-vue_export-helper-DK91u00G.js +4756 -0
- package/dist/components/calcul-impact.ce.js.js +13 -13
- package/dist/components/clickable-image.ce.js.js +96 -0
- package/dist/components/complete-phrase.ce.js.js +11 -11
- 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 +17 -17
- package/dist/components/pix-article.ce.js.js +7 -7
- package/dist/components/pix-carousel.ce.js.js +16 -16
- package/dist/components/pix-cursor.ce.js.js +26 -26
- package/dist/components/qcm-deepfake.ce.js.js +18 -18
- package/dist/{i18n-C63rdMbm.js → i18n-Gv3Ze5vF.js} +1 -1
- package/dist/index.js +8 -7
- package/dist/metadata.js +43 -26
- package/dist/schema.js +39 -21
- package/dist/{shadow-dom-DyOx0CmY.js → shadow-dom-DTRtrvgC.js} +1 -1
- package/package.json +1 -1
- package/dist/_plugin-vue_export-helper-CWFVtOvN.js +0 -4717
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import { a as
|
|
3
|
-
import { N as
|
|
4
|
-
const
|
|
1
|
+
import { a as S, r as k, G as y, k as m, z as A, c as a, o as i, f as s, l as B, I as c, t as u, F as f, b, N as H, y as g, D as C, M as L, E as D, q as F, _ as P, d as G } from "../_plugin-vue_export-helper-DK91u00G.js";
|
|
2
|
+
import { a as q, i as w, b as R } from "../i18n-Gv3Ze5vF.js";
|
|
3
|
+
import { N as M } from "../NavigationButton.ce-Cz9511sV.js";
|
|
4
|
+
const U = {}, J = {}, K = {
|
|
5
5
|
"pix-cursor": { confirm: "Valider", next: "Suivant", previous: "Précédent", selectAnOption: "Sélectionnez une option", youHaveChosen: "Vous avez choisi : { choice }" }
|
|
6
6
|
}, Q = {}, W = {}, X = ["for"], Y = {
|
|
7
7
|
class: "visible-options",
|
|
@@ -12,35 +12,35 @@ const K = {}, R = {}, U = {
|
|
|
12
12
|
}, le = {
|
|
13
13
|
key: 0,
|
|
14
14
|
class: "confirm"
|
|
15
|
-
}, ce = ["innerHTML", "aria-hidden"], de = /* @__PURE__ */
|
|
15
|
+
}, ce = ["innerHTML", "aria-hidden"], de = /* @__PURE__ */ S({
|
|
16
16
|
__name: "PixCursor.ce",
|
|
17
17
|
props: {
|
|
18
18
|
options: { type: Array }
|
|
19
19
|
},
|
|
20
|
-
setup(d, { expose:
|
|
21
|
-
const p = d, r =
|
|
22
|
-
function
|
|
20
|
+
setup(d, { expose: j }) {
|
|
21
|
+
const p = d, r = k(Math.floor(p.options.length / 2)), o = k(!1), v = y(), _ = y(), I = m(() => r.value === p.options.length - 1), N = m(() => r.value === 0), l = m(() => Number(r.value));
|
|
22
|
+
function z() {
|
|
23
23
|
o.value = !0;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function $() {
|
|
26
26
|
o.value || (r.value = Math.max(0, l.value - 1));
|
|
27
27
|
}
|
|
28
28
|
function O() {
|
|
29
29
|
o.value || (r.value = Math.min(p.options.length - 1, l.value + 1));
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function h(t) {
|
|
32
32
|
o.value || (r.value = t);
|
|
33
33
|
}
|
|
34
34
|
function T() {
|
|
35
35
|
o.value = !1, r.value = Math.floor(p.options.length / 2);
|
|
36
36
|
}
|
|
37
|
-
return
|
|
37
|
+
return j({
|
|
38
38
|
reset: T
|
|
39
39
|
}), (t, x) => {
|
|
40
|
-
const V =
|
|
40
|
+
const V = A("i18next");
|
|
41
41
|
return i(), a("form", {
|
|
42
42
|
class: "pix-cursor",
|
|
43
|
-
onSubmit:
|
|
43
|
+
onSubmit: F(z, ["prevent"])
|
|
44
44
|
}, [
|
|
45
45
|
s("div", null, [
|
|
46
46
|
s("label", {
|
|
@@ -49,23 +49,23 @@ const K = {}, R = {}, U = {
|
|
|
49
49
|
}, u(t.$t("pix-cursor.selectAnOption")), 9, X),
|
|
50
50
|
s("ul", Y, [
|
|
51
51
|
(i(!0), a(f, null, b(t.options, (n, e) => (i(), a("li", {
|
|
52
|
-
onClick: (
|
|
52
|
+
onClick: (E) => h(e),
|
|
53
53
|
key: e
|
|
54
54
|
}, u(n.label), 9, Z))), 128))
|
|
55
55
|
]),
|
|
56
|
-
s("datalist", { id: c(
|
|
56
|
+
s("datalist", { id: c(_) }, [
|
|
57
57
|
(i(!0), a(f, null, b(t.options, (n, e) => (i(), a("option", {
|
|
58
|
-
onClick: (
|
|
58
|
+
onClick: (E) => h(e),
|
|
59
59
|
key: e,
|
|
60
60
|
value: e,
|
|
61
61
|
label: n.label
|
|
62
62
|
}, u(n.label), 9, oe))), 128))
|
|
63
63
|
], 8, ee),
|
|
64
|
-
|
|
64
|
+
B(s("input", {
|
|
65
65
|
"onUpdate:modelValue": x[0] || (x[0] = (n) => r.value = n),
|
|
66
66
|
id: c(v),
|
|
67
67
|
type: "range",
|
|
68
|
-
list: c(
|
|
68
|
+
list: c(_),
|
|
69
69
|
min: "0",
|
|
70
70
|
max: t.options.length - 1,
|
|
71
71
|
disabled: o.value
|
|
@@ -73,8 +73,8 @@ const K = {}, R = {}, U = {
|
|
|
73
73
|
[H, r.value]
|
|
74
74
|
]),
|
|
75
75
|
s("div", ne, [
|
|
76
|
-
g(
|
|
77
|
-
onClick:
|
|
76
|
+
g(M, {
|
|
77
|
+
onClick: $,
|
|
78
78
|
disabled: o.value || N.value,
|
|
79
79
|
label: t.$t("pix-cursor.previous"),
|
|
80
80
|
"aria-controls": c(v),
|
|
@@ -101,7 +101,7 @@ const K = {}, R = {}, U = {
|
|
|
101
101
|
}, 1032, ["translation"])
|
|
102
102
|
], 10, ie))), 128))
|
|
103
103
|
]),
|
|
104
|
-
g(
|
|
104
|
+
g(M, {
|
|
105
105
|
onClick: O,
|
|
106
106
|
disabled: o.value || I.value,
|
|
107
107
|
label: t.$t("pix-cursor.next"),
|
|
@@ -114,7 +114,7 @@ const K = {}, R = {}, U = {
|
|
|
114
114
|
])
|
|
115
115
|
]),
|
|
116
116
|
s("div", se, [
|
|
117
|
-
o.value ?
|
|
117
|
+
o.value ? D("", !0) : (i(), a("button", le, u(t.$t("pix-cursor.confirm")), 1)),
|
|
118
118
|
(i(!0), a(f, null, b(t.options, (n, e) => (i(), a("p", {
|
|
119
119
|
innerHTML: n.feedback.text,
|
|
120
120
|
key: e,
|
|
@@ -128,10 +128,10 @@ const K = {}, R = {}, U = {
|
|
|
128
128
|
], 32);
|
|
129
129
|
};
|
|
130
130
|
}
|
|
131
|
-
}), ue = "[data-v-58e704c5]{--pix-neutral-800: #253858;font-family:Nunito,sans-serif;color:var(--pix-neutral-800)}.pix-cursor[data-v-58e704c5]{display:flex;flex-direction:column;justify-content:center;margin:auto;padding:2rem;gap:1rem;overflow:hidden}.pix-cursor p[data-v-58e704c5]{text-align:center;font-size:1.1rem}.pix-cursor .chosen-option[data-v-58e704c5]{font-weight:700}.pix-cursor .visible-options[data-v-58e704c5]{display:flex;justify-content:space-between;margin:0;padding:0}.pix-cursor .visible-options li[data-v-58e704c5]{cursor:pointer;list-style:none}.pix-cursor input[data-v-58e704c5]{width:100%}.pix-cursor .confirm[data-v-58e704c5]{padding:.75rem 1.5rem;border-radius:8px;cursor:pointer;font-weight:600;font-size:1.25rem;letter-spacing:1.1;width:fit-content;margin:auto;border:none;color:#fff;background:#4075ff;grid-row:1;grid-column:1}.pix-cursor .confirm[data-v-58e704c5]:hover{background:#355ac4;transition:background ease .1s}.pix-cursor .navigation-container[data-v-58e704c5]{display:flex;justify-content:center;align-items:center;gap:1rem}.pix-cursor .navigation-container .chosen-text-container[data-v-58e704c5]{display:grid}.pix-cursor .navigation-container .chosen-text-container p[data-v-58e704c5]{grid-row:1;grid-column:1}.pix-cursor .navigation-container .chosen-text-container p.hidden[data-v-58e704c5]{transform:translate(100vw)}.pix-cursor .footer[data-v-58e704c5]{display:grid;grid-template-columns:auto;align-items:center;justify-content:center}.pix-cursor .feedback[data-v-58e704c5]{padding:1rem 1.2rem;border-left:solid 4px;border-radius:8px;grid-column:1;grid-row:1;text-align:start;margin:0}.pix-cursor .feedback.hidden[data-v-58e704c5]{visibility:hidden;transform:translate(100vw)}.pix-cursor .feedback.good[data-v-58e704c5]{background:#e8f5e9;border-left-color:#4caf51}.pix-cursor .feedback.bad[data-v-58e704c5]{background:#ffebee;border-left-color:#f44337}.pix-cursor .feedback.neutral[data-v-58e704c5]{background:#e8f6ff;border-left-color:#464ee0}.pix-cursor .feedback.close[data-v-58e704c5]{background:#fff8e1;border-left-color:#ffc108}", pe = /* @__PURE__ */
|
|
132
|
-
|
|
133
|
-
window.customElements.define("pix-cursor",
|
|
131
|
+
}), ue = "[data-v-58e704c5]{--pix-neutral-800: #253858;font-family:Nunito,sans-serif;color:var(--pix-neutral-800)}.pix-cursor[data-v-58e704c5]{display:flex;flex-direction:column;justify-content:center;margin:auto;padding:2rem;gap:1rem;overflow:hidden}.pix-cursor p[data-v-58e704c5]{text-align:center;font-size:1.1rem}.pix-cursor .chosen-option[data-v-58e704c5]{font-weight:700}.pix-cursor .visible-options[data-v-58e704c5]{display:flex;justify-content:space-between;margin:0;padding:0}.pix-cursor .visible-options li[data-v-58e704c5]{cursor:pointer;list-style:none}.pix-cursor input[data-v-58e704c5]{width:100%}.pix-cursor .confirm[data-v-58e704c5]{padding:.75rem 1.5rem;border-radius:8px;cursor:pointer;font-weight:600;font-size:1.25rem;letter-spacing:1.1;width:fit-content;margin:auto;border:none;color:#fff;background:#4075ff;grid-row:1;grid-column:1}.pix-cursor .confirm[data-v-58e704c5]:hover{background:#355ac4;transition:background ease .1s}.pix-cursor .navigation-container[data-v-58e704c5]{display:flex;justify-content:center;align-items:center;gap:1rem}.pix-cursor .navigation-container .chosen-text-container[data-v-58e704c5]{display:grid}.pix-cursor .navigation-container .chosen-text-container p[data-v-58e704c5]{grid-row:1;grid-column:1}.pix-cursor .navigation-container .chosen-text-container p.hidden[data-v-58e704c5]{transform:translate(100vw)}.pix-cursor .footer[data-v-58e704c5]{display:grid;grid-template-columns:auto;align-items:center;justify-content:center}.pix-cursor .feedback[data-v-58e704c5]{padding:1rem 1.2rem;border-left:solid 4px;border-radius:8px;grid-column:1;grid-row:1;text-align:start;margin:0}.pix-cursor .feedback.hidden[data-v-58e704c5]{visibility:hidden;transform:translate(100vw)}.pix-cursor .feedback.good[data-v-58e704c5]{background:#e8f5e9;border-left-color:#4caf51}.pix-cursor .feedback.bad[data-v-58e704c5]{background:#ffebee;border-left-color:#f44337}.pix-cursor .feedback.neutral[data-v-58e704c5]{background:#e8f6ff;border-left-color:#464ee0}.pix-cursor .feedback.close[data-v-58e704c5]{background:#fff8e1;border-left-color:#ffc108}", pe = /* @__PURE__ */ P(de, [["styles", [ue]], ["__scopeId", "data-v-58e704c5"]]);
|
|
132
|
+
q(/* @__PURE__ */ Object.assign({ "./locales/en.json": U, "./locales/es.json": J, "./locales/fr.json": K, "./locales/it.json": Q, "./locales/nl.json": W })).catch((d) => console.error(d));
|
|
133
|
+
window.customElements.define("pix-cursor", G(pe, {
|
|
134
134
|
configureApp(d) {
|
|
135
|
-
w.changeLanguage(document?.documentElement?.lang || navigator.language), d.use(
|
|
135
|
+
w.changeLanguage(document?.documentElement?.lang || navigator.language), d.use(R, { i18next: w });
|
|
136
136
|
}
|
|
137
137
|
}));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as k, c, o as r, f as t,
|
|
2
|
-
import { i as s, a as
|
|
3
|
-
const
|
|
1
|
+
import { a as k, c, o as r, f as t, E as b, t as d, D as C, _ as w, O as B, P as E, r as y, k as _, l as R, A as V, Q as j, g as O, F as h, b as x, e as M, I as G, q as P, y as F, d as Q } from "../_plugin-vue_export-helper-DK91u00G.js";
|
|
2
|
+
import { i as s, a as H, b as U } from "../i18n-Gv3Ze5vF.js";
|
|
3
|
+
const W = {}, Z = {}, J = {
|
|
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({
|
|
6
6
|
__name: "NarrativeAnswer.ce",
|
|
@@ -49,7 +49,7 @@ const J = {}, W = {}, Z = {
|
|
|
49
49
|
}
|
|
50
50
|
}), le = ".right-container[data-v-3d782b51]{grid-row:1/1;grid-column:1/1}.right-container[aria-hidden=true][data-v-3d782b51]{visibility:hidden}img[data-v-3d782b51]{margin-block:.5rem}.subtitle[data-v-3d782b51]{font-size:1.25rem;font-weight:700;text-align:center}.description[data-v-3d782b51]{font-weight:700;margin-top:0;margin-bottom:0}img[data-v-3d782b51]{width:200px;height:auto}.answer-block[data-v-3d782b51]{background:#e8e8e8;margin-inline:1rem;padding:.5rem;border-radius:10px}.answer-block p[data-v-3d782b51]{margin-bottom:0}.answer-block.success[data-v-3d782b51]{background:#e8f3ef}.answer-block.fail[data-v-3d782b51]{border-radius:16px;background:#fbecec}", oe = /* @__PURE__ */ w(ne, [["styles", [le]], ["__scopeId", "data-v-3d782b51"]]), re = ["aria-disabled"], de = /* @__PURE__ */ k({
|
|
51
51
|
__name: "Option.ce",
|
|
52
|
-
props: /* @__PURE__ */
|
|
52
|
+
props: /* @__PURE__ */ B({
|
|
53
53
|
option: { type: String },
|
|
54
54
|
value: { type: Number },
|
|
55
55
|
readonly: { type: Boolean }
|
|
@@ -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 = E(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();
|
|
@@ -72,7 +72,7 @@ const J = {}, W = {}, Z = {
|
|
|
72
72
|
}), (m, g) => (r(), c("label", {
|
|
73
73
|
class: C({ selected: u.value, disabled: i.value })
|
|
74
74
|
}, [
|
|
75
|
-
|
|
75
|
+
R(t("input", {
|
|
76
76
|
type: "checkbox",
|
|
77
77
|
name: "options",
|
|
78
78
|
onClick: v,
|
|
@@ -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(G(p), (f, S) => (r(), M(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] = (A) => l.value = A),
|
|
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,
|
|
@@ -213,8 +213,8 @@ const J = {}, W = {}, Z = {
|
|
|
213
213
|
], 64));
|
|
214
214
|
}
|
|
215
215
|
}), we = "legend,label,p,div[role=heading]{font-family:Nunito,Roboto,sans-serif;color:#253858}", qe = ".container[data-v-a7a0f3aa]{display:flex;gap:.8rem}.title[data-v-a7a0f3aa]{font-size:1.75rem;font-weight:700;text-align:center;margin-bottom:16px}.left-side[data-v-a7a0f3aa]{min-width:60%;border:solid 1px #b0d3f4;background:#fff;padding:.8rem;border-radius:10px}.left-side__lower-legend[data-v-a7a0f3aa]{font-size:.875rem;color:#5e6c84}.left-side__subtitle[data-v-a7a0f3aa]{font-size:1.25rem;font-weight:700;text-align:center}.left-side__options[data-v-a7a0f3aa]{display:flex;border:solid 1px #5e6c84;padding:.6rem;border-radius:5px;gap:.5rem}.left-side__description[data-v-a7a0f3aa]{font-weight:700}.left-side__button[data-v-a7a0f3aa]{display:flex;gap:.5rem;align-items:center;border:none;padding:.6rem 1.5rem;background:#ffcb33;color:#000;border-radius:25px;font-weight:700;cursor:pointer}.left-side__button.generate[data-v-a7a0f3aa]{background:#613fdd;color:#fff}.left-side__button[aria-disabled=true][data-v-a7a0f3aa]{cursor:not-allowed;background:#d3d3d3}.left-side__action[data-v-a7a0f3aa]{display:flex;flex-direction:column;align-items:center;text-align:center}.right-side[data-v-a7a0f3aa]{display:grid;border:solid 1px #b0d3f4;background:#fff;padding:.8rem;text-align:center;border-radius:10px}fieldset[data-v-a7a0f3aa]{border:none;display:flex;flex-direction:column;gap:.8rem}@media (max-width: 770px){.container[data-v-a7a0f3aa]{flex-wrap:wrap}.left-side[data-v-a7a0f3aa],.right-side[data-v-a7a0f3aa]{width:100%}}", Ie = /* @__PURE__ */ w(Ce, [["styles", [we, qe]], ["__scopeId", "data-v-a7a0f3aa"]]);
|
|
216
|
-
|
|
217
|
-
window.customElements.define("qcm-deepfake",
|
|
216
|
+
H(/* @__PURE__ */ Object.assign({ "./locales/en.json": W, "./locales/es.json": Z, "./locales/fr.json": J, "./locales/it.json": K, "./locales/nl.json": X })).catch((a) => console.error(a));
|
|
217
|
+
window.customElements.define("qcm-deepfake", Q(Ie, {
|
|
218
218
|
configureApp(a) {
|
|
219
219
|
s.changeLanguage(document?.documentElement?.lang || navigator.language), a.use(U, { i18next: s });
|
|
220
220
|
}
|
|
@@ -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-DK91u00G.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,13 @@
|
|
|
1
|
-
import "./components/
|
|
2
|
-
import "./components/
|
|
3
|
-
import "./components/
|
|
4
|
-
import "./components/llm-prompt-select.ce.js.js";
|
|
1
|
+
import "./components/calcul-impact.ce.js.js";
|
|
2
|
+
import "./components/clickable-image.ce.js.js";
|
|
3
|
+
import "./components/complete-phrase.ce.js.js";
|
|
5
4
|
import "./components/image-quiz.ce.js.js";
|
|
6
5
|
import "./components/image-quizzes.ce.js.js";
|
|
6
|
+
import "./components/message-conversation.ce.js.js";
|
|
7
|
+
import "./components/pix-article.ce.js.js";
|
|
7
8
|
import "./components/pix-carousel.ce.js.js";
|
|
8
9
|
import "./components/pix-cursor.ce.js.js";
|
|
9
|
-
import "./components/
|
|
10
|
+
import "./components/llm-messages.ce.js.js";
|
|
11
|
+
import "./components/llm-compare-messages.ce.js.js";
|
|
12
|
+
import "./components/llm-prompt-select.ce.js.js";
|
|
10
13
|
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,48 @@
|
|
|
1
|
-
const
|
|
2
|
-
isInteractive: !0
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
isInteractive:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
},
|
|
12
|
-
isInteractive:
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
},
|
|
18
|
-
isInteractive:
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
},
|
|
24
|
-
|
|
25
|
-
|
|
1
|
+
const i = "usable", s = {
|
|
2
|
+
isInteractive: !0,
|
|
3
|
+
mobileUsability: i
|
|
4
|
+
}, a = "not-accessible", o = !0, c = "unusable", l = {
|
|
5
|
+
accessibility: a,
|
|
6
|
+
isInteractive: o,
|
|
7
|
+
mobileUsability: c
|
|
8
|
+
}, n = !0, b = "not-recommended", m = {
|
|
9
|
+
isInteractive: n,
|
|
10
|
+
mobileUsability: b
|
|
11
|
+
}, _ = !0, r = "usable", v = {
|
|
12
|
+
isInteractive: _,
|
|
13
|
+
mobileUsability: r
|
|
14
|
+
}, u = !0, y = "usable", $ = {
|
|
15
|
+
isInteractive: u,
|
|
16
|
+
mobileUsability: y
|
|
17
|
+
}, I = !1, U = "usable", d = {
|
|
18
|
+
isInteractive: I,
|
|
19
|
+
mobileUsability: U
|
|
20
|
+
}, g = !1, p = "usable", j = {
|
|
21
|
+
isInteractive: g,
|
|
22
|
+
mobileUsability: p
|
|
23
|
+
}, x = "accessible", f = !0, q = "usable", z = {
|
|
24
|
+
accessibility: x,
|
|
25
|
+
isInteractive: f,
|
|
26
|
+
mobileUsability: q
|
|
27
|
+
}, k = !0, O = "not-recommended", h = {
|
|
28
|
+
isInteractive: k,
|
|
29
|
+
mobileUsability: O
|
|
30
|
+
}, E = !1, w = "unusable", A = {
|
|
31
|
+
isInteractive: E,
|
|
32
|
+
mobileUsability: w
|
|
33
|
+
}, B = !1, C = "usable", D = {
|
|
34
|
+
isInteractive: B,
|
|
35
|
+
mobileUsability: C
|
|
36
|
+
}, F = !0, G = "usable", H = {
|
|
37
|
+
isInteractive: F,
|
|
38
|
+
mobileUsability: G
|
|
39
|
+
}, J = !0, K = "not-recommended", L = {
|
|
40
|
+
isInteractive: J,
|
|
41
|
+
mobileUsability: K
|
|
42
|
+
}, M = /* @__PURE__ */ Object.assign({ "./calcul-impact/calcul-impact.metadata.json": s, "./clickable-image/clickable-image.metadata.json": l, "./complete-phrase/complete-phrase.metadata.json": m, "./image-quiz/image-quiz.metadata.json": v, "./image-quiz/image-quizzes.metadata.json": $, "./message-conversation/message-conversation.metadata.json": d, "./pix-article/pix-article.metadata.json": j, "./pix-carousel/pix-carousel.metadata.json": z, "./pix-cursor/pix-cursor.metadata.json": h, "./pix-llm/llm-compare-messages.metadata.json": A, "./pix-llm/llm-messages.metadata.json": D, "./pix-llm/llm-prompt-select.metadata.json": H, "./qcm-deepfake/qcm-deepfake.metadata.json": L }), N = Object.fromEntries(Object.entries(M).map(([t, e]) => [
|
|
26
43
|
t.replace(/^.*\/([^/]+)\.metadata\.json$/, "$1"),
|
|
27
44
|
e
|
|
28
45
|
]));
|
|
29
46
|
export {
|
|
30
|
-
|
|
47
|
+
N as metadata
|
|
31
48
|
};
|
package/dist/schema.js
CHANGED
|
@@ -2,6 +2,24 @@ import e from "joi";
|
|
|
2
2
|
const n = e.object({
|
|
3
3
|
titleLevel: e.number().required()
|
|
4
4
|
}), a = e.object({
|
|
5
|
+
image: e.object({
|
|
6
|
+
src: e.string().required(),
|
|
7
|
+
alt: e.string().required(),
|
|
8
|
+
width: e.number().optional(),
|
|
9
|
+
height: e.number().optional()
|
|
10
|
+
}).required().unknown(!0),
|
|
11
|
+
areas: e.array().items(e.object({
|
|
12
|
+
shape: e.string().valid("rect").required(),
|
|
13
|
+
coords: e.object({
|
|
14
|
+
x1: e.number().required(),
|
|
15
|
+
y1: e.number().required(),
|
|
16
|
+
x2: e.number().required(),
|
|
17
|
+
y2: e.number().required()
|
|
18
|
+
}).required(),
|
|
19
|
+
info: e.string().required(),
|
|
20
|
+
tooltipPosition: e.string().valid("bottom").optional()
|
|
21
|
+
}).required()).required().min(1)
|
|
22
|
+
}), u = e.object({
|
|
5
23
|
titleLevel: e.number().required(),
|
|
6
24
|
listOfProbabilityBarsLists: e.array().items(
|
|
7
25
|
e.array().items(
|
|
@@ -30,7 +48,7 @@ const n = e.object({
|
|
|
30
48
|
response: e.string().optional()
|
|
31
49
|
}).required()
|
|
32
50
|
).required()
|
|
33
|
-
}).required(),
|
|
51
|
+
}).required(), d = e.object({
|
|
34
52
|
quizzes: e.array().items(i).required()
|
|
35
53
|
}).required(), c = e.object({
|
|
36
54
|
title: e.string().required(),
|
|
@@ -45,7 +63,7 @@ const n = e.object({
|
|
|
45
63
|
}).unknown(!0).optional()
|
|
46
64
|
})
|
|
47
65
|
).required()
|
|
48
|
-
}).required(),
|
|
66
|
+
}).required(), l = e.object({
|
|
49
67
|
titleLevel: e.number().required(),
|
|
50
68
|
title: e.string().required(),
|
|
51
69
|
author: e.string().required(),
|
|
@@ -53,11 +71,11 @@ const n = e.object({
|
|
|
53
71
|
paragraphs: e.array().items(e.string().required()),
|
|
54
72
|
highlightedSentence: e.string().required(),
|
|
55
73
|
colorOfHighlightSentence: e.string().required()
|
|
56
|
-
}),
|
|
74
|
+
}), m = e.object({
|
|
57
75
|
name: e.string().allow("").required(),
|
|
58
76
|
attribution: e.string().allow("").required(),
|
|
59
77
|
url: e.string().allow("").required()
|
|
60
|
-
}),
|
|
78
|
+
}), g = e.object({
|
|
61
79
|
title: e.string().required(),
|
|
62
80
|
description: e.string().allow("").required(),
|
|
63
81
|
displayWidth: e.number().min(0).optional(),
|
|
@@ -65,12 +83,12 @@ const n = e.object({
|
|
|
65
83
|
src: e.string().required(),
|
|
66
84
|
alt: e.string().required()
|
|
67
85
|
}).required(),
|
|
68
|
-
license:
|
|
69
|
-
}),
|
|
86
|
+
license: m.optional()
|
|
87
|
+
}), q = e.object({
|
|
70
88
|
title: e.string().required(),
|
|
71
89
|
description: e.string().allow("").required(),
|
|
72
90
|
text: e.string().required()
|
|
73
|
-
}),
|
|
91
|
+
}), b = e.object({
|
|
74
92
|
title: e.string().required(),
|
|
75
93
|
description: e.string().allow("").required(),
|
|
76
94
|
displayHeight: e.number().min(0).optional(),
|
|
@@ -79,13 +97,13 @@ const n = e.object({
|
|
|
79
97
|
src: e.string().required(),
|
|
80
98
|
alt: e.string().required()
|
|
81
99
|
}).required()
|
|
82
|
-
}),
|
|
100
|
+
}), p = e.object({
|
|
83
101
|
type: e.string().valid("image", "image-text", "text").required(),
|
|
84
102
|
slides: e.alternatives().conditional("type", {
|
|
85
103
|
switch: [
|
|
86
|
-
{ is: "image", then: e.array().items(
|
|
87
|
-
{ is: "image-text", then: e.array().items(
|
|
88
|
-
{ is: "text", then: e.array().items(
|
|
104
|
+
{ is: "image", then: e.array().items(g) },
|
|
105
|
+
{ is: "image-text", then: e.array().items(b) },
|
|
106
|
+
{ is: "text", then: e.array().items(q) }
|
|
89
107
|
]
|
|
90
108
|
}).required(),
|
|
91
109
|
aspectRatio: e.number().min(0).required(),
|
|
@@ -93,7 +111,7 @@ const n = e.object({
|
|
|
93
111
|
titleLevel: e.number().integer().min(0).max(6).optional(),
|
|
94
112
|
disableAnimation: e.boolean().required(),
|
|
95
113
|
disableLoop: e.boolean().optional()
|
|
96
|
-
}).meta({ title: "pix-carousel" }).required(),
|
|
114
|
+
}).meta({ title: "pix-carousel" }).required(), _ = e.object({
|
|
97
115
|
options: e.array().items(e.object({
|
|
98
116
|
label: e.string().required(),
|
|
99
117
|
feedback: e.object({
|
|
@@ -104,25 +122,25 @@ const n = e.object({
|
|
|
104
122
|
}), r = e.object({
|
|
105
123
|
title: e.string().required(),
|
|
106
124
|
llmName: e.string().required()
|
|
107
|
-
}).required(),
|
|
125
|
+
}).required(), j = e.object({
|
|
108
126
|
direction: e.string().valid("inbound").required(),
|
|
109
127
|
content: e.string().required()
|
|
110
|
-
}).required(),
|
|
128
|
+
}).required(), h = e.object({
|
|
111
129
|
direction: e.string().valid("outbound").required(),
|
|
112
130
|
content: e.string().required()
|
|
113
|
-
}).required(),
|
|
131
|
+
}).required(), v = e.object({
|
|
114
132
|
conversation1: r,
|
|
115
133
|
conversation2: r,
|
|
116
134
|
userName: e.string().required(),
|
|
117
135
|
messages: e.array().items(
|
|
118
|
-
e.alternatives(
|
|
136
|
+
e.alternatives(h, e.array().items(j).min(2).max(2).required())
|
|
119
137
|
).required()
|
|
120
138
|
}).required(), t = e.object({
|
|
121
139
|
direction: e.string().valid("inbound", "outbound").required(),
|
|
122
140
|
content: e.string().required()
|
|
123
|
-
}),
|
|
141
|
+
}), x = e.object({
|
|
124
142
|
messages: e.array().items(t.required()).required()
|
|
125
|
-
}).required(),
|
|
143
|
+
}).required(), y = e.object({
|
|
126
144
|
speed: e.number().default(20).min(0).optional(),
|
|
127
145
|
messages: e.array().items(t).required(),
|
|
128
146
|
prompts: e.array().items(
|
|
@@ -131,16 +149,16 @@ const n = e.object({
|
|
|
131
149
|
response: e.string().required()
|
|
132
150
|
}).required()
|
|
133
151
|
).required()
|
|
134
|
-
}).required(),
|
|
152
|
+
}).required(), w = e.object({
|
|
135
153
|
titleLevel: e.number().optional(),
|
|
136
154
|
successImage: e.string().required(),
|
|
137
155
|
failImage: e.string().required(),
|
|
138
156
|
infoImage: e.string().required(),
|
|
139
157
|
searchImage: e.string().required()
|
|
140
|
-
}), f = /* @__PURE__ */ Object.assign({ "./calcul-impact/calcul-impact.schema.js": n, "./complete-phrase/complete-phrase.schema.js":
|
|
158
|
+
}), f = /* @__PURE__ */ Object.assign({ "./calcul-impact/calcul-impact.schema.js": n, "./clickable-image/clickable-image.schema.js": a, "./complete-phrase/complete-phrase.schema.js": u, "./image-quiz/image-quiz.schema.js": i, "./image-quiz/image-quizzes.schema.js": d, "./message-conversation/message-conversation.schema.js": c, "./pix-article/pix-article.schema.js": l, "./pix-carousel/pix-carousel.schema.js": p, "./pix-cursor/pix-cursor.schema.js": _, "./pix-llm/llm-compare-messages.schema.js": v, "./pix-llm/llm-messages.schema.js": x, "./pix-llm/llm-prompt-select.schema.js": y, "./qcm-deepfake/qcm-deepfake.schema.js": w }), k = Object.fromEntries(Object.entries(f).map(([s, o]) => [
|
|
141
159
|
s.replace(/^.*\/([^/]+)\.schema\.js$/, "$1"),
|
|
142
160
|
o
|
|
143
161
|
]));
|
|
144
162
|
export {
|
|
145
|
-
|
|
163
|
+
k as schema
|
|
146
164
|
};
|