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