@1024pix/epreuves-components 4.5.0 → 4.6.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 (62) hide show
  1. package/dist/{Button.ce-DNrjLa1r.js → Button.ce-Ccv3OLk2.js} +1 -1
  2. package/dist/{ButtonTooltip.ce-DQ8QAvUM.js → ButtonTooltip.ce-Bo42SFAP.js} +1 -1
  3. package/dist/Cross.ce.vue_vue_type_script_setup_true_lang-CGq82iLD.js +83 -0
  4. package/dist/{FocusManager.ce-CwF5pnqR.js → FocusManager.ce-BG_n76ZF.js} +2 -2
  5. package/dist/Icon.ce-Be0LymfA.js +50 -0
  6. package/dist/{LLMMessage.ce-Duki08xd.js → LLMMessage.ce-y0WmEj7m.js} +24 -22
  7. package/dist/{Loading.ce-D7CUjrcI.js → Loading.ce-CG-e7tdE.js} +1 -1
  8. package/dist/Modal.ce-DCTwYJKJ.js +86 -0
  9. package/dist/{NavigationButton.ce-17UL0Mwu.js → NavigationButton.ce-B-c0m9H8.js} +14 -12
  10. package/dist/{PixMailMessage.ce-CNULZecQ.js → PixMailMessage.ce-CH6CVQ3H.js} +20 -20
  11. package/dist/{Popin.ce-VvQiVxjk.js → Popin.ce-CQtpIOkM.js} +3 -3
  12. package/dist/{Retry-CGkQcck5.js → Retry-DLOo5neI.js} +1 -1
  13. package/dist/{Stepper.ce-gx2YaVCo.js → Stepper.ce-MmSadTrx.js} +1 -1
  14. package/dist/{_plugin-vue_export-helper-DROOAHrz.js → _plugin-vue_export-helper-CD1RUA2y.js} +12 -12
  15. package/dist/components/analyse-mails-phishing.ce.js.js +104 -105
  16. package/dist/components/autocompletion-mdp.ce.js.js +256 -0
  17. package/dist/components/button.ce.js.js +2 -2
  18. package/dist/components/calcul-impact.ce.js.js +13 -13
  19. package/dist/components/capacity-calculation.ce.js.js +38 -35
  20. package/dist/components/clickable-image.ce.js.js +10 -10
  21. package/dist/components/complete-phrase.ce.js.js +12 -12
  22. package/dist/components/flip-cards.ce.js.js +10 -10
  23. package/dist/components/generate-mdp.ce.js.js +82 -151
  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 +3 -3
  27. package/dist/components/llm-messages.ce.js.js +3 -3
  28. package/dist/components/llm-prompt-select.ce.js.js +7 -7
  29. package/dist/components/mdp-classement.ce.js.js +100 -108
  30. package/dist/components/message-conversation.ce.js.js +19 -19
  31. package/dist/components/mobile-shell.ce.js.js +1 -1
  32. package/dist/components/notification-antivirus.ce.js.js +139 -149
  33. package/dist/components/phishing-message.ce.js.js +23 -23
  34. package/dist/components/phishing-notification.ce.js.js +18 -18
  35. package/dist/components/pix-anonymisation.ce.js.js +9 -9
  36. package/dist/components/pix-article.ce.js.js +2 -2
  37. package/dist/components/pix-carousel.ce.js.js +10 -8
  38. package/dist/components/pix-combinaisons.ce.js.js +13 -13
  39. package/dist/components/pix-cursor.ce.js.js +13 -13
  40. package/dist/components/pix-mail-message.ce.js.js +3 -3
  41. package/dist/components/proteger-mail-spam.ce.js.js +70 -82
  42. package/dist/components/qcm-deepfake.ce.js.js +23 -23
  43. package/dist/components/quiz-stepper.ce.js.js +61 -68
  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 +4 -4
  47. package/dist/components/trouver-mdp-rs.ce.js.js +52 -66
  48. package/dist/components/usages-donnees.ce.js.js +7 -7
  49. package/dist/{i18n-BVfGnSnP.js → i18n-C-1Ne5JG.js} +1 -1
  50. package/dist/{i18n-lite-V7Z5qwB2.js → i18n-lite-WQsHAHqG.js} +1 -1
  51. package/dist/{image-quiz.ce-DLpB-rde.js → image-quiz.ce-DGVVVaQN.js} +8 -8
  52. package/dist/{index-BgVc_wZ5.js → index-C8-9QxHJ.js} +1 -1
  53. package/dist/index.js +2 -1
  54. package/dist/metadata.js +29 -25
  55. package/dist/props.examples.js +115 -113
  56. package/dist/schema.js +55 -53
  57. package/dist/{shadow-dom-4LHwwhYa.js → shadow-dom-DSLDIcsa.js} +1 -1
  58. package/package.json +1 -1
  59. package/dist/Cross.ce.vue_vue_type_script_setup_true_lang-CUc-5ZVt.js +0 -53
  60. package/dist/Feedback.ce-MqHV98f3.js +0 -26
  61. package/dist/Icon.ce-O_y_jvjK.js +0 -50
  62. package/dist/components/feedback.ce.js.js +0 -4
@@ -5046,11 +5046,11 @@ const hf = (e, t) => {
5046
5046
  };
5047
5047
  export {
5048
5048
  gt as $,
5049
- Ll as A,
5050
- An as B,
5051
- lr as C,
5052
- re as D,
5053
- Uo as E,
5049
+ An as A,
5050
+ lr as B,
5051
+ re as C,
5052
+ Uo as D,
5053
+ Ll as E,
5054
5054
  ve as F,
5055
5055
  fr as G,
5056
5056
  Bc as H,
@@ -5059,13 +5059,13 @@ export {
5059
5059
  Gc as K,
5060
5060
  bc as L,
5061
5061
  Wc as M,
5062
- df as N,
5063
- Hc as O,
5064
- Ac as P,
5065
- bi as Q,
5066
- ef as R,
5067
- uf as S,
5068
- Zc as T,
5062
+ ef as N,
5063
+ uf as O,
5064
+ Zc as P,
5065
+ df as Q,
5066
+ Hc as R,
5067
+ Ac as S,
5068
+ bi as T,
5069
5069
  rf as U,
5070
5070
  Jc as V,
5071
5071
  Qc as W,
@@ -1,50 +1,49 @@
1
- import { b as V, i as J, h as D, w as Q, o as a, f as S, E as s, q as U, N as z, y as L, t as X, v as M, V as Y, g as o, _ as Z, K as ee, c, D as u, a as n, A as y, x as l, F as w, e as N, l as x, W as te, r as A, p as ae, d as se } from "../_plugin-vue_export-helper-DROOAHrz.js";
2
- import { u as ne, i as P } from "../i18n-lite-V7Z5qwB2.js";
1
+ import { b as A, i as W, h as D, w as J, o as l, f as L, D as t, q as U, Q as T, y as z, t as X, v as S, V as Y, g as o, _ as Z, K as ee, c, C as d, a as n, E as h, x as s, F as k, e as N, l as w, W as te, r as V, p as ae, d as se } from "../_plugin-vue_export-helper-CD1RUA2y.js";
2
+ import { u as ne, i as P } from "../i18n-lite-WQsHAHqG.js";
3
3
  import { b as le } from "../normalize-props-DH0oPBss.js";
4
- import { F as oe } from "../Feedback.ce-MqHV98f3.js";
5
- import { _ as ie, a as re } from "../Cross.ce.vue_vue_type_script_setup_true_lang-CUc-5ZVt.js";
6
- import { S as ce } from "../Stepper.ce-gx2YaVCo.js";
7
- import { l as de } from "../index-BgVc_wZ5.js";
8
- const ue = {}, pe = {}, me = {}, he = {}, fe = {}, _e = {
4
+ import { _ as oe, a as ie, F as re } from "../Cross.ce.vue_vue_type_script_setup_true_lang-CGq82iLD.js";
5
+ import { S as ce } from "../Stepper.ce-MmSadTrx.js";
6
+ import { l as de } from "../index-C8-9QxHJ.js";
7
+ const ue = {}, pe = {}, me = {}, fe = {}, he = {}, _e = {
9
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." }
10
- }, 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
+ }, 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__ */ A({
11
10
  __name: "MailElement.ce",
12
11
  props: {
13
12
  block: { type: Boolean, default: !1 },
14
13
  path: { type: String }
15
14
  },
16
- setup(t) {
17
- const { selectedPath: f, correct: $, paths: b, pathToIndex: _ } = J("store"), p = D("el"), m = o(() => f.value === t.path), v = o(() => _.value[t.path]), d = o(() => m.value || f.value === void 0 && v.value === 0);
15
+ setup(a) {
16
+ const { selectedPath: _, correct: $, paths: b, pathToIndex: v } = W("store"), p = D("el"), m = o(() => _.value === a.path), g = o(() => v.value[a.path]), u = o(() => m.value || _.value === void 0 && g.value === 0);
18
17
  function O() {
19
- f.value = t.path;
18
+ _.value = a.path;
20
19
  }
21
- function g() {
22
- v.value !== 0 && (f.value = b.value[v.value - 1]);
20
+ function y() {
21
+ g.value !== 0 && (_.value = b.value[g.value - 1]);
23
22
  }
24
- function E() {
25
- v.value !== b.value.length - 1 && (f.value = b.value[v.value + 1]);
23
+ function M() {
24
+ g.value !== b.value.length - 1 && (_.value = b.value[g.value + 1]);
26
25
  }
27
- return Q(() => {
26
+ return J(() => {
28
27
  m.value && p.value.focus();
29
- }), (T, i) => (a(), S(Y(t.block ? "div" : "span"), {
28
+ }), (E, i) => (l(), L(Y(a.block ? "div" : "span"), {
30
29
  class: X(["mail-element", {
31
- "mail-element--correct": m.value && M($),
32
- "mail-element--incorrect": m.value && !M($)
30
+ "mail-element--correct": m.value && S($),
31
+ "mail-element--incorrect": m.value && !S($)
33
32
  }]),
34
33
  role: "option",
35
34
  "aria-selected": m.value,
36
- tabindex: d.value ? 0 : -1,
35
+ tabindex: u.value ? 0 : -1,
37
36
  onClick: i[0] || (i[0] = (C) => O()),
38
37
  onKeydown: [
39
- i[1] || (i[1] = z(L((C) => O(), ["stop", "prevent"]), ["space"])),
40
- i[2] || (i[2] = z(L((C) => g(), ["stop", "prevent"]), ["up", "left"])),
41
- i[3] || (i[3] = z(L((C) => E(), ["stop", "prevent"]), ["down", "right"]))
38
+ i[1] || (i[1] = T(z((C) => O(), ["stop", "prevent"]), ["space"])),
39
+ i[2] || (i[2] = T(z((C) => y(), ["stop", "prevent"]), ["up", "left"])),
40
+ i[3] || (i[3] = T(z((C) => M(), ["stop", "prevent"]), ["down", "right"]))
42
41
  ],
43
42
  ref_key: "el",
44
43
  ref: p
45
44
  }, {
46
- default: s(() => [
47
- U(T.$slots, "default")
45
+ default: t(() => [
46
+ U(E.$slots, "default")
48
47
  ]),
49
48
  _: 3
50
49
  }, 40, ["class", "aria-selected", "tabindex"]));
@@ -61,21 +60,21 @@ const ue = {}, pe = {}, me = {}, he = {}, fe = {}, _e = {
61
60
  }, Ne = {
62
61
  key: 0,
63
62
  class: "sr-only"
64
- }, Ae = /* @__PURE__ */ V({
63
+ }, Ve = /* @__PURE__ */ A({
65
64
  __name: "AnalyseMailsPhishing.ce",
66
65
  props: {
67
66
  titleLevel: { type: Number },
68
67
  mails: { type: Array }
69
68
  },
70
- setup(t, { expose: f }) {
71
- const $ = te(t, ["mails"]), { t: b } = ne(), _ = A(0), p = A(), m = D("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(
72
- () => d.value.body.map((e, r) => {
69
+ setup(a, { expose: _ }) {
70
+ const $ = te(a, ["mails"]), { t: b } = ne(), v = V(0), p = V(), m = D("container"), g = o(() => $.titleLevel ?? 2), u = o(() => a.mails[v.value]), O = o(() => p.value !== void 0), y = o(() => u.value.answers.includes(p.value)), M = o(() => y.value ? b("analyse-mails-phishing.feedbackTitle.correct") : b("analyse-mails-phishing.feedbackTitle.incorrect")), E = o(() => y.value ? u.value.correctFeedback : u.value.incorrectFeedback), i = o(() => y.value && v.value < a.mails.length - 1), C = o(
71
+ () => u.value.body.map((e, r) => {
73
72
  if (e.type === "paragraph")
74
73
  return {
75
74
  ...e,
76
- content: e.content.map((k, h) => ({
77
- text: k,
78
- path: `body[${r}][${h}]`
75
+ content: e.content.map((x, f) => ({
76
+ text: x,
77
+ path: `body[${r}][${f}]`
79
78
  }))
80
79
  };
81
80
  if (e.type === "button")
@@ -98,47 +97,47 @@ const ue = {}, pe = {}, me = {}, he = {}, fe = {}, _e = {
98
97
  ));
99
98
  ae("store", {
100
99
  selectedPath: p,
101
- correct: g,
100
+ correct: y,
102
101
  paths: B,
103
102
  pathToIndex: H
104
103
  });
105
104
  function K() {
106
- _.value++, p.value = void 0, m.value.focus();
105
+ v.value++, p.value = void 0, m.value.focus();
107
106
  }
108
107
  function q() {
109
- _.value = 0, p.value = void 0;
108
+ v.value = 0, p.value = void 0;
110
109
  }
111
- return f({
110
+ return _({
112
111
  reset: q
113
112
  }), (e, r) => {
114
- const k = ee("i18n");
115
- return a(), c("div", {
113
+ const x = ee("i18n");
114
+ return l(), c("div", {
116
115
  class: "analyse-mails-phishing",
117
116
  tabindex: "-1",
118
117
  ref_key: "container",
119
118
  ref: m
120
119
  }, [
121
- u(ce, {
122
- step: _.value,
123
- "steps-count": t.mails.length
120
+ d(ce, {
121
+ step: v.value,
122
+ "steps-count": a.mails.length
124
123
  }, null, 8, ["step", "steps-count"]),
125
124
  n("div", ke, [
126
- u(j, {
125
+ d(j, {
127
126
  path: "subject",
128
127
  block: !0
129
128
  }, {
130
- default: s(() => [
129
+ default: t(() => [
131
130
  n("div", {
132
131
  class: "mail__subject",
133
132
  role: "heading",
134
- "arial-level": v.value
133
+ "arial-level": g.value
135
134
  }, [
136
- u(k, { t: "analyse-mails-phishing.subject" }, {
137
- srOnly: s(() => [
138
- n("span", je, l(e.$t("analyse-mails-phishing.subjectSrOnly")), 1)
135
+ d(x, { t: "analyse-mails-phishing.subject" }, {
136
+ srOnly: t(() => [
137
+ n("span", je, s(e.$t("analyse-mails-phishing.subjectSrOnly")), 1)
139
138
  ]),
140
- subject: s(() => [
141
- y(l(d.value.subject), 1)
139
+ subject: t(() => [
140
+ h(s(u.value.subject), 1)
142
141
  ]),
143
142
  _: 1
144
143
  })
@@ -148,26 +147,26 @@ const ue = {}, pe = {}, me = {}, he = {}, fe = {}, _e = {
148
147
  }),
149
148
  n("div", $e, [
150
149
  n("img", {
151
- src: M(ye),
150
+ src: S(ye),
152
151
  alt: ""
153
152
  }, null, 8, Oe),
154
153
  n("div", Se, [
155
154
  n("div", null, [
156
- u(k, { t: "analyse-mails-phishing.sender" }, {
157
- srOnly: s(() => [
158
- n("span", Me, l(e.$t("analyse-mails-phishing.senderSrOnly")), 1)
155
+ d(x, { t: "analyse-mails-phishing.sender" }, {
156
+ srOnly: t(() => [
157
+ n("span", Me, s(e.$t("analyse-mails-phishing.senderSrOnly")), 1)
159
158
  ]),
160
- sender: s(() => [
161
- u(j, { path: "from.name" }, {
162
- default: s(() => [
163
- n("span", Ee, l(d.value.from.name), 1)
159
+ sender: t(() => [
160
+ d(j, { path: "from.name" }, {
161
+ default: t(() => [
162
+ n("span", Ee, s(u.value.from.name), 1)
164
163
  ]),
165
164
  _: 1
166
165
  }),
167
- r[1] || (r[1] = y()),
168
- u(j, { path: "from.address" }, {
169
- default: s(() => [
170
- n("span", Te, "<" + l(d.value.from.address) + ">", 1)
166
+ r[1] || (r[1] = h()),
167
+ d(j, { path: "from.address" }, {
168
+ default: t(() => [
169
+ n("span", Te, "<" + s(u.value.from.address) + ">", 1)
171
170
  ]),
172
171
  _: 1
173
172
  })
@@ -176,14 +175,14 @@ const ue = {}, pe = {}, me = {}, he = {}, fe = {}, _e = {
176
175
  })
177
176
  ]),
178
177
  n("div", ze, [
179
- u(k, { t: "analyse-mails-phishing.recipient" }, {
180
- srOnly: s(() => [
181
- n("span", Le, l(e.$t("analyse-mails-phishing.recipientSrOnly")), 1)
178
+ d(x, { t: "analyse-mails-phishing.recipient" }, {
179
+ srOnly: t(() => [
180
+ n("span", Le, s(e.$t("analyse-mails-phishing.recipientSrOnly")), 1)
182
181
  ]),
183
- recipient: s(() => [
184
- y(l(e.$t("analyse-mails-phishing.to")) + " ", 1),
182
+ recipient: t(() => [
183
+ h(s(e.$t("analyse-mails-phishing.to")) + " ", 1),
185
184
  n("img", {
186
- src: M(be),
185
+ src: S(be),
187
186
  alt: ""
188
187
  }, null, 8, Pe)
189
188
  ]),
@@ -192,69 +191,69 @@ const ue = {}, pe = {}, me = {}, he = {}, fe = {}, _e = {
192
191
  ])
193
192
  ])
194
193
  ]),
195
- (a(!0), c(w, null, N(C.value, (h, I) => (a(), c(w, { key: I }, [
196
- h.type === "paragraph" ? (a(), c("p", Be, [
197
- (a(!0), c(w, null, N(h.content, ({ path: G, text: W }, F) => (a(), c(w, { key: F }, [
198
- F !== 0 ? (a(), c(w, { key: 0 }, [
199
- y(l(" "))
200
- ], 64)) : x("", !0),
201
- u(j, { path: G }, {
202
- default: s(() => [
203
- y(l(W), 1)
194
+ (l(!0), c(k, null, N(C.value, (f, I) => (l(), c(k, { key: I }, [
195
+ f.type === "paragraph" ? (l(), c("p", Be, [
196
+ (l(!0), c(k, null, N(f.content, ({ path: G, text: Q }, F) => (l(), c(k, { key: F }, [
197
+ F !== 0 ? (l(), c(k, { key: 0 }, [
198
+ h(s(" "))
199
+ ], 64)) : w("", !0),
200
+ d(j, { path: G }, {
201
+ default: t(() => [
202
+ h(s(Q), 1)
204
203
  ]),
205
204
  _: 2
206
205
  }, 1032, ["path"])
207
206
  ], 64))), 128))
208
- ])) : x("", !0),
209
- h.type === "button" ? (a(), c("div", Fe, [
210
- u(j, {
211
- path: h.path
207
+ ])) : w("", !0),
208
+ f.type === "button" ? (l(), c("div", Fe, [
209
+ d(j, {
210
+ path: f.path
212
211
  }, {
213
- default: s(() => [
214
- y(l(h.name), 1)
212
+ default: t(() => [
213
+ h(s(f.name), 1)
215
214
  ]),
216
215
  _: 2
217
216
  }, 1032, ["path"])
218
- ])) : x("", !0)
217
+ ])) : w("", !0)
219
218
  ], 64))), 128))
220
219
  ]),
221
- O.value ? (a(), S(oe, {
222
- key: 0,
223
- title: E.value
224
- }, {
225
- icon: s(() => [
226
- g.value ? (a(), S(ie, {
220
+ d(re, { "display-feedback": O.value }, {
221
+ icon: t(() => [
222
+ y.value ? (l(), L(oe, {
227
223
  key: 0,
228
224
  class: "feedback-icon"
229
- })) : (a(), S(re, {
225
+ })) : (l(), L(ie, {
230
226
  key: 1,
231
227
  class: "feedback-icon"
232
228
  }))
233
229
  ]),
234
- content: s(() => [
235
- y(l(T.value) + " ", 1),
236
- i.value ? (a(), c("span", Ne, l(e.$t("analyse-mails-phishing.feedbackSrOnly")), 1)) : x("", !0)
230
+ title: t(() => [
231
+ h(s(M.value), 1)
232
+ ]),
233
+ content: t(() => [
234
+ h(s(E.value) + " ", 1),
235
+ i.value ? (l(), c("span", Ne, s(e.$t("analyse-mails-phishing.feedbackSrOnly")), 1)) : w("", !0)
237
236
  ]),
238
237
  _: 1
239
- }, 8, ["title"])) : x("", !0),
240
- i.value ? (a(), c("button", {
241
- key: 1,
238
+ }, 8, ["display-feedback"]),
239
+ i.value ? (l(), c("button", {
240
+ key: 0,
242
241
  class: "continue-button",
243
- onClick: r[0] || (r[0] = (h) => K())
244
- }, l(e.$t("analyse-mails-phishing.continue")), 1)) : x("", !0)
242
+ onClick: r[0] || (r[0] = (f) => K())
243
+ }, s(e.$t("analyse-mails-phishing.continue")), 1)) : w("", !0)
245
244
  ], 512);
246
245
  };
247
246
  }
248
- }), 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}", De = /* @__PURE__ */ Z(Ae, [["styles", [Ve]]]);
249
- 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 }));
247
+ }), Ae = "*{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}", De = /* @__PURE__ */ Z(Ve, [["styles", [Ae]]]);
248
+ P.addTranslationsFromGlobResults(/* @__PURE__ */ Object.assign({ "./locales/de-AT.json": ue, "./locales/en.json": pe, "./locales/es-419.json": me, "./locales/es.json": fe, "./locales/fr-BE.json": he, "./locales/fr.json": _e, "./locales/it.json": ve, "./locales/nl.json": ge }));
250
249
  de();
251
250
  const R = se(De, {
252
- configureApp(t) {
253
- P.changeLanguage(document?.documentElement?.lang || navigator.language), t.use(P);
251
+ configureApp(a) {
252
+ P.changeLanguage(document?.documentElement?.lang || navigator.language), a.use(P);
254
253
  }
255
254
  });
256
- R.prototype.normalizeProps = (t) => ({
257
- ...t,
258
- titleLevel: le(t.titleLevel)
255
+ R.prototype.normalizeProps = (a) => ({
256
+ ...a,
257
+ titleLevel: le(a.titleLevel)
259
258
  });
260
259
  window.customElements.define("analyse-mails-phishing", R);