@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,15 +1,15 @@
|
|
|
1
|
-
import { s as
|
|
1
|
+
import { s as we, n as ve, d as Re, i as Ce } from "./_plugin-vue_export-helper-D7ghZaw4.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
|
-
}, se = (o) => o == null ? "" : "" + o,
|
|
8
|
+
}, se = (o) => o == null ? "" : "" + o, Pe = (o, e, t) => {
|
|
9
9
|
o.forEach((i) => {
|
|
10
10
|
e[i] && (t[i] = e[i]);
|
|
11
11
|
});
|
|
12
|
-
},
|
|
12
|
+
}, $e = /###/g, ie = (o) => o && o.indexOf("###") > -1 ? o.replace($e, ".") : 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; ) {
|
|
@@ -34,7 +34,7 @@ const d = (o) => typeof o == "string", V = () => {
|
|
|
34
34
|
for (; a.obj === void 0 && r.length; )
|
|
35
35
|
n = `${r[r.length - 1]}.${n}`, r = r.slice(0, r.length - 1), a = A(o, r, Object), a?.obj && typeof a.obj[`${a.k}.${n}`] < "u" && (a.obj = void 0);
|
|
36
36
|
a.obj[`${a.k}.${n}`] = t;
|
|
37
|
-
},
|
|
37
|
+
}, Ne = (o, e, t, i) => {
|
|
38
38
|
const {
|
|
39
39
|
obj: s,
|
|
40
40
|
k: n
|
|
@@ -47,15 +47,15 @@ const d = (o) => typeof o == "string", V = () => {
|
|
|
47
47
|
} = A(o, e);
|
|
48
48
|
if (t && Object.prototype.hasOwnProperty.call(t, i))
|
|
49
49
|
return t[i];
|
|
50
|
-
},
|
|
50
|
+
}, ke = (o, e, t) => {
|
|
51
51
|
const i = B(o, t);
|
|
52
52
|
return i !== void 0 ? i : B(e, t);
|
|
53
|
-
},
|
|
53
|
+
}, xe = (o, e, t) => {
|
|
54
54
|
for (const i in e)
|
|
55
|
-
i !== "__proto__" && i !== "constructor" && (i in o ? d(o[i]) || o[i] instanceof String || d(e[i]) || e[i] instanceof String ? t && (o[i] = e[i]) :
|
|
55
|
+
i !== "__proto__" && i !== "constructor" && (i in o ? d(o[i]) || o[i] instanceof String || d(e[i]) || e[i] instanceof String ? t && (o[i] = e[i]) : xe(o[i], e[i], t) : o[i] = e[i]);
|
|
56
56
|
return o;
|
|
57
57
|
}, T = (o) => o.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
|
58
|
-
var
|
|
58
|
+
var Ee = {
|
|
59
59
|
"&": "&",
|
|
60
60
|
"<": "<",
|
|
61
61
|
">": ">",
|
|
@@ -63,8 +63,8 @@ var ke = {
|
|
|
63
63
|
"'": "'",
|
|
64
64
|
"/": "/"
|
|
65
65
|
};
|
|
66
|
-
const
|
|
67
|
-
class
|
|
66
|
+
const Fe = (o) => d(o) ? o.replace(/[&<>"'\/]/g, (e) => Ee[e]) : o;
|
|
67
|
+
class je {
|
|
68
68
|
constructor(e) {
|
|
69
69
|
this.capacity = e, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
|
|
70
70
|
}
|
|
@@ -76,11 +76,11 @@ class Fe {
|
|
|
76
76
|
return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e, i), this.regExpQueue.push(e), i;
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
|
-
const
|
|
79
|
+
const Ie = [" ", ",", "?", "!", ";"], Te = new je(20), De = (o, e, t) => {
|
|
80
80
|
e = e || "", t = t || "";
|
|
81
|
-
const i =
|
|
81
|
+
const i = Ie.filter((r) => e.indexOf(r) < 0 && t.indexOf(r) < 0);
|
|
82
82
|
if (i.length === 0) return !0;
|
|
83
|
-
const s =
|
|
83
|
+
const s = Te.getRegExp(`(${i.map((r) => r === "?" ? "\\?" : r).join("|")})`);
|
|
84
84
|
let n = !s.test(o);
|
|
85
85
|
if (!n) {
|
|
86
86
|
const r = o.indexOf(t);
|
|
@@ -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
|
-
}, M = (o) => o?.replace("_", "-"),
|
|
110
|
+
}, M = (o) => o?.replace("_", "-"), Ke = {
|
|
111
111
|
type: "logger",
|
|
112
112
|
log(o) {
|
|
113
113
|
this.output("log", o);
|
|
@@ -127,7 +127,7 @@ class J {
|
|
|
127
127
|
this.init(e, t);
|
|
128
128
|
}
|
|
129
129
|
init(e, t = {}) {
|
|
130
|
-
this.prefix = t.prefix || "i18next:", this.logger = e ||
|
|
130
|
+
this.prefix = t.prefix || "i18next:", this.logger = e || Ke, this.options = t, this.debug = t.debug;
|
|
131
131
|
}
|
|
132
132
|
log(...e) {
|
|
133
133
|
return this.forward(e, "log", "", !0);
|
|
@@ -229,7 +229,7 @@ class ae extends W {
|
|
|
229
229
|
let a = [e, t];
|
|
230
230
|
e.indexOf(".") > -1 && (a = e.split("."), s = i, i = t, t = a[1]), this.addNamespaces(t);
|
|
231
231
|
let l = B(this.data, a) || {};
|
|
232
|
-
r.skipCopy || (i = JSON.parse(JSON.stringify(i))), s ?
|
|
232
|
+
r.skipCopy || (i = JSON.parse(JSON.stringify(i))), s ? xe(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);
|
|
@@ -254,7 +254,7 @@ class ae extends W {
|
|
|
254
254
|
return this.data;
|
|
255
255
|
}
|
|
256
256
|
}
|
|
257
|
-
var
|
|
257
|
+
var ye = {
|
|
258
258
|
processors: {},
|
|
259
259
|
addPostProcessor(o) {
|
|
260
260
|
this.processors[o.name] = o;
|
|
@@ -265,22 +265,22 @@ var xe = {
|
|
|
265
265
|
}), e;
|
|
266
266
|
}
|
|
267
267
|
};
|
|
268
|
-
const
|
|
269
|
-
function
|
|
268
|
+
const Se = Symbol("i18next/PATH_KEY");
|
|
269
|
+
function Ve() {
|
|
270
270
|
const o = [], e = /* @__PURE__ */ Object.create(null);
|
|
271
271
|
let t;
|
|
272
|
-
return e.get = (i, s) => (t?.revoke?.(), s ===
|
|
272
|
+
return e.get = (i, s) => (t?.revoke?.(), s === Se ? o : (o.push(s), t = Proxy.revocable(i, e), t.proxy)), Proxy.revocable(/* @__PURE__ */ Object.create(null), e).proxy;
|
|
273
273
|
}
|
|
274
274
|
function Z(o, e) {
|
|
275
275
|
const {
|
|
276
|
-
[
|
|
277
|
-
} = o(
|
|
276
|
+
[Se]: t
|
|
277
|
+
} = o(Ve());
|
|
278
278
|
return t.join(e?.keySeparator ?? ".");
|
|
279
279
|
}
|
|
280
280
|
const oe = {}, Y = (o) => !d(o) && typeof o != "boolean" && typeof o != "number";
|
|
281
281
|
class _ extends W {
|
|
282
282
|
constructor(e, t = {}) {
|
|
283
|
-
super(),
|
|
283
|
+
super(), Pe(["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");
|
|
284
284
|
}
|
|
285
285
|
changeLanguage(e) {
|
|
286
286
|
e && (this.language = e);
|
|
@@ -302,7 +302,7 @@ class _ extends W {
|
|
|
302
302
|
i === void 0 && (i = ":");
|
|
303
303
|
const s = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator;
|
|
304
304
|
let n = t.ns || this.options.defaultNS || [];
|
|
305
|
-
const r = i && e.indexOf(i) > -1, a = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !
|
|
305
|
+
const r = i && e.indexOf(i) > -1, a = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !De(e, i, s);
|
|
306
306
|
if (r && !a) {
|
|
307
307
|
const l = e.match(this.interpolator.nestingRegexp);
|
|
308
308
|
if (l && l.length > 0)
|
|
@@ -359,8 +359,8 @@ class _ extends W {
|
|
|
359
359
|
}) : "", X = O && !s.ordinal && s.count === 0, k = X && s[`defaultValue${this.options.pluralSeparator}zero`] || s[`defaultValue${j}`] || s[`defaultValue${I}`] || s.defaultValue;
|
|
360
360
|
let v = c;
|
|
361
361
|
E && !c && N && (v = k);
|
|
362
|
-
const
|
|
363
|
-
if (E && v &&
|
|
362
|
+
const Oe = Y(v), Le = Object.prototype.toString.apply(v);
|
|
363
|
+
if (E && v && Oe && L.indexOf(Le) < 0 && !(d(y) && Array.isArray(v))) {
|
|
364
364
|
if (!s.returnObjects && !this.options.returnObjects) {
|
|
365
365
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
366
366
|
const R = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(x, v, {
|
|
@@ -455,7 +455,7 @@ class _ extends W {
|
|
|
455
455
|
!i.lng && s && s.res && (i.lng = this.language || s.usedLng), i.nest !== !1 && (e = this.interpolator.nest(e, (...f) => n?.[0] === f[0] && !i.context ? (this.logger.warn(`It seems you are nesting recursively key: ${f[0]} in key: ${t[0]}`), null) : this.translate(...f, t), i)), i.interpolation && this.interpolator.reset();
|
|
456
456
|
}
|
|
457
457
|
const r = i.postProcess || this.options.postProcess, a = d(r) ? [r] : r;
|
|
458
|
-
return e != null && a?.length && i.applyPostProcessor !== !1 && (e =
|
|
458
|
+
return e != null && a?.length && i.applyPostProcessor !== !1 && (e = ye.handle(a, e, t, this.options && this.options.postProcessPassResolved ? {
|
|
459
459
|
i18nResolved: {
|
|
460
460
|
...s,
|
|
461
461
|
usedParams: this.getUsedParamsDetails(i)
|
|
@@ -607,7 +607,7 @@ const ue = {
|
|
|
607
607
|
pluralCategories: ["one", "other"]
|
|
608
608
|
})
|
|
609
609
|
};
|
|
610
|
-
class
|
|
610
|
+
class Ae {
|
|
611
611
|
constructor(e, t = {}) {
|
|
612
612
|
this.languageUtils = e, this.options = t, this.logger = P.create("pluralResolver"), this.pluralRulesCache = {};
|
|
613
613
|
}
|
|
@@ -655,10 +655,10 @@ class Ve {
|
|
|
655
655
|
}
|
|
656
656
|
}
|
|
657
657
|
const he = (o, e, t, i = ".", s = !0) => {
|
|
658
|
-
let n =
|
|
658
|
+
let n = ke(o, e, t);
|
|
659
659
|
return !n && s && d(t) && (n = G(o, t, i), n === void 0 && (n = G(e, t, i))), n;
|
|
660
660
|
}, Q = (o) => o.replace(/\$/g, "$$$$");
|
|
661
|
-
class
|
|
661
|
+
class ce {
|
|
662
662
|
constructor(e = {}) {
|
|
663
663
|
this.logger = P.create("interpolator"), this.options = e, this.format = e?.interpolation?.format || ((t) => t), this.init(e);
|
|
664
664
|
}
|
|
@@ -685,7 +685,7 @@ class Ae {
|
|
|
685
685
|
maxReplaces: L,
|
|
686
686
|
alwaysFormat: y
|
|
687
687
|
} = e.interpolation;
|
|
688
|
-
this.escape = t !== void 0 ? t :
|
|
688
|
+
this.escape = t !== void 0 ? t : Fe, this.escapeValue = i !== void 0 ? i : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = n ? T(n) : r || "{{", this.suffix = a ? T(a) : l || "}}", this.formatSeparator = u || ",", this.unescapePrefix = h ? "" : f || "-", this.unescapeSuffix = this.unescapePrefix ? "" : h || "", this.nestingPrefix = p ? T(p) : g || T("$t("), this.nestingSuffix = c ? T(c) : x || T(")"), this.nestingOptionsSeparator = S || ",", this.maxReplaces = L || 1e3, this.alwaysFormat = y !== void 0 ? y : !1, this.resetRegExp();
|
|
689
689
|
}
|
|
690
690
|
reset() {
|
|
691
691
|
this.options && this.init(this.options);
|
|
@@ -794,7 +794,7 @@ const Ue = (o) => {
|
|
|
794
794
|
formatName: e,
|
|
795
795
|
formatOptions: t
|
|
796
796
|
};
|
|
797
|
-
},
|
|
797
|
+
}, de = (o) => {
|
|
798
798
|
const e = {};
|
|
799
799
|
return (t, i, s) => {
|
|
800
800
|
let n = s;
|
|
@@ -815,7 +815,7 @@ class He {
|
|
|
815
815
|
interpolation: {}
|
|
816
816
|
}) {
|
|
817
817
|
this.formatSeparator = t.interpolation.formatSeparator || ",";
|
|
818
|
-
const i = t.cacheInBuiltFormats ?
|
|
818
|
+
const i = t.cacheInBuiltFormats ? de : Me;
|
|
819
819
|
this.formats = {
|
|
820
820
|
number: i((s, n) => {
|
|
821
821
|
const r = new Intl.NumberFormat(s, {
|
|
@@ -854,7 +854,7 @@ class He {
|
|
|
854
854
|
this.formats[e.toLowerCase().trim()] = t;
|
|
855
855
|
}
|
|
856
856
|
addCached(e, t) {
|
|
857
|
-
this.formats[e.toLowerCase().trim()] =
|
|
857
|
+
this.formats[e.toLowerCase().trim()] = de(t);
|
|
858
858
|
}
|
|
859
859
|
format(e, t, i, s = {}) {
|
|
860
860
|
const n = t.split(this.formatSeparator);
|
|
@@ -921,7 +921,7 @@ class Be extends W {
|
|
|
921
921
|
}), this.state[e] = t ? -1 : 2, t && i && (this.state[e] = 0);
|
|
922
922
|
const a = {};
|
|
923
923
|
this.queue.forEach((l) => {
|
|
924
|
-
|
|
924
|
+
Ne(l.loaded, [n], r), ze(l, e), t && l.errors.push(t), l.pendingCount === 0 && !l.done && (Object.keys(l.loaded).forEach((u) => {
|
|
925
925
|
a[u] || (a[u] = {});
|
|
926
926
|
const h = l.loaded[u];
|
|
927
927
|
h.length && h.forEach((f) => {
|
|
@@ -1019,7 +1019,7 @@ class Be extends W {
|
|
|
1019
1019
|
}
|
|
1020
1020
|
}
|
|
1021
1021
|
}
|
|
1022
|
-
const
|
|
1022
|
+
const ge = () => ({
|
|
1023
1023
|
debug: !1,
|
|
1024
1024
|
initAsync: !0,
|
|
1025
1025
|
ns: ["translation"],
|
|
@@ -1076,7 +1076,7 @@ const de = () => ({
|
|
|
1076
1076
|
skipOnVariables: !0
|
|
1077
1077
|
},
|
|
1078
1078
|
cacheInBuiltFormats: !0
|
|
1079
|
-
}),
|
|
1079
|
+
}), pe = (o) => (d(o.ns) && (o.ns = [o.ns]), d(o.fallbackLng) && (o.fallbackLng = [o.fallbackLng]), d(o.fallbackNS) && (o.fallbackNS = [o.fallbackNS]), o.supportedLngs?.indexOf?.("cimode") < 0 && (o.supportedLngs = o.supportedLngs.concat(["cimode"])), typeof o.initImmediate == "boolean" && (o.initAsync = o.initImmediate), o), z = () => {
|
|
1080
1080
|
}, Je = (o) => {
|
|
1081
1081
|
Object.getOwnPropertyNames(Object.getPrototypeOf(o)).forEach((t) => {
|
|
1082
1082
|
typeof o[t] == "function" && (o[t] = o[t].bind(o));
|
|
@@ -1084,7 +1084,7 @@ const de = () => ({
|
|
|
1084
1084
|
};
|
|
1085
1085
|
class U extends W {
|
|
1086
1086
|
constructor(e = {}, t) {
|
|
1087
|
-
if (super(), this.options =
|
|
1087
|
+
if (super(), this.options = pe(e), this.services = {}, this.logger = P, this.modules = {
|
|
1088
1088
|
external: []
|
|
1089
1089
|
}, Je(this), t && !this.isInitialized && !e.isClone) {
|
|
1090
1090
|
if (!this.options.initAsync)
|
|
@@ -1096,11 +1096,11 @@ class U extends W {
|
|
|
1096
1096
|
}
|
|
1097
1097
|
init(e = {}, t) {
|
|
1098
1098
|
this.isInitializing = !0, typeof e == "function" && (t = e, e = {}), e.defaultNS == null && e.ns && (d(e.ns) ? e.defaultNS = e.ns : e.ns.indexOf("translation") < 0 && (e.defaultNS = e.ns[0]));
|
|
1099
|
-
const i =
|
|
1099
|
+
const i = ge();
|
|
1100
1100
|
this.options = {
|
|
1101
1101
|
...i,
|
|
1102
1102
|
...this.options,
|
|
1103
|
-
...
|
|
1103
|
+
...pe(e)
|
|
1104
1104
|
}, this.options.interpolation = {
|
|
1105
1105
|
...i.interpolation,
|
|
1106
1106
|
...this.options.interpolation
|
|
@@ -1113,10 +1113,10 @@ class U extends W {
|
|
|
1113
1113
|
const h = new le(this.options);
|
|
1114
1114
|
this.store = new ae(this.options.resources, this.options);
|
|
1115
1115
|
const f = this.services;
|
|
1116
|
-
f.logger = P, f.resourceStore = this.store, f.languageUtils = h, f.pluralResolver = new
|
|
1116
|
+
f.logger = P, f.resourceStore = this.store, f.languageUtils = h, f.pluralResolver = new Ae(h, {
|
|
1117
1117
|
prepend: this.options.pluralSeparator,
|
|
1118
1118
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
|
1119
|
-
}), this.options.interpolation.format && this.options.interpolation.format !== i.interpolation.format && this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"), u && (!this.options.interpolation.format || this.options.interpolation.format === i.interpolation.format) && (f.formatter = s(u), f.formatter.init && f.formatter.init(f, this.options), this.options.interpolation.format = f.formatter.format.bind(f.formatter)), f.interpolator = new
|
|
1119
|
+
}), this.options.interpolation.format && this.options.interpolation.format !== i.interpolation.format && this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"), u && (!this.options.interpolation.format || this.options.interpolation.format === i.interpolation.format) && (f.formatter = s(u), f.formatter.init && f.formatter.init(f, this.options), this.options.interpolation.format = f.formatter.format.bind(f.formatter)), f.interpolator = new ce(this.options), f.utils = {
|
|
1120
1120
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
|
1121
1121
|
}, f.backendConnector = new Be(s(this.modules.backend), f.resourceStore, f, this.options), f.backendConnector.on("*", (g, ...c) => {
|
|
1122
1122
|
this.emit(g, ...c);
|
|
@@ -1170,7 +1170,7 @@ class U extends W {
|
|
|
1170
1170
|
use(e) {
|
|
1171
1171
|
if (!e) throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
|
|
1172
1172
|
if (!e.type) throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
|
|
1173
|
-
return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" &&
|
|
1173
|
+
return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" && ye.addPostProcessor(e), e.type === "formatter" && (this.modules.formatter = e), e.type === "3rdParty" && this.modules.external.push(e), this;
|
|
1174
1174
|
}
|
|
1175
1175
|
setResolvedLanguage(e) {
|
|
1176
1176
|
if (!(!e || !this.languages) && !(["cimode", "dev"].indexOf(e) > -1)) {
|
|
@@ -1271,7 +1271,7 @@ class U extends W {
|
|
|
1271
1271
|
}
|
|
1272
1272
|
} catch {
|
|
1273
1273
|
}
|
|
1274
|
-
const t = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], i = this.services?.languageUtils || new le(
|
|
1274
|
+
const t = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], i = this.services?.languageUtils || new le(ge());
|
|
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) {
|
|
@@ -1300,7 +1300,7 @@ class U extends W {
|
|
|
1300
1300
|
}, h), l[u]), l), {});
|
|
1301
1301
|
n.store = new ae(a, s), n.services.resourceStore = n.store;
|
|
1302
1302
|
}
|
|
1303
|
-
return n.translator = new _(n.services, s), n.translator.on("*", (a, ...l) => {
|
|
1303
|
+
return e.interpolation && (n.services.interpolator = new ce(s)), n.translator = new _(n.services, s), n.translator.on("*", (a, ...l) => {
|
|
1304
1304
|
n.emit(a, ...l);
|
|
1305
1305
|
}), n.init(s, t), n.translator.options = s, n.translator.backendConnector.services.utils = {
|
|
1306
1306
|
hasLoadedNamespace: n.hasLoadedNamespace.bind(n)
|
|
@@ -1331,14 +1331,14 @@ m.setDefaultNamespace;
|
|
|
1331
1331
|
m.hasLoadedNamespace;
|
|
1332
1332
|
m.loadNamespaces;
|
|
1333
1333
|
m.loadLanguages;
|
|
1334
|
-
var
|
|
1334
|
+
var be = Symbol();
|
|
1335
1335
|
function qe(o, {
|
|
1336
1336
|
i18next: e,
|
|
1337
1337
|
rerenderOn: t = ["languageChanged", "loaded", "added", "removed"],
|
|
1338
1338
|
slotStart: i = "{",
|
|
1339
1339
|
slotEnd: s = "}"
|
|
1340
1340
|
}) {
|
|
1341
|
-
const n =
|
|
1341
|
+
const n = we(/* @__PURE__ */ new Date()), r = () => ve(() => {
|
|
1342
1342
|
n.value = /* @__PURE__ */ new Date();
|
|
1343
1343
|
}), a = () => n.value;
|
|
1344
1344
|
t.forEach((h) => {
|
|
@@ -1354,7 +1354,7 @@ function qe(o, {
|
|
|
1354
1354
|
}
|
|
1355
1355
|
}), o.component("i18next", Ye);
|
|
1356
1356
|
const l = () => e.isInitialized;
|
|
1357
|
-
o.config.globalProperties.$t =
|
|
1357
|
+
o.config.globalProperties.$t = me(
|
|
1358
1358
|
e.t.bind(e),
|
|
1359
1359
|
a,
|
|
1360
1360
|
l
|
|
@@ -1364,15 +1364,15 @@ function qe(o, {
|
|
|
1364
1364
|
return a(), Reflect.get(h, f);
|
|
1365
1365
|
}
|
|
1366
1366
|
});
|
|
1367
|
-
o.config.globalProperties.$i18next = u, o.provide(
|
|
1367
|
+
o.config.globalProperties.$i18next = u, o.provide(be, {
|
|
1368
1368
|
i18next: u,
|
|
1369
1369
|
slotPattern: We(i, s),
|
|
1370
1370
|
withAccessRecording(h, f) {
|
|
1371
|
-
return
|
|
1371
|
+
return me(h, a, f);
|
|
1372
1372
|
}
|
|
1373
1373
|
});
|
|
1374
1374
|
}
|
|
1375
|
-
function
|
|
1375
|
+
function me(o, e, t) {
|
|
1376
1376
|
return new Proxy(o, {
|
|
1377
1377
|
apply: function(i, s, n) {
|
|
1378
1378
|
return e(), t() ? Reflect.apply(i, s, n) : "";
|
|
@@ -1380,7 +1380,7 @@ function pe(o, e, t) {
|
|
|
1380
1380
|
});
|
|
1381
1381
|
}
|
|
1382
1382
|
function _e() {
|
|
1383
|
-
const o =
|
|
1383
|
+
const o = Ce(be);
|
|
1384
1384
|
if (!o)
|
|
1385
1385
|
throw new Error(
|
|
1386
1386
|
"i18next-vue: Make sure to register the i18next-vue plugin using app.use(...)."
|
|
@@ -1391,7 +1391,7 @@ function We(o, e) {
|
|
|
1391
1391
|
const t = `${o}\\s*([a-z0-9\\-]+)\\s*${e}`;
|
|
1392
1392
|
return new RegExp(t, "gi");
|
|
1393
1393
|
}
|
|
1394
|
-
var Ye =
|
|
1394
|
+
var Ye = Re({
|
|
1395
1395
|
props: {
|
|
1396
1396
|
translation: {
|
|
1397
1397
|
type: String,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { d as B, r as I,
|
|
2
|
-
import { u as
|
|
3
|
-
function D(e, s =
|
|
1
|
+
import { d as B, r as I, L, c as g, o as u, J as x, q as p, x as f, y as b, a as h, m as T, A as $, _ as N, k as d, M as E, g as F, F as k, b as A, e as H, f as P } from "./_plugin-vue_export-helper-D7ghZaw4.js";
|
|
2
|
+
import { u as K, a as R } from "./normalize-props-AlmAfi_u.js";
|
|
3
|
+
function D(e, s = J) {
|
|
4
4
|
const a = [...e];
|
|
5
5
|
for (let o = a.length - 1; o > 0; o--) {
|
|
6
6
|
const l = s() % (o + 1);
|
|
@@ -8,10 +8,10 @@ function D(e, s = G) {
|
|
|
8
8
|
}
|
|
9
9
|
return a;
|
|
10
10
|
}
|
|
11
|
-
function
|
|
11
|
+
function J() {
|
|
12
12
|
return Math.floor(Math.random() * 2 ** 32);
|
|
13
13
|
}
|
|
14
|
-
const
|
|
14
|
+
const V = ["aria-labelledby", "aria-selected", "tabindex"], G = { key: 0 }, U = ["id"], W = ["id"], X = /* @__PURE__ */ B({
|
|
15
15
|
__name: "ImageOption.ce",
|
|
16
16
|
props: {
|
|
17
17
|
choice: { type: Object },
|
|
@@ -28,7 +28,7 @@ const J = ["aria-labelledby", "aria-selected", "tabindex"], V = { key: 0 }, U =
|
|
|
28
28
|
o.value.focus();
|
|
29
29
|
}
|
|
30
30
|
s({ focus: l });
|
|
31
|
-
const n =
|
|
31
|
+
const n = L();
|
|
32
32
|
return (c, t) => (u(), g("div", {
|
|
33
33
|
ref_key: "el",
|
|
34
34
|
ref: o,
|
|
@@ -44,7 +44,7 @@ const J = ["aria-labelledby", "aria-selected", "tabindex"], V = { key: 0 }, U =
|
|
|
44
44
|
t[3] || (t[3] = x(p((r) => c.$emit("next"), ["stop", "prevent"]), ["down", "right"]))
|
|
45
45
|
]
|
|
46
46
|
}, [
|
|
47
|
-
e.choice.image ? (u(), g("figure",
|
|
47
|
+
e.choice.image ? (u(), g("figure", G, [
|
|
48
48
|
h("img", T(e.choice.image, {
|
|
49
49
|
class: e.imageClass,
|
|
50
50
|
alt: ""
|
|
@@ -57,9 +57,9 @@ const J = ["aria-labelledby", "aria-selected", "tabindex"], V = { key: 0 }, U =
|
|
|
57
57
|
key: 1,
|
|
58
58
|
id: f(n)
|
|
59
59
|
}, $(e.choice.name), 9, W))
|
|
60
|
-
], 42,
|
|
60
|
+
], 42, V));
|
|
61
61
|
}
|
|
62
|
-
}), Y = '.image-option{display:flex;position:relative;flex-direction:column;align-items:center;justify-content:center;margin:.5rem;border:solid 2px #c1c7d0;border-radius:10px;background:#fff;width:calc(20% - 2em);min-width:150px;padding:1rem}.image-option--max4{width:calc(25% - 2em);min-width:175px}.image-option--max3{width:calc(33% - 2em)}.image-option--max2{width:calc(50% - 2em);min-width:300px}.image-option--max1{width:calc(100% - 4em);min-width:300px}.image-option:hover{cursor:pointer;box-shadow:0 3px 10px #0000001a;transform:scale(1.04);transition:transform ease-in .1s}.image-option:focus{outline:none;box-shadow:5px 5px #ffbe00,-5px 5px #ffbe00,5px -5px #ffbe00,-5px -5px #ffbe00}.image-option[aria-selected=true]{border-color:#3d68ff}.image-option[aria-selected=true]:after{content:"";position:absolute;width:calc(100% + 2px);height:calc(100% + 2px);background:#3d68ff4d;border-radius:10px;z-index:3}.image-option figure{align-items:center;display:flex;flex-direction:column;height:100%;justify-content:center;margin:0;text-align:center;width:100%}.image-option figure img{max-width:100%;height:auto}.image-option figure img.icon{max-height:100px;width:auto}.image-option figure img.medium{max-width:50%;height:auto}.image-option figure figcaption{margin:1ex}', Z = /* @__PURE__ */
|
|
62
|
+
}), Y = '.image-option{display:flex;position:relative;flex-direction:column;align-items:center;justify-content:center;margin:.5rem;border:solid 2px #c1c7d0;border-radius:10px;background:#fff;width:calc(20% - 2em);min-width:150px;padding:1rem}.image-option--max4{width:calc(25% - 2em);min-width:175px}.image-option--max3{width:calc(33% - 2em)}.image-option--max2{width:calc(50% - 2em);min-width:300px}.image-option--max1{width:calc(100% - 4em);min-width:300px}.image-option:hover{cursor:pointer;box-shadow:0 3px 10px #0000001a;transform:scale(1.04);transition:transform ease-in .1s}.image-option:focus{outline:none;box-shadow:5px 5px #ffbe00,-5px 5px #ffbe00,5px -5px #ffbe00,-5px -5px #ffbe00}.image-option[aria-selected=true]{border-color:#3d68ff}.image-option[aria-selected=true]:after{content:"";position:absolute;width:calc(100% + 2px);height:calc(100% + 2px);background:#3d68ff4d;border-radius:10px;z-index:3}.image-option figure{align-items:center;display:flex;flex-direction:column;height:100%;justify-content:center;margin:0;text-align:center;width:100%}.image-option figure img{max-width:100%;height:auto}.image-option figure img.icon{max-height:100px;width:auto}.image-option figure img.medium{max-width:50%;height:auto}.image-option figure figcaption{margin:1ex}', Z = /* @__PURE__ */ N(X, [["styles", [Y]]]), _ = ["id", "innerHTML"], ee = ["aria-multiselectable", "aria-labelledby"], ie = /* @__PURE__ */ B({
|
|
63
63
|
__name: "ImageQuiz.ce",
|
|
64
64
|
props: {
|
|
65
65
|
multiple: { type: Boolean, default: !1 },
|
|
@@ -73,7 +73,7 @@ const J = ["aria-labelledby", "aria-selected", "tabindex"], V = { key: 0 }, U =
|
|
|
73
73
|
},
|
|
74
74
|
emits: ["answer"],
|
|
75
75
|
setup(e, { emit: s }) {
|
|
76
|
-
const a = s, o = d(() => e.hideChoicesName ? "sr-only" : ""), l = d(() => e.orderChoices ? e.choices : D(e.choices)), n = I(new Array(e.choices.length).fill(!1)), c = d(() => l.value.filter((i, C) => n.value[C])), t = d(() => c.value.map((i) => i.response ?? i.name).sort().join(",")), r =
|
|
76
|
+
const a = s, o = d(() => e.hideChoicesName ? "sr-only" : ""), l = d(() => e.orderChoices ? e.choices : D(e.choices)), n = I(new Array(e.choices.length).fill(!1)), c = d(() => l.value.filter((i, C) => n.value[C])), t = d(() => c.value.map((i) => i.response ?? i.name).sort().join(",")), r = L();
|
|
77
77
|
E(t, () => {
|
|
78
78
|
a("answer", t.value);
|
|
79
79
|
}, { immediate: !1 });
|
|
@@ -81,11 +81,11 @@ const J = ["aria-labelledby", "aria-selected", "tabindex"], V = { key: 0 }, U =
|
|
|
81
81
|
const i = n.value.indexOf(!0);
|
|
82
82
|
return i === -1 ? 0 : i;
|
|
83
83
|
}), y = F("options");
|
|
84
|
-
function
|
|
84
|
+
function w(i) {
|
|
85
85
|
e.multiple || n.value.fill(!1), n.value[i] = !n.value[i];
|
|
86
86
|
}
|
|
87
|
-
function
|
|
88
|
-
i = (i + e.choices.length) % e.choices.length, e.multiple ||
|
|
87
|
+
function v(i) {
|
|
88
|
+
i = (i + e.choices.length) % e.choices.length, e.multiple || w(i), y.value[i].focus();
|
|
89
89
|
}
|
|
90
90
|
return (i, C) => (u(), g(k, null, [
|
|
91
91
|
h("label", {
|
|
@@ -100,7 +100,7 @@ const J = ["aria-labelledby", "aria-selected", "tabindex"], V = { key: 0 }, U =
|
|
|
100
100
|
"aria-labelledby": f(r),
|
|
101
101
|
"aria-orientation": "horizontal"
|
|
102
102
|
}, [
|
|
103
|
-
(u(!0), g(k, null,
|
|
103
|
+
(u(!0), g(k, null, A(l.value, (Q, m) => (u(), H(Z, {
|
|
104
104
|
ref_for: !0,
|
|
105
105
|
ref_key: "options",
|
|
106
106
|
ref: y,
|
|
@@ -111,30 +111,30 @@ const J = ["aria-labelledby", "aria-selected", "tabindex"], V = { key: 0 }, U =
|
|
|
111
111
|
"image-class": e.imageChoicesSize,
|
|
112
112
|
selected: n.value[m],
|
|
113
113
|
"tab-focusable": m === O.value,
|
|
114
|
-
onToggle: (z) =>
|
|
115
|
-
onNext: (z) =>
|
|
116
|
-
onPrevious: (z) =>
|
|
114
|
+
onToggle: (z) => w(m),
|
|
115
|
+
onNext: (z) => v(m + 1),
|
|
116
|
+
onPrevious: (z) => v(m - 1)
|
|
117
117
|
}, null, 8, ["choice", "max-choices-per-line", "name-class", "image-class", "selected", "tab-focusable", "onToggle", "onNext", "onPrevious"]))), 128))
|
|
118
118
|
], 8, ee)
|
|
119
119
|
], 64));
|
|
120
120
|
}
|
|
121
|
-
}), te = "*{box-sizing:border-box}.image-quiz-label{font-size:1.25rem;margin:1rem 0;display:inline-block}.image-quiz{display:flex;flex-wrap:wrap;justify-content:space-around}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);border:0}", j = /* @__PURE__ */
|
|
121
|
+
}), te = "*{box-sizing:border-box}.image-quiz-label{font-size:1.25rem;margin:1rem 0;display:inline-block}.image-quiz{display:flex;flex-wrap:wrap;justify-content:space-around}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);border:0}", j = /* @__PURE__ */ N(ie, [["styles", [te]]]);
|
|
122
122
|
function S(e) {
|
|
123
123
|
return {
|
|
124
124
|
...e,
|
|
125
|
-
maxChoicesPerLine:
|
|
125
|
+
maxChoicesPerLine: K(e.maxChoicesPerLine),
|
|
126
126
|
choices: e.choices.map((s) => ({
|
|
127
127
|
...s,
|
|
128
128
|
image: R(s.image)
|
|
129
129
|
}))
|
|
130
130
|
};
|
|
131
131
|
}
|
|
132
|
-
const
|
|
133
|
-
q.prototype.normalizeProps = S;
|
|
134
|
-
window.customElements.define("image-quiz", q);
|
|
135
|
-
const M = L(j);
|
|
132
|
+
const M = P(j);
|
|
136
133
|
M.prototype.normalizeProps = S;
|
|
137
|
-
window.customElements.define("
|
|
134
|
+
window.customElements.define("image-quiz", M);
|
|
135
|
+
const q = P(j);
|
|
136
|
+
q.prototype.normalizeProps = S;
|
|
137
|
+
window.customElements.define("qcu-image", q);
|
|
138
138
|
export {
|
|
139
139
|
j as I,
|
|
140
140
|
S as n
|
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-3HDl6Z67.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
|
@@ -19,13 +19,13 @@ const n = e.object({
|
|
|
19
19
|
y2: e.number().required()
|
|
20
20
|
}).required(),
|
|
21
21
|
spot: e.object({
|
|
22
|
-
x: e.number().
|
|
23
|
-
y: e.number().
|
|
22
|
+
x: e.number().optional(),
|
|
23
|
+
y: e.number().optional()
|
|
24
24
|
}).optional(),
|
|
25
25
|
info: e.string().required(),
|
|
26
26
|
tooltipPosition: e.string().valid("bottom").optional()
|
|
27
27
|
}).required()).required().min(1)
|
|
28
|
-
}),
|
|
28
|
+
}), l = e.object({
|
|
29
29
|
titleLevel: e.number().optional(),
|
|
30
30
|
listOfProbabilityBarsLists: e.array().items(
|
|
31
31
|
e.array().items(
|
|
@@ -38,7 +38,7 @@ const n = e.object({
|
|
|
38
38
|
userMessage: e.string().required(),
|
|
39
39
|
llmMessage: e.string().required(),
|
|
40
40
|
wordsToAdd: e.array().items(e.string()).required()
|
|
41
|
-
}),
|
|
41
|
+
}), u = e.object({
|
|
42
42
|
titleLevel: e.number().optional(),
|
|
43
43
|
name: e.string().required(),
|
|
44
44
|
cardList: e.array().items(
|
|
@@ -125,7 +125,7 @@ const n = e.object({
|
|
|
125
125
|
randomSlides: e.boolean().required(),
|
|
126
126
|
titleLevel: e.number().integer().optional(),
|
|
127
127
|
disableAnimation: e.boolean().required(),
|
|
128
|
-
|
|
128
|
+
enableLoop: e.boolean().optional(),
|
|
129
129
|
imageTextDisplay: e.string().optional()
|
|
130
130
|
}).meta({ title: "pix-carousel" }).required(), h = e.object({
|
|
131
131
|
options: e.array().items(e.object({
|
|
@@ -171,7 +171,7 @@ const n = e.object({
|
|
|
171
171
|
failImage: e.string().required(),
|
|
172
172
|
infoImage: e.string().required(),
|
|
173
173
|
searchImage: e.string().required()
|
|
174
|
-
}), 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":
|
|
174
|
+
}), 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]) => [
|
|
175
175
|
s.replace(/^.*\/([^/]+)\.schema\.js$/, "$1"),
|
|
176
176
|
o
|
|
177
177
|
]));
|