@1024pix/epreuves-components 2.0.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 +140 -130
- 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/schema.js +5 -5
- package/dist/{shadow-dom-Bqt3ZRMI.js → shadow-dom-CAG14nqa.js} +1 -1
- package/package.json +1 -1
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { d as y, k as b, c as
|
|
2
|
-
import { i as a, a as
|
|
1
|
+
import { d as y, k as b, c as i, o, a as s, E as v, t as c, D as w, _, O as A, P as E, r as x, l as O, A as V, Q as G, L as M, g as P, F as $, b as C, e as Q, G as F, y as k, R as U, M as W, q as H, f as J } from "../_plugin-vue_export-helper-DRMLIazq.js";
|
|
2
|
+
import { i as a, a as K, b as X } from "../i18n-_lDmquwK.js";
|
|
3
|
+
import { R as Y } from "../Retry-CNZNkXbY.js";
|
|
3
4
|
import { u as Z } from "../normalize-props-AlmAfi_u.js";
|
|
4
|
-
const
|
|
5
|
+
const ee = {}, te = {}, ae = {}, ne = {
|
|
5
6
|
"qcm-deepfake": { options: ["une photo de sa chanteuse préférée", "une chanson de sa chanteuse préférée", "les partitions de la chanson", "une photo de Caroline", "un enregistrement de Caroline qui dit quelques phrases"], iaResultInfo: "Retrouvez ici les résultats du logiciel d'IA générative :", iaResultGenerated: "Résultat généré par le logiciel d'IA générative", in: "Entrée", out: "Sortie", waiting: "Logiciel d'IA générative", selectThreeElements: "Sélectionnez 3 éléments pour générer la vidéo de Caroline :", generateVideo: "Générer la vidéo !", loading: "Chargement…", restart: "Recommencer", element_one: "élément", element_other: "éléments", generateVideoInfo_one: "Plus que {{count}} élément", generateVideoInfo_other: "Plus que {{count}} éléments", restartInfo: "Essayez avec de nouveaux éléments", success: { title: "Bien joué !", description: "C'est bien la vidéo de Caroline. Vous avez utilisé les bons éléments." }, fail: { title: "Pas exactement…", description: "Le résultat ne convient pas. Recommencez en changeant les éléments en entrée." } }
|
|
6
|
-
},
|
|
7
|
+
}, oe = {}, ie = {}, re = ["aria-hidden"], se = ["aria-level"], le = ["src"], de = {
|
|
7
8
|
key: 1,
|
|
8
9
|
class: "description"
|
|
9
|
-
},
|
|
10
|
+
}, ce = ["src"], ue = ["aria-level"], fe = /* @__PURE__ */ y({
|
|
10
11
|
__name: "NarrativeAnswer.ce",
|
|
11
12
|
props: {
|
|
12
13
|
messageTitle: { type: String },
|
|
@@ -18,43 +19,43 @@ const J = {}, K = {}, X = {}, Y = {
|
|
|
18
19
|
type: { type: String }
|
|
19
20
|
},
|
|
20
21
|
setup(e) {
|
|
21
|
-
const
|
|
22
|
-
return (
|
|
22
|
+
const u = e, n = b(() => u.type === "success" || u.type === "fail" ? a.t("qcm-deepfake.out") : a.t("qcm-deepfake.waiting"));
|
|
23
|
+
return (l, t) => (o(), i("div", {
|
|
23
24
|
class: "right-container",
|
|
24
25
|
"aria-hidden": e.type !== e.stateAnswer
|
|
25
26
|
}, [
|
|
26
|
-
|
|
27
|
+
s("div", {
|
|
27
28
|
class: "subtitle",
|
|
28
29
|
role: "heading",
|
|
29
30
|
"aria-level": e.titleLevel
|
|
30
|
-
}, c(
|
|
31
|
-
e.type === "search" ? (
|
|
31
|
+
}, c(n.value), 9, se),
|
|
32
|
+
e.type === "search" ? (o(), i("img", {
|
|
32
33
|
key: 0,
|
|
33
34
|
src: e.image,
|
|
34
35
|
alt: ""
|
|
35
|
-
}, null, 8,
|
|
36
|
-
e.type === "success" || e.type === "fail" ? (
|
|
37
|
-
e.type !== "search" ? (
|
|
36
|
+
}, null, 8, le)) : v("", !0),
|
|
37
|
+
e.type === "success" || e.type === "fail" ? (o(), i("p", de, c(e.title), 1)) : v("", !0),
|
|
38
|
+
e.type !== "search" ? (o(), i("img", {
|
|
38
39
|
key: 2,
|
|
39
40
|
src: e.image,
|
|
40
41
|
alt: ""
|
|
41
|
-
}, null, 8,
|
|
42
|
-
e.messageTitle ? (
|
|
42
|
+
}, null, 8, ce)) : v("", !0),
|
|
43
|
+
e.messageTitle ? (o(), i("div", {
|
|
43
44
|
key: 3,
|
|
44
|
-
class:
|
|
45
|
+
class: w(["answer-block", e.stateAnswer])
|
|
45
46
|
}, [
|
|
46
|
-
|
|
47
|
+
s("div", {
|
|
47
48
|
class: "answer-block__title",
|
|
48
49
|
role: "heading",
|
|
49
50
|
"aria-level": e.titleLevel + 1
|
|
50
|
-
}, c(e.messageTitle), 9,
|
|
51
|
-
|
|
52
|
-
], 2)) :
|
|
53
|
-
], 8,
|
|
51
|
+
}, c(e.messageTitle), 9, ue),
|
|
52
|
+
s("p", null, c(e.messageDescription), 1)
|
|
53
|
+
], 2)) : v("", !0)
|
|
54
|
+
], 8, re));
|
|
54
55
|
}
|
|
55
|
-
}),
|
|
56
|
+
}), ge = ".right-container[data-v-2a82aa38]{grid-row:1/1;grid-column:1/1}.right-container[aria-hidden=true][data-v-2a82aa38]{visibility:hidden}img[data-v-2a82aa38]{margin-block:.5rem}.subtitle[data-v-2a82aa38]{font-size:1.25rem;font-weight:700;text-align:center}.description[data-v-2a82aa38]{font-weight:700;margin-top:0;margin-bottom:0}img[data-v-2a82aa38]{width:200px;height:auto}.answer-block[data-v-2a82aa38]{background:#e8e8e8;margin-inline:1rem;padding:.5rem;border-radius:10px}.answer-block p[data-v-2a82aa38]{margin-bottom:0}.answer-block.success[data-v-2a82aa38]{background:#e8f3ef}.answer-block.fail[data-v-2a82aa38]{border-radius:16px;background:#fbecec}", pe = /* @__PURE__ */ _(fe, [["styles", [ge]], ["__scopeId", "data-v-2a82aa38"]]), me = ["aria-disabled"], ve = /* @__PURE__ */ y({
|
|
56
57
|
__name: "Option.ce",
|
|
57
|
-
props: /* @__PURE__ */
|
|
58
|
+
props: /* @__PURE__ */ A({
|
|
58
59
|
option: { type: String },
|
|
59
60
|
value: { type: Number },
|
|
60
61
|
readonly: { type: Boolean }
|
|
@@ -63,49 +64,55 @@ const J = {}, K = {}, X = {}, Y = {
|
|
|
63
64
|
modelModifiers: {}
|
|
64
65
|
}),
|
|
65
66
|
emits: ["update:modelValue"],
|
|
66
|
-
setup(e, { expose:
|
|
67
|
-
const
|
|
68
|
-
function h(
|
|
67
|
+
setup(e, { expose: u }) {
|
|
68
|
+
const n = E(e, "modelValue"), l = x(!1), t = b(() => n.value.length === 3 && !l.value || e.readonly);
|
|
69
|
+
function h(p) {
|
|
69
70
|
if (t.value) {
|
|
70
|
-
|
|
71
|
+
p.preventDefault();
|
|
71
72
|
return;
|
|
72
73
|
}
|
|
73
|
-
|
|
74
|
+
p.target.checked ? n.value.push(e.option) : n.value = n.value.filter((g) => g !== e.option);
|
|
74
75
|
}
|
|
75
|
-
return
|
|
76
|
-
isChecked:
|
|
77
|
-
}), (
|
|
78
|
-
class:
|
|
76
|
+
return u({
|
|
77
|
+
isChecked: l
|
|
78
|
+
}), (p, m) => (o(), i("label", {
|
|
79
|
+
class: w({ selected: l.value, disabled: t.value })
|
|
79
80
|
}, [
|
|
80
|
-
|
|
81
|
+
O(s("input", {
|
|
81
82
|
type: "checkbox",
|
|
82
83
|
name: "options",
|
|
83
84
|
onClick: h,
|
|
84
85
|
"aria-disabled": t.value,
|
|
85
|
-
"onUpdate:modelValue":
|
|
86
|
-
}, null, 8,
|
|
87
|
-
[
|
|
86
|
+
"onUpdate:modelValue": m[0] || (m[0] = (g) => l.value = g)
|
|
87
|
+
}, null, 8, me), [
|
|
88
|
+
[G, l.value]
|
|
88
89
|
]),
|
|
89
90
|
V(c(e.option), 1)
|
|
90
91
|
], 2));
|
|
91
92
|
}
|
|
92
|
-
}),
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
93
|
+
}), be = ".selected[data-v-a067b43a]{background:#f7f5ff}.disabled[data-v-a067b43a]{cursor:not-allowed;background:#efefef}.disabled.selected[data-v-a067b43a]{background:#d6d5dd}", he = /* @__PURE__ */ _(ve, [["styles", [be]], ["__scopeId", "data-v-a067b43a"]]), ye = /* @__PURE__ */ y({
|
|
94
|
+
__name: "Button.ce",
|
|
95
|
+
props: {
|
|
96
|
+
label: { type: String },
|
|
97
|
+
state: { type: String }
|
|
98
|
+
},
|
|
99
|
+
setup(e) {
|
|
100
|
+
return (u, n) => (o(), i("button", {
|
|
101
|
+
class: w(["epreuve-button", e.state])
|
|
102
|
+
}, [
|
|
103
|
+
M(u.$slots, "icon"),
|
|
104
|
+
V(" " + c(e.label), 1)
|
|
105
|
+
], 2));
|
|
106
|
+
}
|
|
107
|
+
}), _e = ".epreuve-button{--pix-neutral-0: #fff;--pix-neutral-800: #253858;--pix-neutral-900: #122647;--pix-secondary-500: #ffcb33;--pix-secondary-700: #a16206}.epreuve-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)}.epreuve-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)}.epreuve-button.primary,.epreuve-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(.epreuve-button.primary,.epreuve-button.warning)[aria-disabled=true]{cursor:not-allowed;opacity:.5}:is(.epreuve-button.primary,.epreuve-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(.epreuve-button.primary,.epreuve-button.warning):not([aria-disabled=true]):hover svg{color:var(--color-hover);transition:color ease .5s}:is(.epreuve-button.primary,.epreuve-button.warning):focus,:is(.epreuve-button.primary,.epreuve-button.warning):focus-visible{background-color:var(--background-color-hover);color:var(--color-hover);outline:1px solid var(--pix-neutral-0);outline-offset:-5px}", ke = /* @__PURE__ */ _(ye, [["styles", [_e]]]), xe = { class: "container" }, we = { class: "left-side" }, qe = ["aria-level"], Ie = { class: "left-side__description" }, Se = { class: "left-side__action" }, $e = {
|
|
101
108
|
key: 0,
|
|
102
109
|
id: "optionsSelectedInfo",
|
|
103
110
|
class: "left-side__lower-legend",
|
|
104
111
|
"aria-hidden": "true"
|
|
105
|
-
},
|
|
112
|
+
}, Ce = {
|
|
106
113
|
class: "right-side",
|
|
107
114
|
"aria-live": "polite"
|
|
108
|
-
},
|
|
115
|
+
}, Ve = /* @__PURE__ */ y({
|
|
109
116
|
__name: "QcmDeepfake.ce",
|
|
110
117
|
props: {
|
|
111
118
|
titleLevel: { default: 2, type: Number },
|
|
@@ -115,8 +122,8 @@ const J = {}, K = {}, X = {}, Y = {
|
|
|
115
122
|
searchImage: { type: String },
|
|
116
123
|
searchDelay: { default: 3e3, type: Number }
|
|
117
124
|
},
|
|
118
|
-
setup(e, { expose:
|
|
119
|
-
const
|
|
125
|
+
setup(e, { expose: u }) {
|
|
126
|
+
const n = x([]), l = [2, 4, 5], t = x("info"), h = P("optionsNode"), p = a.t("qcm-deepfake.options", { returnObjects: !0 }), m = ["👩🎤", "🎧", "🎶", "👩", "🎙️"], g = p.map((d, r) => `${m[r]} ${d}`), D = g.filter((d, r) => l.includes(r + 1)), L = [
|
|
120
127
|
{
|
|
121
128
|
type: "info",
|
|
122
129
|
image: e.infoImage
|
|
@@ -139,85 +146,85 @@ const J = {}, K = {}, X = {}, Y = {
|
|
|
139
146
|
type: "search",
|
|
140
147
|
image: e.searchImage
|
|
141
148
|
}
|
|
142
|
-
],
|
|
143
|
-
function
|
|
144
|
-
|
|
145
|
-
return t.value === "info" ? B() : x();
|
|
149
|
+
], q = b(() => n.value.length !== 3 || t.value === "search"), T = b(() => t.value === "search" ? a.t("qcm-deepfake.loading") : t.value === "info" ? a.t("qcm-deepfake.generateVideo") : a.t("qcm-deepfake.restart")), z = b(() => t.value === "info" ? a.t("qcm-deepfake.generateVideoInfo", { count: l.length - n.value.length }) : t.value === "fail" ? a.t("qcm-deepfake.restartInfo") : "");
|
|
150
|
+
function B() {
|
|
151
|
+
return q.value ? !1 : t.value === "info" ? R() : I();
|
|
146
152
|
}
|
|
147
|
-
function
|
|
153
|
+
function I() {
|
|
148
154
|
h.value.forEach((d) => {
|
|
149
155
|
d.isChecked = !1;
|
|
150
|
-
}),
|
|
156
|
+
}), n.value = [], t.value = "info";
|
|
151
157
|
}
|
|
152
|
-
async function
|
|
153
|
-
const d =
|
|
154
|
-
t.value = "search", await new Promise((
|
|
158
|
+
async function R() {
|
|
159
|
+
const d = n.value.every((r) => D.includes(r.trim()));
|
|
160
|
+
t.value = "search", await new Promise((r) => setTimeout(r, e.searchDelay)), d ? t.value = "success" : t.value = "fail";
|
|
155
161
|
}
|
|
156
|
-
return
|
|
157
|
-
reset:
|
|
158
|
-
}), (d,
|
|
159
|
-
|
|
160
|
-
|
|
162
|
+
return u({
|
|
163
|
+
reset: I
|
|
164
|
+
}), (d, r) => (o(), i("div", xe, [
|
|
165
|
+
s("form", we, [
|
|
166
|
+
s("div", {
|
|
161
167
|
class: "left-side__subtitle",
|
|
162
168
|
role: "heading",
|
|
163
169
|
"aria-level": e.titleLevel
|
|
164
|
-
}, c(d.$t("qcm-deepfake.in")), 9,
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
(
|
|
170
|
+
}, c(d.$t("qcm-deepfake.in")), 9, qe),
|
|
171
|
+
s("fieldset", null, [
|
|
172
|
+
s("legend", Ie, c(d.$t("qcm-deepfake.selectThreeElements")), 1),
|
|
173
|
+
(o(!0), i($, null, C(F(g), (f, S) => (o(), Q(he, {
|
|
168
174
|
ref_for: !0,
|
|
169
175
|
ref_key: "optionsNode",
|
|
170
176
|
ref: h,
|
|
171
|
-
modelValue:
|
|
172
|
-
"onUpdate:modelValue":
|
|
173
|
-
key:
|
|
177
|
+
modelValue: n.value,
|
|
178
|
+
"onUpdate:modelValue": r[0] || (r[0] = (j) => n.value = j),
|
|
179
|
+
key: S,
|
|
174
180
|
class: "left-side__options",
|
|
175
|
-
option:
|
|
176
|
-
value:
|
|
181
|
+
option: f,
|
|
182
|
+
value: S + 1,
|
|
177
183
|
readonly: t.value !== "info"
|
|
178
184
|
}, null, 8, ["modelValue", "option", "value", "readonly"]))), 128))
|
|
179
185
|
]),
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
onClick:
|
|
183
|
-
|
|
184
|
-
|
|
186
|
+
s("div", Se, [
|
|
187
|
+
k(ke, {
|
|
188
|
+
onClick: H(B, ["prevent"]),
|
|
189
|
+
"aria-disabled": q.value,
|
|
190
|
+
label: T.value,
|
|
191
|
+
state: t.value === "info" ? "primary" : "warning",
|
|
185
192
|
"aria-describedby": ["success", "search"].includes(t.value) ? void 0 : "optionsSelectedInfo"
|
|
186
|
-
}, [
|
|
187
|
-
t.value === "success" || t.value === "fail" ?
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
],
|
|
195
|
-
["success", "search"].includes(t.value) ?
|
|
193
|
+
}, U({ _: 2 }, [
|
|
194
|
+
t.value === "success" || t.value === "fail" ? {
|
|
195
|
+
name: "icon",
|
|
196
|
+
fn: W(() => [
|
|
197
|
+
k(Y)
|
|
198
|
+
]),
|
|
199
|
+
key: "0"
|
|
200
|
+
} : void 0
|
|
201
|
+
]), 1032, ["aria-disabled", "label", "state", "aria-describedby"]),
|
|
202
|
+
["success", "search"].includes(t.value) ? v("", !0) : (o(), i("p", $e, c(z.value), 1))
|
|
196
203
|
])
|
|
197
204
|
]),
|
|
198
|
-
|
|
199
|
-
(
|
|
200
|
-
key:
|
|
205
|
+
s("div", Ce, [
|
|
206
|
+
(o(), i($, null, C(L, (f) => k(pe, {
|
|
207
|
+
key: f,
|
|
201
208
|
"title-level": e.titleLevel,
|
|
202
|
-
type:
|
|
203
|
-
image:
|
|
204
|
-
title:
|
|
205
|
-
"message-title":
|
|
206
|
-
"message-description":
|
|
209
|
+
type: f.type,
|
|
210
|
+
image: f.image,
|
|
211
|
+
title: f.title,
|
|
212
|
+
"message-title": f.messageTitle,
|
|
213
|
+
"message-description": f.messageDescription,
|
|
207
214
|
"state-answer": t.value
|
|
208
215
|
}, null, 8, ["title-level", "type", "image", "title", "message-title", "message-description", "state-answer"])), 64))
|
|
209
216
|
])
|
|
210
217
|
]));
|
|
211
218
|
}
|
|
212
|
-
}),
|
|
213
|
-
|
|
214
|
-
const
|
|
219
|
+
}), Ne = "legend,label,p,div[role=heading]{font-family:Nunito,Roboto,sans-serif;color:#253858}", De = ".container[data-v-66f8d52f]{display:flex;gap:.8rem}.title[data-v-66f8d52f]{font-size:1.75rem;font-weight:700;text-align:center;margin-bottom:16px}.left-side[data-v-66f8d52f]{min-width:60%;border:solid 1px #b0d3f4;background:#fff;padding:.8rem;border-radius:10px}.left-side__lower-legend[data-v-66f8d52f]{font-size:.875rem;color:#5e6c84}.left-side__subtitle[data-v-66f8d52f]{font-size:1.25rem;font-weight:700;text-align:center}.left-side__options[data-v-66f8d52f]{display:flex;border:solid 1px #5e6c84;padding:.6rem;border-radius:5px;gap:.5rem}.left-side__description[data-v-66f8d52f]{font-weight:700}.left-side__button[data-v-66f8d52f]{display:flex;gap:.5rem;align-items:center;border:none;padding:.6rem 1.5rem;background:#ffcb33;color:#000;border-radius:25px;font-weight:700;cursor:pointer}.left-side__button.generate[data-v-66f8d52f]{background:#613fdd;color:#fff}.left-side__button[aria-disabled=true][data-v-66f8d52f]{cursor:not-allowed;background:#d3d3d3}.left-side__action[data-v-66f8d52f]{display:flex;flex-direction:column;align-items:center;text-align:center}.right-side[data-v-66f8d52f]{display:grid;border:solid 1px #b0d3f4;background:#fff;padding:.8rem;text-align:center;border-radius:10px}fieldset[data-v-66f8d52f]{border:none;display:flex;flex-direction:column;gap:.8rem}@media(max-width:770px){.container[data-v-66f8d52f]{flex-wrap:wrap}.left-side[data-v-66f8d52f],.right-side[data-v-66f8d52f]{width:100%}}", Le = /* @__PURE__ */ _(Ve, [["styles", [Ne, De]], ["__scopeId", "data-v-66f8d52f"]]);
|
|
220
|
+
K(/* @__PURE__ */ Object.assign({ "./locales/en.json": ee, "./locales/es-419.json": te, "./locales/es.json": ae, "./locales/fr.json": ne, "./locales/it.json": oe, "./locales/nl.json": ie })).catch((e) => console.error(e));
|
|
221
|
+
const N = J(Le, {
|
|
215
222
|
configureApp(e) {
|
|
216
|
-
a.changeLanguage(document?.documentElement?.lang || navigator.language), e.use(
|
|
223
|
+
a.changeLanguage(document?.documentElement?.lang || navigator.language), e.use(X, { i18next: a });
|
|
217
224
|
}
|
|
218
225
|
});
|
|
219
|
-
|
|
226
|
+
N.prototype.normalizeProps = (e) => ({
|
|
220
227
|
...e,
|
|
221
228
|
titleLevel: Z(e.titleLevel)
|
|
222
229
|
});
|
|
223
|
-
window.customElements.define("qcm-deepfake",
|
|
230
|
+
window.customElements.define("qcm-deepfake", N);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as Le, n as we, d as ve, i as Re } from "./_plugin-vue_export-helper-
|
|
1
|
+
import { s as Le, n as we, d as ve, i as Re } from "./_plugin-vue_export-helper-DRMLIazq.js";
|
|
2
2
|
const d = (o) => typeof o == "string", V = () => {
|
|
3
3
|
let o, e;
|
|
4
4
|
const t = new Promise((i, s) => {
|
|
@@ -107,7 +107,7 @@ const je = [" ", ",", "?", "!", ";"], Ie = new Fe(20), Te = (o, e, t) => {
|
|
|
107
107
|
s = r;
|
|
108
108
|
}
|
|
109
109
|
return s;
|
|
110
|
-
},
|
|
110
|
+
}, M = (o) => o?.replace("_", "-"), De = {
|
|
111
111
|
type: "logger",
|
|
112
112
|
log(o) {
|
|
113
113
|
this.output("log", o);
|
|
@@ -535,12 +535,12 @@ class le {
|
|
|
535
535
|
this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = P.create("languageUtils");
|
|
536
536
|
}
|
|
537
537
|
getScriptPartFromCode(e) {
|
|
538
|
-
if (e =
|
|
538
|
+
if (e = M(e), !e || e.indexOf("-") < 0) return null;
|
|
539
539
|
const t = e.split("-");
|
|
540
540
|
return t.length === 2 || (t.pop(), t[t.length - 1].toLowerCase() === "x") ? null : this.formatLanguageCode(t.join("-"));
|
|
541
541
|
}
|
|
542
542
|
getLanguagePartFromCode(e) {
|
|
543
|
-
if (e =
|
|
543
|
+
if (e = M(e), !e || e.indexOf("-") < 0) return e;
|
|
544
544
|
const t = e.split("-");
|
|
545
545
|
return this.formatLanguageCode(t[0]);
|
|
546
546
|
}
|
|
@@ -618,7 +618,7 @@ class Ve {
|
|
|
618
618
|
this.pluralRulesCache = {};
|
|
619
619
|
}
|
|
620
620
|
getRule(e, t = {}) {
|
|
621
|
-
const i =
|
|
621
|
+
const i = M(e === "dev" ? "en" : e), s = t.ordinal ? "ordinal" : "cardinal", n = JSON.stringify({
|
|
622
622
|
cleanedCode: i,
|
|
623
623
|
type: s
|
|
624
624
|
});
|
|
@@ -804,9 +804,9 @@ const Ue = (o) => {
|
|
|
804
804
|
});
|
|
805
805
|
const r = i + JSON.stringify(n);
|
|
806
806
|
let a = e[r];
|
|
807
|
-
return a || (a = o(
|
|
807
|
+
return a || (a = o(M(i), s), e[r] = a), a(t);
|
|
808
808
|
};
|
|
809
|
-
}, Me = (o) => (e, t, i) => o(
|
|
809
|
+
}, Me = (o) => (e, t, i) => o(M(t), i)(e);
|
|
810
810
|
class He {
|
|
811
811
|
constructor(e = {}) {
|
|
812
812
|
this.logger = P.create("formatter"), this.options = e, this.init(e);
|
|
@@ -1082,7 +1082,7 @@ const de = () => ({
|
|
|
1082
1082
|
typeof o[t] == "function" && (o[t] = o[t].bind(o));
|
|
1083
1083
|
});
|
|
1084
1084
|
};
|
|
1085
|
-
class
|
|
1085
|
+
class U extends W {
|
|
1086
1086
|
constructor(e = {}, t) {
|
|
1087
1087
|
if (super(), this.options = ge(e), this.services = {}, this.logger = P, this.modules = {
|
|
1088
1088
|
external: []
|
|
@@ -1275,7 +1275,8 @@ class M extends W {
|
|
|
1275
1275
|
return e.toLowerCase().indexOf("-latn") > 1 ? "ltr" : t.indexOf(i.getLanguagePartFromCode(e)) > -1 || e.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
|
|
1276
1276
|
}
|
|
1277
1277
|
static createInstance(e = {}, t) {
|
|
1278
|
-
|
|
1278
|
+
const i = new U(e, t);
|
|
1279
|
+
return i.createInstance = U.createInstance, i;
|
|
1279
1280
|
}
|
|
1280
1281
|
cloneInstance(e = {}, t = z) {
|
|
1281
1282
|
const i = e.forkResourceStore;
|
|
@@ -1284,7 +1285,7 @@ class M extends W {
|
|
|
1284
1285
|
...this.options,
|
|
1285
1286
|
...e,
|
|
1286
1287
|
isClone: !0
|
|
1287
|
-
}, n = new
|
|
1288
|
+
}, n = new U(s);
|
|
1288
1289
|
if ((e.debug !== void 0 || e.prefix !== void 0) && (n.logger = n.logger.clone(e)), ["store", "services", "language"].forEach((a) => {
|
|
1289
1290
|
n[a] = this[a];
|
|
1290
1291
|
}), n.services = {
|
|
@@ -1315,8 +1316,7 @@ class M extends W {
|
|
|
1315
1316
|
};
|
|
1316
1317
|
}
|
|
1317
1318
|
}
|
|
1318
|
-
const m =
|
|
1319
|
-
m.createInstance = M.createInstance;
|
|
1319
|
+
const m = U.createInstance();
|
|
1320
1320
|
m.createInstance;
|
|
1321
1321
|
m.dir;
|
|
1322
1322
|
m.init;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as B, r as I, J as N, c as g, o as u, H as x, q as p, G as f, D as b,
|
|
1
|
+
import { d as B, r as I, J as N, c as g, o as u, H as x, q as p, G as f, D as b, a as h, m as T, t as $, _ as P, k as d, K as E, g as F, F as k, b as H, e as K, f as L } from "./_plugin-vue_export-helper-DRMLIazq.js";
|
|
2
2
|
import { u as A, a as D } from "./normalize-props-AlmAfi_u.js";
|
|
3
3
|
function R(e, s = G) {
|
|
4
4
|
const a = [...e];
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import "./components/capacity-calculation.ce.js.js";
|
|
|
3
3
|
import "./components/clickable-image.ce.js.js";
|
|
4
4
|
import "./components/complete-phrase.ce.js.js";
|
|
5
5
|
import "./components/flip-cards.ce.js.js";
|
|
6
|
-
import "./image-quiz.ce-
|
|
6
|
+
import "./image-quiz.ce-By2A_llO.js";
|
|
7
7
|
import "./components/image-quizzes.ce.js.js";
|
|
8
8
|
import "./components/message-conversation.ce.js.js";
|
|
9
9
|
import "./components/pix-article.ce.js.js";
|
package/dist/schema.js
CHANGED
|
@@ -22,7 +22,7 @@ const n = e.object({
|
|
|
22
22
|
info: e.string().required(),
|
|
23
23
|
tooltipPosition: e.string().valid("bottom").optional()
|
|
24
24
|
}).required()).required().min(1)
|
|
25
|
-
}),
|
|
25
|
+
}), l = e.object({
|
|
26
26
|
titleLevel: e.number().optional(),
|
|
27
27
|
listOfProbabilityBarsLists: e.array().items(
|
|
28
28
|
e.array().items(
|
|
@@ -35,7 +35,7 @@ const n = e.object({
|
|
|
35
35
|
userMessage: e.string().required(),
|
|
36
36
|
llmMessage: e.string().required(),
|
|
37
37
|
wordsToAdd: e.array().items(e.string()).required()
|
|
38
|
-
}),
|
|
38
|
+
}), u = e.object({
|
|
39
39
|
titleLevel: e.number().optional(),
|
|
40
40
|
name: e.string().required(),
|
|
41
41
|
cardList: e.array().items(
|
|
@@ -105,7 +105,6 @@ const n = e.object({
|
|
|
105
105
|
}), _ = e.object({
|
|
106
106
|
title: e.string().required(),
|
|
107
107
|
description: e.string().allow("").required(),
|
|
108
|
-
displayHeight: e.number().min(0).optional(),
|
|
109
108
|
text: e.string().required(),
|
|
110
109
|
image: e.object({
|
|
111
110
|
src: e.string().required(),
|
|
@@ -123,7 +122,8 @@ const n = e.object({
|
|
|
123
122
|
randomSlides: e.boolean().required(),
|
|
124
123
|
titleLevel: e.number().integer().optional(),
|
|
125
124
|
disableAnimation: e.boolean().required(),
|
|
126
|
-
disableLoop: e.boolean().optional()
|
|
125
|
+
disableLoop: e.boolean().optional(),
|
|
126
|
+
imageTextDisplay: e.string().optional()
|
|
127
127
|
}).meta({ title: "pix-carousel" }).required(), h = e.object({
|
|
128
128
|
options: e.array().items(e.object({
|
|
129
129
|
label: e.string().required(),
|
|
@@ -168,7 +168,7 @@ const n = e.object({
|
|
|
168
168
|
failImage: e.string().required(),
|
|
169
169
|
infoImage: e.string().required(),
|
|
170
170
|
searchImage: e.string().required()
|
|
171
|
-
}), S = /* @__PURE__ */ Object.assign({ "./calcul-impact/calcul-impact.schema.js": n, "./capacity-calculation/capacity-calculation.schema.js": a, "./clickable-image/clickable-image.schema.js": c, "./complete-phrase/complete-phrase.schema.js":
|
|
171
|
+
}), S = /* @__PURE__ */ Object.assign({ "./calcul-impact/calcul-impact.schema.js": n, "./capacity-calculation/capacity-calculation.schema.js": a, "./clickable-image/clickable-image.schema.js": c, "./complete-phrase/complete-phrase.schema.js": l, "./flip-cards/flip-cards.schema.js": u, "./image-quiz/image-quiz.schema.js": i, "./image-quiz/image-quizzes.schema.js": d, "./message-conversation/message-conversation.schema.js": m, "./pix-article/pix-article.schema.js": g, "./pix-carousel/pix-carousel.schema.js": j, "./pix-cursor/pix-cursor.schema.js": h, "./pix-llm/llm-compare-messages.schema.js": x, "./pix-llm/llm-messages.schema.js": f, "./pix-llm/llm-prompt-select.schema.js": w, "./qcm-deepfake/qcm-deepfake.schema.js": L }), z = Object.fromEntries(Object.entries(S).map(([s, o]) => [
|
|
172
172
|
s.replace(/^.*\/([^/]+)\.schema\.js$/, "$1"),
|
|
173
173
|
o
|
|
174
174
|
]));
|