@1024pix/epreuves-components 2.2.1 → 2.2.4
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-D_SYQOna.js → LLMMessage.ce-qbRxqNxR.js} +10 -10
- package/dist/{Loading.ce-CjAv1WaY.js → Loading.ce-CiVWBT3g.js} +1 -1
- package/dist/{NavigationButton.ce-DlErTyfv.js → NavigationButton.ce-DF5ScHc4.js} +9 -9
- package/dist/{Retry--whpA3a8.js → Retry-CuUMOAZi.js} +1 -1
- package/dist/{_plugin-vue_export-helper-CP5OpzZH.js → _plugin-vue_export-helper-D7ghZaw4.js} +1566 -1541
- package/dist/components/calcul-impact.ce.js.js +6 -6
- package/dist/components/capacity-calculation.ce.js.js +35 -35
- package/dist/components/clickable-image.ce.js.js +72 -71
- package/dist/components/complete-phrase.ce.js.js +54 -54
- package/dist/components/flip-cards.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 +6 -6
- package/dist/components/message-conversation.ce.js.js +22 -22
- package/dist/components/mobile-shell.ce.js.js +27 -0
- package/dist/components/pix-article.ce.js.js +4 -4
- package/dist/components/pix-carousel.ce.js.js +14 -14
- package/dist/components/pix-cursor.ce.js.js +17 -17
- package/dist/components/qcm-deepfake.ce.js.js +29 -29
- package/dist/{i18n-BB4WILwM.js → i18n-DX3ApBSH.js} +53 -53
- package/dist/{image-quiz.ce-UlVFo5Sr.js → image-quiz.ce-3HDl6Z67.js} +24 -24
- package/dist/index.js +1 -1
- package/dist/schema.js +6 -6
- package/dist/{shadow-dom-D3DtD_VO.js → shadow-dom-CFAQERh6.js} +1 -1
- package/package.json +1 -1
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { d as g, c as s, o as t, a,
|
|
2
|
-
import { a as
|
|
3
|
-
import { u as
|
|
4
|
-
import { L as
|
|
5
|
-
const
|
|
1
|
+
import { d as g, c as s, o as t, a, A as c, t as z, _ as y, y as S, C as M, G as R, r as b, k as w, v as T, F as $, b as q, e as k, D as L, f as V } from "../_plugin-vue_export-helper-D7ghZaw4.js";
|
|
2
|
+
import { a as E, i as P, b as I } from "../i18n-DX3ApBSH.js";
|
|
3
|
+
import { u as D } from "../normalize-props-AlmAfi_u.js";
|
|
4
|
+
import { L as B } from "../LLMMessage.ce-qbRxqNxR.js";
|
|
5
|
+
const O = {}, F = {}, W = {}, G = {
|
|
6
6
|
"complete-phrase": { title: "Probabilité du mot suivant", description: "La barre indique la probabilité de chaque mot. Plus elle est longue, plus le mot est probable dans ce contexte.", ariaLabelDescription: "Le mot {{name}} a une probabilité de {{percent}}%", clickHereButton: "Révéler le mot", successfullyCompletedSentence: "Cliquez sur le mot choisit par l’IA dans les propositions suivantes :", feedback: "En effet, c'est le mot le plus probable !" }
|
|
7
|
-
},
|
|
7
|
+
}, H = {}, Q = {}, U = { class: "probability-bar" }, J = { "aria-hidden": "true" }, K = { class: "sr-only" }, X = /* @__PURE__ */ g({
|
|
8
8
|
__name: "ProbabilityBar.ce",
|
|
9
9
|
props: {
|
|
10
10
|
name: { type: String },
|
|
11
11
|
percent: { type: Number }
|
|
12
12
|
},
|
|
13
13
|
setup(e) {
|
|
14
|
-
return (
|
|
14
|
+
return (p, o) => (t(), s("div", U, [
|
|
15
15
|
a("p", J, c(e.name), 1),
|
|
16
|
-
a("p", K, c(
|
|
16
|
+
a("p", K, c(p.$t("complete-phrase.ariaLabelDescription", { name: e.name, percent: e.percent })), 1),
|
|
17
17
|
a("div", {
|
|
18
|
-
style:
|
|
18
|
+
style: z(`width: ${e.percent}%`),
|
|
19
19
|
class: "probability-bar__percent",
|
|
20
20
|
"aria-hidden": "true"
|
|
21
21
|
}, null, 4),
|
|
@@ -32,10 +32,10 @@ const D = {}, F = {}, W = {}, H = {
|
|
|
32
32
|
state: { type: String }
|
|
33
33
|
},
|
|
34
34
|
setup(e) {
|
|
35
|
-
return (
|
|
35
|
+
return (p, o) => (t(), s("button", {
|
|
36
36
|
class: S(["complete-phrase_button", e.state])
|
|
37
37
|
}, [
|
|
38
|
-
M(
|
|
38
|
+
M(p.$slots, "icon"),
|
|
39
39
|
R(" " + c(e.label), 1)
|
|
40
40
|
], 2));
|
|
41
41
|
}
|
|
@@ -49,35 +49,35 @@ const D = {}, F = {}, W = {}, H = {
|
|
|
49
49
|
title: { type: String }
|
|
50
50
|
},
|
|
51
51
|
emits: ["visible"],
|
|
52
|
-
setup(e, { emit:
|
|
53
|
-
const o =
|
|
52
|
+
setup(e, { emit: p }) {
|
|
53
|
+
const o = p, r = b(null), m = w(() => e.list.find((n) => n.percent === 100).name), d = b(!1);
|
|
54
54
|
function u(n) {
|
|
55
|
-
r.value = n.target.value, m.value === r.value && (o("visible"),
|
|
55
|
+
r.value = n.target.value, m.value === r.value && (o("visible"), d.value = !0);
|
|
56
56
|
}
|
|
57
57
|
return (n, x) => (t(), s("div", oe, [
|
|
58
58
|
a("p", null, c(e.title), 1),
|
|
59
59
|
a("section", re, [
|
|
60
|
-
(t(!0), s($, null, q(e.list, (_,
|
|
60
|
+
(t(!0), s($, null, q(e.list, (_, v) => (t(), s("div", {
|
|
61
61
|
class: "qcu__list-choice",
|
|
62
|
-
key:
|
|
62
|
+
key: v
|
|
63
63
|
}, [
|
|
64
64
|
a("input", {
|
|
65
|
-
id: `choice${
|
|
65
|
+
id: `choice${v}`,
|
|
66
66
|
type: "radio",
|
|
67
67
|
name: "qcu-choice",
|
|
68
68
|
onClick: u,
|
|
69
69
|
"aria-label": _.name,
|
|
70
70
|
value: _.name,
|
|
71
71
|
checked: r.value === _.name,
|
|
72
|
-
disabled:
|
|
72
|
+
disabled: d.value
|
|
73
73
|
}, null, 8, ie),
|
|
74
74
|
a("label", se, c(_.name), 1)
|
|
75
75
|
]))), 128))
|
|
76
76
|
]),
|
|
77
|
-
m.value === r.value ? (t(), s("section", ne, c(n.$t("complete-phrase.feedback")), 1)) :
|
|
77
|
+
m.value === r.value ? (t(), s("section", ne, c(n.$t("complete-phrase.feedback")), 1)) : T("", !0)
|
|
78
78
|
]));
|
|
79
79
|
}
|
|
80
|
-
}), ce = "[data-v-
|
|
80
|
+
}), ce = "[data-v-631720f6]{--pix-neutral-100: #cdd1d9;--pix-neutral-900: #122647;font-family:Roboto,sans-serif;color:var(--pix-neutral-900)}.qcu[data-v-631720f6]{align-items:center;display:flex;flex-direction:column;gap:16px}.qcu p[data-v-631720f6]{margin:0}.qcu__list[data-v-631720f6]{display:flex;gap:16px}.qcu__list-choice[data-v-631720f6]{position:relative}.qcu__list-choice input[data-v-631720f6]{appearance:none;height:100%;outline:none;position:absolute;width:100%}.qcu__list-choice input:checked+label[data-v-631720f6]{background-color:var(--pix-info-500);color:var(--pix-neutral-0)}.qcu__list-choice input[data-v-631720f6]:hover{cursor:pointer}.qcu__list-choice input:hover+label[data-v-631720f6]{background-color:var(--pix-info-500);color:var(--pix-neutral-0);transition:background-color .5s ease,color .5s ease}.qcu__list-choice input:disabled+label[data-v-631720f6],.qcu__list-choice input[data-v-631720f6]:disabled:hover{cursor:not-allowed}.qcu__list-choice input:disabled:not(:checked)+label[data-v-631720f6],.qcu__list-choice input:disabled:hover:not(:checked)+label[data-v-631720f6]{background:var(--pix-info-50);color:var(--pix-neutral-900);cursor:not-allowed;opacity:.5;transition:none}.qcu__list-choice label[data-v-631720f6]{align-items:center;background:var(--pix-info-50);border-radius:4px;color:inherit;display:flex;font-weight:700;gap:10px;justify-content:center;padding:4px 8px;transition:background-color .5s ease,color .5s ease}.qcu .feedback[data-v-631720f6]{display:flex;padding:8px 16px;flex-direction:column;align-items:flex-start;gap:16px;align-self:stretch;border-radius:8px;background:var(--pix-info-50)}", pe = /* @__PURE__ */ y(le, [["styles", [ce]], ["__scopeId", "data-v-631720f6"]]), de = { class: "complete-phrase" }, ue = ["aria-level"], be = { class: "complete-phrase__description" }, me = { class: "complete-phrase__container" }, _e = { class: "complete-phrase-container__conversation" }, fe = { class: "complete-phrase-container__probabilities" }, ve = ["id", "aria-hidden"], he = /* @__PURE__ */ g({
|
|
81
81
|
__name: "CompletePhrase.ce",
|
|
82
82
|
props: {
|
|
83
83
|
listOfProbabilityBarsLists: { type: Array },
|
|
@@ -86,29 +86,29 @@ const D = {}, F = {}, W = {}, H = {
|
|
|
86
86
|
wordsToAdd: { type: Array },
|
|
87
87
|
titleLevel: { type: Number }
|
|
88
88
|
},
|
|
89
|
-
setup(e, { expose:
|
|
90
|
-
const o = e, r = b(0), m = b(o.llmMessage),
|
|
91
|
-
const [i] = o.listOfProbabilityBarsLists.filter((l,
|
|
89
|
+
setup(e, { expose: p }) {
|
|
90
|
+
const o = e, r = b(0), m = b(o.llmMessage), d = b(!1), u = b(o.wordsToAdd), n = b(!1), x = w(() => {
|
|
91
|
+
const [i] = o.listOfProbabilityBarsLists.filter((l, f) => f === r.value);
|
|
92
92
|
return i;
|
|
93
93
|
}), _ = w(() => {
|
|
94
94
|
let [i] = u.value, l = "complete-message-word";
|
|
95
|
-
if (
|
|
96
|
-
const [
|
|
97
|
-
i =
|
|
95
|
+
if (d.value) {
|
|
96
|
+
const [f] = x.value;
|
|
97
|
+
i = f.name, l += ` complete-message-word--${n.value ? "visible" : "hidden"}`;
|
|
98
98
|
}
|
|
99
99
|
return `<p>${m.value} <span class="${l}">${i}</span></p>`;
|
|
100
100
|
});
|
|
101
|
-
function
|
|
102
|
-
|
|
101
|
+
function v() {
|
|
102
|
+
d.value = !1, m.value = o.llmMessage, u.value = o.wordsToAdd, r.value = 0;
|
|
103
103
|
}
|
|
104
|
-
function
|
|
105
|
-
u.value.length === 1 && (
|
|
104
|
+
function N() {
|
|
105
|
+
u.value.length === 1 && (d.value = !0), r.value += 1;
|
|
106
106
|
const [i, ...l] = u.value;
|
|
107
107
|
u.value = l, m.value += `<span class="complete-message-word">${i} </span>`;
|
|
108
108
|
}
|
|
109
|
-
return
|
|
110
|
-
reset:
|
|
111
|
-
}), (i, l) => (t(), s("div",
|
|
109
|
+
return p({
|
|
110
|
+
reset: v
|
|
111
|
+
}), (i, l) => (t(), s("div", de, [
|
|
112
112
|
a("div", {
|
|
113
113
|
class: "complete-phrase__title",
|
|
114
114
|
role: "heading",
|
|
@@ -117,53 +117,53 @@ const D = {}, F = {}, W = {}, H = {
|
|
|
117
117
|
a("p", be, c(i.$t("complete-phrase.description")), 1),
|
|
118
118
|
a("section", me, [
|
|
119
119
|
a("div", _e, [
|
|
120
|
-
L(
|
|
120
|
+
L(B, {
|
|
121
121
|
class: "container__message",
|
|
122
122
|
message: { content: e.userMessage, direction: "outbound" }
|
|
123
123
|
}, null, 8, ["message"]),
|
|
124
|
-
L(
|
|
124
|
+
L(B, {
|
|
125
125
|
class: "container__message",
|
|
126
126
|
message: { content: _.value, direction: "inbound" }
|
|
127
127
|
}, null, 8, ["message"])
|
|
128
128
|
]),
|
|
129
|
-
a("div",
|
|
130
|
-
(t(!0), s($, null, q(e.listOfProbabilityBarsLists, (
|
|
131
|
-
class: S(["probability", { hidden:
|
|
132
|
-
key:
|
|
133
|
-
id: `currentProbability${
|
|
134
|
-
"aria-hidden":
|
|
129
|
+
a("div", fe, [
|
|
130
|
+
(t(!0), s($, null, q(e.listOfProbabilityBarsLists, (f, h) => (t(), s("div", {
|
|
131
|
+
class: S(["probability", { hidden: h !== r.value }]),
|
|
132
|
+
key: h,
|
|
133
|
+
id: `currentProbability${h}`,
|
|
134
|
+
"aria-hidden": h !== r.value
|
|
135
135
|
}, [
|
|
136
|
-
(t(!0), s($, null, q(
|
|
136
|
+
(t(!0), s($, null, q(f, (C, j) => (t(), k(Z, {
|
|
137
137
|
name: C.name,
|
|
138
138
|
percent: C.percent,
|
|
139
|
-
key:
|
|
139
|
+
key: j
|
|
140
140
|
}, null, 8, ["name", "percent"]))), 128))
|
|
141
|
-
], 10,
|
|
141
|
+
], 10, ve))), 128))
|
|
142
142
|
])
|
|
143
143
|
]),
|
|
144
|
-
|
|
144
|
+
d.value ? (t(), k(pe, {
|
|
145
145
|
key: 1,
|
|
146
146
|
list: x.value,
|
|
147
147
|
title: i.$t("complete-phrase.successfullyCompletedSentence"),
|
|
148
|
-
onVisible: l[0] || (l[0] = (
|
|
148
|
+
onVisible: l[0] || (l[0] = (f) => n.value = !0)
|
|
149
149
|
}, null, 8, ["list", "title"])) : (t(), k(ae, {
|
|
150
150
|
key: 0,
|
|
151
|
-
onClick:
|
|
151
|
+
onClick: N,
|
|
152
152
|
state: "primary",
|
|
153
153
|
label: i.$t("complete-phrase.clickHereButton"),
|
|
154
154
|
"aria-describedby": `currentProbability${r.value}`
|
|
155
155
|
}, null, 8, ["label", "aria-describedby"]))
|
|
156
156
|
]));
|
|
157
157
|
}
|
|
158
|
-
}), ge = "[data-v-be9b10f3]{--pix-info-50: #e6f2fe;--pix-info-500: #3b82f6;--pix-neutral-0: #fff;--pix-neutral-100: #cdd1d9;--pix-neutral-900: #122647;font-family:Roboto,sans-serif;color:var(--pix-neutral-900)}.complete-phrase__title[data-v-be9b10f3]{font-family:Nunito,sans-serif;font-size:1.75rem;font-weight:700;line-height:36px;text-align:center}.complete-phrase__description[data-v-be9b10f3]{text-align:center;font-size:1rem;font-weight:400;line-height:24px}.complete-phrase__container[data-v-be9b10f3]{display:grid;gap:32px;grid-template-columns:3fr 2fr;margin-bottom:24px}.complete-phrase-container__conversation[data-v-be9b10f3]{background:#fff;border:1px solid var(--pix-neutral-100);border-radius:16px;display:flex;flex-direction:column;gap:32px;padding:1rem}.complete-phrase-container__conversation .message[data-v-be9b10f3]{align-items:center}.complete-phrase-container__probabilities[data-v-be9b10f3]{display:grid}.complete-phrase-container__probabilities .probability[data-v-be9b10f3]{display:flex;flex-direction:column;gap:16px;grid-row:1;grid-column:1}.complete-phrase-container__probabilities .probability.hidden[data-v-be9b10f3]{visibility:hidden}@media(max-width:600px){.complete-phrase__container[data-v-be9b10f3]{grid-template-columns:1fr}.complete-phrase-container__probabilities .probability.hidden[data-v-be9b10f3]{display:none}}", ye = /* @__PURE__ */ y(
|
|
159
|
-
|
|
160
|
-
const
|
|
158
|
+
}), ge = "[data-v-be9b10f3]{--pix-info-50: #e6f2fe;--pix-info-500: #3b82f6;--pix-neutral-0: #fff;--pix-neutral-100: #cdd1d9;--pix-neutral-900: #122647;font-family:Roboto,sans-serif;color:var(--pix-neutral-900)}.complete-phrase__title[data-v-be9b10f3]{font-family:Nunito,sans-serif;font-size:1.75rem;font-weight:700;line-height:36px;text-align:center}.complete-phrase__description[data-v-be9b10f3]{text-align:center;font-size:1rem;font-weight:400;line-height:24px}.complete-phrase__container[data-v-be9b10f3]{display:grid;gap:32px;grid-template-columns:3fr 2fr;margin-bottom:24px}.complete-phrase-container__conversation[data-v-be9b10f3]{background:#fff;border:1px solid var(--pix-neutral-100);border-radius:16px;display:flex;flex-direction:column;gap:32px;padding:1rem}.complete-phrase-container__conversation .message[data-v-be9b10f3]{align-items:center}.complete-phrase-container__probabilities[data-v-be9b10f3]{display:grid}.complete-phrase-container__probabilities .probability[data-v-be9b10f3]{display:flex;flex-direction:column;gap:16px;grid-row:1;grid-column:1}.complete-phrase-container__probabilities .probability.hidden[data-v-be9b10f3]{visibility:hidden}@media(max-width:600px){.complete-phrase__container[data-v-be9b10f3]{grid-template-columns:1fr}.complete-phrase-container__probabilities .probability.hidden[data-v-be9b10f3]{display:none}}", ye = /* @__PURE__ */ y(he, [["styles", [ge]], ["__scopeId", "data-v-be9b10f3"]]);
|
|
159
|
+
E(/* @__PURE__ */ Object.assign({ "./locales/en.json": O, "./locales/es-419.json": F, "./locales/es.json": W, "./locales/fr.json": G, "./locales/it.json": H, "./locales/nl.json": Q })).catch((e) => console.error(e));
|
|
160
|
+
const A = V(ye, {
|
|
161
161
|
configureApp(e) {
|
|
162
|
-
|
|
162
|
+
P.changeLanguage(document?.documentElement?.lang || navigator.language), e.use(I, { i18next: P });
|
|
163
163
|
}
|
|
164
164
|
});
|
|
165
|
-
|
|
165
|
+
A.prototype.normalizeProps = (e) => ({
|
|
166
166
|
...e,
|
|
167
|
-
titleLevel:
|
|
167
|
+
titleLevel: D(e.titleLevel)
|
|
168
168
|
});
|
|
169
|
-
window.customElements.define("complete-phrase",
|
|
169
|
+
window.customElements.define("complete-phrase", A);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { d as m, c as n, o as d, F as u, a as t, v,
|
|
1
|
+
import { d as m, c as n, o as d, F as u, a as t, y as v, x as p, A as f, v as y, _ as h, r as w, b as k, J as g, D as F, f as _ } from "../_plugin-vue_export-helper-D7ghZaw4.js";
|
|
2
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" },
|
|
3
|
+
const C = ["aria-hidden"], z = ["src"], N = ["title-level"], S = ["aria-hidden"], $ = ["aria-level"], B = { class: "description" }, U = { class: "image-container" }, j = ["src"], D = /* @__PURE__ */ m({
|
|
4
4
|
__name: "FlipCard.ce",
|
|
5
5
|
props: {
|
|
6
6
|
titleLevel: { type: Number },
|
|
@@ -39,17 +39,17 @@ const C = ["aria-hidden"], z = ["src"], N = ["title-level"], S = ["aria-hidden"]
|
|
|
39
39
|
class: "title"
|
|
40
40
|
}, f(e.name), 9, $),
|
|
41
41
|
t("p", B, f(e.description), 1),
|
|
42
|
-
t("div",
|
|
42
|
+
t("div", U, [
|
|
43
43
|
p(l) ? (d(), n("img", {
|
|
44
44
|
key: 0,
|
|
45
45
|
src: p(l),
|
|
46
46
|
alt: ""
|
|
47
|
-
}, null, 8,
|
|
47
|
+
}, null, 8, j)) : y("", !0)
|
|
48
48
|
])
|
|
49
49
|
], 10, S)
|
|
50
50
|
], 64));
|
|
51
51
|
}
|
|
52
|
-
}),
|
|
52
|
+
}), E = "[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(D, [["styles", [E]], ["__scopeId", "data-v-897a493f"]]), V = { class: "flip-cards" }, A = ["aria-level"], I = ["aria-expanded", "onClick", "onKeydown"], R = { class: "flip-container" }, Y = /* @__PURE__ */ m({
|
|
53
53
|
__name: "FlipCards.ce",
|
|
54
54
|
props: {
|
|
55
55
|
titleLevel: { default: 2, type: Number },
|
|
@@ -66,12 +66,12 @@ const C = ["aria-hidden"], z = ["src"], N = ["title-level"], S = ["aria-hidden"]
|
|
|
66
66
|
), s = (i, c) => {
|
|
67
67
|
c.preventDefault(), i.isFlipped = !i.isFlipped;
|
|
68
68
|
};
|
|
69
|
-
return (i, c) => (d(), n("div",
|
|
69
|
+
return (i, c) => (d(), n("div", V, [
|
|
70
70
|
t("div", {
|
|
71
71
|
role: "heading",
|
|
72
72
|
"aria-level": e.titleLevel,
|
|
73
73
|
class: "sr-only"
|
|
74
|
-
}, f(e.name), 9,
|
|
74
|
+
}, f(e.name), 9, A),
|
|
75
75
|
(d(!0), n(u, null, k(l.value, (a, x) => (d(), n("div", {
|
|
76
76
|
key: x,
|
|
77
77
|
class: v(["card-container", { flipped: a.isFlipped, [a.color]: a.color }]),
|
|
@@ -84,8 +84,8 @@ const C = ["aria-hidden"], z = ["src"], N = ["title-level"], S = ["aria-hidden"]
|
|
|
84
84
|
g((r) => s(a, r), ["space"])
|
|
85
85
|
]
|
|
86
86
|
}, [
|
|
87
|
-
t("div",
|
|
88
|
-
F(
|
|
87
|
+
t("div", R, [
|
|
88
|
+
F(K, {
|
|
89
89
|
color: a.color,
|
|
90
90
|
description: a.description,
|
|
91
91
|
icon: a.icon,
|
|
@@ -95,10 +95,10 @@ const C = ["aria-hidden"], z = ["src"], N = ["title-level"], S = ["aria-hidden"]
|
|
|
95
95
|
"title-level": e.titleLevel + 1
|
|
96
96
|
}, null, 8, ["color", "description", "icon", "image", "is-flipped", "name", "title-level"])
|
|
97
97
|
])
|
|
98
|
-
], 42,
|
|
98
|
+
], 42, I))), 128))
|
|
99
99
|
]));
|
|
100
100
|
}
|
|
101
|
-
}),
|
|
101
|
+
}), Z = "[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)}", J = /* @__PURE__ */ h(Y, [["styles", [Z]], ["__scopeId", "data-v-394f37d2"]]), b = _(J);
|
|
102
102
|
b.prototype.normalizeProps = (e) => ({
|
|
103
103
|
...e,
|
|
104
104
|
titleLevel: L(e.titleLevel)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../_plugin-vue_export-helper-
|
|
2
|
-
import { n as p } from "../image-quiz.ce-
|
|
1
|
+
import "../_plugin-vue_export-helper-D7ghZaw4.js";
|
|
2
|
+
import { n as p } from "../image-quiz.ce-3HDl6Z67.js";
|
|
3
3
|
import "../normalize-props-AlmAfi_u.js";
|
|
4
4
|
export {
|
|
5
5
|
p as normalizeImageQuizProps
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as l, r as f, w, c as p, o, b as g, e as d, m as q, F as v, f as y } from "../_plugin-vue_export-helper-
|
|
2
|
-
import { I as A, n as I } from "../image-quiz.ce-
|
|
1
|
+
import { d as l, r as f, w, c as p, o, b as g, e as d, m as q, F as v, f as y } from "../_plugin-vue_export-helper-D7ghZaw4.js";
|
|
2
|
+
import { I as A, n as I } from "../image-quiz.ce-3HDl6Z67.js";
|
|
3
3
|
const _ = /* @__PURE__ */ l({
|
|
4
4
|
__name: "ImageQuizzes.ce",
|
|
5
5
|
props: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { d as c, c as t, o as s, a as e,
|
|
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, A as n, F as r, b as m, D as i, _ as p, f as g } from "../_plugin-vue_export-helper-D7ghZaw4.js";
|
|
2
|
+
import { L as l } from "../LLMMessage.ce-qbRxqNxR.js";
|
|
3
|
+
import { p as u } from "../shadow-dom-CFAQERh6.js";
|
|
4
4
|
const f = {
|
|
5
5
|
class: "header",
|
|
6
6
|
"aria-hidden": "true"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { d as c,
|
|
2
|
-
import { L as h } from "../LLMMessage.ce-
|
|
3
|
-
import { p as _ } from "../shadow-dom-
|
|
1
|
+
import { d as c, H as m, I 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-D7ghZaw4.js";
|
|
2
|
+
import { L as h } from "../LLMMessage.ce-qbRxqNxR.js";
|
|
3
|
+
import { p as _ } from "../shadow-dom-CFAQERh6.js";
|
|
4
4
|
const x = {
|
|
5
5
|
class: "llm-messages",
|
|
6
6
|
"aria-live": "polite"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { d as
|
|
1
|
+
import { d as h, r as c, E as y, c as d, o as m, D as w, a, G as k, F as b, b as L, A as S, _ as C, f as P } from "../_plugin-vue_export-helper-D7ghZaw4.js";
|
|
2
2
|
import { u as N } from "../normalize-props-AlmAfi_u.js";
|
|
3
3
|
import "./llm-messages.ce.js.js";
|
|
4
|
-
const
|
|
4
|
+
const E = { class: "prompt-select" }, M = { class: "prompt-select__options" }, A = ["disabled", "onClick"], B = /* @__PURE__ */ h({
|
|
5
5
|
__name: "LLMPromptSelect.ce",
|
|
6
6
|
props: {
|
|
7
7
|
messages: { type: Array },
|
|
@@ -45,10 +45,10 @@ const B = { class: "prompt-select" }, M = { class: "prompt-select__options" }, z
|
|
|
45
45
|
l.value = !1;
|
|
46
46
|
}
|
|
47
47
|
return (e, t) => {
|
|
48
|
-
const p =
|
|
48
|
+
const p = y("llm-messages");
|
|
49
49
|
return m(), d(b, null, [
|
|
50
50
|
w(p, { messages: s.value }, null, 8, ["messages"]),
|
|
51
|
-
a("div",
|
|
51
|
+
a("div", E, [
|
|
52
52
|
t[0] || (t[0] = a("p", { class: "prompt-select__label" }, [
|
|
53
53
|
k(" Sélectionner un des prompts "),
|
|
54
54
|
a("span", { class: "sr-only" }, " une fois sélectionnés, les prompts ne sont plus disponibles. ")
|
|
@@ -58,13 +58,13 @@ const B = { class: "prompt-select" }, M = { class: "prompt-select__options" }, z
|
|
|
58
58
|
key: i,
|
|
59
59
|
disabled: n.disabled || l.value,
|
|
60
60
|
onClick: (f) => v(n)
|
|
61
|
-
}, S(n.prompt), 9,
|
|
61
|
+
}, S(n.prompt), 9, A))), 128))
|
|
62
62
|
])
|
|
63
63
|
])
|
|
64
64
|
], 64);
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
|
-
}),
|
|
67
|
+
}), V = ".sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);border:0}llm-messages{display:block;height:400px}.prompt-select{font-family:Roboto,sans-serif;border-top:solid 1px #253858;padding:16px 24px 24px}.prompt-select__label{margin-top:0;font-weight:700;color:#253858}.prompt-select__options{display:flex;gap:1rem;justify-content:left;flex-wrap:wrap}.prompt-select__options>button{padding:1rem 1.5rem;border:none;background:#cec3f4;border-radius:16px;border:1px solid #ffffff;color:#130261;font-size:.875rem;box-shadow:0 4px 12px -4px #957ee833}.prompt-select__options>button:hover:not(:disabled){background:#9a8dc7;color:#fff;cursor:pointer}.prompt-select__options>button:disabled{cursor:not-allowed;color:#1010104d}", z = /* @__PURE__ */ C(B, [["styles", [V]]]), _ = P(z);
|
|
68
68
|
_.prototype.normalizeProps = (r) => ({
|
|
69
69
|
...r,
|
|
70
70
|
speed: N(r.speed)
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { d as S, r as x, k as
|
|
2
|
-
import { L
|
|
3
|
-
import { u as
|
|
4
|
-
const O = ["part"],
|
|
1
|
+
import { d as S, r as x, k as D, h as B, c as n, o as s, y as k, v as g, a as _, G as w, A as v, D as E, K as z, m as P, F as b, b as M, _ as N, g as T, e as V, f as F } from "../_plugin-vue_export-helper-D7ghZaw4.js";
|
|
2
|
+
import { L } from "../Loading.ce-CiVWBT3g.js";
|
|
3
|
+
import { u as j, a as I } from "../normalize-props-AlmAfi_u.js";
|
|
4
|
+
const O = ["part"], G = {
|
|
5
5
|
key: 1,
|
|
6
6
|
class: "message__loader message__content",
|
|
7
7
|
"aria-hidden": "true"
|
|
8
|
-
},
|
|
8
|
+
}, K = ["part"], R = { key: 1 }, q = { key: 0 }, H = /* @__PURE__ */ S({
|
|
9
9
|
__name: "Message.ce",
|
|
10
10
|
props: {
|
|
11
11
|
displaySender: { type: Boolean, default: !0 },
|
|
@@ -15,7 +15,7 @@ const O = ["part"], R = {
|
|
|
15
15
|
loadingDuration: { type: Number }
|
|
16
16
|
},
|
|
17
17
|
setup(e, { expose: d }) {
|
|
18
|
-
const i = x("hidden"), l = x([]), p =
|
|
18
|
+
const i = x("hidden"), l = x([]), p = D(() => e.message.content.split(`
|
|
19
19
|
`));
|
|
20
20
|
function m(t) {
|
|
21
21
|
return new Promise((a) => {
|
|
@@ -46,23 +46,23 @@ const O = ["part"], R = {
|
|
|
46
46
|
a[0] || (a[0] = _("span", { class: "sr-only" }, "Message de ", -1)),
|
|
47
47
|
w(v(e.message.userName), 1)
|
|
48
48
|
], 8, O)) : g("", !0),
|
|
49
|
-
i.value === "loading" ? (s(), n("div",
|
|
50
|
-
E(
|
|
49
|
+
i.value === "loading" ? (s(), n("div", G, [
|
|
50
|
+
E(L)
|
|
51
51
|
])) : g("", !0),
|
|
52
52
|
_("p", {
|
|
53
53
|
class: k(["message__content", { "hidden-state": i.value !== "visible" }]),
|
|
54
54
|
part: `message ${e.message.direction}`
|
|
55
55
|
}, [
|
|
56
56
|
e.message.image ? (s(), n("img", z(P({ key: 0 }, e.message.image)), null, 16)) : g("", !0),
|
|
57
|
-
e.message.image ? (s(), n("br",
|
|
58
|
-
(s(!0), n(b, null,
|
|
59
|
-
r > 0 ? (s(), n("br",
|
|
57
|
+
e.message.image ? (s(), n("br", R)) : g("", !0),
|
|
58
|
+
(s(!0), n(b, null, M(p.value, (o, r) => (s(), n(b, { key: r }, [
|
|
59
|
+
r > 0 ? (s(), n("br", q)) : g("", !0),
|
|
60
60
|
w(" " + v(o), 1)
|
|
61
61
|
], 64))), 128))
|
|
62
|
-
], 10,
|
|
62
|
+
], 10, K)
|
|
63
63
|
], 2));
|
|
64
64
|
}
|
|
65
|
-
}),
|
|
65
|
+
}), J = ".message{max-width:80%;position:relative}.message--incoming{align-self:start}.message--incoming .message__sender{padding-left:10px}.message--incoming .message__loader{left:10px}.message--incoming .message__content{background-color:#e8e8e8}.message--outgoing{align-self:end}.message--outgoing .message__sender{padding-right:10px;text-align:right}.message--outgoing .message__loader{right:10px}.message--outgoing .message__content{background-color:#d1eaff}.message__sender{color:#444;font-size:.8rem;font-weight:700;margin:0}.message__loader{position:absolute;width:24px}.message__content{border-radius:16px;margin:0;padding:10px 14px}.message__content:not(.hidden-state){animation:fade .3s ease-in-out both}.message__content>img{max-width:100%}.hidden-state{visibility:hidden}@keyframes fade{0%{opacity:0}to{opacity:1}}@media(prefers-reduced-motion:reduce){.message__content:not(.hidden-state){animation:none}.message__loader{display:none}.hidden-state{visibility:visible}}", Q = /* @__PURE__ */ N(H, [["styles", [J]]]), U = { part: "conversation" }, W = { class: "sr-only" }, X = /* @__PURE__ */ S({
|
|
66
66
|
__name: "MessageConversation.ce",
|
|
67
67
|
props: {
|
|
68
68
|
title: { default: "Conversation par messages", type: String },
|
|
@@ -70,7 +70,7 @@ const O = ["part"], R = {
|
|
|
70
70
|
animationSpeed: { default: 20, type: Number }
|
|
71
71
|
},
|
|
72
72
|
setup(e, { expose: d }) {
|
|
73
|
-
const i = 50 * e.animationSpeed, l = 50 * e.animationSpeed, p =
|
|
73
|
+
const i = 50 * e.animationSpeed, l = 50 * e.animationSpeed, p = D(
|
|
74
74
|
() => e.messages.reduce(
|
|
75
75
|
(t, a, o) => {
|
|
76
76
|
const r = c(a);
|
|
@@ -80,8 +80,8 @@ const O = ["part"], R = {
|
|
|
80
80
|
message: u,
|
|
81
81
|
startAnimation: y,
|
|
82
82
|
animationDuration: h
|
|
83
|
-
} = t.at(-1),
|
|
84
|
-
return [...t, { message: a, displaySender:
|
|
83
|
+
} = t.at(-1), C = a.direction !== u.direction || a.userName !== u.userName, $ = y + h + i;
|
|
84
|
+
return [...t, { message: a, displaySender: C, startAnimation: $, animationDuration: r }];
|
|
85
85
|
},
|
|
86
86
|
[]
|
|
87
87
|
)
|
|
@@ -97,7 +97,7 @@ const O = ["part"], R = {
|
|
|
97
97
|
reset: f
|
|
98
98
|
}), (t, a) => (s(), n("figure", U, [
|
|
99
99
|
_("figcaption", W, v(e.title), 1),
|
|
100
|
-
(s(!0), n(b, null,
|
|
100
|
+
(s(!0), n(b, null, M(p.value, ({ message: o, displaySender: r, startAnimation: u, animationDuration: y }, h) => (s(), V(Q, {
|
|
101
101
|
ref_for: !0,
|
|
102
102
|
ref: "messages",
|
|
103
103
|
message: o,
|
|
@@ -109,13 +109,13 @@ const O = ["part"], R = {
|
|
|
109
109
|
}, null, 8, ["message", "start-animation", "animation-duration", "display-sender"]))), 128))
|
|
110
110
|
]));
|
|
111
111
|
}
|
|
112
|
-
}), Y = "figure{background-color:#fff;border-radius:16px;display:flex;flex-direction:column;gap:8px;margin:0;padding:16px}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}", Z = /* @__PURE__ */
|
|
113
|
-
|
|
112
|
+
}), Y = "figure{background-color:#fff;border-radius:16px;display:flex;flex-direction:column;gap:8px;margin:0;padding:16px}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}", Z = /* @__PURE__ */ N(X, [["styles", [Y]]]), A = F(Z);
|
|
113
|
+
A.prototype.normalizeProps = (e) => ({
|
|
114
114
|
...e,
|
|
115
|
-
animationSpeed:
|
|
115
|
+
animationSpeed: j(e.animationSpeed),
|
|
116
116
|
messages: e.messages.map((d) => ({
|
|
117
117
|
...d,
|
|
118
|
-
image:
|
|
118
|
+
image: I(d.image)
|
|
119
119
|
}))
|
|
120
120
|
});
|
|
121
|
-
window.customElements.define("message-conversation",
|
|
121
|
+
window.customElements.define("message-conversation", A);
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { d as i, c as a, o as l, B as s, a as r, C as d, t as n, y as b, _ as p, f as h } from "../_plugin-vue_export-helper-D7ghZaw4.js";
|
|
2
|
+
const m = { class: "content" }, c = /* @__PURE__ */ i({
|
|
3
|
+
__name: "MobileShell.ce",
|
|
4
|
+
props: {
|
|
5
|
+
aspectRatio: { default: "1/2", type: null },
|
|
6
|
+
maxWidth: { default: 330, type: Number },
|
|
7
|
+
persistMobileShell: { type: Boolean, default: !1 },
|
|
8
|
+
marginTop: { default: 25, type: Number }
|
|
9
|
+
},
|
|
10
|
+
setup(e) {
|
|
11
|
+
return (o, t) => (l(), a("div", {
|
|
12
|
+
class: b(["mobile", { "hide-mobile-shell": !e.persistMobileShell }]),
|
|
13
|
+
part: "screen",
|
|
14
|
+
style: n({
|
|
15
|
+
"--aspect-ratio": e.aspectRatio,
|
|
16
|
+
"--max-width": `${e.maxWidth}px`,
|
|
17
|
+
"--margin-top": `${e.marginTop}px`
|
|
18
|
+
})
|
|
19
|
+
}, [
|
|
20
|
+
t[0] || (t[0] = s('<div class="cache-top"><div class="camera"></div></div><div class="buttons"><div class="button small"></div><div class="button long"></div><div class="button long"></div></div>', 2)),
|
|
21
|
+
r("div", m, [
|
|
22
|
+
d(o.$slots, "default")
|
|
23
|
+
])
|
|
24
|
+
], 6));
|
|
25
|
+
}
|
|
26
|
+
}), x = '*{box-sizing:border-box;margin:0;padding:0}.mobile{position:absolute;z-index:3;width:100%;left:50%;transform:translate(-50%);border-radius:30px;border:10px solid black;box-shadow:5px 5px 5px #0000004d;box-sizing:content-box;aspect-ratio:var(--aspect-ratio);max-width:var(--max-width);top:var(--margin-top)}.mobile:before{content:"";position:absolute;z-index:1;top:-1px;left:-1px;width:100%;height:100%;border-radius:20px;box-shadow:inset 2px 2px 3px #0000004d}.mobile:after{content:"";position:absolute;top:-7px;left:-5px;width:85%;height:50%;border-top-left-radius:25px;border-top:.1rem solid rgba(255,255,255,.8);border-right:2px solid transparent;filter:blur(1px)}.content{position:absolute;width:100%;height:100%;z-index:5;overflow:hidden;border-radius:20px}.mobile .cache-top{position:absolute;z-index:6;top:0;left:32.5%;width:35%;height:15px;background:#000;border-bottom-left-radius:20px;border-bottom-right-radius:20px}.mobile .cache-top .camera{position:absolute;top:40%;right:5%;width:9%;max-width:10px;aspect-ratio:1;transform:translate(-50%,-50%);border-radius:50%;background:#ffffff4d}.cache-top .camera:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:25%;height:25%;border-radius:50%;background:#fff;filter:blur(1px)}.mobile .buttons{position:absolute;top:10%;left:-12.5px;height:20%;width:5px}.mobile .button{width:5px;background:#000;margin-bottom:10px;border-radius:30%}.mobile .button.small{height:15%;margin-bottom:10px}.mobile .button.long{height:30%}@media only screen and (max-width:768px){.hide-mobile-shell:after,.hide-mobile-shell .cache-top,.hide-mobile-shell .buttons{display:none}.hide-mobile-shell{border-width:0}.hide-mobile-shell .content{border:solid 2px black}}', u = /* @__PURE__ */ p(c, [["styles", [x]]]), f = h(u);
|
|
27
|
+
window.customElements.define("mobile-shell", f);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { d as u, c as a, o as n, a as t,
|
|
2
|
-
import { a as p, i as o, b as v } from "../i18n-
|
|
1
|
+
import { d as u, c as a, o as n, a as t, A as i, F as l, b as d, x as h, _ as m, f } from "../_plugin-vue_export-helper-D7ghZaw4.js";
|
|
2
|
+
import { a as p, i as o, b as v } from "../i18n-DX3ApBSH.js";
|
|
3
3
|
import { u as y } from "../normalize-props-AlmAfi_u.js";
|
|
4
4
|
const b = {}, x = {}, S = {}, L = {
|
|
5
5
|
"pix-article": { byAuthor: "Par {{author}}" }
|
|
6
|
-
},
|
|
6
|
+
}, A = {}, j = {}, P = ["titleLevel"], E = { class: "article__metadata" }, H = { class: "article__author" }, N = ["innerHTML"], k = /* @__PURE__ */ u({
|
|
7
7
|
__name: "PixArticle.ce",
|
|
8
8
|
props: {
|
|
9
9
|
titleLevel: { default: 2, type: Number },
|
|
@@ -35,7 +35,7 @@ const b = {}, x = {}, S = {}, L = {
|
|
|
35
35
|
], 64));
|
|
36
36
|
}
|
|
37
37
|
}), w = "[data-v-30ea36f1]{--pix-neutral-800: #253858;font-family:Nunito,Roboto,sans-serif;color:var(--pix-neutral-800)}.article__title[data-v-30ea36f1]{font-size:1.3rem;font-weight:700}.article__metadata[data-v-30ea36f1]{font-style:italic}.article__author[data-v-30ea36f1]{border-right:solid 1px var(--pix-neutral-800);padding-right:.7rem;margin-right:.5rem}", B = /* @__PURE__ */ m(k, [["styles", [w]], ["__scopeId", "data-v-30ea36f1"]]);
|
|
38
|
-
p(/* @__PURE__ */ Object.assign({ "./locales/en.json": b, "./locales/es-419.json": x, "./locales/es.json": S, "./locales/fr.json": L, "./locales/it.json":
|
|
38
|
+
p(/* @__PURE__ */ Object.assign({ "./locales/en.json": b, "./locales/es-419.json": x, "./locales/es.json": S, "./locales/fr.json": L, "./locales/it.json": A, "./locales/nl.json": j })).catch((e) => console.error(e));
|
|
39
39
|
const r = f(B, {
|
|
40
40
|
configureApp(e) {
|
|
41
41
|
o.changeLanguage(document?.documentElement?.lang ?? navigator.language), e.use(v, { i18next: o });
|