@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
@@ -0,0 +1,27 @@
1
+ import { b as n, j as r, c as d, o as i, n as c, q as l, _ as u } from "./_plugin-vue_export-helper-D0N_62VD.js";
2
+ const b = ["aria-disabled"], f = /* @__PURE__ */ n({
3
+ __name: "Button.ce",
4
+ props: {
5
+ isDisabled: { type: Boolean }
6
+ },
7
+ setup(e, { expose: o }) {
8
+ const a = r("button");
9
+ function s(t) {
10
+ e.isDisabled && t.stopPropagation();
11
+ }
12
+ return o({
13
+ buttonElement: a
14
+ }), (t, _) => (i(), d("button", {
15
+ ref: "button",
16
+ onClickCapture: s,
17
+ "aria-disabled": e.isDisabled,
18
+ class: c({ "is-disabled": e.isDisabled }),
19
+ type: "button"
20
+ }, [
21
+ l(t.$slots, "default", {}, void 0, !0)
22
+ ], 42, b));
23
+ }
24
+ }), p = "button[data-v-42cff57e]{padding:8px 24px;border-radius:8px;background:#253858;border:none;color:#fff}button[data-v-42cff57e]:hover{cursor:pointer;background:#334d77}button.is-disabled[data-v-42cff57e]{background:#25385880;cursor:not-allowed}", k = /* @__PURE__ */ u(f, [["styles", [p]], ["__scopeId", "data-v-42cff57e"]]);
25
+ export {
26
+ k as B
27
+ };
@@ -1,4 +1,4 @@
1
- import { d as f, r as u, h as v, j as w, c as g, o as m, a as n, n as x, k as s, t as y, m as k, l as z, g as B, _ as $ } from "./_plugin-vue_export-helper-BaC4eJh4.js";
1
+ import { b as f, r as u, h as v, j as w, c as g, o as m, a as n, n as x, k as s, t as y, m as k, l as z, q as B, _ as $ } from "./_plugin-vue_export-helper-D0N_62VD.js";
2
2
  const C = { class: "tooltip-container" }, S = ["id"], T = ["aria-labelledby", "aria-disabled"], Y = /* @__PURE__ */ f({
3
3
  inheritAttrs: !1,
4
4
  __name: "ButtonTooltip.ce",
@@ -1,4 +1,4 @@
1
- import { d as o, c as s, o as c, a as n, g as a, H as i, t as d, _ as l } from "./_plugin-vue_export-helper-BaC4eJh4.js";
1
+ import { b as o, c as s, o as c, a as n, q as a, H as i, t as d, _ as l } from "./_plugin-vue_export-helper-D0N_62VD.js";
2
2
  const _ = {
3
3
  class: "feedback-container",
4
4
  "aria-live": "polite"
@@ -21,7 +21,7 @@ const _ = {
21
21
  }), h = ".feedback-container{font-size:.875em;width:100%}.feedback-container .icon{width:16px;height:16px}.feedback-container__title{display:flex;width:fit-content;padding:4px 8px;justify-content:center;align-items:center;gap:8px;border-radius:8px 8px 0 0;background:#1f53b5;color:#fff;margin:0;font-weight:700}.feedback-container__content{padding:8px;border-radius:0 8px 8px;background:#eaf1ff;margin:0}", w = /* @__PURE__ */ l(k, [["styles", [h]]]), u = {
22
22
  viewBox: "0 0 16 16",
23
23
  fill: "none"
24
- }, g = ["stroke"], y = /* @__PURE__ */ o({
24
+ }, x = ["stroke"], y = /* @__PURE__ */ o({
25
25
  __name: "Check.ce",
26
26
  props: {
27
27
  color: { type: String }
@@ -38,10 +38,10 @@ const _ = {
38
38
  "stroke-width": "1.5",
39
39
  "stroke-linecap": "round",
40
40
  "stroke-linejoin": "round"
41
- }, null, 8, g)
41
+ }, null, 8, x)
42
42
  ]));
43
43
  }
44
- }), x = {
44
+ }), g = {
45
45
  viewBox: "0 0 16 16",
46
46
  fill: "none"
47
47
  }, b = ["stroke"], $ = /* @__PURE__ */ o({
@@ -50,7 +50,7 @@ const _ = {
50
50
  color: { type: String }
51
51
  },
52
52
  setup(e) {
53
- return (t, r) => (c(), s("svg", x, [
53
+ return (t, r) => (c(), s("svg", g, [
54
54
  n("path", {
55
55
  d: `
56
56
  M 4, 4
@@ -1,5 +1,5 @@
1
- import { _ as a, c as r, o as s, a as b, d as i, y as n, n as d, e as l, B as o, t as c, E as h } from "./_plugin-vue_export-helper-BaC4eJh4.js";
2
- import { L as p } from "./Loading.ce-Cxcx64IX.js";
1
+ import { _ as a, c as r, o as s, a as b, b as i, g as n, n as d, f as l, B as o, t as u, E as h } from "./_plugin-vue_export-helper-D0N_62VD.js";
2
+ import { L as p } from "./Loading.ce-Bh7-h48F.js";
3
3
  const f = {}, C = {
4
4
  height: "1rem",
5
5
  width: "auto",
@@ -63,14 +63,14 @@ const $ = /* @__PURE__ */ a(M, [["render", q]]), z = { class: "avatar" }, B = {
63
63
  const e = t, m = n(() => e.message.direction === "outbound"), g = n(() => {
64
64
  if (e.message.content)
65
65
  return e.name ? `<strong>${e.name}</strong> : ${e.message.content}` : e.message.content;
66
- }), u = n(() => e.message.hasError && e.message.errorMessage?.length > 0);
66
+ }), c = n(() => e.message.hasError && e.message.errorMessage?.length > 0);
67
67
  return (A, V) => (s(), r("div", {
68
68
  class: d(["message", t.message.direction])
69
69
  }, [
70
70
  b("span", z, [
71
71
  m.value ? (s(), l(_, { key: 0 })) : (s(), l($, { key: 1 }))
72
72
  ]),
73
- t.message.isLoading ? (s(), l(p, {
73
+ t.message.isLoading && !c.value ? (s(), l(p, {
74
74
  key: 0,
75
75
  class: "loader"
76
76
  })) : o("", !0),
@@ -80,11 +80,11 @@ const $ = /* @__PURE__ */ a(M, [["render", q]]), z = { class: "avatar" }, B = {
80
80
  innerHTML: g.value,
81
81
  class: "content"
82
82
  }, null, 8, Z)) : o("", !0),
83
- u.value ? (s(), r("div", N, [
84
- b("p", null, c(t.message.errorMessage), 1)
83
+ c.value ? (s(), r("div", N, [
84
+ b("p", null, u(t.message.errorMessage), 1)
85
85
  ])) : o("", !0),
86
86
  t.message.attachmentName && m.value ? (s(), r("p", E, [
87
- b("span", null, c(t.message.attachmentName), 1),
87
+ b("span", null, u(t.message.attachmentName), 1),
88
88
  h(y)
89
89
  ])) : o("", !0)
90
90
  ])
@@ -1,4 +1,4 @@
1
- import { _ as o, c as a, o as r, a as s } from "./_plugin-vue_export-helper-BaC4eJh4.js";
1
+ import { _ as o, c as a, o as r, a as s } from "./_plugin-vue_export-helper-D0N_62VD.js";
2
2
  const n = ".loader{width:8px;aspect-ratio:1;border-radius:50%;animation:l5 1s infinite linear alternate;transform:translate(100%)}.sr-only{border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}@keyframes l5{0%{box-shadow:13px 0 #000,-13px 0 #0002;background:#000}33%{box-shadow:13px 0 #000,-13px 0 #0002;background:#0002}66%{box-shadow:13px 0 #0002,-13px 0 #000;background:#0002}to{box-shadow:13px 0 #0002,-13px 0 #000;background:#000}}@media(prefers-reduced-motion:reduce){.loader{display:none}}", t = {}, d = {
3
3
  class: "loader",
4
4
  role: "alert"
@@ -1,5 +1,5 @@
1
- import { B as a } from "./ButtonTooltip.ce-CIo_7tm0.js";
2
- import { _ as o, c as l, o as i, a as s, d as c, e as n, K as d } from "./_plugin-vue_export-helper-BaC4eJh4.js";
1
+ import { B as a } from "./ButtonTooltip.ce-CtHo2Dwx.js";
2
+ import { _ as o, c as l, o as i, a as s, b as c, f as n, K as d } from "./_plugin-vue_export-helper-D0N_62VD.js";
3
3
  const C = {}, p = {
4
4
  xmlns: "http://www.w3.org/2000/svg",
5
5
  width: "16",
@@ -0,0 +1,219 @@
1
+ import { c as s, o as l, a as t, b as j, r as B, j as D, g as v, y as T, M as $, B as c, k as n, t as o, l as A, F as z, e as V, E as Z, H as E, _ as I } from "./_plugin-vue_export-helper-D0N_62VD.js";
2
+ import { u as N, i as S } from "./i18n-lite-t2jNOu0C.js";
3
+ import { r as q } from "./temporal.utils-7Uvm62ss.js";
4
+ const F = "data:image/svg+xml,%3csvg%20width='10'%20height='2'%20viewBox='0%200%2010%202'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='1'%20cy='1'%20r='1'%20fill='%23122647'/%3e%3ccircle%20cx='5'%20cy='1'%20r='1'%20fill='%23122647'/%3e%3ccircle%20cx='9'%20cy='1'%20r='1'%20fill='%23122647'/%3e%3c/svg%3e", P = "data:image/svg+xml,%3csvg%20width='18'%20height='16'%20viewBox='0%200%2018%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0.75%206.28086H11.95C18.35%206.28086%2018.35%2014.9722%2011.95%2014.9722M0.75%206.28086L6.35%200.75M0.75%206.28086L6.35%2011.8117'%20stroke='%23122647'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", U = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7.42885%202.85715L10.8574%206.28572L7.42885%209.71429'%20stroke='%23122647'%20stroke-width='1.14286'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M0.571569%2013.1429V10.8571C0.571569%209.64473%201.0532%208.48197%201.91051%207.62466C2.76782%206.76735%203.93058%206.28572%205.143%206.28572H10.8573M12.0001%202.85715L15.4287%206.28572L12.0001%209.71429'%20stroke='%23122647'%20stroke-width='1.14286'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", O = "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", R = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3.5%207.5H13.5C13.6326%207.5%2013.7598%207.55268%2013.8536%207.64645C13.9473%207.74021%2014%207.86739%2014%208C14%208.13261%2013.9473%208.25979%2013.8536%208.35355C13.7598%208.44732%2013.6326%208.5%2013.5%208.5H3.5C3.36739%208.5%203.24021%208.44732%203.14645%208.35355C3.05268%208.25979%203%208.13261%203%208C3%207.86739%203.05268%207.74021%203.14645%207.64645C3.24021%207.55268%203.36739%207.5%203.5%207.5Z'%20fill='black'/%3e%3cpath%20d='M3.70704%208.00002L7.85404%2012.146C7.94793%2012.2399%208.00067%2012.3672%208.00067%2012.5C8.00067%2012.6328%207.94793%2012.7601%207.85404%2012.854C7.76015%2012.9479%207.63281%2013.0007%207.50004%2013.0007C7.36726%2013.0007%207.23993%2012.9479%207.14604%2012.854L2.64604%208.35402C2.59948%208.30758%202.56253%208.2524%202.53733%208.19165C2.51212%208.13091%202.49915%208.06579%202.49915%208.00002C2.49915%207.93425%202.51212%207.86913%202.53733%207.80839C2.56253%207.74764%202.59948%207.69247%202.64604%207.64602L7.14604%203.14602C7.23993%203.05213%207.36726%202.99939%207.50004%202.99939C7.63281%202.99939%207.76015%203.05213%207.85404%203.14602C7.94793%203.23991%208.00067%203.36725%208.00067%203.50002C8.00067%203.6328%207.94793%203.76013%207.85404%203.85402L3.70704%208.00002Z'%20fill='black'/%3e%3c/svg%3e", G = {
5
+ width: "41",
6
+ height: "41",
7
+ viewBox: "0 0 41 41",
8
+ xmlns: "http://www.w3.org/2000/svg"
9
+ }, X = ["fill"], J = {
10
+ __name: "UserSVG.ce",
11
+ props: {
12
+ color: {
13
+ type: String,
14
+ default: "#2F80ED"
15
+ }
16
+ },
17
+ setup(a) {
18
+ return (h, f) => (l(), s("svg", G, [
19
+ f[0] || (f[0] = t("path", {
20
+ d: "M9 33.5484C9.02496 31.6445 9.79268 29.8271 11.1371 28.4893C12.4815 27.1515 14.2944 26.4009 16.1837 26.3999H24.8163C26.7056 26.4009 28.5185 27.1515 29.8629 28.4893C31.2073 29.8271 31.975 31.6445 32 33.5484C28.8446 36.4141 24.7476 38 20.5 38C16.2524 38 12.1554 36.4141 9 33.5484ZM26.9744 15.525C26.9744 16.8155 26.5947 18.077 25.8833 19.1501C25.1719 20.2231 24.1607 21.0594 22.9776 21.5533C21.7946 22.0471 20.4928 22.1763 19.2369 21.9246C17.981 21.6728 16.8274 21.0514 15.9219 20.1388C15.0164 19.2263 14.3998 18.0637 14.15 16.7979C13.9002 15.5322 14.0284 14.2203 14.5184 13.028C15.0085 11.8357 15.8383 10.8166 16.903 10.0997C17.9677 9.38268 19.2195 9 20.5 9C22.2171 9 23.8639 9.68745 25.0781 10.9111C26.2923 12.1348 26.9744 13.7944 26.9744 15.525Z",
21
+ fill: "white"
22
+ }, null, -1)),
23
+ t("path", {
24
+ d: "M36.2655 33.5758C38.3699 31.0459 39.8335 28.0469 40.5326 24.8323C41.2316 21.6177 41.1455 18.2822 40.2815 15.1079C39.4175 11.9336 37.8011 9.0139 35.569 6.59581C33.3368 4.17772 30.5547 2.33238 27.4578 1.21587C24.3609 0.0993725 21.0405 -0.255438 17.7774 0.181459C14.5142 0.618355 11.4044 1.83411 8.71099 3.72586C6.01756 5.61762 3.81975 8.12973 2.30349 11.0497C0.787232 13.9696 -0.00287585 17.2115 7.86538e-06 20.5011C0.00111445 25.2832 1.6877 29.9122 4.7638 33.5758L4.7345 33.6007C4.83707 33.7237 4.9543 33.8291 5.0598 33.9506C5.19168 34.1014 5.33382 34.2435 5.47009 34.3899C5.88039 34.835 6.3024 35.2625 6.74493 35.6637C6.87974 35.7866 7.01895 35.9008 7.15522 36.018C7.62413 36.4221 8.10623 36.8057 8.6059 37.1629C8.67038 37.2068 8.72899 37.264 8.79347 37.3093V37.2918C12.2254 39.7049 16.3196 41 20.5161 41C24.7127 41 28.8068 39.7049 32.2388 37.2918V37.3093C32.3033 37.264 32.3604 37.2068 32.4263 37.1629C32.9246 36.8042 33.4081 36.4221 33.877 36.018C34.0133 35.9008 34.1525 35.7852 34.2873 35.6637C34.7298 35.261 35.1519 34.835 35.5622 34.3899C35.6984 34.2435 35.8391 34.1014 35.9725 33.9506C36.0765 33.8291 36.1952 33.7237 36.2978 33.5992L36.2655 33.5758ZM20.5147 8.78808C21.8188 8.78808 23.0937 9.1745 24.1781 9.89846C25.2625 10.6224 26.1076 11.6514 26.6067 12.8553C27.1058 14.0592 27.2364 15.384 26.982 16.662C26.7275 17.9401 26.0995 19.1141 25.1773 20.0355C24.2551 20.9569 23.0802 21.5844 21.8011 21.8387C20.522 22.0929 19.1961 21.9624 17.9912 21.4637C16.7864 20.9651 15.7565 20.1206 15.032 19.0371C14.3074 17.9536 13.9207 16.6798 13.9207 15.3767C13.9207 13.6293 14.6154 11.9534 15.852 10.7178C17.0886 9.48224 18.7658 8.78808 20.5147 8.78808ZM8.80226 33.5758C8.82768 31.6534 9.60958 29.8182 10.9788 28.4674C12.348 27.1165 14.1945 26.3586 16.1187 26.3576H24.9107C26.8349 26.3586 28.6813 27.1165 30.0505 28.4674C31.4197 29.8182 32.2016 31.6534 32.2271 33.5758C29.0134 36.4694 24.8407 38.0708 20.5147 38.0708C16.1886 38.0708 12.016 36.4694 8.80226 33.5758Z",
25
+ fill: a.color
26
+ }, null, 8, X)
27
+ ]));
28
+ }
29
+ }, K = { class: "nav" }, Q = ["aria-disabled"], W = ["src"], Y = { class: "sr-only" }, aa = ["aria-disabled"], ta = ["src"], ea = { class: "sr-only-mobile" }, da = ["aria-disabled"], ia = ["src"], na = { class: "sr-only-mobile" }, oa = ["aria-disabled"], sa = ["src"], la = { class: "sr-only" }, ra = { key: 0 }, ca = ["aria-disabled", "onClick"], fa = { class: "header" }, va = ["aria-level"], ua = { class: "date" }, ma = { class: "expeditor" }, pa = ["aria-level"], ga = { class: "expeditor-mail" }, ha = { class: "recipient" }, ba = ["aria-label"], Ca = ["src"], xa = ["innerHTML"], wa = {
30
+ key: 0,
31
+ class: "previous-message"
32
+ }, ya = { class: "previous-message__header" }, ka = ["innerHTML"], Ma = /* @__PURE__ */ j({
33
+ __name: "PixMailMessage.ce",
34
+ props: {
35
+ titleLevel: { default: 2, type: Number },
36
+ actions: { type: Object },
37
+ mail: { type: Object }
38
+ },
39
+ emits: ["action"],
40
+ setup(a, { emit: h }) {
41
+ const f = h, { t: r } = N(), u = B(!1), w = D("content"), y = [
42
+ "reply",
43
+ "forward",
44
+ "delete",
45
+ "blockSender",
46
+ "markAsUnread",
47
+ "reportSpam"
48
+ ], b = v(
49
+ () => y.filter((e) => (a.actions?.menuActions?.[e] ?? a.actions?.[e]) !== "hidden").map((e) => ({
50
+ action: e,
51
+ disabled: (a.actions?.menuActions?.[e] ?? a.actions?.[e]) === "disabled"
52
+ }))
53
+ ), C = v(() => a.actions?.menu !== "disabled" && b.value.length > 0), k = v(() => C.value && u.value);
54
+ function x() {
55
+ w.value.querySelectorAll("a").forEach((d) => {
56
+ d.addEventListener("click", (i) => {
57
+ i.preventDefault();
58
+ });
59
+ });
60
+ }
61
+ T(() => {
62
+ x();
63
+ }), $(() => {
64
+ x();
65
+ });
66
+ function m(e = !u.value) {
67
+ C.value && (u.value = e);
68
+ }
69
+ function p(e) {
70
+ a.actions?.[e] !== "disabled" && f("action", e);
71
+ }
72
+ function M(e) {
73
+ (a.actions?.menuActions?.[e] ?? a.actions?.[e]) !== "disabled" && (f("action", e), m(!1));
74
+ }
75
+ function g(e, d) {
76
+ const i = q(e);
77
+ return new Intl.DateTimeFormat(S.language, d).format(i);
78
+ }
79
+ const L = v(() => g(a.mail.time, {
80
+ weekday: "short",
81
+ day: "numeric",
82
+ month: "numeric",
83
+ year: "2-digit",
84
+ hour: "2-digit",
85
+ minute: "2-digit"
86
+ })), _ = v(() => {
87
+ const e = g(a.mail.previousMail.time, {
88
+ weekday: "short",
89
+ day: "numeric",
90
+ month: "numeric",
91
+ year: "2-digit"
92
+ }), d = g(a.mail.previousMail.time, {
93
+ hour: "2-digit",
94
+ minute: "2-digit"
95
+ });
96
+ return r("pix-mail-message.previousHeader", {
97
+ name: a.mail.previousMail.sender.name,
98
+ time: d,
99
+ date: e
100
+ });
101
+ });
102
+ return (e, d) => (l(), s("div", {
103
+ class: "container",
104
+ onClick: d[5] || (d[5] = (i) => m(!1))
105
+ }, [
106
+ t("div", K, [
107
+ a.actions?.return !== "hidden" ? (l(), s("button", {
108
+ key: 0,
109
+ "aria-disabled": a.actions?.return === "disabled",
110
+ class: "back-button",
111
+ onClick: d[0] || (d[0] = (i) => p("return"))
112
+ }, [
113
+ t("img", {
114
+ src: n(R),
115
+ alt: ""
116
+ }, null, 8, W),
117
+ t("span", Y, o(n(r)("pix-mail-message.actions.return")), 1)
118
+ ], 8, Q)) : c("", !0),
119
+ d[6] || (d[6] = t("div", { class: "nav__spacer" }, null, -1)),
120
+ a.actions?.reply !== "hidden" ? (l(), s("button", {
121
+ key: 1,
122
+ "aria-disabled": a.actions?.reply === "disabled",
123
+ onClick: d[1] || (d[1] = (i) => p("reply"))
124
+ }, [
125
+ t("img", {
126
+ src: n(P),
127
+ alt: ""
128
+ }, null, 8, ta),
129
+ t("span", ea, o(n(r)("pix-mail-message.actions.reply")), 1)
130
+ ], 8, aa)) : c("", !0),
131
+ a.actions?.forward !== "hidden" ? (l(), s("button", {
132
+ key: 2,
133
+ "aria-disabled": a.actions?.forward === "disabled",
134
+ onClick: d[2] || (d[2] = (i) => p("forward"))
135
+ }, [
136
+ t("img", {
137
+ src: n(U),
138
+ alt: "",
139
+ class: "flip"
140
+ }, null, 8, ia),
141
+ t("span", na, o(n(r)("pix-mail-message.actions.forward")), 1)
142
+ ], 8, da)) : c("", !0),
143
+ a.actions?.menu !== "hidden" ? (l(), s("div", {
144
+ key: 3,
145
+ class: "menu",
146
+ onClick: d[4] || (d[4] = A(() => {
147
+ }, ["stop"]))
148
+ }, [
149
+ t("button", {
150
+ "aria-disabled": a.actions?.menu === "disabled",
151
+ onClick: d[3] || (d[3] = (i) => m())
152
+ }, [
153
+ t("img", {
154
+ src: n(F),
155
+ alt: ""
156
+ }, null, 8, sa),
157
+ t("span", la, o(n(r)("pix-mail-message.actions.menu")), 1)
158
+ ], 8, oa),
159
+ k.value ? (l(), s("ul", ra, [
160
+ (l(!0), s(z, null, V(b.value, ({ action: i, disabled: H }) => (l(), s("li", { key: i }, [
161
+ t("button", {
162
+ "aria-disabled": H,
163
+ onClick: (_a) => M(i)
164
+ }, [
165
+ t("span", null, o(n(r)(`pix-mail-message.actions.${i}`)), 1)
166
+ ], 8, ca)
167
+ ]))), 128))
168
+ ])) : c("", !0)
169
+ ])) : c("", !0)
170
+ ]),
171
+ t("div", fa, [
172
+ t("div", {
173
+ "aria-level": a.titleLevel,
174
+ role: "heading"
175
+ }, o(a.mail.subject), 9, va),
176
+ t("p", ua, o(L.value), 1)
177
+ ]),
178
+ t("div", ma, [
179
+ Z(J, {
180
+ color: a.mail.sender.avatarColor,
181
+ class: "avatar"
182
+ }, null, 8, ["color"]),
183
+ t("div", {
184
+ "aria-level": a.titleLevel + 1,
185
+ role: "heading"
186
+ }, [
187
+ E(o(a.mail.sender.name) + " ", 1),
188
+ t("span", ga, " <" + o(a.mail.sender.address) + ">", 1)
189
+ ], 8, pa),
190
+ t("div", ha, [
191
+ t("p", null, o(n(r)("pix-mail-message.toMe")), 1),
192
+ t("button", {
193
+ "aria-label": n(r)("pix-mail-message.details"),
194
+ "aria-disabled": "true"
195
+ }, [
196
+ t("img", {
197
+ src: n(O),
198
+ alt: ""
199
+ }, null, 8, Ca)
200
+ ], 8, ba)
201
+ ])
202
+ ]),
203
+ t("p", {
204
+ ref: "content",
205
+ class: "content",
206
+ innerHTML: a.mail.body
207
+ }, null, 8, xa),
208
+ a.mail.previousMail ? (l(), s("div", wa, [
209
+ t("p", ya, o(_.value), 1),
210
+ t("blockquote", {
211
+ innerHTML: a.mail.previousMail.body
212
+ }, null, 8, ka)
213
+ ])) : c("", !0)
214
+ ]));
215
+ }
216
+ }), La = "html[data-v-66f6757d],body[data-v-66f6757d],div[data-v-66f6757d],span[data-v-66f6757d],applet[data-v-66f6757d],object[data-v-66f6757d],iframe[data-v-66f6757d],h1[data-v-66f6757d],h2[data-v-66f6757d],h3[data-v-66f6757d],h4[data-v-66f6757d],h5[data-v-66f6757d],h6[data-v-66f6757d],p[data-v-66f6757d],blockquote[data-v-66f6757d],pre[data-v-66f6757d],a[data-v-66f6757d],abbr[data-v-66f6757d],acronym[data-v-66f6757d],address[data-v-66f6757d],big[data-v-66f6757d],cite[data-v-66f6757d],code[data-v-66f6757d],del[data-v-66f6757d],dfn[data-v-66f6757d],em[data-v-66f6757d],img[data-v-66f6757d],ins[data-v-66f6757d],kbd[data-v-66f6757d],q[data-v-66f6757d],s[data-v-66f6757d],samp[data-v-66f6757d],small[data-v-66f6757d],strike[data-v-66f6757d],strong[data-v-66f6757d],sub[data-v-66f6757d],sup[data-v-66f6757d],tt[data-v-66f6757d],var[data-v-66f6757d],b[data-v-66f6757d],u[data-v-66f6757d],i[data-v-66f6757d],center[data-v-66f6757d],dl[data-v-66f6757d],dt[data-v-66f6757d],dd[data-v-66f6757d],ol[data-v-66f6757d],ul[data-v-66f6757d],li[data-v-66f6757d],fieldset[data-v-66f6757d],form[data-v-66f6757d],label[data-v-66f6757d],legend[data-v-66f6757d],table[data-v-66f6757d],caption[data-v-66f6757d],tbody[data-v-66f6757d],tfoot[data-v-66f6757d],thead[data-v-66f6757d],tr[data-v-66f6757d],th[data-v-66f6757d],td[data-v-66f6757d],article[data-v-66f6757d],aside[data-v-66f6757d],canvas[data-v-66f6757d],details[data-v-66f6757d],embed[data-v-66f6757d],figure[data-v-66f6757d],figcaption[data-v-66f6757d],footer[data-v-66f6757d],header[data-v-66f6757d],hgroup[data-v-66f6757d],menu[data-v-66f6757d],nav[data-v-66f6757d],output[data-v-66f6757d],ruby[data-v-66f6757d],section[data-v-66f6757d],summary[data-v-66f6757d],time[data-v-66f6757d],mark[data-v-66f6757d],audio[data-v-66f6757d],video[data-v-66f6757d]{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article[data-v-66f6757d],aside[data-v-66f6757d],details[data-v-66f6757d],figcaption[data-v-66f6757d],figure[data-v-66f6757d],footer[data-v-66f6757d],header[data-v-66f6757d],hgroup[data-v-66f6757d],menu[data-v-66f6757d],nav[data-v-66f6757d],section[data-v-66f6757d]{display:block}body[data-v-66f6757d]{line-height:1}ol[data-v-66f6757d],ul[data-v-66f6757d]{list-style:none}table[data-v-66f6757d]{border-collapse:collapse;border-spacing:0}button[data-v-66f6757d],p[data-v-66f6757d],div[role=heading][data-v-66f6757d]{font-family:Roboto,sans-serif;color:#253858}.container[data-v-66f6757d]{background-color:#f4f5f7;border-radius:8px;border:1px solid #cdd1d9;display:flex;flex-direction:column;gap:12px;padding:16px}.nav[data-v-66f6757d]{display:flex;gap:8px;justify-content:end;align-items:stretch}.nav button[data-v-66f6757d]{display:flex;gap:8px;align-items:center;cursor:pointer;padding:4px 8px;border:1px solid #cdd1d9;background:#fff;border-radius:8px;color:#122647;font-size:.875rem;font-weight:700}.nav button[aria-disabled=true][data-v-66f6757d]{cursor:not-allowed;background:#eae9e9}.nav button[aria-disabled=false][data-v-66f6757d]:hover{background-color:#cdd1d9}.nav .back-button[data-v-66f6757d]{border:none;background:transparent}.nav__spacer[data-v-66f6757d]{flex:1}.flip-h[data-v-66f6757d]{transform:scaleX(-1)}.menu[data-v-66f6757d]{position:relative;white-space:nowrap}.menu>button[data-v-66f6757d]{height:100%}.menu>ul[data-v-66f6757d]{position:absolute;top:calc(100% + 8px);right:0;display:flex;flex-direction:column}.menu>ul button[data-v-66f6757d]{font-weight:400;padding:4px 8px;width:100%}.menu>ul>li:first-child>button[data-v-66f6757d]{padding-top:8px}.menu>ul>li:last-child>button[data-v-66f6757d]{padding-bottom:8px}.menu>ul>li:not(:first-child)>button[data-v-66f6757d]{border-top-style:none;border-top-left-radius:0;border-top-right-radius:0}.menu>ul>li:not(:last-child)>button[data-v-66f6757d]{border-bottom-style:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.header[data-v-66f6757d]{display:flex;justify-content:space-between}.header div[role][data-v-66f6757d]{font-family:open-sans,sans-serif;font-size:1.125rem}.header .date[data-v-66f6757d]{color:#5e6c84;font-size:.75rem}.expeditor[data-v-66f6757d]{display:grid;column-gap:4px;width:fit-content;grid-template-columns:repeat(2,auto);grid-template-rows:repeat(2,auto)}.expeditor div[role][data-v-66f6757d]{font-weight:700}.expeditor-mail[data-v-66f6757d],.expeditor .recipient p[data-v-66f6757d]{align-self:end;font-size:.75rem;color:#5e6c84;font-weight:400;word-break:break-word}.expeditor .recipient[data-v-66f6757d]{display:flex}.expeditor .recipient button[data-v-66f6757d]{border:none;background:transparent;display:flex;align-items:center;cursor:not-allowed}.expeditor .avatar[data-v-66f6757d]{grid-row:1/span 2;margin-right:12px}.content[data-v-66f6757d]{color:#122647;font-size:.875rem}.previous-message[data-v-66f6757d]{font-size:.875rem;margin-top:12px}.previous-message__header[data-v-66f6757d]{font-style:italic;font-size:.875rem;color:#5e6c84;margin-bottom:8px}.previous-message blockquote[data-v-66f6757d]{border-left:1px solid #cdd1d9;margin-left:8px;padding-left:8px}.sr-only[data-v-66f6757d]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);border:0}@media screen and (max-width:576px){.sr-only-mobile[data-v-66f6757d]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);border:0}.date[data-v-66f6757d]{display:none}}", Da = /* @__PURE__ */ I(Ma, [["styles", [La]], ["__scopeId", "data-v-66f6757d"]]);
217
+ export {
218
+ Da as P
219
+ };
@@ -0,0 +1,197 @@
1
+ import { B as M } from "./Button.ce-CTKrSDrC.js";
2
+ import { _, r as B, j as k, g as z, L as N, y as H, x as q, c as u, B as c, o as s, a as r, q as j, b as I, M as D, F as K, E as U, K as F, f as Y, t as m, s as G, H as J } from "./_plugin-vue_export-helper-D0N_62VD.js";
3
+ const O = ".sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}", Q = ["tabindex"], W = ["tabindex"], X = {
4
+ __name: "FocusManager.ce",
5
+ props: {
6
+ isVisible: {
7
+ type: Boolean,
8
+ default: !1
9
+ },
10
+ autoFocus: {
11
+ type: Boolean,
12
+ default: !0
13
+ },
14
+ loop: {
15
+ type: Boolean,
16
+ default: !0
17
+ },
18
+ rootElement: {
19
+ type: ShadowRoot,
20
+ required: !0
21
+ }
22
+ },
23
+ setup(t) {
24
+ const d = [
25
+ ...["input", "select", "button", "textarea"].map((e) => `${e}:not([disabled])`),
26
+ "a[href]",
27
+ "video[controls]",
28
+ "audio[controls]",
29
+ '[tabindex]:not([tabindex^="-"])',
30
+ '[contenteditable]:not([contenteditable="false"])'
31
+ ].join(",");
32
+ let a = [], i = [];
33
+ const l = B(!1), f = B(), h = k("vueFocusLoopContainer"), n = t, x = z(() => n.isVisible ? 0 : -1);
34
+ N(() => n.isVisible, () => {
35
+ g();
36
+ }), H(() => {
37
+ g();
38
+ });
39
+ function g() {
40
+ A(n.isVisible), q(() => {
41
+ const e = n.isVisible;
42
+ $(e && n.autoFocus), V(e);
43
+ });
44
+ }
45
+ function A(e) {
46
+ !e && window.vflPrevFocusedElement ? window.vflPrevFocusedElement.focus() : n.rootElement instanceof ShadowRoot ? window.vflPrevFocusedElement = n.rootElement.activeElement : window.vflPrevFocusedElement = document.activeElement;
47
+ }
48
+ function S() {
49
+ a = [], i = [];
50
+ }
51
+ function P() {
52
+ v(n.rootElement);
53
+ }
54
+ function v(e) {
55
+ let o = !0;
56
+ i.push(e);
57
+ const E = Array.from(e.children);
58
+ return E.length !== 0 && E.forEach((w) => {
59
+ w !== h.value && v(w) || (o = !1);
60
+ }), o && e.getAttribute("aria-hidden") !== "true" && a.push(e), o;
61
+ }
62
+ function V(e) {
63
+ e ? (P(), T()) : (C(), S());
64
+ }
65
+ function T() {
66
+ y("true"), i.filter(p).forEach((e) => {
67
+ e.hasAttribute("tabindex") && e.setAttribute("old-tabindex", e.getAttribute("tabindex")), e.setAttribute("tabindex", "-1");
68
+ });
69
+ }
70
+ function C() {
71
+ y("false"), i.filter(p).forEach((e) => {
72
+ e.hasAttribute("old-tabindex") ? (e.setAttribute("tabindex", e.getAttribute("old-tabindex")), e.removeAttribute("old-tabindex")) : e.removeAttribute("tabindex");
73
+ });
74
+ }
75
+ function p(e) {
76
+ return !(["SCRIPT", "STYLE", "#document-fragment"].includes(e.nodeName) || e.hasAttribute("aria-live"));
77
+ }
78
+ function y(e) {
79
+ a.filter(p).forEach((o) => {
80
+ o.setAttribute("aria-hidden", e);
81
+ });
82
+ }
83
+ function $(e) {
84
+ if (e) {
85
+ const o = b();
86
+ o.length && setTimeout(() => o[0].focus(), 200);
87
+ }
88
+ }
89
+ function b() {
90
+ const e = f.value.querySelectorAll(d);
91
+ return e && e.length ? e : [];
92
+ }
93
+ function L() {
94
+ const e = b();
95
+ if (e.length) {
96
+ const o = l.value ? e.length - 1 : 0;
97
+ l.value = !0, e[o].focus();
98
+ }
99
+ }
100
+ function R() {
101
+ const e = b();
102
+ e.length > 0 && e[0].focus();
103
+ }
104
+ return (e, o) => t.isVisible ? (s(), u("div", {
105
+ key: 0,
106
+ ref_key: "vueFocusLoopContainer",
107
+ ref: h,
108
+ class: "vue-focus-loop"
109
+ }, [
110
+ t.loop ? (s(), u("div", {
111
+ key: 0,
112
+ tabindex: x.value,
113
+ "aria-hidden": "true",
114
+ class: "sr-only",
115
+ onFocus: L
116
+ }, null, 40, Q)) : c("", !0),
117
+ r("div", {
118
+ ref_key: "focusLoop",
119
+ ref: f
120
+ }, [
121
+ j(e.$slots, "default")
122
+ ], 512),
123
+ t.loop ? (s(), u("div", {
124
+ key: 1,
125
+ tabindex: x.value,
126
+ class: "sr-only",
127
+ "aria-hidden": "true",
128
+ onFocus: R
129
+ }, null, 40, W)) : c("", !0)
130
+ ], 512)) : c("", !0);
131
+ }
132
+ }, Z = /* @__PURE__ */ _(X, [["styles", [O]]]), ee = {
133
+ key: 0,
134
+ class: "overlay"
135
+ }, te = ["aria-label"], oe = { class: "pop-in__header" }, ne = { class: "pop-in__title" }, ie = {
136
+ id: "content",
137
+ class: "pop-in__content"
138
+ }, se = /* @__PURE__ */ I({
139
+ __name: "Popin.ce",
140
+ props: {
141
+ title: { type: String },
142
+ content: { type: String },
143
+ textButton: { type: String },
144
+ buttonPosition: { default: "right", type: String },
145
+ show: { type: Boolean },
146
+ rootElement: { type: null }
147
+ },
148
+ emits: ["primaryAction"],
149
+ setup(t) {
150
+ const d = k("pop-in"), a = {
151
+ left: "start",
152
+ center: "center",
153
+ right: "end"
154
+ };
155
+ return D(() => {
156
+ !t.textButton && t.show && d.value?.focus();
157
+ }), (i, l) => (s(), u(K, null, [
158
+ t.show ? (s(), u("div", ee)) : c("", !0),
159
+ U(Z, {
160
+ "is-visible": t.show,
161
+ "root-element": t.rootElement,
162
+ loop: !!t.textButton
163
+ }, {
164
+ default: F(() => [
165
+ r("div", {
166
+ ref: "pop-in",
167
+ role: "dialog",
168
+ class: "pop-in",
169
+ "aria-label": t.title,
170
+ "aria-describedBy": "content",
171
+ tabindex: "-1"
172
+ }, [
173
+ r("div", oe, [
174
+ r("h1", ne, m(t.title), 1),
175
+ r("p", ie, m(t.content), 1)
176
+ ]),
177
+ t.textButton ? (s(), Y(M, {
178
+ key: 0,
179
+ onClick: l[0] || (l[0] = (f) => i.$emit("primaryAction")),
180
+ class: "pop-in__button",
181
+ style: G({ "--button-position": a[t.buttonPosition] })
182
+ }, {
183
+ default: F(() => [
184
+ J(m(t.textButton), 1)
185
+ ]),
186
+ _: 1
187
+ }, 8, ["style"])) : c("", !0)
188
+ ], 8, te)
189
+ ]),
190
+ _: 1
191
+ }, 8, ["is-visible", "root-element", "loop"])
192
+ ], 64));
193
+ }
194
+ }), ae = ".overlay{position:absolute;border-radius:8px;z-index:200;inset:0;background-color:#25385859}.pop-in{display:flex;flex-direction:column;width:min(560px,95%);gap:16px;padding-bottom:24px;position:absolute;z-index:300;border-radius:16px;top:40%;left:50%;transform:translate(-50%,-50%);background-color:#fff;box-shadow:0 2px 5px #4a3aff40,0 -2px 5px #4a3aff26 inset,0 1px 1px #ffffff1a inset,0 3px 4px #dfeeff1a inset}.pop-in__header{padding:24px;border-radius:16px 16px 0 0;background:linear-gradient(180deg,#613fdd33,#613fdd1a 40%,#fff)}.pop-in__title{font-weight:700;font-size:1.25rem}.pop-in__content{font-family:Roboto,sans-serif;font-size:.875rem}.pop-in__button{font-weight:700;align-self:var(--button-position);margin-right:24px;font-family:Roboto,sans-serif}", ue = /* @__PURE__ */ _(se, [["styles", [ae]]]);
195
+ export {
196
+ ue as P
197
+ };
@@ -1,4 +1,4 @@
1
- import { _ as e, c as t, o as r, a as o } from "./_plugin-vue_export-helper-BaC4eJh4.js";
1
+ import { _ as e, c as t, o as r, a as o } from "./_plugin-vue_export-helper-D0N_62VD.js";
2
2
  const s = {}, n = {
3
3
  width: "20",
4
4
  height: "20",
@@ -0,0 +1,27 @@
1
+ import { b as i, g as o, c as d, o as c, a as e, s as l, t as p, _ as u } from "./_plugin-vue_export-helper-D0N_62VD.js";
2
+ const h = { class: "steps-wrapper" }, _ = { class: "steps-wrapper__stepper" }, f = { "aria-hidden": "true" }, w = {
3
+ class: "sr-only",
4
+ "aria-live": "polite"
5
+ }, g = /* @__PURE__ */ i({
6
+ __name: "Stepper.ce",
7
+ props: {
8
+ step: { type: Number },
9
+ stepsCount: { type: Number }
10
+ },
11
+ setup(t) {
12
+ const r = t, s = o(() => r.step + 1), a = o(() => Math.floor(s.value / r.stepsCount * 100));
13
+ return (n, x) => (c(), d("div", h, [
14
+ e("div", _, [
15
+ e("div", {
16
+ class: "steps-wrapper__effective-steps",
17
+ style: l({ "--stepIndex": `${a.value}%` })
18
+ }, null, 4)
19
+ ]),
20
+ e("p", f, p(s.value) + "/" + p(t.stepsCount), 1),
21
+ e("p", w, p(n.$t("stepper.step", { step: s.value, stepsCount: t.stepsCount })), 1)
22
+ ]));
23
+ }
24
+ }), m = ".steps-wrapper{display:flex;align-items:center;justify-content:center;color:#613fdd;font-size:.875rem;gap:6px;font-weight:500;width:100%}.steps-wrapper p{text-wrap:nowrap;margin:0}.steps-wrapper__stepper{background:#e8eaed;height:8px;width:100%;border-radius:4px}.steps-wrapper__effective-steps{width:var(--stepIndex);background:#613fdd;border-radius:4px;height:8px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);border:0}", y = /* @__PURE__ */ u(g, [["styles", [m]]]);
25
+ export {
26
+ y as S
27
+ };