@1024pix/epreuves-components 2.9.0 → 4.0.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.
Files changed (56) hide show
  1. package/dist/Button.ce-CTKrSDrC.js +27 -0
  2. package/dist/{ButtonTooltip.ce-CIo_7tm0.js → ButtonTooltip.ce-CtHo2Dwx.js} +1 -1
  3. package/dist/{Cross.ce.vue_vue_type_script_setup_true_lang-C2TfFGJP.js → Cross.ce.vue_vue_type_script_setup_true_lang-CVBFTfq5.js} +5 -5
  4. package/dist/{LLMMessage.ce-y0pOYUCI.js → LLMMessage.ce-Dv4hVX0C.js} +2 -2
  5. package/dist/{Loading.ce-Cxcx64IX.js → Loading.ce-Bh7-h48F.js} +1 -1
  6. package/dist/{NavigationButton.ce-DpzmC2Dd.js → NavigationButton.ce-CA1M8sgV.js} +2 -2
  7. package/dist/PixMailMessage.ce-XPDbJiyC.js +219 -0
  8. package/dist/Popin.ce-DUQ7-GMT.js +197 -0
  9. package/dist/{Retry-BYnFnneH.js → Retry-BZf7NJz9.js} +1 -1
  10. package/dist/Stepper.ce-B1yDelzC.js +27 -0
  11. package/dist/{_plugin-vue_export-helper-BaC4eJh4.js → _plugin-vue_export-helper-D0N_62VD.js} +29 -28
  12. package/dist/components/analyse-mails-phishing.ce.js.js +99 -98
  13. package/dist/components/calcul-impact.ce.js.js +9 -9
  14. package/dist/components/capacity-calculation.ce.js.js +28 -28
  15. package/dist/components/clickable-image.ce.js.js +11 -11
  16. package/dist/components/complete-phrase.ce.js.js +7 -7
  17. package/dist/components/flip-cards.ce.js.js +5 -5
  18. package/dist/components/image-quiz.ce.js.js +4 -4
  19. package/dist/components/image-quizzes.ce.js.js +3 -3
  20. package/dist/components/llm-compare-messages.ce.js.js +3 -3
  21. package/dist/components/llm-messages.ce.js.js +3 -3
  22. package/dist/components/llm-prompt-select.ce.js.js +2 -2
  23. package/dist/components/mdp-classement.ce.js.js +29 -29
  24. package/dist/components/message-conversation.ce.js.js +5 -5
  25. package/dist/components/mobile-shell.ce.js.js +1 -1
  26. package/dist/components/phishing-message.ce.js.js +27 -27
  27. package/dist/components/phishing-notification.ce.js.js +23 -23
  28. package/dist/components/pix-anonymisation.ce.js.js +83 -87
  29. package/dist/components/pix-article.ce.js.js +5 -5
  30. package/dist/components/pix-carousel.ce.js.js +13 -13
  31. package/dist/components/pix-combinaisons.ce.js.js +238 -0
  32. package/dist/components/pix-cursor.ce.js.js +19 -19
  33. package/dist/components/pix-mail-message.ce.js.js +11 -0
  34. package/dist/components/proteger-mail-spam.ce.js.js +129 -0
  35. package/dist/components/qcm-deepfake.ce.js.js +21 -21
  36. package/dist/components/quiz-stepper.ce.js.js +8 -7
  37. package/dist/components/select-conversation.ce.js.js +15 -15
  38. package/dist/components/template-mail.ce.js.js +49 -151
  39. package/dist/components/test-top-mdp.ce.js.js +14 -14
  40. package/dist/components/trouver-mdp-rs.ce.js.js +213 -249
  41. package/dist/{i18n-BJ6FRipD.js → i18n-ekiZvzf6.js} +9 -9
  42. package/dist/{i18n-lite-Dn1Iqj1Y.js → i18n-lite-t2jNOu0C.js} +8 -8
  43. package/dist/{image-quiz.ce-DvpG9mbT.js → image-quiz.ce-DqalWHKw.js} +11 -11
  44. package/dist/index-BpqxFmwz.js +10 -0
  45. package/dist/index.js +4 -1
  46. package/dist/metadata.js +31 -19
  47. package/dist/nl-Bonww6Q2.js +13 -0
  48. package/dist/{normalize-props-DtfVI0Xg.js → normalize-props-DH0oPBss.js} +2 -2
  49. package/dist/props.examples.js +130 -0
  50. package/dist/schema.js +103 -67
  51. package/dist/{shadow-dom-Db7VMkC0.js → shadow-dom-C3AZuSZe.js} +1 -1
  52. package/dist/temporal.utils-7Uvm62ss.js +10926 -0
  53. package/package.json +3 -2
  54. package/dist/Button.ce-CkwcReY5.js +0 -18
  55. package/dist/index-BCutQvmP.js +0 -34
  56. package/dist/temporal.utils-CotrC6ao.js +0 -14456
@@ -1,30 +1,31 @@
1
- import { d as A, i as Q, j as Z, y as i, w as U, e as S, o as a, K as n, g as W, n as X, L as E, l as P, k as M, N as Y, _ as D, r as N, O as e2, G as t2, c, E as u, a as s, B as x, H as _, t as l, F as w, b as V, p as a2, f as n2 } from "../_plugin-vue_export-helper-BaC4eJh4.js";
2
- import { u as s2, i as T } from "../i18n-lite-Dn1Iqj1Y.js";
3
- import { u as l2 } from "../normalize-props-DtfVI0Xg.js";
4
- import { _ as i2, a as o2, F as r2 } from "../Cross.ce.vue_vue_type_script_setup_true_lang-C2TfFGJP.js";
5
- import { S as c2, l as d2 } from "../index-BCutQvmP.js";
6
- const u2 = {
1
+ import { b as V, i as Q, j as Z, g as o, w as U, f as S, o as a, K as s, q as W, n as X, N as z, l as L, k as M, R as Y, _ as D, r as N, S as ee, G as te, c, E as u, a as n, B as x, H as y, t as l, F as w, e as A, p as ae, d as se } from "../_plugin-vue_export-helper-D0N_62VD.js";
2
+ import { u as ne, i as P } from "../i18n-lite-t2jNOu0C.js";
3
+ import { b as le } from "../normalize-props-DH0oPBss.js";
4
+ import { _ as oe, a as ie, F as re } from "../Cross.ce.vue_vue_type_script_setup_true_lang-CVBFTfq5.js";
5
+ import { S as ce } from "../Stepper.ce-B1yDelzC.js";
6
+ import { l as de } from "../index-BpqxFmwz.js";
7
+ const ue = {}, pe = {}, me = {}, he = {}, fe = {}, _e = {
7
8
  "analyse-mails-phishing": { continue: "Continuer", subject: "{{srOnly}}{{subject}}", subjectSrOnly: "Sujet : ", sender: "{{srOnly}}{{sender}}", senderSrOnly: "Expéditeur : ", recipient: "{{srOnly}}{{recipient}}", recipientSrOnly: "Destinataire : ", to: "À moi", feedbackTitle: { correct: "Bien joué", incorrect: "Ce n’est pas ça" }, feedbackSrOnly: "Vous pouvez cliquer sur Continuer pour afficher le prochain mail." }
8
- }, p2 = "data:image/svg+xml,%3csvg%20width='41'%20height='41'%20viewBox='0%200%2041%2041'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9%2033.5484C9.02496%2031.6445%209.79268%2029.8271%2011.1371%2028.4893C12.4815%2027.1515%2014.2944%2026.4009%2016.1837%2026.3999H24.8163C26.7056%2026.4009%2028.5185%2027.1515%2029.8629%2028.4893C31.2073%2029.8271%2031.975%2031.6445%2032%2033.5484C28.8446%2036.4141%2024.7476%2038%2020.5%2038C16.2524%2038%2012.1554%2036.4141%209%2033.5484ZM26.9744%2015.525C26.9744%2016.8155%2026.5947%2018.077%2025.8833%2019.1501C25.1719%2020.2231%2024.1607%2021.0594%2022.9776%2021.5533C21.7946%2022.0471%2020.4928%2022.1763%2019.2369%2021.9246C17.981%2021.6728%2016.8274%2021.0514%2015.9219%2020.1388C15.0164%2019.2263%2014.3998%2018.0637%2014.15%2016.7979C13.9002%2015.5322%2014.0284%2014.2203%2014.5184%2013.028C15.0085%2011.8357%2015.8383%2010.8166%2016.903%2010.0997C17.9677%209.38268%2019.2195%209%2020.5%209C22.2171%209%2023.8639%209.68745%2025.0781%2010.9111C26.2923%2012.1348%2026.9744%2013.7944%2026.9744%2015.525Z'%20fill='white'/%3e%3cpath%20d='M36.2655%2033.5758C38.3699%2031.0459%2039.8335%2028.0469%2040.5326%2024.8323C41.2316%2021.6177%2041.1455%2018.2822%2040.2815%2015.1079C39.4175%2011.9336%2037.8011%209.0139%2035.569%206.59581C33.3368%204.17772%2030.5547%202.33238%2027.4578%201.21587C24.3609%200.0993725%2021.0405%20-0.255438%2017.7774%200.181459C14.5142%200.618355%2011.4044%201.83411%208.71099%203.72586C6.01756%205.61762%203.81975%208.12973%202.30349%2011.0497C0.787232%2013.9696%20-0.00287585%2017.2115%207.86538e-06%2020.5011C0.00111445%2025.2832%201.6877%2029.9122%204.7638%2033.5758L4.7345%2033.6007C4.83707%2033.7237%204.9543%2033.8291%205.0598%2033.9506C5.19168%2034.1014%205.33382%2034.2435%205.47009%2034.3899C5.88039%2034.835%206.3024%2035.2625%206.74493%2035.6637C6.87974%2035.7866%207.01895%2035.9008%207.15522%2036.018C7.62413%2036.4221%208.10623%2036.8057%208.6059%2037.1629C8.67038%2037.2068%208.72899%2037.264%208.79347%2037.3093V37.2918C12.2254%2039.7049%2016.3196%2041%2020.5161%2041C24.7127%2041%2028.8068%2039.7049%2032.2388%2037.2918V37.3093C32.3033%2037.264%2032.3604%2037.2068%2032.4263%2037.1629C32.9246%2036.8042%2033.4081%2036.4221%2033.877%2036.018C34.0133%2035.9008%2034.1525%2035.7852%2034.2873%2035.6637C34.7298%2035.261%2035.1519%2034.835%2035.5622%2034.3899C35.6984%2034.2435%2035.8391%2034.1014%2035.9725%2033.9506C36.0765%2033.8291%2036.1952%2033.7237%2036.2978%2033.5992L36.2655%2033.5758ZM20.5147%208.78808C21.8188%208.78808%2023.0937%209.1745%2024.1781%209.89846C25.2625%2010.6224%2026.1076%2011.6514%2026.6067%2012.8553C27.1058%2014.0592%2027.2364%2015.384%2026.982%2016.662C26.7275%2017.9401%2026.0995%2019.1141%2025.1773%2020.0355C24.2551%2020.9569%2023.0802%2021.5844%2021.8011%2021.8387C20.522%2022.0929%2019.1961%2021.9624%2017.9912%2021.4637C16.7864%2020.9651%2015.7565%2020.1206%2015.032%2019.0371C14.3074%2017.9536%2013.9207%2016.6798%2013.9207%2015.3767C13.9207%2013.6293%2014.6154%2011.9534%2015.852%2010.7178C17.0886%209.48224%2018.7658%208.78808%2020.5147%208.78808ZM8.80226%2033.5758C8.82768%2031.6534%209.60958%2029.8182%2010.9788%2028.4674C12.348%2027.1165%2014.1945%2026.3586%2016.1187%2026.3576H24.9107C26.8349%2026.3586%2028.6813%2027.1165%2030.0505%2028.4674C31.4197%2029.8182%2032.2016%2031.6534%2032.2271%2033.5758C29.0134%2036.4694%2024.8407%2038.0708%2020.5147%2038.0708C16.1886%2038.0708%2012.016%2036.4694%208.80226%2033.5758Z'%20fill='%232F80ED'/%3e%3c/svg%3e", m2 = "data:image/svg+xml,%3csvg%20width='8'%20height='4'%20viewBox='0%200%208%204'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0%200L3.53%203.38803L7.06%200H0Z'%20fill='black'/%3e%3c/svg%3e", h2 = /* @__PURE__ */ A({
9
+ }, ve = {}, ge = {}, ye = "data:image/svg+xml,%3csvg%20width='41'%20height='41'%20viewBox='0%200%2041%2041'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9%2033.5484C9.02496%2031.6445%209.79268%2029.8271%2011.1371%2028.4893C12.4815%2027.1515%2014.2944%2026.4009%2016.1837%2026.3999H24.8163C26.7056%2026.4009%2028.5185%2027.1515%2029.8629%2028.4893C31.2073%2029.8271%2031.975%2031.6445%2032%2033.5484C28.8446%2036.4141%2024.7476%2038%2020.5%2038C16.2524%2038%2012.1554%2036.4141%209%2033.5484ZM26.9744%2015.525C26.9744%2016.8155%2026.5947%2018.077%2025.8833%2019.1501C25.1719%2020.2231%2024.1607%2021.0594%2022.9776%2021.5533C21.7946%2022.0471%2020.4928%2022.1763%2019.2369%2021.9246C17.981%2021.6728%2016.8274%2021.0514%2015.9219%2020.1388C15.0164%2019.2263%2014.3998%2018.0637%2014.15%2016.7979C13.9002%2015.5322%2014.0284%2014.2203%2014.5184%2013.028C15.0085%2011.8357%2015.8383%2010.8166%2016.903%2010.0997C17.9677%209.38268%2019.2195%209%2020.5%209C22.2171%209%2023.8639%209.68745%2025.0781%2010.9111C26.2923%2012.1348%2026.9744%2013.7944%2026.9744%2015.525Z'%20fill='white'/%3e%3cpath%20d='M36.2655%2033.5758C38.3699%2031.0459%2039.8335%2028.0469%2040.5326%2024.8323C41.2316%2021.6177%2041.1455%2018.2822%2040.2815%2015.1079C39.4175%2011.9336%2037.8011%209.0139%2035.569%206.59581C33.3368%204.17772%2030.5547%202.33238%2027.4578%201.21587C24.3609%200.0993725%2021.0405%20-0.255438%2017.7774%200.181459C14.5142%200.618355%2011.4044%201.83411%208.71099%203.72586C6.01756%205.61762%203.81975%208.12973%202.30349%2011.0497C0.787232%2013.9696%20-0.00287585%2017.2115%207.86538e-06%2020.5011C0.00111445%2025.2832%201.6877%2029.9122%204.7638%2033.5758L4.7345%2033.6007C4.83707%2033.7237%204.9543%2033.8291%205.0598%2033.9506C5.19168%2034.1014%205.33382%2034.2435%205.47009%2034.3899C5.88039%2034.835%206.3024%2035.2625%206.74493%2035.6637C6.87974%2035.7866%207.01895%2035.9008%207.15522%2036.018C7.62413%2036.4221%208.10623%2036.8057%208.6059%2037.1629C8.67038%2037.2068%208.72899%2037.264%208.79347%2037.3093V37.2918C12.2254%2039.7049%2016.3196%2041%2020.5161%2041C24.7127%2041%2028.8068%2039.7049%2032.2388%2037.2918V37.3093C32.3033%2037.264%2032.3604%2037.2068%2032.4263%2037.1629C32.9246%2036.8042%2033.4081%2036.4221%2033.877%2036.018C34.0133%2035.9008%2034.1525%2035.7852%2034.2873%2035.6637C34.7298%2035.261%2035.1519%2034.835%2035.5622%2034.3899C35.6984%2034.2435%2035.8391%2034.1014%2035.9725%2033.9506C36.0765%2033.8291%2036.1952%2033.7237%2036.2978%2033.5992L36.2655%2033.5758ZM20.5147%208.78808C21.8188%208.78808%2023.0937%209.1745%2024.1781%209.89846C25.2625%2010.6224%2026.1076%2011.6514%2026.6067%2012.8553C27.1058%2014.0592%2027.2364%2015.384%2026.982%2016.662C26.7275%2017.9401%2026.0995%2019.1141%2025.1773%2020.0355C24.2551%2020.9569%2023.0802%2021.5844%2021.8011%2021.8387C20.522%2022.0929%2019.1961%2021.9624%2017.9912%2021.4637C16.7864%2020.9651%2015.7565%2020.1206%2015.032%2019.0371C14.3074%2017.9536%2013.9207%2016.6798%2013.9207%2015.3767C13.9207%2013.6293%2014.6154%2011.9534%2015.852%2010.7178C17.0886%209.48224%2018.7658%208.78808%2020.5147%208.78808ZM8.80226%2033.5758C8.82768%2031.6534%209.60958%2029.8182%2010.9788%2028.4674C12.348%2027.1165%2014.1945%2026.3586%2016.1187%2026.3576H24.9107C26.8349%2026.3586%2028.6813%2027.1165%2030.0505%2028.4674C31.4197%2029.8182%2032.2016%2031.6534%2032.2271%2033.5758C29.0134%2036.4694%2024.8407%2038.0708%2020.5147%2038.0708C16.1886%2038.0708%2012.016%2036.4694%208.80226%2033.5758Z'%20fill='%232F80ED'/%3e%3c/svg%3e", be = "data:image/svg+xml,%3csvg%20width='8'%20height='4'%20viewBox='0%200%208%204'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0%200L3.53%203.38803L7.06%200H0Z'%20fill='black'/%3e%3c/svg%3e", Ce = /* @__PURE__ */ V({
9
10
  __name: "MailElement.ce",
10
11
  props: {
11
12
  block: { type: Boolean, default: !1 },
12
13
  path: { type: String }
13
14
  },
14
15
  setup(t) {
15
- const { selectedPath: f, correct: $, paths: b, pathToIndex: v } = Q("store"), p = Z("el"), m = i(() => f.value === t.path), g = i(() => v.value[t.path]), d = i(() => m.value || f.value === void 0 && g.value === 0);
16
+ const { selectedPath: f, correct: $, paths: b, pathToIndex: _ } = Q("store"), p = Z("el"), m = o(() => f.value === t.path), v = o(() => _.value[t.path]), d = o(() => m.value || f.value === void 0 && v.value === 0);
16
17
  function O() {
17
18
  f.value = t.path;
18
19
  }
19
- function y() {
20
- g.value !== 0 && (f.value = b.value[g.value - 1]);
20
+ function g() {
21
+ v.value !== 0 && (f.value = b.value[v.value - 1]);
21
22
  }
22
- function L() {
23
- g.value !== b.value.length - 1 && (f.value = b.value[g.value + 1]);
23
+ function E() {
24
+ v.value !== b.value.length - 1 && (f.value = b.value[v.value + 1]);
24
25
  }
25
26
  return U(() => {
26
27
  m.value && p.value.focus();
27
- }), (z, o) => (a(), S(Y(t.block ? "div" : "span"), {
28
+ }), (T, i) => (a(), S(Y(t.block ? "div" : "span"), {
28
29
  class: X(["mail-element", {
29
30
  "mail-element--correct": m.value && M($),
30
31
  "mail-element--incorrect": m.value && !M($)
@@ -32,41 +33,41 @@ const u2 = {
32
33
  role: "option",
33
34
  "aria-selected": m.value,
34
35
  tabindex: d.value ? 0 : -1,
35
- onClick: o[0] || (o[0] = (C) => O()),
36
+ onClick: i[0] || (i[0] = (C) => O()),
36
37
  onKeydown: [
37
- o[1] || (o[1] = E(P((C) => O(), ["stop", "prevent"]), ["space"])),
38
- o[2] || (o[2] = E(P((C) => y(), ["stop", "prevent"]), ["up", "left"])),
39
- o[3] || (o[3] = E(P((C) => L(), ["stop", "prevent"]), ["down", "right"]))
38
+ i[1] || (i[1] = z(L((C) => O(), ["stop", "prevent"]), ["space"])),
39
+ i[2] || (i[2] = z(L((C) => g(), ["stop", "prevent"]), ["up", "left"])),
40
+ i[3] || (i[3] = z(L((C) => E(), ["stop", "prevent"]), ["down", "right"]))
40
41
  ],
41
42
  ref_key: "el",
42
43
  ref: p
43
44
  }, {
44
- default: n(() => [
45
- W(z.$slots, "default")
45
+ default: s(() => [
46
+ W(T.$slots, "default")
46
47
  ]),
47
48
  _: 3
48
49
  }, 40, ["class", "aria-selected", "tabindex"]));
49
50
  }
50
- }), f2 = ".mail-element{background-color:transparent;border:1px solid #cdd1d9;border-radius:4px;cursor:pointer;font-weight:inherit;padding:0 2px}.mail-element--correct{background-color:#54c590}.mail-element--incorrect{background-color:#e4766f}", j = /* @__PURE__ */ D(h2, [["styles", [f2]]]), v2 = {
51
+ }), xe = ".mail-element{background-color:transparent;border:1px solid #cdd1d9;border-radius:4px;cursor:pointer;font-weight:inherit;padding:0 2px}.mail-element--correct{background-color:#54c590}.mail-element--incorrect{background-color:#e4766f}", j = /* @__PURE__ */ D(Ce, [["styles", [xe]]]), ke = {
51
52
  class: "mail",
52
53
  role: "listbox"
53
- }, g2 = ["arial-level"], y2 = { class: "sr-only" }, _2 = { class: "mail-header" }, b2 = ["src"], C2 = { class: "mail-header__content" }, x2 = { class: "sr-only" }, k2 = { class: "mail-header__from-name" }, w2 = { class: "mail-header__from-address" }, j2 = { class: "mail-header__to" }, $2 = { class: "sr-only" }, O2 = ["src"], S2 = {
54
+ }, we = ["arial-level"], je = { class: "sr-only" }, $e = { class: "mail-header" }, Oe = ["src"], Se = { class: "mail-header__content" }, Me = { class: "sr-only" }, Ee = { class: "mail-header__from-name" }, Te = { class: "mail-header__from-address" }, ze = { class: "mail-header__to" }, Le = { class: "sr-only" }, Pe = ["src"], Be = {
54
55
  key: 0,
55
56
  class: "mail__paragraph"
56
- }, M2 = {
57
+ }, Fe = {
57
58
  key: 1,
58
59
  class: "mail__button"
59
- }, L2 = {
60
+ }, Ne = {
60
61
  key: 0,
61
62
  class: "sr-only"
62
- }, z2 = /* @__PURE__ */ A({
63
+ }, Ae = /* @__PURE__ */ V({
63
64
  __name: "AnalyseMailsPhishing.ce",
64
65
  props: {
65
66
  titleLevel: { type: Number },
66
67
  mails: { type: Array }
67
68
  },
68
69
  setup(t, { expose: f }) {
69
- const $ = e2(t, ["mails"]), { t: b } = s2(), v = N(0), p = N(), m = Z("container"), g = i(() => $.titleLevel ?? 2), d = i(() => t.mails[v.value]), O = i(() => p.value !== void 0), y = i(() => d.value.answers.includes(p.value)), L = i(() => y.value ? b("analyse-mails-phishing.feedbackTitle.correct") : b("analyse-mails-phishing.feedbackTitle.incorrect")), z = i(() => y.value ? d.value.correctFeedback : d.value.incorrectFeedback), o = i(() => y.value && v.value < t.mails.length - 1), C = i(
70
+ const $ = ee(t, ["mails"]), { t: b } = ne(), _ = N(0), p = N(), m = Z("container"), v = o(() => $.titleLevel ?? 2), d = o(() => t.mails[_.value]), O = o(() => p.value !== void 0), g = o(() => d.value.answers.includes(p.value)), E = o(() => g.value ? b("analyse-mails-phishing.feedbackTitle.correct") : b("analyse-mails-phishing.feedbackTitle.incorrect")), T = o(() => g.value ? d.value.correctFeedback : d.value.incorrectFeedback), i = o(() => g.value && _.value < t.mails.length - 1), C = o(
70
71
  () => d.value.body.map((e, r) => {
71
72
  if (e.type === "paragraph")
72
73
  return {
@@ -82,7 +83,7 @@ const u2 = {
82
83
  path: `body[${r}]`
83
84
  };
84
85
  })
85
- ), B = i(() => [
86
+ ), B = o(() => [
86
87
  "subject",
87
88
  "from.name",
88
89
  "from.address",
@@ -91,81 +92,81 @@ const u2 = {
91
92
  return e.content.map(({ path: r }) => r);
92
93
  if (e.type === "button") return [e.path];
93
94
  })
94
- ]), R = i(() => Object.fromEntries(
95
+ ]), H = o(() => Object.fromEntries(
95
96
  B.value.map((e, r) => [e, r])
96
97
  ));
97
- a2("store", {
98
+ ae("store", {
98
99
  selectedPath: p,
99
- correct: y,
100
+ correct: g,
100
101
  paths: B,
101
- pathToIndex: R
102
+ pathToIndex: H
102
103
  });
103
104
  function K() {
104
- v.value++, p.value = void 0, m.value.focus();
105
+ _.value++, p.value = void 0, m.value.focus();
105
106
  }
106
- function G() {
107
- v.value = 0, p.value = void 0;
107
+ function q() {
108
+ _.value = 0, p.value = void 0;
108
109
  }
109
110
  return f({
110
- reset: G
111
+ reset: q
111
112
  }), (e, r) => {
112
- const k = t2("i18next");
113
+ const k = te("i18n");
113
114
  return a(), c("div", {
114
115
  class: "analyse-mails-phishing",
115
116
  tabindex: "-1",
116
117
  ref_key: "container",
117
118
  ref: m
118
119
  }, [
119
- u(c2, {
120
- step: v.value,
120
+ u(ce, {
121
+ step: _.value,
121
122
  "steps-count": t.mails.length
122
123
  }, null, 8, ["step", "steps-count"]),
123
- s("div", v2, [
124
+ n("div", ke, [
124
125
  u(j, {
125
126
  path: "subject",
126
127
  block: !0
127
128
  }, {
128
- default: n(() => [
129
- s("div", {
129
+ default: s(() => [
130
+ n("div", {
130
131
  class: "mail__subject",
131
132
  role: "heading",
132
- "arial-level": g.value
133
+ "arial-level": v.value
133
134
  }, [
134
- u(k, { name: "analyse-mails-phishing.subject" }, {
135
- srOnly: n(() => [
136
- s("span", y2, l(e.$t("analyse-mails-phishing.subjectSrOnly")), 1)
135
+ u(k, { t: "analyse-mails-phishing.subject" }, {
136
+ srOnly: s(() => [
137
+ n("span", je, l(e.$t("analyse-mails-phishing.subjectSrOnly")), 1)
137
138
  ]),
138
- subject: n(() => [
139
- _(l(d.value.subject), 1)
139
+ subject: s(() => [
140
+ y(l(d.value.subject), 1)
140
141
  ]),
141
142
  _: 1
142
143
  })
143
- ], 8, g2)
144
+ ], 8, we)
144
145
  ]),
145
146
  _: 1
146
147
  }),
147
- s("div", _2, [
148
- s("img", {
149
- src: M(p2),
148
+ n("div", $e, [
149
+ n("img", {
150
+ src: M(ye),
150
151
  alt: ""
151
- }, null, 8, b2),
152
- s("div", C2, [
153
- s("div", null, [
154
- u(k, { name: "analyse-mails-phishing.sender" }, {
155
- srOnly: n(() => [
156
- s("span", x2, l(e.$t("analyse-mails-phishing.senderSrOnly")), 1)
152
+ }, null, 8, Oe),
153
+ n("div", Se, [
154
+ n("div", null, [
155
+ u(k, { t: "analyse-mails-phishing.sender" }, {
156
+ srOnly: s(() => [
157
+ n("span", Me, l(e.$t("analyse-mails-phishing.senderSrOnly")), 1)
157
158
  ]),
158
- sender: n(() => [
159
+ sender: s(() => [
159
160
  u(j, { path: "from.name" }, {
160
- default: n(() => [
161
- s("span", k2, l(d.value.from.name), 1)
161
+ default: s(() => [
162
+ n("span", Ee, l(d.value.from.name), 1)
162
163
  ]),
163
164
  _: 1
164
165
  }),
165
- r[1] || (r[1] = _()),
166
+ r[1] || (r[1] = y()),
166
167
  u(j, { path: "from.address" }, {
167
- default: n(() => [
168
- s("span", w2, "<" + l(d.value.from.address) + ">", 1)
168
+ default: s(() => [
169
+ n("span", Te, "<" + l(d.value.from.address) + ">", 1)
169
170
  ]),
170
171
  _: 1
171
172
  })
@@ -173,69 +174,69 @@ const u2 = {
173
174
  _: 1
174
175
  })
175
176
  ]),
176
- s("div", j2, [
177
- u(k, { name: "analyse-mails-phishing.recipient" }, {
178
- srOnly: n(() => [
179
- s("span", $2, l(e.$t("analyse-mails-phishing.recipientSrOnly")), 1)
177
+ n("div", ze, [
178
+ u(k, { t: "analyse-mails-phishing.recipient" }, {
179
+ srOnly: s(() => [
180
+ n("span", Le, l(e.$t("analyse-mails-phishing.recipientSrOnly")), 1)
180
181
  ]),
181
- recipient: n(() => [
182
- _(l(e.$t("analyse-mails-phishing.to")) + " ", 1),
183
- s("img", {
184
- src: M(m2),
182
+ recipient: s(() => [
183
+ y(l(e.$t("analyse-mails-phishing.to")) + " ", 1),
184
+ n("img", {
185
+ src: M(be),
185
186
  alt: ""
186
- }, null, 8, O2)
187
+ }, null, 8, Pe)
187
188
  ]),
188
189
  _: 1
189
190
  })
190
191
  ])
191
192
  ])
192
193
  ]),
193
- (a(!0), c(w, null, V(C.value, (h, I) => (a(), c(w, { key: I }, [
194
- h.type === "paragraph" ? (a(), c("p", S2, [
195
- (a(!0), c(w, null, V(h.content, ({ path: q, text: J }, F) => (a(), c(w, { key: F }, [
194
+ (a(!0), c(w, null, A(C.value, (h, G) => (a(), c(w, { key: G }, [
195
+ h.type === "paragraph" ? (a(), c("p", Be, [
196
+ (a(!0), c(w, null, A(h.content, ({ path: I, text: J }, F) => (a(), c(w, { key: F }, [
196
197
  F !== 0 ? (a(), c(w, { key: 0 }, [
197
- _(l(" "))
198
+ y(l(" "))
198
199
  ], 64)) : x("", !0),
199
- u(j, { path: q }, {
200
- default: n(() => [
201
- _(l(J), 1)
200
+ u(j, { path: I }, {
201
+ default: s(() => [
202
+ y(l(J), 1)
202
203
  ]),
203
204
  _: 2
204
205
  }, 1032, ["path"])
205
206
  ], 64))), 128))
206
207
  ])) : x("", !0),
207
- h.type === "button" ? (a(), c("div", M2, [
208
+ h.type === "button" ? (a(), c("div", Fe, [
208
209
  u(j, {
209
210
  path: h.path
210
211
  }, {
211
- default: n(() => [
212
- _(l(h.name), 1)
212
+ default: s(() => [
213
+ y(l(h.name), 1)
213
214
  ]),
214
215
  _: 2
215
216
  }, 1032, ["path"])
216
217
  ])) : x("", !0)
217
218
  ], 64))), 128))
218
219
  ]),
219
- O.value ? (a(), S(r2, {
220
+ O.value ? (a(), S(re, {
220
221
  key: 0,
221
- title: L.value
222
+ title: E.value
222
223
  }, {
223
- icon: n(() => [
224
- y.value ? (a(), S(i2, {
224
+ icon: s(() => [
225
+ g.value ? (a(), S(oe, {
225
226
  key: 0,
226
227
  class: "feedback-icon"
227
- })) : (a(), S(o2, {
228
+ })) : (a(), S(ie, {
228
229
  key: 1,
229
230
  class: "feedback-icon"
230
231
  }))
231
232
  ]),
232
- content: n(() => [
233
- _(l(z.value) + " ", 1),
234
- o.value ? (a(), c("span", L2, l(e.$t("analyse-mails-phishing.feedbackSrOnly")), 1)) : x("", !0)
233
+ content: s(() => [
234
+ y(l(T.value) + " ", 1),
235
+ i.value ? (a(), c("span", Ne, l(e.$t("analyse-mails-phishing.feedbackSrOnly")), 1)) : x("", !0)
235
236
  ]),
236
237
  _: 1
237
238
  }, 8, ["title"])) : x("", !0),
238
- o.value ? (a(), c("button", {
239
+ i.value ? (a(), c("button", {
239
240
  key: 1,
240
241
  class: "continue-button",
241
242
  onClick: r[0] || (r[0] = (h) => K())
@@ -243,16 +244,16 @@ const u2 = {
243
244
  ], 512);
244
245
  };
245
246
  }
246
- }), E2 = "*{font-family:Nunito,Roboto,sans-serif;color:#122647}p{margin:0}.analyse-mails-phishing{display:flex;flex-direction:column;gap:24px}.mail{display:flex;padding:16px;flex-direction:column;gap:12px;border-radius:8px;background:#f4f5f7;align-items:start}.mail__subject{font-size:18px}.mail-header{display:flex;gap:16px;align-items:center}.mail-header__content{display:flex;flex-direction:column;gap:4px}.mail-header__from-name{font-size:15px;font-weight:700}.mail-header__from-address{color:#757575;font-size:12px}.mail-header__to{color:#818488;font-size:12px;font-weight:500;display:flex;align-items:center;gap:6px}.mail__paragraph{font-size:14px;line-height:24px}.mail__button{padding:8px 24px;border-radius:8px;border:1px solid #cdd1d9;background-color:#fff;color:#253858;font-size:14px;font-weight:700;text-align:center}.mail-element--correct .mail-header__from-address,.mail-element--incorrect .mail-header__from-address{color:#122647}.feedback-icon{height:16px;width:16px}.continue-button{border-style:none;padding:8px 24px;border-radius:8px;background-color:#253858;color:#fff;font-size:14px;font-weight:700;cursor:pointer;align-self:center}@media only screen and (max-width:576px){.analyse-mails-phishing{gap:12px}.mail__subject{font-size:16px}.mail__button{padding:8px 12px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);border:0}", P2 = /* @__PURE__ */ D(z2, [["styles", [E2]]]);
247
- T.addTranslationsFromGlobResults(/* @__PURE__ */ Object.assign({ "./locales/fr.json": u2 }));
248
- d2();
249
- const H = n2(P2, {
247
+ }), Ve = "*{font-family:Nunito,Roboto,sans-serif;color:#122647}p{margin:0}.analyse-mails-phishing{display:flex;flex-direction:column;gap:24px}.mail{display:flex;padding:16px;flex-direction:column;gap:12px;border-radius:8px;background:#f4f5f7;align-items:start}.mail__subject{font-size:18px}.mail-header{display:flex;gap:16px;align-items:center}.mail-header__content{display:flex;flex-direction:column;gap:4px}.mail-header__from-name{font-size:15px;font-weight:700}.mail-header__from-address{color:#757575;font-size:12px}.mail-header__to{color:#818488;font-size:12px;font-weight:500;display:flex;align-items:center;gap:6px}.mail__paragraph{font-size:14px;line-height:24px}.mail__button{padding:8px 24px;border-radius:8px;border:1px solid #cdd1d9;background-color:#fff;color:#253858;font-size:14px;font-weight:700;text-align:center}.mail-element--correct .mail-header__from-address,.mail-element--incorrect .mail-header__from-address{color:#122647}.feedback-icon{height:16px;width:16px}.continue-button{border-style:none;padding:8px 24px;border-radius:8px;background-color:#253858;color:#fff;font-size:14px;font-weight:700;cursor:pointer;align-self:center}@media only screen and (max-width:576px){.analyse-mails-phishing{gap:12px}.mail__subject{font-size:16px}.mail__button{padding:8px 12px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);border:0}", Ze = /* @__PURE__ */ D(Ae, [["styles", [Ve]]]);
248
+ P.addTranslationsFromGlobResults(/* @__PURE__ */ Object.assign({ "./locales/de-AT.json": ue, "./locales/en.json": pe, "./locales/es-419.json": me, "./locales/es.json": he, "./locales/fr-BE.json": fe, "./locales/fr.json": _e, "./locales/it.json": ve, "./locales/nl.json": ge }));
249
+ de();
250
+ const R = se(Ze, {
250
251
  configureApp(t) {
251
- T.changeLanguage(document?.documentElement?.lang || navigator.language), t.use(T);
252
+ P.changeLanguage(document?.documentElement?.lang || navigator.language), t.use(P);
252
253
  }
253
254
  });
254
- H.prototype.normalizeProps = (t) => ({
255
+ R.prototype.normalizeProps = (t) => ({
255
256
  ...t,
256
- titleLevel: l2(t.titleLevel)
257
+ titleLevel: le(t.titleLevel)
257
258
  });
258
- window.customElements.define("analyse-mails-phishing", H);
259
+ window.customElements.define("analyse-mails-phishing", R);
@@ -1,6 +1,6 @@
1
- import { d as V, G as R, c as p, o as d, F as K, E as v, K as r, B as C, a as e, t as a, H as _, T as D, _ as z, r as l, z as E, e as U, k as j, Q as N, f as G } from "../_plugin-vue_export-helper-BaC4eJh4.js";
2
- import { a as H, i as x, b as Q } from "../i18n-BJ6FRipD.js";
3
- import { u as J } from "../normalize-props-DtfVI0Xg.js";
1
+ import { b as V, G as R, c as p, o as d, F as K, E as v, K as r, B as C, a as e, t as a, H as _, T as D, _ as z, r as l, A as E, f as U, k as j, Q as N, d as G } from "../_plugin-vue_export-helper-D0N_62VD.js";
2
+ import { a as H, i as x, b as Q } from "../i18n-ekiZvzf6.js";
3
+ import { b as J } from "../normalize-props-DH0oPBss.js";
4
4
  const X = {}, Z = {}, ee = {}, te = {}, ae = {}, le = {
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é" }
6
6
  }, oe = {}, ne = {}, ie = {
@@ -117,17 +117,17 @@ const X = {}, Z = {}, ee = {}, te = {}, ae = {}, le = {
117
117
  setup(t, { expose: o }) {
118
118
  const i = t.titleLevel ?? 2, b = l(10), f = l(2), w = l(0), B = l(0), $ = l(0), c = l(!1), y = l(!1);
119
119
  function q() {
120
- b.value = 10, f.value = 2, u.value = {}, m.value = {}, w.value = 0, B.value = 0, $.value = 0, c.value = !1, y.value = !1, k.value = 0, F.value = 0, g.value = 0, A.value = 0, L.value = 0;
120
+ b.value = 10, f.value = 2, u.value = {}, m.value = {}, w.value = 0, B.value = 0, $.value = 0, c.value = !1, y.value = !1, k.value = 0, A.value = 0, g.value = 0, F.value = 0, L.value = 0;
121
121
  }
122
122
  const h = {
123
123
  text: { energy: 2.9, co2: 1.5 },
124
124
  image: { energy: 32, co2: 20 }
125
- }, u = l({}), m = l({}), k = l(0), F = l(0), g = l(0), A = l(0), L = l(0);
125
+ }, u = l({}), m = l({}), k = l(0), A = l(0), g = l(0), F = l(0), L = l(0);
126
126
  function P() {
127
- k.value = b.value * h.text.energy + f.value * h.image.energy, F.value = b.value * h.text.co2 + f.value * h.image.co2, w.value = Number((k.value / 0.8).toFixed(1)), u.value.energyByWeek = k.value.toFixed(1), u.value.personalMicrowavesDuration = w.value, u.value.co2ByWeek = F.value.toFixed(1);
127
+ k.value = b.value * h.text.energy + f.value * h.image.energy, A.value = b.value * h.text.co2 + f.value * h.image.co2, w.value = Number((k.value / 0.8).toFixed(1)), u.value.energyByWeek = k.value.toFixed(1), u.value.personalMicrowavesDuration = w.value, u.value.co2ByWeek = A.value.toFixed(1);
128
128
  }
129
129
  function M() {
130
- g.value = u.value.energyByWeek * 52 * 1e6 / 1e3, A.value = u.value.co2ByWeek * 52 * 1e6 / 1e6, L.value = Math.round(g.value / 2300), B.value = g.value / 0.8, $.value = A.value * 2410, m.value.collectiveMicrowavesDuration = B.value.toLocaleString(), m.value.kilometerByPlane = $.value.toLocaleString(), m.value.equivalentPopulationByCity = L.value.toLocaleString(), m.value.collectiveAnnualEnergy = g.value.toLocaleString();
130
+ g.value = u.value.energyByWeek * 52 * 1e6 / 1e3, F.value = u.value.co2ByWeek * 52 * 1e6 / 1e6, L.value = Math.round(g.value / 2300), B.value = g.value / 0.8, $.value = F.value * 2410, m.value.collectiveMicrowavesDuration = B.value.toLocaleString(), m.value.kilometerByPlane = $.value.toLocaleString(), m.value.equivalentPopulationByCity = L.value.toLocaleString(), m.value.collectiveAnnualEnergy = g.value.toLocaleString();
131
131
  }
132
132
  function S() {
133
133
  P(), c.value = !0;
@@ -184,9 +184,9 @@ const X = {}, Z = {}, ee = {}, te = {}, ae = {}, le = {
184
184
  e("p", Be, "📝 " + a(s.$t("calcul-impact.legals")), 1)
185
185
  ]));
186
186
  }
187
- }), Fe = "[data-v-7fbb31b5]{font-family:Nunito,Roboto,sans-serif;color:#253858}p[data-v-7fbb31b5]{padding:0}.container[data-v-7fbb31b5]{display:flex;flex-direction:column;gap:1rem}.container button[data-v-7fbb31b5]{border:0;border-radius:5px;font-size:.9rem;background:#357abd;color:#fff;width:50%;padding:.4rem .8rem;margin:auto;cursor:pointer}.container button[data-v-7fbb31b5]:hover{background:#225d93}.container input[data-v-7fbb31b5]{border:solid 1px lightgrey;border-radius:5px;padding-block:.2rem;width:40%}.container label[data-v-7fbb31b5]{font-weight:700}.container .legals[data-v-7fbb31b5]{font-size:.9rem;font-style:italic}.container .title[data-v-7fbb31b5]{font-size:1.3rem;font-weight:700}@media only screen and (max-width:768px){.container button[data-v-7fbb31b5]{width:100%}.container input[data-v-7fbb31b5]{width:80%}}", Ae = /* @__PURE__ */ z($e, [["styles", [Fe]], ["__scopeId", "data-v-7fbb31b5"]]);
187
+ }), Ae = "[data-v-7fbb31b5]{font-family:Nunito,Roboto,sans-serif;color:#253858}p[data-v-7fbb31b5]{padding:0}.container[data-v-7fbb31b5]{display:flex;flex-direction:column;gap:1rem}.container button[data-v-7fbb31b5]{border:0;border-radius:5px;font-size:.9rem;background:#357abd;color:#fff;width:50%;padding:.4rem .8rem;margin:auto;cursor:pointer}.container button[data-v-7fbb31b5]:hover{background:#225d93}.container input[data-v-7fbb31b5]{border:solid 1px lightgrey;border-radius:5px;padding-block:.2rem;width:40%}.container label[data-v-7fbb31b5]{font-weight:700}.container .legals[data-v-7fbb31b5]{font-size:.9rem;font-style:italic}.container .title[data-v-7fbb31b5]{font-size:1.3rem;font-weight:700}@media only screen and (max-width:768px){.container button[data-v-7fbb31b5]{width:100%}.container input[data-v-7fbb31b5]{width:80%}}", Fe = /* @__PURE__ */ z($e, [["styles", [Ae]], ["__scopeId", "data-v-7fbb31b5"]]);
188
188
  H(/* @__PURE__ */ Object.assign({ "./locales/de-AT.json": X, "./locales/en.json": Z, "./locales/es-419.json": ee, "./locales/es.json": te, "./locales/fr-BE.json": ae, "./locales/fr.json": le, "./locales/it.json": oe, "./locales/nl.json": ne })).catch((t) => console.error(t));
189
- const Y = G(Ae, {
189
+ const Y = G(Fe, {
190
190
  configureApp(t) {
191
191
  x.changeLanguage(document?.documentElement?.lang || navigator.language), t.use(Q, {
192
192
  i18next: x,
@@ -1,7 +1,7 @@
1
- import { d as b, c as s, o as n, n as v, g as R, H as N, t as o, _ as p, R as T, S as w, r as g, y as h, a as t, E as x, F as V, b as Z, k as D, l as O, U as F, K as P, e as f, B as q, f as H } from "../_plugin-vue_export-helper-BaC4eJh4.js";
2
- import { u as K, a as W, i as $, b as G } from "../i18n-BJ6FRipD.js";
3
- import { u as J } from "../normalize-props-DtfVI0Xg.js";
4
- import { R as X } from "../Retry-BYnFnneH.js";
1
+ import { b, c as s, o as n, n as v, q as V, H as N, t as o, _ as p, U as R, V as w, r as g, g as h, a as t, E as x, F as T, e as Z, k as D, l as O, W as F, K as P, f, B as q, d as W } from "../_plugin-vue_export-helper-D0N_62VD.js";
2
+ import { u as H, a as K, i as $, b as G } from "../i18n-ekiZvzf6.js";
3
+ import { b as J } from "../normalize-props-DH0oPBss.js";
4
+ import { R as X } from "../Retry-BZf7NJz9.js";
5
5
  const Y = {}, aa = {}, ea = {}, ta = {}, ca = {}, la = {
6
6
  "capacity-calculation": { title: "L’impact des requêtes à l’IA générative", in: { title: "Choisissez le type et le nombre de requêtes, puis observez ce qui se passe.", 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
  }, ia = {}, na = {}, oa = /* @__PURE__ */ b({
@@ -14,7 +14,7 @@ const Y = {}, aa = {}, ea = {}, ta = {}, ca = {}, la = {
14
14
  return (l, u) => (n(), s("button", {
15
15
  class: v(["epreuve-button", a.state])
16
16
  }, [
17
- R(l.$slots, "icon"),
17
+ V(l.$slots, "icon"),
18
18
  N(" " + o(a.label), 1)
19
19
  ], 2));
20
20
  }
@@ -23,7 +23,7 @@ const Y = {}, aa = {}, ea = {}, ta = {}, ca = {}, la = {
23
23
  class: "capacity-calculation__range-label"
24
24
  }, ba = /* @__PURE__ */ b({
25
25
  __name: "Questions.ce",
26
- props: /* @__PURE__ */ T({
26
+ props: /* @__PURE__ */ R({
27
27
  titleLevel: { type: Number }
28
28
  }, {
29
29
  selectedAiQuestion: {
@@ -44,10 +44,10 @@ const Y = {}, aa = {}, ea = {}, ta = {}, ca = {}, la = {
44
44
  }),
45
45
  emits: ["update:selectedAiQuestion", "update:selectedNbUser", "update:currentLevel"],
46
46
  setup(a) {
47
- const l = a, { t: u } = K(), d = l.titleLevel + 1, r = w(a, "selectedAiQuestion"), e = w(a, "selectedNbUser"), c = w(a, "currentLevel"), _ = g(!1), L = h(() => ({
47
+ const l = a, { t: u } = H(), d = l.titleLevel + 1, r = w(a, "selectedAiQuestion"), e = w(a, "selectedNbUser"), c = w(a, "currentLevel"), _ = g(!1), L = h(() => ({
48
48
  state: c.value === "initial" ? "primary" : "warning",
49
49
  label: u(`capacity-calculation.in.buttonLabel.${c.value === "initial" ? "primary" : "warning"}`)
50
- })), k = h(() => Number.isInteger(r.value)), S = [800, 8e3, 14e3, 25e3, 9e4, 15e4], U = /* @__PURE__ */ new Set([
50
+ })), k = h(() => Number.isInteger(r.value)), U = [800, 8e3, 14e3, 25e3, 9e4, 15e4], A = /* @__PURE__ */ new Set([
51
51
  // Valeurs de base
52
52
  10,
53
53
  20,
@@ -72,7 +72,7 @@ const Y = {}, aa = {}, ea = {}, ta = {}, ca = {}, la = {
72
72
  4e3,
73
73
  5e3,
74
74
  1e4,
75
- ...S,
75
+ ...U,
76
76
  2e4,
77
77
  3e4,
78
78
  4e4,
@@ -80,10 +80,10 @@ const Y = {}, aa = {}, ea = {}, ta = {}, ca = {}, la = {
80
80
  75e3,
81
81
  1e5,
82
82
  125e3
83
- ]), C = Array.from(U).sort((i, m) => i - m), A = h(() => {
83
+ ]), C = Array.from(A).sort((i, m) => i - m), Q = h(() => {
84
84
  const i = C.indexOf(e.value);
85
85
  return Math.max(0, i);
86
- }), Q = (i) => {
86
+ }), S = (i) => {
87
87
  const m = i.target;
88
88
  e.value = C[Number(m.value)];
89
89
  }, j = (i) => {
@@ -118,7 +118,7 @@ const Y = {}, aa = {}, ea = {}, ta = {}, ca = {}, la = {
118
118
  }, o(i.$t("capacity-calculation.in.title")), 1),
119
119
  t("fieldset", da, [
120
120
  t("legend", _a, o(i.$t("capacity-calculation.in.aiQuestion")), 1),
121
- (n(!0), s(V, null, Z(i.$t("capacity-calculation.in.aiOptions", { returnObjects: !0 }), (z, y) => (n(), s("div", { key: y }, [
121
+ (n(!0), s(T, null, Z(i.$t("capacity-calculation.in.aiOptions", { returnObjects: !0 }), (z, y) => (n(), s("div", { key: y }, [
122
122
  t("label", {
123
123
  class: v(["capacity-calculation__ai-option", { "capacity-calculation__ai-option--active": r.value === y, disabled: _.value }])
124
124
  }, [
@@ -143,8 +143,8 @@ const Y = {}, aa = {}, ea = {}, ta = {}, ca = {}, la = {
143
143
  name: "nbUser",
144
144
  min: 0,
145
145
  max: D(C).length - 1,
146
- value: A.value,
147
- onChange: Q,
146
+ value: Q.value,
147
+ onChange: S,
148
148
  onKeydown: j,
149
149
  "aria-disabled": _.value,
150
150
  class: "capacity-calculation__range"
@@ -198,22 +198,22 @@ function qa(a, l) {
198
198
  }, null, -1)
199
199
  ])]);
200
200
  }
201
- const Ma = /* @__PURE__ */ p($a, [["render", qa]]), Sa = {}, Ua = {
201
+ const Ma = /* @__PURE__ */ p($a, [["render", qa]]), Ua = {}, Aa = {
202
202
  width: "43",
203
203
  height: "43",
204
204
  viewBox: "0 0 43 43",
205
205
  fill: "none",
206
206
  xmlns: "http://www.w3.org/2000/svg"
207
207
  };
208
- function Aa(a, l) {
209
- return n(), s("svg", Ua, [...l[0] || (l[0] = [
208
+ function Qa(a, l) {
209
+ return n(), s("svg", Aa, [...l[0] || (l[0] = [
210
210
  t("path", {
211
211
  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",
212
212
  fill: "#EE6911"
213
213
  }, null, -1)
214
214
  ])]);
215
215
  }
216
- const Qa = /* @__PURE__ */ p(Sa, [["render", Aa]]), ja = ["aria-level"], Ia = { class: "capacity-calculation__card" }, Ba = { class: "capacity-calculation__text capacity-calculation__text--strong" }, Ea = { class: "capacity-calculation__img" }, za = ["src"], Ra = { class: "capacity-calculation__text" }, Ta = { class: "capacity-calculation__answers" }, Va = { class: "capacity-calculation__card" }, Za = { class: "capacity-calculation__text capacity-calculation__text--strong" }, Da = { class: "capacity-calculation__text" }, Oa = /* @__PURE__ */ b({
216
+ const Sa = /* @__PURE__ */ p(Ua, [["render", Qa]]), ja = ["aria-level"], Ia = { class: "capacity-calculation__card" }, Ba = { class: "capacity-calculation__text capacity-calculation__text--strong" }, Ea = { class: "capacity-calculation__img" }, za = ["src"], Va = { class: "capacity-calculation__text" }, Ra = { class: "capacity-calculation__answers" }, Ta = { class: "capacity-calculation__card" }, Za = { class: "capacity-calculation__text capacity-calculation__text--strong" }, Da = { class: "capacity-calculation__text" }, Oa = /* @__PURE__ */ b({
217
217
  __name: "Answers.ce",
218
218
  props: {
219
219
  currentLevel: { type: String },
@@ -240,7 +240,7 @@ const Qa = /* @__PURE__ */ p(Sa, [["render", Aa]]), ja = ["aria-level"], Ia = {
240
240
  a.currentLevel.startsWith("normal_") ? (n(), f(Ma, {
241
241
  key: 0,
242
242
  class: "capacity-calculation__img--status"
243
- })) : a.currentLevel === "warning" ? (n(), f(Qa, {
243
+ })) : a.currentLevel === "warning" ? (n(), f(Sa, {
244
244
  key: 1,
245
245
  class: "capacity-calculation__img--status"
246
246
  })) : a.currentLevel === "error" ? (n(), f(ka, {
@@ -248,10 +248,10 @@ const Qa = /* @__PURE__ */ p(Sa, [["render", Aa]]), ja = ["aria-level"], Ia = {
248
248
  class: "capacity-calculation__img--status"
249
249
  })) : q("", !0)
250
250
  ]),
251
- t("p", Ra, o(l.$t(`capacity-calculation.out.capacity.${a.currentLevel}`)), 1)
251
+ t("p", Va, o(l.$t(`capacity-calculation.out.capacity.${a.currentLevel}`)), 1)
252
252
  ]),
253
- t("div", Ta, [
254
- t("div", Va, [
253
+ t("div", Ra, [
254
+ t("div", Ta, [
255
255
  t("p", Za, o(l.$t("capacity-calculation.out.consumption.label")), 1),
256
256
  t("div", {
257
257
  class: v(["capacity-calculation__progress-bar", a.currentLevel])
@@ -261,7 +261,7 @@ const Qa = /* @__PURE__ */ p(Sa, [["render", Aa]]), ja = ["aria-level"], Ia = {
261
261
  ])
262
262
  ], 2));
263
263
  }
264
- }), Fa = ".capacity-calculation__column--answers[data-v-ea19b1c6]{display:flex;gap:.3rem;border:0px}.capacity-calculation__column--answers--normal_weak[data-v-ea19b1c6],.capacity-calculation__column--answers--normal_medium[data-v-ea19b1c6]{background:#eaf1ff}.capacity-calculation__column--answers--warning[data-v-ea19b1c6]{background:#fffaeb}.capacity-calculation__column--answers--error[data-v-ea19b1c6]{background:#fbebea}.capacity-calculation__column--answers .capacity-calculation__answers[data-v-ea19b1c6]{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-ea19b1c6]{border-radius:4px;display:flex;flex-direction:column;align-items:center;gap:16px;padding:8px}.capacity-calculation__column--answers .capacity-calculation__text[data-v-ea19b1c6]{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-ea19b1c6]{font-weight:700;margin:0}.capacity-calculation__column--answers img[data-v-ea19b1c6]{max-width:100%}.capacity-calculation__column--answers .capacity-calculation__img[data-v-ea19b1c6]{position:relative}.capacity-calculation__column--answers .capacity-calculation__img img[data-v-ea19b1c6]{width:100px;height:100px;border-radius:24px}.capacity-calculation__column--answers .capacity-calculation__img--status[data-v-ea19b1c6]{position:absolute;top:0;right:0;transform:translate(30%,-30%)}.capacity-calculation__column--answers .capacity-calculation__progress-bar[data-v-ea19b1c6]{width:100%;height:32px;border-radius:24px;border:solid 2px #253858}.capacity-calculation__column--answers .capacity-calculation__progress-bar.normal_weak[data-v-ea19b1c6],.capacity-calculation__column--answers .capacity-calculation__progress-bar.normal_medium[data-v-ea19b1c6]{background:linear-gradient(90deg,#1f53b5 10%,#fff 36%)}.capacity-calculation__column--answers .capacity-calculation__progress-bar.warning[data-v-ea19b1c6]{background:linear-gradient(90deg,#ee6911 30%,#fff 66%)}.capacity-calculation__column--answers .capacity-calculation__progress-bar.error[data-v-ea19b1c6]{background:linear-gradient(90deg,#d24140 51%,#fff 88%)}@media(max-width:720px){.capacity-calculation__column--answers .capacity-calculation__answers[data-v-ea19b1c6]{flex-direction:row;justify-content:center;gap:16px}}", Pa = /* @__PURE__ */ p(Oa, [["styles", [Fa]], ["__scopeId", "data-v-ea19b1c6"]]), Ha = { class: "capacity-calculation" }, Ka = ["aria-level"], Wa = {
264
+ }), Fa = ".capacity-calculation__column--answers[data-v-ea19b1c6]{display:flex;gap:.3rem;border:0px}.capacity-calculation__column--answers--normal_weak[data-v-ea19b1c6],.capacity-calculation__column--answers--normal_medium[data-v-ea19b1c6]{background:#eaf1ff}.capacity-calculation__column--answers--warning[data-v-ea19b1c6]{background:#fffaeb}.capacity-calculation__column--answers--error[data-v-ea19b1c6]{background:#fbebea}.capacity-calculation__column--answers .capacity-calculation__answers[data-v-ea19b1c6]{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-ea19b1c6]{border-radius:4px;display:flex;flex-direction:column;align-items:center;gap:16px;padding:8px}.capacity-calculation__column--answers .capacity-calculation__text[data-v-ea19b1c6]{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-ea19b1c6]{font-weight:700;margin:0}.capacity-calculation__column--answers img[data-v-ea19b1c6]{max-width:100%}.capacity-calculation__column--answers .capacity-calculation__img[data-v-ea19b1c6]{position:relative}.capacity-calculation__column--answers .capacity-calculation__img img[data-v-ea19b1c6]{width:100px;height:100px;border-radius:24px}.capacity-calculation__column--answers .capacity-calculation__img--status[data-v-ea19b1c6]{position:absolute;top:0;right:0;transform:translate(30%,-30%)}.capacity-calculation__column--answers .capacity-calculation__progress-bar[data-v-ea19b1c6]{width:100%;height:32px;border-radius:24px;border:solid 2px #253858}.capacity-calculation__column--answers .capacity-calculation__progress-bar.normal_weak[data-v-ea19b1c6],.capacity-calculation__column--answers .capacity-calculation__progress-bar.normal_medium[data-v-ea19b1c6]{background:linear-gradient(90deg,#1f53b5 10%,#fff 36%)}.capacity-calculation__column--answers .capacity-calculation__progress-bar.warning[data-v-ea19b1c6]{background:linear-gradient(90deg,#ee6911 30%,#fff 66%)}.capacity-calculation__column--answers .capacity-calculation__progress-bar.error[data-v-ea19b1c6]{background:linear-gradient(90deg,#d24140 51%,#fff 88%)}@media(max-width:720px){.capacity-calculation__column--answers .capacity-calculation__answers[data-v-ea19b1c6]{flex-direction:row;justify-content:center;gap:16px}}", Pa = /* @__PURE__ */ p(Oa, [["styles", [Fa]], ["__scopeId", "data-v-ea19b1c6"]]), Wa = { class: "capacity-calculation" }, Ha = ["aria-level"], Ka = {
265
265
  class: "capacity-calculation__grid",
266
266
  "aria-live": "polite"
267
267
  }, Ga = /* @__PURE__ */ b({
@@ -272,13 +272,13 @@ const Qa = /* @__PURE__ */ p(Sa, [["render", Aa]]), ja = ["aria-level"], Ia = {
272
272
  },
273
273
  setup(a) {
274
274
  const l = g(void 0), u = g(10), d = g("initial");
275
- return (r, e) => (n(), s("div", Ha, [
275
+ return (r, e) => (n(), s("div", Wa, [
276
276
  t("div", {
277
277
  role: "heading",
278
278
  "aria-level": a.titleLevel,
279
279
  class: "capacity-calculation__title"
280
- }, o(r.$t("capacity-calculation.title")), 9, Ka),
281
- t("div", Wa, [
280
+ }, o(r.$t("capacity-calculation.title")), 9, Ha),
281
+ t("div", Ka, [
282
282
  x(wa, {
283
283
  "title-level": a.titleLevel,
284
284
  "selected-ai-question": l.value,
@@ -300,8 +300,8 @@ const Qa = /* @__PURE__ */ p(Sa, [["render", Aa]]), ja = ["aria-level"], Ia = {
300
300
  ]));
301
301
  }
302
302
  }), Ja = ".capacity-calculation__title,.capacity-calculation__subtitle{color:#122647;font-family:Nunito,serif;font-weight:700;text-align:center}.capacity-calculation__title{font-size:1.75rem;line-height:2.25rem;margin-bottom:1rem}.capacity-calculation__subtitle{font-size:1.25rem;line-height:1.75rem;margin-bottom:1rem}.capacity-calculation__grid{display:grid;gap:1rem;grid-template-columns:5fr 2.6fr}.capacity-calculation__grid .initial-state{grid-column:1/span 2}.capacity-calculation__column{display:flex;border-radius:8px;flex-direction:column;padding:16px}@media screen and (max-width:720px){.capacity-calculation__grid{display:flex;flex-direction:column}}", Xa = /* @__PURE__ */ p(Ga, [["styles", [Ja]]]);
303
- W(/* @__PURE__ */ Object.assign({ "./locales/de-AT.json": Y, "./locales/en.json": aa, "./locales/es-419.json": ea, "./locales/es.json": ta, "./locales/fr-BE.json": ca, "./locales/fr.json": la, "./locales/it.json": ia, "./locales/nl.json": na })).catch((a) => console.error(a));
304
- const M = H(Xa, {
303
+ K(/* @__PURE__ */ Object.assign({ "./locales/de-AT.json": Y, "./locales/en.json": aa, "./locales/es-419.json": ea, "./locales/es.json": ta, "./locales/fr-BE.json": ca, "./locales/fr.json": la, "./locales/it.json": ia, "./locales/nl.json": na })).catch((a) => console.error(a));
304
+ const M = W(Xa, {
305
305
  configureApp(a) {
306
306
  $.changeLanguage(document?.documentElement?.lang || navigator.language), a.use(G, { i18next: $ });
307
307
  }