@1024pix/epreuves-components 4.0.1 → 4.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/dist/{Button.ce-CTKrSDrC.js → Button.ce-CIdOR7Ut.js} +2 -2
  2. package/dist/{ButtonTooltip.ce-CtHo2Dwx.js → ButtonTooltip.ce-DcDedpxX.js} +8 -8
  3. package/dist/{Cross.ce.vue_vue_type_script_setup_true_lang-CVBFTfq5.js → Cross.ce.vue_vue_type_script_setup_true_lang-BZa1HfxH.js} +4 -4
  4. package/dist/FocusManager.ce-B9q14nBB.js +131 -0
  5. package/dist/{LLMMessage.ce-Bdmf0R1g.js → LLMMessage.ce-m7gAgj3M.js} +11 -11
  6. package/dist/{Loading.ce-Bh7-h48F.js → Loading.ce-Diq78Qvm.js} +2 -2
  7. package/dist/{NavigationButton.ce-CA1M8sgV.js → NavigationButton.ce-CgVczgG8.js} +2 -2
  8. package/dist/PixMailMessage.ce-CI8R0PnN.js +261 -0
  9. package/dist/Popin.ce-BczgRCZ5.js +67 -0
  10. package/dist/{Retry-BZf7NJz9.js → Retry-vIN7ZGdK.js} +2 -2
  11. package/dist/{Stepper.ce-B1yDelzC.js → Stepper.ce-DwjG4jda.js} +4 -4
  12. package/dist/{_plugin-vue_export-helper-D0N_62VD.js → _plugin-vue_export-helper-VRfPs3B6.js} +1643 -1611
  13. package/dist/components/analyse-mails-phishing.ce.js.js +14 -14
  14. package/dist/components/calcul-impact.ce.js.js +20 -20
  15. package/dist/components/capacity-calculation.ce.js.js +22 -22
  16. package/dist/components/clickable-image.ce.js.js +30 -30
  17. package/dist/components/complete-phrase.ce.js.js +18 -18
  18. package/dist/components/flip-cards.ce.js.js +10 -10
  19. package/dist/components/image-quiz.ce.js.js +3 -3
  20. package/dist/components/image-quizzes.ce.js.js +3 -3
  21. package/dist/components/llm-compare-messages.ce.js.js +7 -7
  22. package/dist/components/llm-messages.ce.js.js +7 -7
  23. package/dist/components/llm-prompt-select.ce.js.js +5 -5
  24. package/dist/components/mdp-classement.ce.js.js +29 -29
  25. package/dist/components/message-conversation.ce.js.js +34 -34
  26. package/dist/components/mobile-shell.ce.js.js +8 -8
  27. package/dist/components/phishing-message.ce.js.js +128 -128
  28. package/dist/components/phishing-notification.ce.js.js +30 -30
  29. package/dist/components/pix-anonymisation.ce.js.js +27 -27
  30. package/dist/components/pix-article.ce.js.js +5 -5
  31. package/dist/components/pix-carousel.ce.js.js +38 -38
  32. package/dist/components/pix-combinaisons.ce.js.js +75 -74
  33. package/dist/components/pix-cursor.ce.js.js +26 -26
  34. package/dist/components/pix-mail-message.ce.js.js +3 -3
  35. package/dist/components/proteger-mail-spam.ce.js.js +55 -53
  36. package/dist/components/qcm-deepfake.ce.js.js +16 -16
  37. package/dist/components/quiz-stepper.ce.js.js +21 -21
  38. package/dist/components/select-conversation.ce.js.js +11 -11
  39. package/dist/components/template-mail.ce.js.js +4 -4
  40. package/dist/components/test-top-mdp.ce.js.js +24 -24
  41. package/dist/components/trouver-mdp-rs.ce.js.js +311 -409
  42. package/dist/{i18n-ekiZvzf6.js → i18n-C-9bWDxP.js} +270 -268
  43. package/dist/{i18n-lite-t2jNOu0C.js → i18n-lite-CZIis7T7.js} +1 -1
  44. package/dist/{image-quiz.ce-DqalWHKw.js → image-quiz.ce-COX8VOUE.js} +9 -9
  45. package/dist/{index-BpqxFmwz.js → index-DgWpXIzq.js} +1 -1
  46. package/dist/index.js +1 -1
  47. package/dist/shadow-dom-5ECgVh4w.js +14 -0
  48. package/dist/{temporal.utils-7Uvm62ss.js → temporal.utils-DgmGPVba.js} +537 -536
  49. package/package.json +1 -1
  50. package/dist/PixMailMessage.ce-XPDbJiyC.js +0 -219
  51. package/dist/Popin.ce-DUQ7-GMT.js +0 -197
  52. package/dist/shadow-dom-C3AZuSZe.js +0 -9
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1024pix/epreuves-components",
3
- "version": "4.0.1",
3
+ "version": "4.0.2",
4
4
  "type": "module",
5
5
  "description": "A collection of interactive components to be used in Pix challenges or modules",
6
6
  "exports": {
@@ -1,219 +0,0 @@
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
- };
@@ -1,197 +0,0 @@
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,9 +0,0 @@
1
- import { u as t, p as s } from "./_plugin-vue_export-helper-D0N_62VD.js";
2
- const a = /* @__PURE__ */ Symbol("shadowRoot");
3
- function r() {
4
- const o = t();
5
- o != null && s(a, o);
6
- }
7
- export {
8
- r as p
9
- };