@1024pix/epreuves-components 2.2.6 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
- import { _ as a, c as r, o as s, a as b, d as u, k as n, y as d, e as l, v as o, A as g, D as h } from "./_plugin-vue_export-helper-D7ghZaw4.js";
1
+ import { _ as a, c as r, o as s, a as b, d as i, k as n, y as d, e as l, v as o, A as c, D as h } from "./_plugin-vue_export-helper-D7ghZaw4.js";
2
2
  import { L as p } from "./Loading.ce-CiVWBT3g.js";
3
- const f = {}, x = {
3
+ const f = {}, C = {
4
4
  height: "1rem",
5
5
  width: "auto",
6
6
  "aria-hidden": "true",
@@ -8,30 +8,30 @@ const f = {}, x = {
8
8
  xmlns: "http://www.w3.org/2000/svg",
9
9
  viewBox: "0 0 448 512"
10
10
  };
11
- function C(t, e) {
12
- return s(), r("svg", x, [...e[0] || (e[0] = [
11
+ function x(t, e) {
12
+ return s(), r("svg", C, [...e[0] || (e[0] = [
13
13
  b("path", {
14
14
  fill: "currentColor",
15
15
  d: "M364.2 83.8c-24.4-24.4-64-24.4-88.4 0l-184 184c-42.1 42.1-42.1 110.3 0 152.4s110.3 42.1 152.4 0l152-152c10.9-10.9 28.7-10.9 39.6 0s10.9 28.7 0 39.6l-152 152c-64 64-167.6 64-231.6 0s-64-167.6 0-231.6l184-184c46.3-46.3 121.3-46.3 167.6 0s46.3 121.3 0 167.6l-176 176c-28.6 28.6-75 28.6-103.6 0s-28.6-75 0-103.6l144-144c10.9-10.9 28.7-10.9 39.6 0s10.9 28.7 0 39.6l-144 144c-6.7 6.7-6.7 17.7 0 24.4s17.7 6.7 24.4 0l176-176c24.4-24.4 24.4-64 0-88.4z"
16
16
  }, null, -1)
17
17
  ])]);
18
18
  }
19
- const y = /* @__PURE__ */ a(f, [["render", C]]), w = {}, v = {
19
+ const y = /* @__PURE__ */ a(f, [["render", x]]), v = {}, k = {
20
20
  width: "24",
21
21
  height: "24",
22
22
  viewBox: "0 0 24 24",
23
23
  fill: "none",
24
24
  xmlns: "http://www.w3.org/2000/svg"
25
25
  };
26
- function k(t, e) {
27
- return s(), r("svg", v, [...e[0] || (e[0] = [
26
+ function w(t, e) {
27
+ return s(), r("svg", k, [...e[0] || (e[0] = [
28
28
  b("path", {
29
29
  d: "M5.88 17.0103C6.73 16.3683 7.676 15.8638 8.718 15.4968C9.76 15.1298 10.8544 14.9463 12.0012 14.9463C13.1481 14.9463 14.2451 15.1328 15.2922 15.5058C16.3394 15.8788 17.282 16.3823 18.12 17.0163C18.6915 16.3289 19.1357 15.5629 19.4527 14.7183C19.7697 13.8734 19.9282 12.9673 19.9282 12C19.9282 9.80717 19.1551 7.93759 17.6087 6.39125C16.0624 4.84492 14.1928 4.07175 12 4.07175C9.80717 4.07175 7.93758 4.84492 6.39125 6.39125C4.84492 7.93759 4.07175 9.80717 4.07175 12C4.07175 12.9633 4.22925 13.8674 4.54425 14.7123C4.85925 15.5569 5.3045 16.3229 5.88 17.0103ZM12 13.0538C11.0007 13.0538 10.1596 12.7133 9.47675 12.0323C8.79375 11.3513 8.45225 10.5112 8.45225 9.512C8.45225 8.51267 8.79375 7.6715 9.47675 6.9885C10.1596 6.30567 11.0007 5.96425 12 5.96425C12.9993 5.96425 13.8404 6.30567 14.5232 6.9885C15.2062 7.6715 15.5477 8.51267 15.5477 9.512C15.5477 10.5112 15.2062 11.3513 14.5232 12.0323C13.8404 12.7133 12.9993 13.0538 12 13.0538ZM11.9995 22.2033C10.5887 22.2033 9.26292 21.9358 8.02225 21.4008C6.78175 20.8658 5.7015 20.1383 4.7815 19.2185C3.86167 18.2985 3.13425 17.2181 2.59925 15.9773C2.06425 14.7363 1.79675 13.4103 1.79675 11.9995C1.79675 10.5887 2.06425 9.26292 2.59925 8.02225C3.13425 6.78175 3.86167 5.7015 4.7815 4.7815C5.7015 3.86167 6.78192 3.13425 8.02275 2.59925C9.26375 2.06425 10.5897 1.79675 12.0005 1.79675C13.4113 1.79675 14.7371 2.06425 15.9777 2.59925C17.2182 3.13425 18.2985 3.86167 19.2185 4.7815C20.1383 5.7015 20.8657 6.78192 21.4008 8.02275C21.9358 9.26375 22.2032 10.5897 22.2032 12.0005C22.2032 13.4113 21.9358 14.7371 21.4008 15.9778C20.8657 17.2183 20.1383 18.2985 19.2185 19.2185C18.2985 20.1383 17.2181 20.8658 15.9773 21.4008C14.7362 21.9358 13.4103 22.2033 11.9995 22.2033ZM12 19.9283C12.8633 19.9283 13.6747 19.8041 14.4342 19.5558C15.1936 19.3074 15.8982 18.9495 16.5482 18.482C15.8904 18.0107 15.1867 17.6518 14.4372 17.4055C13.6877 17.159 12.8753 17.0358 12 17.0358C11.1247 17.0358 10.3132 17.159 9.56575 17.4055C8.81825 17.6518 8.1155 18.0107 7.4575 18.482C8.1075 18.9495 8.81125 19.3074 9.56875 19.5558C10.3262 19.8041 11.1367 19.9283 12 19.9283ZM12 10.9643C12.4173 10.9643 12.7637 10.8265 13.0392 10.551C13.3146 10.2757 13.4523 9.92934 13.4523 9.512C13.4523 9.0945 13.3146 8.74709 13.0392 8.46975C12.7637 8.19242 12.4173 8.05375 12 8.05375C11.5827 8.05375 11.2362 8.19242 10.9607 8.46975C10.6854 8.74709 10.5477 9.0945 10.5477 9.512C10.5477 9.92934 10.6854 10.2757 10.9607 10.551C11.2362 10.8265 11.5827 10.9643 12 10.9643Z",
30
30
  fill: "white"
31
31
  }, null, -1)
32
32
  ])]);
33
33
  }
34
- const _ = /* @__PURE__ */ a(w, [["render", k]]), M = {}, L = {
34
+ const _ = /* @__PURE__ */ a(v, [["render", w]]), M = {}, L = {
35
35
  width: "11",
36
36
  height: "18",
37
37
  viewBox: "0 0 11 18",
@@ -53,17 +53,17 @@ const $ = /* @__PURE__ */ a(M, [["render", q]]), z = { class: "avatar" }, B = {
53
53
  }, A = {
54
54
  key: 2,
55
55
  class: "attachment-label"
56
- }, H = /* @__PURE__ */ u({
56
+ }, H = /* @__PURE__ */ i({
57
57
  __name: "LLMMessage.ce",
58
58
  props: {
59
59
  name: { type: String },
60
60
  message: { type: Object }
61
61
  },
62
62
  setup(t) {
63
- const e = t, m = n(() => e.message.direction === "outbound"), c = n(() => {
63
+ const e = t, m = n(() => e.message.direction === "outbound"), g = n(() => {
64
64
  if (e.message.content)
65
65
  return e.name ? `<strong>${e.name}</strong> : ${e.message.content}` : e.message.content;
66
- }), i = n(() => e.message.hasError && e.message.errorMessage?.length > 0);
66
+ }), u = n(() => e.message.hasError && e.message.errorMessage?.length > 0);
67
67
  return (E, V) => (s(), r("div", {
68
68
  class: d(["message", t.message.direction])
69
69
  }, [
@@ -75,22 +75,22 @@ const $ = /* @__PURE__ */ a(M, [["render", q]]), z = { class: "avatar" }, B = {
75
75
  class: "loader"
76
76
  })) : o("", !0),
77
77
  b("div", B, [
78
- c.value ? (s(), r("div", {
78
+ g.value ? (s(), r("div", {
79
79
  key: 0,
80
- innerHTML: c.value,
80
+ innerHTML: g.value,
81
81
  class: "content"
82
82
  }, null, 8, Z)) : o("", !0),
83
- i.value ? (s(), r("div", N, [
84
- b("p", null, g(t.message.errorMessage), 1)
83
+ u.value ? (s(), r("div", N, [
84
+ b("p", null, c(t.message.errorMessage), 1)
85
85
  ])) : o("", !0),
86
86
  t.message.attachmentName && m.value ? (s(), r("p", A, [
87
- b("span", null, g(t.message.attachmentName), 1),
87
+ b("span", null, c(t.message.attachmentName), 1),
88
88
  h(y)
89
89
  ])) : o("", !0)
90
90
  ])
91
91
  ], 2));
92
92
  }
93
- }), j = ".message{display:flex;width:90%;gap:12px;align-items:start}.message .avatar{align-items:center;aspect-ratio:1/1;background-color:#1c825d;border-radius:8px;display:flex;justify-content:center;margin-top:2px;padding:4px;width:32px;height:32px}.message .loader{margin-top:14px}.message .bubble .content,.message .bubble .error{--background: #efefef;--focus: #0096bfab;--border: #dbdbdb;box-sizing:border-box;font-size:14px;color:#253858;line-height:20px}.message .bubble .content p,.message .bubble .error p{margin:0;word-wrap:break-word}.message .bubble .content h1,.message .bubble .error h1{font-size:1.8em}.message .bubble .content h2,.message .bubble .error h2{font-size:1.4em}.message .bubble .content h3,.message .bubble .error h3{font-size:1.2em}.message .bubble .content h1,.message .bubble .content h2,.message .bubble .content h3,.message .bubble .content h4,.message .bubble .content h5,.message .bubble .content h6,.message .bubble .error h1,.message .bubble .error h2,.message .bubble .error h3,.message .bubble .error h4,.message .bubble .error h5,.message .bubble .error h6{margin-bottom:12px;color:#000}.message .bubble .content strong,.message .bubble .error strong{color:#000}.message .bubble .content h1,.message .bubble .content h2,.message .bubble .content h3,.message .bubble .content h4,.message .bubble .content h5,.message .bubble .content h6,.message .bubble .content b,.message .bubble .content strong,.message .bubble .content th,.message .bubble .error h1,.message .bubble .error h2,.message .bubble .error h3,.message .bubble .error h4,.message .bubble .error h5,.message .bubble .error h6,.message .bubble .error b,.message .bubble .error strong,.message .bubble .error th{font-weight:600}.message .bubble .content q:before,.message .bubble .error q:before{content:none}.message .bubble .content q:after,.message .bubble .error q:after{content:none}.message .bubble .content blockquote,.message .bubble .error blockquote,.message .bubble .content q,.message .bubble .error q{border-left:4px solid var(--focus);margin:1.5em 0;padding:.5em 1em;font-style:italic}.message .bubble .content blockquote>footer,.message .bubble .error blockquote>footer{font-style:normal;border:0}.message .bubble .content blockquote cite,.message .bubble .error blockquote cite{font-style:normal}.message .bubble .content mark,.message .bubble .error mark{background-color:#ff0;border-radius:2px;padding:0 2px;color:#000}.message .bubble .content code,.message .bubble .error code{background:var(--background);color:#000;padding:2.5px 5px;border-radius:6px;font-size:1em}.message .bubble .content hr,.message .bubble .error hr{border:none;border-top:1px solid var(--border)}.message .bubble .content table,.message .bubble .error table{border-collapse:collapse;margin-bottom:10px;width:100%;table-layout:fixed;border:1px solid #dbdbdb;border-radius:8px}.message .bubble .content table caption,.message .bubble .error table caption{text-align:left}.message .bubble .content td,.message .bubble .content th,.message .bubble .error td,.message .bubble .error th{padding:6px;text-align:left;vertical-align:top;word-wrap:break-word;border-right:1px solid var(--border)}.message .bubble .content thead,.message .bubble .error thead{border-bottom:1px solid var(--border)}.message .bubble .content tfoot,.message .bubble .error tfoot{border-top:1px solid var(--border)}.message .bubble .content tbody tr:nth-child(2n),.message .bubble .error tbody tr:nth-child(2n){background-color:#efefef}.message .bubble .content tbody tr:nth-child(2n) button,.message .bubble .error tbody tr:nth-child(2n) button{background-color:#f7f7f7}.message .bubble .content tbody tr:nth-child(2n) button:hover,.message .bubble .error tbody tr:nth-child(2n) button:hover{background-color:#fff}.message .bubble .content details,.message .bubble .error details{display:flex;flex-direction:column;align-items:flex-start;background-color:#f7f7f7;padding:10px 10px 0;margin:1em 0;border-radius:6px;overflow:hidden}.message .bubble .content details[open],.message .bubble .error details[open]{padding:10px}.message .bubble .content details>:last-child,.message .bubble .error details>:last-child{margin-bottom:0}.message .bubble .content details[open] summary,.message .bubble .error details[open] summary{margin-bottom:10px}.message .bubble .content summary,.message .bubble .error summary{display:list-item;background-color:#efefef;padding:10px;margin:-10px -10px 0;cursor:pointer;outline:none}.message .bubble .content summary:hover,.message .bubble .content summary:focus,.message .bubble .error summary:hover,.message .bubble .error summary:focus{text-decoration:underline}.message .bubble .content details>:not(summary),.message .bubble .error details>:not(summary){margin-top:0}.message .bubble .content summary::-webkit-details-marker,.message .bubble .error summary::-webkit-details-marker{color:#363636}.message .bubble .content ul,.message .bubble .error ul{list-style-type:disc;list-style-position:inside}.message .bubble .content ol,.message .bubble .error ol{list-style-type:decimal}.message .bubble .content .complete-message-word:last-child,.message .bubble .error .complete-message-word:last-child{border:none;filter:blur(4px);font-weight:600;height:auto;width:auto}.message .bubble .content .complete-message-word--visible:last-child,.message .bubble .error .complete-message-word--visible:last-child{color:inherit;filter:none;font-weight:700}.message .bubble .content .complete-message-word--hidden:last-child,.message .bubble .error .complete-message-word--hidden:last-child{background-color:#f4f5f7;border-radius:4px;border:1px dashed #5e6c84;color:transparent;display:inline-block;filter:none;padding:2px 4px}.message .bubble .content .complete-message-word:nth-last-child(2),.message .bubble .error .complete-message-word:nth-last-child(2){font-weight:600}.message .bubble .attachment-label{display:flex;align-items:center;gap:.5rem;font-size:.8rem;font-style:italic;justify-content:end;margin:1rem}.message .bubble .error{color:#952e2e;font-style:italic;font-weight:700}.message.outbound{align-self:end;flex-direction:row-reverse}.message.outbound .avatar{background-color:#957ee8}.message.outbound .bubble{background:#cec3f4;border-radius:16px;padding:8px 16px}", T = /* @__PURE__ */ a(H, [["styles", [j]]]);
93
+ }), j = ".message{display:flex;width:90%;gap:12px;align-items:start}.message .avatar{align-items:center;aspect-ratio:1/1;background-color:#1c825d;border-radius:8px;display:flex;justify-content:center;margin-top:2px;padding:4px;width:32px;height:32px}.message .loader{margin-top:14px}.message .bubble .content,.message .bubble .error{--background: #efefef;--focus: #0096bfab;--border: #dbdbdb;box-sizing:border-box;font-size:14px;color:#253858;line-height:20px}.message .bubble .content p,.message .bubble .error p{margin:0;word-wrap:break-word}.message .bubble .content h1,.message .bubble .error h1{font-size:1.8em}.message .bubble .content h2,.message .bubble .error h2{font-size:1.4em}.message .bubble .content h3,.message .bubble .error h3{font-size:1.2em}.message .bubble .content h1,.message .bubble .content h2,.message .bubble .content h3,.message .bubble .content h4,.message .bubble .content h5,.message .bubble .content h6,.message .bubble .error h1,.message .bubble .error h2,.message .bubble .error h3,.message .bubble .error h4,.message .bubble .error h5,.message .bubble .error h6{margin-bottom:12px;color:#000}.message .bubble .content strong,.message .bubble .error strong{color:#000}.message .bubble .content h1,.message .bubble .content h2,.message .bubble .content h3,.message .bubble .content h4,.message .bubble .content h5,.message .bubble .content h6,.message .bubble .content b,.message .bubble .content strong,.message .bubble .content th,.message .bubble .error h1,.message .bubble .error h2,.message .bubble .error h3,.message .bubble .error h4,.message .bubble .error h5,.message .bubble .error h6,.message .bubble .error b,.message .bubble .error strong,.message .bubble .error th{font-weight:600}.message .bubble .content q:before,.message .bubble .error q:before{content:none}.message .bubble .content q:after,.message .bubble .error q:after{content:none}.message .bubble .content blockquote,.message .bubble .error blockquote,.message .bubble .content q,.message .bubble .error q{border-left:4px solid var(--focus);margin:1.5em 0;padding:.5em 1em;font-style:italic}.message .bubble .content blockquote>footer,.message .bubble .error blockquote>footer{font-style:normal;border:0}.message .bubble .content blockquote cite,.message .bubble .error blockquote cite{font-style:normal}.message .bubble .content mark,.message .bubble .error mark{background-color:#ff0;border-radius:2px;padding:0 2px;color:#000}.message .bubble .content code,.message .bubble .error code{background:var(--background);color:#000;padding:2.5px 5px;border-radius:6px;font-size:1em}.message .bubble .content hr,.message .bubble .error hr{border:none;border-top:1px solid var(--border)}.message .bubble .content table,.message .bubble .error table{border-collapse:collapse;margin-bottom:10px;width:100%;table-layout:fixed;border:1px solid #dbdbdb;border-radius:8px}.message .bubble .content table caption,.message .bubble .error table caption{text-align:left}.message .bubble .content td,.message .bubble .content th,.message .bubble .error td,.message .bubble .error th{padding:6px;text-align:left;vertical-align:top;word-wrap:break-word;border-right:1px solid var(--border)}.message .bubble .content thead,.message .bubble .error thead{border-bottom:1px solid var(--border)}.message .bubble .content tfoot,.message .bubble .error tfoot{border-top:1px solid var(--border)}.message .bubble .content tbody tr:nth-child(2n),.message .bubble .error tbody tr:nth-child(2n){background-color:#efefef}.message .bubble .content tbody tr:nth-child(2n) button,.message .bubble .error tbody tr:nth-child(2n) button{background-color:#f7f7f7}.message .bubble .content tbody tr:nth-child(2n) button:hover,.message .bubble .error tbody tr:nth-child(2n) button:hover{background-color:#fff}.message .bubble .content details,.message .bubble .error details{display:flex;flex-direction:column;align-items:flex-start;background-color:#f7f7f7;padding:10px 10px 0;margin:1em 0;border-radius:6px;overflow:hidden}.message .bubble .content details[open],.message .bubble .error details[open]{padding:10px}.message .bubble .content details>:last-child,.message .bubble .error details>:last-child{margin-bottom:0}.message .bubble .content details[open] summary,.message .bubble .error details[open] summary{margin-bottom:10px}.message .bubble .content summary,.message .bubble .error summary{display:list-item;background-color:#efefef;padding:10px;margin:-10px -10px 0;cursor:pointer;outline:none}.message .bubble .content summary:hover,.message .bubble .content summary:focus,.message .bubble .error summary:hover,.message .bubble .error summary:focus{text-decoration:underline}.message .bubble .content details>:not(summary),.message .bubble .error details>:not(summary){margin-top:0}.message .bubble .content summary::-webkit-details-marker,.message .bubble .error summary::-webkit-details-marker{color:#363636}.message .bubble .content ul,.message .bubble .error ul{list-style-type:disc;list-style-position:inside}.message .bubble .content ol,.message .bubble .error ol{list-style-type:decimal}.message .bubble .attachment-label{display:flex;align-items:center;gap:.5rem;font-size:.8rem;font-style:italic;justify-content:end;margin:1rem}.message .bubble .error{color:#952e2e;font-style:italic;font-weight:700}.message.outbound{align-self:end;flex-direction:row-reverse}.message.outbound .avatar{background-color:#957ee8}.message.outbound .bubble{background:#cec3f4;border-radius:16px;padding:8px 16px}", T = /* @__PURE__ */ a(H, [["styles", [j]]]);
94
94
  export {
95
95
  T as L
96
96
  };
@@ -1,5 +1,5 @@
1
1
  import { d as j, E as T, c as p, o as d, F as U, D as v, N as r, v as C, a as e, A as a, G as _, T as D, _ as z, r as l, l as N, e as G, x, O as E, f as K } from "../_plugin-vue_export-helper-D7ghZaw4.js";
2
- import { a as H, i as V, b as Q } from "../i18n-DX3ApBSH.js";
2
+ import { a as H, i as V, b as Q } from "../i18n-CGAadjAA.js";
3
3
  import { u as J } from "../normalize-props-AlmAfi_u.js";
4
4
  const X = {}, Z = {}, ee = {}, te = {
5
5
  "calcul-impact": { title: "Calculez votre impact IA", subtitle: "Quels ont été vos usages de l'IA la semaine dernière ?", numberOfConversationLabel: "Nombre de conversations courtes :", numberOfImagesLabel: "Nombre de créations d’images :", seePersonalImpact: "Voir votre impact personnel sur une semaine", seeCollectiveImpact: "Si 1 million de personnes faisaient comme vous toutes les semaines pendant un an", legals: "Estimations basées sur l'étude Hugging Face, Carnegie Mellon University, Allen Institute for AI, Oct 2024", yourPersonalImpact: "Votre impact personnel", consumptionForAWeek: "Votre consommation sur une semaine", consumptionForAYear: "1 million de personnes toutes les semaines pendant un an", personalConsumption: "Vous avez consommé environ {{energy}} Wh", personalDuration: "Cela équivaut à {{number}} minutes de micro-ondes", collectiveConsumption: "Cela représenterait {{energy}} kWh, soit l'équivalent de la consommation en électricité de {{homes}} foyers français", collectiveDuration: "Équivalent à {{number}} minutes de micro-ondes", planeKilometers: "Et {{kilometers}} km parcourus en avion", yourCollectiveImpact: "Impact collectif simulé" }
@@ -1,5 +1,5 @@
1
1
  import { d as C, c as d, o, y as m, C as E, G as $, A as r, _ as v, P as O, Q as h, r as g, k as x, a as t, D as k, F as R, b as V, x as Z, q as z, S as F, N as T, e as f, v as N, f as P } from "../_plugin-vue_export-helper-D7ghZaw4.js";
2
- import { i as L, a as G, b as W } from "../i18n-DX3ApBSH.js";
2
+ import { i as L, a as G, b as W } from "../i18n-CGAadjAA.js";
3
3
  import { u as H } from "../normalize-props-AlmAfi_u.js";
4
4
  import { R as K } from "../Retry-CuUMOAZi.js";
5
5
  const J = {}, X = {}, Y = {}, aa = {
@@ -1,83 +1,82 @@
1
- import { d as g, c as s, o as t, a, A as c, t as z, _ as y, y as S, C as M, G as R, r as b, k as w, v as T, F as $, b as q, e as k, D as L, f as V } from "../_plugin-vue_export-helper-D7ghZaw4.js";
2
- import { a as E, i as P, b as I } from "../i18n-DX3ApBSH.js";
3
- import { u as D } from "../normalize-props-AlmAfi_u.js";
4
- import { L as B } from "../LLMMessage.ce-qbRxqNxR.js";
5
- const O = {}, F = {}, W = {}, G = {
6
- "complete-phrase": { title: "Probabilité du mot suivant", description: "La barre indique la probabilité de chaque mot. Plus elle est longue, plus le mot est probable dans ce contexte.", ariaLabelDescription: "Le mot {{name}} a une probabilité de {{percent}}%", clickHereButton: "Révéler le mot", successfullyCompletedSentence: "Cliquez sur le mot choisit par l’IA dans les propositions suivantes :", feedback: "En effet, c'est le mot le plus probable !" }
7
- }, H = {}, Q = {}, U = { class: "probability-bar" }, J = { "aria-hidden": "true" }, K = { class: "sr-only" }, X = /* @__PURE__ */ g({
1
+ import { d as h, c as n, o, a, A as c, t as j, _ as f, y as P, C as A, G as N, r as y, k as m, v as z, F as x, b as k, e as v, D as q, f as M } from "../_plugin-vue_export-helper-D7ghZaw4.js";
2
+ import { u as O, a as I, i as L, b as R } from "../i18n-CGAadjAA.js";
3
+ import { u as T } from "../normalize-props-AlmAfi_u.js";
4
+ import { L as C } from "../LLMMessage.ce-DOzBmUDF.js";
5
+ const E = {}, D = {}, V = {}, F = {
6
+ "complete-phrase": { title: "Probabilité du mot suivant", description: "Quand la barre est longue, le mot a une plus forte probabilité de convenir pour continuer cette phrase.", ariaLabelDescription: "Le mot {{name}} a une probabilité de {{percent}}%", clickHereButton: "Révéler le mot", successfullyCompletedSentence: "Cliquez sur le mot choisit par l’IA dans les propositions suivantes :", feedback: { sure: "En effet, c'est le mot le plus probable !", probably: "C’est possible ! Il peut aussi choisir le mot « {{word}} », qui est très probable...", notSure: "Pas sûr... Il choisira sans doute un mot plus probable : {{words, list(style: 'long'; type: 'disjunction';)}}." } }
7
+ }, Q = {}, W = {}, G = { class: "probability-bar" }, H = { "aria-hidden": "true" }, U = { class: "sr-only" }, J = /* @__PURE__ */ h({
8
8
  __name: "ProbabilityBar.ce",
9
9
  props: {
10
10
  name: { type: String },
11
11
  percent: { type: Number }
12
12
  },
13
13
  setup(e) {
14
- return (p, o) => (t(), s("div", U, [
15
- a("p", J, c(e.name), 1),
16
- a("p", K, c(p.$t("complete-phrase.ariaLabelDescription", { name: e.name, percent: e.percent })), 1),
14
+ return (d, t) => (o(), n("div", G, [
15
+ a("p", H, c(e.name), 1),
16
+ a("p", U, c(d.$t("complete-phrase.ariaLabelDescription", { name: e.name, percent: e.percent })), 1),
17
17
  a("div", {
18
- style: z(`width: ${e.percent}%`),
18
+ style: j(`width: ${e.percent}%`),
19
19
  class: "probability-bar__percent",
20
20
  "aria-hidden": "true"
21
21
  }, null, 4),
22
- o[0] || (o[0] = a("div", {
22
+ t[0] || (t[0] = a("div", {
23
23
  class: "probability-bar__background",
24
24
  "aria-hidden": "true"
25
25
  }, null, -1))
26
26
  ]));
27
27
  }
28
- }), Y = ".probability-bar[data-v-195ffe53]{font-family:Roboto,sans-serif;padding-bottom:10px;position:relative}.probability-bar p[data-v-195ffe53]{margin:0}.probability-bar__percent[data-v-195ffe53]{position:absolute;left:0;z-index:2;height:6px;border-radius:5px;background-color:var(--pix-neutral-900)}.probability-bar__background[data-v-195ffe53]{position:absolute;left:0;z-index:1;width:100%;height:6px;border-radius:5px;background-color:var(--pix-neutral-100)}.sr-only[data-v-195ffe53]{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}", Z = /* @__PURE__ */ y(X, [["styles", [Y]], ["__scopeId", "data-v-195ffe53"]]), ee = /* @__PURE__ */ g({
28
+ }), K = ".probability-bar[data-v-19f7d147]{font-family:Roboto,sans-serif;padding-bottom:10px;position:relative}.probability-bar p[data-v-19f7d147]{margin:0}.probability-bar__percent[data-v-19f7d147]{position:absolute;left:0;z-index:2;height:6px;border-radius:5px;background-color:#122647}.probability-bar__background[data-v-19f7d147]{position:absolute;left:0;z-index:1;width:100%;height:6px;border-radius:5px;background-color:#cdd1d9}.sr-only[data-v-19f7d147]{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}", X = /* @__PURE__ */ f(J, [["styles", [K]], ["__scopeId", "data-v-19f7d147"]]), Y = /* @__PURE__ */ h({
29
29
  __name: "Button.ce",
30
30
  props: {
31
31
  label: { type: String },
32
32
  state: { type: String }
33
33
  },
34
34
  setup(e) {
35
- return (p, o) => (t(), s("button", {
36
- class: S(["complete-phrase_button", e.state])
35
+ return (d, t) => (o(), n("button", {
36
+ class: P(["complete-phrase_button", e.state])
37
37
  }, [
38
- M(p.$slots, "icon"),
39
- R(" " + c(e.label), 1)
38
+ A(d.$slots, "icon"),
39
+ N(" " + c(e.label), 1)
40
40
  ], 2));
41
41
  }
42
- }), te = ".complete-phrase_button{--pix-neutral-0: #fff;--pix-neutral-800: #253858;--pix-neutral-900: #122647;--pix-secondary-500: #ffcb33;--pix-secondary-700: #a16206}.complete-phrase_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)}.complete-phrase_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)}.complete-phrase_button.primary,.complete-phrase_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(.complete-phrase_button.primary,.complete-phrase_button.warning)[aria-disabled=true]{cursor:not-allowed;opacity:.5}:is(.complete-phrase_button.primary,.complete-phrase_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(.complete-phrase_button.primary,.complete-phrase_button.warning):not([aria-disabled=true]):hover svg{color:var(--color-hover);transition:color ease .5s}", ae = /* @__PURE__ */ y(ee, [["styles", [te]]]), oe = { class: "qcu" }, re = { class: "qcu__list" }, ie = ["id", "aria-label", "value", "checked", "disabled"], se = { for: "`choice${index}`" }, ne = {
42
+ }), Z = ".complete-phrase_button.primary{--background-color: #253858;--background-color-hover: #122647;--color: #fff;--color-hover: #fff}.complete-phrase_button.warning{--background-color: #ffcb33;--background-color-hover: #a16206;--color: #122647;--color-hover: #fff}.complete-phrase_button.primary,.complete-phrase_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(.complete-phrase_button.primary,.complete-phrase_button.warning)[aria-disabled=true]{cursor:not-allowed;opacity:.5}:is(.complete-phrase_button.primary,.complete-phrase_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(.complete-phrase_button.primary,.complete-phrase_button.warning):not([aria-disabled=true]):hover svg{color:var(--color-hover);transition:color ease .5s}", ee = /* @__PURE__ */ f(Y, [["styles", [Z]]]), te = { class: "qcu" }, oe = { class: "qcu__list" }, ae = ["id", "onClick", "aria-label", "checked", "disabled"], se = { for: "`choice${index}`" }, ie = {
43
43
  key: 0,
44
44
  class: "feedback"
45
- }, le = /* @__PURE__ */ g({
45
+ }, re = /* @__PURE__ */ h({
46
46
  __name: "QCU.ce",
47
47
  props: {
48
48
  list: { type: Array },
49
49
  title: { type: String }
50
50
  },
51
- emits: ["visible"],
52
- setup(e, { emit: p }) {
53
- const o = p, r = b(null), m = w(() => e.list.find((n) => n.percent === 100).name), d = b(!1);
54
- function u(n) {
55
- r.value = n.target.value, m.value === r.value && (o("visible"), d.value = !0);
51
+ emits: ["answer"],
52
+ setup(e, { emit: d }) {
53
+ const t = d, s = y(null), { t: p } = O(), _ = m(() => s.value.percent === 100 ? p("complete-phrase.feedback.sure") : s.value.percent >= 50 ? p("complete-phrase.feedback.probably", { word: e.list.find((i) => i.percent === 100).name }) : p("complete-phrase.feedback.notSure", { words: e.list.filter((i) => i.percent >= 50).map((i) => i.name) }));
54
+ function g(i) {
55
+ s.value = i, t("answer", i.name);
56
56
  }
57
- return (n, x) => (t(), s("div", oe, [
57
+ return (i, w) => (o(), n("div", te, [
58
58
  a("p", null, c(e.title), 1),
59
- a("section", re, [
60
- (t(!0), s($, null, q(e.list, (_, v) => (t(), s("div", {
59
+ a("section", oe, [
60
+ (o(!0), n(x, null, k(e.list, (r, l) => (o(), n("div", {
61
61
  class: "qcu__list-choice",
62
- key: v
62
+ key: l
63
63
  }, [
64
64
  a("input", {
65
- id: `choice${v}`,
65
+ id: `choice${l}`,
66
66
  type: "radio",
67
67
  name: "qcu-choice",
68
- onClick: u,
69
- "aria-label": _.name,
70
- value: _.name,
71
- checked: r.value === _.name,
72
- disabled: d.value
73
- }, null, 8, ie),
74
- a("label", se, c(_.name), 1)
68
+ onClick: (u) => g(r),
69
+ "aria-label": r.name,
70
+ checked: s.value === r,
71
+ disabled: !!s.value
72
+ }, null, 8, ae),
73
+ a("label", se, c(r.name), 1)
75
74
  ]))), 128))
76
75
  ]),
77
- m.value === r.value ? (t(), s("section", ne, c(n.$t("complete-phrase.feedback")), 1)) : T("", !0)
76
+ s.value ? (o(), n("section", ie, c(_.value), 1)) : z("", !0)
78
77
  ]));
79
78
  }
80
- }), ce = "[data-v-631720f6]{--pix-neutral-100: #cdd1d9;--pix-neutral-900: #122647;font-family:Roboto,sans-serif;color:var(--pix-neutral-900)}.qcu[data-v-631720f6]{align-items:center;display:flex;flex-direction:column;gap:16px}.qcu p[data-v-631720f6]{margin:0}.qcu__list[data-v-631720f6]{display:flex;gap:16px}.qcu__list-choice[data-v-631720f6]{position:relative}.qcu__list-choice input[data-v-631720f6]{appearance:none;height:100%;outline:none;position:absolute;width:100%}.qcu__list-choice input:checked+label[data-v-631720f6]{background-color:var(--pix-info-500);color:var(--pix-neutral-0)}.qcu__list-choice input[data-v-631720f6]:hover{cursor:pointer}.qcu__list-choice input:hover+label[data-v-631720f6]{background-color:var(--pix-info-500);color:var(--pix-neutral-0);transition:background-color .5s ease,color .5s ease}.qcu__list-choice input:disabled+label[data-v-631720f6],.qcu__list-choice input[data-v-631720f6]:disabled:hover{cursor:not-allowed}.qcu__list-choice input:disabled:not(:checked)+label[data-v-631720f6],.qcu__list-choice input:disabled:hover:not(:checked)+label[data-v-631720f6]{background:var(--pix-info-50);color:var(--pix-neutral-900);cursor:not-allowed;opacity:.5;transition:none}.qcu__list-choice label[data-v-631720f6]{align-items:center;background:var(--pix-info-50);border-radius:4px;color:inherit;display:flex;font-weight:700;gap:10px;justify-content:center;padding:4px 8px;transition:background-color .5s ease,color .5s ease}.qcu .feedback[data-v-631720f6]{display:flex;padding:8px 16px;flex-direction:column;align-items:flex-start;gap:16px;align-self:stretch;border-radius:8px;background:var(--pix-info-50)}", pe = /* @__PURE__ */ y(le, [["styles", [ce]], ["__scopeId", "data-v-631720f6"]]), de = { class: "complete-phrase" }, ue = ["aria-level"], be = { class: "complete-phrase__description" }, me = { class: "complete-phrase__container" }, _e = { class: "complete-phrase-container__conversation" }, fe = { class: "complete-phrase-container__probabilities" }, ve = ["id", "aria-hidden"], he = /* @__PURE__ */ g({
79
+ }), ne = "[data-v-74566fe6]{font-family:Roboto,sans-serif;color:#122647}.qcu[data-v-74566fe6]{align-items:center;display:flex;flex-direction:column;gap:16px}.qcu p[data-v-74566fe6]{margin:0}.qcu__list[data-v-74566fe6]{display:flex;gap:16px}.qcu__list-choice[data-v-74566fe6]{position:relative}.qcu__list-choice input[data-v-74566fe6]{appearance:none;height:100%;outline:none;position:absolute;width:100%}.qcu__list-choice input:checked+label[data-v-74566fe6]{background-color:#3b82f6;color:#fff}.qcu__list-choice input[data-v-74566fe6]:hover{cursor:pointer}.qcu__list-choice input:hover+label[data-v-74566fe6]{background-color:#3b82f6;color:#fff;transition:background-color .5s ease,color .5s ease}.qcu__list-choice input:disabled+label[data-v-74566fe6],.qcu__list-choice input[data-v-74566fe6]:disabled:hover{cursor:not-allowed}.qcu__list-choice input:disabled:not(:checked)+label[data-v-74566fe6],.qcu__list-choice input:disabled:hover:not(:checked)+label[data-v-74566fe6]{background:#e6f2fe;color:#122647;cursor:not-allowed;opacity:.5;transition:none}.qcu__list-choice label[data-v-74566fe6]{align-items:center;background:#e6f2fe;border-radius:4px;color:inherit;display:flex;font-weight:700;gap:10px;justify-content:center;padding:4px 8px;transition:background-color .5s ease,color .5s ease}.qcu .feedback[data-v-74566fe6]{display:flex;padding:8px 16px;flex-direction:column;align-items:flex-start;gap:16px;align-self:stretch;border-radius:8px;background:#e6f2fe}", le = /* @__PURE__ */ f(re, [["styles", [ne]], ["__scopeId", "data-v-74566fe6"]]), ce = { class: "complete-phrase" }, de = ["aria-level"], pe = { class: "complete-phrase__description" }, ue = { class: "complete-phrase__container" }, be = { class: "complete-phrase-container__conversation" }, me = { class: "complete-phrase-container__probabilities" }, he = ["id", "aria-hidden"], fe = /* @__PURE__ */ h({
81
80
  __name: "CompletePhrase.ce",
82
81
  props: {
83
82
  listOfProbabilityBarsLists: { type: Array },
@@ -86,84 +85,79 @@ const O = {}, F = {}, W = {}, G = {
86
85
  wordsToAdd: { type: Array },
87
86
  titleLevel: { type: Number }
88
87
  },
89
- setup(e, { expose: p }) {
90
- const o = e, r = b(0), m = b(o.llmMessage), d = b(!1), u = b(o.wordsToAdd), n = b(!1), x = w(() => {
91
- const [i] = o.listOfProbabilityBarsLists.filter((l, f) => f === r.value);
92
- return i;
93
- }), _ = w(() => {
94
- let [i] = u.value, l = "complete-message-word";
95
- if (d.value) {
96
- const [f] = x.value;
97
- i = f.name, l += ` complete-message-word--${n.value ? "visible" : "hidden"}`;
98
- }
99
- return `<p>${m.value} <span class="${l}">${i}</span></p>`;
88
+ setup(e, { expose: d }) {
89
+ const t = y(0), s = y(null), p = m(() => t.value === e.listOfProbabilityBarsLists.length - 1), _ = m(() => e.listOfProbabilityBarsLists[e.listOfProbabilityBarsLists.length - 1]), g = m(() => {
90
+ const r = e.wordsToAdd[t.value] ?? s.value ?? e.listOfProbabilityBarsLists[t.value][0].name, l = ["complete-message-word"];
91
+ return p.value && l.push(`complete-message-word--${s.value ? "visible" : "hidden"}`), `<p>
92
+ ${e.llmMessage}
93
+ ${e.wordsToAdd.slice(0, t.value).map((u) => `<span class="complete-message-word">${u}</span>`).join(" ")}
94
+ <span class="${l.join(" ")}">${r}</span>
95
+ </p>`;
100
96
  });
101
- function v() {
102
- d.value = !1, m.value = o.llmMessage, u.value = o.wordsToAdd, r.value = 0;
97
+ function i() {
98
+ t.value = 0, s.value = null;
103
99
  }
104
- function N() {
105
- u.value.length === 1 && (d.value = !0), r.value += 1;
106
- const [i, ...l] = u.value;
107
- u.value = l, m.value += `<span class="complete-message-word">${i} </span>`;
100
+ function w() {
101
+ t.value += 1;
108
102
  }
109
- return p({
110
- reset: v
111
- }), (i, l) => (t(), s("div", de, [
103
+ return d({
104
+ reset: i
105
+ }), (r, l) => (o(), n("div", ce, [
112
106
  a("div", {
113
107
  class: "complete-phrase__title",
114
108
  role: "heading",
115
109
  "aria-level": e.titleLevel
116
- }, c(i.$t("complete-phrase.title")), 9, ue),
117
- a("p", be, c(i.$t("complete-phrase.description")), 1),
118
- a("section", me, [
119
- a("div", _e, [
120
- L(B, {
110
+ }, c(r.$t("complete-phrase.title")), 9, de),
111
+ a("p", pe, c(r.$t("complete-phrase.description")), 1),
112
+ a("section", ue, [
113
+ a("div", be, [
114
+ q(C, {
121
115
  class: "container__message",
122
116
  message: { content: e.userMessage, direction: "outbound" }
123
117
  }, null, 8, ["message"]),
124
- L(B, {
118
+ q(C, {
125
119
  class: "container__message",
126
- message: { content: _.value, direction: "inbound" }
120
+ message: { content: g.value, direction: "inbound" }
127
121
  }, null, 8, ["message"])
128
122
  ]),
129
- a("div", fe, [
130
- (t(!0), s($, null, q(e.listOfProbabilityBarsLists, (f, h) => (t(), s("div", {
131
- class: S(["probability", { hidden: h !== r.value }]),
132
- key: h,
133
- id: `currentProbability${h}`,
134
- "aria-hidden": h !== r.value
123
+ a("div", me, [
124
+ (o(!0), n(x, null, k(e.listOfProbabilityBarsLists, (u, b) => (o(), n("div", {
125
+ class: P(["probability", { hidden: b !== t.value }]),
126
+ key: b,
127
+ id: `currentProbability${b}`,
128
+ "aria-hidden": b !== t.value
135
129
  }, [
136
- (t(!0), s($, null, q(f, (C, j) => (t(), k(Z, {
137
- name: C.name,
138
- percent: C.percent,
139
- key: j
130
+ (o(!0), n(x, null, k(u, ($, S) => (o(), v(X, {
131
+ name: $.name,
132
+ percent: $.percent,
133
+ key: S
140
134
  }, null, 8, ["name", "percent"]))), 128))
141
- ], 10, ve))), 128))
135
+ ], 10, he))), 128))
142
136
  ])
143
137
  ]),
144
- d.value ? (t(), k(pe, {
145
- key: 1,
146
- list: x.value,
147
- title: i.$t("complete-phrase.successfullyCompletedSentence"),
148
- onVisible: l[0] || (l[0] = (f) => n.value = !0)
149
- }, null, 8, ["list", "title"])) : (t(), k(ae, {
138
+ p.value ? (o(), v(le, {
150
139
  key: 0,
151
- onClick: N,
140
+ list: _.value,
141
+ title: r.$t("complete-phrase.successfullyCompletedSentence"),
142
+ onAnswer: l[0] || (l[0] = (u) => s.value = u)
143
+ }, null, 8, ["list", "title"])) : (o(), v(ee, {
144
+ key: 1,
145
+ onClick: w,
152
146
  state: "primary",
153
- label: i.$t("complete-phrase.clickHereButton"),
154
- "aria-describedby": `currentProbability${r.value}`
147
+ label: r.$t("complete-phrase.clickHereButton"),
148
+ "aria-describedby": `currentProbability${t.value}`
155
149
  }, null, 8, ["label", "aria-describedby"]))
156
150
  ]));
157
151
  }
158
- }), ge = "[data-v-be9b10f3]{--pix-info-50: #e6f2fe;--pix-info-500: #3b82f6;--pix-neutral-0: #fff;--pix-neutral-100: #cdd1d9;--pix-neutral-900: #122647;font-family:Roboto,sans-serif;color:var(--pix-neutral-900)}.complete-phrase__title[data-v-be9b10f3]{font-family:Nunito,sans-serif;font-size:1.75rem;font-weight:700;line-height:36px;text-align:center}.complete-phrase__description[data-v-be9b10f3]{text-align:center;font-size:1rem;font-weight:400;line-height:24px}.complete-phrase__container[data-v-be9b10f3]{display:grid;gap:32px;grid-template-columns:3fr 2fr;margin-bottom:24px}.complete-phrase-container__conversation[data-v-be9b10f3]{background:#fff;border:1px solid var(--pix-neutral-100);border-radius:16px;display:flex;flex-direction:column;gap:32px;padding:1rem}.complete-phrase-container__conversation .message[data-v-be9b10f3]{align-items:center}.complete-phrase-container__probabilities[data-v-be9b10f3]{display:grid}.complete-phrase-container__probabilities .probability[data-v-be9b10f3]{display:flex;flex-direction:column;gap:16px;grid-row:1;grid-column:1}.complete-phrase-container__probabilities .probability.hidden[data-v-be9b10f3]{visibility:hidden}@media(max-width:600px){.complete-phrase__container[data-v-be9b10f3]{grid-template-columns:1fr}.complete-phrase-container__probabilities .probability.hidden[data-v-be9b10f3]{display:none}}", ye = /* @__PURE__ */ y(he, [["styles", [ge]], ["__scopeId", "data-v-be9b10f3"]]);
159
- E(/* @__PURE__ */ Object.assign({ "./locales/en.json": O, "./locales/es-419.json": F, "./locales/es.json": W, "./locales/fr.json": G, "./locales/it.json": H, "./locales/nl.json": Q })).catch((e) => console.error(e));
160
- const A = V(ye, {
152
+ }), _e = "*{font-family:Roboto,sans-serif;color:#122647}.complete-phrase__title{font-family:Nunito,sans-serif;font-size:1.75rem;font-weight:700;line-height:36px;text-align:center}.complete-phrase__description{text-align:center;font-size:1rem;font-weight:400;line-height:24px}.complete-phrase__container{display:grid;gap:32px;grid-template-columns:3fr 2fr;margin-bottom:24px}.complete-phrase-container__conversation{background:#fff;border:1px solid #cdd1d9;border-radius:16px;display:flex;flex-direction:column;gap:32px;padding:1rem}.complete-phrase-container__conversation .message{align-items:center}.complete-phrase-container__probabilities{display:grid}.complete-phrase-container__probabilities .probability{display:flex;flex-direction:column;gap:16px;grid-row:1;grid-column:1}.complete-phrase-container__probabilities .probability.hidden{visibility:hidden}.complete-message-word:last-child{border:none;filter:blur(4px);font-weight:600;height:auto;width:auto}.complete-message-word--visible:last-child{color:inherit;filter:none;font-weight:700}.complete-message-word--hidden:last-child{background-color:#f4f5f7;border-radius:4px;border:1px dashed #5e6c84;color:transparent;display:inline-block;filter:none;padding:2px 4px}.complete-message-word:nth-last-child(2){font-weight:600}@media(max-width:600px){.complete-phrase__container{grid-template-columns:1fr}.complete-phrase-container__probabilities .probability.hidden{display:none}}", ge = /* @__PURE__ */ f(fe, [["styles", [_e]]]);
153
+ I(/* @__PURE__ */ Object.assign({ "./locales/en.json": E, "./locales/es-419.json": D, "./locales/es.json": V, "./locales/fr.json": F, "./locales/it.json": Q, "./locales/nl.json": W })).catch((e) => console.error(e));
154
+ const B = M(ge, {
161
155
  configureApp(e) {
162
- P.changeLanguage(document?.documentElement?.lang || navigator.language), e.use(I, { i18next: P });
156
+ L.changeLanguage(document?.documentElement?.lang || navigator.language), e.use(R, { i18next: L });
163
157
  }
164
158
  });
165
- A.prototype.normalizeProps = (e) => ({
159
+ B.prototype.normalizeProps = (e) => ({
166
160
  ...e,
167
- titleLevel: D(e.titleLevel)
161
+ titleLevel: T(e.titleLevel)
168
162
  });
169
- window.customElements.define("complete-phrase", A);
163
+ window.customElements.define("complete-phrase", B);
@@ -1,5 +1,5 @@
1
1
  import { d as c, c as t, o as s, a as e, A as n, F as r, b as m, D as i, _ as p, f as g } from "../_plugin-vue_export-helper-D7ghZaw4.js";
2
- import { L as l } from "../LLMMessage.ce-qbRxqNxR.js";
2
+ import { L as l } from "../LLMMessage.ce-DOzBmUDF.js";
3
3
  import { p as u } from "../shadow-dom-CFAQERh6.js";
4
4
  const f = {
5
5
  class: "header",
@@ -1,5 +1,5 @@
1
1
  import { d as c, H as m, I as i, c as t, o as e, F as p, b as d, e as f, _ as g, f as u } from "../_plugin-vue_export-helper-D7ghZaw4.js";
2
- import { L as h } from "../LLMMessage.ce-qbRxqNxR.js";
2
+ import { L as h } from "../LLMMessage.ce-DOzBmUDF.js";
3
3
  import { p as _ } from "../shadow-dom-CFAQERh6.js";
4
4
  const x = {
5
5
  class: "llm-messages",
@@ -1,5 +1,5 @@
1
1
  import { d as u, c as a, o as n, a as t, A as i, F as l, b as d, x as h, _ as m, f } from "../_plugin-vue_export-helper-D7ghZaw4.js";
2
- import { a as p, i as o, b as v } from "../i18n-DX3ApBSH.js";
2
+ import { a as p, i as o, b as v } from "../i18n-CGAadjAA.js";
3
3
  import { u as y } from "../normalize-props-AlmAfi_u.js";
4
4
  const b = {}, x = {}, S = {}, L = {
5
5
  "pix-article": { byAuthor: "Par {{author}}" }
@@ -1,5 +1,5 @@
1
1
  import { d as S, c as n, o as t, y as M, a as s, v as L, C as R, G as z, A as g, x as l, _ as h, r as $, M as V, k as w, D as m, t as k, L as P, N as _, F as A, b as N, e as T, f as F } from "../_plugin-vue_export-helper-D7ghZaw4.js";
2
- import { a as G, i as B, b as O } from "../i18n-DX3ApBSH.js";
2
+ import { a as G, i as B, b as O } from "../i18n-CGAadjAA.js";
3
3
  import { B as j, N as D } from "../NavigationButton.ce-DF5ScHc4.js";
4
4
  import { u as C, a as W } from "../normalize-props-AlmAfi_u.js";
5
5
  const Z = {
@@ -1,5 +1,5 @@
1
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";
2
+ import { a as G, i as w, b as R } from "../i18n-CGAadjAA.js";
3
3
  import { N as j } from "../NavigationButton.ce-DF5ScHc4.js";
4
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 }" }
@@ -1,5 +1,5 @@
1
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";
2
+ import { i as a, a as K, b as X } from "../i18n-CGAadjAA.js";
3
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 = {
@@ -1,15 +1,15 @@
1
- import { s as we, n as ve, d as Re, i as Ce } from "./_plugin-vue_export-helper-D7ghZaw4.js";
1
+ import { s as ve, n as Re, d as Ce, i as Pe } 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, Pe = (o, e, t) => {
8
+ }, se = (o) => o == null ? "" : "" + o, $e = (o, e, t) => {
9
9
  o.forEach((i) => {
10
10
  e[i] && (t[i] = e[i]);
11
11
  });
12
- }, $e = /###/g, ie = (o) => o && o.indexOf("###") > -1 ? o.replace($e, ".") : o, ne = (o) => !o || d(o), A = (o, e, t) => {
12
+ }, Ne = /###/g, ie = (o) => o && o.indexOf("###") > -1 ? o.replace(Ne, ".") : 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
- }, Ne = (o, e, t, i) => {
37
+ }, ke = (o, e, t, i) => {
38
38
  const {
39
39
  obj: s,
40
40
  k: n
@@ -47,7 +47,7 @@ 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
- }, ke = (o, e, t) => {
50
+ }, Ee = (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) => {
@@ -55,7 +55,7 @@ const d = (o) => typeof o == "string", V = () => {
55
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 Ee = {
58
+ var Fe = {
59
59
  "&": "&amp;",
60
60
  "<": "&lt;",
61
61
  ">": "&gt;",
@@ -63,8 +63,8 @@ var Ee = {
63
63
  "'": "&#39;",
64
64
  "/": "&#x2F;"
65
65
  };
66
- const Fe = (o) => d(o) ? o.replace(/[&<>"'\/]/g, (e) => Ee[e]) : o;
67
- class je {
66
+ const je = (o) => d(o) ? o.replace(/[&<>"'\/]/g, (e) => Fe[e]) : o;
67
+ class Ie {
68
68
  constructor(e) {
69
69
  this.capacity = e, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
70
70
  }
@@ -76,11 +76,11 @@ class je {
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 Ie = [" ", ",", "?", "!", ";"], Te = new je(20), De = (o, e, t) => {
79
+ const Te = [" ", ",", "?", "!", ";"], De = new Ie(20), Ke = (o, e, t) => {
80
80
  e = e || "", t = t || "";
81
- const i = Ie.filter((r) => e.indexOf(r) < 0 && t.indexOf(r) < 0);
81
+ const i = Te.filter((r) => e.indexOf(r) < 0 && t.indexOf(r) < 0);
82
82
  if (i.length === 0) return !0;
83
- const s = Te.getRegExp(`(${i.map((r) => r === "?" ? "\\?" : r).join("|")})`);
83
+ const s = De.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 Ie = [" ", ",", "?", "!", ";"], Te = new je(20), De = (o, e, t) => {
107
107
  s = r;
108
108
  }
109
109
  return s;
110
- }, M = (o) => o?.replace("_", "-"), Ke = {
110
+ }, M = (o) => o?.replace("_", "-"), Ve = {
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 || Ke, this.options = t, this.debug = t.debug;
130
+ this.prefix = t.prefix || "i18next:", this.logger = e || Ve, this.options = t, this.debug = t.debug;
131
131
  }
132
132
  log(...e) {
133
133
  return this.forward(e, "log", "", !0);
@@ -266,7 +266,7 @@ var ye = {
266
266
  }
267
267
  };
268
268
  const Se = Symbol("i18next/PATH_KEY");
269
- function Ve() {
269
+ function Ae() {
270
270
  const o = [], e = /* @__PURE__ */ Object.create(null);
271
271
  let t;
272
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;
@@ -274,13 +274,13 @@ function Ve() {
274
274
  function Z(o, e) {
275
275
  const {
276
276
  [Se]: t
277
- } = o(Ve());
277
+ } = o(Ae());
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(), 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");
283
+ super(), $e(["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 && !De(e, i, s);
305
+ const r = i && e.indexOf(i) > -1, a = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !Ke(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 Oe = Y(v), Le = Object.prototype.toString.apply(v);
363
- if (E && v && Oe && L.indexOf(Le) < 0 && !(d(y) && Array.isArray(v))) {
362
+ const Le = Y(v), we = Object.prototype.toString.apply(v);
363
+ if (E && v && Le && L.indexOf(we) < 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, {
@@ -607,7 +607,7 @@ const ue = {
607
607
  pluralCategories: ["one", "other"]
608
608
  })
609
609
  };
610
- class Ae {
610
+ class Ue {
611
611
  constructor(e, t = {}) {
612
612
  this.languageUtils = e, this.options = t, this.logger = P.create("pluralResolver"), this.pluralRulesCache = {};
613
613
  }
@@ -655,7 +655,7 @@ class Ae {
655
655
  }
656
656
  }
657
657
  const he = (o, e, t, i = ".", s = !0) => {
658
- let n = ke(o, e, t);
658
+ let n = Ee(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
661
  class ce {
@@ -685,7 +685,7 @@ class ce {
685
685
  maxReplaces: L,
686
686
  alwaysFormat: y
687
687
  } = e.interpolation;
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();
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();
689
689
  }
690
690
  reset() {
691
691
  this.options && this.init(this.options);
@@ -776,7 +776,7 @@ class ce {
776
776
  return e;
777
777
  }
778
778
  }
779
- const Ue = (o) => {
779
+ const Me = (o) => {
780
780
  let e = o.toLowerCase().trim();
781
781
  const t = {};
782
782
  if (o.indexOf("(") > -1) {
@@ -806,8 +806,8 @@ const Ue = (o) => {
806
806
  let a = e[r];
807
807
  return a || (a = o(M(i), s), e[r] = a), a(t);
808
808
  };
809
- }, Me = (o) => (e, t, i) => o(M(t), i)(e);
810
- class He {
809
+ }, He = (o) => (e, t, i) => o(M(t), i)(e);
810
+ class ze {
811
811
  constructor(e = {}) {
812
812
  this.logger = P.create("formatter"), this.options = e, this.init(e);
813
813
  }
@@ -815,7 +815,7 @@ class He {
815
815
  interpolation: {}
816
816
  }) {
817
817
  this.formatSeparator = t.interpolation.formatSeparator || ",";
818
- const i = t.cacheInBuiltFormats ? de : Me;
818
+ const i = t.cacheInBuiltFormats ? de : He;
819
819
  this.formats = {
820
820
  number: i((s, n) => {
821
821
  const r = new Intl.NumberFormat(s, {
@@ -866,7 +866,7 @@ class He {
866
866
  const {
867
867
  formatName: u,
868
868
  formatOptions: h
869
- } = Ue(l);
869
+ } = Me(l);
870
870
  if (this.formats[u]) {
871
871
  let f = a;
872
872
  try {
@@ -886,10 +886,10 @@ class He {
886
886
  }, e);
887
887
  }
888
888
  }
889
- const ze = (o, e) => {
889
+ const Be = (o, e) => {
890
890
  o.pending[e] !== void 0 && (delete o.pending[e], o.pendingCount--);
891
891
  };
892
- class Be extends W {
892
+ class Je extends W {
893
893
  constructor(e, t, i, s = {}) {
894
894
  super(), this.backend = e, this.store = t, this.services = i, this.languageUtils = i.languageUtils, this.options = s, this.logger = P.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = s.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = s.maxRetries >= 0 ? s.maxRetries : 5, this.retryTimeout = s.retryTimeout >= 1 ? s.retryTimeout : 350, this.state = {}, this.queue = [], this.backend?.init?.(i, s.backend, s);
895
895
  }
@@ -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
- Ne(l.loaded, [n], r), ze(l, e), t && l.errors.push(t), l.pendingCount === 0 && !l.done && (Object.keys(l.loaded).forEach((u) => {
924
+ ke(l.loaded, [n], r), Be(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) => {
@@ -1077,7 +1077,7 @@ const ge = () => ({
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
- }, Je = (o) => {
1080
+ }, _e = (o) => {
1081
1081
  Object.getOwnPropertyNames(Object.getPrototypeOf(o)).forEach((t) => {
1082
1082
  typeof o[t] == "function" && (o[t] = o[t].bind(o));
1083
1083
  });
@@ -1086,7 +1086,7 @@ class U extends W {
1086
1086
  constructor(e = {}, t) {
1087
1087
  if (super(), this.options = pe(e), this.services = {}, this.logger = P, this.modules = {
1088
1088
  external: []
1089
- }, Je(this), t && !this.isInitialized && !e.isClone) {
1089
+ }, _e(this), t && !this.isInitialized && !e.isClone) {
1090
1090
  if (!this.options.initAsync)
1091
1091
  return this.init(e, t), this;
1092
1092
  setTimeout(() => {
@@ -1109,16 +1109,16 @@ class U extends W {
1109
1109
  if (!this.options.isClone) {
1110
1110
  this.modules.logger ? P.init(s(this.modules.logger), this.options) : P.init(null, this.options);
1111
1111
  let u;
1112
- this.modules.formatter ? u = this.modules.formatter : u = He;
1112
+ this.modules.formatter ? u = this.modules.formatter : u = ze;
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 Ae(h, {
1116
+ f.logger = P, f.resourceStore = this.store, f.languageUtils = h, f.pluralResolver = new Ue(h, {
1117
1117
  prepend: this.options.pluralSeparator,
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 Be(s(this.modules.backend), f.resourceStore, f, this.options), f.backendConnector.on("*", (g, ...c) => {
1121
+ }, f.backendConnector = new Je(s(this.modules.backend), f.resourceStore, f, this.options), f.backendConnector.on("*", (g, ...c) => {
1122
1122
  this.emit(g, ...c);
1123
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
1124
  this.emit(g, ...c);
@@ -1332,13 +1332,13 @@ m.hasLoadedNamespace;
1332
1332
  m.loadNamespaces;
1333
1333
  m.loadLanguages;
1334
1334
  var be = Symbol();
1335
- function qe(o, {
1335
+ function et(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 = we(/* @__PURE__ */ new Date()), r = () => ve(() => {
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) => {
@@ -1352,7 +1352,7 @@ function qe(o, {
1352
1352
  e.on(h, r);
1353
1353
  break;
1354
1354
  }
1355
- }), o.component("i18next", Ye);
1355
+ }), o.component("i18next", Qe);
1356
1356
  const l = () => e.isInitialized;
1357
1357
  o.config.globalProperties.$t = me(
1358
1358
  e.t.bind(e),
@@ -1366,12 +1366,32 @@ function qe(o, {
1366
1366
  });
1367
1367
  o.config.globalProperties.$i18next = u, o.provide(be, {
1368
1368
  i18next: u,
1369
- slotPattern: We(i, s),
1369
+ slotPattern: Ye(i, s),
1370
1370
  withAccessRecording(h, f) {
1371
1371
  return me(h, a, f);
1372
1372
  }
1373
1373
  });
1374
1374
  }
1375
+ function tt(o, e) {
1376
+ const { i18next: t, withAccessRecording: i } = Oe();
1377
+ let s;
1378
+ return s = t.getFixedT(null, null, void 0), {
1379
+ i18next: t,
1380
+ t: i(s, We(t, o))
1381
+ };
1382
+ }
1383
+ function We(o, e = []) {
1384
+ let t;
1385
+ 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;
1392
+ return t;
1393
+ };
1394
+ }
1375
1395
  function me(o, e, t) {
1376
1396
  return new Proxy(o, {
1377
1397
  apply: function(i, s, n) {
@@ -1379,19 +1399,19 @@ function me(o, e, t) {
1379
1399
  }
1380
1400
  });
1381
1401
  }
1382
- function _e() {
1383
- const o = Ce(be);
1402
+ function Oe() {
1403
+ const o = Pe(be);
1384
1404
  if (!o)
1385
1405
  throw new Error(
1386
1406
  "i18next-vue: Make sure to register the i18next-vue plugin using app.use(...)."
1387
1407
  );
1388
1408
  return o;
1389
1409
  }
1390
- function We(o, e) {
1410
+ function Ye(o, e) {
1391
1411
  const t = `${o}\\s*([a-z0-9\\-]+)\\s*${e}`;
1392
1412
  return new RegExp(t, "gi");
1393
1413
  }
1394
- var Ye = Re({
1414
+ var Qe = Ce({
1395
1415
  props: {
1396
1416
  translation: {
1397
1417
  type: String,
@@ -1399,7 +1419,7 @@ var Ye = Re({
1399
1419
  }
1400
1420
  },
1401
1421
  setup(o, { slots: e }) {
1402
- const { slotPattern: t } = _e();
1422
+ const { slotPattern: t } = Oe();
1403
1423
  return () => {
1404
1424
  const i = o.translation, s = [];
1405
1425
  let n, r = 0;
@@ -1412,21 +1432,22 @@ var Ye = Re({
1412
1432
  };
1413
1433
  }
1414
1434
  });
1415
- const Qe = "translation";
1416
- async function et(o) {
1435
+ const Ge = "translation";
1436
+ async function st(o) {
1417
1437
  for (const [e, t] of Object.entries(o)) {
1418
1438
  const i = e.match(/\/([^/]+)\.json$/)[1];
1419
- await Ge(i, t);
1439
+ await Ze(i, t);
1420
1440
  }
1421
1441
  }
1422
- async function Ge(o, e) {
1423
- await Ze(), m.addResourceBundle(o, Qe, e, !0, !0);
1442
+ async function Ze(o, e) {
1443
+ await Xe(), m.addResourceBundle(o, Ge, e, !0, !0);
1424
1444
  }
1425
- async function Ze() {
1445
+ async function Xe() {
1426
1446
  m.isInitialized || await m.init();
1427
1447
  }
1428
1448
  export {
1429
- et as a,
1430
- qe as b,
1431
- m as i
1449
+ st as a,
1450
+ et as b,
1451
+ m as i,
1452
+ tt as u
1432
1453
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1024pix/epreuves-components",
3
- "version": "2.2.6",
3
+ "version": "2.3.0",
4
4
  "description": "A collection of interactive components to be used in Pix challenges or modules",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",