@1024pix/epreuves-components 2.4.2 → 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.
Files changed (36) hide show
  1. package/dist/{ButtonTooltip.ce-CjtFa5aM.js → ButtonTooltip.ce-CZed5BUq.js} +1 -1
  2. package/dist/{LLMMessage.ce-Cjpb0CiE.js → LLMMessage.ce-FJCO_wvC.js} +2 -2
  3. package/dist/{Loading.ce-1tk4uU9c.js → Loading.ce-EWTMcywS.js} +1 -1
  4. package/dist/{NavigationButton.ce-CxI2QW8z.js → NavigationButton.ce-CMbVRJbG.js} +2 -2
  5. package/dist/{Retry-CY90VQJl.js → Retry-B27znRn6.js} +1 -1
  6. package/dist/{_plugin-vue_export-helper-DOoVeFcJ.js → _plugin-vue_export-helper-CJxDisp0.js} +1698 -1681
  7. package/dist/components/calcul-impact.ce.js.js +3 -3
  8. package/dist/components/capacity-calculation.ce.js.js +4 -4
  9. package/dist/components/clickable-image.ce.js.js +2 -2
  10. package/dist/components/complete-phrase.ce.js.js +4 -4
  11. package/dist/components/flip-cards.ce.js.js +2 -2
  12. package/dist/components/image-quiz.ce.js.js +3 -3
  13. package/dist/components/image-quizzes.ce.js.js +2 -2
  14. package/dist/components/llm-compare-messages.ce.js.js +3 -3
  15. package/dist/components/llm-messages.ce.js.js +3 -3
  16. package/dist/components/llm-prompt-select.ce.js.js +2 -2
  17. package/dist/components/message-conversation.ce.js.js +61 -60
  18. package/dist/components/mobile-shell.ce.js.js +1 -1
  19. package/dist/components/phishing-message.ce.js.js +60 -60
  20. package/dist/components/phishing-notification.ce.js.js +104 -104
  21. package/dist/components/pix-article.ce.js.js +25 -23
  22. package/dist/components/pix-carousel.ce.js.js +232 -131
  23. package/dist/components/pix-cursor.ce.js.js +3 -3
  24. package/dist/components/qcm-deepfake.ce.js.js +4 -4
  25. package/dist/components/select-conversation.ce.js.js +43 -43
  26. package/dist/{i18n-ecSMtuba.js → i18n-Bs7vpvgi.js} +84 -100
  27. package/dist/{image-quiz.ce-CpI6lZ9m.js → image-quiz.ce-jh8ME9Wm.js} +2 -2
  28. package/dist/index.js +1 -1
  29. package/dist/{normalize-props-AlmAfi_u.js → normalize-props-BAFlcMqH.js} +6 -2
  30. package/dist/schema.js +78 -51
  31. package/dist/shadow-dom-Bs_4iILW.js +9 -0
  32. package/dist/temporal.utils-DBcWSjWy.js +16840 -0
  33. package/package.json +1 -1
  34. package/dist/index-4XnHmtKv.js +0 -11905
  35. package/dist/shadow-dom-DZbyKUWP.js +0 -9
  36. package/dist/temporal.utils-B23shw3k.js +0 -4958
@@ -1,22 +1,22 @@
1
- import { d as w, r as g, y as u, c as n, o as i, a as e, t as a, h as r, n as k, H as z, F as p, b as M, B as D, _ as T, f as C } from "../_plugin-vue_export-helper-DOoVeFcJ.js";
2
- import { a as L, i as f, b as S } from "../i18n-ecSMtuba.js";
3
- import { u as F } from "../normalize-props-AlmAfi_u.js";
4
- import { r as $, q as B, t as h } from "../temporal.utils-B23shw3k.js";
5
- const I = {
1
+ import { d as w, r as g, y as u, c as n, o as i, a as e, t as a, h as l, n as k, H as z, F as p, b as M, B as D, _ as T, f as C } from "../_plugin-vue_export-helper-CJxDisp0.js";
2
+ import { a as L, i as _, b as S } from "../i18n-Bs7vpvgi.js";
3
+ import { u as j } from "../normalize-props-BAFlcMqH.js";
4
+ import { r as F, q as $, t as f } from "../temporal.utils-DBcWSjWy.js";
5
+ const B = {}, I = {}, N = {}, q = {
6
6
  "select-conversation": { "select-response-title": "Sélectionnez le message que {{username}} devrait envoyer :", "message-date": "{{messageDay, relativetime(numeric: auto)}} · {{messageTime, datetime(timeStyle: short)}}", "incoming-message-sr": "Message de {{username}} reçu {{messageDay, relativetime(numeric: auto)}} à {{messageTime, datetime(timeStyle: short)}}", "outgoing-message-sr": "Message envoyé par {{username}} {{messageDay, relativetime(numeric: auto)}} à {{messageTime, datetime(timeStyle: short)}}", "good-idea": "Bonne idée", "bad-idea": "Mauvaise idée" }
7
- }, N = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20448%20512'%3e%3c!--!Font%20Awesome%20Free%20v7.1.0%20by%20@fontawesome%20-%20https://fontawesome.com%20License%20-%20https://fontawesome.com/license/free%20Copyright%202025%20Fonticons,%20Inc.--%3e%3cpath%20d='M434.8%2070.1c14.3%2010.4%2017.5%2030.4%207.1%2044.7l-256%20352c-5.5%207.6-14%2012.3-23.4%2013.1s-18.5-2.7-25.1-9.3l-128-128c-12.5-12.5-12.5-32.8%200-45.3s32.8-12.5%2045.3%200l101.5%20101.5%20234-321.7c10.4-14.3%2030.4-17.5%2044.7-7.1z'/%3e%3c/svg%3e", q = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20512%20512'%3e%3c!--!Font%20Awesome%20Free%20v7.1.0%20by%20@fontawesome%20-%20https://fontawesome.com%20License%20-%20https://fontawesome.com/license/free%20Copyright%202025%20Fonticons,%20Inc.--%3e%3cpath%20d='M256%2048a208%20208%200%201%201%200%20416%20208%20208%200%201%201%200-416zm0%20464a256%20256%200%201%200%200-512%20256%20256%200%201%200%200%20512zM167%20167c-9.4%209.4-9.4%2024.6%200%2033.9l55%2055-55%2055c-9.4%209.4-9.4%2024.6%200%2033.9s24.6%209.4%2033.9%200l55-55%2055%2055c9.4%209.4%2024.6%209.4%2033.9%200s9.4-24.6%200-33.9l-55-55%2055-55c9.4-9.4%209.4-24.6%200-33.9s-24.6-9.4-33.9%200l-55%2055-55-55c-9.4-9.4-24.6-9.4-33.9%200z'/%3e%3c/svg%3e", E = { class: "messages" }, R = { class: "message" }, j = {
7
+ }, E = {}, R = {}, A = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20448%20512'%3e%3c!--!Font%20Awesome%20Free%20v7.1.0%20by%20@fontawesome%20-%20https://fontawesome.com%20License%20-%20https://fontawesome.com/license/free%20Copyright%202025%20Fonticons,%20Inc.--%3e%3cpath%20d='M434.8%2070.1c14.3%2010.4%2017.5%2030.4%207.1%2044.7l-256%20352c-5.5%207.6-14%2012.3-23.4%2013.1s-18.5-2.7-25.1-9.3l-128-128c-12.5-12.5-12.5-32.8%200-45.3s32.8-12.5%2045.3%200l101.5%20101.5%20234-321.7c10.4-14.3%2030.4-17.5%2044.7-7.1z'/%3e%3c/svg%3e", H = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20512%20512'%3e%3c!--!Font%20Awesome%20Free%20v7.1.0%20by%20@fontawesome%20-%20https://fontawesome.com%20License%20-%20https://fontawesome.com/license/free%20Copyright%202025%20Fonticons,%20Inc.--%3e%3cpath%20d='M256%2048a208%20208%200%201%201%200%20416%20208%20208%200%201%201%200-416zm0%20464a256%20256%200%201%200%200-512%20256%20256%200%201%200%200%20512zM167%20167c-9.4%209.4-9.4%2024.6%200%2033.9l55%2055-55%2055c-9.4%209.4-9.4%2024.6%200%2033.9s24.6%209.4%2033.9%200l55-55%2055%2055c9.4%209.4%2024.6%209.4%2033.9%200s9.4-24.6%200-33.9l-55-55%2055-55c9.4-9.4%209.4-24.6%200-33.9s-24.6-9.4-33.9%200l-55%2055-55-55c-9.4-9.4-24.6-9.4-33.9%200z'/%3e%3c/svg%3e", O = { class: "messages" }, V = { class: "message" }, G = {
8
8
  class: "message__username",
9
9
  "aria-hidden": "true"
10
- }, A = { class: "sr-only" }, H = { class: "message__content" }, O = {
10
+ }, P = { class: "sr-only" }, X = { class: "message__content" }, J = {
11
11
  class: "message__date",
12
12
  "aria-hidden": "true"
13
- }, V = ["aria-hidden"], G = {
13
+ }, K = ["aria-hidden"], Q = {
14
14
  class: "message__username",
15
15
  "aria-hidden": "true"
16
- }, P = { class: "sr-only" }, X = { class: "message__content-container" }, J = { class: "message__content-title" }, K = ["src"], Q = { class: "message__content" }, U = {
16
+ }, U = { class: "sr-only" }, W = { class: "message__content-container" }, Y = { class: "message__content-title" }, Z = ["src"], ee = { class: "message__content" }, se = {
17
17
  class: "message__date",
18
18
  "aria-hidden": "true"
19
- }, W = { class: "response-select" }, Y = ["aria-level"], Z = { class: "response-select__choices" }, ee = ["aria-disabled", "onClick"], se = { "aria-live": "polite" }, te = ["innerHTML"], ae = /* @__PURE__ */ w({
19
+ }, te = { class: "response-select" }, ae = ["aria-level"], oe = { class: "response-select__choices" }, ne = ["aria-disabled", "onClick"], ie = { "aria-live": "polite" }, le = ["innerHTML"], ce = /* @__PURE__ */ w({
20
20
  __name: "SelectConversation.ce",
21
21
  props: {
22
22
  titleLevel: { default: 2, type: Number },
@@ -25,7 +25,7 @@ const I = {
25
25
  responseChoices: { type: Array }
26
26
  },
27
27
  setup(s, { expose: v }) {
28
- const d = g(s.responseChoices.map((t) => ({ ...t, selected: !1 }))), o = g(), c = u(() => $(s.incomingMessage.time)), m = u(() => c.value.day - B.Now.plainDateTimeISO().day);
28
+ const d = g(s.responseChoices.map((t) => ({ ...t, selected: !1 }))), o = g(), c = u(() => F(s.incomingMessage.time)), m = u(() => c.value.day - $.Now.plainDateTimeISO().day);
29
29
  function b(t) {
30
30
  t.selected || (t.selected = !0, o.value = t);
31
31
  }
@@ -36,69 +36,69 @@ const I = {
36
36
  }
37
37
  return v({
38
38
  reset: x
39
- }), (t, ie) => (i(), n(p, null, [
40
- e("div", E, [
41
- e("div", R, [
42
- e("p", j, a(s.incomingMessage.username), 1),
43
- e("p", A, a(t.$t("select-conversation.incoming-message-sr", { username: s.incomingMessage.username, messageDay: m.value, messageTime: r(h)(c.value) })), 1),
44
- e("p", H, a(s.incomingMessage.content), 1),
45
- e("p", O, a(t.$t("select-conversation.message-date", { messageDay: m.value, messageTime: r(h)(c.value) })), 1)
39
+ }), (t, me) => (i(), n(p, null, [
40
+ e("div", O, [
41
+ e("div", V, [
42
+ e("p", G, a(s.incomingMessage.username), 1),
43
+ e("p", P, a(t.$t("select-conversation.incoming-message-sr", { username: s.incomingMessage.username, messageDay: m.value, messageTime: l(f)(c.value) })), 1),
44
+ e("p", X, a(s.incomingMessage.content), 1),
45
+ e("p", J, a(t.$t("select-conversation.message-date", { messageDay: m.value, messageTime: l(f)(c.value) })), 1)
46
46
  ]),
47
47
  e("div", {
48
48
  class: k(["message message--outgoing", { "message--hidden": !o.value }]),
49
49
  "aria-hidden": !o.value,
50
50
  "aria-live": "polite"
51
51
  }, [
52
- e("p", G, a(s.username), 1),
53
- e("p", P, a(t.$t("select-conversation.outgoing-message-sr", { username: s.username, messageDay: 0, messageTime: /* @__PURE__ */ new Date() })), 1),
54
- e("div", X, [
55
- e("p", J, [
52
+ e("p", Q, a(s.username), 1),
53
+ e("p", U, a(t.$t("select-conversation.outgoing-message-sr", { username: s.username, messageDay: 0, messageTime: /* @__PURE__ */ new Date() })), 1),
54
+ e("div", W, [
55
+ e("p", Y, [
56
56
  e("img", {
57
- src: o.value?.goodIdea ? r(N) : r(q),
57
+ src: o.value?.goodIdea ? l(A) : l(H),
58
58
  alt: "",
59
59
  width: "16"
60
- }, null, 8, K),
60
+ }, null, 8, Z),
61
61
  z(" " + a(t.$t(`select-conversation.${o.value?.goodIdea ? "good-idea" : "bad-idea"}`)), 1)
62
62
  ]),
63
- e("p", Q, a(o.value?.content ?? "no content"), 1)
63
+ e("p", ee, a(o.value?.content ?? "no content"), 1)
64
64
  ]),
65
- e("p", U, a(t.$t("select-conversation.message-date", { messageDay: 0, messageTime: /* @__PURE__ */ new Date() })), 1)
66
- ], 10, V)
65
+ e("p", se, a(t.$t("select-conversation.message-date", { messageDay: 0, messageTime: /* @__PURE__ */ new Date() })), 1)
66
+ ], 10, K)
67
67
  ]),
68
- e("div", W, [
68
+ e("div", te, [
69
69
  e("div", {
70
70
  role: "heading",
71
71
  "aria-level": s.titleLevel,
72
72
  class: "title"
73
- }, a(t.$t("select-conversation.select-response-title", { username: s.username })), 9, Y),
74
- e("div", Z, [
75
- (i(!0), n(p, null, M(d.value, (l, y) => (i(), n("button", {
73
+ }, a(t.$t("select-conversation.select-response-title", { username: s.username })), 9, ae),
74
+ e("div", oe, [
75
+ (i(!0), n(p, null, M(d.value, (r, y) => (i(), n("button", {
76
76
  key: y,
77
77
  type: "button",
78
78
  class: "response-select__choice",
79
- "aria-disabled": l.selected,
80
- onClick: (re) => b(l)
81
- }, a(l.content), 9, ee))), 128))
79
+ "aria-disabled": r.selected,
80
+ onClick: (ge) => b(r)
81
+ }, a(r.content), 9, ne))), 128))
82
82
  ]),
83
- e("div", se, [
83
+ e("div", ie, [
84
84
  o.value ? (i(), n("p", {
85
85
  key: 0,
86
86
  class: "response-select__feedback",
87
87
  innerHTML: o.value.feedback
88
- }, null, 8, te)) : D("", !0)
88
+ }, null, 8, le)) : D("", !0)
89
89
  ])
90
90
  ])
91
91
  ], 64));
92
92
  }
93
- }), oe = "html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}table{border-collapse:collapse;border-spacing:0}*{font-family:Roboto,sans-serif;color:#122647;line-height:normal}.messages{display:flex;flex-direction:column;gap:8px;padding:16px}.message{display:flex;flex-direction:column;align-items:start;gap:8px;margin-left:0;margin-right:16px}.message__username,.message__date{color:#5e6c84;font-size:.75rem;font-weight:400}.message__content{padding:16px 8px;border-radius:8px;background:#e8e8e8;font-size:.75rem;font-weight:400}.message--hidden{visibility:hidden}.message--outgoing{align-self:end;align-items:end;margin-left:16px;margin-right:0}.message--outgoing .message__content-container{display:flex;flex-direction:column}.message--outgoing .message__content-title{color:#fff;font-size:.75rem;font-weight:700;border-radius:8px 8px 0 0;background:#452d9d;padding:4px 8px;align-self:start;display:flex;gap:4px;align-items:center}.message--outgoing .message__content-title>img{filter:invert(100%);max-height:16px;max-width:16px}.message--outgoing .message__content{border-top-left-radius:0;background:#cec3f4}.response-select{border-radius:16px;border:1px solid #cdd1d9;background-color:#fff;display:flex;padding:24px 16px;flex-direction:column;gap:16px;margin-top:25px}.response-select__choices{display:flex;gap:8px}.response-select__choice{border-style:none;border-radius:8px;background-color:#253858;padding:8px 16px;color:#fff;text-align:center;font-size:.688rem;font-weight:400;line-height:18px;flex:1;cursor:pointer}.response-select__choice[aria-disabled=true]{background-color:#f4f5f7;color:#5e6c84;cursor:not-allowed}.response-select__feedback{border-radius:8px;background:#eaf1ff;padding:8px;color:#122647;font-size:.75rem;font-weight:400;line-height:20px}.title{font-family:Nunito,Roboto,sans-serif;font-size:.875rem;font-weight:700}@media(max-width:640px){.title{font-size:.75rem}.response-select__choices{flex-direction:column}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);border:0}", ne = /* @__PURE__ */ T(ae, [["styles", [oe]]]);
94
- L(/* @__PURE__ */ Object.assign({ "./locales/fr.json": I })).catch((s) => console.error(s));
95
- const _ = C(ne, {
93
+ }), re = "html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}table{border-collapse:collapse;border-spacing:0}*{font-family:Roboto,sans-serif;color:#122647;line-height:normal}.messages{display:flex;flex-direction:column;gap:8px;padding:16px}.message{display:flex;flex-direction:column;align-items:start;gap:8px;margin-left:0;margin-right:16px}.message__username,.message__date{color:#5e6c84;font-size:.75rem;font-weight:400}.message__content{padding:16px 8px;border-radius:8px;background:#e8e8e8;font-size:.75rem;font-weight:400}.message--hidden{visibility:hidden}.message--outgoing{align-self:end;align-items:end;margin-left:16px;margin-right:0}.message--outgoing .message__content-container{display:flex;flex-direction:column}.message--outgoing .message__content-title{color:#fff;font-size:.75rem;font-weight:700;border-radius:8px 8px 0 0;background:#452d9d;padding:4px 8px;align-self:start;display:flex;gap:4px;align-items:center}.message--outgoing .message__content-title>img{filter:invert(100%);max-height:16px;max-width:16px}.message--outgoing .message__content{border-top-left-radius:0;background:#cec3f4}.response-select{border-radius:16px;border:1px solid #cdd1d9;background-color:#fff;display:flex;padding:24px 16px;flex-direction:column;gap:16px;margin-top:25px}.response-select__choices{display:flex;gap:8px}.response-select__choice{border-style:none;border-radius:8px;background-color:#253858;padding:8px 16px;color:#fff;text-align:center;font-size:.688rem;font-weight:400;line-height:18px;flex:1;cursor:pointer}.response-select__choice[aria-disabled=true]{background-color:#f4f5f7;color:#5e6c84;cursor:not-allowed}.response-select__feedback{border-radius:8px;background:#eaf1ff;padding:8px;color:#122647;font-size:.75rem;font-weight:400;line-height:20px}.title{font-family:Nunito,Roboto,sans-serif;font-size:.875rem;font-weight:700}@media(max-width:640px){.title{font-size:.75rem}.response-select__choices{flex-direction:column}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);border:0}", de = /* @__PURE__ */ T(ce, [["styles", [re]]]);
94
+ L(/* @__PURE__ */ Object.assign({ "./locales/en.json": B, "./locales/es-419.json": I, "./locales/es.json": N, "./locales/fr.json": q, "./locales/it.json": E, "./locales/nl.json": R })).catch((s) => console.error(s));
95
+ const h = C(de, {
96
96
  configureApp(s) {
97
- f.changeLanguage(document?.documentElement?.lang || navigator.language), s.use(S, { i18next: f });
97
+ _.changeLanguage(document?.documentElement?.lang || navigator.language), s.use(S, { i18next: _ });
98
98
  }
99
99
  });
100
- _.prototype.normalizeProps = (s) => ({
100
+ h.prototype.normalizeProps = (s) => ({
101
101
  ...s,
102
- titleLevel: F(s.titleLevel)
102
+ titleLevel: j(s.titleLevel)
103
103
  });
104
- window.customElements.define("select-conversation", _);
104
+ window.customElements.define("select-conversation", h);
@@ -1,4 +1,4 @@
1
- import { s as ve, k as Re, d as Ce, l as Pe } from "./_plugin-vue_export-helper-DOoVeFcJ.js";
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, p = s.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
338
+ const f = s.lng || this.language, g = s.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
339
339
  if (f?.toLowerCase() === "cimode")
340
- return p ? n ? {
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 g = this.resolve(e, s);
356
- let c = g?.res;
357
- const x = g?.usedKey || a, S = g?.exactUsedKey || a, L = ["[object Number]", "[object Function]", "[object RegExp]"], y = s.joinArrays !== void 0 ? s.joinArrays : this.options.joinArrays, E = !this.i18nFormat || this.i18nFormat.handleAsObject, O = s.count !== void 0 && !d(s.count), N = _.hasDefaultValue(s), j = O ? this.pluralResolver.getSuffix(f, s.count, s) : "", I = s.ordinal && O ? this.pluralResolver.getSuffix(f, s.count, {
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 ? (g.res = R, g.usedParams = this.getUsedParamsDetails(s), g) : R;
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, g, i), w && c === a && this.options.appendNamespaceToMissingKey && (c = `${u}${h}${a}`), (w || R) && this.options.parseMissingKeyHandler && (c = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${u}${h}${a}` : a, R ? c : void 0, s));
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 ? (g.res = c, g.usedParams = this.getUsedParamsDetails(s), g) : c;
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), p = f && f.length;
453
- u < p && (i.nest = !1);
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 p = t.count !== void 0 && !d(t.count), g = p && !t.ordinal && t.count === 0, c = t.context !== void 0 && (d(t.context) || typeof t.context == "number") && t.context !== "", x = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
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
- p && (O = this.pluralResolver.getSuffix(L, t.count, t));
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 (p && (t.ordinal && O.indexOf(j) === 0 && y.push(h + O.replace(j, this.options.pluralSeparator)), y.push(h + O), g && y.push(h + N)), c) {
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), p && (t.ordinal && O.indexOf(j) === 0 && y.push(I + O.replace(j, this.options.pluralSeparator)), y.push(I + O), g && y.push(I + N));
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: p,
681
- nestingPrefixEscaped: g,
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 = 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();
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 = (g) => {
700
- if (g.indexOf(this.formatSeparator) < 0) {
701
- const L = he(t, l, g, this.options.keySeparator, this.options.ignoreJSONStructure);
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: g
705
+ interpolationkey: p
706
706
  }) : L;
707
707
  }
708
- const c = g.split(this.formatSeparator), x = c.shift().trim(), S = c.join(this.formatSeparator).trim();
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: (g) => Q(g)
719
+ safeValue: (p) => Q(p)
720
720
  }, {
721
721
  regex: this.regexp,
722
- safeValue: (g) => this.escapeValue ? Q(this.escape(g)) : Q(g)
723
- }].forEach((g) => {
724
- for (a = 0; n = g.regex.exec(e); ) {
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 = g.safeValue(r);
739
- if (e = e.replace(n[0], x), f ? (g.regex.lastIndex += r.length, g.regex.lastIndex -= n[0].length) : g.regex.lastIndex = 0, a++, a >= this.maxReplaces)
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 p = `{${f[1]}`;
751
- l = f[0], p = this.interpolate(p, r);
752
- const g = p.match(/'/g), c = p.match(/"/g);
753
- ((g?.length ?? 0) % 2 === 0 && !c || c.length % 2 !== 0) && (p = p.replace(/'/g, '"'));
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(p), u && (r = {
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}${p}`;
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 p = s?.formatParams?.[s.interpolationkey] || {}, g = p.locale || p.lng || s.locale || s.lng || i;
874
- f = this.formats[u](a, g, {
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
- ...p
877
+ ...g
878
878
  });
879
- } catch (p) {
880
- this.logger.warn(p);
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 p = `${u}|${f}`;
902
- !i.reload && this.store.hasResourceBundle(u, f) ? this.state[p] = 2 : this.state[p] < 0 || (this.state[p] === 1 ? r[p] === void 0 && (r[p] = !0) : (this.state[p] = 1, h = !1, r[p] === void 0 && (r[p] = !0), n[p] === void 0 && (n[p] = !0), l[f] === void 0 && (l[f] = !0)));
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 ge = () => ({
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
- }), 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 = () => {
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 = pe(e), this.services = {}, this.logger = P, this.modules = {
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 = ge();
1099
+ const i = pe();
1100
1100
  this.options = {
1101
1101
  ...i,
1102
1102
  ...this.options,
1103
- ...pe(e)
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("*", (g, ...c) => {
1122
- this.emit(g, ...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("*", (g, ...c) => {
1124
- this.emit(g, ...c);
1125
- }), this.modules.external.forEach((g) => {
1126
- g.init && g.init(this);
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(ge());
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
- var be = Symbol();
1335
- function et(o, {
1336
- i18next: e,
1337
- rerenderOn: t = ["languageChanged", "loaded", "added", "removed"],
1338
- slotStart: i = "{",
1339
- slotEnd: s = "}"
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
- (f = e.store) == null || f.on(h, r);
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
- e.t.bind(e),
1359
- a,
1360
- l
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, void 0), {
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
- if (o.isInitialized) {
1388
- const s = (typeof e == "string" ? [e] : e).filter((n) => !o.hasLoadedNamespace(n));
1389
- s.length ? (t = !1, o.loadNamespaces(s).then(() => t = !0)) : t = !0;
1390
- } else
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
- apply: function(i, s, n) {
1398
- return e(), t() ? Reflect.apply(i, s, n) : "";
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
- var Qe = Ce({
1415
- props: {
1416
- translation: {
1417
- type: String,
1418
- required: !0
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-DOoVeFcJ.js";
2
- import { u as K, a as R } from "./normalize-props-AlmAfi_u.js";
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-CpI6lZ9m.js";
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 r(n) {
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
- r as a,
14
+ t as a,
15
+ r as b,
12
16
  u
13
17
  };