@1024pix/epreuves-components 4.2.0 → 4.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Button.ce-Dvxeebpx.js +31 -0
- package/dist/{ButtonTooltip.ce-BnJlaEqx.js → ButtonTooltip.ce-WwOarMJq.js} +1 -1
- package/dist/Cross.ce.vue_vue_type_script_setup_true_lang-DVLRq2sO.js +53 -0
- package/dist/Feedback.ce-CnZRBGWf.js +26 -0
- package/dist/{FocusManager.ce-DHXwg6WZ.js → FocusManager.ce-Cv3wYF9s.js} +2 -2
- package/dist/{LLMMessage.ce-jLEqjxsl.js → LLMMessage.ce-B7EwoHy2.js} +4 -4
- package/dist/{Loading.ce-DDtlSLlu.js → Loading.ce-Dv2gEjXm.js} +1 -1
- package/dist/{NavigationButton.ce-BnnVUwGr.js → NavigationButton.ce-D8_YC96l.js} +2 -2
- package/dist/{PixMailMessage.ce-oCccQFGV.js → PixMailMessage.ce-TnjyOfiH.js} +141 -137
- package/dist/{Popin.ce-Co12R3C8.js → Popin.ce-BPnBZykQ.js} +3 -3
- package/dist/{Retry-C7C78Wpj.js → Retry-C3g7zhz8.js} +1 -1
- package/dist/{Stepper.ce-Dttf3Dsf.js → Stepper.ce-DEMN02yr.js} +1 -1
- package/dist/{_plugin-vue_export-helper-B-lVMTio.js → _plugin-vue_export-helper-Dz58mCLm.js} +4 -4
- package/dist/components/analyse-mails-phishing.ce.js.js +9 -8
- package/dist/components/button.ce.js.js +4 -0
- package/dist/components/calcul-impact.ce.js.js +8 -8
- package/dist/components/capacity-calculation.ce.js.js +124 -137
- package/dist/components/clickable-image.ce.js.js +1 -1
- package/dist/components/complete-phrase.ce.js.js +12 -12
- package/dist/components/feedback.ce.js.js +4 -0
- package/dist/components/flip-cards.ce.js.js +7 -7
- package/dist/components/image-quiz.ce.js.js +3 -3
- package/dist/components/image-quizzes.ce.js.js +3 -3
- package/dist/components/llm-compare-messages.ce.js.js +3 -3
- package/dist/components/llm-messages.ce.js.js +3 -3
- package/dist/components/llm-prompt-select.ce.js.js +6 -6
- package/dist/components/mdp-classement.ce.js.js +20 -19
- package/dist/components/message-conversation.ce.js.js +10 -10
- package/dist/components/mobile-shell.ce.js.js +1 -1
- package/dist/components/notification-antivirus.ce.js.js +343 -0
- package/dist/components/phishing-message.ce.js.js +60 -61
- package/dist/components/phishing-notification.ce.js.js +4 -4
- package/dist/components/pix-anonymisation.ce.js.js +63 -64
- package/dist/components/pix-article.ce.js.js +2 -2
- package/dist/components/pix-carousel.ce.js.js +4 -4
- package/dist/components/pix-combinaisons.ce.js.js +96 -96
- package/dist/components/pix-cursor.ce.js.js +10 -10
- package/dist/components/pix-mail-message.ce.js.js +3 -3
- package/dist/components/proteger-mail-spam.ce.js.js +15 -14
- package/dist/components/qcm-deepfake.ce.js.js +41 -41
- package/dist/components/quiz-stepper.ce.js.js +30 -29
- package/dist/components/select-conversation.ce.js.js +6 -6
- package/dist/components/template-mail.ce.js.js +3 -3
- package/dist/components/test-top-mdp.ce.js.js +11 -12
- package/dist/components/trouver-mdp-rs.ce.js.js +97 -96
- package/dist/components/usages-donnees.ce.js.js +183 -0
- package/dist/{i18n-CsT7k7zW.js → i18n-H4HokXDX.js} +1 -1
- package/dist/{i18n-lite-BIJ2LVs6.js → i18n-lite-CzqISEWm.js} +1 -1
- package/dist/{image-quiz.ce-B4NDetit.js → image-quiz.ce-C-iI27gD.js} +2 -2
- package/dist/{index-BaI3Qosp.js → index-BUPiE5WR.js} +1 -1
- package/dist/index.js +3 -1
- package/dist/metadata.js +32 -24
- package/dist/props.examples.js +95 -90
- package/dist/schema.js +49 -38
- package/dist/{shadow-dom-Bouq869n.js → shadow-dom-D54WF-WZ.js} +1 -1
- package/package.json +1 -1
- package/dist/Button.ce-DZ8jDtW5.js +0 -27
- package/dist/Cross.ce.vue_vue_type_script_setup_true_lang-l4hAa4eW.js +0 -75
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { u as
|
|
2
|
-
import { r as
|
|
3
|
-
import { p as
|
|
4
|
-
import { b as k, k as _, G as
|
|
5
|
-
import { F as P } from "./FocusManager.ce-
|
|
1
|
+
import { u as A, i as D } from "./i18n-lite-CzqISEWm.js";
|
|
2
|
+
import { r as T } from "./temporal.utils-DgmGPVba.js";
|
|
3
|
+
import { p as j } from "./shadow-dom-D54WF-WZ.js";
|
|
4
|
+
import { b as k, k as _, G as z, o, c as s, a, y, q as M, D as L, E as $, F as E, e as S, N as I, x as d, r as N, _ as B, h as V, C as Z, v as m, l as f, f as q, B as F, g as C } from "./_plugin-vue_export-helper-Dz58mCLm.js";
|
|
5
|
+
import { F as P } from "./FocusManager.ce-Cv3wYF9s.js";
|
|
6
6
|
const R = "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", U = "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", O = "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", G = "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", K = "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", X = { class: "popup-menu" }, J = ["aria-expanded", "aria-disabled"], Q = { class: "popup-menu__list" }, W = ["aria-disabled", "onClick"], Y = /* @__PURE__ */ k({
|
|
7
7
|
__name: "PopupMenu.ce",
|
|
8
8
|
props: {
|
|
@@ -10,47 +10,47 @@ const R = "data:image/svg+xml,%3csvg%20width='10'%20height='2'%20viewBox='0%200%
|
|
|
10
10
|
disabled: { type: Boolean }
|
|
11
11
|
},
|
|
12
12
|
emits: ["select"],
|
|
13
|
-
setup(
|
|
14
|
-
const
|
|
15
|
-
function
|
|
16
|
-
|
|
13
|
+
setup(e, { emit: g }) {
|
|
14
|
+
const c = g, l = N(!1);
|
|
15
|
+
function b() {
|
|
16
|
+
e.disabled || (l.value = !l.value);
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function u() {
|
|
19
19
|
l.value = !1;
|
|
20
20
|
}
|
|
21
|
-
function x(
|
|
22
|
-
|
|
21
|
+
function x(r, h) {
|
|
22
|
+
h || (u(), c("select", r));
|
|
23
23
|
}
|
|
24
|
-
function
|
|
25
|
-
|
|
24
|
+
function p() {
|
|
25
|
+
u();
|
|
26
26
|
}
|
|
27
27
|
return _(() => {
|
|
28
|
-
document.addEventListener("click",
|
|
29
|
-
}),
|
|
30
|
-
document.removeEventListener("click",
|
|
31
|
-
}), (
|
|
32
|
-
|
|
28
|
+
document.addEventListener("click", p);
|
|
29
|
+
}), z(() => {
|
|
30
|
+
document.removeEventListener("click", p);
|
|
31
|
+
}), (r, h) => (o(), s("div", X, [
|
|
32
|
+
a("button", {
|
|
33
33
|
class: "popup-menu__button",
|
|
34
34
|
"aria-expanded": l.value,
|
|
35
35
|
"aria-haspopup": "menu",
|
|
36
|
-
"aria-disabled": !!
|
|
37
|
-
onClick: y(
|
|
36
|
+
"aria-disabled": !!e.disabled,
|
|
37
|
+
onClick: y(b, ["stop"])
|
|
38
38
|
}, [
|
|
39
|
-
|
|
39
|
+
M(r.$slots, "default", {}, void 0, !0)
|
|
40
40
|
], 8, J),
|
|
41
|
-
|
|
42
|
-
default:
|
|
43
|
-
|
|
44
|
-
(o(!0),
|
|
41
|
+
L(P, { "is-visible": l.value }, {
|
|
42
|
+
default: $(() => [
|
|
43
|
+
a("ul", Q, [
|
|
44
|
+
(o(!0), s(E, null, S(e.actions, (n) => (o(), s("li", {
|
|
45
45
|
class: "list-item",
|
|
46
|
-
key:
|
|
46
|
+
key: n.name
|
|
47
47
|
}, [
|
|
48
|
-
|
|
48
|
+
a("button", {
|
|
49
49
|
class: "list-item__button",
|
|
50
|
-
"aria-disabled":
|
|
51
|
-
onClick: y((w) => x(
|
|
52
|
-
onKeyup:
|
|
53
|
-
}, d(
|
|
50
|
+
"aria-disabled": n.disabled,
|
|
51
|
+
onClick: y((w) => x(n.name, n.disabled), ["stop"]),
|
|
52
|
+
onKeyup: I(u, ["esc"])
|
|
53
|
+
}, d(n.label), 41, W)
|
|
54
54
|
]))), 128))
|
|
55
55
|
])
|
|
56
56
|
]),
|
|
@@ -58,12 +58,12 @@ const R = "data:image/svg+xml,%3csvg%20width='10'%20height='2'%20viewBox='0%200%
|
|
|
58
58
|
}, 8, ["is-visible"])
|
|
59
59
|
]));
|
|
60
60
|
}
|
|
61
|
-
}),
|
|
61
|
+
}), ee = ".popup-menu[data-v-af96d1f1]{position:relative}.popup-menu__button[data-v-af96d1f1]{display:flex;align-items:center;cursor:pointer;height:100%;padding:4px 8px;border:1px solid #cdd1d9;background:#fff;border-radius:8px}.popup-menu__button[aria-disabled=true][data-v-af96d1f1]{cursor:not-allowed;background:#eae9e9}.popup-menu__button[aria-disabled=false][data-v-af96d1f1]:hover{background-color:#cdd1d9}.popup-menu__list[data-v-af96d1f1]{position:absolute;top:calc(100% + 8px);right:0;padding:0;margin:0;border-radius:8px;border:1px solid #cdd1d9}.popup-menu .list-item[data-v-af96d1f1]{list-style-type:none}.popup-menu .list-item:first-child .list-item__button[data-v-af96d1f1]{border-radius:8px 8px 0 0;padding-top:8px}.popup-menu .list-item:last-child .list-item__button[data-v-af96d1f1]{border-radius:0 0 8px 8px;padding-bottom:8px}.popup-menu .list-item__button[data-v-af96d1f1]{display:block;padding:4px 8px;color:#122647;width:100%;border:none;background-color:#fff;cursor:pointer;text-wrap:nowrap;text-align:left;font-family:Roboto,sans-serif;font-size:.875rem}.popup-menu .list-item__button[aria-disabled=true][data-v-af96d1f1]{cursor:not-allowed;background:#eae9e9}.popup-menu .list-item__button[aria-disabled=false][data-v-af96d1f1]:hover{background-color:#cdd1d9}", ae = /* @__PURE__ */ B(Y, [["styles", [ee]], ["__scopeId", "data-v-af96d1f1"]]), te = {
|
|
62
62
|
width: "41",
|
|
63
63
|
height: "41",
|
|
64
64
|
viewBox: "0 0 41 41",
|
|
65
65
|
xmlns: "http://www.w3.org/2000/svg"
|
|
66
|
-
},
|
|
66
|
+
}, ie = ["fill"], de = {
|
|
67
67
|
__name: "UserSVG.ce",
|
|
68
68
|
props: {
|
|
69
69
|
color: {
|
|
@@ -71,33 +71,34 @@ const R = "data:image/svg+xml,%3csvg%20width='10'%20height='2'%20viewBox='0%200%
|
|
|
71
71
|
default: "#2F80ED"
|
|
72
72
|
}
|
|
73
73
|
},
|
|
74
|
-
setup(
|
|
75
|
-
return (
|
|
76
|
-
|
|
74
|
+
setup(e) {
|
|
75
|
+
return (g, c) => (o(), s("svg", te, [
|
|
76
|
+
c[0] || (c[0] = a("path", {
|
|
77
77
|
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",
|
|
78
78
|
fill: "white"
|
|
79
79
|
}, null, -1)),
|
|
80
|
-
|
|
80
|
+
a("path", {
|
|
81
81
|
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",
|
|
82
|
-
fill:
|
|
83
|
-
}, null, 8,
|
|
82
|
+
fill: e.color
|
|
83
|
+
}, null, 8, ie)
|
|
84
84
|
]));
|
|
85
85
|
}
|
|
86
|
-
},
|
|
86
|
+
}, oe = { class: "container" }, ne = { class: "nav" }, se = ["aria-disabled"], ce = ["src"], le = { class: "sr-only" }, re = ["aria-disabled"], ve = ["src"], ue = { class: "sr-only-mobile" }, pe = ["aria-disabled"], me = ["src"], fe = { class: "sr-only-mobile" }, ge = ["src"], be = { class: "sr-only" }, he = { class: "header" }, xe = ["aria-level"], Ce = { class: "date" }, we = { class: "expeditor" }, ye = ["aria-level"], ke = { class: "expeditor-mail" }, _e = { class: "recipient" }, Me = ["aria-label"], Le = ["src"], $e = ["innerHTML"], Be = {
|
|
87
87
|
key: 0,
|
|
88
88
|
class: "previous-message"
|
|
89
|
-
},
|
|
89
|
+
}, He = { class: "previous-message__header" }, Ae = ["innerHTML"], De = /* @__PURE__ */ k({
|
|
90
90
|
__name: "PixMailMessage.ce",
|
|
91
91
|
props: {
|
|
92
92
|
titleLevel: { default: 2, type: Number },
|
|
93
93
|
actions: { type: Object },
|
|
94
|
-
mail: { type: Object }
|
|
94
|
+
mail: { type: Object },
|
|
95
|
+
linkEnabled: { type: Boolean, default: !1 }
|
|
95
96
|
},
|
|
96
|
-
emits: ["action"],
|
|
97
|
-
setup(
|
|
98
|
-
const
|
|
99
|
-
|
|
100
|
-
const { t: l } =
|
|
97
|
+
emits: ["action", "clickLink"],
|
|
98
|
+
setup(e, { emit: g }) {
|
|
99
|
+
const c = g;
|
|
100
|
+
j();
|
|
101
|
+
const { t: l } = A(), b = V("content"), u = [
|
|
101
102
|
"reply",
|
|
102
103
|
"forward",
|
|
103
104
|
"delete",
|
|
@@ -105,35 +106,36 @@ const R = "data:image/svg+xml,%3csvg%20width='10'%20height='2'%20viewBox='0%200%
|
|
|
105
106
|
"markAsUnread",
|
|
106
107
|
"reportSpam"
|
|
107
108
|
], x = C(
|
|
108
|
-
() =>
|
|
109
|
+
() => u.filter((t) => (e.actions?.menuActions?.[t] ?? e.actions?.[t]) !== "hidden").map((t) => ({
|
|
109
110
|
name: t,
|
|
110
111
|
label: l(`pix-mail-message.actions.${t}`),
|
|
111
|
-
disabled: (
|
|
112
|
+
disabled: (e.actions?.menuActions?.[t] ?? e.actions?.[t]) === "disabled"
|
|
112
113
|
}))
|
|
113
114
|
);
|
|
114
|
-
function
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
115
|
+
function p() {
|
|
116
|
+
if (!b.value) return;
|
|
117
|
+
b.value.querySelectorAll("a").forEach((i) => {
|
|
118
|
+
i.addEventListener("click", (v) => {
|
|
119
|
+
v.preventDefault(), e.linkEnabled && c("clickLink", i.href);
|
|
118
120
|
});
|
|
119
121
|
});
|
|
120
122
|
}
|
|
121
123
|
_(() => {
|
|
122
|
-
|
|
123
|
-
}),
|
|
124
|
-
|
|
124
|
+
p();
|
|
125
|
+
}), Z(() => {
|
|
126
|
+
p();
|
|
125
127
|
});
|
|
126
|
-
function
|
|
127
|
-
|
|
128
|
+
function r(t) {
|
|
129
|
+
e.actions?.[t] !== "disabled" && c("action", t);
|
|
128
130
|
}
|
|
129
|
-
function
|
|
130
|
-
(
|
|
131
|
+
function h(t) {
|
|
132
|
+
(e.actions?.menuActions?.[t] ?? e.actions?.[t]) !== "disabled" && c("action", t);
|
|
131
133
|
}
|
|
132
|
-
function
|
|
133
|
-
const
|
|
134
|
-
return new Intl.DateTimeFormat(
|
|
134
|
+
function n(t, i) {
|
|
135
|
+
const v = T(t);
|
|
136
|
+
return new Intl.DateTimeFormat(D.language, i).format(v);
|
|
135
137
|
}
|
|
136
|
-
const w = C(() =>
|
|
138
|
+
const w = C(() => n(e.mail.time, {
|
|
137
139
|
weekday: "short",
|
|
138
140
|
day: "numeric",
|
|
139
141
|
month: "numeric",
|
|
@@ -141,121 +143,123 @@ const R = "data:image/svg+xml,%3csvg%20width='10'%20height='2'%20viewBox='0%200%
|
|
|
141
143
|
hour: "2-digit",
|
|
142
144
|
minute: "2-digit"
|
|
143
145
|
})), H = C(() => {
|
|
144
|
-
const t =
|
|
146
|
+
const t = n(e.mail.previousMail.time, {
|
|
145
147
|
weekday: "short",
|
|
146
148
|
day: "numeric",
|
|
147
149
|
month: "numeric",
|
|
148
150
|
year: "2-digit"
|
|
149
|
-
}), i =
|
|
151
|
+
}), i = n(e.mail.previousMail.time, {
|
|
150
152
|
hour: "2-digit",
|
|
151
153
|
minute: "2-digit"
|
|
152
154
|
});
|
|
153
155
|
return l("pix-mail-message.previousHeader", {
|
|
154
|
-
name:
|
|
156
|
+
name: e.mail.previousMail.sender.name,
|
|
155
157
|
time: i,
|
|
156
158
|
date: t
|
|
157
159
|
});
|
|
158
160
|
});
|
|
159
|
-
return (t, i) => (o(),
|
|
160
|
-
|
|
161
|
-
|
|
161
|
+
return (t, i) => (o(), s("div", oe, [
|
|
162
|
+
a("div", ne, [
|
|
163
|
+
e.actions?.return !== "hidden" ? (o(), s("button", {
|
|
162
164
|
key: 0,
|
|
163
|
-
"aria-disabled":
|
|
165
|
+
"aria-disabled": e.actions?.return === "disabled",
|
|
164
166
|
class: "back-button",
|
|
165
|
-
onClick: i[0] || (i[0] = (
|
|
167
|
+
onClick: i[0] || (i[0] = (v) => r("return"))
|
|
166
168
|
}, [
|
|
167
|
-
|
|
168
|
-
src:
|
|
169
|
+
a("img", {
|
|
170
|
+
src: m(K),
|
|
169
171
|
alt: ""
|
|
170
|
-
}, null, 8,
|
|
171
|
-
|
|
172
|
-
], 8,
|
|
173
|
-
i[3] || (i[3] =
|
|
174
|
-
|
|
172
|
+
}, null, 8, ce),
|
|
173
|
+
a("span", le, d(t.$t("pix-mail-message.actions.return")), 1)
|
|
174
|
+
], 8, se)) : f("", !0),
|
|
175
|
+
i[3] || (i[3] = a("div", { class: "nav__spacer" }, null, -1)),
|
|
176
|
+
e.actions?.reply !== "hidden" ? (o(), s("button", {
|
|
175
177
|
key: 1,
|
|
176
|
-
"aria-disabled":
|
|
177
|
-
onClick: i[1] || (i[1] = (
|
|
178
|
+
"aria-disabled": e.actions?.reply === "disabled",
|
|
179
|
+
onClick: i[1] || (i[1] = (v) => r("reply"))
|
|
178
180
|
}, [
|
|
179
|
-
|
|
180
|
-
src:
|
|
181
|
+
a("img", {
|
|
182
|
+
src: m(U),
|
|
181
183
|
alt: ""
|
|
182
|
-
}, null, 8,
|
|
183
|
-
|
|
184
|
-
], 8,
|
|
185
|
-
|
|
184
|
+
}, null, 8, ve),
|
|
185
|
+
a("span", ue, d(t.$t("pix-mail-message.actions.reply")), 1)
|
|
186
|
+
], 8, re)) : f("", !0),
|
|
187
|
+
e.actions?.forward !== "hidden" ? (o(), s("button", {
|
|
186
188
|
key: 2,
|
|
187
|
-
"aria-disabled":
|
|
188
|
-
onClick: i[2] || (i[2] = (
|
|
189
|
+
"aria-disabled": e.actions?.forward === "disabled",
|
|
190
|
+
onClick: i[2] || (i[2] = (v) => r("forward"))
|
|
189
191
|
}, [
|
|
190
|
-
|
|
191
|
-
src:
|
|
192
|
+
a("img", {
|
|
193
|
+
src: m(O),
|
|
192
194
|
alt: "",
|
|
193
195
|
class: "flip"
|
|
194
|
-
}, null, 8,
|
|
195
|
-
|
|
196
|
-
], 8,
|
|
197
|
-
|
|
196
|
+
}, null, 8, me),
|
|
197
|
+
a("span", fe, d(t.$t("pix-mail-message.actions.forward")), 1)
|
|
198
|
+
], 8, pe)) : f("", !0),
|
|
199
|
+
e.actions?.menu !== "hidden" ? (o(), q(ae, {
|
|
198
200
|
key: 3,
|
|
199
201
|
actions: x.value,
|
|
200
|
-
disabled:
|
|
201
|
-
onSelect:
|
|
202
|
+
disabled: e.actions?.menu === "disabled",
|
|
203
|
+
onSelect: h
|
|
202
204
|
}, {
|
|
203
|
-
default:
|
|
204
|
-
|
|
205
|
-
src:
|
|
205
|
+
default: $(() => [
|
|
206
|
+
a("img", {
|
|
207
|
+
src: m(R),
|
|
206
208
|
alt: ""
|
|
207
|
-
}, null, 8,
|
|
208
|
-
|
|
209
|
+
}, null, 8, ge),
|
|
210
|
+
a("span", be, d(t.$t("pix-mail-message.actions.menu")), 1)
|
|
209
211
|
]),
|
|
210
212
|
_: 1
|
|
211
|
-
}, 8, ["actions", "disabled"])) :
|
|
213
|
+
}, 8, ["actions", "disabled"])) : f("", !0)
|
|
212
214
|
]),
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
"aria-level":
|
|
215
|
+
a("div", he, [
|
|
216
|
+
a("div", {
|
|
217
|
+
"aria-level": e.titleLevel,
|
|
216
218
|
role: "heading"
|
|
217
|
-
}, d(
|
|
218
|
-
|
|
219
|
+
}, d(e.mail.subject), 9, xe),
|
|
220
|
+
a("p", Ce, d(w.value), 1)
|
|
219
221
|
]),
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
color:
|
|
222
|
+
a("div", we, [
|
|
223
|
+
L(de, {
|
|
224
|
+
color: e.mail.sender.avatarColor,
|
|
223
225
|
class: "avatar"
|
|
224
226
|
}, null, 8, ["color"]),
|
|
225
|
-
|
|
226
|
-
"aria-level":
|
|
227
|
+
a("div", {
|
|
228
|
+
"aria-level": e.titleLevel + 1,
|
|
227
229
|
role: "heading"
|
|
228
230
|
}, [
|
|
229
|
-
F(d(
|
|
230
|
-
|
|
231
|
-
], 8,
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
231
|
+
F(d(e.mail.sender.name) + " ", 1),
|
|
232
|
+
a("span", ke, " <" + d(e.mail.sender.address) + ">", 1)
|
|
233
|
+
], 8, ye),
|
|
234
|
+
a("div", _e, [
|
|
235
|
+
a("p", null, d(t.$t("pix-mail-message.toMe")), 1),
|
|
236
|
+
a("button", {
|
|
235
237
|
"aria-label": t.$t("pix-mail-message.details"),
|
|
236
238
|
"aria-disabled": "true"
|
|
237
239
|
}, [
|
|
238
|
-
|
|
239
|
-
src:
|
|
240
|
+
a("img", {
|
|
241
|
+
src: m(G),
|
|
240
242
|
alt: ""
|
|
241
|
-
}, null, 8,
|
|
242
|
-
], 8,
|
|
243
|
+
}, null, 8, Le)
|
|
244
|
+
], 8, Me)
|
|
243
245
|
])
|
|
244
246
|
]),
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
247
|
+
M(t.$slots, "content", {}, () => [
|
|
248
|
+
a("p", {
|
|
249
|
+
ref: "content",
|
|
250
|
+
class: "content",
|
|
251
|
+
innerHTML: e.mail.body
|
|
252
|
+
}, null, 8, $e)
|
|
253
|
+
], !0),
|
|
254
|
+
e.mail.previousMail ? (o(), s("div", Be, [
|
|
255
|
+
a("p", He, d(H.value), 1),
|
|
256
|
+
a("blockquote", {
|
|
257
|
+
innerHTML: e.mail.previousMail.body
|
|
258
|
+
}, null, 8, Ae)
|
|
259
|
+
])) : f("", !0)
|
|
256
260
|
]));
|
|
257
261
|
}
|
|
258
|
-
}),
|
|
262
|
+
}), Te = "html[data-v-449e261c],body[data-v-449e261c],div[data-v-449e261c],span[data-v-449e261c],applet[data-v-449e261c],object[data-v-449e261c],iframe[data-v-449e261c],h1[data-v-449e261c],h2[data-v-449e261c],h3[data-v-449e261c],h4[data-v-449e261c],h5[data-v-449e261c],h6[data-v-449e261c],p[data-v-449e261c],blockquote[data-v-449e261c],pre[data-v-449e261c],a[data-v-449e261c],abbr[data-v-449e261c],acronym[data-v-449e261c],address[data-v-449e261c],big[data-v-449e261c],cite[data-v-449e261c],code[data-v-449e261c],del[data-v-449e261c],dfn[data-v-449e261c],em[data-v-449e261c],img[data-v-449e261c],ins[data-v-449e261c],kbd[data-v-449e261c],q[data-v-449e261c],s[data-v-449e261c],samp[data-v-449e261c],small[data-v-449e261c],strike[data-v-449e261c],strong[data-v-449e261c],sub[data-v-449e261c],sup[data-v-449e261c],tt[data-v-449e261c],var[data-v-449e261c],b[data-v-449e261c],u[data-v-449e261c],i[data-v-449e261c],center[data-v-449e261c],dl[data-v-449e261c],dt[data-v-449e261c],dd[data-v-449e261c],ol[data-v-449e261c],ul[data-v-449e261c],li[data-v-449e261c],fieldset[data-v-449e261c],form[data-v-449e261c],label[data-v-449e261c],legend[data-v-449e261c],table[data-v-449e261c],caption[data-v-449e261c],tbody[data-v-449e261c],tfoot[data-v-449e261c],thead[data-v-449e261c],tr[data-v-449e261c],th[data-v-449e261c],td[data-v-449e261c],article[data-v-449e261c],aside[data-v-449e261c],canvas[data-v-449e261c],details[data-v-449e261c],embed[data-v-449e261c],figure[data-v-449e261c],figcaption[data-v-449e261c],footer[data-v-449e261c],header[data-v-449e261c],hgroup[data-v-449e261c],menu[data-v-449e261c],nav[data-v-449e261c],output[data-v-449e261c],ruby[data-v-449e261c],section[data-v-449e261c],summary[data-v-449e261c],time[data-v-449e261c],mark[data-v-449e261c],audio[data-v-449e261c],video[data-v-449e261c]{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article[data-v-449e261c],aside[data-v-449e261c],details[data-v-449e261c],figcaption[data-v-449e261c],figure[data-v-449e261c],footer[data-v-449e261c],header[data-v-449e261c],hgroup[data-v-449e261c],menu[data-v-449e261c],nav[data-v-449e261c],section[data-v-449e261c]{display:block}body[data-v-449e261c]{line-height:1}ol[data-v-449e261c],ul[data-v-449e261c]{list-style:none}table[data-v-449e261c]{border-collapse:collapse;border-spacing:0}button[data-v-449e261c],p[data-v-449e261c],div[role=heading][data-v-449e261c]{font-family:Roboto,sans-serif;color:#253858}.container[data-v-449e261c]{background-color:#f4f5f7;border-radius:8px;border:1px solid #cdd1d9;display:flex;flex-direction:column;gap:12px;padding:16px}.nav[data-v-449e261c]{display:flex;gap:8px;justify-content:end;align-items:stretch}.nav button[data-v-449e261c]{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-449e261c]{cursor:not-allowed;background:#eae9e9}.nav button[aria-disabled=false][data-v-449e261c]:hover{background-color:#cdd1d9}.nav .back-button[data-v-449e261c]{border:none;background:transparent}.nav__spacer[data-v-449e261c]{flex:1}.flip-h[data-v-449e261c]{transform:scaleX(-1)}.header[data-v-449e261c]{display:flex;justify-content:space-between}.header div[role][data-v-449e261c]{font-family:open-sans,sans-serif;font-size:1.125rem}.header .date[data-v-449e261c]{color:#5e6c84;font-size:.75rem}.expeditor[data-v-449e261c]{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-449e261c]{font-weight:700}.expeditor-mail[data-v-449e261c],.expeditor .recipient p[data-v-449e261c]{align-self:end;font-size:.75rem;color:#5e6c84;font-weight:400;word-break:break-word}.expeditor .recipient[data-v-449e261c]{display:flex}.expeditor .recipient button[data-v-449e261c]{border:none;background:transparent;display:flex;align-items:center;cursor:not-allowed}.expeditor .avatar[data-v-449e261c]{grid-row:1/span 2;margin-right:12px}.content[data-v-449e261c]{color:#122647;font-size:.875rem}.previous-message[data-v-449e261c]{font-size:.875rem;margin-top:12px}.previous-message__header[data-v-449e261c]{font-style:italic;font-size:.875rem;color:#5e6c84;margin-bottom:8px}.previous-message blockquote[data-v-449e261c]{border-left:1px solid #cdd1d9;margin-left:8px;padding-left:8px}.sr-only[data-v-449e261c]{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-449e261c]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);border:0}.date[data-v-449e261c]{display:none}}", Ne = /* @__PURE__ */ B(De, [["styles", [Te]], ["__scopeId", "data-v-449e261c"]]);
|
|
259
263
|
export {
|
|
260
|
-
|
|
264
|
+
Ne as P
|
|
261
265
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { B as u } from "./Button.ce-
|
|
2
|
-
import { F as x } from "./FocusManager.ce-
|
|
3
|
-
import { b as m, h as b,
|
|
1
|
+
import { B as u } from "./Button.ce-Dvxeebpx.js";
|
|
2
|
+
import { F as x } from "./FocusManager.ce-Cv3wYF9s.js";
|
|
3
|
+
import { b as m, h as b, C as g, o as n, c as r, F as y, l, D as h, E as p, a as e, q as d, B as i, x as a, f as B, z as _, _ as v } from "./_plugin-vue_export-helper-Dz58mCLm.js";
|
|
4
4
|
const k = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "overlay"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as i, o as d, c, a as e, z as l, x as p, g as o, _ as u } from "./_plugin-vue_export-helper-
|
|
1
|
+
import { b as i, o as d, c, a as e, z as l, x as p, g as o, _ as u } from "./_plugin-vue_export-helper-Dz58mCLm.js";
|
|
2
2
|
const h = { class: "steps-wrapper" }, _ = { class: "steps-wrapper__stepper" }, f = { "aria-hidden": "true" }, w = {
|
|
3
3
|
class: "sr-only",
|
|
4
4
|
"aria-live": "polite"
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { b as V, i as Q, h as D, w as U, o as a, f as S,
|
|
2
|
-
import { u as ne, i as P } from "../i18n-lite-
|
|
1
|
+
import { b as V, i as Q, h as D, w as U, o as a, f as S, E as s, q as W, N as z, y as L, t as X, v as M, R as Y, g as o, _ as Z, K as ee, c, D as u, a as n, B as y, x as l, F as w, e as N, l as x, S as te, r as A, p as ae, d as se } from "../_plugin-vue_export-helper-Dz58mCLm.js";
|
|
2
|
+
import { u as ne, i as P } from "../i18n-lite-CzqISEWm.js";
|
|
3
3
|
import { b as le } from "../normalize-props-DH0oPBss.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
4
|
+
import { F as oe } from "../Feedback.ce-CnZRBGWf.js";
|
|
5
|
+
import { _ as ie, a as re } from "../Cross.ce.vue_vue_type_script_setup_true_lang-DVLRq2sO.js";
|
|
6
|
+
import { S as ce } from "../Stepper.ce-DEMN02yr.js";
|
|
7
|
+
import { l as de } from "../index-BUPiE5WR.js";
|
|
7
8
|
const ue = {}, pe = {}, me = {}, he = {}, fe = {}, _e = {
|
|
8
9
|
"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." }
|
|
9
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({
|
|
@@ -217,15 +218,15 @@ const ue = {}, pe = {}, me = {}, he = {}, fe = {}, _e = {
|
|
|
217
218
|
])) : x("", !0)
|
|
218
219
|
], 64))), 128))
|
|
219
220
|
]),
|
|
220
|
-
O.value ? (a(), S(
|
|
221
|
+
O.value ? (a(), S(oe, {
|
|
221
222
|
key: 0,
|
|
222
223
|
title: E.value
|
|
223
224
|
}, {
|
|
224
225
|
icon: s(() => [
|
|
225
|
-
g.value ? (a(), S(
|
|
226
|
+
g.value ? (a(), S(ie, {
|
|
226
227
|
key: 0,
|
|
227
228
|
class: "feedback-icon"
|
|
228
|
-
})) : (a(), S(
|
|
229
|
+
})) : (a(), S(re, {
|
|
229
230
|
key: 1,
|
|
230
231
|
class: "feedback-icon"
|
|
231
232
|
}))
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as V, K as R, o as d, c as p, F as K,
|
|
2
|
-
import { a as Q, i as N, b as G } from "../i18n-
|
|
1
|
+
import { b as V, K as R, o as d, c as p, F as K, D as v, E as r, a as e, x as a, B as _, l as C, T as D, _ as z, v as E, H as j, Q as x, f as U, r as l, d as H } from "../_plugin-vue_export-helper-Dz58mCLm.js";
|
|
2
|
+
import { a as Q, i as N, b as G } from "../i18n-H4HokXDX.js";
|
|
3
3
|
import { b as J } from "../normalize-props-DH0oPBss.js";
|
|
4
4
|
const X = {}, Z = {}, ee = {}, te = {}, ae = {}, le = {
|
|
5
5
|
"calcul-impact": { title: "Calculez votre impact IA", subtitle: "Quels ont été vos usages de l'IA la semaine dernière ?", numberOfConversationLabel: "Nombre de conversations courtes :", numberOfImagesLabel: "Nombre de créations d’images :", seePersonalImpact: "Voir votre impact personnel sur une semaine", seeCollectiveImpact: "Si 1 million de personnes faisaient comme vous toutes les semaines pendant un an", legals: "Estimations basées sur l'étude Hugging Face, Carnegie Mellon University, Allen Institute for AI, Oct 2024", yourPersonalImpact: "Votre impact personnel", consumptionForAWeek: "Votre consommation sur une semaine", consumptionForAYear: "1 million de personnes toutes les semaines pendant un an", personalConsumption: "Vous avez consommé environ {{energy}} Wh", personalDuration: "Cela équivaut à {{number}} minutes de micro-ondes", collectiveConsumption: "Cela représenterait {{energy}} kWh, soit l'équivalent de la consommation en électricité de {{homes}} foyers français", collectiveDuration: "Équivalent à {{number}} minutes de micro-ondes", planeKilometers: "Et {{kilometers}} km parcourus en avion", yourCollectiveImpact: "Impact collectif simulé" }
|
|
@@ -109,15 +109,15 @@ const X = {}, Z = {}, ee = {}, te = {}, ae = {}, le = {
|
|
|
109
109
|
], 64);
|
|
110
110
|
};
|
|
111
111
|
}
|
|
112
|
-
}), _e = ".result-calculation[data-v-b69dd4ff]{background:#e0f7fa;border-left:solid 3px #00796b;padding:1rem;border-radius:10px}.header[data-v-b69dd4ff]{font-size:1.125rem;font-weight:700}.consumption[data-v-b69dd4ff]{font-style:italic}.fade-perso-enter-active[data-v-b69dd4ff],.fade-collectif-enter-active[data-v-b69dd4ff]{transition:all .3s ease-out}.fade-perso-leave-active[data-v-b69dd4ff],.fade-collectif-leave-active[data-v-b69dd4ff]{transition:all .8s cubic-bezier(1,.5,.8,1)}.fade-perso-enter-from[data-v-b69dd4ff],.fade-collectif-enter-from[data-v-b69dd4ff],.fade-perso-leave-to[data-v-b69dd4ff],.fade-collectif-leave-to[data-v-b69dd4ff]{transform:translate(20px);opacity:0}", Ce = /* @__PURE__ */ z(ge, [["styles", [_e]], ["__scopeId", "data-v-b69dd4ff"]]), he = { class: "container" }, ke = ["arial-level"], Ie = { for: "numberOfConversation" }, we = { for: "numberOfImage" },
|
|
112
|
+
}), _e = ".result-calculation[data-v-b69dd4ff]{background:#e0f7fa;border-left:solid 3px #00796b;padding:1rem;border-radius:10px}.header[data-v-b69dd4ff]{font-size:1.125rem;font-weight:700}.consumption[data-v-b69dd4ff]{font-style:italic}.fade-perso-enter-active[data-v-b69dd4ff],.fade-collectif-enter-active[data-v-b69dd4ff]{transition:all .3s ease-out}.fade-perso-leave-active[data-v-b69dd4ff],.fade-collectif-leave-active[data-v-b69dd4ff]{transition:all .8s cubic-bezier(1,.5,.8,1)}.fade-perso-enter-from[data-v-b69dd4ff],.fade-collectif-enter-from[data-v-b69dd4ff],.fade-perso-leave-to[data-v-b69dd4ff],.fade-collectif-leave-to[data-v-b69dd4ff]{transform:translate(20px);opacity:0}", Ce = /* @__PURE__ */ z(ge, [["styles", [_e]], ["__scopeId", "data-v-b69dd4ff"]]), he = { class: "container" }, ke = ["arial-level"], Ie = { for: "numberOfConversation" }, we = { for: "numberOfImage" }, Be = { class: "legals" }, $e = /* @__PURE__ */ V({
|
|
113
113
|
__name: "CalculImpact.ce",
|
|
114
114
|
props: {
|
|
115
115
|
titleLevel: { type: Number }
|
|
116
116
|
},
|
|
117
117
|
setup(t, { expose: o }) {
|
|
118
|
-
const i = t.titleLevel ?? 2, b = l(10), f = l(2), w = l(0),
|
|
118
|
+
const i = t.titleLevel ?? 2, b = l(10), f = l(2), w = l(0), B = l(0), $ = l(0), c = l(!1), y = l(!1);
|
|
119
119
|
function q() {
|
|
120
|
-
b.value = 10, f.value = 2, u.value = {}, m.value = {}, w.value = 0,
|
|
120
|
+
b.value = 10, f.value = 2, u.value = {}, m.value = {}, w.value = 0, B.value = 0, $.value = 0, c.value = !1, y.value = !1, k.value = 0, F.value = 0, g.value = 0, A.value = 0, L.value = 0;
|
|
121
121
|
}
|
|
122
122
|
const h = {
|
|
123
123
|
text: { energy: 2.9, co2: 1.5 },
|
|
@@ -127,7 +127,7 @@ const X = {}, Z = {}, ee = {}, te = {}, ae = {}, le = {
|
|
|
127
127
|
k.value = b.value * h.text.energy + f.value * h.image.energy, F.value = b.value * h.text.co2 + f.value * h.image.co2, w.value = Number((k.value / 0.8).toFixed(1)), u.value.energyByWeek = k.value.toFixed(1), u.value.personalMicrowavesDuration = w.value, u.value.co2ByWeek = F.value.toFixed(1);
|
|
128
128
|
}
|
|
129
129
|
function M() {
|
|
130
|
-
g.value = u.value.energyByWeek * 52 * 1e6 / 1e3, A.value = u.value.co2ByWeek * 52 * 1e6 / 1e6, L.value = Math.round(g.value / 2300),
|
|
130
|
+
g.value = u.value.energyByWeek * 52 * 1e6 / 1e3, A.value = u.value.co2ByWeek * 52 * 1e6 / 1e6, L.value = Math.round(g.value / 2300), B.value = g.value / 0.8, $.value = A.value * 2410, m.value.collectiveMicrowavesDuration = B.value.toLocaleString(), m.value.kilometerByPlane = $.value.toLocaleString(), m.value.equivalentPopulationByCity = L.value.toLocaleString(), m.value.collectiveAnnualEnergy = g.value.toLocaleString();
|
|
131
131
|
}
|
|
132
132
|
function S() {
|
|
133
133
|
P(), c.value = !0;
|
|
@@ -181,10 +181,10 @@ const X = {}, Z = {}, ee = {}, te = {}, ae = {}, le = {
|
|
|
181
181
|
key: 2,
|
|
182
182
|
onClick: T
|
|
183
183
|
}, "🌍 " + a(s.$t("calcul-impact.seeCollectiveImpact")), 1)) : C("", !0),
|
|
184
|
-
e("p",
|
|
184
|
+
e("p", Be, "📝 " + a(s.$t("calcul-impact.legals")), 1)
|
|
185
185
|
]));
|
|
186
186
|
}
|
|
187
|
-
}), Fe = "[data-v-7fbb31b5]{font-family:Nunito,Roboto,sans-serif;color:#253858}p[data-v-7fbb31b5]{padding:0}.container[data-v-7fbb31b5]{display:flex;flex-direction:column;gap:1rem}.container button[data-v-7fbb31b5]{border:0;border-radius:5px;font-size:.9rem;background:#357abd;color:#fff;width:50%;padding:.4rem .8rem;margin:auto;cursor:pointer}.container button[data-v-7fbb31b5]:hover{background:#225d93}.container input[data-v-7fbb31b5]{border:solid 1px lightgrey;border-radius:5px;padding-block:.2rem;width:40%}.container label[data-v-7fbb31b5]{font-weight:700}.container .legals[data-v-7fbb31b5]{font-size:.9rem;font-style:italic}.container .title[data-v-7fbb31b5]{font-size:1.3rem;font-weight:700}@media only screen and (max-width:768px){.container button[data-v-7fbb31b5]{width:100%}.container input[data-v-7fbb31b5]{width:80%}}", Ae = /* @__PURE__ */ z(
|
|
187
|
+
}), Fe = "[data-v-7fbb31b5]{font-family:Nunito,Roboto,sans-serif;color:#253858}p[data-v-7fbb31b5]{padding:0}.container[data-v-7fbb31b5]{display:flex;flex-direction:column;gap:1rem}.container button[data-v-7fbb31b5]{border:0;border-radius:5px;font-size:.9rem;background:#357abd;color:#fff;width:50%;padding:.4rem .8rem;margin:auto;cursor:pointer}.container button[data-v-7fbb31b5]:hover{background:#225d93}.container input[data-v-7fbb31b5]{border:solid 1px lightgrey;border-radius:5px;padding-block:.2rem;width:40%}.container label[data-v-7fbb31b5]{font-weight:700}.container .legals[data-v-7fbb31b5]{font-size:.9rem;font-style:italic}.container .title[data-v-7fbb31b5]{font-size:1.3rem;font-weight:700}@media only screen and (max-width:768px){.container button[data-v-7fbb31b5]{width:100%}.container input[data-v-7fbb31b5]{width:80%}}", Ae = /* @__PURE__ */ z($e, [["styles", [Fe]], ["__scopeId", "data-v-7fbb31b5"]]);
|
|
188
188
|
Q(/* @__PURE__ */ Object.assign({ "./locales/de-AT.json": X, "./locales/en.json": Z, "./locales/es-419.json": ee, "./locales/es.json": te, "./locales/fr-BE.json": ae, "./locales/fr.json": le, "./locales/it.json": oe, "./locales/nl.json": ne })).catch((t) => console.error(t));
|
|
189
189
|
const Y = H(Ae, {
|
|
190
190
|
configureApp(t) {
|