@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.
- package/dist/Button.ce-CTKrSDrC.js +27 -0
- package/dist/{ButtonTooltip.ce-CIo_7tm0.js → ButtonTooltip.ce-CtHo2Dwx.js} +1 -1
- 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
- package/dist/{LLMMessage.ce-y0pOYUCI.js → LLMMessage.ce-Bdmf0R1g.js} +7 -7
- package/dist/{Loading.ce-Cxcx64IX.js → Loading.ce-Bh7-h48F.js} +1 -1
- package/dist/{NavigationButton.ce-DpzmC2Dd.js → NavigationButton.ce-CA1M8sgV.js} +2 -2
- package/dist/PixMailMessage.ce-XPDbJiyC.js +219 -0
- package/dist/Popin.ce-DUQ7-GMT.js +197 -0
- package/dist/{Retry-BYnFnneH.js → Retry-BZf7NJz9.js} +1 -1
- package/dist/Stepper.ce-B1yDelzC.js +27 -0
- package/dist/{_plugin-vue_export-helper-BaC4eJh4.js → _plugin-vue_export-helper-D0N_62VD.js} +29 -28
- package/dist/components/analyse-mails-phishing.ce.js.js +99 -98
- package/dist/components/calcul-impact.ce.js.js +9 -9
- package/dist/components/capacity-calculation.ce.js.js +28 -28
- package/dist/components/clickable-image.ce.js.js +11 -11
- package/dist/components/complete-phrase.ce.js.js +7 -7
- package/dist/components/flip-cards.ce.js.js +5 -5
- package/dist/components/image-quiz.ce.js.js +4 -4
- 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 +2 -2
- package/dist/components/mdp-classement.ce.js.js +29 -29
- package/dist/components/message-conversation.ce.js.js +18 -18
- package/dist/components/mobile-shell.ce.js.js +1 -1
- package/dist/components/phishing-message.ce.js.js +27 -27
- package/dist/components/phishing-notification.ce.js.js +23 -23
- package/dist/components/pix-anonymisation.ce.js.js +83 -87
- package/dist/components/pix-article.ce.js.js +19 -19
- package/dist/components/pix-carousel.ce.js.js +13 -13
- package/dist/components/pix-combinaisons.ce.js.js +238 -0
- package/dist/components/pix-cursor.ce.js.js +19 -19
- package/dist/components/pix-mail-message.ce.js.js +11 -0
- package/dist/components/proteger-mail-spam.ce.js.js +131 -0
- package/dist/components/qcm-deepfake.ce.js.js +21 -21
- package/dist/components/quiz-stepper.ce.js.js +8 -7
- package/dist/components/select-conversation.ce.js.js +15 -15
- package/dist/components/template-mail.ce.js.js +49 -151
- package/dist/components/test-top-mdp.ce.js.js +14 -14
- package/dist/components/trouver-mdp-rs.ce.js.js +201 -239
- package/dist/{i18n-BJ6FRipD.js → i18n-ekiZvzf6.js} +9 -9
- package/dist/{i18n-lite-Dn1Iqj1Y.js → i18n-lite-t2jNOu0C.js} +8 -8
- package/dist/{image-quiz.ce-DvpG9mbT.js → image-quiz.ce-DqalWHKw.js} +11 -11
- package/dist/index-BpqxFmwz.js +10 -0
- package/dist/index.js +4 -1
- package/dist/metadata.js +31 -19
- package/dist/nl-Bonww6Q2.js +13 -0
- package/dist/{normalize-props-DtfVI0Xg.js → normalize-props-DH0oPBss.js} +2 -2
- package/dist/props.examples.js +130 -0
- package/dist/schema.js +108 -72
- package/dist/{shadow-dom-Db7VMkC0.js → shadow-dom-C3AZuSZe.js} +1 -1
- package/dist/temporal.utils-7Uvm62ss.js +10926 -0
- package/package.json +3 -2
- package/dist/Button.ce-CkwcReY5.js +0 -18
- package/dist/index-BCutQvmP.js +0 -34
- package/dist/temporal.utils-CotrC6ao.js +0 -14456
package/dist/{_plugin-vue_export-helper-BaC4eJh4.js → _plugin-vue_export-helper-D0N_62VD.js}
RENAMED
|
@@ -4887,8 +4887,8 @@ const nf = (e, t) => {
|
|
|
4887
4887
|
return n;
|
|
4888
4888
|
};
|
|
4889
4889
|
export {
|
|
4890
|
-
|
|
4891
|
-
|
|
4890
|
+
Oc as $,
|
|
4891
|
+
Rc as A,
|
|
4892
4892
|
qc as B,
|
|
4893
4893
|
Jc as C,
|
|
4894
4894
|
kc as D,
|
|
@@ -4899,32 +4899,33 @@ export {
|
|
|
4899
4899
|
uc as I,
|
|
4900
4900
|
Nc as J,
|
|
4901
4901
|
Do as K,
|
|
4902
|
-
|
|
4903
|
-
|
|
4904
|
-
|
|
4905
|
-
|
|
4902
|
+
Hn as L,
|
|
4903
|
+
nr as M,
|
|
4904
|
+
tf as N,
|
|
4905
|
+
Ac as O,
|
|
4906
4906
|
Qc as P,
|
|
4907
4907
|
Zc as Q,
|
|
4908
|
-
|
|
4909
|
-
|
|
4908
|
+
$c as R,
|
|
4909
|
+
Bc as S,
|
|
4910
4910
|
Gc as T,
|
|
4911
|
-
|
|
4912
|
-
|
|
4913
|
-
|
|
4914
|
-
|
|
4915
|
-
|
|
4916
|
-
|
|
4911
|
+
Kc as U,
|
|
4912
|
+
Uc as V,
|
|
4913
|
+
Hc as W,
|
|
4914
|
+
no as X,
|
|
4915
|
+
Pc as Y,
|
|
4916
|
+
dt as Z,
|
|
4917
4917
|
nf as _,
|
|
4918
4918
|
Pr as a,
|
|
4919
|
-
|
|
4920
|
-
|
|
4921
|
-
|
|
4922
|
-
|
|
4919
|
+
_s as a0,
|
|
4920
|
+
Xn as a1,
|
|
4921
|
+
Kl as a2,
|
|
4922
|
+
Xc as a3,
|
|
4923
|
+
ko as b,
|
|
4923
4924
|
Wc as c,
|
|
4924
|
-
|
|
4925
|
-
|
|
4926
|
-
|
|
4927
|
-
|
|
4925
|
+
Yc as d,
|
|
4926
|
+
Vc as e,
|
|
4927
|
+
ss as f,
|
|
4928
|
+
jl as g,
|
|
4928
4929
|
Fc as h,
|
|
4929
4930
|
en as i,
|
|
4930
4931
|
Lc as j,
|
|
@@ -4934,14 +4935,14 @@ export {
|
|
|
4934
4935
|
Sn as n,
|
|
4935
4936
|
ns as o,
|
|
4936
4937
|
$o as p,
|
|
4937
|
-
|
|
4938
|
+
jc as q,
|
|
4938
4939
|
Mc as r,
|
|
4939
|
-
|
|
4940
|
+
Cn as s,
|
|
4940
4941
|
eo as t,
|
|
4941
4942
|
zc as u,
|
|
4942
|
-
|
|
4943
|
+
wo as v,
|
|
4943
4944
|
Ic as w,
|
|
4944
|
-
|
|
4945
|
-
|
|
4946
|
-
|
|
4945
|
+
Ki as x,
|
|
4946
|
+
tr as y,
|
|
4947
|
+
ir as z
|
|
4947
4948
|
};
|
|
@@ -1,30 +1,31 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { u as
|
|
3
|
-
import {
|
|
4
|
-
import { _ as
|
|
5
|
-
import { S as
|
|
6
|
-
|
|
1
|
+
import { b as V, i as Q, j as Z, g as o, w as U, f as S, o as a, K as s, q as W, n as X, N as z, l as L, k as M, R as Y, _ as D, r as N, S as ee, G as te, c, E as u, a as n, B as x, H as y, t as l, F as w, e as A, p as ae, d as se } from "../_plugin-vue_export-helper-D0N_62VD.js";
|
|
2
|
+
import { u as ne, i as P } from "../i18n-lite-t2jNOu0C.js";
|
|
3
|
+
import { b as le } from "../normalize-props-DH0oPBss.js";
|
|
4
|
+
import { _ as oe, a as ie, F as re } from "../Cross.ce.vue_vue_type_script_setup_true_lang-CVBFTfq5.js";
|
|
5
|
+
import { S as ce } from "../Stepper.ce-B1yDelzC.js";
|
|
6
|
+
import { l as de } from "../index-BpqxFmwz.js";
|
|
7
|
+
const ue = {}, pe = {}, me = {}, he = {}, fe = {}, _e = {
|
|
7
8
|
"analyse-mails-phishing": { continue: "Continuer", subject: "{{srOnly}}{{subject}}", subjectSrOnly: "Sujet : ", sender: "{{srOnly}}{{sender}}", senderSrOnly: "Expéditeur : ", recipient: "{{srOnly}}{{recipient}}", recipientSrOnly: "Destinataire : ", to: "À moi", feedbackTitle: { correct: "Bien joué", incorrect: "Ce n’est pas ça" }, feedbackSrOnly: "Vous pouvez cliquer sur Continuer pour afficher le prochain mail." }
|
|
8
|
-
},
|
|
9
|
+
}, ve = {}, ge = {}, ye = "data:image/svg+xml,%3csvg%20width='41'%20height='41'%20viewBox='0%200%2041%2041'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9%2033.5484C9.02496%2031.6445%209.79268%2029.8271%2011.1371%2028.4893C12.4815%2027.1515%2014.2944%2026.4009%2016.1837%2026.3999H24.8163C26.7056%2026.4009%2028.5185%2027.1515%2029.8629%2028.4893C31.2073%2029.8271%2031.975%2031.6445%2032%2033.5484C28.8446%2036.4141%2024.7476%2038%2020.5%2038C16.2524%2038%2012.1554%2036.4141%209%2033.5484ZM26.9744%2015.525C26.9744%2016.8155%2026.5947%2018.077%2025.8833%2019.1501C25.1719%2020.2231%2024.1607%2021.0594%2022.9776%2021.5533C21.7946%2022.0471%2020.4928%2022.1763%2019.2369%2021.9246C17.981%2021.6728%2016.8274%2021.0514%2015.9219%2020.1388C15.0164%2019.2263%2014.3998%2018.0637%2014.15%2016.7979C13.9002%2015.5322%2014.0284%2014.2203%2014.5184%2013.028C15.0085%2011.8357%2015.8383%2010.8166%2016.903%2010.0997C17.9677%209.38268%2019.2195%209%2020.5%209C22.2171%209%2023.8639%209.68745%2025.0781%2010.9111C26.2923%2012.1348%2026.9744%2013.7944%2026.9744%2015.525Z'%20fill='white'/%3e%3cpath%20d='M36.2655%2033.5758C38.3699%2031.0459%2039.8335%2028.0469%2040.5326%2024.8323C41.2316%2021.6177%2041.1455%2018.2822%2040.2815%2015.1079C39.4175%2011.9336%2037.8011%209.0139%2035.569%206.59581C33.3368%204.17772%2030.5547%202.33238%2027.4578%201.21587C24.3609%200.0993725%2021.0405%20-0.255438%2017.7774%200.181459C14.5142%200.618355%2011.4044%201.83411%208.71099%203.72586C6.01756%205.61762%203.81975%208.12973%202.30349%2011.0497C0.787232%2013.9696%20-0.00287585%2017.2115%207.86538e-06%2020.5011C0.00111445%2025.2832%201.6877%2029.9122%204.7638%2033.5758L4.7345%2033.6007C4.83707%2033.7237%204.9543%2033.8291%205.0598%2033.9506C5.19168%2034.1014%205.33382%2034.2435%205.47009%2034.3899C5.88039%2034.835%206.3024%2035.2625%206.74493%2035.6637C6.87974%2035.7866%207.01895%2035.9008%207.15522%2036.018C7.62413%2036.4221%208.10623%2036.8057%208.6059%2037.1629C8.67038%2037.2068%208.72899%2037.264%208.79347%2037.3093V37.2918C12.2254%2039.7049%2016.3196%2041%2020.5161%2041C24.7127%2041%2028.8068%2039.7049%2032.2388%2037.2918V37.3093C32.3033%2037.264%2032.3604%2037.2068%2032.4263%2037.1629C32.9246%2036.8042%2033.4081%2036.4221%2033.877%2036.018C34.0133%2035.9008%2034.1525%2035.7852%2034.2873%2035.6637C34.7298%2035.261%2035.1519%2034.835%2035.5622%2034.3899C35.6984%2034.2435%2035.8391%2034.1014%2035.9725%2033.9506C36.0765%2033.8291%2036.1952%2033.7237%2036.2978%2033.5992L36.2655%2033.5758ZM20.5147%208.78808C21.8188%208.78808%2023.0937%209.1745%2024.1781%209.89846C25.2625%2010.6224%2026.1076%2011.6514%2026.6067%2012.8553C27.1058%2014.0592%2027.2364%2015.384%2026.982%2016.662C26.7275%2017.9401%2026.0995%2019.1141%2025.1773%2020.0355C24.2551%2020.9569%2023.0802%2021.5844%2021.8011%2021.8387C20.522%2022.0929%2019.1961%2021.9624%2017.9912%2021.4637C16.7864%2020.9651%2015.7565%2020.1206%2015.032%2019.0371C14.3074%2017.9536%2013.9207%2016.6798%2013.9207%2015.3767C13.9207%2013.6293%2014.6154%2011.9534%2015.852%2010.7178C17.0886%209.48224%2018.7658%208.78808%2020.5147%208.78808ZM8.80226%2033.5758C8.82768%2031.6534%209.60958%2029.8182%2010.9788%2028.4674C12.348%2027.1165%2014.1945%2026.3586%2016.1187%2026.3576H24.9107C26.8349%2026.3586%2028.6813%2027.1165%2030.0505%2028.4674C31.4197%2029.8182%2032.2016%2031.6534%2032.2271%2033.5758C29.0134%2036.4694%2024.8407%2038.0708%2020.5147%2038.0708C16.1886%2038.0708%2012.016%2036.4694%208.80226%2033.5758Z'%20fill='%232F80ED'/%3e%3c/svg%3e", be = "data:image/svg+xml,%3csvg%20width='8'%20height='4'%20viewBox='0%200%208%204'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0%200L3.53%203.38803L7.06%200H0Z'%20fill='black'/%3e%3c/svg%3e", Ce = /* @__PURE__ */ V({
|
|
9
10
|
__name: "MailElement.ce",
|
|
10
11
|
props: {
|
|
11
12
|
block: { type: Boolean, default: !1 },
|
|
12
13
|
path: { type: String }
|
|
13
14
|
},
|
|
14
15
|
setup(t) {
|
|
15
|
-
const { selectedPath: f, correct: $, paths: b, pathToIndex:
|
|
16
|
+
const { selectedPath: f, correct: $, paths: b, pathToIndex: _ } = Q("store"), p = Z("el"), m = o(() => f.value === t.path), v = o(() => _.value[t.path]), d = o(() => m.value || f.value === void 0 && v.value === 0);
|
|
16
17
|
function O() {
|
|
17
18
|
f.value = t.path;
|
|
18
19
|
}
|
|
19
|
-
function
|
|
20
|
-
|
|
20
|
+
function g() {
|
|
21
|
+
v.value !== 0 && (f.value = b.value[v.value - 1]);
|
|
21
22
|
}
|
|
22
|
-
function
|
|
23
|
-
|
|
23
|
+
function E() {
|
|
24
|
+
v.value !== b.value.length - 1 && (f.value = b.value[v.value + 1]);
|
|
24
25
|
}
|
|
25
26
|
return U(() => {
|
|
26
27
|
m.value && p.value.focus();
|
|
27
|
-
}), (
|
|
28
|
+
}), (T, i) => (a(), S(Y(t.block ? "div" : "span"), {
|
|
28
29
|
class: X(["mail-element", {
|
|
29
30
|
"mail-element--correct": m.value && M($),
|
|
30
31
|
"mail-element--incorrect": m.value && !M($)
|
|
@@ -32,41 +33,41 @@ const u2 = {
|
|
|
32
33
|
role: "option",
|
|
33
34
|
"aria-selected": m.value,
|
|
34
35
|
tabindex: d.value ? 0 : -1,
|
|
35
|
-
onClick:
|
|
36
|
+
onClick: i[0] || (i[0] = (C) => O()),
|
|
36
37
|
onKeydown: [
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
i[1] || (i[1] = z(L((C) => O(), ["stop", "prevent"]), ["space"])),
|
|
39
|
+
i[2] || (i[2] = z(L((C) => g(), ["stop", "prevent"]), ["up", "left"])),
|
|
40
|
+
i[3] || (i[3] = z(L((C) => E(), ["stop", "prevent"]), ["down", "right"]))
|
|
40
41
|
],
|
|
41
42
|
ref_key: "el",
|
|
42
43
|
ref: p
|
|
43
44
|
}, {
|
|
44
|
-
default:
|
|
45
|
-
W(
|
|
45
|
+
default: s(() => [
|
|
46
|
+
W(T.$slots, "default")
|
|
46
47
|
]),
|
|
47
48
|
_: 3
|
|
48
49
|
}, 40, ["class", "aria-selected", "tabindex"]));
|
|
49
50
|
}
|
|
50
|
-
}),
|
|
51
|
+
}), xe = ".mail-element{background-color:transparent;border:1px solid #cdd1d9;border-radius:4px;cursor:pointer;font-weight:inherit;padding:0 2px}.mail-element--correct{background-color:#54c590}.mail-element--incorrect{background-color:#e4766f}", j = /* @__PURE__ */ D(Ce, [["styles", [xe]]]), ke = {
|
|
51
52
|
class: "mail",
|
|
52
53
|
role: "listbox"
|
|
53
|
-
},
|
|
54
|
+
}, we = ["arial-level"], je = { class: "sr-only" }, $e = { class: "mail-header" }, Oe = ["src"], Se = { class: "mail-header__content" }, Me = { class: "sr-only" }, Ee = { class: "mail-header__from-name" }, Te = { class: "mail-header__from-address" }, ze = { class: "mail-header__to" }, Le = { class: "sr-only" }, Pe = ["src"], Be = {
|
|
54
55
|
key: 0,
|
|
55
56
|
class: "mail__paragraph"
|
|
56
|
-
},
|
|
57
|
+
}, Fe = {
|
|
57
58
|
key: 1,
|
|
58
59
|
class: "mail__button"
|
|
59
|
-
},
|
|
60
|
+
}, Ne = {
|
|
60
61
|
key: 0,
|
|
61
62
|
class: "sr-only"
|
|
62
|
-
},
|
|
63
|
+
}, Ae = /* @__PURE__ */ V({
|
|
63
64
|
__name: "AnalyseMailsPhishing.ce",
|
|
64
65
|
props: {
|
|
65
66
|
titleLevel: { type: Number },
|
|
66
67
|
mails: { type: Array }
|
|
67
68
|
},
|
|
68
69
|
setup(t, { expose: f }) {
|
|
69
|
-
const $ =
|
|
70
|
+
const $ = ee(t, ["mails"]), { t: b } = ne(), _ = N(0), p = N(), m = Z("container"), v = o(() => $.titleLevel ?? 2), d = o(() => t.mails[_.value]), O = o(() => p.value !== void 0), g = o(() => d.value.answers.includes(p.value)), E = o(() => g.value ? b("analyse-mails-phishing.feedbackTitle.correct") : b("analyse-mails-phishing.feedbackTitle.incorrect")), T = o(() => g.value ? d.value.correctFeedback : d.value.incorrectFeedback), i = o(() => g.value && _.value < t.mails.length - 1), C = o(
|
|
70
71
|
() => d.value.body.map((e, r) => {
|
|
71
72
|
if (e.type === "paragraph")
|
|
72
73
|
return {
|
|
@@ -82,7 +83,7 @@ const u2 = {
|
|
|
82
83
|
path: `body[${r}]`
|
|
83
84
|
};
|
|
84
85
|
})
|
|
85
|
-
), B =
|
|
86
|
+
), B = o(() => [
|
|
86
87
|
"subject",
|
|
87
88
|
"from.name",
|
|
88
89
|
"from.address",
|
|
@@ -91,81 +92,81 @@ const u2 = {
|
|
|
91
92
|
return e.content.map(({ path: r }) => r);
|
|
92
93
|
if (e.type === "button") return [e.path];
|
|
93
94
|
})
|
|
94
|
-
]),
|
|
95
|
+
]), H = o(() => Object.fromEntries(
|
|
95
96
|
B.value.map((e, r) => [e, r])
|
|
96
97
|
));
|
|
97
|
-
|
|
98
|
+
ae("store", {
|
|
98
99
|
selectedPath: p,
|
|
99
|
-
correct:
|
|
100
|
+
correct: g,
|
|
100
101
|
paths: B,
|
|
101
|
-
pathToIndex:
|
|
102
|
+
pathToIndex: H
|
|
102
103
|
});
|
|
103
104
|
function K() {
|
|
104
|
-
|
|
105
|
+
_.value++, p.value = void 0, m.value.focus();
|
|
105
106
|
}
|
|
106
|
-
function
|
|
107
|
-
|
|
107
|
+
function q() {
|
|
108
|
+
_.value = 0, p.value = void 0;
|
|
108
109
|
}
|
|
109
110
|
return f({
|
|
110
|
-
reset:
|
|
111
|
+
reset: q
|
|
111
112
|
}), (e, r) => {
|
|
112
|
-
const k =
|
|
113
|
+
const k = te("i18n");
|
|
113
114
|
return a(), c("div", {
|
|
114
115
|
class: "analyse-mails-phishing",
|
|
115
116
|
tabindex: "-1",
|
|
116
117
|
ref_key: "container",
|
|
117
118
|
ref: m
|
|
118
119
|
}, [
|
|
119
|
-
u(
|
|
120
|
-
step:
|
|
120
|
+
u(ce, {
|
|
121
|
+
step: _.value,
|
|
121
122
|
"steps-count": t.mails.length
|
|
122
123
|
}, null, 8, ["step", "steps-count"]),
|
|
123
|
-
|
|
124
|
+
n("div", ke, [
|
|
124
125
|
u(j, {
|
|
125
126
|
path: "subject",
|
|
126
127
|
block: !0
|
|
127
128
|
}, {
|
|
128
|
-
default:
|
|
129
|
-
|
|
129
|
+
default: s(() => [
|
|
130
|
+
n("div", {
|
|
130
131
|
class: "mail__subject",
|
|
131
132
|
role: "heading",
|
|
132
|
-
"arial-level":
|
|
133
|
+
"arial-level": v.value
|
|
133
134
|
}, [
|
|
134
|
-
u(k, {
|
|
135
|
-
srOnly:
|
|
136
|
-
|
|
135
|
+
u(k, { t: "analyse-mails-phishing.subject" }, {
|
|
136
|
+
srOnly: s(() => [
|
|
137
|
+
n("span", je, l(e.$t("analyse-mails-phishing.subjectSrOnly")), 1)
|
|
137
138
|
]),
|
|
138
|
-
subject:
|
|
139
|
-
|
|
139
|
+
subject: s(() => [
|
|
140
|
+
y(l(d.value.subject), 1)
|
|
140
141
|
]),
|
|
141
142
|
_: 1
|
|
142
143
|
})
|
|
143
|
-
], 8,
|
|
144
|
+
], 8, we)
|
|
144
145
|
]),
|
|
145
146
|
_: 1
|
|
146
147
|
}),
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
src: M(
|
|
148
|
+
n("div", $e, [
|
|
149
|
+
n("img", {
|
|
150
|
+
src: M(ye),
|
|
150
151
|
alt: ""
|
|
151
|
-
}, null, 8,
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
u(k, {
|
|
155
|
-
srOnly:
|
|
156
|
-
|
|
152
|
+
}, null, 8, Oe),
|
|
153
|
+
n("div", Se, [
|
|
154
|
+
n("div", null, [
|
|
155
|
+
u(k, { t: "analyse-mails-phishing.sender" }, {
|
|
156
|
+
srOnly: s(() => [
|
|
157
|
+
n("span", Me, l(e.$t("analyse-mails-phishing.senderSrOnly")), 1)
|
|
157
158
|
]),
|
|
158
|
-
sender:
|
|
159
|
+
sender: s(() => [
|
|
159
160
|
u(j, { path: "from.name" }, {
|
|
160
|
-
default:
|
|
161
|
-
|
|
161
|
+
default: s(() => [
|
|
162
|
+
n("span", Ee, l(d.value.from.name), 1)
|
|
162
163
|
]),
|
|
163
164
|
_: 1
|
|
164
165
|
}),
|
|
165
|
-
r[1] || (r[1] =
|
|
166
|
+
r[1] || (r[1] = y()),
|
|
166
167
|
u(j, { path: "from.address" }, {
|
|
167
|
-
default:
|
|
168
|
-
|
|
168
|
+
default: s(() => [
|
|
169
|
+
n("span", Te, "<" + l(d.value.from.address) + ">", 1)
|
|
169
170
|
]),
|
|
170
171
|
_: 1
|
|
171
172
|
})
|
|
@@ -173,69 +174,69 @@ const u2 = {
|
|
|
173
174
|
_: 1
|
|
174
175
|
})
|
|
175
176
|
]),
|
|
176
|
-
|
|
177
|
-
u(k, {
|
|
178
|
-
srOnly:
|
|
179
|
-
|
|
177
|
+
n("div", ze, [
|
|
178
|
+
u(k, { t: "analyse-mails-phishing.recipient" }, {
|
|
179
|
+
srOnly: s(() => [
|
|
180
|
+
n("span", Le, l(e.$t("analyse-mails-phishing.recipientSrOnly")), 1)
|
|
180
181
|
]),
|
|
181
|
-
recipient:
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
src: M(
|
|
182
|
+
recipient: s(() => [
|
|
183
|
+
y(l(e.$t("analyse-mails-phishing.to")) + " ", 1),
|
|
184
|
+
n("img", {
|
|
185
|
+
src: M(be),
|
|
185
186
|
alt: ""
|
|
186
|
-
}, null, 8,
|
|
187
|
+
}, null, 8, Pe)
|
|
187
188
|
]),
|
|
188
189
|
_: 1
|
|
189
190
|
})
|
|
190
191
|
])
|
|
191
192
|
])
|
|
192
193
|
]),
|
|
193
|
-
(a(!0), c(w, null,
|
|
194
|
-
h.type === "paragraph" ? (a(), c("p",
|
|
195
|
-
(a(!0), c(w, null,
|
|
194
|
+
(a(!0), c(w, null, A(C.value, (h, G) => (a(), c(w, { key: G }, [
|
|
195
|
+
h.type === "paragraph" ? (a(), c("p", Be, [
|
|
196
|
+
(a(!0), c(w, null, A(h.content, ({ path: I, text: J }, F) => (a(), c(w, { key: F }, [
|
|
196
197
|
F !== 0 ? (a(), c(w, { key: 0 }, [
|
|
197
|
-
|
|
198
|
+
y(l(" "))
|
|
198
199
|
], 64)) : x("", !0),
|
|
199
|
-
u(j, { path:
|
|
200
|
-
default:
|
|
201
|
-
|
|
200
|
+
u(j, { path: I }, {
|
|
201
|
+
default: s(() => [
|
|
202
|
+
y(l(J), 1)
|
|
202
203
|
]),
|
|
203
204
|
_: 2
|
|
204
205
|
}, 1032, ["path"])
|
|
205
206
|
], 64))), 128))
|
|
206
207
|
])) : x("", !0),
|
|
207
|
-
h.type === "button" ? (a(), c("div",
|
|
208
|
+
h.type === "button" ? (a(), c("div", Fe, [
|
|
208
209
|
u(j, {
|
|
209
210
|
path: h.path
|
|
210
211
|
}, {
|
|
211
|
-
default:
|
|
212
|
-
|
|
212
|
+
default: s(() => [
|
|
213
|
+
y(l(h.name), 1)
|
|
213
214
|
]),
|
|
214
215
|
_: 2
|
|
215
216
|
}, 1032, ["path"])
|
|
216
217
|
])) : x("", !0)
|
|
217
218
|
], 64))), 128))
|
|
218
219
|
]),
|
|
219
|
-
O.value ? (a(), S(
|
|
220
|
+
O.value ? (a(), S(re, {
|
|
220
221
|
key: 0,
|
|
221
|
-
title:
|
|
222
|
+
title: E.value
|
|
222
223
|
}, {
|
|
223
|
-
icon:
|
|
224
|
-
|
|
224
|
+
icon: s(() => [
|
|
225
|
+
g.value ? (a(), S(oe, {
|
|
225
226
|
key: 0,
|
|
226
227
|
class: "feedback-icon"
|
|
227
|
-
})) : (a(), S(
|
|
228
|
+
})) : (a(), S(ie, {
|
|
228
229
|
key: 1,
|
|
229
230
|
class: "feedback-icon"
|
|
230
231
|
}))
|
|
231
232
|
]),
|
|
232
|
-
content:
|
|
233
|
-
|
|
234
|
-
|
|
233
|
+
content: s(() => [
|
|
234
|
+
y(l(T.value) + " ", 1),
|
|
235
|
+
i.value ? (a(), c("span", Ne, l(e.$t("analyse-mails-phishing.feedbackSrOnly")), 1)) : x("", !0)
|
|
235
236
|
]),
|
|
236
237
|
_: 1
|
|
237
238
|
}, 8, ["title"])) : x("", !0),
|
|
238
|
-
|
|
239
|
+
i.value ? (a(), c("button", {
|
|
239
240
|
key: 1,
|
|
240
241
|
class: "continue-button",
|
|
241
242
|
onClick: r[0] || (r[0] = (h) => K())
|
|
@@ -243,16 +244,16 @@ const u2 = {
|
|
|
243
244
|
], 512);
|
|
244
245
|
};
|
|
245
246
|
}
|
|
246
|
-
}),
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
const
|
|
247
|
+
}), Ve = "*{font-family:Nunito,Roboto,sans-serif;color:#122647}p{margin:0}.analyse-mails-phishing{display:flex;flex-direction:column;gap:24px}.mail{display:flex;padding:16px;flex-direction:column;gap:12px;border-radius:8px;background:#f4f5f7;align-items:start}.mail__subject{font-size:18px}.mail-header{display:flex;gap:16px;align-items:center}.mail-header__content{display:flex;flex-direction:column;gap:4px}.mail-header__from-name{font-size:15px;font-weight:700}.mail-header__from-address{color:#757575;font-size:12px}.mail-header__to{color:#818488;font-size:12px;font-weight:500;display:flex;align-items:center;gap:6px}.mail__paragraph{font-size:14px;line-height:24px}.mail__button{padding:8px 24px;border-radius:8px;border:1px solid #cdd1d9;background-color:#fff;color:#253858;font-size:14px;font-weight:700;text-align:center}.mail-element--correct .mail-header__from-address,.mail-element--incorrect .mail-header__from-address{color:#122647}.feedback-icon{height:16px;width:16px}.continue-button{border-style:none;padding:8px 24px;border-radius:8px;background-color:#253858;color:#fff;font-size:14px;font-weight:700;cursor:pointer;align-self:center}@media only screen and (max-width:576px){.analyse-mails-phishing{gap:12px}.mail__subject{font-size:16px}.mail__button{padding:8px 12px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);border:0}", Ze = /* @__PURE__ */ D(Ae, [["styles", [Ve]]]);
|
|
248
|
+
P.addTranslationsFromGlobResults(/* @__PURE__ */ Object.assign({ "./locales/de-AT.json": ue, "./locales/en.json": pe, "./locales/es-419.json": me, "./locales/es.json": he, "./locales/fr-BE.json": fe, "./locales/fr.json": _e, "./locales/it.json": ve, "./locales/nl.json": ge }));
|
|
249
|
+
de();
|
|
250
|
+
const R = se(Ze, {
|
|
250
251
|
configureApp(t) {
|
|
251
|
-
|
|
252
|
+
P.changeLanguage(document?.documentElement?.lang || navigator.language), t.use(P);
|
|
252
253
|
}
|
|
253
254
|
});
|
|
254
|
-
|
|
255
|
+
R.prototype.normalizeProps = (t) => ({
|
|
255
256
|
...t,
|
|
256
|
-
titleLevel:
|
|
257
|
+
titleLevel: le(t.titleLevel)
|
|
257
258
|
});
|
|
258
|
-
window.customElements.define("analyse-mails-phishing",
|
|
259
|
+
window.customElements.define("analyse-mails-phishing", R);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as H, i as x, b as Q } from "../i18n-
|
|
3
|
-
import {
|
|
1
|
+
import { b as V, G as R, c as p, o as d, F as K, E as v, K as r, B as C, a as e, t as a, H as _, T as D, _ as z, r as l, A as E, f as U, k as j, Q as N, d as G } from "../_plugin-vue_export-helper-D0N_62VD.js";
|
|
2
|
+
import { a as H, i as x, b as Q } from "../i18n-ekiZvzf6.js";
|
|
3
|
+
import { b as J } from "../normalize-props-DH0oPBss.js";
|
|
4
4
|
const X = {}, Z = {}, ee = {}, te = {}, ae = {}, le = {
|
|
5
5
|
"calcul-impact": { title: "Calculez votre impact IA", subtitle: "Quels ont été vos usages de l'IA la semaine dernière ?", numberOfConversationLabel: "Nombre de conversations courtes :", numberOfImagesLabel: "Nombre de créations d’images :", seePersonalImpact: "Voir votre impact personnel sur une semaine", seeCollectiveImpact: "Si 1 million de personnes faisaient comme vous toutes les semaines pendant un an", legals: "Estimations basées sur l'étude Hugging Face, Carnegie Mellon University, Allen Institute for AI, Oct 2024", yourPersonalImpact: "Votre impact personnel", consumptionForAWeek: "Votre consommation sur une semaine", consumptionForAYear: "1 million de personnes toutes les semaines pendant un an", personalConsumption: "Vous avez consommé environ {{energy}} Wh", personalDuration: "Cela équivaut à {{number}} minutes de micro-ondes", collectiveConsumption: "Cela représenterait {{energy}} kWh, soit l'équivalent de la consommation en électricité de {{homes}} foyers français", collectiveDuration: "Équivalent à {{number}} minutes de micro-ondes", planeKilometers: "Et {{kilometers}} km parcourus en avion", yourCollectiveImpact: "Impact collectif simulé" }
|
|
6
6
|
}, oe = {}, ne = {}, ie = {
|
|
@@ -117,17 +117,17 @@ const X = {}, Z = {}, ee = {}, te = {}, ae = {}, le = {
|
|
|
117
117
|
setup(t, { expose: o }) {
|
|
118
118
|
const i = t.titleLevel ?? 2, b = l(10), f = l(2), w = l(0), B = l(0), $ = l(0), c = l(!1), y = l(!1);
|
|
119
119
|
function q() {
|
|
120
|
-
b.value = 10, f.value = 2, u.value = {}, m.value = {}, w.value = 0, B.value = 0, $.value = 0, c.value = !1, y.value = !1, k.value = 0,
|
|
120
|
+
b.value = 10, f.value = 2, u.value = {}, m.value = {}, w.value = 0, B.value = 0, $.value = 0, c.value = !1, y.value = !1, k.value = 0, A.value = 0, g.value = 0, F.value = 0, L.value = 0;
|
|
121
121
|
}
|
|
122
122
|
const h = {
|
|
123
123
|
text: { energy: 2.9, co2: 1.5 },
|
|
124
124
|
image: { energy: 32, co2: 20 }
|
|
125
|
-
}, u = l({}), m = l({}), k = l(0),
|
|
125
|
+
}, u = l({}), m = l({}), k = l(0), A = l(0), g = l(0), F = l(0), L = l(0);
|
|
126
126
|
function P() {
|
|
127
|
-
k.value = b.value * h.text.energy + f.value * h.image.energy,
|
|
127
|
+
k.value = b.value * h.text.energy + f.value * h.image.energy, A.value = b.value * h.text.co2 + f.value * h.image.co2, w.value = Number((k.value / 0.8).toFixed(1)), u.value.energyByWeek = k.value.toFixed(1), u.value.personalMicrowavesDuration = w.value, u.value.co2ByWeek = A.value.toFixed(1);
|
|
128
128
|
}
|
|
129
129
|
function M() {
|
|
130
|
-
g.value = u.value.energyByWeek * 52 * 1e6 / 1e3,
|
|
130
|
+
g.value = u.value.energyByWeek * 52 * 1e6 / 1e3, F.value = u.value.co2ByWeek * 52 * 1e6 / 1e6, L.value = Math.round(g.value / 2300), B.value = g.value / 0.8, $.value = F.value * 2410, m.value.collectiveMicrowavesDuration = B.value.toLocaleString(), m.value.kilometerByPlane = $.value.toLocaleString(), m.value.equivalentPopulationByCity = L.value.toLocaleString(), m.value.collectiveAnnualEnergy = g.value.toLocaleString();
|
|
131
131
|
}
|
|
132
132
|
function S() {
|
|
133
133
|
P(), c.value = !0;
|
|
@@ -184,9 +184,9 @@ const X = {}, Z = {}, ee = {}, te = {}, ae = {}, le = {
|
|
|
184
184
|
e("p", Be, "📝 " + a(s.$t("calcul-impact.legals")), 1)
|
|
185
185
|
]));
|
|
186
186
|
}
|
|
187
|
-
}),
|
|
187
|
+
}), Ae = "[data-v-7fbb31b5]{font-family:Nunito,Roboto,sans-serif;color:#253858}p[data-v-7fbb31b5]{padding:0}.container[data-v-7fbb31b5]{display:flex;flex-direction:column;gap:1rem}.container button[data-v-7fbb31b5]{border:0;border-radius:5px;font-size:.9rem;background:#357abd;color:#fff;width:50%;padding:.4rem .8rem;margin:auto;cursor:pointer}.container button[data-v-7fbb31b5]:hover{background:#225d93}.container input[data-v-7fbb31b5]{border:solid 1px lightgrey;border-radius:5px;padding-block:.2rem;width:40%}.container label[data-v-7fbb31b5]{font-weight:700}.container .legals[data-v-7fbb31b5]{font-size:.9rem;font-style:italic}.container .title[data-v-7fbb31b5]{font-size:1.3rem;font-weight:700}@media only screen and (max-width:768px){.container button[data-v-7fbb31b5]{width:100%}.container input[data-v-7fbb31b5]{width:80%}}", Fe = /* @__PURE__ */ z($e, [["styles", [Ae]], ["__scopeId", "data-v-7fbb31b5"]]);
|
|
188
188
|
H(/* @__PURE__ */ Object.assign({ "./locales/de-AT.json": X, "./locales/en.json": Z, "./locales/es-419.json": ee, "./locales/es.json": te, "./locales/fr-BE.json": ae, "./locales/fr.json": le, "./locales/it.json": oe, "./locales/nl.json": ne })).catch((t) => console.error(t));
|
|
189
|
-
const Y = G(
|
|
189
|
+
const Y = G(Fe, {
|
|
190
190
|
configureApp(t) {
|
|
191
191
|
x.changeLanguage(document?.documentElement?.lang || navigator.language), t.use(Q, {
|
|
192
192
|
i18next: x,
|