@1024pix/epreuves-components 2.4.3 → 2.4.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/{ButtonTooltip.ce-CjtFa5aM.js → ButtonTooltip.ce-CZed5BUq.js} +1 -1
- package/dist/{LLMMessage.ce-Cjpb0CiE.js → LLMMessage.ce-FJCO_wvC.js} +2 -2
- package/dist/{Loading.ce-1tk4uU9c.js → Loading.ce-EWTMcywS.js} +1 -1
- package/dist/{NavigationButton.ce-CxI2QW8z.js → NavigationButton.ce-CMbVRJbG.js} +2 -2
- package/dist/{Retry-CY90VQJl.js → Retry-B27znRn6.js} +1 -1
- package/dist/{_plugin-vue_export-helper-DOoVeFcJ.js → _plugin-vue_export-helper-CJxDisp0.js} +1698 -1681
- package/dist/components/calcul-impact.ce.js.js +3 -3
- package/dist/components/capacity-calculation.ce.js.js +4 -4
- package/dist/components/clickable-image.ce.js.js +2 -2
- package/dist/components/complete-phrase.ce.js.js +4 -4
- package/dist/components/flip-cards.ce.js.js +2 -2
- package/dist/components/image-quiz.ce.js.js +3 -3
- 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 +2 -2
- package/dist/components/message-conversation.ce.js.js +61 -60
- package/dist/components/mobile-shell.ce.js.js +1 -1
- package/dist/components/phishing-message.ce.js.js +3 -3
- package/dist/components/phishing-notification.ce.js.js +5 -5
- package/dist/components/pix-article.ce.js.js +25 -23
- package/dist/components/pix-carousel.ce.js.js +232 -131
- package/dist/components/pix-cursor.ce.js.js +3 -3
- package/dist/components/qcm-deepfake.ce.js.js +4 -4
- package/dist/components/select-conversation.ce.js.js +4 -4
- package/dist/{i18n-ecSMtuba.js → i18n-Bs7vpvgi.js} +84 -100
- package/dist/{image-quiz.ce-CpI6lZ9m.js → image-quiz.ce-jh8ME9Wm.js} +2 -2
- package/dist/index.js +1 -1
- package/dist/{normalize-props-AlmAfi_u.js → normalize-props-BAFlcMqH.js} +6 -2
- package/dist/schema.js +78 -51
- package/dist/shadow-dom-Bs_4iILW.js +9 -0
- package/dist/{temporal.utils-DGOneXL8.js → temporal.utils-DBcWSjWy.js} +4 -4
- package/package.json +1 -1
- package/dist/shadow-dom-DZbyKUWP.js +0 -9
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as ve, k as Re, d as Ce, l as Pe } from "./_plugin-vue_export-helper-
|
|
1
|
+
import { s as ve, k as Re, d as Ce, l as Pe } from "./_plugin-vue_export-helper-CJxDisp0.js";
|
|
2
2
|
const d = (o) => typeof o == "string", V = () => {
|
|
3
3
|
let o, e;
|
|
4
4
|
const t = new Promise((i, s) => {
|
|
@@ -265,7 +265,7 @@ var ye = {
|
|
|
265
265
|
}), e;
|
|
266
266
|
}
|
|
267
267
|
};
|
|
268
|
-
const Se = Symbol("i18next/PATH_KEY");
|
|
268
|
+
const Se = /* @__PURE__ */ Symbol("i18next/PATH_KEY");
|
|
269
269
|
function Ae() {
|
|
270
270
|
const o = [], e = /* @__PURE__ */ Object.create(null);
|
|
271
271
|
let t;
|
|
@@ -335,9 +335,9 @@ class _ extends W {
|
|
|
335
335
|
} = this.extractFromKey(e[e.length - 1], s), u = l[l.length - 1];
|
|
336
336
|
let h = s.nsSeparator !== void 0 ? s.nsSeparator : this.options.nsSeparator;
|
|
337
337
|
h === void 0 && (h = ":");
|
|
338
|
-
const f = s.lng || this.language,
|
|
338
|
+
const f = s.lng || this.language, g = s.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
|
|
339
339
|
if (f?.toLowerCase() === "cimode")
|
|
340
|
-
return
|
|
340
|
+
return g ? n ? {
|
|
341
341
|
res: `${u}${h}${a}`,
|
|
342
342
|
usedKey: a,
|
|
343
343
|
exactUsedKey: a,
|
|
@@ -352,9 +352,9 @@ class _ extends W {
|
|
|
352
352
|
usedNS: u,
|
|
353
353
|
usedParams: this.getUsedParamsDetails(s)
|
|
354
354
|
} : a;
|
|
355
|
-
const
|
|
356
|
-
let c =
|
|
357
|
-
const x =
|
|
355
|
+
const p = this.resolve(e, s);
|
|
356
|
+
let c = p?.res;
|
|
357
|
+
const x = p?.usedKey || a, S = p?.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, {
|
|
358
358
|
ordinal: !1
|
|
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;
|
|
@@ -367,7 +367,7 @@ class _ extends W {
|
|
|
367
367
|
...s,
|
|
368
368
|
ns: l
|
|
369
369
|
}) : `key '${a} (${this.language})' returned an object instead of string.`;
|
|
370
|
-
return n ? (
|
|
370
|
+
return n ? (p.res = R, p.usedParams = this.getUsedParamsDetails(s), p) : R;
|
|
371
371
|
}
|
|
372
372
|
if (r) {
|
|
373
373
|
const R = Array.isArray(v), w = R ? [] : {}, q = R ? S : x;
|
|
@@ -418,9 +418,9 @@ class _ extends W {
|
|
|
418
418
|
});
|
|
419
419
|
}) : ee(D, a, k));
|
|
420
420
|
}
|
|
421
|
-
c = this.extendTranslation(c, e, s,
|
|
421
|
+
c = this.extendTranslation(c, e, s, p, 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));
|
|
422
422
|
}
|
|
423
|
-
return n ? (
|
|
423
|
+
return n ? (p.res = c, p.usedParams = this.getUsedParamsDetails(s), p) : c;
|
|
424
424
|
}
|
|
425
425
|
extendTranslation(e, t, i, s, n) {
|
|
426
426
|
if (this.i18nFormat?.parse)
|
|
@@ -449,8 +449,8 @@ class _ extends W {
|
|
|
449
449
|
...this.options.interpolation.defaultVariables,
|
|
450
450
|
...h
|
|
451
451
|
}), e = this.interpolator.interpolate(e, h, i.lng || this.language || s.usedLng, i), l) {
|
|
452
|
-
const f = e.match(this.interpolator.nestingRegexp),
|
|
453
|
-
u <
|
|
452
|
+
const f = e.match(this.interpolator.nestingRegexp), g = f && f.length;
|
|
453
|
+
u < g && (i.nest = !1);
|
|
454
454
|
}
|
|
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
|
}
|
|
@@ -471,7 +471,7 @@ class _ extends W {
|
|
|
471
471
|
s = h;
|
|
472
472
|
let f = u.namespaces;
|
|
473
473
|
this.options.fallbackNS && (f = f.concat(this.options.fallbackNS));
|
|
474
|
-
const
|
|
474
|
+
const g = t.count !== void 0 && !d(t.count), p = g && !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);
|
|
475
475
|
f.forEach((S) => {
|
|
476
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) => {
|
|
477
477
|
if (this.isValidLookup(i)) return;
|
|
@@ -481,11 +481,11 @@ class _ extends W {
|
|
|
481
481
|
this.i18nFormat.addLookupKeys(y, h, L, S, t);
|
|
482
482
|
else {
|
|
483
483
|
let O;
|
|
484
|
-
|
|
484
|
+
g && (O = this.pluralResolver.getSuffix(L, t.count, t));
|
|
485
485
|
const N = `${this.options.pluralSeparator}zero`, j = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
|
486
|
-
if (
|
|
486
|
+
if (g && (t.ordinal && O.indexOf(j) === 0 && y.push(h + O.replace(j, this.options.pluralSeparator)), y.push(h + O), p && y.push(h + N)), c) {
|
|
487
487
|
const I = `${h}${this.options.contextSeparator || "_"}${t.context}`;
|
|
488
|
-
y.push(I),
|
|
488
|
+
y.push(I), g && (t.ordinal && O.indexOf(j) === 0 && y.push(I + O.replace(j, this.options.pluralSeparator)), y.push(I + O), p && y.push(I + N));
|
|
489
489
|
}
|
|
490
490
|
}
|
|
491
491
|
let E;
|
|
@@ -677,15 +677,15 @@ class ce {
|
|
|
677
677
|
formatSeparator: u,
|
|
678
678
|
unescapeSuffix: h,
|
|
679
679
|
unescapePrefix: f,
|
|
680
|
-
nestingPrefix:
|
|
681
|
-
nestingPrefixEscaped:
|
|
680
|
+
nestingPrefix: g,
|
|
681
|
+
nestingPrefixEscaped: p,
|
|
682
682
|
nestingSuffix: c,
|
|
683
683
|
nestingSuffixEscaped: x,
|
|
684
684
|
nestingOptionsSeparator: S,
|
|
685
685
|
maxReplaces: L,
|
|
686
686
|
alwaysFormat: y
|
|
687
687
|
} = e.interpolation;
|
|
688
|
-
this.escape = t !== void 0 ? t : je, 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 =
|
|
688
|
+
this.escape = t !== void 0 ? t : je, 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 = g ? T(g) : p || 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);
|
|
@@ -696,16 +696,16 @@ class ce {
|
|
|
696
696
|
}
|
|
697
697
|
interpolate(e, t, i, s) {
|
|
698
698
|
let n, r, a;
|
|
699
|
-
const l = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, u = (
|
|
700
|
-
if (
|
|
701
|
-
const L = he(t, l,
|
|
699
|
+
const l = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, u = (p) => {
|
|
700
|
+
if (p.indexOf(this.formatSeparator) < 0) {
|
|
701
|
+
const L = he(t, l, p, this.options.keySeparator, this.options.ignoreJSONStructure);
|
|
702
702
|
return this.alwaysFormat ? this.format(L, void 0, i, {
|
|
703
703
|
...s,
|
|
704
704
|
...t,
|
|
705
|
-
interpolationkey:
|
|
705
|
+
interpolationkey: p
|
|
706
706
|
}) : L;
|
|
707
707
|
}
|
|
708
|
-
const c =
|
|
708
|
+
const c = p.split(this.formatSeparator), x = c.shift().trim(), S = c.join(this.formatSeparator).trim();
|
|
709
709
|
return this.format(he(t, l, x, this.options.keySeparator, this.options.ignoreJSONStructure), S, i, {
|
|
710
710
|
...s,
|
|
711
711
|
...t,
|
|
@@ -716,12 +716,12 @@ class ce {
|
|
|
716
716
|
const h = s?.missingInterpolationHandler || this.options.missingInterpolationHandler, f = s?.interpolation?.skipOnVariables !== void 0 ? s.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
|
|
717
717
|
return [{
|
|
718
718
|
regex: this.regexpUnescape,
|
|
719
|
-
safeValue: (
|
|
719
|
+
safeValue: (p) => Q(p)
|
|
720
720
|
}, {
|
|
721
721
|
regex: this.regexp,
|
|
722
|
-
safeValue: (
|
|
723
|
-
}].forEach((
|
|
724
|
-
for (a = 0; n =
|
|
722
|
+
safeValue: (p) => this.escapeValue ? Q(this.escape(p)) : Q(p)
|
|
723
|
+
}].forEach((p) => {
|
|
724
|
+
for (a = 0; n = p.regex.exec(e); ) {
|
|
725
725
|
const c = n[1].trim();
|
|
726
726
|
if (r = u(c), r === void 0)
|
|
727
727
|
if (typeof h == "function") {
|
|
@@ -735,8 +735,8 @@ class ce {
|
|
|
735
735
|
} else
|
|
736
736
|
this.logger.warn(`missed to pass in variable ${c} for interpolating ${e}`), r = "";
|
|
737
737
|
else !d(r) && !this.useRawValueToEscape && (r = se(r));
|
|
738
|
-
const x =
|
|
739
|
-
if (e = e.replace(n[0], x), f ? (
|
|
738
|
+
const x = p.safeValue(r);
|
|
739
|
+
if (e = e.replace(n[0], x), f ? (p.regex.lastIndex += r.length, p.regex.lastIndex -= n[0].length) : p.regex.lastIndex = 0, a++, a >= this.maxReplaces)
|
|
740
740
|
break;
|
|
741
741
|
}
|
|
742
742
|
}), e;
|
|
@@ -747,17 +747,17 @@ class ce {
|
|
|
747
747
|
const h = this.nestingOptionsSeparator;
|
|
748
748
|
if (l.indexOf(h) < 0) return l;
|
|
749
749
|
const f = l.split(new RegExp(`${h}[ ]*{`));
|
|
750
|
-
let
|
|
751
|
-
l = f[0],
|
|
752
|
-
const
|
|
753
|
-
((
|
|
750
|
+
let g = `{${f[1]}`;
|
|
751
|
+
l = f[0], g = this.interpolate(g, r);
|
|
752
|
+
const p = g.match(/'/g), c = g.match(/"/g);
|
|
753
|
+
((p?.length ?? 0) % 2 === 0 && !c || c.length % 2 !== 0) && (g = g.replace(/'/g, '"'));
|
|
754
754
|
try {
|
|
755
|
-
r = JSON.parse(
|
|
755
|
+
r = JSON.parse(g), u && (r = {
|
|
756
756
|
...u,
|
|
757
757
|
...r
|
|
758
758
|
});
|
|
759
759
|
} catch (x) {
|
|
760
|
-
return this.logger.warn(`failed parsing options string in nesting for key ${l}`, x), `${l}${h}${
|
|
760
|
+
return this.logger.warn(`failed parsing options string in nesting for key ${l}`, x), `${l}${h}${g}`;
|
|
761
761
|
}
|
|
762
762
|
return r.defaultValue && r.defaultValue.indexOf(this.prefix) > -1 && delete r.defaultValue, l;
|
|
763
763
|
};
|
|
@@ -870,14 +870,14 @@ class ze {
|
|
|
870
870
|
if (this.formats[u]) {
|
|
871
871
|
let f = a;
|
|
872
872
|
try {
|
|
873
|
-
const
|
|
874
|
-
f = this.formats[u](a,
|
|
873
|
+
const g = s?.formatParams?.[s.interpolationkey] || {}, p = g.locale || g.lng || s.locale || s.lng || i;
|
|
874
|
+
f = this.formats[u](a, p, {
|
|
875
875
|
...h,
|
|
876
876
|
...s,
|
|
877
|
-
...
|
|
877
|
+
...g
|
|
878
878
|
});
|
|
879
|
-
} catch (
|
|
880
|
-
this.logger.warn(
|
|
879
|
+
} catch (g) {
|
|
880
|
+
this.logger.warn(g);
|
|
881
881
|
}
|
|
882
882
|
return f;
|
|
883
883
|
} else
|
|
@@ -898,8 +898,8 @@ class Je extends W {
|
|
|
898
898
|
return e.forEach((u) => {
|
|
899
899
|
let h = !0;
|
|
900
900
|
t.forEach((f) => {
|
|
901
|
-
const
|
|
902
|
-
!i.reload && this.store.hasResourceBundle(u, f) ? this.state[
|
|
901
|
+
const g = `${u}|${f}`;
|
|
902
|
+
!i.reload && this.store.hasResourceBundle(u, f) ? this.state[g] = 2 : this.state[g] < 0 || (this.state[g] === 1 ? r[g] === void 0 && (r[g] = !0) : (this.state[g] = 1, h = !1, r[g] === void 0 && (r[g] = !0), n[g] === void 0 && (n[g] = !0), l[f] === void 0 && (l[f] = !0)));
|
|
903
903
|
}), h || (a[u] = !0);
|
|
904
904
|
}), (Object.keys(n).length || Object.keys(r).length) && this.queue.push({
|
|
905
905
|
pending: r,
|
|
@@ -1019,7 +1019,7 @@ class Je extends W {
|
|
|
1019
1019
|
}
|
|
1020
1020
|
}
|
|
1021
1021
|
}
|
|
1022
|
-
const
|
|
1022
|
+
const pe = () => ({
|
|
1023
1023
|
debug: !1,
|
|
1024
1024
|
initAsync: !0,
|
|
1025
1025
|
ns: ["translation"],
|
|
@@ -1076,7 +1076,7 @@ const ge = () => ({
|
|
|
1076
1076
|
skipOnVariables: !0
|
|
1077
1077
|
},
|
|
1078
1078
|
cacheInBuiltFormats: !0
|
|
1079
|
-
}),
|
|
1079
|
+
}), ge = (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
|
}, _e = (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 ge = () => ({
|
|
|
1084
1084
|
};
|
|
1085
1085
|
class U extends W {
|
|
1086
1086
|
constructor(e = {}, t) {
|
|
1087
|
-
if (super(), this.options =
|
|
1087
|
+
if (super(), this.options = ge(e), this.services = {}, this.logger = P, this.modules = {
|
|
1088
1088
|
external: []
|
|
1089
1089
|
}, _e(this), t && !this.isInitialized && !e.isClone) {
|
|
1090
1090
|
if (!this.options.initAsync)
|
|
@@ -1096,15 +1096,15 @@ 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 = pe();
|
|
1100
1100
|
this.options = {
|
|
1101
1101
|
...i,
|
|
1102
1102
|
...this.options,
|
|
1103
|
-
...
|
|
1103
|
+
...ge(e)
|
|
1104
1104
|
}, this.options.interpolation = {
|
|
1105
1105
|
...i.interpolation,
|
|
1106
1106
|
...this.options.interpolation
|
|
1107
|
-
}, e.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = e.keySeparator), e.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = e.nsSeparator);
|
|
1107
|
+
}, e.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = e.keySeparator), e.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = e.nsSeparator), typeof this.options.overloadTranslationOptionHandler != "function" && (this.options.overloadTranslationOptionHandler = i.overloadTranslationOptionHandler);
|
|
1108
1108
|
const s = (u) => u ? typeof u == "function" ? new u() : u : null;
|
|
1109
1109
|
if (!this.options.isClone) {
|
|
1110
1110
|
this.modules.logger ? P.init(s(this.modules.logger), this.options) : P.init(null, this.options);
|
|
@@ -1118,12 +1118,12 @@ class U extends W {
|
|
|
1118
1118
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
|
1119
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
|
-
}, f.backendConnector = new Je(s(this.modules.backend), f.resourceStore, f, this.options), f.backendConnector.on("*", (
|
|
1122
|
-
this.emit(
|
|
1123
|
-
}), this.modules.languageDetector && (f.languageDetector = s(this.modules.languageDetector), f.languageDetector.init && f.languageDetector.init(f, this.options.detection, this.options)), this.modules.i18nFormat && (f.i18nFormat = s(this.modules.i18nFormat), f.i18nFormat.init && f.i18nFormat.init(this)), this.translator = new _(this.services, this.options), this.translator.on("*", (
|
|
1124
|
-
this.emit(
|
|
1125
|
-
}), this.modules.external.forEach((
|
|
1126
|
-
|
|
1121
|
+
}, f.backendConnector = new Je(s(this.modules.backend), f.resourceStore, f, this.options), f.backendConnector.on("*", (p, ...c) => {
|
|
1122
|
+
this.emit(p, ...c);
|
|
1123
|
+
}), this.modules.languageDetector && (f.languageDetector = s(this.modules.languageDetector), f.languageDetector.init && f.languageDetector.init(f, this.options.detection, this.options)), this.modules.i18nFormat && (f.i18nFormat = s(this.modules.i18nFormat), f.i18nFormat.init && f.i18nFormat.init(this)), this.translator = new _(this.services, this.options), this.translator.on("*", (p, ...c) => {
|
|
1124
|
+
this.emit(p, ...c);
|
|
1125
|
+
}), this.modules.external.forEach((p) => {
|
|
1126
|
+
p.init && p.init(this);
|
|
1127
1127
|
});
|
|
1128
1128
|
}
|
|
1129
1129
|
if (this.format = this.options.interpolation.format, t || (t = z), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
|
|
@@ -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(pe());
|
|
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) {
|
|
@@ -1331,22 +1331,21 @@ m.setDefaultNamespace;
|
|
|
1331
1331
|
m.hasLoadedNamespace;
|
|
1332
1332
|
m.loadNamespaces;
|
|
1333
1333
|
m.loadLanguages;
|
|
1334
|
-
|
|
1335
|
-
function et(o, {
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
}) {
|
|
1334
|
+
const be = /* @__PURE__ */ Symbol();
|
|
1335
|
+
function et(o, { i18next: e, rerenderOn: t = [
|
|
1336
|
+
"languageChanged",
|
|
1337
|
+
"loaded",
|
|
1338
|
+
"added",
|
|
1339
|
+
"removed"
|
|
1340
|
+
], slotStart: i = "{", slotEnd: s = "}" }) {
|
|
1341
1341
|
const n = ve(/* @__PURE__ */ new Date()), r = () => Re(() => {
|
|
1342
1342
|
n.value = /* @__PURE__ */ new Date();
|
|
1343
1343
|
}), a = () => n.value;
|
|
1344
1344
|
t.forEach((h) => {
|
|
1345
|
-
var f;
|
|
1346
1345
|
switch (h) {
|
|
1347
1346
|
case "added":
|
|
1348
1347
|
case "removed":
|
|
1349
|
-
|
|
1348
|
+
e.store?.on(h, r);
|
|
1350
1349
|
break;
|
|
1351
1350
|
default:
|
|
1352
1351
|
e.on(h, r);
|
|
@@ -1354,16 +1353,10 @@ function et(o, {
|
|
|
1354
1353
|
}
|
|
1355
1354
|
}), o.component("i18next", Qe);
|
|
1356
1355
|
const l = () => e.isInitialized;
|
|
1357
|
-
o.config.globalProperties.$t = me(
|
|
1358
|
-
|
|
1359
|
-
a,
|
|
1360
|
-
|
|
1361
|
-
);
|
|
1362
|
-
const u = new Proxy(e, {
|
|
1363
|
-
get(h, f) {
|
|
1364
|
-
return a(), Reflect.get(h, f);
|
|
1365
|
-
}
|
|
1366
|
-
});
|
|
1356
|
+
o.config.globalProperties.$t = me(e.t.bind(e), a, l);
|
|
1357
|
+
const u = new Proxy(e, { get(h, f) {
|
|
1358
|
+
return a(), Reflect.get(h, f);
|
|
1359
|
+
} });
|
|
1367
1360
|
o.config.globalProperties.$i18next = u, o.provide(be, {
|
|
1368
1361
|
i18next: u,
|
|
1369
1362
|
slotPattern: Ye(i, s),
|
|
@@ -1375,7 +1368,7 @@ function et(o, {
|
|
|
1375
1368
|
function tt(o, e) {
|
|
1376
1369
|
const { i18next: t, withAccessRecording: i } = Oe();
|
|
1377
1370
|
let s;
|
|
1378
|
-
return s = t.getFixedT(null, null,
|
|
1371
|
+
return s = t.getFixedT(null, null, e?.keyPrefix), {
|
|
1379
1372
|
i18next: t,
|
|
1380
1373
|
t: i(s, We(t, o))
|
|
1381
1374
|
};
|
|
@@ -1383,41 +1376,33 @@ function tt(o, e) {
|
|
|
1383
1376
|
function We(o, e = []) {
|
|
1384
1377
|
let t;
|
|
1385
1378
|
return () => {
|
|
1386
|
-
if (t === void 0)
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
return !1;
|
|
1379
|
+
if (t === void 0) if (o.isInitialized) {
|
|
1380
|
+
const i = (typeof e == "string" ? [e] : e).filter((s) => !o.hasLoadedNamespace(s));
|
|
1381
|
+
i.length ? (t = !1, o.loadNamespaces(i).then(() => t = !0)) : t = !0;
|
|
1382
|
+
} else
|
|
1383
|
+
return !1;
|
|
1392
1384
|
return t;
|
|
1393
1385
|
};
|
|
1394
1386
|
}
|
|
1395
1387
|
function me(o, e, t) {
|
|
1396
|
-
return new Proxy(o, {
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
}
|
|
1400
|
-
});
|
|
1388
|
+
return new Proxy(o, { apply: function(i, s, n) {
|
|
1389
|
+
return e(), t() ? Reflect.apply(i, s, n) : "";
|
|
1390
|
+
} });
|
|
1401
1391
|
}
|
|
1402
1392
|
function Oe() {
|
|
1403
1393
|
const o = Pe(be);
|
|
1404
|
-
if (!o)
|
|
1405
|
-
throw new Error(
|
|
1406
|
-
"i18next-vue: Make sure to register the i18next-vue plugin using app.use(...)."
|
|
1407
|
-
);
|
|
1394
|
+
if (!o) throw new Error("i18next-vue: Make sure to register the i18next-vue plugin using app.use(...).");
|
|
1408
1395
|
return o;
|
|
1409
1396
|
}
|
|
1410
1397
|
function Ye(o, e) {
|
|
1411
1398
|
const t = `${o}\\s*([a-z0-9\\-]+)\\s*${e}`;
|
|
1412
1399
|
return new RegExp(t, "gi");
|
|
1413
1400
|
}
|
|
1414
|
-
|
|
1415
|
-
props: {
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
}
|
|
1420
|
-
},
|
|
1401
|
+
const Qe = Ce({
|
|
1402
|
+
props: { translation: {
|
|
1403
|
+
type: String,
|
|
1404
|
+
required: !0
|
|
1405
|
+
} },
|
|
1421
1406
|
setup(o, { slots: e }) {
|
|
1422
1407
|
const { slotPattern: t } = Oe();
|
|
1423
1408
|
return () => {
|
|
@@ -1431,8 +1416,7 @@ var Qe = Ce({
|
|
|
1431
1416
|
return s.push(i.substring(r)), s;
|
|
1432
1417
|
};
|
|
1433
1418
|
}
|
|
1434
|
-
});
|
|
1435
|
-
const Ge = "translation";
|
|
1419
|
+
}), Ge = "translation";
|
|
1436
1420
|
async function st(o) {
|
|
1437
1421
|
for (const [e, t] of Object.entries(o)) {
|
|
1438
1422
|
const i = e.match(/\/([^/]+)\.json$/)[1];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as N, r as B, g as I, c as g, o as u, L as x, i as p, h as f, n as b, a as h, m as T, t as $, _ as L, y as d, N as E, q as F, F as k, b as A, e as H, f as P } from "./_plugin-vue_export-helper-
|
|
2
|
-
import { u as K, a as R } from "./normalize-props-
|
|
1
|
+
import { d as N, r as B, g as I, c as g, o as u, L as x, i as p, h as f, n as b, a as h, m as T, t as $, _ as L, y as d, N as E, q as F, F as k, b as A, e as H, f as P } from "./_plugin-vue_export-helper-CJxDisp0.js";
|
|
2
|
+
import { u as K, a as R } from "./normalize-props-BAFlcMqH.js";
|
|
3
3
|
function D(e, s = V) {
|
|
4
4
|
const a = [...e];
|
|
5
5
|
for (let o = a.length - 1; o > 0; o--) {
|
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-jh8ME9Wm.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";
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
function u(n) {
|
|
2
2
|
return n === 0 ? void 0 : n;
|
|
3
3
|
}
|
|
4
|
-
function
|
|
4
|
+
function t(n) {
|
|
5
5
|
if (n) {
|
|
6
6
|
for (const e of Object.values(n))
|
|
7
7
|
if (e) return n;
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
|
+
function r(n) {
|
|
11
|
+
return n === "" ? void 0 : n;
|
|
12
|
+
}
|
|
10
13
|
export {
|
|
11
|
-
|
|
14
|
+
t as a,
|
|
15
|
+
r as b,
|
|
12
16
|
u
|
|
13
17
|
};
|