@1024pix/epreuves-components 2.2.6 → 2.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/ButtonTooltip.ce-CjtFa5aM.js +44 -0
- package/dist/{LLMMessage.ce-qbRxqNxR.js → LLMMessage.ce-Cjpb0CiE.js} +22 -22
- package/dist/{Loading.ce-CiVWBT3g.js → Loading.ce-1tk4uU9c.js} +1 -1
- package/dist/NavigationButton.ce-CxI2QW8z.js +59 -0
- package/dist/{Retry-CuUMOAZi.js → Retry-CY90VQJl.js} +1 -1
- package/dist/{_plugin-vue_export-helper-D7ghZaw4.js → _plugin-vue_export-helper-DOoVeFcJ.js} +26 -26
- package/dist/components/calcul-impact.ce.js.js +11 -11
- package/dist/components/capacity-calculation.ce.js.js +31 -31
- package/dist/components/clickable-image.ce.js.js +10 -10
- package/dist/components/complete-phrase.ce.js.js +85 -91
- package/dist/components/flip-cards.ce.js.js +11 -11
- package/dist/components/image-quiz.ce.js.js +2 -2
- package/dist/components/image-quizzes.ce.js.js +2 -2
- 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 +4 -4
- package/dist/components/message-conversation.ce.js.js +21 -21
- package/dist/components/mobile-shell.ce.js.js +8 -5
- package/dist/components/phishing-message.ce.js.js +261 -0
- package/dist/components/phishing-notification.ce.js.js +355 -0
- package/dist/components/pix-article.ce.js.js +5 -5
- package/dist/components/pix-carousel.ce.js.js +19 -18
- package/dist/components/pix-cursor.ce.js.js +28 -28
- package/dist/components/qcm-deepfake.ce.js.js +19 -19
- package/dist/components/select-conversation.ce.js.js +104 -0
- package/dist/{i18n-DX3ApBSH.js → i18n-ecSMtuba.js} +74 -53
- package/dist/{image-quiz.ce-3HDl6Z67.js → image-quiz.ce-CpI6lZ9m.js} +15 -15
- package/dist/index-4XnHmtKv.js +11905 -0
- package/dist/index.js +4 -1
- package/dist/metadata.js +44 -32
- package/dist/schema.js +63 -24
- package/dist/{shadow-dom-CFAQERh6.js → shadow-dom-DZbyKUWP.js} +1 -1
- package/dist/temporal.utils-B23shw3k.js +4958 -0
- package/package.json +1 -1
- package/dist/NavigationButton.ce-DF5ScHc4.js +0 -98
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import { d as i, c as a, o as l,
|
|
2
|
-
const m = {
|
|
1
|
+
import { d as i, c as a, o as l, D as s, a as r, j as n, A as d, n as b, _ as p, f as h } from "../_plugin-vue_export-helper-DOoVeFcJ.js";
|
|
2
|
+
const m = {
|
|
3
|
+
class: "content",
|
|
4
|
+
part: "content"
|
|
5
|
+
}, c = /* @__PURE__ */ i({
|
|
3
6
|
__name: "MobileShell.ce",
|
|
4
7
|
props: {
|
|
5
8
|
aspectRatio: { default: "1/2", type: null },
|
|
@@ -11,7 +14,7 @@ const m = { class: "content" }, c = /* @__PURE__ */ i({
|
|
|
11
14
|
return (o, t) => (l(), a("div", {
|
|
12
15
|
class: b(["mobile", { "hide-mobile-shell": !e.persistMobileShell }]),
|
|
13
16
|
part: "screen",
|
|
14
|
-
style:
|
|
17
|
+
style: d({
|
|
15
18
|
"--aspect-ratio": e.aspectRatio,
|
|
16
19
|
"--max-width": `${e.maxWidth}px`,
|
|
17
20
|
"--margin-top": `${e.marginTop}px`
|
|
@@ -19,9 +22,9 @@ const m = { class: "content" }, c = /* @__PURE__ */ i({
|
|
|
19
22
|
}, [
|
|
20
23
|
t[0] || (t[0] = s('<div class="cache-top"><div class="camera"></div></div><div class="buttons"><div class="button small"></div><div class="button long"></div><div class="button long"></div></div>', 2)),
|
|
21
24
|
r("div", m, [
|
|
22
|
-
|
|
25
|
+
n(o.$slots, "default")
|
|
23
26
|
])
|
|
24
27
|
], 6));
|
|
25
28
|
}
|
|
26
|
-
}), x = '*{box-sizing:border-box;margin:0;padding:0}.mobile{position:
|
|
29
|
+
}), x = '*{box-sizing:border-box;margin:0;padding:0}.mobile{position:relative;z-index:3;width:100%;left:50%;transform:translate(-50%);border-radius:30px;border:10px solid black;box-shadow:5px 5px 5px #0000004d;box-sizing:content-box;aspect-ratio:var(--aspect-ratio);max-width:var(--max-width);margin-top:var(--margin-top)}.mobile:before{content:"";position:absolute;z-index:1;top:-1px;left:-1px;width:100%;height:100%;border-radius:20px;box-shadow:inset 2px 2px 3px #0000004d}.mobile:after{content:"";position:absolute;top:-7px;left:-5px;width:85%;height:50%;border-top-left-radius:25px;border-top:.1rem solid rgba(255,255,255,.8);border-right:2px solid transparent;filter:blur(1px)}.content{position:absolute;width:100%;height:100%;z-index:5;border-radius:20px;-ms-overflow-style:none;scrollbar-width:none}.content::-webkit-scrollbar{display:none}.mobile .cache-top{position:absolute;z-index:6;top:0;left:32.5%;width:35%;height:15px;background:#000;border-bottom-left-radius:20px;border-bottom-right-radius:20px}.mobile .cache-top .camera{position:absolute;top:40%;right:5%;width:9%;max-width:10px;aspect-ratio:1;transform:translate(-50%,-50%);border-radius:50%;background:#ffffff4d}.cache-top .camera:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:25%;height:25%;border-radius:50%;background:#fff;filter:blur(1px)}.mobile .buttons{position:absolute;top:10%;left:-12.5px;height:20%;width:5px}.mobile .button{width:5px;background:#000;margin-bottom:10px;border-radius:30%}.mobile .button.small{height:15%;margin-bottom:10px}.mobile .button.long{height:30%}@media only screen and (max-width:768px){.hide-mobile-shell:after,.hide-mobile-shell .cache-top,.hide-mobile-shell .buttons{display:none}.hide-mobile-shell{border-width:0}.hide-mobile-shell .content{border:solid 2px black}}', u = /* @__PURE__ */ p(c, [["styles", [x]]]), f = h(u);
|
|
27
30
|
window.customElements.define("mobile-shell", f);
|
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
import { d as v, c, o, F as _, a as t, t as a, h as x, H as R, _ as f, B as C, b as D, q as k, r as w, y as u, A as Z, e as b, D as A, m as $, k as I, f as T } from "../_plugin-vue_export-helper-DOoVeFcJ.js";
|
|
2
|
+
import { a as E, i as M, b as Q } from "../i18n-ecSMtuba.js";
|
|
3
|
+
import { u as q } from "../normalize-props-AlmAfi_u.js";
|
|
4
|
+
const O = {
|
|
5
|
+
"phishing-message": { title: "Message et émotions", description: "Pour chacun des cas ci-dessous : Ouvrez et lisez le message d’arnaque, puis répondez à la question.", messagePreviewTitle: "Messagerie :", feedBackQuizTitle: "Qu’avez-vous ressenti en lisant ce message ?", next: "Message suivant", step: "Étape {{step}} sur {{totalStep}}" }
|
|
6
|
+
}, U = "data:image/svg+xml,%3csvg%20width='34'%20height='34'%20viewBox='0%200%2034%2034'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='34'%20height='34'%20rx='8'%20fill='%23E9F3EF'/%3e%3cpath%20d='M8%2025.3451V10.0551C8%209.52465%208.21071%209.01594%208.58579%208.64087C8.96086%208.2658%209.46957%208.05508%2010%208.05508H24C24.5304%208.05508%2025.0391%208.2658%2025.4142%208.64087C25.7893%209.01594%2026%209.52465%2026%2010.0551V20.0551C26%2020.5855%2025.7893%2021.0942%2025.4142%2021.4693C25.0391%2021.8444%2024.5304%2022.0551%2024%2022.0551H12.961C12.6612%2022.0551%2012.3653%2022.1225%2012.0951%2022.2524C11.8249%2022.3822%2011.5874%2022.5711%2011.4%2022.8051L9.069%2025.7191C8.99143%2025.8163%208.88556%2025.887%208.76604%2025.9214C8.64652%2025.9559%208.51926%2025.9523%208.40186%2025.9112C8.28446%2025.8701%208.18273%2025.7936%208.11073%2025.6922C8.03874%2025.5907%208.00005%2025.4695%208%2025.3451Z'%20stroke='%231C825D'%20stroke-width='2'/%3e%3c/svg%3e", G = ["aria-level"], J = { class: "message-page-preview" }, W = { class: "card-wrapper" }, K = ["src"], X = ["aria-level"], Y = { class: "card-wrapper__time" }, e2 = /* @__PURE__ */ v({
|
|
7
|
+
__name: "MessagePreview.ce",
|
|
8
|
+
props: {
|
|
9
|
+
senderName: { type: String },
|
|
10
|
+
content: { type: String },
|
|
11
|
+
title: { type: String },
|
|
12
|
+
goodFeelings: { type: Array },
|
|
13
|
+
victory: { type: String },
|
|
14
|
+
loose: { type: String },
|
|
15
|
+
titleLevel: { type: Number }
|
|
16
|
+
},
|
|
17
|
+
emits: ["open-message"],
|
|
18
|
+
setup(e) {
|
|
19
|
+
const l = /* @__PURE__ */ new Date();
|
|
20
|
+
return (i, s) => (o(), c(_, null, [
|
|
21
|
+
t("header", null, [
|
|
22
|
+
t("div", {
|
|
23
|
+
role: "heading",
|
|
24
|
+
"aria-level": e.titleLevel ? e.titleLevel + 1 : 3,
|
|
25
|
+
class: "title-mobile h3"
|
|
26
|
+
}, a(i.$t("phishing-message.messagePreviewTitle")), 9, G)
|
|
27
|
+
]),
|
|
28
|
+
t("main", J, [
|
|
29
|
+
t("div", W, [
|
|
30
|
+
t("img", {
|
|
31
|
+
src: x(U),
|
|
32
|
+
class: "card-wrapper__logo-message",
|
|
33
|
+
alt: ""
|
|
34
|
+
}, null, 8, K),
|
|
35
|
+
t("div", {
|
|
36
|
+
role: "heading",
|
|
37
|
+
"aria-level": e.titleLevel ? e.titleLevel + 1 : 3,
|
|
38
|
+
class: "card-wrapper__sender h3"
|
|
39
|
+
}, a(e.senderName), 9, X),
|
|
40
|
+
t("a", {
|
|
41
|
+
href: "#",
|
|
42
|
+
onClick: s[0] || (s[0] = (d) => i.$emit("open-message")),
|
|
43
|
+
class: "card-wrapper__text-preview"
|
|
44
|
+
}, [
|
|
45
|
+
R(a(e.content) + " ", 1),
|
|
46
|
+
s[1] || (s[1] = t("span", { class: "sr-only" }, "lire la suite", -1))
|
|
47
|
+
]),
|
|
48
|
+
t("p", Y, a(x(l).getHours() + ":" + x(l).getMinutes()), 1)
|
|
49
|
+
])
|
|
50
|
+
])
|
|
51
|
+
], 64));
|
|
52
|
+
}
|
|
53
|
+
}), t2 = '.title-mobile[data-v-96907b7c]{font-size:1.125rem;line-height:24px;text-align:left}.card-wrapper[data-v-96907b7c]{position:relative;background-color:#fff;display:grid;padding:24px 16px;border-radius:16px;gap:4px 8px;margin:0 21px}.card-wrapper__logo-message[data-v-96907b7c]{align-self:center;grid-column:1;grid-row:1/span 2}.card-wrapper__text-preview[data-v-96907b7c]{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;grid-column:2;grid-row:2;text-decoration:none;color:#122647}.card-wrapper__text-preview[data-v-96907b7c]:after{content:"";position:absolute;inset:0}.card-wrapper__sender[data-v-96907b7c]{font-size:.875rem;grid-column:2;grid-row:1}.card-wrapper__time[data-v-96907b7c]{color:#5e6c84;font-size:12px;font-weight:400;grid-column:3;grid-row:1/span 2}.card-wrapper p[data-v-96907b7c],.card-wrapper .h3[data-v-96907b7c]{text-align:left}header[data-v-96907b7c]{padding:40px 21px 16px}', a2 = /* @__PURE__ */ f(e2, [["styles", [t2]], ["__scopeId", "data-v-96907b7c"]]), i2 = "data:image/svg+xml,%3csvg%20width='30'%20height='30'%20viewBox='0%200%2030%2030'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='30'%20height='30'%20rx='15'%20fill='%23CDD1D9'/%3e%3cpath%20d='M15%209.375C15.4167%2011.0417%2016.25%2012.3958%2017.5%2013.4375C18.75%2014.4792%2019.375%2015.625%2019.375%2016.875C19.375%2018.0353%2018.9141%2019.1481%2018.0936%2019.9686C17.2731%2020.7891%2016.1603%2021.25%2015%2021.25C13.8397%2021.25%2012.7269%2020.7891%2011.9064%2019.9686C11.0859%2019.1481%2010.625%2018.0353%2010.625%2016.875C10.625%2016.1988%2010.8443%2015.5409%2011.25%2015C11.25%2015.4144%2011.4146%2015.8118%2011.7076%2016.1049C12.0007%2016.3979%2012.3981%2016.5625%2012.8125%2016.5625C13.2269%2016.5625%2013.6243%2016.3979%2013.9174%2016.1049C14.2104%2015.8118%2014.375%2015.4144%2014.375%2015C14.375%2013.75%2013.4375%2013.125%2013.4375%2011.875C13.4375%2011.0417%2013.9583%2010.2083%2015%209.375Z'%20stroke='white'%20stroke-width='1.25'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", s2 = { class: "header" }, o2 = ["src"], n2 = ["aria-level"], r2 = { class: "card-wrapper" }, l2 = {
|
|
54
|
+
key: 0,
|
|
55
|
+
class: "title"
|
|
56
|
+
}, d2 = /* @__PURE__ */ v({
|
|
57
|
+
__name: "MessageContent.ce",
|
|
58
|
+
props: {
|
|
59
|
+
senderName: { type: String },
|
|
60
|
+
content: { type: String },
|
|
61
|
+
title: { type: String },
|
|
62
|
+
goodFeelings: { type: Array },
|
|
63
|
+
victory: { type: String },
|
|
64
|
+
loose: { type: String },
|
|
65
|
+
titleLevel: { type: Number }
|
|
66
|
+
},
|
|
67
|
+
setup(e) {
|
|
68
|
+
return (l, i) => (o(), c(_, null, [
|
|
69
|
+
t("header", s2, [
|
|
70
|
+
t("img", {
|
|
71
|
+
src: x(i2),
|
|
72
|
+
alt: ""
|
|
73
|
+
}, null, 8, o2),
|
|
74
|
+
t("div", {
|
|
75
|
+
role: "heading",
|
|
76
|
+
"aria-level": e.titleLevel ? e.titleLevel + 1 : 3,
|
|
77
|
+
class: "header1__sender-name h3"
|
|
78
|
+
}, a(e.senderName), 9, n2)
|
|
79
|
+
]),
|
|
80
|
+
t("main", null, [
|
|
81
|
+
t("div", r2, [
|
|
82
|
+
e.title ? (o(), c("p", l2, a(e.title), 1)) : C("", !0),
|
|
83
|
+
t("p", null, a(e.content), 1)
|
|
84
|
+
])
|
|
85
|
+
])
|
|
86
|
+
], 64));
|
|
87
|
+
}
|
|
88
|
+
}), c2 = ".header[data-v-494be0c6]{display:flex;align-items:center;padding:24px 16px 16px;border-radius:32px 32px 0 0;gap:8px;background:#fff;margin:10px 10px 0}.header__sender-name[data-v-494be0c6]{color:#122647;font-size:14px;font-weight:700}.card-wrapper[data-v-494be0c6]{padding:16px;border-radius:8px;background:#fff;text-align:left}.card-wrapper p[data-v-494be0c6]{color:#122647;font-size:.875rem;line-height:1.25rem}.card-wrapper .title[data-v-494be0c6]{font-weight:700}main[data-v-494be0c6]{padding:16px 21px}", p2 = /* @__PURE__ */ f(d2, [["styles", [c2]], ["__scopeId", "data-v-494be0c6"]]), g2 = "data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0%2010C0%204.47715%204.47715%200%2010%200H30C35.5228%200%2040%204.47715%2040%2010V30C40%2035.5228%2035.5228%2040%2030%2040H10C4.47715%2040%200%2035.5228%200%2030V10Z'%20fill='%23613FDD'/%3e%3cpath%20d='M28.1083%2025L21.4416%2013.3333C21.2962%2013.0768%2021.0854%2012.8635%2020.8307%2012.715C20.576%2012.5666%2020.2864%2012.4884%2019.9916%2012.4884C19.6968%2012.4884%2019.4072%2012.5666%2019.1525%2012.715C18.8978%2012.8635%2018.687%2013.0768%2018.5416%2013.3333L11.8749%2025C11.728%2025.2544%2011.651%2025.5432%2011.6516%2025.8371C11.6523%2026.1309%2011.7306%2026.4194%2011.8786%2026.6732C12.0267%2026.927%2012.2392%2027.1371%2012.4947%2027.2823C12.7501%2027.4275%2013.0394%2027.5026%2013.3333%2027.5H26.6666C26.959%2027.4997%2027.2462%2027.4225%2027.4993%2027.2761C27.7525%2027.1297%2027.9626%2026.9192%2028.1087%2026.6659C28.2548%2026.4126%2028.3316%2026.1253%2028.3316%2025.8329C28.3315%2025.5405%2028.2545%2025.2532%2028.1083%2025Z'%20stroke='white'%20stroke-width='1.66667'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M20%2017.5V20.8333'%20stroke='white'%20stroke-width='1.66667'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M20%2024.1667H20.0083'%20stroke='white'%20stroke-width='1.66667'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", h2 = "data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0%2010C0%204.47715%204.47715%200%2010%200H30C35.5228%200%2040%204.47715%2040%2010V30C40%2035.5228%2035.5228%2040%2030%2040H10C4.47715%2040%200%2035.5228%200%2030V10Z'%20fill='%23FFCB33'/%3e%3cpath%20d='M13.3334%2021.6667C13.1757%2021.6672%2013.0211%2021.623%2012.8875%2021.5391C12.7539%2021.4553%2012.6469%2021.3353%2012.5788%2021.193C12.5108%2021.0508%2012.4844%2020.8921%2012.503%2020.7355C12.5215%2020.5789%2012.584%2020.4308%2012.6834%2020.3083L20.9334%2011.8083C20.9953%2011.7369%2021.0796%2011.6886%2021.1725%2011.6714C21.2655%2011.6543%2021.3615%2011.6692%2021.4448%2011.7137C21.5281%2011.7583%2021.5939%2011.8299%2021.6311%2011.9168C21.6684%2012.0036%2021.6751%2012.1005%2021.65%2012.1917L20.05%2017.2083C20.0029%2017.3346%2019.987%2017.4704%2020.0039%2017.6042C20.0207%2017.7379%2020.0698%2017.8656%2020.1468%2017.9762C20.2238%2018.0868%2020.3265%2018.1771%2020.4461%2018.2393C20.5657%2018.3015%2020.6986%2018.3338%2020.8334%2018.3333H26.6667C26.8244%2018.3328%2026.979%2018.377%2027.1126%2018.4608C27.2461%2018.5447%2027.3532%2018.6647%2027.4212%2018.8069C27.4893%2018.9492%2027.5156%2019.1078%2027.4971%2019.2644C27.4786%2019.4211%2027.4161%2019.5692%2027.3167%2019.6917L19.0667%2028.1917C19.0048%2028.2631%2018.9205%2028.3114%2018.8275%2028.3285C18.7346%2028.3457%2018.6386%2028.3308%2018.5553%2028.2862C18.4719%2028.2417%2018.4062%2028.1701%2018.3689%2028.0832C18.3316%2027.9964%2018.325%2027.8995%2018.35%2027.8083L19.95%2022.7917C19.9972%2022.6654%2020.0131%2022.5296%2019.9962%2022.3958C19.9794%2022.2621%2019.9303%2022.1344%2019.8533%2022.0238C19.7763%2021.9132%2019.6736%2021.8229%2019.554%2021.7607C19.4344%2021.6985%2019.3015%2021.6662%2019.1667%2021.6667H13.3334Z'%20stroke='white'%20stroke-width='1.66667'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", u2 = "data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0%2010C0%204.47715%204.47715%200%2010%200H30C35.5228%200%2040%204.47715%2040%2010V30C40%2035.5228%2035.5228%2040%2030%2040H10C4.47715%2040%200%2035.5228%200%2030V10Z'%20fill='%23D73328'/%3e%3cpath%20d='M20%2012.5C20.5555%2014.7222%2021.6666%2016.5278%2023.3333%2017.9167C25%2019.3056%2025.8333%2020.8333%2025.8333%2022.5C25.8333%2024.0471%2025.2187%2025.5308%2024.1247%2026.6248C23.0308%2027.7188%2021.5471%2028.3333%2020%2028.3333C18.4529%2028.3333%2016.9691%2027.7188%2015.8752%2026.6248C14.7812%2025.5308%2014.1666%2024.0471%2014.1666%2022.5C14.1666%2021.5985%2014.459%2020.7212%2015%2020C15%2020.5525%2015.2195%2021.0824%2015.6102%2021.4731C16.0009%2021.8638%2016.5308%2022.0833%2017.0833%2022.0833C17.6358%2022.0833%2018.1657%2021.8638%2018.5564%2021.4731C18.9471%2021.0824%2019.1666%2020.5525%2019.1666%2020C19.1666%2018.3333%2017.9166%2017.5%2017.9166%2015.8333C17.9166%2014.7222%2018.6111%2013.6111%2020%2012.5Z'%20stroke='white'%20stroke-width='1.66667'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", m2 = "data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0%2010C0%204.47715%204.47715%200%2010%200H30C35.5228%200%2040%204.47715%2040%2010V30C40%2035.5228%2035.5228%2040%2030%2040H10C4.47715%2040%200%2035.5228%200%2030V10Z'%20fill='%2300A85A'/%3e%3cg%20clip-path='url(%23clip0_1162_2180)'%3e%3cpath%20d='M19.1808%2012.345C19.2165%2012.1538%2019.318%2011.9812%2019.4676%2011.8569C19.6172%2011.7327%2019.8055%2011.6647%2020%2011.6647C20.1945%2011.6647%2020.3828%2011.7327%2020.5324%2011.8569C20.682%2011.9812%2020.7835%2012.1538%2020.8192%2012.345L21.695%2016.9767C21.7572%2017.306%2021.9172%2017.6088%2022.1542%2017.8458C22.3912%2018.0828%2022.694%2018.2428%2023.0233%2018.305L27.655%2019.1808C27.8462%2019.2165%2028.0188%2019.318%2028.1431%2019.4676C28.2673%2019.6172%2028.3353%2019.8055%2028.3353%2020C28.3353%2020.1945%2028.2673%2020.3828%2028.1431%2020.5324C28.0188%2020.682%2027.8462%2020.7835%2027.655%2020.8192L23.0233%2021.695C22.694%2021.7572%2022.3912%2021.9172%2022.1542%2022.1542C21.9172%2022.3912%2021.7572%2022.694%2021.695%2023.0233L20.8192%2027.655C20.7835%2027.8462%2020.682%2028.0188%2020.5324%2028.1431C20.3828%2028.2673%2020.1945%2028.3353%2020%2028.3353C19.8055%2028.3353%2019.6172%2028.2673%2019.4676%2028.1431C19.318%2028.0188%2019.2165%2027.8462%2019.1808%2027.655L18.305%2023.0233C18.2428%2022.694%2018.0828%2022.3912%2017.8458%2022.1542C17.6088%2021.9172%2017.306%2021.7572%2016.9767%2021.695L12.345%2020.8192C12.1538%2020.7835%2011.9812%2020.682%2011.8569%2020.5324C11.7327%2020.3828%2011.6647%2020.1945%2011.6647%2020C11.6647%2019.8055%2011.7327%2019.6172%2011.8569%2019.4676C11.9812%2019.318%2012.1538%2019.2165%2012.345%2019.1808L16.9767%2018.305C17.306%2018.2428%2017.6088%2018.0828%2017.8458%2017.8458C18.0828%2017.6088%2018.2428%2017.306%2018.305%2016.9767L19.1808%2012.345Z'%20stroke='white'%20stroke-width='1.66667'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M26.6666%2011.6667V15'%20stroke='white'%20stroke-width='1.66667'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M28.3333%2013.3333H25'%20stroke='white'%20stroke-width='1.66667'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M13.3333%2028.3333C14.2538%2028.3333%2015%2027.5871%2015%2026.6667C15%2025.7462%2014.2538%2025%2013.3333%2025C12.4128%2025%2011.6666%2025.7462%2011.6666%2026.6667C11.6666%2027.5871%2012.4128%2028.3333%2013.3333%2028.3333Z'%20stroke='white'%20stroke-width='1.66667'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_1162_2180'%3e%3crect%20width='20'%20height='20'%20fill='white'%20transform='translate(10%2010)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", v2 = "data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0%2010C0%204.47715%204.47715%200%2010%200H30C35.5228%200%2040%204.47715%2040%2010V30C40%2035.5228%2035.5228%2040%2030%2040H10C4.47715%2040%200%2035.5228%200%2030V10Z'%20fill='%235E6C84'/%3e%3cpath%20d='M14.1667%2020H25.8334'%20stroke='white'%20stroke-width='1.66667'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", f2 = { class: "card-wrapper" }, w2 = ["aria-level"], b2 = ["onClick"], x2 = ["src"], C2 = /* @__PURE__ */ v({
|
|
89
|
+
__name: "FeedBackQuiz.ce",
|
|
90
|
+
props: {
|
|
91
|
+
goodFeelings: { type: Array },
|
|
92
|
+
titleLevel: { type: Number }
|
|
93
|
+
},
|
|
94
|
+
emits: ["sendResult"],
|
|
95
|
+
setup(e, { emit: l }) {
|
|
96
|
+
const i = l, s = [
|
|
97
|
+
{
|
|
98
|
+
id: "fear",
|
|
99
|
+
icon: `${g2}`,
|
|
100
|
+
label: "De la peur"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
id: "emergency",
|
|
104
|
+
icon: `${h2}`,
|
|
105
|
+
label: "De l'urgence"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
id: "hope",
|
|
109
|
+
icon: `${u2}`,
|
|
110
|
+
label: "De l'espoir"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
id: "anger",
|
|
114
|
+
icon: `${m2}`,
|
|
115
|
+
label: "De la colère"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
id: "empty",
|
|
119
|
+
icon: `${v2}`,
|
|
120
|
+
label: "Je ne sais pas"
|
|
121
|
+
}
|
|
122
|
+
];
|
|
123
|
+
function d(n) {
|
|
124
|
+
i("sendResult", e.goodFeelings.includes(n));
|
|
125
|
+
}
|
|
126
|
+
return (n, g) => (o(), c("div", f2, [
|
|
127
|
+
t("div", {
|
|
128
|
+
role: "heading",
|
|
129
|
+
"aria-level": e.titleLevel ? e.titleLevel + 1 : 3,
|
|
130
|
+
class: "title"
|
|
131
|
+
}, a(n.$t("phishing-message.feedBackQuizTitle")), 9, w2),
|
|
132
|
+
t("ul", null, [
|
|
133
|
+
(o(), c(_, null, D(s, ({ icon: m, label: r, id: h }) => t("li", { key: r }, [
|
|
134
|
+
t("button", {
|
|
135
|
+
type: "button",
|
|
136
|
+
onClick: (y) => d(h)
|
|
137
|
+
}, [
|
|
138
|
+
t("img", {
|
|
139
|
+
src: m,
|
|
140
|
+
alt: ""
|
|
141
|
+
}, null, 8, x2),
|
|
142
|
+
t("span", null, a(r), 1)
|
|
143
|
+
], 8, b2)
|
|
144
|
+
])), 64))
|
|
145
|
+
])
|
|
146
|
+
]));
|
|
147
|
+
}
|
|
148
|
+
}), k2 = ".card-wrapper[data-v-aed5dcf2]{padding:16px;border-radius:16px;background:#fff;box-shadow:0 25px 25px #00000040}.card-wrapper .title[data-v-aed5dcf2]{text-align:left;font-weight:700;font-family:Nunito,sans-serif;color:#122647;font-size:.875rem;margin-bottom:16px}.card-wrapper ul[data-v-aed5dcf2]{display:flex;justify-content:center;gap:8px}.card-wrapper li[data-v-aed5dcf2]{font-family:Roboto;font-size:.875rem;line-height:1.25rem;width:100px}.card-wrapper button[data-v-aed5dcf2]{display:flex;padding:8px;flex-direction:column;justify-content:center;align-items:center;gap:8px;text-wrap:nowrap;border:none;border-radius:8px;background:#f4f5f7;width:100%}.card-wrapper button[data-v-aed5dcf2]:hover{cursor:pointer}@media screen and (max-width:630px){.card-wrapper li[data-v-aed5dcf2]{font-size:.6rem;line-height:1rem;width:90px}.card-wrapper button[data-v-aed5dcf2]{padding:6px}.card-wrapper ul[data-v-aed5dcf2]{flex-wrap:wrap}}", _2 = /* @__PURE__ */ f(C2, [["styles", [k2]], ["__scopeId", "data-v-aed5dcf2"]]), y2 = /* @__PURE__ */ v({
|
|
149
|
+
__name: "PopInResult.ce",
|
|
150
|
+
props: {
|
|
151
|
+
content: { type: String },
|
|
152
|
+
isLastStep: { type: Boolean }
|
|
153
|
+
},
|
|
154
|
+
emits: ["next"],
|
|
155
|
+
setup(e, { expose: l }) {
|
|
156
|
+
const i = k("wrapper");
|
|
157
|
+
return l({
|
|
158
|
+
wrapper: i
|
|
159
|
+
}), (s, d) => (o(), c("div", {
|
|
160
|
+
ref_key: "wrapper",
|
|
161
|
+
ref: i,
|
|
162
|
+
class: "card-wrapper",
|
|
163
|
+
tabindex: "-1"
|
|
164
|
+
}, [
|
|
165
|
+
t("p", null, a(e.content), 1),
|
|
166
|
+
e.isLastStep ? C("", !0) : (o(), c("button", {
|
|
167
|
+
key: 0,
|
|
168
|
+
type: "button",
|
|
169
|
+
onClick: d[0] || (d[0] = (n) => s.$emit("next"))
|
|
170
|
+
}, a(s.$t("phishing-message.next")), 1))
|
|
171
|
+
], 512));
|
|
172
|
+
}
|
|
173
|
+
}), L2 = ".card-wrapper[data-v-69441fb3]{padding:16px;width:100%;max-width:460px;border-radius:16px;background:#eaf1ff;box-shadow:0 25px 25px #00000040}.card-wrapper button[data-v-69441fb3]{margin-top:24px;padding:8px 24px;border-radius:8px;background:#253858;color:#fff;border:none}.card-wrapper button[data-v-69441fb3]:hover{cursor:pointer;background-color:#5e6c84}", $2 = /* @__PURE__ */ f(y2, [["styles", [L2]], ["__scopeId", "data-v-69441fb3"]]), M2 = { class: "container" }, z2 = ["aria-level"], S2 = { class: "description" }, H2 = { class: "steps-wrapper" }, B2 = { class: "steps-wrapper__stepper" }, j2 = { "aria-hidden": "true" }, F2 = {
|
|
174
|
+
class: "sr-only",
|
|
175
|
+
"aria-live": "polite"
|
|
176
|
+
}, V2 = { class: "grid" }, N2 = /* @__PURE__ */ v({
|
|
177
|
+
__name: "PhishingMessage.ce",
|
|
178
|
+
props: {
|
|
179
|
+
titleLevel: { type: Number },
|
|
180
|
+
messages: { type: Array }
|
|
181
|
+
},
|
|
182
|
+
setup(e, { expose: l }) {
|
|
183
|
+
const i = e, s = k("popInResult"), d = k("mobileShell"), n = w(!1), g = w(!1), m = w(!1), r = w(0), h = u(() => i.messages[r.value]), y = u(() => n.value && !g.value), S = u(() => n.value && g.value), H = u(() => i.messages.length === r.value + 1), B = u(() => {
|
|
184
|
+
const p = m.value ? "victory" : "loose";
|
|
185
|
+
return h.value[p];
|
|
186
|
+
}), j = u(() => Math.floor((r.value + 1) / i.messages.length * 100));
|
|
187
|
+
async function F(p) {
|
|
188
|
+
m.value = p, g.value = !0, await I(), s.value.wrapper.focus();
|
|
189
|
+
}
|
|
190
|
+
function V() {
|
|
191
|
+
n.value = !0, d.value.focus();
|
|
192
|
+
}
|
|
193
|
+
function N() {
|
|
194
|
+
n.value = !1, g.value = !1, r.value++, d.value.focus();
|
|
195
|
+
}
|
|
196
|
+
function P() {
|
|
197
|
+
n.value = !1, g.value = !1, m.value = !1, r.value = 0;
|
|
198
|
+
}
|
|
199
|
+
return l({
|
|
200
|
+
reset: P
|
|
201
|
+
}), (p, L) => (o(), c("div", M2, [
|
|
202
|
+
t("div", {
|
|
203
|
+
role: "heading",
|
|
204
|
+
"aria-level": e.titleLevel ? e.titleLevel : 2,
|
|
205
|
+
class: "title-page h2"
|
|
206
|
+
}, a(p.$t("phishing-message.title")), 9, z2),
|
|
207
|
+
t("p", S2, a(p.$t("phishing-message.description")), 1),
|
|
208
|
+
t("div", H2, [
|
|
209
|
+
t("div", B2, [
|
|
210
|
+
t("div", {
|
|
211
|
+
class: "steps-wrapper__effective-steps",
|
|
212
|
+
style: Z({ "--step1": `${j.value}%` })
|
|
213
|
+
}, null, 4)
|
|
214
|
+
]),
|
|
215
|
+
t("p", j2, a(r.value + 1) + "/3", 1),
|
|
216
|
+
t("p", F2, a(p.$t("phishing-message.step", { step: r.value + 1, totalStep: i.messages.length })), 1)
|
|
217
|
+
]),
|
|
218
|
+
t("div", V2, [
|
|
219
|
+
t("div", {
|
|
220
|
+
ref_key: "mobileShell",
|
|
221
|
+
ref: d,
|
|
222
|
+
class: "mobile-shell-content",
|
|
223
|
+
tabindex: "-1"
|
|
224
|
+
}, [
|
|
225
|
+
n.value ? (o(), b(p2, $({ key: 0 }, h.value, { "title-level": e.titleLevel }), null, 16, ["title-level"])) : (o(), b(a2, $({
|
|
226
|
+
key: 1,
|
|
227
|
+
onOpenMessage: V
|
|
228
|
+
}, h.value, { "title-level": e.titleLevel }), null, 16, ["title-level"]))
|
|
229
|
+
], 512),
|
|
230
|
+
y.value ? (o(), b(_2, {
|
|
231
|
+
key: 0,
|
|
232
|
+
onSendResult: F,
|
|
233
|
+
"good-feelings": h.value.goodFeelings,
|
|
234
|
+
class: "feedback",
|
|
235
|
+
"title-level": e.titleLevel
|
|
236
|
+
}, null, 8, ["good-feelings", "title-level"])) : C("", !0),
|
|
237
|
+
S.value ? (o(), b($2, {
|
|
238
|
+
key: 1,
|
|
239
|
+
ref_key: "popInResult",
|
|
240
|
+
ref: s,
|
|
241
|
+
class: "feedback",
|
|
242
|
+
content: B.value,
|
|
243
|
+
"is-last-step": H.value,
|
|
244
|
+
onNext: N
|
|
245
|
+
}, null, 8, ["content", "is-last-step"])) : C("", !0),
|
|
246
|
+
L[0] || (L[0] = A('<div class="mobile-shell"><div class="cache-top"><div class="camera"></div></div><div class="buttons"><div class="button small"></div><div class="button long"></div><div class="button long"></div></div></div>', 1))
|
|
247
|
+
])
|
|
248
|
+
]));
|
|
249
|
+
}
|
|
250
|
+
}), P2 = 'html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}table{border-collapse:collapse;border-spacing:0}*{box-sizing:border-box}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);border:0}.container{position:relative;text-align:center}.container .description{margin-bottom:16px}.container .grid{display:grid;grid-template-columns:1fr 330px 1fr;grid-template-rows:auto auto;margin-top:20px;height:380px}.container .mobile-shell{grid-column:2;grid-row:1/span 2;position:relative;box-sizing:content-box;border:10px solid black;border-bottom:none;border-radius:30px 30px 0 0;background:#f4f5f7}.container .mobile-shell:after{content:"";position:absolute;top:-7px;left:-5px;width:85%;height:30px;border-top-left-radius:25px;border-top:.1rem solid rgba(255,255,255,.8);border-right:2px solid transparent;filter:blur(1px)}.container .mobile-shell-content{position:relative;z-index:1;grid-column:2;grid-row:1}.container .feedback{grid-column:1/span 3;grid-row:2;justify-self:center;align-self:center;position:relative;z-index:3;margin-bottom:20px}.container .h2,.container .h3{font-family:Nunito,Roboto,sans-serif;color:#122647;font-weight:700}.container .h2.title-page,.container .h3.title-page{font-size:1.25rem;line-height:28px;margin-bottom:8px}.container .steps-wrapper{display:flex;align-items:center;justify-content:center;color:#613fdd;font-size:.875rem;gap:6px;font-weight:500}.container .steps-wrapper__stepper{background:#e8eaed;height:8px;width:100%;max-width:336px;border-radius:4px}.container .steps-wrapper__effective-steps{width:var(--step1);background:#613fdd;border-radius:4px;height:8px}.container .mobile-shell .cache-top{position:absolute;z-index:6;top:0;left:32.5%;width:35%;height:15px;background:#000;border-bottom-left-radius:20px;border-bottom-right-radius:20px}.container .mobile-shell .cache-top .camera{position:absolute;top:40%;right:5%;width:9%;max-width:10px;aspect-ratio:1;transform:translate(-50%,-50%);border-radius:50%;background:#ffffff4d}.container .mobile-shell .cache-top .camera:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:25%;height:25%;border-radius:50%;background:#fff;filter:blur(1px)}.container .mobile-shell .buttons{position:absolute;top:10%;left:-12.5px;height:20%;width:5px}.container .mobile-shell .button{width:5px;background:#000;margin-bottom:10px;border-radius:30%}.container .mobile-shell .button.small{height:15px;margin-bottom:10px}.container .mobile-shell .button.long{height:30px}@media screen and (max-width:630px){.container .feedback{width:95%;margin-bottom:0}.container .grid{grid-template-columns:1fr 90% 1fr}}', R2 = /* @__PURE__ */ f(N2, [["styles", [P2]]]);
|
|
251
|
+
E(/* @__PURE__ */ Object.assign({ "./locales/fr.json": O })).catch((e) => console.error(e));
|
|
252
|
+
const z = T(R2, {
|
|
253
|
+
configureApp(e) {
|
|
254
|
+
M.changeLanguage(document?.documentElement?.lang || navigator.language), e.use(Q, { i18next: M });
|
|
255
|
+
}
|
|
256
|
+
});
|
|
257
|
+
z.prototype.normalizeProps = (e) => ({
|
|
258
|
+
...e,
|
|
259
|
+
titleLevel: q(e.titleLevel)
|
|
260
|
+
});
|
|
261
|
+
window.customElements.define("phishing-message", z);
|