@1024pix/epreuves-components 4.6.0 → 4.6.2

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 (60) hide show
  1. package/dist/Button.ce-CsTDnAGh.js +31 -0
  2. package/dist/{ButtonTooltip.ce-B071jWM0.js → ButtonTooltip.ce-CUxXoH9n.js} +5 -5
  3. package/dist/Cross.ce.vue_vue_type_script_setup_true_lang-CGq82iLD.js +83 -0
  4. package/dist/{FocusManager.ce-Cb8fkfeb.js → FocusManager.ce-BG_n76ZF.js} +2 -2
  5. package/dist/{Icon.ce-AUDpzQic.js → Icon.ce-DqVOTSTE.js} +7 -7
  6. package/dist/LLMMessage.ce-BM9ikl_y.js +98 -0
  7. package/dist/{Loading.ce-D7EpPBBD.js → Loading.ce-CG-e7tdE.js} +1 -1
  8. package/dist/{Modal.ce-CRJ7RcAX.js → Modal.ce-DCTwYJKJ.js} +9 -9
  9. package/dist/{NavigationButton.ce-DqFqWt9V.js → NavigationButton.ce-CIOKG2O0.js} +16 -14
  10. package/dist/{PixMailMessage.ce-Cqrs9R3i.js → PixMailMessage.ce-DUSt6eGF.js} +59 -59
  11. package/dist/{Popin.ce-D1V8wzxE.js → Popin.ce-OnxaZNvT.js} +5 -5
  12. package/dist/{Retry-fzluiEoj.js → Retry-DLOo5neI.js} +3 -3
  13. package/dist/{Stepper.ce-cG0al2pY.js → Stepper.ce-MmSadTrx.js} +1 -1
  14. package/dist/{_plugin-vue_export-helper-DJlRxzRH.js → _plugin-vue_export-helper-CD1RUA2y.js} +7 -7
  15. package/dist/components/analyse-mails-phishing.ce.js.js +110 -111
  16. package/dist/components/autocompletion-mdp.ce.js.js +92 -92
  17. package/dist/components/button.ce.js.js +2 -2
  18. package/dist/components/calcul-impact.ce.js.js +36 -36
  19. package/dist/components/capacity-calculation.ce.js.js +46 -43
  20. package/dist/components/clickable-image.ce.js.js +25 -25
  21. package/dist/components/complete-phrase.ce.js.js +50 -50
  22. package/dist/components/flip-cards.ce.js.js +21 -21
  23. package/dist/components/generate-mdp.ce.js.js +56 -56
  24. package/dist/components/image-quiz.ce.js.js +3 -3
  25. package/dist/components/image-quizzes.ce.js.js +3 -3
  26. package/dist/components/llm-compare-messages.ce.js.js +4 -4
  27. package/dist/components/llm-messages.ce.js.js +6 -6
  28. package/dist/components/llm-prompt-select.ce.js.js +7 -7
  29. package/dist/components/mdp-classement.ce.js.js +107 -115
  30. package/dist/components/message-conversation.ce.js.js +17 -17
  31. package/dist/components/mobile-shell.ce.js.js +1 -1
  32. package/dist/components/notification-antivirus.ce.js.js +136 -146
  33. package/dist/components/phishing-message.ce.js.js +89 -89
  34. package/dist/components/phishing-notification.ce.js.js +10 -10
  35. package/dist/components/pix-anonymisation.ce.js.js +75 -75
  36. package/dist/components/pix-article.ce.js.js +7 -7
  37. package/dist/components/pix-carousel.ce.js.js +24 -22
  38. package/dist/components/pix-combinaisons.ce.js.js +25 -25
  39. package/dist/components/pix-cursor.ce.js.js +33 -33
  40. package/dist/components/pix-mail-message.ce.js.js +3 -3
  41. package/dist/components/proteger-mail-spam.ce.js.js +72 -84
  42. package/dist/components/qcm-deepfake.ce.js.js +31 -31
  43. package/dist/components/quiz-stepper.ce.js.js +66 -73
  44. package/dist/components/select-conversation.ce.js.js +4 -4
  45. package/dist/components/template-mail.ce.js.js +3 -3
  46. package/dist/components/test-top-mdp.ce.js.js +7 -7
  47. package/dist/components/trouver-mdp-rs.ce.js.js +154 -168
  48. package/dist/components/usages-donnees.ce.js.js +34 -34
  49. package/dist/{i18n-C0iMUvqX.js → i18n-C-1Ne5JG.js} +1 -1
  50. package/dist/{i18n-lite-X2ADNonj.js → i18n-lite-WQsHAHqG.js} +1 -1
  51. package/dist/{image-quiz.ce-BaKLPvSS.js → image-quiz.ce-KliaBWpC.js} +7 -7
  52. package/dist/{index-Ck6CFpiq.js → index-C8-9QxHJ.js} +1 -1
  53. package/dist/index.js +1 -1
  54. package/dist/{shadow-dom-Dh5hLXcx.js → shadow-dom-DSLDIcsa.js} +1 -1
  55. package/package.json +1 -1
  56. package/dist/Button.ce-C-lBihdF.js +0 -31
  57. package/dist/Cross.ce.vue_vue_type_script_setup_true_lang-Cc1FblLh.js +0 -53
  58. package/dist/Feedback.ce-CeyQhenY.js +0 -26
  59. package/dist/LLMMessage.ce-DBorHEa1.js +0 -96
  60. package/dist/components/feedback.ce.js.js +0 -4
@@ -1,7 +1,7 @@
1
- import { a as g, o as r, c as u, t as p, q as E, A as L, x as s, _, N as C, b as t, F as D, e as R, v as T, D as x, y as V, X as Z, E as O, r as y, g as w, f, l as $, d as z } from "../_plugin-vue_export-helper-DJlRxzRH.js";
2
- import { u as F, a as P, i as k, b as W } from "../i18n-C0iMUvqX.js";
1
+ import { b as g, o as r, c as u, t as p, q as E, E as L, x as s, _, N as C, a as t, F as D, e as R, v as T, C as h, y as V, X as Z, D as O, r as y, g as w, f as b, l as $, d as z } from "../_plugin-vue_export-helper-CD1RUA2y.js";
2
+ import { u as F, a as P, i as k, b as W } from "../i18n-C-1Ne5JG.js";
3
3
  import { b as G } from "../normalize-props-DH0oPBss.js";
4
- import { R as H } from "../Retry-fzluiEoj.js";
4
+ import { R as H } from "../Retry-DLOo5neI.js";
5
5
  const K = {}, X = {}, J = {}, Y = {}, aa = {}, ea = {
6
6
  "capacity-calculation": { in: { aiQuestion: "Quelle est la demande à l’IA ?", aiOptions: ["Fais une vidéo d’une durée d’une minute.", "Écris un texte de 10 lignes.", "Fais un dessin de haute qualité."], userQuestion: "Combien d’utilisateurs font la demande en même temps ?", buttonLabel: { primary: "Observer l’effet", warning: "Recommencer" } }, out: { title: "Impact des demandes", consumption: { label: "Consommation d’électricité :", normal_weak: "Moyenne", normal_medium: "Moyenne", warning: "Très forte", error: "Très forte", initial: "À l’arrêt" }, capacity: { label: "État du centre de données :", normal_weak: "Normal", normal_medium: "Normal", warning: "Sollicitation maximale", error: "Ne peut pas répondre à la demande", initial: "À l’arrêt" } } }
7
7
  }, ta = {}, ca = {}, la = /* @__PURE__ */ g({
@@ -45,7 +45,7 @@ const K = {}, X = {}, J = {}, Y = {}, aa = {}, ea = {
45
45
  const { t: c } = F(), n = C(a, "selectedAiQuestion"), e = C(a, "selectedNbUser"), l = C(a, "currentLevel"), i = y(!1), d = w(() => ({
46
46
  state: l.value === "initial" ? "primary" : "warning",
47
47
  label: c(`capacity-calculation.in.buttonLabel.${l.value === "initial" ? "primary" : "warning"}`)
48
- })), h = w(() => Number.isInteger(n.value)), q = [800, 8e3, 14e3, 25e3, 9e4, 15e4], A = /* @__PURE__ */ new Set([
48
+ })), x = w(() => Number.isInteger(n.value)), q = [800, 8e3, 14e3, 25e3, 9e4, 15e4], M = /* @__PURE__ */ new Set([
49
49
  // Valeurs de base
50
50
  10,
51
51
  20,
@@ -78,19 +78,19 @@ const K = {}, X = {}, J = {}, Y = {}, aa = {}, ea = {
78
78
  75e3,
79
79
  1e5,
80
80
  125e3
81
- ]), b = Array.from(A).sort((o, v) => o - v), M = w(() => {
82
- const o = b.indexOf(e.value);
81
+ ]), f = Array.from(M).sort((o, v) => o - v), Q = w(() => {
82
+ const o = f.indexOf(e.value);
83
83
  return Math.max(0, o);
84
- }), Q = (o) => {
84
+ }), S = (o) => {
85
85
  const v = o.target;
86
- e.value = b[Number(v.value)];
87
- }, S = (o) => {
86
+ e.value = f[Number(v.value)];
87
+ }, U = (o) => {
88
88
  if (i.value) {
89
89
  o.preventDefault();
90
90
  return;
91
91
  }
92
- }, U = () => {
93
- if (h.value) {
92
+ }, j = () => {
93
+ if (x.value) {
94
94
  if (l.value !== "initial") {
95
95
  I();
96
96
  return;
@@ -98,7 +98,7 @@ const K = {}, X = {}, J = {}, Y = {}, aa = {}, ea = {
98
98
  n.value === 0 ? e.value >= 10 && e.value <= 400 ? l.value = "normal_weak" : e.value >= 401 && e.value <= 700 ? l.value = "normal_medium" : e.value >= 701 && e.value <= 1e3 ? l.value = "warning" : l.value = "error" : n.value === 1 ? e.value >= 10 && e.value <= 4e4 ? l.value = "normal_weak" : e.value >= 40001 && e.value <= 7e4 ? l.value = "normal_medium" : e.value >= 70001 && e.value <= 1e5 ? l.value = "warning" : l.value = "error" : n.value === 2 && (e.value >= 10 && e.value <= 8e3 ? l.value = "normal_weak" : e.value >= 8001 && e.value <= 14e3 ? l.value = "normal_medium" : e.value >= 14001 && e.value <= 2e4 ? l.value = "warning" : l.value = "error"), i.value = !0;
99
99
  }
100
100
  };
101
- function j(o) {
101
+ function A(o) {
102
102
  if (i.value) {
103
103
  o.preventDefault();
104
104
  return;
@@ -120,8 +120,8 @@ const K = {}, X = {}, J = {}, Y = {}, aa = {}, ea = {
120
120
  "aria-disabled": i.value,
121
121
  name: "ai-answer",
122
122
  value: m,
123
- onClick: j,
124
- checked: n.value === m
123
+ checked: n.value === m,
124
+ onClick: A
125
125
  }, null, 8, ua),
126
126
  L(" " + s(B), 1)
127
127
  ], 2)
@@ -131,42 +131,43 @@ const K = {}, X = {}, J = {}, Y = {}, aa = {}, ea = {
131
131
  t("legend", _a, s(o.$t("capacity-calculation.in.userQuestion")), 1),
132
132
  t("div", pa, [
133
133
  t("input", {
134
- type: "range",
135
134
  id: "nbUser",
135
+ type: "range",
136
136
  name: "nbUser",
137
137
  min: 0,
138
- max: T(b).length - 1,
139
- value: M.value,
140
- onChange: Q,
141
- onKeydown: S,
138
+ max: T(f).length - 1,
139
+ value: Q.value,
142
140
  "aria-disabled": i.value,
143
- class: "capacity-calculation__range"
141
+ class: "capacity-calculation__range",
142
+ onChange: S,
143
+ onKeydown: U
144
144
  }, null, 40, va),
145
145
  t("label", ma, s(e.value.toLocaleString()), 1)
146
146
  ])
147
147
  ]),
148
- x(ia, {
149
- onClick: V(U, ["prevent"]),
150
- "aria-disabled": !h.value,
148
+ h(ia, {
149
+ "aria-disabled": !x.value,
151
150
  label: d.value.label,
152
- state: d.value.state
151
+ state: d.value.state,
152
+ onClick: V(j, ["prevent"])
153
153
  }, Z({ _: 2 }, [
154
154
  l.value !== "initial" ? {
155
155
  name: "icon",
156
156
  fn: O(() => [
157
- x(H)
157
+ h(H)
158
158
  ]),
159
159
  key: "0"
160
160
  } : void 0
161
161
  ]), 1032, ["aria-disabled", "label", "state"])
162
162
  ]));
163
163
  }
164
- }), fa = ".capacity-calculation__column--questions[data-v-55aedee7]{background:#fff;border:1px solid #cdd1d9}.capacity-calculation__column--questions .capacity-calculation__fieldset[data-v-55aedee7]{border:none;display:flex;flex-direction:column;gap:12px;padding:0}.capacity-calculation__column--questions .capacity-calculation__fieldset--range[data-v-55aedee7]{margin-top:12px}.capacity-calculation__column--questions .capacity-calculation__legend[data-v-55aedee7]{font-weight:500;margin-bottom:16px}.capacity-calculation__column--questions .capacity-calculation__legend--user-question[data-v-55aedee7]{font-weight:500;margin:16px 0}.capacity-calculation__column--questions .capacity-calculation__ai-option[data-v-55aedee7]{border:1px solid #5e6c84;border-radius:8px;display:block;cursor:pointer;padding:12px;transition:all .2s ease}.capacity-calculation__column--questions .capacity-calculation__ai-option[data-v-55aedee7]:hover,.capacity-calculation__column--questions .capacity-calculation__ai-option[data-v-55aedee7]:focus{background-color:#f7f5ff;border-color:#613fdd;color:#291a5d}.capacity-calculation__column--questions .capacity-calculation__ai-option--active[data-v-55aedee7]{background-color:#f7f5ff;border-color:#613fdd;color:#291a5d}.capacity-calculation__column--questions .capacity-calculation__ai-option.disabled[data-v-55aedee7]{cursor:not-allowed;background:#f1f1f1;border-color:#5b5b5b}.capacity-calculation__column--questions .capacity-calculation__range-wrap[data-v-55aedee7]{display:flex;flex-direction:column;gap:8px}.capacity-calculation__column--questions .capacity-calculation__range[data-v-55aedee7]{width:100%;accent-color:#613fdd}.capacity-calculation__column--questions .capacity-calculation__range[aria-disabled=true][data-v-55aedee7]{opacity:.3;pointer-events:none}.capacity-calculation__column--questions .capacity-calculation__range-label[data-v-55aedee7]{display:flex;justify-content:center;font-weight:700;margin-block:-5px 10px}", ga = /* @__PURE__ */ _(ya, [["styles", [fa]], ["__scopeId", "data-v-55aedee7"]]), ba = {}, Ca = {
164
+ }), ba = ".capacity-calculation__column--questions[data-v-358b5c7c]{background:#fff;border:1px solid #cdd1d9}.capacity-calculation__column--questions .capacity-calculation__fieldset[data-v-358b5c7c]{border:none;display:flex;flex-direction:column;gap:12px;padding:0}.capacity-calculation__column--questions .capacity-calculation__fieldset--range[data-v-358b5c7c]{margin-top:12px}.capacity-calculation__column--questions .capacity-calculation__legend[data-v-358b5c7c]{font-weight:500;margin-bottom:16px}.capacity-calculation__column--questions .capacity-calculation__legend--user-question[data-v-358b5c7c]{font-weight:500;margin:16px 0}.capacity-calculation__column--questions .capacity-calculation__ai-option[data-v-358b5c7c]{border:1px solid #5e6c84;border-radius:8px;display:block;cursor:pointer;padding:12px;transition:all .2s ease}.capacity-calculation__column--questions .capacity-calculation__ai-option[data-v-358b5c7c]:hover,.capacity-calculation__column--questions .capacity-calculation__ai-option[data-v-358b5c7c]:focus{background-color:#f7f5ff;border-color:#613fdd;color:#291a5d}.capacity-calculation__column--questions .capacity-calculation__ai-option--active[data-v-358b5c7c]{background-color:#f7f5ff;border-color:#613fdd;color:#291a5d}.capacity-calculation__column--questions .capacity-calculation__ai-option.disabled[data-v-358b5c7c]{cursor:not-allowed;background:#f1f1f1;border-color:#5b5b5b}.capacity-calculation__column--questions .capacity-calculation__range-wrap[data-v-358b5c7c]{display:flex;flex-direction:column;gap:8px}.capacity-calculation__column--questions .capacity-calculation__range[data-v-358b5c7c]{width:100%;accent-color:#613fdd}.capacity-calculation__column--questions .capacity-calculation__range[aria-disabled=true][data-v-358b5c7c]{opacity:.3;pointer-events:none}.capacity-calculation__column--questions .capacity-calculation__range-label[data-v-358b5c7c]{display:flex;justify-content:center;font-weight:700;margin-block:-5px 10px}", ga = /* @__PURE__ */ _(ya, [["styles", [ba]], ["__scopeId", "data-v-358b5c7c"]]), fa = {}, Ca = {
165
165
  width: "43",
166
166
  height: "43",
167
167
  viewBox: "0 0 43 43",
168
168
  fill: "none",
169
- xmlns: "http://www.w3.org/2000/svg"
169
+ xmlns: "http://www.w3.org/2000/svg",
170
+ "aria-hidden": "true"
170
171
  };
171
172
  function wa(a, c) {
172
173
  return r(), u("svg", Ca, [...c[0] || (c[0] = [
@@ -176,12 +177,13 @@ function wa(a, c) {
176
177
  }, null, -1)
177
178
  ])]);
178
179
  }
179
- const xa = /* @__PURE__ */ _(ba, [["render", wa]]), ha = {}, ka = {
180
+ const ha = /* @__PURE__ */ _(fa, [["render", wa]]), xa = {}, ka = {
180
181
  width: "43",
181
182
  height: "43",
182
183
  viewBox: "0 0 43 43",
183
184
  fill: "none",
184
- xmlns: "http://www.w3.org/2000/svg"
185
+ xmlns: "http://www.w3.org/2000/svg",
186
+ "aria-hidden": "true"
185
187
  };
186
188
  function La(a, c) {
187
189
  return r(), u("svg", ka, [...c[0] || (c[0] = [
@@ -191,14 +193,15 @@ function La(a, c) {
191
193
  }, null, -1)
192
194
  ])]);
193
195
  }
194
- const $a = /* @__PURE__ */ _(ha, [["render", La]]), Na = {}, qa = {
196
+ const $a = /* @__PURE__ */ _(xa, [["render", La]]), Na = {}, qa = {
195
197
  width: "43",
196
198
  height: "43",
197
199
  viewBox: "0 0 43 43",
198
200
  fill: "none",
199
- xmlns: "http://www.w3.org/2000/svg"
201
+ xmlns: "http://www.w3.org/2000/svg",
202
+ "aria-hidden": "true"
200
203
  };
201
- function Aa(a, c) {
204
+ function Ma(a, c) {
202
205
  return r(), u("svg", qa, [...c[0] || (c[0] = [
203
206
  t("path", {
204
207
  d: "M5.00009 37.8074C4.62175 37.8074 4.27999 37.7135 3.9748 37.5257C3.66962 37.3379 3.43238 37.0903 3.26307 36.783C3.09226 36.4785 2.99939 36.1476 2.98446 35.7905C2.96953 35.4333 3.0624 35.0848 3.26307 34.745L19.7182 6.27096C19.9186 5.92965 20.1806 5.67538 20.5043 5.50816C20.828 5.34093 21.1602 5.25732 21.5009 5.25732C21.8416 5.25732 22.1735 5.34093 22.4966 5.50816C22.8197 5.67538 23.0814 5.92965 23.2818 6.27096L39.7369 34.745C39.9376 35.0848 40.0305 35.4333 40.0155 35.7905C40.0006 36.1476 39.9077 36.4785 39.7369 36.783C39.5661 37.0873 39.3286 37.3341 39.0243 37.5234C38.7197 37.7128 38.3782 37.8074 37.9999 37.8074H5.00009ZM21.5 32.2179C22.0148 32.2179 22.4511 32.039 22.8088 31.6813C23.1665 31.3238 23.3454 30.8877 23.3454 30.3729C23.3454 29.8581 23.1665 29.4236 22.8088 29.0695C22.4511 28.7153 22.0148 28.5382 21.5 28.5382C20.9852 28.5382 20.5489 28.7153 20.1912 29.0695C19.8334 29.4236 19.6546 29.8581 19.6546 30.3729C19.6546 30.8877 19.8334 31.3238 20.1912 31.6813C20.5489 32.039 20.9852 32.2179 21.5 32.2179ZM21.5 26.8751C22.0076 26.8751 22.4332 26.7034 22.7766 26.36C23.12 26.0166 23.2917 25.5911 23.2917 25.0835V19.8263C23.2917 19.3186 23.12 18.8931 22.7766 18.5497C22.4332 18.2063 22.0076 18.0346 21.5 18.0346C20.9924 18.0346 20.5668 18.2063 20.2234 18.5497C19.88 18.8931 19.7083 19.3186 19.7083 19.8263V25.0835C19.7083 25.5911 19.88 26.0166 20.2234 26.36C20.5668 26.7034 20.9924 26.8751 21.5 26.8751Z",
@@ -206,7 +209,7 @@ function Aa(a, c) {
206
209
  }, null, -1)
207
210
  ])]);
208
211
  }
209
- const Ma = /* @__PURE__ */ _(Na, [["render", Aa]]), Qa = ["aria-level"], Sa = { class: "capacity-calculation__card" }, Ua = { class: "capacity-calculation__text capacity-calculation__text--strong" }, ja = { class: "capacity-calculation__img" }, Ia = ["src"], Ba = { class: "capacity-calculation__text" }, Ea = { class: "capacity-calculation__answers" }, Da = { class: "capacity-calculation__card" }, Ra = { class: "capacity-calculation__text capacity-calculation__text--strong" }, Ta = { class: "capacity-calculation__text" }, Va = /* @__PURE__ */ g({
212
+ const Qa = /* @__PURE__ */ _(Na, [["render", Ma]]), Sa = ["aria-level"], Ua = { class: "capacity-calculation__card" }, ja = { class: "capacity-calculation__text capacity-calculation__text--strong" }, Aa = { class: "capacity-calculation__img" }, Ia = ["src"], Ba = { class: "capacity-calculation__text" }, Ea = { class: "capacity-calculation__answers" }, Da = { class: "capacity-calculation__card" }, Ra = { class: "capacity-calculation__text capacity-calculation__text--strong" }, Ta = { class: "capacity-calculation__text" }, Va = /* @__PURE__ */ g({
210
213
  __name: "Answers.ce",
211
214
  props: {
212
215
  currentLevel: { type: String },
@@ -222,21 +225,21 @@ const Ma = /* @__PURE__ */ _(Na, [["render", Aa]]), Qa = ["aria-level"], Sa = {
222
225
  role: "heading",
223
226
  "aria-level": a.titleLevel,
224
227
  class: "capacity-calculation__title"
225
- }, s(c.$t("capacity-calculation.out.title")), 9, Qa),
226
- t("div", Sa, [
227
- t("p", Ua, s(c.$t("capacity-calculation.out.capacity.label")), 1),
228
- t("div", ja, [
228
+ }, s(c.$t("capacity-calculation.out.title")), 9, Sa),
229
+ t("div", Ua, [
230
+ t("p", ja, s(c.$t("capacity-calculation.out.capacity.label")), 1),
231
+ t("div", Aa, [
229
232
  t("img", {
230
233
  src: a.capacityImage,
231
234
  alt: ""
232
235
  }, null, 8, Ia),
233
- a.currentLevel.startsWith("normal_") ? (r(), f($a, {
236
+ a.currentLevel.startsWith("normal_") ? (r(), b($a, {
234
237
  key: 0,
235
238
  class: "capacity-calculation__img--status"
236
- })) : a.currentLevel === "warning" ? (r(), f(Ma, {
239
+ })) : a.currentLevel === "warning" ? (r(), b(Qa, {
237
240
  key: 1,
238
241
  class: "capacity-calculation__img--status"
239
- })) : a.currentLevel === "error" ? (r(), f(xa, {
242
+ })) : a.currentLevel === "error" ? (r(), b(ha, {
240
243
  key: 2,
241
244
  class: "capacity-calculation__img--status"
242
245
  })) : $("", !0)
@@ -254,7 +257,7 @@ const Ma = /* @__PURE__ */ _(Na, [["render", Aa]]), Qa = ["aria-level"], Sa = {
254
257
  ])
255
258
  ], 2));
256
259
  }
257
- }), Za = ".capacity-calculation__column--answers[data-v-c8dd3f3a]{display:flex;gap:.3rem;border:0px}.capacity-calculation__column--answers--normal_weak[data-v-c8dd3f3a],.capacity-calculation__column--answers--normal_medium[data-v-c8dd3f3a]{background:#eaf1ff}.capacity-calculation__column--answers--warning[data-v-c8dd3f3a]{background:#fffaeb}.capacity-calculation__column--answers--error[data-v-c8dd3f3a]{background:#fbebea}.capacity-calculation__column--answers .capacity-calculation__answers[data-v-c8dd3f3a]{display:flex;flex-direction:column;align-items:stretch;gap:8px;justify-content:center;margin-bottom:1rem}.capacity-calculation__column--answers .capacity-calculation__card[data-v-c8dd3f3a]{border-radius:4px;display:flex;flex-direction:column;align-items:center;gap:16px;padding:8px}.capacity-calculation__column--answers .capacity-calculation__text[data-v-c8dd3f3a]{font-size:.875rem;font-weight:400;line-height:1.5rem;text-align:center;margin:0}.capacity-calculation__column--answers .capacity-calculation__text--strong[data-v-c8dd3f3a]{font-weight:700;margin:0}.capacity-calculation__column--answers img[data-v-c8dd3f3a]{max-width:100%}.capacity-calculation__column--answers .capacity-calculation__img[data-v-c8dd3f3a]{position:relative}.capacity-calculation__column--answers .capacity-calculation__img img[data-v-c8dd3f3a]{width:100px;height:100px;border-radius:24px}.capacity-calculation__column--answers .capacity-calculation__img--status[data-v-c8dd3f3a]{position:absolute;top:0;right:0;transform:translate(30%,-30%)}.capacity-calculation__column--answers .capacity-calculation__progress-bar[data-v-c8dd3f3a]{width:100%;height:32px;border-radius:24px;border:solid 2px #253858}.capacity-calculation__column--answers .capacity-calculation__progress-bar.normal_weak[data-v-c8dd3f3a],.capacity-calculation__column--answers .capacity-calculation__progress-bar.normal_medium[data-v-c8dd3f3a]{background:linear-gradient(90deg,#1f53b5 10%,#fff 36%)}.capacity-calculation__column--answers .capacity-calculation__progress-bar.warning[data-v-c8dd3f3a]{background:linear-gradient(90deg,#ee6911 30%,#fff 66%)}.capacity-calculation__column--answers .capacity-calculation__progress-bar.error[data-v-c8dd3f3a]{background:linear-gradient(90deg,#d24140 51%,#fff 88%)}@media(max-width:720px){.capacity-calculation__column--answers .capacity-calculation__answers[data-v-c8dd3f3a]{flex-direction:row;justify-content:center;gap:16px}}", Oa = /* @__PURE__ */ _(Va, [["styles", [Za]], ["__scopeId", "data-v-c8dd3f3a"]]), za = { class: "capacity-calculation" }, Fa = {
260
+ }), Za = ".capacity-calculation__column--answers[data-v-51d8db7d]{display:flex;gap:.3rem;border:0px}.capacity-calculation__column--answers--normal_weak[data-v-51d8db7d],.capacity-calculation__column--answers--normal_medium[data-v-51d8db7d]{background:#eaf1ff}.capacity-calculation__column--answers--warning[data-v-51d8db7d]{background:#fffaeb}.capacity-calculation__column--answers--error[data-v-51d8db7d]{background:#fbebea}.capacity-calculation__column--answers .capacity-calculation__answers[data-v-51d8db7d]{display:flex;flex-direction:column;align-items:stretch;gap:8px;justify-content:center;margin-bottom:1rem}.capacity-calculation__column--answers .capacity-calculation__card[data-v-51d8db7d]{border-radius:4px;display:flex;flex-direction:column;align-items:center;gap:16px;padding:8px}.capacity-calculation__column--answers .capacity-calculation__text[data-v-51d8db7d]{font-size:.875rem;font-weight:400;line-height:1.5rem;text-align:center;margin:0}.capacity-calculation__column--answers .capacity-calculation__text--strong[data-v-51d8db7d]{font-weight:700;margin:0}.capacity-calculation__column--answers img[data-v-51d8db7d]{max-width:100%}.capacity-calculation__column--answers .capacity-calculation__img[data-v-51d8db7d]{position:relative}.capacity-calculation__column--answers .capacity-calculation__img img[data-v-51d8db7d]{width:100px;height:100px;border-radius:24px}.capacity-calculation__column--answers .capacity-calculation__img--status[data-v-51d8db7d]{position:absolute;top:0;right:0;transform:translate(30%,-30%)}.capacity-calculation__column--answers .capacity-calculation__progress-bar[data-v-51d8db7d]{width:100%;height:32px;border-radius:24px;border:solid 2px #253858}.capacity-calculation__column--answers .capacity-calculation__progress-bar.normal_weak[data-v-51d8db7d],.capacity-calculation__column--answers .capacity-calculation__progress-bar.normal_medium[data-v-51d8db7d]{background:linear-gradient(90deg,#1f53b5 10%,#fff 36%)}.capacity-calculation__column--answers .capacity-calculation__progress-bar.warning[data-v-51d8db7d]{background:linear-gradient(90deg,#ee6911 30%,#fff 66%)}.capacity-calculation__column--answers .capacity-calculation__progress-bar.error[data-v-51d8db7d]{background:linear-gradient(90deg,#d24140 51%,#fff 88%)}@media(max-width:720px){.capacity-calculation__column--answers .capacity-calculation__answers[data-v-51d8db7d]{flex-direction:row;justify-content:center;gap:16px}}", Oa = /* @__PURE__ */ _(Va, [["styles", [Za]], ["__scopeId", "data-v-51d8db7d"]]), za = { class: "capacity-calculation" }, Fa = {
258
261
  class: "capacity-calculation__grid",
259
262
  "aria-live": "polite"
260
263
  }, Pa = /* @__PURE__ */ g({
@@ -267,7 +270,7 @@ const Ma = /* @__PURE__ */ _(Na, [["render", Aa]]), Qa = ["aria-level"], Sa = {
267
270
  const c = y(void 0), n = y(10), e = y("initial");
268
271
  return (l, i) => (r(), u("div", za, [
269
272
  t("div", Fa, [
270
- x(ga, {
273
+ h(ga, {
271
274
  "selected-ai-question": c.value,
272
275
  "onUpdate:selectedAiQuestion": i[0] || (i[0] = (d) => c.value = d),
273
276
  "selected-nb-user": n.value,
@@ -276,7 +279,7 @@ const Ma = /* @__PURE__ */ _(Na, [["render", Aa]]), Qa = ["aria-level"], Sa = {
276
279
  "onUpdate:currentLevel": i[2] || (i[2] = (d) => e.value = d),
277
280
  class: p({ "initial-state": e.value === "initial" })
278
281
  }, null, 8, ["selected-ai-question", "selected-nb-user", "current-level", "class"]),
279
- e.value !== "initial" ? (r(), f(Oa, {
282
+ e.value !== "initial" ? (r(), b(Oa, {
280
283
  key: 0,
281
284
  "title-level": a.titleLevel,
282
285
  "selected-nb-user": n.value,
@@ -1,6 +1,6 @@
1
- import { a as R, h as E, k as O, G as W, o as d, c as p, b as C, m as _, F as D, e as L, y as V, B as y, v as j, t as G, l as H, H as T, I as U, x as X, r as b, g as v, _ as Y, d as q } from "../_plugin-vue_export-helper-DJlRxzRH.js";
1
+ import { b as B, h as E, k as O, G as W, o as p, c as d, a as C, m as _, F as D, e as L, y as V, A as y, v as j, t as G, l as H, H as T, I as U, x as X, r as b, g as v, _ as Y, d as q } from "../_plugin-vue_export-helper-CD1RUA2y.js";
2
2
  import { a as J, b as S } from "../normalize-props-DH0oPBss.js";
3
- const K = { class: "container" }, Q = ["onMouseenter", "onFocusin", "onClick", "aria-label"], m = 10, Z = /* @__PURE__ */ R({
3
+ const K = { class: "container" }, Q = ["aria-label", "onMouseenter", "onFocusin", "onClick"], f = 10, Z = /* @__PURE__ */ B({
4
4
  __name: "ClickableImage.ce",
5
5
  props: {
6
6
  image: { type: Object },
@@ -18,10 +18,10 @@ const K = { class: "container" }, Q = ["onMouseenter", "onFocusin", "onClick", "
18
18
  });
19
19
  const I = a.areas.some(({ spot: e }) => !!e), $ = v(() => a.areas.map((e) => ({
20
20
  ...e,
21
- coords: M(e.coords),
22
- spot: A(e.spot)
21
+ coords: A(e.coords),
22
+ spot: M(e.spot)
23
23
  })));
24
- function M(e) {
24
+ function A(e) {
25
25
  return {
26
26
  x1: e.x1 * r.value,
27
27
  y1: e.y1 * r.value,
@@ -29,18 +29,18 @@ const K = { class: "container" }, Q = ["onMouseenter", "onFocusin", "onClick", "
29
29
  y2: e.y2 * r.value
30
30
  };
31
31
  }
32
- function A({ x: e = 0, y: t = 0 } = {}) {
32
+ function M({ x: e = 0, y: t = 0 } = {}) {
33
33
  return {
34
34
  x: e * r.value,
35
35
  y: t * r.value
36
36
  };
37
37
  }
38
- const f = b();
38
+ const m = b();
39
39
  function k(e) {
40
- f.value = e;
40
+ m.value = e;
41
41
  }
42
42
  function w() {
43
- f.value = void 0;
43
+ m.value = void 0;
44
44
  }
45
45
  const u = b();
46
46
  function F(e) {
@@ -49,10 +49,10 @@ const K = { class: "container" }, Q = ["onMouseenter", "onFocusin", "onClick", "
49
49
  function P() {
50
50
  u.value = void 0;
51
51
  }
52
- const x = v(() => u.value ?? f.value), c = v(() => {
52
+ const x = v(() => u.value ?? m.value), c = v(() => {
53
53
  if (x.value !== void 0)
54
54
  return $.value[x.value];
55
- }), B = v(() => {
55
+ }), N = v(() => {
56
56
  if (!c.value) return {};
57
57
  const { tooltipPosition: e, coords: { x1: t, y1: o, x2: n, y2: s } } = c.value;
58
58
  switch (e) {
@@ -60,39 +60,39 @@ const K = { class: "container" }, Q = ["onMouseenter", "onFocusin", "onClick", "
60
60
  return {
61
61
  left: `${t + (n - t) / 2}px`,
62
62
  transform: "translate(-50%, -100%)",
63
- top: `${o - m}px`
63
+ top: `${o - f}px`
64
64
  };
65
65
  case "bottom":
66
66
  return {
67
67
  left: `${t + (n - t) / 2}px`,
68
68
  transform: "translateX(-50%)",
69
- top: `${s + m}px`
69
+ top: `${s + f}px`
70
70
  };
71
71
  case "left":
72
72
  return {
73
- left: `${t - m}px`,
73
+ left: `${t - f}px`,
74
74
  top: `${o + (s - o) / 2}px`,
75
75
  transform: "translate(-100%, -50%)"
76
76
  };
77
77
  default:
78
78
  return {
79
- left: `${n + m}px`,
79
+ left: `${n + f}px`,
80
80
  top: `${o + (s - o) / 2}px`,
81
81
  transform: "translateY(-50%)"
82
82
  };
83
83
  }
84
84
  });
85
- function N() {
85
+ function R() {
86
86
  u.value = void 0;
87
87
  }
88
- return i({ reset: N }), (e, t) => (d(), p("div", K, [
88
+ return i({ reset: R }), (e, t) => (p(), d("div", K, [
89
89
  C("img", _(a.image, {
90
90
  ref: "image",
91
+ alt: "",
91
92
  onLoad: t[0] || (t[0] = (o) => h()),
92
- onClick: t[1] || (t[1] = (o) => P()),
93
- alt: ""
93
+ onClick: t[1] || (t[1] = (o) => P())
94
94
  }), null, 16),
95
- (d(!0), p(D, null, L($.value, (o, n) => (d(), p("button", {
95
+ (p(!0), d(D, null, L($.value, (o, n) => (p(), d("button", {
96
96
  key: n,
97
97
  style: y({
98
98
  "--y1": `${o.coords.y1}px`,
@@ -101,14 +101,14 @@ const K = { class: "container" }, Q = ["onMouseenter", "onFocusin", "onClick", "
101
101
  "--x2": `${o.coords.x2}px`
102
102
  }),
103
103
  class: "area",
104
+ "aria-label": o.info,
104
105
  onMouseenter: (s) => k(n),
105
106
  onMouseleave: t[2] || (t[2] = (s) => w()),
106
107
  onFocusin: (s) => k(n),
107
108
  onFocusout: t[3] || (t[3] = (s) => w()),
108
- onClick: V((s) => F(n), ["stop"]),
109
- "aria-label": o.info
109
+ onClick: V((s) => F(n), ["stop"])
110
110
  }, [
111
- j(I) ? (d(), p("span", {
111
+ j(I) ? (p(), d("span", {
112
112
  key: 0,
113
113
  class: G(["spot", { active: x.value === n }]),
114
114
  style: y({
@@ -120,13 +120,13 @@ const K = { class: "container" }, Q = ["onMouseenter", "onFocusin", "onClick", "
120
120
  T(C("p", {
121
121
  class: "tooltip",
122
122
  "aria-hidden": "true",
123
- style: y(B.value)
123
+ style: y(N.value)
124
124
  }, X(c.value?.info), 5), [
125
125
  [U, c.value]
126
126
  ])
127
127
  ]));
128
128
  }
129
- }), ee = "*{font-family:Nunito,Roboto,sans-serif;color:var(#253858)}.container{position:relative;max-width:100%;border:1px solid #ccc}.container img{width:100%;height:auto;display:block}.container .area{cursor:pointer;position:absolute;top:var(--y1);left:var(--x1);height:calc(var(--y2) - var(--y1));width:calc(var(--x2) - var(--x1));border:none;background:transparent}.container .spot{cursor:pointer;position:absolute;width:32px;aspect-ratio:1;border:solid 4px #d9d9d9;background:#d9d9d999;border-radius:50%;top:50%;left:50%;transform:translate(calc(-50% + var(--s-x)),calc(-50% + var(--s-y)))}.container .spot.active{border-color:#6495ed}.container .tooltip{position:absolute;background-color:#000000d9;color:#fff;padding:8px 12px;border-radius:6px;font-size:14px;max-width:260px;z-index:10}", te = /* @__PURE__ */ Y(Z, [["styles", [ee]]]), z = q(te);
129
+ }), ee = "*{font-family:Nunito,Roboto,sans-serif;color:var(#253858)}.container{position:relative;max-width:100%;border:1px solid #ccc}.container img{width:100%;height:auto;display:block}.container .area{cursor:pointer;position:absolute;top:var(--y1);left:var(--x1);height:calc(var(--y2) - var(--y1));width:calc(var(--x2) - var(--x1));border:none;background:transparent}.container .spot{cursor:pointer;position:absolute;width:32px;aspect-ratio:1;border:solid 4px #edeff3;background:#212a3799;border-radius:50%;top:50%;left:50%;transform:translate(calc(-50% + var(--s-x)),calc(-50% + var(--s-y)))}.container .spot.active{border-color:#6495ed}.container .tooltip{position:absolute;background-color:#000000d9;color:#fff;padding:8px 12px;border-radius:6px;font-size:14px;max-width:260px;z-index:10}", te = /* @__PURE__ */ Y(Z, [["styles", [ee]]]), z = q(te);
130
130
  z.prototype.normalizeProps = (a) => ({
131
131
  ...a,
132
132
  image: {
@@ -1,48 +1,48 @@
1
- import { a as h, o, c as n, b as a, x as c, B as j, _ as f, t as P, q as S, A as N, F as y, e as x, l as z, r as k, g as m, D as L, f as v, d as M } from "../_plugin-vue_export-helper-DJlRxzRH.js";
2
- import { u as O, a as T, i as q, b as E } from "../i18n-C0iMUvqX.js";
1
+ import { b as f, o as a, c as n, a as o, x as c, A as j, _ as h, t as C, q as S, E as N, F as y, e as x, l as z, r as k, g as m, C as L, f as v, d as E } from "../_plugin-vue_export-helper-CD1RUA2y.js";
2
+ import { u as M, a as O, i as q, b as T } from "../i18n-C-1Ne5JG.js";
3
3
  import { b as I } from "../normalize-props-DH0oPBss.js";
4
- import { L as B } from "../LLMMessage.ce-DBorHEa1.js";
5
- const R = {}, D = {}, V = {}, F = {}, Q = {}, W = {
4
+ import { L as B } from "../LLMMessage.ce-BM9ikl_y.js";
5
+ const R = {}, V = {}, D = {}, F = {}, Q = {}, W = {
6
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 choisi par l’IA dans les propositions suivantes :", feedback: { sure: "En effet, c'est le mot le plus probable !", probably: "C’est possible ! L’IA peut aussi choisir le mot « {{word}} », qui est très probable...", notSure: "Pas sûr... L’IA choisira sans doute un mot plus probable : {{words, list(style: 'long'; type: 'disjunction';)}}." } }
7
- }, H = {}, U = {}, G = { class: "probability-bar" }, J = { "aria-hidden": "true" }, K = { class: "sr-only" }, X = /* @__PURE__ */ h({
7
+ }, H = {}, U = {}, G = { class: "probability-bar" }, J = { "aria-hidden": "true" }, K = { class: "sr-only" }, X = /* @__PURE__ */ f({
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 (d, t) => (o(), n("div", G, [
15
- a("p", J, c(e.name), 1),
16
- a("p", K, c(d.$t("complete-phrase.ariaLabelDescription", { name: e.name, percent: e.percent })), 1),
17
- a("div", {
14
+ return (d, t) => (a(), n("div", G, [
15
+ o("p", J, c(e.name), 1),
16
+ o("p", K, c(d.$t("complete-phrase.ariaLabelDescription", { name: e.name, percent: e.percent })), 1),
17
+ o("div", {
18
18
  style: j(`width: ${e.percent}%`),
19
19
  class: "probability-bar__percent",
20
20
  "aria-hidden": "true"
21
21
  }, null, 4),
22
- t[0] || (t[0] = a("div", {
22
+ t[0] || (t[0] = o("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-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}", Z = /* @__PURE__ */ f(X, [["styles", [Y]], ["__scopeId", "data-v-19f7d147"]]), ee = /* @__PURE__ */ h({
28
+ }), Y = ".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}", Z = /* @__PURE__ */ h(X, [["styles", [Y]], ["__scopeId", "data-v-19f7d147"]]), ee = /* @__PURE__ */ f({
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 (d, t) => (o(), n("button", {
36
- class: P(["complete-phrase_button", e.state])
35
+ return (d, t) => (a(), n("button", {
36
+ class: C(["complete-phrase_button", e.state])
37
37
  }, [
38
38
  S(d.$slots, "icon"),
39
39
  N(" " + c(e.label), 1)
40
40
  ], 2));
41
41
  }
42
- }), te = ".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}", oe = /* @__PURE__ */ f(ee, [["styles", [te]]]), ae = { class: "qcu" }, se = { class: "qcu__list" }, ie = ["id", "onClick", "aria-label", "checked", "disabled"], re = { for: "`choice${index}`" }, ne = {
42
+ }), te = ".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}", ae = /* @__PURE__ */ h(ee, [["styles", [te]]]), oe = { class: "qcu" }, se = { class: "qcu__list" }, ie = ["id", "aria-label", "checked", "disabled", "onClick"], re = { for: "`choice${index}`" }, ne = {
43
43
  key: 0,
44
44
  class: "feedback"
45
- }, le = /* @__PURE__ */ h({
45
+ }, le = /* @__PURE__ */ f({
46
46
  __name: "QCU.ce",
47
47
  props: {
48
48
  list: { type: Array },
@@ -50,33 +50,33 @@ const R = {}, D = {}, V = {}, F = {}, Q = {}, W = {
50
50
  },
51
51
  emits: ["answer"],
52
52
  setup(e, { emit: d }) {
53
- const t = d, s = k(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) }));
53
+ const t = d, s = k(null), { t: p } = M(), _ = 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
54
  function g(i) {
55
55
  s.value = i, t("answer", i.name);
56
56
  }
57
- return (i, w) => (o(), n("div", ae, [
58
- a("p", null, c(e.title), 1),
59
- a("section", se, [
60
- (o(!0), n(y, null, x(e.list, (r, l) => (o(), n("div", {
61
- class: "qcu__list-choice",
62
- key: l
57
+ return (i, w) => (a(), n("div", oe, [
58
+ o("p", null, c(e.title), 1),
59
+ o("section", se, [
60
+ (a(!0), n(y, null, x(e.list, (r, l) => (a(), n("div", {
61
+ key: l,
62
+ class: "qcu__list-choice"
63
63
  }, [
64
- a("input", {
64
+ o("input", {
65
65
  id: `choice${l}`,
66
66
  type: "radio",
67
67
  name: "qcu-choice",
68
- onClick: (u) => g(r),
69
68
  "aria-label": r.name,
70
69
  checked: s.value === r,
71
- disabled: !!s.value
70
+ disabled: !!s.value,
71
+ onClick: (u) => g(r)
72
72
  }, null, 8, ie),
73
- a("label", re, c(r.name), 1)
73
+ o("label", re, c(r.name), 1)
74
74
  ]))), 128))
75
75
  ]),
76
- s.value ? (o(), n("section", ne, c(_.value), 1)) : z("", !0)
76
+ s.value ? (a(), n("section", ne, c(_.value), 1)) : z("", !0)
77
77
  ]));
78
78
  }
79
- }), ce = "[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}", de = /* @__PURE__ */ f(le, [["styles", [ce]], ["__scopeId", "data-v-74566fe6"]]), pe = { class: "complete-phrase" }, ue = ["aria-level"], be = { class: "complete-phrase__description" }, me = { class: "complete-phrase__container" }, he = { class: "complete-phrase-container__conversation" }, fe = { class: "complete-phrase-container__probabilities" }, _e = ["id", "aria-hidden"], ge = /* @__PURE__ */ h({
79
+ }), ce = "[data-v-af3c8f6a]{font-family:Roboto,sans-serif;color:#122647}.qcu[data-v-af3c8f6a]{align-items:center;display:flex;flex-direction:column;gap:16px}.qcu p[data-v-af3c8f6a]{margin:0}.qcu__list[data-v-af3c8f6a]{display:flex;gap:16px}.qcu__list-choice[data-v-af3c8f6a]{position:relative}.qcu__list-choice input[data-v-af3c8f6a]{appearance:none;height:100%;outline:none;position:absolute;width:100%}.qcu__list-choice input:checked+label[data-v-af3c8f6a]{background-color:#3b82f6;color:#fff}.qcu__list-choice input[data-v-af3c8f6a]:hover{cursor:pointer}.qcu__list-choice input:hover+label[data-v-af3c8f6a]{background-color:#3b82f6;color:#fff;transition:background-color .5s ease,color .5s ease}.qcu__list-choice input:disabled+label[data-v-af3c8f6a],.qcu__list-choice input[data-v-af3c8f6a]:disabled:hover{cursor:not-allowed}.qcu__list-choice input:disabled:not(:checked)+label[data-v-af3c8f6a],.qcu__list-choice input:disabled:hover:not(:checked)+label[data-v-af3c8f6a]{background:#e6f2fe;color:#122647;cursor:not-allowed;opacity:.5;transition:none}.qcu__list-choice label[data-v-af3c8f6a]{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-af3c8f6a]{display:flex;padding:8px 16px;flex-direction:column;align-items:flex-start;gap:16px;align-self:stretch;border-radius:8px;background:#e6f2fe}", de = /* @__PURE__ */ h(le, [["styles", [ce]], ["__scopeId", "data-v-af3c8f6a"]]), pe = { class: "complete-phrase" }, ue = ["aria-level"], be = { class: "complete-phrase__description" }, me = { class: "complete-phrase__container" }, fe = { class: "complete-phrase-container__conversation" }, he = { class: "complete-phrase-container__probabilities" }, _e = ["id", "aria-hidden"], ge = /* @__PURE__ */ f({
80
80
  __name: "CompletePhrase.ce",
81
81
  props: {
82
82
  listOfProbabilityBarsLists: { type: Array },
@@ -102,15 +102,15 @@ const R = {}, D = {}, V = {}, F = {}, Q = {}, W = {
102
102
  }
103
103
  return d({
104
104
  reset: i
105
- }), (r, l) => (o(), n("div", pe, [
106
- a("div", {
105
+ }), (r, l) => (a(), n("div", pe, [
106
+ o("div", {
107
107
  class: "complete-phrase__title",
108
108
  role: "heading",
109
109
  "aria-level": e.titleLevel
110
110
  }, c(r.$t("complete-phrase.title")), 9, ue),
111
- a("p", be, c(r.$t("complete-phrase.description")), 1),
112
- a("section", me, [
113
- a("div", he, [
111
+ o("p", be, c(r.$t("complete-phrase.description")), 1),
112
+ o("section", me, [
113
+ o("div", fe, [
114
114
  L(B, {
115
115
  class: "container__message",
116
116
  message: { content: e.userMessage, direction: "outbound" }
@@ -120,44 +120,44 @@ const R = {}, D = {}, V = {}, F = {}, Q = {}, W = {
120
120
  message: { content: g.value, direction: "inbound" }
121
121
  }, null, 8, ["message"])
122
122
  ]),
123
- a("div", fe, [
124
- (o(!0), n(y, null, x(e.listOfProbabilityBarsLists, (u, b) => (o(), n("div", {
125
- class: P(["probability", { hidden: b !== t.value }]),
126
- key: b,
123
+ o("div", he, [
124
+ (a(!0), n(y, null, x(e.listOfProbabilityBarsLists, (u, b) => (a(), n("div", {
127
125
  id: `currentProbability${b}`,
126
+ key: b,
127
+ class: C(["probability", { hidden: b !== t.value }]),
128
128
  "aria-hidden": b !== t.value
129
129
  }, [
130
- (o(!0), n(y, null, x(u, ($, A) => (o(), v(Z, {
130
+ (a(!0), n(y, null, x(u, ($, A) => (a(), v(Z, {
131
+ key: A,
131
132
  name: $.name,
132
- percent: $.percent,
133
- key: A
133
+ percent: $.percent
134
134
  }, null, 8, ["name", "percent"]))), 128))
135
135
  ], 10, _e))), 128))
136
136
  ])
137
137
  ]),
138
- p.value ? (o(), v(de, {
138
+ p.value ? (a(), v(de, {
139
139
  key: 0,
140
140
  list: _.value,
141
141
  title: r.$t("complete-phrase.successfullyCompletedSentence"),
142
142
  onAnswer: l[0] || (l[0] = (u) => s.value = u)
143
- }, null, 8, ["list", "title"])) : (o(), v(oe, {
143
+ }, null, 8, ["list", "title"])) : (a(), v(ae, {
144
144
  key: 1,
145
- onClick: w,
146
145
  state: "primary",
147
146
  label: r.$t("complete-phrase.clickHereButton"),
148
- "aria-describedby": `currentProbability${t.value}`
147
+ "aria-describedby": `currentProbability${t.value}`,
148
+ onClick: w
149
149
  }, null, 8, ["label", "aria-describedby"]))
150
150
  ]));
151
151
  }
152
- }), ve = "*{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}}", ye = /* @__PURE__ */ f(ge, [["styles", [ve]]]);
153
- T(/* @__PURE__ */ Object.assign({ "./locales/de-AT.json": R, "./locales/en.json": D, "./locales/es-419.json": V, "./locales/es.json": F, "./locales/fr-BE.json": Q, "./locales/fr.json": W, "./locales/it.json": H, "./locales/nl.json": U })).catch((e) => console.error(e));
154
- const C = M(ye, {
152
+ }), ve = "*{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}}", ye = /* @__PURE__ */ h(ge, [["styles", [ve]]]);
153
+ O(/* @__PURE__ */ Object.assign({ "./locales/de-AT.json": R, "./locales/en.json": V, "./locales/es-419.json": D, "./locales/es.json": F, "./locales/fr-BE.json": Q, "./locales/fr.json": W, "./locales/it.json": H, "./locales/nl.json": U })).catch((e) => console.error(e));
154
+ const P = E(ye, {
155
155
  configureApp(e) {
156
- q.changeLanguage(document?.documentElement?.lang || navigator.language), e.use(E, { i18next: q });
156
+ q.changeLanguage(document?.documentElement?.lang || navigator.language), e.use(T, { i18next: q });
157
157
  }
158
158
  });
159
- C.prototype.normalizeProps = (e) => ({
159
+ P.prototype.normalizeProps = (e) => ({
160
160
  ...e,
161
161
  titleLevel: I(e.titleLevel)
162
162
  });
163
- window.customElements.define("complete-phrase", C);
163
+ window.customElements.define("complete-phrase", P);