@1024pix/epreuves-components 2.1.0 → 2.1.1
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 → LLMMessage.ce-DsVQstKz.js} +18 -18
- package/dist/{Loading.ce-kO02LfAR.js → Loading.ce-DoJ4rCWj.js} +1 -1
- package/dist/{NavigationButton.ce-BUeEdL4x.js → NavigationButton.ce-CtLZqKRv.js} +1 -1
- package/dist/Retry-CNZNkXbY.js +18 -0
- package/dist/{_plugin-vue_export-helper-BGEtPlxS.js → _plugin-vue_export-helper-DRMLIazq.js} +973 -963
- package/dist/components/calcul-impact.ce.js.js +2 -2
- package/dist/components/capacity-calculation.ce.js.js +113 -126
- package/dist/components/clickable-image.ce.js.js +9 -9
- package/dist/components/complete-phrase.ce.js.js +129 -66
- package/dist/components/flip-cards.ce.js.js +1 -1
- package/dist/components/image-quiz.ce.js.js +2 -2
- package/dist/components/image-quizzes.ce.js.js +2 -2
- package/dist/components/llm-compare-messages.ce.js.js +3 -3
- package/dist/components/llm-messages.ce.js.js +6 -6
- package/dist/components/llm-prompt-select.ce.js.js +6 -6
- package/dist/components/message-conversation.ce.js.js +2 -2
- package/dist/components/pix-article.ce.js.js +2 -2
- package/dist/components/pix-carousel.ce.js.js +6 -7
- package/dist/components/pix-cursor.ce.js.js +3 -3
- package/dist/components/qcm-deepfake.ce.js.js +108 -101
- package/dist/{i18n-D3E2CT0o.js → i18n-_lDmquwK.js} +12 -12
- package/dist/{image-quiz.ce-Qe3SbGDF.js → image-quiz.ce-By2A_llO.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/{shadow-dom-Bqt3ZRMI.js → shadow-dom-CAG14nqa.js} +1 -1
- package/package.json +1 -1
|
@@ -1,34 +1,83 @@
|
|
|
1
|
-
import { d as
|
|
2
|
-
import { a as
|
|
3
|
-
import { u as
|
|
4
|
-
import { L as
|
|
5
|
-
const
|
|
6
|
-
"complete-phrase": {
|
|
7
|
-
},
|
|
1
|
+
import { d as g, c as s, o as t, a, t as c, x as z, _ as y, D as S, L as M, A as R, r as b, k as w, E, F as $, b as q, e as k, y as L, f as T } from "../_plugin-vue_export-helper-DRMLIazq.js";
|
|
2
|
+
import { a as V, i as P, b as I } from "../i18n-_lDmquwK.js";
|
|
3
|
+
import { u as D } from "../normalize-props-AlmAfi_u.js";
|
|
4
|
+
import { L as B } from "../LLMMessage.ce-DsVQstKz.js";
|
|
5
|
+
const O = {}, F = {}, W = {}, H = {
|
|
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
|
+
}, Q = {}, U = {}, G = { 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 (
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
style:
|
|
14
|
+
return (d, o) => (t(), s("div", G, [
|
|
15
|
+
a("p", J, c(e.name), 1),
|
|
16
|
+
a("p", K, c(d.$t("complete-phrase.ariaLabelDescription", { name: e.name, percent: e.percent })), 1),
|
|
17
|
+
a("div", {
|
|
18
|
+
style: z(`width: ${e.percent}%`),
|
|
19
19
|
class: "probability-bar__percent",
|
|
20
20
|
"aria-hidden": "true"
|
|
21
21
|
}, null, 4),
|
|
22
|
-
o[0] || (o[0] =
|
|
22
|
+
o[0] || (o[0] = a("div", {
|
|
23
23
|
class: "probability-bar__background",
|
|
24
24
|
"aria-hidden": "true"
|
|
25
25
|
}, null, -1))
|
|
26
26
|
]));
|
|
27
27
|
}
|
|
28
|
-
}),
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
}), Y = ".probability-bar[data-v-195ffe53]{font-family:Roboto,sans-serif;padding-bottom:10px;position:relative}.probability-bar p[data-v-195ffe53]{margin:0}.probability-bar__percent[data-v-195ffe53]{position:absolute;left:0;z-index:2;height:6px;border-radius:5px;background-color:var(--pix-neutral-900)}.probability-bar__background[data-v-195ffe53]{position:absolute;left:0;z-index:1;width:100%;height:6px;border-radius:5px;background-color:var(--pix-neutral-100)}.sr-only[data-v-195ffe53]{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}", Z = /* @__PURE__ */ y(X, [["styles", [Y]], ["__scopeId", "data-v-195ffe53"]]), ee = /* @__PURE__ */ g({
|
|
29
|
+
__name: "Button.ce",
|
|
30
|
+
props: {
|
|
31
|
+
label: { type: String },
|
|
32
|
+
state: { type: String }
|
|
33
|
+
},
|
|
34
|
+
setup(e) {
|
|
35
|
+
return (d, o) => (t(), s("button", {
|
|
36
|
+
class: S(["complete-phrase_button", e.state])
|
|
37
|
+
}, [
|
|
38
|
+
M(d.$slots, "icon"),
|
|
39
|
+
R(" " + c(e.label), 1)
|
|
40
|
+
], 2));
|
|
41
|
+
}
|
|
42
|
+
}), te = ".complete-phrase_button{--pix-neutral-0: #fff;--pix-neutral-800: #253858;--pix-neutral-900: #122647;--pix-secondary-500: #ffcb33;--pix-secondary-700: #a16206}.complete-phrase_button.primary{--background-color: var(--pix-neutral-800);--background-color-hover: var(--pix-neutral-900);--color: var(--pix-neutral-0);--color-hover: var(--pix-neutral-0)}.complete-phrase_button.warning{--background-color: var(--pix-secondary-500);--background-color-hover: var(--pix-secondary-700);--color: var(--pix-neutral-900);--color-hover: var(--pix-neutral-0)}.complete-phrase_button.primary,.complete-phrase_button.warning{align-items:center;background-color:var(--background-color);border:2px solid transparent;border-radius:8px;color:var(--color);cursor:pointer;display:flex;font-family:Roboto,sans-serif;font-size:1rem;font-weight:700;justify-content:center;gap:8px;line-height:24px;margin:0 auto;outline:none;padding:8px 24px;transition:background-color ease .5s,color ease .5s;width:fit-content;white-space:nowrap}:is(.complete-phrase_button.primary,.complete-phrase_button.warning)[aria-disabled=true]{cursor:not-allowed;opacity:.5}:is(.complete-phrase_button.primary,.complete-phrase_button.warning):not([aria-disabled=true]):hover{background-color:var(--background-color-hover);color:var(--color-hover);transition:background-color ease .5s,color ease .5s}:is(.complete-phrase_button.primary,.complete-phrase_button.warning):not([aria-disabled=true]):hover svg{color:var(--color-hover);transition:color ease .5s}", ae = /* @__PURE__ */ y(ee, [["styles", [te]]]), oe = { class: "qcu" }, re = { class: "qcu__list" }, ie = ["id", "aria-label", "value", "checked", "disabled"], se = { for: "`choice${index}`" }, ne = {
|
|
43
|
+
key: 0,
|
|
44
|
+
class: "feedback"
|
|
45
|
+
}, le = /* @__PURE__ */ g({
|
|
46
|
+
__name: "QCU.ce",
|
|
47
|
+
props: {
|
|
48
|
+
list: { type: Array },
|
|
49
|
+
title: { type: String }
|
|
50
|
+
},
|
|
51
|
+
emits: ["visible"],
|
|
52
|
+
setup(e, { emit: d }) {
|
|
53
|
+
const o = d, r = b(null), m = w(() => e.list.find((n) => n.percent === 100).name), p = b(!1);
|
|
54
|
+
function u(n) {
|
|
55
|
+
r.value = n.target.value, m.value === r.value && (o("visible"), p.value = !0);
|
|
56
|
+
}
|
|
57
|
+
return (n, x) => (t(), s("div", oe, [
|
|
58
|
+
a("p", null, c(e.title), 1),
|
|
59
|
+
a("section", re, [
|
|
60
|
+
(t(!0), s($, null, q(e.list, (_, h) => (t(), s("div", {
|
|
61
|
+
class: "qcu__list-choice",
|
|
62
|
+
key: h
|
|
63
|
+
}, [
|
|
64
|
+
a("input", {
|
|
65
|
+
id: `choice${h}`,
|
|
66
|
+
type: "radio",
|
|
67
|
+
name: "qcu-choice",
|
|
68
|
+
onClick: u,
|
|
69
|
+
"aria-label": _.name,
|
|
70
|
+
value: _.name,
|
|
71
|
+
checked: r.value === _.name,
|
|
72
|
+
disabled: p.value
|
|
73
|
+
}, null, 8, ie),
|
|
74
|
+
a("label", se, c(_.name), 1)
|
|
75
|
+
]))), 128))
|
|
76
|
+
]),
|
|
77
|
+
m.value === r.value ? (t(), s("section", ne, c(n.$t("complete-phrase.feedback")), 1)) : E("", !0)
|
|
78
|
+
]));
|
|
79
|
+
}
|
|
80
|
+
}), ce = "[data-v-ddadee99]{--pix-neutral-100: #cdd1d9;--pix-neutral-900: #122647;font-family:Roboto,sans-serif;color:var(--pix-neutral-900)}.qcu[data-v-ddadee99]{align-items:center;display:flex;flex-direction:column;gap:16px}.qcu p[data-v-ddadee99]{margin:0}.qcu__list[data-v-ddadee99]{display:flex;gap:16px}.qcu__list-choice[data-v-ddadee99]{position:relative}.qcu__list-choice input[data-v-ddadee99]{appearance:none;height:100%;outline:none;position:absolute;width:100%}.qcu__list-choice input:checked+label[data-v-ddadee99]{background-color:var(--pix-info-500);color:var(--pix-neutral-0)}.qcu__list-choice input[data-v-ddadee99]:hover{cursor:pointer}.qcu__list-choice input:hover+label[data-v-ddadee99]{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-ddadee99],.qcu__list-choice input[data-v-ddadee99]:disabled:hover{cursor:not-allowed}.qcu__list-choice input:disabled:not(:checked)+label[data-v-ddadee99],.qcu__list-choice input:disabled:hover:not(:checked)+label[data-v-ddadee99]{background:var(--pix-info-50);color:var(--pix-neutral-900);cursor:not-allowed;opacity:.5;transition:none}.qcu__list-choice label[data-v-ddadee99]{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-ddadee99]{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)}", de = /* @__PURE__ */ y(le, [["styles", [ce]], ["__scopeId", "data-v-ddadee99"]]), pe = { class: "complete-phrase" }, ue = ["aria-level"], be = { class: "complete-phrase__description" }, me = { class: "complete-phrase__container" }, _e = { class: "complete-phrase-container__conversation" }, ve = { class: "complete-phrase-container__probabilities" }, he = ["id", "aria-hidden"], fe = /* @__PURE__ */ g({
|
|
32
81
|
__name: "CompletePhrase.ce",
|
|
33
82
|
props: {
|
|
34
83
|
listOfProbabilityBarsLists: { type: Array },
|
|
@@ -37,70 +86,84 @@ const T = {}, D = {}, E = {}, I = {
|
|
|
37
86
|
wordsToAdd: { type: Array },
|
|
38
87
|
titleLevel: { type: Number }
|
|
39
88
|
},
|
|
40
|
-
setup(e, { expose:
|
|
41
|
-
const o = e, r =
|
|
42
|
-
|
|
43
|
-
|
|
89
|
+
setup(e, { expose: d }) {
|
|
90
|
+
const o = e, r = b(0), m = b(o.llmMessage), p = b(!1), u = b(o.wordsToAdd), n = b(!1), x = w(() => {
|
|
91
|
+
const [i] = o.listOfProbabilityBarsLists.filter((l, v) => v === r.value);
|
|
92
|
+
return i;
|
|
93
|
+
}), _ = w(() => {
|
|
94
|
+
let [i] = u.value, l = "complete-message-word";
|
|
95
|
+
if (p.value) {
|
|
96
|
+
const [v] = x.value;
|
|
97
|
+
i = v.name, l += ` complete-message-word--${n.value ? "visible" : "hidden"}`;
|
|
98
|
+
}
|
|
99
|
+
return `<p>${m.value} <span class="${l}">${i}</span></p>`;
|
|
100
|
+
});
|
|
101
|
+
function h() {
|
|
102
|
+
p.value = !1, m.value = o.llmMessage, u.value = o.wordsToAdd, r.value = 0;
|
|
44
103
|
}
|
|
45
|
-
function
|
|
46
|
-
|
|
47
|
-
const [i, ...
|
|
48
|
-
|
|
104
|
+
function N() {
|
|
105
|
+
u.value.length === 1 && (p.value = !0), r.value += 1;
|
|
106
|
+
const [i, ...l] = u.value;
|
|
107
|
+
u.value = l, m.value += `<span class="complete-message-word">${i} </span>`;
|
|
49
108
|
}
|
|
50
|
-
return
|
|
51
|
-
reset:
|
|
52
|
-
}), (i,
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
109
|
+
return d({
|
|
110
|
+
reset: h
|
|
111
|
+
}), (i, l) => (t(), s("div", pe, [
|
|
112
|
+
a("div", {
|
|
113
|
+
class: "complete-phrase__title",
|
|
114
|
+
role: "heading",
|
|
115
|
+
"aria-level": e.titleLevel
|
|
116
|
+
}, c(i.$t("complete-phrase.title")), 9, ue),
|
|
117
|
+
a("p", be, c(i.$t("complete-phrase.description")), 1),
|
|
118
|
+
a("section", me, [
|
|
119
|
+
a("div", _e, [
|
|
120
|
+
L(B, {
|
|
56
121
|
class: "container__message",
|
|
57
122
|
message: { content: e.userMessage, direction: "outbound" }
|
|
58
123
|
}, null, 8, ["message"]),
|
|
59
|
-
|
|
124
|
+
L(B, {
|
|
60
125
|
class: "container__message",
|
|
61
|
-
message: { content:
|
|
126
|
+
message: { content: _.value, direction: "inbound" }
|
|
62
127
|
}, null, 8, ["message"])
|
|
63
128
|
]),
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
]),
|
|
71
|
-
t("div", Y, [
|
|
72
|
-
t("div", {
|
|
73
|
-
class: "container__title",
|
|
74
|
-
role: "heading",
|
|
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
|
|
129
|
+
a("div", ve, [
|
|
130
|
+
(t(!0), s($, null, q(e.listOfProbabilityBarsLists, (v, f) => (t(), s("div", {
|
|
131
|
+
class: S(["probability", { hidden: f !== r.value }]),
|
|
132
|
+
key: f,
|
|
133
|
+
id: `currentProbability${f}`,
|
|
134
|
+
"aria-hidden": f !== r.value
|
|
84
135
|
}, [
|
|
85
|
-
(
|
|
86
|
-
name:
|
|
87
|
-
percent:
|
|
88
|
-
key:
|
|
136
|
+
(t(!0), s($, null, q(v, (C, j) => (t(), k(Z, {
|
|
137
|
+
name: C.name,
|
|
138
|
+
percent: C.percent,
|
|
139
|
+
key: j
|
|
89
140
|
}, null, 8, ["name", "percent"]))), 128))
|
|
90
|
-
], 10,
|
|
141
|
+
], 10, he))), 128))
|
|
91
142
|
])
|
|
92
|
-
])
|
|
143
|
+
]),
|
|
144
|
+
p.value ? (t(), k(de, {
|
|
145
|
+
key: 1,
|
|
146
|
+
list: x.value,
|
|
147
|
+
title: i.$t("complete-phrase.successfullyCompletedSentence"),
|
|
148
|
+
onVisible: l[0] || (l[0] = (v) => n.value = !0)
|
|
149
|
+
}, null, 8, ["list", "title"])) : (t(), k(ae, {
|
|
150
|
+
key: 0,
|
|
151
|
+
onClick: N,
|
|
152
|
+
state: "primary",
|
|
153
|
+
label: i.$t("complete-phrase.clickHereButton"),
|
|
154
|
+
"aria-describedby": `currentProbability${r.value}`
|
|
155
|
+
}, null, 8, ["label", "aria-describedby"]))
|
|
93
156
|
]));
|
|
94
157
|
}
|
|
95
|
-
}),
|
|
96
|
-
|
|
97
|
-
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(fe, [["styles", [ge]], ["__scopeId", "data-v-be9b10f3"]]);
|
|
159
|
+
V(/* @__PURE__ */ Object.assign({ "./locales/en.json": O, "./locales/es-419.json": F, "./locales/es.json": W, "./locales/fr.json": H, "./locales/it.json": Q, "./locales/nl.json": U })).catch((e) => console.error(e));
|
|
160
|
+
const A = T(ye, {
|
|
98
161
|
configureApp(e) {
|
|
99
|
-
|
|
162
|
+
P.changeLanguage(document?.documentElement?.lang || navigator.language), e.use(I, { i18next: P });
|
|
100
163
|
}
|
|
101
164
|
});
|
|
102
|
-
|
|
165
|
+
A.prototype.normalizeProps = (e) => ({
|
|
103
166
|
...e,
|
|
104
|
-
titleLevel:
|
|
167
|
+
titleLevel: D(e.titleLevel)
|
|
105
168
|
});
|
|
106
|
-
window.customElements.define("complete-phrase",
|
|
169
|
+
window.customElements.define("complete-phrase", A);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as m, c as n, o as d, F as u,
|
|
1
|
+
import { d as m, c as n, o as d, F as u, a as t, D as v, G as p, t as f, E as y, _ as h, r as w, b as k, H as g, y as F, f as _ } from "../_plugin-vue_export-helper-DRMLIazq.js";
|
|
2
2
|
import { u as L } from "../normalize-props-AlmAfi_u.js";
|
|
3
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({
|
|
4
4
|
__name: "FlipCard.ce",
|
|
@@ -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-DRMLIazq.js";
|
|
2
|
+
import { n as p } from "../image-quiz.ce-By2A_llO.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,
|
|
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-DRMLIazq.js";
|
|
2
|
+
import { I as A, n as I } from "../image-quiz.ce-By2A_llO.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,
|
|
2
|
-
import { L as l } from "../LLMMessage.ce-
|
|
3
|
-
import { p as u } from "../shadow-dom-
|
|
1
|
+
import { d as c, c as t, o as s, a as e, t as n, F as r, b as m, y as i, _ as p, f as g } from "../_plugin-vue_export-helper-DRMLIazq.js";
|
|
2
|
+
import { L as l } from "../LLMMessage.ce-DsVQstKz.js";
|
|
3
|
+
import { p as u } from "../shadow-dom-CAG14nqa.js";
|
|
4
4
|
const f = {
|
|
5
5
|
class: "header",
|
|
6
6
|
"aria-hidden": "true"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { d as c, B as m, C as i, c as t, o as e, F as p,
|
|
2
|
-
import { L as h } from "../LLMMessage.ce-
|
|
3
|
-
import { p as _ } from "../shadow-dom-
|
|
1
|
+
import { d as c, B as m, C 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-DRMLIazq.js";
|
|
2
|
+
import { L as h } from "../LLMMessage.ce-DsVQstKz.js";
|
|
3
|
+
import { p as _ } from "../shadow-dom-CAG14nqa.js";
|
|
4
4
|
const x = {
|
|
5
5
|
class: "llm-messages",
|
|
6
6
|
"aria-live": "polite"
|
|
@@ -19,11 +19,11 @@ const x = {
|
|
|
19
19
|
return i(async () => {
|
|
20
20
|
a.messages, r();
|
|
21
21
|
}), (L, w) => (e(), t("div", x, [
|
|
22
|
-
(e(!0), t(p, null, d(s.messages, (l, n) => (e(),
|
|
22
|
+
(e(!0), t(p, null, d(s.messages, (l, n) => (e(), f(h, {
|
|
23
23
|
key: n,
|
|
24
24
|
message: l
|
|
25
25
|
}, null, 8, ["message"]))), 128))
|
|
26
26
|
]));
|
|
27
27
|
}
|
|
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__ */
|
|
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__ */ g(b, [["styles", [v]]]);
|
|
29
|
+
window.customElements.define("llm-messages", u(y));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as y, r as c, z as h, c as d, o as m, y as w,
|
|
1
|
+
import { d as y, r as c, z as h, c as d, o as m, y as w, a, A as k, F as b, b as L, t as S, _ as C, f as P } from "../_plugin-vue_export-helper-DRMLIazq.js";
|
|
2
2
|
import { u as N } from "../normalize-props-AlmAfi_u.js";
|
|
3
3
|
import "./llm-messages.ce.js.js";
|
|
4
4
|
const M = { class: "prompt-select" }, z = { class: "prompt-select__options" }, A = ["disabled", "onClick"], B = /* @__PURE__ */ y({
|
|
@@ -46,7 +46,7 @@ const M = { class: "prompt-select" }, z = { class: "prompt-select__options" }, A
|
|
|
46
46
|
}
|
|
47
47
|
return (e, t) => {
|
|
48
48
|
const p = h("llm-messages");
|
|
49
|
-
return m(), d(
|
|
49
|
+
return m(), d(b, null, [
|
|
50
50
|
w(p, { messages: s.value }, null, 8, ["messages"]),
|
|
51
51
|
a("div", M, [
|
|
52
52
|
t[0] || (t[0] = a("p", { class: "prompt-select__label" }, [
|
|
@@ -54,7 +54,7 @@ const M = { class: "prompt-select" }, z = { class: "prompt-select__options" }, A
|
|
|
54
54
|
a("span", { class: "sr-only" }, " une fois sélectionnés, les prompts ne sont plus disponibles. ")
|
|
55
55
|
], -1)),
|
|
56
56
|
a("div", z, [
|
|
57
|
-
(m(!0), d(
|
|
57
|
+
(m(!0), d(b, null, L(u.value, (n, i) => (m(), d("button", {
|
|
58
58
|
key: i,
|
|
59
59
|
disabled: n.disabled || l.value,
|
|
60
60
|
onClick: (f) => v(n)
|
|
@@ -64,9 +64,9 @@ const M = { class: "prompt-select" }, z = { class: "prompt-select__options" }, A
|
|
|
64
64
|
], 64);
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
|
-
}), E = ".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}", V = /* @__PURE__ */ C(B, [["styles", [E]]]),
|
|
68
|
-
|
|
67
|
+
}), E = ".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}", V = /* @__PURE__ */ C(B, [["styles", [E]]]), _ = P(V);
|
|
68
|
+
_.prototype.normalizeProps = (r) => ({
|
|
69
69
|
...r,
|
|
70
70
|
speed: N(r.speed)
|
|
71
71
|
});
|
|
72
|
-
window.customElements.define("llm-prompt-select",
|
|
72
|
+
window.customElements.define("llm-prompt-select", _);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as S, r as x, k as D, h as E, c as n, o as s, D as k, E as g,
|
|
2
|
-
import { L as I } from "../Loading.ce-
|
|
1
|
+
import { d as S, r as x, k as D, h as E, c as n, o as s, D as k, E as g, a as _, A as w, t as v, y as B, I 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-DRMLIazq.js";
|
|
2
|
+
import { L as I } from "../Loading.ce-DoJ4rCWj.js";
|
|
3
3
|
import { u as L, a as j } from "../normalize-props-AlmAfi_u.js";
|
|
4
4
|
const O = ["part"], R = {
|
|
5
5
|
key: 1,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as u, c as a, o as n,
|
|
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, t as i, F as l, b as d, G as h, _ as m, f } from "../_plugin-vue_export-helper-DRMLIazq.js";
|
|
2
|
+
import { a as p, i as o, b as v } from "../i18n-_lDmquwK.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}}" }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { d as S, c as n, o as t, D as M,
|
|
2
|
-
import { a as G, i as B, b as O } from "../i18n-
|
|
3
|
-
import { B as j, N as D } from "../NavigationButton.ce-
|
|
1
|
+
import { d as S, c as n, o as t, D as M, a as s, E as L, L as R, A as z, t as g, G as l, _ as h, r as $, K as V, k as w, y as m, x as k, J as P, M as _, F as A, b as N, e as T, f as F } from "../_plugin-vue_export-helper-DRMLIazq.js";
|
|
2
|
+
import { a as G, i as B, b as O } from "../i18n-_lDmquwK.js";
|
|
3
|
+
import { B as j, N as D } from "../NavigationButton.ce-CtLZqKRv.js";
|
|
4
4
|
import { u as C, a as W } from "../normalize-props-AlmAfi_u.js";
|
|
5
5
|
const Z = {
|
|
6
6
|
"pix-carousel": { license: "Image license", next: "Next", of: "{{ currentSlide }} of {{ slideLength }}", previous: "Previous", slide: "Slide", title: "Carousel" }
|
|
@@ -56,7 +56,7 @@ const U = ["aria-level"], X = ["innerHTML"], ee = {
|
|
|
56
56
|
}, le = ["alt", "src"], se = {
|
|
57
57
|
key: 0,
|
|
58
58
|
class: "license"
|
|
59
|
-
}, oe = ["href"], re = { class: "img-container" }, de = ["alt", "src"
|
|
59
|
+
}, oe = ["href"], re = { class: "img-container" }, de = ["alt", "src"], ce = ["innerHTML"], ue = {
|
|
60
60
|
key: 1,
|
|
61
61
|
class: "text-container"
|
|
62
62
|
}, pe = ["innerHTML"], me = /* @__PURE__ */ S({
|
|
@@ -109,8 +109,7 @@ const U = ["aria-level"], X = ["innerHTML"], ee = {
|
|
|
109
109
|
s("div", re, [
|
|
110
110
|
s("img", {
|
|
111
111
|
alt: e.slide.image.alt,
|
|
112
|
-
src: e.slide.image.src
|
|
113
|
-
height: e.slide.displayHeight
|
|
112
|
+
src: e.slide.image.src
|
|
114
113
|
}, null, 8, de)
|
|
115
114
|
]),
|
|
116
115
|
l(E)(e.slide.text) ? (t(), n("div", {
|
|
@@ -132,7 +131,7 @@ const U = ["aria-level"], X = ["innerHTML"], ee = {
|
|
|
132
131
|
}, null, 8, ["description", "title", "is-active", "title-level"])
|
|
133
132
|
], 10, ne));
|
|
134
133
|
}
|
|
135
|
-
}), ge = ".slide{transition:transform ease-in-out .8s;height:100%}.slide.off,.slide.initStart{transition:none;transform:translate(100vw)}.slide.initStart.is-next,.slide.initEnd{transform:translate(-100vw)}.slide.initEnd.is-next{transform:translate(100vw)}.slide.on{transform:translate(0)}.slide.disable-animation{transition:none}.image-container{position:relative;display:flex;justify-content:center;align-items:center;margin:auto;max-width:890px;border-radius:8px}.image-container--is-not-image{justify-content:left}.image-container img{height:100%;width:100%;object-fit:contain;filter:drop-shadow(0px 8px 12px rgba(0,0,0,.2));border-radius:16px}.license{position:absolute;font-size:.8rem;bottom:0;margin:0;padding:2px 8px;max-width:50%;border-top-left-radius:8px;border-top-right-radius:8px;text-align:center;background:#ffffffe6}.text-container{margin:auto;width:fit-content}.text-image-container{display:flex;gap:12px;padding:16px;filter:drop-shadow(0px 8px 12px rgba(0,0,0,.2));border-radius:16px;background:#fff}.text-image-container .img-container{width:calc(var(--image-display) / (var(--image-display) + var(--text-display)) * 100%);display:flex;justify-content:center;align-items:center}.text-image-container .img-container img{max-width:100%;width:auto;height:auto}.text-image-container .text-container{width:calc(var(--text-display) / (var(--image-display) + var(--text-display)) * 100%)}.text-image-container .text-container>*{margin:0}@media only screen and (max-width:576px){.license{font-size:.5rem}.image-container img{border-radius:8px;width:95%}.text-image-container{flex-direction:column}.text-image-container .img-container,.text-image-container .text-container{width:100%}}@media(prefers-reduced-motion:reduce){.slide{transition:none}}", fe = /* @__PURE__ */ h(me, [["styles", [ge]]]), ve = {}, xe = {
|
|
134
|
+
}), ge = ".slide{transition:transform ease-in-out .8s;height:100%}.slide.off,.slide.initStart{transition:none;transform:translate(100vw)}.slide.initStart.is-next,.slide.initEnd{transform:translate(-100vw)}.slide.initEnd.is-next{transform:translate(100vw)}.slide.on{transform:translate(0)}.slide.disable-animation{transition:none}.image-container{position:relative;display:flex;justify-content:center;align-items:center;margin:auto;max-width:890px;border-radius:8px}.image-container--is-not-image{justify-content:left}.image-container img{height:100%;width:100%;object-fit:contain;filter:drop-shadow(0px 8px 12px rgba(0,0,0,.2));border-radius:16px}.license{position:absolute;font-size:.8rem;bottom:0;margin:0;padding:2px 8px;max-width:50%;border-top-left-radius:8px;border-top-right-radius:8px;text-align:center;background:#ffffffe6}.text-container{margin:auto;width:fit-content}.text-image-container{display:flex;flex:1;gap:12px;padding:16px;filter:drop-shadow(0px 8px 12px rgba(0,0,0,.2));border-radius:16px;background:#fff}.text-image-container .img-container{width:calc(var(--image-display) / (var(--image-display) + var(--text-display)) * 100%);display:flex;justify-content:center;align-items:center}.text-image-container .img-container img{max-width:100%;width:auto;height:auto}.text-image-container .text-container{width:calc(var(--text-display) / (var(--image-display) + var(--text-display)) * 100%)}.text-image-container .text-container>*{margin:0}@media only screen and (max-width:576px){.license{font-size:.5rem}.image-container img{border-radius:8px;width:95%}.text-image-container{flex-direction:column}.text-image-container .img-container,.text-image-container .text-container{width:100%}}@media(prefers-reduced-motion:reduce){.slide{transition:none}}", fe = /* @__PURE__ */ h(me, [["styles", [ge]]]), ve = {}, xe = {
|
|
136
135
|
width: "25",
|
|
137
136
|
height: "24",
|
|
138
137
|
viewBox: "0 0 25 24",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { d as S, r as k, J as y, k as m, z as A, c as a, o as i,
|
|
2
|
-
import { a as q, i as w, b as J } from "../i18n-
|
|
3
|
-
import { N as j } from "../NavigationButton.ce-
|
|
1
|
+
import { d as S, r as k, J as y, k as m, z as A, c as a, o as i, a as s, l as B, G as d, 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, f as G } from "../_plugin-vue_export-helper-DRMLIazq.js";
|
|
2
|
+
import { a as q, i as w, b as J } from "../i18n-_lDmquwK.js";
|
|
3
|
+
import { N as j } from "../NavigationButton.ce-CtLZqKRv.js";
|
|
4
4
|
const R = {}, U = {}, K = {}, Q = {
|
|
5
5
|
"pix-cursor": { confirm: "Valider", next: "Suivant", previous: "Précédent", selectAnOption: "Sélectionnez une option", youHaveChosen: "Vous avez choisi : { choice }" }
|
|
6
6
|
}, W = {}, X = {}, Y = ["for"], Z = {
|