@1024pix/epreuves-components 2.2.2 → 2.2.5
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-DSYjzT9g.js → LLMMessage.ce-qbRxqNxR.js} +4 -4
- package/dist/{Loading.ce-DmUVuFq5.js → Loading.ce-CiVWBT3g.js} +1 -1
- package/dist/{NavigationButton.ce-COLdN-XJ.js → NavigationButton.ce-DF5ScHc4.js} +8 -8
- package/dist/{Retry-Df6WpF65.js → Retry-CuUMOAZi.js} +1 -1
- package/dist/{_plugin-vue_export-helper-b0PKqEbd.js → _plugin-vue_export-helper-D7ghZaw4.js} +374 -369
- package/dist/components/calcul-impact.ce.js.js +4 -4
- package/dist/components/capacity-calculation.ce.js.js +25 -25
- package/dist/components/clickable-image.ce.js.js +1 -1
- package/dist/components/complete-phrase.ce.js.js +10 -10
- package/dist/components/flip-cards.ce.js.js +7 -7
- 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 +13 -13
- package/dist/components/mobile-shell.ce.js.js +27 -0
- package/dist/components/pix-article.ce.js.js +2 -2
- package/dist/components/pix-carousel.ce.js.js +16 -16
- package/dist/components/pix-cursor.ce.js.js +19 -19
- package/dist/components/qcm-deepfake.ce.js.js +25 -25
- package/dist/{i18n-DwNjk2PP.js → i18n-DX3ApBSH.js} +53 -53
- package/dist/{image-quiz.ce-DbLH3Dkt.js → image-quiz.ce-3HDl6Z67.js} +10 -10
- package/dist/index.js +1 -1
- package/dist/schema.js +1 -1
- package/dist/{shadow-dom-CG-UQz_W.js → shadow-dom-CFAQERh6.js} +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { d as
|
|
2
|
-
import { a as G, i as w, b as
|
|
3
|
-
import { N as j } from "../NavigationButton.ce-
|
|
4
|
-
const
|
|
1
|
+
import { d as E, r as k, L as y, k as m, E as L, c as a, o as i, a as s, l as S, x as d, A as u, F as f, b, O as B, D as g, y as C, N as H, v as D, q as F, _ as P, f as q } from "../_plugin-vue_export-helper-D7ghZaw4.js";
|
|
2
|
+
import { a as G, i as w, b as R } from "../i18n-DX3ApBSH.js";
|
|
3
|
+
import { N as j } from "../NavigationButton.ce-DF5ScHc4.js";
|
|
4
|
+
const U = {}, J = {}, K = {}, Q = {
|
|
5
5
|
"pix-cursor": { confirm: "Valider", next: "Suivant", previous: "Précédent", selectAnOption: "Sélectionnez une option", youHaveChosen: "Vous avez choisi : { choice }" }
|
|
6
6
|
}, W = {}, X = {}, Y = ["for"], Z = {
|
|
7
7
|
class: "visible-options",
|
|
@@ -12,20 +12,20 @@ const R = {}, U = {}, K = {}, Q = {
|
|
|
12
12
|
}, ce = {
|
|
13
13
|
key: 0,
|
|
14
14
|
class: "confirm"
|
|
15
|
-
}, de = ["innerHTML", "aria-hidden"], ue = /* @__PURE__ */
|
|
15
|
+
}, de = ["innerHTML", "aria-hidden"], ue = /* @__PURE__ */ E({
|
|
16
16
|
__name: "PixCursor.ce",
|
|
17
17
|
props: {
|
|
18
18
|
options: { type: Array }
|
|
19
19
|
},
|
|
20
20
|
setup(n, { expose: M }) {
|
|
21
21
|
const p = n, r = k(Math.floor(p.options.length / 2)), o = k(!1), v = y(), x = y(), N = m(() => r.value === p.options.length - 1), I = m(() => r.value === 0), c = m(() => Number(r.value));
|
|
22
|
-
function
|
|
22
|
+
function O() {
|
|
23
23
|
o.value = !0;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function $() {
|
|
26
26
|
o.value || (r.value = Math.max(0, c.value - 1));
|
|
27
27
|
}
|
|
28
|
-
function
|
|
28
|
+
function z() {
|
|
29
29
|
o.value || (r.value = Math.min(p.options.length - 1, c.value + 1));
|
|
30
30
|
}
|
|
31
31
|
function _(l) {
|
|
@@ -37,10 +37,10 @@ const R = {}, U = {}, K = {}, Q = {
|
|
|
37
37
|
return M({
|
|
38
38
|
reset: T
|
|
39
39
|
}), (l, h) => {
|
|
40
|
-
const V =
|
|
40
|
+
const V = L("i18next");
|
|
41
41
|
return i(), a("form", {
|
|
42
42
|
class: "pix-cursor",
|
|
43
|
-
onSubmit:
|
|
43
|
+
onSubmit: F(O, ["prevent"])
|
|
44
44
|
}, [
|
|
45
45
|
s("div", null, [
|
|
46
46
|
s("label", {
|
|
@@ -61,7 +61,7 @@ const R = {}, U = {}, K = {}, Q = {
|
|
|
61
61
|
label: t.label
|
|
62
62
|
}, u(t.label), 9, te))), 128))
|
|
63
63
|
], 8, oe),
|
|
64
|
-
|
|
64
|
+
S(s("input", {
|
|
65
65
|
"onUpdate:modelValue": h[0] || (h[0] = (t) => r.value = t),
|
|
66
66
|
id: d(v),
|
|
67
67
|
type: "range",
|
|
@@ -70,11 +70,11 @@ const R = {}, U = {}, K = {}, Q = {
|
|
|
70
70
|
max: n.options.length - 1,
|
|
71
71
|
disabled: o.value
|
|
72
72
|
}, null, 8, ne), [
|
|
73
|
-
[
|
|
73
|
+
[B, r.value]
|
|
74
74
|
]),
|
|
75
75
|
s("div", ae, [
|
|
76
76
|
g(j, {
|
|
77
|
-
onClick:
|
|
77
|
+
onClick: $,
|
|
78
78
|
disabled: o.value || I.value,
|
|
79
79
|
label: l.$t("pix-cursor.previous"),
|
|
80
80
|
"aria-controls": d(v),
|
|
@@ -94,7 +94,7 @@ const R = {}, U = {}, K = {}, Q = {
|
|
|
94
94
|
g(V, {
|
|
95
95
|
translation: l.$t("pix-cursor.youHaveChosen")
|
|
96
96
|
}, {
|
|
97
|
-
choice:
|
|
97
|
+
choice: H(() => [
|
|
98
98
|
s("span", se, u(t.label), 1)
|
|
99
99
|
]),
|
|
100
100
|
_: 2
|
|
@@ -102,7 +102,7 @@ const R = {}, U = {}, K = {}, Q = {
|
|
|
102
102
|
], 10, re))), 128))
|
|
103
103
|
]),
|
|
104
104
|
g(j, {
|
|
105
|
-
onClick:
|
|
105
|
+
onClick: z,
|
|
106
106
|
disabled: o.value || N.value,
|
|
107
107
|
label: l.$t("pix-cursor.next"),
|
|
108
108
|
"aria-controls": d(v),
|
|
@@ -114,7 +114,7 @@ const R = {}, U = {}, K = {}, Q = {
|
|
|
114
114
|
])
|
|
115
115
|
]),
|
|
116
116
|
s("div", le, [
|
|
117
|
-
o.value ?
|
|
117
|
+
o.value ? D("", !0) : (i(), a("button", ce, u(l.$t("pix-cursor.confirm")), 1)),
|
|
118
118
|
(i(!0), a(f, null, b(n.options, (t, e) => (i(), a("p", {
|
|
119
119
|
innerHTML: t.feedback.text,
|
|
120
120
|
key: e,
|
|
@@ -128,10 +128,10 @@ const R = {}, U = {}, K = {}, Q = {
|
|
|
128
128
|
], 32);
|
|
129
129
|
};
|
|
130
130
|
}
|
|
131
|
-
}), pe = "[data-v-58e704c5]{--pix-neutral-800: #253858;font-family:Nunito,sans-serif;color:var(--pix-neutral-800)}.pix-cursor[data-v-58e704c5]{display:flex;flex-direction:column;justify-content:center;margin:auto;padding:2rem;gap:1rem;overflow:hidden}.pix-cursor p[data-v-58e704c5]{text-align:center;font-size:1.1rem}.pix-cursor .chosen-option[data-v-58e704c5]{font-weight:700}.pix-cursor .visible-options[data-v-58e704c5]{display:flex;justify-content:space-between;margin:0;padding:0}.pix-cursor .visible-options li[data-v-58e704c5]{cursor:pointer;list-style:none}.pix-cursor input[data-v-58e704c5]{width:100%}.pix-cursor .confirm[data-v-58e704c5]{padding:.75rem 1.5rem;border-radius:8px;cursor:pointer;font-weight:600;font-size:1.25rem;letter-spacing:1.1;width:fit-content;margin:auto;border:none;color:#fff;background:#4075ff;grid-row:1;grid-column:1}.pix-cursor .confirm[data-v-58e704c5]:hover{background:#355ac4;transition:background ease .1s}.pix-cursor .navigation-container[data-v-58e704c5]{display:flex;justify-content:center;align-items:center;gap:1rem}.pix-cursor .navigation-container .chosen-text-container[data-v-58e704c5]{display:grid}.pix-cursor .navigation-container .chosen-text-container p[data-v-58e704c5]{grid-row:1;grid-column:1}.pix-cursor .navigation-container .chosen-text-container p.hidden[data-v-58e704c5]{transform:translate(100vw)}.pix-cursor .footer[data-v-58e704c5]{display:grid;grid-template-columns:auto;align-items:center;justify-content:center}.pix-cursor .feedback[data-v-58e704c5]{padding:1rem 1.2rem;border-left:solid 4px;border-radius:8px;grid-column:1;grid-row:1;text-align:start;margin:0}.pix-cursor .feedback.hidden[data-v-58e704c5]{visibility:hidden;transform:translate(100vw)}.pix-cursor .feedback.good[data-v-58e704c5]{background:#e8f5e9;border-left-color:#4caf51}.pix-cursor .feedback.bad[data-v-58e704c5]{background:#ffebee;border-left-color:#f44337}.pix-cursor .feedback.neutral[data-v-58e704c5]{background:#e8f6ff;border-left-color:#464ee0}.pix-cursor .feedback.close[data-v-58e704c5]{background:#fff8e1;border-left-color:#ffc108}", ve = /* @__PURE__ */
|
|
132
|
-
G(/* @__PURE__ */ Object.assign({ "./locales/en.json":
|
|
131
|
+
}), pe = "[data-v-58e704c5]{--pix-neutral-800: #253858;font-family:Nunito,sans-serif;color:var(--pix-neutral-800)}.pix-cursor[data-v-58e704c5]{display:flex;flex-direction:column;justify-content:center;margin:auto;padding:2rem;gap:1rem;overflow:hidden}.pix-cursor p[data-v-58e704c5]{text-align:center;font-size:1.1rem}.pix-cursor .chosen-option[data-v-58e704c5]{font-weight:700}.pix-cursor .visible-options[data-v-58e704c5]{display:flex;justify-content:space-between;margin:0;padding:0}.pix-cursor .visible-options li[data-v-58e704c5]{cursor:pointer;list-style:none}.pix-cursor input[data-v-58e704c5]{width:100%}.pix-cursor .confirm[data-v-58e704c5]{padding:.75rem 1.5rem;border-radius:8px;cursor:pointer;font-weight:600;font-size:1.25rem;letter-spacing:1.1;width:fit-content;margin:auto;border:none;color:#fff;background:#4075ff;grid-row:1;grid-column:1}.pix-cursor .confirm[data-v-58e704c5]:hover{background:#355ac4;transition:background ease .1s}.pix-cursor .navigation-container[data-v-58e704c5]{display:flex;justify-content:center;align-items:center;gap:1rem}.pix-cursor .navigation-container .chosen-text-container[data-v-58e704c5]{display:grid}.pix-cursor .navigation-container .chosen-text-container p[data-v-58e704c5]{grid-row:1;grid-column:1}.pix-cursor .navigation-container .chosen-text-container p.hidden[data-v-58e704c5]{transform:translate(100vw)}.pix-cursor .footer[data-v-58e704c5]{display:grid;grid-template-columns:auto;align-items:center;justify-content:center}.pix-cursor .feedback[data-v-58e704c5]{padding:1rem 1.2rem;border-left:solid 4px;border-radius:8px;grid-column:1;grid-row:1;text-align:start;margin:0}.pix-cursor .feedback.hidden[data-v-58e704c5]{visibility:hidden;transform:translate(100vw)}.pix-cursor .feedback.good[data-v-58e704c5]{background:#e8f5e9;border-left-color:#4caf51}.pix-cursor .feedback.bad[data-v-58e704c5]{background:#ffebee;border-left-color:#f44337}.pix-cursor .feedback.neutral[data-v-58e704c5]{background:#e8f6ff;border-left-color:#464ee0}.pix-cursor .feedback.close[data-v-58e704c5]{background:#fff8e1;border-left-color:#ffc108}", ve = /* @__PURE__ */ P(ue, [["styles", [pe]], ["__scopeId", "data-v-58e704c5"]]);
|
|
132
|
+
G(/* @__PURE__ */ Object.assign({ "./locales/en.json": U, "./locales/es-419.json": J, "./locales/es.json": K, "./locales/fr.json": Q, "./locales/it.json": W, "./locales/nl.json": X })).catch((n) => console.error(n));
|
|
133
133
|
window.customElements.define("pix-cursor", q(ve, {
|
|
134
134
|
configureApp(n) {
|
|
135
|
-
w.changeLanguage(document?.documentElement?.lang || navigator.language), n.use(
|
|
135
|
+
w.changeLanguage(document?.documentElement?.lang || navigator.language), n.use(R, { i18next: w });
|
|
136
136
|
}
|
|
137
137
|
}));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { d as y, k as b, c as i, o, a as s, v, A as c, y as w, _,
|
|
2
|
-
import { i as a, a as K, b as X } from "../i18n-
|
|
3
|
-
import { R as Y } from "../Retry-
|
|
1
|
+
import { d as y, k as b, c as i, o, a as s, v, A as c, y as w, _, P as A, Q as E, r as x, l as G, G as V, R as O, C as P, g as M, F as $, b as C, e as Q, x as F, D as k, S as U, N as W, q as H, f as J } from "../_plugin-vue_export-helper-D7ghZaw4.js";
|
|
2
|
+
import { i as a, a as K, b as X } from "../i18n-DX3ApBSH.js";
|
|
3
|
+
import { R as Y } from "../Retry-CuUMOAZi.js";
|
|
4
4
|
import { u as Z } from "../normalize-props-AlmAfi_u.js";
|
|
5
5
|
const ee = {}, te = {}, ae = {}, ne = {
|
|
6
6
|
"qcm-deepfake": { options: ["une photo de sa chanteuse préférée", "une chanson de sa chanteuse préférée", "les partitions de la chanson", "une photo de Caroline", "un enregistrement de Caroline qui dit quelques phrases"], iaResultInfo: "Retrouvez ici les résultats du logiciel d'IA générative :", iaResultGenerated: "Résultat généré par le logiciel d'IA générative", in: "Entrée", out: "Sortie", waiting: "Logiciel d'IA générative", selectThreeElements: "Sélectionnez 3 éléments pour générer la vidéo de Caroline :", generateVideo: "Générer la vidéo !", loading: "Chargement…", restart: "Recommencer", element_one: "élément", element_other: "éléments", generateVideoInfo_one: "Plus que {{count}} élément", generateVideoInfo_other: "Plus que {{count}} éléments", restartInfo: "Essayez avec de nouveaux éléments", success: { title: "Bien joué !", description: "C'est bien la vidéo de Caroline. Vous avez utilisé les bons éléments." }, fail: { title: "Pas exactement…", description: "Le résultat ne convient pas. Recommencez en changeant les éléments en entrée." } }
|
|
@@ -78,14 +78,14 @@ const ee = {}, te = {}, ae = {}, ne = {
|
|
|
78
78
|
}), (p, m) => (o(), i("label", {
|
|
79
79
|
class: w({ selected: l.value, disabled: t.value })
|
|
80
80
|
}, [
|
|
81
|
-
|
|
81
|
+
G(s("input", {
|
|
82
82
|
type: "checkbox",
|
|
83
83
|
name: "options",
|
|
84
84
|
onClick: h,
|
|
85
85
|
"aria-disabled": t.value,
|
|
86
86
|
"onUpdate:modelValue": m[0] || (m[0] = (g) => l.value = g)
|
|
87
87
|
}, null, 8, me), [
|
|
88
|
-
[
|
|
88
|
+
[O, l.value]
|
|
89
89
|
]),
|
|
90
90
|
V(c(e.option), 1)
|
|
91
91
|
], 2));
|
|
@@ -104,7 +104,7 @@ const ee = {}, te = {}, ae = {}, ne = {
|
|
|
104
104
|
V(" " + c(e.label), 1)
|
|
105
105
|
], 2));
|
|
106
106
|
}
|
|
107
|
-
}), _e = ".epreuve-button{--pix-neutral-0: #fff;--pix-neutral-800: #253858;--pix-neutral-900: #122647;--pix-secondary-500: #ffcb33;--pix-secondary-700: #a16206}.epreuve-button.primary{--background-color: var(--pix-neutral-800);--background-color-hover: var(--pix-neutral-900);--color: var(--pix-neutral-0);--color-hover: var(--pix-neutral-0)}.epreuve-button.warning{--background-color: var(--pix-secondary-500);--background-color-hover: var(--pix-secondary-700);--color: var(--pix-neutral-900);--color-hover: var(--pix-neutral-0)}.epreuve-button.primary,.epreuve-button.warning{align-items:center;background-color:var(--background-color);border:2px solid transparent;border-radius:8px;color:var(--color);cursor:pointer;display:flex;font-family:Roboto,sans-serif;font-size:1rem;font-weight:700;justify-content:center;gap:8px;line-height:24px;margin:0 auto;outline:none;padding:8px 24px;transition:background-color ease .5s,color ease .5s;width:fit-content;white-space:nowrap}:is(.epreuve-button.primary,.epreuve-button.warning)[aria-disabled=true]{cursor:not-allowed;opacity:.5}:is(.epreuve-button.primary,.epreuve-button.warning):not([aria-disabled=true]):hover{background-color:var(--background-color-hover);color:var(--color-hover);transition:background-color ease .5s,color ease .5s}:is(.epreuve-button.primary,.epreuve-button.warning):not([aria-disabled=true]):hover svg{color:var(--color-hover);transition:color ease .5s}:is(.epreuve-button.primary,.epreuve-button.warning):focus,:is(.epreuve-button.primary,.epreuve-button.warning):focus-visible{background-color:var(--background-color-hover);color:var(--color-hover);outline:1px solid var(--pix-neutral-0);outline-offset:-5px}", ke = /* @__PURE__ */ _(ye, [["styles", [_e]]]), xe = { class: "container" }, we = { class: "left-side" },
|
|
107
|
+
}), _e = ".epreuve-button{--pix-neutral-0: #fff;--pix-neutral-800: #253858;--pix-neutral-900: #122647;--pix-secondary-500: #ffcb33;--pix-secondary-700: #a16206}.epreuve-button.primary{--background-color: var(--pix-neutral-800);--background-color-hover: var(--pix-neutral-900);--color: var(--pix-neutral-0);--color-hover: var(--pix-neutral-0)}.epreuve-button.warning{--background-color: var(--pix-secondary-500);--background-color-hover: var(--pix-secondary-700);--color: var(--pix-neutral-900);--color-hover: var(--pix-neutral-0)}.epreuve-button.primary,.epreuve-button.warning{align-items:center;background-color:var(--background-color);border:2px solid transparent;border-radius:8px;color:var(--color);cursor:pointer;display:flex;font-family:Roboto,sans-serif;font-size:1rem;font-weight:700;justify-content:center;gap:8px;line-height:24px;margin:0 auto;outline:none;padding:8px 24px;transition:background-color ease .5s,color ease .5s;width:fit-content;white-space:nowrap}:is(.epreuve-button.primary,.epreuve-button.warning)[aria-disabled=true]{cursor:not-allowed;opacity:.5}:is(.epreuve-button.primary,.epreuve-button.warning):not([aria-disabled=true]):hover{background-color:var(--background-color-hover);color:var(--color-hover);transition:background-color ease .5s,color ease .5s}:is(.epreuve-button.primary,.epreuve-button.warning):not([aria-disabled=true]):hover svg{color:var(--color-hover);transition:color ease .5s}:is(.epreuve-button.primary,.epreuve-button.warning):focus,:is(.epreuve-button.primary,.epreuve-button.warning):focus-visible{background-color:var(--background-color-hover);color:var(--color-hover);outline:1px solid var(--pix-neutral-0);outline-offset:-5px}", ke = /* @__PURE__ */ _(ye, [["styles", [_e]]]), xe = { class: "container" }, we = { class: "left-side" }, Se = ["aria-level"], qe = { class: "left-side__description" }, Ie = { class: "left-side__action" }, $e = {
|
|
108
108
|
key: 0,
|
|
109
109
|
id: "optionsSelectedInfo",
|
|
110
110
|
class: "left-side__lower-legend",
|
|
@@ -123,7 +123,7 @@ const ee = {}, te = {}, ae = {}, ne = {
|
|
|
123
123
|
searchDelay: { default: 3e3, type: Number }
|
|
124
124
|
},
|
|
125
125
|
setup(e, { expose: u }) {
|
|
126
|
-
const n = x([]), l = [2, 4, 5], t = x("info"), h =
|
|
126
|
+
const n = x([]), l = [2, 4, 5], t = x("info"), h = M("optionsNode"), p = a.t("qcm-deepfake.options", { returnObjects: !0 }), m = ["👩🎤", "🎧", "🎶", "👩", "🎙️"], g = p.map((d, r) => `${m[r]} ${d}`), D = g.filter((d, r) => l.includes(r + 1)), T = [
|
|
127
127
|
{
|
|
128
128
|
type: "info",
|
|
129
129
|
image: e.infoImage
|
|
@@ -146,11 +146,11 @@ const ee = {}, te = {}, ae = {}, ne = {
|
|
|
146
146
|
type: "search",
|
|
147
147
|
image: e.searchImage
|
|
148
148
|
}
|
|
149
|
-
],
|
|
150
|
-
function
|
|
151
|
-
return
|
|
149
|
+
], S = b(() => n.value.length !== 3 || t.value === "search"), z = b(() => t.value === "search" ? a.t("qcm-deepfake.loading") : t.value === "info" ? a.t("qcm-deepfake.generateVideo") : a.t("qcm-deepfake.restart")), B = b(() => t.value === "info" ? a.t("qcm-deepfake.generateVideoInfo", { count: l.length - n.value.length }) : t.value === "fail" ? a.t("qcm-deepfake.restartInfo") : "");
|
|
150
|
+
function L() {
|
|
151
|
+
return S.value ? !1 : t.value === "info" ? R() : q();
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function q() {
|
|
154
154
|
h.value.forEach((d) => {
|
|
155
155
|
d.isChecked = !1;
|
|
156
156
|
}), n.value = [], t.value = "info";
|
|
@@ -160,34 +160,34 @@ const ee = {}, te = {}, ae = {}, ne = {
|
|
|
160
160
|
t.value = "search", await new Promise((r) => setTimeout(r, e.searchDelay)), d ? t.value = "success" : t.value = "fail";
|
|
161
161
|
}
|
|
162
162
|
return u({
|
|
163
|
-
reset:
|
|
163
|
+
reset: q
|
|
164
164
|
}), (d, r) => (o(), i("div", xe, [
|
|
165
165
|
s("form", we, [
|
|
166
166
|
s("div", {
|
|
167
167
|
class: "left-side__subtitle",
|
|
168
168
|
role: "heading",
|
|
169
169
|
"aria-level": e.titleLevel
|
|
170
|
-
}, c(d.$t("qcm-deepfake.in")), 9,
|
|
170
|
+
}, c(d.$t("qcm-deepfake.in")), 9, Se),
|
|
171
171
|
s("fieldset", null, [
|
|
172
|
-
s("legend",
|
|
173
|
-
(o(!0), i($, null, C(F(g), (f,
|
|
172
|
+
s("legend", qe, c(d.$t("qcm-deepfake.selectThreeElements")), 1),
|
|
173
|
+
(o(!0), i($, null, C(F(g), (f, I) => (o(), Q(he, {
|
|
174
174
|
ref_for: !0,
|
|
175
175
|
ref_key: "optionsNode",
|
|
176
176
|
ref: h,
|
|
177
177
|
modelValue: n.value,
|
|
178
178
|
"onUpdate:modelValue": r[0] || (r[0] = (j) => n.value = j),
|
|
179
|
-
key:
|
|
179
|
+
key: I,
|
|
180
180
|
class: "left-side__options",
|
|
181
181
|
option: f,
|
|
182
|
-
value:
|
|
182
|
+
value: I + 1,
|
|
183
183
|
readonly: t.value !== "info"
|
|
184
184
|
}, null, 8, ["modelValue", "option", "value", "readonly"]))), 128))
|
|
185
185
|
]),
|
|
186
|
-
s("div",
|
|
186
|
+
s("div", Ie, [
|
|
187
187
|
k(ke, {
|
|
188
|
-
onClick: H(
|
|
189
|
-
"aria-disabled":
|
|
190
|
-
label:
|
|
188
|
+
onClick: H(L, ["prevent"]),
|
|
189
|
+
"aria-disabled": S.value,
|
|
190
|
+
label: z.value,
|
|
191
191
|
state: t.value === "info" ? "primary" : "warning",
|
|
192
192
|
"aria-describedby": ["success", "search"].includes(t.value) ? void 0 : "optionsSelectedInfo"
|
|
193
193
|
}, U({ _: 2 }, [
|
|
@@ -199,11 +199,11 @@ const ee = {}, te = {}, ae = {}, ne = {
|
|
|
199
199
|
key: "0"
|
|
200
200
|
} : void 0
|
|
201
201
|
]), 1032, ["aria-disabled", "label", "state", "aria-describedby"]),
|
|
202
|
-
["success", "search"].includes(t.value) ? v("", !0) : (o(), i("p", $e, c(
|
|
202
|
+
["success", "search"].includes(t.value) ? v("", !0) : (o(), i("p", $e, c(B.value), 1))
|
|
203
203
|
])
|
|
204
204
|
]),
|
|
205
205
|
s("div", Ce, [
|
|
206
|
-
(o(), i($, null, C(
|
|
206
|
+
(o(), i($, null, C(T, (f) => k(pe, {
|
|
207
207
|
key: f,
|
|
208
208
|
"title-level": e.titleLevel,
|
|
209
209
|
type: f.type,
|
|
@@ -216,9 +216,9 @@ const ee = {}, te = {}, ae = {}, ne = {
|
|
|
216
216
|
])
|
|
217
217
|
]));
|
|
218
218
|
}
|
|
219
|
-
}), Ne = "legend,label,p,div[role=heading]{font-family:Nunito,Roboto,sans-serif;color:#253858}", De = ".container[data-v-66f8d52f]{display:flex;gap:.8rem}.title[data-v-66f8d52f]{font-size:1.75rem;font-weight:700;text-align:center;margin-bottom:16px}.left-side[data-v-66f8d52f]{min-width:60%;border:solid 1px #b0d3f4;background:#fff;padding:.8rem;border-radius:10px}.left-side__lower-legend[data-v-66f8d52f]{font-size:.875rem;color:#5e6c84}.left-side__subtitle[data-v-66f8d52f]{font-size:1.25rem;font-weight:700;text-align:center}.left-side__options[data-v-66f8d52f]{display:flex;border:solid 1px #5e6c84;padding:.6rem;border-radius:5px;gap:.5rem}.left-side__description[data-v-66f8d52f]{font-weight:700}.left-side__button[data-v-66f8d52f]{display:flex;gap:.5rem;align-items:center;border:none;padding:.6rem 1.5rem;background:#ffcb33;color:#000;border-radius:25px;font-weight:700;cursor:pointer}.left-side__button.generate[data-v-66f8d52f]{background:#613fdd;color:#fff}.left-side__button[aria-disabled=true][data-v-66f8d52f]{cursor:not-allowed;background:#d3d3d3}.left-side__action[data-v-66f8d52f]{display:flex;flex-direction:column;align-items:center;text-align:center}.right-side[data-v-66f8d52f]{display:grid;border:solid 1px #b0d3f4;background:#fff;padding:.8rem;text-align:center;border-radius:10px}fieldset[data-v-66f8d52f]{border:none;display:flex;flex-direction:column;gap:.8rem}@media(max-width:770px){.container[data-v-66f8d52f]{flex-wrap:wrap}.left-side[data-v-66f8d52f],.right-side[data-v-66f8d52f]{width:100%}}",
|
|
219
|
+
}), Ne = "legend,label,p,div[role=heading]{font-family:Nunito,Roboto,sans-serif;color:#253858}", De = ".container[data-v-66f8d52f]{display:flex;gap:.8rem}.title[data-v-66f8d52f]{font-size:1.75rem;font-weight:700;text-align:center;margin-bottom:16px}.left-side[data-v-66f8d52f]{min-width:60%;border:solid 1px #b0d3f4;background:#fff;padding:.8rem;border-radius:10px}.left-side__lower-legend[data-v-66f8d52f]{font-size:.875rem;color:#5e6c84}.left-side__subtitle[data-v-66f8d52f]{font-size:1.25rem;font-weight:700;text-align:center}.left-side__options[data-v-66f8d52f]{display:flex;border:solid 1px #5e6c84;padding:.6rem;border-radius:5px;gap:.5rem}.left-side__description[data-v-66f8d52f]{font-weight:700}.left-side__button[data-v-66f8d52f]{display:flex;gap:.5rem;align-items:center;border:none;padding:.6rem 1.5rem;background:#ffcb33;color:#000;border-radius:25px;font-weight:700;cursor:pointer}.left-side__button.generate[data-v-66f8d52f]{background:#613fdd;color:#fff}.left-side__button[aria-disabled=true][data-v-66f8d52f]{cursor:not-allowed;background:#d3d3d3}.left-side__action[data-v-66f8d52f]{display:flex;flex-direction:column;align-items:center;text-align:center}.right-side[data-v-66f8d52f]{display:grid;border:solid 1px #b0d3f4;background:#fff;padding:.8rem;text-align:center;border-radius:10px}fieldset[data-v-66f8d52f]{border:none;display:flex;flex-direction:column;gap:.8rem}@media(max-width:770px){.container[data-v-66f8d52f]{flex-wrap:wrap}.left-side[data-v-66f8d52f],.right-side[data-v-66f8d52f]{width:100%}}", Te = /* @__PURE__ */ _(Ve, [["styles", [Ne, De]], ["__scopeId", "data-v-66f8d52f"]]);
|
|
220
220
|
K(/* @__PURE__ */ Object.assign({ "./locales/en.json": ee, "./locales/es-419.json": te, "./locales/es.json": ae, "./locales/fr.json": ne, "./locales/it.json": oe, "./locales/nl.json": ie })).catch((e) => console.error(e));
|
|
221
|
-
const N = J(
|
|
221
|
+
const N = J(Te, {
|
|
222
222
|
configureApp(e) {
|
|
223
223
|
a.changeLanguage(document?.documentElement?.lang || navigator.language), e.use(X, { i18next: a });
|
|
224
224
|
}
|
|
@@ -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,
|