@1024pix/epreuves-components 2.9.0 → 4.0.1

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-Bdmf0R1g.js} +7 -7
  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 +18 -18
  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 +19 -19
  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 +131 -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 +201 -239
  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 +108 -72
  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
@@ -4887,8 +4887,8 @@ const nf = (e, t) => {
4887
4887
  return n;
4888
4888
  };
4889
4889
  export {
4890
- _s as $,
4891
- Cn as A,
4890
+ Oc as $,
4891
+ Rc as A,
4892
4892
  qc as B,
4893
4893
  Jc as C,
4894
4894
  kc as D,
@@ -4899,32 +4899,33 @@ export {
4899
4899
  uc as I,
4900
4900
  Nc as J,
4901
4901
  Do as K,
4902
- tf as L,
4903
- Ac as M,
4904
- $c as N,
4905
- Bc as O,
4902
+ Hn as L,
4903
+ nr as M,
4904
+ tf as N,
4905
+ Ac as O,
4906
4906
  Qc as P,
4907
4907
  Zc as Q,
4908
- Kc as R,
4909
- Uc as S,
4908
+ $c as R,
4909
+ Bc as S,
4910
4910
  Gc as T,
4911
- Hc as U,
4912
- no as V,
4913
- Pc as W,
4914
- dt as X,
4915
- Hn as Y,
4916
- Oc as Z,
4911
+ Kc as U,
4912
+ Uc as V,
4913
+ Hc as W,
4914
+ no as X,
4915
+ Pc as Y,
4916
+ dt as Z,
4917
4917
  nf as _,
4918
4918
  Pr as a,
4919
- Xn as a0,
4920
- Kl as a1,
4921
- Xc as a2,
4922
- Vc as b,
4919
+ _s as a0,
4920
+ Xn as a1,
4921
+ Kl as a2,
4922
+ Xc as a3,
4923
+ ko as b,
4923
4924
  Wc as c,
4924
- ko as d,
4925
- ss as e,
4926
- Yc as f,
4927
- jc as g,
4925
+ Yc as d,
4926
+ Vc as e,
4927
+ ss as f,
4928
+ jl as g,
4928
4929
  Fc as h,
4929
4930
  en as i,
4930
4931
  Lc as j,
@@ -4934,14 +4935,14 @@ export {
4934
4935
  Sn as n,
4935
4936
  ns as o,
4936
4937
  $o as p,
4937
- Ki as q,
4938
+ jc as q,
4938
4939
  Mc as r,
4939
- wo as s,
4940
+ Cn as s,
4940
4941
  eo as t,
4941
4942
  zc as u,
4942
- tr as v,
4943
+ wo as v,
4943
4944
  Ic as w,
4944
- ir as x,
4945
- jl as y,
4946
- Rc as z
4945
+ Ki as x,
4946
+ tr as y,
4947
+ ir as z
4947
4948
  };
@@ -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,