@1024pix/epreuves-components 1.4.5 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/LLMMessage.ce-CcaSmq0J.js +96 -0
- package/dist/Loading.ce-kO02LfAR.js +14 -0
- package/dist/NavigationButton.ce-BUeEdL4x.js +98 -0
- package/dist/{_plugin-vue_export-helper-CwwQJ1m6.js → _plugin-vue_export-helper-BGEtPlxS.js} +1373 -1355
- package/dist/components/calcul-impact.ce.js.js +91 -85
- package/dist/components/capacity-calculation.ce.js.js +117 -111
- package/dist/components/clickable-image.ce.js.js +83 -59
- package/dist/components/complete-phrase.ce.js.js +57 -51
- package/dist/components/flip-cards.ce.js.js +43 -46
- package/dist/components/image-quiz.ce.js.js +6 -4
- package/dist/components/image-quizzes.ce.js.js +18 -14
- package/dist/components/llm-compare-messages.ce.js.js +17 -17
- package/dist/components/llm-messages.ce.js.js +17 -17
- package/dist/components/llm-prompt-select.ce.js.js +37 -32
- package/dist/components/message-conversation.ce.js.js +61 -52
- package/dist/components/pix-article.ce.js.js +26 -20
- package/dist/components/pix-carousel.ce.js.js +133 -121
- package/dist/components/pix-cursor.ce.js.js +62 -62
- package/dist/components/qcm-deepfake.ce.js.js +97 -91
- package/dist/{i18n-gncqQJ0G.js → i18n-D3E2CT0o.js} +44 -40
- package/dist/image-quiz.ce-Qe3SbGDF.js +141 -0
- package/dist/index.js +1 -1
- package/dist/normalize-props-AlmAfi_u.js +13 -0
- package/dist/schema.js +8 -8
- package/dist/{shadow-dom-MxYtPVXS.js → shadow-dom-Bqt3ZRMI.js} +1 -1
- package/package.json +1 -1
- package/dist/ImageQuiz.ce-BLOWdEiw.js +0 -123
- package/dist/LLMMessage.ce-DnZ8kE2i.js +0 -89
- package/dist/Loading.ce-FI776zdC.js +0 -14
- package/dist/NavigationButton.ce-gp04deGY.js +0 -98
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as
|
|
3
|
-
|
|
1
|
+
import { d as y, k as b, c as o, o as l, f as s, E as g, t as c, D as k, _ as C, O as E, P as j, r as _, l as R, A as V, Q as O, g as G, F as I, a as S, b as M, G as P, q as Q, y as F, e as H } from "../_plugin-vue_export-helper-BGEtPlxS.js";
|
|
2
|
+
import { i as a, a as U, b as W } from "../i18n-D3E2CT0o.js";
|
|
3
|
+
import { u as Z } from "../normalize-props-AlmAfi_u.js";
|
|
4
|
+
const J = {}, K = {}, X = {}, Y = {
|
|
4
5
|
"qcm-deepfake": { options: ["une photo de sa chanteuse préférée", "une chanson de sa chanteuse préférée", "un enregistrement de Caroline qui chante", "une photo de Caroline", "un enregistrement de Caroline qui dit quelques phrases"], iaResultInfo: "Retrouvez ici les résultats du logiciel d'IA générative :", iaResultGenerated: "Résultat généré par le logiciel d'IA générative", 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." } }
|
|
5
|
-
},
|
|
6
|
+
}, ee = {}, te = {}, ae = ["aria-hidden"], ie = ["aria-level"], ne = ["src"], se = {
|
|
6
7
|
key: 1,
|
|
7
8
|
class: "description"
|
|
8
|
-
},
|
|
9
|
+
}, le = ["src"], oe = ["aria-level"], re = /* @__PURE__ */ y({
|
|
9
10
|
__name: "NarrativeAnswer.ce",
|
|
10
11
|
props: {
|
|
11
12
|
messageTitle: { type: String },
|
|
@@ -16,42 +17,42 @@ const W = {}, Z = {}, J = {
|
|
|
16
17
|
stateAnswer: { type: String },
|
|
17
18
|
type: { type: String }
|
|
18
19
|
},
|
|
19
|
-
setup(
|
|
20
|
-
const f =
|
|
21
|
-
return (
|
|
20
|
+
setup(e) {
|
|
21
|
+
const f = e, i = b(() => f.type === "success" || f.type === "fail" ? a.t("qcm-deepfake.out") : a.t("qcm-deepfake.waiting"));
|
|
22
|
+
return (r, t) => (l(), o("div", {
|
|
22
23
|
class: "right-container",
|
|
23
24
|
"aria-hidden": e.type !== e.stateAnswer
|
|
24
25
|
}, [
|
|
25
|
-
|
|
26
|
+
s("div", {
|
|
26
27
|
class: "subtitle",
|
|
27
28
|
role: "heading",
|
|
28
29
|
"aria-level": e.titleLevel
|
|
29
|
-
}, c(i.value), 9,
|
|
30
|
-
e.type === "search" ? (
|
|
30
|
+
}, c(i.value), 9, ie),
|
|
31
|
+
e.type === "search" ? (l(), o("img", {
|
|
31
32
|
key: 0,
|
|
32
33
|
src: e.image,
|
|
33
34
|
alt: ""
|
|
34
|
-
}, null, 8,
|
|
35
|
-
e.type === "success" || e.type === "fail" ? (
|
|
36
|
-
e.type !== "search" ? (
|
|
35
|
+
}, null, 8, ne)) : g("", !0),
|
|
36
|
+
e.type === "success" || e.type === "fail" ? (l(), o("p", se, c(e.title), 1)) : g("", !0),
|
|
37
|
+
e.type !== "search" ? (l(), o("img", {
|
|
37
38
|
key: 2,
|
|
38
39
|
src: e.image,
|
|
39
40
|
alt: ""
|
|
40
|
-
}, null, 8,
|
|
41
|
-
e.messageTitle ? (
|
|
41
|
+
}, null, 8, le)) : g("", !0),
|
|
42
|
+
e.messageTitle ? (l(), o("div", {
|
|
42
43
|
key: 3,
|
|
43
44
|
class: k(["answer-block", e.stateAnswer])
|
|
44
45
|
}, [
|
|
45
|
-
|
|
46
|
+
s("div", {
|
|
46
47
|
class: "answer-block__title",
|
|
47
48
|
role: "heading",
|
|
48
49
|
"aria-level": e.titleLevel + 1
|
|
49
|
-
}, c(e.messageTitle), 9,
|
|
50
|
-
|
|
51
|
-
], 2)) :
|
|
52
|
-
], 8,
|
|
50
|
+
}, c(e.messageTitle), 9, oe),
|
|
51
|
+
s("p", null, c(e.messageDescription), 1)
|
|
52
|
+
], 2)) : g("", !0)
|
|
53
|
+
], 8, ae));
|
|
53
54
|
}
|
|
54
|
-
}),
|
|
55
|
+
}), de = ".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}", ce = /* @__PURE__ */ C(re, [["styles", [de]], ["__scopeId", "data-v-2a82aa38"]]), ue = ["aria-disabled"], fe = /* @__PURE__ */ y({
|
|
55
56
|
__name: "Option.ce",
|
|
56
57
|
props: /* @__PURE__ */ E({
|
|
57
58
|
option: { type: String },
|
|
@@ -62,33 +63,33 @@ const W = {}, Z = {}, J = {
|
|
|
62
63
|
modelModifiers: {}
|
|
63
64
|
}),
|
|
64
65
|
emits: ["update:modelValue"],
|
|
65
|
-
setup(
|
|
66
|
-
const i =
|
|
67
|
-
function
|
|
66
|
+
setup(e, { expose: f }) {
|
|
67
|
+
const i = j(e, "modelValue"), r = _(!1), t = b(() => i.value.length === 3 && !r.value || e.readonly);
|
|
68
|
+
function h(v) {
|
|
68
69
|
if (t.value) {
|
|
69
|
-
|
|
70
|
+
v.preventDefault();
|
|
70
71
|
return;
|
|
71
72
|
}
|
|
72
|
-
|
|
73
|
+
v.target.checked ? i.value.push(e.option) : i.value = i.value.filter((m) => m !== e.option);
|
|
73
74
|
}
|
|
74
75
|
return f({
|
|
75
|
-
isChecked:
|
|
76
|
-
}), (
|
|
77
|
-
class: k({ selected:
|
|
76
|
+
isChecked: r
|
|
77
|
+
}), (v, p) => (l(), o("label", {
|
|
78
|
+
class: k({ selected: r.value, disabled: t.value })
|
|
78
79
|
}, [
|
|
79
|
-
R(
|
|
80
|
+
R(s("input", {
|
|
80
81
|
type: "checkbox",
|
|
81
82
|
name: "options",
|
|
82
|
-
onClick:
|
|
83
|
+
onClick: h,
|
|
83
84
|
"aria-disabled": t.value,
|
|
84
|
-
"onUpdate:modelValue":
|
|
85
|
-
}, null, 8,
|
|
86
|
-
[
|
|
85
|
+
"onUpdate:modelValue": p[0] || (p[0] = (m) => r.value = m)
|
|
86
|
+
}, null, 8, ue), [
|
|
87
|
+
[O, r.value]
|
|
87
88
|
]),
|
|
88
|
-
V(c(
|
|
89
|
+
V(c(e.option), 1)
|
|
89
90
|
], 2));
|
|
90
91
|
}
|
|
91
|
-
}),
|
|
92
|
+
}), me = ".selected[data-v-a067b43a]{background:#f7f5ff}.disabled[data-v-a067b43a]{cursor:not-allowed;background:#efefef}.disabled.selected[data-v-a067b43a]{background:#d6d5dd}", ge = /* @__PURE__ */ C(fe, [["styles", [me]], ["__scopeId", "data-v-a067b43a"]]), ve = { class: "container" }, pe = { class: "left-side" }, be = ["aria-level"], he = { class: "left-side__description" }, _e = { class: "left-side__action" }, ye = ["aria-disabled", "aria-describedby"], ke = {
|
|
92
93
|
key: 0,
|
|
93
94
|
"aria-hidden": "true",
|
|
94
95
|
width: "20",
|
|
@@ -96,15 +97,15 @@ const W = {}, Z = {}, J = {
|
|
|
96
97
|
viewBox: "0 0 20 20",
|
|
97
98
|
fill: "none",
|
|
98
99
|
xmlns: "http://www.w3.org/2000/svg"
|
|
99
|
-
},
|
|
100
|
+
}, Ce = {
|
|
100
101
|
key: 0,
|
|
101
102
|
id: "optionsSelectedInfo",
|
|
102
103
|
class: "left-side__lower-legend",
|
|
103
104
|
"aria-hidden": "true"
|
|
104
|
-
},
|
|
105
|
+
}, we = {
|
|
105
106
|
class: "right-side",
|
|
106
107
|
"aria-live": "polite"
|
|
107
|
-
},
|
|
108
|
+
}, xe = /* @__PURE__ */ y({
|
|
108
109
|
__name: "QcmDeepfake.ce",
|
|
109
110
|
props: {
|
|
110
111
|
titleLevel: { default: 2, type: Number },
|
|
@@ -114,90 +115,90 @@ const W = {}, Z = {}, J = {
|
|
|
114
115
|
searchImage: { type: String },
|
|
115
116
|
searchDelay: { default: 4e3, type: Number }
|
|
116
117
|
},
|
|
117
|
-
setup(
|
|
118
|
-
const i =
|
|
118
|
+
setup(e, { expose: f }) {
|
|
119
|
+
const i = _([]), r = [2, 4, 5], t = _("info"), h = G("optionsNode"), v = a.t("qcm-deepfake.options", { returnObjects: !0 }), p = ["👩🎤", "🎧", "🎤", "👩", "🎙️"], m = v.map((d, n) => `${p[n]} ${d}`), N = m.filter((d, n) => r.includes(n + 1)), D = [
|
|
119
120
|
{
|
|
120
121
|
type: "info",
|
|
121
|
-
image:
|
|
122
|
+
image: e.infoImage
|
|
122
123
|
},
|
|
123
124
|
{
|
|
124
125
|
type: "success",
|
|
125
|
-
image:
|
|
126
|
-
title:
|
|
127
|
-
messageTitle: `🥳 ${
|
|
128
|
-
messageDescription:
|
|
126
|
+
image: e.successImage,
|
|
127
|
+
title: a.t("qcm-deepfake.iaResultGenerated"),
|
|
128
|
+
messageTitle: `🥳 ${a.t("qcm-deepfake.success.title")}`,
|
|
129
|
+
messageDescription: a.t("qcm-deepfake.success.description")
|
|
129
130
|
},
|
|
130
131
|
{
|
|
131
132
|
type: "fail",
|
|
132
|
-
image:
|
|
133
|
-
title:
|
|
134
|
-
messageTitle: `🫤 ${
|
|
135
|
-
messageDescription:
|
|
133
|
+
image: e.failImage,
|
|
134
|
+
title: a.t("qcm-deepfake.iaResultGenerated"),
|
|
135
|
+
messageTitle: `🫤 ${a.t("qcm-deepfake.fail.title")}`,
|
|
136
|
+
messageDescription: a.t("qcm-deepfake.fail.description")
|
|
136
137
|
},
|
|
137
138
|
{
|
|
138
139
|
type: "search",
|
|
139
|
-
image:
|
|
140
|
+
image: e.searchImage
|
|
140
141
|
}
|
|
141
|
-
], w =
|
|
142
|
-
function
|
|
142
|
+
], w = b(() => i.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")), L = b(() => t.value === "info" ? a.t("qcm-deepfake.generateVideoInfo", { count: r.length - i.value.length }) : t.value === "fail" ? a.t("qcm-deepfake.restartInfo") : "");
|
|
143
|
+
function z() {
|
|
143
144
|
if (!w.value)
|
|
144
|
-
return t.value === "info" ?
|
|
145
|
+
return t.value === "info" ? B() : x();
|
|
145
146
|
}
|
|
146
|
-
function
|
|
147
|
-
|
|
148
|
-
|
|
147
|
+
function x() {
|
|
148
|
+
h.value.forEach((d) => {
|
|
149
|
+
d.isChecked = !1;
|
|
149
150
|
}), i.value = [], t.value = "info";
|
|
150
151
|
}
|
|
151
|
-
async function
|
|
152
|
-
const
|
|
153
|
-
t.value = "search", await new Promise((n) => setTimeout(n,
|
|
152
|
+
async function B() {
|
|
153
|
+
const d = i.value.every((n) => N.includes(n.trim()));
|
|
154
|
+
t.value = "search", await new Promise((n) => setTimeout(n, e.searchDelay)), d ? t.value = "success" : t.value = "fail";
|
|
154
155
|
}
|
|
155
156
|
return f({
|
|
156
|
-
reset:
|
|
157
|
-
}), (
|
|
158
|
-
|
|
159
|
-
|
|
157
|
+
reset: x
|
|
158
|
+
}), (d, n) => (l(), o("div", ve, [
|
|
159
|
+
s("form", pe, [
|
|
160
|
+
s("div", {
|
|
160
161
|
class: "left-side__subtitle",
|
|
161
162
|
role: "heading",
|
|
162
|
-
"aria-level":
|
|
163
|
-
}, c(
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
(
|
|
163
|
+
"aria-level": e.titleLevel
|
|
164
|
+
}, c(d.$t("qcm-deepfake.in")), 9, be),
|
|
165
|
+
s("fieldset", null, [
|
|
166
|
+
s("legend", he, c(d.$t("qcm-deepfake.selectThreeElements")), 1),
|
|
167
|
+
(l(!0), o(I, null, S(P(m), (u, q) => (l(), M(ge, {
|
|
167
168
|
ref_for: !0,
|
|
168
169
|
ref_key: "optionsNode",
|
|
169
|
-
ref:
|
|
170
|
+
ref: h,
|
|
170
171
|
modelValue: i.value,
|
|
171
172
|
"onUpdate:modelValue": n[0] || (n[0] = (A) => i.value = A),
|
|
172
|
-
key:
|
|
173
|
+
key: q,
|
|
173
174
|
class: "left-side__options",
|
|
174
175
|
option: u,
|
|
175
|
-
value:
|
|
176
|
+
value: q + 1,
|
|
176
177
|
readonly: t.value !== "info"
|
|
177
178
|
}, null, 8, ["modelValue", "option", "value", "readonly"]))), 128))
|
|
178
179
|
]),
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
onClick:
|
|
180
|
+
s("div", _e, [
|
|
181
|
+
s("button", {
|
|
182
|
+
onClick: Q(z, ["prevent"]),
|
|
182
183
|
class: k(["left-side__button", { generate: t.value === "info" }]),
|
|
183
184
|
"aria-disabled": w.value,
|
|
184
185
|
"aria-describedby": ["success", "search"].includes(t.value) ? void 0 : "optionsSelectedInfo"
|
|
185
186
|
}, [
|
|
186
|
-
t.value === "success" || t.value === "fail" ? (
|
|
187
|
-
|
|
187
|
+
t.value === "success" || t.value === "fail" ? (l(), o("svg", ke, [...n[1] || (n[1] = [
|
|
188
|
+
s("path", {
|
|
188
189
|
d: "M9.98002 16.836C8.07572 16.836 6.4603 16.1728 5.13377 14.8462C3.80725 13.5197 3.14398 11.9043 3.14398 9.99998C3.14398 8.09568 3.80725 6.48026 5.13377 5.15373C6.4603 3.8272 8.07572 3.16394 9.98002 3.16394C10.9684 3.16394 11.9108 3.36686 12.8073 3.77269C13.7038 4.17839 14.4713 4.76095 15.1096 5.5204V4.03707C15.1096 3.7897 15.1933 3.58234 15.3606 3.41498C15.528 3.24762 15.7354 3.16394 15.9827 3.16394C16.2302 3.16394 16.4377 3.24762 16.605 3.41498C16.7724 3.58234 16.8561 3.7897 16.8561 4.03707V8.29352C16.8561 8.5595 16.7645 8.78394 16.5815 8.96686C16.3986 9.14991 16.1741 9.24144 15.9081 9.24144H11.6417C11.3957 9.24144 11.1895 9.15776 11.0231 8.9904C10.8568 8.82304 10.7736 8.61561 10.7736 8.36811C10.7736 8.12213 10.8572 7.91595 11.0246 7.74956C11.192 7.58318 11.3993 7.49998 11.6467 7.49998H14.2438C13.7993 6.74207 13.199 6.14589 12.4427 5.71144C11.6866 5.277 10.8657 5.05977 9.98002 5.05977C8.6078 5.05977 7.44141 5.54005 6.48086 6.50061C5.52016 7.4613 5.03982 8.62776 5.03982 9.99998C5.03982 11.3722 5.52016 12.5387 6.48086 13.4994C7.44141 14.4599 8.6078 14.9402 9.98002 14.9402C10.8879 14.9402 11.7218 14.713 12.4817 14.2587C13.2416 13.8046 13.8384 13.1963 14.2723 12.4339C14.402 12.2189 14.5845 12.0692 14.8198 11.9848C15.055 11.9005 15.2895 11.8996 15.5236 11.9823C15.7733 12.0651 15.9534 12.2275 16.064 12.4696C16.1744 12.7118 16.1675 12.9401 16.0431 13.1544C15.4537 14.2688 14.6221 15.161 13.5484 15.831C12.4745 16.501 11.285 16.836 9.98002 16.836Z",
|
|
189
190
|
fill: "#122647"
|
|
190
191
|
}, null, -1)
|
|
191
|
-
])])) :
|
|
192
|
-
V(" " + c(
|
|
193
|
-
], 10,
|
|
194
|
-
["success", "search"].includes(t.value) ?
|
|
192
|
+
])])) : g("", !0),
|
|
193
|
+
V(" " + c(T.value), 1)
|
|
194
|
+
], 10, ye),
|
|
195
|
+
["success", "search"].includes(t.value) ? g("", !0) : (l(), o("p", Ce, c(L.value), 1))
|
|
195
196
|
])
|
|
196
197
|
]),
|
|
197
|
-
|
|
198
|
-
(
|
|
198
|
+
s("div", we, [
|
|
199
|
+
(l(), o(I, null, S(D, (u) => F(ce, {
|
|
199
200
|
key: u,
|
|
200
|
-
"title-level":
|
|
201
|
+
"title-level": e.titleLevel,
|
|
201
202
|
type: u.type,
|
|
202
203
|
image: u.image,
|
|
203
204
|
title: u.title,
|
|
@@ -208,10 +209,15 @@ const W = {}, Z = {}, J = {
|
|
|
208
209
|
])
|
|
209
210
|
]));
|
|
210
211
|
}
|
|
211
|
-
}),
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
configureApp(
|
|
215
|
-
|
|
212
|
+
}), qe = "legend,label,p,div[role=heading]{font-family:Nunito,Roboto,sans-serif;color:#253858}", Ie = ".container[data-v-02f097d7]{display:flex;gap:.8rem}.title[data-v-02f097d7]{font-size:1.75rem;font-weight:700;text-align:center;margin-bottom:16px}.left-side[data-v-02f097d7]{min-width:60%;border:solid 1px #b0d3f4;background:#fff;padding:.8rem;border-radius:10px}.left-side__lower-legend[data-v-02f097d7]{font-size:.875rem;color:#5e6c84}.left-side__subtitle[data-v-02f097d7]{font-size:1.25rem;font-weight:700;text-align:center}.left-side__options[data-v-02f097d7]{display:flex;border:solid 1px #5e6c84;padding:.6rem;border-radius:5px;gap:.5rem}.left-side__description[data-v-02f097d7]{font-weight:700}.left-side__button[data-v-02f097d7]{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-02f097d7]{background:#613fdd;color:#fff}.left-side__button[aria-disabled=true][data-v-02f097d7]{cursor:not-allowed;background:#d3d3d3}.left-side__action[data-v-02f097d7]{display:flex;flex-direction:column;align-items:center;text-align:center}.right-side[data-v-02f097d7]{display:grid;border:solid 1px #b0d3f4;background:#fff;padding:.8rem;text-align:center;border-radius:10px}fieldset[data-v-02f097d7]{border:none;display:flex;flex-direction:column;gap:.8rem}@media(max-width:770px){.container[data-v-02f097d7]{flex-wrap:wrap}.left-side[data-v-02f097d7],.right-side[data-v-02f097d7]{width:100%}}", Se = /* @__PURE__ */ C(xe, [["styles", [qe, Ie]], ["__scopeId", "data-v-02f097d7"]]);
|
|
213
|
+
U(/* @__PURE__ */ Object.assign({ "./locales/en.json": J, "./locales/es-419.json": K, "./locales/es.json": X, "./locales/fr.json": Y, "./locales/it.json": ee, "./locales/nl.json": te })).catch((e) => console.error(e));
|
|
214
|
+
const $ = H(Se, {
|
|
215
|
+
configureApp(e) {
|
|
216
|
+
a.changeLanguage(document?.documentElement?.lang || navigator.language), e.use(W, { i18next: a });
|
|
216
217
|
}
|
|
217
|
-
})
|
|
218
|
+
});
|
|
219
|
+
$.prototype.normalizeProps = (e) => ({
|
|
220
|
+
...e,
|
|
221
|
+
titleLevel: Z(e.titleLevel)
|
|
222
|
+
});
|
|
223
|
+
window.customElements.define("qcm-deepfake", $);
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { s as Le, n as we,
|
|
1
|
+
import { s as Le, n as we, d as ve, i as Re } from "./_plugin-vue_export-helper-BGEtPlxS.js";
|
|
2
2
|
const d = (o) => typeof o == "string", V = () => {
|
|
3
3
|
let o, e;
|
|
4
4
|
const t = new Promise((i, s) => {
|
|
5
5
|
o = i, e = s;
|
|
6
6
|
});
|
|
7
7
|
return t.resolve = o, t.reject = e, t;
|
|
8
|
-
},
|
|
8
|
+
}, se = (o) => o == null ? "" : "" + o, Ce = (o, e, t) => {
|
|
9
9
|
o.forEach((i) => {
|
|
10
10
|
e[i] && (t[i] = e[i]);
|
|
11
11
|
});
|
|
12
|
-
}, Pe = /###/g,
|
|
12
|
+
}, Pe = /###/g, ie = (o) => o && o.indexOf("###") > -1 ? o.replace(Pe, ".") : o, ne = (o) => !o || d(o), A = (o, e, t) => {
|
|
13
13
|
const i = d(e) ? e.split(".") : e;
|
|
14
14
|
let s = 0;
|
|
15
15
|
for (; s < i.length - 1; ) {
|
|
16
|
-
if (
|
|
17
|
-
const n =
|
|
16
|
+
if (ne(o)) return {};
|
|
17
|
+
const n = ie(i[s]);
|
|
18
18
|
!o[n] && t && (o[n] = new t()), Object.prototype.hasOwnProperty.call(o, n) ? o = o[n] : o = {}, ++s;
|
|
19
19
|
}
|
|
20
|
-
return
|
|
20
|
+
return ne(o) ? {} : {
|
|
21
21
|
obj: o,
|
|
22
|
-
k:
|
|
22
|
+
k: ie(i[s])
|
|
23
23
|
};
|
|
24
|
-
},
|
|
24
|
+
}, re = (o, e, t) => {
|
|
25
25
|
const {
|
|
26
26
|
obj: i,
|
|
27
27
|
k: s
|
|
@@ -87,7 +87,7 @@ const je = [" ", ",", "?", "!", ";"], Ie = new Fe(20), Te = (o, e, t) => {
|
|
|
87
87
|
r > 0 && !s.test(o.substring(0, r)) && (n = !0);
|
|
88
88
|
}
|
|
89
89
|
return n;
|
|
90
|
-
},
|
|
90
|
+
}, G = (o, e, t = ".") => {
|
|
91
91
|
if (!o) return;
|
|
92
92
|
if (o[e])
|
|
93
93
|
return Object.prototype.hasOwnProperty.call(o, e) ? o[e] : void 0;
|
|
@@ -185,7 +185,7 @@ class W {
|
|
|
185
185
|
});
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
|
-
class
|
|
188
|
+
class ae extends W {
|
|
189
189
|
constructor(e, t = {
|
|
190
190
|
ns: ["translation"],
|
|
191
191
|
defaultNS: "translation"
|
|
@@ -204,14 +204,14 @@ class re extends W {
|
|
|
204
204
|
let a;
|
|
205
205
|
e.indexOf(".") > -1 ? a = e.split(".") : (a = [e, t], i && (Array.isArray(i) ? a.push(...i) : d(i) && n ? a.push(...i.split(n)) : a.push(i)));
|
|
206
206
|
const l = B(this.data, a);
|
|
207
|
-
return !l && !t && !i && e.indexOf(".") > -1 && (e = a[0], t = a[1], i = a.slice(2).join(".")), l || !r || !d(i) ? l :
|
|
207
|
+
return !l && !t && !i && e.indexOf(".") > -1 && (e = a[0], t = a[1], i = a.slice(2).join(".")), l || !r || !d(i) ? l : G(this.data?.[e]?.[t], i, n);
|
|
208
208
|
}
|
|
209
209
|
addResource(e, t, i, s, n = {
|
|
210
210
|
silent: !1
|
|
211
211
|
}) {
|
|
212
212
|
const r = n.keySeparator !== void 0 ? n.keySeparator : this.options.keySeparator;
|
|
213
213
|
let a = [e, t];
|
|
214
|
-
i && (a = a.concat(r ? i.split(r) : i)), e.indexOf(".") > -1 && (a = e.split("."), s = t, t = a[1]), this.addNamespaces(t),
|
|
214
|
+
i && (a = a.concat(r ? i.split(r) : i)), e.indexOf(".") > -1 && (a = e.split("."), s = t, t = a[1]), this.addNamespaces(t), re(this.data, a, s), n.silent || this.emit("added", e, t, i, s);
|
|
215
215
|
}
|
|
216
216
|
addResources(e, t, i, s = {
|
|
217
217
|
silent: !1
|
|
@@ -232,7 +232,7 @@ class re extends W {
|
|
|
232
232
|
r.skipCopy || (i = JSON.parse(JSON.stringify(i))), s ? me(l, i, n) : l = {
|
|
233
233
|
...l,
|
|
234
234
|
...i
|
|
235
|
-
},
|
|
235
|
+
}, re(this.data, a, l), r.silent || this.emit("added", e, t, i);
|
|
236
236
|
}
|
|
237
237
|
removeResourceBundle(e, t) {
|
|
238
238
|
this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t);
|
|
@@ -271,13 +271,13 @@ function Ke() {
|
|
|
271
271
|
let t;
|
|
272
272
|
return e.get = (i, s) => (t?.revoke?.(), s === ye ? o : (o.push(s), t = Proxy.revocable(i, e), t.proxy)), Proxy.revocable(/* @__PURE__ */ Object.create(null), e).proxy;
|
|
273
273
|
}
|
|
274
|
-
function
|
|
274
|
+
function Z(o, e) {
|
|
275
275
|
const {
|
|
276
276
|
[ye]: t
|
|
277
277
|
} = o(Ke());
|
|
278
278
|
return t.join(e?.keySeparator ?? ".");
|
|
279
279
|
}
|
|
280
|
-
const
|
|
280
|
+
const oe = {}, Y = (o) => !d(o) && typeof o != "boolean" && typeof o != "number";
|
|
281
281
|
class _ extends W {
|
|
282
282
|
constructor(e, t = {}) {
|
|
283
283
|
super(), Ce(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = P.create("translator");
|
|
@@ -291,7 +291,11 @@ class _ extends W {
|
|
|
291
291
|
const i = {
|
|
292
292
|
...t
|
|
293
293
|
};
|
|
294
|
-
|
|
294
|
+
if (e == null) return !1;
|
|
295
|
+
const s = this.resolve(e, i);
|
|
296
|
+
if (s?.res === void 0) return !1;
|
|
297
|
+
const n = Y(s.res);
|
|
298
|
+
return !(i.returnObjects === !1 && n);
|
|
295
299
|
}
|
|
296
300
|
extractFromKey(e, t) {
|
|
297
301
|
let i = t.nsSeparator !== void 0 ? t.nsSeparator : this.options.nsSeparator;
|
|
@@ -321,7 +325,7 @@ class _ extends W {
|
|
|
321
325
|
if (typeof s != "object" && this.options.overloadTranslationOptionHandler && (s = this.options.overloadTranslationOptionHandler(arguments)), typeof s == "object" && (s = {
|
|
322
326
|
...s
|
|
323
327
|
}), s || (s = {}), e == null) return "";
|
|
324
|
-
typeof e == "function" && (e =
|
|
328
|
+
typeof e == "function" && (e = Z(e, {
|
|
325
329
|
...this.options,
|
|
326
330
|
...s
|
|
327
331
|
})), Array.isArray(e) || (e = [String(e)]);
|
|
@@ -352,10 +356,10 @@ class _ extends W {
|
|
|
352
356
|
let c = g?.res;
|
|
353
357
|
const x = g?.usedKey || a, S = g?.exactUsedKey || a, L = ["[object Number]", "[object Function]", "[object RegExp]"], y = s.joinArrays !== void 0 ? s.joinArrays : this.options.joinArrays, E = !this.i18nFormat || this.i18nFormat.handleAsObject, O = s.count !== void 0 && !d(s.count), N = _.hasDefaultValue(s), j = O ? this.pluralResolver.getSuffix(f, s.count, s) : "", I = s.ordinal && O ? this.pluralResolver.getSuffix(f, s.count, {
|
|
354
358
|
ordinal: !1
|
|
355
|
-
}) : "",
|
|
359
|
+
}) : "", X = O && !s.ordinal && s.count === 0, k = X && s[`defaultValue${this.options.pluralSeparator}zero`] || s[`defaultValue${j}`] || s[`defaultValue${I}`] || s.defaultValue;
|
|
356
360
|
let v = c;
|
|
357
361
|
E && !c && N && (v = k);
|
|
358
|
-
const be =
|
|
362
|
+
const be = Y(v), Oe = Object.prototype.toString.apply(v);
|
|
359
363
|
if (E && v && be && L.indexOf(Oe) < 0 && !(d(y) && Array.isArray(v))) {
|
|
360
364
|
if (!s.returnObjects && !this.options.returnObjects) {
|
|
361
365
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
@@ -366,13 +370,13 @@ class _ extends W {
|
|
|
366
370
|
return n ? (g.res = R, g.usedParams = this.getUsedParamsDetails(s), g) : R;
|
|
367
371
|
}
|
|
368
372
|
if (r) {
|
|
369
|
-
const R = Array.isArray(v), w = R ? [] : {},
|
|
373
|
+
const R = Array.isArray(v), w = R ? [] : {}, q = R ? S : x;
|
|
370
374
|
for (const C in v)
|
|
371
375
|
if (Object.prototype.hasOwnProperty.call(v, C)) {
|
|
372
|
-
const $ = `${
|
|
376
|
+
const $ = `${q}${r}${C}`;
|
|
373
377
|
N && !c ? w[C] = this.translate($, {
|
|
374
378
|
...s,
|
|
375
|
-
defaultValue:
|
|
379
|
+
defaultValue: Y(k) ? k[C] : void 0,
|
|
376
380
|
joinArrays: !1,
|
|
377
381
|
ns: l
|
|
378
382
|
}) : w[C] = this.translate($, {
|
|
@@ -403,16 +407,16 @@ class _ extends W {
|
|
|
403
407
|
for (let b = 0; b < H.length; b++)
|
|
404
408
|
D.push(H[b]);
|
|
405
409
|
else this.options.saveMissingTo === "all" ? D = this.languageUtils.toResolveHierarchy(s.lng || this.language) : D.push(s.lng || this.language);
|
|
406
|
-
const
|
|
407
|
-
const
|
|
408
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(b, u, F,
|
|
410
|
+
const ee = (b, F, K) => {
|
|
411
|
+
const te = N && K !== c ? K : C;
|
|
412
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(b, u, F, te, $, s) : this.backendConnector?.saveMissing && this.backendConnector.saveMissing(b, u, F, te, $, s), this.emit("missingKey", b, u, F, c);
|
|
409
413
|
};
|
|
410
414
|
this.options.saveMissing && (this.options.saveMissingPlurals && O ? D.forEach((b) => {
|
|
411
415
|
const F = this.pluralResolver.getSuffixes(b, s);
|
|
412
|
-
|
|
413
|
-
|
|
416
|
+
X && s[`defaultValue${this.options.pluralSeparator}zero`] && F.indexOf(`${this.options.pluralSeparator}zero`) < 0 && F.push(`${this.options.pluralSeparator}zero`), F.forEach((K) => {
|
|
417
|
+
ee([b], a + K, s[`defaultValue${K}`] || k);
|
|
414
418
|
});
|
|
415
|
-
}) :
|
|
419
|
+
}) : ee(D, a, k));
|
|
416
420
|
}
|
|
417
421
|
c = this.extendTranslation(c, e, s, g, i), w && c === a && this.options.appendNamespaceToMissingKey && (c = `${u}${h}${a}`), (w || R) && this.options.parseMissingKeyHandler && (c = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${u}${h}${a}` : a, R ? c : void 0, s));
|
|
418
422
|
}
|
|
@@ -469,7 +473,7 @@ class _ extends W {
|
|
|
469
473
|
this.options.fallbackNS && (f = f.concat(this.options.fallbackNS));
|
|
470
474
|
const p = t.count !== void 0 && !d(t.count), g = p && !t.ordinal && t.count === 0, c = t.context !== void 0 && (d(t.context) || typeof t.context == "number") && t.context !== "", x = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
|
|
471
475
|
f.forEach((S) => {
|
|
472
|
-
this.isValidLookup(i) || (a = S, !
|
|
476
|
+
this.isValidLookup(i) || (a = S, !oe[`${x[0]}-${S}`] && this.utils?.hasLoadedNamespace && !this.utils?.hasLoadedNamespace(a) && (oe[`${x[0]}-${S}`] = !0, this.logger.warn(`key "${s}" for languages "${x.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), x.forEach((L) => {
|
|
473
477
|
if (this.isValidLookup(i)) return;
|
|
474
478
|
r = L;
|
|
475
479
|
const y = [h];
|
|
@@ -652,8 +656,8 @@ class Ve {
|
|
|
652
656
|
}
|
|
653
657
|
const he = (o, e, t, i = ".", s = !0) => {
|
|
654
658
|
let n = Ne(o, e, t);
|
|
655
|
-
return !n && s && d(t) && (n =
|
|
656
|
-
},
|
|
659
|
+
return !n && s && d(t) && (n = G(o, t, i), n === void 0 && (n = G(e, t, i))), n;
|
|
660
|
+
}, Q = (o) => o.replace(/\$/g, "$$$$");
|
|
657
661
|
class Ae {
|
|
658
662
|
constructor(e = {}) {
|
|
659
663
|
this.logger = P.create("interpolator"), this.options = e, this.format = e?.interpolation?.format || ((t) => t), this.init(e);
|
|
@@ -712,10 +716,10 @@ class Ae {
|
|
|
712
716
|
const h = s?.missingInterpolationHandler || this.options.missingInterpolationHandler, f = s?.interpolation?.skipOnVariables !== void 0 ? s.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
|
|
713
717
|
return [{
|
|
714
718
|
regex: this.regexpUnescape,
|
|
715
|
-
safeValue: (g) =>
|
|
719
|
+
safeValue: (g) => Q(g)
|
|
716
720
|
}, {
|
|
717
721
|
regex: this.regexp,
|
|
718
|
-
safeValue: (g) => this.escapeValue ?
|
|
722
|
+
safeValue: (g) => this.escapeValue ? Q(this.escape(g)) : Q(g)
|
|
719
723
|
}].forEach((g) => {
|
|
720
724
|
for (a = 0; n = g.regex.exec(e); ) {
|
|
721
725
|
const c = n[1].trim();
|
|
@@ -730,7 +734,7 @@ class Ae {
|
|
|
730
734
|
continue;
|
|
731
735
|
} else
|
|
732
736
|
this.logger.warn(`missed to pass in variable ${c} for interpolating ${e}`), r = "";
|
|
733
|
-
else !d(r) && !this.useRawValueToEscape && (r =
|
|
737
|
+
else !d(r) && !this.useRawValueToEscape && (r = se(r));
|
|
734
738
|
const x = g.safeValue(r);
|
|
735
739
|
if (e = e.replace(n[0], x), f ? (g.regex.lastIndex += r.length, g.regex.lastIndex -= n[0].length) : g.regex.lastIndex = 0, a++, a >= this.maxReplaces)
|
|
736
740
|
break;
|
|
@@ -764,7 +768,7 @@ class Ae {
|
|
|
764
768
|
}, r = r.replace && !d(r.replace) ? r.replace : r, r.applyPostProcessor = !1, delete r.defaultValue;
|
|
765
769
|
const u = /{.*}/.test(s[1]) ? s[1].lastIndexOf("}") + 1 : s[1].indexOf(this.formatSeparator);
|
|
766
770
|
if (u !== -1 && (l = s[1].slice(u).split(this.formatSeparator).map((h) => h.trim()).filter(Boolean), s[1] = s[1].slice(0, u)), n = t(a.call(this, s[1].trim(), r), r), n && s[0] === e && !d(n)) return n;
|
|
767
|
-
d(n) || (n =
|
|
771
|
+
d(n) || (n = se(n)), n || (this.logger.warn(`missed to resolve ${s[1]} for nesting ${e}`), n = ""), l.length && (n = l.reduce((h, f) => this.format(h, f, i.lng, {
|
|
768
772
|
...i,
|
|
769
773
|
interpolationkey: s[1].trim()
|
|
770
774
|
}), n.trim())), e = e.replace(s[0], n), this.regexp.lastIndex = 0;
|
|
@@ -1107,7 +1111,7 @@ class M extends W {
|
|
|
1107
1111
|
let u;
|
|
1108
1112
|
this.modules.formatter ? u = this.modules.formatter : u = He;
|
|
1109
1113
|
const h = new le(this.options);
|
|
1110
|
-
this.store = new
|
|
1114
|
+
this.store = new ae(this.options.resources, this.options);
|
|
1111
1115
|
const f = this.services;
|
|
1112
1116
|
f.logger = P, f.resourceStore = this.store, f.languageUtils = h, f.pluralResolver = new Ve(h, {
|
|
1113
1117
|
prepend: this.options.pluralSeparator,
|
|
@@ -1205,10 +1209,10 @@ class M extends W {
|
|
|
1205
1209
|
}, l.lng = l.lng || s.lng, l.lngs = l.lngs || s.lngs, l.ns = l.ns || s.ns, l.keyPrefix !== "" && (l.keyPrefix = l.keyPrefix || i || s.keyPrefix);
|
|
1206
1210
|
const u = this.options.keySeparator || ".";
|
|
1207
1211
|
let h;
|
|
1208
|
-
return l.keyPrefix && Array.isArray(n) ? h = n.map((f) => (typeof f == "function" && (f =
|
|
1212
|
+
return l.keyPrefix && Array.isArray(n) ? h = n.map((f) => (typeof f == "function" && (f = Z(f, {
|
|
1209
1213
|
...this.options,
|
|
1210
1214
|
...r
|
|
1211
|
-
})), `${l.keyPrefix}${u}${f}`)) : (typeof n == "function" && (n =
|
|
1215
|
+
})), `${l.keyPrefix}${u}${f}`)) : (typeof n == "function" && (n = Z(n, {
|
|
1212
1216
|
...this.options,
|
|
1213
1217
|
...r
|
|
1214
1218
|
})), h = l.keyPrefix ? `${l.keyPrefix}${u}${n}` : n), this.t(h, l);
|
|
@@ -1293,7 +1297,7 @@ class M extends W {
|
|
|
1293
1297
|
}, l[u] = Object.keys(l[u]).reduce((h, f) => (h[f] = {
|
|
1294
1298
|
...l[u][f]
|
|
1295
1299
|
}, h), l[u]), l), {});
|
|
1296
|
-
n.store = new
|
|
1300
|
+
n.store = new ae(a, s), n.services.resourceStore = n.store;
|
|
1297
1301
|
}
|
|
1298
1302
|
return n.translator = new _(n.services, s), n.translator.on("*", (a, ...l) => {
|
|
1299
1303
|
n.emit(a, ...l);
|
|
@@ -1411,7 +1415,7 @@ var Ye = ve({
|
|
|
1411
1415
|
const Qe = "translation";
|
|
1412
1416
|
async function et(o) {
|
|
1413
1417
|
for (const [e, t] of Object.entries(o)) {
|
|
1414
|
-
const i = e.match(/\/(
|
|
1418
|
+
const i = e.match(/\/([^/]+)\.json$/)[1];
|
|
1415
1419
|
await Ge(i, t);
|
|
1416
1420
|
}
|
|
1417
1421
|
}
|